gis-cesium-helper 2.1.4 → 2.1.6
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,window.Cesium||require("cesium"),window.turf||require("@turf/turf")):"function"==typeof define&&define.amd?define(["exports","cesium","@turf/turf"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).gis3d={},e.Cesium,e.turf)}(this,function(exports,Cesium,turf){"use strict";var _0x1658de=_0x236b;function _interopNamespace(a){var n,e=2974,s=3760,r=_0x236b;return a&&a[r(3633)]?a:(n=Object.create(null),a&&Object.keys(a).forEach(function(e){var t,i=r;e!==i(2974)&&(t=Object.getOwnPropertyDescriptor(a,e),Object[i(s)](n,e,t.get?t:{enumerable:!0,get:function(){return a[e]}}))}),n[r(e)]=a,n)}!function(){for(var e=2059,t=552,i=1433,a=4026,n=658,s=2149,r=_0x236b,o=_0xa195();;)try{if(359863==-parseInt(r(956))+-parseInt(r(1929))/2*(parseInt(r(e))/3)+parseInt(r(t))/4*(-parseInt(r(1143))/5)+parseInt(r(i))/6*(-parseInt(r(a))/7)+parseInt(r(n))/8*(parseInt(r(829))/9)+-parseInt(r(1788))/10+parseInt(r(s))/11*(parseInt(r(2479))/12))break;o.push(o.shift())}catch(e){o.push(o.shift())}}();var Cesium__namespace=_interopNamespace(Cesium);if(null==Cesium__namespace||!Cesium__namespace.Viewer)throw new Error("请引入 Cesium 库");var getUrlComponent_old=Cesium__namespace.Resource[_0x1658de(2385)].getUrlComponent,getValueInReferenceFrame_old=(Cesium__namespace.Resource.prototype.getUrlComponent=function(e,t){var i=_0x1658de,e=getUrlComponent_old.bind(this)(e,t);return Cesium__namespace[i(714)].ReplaceUrl&&(e=Cesium__namespace.Resource[i(335)](e)),this._last_url=e},Cesium__namespace.ConstantPositionProperty.prototype.getValueInReferenceFrame),beginFrame_old=(Cesium__namespace.ConstantPositionProperty[_0x1658de(2385)][_0x1658de(2813)]=function(e,t,i){return Cesium__namespace.defined(e)||(e=Cesium__namespace.JulianDate.now()),getValueInReferenceFrame_old.bind(this)(e,t,i)},Cesium__namespace[_0x1658de(1617)].prototype.getValue=function(e,t){var i=2670,a=2373,n=2510,s=2311,r=2725,o=_0x1658de,i=(this._positionScratch||(this._positionScratch=new Cesium__namespace.Cartesian3,this[o(i)]=new Cesium__namespace.Cartesian3,this._rotationScratch=new Cesium__namespace[o(3915)]),this._velocityVectorProperty._getValue(e,this._velocityScratch,this._positionScratch));if(Cesium__namespace.defined(i)?this._last_velocity=i.clone():i=this[o(a)],Cesium__namespace.defined(i))return Cesium__namespace[o(n)].rotationMatrixFromPositionVelocity(this._positionScratch,i,this[o(s)],this[o(r)]),Cesium__namespace.Quaternion.fromRotationMatrix(this._rotationScratch,t)},Cesium__namespace.Globe[_0x1658de(2385)].beginFrame);function createFlattingAreaTextureOrLimitAreaTexture(e,t,o){var l,c,h=2432,i=_0x1658de,a=null==t?void 0:t.length;if(a&&0!==a)return l=0,t.forEach(function(e){var t=_0x236b;l<e.length&&(l=e[t(2822)])}),c=[],t.forEach(function(e,i){var a=1018,n=3594,s=_0x236b,r=e[s(2822)];if(e[s(h)](function(e){var t=s;c[t(a)](e[t(n)]),c.push(e.latitude),c[t(a)](r),Cesium__namespace[t(3277)](o)?c.push(o[i]):c[t(1018)](0)}),r<l)for(var t=0;t<l-r;t++)c.push(0),c.push(0),c[s(1018)](0),c[s(1018)](0)}),new Cesium__namespace.Texture({context:e,pixelFormat:Cesium__namespace[i(1439)].RGBA,pixelDatatype:Cesium__namespace.PixelDatatype.FLOAT,sampler:new Cesium__namespace.Sampler({wrapS:Cesium__namespace.TextureWrap[i(2310)],wrapT:Cesium__namespace.TextureWrap.CLAMP_TO_EDGE,minificationFilter:Cesium__namespace.TextureMinificationFilter.NEAREST,magnificationFilter:Cesium__namespace.TextureMagnificationFilter.NEAREST}),flipY:!1,source:{width:l,height:a,arrayBufferView:new Float32Array(c)}})}Cesium__namespace[_0x1658de(3805)].prototype.beginFrame=function(e){var t=2268,i=3739,a=1553,n=2782,s=1847,r=_0x1658de,o=null==(o=this._surface._tileProvider)||null==(o=o[r(1847)])?void 0:o[r(t)],a=(o&&o.hasUpdate&&(o[r(i)]&&o.texture[r(a)](),o.texture=createFlattingAreaTextureOrLimitAreaTexture(e.context,o.areas,o.heights),o[r(2558)]=!1),null==(t=this[r(n)]._tileProvider)||null==(i=t[r(s)])?void 0:i[r(2773)]);return a&&a[r(2558)]&&(a.texture&&a.texture.destroy(),a[r(3739)]=createFlattingAreaTextureOrLimitAreaTexture(e.context,a.areas,void 0),a.hasUpdate=!1),beginFrame_old.bind(this)(e)},Object.defineProperties(Cesium__namespace.GlobeSurfaceTileProvider[_0x1658de(2385)],{marsOptions:{get:function(){return this._marsOptions}}}),Cesium__namespace[_0x1658de(2380)].prototype._initByMars3D=function(e){var l=2646,t=1154,i=3342,a=925,n=2773,s=3463,r=3159,o=351,c=1310,h=2268,u=2268,_=2558,p=_0x1658de,m=this;this._marsOptions={resetValue:function(){var e=_0x236b;this.resetClipValue(),this[e(3416)](),this.resetFlatValue(),this.resetUpliftValue()},flat:{},resetFlatValue:function(){var e=_0x236b;this.flat.enabled=!1,this[e(h)].heights=[],this.flat[e(351)]=void 0,this.flat[e(1310)]=void 0,this.flat.texture=void 0,this[e(u)][e(_)]=!1},uplift:{},resetUpliftValue:function(){var e=_0x236b;this[e(n)][e(s)]=!1,this.uplift[e(1476)]=!0,this.uplift[e(r)]=0,this[e(n)][e(o)]=void 0,this[e(n)][e(c)]=void 0,this[e(2773)].texture=void 0,this[e(2773)].hasUpdate=!1},clip:{},resetClipValue:function(){var e=_0x236b;this.clip.enabled=!1,this.clip[e(3028)]=!1,this.clip.polygonTexture=void 0,this.clip.tailorRect=Cesium__namespace.Cartesian4.ZERO,this.clip.inverMatrix=Cesium__namespace.Matrix4.ZERO},flood:{},resetFloodValue:function(){var e=_0x236b;this.flood.enabled=!1,this[e(1154)].globe=!0,this.flood.showElseArea=!0,this[e(t)][e(730)]=void 0,this.flood.inverMatrix=Cesium__namespace[e(i)][e(a)],this[e(1154)].floodRect=Cesium__namespace.Cartesian4.ZERO,this[e(1154)].heightVal=new Cesium__namespace.Cartesian4(0,0,0,500),this[e(1154)].color=new Cesium__namespace.Color(.15,.7,.95,.5)},updateTileUniformMap:function(t,e){var i=1154,a=2985,n=925,s=2673,r=730,o=2293;return{u_mars_clip_enabled:function(){return m._marsOptions.clip.enabled},u_mars_clip_only:function(){return m._marsOptions.clip.clipOutSide},u_mars_clip_area:function(){var e=_0x236b;return m._marsOptions.clip[e(r)]||t.context[e(o)]},u_mars_clip_inverMatrix:function(){var e=_0x236b;return m._marsOptions.clip[e(l)]||Cesium__namespace.Matrix4.ZERO},u_mars_clip_rect:function(){return m._marsOptions.clip.tailorRect||Cesium__namespace.Cartesian4.ZERO},u_mars_flood_emabled:function(){return m._marsOptions.flood.enabled},u_mars_flood_globe:function(){return m._marsOptions.flood.globe},u_mars_flood_showElse:function(){var e=_0x236b;return m._marsOptions[e(1154)][e(s)]},u_mars_flood_area:function(){var e=_0x236b;return m._marsOptions[e(1154)][e(730)]||t.context[e(2293)]},u_mars_flood_inverMatrix:function(){return m._marsOptions.flood.inverMatrix||Cesium__namespace.Matrix4.ZERO},u_mars_flood_rect:function(){var e=_0x236b;return m._marsOptions[e(1154)][e(a)]||Cesium__namespace[e(2944)][e(n)]},u_mars_flood_val:function(){return m._marsOptions.flood.heightVal},u_mars_flood_color:function(){var e=_0x236b;return m._marsOptions[e(i)].color}}}},this[p(3604)].resetValue()},Cesium__namespace.ImageryLayer[_0x1658de(2385)][_0x1658de(692)]=function(e,t){var i=_0x1658de;this.invertColor=null!=(i=t[i(3964)])?i:e.invertColor,this.filterColor=null!=(i=t.filterColor)?i:e.filterColor,this.filterColor&&"string"==typeof this.filterColor&&this.filterColor.constructor===String&&(this.filterColor=Cesium__namespace.Color.fromCssColorString(this.filterColor))},Cesium__namespace.ImageryLayerCollection.prototype[_0x1658de(3124)]=function(e,t){var i=_0x1658de,e=new Cesium__namespace.ImageryLayer(e,e.options);return this[i(3605)](e,t),e};var createShadowReceiveFragmentShader_old=Cesium__namespace.ShadowMapShader[_0x1658de(1180)];function isSun(e){return 7471e3<Math.abs(e.x)||7471e3<Math.abs(e.y)||7471e3<Math.abs(e.z)}Cesium__namespace.ShadowMapShader[_0x1658de(1180)]=function(e,t,i,a,n){var s=_0x1658de,e=createShadowReceiveFragmentShader_old.bind(this)(e,t,i,a,n);return isSun(t._lightCamera[s(2532)])||(i=e.sources[e[s(3628)].length-1],e.sources[e.sources.length-1]=i.replace("out_FragColor.rgb *= visibility;","out_FragColor.rgb = out_FragColor.rgb;")),e},Object.defineProperties(Cesium__namespace.Entity.prototype,{circle:{set:function(e){this.ellipse=e},get:function(){return this.ellipse}}}),Cesium__namespace.PerformanceDisplay[_0x1658de(2385)][_0x1658de(758)]=function(e){var t=2826,i=2557,a=3366,n=2557,s=_0x1658de,r=Cesium__namespace.getTimestamp(),e=null==e||e,o=(this._fpsFrameCount++,r-this._lastFpsSampleTime),o=(1e3<o&&(e&&(t=1e3*this[s(t)]/o|0,this._fpsText.nodeValue=""[s(i)](t," FPS")),this._lastFpsSampleTime=r,this._fpsFrameCount=0),this._msFrameCount++,r-this._lastMsSampleTime);200<o&&(e&&(i=(o/this._msFrameCount)[s(a)](2),this._msText.nodeValue=""[s(n)](i," MS")),this._lastMsSampleTime=r,this._msFrameCount=0)};var load_old=Cesium__namespace.I3SLayer[_0x1658de(2385)].load,getValue_old$6=(Cesium__namespace.I3SLayer.prototype.load=function(){var e,t=403,i=_0x1658de;return 4490===(null==(e=this[i(1930)])||null==(e=e.spatialReference)?void 0:e.wkid)&&(this[i(1930)].spatialReference.wkid=4326),load_old[i(t)](this)()},Object.defineProperties(Cesium__namespace[_0x1658de(632)].prototype,{globalAlpha:{set:function(e){this._globalAlpha=e},get:function(){var e;return null!=(e=this._globalAlpha)?e:1}}}),Cesium__namespace.CheckerboardMaterialProperty.prototype.getValue);function ownKeys(i,e){var t,a=755,n=_0x1658de,s=Object.keys(i);return Object.getOwnPropertySymbols&&(t=Object[n(1547)](i),e&&(t=t.filter(function(e){var t=n;return Object.getOwnPropertyDescriptor(i,e)[t(a)]})),s.push.apply(s,t)),s}function _objectSpread2(t){for(var e=1903,i=3760,a=_0x1658de,n=1;n<arguments.length;n++){var s=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(s),!0).forEach(function(e){_defineProperty(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object[a(e)](t,Object[a(3041)](s)):ownKeys(Object(s))[a(2432)](function(e){Object[a(i)](t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}function _typeof(e){var t=_0x1658de;return(_typeof=t(4099)==typeof Symbol&&"symbol"==typeof Symbol[t(1395)]?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=755,a=1616,n=_0x1658de,s=0;s<t.length;s++){var r=t[s];r.enumerable=r[n(i)]||!1,r.configurable=!0,"value"in r&&(r[n(a)]=!0),Object.defineProperty(e,r[n(3982)],r)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,i){t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}function _inherits(e,t){var i=2385,a=3760,n=_0x1658de;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t[n(i)],{constructor:{value:e,writable:!0,configurable:!0}}),Object[n(a)](e,n(2385),{writable:!1}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object[_0x1658de(2182)]?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){var e=1567,t=_0x1658de;if("undefined"==typeof Reflect||!Reflect[t(1069)])return!1;if(Reflect[t(1069)].sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf[t(e)](Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError(_0x1658de(2080));return e}function _possibleConstructorReturn(e,t){if(t&&(typeof t===_0x1658de(2607)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(a){var n=1069,s=2026,r=_isNativeReflectConstruct();return function(){var e,t=_0x236b,i=_getPrototypeOf(a);return _possibleConstructorReturn(this,r?(e=_getPrototypeOf(this).constructor,Reflect[t(n)](i,arguments,e)):i[t(s)](this,arguments))}}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _get(){var s={_0xd02f83:2187};return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var a=_0x236b,n=_superPropBase(e,t);if(n)return(n=Object[a(s._0xd02f83)](n,t))[a(3754)]?n.get.call(arguments.length<3?e:i):n.value}).apply(this,arguments)}function set(e,t,i,a){var r={_0x273f1a:1616};return(set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,i,a){var n,s=_0x236b,e=_superPropBase(e,t);if(e){if((n=Object.getOwnPropertyDescriptor(e,t)).set)return n[s(1062)].call(a,i),!0;if(!n[s(r._0x273f1a)])return!1}if(n=Object[s(2187)](a,t)){if(!n[s(1616)])return!1;n.value=i,Object.defineProperty(a,t,n)}else _defineProperty(a,t,i);return!0})(e,t,i,a)}function _set(e,t,i,a,n){if(!set(e,t,i,a||e)&&n)throw new Error("failed to set property")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array[_0x1658de(2255)](e))return _arrayLikeToArray(e)}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _unsupportedIterableToArray(e,t){var i,a=_0x1658de;if(e)return typeof e===a(1807)?_arrayLikeToArray(e,t):"Map"===(i="Object"===(i=Object.prototype.toString.call(e)[a(2090)](8,-1))&&e.constructor?e.constructor.name:i)||"Set"===i?Array[a(325)](e):i===a(3305)||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _createForOfIteratorHelper(e,t){var i,a,n,s,r=1337,o=2255,l=_0x1658de,c="undefined"!=typeof Symbol&&e[Symbol.iterator]||e[l(r)];if(c)return a=!(i=!0),{s:function(){c=c.call(e)},n:function(){var e=c.next();return i=e.done,e},e:function(e){a=!0,n=e},f:function(){var e=l;try{i||null==c[e(1686)]||c.return()}finally{if(a)throw n}}};if(Array[l(o)](e)||(c=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return c&&(e=c),s=0,{s:r=function(){},n:function(){return s>=e[l(2822)]?{done:!0}:{done:!1,value:e[s++]}},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.")}Cesium__namespace[_0x1658de(632)].prototype.getValue=function(e,t){var i=_0x1658de;return t=getValue_old$6.bind(this)(e,t),1!==this.globalAlpha&&(t[i(4060)]&&(t.lightColor.alpha*=this.globalAlpha),t.darkColor&&(t.darkColor.alpha*=this.globalAlpha),t.evenColor&&(t.evenColor.alpha*=this.globalAlpha),t.oddColor)&&(t.oddColor[i(3629)]*=this[i(1863)]),t};var _hasInfo=!0,_hasError=!0;function hasInfo(e){_hasInfo=e}function hasWarn(e){_hasInfo=e}function hasError(e){_hasError=e}function logInfo(){var e;_hasInfo&&(e=console).log.apply(e,arguments)}function logWarn(){var e;(e=console)[_0x1658de(409)].apply(e,arguments)}function logError$1(){var e,t=_0x1658de;_hasError&&(e=console)[t(1419)][t(2026)](e,arguments)}var Log={__proto__:null,hasInfo:hasInfo,hasWarn:hasWarn,hasError:hasError,logInfo:logInfo,logWarn:logWarn,logError:logError$1},GraphicType={},GraphicClass={};function hasType(e){return!!GraphicClass[e]}function eachGraphicType(i){var a=1567,n=this;Object.keys(GraphicClass).forEach(function(e,t){i&&i[_0x236b(a)](n,e,t)})}function isPointType(e){var t=_0x1658de;return!!e&&!(!GraphicClass[e]||!GraphicClass[e][t(2239)])}function isCombineType(e){return!!e&&!(!GraphicClass[e]||!GraphicClass[e].isCombine)}function register$4(e,t,i){var a=_0x1658de;GraphicClass[e]&&logError$1("register Graphic: ".concat(e,"类型已存在"),t),GraphicType[e]=e,(GraphicClass[e]=t).type=e,t.prototype._type=e,i&&(t.isPoint=!0,t[a(2385)].isPoint=!0)}function getClass$4(e){return GraphicClass[e]||(logWarn("getClass:未找到该类型对应的处理类",e),null)}function create$4(e,t){e=getClass$4(e);if(e)return new e(t)}function fromDraw(e,t){var i=_0x1658de;if(t.type){i=getClass$4(t[i(1488)]);if(i&&i.prototype.startDraw)return(t=new i(t)).startDraw(e),t;logInfo("对象不支持标绘",i)}else logError$1("fromDraw:需要传入指定绘制的type类型!")}var GraphicUtil={__proto__:null,hasType:hasType,eachGraphicType:eachGraphicType,isPointType:isPointType,isCombineType:isCombineType,register:register$4,getClass:getClass$4,create:create$4,fromDraw:fromDraw},edgeIntersectsEdge=function(e,t,i,a){var n=(a[0]-i[0])*(e[1]-i[1])-(a[1]-i[1])*(e[0]-i[0]),s=(t[0]-e[0])*(e[1]-i[1])-(t[1]-e[1])*(e[0]-i[0]),a=(a[1]-i[1])*(t[0]-e[0])-(a[0]-i[0])*(t[1]-e[1]);if(0!=a){i=n/a,t=s/a;if(0<=i&&i<=1&&0<=t&&t<=1)return!0}return!1},coordinatesContainPoint=function(e,t){for(var i=!1,a=-1,n=e.length,s=n-1;++a<n;s=a)(e[a][1]<=t[1]&&t[1]<e[s][1]||e[s][1]<=t[1]&&t[1]<e[a][1])&&t[0]<(e[s][0]-e[a][0])*(t[1]-e[a][1])/(e[s][1]-e[a][1])+e[a][0]&&(i=!i);return i},pointsEqual=function(e,t){for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0},arrayIntersectsArray=function(e,t){for(var i=0;i<e.length-1;i++)for(var a=0;a<t.length-1;a++)if(edgeIntersectsEdge(e[i],e[i+1],t[a],t[a+1]))return!0;return!1},closeRing=function(e){var t=_0x1658de;return pointsEqual(e[0],e[e.length-1])||e[t(1018)](e[0]),e},ringIsClockwise=function(e){for(var t,i=0,a=0,n=e.length,s=e[a];a<n-1;a++)i+=((t=e[a+1])[0]-s[0])*(t[1]+s[1]),s=t;return 0<=i},shallowClone=function(e){var t,i=3551,a=_0x1658de,n={};for(t in e)e[a(i)](t)&&(n[t]=e[t]);return n},coordinatesContainCoordinates=function(e,t){var i=arrayIntersectsArray(e,t),e=coordinatesContainPoint(e,t[0]);return!(i||!e)},convertRingsToGeoJSON=function(e){for(var t,i=2013,a=1018,n=1018,s=3950,r=_0x1658de,o=[],l=[],c=0;c<e.length;c++){var h,u=closeRing(e[c].slice(0));u.length<4||(ringIsClockwise(u)?(h=[u.slice().reverse()],o.push(h)):l.push(u[r(2090)]()[r(i)]()))}for(var _=[];l.length;){for(var p=l.pop(),m=!1,d=o.length-1;0<=d;d--)if(t=o[d][0],coordinatesContainCoordinates(t,p)){o[d][r(a)](p),m=!0;break}m||_.push(p)}for(;_.length;){p=_.pop();var f=!1;for(d=o.length-1;0<=d;d--)if(t=o[d][0],arrayIntersectsArray(t,p)){o[d][r(n)](p),f=!0;break}f||o.push([p.reverse()])}return 1===o[r(2822)]?{type:r(s),coordinates:o[0]}:{type:"MultiPolygon",coordinates:o}},getId=function(e,t){for(var i=_0x1658de,a=t?[t,i(689),i(2173)]:["OBJECTID","FID"],n=0;n<a.length;n++){var s=a[n];if(s in e&&("string"==typeof e[s]||"number"==typeof e[s]))return e[s]}throw Error("No valid id attribute found")},arcgisToGeoJSON$1=function e(t,i){var a=2340,n=1447,s=2535,r=2131,o=2131,l=3727,c=2988,h=2988,u=3755,_=409,p=_0x1658de,m={};if(t.features){m.type="FeatureCollection",m.features=[];for(var d=0;d<t.features.length;d++)m.features.push(e(t.features[d],i))}if("number"==typeof t.x&&"number"==typeof t.y&&(m[p(1488)]="Point",m.coordinates=[t.x,t.y],"number"==typeof t.z)&&m.coordinates[p(1018)](t.z),t.points&&(m.type="MultiPoint",m.coordinates=t.points.slice(0)),t.paths&&(1===t[p(1095)][p(2822)]?(m.type="LineString",m.coordinates=t.paths[0].slice(0)):(m.type="MultiLineString",m.coordinates=t.paths.slice(0))),t[p(a)]&&(m=convertRingsToGeoJSON(t[p(2340)].slice(0))),"number"==typeof t[p(n)]&&"number"==typeof t.ymin&&"number"==typeof t.xmax&&"number"==typeof t.ymax&&(m.type="Polygon",m.coordinates=[[[t[p(s)],t[p(r)]],[t.xmin,t[p(o)]],[t.xmin,t[p(l)]],[t.xmax,t.ymin],[t.xmax,t.ymax]]]),(t.geometry||t.attributes)&&(m.type="Feature",m.geometry=t[p(1972)]?e(t.geometry):null,m[p(3069)]=t.attributes?shallowClone(t[p(c)]):null,t.attributes))try{m.id=getId(t[p(h)],i)}catch(e){}return JSON.stringify(m.geometry)===JSON[p(u)]({})&&(m.geometry=null),t.spatialReference&&t.spatialReference.wkid&&4326!==t.spatialReference.wkid&&console[p(_)](p(2468)+JSON.stringify(t.spatialReference)),m},orientRings=function(e){var t=2090,i=2013,a=_0x1658de,n=[],s=e[a(t)](0),e=closeRing(s.shift()[a(t)](0));if(4<=e.length){ringIsClockwise(e)||e[a(i)](),n.push(e);for(var r=0;r<s.length;r++){var o=closeRing(s[r].slice(0));4<=o.length&&(ringIsClockwise(o)&&o[a(i)](),n.push(o))}}return n},flattenMultiPolygonRings=function(e){for(var t=2822,i=2090,a=_0x1658de,n=[],s=0;s<e[a(t)];s++)for(var r=orientRings(e[s]),o=r.length-1;0<=o;o--){var l=r[o][a(i)](0);n.push(l)}return n},geojsonToArcGIS$1=function e(t,i){var a,n=1488,s=3497,r=2991,o=2090,l=1800,c=1442,h=_0x1658de,u=(i=i||h(689),{wkid:4326}),_={};switch(t[h(n)]){case h(3308):_.x=t.coordinates[0],_.y=t.coordinates[1],t[h(3497)][2]&&(_.z=t.coordinates[2]),_[h(1800)]=u;break;case"MultiPoint":_.points=t[h(s)].slice(0),t.coordinates[0][2]&&(_[h(r)]=!0),_.spatialReference=u;break;case"LineString":_.paths=[t.coordinates.slice(0)],t.coordinates[0][2]&&(_.hasZ=!0),_.spatialReference=u;break;case"MultiLineString":_.paths=t.coordinates[h(o)](0),t.coordinates[0][0][2]&&(_.hasZ=!0),_.spatialReference=u;break;case"Polygon":_.rings=orientRings(t.coordinates.slice(0)),t.coordinates[0][0][2]&&(_.hasZ=!0),_[h(l)]=u;break;case"MultiPolygon":_.rings=flattenMultiPolygonRings(t.coordinates.slice(0)),t.coordinates[0][0][0][2]&&(_.hasZ=!0),_[h(1800)]=u;break;case"Feature":t.geometry&&(_.geometry=e(t[h(1972)],i)),_[h(2988)]=t[h(3069)]?shallowClone(t.properties):{},t.id&&(_.attributes[i]=t.id);break;case h(c):for(_=[],a=0;a<t.features.length;a++)_.push(e(t[h(1504)][a],i));break;case"GeometryCollection":for(_=[],a=0;a<t.geometries.length;a++)_.push(e(t[h(517)][a],i))}return _};function globals(e){var t=2112,i=2112,a=_0x1658de;e("EPSG:4326",a(1194)),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e(a(2112),"+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e[a(t)],e[a(561)]=e[a(2112)],e["EPSG:900913"]=e["EPSG:3857"],e[a(2707)]=e[a(i)]}var PJD_3PARAM=1,PJD_7PARAM=2,PJD_GRIDSHIFT=3,PJD_WGS84=4,PJD_NODATUM=5,SRS_WGS84_SEMIMAJOR=6378137,SRS_WGS84_SEMIMINOR=6356752.314,SRS_WGS84_ESQUARED=.0066943799901413165,SEC_TO_RAD=484813681109536e-20,HALF_PI=Math.PI/2,SIXTH=.16666666666666666,RA4=.04722222222222222,RA6=.022156084656084655,EPSLN=1e-10,D2R$1=.017453292519943295,R2D=57.29577951308232,FORTPI=Math.PI/4,TWO_PI=2*Math.PI,SPI=3.14159265359,exports$3={},units=(exports$3[_0x1658de(3725)]=0,exports$3.lisbon=-9.131906111111,exports$3.paris=2.337229166667,exports$3[_0x1658de(666)]=-74.080916666667,exports$3.madrid=-3.687938888889,exports$3[_0x1658de(3867)]=12.452333333333,exports$3.bern=7.439583333333,exports$3.jakarta=106.807719444444,exports$3.ferro=-17.666666666667,exports$3[_0x1658de(2214)]=4.367975,exports$3.stockholm=18.058277777778,exports$3[_0x1658de(857)]=23.7163375,exports$3.oslo=10.722916666667,{ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}}),ignoredChar=/[\s_\-\/\(\)]/g;function match(e,t){if(e[t])return e[t];for(var i,a=Object.keys(e),n=t.toLowerCase().replace(ignoredChar,""),s=-1;++s<a.length;)if((i=a[s]).toLowerCase().replace(ignoredChar,"")===n)return e[i]}function projStr(e){var t,i,a,n=1648,s=998,r=3421,o=2396,l=2335,c=2412,h=2095,u=1621,_=1728,p=_0x1658de,m={},d=e[p(4031)]("+").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var i=p,t=t.split("=");return t.push(!0),e[t[0][i(_)]()]=t[1],e},{}),f={proj:p(1166),datum:p(n),rf:function(e){m.rf=parseFloat(e)},lat_0:function(e){m.lat0=e*D2R$1},lat_1:function(e){m.lat1=e*D2R$1},lat_2:function(e){m.lat2=e*D2R$1},lat_ts:function(e){m.lat_ts=e*D2R$1},lon_0:function(e){m[p(u)]=e*D2R$1},lon_1:function(e){m.long1=e*D2R$1},lon_2:function(e){m.long2=e*D2R$1},alpha:function(e){m[p(3629)]=parseFloat(e)*D2R$1},gamma:function(e){m.rectified_grid_angle=parseFloat(e)},lonc:function(e){m.longc=e*D2R$1},x_0:function(e){m.x0=parseFloat(e)},y_0:function(e){m.y0=parseFloat(e)},k_0:function(e){m.k0=parseFloat(e)},k:function(e){m.k0=parseFloat(e)},a:function(e){m.a=parseFloat(e)},b:function(e){m.b=parseFloat(e)},r_a:function(){m[p(h)]=!0},zone:function(e){m.zone=parseInt(e,10)},south:function(){m.utmSouth=!0},towgs84:function(e){var t=p;m.datum_params=e.split(",")[t(c)](function(e){return parseFloat(e)})},to_meter:function(e){m.to_meter=parseFloat(e)},units:function(e){var t=p,e=(m[t(3908)]=e,match(units,e));e&&(m[t(l)]=e.to_meter)},from_greenwich:function(e){m.from_greenwich=e*D2R$1},pm:function(e){var t=p,i=match(exports$3,e);m[t(o)]=(i||parseFloat(e))*D2R$1},nadgrids:function(e){"@null"===e?m.datumCode="none":m.nadgrids=e},axis:function(e){var t=p,i="ewnsud";3===e[t(2822)]&&-1!==i.indexOf(e[t(r)](0,1))&&-1!==i.indexOf(e.substr(1,1))&&-1!==i.indexOf(e.substr(2,1))&&(m.axis=e)},approx:function(){m.approx=!0}};for(t in d)i=d[t],t in f?"function"==typeof(a=f[t])?a(i):m[a]=i:m[t]=i;return"string"==typeof m[p(n)]&&m[p(1648)]!==p(s)&&(m.datumCode=m.datumCode.toLowerCase()),m}var NEUTRAL=1,KEYWORD=2,NUMBER=3,QUOTED=4,AFTERQUOTE=5,ENDED=-1,whitespace=/\s/,latin=/[A-Za-z]/,keyword=/[A-Za-z84_]/,endThings=/[,\]]/,digets=/[\d\.E\-\+]/;function Parser(e){var t=_0x1658de;if("string"!=typeof e)throw new Error("not a string");this.text=e.trim(),this.level=0,this[t(1528)]=0,this[t(1364)]=null,this.stack=[],this.currentObject=null,this[t(671)]=NEUTRAL}function parseString(e){var t=_0x1658de;return new Parser(e)[t(1881)]()}function mapit(e,t,i){var a=_0x1658de,n=(Array[a(2255)](t)&&(i.unshift(t),t=null),t?{}:e),i=i[a(1287)](function(e,t){return sExpr(t,e),e},n);t&&(e[t]=i)}function sExpr(e,t){var i=2255,a=446,n=757,s=529,r=1916,o=_0x1658de;if(Array[o(2255)](e)){var l,c=e.shift();if("PARAMETER"===c&&(c=e.shift()),1===e.length)return Array[o(2255)](e[0])?(t[c]={},void sExpr(e[0],t[c])):void(t[c]=e[0]);if(e[o(2822)])if("TOWGS84"===c)t[c]=e;else if(c===o(2229))c in t||(t[c]=[]),t[c].push(e);else switch(Array[o(i)](c)||(t[c]={}),c){case"UNIT":case"PRIMEM":case o(3315):return t[c]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&sExpr(e[2],t[c]));case"SPHEROID":case"ELLIPSOID":return t[c]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&sExpr(e[3],t[c]));case"PROJECTEDCRS":case"PROJCRS":case o(a):case"GEOCCS":case o(3445):case o(n):case"GEODCRS":case o(s):case"GEODETICDATUM":case o(r):case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case o(3827):return e[0]=[o(640),e[0]],void mapit(t,c,e);default:for(l=-1;++l<e.length;)if(!Array[o(i)](e[l]))return sExpr(e,t[c]);return mapit(t,c,e)}else t[c]=!0}else t[e]=!0}Parser[_0x1658de(2385)][_0x1658de(3795)]=function(){var e=3045,t=_0x1658de,i=this.text[this.place++];if(this.state!==QUOTED)for(;whitespace.test(i);){if(this[t(1528)]>=this.text.length)return;i=this[t(e)][this[t(1528)]++]}switch(this.state){case NEUTRAL:return this[t(4069)](i);case KEYWORD:return this.keyword(i);case QUOTED:return this.quoted(i);case AFTERQUOTE:return this.afterquote(i);case NUMBER:return this.number(i);case ENDED:return}},Parser.prototype[_0x1658de(2904)]=function(e){var t=_0x1658de;if('"'===e)this[t(2138)]+='"',this.state=QUOTED;else{if(!endThings.test(e))throw new Error("havn't handled \""+e+t(3283)+this.place);this[t(2138)]=this.word.trim(),this.afterItem(e)}},Parser.prototype.afterItem=function(e){var t=2138,i=2138,a=_0x1658de;","===e?(null!==this.word&&this.currentObject.push(this[a(t)]),this.word=null,this.state=NEUTRAL):"]"===e&&(this.level--,null!==this.word&&(this[a(1472)].push(this.word),this[a(i)]=null),this[a(671)]=NEUTRAL,this.currentObject=this.stack.pop(),this.currentObject||(this.state=ENDED))},Parser.prototype.number=function(e){var t=_0x1658de;if(digets.test(e))this.word+=e;else{if(!endThings.test(e))throw new Error("havn't handled \""+e+'" in number yet, index '+this[t(1528)]);this.word=parseFloat(this.word),this.afterItem(e)}},Parser.prototype.quoted=function(e){'"'===e?this.state=AFTERQUOTE:this.word+=e},Parser[_0x1658de(2385)].keyword=function(e){var t,i=1461,a=1472,n=1018,s=_0x1658de;if(keyword.test(e))this.word+=e;else if("["===e)(t=[]).push(this.word),this[s(i)]++,null===this.root?this.root=t:this[s(a)][s(n)](t),this.stack[s(1018)](this.currentObject),this.currentObject=t,this[s(671)]=NEUTRAL;else{if(!endThings[s(612)](e))throw new Error(s(2120)+e+'" in keyword yet, index '+this[s(1528)]);this.afterItem(e)}},Parser[_0x1658de(2385)].neutral=function(e){var t=671,i=2138,a=612,n=418,s=_0x1658de;if(latin.test(e))this.word=e,this[s(t)]=KEYWORD;else if('"'===e)this.word="",this.state=QUOTED;else if(digets[s(612)](e))this[s(i)]=e,this[s(671)]=NUMBER;else{if(!endThings[s(a)](e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this[s(n)](e)}},Parser.prototype.output=function(){for(var e=_0x1658de;this.place<this.text[e(2822)];)this.readCharicter();if(this.state===ENDED)return this.root;throw new Error('unable to parse string "'+this.text+e(2092)+this.state)};var D2R=.017453292519943295;function rename(e,t){var i=t[0],a=t[1];!(i in e)&&a in e&&(e[i]=e[a],3===t.length)&&(e[i]=t[2](e[i]))}function d2r(e){return e*D2R}function cleanWKT(t){var e=2607,i=1691,a=2229,n=443,s=2992,r=4025,o=2822,l=1741,c=1488,h=1648,u=991,_=1648,p=3827,m=1454,d=2743,f=2692,y=1673,v=3894,g=1392,C=2649,x=954,b=2346,k=3434,P=2865,w=830,S=3954,T=_0x1658de;if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t[T(1117)]=!0):typeof t[T(1691)]===T(e)?t.projName=Object.keys(t[T(i)])[0]:t[T(1166)]=t.PROJECTION,t.AXIS){for(var M="",E=0,A=t[T(2229)].length;E<A;++E){var L=[t[T(a)][E][0][T(1728)](),t.AXIS[E][1].toLowerCase()];-1!==L[0][T(n)]("north")||("y"===L[0]||"lat"===L[0])&&L[1]===T(s)?M+="n":-1!==L[0].indexOf("south")||("y"===L[0]||"lat"===L[0])&&L[1]===T(3566)?M+="s":-1!==L[0].indexOf("east")||("x"===L[0]||"lon"===L[0])&&L[1]===T(2049)?M+="e":-1===L[0].indexOf(T(r))&&("x"!==L[0]&&"lon"!==L[0]||L[1]!==T(4025))||(M+="w")}2===M[T(o)]&&(M+="u"),3===M[T(2822)]&&(t.axis=M)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units=T(l)),t.UNIT[T(1332)])&&("GEOGCS"===t.type?t[T(3827)]&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t[T(2335)]=t.UNIT.convert);e=t[T(446)];function D(e){return e*(t.to_meter||1)}(e="GEOGCS"===t[T(c)]?t:e)&&(e.DATUM?t[T(1648)]=e.DATUM.name.toLowerCase():t.datumCode=e.name.toLowerCase(),"d_"===t[T(1648)][T(2090)](0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==t[T(h)]&&t.datumCode!==T(u)||(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t[T(i)]&&(t.sphere=!0),t[T(1648)]="wgs84"),"_ferro"===t.datumCode[T(2090)](-6)&&(t[T(h)]=t.datumCode.slice(0,-6)),"_jakarta"===t.datumCode.slice(-8)&&(t[T(_)]=t.datumCode.slice(0,-8)),~t.datumCode[T(443)](T(2382))&&(t[T(1648)]="rnb72"),e[T(p)]&&e.DATUM.SPHEROID&&(t.ellps=e.DATUM.SPHEROID.name[T(1189)]("_19","").replace(/[Cc]larke\_18/,"clrk"),t.ellps[T(1728)]()[T(2090)](0,13)===T(966)&&(t.ellps="intl"),t.a=e[T(3827)].SPHEROID.a,t.rf=parseFloat(e.DATUM.SPHEROID.rf,10)),e[T(p)]&&e.DATUM.TOWGS84&&(t.datum_params=e[T(3827)][T(m)]),~t[T(h)].indexOf(T(3321))&&(t.datumCode="osgb36"),~t[T(1648)].indexOf("osni_1952")&&(t[T(1648)]=T(d)),(~t.datumCode.indexOf("tm65")||~t[T(1648)][T(n)](T(1103)))&&(t[T(1648)]=T(2714)),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t[T(1648)].indexOf("israel"))&&(t.datumCode=T(3386)),t.b&&!isFinite(t.b)&&(t.b=t.a);[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2",T(f)],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting",T(y)],["false_northing","False_Northing"],["false_northing",T(959)],[T(v),T(g)],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin",T(3472)],[T(3115),"Scale_Factor"],["k0",T(3115)],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center",T(C)],[T(x),T(b),d2r],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",d2r],["x0","false_easting",D],["y0",T(3894),D],["long0",T(k),d2r],["lat0","latitude_of_origin",d2r],["lat0","standard_parallel_1",d2r],["lat1","standard_parallel_1",d2r],[T(P),"standard_parallel_2",d2r],[T(w),"Azimuth"],["alpha",T(830),d2r],["srsCode","name"]].forEach(function(e){return rename(t,e)}),t.long0||!t.longc||"Albers_Conic_Equal_Area"!==t.projName&&t[T(1166)]!==T(S)||(t[T(1621)]=t.longc),t.lat_ts||!t.lat1||t.projName!==T(3872)&&t.projName!==T(3091)||(t[T(954)]=d2r(0<t.lat1?90:-90),t.lat_ts=t[T(3221)])}function wkt(e){var t=_0x1658de,e=parseString(e),i=e.shift(),a=e.shift(),a=(e.unshift(["name",a]),e.unshift([t(1488),i]),{});return sExpr(e,a),cleanWKT(a),a}function defs(e){var t=2822,i=2412,a=_0x1658de,n=this;if(2===arguments.length){var s=arguments[1];"string"==typeof s?"+"===s.charAt(0)?defs[e]=projStr(arguments[1]):defs[e]=wkt(arguments[1]):defs[e]=s}else if(1===arguments[a(t)]){if(Array.isArray(e))return e[a(i)](function(e){Array[a(2255)](e)?defs.apply(n,e):defs(e)});if("string"==typeof e){if(e in defs)return defs[e]}else"EPSG"in e?defs["EPSG:"+e.EPSG]=e:"ESRI"in e?defs["ESRI:"+e.ESRI]=e:a(509)in e?defs[a(2469)+e.IAU2000]=e:console.log(e)}}function testObj(e){return"string"==typeof e}function testDef(e){return e in defs}globals(defs);var codeWords=["PROJECTEDCRS","PROJCRS",_0x1658de(446),_0x1658de(1513),"PROJCS","LOCAL_CS","GEODCRS",_0x1658de(529),"GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function testWKT(t){return codeWords.some(function(e){return-1<t[_0x236b(443)](e)})}var codes=["3857","900913","3785","102113"];function checkMercator(e){var t=_0x1658de,e=match(e,"authority");if(e)return(e=match(e,t(3313)))&&-1<codes.indexOf(e)}function checkProjStr(e){var t=1208,i=_0x1658de,e=match(e,i(3202));if(e)return match(e,i(t))}function testProj(e){return"+"===e[0]}function parse(e){var t,i=_0x1658de;return testObj(e)?testDef(e)?defs[e]:testWKT(e)?checkMercator(t=wkt(e))?defs[i(2112)]:(i=checkProjStr(t))?projStr(i):t:testProj(e)?projStr(e):void 0:e}function extend(e,t){var i,a;if(e=e||{},t)for(a in t)void 0!==(i=t[a])&&(e[a]=i)}function msfnz(e,t,i){e*=t;return i/Math.sqrt(1-e*e)}function sign(e){return e<0?-1:1}function adjust_lon(e){return Math[_0x1658de(411)](e)<=SPI?e:e-sign(e)*TWO_PI}function tsfnz(e,t,i){i*=e,i=Math.pow((1-i)/(1+i),.5*e);return Math.tan(.5*(HALF_PI-t))/i}function phi2z(e,t){for(var i,a=.5*e,n=HALF_PI-2*Math.atan(t),s=0;s<=15;s++)if(i=e*Math.sin(n),n+=i=HALF_PI-2*Math.atan(t*Math.pow((1-i)/(1+i),a))-n,Math.abs(i)<=1e-10)return n;return-9999}function init$v(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=msfnz(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function forward$u(e){var t,i=_0x1658de,a=e.x,n=e.y;return 90<n*R2D&&n*R2D<-90&&180<a*R2D&&a*R2D<-180||Math[i(411)](Math.abs(n)-HALF_PI)<=EPSLN?null:(i=this.sphere?(t=this.x0+this.a*this.k0*adjust_lon(a-this.long0),this.y0+this.a*this.k0*Math.log(Math.tan(FORTPI+.5*n))):(i=Math.sin(n),n=tsfnz(this.e,n,i),t=this.x0+this.a*this.k0*adjust_lon(a-this.long0),this.y0-this.a*this.k0*Math.log(n)),e.x=t,e.y=i,e)}function inverse$u(e){var t=_0x1658de,i=e.x-this.x0,a=e.y-this.y0;if(this.sphere)n=HALF_PI-2*Math[t(2604)](Math.exp(-a/(this.a*this.k0)));else{var n,t=Math[t(3011)](-a/(this.a*this.k0));if(-9999===(n=phi2z(this.e,t)))return null}return a=adjust_lon(this.long0+i/(this.a*this.k0)),e.x=a,e.y=n,e}var names$w=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere",_0x1658de(1254)],merc={init:init$v,forward:forward$u,inverse:inverse$u,names:names$w};function init$u(){}function identity(e){return e}var names$v=[_0x1658de(2978),"identity"],longlat={init:init$u,forward:identity,inverse:identity,names:names$v},projs=[merc,longlat],names$u={},projStore=[];function add$1(e,t){var i=projStore.length;return e.names?((projStore[i]=e).names.forEach(function(e){names$u[e[_0x236b(1728)]()]=i}),this):(console.log(t),!0)}function get$1(e){var t=_0x1658de;return!!e&&(e=e.toLowerCase(),typeof names$u[e]!==t(3262)&&projStore[names$u[e]]?projStore[names$u[e]]:void 0)}function start(){projs[_0x1658de(2432)](add$1)}var projections={start:start,add:add$1,get:get$1},exports$2={},WGS84=(exports$2.MERIT={a:6378137,rf:298.257,ellipseName:_0x1658de(1559)},exports$2[_0x1658de(3505)]={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},exports$2.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},exports$2.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},exports$2.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},exports$2.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},exports$2.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},exports$2[_0x1658de(3677)]={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},exports$2.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},exports$2[_0x1658de(1385)]={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},exports$2.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},exports$2[_0x1658de(1080)]={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},exports$2.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:_0x1658de(2351)},exports$2.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},exports$2.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},exports$2.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:_0x1658de(1566)},exports$2.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},exports$2.delmbr={a:6376428,rf:311.5,ellipseName:_0x1658de(3460)},exports$2.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},exports$2[_0x1658de(2212)]={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},exports$2.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},exports$2[_0x1658de(2224)]={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},exports$2[_0x1658de(3131)]={a:6377295.664,rf:300.8017,ellipseName:_0x1658de(2231)},exports$2.evrstSS={a:6377298.556,rf:300.8017,ellipseName:_0x1658de(2661)},exports$2.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},exports$2.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},exports$2[_0x1658de(3995)]={a:6378150,rf:298.3,ellipseName:_0x1658de(3871)},exports$2[_0x1658de(2740)]={a:6378200,rf:298.3,ellipseName:_0x1658de(3104)},exports$2[_0x1658de(2596)]={a:6378270,rf:297,ellipseName:"Hough"},exports$2.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},exports$2.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},exports$2.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},exports$2.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},exports$2[_0x1658de(4021)]={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},exports$2.plessis={a:6376523,rf:6355863,ellipseName:_0x1658de(2315)},exports$2.krass={a:6378245,rf:298.3,ellipseName:_0x1658de(3843)},exports$2.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},exports$2[_0x1658de(1694)]={a:6376896,b:6355834.8467,ellipseName:_0x1658de(1190)},exports$2.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},exports$2.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},exports$2.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"},exports$2[_0x1658de(998)]={a:6378137,rf:298.257223563,ellipseName:"WGS 84"});function eccentricity(e,t,i,a){var n=e*e,t=t*t,s=(n-t)/n,r=0,a=(a?(n=(e*=1-s*(SIXTH+s*(RA4+s*RA6)))*e,s=0):r=Math.sqrt(s),(n-t)/t);return{es:s,e:r,ep2:a}}function sphere(e,t,i,a,n){return e||(e=(a=(a=match(exports$2,a))?a:WGS84).a,t=a.b,i=a.rf),i&&!t&&(t=(1-1/i)*e),(0===i||Math.abs(e-t)<EPSLN)&&(n=!0,t=e),{a:e,b:t,rf:i,sphere:n}}exports$2.sphere={a:6370997,b:6370997,ellipseName:_0x1658de(2202)};var exports$1={};function datum(e,t,i,a,n,s,r){var o=2412,l=3882,c=973,h=_0x1658de,u={};return void 0===e||"none"===e?u[h(3061)]=PJD_NODATUM:u.datum_type=PJD_WGS84,t&&(u.datum_params=t[h(o)](parseFloat),0===u.datum_params[0]&&0===u[h(l)][1]&&0===u.datum_params[2]||(u.datum_type=PJD_3PARAM),3<u.datum_params[h(2822)])&&(0!==u.datum_params[3]||0!==u[h(3882)][4]||0!==u.datum_params[5]||0!==u.datum_params[6])&&(u.datum_type=PJD_7PARAM,u[h(3882)][3]*=SEC_TO_RAD,u.datum_params[4]*=SEC_TO_RAD,u.datum_params[5]*=SEC_TO_RAD,u.datum_params[6]=u.datum_params[6]/1e6+1),r&&(u.datum_type=PJD_GRIDSHIFT,u[h(c)]=r),u.a=i,u.b=a,u.es=n,u.ep2=s,u}exports$1[_0x1658de(3667)]={towgs84:"0,0,0",ellipse:"WGS84",datumName:_0x1658de(998)},exports$1[_0x1658de(3902)]={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},exports$1.ggrs87={towgs84:_0x1658de(691),ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},exports$1.nad83={towgs84:_0x1658de(2938),ellipse:_0x1658de(2285),datumName:_0x1658de(839)},exports$1.nad27={nadgrids:_0x1658de(627),ellipse:_0x1658de(3411),datumName:_0x1658de(3747)},exports$1.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},exports$1.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},exports$1.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},exports$1.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:_0x1658de(2298),datumName:"Irish National"},exports$1[_0x1658de(2714)]={towgs84:_0x1658de(2674),ellipse:"mod_airy",datumName:"Ireland 1965"},exports$1.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},exports$1.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:_0x1658de(2849),datumName:"New Zealand Geodetic Datum 1949"},exports$1.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},exports$1.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},exports$1.beduaram={towgs84:"-106,-87,188",ellipse:_0x1658de(2491),datumName:"Beduaram"},exports$1.gunung_segara={towgs84:"-403,684,41",ellipse:_0x1658de(1080),datumName:_0x1658de(1422)},exports$1.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:_0x1658de(2871)};var loadedNadgrids={};function nadgrid(e,t){var i=_0x1658de,t=new DataView(t),a=detectLittleEndian(t),n=readHeader(t,a);1<n[i(2551)]&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");i={header:n,subgrids:readSubgrids(t,n,a)};return loadedNadgrids[e]=i}function getNadgrids(e){return void 0===e?null:e.split(",").map(parseNadgridString)}function parseNadgridString(e){var t,i=2090,a=3210,n=_0x1658de;return 0===e.length?null:(e=(t="@"===e[0])?e[n(i)](1):e)===n(a)?{name:n(3210),mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:loadedNadgrids[e]||null,isNull:!1}}function secondsToRadians(e){return e/3600*Math.PI/180}function detectLittleEndian(e){var t=_0x1658de;return 11!==e[t(2442)](8,!1)&&(11!==e.getInt32(8,!0)&&console.warn(t(773)),!0)}function readHeader(e,t){var i=_0x1658de;return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:decodeString(e,56,64).trim(),fromSemiMajorAxis:e[i(2289)](120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e[i(2289)](152,t),toSemiMinorAxis:e.getFloat64(168,t)}}function decodeString(e,t,i){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,i)))}function readSubgrids(e,t,i){for(var a=3573,n=498,s=763,r=3361,o=_0x1658de,l=[],c=0;c<t[o(2551)];c++){var h=readGridHeader(e,176,i),u=readGridNodes(e,176,h,i),_=Math.round(1+(h.upperLongitude-h[o(a)])/h.longitudeInterval),p=Math[o(n)](1+(h[o(2632)]-h[o(s)])/h.latitudeInterval);l.push({ll:[secondsToRadians(h.lowerLongitude),secondsToRadians(h[o(763)])],del:[secondsToRadians(h.longitudeInterval),secondsToRadians(h[o(r)])],lim:[_,p],count:h.gridNodeCount,cvs:mapNodes(u)})}return l}function mapNodes(e){var i=_0x1658de;return e[i(2412)](function(e){var t=i;return[secondsToRadians(e.longitudeShift),secondsToRadians(e[t(2321)])]})}function readGridHeader(e,t,i){var a=_0x1658de;return{name:decodeString(e,t+8,t+16)[a(3559)](),parent:decodeString(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,i),upperLatitude:e.getFloat64(t+88,i),lowerLongitude:e.getFloat64(t+104,i),upperLongitude:e.getFloat64(t+120,i),latitudeInterval:e.getFloat64(t+136,i),longitudeInterval:e.getFloat64(t+152,i),gridNodeCount:e.getInt32(t+168,i)}}function readGridNodes(e,t,i,a){for(var n=_0x1658de,s=t+176,r=[],o=0;o<i.gridNodeCount;o++){var l={latitudeShift:e.getFloat32(s+16*o,a),longitudeShift:e.getFloat32(s+16*o+4,a),latitudeAccuracy:e.getFloat32(s+16*o+8,a),longitudeAccuracy:e[n(810)](s+16*o+12,a)};r.push(l)}return r}function Projection(e,t){var i=3754,a=1166,n=3667,s=3221,r=3221,o=2095,l=1023,c=3482,h=_0x1658de;if(!(this instanceof Projection))return new Projection(e);t=t||function(e){if(e)throw e};var u=parse(e);"object"==typeof u&&(i=Projection[h(2616)][h(i)](u[h(a)]))?(u.datumCode&&"none"!==u.datumCode&&(a=match(exports$1,u.datumCode))&&(u.datum_params=u[h(3882)]||(a[h(3447)]?a.towgs84.split(","):null),u.ellps=a.ellipse,u.datumName=a[h(3117)]?a.datumName:u.datumCode),u.k0=u.k0||1,u.axis=u.axis||"enu",u[h(1465)]=u.ellps||h(n),u[h(s)]=u[h(r)]||u.lat0,n=eccentricity((a=sphere(u.a,u.b,u.rf,u.ellps,u.sphere)).a,a.b,a.rf,u[h(o)]),s=getNadgrids(u.nadgrids),r=u.datum||datum(u[h(1648)],u.datum_params,a.a,a.b,n.es,n[h(l)],s),extend(this,u),extend(this,i),this.a=a.a,this.b=a.b,this.rf=a.rf,this.sphere=a.sphere,this.es=n.es,this.e=n.e,this[h(1023)]=n.ep2,this.datum=r,this[h(c)](),t(null,this)):t(e)}function compareDatums(e,t){var i=3882,a=3882,n=_0x1658de;return e.datum_type===t.datum_type&&!(e.a!==t.a||5e-11<Math.abs(e.es-t.es))&&(e.datum_type===PJD_3PARAM?e.datum_params[0]===t.datum_params[0]&&e[n(i)][1]===t[n(i)][1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==PJD_7PARAM||e.datum_params[0]===t[n(3882)][0]&&e.datum_params[1]===t[n(i)][1]&&e.datum_params[2]===t.datum_params[2]&&e[n(a)][3]===t.datum_params[3]&&e[n(3882)][4]===t.datum_params[4]&&e[n(3882)][5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}function geodeticToGeocentric(e,t,i){var a=e.x,n=e.y,s=e.z||0;if(n<-HALF_PI&&-1.001*HALF_PI<n)n=-HALF_PI;else if(HALF_PI<n&&n<1.001*HALF_PI)n=HALF_PI;else{if(n<-HALF_PI)return{x:-1/0,y:-1/0,z:e.z};if(HALF_PI<n)return{x:1/0,y:1/0,z:e.z}}return a>Math.PI&&(a-=2*Math.PI),e=Math.sin(n),n=Math.cos(n),{x:((i=i/Math.sqrt(1-t*(e*e)))+s)*n*Math.cos(a),y:(i+s)*n*Math.sin(a),z:(i*(1-t)+s)*e}}function geocentricToGeodetic(e,t,i,a){var n,s,r,o,l,c,h,u,_,p,m,d=2921,f=_0x1658de,y=1e-12,v=e.x,g=e.y,C=e.z||0,x=Math[f(2921)](v*v+g*g),b=Math.sqrt(v*v+g*g+C*C);if(x/i<y){if(p=0,b/i<y)return m=-a,{x:e.x,y:e.y,z:e.z}}else p=Math.atan2(g,v);for(n=C/b,o=(s=x/b)*(1-t)*(r=1/Math.sqrt(1-t*(2-t)*s*s)),l=n*r,_=0;_++,u=t*(u=i/Math.sqrt(1-t*l*l))/(u+(m=x*o+C*l-u*(1-t*l*l))),u=(h=n*(r=1/Math[f(d)](1-u*(2-u)*s*s)))*o-(c=s*(1-u)*r)*l,o=c,l=h,1e-24<u*u&&_<30;);return{x:p,y:Math.atan(h/Math.abs(c)),z:m}}function geocentricToWgs84(e,t,i){var a,n,s,r,o;return t===PJD_3PARAM?{x:e.x+i[0],y:e.y+i[1],z:e.z+i[2]}:t===PJD_7PARAM?(t=i[0],a=i[1],n=i[2],s=i[3],r=i[4],o=i[5],{x:(i=i[6])*(e.x-o*e.y+r*e.z)+t,y:i*(o*e.x+e.y-s*e.z)+a,z:i*(-r*e.x+s*e.y+e.z)+n}):void 0}function geocentricFromWgs84(e,t,i){var a,n,s,r,o;return t===PJD_3PARAM?{x:e.x-i[0],y:e.y-i[1],z:e.z-i[2]}:t===PJD_7PARAM?(t=i[0],o=i[1],a=i[2],n=i[3],s=i[4],r=i[5],i=i[6],{x:(t=(e.x-t)/i)+r*(o=(e.y-o)/i)-s*(e=(e.z-a)/i),y:-r*t+o+n*e,z:s*t-n*o+e}):void 0}function checkParams(e){return e===PJD_3PARAM||e===PJD_7PARAM}function datum_transform(e,t,i){var a=3061,n=3061,s=3061,r=_0x1658de;if(!compareDatums(e,t)&&e.datum_type!==PJD_NODATUM&&t[r(a)]!==PJD_NODATUM){var o=e.a,l=e.es;if(e.datum_type===PJD_GRIDSHIFT){if(0!==applyGridShift(e,!1,i))return;o=SRS_WGS84_SEMIMAJOR,l=SRS_WGS84_ESQUARED}var c=t.a,h=t.b,u=t.es;if(t.datum_type===PJD_GRIDSHIFT&&(c=SRS_WGS84_SEMIMAJOR,h=SRS_WGS84_SEMIMINOR,u=SRS_WGS84_ESQUARED),l!==u||o!==c||checkParams(e[r(n)])||checkParams(t[r(a)]))if(i=geodeticToGeocentric(i,l,o),checkParams(e[r(s)])&&(i=geocentricToWgs84(i,e.datum_type,e.datum_params)),i=geocentricToGeodetic(i=checkParams(t.datum_type)?geocentricFromWgs84(i,t[r(3061)],t.datum_params):i,u,c,h),t.datum_type===PJD_GRIDSHIFT)if(0!==applyGridShift(t,!0,i))return}return i}function applyGridShift(e,t,i){var a=973,n=3418,s=973,r=2822,o=2399,l=551,c=1133,h=942,u=_0x1658de;if(null===e.grids||0===e[u(a)].length)return console.log(u(n)),-1;for(var _={x:-i.x,y:i.y},p={x:Number.NaN,y:Number.NaN},m=[],d=0;d<e[u(s)][u(r)];d++){var f=e[u(973)][d];if(m.push(f.name),f[u(o)]){p=_;break}if(null===f.grid){if(f[u(l)])return console.log("Unable to find mandatory grid '"+f[u(640)]+"'"),-1}else{var f=f.grid.subgrids[0],y=(Math.abs(f[u(c)][1])+Math.abs(f[u(c)][0]))/1e4,v=f.ll[0]-y,g=f.ll[1]-y,C=f.ll[0]+(f[u(h)][0]-1)*f.del[0]+y,y=f.ll[1]+(f.lim[1]-1)*f.del[1]+y;if(!(_.y<g||_.x<v||y<_.y||C<_.x||(p=applySubgridShift(_,t,f),isNaN(p.x))))break}}return isNaN(p.x)?(console.log("Failed to find a grid shift table for location '"+-_.x*R2D+" "+_.y*R2D+" tried: '"+m+"'"),-1):(i.x=-p.x,i.y=p.y,0)}function applySubgridShift(e,t,i){var a=_0x1658de,a={x:Number.NaN,y:Number[a(2583)]};if(!isNaN(e.x)){var n={x:e.x,y:e.y},s=(n.x-=i.ll[0],n.y-=i.ll[1],n.x=adjust_lon(n.x-Math.PI)+Math.PI,nadInterpolate(n,i));if(t){if(isNaN(s.x))return a;s.x=n.x-s.x,s.y=n.y-s.y;var r,o=9;do{if(r=nadInterpolate(s,i),isNaN(r.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}}while(r={x:n.x-(r.x+s.x),y:n.y-(r.y+s.y)},s.x+=r.x,s.y+=r.y,o--&&1e-12<Math.abs(r.x)&&1e-12<Math.abs(r.y));if(o<0)return console.log("Inverse grid shift iterator failed to converge."),a;a.x=adjust_lon(s.x+i.ll[0]),a.y=s.y+i.ll[1]}else isNaN(s.x)||(a.x=e.x+s.x,a.y=e.y+s.y)}return a}function nadInterpolate(e,t){var i,a,n,s,r,o,l=_0x1658de,e={x:e.x/t.del[0],y:e.y/t.del[1]},c=Math.floor(e.x),h=Math.floor(e.y),u=e.x-+c,e=e.y-+h,_={x:Number.NaN,y:Number.NaN};return c<0||c>=t.lim[0]||h<0||h>=t.lim[1]||(h=h*t.lim[0]+c,c=t.cvs[h][0],i=t.cvs[h][1],o=t.cvs[++h][0],a=t.cvs[h][1],h+=t[l(942)][0],n=t[l(1551)][h][0],s=t.cvs[h][1],r=t.cvs[--h][0],t=t[l(1551)][h][1],_.x=(l=(1-u)*(1-e))*c+(h=u*(1-e))*o+(c=(1-u)*e)*r+(o=u*e)*n,_.y=l*i+h*a+c*t+o*s),_}function adjust_axis(e,t,i){for(var a,n,s=443,r=443,o=_0x1658de,l=i.x,c=i.y,h=i.z||0,u={},_=0;_<3;_++)if(!t||2!==_||void 0!==i.z)switch(n=0===_?(a=l,-1!=="ew"[o(s)](e.axis[_])?"x":"y"):1===_?(a=c,-1!=="ns"[o(r)](e.axis[_])?"y":"x"):(a=h,"z"),e.axis[_]){case"e":u[n]=a;break;case"w":u[n]=-a;break;case"n":u[n]=a;break;case"s":u[n]=-a;break;case"u":void 0!==i[n]&&(u.z=a);break;case"d":void 0!==i[n]&&(u.z=-a);break;default:return null}return u}function common(e){var t={x:e[0],y:e[1]};return 2<e.length&&(t.z=e[2]),3<e.length&&(t.m=e[3]),t}function checkSanity(e){checkCoord(e.x),checkCoord(e.y)}function checkCoord(e){var t=_0x1658de;if("function"==typeof Number[t(1092)]){if(Number[t(1092)](e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError(t(2590))}function checkNotWGS(e,t){var i=_0x1658de;return(e.datum[i(3061)]===PJD_3PARAM||e.datum[i(3061)]===PJD_7PARAM)&&"WGS84"!==t.datumCode||(t.datum.datum_type===PJD_3PARAM||t.datum.datum_type===PJD_7PARAM)&&"WGS84"!==e.datumCode}function transform(e,t,i,a){var n=3661,s=1166,r=2335,o=_0x1658de;if(checkSanity(i=Array[o(2255)](i)?common(i):i),e[o(n)]&&t.datum&&checkNotWGS(e,t)&&(i=transform(e,n=new Projection("WGS84"),i,a),e=n),a&&"enu"!==e.axis&&(i=adjust_axis(e,!1,i)),"longlat"===e.projName)i={x:i.x*D2R$1,y:i.y*D2R$1,z:i.z||0};else if(e[o(2335)]&&(i={x:i.x*e.to_meter,y:i.y*e.to_meter,z:i.z||0}),!(i=e.inverse(i)))return;if(e[o(2396)]&&(i.x+=e.from_greenwich),i=datum_transform(e.datum,t.datum,i))return t.from_greenwich&&(i={x:i.x-t.from_greenwich,y:i.y,z:i.z||0}),"longlat"===t[o(s)]?i={x:i.x*R2D,y:i.y*R2D,z:i.z||0}:(i=t.forward(i),t[o(r)]&&(i={x:i.x/t.to_meter,y:i.y/t.to_meter,z:i.z||0})),a&&"enu"!==t.axis?adjust_axis(t,!0,i):i}Projection[_0x1658de(2616)]=projections,Projection[_0x1658de(2616)].start();var wgs84=Projection(_0x1658de(998));function transformer(i,a,n,e){var t,s,r=3262,o=3414,l=2822,c=_0x1658de;return Array[c(2255)](n)?(t=transform(i,a,n,e)||{x:NaN,y:NaN},2<n.length?typeof i[c(640)]!==c(r)&&i.name===c(o)||void 0!==a.name&&"geocent"===a.name?(typeof t.z===c(1452)?[t.x,t.y,t.z]:[t.x,t.y,n[2]]).concat(n.splice(3)):[t.x,t.y][c(2557)](n.splice(2)):[t.x,t.y]):(s=transform(i,a,n,e),2!==(r=Object.keys(n))[c(l)]&&r[c(2432)](function(e){var t=c;if(typeof i.name!==t(3262)&&"geocent"===i.name||void 0!==a.name&&"geocent"===a[t(640)]){if("x"===e||"y"===e||"z"===e)return}else if("x"===e||"y"===e)return;s[e]=n[e]}),s)}function checkProj(e){return e instanceof Projection?e:e.oProj||Projection(e)}function proj4(i,a,e){i=checkProj(i);var t=!1;return void 0===a?(a=i,i=wgs84,t=!0):void 0===a.x&&!Array.isArray(a)||(e=a,a=i,i=wgs84,t=!0),a=checkProj(a),e?transformer(i,a,e):(e={forward:function(e,t){return transformer(i,a,e,t)},inverse:function(e,t){return transformer(a,i,e,t)}},t&&(e.oProj=a),e)}var NUM_100K_SETS=6,SET_ORIGIN_COLUMN_LETTERS="AJSAJS",SET_ORIGIN_ROW_LETTERS=_0x1658de(2593),A=65,I=73,O=79,V=86,Z=90,mgrs={forward:forward$t,inverse:inverse$t,toPoint:toPoint};function forward$t(e,t){return t=t||5,encode$1(LLtoUTM({lat:e[1],lon:e[0]}),t)}function inverse$t(e){var t=_0x1658de,e=UTMtoLL(decode(e.toUpperCase()));return e.lat&&e[t(1005)]?[e[t(1005)],e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function toPoint(e){var t=_0x1658de,e=UTMtoLL(decode(e.toUpperCase()));return e.lat&&e[t(1005)]?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function degToRad(e){return e*(Math.PI/180)}function radToDeg(e){return e/Math.PI*180}function LLtoUTM(e){var t=1642,i=3007,a=1642,n=498,s=_0x1658de,r=e[s(654)],e=e.lon,o=.00669438,l=degToRad(r),c=degToRad(e),h=Math.floor((e+180)/6)+1;180===e&&(h=60),56<=r&&r<64&&3<=e&&e<12&&(h=32),72<=r&&r<84&&(0<=e&&e<9?h=31:9<=e&&e<21?h=33:21<=e&&e<33?h=35:33<=e&&e<42&&(h=37));var e=degToRad(6*(h-1)-180+3),u=o/(1-o),_=6378137/Math.sqrt(1-o*Math.sin(l)*Math.sin(l)),t=Math.tan(l)*Math[s(t)](l),i=u*Math[s(i)](l)*Math[s(3007)](l),e=.9996*_*((c=Math.cos(l)*(c-e))+(1-t+i)*c*c*c/6+(5-18*t+t*t+72*i-58*u)*c*c*c*c*c/120)+5e5,o=.9996*(6378137*(.9983242984503243*l-.002514607064228144*Math.sin(2*l)+2639046602129982e-21*Math.sin(4*l)-35*o*o*o/3072*Math[s(1868)](6*l))+_*Math[s(a)](l)*(c*c/2+(5-t+9*i+4*i*i)*c*c*c*c/24+(61-58*t+t*t+600*i-330*u)*c*c*c*c*c*c/720));return r<0&&(o+=1e7),{northing:Math[s(n)](o),easting:Math.round(e),zoneNumber:h,zoneLetter:getLetterDesignator(r)}}function UTMtoLL(e){var t,i,a,n=1682,s=1868,r=1642,o=3007,l=3890,c=_0x1658de,h=e.northing,n=e[c(n)],u=e.zoneLetter,_=e.zoneNumber;return _<0||60<_?null:(a=6378137,n=n-5e5,h=h,u<"N"&&(h-=1e7),u=6*(_-1)-180+3,t=(_=.00669438)/(1-_),i=(h=h/.9996/6367449.145945056)+(3*(i=(1-Math.sqrt(1-_))/(1+Math.sqrt(1-_)))/2-27*i*i*i/32)*Math.sin(2*h)+(21*i*i/16-55*i*i*i*i/32)*Math.sin(4*h)+151*i*i*i/96*Math[c(1868)](6*h),h=a/Math.sqrt(1-_*Math[c(s)](i)*Math[c(1868)](i)),s=Math.tan(i)*Math[c(r)](i),r=t*Math.cos(i)*Math.cos(i),a=a*(1-_)/Math.pow(1-_*Math[c(1868)](i)*Math.sin(i),1.5),_=n/(.9996*h),n=radToDeg(n=i-h*Math[c(1642)](i)/a*(_*_/2-(5+3*s+10*r-4*r*r-9*t)*_*_*_*_/24+(61+90*s+298*r+45*s*s-252*t-3*r*r)*_*_*_*_*_*_/720)),h=u+radToDeg(h=(_-(1+2*s+r)*_*_*_/6+(5-2*r+28*s-3*r*r+8*t+24*s*s)*_*_*_*_*_/120)/Math[c(o)](i)),e.accuracy?{top:(a=UTMtoLL({northing:e.northing+e.accuracy,easting:e.easting+e[c(l)],zoneLetter:e[c(2215)],zoneNumber:e[c(1014)]})).lat,right:a.lon,bottom:n,left:h}:{lat:n,lon:h})}function getLetterDesignator(e){var t="Z";return e<=84&&72<=e?t="X":e<72&&64<=e?t="W":e<64&&56<=e?t="V":e<56&&48<=e?t="U":e<48&&40<=e?t="T":e<40&&32<=e?t="S":e<32&&24<=e?t="R":e<24&&16<=e?t="Q":e<16&&8<=e?t="P":e<8&&0<=e?t="N":e<0&&-8<=e?t="M":e<-8&&-16<=e?t="L":e<-16&&-24<=e?t="K":e<-24&&-32<=e?t="J":e<-32&&-40<=e?t="H":e<-40&&-48<=e?t="G":e<-48&&-56<=e?t="F":e<-56&&-64<=e?t="E":e<-64&&-72<=e?t="D":e<-72&&-80<=e&&(t="C"),t}function encode$1(e,t){var i=2215,a=3421,n=_0x1658de,s="00000"+e.easting,r="00000"+e.northing;return e.zoneNumber+e[n(i)]+get100kID(e.easting,e.northing,e.zoneNumber)+s[n(3421)](s.length-5,t)+r[n(a)](r.length-5,t)}function get100kID(e,t,i){i=get100kSetForZone(i);return getLetter100kID(Math.floor(e/1e5),Math.floor(t/1e5)%20,i)}function get100kSetForZone(e){e%=NUM_100K_SETS;return e=0===e?NUM_100K_SETS:e}function getLetter100kID(e,t,i){var a=_0x1658de,i=i-1,n=SET_ORIGIN_COLUMN_LETTERS.charCodeAt(i),i=SET_ORIGIN_ROW_LETTERS.charCodeAt(i),e=n+e-1,t=i+t,s=!1;return Z<e&&(e=e-Z+A-1,s=!0),(e===I||n<I&&I<e||(I<e||n<I)&&s)&&e++,(e===O||n<O&&O<e||(O<e||n<O)&&s)&&++e===I&&e++,Z<e&&(e=e-Z+A-1),s=V<t&&(t=t-V+A-1,!0),(t===I||i<I&&I<t||(I<t||i<I)&&s)&&t++,(t===O||i<O&&O<t||(O<t||i<O)&&s)&&++t===I&&t++,V<t&&(t=t-V+A-1),String.fromCharCode(e)+String[a(3226)](t)}function decode(e){var t=2822,i=_0x1658de;if(e&&0===e[i(2822)])throw"MGRSPoint coverting from nothing";for(var a,t=e[i(t)],n=null,s="",r=0;!/[A-Z]/.test(a=e.charAt(r));){if(2<=r)throw"MGRSPoint bad conversion from: "+e;s+=a,r++}var o=parseInt(s,10);if(0===r||t<r+3)throw"MGRSPoint bad conversion from: "+e;var l=e.charAt(r++);if(l<="A"||"B"===l||"Y"===l||"Z"<=l||"I"===l||"O"===l)throw"MGRSPoint zone letter "+l+" not handled: "+e;for(var n=e.substring(r,r+=2),c=get100kSetForZone(o),h=getEastingFromChar(n.charAt(0),c),u=getNorthingFromChar(n.charAt(1),c);u<getMinNorthing(l);)u+=2e6;n=t-r;if(n%2!=0)throw i(343)+e;var _,p,c=n/2,t=0,n=0;return 0<c&&(_=1e5/Math.pow(10,c),p=e.substring(r,r+c),t=parseFloat(p)*_,p=e[i(3998)](r+c),n=parseFloat(p)*_),{easting:t+h,northing:n+u,zoneLetter:l,zoneNumber:o,accuracy:_}}function getEastingFromChar(e,t){for(var i=SET_ORIGIN_COLUMN_LETTERS[_0x1658de(3105)](t-1),a=1e5,n=!1;i!==e.charCodeAt(0);){if(++i===I&&i++,i===O&&i++,Z<i){if(n)throw"Bad character: "+e;i=A,n=!0}a+=1e5}return a}function getNorthingFromChar(e,t){var i=3105,a=_0x1658de;if("V"<e)throw a(1768)+e;for(var n=SET_ORIGIN_ROW_LETTERS[a(3105)](t-1),s=0,r=!1;n!==e[a(i)](0);){if(++n===I&&n++,n===O&&n++,V<n){if(r)throw"Bad character: "+e;n=A,r=!0}s+=1e5}return s}function getMinNorthing(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(0<=t)return t;throw"Invalid zone letter: "+e}function Point(e,t,i){var a=_0x1658de;if(!(this instanceof Point))return new Point(e,t,i);Array.isArray(e)?(this.x=e[0],this.y=e[1],this.z=e[2]||0):"object"==typeof e?(this.x=e.x,this.y=e.y,this.z=e.z||0):"string"==typeof e&&void 0===t?(a=e[a(4031)](","),this.x=parseFloat(a[0],10),this.y=parseFloat(a[1],10),this.z=parseFloat(a[2],10)||0):(this.x=e,this.y=t,this.z=i||0),console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Point[_0x1658de(1122)]=function(e){return new Point(toPoint(e))},Point[_0x1658de(2385)].toMGRS=function(e){return forward$t([this.x,this.y],e)};var C00=1,C02=.25,C04=.046875,C06=.01953125,C08=.01068115234375,C22=.75,C44=.46875,C46=.013020833333333334,C48=.007120768229166667,C66=.3645833333333333,C68=.005696614583333333,C88=.3076171875;function pj_enfn(e){var t=[],i=(t[0]=C00-e*(C02+e*(C04+e*(C06+e*C08))),t[1]=e*(C22-e*(C04+e*(C06+e*C08))),e*e);return t[2]=i*(C44-e*(C46+e*C48)),t[3]=(i*=e)*(C66-e*C68),t[4]=i*e*C88,t}function pj_mlfn(e,t,i,a){return a[0]*e-(i*=t)*(a[1]+(t*=t)*(a[2]+t*(a[3]+t*a[4])))}var MAX_ITER$3=20;function pj_inv_mlfn(e,t,i){for(var a=_0x1658de,n=1/(1-t),s=e,r=MAX_ITER$3;r;--r){var o=Math.sin(s),l=1-t*o*o;if(s-=l=(pj_mlfn(s,o,Math.cos(s),i)-e)*(l*Math.sqrt(l))*n,Math[a(411)](l)<EPSLN)return s}return s}function init$t(){var e=954,t=_0x1658de;this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this[t(1621)]:0,this[t(954)]=void 0!==this.lat0?this[t(954)]:0,this.es&&(this.en=pj_enfn(this.es),this.ml0=pj_mlfn(this[t(e)],Math.sin(this[t(e)]),Math.cos(this[t(954)]),this.en))}function forward$s(e){var t=_0x1658de,i=e.x,a=e.y,i=adjust_lon(i-this.long0),n=Math.sin(a),s=Math.cos(a);if(this.es)var r=s*i,o=Math.pow(r,2),l=this.ep2*Math.pow(s,2),c=Math.pow(l,2),h=Math.abs(s)>EPSLN?Math.tan(a):0,h=Math.pow(h,2),u=Math.pow(h,2),_=1-this.es*Math.pow(n,2),_=(r/=Math.sqrt(_),pj_mlfn(a,n,s,this.en)),p=this.a*(this.k0*r*(1+o/6*(1-h+l+o/20*(5-18*h+u+14*l-58*h*l+o/42*(61+179*u-u*h-479*h)))))+this.x0,_=this.a*(this.k0*(_-this.ml0+n*i*r/2*(1+o/12*(5-h+9*l+4*c+o/30*(61+u-58*h+270*l-330*h*l+o/56*(1385+543*u-u*h-3111*h))))))+this.y0;else{n=s*Math.sin(i);if(Math.abs(Math.abs(n)-1)<EPSLN)return 93;if(p=.5*this.a*this.k0*Math.log((1+n)/(1-n))+this.x0,_=s*Math.cos(i)/Math.sqrt(1-Math[t(2127)](n,2)),1<=(n=Math.abs(_))){if(EPSLN<n-1)return 93;_=0}else _=Math.acos(_);_=this.a*this.k0*((_=a<0?-_:_)-this[t(954)])+this.y0}return e.x=p,e.y=_,e}function inverse$s(e){var t,i,a,n,s,r,o,l,c=2921,h=3007,u=_0x1658de,_=(e.x-this.x0)*(1/this.a),p=(e.y-this.y0)*(1/this.a);return i=this.es?(r=pj_inv_mlfn(o=this.ml0+p/this.k0,this.es,this.en),Math.abs(r)<HALF_PI?(n=Math.sin(r),h=Math[u(h)](r),l=Math.abs(h)>EPSLN?Math.tan(r):0,s=this.ep2*Math.pow(h,2),a=Math.pow(s,2),t=Math[u(2127)](l,2),i=Math.pow(t,2),o=1-this.es*Math[u(2127)](n,2),n=_*Math.sqrt(o)/this.k0,l=r-(o*=l)*(r=Math.pow(n,2))/(1-this.es)*.5*(1-r/12*(5+3*t-9*s*t+s-4*a-r/30*(61+90*t-252*s*t+45*i+46*s-r/56*(1385+3633*t+4095*i+1574*i*t)))),adjust_lon(this.long0+n*(1-r/6*(1+2*t+s-r/20*(5+28*t+24*i+8*s*t+6*s-r/42*(61+662*t+1320*i+720*i*t))))/h)):(l=HALF_PI*sign(p),0)):(n=.5*((a=Math.exp(_/this.k0))-1/a),s=this.lat0+p/this.k0,r=Math.cos(s),o=Math[u(c)]((1-Math.pow(r,2))/(1+Math.pow(n,2))),l=Math.asin(o),p<0&&(l=-l),0==n&&0===r?0:adjust_lon(Math.atan2(n,r)+this.long0)),e.x=i,e.y=l,e}var names$t=[_0x1658de(1399),"Fast Transverse Mercator"],tmerc={init:init$t,forward:forward$s,inverse:inverse$s,names:names$t};function sinh(e){e=Math.exp(e);return(e-1/e)/2}function hypot(e,t){var i=1245,a=2921,n=_0x1658de,i=(e=Math[n(411)](e),t=Math.abs(t),Math[n(i)](e,t)),e=Math[n(3924)](e,t)/(i||1);return i*Math[n(a)](1+Math.pow(e,2))}function log1py(e){var t=1+e,i=t-1;return 0==i?e:e*Math.log(t)/i}function asinhy(e){var t=log1py((t=Math.abs(e))*(1+t/(hypot(1,t)+1)));return e<0?-t:t}function gatg(e,t){for(var i,a=2*Math[_0x1658de(3007)](2*t),n=e.length-1,s=e[n],r=0;0<=--n;)i=a*s-r+e[n],r=s,s=i;return t+i*Math.sin(2*t)}function clens(e,t){for(var i,a=2*Math.cos(t),n=e.length-1,s=e[n],r=0;0<=--n;)i=a*s-r+e[n],r=s,s=i;return Math.sin(t)*i}function cosh(e){e=Math.exp(e);return(e+1/e)/2}function clens_cmplx(e,t,i){for(var a,n,s=Math.sin(t),t=Math.cos(t),r=sinh(i),i=cosh(i),o=2*t*i,l=-2*s*r,c=e.length-1,h=e[c],u=0,_=0,p=0;0<=--c;)a=_,n=u,h=o*(_=h)-a-l*(u=p)+e[c],p=l*_-n+o*u;return[(o=s*i)*h-(l=t*r)*p,o*p+l*h]}function init$s(){var e=2026,t=800,i=3048,a=1393,n=954,s=_0x1658de;if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(tmerc.init[s(e)](this),this.forward=tmerc.forward,this.inverse=tmerc.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this[s(954)]:0,this.cgb=[],this.cbg=[],this[s(3048)]=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),e=e/(2-e),r=e,t=(this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+-2854/675*e))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+4642/4725*e))))-2),this.cgb[1]=(r*=e)*(7/3+e*(e*(-227/45+e*(2704/315+2323/945*e))-1.6)),this[s(1393)][1]=r*(5/3+e*(-16/15+e*(-13/9+e*(904/315+-1522/945*e)))),this.cgb[2]=(r*=e)*(56/15+e*(-136/35+e*(-1262/105+73814/2835*e))),this.cbg[2]=r*(-26/15+e*(34/21+e*(1.6+-12686/2835*e))),this.cgb[3]=(r*=e)*(4279/630+e*(-332/35+-399572/14175*e)),this.cbg[3]=r*(1237/630+e*(-24832/14175*e-2.4)),this.cgb[4]=(r*=e)*(4174/315+-144838/6237*e),this.cbg[4]=r*(-734/315+109598/31185*e),this.cgb[5]=601676/22275*(r*=e),this.cbg[5]=444337/155925*r,r=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+r*(.25+r*(1/64+r/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+-96199/604800*e))))-.5),this[s(800)][0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+7891/37800*e))))),this.utg[1]=r*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+1118711/3870720*e)))),this[s(t)][1]=r*(13/48+e*(e*(557/1440+e*(281/630+-1983433/1935360*e))-.6)),this.utg[2]=(r*=e)*(-17/480+e*(37/840+e*(209/4480+-5569/90720*e))),this.gtu[2]=r*(61/240+e*(-103/140+e*(15061/26880+167603/181440*e))),this.utg[3]=(r*=e)*(-4397/161280+e*(11/504+830251/7257600*e)),this.gtu[3]=r*(49561/161280+e*(-179/168+6601661/7257600*e)),r*=e,this[s(i)][4]=r*(-4583/161280+108847/3991680*e),this.gtu[4]=r*(34729/80640+-3418889/1995840*e),this.utg[5]=-.03233083094085698*(r*=e),this.gtu[5]=.6650675310896665*r,gatg(this[s(a)],this[s(n)]));this.Zb=-this.Qn*(t+clens(this.gtu,2*t))}function forward$r(e){var t,i=_0x1658de,a=adjust_lon(e.x-this.long0),n=e.y,n=gatg(this.cbg,n),s=Math[i(1868)](n),r=Math.cos(n),o=Math.sin(a),l=Math.cos(a),o=(n=Math.atan2(s,l*r),a=Math.atan2(o*r,hypot(s,r*l)),a=asinhy(Math.tan(a)),clens_cmplx(this[i(800)],2*n,2*a));return n+=o[0],a+=o[1],s=Math.abs(a)<=2.623395162778?(t=this.a*(this.Qn*a)+this.x0,this.a*(this.Qn*n+this.Zb)+this.y0):t=1/0,e.x=t,e.y=s,e}function inverse$r(e){var t,i,a,n=_0x1658de,s=(e.x-this.x0)*(1/this.a),r=(e.y-this.y0)*(1/this.a);return r=(r-this.Zb)/this.Qn,s/=this.Qn,a=Math.abs(s)<=2.623395162778?(r+=(i=clens_cmplx(this.utg,2*r,2*s))[0],s+=i[1],s=Math.atan(sinh(s)),i=Math[n(1868)](r),t=Math[n(3007)](r),a=Math.sin(s),n=Math[n(3007)](s),r=Math.atan2(i*n,hypot(a,n*t)),i=adjust_lon((s=Math.atan2(a,n*t))+this.long0),gatg(this.cgb,r)):i=1/0,e.x=i,e.y=a,e}var names$s=[_0x1658de(1384),_0x1658de(1991),"etmerc","Transverse_Mercator","Transverse Mercator","tmerc"],etmerc={init:init$s,forward:forward$r,inverse:inverse$r,names:names$s};function adjust_zone(e,t){if(void 0===e){if((e=Math.floor(30*(adjust_lon(t)+Math.PI)/Math.PI)+1)<0)return 0;if(60<e)return 60}return e}var dependsOn="etmerc";function init$r(){var e=_0x1658de,t=adjust_zone(this[e(2486)],this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math[e(411)](t)-183)*D2R$1,this.x0=5e5,this.y0=this[e(837)]?1e7:0,this.k0=.9996,etmerc.init[e(2026)](this),this.forward=etmerc[e(2456)],this.inverse=etmerc[e(2028)]}var names$r=[_0x1658de(3706),"utm"],utm={init:init$r,names:names$r,dependsOn:dependsOn};function srat(e,t){return Math[_0x1658de(2127)]((1-e)/(1+e),t)}var MAX_ITER$2=20;function init$q(){var e=954,t=2921,i=1505,a=3963,n=_0x1658de,e=Math.sin(this[n(e)]),s=Math.cos(this.lat0);s*=s,this.rc=Math[n(t)](1-this.es)/(1-this.es*e*e),this.C=Math[n(2921)](1+this.es*s*s/(1-this.es)),this[n(i)]=Math[n(a)](e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+FORTPI)/(Math.pow(Math[n(1642)](.5*this.lat0+FORTPI),this.C)*srat(this.e*e,this.ratexp))}function forward$q(e){var t=_0x1658de,i=e.x,a=e.y;return e.y=2*Math.atan(this.K*Math[t(2127)](Math.tan(.5*a+FORTPI),this.C)*srat(this.e*Math.sin(a),this.ratexp))-HALF_PI,e.x=this.C*i,e}function inverse$q(e){for(var t=_0x1658de,i=e.x/this.C,a=e.y,n=Math.pow(Math[t(1642)](.5*a+FORTPI)/this.K,1/this.C),s=MAX_ITER$2;0<s&&(a=2*Math[t(2604)](n*srat(this.e*Math[t(1868)](e.y),-.5*this.e))-HALF_PI,!(Math.abs(a-e.y)<1e-14));--s)e.y=a;return s?(e.x=i,e.y=a,e):null}var names$q=["gauss"],gauss={init:init$q,forward:forward$q,inverse:inverse$q,names:names$q};function init$p(){var e=_0x1658de;gauss.init.apply(this),this.rc&&(this[e(2286)]=Math[e(1868)](this.phic0),this.cosc0=Math.cos(this[e(1505)]),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function forward$p(e){var t,i,a,n;return e.x=adjust_lon(e.x-this.long0),gauss.forward.apply(this,[e]),t=Math.sin(e.y),i=Math.cos(e.y),a=Math.cos(e.x),n=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*i*a),e.x=n*i*Math.sin(e.x),e.y=n*(this.cosc0*t-this.sinc0*i*a),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function inverse$p(e){var t,i,a,n,s=_0x1658de;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,n=(n=Math.sqrt(e.x*e.x+e.y*e.y))?(i=2*Math.atan2(n,this.R2),t=Math.sin(i),i=Math.cos(i),a=Math.asin(i*this.sinc0+e.y*t*this[s(1589)]/n),Math.atan2(e.x*t,n*this.cosc0*i-e.y*this[s(2286)]*t)):(a=this.phic0,0),e.x=n,e.y=a,gauss[s(2028)].apply(this,[e]),e.x=adjust_lon(e.x+this[s(1621)]),e}var names$p=["Stereographic_North_Pole",_0x1658de(4015),"Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"],sterea={init:init$p,forward:forward$p,inverse:inverse$p,names:names$p};function ssfn_(e,t,i){return t*=i,Math[_0x1658de(1642)](.5*(HALF_PI+e))*Math.pow((1-t)/(1+t),.5*i)}function init$o(){var e=954,t=1868,i=493,a=3007,n=1150,s=2317,r=_0x1658de;this[r(2317)]=Math[r(3007)](this[r(e)]),this.sinlat0=Math[r(1868)](this[r(954)]),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this[r(2317)])<=EPSLN&&(this.k0=.5*(1+sign(this[r(954)])*Math[r(t)](this.lat_ts))):(Math.abs(this[r(2317)])<=EPSLN&&(0<this.lat0?this[r(1150)]=1:this.con=-1),this[r(i)]=Math.sqrt(Math[r(2127)](1+this.e,1+this.e)*Math[r(2127)](1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math[r(411)](this.coslat0)<=EPSLN&&(this.k0=.5*this.cons*msfnz(this.e,Math.sin(this[r(1564)]),Math[r(a)](this.lat_ts))/tsfnz(this.e,this.con*this[r(1564)],this[r(n)]*Math.sin(this.lat_ts))),this.ms1=msfnz(this.e,this.sinlat0,this[r(s)]),this.X0=2*Math[r(2604)](this.ssfn_(this[r(e)],this.sinlat0,this.e))-HALF_PI,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function forward$o(e){var t,i=3007,a=935,n=3007,s=411,r=3806,o=1868,l=_0x1658de,c=e.x,h=e.y,u=Math.sin(h),i=Math[l(i)](h),_=adjust_lon(c-this[l(1621)]);return Math.abs(Math[l(411)](c-this[l(1621)])-Math.PI)<=EPSLN&&Math.abs(h+this.lat0)<=EPSLN?(e.x=NaN,e.y=NaN):this[l(a)]?(t=2*this.k0/(1+this.sinlat0*u+this.coslat0*i*Math.cos(_)),e.x=this.a*t*i*Math[l(1868)](_)+this.x0,e.y=this.a*t*(this.coslat0*u-this.sinlat0*i*Math[l(3007)](_))+this.y0):(a=2*Math.atan(this[l(3249)](h,u,this.e))-HALF_PI,i=Math[l(n)](a),n=Math.sin(a),Math.abs(this.coslat0)<=EPSLN?(a=tsfnz(this.e,h*this.con,this.con*u),h=2*this.a*this.k0*a/this.cons,e.x=this.x0+h*Math.sin(c-this.long0),e.y=this.y0-this.con*h*Math.cos(c-this.long0)):(Math[l(s)](this.sinlat0)<EPSLN?(t=2*this.a*this.k0/(1+i*Math.cos(_)),e.y=t*n):(t=2*this.a*this.k0*this.ms1/(this[l(4053)]*(1+this.sinX0*n+this.cosX0*i*Math[l(3007)](_))),e.y=t*(this.cosX0*n-this[l(r)]*i*Math.cos(_))+this.y0),e.x=t*i*Math[l(o)](_)+this.x0)),e}function inverse$o(e){var t=3347,i=954,a=1935,n=1621,s=3007,r=3347,o=411,l=3292,c=3007,h=1935,u=_0x1658de;e.x-=this.x0,e.y-=this.y0;var _,p,m,d,f=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere)p=2*Math[u(2604)](f/(2*this.a*this.k0)),m=this.long0,d=this.lat0,f<=EPSLN||(d=Math.asin(Math.cos(p)*this[u(t)]+e.y*Math.sin(p)*this.coslat0/f),m=Math.abs(this.coslat0)<EPSLN?0<this[u(i)]?adjust_lon(this.long0+Math[u(a)](e.x,-1*e.y)):adjust_lon(this[u(n)]+Math.atan2(e.x,e.y)):adjust_lon(this.long0+Math.atan2(e.x*Math.sin(p),f*this.coslat0*Math[u(s)](p)-e.y*this[u(r)]*Math[u(1868)](p))));else if(Math[u(o)](this.coslat0)<=EPSLN){if(f<=EPSLN)return d=this.lat0,m=this[u(1621)],e.x=m,e.y=d,e;e.x*=this.con,e.y*=this.con,t=f*this.cons/(2*this.a*this.k0),d=this.con*phi2z(this.e,t),m=this.con*adjust_lon(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(f*this.cosX0/(2*this.a*this.k0*this[u(l)])),m=this.long0,f<=EPSLN?_=this.X0:(_=Math.asin(Math[u(c)](i)*this.sinX0+e.y*Math.sin(i)*this[u(4053)]/f),m=adjust_lon(this.long0+Math[u(h)](e.x*Math.sin(i),f*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math[u(1868)](i)))),d=-1*phi2z(this.e,Math.tan(.5*(HALF_PI+_)));return e.x=m,e.y=d,e}var names$o=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],stere={init:init$o,forward:forward$o,inverse:inverse$o,names:names$o,ssfn_:ssfn_};function init$n(){var e=2921,t=2127,i=3963,a=3491,n=3491,s=_0x1658de,r=this.lat0,o=(this.lambda0=this.long0,Math.sin(r)),l=this.a,c=1/this.rf,c=2*c-Math.pow(c,2),h=this.e=Math.sqrt(c),l=(this.R=this.k0*l*Math[s(2921)](1-c)/(1-c*Math[s(2127)](o,2)),this.alpha=Math[s(e)](1+c/(1-c)*Math[s(t)](Math.cos(r),4)),this.b0=Math[s(i)](o/this.alpha),Math.log(Math.tan(Math.PI/4+this.b0/2))),e=Math[s(a)](Math[s(1642)](Math.PI/4+r/2)),c=Math[s(n)]((1+h*o)/(1-h*o));this.K=l-this.alpha*e+this.alpha*h/2*c}function forward$n(e){var t=1642,i=3491,a=1868,n=720,s=1868,r=_0x1658de,t=Math[r(3491)](Math[r(t)](Math.PI/4-e.y/2)),i=this.e/2*Math[r(i)]((1+this.e*Math[r(a)](e.y))/(1-this.e*Math.sin(e.y))),t=-this.alpha*(t+i)+this.K,i=2*(Math.atan(Math.exp(t))-Math.PI/4),t=this.alpha*(e.x-this[r(n)]),n=Math.atan(Math[r(1868)](t)/(Math.sin(this.b0)*Math.tan(i)+Math[r(3007)](this.b0)*Math.cos(t))),i=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(t));return e.y=this.R/2*Math.log((1+Math[r(a)](i))/(1-Math[r(s)](i)))+this.y0,e.x=this.R*n+this.x0,e}function inverse$n(e){for(var t,i=3007,a=3629,n=1642,s=2604,r=_0x1658de,o=e.x-this.x0,l=e.y-this.y0,o=o/this.R,l=2*(Math.atan(Math.exp(l/this.R))-Math.PI/4),c=Math.asin(Math.cos(this.b0)*Math.sin(l)+Math.sin(this.b0)*Math.cos(l)*Math[r(i)](o)),i=Math.atan(Math.sin(o)/(Math[r(i)](this.b0)*Math.cos(o)-Math.sin(this.b0)*Math[r(1642)](l))),o=this.lambda0+i/this[r(a)],h=c,u=-1e3,_=0;1e-7<Math[r(411)](h-u);){if(20<++_)return;t=1/this[r(3629)]*(Math[r(3491)](Math[r(n)](Math.PI/4+c/2))-this.K)+this.e*Math[r(3491)](Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(h))/2)),u=h,h=2*Math[r(s)](Math.exp(t))-Math.PI/2}return e.x=o,e.y=h,e}var names$n=["somerc"],somerc={init:init$n,forward:forward$n,inverse:inverse$n,names:names$n},TOL=1e-7;function isTypeA(e){var t=_0x1658de,i=[t(4095),"Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],t=typeof e.PROJECTION===t(2607)?Object[t(2206)](e.PROJECTION)[0]:e.PROJECTION;return"no_uoff"in e||"no_off"in e||-1!==i.indexOf(t)}function init$m(){var e,t,i,a,n,s=2865,r=954,o=2127,l=954,c=1868,h=2780,u=3325,_=3007,p=1927,m=_0x1658de,d=0,f=0,y=0,v=0,g=0,C=0,x=0,b=(this.no_off=isTypeA(this),this.no_rot="no_rot"in this,!1),k=("alpha"in this&&(b=!0),!1);if("rectified_grid_angle"in this&&(k=!0),b&&(x=this[m(3629)]),k&&(d=this.rectified_grid_angle*D2R$1),b||k)f=this.longc;else if(y=this.long1,g=this.lat1,v=this.long2,C=this[m(s)],Math[m(411)](g-C)<=TOL||(e=Math.abs(g))<=TOL||Math.abs(e-HALF_PI)<=TOL||Math.abs(Math.abs(this.lat0)-HALF_PI)<=TOL||Math[m(411)](Math.abs(C)-HALF_PI)<=TOL)throw new Error;var s=1-this.es,P=Math.sqrt(s);Math.abs(this.lat0)>EPSLN?(a=Math.sin(this.lat0),r=Math[m(3007)](this[m(r)]),e=1-this.es*a*a,this.B=r*r,this.B=Math[m(2921)](1+this.es*this.B*this.B/s),this.A=this.B*this.k0*P/e,(i=(t=this.B*P/(r*Math.sqrt(e)))*t-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=t,this.E*=Math[m(o)](tsfnz(this.e,this[m(l)],a),this.B)):(this.B=1/P,this.A=this.k0,this.E=t=i=1),b||k?(b?(n=Math.asin(Math[m(1868)](x)/t),k||(d=x)):(n=d,x=Math.asin(t*Math[m(1868)](n))),this.lam0=f-Math.asin(.5*(i-1/i)*Math.tan(n))/this.B):(s=Math[m(o)](tsfnz(this.e,g,Math.sin(g)),this.B),r=Math.pow(tsfnz(this.e,C,Math.sin(C)),this.B),i=this.E/s,l=(r-s)/(r+s),a=this.E*this.E,(e=y-v)<-Math.pi?v-=TWO_PI:e>Math.pi&&(v+=TWO_PI),this.lam0=adjust_lon(.5*(y+v)-Math.atan((a-r*s)/(a+r*s)*Math.tan(.5*this.B*(y-v))/l)/this.B),n=Math.atan(2*Math[m(c)](this.B*adjust_lon(y-this.lam0))/(i-1/i)),d=x=Math.asin(t*Math[m(1868)](n))),this.singam=Math.sin(n),this.cosgam=Math.cos(n),this.sinrot=Math.sin(d),this[m(993)]=Math.cos(d),this.rB=1/this.B,this.ArB=this.A*this.rB,this[m(h)]=1/this[m(1927)],this.A,this.B,this.no_off?this[m(u)]=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math[m(2921)](t*t-1)/Math[m(_)](x))),this.lat0<0&&(this.u_0=-this[m(u)])),i=.5*n,this[m(4104)]=this.ArB*Math.log(Math.tan(FORTPI-i)),this[m(2742)]=this[m(p)]*Math.log(Math[m(1642)](FORTPI+i))}function forward$m(e){var t,i,a,n=433,s=411,r=2767,o=_0x1658de,l={};if(e.x=e.x-this[o(n)],Math.abs(Math[o(s)](e.y)-HALF_PI)>EPSLN){if(i=.5*((n=this.E/Math.pow(tsfnz(this.e,e.y,Math.sin(e.y)),this.B))-(s=1/n)),n=.5*(n+s),t=Math.sin(this.B*e.x),n=(i*this[o(r)]-t*this.cosgam)/n,Math.abs(Math.abs(n)-1)<EPSLN)throw new Error;a=.5*this[o(1927)]*Math.log((1-n)/(1+n)),s=Math.cos(this.B*e.x),i=Math[o(411)](s)<TOL?this.A*e.x:this.ArB*Math.atan2(i*this.cosgam+t*this[o(r)],s)}else a=0<e.y?this.v_pole_n:this.v_pole_s,i=this.ArB*e.y;return this[o(2963)]?(l.x=i,l.y=a):(i-=this.u_0,l.x=a*this[o(993)]+i*this[o(1944)],l.y=i*this[o(993)]-a*this.sinrot),l.x=this.a*l.x+this.x0,l.y=this.a*l.y+this.y0,l}function inverse$m(e){var t,i=1944,a=2780,n=1935,s=_0x1658de,r={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),i=this.no_rot?(t=e.y,e.x):(t=e.x*this[s(993)]-e.y*this[s(i)],e.y*this.cosrot+e.x*this.sinrot+this.u_0),t=.5*((e=Math.exp(-this.BrA*t))-1/e),e=.5*(e+1/e),e=((a=Math[s(1868)](this[s(a)]*i))*this.cosgam+t*this.singam)/e,Math.abs(Math.abs(e)-1)<EPSLN)r.x=0,r.y=e<0?-HALF_PI:HALF_PI;else{if(r.y=this.E/Math.sqrt((1+e)/(1-e)),r.y=phi2z(this.e,Math.pow(r.y,1/this.B)),r.y===1/0)throw new Error;r.x=-this.rB*Math[s(n)](t*this.cosgam-a*this.singam,Math[s(3007)](this.BrA*i))}return r.x+=this.lam0,r}var names$m=[_0x1658de(4095),"Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator",_0x1658de(2152)],omerc={init:init$m,forward:forward$m,inverse:inverse$m,names:names$m};function init$l(){var e=2865,t=411,i=3221,a=3007,n=3221,s=2865,r=1868,o=2865,l=3491,c=3491,h=2127,u=3430,_=_0x1658de;this.lat2||(this[_(e)]=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,Math[_(t)](this[_(i)]+this.lat2)<EPSLN||(e=this.b/this.a,this.e=Math.sqrt(1-e*e),t=Math.sin(this.lat1),i=Math[_(a)](this[_(n)]),e=msfnz(this.e,t,i),a=tsfnz(this.e,this.lat1,t),n=Math.sin(this[_(s)]),i=Math.cos(this.lat2),s=msfnz(this.e,n,i),i=tsfnz(this.e,this.lat2,n),n=tsfnz(this.e,this.lat0,Math[_(r)](this.lat0)),Math.abs(this.lat1-this[_(o)])>EPSLN?this.ns=Math[_(l)](e/s)/Math[_(c)](a/i):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=e/(this.ns*Math[_(2127)](a,this.ns)),this.rh=this.a*this.f0*Math[_(h)](n,this.ns),this[_(u)])||(this.title="Lambert Conformal Conic")}function forward$l(e){var t,i=_0x1658de,a=e.x,n=e.y,s=(Math.abs(2*Math.abs(n)-Math.PI)<=EPSLN&&(n=sign(n)*(HALF_PI-2*EPSLN)),Math[i(411)](Math.abs(n)-HALF_PI));if(EPSLN<s)s=tsfnz(this.e,n,Math.sin(n)),t=this.a*this.f0*Math[i(2127)](s,this.ns);else{if(n*this.ns<=0)return null;t=0}s=this.ns*adjust_lon(a-this.long0);return e.x=this.k0*(t*Math[i(1868)](s))+this.x0,e.y=this.k0*(this.rh-t*Math.cos(s))+this.y0,e}function inverse$l(e){var t,i,a=_0x1658de,n=(e.x-this.x0)/this.k0,s=this.rh-(e.y-this.y0)/this.k0,r=0<this.ns?(t=Math.sqrt(n*n+s*s),1):(t=-Math.sqrt(n*n+s*s),-1),o=0;if(0!==t&&(o=Math[a(1935)](r*n,r*s)),0!==t||0<this.ns){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),-9999===(i=phi2z(this.e,n)))return null}else i=-HALF_PI;return s=adjust_lon(o/this.ns+this[a(1621)]),e.x=s,e.y=i,e}var names$l=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)",_0x1658de(3372)],lcc={init:init$l,forward:forward$l,inverse:inverse$l,names:names$l};function init$k(){var e=954,t=2921,i=3007,a=_0x1658de;this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this[a(e)]=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this[a(3373)]=2*this.s45,this[a(3961)]=this.lat0,this.e2=this.es,this.e=Math[a(t)](this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math[a(i)](this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this[a(3961)]))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this[a(3961)]/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math[a(1868)](this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function forward$k(e){var t=1868,i=744,a=3963,n=1868,s=2015,r=_0x1658de,o=e.x,l=e.y,o=adjust_lon(o-this.long0),t=Math.pow((1+this.e*Math[r(t)](l))/(1-this.e*Math[r(t)](l)),this.alfa*this.e/2),l=2*(Math.atan(this.k*Math[r(2127)](Math[r(1642)](l/2+this.s45),this.alfa)/t)-this[r(3951)]),t=-o*this[r(i)],o=Math[r(a)](Math.cos(this.ad)*Math.sin(l)+Math.sin(this.ad)*Math.cos(l)*Math.cos(t)),i=Math.asin(Math.cos(l)*Math.sin(t)/Math.cos(o)),a=this.n*i,l=this[r(2750)]*Math.pow(Math.tan(this.s0/2+this[r(3951)]),this.n)/Math.pow(Math.tan(o/2+this[r(3951)]),this.n);return e.y=l*Math.cos(a),e.x=l*Math[r(n)](a),this[r(s)]||(e.y*=-1,e.x*=-1),e}function inverse$k(e){for(var t,i,a,n=1868,s=1621,r=2127,o=_0x1658de,l=e.x,c=(e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),l=Math.sqrt(e.x*e.x+e.y*e.y),n=Math.atan2(e.y,e.x)/Math[o(n)](this.s0),l=2*(Math[o(2604)](Math.pow(this.ro0/l,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math[o(1868)](l)-Math[o(1868)](this.ad)*Math.cos(l)*Math.cos(n)),l=Math.asin(Math.cos(l)*Math[o(1868)](n)/Math[o(3007)](t)),e.x=this[o(s)]-l/this.alfa,i=t,a=0);e.y=2*(Math.atan(Math[o(r)](this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this[o(3951)]),1/this[o(744)])*Math.pow((1+this.e*Math.sin(i))/(1-this.e*Math.sin(i)),this.e/2))-this.s45),Math.abs(i-e.y)<1e-10&&(a=1),i=e.y,c+=1,0===a&&c<15;);return 15<=c?null:e}var names$k=["Krovak",_0x1658de(1524)],krovak={init:init$k,forward:forward$k,inverse:inverse$k,names:names$k};function mlfn(e,t,i,a,n){return e*n-t*Math.sin(2*n)+i*Math.sin(4*n)-a*Math.sin(6*n)}function e0fn(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function e1fn(e){return.375*e*(1+.25*e*(1+.46875*e))}function e2fn(e){return.05859375*e*e*(1+.75*e)}function e3fn(e){return e*e*e*(35/3072)}function gN(e,t,i){t*=i;return e/Math.sqrt(1-t*t)}function adjust_lat(e){return Math.abs(e)<HALF_PI?e:e-sign(e)*Math.PI}function imlfn(e,t,i,a,n){for(var s,r=3007,o=_0x1658de,l=e/t,c=0;c<15;c++)if(l+=s=(e-(t*l-i*Math[o(1868)](2*l)+a*Math.sin(4*l)-n*Math.sin(6*l)))/(t-2*i*Math.cos(2*l)+4*a*Math[o(r)](4*l)-6*n*Math[o(3007)](6*l)),Math[o(411)](s)<=1e-10)return l;return NaN}function init$j(){this[_0x1658de(935)]||(this.e0=e0fn(this.es),this.e1=e1fn(this.es),this.e2=e2fn(this.es),this.e3=e3fn(this.es),this.ml0=this.a*mlfn(this.e0,this.e1,this.e2,this.e3,this.lat0))}function forward$j(e){var t,i,a,n=1621,s=3007,r=_0x1658de,o=e.x,l=e.y,o=adjust_lon(o-this[r(n)]);return l=this.sphere?(a=this.a*Math[r(3963)](Math.cos(l)*Math.sin(o)),this.a*(Math.atan2(Math.tan(l),Math.cos(o))-this.lat0)):(n=Math.sin(l),s=Math[r(s)](l),t=gN(this.a,this.e,n),i=Math.tan(l)*Math.tan(l),a=t*(o=o*Math[r(3007)](l))*(1-(r=o*o)*i*(1/6-(8-i+8*(o=this.es*s*s/(1-this.es)))*r/120)),this.a*mlfn(this.e0,this.e1,this.e2,this.e3,l)-this.ml0+t*n/s*r*(.5+(5-i+6*o)*r/24)),e.x=a+this.x0,e.y=l+this.y0,e}function inverse$j(e){var t=_0x1658de,i=(e.x-=this.x0,e.y-=this.y0,e.x/this.a),a=e.y/this.a;if(this.sphere)var n=a+this.lat0,s=Math.asin(Math.sin(n)*Math[t(3007)](i)),n=Math.atan2(Math.tan(i),Math.cos(n));else{var r=imlfn(this.ml0/this.a+a,this.e0,this.e1,this.e2,this.e3);if(Math[t(411)](Math.abs(r)-HALF_PI)<=EPSLN)return e.x=this[t(1621)],e.y=HALF_PI,a<0&&(e.y*=-1),e;var a=gN(this.a,this.e,Math.sin(r)),o=a*a*a/this.a/this.a*(1-this.es),l=Math.pow(Math[t(1642)](r),2),i=i*this.a/a,c=i*i;s=r-a*Math.tan(r)/o*i*i*(.5-(1+3*l)*i*i/24),n=i*(1-c*(l/3+(1+3*l)*l*c/15))/Math[t(3007)](r)}return e.x=adjust_lon(n+this.long0),e.y=adjust_lat(s),e}var names$j=[_0x1658de(735),"Cassini_Soldner","cass"],cass={init:init$j,forward:forward$j,inverse:inverse$j,names:names$j};function qsfnz(e,t){var i;return 1e-7<e?(1-e*e)*(t/(1-(i=e*t)*i)-.5/e*Math[_0x1658de(3491)]((1-i)/(1+i))):2*t}var S_POLE=1,N_POLE=2,EQUIT=3,OBLIQ=4;function init$i(){var e,t=411,i=1368,a=2921,n=2851,s=1868,r=_0x1658de,o=Math.abs(this.lat0);if(Math[r(t)](o-HALF_PI)<EPSLN?this.mode=this.lat0<0?this[r(480)]:this.N_POLE:Math.abs(o)<EPSLN?this.mode=this.EQUIT:this.mode=this.OBLIQ,0<this.es)switch(this.qp=qsfnz(this.e,1),this[r(3211)]=.5/(1-this.es),this.apa=authset(this.es),this.mode){case this[r(2669)]:case this.S_POLE:this.dd=1;break;case this[r(i)]:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this[r(2051)]=.5*this.qp;break;case this[r(4083)]:this.rq=Math[r(a)](.5*this.qp),e=Math.sin(this.lat0),this.sinb1=qsfnz(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math[r(3007)](this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this[r(n)]),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math[r(s)](this.lat0),this.cosph0=Math.cos(this.lat0))}function forward$i(e){var t,i,a,n,s,r,o,l,c,h=935,u=3007,_=2505,p=_0x1658de,m=e.x,d=e.y,m=adjust_lon(m-this.long0);if(this[p(h)]){if(s=Math[p(1868)](d),h=Math[p(u)](d),a=Math[p(3007)](m),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+h*a:1+this.sinph0*s+this.cosph0*h*a)<=EPSLN)return null;t=(i=Math.sqrt(2/i))*h*Math.sin(m),i*=this[p(2505)]===this.EQUIT?s:this.cosph0*s-this.sinph0*h*a}else if(this[p(2505)]===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(a=-a),Math.abs(d+this.lat0)<EPSLN)return null;i=FORTPI-.5*d,t=(i=2*(this[p(_)]===this.S_POLE?Math.cos(i):Math.sin(i)))*Math.sin(m),i*=a}}else{switch(c=l=o=0,a=Math[p(3007)](m),n=Math.sin(m),s=Math.sin(d),r=qsfnz(this.e,s),this[p(2505)]!==this.OBLIQ&&this.mode!==this.EQUIT||(o=r/this.qp,l=Math.sqrt(1-o*o)),this.mode){case this.OBLIQ:c=1+this.sinb1*o+this.cosb1*l*a;break;case this[p(1368)]:c=1+l*a;break;case this.N_POLE:c=HALF_PI+d,r=this.qp-r;break;case this[p(480)]:c=d-HALF_PI,r=this.qp+r}if(Math.abs(c)<EPSLN)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math[p(2921)](2/c),i=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*o-this.sinb1*l*a):(c=Math[p(2921)](2/(1+l*a)))*o*this[p(2051)],t=this[p(2934)]*c*l*n;break;case this.N_POLE:case this.S_POLE:0<=r?(t=(c=Math.sqrt(r))*n,i=a*(this.mode===this.S_POLE?c:-c)):t=i=0}}return e.x=this.a*t+this.x0,e.y=this.a*i+this.y0,e}function inverse$i(e){var t,i,a=935,n=1368,s=1868,r=641,o=2669,l=3963,c=2505,h=480,u=_0x1658de,_=(e.x-=this.x0,e.y-=this.y0,e.x/this.a),p=e.y/this.a;if(this[u(a)]){var m,d=0,f=0,y=Math[u(2921)](_*_+p*p);if(1<(m=.5*y))return null;switch(m=2*Math.asin(m),this.mode!==this.OBLIQ&&this.mode!==this[u(n)]||(f=Math[u(s)](m),d=Math.cos(m)),this.mode){case this.EQUIT:m=Math[u(411)](y)<=EPSLN?0:Math.asin(p*f/y),_*=f,p=d*y;break;case this.OBLIQ:m=Math.abs(y)<=EPSLN?this.lat0:Math.asin(d*this[u(r)]+p*f*this.cosph0/y),_*=f*this[u(1679)],p=(d-Math.sin(m)*this.sinph0)*y;break;case this[u(o)]:p=-p,m=HALF_PI-m;break;case this[u(480)]:m-=HALF_PI}t=0!==p||this.mode!==this.EQUIT&&this[u(2505)]!==this.OBLIQ?Math.atan2(_,p):0}else{if(a=0,this[u(2505)]===this.OBLIQ||this.mode===this.EQUIT){if(_/=this.dd,p*=this.dd,(n=Math.sqrt(_*_+p*p))<EPSLN)return e.x=this[u(1621)],e.y=this.lat0,e;s=2*Math[u(l)](.5*n/this.rq),o=Math.cos(s),_*=s=Math.sin(s),p=this.mode===this.OBLIQ?(a=o*this[u(2376)]+p*s*this[u(2851)]/n,i=this.qp*a,n*this.cosb1*o-p*this.sinb1*s):(i=this.qp*(a=p*s/n),n*o)}else if(this[u(c)]===this.N_POLE||this[u(2505)]===this.S_POLE){if(!(i=_*_+(p=this[u(2505)]===this.N_POLE?-p:p)*p))return e.x=this.long0,e.y=this.lat0,e;a=1-i/this.qp,this[u(2505)]===this[u(h)]&&(a=-a)}t=Math[u(1935)](_,p),m=authlat(Math[u(l)](a),this.apa)}return e.x=adjust_lon(this.long0+t),e.y=m,e}var P00=.3333333333333333,P01=.17222222222222222,P02=.10257936507936508,P10=.06388888888888888,P11=.0664021164021164,P20=.016415012942191543;function authset(e){var t,i=[];return i[0]=e*P00,i[0]+=(t=e*e)*P01,i[1]=t*P10,i[0]+=(t*=e)*P02,i[1]+=t*P11,i[2]=t*P20,i}function authlat(e,t){var i=e+e;return e+t[0]*Math.sin(i)+t[1]*Math.sin(i+i)+t[2]*Math.sin(i+i+i)}var names$i=[_0x1658de(3424),_0x1658de(3954),"laea"],laea={init:init$i,forward:forward$i,inverse:inverse$i,names:names$i,S_POLE:S_POLE,N_POLE:N_POLE,EQUIT:EQUIT,OBLIQ:OBLIQ};function asinz(e){return 1<Math[_0x1658de(411)](e)&&(e=1<e?1:-1),Math.asin(e)}function init$h(){var e=2718,t=3221,i=3007,a=2865,n=3300,s=1809,r=954,o=3769,l=1150,c=_0x1658de;Math.abs(this.lat1+this.lat2)<EPSLN||(this.temp=this.b/this.a,this.es=1-Math.pow(this[c(e)],2),this.e3=Math.sqrt(this.es),this.sin_po=Math[c(1868)](this[c(t)]),this[c(3300)]=Math[c(i)](this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this[c(3292)]=msfnz(this.e3,this.sin_po,this.cos_po),this.qs1=qsfnz(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this[c(a)]),this[c(n)]=Math.cos(this.lat2),this.t2=this[c(s)],this.ms2=msfnz(this.e3,this.sin_po,this.cos_po),this.qs2=qsfnz(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this[c(r)]),this.cos_po=Math.cos(this[c(r)]),this.t3=this[c(1809)],this.qs0=qsfnz(this.e3,this[c(1809)],this[c(3300)]),Math.abs(this.lat1-this.lat2)>EPSLN?this[c(1618)]=(this.ms1*this.ms1-this.ms2*this[c(o)])/(this[c(3889)]-this.qs1):this.ns0=this[c(l)],this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function forward$h(e){var t=3691,i=1618,a=1868,n=3007,s=_0x1658de,r=e.x,o=e.y,t=(this.sin_phi=Math[s(1868)](o),this[s(t)]=Math.cos(o),qsfnz(this.e3,this.sin_phi,this[s(3691)])),o=this.a*Math[s(2921)](this.c-this[s(1618)]*t)/this.ns0,t=this[s(i)]*adjust_lon(r-this.long0),i=o*Math[s(a)](t)+this.x0,r=this.rh-o*Math[s(n)](t)+this.y0;return e.x=i,e.y=r,e}function inverse$h(e){var t,i,a=2921,n=935,s=_0x1658de;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,a=0<=this[s(1618)]?(t=Math[s(a)](e.x*e.x+e.y*e.y),1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),-1),(i=0)!==t&&(i=Math.atan2(a*e.x,a*e.y)),a=t*this[s(1618)]/this.a,n=this[s(n)]?Math[s(3963)]((this.c-a*a)/(2*this.ns0)):(t=(this.c-a*a)/this[s(1618)],this.phi1z(this.e3,t)),a=adjust_lon(i/this.ns0+this.long0),e.x=a,e.y=n,e}function phi1z(e,t){var i,a,n,s=1868,r=3007,o=_0x1658de,l=asinz(.5*t);if(e<EPSLN)return l;for(var c=e*e,h=1;h<=25;h++)if(l+=n=.5*(a=1-(i=e*(n=Math[o(s)](l)))*i)*a/Math[o(r)](l)*(t/(1-c)-n/a+.5/e*Math.log((1-i)/(1+i))),Math[o(411)](n)<=1e-7)return l;return null}var names$h=["Albers_Conic_Equal_Area","Albers","aea"],aea={init:init$h,forward:forward$h,inverse:inverse$h,names:names$h,phi1z:phi1z};function init$g(){var e=1868,t=_0x1658de;this[t(3340)]=Math[t(e)](this[t(954)]),this.cos_p14=Math[t(3007)](this[t(954)]),this.infinity_dist=1e3*this.a,this.rc=1}function forward$g(e){var t,i=1868,a=_0x1658de,n=e.x,s=e.y,n=adjust_lon(n-this.long0),r=Math[a(i)](s),s=Math[a(3007)](s),o=Math[a(3007)](n),l=this[a(3340)]*r+this.cos_p14*s*o,l=0<l||Math.abs(l)<=EPSLN?(t=this.x0+ +this.a*s*Math[a(1868)](n)/l,this.y0+ +this.a*(this.cos_p14*r-this.sin_p14*s*o)/l):(t=this.x0+this[a(387)]*s*Math[a(i)](n),this.y0+this.infinity_dist*(this.cos_p14*r-this[a(3340)]*s*o));return e.x=t,e.y=l,e}function inverse$g(e){var t,i,a,n=1868,s=3340,r=1408,o=1621,l=_0x1658de;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,i=(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math[l(1935)](t,this.rc),n=Math[l(n)](i),a=asinz((i=Math.cos(i))*this[l(s)]+e.y*n*this[l(r)]/t),i=Math.atan2(e.x*n,t*this.cos_p14*i-e.y*this.sin_p14*n),adjust_lon(this[l(o)]+i)):(a=this.phic0,0),e.x=i,e.y=a,e}var names$g=["gnom"],gnom={init:init$g,forward:forward$g,inverse:inverse$g,names:names$g};function iqsfnz(e,t){var i=1868,a=3491,n=_0x1658de,s=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math[n(411)](t)-s)<1e-6)return t<0?-1*HALF_PI:HALF_PI;for(var r,o,l,c=Math.asin(.5*t),h=0;h<30;h++)if(r=Math[n(i)](c),o=Math.cos(c),l=e*r,c+=o=Math.pow(1-l*l,2)/(2*o)*(t/(1-e*e)-r/(1-l*l)+.5/e*Math[n(a)]((1-l)/(1+l))),Math.abs(o)<=1e-10)return c;return NaN}function init$f(){var e=_0x1658de;this.sphere||(this.k0=msfnz(this.e,Math.sin(this.lat_ts),Math[e(3007)](this[e(1564)])))}function forward$f(e){var t,i=1621,a=3007,n=_0x1658de,s=e.x,r=e.y,s=adjust_lon(s-this[n(i)]);return n=this.sphere?(t=this.x0+this.a*s*Math[n(a)](this.lat_ts),this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts)):(i=qsfnz(this.e,Math.sin(r)),t=this.x0+this.a*this.k0*s,this.y0+this.a*i*.5/this.k0),e.x=t,e.y=n,e}function inverse$f(e){var t,i,a=_0x1658de;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=adjust_lon(this.long0+e.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(e.y/this.a*Math[a(3007)](this.lat_ts))):(i=iqsfnz(this.e,2*e.y*this.k0/this.a),t=adjust_lon(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=i,e}var names$f=["cea"],cea={init:init$f,forward:forward$f,inverse:inverse$f,names:names$f};function init$e(){var e=_0x1658de;this.x0=this.x0||0,this.y0=this.y0||0,this[e(954)]=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this[e(1564)]||0,this[e(3430)]=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math[e(3007)](this.lat_ts)}function forward$e(e){var t=_0x1658de,i=e.x,a=e.y,i=adjust_lon(i-this[t(1621)]),t=adjust_lat(a-this.lat0);return e.x=this.x0+this.a*i*this.rc,e.y=this.y0+this.a*t,e}function inverse$e(e){var t=e.x,i=e.y;return e.x=adjust_lon(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=adjust_lat(this.lat0+(i-this.y0)/this.a),e}var names$e=["Equirectangular",_0x1658de(3941),"eqc"],eqc={init:init$e,forward:forward$e,inverse:inverse$e,names:names$e},MAX_ITER$1=20;function init$d(){var e=_0x1658de;this.temp=this.b/this.a,this.es=1-Math.pow(this[e(2718)],2),this.e=Math[e(2921)](this.es),this.e0=e0fn(this.es),this.e1=e1fn(this.es),this.e2=e2fn(this.es),this.e3=e3fn(this.es),this.ml0=this.a*mlfn(this.e0,this.e1,this.e2,this.e3,this.lat0)}function forward$d(e){var t,i=_0x1658de,a=e.x,n=e.y,a=adjust_lon(a-this.long0),s=a*Math[i(1868)](n);return i=this.sphere?Math.abs(n)<=EPSLN?(t=this.a*a,-1*this.a*this.lat0):(t=this.a*Math.sin(s)/Math.tan(n),this.a*(adjust_lat(n-this.lat0)+(1-Math.cos(s))/Math.tan(n))):Math.abs(n)<=EPSLN?(t=this.a*a,-1*this.ml0):(t=(a=gN(this.a,this.e,Math[i(1868)](n))/Math.tan(n))*Math.sin(s),this.a*mlfn(this.e0,this.e1,this.e2,this.e3,n)-this.ml0+a*(1-Math.cos(s))),e.x=t+this.x0,e.y=i+this.y0,e}function inverse$d(e){var t,i,a,n,s,r,o=935,l=1621,c=411,h=3963,u=_0x1658de,_=e.x-this.x0,p=e.y-this.y0;if(this[u(o)])if(Math.abs(p+this.a*this.lat0)<=EPSLN)t=adjust_lon(_/this.a+this[u(l)]),i=0;else{for(var m,d=this[u(954)]+p/this.a,f=_*_/this.a/this.a+d*d,y=d,v=MAX_ITER$1;v;--v)if(y+=a=-1*(d*(y*(m=Math.tan(y))+1)-y-.5*(y*y+f)*m)/((y-d)/m-1),Math[u(c)](a)<=EPSLN){i=y;break}t=adjust_lon(this[u(1621)]+Math[u(3963)](_*Math[u(1642)](y)/this.a)/Math.sin(i))}else if(Math.abs(p+this[u(1854)])<=EPSLN)i=0,t=adjust_lon(this.long0+_/this.a);else{for(d=(this.ml0+p)/this.a,f=_*_/this.a/this.a+d*d,y=d,v=MAX_ITER$1;v;--v)if(r=this.e*Math[u(1868)](y),n=Math.sqrt(1-r*r)*Math.tan(y),r=this.a*mlfn(this.e0,this.e1,this.e2,this.e3,y),s=this.e0-2*this.e1*Math[u(3007)](2*y)+4*this.e2*Math.cos(4*y)-6*this.e3*Math.cos(6*y),y-=a=(d*(n*(r=r/this.a)+1)-r-.5*n*(r*r+f))/(this.es*Math.sin(2*y)*(r*r+f-2*d*r)/(4*n)+(d-r)*(n*s-2/Math.sin(2*y))-s),Math.abs(a)<=EPSLN){i=y;break}n=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),t=adjust_lon(this.long0+Math[u(h)](_*n/this.a)/Math.sin(i))}return e.x=t,e.y=i,e}var names$d=[_0x1658de(1127),"poly"],poly={init:init$d,forward:forward$d,inverse:inverse$d,names:names$d};function init$c(){var e=321,t=3838,i=_0x1658de;this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this[i(e)]=[],this.C_re[1]=1.3231270439,this[i(321)][1]=0,this.C_re[2]=-.577245789,this[i(e)][2]=-.007809598,this.C_re[3]=.508307513,this[i(e)][3]=-.112208952,this[i(t)][4]=-.15094762,this[i(e)][4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this[i(3838)][6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function forward$c(e){for(var t=3353,i=_0x1658de,a=e.x,n=e.y-this.lat0,a=a-this.long0,s=n/SEC_TO_RAD*1e-5,n=a,r=1,o=0,l=1;l<=10;l++)o+=this.A[l]*(r*=s);var c,h=o,u=n,_=1,p=0,m=0,d=0;for(l=1;l<=6;l++)c=p*h+_*u,_=_*h-p*u,p=c,m=m+this[i(t)][l]*_-this.B_im[l]*p,d=d+this.B_im[l]*_+this.B_re[l]*p;return e.x=d*this.a+this.x0,e.y=m*this.a+this.y0,e}function inverse$c(e){var t,i=3353,a=2039,n=_0x1658de,s=e.x,r=e.y,s=s-this.x0,o=(r-this.y0)/this.a,l=s/this.a,c=1,h=0,u=0,_=0;for(g=1;g<=6;g++)t=c*o-h*l,h=h*o+c*l,u=u+this.C_re[g]*(c=t)-this[n(321)][g]*h,_=_+this.C_im[g]*c+this.C_re[g]*h;for(var p=0;p<this.iterations;p++){for(var m,d=u,f=_,y=o,v=l,g=2;g<=6;g++)m=f*u+d*_,d=d*u-f*_,f=m,y+=(g-1)*(this[n(i)][g]*d-this.B_im[g]*f),v+=(g-1)*(this.B_im[g]*d+this.B_re[g]*f);var d=1,f=0,C=this[n(3353)][1],x=this[n(a)][1];for(g=2;g<=6;g++)m=f*u+d*_,d=d*u-f*_,f=m,C+=g*(this.B_re[g]*d-this[n(2039)][g]*f),x+=g*(this.B_im[g]*d+this.B_re[g]*f);var b=C*C+x*x,u=(y*C+v*x)/b,_=(v*C-y*x)/b}var k=u,r=_,P=1,w=0;for(g=1;g<=9;g++)w+=this.D[g]*(P*=k);s=this.lat0+w*SEC_TO_RAD*1e5,r=this.long0+r;return e.x=r,e.y=s,e}var names$c=["New_Zealand_Map_Grid","nzmg"],nzmg={init:init$c,forward:forward$c,inverse:inverse$c,names:names$c};function init$b(){}function forward$b(e){var t=_0x1658de,i=e.x,a=e.y,i=adjust_lon(i-this.long0),i=this.x0+this.a*i,t=this.y0+this.a*Math[t(3491)](Math.tan(Math.PI/4+a/2.5))*1.25;return e.x=i,e.y=t,e}function inverse$b(e){var t=_0x1658de,t=(e.x-=this.x0,e.y-=this.y0,adjust_lon(this[t(1621)]+e.x/this.a)),i=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=i,e}var names$b=["Miller_Cylindrical","mill"],mill={init:init$b,forward:forward$b,inverse:inverse$b,names:names$b},MAX_ITER=20;function init$a(){var e=_0x1658de;this.sphere?(this.n=1,this.m=0,this.es=0,this[e(2887)]=Math.sqrt((this.m+1)/this.n),this.C_x=this[e(2887)]/(this.m+1)):this.en=pj_enfn(this.es)}function forward$a(e){var t=3007,i=_0x1658de,a=e.x,n=e.y,a=adjust_lon(a-this.long0);if(this.sphere){if(this.m)for(var s=this.n*Math.sin(n),r=MAX_ITER;r;--r){var o=(this.m*n+Math.sin(n)-s)/(this.m+Math[i(t)](n));if(n-=o,Math.abs(o)<EPSLN)break}else n=1!==this.n?Math[i(3963)](this.n*Math.sin(n)):n;u=this.a*this.C_x*a*(this.m+Math[i(t)](n)),h=this.a*this.C_y*n}else var l=Math.sin(n),c=Math.cos(n),h=this.a*pj_mlfn(n,l,c,this.en),u=this.a*a*c/Math.sqrt(1-this.es*l*l);return e.x=u,e.y=h,e}function inverse$a(e){var t,i,a=1868,n=2921,s=3007,r=_0x1658de;return e.x-=this.x0,i=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this[r(2887)],i/=this.C_x*(this.m+Math.cos(t)),this.m?t=asinz((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=asinz(Math[r(a)](t)/this.n)),i=adjust_lon(i+this.long0),t=adjust_lat(t)):(t=pj_inv_mlfn(e.y/this.a,this.es,this.en),(a=Math.abs(t))<HALF_PI?(a=Math.sin(t),i=adjust_lon(this.long0+e.x*Math[r(n)](1-this.es*a*a)/(this.a*Math[r(s)](t)))):a-EPSLN<HALF_PI&&(i=this.long0)),e.x=i,e.y=t,e}var names$a=["Sinusoidal",_0x1658de(2411)],sinu={init:init$a,forward:forward$a,inverse:inverse$a,names:names$a};function init$9(){}function forward$9(e){for(var t=_0x1658de,i=e.x,a=e.y,i=adjust_lon(i-this.long0),n=a,s=Math.PI*Math.sin(a);;){var r=-(n+Math.sin(n)-s)/(1+Math[t(3007)](n));if(n+=r,Math.abs(r)<EPSLN)break}n/=2,Math.PI/2-Math[t(411)](a)<EPSLN&&(i=0);a=.900316316158*this.a*i*Math.cos(n)+this.x0,i=1.4142135623731*this.a*Math.sin(n)+this.y0;return e.x=a,e.y=i,e}function inverse$9(e){var t,i=_0x1658de,a=(e.x-=this.x0,e.y-=this.y0,t=e.y/(1.4142135623731*this.a),.999999999999<Math.abs(t)&&(t=.999999999999),n=Math.asin(t),adjust_lon(this.long0+e.x/(.900316316158*this.a*Math.cos(n)))),n=((a=a<-Math.PI?-Math.PI:a)>Math.PI&&(a=Math.PI),t=(2*n+Math.sin(2*n))/Math.PI,1<Math.abs(t)&&(t=1),Math[i(3963)](t));return e.x=a,e.y=n,e}var names$9=["Mollweide","moll"],moll={init:init$9,forward:forward$9,inverse:inverse$9,names:names$9};function init$8(){var e=2865,t=2865,i=2865,a=3769,n=1739,s=3769,r=_0x1658de;Math.abs(this.lat1+this[r(e)])<EPSLN||(this[r(t)]=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=e0fn(this.es),this.e1=e1fn(this.es),this.e2=e2fn(this.es),this.e3=e3fn(this.es),this[r(3093)]=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=msfnz(this.e,this.sinphi,this.cosphi),this[r(945)]=mlfn(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<EPSLN?this.ns=this[r(3093)]:(this.sinphi=Math.sin(this[r(i)]),this.cosphi=Math.cos(this.lat2),this[r(a)]=msfnz(this.e,this.sinphi,this.cosphi),this[r(n)]=mlfn(this.e0,this.e1,this.e2,this.e3,this[r(t)]),this.ns=(this[r(3292)]-this[r(s)])/(this.ml2-this[r(945)])),this.g=this.ml1+this.ms1/this.ns,this.ml0=mlfn(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function forward$8(e){var t=e.x,i=e.y,t=(i=this.sphere?this.a*(this.g-i):(i=mlfn(this.e0,this.e1,this.e2,this.e3,i),this.a*(this.g-i)),this.ns*adjust_lon(t-this.long0)),a=this.x0+i*Math.sin(t),i=this.y0+this.rh-i*Math.cos(t);return e.x=a,e.y=i,e}function inverse$8(e){var t,i,a,n,s=_0x1658de,r=(e.x-=this.x0,e.y=this.rh-e.y+this.y0,t=0<=this.ns?(i=Math.sqrt(e.x*e.x+e.y*e.y),1):(i=-Math.sqrt(e.x*e.x+e.y*e.y),-1),0);return 0!==i&&(r=Math.atan2(t*e.x,t*e.y)),this[s(935)]?(n=adjust_lon(this.long0+r/this.ns),a=adjust_lat(this.g-i/this.a)):(a=imlfn(this.g-i/this.a,this.e0,this.e1,this.e2,this.e3),n=adjust_lon(this.long0+r/this.ns)),e.x=n,e.y=a,e}var names$8=["Equidistant_Conic",_0x1658de(3173)],eqdc={init:init$8,forward:forward$8,inverse:inverse$8,names:names$8};function init$7(){this.R=this.a}function forward$7(e){var t,i=_0x1658de,a=e.x,n=e.y,a=adjust_lon(a-this.long0),s=(Math.abs(n)<=EPSLN&&(t=this.x0+this.R*a,u=this.y0),asinz(2*Math.abs(n/Math.PI))),r=((Math.abs(a)<=EPSLN||Math[i(411)](Math.abs(n)-HALF_PI)<=EPSLN)&&(t=this.x0,u=0<=n?this.y0+Math.PI*this.R*Math.tan(.5*s):this.y0+Math.PI*this.R*-Math[i(1642)](.5*s)),.5*Math.abs(Math.PI/a-a/Math.PI)),o=r*r,l=Math.sin(s),s=Math.cos(s),s=s/(l+s-1),l=s*(2/l-1),c=l*l,h=Math.PI*this.R*(r*(s-c)+Math.sqrt(o*(s-c)*(s-c)-(c+o)*(s*s-c)))/(c+o),a=(t=this.x0+(h=a<0?-h:h),o+s),h=Math.PI*this.R*(l*a-r*Math[i(2921)]((c+o)*(1+o)-a*a))/(c+o),u=0<=n?this.y0+h:this.y0-h;return e.x=t,e.y=u,e}function inverse$7(e){var t,i,a,n,s,r,o,l=411,c=_0x1658de;return e.x-=this.x0,e.y-=this.y0,o=Math.PI*this.R,a=(t=e.x/o)*t+(i=e.y/o)*i,o=3*(i*i/(s=-2*(r=-Math[c(l)](i)*(1+a))+1+2*i*i+a*a)+(2*(n=r-2*i*i+t*t)*n*n/s/s/s-9*r*n/s/s)/27)/(r=(r-n*n/3/s)/s)/(r=2*Math.sqrt(-r/3)),1<Math[c(l)](o)&&(o=0<=o?1:-1),l=Math.acos(o)/3,o=0<=e.y?(-r*Math[c(3007)](l+Math.PI/3)-n/3/s)*Math.PI:-(-r*Math.cos(l+Math.PI/3)-n/3/s)*Math.PI,r=Math.abs(t)<EPSLN?this.long0:adjust_lon(this[c(1621)]+Math.PI*(a-1+Math[c(2921)](1+2*(t*t-i*i)+a*a))/2/t),e.x=r,e.y=o,e}var names$7=["Van_der_Grinten_I","VanDerGrinten",_0x1658de(753)],vandg={init:init$7,forward:forward$7,inverse:inverse$7,names:names$7};function init$6(){var e=954,t=954,i=_0x1658de;this.sin_p12=Math.sin(this[i(e)]),this[i(504)]=Math[i(3007)](this[i(t)])}function forward$6(e){var t,i,a,n=1621,s=1218,r=3007,o=411,l=1218,c=1868,h=2604,u=1868,_=3963,p=504,m=504,d=1868,f=_0x1658de,y=e.x,v=e.y,g=Math[f(1868)](e.y),C=Math.cos(e.y),y=adjust_lon(y-this[f(n)]);return this.sphere?Math.abs(this[f(s)]-1)<=EPSLN?(e.x=this.x0+this.a*(HALF_PI-v)*Math.sin(y),e.y=this.y0-this.a*(HALF_PI-v)*Math[f(r)](y)):Math[f(o)](this.sin_p12+1)<=EPSLN?(e.x=this.x0+this.a*(HALF_PI+v)*Math.sin(y),e.y=this.y0+this.a*(HALF_PI+v)*Math.cos(y)):(n=this[f(1218)]*g+this[f(504)]*C*Math[f(3007)](y),s=(a=Math.acos(n))?a/Math.sin(a):1,e.x=this.x0+this.a*s*C*Math.sin(y),e.y=this.y0+this.a*s*(this.cos_p12*g-this[f(l)]*C*Math[f(3007)](y))):(r=e0fn(this.es),o=e1fn(this.es),n=e2fn(this.es),s=e3fn(this.es),Math.abs(this.sin_p12-1)<=EPSLN?(t=this.a*mlfn(r,o,n,s,HALF_PI),i=this.a*mlfn(r,o,n,s,v),e.x=this.x0+(t-i)*Math[f(1868)](y),e.y=this.y0-(t-i)*Math.cos(y)):Math.abs(this.sin_p12+1)<=EPSLN?(t=this.a*mlfn(r,o,n,s,HALF_PI),i=this.a*mlfn(r,o,n,s,v),e.x=this.x0+(t+i)*Math[f(c)](y),e.y=this.y0+(t+i)*Math.cos(y)):(l=g/C,r=gN(this.a,this.e,this.sin_p12),o=gN(this.a,this.e,g),n=Math[f(h)]((1-this.es)*l+this.es*r*this[f(1218)]/(o*C)),v=0===(s=Math.atan2(Math[f(u)](y),this.cos_p12*Math.tan(n)-this[f(1218)]*Math.cos(y)))?Math[f(_)](this[f(p)]*Math.sin(n)-this.sin_p12*Math.cos(n)):Math.abs(Math.abs(s)-Math.PI)<=EPSLN?-Math.asin(this[f(m)]*Math.sin(n)-this.sin_p12*Math.cos(n)):Math.asin(Math[f(d)](y)*Math.cos(n)/Math[f(c)](s)),t=this.e*this.sin_p12/Math.sqrt(1-this.es),i=this.e*this.cos_p12*Math[f(3007)](s)/Math[f(2921)](1-this.es),e.x=this.x0+(a=r*v*(1-(g=v*v)*(h=i*i)*(1-h)/6+(l=g*v)/8*(o=t*i)*(1-2*h)+(C=l*v)/120*(h*(4-7*h)-3*t*t*(1-7*h))-C*v/48*o))*Math[f(u)](s),e.y=this.y0+a*Math.cos(s))),e}function inverse$6(e){var t,i,a,n,s,r,o=935,l=411,c=954,h=1621,u=504,_=1218,p=1218,m=504,d=3963,f=_0x1658de;return e.x-=this.x0,e.y-=this.y0,this[f(o)]?(t=Math.sqrt(e.x*e.x+e.y*e.y))>2*HALF_PI*this.a?void 0:(o=t/this.a,n=Math.sin(o),o=Math.cos(o),i=this.long0,Math[f(l)](t)<=EPSLN?a=this.lat0:(a=asinz(o*this[f(1218)]+e.y*n*this.cos_p12/t),r=Math.abs(this.lat0)-HALF_PI,i=Math.abs(r)<=EPSLN?0<=this[f(c)]?adjust_lon(this[f(h)]+Math.atan2(e.x,-e.y)):adjust_lon(this[f(h)]-Math[f(1935)](-e.x,e.y)):adjust_lon(this.long0+Math.atan2(e.x*n,t*this[f(u)]*o-e.y*this[f(_)]*n))),e.x=i,e.y=a,e):(r=e0fn(this.es),c=e1fn(this.es),h=e2fn(this.es),u=e3fn(this.es),Math.abs(this.sin_p12-1)<=EPSLN?(a=imlfn(((s=this.a*mlfn(r,c,h,u,HALF_PI))-(t=Math[f(2921)](e.x*e.x+e.y*e.y)))/this.a,r,c,h,u),i=adjust_lon(this[f(1621)]+Math.atan2(e.x,-1*e.y))):Math[f(l)](this[f(p)]+1)<=EPSLN?(s=this.a*mlfn(r,c,h,u,HALF_PI),a=imlfn(((t=Math.sqrt(e.x*e.x+e.y*e.y))-s)/this.a,r,c,h,u),i=adjust_lon(this.long0+Math[f(1935)](e.x,e.y))):(t=Math.sqrt(e.x*e.x+e.y*e.y),o=Math.atan2(e.x,e.y),_=gN(this.a,this.e,this.sin_p12),n=Math.cos(o),p=-(l=this.e*this[f(m)]*n)*l/(1-this.es),s=3*this.es*(1-p)*this[f(1218)]*this.cos_p12*n/(1-this.es),h=1-p*(c=(r=t/_)-p*(1+p)*Math.pow(r,3)/6-s*(1+3*p)*Math.pow(r,4)/24)*c/2-r*c*c*c/6,u=Math.asin(this.sin_p12*Math.cos(c)+this.cos_p12*Math.sin(c)*n),i=adjust_lon(this.long0+Math[f(d)](Math[f(1868)](o)*Math.sin(c)/Math.cos(u))),m=Math[f(1868)](u),a=Math.atan2((m-this.es*h*this.sin_p12)*Math[f(1642)](u),m*(1-this.es))),e.x=i,e.y=a,e)}var names$6=["Azimuthal_Equidistant","aeqd"],aeqd={init:init$6,forward:forward$6,inverse:inverse$6,names:names$6};function init$5(){var e=954,t=3007,i=_0x1658de;this[i(3340)]=Math.sin(this[i(e)]),this[i(1408)]=Math[i(t)](this[i(954)])}function forward$5(e){var t,i,a=_0x1658de,n=e.x,s=e.y,n=adjust_lon(n-this[a(1621)]),r=Math.sin(s),s=Math[a(3007)](s),o=Math.cos(n),l=this[a(3340)]*r+this.cos_p14*s*o;return(0<l||Math[a(411)](l)<=EPSLN)&&(t=+this.a*s*Math.sin(n),i=this.y0+ +this.a*(this.cos_p14*r-this.sin_p14*s*o)),e.x=t,e.y=i,e}function inverse$5(e){var t,i,a,n,s,r=1868,o=1408,l=3340,c=_0x1658de;return e.x-=this.x0,e.y-=this.y0,i=asinz((t=Math.sqrt(e.x*e.x+e.y*e.y))/this.a),r=Math[c(r)](i),i=Math.cos(i),n=this.long0,Math.abs(t)<=EPSLN?(s=this.lat0,e.x=n,e.y=s):(s=asinz(i*this.sin_p14+e.y*r*this.cos_p14/t),a=Math.abs(this.lat0)-HALF_PI,n=Math.abs(a)<=EPSLN?0<=this[c(954)]?adjust_lon(this.long0+Math.atan2(e.x,-e.y)):adjust_lon(this.long0-Math.atan2(-e.x,e.y)):adjust_lon(this.long0+Math.atan2(e.x*r,t*this[c(o)]*i-e.y*this[c(l)]*r)),e.x=n,e.y=s),e}var names$5=["ortho"],ortho={init:init$5,forward:forward$5,inverse:inverse$5,names:names$5},FACE_ENUM={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},AREA_ENUM={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function init$4(){var e=1621,t=3430,i=2143,a=_0x1658de;this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this[a(e)]=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this[a(t)]||a(i),this.lat0>=HALF_PI-FORTPI/2?this[a(1872)]=FACE_ENUM.TOP:this.lat0<=-(HALF_PI-FORTPI/2)?this.face=FACE_ENUM.BOTTOM:Math[a(411)](this.long0)<=FORTPI?this.face=FACE_ENUM.FRONT:Math.abs(this.long0)<=HALF_PI+FORTPI?this.face=0<this.long0?FACE_ENUM.RIGHT:FACE_ENUM.LEFT:this.face=FACE_ENUM.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function forward$4(e){var t,i,a,n,s,r=3601,o=1872,l=1947,c=1947,h=331,u=3007,_=2414,p=1868,m=_0x1658de,d={x:0,y:0},f={value:0};return e.x-=this.long0,n=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,a=e.x,this.face===FACE_ENUM.TOP?(i=HALF_PI-n,t=FORTPI<=a&&a<=HALF_PI+FORTPI?(f.value=AREA_ENUM.AREA_0,a-HALF_PI):HALF_PI+FORTPI<a||a<=-(HALF_PI+FORTPI)?(f[m(3601)]=AREA_ENUM.AREA_1,0<a?a-SPI:a+SPI):-(HALF_PI+FORTPI)<a&&a<=-FORTPI?(f.value=AREA_ENUM.AREA_2,a+HALF_PI):(f[m(3601)]=AREA_ENUM[m(1953)],a)):this[m(1872)]===FACE_ENUM[m(812)]?(i=HALF_PI+n,t=FORTPI<=a&&a<=HALF_PI+FORTPI?(f.value=AREA_ENUM.AREA_0,-a+HALF_PI):a<FORTPI&&-FORTPI<=a?(f[m(r)]=AREA_ENUM.AREA_1,-a):a<-FORTPI&&-(HALF_PI+FORTPI)<=a?(f.value=AREA_ENUM.AREA_2,-a-HALF_PI):(f.value=AREA_ENUM.AREA_3,0<a?-a+SPI:-a-SPI)):(this.face===FACE_ENUM.RIGHT?a=qsc_shift_lon_origin(a,+HALF_PI):this.face===FACE_ENUM.BACK?a=qsc_shift_lon_origin(a,+SPI):this.face===FACE_ENUM.LEFT&&(a=qsc_shift_lon_origin(a,-HALF_PI)),r=Math.sin(n),n=Math.cos(n),s=Math[m(1868)](a),a=n*Math.cos(a),n=n*s,s=r,this[m(o)]===FACE_ENUM.FRONT?t=qsc_fwd_equat_face_theta(i=Math.acos(a),s,n,f):this.face===FACE_ENUM.RIGHT?t=qsc_fwd_equat_face_theta(i=Math.acos(n),s,-a,f):this.face===FACE_ENUM[m(2625)]?t=qsc_fwd_equat_face_theta(i=Math[m(l)](-a),s,-n,f):this[m(o)]===FACE_ENUM.LEFT?t=qsc_fwd_equat_face_theta(i=Math[m(c)](-n),s,a,f):(i=t=0,f.value=AREA_ENUM[m(h)])),r=Math.atan(12/SPI*(t+Math.acos(Math.sin(t)*Math.cos(FORTPI))-HALF_PI)),l=Math.sqrt((1-Math.cos(i))/(Math.cos(r)*Math.cos(r))/(1-Math.cos(Math.atan(1/Math[m(u)](t))))),f.value===AREA_ENUM[m(_)]?r+=HALF_PI:f.value===AREA_ENUM.AREA_2?r+=SPI:f.value===AREA_ENUM.AREA_3&&(r+=1.5*SPI),d.x=l*Math.cos(r),d.y=l*Math[m(p)](r),d.x=d.x*this.a+this.x0,d.y=d.y*this.a+this.y0,e.x=d.x,e.y=d.y,e}function inverse$4(e){var t,i,a,n=3601,s=1868,r=2869,o=2869,l=2869,c=3601,h=3524,u=2921,_=1106,p=3750,m=_0x1658de,d={lam:0,phi:0},f={value:0};return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,a=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math[m(1935)](e.y,e.x),0<=e.x&&e.x>=Math[m(411)](e.y)?f.value=AREA_ENUM.AREA_0:0<=e.y&&e.y>=Math.abs(e.x)?(f.value=AREA_ENUM.AREA_1,t-=HALF_PI):e.x<0&&-e.x>=Math.abs(e.y)?(f.value=AREA_ENUM.AREA_2,t=t<0?t+SPI:t-SPI):(f[m(n)]=AREA_ENUM.AREA_3,t+=HALF_PI),n=SPI/12*Math[m(1642)](t),s=Math[m(s)](n)/(Math.cos(n)-1/Math.sqrt(2)),s=Math.atan(s),(a=1-(t=Math.cos(t))*t*(t=Math.tan(a))*t*(1-Math.cos(Math.atan(1/Math.cos(s)))))<-1?a=-1:1<a&&(a=1),this.face===FACE_ENUM.TOP?(i=Math.acos(a),d.phi=HALF_PI-i,f.value===AREA_ENUM[m(331)]?d.lam=s+HALF_PI:f.value===AREA_ENUM[m(2414)]?d.lam=s<0?s+SPI:s-SPI:f.value===AREA_ENUM[m(3171)]?d[m(r)]=s-HALF_PI:d[m(o)]=s):this.face===FACE_ENUM[m(812)]?(i=Math.acos(a),d.phi=i-HALF_PI,f.value===AREA_ENUM.AREA_0?d.lam=-s+HALF_PI:f.value===AREA_ENUM[m(2414)]?d[m(l)]=-s:f.value===AREA_ENUM.AREA_2?d.lam=-s-HALF_PI:d.lam=s<0?-s-SPI:-s+SPI):(r=1<=(n=(t=a)*t)?0:Math.sqrt(1-n)*Math.sin(s),o=1<=(n+=r*r)?0:Math[m(2921)](1-n),f[m(c)]===AREA_ENUM[m(2414)]?(n=o,o=-r,r=n):f.value===AREA_ENUM[m(3171)]?(o=-o,r=-r):f.value===AREA_ENUM[m(1953)]&&(n=o,o=r,r=-n),this.face===FACE_ENUM.RIGHT?(n=t,t=-o,o=n):this.face===FACE_ENUM.BACK?(t=-t,o=-o):this.face===FACE_ENUM.LEFT&&(n=t,t=o,o=-n),d.phi=Math.acos(-r)-HALF_PI,d.lam=Math.atan2(o,t),this.face===FACE_ENUM[m(h)]?d.lam=qsc_shift_lon_origin(d.lam,-HALF_PI):this.face===FACE_ENUM.BACK?d.lam=qsc_shift_lon_origin(d[m(2869)],-SPI):this.face===FACE_ENUM.LEFT&&(d.lam=qsc_shift_lon_origin(d.lam,+HALF_PI))),0!==this.es&&(i=d.phi<0?1:0,l=Math.tan(d.phi),a=this.b/Math.sqrt(l*l+this[m(1792)]),d.phi=Math[m(2604)](Math[m(u)](this.a*this.a-a*a)/(this[m(_)]*a)),i)&&(d[m(p)]=-d.phi),d.lam+=this.long0,e.x=d.lam,e.y=d.phi,e}function qsc_fwd_equat_face_theta(e,t,i,a){var n,s=_0x1658de;return e<EPSLN?(a.value=AREA_ENUM.AREA_0,n=0):(n=Math.atan2(t,i),Math[s(411)](n)<=FORTPI?a.value=AREA_ENUM.AREA_0:FORTPI<n&&n<=HALF_PI+FORTPI?(a.value=AREA_ENUM.AREA_1,n-=HALF_PI):HALF_PI+FORTPI<n||n<=-(HALF_PI+FORTPI)?(a.value=AREA_ENUM[s(3171)],n=0<=n?n-SPI:n+SPI):(a.value=AREA_ENUM[s(1953)],n+=HALF_PI)),n}function qsc_shift_lon_origin(e,t){e+=t;return e<-SPI?e+=TWO_PI:+SPI<e&&(e-=TWO_PI),e}var names$4=["Quadrilateralized Spherical Cube",_0x1658de(3583),"qsc"],qsc={init:init$4,forward:forward$4,inverse:inverse$4,names:names$4},COEFS_X=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],COEFS_Y=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],FXC=.8487,FYC=1.3523,C1=R2D/5,RC1=1/C1,NODES=18,poly3_val=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},poly3_der=function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])};function newton_rapshon(e,t,i,a){for(var n=t;a;--a){var s=e(n);if(n-=s,Math.abs(s)<i)break}return n}function init$3(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function forward$3(e){var t=411,i=3264,a=_0x1658de,n=adjust_lon(e.x-this[a(1621)]),t=Math[a(t)](e.y),a=Math[a(i)](t*C1),i=(a<0?a=0:NODES<=a&&(a=NODES-1),{x:poly3_val(COEFS_X[a],t=R2D*(t-RC1*a))*n,y:poly3_val(COEFS_Y[a],t)});return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*FXC+this.x0,i.y=i.y*this.a*FYC+this.y0,i}function inverse$3(e){var t=_0x1658de,i={x:(e.x-this.x0)/(this.a*FXC),y:Math[t(411)](e.y-this.y0)/(this.a*FYC)};if(1<=i.y)i.x/=COEFS_X[NODES][0],i.y=e.y<0?-HALF_PI:HALF_PI;else{var a=Math.floor(i.y*NODES);for(a<0?a=0:NODES<=a&&(a=NODES-1);;)if(COEFS_Y[a][0]>i.y)--a;else{if(!(COEFS_Y[a+1][0]<=i.y))break;++a}var n=COEFS_Y[a],s=newton_rapshon(function(e){return(poly3_val(n,e)-i.y)/poly3_der(n,e)},5*(i.y-n[0])/(COEFS_Y[a+1][0]-n[0]),EPSLN,100);i.x/=poly3_val(COEFS_X[a],s),i.y=(5*a+s)*D2R$1,e.y<0&&(i.y=-i.y)}return i.x=adjust_lon(i.x+this[t(1621)]),i}var names$3=["Robinson",_0x1658de(782)],robin={init:init$3,forward:forward$3,inverse:inverse$3,names:names$3};function init$2(){var e=_0x1658de;this.name=e(3414)}function forward$2(e){return geodeticToGeocentric(e,this.es,this.a)}function inverse$2(e){return geocentricToGeodetic(e,this.es,this.a,this.b)}var names$2=["Geocentric","geocentric","geocent","Geocent"],geocent={init:init$2,forward:forward$2,inverse:inverse$2,names:names$2},mode={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},params={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function init$1(){var e=785,t=3987,i=609,a=_0x1658de;if(Object[a(2206)](params)[a(2432)](function(e){var t=a;if(void 0===this[e])this[e]=params[e][t(i)];else{if(params[e][t(663)]&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);params[e].num&&(this[e]=parseFloat(this[e]))}params[e].degrees&&(this[e]=this[e]*D2R$1)}.bind(this)),Math.abs(Math[a(411)](this.lat0)-HALF_PI)<EPSLN?this.mode=this[a(954)]<0?mode.S_POLE:mode.N_POLE:Math.abs(this.lat0)<EPSLN?this.mode=mode.EQUIT:(this.mode=mode.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math[a(3007)](this.lat0)),this.pn1=this.h/this.a,this[a(3329)]<=0||1e10<this.pn1)throw new Error(a(e));this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;e=this[a(t)],t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)}function forward$1(e){var t,i=3007,a=2505,n=1679,s=480,r=_0x1658de,o=(e.x-=this.long0,Math.sin(e.y)),l=Math.cos(e.y),c=Math[r(i)](e.x);switch(this[r(a)]){case mode[r(4083)]:t=this.sinph0*o+this[r(1679)]*l*c;break;case mode.EQUIT:t=l*c;break;case mode.S_POLE:t=-o;break;case mode.N_POLE:t=o}switch(i=(t=this.pn1/(this.p-t))*l*Math.sin(e.x),this.mode){case mode.OBLIQ:t*=this[r(n)]*o-this.sinph0*l*c;break;case mode.EQUIT:t*=o;break;case mode.N_POLE:t*=-l*c;break;case mode[r(s)]:t*=l*c}return s=1/((a=t*this.cg+i*this.sg)*this.sw*this.h1+this.cw),i=(i*this.cg-t*this.sg)*this.cw*s,t=a*s,e.x=i*this.a,e.y=t*this.a,e}function inverse$1(e){var t=3329,i=3329,a=2378,n=3963,s=1679,r=480,o=_0x1658de,l=(e.x/=this.a,e.y/=this.a,{x:e.x,y:e.y}),c=1/(this.pn1-e.y*this.sw),t=this[o(t)]*e.x*c,i=this[o(i)]*e.y*this.cw*c,h=(e.x=t*this.cg+i*this.sg,e.y=i*this.cg-t*this.sg,hypot(e.x,e.y));if(Math.abs(h)<EPSLN)l.x=0,l.y=e.y;else{var u,_=1-h*h*this[o(a)];switch(_=(this.p-Math.sqrt(_))/(this.pn1/h+h/this.pn1),u=Math.sqrt(1-_*_),this.mode){case mode.OBLIQ:l.y=Math[o(n)](u*this[o(641)]+e.y*_*this[o(s)]/h),e.y=(u-this.sinph0*Math.sin(l.y))*h,e.x*=_*this.cosph0;break;case mode.EQUIT:l.y=Math.asin(e.y*_/h),e.y=u*h,e.x*=_;break;case mode.N_POLE:l.y=Math.asin(u),e.y=-e.y;break;case mode[o(r)]:l.y=-Math.asin(u)}l.x=Math.atan2(e.x,e.y)}return e.x=l.x+this.long0,e.y=l.y,e}var names$1=[_0x1658de(2331),"tpers"],tpers={init:init$1,forward:forward$1,inverse:inverse$1,names:names$1};function init(){var e=4051,t=2082,i=2921,a=_0x1658de;if(this.flip_axis="x"===this[a(e)]?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this[a(505)]<=0||1e10<this.radius_g_1)throw new Error;this[a(t)]=1+this.radius_g_1,this.C=this.radius_g*this[a(2082)]-1,0!==this.es?(t=1/(e=1-this.es),this.radius_p=Math[a(i)](e),this.radius_p2=e,this.radius_p_inv2=t,this[a(3824)]="ellipse"):(this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere"),this.title||(this[a(3430)]="Geostationary Satellite View")}function forward(e){var t,i=1621,a=3007,n=536,s=2604,r=_0x1658de,o=e.x,l=e.y;if(o-=this[r(i)],"ellipse"===this.shape){var l=Math[r(2604)](this[r(3792)]*Math.tan(l)),i=this.radius_p/hypot(this.radius_p*Math.cos(l),Math.sin(l)),c=i*Math.cos(o)*Math[r(3007)](l),h=i*Math.sin(o)*Math[r(a)](l),u=i*Math.sin(l);if((this.radius_g-c)*c-h*h-u*u*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number[r(2583)],e;t=this.radius_g-c,this[r(n)]?(e.x=this.radius_g_1*Math[r(2604)](h/hypot(u,t)),e.y=this.radius_g_1*Math.atan(u/t)):(e.x=this.radius_g_1*Math[r(s)](h/t),e.y=this.radius_g_1*Math.atan(u/hypot(h,t)))}else"sphere"===this.shape&&(t=Math.cos(l),c=Math.cos(o)*t,h=Math.sin(o)*t,u=Math.sin(l),t=this.radius_g-c,this[r(536)]?(e.x=this.radius_g_1*Math.atan(h/hypot(u,t)),e.y=this[r(505)]*Math.atan(u/t)):(e.x=this.radius_g_1*Math.atan(h/t),e.y=this.radius_g_1*Math.atan(u/hypot(h,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e}function inverse(e){var t,i=1642,a=1935,n=2604,s=1642,r=505,o=2921,l=2604,c=_0x1658de,h=-1,u=0,_=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(_=Math[c(1642)](e.y/this.radius_g_1),u=Math.tan(e.x/this[c(505)])*hypot(1,_)):(u=Math.tan(e.x/this.radius_g_1),_=Math[c(i)](e.y/this.radius_g_1)*hypot(1,u));var p,m,d=_/this.radius_p,d=u*u+d*d+h*h;if((m=(p=2*this.radius_g*h)*p-4*d*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;t=(-p-Math.sqrt(m))/(2*d),h=this[c(2082)]+t*h,u*=t,_*=t,e.x=Math[c(a)](u,h),e.y=Math[c(n)](_*Math.cos(e.x)/h),e.y=Math[c(2604)](this.radius_p_inv2*Math[c(i)](e.y))}else if("sphere"===this.shape){if(this.flip_axis?(_=Math[c(s)](e.y/this[c(505)]),u=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+_*_)):(u=Math.tan(e.x/this.radius_g_1),_=Math.tan(e.y/this[c(r)])*Math[c(o)](1+u*u)),(m=(p=2*this.radius_g*h)*p-4*(d=u*u+_*_+h*h)*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;t=(-p-Math[c(2921)](m))/(2*d),h=this.radius_g+t*h,u*=t,_*=t,e.x=Math.atan2(u,h),e.y=Math[c(l)](_*Math.cos(e.x)/h)}return e.x=e.x+this.long0,e}var names=[_0x1658de(1297),"Geostationary_Satellite","geos"],geos={init:init,forward:forward,inverse:inverse,names:names};function includedProjections(e){var t=2616,i=3605,a=3605,n=2237,s=2237,r=2237,o=2616,l=3605,c=2237,h=2616,u=_0x1658de;e[u(2237)][u(t)].add(tmerc),e[u(2237)][u(2616)][u(i)](etmerc),e.Proj[u(t)][u(3605)](utm),e.Proj.projections[u(a)](sterea),e[u(2237)].projections.add(stere),e.Proj.projections.add(somerc),e.Proj.projections.add(omerc),e.Proj.projections.add(lcc),e.Proj[u(2616)].add(krovak),e[u(n)].projections.add(cass),e.Proj.projections[u(3605)](laea),e.Proj.projections.add(aea),e[u(s)][u(2616)].add(gnom),e[u(r)].projections.add(cea),e.Proj.projections.add(eqc),e.Proj[u(o)].add(poly),e[u(2237)].projections[u(l)](nzmg),e[u(c)].projections.add(mill),e[u(r)].projections.add(sinu),e.Proj.projections.add(moll),e[u(r)].projections.add(eqdc),e[u(2237)].projections.add(vandg),e[u(2237)].projections.add(aeqd),e.Proj[u(2616)].add(ortho),e[u(2237)].projections.add(qsc),e[u(2237)][u(h)].add(robin),e[u(2237)].projections[u(3605)](geocent),e.Proj.projections.add(tpers),e.Proj[u(o)].add(geos)}proj4.defaultDatum="WGS84",proj4.Proj=Projection,proj4.WGS84=new proj4.Proj(_0x1658de(998)),proj4[_0x1658de(3308)]=Point,proj4.toPoint=common,proj4.defs=defs,proj4.nadgrid=nadgrid,proj4[_0x1658de(2477)]=transform,proj4.mgrs=mgrs,proj4[_0x1658de(695)]="__VERSION__",includedProjections(proj4);var CRS={EPSG3857:"EPSG:3857",EPSG4326:"EPSG:4326",EPSG4490:"EPSG:4490",CGCS2000_GK_Zone_3:_0x1658de(1275),CGCS2000_GK_Zone_6:_0x1658de(1110),CGCS2000_GK_CM_3:"CGCS2000_GK_CM_3",CGCS2000_GK_CM_6:"CGCS2000_GK_CM_6"},PI$1=3.141592653589793,LngLatPoint=function(){var e=3060,t=2498,i=2313,a=1914,n=3258,s=659,r=659,o=3011,l=1604,c=1124,h=1604,u=784,_=2023,p=1124,m=2360,d=3594,f=3159,y=2498,v=1807,g=484,C=2993,x=1111,b=1111,k=1738,P=2160,w=2160,S=2160,T=1634,M=1642,E=2993,A=2993,L=654,D=654,H=484,F=654,N=2993,G=654,z=520,B=2993,I=484,j=2993,V=1634,O=_0x1658de;function R(e,t,i){_classCallCheck(this,R),this._lng=Number(e||0),this._lat=Number(t||0),this._alt=Number(i||0)}return _createClass(R,[{key:"lng",get:function(){return this._lng},set:function(e){this[_0x236b(V)]=+e,this._position=null}},{key:O(654),get:function(){return this._lat},set:function(e){this._lat=+e,this._position=null}},{key:"alt",get:function(){return this._alt||0},set:function(e){this._alt=+e,this._position=null}},{key:O(e),value:function(){var e=O,t=new R;return t[e(I)]=this[e(I)]||0,t.lat=this.lat||0,t[e(j)]=this.alt||0,t}},{key:O(t),value:function(){var e=O;return this.lng=formatNum$2(this.lng,R.FormatLength),this.lat=formatNum$2(this[e(G)],R[e(z)]),this[e(2993)]=formatNum$2(this[e(B)],R.FormatAltLength),this}},{key:O(1326),value:function(e){var t=O;return this.format(),e?[this[t(H)],this[t(F)]]:[this.lng,this.lat,this[t(N)]]}},{key:"toString",value:function(){var e=O;return this.format(),"".concat(this[e(484)],",")[e(2557)](this[e(D)],",").concat(this.alt)}},{key:O(3600),value:function(){var e=O;return!(0<arguments.length&&void 0!==arguments[0]&&arguments[0])&&this[e(1111)]?this._position:Cesium__namespace.Cartesian3[e(3119)](this.lng,this[e(L)],this.alt)}},{key:O(659),value:function(){var e=O;return Cesium__namespace.Cartographic.fromDegrees(this.lng,this.lat,this[e(A)])}},{key:"toMercator",value:function(){var e=O,t=Math.min(this.lng,180),t=Math.max(t,-180),i=Math.min(this.lat,85.05112877980659),i=Math.max(i,-85.05112877980659);return[20037508.34*t/180,20037508.34*(Math.log(Math[e(M)]((90+i)*PI$1/360))/(PI$1/180))/180,this[e(E)]]}},{key:"equals",value:function(e){var t=O;return this===e||e instanceof R&&this[t(3030)]===e._alt&&this._lat===e[t(S)]&&this._lng===e[t(T)]}},{key:O(i),value:function(){var e=O;return!isNaN(this[e(P)])&&!isNaN(this._lng)&&!(this[e(2160)]<-90||90<this[e(w)]||this._lng<-180||180<this._lng||0===this[e(2160)]&&0===this._lng&&0===this._alt)}}],[{key:"parse",value:function(e,t){var i,a=O;if(!e)return new R;if(e instanceof R)return e;if("string"==typeof e)i=R.fromString(e);else if(Array.isArray(e))i=R.fromArray(e);else if(e instanceof R)i=e.clone();else if(Cesium__namespace.defined(e.lat)&&Cesium__namespace.defined(e.lng))for(var n in i=new R(e[a(g)],e.lat,e[a(C)]),e)i[n]=e[n];else e instanceof Cesium__namespace.Cartesian3||e._value||e.getValue?(i=R.fromCartesian(e,t))[a(x)]=e:Cesium__namespace.defined(e.x)&&Cesium__namespace.defined(e.y)&&Cesium__namespace.defined(e.z)?(e=new Cesium__namespace.Cartesian3(e.x,e.y,e.z),(i=R.fromCartesian(e,t))[a(b)]=e):(i=new R,logError$1(a(k),e));return i}},{key:"fromArray",value:function(e){var t=O,i=new R;return Array[t(2255)](e)&&(i[t(484)]=e[0]||0,i[t(654)]=e[1]||0,i.alt=e[2]||0),i}},{key:O(a),value:function(e){var t=O,i=new R;return e&&typeof e===t(v)&&(t=e.split(","),i=this.fromArray(t)),i}},{key:O(n),value:function(e,t){var i,a=O,n=new R;return e&&(e instanceof Cesium__namespace[a(784)]?i=e:e._value&&e._value instanceof Cesium__namespace[a(u)]?i=e[a(2243)]:"function"==typeof e[a(777)]&&(i=e.getValue(t||Cesium__namespace.JulianDate[a(_)]()))),i&&(t=Cesium__namespace.Cartographic.fromCartesian(i))&&(n.lat=Cesium__namespace[a(p)].toDegrees(t[a(m)]),n.lng=Cesium__namespace.Math[a(1604)](t[a(d)]),n.alt=t[a(f)],n[a(y)]()),n._position=e,n}},{key:O(885),value:function(e){var t=O,i=new R;return i.lat=Cesium__namespace.Math[t(l)](e.latitude),i.lng=Cesium__namespace[t(c)][t(h)](e[t(3594)]),i.alt=e.height,i}},{key:"fromMercator",value:function(e){var t=O,i=Number(e[0]),a=Number(e[1])/20037508.34*180;return new R(i/20037508.34*180,180/PI$1*(2*Math.atan(Math[t(o)](a*PI$1/180))-PI$1/2),e[2]||0)}},{key:"toCartesian",value:function(e,t){var i=O;return!e||e instanceof Cesium__namespace.Cartesian3?e:R.parse(e,t)[i(3600)](!0)}},{key:O(s),value:function(e,t){var i=O;return!e||e instanceof Cesium__namespace.Cartographic?e:R.parse(e,t)[i(r)]()}},{key:"toArray",value:function(e,t){e=R.parse(e);return e&&e.valid()?e.toArray(t):[]}}]),R}();function formatNum$2(e){var t=_0x1658de,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,t=Math[t(2127)](10,i);return Math.round(e*t)/t}LngLatPoint.FormatLength=6,LngLatPoint.FormatAltLength=1;var LngLatArray=function(){var n=332,s=2313,r=784,e=_0x1658de;function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"toCartesians",value:function(e,i){var a,n=_0x236b;return e&&Array[n(2255)](e)?(a=[],e.forEach(function(e){var t=n;e instanceof Cesium__namespace[t(r)]?i?a.push(e.clone()):a[t(1018)](e):(t=LngLatPoint[t(332)](e))&&t.valid()&&a.push(t.toCartesian(!0))}),a):e}},{key:e(2494),value:function(e,i){var a;return e&&Array.isArray(e)?(a=[],e.forEach(function(e){var t=_0x236b;(e instanceof LngLatPoint&&!i||(e=LngLatPoint.parse(e))&&e[t(s)]())&&a.push(e)}),a):e}},{key:e(1326),value:function(e,i){var a;return e&&Array.isArray(e)?(a=[],e.forEach(function(e){var t=_0x236b;Array.isArray(e)?a.push(e):(e=LngLatPoint[t(n)](e))&&e[t(2313)]()&&a.push(e[t(1326)](i))}),a):e}}]),t}();function degree2dms(e){var t=e<0?-1:1,i=(e=Math[_0x1658de(411)](e),Math.floor(e)),a=Math.floor(60*(e-i)),e=Math.round(3600*(e-i)%60);return{degree:i*=t,minute:a,second:e,str:i+"° "+a+"' "+e+'"'}}function dms2degree(e,t,i){t=Math.abs(e)+t/60+i/3600;return e<0&&(t*=-1),t}function getCGCS2000EPSGByLng(e,t){var i,a=_0x1658de,n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];if(t){t=parseInt(e/6)+1;if(t<13||23<t)return;i=n?t+4478:t+4489}else{t=parseInt((e-1.5)/3)+1;if(t<25||45<t)return;i=n?t+4488:t+4509}return a(2757)+i}function getCGCS2000EPSGByX(e){var t=2757,i=_0x1658de,e=parseInt(e[i(1375)]().slice(0,2));return 13<=e&&e<=23?i(t)+(e+4478):25<=e&&e<=45?"EPSG:"+(e+4488):void 0}function proj4Trans(e,t){var i=1110,a=2796,n=3277,s=_0x1658de,r=2<arguments[s(2822)]&&void 0!==arguments[2]?arguments[2]:"EPSG:4326";if(t&&r&&t!==r)try{if(t!==CRS[s(1275)]&&t!==CRS[s(i)]||(t=getCGCS2000EPSGByX(e[0])),r===CRS.CGCS2000_GK_Zone_3?r=getCGCS2000EPSGByLng(e[0],!1,!0):r===CRS.CGCS2000_GK_Zone_6?r=getCGCS2000EPSGByLng(e[0],!0,!0):r===CRS.CGCS2000_GK_CM_3?r=getCGCS2000EPSGByLng(e[0],!1,!1):r===CRS[s(a)]&&(r=getCGCS2000EPSGByLng(e[0],!0,!1)),!t||!r||t===r)return e;var o=proj4(t,r,e);if(Cesium__namespace[s(n)](o)&&1<o.length&&!isNaN(o[0])&&o[0]!==1/0)return o}catch(e){}return e}function proj4TransArr(e,t){var i=_0x1658de,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"EPSG:4326";if(!t||t===a)return e;for(var n=[],s=0,r=e[i(2822)];s<r;s++){var o,l=e[s];Array.isArray(l[0])?(o=proj4TransArr(l,t,a))&&0<o.length&&n[i(1018)](o):(o=proj4Trans(l,t,a))&&n.push(o)}return n}function cartesian2lonlat(e,t){return LngLatPoint[_0x1658de(1326)](e,t)}function cartesians2lonlats(e,t){return LngLatArray.toArray(e,t)}function cartesian2mercator(e){return e?LngLatPoint.fromCartesian(e).toMercator():null}function cartesians2mercators(e){for(var t=[],i=0,a=e[_0x1658de(2822)];i<a;i++){var n=cartesian2mercator(e[i]);n&&t.push(n)}return t}function lonlat2cartesian(e){var t=_0x1658de,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return!e||e.length<2?null:Cesium__namespace.Cartesian3[t(3119)](e[0],e[1],e[2]||i)}function lonlats2cartesians(e,t){for(var i=2255,a=_0x1658de,n=[],s=0,r=e.length;s<r;s++){var o,l=e[s];Array[a(i)](l[0])?(o=lonlats2cartesians(l,t))&&0<o.length&&n[a(1018)](o):(o=lonlat2cartesian(l,t))&&n.push(o)}return n}function lonlat2mercator(e){return LngLatPoint.fromArray(e).toMercator()}function lonlats2mercators(e){for(var t=_0x1658de,i=[],a=0,n=e[t(2822)];a<n;a++){var s=lonlat2mercator(e[a]);i[t(1018)](s)}return i}function mercator2cartesian(e,t){var i=_0x1658de;return isNaN(e[0])||isNaN(e[1])?null:(e=LngLatPoint.fromMercator(e),Cesium__namespace.defined(t)&&(e[i(2993)]=t),e.toCartesian())}function mercators2cartesians(e,t){for(var i=[],a=0,n=e.length;a<n;a++){var s=mercator2cartesian(e[a],t);s&&i.push(s)}return i}function mercator2lonlat(e){return LngLatPoint[_0x1658de(775)](e).toArray()}function mercators2lonlats(e){for(var t=[],i=0,a=e.length;i<a;i++){var n=mercator2lonlat(e[i]);t.push(n)}return t}var x_PI=52.35987755982988,PI=3.141592653589793,a=6378245,ee=.00669342162296594;function transformlat(e,t){var i=411,a=1868,n=_0x1658de,i=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math[n(2921)](Math[n(i)](e));return(i+=2*(20*Math.sin(6*e*PI)+20*Math.sin(2*e*PI))/3)+2*(20*Math.sin(t*PI)+40*Math.sin(t/3*PI))/3+2*(160*Math[n(a)](t/12*PI)+320*Math[n(a)](t*PI/30))/3}function transformlng(e,t){var i=_0x1658de,t=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return(t+=2*(20*Math.sin(6*e*PI)+20*Math.sin(2*e*PI))/3)+2*(20*Math[i(1868)](e*PI)+40*Math.sin(e/3*PI))/3+2*(150*Math.sin(e/12*PI)+300*Math.sin(e/30*PI))/3}function out_of_china(e,t){return e<72.004||137.8347<e||t<.8293||55.8271<t}function bd2gcj(e){var t=_0x1658de,i=52.35987755982988,a=Number(e[0])-.0065,e=Number(e[1])-.006,n=Math.sqrt(a*a+e*e)-2e-5*Math[t(1868)](e*i),e=Math.atan2(e,a)-3e-6*Math.cos(a*i),a=n*Math.cos(e),i=n*Math.sin(e);return[a=Number(a[t(3366)](6)),i=Number(i[t(3366)](6))]}function gcj2bd(e){var t=_0x1658de,i=Number(e[0]),e=Number(e[1]),a=Math.sqrt(i*i+e*e)+2e-5*Math.sin(e*x_PI),e=Math[t(1935)](e,i)+3e-6*Math[t(3007)](i*x_PI),i=a*Math.cos(e)+.0065,a=a*Math.sin(e)+.006;return[i=Number(i.toFixed(6)),a=Number(a[t(3366)](6))]}function wgs2gcj(e){var t,i,n,s,r,o=3007,l=3366,c=_0x1658de,h=Number(e[0]),e=Number(e[1]);return out_of_china(h,e)?[h,e]:(n=transformlat(h-105,e-35),s=transformlng(h-105,e-35),t=e/180*PI,r=Math.sin(t),r=1-ee*r*r,i=Math.sqrt(r),e=e+(n=180*n/(a*(1-ee)/(r*i)*PI)),r=h+(s=180*s/(a/i*Math[c(o)](t)*PI)),[r=Number(r[c(l)](6)),e=Number(e[c(3366)](6))])}function gcj2wgs(e){var t,i,n,s,r,o=_0x1658de,l=Number(e[0]),e=Number(e[1]);return out_of_china(l,e)?[l,e]:(n=transformlat(l-105,e-35),s=transformlng(l-105,e-35),t=e/180*PI,r=Math.sin(t),r=1-ee*r*r,i=Math[o(2921)](r),n=180*n/(a*(1-ee)/(r*i)*PI),r=2*l-(l+(s=180*s/(a/i*Math.cos(t)*PI))),l=2*e-(e+n),[r=Number(r.toFixed(6)),l=Number(l[o(3366)](6))])}function bd2wgs(e){return gcj2wgs(bd2gcj(e))}function wgs2bd(e){return gcj2bd(wgs2gcj(e))}var PointTrans={__proto__:null,degree2dms:degree2dms,dms2degree:dms2degree,getCGCS2000EPSGByLng:getCGCS2000EPSGByLng,getCGCS2000EPSGByX:getCGCS2000EPSGByX,proj4Trans:proj4Trans,proj4TransArr:proj4TransArr,cartesian2lonlat:cartesian2lonlat,cartesians2lonlats:cartesians2lonlats,cartesian2mercator:cartesian2mercator,cartesians2mercators:cartesians2mercators,lonlat2cartesian:lonlat2cartesian,lonlats2cartesians:lonlats2cartesians,lonlat2mercator:lonlat2mercator,lonlats2mercators:lonlats2mercators,mercator2cartesian:mercator2cartesian,mercators2cartesians:mercators2cartesians,mercator2lonlat:mercator2lonlat,mercators2lonlats:mercators2lonlats,bd2gcj:bd2gcj,gcj2bd:gcj2bd,wgs2gcj:wgs2gcj,gcj2wgs:gcj2wgs,bd2wgs:bd2wgs,wgs2bd:wgs2bd},Lang={"_放大":["放大","放大","Zoom In"],"_缩小":["缩小","縮小","Zoom Out"],"_查看此处坐标":[_0x1658de(3338),"查看此處坐標","Location info"],"_位置信息":["位置信息",_0x1658de(3309),_0x1658de(3013)],"_经度":["经度","經度","Lon"],"_纬度":["纬度","緯度","Lat"],"_海拔":["高程","高程",_0x1658de(3125)],"_横坐标":[_0x1658de(4020),_0x1658de(1774),"X"],"_纵坐标":[_0x1658de(2146),"縱坐標","Y"],"_查看当前视角":[_0x1658de(3946),_0x1658de(4058),"Camera info"],"_当前视角信息":["当前视角信息",_0x1658de(4103),"Current Camera Information"],"_视角切换":[_0x1658de(3282),_0x1658de(1685),_0x1658de(1075)],"_禁止进入地下":["禁止进入地下","禁止進入地下",_0x1658de(3655)],"_允许进入地下":[_0x1658de(2419),"允許進入地下","Access to the ground"],"_绕此处环绕飞行":["绕此处环绕飞行",_0x1658de(1412),"Fly around here"],"_关闭环绕飞行":["关闭环绕飞行",_0x1658de(3080),"Close off circling"],"_移动到此处":["移动到此处","移動到此處","Move it over here"],"_第一视角站到此处":["第一视角站到此处","第一視角站到此處","First view is here"],"_开启键盘漫游":[_0x1658de(2812),"開啓鍵盤漫遊","Enable keyboard roaming"],"_关闭键盘漫游":["关闭键盘漫游","關閉鍵盤漫遊","Turn off keyboard roaming"],"_跟踪锁定":["跟踪锁定",_0x1658de(1056),"TrackedEntity"],"_取消锁定":["取消锁定","取消鎖定",_0x1658de(816)],"_三维模型":["三维模型",_0x1658de(2223),"3DTiles"],"_显示三角网":[_0x1658de(3575),"顯示三角網","Display Wireframe"],"_关闭三角网":["关闭三角网","關閉三角網","Close Wireframe"],"_显示包围盒":[_0x1658de(1317),"顯示包圍盒","Display BoundingVolume"],"_关闭包围盒":["关闭包围盒","關閉包圍盒",_0x1658de(1140)],"_地形服务":["地形服务",_0x1658de(1373),"Terrain"],"_开启地形":["开启地形",_0x1658de(2e3),"Open terrain"],"_关闭地形":["关闭地形",_0x1658de(747),"Close terrain"],"_图上标记":["图上标记","圖上標記","Drawing"],"_标记点":["标记点",_0x1658de(985),"Mark points"],"_标记线":["标记线",_0x1658de(1425),_0x1658de(746)],"_标记面":[_0x1658de(1730),_0x1658de(2037),"Mark surface"],"_标记圆":["标记圆",_0x1658de(599),"Mark round"],"_标记矩形":["标记矩形",_0x1658de(1032),_0x1658de(1852)],"_允许编辑":["允许编辑","允許編輯","Allowed to edit"],"_禁止编辑":["禁止编辑",_0x1658de(2506),_0x1658de(1575)],"_导出GeoJSON":[_0x1658de(2925),"導出GeoJSON","Export GeoJSON"],"_清除所有标记":["清除所有标记",_0x1658de(1291),_0x1658de(2307)],"_特效效果":[_0x1658de(3866),"特效效果","Effects"],"_开启下雨":["开启下雨","開啓下雨","Enable rain"],"_关闭下雨":["关闭下雨","關閉下雨","Close rain"],"_开启下雪":["开启下雪",_0x1658de(1963),"Enable snow"],"_关闭下雪":["关闭下雪","關閉下雪","Close snow"],"_开启雾天气":["开启雾天气",_0x1658de(3776),"Enable fog"],"_关闭雾天气":["关闭雾天气","關閉霧天氣","Close fog"],"_开启泛光":["开启泛光",_0x1658de(2911),"Enable bloom"],"_关闭泛光":["关闭泛光","關閉泛光",_0x1658de(3854)],"_开启亮度":["开启亮度","開啓亮度","Enable brightness"],"_关闭亮度":["关闭亮度","關閉亮度","Close brightness"],"_开启夜视":["开启夜视",_0x1658de(655),_0x1658de(905)],"_关闭夜视":["关闭夜视",_0x1658de(2882),"Close night vision"],"_开启黑白":[_0x1658de(1394),"開啓黑白",_0x1658de(3699)],"_关闭黑白":["关闭黑白",_0x1658de(2579),_0x1658de(3038)],"_开启拾取高亮":["开启拾取高亮","開啓拾取高亮","Enable Pick highlighted"],"_关闭拾取高亮":["关闭拾取高亮","關閉拾取高亮",_0x1658de(2548)],"_场景设置":["场景设置","場景設置","Scene"],"_开启深度监测":[_0x1658de(2841),"開啓深度監測","Enable depth test against terrain"],"_关闭深度监测":[_0x1658de(3615),"關閉深度監測",_0x1658de(789)],"_显示星空背景":["显示星空背景","顯示星空背景",_0x1658de(1838)],"_关闭星空背景":["关闭星空背景","關閉星空背景","Close skyBox"],"_开启日照阴影":["开启日照阴影","開啓日照陰影",_0x1658de(943)],"_关闭日照阴影":["关闭日照阴影","關閉日照陰影","Close shadow"],"_开启大气渲染":["开启大气渲染","開啓大氣渲染","Enable sky atmosphere"],"_关闭大气渲染":[_0x1658de(937),_0x1658de(2573),"Close sky atmosphere"],"_场景出图":["场景出图",_0x1658de(3664),_0x1658de(3598)],"_图上量算":["图上量算","圖上量算","Measure"],"_删除测量":["删除测量","刪除測量","Delete"],"_角度":["角度","角度","Angle"],"_距离":["距离","距離","Distance"],"_面积":["面积","面積","Area"],"_总长":["总长","總長",_0x1658de(2472)],"_起点":["起点","起點","Start"],"_高度差":["高度差","高度差",_0x1658de(3470)],"_空间距离":["空间距离","空間距離","Space distance"],"_水平距离":[_0x1658de(3538),_0x1658de(3548),"Horizontal distance"],"_正在计算体积":["正在计算体积","正在計算體積","Calculating volume"],"_填方体积":["填方体积","填方體積","The volume of fill"],"_挖方体积":[_0x1658de(2197),_0x1658de(3595),"Excavation volume"],"_横切面积":[_0x1658de(3189),"橫切面積",_0x1658de(3449)],"_面上":["面上","面上","Up"],"_面下":["面下","面下",_0x1658de(444)],"_米":["米","米","m"],"_公里":["公里","公裏","km"],"_万米":["万米","万米","myriametre"],"_海里":["海里","海裏","mile"],"_丈":["丈","丈","zhang"],"_平方米":["平方米","平方米","m²"],"_平方公里":[_0x1658de(1043),_0x1658de(2759),_0x1658de(2265)],"_亩":["亩","畝","mu"],"_公顷":["公顷","公頃","ha"],"_立方米":["方","方","m³"],"_万立方米":["万方","万方",_0x1658de(869)],"_单击开始绘制":["单击开始绘制","單擊開始繪制","Click to start drawing"],"_单击完成绘制":[_0x1658de(817),_0x1658de(3836),"Click to finish drawing"],"_双击完成绘制":["双击完成绘制","雙擊完成繪制",_0x1658de(2495)],"_单击增加点":[_0x1658de(2172),_0x1658de(2279),"left click add point"],"_右击删除点":[_0x1658de(1358),"右擊刪除點",_0x1658de(396)],"_单击后激活编辑":["单击后激活编辑","單擊後 激活編輯","Click to activate editing"],"_右击菜单删除":[_0x1658de(3720),"右擊菜單刪除","Right click menu to delete"],"_更多功能请右击":["更多功能请右击","更多功能請右擊","For more functions, right click"],"_停止编辑":[_0x1658de(2384),"停止編輯",_0x1658de(3380)],"_删除该点":[_0x1658de(2341),"刪除該點","Delete that point"],"_按轴平移":["按轴平移","按軸平移",_0x1658de(501)],"_停止按轴平移":[_0x1658de(1333),"停止按軸平移","Stop translation along axis"],"_按轴旋转":[_0x1658de(3253),_0x1658de(512),_0x1658de(1248)],"_停止按轴旋转":[_0x1658de(639),_0x1658de(3659),"Stop rotation on axis"],"_调整比例":["调整比例","調整比例",_0x1658de(2043)],"_停止调整比例":["停止调整比例","停止調整比例","Stop edit scale"],"_释放后完成修改":["释放后完成修改","釋放後完成修改","Complete the modification after release"],"_该对象不允许编辑":["该对象不允许编辑","該對象不允許編輯","This object does not allow editing"],"_拖动该点后":["拖动该点后","拖動該點後","Drag that point"],"_拖动对象后":["拖动对象后","拖動對象後","Drag that object"],"_修改位置":["修改位置","修改位置",_0x1658de(726)],"_整体平移":["整体平移","整體平移",_0x1658de(2175)],"_增加点":["增加点","增加點",_0x1658de(1065)],"_修改高度":["修改高度","修改高度","Modify the height"],"_修改半径":["修改半径","修改半徑","Modify the radius"],"_修改长度":["修改长度(X方向)",_0x1658de(3715),_0x1658de(2356)],"_修改宽度":[_0x1658de(4033),"修改寬度(Y方向)","Change the width(Y direction)"],"_修改方向":["修改方向","修改方向","Change direction"],"_修改缩放比例":["修改缩放比例","修改縮放比例","Modify the Scale"],"_无法删除不能少于最小点数":["无法删除,点数量不能少于",_0x1658de(3948),_0x1658de(3785)],"_删除":["删除","刪除","Delete"],"_加载模型中":["加载模型中…",_0x1658de(1912),"Load Model…"]};function xhrAdapter(u){var e=3356,_=1570,p=3716,m=2950,d=2676,f=1234,y=_0x1658de;return u=_objectSpread2({method:y(3754),timeout:0,maxContentLength:-1,maxBodyLength:-1,params:u.queryParameters||{}},u),new Promise(function(a,n){var i=1054,s={_0x26909d:457,_0x2ee788:2840},r=y,o=u.data,l=u.headers||{},c=u[r(e)],h=(isFormData(o)&&delete l["Content-Type"],new XMLHttpRequest);function t(){var e,t,i=r;h&&(e=i(3427)in h?parseHeaders(h.getAllResponseHeaders()):null,t=c&&"text"!==c&&c!==i(2706)?h.response:h[i(s._0x26909d)],settle(function(e){a(e)},function(e){n(e)},{data:transformResponse(h,t),status:h[i(s._0x2ee788)],statusText:h.statusText,headers:e,options:u,request:h}),h=null)}h.open(u[r(_)].toUpperCase(),buildURL(u.url,u.params,u.paramsSerializer),!0),h[r(3716)]=u[r(p)],r(2755)in h?h.onloadend=t:h.onreadystatechange=function(){var e=r;h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL[e(443)]("file:"))&&setTimeout(t)},h[r(m)]=function(){h&&(n(createError("Request aborted",u,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(createError("Network Error",u,null,h)),h=null},h.ontimeout=function(){var e=r,t="timeout of "+u.timeout+"ms exceeded";u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),n(createError(t,u,e(i),h)),h=null},r(2118)in h&&forEach(l,function(e,t){var i=r;typeof o===i(3262)&&"content-type"===t.toLowerCase()?delete l[t]:h[i(2118)](t,e)}),isUndefined(u.withCredentials)||(h[r(d)]=!!u.withCredentials),c&&"json"!==c&&(h[r(e)]=u.responseType),"function"==typeof u[r(1234)]&&h.addEventListener(r(1508),u[r(f)]),"function"==typeof u[r(760)]&&h.upload&&h.upload.addEventListener("progress",u.onUploadProgress),o=o||null,h.send(o)})}function isString$1(e){return"string"==typeof e}function isDate(e){var t=_0x1658de;return toString.call(e)===t(1217)}function isObject$1(e){return null!==e&&"object"===_typeof(e)}function isFormData(e){return"undefined"!=typeof FormData&&e instanceof FormData}function isUndefined(e){return void 0===e}function isURLSearchParams(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function forEach(e,t){var i=2385,a=_0x1658de;if(null!=e)if(_typeof(e)!==a(2607)&&(e=[e]),Array.isArray(e))for(var n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else for(var r in e)Object[a(i)].hasOwnProperty.call(e,r)&&t[a(1567)](null,e[r],r,e)}function encode(e){var t=_0x1658de;return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$")[t(1189)](/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function trim$1(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function buildURL(e,t,i){var n,a=_0x1658de;return t&&(i=i?i(t):isURLSearchParams(t)?t.toString():(n=[],forEach(t,function(e,i){var a=3755;null!=e&&(Array.isArray(e)?i+="[]":e=[e],forEach(e,function(e){var t=_0x236b;isDate(e)?e=e[t(2575)]():isObject$1(e)&&(e=JSON[t(a)](e)),n.push(encode(i)+"="+encode(e))}))}),n[a(2280)]("&")))&&(-1!==(t=e[a(443)]("#"))&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i),e}var ignoreDuplicateOf=["age","authorization","content-length","content-type",_0x1658de(2690),"expires","from",_0x1658de(2922),_0x1658de(1464),"if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer",_0x1658de(2788),"user-agent"];function parseHeaders(e){var i,a,n=3421,s=443,r=2397,o=_0x1658de,l={};return e&&forEach(e[o(4031)]("\n"),function(e){var t=o;a=e.indexOf(":"),i=trim$1(e[t(n)](0,a)).toLowerCase(),a=trim$1(e[t(3421)](a+1)),!i||l[i]&&0<=ignoreDuplicateOf[t(s)](i)||(i===t(r)?l[i]=(l[i]||[])[t(2557)]([a]):l[i]=l[i]?l[i]+", "+a:a)}),l}function settle(e,t,i){var a=2840,n=2840,s=_0x1658de;!i.status||validateStatus(i[s(a)])?e(i):t(createError("Request failed with status code "+i[s(n)],i.options,null,i.request,i))}function validateStatus(e){return 200<=e&&e<300}function createError(e,t,i,a,n){return enhanceError(new Error(e),t,i,a,n)}function enhanceError(e,t,i,a,n){var s=1452,r=1946,o=751,l=_0x1658de;return e.options=t,i&&(e.code=i),e.request=a,e.response=n,e.isAxiosError=!0,e[l(3458)]=function(){var e=l;return{message:this.message,name:this.name,description:this.description,number:this[e(s)],fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this[e(1784)],options:this.options,code:this[e(r)],status:this[e(o)]&&this.response.status?this.response.status:null}},e}function transformResponse(e,t){var i=2822,a=332,n=_0x1658de;if(isString$1(t)&&t[n(i)])try{return JSON[n(a)](t)}catch(e){}return t}var version="3.5.2",update="2023-03-30 20:07:12",image={url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAUCAYAAAAJD/ojAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2NUVFNjVDRUFBMDgxMUU5QUM4NDg4MzU3RThBMzcwQiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2NUVFNjVDRkFBMDgxMUU5QUM4NDg4MzU3RThBMzcwQiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjY1RUU2NUNDQUEwODExRTlBQzg0ODgzNTdFOEEzNzBCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjY1RUU2NUNEQUEwODExRTlBQzg0ODgzNTdFOEEzNzBCIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+GxQkfQAADBVJREFUeNrsWHtwVNUd/u7u3d1sNtlNNmQTkiyjkfAIqCD4AOQhGUBAqtMahloFq6KOio9qfVu0VVtrpahtrQOlCsgUlYq0QuMDMojQVFrLo0UeaSIGSAJ57SbZ7Otuv9/ds3ETQeto/+jUM/Obe8+55/E73+9xvnO11h/6cMqiabAYCT4pug5PvAN7dD8u8t6Clm4LcOJdtg8G7HdMh8cbRA52gM1o7gZaeoASL7DtFaCzEZi2CGATgvxW14zHr8jBfdNyzGX2798Pp9OJQYMGIZFIqKU1hEIh1NbWoqioCF6v12xvbW3FkSNHkJOTY7ZbrVbE4/GTqi/fwuEw6uvr4XK5UFxcbM4rpaOjAxaLBdnZ2eb4aDRqridF5pZ+hmH06pJe0nVM1VPvsp682+12s27BFylUEl0EaPlSoPpDwHMjkDl3JvK9Vfhg8xw8MAG4n7LtVSCDgJhravh/LvoX6u1wiImA9z8Gyk4AMyaPRRS/gRjabvMhxw8YUb5n9sVVWTxpUn6IJpLyOUU8QSSRNl7exbNS3vV5RfqLh6bPIUXGp7wutc5/BWDLqTxMMoPFkgUtHqdyydgxYgTISgD5nuUbjDjWENyB6GC9bMIIjDzPA4+jA8cCwDEaIZeA211uevO5jJVRlHaEjc00a50786TBw8lxDWUgZUUkEmmQkEsvEtY2m40ZSx/AajmlhOBk8xlLt42KznZ+q2e4/oP9u6SNexnCtjjTRyNlAdsqY7HY8zTCmjQjfIsyi/IMZVfavOdSrqX8ibK+n6PeROGG8RPO39L7IZSIngpfaDF47Zr+uG7VBxsJbQsCx1qcnqFv2R6taYDmfxEhlJmd6bBoqBuB2rcnYficD5FTdBly9bHoxEUYMTMfRqQBDcdWwe54Bx3WjyePzsJNk7MEhHmU0wnkms7Oznq/32+ncj8Q0Cg1wWCwQTbtcDiuYP00ykrm6oaBAwciKyvrBQI0m8Aso2zguLy0fBSRdCjG4thZJSUlTxDEe8WTaaDJ7FvJ3CtPnbl3UyAQOMQc/X22nUODXs01J/CbGPq9fgBPpNzAbxkKYNEzk3XR7SGOG0BD7uUa1aznsd6sRxInPyAsVgu6u3oOOzTbUq/b81IGovfSYwPvWEZFGx3+C/g+vtdnxL/zSrPgXbhefMy0ThZR744dRqhxIZy1K9AVNRA4EyjMwT0Xy6FglV4C3CUE9ig39gIBiFFBQ3lSuLCwEAUFBYVse47f3ATjFQFJDi9uKkeFd4D1iAI1BXBUaRVQXp8jc1IMvj/PZy2bK8QTOX6Wx+ORqJgrBmd9R+ITV470gyWknq3q+Q3KSBUt4hyi2ww+z1JTVOt+z8nPOY0Ah4iVoWk7XXkYhrbGRVtD47VHXE+Vcdl5SJyEcnAJM1h6sA098fsRbn8XHU1cnvTB5iFkFtxZVo8x2gnsrInBV+TfPsjvv4QbHEPgxCOjKnjMIJJ0wHI2xU2F99KjD8kmMjMze09P1rtF5IRQwKbSQxeSvEX6aDSSmV44z1QV5lKGsP2OpqamlwjwXWQqRxhNQebnEkZIKpBT+b6Q4ytVrp7b1dW1js9fiS6c08lvU9nPzX0sZp+DvSnikiVtp2JoiMWSSTGrsyMRGDHqmT9f9trD7Zm+m3vtmJ7xbDC8bXWvavs3L2kpnlEDP6Onx80VMpN5O2jA59Mx7/w8+Lw6gnoc7uzs7QqAin379mH37t2YMmWKReiUgCUbo/JjBRgCsSk3Nzdx9OhRHD9+HPT6vQRhPPsJfyuiZKcZx1D1QqkwBTQJBRP6xZQxlWCO4LwCvp1rlK9atWr86NGjMyoqKvazvpE5e1L/A5GlkXp+QLlIjM22v1OvoWwfrFKFGED2ciVB3qZ0OahvLP/RZxzjcRM5hHI5zXmLYfct7hM0mpI4/vDN8Lp3f2Q8qMN9qO1N/Uq8EVmAxrgNDXE72sP5pG1BLJ0cwNhBPnR25iJ/QIIGjO1gajjETQ8nqGfSK/bQI0xmQ0AsAgrz4pWK626VjbrdbpNjEvAadhtN+ZeEIuXblKXKc6+i1FFkc9dnZGQ0pNiHyuW5wtZVlOSPGzeum8YTUO9gv4vlYEyHQQ5VxUgOKs5by2cXvX0Uc/dt5ObvcC/foQGb2X4p13uTz2Nc7x4dsyo/g+MQTY2UIav0VkRtD5tsIcWeLea5/fGFsc2rH8GjLVONLbcgUz8tVuZpKg+vPnB7aI3JUT70lOHHsRnY7rwUpcUF5sB4PGklghSh3MLXi3t6eo6Wl5dPJ4DCINDW1ja7paVl28iRI5eJE3FTWyQ8JXQlZ7J8l5s4l217+D5GTnCV9+JsG6JAJHHHDILwPo3yRzGYyq8iVsnJwkCGDRvWSS//Ketn0qBZfBYqIMPylMuNsJn8/PyEpBphOVKncTbw/ed0gKt5PjylWMs1CqVfUtbqaDsFh0gYybyp58xFWH+6r8fyW8zyxARjywNb4tPu0q3GzzotBbz12dARiY45lHCtiNH77cwM+fZ/4rHuPdgWWwZreK3slwDZe1ei11bxVlVF4OwE4sFUO29pt/PG9saCBQuWTJo0CZWVleZtT25c3ORMetWF9Ooa1hfTUxrY5mQk3ElAwjRWFds+4sa97JPNlBIUYMQwBKX/6ZFgexHX3i7eR4Ak3Bepb/PZ/yM+3+d8Or/PUCljHL10HJnPjvb29tvpuWv57XW2/41rXk/Pfpn7ekyMQ3NknQRfIymWvArYXCuQTjQsvA6HOm9EyL3bkR1HXPcu1Y1gccJqXZRJ9Jtixph98ZDeTdKcYVhMaiuEwdLdgea963DAPRaWaACyT3oNdu3aZYb97Nmzn6FyEwnY02yvy8vLWzp06NBlhw8fnvjkk0+eIHi4/PLLzXCl9/yF3nifcBfK+RxTwg2XSR8JDH4fyZDNo9cWEuxAY2NjtazBNNB/p8JYxOuGc/zddXV1Z9AQTczvEmqSwsIc2yGGlXNBjGeGSDxexbl3SDvbXqa4OMcK6i9pZj3rV6QuLvqnrrIJnmw6aZ7dfRY0x28JrksloCDlblhjvzZzs0UyhAVRTQ/bE/Fbu7q73w7b7K/7dPv512i+UZx1Z0JFgx46jlDpRBwovRaNLceh97SK8uahM336dPlPsIQK30AP2LV8+fK7hK5dd911pQTl1urq6k1sn02R/GaO40ZaCPSzBONCethAdaDZVYrQOM6hWIWTkdEjoS3jJKzZR0s7QeQM9ygvXVlVVWUylPnz5wu/H0aQ1nKNA3IG0FAxGrKa883j2lryYuuAon8FqRsh39387qIElAf3o2myvmYvgSVjJVXwm2rEIq8h2nkzNNcx2PU+/xc0NXGws2eDMwOnu3LtrwbCsTm8/+00jchIsEUjaM4/D905ZyAzyPODh5TwWQLs56XhJUXga5gqZtXW1sZ8Pp8cZLcpmnU3ARDeOpcKbxIPFp5JkVtck+K0RyjDlddIKPMeDwEtqMCfyDk2CSB8uvhd6JxT3cA8HGfyotLSUjMNiZMKOOybLVxcMRExboXadqdiOE6O3UiZwvrvWH+PxniW41q4v8vY9sYnAJspgQbN8DhhzXiRyJ2NSPQ4jPiNsBm/h+ikJT718ybRezHhfd6Ceq47y4gjVw7sJMDCCJiLc1zwDx0AI8T98nIjChLEc+QOSGXupGLLZR/yd0tYgvLGe9hvBxWeKwcX36vY12DfbMpY9oko7mtRz++Zfzs0bbQ6+GQSckXUs+9bbJer0UoFTL5KEa2U3bLYtGnTUmxhjTJejTiC6ErgT6Nx97P9kYaGhlViaF6CxrF+VNgC5TlGSJB67WbfhZz/DLFZ3xRhEGCnYx0ytKn0nbXoDixEPByENy8ZTVo6pKcszQS2mWD3MYXNpkPul5w/ve/rIv1///X7WbO+371f2t4T+aI/XhQzWP8fdN2oJF0voW4PyQvTRYrybRZJ/5HE9q18bP0kB5t5mxUbDe3KXo/W5pkI1l6F4lGrzVzce5VO4MuUlA5GUos+P2/+14rk5HS90x0j/R9xkhMk1LXNbv8FCcVwtNQOwcG3ViPG9Ge14evyZf8HZxZlIR6dg0B7E+wFF9A8bcmUpn2NzlcCcKTHAyP6VwSaNiDb1/W113615d8CDAB0JaU81/NTEwAAAABJRU5ErkJggg==",rectangle:[10,5,88,20]},customImage;function setImage(e){customImage=e}function addView(e){var t,i=3823,a=3605,n=_0x1658de,s=image||customImage;s&&e&&e[n(2144)]&&(t=s.rectangle||[10,5,88,20],(i=new Cesium__namespace[n(i)])[n(3222)]=new Cesium__namespace[n(971)](t[0],t[1],t[2],t[3]),i.material=new Cesium__namespace[n(2517)]({fabric:{type:"Image",uniforms:{color:new Cesium__namespace[n(3096)](1,1,1,1),image:s.url}}}),i._muyao=!0,e.primitives[n(a)](i))}function add(e,t){}function checkHasImage(e){if(null!=e&&e.primitives&&0!==e.primitives.length)for(var t=0,i=e.primitives.length;t<i;++t)if(e.primitives.get(t)._muyao)return}function isNumber(e){return"number"==typeof e&&e.constructor===Number}function isString(e){return"string"==typeof e&&e.constructor===String}function isBoolean(e){return"boolean"==typeof e&&e[_0x1658de(4032)]===Boolean}function isObject(e){var t=_0x1658de;return"[object Object]"===Object.prototype[t(1375)].call(e)}new Function("czmver","")(Cesium[_0x1658de(1167)]);var hasOwn={}[_0x1658de(3551)];function isPlainObject(e){var t=4032,i=1567,a=2385,n=_0x1658de;return!(!isObject(e)||e[n(t)]&&!hasOwn.call(e,n(t))&&!hasOwn[n(i)](e.constructor[n(a)],"isPrototypeOf"))}function isFunction(e){return e&&"function"==typeof e}function isSimpleType(e){return null!=e&&void 0!==e&&!!(isString(e)||isBoolean(e)||isNumber(e)||Array.isArray(e))}var isMars3DCesium=Boolean(Cesium__namespace[_0x1658de(1835)]||Cesium__namespace.Mars3DEx);function formatNum$1(e){var t=2127,i=_0x1658de,a=1<arguments[i(2822)]&&void 0!==arguments[1]?arguments[1]:0,i=Math[i(t)](10,a);return Math.round(e*i)/i}function padLeft0(e,t){for(var i=_0x1658de,a=(e=String(e))[i(2822)];a<t;)e="0"+e,a++;return e}function splitWords(e){return trim(e).split(/\s+/)}function trim(e){var t=_0x1658de;if(e)return e.trim?e[t(3559)]():e[t(1189)](/^\s+|\s+$/g,"")}function getStrLength(e){if(e)return e.replace(/[\u0391-\uFFE5]/g,"00").length}var templateRe=/\{ *([a-zA-Z0-9_\u4e00-\u9fa5]+) *\}/g;function template(e,s,r){var o=777,l=3277,c=_0x1658de;return null!=e&&s&&templateRe[c(612)](e)?e.replace(templateRe,function(e,t,i,a){var n=c,t=s[t];if(!Cesium__namespace.defined(t))return r?isString(r)?r:"":e;if(isFunction(t)){if(t=t(s),!Cesium__namespace.defined(t))return r?isString(r)?r:"":e}else if(t.getValue&&isFunction(t.getValue)&&(t=t[n(o)](Cesium__namespace.JulianDate.now()),!Cesium__namespace[n(l)](t)))return r?isString(r)?r:"":e;return t}):e}var lastId=0;function getGlobalId(){return++lastId}function stampGlobalId(e){var t=_0x1658de;return e&&isObject(e)?(e._gis3d_id=e[t(818)]||++lastId,e._gis3d_id):-1}function createGuid(){var e=_0x1658de;return(0<arguments[e(2822)]&&void 0!==arguments[0]?arguments[0]:"m-")+Cesium__namespace[e(1776)]()}var callbackIndex=0;function getTemplateHtml(_0x5c0ec1){var _0x22c898={_0xa57563:3559,_0x3d97ac:1567,_0x3f778d:3740,_0x1de9a2:1884,_0x151f93:460,_0x1d1324:537,_0x6e8399:1896,_0x310586:1488,_0x4c5109:1488,_0xa67fa8:2557,_0x5f2687:2385,_0x3abcc3:2822,_0x2f14eb:2808,_0x4835de:798,_0x2595ce:846,_0x5908f0:2557,_0xcbfac8:3045,_0x2e6d45:528,_0x1b34ff:2599},_0x441a83={_0x2b16c8:2570,_0x1d62b0:1389},_0x4e99af=_0x1658de,_0x2dc83f=_0x5c0ec1.attr;if(_0x2dc83f){var _0x8c1a24=_0x5c0ec1.title,_0x3ab859=_0x5c0ec1.edit,_0x4ee206=_0x5c0ec1.template,_0x2dc83f=getAttrVal(_0x2dc83f);if(!_0x4ee206||_0x4ee206===_0x4e99af(1302)){var _0x34f242=0,_0x1335b9=_0x8c1a24?_0x4e99af(1367)+_0x8c1a24+"</div>":"",_0x34e317;for(_0x34e317 in _0x1335b9+=_0x4e99af(537),_0x2dc83f)try{var _0x36f347=_0x2dc83f[_0x34e317];null==_0x34e317||null==_0x36f347||"Shape"===_0x34e317||"FID"===_0x34e317||_0x34e317===_0x4e99af(689)||"_definitionChanged"===_0x34e317||"_propertyNames"===_0x34e317||isFunction(_0x36f347)||(isObject(_0x36f347)&&(_0x36f347=JSON[_0x4e99af(3755)](getAttrVal(_0x36f347,{onlySimpleType:!0}))),_0x36f347=String[_0x4e99af(2385)][_0x4e99af(_0x22c898._0xa57563)][_0x4e99af(_0x22c898._0x3d97ac)](_0x36f347||""),""!==_0x36f347&&"Null"!==_0x36f347&&_0x36f347!==_0x4e99af(_0x22c898._0x3f778d)&&(_0x1335b9+="<div><label>"+_0x34e317+_0x4e99af(_0x22c898._0x1de9a2)+_0x36f347+"</div>",_0x34f242++))}catch(_0x3cda07){logError$1("getTemplateHtml:构造all时异常",_0x3cda07)}return _0x1335b9+=_0x4e99af(_0x22c898._0x151f93),0===_0x34f242?!1:_0x1335b9}if(Array.isArray(_0x4ee206)){var _0xa94443=0,_0x1ae348=_0x8c1a24?'<div class="gis3d-template-titile">'+_0x8c1a24+"</div>":'<div style="height: 10px;"></div>';_0x1ae348+=_0x4e99af(_0x22c898._0x1d1324);for(var _0x412168=0;_0x412168<_0x4ee206.length;_0x412168++){var _0x24c8ca,_0x4280ab=_0x4ee206[_0x412168];if(null!=_0x4280ab){var _0x536874=_0x4280ab[_0x4e99af(_0x22c898._0x6e8399)],_0x9a2cb6=_0x4280ab.className||"";if("details"===_0x4280ab.type||"button"===_0x4280ab[_0x4e99af(_0x22c898._0x310586)]){var _0x29c286=function(){var _0x23fb36=_0x4e99af,_0x14ff7a="",_0x232479=_0x4280ab.callback,_0x193945;return _0x232479&&(_0x193945=_0x23fb36(3457)+callbackIndex++,isFunction(_0x232479)?window[_0x193945]=function(){_0x232479(_0x2dc83f)}:isString(_0x232479)&&(window[_0x193945]=function(){eval(_0x232479+"("+JSON.stringify(_0x2dc83f)+")")}),_0x14ff7a='onclick="'.concat(_0x193945,'();" ')),_0x1ae348+=_0x23fb36(_0x441a83._0x2b16c8).concat(_0x14ff7a,'\n data-type="').concat(_0x536874,'" class="gis3d-popup-btn ').concat(_0x9a2cb6,'" >')[_0x23fb36(2557)](_0x4280ab.name||"查看详情",_0x23fb36(_0x441a83._0x1d62b0)),_0xa94443++,"continue"}();if("continue"===_0x29c286)continue}else if("html"===_0x4280ab[_0x4e99af(_0x22c898._0x4c5109)]){var _0x3ad373=template(_0x4280ab.html,_0x2dc83f,!0);_0x1ae348+='<div class="'[_0x4e99af(_0x22c898._0xa67fa8)](_0x9a2cb6,'">').concat(_0x3ad373,"</div>"),_0xa94443++;continue}var _0x50765d=_0x2dc83f[_0x536874];if(!_0x3ab859){if(null==_0x536874||null==_0x50765d)continue;if(isFunction(_0x50765d))continue}if(_0x50765d=String[_0x4e99af(_0x22c898._0x5f2687)].trim.call(_0x50765d||""),_0x3ab859||null!=(_0x24c8ca=_0x4280ab.hideNull)&&!_0x24c8ca||null!=_0x50765d&&""!==_0x50765d&&"Null"!==_0x50765d&&"Unknown"!==_0x50765d&&0!==_0x50765d[_0x4e99af(_0x22c898._0x3abcc3)]){if(_0x4280ab.format)try{_0x50765d=isFunction(_0x4280ab.format)?_0x4280ab.format(_0x50765d):eval(_0x4280ab.format+"("+_0x50765d+")")}catch(_0xa27cf8){logWarn(_0x4e99af(_0x22c898._0x2f14eb),_0x4280ab)}_0x3ab859&&(_0x50765d="textarea"===_0x4280ab.type?_0x4e99af(_0x22c898._0x4835de)[_0x4e99af(2557)](_0x9a2cb6,_0x4e99af(_0x22c898._0x2595ce))[_0x4e99af(2557)](_0x5c0ec1.width||190,'px;"\n data-type="').concat(_0x536874,_0x4e99af(1183)).concat(_0x4280ab.name,'" >')[_0x4e99af(_0x22c898._0xa67fa8)](_0x50765d,"</textarea>"):'<input type="'[_0x4e99af(_0x22c898._0x5908f0)](_0x4280ab.type||_0x4e99af(_0x22c898._0xcbfac8),'" class="gis3d-popup-edititem ').concat(_0x9a2cb6,_0x4e99af(_0x22c898._0x2595ce)).concat(_0x5c0ec1.width||190,'px;"\n data-type="').concat(_0x536874,'" value="').concat(_0x50765d,'" placeholder="请输入 ')[_0x4e99af(2557)](_0x4280ab.name,'" />')),_0x4280ab[_0x4e99af(_0x22c898._0x2e6d45)]&&(_0x50765d+=_0x4280ab[_0x4e99af(_0x22c898._0x2e6d45)]),_0x1ae348+="<div><label>"+_0x4280ab[_0x4e99af(640)]+"</label>"+_0x50765d+"</div>",_0xa94443++}}}return _0x1ae348+="</div>",0===_0xa94443?!1:_0x1ae348}if(isObject(_0x4ee206))switch(_0x4ee206[_0x4e99af(1488)]){case"iframe":var _0x2dbc66=template(_0x4ee206.url,_0x2dc83f,!0),_0x4c8766='<iframe id="ifarm" src="'+_0x2dbc66+_0x4e99af(_0x22c898._0x1b34ff)+(_0x4ee206[_0x4e99af(696)]||"300")+"px;height:"+(_0x4ee206.height||"300")+'px;overflow:hidden;margin:0;" scrolling="no" frameborder="0" ></iframe>';return _0x4c8766;case _0x4e99af(581):var _0x218a88=_0x4ee206.callback;return eval(_0x218a88+"("+JSON.stringify(_0x2dc83f)+")")}else{if(isString(_0x4ee206))return template(_0x4ee206,_0x2dc83f,!0);if(isFunction(_0x4ee206))return _0x4ee206(_0x4ee206,_0x2dc83f)}}return!1}function getCesiumValue(e,t,i){if(!e)return e;if(t){if(e instanceof t)return e;if(e._value&&e._value instanceof t)return e._value}return isFunction(e.getValue)?e.getValue(i||Cesium__namespace.JulianDate.now()):e}function getCesiumColor(e,t,i){var a=_0x1658de;return e?isString(e=isFunction(e[a(777)])?e[a(777)](i||Cesium__namespace.JulianDate.now()):e)?Cesium__namespace.Color[a(1114)](e):isFunction(e)?getCesiumColor(e(i),t):e:t}function getColorByStyle(e){var t=2745,i=1114,a=2093,n=2098,s=2098,r=_0x1658de,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Cesium__namespace.Color.YELLOW;return t=(t=e.color?isString(e[r(t)])?Cesium__namespace[r(3096)][r(i)](e.color):isFunction(e[r(2745)])?e[r(2745)](e):e.color:e.randomColor?Cesium__namespace.Color[r(a)]({minimumRed:null!=(t=e.minimumRed)?t:0,maximumRed:null!=(i=e[r(3494)])?i:.75,minimumGreen:null!=(a=e.minimumGreen)?a:0,maximumGreen:null!=(t=e.maximumGreen)?t:.75,minimumBlue:null!=(i=e.minimumBlue)?i:0,maximumBlue:null!=(a=e.maximumBlue)?a:.75}):o)&&(Cesium__namespace[r(3277)](e[r(2098)])&&(e[r(2098)]<0?e[r(n)]=0:1<e.opacity&&(e[r(s)]=1),t=t.withAlpha(Number(e.opacity))),Cesium__namespace.defined(e.globalAlpha))&&1!==e.globalAlpha?t[r(3535)](t.alpha*e.globalAlpha):t}function getAttrVal(e){var t=777,i=984,a=3762,n=_0x1658de,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(e)try{isFunction(e.getValue)&&(e=e[n(t)](Cesium__namespace[n(i)].now()));var r={};if(e._propertyNames&&0<e._propertyNames.length){var o,l=_createForOfIteratorHelper(e._propertyNames);try{for(l.s();!(o=l.n()).done;){var c=o.value,h=getOneAttrValue(c,e[c],s);null!=h&&(r[c]=h)}}catch(e){l.e(e)}finally{l.f()}}else for(var u in e){var _=getOneAttrValue(u,e[u],s);null!=_&&(r[u]=_)}return r}catch(e){logError$1(n(a),e)}return e}function get3DTileFeatureAttr(e){for(var t={},i=e.getPropertyIds?e.getPropertyIds():e.getPropertyNames(),a=0;a<i.length;a++){var n,s=i[a];e.hasProperty(s)&&null!=(n=e.getProperty(s))&&(t[s]=n)}return t}function getOneAttrValue(e,t,i){var a=_0x1658de;if(null==t||""===t||t===a(2011)||t===a(3740))return null;if(isFunction(t=t.getValue&&"function"==typeof t.getValue&&"material"!==e?t.getValue(Cesium__namespace.JulianDate.now()):t))return null;if(i[a(3713)]){if(t instanceof Cesium__namespace.Color)return t.toCssColorString();if(isPlainObject(t))return t;if(!isSimpleType(t))return null}return t}function merge(){for(var e,t,i,a,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length,r=new Array(1<s?s-1:0),o=1;o<s;o++)r[o-1]=arguments[o];for(t=0,i=r.length;t<i;t++)for(e in a=r[t])hasMergeObject(n[e],a[e])?n[e]=merge(n[e],a[e]):n[e]=a[e];return n}function hasMergeObject(e,t){var i=3277,a=_0x1658de;return!(!Cesium__namespace[a(3277)](e)||!Cesium__namespace[a(i)](t)||Array.isArray(e)||Array.isArray(t)||!isPlainObject(e)||!isPlainObject(t))}function clone(e){var t,i=3209,a=2255,n=2607,s=_0x1658de,r=1<arguments[s(2822)]&&void 0!==arguments[1]?arguments[1]:[],o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:5;if(null!=e&&"object"===_typeof(e)){if(e instanceof Date)return(t=new Date)[s(i)](e[s(3756)]()),t;if(Array[s(a)](e)&&0<=o){for(var l=[],c=0,h=e[s(2822)];c<h;++c)l[c]=clone(e[c],r,o-1);return l}if(_typeof(e)===s(n)&&0<=o)try{if(e[s(3060)])return e.clone();if(!isPlainObject(e))return e;var u,_={};for(u in e)isFunction(u)||-1===r.indexOf(u)&&e.hasOwnProperty(u)&&(_[u]=clone(e[u],r,o-1));return _}catch(e){logError$1("clone:出错了",e)}}return e}function getArrayRandomOne(e){var t=_0x1658de;return e[Math.floor(Math[t(2653)]()*e.length+1)-1]}function removeArrayItem(e,t){for(var i=0;i<e.length;i++)if(e[i]===t)return e.splice(i,1),!0;return!1}function getSymbolStyle(e,t){var i=_0x1658de;if(!e)return{};var a,n=e.styleOptions?clone(e.styleOptions):{};if(e[i(1019)]&&e.styleFieldOptions&&t&&(a=t[e.styleField],null!=(a=e.styleFieldOptions[a]))&&(n=merge(n,a)),t)for(var s in n)n[s]=template(n[s],t);return n[i(3686)]&&(n.label=clone(n.label)),n.highlight&&(n.highlight=clone(n.highlight)),n=isFunction(e.callback)&&null!=(a=e.callback(t,n))?merge(n,a):n}function geojsonToArcGIS(e,t){return geojsonToArcGIS$1(e,t)}function arcgisToGeoJSON(e,t){return arcgisToGeoJSON$1(e,t)}function getGeoJsonFeatures(e){var t=1247,i=_0x1658de;if(e[i(1247)]&&-1!==e[i(t)][i(443)]("esri"))e=arcgisToGeoJSON(e);else if("Topology"===e.type){var a,n,s=[];for(a in e.objects)e.objects.hasOwnProperty(a)&&(n=getGeoJsonFeatures(e=Cesium__namespace.topojson.feature(e,e.objects[a])),s=s.concat(n));return s}return Array.isArray(e.features)?e.features:Array.isArray(e)?e:[e]}function geoJsonToGraphics(e){var t=_0x1658de,i=1<arguments[t(2822)]&&void 0!==arguments[1]?arguments[1]:{};if(!e)return[];for(var a,n=getGeoJsonFeatures(e),s=(null!=e&&null!=(a=e.crs)&&null!=(a=a.properties)&&a.name&&!i.crs&&-1!==(a=e.crs[t(3069)].name).indexOf("EPSG:")&&(i.crs=a),[]),r=0,o=n.length;r<o;r++){var l=featureToGraphic(n[r],i);l&&0<l.length&&(s=s[t(2557)](l))}return s}function featureToGraphic(e){var t=3497,i=1488,a=3277,n=3277,s=3277,r=3277,R=2650,H=2098,F=2492,N=3069,G=1227,z=1018,B=1377,o=2822,j=3686,V=3388,l=_0x1658de,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},h=[],u=(e="GeometryCollection"===e.type?{geometry:e}:e).geometry,_=null==u?void 0:u[l(t)];if(_||u){c.type?p=c.type:hasType(null==(t=e)||null==(t=t.properties)?void 0:t[l(1488)])&&(p=e.properties.type);var p,m=clone(null==(t=e)?void 0:t.properties,["style"])||{},d=(m&&m[l(i)]&&m[l(1740)]&&(m=m.attr),{}),f=(e.properties&&(t=m["marker-symbol"],Cesium__namespace[l(a)](t)&&(d[l(613)]=t,i=m["marker-color"],Cesium__namespace[l(n)](i))&&(d.outline=!0,d.outlineColor=i),a=m.fill,Cesium__namespace.defined(a)&&"LineString"!==u.type&&u.type!==l(2648)?(d[l(2745)]=a,t=m["fill-opacity"],Cesium__namespace.defined(t)&&1!==t&&(d.opacity=t),n=m.stroke,Cesium__namespace[l(s)](n)&&(d.outline=!0,d.outlineColor=n,i=m["stroke-width"],Cesium__namespace.defined(i)&&(d.outlineWidth=i),a=m[l(2650)],Cesium__namespace.defined(a))&&1!==a&&(d.outlineOpacity=a)):(t=m.stroke,Cesium__namespace[l(r)](t)&&(d.color=t,s=m["stroke-width"],Cesium__namespace[l(3277)](s)&&(d[l(696)]=s),n=m[l(R)],Cesium__namespace.defined(n))&&1!==n&&(d[l(H)]=n))),c.style?d=_objectSpread2({},c[l(F)]):isObject(null==(i=e)||null==(a=i.properties)?void 0:a[l(2492)])&&(d=_objectSpread2({},e.properties.style)),c[l(1227)]&&(isFunction(c.symbol)?(d=c[l(1227)](m,d,e)||d).type&&(p=d.type):(p=c.symbol.type||p,(r=getSymbolStyle(c.symbol,e[l(N)]||{}))&&0!==Object.keys(r).length&&(d=c[l(G)].merge?_objectSpread2(_objectSpread2({},r),d):r))),c.crs);switch("EPSG:4326"===f&&(f=null),u.type){case"Point":var y={type:p=p&&isPointType(p)?p:d.image?l(2290):"pointP",position:D(_),style:d,attr:m};O(y,m),h.push(y);break;case"MultiPoint":for(p&&isPointType(p)||(p=d.image?"billboardP":"pointP"),x=0,b=_.length;x<b;x++){var v={type:p,position:D(_[x]),style:d,attr:m};O(v,m),h[l(z)](v)}break;case"LineString":y={type:p=p||"polylineP",positions:I(_),style:d,attr:m};O(y,m),h[l(1018)](y);break;case"MultiLineString":p=p||"polylineP";for(var g,C=[],x=0,b=_.length;x<b;x++){var k={type:p,positions:I(_[x]),style:d,attr:m};O(k,m),h.push(k),C.push(k),(!g||g.positions.length<k.positions.length)&&(g=k)}if(g&&(g.isMultiMax=!0,d.label)&&!d.label.showAll)for(x=0,b=C.length;x<b;x++){var P=C[x];g!==P&&(P.style=_objectSpread2({},P[l(2492)]),delete P.style.label)}break;case"Polygon":if((p=p||l(B)).startsWith(l(1377))){y={type:p,positions:I(1===_.length?_[0]:_),style:d,attr:m};O(y,m),h[l(1018)](y)}else for(x=0,b=_.length;x<b;x++){var w=_[x],w={type:p,positions:I(1===w.length?w[0]:w),style:d,attr:m};O(w,m),h.push(w)}break;case"MultiPolygon":p=p||"polygon";var S,T=[];for(x=0,b=_[l(o)];x<b;x++){var M=_[x],M={type:p,positions:I(1===M.length?M[0]:M),style:d,attr:m};O(M,m),h.push(M),T.push(M),(!S||S.positions[l(o)]<M.positions[l(2822)])&&(S=M)}if(S&&(S.isMultiMax=!0,d[l(j)])&&!d.label.showAll)for(x=0,b=T.length;x<b;x++){var E=T[x];S!==E&&(E.style=_objectSpread2({},E.style),delete E.style.label)}break;case"GeometryCollection":for(var A=0,$=u.geometries.length;A<$;A++){var L=featureToGraphic({type:"Feature",geometry:u[l(517)][A],properties:e.properties},c);L&&0<L.length&&(h=h.concat(L))}break;default:logError$1(l(866),e)}}return h;function D(e){var t=l;return f&&(e=proj4Trans(e,f)),c[t(V)]?c.onPointTrans(e):e}function I(e){var t=l;if(!c.onPointTrans&&!f)return e;for(var i=[],a=0,n=e.length;a<n;a++){var s,r=e[a];Array[t(2255)](r[0])?(s=I(r))&&0<s.length&&i.push(s):(s=D(r))&&i.push(s)}return i}function O(t,i){eachGraphicType(function(e){isObject(i[e])&&(t[e]=i[e],delete i[e])})}}function heightToZoom(e){var t=-40467.74;return Math[_0x1658de(498)](t+80955.31/(1+Math.pow(e/91610.74,7096758e-11)))}function getUrlResource(e){var t=714,i=1145,a=3688,n=3094,s=_0x1658de;return e.url?e.url instanceof Cesium__namespace[s(t)]?(t=e.url,e.headers&&(t.headers=e[s(i)]),e.proxy&&(t.proxy=new Cesium__namespace.DefaultProxy(e[s(3094)])),e[s(a)]&&t.setTemplateValues(e.templateValues),e.queryParameters&&t.setQueryParameters(e.queryParameters),t):(e[s(a)]&&(e.url=template(e[s(2675)],e.templateValues)),new Cesium__namespace[s(714)]({url:e[s(2675)],queryParameters:e.queryParameters,templateValues:e.templateValues,headers:e.headers,proxy:e[s(n)]?new Cesium__namespace.DefaultProxy(e.proxy):null})):e}function getTextImage(e){var t,i=1530,a=3159,n=2663,s=3160,r=549,o=_0x1658de,l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=(l.background||(l[o(i)]=Cesium__namespace[o(3096)].TRANSPARENT),Cesium__namespace[o(989)](e||"",l));return i?(l.outline&&(e=i.width,a=i[o(a)],t=i.getContext("2d",{willReadFrequently:!0}),l[o(2663)]?t.strokeStyle=l[o(n)].toCssColorString():l[o(s)]?t.strokeStyle=l.fillColor.toCssColorString():t[o(392)]="#ffffff",n=l.outlineWidth||4,t[o(r)]=n,t.strokeRect(n/2,n/2,e-n,a-n)),i):null}var circleImage={},_isPCBroswer;function getCircleImage(e){var t,i,a,n=968,s=3781,r=1397,o=2557,l=2557,c=3159,h=2615,u=2261,_=_0x1658de,p=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},m=null!=(m=p.radius)?m:26,d=m+(null!=(d=p[_(754)])?d:5),s=(n=p.color?(t=p.color,p[_(566)]||t):(i=null!=(i=p.opacity)?i:.6,a=null!=(a=p.borderOpacity)?a:.8*i,e<10?(t="rgba(110, 204, 57, "+i+")",_(n)+a+")"):e<100?(t=_(s)+i+")","rgba(241, 211, 87, "+a+")"):(t="rgba(241, 128, 23, "+i+")",_(r)+a+")")),""[_(o)](e,"_").concat(d,"_").concat(m,"_")[_(l)](t));return circleImage[s]||(i=2*d,(r=document[_(665)](_(3252))).width=i,r[_(c)]=i,(a=r[_(h)]("2d",{willReadFrequently:!0})).fillStyle="#ffffff00",a.globalAlpha=0,a.fillRect(0,0,i,i),m!==d&&(a.globalAlpha=1,a.beginPath(),a.arc(d,d,d,0,2*Math.PI,!0),a.closePath(),a.fillStyle=n,a[_(1877)]()),a[_(1863)]=1,a.beginPath(),a.arc(d,d,m,0,2*Math.PI,!0),a.closePath(),a.fillStyle=t,a.fill(),a.font=p.font||.9*m+"px bold normal",a.fillStyle=p.fontColor||"#ffffff",a[_(u)]="center",a.textBaseline="middle",a.fillText(e,d,d),circleImage[s]=r.toDataURL("image/png")),circleImage[s]}function download(e,t){var i=1417,a=1600,n=_0x1658de,s=document[n(665)]("a");s[n(i)]=e,s[n(1174)]=URL[n(a)](t),document.body.appendChild(s),s.click(),document.body[n(2418)](s)}function base64Img2Blob(e){for(var t=_0x1658de,e=e.split(";base64,"),i=e[0].split(":")[1],a=window[t(1955)](e[1]),n=a.length,s=new Uint8Array(n),r=0;r<n;++r)s[r]=a.charCodeAt(r);return new Blob([s],{type:i})}function downloadBase64Image(e,t){var i=_0x1658de,t=base64Img2Blob(t);e[i(3333)](".jpg")||e.endsWith(".png")||(e+=".png"),download(e,t)}function downloadFile(e,t){download(e,new Blob([t]))}function getExplorerInfo(){var e,t=3939,i=443,a=1736,n=531,s=_0x1658de,t=window.navigator[s(t)].toLowerCase();return 0<=t.indexOf("msie")?{type:"IE",version:e=Number(t.match(/msie ([\d]+)/)[1])}:0<=t[s(i)]("firefox")?(e=Number(t[s(a)](/firefox\/([\d]+)/)[1]),{type:s(4009),version:e}):0<=t.indexOf("chrome")?{type:"Chrome",version:e=Number(t.match(/chrome\/([\d]+)/)[1])}:0<=t.indexOf("opera")?(e=Number(t[s(1736)](/opera.([\d]+)/)[1]),{type:s(n),version:e}):0<=t.indexOf("Safari")?{type:"Safari",version:e=Number(t[s(1736)](/version\/([\d]+)/)[1])}:{type:t,version:-1}}function webglreport(){var e=2151,t=2685,i=_0x1658de,a=getExplorerInfo();if("IE"===a[i(1488)]&&a.version<11)return!1;try{var n,s=document.createElement("canvas");if(null==(n=null==(n="undefined"!=typeof WebGL2RenderingContext?s.getContext("webgl2")||s.getContext(i(e))||void 0:n)?s[i(2615)]("webgl")||s.getContext(i(t))||void 0:n))return!1}catch(e){return!1}return!0}function webglerror(){var e,t=_0x1658de;null!=(e=window)&&null!=(e=e[t(3385)])&&e.open?window.layer.open({type:1,title:"当前浏览器不支持WebGL功能",closeBtn:0,shadeClose:!1,resize:!1,area:["530px",t(771)],content:'<div style="margin: 20px;color: #333;"><h3>系统检测到您使用的浏览器不支持WebGL功能!</h3> <p>1、请您检查浏览器版本,安装使用最新版chrome、火狐或IE11以上浏览器!</p> <p>2、WebGL支持取决于GPU支持,请保证客户端电脑已安装显卡驱动程序!</p></div>'}):alert("系统检测到您使用的浏览器不支持WebGL功能")}function getRequest(){var e=443,t=4031,i=_0x1658de,a=location[i(1753)],n={};if(-1!==a[i(e)]("?"))for(var s=a.substr(1).split("&"),r=0;r<s.length;r++)n[s[r].split("=")[0]]=decodeURI(s[r][i(t)]("=")[1]);return n}function getRequestByName(e){var t=_0x1658de,e=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),t=window[t(3254)].search.substr(1).match(e);return null!=t?decodeURI(t[2]):null}function isPCBroswer(){var e=_0x1658de;if(!Cesium__namespace.defined(_isPCBroswer)){var t=navigator.userAgent.toLowerCase(),i=[e(3218),"phone",e(4079),"ipad","ipod","symbianos"];_isPCBroswer=!0;for(var a=0;a<i.length;a++)if(0<t.indexOf(i[a])){_isPCBroswer=!1;break}}return _isPCBroswer}function alert(e,t){var i=2647,a=3807,n=_0x1658de;window[n(2162)]?window.globalAlert(e,t):window.layer?window.layer.alert(e,{title:t||"提示",skin:n(2503),closeBtn:0,anim:0}):window.toastr?window.toastr[n(i)](e,t):window[n(a)](e)}function msg(e){var t=2647,i=1141,a=_0x1658de;window[a(526)]?window.globalMsg(e):window.toastr?window.toastr[a(t)](e):window.layer?window.layer[a(i)](e):window.alert(e)}function formatDate(e){var t,i=612,a=1189,n=2822,s=2822,r=_0x1658de,o=1<arguments[r(2822)]&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd HH:mm:ss",l={"M+":e.getMonth()+1,"d+":e[r(1910)](),"h+":e.getHours()%12==0?12:e[r(2729)]()%12,"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e[r(1926)]()};for(t in/(y+)/[r(612)](o)&&(o=o.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),l)new RegExp("("+t+")")[r(i)](o)&&(o=o[r(a)](RegExp.$1,1===RegExp.$1[r(n)]?l[t]:("00"+l[t]).substr((""+l[t])[r(s)])));return o}function formatTime(e){var t,i=_0x1658de;return(e=Number(e)||0)<60?e.toFixed(0)+"秒":60<=e&&e<3600?(t=Math.floor(e%60),Math.floor(e/60)+"分钟"+(0!==t?t+"秒":"")):(e=Math.floor(e/60),Math[i(3264)](e/60)+"小时"+Math.floor(e%60)+"分钟")}function fetchJson(e){var t=2350,i=2350,a=_0x1658de;return(e=replaceOnlineUrlDomain(e)).method===a(3782)?(e[a(1238)]=e[a(t)],delete e[a(i)],Cesium__namespace.Resource.post(e)):Cesium__namespace.Resource.fetchJson(e)}function sendAjax(e){var t=_0x1658de;return"post"===(e=replaceOnlineUrlDomain(e)).method&&(e.data=e.queryParameters,delete e.queryParameters),xhrAdapter(e)[t(2589)](function(e){return null==e?void 0:e[t(1238)]}).catch(function(e){console.log(e),logError$1("axios请求出错",e)})}function getLangText(e){var t=Lang[e];return t&&t[1<arguments.length&&void 0!==arguments[1]?arguments[1]:0]||e}function requestFullscreen(e){return Cesium__namespace[_0x1658de(2358)].requestFullscreen(e),Cesium__namespace.Fullscreen.fullscreen}function exitFullscreen(){var e=_0x1658de;return Cesium__namespace.Fullscreen[e(1763)](),Cesium__namespace.Fullscreen[e(1928)]}function replaceOnlineUrlDomain(e){var t,i=1512,a=443,n=2693,s=3303,r=_0x1658de;return e[r(2675)]&&isString(e.url)&&(null!=(t=window)&&null!=(t=t.location)&&null!=(t=t.hostname)&&t.indexOf&&-1===window.location[r(i)][r(a)]("gis3d.cn")||-1!==e.url.indexOf(r(n))&&-1===e.url[r(443)]("/tile/")&&(e[r(2675)]=e.url.replace("data.gis3d.cn",r(s)))),e}var Util={__proto__:null,isNumber:isNumber,isString:isString,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isFunction:isFunction,isSimpleType:isSimpleType,isMars3DCesium:isMars3DCesium,formatNum:formatNum$1,padLeft0:padLeft0,splitWords:splitWords,trim:trim,getStrLength:getStrLength,template:template,get lastId(){return lastId},getGlobalId:getGlobalId,stampGlobalId:stampGlobalId,createGuid:createGuid,getTemplateHtml:getTemplateHtml,getCesiumValue:getCesiumValue,getCesiumColor:getCesiumColor,getColorByStyle:getColorByStyle,getAttrVal:getAttrVal,get3DTileFeatureAttr:get3DTileFeatureAttr,merge:merge,clone:clone,getArrayRandomOne:getArrayRandomOne,removeArrayItem:removeArrayItem,getSymbolStyle:getSymbolStyle,geojsonToArcGIS:geojsonToArcGIS,arcgisToGeoJSON:arcgisToGeoJSON,getGeoJsonFeatures:getGeoJsonFeatures,geoJsonToGraphics:geoJsonToGraphics,featureToGraphic:featureToGraphic,heightToZoom:heightToZoom,getUrlResource:getUrlResource,getTextImage:getTextImage,getCircleImage:getCircleImage,downloadBase64Image:downloadBase64Image,downloadFile:downloadFile,getExplorerInfo:getExplorerInfo,webglreport:webglreport,webglerror:webglerror,getRequest:getRequest,getRequestByName:getRequestByName,isPCBroswer:isPCBroswer,alert:alert,msg:msg,formatDate:formatDate,formatTime:formatTime,fetchJson:fetchJson,sendAjax:sendAjax,getLangText:getLangText,requestFullscreen:requestFullscreen,exitFullscreen:exitFullscreen,replaceOnlineUrlDomain:replaceOnlineUrlDomain,setImage:setImage},getValue_old$5=(Object.defineProperties(Cesium__namespace.ColorMaterialProperty.prototype,{globalAlpha:{set:function(e){var t=2745,i=3535,a=_0x1658de,t=(this._globalAlpha=e,getCesiumColor(this[a(t)],Cesium__namespace.Color.WHITE));Cesium__namespace.defined(this[a(2464)])||(this[a(2464)]=t.alpha),this.color=t[a(i)](this._color_alpha*e)},get:function(){var e;return null!=(e=this._globalAlpha)?e:1}}}),Object.defineProperties(Cesium__namespace[_0x1658de(2571)][_0x1658de(2385)],{globalAlpha:{set:function(e){this[_0x1658de(3223)]=e},get:function(){var e;return null!=(e=this._globalAlpha)?e:1}}}),Cesium__namespace.GridMaterialProperty.prototype[_0x1658de(777)]),getValue_old$4=(Cesium__namespace.GridMaterialProperty.prototype[_0x1658de(777)]=function(e,t){var i=_0x1658de;return t=getValue_old$5.bind(this)(e,t),1!==this[i(1863)]&&(t[i(2745)]&&(t.color[i(3629)]*=this.globalAlpha),t.cellAlpha)&&(t.cellAlpha*=this.globalAlpha),t},Object[_0x1658de(1903)](Cesium__namespace.ImageMaterialProperty.prototype,{globalAlpha:{set:function(e){var t=_0x1658de,i=(this._globalAlpha=e,getCesiumColor(this.color,Cesium__namespace.Color.WHITE));Cesium__namespace[t(3277)](this._color_alpha)||(this._color_alpha=i.alpha),this.color=i.withAlpha(this[t(2464)]*e)},get:function(){var e;return null!=(e=this._globalAlpha)?e:1}}}),Object.defineProperties(Cesium__namespace.PolylineArrowMaterialProperty.prototype,{globalAlpha:{set:function(e){this._globalAlpha=e},get:function(){var e;return null!=(e=this._globalAlpha)?e:1}}}),Cesium__namespace.PolylineArrowMaterialProperty.prototype.getValue),getValue_old$3=(Cesium__namespace.PolylineArrowMaterialProperty.prototype.getValue=function(e,t){return(t=getValue_old$4.bind(this)(e,t)).color&&1!==this.globalAlpha&&(t.color.alpha*=this.globalAlpha),t},Object[_0x1658de(1903)](Cesium__namespace[_0x1658de(3238)].prototype,{globalAlpha:{set:function(e){this._globalAlpha=e},get:function(){var e;return null!=(e=this._globalAlpha)?e:1}}}),Cesium__namespace.PolylineDashMaterialProperty.prototype.getValue),getValue_old$2=(Cesium__namespace[_0x1658de(3238)][_0x1658de(2385)][_0x1658de(777)]=function(e,t){var i=1863,a=3629,n=_0x1658de;return t=getValue_old$3[n(403)](this)(e,t),1!==this[n(1863)]&&(t[n(2745)]&&(t.color[n(3629)]*=this[n(i)]),t.gapColor)&&(t.gapColor[n(a)]*=this.globalAlpha),t},Object[_0x1658de(1903)](Cesium__namespace.PolylineGlowMaterialProperty.prototype,{globalAlpha:{set:function(e){this._globalAlpha=e},get:function(){var e;return null!=(e=this[_0x1658de(3223)])?e:1}}}),Cesium__namespace.PolylineGlowMaterialProperty[_0x1658de(2385)].getValue),getValue_old$1=(Cesium__namespace[_0x1658de(1283)][_0x1658de(2385)].getValue=function(e,t){var i=1863,a=3629,n=_0x1658de;return(t=getValue_old$2.bind(this)(e,t))[n(2745)]&&1!==this[n(i)]&&(t.color[n(a)]*=this[n(1863)]),t},Object[_0x1658de(1903)](Cesium__namespace.PolylineOutlineMaterialProperty.prototype,{globalAlpha:{set:function(e){this._globalAlpha=e},get:function(){var e;return null!=(e=this._globalAlpha)?e:1}}}),Cesium__namespace.PolylineOutlineMaterialProperty.prototype.getValue),getValue_old=(Cesium__namespace.PolylineOutlineMaterialProperty[_0x1658de(2385)][_0x1658de(777)]=function(e,t){var i=1863,a=_0x1658de;return t=getValue_old$1.bind(this)(e,t),1!==this[a(i)]&&(t.color&&(t[a(2745)].alpha*=this[a(1863)]),t.outlineColor)&&(t.outlineColor.alpha*=this[a(i)]),t},Object.defineProperties(Cesium__namespace.StripeMaterialProperty.prototype,{globalAlpha:{set:function(e){this._globalAlpha=e},get:function(){var e;return null!=(e=this._globalAlpha)?e:1}}}),Cesium__namespace[_0x1658de(961)][_0x1658de(2385)].getValue),BaseClass=(Cesium__namespace.StripeMaterialProperty.prototype.getValue=function(e,t){var i=_0x1658de;return t=getValue_old.bind(this)(e,t),1!==this.globalAlpha&&(t[i(4003)]&&(t[i(4003)].alpha*=this.globalAlpha),t[i(2284)])&&(t[i(2284)].alpha*=this.globalAlpha),t},proj4.defs("EPSG:4490","+proj=longlat +ellps=GRS80 +no_defs"),proj4.defs("EPSG:4491","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4[_0x1658de(3765)](_0x1658de(2929),"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4[_0x1658de(3765)]("EPSG:4493","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs(_0x1658de(710),"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4495","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4496",_0x1658de(3797)),proj4[_0x1658de(3765)]("EPSG:4497","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4498",_0x1658de(1255)),proj4.defs(_0x1658de(949),"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4500","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4501",_0x1658de(1204)),proj4.defs("EPSG:4513","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4[_0x1658de(3765)]("EPSG:4514",_0x1658de(1178)),proj4[_0x1658de(3765)]("EPSG:4515","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4[_0x1658de(3765)](_0x1658de(2247),"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs(_0x1658de(732),_0x1658de(901)),proj4.defs(_0x1658de(567),_0x1658de(2910)),proj4.defs(_0x1658de(339),"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4520","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4521","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4522","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4[_0x1658de(3765)]("EPSG:4523",_0x1658de(822)),proj4[_0x1658de(3765)](_0x1658de(704),"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4525","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4526",_0x1658de(603)),proj4[_0x1658de(3765)](_0x1658de(3582),"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4528","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4529","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4530","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4531","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4[_0x1658de(3765)](_0x1658de(2549),"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4533",_0x1658de(2564)),proj4.defs("EPSG:4502","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4[_0x1658de(3765)]("EPSG:4503",_0x1658de(3786)),proj4.defs("EPSG:4504","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4505","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs(_0x1658de(2531),"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4507","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4[_0x1658de(3765)]("EPSG:4508","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs(_0x1658de(3709),_0x1658de(2735)),proj4.defs("EPSG:4510",_0x1658de(2470)),proj4[_0x1658de(3765)]("EPSG:4511","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs(_0x1658de(1954),"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4534","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4[_0x1658de(3765)]("EPSG:4535",_0x1658de(1790)),proj4[_0x1658de(3765)]("EPSG:4536","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4537",_0x1658de(2282)),proj4[_0x1658de(3765)]("EPSG:4538","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4[_0x1658de(3765)](_0x1658de(1704),_0x1658de(3991)),proj4.defs("EPSG:4540","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4541","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4542",_0x1658de(3339)),proj4.defs("EPSG:4543","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4544","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs(_0x1658de(1380),"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4546","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs(_0x1658de(2006),"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4548",_0x1658de(2735)),proj4[_0x1658de(3765)]("EPSG:4549",_0x1658de(3473)),proj4[_0x1658de(3765)](_0x1658de(3763),"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4551",_0x1658de(2601)),proj4.defs("EPSG:4552","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4553","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),proj4.defs("EPSG:4554","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),function(){var e=1757,n=1235,s=3903,i=3929,t=3929,a=3929,r=3929,o=3929,l=3855,c=2822,h=2090,u=3855,_=2255,p=592,m=_0x1658de;function d(e){_classCallCheck(this,d),this.options=e,this._enabledEvent=null==(e=null==e?void 0:e.enabledEvent)||e}return _createClass(d,[{key:"enabledEvent",get:function(){return this[_0x236b(p)]},set:function(e){this._enabledEvent=e}},{key:"destroy",value:function(e){if(!e)for(var t in this)delete this[t]}},{key:"on",value:function(e,t,i){var a=_0x236b;if(e){if(Array[a(_)](e))for(var n=0,s=e.length;n<s;n++)this._on(e[n],t,i);else if(isObject(e))for(var r in e)this._on(r,e[r],t);else for(var o=0,l=(e=splitWords(e)).length;o<l;o++)this._on(e[o],t,i);this._onEventHook&&this[a(3794)](e)}else logError$1(a(1082),t);return this}},{key:"off",value:function(e,t,i){var a=_0x236b;if(e)if(Array.isArray(e))for(var n=0,s=e.length;n<s;n++)this._off(e[n],t,i);else if(isObject(e))for(var r in e)this[a(2004)](r,e[r],t);else for(var o=0,l=(e=splitWords(e)).length;o<l;o++)this[a(2004)](e[o],t,i);else delete this[a(3855)];return this}},{key:m(1401),value:function(e,t,i){for(var a=m,n=(this[a(u)]=this._events||{},this._events[e]),e=(n||(this._events[e]=n=[]),{fn:t,ctx:i=i===this?void 0:i}),s=n,r=0,o=s[a(2822)];r<o;r++)if(s[r].fn===t&&s[r].ctx===i)return;s.push(e)}},{key:m(2004),value:function(e,t,i){var a,n,s,r=m;if(this._events&&(a=this[r(3855)][e]))if(t){if(i===this&&(i=void 0),a)for(n=0,s=a[r(c)];n<s;n++){var o=a[n];if(o[r(1294)]===i&&o.fn===t)return o.fn=falseFn,this._firingCount&&(this._events[e]=a=a[r(h)]()),void a[r(4087)](n,1)}}else{for(n=0,s=a.length;n<s;n++)a[n].fn=falseFn;delete this[r(l)][e]}}},{key:"fire",value:function(e,t,i){var a=m;if(this.listens(e,i)&&this[a(544)]){var n=_objectSpread2(_objectSpread2({sourceTarget:this},t),{},{type:e,target:this,stopPropagation:function(){this._stopPropagation=!0}});if(this._events){var s=this._events[e];if(s){this._firingCount=this._firingCount+1||1;for(var r=0,o=s.length;r<o;r++){var l=s[r];l.fn.call(l.ctx||this,n)}this._firingCount--}}i&&!n._stopPropagation&&this._propagateEvent(n)}return this}},{key:"listens",value:function(e,t){var i=m,a=this._events&&this._events[e];if(a&&a.length)return!0;if(t)for(var n in this[i(o)])if(this[i(3929)][n].listens(e,t))return!0;return!1}},{key:"once",value:function(t,i,a){var n=4030,s=m,r=this;if(isObject(t)){for(var e in t)this[s(2306)](e,t[e],i);return this}var o=bind(function(){var e=s;r.off(t,i,a)[e(n)](t,o,a)},this);return this.on(t,i,a).on(t,o,a)}},{key:"addEventParent",value:function(e){var t=m;return this[t(a)]=this[t(r)]||{},this[t(r)][stampGlobalId(e)]=e,this}},{key:"removeEventParent",value:function(e){return this[m(t)]&&delete this._eventParents[stampGlobalId(e)],this}},{key:"hasEventParent",value:function(e){var t=m;return!(!this._eventParents||!this[t(i)][stampGlobalId(e)])}},{key:m(e),value:function(e){var t,i=m;for(t in this._eventParents){var a=this[i(3929)][t];this[i(n)](a,e)&&a.fire(e.type,_objectSpread2({layer:e[i(s)],propagatedFrom:e.target},e),!0)}}},{key:"_filterPropagateEvent",value:function(e,t){return!0}}]),d}());function falseFn(){return!1}function bind(t,i){var a,n=Array.prototype.slice;return t.bind?t.bind.apply(t,n.call(arguments,1)):(a=n.call(arguments,2),function(){var e=_0x236b;return t.apply(i,a[e(2822)]?a.concat(n.call(arguments)):arguments)})}var State={INITIALIZED:"inited",ADDED:"added",REMOVED:"removed",DESTROY:"destroy"},EventType={add:"add",remove:"remove",addItem:_0x1658de(3443),removeItem:_0x1658de(981),addGraphic:"addGraphic",removeGraphic:"removeGraphic",addLayer:"addLayer",removeLayer:"removeLayer",addControl:"addControl",removeControl:"removeControl",updateControl:"updateControl",addEffect:"addEffect",removeEffect:"removeEffect",update:"update",updatePosition:"updatePosition",updateStyle:_0x1658de(1071),updateAttr:"updateAttr",show:"show",hide:"hide",start:"start",change:"change",endItem:"endItem",end:"end",stop:"stop",zoom:_0x1658de(2879),loadBefore:"loadBefore",load:"load",error:_0x1658de(1419),loadConfig:"loadConfig",popupOpen:_0x1658de(2553),popupClose:_0x1658de(2784),tooltipOpen:"tooltipOpen",tooltipClose:"tooltipClose",contextMenuOpen:"contextMenuOpen",contextMenuClose:"contextMenuClose",contextMenuClick:"contextMenuClick",highlightOpen:_0x1658de(3990),highlightClose:"highlightClose",click:"click",clickGraphic:"clickGraphic",clickTileGraphic:"clickTileGraphic",clickMap:"clickMap",dblClick:"dblClick",leftDown:"leftDown",leftUp:"leftUp",mouseMove:"mouseMove",mouseMoveTarget:"mouseMoveTarget",wheel:"wheel",rightClick:"rightClick",rightDown:"rightDown",rightUp:"rightUp",middleClick:_0x1658de(3207),middleDown:"middleDown",middleUp:"middleUp",pinchStart:"pinchStart",pinchEnd:"pinchEnd",pinchMove:_0x1658de(3279),mouseDown:"mouseDown",mouseUp:"mouseUp",mouseOver:_0x1658de(1873),mouseOut:"mouseOut",keydown:_0x1658de(1349),keyup:_0x1658de(3172),drawStart:"drawStart",drawMouseMove:"drawMouseMove",drawAddPoint:_0x1658de(3670),drawRemovePoint:"drawRemovePoint",drawCreated:"drawCreated",editStart:_0x1658de(3617),editMouseDown:"editMouseDown",editMouseMove:"editMouseMove",editMovePoint:_0x1658de(3397),editAddPoint:_0x1658de(1055),editRemovePoint:"editRemovePoint",editStyle:_0x1658de(2393),editStop:"editStop",move:"move",initialTilesLoaded:"initialTilesLoaded",allTilesLoaded:"allTilesLoaded",addTile:"addTile",addTileSuccess:_0x1658de(3906),addTileError:"addTileError",removeTile:"removeTile",cameraMoveStart:"cameraMoveStart",cameraMoveEnd:"cameraMoveEnd",cameraChanged:"cameraChanged",preUpdate:"preUpdate",postUpdate:_0x1658de(2848),preRender:_0x1658de(1804),postRender:"postRender",renderError:"renderError",morphStart:_0x1658de(1531),morphComplete:"morphComplete",clockTick:_0x1658de(3957),terrainChange:_0x1658de(4027),terrainLoadError:"terrainLoadError",terrainLoadSuccess:"terrainLoadSuccess",tileLoadProgress:"tileLoadProgress"},BaseThing=function(){var e=2514,t=3463,i=4071,a=1941,n=426,s=1553,r=2822,o=1592,l=2697,c=2697,h=1592,u=1941,_=3605,p=3800,m=2998,d=2822,f=2998,y=_0x1658de,v=(_inherits(g,BaseClass),_createSuper(g));function g(){var e,t,i=_0x236b,a=0<arguments[i(d)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,g),isBoolean(a)&&(a={enabled:a}),(t=v[i(1567)](this,a))._id=null!=(e=a.id)?e:createGuid(),t[i(f)]=null==(e=a[i(3463)])||e,t._state=State.INITIALIZED,t.options=a,t}return _createClass(g,[{key:y(671),get:function(){return this._state}},{key:y(e),get:function(){return this._state===State.ADDED}},{key:"id",get:function(){return this[y(1718)]},set:function(e){this.options.id=e}},{key:"uuid",get:function(){return this._id}},{key:y(t),get:function(){return this[y(m)]},set:function(e){var t=y;this[t(2998)]!==e&&(this._enabled=e,this._enabledHook)&&this[t(3748)](e)}},{key:"addTo",value:function(e){var t=y;return e&&e.addThing&&e[t(p)](this),this}},{key:y(i),value:function(e){this._map&&this._map.removeThing(this,e)}},{key:"_onAdd",value:function(e){var t,i=y;this._state!==State.ADDED&&(this._map=e,this.options.eventParent?this.addEventParent(this.options[i(c)]):!1!==(null==(t=this[i(h)])?void 0:t[i(c)])&&this.addEventParent(e),this._mountedHook&&!this._createOK&&(this._mountedHook(),this._createOK=!0),this[i(359)]&&this._addedBaseHook(),this._addedHook&&this._addedHook(),this[i(u)]=State.ADDED,this.fire(EventType[i(_)]))}},{key:"_onRemove",value:function(){var e,t=y;this._state===State.ADDED&&this._map&&(this._removedBaseHook&&this._removedBaseHook(),this._removedHook&&this._removedHook(),this[t(1941)]=State.REMOVED,this.fire(EventType.remove),null!=(e=this[t(o)])&&e.eventParent?this[t(368)](this[t(o)][t(l)]):!1!==(null==(e=this[t(1592)])?void 0:e.eventParent)&&this[t(368)](this._map),this._map=null)}},{key:"_mountedHook",value:function(){}},{key:"_addedHook",value:function(){}},{key:"_removedHook",value:function(){}},{key:"setOptions",value:function(e){var t=y;return e&&0!==Object.keys(e)[t(r)]&&(this.options=merge(this.options,e),Cesium__namespace.defined(e.enabled)&&(this.enabled=e.enabled),this[t(2586)])&&this._setOptionsHook(this.options,e),this}},{key:"destroy",value:function(e){var t=y;this[t(a)]!==State[t(n)]&&(this.clear&&this[t(1404)](),this.remove()),_get(_getPrototypeOf(g.prototype),t(s),this).call(this,e)}}]),g}(),GroupThing=function(){var i=2385,r=1936,o=2822,a=1936,n=3817,s=2437,l=368,c=2697,h=1936,u=2822,e=2822,_=1567,p=1936,m=_0x1658de,d=(_inherits(f,BaseThing),_createSuper(f));function f(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,f),(t=d[e(_)](this,t))[e(p)]=[],t}return _createClass(f,[{key:"arrThing",get:function(){return this._arrThing}},{key:"hasEmptyGroup",get:function(){return 0===this[_0x236b(e)]}},{key:m(2695),get:function(){return 0<this[m(2822)]}},{key:m(2822),get:function(){var e,t=m;return(0<(null==(e=this[t(1592)][t(2793)])?void 0:e[t(u)])?this.options.things:this._arrThing).length}},{key:m(3748),value:function(t){this.eachThing(function(e){e.enabled=t},this)}},{key:"_addedHook",value:function(){this.addChildsToMap()}},{key:"_removedHook",value:function(){this.removeMapChilds()}},{key:"addChildsToMap",value:function(){var i=this;this.eachThing(function(e){var t=_0x236b;i._map[t(3800)](e)},this)}},{key:m(1983),value:function(){var i=1267,a=m,n=this;this[a(1224)](function(e){var t=a;n._map[t(i)](e)},this)}},{key:"addThing",value:function(e){var t=m;return e[t(s)]&&(e[t(l)](e.parent),e.parent=null),e.parent=this,(e.options[t(c)]=this)[t(h)].push(e),this.isAdded&&!e.isAdded?this._map[t(3800)](e):(e.removeEventParent(this._map),e.addEventParent(this)),this}},{key:"removeThing",value:function(e){var t=m;return e.parent=null,e.removeEventParent(this),removeArrayItem(this._arrThing,e),this._map&&e.isAdded&&this[t(n)].removeThing(e),this}},{key:"eachThing",value:function(t,i){var e=m;if(this[e(a)])return this[e(1936)].forEach(function(e){t.call(i,e)}),this}},{key:m(3271),value:function(){return this._arrThing}},{key:"getInMapChilds",value:function(){var t=this,i=this._arrThing||[];return this._map.eachThing(function(e){e.pid===t.id&&-1===t._arrThing.indexOf(e)&&i.push(e)},this),i}},{key:"getThingById",value:function(e){var t=m,i=this[t(r)];if(this._arrThing&&0!==this._arrThing[t(o)])for(var a=0,n=i.length;a<n;a++){var s=i[a];if(s.id===e)return s}}},{key:m(1553),value:function(t){var e=m;this.eachThing(function(e){null!=e&&e.destroy&&e.destroy(t)},this),_get(_getPrototypeOf(f[e(i)]),"destroy",this).call(this,t)}}]),f}(),GroundSkyBoxFS="uniform samplerCube u_cubeMap;\nin vec3 v_texCoord;\n\nvoid main() {\n vec4 color = czm_textureCube(u_cubeMap, normalize(v_texCoord));\n out_FragColor = vec4(czm_gammaCorrect(color).rgb, czm_morphTime);\n}\n",GroundSkyBoxVS="in vec3 position;\nuniform mat3 u_rotateMatrix;\nout vec3 v_texCoord;\n\nvoid main() {\n vec3 p = czm_viewRotation * u_rotateMatrix * (czm_temeToPseudoFixed * (czm_entireFrustum.y * position));//【火星科技marsgis.cn】 Hao 2019-9-18 天空盒\n gl_Position = czm_projection * vec4(p, 1.0);\n v_texCoord = position.xyz;\n}\n",GroundSkyBox=function(e){var c=3965,h=2684,u=3257,_=1361,p=1361,m=1361,d=749,f=2478,y=4107,v=2589,g=3078,C=491,i=(_inherits(a,e),_createSuper(a));function a(e){var t=_0x236b;return _classCallCheck(this,a),(e=i.call(this,e))._skyboxMatrix3=new Cesium__namespace[t(3915)],e}return _createClass(a,[{key:"update",value:function(t,e){var i=_0x236b,a=this,n=this;if(this.show&&(t.mode===Cesium__namespace.SceneMode[i(c)]||t.mode===Cesium__namespace.SceneMode[i(h)])&&t[i(u)].render){var s=t.context;if(this._sources!==this[i(3628)]){this[i(4107)]=this.sources;var r=this.sources;if(!(Cesium__namespace.defined(r.positiveX)&&Cesium__namespace.defined(r.negativeX)&&Cesium__namespace.defined(r.positiveY)&&Cesium__namespace.defined(r.negativeY)&&Cesium__namespace.defined(r[i(749)])&&Cesium__namespace.defined(r.negativeZ)))throw new Cesium__namespace[i(2478)]("this.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.");if(_typeof(r[i(_)])!==_typeof(r.negativeX)||_typeof(r[i(p)])!==_typeof(r.positiveY)||_typeof(r[i(m)])!==_typeof(r.negativeY)||_typeof(r[i(1361)])!==_typeof(r[i(d)])||_typeof(r.positiveX)!==_typeof(r.negativeZ))throw new Cesium__namespace[i(f)]("this.sources properties must all be the same type.");"string"==typeof r.positiveX?Cesium__namespace.loadCubeMap(s,this[i(y)])[i(v)](function(e){var t=i;n._cubeMap=n._cubeMap&&n[t(3078)].destroy(),n._cubeMap=e}):(this[i(g)]=this._cubeMap&&this[i(3078)].destroy(),this._cubeMap=new Cesium__namespace.CubeMap({context:s,source:r}))}var o,l=this._command;if(Cesium__namespace.defined(l.vertexArray)||(l[i(1650)]={u_cubeMap:function(){return n[i(3078)]},u_rotateMatrix:function(){var e=i;return l.modelMatrix=Cesium__namespace.Transforms.eastNorthUpToFixedFrame(t.camera._positionWC),Cesium__namespace.Matrix4.getMatrix3(l.modelMatrix,a[e(2665)])}},r=Cesium__namespace.BoxGeometry.createGeometry(Cesium__namespace.BoxGeometry.fromDimensions({dimensions:new Cesium__namespace.Cartesian3(2,2,2),vertexFormat:Cesium__namespace.VertexFormat.POSITION_ONLY})),o=this._attributeLocations=Cesium__namespace.GeometryPipeline.createAttributeLocations(r),l.vertexArray=Cesium__namespace.VertexArray.fromGeometry({context:s,geometry:r,attributeLocations:o,bufferUsage:Cesium__namespace.BufferUsage[i(819)]}),l.renderState=Cesium__namespace.RenderState.fromCache({blending:Cesium__namespace[i(1820)].ALPHA_BLEND})),Cesium__namespace.defined(l.shaderProgram)&&this._useHdr===e||(r=new Cesium__namespace.ShaderSource({defines:[e?i(1487):""],sources:[GroundSkyBoxFS]}),l.shaderProgram=Cesium__namespace.ShaderProgram[i(C)]({context:s,vertexShaderSource:GroundSkyBoxVS,fragmentShaderSource:r,attributeLocations:this._attributeLocations}),this._useHdr=e),Cesium__namespace.defined(this._cubeMap))return l}}}]),a}(Cesium__namespace.SkyBox),MultipleSkyBoxFS=_0x1658de(1587),MultipleSkyBoxVS="in vec3 position;\nout vec3 v_texCoord;\nuniform mat3 u_rotateMatrix;\n\nvoid main() {\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",MultipleSkyBox=function(e){var i=875,_=2684,p=4107,m=3628,d=4077,f=3277,y=1501,v=2610,g=2226,C=762,x=875,b=515,k=2073,P=974,w=610,S=2594,T=3921,M=3277,E=3690,A=875,a=1567,n=4077,s=(_inherits(r,e),_createSuper(r));function r(e){var t,i=_0x236b;return _classCallCheck(this,r),(t=s[i(a)](this,e)).sources2=e.sources2,t[i(3168)]=e[i(3168)],t._sources2=void 0,t[i(n)]=void 0,t._cubeMap2=void 0,t._cubeMap3=void 0,t[i(2665)]=new Cesium__namespace.Matrix3,t.select=e.select||0,t}return _createClass(r,[{key:"update",value:function(t,e){var i=1436,a=875,n=_0x236b,s=this,r=this;if(this.show&&(t.mode===Cesium__namespace.SceneMode.SCENE3D||t.mode===Cesium__namespace.SceneMode[n(_)])&&t[n(3257)].render){var o=t.context;if(this[n(p)]!==this.sources){this[n(4107)]=this.sources;var l=this[n(m)],c=(this._sources2=this.sources2,this.sources2),h=(this[n(d)]=this.sources3,this[n(3168)]);if(!(Cesium__namespace[n(3277)](l.positiveX)&&Cesium__namespace[n(f)](l.negativeX)&&Cesium__namespace[n(f)](l[n(y)])&&Cesium__namespace.defined(l[n(v)])&&Cesium__namespace.defined(l.positiveZ)&&Cesium__namespace.defined(l.negativeZ)))throw new Cesium__namespace.DeveloperError("this.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.");if(_typeof(l[n(1361)])!==_typeof(l[n(g)])||_typeof(l.positiveX)!==_typeof(l.positiveY)||_typeof(l.positiveX)!==_typeof(l.negativeY)||_typeof(l[n(1361)])!==_typeof(l.positiveZ)||_typeof(l.positiveX)!==_typeof(l.negativeZ))throw new Cesium__namespace.DeveloperError("this.sources properties must all be the same type.");typeof l.positiveX===n(1807)?(Cesium__namespace[n(C)](o,this._sources)[n(2589)](function(e){var t=n;r[t(3078)]=r._cubeMap&&r[t(3078)][t(1553)](),r._cubeMap=e}),Cesium__namespace[n(762)](o,this._sources2).then(function(e){var t=n;r._cubeMap2=r._cubeMap2&&r._cubeMap2[t(1553)](),r._cubeMap2=e}),Cesium__namespace.loadCubeMap(o,this._sources3).then(function(e){r[n(A)]=r._cubeMap3&&r._cubeMap3.destroy(),r._cubeMap3=e})):(this._cubeMap=this._cubeMap&&this._cubeMap[n(1553)](),this._cubeMap=new Cesium__namespace.CubeMap({context:o,source:l}),this._cubeMap2=this[n(3690)]&&this._cubeMap2.destroy(),this._cubeMap2=new Cesium__namespace.CubeMap({context:o,source:c}),this._cubeMap3=this[n(x)]&&this._cubeMap3[n(1553)](),this._cubeMap3=new Cesium__namespace.CubeMap({context:o,source:h}))}var u=this[n(b)];if(u.modelMatrix=Cesium__namespace.Transforms[n(k)](t[n(2018)]._positionWC),Cesium__namespace[n(3277)](u[n(438)])||(u.uniformMap={u_cubeMap:function(){return r[n(3078)]},u_cubeMap2:function(){return r._cubeMap2},u_cubeMap3:function(){return r[n(a)]},u_select:function(){return s.select},u_rotateMatrix:function(){var e=n;return u.modelMatrix=Cesium__namespace[e(2510)].eastNorthUpToFixedFrame(t.camera[e(2091)]),Cesium__namespace.Matrix4.getMatrix3(u[e(i)],s[e(2665)])}},l=Cesium__namespace.BoxGeometry[n(P)](Cesium__namespace.BoxGeometry.fromDimensions({dimensions:new Cesium__namespace.Cartesian3(2,2,2),vertexFormat:Cesium__namespace[n(w)][n(S)]})),c=this._attributeLocations=Cesium__namespace.GeometryPipeline.createAttributeLocations(l),u.vertexArray=Cesium__namespace.VertexArray[n(T)]({context:o,geometry:l,attributeLocations:c,bufferUsage:Cesium__namespace[n(2597)]._DRAW}),u[n(2312)]=Cesium__namespace.RenderState[n(491)]({blending:Cesium__namespace[n(1820)].ALPHA_BLEND})),Cesium__namespace.defined(u.shaderProgram)&&this._useHdr===e||(h=new Cesium__namespace.ShaderSource({defines:[e?"HDR":""],sources:[MultipleSkyBoxFS]}),u.shaderProgram=Cesium__namespace.ShaderProgram[n(491)]({context:o,vertexShaderSource:MultipleSkyBoxVS,fragmentShaderSource:h,attributeLocations:this._attributeLocations}),this._useHdr=e),Cesium__namespace[n(M)](this._cubeMap)&&Cesium__namespace.defined(this[n(E)])&&Cesium__namespace.defined(this._cubeMap3))return u}}},{key:"isDestroyed",value:function(){return!1}},{key:"destroy",value:function(){var e=_0x236b,t=this._command;return t.vertexArray=t.vertexArray&&t.vertexArray.destroy(),t.shaderProgram=t[e(796)]&&t.shaderProgram.destroy(),this[e(3078)]=this[e(3078)]&&this._cubeMap.destroy(),this[e(3690)]=this._cubeMap2&&this[e(3690)].destroy(),this[e(875)]=this[e(i)]&&this[e(875)].destroy(),this.destroyObject(this)}}]),r}(Cesium__namespace.SkyBox),LocalWorldTransform=function(){var a=1762,n=1762,s=3342,r=3513,o=_0x1658de;function l(e,t){var i=_0x236b;_classCallCheck(this,l),t=t||Cesium__namespace.Transforms.eastNorthUpToFixedFrame,this._matrix=t(e),this._inverseMatrix=Cesium__namespace[i(s)][i(r)](this[i(2753)],new Cesium__namespace.Matrix4)}return _createClass(l,[{key:o(2819),value:function(e,t){var i=o;return t||(t=new Cesium__namespace.Cartesian3),Cesium__namespace.Matrix4[i(n)](this._matrix,e,t),t}},{key:o(2148),value:function(e,t){var i=o;return t||(t=new Cesium__namespace[i(784)]),Cesium__namespace.Matrix4[i(a)](this._inverseMatrix,e,t),t}}]),l}(),MarsArray=function(){var e=896,t=4071,n=2822,i=2822,s=3988,r=963,o=4087,l=2822,a=4071,c=3988,h=3988,u=_0x1658de;function _(){_classCallCheck(this,_),this._array=[],this._hash={}}return _createClass(_,[{key:"length",get:function(){var e=_0x236b;return this[e(963)][e(2822)]}},{key:"values",get:function(){return this._array}},{key:"contains",value:function(e){var t=_0x236b;return!!e&&Cesium__namespace[t(3277)](this[t(h)][e])}},{key:u(1062),value:function(e,t){var i=u;t!==this._hash[e]&&(this[i(a)](e),this[i(c)][e]=t,this._array.push(t))}},{key:"get",value:function(e){return e?this._hash[e]:void 0}},{key:u(2191),value:function(e){var t=1<arguments[u(2822)]&&void 0!==arguments[1]?arguments[1]:"id",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"options";if("id"===t&&this._hash[e])return this._hash[e];for(var a=0,n=this._array.length;a<n;a++){var s=this._array[a];if(s[t]==e||s[i]&&s[i][t]==e)return s}}},{key:u(e),value:function(e){for(var t=u,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"id",a=2<arguments[t(l)]&&void 0!==arguments[2]?arguments[2]:"options",n=[],s=0,r=this._array[t(l)];s<r;s++){var o=this._array[s];(o[i]==e||o[a]&&o[a][i]==e)&&n.push(o)}return n}},{key:u(t),value:function(e){var t,i=u,a=this[i(s)][e],n=Cesium__namespace.defined(a);return n&&((t=this[i(r)])[i(o)](t.indexOf(a),1),delete this._hash[e]),n}},{key:"forEach",value:function(e,t){for(var i=u,a=0,n=this._array.length;a<n;a++){var s=this._array[a];e[i(1567)](t||this,s,a)}}},{key:"removeAll",value:function(){var e=u,t=this._array;0<t.length&&(this._hash={},t[e(i)]=0)}},{key:"destroy",value:function(){var e,t=u;if(0<this._array[t(n)]&&this._array[0].destroy){this[t(4071)]=function(){};for(var i=this._array.length-1;0<=i;i--){var a=this[t(963)][i];null!=a&&a.destroy&&a.destroy()}}for(e in this.removeAll(),this)delete this[e]}}]),_}(),Texture3=function(){var e=3159,t=593,i=1553,a=3625,n=3624,s=3856,r=1556,o=4088,l=2605,c=3916,m=3159,d=3277,f=553,y=553,v=3277,g=2135,C=3899,x=1718,b=2161,k=3206,h=_0x1658de;function P(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=(_classCallCheck(this,P),t.context),a=i._gl,n=t.source,s=t.width,r=t[e(m)],o=t[e(4111)];if(Cesium__namespace.defined(n)&&(Cesium__namespace[e(d)](s)||(s=Cesium__namespace.defaultValue(n.videoWidth,n.width)),Cesium__namespace.defined(r)||(r=Cesium__namespace[e(f)](n.videoHeight,n.height)),!Cesium__namespace.defined(o))&&(o=Cesium__namespace.defaultValue(n.videoDepth,n[e(4111)])),!Cesium__namespace[e(3277)](s)||!Cesium__namespace.defined(r)||!Cesium__namespace.defined(o))throw new Cesium__namespace.DeveloperError("options requires a source field to create an initialized texture or width or height and depth fields to create a blank texture.");var l=Cesium__namespace[e(y)](t.pixelFormat,Cesium__namespace.PixelFormat.RGBA),c=Cesium__namespace.defaultValue(t.pixelDatatype,Cesium__namespace.PixelDatatype.FLOAT),h=Cesium__namespace.PixelFormat.toInternalFormat(l,c,i),u=4,_=(Cesium__namespace[e(v)](n)&&Cesium__namespace.defined(n.arrayBufferView)&&(u=Cesium__namespace.PixelFormat[e(1462)](l,c,s)),a[e(g)]),p=a.createTexture(),n=(a.activeTexture(a[e(4088)]),a.bindTexture(_,p),a.pixelStorei(a.UNPACK_ALIGNMENT,u),a[e(4055)](a.UNPACK_COLORSPACE_CONVERSION_WEBGL,a.NONE),a.pixelStorei(a.UNPACK_FLIP_Y_WEBGL,!1),Cesium__namespace.defined(n)&&Cesium__namespace.defined(n.arrayBufferView)&&(u=n[e(1164)],a.texImage3D(_,0,h,s,r,o,0,l,Cesium__namespace[e(C)].toWebGLConstant(c,i),u)),a.bindTexture(_,null),texture3DSizeInBytes(l,c,s,r,o));this[e(x)]=Cesium__namespace[e(1776)](),this[e(b)]=i,this[e(1137)]=i._textureFilterAnisotropic,this[e(3624)]=p,this._textureTarget=_,this._internalFormat=h,this._pixelFormat=l,this._pixelDatatype=c,this._width=s,this[e(3087)]=r,this._depth=o,this._hasMipmap=!1,this._sizeInBytes=n,this._preMultiplyAlpha=!1,this._flipY=!1,this._initialized=!0,this._dimensions=new Cesium__namespace.Cartesian3(s,r,o),this._sampler=void 0,this[e(k)]=Cesium__namespace.defaultValue(t.sampler,new Cesium__namespace.Sampler)}return _createClass(P,[{key:"id",get:function(){return this._id}},{key:"sampler",get:function(){return this._sampler},set:function(e){var t=_0x236b,i=e.minificationFilter,a=e.magnificationFilter,n=this._context._gl,s=this[t(3856)];n.activeTexture(n[t(o)]),n.bindTexture(s,this._texture),n.texParameteri(s,n.TEXTURE_MIN_FILTER,i),n.texParameteri(s,n.TEXTURE_MAG_FILTER,a),n[t(l)](s,n.TEXTURE_WRAP_S,e.wrapS),n.texParameteri(s,n.TEXTURE_WRAP_T,e[t(c)]),n.texParameteri(s,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),n[t(2014)](s,null),this._sampler=e}},{key:h(3651),get:function(){return this[h(1171)]}},{key:"pixelDatatype",get:function(){return this._pixelDatatype}},{key:"dimensions",get:function(){return this._dimensions}},{key:h(e),get:function(){return this._height}},{key:"depth",get:function(){return this._depth}},{key:"preMultiplyAlpha",get:function(){return this._preMultiplyAlpha}},{key:h(t),get:function(){return this._flipY}},{key:"sizeInBytes",get:function(){return this[h(r)]}},{key:"_target",get:function(){return this[h(s)]}},{key:"isDestroyed",value:function(){return!1}},{key:h(i),value:function(){var e=h;return this._context._gl[e(a)](this[e(n)]),Cesium__namespace.destroyObject(this)}}]),P}();function texture3DSizeInBytes(e,t,i,a,n){var s=_0x1658de;return i*a*n*Cesium__namespace.PixelFormat.componentsLength(e)*Cesium__namespace.PixelDatatype[s(3149)](t)}var ChinaCRS={WGS84:"WGS84",GCJ02:_0x1658de(699),BAIDU:"BD09"},ion="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJlZDJjMTcwNS04ZDVmLTQzNWQtYWUyZC0yMTJkMDkyMzkyMjMiLCJpZCI6MTQ4MiwiaWF0IjoxNjQ4NDQ2OTIwfQ.7e1QUkx_k-mZBxKz9tV8a5TFEorrlLlkfcVNNPzfTQY";function updateIon(e){ion=e,Cesium__namespace[_0x1658de(1130)].defaultAccessToken=e}var mapbox=_0x1658de(3020);function updateMapbox(e){mapbox=e}var bing="Am5SdKm6pNdkP1P5zuUOMZwleCHeA7GD5vuQgZ3xBUbEMBeQ5cQ1WN4B8xqqV1Vt";function updateBing(e){bing=e}var tiandituArr=["789e558be762ff832392a0393fd8a4f1","bcc62222fc634ec736589c483de933e6","d083e4cf30bfc438ef93436c10c2c20a",_0x1658de(2886)],tianditu=getArrayRandomOne(tiandituArr);function updateTianditu(e){tiandituArr.splice(0,tiandituArr.length),Array.isArray(e)?e.forEach(function(e){tiandituArr.push(e)}):tiandituArr.push(e),tianditu=getArrayRandomOne(tiandituArr)}var gaodeArr=["0ee24126ea61ec60a670675fd8cd29b1","fe80f2290b380cfed86c62e3edec169e","65892a265537810eba29eeae73649a71",_0x1658de(2657),_0x1658de(1486),"044b5684de2b2009a15084eb8b88f822","ad5f8b9d03f38f8f312025c80cfff4e3",_0x1658de(862)],gaode=getArrayRandomOne(gaodeArr);function updateGaode(e){var t=_0x1658de;gaodeArr.splice(0,gaodeArr.length),Array[t(2255)](e)?e.forEach(function(e){gaodeArr.push(e)}):gaodeArr.push(e),gaode=getArrayRandomOne(gaodeArr)}var baiduArr=["LvhIlDXT60I3NePicXWQT5K0eHFCR4hD","nLUUSRsSBRSVmtxfaGKPaN3mXf6jiivf","qWM3MBm5oWLI06sa3A3otnpaxGQr8jIw","R7KAL3f6AttldwwicmVXnYkN7EHCY729"],baidu=getArrayRandomOne(baiduArr);function updateBaidu(e){var t=_0x1658de;baiduArr.splice(0,baiduArr[t(2822)]),Array.isArray(e)?e[t(2432)](function(e){baiduArr.push(e)}):baiduArr.push(e),baidu=getArrayRandomOne(baiduArr)}function updateAll(e){var t=_0x1658de;e.tianditu&&updateTianditu(e.tianditu),e.gaode&&updateGaode(e[t(2516)]),e[t(2688)]&&updateBaidu(e.baidu),e.ion&&updateIon(e.ion),e.mapbox&&updateMapbox(e.mapbox),e.bing&&updateBing(e.bing)}var Token={__proto__:null,get ion(){return ion},updateIon:updateIon,get mapbox(){return mapbox},updateMapbox:updateMapbox,get bing(){return bing},updateBing:updateBing,tiandituArr:tiandituArr,get tianditu(){return tianditu},updateTianditu:updateTianditu,gaodeArr:gaodeArr,get gaode(){return gaode},updateGaode:updateGaode,baiduArr:baiduArr,get baidu(){return baidu},updateBaidu:updateBaidu,updateAll:updateAll},Color$2=Cesium__namespace.Material.ColorType,PolylineDash=Cesium__namespace.Material.PolylineDashType,LineDotDash="LineDotDash",PolylineOutline=Cesium__namespace.Material.PolylineOutlineType,PolylineArrow=Cesium__namespace.Material.PolylineArrowType,PolylineGlow=Cesium__namespace.Material.PolylineGlowType,LineFlow="LineFlow",LineFlowColor="LineFlowColor",ODLine="ODLine",LineFlicker="LineFlicker",LineTrail="LineTrail",LineBloom="LineBloom",DigitalFlow="DigitalFlow",LineThreeDash="LineThreeDash",WallScroll="WallScroll",Image$1=Cesium__namespace.Material[_0x1658de(3511)],Image2="Image2",Text="Text",Grid=Cesium__namespace.Material.GridType,Checkerboard=Cesium__namespace.Material[_0x1658de(2954)],Stripe=Cesium__namespace[_0x1658de(2517)].StripeType,PolyGradient="PolyGradient",PolyAsphalt="PolyAsphalt",PolyBlob="PolyBlob",PolyFacet=_0x1658de(1773),PolyGrass="PolyGrass",PolyWood="PolyWood",NeonLight="NeonLight",Water$1=Cesium__namespace[_0x1658de(2517)][_0x1658de(3110)],WaterLight="WaterLight",RectSlide="RectSlide",ScanLine="ScanLine",CircleScan="CircleScan",CircleWave="CircleWave",RadarLine="RadarLine",RadarWave=_0x1658de(4105),CylinderWave="CylinderWave",EllipsoidElectric="EllipsoidElectric",EllipsoidWave="EllipsoidWave",MaterialType$1={__proto__:null,Color:Color$2,PolylineDash:PolylineDash,LineDotDash:LineDotDash,PolylineOutline:PolylineOutline,PolylineArrow:PolylineArrow,PolylineGlow:PolylineGlow,LineFlow:LineFlow,LineFlowColor:LineFlowColor,ODLine:ODLine,LineFlicker:LineFlicker,LineTrail:LineTrail,LineBloom:LineBloom,DigitalFlow:DigitalFlow,LineThreeDash:LineThreeDash,WallScroll:WallScroll,Image:Image$1,Image2:Image2,Text:Text,Grid:Grid,Checkerboard:Checkerboard,Stripe:Stripe,PolyGradient:PolyGradient,PolyAsphalt:PolyAsphalt,PolyBlob:PolyBlob,PolyFacet:PolyFacet,PolyGrass:PolyGrass,PolyWood:PolyWood,NeonLight:NeonLight,Water:Water$1,WaterLight:WaterLight,RectSlide:RectSlide,ScanLine:ScanLine,CircleScan:CircleScan,CircleWave:CircleWave,RadarLine:RadarLine,RadarWave:RadarWave,CylinderWave:CylinderWave,EllipsoidElectric:EllipsoidElectric,EllipsoidWave:EllipsoidWave},LayerType={},ControlType={},EffectType={},LangType={ZH:0,ZHHK:1,EN:2},MoveType={ENLARGE:0,NARROW:1,LEFT_ROTATE:2,RIGHT_ROTATE:3,TOP_ROTATE:4,BOTTOM_ROTATE:5},ClipType={Z:1,ZR:2,X:3,XR:4,Y:5,YR:6},Icon={Delete:_0x1658de(2273),Coordinates:"fa fa-info-circle",CameraInfo:_0x1658de(3486),Camera:"fa fa-street-view",UndergroundNo:"fa fa-ban",UndergroundYes:"fa fa-sort-amount-desc",RotatePointStart:"fa fa-retweet",RotatePointStop:"fa fa-remove",FlyToPoint:"fa fa-send-o",FirstPerspective:_0x1658de(1900),KeyboardRoamYes:"fa fa-keyboard-o",KeyboardRoamNo:"fa fa-keyboard-o",TrackedEntityYes:_0x1658de(1722),TrackedEntityNo:_0x1658de(1008),Tileset:"fa fa-building-o",TilesetWireframeYes:"fa fa-connectdevelop",TilesetWireframeNo:_0x1658de(2522),TilesetBoundingVolumeYes:_0x1658de(3788),TilesetBoundingVolumeNo:"fa fa-codepen",Terrain:"fa fa-globe",TerrainYes:"fa fa-medium",TerrainNo:"fa fa-medium",TerrainWireframeYes:_0x1658de(2522),TerrainWireframeNo:"fa fa-connectdevelop",Measure:_0x1658de(1037),MeasureDistance:_0x1658de(3944),MeasureArea:_0x1658de(2449),MeasureHeight:"fa fa-sort-amount-asc",MeasureAngle:"fa fa-road",Draw:"fa fa-eyedropper",DrawPoint:"fa fa-map-marker",DrawPolyline:_0x1658de(2420),DrawPolygon:"fa fa-medium",DrawCircle:_0x1658de(2267),DrawRectangle:"fa fa-retweet",DrawEditYes:_0x1658de(3116),DrawEditNo:"fa fa-pencil-square",DrawDownJson:"fa fa-file-text-o",Effect:"fa fa-rss",RainEffectYes:_0x1658de(3498),RainEffectNo:_0x1658de(3498),SnowEffectYes:_0x1658de(3851),SnowEffectNo:"fa fa-yelp",FogEffectYes:"fa fa-spinner",FogEffectNo:_0x1658de(3540),BloomEffectYes:_0x1658de(616),BloomEffectNo:"fa fa-bullseye",BrightnessEffectYes:"fa fa-trello",BrightnessEffectNo:_0x1658de(1409),NightVisionEffectYes:"fa fa-dashboard",NightVisionEffectNo:_0x1658de(2933),BlackAndWhiteEffectYes:"fa fa-star-half-full",BlackAndWhiteEffectNo:"fa fa-star-half-full",OutlineEffectYes:"fa fa-ticket",OutlineEffectNo:"fa fa-ticket",Scene:"fa fa-gear",DepthTestYes:"fa fa-eye-slash",DepthTestNo:"fa fa-eye",SkyBoxYes:_0x1658de(2989),SkyBoxNo:"fa fa-moon-o",ShadowYes:_0x1658de(863),ShadowNo:"fa fa-sun-o",SkyAtmosphereYes:_0x1658de(1298),SkyAtmosphereNo:_0x1658de(1298),ExpImage:"fa fa-download"};function create$3(e,t,i){e=document[_0x1658de(665)](e);return e.className=t||"",i&&i.appendChild(e),e}function createSvg(e,t,i,a){var n=696,s=2557,r=3907,o=2164,l=_0x1658de,c=document.createElementNS(l(2164),"svg:svg"),n=(c[l(569)](l(3106),"svg-path"),c.setAttribute(l(n),e),c.setAttribute("height",t),c.setAttribute("viewBox","0 0 ".concat(e," ")[l(s)](t)),document[l(r)](l(o),"path"));return n.setAttribute("d",i),c[l(4106)](n),a&&a[l(4106)](c),c}function createVideo(e,t,i,a){var n=3956,s=569,r=_0x1658de,i=create$3(r(1833),i,a),a=(i.setAttribute("autoplay",!0),i.setAttribute(r(n),!0),i[r(s)](r(2490),!0),t=t||e[r(3998)](e.lastIndexOf(".")+1,e.length),create$3("source","",i));return a[r(s)]("src",e),a.setAttribute("type","video/".concat(t)),i}function get(e){return typeof e===_0x1658de(1807)?document.getElementById(e):e}function parseDom(e,t,i){var a=1134,n=_0x1658de,s=document[n(665)]("div");return i&&(s[n(a)]=i),s.innerHTML=e,t?s:s.childNodes}function remove(e){var t,i=_0x1658de;(e=get(e))&&(t=e.parentNode)&&t[i(2418)](e)}function empty(e){for(var t=2418,i=_0x1658de;e.firstChild;)e[i(t)](e.firstChild)}function getStyle(e,t){var i=e.style[t]||e.currentStyle&&e.currentStyle[t];return"auto"===(i=i&&"auto"!==i||!document.defaultView?i:(e=document.defaultView.getComputedStyle(e,null))?e[t]:null)?null:i}function hasClass(e,t){var i=729,a=2822,n=_0x1658de;return!!e&&(void 0!==e.classList?e[n(i)].contains(t):0<(i=getClass$3(e))[n(a)]&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(i))}function addClass(e,t){var i,a=3605,n=_0x1658de;if(e)if(void 0!==e.classList)for(var s=splitWords(t),r=0,o=s.length;r<o;r++)e.classList[n(a)](s[r]);else hasClass(e,t)||setClass(e,((i=getClass$3(e))?i+" ":"")+t)}function removeClass(e,t){e&&(void 0!==e[_0x1658de(729)]?e.classList.remove(t):setClass(e,trim((" "+getClass$3(e)+" ").replace(" "+t+" "," "))))}function setClass(e,t){var i=_0x1658de;e[i(1134)]&&e.className.baseVal?e.className.baseVal=t:e[i(1134)]=t}function getClass$3(e){var t;return null!=(t=(e=e.correspondingElement?e.correspondingElement:e).className)&&t.baseVal?e.className.baseVal:e.className}function copyCanvas(e){var t=_0x1658de,i=e[t(2615)]("2d",{willReadFrequently:!0}).getImageData(0,0,e.width,e.height),a=document.createElement(t(3252)),e=(a.width=e.width,a.height=e[t(3159)],a.getContext("2d",{willReadFrequently:!0}));return e.clearRect(0,0,a.width,a.height),e[t(1113)](i,0,0),a}var DomUtil={__proto__:null,create:create$3,createSvg:createSvg,createVideo:createVideo,get:get,parseDom:parseDom,remove:remove,empty:empty,getStyle:getStyle,hasClass:hasClass,addClass:addClass,removeClass:removeClass,setClass:setClass,getClass:getClass$3,copyCanvas:copyCanvas};function getCenter(e){var t=_0x1658de,i=e.canvas,i=new Cesium__namespace.Cartesian2(i[t(1017)]/2,i.clientHeight/2),a=e.camera.getPickRay(i),a=e.globe.pick(a,e);return(a=a?a:e[t(2018)].pickEllipsoid(i))?LngLatPoint.fromCartesian(a):void 0}function getExtent(e){var t=1604,i=3159,a=2360,n=2018,s=1124,r=3159,o=1447,l=2535,c=2535,h=520,u=_0x1658de,_=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},p={xmin:70,xmax:140,ymin:0,ymax:55,height:0},m=e.scene,d=m.globe.ellipsoid,m=m.canvas,f=e.camera.pickEllipsoid(new Cesium__namespace.Cartesian2(0,0),d);if(f){f=d.cartesianToCartographic(f);p.xmin=Cesium__namespace.Math[u(t)](f.longitude),p.ymax=Cesium__namespace.Math.toDegrees(f[u(2360)]),p[u(i)]=Math[u(1245)](p.height,f.height)}else{for(var y,v=m.width/2,g=m.height/2,C=0;C<=g;C+=10)if(y=e.camera.pickEllipsoid(new Cesium__namespace.Cartesian2(C<=v?C:v,C),d))break;y&&(f=d.cartesianToCartographic(y),p.xmin=Cesium__namespace.Math.toDegrees(f.longitude),p[u(2131)]=Cesium__namespace.Math[u(1604)](f[u(a)]),p.height=Math.max(p.height,f.height))}var f=e[u(n)].pickEllipsoid(new Cesium__namespace[u(2638)](m.width,m.height),d);if(f){f=d.cartesianToCartographic(f);p.xmax=Cesium__namespace.Math[u(t)](f.longitude),p.ymin=Cesium__namespace[u(s)].toDegrees(f.latitude),p[u(r)]=Math.max(p.height,f.height)}else{for(var x=m.width/2,b=m[u(i)]/2,k=m[u(3159)];b<=k;k-=10){var P,w=x<=k?k:x;if(P=e[u(n)].pickEllipsoid(new Cesium__namespace[u(2638)](w,k),d))break}P&&(t=d.cartesianToCartographic(P),p.xmax=Cesium__namespace[u(s)].toDegrees(t.longitude),p.ymin=Cesium__namespace.Math.toDegrees(t[u(a)]),p[u(i)]=Math[u(1245)](p.height,t.height))}if(p)return p.xmax<p[u(o)]&&(r=p[u(2535)],p.xmax=p.xmin,p.xmin=r),p[u(2131)]<p.ymin&&(f=p.ymax,p.ymax=p.ymin,p[u(3727)]=f),Cesium__namespace[u(3277)](_.scale)&&(m=_.scale,s=(p[u(l)]-p[u(1447)])/2*m,a=(p.ymax-p.ymin)/2*m,p.xmin-=s,p[u(c)]+=s,p.ymin-=a,p.ymax+=a),_[u(1830)]&&(p.xmin=formatNum$1(p.xmin,LngLatPoint.FormatLength),p.xmax=formatNum$1(p.xmax,LngLatPoint.FormatLength),p.ymin=formatNum$1(p.ymin,LngLatPoint[u(h)]),p.ymax=formatNum$1(p.ymax,LngLatPoint[u(520)])),p}function getCameraView(e,t){var i=654,a=1604,n=520,s=1124,r=1124,o=2033,l=1124,c=_0x1658de,h=e.positionCartographic,u={};return u[c(i)]=formatNum$1(Cesium__namespace.Math[c(a)](h.latitude),LngLatPoint[c(n)]),u.lng=formatNum$1(Cesium__namespace[c(s)].toDegrees(h.longitude),LngLatPoint.FormatLength),null==(i=null==t?void 0:t.simplify)||i?(u.alt=formatNum$1(h[c(3159)],1),u.heading=formatNum$1(Cesium__namespace.Math[c(1604)](e.heading||0)%360,1),u.pitch=formatNum$1(Cesium__namespace[c(r)].toDegrees(e[c(o)]||0)%360,1)):(u[c(2993)]=formatNum$1(h.height,LngLatPoint.FormatAltLength),u.heading=formatNum$1(Cesium__namespace.Math.toDegrees(e.heading||0)%360,2),u.pitch=formatNum$1(Cesium__namespace.Math.toDegrees(e.pitch||0)%360,2),u.roll=formatNum$1(Cesium__namespace[c(l)].toDegrees(e.roll||0)%360,2)),u}function expImage(i){var a=1417,n=1488,s=795,r=3159,v=1417,g=_0x1658de,C=1<arguments[g(2822)]&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,e){var l,c=3159,h=665,u=696,_=3357,p=1488,m=3816,d=g,t=(C[d(1417)]=null==(t=C[d(a)])||t,C.type=null!=(t=C[d(n)])?t:d(928),i[d(3377)](),i.canvas.toDataURL(C.type,C[d(s)])),f=i.canvas[d(r)],y=i.canvas.width;Cesium__namespace.defined(C.width)||Cesium__namespace.defined(C.height)?((l=new Image).onload=function(){var e,t,i=d,a=(Cesium__namespace.defined(C[i(696)])&&!Cesium__namespace.defined(C[i(c)])||(!Cesium__namespace.defined(C.height)||Cesium__namespace[i(3277)](C.width))&&(a=C[i(696)]/y,C.height/f<a)?(e=C.width,t=Math.round(e*f/y)):(t=C.height,e=Math.round(t*y/f)),document[i(h)]("canvas")),n=(a[i(u)]=C.width||e,a.height=C.height||t,a.getContext("2d",{willReadFrequently:!0})),s=(a[i(696)]-e)/2,r=(a.height-t)/2,n=(n.drawImage(l,s,r,e,t),a.toDataURL(C.type,C[i(795)])),r=(C[i(3357)]||(C[i(3357)]=i(3868)+a.width+"x"+a.height),C.download&&(s=C[i(_)],C[i(p)]===i(928)&&(s+=".jpg"),downloadBase64Image(s,n)),{image:n,width:a.width,height:a.height});C[i(m)]&&C.callback(r),o(r)},l.src=t):(C.filename||(C.filename="场景出图_"+y+"x"+f),C[d(v)]&&downloadBase64Image(C.filename,t),t={image:t,width:y,height:f},C.callback&&C.callback(t),o(t))})}function pick3DTileset(e,t){var i=2822,a=3277,n=_0x1658de;if(t)for(var s=0,r=(t=t instanceof Cesium__namespace[n(784)]?[t]:t)[n(i)];s<r;++s){var o=t[s],o=Cesium__namespace.SceneTransforms.wgs84ToWindowCoordinates(e,o);if(Cesium__namespace[n(a)](o)){o=e.pick(o,10,10);if(Cesium__namespace[n(3277)](o)&&Cesium__namespace.defined(o.primitive)&&o.primitive instanceof Cesium__namespace.Cesium3DTileset)return o.primitive}}return null}var SurfacePoint=function(){var i=3816,a=2664,e=2578,t=1111,s=1123,r=3277,o=2664,n=2412,l=_0x1658de;function c(e){var t=_0x236b;_classCallCheck(this,c),this.options=e,this.scene=(e[t(n)]?e.map:e).scene,this.scene||logError$1(t(3981),this[t(1592)]),this[t(3083)]=LngLatPoint.parse(e.position),this._point&&(this._position=this._point.toCartesian(),this._cartographic=this._point.toCartographic(),this._height_original=this._point.alt)}return _createClass(c,[{key:"start",value:function(){var n=this;return new Promise(function(e,t){var i,a=_0x236b;n._promise={resolve:e,reject:t},n._point?(t=null!=(t=n.options.has3dtiles)?t:Cesium__namespace[a(r)](pick3DTileset(n[a(3118)],n._position)),i=Boolean(n[a(3118)].terrainProvider._layers),n[a(o)]=t,(n._hasTerrain=i)||t?t?n.clampTo3DTileset():n.clampToTerrain():n.end(0)):e({height:0})})}},{key:"clampTo3DTileset",value:function(){var i=3428,a=_0x236b,n=this;this.scene[a(2020)]([this[a(t)].clone()],this.options[a(s)],.05).then(function(e){var t=a,e=e[0];if(Cesium__namespace.defined(e)){t=Cesium__namespace[t(i)].fromCartesian(e).height;if(Cesium__namespace.defined(t)&&-1e3<t)return void n.end(t)}n.clampToTerrain()})}},{key:"clampToTerrain",value:function(){var i=3159,a=2578,n=_0x236b,s=this;this[n(3813)]?Cesium__namespace.sampleTerrainMostDetailed(this.scene.terrainProvider,[this[n(e)]]).then(function(e){var t=n,e=e[0],e=Cesium__namespace.defined(e)&&Cesium__namespace.defined(e.height)?e[t(i)]:s.scene.globe.getHeight(s[t(a)])||0;s.end(e)}):this.end(0)}},{key:l(1797),value:function(e){var t=l;this.options.callback&&this[t(1592)][t(i)](e),this._point[t(2993)]=e,this._promise.resolve({height:e,height_original:this[t(3642)],point:this._point,position:Cesium__namespace.Cartesian3.fromRadians(this._cartographic.longitude,this._cartographic[t(2360)],e),position_original:this[t(1111)],has3dtiles:this[t(a)],hasTerrain:this[t(3813)]})}}]),c}();function getTransFun(e,t){return e&&t&&(e=crsName2FunName(e),(t=crsName2FunName(t))!==e)&&PointTrans[e+"2"+t]||!1}function crsName2FunName(e){var t=_0x1658de;switch(e){case ChinaCRS.GCJ02:return"gcj";case ChinaCRS.BAIDU:return"bd";default:ChinaCRS.WGS84;return t(3796)}}function getPositionValue(e,t){var i,a=_0x1658de;return e&&(e instanceof Cesium__namespace[a(784)]?i=e:e._value&&e._value instanceof Cesium__namespace.Cartesian3?i=e._value:"function"==typeof e.getValue&&(i=e.getValue(t||Cesium__namespace[a(984)][a(2023)]())),i)}function getMaxHeight(e){var t=2993,i=_0x1658de,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if(null==e||0===e[i(2822)])return a;for(var n=a,s=0;s<e.length;s++){var r=LngLatPoint.parse(e[s]);0===s&&(n=r.alt),r[i(t)]>n&&(n=r.alt)}return formatNum(n,LngLatPoint.FormatAltLength)}function formatNum(e){var t=_0x1658de,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,t=Math[t(2127)](10,i);return Math.round(e*t)/t}function getMinHeight(e){var t=_0x1658de,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if(null==e||0===e[t(2822)])return i;for(var a=i,n=0;n<e[t(2822)];n++){var s=Cesium__namespace.Cartographic[t(3258)](e[n]);0===n&&(a=s.height),s[t(3159)]<a&&(a=s.height)}return formatNum(a,LngLatPoint.FormatAltLength)}function addPositionsHeight(e){var t=2360,i=3428,a=3258,n=3594,s=3159,r=_0x1658de,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,o=Number(o);if(isNaN(o)||0===o)return e;if(Array.isArray(e)){for(var l=[],c=0,h=e.length;c<h;c++){var u=Cesium__namespace.Cartographic[r(3258)](e[c]),u=Cesium__namespace[r(784)].fromRadians(u.longitude,u[r(t)],u.height+o);l.push(u)}return l}return i=Cesium__namespace[r(i)][r(a)](e),Cesium__namespace.Cartesian3.fromRadians(i[r(n)],i.latitude,i[r(s)]+o)}function setPositionsHeight(e){var t=2822,i=2360,a=_0x1658de,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if(!e)return e;if(Array.isArray(e)){for(var s=[],r=0,o=e[a(t)];r<o;r++){var l=Cesium__namespace[a(3428)][a(3258)](e[r]),l=Cesium__namespace[a(784)].fromRadians(l.longitude,l.latitude,n);s.push(l)}return s}return t=Cesium__namespace[a(3428)].fromCartesian(e),Cesium__namespace.Cartesian3.fromRadians(t.longitude,t[a(i)],n)}function getHeight(e,t){var i=2893,a=3277,n=1123,s=_0x1658de,r=2<arguments[s(2822)]&&void 0!==arguments[2]?arguments[2]:{},t=LngLatPoint[s(332)](t);if(!e||!t)return 0;var o=t.toCartesian(),i=null!=(i=r[s(i)])?i:Cesium__namespace[s(a)](pick3DTileset(e,o));if(!Boolean(e.terrainProvider._layers)&&!i)return 0;o=t.toCartographic();if(i){t=e.sampleHeight(o,r[s(n)],r.width);if(Cesium__namespace[s(a)](t)&&-1e3<t)return t}i=e.globe.getHeight(o);return Cesium__namespace.defined(i)&&-1e3<i?i:0}function getSurfaceHeight(e,t){var i=2<arguments[_0x1658de(2822)]&&void 0!==arguments[2]?arguments[2]:{};return i.scene=e,i.position=t,new SurfacePoint(i).start()}function getSurfaceTerrainHeight(e,t){return new SurfacePoint({scene:e,position:t,has3dtiles:!1}).start()}function getSurfacePosition(e,t){var i=1732,a=3159,n=_0x1658de,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return t&&(0!==(e=getHeight(e=e.scene?e.scene:e,t,s))||Cesium__namespace[n(3277)](s.maxHeight)&&e<=s[n(i)]?(i=Cesium__namespace[n(3428)].fromCartesian(t),s.relativeHeight&&(e+=i[n(a)]),Cesium__namespace[n(784)].fromRadians(i.longitude,i.latitude,e)):t)}function hasPickedModel(e,t){var i=360,a=3650,n=_0x1658de;if(Cesium__namespace.defined(e.id)){var s=e.id;if(s._noMousePick)return s;if(t&&s===t)return s}if(Cesium__namespace.defined(e.primitive)){s=e.primitive;if(s[n(i)])return s;if(t&&s===t)return s}if(Cesium__namespace.defined(e[n(a)])){i=e.tileset;if(i[n(360)])return i;if(t&&i===t)return i}return null}function getCurrentMousePosition(e,t,i){var a,n,s=3686,r=4045,o=1864,l=3686,c=3159,h=336,u=3277,_=938,p=3113,m=3159,d=_0x1658de;try{a=e[d(1647)](t,5,5)}catch(e){logWarn("getCurrentMousePosition: scene.pick 拾取时异常",e)}if(e.pickPositionSupported&&!e.onlyPickTerrainPosition&&Cesium__namespace.defined(a)){var f=hasPickedModel(a,i);if(f){if(f.billboard||f.point||f[d(s)])return getPositionValue(f.position);if(f.show&&(f[d(r)]=!1,e[d(o)](),n=getCurrentMousePosition(e,t,i),f.show=!0,n))return n;if(!e.globe[d(r)])return e.pickPosition(t)}else{if(Cesium__namespace.defined(a.id)){s=a.id;if((s.billboard||s.point||s[d(l)])&&!s.model)return getPositionValue(s.position)}if(n=e.pickPosition(t),Cesium__namespace.defined(n)){o=Cesium__namespace.Cartographic.fromCartesian(n);if(0<=o[d(3159)])return n;if(!Cesium__namespace.defined(a.id)&&-5e3<=o[d(c)])return n}}}if((!Cesium__namespace.defined(Cesium__namespace.S3MTilesLayer)||(n=e[d(h)](t),!Cesium__namespace[d(u)](n)))&&((e[d(_)]||!e.onlyPickModelPosition)&&(n=e.mode===Cesium__namespace.SceneMode.SCENE3D?(i=e.camera.getPickRay(t),(n=e[d(941)].pick(i,e))||e.camera.pickEllipsoid(t,e.globe[d(p)])):e[d(2018)].pickEllipsoid(t,e[d(941)].ellipsoid),Cesium__namespace[d(u)](n))&&e.camera[d(919)].height<1e4&&Cesium__namespace.Cartographic.fromCartesian(n)[d(m)]<-5e3))return null;return n}function getCurrentMouseTerrainPosition(e,t){var i,a=_0x1658de;return e.mode===Cesium__namespace[a(2730)].SCENE3D?(i=e.camera[a(1745)](t),e.globe.pick(i,e)||e[a(2018)].pickEllipsoid(t,e[a(941)].ellipsoid)):e.camera.pickEllipsoid(t,e.globe[a(3113)])}function getMidpoint(e,t){var i=659,a=3159,n=784,s=2874,r=3594,o=_0x1658de;if(t&&e)return e=LngLatPoint.toCartographic(e),i=LngLatPoint[o(i)](t),t=(e[o(3159)]+i[o(a)])/2,a=new Cesium__namespace.EllipsoidGeodesic(e,i).interpolateUsingFraction(.5),Cesium__namespace[o(n)][o(s)](a[o(r)],a[o(2360)],t)}function isRepeatPoint(e,t){var i=_0x1658de;return!(!t||!e)&&Math.abs(e.x-t.x)<.1&&Math[i(411)](e.y-t.y)<.1&&Math[i(411)](e.z-t.z)<.1}function getRotateCenterPoint(e,t,i){var a=3428,n=1346,s=3342,r=_0x1658de,o=Cesium__namespace.Cartographic.fromCartesian(e),a=(o.height=0,Cesium__namespace[r(a)].toCartesian(o)),o=Cesium__namespace[r(784)].subtract(a,e,new Cesium__namespace.Cartesian3),o=Cesium__namespace[r(784)][r(n)](o,new Cesium__namespace.Cartesian3),a=Cesium__namespace[r(373)].fromAxisAngle(o,Cesium__namespace[r(1124)].toRadians(i)),n=Cesium__namespace.Matrix3[r(3925)](a),o=Cesium__namespace[r(s)].fromRotationTranslation(n),i=Cesium__namespace.Cartesian3.subtract(t,e,new Cesium__namespace.Cartesian3),a=Cesium__namespace[r(3342)][r(1762)](o,i,new Cesium__namespace.Cartesian3);return Cesium__namespace.Cartesian3.add(a,e,new Cesium__namespace.Cartesian3)}function getOnLinePointByLen(e,t,i,a){var n=3342,s=784,r=784,o=3342,l=1762,c=_0x1658de,h=Cesium__namespace.Transforms.eastNorthUpToFixedFrame(e),u=Cesium__namespace.Matrix4.inverse(h,new Cesium__namespace.Matrix4),n=(e=Cesium__namespace[c(n)][c(1762)](u,e,new Cesium__namespace.Cartesian3),t=Cesium__namespace[c(n)].multiplyByPoint(u,t,new Cesium__namespace[c(s)]),Cesium__namespace[c(s)].subtract(t,e,new Cesium__namespace[c(s)])),u=i/Cesium__namespace.Cartesian3.distance(e,t),s=(a&&(u+=1),Cesium__namespace.Cartesian3.multiplyByScalar(n,u,new Cesium__namespace[c(r)]));return Cesium__namespace[c(o)][c(l)](h,s,new Cesium__namespace[c(784)])}function getPositionByHprAndOffset(e,t,i,a,n){var s=2510,r=1762,o=_0x1658de,s=(e=LngLatPoint.toCartesian(e),i=i||new Cesium__namespace.HeadingPitchRoll,Cesium__namespace[o(s)].headingPitchRollQuaternion(e,i,a,n)),i=Cesium__namespace.Matrix4[o(3437)](Cesium__namespace[o(3915)].fromQuaternion(s,new Cesium__namespace.Matrix3),e,new Cesium__namespace[o(3342)]);return Cesium__namespace.Matrix4[o(r)](i,t,new Cesium__namespace.Cartesian3)}function getPositionByDirectionAndLen(e,t,i){var a=3437,n=_0x1658de,e=(e=LngLatPoint[n(3600)](e),Cesium__namespace.Transforms.eastNorthUpToFixedFrame(e)),t=Cesium__namespace.Matrix3.fromRotationZ(Cesium__namespace.Math.toRadians(360-(t||0))),a=Cesium__namespace.Matrix4[n(a)](t);return Cesium__namespace.Matrix4.multiply(e,a,e),Cesium__namespace.Matrix4.multiplyByPoint(e,new Cesium__namespace[n(784)](i,0,0),new Cesium__namespace.Cartesian3)}function getPositionByHprAndLen(e,t,i){var a=_0x1658de,t=(e=LngLatPoint.toCartesian(e),Cesium__namespace[a(2510)].headingPitchRollQuaternion(e,t)),a=Cesium__namespace[a(3342)][a(3437)](Cesium__namespace.Matrix3[a(3925)](t,new Cesium__namespace.Matrix3),e,new Cesium__namespace.Matrix4);return Cesium__namespace.Matrix4.multiplyByPoint(a,new Cesium__namespace.Cartesian3(0,0,-i),new Cesium__namespace.Cartesian3)}function getRayEarthPosition(e,t,i,a){var n=3092,s=_0x1658de;if(e&&t)return t instanceof Cesium__namespace[s(3975)]&&(t=Cesium__namespace.Transforms[s(n)](e,t)),getRayEarthPositionByMatrix(Cesium__namespace.Matrix4.fromRotationTranslation(Cesium__namespace.Matrix3.fromQuaternion(t,new Cesium__namespace.Matrix3),e,new Cesium__namespace.Matrix4),i,a)}function getRayEarthPositionByMatrix(e,t,i){var a=3342,n=784,s=_0x1658de,r=new Cesium__namespace[s(784)],o=new Cesium__namespace[s(2493)];return Cesium__namespace[s(a)].multiplyByPoint(e,Cesium__namespace[s(n)].ZERO,r),r.clone(o.origin),extend2Earth(new Cesium__namespace.Cartesian3(0,0,t?-100:100),e,o,i)}function extend2Earth(e,t,i,a){var n=3342,s=2070,r=2070,o=3499,l=2493,c=3057,h=_0x1658de,u=(a=a||Cesium__namespace.Ellipsoid.WGS84,new Cesium__namespace[h(784)]),n=(Cesium__namespace[h(n)].multiplyByPoint(t,e,u),Cesium__namespace[h(784)].subtract(u,i.origin,i.direction),Cesium__namespace.Cartesian3.normalize(i[h(s)],i[h(r)]),Cesium__namespace.IntersectionTests[h(o)](i,a)),t=null;if(t=n?Cesium__namespace[h(l)].getPoint(i,n[h(c)]):t)try{var _=new Cesium__namespace.Cartographic;Cesium__namespace.Cartographic.fromCartesian(t,null,_)}catch(e){return null}return t}function getHeadingPitchRollByOrientation(e,t,i,a){var n=_0x1658de;return Cesium__namespace.defined(t)&&Cesium__namespace[n(3277)](e)?getHeadingPitchRollByMatrix(Cesium__namespace.Matrix4.fromRotationTranslation(Cesium__namespace.Matrix3.fromQuaternion(t,new Cesium__namespace.Matrix3),e,new Cesium__namespace.Matrix4),i,a):new Cesium__namespace.HeadingPitchRoll}function getHeadingPitchRollByMatrix(e,t,i,a){return Cesium__namespace.Transforms.fixedFrameToHeadingPitchRoll(e,t,i,a)}function getHeadingPitchRollForLine(e,t,i,a){var n=784,s=3915,r=401,o=_0x1658de,n=(e=LngLatPoint.toCartesian(e),t=LngLatPoint.toCartesian(t),i=i||Cesium__namespace.Ellipsoid.WGS84,new Cesium__namespace[o(n)]),l=new Cesium__namespace[o(3342)],s=new Cesium__namespace[o(s)],t=Cesium__namespace.Cartesian3[o(1346)](Cesium__namespace.Cartesian3.subtract(t,e,n),n),n=(Cesium__namespace.Transforms[o(r)](e,t,i,s),Cesium__namespace.Matrix4.fromRotationTranslation(s,e,l));return Cesium__namespace.Matrix4[o(2394)](n,Cesium__namespace.Axis.Z_UP_TO_X_UP,n),getHeadingPitchRollByMatrix(n,i,a)}function getReflectVector(e,t){var i=_0x1658de,a=t.clone(),n=e.clone(),s=2*Cesium__namespace.Cartesian3.dot(e,t);return Cesium__namespace.Cartesian3.multiplyByScalar(t,s,a),Cesium__namespace.Cartesian3[i(3446)](e,a,n)}var PointUtil={__proto__:null,getTransFun:getTransFun,getPositionValue:getPositionValue,getMaxHeight:getMaxHeight,getMinHeight:getMinHeight,addPositionsHeight:addPositionsHeight,setPositionsHeight:setPositionsHeight,getHeight:getHeight,getSurfaceHeight:getSurfaceHeight,getSurfaceTerrainHeight:getSurfaceTerrainHeight,getSurfacePosition:getSurfacePosition,getCurrentMousePosition:getCurrentMousePosition,getCurrentMouseTerrainPosition:getCurrentMouseTerrainPosition,getMidpoint:getMidpoint,isRepeatPoint:isRepeatPoint,getRotateCenterPoint:getRotateCenterPoint,getOnLinePointByLen:getOnLinePointByLen,getPositionByHprAndOffset:getPositionByHprAndOffset,getPositionByDirectionAndLen:getPositionByDirectionAndLen,getPositionByHprAndLen:getPositionByHprAndLen,getRayEarthPosition:getRayEarthPosition,getRayEarthPositionByMatrix:getRayEarthPositionByMatrix,extend2Earth:extend2Earth,getHeadingPitchRollByOrientation:getHeadingPitchRollByOrientation,getHeadingPitchRollByMatrix:getHeadingPitchRollByMatrix,getHeadingPitchRollForLine:getHeadingPitchRollForLine,getReflectVector:getReflectVector},SurfacePoints=function(){var a=1592,n=1592,i=3118,r=3060,u=1592,_=3277,p=2874,s=3118,m=_0x1658de;function o(e){var t=_0x236b;_classCallCheck(this,o),this.options=e,this.scene=e[t(2412)]?e.map[t(s)]:e.scene,this.scene||logError$1("SurfacePoints: 请传入scene参数",this.options),this.positions=LngLatArray.toCartesians(this.options.positions)}return _createClass(o,[{key:"start",value:function(){var h=this;return new Promise(function(e,t){var i=_0x236b;if(h._promise={resolve:e,reject:t},null==h.positions||0===h.positions.length)h.end(h.positions);else{var a=null!=(e=h[i(1592)].has3dtiles)?e:Cesium__namespace[i(3277)](pick3DTileset(h[i(3118)],h[i(1980)])),t=Boolean(h.scene.terrainProvider[i(688)]);if(h._has3dtiles=a,(h._hasTerrain=t)||a)if(h[i(u)].exact)a?h.clampTo3DTileset(h.positions):h[i(982)](h.positions);else{for(var n=[],s=0,r=h.positions.length;s<r;++s){var o,l=Cesium__namespace.Cartographic.fromCartesian(h.positions[s]),c=void 0;a&&(o=h.scene.sampleHeight(l,h.options.objectsToExclude,h.options.width),Cesium__namespace.defined(o))&&-1e3<o&&(c=o),Cesium__namespace.defined(c)||(o=h.scene.globe.getHeight(l),Cesium__namespace[i(_)](o)&&-1e3<o&&(c=o)),n[i(1018)](Cesium__namespace[i(784)][i(p)](l.longitude,l[i(2360)],null!=(c=c)?c:l.height))}h[i(1797)](n)}else h[i(1797)](h.positions)}})}},{key:m(2889),value:function(i){for(var a=m,n=this,e=[],t=0,s=i.length;t<s;++t)e.push(i[t][a(r)]());this.scene.clampToHeightMostDetailed(e,this[a(1592)].objectsToExclude).then(function(e){var t=a;0<(e=n.removeNullData(e))[t(2822)]?n[t(1797)](e):n.clampToTerrain(i)})}},{key:"clampToTerrain",value:function(e){var r,t,o,l=3174,c=767,h=m,u=this;this._hasTerrain?(t=(r=this.scene.globe.ellipsoid).cartesianArrayToCartographicArray(e),o=Cesium__namespace.Cartographic.fromCartesian(e[0]).height,Cesium__namespace[h(4100)](this[h(i)].terrainProvider,t)[h(2589)](function(e){for(var t=h,i=(e=u[t(l)](e),!1),a=null!=(s=u.options[t(c)])?s:0,n=0;n<e[t(2822)];++n)null==e[n].height?(i=!0,e[n].height=o):e[n].height=a+e[n][t(3159)];var s=r.cartographicArrayToCartesianArray(e);u.end(s,i)})):this.end(e)}},{key:"end",value:function(e,t){var i=m;this[i(a)][i(3816)]&&this[i(n)].callback(e,t,this.positions),this._promise.resolve({positions:e,positions_original:this[i(1980)],noHeight:t,has3dtiles:this._has3dtiles,hasTerrain:this._hasTerrain})}},{key:"removeNullData",value:function(e){for(var t=m,i=[],a=0;a<e[t(2822)];++a)null!=e[a]&&i.push(e[a]);return i}}]),o}();function logError(e,t){var i=_0x1658de;console.error("turf."[i(2557)](e,i(731)),t)}function area(e){try{return turf.area(e)}catch(e){logError("area",e)}return 0}function bbox(e){var t=_0x1658de;try{return turf.bbox(e)}catch(e){logError(t(1967),e)}return null}function bezierSpline(e){try{return turf.bezierSpline(e)}catch(e){logError("bezierSpline",e)}return e}function booleanPointInPolygon(e,t,i){var a=_0x1658de;try{return turf.booleanPointInPolygon(e,t,i)}catch(e){logError(a(588),e)}return!1}function buffer$1(e,t,i){var a=_0x1658de;try{return turf[a(542)](e,t,i)}catch(e){logError("buffer",e)}return e}function convex$1(e,t){try{return turf.convex(e,t)}catch(e){logError("convex",e)}return e}function pointGrid(e,t,i){try{return turf.pointGrid(e,t,i)}catch(e){logError("pointGrid",e)}return{features:[]}}function centerOfMass$1(e){var t,i,a,n,s,r,o,l=2822,c=2535,h=1447,u=_0x1658de,_=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;try{return e.length<3?null:(t=e[0],i=e[e[u(l)]-1],t[0]===i[0]&&t[1]===i[1]||e.push(e[0]),a={type:"Feature",geometry:{type:"Polygon",coordinates:[e]}},s=(n=turf[u(3127)](a)).geometry.coordinates[0],r=n[u(1972)].coordinates[1],(s<(o=turf[u(1967)](a)).xmin||s>o[u(c)]||r<o.ymin||r>o.ymax)&&(s=(o[u(h)]+o.xmax)/2,r=(o.ymin+o[u(2131)])/2),[s,r,_])}catch(e){return null}}var pickTilesetPassState=new Cesium__namespace[_0x1658de(1850)]({pass:Cesium__namespace.Cesium3DTilePass.PICK}),packedDepthScale=new Cesium__namespace.Cartesian4(1,1/255,1/65025,1/16581375),scratchRectangle=new Cesium__namespace[_0x1658de(971)](0,0,3,3),scratchColorZero=new Cesium__namespace.Color(0,0,0,0),scratchRight=new Cesium__namespace.Cartesian3,scratchUp=new Cesium__namespace.Cartesian3,scratchPackedDepthArray=[];function interPolygonByDepth$1(e){var t=1980,i=941,a=2691,n=3632,s=971,r=2018,o=971,l=1707,c=718,h=718,H=1474,F=784,u=3605,N=784,G=1565,z=2412,B=2432,j=3594,V=3159,_=_0x1658de,p=e[_(3118)],t=LngLatArray[_(3483)](e[_(t)]),i=p[_(i)].depthTestAgainstTerrain;p.globe.depthTestAgainstTerrain=!0;var m=getCameraInforForPoints(t,null!=(m=e.cameraHeight)?m:p.camera[_(919)].height),d=m[_(734)],f=m[_(a)],y=m.frustumHeight,v=m.cameraUp,g=Number(null!=(a=e[_(n)])?a:512),C=f/g,x=y/g,b=new Cesium__namespace[_(1088)](p),k=b._pickOffscreenView,m=new Cesium__namespace[_(s)](0,0,g,g),e=(k[_(3169)]=m,k.passState.viewport=m,p.view=k,updateOffscreenCamera(d.origin,d.direction,v,f,y,k[_(r)]),Cesium__namespace[_(o)][_(3060)](k.viewport,scratchRectangle),k.pickFramebuffer.begin(scratchRectangle,k.viewport)),P=(p[_(l)].disableThisFrame(),p.updateFrameState(),p[_(c)].invertClassification=!1,p[_(718)].passes.pick=!0,p[_(h)][_(3257)][_(2234)]=!0,p.frameState[_(1418)]=pickTilesetPassState,p.context.uniformState.update(p.frameState),p[_(827)](),p.updateAndExecuteCommands(e,scratchColorZero),p.resolveFramebuffers(e),[]);if(p[_(3974)].depthTexture)for(var $=k.frustumCommandsList[_(2822)],w=new Cesium__namespace.Cartesian3,S=0;S<$;++S)for(var U=b.getPickDepth(p,S),T=getDepth(p.context,0,0,g,g,U),M=0;M<T.length;M++){var E,A,L,D=T[M];0<D&&D<1&&(D=(L=(A=k.frustumCommandsList[S]).near*(0!==M?p[_(H)]:1))+D*(A[_(854)]-L),A=(Math.floor(M/g)-g/2)*y/g,L=(M%g-g/2)*f/g,E=new Cesium__namespace[_(784)],Cesium__namespace[_(F)].multiplyByScalar(v,A,w),Cesium__namespace.Cartesian3[_(u)](w,k.camera[_(2532)],E),Cesium__namespace.Cartesian3.multiplyByScalar(k[_(r)].right,L,w),Cesium__namespace[_(N)][_(u)](w,E,E),(A=Cesium__namespace[_(2493)].clone(d))[_(G)]=E,L=Cesium__namespace.Ray.getPoint(A,D),P[M]||(P[M]=L))}var I=[],O=Number.MAX_VALUE,R=-Number[_(1637)],W=t[_(z)](function(e){e=Cesium__namespace.Cartographic.fromCartesian(e);return[e.longitude,e.latitude]}),n=(P[_(B)](function(e){var t=_,i=Cesium__namespace[t(3428)].fromCartesian(e);i&&pointInPolygonNested([i[t(j)],i.latitude],W)&&(i=i.height,R<i&&(R=i),i<O&&(O=i),e[t(V)]=i,e[t(781)]=function(){return getBoxOutLine(this,C,x,v)},I.push(e))}),p.globe.depthTestAgainstTerrain=i,p[_(2210)]=p.defaultView,p.context[_(3017)](),b.destroy(),C*x);return{positions:I,count:I[_(2822)],minHeight:O,maxHeight:R,box:{width:C,height:x,area:n},totalArea:n*I.length}}function interPolylineByDepth$1(e){for(var t=1980,i=477,a=941,H=3113,F=2018,N=3159,G=2822,n=2652,z=3258,B=2874,j=1346,V=1707,$=854,U=2493,W=784,J=1845,s=_0x1658de,r=e.scene,o=LngLatArray.toCartesians(e[s(t)]),t=r.globe.depthTestAgainstTerrain,q=(r.globe[s(i)]=!0,Cesium__namespace.defined(r[s(a)])?r.globe[s(H)]:r.mapProjection.ellipsoid),l=r.context,Y=l.uniformState,c=r.frameState,Z=null!=(i=e[s(2563)])?i:r[s(F)].positionCartographic[s(N)],h=new Cesium__namespace[s(1088)](r),u=h._pickOffscreenView,_=[],p=[],m=0,X=o[s(G)]-1;m<X;m++){var d=o[m],f=o[m+1],d=Cesium__namespace.Cartographic.fromCartesian(d),f=Cesium__namespace.Cartographic.fromCartesian(f),d=Cesium__namespace.Cartesian3.fromRadians(d.longitude,d.latitude),f=Cesium__namespace.Cartesian3.fromRadians(f.longitude,f.latitude),y=Cesium__namespace.Cartesian3.distance(d,f),v=100,g=(Cesium__namespace.defined(e.splitNum)&&(v=Number(e.splitNum)),(v=Cesium__namespace[s(3277)](e.minDistance)?Math.floor(y/e.minDistance):v)>Cesium__namespace[s(n)].maximumTextureSize&&(v=Cesium__namespace[s(n)].maximumTextureSize),new Cesium__namespace.Ray),C=Cesium__namespace.Cartesian3.lerp(d,f,.5,new Cesium__namespace.Cartesian3),C=Cesium__namespace.Cartographic[s(z)](C),x=q.geodeticSurfaceNormalCartographic(C,new Cesium__namespace.Cartesian3),b=(Cesium__namespace.Cartesian3[s(3641)](x,g[s(2070)]),g.origin=Cesium__namespace.Cartesian3[s(B)](C.longitude,C.latitude,Z),Cesium__namespace.Cartesian3.subtract(f,d,scratchUp)),k=(Cesium__namespace.Cartesian3[s(j)](b,b),y),x=new Cesium__namespace.BoundingRectangle(0,0,1,v),C=(u[s(3169)]=x,u.passState.viewport=x,r[s(2210)]=u,updateOffscreenCamera(g.origin,g.direction,b,.1,k,u.camera),Cesium__namespace.BoundingRectangle.clone(u.viewport,scratchRectangle),u.pickFramebuffer.begin(scratchRectangle,u.viewport)),P=(r[s(V)].disableThisFrame(),r.updateFrameState(),c.invertClassification=!1,c.passes.pick=!0,c[s(3257)].offscreen=!0,c.tilesetPassState=pickTilesetPassState,Y.update(c),r.updateEnvironment(),r[s(4043)](C,scratchColorZero),r.resolveFramebuffers(C),[]);if(r.context.depthTexture)for(var Q=u.frustumCommandsList.length,w=new Cesium__namespace[s(784)],S=0;S<Q;++S)for(var T=getDepth(l,0,0,1,v,h[s(3002)](r,S)),M=0,E=T.length;M<E;M++){var A,L,D=T[M];0<D&&D<1&&(D=(A=(L=u.frustumCommandsList[S])[s(929)]*(0!==M?r[s(1474)]:1))+D*(L[s($)]-A),1<E&&(L=(M/(T.length-1)-.5)*k,Cesium__namespace.Cartesian3.multiplyByScalar(b,L,w)),A=Cesium__namespace[s(U)].clone(g),Cesium__namespace[s(W)].add(A.origin,w,A[s(1565)]),L=Cesium__namespace[s(2493)].getPoint(A,D),P[M]||(P[M]=L))}r[s(2210)]=r[s(J)],l.endFrame();for(var I=[],O=0,K=P.length;O<K;O++){var R=P[O];Cesium__namespace.defined(R)&&I.push(R)}_=_.concat(I),p[s(1018)]({distance:y,positions:I})}return r.globe.depthTestAgainstTerrain=t,h[s(1553)](),{positions:_,list:p}}function getDepth(e,t,i,a,n,s){for(var r=2944,o=1018,l=_0x1658de,e=e.readPixels({x:t,y:i,width:a,height:n,framebuffer:s.framebuffer}),c=Cesium__namespace.Cartesian4.unpackArray(e,scratchPackedDepthArray),h=[],u=0;u<c[l(2822)];++u){var _=c[u],_=(Cesium__namespace[l(r)].divideByScalar(_,255,_),Cesium__namespace[l(2944)][l(2846)](_,packedDepthScale));h[l(o)](_)}return h}function updateOffscreenCamera(e,t,i,a,n,s){var r=378,o=1824,l=_0x1658de,c=Cesium__namespace.Cartesian3.cross(t,i,scratchRight);s.position=e,s.direction=t,s.up=i,s.right=c,s[l(r)].width=a,s[l(r)][l(4084)]=a/n,s.frustum.computeCullingVolume(s[l(2142)],s.directionWC,s[l(o)])}function getCameraInforForPoints(e,t){var i=3016,a=2036,n=1937,s=_0x1658de,e=Cesium__namespace[s(2036)].fromCartesianArray(e),r=Cesium__namespace.Rectangle.center(e),o=Cesium__namespace.Cartesian3.fromRadians(r.longitude,r[s(2360)],t),i=Cesium__namespace[s(i)].WGS84.geodeticSurfaceNormal(o),r=(Cesium__namespace[s(784)].multiplyByScalar(i,-1,i),Cesium__namespace.Cartesian3.fromRadians(r.longitude,r.latitude+e.height/2,t)),t=Cesium__namespace.Cartesian3.subtract(r,o,new Cesium__namespace.Cartesian3),r=new Cesium__namespace.Ray(o,i),o=Cesium__namespace[s(a)].southwest(e),i=Cesium__namespace.Rectangle[s(607)](e),a=Cesium__namespace.Rectangle[s(1051)](e),e=Cesium__namespace.Cartographic.toCartesian(o),o=Cesium__namespace.Cartographic.toCartesian(i),i=Cesium__namespace.Cartographic.toCartesian(a);return{ray:r,frustumWidth:Cesium__namespace[s(784)].distance(e,o),frustumHeight:Cesium__namespace.Cartesian3[s(n)](e,i),cameraUp:t}}function pointInPolygonNested(e,t){for(var i=e[0],a=e[1],n=!1,s=t.length,r=0,o=s-1;r<s;o=r++){var l=t[r][0],c=t[r][1],h=t[o][0],u=t[o][1];a<c!=a<u&&i<(h-l)*(a-c)/(u-c)+l&&(n=!n)}return n}function getBoxOutLine(e,t,i,a){var n=3605,s=784,r=3605,o=784,l=_0x1658de,c=Cesium__namespace.Cartesian3.normalize(e,new Cesium__namespace[l(784)]),c=Cesium__namespace.Cartesian3.cross(a,c,c),t=(Cesium__namespace[l(784)].multiplyByScalar(c,t/2,c),Cesium__namespace.Cartesian3.multiplyByScalar(a,i/2,new Cesium__namespace.Cartesian3)),a=Cesium__namespace.Cartesian3[l(n)](e,t,new Cesium__namespace[l(784)]),i=(Cesium__namespace[l(s)][l(r)](a,c,a),Cesium__namespace[l(s)].add(e,t,new Cesium__namespace.Cartesian3)),n=(Cesium__namespace.Cartesian3.subtract(i,c,i),Cesium__namespace.Cartesian3.subtract(e,t,new Cesium__namespace.Cartesian3)),r=(Cesium__namespace.Cartesian3.add(n,c,n),Cesium__namespace.Cartesian3[l(3446)](e,t,new Cesium__namespace.Cartesian3));return Cesium__namespace[l(o)].subtract(r,c,r),[a,n,r,i]}function centerOfMass(t,e){var i=_0x1658de;if(t&&0!==t.length){t=LngLatArray.toCartesians(t);try{if(1===t.length)return t[0];if(2===t.length)return getMidpoint(t[0],t[1]);null==e&&(e=getMaxHeight(t));var a=centerOfMass$1(LngLatArray.toArray(t),e);return a?LngLatPoint.fromArray(a)[i(3600)]():setPositionsHeight(Cesium__namespace.BoundingSphere.fromPoints(t).center,e)}catch(e){return t[Math[i(3264)](t.length/2)]}}}function buffer(e){var t,i,a,n,s,r=3950,o=3497,l=2614,c=_0x1658de,h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:8;try{(null==(t=e)||null==(i=t[c(1972)])?void 0:i.type)===c(r)&&(n=(a=e.geometry[c(o)][0])[0],s=a[a.length-1],n[0]===s[0]&&n[1]===s[1]||a.push(n)),e=buffer$1(e,h,{units:"meters",steps:u})}catch(e){logError$1(c(l),e)}return e}function bufferPoints(e){var t=_0x1658de,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:8;try{var n=LngLatArray[t(1326)](e),s=n[0],r=n[n.length-1];s[0]===r[0]&&s[1]===r[1]||n.push(n[0]);var o=buffer$1({type:"Feature",geometry:{type:"Polygon",coordinates:[n]}},i,{units:"meters",steps:a});return LngLatArray.toPoints(o.geometry.coordinates[0])}catch(e){logError$1("PolyUtil buffer:缓冲分析异常",e)}return e}function getGranularity(e){var t=2036,i=1245,a=_0x1658de,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10,t=Cesium__namespace[a(t)].fromCartesianArray(LngLatArray.toCartesians(e)),e=Math[a(i)](t.height,t[a(696)]);return e/=n}function interPolygon(g){var C=3296,x=927,b=2988,k=2898,e=_0x1658de,P=g[e(3118)],w=LngLatArray.toCartesians(g[e(1980)],!0),S=getGranularity(w,g.splitNum);return new Promise(function(m,e){var d=3428,f=3258,y=2360,v=3594;setTimeout(function(){for(var e,t,i,o={_0x415c7a:1980,_0x307654:3277,_0x41696f:1245,_0x388953:1732},l=_0x236b,a=[],n=new Cesium__namespace.PolygonGeometry.fromPositions({positions:w,vertexFormat:Cesium__namespace.PerInstanceColorAppearance[l(4078)],granularity:S}),s=new Cesium__namespace.PolygonGeometry.createGeometry(n),r=0;r<s.indices.length;r+=3)t=s[l(C)][r],i=s.indices[r+1],e=s.indices[r+2],t=new Cesium__namespace.Cartesian3(s.attributes.position.values[3*t],s.attributes.position[l(x)][3*t+1],s.attributes.position.values[3*t+2]),a.push(t),t=new Cesium__namespace.Cartesian3(s.attributes[l(2532)].values[3*i],s[l(b)].position[l(927)][3*i+1],s.attributes.position.values[3*i+2]),a.push(t),i=new Cesium__namespace.Cartesian3(s.attributes.position.values[3*e],s.attributes[l(2532)][l(x)][3*e+1],s[l(2988)].position.values[3*e+2]),a.push(i);var c=0,h=9999,u=null!=(n=g.onlyPoint)&&n;function _(e,t){var i,a,n,s=l,t=t?(delete g.callback,i=getHeight(P,e,g),n=Cesium__namespace[s(d)][s(f)](e),a=Cesium__namespace[s(784)].fromRadians(n.longitude,n.latitude,0),Cesium__namespace[s(784)].fromRadians(n.longitude,n[s(y)],i)):(i=(n=Cesium__namespace[s(3428)].fromCartesian(e)).height,a=Cesium__namespace.Cartesian3[s(2874)](n[s(v)],n[s(2360)],0),e);return c<i&&(c=i),i<h&&(h=i),{height:i,point:a,pointDM:t}}function p(e){for(var t,i,a,n=l,s=[],r=0;r<e[n(o._0x415c7a)].length;r+=3)t=_(e[n(1980)][r],e[n(814)]),i=_(e.positions[r+1],e.noHeight),a=_(e.positions[r+2],e.noHeight),u?(addPointFoyArrOnly(s,t),addPointFoyArrOnly(s,i),addPointFoyArrOnly(s,a)):s[n(1018)]({point1:t,point2:i,point3:a});Cesium__namespace[n(o._0x307654)](g.minHeight)&&(h=Math[n(1245)](g.minHeight,h),c=Math[n(o._0x41696f)](c,h)),e.granularity=S,e[n(o._0x388953)]=c,e.minHeight=h,e.list=s,g.callback&&g.callback(e),m(e)}g[l(k)]?computeSurfacePoints({scene:P,positions:a,has3dtiles:g.has3dtiles,exact:g.exact}).then(p):p({positions:a,noHeight:!0,has3dtiles:g.has3dtiles,hasTerrain:g[l(1886)]})},50)})}function addPointFoyArrOnly(e,t){for(var i=!1,a=t.point,n=0;n<e.length;n++){var s=e[n].point;if(a.x===s.x&&a.y===s.y&&a.z===s.z){i=!0;break}}i||e.push(t)}function getHeightRange(e,t,i){return interPolygon(_objectSpread2({positions:e,scene:t},i))}function getTriangleArea$1(e,t,i){var a=_0x1658de,n=Cesium__namespace.Cartesian3[a(1937)](e,t),t=Cesium__namespace.Cartesian3.distance(t,i),a=Cesium__namespace.Cartesian3[a(1937)](i,e),i=(n+t+a)/2;return Math.sqrt(i*(i-n)*(i-t)*(i-a))}function computeVolume(e){return interPolygon(e).then(function(e){return updateVolumeByMinHeight(e)})}function updateVolumeByMinHeight(e){for(var t=620,i=3159,a=_0x1658de,n=e.minHeight,s=0,r=0,o=0,l=e.list[a(2822)];o<l;o++){var c=e.list[o],h=c.point1,u=c.point2,_=c.point3,p=getTriangleArea$1(h.point,u.point,_[a(t)]),h=(s+=c.area=p,h.height),u=u[a(i)],_=_[a(3159)],p=p*((h=h<n?n:h)-n+(u=u<n?n:u)-n+(_=_<n?n:_)-n)/3;r+=c.cutVolume=p}return e.totalArea=s,e[a(1360)]=r,e}function updateVolume(e,t){var i=1994,a=741,n=2956,s=_0x1658de;if(e){var r=e[s(i)],i=e.totalVolume;if(t<=r)e.fillVolume=0,e.digVolume=i;else{for(var o=0,l=0,c=0,h=e[s(a)].length;c<h;c++){var u=e.list[c],_=(o+=u.area*(t-r),u.point1),p=u.point2,m=u[s(n)],_=_.height,p=p.height,m=m.height;_<t&&(_=t),p<t&&(p=t),m<t&&(m=t),l+=u.area*(_-t+p-t+m-t)/3}e.digVolume=l,e.fillVolume=o-(i-l)}return e}}function getEllipseOuterPositions(e){var t=2046,i=1124,a=2822,n=_0x1658de;if(!(s=e[n(2532)]))return null;var s=LngLatPoint.toCartesian(s),r=null!=(r=e[n(540)])?r:e.radius,o=null!=(o=e.semiMinorAxis)?o:e.radius;if(!r||!o)return[s,s,s];t=null!=(t=e[n(t)])?t:0,i=e.granularity||Cesium__namespace[n(i)].RADIANS_PER_DEGREE;e.count&&(i=Math.PI/(16*e[n(3143)]));for(var l=Cesium__namespace.EllipseGeometryLibrary.computeEllipsePositions({center:s,semiMajorAxis:r,semiMinorAxis:o,rotation:t,granularity:i},!0,!0).outerPositions,c=[],h=0,u=l[n(a)];h<u;h+=3){var _=new Cesium__namespace.Cartesian3(l[h],l[h+1],l[h+2]);c.push(_)}return c}function formatRectangle(e){var t=2992,i=1604,a=_0x1658de,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:LngLatPoint.FormatLength,s=formatNum$1(Cesium__namespace[a(1124)].toDegrees(e.west),n),r=formatNum$1(Cesium__namespace.Math.toDegrees(e[a(2049)]),n),t=formatNum$1(Cesium__namespace.Math.toDegrees(e[a(t)]),n),a=formatNum$1(Cesium__namespace.Math[a(i)](e.south),n);return r<s&&(i=s,s=r,r=i),t<a&&(e=a,a=t,t=e),{xmin:s,xmax:r,ymin:a,ymax:t}}function getExtentByGeoJSON(e){var t=_0x1658de,e=bbox(e);return e&&4===e[t(2822)]?{xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]}:null}function getRectangle(e,t){var i=3277,a=2036,n=2936,s=_0x1658de;if(!e)return null;for(var r=e.length-1;0<=r;r--)Cesium__namespace[s(i)](e[r])||e.splice(r,1);e=LngLatArray.toCartesians(e);a=Cesium__namespace[s(a)][s(n)](e);return t?formatRectangle(a):a}function getPositionsRectVertex(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return e=LngLatArray.toCartesians(e),getRectangleOuterPositions({rectangle:Cesium__namespace.Rectangle.fromCartesianArray(e),rotation:t,height:getMaxHeight(e)})}function getRectangleOuterPositions(e){var t,i=784,a=1231,n=784,s=648,r=4091,o=_0x1658de,l=e.rectangle,c=null!=(c=e.rotation)?c:0,h=null!=(h=e.height)?h:0;return 0===c?[Cesium__namespace.Cartesian3.fromRadians(l.west,l.south,h),Cesium__namespace.Cartesian3.fromRadians(l.east,l.south,h),Cesium__namespace.Cartesian3.fromRadians(l.east,l.north,h),Cesium__namespace[o(i)].fromRadians(l.west,l.north,h)]:(a=null!=(i=e[o(a)])?i:Cesium__namespace.Math.RADIANS_PER_DEGREE,i=new Cesium__namespace.Rectangle,t=new Cesium__namespace.Cartographic,a=(l=Cesium__namespace.RectangleGeometryLibrary.computeOptions(l,a,c,0,i,t))[o(3159)],c=l[o(696)],t=null!=(i=e[o(3113)])?i:Cesium__namespace.Ellipsoid.WGS84,e=[new Cesium__namespace.Cartesian3,new Cesium__namespace[o(n)],new Cesium__namespace[o(784)],new Cesium__namespace.Cartesian3],Cesium__namespace.RectangleGeometryLibrary.computePosition(l,t,!1,0,0,e[0]),Cesium__namespace.RectangleGeometryLibrary[o(s)](l,t,!1,0,c-1,e[1]),Cesium__namespace[o(r)].computePosition(l,t,!1,a-1,c-1,e[2]),Cesium__namespace.RectangleGeometryLibrary.computePosition(l,t,!1,a-1,0,e[3]),0!==h?setPositionsHeight(e,h):e)}function getRectPositionsByCenter(e){var t=3342,a=_0x1658de,i=LngLatPoint[a(3600)](e.center),n=e.width,s=e.height,r=null!=(r=e.rotation)?r:0,o=null!=(o=e[a(1078)])?o:.5,e=null!=(e=e.originY)?e:.5,l=new Cesium__namespace[a(t)],c=new Cesium__namespace.Quaternion,t=new Cesium__namespace[a(t)],o=[Cesium__namespace.Cartesian3.fromElements(-o,-e,0),Cesium__namespace.Cartesian3.fromElements(1-o,-e,0),Cesium__namespace.Cartesian3.fromElements(1-o,1-e,0),Cesium__namespace[a(784)].fromElements(-o,1-e,0)],e=Cesium__namespace[a(2510)].eastNorthUpToFixedFrame(i,Cesium__namespace.Ellipsoid[a(998)],l),i=Cesium__namespace.Quaternion.fromAxisAngle(Cesium__namespace[a(784)][a(3704)],r,c),l=(0,Cesium__namespace[a(3342)].fromTranslationQuaternionRotationScale)(Cesium__namespace.Cartesian3.ZERO,i,Cesium__namespace[a(784)].fromElements(n,s),t),h=Cesium__namespace.Matrix4.multiply(e,l,l),u=[];return o.forEach(function(e,t){var i=a;void 0===u[t]&&(u[t]=new Cesium__namespace[i(784)]),Cesium__namespace[i(3342)].multiplyByPoint(h,e,u[t])}),u}function isInPoly(e,t){var i=332,a=1326,n=_0x1658de;return booleanPointInPolygon({type:"Feature",geometry:{type:n(3308),coordinates:LngLatPoint[n(i)](e).toArray()}},{type:"Polygon",coordinates:[LngLatArray[n(a)](t)]})}function getBezierCurve(e,t){var i,a=1196,n=690,s=_0x1658de;return!e||e.length<3?e:(e=LngLatArray.toArray(e),t&&e[s(1018)](e[0]),i=e[e.length-1][2],a=lonlats2cartesians(bezierSpline({type:s(a),geometry:{type:s(n),coordinates:e}}).geometry.coordinates,i),t&&a.push(a[0]),a)}function interPolyline(e){for(var t=3159,i=2822,a=3428,n=_0x1658de,s=LngLatArray.toCartesians(e.positions),r=e[n(3118)],o=getGranularity(s,e[n(3632)]||(e.has3dtiles?10:100)),l=(o<=0&&(o=null),Cesium__namespace.PolylinePipeline[n(1249)]({positions:s,height:e[n(t)],minDistance:e.minDistance,granularity:o})),c=[],h=0;h<l[n(i)];h+=3){var u,_,p=Cesium__namespace.Cartesian3[n(3193)](l,h);r&&(null==(u=e.surfaceHeight)||u)&&(delete e[n(3816)],u=getHeight(r,p,e),_=Cesium__namespace[n(a)].fromCartesian(p),p=Cesium__namespace.Cartesian3.fromRadians(_[n(3594)],_.latitude,u)),c.push(p)}return c}function interLine(e){var t,i=3483,a=3277,n=3428,s=2822,r=_0x1658de,o=1<arguments[r(2822)]&&void 0!==arguments[1]?arguments[1]:{};if(!e||e[r(2822)]<2)return e;if(e=LngLatArray[r(i)](e),o.splitNum&&!Cesium__namespace[r(a)](o.minDistance)&&(t=getGranularity(e,o.splitNum))<=0&&(t=null),"auto"===o[r(1726)]){for(var l=Number[r(1637)],c=1,h=e.length;c<h;c++)l=Math.min(l,Cesium__namespace[r(784)].distance(e[c-1],e[c]));o.minDistance=l}for(var u=[e[0]],_=1,p=e.length;_<p;_++)for(var m=e[_-1],d=e[_],f=Cesium__namespace[r(1424)].generateArc({positions:[m,d],minDistance:o.minDistance,granularity:t}),y=Cesium__namespace[r(n)].fromCartesian(m).height,v=(Cesium__namespace.Cartographic.fromCartesian(d)[r(3159)]-y)/f.length,g=3,C=f[r(s)];g<C;g+=3){var x=Cesium__namespace.Cartesian3.unpack(f,g),b=Cesium__namespace.Cartographic.fromCartesian(x),k=Number((y+v*g).toFixed(1)),x=Cesium__namespace.Cartesian3.fromRadians(b.longitude,b.latitude,k);u.push(x)}return u}function computeSurfaceLine(e){for(var t=interPolyline(_objectSpread2(_objectSpread2({},e),{},{surfaceHeight:!1})),i=[],a=0,n=t.length;a<n;++a)i.push(t[a].clone());return e.positions=i,new SurfacePoints(e).start()}function computeSurfacePoints(e){var t=_0x1658de;return new SurfacePoints(e)[t(3057)]()}function computeStepSurfaceLine(c){var e,t=2207,i=_0x1658de,h=c.positions,u=[],_={};for(e in c)e!==i(1980)&&e!==i(3816)&&"end"!==e&&e!==i(t)&&(_[e]=c[e]);return new Promise(function(s,e){var i=2822,r=1980,o=3057,l=2589;setTimeout(function(){var e=_0x236b,n=0,t=h[e(i)]-1;!function i(){var a=e;t<=n?(c.callback&&c.callback(u),c.end&&c.end(u),s(u)):(_[a(r)]=interPolyline(_objectSpread2(_objectSpread2({},c),{},{positions:[h[n],h[n+1]],surfaceHeight:!1})),new SurfacePoints(_)[a(o)]()[a(l)](function(e){var t=a;c.endItem&&c[t(2207)](e.positions,e[t(814)],n),u.push(e.positions),n++,i()}))}()},50)})}function getLinkedPointList(e,t,i,a){var n=3258,s=784,r=1346,o=1868,l=784,c=2816,h=3605,u=784,_=_0x1658de,p=[],n=(e=LngLatPoint[_(3600)](e),t=LngLatPoint.toCartesian(t),Cesium__namespace.Cartographic[_(n)](e)),m=Cesium__namespace.Cartographic.fromCartesian(t),d=180*n.longitude/Math.PI,n=180*n.latitude/Math.PI,f=180*m.longitude/Math.PI,m=180*m[_(2360)]/Math.PI,y=Math[_(2921)]((d-f)*(d-f)+(n-m)*(n-m))*i,v=Cesium__namespace.Cartesian3.clone(e),g=Cesium__namespace[_(784)].clone(t),C=Cesium__namespace.Cartesian3.distance(v,Cesium__namespace.Cartesian3.ZERO),x=Cesium__namespace.Cartesian3.distance(g,Cesium__namespace.Cartesian3.ZERO);if(Cesium__namespace.Cartesian3[_(1346)](v,v),Cesium__namespace[_(s)][_(r)](g,g),0!==Cesium__namespace[_(s)].distance(v,g)){var b=Cesium__namespace.Cartesian3.angleBetween(v,g);p.push(e);for(var k=1;k<a-1;k++){var P=+k/(a-1),w=1-P,S=Math[_(1868)](w*b)/Math.sin(b),T=Math.sin(P*b)/Math[_(o)](b),S=Cesium__namespace[_(l)][_(c)](v,S,new Cesium__namespace[_(784)]),T=Cesium__namespace.Cartesian3.multiplyByScalar(g,T,new Cesium__namespace[_(l)]),S=Cesium__namespace.Cartesian3[_(h)](S,T,new Cesium__namespace.Cartesian3),T=P*Math.PI,w=C*w+x*P+Math.sin(T)*y,S=Cesium__namespace[_(u)][_(c)](S,w,S);p.push(S)}p.push(t)}return p}function getOffsetLine(e,t){for(var i=706,a=_0x1658de,n=(e=LngLatArray.toCartesians(e),[]),s=1;s<e.length;s++){var r=e[s-1],o=e[s],l=Cesium__namespace.Cartesian3.subtract(r,o,new Cesium__namespace.Cartesian3),l=Cesium__namespace.Cartesian3[a(i)](r,l,new Cesium__namespace[a(784)]),r=computedOffsetData(r,l,1e3*t),o=computedOffsetData(o,l,1e3*t);1===s&&n.push(r),n[a(1018)](o)}return n}function computedOffsetData(e,t,i){var a=2493,n=_0x1658de,e=new Cesium__namespace[n(2493)](e,t);return Cesium__namespace[n(a)].getPoint(e,i,new Cesium__namespace[n(784)])}function sliceByMaxDistance(e,t){var i=1937,a=_0x1658de,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(e.length<2)return n.point?1===e.length?e[0]:void 0:e;for(var s=(e=LngLatArray[a(3483)](e)).length-1;1<=s;s--){var r=e[s],o=e[s-1],l=Cesium__namespace.Cartesian3[a(i)](r,o);if(0===(t-=l))return n.point?r:e.slice(s);if(t<0)return r=getOnLinePointByLen(r,o,t+=l),n[a(620)]?r:[r].concat(e[a(2090)](s))}return n.point?e[e.length-1]:e}function convex(e){var t=_0x1658de;if(0<e[t(2822)]){for(var i=[],a=0;a<e.length;a++)i.push({type:"Feature",geometry:{type:"Point",coordinates:e[a]}});var n=convex$1({type:"FeatureCollection",features:i});n&&(n=null==n||null==(n=n.geometry)?void 0:n[t(3497)])&&0<n.length&&(e=n[0])}return e}function getGridPoints(e,t,i){var a=3497,n=_0x1658de,t=Cesium__namespace[n(784)].distance(Cesium__namespace.Cartesian3.fromDegrees(e[0],e[1]),Cesium__namespace.Cartesian3.fromDegrees(e[2],e[3]))/(1e3*Math.sqrt(2))/Math[n(2921)](t),e=pointGrid(e,t,{units:n(644)}),s=[];return e.features.forEach(function(e){var t=n,e=e[t(1972)][t(a)];s[t(1018)](new LngLatPoint(e[0],e[1],i))}),{points:s,radius:Math.floor(1e3*t/2)}}function interPolygonByDepth(i){return new Promise(function(t,e){setTimeout(function(){var e=interPolygonByDepth$1(i);setTimeout(function(){t(e)},10)},10)})}function interPolylineByDepth(i){return new Promise(function(t,e){setTimeout(function(){var e=interPolylineByDepth$1(i);setTimeout(function(){t(e)},10)},10)})}var PolyUtil={__proto__:null,centerOfMass:centerOfMass,buffer:buffer,bufferPoints:bufferPoints,getGranularity:getGranularity,interPolygon:interPolygon,getHeightRange:getHeightRange,computeVolume:computeVolume,updateVolumeByMinHeight:updateVolumeByMinHeight,updateVolume:updateVolume,getEllipseOuterPositions:getEllipseOuterPositions,formatRectangle:formatRectangle,getExtentByGeoJSON:getExtentByGeoJSON,getRectangle:getRectangle,getPositionsRectVertex:getPositionsRectVertex,getRectangleOuterPositions:getRectangleOuterPositions,getRectPositionsByCenter:getRectPositionsByCenter,isInPoly:isInPoly,getBezierCurve:getBezierCurve,interPolyline:interPolyline,interLine:interLine,computeSurfaceLine:computeSurfaceLine,computeSurfacePoints:computeSurfacePoints,computeStepSurfaceLine:computeStepSurfaceLine,getLinkedPointList:getLinkedPointList,getOffsetLine:getOffsetLine,sliceByMaxDistance:sliceByMaxDistance,convex:convex,getGridPoints:getGridPoints,interPolygonByDepth:interPolygonByDepth,interPolylineByDepth:interPolylineByDepth};function getDistance(e,t){var i=_0x1658de,a=e[i(2822)];if(!Cesium__namespace.defined(e)||a<2)return 0;e=LngLatArray[i(3483)](e);for(var n=0,s=1;s<a;s++)n+=Cesium__namespace[i(784)].distance(e[s-1],e[s]);return t&&(n+=Cesium__namespace[i(784)].distance(e[0],e[a-1])),n}function getSurfaceDistance(e){var t=_0x1658de;if(!Cesium__namespace.defined(e)||e.length<2)return 0;for(var i=0,a=1,n=(e=LngLatArray[t(3483)](e)).length;a<n;a++){var s=Cesium__namespace[t(3428)].fromCartesian(e[a-1]),r=Cesium__namespace.Cartographic.fromCartesian(e[a]),o=new Cesium__namespace[t(3679)],o=(o.setEndPoints(s,r),o[t(759)]);i+=Math[t(2921)](Math[t(2127)](o,2)+Math.pow(r.height-s[t(3159)],2))}return i}function getClampDistance(t,r){var o=0,l=[];return new Promise(function(i,e){setTimeout(function(){var e,s=355;computeStepSurfaceLine({scene:r.scene,positions:t,splitNum:r.splitNum,has3dtiles:r.has3dtiles,exact:null==(e=r.exact)||e,endItem:function(e,t,i){var a=_0x236b,n=getSurfaceDistance(e);t&&r[a(s)]&&(n*=r[a(355)]),o+=n,l.push(n),r[a(2207)]&&r.endItem({index:i,positions:e,distance:n,arrDistance:l,all_distance:o})},end:function(e){var t=_0x236b;r.callback&&r.callback(o),r.end&&r[t(1797)](o),i({distance:o,arrDistance:l,arrPositions:e})}})},50)})}function getArea(e){var t=_0x1658de;if(!e||!Array.isArray(e)||e.length<3)return 0;e=LngLatArray.toCartesians(e);var e=Cesium__namespace.CoplanarPolygonGeometry.createGeometry(Cesium__namespace.CoplanarPolygonGeometry.fromPositions({positions:e,vertexFormat:Cesium__namespace.VertexFormat.POSITION_ONLY})),i=0;if(e)for(var a=e[t(2988)][t(2532)].values,n=e.indices,s=0;s<n.length;s+=3)i+=getTriangleArea(Cesium__namespace.Cartesian3.unpack(a,3*n[s],new Cesium__namespace.Cartesian3),Cesium__namespace.Cartesian3.unpack(a,3*n[s+1],new Cesium__namespace.Cartesian3),Cesium__namespace.Cartesian3[t(3193)](a,3*n[s+2],new Cesium__namespace.Cartesian3));return i}function getSurfaceArea(e){var t=_0x1658de;return!e||!Array.isArray(e)||e[t(2822)]<3?0:(0<(t=LngLatArray.toArray(e)).length&&t.push(t[0]),area({type:"Feature",geometry:{type:"Polygon",coordinates:[t]}}))}function getTriangleArea(e,t,i){var a=784,n=_0x1658de,e=Cesium__namespace[n(a)].subtract(e,t,new Cesium__namespace.Cartesian3),i=Cesium__namespace.Cartesian3.subtract(i,t,new Cesium__namespace[n(784)]),t=Cesium__namespace[n(a)][n(706)](e,i,e);return.5*Cesium__namespace.Cartesian3.magnitude(t)}function getClampArea(e,l){return interPolygon(_objectSpread2({positions:e,exact:!0},l)).then(function(e){for(var t=_0x236b,i=0,a=0,n=e.list.length;a<n;a++){var s=e.list[a],r=s.point1,o=s.point2,s=s.point3;i+=getTriangleArea(r.pointDM,o.pointDM,s.pointDM)}return e.area=i,l[t(3816)]&&l.callback(i,e),e})}function getAngle(e,t,i){var a=3915,n=1539,s=1346,r=784,o=1871,l=1124,c=1604,h=_0x1658de,u=Cesium__namespace.Transforms.eastNorthUpToFixedFrame(t),u=Cesium__namespace.Matrix4.getMatrix3(u,new Cesium__namespace.Matrix3),_=Cesium__namespace.Matrix3.getColumn(u,0,new Cesium__namespace[h(784)]),a=Cesium__namespace[h(a)][h(n)](u,1,new Cesium__namespace.Cartesian3),n=Cesium__namespace[h(3915)].getColumn(u,2,new Cesium__namespace.Cartesian3),u=Cesium__namespace.Cartesian3.subtract(e,t,new Cesium__namespace.Cartesian3);if(isNaN(u.x)||isNaN(u.y)||isNaN(u.z)||u.equals(Cesium__namespace.Cartesian3.ZERO))return 0;u=Cesium__namespace.Cartesian3.cross(u,n,u),u=Cesium__namespace[h(784)].cross(n,u,u);u=Cesium__namespace.Cartesian3[h(s)](u,u),e=Cesium__namespace[h(r)].angleBetween(_,u),Cesium__namespace.Cartesian3[h(o)](a,u)>.5*Math.PI&&(e=2*Math.PI-e),t=360-Cesium__namespace[h(l)][h(c)](e)-180;return i&&(t+=90),t<0?t+=360:360<t&&(t-=360),t}function formatDistance(e){var t=528,i=1390,a=372,n=_0x1658de,s=1<arguments[n(2822)]&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return"";if(e=Number(e),isNaN(e)||0===e)return"";null!=(s=isString(s)?{unit:s}:s).unit&&"auto"!==s.unit||(e<1e3?s.unit="m":s[n(t)]="km"),s[n(1390)]=null!=(t=s.decimal)?t:2;var r="";switch(s.unit){case"km":r=(.001*e).toFixed(s.decimal)+getLangText("_公里",s.lang);break;case"wm":r=(1e-4*e).toFixed(s.decimal)+getLangText("_万米",s.lang);break;case"mile":r=(54e-5*e).toFixed(s.decimal)+getLangText(n(1225),s.lang);break;case"zhang":r=(.3*e).toFixed(s[n(i)])+getLangText("_丈",s[n(a)]);break;default:r=e.toFixed(s.decimal)+getLangText("_米",s.lang)}return r}function formatArea(e){var t=1390,i=528,a=1390,n=1897,s=_0x1658de,r=1<arguments[s(2822)]&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return"";if(e=Number(e),isNaN(e)||0===e)return"";null!=(r=isString(r)?{unit:r}:r).unit&&"auto"!==r.unit||(r.unit=e<1e6?"m":"km"),r[s(t)]=null!=(t=r.decimal)?t:2;var o="";switch(r[s(i)]){case"km":o=(e/1e6).toFixed(r[s(a)])+getLangText(s(n),r.lang);break;case"mu":o=(.0015*e).toFixed(r.decimal)+getLangText("_亩",r.lang);break;case"ha":o=(1e-4*e).toFixed(r[s(1390)])+getLangText("_公顷",r.lang);break;default:o=e[s(3366)](r.decimal)+getLangText("_平方米",r.lang)}return o}function formatVolume(e){var t,i=3711,a=372,n=3366,s=_0x1658de,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==e||(e=Number(e),isNaN(e))||0===e?"":(r.decimal=null!=(t=r.decimal)?t:2,r.lang===LangType.EN?e.toFixed(r.decimal)+getLangText(s(i),r[s(a)]):e<1e4?e[s(n)](r.decimal)+getLangText("_立方米",r.lang):(e/1e4).toFixed(r.decimal)+getLangText("_万立方米",r.lang))}var MeasureUtil={__proto__:null,getDistance:getDistance,getSurfaceDistance:getSurfaceDistance,getClampDistance:getClampDistance,getArea:getArea,getSurfaceArea:getSurfaceArea,getTriangleArea:getTriangleArea,getClampArea:getClampArea,getAngle:getAngle,formatDistance:formatDistance,formatArea:formatArea,formatVolume:formatVolume};function register$3(e,t){var i=1289,a=1488,n=_0x1658de;Cesium__namespace[n(2517)]._materialCache.getMaterial(e)&&logError$1("MaterialUtil register: ".concat(e,n(3230)),t),MaterialTypes[e]=e,Cesium__namespace.Material[e+n(3565)]=e,t[n(i)]&&(t.fabric[n(a)]=e),Cesium__namespace.Material._materialCache.addMaterial(e,t)}var OptsConverClass={};function registerOptsConver(e,t){var i=_0x1658de;OptsConverClass[e]&&logError$1(i(1471).concat(e,"类型已存在"),t),OptsConverClass[e]=t}var MaterialClass={},MaterialTypes={};function registerClass(e,t){var i=_0x1658de;MaterialTypes[e]&&logError$1("MaterialUtil registerClass: ".concat(e,i(3230)),t),MaterialClass[e]=t,MaterialTypes[e]=e}var MaterialPropertyClass={};function registerPropertyClass(e,t){var i=_0x1658de;MaterialPropertyClass[e]&&logError$1("MaterialUtil registerPropertyClass: ".concat(e,i(1880)),t),MaterialPropertyClass[e]=t}function createMaterialProperty(e,t){var i,a=_0x1658de,n=MaterialPropertyClass[e];if(n)return(i=OptsConverClass[e]||OptsConverClass.default)&&(t.materialType=e,t=i.toCesiumVal(t,{},!0)),(i=new n(t))._mars_type=e,i[a(1592)]=t,i;logWarn(a(1213),e)}function createMaterial(e,t){var i=2974,a=2517,n=_0x1658de;if(e)return(i=OptsConverClass[e]||OptsConverClass[n(i)])&&(t.materialType=e,t=i[n(1672)](t)),(i=(i=MaterialClass[e])?new i(t):Cesium__namespace[n(a)].fromType(e,t)).options=t,i._mars_type=e,i;logError$1("createMaterial:请指定gis3d.MaterialType类型")}function hasMaterial(e,t){return t?Boolean(MaterialPropertyClass[e]):Boolean(MaterialTypes[e])}function toJSON(e){var t,i=2153,a=3096,n=_0x1658de,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(e[n(i)]?t=e._mars_type:null!=e&&null!=(i=e._template)&&i.type?t=e._template.type:null!=e&&e.getType&&(t=e.getType()),!t)if(e instanceof Cesium__namespace[n(a)])t="Color";else{if(e instanceof HTMLVideoElement)return;logWarn(n(1420),e)}i=OptsConverClass[t]||OptsConverClass.default;return i&&(s[n(1940)]=t,s[n(3451)]=i.toJSON(e)),s}function toJSONByType(e,t){var i=_0x1658de,e=OptsConverClass[e]||OptsConverClass[i(2974)];return e?e.toJSON(t):t}function addTextureUniform(e){var i=1488,a=487,n=_0x1658de,s=e.context,r=e.material,o=e[n(951)],t=e.image,l=e[n(788)]||Cesium__namespace.TextureWrap.REPEAT,c=e.wrapT||Cesium__namespace.TextureWrap.REPEAT,h=e.minificationFilter||Cesium__namespace[n(2952)][n(3779)],u=e.magnificationFilter||Cesium__namespace.TextureMagnificationFilter.LINEAR,_=new Image;_.src=t,_.addEventListener("load",function(){var e=n,t=new Cesium__namespace.Texture({context:s,source:_,sampler:new Cesium__namespace.Sampler({wrapS:l,wrapT:c,minificationFilter:h,magnificationFilter:u})});t[e(i)]="sampler2D",isPowerOfTwo(_[e(696)])&&isPowerOfTwo(_.height)&&t.generateMipmap(Cesium__namespace.MipmapHint[e(a)]),r.uniforms[o]=t})}function isPowerOfTwo(e){return 0==(e&e-1)&&0!==e}var MaterialUtil={__proto__:null,register:register$3,registerOptsConver:registerOptsConver,registerClass:registerClass,registerPropertyClass:registerPropertyClass,createMaterialProperty:createMaterialProperty,createMaterial:createMaterial,hasMaterial:hasMaterial,toJSON:toJSON,toJSONByType:toJSONByType,addTextureUniform:addTextureUniform},PointType={Control:1,MoveAll:2,AddMidPoint:3,MoveHeight:4,EditAttr:5,EditRotation:6},PointColor={Control:_0x1658de(3322),MoveAll:"#8c003a",MoveHeight:"#9500eb",EditAttr:_0x1658de(2145),AddMidPoint:"rgba(4,194,201,0.3)"},defaultEditStyle={pixelSize:12,outline:!0,outlineColor:"rgba(255,255,255,0.5)",outlineWidth:2,scaleByDistance:new Cesium__namespace.NearFarScalar(1e3,1,1e6,.5),disableDepthTestDistance:Number.POSITIVE_INFINITY};function setPointStyle(e){defaultEditStyle=merge(defaultEditStyle,e)}function getEditPointStyle(e){var t=3245,i=2745,a=_0x1658de,n=_objectSpread2({},defaultEditStyle);switch(e){case PointType.AddMidPoint:n[a(2745)]=PointColor.AddMidPoint,n.outlineColor="rgba(255,255,255,0.4)";break;case PointType.MoveAll:n.color=PointColor.MoveAll;break;case PointType.MoveHeight:n.color=PointColor.MoveHeight;break;case PointType[a(t)]:n[a(i)]=PointColor.EditAttr;break;default:PointType[a(2666)];n.color=PointColor.Control}return n}var DrawUtil={__proto__:null,PointType:PointType,PointColor:PointColor,setPointStyle:setPointStyle,getEditPointStyle:getEditPointStyle},TerrainType={NONE:"none",XYZ:"xyz",ARCGIS:"arcgis",ION:"ion",GEE:"gee",VR:"vr"},GCJMercatorTilingScheme=function(e){var l=2119,c=1604,h=(_inherits(u,e),_createSuper(u));function u(e){var t,a,n=1124,s=_0x236b,i=(_classCallCheck(this,u),t=h[s(1567)](this,e),e.mapChinaCRS),e=e[s(l)],r=getTransFun(i,e),o=getTransFun(e,i);return r&&(a=new Cesium__namespace.WebMercatorProjection,t._projection.project=function(e,t){var i=s;return t=r([Cesium__namespace.Math.toDegrees(e.longitude),Cesium__namespace.Math[i(c)](e.latitude)]),t=a.project(new Cesium__namespace[i(3428)](Cesium__namespace.Math[i(2581)](t[0]),Cesium__namespace.Math[i(2581)](t[1]))),new Cesium__namespace.Cartesian2(t.x,t.y)},t._projection.unproject=function(e,t){var i=s,e=a[i(4029)](e);return t=o([Cesium__namespace[i(n)][i(1604)](e[i(3594)]),Cesium__namespace.Math.toDegrees(e.latitude)]),new Cesium__namespace.Cartographic(Cesium__namespace.Math.toRadians(t[0]),Cesium__namespace[i(1124)].toRadians(t[1]))}),t}return _createClass(u)}(Cesium__namespace[_0x1658de(2512)]),LayerClass={};function register$2(e,t){var i=_0x1658de;LayerClass[e]&&logError$1("register: ".concat(e,"类型已存在"),t),LayerType[e]=e,(LayerClass[e]=t).type=e,t[i(2385)]._type=e}function getClass$2(e){return LayerClass[e]}function create$2(e,t){var i=getClass$2(e.type);if(i)return t&&(e.templateValues=t),new i(e);logWarn("配置中的图层未处理",e)}function converOptions(e){var t,i=1546,a=1199,n=2022,s=1365,r=793,o=1759,l=1340,c=2022,h=1305,u=2119,_=2535,p=3277,m=2036,d=3727,f=3222,y=1189,v=2675,g=4024,C=1569,x=1073,b=1145,k=_0x1658de,P={};for(t in e){var w=e[t];if(null!=w)switch(t){case"crs":(w=(w+"").toUpperCase())===CRS.EPSG4326||w===k(i)||w===k(a)?(P[k(n)]=CRS.EPSG4326,P[k(s)]=new Cesium__namespace.GeographicTilingScheme({numberOfLevelZeroTilesX:e[k(r)]||2,numberOfLevelZeroTilesY:e.numberOfLevelZeroTilesY||1})):w===CRS[k(o)]||w===k(l)||"EPSG4490"===w?(P.crs=CRS.EPSG4490,P[k(1365)]=new Cesium__namespace.GeographicTilingScheme({numberOfLevelZeroTilesX:e.numberOfLevelZeroTilesX||2,numberOfLevelZeroTilesY:e.numberOfLevelZeroTilesY||1})):(P[k(c)]=CRS.EPSG3857,P.tilingScheme=new Cesium__namespace.WebMercatorTilingScheme({numberOfLevelZeroTilesX:e[k(793)]||1,numberOfLevelZeroTilesY:e[k(h)]||1}));break;case k(u):e.mapChinaCRS!==e.chinaCRS&&(P.tilingScheme=new GCJMercatorTilingScheme({mapChinaCRS:e.mapChinaCRS||ChinaCRS.WGS84,chinaCRS:e[k(2119)],numberOfLevelZeroTilesX:e.numberOfLevelZeroTilesX||1,numberOfLevelZeroTilesY:e.numberOfLevelZeroTilesY||1}));break;case"rectangle":Cesium__namespace.defined(w)&&Cesium__namespace.defined(w.xmin)&&Cesium__namespace.defined(w[k(_)])&&Cesium__namespace.defined(w.ymin)&&Cesium__namespace[k(p)](w.ymax)?P.rectangle=Cesium__namespace[k(m)].fromDegrees(w[k(1447)],w[k(d)],w.xmax,w.ymax):w instanceof Cesium__namespace.Rectangle&&(P.rectangle=w);break;case"bbox":P[k(f)]=Cesium__namespace.Rectangle.fromDegrees(w[0],w[1],w[2],w[3]);break;default:P[t]=w}}return P.crs===CRS[k(1759)]&&P[k(2675)]&&(P.url=P.url[k(y)](/\{z\}/gm,"{z4490}"),P.url=P.url.replace(/\{arc_z\}/gm,"{arc_z4490}"),P[k(v)]=P.url.replace(/\{arc_Z\}/gm,k(1806))),e.tms&&(P.url=P[k(v)].replace(/\{y\}/gm,"{reverseY}")),Cesium__namespace.defined(e[k(1073)])&&Cesium__namespace[k(3277)](e.minimumLevel)&&e.minimumTerrainLevel<e.minimumLevel&&(P[k(1073)]=e.minimumLevel),Cesium__namespace.defined(e.maximumTerrainLevel)&&Cesium__namespace[k(3277)](e.maximumLevel)&&e.maximumTerrainLevel>e.maximumLevel&&(P.maximumTerrainLevel=e[k(g)]),!Cesium__namespace[k(p)](e.minimumTerrainLevel)&&Cesium__namespace.defined(e.minimumLevel)&&0<e[k(C)]&&(P[k(x)]=e.minimumLevel),P.url&&(e[k(2350)]||e.templateValues||e[k(b)]||e[k(3094)])&&(P[k(2675)]=getUrlResource(P)),P}var ImageryProviderClass={};function registerImageryProvider(e,t){var i=_0x1658de;ImageryProviderClass[e]&&logError$1("registerImageryProvider: "[i(2557)](e,i(3230))),ImageryProviderClass[e]=t}function getProviderClass(e){return ImageryProviderClass[e]}function createImageryProvider$k(e){var t=3964,i=3964,a=_0x1658de,n=getProviderClass(e.type);if(n)return(n=new n(e)).options||(n[a(1592)]=e),Cesium__namespace.defined(e[a(t)])&&(n.invertColor=e[a(i)]),Cesium__namespace.defined(e.filterColor)&&(n.filterColor=getCesiumColor(e.filterColor)),n;logWarn("createImageryProvider:存在未识别的图层",e)}function getImageryProviderViewModels(e,t){for(var i=_0x1658de,a=[],n=-1,s=0;s<e[i(2822)];s++){var r=e[s];"group"===r[i(1488)]&&null==r.layers||(t&&(r.templateValues=t),r[i(4045)]?n=a.length:delete r.show,a.push(createProviderViewModel(r,s)))}return{imageryProviderViewModels:a,selectedIndex:n}}function createProviderViewModel(_0x4706b7,_0x4a5f38){var _0xa05ba={_0x262345:2863},_0x2adc9a=_0x1658de,_0x19bc6b=(window._temp_gis3d_createImageryProvider=createImageryProvider$k,"window._temp_gis3d_basemaps".concat(_0x4a5f38));return new Function(_0x2adc9a(2980).concat(_0x19bc6b," = function (item) {\n item = item || ").concat(JSON.stringify(getAttrVal(_0x4706b7,{onlySimpleType:!0})),';\n if (item.type === "group") {\n const arrVec = []\n for (let index = 0; index < item.layers.length; index++) {\n const item2 = item.layers[index]\n if (item.templateValues) {\n item2.templateValues = item.templateValues\n }\n const temp = window._temp_gis3d_createImageryProvider(item2)\n if (temp == null) {\n continue\n }\n arrVec.push(temp)\n }\n return arrVec\n } else {\n return window._temp_gis3d_createImageryProvider(item)\n }\n }'))(),new Cesium__namespace[_0x2adc9a(_0xa05ba._0x262345)]({name:_0x4706b7.name||"",tooltip:_0x4706b7.name||"",iconUrl:_0x4706b7[_0x2adc9a(3371)]||"",category:_0x4706b7.category||"",creationFunction:eval(_0x19bc6b),marsOptions:{layerId:_0x4706b7.id}})}var _ellipsoid=new Cesium__namespace[_0x1658de(2536)]({ellipsoid:Cesium__namespace.Ellipsoid[_0x1658de(998)]});function getNoTerrainProvider(){return _ellipsoid}var TerrainProviderClass={};function registerTerrainProvider(e,t){var i=_0x1658de;TerrainProviderClass[e]&&logError$1(i(459).concat(e,"类型已存在")),TerrainProviderClass[e]=t}function getTerrainProviderClass(e){return TerrainProviderClass[e]}function createTerrainProvider(e){var t,i=3863,a=3113,n=2645,s=_0x1658de;switch((e=e||{type:TerrainType.ION}).type=e.type||TerrainType.XYZ,e[s(3863)]=null==(i=e[s(i)])||i,e.type){case TerrainType.XYZ:case s(2165):replaceOnlineUrlDomain(e),t=Cesium__namespace.defined(Cesium__namespace.S3MTilesLayer)?new Cesium__namespace.CesiumTerrainProvider(e):new Cesium__namespace.CesiumTerrainProvider(_objectSpread2(_objectSpread2({},e),{},{url:getUrlResource(e)}));break;case TerrainType.NONE:case s(a):t=_ellipsoid;break;case TerrainType[s(473)]:t=new Cesium__namespace.CesiumTerrainProvider({url:Cesium__namespace.IonResource.fromAssetId(1),requestWaterMask:e[s(3968)],requestVertexNormals:e.requestVertexNormals});break;case TerrainType[s(904)]:case s(n):t=new Cesium__namespace[s(3926)](_objectSpread2(_objectSpread2({},e),{},{metadata:new Cesium__namespace.GoogleEarthEnterpriseMetadata(_objectSpread2(_objectSpread2({},e),{},{url:getUrlResource(e)}))}));break;case TerrainType[s(558)]:t=new Cesium__namespace.ArcGISTiledElevationTerrainProvider(_objectSpread2(_objectSpread2({},e),{},{url:getUrlResource(e)}));break;case TerrainType.VR:t=new Cesium__namespace[s(3876)](_objectSpread2(_objectSpread2({},e),{},{url:getUrlResource(e)}));break;default:var r=getTerrainProviderClass(e.type);r&&(t=new r(e))}return t}function getTerrainProviderViewModels(e){var t=2863,i=2660,a=2063,n=2863,s=1826,r=670,o=_0x1658de;return e?[new Cesium__namespace.ProviderViewModel({name:"无地形",iconUrl:Cesium__namespace.buildModuleUrl("Widgets/Images/TerrainProviders/Ellipsoid.png"),tooltip:"WGS84标准椭球,即 EPSG:4326",category:"",creationFunction:function(){return getNoTerrainProvider()}}),new Cesium__namespace[o(t)]({name:e.name||"有地形",iconUrl:Cesium__namespace.buildModuleUrl(o(2475)),tooltip:e[o(2568)]||o(i),category:"",creationFunction:function(){return createTerrainProvider(e)}})]:[new Cesium__namespace[o(t)]({name:"无地形",iconUrl:Cesium__namespace.buildModuleUrl("Widgets/Images/TerrainProviders/Ellipsoid.png"),tooltip:o(a),category:"",creationFunction:function(){return getNoTerrainProvider()}}),new Cesium__namespace[o(n)]({name:"Mar3D 中国地形",iconUrl:Cesium__namespace[o(s)]("Widgets/Images/TerrainProviders/CesiumWorldTerrain.png"),tooltip:"Mar3D提供的12.5米精度的中国地形",category:"",creationFunction:function(){return createTerrainProvider({url:o(3811)})}}),new Cesium__namespace[o(2863)]({name:"Ion 全球地形",iconUrl:Cesium__namespace[o(1826)]("Widgets/Images/TerrainProviders/CesiumWorldTerrain.png"),tooltip:"Cesium官方Ion提供的高分辨率全球地形",category:"",creationFunction:function(){return createTerrainProvider({type:o(r)})}}),new Cesium__namespace.ProviderViewModel({name:o(3731),iconUrl:Cesium__namespace.buildModuleUrl("Widgets/Images/TerrainProviders/CesiumWorldTerrain.png"),tooltip:"arcgis官方提供的高分辨率全球地形",category:"",creationFunction:function(){return createTerrainProvider({type:"arcgis",url:"https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"})}})]}var LayerUtil={__proto__:null,register:register$2,getClass:getClass$2,create:create$2,converOptions:converOptions,registerImageryProvider:registerImageryProvider,getProviderClass:getProviderClass,createImageryProvider:createImageryProvider$k,getImageryProviderViewModels:getImageryProviderViewModels,getNoTerrainProvider:getNoTerrainProvider,registerTerrainProvider:registerTerrainProvider,getTerrainProviderClass:getTerrainProviderClass,createTerrainProvider:createTerrainProvider,getTerrainProviderViewModels:getTerrainProviderViewModels},ControlClass={};function register$1(e,t){var i=_0x1658de;ControlClass[e]&&logError$1(i(1735).concat(e,"类型已存在"),t),ControlType[e]=e,(ControlClass[e]=t).type=e,t.prototype._type=e}function getClass$1(e){return ControlClass[e]}function create$1(e,t){e=getClass$1(e);if(e)return new e(t)}var ControlUtil={__proto__:null,register:register$1,getClass:getClass$1,create:create$1},EffectClass={};function register(e,t){var i=2557,a=3230,n=2385,s=_0x1658de;EffectClass[e]&&logError$1("register: "[s(i)](e,s(a)),t),EffectType[e]=e,(EffectClass[e]=t)[s(1488)]=e,t[s(n)][s(711)]=e}function getClass(e){return EffectClass[e]}function create(e,t){var i=getClass(e);if(i)return new i(t);logWarn("配置中的特效未处理",e,t)}var EffectUtil={__proto__:null,register:register,getClass:getClass,create:create},BaseOptsConver=function(){var e=3403,a=2663,n=1863,s=1863,r=443,o=_0x1658de;function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.options=e}return _createClass(t,[{key:o(2877),get:function(){return null}},{key:"includeKeys",get:function(){return[o(2745),"outlineColor","backgroundColor","strokeColor"]}},{key:"toCesiumVal",value:function(e){var t,i=o,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};for(t in this[i(2192)](e,a),e){var n=e[t];if(-1===this.includeKeys.indexOf(t)){if(!isSimpleType(n)){a[t]=n;continue}if(this.excludedKeys&&-1!==this[i(2877)][i(r)](t))continue}n=this._toOneCesiumVal(t,n,e,a);null!=n&&(a[t]=n)}return this._toCesiumValEnd(e,a),a}},{key:"_toCesiumValBefore",value:function(e,t){}},{key:o(1070),value:function(e,t){}},{key:o(e),value:function(e,t,i,a){a[e]=t}},{key:"toJSON",value:function(e){var t,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};for(t in e=getAttrVal(e),this._toJSONValBefore&&this._toJSONValBefore(i,e),e){var a=e[t];isSimpleType(a)?i[t]=a:this._toOneJson(t,e[t],i)}return this._toJSONValEnd&&this._toJSONValEnd(i,e),i}},{key:"_toOneJson",value:function(e,t,i){}},{key:"getColorByStyle",value:function(e){return getColorByStyle(e,this.options.color)}},{key:"getOutlineColorByStyle",value:function(e){var t=o,i=e[t(2663)]?isString(e[t(2663)])?Cesium__namespace[t(3096)].fromCssColorString(e[t(2663)]):e.outlineColor:this.options[t(a)];return i=i&&(Cesium__namespace.defined(e.outlineOpacity)?i=i.withAlpha(Number(e[t(1022)])):Cesium__namespace.defined(e.opacity)&&(i=i.withAlpha(Number(e.opacity))),Cesium__namespace[t(3277)](e[t(n)]))&&1!==e.globalAlpha?i.withAlpha(i.alpha*e[t(s)]):i}}],[{key:"getColorByStyle",value:function(e){return this.baseOptsConver||(this.baseOptsConver=new t),this.baseOptsConver.getColorByStyle(e)}}]),t}(),BaseMaterialConver=function(){var i=2389,s=3686,r=1102,o=4060,l=2150,c=2638,h=2745,u=1102,_=3535,p=3629,m=1863,d=2638,f=3835,y=2839,v=992,t=3686,a=2557,e=(_inherits(g,BaseOptsConver),_createSuper(g));function g(){return _classCallCheck(this,g),e.apply(this,arguments)}return _createClass(g,[{key:"excludedKeys",get:function(){var e=_0x236b;return[e(t)][e(a)](this._getExcludedStyle())}},{key:"_getExcludedStyle",value:function(){return[]}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n=_0x236b;switch(e){case n(h):case n(1658):a.color=this.getColorByStyle(i);break;case"color2":case"bgColor":case n(2663):case"evenColor":case"oddColor":case"lightColor":case"darkColor":case n(u):case"blendColor":case"gapColor":case"strokeColor":case"backgroundColor":case"asphaltColor":var s=getCesiumColor(t);Cesium__namespace.defined(i.opacity)&&1!==i.opacity&&(s=s.withAlpha(i.opacity)),Cesium__namespace.defined(i.globalAlpha)&&1!==i.globalAlpha&&(s=s[n(_)](s[n(p)]*i[n(m)])),a[e]=s;break;case"repeat_x":case"repeat_y":var s=null!=(s=i.repeat_x)?s:1,r=null!=(r=i[n(3835)])?r:1;a.repeat=new Cesium__namespace.Cartesian2(s,r);break;case"repeat":i[n(1940)]===Stripe||i.materialType===CylinderWave?a[e]=t:a[e]=new Cesium__namespace[n(d)](i.repeat_x||t,i[n(f)]||t);break;case"lineCount":case"lineThickness":case"lineOffset":case n(2480):a[e]=new Cesium__namespace.Cartesian2(t,t);break;case"orientation":a[e]=t?Cesium__namespace[n(3504)][n(y)]:Cesium__namespace.StripeOrientation[n(v)];break;default:a[e]=t}}},{key:"toJSON",value:function(e){var t,i=_0x236b,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null!=(t=e)&&t.options){var n,s=e[i(1592)];for(n in s)Cesium__namespace.defined(e[n])&&(s[n]=e[n]);e=s}return _get(_getPrototypeOf(g.prototype),"toJSON",this)[i(1567)](this,e,a)}},{key:"_toOneJson",value:function(e,t,i){var a=_0x236b;if(t instanceof Cesium__namespace.Color)i[e]=t.toCssColorString();else switch(e){case a(s):break;case"color":case"fillColor":case"outlineColor":case"evenColor":case"oddColor":case a(r):case a(1451):case"gapColor":case"strokeColor":case a(1530):case a(1920):case a(o):var n=getCesiumColor(t);n&&(i[e]=n[a(l)]());break;case"repeat":t instanceof Cesium__namespace[a(c)]?t.x!==t.y?(i[e+"_x"]=t.x,i[e+"_y"]=t.y):i[e]=t.x:i[e]=t;break;case"lineCount":case"lineThickness":case"lineOffset":case"noiseScale":i[e+"_x"]=t.x,i[e+"_y"]=t.y;break;default:console[a(3491)](a(1378),e,t)}}}],[{key:"toCesiumVal",value:function(e,t){return this.baseMaterialConver||(this.baseMaterialConver=new g),this.baseMaterialConver.toCesiumVal(e,t)}},{key:"toJSON",value:function(e,t){return this[_0x236b(i)]||(this.baseMaterialConver=new g),this.baseMaterialConver.toJSON(e,t)}}]),g}(),ColorOptsConver=(registerOptsConver(_0x1658de(2974),BaseMaterialConver),function(){var n=2822,s=1277,r=2745,t=2026,o=_0x1658de,i=(_inherits(l,BaseMaterialConver),_createSuper(l));function l(){var e=_0x236b;return _classCallCheck(this,l),i[e(t)](this,arguments)}return _createClass(l,[{key:"toCesiumVal",value:function(e){var t=_0x236b;return this[t(1656)]?this.getColorByStyle(e):{color:this[t(2783)](e)}}},{key:"toJSON",value:function(e){var t=_0x236b,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=getCesiumValue(e=null!=(a=e)&&a.color?e[t(r)]:e,Cesium__namespace.Color);return(a=a.color?a.color:a)&&(a instanceof Cesium__namespace[t(3096)]?i.color=a[t(2150)]():isString(a)&&(i[t(2745)]=a)),i}}],[{key:"toCesiumVal",value:function(e,t,i){var a=_0x236b;return e instanceof Cesium__namespace.Color?e:(this.colorOptsConver||(this.colorOptsConver=new l),this.colorOptsConver.isProperty=i,this[a(s)].toCesiumVal(e,t))}},{key:o(3458),value:function(e){var t=o,i=1<arguments[t(n)]&&void 0!==arguments[1]?arguments[1]:{},a=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return this[t(1277)]||(this.colorOptsConver=new l),this[t(1277)][t(1656)]=a,this.colorOptsConver.toJSON(e,i)}}]),l}()),ImageOptsConver=(registerOptsConver(Color$2,ColorOptsConver),registerOptsConver(PolylineArrow,ColorOptsConver),function(){var a=3458,o=2638,l=2745,c=3096,s=_0x1658de,e=(_inherits(n,BaseMaterialConver),_createSuper(n));function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"excludedKeys",get:function(){return["repeat_y"]}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n=_0x236b;switch(e){case n(2858):var s=null!=(s=i[n(2858)])?s:1,r=null!=(r=i.repeat_y)?r:1;a.repeat=new Cesium__namespace.Cartesian2(s,r);break;case"repeat":a[e]=new Cesium__namespace[n(o)](i.repeat_x||t,i.repeat_y||t);break;case n(l):break;case"opacity":Cesium__namespace[n(3277)](i[n(1863)])&&1!==i.globalAlpha?a.color=Cesium__namespace.Color.WHITE.withAlpha(i.globalAlpha*(null!=t?t:1)):null==(s=i.transparent)||s?a.color=Cesium__namespace[n(c)].WHITE[n(3535)](null!=t?t:1):a.color=Cesium__namespace[n(c)].WHITE;break;default:a[e]=t}}},{key:"_toCesiumValEnd",value:function(e,t){t.transparent=null==(t=t.transparent)||t}},{key:s(3571),value:function(e,t,i){var a,n=s;switch(e){case"repeat":i[n(2858)]=t.x,i.repeat_y=t.y;break;case"color":i.opacity=null!=(a=null==(a=getCesiumColor(t))?void 0:a.alpha)?a:1;break;default:console.log("未处理的属性",e,t)}}}],[{key:"toCesiumVal",value:function(e,t){var i=s;return this.imageOptsConver||(this.imageOptsConver=new n),this.imageOptsConver[i(1672)](e,t)}},{key:"toJSON",value:function(e,t){var i=s;return this[i(3255)]||(this.imageOptsConver=new n),this[i(3255)][i(a)](e,t)}}]),n}()),BaseStyleConver=(registerOptsConver(Image$1,ImageOptsConver),function(){var s=1336,r=3451,o=2745,l=3160,c=3506,h=1657,u=4085,_=3451,p=2502,m=1921,d=3622,f=553,y=525,v=1507,g=2502,C=553,x=3542,b=600,k=_0x1658de,e=(_inherits(t,BaseOptsConver),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"excludedKeys",get:function(){var e=_0x236b;return["type","label","outlineOpacity","outlineStyle","lineCount","lineThickness","cellAlpha","oddcolor","speed","axisY",e(1226),"color2","scaleByDistance_near",e(3070),e(3542),e(1657),"distanceDisplayCondition_far","distanceDisplayCondition_near"].concat(this._getExcludedStyle())}},{key:"_getExcludedStyle",value:function(){return[]}},{key:"_toCesiumValBefore",value:function(e,t){var i,a=_0x236b;e[a(1336)]||e[a(1940)]||(e[a(2745)]||e.randomColor||null!=(i=e[a(3451)])&&i.color?e[a(1940)]=Color$2:e.image&&(e[a(1940)]=Image$1))}},{key:"_toOneCesiumVal_Point",value:function(e,t,i,a){var n=_0x236b;switch(e){case"clampToGround":a.heightReference=t?Cesium__namespace.HeightReference.CLAMP_TO_GROUND:Cesium__namespace[n(v)].NONE;break;case"visibleDepth":t?a[n(1816)]=0:a.disableDepthTestDistance=Number.POSITIVE_INFINITY;break;case"hasShadows":t?a[n(g)]=Cesium__namespace[n(1271)][n(381)]:a.shadows=Cesium__namespace.ShadowMode.DISABLED;break;case"scaleByDistance":t?a.scaleByDistance=new Cesium__namespace.NearFarScalar(Number(Cesium__namespace.defaultValue(i[n(2966)],1e3)),Number(Cesium__namespace[n(C)](i.scaleByDistance_nearValue,1)),Number(Cesium__namespace[n(C)](i[n(x)],1e6)),Number(Cesium__namespace.defaultValue(i[n(1657)],.1))):a[n(b)]=void 0;break;case"distanceDisplayCondition":a.distanceDisplayCondition=t?new Cesium__namespace.DistanceDisplayCondition(Number(Cesium__namespace.defaultValue(i.distanceDisplayCondition_near,0)),Number(Cesium__namespace.defaultValue(i.distanceDisplayCondition_far,1e5))):void 0;break;default:a[e]=t}}},{key:k(4010),value:function(e,t,i,a){var n=k;switch(e){case"materialType":this.isEntity?a.material=createMaterialProperty(i.materialType,i[n(_)]||i):a.material=createMaterial(i.materialType,i.materialOptions||i);break;case"color":case"randomColor":a[n(2745)]=this.getColorByStyle(i);break;case"outlineColor":a.outlineColor=this.getOutlineColorByStyle(i);break;case"hasShadows":t?a[n(p)]=Cesium__namespace.ShadowMode[n(381)]:a.shadows=Cesium__namespace.ShadowMode.DISABLED;break;case"distanceDisplayCondition":t?this.isEntity?a[n(m)]=new Cesium__namespace[n(d)](Number(Cesium__namespace.defaultValue(i.distanceDisplayCondition_near,0)),Number(Cesium__namespace[n(f)](i.distanceDisplayCondition_far,1e5))):a[n(m)]=new Cesium__namespace.DistanceDisplayConditionGeometryInstanceAttribute(Number(Cesium__namespace.defaultValue(i.distanceDisplayCondition_near,0)),Number(Cesium__namespace.defaultValue(i.distanceDisplayCondition_far,1e5))):a.distanceDisplayCondition=void 0;break;default:a[e]instanceof Cesium__namespace.CallbackProperty?logWarn(n(y),e,t):a[e]=t}}},{key:"_toJSONValEnd",value:function(e,t){}},{key:"_toOneJson_Poly",value:function(e,t,i){var a=k;switch(e){case"label":case"outlineStyle":case"highlight":break;case"material":toJSON(t,i);break;case"materialOptions":i[e]=toJSONByType(i.materialType,t);break;case"color":var n=getCesiumColor(t);n&&(i[e]=n.toCssColorString());break;case"outlineColor":n=getCesiumColor(t);n&&(i[e]=n.toCssColorString());break;case"rotation":i.rotationDegree=formatNum$1(Cesium__namespace.Math.toDegrees(t),2);break;case"stRotation":i.stRotationDegree=formatNum$1(Cesium__namespace.Math[a(1604)](t),2);break;case"shadows":t===Cesium__namespace.ShadowMode.ENABLED?i.shadows=!0:i[e]=t;break;case a(1921):i.distanceDisplayCondition_near=t.near,i.distanceDisplayCondition_far=t.far;break;default:logWarn("未处理的属性",e,t)}}},{key:"_toOneJson_Point",value:function(e,t,i){var a=k;switch(e){case"label":case"outlineStyle":case"highlight":break;case a(s):toJSON(t,i);break;case a(r):i[e]=toJSONByType(i.materialType,t);break;case a(o):case a(l):case"outlineColor":case a(1530):case a(c):var n=getCesiumColor(t);n&&(i[e]=n.toCssColorString());break;case"heightReference":t===Cesium__namespace.HeightReference.CLAMP_TO_GROUND&&(i.clampToGround=!0);break;case"rotation":i.rotationDegree=formatNum$1(Cesium__namespace.Math[a(1604)](t),2);break;case"stRotation":i.stRotationDegree=formatNum$1(Cesium__namespace[a(1124)].toDegrees(t),2);break;case"disableDepthTestDistance":t===Number.POSITIVE_INFINITY?i[a(533)]=!1:i[a(1816)]=t;break;case"scaleByDistance":i.scaleByDistance=!0,i.scaleByDistance_near=t.near,i.scaleByDistance_nearValue=t.nearValue,i[a(3542)]=t[a(854)],i[a(h)]=t.farValue;break;case a(1921):i.distanceDisplayCondition=!0,i[a(u)]=t.near,i.distanceDisplayCondition_far=t.far;break;default:logWarn("未处理的属性",e,t)}}}]),t}()),BillboardStyleConver=function(){var n=4098,s=342,r=3592,o=3277,l=2347,c=3316,h=1591,t=3364,i=2595,u=_0x1658de,e=(_inherits(_,BaseStyleConver),_createSuper(_));function _(){return _classCallCheck(this,_),e.apply(this,arguments)}return _createClass(_,[{key:"_getExcludedStyle",value:function(){var e=_0x236b;return[e(2663),"backgroundColor",e(t),"font_weight",e(i),"font_family","backgroundOpacity","fill",e(1185)]}},{key:"_toCesiumValBefore",value:function(e,t){var i,a=_0x236b;t[a(1598)]=null!=(i=t.horizontalOrigin)?i:Cesium__namespace.HorizontalOrigin[a(c)],t.verticalOrigin=null!=(i=t[a(h)])?i:Cesium__namespace.HorizontalOrigin.BOTTOM}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n=_0x236b;switch(e){case"color":a.color=this.getColorByStyle(i);break;case"opacity":Cesium__namespace[n(3277)](i.globalAlpha)&&1!==i.globalAlpha?a.color=Cesium__namespace.Color.WHITE.withAlpha(i.globalAlpha*(null!=t?t:1)):a.color=Cesium__namespace.Color.WHITE.withAlpha(null!=t?t:1);break;case n(3839):a.rotation=Cesium__namespace.Math.toRadians(t);break;case"hasPixelOffset":t||(a.pixelOffset=new Cesium__namespace.Cartesian2(0,0));break;case"pixelOffsetX":case"pixelOffsetY":a.pixelOffset=new Cesium__namespace[n(2638)](i[n(4050)]||0,i.pixelOffsetY||0);break;case"pixelOffset":Cesium__namespace[n(3277)](t[0])&&Cesium__namespace[n(o)](t[1])?a[n(2347)]=new Cesium__namespace.Cartesian2(t[0],t[1]):a[n(l)]=t;break;default:this._toOneCesiumVal_Point(e,t,i,a)}}},{key:"_toOneJson",value:function(e,t,i){var a=_0x236b;"pixelOffset"===e?(i.pixelOffsetX=t.x,i[a(s)]=t.y):this[a(r)](e,t,i)}}],[{key:u(1672),value:function(e,t,i){return this.billboardStyleConver||(this.billboardStyleConver=new _),this.billboardStyleConver.isEntity=i,this.billboardStyleConver.toCesiumVal(e,t)}},{key:u(3458),value:function(e,t,i){var a=u;return this.billboardStyleConver||(this[a(n)]=new _),this.billboardStyleConver.isEntity=i,this.billboardStyleConver.toJSON(e,t)}}]),_}(),CloudStyleConver=function(){var n=1414,s=_0x1658de,e=(_inherits(i,BaseStyleConver),_createSuper(i));function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:s(2192),value:function(e,t){}},{key:s(3403),value:function(e,t,i,a){var n=s;switch(e){case"scaleX":case"scaleY":a.scale=new Cesium__namespace.Cartesian2(i.scaleX||1,i[n(3773)]||1);break;case"maximumSizeX":case"maximumSizeY":case"maximumSizeZ":a.maximumSize=new Cesium__namespace.Cartesian3(i[n(1414)]||1,i.maximumSizeY||1,i.maximumSizeZ||1);break;default:this._toOneCesiumVal_Point(e,t,i,a)}}},{key:"_toOneJson",value:function(e,t,i){var a=s;switch(e){case"scale":i.scaleX=formatNum$1(t.x,2),i.scaleY=formatNum$1(t.y,2);break;case"maximumSize":i[a(n)]=formatNum$1(t.x,2),i.maximumSizeY=formatNum$1(t.y,2),i[a(997)]=formatNum$1(t.z,2);break;default:this._toOneJson_Point(e,t,i)}}}],[{key:"toCesiumVal",value:function(e,t){return this.cloudStyleConver||(this.cloudStyleConver=new i),this.cloudStyleConver.toCesiumVal(e,t)}},{key:"toJSON",value:function(e,t){return this.cloudStyleConver||(this.cloudStyleConver=new i),this.cloudStyleConver.toJSON(e,t)}}]),i}(),BoxStyleConver=function(){var n=2927,s=_0x1658de,e=(_inherits(r,BaseStyleConver),_createSuper(r));function r(){return _classCallCheck(this,r),e.apply(this,arguments)}return _createClass(r,[{key:"_getExcludedStyle",value:function(){return["opacity","dimensions_y","dimensions_z"]}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n=_0x236b;switch(e){case"outlineColor":a.outlineColor=this.getOutlineColorByStyle(i);break;case"dimensions_x":var s=null!=(s=i.dimensions_x)?s:100,r=null!=(r=i.dimensions_y)?r:100,o=null!=(o=i.dimensions_z)?o:100;a[n(920)]=new Cesium__namespace.Cartesian3(s,r,o);break;default:this._toOneCesiumVal_Poly(e,t,i,a)}}},{key:s(3571),value:function(e,t,i){"dimensions"===e?(i.dimensions_x=t.x,i.dimensions_y=t.y,i.dimensions_z=t.z):this._toOneJson_Poly(e,t,i)}}],[{key:"toCesiumVal",value:function(e,t,i){var a=s;return this.boxStyleConver||(this.boxStyleConver=new r),this[a(n)].isEntity=i,this.boxStyleConver.toCesiumVal(e,t)}},{key:"toJSON",value:function(e,t,i){var a=s;return this.boxStyleConver||(this.boxStyleConver=new r),this.boxStyleConver[a(1749)]=i,this.boxStyleConver.toJSON(e,t)}}]),r}(),CircleStyleConver=function(){var e=2192,t=1672,n=1047,s=1749,r=2046,o=2581,l=3164,c=1124,h=3159,i=2026,u=_0x1658de,a=(_inherits(_,BaseStyleConver),_createSuper(_));function _(){var e=_0x236b;return _classCallCheck(this,_),a[e(i)](this,arguments)}return _createClass(_,[{key:u(e),value:function(e,t){var i=u;_get(_getPrototypeOf(_.prototype),"_toCesiumValBefore",this).call(this,e,t),e[i(1614)]&&(e.hasOwnProperty(i(3159))&&delete e.height,e.hasOwnProperty("extrudedHeight")&&delete e[i(4038)],e.hasOwnProperty("diffHeight"))&&delete e.diffHeight,Cesium__namespace.defined(e.height)&&(e.clampToGround=!1)}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n=u;switch(e){case"rotation":a.rotation=t,i[n(3164)]||(a[n(3164)]=a.rotation);break;case"rotationDegree":a[n(r)]=Cesium__namespace.Math[n(o)](t),i.stRotation||(a[n(l)]=a.rotation);break;case"stRotationDegree":a[n(3164)]=Cesium__namespace[n(c)].toRadians(t);break;case"height":a[n(h)]=t,i.diffHeight&&(a.extrudedHeight=Number(i.diffHeight)+Number(t));break;case"diffHeight":Cesium__namespace.defined(i[n(h)])&&(a.extrudedHeight=i.height+t);break;case"radius":this.isEntity?(a.semiMinorAxis=Number(t),a.semiMajorAxis=Number(t)):a.radius=Number(t);break;case"clampToGround":a.heightReference=t?Cesium__namespace.HeightReference.CLAMP_TO_GROUND:Cesium__namespace.HeightReference.NONE;break;default:this._toOneCesiumVal_Poly(e,t,i,a)}}},{key:"_toOneJson",value:function(e,t,i){var a=u;switch(e){case"rotation":i.rotationDegree=formatNum$1(Cesium__namespace.Math[a(1604)](t),1);break;case"stRotation":i.stRotationDegree=formatNum$1(Cesium__namespace.Math.toDegrees(t),1);break;default:this[a(1460)](e,t,i)}}}],[{key:u(t),value:function(e,t,i){var a=u;return this.circleStyleConver||(this.circleStyleConver=new _),this.circleStyleConver.isEntity=i,this.circleStyleConver[a(1672)](e,t)}},{key:"toJSON",value:function(e,t,i){var a=u;return this[a(n)]||(this.circleStyleConver=new _),this.circleStyleConver[a(s)]=i,this[a(n)].toJSON(e,t)}}]),_}(),CorridorStyleConver=function(){var n=1749,s=990,a=990,r=4038,o=3159,l=3551,c=_0x1658de,e=(_inherits(h,BaseStyleConver),_createSuper(h));function h(){return _classCallCheck(this,h),e.apply(this,arguments)}return _createClass(h,[{key:"_toCesiumValBefore",value:function(e,t){var i=_0x236b;_get(_getPrototypeOf(h[i(2385)]),"_toCesiumValBefore",this)[i(1567)](this,e,t),e.clampToGround&&(e[i(l)](i(3159))&&delete e.height,e.hasOwnProperty("extrudedHeight")&&delete e.extrudedHeight,e.hasOwnProperty("diffHeight"))&&delete e.diffHeight}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n=_0x236b;switch(e){case"outlineColor":a.outlineColor=this[n(2918)](i);break;case"height":a.height=t,i.diffHeight&&(a.extrudedHeight=Number(i.diffHeight)+Number(t));break;case"diffHeight":Cesium__namespace.defined(i.height)&&(a[n(r)]=i[n(o)]+t);break;default:this[n(4010)](e,t,i,a)}}},{key:"_toOneJson",value:function(e,t,i){this._toOneJson_Poly(e,t,i)}}],[{key:"toCesiumVal",value:function(e,t,i){return this[_0x236b(a)]||(this.corridorStyleConver=new h),this.corridorStyleConver.isEntity=i,this.corridorStyleConver.toCesiumVal(e,t)}},{key:c(3458),value:function(e,t,i){var a=c;return this[a(990)]||(this.corridorStyleConver=new h),this.corridorStyleConver[a(n)]=i,this[a(s)].toJSON(e,t)}}]),h}(),CylinderStyleConver=function(){var n=1520,s=1520,r=1520,o=1749,l=4010,c=_0x1658de,e=(_inherits(h,BaseStyleConver),_createSuper(h));function h(){return _classCallCheck(this,h),e.apply(this,arguments)}return _createClass(h,[{key:c(2192),value:function(e,t){var i=c;_get(_getPrototypeOf(h.prototype),i(2192),this)[i(1567)](this,e,t),e.topRadius||(e.topRadius=0)}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n=c;"diffHeight"===e?a.length instanceof Cesium__namespace.CallbackProperty||(a[n(2822)]=Number(t)):this[n(l)](e,t,i,a)}},{key:c(3571),value:function(e,t,i){this._toOneJson_Poly(e,t,i)}}],[{key:"toCesiumVal",value:function(e,t,i){var a=c;return this[a(1520)]||(this[a(s)]=new h),this[a(r)][a(o)]=i,this.cylinderStyleConver.toCesiumVal(e,t)}},{key:"toJSON",value:function(e,t,i){var a=c;return this.cylinderStyleConver||(this[a(n)]=new h),this[a(n)].isEntity=i,this.cylinderStyleConver.toJSON(e,t)}}]),h}(),DivGraphicStyleConver=function(){var a=3592,n=2775,s=_0x1658de,e=(_inherits(i,BaseStyleConver),_createSuper(i));function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:s(2192),value:function(e,t){}},{key:"_toOneCesiumVal",value:function(e,t,i,a){this[s(n)](e,t,i,a)}},{key:"_toOneJson",value:function(e,t,i){this[s(a)](e,t,i)}}],[{key:"toCesiumVal",value:function(e,t){return this.divGraphicStyleConver||(this.divGraphicStyleConver=new i),this.divGraphicStyleConver.toCesiumVal(e,t)}},{key:"toJSON",value:function(e,t){return this[s(3327)]||(this.divGraphicStyleConver=new i),this.divGraphicStyleConver.toJSON(e,t)}}]),i}(),EllipsoidStyleConver=function(){var n=1889,s=1889,r=1749,o=382,l=784,c=3523,h=1281,u=2126,_=1024,p=3114,e=330,a=2192,m=1567,t=(_inherits(d,BaseStyleConver),_createSuper(d));function d(){var e=_0x236b;return _classCallCheck(this,d),t[e(2026)](this,arguments)}return _createClass(d,[{key:"_toCesiumValBefore",value:function(e,t){var i=_0x236b;_get(_getPrototypeOf(d[i(2385)]),i(a),this)[i(m)](this,e,t)}},{key:"_getExcludedStyle",value:function(){return[_0x236b(e),"radii_z","innerRadii_y","innerRadii_z"]}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n,s=_0x236b;switch(e){case"radii":a[s(3584)]=new Cesium__namespace[s(l)](t,t,t);break;case s(683):a.radii=new Cesium__namespace.Cartesian3(null!=(n=i.radii_x)?n:100,null!=(n=i.radii_y)?n:100,null!=(n=i[s(c)])?n:100);break;case s(h):a.innerRadii=new Cesium__namespace.Cartesian3(t,t,t);break;case s(2126):0<i[s(u)]&&0<i.innerRadii_y&&0<i.innerRadii_z?a.innerRadii=new Cesium__namespace.Cartesian3(null!=(n=i.innerRadii_x)?n:0,null!=(n=i.innerRadii_y)?n:0,null!=(n=i.innerRadii_z)?n:0):a.innerRadii=new Cesium__namespace.Cartesian3(.001,.001,.001);break;case s(_):case"maximumClockDegree":case"minimumConeDegree":case s(p):a[e.replace("Degree","")]=Cesium__namespace.Math.toRadians(t||0);break;default:this._toOneCesiumVal_Poly(e,t,i,a)}}},{key:"_toOneJson",value:function(e,t,i){var a=_0x236b;switch(e){case"radii":i.radii_x=t.x,i.radii_y=t.y,i.radii_z=t.z;break;case"innerRadii":i[a(2126)]=t.x,i[a(2225)]=t.y,i.innerRadii_z=t.z;break;case a(o):case"maximumClock":case"minimumCone":case a(3640):i[e+"Degree"]=formatNum$1(Cesium__namespace.Math.toDegrees(t),2);break;default:this._toOneJson_Poly(e,t,i)}}}],[{key:"toCesiumVal",value:function(e,t,i){var a=_0x236b;return this.ellipsoidStyleConver||(this.ellipsoidStyleConver=new d),this.ellipsoidStyleConver[a(r)]=i,this.ellipsoidStyleConver.toCesiumVal(e,t)}},{key:"toJSON",value:function(e,t,i){var a=_0x236b;return this[a(n)]||(this[a(s)]=new d),this.ellipsoidStyleConver.isEntity=i,this.ellipsoidStyleConver.toJSON(e,t)}}]),d}(),LabelStyleConver=function(){var s=3160,r=3277,o=3096,l=3535,c=2220,h=3365,u=3365,a=2545,n=2545,_=1672,p=483,m=2783,d=3160,f=2827,y=1693,v=2347,g=3277,t=3977,i=2476,C=1675,x=870,b=1598,k=1591,P=_0x1658de,e=(_inherits(w,BaseStyleConver),_createSuper(w));function w(){return _classCallCheck(this,w),e.apply(this,arguments)}return _createClass(w,[{key:P(2192),value:function(e,t){var i,a=P;t[a(1598)]=null!=(i=t[a(b)])?i:Cesium__namespace.HorizontalOrigin.CENTER,t[a(1591)]=null!=(i=t[a(k)])?i:Cesium__namespace.HorizontalOrigin.BOTTOM}},{key:"_toCesiumValEnd",value:function(e,t){var i,a=P;Cesium__namespace.defined(e[a(C)])||(t.font="".concat(e[a(3364)]||""," ").concat(e.font_weight||""," ").concat(e[a(2595)]||18,"px ")[a(2557)](e.font_family||a(x))),Cesium__namespace.defined(e[a(2492)])||null!=(i=e[a(1877)])&&!i||(e[a(1185)]?t[a(2492)]=Cesium__namespace.LabelStyle.FILL_AND_OUTLINE:t.style=Cesium__namespace.LabelStyle.FILL)}},{key:"_getExcludedStyle",value:function(){var e=P;return[e(3364),"font_weight","font_size",e(t),e(i),"fill"]}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n=P;switch(e){case n(3045):this.attr&&(t=template(t,this[n(1740)],null==(s=i[n(p)])||s)),a.text=String(t||"").replace(/<br \/>/gm,"\n");break;case"color":a.fillColor=this[n(m)](i);break;case"outlineColor":a.outlineColor=this.getOutlineColorByStyle(i);break;case"strokeColor":case n(d):a[e]=getCesiumColor(t);break;case"background":a.background=t,a.showBackground=t;break;case"backgroundColor":var s=getCesiumColor(t,Cesium__namespace.Color[n(f)]);Cesium__namespace.defined(i.backgroundOpacity)?s=s.withAlpha(Number(i.backgroundOpacity)):Cesium__namespace.defined(i[n(2098)])&&(s=s.withAlpha(Number(i.opacity))),a.backgroundColor=s;break;case n(y):a.backgroundPadding=new Cesium__namespace.Cartesian2(1.2*t,t),a.padding=t;break;case"hasPixelOffset":t||(a[n(v)]=new Cesium__namespace.Cartesian2(0,0));break;case"pixelOffsetX":case n(342):a.pixelOffset=new Cesium__namespace.Cartesian2(i.pixelOffsetX||0,i.pixelOffsetY||0);break;case n(2347):Cesium__namespace[n(g)](t[0])&&Cesium__namespace[n(g)](t[1])?a.pixelOffset=new Cesium__namespace.Cartesian2(t[0],t[1]):a.pixelOffset=t;break;default:this._toOneCesiumVal_Point(e,t,i,a)}}},{key:"_toOneJson",value:function(e,t,i){var a=P;switch(e){case a(2347):i.pixelOffsetX=t.x,i.pixelOffsetY=t.y;break;case"disableDepthTestDistance":t===Number.POSITIVE_INFINITY?i.visibleDepth=!1:i.disableDepthTestDistance=t;break;default:this[a(3592)](e,t,i)}}}],[{key:"toCesiumVal",value:function(e,t,i){var a=P;return this.labelStyleConver||(this.labelStyleConver=new w),this[a(n)].attr=i,t=this[a(2545)][a(_)](e,t)}},{key:P(3458),value:function(e,t){var i=P;return this.labelStyleConver||(this[i(a)]=new w),this.labelStyleConver.toJSON(e,t)}},{key:"setOpacity",value:function(e,t){var i=P,a=getCesiumValue(e[i(s)],Cesium__namespace.Color),n=(a?(Cesium__namespace[i(r)](e[i(3081)])||(e._fillColor_alpha_bak=null!=(n=a.alpha)?n:1),e.fillColor=a.withAlpha(t*e._fillColor_alpha_bak)):e.fillColor=Cesium__namespace.Color.WHITE.withAlpha(t),getCesiumValue(e.outlineColor,Cesium__namespace[i(o)])),a=(n&&(Cesium__namespace.defined(e._outlineColor_alpha_bak)||(e[i(2220)]=null!=(a=n.alpha)?a:1),e[i(2663)]=n[i(l)](t*e[i(c)])),getCesiumValue(e.backgroundColor,Cesium__namespace.Color));a&&(Cesium__namespace.defined(e[i(h)])||(e._backgroundColor_alpha_bak=null!=(n=a.alpha)?n:1),e.backgroundColor=a.withAlpha(t*e[i(u)]))}}]),w}(),ModelStyleConver=function(){var s=3096,r=521,o=3644,n=2359,a=2675,l=3277,c=2098,h=2617,u=2675,_=_0x1658de,t=(_inherits(p,BaseStyleConver),_createSuper(p));function p(){var e=_0x236b;return _classCallCheck(this,p),t[e(2026)](this,arguments)}return _createClass(p,[{key:"_toCesiumValBefore",value:function(e,t){}},{key:_(891),value:function(){var e=_;return["silhouette","silhouetteColor","silhouetteAlpha",e(652),e(1877),"opacity"]}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n=_;switch(e){case n(2675):case"modelUrl":case n(1526):t=replaceOnlineUrlDomain({url:t}).url,this.isEntity?a[n(1526)]=t:a[n(u)]=t;break;case"scale":isNaN(t)||(a[e]=t);break;default:this._toOneCesiumVal_Point(e,t,i,a)}}},{key:"_toCesiumValEnd",value:function(e,t){var i,a=_;t.show=Boolean(t.uri||t.url),e.fill?t.color=getColorByStyle(e,Cesium__namespace.Color.WHITE):Cesium__namespace[a(l)](e.opacity)&&1!==e[a(c)]?t.color=Cesium__namespace[a(3096)].WHITE.withAlpha(e[a(2098)]):t.color=Cesium__namespace.Color[a(3644)],e.silhouette?(i=getCesiumColor(e[a(h)],Cesium__namespace.Color.WHITE),Cesium__namespace[a(3277)](e.silhouetteAlpha)&&(i=i.withAlpha(Number(e.silhouetteAlpha))),Cesium__namespace[a(3277)](e.globalAlpha)&&1!==e.globalAlpha&&(i=i[a(3535)](i.alpha*e.globalAlpha)),t.silhouetteColor=i,t.silhouetteSize=Number(e.silhouetteSize||1)):(t[a(h)]=void 0,t.silhouetteSize=0)}},{key:_(3571),value:function(e,t,i){"uri"===e?i[_(a)]=t:this._toOneJson_Point(e,t,i)}}],[{key:_(1672),value:function(e,t,i){var a=_;return this[a(2359)]||(this.modelStyleConver=new p),this.modelStyleConver[a(1749)]=i,this.modelStyleConver.toCesiumVal(e,t)}},{key:"toJSON",value:function(e,t,i){var a=_;return this.modelStyleConver||(this[a(n)]=new p),this.modelStyleConver.isEntity=i,this.modelStyleConver[a(3458)](e,t)}},{key:"setOpacity",value:function(e,t){var i=_,a=getCesiumValue(e.color,Cesium__namespace[i(s)]),n=(Cesium__namespace[i(3277)](e[i(r)])||(e._color_alpha_bak=null!=(n=null==a?void 0:a.alpha)?n:1),e.color=a?a.withAlpha(t*e[i(r)]):Cesium__namespace.Color[i(o)].withAlpha(t),getCesiumValue(e[i(2617)],Cesium__namespace.Color));n&&(Cesium__namespace.defined(e._silhouetteColor_alpha_bak)||(e._silhouetteColor_alpha_bak=null!=(a=n.alpha)?a:1),e.silhouetteColor=n.withAlpha(t*e[i(3090)]))}}]),p}(),PathStyleConver=function(){var n=708,s=708,r=3458,o=708,l=1672,c=_0x1658de,e=(_inherits(h,BaseStyleConver),_createSuper(h));function h(){return _classCallCheck(this,h),e.apply(this,arguments)}return _createClass(h,[{key:c(3403),value:function(e,t,i,a){this[c(4010)](e,t,i,a)}},{key:c(3571),value:function(e,t,i){this._toOneJson_Poly(e,t,i)}}],[{key:"toCesiumVal",value:function(e,t,i){var a=c;return this[a(708)]||(this[a(o)]=new h),this.pathStyleConver.isEntity=i,this.pathStyleConver[a(l)](e,t)}},{key:"toJSON",value:function(e,t,i){var a=c;return this[a(n)]||(this.pathStyleConver=new h),this.pathStyleConver.isEntity=i,this[a(s)][a(r)](e,t)}}]),h}(),PlaneStyleConver=function(){var n=3452,s=3571,r=3458,o=3452,l=784,c=2204,h=3911,u=1541,_=2457,p=920,m=784,d=3911,f=2388,a=2385,y=2192,v=_0x1658de,e=(_inherits(g,BaseStyleConver),_createSuper(g));function g(){return _classCallCheck(this,g),e.apply(this,arguments)}return _createClass(g,[{key:v(2192),value:function(e,t){var i=v;_get(_getPrototypeOf(g[i(a)]),i(y),this).call(this,e,t)}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n,s=v;switch(e){case"dimensions_x":var r=null!=(r=i.dimensions_x)?r:100,o=null!=(o=i[s(_)])?o:100;a[s(p)]=new Cesium__namespace.Cartesian2(r,o);break;case"plane_normal":switch(t){case"x":n=Cesium__namespace[s(m)].UNIT_X;break;case"y":n=Cesium__namespace.Cartesian3[s(d)];break;case"z":n=Cesium__namespace.Cartesian3.UNIT_Z;break;default:n=t}o=null!=(r=i[s(4101)])?r:0;a[s(f)]=new Cesium__namespace.Plane(n,o);break;default:this._toOneCesiumVal_Poly(e,t,i,a)}}},{key:"_toOneJson",value:function(e,t,i){var a=v;switch(e){case"dimensions":i.dimensions_x=t.x,i.dimensions_y=t.y;break;case"plane_normal":t.equals(Cesium__namespace[a(l)].UNIT_X)?i.plane_normal="x":t[a(c)](Cesium__namespace.Cartesian3[a(h)])?i[a(1796)]="y":(t.equals(Cesium__namespace[a(l)].UNIT_Z)||logWarn("plane类型未识别",t),i.plane_normal="z");break;case"plane":t.normal.equals(Cesium__namespace.Cartesian3[a(u)])?i.plane_normal="x":t.normal.equals(Cesium__namespace.Cartesian3.UNIT_Y)?i.plane_normal="y":(t.normal.equals(Cesium__namespace.Cartesian3.UNIT_Z)||logWarn("plane类型未识别",t),i.plane_normal="z"),i[a(4101)]=t.distance;break;default:this._toOneJson_Poly(e,t,i)}}}],[{key:"toCesiumVal",value:function(e,t,i){var a=v;return this.planeStyleConver||(this[a(o)]=new g),this.planeStyleConver.isEntity=i,this.planeStyleConver.toCesiumVal(e,t)}},{key:"toJSON",value:function(e,t,i){var a=v;return this.planeStyleConver||(this.planeStyleConver=new g),this.planeStyleConver.isEntity=i,this[a(3452)][a(r)](e,t)}},{key:"toOneJson",value:function(e,t,i){var a=v;return this[a(n)]||(this.planeStyleConver=new g),this.planeStyleConver[a(s)](e,t,i)}}]),g}(),PointStyleConver=function(){var n=1749,s=_0x1658de,t=(_inherits(r,BaseStyleConver),_createSuper(r));function r(){var e=_0x236b;return _classCallCheck(this,r),t[e(2026)](this,arguments)}return _createClass(r,[{key:"_toCesiumValBefore",value:function(e,t){t.pixelSize=6}},{key:"_toCesiumValEnd",value:function(e,t){!1===e.outline&&(t.outlineWidth=0)}},{key:s(3403),value:function(e,t,i,a){var n=s;switch(e){case"color":case"randomColor":a[n(2745)]=this.getColorByStyle(i);break;case"outlineColor":a.outlineColor=this[n(2918)](i);break;default:this._toOneCesiumVal_Point(e,t,i,a)}}},{key:"_toOneJson",value:function(e,t,i){this[s(3592)](e,t,i)}}],[{key:"toCesiumVal",value:function(e,t,i){var a=s;return this.pointStyleConver||(this[a(2444)]=new r),this.pointStyleConver[a(n)]=i,this.pointStyleConver.toCesiumVal(e,t)}},{key:s(3458),value:function(e,t,i){var a=s;return this.pointStyleConver||(this.pointStyleConver=new r),this.pointStyleConver.isEntity=i,this[a(2444)].toJSON(e,t)}}]),r}(),PolygonStyleConver=function(){var n=1749,s=851,r=1124,o=2918,l=872,c=1124,a=1614,h=713,u=872,_=872,p=4038,m=3159,d=_0x1658de,e=(_inherits(f,BaseStyleConver),_createSuper(f));function f(){return _classCallCheck(this,f),e.apply(this,arguments)}return _createClass(f,[{key:"_toCesiumValBefore",value:function(e,t){var i=_0x236b;_get(_getPrototypeOf(f.prototype),"_toCesiumValBefore",this).call(this,e,t),e[i(a)]?(t.arcType=Cesium__namespace[i(h)].GEODESIC,e.hasOwnProperty(i(3159))&&delete e.height,e[i(3551)](i(u))&&delete e[i(_)],e.hasOwnProperty(i(4038))&&delete e[i(p)]):Cesium__namespace[i(3277)](e[i(m)])?(e.clampToGround=!1,t.perPositionHeight=!1):(e.clampToGround=!1,t.perPositionHeight=!0)}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n=_0x236b;switch(e){case"outlineColor":a[n(2663)]=this[n(o)](i);break;case n(3159):a[e]=t,a[n(3888)]=!1;break;case n(l):Cesium__namespace.defined(i.height)&&(a.extrudedHeight=i.height+t);break;case"clampToGround":a[e]=t,a.perPositionHeight=!t&&!Cesium__namespace.defined(i.height);break;case n(3164):a.stRotation=t;break;case"stRotationDegree":a.stRotation=Cesium__namespace[n(c)].toRadians(t);break;default:this._toOneCesiumVal_Poly(e,t,i,a)}}},{key:d(3571),value:function(e,t,i){var a=d;"stRotation"===e?i.stRotationDegree=formatNum$1(Cesium__namespace[a(r)][a(1604)](t),1):this._toOneJson_Poly(e,t,i)}}],[{key:"toCesiumVal",value:function(e,t,i){var a=d;return this.polygonStyleConver||(this.polygonStyleConver=new f),this[a(s)].isEntity=i,this.polygonStyleConver.toCesiumVal(e,t)}},{key:"toJSON",value:function(e,t,i){var a=d;return this.polygonStyleConver||(this[a(851)]=new f),this[a(851)][a(n)]=i,this.polygonStyleConver.toJSON(e,t)}}]),f}(),PolylineStyleConver=function(){var n=786,s=1672,a=3956,r=1480,o=2903,l=4010,c=1614,h=3918,u=1940,_=_0x1658de,e=(_inherits(p,BaseStyleConver),_createSuper(p));function p(){return _classCallCheck(this,p),e.apply(this,arguments)}return _createClass(p,[{key:_(2192),value:function(e,t){var i=_;_get(_getPrototypeOf(p.prototype),"_toCesiumValBefore",this).call(this,e,t),e[i(c)]&&(t[i(h)]=Cesium__namespace.ArcType.GEODESIC),e[i(1940)]===Color$2&&e.outline&&e.outlineColor&&(e[i(u)]=PolylineOutline)}},{key:"_toOneCesiumVal",value:function(e,t,i,a){var n,s=_;switch(e){case"depthFail":t?(n=getCesiumColor(i.depthFailColor||i.color,Cesium__namespace[s(3096)][s(r)]),Cesium__namespace.defined(i.depthFailOpacity)&&(n=n.withAlpha(Number(i.depthFailOpacity))),this[s(1749)]?a.depthFailMaterial=n:a.depthFailColor=n,1===i.opacity&&(i.opacity=.98)):a.depthFailMaterial=void 0,a[e]=t;break;case s(o):this.isEntity||(a.loop=t),a.closure=t;break;default:this[s(l)](e,t,i,a)}}},{key:"_toOneJson",value:function(e,t,i){e===_(a)?i.closure=t:this._toOneJson_Poly(e,t,i)}}],[{key:"toCesiumVal",value:function(e,t,i){var a=_;return this.polylineStyleConver||(this.polylineStyleConver=new p),this.polylineStyleConver[a(1749)]=i,this.polylineStyleConver[a(s)](e,t)}},{key:_(3458),value:function(e,t,i){var a=_;return this.polylineStyleConver||(this[a(n)]=new p),this[a(786)].isEntity=i,this.polylineStyleConver.toJSON(e,t)}}]),p}(),PolylineVolumeStyleConver=function(){var e=3458,t=399,_=383,n=1749,s=1672,r=1201,o=1306,d=_0x1658de,i=(_inherits(l,BaseStyleConver),_createSuper(l));function l(){return _classCallCheck(this,l),i.apply(this,arguments)}return _createClass(l,[{key:"_toCesiumValEnd",value:function(e,t){var i=_0x236b,a=e.shape||e[i(r)];switch(e.radius=e.radius||10,a){case"pipeline":t.shape=l.getShapeForPipeline(e);break;case"circle":t.shape=l[i(o)](e);break;case"star":t.shape=l.getShapeForStar(e);break;default:t.shape=a}}},{key:"_toOneCesiumVal",value:function(e,t,i,a){this._toOneCesiumVal_Poly(e,t,i,a)}},{key:"_toOneJson",value:function(e,t,i){this[_0x236b(1460)](e,t,i)}}],[{key:"toCesiumVal",value:function(e,t,i){var a=_0x236b;return this.polylineVolumeStyleConver||(this[a(1251)]=new l),this.polylineVolumeStyleConver[a(n)]=i,this.polylineVolumeStyleConver[a(s)](e,t)}},{key:d(e),value:function(e,t,i){return this.polylineVolumeStyleConver||(this.polylineVolumeStyleConver=new l),this.polylineVolumeStyleConver.isEntity=i,this.polylineVolumeStyleConver.toJSON(e,t)}},{key:"getShapeForPipeline",value:function(e){for(var t,i=d,a=null!=(t=e.radius)?t:1,n=null!=(t=e.thicknes)?t:a/3,s=Math.ceil(360/(null!=(t=e.slices)?t:60)),r=null!=(t=e.startAngle)?t:0,o=null!=(t=e.endAngle)?t:r+360,l=null!=(t=e[i(986)])?t:1,c=null!=(t=e.hscale)?t:1,h=[],u=r;u<=o;u+=s){var _=Cesium__namespace.Math.toRadians(u);h.push(new Cesium__namespace.Cartesian2(a*c*Math.cos(_),a*l*Math.sin(_)))}for(var p=o;r<=p;p-=s){var m=Cesium__namespace[i(1124)].toRadians(p);h.push(new Cesium__namespace.Cartesian2((a-n)*c*Math.cos(m),(a-n)*l*Math.sin(m)))}return h}},{key:"getShapeForCircle",value:function(e){for(var t,i=d,a=null!=(s=e[i(402)])?s:1,n=Math.ceil(360/(null!=(s=e.slices)?s:60)),s=null!=(s=e[i(383)])?s:0,r=null!=(t=e.endAngle)?t:s+360,o=null!=(t=e.vscale)?t:1,l=null!=(t=e.hscale)?t:1,c=[],h=s;h<=r;h+=n){var u=Cesium__namespace.Math.toRadians(h);c.push(new Cesium__namespace.Cartesian2(a*l*Math.cos(u),a*o*Math[i(1868)](u)))}return c}},{key:d(t),value:function(e){for(var t=d,i=null!=(n=e.radius)?n:1,a=i-(null!=(n=e.thicknes)?n:i/3),n=null!=(n=e[t(2515)])?n:6,s=Cesium__namespace.Math.toRadians(null!=(e=e[t(_)])?e:0),r=Math.PI/n,o=2*n,l=new Array(o),c=0;c<o;c++){var h=c%2==0?i:a,u=s+c*r;l[c]=new Cesium__namespace.Cartesian2(Math.cos(u)*h,Math.sin(u)*h)}return l}}]),l}(),RectangleStyleConver=function(){var n=2656,s=3277,r=3159,o=3164,l=3839,c=2046,h=1124,u=881,a=1567,_=3551,p=1614,m=_0x1658de,e=(_inherits(d,BaseStyleConver),_createSuper(d));function d(){return _classCallCheck(this,d),e.apply(this,arguments)}return _createClass(d,[{key:"_toCesiumValBefore",value:function(e,t){var i=_0x236b;_get(_getPrototypeOf(d.prototype),"_toCesiumValBefore",this)[i(a)](this,e,t),e.clampToGround?(e.hasOwnProperty("height")&&delete e.height,e[i(_)]("diffHeight")&&delete e[i(872)],e.hasOwnProperty("extrudedHeight")&&delete e.extrudedHeight):(e[i(p)]=!1,t.height=0)}},{key:m(3403),value:function(e,t,i,a){var n=m;switch(e){case"height":a[n(3159)]=t,i.diffHeight&&(a[n(4038)]=Number(i.diffHeight)+Number(t));break;case"diffHeight":Cesium__namespace[n(s)](i.height)&&(a.extrudedHeight=i[n(r)]+t);break;case"rotation":a[n(2046)]=t,i[n(o)]||(a[n(3164)]=a.rotation);break;case n(l):a[n(2046)]=Cesium__namespace.Math.toRadians(t),i.stRotation||(a.stRotation=a[n(c)]);break;case"stRotation":a.stRotation=t;break;case"stRotationDegree":a.stRotation=Cesium__namespace[n(h)][n(2581)](t);break;case"clampToGround":a.heightReference=t?Cesium__namespace.HeightReference[n(u)]:Cesium__namespace.HeightReference.NONE;break;default:this._toOneCesiumVal_Poly(e,t,i,a)}}},{key:m(3571),value:function(e,t,i){this._toOneJson_Poly(e,t,i)}}],[{key:m(1672),value:function(e,t,i){var a=m;return this.rectangleStyleConver||(this[a(n)]=new d),this.rectangleStyleConver.isEntity=i,this.rectangleStyleConver.toCesiumVal(e,t)}},{key:"toJSON",value:function(e,t,i){return this.rectangleStyleConver||(this.rectangleStyleConver=new d),this.rectangleStyleConver.isEntity=i,this.rectangleStyleConver.toJSON(e,t)}}]),d}(),RectangularSensorStyleConver=function(){var e=2192,t=3458,r=3535,o=3277,l=3629,c=365,h=1863,u=3629,_=1124,a=1567,p=_0x1658de,i=(_inherits(n,BaseStyleConver),_createSuper(n));function n(){var e=_0x236b;return _classCallCheck(this,n),i[e(2026)](this,arguments)}return _createClass(n,[{key:p(e),value:function(e,t){var i=p;_get(_getPrototypeOf(n.prototype),"_toCesiumValBefore",this)[i(a)](this,e,t)}},{key:"_getExcludedStyle",value:function(){return["lineOpacity",p(3054)]}},{key:p(3403),value:function(e,t,i,a){var n=p;switch(e){case"lineColor":var s=Cesium__namespace.Color.fromCssColorString(t||"#ffffff");Cesium__namespace.defined(i.lineOpacity)?s=s[n(r)](Number(i.lineOpacity)):Cesium__namespace[n(o)](i[n(2098)])&&(s=s[n(3535)](Number(i[n(2098)]))),Cesium__namespace.defined(i.globalAlpha)&&1!==i.globalAlpha&&(s=s[n(3535)](s[n(l)]*i.globalAlpha)),a[n(c)]=s;break;case"scanPlaneColor":s=Cesium__namespace.Color[n(1114)](t||"#ffffff");Cesium__namespace.defined(i.scanPlaneOpacity)?s=s[n(r)](Number(i[n(3054)])):Cesium__namespace[n(o)](i[n(2098)])&&(s=s.withAlpha(Number(i.opacity))),Cesium__namespace[n(3277)](i[n(h)])&&1!==i.globalAlpha&&(s=s.withAlpha(s[n(u)]*i.globalAlpha)),a.scanPlaneColor=s;break;case"xHalfAngleDegree":a.xHalfAngle=Cesium__namespace[n(_)].toRadians(t);break;case"yHalfAngleDegree":a.yHalfAngle=Cesium__namespace.Math.toRadians(t);break;case"depthTest":a.showThroughEllipsoid=!t;break;default:this._toOneCesiumVal_Poly(e,t,i,a)}}},{key:"_toOneJson",value:function(e,t,i){this._toOneJson_Poly(e,t,i)}}],[{key:"toCesiumVal",value:function(e,t){var i=p;return this.rectangularSensorStyleConver||(this[i(1416)]=new n),this[i(1416)].isEntity=!0,this.rectangularSensorStyleConver.toCesiumVal(e,t)}},{key:p(t),value:function(e,t){var i=p;return this.rectangularSensorStyleConver||(this.rectangularSensorStyleConver=new n),this.rectangularSensorStyleConver[i(1749)]=!0,this.rectangularSensorStyleConver.toJSON(e,t)}}]),n}(),WallStyleConver=function(){var n=3458,s=2987,r=_0x1658de,e=(_inherits(o,BaseStyleConver),_createSuper(o));function o(){return _classCallCheck(this,o),e.apply(this,arguments)}return _createClass(o,[{key:"_toOneCesiumVal",value:function(e,t,i,a){this._toOneCesiumVal_Poly(e,t,i,a)}},{key:r(3571),value:function(e,t,i){this._toOneJson_Poly(e,t,i)}}],[{key:"toCesiumVal",value:function(e,t,i){var a=r;return this.wallStyleConver||(this[a(s)]=new o),this.wallStyleConver.isEntity=i,this.wallStyleConver.toCesiumVal(e,t)}},{key:"toJSON",value:function(e,t,i){var a=r;return this.wallStyleConver||(this.wallStyleConver=new o),this.wallStyleConver.isEntity=i,this.wallStyleConver[a(n)](e,t)}}]),o}(),czm_cellular="\n// Permutation polynomial: (34x^2 + x) mod 289\nvec3 _czm_permute289(vec3 x) {\n return mod((34.0 * x + 1.0) * x, 289.0);\n}\n\nvec2 czm_cellular(vec2 P) {\n #define K 0.142857142857 // 1/7\n #define Ko 0.428571428571 // 3/7\n #define jitter 1.0 // Less gives more regular pattern\n vec2 Pi = mod(floor(P), 289.0);\n vec2 Pf = fract(P);\n vec3 oi = vec3(-1.0, 0.0, 1.0);\n vec3 of = vec3(-0.5, 0.5, 1.5);\n vec3 px = _czm_permute289(Pi.x + oi);\n vec3 p = _czm_permute289(px.x + Pi.y + oi); // p11, p12, p13\n vec3 ox = fract(p * K) - Ko;\n vec3 oy = mod(floor(p * K), 7.0) * K - Ko;\n vec3 dx = Pf.x + 0.5 + jitter * ox;\n vec3 dy = Pf.y - of + jitter * oy;\n vec3 d1 = dx * dx + dy * dy; // d11, d12 and d13, squared\n p = _czm_permute289(px.y + Pi.y + oi); // p21, p22, p23\n ox = fract(p * K) - Ko;\n oy = mod(floor(p * K), 7.0) * K - Ko;\n dx = Pf.x - 0.5 + jitter * ox;\n dy = Pf.y - of + jitter * oy;\n vec3 d2 = dx * dx + dy * dy; // d21, d22 and d23, squared\n p = _czm_permute289(px.z + Pi.y + oi); // p31, p32, p33\n ox = fract(p * K) - Ko;\n oy = mod(floor(p * K), 7.0) * K - Ko;\n dx = Pf.x - 1.5 + jitter * ox;\n dy = Pf.y - of + jitter * oy;\n vec3 d3 = dx * dx + dy * dy; // d31, d32 and d33, squared\n // Sort out the two smallest distances (F1, F2)\n vec3 d1a = min(d1, d2);\n d2 = max(d1, d2); // Swap to keep candidates for F2\n d2 = min(d2, d3); // neither F1 nor F2 are now in d3\n d1 = min(d1a, d2); // F1 is now in d1\n d2 = max(d1a, d2); // Swap to keep candidates for F2\n d1.xy = (d1.x < d1.y) ? d1.xy : d1.yx; // Swap if smaller\n d1.xz = (d1.x < d1.z) ? d1.xz : d1.zx; // F1 is in d1.x\n d1.yz = min(d1.yz, d2.yz); // F2 is now not in d2.yz\n d1.y = min(d1.y, d1.z); // nor in d1.z\n d1.y = min(d1.y, d2.x); // F2 is in d1.y, we're done.\n return sqrt(d1.xy);\n}\n",czm_snoise='/**\n * @license\n * Description : Array and textureless GLSL 2D/3D/4D simplex\n * noise functions.\n * Author : Ian McEwan, Ashima Arts.\n * Maintainer : ijm\n * Lastmod : 20110822 (ijm)\n * License : Copyright (C) 2011 Ashima Arts. All rights reserved.\n * Distributed under the MIT License. See LICENSE file.\n * https://github.com/ashima/webgl-noise\n */\n\nvec4 _czm_mod289(vec4 x) {\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\n\nvec3 _czm_mod289(vec3 x) {\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\n\nvec2 _czm_mod289(vec2 x) {\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\n\nfloat _czm_mod289(float x) {\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\n\nvec4 _czm_permute(vec4 x) {\n return _czm_mod289(((x * 34.0) + 1.0) * x);\n}\n\nvec3 _czm_permute(vec3 x) {\n return _czm_mod289(((x * 34.0) + 1.0) * x);\n}\n\nfloat _czm_permute(float x) {\n return _czm_mod289(((x * 34.0) + 1.0) * x);\n}\n\nvec4 _czm_taylorInvSqrt(vec4 r) {\n return 1.79284291400159 - 0.85373472095314 * r;\n}\n\nfloat _czm_taylorInvSqrt(float r) {\n return 1.79284291400159 - 0.85373472095314 * r;\n}\n\nvec4 _czm_grad4(float j, vec4 ip) {\n const vec4 ones = vec4(1.0, 1.0, 1.0, -1.0);\n vec4 p, s;\n\n p.xyz = floor(fract(vec3(j) * ip.xyz) * 7.0) * ip.z - 1.0;\n p.w = 1.5 - dot(abs(p.xyz), ones.xyz);\n s = vec4(lessThan(p, vec4(0.0)));\n p.xyz = p.xyz + (s.xyz * 2.0 - 1.0) * s.www;\n\n return p;\n}\n\n/**\n * DOC_TBA\n *\n * Implemented by Ian McEwan, Ashima Arts, and distributed under the MIT License. {@link https://github.com/ashima/webgl-noise}\n *\n * @name czm_snoise\n * @glslFunction\n *\n * @see <a href="https://github.com/ashima/webgl-noise">https://github.com/ashima/webgl-noise</a>\n * @see Stefan Gustavson\'s paper <a href="http://www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf">Simplex noise demystified</a>\n */\nfloat czm_snoise(vec2 v) {\n const vec4 C = vec4(0.211324865405187, // (3.0-sqrt(3.0))/6.0\n 0.366025403784439, // 0.5*(sqrt(3.0)-1.0)\n -0.577350269189626, // -1.0 + 2.0 * C.x\n 0.024390243902439); // 1.0 / 41.0\n // First corner\n vec2 i = floor(v + dot(v, C.yy));\n vec2 x0 = v - i + dot(i, C.xx);\n\n // Other corners\n vec2 i1;\n //i1.x = step( x0.y, x0.x ); // x0.x > x0.y ? 1.0 : 0.0\n //i1.y = 1.0 - i1.x;\n i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\n // x0 = x0 - 0.0 + 0.0 * C.xx ;\n // x1 = x0 - i1 + 1.0 * C.xx ;\n // x2 = x0 - 1.0 + 2.0 * C.xx ;\n vec4 x12 = x0.xyxy + C.xxzz;\n x12.xy -= i1;\n\n // Permutations\n i = _czm_mod289(i); // Avoid truncation effects in permutation\n vec3 p = _czm_permute(_czm_permute(i.y + vec3(0.0, i1.y, 1.0)) + i.x + vec3(0.0, i1.x, 1.0));\n\n vec3 m = max(0.5 - vec3(dot(x0, x0), dot(x12.xy, x12.xy), dot(x12.zw, x12.zw)), 0.0);\n m = m * m;\n m = m * m;\n\n // Gradients: 41 points uniformly over a line, mapped onto a diamond.\n // The ring size 17*17 = 289 is close to a multiple of 41 (41*7 = 287)\n vec3 x = 2.0 * fract(p * C.www) - 1.0;\n vec3 h = abs(x) - 0.5;\n vec3 ox = floor(x + 0.5);\n vec3 a0 = x - ox;\n\n // Normalise gradients implicitly by scaling m\n // Approximation of: m *= inversesqrt( a0*a0 + h*h );\n m *= 1.79284291400159 - 0.85373472095314 * (a0 * a0 + h * h);\n\n // Compute final noise value at P\n vec3 g;\n g.x = a0.x * x0.x + h.x * x0.y;\n g.yz = a0.yz * x12.xz + h.yz * x12.yw;\n return 130.0 * dot(m, g);\n}\n\nfloat czm_snoise(vec3 v) {\n const vec2 C = vec2(1.0 / 6.0, 1.0 / 3.0);\n const vec4 D = vec4(0.0, 0.5, 1.0, 2.0);\n\n // First corner\n vec3 i = floor(v + dot(v, C.yyy));\n vec3 x0 = v - i + dot(i, C.xxx);\n\n // Other corners\n vec3 g = step(x0.yzx, x0.xyz);\n vec3 l = 1.0 - g;\n vec3 i1 = min(g.xyz, l.zxy);\n vec3 i2 = max(g.xyz, l.zxy);\n\n vec3 x1 = x0 - i1 + C.xxx;\n vec3 x2 = x0 - i2 + C.yyy; // 2.0*C.x = 1/3 = C.y\n vec3 x3 = x0 - D.yyy; // -1.0+3.0*C.x = -0.5 = -D.y\n\n // Permutations\n i = _czm_mod289(i);\n vec4 p = _czm_permute(_czm_permute(_czm_permute(i.z + vec4(0.0, i1.z, i2.z, 1.0)) + i.y + vec4(0.0, i1.y, i2.y, 1.0)) + i.x + vec4(0.0, i1.x, i2.x, 1.0));\n\n // Gradients: 7x7 points over a square, mapped onto an octahedron.\n // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294)\n float n_ = 0.142857142857; // 1.0/7.0\n vec3 ns = n_ * D.wyz - D.xzx;\n\n vec4 j = p - 49.0 * floor(p * ns.z * ns.z); // mod(p,7*7)\n\n vec4 x_ = floor(j * ns.z);\n vec4 y_ = floor(j - 7.0 * x_); // mod(j,N)\n\n vec4 x = x_ * ns.x + ns.yyyy;\n vec4 y = y_ * ns.x + ns.yyyy;\n vec4 h = 1.0 - abs(x) - abs(y);\n\n vec4 b0 = vec4(x.xy, y.xy);\n vec4 b1 = vec4(x.zw, y.zw);\n\n //vec4 s0 = vec4(lessThan(b0,0.0))*2.0 - 1.0;\n //vec4 s1 = vec4(lessThan(b1,0.0))*2.0 - 1.0;\n vec4 s0 = floor(b0) * 2.0 + 1.0;\n vec4 s1 = floor(b1) * 2.0 + 1.0;\n vec4 sh = -step(h, vec4(0.0));\n\n vec4 a0 = b0.xzyw + s0.xzyw * sh.xxyy;\n vec4 a1 = b1.xzyw + s1.xzyw * sh.zzww;\n\n vec3 p0 = vec3(a0.xy, h.x);\n vec3 p1 = vec3(a0.zw, h.y);\n vec3 p2 = vec3(a1.xy, h.z);\n vec3 p3 = vec3(a1.zw, h.w);\n\n //Normalise gradients\n vec4 norm = _czm_taylorInvSqrt(vec4(dot(p0, p0), dot(p1, p1), dot(p2, p2), dot(p3, p3)));\n p0 *= norm.x;\n p1 *= norm.y;\n p2 *= norm.z;\n p3 *= norm.w;\n\n // Mix final noise value\n vec4 m = max(0.6 - vec4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0);\n m = m * m;\n return 42.0 * dot(m * m, vec4(dot(p0, x0), dot(p1, x1), dot(p2, x2), dot(p3, x3)));\n}\n\nfloat czm_snoise(vec4 v) {\n const vec4 C = vec4(0.138196601125011, // (5 - sqrt(5))/20 G4\n 0.276393202250021, // 2 * G4\n 0.414589803375032, // 3 * G4\n -0.447213595499958); // -1 + 4 * G4\n\n // (sqrt(5) - 1)/4 = F4, used once below\n #define F4 0.309016994374947451\n\n // First corner\n vec4 i = floor(v + dot(v, vec4(F4)));\n vec4 x0 = v - i + dot(i, C.xxxx);\n\n // Other corners\n\n // Rank sorting originally contributed by Bill Licea-Kane, AMD (formerly ATI)\n vec4 i0;\n vec3 isX = step(x0.yzw, x0.xxx);\n vec3 isYZ = step(x0.zww, x0.yyz);\n // i0.x = dot( isX, vec3( 1.0 ) );\n i0.x = isX.x + isX.y + isX.z;\n i0.yzw = 1.0 - isX;\n // i0.y += dot( isYZ.xy, vec2( 1.0 ) );\n i0.y += isYZ.x + isYZ.y;\n i0.zw += 1.0 - isYZ.xy;\n i0.z += isYZ.z;\n i0.w += 1.0 - isYZ.z;\n\n // i0 now contains the unique values 0,1,2,3 in each channel\n vec4 i3 = clamp(i0, 0.0, 1.0);\n vec4 i2 = clamp(i0 - 1.0, 0.0, 1.0);\n vec4 i1 = clamp(i0 - 2.0, 0.0, 1.0);\n\n // x0 = x0 - 0.0 + 0.0 * C.xxxx\n // x1 = x0 - i1 + 1.0 * C.xxxx\n // x2 = x0 - i2 + 2.0 * C.xxxx\n // x3 = x0 - i3 + 3.0 * C.xxxx\n // x4 = x0 - 1.0 + 4.0 * C.xxxx\n vec4 x1 = x0 - i1 + C.xxxx;\n vec4 x2 = x0 - i2 + C.yyyy;\n vec4 x3 = x0 - i3 + C.zzzz;\n vec4 x4 = x0 + C.wwww;\n\n // Permutations\n i = _czm_mod289(i);\n float j0 = _czm_permute(_czm_permute(_czm_permute(_czm_permute(i.w) + i.z) + i.y) + i.x);\n vec4 j1 = _czm_permute(_czm_permute(_czm_permute(_czm_permute(i.w + vec4(i1.w, i2.w, i3.w, 1.0)) + i.z + vec4(i1.z, i2.z, i3.z, 1.0)) + i.y + vec4(i1.y, i2.y, i3.y, 1.0)) + i.x + vec4(i1.x, i2.x, i3.x, 1.0));\n\n // Gradients: 7x7x6 points over a cube, mapped onto a 4-cross polytope\n // 7*7*6 = 294, which is close to the ring size 17*17 = 289.\n vec4 ip = vec4(1.0 / 294.0, 1.0 / 49.0, 1.0 / 7.0, 0.0);\n\n vec4 p0 = _czm_grad4(j0, ip);\n vec4 p1 = _czm_grad4(j1.x, ip);\n vec4 p2 = _czm_grad4(j1.y, ip);\n vec4 p3 = _czm_grad4(j1.z, ip);\n vec4 p4 = _czm_grad4(j1.w, ip);\n\n // Normalise gradients\n vec4 norm = _czm_taylorInvSqrt(vec4(dot(p0, p0), dot(p1, p1), dot(p2, p2), dot(p3, p3)));\n p0 *= norm.x;\n p1 *= norm.y;\n p2 *= norm.z;\n p3 *= norm.w;\n p4 *= _czm_taylorInvSqrt(dot(p4, p4));\n\n // Mix contributions from the five corners\n vec3 m0 = max(0.6 - vec3(dot(x0, x0), dot(x1, x1), dot(x2, x2)), 0.0);\n vec2 m1 = max(0.6 - vec2(dot(x3, x3), dot(x4, x4)), 0.0);\n m0 = m0 * m0;\n m1 = m1 * m1;\n return 49.0 * (dot(m0 * m0, vec3(dot(p0, x0), dot(p1, x1), dot(p2, x2))) + dot(m1 * m1, vec2(dot(p3, x3), dot(p4, x4))));\n}\n',LineDotDashMaterial="uniform vec4 color;\nuniform vec4 gapColor;\nuniform float dashLength;\nuniform float dashPattern;\nin float v_polylineAngle;\n\nconst float maskLength = 16.0;\n\nmat2 rotate(float rad) {\n float c = cos(rad);\n float s = sin(rad);\n return mat2(c, s, -s, c);\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 pos = rotate(v_polylineAngle) * gl_FragCoord.xy;\n\n float dashPosition = fract(pos.x / (dashLength * czm_pixelRatio));\n float maskIndex = floor(dashPosition * maskLength);\n float maskTest = floor(dashPattern / pow(2.0, maskIndex));\n\n vec4 fragColor = (mod(maskTest, 2.0) < 1.0) ? gapColor : color;\n if(fragColor.a < 0.005) {\n float dashPosition2 = fract(pos.x / (dashLength * 0.25 * czm_pixelRatio));\n float maskIndex2 = floor(dashPosition2 * maskLength);\n float maskTest2 = floor(dashPattern / pow(2.0, maskIndex2));\n fragColor = (mod(maskTest2, 2.0) < 1.0) ? gapColor : color;\n if(fragColor.a < 0.005) {\n discard;\n }\n }\n\n fragColor = czm_gammaCorrect(fragColor);\n material.emission = fragColor.rgb;\n material.alpha = fragColor.a;\n return material;\n}\n",LineFlowMaterial="uniform float globalAlpha;\nuniform bool axisY;\nuniform bool mixt;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = repeat * materialInput.st;\n\n vec4 colorImage;\n if(speed != 0.0) {\n float currTime;\n if(time < 0.0) {\n currTime = speed * czm_frameNumber / 1000.0;\n } else {\n currTime = time;\n }\n colorImage = texture(image, vec2(fract((axisY ? st.t : st.s) - currTime), st.t));\n } else {\n colorImage = texture(image, st);\n }\n\n if(color.a == 0.0) {\n if(colorImage.rgb == vec3(1.0)) {\n discard;\n }\n }\n\n if(color.rgb == vec3(1.0)) {\n material.alpha = colorImage.a * globalAlpha;\n material.diffuse = colorImage.rgb;\n } else {\n material.alpha = colorImage.a * color.a * globalAlpha;\n if(mixt)\n material.diffuse = max(colorImage.rgb * color.rgb * material.alpha * 3.0, colorImage.rgb * color.rgb);\n else\n material.diffuse = max(color.rgb * material.alpha * 3.0, color.rgb);\n }\n\n if(hasImage2) {\n vec4 colorBG = texture(image2, materialInput.st);\n if(colorBG.a > 0.5) {\n material.diffuse = color2.rgb;\n }\n }\n return material;\n}\n",LineFlowColorMaterial="uniform vec4 color;\nuniform float speed;\nuniform float startTime;\nuniform float percent;\nuniform float alpha;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n float t = fract(startTime + czm_frameNumber * speed / 1000.0);\n t *= (1.0 + percent);\n float alpha1 = smoothstep(t - percent, t, st.s) * step(-t, -st.s);\n alpha1 += alpha;\n material.diffuse = color.rgb;\n material.alpha = alpha1 * globalAlpha;\n return material;\n}\n",ODLineMaterial="uniform vec4 color;\nuniform vec4 bgColor;\nuniform float speed;\nuniform float startTime;\nuniform float bidirectional;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n float t = fract(startTime + czm_frameNumber * speed / 1000.0);\n\n t *= 1.03;\n float alpha0 = smoothstep(t - 0.03, t, st.s) * step(st.s, t);\n float mt = 1. - t;\n float alpha1 = smoothstep(mt + 0.03, mt, st.s) * step(mt, st.s);\n\n float a0 = step(abs(bidirectional - 0.0) - 0.001, 0.);\n float a1 = step(abs(bidirectional - 1.0) - 0.001, 0.);\n float db = step(abs(bidirectional - 2.0) - 0.001, 0.);\n float alpha = alpha0 * (a0 + db) + alpha1 * (a1 + db);\n alpha = clamp(alpha, 0., 1.);\n\n material.diffuse = color.rgb * alpha + bgColor.rgb * (1. - alpha);\n material.alpha = (color.a * alpha + bgColor.a * (1. - alpha)) * globalAlpha;\n\n // if (useImageAndRepeat.x != 0.) {\n // float repeat = useImageAndRepeat.y;\n // vec4 marsImageColor = texture(image, fract(vec2(fract((st.s-t)*repeat), st.t)));\n // material.diffuse = marsImageColor.rgb;\n // material.alpha = marsImageColor.a;\n // }\n\n return material;\n}\n",LineFlickerMaterial=_0x1658de(1545),LineTrailMaterial="uniform vec4 bgColor;\nuniform vec4 color;\nuniform float speed;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n float time = fract(czm_frameNumber * speed / 1000.0);\n\n vec3 fragColor = color.rgb;\n if(st.t > 0.45 && st.t < 0.55) {\n fragColor = vec3(1.0);\n }\n material.alpha = color.a * 1.5 * smoothstep(.0, 1., fract(st.s - time));\n material.diffuse = max(fragColor.rgb * material.alpha, fragColor.rgb);\n\n if(material.alpha < bgColor.a) {\n material.alpha = bgColor.a;\n material.diffuse = bgColor.rgb;\n }\n material.alpha = material.alpha * globalAlpha;\n\n return material;\n}\n",LineBloomMaterial="uniform vec4 color;\nuniform float speed;\nuniform float glow;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 st = materialInput.st;\n float t = fract(speed * czm_frameNumber / 1000.0);\n t *= 1.03;\n\n float alpha = smoothstep(t - 0.03, t, st.s) * step(-t, -st.s);\n alpha += 0.1;\n\n vec4 fragColor;\n fragColor.rgb = (color.rgb) / 0.5;\n fragColor = czm_gammaCorrect(fragColor);\n material.diffuse = fragColor.rgb;\n material.alpha = alpha * globalAlpha;\n material.emission = fragColor.rgb * glow;\n return material;\n}\n",DigitalFlowMaterial="uniform float globalAlpha;\n\nfloat plot(float st, float pct) {\n return smoothstep(pct, pct, st) - smoothstep(pct, pct + 0.5, st);\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n float time2 = czm_frameNumber / speed;\n vec4 colorImage = texture(image, vec2(fract(st.s), fract(float(st.t * segment) - time2)));\n float percent = distance(st.y, .5) / 0.9;\n float distance = length(vec2(st.x, st.y));\n float pf = plot(distance, fract(czm_frameNumber / 200.0) * 10.);\n vec4 gradient = mix(vec4(1.0, 1.0, 1.0, 1.0), vec4(pf, pf, pf, 1.0), 0.8);\n float alpha = (colorImage.a * (1.0 - percent));\n vec3 diffuse = max(color.rgb * alpha * glow, color.rgb);\n\n if(flowGlow == 1.0) {\n vec4 rgba = mix(vec4(diffuse, alpha), gradient, pf);\n material.diffuse = rgba.rgb;\n material.alpha = rgba.a * globalAlpha;\n } else {\n material.diffuse = diffuse;\n material.alpha = alpha * globalAlpha;\n }\n return material;\n}\n",LineThreeDashMaterial="uniform vec4 color;\nuniform float dashLength;\nuniform float dashPattern;\n\nuniform vec4 sidesColor;\nuniform float sidesDashLength;\nuniform float globalAlpha;\n\nin float v_polylineAngle;\n\nconst float maskLength = 16.0;\n\nmat2 rotate(float rad) {\n float c = cos(rad);\n float s = sin(rad);\n return mat2(c, s, -s, c);\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 pos = rotate(v_polylineAngle) * gl_FragCoord.xy;\n vec2 st = materialInput.st;\n\n float centerGlow = widthRatio / abs(st.t - 0.5) - (widthRatio / 0.5) - 1.0;\n if(centerGlow > 0.0) {\n float dashPosition = fract(pos.x / (dashLength * czm_pixelRatio));\n float maskIndex = floor(dashPosition * maskLength);\n float maskTest = floor(dashPattern / pow(2.0, maskIndex));\n if((mod(maskTest, 2.0) < 1.0)) {\n discard;\n }\n\n material.emission = color.rgb;\n material.alpha = color.a;\n return material;\n }\n\n float sidesGlow = (1.0 - sidesWidthRatio) / abs(st.t - 0.5) - ((1.0 - sidesWidthRatio) / 0.5) - 1.0;\n if(sidesGlow < 0.0) {\n float dashPosition = fract(pos.x / (sidesDashLength * czm_pixelRatio));\n float maskIndex = floor(dashPosition * maskLength);\n float maskTest = floor(dashPattern / pow(2.0, maskIndex));\n if((mod(maskTest, 2.0) < 1.0)) {\n discard;\n }\n\n material.emission = sidesColor.rgb;\n material.alpha = sidesColor.a* globalAlpha;\n return material;\n }\n\n discard;\n}\n",WallScrollMaterial="uniform sampler2D image;\nuniform float speed;\nuniform vec4 color;\nuniform float count;\nuniform bool axisY;\nuniform bool reverse;\nuniform bool bloom;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n float time = fract(czm_frameNumber * speed / 1000.0);\n\n vec4 colorImage;\n if(axisY) {\n if(reverse)\n colorImage = texture(image, vec2(fract(float(count) * st.s - time)));\n else\n colorImage = texture(image, vec2(fract(float(count) * st.s + time)));\n } else {\n if(reverse)\n colorImage = texture(image, vec2(fract(float(count) * st.t - time)));\n else\n colorImage = texture(image, vec2(fract(float(count) * st.t + time)));\n }\n\n float perDis = 1.0 / count / 3.0;\n material.alpha = colorImage.a * color.a * smoothstep(.2, 1., distance(st.t * perDis, 1. + perDis)) * globalAlpha;\n\n if(bloom) {\n //泛光\n vec4 fragColor;\n fragColor.rgb = (colorImage.rgb + color.rgb) / 1.0;\n fragColor = czm_gammaCorrect(fragColor);\n\n material.diffuse = colorImage.rgb;\n material.emission = fragColor.rgb;\n } else {\n material.diffuse = max(color.rgb * material.alpha * 1.5, color.rgb);\n material.emission = max(color.rgb * material.alpha * 1.5, color.rgb);\n }\n return material;\n}\n",ScanLineMaterial="uniform vec4 color;\nuniform float globalAlpha;\n\nfloat circle(vec2 uv, float r, float blur) {\n float d = length(uv) * 2.0;\n float c = smoothstep(r + blur, r, d);\n return c;\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st - .5;\n material.diffuse = color.rgb;\n material.emission = vec3(0);\n\n float t = fract(czm_frameNumber * speed / 1000.0);\n float s = 0.3;\n float radius1 = smoothstep(.0, s, t) * 0.9;\n float alpha1 = circle(st, radius1, 0.01) * circle(st, radius1, -0.01);\n float alpha2 = circle(st, radius1, 0.01 - radius1) * circle(st, radius1, 0.01);\n float radius2 = 0.5 + smoothstep(s, 1.0, t) * 0.5;\n float alpha3 = circle(st, radius1, radius2 + 0.01 - radius1) * circle(st, radius1, -0.01);\n\n material.alpha = smoothstep(1.0, s, t) * (alpha1 + alpha2 * 0.1 + alpha3 * 0.1);\n material.alpha *= color.a * globalAlpha;\n\n return material;\n}\n",CircleScanMaterial="uniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec4 imgC = texture(image, st);\n if(imgC.a > .0) {\n material.diffuse = color.rgb;\n }\n material.alpha = imgC.a * color.a * globalAlpha;\n return material;\n}\n",CircleWaveMaterial="uniform float globalAlpha;\nuniform vec4 color;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n material.diffuse = 1.5 * color.rgb;\n\n vec2 st = materialInput.st;\n float dis = distance(st, vec2(0.5, 0.5));\n float currTime;\n if(time < 0.0) {\n currTime = speed * czm_frameNumber / 1000.0;\n } else {\n currTime = time;\n }\n\n float per = fract(currTime);\n if(count == 1.0) {\n if(dis > per * 0.5) {\n discard;\n } else {\n material.alpha = color.a * dis / per / 2.0 * globalAlpha;\n }\n } else {\n vec3 str = materialInput.str;\n if(abs(str.z) > 0.001) {\n discard;\n }\n if(dis > 0.5) {\n discard;\n } else {\n float perDis = 0.5 / count;\n float disNum;\n float bl = 0.0;\n for(float i = 0.0; i <= 99.0; i+=1.0) {\n if(i <= count) {\n disNum = perDis * i - dis + per / count;\n if(disNum > 0.0) {\n if(disNum < perDis) {\n bl = 1.0 - disNum / perDis;\n } else if(disNum - perDis < perDis) {\n bl = 1.0 - abs(1.0 - disNum / perDis);\n }\n material.alpha = pow(bl, (1.0 + 10.0 * (1.0 - gradient))) * color.a * globalAlpha;\n }\n }\n }\n }\n }\n return material;\n}\n",RadarLineMaterial="uniform vec4 color;\nuniform float speed;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st * 2.0 - 1.0;\n float t = czm_frameNumber * speed / 1000.0;\n vec3 col = vec3(0.0);\n vec2 p = vec2(sin(t), cos(t));\n float d = length(st - dot(p, st) * p);\n if(dot(st, p) < 0.) {\n d = length(st);\n }\n\n col = .006 / d * color.rgb;\n\n if(distance(st, vec2(0)) > 0.99) {\n col = color.rgb;\n }\n\n material.alpha = pow(length(col), 2.0) * globalAlpha;\n material.diffuse = col * 3.0;\n return material;\n}\n",RadarWaveMaterial="uniform vec4 color;\nuniform float speed;\nuniform float globalAlpha;\n\n#define PI 3.14159265359\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec2 pos = st - vec2(0.5);\n float time = czm_frameNumber * speed / 1000.0;\n float r = length(pos);\n float t = atan(pos.y, pos.x) - time * 2.5;\n float a = (atan(sin(t), cos(t)) + PI) / (2.0 * PI);\n float ta = 0.5;\n float v = smoothstep(ta - 0.05, ta + 0.05, a) * smoothstep(ta + 0.05, ta - 0.05, a);\n vec3 flagColor = color.rgb * v;\n float blink = pow(sin(time * 1.5) * 0.5 + 0.5, 0.8);\n flagColor = color.rgb * pow(a, 8.0 * (.2 + blink)) * (sin(r * 500.0) * .5 + .5);\n flagColor = flagColor * pow(r, 0.4);\n material.alpha = length(flagColor) * 1.3 * globalAlpha;\n material.diffuse = flagColor * 3.0;\n return material;\n}\n",RectSlideMaterial="uniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec4 colorImage = texture(image, vec2(fract(st.s + czm_frameNumber * speed / 1000.0), fract(st.t)));\n\n material.alpha = colorImage.a * color.a * globalAlpha;\n if(pure) {\n material.diffuse = diffusePower * color.rgb;\n } else {\n material.diffuse = colorImage.rgb;\n }\n return material;\n}\n",EllipsoidElectricMaterial=_0x1658de(1667),EllipsoidWaveMaterial="uniform vec4 color;\nuniform float speed;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n float time = fract(czm_frameNumber * speed / 1000.0);\n float alpha = abs(smoothstep(0.5, 1., fract(-st.t - time)));\n alpha += .1;\n material.alpha = alpha * globalAlpha;\n material.diffuse = color.rgb;\n return material;\n}\n",PolyGradientMaterial="uniform vec4 color;\nuniform float diffusePower;\nuniform float alphaPower;\nuniform float globalAlpha;\nuniform vec2 center;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n float alpha = distance(st, center);\n material.alpha = color.a * alpha * alphaPower * globalAlpha;\n material.diffuse = color.rgb * diffusePower;\n return material;\n}\n",AsphaltMaterial="uniform vec4 color;\nuniform float size;\nuniform float frequency;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n // From Stefan Gustavson's Procedural Textures in GLSL in OpenGL Insights\n //Main cellular pattern\n vec4 color = color;\n vec2 st = materialInput.st;\n vec2 F = czm_cellular(st / size);\n color.rgb -= (F.x / F.y) * 0.1;\n\n //Extra bumps for frequency\n float noise = czm_snoise(st / size);\n noise = pow(noise, 5.0) * frequency;\n color.rgb += noise;\n\n material.diffuse = color.rgb;\n material.alpha = color.a * globalAlpha;\n\n return material;\n}\n",BlobMaterial="uniform vec4 evenColor;\nuniform vec4 oddColor;\nuniform float frequency;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n // From Stefan Gustavson's Procedural Textures in GLSL in OpenGL Insights\n vec2 F = czm_cellular(materialInput.st * frequency);\n float t = 1.0 - F.x * F.x;\n\n vec4 color = mix(evenColor, oddColor, t);\n material.diffuse = color.rgb;\n material.alpha = color.a * globalAlpha;\n\n return material;\n}\n",FacetMaterial="uniform vec4 evenColor;\nuniform vec4 oddColor;\nuniform float frequency;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n // From Stefan Gustavson's Procedural Textures in GLSL in OpenGL Insights\n vec2 F = czm_cellular(materialInput.st * frequency);\n float t = 0.1 + (F.y - F.x);\n\n vec4 color = mix(evenColor, oddColor, t);\n material.diffuse = color.rgb;\n material.alpha = color.a * globalAlpha;\n\n return material;\n}\n",PolyGrassMaterial="uniform vec4 evenColor;\nuniform vec4 oddColor;\nuniform float frequency;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 st = materialInput.st;\n float noise1 = (czm_snoise(st * frequency * 1.0)) * 1.0;\n float noise2 = (czm_snoise(st * frequency * 2.0)) * 0.5;\n float noise3 = (czm_snoise(st * frequency * 4.0)) * 0.25;\n float noise = sin(noise1 + noise2 + noise3) * 0.1;\n\n vec4 color = mix(evenColor, oddColor, noise);\n\n //Make thatch patterns\n float verticalNoise = czm_snoise(vec2(st.x * 100.0, st.y * 20.0)) * 0.02;\n float horizontalNoise = czm_snoise(vec2(st.x * 20.0, st.y * 100.0)) * 0.02;\n float stripeNoise = min(verticalNoise, horizontalNoise);\n\n color.rgb += stripeNoise;\n\n material.diffuse = color.rgb;\n material.alpha = color.a * globalAlpha;\n\n return material;\n}\n",PolyWoodMaterial=_0x1658de(1924),ImageMaterial=_0x1658de(344),WaterLightMaterial="uniform float globalAlpha;\n\nfloat time = 0.0;\nmat2 m2 = mat2(0.80, 0.60, -0.60, 0.80);\n\nmat2 gis3d_makem(in float theta) {\n float c = cos(theta);\n float s = sin(theta);\n return mat2(c, -s, s, c);\n}\n\nfloat noise(in vec2 x) {\n return texture(specularMap, x * .01).x;\n}\n\nfloat gis3d_fbm(in vec2 p) {\n float z = 2.;\n float rz = 0.;\n for(float i = 1.; i < 7.; i++) {\n rz += abs((noise(p) - 0.5) * 2.) / z;\n z = z * 2.;\n p = p * 2.;\n p *= m2;\n }\n return rz;\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 vUv = materialInput.st;\n time = czm_frameNumber / 200.0;\n vec2 p = 2. * vUv.xy - vec2(1., 1.);\n vec2 bp = p;\n\n #ifndef CENTERED\n p += 5.;\n p *= 30.;\n #endif\n float rb = gis3d_fbm(p * .5 + time * .17) * .1;\n rb = sqrt(rb);\n #ifndef CENTERED\n p *= gis3d_makem(rb * .2 + atan(p.y, p.x) * 1.);\n #else\n p *= gis3d_makem(rb * .2 + atan(p.y, p.x) * 2.);\n #endif\n\n //coloring\n float rz = gis3d_fbm(p * .9 - time * .7);\n rz *= dot(bp * 5., bp) + .5;\n rz *= sin(p.x * .5 + time * 4.) * 1.5;\n vec3 col = vec3(.04, 0.07, 0.45) / (.1 - rz);\n vec4 fragColor = vec4(sqrt(abs(col)), 1.0);\n material.alpha = fragColor.a * alpha * globalAlpha;\n material.diffuse = fragColor.rgb * .5;\n\n // cesium\n float frequency = 2000.0;\n float amplitude = 10.0;\n float fadeFactor = 1.0;\n vec4 mapColor = texture(normalMap, materialInput.st);\n float specularMapValue = texture(normalMap, materialInput.st).r;\n specularMapValue = 1.0;\n\n float fade = max(1.0, (length(materialInput.positionToEyeEC) / 10000000000.0) * frequency * fadeFactor);\n vec4 noise = czm_getWaterNoise(normalMap, materialInput.st * frequency, time, 0.0);\n vec3 normalTangentSpace = noise.xyz * vec3(1.0, 1.0, (1.0 / amplitude));\n normalTangentSpace.xy /= fade;\n normalTangentSpace = mix(vec3(0.0, 0.0, 50.0), normalTangentSpace, specularMapValue);\n normalTangentSpace = normalize(normalTangentSpace);\n\n float gis3dPerturbationRatio = clamp(dot(normalTangentSpace, vec3(0.0, 0.0, 0.1)), 0.0, 1.0);\n material.diffuse += (0.1 * gis3dPerturbationRatio);\n material.normal = normalize(materialInput.tangentToEyeMatrix * normalTangentSpace);\n material.specular = 0.5;\n material.shininess = 10.0;\n\n return material;\n}\n",NeonLightMaterial="uniform float globalAlpha;\n\nfloat marsstepping(float t) {\n if(t < 0.)\n return -1. + pow(1. + t, 2.);\n else\n return 1. - pow(1. - t, 2.);\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 vUv = materialInput.st;\n vec2 uv = 2. * vUv.xy - vec2(1., 1.);\n\n uv *= 2.0;\n vec4 fragColor = vec4(0.);\n uv = normalize(uv) * length(uv);\n\n float time = czm_frameNumber / speed;\n for(float i = 0.0; i < 12.0; i+=1.0) {\n float t = time + i * 3.141592 / 12. * (5. + 1. * marsstepping(sin(time * 3.)));\n vec2 p = vec2(cos(t), sin(t));\n p *= cos(time + i * 3.141592 * cos(time / 8.));\n vec3 col = cos(vec3(0, 1, -1) * 3.141592 * 2. / 3. + 3.141925 * (time / 2. + i / 5.)) * 0.5 + 0.5;\n fragColor += vec4(0.05 / length(uv - p * 0.9) * col, 1.0);\n }\n fragColor.xyz = pow(fragColor.xyz, vec3(3.));\n fragColor.w = 1.0;\n\n vec4 baseColor = vec4(fragColor.rgb + color.rgb * 2.0, fragColor.r * 0.2);\n material.alpha = baseColor.a * globalAlpha;\n material.diffuse = baseColor.rgb;\n\n return material;\n}\n",TextMaterial=(Cesium__namespace.ShaderSource._czmBuiltinsAndUniforms.czm_cellular=czm_cellular,Cesium__namespace.ShaderSource[_0x1658de(3228)].czm_snoise=czm_snoise,register$3(LineDotDash,{fabric:{uniforms:{color:new Cesium__namespace[_0x1658de(3096)](1,0,1,1),gapColor:new Cesium__namespace[_0x1658de(3096)](0,0,0,0),dashLength:16,dashPattern:255},source:LineDotDashMaterial},translucent:!0}),register$3(LineFlow,{fabric:{uniforms:{image:Cesium__namespace[_0x1658de(2517)].DefaultImageId,color:new Cesium__namespace.Color(1,1,1,0),repeat:new Cesium__namespace.Cartesian2(1,1),axisY:!1,mixt:!1,speed:10,time:-1,hasImage2:!1,image2:Cesium__namespace[_0x1658de(2517)].DefaultImageId,color2:new Cesium__namespace[_0x1658de(3096)](1,1,1),globalAlpha:1},source:LineFlowMaterial},translucent:!0}),register$3(LineFlowColor,{fabric:{uniforms:{color:new Cesium__namespace.Color(1,0,0,.7),startTime:0,speed:2,percent:.04,alpha:.1,globalAlpha:1},source:LineFlowColorMaterial},translucent:!0}),register$3(ODLine,{fabric:{uniforms:{color:new Cesium__namespace.Color(1,1,0,.7),startTime:0,speed:20,bgColor:new Cesium__namespace.Color(1,1,0,.1),bidirectional:0,globalAlpha:1},source:ODLineMaterial},translucent:!0}),register$3(LineFlicker,{fabric:{uniforms:{color:new Cesium__namespace.Color(1,0,0,.7),speed:10,globalAlpha:1},source:LineFlickerMaterial},translucent:!0}),register$3(LineTrail,{fabric:{uniforms:{color:new Cesium__namespace.Color(1,0,0,.7),bgColor:new Cesium__namespace.Color(0,0,0,0),speed:5,globalAlpha:1},source:LineTrailMaterial},translucent:!0}),register$3(LineBloom,{fabric:{uniforms:{color:Cesium__namespace.Color.ORANGE,glow:1,speed:5,globalAlpha:1},source:LineBloomMaterial},translucent:!0}),register$3(DigitalFlow,{fabric:{uniforms:{color:new Cesium__namespace.Color(0,0,0,.8),image:Cesium__namespace.Material.DefaultImageId,speed:10,glow:10,flowGlow:1,segment:3,globalAlpha:1},source:DigitalFlowMaterial},translucent:!0}),register$3(LineThreeDash,{fabric:{uniforms:{color:Cesium__namespace.Color.RED,dashLength:64,widthRatio:.1,sidesColor:Cesium__namespace.Color.WHITE,sidesDashLength:32,sidesWidthRatio:.1,dashPattern:255,globalAlpha:1},source:LineThreeDashMaterial},translucent:!0}),register$3(WallScroll,{fabric:{uniforms:{color:new Cesium__namespace.Color(0,0,0,1),image:Cesium__namespace.Material.DefaultImageId,count:1,speed:5,reverse:!1,axisY:!1,bloom:!1,globalAlpha:1},source:WallScrollMaterial},translucent:!0}),register$3(ScanLine,{fabric:{uniforms:{color:new Cesium__namespace.Color(1,1,0,1),speed:10,globalAlpha:1},source:ScanLineMaterial},translucent:!0}),register$3(CircleScan,{fabric:{uniforms:{color:new Cesium__namespace.Color(1,0,0,1),image:Cesium__namespace.Material.DefaultImageId,globalAlpha:1},source:CircleScanMaterial},translucent:!0}),register$3(CircleWave,{fabric:{uniforms:{color:new Cesium__namespace[_0x1658de(3096)](1,1,0,1),speed:10,time:-1,count:1,gradient:.1,globalAlpha:1},source:CircleWaveMaterial},translucent:!0}),register$3(RadarLine,{fabric:{uniforms:{color:new Cesium__namespace.Color(0,1,1,.7),speed:5,globalAlpha:1},source:RadarLineMaterial},translucent:!0}),register$3(RadarWave,{fabric:{uniforms:{color:new Cesium__namespace.Color(0,1,1,.7),speed:5,globalAlpha:1},source:RadarWaveMaterial},translucent:!0}),register$3(RectSlide,{fabric:{uniforms:{image:Cesium__namespace[_0x1658de(2517)][_0x1658de(3648)],color:Cesium__namespace.Color.WHITE,speed:10,pure:!1,diffusePower:1.3,globalAlpha:1},source:RectSlideMaterial},translucent:!0}),register$3(EllipsoidElectric,{fabric:{uniforms:{color:new Cesium__namespace.Color(0,1,1,.7),speed:5,globalAlpha:1},source:EllipsoidElectricMaterial},translucent:!0}),register$3(EllipsoidWave,{fabric:{uniforms:{color:new Cesium__namespace.Color(0,1,1,.7),speed:5,globalAlpha:1},source:EllipsoidWaveMaterial},translucent:!0}),register$3(PolyGradient,{fabric:{uniforms:{color:new Cesium__namespace.Color(1,1,0,.5),diffusePower:1.6,alphaPower:1.5,center:new Cesium__namespace[_0x1658de(2638)](.5,.5),globalAlpha:1},source:PolyGradientMaterial},translucent:!0}),register$3(PolyAsphalt,{fabric:{uniforms:{color:new Cesium__namespace.Color(.15,.15,.15,1),size:.02,frequency:.2,globalAlpha:1},source:AsphaltMaterial},translucent:function(e){return e[_0x1658de(1998)].color.alpha<1}}),register$3(PolyBlob,{fabric:{uniforms:{evenColor:new Cesium__namespace.Color(1,1,1,.5),oddColor:new Cesium__namespace.Color(0,0,1,.5),frequency:10,globalAlpha:1},source:BlobMaterial},translucent:function(e){var t=3629,i=2284,a=_0x1658de,e=e[a(1998)];return e.evenColor[a(t)]<1||e[a(i)][a(3629)]<0}}),register$3(PolyFacet,{fabric:{uniforms:{evenColor:new Cesium__namespace.Color(.25,.25,.25,.75),oddColor:new Cesium__namespace.Color(.75,.75,.75,.75),frequency:10,globalAlpha:1},source:FacetMaterial},translucent:function(e){var t=_0x1658de,e=e[t(1998)];return e.evenColor.alpha<1||e[t(2284)].alpha<0}}),register$3(PolyGrass,{fabric:{uniforms:{evenColor:new Cesium__namespace.Color(.25,.4,.1,1),oddColor:new Cesium__namespace.Color(.1,.1,.1,1),frequency:1.5,globalAlpha:1},source:PolyGrassMaterial},translucent:function(e){e=e.uniforms;return e.evenColor.alpha<1||e.oddColor.alpha<1}}),register$3(PolyWood,{fabric:{uniforms:{evenColor:new Cesium__namespace.Color(.6,.3,.1,1),oddColor:new Cesium__namespace[_0x1658de(3096)](.4,.2,.07,1),frequency:3,noiseScale:new Cesium__namespace.Cartesian2(.7,.5),grainFrequency:27,globalAlpha:1},source:PolyWoodMaterial},translucent:function(e){var t=_0x1658de,e=e.uniforms;return e[t(4003)].alpha<1||e[t(2284)].alpha<1}}),register$3(Image2,{fabric:{uniforms:{image:Cesium__namespace.Material.DefaultImageId,color:Cesium__namespace.Color[_0x1658de(3644)],opacity:1,speed:0,flipx:!1,flipy:!1,noWhite:!0,globalAlpha:1},source:ImageMaterial},translucent:!0}),register$3(WaterLight,{fabric:{uniforms:{alpha:.3,specularMap:Cesium__namespace.Material.DefaultImageId,normalMap:Cesium__namespace.buildModuleUrl("Assets/Textures/waterNormals.jpg"),globalAlpha:1},source:WaterLightMaterial},translucent:!0}),register$3(NeonLight,{fabric:{uniforms:{color:Cesium__namespace.Color.WHITE,speed:1,globalAlpha:1},source:NeonLightMaterial},translucent:!0}),registerPropertyClass(Color$2,Cesium__namespace.ColorMaterialProperty),registerPropertyClass(Image$1,Cesium__namespace.ImageMaterialProperty),registerPropertyClass(PolylineArrow,Cesium__namespace.PolylineArrowMaterialProperty),registerPropertyClass(PolylineOutline,Cesium__namespace.PolylineOutlineMaterialProperty),registerPropertyClass(PolylineDash,Cesium__namespace.PolylineDashMaterialProperty),registerPropertyClass(PolylineGlow,Cesium__namespace.PolylineGlowMaterialProperty),registerPropertyClass(Grid,Cesium__namespace.GridMaterialProperty),registerPropertyClass(Checkerboard,Cesium__namespace.CheckerboardMaterialProperty),registerPropertyClass(Stripe,Cesium__namespace.StripeMaterialProperty),function(e){var t=2822,i=(_inherits(a,e),_createSuper(a));function a(){var e=0<arguments[_0x236b(t)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,a),i.call(this,conventOptions$1(e))}return _createClass(a)}(Cesium__namespace.Material));function conventOptions$1(e){var t=_0x1658de,i=e[t(3045)];e.font_size=e[t(2595)]||70;var a,t=getTextImage(i,LabelStyleConver.toCesiumVal(e,{fill:!0,fillColor:new Cesium__namespace.Color(1,1,0,1),textBaseline:"middle",padding:10}));return{fabric:{uniforms:{image:a=t?t.toDataURL("image/png"):a,opacity:1,color:Cesium__namespace.Color.WHITE,speed:e.speed||0,flipx:!1,flipy:!1,noWhite:!0,globalAlpha:1},source:ImageMaterial},translucent:!0}}registerClass(Text,TextMaterial);var CylinderWaveMaterialGlsl=_0x1658de(2817),CylinderWaveMaterial=function(e){var i=1553,a=767,n=3088,s=767,o=2023,l=(_inherits(c,e),_createSuper(c));function c(){var e,a=2960,n=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=(_classCallCheck(this,c),(e=l.call(this,conventOptions(t)))[n(2114)]=1e3/(t.frameRate||60),e._speed=null!=(t=t[n(2662)])?t:10,_assertThisInitialized(e)),r=Date[n(o)]();return function e(){var t=n,t=(s.animateFrame=window[t(a)](e),Date.now()),i=t-r;i>s._frameTime&&(r=t-i%s._frameTime,s.updateOffset())}(),e}return _createClass(c,[{key:"updateOffset",value:function(){var e=_0x236b,t=this.uniforms[e(a)];1<(t-=1e-4*this[e(n)])&&(t=0),this.uniforms[e(s)]=t}},{key:"destroy",value:function(e){var t=_0x236b;return window.cancelAnimationFrame(this.animateFrame),delete this.animateFrame,_get(_getPrototypeOf(c.prototype),t(i),this).call(this,e)}}]),c}(Cesium__namespace.Material);function conventOptions(e){var t,i=_0x1658de;return{fabric:{uniforms:{color:getCesiumColor(e.color,new Cesium__namespace.Color(2,1,0,.8)),repeat:null!=(t=e.repeat)?t:30,thickness:null!=(t=e.thickness)?t:.3,offset:null!=(t=e[i(767)])?t:0,globalAlpha:1},source:CylinderWaveMaterialGlsl},translucent:function(e){return e.uniforms.color.alpha<1}}}registerClass(CylinderWave,CylinderWaveMaterial);var BaseMaterialProperty=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.options=e,this._definitionChanged=new Cesium__namespace.Event}return _createClass(t,[{key:_0x1658de(1810),get:function(){return!0}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return null}},{key:"getValue",value:function(e){return 1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}}},{key:"equals",value:function(e){return this===e}}]),t}(),CircleScanMaterialProperty=function(){var a=2745,n=_0x1658de,s=(_inherits(r,BaseMaterialProperty),_createSuper(r));function r(){var e,t=_0x236b,i=0<arguments[t(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,r),(e=s[t(1567)](this,i)).image=null!=(t=i[t(613)])?t:i.url,e.color=i.color,e.globalAlpha=null!=(t=i.globalAlpha)?t:1,e}return _createClass(r,[{key:n(2183),value:function(e){return CircleScan}},{key:n(777),value:function(e,t){var i=n;return(t=Cesium__namespace.defined(t)?t:{})[i(a)]=getCesiumColor(this[i(2745)],new Cesium__namespace.Color(1,0,0,.5),e),t.image=this[i(613)],t[i(1863)]=this.globalAlpha,t}},{key:"equals",value:function(e){var t=n;return this===e||e instanceof r&&Cesium__namespace.Property.equals(this.color,e.color)&&this.image===e[t(613)]}}]),r}(),CircleWaveMaterialProperty=(registerPropertyClass(CircleScan,CircleScanMaterialProperty),function(){var i=2745,n=2822,s=2662,r=3143,a=_0x1658de,o=(_inherits(l,BaseMaterialProperty),_createSuper(l));function l(){var e,t,i=_0x236b,a=0<arguments[i(n)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),(t=o.call(this,a)).color=a.color,t[i(s)]=null!=(e=a.speed)?e:10,t.duration=a.duration,t.count=null!=(e=a.count)?e:1,t.gradient=null!=(e=a[i(1961)])?e:.1,t.globalAlpha=null!=(e=a.globalAlpha)?e:1,t[i(r)]<=0&&(t.count=1),t.gradient<0&&(t.gradient=0),1<t.gradient&&(t.gradient=1),t}return _createClass(l,[{key:"getType",value:function(e){return CircleWave}},{key:a(777),value:function(e,t){var i=a;return(t=Cesium__namespace.defined(t)?t:{}).color=getCesiumColor(this[i(2745)],Cesium__namespace.Color.YELLOW,e),t[i(3143)]=this.count,t[i(1961)]=this.gradient,t[i(2662)]=this.speed,t.globalAlpha=this[i(1863)],this.duration?(void 0===this._time&&(this._time=(new Date)[i(3756)]()),t.time=((new Date).getTime()-this[i(2269)])/(1e3*this.duration)):t.time=-1,t}},{key:"equals",value:function(e){var t=a;return this===e||e instanceof l&&Cesium__namespace[t(2830)].equals(this.color,e[t(i)])&&this.count===e.count&&this.speed===e.speed&&this[t(1961)]===e.gradient}}]),l}()),CylinderWaveMaterialProperty=(registerPropertyClass(CircleWave,CircleWaveMaterialProperty),register$3(CylinderWave,{fabric:{uniforms:{color:new Cesium__namespace.Color(2,1,0,.8),repeat:30,thickness:.3,offset:0,globalAlpha:1},source:CylinderWaveMaterialGlsl},translucent:!0}),function(){var a=2662,n=1567,s=1665,r=_0x1658de,o=(_inherits(l,BaseMaterialProperty),_createSuper(l));function l(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),(t=o[i(n)](this,a)).color=a[i(2745)],t[i(s)]=null!=(e=a.repeat)?e:30,t.thickness=null!=(e=a.thickness)?e:.3,t.speed=null!=(e=a.speed)?e:10,t[i(767)]=0,t.globalAlpha=null!=(e=a.globalAlpha)?e:1,t}return _createClass(l,[{key:r(2183),value:function(e){return CylinderWave}},{key:"getValue",value:function(e,t){var i=r;return Cesium__namespace[i(3277)](t)||(t={}),this.offset-=1e-4*this[i(a)],1<this.offset&&(this.offset=0),t.color=getCesiumColor(this.color,new Cesium__namespace.Color(2,1,0,.8),e),t.repeat=this.repeat,t[i(767)]=this.offset,t.thickness=this.thickness,t.globalAlpha=this.globalAlpha,t}},{key:"equals",value:function(e){return this===e||e instanceof l&&Cesium__namespace.Property.equals(this.color,e.color)&&this.repeat===e.repeat&&this.thickness===e.thickness}}]),l}()),DigitalFlowMaterialProperty=(registerPropertyClass(CylinderWave,CylinderWaveMaterialProperty),function(){var i=2204,a=2662,n=3246,s=1705,r=1567,o=1705,l=_0x1658de,c=(_inherits(h,BaseMaterialProperty),_createSuper(h));function h(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,h),(t=c[i(r)](this,a)).color=getCesiumColor(a.color,new Cesium__namespace.Color(0,0,0,0)),t.speed=null!=(e=a.speed)?e:5,t.glow=null!=(e=a.glow)?e:1,t[i(661)]=null!=(e=a.flowGlow)?e:1,t[i(o)]=null!=(e=a.segment)?e:3,t.globalAlpha=null!=(i=a.globalAlpha)?i:1,t}return _createClass(h,[{key:"getType",value:function(e){return DigitalFlow}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=Cesium__namespace.defined(t)?t:{}).color=this.color,t.speed=this[i(a)],t.glow=this[i(n)],t.flowGlow=this[i(661)],t.segment=this[i(s)],t.globalAlpha=this.globalAlpha,t}},{key:l(2204),value:function(e){var t=l;return this===e||e instanceof h&&Cesium__namespace.Property[t(i)](this.color,e.color)&&this.glow===e.glow&&this[t(2662)]===e.speed}}]),h}()),EllipsoidElectricMaterialProperty=(registerPropertyClass(DigitalFlow,DigitalFlowMaterialProperty),function(){var i=2830,a=2204,n=2745,s=2745,r=2662,o=2745,l=_0x1658de,c=(_inherits(h,BaseMaterialProperty),_createSuper(h));function h(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,h),(e=c.call(this,i))[t(o)]=getCesiumColor(i.color,new Cesium__namespace.Color(0,0,0,0)),e[t(2662)]=null!=(t=i.speed)?t:5,e.globalAlpha=null!=(t=i.globalAlpha)?t:1,e}return _createClass(h,[{key:l(2183),value:function(e){return EllipsoidElectric}},{key:"getValue",value:function(e,t){var i=l;return(t=Cesium__namespace.defined(t)?t:{}).color=this.color,t.speed=this[i(r)],t.globalAlpha=this.globalAlpha,t}},{key:"equals",value:function(e){var t=l;return this===e||e instanceof h&&Cesium__namespace[t(i)][t(a)](this[t(n)],e[t(s)])&&this.speed===e[t(2662)]}}]),h}()),EllipsoidWaveMaterialProperty=(registerPropertyClass(EllipsoidElectric,EllipsoidElectricMaterialProperty),function(){var n=3096,s=2662,r=1863,a=_0x1658de,o=(_inherits(l,BaseMaterialProperty),_createSuper(l));function l(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),(t=o[i(1567)](this,a)).color=getCesiumColor(a.color,new Cesium__namespace[i(n)](0,0,0,0)),t.speed=null!=(e=a[i(s)])?e:5,t.globalAlpha=null!=(e=a[i(r)])?e:1,t}return _createClass(l,[{key:a(2183),value:function(e){return EllipsoidWave}},{key:"getValue",value:function(e,t){var i=a;return(t=Cesium__namespace[i(3277)](t)?t:{})[i(2745)]=this.color,t.speed=this.speed,t.globalAlpha=this.globalAlpha,t}},{key:a(2204),value:function(e){return this===e||e instanceof l&&Cesium__namespace.Property.equals(this.color,e.color)&&this.speed===e.speed}}]),l}()),Image2MaterialProperty=(registerPropertyClass(EllipsoidWave,EllipsoidWaveMaterialProperty),function(){var i=2098,a=3225,n=3644,s=_0x1658de,r=(_inherits(o,BaseMaterialProperty),_createSuper(o));function o(){var e,t,i=_0x236b,a=0<arguments[i(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,o),(t=r[i(1567)](this,a)).image=a.image,t.opacity=null!=(e=a.opacity)?e:1,t.color=null!=(e=a[i(2745)])?e:Cesium__namespace.Color[i(n)],t.speed=null!=(e=a[i(2662)])?e:0,t[i(3072)]=null!=(e=a.flipx)&&e,t[i(1562)]=null!=(e=a.flipy)&&e,t[i(3225)]=null==(e=a.noWhite)||e,t.globalAlpha=null!=(e=a[i(1863)])?e:1,t}return _createClass(o,[{key:"getType",value:function(e){return Image2}},{key:s(777),value:function(e,t){var i=s;return(t=Cesium__namespace.defined(t)?t:{}).image=this.image,t[i(2745)]=this.color,t.opacity=this.opacity,t.speed=this.speed,t.flipx=this.flipx,t[i(1562)]=this[i(1562)],t[i(3225)]=this[i(a)],t.globalAlpha=this.globalAlpha,t}},{key:"equals",value:function(e){var t=s;return this===e||e instanceof o&&Cesium__namespace.Property.equals(this.color,e.color)&&this[t(i)]===e.opacity&&this.image===e.image}}]),o}()),LineBloomMaterialProperty=(registerPropertyClass(Image2,Image2MaterialProperty),function(){var i=2662,a=2662,n=2822,s=1863,r=_0x1658de,o=(_inherits(l,BaseMaterialProperty),_createSuper(l));function l(){var e,t,i=_0x236b,a=0<arguments[i(n)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),(t=o.call(this,a)).color=getCesiumColor(a.color,new Cesium__namespace.Color(0,0,0,0)),t.speed=null!=(e=a.speed)?e:5,t.glow=null!=(e=a.glow)?e:1,t.globalAlpha=null!=(e=a[i(s)])?e:1,t}return _createClass(l,[{key:"getType",value:function(e){return LineBloom}},{key:r(777),value:function(e,t){var i=r;return(t=Cesium__namespace.defined(t)?t:{}).color=this[i(2745)],t.speed=this.speed,t.glow=this[i(3246)],t.globalAlpha=this.globalAlpha,t}},{key:r(2204),value:function(e){var t=r;return this===e||e instanceof l&&Cesium__namespace.Property[t(2204)](this.color,e.color)&&this.glow===e.glow&&this[t(i)]===e[t(a)]}}]),l}()),LineFlickerMaterialProperty=(registerPropertyClass(LineBloom,LineBloomMaterialProperty),function(){var a=2745,n=2745,s=(_inherits(r,BaseMaterialProperty),_createSuper(r));function r(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,r),(e=s.call(this,i))[t(n)]=i.color,e.speed=null!=(t=i.speed)?t:2,e.globalAlpha=null!=(t=i.globalAlpha)?t:1,e}return _createClass(r,[{key:"getType",value:function(e){return LineFlicker}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=Cesium__namespace.defined(t)?t:{}).color=getCesiumColor(this[i(a)],new Cesium__namespace.Color(0,0,0,0),e),t.speed=this.speed,t.globalAlpha=this[i(1863)],t}},{key:"equals",value:function(e){return this===e||e instanceof r&&Cesium__namespace.Property.equals(this.color,e.color)&&this.speed===e.speed}}]),r}()),LineFlowColorMaterialProperty=(registerPropertyClass(LineFlicker,LineFlickerMaterialProperty),function(){var e=777,t=2204,i=2745,a=804,n=1100,s=3277,r=2662,o=1863,l=_0x1658de,c=(_inherits(h,BaseMaterialProperty),_createSuper(h));function h(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,h),(t=c.call(this,a)).color=a[i(2745)],t[i(2662)]=null!=(e=a[i(r)])?e:2,t.percent=null!=(e=a.percent)?e:.04,t.alpha=null!=(e=a[i(3629)])?e:.1,t.startTime=null!=(e=a.startTime)?e:0,t[i(o)]=null!=(e=a.globalAlpha)?e:1,t}return _createClass(h,[{key:l(2183),value:function(e){return LineFlowColor}},{key:l(e),value:function(e,t){var i=l;return(t=Cesium__namespace[i(s)](t)?t:{}).color=getCesiumColor(this[i(2745)],new Cesium__namespace.Color(1,0,0,1),e),t[i(2662)]=this.speed,t.percent=this.percent,t[i(3629)]=this.alpha,t[i(1100)]=this.startTime,t[i(1863)]=this.globalAlpha,t}},{key:l(t),value:function(e){var t=l;return this===e||e instanceof h&&Cesium__namespace.Property.equals(this.color,e[t(i)])&&this[t(2662)]===e.speed&&this[t(a)]===e.percent&&this.startTime===e[t(n)]&&this.alpha===e.alpha}}]),h}()),LineFlowMaterialProperty=(registerPropertyClass(LineFlowColor,LineFlowColorMaterialProperty),function(){var i=1665,a=2336,n=3581,s=2745,r=1665,o=2269,l=3003,c=3096,h=613,u=2336,_=_0x1658de,p=(_inherits(m,BaseMaterialProperty),_createSuper(m));function m(){var e,t,i=_0x236b,a=0<arguments[i(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,m),(t=p[i(1567)](this,a))[i(h)]=null!=(e=a[i(h)])?e:a.url,t.color=null!=(e=a.color)?e:new Cesium__namespace.Color(1,1,1,0),t.axisY=null!=(e=a[i(u)])&&e,t.mixt=null!=(e=a.mixt)&&e,t[i(2662)]=null!=(e=a.speed)?e:10,t.duration=a.duration,t.repeat=null!=(e=a.repeat)?e:new Cesium__namespace.Cartesian2(1,1),t.image2=null!=(e=a.image2)?e:a.bgUrl,t.color2=null!=(e=null!=(e=a.color2)?e:a.bgColor)?e:new Cesium__namespace.Color(1,1,1),t.hasImage2=Cesium__namespace.defined(t.image2),t[i(1863)]=null!=(e=a.globalAlpha)?e:1,t}return _createClass(m,[{key:"getType",value:function(e){return LineFlow}},{key:_(777),value:function(e,t){var i=_;return(t=Cesium__namespace.defined(t)?t:{}).image=this.image,t[i(s)]=getCesiumColor(this.color,new Cesium__namespace.Color(1,1,1,0),e),t[i(r)]=getCesiumValue(this[i(1665)],Cesium__namespace.Cartesian2,e),t.axisY=this.axisY,t.mixt=this.mixt,t.speed=getCesiumValue(this.speed,Number,e),this.duration?(void 0===this[i(o)]&&(this._time=(new Date)[i(3756)]()),t[i(l)]=((new Date).getTime()-this._time)/(1e3*this.duration)):t.time=-1,t.hasImage2=this.hasImage2,t.image2=this.image2,t.color2=getCesiumColor(this.color2,new Cesium__namespace[i(c)](1,1,1),e),t.globalAlpha=this[i(1863)],t}},{key:"equals",value:function(e){var t=_;return this===e||e instanceof m&&Cesium__namespace.Property[t(2204)](this.color,e.color)&&Cesium__namespace.Property.equals(this.repeat,e[t(i)])&&this.image===e.image&&this.axisY===e[t(a)]&&this.speed===e.speed&&this.hasImage2===e.hasImage2&&this.image2===e.image2&&Cesium__namespace.Property.equals(this.color2,e[t(n)])}}]),m}()),LineTrailMaterialProperty=(registerPropertyClass(LineFlow,LineFlowMaterialProperty),function(){var i=2204,a=3277,n=3474,s=3535,r=2662,o=_0x1658de,l=(_inherits(c,BaseMaterialProperty),_createSuper(c));function c(){var e,t=_0x236b,i=0<arguments[t(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,c),(e=l.call(this,i)).color=getCesiumColor(i.color,new Cesium__namespace.Color(0,0,0,0)),e[t(n)]=getCesiumColor(i[t(n)],e.color[t(s)](.1)),e.speed=null!=(t=i[t(r)])?t:2,e.globalAlpha=null!=(t=i.globalAlpha)?t:1,e}return _createClass(c,[{key:"getType",value:function(e){return LineTrail}},{key:o(777),value:function(e,t){var i=o;return(t=Cesium__namespace[i(a)](t)?t:{})[i(2745)]=this.color,t[i(3474)]=this[i(3474)],t[i(2662)]=this[i(2662)],t.globalAlpha=this.globalAlpha,t}},{key:o(2204),value:function(e){var t=o;return this===e||e instanceof c&&Cesium__namespace.Property[t(i)](this.color,e.color)&&Cesium__namespace.Property.equals(this[t(3474)],e.bgColor)&&this.speed===e.speed}}]),c}()),LineDotDashMaterialProperty=(registerPropertyClass(LineTrail,LineTrailMaterialProperty),function(){var i=2745,a=3810,n=1863,s=2822,r=3480,o=(_inherits(l,BaseMaterialProperty),_createSuper(l));function l(){var e,t,i=_0x236b,a=0<arguments[i(s)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),(t=o[i(1567)](this,a)).color=getCesiumColor(a[i(2745)],new Cesium__namespace.Color(0,0,0,0)),t[i(2776)]=getCesiumColor(a.gapColor,Cesium__namespace[i(3096)][i(r)]),t.dashLength=null!=(e=a.dashLength)?e:16,t[i(3810)]=null!=(e=a.dashPattern)?e:255,t.globalAlpha=null!=(i=a.globalAlpha)?i:1,t}return _createClass(l,[{key:"getType",value:function(e){return LineDotDash}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=Cesium__namespace[i(3277)](t)?t:{}).color=this.color,t.gapColor=this.gapColor,t.dashLength=this.dashLength,t.dashPattern=this[i(3810)],t.globalAlpha=this[i(n)],t}},{key:"equals",value:function(e){var t=_0x236b;return this===e||e instanceof l&&Cesium__namespace.Property.equals(this[t(i)],e.color)&&Cesium__namespace.Property.equals(this.gapColor,e.gapColor)&&this.dashLength===e.dashLength&&this[t(a)]===e.dashPattern}}]),l}()),NeonLightMaterialProperty=(registerPropertyClass(LineDotDash,LineDotDashMaterialProperty),function(){var i=2204,a=2745,n=2662,s=2745,r=(_inherits(o,BaseMaterialProperty),_createSuper(o));function o(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,o),(e=r[t(1567)](this,i))[t(s)]=getCesiumColor(i[t(s)],Cesium__namespace[t(3096)].fromCssColorString(t(1515))),e.speed=null!=(t=i.speed)?t:2,e.globalAlpha=null!=(t=i.globalAlpha)?t:1,e}return _createClass(o,[{key:"getType",value:function(e){return NeonLight}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=Cesium__namespace[i(3277)](t)?t:{}).color=this[i(a)],t[i(n)]=this[i(2662)],t.globalAlpha=this.globalAlpha,t}},{key:"equals",value:function(e){var t=_0x236b;return this===e||e instanceof o&&Cesium__namespace.Property[t(i)](this.color,e[t(2745)])&&this.speed===e.speed}}]),o}()),LineThreeDashMaterialProperty=(registerPropertyClass(NeonLight,NeonLightMaterialProperty),function(){var i=2745,a=2745,n=1571,s=3096,r=1186,o=1863,l=1567,c=3096,h=3e3,u=3096,_=2038,p=1863,m=(_inherits(d,BaseMaterialProperty),_createSuper(d));function d(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,d),(t=m[i(l)](this,a)).color=getCesiumColor(a.color,Cesium__namespace[i(c)].RED),t.dashLength=null!=(e=a.dashLength)?e:16,t.widthRatio=null!=(e=a.widthRatio)?e:.1,t.sidesColor=getCesiumColor(a[i(h)],Cesium__namespace[i(u)].WHITE),t.sidesDashLength=null!=(e=a.sidesDashLength)?e:32,t.sidesWidthRatio=null!=(e=a[i(_)])?e:.1,t.dashPattern=null!=(e=a.dashPattern)?e:255,t[i(p)]=null!=(e=a.globalAlpha)?e:1,t}return _createClass(d,[{key:"getType",value:function(e){return LineThreeDash}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=Cesium__namespace.defined(t)?t:{}).color=getCesiumColor(this.color,Cesium__namespace.Color.RED,e),t[i(1186)]=this.dashLength,t.widthRatio=this[i(n)],t.sidesColor=getCesiumColor(this.sidesColor,Cesium__namespace[i(s)][i(3644)],e),t[i(361)]=this.sidesDashLength,t.sidesWidthRatio=this.sidesWidthRatio,t.dashLength=this[i(r)],t.globalAlpha=this[i(o)],t}},{key:"equals",value:function(e){var t=_0x236b;return this===e||e instanceof d&&Cesium__namespace.Property.equals(this[t(i)],e[t(a)])&&this.speed===e.speed}}]),d}()),ODLineMaterialProperty=(registerPropertyClass(LineThreeDash,LineThreeDashMaterialProperty),function(){var a=3474,n=2653,s=3205,r=1863,o=(_inherits(l,BaseMaterialProperty),_createSuper(l));function l(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),(t=o.call(this,a)).color=getCesiumColor(a.color,new Cesium__namespace.Color(.5*Math.random()+.5,.8*Math[i(n)]()+.2,0,1)),t.bgColor=getCesiumColor(a.bgColor,t.color.withAlpha(.1)),t.speed=null!=(e=a.speed)?e:20+10*Math.random(),t.startTime=null!=(e=a[i(1100)])?e:Math.random(),t.bidirectional=null!=(e=a[i(s)])?e:0,t[i(r)]=null!=(e=a.globalAlpha)?e:1,t}return _createClass(l,[{key:"getType",value:function(e){return ODLine}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=t?t:{})[i(2745)]=this.color,t.speed=this.speed,t.startTime=this.startTime,t[i(a)]=this.bgColor,t.bidirectional=this[i(3205)],t.globalAlpha=this.globalAlpha,t}},{key:"equals",value:function(e){var t=_0x236b;return this===e||e instanceof l&&Cesium__namespace.Property.equals(this.color,e.color)&&Cesium__namespace.Property.equals(this.bgColor,e[t(3474)])&&this.speed===e.speed&&this.startTime===e.startTime&&this[t(3205)]===e.bidirectional}}]),l}()),PolyAsphaltMaterialProperty=(registerPropertyClass(ODLine,ODLineMaterialProperty),function(){var e=2183,t=777,i=2745,a=3260,n=2745,s=3096,r=4004,o=_0x1658de,l=(_inherits(c,BaseMaterialProperty),_createSuper(c));function c(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,c),(t=l[i(1567)](this,a)).color=getCesiumColor(a.color,new Cesium__namespace[i(s)](0,0,0,0)),t.size=null!=(e=a.size)?e:.02,t[i(r)]=null!=(e=a.frequency)?e:.2,t.globalAlpha=null!=(i=a.globalAlpha)?i:1,t}return _createClass(c,[{key:o(e),value:function(e){return PolyAsphalt}},{key:o(t),value:function(e,t){var i=o;return(t=Cesium__namespace.defined(t)?t:{})[i(n)]=this[i(n)],t.size=this.size,t.frequency=this.frequency,t.globalAlpha=this.globalAlpha,t}},{key:"equals",value:function(e){var t=o;return this===e||e instanceof c&&Cesium__namespace.Property.equals(this[t(2745)],e[t(i)])&&this.frequency===e.frequency&&this[t(a)]===e.size}}]),c}()),PolyBlobMaterialProperty=(registerPropertyClass(PolyAsphalt,PolyAsphaltMaterialProperty),function(){var i=2830,a=2204,n=4003,s=(_inherits(r,BaseMaterialProperty),_createSuper(r));function r(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,r),(e=s.call(this,i)).evenColor=getCesiumColor(i[t(n)],new Cesium__namespace.Color(1,1,1,.5)),e.oddColor=getCesiumColor(i[t(4003)],new Cesium__namespace.Color(0,0,1,.5)),e[t(4004)]=null!=(t=i.frequency)?t:10,e.globalAlpha=null!=(t=i.globalAlpha)?t:1,e}return _createClass(r,[{key:"getType",value:function(e){return PolyBlob}},{key:"getValue",value:function(e,t){return(t=Cesium__namespace.defined(t)?t:{}).evenColor=this.evenColor,t.evenColor=this.oddColor,t.frequency=this.frequency,t.globalAlpha=this.globalAlpha,t}},{key:"equals",value:function(e){var t=_0x236b;return this===e||e instanceof r&&Cesium__namespace.Property.equals(this.evenColor,e.evenColor)&&Cesium__namespace[t(i)][t(a)](this.oddColor,e.oddColor)&&this.frequency===e.frequency}}]),r}()),PolyFacetMaterialProperty=(registerPropertyClass(PolyBlob,PolyBlobMaterialProperty),function(){var t=2026,e=_0x1658de,i=(_inherits(a,PolyBlobMaterialProperty),_createSuper(a));function a(){var e=_0x236b;return _classCallCheck(this,a),i[e(t)](this,arguments)}return _createClass(a,[{key:e(2183),value:function(e){return PolyFacet}}]),a}()),PolyGradientMaterialProperty=(registerPropertyClass(PolyFacet,PolyFacetMaterialProperty),function(){var a=1494,n=1863,s=_0x1658de,r=(_inherits(o,BaseMaterialProperty),_createSuper(o));function o(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,o),(t=r.call(this,a))[i(2745)]=getCesiumColor(a.color,new Cesium__namespace.Color(1,1,0,.5)),t.diffusePower=null!=(e=a.diffusePower)?e:1.6,t.alphaPower=null!=(e=a.alphaPower)?e:1.5,t[i(1494)]=null!=(e=a.center)?e:new Cesium__namespace.Cartesian2(.5,.5),t[i(1863)]=null!=(e=a.globalAlpha)?e:1,t}return _createClass(o,[{key:s(2183),value:function(e){return PolyGradient}},{key:"getValue",value:function(e,t){var i=s;return(t=Cesium__namespace.defined(t)?t:{}).color=this.color,t.diffusePower=this.diffusePower,t.alphaPower=this.alphaPower,t.center=this[i(a)],t.globalAlpha=this[i(n)],t}},{key:"equals",value:function(e){return this===e||e instanceof o&&Cesium__namespace.Property.equals(this.color,e.color)&&this.diffusePower===e.diffusePower}}]),o}()),PolyGrassMaterialProperty=(registerPropertyClass(PolyGradient,PolyGradientMaterialProperty),function(){var e=_0x1658de,t=(_inherits(i,PolyBlobMaterialProperty),_createSuper(i));function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:e(2183),value:function(e){return PolyGrass}}]),i}()),PolyWoodMaterialProperty=(registerPropertyClass(PolyGrass,PolyGrassMaterialProperty),function(){var i=4004,a=2284,n=4003,s=2480,r=_0x1658de,o=(_inherits(l,BaseMaterialProperty),_createSuper(l));function l(){var e,t,i=_0x236b,a=0<arguments[i(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),(t=o.call(this,a)).evenColor=getCesiumColor(a.evenColor,new Cesium__namespace.Color(1,1,1,.5)),t.oddColor=getCesiumColor(a[i(n)],new Cesium__namespace.Color(0,0,1,.5)),t.frequency=null!=(e=a.frequency)?e:10,t[i(s)]=null!=(e=a[i(2480)])?e:new Cesium__namespace.Cartesian2(.7,.5),t.grainFrequency=null!=(e=a[i(3488)])?e:27,t.globalAlpha=null!=(i=a.globalAlpha)?i:1,t}return _createClass(l,[{key:"getType",value:function(e){return PolyWood}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=Cesium__namespace.defined(t)?t:{}).evenColor=this[i(4003)],t.evenColor=this[i(a)],t.frequency=this.frequency,t.noiseScale=this.noiseScale,t.grainFrequency=this.grainFrequency,t.globalAlpha=this.globalAlpha,t}},{key:r(2204),value:function(e){var t=r;return this===e||e instanceof l&&Cesium__namespace.Property.equals(this[t(4003)],e.evenColor)&&Cesium__namespace.Property.equals(this.oddColor,e.oddColor)&&this[t(i)]===e[t(i)]}}]),l}()),RadarLineMaterialProperty=(registerPropertyClass(PolyWood,PolyWoodMaterialProperty),function(){var i=2830,a=2745,n=2745,s=2662,r=1863,o=(_inherits(l,BaseMaterialProperty),_createSuper(l));function l(){var e,t,i=_0x236b,a=0<arguments[i(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),(t=o.call(this,a)).color=getCesiumColor(a.color,new Cesium__namespace[i(3096)](0,0,0,0)),t.speed=null!=(e=a.speed)?e:5,t.globalAlpha=null!=(e=a[i(r)])?e:1,t}return _createClass(l,[{key:"getType",value:function(e){return RadarLine}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=Cesium__namespace[i(3277)](t)?t:{}).color=this[i(n)],t.speed=this[i(s)],t.globalAlpha=this.globalAlpha,t}},{key:"equals",value:function(e){var t=_0x236b;return this===e||e instanceof l&&Cesium__namespace[t(i)].equals(this[t(a)],e.color)&&this.speed===e.speed}}]),l}()),RadarWaveMaterialProperty=(registerPropertyClass(RadarLine,RadarLineMaterialProperty),function(){var i=2830,a=2204,n=2745,s=2662,r=2822,o=2662,l=_0x1658de,c=(_inherits(h,BaseMaterialProperty),_createSuper(h));function h(){var e,t=_0x236b,i=0<arguments[t(r)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,h),(e=c.call(this,i)).color=getCesiumColor(i.color,new Cesium__namespace.Color(0,0,0,0)),e[t(2662)]=null!=(t=i[t(o)])?t:5,e.globalAlpha=null!=(t=i.globalAlpha)?t:1,e}return _createClass(h,[{key:"getType",value:function(e){return RadarWave}},{key:l(777),value:function(e,t){var i=l;return(t=Cesium__namespace[i(3277)](t)?t:{})[i(2745)]=this.color,t[i(s)]=this.speed,t[i(1863)]=this.globalAlpha,t}},{key:"equals",value:function(e){var t=l;return this===e||e instanceof h&&Cesium__namespace[t(i)][t(a)](this.color,e[t(n)])&&this.speed===e.speed}}]),h}()),RectSlideMaterialProperty=(registerPropertyClass(RadarWave,RadarWaveMaterialProperty),function(){var i=613,a=3683,n=613,s=2662,r=2745,o=2662,l=_0x1658de,c=(_inherits(h,BaseMaterialProperty),_createSuper(h));function h(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,h),(e=c.call(this,i)).image=i.image,e[t(r)]=getCesiumColor(i.color,new Cesium__namespace.Color(1,1,1,.9)),e[t(o)]=null!=(t=i.speed)?t:1,e.pure=!!i.pure,e.globalAlpha=null!=(t=i.globalAlpha)?t:1,e}return _createClass(h,[{key:"getType",value:function(e){return RectSlide}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=Cesium__namespace.defined(t)?t:{}).image=this[i(n)],t.color=this.color,t[i(2662)]=this[i(s)],t.pure=this.pure,t.globalAlpha=this.globalAlpha,t}},{key:l(2204),value:function(e){var t=l;return this===e||e instanceof h&&Cesium__namespace.Property[t(2204)](this.color,e.color)&&this.image===e[t(i)]&&this.pure===e[t(a)]&&this.speed===e.speed}}]),h}()),ScanLineMaterialProperty=(registerPropertyClass(RectSlide,RectSlideMaterialProperty),function(){var a=1863,n=2745,s=(_inherits(r,BaseMaterialProperty),_createSuper(r));function r(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,r),(e=s.call(this,i)).color=getCesiumColor(i[t(n)],Cesium__namespace.Color.YELLOW),e.speed=null!=(t=i.speed)?t:10,e.globalAlpha=null!=(t=i.globalAlpha)?t:1,e}return _createClass(r,[{key:"getType",value:function(e){return ScanLine}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=Cesium__namespace.defined(t)?t:{}).color=this.color,t.speed=this[i(2662)],t[i(a)]=this[i(a)],t}},{key:"equals",value:function(e){var t=_0x236b;return this===e||e instanceof r&&Cesium__namespace.Property.equals(this[t(2745)],e.color)&&this.speed===e.speed}}]),r}()),TextMaterialProperty=(registerPropertyClass(ScanLine,ScanLineMaterialProperty),function(){var i=1703,a=1672,n=3419,e=1703,t=3045,s=2822,r=1672,o=3647,l=_0x1658de,c=(_inherits(h,Image2MaterialProperty),_createSuper(h));function h(){var e,t,i=_0x236b,a=0<arguments[i(s)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,h),a.font_size=null!=(t=a.font_size)?t:70,(t=c.call(this,a)).transparent=null==(e=a.transparent)||e,t._textStyles=LabelStyleConver[i(r)](a,{fill:!0,fillColor:new Cesium__namespace.Color(1,1,0,1),textBaseline:i(o),padding:10}),t._updateImage(),t}return _createClass(h,[{key:"text",get:function(){var e=_0x236b;return this.options[e(t)]},set:function(e){var t=_0x236b;this[t(1592)][t(3045)]=e,this._updateImage()}},{key:l(1064),get:function(){return this[l(e)]},set:function(e){var t=l;this[t(i)]=LabelStyleConver[t(a)](e,this[t(1703)]),this[t(n)]()}},{key:l(3419),value:function(){var e=l,t=this;this._canvas=getTextImage(this.options[e(3045)],this._textStyles),this._canvas&&(this.image=this[e(3108)],e=null==(e=this.options)?void 0:e.onCustomCanvas)&&e(this._canvas,this).then(function(e){t.image=copyCanvas(e)})}}]),h}()),WallScrollMaterialProperty=(registerPropertyClass(Text,TextMaterialProperty),function(){var i=2745,a=1731,n=2662,s=3277,r=613,o=3143,l=613,c=1731,h=1863,u=(_inherits(_,BaseMaterialProperty),_createSuper(_));function _(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,_),(t=u.call(this,a))[i(l)]=a.image,t.color=getCesiumColor(a.color,new Cesium__namespace.Color(0,0,0,1)),t.speed=null!=(e=a.speed)?e:10,t.count=null!=(e=a.count)?e:1,t[i(2013)]=null!=(e=a.reverse)&&e,t.axisY=null!=(e=a.axisY)&&e,t[i(c)]=null!=(e=a.bloom)&&e,t[i(h)]=null!=(e=a.globalAlpha)?e:1,t}return _createClass(_,[{key:"getType",value:function(e){return WallScroll}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=Cesium__namespace[i(s)](t)?t:{}).image=this[i(r)],t.color=this[i(2745)],t.speed=this.speed,t[i(3143)]=this[i(o)],t.reverse=this.reverse,t.axisY=this.axisY,t.bloom=this.bloom,t.globalAlpha=this.globalAlpha,t}},{key:"equals",value:function(e){var t=_0x236b;return this===e||e instanceof _&&Cesium__namespace.Property.equals(this.color,e[t(i)])&&this.image===e.image&&this.count===e.count&&this.reverse===e.reverse&&this.bloom===e[t(a)]&&this.speed===e[t(n)]}}]),_}()),WaterLightMaterialProperty=(registerPropertyClass(WallScroll,WallScrollMaterialProperty),function(){var i=3629,a=2509,n=2233,s=1863,r=(_inherits(o,BaseMaterialProperty),_createSuper(o));function o(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,o),(t=r.call(this,a)).specularMap=a.specularMap,t.normalMap=a[i(2233)]||Cesium__namespace.Material.DefaultImageId,t.alpha=null!=(e=a.alpha)?e:.2,t[i(s)]=null!=(e=a.globalAlpha)?e:1,t}return _createClass(o,[{key:"getType",value:function(e){return WaterLight}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=Cesium__namespace.defined(t)?t:{}).specularMap=this[i(a)],t.normalMap=this[i(n)],t.alpha=this.alpha,t.globalAlpha=this[i(1863)],t}},{key:"equals",value:function(e){var t=_0x236b;return this===e||e instanceof o&&this.specularMap===e.specularMap&&this.normalMap===e.normalMap&&this.alpha===e[t(i)]}}]),o}()),WaterMaterialProperty=(registerPropertyClass(WaterLight,WaterLightMaterialProperty),function(){var i=3001,a=2509,n=2854,s=1451,r=3648,o=4004,l=2854,c=(_inherits(h,BaseMaterialProperty),_createSuper(h));function h(){var e,t,i=_0x236b,a=0<arguments[i(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,h),(t=c.call(this,a))[i(1102)]=getCesiumColor(a[i(1102)],new Cesium__namespace.Color(.2,.3,.6,1)),t[i(s)]=getCesiumColor(a[i(s)],new Cesium__namespace.Color(0,1,.699,1)),t.specularMap=a.specularMap||Cesium__namespace.Material[i(3648)],t.normalMap=a[i(2233)]||Cesium__namespace.Material[i(r)],t[i(o)]=null!=(e=a.frequency)?e:1e3,t.animationSpeed=null!=(e=a.animationSpeed)?e:.01,t.amplitude=null!=(e=a.amplitude)?e:10,t.specularIntensity=null!=(e=a.specularIntensity)?e:.5,t[i(l)]=null!=(e=a.fadeFactor)?e:1,t[i(1863)]=null!=(e=a.globalAlpha)?e:1,t}return _createClass(h,[{key:"getType",value:function(e){return Water$1}},{key:"getValue",value:function(e,t){var i=_0x236b;return(t=t?t:{}).baseWaterColor=this.baseWaterColor,t.blendColor=this.blendColor,t[i(a)]=this.specularMap,t.normalMap=this.normalMap,t.frequency=this[i(4004)],t.animationSpeed=this.animationSpeed,t[i(1500)]=this.amplitude,t[i(3001)]=this[i(3001)],t[i(n)]=this.fadeFactor,1!==this.globalAlpha&&(t[i(1102)].alpha*=this[i(1863)],t[i(1451)][i(3629)]*=this.globalAlpha),t}},{key:"equals",value:function(e){var t=_0x236b;return this===e||e instanceof h&&this.baseWaterColor.equals(e[t(1102)])&&this.blendColor.equals(e.blendColor)&&this.specularMap===e.specularMap&&this.normalMap===e.normalMap&&this.frequency===e[t(4004)]&&this.animationSpeed===e.animationSpeed&&this.amplitude===e.amplitude&&this.specularIntensity===e[t(i)]&&this[t(2854)]===e[t(2854)]}}]),h}()),index$7=(registerPropertyClass(Water$1,WaterMaterialProperty),{__proto__:null,TextMaterial:TextMaterial,CylinderWaveMaterial:CylinderWaveMaterial,BaseMaterialProperty:BaseMaterialProperty,CircleScanMaterialProperty:CircleScanMaterialProperty,CircleWaveMaterialProperty:CircleWaveMaterialProperty,CylinderWaveMaterialProperty:CylinderWaveMaterialProperty,DigitalFlowMaterialProperty:DigitalFlowMaterialProperty,EllipsoidElectricMaterialProperty:EllipsoidElectricMaterialProperty,EllipsoidWaveMaterialProperty:EllipsoidWaveMaterialProperty,Image2MaterialProperty:Image2MaterialProperty,LineBloomMaterialProperty:LineBloomMaterialProperty,LineFlickerMaterialProperty:LineFlickerMaterialProperty,LineFlowColorMaterialProperty:LineFlowColorMaterialProperty,LineFlowMaterialProperty:LineFlowMaterialProperty,LineTrailMaterialProperty:LineTrailMaterialProperty,LineDotDashMaterialProperty:LineDotDashMaterialProperty,NeonLightMaterialProperty:NeonLightMaterialProperty,LineThreeDashMaterialProperty:LineThreeDashMaterialProperty,ODLineMaterialProperty:ODLineMaterialProperty,PolyAsphaltMaterialProperty:PolyAsphaltMaterialProperty,PolyBlobMaterialProperty:PolyBlobMaterialProperty,PolyFacetMaterialProperty:PolyFacetMaterialProperty,PolyGradientMaterialProperty:PolyGradientMaterialProperty,PolyGrassMaterialProperty:PolyGrassMaterialProperty,PolyWoodMaterialProperty:PolyWoodMaterialProperty,RadarLineMaterialProperty:RadarLineMaterialProperty,RadarWaveMaterialProperty:RadarWaveMaterialProperty,RectSlideMaterialProperty:RectSlideMaterialProperty,ScanLineMaterialProperty:ScanLineMaterialProperty,TextMaterialProperty:TextMaterialProperty,WallScrollMaterialProperty:WallScrollMaterialProperty,WaterLightMaterialProperty:WaterLightMaterialProperty,WaterMaterialProperty:WaterMaterialProperty}),BaseGraphic=function(){var e=2451,t=1744,i=2071,a=3533,n=3820,s=3036,r=3821,o=1434,l=1941,c=1567,h=2056,u=3050,_=3794,p=2631,m=3047,d=1592,f=3794,y=3817,v=3817,g=3794,C=2818,x=1862,b=3817,k=3817,P=2723,w=2642,S=3794,T=3794,H=1588,F=2818,N=2818,G=626,z=2209,B=2353,M=3817,j=2354,V=1873,$=3898,U=3817,W=1802,J=1740,q=1592,Y=1980,Z=1307,X=758,Q=3817,K=2465,ee=3686,te=640,ie=1740,ae=1640,ne=3497,E=1592,se=3178,re=640,oe=1740,le=2492,ce=3764,he=3069,ue=931,_e=1336,pe=1592,A=2492,me=2492,de=3451,fe=2206,ye=640,ve=2532,ge=888,Ce=1592,xe=1592,be=1997,ke=2338,Pe=2492,we=1592,Se=1286,Te=476,Me=1025,Ee=1592,L=3817,Ae=3463,D=368,Le=2697,De=2818,I=3817,Ie=2697,Oe=1592,Re=2697,He=864,Fe=417,Ne=2818,Ge=1997,ze=406,Be=676,je=2377,Ve=1997,$e=2544,Ue=417,We=2544,Je=2432,qe=3614,Ye=1567,Ze=2568,Xe=4023,O=_0x1658de,Qe=(_inherits(R,BaseClass),_createSuper(R));function R(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),a[i(2492)]=a.style||{},a.attr=a.attr||{},(t=Qe[i(Ye)](this,a)).options=a,t._id=null!=(e=null!=(e=a.id)?e:a.attr.id)?e:createGuid(),t._name=a.name||a.attr.name||"",t[i(2544)]=null==(e=a.show)||e,t._private=a.private,a.popup&&t.bindPopup(a.popup,a.popupOptions),a[i(Ze)]&&t.bindTooltip(a.tooltip,a.tooltipOptions),a.contextmenuItems&&t.bindContextMenu(a.contextmenuItems,a.contextmenuItemsOptions),t._state=State[i(Xe)],t}return _createClass(R,[{key:"type",get:function(){return this._type}},{key:"id",get:function(){return this._id},set:function(e){this._id=e}},{key:"uuid",get:function(){return this._id}},{key:"state",get:function(){return this._state}},{key:"isAdded",get:function(){return this[_0x236b(1941)]===State.ADDED}},{key:"isDestroy",get:function(){var e=_0x236b;return this._state===State[e(qe)]||!this[e(1592)]}},{key:"isPrivate",get:function(){return!!this._private}},{key:"czmObject",get:function(){return null}},{key:O(e),get:function(){return null}},{key:"show",get:function(){return this._show},set:function(t){var e=O;this[e($e)]!==t&&(this._show=t,this[e(417)]&&(this[e(Ue)].show=this[e(We)]),this.czmObjectEx&&this.czmObjectEx[e(Je)](function(e){e.show=t}),this._showHook&&this._showHook(t),t?this.fire(EventType.show):this.fire(EventType.hide))}},{key:"name",get:function(){return this._name},set:function(e){this._name=e}},{key:O(1740),get:function(){return this.options.attr},set:function(e){var t=O;this.options.attr=e,this[t(Ve)](EventType[t(2338)],{attr:e},!0)}},{key:"style",get:function(){var e,t=O;return null==(e=this.options)?void 0:e[t(2492)]},set:function(e){this.setStyle(e)}},{key:O(3503),get:function(){return this[O(1592)].allowDrillPick},set:function(e){this.options.allowDrillPick=e}},{key:"hasEdit",get:function(){return this._hasEdit&&Boolean(this.EditClass||this._getDrawEntityClass)},set:function(e){this._hasEdit=e}},{key:"enabledEvent",get:function(){var e=O;return this._layer?this._layer[e(544)]&&this[e(592)]:this._enabledEvent},set:function(e){this[O(592)]=e}},{key:O(1494),get:function(){return null}},{key:"centerPoint",get:function(){return LngLatPoint.fromCartesian(this.center)}},{key:"hasOpacity",get:function(){return!0}},{key:O(4062),value:function(e){return e&&e[O(3840)]&&e.addGraphic(this),this}},{key:"remove",value:function(e){var t=O;this._layer&&this._layer[t(je)](this,e)}},{key:"bindPickId",value:function(e){var t,i=O;return e[i(811)]=null==(t=this._layer)?void 0:t.id,e[i(Be)]=this.id,this}},{key:"_onAdd",value:function(e){var t,i=O,a=this;this._state!==State[i(585)]&&(this._layer=e,this[i(3817)]=e[i(I)],this[i(I)]||logWarn("BaseGraphic:为了避免异常问题,请将图层添加到Map上再进行添加矢量数据的操作!"),this[i(1592)].eventParent?this.addEventParent(this.options[i(Ie)]):!1!==(null==(t=this[i(Oe)])?void 0:t[i(Re)])&&this[i(He)](e),!this[i(Fe)]&&this._mountedHook&&this._mountedHook(),this._addedHook&&this._addedHook(this.style),null!=(t=this[i(Ne)])&&t._highlightOptions||(this.style[i(2465)]?this.bindHighlight(this.style[i(2465)]):this.options.highlight&&this.bindHighlight(this[i(1592)].highlight)),this.czmObject&&this.bindPickId(this.czmObject),this.czmObjectEx&&this.czmObjectEx[i(2432)](function(e){a.bindPickId(e)}),this._state=State.ADDED,this[i(Ge)](EventType[i(3605)]),this[i(1592)][i(ze)]&&this.flyTo({duration:0}),!this.isPrivate)&&this[i(544)]&&this._layer.fire(EventType.addGraphic,{graphic:this},!0)}},{key:"_onRemove",value:function(){var e,t=O;this._state===State.ADDED&&this._layer&&this.options&&(this[t(2115)](),this.unbindHighlight(),this.update&&this.unbindUpdateEvent(),this._removedHook&&this._removedHook(),this.options)&&(this._state=State.REMOVED,this[t(1997)](EventType.remove),!this.isPrivate&&this[t(544)]&&this._layer.fire(EventType.removeGraphic,{graphic:this},!0),null!=(e=this.options)&&e.eventParent?this[t(D)](this.options[t(Le)]):!1!==(null==(e=this[t(1592)])?void 0:e.eventParent)&&this[t(D)](this[t(De)]),this._layer=null,this._map=null)}},{key:O(t),value:function(){}},{key:"_addedHook",value:function(e){}},{key:O(i),value:function(){}},{key:"enableControl",value:function(e){var t=O;this._map[t(539)].enabledMoveTarget=e,this[t(L)].popup&&(this[t(L)][t(1286)].enabled=e),this._map.tooltip&&(this._map.tooltip.enabled=e),this._map.contextmenu&&(this._map.contextmenu[t(Ae)]=e)}},{key:O(a),value:function(e){var t=O;if(e&&0!==Object[t(fe)](e).length){for(var i in e){var a=e[i];switch(i){case t(ye):case"show":case t(ve):case"positions":case t(ge):this[t(Ce)][i]=a,this[i]=a;break;case"orientation":this.options[i]=a,this.czmObject[i]=a;break;case"attr":this[t(1592)][t(1740)]=merge(this[t(xe)].attr,e.attr),this[t(be)](EventType[t(ke)],{attr:e.attr},!0);break;case"style":this[t(1592)].style=merge(this.options.style,e[t(Pe)]),this._updateStyleBaseHook(e.style),this[t(1997)](EventType.updateStyle,{style:e[t(2492)]},!0);break;default:isObject(a)?this.options[i]=merge(this.options[i],a):this[t(we)][i]=a}}(e[t(Se)]||e.popupOptions)&&this[t(Te)](this.options[t(1286)],this.options[t(Me)]),(e.tooltip||e.tooltipOptions)&&this.bindTooltip(this.options.tooltip,this[t(1592)].tooltipOptions),(e.contextmenuItems||e.contextmenuItemsOptions)&&this.bindContextMenu(this.options.contextmenuItems,this.options.contextmenuItemsOptions),this._setOptionsHook&&this._setOptionsHook(this[t(Ee)],e)}return this}},{key:"setStyle",value:function(e){var t,i=O;return e[i(_e)]&&delete this[i(pe)][i(A)].material,e.materialType&&this.options[i(2492)].materialOptions&&delete this[i(1592)][i(me)][i(de)],this.options.style=merge(this.options[i(A)],e),null!=(t=this._layer)&&t._highlightOptions||!Cesium__namespace.defined(e.highlight)||(e.highlight?this.bindHighlight(this.style[i(2465)]):this.unbindHighlight()),this._updateStyleBaseHook(e),this.fire(EventType.updateStyle,{style:e},!0),this}},{key:O(n),value:function(e){}},{key:"setOpacity",value:function(e){var t=O,i=this;clearTimeout(this[t(931)]),this[t(ue)]=setTimeout(function(){i.isAdded&&i.setStyle({globalAlpha:e})},500)}},{key:"toGeoJSON",value:function(e){var t=O,i={type:"Feature",properties:_objectSpread2(_objectSpread2({name:this[t(re)]},this[t(oe)]),{},{id:this.id,type:this[t(1488)],style:this._style2JsonBase(this[t(le)],!0)})};return this._getGeoJsonGeometry?i.geometry=this._getGeoJsonGeometry(e):this[t(2532)]?i.geometry={type:"Point",coordinates:this.getCoordinate(null==e?void 0:e.noAlt)}:this.positions&&(i.geometry={type:"LineString",coordinates:this[t(ce)](null==e?void 0:e.noAlt)}),Cesium__namespace.defined(this.options.styleType)&&(i[t(he)].styleType=this.options.styleType),this._toJSON_Ex&&this._toJSON_Ex(i.properties),i}},{key:"toJSON",value:function(){var e=O,t=_objectSpread2(_objectSpread2({},getAttrVal(this.options,{onlySimpleType:!0})),{},{id:this.id,name:this[e(te)],type:this.type,attr:this[e(ie)],style:this._style2JsonBase(this.style,!1)});return this._getJsonPositions?this[e(ae)](t):this.coordinate?t.position=this.coordinate:this[e(ne)]?t.positions=this.coordinates:logError$1(e(1376),this),Cesium__namespace.defined(this[e(E)][e(1879)])&&this[e(E)].styleType!==this.type&&(t.styleType=this.options.styleType),this[e(se)]&&this._toJSON_Ex(t),t}},{key:"_style2JsonBase",value:function(e,t){var i,a=O;return this[a(1748)]?(i=this._style2Json(e),e[a(K)]&&(i.highlight=this._style2Json(e.highlight))):i=getAttrVal(e,{onlySimpleType:!0}),e[a(3686)]&&(i[a(ee)]=LabelStyleConver.toJSON(e.label)),e.outlineStyle&&(i[a(1003)]=PolylineStyleConver.toJSON(e.outlineStyle)),i}},{key:"bindUpdateEvent",value:function(){var e=O;this.update&&this._map&&(this.unbindUpdateEvent(),this._map.on(EventType.preRender,this._map_preRenderHandler,this),this[e(1663)](this._map.scene))}},{key:"unbindUpdateEvent",value:function(){var e=O;this[e(Q)]&&this[e(3817)].off(EventType.preRender,this._map_preRenderHandler,this)}},{key:"_map_preRenderHandler",value:function(e){var t,i=O;if(this._map){if(null!=(t=this.options)&&t[i(2640)]&&this._last_preUpdateTime)if(e._frameState.frameNumber-this._last_preUpdateTime<this.options[i(2640)])return;this._last_preUpdateTime=e[i(1172)].frameNumber,this[i(X)](e._frameState)}}},{key:O(s),value:function(e){var t=O,i=this.positionsShow||this[t(1980)];return i&&0<i.length?getRectangle(i,null==e?void 0:e.isFormat):this.position?getRectangle([this.position],null==e?void 0:e[t(Z)]):void 0}},{key:"getMaxHeight",value:function(){var e=this.positionsShow||this.positions;return e&&0<e.length?getMaxHeight(e):this.position?getRectangle(this.position):0}},{key:"fire",value:function(e){var t=O,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=2<arguments.length?arguments[2]:void 0;return i.graphic=this,_get(_getPrototypeOf(R[t(2385)]),"fire",this).call(this,e,i,a)}},{key:"flyTo",value:function(){var e,t=O,i=0<arguments[t(2822)]&&void 0!==arguments[0]?arguments[0]:{};return this._map?(this.options[t(3850)]&&(i=_objectSpread2(_objectSpread2({},this[t(q)].flyToOptions),i)),this.positionsShow?e=this.positionsShow:this[t(Y)]?e=this[t(1980)]:this[t(2532)]&&(e=[this.position]),i.clampToGround=this.style.clampToGround,this._map.flyToPositions(e,i)):Promise.resolve(!1)}},{key:"getAddHeight",value:function(){var e=O,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,i=this.style.addHeight;return Cesium__namespace.defined(i)?(isString(i)?(i=Number(template(i,this[e(J)],!0)),isNaN(i)&&(i=0)):Array.isArray(i)&&(i=i[t]||0),i):0}},{key:O(2949),value:function(e){var t=O;this.unbindHighlight(),this._highlightOptions=e,this[t(2354)].type===EventType.click?this.on(EventType[t(W)],this[t(3507)],this):(this.on(EventType.mouseOver,this._highlight_mouseEventHandler,this),this.on(EventType.mouseOut,this._highlight_mouseOutHandler,this))}},{key:"unbindHighlight",value:function(){var e=O;this[e(j)]&&(this._highlightOptions.type===EventType.click?this.off(EventType.click,this._highlight_mouseEventHandler,this):(this.off(EventType[e(V)],this._highlight_mouseEventHandler,this),this.off(EventType.mouseOut,this[e($)],this)),this[e(U)].closeHighlight(),this._highlightOptions=null)}},{key:"_highlight_mouseEventHandler",value:function(e){var t,i=O;this[i(3817)]&&((t=null==e?void 0:e[i(B)])?this[i(M)].openHighlight(t,this[i(2354)],e):this[i(M)].closeHighlight())}},{key:"_highlight_mouseOutHandler",value:function(e){this[O(3817)].closeHighlight()}},{key:"_closeAllControl",value:function(){var e=O;this[e(G)](),this.closeTooltip(),this.closeSmallTooltip(),this[e(z)]()}},{key:O(2642),value:function(){var e=O;return this.position||this[e(1494)]}},{key:"hasPopup",value:function(e){return Boolean(this.getPopupConfig(e))}},{key:"getPopupConfig",value:function(){var e=O,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return this[e(H)]?_objectSpread2({},this._popupConfig):t&&null!=(t=this[e(F)])&&t[e(1588)]?_objectSpread2({},this[e(N)]._popupConfig):null}},{key:"bindPopup",value:function(e){var t=O;return this._popupConfig={content:e,options:(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{})||this.options.popupOptions,graphic:this,layer:this._layer},this[t(S)]&&this[t(T)]("popup"),this}},{key:"unbindPopup",value:function(e){var t=O;return this._popupConfig=!e&&null,this[t(3794)]&&this[t(3794)]("popup"),this}},{key:"openPopup",value:function(e,t){var i=O,a=this.getPopupConfig();return a&&this[i(k)]&&(t&&(a[i(P)]=t),a.graphic=this,a.layer=this[i(2818)],this._map.popup[i(3050)](e||this[i(w)](),a)),this}},{key:O(626),value:function(){return this[O(b)]&&this._map.popup.close(this),this}},{key:"getPopup",value:function(){if(this._map)return this._map.popup.getPopup(this)}},{key:"hasTooltip",value:function(e){return Boolean(this[O(x)](e))}},{key:"getTooltipConfig",value:function(){var e=O,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return this._tooltipConfig?_objectSpread2({},this._tooltipConfig):t&&null!=(t=this._layer)&&t._tooltipConfig?_objectSpread2({},this[e(C)]._tooltipConfig):null}},{key:"bindTooltip",value:function(e,t){var i=O;return this[i(669)]={content:e,options:t||this.options[i(2408)]},this[i(g)]&&this._onEventHook("tooltip"),this}},{key:"unbindTooltip",value:function(e){var t=O;return this._tooltipConfig=!e&&null,this[t(3794)]&&this._onEventHook("tooltip"),this}},{key:"openTooltip",value:function(e,t){var i=O,a=this.getTooltipConfig();return a&&this[i(v)]&&(a.graphic=this,a.layer=this._layer,t&&(a[i(2723)]=t),this._map[i(2568)].open(e||this._getPopupPosition(),a)),this}},{key:O(r),value:function(){var e=O;return this[e(y)]&&this._map[e(2568)].close(this),this}},{key:O(2256),value:function(){if(this._map)return this._map.tooltip.getTooltip(this)}},{key:"hasContextMenu",value:function(e){return Boolean(this.getContextMenu(e))}},{key:"getContextMenu",value:function(){var e,t=O;return this._contextmenuConfig||((!(0<arguments.length&&void 0!==arguments[0])||arguments[0])&&null!=(e=this[t(2818)])&&e[t(3047)]?this._layer._contextmenuConfig:null)}},{key:"bindContextMenu",value:function(e,t){var i=O;return this[i(m)]={content:e,options:t||this[i(d)].contextmenuOptions,graphic:this,layer:this[i(2818)]},this._onEventHook&&this[i(f)]("contextMenu"),this}},{key:"unbindContextMenu",value:function(e){var t=O;return this._contextmenuConfig=!e&&null,this[t(_)]&&this[t(3794)](t(p)),this}},{key:"openContextMenu",value:function(e){var t=O,i=this.getContextMenu();return i&&this._map&&(i.graphic=this,i.layer=this[t(2818)],this._map.contextmenu[t(u)](e||this._getPopupPosition(),i)),this}},{key:"closeContextMenu",value:function(){return this[O(h)]()&&this._map&&this._map.contextmenu.close(this),this}},{key:O(o),value:function(e,t){var i=O;return this._map&&this[i(3817)].openSmallTooltip(e,t),this}},{key:"closeSmallTooltip",value:function(){return this._map&&this._map.closeSmallTooltip(),this}},{key:"destroy",value:function(e){var t=O;this._state===State.DESTROY||this._noDestroy||(this[t(l)]!==State.REMOVED&&(this.clear&&this[t(1404)](),this.remove()),_get(_getPrototypeOf(R.prototype),"destroy",this)[t(c)](this,e),this._state=State.DESTROY)}}]),R}(),FlickerEntity=function(){var s=3003,r=1482,o=2635,l=2635,c=1377,h=1336,u=3089,_=453,p=3113,m=921,d=2008,f=2745,y=620,v=883,g=2745,C=3686,x=3686,b=_0x1658de;function e(){_classCallCheck(this,e),this.color=Cesium__namespace.Color.YELLOW.withAlpha(0)}return _createClass(e,[{key:"startFlicker",value:function(e){var t,i=2745,a=_0x236b,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},s=this;return this[a(2739)](),this.entitys=e,this[a(2635)]=null!=(t=n[a(o)])?t:.3,this.time=n.time,this[a(2745)]=null!=(t=n.color)?t:Cesium__namespace.Color.YELLOW,this.color=this.color[a(3535)](this[a(l)]),this.onEnd=n.onEnd,this._startTime(),loopArrayForFun(e,function(e){var t=a;e.polygon&&(e[t(c)].material_bak=e[t(1377)][t(1336)],e[t(1377)].material=new Cesium__namespace.ColorMaterialProperty(new Cesium__namespace.CallbackProperty(function(e){return s.color},!1))),e.polyline&&(e.polyline.material_bak=e.polyline[t(h)],e[t(u)].material=new Cesium__namespace[t(_)](new Cesium__namespace.CallbackProperty(function(e){return s.color},!1))),e[t(p)]&&(e.ellipsoid.material_bak=e.ellipsoid.material,e.ellipsoid.material=new Cesium__namespace.ColorMaterialProperty(new Cesium__namespace.CallbackProperty(function(e){return s.color},!1))),e.ellipse&&(e[t(m)].material_bak=e[t(m)].material,e.ellipse.material=new Cesium__namespace.ColorMaterialProperty(new Cesium__namespace.CallbackProperty(function(e){return s[t(i)]},!1))),e.rectangle&&(e[t(3222)].material_bak=e.rectangle.material,e[t(3222)].material=new Cesium__namespace.ColorMaterialProperty(new Cesium__namespace.CallbackProperty(function(e){return s.color},!1))),e[t(d)]&&(e.wall.material_bak=e.wall.material,e.wall.material=new Cesium__namespace.ColorMaterialProperty(new Cesium__namespace.CallbackProperty(function(e){return s[t(2745)]},!1))),e.point&&(e.point.color_bak=e[t(620)][t(f)],e[t(y)].color=s.color),e[t(883)]&&(e.billboard.color_bak=e[t(v)].color,e.billboard.color=s.color),e.model&&(e.model.color_bak=e.model[t(g)],e.model[t(2745)]=s.color),e[t(3686)]&&(e.label.fillColor_bak=e[t(C)].fillColor,e[t(x)].fillColor=s[t(2745)])}),this}},{key:"stopFlicker",value:function(){var i=3139,a=1336,n=3139,s=2745,r=883,o=2263,l=2970,c=3686,h=3160,e=_0x236b;return this._stopTime(),this.entitys&&(loopArrayForFun(this.entitys,function(e){var t=_0x236b;e.polygon&&e.polygon.material_bak&&(e.polygon.material=e.polygon.material_bak),e.polyline&&e.polyline.material_bak&&(e.polyline.material=e.polyline[t(i)]),e.ellipsoid&&e.ellipsoid.material_bak&&(e.ellipsoid[t(a)]=e[t(3113)][t(i)]),e.ellipse&&e[t(921)].material_bak&&(e.ellipse.material=e.ellipse[t(n)]),e.rectangle&&e[t(3222)].material_bak&&(e.rectangle.material=e.rectangle.material_bak),e.wall&&e[t(2008)].material_bak&&(e.wall.material=e.wall.material_bak),e.point&&e.point[t(2263)]&&(e[t(620)][t(s)]=e.point.color_bak),e.billboard&&(e[t(r)][t(o)]?e[t(883)][t(s)]=e.billboard.color_bak:e.billboard.color=void 0),e.model&&(e.model[t(2263)]?e[t(l)].color=e.model.color_bak:e[t(2970)].color=void 0),e[t(c)]&&e[t(c)].fillColor_bak&&(e[t(3686)][t(h)]=e.label.fillColor_bak)}),this.onEnd&&this[e(2763)](this[e(2542)]),delete this.entitys),this}},{key:b(1482),value:function(){var i=3160,a=this;this.entitys&&loopArrayForFun(this.entitys,function(e){var t=_0x236b;e.point&&(e.point.color=a.color),e.billboard&&(e.billboard.color=a.color),e.model&&(e.model.color=a.color),e.label&&(e.label[t(i)]=a.color)})}},{key:"_startTime",value:function(){var e=2739,t=b,i=this,a=this[t(2635)]/30,n=0;this.interVal=setInterval(function(){var e=t;(n+=a)>i[e(2635)]&&(n=0),i.color=i.color.withAlpha(n),i[e(r)]()},30),this[t(s)]&&(this[t(1170)]=setTimeout(function(){i[t(e)]()},1e3*this.time))}},{key:b(3290),value:function(){var e=b;this.interVal&&(clearInterval(this[e(3183)]),this[e(3183)]=null),this.timeEndVal&&(clearTimeout(this.timeEndVal),this[e(1170)]=null)}}]),e}();function loopArrayForFun(e,t){var i=_0x1658de;if(null!=e)if(Array[i(2255)](e))for(var a=[],n=0,s=e.length;n<s;n++)a.push(t(e[n]));else t(e)}var BaseEntity=function(){var e=1744,t=1522,i=678,a=2292,n=3165,s=1477,r=1874,o=2383,l=2383,c=2383,h=4087,u=3435,_=1456,p=3670,m=2822,d=2779,f=1257,y=349,v=3817,g=1708,C=1187,x=2917,b=1206,k=2822,P=4071,w=630,S=1997,T=1162,M=1162,E=1592,A=1329,L=2917,H=3993,F=1496,N=3097,G=3378,z=2464,B=3067,j=3752,V=3089,$=1980,U=3121,W=2130,J=2116,q=2822,D=3135,Y=3277,Z=1609,X=3135,Q=3135,I=2116,K=2822,ee=3135,te=3089,ie=1980,ae=1980,ne=3744,se=3917,re=2116,oe=2663,le=3096,ce=1220,he=2818,ue=2822,_e=1488,pe=3235,me=360,de=3686,fe=332,ye=1494,ve=784,ge=3159,Ce=3159,xe=2492,be=3277,ke=2797,Pe=4045,we=2492,Se=1672,Te=4045,Me=3235,Ee=2797,Ae=3235,Le=3159,De=1187,Ie=3686,Oe=1863,Re=1740,He=635,Fe=1592,Ne=2492,Ge=2492,ze=3817,Be=2492,je=2085,Ve=2941,$e=2116,Ue=3459,We=3235,Je=2738,qe=4071,Ye=2451,Ze=2432,Xe=1614,Qe=2738,Ke=1592,et=1980,tt=1592,it=2532,at=2532,nt=3686,st=620,rt=2981,ot=2797,lt=2116,O=_0x1658de,ct=(_inherits(R,BaseGraphic),_createSuper(R));function R(){return _classCallCheck(this,R),ct.apply(this,arguments)}return _createClass(R,[{key:O(2244),get:function(){var e;return null==(e=this._layer)?void 0:e.dataSource}},{key:"czmObject",get:function(){return this._entity}},{key:"czmObjectEx",get:function(){var e=O,t=[];return this[e(ot)]&&t.push(this._primitive_label),t=this._entity_outlines?t[e(2557)](this[e(lt)]):t}},{key:"entity",get:function(){return this[O(rt)]}},{key:"entityGraphic",get:function(){var e,t=O;return null==(e=this._entity)?void 0:e[t(st)]}},{key:O(3686),get:function(){var e,t=O;return this._primitive_label||(null!=(e=this._entity)&&e[t(nt)]?this._entity.label:null!=(e=this.style)&&e[t(3686)]?null==(e=this.style)?void 0:e.label:{})}},{key:O(3804),get:function(){return this._enabledEdit}},{key:O(1158),value:function(){var e=O,t=(this.enabledEvent=!1,this._cancelPositionsCallback(),this._layer);this._onRemove(),delete this._entity,this[e(Ke)].positions&&(this[e(et)]=this.options.positions),this[e(tt)].position&&(this[e(it)]=this.options[e(at)]),this[e(721)](t),this[e(544)]=!0}},{key:O(e),value:function(){}},{key:"_addedHook",value:function(e){var i=O,a=this;this.dataSource[i(2738)].add(this.czmObject),this[i(Ye)][i(Ze)](function(e){var t=i;e instanceof Cesium__namespace.Entity&&a[t(2244)][t(Qe)].add(e)}),this._clampToGround_reload&&(this[i(1760)]=this.style[i(Xe)])}},{key:"_removedHook",value:function(){var i=O,a=this;this.stopDraw(),this.stopEditing(),this.czmObject&&this.dataSource[i(2738)].remove(this[i(417)]),this.czmObjectEx&&this.czmObjectEx.forEach(function(e){var t=i;e instanceof Cesium__namespace.Entity&&a.dataSource[t(Je)][t(qe)](e)}),this._primitive_label&&(this._layer[i(We)][i(4071)](this._primitive_label),delete this._primitive_label)}},{key:O(t),value:function(e){var t=O;return e.entityCollection&&e.entityCollection.remove(e),e[t(1718)]=this.id,e}},{key:"_updateEditDraggers",value:function(){var e;null!=(e=this[O(1970)])&&e.enabled&&this.editing.updateDraggers()}},{key:"_updateStyleBaseHook",value:function(e){var t=O;if(this.czmObject&&e){if(!this._clampToGround_reload||!Cesium__namespace[t(3277)](e.clampToGround)||e.clampToGround===this._clampToGround_last)return(Cesium__namespace.defined(e.setHeight)||Cesium__namespace.defined(e.addHeight))&&(this._positions_draw?(this.positions=this._positions_draw,this.updateAttrForDrawing(!1)):this.positions=this.positionsShow),this._updateStyleHook(this.style,e),this._updateLabelStyleHook(this.style,e),this[t(3459)]&&this._updateOutlineStyle(this[t(Ue)](),this[t(2492)]),this._updateExOpacity&&Cesium__namespace.defined(e.globalAlpha)&&this._updateExOpacity(e[t(1863)]),this._isCallbackPositions&&this._updateDistanceDisplayConditionByEdit(),null!=(t=this.editing)&&t.enabled&&this.editing._updateStyleHook(e),this;this.reload(),this._clampToGround_last=e.clampToGround}}},{key:"_updateDistanceDisplayConditionByEdit",value:function(){var e=O,t=this.center,i=t?Cesium__namespace.Cartesian3.distance(t,new Cesium__namespace[e(784)]):(Cesium__namespace.Ellipsoid.WGS84.minimumRadius+Cesium__namespace[e(3016)].WGS84.maximumRadius)/2;if(this._isCallbackPositions?this.updateDistanceDisplayCondition(i):this[e(574)](),this[e($e)])for(var a=0,n=this._entity_outlines.length;a<n;a++){var s=this[e(2116)][a].polyline;this[e(2492)][e(1921)]?s.positions instanceof Cesium__namespace.CallbackProperty&&this.style.clampToGround?this[e(3958)](s,i):this.updateOutlinesDistanceDisplayCondition(s):s.distanceDisplayCondition=void 0}}},{key:"updateDistanceDisplayCondition",value:function(){var e=O,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;this.style.distanceDisplayCondition?this[e(3135)].distanceDisplayCondition=new Cesium__namespace.DistanceDisplayCondition(Number((null!=(e=this.style.distanceDisplayCondition_near)?e:0)+t),Number((null!=(e=this.style.distanceDisplayCondition_far)?e:1e5)+t)):this.entityGraphic.distanceDisplayCondition=void 0}},{key:"updateOutlinesDistanceDisplayCondition",value:function(e){var t=O,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;e.distanceDisplayCondition=new Cesium__namespace.DistanceDisplayCondition(Number((null!=(e=this[t(2492)].distanceDisplayCondition_near)?e:0)+i),Number((null!=(e=this.style[t(Ve)])?e:1e5)+i))}},{key:O(3692),value:function(e,t){}},{key:O(3723),value:function(e){var t=O,e=((!(1<arguments.length&&void 0!==arguments[1])||arguments[1])&&(this[t(ze)][t(1803)](),this._map.last_highlighGraphic=this),e||this._highlightOptions||(null==(e=this._layer)?void 0:e._highlightOptions));if(e){var i,a=[];for(i in e)"type"===i||Cesium__namespace.defined(this[t(Be)][i])||a.push(i);0<a.length&&logWarn(t(je),a);var n=merge(clone(this[t(2492)]),e);this._updateStyleHook(n,e),this._updateLabelStyleHook(n,e),this.fire(EventType.highlightOpen,{},!0)}}},{key:"closeHighlight",value:function(){var e,t=O;this[t(1941)]===State.ADDED&&(null==(e=this._map)?void 0:e.last_highlighGraphic)===this&&(this._updateStyleHook(this.style,this[t(Ne)]),this._updateLabelStyleHook(this.style,this[t(Ge)]),this._map._clearLastHighlight(),this.fire(EventType.highlightClose,{},!0))}},{key:"_createEntity",value:function(e){var t=O,i=(this.options.onBeforeCreate&&(e=this.options.onBeforeCreate(e)||e),this._onBeforeCreate&&(e=this[t(3167)](e)||e),{id:this.id,name:this.name||this.id,properties:this[t(Re)],show:this.show,parent:this[t(1592)].parent});return this.options.availability&&(i[t(635)]=this.options[t(He)]),this.options[t(3152)]&&(i.description=this.options.description),this.options.viewFrom&&(i.viewFrom=this[t(1592)].viewFrom),this.options.parent&&(i.parent=this[t(Fe)].parent),new Cesium__namespace.Entity(_objectSpread2(_objectSpread2({},i),e))}},{key:O(1633),value:function(e,t){var i,a=O;null!=t&&t[a(3686)]?(Cesium__namespace.defined(e.clampToGround)&&!Cesium__namespace.defined(e[a(3686)].clampToGround)&&(t.label[a(1614)]=e.clampToGround),this[a(2797)]?(LabelStyleConver.toCesiumVal(e[a(3686)],this._primitive_label,this.attr),(Cesium__namespace.defined(null==t||null==(i=t.label)?void 0:i[a(Le)])||Cesium__namespace.defined(null==t||null==(i=t.label)?void 0:i[a(1456)])||Cesium__namespace.defined(null==t||null==(i=t.label)?void 0:i.setHeight))&&this[a(De)]()):this._entity.label?(LabelStyleConver.toCesiumVal(e.label,this[a(2981)].label,this.attr),(Cesium__namespace.defined(null==t||null==(i=t[a(3686)])?void 0:i.height)||Cesium__namespace[a(3277)](null==t||null==(e=t[a(Ie)])?void 0:e.addHeight)||Cesium__namespace.defined(null==t||null==(i=t.label)?void 0:i[a(3441)]))&&this._updateLabelPosition()):this._addLabel()):Cesium__namespace.defined(null==t?void 0:t[a(Oe)])&&this[a(1715)](t.globalAlpha)}},{key:"_addLabel",value:function(){var e=O,t=this.style[e(3686)];if(t&&t.text)return!Cesium__namespace.defined(this[e(we)][e(1614)])||Cesium__namespace[e(3277)](t.clampToGround)||Cesium__namespace.defined(t[e(3159)])||(t.clampToGround=this.style.clampToGround),(t=LabelStyleConver[e(Se)](this.style[e(3686)],{},this.attr)).show=this[e(Te)],t.position=this._getLablePosition(),this._primitive_label&&this._layer[e(Me)].remove(this[e(Ee)]),this._primitive_label=this._layer[e(Ae)].add(t),this.bindPickId(this._primitive_label),this[e(2797)]}},{key:"_updateLabelPosition",value:function(){this._primitive_label&&(this._primitive_label.position=this._getLablePosition())}},{key:"_updateLabelOpacity",value:function(e){var t,i=O;null!=(t=this._entity)&&t.label&&LabelStyleConver.setOpacity(this[i(2981)][i(3686)],e),this[i(ke)]&&this[i(2797)][i(Pe)]&&LabelStyleConver[i(3860)](this[i(2797)],e)}},{key:"_getLablePosition",value:function(){var e,t=O,i=this.style[t(de)];if(i.position&&("center"===i.position?e=this[t(3127)]:isString(i[t(2532)])?(a=template(i.position,this.attr,!0))&&(e=LngLatPoint[t(fe)](a)[t(3600)]()):e=LngLatPoint[t(332)](i.position).toCartesian()),!(e=e||this[t(ye)]))return new Cesium__namespace[t(ve)];(Cesium__namespace.defined(i[t(3159)])||Cesium__namespace[t(3277)](this.style[t(ge)]))&&(e=setPositionsHeight(e,null!=(a=i[t(Ce)])?a:this[t(xe)].height)),Cesium__namespace.defined(this[t(2492)].diffHeight)&&(e=addPositionsHeight(e,this.style.diffHeight));var a=i.setHeight,t=(Cesium__namespace[t(be)](a)&&(e=setPositionsHeight(e,a=isString(a)&&(a=Number(template(a,this.attr,!0)),isNaN(a))?0:a)),i.addHeight);return e=Cesium__namespace.defined(t)?addPositionsHeight(e,t=isString(t)&&(t=Number(template(t,this.attr,!0)),isNaN(t))?0:t):e}},{key:"_createLabel",value:function(){var e,i=O,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},a=1<arguments[i(ue)]?arguments[1]:void 0;return t.type&&"label"!==t[i(_e)]?(e=create$4(t.type,{position:a,style:t,hasEdit:!1,isPrivate:!0}),Object[i(1903)](e,{text:{set:function(e){var t=i;this.attr[t(3045)]=e,this[t(2492)].updateText(e,this)},get:function(){return this.attr.text}}}),this._layer.addGraphic(e),e):(e=LabelStyleConver.toCesiumVal(_objectSpread2({color:i(1888),font_size:20,outline:!0,outlineColor:"#000000",outlineWidth:3,background:!0,backgroundColor:i(3008),backgroundOpacity:.5,scaleByDistance:!0,scaleByDistance_far:8e5,scaleByDistance_farValue:.5,scaleByDistance_near:1e3,scaleByDistance_nearValue:1,pixelOffsetY:-15,horizontalOrigin:Cesium__namespace[i(1391)].LEFT,verticalOrigin:Cesium__namespace.VerticalOrigin.BOTTOM,visibleDepth:!1},t)),a&&(e.position=a),t=this._layer[i(pe)].add(e),this.bindPickId(t),t[i(me)]=!0,t.hasEdit=!1,t)}},{key:"_removeLabel",value:function(e){var t=O;e[t(2514)]?this._layer.removeGraphic(e,!0):this[t(he)].labelCollection.remove(e)}},{key:"_getOutlineStyle",value:function(e,t){var i=O,a=_objectSpread2({},e);return delete a.material,delete a.materialType,delete a.materialOptions,delete a.outline,delete a.outlineColor,delete a.outlineOpacity,delete a[i(2711)],delete a.outlineStyle,_objectSpread2(_objectSpread2(_objectSpread2({},a),{},{show:null!=(a=e.outline)&&a,color:null!=(a=e[i(2663)])?a:Cesium__namespace[i(le)].WHITE,opacity:e.outlineOpacity,width:null!=(a=e.outlineWidth)?a:1,arcType:(null!=(a=e.arcType)?a:e.clampToGround)?Cesium__namespace.ArcType[i(ce)]:Cesium__namespace[i(713)].NONE},e.outlineStyle||{}),t||{})}},{key:"_updateOutlineStyle",value:function(e,t,i){var a=O;if(this[a(Q)]){var n=this._getOutlineStyle(t,i);if(n.show&&0===(null!=(i=this.style.diffHeight)?i:0)&&(1<n.width||t.clampToGround||0<(null==(i=this[a(I)])?void 0:i[a(K)]))){if(this[a(ee)][a(1185)]=!1,this[a(2116)])for(var s=0,r=this._entity_outlines[a(2822)];s<r;s++){var o,l,c=this[a(2116)][s][a(te)];e&&e[s]&&((o=e[s])instanceof Cesium__namespace.CallbackProperty?c.positions=o:Array.isArray(o)&&0<o.length&&(Cesium__namespace[a(3277)](n.height)&&(o=setPositionsHeight(o,n.height)),Cesium__namespace.defined(n.setHeight)&&(o=setPositionsHeight(o,n.setHeight)),Cesium__namespace.defined(n.addHeight)&&(o=addPositionsHeight(o,n.addHeight)),null==(l=n[a(2903)])||l?c.positions=o.concat(o[0]):c[a(ie)]=o)),PolylineStyleConver.toCesiumVal(n,c,!0)}else if(e){this._entity_outlines=[];for(var h=0,u=e.length;h<u;h++){var _=e[h],p=PolylineStyleConver.toCesiumVal(n,{},!0),m=(_ instanceof Cesium__namespace[a(3121)]?p.positions=_:Array.isArray(_)&&0<_.length&&(Cesium__namespace[a(3277)](n.height)&&(_=setPositionsHeight(_,n.height)),Cesium__namespace.defined(n[a(3441)])&&(_=setPositionsHeight(_,n.setHeight)),Cesium__namespace[a(3277)](n.addHeight)&&(_=addPositionsHeight(_,n.addHeight)),null==(m=n.closure)||m?p.positions=_.concat(_[0]):p[a(ae)]=_),this._createEntity({id:this.id+a(ne)+h,polyline:p,show:this.show}));this[a(se)](m),this[a(I)][a(1018)](m),this._state===State.ADDED&&this.dataSource.entities[a(3605)](m)}}return!0}if(this[a(re)])for(var d=0,f=this._entity_outlines[a(2822)];d<f;d++)this[a(2116)][d].polyline.show=!1;return this.entityGraphic.outline=n[a(4045)],this.entityGraphic.outlineWidth=n.width,n.show&&(this.entityGraphic[a(oe)]=getCesiumColor(n.color,Cesium__namespace.Color[a(3644)])),!1}}},{key:"_updateOutlineOpacity",value:function(e){var t,i=O;if(this[i(J)]&&0<this._entity_outlines.length)for(var a=0,n=this._entity_outlines[i(q)];a<n;a++){var s,r=this._entity_outlines[a].polyline;Cesium__namespace[i(3277)](null==r||null==(s=r.material)?void 0:s.globalAlpha)?r.material.globalAlpha=e:this._updateOutlineStyle(null,this.style)}null!=(t=this.entityGraphic)&&t.outline&&this[i(D)].outline.getValue()&&(t=getCesiumColor(this[i(3135)].outlineColor,Cesium__namespace[i(3096)].WHITE),Cesium__namespace[i(Y)](this.entityGraphic[i(Z)])||(this[i(X)]._outlineColor_alpha=t.alpha),this[i(D)][i(2663)]=t.withAlpha(this[i(3135)]._outlineColor_alpha*e))}},{key:"_updateOutlineToCallback",value:function(){var t=O,i=this;if(this._entity_outlines)for(var e=0,a=this._entity_outlines.length;e<a;e++){var n=this._entity_outlines[e];n.polyline.positions instanceof Cesium__namespace.CallbackProperty||(n.polyline[t($)]=new Cesium__namespace[t(U)](function(e){return i[t(W)]},!1))}}},{key:"_cancelOutlinePositionsCallback",value:function(){var e=O;if(this._entity_outlines)for(var t=0,i=this._entity_outlines.length;t<i;t++){var a=this._entity_outlines[t];a[e(V)].positions instanceof Cesium__namespace.CallbackProperty&&(a.polyline.positions=this[e(2130)])}}},{key:"setOpacity",value:function(e){var t=O;this.style.globalAlpha=e,this._updateEntityOpacity(this[t(3135)],e)?(this._updateLabelOpacity(e),this[t(B)](e),this._updateExOpacity&&this[t(j)](e)):_get(_getPrototypeOf(R.prototype),"setOpacity",this).call(this,e)}},{key:"_updateEntityOpacity",value:function(e,t){var i,a=O,e=null==e?void 0:e.material;return!(!e||(Cesium__namespace[a(3277)](null==e?void 0:e.globalAlpha)?(e[a(1863)]=t,0):"Color"!==e._mars_type&&e._mars_type!==a(G)||(i=getCesiumColor(e.color,Cesium__namespace.Color.WHITE),Cesium__namespace[a(3277)](e[a(z)])||(e[a(2464)]=i.alpha),e[a(2745)]=i[a(3535)](e._color_alpha*t),0)))}},{key:"startFlicker",value:function(e){var t=O,i=(this.flickerEntity||(this.flickerEntity=new FlickerEntity),this.czmObjectEx.concat(this.czmObject));return this[t(3097)].startFlicker(i,e),this[t(N)]}},{key:"stopFlicker",value:function(){return this.flickerEntity?this.flickerEntity.stopFlicker():null}},{key:"startDraw",value:function(e){var t=O;if(this._enabledDraw)return this;if(this[t(A)]=!0,e&&this[t(4062)](e),!this._map)throw new Error("绘制时_map不能为空,请将对象添加到图层,并且图层已添加到Map");this._map.mouseEvent.noPickEntity=this._entity,this._map[t(L)](!0),this.enableControl(!1),this[t(H)](),this[t(F)](),this.fire(EventType.drawStart,{drawtype:this.type,graphic:this},!0)}},{key:"stopDraw",value:function(){var e,t=O;if(!this._enabledDraw)return this;this._stopDrawHook(),this[t(C)](),this._map[t(x)](!1),this.enableControl(!0),this._map[t(b)](),this._map.mouseEvent.noPickEntity=null,this._enabledDraw=!1,this.lastPointTemporary&&(0<(null==(e=this._positions_draw)?void 0:e[t(k)])&&this[t(2383)][t(1951)](),this._position_draw)&&(this._position_draw=void 0),this[t(2779)]=!1,this._position_draw||this._positions_draw&&0!==(null==(e=this._positions_draw)?void 0:e.length)?this._positions_draw&&this[t(2383)][t(2822)]<this._minPointNum?this[t(P)](!0):(this._layer[t(1592)][t(w)]&&this._cancelPositionsCallback(),this[t(S)](EventType.drawCreated,{drawtype:this.type,positions:this._positions_draw},!0),null!=(e=this.options)&&e[t(T)]&&this.options[t(M)](this),null!=(e=this[t(E)])&&null!=(e=e._promise)&&e.resolve&&this.options[t(1493)].resolve(this)):this.remove(!0)}},{key:"_setPositionsToCallback",value:function(){}},{key:O(2526),value:function(){}},{key:"_startDrawHook",value:function(){}},{key:"_stopDrawHook",value:function(){}},{key:"_showDrawMouseMoveSmallTooltip",value:function(e){var t,i,a=O,e=e.endPosition;this._positions_draw.length<=1?this._map[a(1434)](e,this._map.getLangText("_单击开始绘制")):this._positions_draw.length<this._minPointNum?this._map.openSmallTooltip(e,this[a(3817)].getLangText("_单击增加点")):this._positions_draw.length>=this._maxPointNum?this._map.openSmallTooltip(e,this[a(3817)].getLangText("_单击完成绘制")):(i=isPCBroswer()?(t="",null!=(i=this[a(1592)][a(2791)])&&!i||(t=", "+this[a(3817)][a(y)]("_右击删除点")),this._map.getLangText(a(1708))+t+"<br/>"+this._map.getLangText("_双击完成绘制")):this[a(v)][a(349)](a(g)),this._map.openSmallTooltip(e,i))}},{key:"_onMouseMoveHandler",value:function(e){var t=O,i=(this._showDrawMouseMoveSmallTooltip(e),e[t(2001)]);i&&(this[t(d)]&&this[t(2383)].pop(),this.lastPointTemporary=!0,this[t(2383)].push(i),this[t(f)](!1),this.fire(EventType.drawMouseMove,_objectSpread2(_objectSpread2({},e),{},{drawtype:this[t(1488)],positions:this._positions_draw}),!0))}},{key:"_onClickHandler",value:function(e){var t,i=O,a=(new Date).getTime()-(this._last_clickTime||0);this[i(3375)]&&a<200||(this[i(3375)]=(new Date).getTime(),this[i(u)]&&Math.abs(this._last_clickPositionX-e.windowPosition.x)<10&&Math[i(411)](this._last_clickPositionY-e.windowPosition.y)<10)||(this._last_clickPositionX=e.windowPosition.x,this._last_clickPositionY=e.windowPosition.y,(a=!(a=e[i(2001)])&&this.lastPointTemporary?this._positions_draw[this._positions_draw.length-1]:a)&&(this.lastPointTemporary&&this._positions_draw.pop(),this.lastPointTemporary=!1,this.removeNearPoint(),null!=(t=this.options)&&t[i(_)]&&(a=addPositionsHeight(a,this.options[i(1456)])),this._positions_draw.push(a),this.updateAttrForDrawing(!1),this.fire(EventType[i(p)],_objectSpread2(_objectSpread2({},e),{},{drawtype:this.type,positions:this._positions_draw}),!0),this._positions_draw[i(m)]>=this[i(413)])&&this.stopDraw())}},{key:"_onRightClickHandler",value:function(e){var t=O,i=(this._positions_draw.pop(),e.cartesian);i&&(this[t(2779)]&&this[t(2383)][t(1951)](),this[t(2779)]=!0,this[t(1997)](EventType[t(2820)],_objectSpread2(_objectSpread2({},e),{},{drawtype:this.type,positions:this._positions_draw}),!0),this._positions_draw.push(i),this.updateAttrForDrawing(!1))}},{key:"_onDbClickHandler",value:function(e){this.removeNearPoint(),this.endDraw()}},{key:O(1084),value:function(){var e=O;if(!(this._positions_draw.length<3))for(var t=this[e(l)].length-1;0<t;t--){var i=this[e(c)][t],a=this._positions_draw[t-1];if(!(Cesium__namespace[e(784)].distance(i,a)<.01))break;this._positions_draw[e(h)](t,1)}}},{key:"endDraw",value:function(){var e=O;return!!this._enabledDraw&&!(this._positions_draw&&this[e(o)].length<this._minPointNum||(this.updateAttrForDrawing(!1),this.stopDraw(),0))}},{key:O(1257),value:function(e){}},{key:O(2530),value:function(){var e=O;if(this[e(678)])return this;if(this._enabledEdit=!0,!this._map)throw new Error("编辑时_map不能为空,请将对象添加到图层,并且图层已添加到Map");this._map.mouseEvent[e(n)]=this._entity,this._map.mouseEvent[e(s)]=!1,this.editing||(this.editing=new this.EditClass(this)),this.editing[e(337)]&&this.editing.activate(),this[e(r)]&&this._updateDistanceDisplayConditionByEdit()}},{key:"stopEditing",value:function(){var e,t=O;if(!this[t(i)]||!this.isAdded)return this;null!=(e=this.editing)&&e.disable&&this.editing.disable(),this.options&&(this.style.distanceDisplayCondition&&this[t(a)](),this._stopEditingHook&&this[t(889)](),this._map&&(this._map.closeSmallTooltip(),this._map.mouseEvent.noPickEntity=null,this._map.mouseEvent.enabledMoveTarget=!0),this._enabledEdit=!1)}}]),R}(),BasePrimitive=function(){var e=563,t=3692,i=4028,a=3185,n=1633,s=1659,r=1021,o=3101,l=1592,c=2902,h=3101,u=3101,_=2437,p=1488,m=1488,d=2306,f=3817,y=4045,v=1240,g=2494,C=2383,x=1592,b=1592,k=918,H=1980,F=2492,N=2533,G=2671,z=1488,B=1592,j=1049,P=1329,V=2084,$=1592,U=1814,W=2306,w=3101,J=2492,q=3603,Y=1941,Z=3817,X=2492,Q=2085,K=1659,ee=2822,S=1336,te=1369,ie=2278,ae=4045,ne=3917,se=3096,re=3918,oe=2532,le=2532,ce=2532,T=3159,he=3277,ue=1740,_e=3277,M=2797,pe=2492,me=2797,de=2818,fe=2797,ye=3686,ve=2514,ge=563,E=2797,Ce=1336,xe=1488,A=3629,be=508,ke=3096,Pe=687,we=687,Se=2923,Te=3752,Me=2385,Ee=3860,Ae=3409,Le=1336,De=3185,Ie=2745,Oe=1940,Re=3277,He=4045,Fe=2217,Ne=3475,Ge=2217,ze=1488,Be=3752,je=3692,L=2492,D=3159,Ve=2492,$e=872,Ue=915,We=3825,Je=3812,qe=3535,Ye=1336,Ze=1592,Xe=2745,Qe=1740,Ke=2492,et=1488,tt=1846,it=3475,at=3475,nt=3994,st=3564,rt=824,ot=2514,lt=2885,ct=2217,ht=1336,ut=3216,I=4071,_t=1366,pt=3409,mt=1336,dt=1998,ft=2797,yt=1018,O=_0x1658de,vt=(_inherits(R,BaseGraphic),_createSuper(R));function R(){return _classCallCheck(this,R),vt.apply(this,arguments)}return _createClass(R,[{key:O(417),get:function(){return this._primitive}},{key:O(2451),get:function(){var e=O,t=[];return this[e(ft)]&&t.push(this[e(2797)]),this._primitive_outline&&t[e(yt)](this._primitive_outline),t}},{key:O(3475),get:function(){var e;return null==(e=this._layer)?void 0:e.primitiveCollection}},{key:"primitive",get:function(){return this._primitive}},{key:O(579),get:function(){return this[O(2885)]?this.getGeometryInstanceAttributes(this.id):this._primitive_outline?this.getGeometryInstanceAttributes(this.id,this._primitive_outline):null}},{key:"uniforms",get:function(){var e,t=O;return null==(e=this.primitive)||null==(e=e[t(pt)])||null==(e=e[t(mt)])?void 0:e[t(dt)]}},{key:O(3686),get:function(){return this._primitive_label||this.style.label}},{key:O(3804),get:function(){return this._enabledEdit}},{key:"_isColorMaterial",value:function(e,t){var i=O,i=e.materialType||(null==t?void 0:t[i(1940)])||(null==t||null==(e=t.material)?void 0:e.type);return!Cesium__namespace.defined(i)||i===Color$2}},{key:O(e),value:function(e){var t,i,a,n=O;this[n(4045)]&&(e[n(ht)]||e.materialType||(e.color||e.randomColor?e.materialType=Color$2:e.image&&(e.materialType=Image$1)),(t=this[n(ut)](e))._isColorMaterial=this[n(534)](e,t),this._primitive&&this.primitiveCollection[n(I)](this._primitive),null!=(a=e.fill)&&!a||(this._primitive=this[n(1366)](t)),this._primitive_outline&&(this.primitiveCollection[n(I)](this._primitive_outline),delete this._primitive_outline),e[n(1185)]&&(1<(a=this._getOutlineStyle(e)).width&&0===(null!=(i=this[n(2492)].diffHeight)?i:0)||a.clampToGround?this[n(2217)]=this._createPolylineOutline(a):(t.outlineStyle=a,this._primitive_outline=this[n(_t)](t,!0))),e.label)&&this[n(1660)]()}},{key:"_removedHook",value:function(){var e=O;this._noDestroy||(this.stopDraw(),this.stopEditing()),this._primitive&&(this[e(3475)][e(4071)](this[e(2885)]),delete this[e(lt)]),this[e(ct)]&&(this.primitiveCollection.remove(this._primitive_outline),delete this._primitive_outline),this._primitive_label&&(this._layer.labelCollection.remove(this._primitive_label),delete this._primitive_label)}},{key:O(1594),value:function(e){var t=O,i=this;this[t(ot)]&&(e?(this._addedHook(this.style),this[t(417)]&&this.bindPickId(this.czmObject),this.czmObjectEx&&this.czmObjectEx.forEach(function(e){i.bindPickId(e)})):(this._noDestroy=!0,this._removedHook(),this._noDestroy=!1))}},{key:"_conversionStyle",value:function(e){return e}},{key:"_createPrimitive",value:function(e,t){var i=O,a=((!e[i(3830)]&&e._isColorMaterial||t)&&(e.vertexFormat=this.defaultVertexFormat||Cesium__namespace[i(2460)].VERTEX_FORMAT),_objectSpread2(_objectSpread2({},this.options),{},{geometryInstances:this._createGeometryInstance(e,t),show:this[i(4045)],shadows:e.shadows}));return delete a.style,delete a[i(Qe)],delete a.modelMatrix,a.geometryInstances.attributes=a.geometryInstances.attributes||{},a.geometryInstances.attributes.show=new Cesium__namespace.ShowGeometryInstanceAttribute(this.show),e.distanceDisplayCondition&&(a[i(915)][i(2988)].distanceDisplayCondition=e.distanceDisplayCondition),a.appearance||(a[i(3409)]=this._createAppearance(e,a,t)),e.depthFail&&!a.depthFailAppearance&&(a.depthFailAppearance=this._createAppearance(e,a,t)),t=this[i(Ke)].clampToGround?(a.classificationType=e.classificationType,this.type===i(3420)||this[i(et)]===i(tt)?this[i(it)].add(new Cesium__namespace.GroundPolylinePrimitive(a)):this[i(at)].add(new Cesium__namespace[i(1544)](a))):e.classification?(a[i(nt)]=e.classificationType||Cesium__namespace.ClassificationType[i(st)],this.primitiveCollection[i(3605)](new Cesium__namespace[i(rt)](a))):this.primitiveCollection.add(new Cesium__namespace.Primitive(a)),this.bindPickId(t),t}},{key:"_getColorByColorMaterial",value:function(e){var t,i=O,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Cesium__namespace.Color.WHITE[i(qe)](.5);return(null==(t=e.material)||null==(t=t[i(1998)])?void 0:t.color)||(null==(t=e[i(Ye)])||null==(t=t[i(Ze)])?void 0:t[i(Xe)])||e.color||a}},{key:O(3637),value:function(e,t,i){var a=O;return new(!e.material||e._isColorMaterial||i?(t.geometryInstances instanceof Cesium__namespace[a(1016)]&&(i=i&&e.outlineStyle?getColorByStyle(e.outlineStyle,Cesium__namespace.Color.WHITE):this._getColorByColorMaterial(e),e.translucent=1!==i.alpha,t.geometryInstances.attributes=t.geometryInstances.attributes||{},t[a(Ue)][a(2988)].color=Cesium__namespace[a(3825)].fromColor(i),e.depthFail)&&(t.geometryInstances.attributes.depthFailColor=Cesium__namespace[a(We)].fromColor(e.depthFailColor||i)),Cesium__namespace[a(3277)](this[a(Je)])&&(e.translucent=this.translucent),Cesium__namespace.PerInstanceColorAppearance):Cesium__namespace.MaterialAppearance)(_objectSpread2({},e))}},{key:"_createGeometryInstance",value:function(e,t){return this.options.geometryInstances}},{key:"_updateDiffHeight",value:function(e,t){var i=O;this.style.clampToGround||(t&&(t=0,t=Cesium__namespace.defined(this[i(L)][i(3159)])?this.style[i(D)]:getMaxHeight(this.positions),e[i(D)]=t),Cesium__namespace.defined(this[i(Ve)][i(872)])&&!Cesium__namespace.defined(e.extrudedHeight)&&(t=0,t=Cesium__namespace.defined(e.height)?e.height:Cesium__namespace.defined(this.style[i(D)])?this.style[i(3159)]:getMaxHeight(this.positions),e.extrudedHeight=t+this[i(L)][i($e)]))}},{key:"_updateStyleBaseHook",value:function(e){var t=O;e&&(this._editing_entity&&this[t(ze)].startsWith(this._editing_entity.type)?this._editing_entity.setStyle(e):this.czmObject&&(this._updateLabelStyleHook(this[t(2492)],e),this[t(Be)]&&Cesium__namespace.defined(e[t(1863)])&&this._updateExOpacity(e.globalAlpha),this[t(je)](this[t(2492)],e)))}},{key:O(t),value:function(e,t){var i=O;if(e[i(Oe)]===Color$2&&(Cesium__namespace.defined(t.color)||Cesium__namespace.defined(t.opacity))){var a=getColorByStyle(e);if(a)if(this._updatePrimitiveForColorMaterial(this._primitive,a,e)){if(!Cesium__namespace[i(Re)](t.outline))return;if(this._primitive_outline){a=this._getOutlineStyle(e);if(!a.materialType){if(!a[i(He)])return void(this._primitive_outline&&(this[i(Ne)].remove(this[i(2217)]),delete this[i(Ge)]));if(this._updatePrimitiveForColorMaterial(this[i(Fe)],getCesiumColor(a.color),e))return}}}}this.redraw(e)}},{key:O(i),value:function(e,t,i){var a,n=O;return!(!e||(a=null==e||null==(a=e[n(Ae)])||null==(a=a[n(Le)])?void 0:a.uniforms,Cesium__namespace.defined(null==a?void 0:a.color)&&e.appearance[n(1336)].type===Color$2?(e.appearance[n(3812)]=1!==t.alpha,a.color=t,0):null==(a=this[n(De)](this.id,e))||!a[n(Ie)]||(a[n(2745)]=Cesium__namespace.ColorGeometryInstanceAttribute[n(698)](t),a.depthFailColor&&(i.depthFailColor||i.depthFail)&&(a[n(687)]=Cesium__namespace.ColorGeometryInstanceAttribute.toValue(getCesiumColor(i.depthFailColor,t))),0)))}},{key:O(3860),value:function(e){var t=O;this.style.globalAlpha=e,this._updatePrimitiveOpacity(this._primitive,e)?(this._updatePrimitiveOpacity(this._primitive_outline,e),this[t(1715)](e),this[t(Te)]&&this._updateExOpacity(e)):_get(_getPrototypeOf(R[t(Me)]),t(Ee),this).call(this,e)}},{key:O(1446),value:function(e,t){var i=O;if(e)try{var a,n,s=null==e||null==(a=e.appearance)||null==(n=a[i(1336)])?void 0:n.uniforms;if(s){if(Cesium__namespace.defined(s.globalAlpha))return e.appearance.translucent=1!==t,s.globalAlpha=t,!0;if((e.appearance.material.type===Color$2||e.appearance[i(Ce)][i(xe)]===Image$1)&&Cesium__namespace.defined(s.color))return Cesium__namespace.defined(e._uniforms_color_alpha)||(e._uniforms_color_alpha=s.color[i(A)]),s.color.alpha=e._uniforms_color_alpha*t,e[i(3409)].translucent=1!==s.color[i(A)],!0;if(e.appearance.material.type===Water$1)return Cesium__namespace.defined(e._uniforms_baseWaterColor_alpha)||(e[i(595)]=s[i(1102)].alpha,e._uniforms_blendColor_alpha=s.blendColor.alpha),1!==this.globalAlpha&&(s.baseWaterColor.alpha=e[i(595)]*t,s.blendColor.alpha=e._uniforms_blendColor_alpha*t),!0}var r,o=this.getGeometryInstanceAttributes(this.id,e);if(null!=o&&o.color)return Cesium__namespace[i(3277)](e[i(be)])||(e._attributes_color_alpha=o[i(2745)][3]/255),r=e._attributes_color_alpha*t,o.color=new Uint8Array([o.color[0],o.color[1],o.color[2],Cesium__namespace[i(ke)].floatToByte(r)]),e.appearance.translucent=1!=r,o.depthFailColor&&(Cesium__namespace.defined(e._attributes_depthFailColor_alpha)||(e._attributes_depthFailColor_alpha=o[i(Pe)][3]/255),o.depthFailColor=new Uint8Array([o[i(we)][0],o[i(687)][1],o.depthFailColor[2],Cesium__namespace.Color.floatToByte(e[i(Se)]*t)])),!0}catch(e){}return!1}},{key:O(a),value:function(e,t){var i=O;return!(t=t||this._primitive)||!t.getGeometryInstanceAttributes||this[i(2492)].clampToGround&&!t._primitive?null:t.getGeometryInstanceAttributes(e)}},{key:"_updateLabelOpacity",value:function(e){var t=O;this[t(E)]&&this[t(E)].show&&LabelStyleConver.setOpacity(this._primitive_label,e)}},{key:O(1549),value:function(e){var t=O,i=this;return this[t(ve)]&&this.show&&(this._noDestroy=!0,this[t(2071)](),this._noDestroy=!1,this[t(ge)](e||this.style),this.czmObject&&this.bindPickId(this.czmObject),this[t(2451)])&&this.czmObjectEx.forEach(function(e){i.bindPickId(e)}),this}},{key:"_updatePositionsHook",value:function(){this.redraw()}},{key:O(n),value:function(e,t){var i=O;null!=t&&t.label?this._primitive_label?(LabelStyleConver.toCesiumVal(e.label,this[i(2797)],this[i(1740)]),(Cesium__namespace.defined(null==t||null==(e=t.label)?void 0:e.height)||Cesium__namespace.defined(null==t||null==(e=t[i(ye)])?void 0:e.addHeight)||Cesium__namespace.defined(null==t||null==(e=t[i(3686)])?void 0:e[i(3441)]))&&this._updateLabelPosition()):this._addLabel():Cesium__namespace.defined(null==t?void 0:t.globalAlpha)&&this._updateLabelOpacity(t.globalAlpha)}},{key:"_addLabel",value:function(){var e=O,t=this.style.label;if(t&&t.text)return!Cesium__namespace.defined(this.style.clampToGround)||Cesium__namespace.defined(t.clampToGround)||Cesium__namespace.defined(t.height)||(t.clampToGround=this[e(pe)].clampToGround),(t=LabelStyleConver.toCesiumVal(t,{},this[e(1740)])).show=this.show,t.position=this._getLablePosition(),this[e(me)]&&this[e(de)][e(3235)].remove(this[e(2797)]),this._primitive_label=this._layer.labelCollection.add(t),this.bindPickId(this._primitive_label),this[e(fe)]}},{key:"_updateLabelPosition",value:function(){var e=O;this[e(M)]&&!this[e(M)].isDestroyed()&&(this._primitive_label.position=this[e(2804)]())}},{key:"_getLablePosition",value:function(){var e,t=O,i=this.style.label;if(i[t(2532)]&&("center"===i[t(oe)]?e=this.centerOfMass:isString(i.position)?(a=template(i[t(le)],this.attr,!0))&&(e=LngLatPoint.parse(a).toCartesian()):e=LngLatPoint.parse(i[t(ce)])[t(3600)]()),!(e=e||this.center))return new Cesium__namespace[t(784)];(Cesium__namespace.defined(i[t(T)])||Cesium__namespace.defined(this.style.height))&&(e=setPositionsHeight(e,null!=(a=i[t(3159)])?a:this[t(2492)][t(T)])),Cesium__namespace[t(he)](this[t(2492)].diffHeight)&&(e=addPositionsHeight(e,this.style.diffHeight));var a=i.setHeight,a=(Cesium__namespace.defined(a)&&(e=setPositionsHeight(e,a=isString(a)&&(a=Number(template(a,this[t(ue)],!0)),isNaN(a))?0:a)),i.addHeight);return e=Cesium__namespace[t(_e)](a)?addPositionsHeight(e,a=isString(a)&&(a=Number(template(a,this.attr,!0)),isNaN(a))?0:a):e}},{key:"_getOutlineStyle",value:function(e,t){var i=O,a=_objectSpread2({},e);return delete a.material,delete a.materialType,delete a.materialOptions,delete a.outline,delete a.outlineColor,delete a.outlineOpacity,delete a.outlineWidth,delete a.outlineStyle,_objectSpread2(_objectSpread2(_objectSpread2({},a),{},{show:null!=(a=e.outline)&&a,color:null!=(a=e.outlineColor)?a:Cesium__namespace[i(se)].WHITE,opacity:e.outlineOpacity,width:null!=(a=e.outlineWidth)?a:1,arcType:(null!=(a=e[i(re)])?a:e.clampToGround)?Cesium__namespace.ArcType.GEODESIC:Cesium__namespace.ArcType.NONE},e.outlineStyle||{}),t||{})}},{key:O(s),value:function(){return[this.positions]}},{key:"_createPolylineOutline",value:function(e){for(var t,i=O,a=PolylineStyleConver.toCesiumVal(e),n=a.clampToGround?Cesium__namespace.GroundPolylineGeometry:Cesium__namespace.PolylineGeometry,s=[],r=this[i(K)](),o=0,l=r.length;o<l;o++){var c,h=r[o];h&&0!==h[i(ee)]&&(Cesium__namespace.defined(e.height)&&(h=setPositionsHeight(h,e.height)),Cesium__namespace[i(3277)](e.setHeight)&&(h=setPositionsHeight(h,e.setHeight)),0<(h=Cesium__namespace.defined(e.addHeight)?addPositionsHeight(h,e.addHeight):h).length&&(h=h.concat(h[0])),(c=_objectSpread2({},a))[i(1980)]=h,c[i(S)]&&c.material.type!==i(3096)||(c.vertexFormat=Cesium__namespace[i(te)].VERTEX_FORMAT),h=this._getColorByColorMaterial(c),c=new Cesium__namespace[i(1016)]({id:this.id,geometry:new n(c),attributes:{color:Cesium__namespace.ColorGeometryInstanceAttribute.fromColor(h),distanceDisplayCondition:a.distanceDisplayCondition,show:new Cesium__namespace[i(ie)](this[i(ae)])}}),s.push(c))}if(0!==s.length)return delete(t=_objectSpread2(_objectSpread2({},this.options),{},{geometryInstances:s,show:this[i(4045)],shadows:a.shadows})).style,delete t.attr,a[i(S)]&&!a.classification?t.appearance=new Cesium__namespace[i(1322)](_objectSpread2({},a)):t.appearance=new Cesium__namespace.PolylineColorAppearance(_objectSpread2({},a)),t=this.style.clampToGround?(t.classificationType=a.classificationType,this.primitiveCollection[i(3605)](new Cesium__namespace.GroundPolylinePrimitive(t))):this.primitiveCollection.add(new Cesium__namespace.Primitive(t)),this[i(ne)](t),t}},{key:"openHighlight",value:function(e){var t=O,e=((!(1<arguments.length&&void 0!==arguments[1])||arguments[1])&&(this._map.closeHighlight(),this._map.last_highlighGraphic=this),e||this._highlightOptions||(null==(e=this._layer)?void 0:e._highlightOptions));if(e){var i,a=[];for(i in e)"type"===i||Cesium__namespace.defined(this[t(X)][i])||a.push(i);0<a[t(2822)]&&logWarn(t(Q),a);var n=merge(clone(this.style),e);this._updateStyleHook(n,e),this[t(1633)](n,e),this.fire(EventType.highlightOpen,{},!0)}}},{key:"closeHighlight",value:function(){var e,t=O;this[t(Y)]===State.ADDED&&(null==(e=this[t(Z)])?void 0:e[t(2352)])===this&&(this._updateStyleHook(this[t(2492)],this.style),this._updateLabelStyleHook(this[t(2492)],this[t(2492)]),this._map[t(1228)](),this.fire(EventType.highlightClose,{},!0))}},{key:O(2968),value:function(e){var t=O;return this[t(J)].flat&&(e=t(q)+e),e=this.style.faceForward?"#define FACE_FORWARD\n"+e:e}},{key:"startDraw",value:function(e){var i=1488,a=O,n=this;if(this[a(969)]){if(this[a(P)])return this;if(this[a(P)]=!0,this.show=!1,e&&this.addTo(e),!this[a(3817)])throw new Error(a(V));this._editing_entity=this._getDrawEntityClass({minPointNum:this[a(1592)].minPointNum,maxPointNum:this[a($)][a(U)],style:this[a(2902)](),private:!0},!0),(this._editing_entity[a(2437)]=this)._editing_entity[a(W)](EventType[a(1582)],function(e){n.stopDraw()}),this[a(w)].on([EventType.drawAddPoint,EventType[a(2852)],EventType.drawRemovePoint],function(e){var t=a;e.graphic=n,e.drawtype=n[t(i)],n.fire(e.type,e,!0)}),this[a(w)].startDraw(this[a(3817)][a(3407)]),this.fire(EventType.drawStart,{drawtype:this.type},!0)}else logInfo("对象不支持标绘",this)}},{key:"stopDraw",value:function(){var e,t=O;if(!this._enabledDraw||!this._editing_entity)return this;this._enabledDraw=!1,this._editing_entity[t(G)]()?(this._updateDrawEntityToThis(),this.fire(EventType[t(1582)],{drawtype:this[t(z)],positions:this.positions},!0),null!=(e=this.options)&&e.success&&this.options.success(this),null!=(e=this[t(B)])&&null!=(e=e._promise)&&e[t(1049)]&&this.options[t(1493)][t(j)](this)):this.remove(!0)}},{key:"endDraw",value:function(){var e=O;return!(!this[e(1329)]||!this._editing_entity||!this[e(3101)].endDraw())}},{key:"_getDrawEntityStyle",value:function(){var e=this[O(N)](this.style,!1);return delete e.highlight,e}},{key:O(3243),value:function(e,t){var i=O;return e.drawShow=!t,e[i(F)]=getEditPointStyle(),create$4("point",e)}},{key:O(r),value:function(){var e=O,t=this[e(3101)].toJSON();this._editing_entity.remove(!0),delete this._editing_entity,t.style&&this.type.startsWith(t.type)?(this[e(x)][e(2492)]=merge(this.options.style,t.style),this._updateStyleBaseHook(this[e(b)].style)):this[e(k)]&&this[e(918)](t.style,t),t.position?this.position=t[e(2532)]:t.positions&&(this[e(H)]=t.positions),this.show=!0}},{key:"startEditing",value:function(){var a=2492,n=O,s=this;if(this._enabledEdit)return this;if(this[n(678)]=!0,!this._map)throw new Error("编辑时_map不能为空,请将对象添加到图层,并且图层已添加到Map");this[n(o)]=this._getDrawEntityClass({hasMoveEdit:this.options.hasMoveEdit,hasHeightEdit:this[n(l)].hasHeightEdit,style:this[n(c)](),position:this.position,positions:this.positions,private:!0},!1),this._startEditingHook&&this[n(472)](this[n(h)]);var r=(this[n(u)][n(_)]=this)[n(p)].startsWith(this._editing_entity[n(m)]);this._editing_entity[n(d)](EventType.editStop,function(e){s.stopEditing()}),this._editing_entity.on(EventType.editStyle,function(e){var t=n,i=s[t(3101)].toJSON();i.style&&r?s.options.style=merge(s.options.style,i[t(a)]):s._updateStyleByEdit&&s._updateStyleByEdit(i.style,i)}),this._editing_entity.on([EventType.editAddPoint,EventType.editMovePoint,EventType.editRemovePoint],function(e){var t=n;s._editing_entity[t(v)]?r?(s[t(3083)]=LngLatPoint.parse(s._editing_entity[t(1240)]),s._position=s._editing_entity[t(v)]):s.position=s._editing_entity._position_draw:s._editing_entity._positions_draw&&(r?(s._points=LngLatArray[t(g)](s._editing_entity._positions_draw),s._positions=s._editing_entity[t(C)]):s[t(1980)]=s._editing_entity._positions_draw)}),this[n(f)].graphicLayer.addGraphic(this._editing_entity),this._editing_entity.startEditing(),r?this.show=!1:"point"!==this[n(3101)].type&&(this._editing_entity[n(3135)][n(y)]=!1)}},{key:O(3892),value:function(){var e=O;if(!this._enabledEdit||!this._editing_entity)return this;this._enabledEdit=!1,this[e(1021)]()}}]),R}(),BasePointPrimitive=function(){var e=3203,t=3912,i=3945,a=3497,n=1683,s=3341,r=1509,o=2045,l=758,c=1614,h=3118,u=2589,_=2532,p=2511,m=2822,d=1592,f=2294,y=1498,v=1592,g=1592,C=2942,x=2818,b=2942,k=3258,P=1421,w=3817,S=984,T=984,M=3455,E=984,A=2822,H=3496,F=3496,N=2511,G=2532,z=1494,B=1617,j=3308,V=2581,L=977,$=2033,U=1168,W=2539,J=3046,q=3342,Y=784,D=2492,Z=2822,X=1245,Q=3258,K=3912,ee=3159,te=3475,ie=3917,ae=4045,ne=2078,se=1436,re=2867,oe=2867,le=2244,ce=2584,he=2407,ue=2492,_e=1604,pe=2492,me=2574,de=1604,fe=886,ye=2033,ve=977,ge=2532,Ce=620,xe=2532,be=2492,ke=3083,Pe=3083,we=2797,Se=1187,Te=1111,Me=1997,Ee=1111,Ae=777,Le=2822,De=1980,I=1436,Ie=1761,Oe=386,Re=784,He=784,Fe=1124,O=_0x1658de,Ne=(_inherits(R,BasePrimitive),_createSuper(R));function R(){var e,t,i,a,n=_0x236b,s=0<arguments[n(Le)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(e=Ne.call(this,s))._hasEdit=null==(a=e.options.hasEdit)||a,s[n(1980)]&&(e.positions=s[n(De)]),s[n(2532)]?e.position=s[n(2532)]:s[n(I)]&&(e._position=Cesium__namespace[n(3342)][n(Ie)](s.modelMatrix,new Cesium__namespace.Cartesian3),e._point=LngLatPoint[n(332)](e[n(1111)]),Cesium__namespace.defined(e[n(2492)].heading)||(a=Cesium__namespace.Matrix4.getMatrix3(s[n(I)],new Cesium__namespace.Matrix3),s=Cesium__namespace[n(3342)][n(Oe)](Cesium__namespace.Transforms.eastNorthUpToFixedFrame(e._position),new Cesium__namespace.Matrix3),t=Cesium__namespace.Matrix3.getColumn(s,0,new Cesium__namespace.Cartesian3),i=Cesium__namespace.Matrix3.getColumn(s,1,new Cesium__namespace.Cartesian3),s=Cesium__namespace[n(3915)].getColumn(s,2,new Cesium__namespace.Cartesian3),a=Cesium__namespace.Matrix3.getColumn(a,0,new Cesium__namespace.Cartesian3),a=Cesium__namespace.Cartesian3.cross(a,s,a),a=Cesium__namespace[n(Re)].cross(s,a,a),a=Cesium__namespace[n(He)].normalize(a,a),s=Cesium__namespace[n(784)].angleBetween(t,a),Cesium__namespace.Cartesian3.angleBetween(i,a)>.5*Math.PI&&(s=2*Math.PI-s),e[n(2492)].heading=Cesium__namespace[n(Fe)].toDegrees(s))),e}return _createClass(R,[{key:O(2532),get:function(){var e,t=O;return this._position?this[t(Ee)]:this.property?this.property[t(Ae)](null==(e=this[t(3817)])||null==(e=e.clock)?void 0:e[t(352)]):void 0},set:function(e){var t=O;if(this[t(2045)](e))return this._position;this[t(3083)]=LngLatPoint[t(332)](e),this._point&&(e=this[t(be)].setHeight,Cesium__namespace.defined(e)&&(isString(e)&&(e=Number(template(e,this.attr,!0)),isNaN(e))&&(e=0),this[t(ke)].alt=e),0!==(e=this.getAddHeight()))&&(this._point.alt=this[t(3083)].alt+e),this[t(1111)]=null==(e=this[t(Pe)])?void 0:e.toCartesian(),this.options.modelMatrix&&delete this.options[t(1436)],this.czmObject&&this._updatePositionsHook(),this[t(we)]&&this[t(Se)](),this._editing_entity&&(this._editing_entity[t(2532)]=this[t(Te)]),this[t(Me)](EventType.updatePosition,{position:this._position})}},{key:O(e),get:function(){return this.positions}},{key:O(t),get:function(){return this._position}},{key:"point",get:function(){return this._point}},{key:"coordinate",get:function(){return this.getCoordinate()}},{key:"center",get:function(){return this[O(xe)]}},{key:"centerPoint",get:function(){return this.point}},{key:"height",get:function(){var e;return null==(e=this[O(Ce)])?void 0:e.alt},set:function(e){var t=O;this.point.alt=e,this[t(2532)]=this.point}},{key:O(1980),get:function(){return this.position?[this.position]:null},set:function(e){e&&0<e.length&&(this.position=e[0])}},{key:O(i),get:function(){return[this.point]}},{key:O(a),get:function(){return[this.coordinate]}},{key:"orientation",get:function(){return this._orientation||this.options.orientation},set:function(e){this[O(1498)]=e}},{key:"modelMatrix",get:function(){var e=O;return this.options[e(1436)]?this.options.modelMatrix:this._getModelMatrix(this[e(ge)],this._orientation)}},{key:"heading",get:function(){var e=O;return Cesium__namespace[e(3277)](this[e(2539)])?Cesium__namespace.Math.toDegrees(this._heading_reality):null!=(e=this.style[e(ve)])?e:0},set:function(e){this.style.heading=e,this.updateModelMatrix()}},{key:"pitch",get:function(){var e=O;return Cesium__namespace.defined(this._pitch_reality)?Cesium__namespace.Math[e(de)](this[e(fe)]):null!=(e=this[e(2492)][e(ye)])?e:0},set:function(e){var t=O;this.style.pitch=e,this[t(1509)]()}},{key:"roll",get:function(){var e=O;return Cesium__namespace[e(3277)](this._roll_reality)?Cesium__namespace.Math[e(_e)](this[e(3046)]):null!=(e=this[e(pe)][e(me)])?e:0},set:function(e){this[O(ue)].roll=e,this.updateModelMatrix()}},{key:"objectsToExclude",get:function(){var e=O;return this.options.objectsToExclude||(this[e(he)]?this._objectsToExclude:void 0)},set:function(e){this._objectsToExclude=e}},{key:O(n),get:function(){var e=O,t=this;return this[e(re)]||(this[e(oe)]=this._layer[e(le)].entities.add({position:this[e(ce)]||new Cesium__namespace.CallbackProperty(function(e){return t._position},!1),point:{pixelSize:2,color:Cesium__namespace.Color.WHITE[e(3535)](.01)}})),this._trackedEntity}},{key:O(s),get:function(){return this[O(3700)]},set:function(e){var t,i=O,a=this;this._debugAxis=e,this[i(2078)]||(t=Math[i(X)](.06*Cesium__namespace[i(3428)][i(Q)](this[i(K)])[i(ee)],100),this[i(2078)]=this._layer[i(te)].add(new Cesium__namespace[i(2696)]({modelMatrix:this.modelMatrix,length:t,width:5})),this.debugAxisPrimitive._tooltipConfig={content:'<span style="color: red;">红色</span> 是 X轴<br/>\n <span style="color: green;">绿色</span> 是 Y轴<br/>\n <span style="color: blue;">蓝色</span> 是 Z轴',options:this.options.tooltipOptions},this.property&&(this.debugAxisPrimitive._timeTik=setInterval(function(){var e=i;a[e(ne)].modelMatrix=a[e(se)]},300)),this[i(ie)](this.debugAxisPrimitive)),this.debugAxisPrimitive[i(ae)]=e}},{key:O(3757),get:function(){var e=O;return this.debugAxisPrimitive?this[e(2078)].length:0},set:function(e){var t=O;this.debugAxisPrimitive||(this.debugAxis=!0),this.debugAxisPrimitive[t(Z)]=e}},{key:"_addedHook",value:function(e){var t=O;this.show&&this.position&&(this[t(2045)](this.options.position),_get(_getPrototypeOf(R.prototype),"_addedHook",this).call(this,e))}},{key:O(2071),value:function(e){var t=O;this._trackedEntity&&(this._map.trackedEntity===this._trackedEntity&&(this._map.trackedEntity=void 0),this._layer.dataSource.entities.remove(this._trackedEntity),delete this[t(2867)]),_get(_getPrototypeOf(R[t(2385)]),t(2071),this).call(this,e)}},{key:O(r),value:function(){this[O(2885)]&&(this._primitive.modelMatrix=this.modelMatrix)}},{key:O(1212),value:function(e,t){var i,a,n,s,r=O;return e?(i=Cesium__namespace.Math[r(V)](this.style[r(L)]||0),a=Cesium__namespace.Math.toRadians(this.style[r($)]||0),n=Cesium__namespace.Math.toRadians(this.style[r(2574)]||0),s=this.style[r(U)]||!Cesium__namespace.defined(this.style.heading)||!Cesium__namespace.defined(this.style.pitch)||!Cesium__namespace.defined(this.style.roll),t&&s&&(t=t.getValue?t.getValue(null==(s=this._map)||null==(s=s.clock)?void 0:s.currentTime):t)&&(s=getHeadingPitchRollByOrientation(e,t),this.style.mergeOrientation?(i+=s.heading,n+=s[r(2574)],a+=s.pitch):(Cesium__namespace.defined(this.style[r(L)])||(i=s.heading),Cesium__namespace.defined(this.style.roll)||(n=s.roll),Cesium__namespace.defined(this.style.pitch)||(a=s.pitch))),this[r(W)]=i,this._pitch_reality=a,this[r(J)]=n,t=Cesium__namespace.Transforms.headingPitchRollToFixedFrame(e,new Cesium__namespace[r(3975)](i,a,n),Cesium__namespace.Ellipsoid[r(998)],this[r(1592)].fixedFrameTransform),Cesium__namespace[r(3277)](this.scaleX)&&Cesium__namespace.defined(this.scaleY)&&Cesium__namespace.defined(this.scaleZ)?Cesium__namespace[r(q)].multiplyByScale(t,new Cesium__namespace[r(784)](this.scaleX,this.scaleY,this.scaleZ),t):Cesium__namespace.defined(this.style.scale)&&Cesium__namespace.Matrix4.multiplyByScale(t,new Cesium__namespace[r(Y)](this[r(D)].scale,this[r(D)].scale,this[r(2492)].scale),t),t):Cesium__namespace[r(3342)].IDENTITY}},{key:"_getGeoJsonGeometry",value:function(e){var t=O;return{type:t(j),coordinates:this[t(843)](null==e?void 0:e.noAlt)}}},{key:O(o),value:function(e){var t,i=O;return(e instanceof Cesium__namespace.CallbackProperty||e instanceof Cesium__namespace.SampledPositionProperty)&&(this.options.frameRate=null!=(t=this.options[i(2640)])?t:20,this[i(1498)]=this.options.orientation||new Cesium__namespace[i(B)](e),this[i(2584)]=e,this.bindUpdateEvent(),!0)}},{key:O(l),value:function(e){var t=O;this.show&&this.property&&(this._position=this[t(2584)].getValue(e.time),this.czmObject&&this._updatePositionsHook(),this[t(2797)])&&this._updateLabelPosition()}},{key:"_getPopupPosition",value:function(){var e=O;return this.property||this[e(G)]||this[e(z)]}},{key:"addDynamicPosition",value:function(e,t){var i=O,a=(this._sampledPositionProperty||this._initSampledPositionProperty(),this[i(P)](),(null==(a=this[i(w)])||null==(a=a.clock)?void 0:a.currentTime)||Cesium__namespace[i(S)].now()),n=(t?isNumber(t)?t=Cesium__namespace.JulianDate[i(1210)](a,t,new Cesium__namespace[i(984)]):isString(t)?t=-1===t.indexOf("Z")?Cesium__namespace[i(T)].fromDate(new Date(t)):Cesium__namespace.JulianDate[i(M)](t):t instanceof Date&&(t=Cesium__namespace[i(E)][i(445)](t)):t=a,e=LngLatPoint.parse(e),null==(n=this._sampledPositionProperty)||null==(n=n._property)?void 0:n._times),i=(0<(null==n?void 0:n.length)&&this._position&&(n=n[n[i(A)]-1],.3<Cesium__namespace.JulianDate.secondsDifference(a,n))&&(n=this._position,this[i(H)]&&(n=getOnLinePointByLen(this[i(F)],this._position,.01,!0)),n=setPositionsHeight(n,e.alt||0),this[i(N)].addSample(a,n)),e.toCartesian());return this._sampledPositionProperty.addSample(t,i),this._lastDynamicPosition=i,this}},{key:"_initSampledPositionProperty",value:function(){var e,a,n=O,s=this;this._clampToTilesetFrame=-1,this._frameRateHeight=null!=(e=this.options.frameRateHeight)?e:30,this._maxCacheCount=null!=(e=this[n(d)].maxCacheCount)?e:50,this._sampledPositionProperty?a=this[n(2511)]:((a=new Cesium__namespace.SampledPositionProperty).forwardExtrapolationType=null!=(e=this[n(1592)][n(f)])?e:Cesium__namespace.ExtrapolationType.NONE,a.backwardExtrapolationType=null!=(e=this.options.backwardExtrapolationType)?e:Cesium__namespace.ExtrapolationType.NONE,this._sampledPositionProperty=a),this.property=new Cesium__namespace.CallbackProperty(function(e){var t,i=n;if(s[i(3817)])return(e=a.getValue(e))&&s[i(g)].clampToTileset&&(s._clampToTilesetFrame++,s[i(C)]&&s._clampToTilesetFrame%s._frameRateHeight!=0||(t=getHeight(s[i(3817)].scene,e,{objectsToExclude:s[i(x)].objectsToExclude,has3dtiles:!0}))&&(s[i(2942)]=t),s[i(b)])&&(t=Cesium__namespace.Cartographic[i(k)](e),e=Cesium__namespace[i(784)].fromRadians(t.longitude,t[i(2360)],s[i(2942)]+s.getAddHeight())),e},!1),this[n(y)]=this[n(v)].orientation||new Cesium__namespace.VelocityOrientationProperty(a),this.bindUpdateEvent()}},{key:"_removeDynamicPosition",value:function(){var e,t=O;this[t(2777)]<1||(e=null==(e=this[t(p)])||null==(e=e._property)?void 0:e._times)&&0!==e[t(m)]&&0<(t=e.length-this._maxCacheCount-1)&&this._sampledPositionProperty.removeSamples(new Cesium__namespace.TimeInterval({start:e[0],stop:e[t]}))}},{key:"autoSurfaceHeight",value:function(){var i=O,a=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return getSurfaceHeight(this._map[i(h)],this.position,e)[i(u)](function(e){var t=i;e.position&&(a[t(_)]=e[t(2532)])})}},{key:O(c),value:function(e){return this.autoSurfaceHeight(e)}},{key:"getCoordinate",value:function(e){return this.point?this.point.toArray(e):[]}}]),R}(),PointPrimitive=function(){var i=620,a=3475,n=2532,s=3605,r=2885,o=1567,t=2026,l=(_inherits(c,BasePointPrimitive),_createSuper(c));function c(){var e=_0x236b;return _classCallCheck(this,c),l[e(t)](this,arguments)}return _createClass(c,[{key:"primitiveCollection",get:function(){var e;return null==(e=this[_0x236b(2818)])?void 0:e.pointCollection}},{key:"_showHook",value:function(e){var t=_0x236b;this._primitive?this[t(r)].show=e:e&&_get(_getPrototypeOf(c.prototype),"_showHook",this)[t(o)](this,e)}},{key:"_addedHook",value:function(e){var t,i=_0x236b;this.show&&(this._forPositionProperty(this.options.position),this._primitive&&this[i(a)].remove(this[i(2885)]),t=PointStyleConver.toCesiumVal(this.style,{show:this.show,position:this[i(n)]}),this._primitive=this[i(3475)][i(s)](t),this.style.label)&&this._addLabel()}},{key:"_updateStyleHook",value:function(e,t){PointStyleConver.toCesiumVal(e,this.primitive)}},{key:"_style2Json",value:function(e,t){return PointStyleConver[_0x236b(3458)](e,t)}},{key:"_updatePositionsHook",value:function(){this[_0x236b(2885)].position=this.position}},{key:"_getDrawEntityClass",value:function(e,t){return create$4(_0x236b(i),e)}}]),c}(),BasePolyPrimitive=(register$4("pointP",PointPrimitive,!0),function(){var e=3945,t=3222,i=1135,a=2036,n=3497,s=690,r=3019,_=2797,p=3101,o=1980,l=1592,c=1980,h=1980,m=_0x1658de,u=(_inherits(d,BasePrimitive),_createSuper(d));function d(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,d),(t=u.call(this,a))._hasEdit=null==(e=t[i(l)].hasEdit)||e,a[i(c)]&&(0<t.style.buffer?t.positions=bufferPoints(a.positions,t.style.buffer,t.style.bufferSteps):t[i(h)]=a.positions),t}return _createClass(d,[{key:"center",get:function(){return this.style.closure?this.centerOfMass:this.centerOfLine}},{key:"centerOfMass",get:function(){return centerOfMass(this.positions)}},{key:"centerOfLine",get:function(){var e=_0x236b,t=this[e(o)];return t&&0!==t[e(2822)]?1===t.length?t[0]:t.length<10?sliceByMaxDistance(t,this.distance/2,{point:!0}):t[Math.floor(t.length/2)]:null}},{key:"distance",get:function(){return getDistance(this.positions)}},{key:"area",get:function(){return getSurfaceArea(this.positions)}},{key:m(1980),get:function(){return this._positions},set:function(e){var n,s,r=332,o=3441,l=2255,c=2993,h=m,u=this;e&&(n=[],s=[],e[h(2432)](function(e,t){var i,a=h,e=LngLatPoint[a(r)](e);e&&e.valid()&&(i=u.style[a(o)],Cesium__namespace.defined(i)&&(isString(i)?(i=Number(template(i,u.attr,!0)),isNaN(i)&&(i=0)):Array[a(l)](i)&&(i=i[t]||0),e[a(2993)]=i),0!==(i=u.getAddHeight(t))&&(e[a(2993)]=e[a(c)]+i),n.push(e),s.push(e.toCartesian()))}),this._points=n,this._positions=s,this._primitive&&this[h(3639)](),this[h(_)]&&this._updateLabelPosition(),this._editing_entity&&(this[h(p)].positions=s),this.fire(EventType[h(1026)],{positions:this._positions}))}},{key:"positionsShow",get:function(){return this.positions}},{key:m(e),get:function(){var e=m;return this._points||(this[e(2789)]=LngLatArray.toPoints(this[e(r)])),this._points}},{key:"coordinates",get:function(){return this.getCoordinates()}},{key:m(t),get:function(){return Cesium__namespace.Rectangle.fromCartesianArray(this.positions)}},{key:"_getGeoJsonGeometry",value:function(e){return{type:m(s),coordinates:this.getCoordinates(null==e?void 0:e.noAlt)}}},{key:"getCoordinates",value:function(t){var i=[];return this.points.forEach(function(e){i.push(e.toArray(t))}),i}},{key:m(1996),value:function(e){var t=m,e=LngLatPoint.parse(e);return!!Cesium__namespace.Rectangle[t(i)](Cesium__namespace[t(a)].fromCartesianArray(this.positions),e.toCartographic())&&isInPoly(e,this[t(n)])}},{key:m(3128),value:function(){var e=m,t=this;return computeSurfacePoints(_objectSpread2(_objectSpread2({},0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}),{},{map:this._map,positions:this.positions}))[e(2589)](function(e){return e.noHeight||(t.positions=e.positions),e})}},{key:"clampToGround",value:function(e){return this.autoSurfaceHeight(e)}}]),d}()),PolylinePrimitive=function(){var e=1748,t=3692,i=969,a=2903,n=3692,s=1567,r=2401,o=2988,l=687,c=1672,h=_0x1658de,u=(_inherits(_,BasePolyPrimitive),_createSuper(_));function _(){return _classCallCheck(this,_),u.apply(this,arguments)}return _createClass(_,[{key:"_conversionStyle",value:function(e){return PolylineStyleConver[_0x236b(c)](e)}},{key:h(e),value:function(e,t){return PolylineStyleConver.toJSON(e,t)}},{key:"_createGeometryInstance",value:function(e,t){var i=h,a=(e.positions=this.positions||[],e.closure&&0<(null==(a=e.positions)?void 0:a.length)&&(e.positions=e.positions.concat(e.positions[0])),e.clampToGround?Cesium__namespace[i(3009)]:Cesium__namespace[i(1756)]);return new Cesium__namespace.GeometryInstance({id:this.id,geometry:new a(e),attributes:this.options.attributes})}},{key:h(3637),value:function(e,t){var i,a=h;return new(e._isColorMaterial?(t.geometryInstances.geometry.vertexFormat=Cesium__namespace.PolylineColorAppearance[a(r)],e.colors||(i=this._getColorByColorMaterial(e),t.geometryInstances.attributes=t[a(915)].attributes||{},t[a(915)][a(o)].color=Cesium__namespace[a(3825)].fromColor(i),e[a(3909)]&&(t.geometryInstances.attributes[a(l)]=Cesium__namespace.ColorGeometryInstanceAttribute.fromColor(e[a(687)]||i))),Cesium__namespace.PolylineColorAppearance):Cesium__namespace[a(1322)])(_objectSpread2({},e))}},{key:h(t),value:function(e,t){var i=h;Cesium__namespace.defined(t[i(a)])?this.redraw(e):_get(_getPrototypeOf(_.prototype),i(n),this)[i(s)](this,e,t)}},{key:h(i),value:function(e,t){return create$4("polyline",e)}}]),_}(),BaseLayer=(register$4("polylineP",PolylinePrimitive),function(){var e=1312,t=2098,i=4062,a=1744,n=1941,s=1404,r=2385,o=1938,l=1592,c=1938,h=1588,u=1286,_=1588,p=1592,m=4045,d=1592,f=4045,y=2586,v=1561,g=3817,C=621,x=406,b=3817,k=1592,P=1592,w=563,S=585,T=1997,M=3432,E=3385,A=1941,L=3614,D=1592,I=412,H=2544,F=4001,N=3629,G=1592,z=3387,B=3980,O=_0x1658de,j=(_inherits(R,BaseClass),_createSuper(R));function R(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),((t=j.call(this,a)).options=a).id=null!=(e=a.id)?e:createGuid(),a.pid=null!=(e=a[i(I)])?e:-1,t[i(H)]=null==(e=a.show)||e,t._private=a[i(F)],t._opacity=null!=(e=a.opacity)?e:1,Cesium__namespace.defined(a.alpha)&&(t._opacity=a[i(N)]),t.options.proxy&&(isString(t.options.proxy)?t._proxy=new Cesium__namespace.DefaultProxy(t.options.proxy):t._proxy=t[i(G)].proxy),replaceOnlineUrlDomain(t.options),t[i(z)](),t._readyPromise=Cesium__namespace.defer?Cesium__namespace.defer():Cesium__namespace.when[i(B)](),t._state=State[i(4023)],t}return _createClass(R,[{key:"id",get:function(){return this[_0x236b(1592)].id},set:function(e){this[_0x236b(1592)].id=e}},{key:"uuid",get:function(){return this[_0x236b(1592)].id}},{key:"name",get:function(){return this.options.name},set:function(e){var t=_0x236b;this.options[t(640)]=e}},{key:"pid",get:function(){return this[_0x236b(D)].pid},set:function(e){this.options.pid=e}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}},{key:O(2514),get:function(){return this._state===State.ADDED}},{key:"isDestroy",get:function(){var e=O;return this[e(A)]===State[e(L)]}},{key:"isPrivate",get:function(){return!!this._private}},{key:"readyPromise",get:function(){return this._readyPromise.promise}},{key:"layer",get:function(){return null}},{key:"show",get:function(){return this._show},set:function(t){var e=O;this._show===t||this.isDestroy||(this[e(1592)].show=t,this._show=t,this.layer&&(Array.isArray(this[e(E)])?this.layer.forEach(function(e){e.show=t}):this.layer.show=t),this[e(2514)]&&(this._showHook&&this._showHook(t),t?this.fire(EventType[e(4045)]):this.fire(EventType.hide)))}},{key:O(e),get:function(){return!1!==this.options.hasOpacity&&!!this.setOpacity}},{key:O(t),get:function(){return this._opacity},set:function(e){var t=O;this._opacity=e,this.setOpacity&&this[t(3860)](e)}},{key:O(i),value:function(e){return e&&e.addLayer&&e.addLayer(this),this}},{key:"remove",value:function(e){var t=O;this._map&&this._map[t(M)](this,e)}},{key:"_onAdd",value:function(e){var t,i=O;this._state!==State.ADDED&&(this._map=e,this[i(k)].eventParent?this.addEventParent(this[i(P)].eventParent):!1!==(null==(t=this.options)?void 0:t.eventParent)&&this.addEventParent(e),this._mountedHook&&!this._createOK&&(this._mountedHook(),this._createOK=!0),this._addedHook&&this[i(w)](),this.options.flyTo&&this.flyToByAnimationEnd({duration:0}),this._state=State[i(S)],this.fire(EventType.add),this[i(T)](EventType.addLayer,{},!0))}},{key:"_onRemove",value:function(){var e,t=O;this._state===State.ADDED&&this[t(3817)]&&(this._removedHook&&this._removedHook(),this[t(1941)]=State.REMOVED,this[t(1997)](EventType.remove),this.fire(EventType.removeLayer,{},!0),null!=(e=this.options)&&e[t(2697)]?this.removeEventParent(this.options.eventParent):!1!==(null==(e=this[t(1592)])?void 0:e.eventParent)&&this.removeEventParent(this[t(b)]),this._map=null)}},{key:O(a),value:function(){}},{key:"_addedHook",value:function(){}},{key:"_removedHook",value:function(){}},{key:"fire",value:function(e){var t=O,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=2<arguments.length?arguments[2]:void 0;return i.layer||(i.layer=this),_get(_getPrototypeOf(R[t(2385)]),"fire",this).call(this,e,i,a)}},{key:"flyToByAnimationEnd",value:function(e){var t=O,i=this;return this._map&&this.show&&(this._map.isFlyAnimation()?this._map.openFlyAnimationEndFun=function(){i.flyTo(e)}:this[t(x)](e)),this}},{key:O(406),value:function(t){var e=O,i=this,a=this[e(2481)](t);return a||this[e(C)].then(function(e){return i._flyTo(t)})}},{key:"_flyTo",value:function(){var e,t=O,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this._map?(this.options.flyToOptions&&(i=_objectSpread2(_objectSpread2({},this[t(1592)].flyToOptions),i)),this._map[t(1626)](),this.options.center?this._map.setCameraView(this.options.center,i):(e=this.options[t(v)]||this._extent||this.getRectangle&&this[t(3036)]())?this[t(g)].flyToExtent(e,i):void 0):Promise[t(1049)](!1)}},{key:"setOptions",value:function(e){var t=O;return e&&0!==Object.keys(e).length&&(this[t(d)]=merge(this[t(1592)],e),Cesium__namespace.defined(e.opacity)&&(this.opacity=e.opacity),Cesium__namespace.defined(e.name)&&(this[t(640)]=e.name),Cesium__namespace[t(3277)](e[t(f)])&&(this[t(4045)]=e.show),this._bindControl(),this[t(y)])&&this._setOptionsHook(this[t(1592)],e),this}},{key:"toJSON",value:function(){var e=O,t=clone(this[e(p)],["parent",e(2697)]);return t.id=this.id,t[e(1488)]=this.type,t[e(m)]=this.show,this._toJsonEx(t),t}},{key:"_toJsonEx",value:function(e){}},{key:"_bindControl",value:function(){var e,t=O;Cesium__namespace.defined(this.options.contextmenuItems)&&(this[t(1592)][t(o)]?this._contextmenuConfig={content:this[t(l)][t(c)],options:this.options.contextmenuOptions,layer:this}:this._contextmenuConfig=null),Cesium__namespace.defined(this.options.popup)&&(this[t(l)].popup?(e=this[t(1592)][t(1025)]||{},this[t(h)]={options:e,content:bindLayerPopup(e,this.options[t(u)],this.name),layer:this}):this[t(_)]=null),Cesium__namespace.defined(this.options.tooltip)&&(this.options.tooltip?(e=this.options[t(2408)]||{},this[t(669)]={options:e,content:bindLayerPopup(e,this[t(1592)].tooltip,this.name),layer:this}):this._tooltipConfig=null)}},{key:"_filterPropagateEvent",value:function(e,t){var i=O;return t.type!==i(4070)}},{key:"destroy",value:function(e){var t=O;this[t(n)]!==State.DESTROY&&(this._state!==State.REMOVED&&(this.clear&&this[t(s)](),this.remove()),_get(_getPrototypeOf(R[t(r)]),"destroy",this)[t(1567)](this,e),this[t(n)]=State.DESTROY)}}]),R}());function bindLayerPopup(a,n,s){var r=3430,o=500;return"function"==typeof n?function(e){return n(e)}:function(e){var t=_0x236b,i=_getAttrForPopup(e);return i instanceof Promise?i.then(function(e){var t=_0x236b,e=(i=_objectSpread2({layer_name:s},e),s);return a[t(1586)]?e=null:a.title?e=a.title:a.titleField&&(e=i[a.titleField]),getTemplateHtml({title:e,template:n,attr:i})}):(i=_objectSpread2({layer_name:s},i),e=s,a.noTitle?e=null:a[t(r)]?e=a[t(3430)]:a.titleField&&(e=i[a[t(o)]]),getTemplateHtml({title:e,template:n,attr:i}))}}function _getAttrForPopup(e){var t,i=2403,a=1488,n=1740,s=_0x1658de;return null!=e&&e[s(1740)]?e.attr:null!=e&&null!=(t=e.graphic)&&t.attr?e.graphic.attr:e.czmObject&&null!=(e=t=(t=e.czmObject._attr||e[s(417)].properties||e.czmObject[s(i)])&&t[s(a)]&&t.attr?t[s(n)]:t)?e:{}}var BaseGraphicLayer=function(){var e=2586,t=3507,i=3898,a=1107,n=916,s=1684,r=1206,o=3047,l=2209,c=1592,h=1432,u=2413,_=669,p=669,m=1432,d=3817,f=1592,y=3817,v=3817,g=3723,C=1802,x=4030,b=3507,k=3522,P=3844,w=3844,S=1227,T=_0x1658de,M=(_inherits(E,BaseLayer),_createSuper(E));function E(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,E),t.url&&t[e(3688)]&&(t[e(2675)]=template(t.url,t.templateValues)),M[e(1567)](this,t)}return _createClass(E,[{key:"_showHook",value:function(e){e||this._closeAllControl()}},{key:"_addedHook",value:function(){var e,t=_0x236b;this.options[t(2465)]?this.bindHighlight(this.options.highlight):null!=(e=this[t(1592)].symbol)&&null!=(e=e[t(w)])&&e.highlight&&this.bindHighlight(this.options[t(S)].styleOptions.highlight)}},{key:"_removedHook",value:function(){this._closeAllControl(),this.unbindHighlight()}},{key:T(e),value:function(e,t){var i,a=T;this._highlightOptions&&(this.unbindHighlight(),e.highlight?this.bindHighlight(e.highlight):null!=(i=e.symbol)&&null!=(i=i.styleOptions)&&i[a(2465)]&&this.bindHighlight(e.symbol[a(P)].highlight))}},{key:"_closeAllControl",value:function(){var e=T;this.closePopup(),this[e(3821)](),this.closeSmallTooltip(),this.closeContextMenu()}},{key:"bindHighlight",value:function(e){var t=T;this[t(k)](),this._highlightOptions=e,this._highlightOptions[t(1488)]===EventType.click?this.on(EventType.click,this[t(3507)],this):(this.on(EventType.mouseOver,this._highlight_mouseEventHandler,this),this.on(EventType.mouseOut,this[t(3898)],this))}},{key:"unbindHighlight",value:function(){var e=T;this._highlightOptions&&(this.off(EventType[e(C)],this._highlight_mouseEventHandler,this),this[e(x)](EventType.mouseOver,this[e(b)],this),this[e(4030)](EventType.mouseOut,this[e(3898)],this),this._map.closeHighlight(),this[e(2354)]=null)}},{key:T(t),value:function(e){var t,i=T;this[i(v)]&&((t=null==e?void 0:e.graphic)?this._map[i(g)](t,this._highlightOptions,e):this._map.closeHighlight())}},{key:T(i),value:function(e){var t=T;this[t(y)][t(1803)]()}},{key:T(3723),value:function(e,t){this._map&&e&&this._map.openHighlight(e,this._highlightOptions,t)}},{key:"closeHighlight",value:function(){var e=T;this._map[e(1803)]()}},{key:T(a),value:function(){var e=T;if(this[e(1588)])return!0;if(this._graphicList)for(var t=this._graphicList.values,i=0,a=t.length;i<a;i++)if(t[i][e(1588)])return!0;return!1}},{key:"bindPopup",value:function(e,t){var i=T;return this[i(1588)]={content:e,options:t||this[i(f)].popupOptions,layer:this},this}},{key:"unbindPopup",value:function(e){return this[T(626)](),this._popupConfig=!e&&null,this}},{key:T(2048),value:function(e){var t=T;return e.openPopup?e.openPopup():this._popupConfig&&e&&this._map&&(this[t(1588)].graphic=null,this._map.popup.open(e,this[t(1588)])),this}},{key:"closePopup",value:function(){var e=T;return this[e(d)]&&this[e(1107)]()&&this[e(d)].popup.close(null,this),this}},{key:"hasTooltip",value:function(){var e=T;if(this[e(p)])return!0;if(this._graphicList)for(var t=this[e(m)].values,i=0,a=t.length;i<a;i++)if(t[i][e(669)])return!0;return!1}},{key:"bindTooltip",value:function(e,t){return this[T(_)]={content:e,options:t||this.options.tooltipOptions,layer:this},this}},{key:T(n),value:function(e){return e?this[T(669)]=!1:this._tooltipConfig=null,this.closeTooltip(),this}},{key:"openTooltip",value:function(e){var t=T;return e[t(2413)]?e[t(u)]():this._tooltipConfig&&e&&this._map&&(this._tooltipConfig.graphic=null,this._map.tooltip.open(e,this._tooltipConfig)),this}},{key:"closeTooltip",value:function(){return this._map&&this.hasTooltip()&&this._map.tooltip.close(null,this),this}},{key:"hasContextMenu",value:function(){var e=T;if(this[e(3047)])return!0;if(this._graphicList)for(var t=this[e(h)].values,i=0,a=t.length;i<a;i++)if(t[i][e(3047)])return!0;return!1}},{key:T(s),value:function(){return this._contextmenuConfig}},{key:"bindContextMenu",value:function(e,t){var i=T;return this[i(3047)]={content:e,options:t||this[i(c)][i(1031)],layer:this},this}},{key:"unbindContextMenu",value:function(e){var t=T;return this._contextmenuConfig=!e&&null,this[t(l)](),this}},{key:"openContextMenu",value:function(e){var t=T;return e.openContextMenu?e.openContextMenu():this._contextmenuConfig&&e&&this._map&&(this[t(o)][t(2353)]=null,this._map.contextmenu.open(e,this._contextmenuConfig)),this}},{key:"closeContextMenu",value:function(){var e=T;return this[e(3817)]&&this[e(2056)]()&&this._map.contextmenu.close(null,this),this}},{key:"openSmallTooltip",value:function(e,t){return this._map&&this._map.openSmallTooltip(e,t),this}},{key:"closeSmallTooltip",value:function(){var e=T;return this._map&&this._map[e(r)](),this}}]),E}(),GraphicLayer=function(){var e=2866,t=664,i=769,a=2828,n=2828,s=1836,r=638,o=3817,l=3817,c=1206,h=1329,u=575,_=1802,p=4030,m=1856,d=3077,f=1836,y=1836,v=2671,g=1836,C=1432,x=2738,b=2174,k=3923,P=787,w=2115,S=3766,T=634,H=2432,F=3860,N=1018,G=3463,z=834,B=3686,j=2629,M=883,V=1507,$=2492,U=883,W=2822,J=883,q=613,Y=883,Z=2422,X=1592,Q=3840,K=1018,ee=2822,te=3817,ie=2119,ae=664,ne=3892,se=2432,re=1238,oe=606,le=1432,ce=1432,he=3815,ue=406,_e=4070,pe=2540,me=2353,de=3840,fe=1594,ye=1567,ve=2671,ge=1188,Ce=3817,xe=4034,E=3118,be=3905,ke=2390,Pe=3817,we=787,Se=434,Te=2390,Me=1941,Ee=1592,Ae=864,Le=3118,A=3605,L=2144,De=2144,Ie=3766,Oe=721,Re=3077,He=3006,Fe=2144,Ne=398,Ge=1135,ze=3817,Be=2246,je=1301,Ve=3754,$e=4034,Ue=2246,We=1592,Je=3314,qe=1432,Ye=2822,Ze=1018,Xe=434,Qe=1467,Ke=2436,et=1058,tt=434,it=4045,at=3118,nt=787,st=3320,rt=3605,ot=3118,lt=2144,ct=3621,ht=3905,ut=1592,D=3817,_t=3905,pt=3118,mt=2144,dt=2174,ft=585,yt=3605,vt=1592,gt=3277,I=1592,Ct=2246,xt=2390,bt=1018,kt=787,Pt=2385,wt=638,O=_0x1658de,St=(_inherits(R,BaseGraphicLayer),_createSuper(R));function R(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(e=St.call(this,t))._setOptionsHook(t,t),e._graphicList=new MarsArray,e}return _createClass(R,[{key:"_setOptionsHook",value:function(e,t){var i=_0x236b;_get(_getPrototypeOf(R[i(Pt)]),"_setOptionsHook",this).call(this,e,t),this[i(wt)]=null!=(t=e.hasEdit)&&t,this.isAutoEditing=null==(i=e.isAutoEditing)||i,this.isContinued=null!=(t=e.isContinued)&&t}},{key:O(3385),get:function(){var e=O,t=[];return this._dataSource&&t.push(this._dataSource),this._primitiveCollection&&t.push(this._primitiveCollection),this._labelCollection&&t.push(this._labelCollection),this._billboardCollection&&t.push(this[e(xt)]),this._cloudCollection&&t[e(bt)](this._cloudCollection),this[e(3033)]&&t.push(this._pointCollection),this[e(kt)]&&t.push(this._polylineCollection),t}},{key:"clustering",get:function(){var e;return null==(e=this.dataSource)||null==(e=e.clustering)?void 0:e.enabled},set:function(e){var t;null!=(t=this.dataSource)&&t.clustering&&(this.dataSource.clustering.enabled=e)}},{key:"dataSource",get:function(){var e=O;return!this._dataSource&&(this[e(2246)]=new Cesium__namespace.CustomDataSource(this.id),this[e(2246)].show=this.show,this._state===State.ADDED)&&(this._map.dataSources[e(3605)](this._dataSource),Cesium__namespace[e(gt)](this[e(I)].zIndex))&&(this.zIndex=this[e(I)].zIndex),this[e(Ct)]}},{key:"primitiveCollection",get:function(){var e=O;return!this._primitiveCollection&&(this[e(dt)]=new Cesium__namespace.PrimitiveCollection(this.options),this._primitiveCollection.show=this.show,this._state===State[e(ft)])&&(this._map.scene.primitives[e(yt)](this._primitiveCollection),Cesium__namespace.defined(this.options.zIndex))&&(this.zIndex=this[e(vt)].zIndex),this._primitiveCollection}},{key:O(3235),get:function(){var e=O;return this[e(ht)]||(this._labelCollection=new Cesium__namespace.LabelCollection(_objectSpread2(_objectSpread2({},this[e(ut)]),{},{scene:this[e(D)][e(3118)]})),this[e(_t)].show=this.show,this._state!==State.ADDED)||this[e(D)][e(pt)][e(mt)].add(this._labelCollection),this._labelCollection}},{key:"pointCollection",get:function(){var e=O;return this._pointCollection||(this._pointCollection=new Cesium__namespace[e(ct)](this.options),this[e(3033)].show=this.show,this[e(1941)]!==State.ADDED)||this[e(3817)].scene.primitives.add(this._pointCollection),this._pointCollection}},{key:O(e),get:function(){var e=O;return this._billboardCollection||(this._billboardCollection=new Cesium__namespace.BillboardCollection(_objectSpread2(_objectSpread2({},this.options),{},{scene:this._map[e(ot)]})),this[e(2390)].show=this.show,this[e(1941)]!==State.ADDED)||this._map.scene[e(lt)][e(3605)](this[e(2390)]),this._billboardCollection}},{key:"cloudCollection",get:function(){var e=O;return this._cloudCollection||(this._cloudCollection=new Cesium__namespace[e(st)](this.options.cloud),this._cloudCollection.show=this[e(4045)],this._state!==State.ADDED)||this._map.scene.primitives[e(rt)](this._cloudCollection),this._cloudCollection}},{key:"polylineCollection",get:function(){var e=O;return this._polylineCollection||(this._polylineCollection=new Cesium__namespace.PolylineCollection(this.options),this._polylineCollection.show=this[e(it)],this._state!==State.ADDED)||this._map[e(at)].primitives.add(this._polylineCollection),this[e(nt)]}},{key:O(1203),get:function(){var e=O;return this[e(Xe)]||(this._container=create$3(e(Qe),"gis3d-divlayer"),this.show?this._container.style.display=e(Ke):this._container.style[e(2163)]=e(et),this._state!==State.ADDED)||this._map.container.appendChild(this[e(tt)]),this._container}},{key:"pointerEvents",get:function(){return this._pointerEvents},set:function(e){var t=O;(this._pointerEvents=e)?this.container.style["pointer-events"]="all":this.container[t(2492)]["pointer-events"]=t(1058)}},{key:"objectsToExclude",get:function(){var a=443,n=O,s=this;return this._objectsToExclude||(this[n(Je)]||(this._objectsToExclude_auto=[],this[n(qe)][n(2432)](function(e){var i=n,t=e.objectsToExclude;t&&0<t[i(Ye)]?t.forEach(function(e){var t=i;-1===s._objectsToExclude_auto[t(a)](e)&&s._objectsToExclude_auto.push(e)}):e.czmObject&&(t=e.czmObject,-1===s._objectsToExclude_auto.indexOf(t))&&s._objectsToExclude_auto[i(Ze)](t)},this)),this._objectsToExclude_auto)},set:function(e){this._objectsToExclude=e}},{key:"hasZIndex",get:function(){return!0}},{key:"zIndex",get:function(){return this[O(We)].zIndex},set:function(e){var t=O;if(null!=(this.options[t(je)]=e)){if(this._primitiveCollection&&this._map[t(3118)].primitives[t(1135)](this._primitiveCollection)){this._primitiveCollection.zIndex=e,this._map.scene.primitives.raiseToTop(this[t(2174)]);for(var i=this._map.scene.primitives,a=i.length-1;0<=a;a--){var n=i[t(Ve)](a);n!==this._primitiveCollection&&Cesium__namespace.defined(n.zIndex)&&e<n.zIndex&&this._map.scene.primitives.lower(this._primitiveCollection)}}if(this._dataSource&&this[t(3817)].dataSources.contains(this._dataSource)){this._dataSource.zIndex=e,this._map.dataSources.raiseToTop(this._dataSource);for(var s=this[t(3817)][t($e)],r=s.length-1;0<=r;r--){var o=s.get(r);o!==this._dataSource&&Cesium__namespace.defined(o.zIndex)&&e<o[t(1301)]&&this._map.dataSources.lower(this[t(Ue)])}}}}},{key:"toTop",value:function(){var e=O;if(this[e(3817)])return this._primitiveCollection&&this._map.scene.primitives[e(Ge)](this._primitiveCollection)?this[e(ze)].scene.primitives.raiseToTop(this._primitiveCollection):this[e(Be)]&&this._map.dataSources.contains(this._dataSource)?this._map.dataSources.raiseToTop(this._dataSource):void 0}},{key:"toBottom",value:function(){var e=O;if(this[e(3817)])return this._primitiveCollection&&this[e(3817)][e(3118)].primitives[e(1135)](this._primitiveCollection)?this._map[e(3118)][e(Fe)][e(Ne)](this._primitiveCollection):this._dataSource&&this[e(3817)].dataSources.contains(this._dataSource)?this._map.dataSources.lowerToBottom(this._dataSource):void 0}},{key:"length",get:function(){return this._graphicList.length}},{key:"graphics",get:function(){return this[O(He)]()}},{key:"hasEdit",get:function(){return this[O(Re)]},set:function(e){e?this[O(3508)]():this.disableEdit()}},{key:"isEditing",get:function(){return null!=this._graphic_editing}},{key:"allowDrillPick",get:function(){return this[O(1592)].allowDrillPick},set:function(e){var t=O;this.options[t(3503)]=e}},{key:O(721),value:function(e){var t,i=O,a=this;this._state!==State.ADDED&&(this._state=State.ADDED,this._map=e,this.options.eventParent?this[i(Ae)](this.options.eventParent):!1!==(null==(t=this.options)?void 0:t.eventParent)&&this.addEventParent(e),this._dataSource&&this[i(3817)].dataSources.add(this._dataSource),this._primitiveCollection&&this[i(3817)][i(3118)].primitives.add(this._primitiveCollection),this._labelCollection&&this[i(3817)][i(Le)].primitives[i(A)](this._labelCollection),this._billboardCollection&&this._map.scene[i(L)].add(this._billboardCollection),this[i(3923)]&&this._map[i(3118)].primitives.add(this[i(3923)]),this._pointCollection&&this._map.scene[i(L)][i(3605)](this._pointCollection),this._polylineCollection&&this._map.scene[i(De)][i(A)](this._polylineCollection),this._container&&this._map.container.appendChild(this._container),this._mountedHook&&!this[i(Ie)]&&(this._createOK=!0,this._mountedHook()),this._addedHook&&this._addedHook(),this[i(1432)].forEach(function(e){var t=i;null!=e&&e._onAdd&&e[t(Oe)](a)},this),Cesium__namespace.defined(this.options.zIndex)&&(this.zIndex=this.options.zIndex),this.fire(EventType.addLayer,{layer:this},!0))}},{key:O(910),value:function(){var e,t=O;this._state===State.ADDED&&this._map&&(this._graphicList.forEach(function(e){null!=e&&e._onRemove&&e._onRemove()},this),this._dataSource&&this[t(Ce)][t(xe)].remove(this[t(2246)]),this._primitiveCollection&&this._map[t(E)][t(2144)].remove(this._primitiveCollection),this[t(be)]&&this._map[t(3118)][t(2144)].remove(this._labelCollection),this[t(ke)]&&this._map.scene.primitives.remove(this._billboardCollection),this._cloudCollection&&this._map.scene.primitives.remove(this._cloudCollection),this._pointCollection&&this._map[t(E)].primitives.remove(this._pointCollection),this._polylineCollection&&this[t(Pe)].scene.primitives.remove(this[t(we)]),this._container&&this[t(Se)].parentNode&&this._map.container.removeChild(this._container),this._map.scene.primitives[t(3454)]&&(this[t(2174)]=null,this._labelCollection=null,this[t(Te)]=null,this._cloudCollection=null,this[t(3033)]=null,this._polylineCollection=null),this._removedHook&&this[t(2071)](),this[t(Me)]=State.REMOVED,this.fire(EventType.remove),this.fire(EventType[t(3432)],{layer:this},!0),null!=(e=this[t(1592)])&&e.eventParent?this.removeEventParent(this[t(Ee)].eventParent):!1!==(null==(e=this.options)?void 0:e.eventParent)&&this.removeEventParent(this._map),this._map=null)}},{key:"_showHook",value:function(e){var i=O;_get(_getPrototypeOf(R[i(2385)]),i(fe),this)[i(ye)](this,e),e?this[i(434)]&&(this._container.style.display="block",this[i(1432)].forEach(function(e){var t=i;e[t(1188)]&&e[t(ge)]()},this)):(this._container&&(this._container.style.display="none"),this[i(ve)]())}},{key:"_mountedHook",value:function(){var t=2828,i=2530,a=O,n=this;_get(_getPrototypeOf(R.prototype),a(1744),this).call(this),this.on(EventType.drawCreated,function(e){var t=a;n.stopDraw(),n.isContinued?n.startDraw(clone(e.graphic.options)):n.hasEdit&&n.isAutoEditing&&n[t(2530)](e.graphic)},this),this.on(EventType[a(_e)],function(e){var t=a;n.hasEdit&&n.isAutoEditing&&n._graphic_editing===e[t(2353)]&&n[t(i)](e.graphic)},this),this.on(EventType.removeGraphic,function(e){var t=a;n._graphic_drawing===e.graphic&&(n._graphic_drawing=null),n[t(2828)]===e.graphic&&(n._graphic_editing=null)},this),this.on(EventType.editStart,function(e){n._graphic_editing=e.graphic},this),this.on(EventType[a(pe)],function(e){n[a(t)]=null},this),this.options[a(840)]&&this._bindClustering(this.options.clustering),this.type===a(me)&&(this.options.data&&this[a(de)](this.options.data),this._readyPromise.resolve(this)),this.options.geojson&&this.loadGeoJSON(this.options.geojson)}},{key:"_addedHook",value:function(){var e=O;_get(_getPrototypeOf(R.prototype),"_addedHook",this).call(this),this._hasEdit&&this._bindEditEvent(),this.options[e(ue)]&&this[e(2300)]()}},{key:O(2071),value:function(){var e=O;_get(_getPrototypeOf(R[e(2385)]),e(2071),this).call(this),this[e(3077)]&&(this.stopDraw(),this[e(he)]())}},{key:"getRectangle",value:function(e){var t;return this._graphicList.forEach(function(e){e.getRectangle&&(e=e.getRectangle(),Cesium__namespace.defined(e))&&(t=t?Cesium__namespace.Rectangle.union(e,t):e)},this),e?formatRectangle(t):t}},{key:O(3501),value:function(){var t=0;return this[O(ce)].forEach(function(e){e.getMaxHeight&&(t=Math.max(e.getMaxHeight(),t))},this),t}},{key:"toGeoJSON",value:function(i){var a=O,n=(null!=i&&i[a(oe)]&&this.stopEditing(),[]);return this[a(le)].forEach(function(e){var t=a;e.isPrivate||(e=e.toGeoJSON(i))&&(Array.isArray(e)?n=n.concat(e):n[t(1018)](e))},this),{type:"FeatureCollection",layer:{id:this.id,name:this.name},features:n}}},{key:"_toJsonEx",value:function(e){var i=671,a=O,n=(this[a(ne)](),[]);this[a(1432)][a(se)](function(e){var t=a;!e.isPrivate&&e[t(i)]&&(t=e.toJSON())&&(Array.isArray(t)?n=n.concat(t):n.push(t))},this),e[a(re)]=n}},{key:"loadGeoJSON",value:function(e){var t=O,i=1<arguments[t(ee)]&&void 0!==arguments[1]?arguments[1]:{};try{isString(e)&&(e=JSON.parse(e))}catch(e){return void logError$1("loadGeoJSON:请确认json文件格式正确!",e)}var a=null==(a=this[t(te)])?void 0:a[t(2119)],a=getTransFun(this.options[t(ie)],a),e=geoJsonToGraphics(e,_objectSpread2(_objectSpread2({},i),{},{symbol:this.options[t(1227)],crs:this.options[t(2022)],onPointTrans:a}));return this[t(ae)](e,i)}},{key:O(t),value:function(e){var t=O,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=(i.clear&&this[t(1404)](),[]);if(0!==e.length){!1===i.enabledEvent&&(n=!(this.enabledEvent=!1));var n,s=e[0].type,r=this.options[t(4059)]||{};if(isCombineType(s)){s=_objectSpread2(_objectSpread2({},r),{},{type:s,instances:e}),s=(i.onEachFeature&&i.onEachFeature(s),this._addGraphic(s));a[t(1018)](s)}else for(var o=0,l=e.length;o<l;o++){var c,h=_objectSpread2(_objectSpread2({},r),e[o]);i.onEachFeature&&i[t(Z)](h),this.options.onCreateGraphic?(c=this[t(X)].onCreateGraphic(h))&&(this[t(Q)](c),Array.isArray(c)?a=a.concat(c):a[t(K)](c)):(c=this[t(634)](h),a.push(c))}n&&(this.enabledEvent=!0),i[t(406)]&&this.show&&this[t(3817)].flyToGraphic(a)}return a}},{key:"_bindClustering",value:function(){var e,a,n=O,s=this,c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=null==(e=this.dataSource)?void 0:e.clustering;t&&(t[n(3463)]=null!=(e=c[n(G)])&&e,t[n(1382)]=null!=(e=c[n(1382)])?e:20,a=setInterval(function(){t._cluster&&t._cluster()},800),t[n(z)].addEventListener(function(e,t){var r=2822,o=n,l=(a&&(clearInterval(a),a=null),t[o(B)]._gis3d_layerId=s.id,t.label[o(4045)]=!1,t.point._gis3d_layerId=s.id,t[o(883)]._gis3d_layerId=s.id,t.billboard[o(4045)]=!0,t.billboard.id=t[o(3686)].id,t.billboard.verticalOrigin=Cesium__namespace[o(j)][o(812)],t[o(M)].heightReference=c.clampToGround?Cesium__namespace[o(V)].CLAMP_TO_GROUND:Cesium__namespace.HeightReference.NONE,t.billboard.scale=.5,c[o($)]&&(BillboardStyleConver.toCesiumVal(c.style,t.billboard),c.style.setHeight&&(t.billboard.position=setPositionsHeight(t[o(M)].position,c.style[o(3441)])),c.style[o(1456)])&&(t[o(M)].position=addPositionsHeight(t[o(U)].position,c[o(2492)].addHeight)),c.getImage?(i=c.getImage(e[o(W)],c)).then?i.then(function(e){t.billboard.image=e}):t[o(J)].image=i:t.billboard[o(q)]=getCircleImage(e.length,c),s),i={entities:e,cluster:t,getGraphics:function(){for(var e=o,t=[],i=this.entities,a=0,n=i[e(r)];a<n;a++){var s=i[a],s=l.getGraphicById(s._gis3d_graphicId);t.push(s)}return t}};t[o(Y)]._clusterData=i,s[o(1997)]("clustering",i)}))}},{key:O(1968),value:function(){var e=O,t=null==(t=this.dataSource)?void 0:t.clustering;if(t){for(var i=t._clusterBillboardCollection,a=t._previousClusters,n=[],s=0,r=i.length;s<r;s++){var o=i.get(s);n[e(N)](_objectSpread2(_objectSpread2(_objectSpread2({},a[s]),o._clusterData),{},{billboard:o}))}return n}}},{key:"setOpacity",value:function(t){var i=O;this._opacity=t,this._graphicList[i(H)](function(e){e[i(F)]&&e.setOpacity(t)},this)}},{key:"addGraphic",value:function(e){var t=O;if(!this._createOK&&this._mountedHook&&(this[t(S)]=!0,this._mountedHook()),!Array[t(2255)](e))return this[t(T)](e);if(0!==e.length){t=e[0].type;if(isCombineType(t)&&!e[0].instances)return this._addGraphic({type:t,instances:e});for(var i=[],a=0,n=e.length;a<n;a++){var s=this._addGraphic(e[a]);s&&i.push(s)}return i}}},{key:"_addGraphic",value:function(e){var t=O;return delete this[t(3314)],this[t(1432)].get(null==(t=e)?void 0:t.id)&&(e.id=createGuid(),logWarn("addGraphic:数据id存在冲突,已重新赋值id",e)),(e=!e._onAdd&&e.type?create$4(e.type,e):e)&&(e._onAdd(this),this._graphicList.set(e.id,e)),e}},{key:"removeGraphic",value:function(e,t){return this._removeGraphic(e,t),this}},{key:"_removeGraphic",value:function(e,t,i){var a=O;if(!e||!e._onRemove)return this;delete this._objectsToExclude_auto,i||this[a(1432)].remove(e.id),e._onRemove(),t&&e.destroy()}},{key:"getGraphicById",value:function(e){return this._graphicList.get(e)}},{key:"getGraphicByAttr",value:function(e,t){return this._graphicList.getByAttr(e,t,"attr")}},{key:"getGraphicsByAttr",value:function(e,t){return this._graphicList.getListByAttr(e,t,"attr")}},{key:"getGraphicsByStyle",value:function(i,a){var n=O,s=[];return this[n(1432)][n(2432)](function(e){var t=n;e.style[i]===a&&s[t(1018)](e)},this),s}},{key:"eachGraphic",value:function(e,t){return this._graphicList.forEach(e,t||this),this}},{key:"getGraphics",value:function(){var t,i=O;return 0<arguments.length&&void 0!==arguments[0]&&arguments[0]?this._graphicList.values:(t=[],this[i(1432)].forEach(function(e){e[i(384)]||t.push(e)},this),t)}},{key:"clear",value:function(){var t=O,i=this,a=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];if(this[t(2671)](),this._graphicList&&(this[t(1432)].forEach(function(e){i._removeGraphic(e,a,!0)},this),this[t(C)].removeAll()),this._dataSource&&this._dataSource[t(x)].removeAll(),this[t(b)])try{this._primitiveCollection.removeAll()}catch(e){for(var n,s=this._primitiveCollection._primitives,r=s.length,o=0;o<r;++o)null!=(n=s[o])&&null!=(n=n._external)&&n._composites&&(delete s[o]._external._composites[this._guid],this._primitiveCollection.destroyPrimitives)&&s[o][t(1553)]();this._primitiveCollection._primitives=[]}this[t(3905)]&&this._labelCollection.removeAll(),this[t(2390)]&&this._billboardCollection.removeAll(),this._cloudCollection&&this[t(k)].removeAll(),this[t(3033)]&&this._pointCollection.removeAll(),this[t(P)]&&this._polylineCollection.removeAll(),this[t(w)]()}},{key:"autoSurfaceHeight",value:function(){var i=this,c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(e,t){var n=2207,s=2207,r=i.getGraphics(),o=-1,l=r.length;!function t(){var i,a=_0x236b;l<=++o?(c.end&&c.end({index:o,count:l,graphics:r}),e(r)):(i=r[o])[a(3128)]?i.autoSurfaceHeight(c).then(function(){var e=a;c.endItem&&c[e(s)]({graphic:i,index:o,count:l}),t()}):(c.endItem&&c[a(n)]({graphic:i,index:o,count:l}),t())}()})}},{key:"clampToGround",value:function(e){return this.autoSurfaceHeight(e)}},{key:"startDraw",value:function(a){var n=1493,s=this;return new Promise(function(e,t){var i=_0x236b;if(s.stopDraw(),!s._map)throw new Error("startDraw:需要 map.addLayer(当前图层) 后,才行使用本方法");a[i(n)]={resolve:e,reject:t};i=fromDraw(s,a);null!=i&&(s._graphic_drawing=i)})}},{key:O(i),value:function(){var e=O;return this.stopEditing(),!!this[e(1836)]&&((e=this[e(g)].endDraw())&&(this._graphic_drawing=null),e)}},{key:"stopDraw",value:function(){var e=O;return this.stopEditing(),!!this._graphic_drawing&&(this[e(y)][e(v)](),!(this._graphic_drawing=null))}},{key:"clearDrawing",value:function(){var e=O;return!!this[e(f)]&&(this._graphic_drawing.remove(!0),!(this[e(1836)]=null))}},{key:"activateEdit",value:function(){var e=O;if(!this._hasEdit)return this[e(d)]=!0,this[e(3817)]&&this._bindEditEvent(),this}},{key:"disableEdit",value:function(){var e=O;if(this._hasEdit)return this[e(3077)]=!1,this[e(3815)](),this.stopEditing(),this}},{key:O(1777),value:function(){var e=O;this[e(3817)].on(EventType.click,this._onClickHandler,this),this._map.on(EventType.mouseMoveTarget,this[e(1856)],this)}},{key:"_unbindEditEvent",value:function(){var e=O;this._map.off(EventType[e(_)],this._onClickHandler,this),this._map[e(p)](EventType.mouseMoveTarget,this[e(m)],this)}},{key:"_onMouseMoveHandler",value:function(e){var t,i,a=O;this[a(3077)]&&this[a(o)].scene[a(2722)].enableInputs&&(null==(t=(t=e.graphic)?t:null==(i=this[a(3817)].mouseEvent.getPickTarget(e.endPosition,e))?void 0:i.graphic)||t._layer!==this?this[a(l)][a(c)]():t[a(h)]||t.isPrivate||!t.hasEdit||this[a(3817)].contextmenu[a(4045)]&&this._map.contextmenu.target===t||(i=isPCBroswer()?this._map.getLangText("_单击后激活编辑")+"<br/>"+this._map.getLangText(a(u)):this._map.getLangText("_单击后激活编辑"),this._map[a(1434)](e.windowPosition,i)))}},{key:"_onClickHandler",value:function(e){var t,i=O;this[i(s)]||(t=e.graphic)&&(t.isPrivate||!t[i(638)])||(this[i(r)]&&t&&e.layer===this?this.startEditing(t,e):this.stopEditing())}},{key:"startEditing",value:function(e,t){var i=O;if(e&&e[i(2530)]&&e.isAdded&&e.hasEdit&&this._graphic_editing!==e&&!e._enabledDraw)return this.stopEditing(),e[i(2530)](),t&&e._draw_tooltip&&this._map[i(1434)](t.position,e._draw_tooltip),this[i(2828)]=e,this}},{key:"stopEditing",value:function(){var e=O;return this._graphic_editing&&(this[e(a)].stopEditing(),this[e(n)]=null),this}}]),R}(),MatrixMove=(register$2("graphic",GraphicLayer),function(){var i=397,a=2073,e=431,u=2754,n=2177,_=3342,p=2018,m=3037,d=3258,f=2532,y=2532,v=2360,g=3594,C=3181,x=3606,b=1541,k=784,P=3873,w=784,S=3704,T=3915,M=784,E=376,A=784,L=1980,D=780,I=431,s=3884,r=1740,o=3096,l=780,H=2532,F=1488,N=1997,G=3057,c=2722,z=3817,B=4030,j=3817,V=1266,$=1729,U=3207,W=3060,J=784,h=402,q=784,Y=3342,Z=3873,X=784,Q=1276,K=3767,ee=2366,te=713,ie=3767,ae=1007,t=980,ne=3817,se=1313,re=431,oe=3817,le=784,O=_0x1658de,ce=(_inherits(R,BaseThing),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(e=ce.call(this,i)).translation=new Cesium__namespace[t(le)](0,0,0),e.rotateMatrix=new Cesium__namespace[t(3915)](1,0,0,0,1,0,0,0,1),i.position&&(e.position=i.position),e}return _createClass(R,[{key:"position",get:function(){return this._position},set:function(e){this._position=LngLatPoint.toCartesian(e),this._initByPosition(),this._updatePositionHook(!0)}},{key:"isMoveing",get:function(){return!!this[_0x236b(oe)]&&this._hasChangeEnableInputs}},{key:"_mountedHook",value:function(){this[_0x236b(1266)]=new GraphicLayer({private:!0})}},{key:"_addedHook",value:function(){var e=_0x236b;this[e(ne)][e(se)](this._graphicLayer),this[e(re)](!0),this._createGraphics(),this[e(2473)]()}},{key:"_removedHook",value:function(){var e=_0x236b;this._graphic_move_x&&delete this._graphic_move_x,this[e(ae)]&&delete this._graphic_move_y,this[e(t)]&&delete this[e(t)],this._graphic_dragger_ing&&delete this._graphic_dragger_ing,this._graphicLayer[e(1404)](),this._map.removeLayer(this._graphicLayer),this._unbindEvent()}},{key:O(3175),value:function(){var e=O;this._graphicLayer[e(1404)](),this._graphic_move_x=new PolylinePrimitive({positions:this._positions_line_x,style:{width:15,arcType:Cesium__namespace.ArcType[e(K)],materialType:PolylineArrow,color:Cesium__namespace.Color[e(ee)],depthFail:!0},attr:{move:!0,type:Cesium__namespace.Axis.X},asynchronous:!1}),this._graphicLayer[e(3840)](this._graphic_move_x),this[e(1007)]=new PolylinePrimitive({positions:this._positions_line_y,style:{width:15,arcType:Cesium__namespace.ArcType[e(3767)],materialType:PolylineArrow,color:Cesium__namespace.Color.GREEN,depthFail:!0},attr:{move:!0,type:Cesium__namespace.Axis.Y},asynchronous:!1}),this._graphicLayer.addGraphic(this._graphic_move_y),this._graphic_move_z=new PolylinePrimitive({positions:this._positions_line_z,style:{width:15,arcType:Cesium__namespace[e(te)][e(ie)],materialType:PolylineArrow,color:Cesium__namespace[e(3096)][e(3021)],depthFail:!0},attr:{move:!0,type:Cesium__namespace[e(3199)].Z},asynchronous:!1}),this._graphicLayer.addGraphic(this._graphic_move_z),this[e(780)]=new PolylinePrimitive({positions:[],style:{width:3,arcType:Cesium__namespace[e(713)][e(3767)],materialType:PolylineDash,color:Cesium__namespace.Color.YELLOW,depthFail:!0},asynchronous:!1,show:!1}),this._graphicLayer.addGraphic(this._graphic_dragger_ing)}},{key:"_initByPosition",value:function(){var e=O;this.modelToWorld=Cesium__namespace.Transforms.eastNorthUpToFixedFrame(this.position),this[e(3687)]=Cesium__namespace.Matrix4.inverse(this.modelToWorld,new Cesium__namespace.Matrix4),this.matrix=this.modelToWorld.clone(),this.inverseMatrix=Cesium__namespace.Matrix4.inverse(this.matrix,new Cesium__namespace.Matrix4),this.normalX=Cesium__namespace.Matrix4.multiplyByPointAsVector(this[e(3181)],Cesium__namespace.Cartesian3[e(1541)],new Cesium__namespace[e(784)]),this.normalY=Cesium__namespace[e(Y)].multiplyByPointAsVector(this.matrix,Cesium__namespace[e(784)].UNIT_Y,new Cesium__namespace.Cartesian3),this[e(Z)]=Cesium__namespace.Matrix4.multiplyByPointAsVector(this.matrix,Cesium__namespace.Cartesian3.UNIT_Z,new Cesium__namespace[e(X)]),this._positions_line_x=[],this[e(Q)]=[],this._positions_line_z=[]}},{key:"_updatePositionHook",value:function(e){var t,i=O;this._map&&(t=this.position[i(W)](),e&&(e=-new Cesium__namespace.Matrix4[i(1762)](this._map.camera.viewMatrix,t,new Cesium__namespace[i(J)]).z*Math.tan(this._map[i(2018)].frustum.fov/2)*2/this._map.canvas[i(696)],this[i(h)]=200*e),this._positions_line_x=[t,Cesium__namespace.Matrix4.multiplyByPoint(this[i(3181)],new Cesium__namespace.Cartesian3(this.radius,0,0),new Cesium__namespace.Cartesian3)],this._positions_line_y=[t,Cesium__namespace.Matrix4.multiplyByPoint(this.matrix,new Cesium__namespace.Cartesian3(0,this.radius,0),new Cesium__namespace.Cartesian3)],this._positions_line_z=[t,Cesium__namespace.Matrix4[i(1762)](this.matrix,new Cesium__namespace.Cartesian3(0,0,this[i(h)]),new Cesium__namespace[i(q)])],this._graphic_move_x&&(this[i(3608)].positions=this._positions_line_x),this._graphic_move_y&&(this[i(1007)].positions=this._positions_line_y),this._graphic_move_z)&&(this._graphic_move_z.positions=this._positions_line_z)}},{key:"_bindEvent",value:function(){var e=O;this[e(V)].on(EventType[e(2560)],this[e($)],this),this._map.on(EventType.leftUp,this[e(3934)],this),this._map.on(EventType[e(U)],this._onMap_middleClick,this),this._map.on(EventType.wheel,this._onMap_wheel,this)}},{key:"_unbindEvent",value:function(){var e=O;this._graphicLayer.off(EventType.leftDown,this._onMap_leftDown,this),this._map.off(EventType.leftUp,this._onMap_leftUp,this),this[e(z)][e(B)](EventType.mouseMove,this._onMap_mouseMove,this),this._map.off(EventType.middleClick,this._onMap_middleClick,this),this[e(j)].off(EventType.wheel,this._onMap_wheel,this)}},{key:"_onMap_leftDown",value:function(e){var t,i,a=O;this._graphic=void 0,e.layer===this._graphicLayer&&(t=e.graphic)&&(t.attr[a(s)]||t[a(r)].rotate)&&((this._graphic=t).style.color_bak||(t.style.color_bak=t.style.color),t.setStyle({color:Cesium__namespace[a(o)].YELLOW}),this[a(l)].positions=[this.position,this[a(H)]],this._graphic_dragger_ing[a(4045)]=!0,i=this._graphic[a(1740)][a(F)],this[a(N)](EventType[a(G)],_objectSpread2(_objectSpread2({},e),{},{editType:i,graphic:t})),this._map.scene[a(c)].enableInputs&&(this._map.scene[a(c)].enableInputs=!1,this._hasChangeEnableInputs=!0),this._map.on(EventType.mouseMove,this._onMap_mouseMove,this))}},{key:"_onMap_mouseMove",value:function(e){var t,i,a,n,s,r,o,l,c,h,u=O;this._graphic&&(i=e.startPosition,n=e.endPosition,(t=this[u(2283)].attr.type)===Cesium__namespace[u(3199)].X&&(a=this.normalX),t===Cesium__namespace.Axis.Y&&(a=this[u(3606)]),t===Cesium__namespace.Axis.Z&&(a=this.normalZ),n=new Cesium__namespace.Cartesian3(n.x-i.x,-(n.y-i.y),0),i=new Cesium__namespace[u(_)].multiplyByPointAsVector(this._map.camera.inverseViewMatrix,n,new Cesium__namespace.Cartesian3),n=-new Cesium__namespace.Matrix4.multiplyByPoint(this._map[u(p)][u(m)],this.position,new Cesium__namespace.Cartesian3).z*Math.tan(this._map.camera.frustum.fov/2)*2/this._map.canvas.width,i=Cesium__namespace.Cartesian3.dot(i,a)*n,n=Cesium__namespace.Cartographic[u(d)](this.position),a=new Cesium__namespace.Cartesian3(this.position.x+a.x*i,this[u(f)].y+a.y*i,this[u(y)].z+a.z*i),t!==Cesium__namespace.Axis.Z&&((a=Cesium__namespace.Cartographic.fromCartesian(a)).height=n.height,t===Cesium__namespace[u(3199)].X?a[u(v)]=n.latitude:a.longitude=n[u(g)],a=Cesium__namespace.Cartesian3.fromRadians(a.longitude,a[u(v)],a.height)),n=Cesium__namespace[u(_)].multiplyByPoint(this[u(2083)],a,new Cesium__namespace[u(784)]),Cesium__namespace.Matrix4.multiplyByPointAsVector(this.matrix,n,n),Cesium__namespace.Matrix4.multiplyByVector(this.worldToModel,new Cesium__namespace.Cartesian4(n.x,n.y,n.z,0),n),Cesium__namespace[u(784)].add(this[u(1831)],n,this.translation),this[u(2532)]=a,this.matrix=Cesium__namespace.Transforms[u(2073)](this.position),Cesium__namespace.Matrix4.inverse(this[u(C)],this.inverseMatrix),n=this.normalX,r=this[u(x)],h=this.normalZ,this.normalX=Cesium__namespace.Matrix4.multiplyByPointAsVector(this.matrix,Cesium__namespace[u(784)][u(b)],new Cesium__namespace.Cartesian3),this.normalY=Cesium__namespace.Matrix4.multiplyByPointAsVector(this.matrix,Cesium__namespace.Cartesian3.UNIT_Y,new Cesium__namespace[u(k)]),this[u(P)]=Cesium__namespace.Matrix4.multiplyByPointAsVector(this.matrix,Cesium__namespace[u(w)][u(S)],new Cesium__namespace.Cartesian3),t===Cesium__namespace.Axis.X&&(c=Cesium__namespace[u(784)].angleBetween(r,this.normalY),l=Cesium__namespace.Cartesian3.angleBetween(h,this.normalZ),i<0&&(l=-l,c=-c),o=Cesium__namespace.Matrix4[u(2967)](this.worldToModel,h,new Cesium__namespace[u(w)]),s=Cesium__namespace.Matrix3.inverse(this.rotateMatrix,new Cesium__namespace.Matrix3),o=Cesium__namespace[u(3915)].multiplyByVector(s,o,new Cesium__namespace.Cartesian3),c=this._axisRotation(o,c),Cesium__namespace[u(T)].multiply(this[u(376)],c,this.rotateMatrix),r=Cesium__namespace.Matrix4.multiplyByPointAsVector(this.worldToModel,r,new Cesium__namespace.Cartesian3),s=Cesium__namespace.Matrix3.inverse(this[u(376)],new Cesium__namespace.Matrix3),o=Cesium__namespace[u(3915)].multiplyByVector(s,r,new Cesium__namespace[u(M)]),c=this._axisRotation(o,l),Cesium__namespace.Matrix3.multiply(this.rotateMatrix,c,this[u(E)])),t===Cesium__namespace.Axis.Y&&(s=Cesium__namespace[u(A)][u(1871)](h,this.normalZ),0<i&&(s=-s),r=Cesium__namespace[u(3342)].multiplyByPointAsVector(this.worldToModel,n,new Cesium__namespace.Cartesian3),o=Cesium__namespace.Matrix3.inverse(this.rotateMatrix,new Cesium__namespace.Matrix3),l=Cesium__namespace.Matrix3[u(702)](o,r,new Cesium__namespace[u(w)]),c=this._axisRotation(l,s),Cesium__namespace.Matrix3.multiply(this.rotateMatrix,c,this.rotateMatrix)),this._graphic_dragger_ing[u(L)]=[this[u(D)].positions[0],a],this[u(I)](),h=_objectSpread2(_objectSpread2({},e),{},{editType:t,position:a}),this.onChange(h))}},{key:"_onMap_leftUp",value:function(e){var t=O;this._graphic&&(this._graphic.setStyle({color:this._graphic.style.color_bak}),this._graphic=null,this._graphic_dragger_ing[t(1980)]=[],this._graphic_dragger_ing.show=!1,this[t(n)]&&(this._map[t(3118)].screenSpaceCameraController[t(1068)]=!0,delete this._hasChangeEnableInputs),this._map[t(4030)](EventType.mouseMove,this._onMap_mouseMove,this),this.fire(EventType.stop,e))}},{key:"_axisRotation",value:function(e,t,i){var a=O,n=e.x,s=e.y,e=e.z,r=Math.sqrt(n*n+s*s+e*e),o=(n/=r)*n,l=(s/=r)*s,r=(e/=r)*e,c=Math[a(3007)](t),t=Math.sin(t),h=1-c;return(i=i||new Cesium__namespace[a(3915)])[Cesium__namespace.Matrix3.COLUMN0ROW0]=o+(1-o)*c,i[Cesium__namespace.Matrix3.COLUMN0ROW1]=n*s*h+e*t,i[Cesium__namespace.Matrix3[a(3859)]]=n*e*h-s*t,i[Cesium__namespace[a(3915)].COLUMN1ROW0]=n*s*h-e*t,i[Cesium__namespace.Matrix3.COLUMN1ROW1]=l+(1-l)*c,i[Cesium__namespace.Matrix3.COLUMN1ROW2]=s*e*h+n*t,i[Cesium__namespace.Matrix3.COLUMN2ROW0]=n*e*h+s*t,i[Cesium__namespace.Matrix3[a(u)]]=s*e*h-n*t,i[Cesium__namespace.Matrix3.COLUMN2ROW2]=r+(1-r)*c,i}},{key:"_onMap_wheel",value:function(){this[O(e)](!0)}},{key:"_onMap_middleClick",value:function(e){var t=O,e=this[t(3817)].scene.pickPosition(e.position);e&&(this.position=e,this.matrix=Cesium__namespace.Transforms[t(a)](this.position),Cesium__namespace.Matrix4.inverse(this.matrix,this[t(2083)]),this._updatePositionHook())}},{key:O(397),value:function(e){var t=O;this.options[t(i)]&&this[t(1592)].onChange(e),this[t(1997)](EventType[t(3814)],e,!0)}}]),R}()),MatrixRotate=function(){var h=871,u=784,_=784,p=3342,m=2070,d=3817,f=3252,y=696,v=3159,g=1762,C=3199,x=2574,b=784,k=376,P=2532,o=2532,l=1762,c=3817,w=2018,S=1330,T=3605,M=784,E=1601,A=784,L=1786,D=2816,I=1601,O=784,R=784,H=1869,t=2073,i=3687,a=2028,n=3342,r=3096,N=3096,G=1011,z=1592,B=2574,j=977,F=_0x1658de,e=(_inherits(s,MatrixMove),_createSuper(s));function s(){return _classCallCheck(this,s),e.apply(this,arguments)}return _createClass(s,[{key:"heading",get:function(){var e=_0x236b;return null!=(e=this.options[e(j)])?e:0},set:function(e){this.options.heading=e}},{key:"pitch",get:function(){var e;return null!=(e=this.options.pitch)?e:0},set:function(e){var t=_0x236b;this.options[t(2033)]=e}},{key:"roll",get:function(){var e=_0x236b;return null!=(e=this.options[e(B)])?e:0},set:function(e){var t=_0x236b;this[t(z)][t(2574)]=e}},{key:"_removedHook",value:function(){var e=_0x236b;delete this[e(604)],delete this[e(2398)],delete this._graphic_rotate_y,_get(_getPrototypeOf(s[e(2385)]),"_removedHook",this).call(this)}},{key:"_createGraphics",value:function(){var e=_0x236b;this._graphicLayer.clear(),this[e(2398)]=new PolylinePrimitive({positions:this._positions_circle_x,style:{width:8,color:Cesium__namespace[e(r)].RED,depthFail:!0,depthFailColor:Cesium__namespace.Color.RED.withAlpha(.5)},attr:{rotate:!0,type:Cesium__namespace[e(3199)].X},asynchronous:!1}),this._graphicLayer.addGraphic(this._graphic_rotate_x),this._graphic_rotate_y=new PolylinePrimitive({positions:this._positions_circle_y,style:{width:8,color:Cesium__namespace.Color.GREEN,depthFail:!0,depthFailColor:Cesium__namespace[e(N)][e(G)].withAlpha(.5)},attr:{rotate:!0,type:Cesium__namespace.Axis.Y},asynchronous:!1}),this._graphicLayer.addGraphic(this[e(1869)]),this._graphic_rotate_z=new PolylinePrimitive({positions:this._positions_circle_z,style:{width:8,color:Cesium__namespace.Color.BLUE,depthFail:!0,depthFailColor:Cesium__namespace[e(3096)][e(3021)].withAlpha(.5)},attr:{rotate:!0,type:Cesium__namespace[e(3199)].Z},asynchronous:!1}),this._graphicLayer.addGraphic(this._graphic_rotate_z),this._graphic_dragger_ing=new PolylinePrimitive({positions:[],style:{width:3,arcType:Cesium__namespace.ArcType.NONE,materialType:PolylineDash,color:Cesium__namespace.Color[e(1480)],depthFail:!0},asynchronous:!1,show:!1}),this._graphicLayer.addGraphic(this._graphic_dragger_ing)}},{key:F(3984),value:function(){var e=F;this[e(1615)]=Cesium__namespace.Transforms[e(t)](this.position),this[e(i)]=Cesium__namespace.Matrix4.inverse(this.modelToWorld,new Cesium__namespace.Matrix4),this.matrix=this.modelToWorld.clone(),this.inverseMatrix=Cesium__namespace.Matrix4[e(a)](this[e(3181)],new Cesium__namespace.Matrix4),this.normalX=Cesium__namespace.Matrix4.multiplyByPointAsVector(this.matrix,Cesium__namespace[e(784)][e(1541)],new Cesium__namespace.Cartesian3),this.normalY=Cesium__namespace.Matrix4[e(2967)](this.matrix,Cesium__namespace.Cartesian3.UNIT_Y,new Cesium__namespace[e(784)]),this.normalZ=Cesium__namespace[e(n)].multiplyByPointAsVector(this.matrix,Cesium__namespace.Cartesian3.UNIT_Z,new Cesium__namespace.Cartesian3),this._positions_circle_z=[],this._positions_circle_x=[],this._positions_circle_y=[]}},{key:"_updatePositionHook",value:function(e){var t=F;if(this._map){var i=this[t(o)].clone();e&&(e=-new Cesium__namespace.Matrix4[t(l)](this[t(c)].camera.viewMatrix,i,new Cesium__namespace.Cartesian3).z*Math.tan(this._map[t(w)][t(378)][t(3933)]/2)*2/this._map.canvas.width,this.radius=200*e),this._positions_circle_z=[],this._positions_circle_x=[],this[t(S)]=[];for(var a=0;a<=360;a++){var n=this.radius*Math.cos(a/180*Math.PI),s=this[t(402)]*Math.sin(a/180*Math.PI),r=new Cesium__namespace.Cartesian3,r=(Cesium__namespace.Cartesian3[t(T)](i,Cesium__namespace[t(M)].multiplyByScalar(this[t(E)],n,new Cesium__namespace[t(A)]),r),Cesium__namespace.Cartesian3.add(r,Cesium__namespace.Cartesian3[t(2816)](this.normalY,s,new Cesium__namespace[t(784)]),r),this[t(L)].push(r),new Cesium__namespace[t(784)]),r=(Cesium__namespace[t(784)].add(i,Cesium__namespace.Cartesian3[t(D)](this[t(I)],n,new Cesium__namespace.Cartesian3),r),Cesium__namespace[t(O)].add(r,Cesium__namespace[t(M)][t(D)](this.normalZ,s,new Cesium__namespace.Cartesian3),r),this._positions_circle_x.push(r),new Cesium__namespace.Cartesian3);Cesium__namespace.Cartesian3.add(i,Cesium__namespace.Cartesian3[t(2816)](this.normalY,n,new Cesium__namespace[t(R)]),r),Cesium__namespace[t(O)].add(r,Cesium__namespace.Cartesian3.multiplyByScalar(this.normalZ,s,new Cesium__namespace.Cartesian3),r),this._positions_circle_y.push(r)}this[t(604)]&&(this._graphic_rotate_z.positions=this[t(1786)]),this._graphic_rotate_x&&(this[t(2398)].positions=this._positions_circle_x),this._graphic_rotate_y&&(this[t(H)].positions=this._positions_circle_y)}}},{key:"_onMap_mouseMove",value:function(e){var t,i,a=F,n=e[a(h)],s=e.endPosition,r=new Cesium__namespace.Matrix4.multiplyByPoint(this._map[a(2018)].viewMatrix,this.position,new Cesium__namespace.Cartesian3),o=-r.z*Math.tan(this._map.camera.frustum.fov/2)*2/this._map.canvas.width,l=new Cesium__namespace.Cartesian3(1,1,1),c=this._graphic.attr.type,n=(c===Cesium__namespace.Axis.Z&&(l.z=0,t=Cesium__namespace.Cartesian3.angleBetween(Cesium__namespace[a(3342)].multiplyByPointAsVector(this.matrix,new Cesium__namespace.Cartesian3(0,0,1),new Cesium__namespace.Cartesian3),this._map.camera.direction)),c===Cesium__namespace.Axis.X&&(l.y=0,t=Cesium__namespace[a(u)].angleBetween(Cesium__namespace.Matrix4[a(2967)](this.matrix,new Cesium__namespace[a(_)](0,1,0),new Cesium__namespace.Cartesian3),this._map.camera.direction)),c===Cesium__namespace[a(3199)].Y&&(l.x=0,t=Cesium__namespace[a(784)].angleBetween(Cesium__namespace[a(p)].multiplyByPointAsVector(this.matrix,new Cesium__namespace.Cartesian3(1,0,0),new Cesium__namespace.Cartesian3),this[a(3817)].camera[a(m)])),Math[a(411)](t-Math.PI/2)<.1&&(o=1,r.z=0),new Cesium__namespace.Cartesian3((n.x-this[a(d)][a(f)][a(y)]/2)*o,(-n.y+this[a(3817)][a(3252)][a(3159)]/2)*o,r.z)),s=new Cesium__namespace[a(784)]((s.x-this._map.canvas.width/2)*o,(-s.y+this._map.canvas[a(v)]/2)*o,r.z),o=(Cesium__namespace.Matrix4.multiplyByPoint(this._map.camera.inverseViewMatrix,n,n),Cesium__namespace.Matrix4.multiplyByPoint(this._map.camera[a(2241)],s,s),Cesium__namespace.Matrix4.multiplyByPoint(this.inverseMatrix,n,n),Cesium__namespace.Matrix4[a(g)](this.inverseMatrix,s,s),n=new Cesium__namespace.Cartesian3(n.x*l.x,n.y*l.y,n.z*l.z),s=new Cesium__namespace[a(784)](s.x*l.x,s.y*l.y,s.z*l.z),t=Cesium__namespace.Cartesian3.angleBetween(n,s),c===Cesium__namespace.Axis.Z?(o=n.x*s.y-n.y*s.x,i=Cesium__namespace.Matrix4[a(2967)](this[a(3687)],this.normalZ,new Cesium__namespace.Cartesian3),0<o&&(t=-t),this[a(977)]=(this.heading+Cesium__namespace.Math.toDegrees(t))%360):c===Cesium__namespace[a(C)].X?(r=n.x*s.z-n.z*s.x,i=Cesium__namespace.Matrix4.multiplyByPointAsVector(this.worldToModel,this[a(3606)],new Cesium__namespace.Cartesian3),this.pitch=(this.pitch+Cesium__namespace.Math.toDegrees(t=0<r?-t:t))%360):c===Cesium__namespace.Axis.Y&&(l=n.y*s.z-n.z*s.y,i=Cesium__namespace.Matrix4.multiplyByPointAsVector(this.worldToModel,this.normalX,new Cesium__namespace.Cartesian3),l<0&&(t=-t),this[a(x)]=(this.roll+Cesium__namespace.Math.toDegrees(t))%360),Cesium__namespace.Matrix3[a(2028)](this[a(376)],new Cesium__namespace.Matrix3)),r=Cesium__namespace.Matrix3.multiplyByVector(o,i,new Cesium__namespace[a(b)]),n=this._axisRotation(r,t),s=(Cesium__namespace.Matrix3.multiply(this[a(k)],n,this[a(376)]),_objectSpread2(_objectSpread2({},e),{},{editType:c,position:this[a(P)],heading:this.heading,pitch:this.pitch,roll:this.roll}));this.onChange(s)}},{key:"_onMap_middleClick",value:function(e){}}]),s}(),EditBase=function(){var e=3135,t=1830,i=1009,a=2912,n=461,s=2458,r=1053,o=2532,l=2853,c=2353,h=3170,u=2532,_=2532,m=2283,d=1045,p=1997,f=1053,y=2190,v=3817,g=1045,C=1681,x=2822,b=3256,k=2283,P=1187,w=1351,S=2822,T=2062,M=2822,E=3385,H=349,F=1913,N=3478,G=2372,z=1989,A=3817,B=349,j=4045,V=1899,L=1091,$=2450,U=539,W=871,J=3481,D=3817,q=3822,Y=3060,Z=1091,X=3478,Q=1997,K=2031,ee=2981,te=1091,ie=3170,ae=1670,ne=2532,se=3118,re=2722,oe=1592,le=2532,ce=1091,he=1009,ue=3817,_e=2177,pe=2917,me=3817,de=3826,I=2998,fe=2818,ye=1997,ve=2283,ge=4006,Ce=2383,xe=2283,be=2383,ke=2492,Pe=3817,we=2998,Se=3817,O=_0x1658de;function R(e){var t=_0x236b;_classCallCheck(this,R),this._graphic=e,this[t(Se)]=e[t(3817)],this.draggers=[]}return _createClass(R,[{key:"enabled",get:function(){return this[_0x236b(we)]}},{key:"map",get:function(){return this[_0x236b(Pe)]}},{key:"layer",get:function(){var e=_0x236b;return this[e(2283)][e(2818)]}},{key:"style",get:function(){var e=_0x236b;return this._graphic[e(2492)]}},{key:O(1614),get:function(){var e,t=O;return null==(e=this[t(2283)])||null==(e=e[t(ke)])?void 0:e.clampToGround}},{key:"type",get:function(){return this._graphic.type}},{key:O(e),get:function(){return this[O(2283)].entityGraphic}},{key:"positions",get:function(){var e=O;return this[e(xe)][e(be)]||this._graphic._positions||[]},set:function(e){var t=O;this._graphic[t(Ce)]=e}},{key:"hasRotateMatrix",get:function(){return Boolean(this[O(3485)])}},{key:"hasMoveMatrix",get:function(){return Boolean(this._matrixMove)}},{key:O(1997),value:function(e){var t,i=O,a=1<arguments[i(2822)]&&void 0!==arguments[1]?arguments[1]:{},n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];this[i(ve)]&&(t=this._graphic[i(2437)],a[i(ge)]=this[i(1488)],this[i(2283)][i(1997)](e,a,n),t)&&(a.editType=t.type,t.fire(e,a,n))}},{key:O(t),value:function(e,t){return formatNum$1(e,t)}},{key:"activate",value:function(){var e=O;return this._enabled||(this[e(2998)]=!0,this._graphic._setPositionsToCallback&&this._graphic._setPositionsToCallback(),this.destroyDraggers(),this.bindDraggers(),this.bindEvent(),this.fire(EventType.editStart)),this}},{key:"disable",value:function(){var e,t=O;return this[t(I)]&&(this[t(I)]=!1,this.stopMoveMatrix(),this.stopRotateMatrix(),this.unbindEvent(),this.destroyDraggers(),this.finish(),null!=(e=this._graphic)&&null!=(e=e[t(fe)])&&null!=(e=e.options)&&e.isRestorePositions&&this._graphic._cancelPositionsCallback(),this[t(ye)](EventType.editStop)),this}},{key:"finish",value:function(){}},{key:O(1890),value:function(){var e=O;this._map.on(EventType.leftDown,this._onLeftDownHandler,this),this[e(me)].on(EventType.mouseMove,this._onMouseMoveHandler,this),this._map.on(EventType.leftUp,this[e(de)],this)}},{key:"unbindEvent",value:function(){var e=O;this._map.off(EventType[e(2560)],this[e(he)],this),this[e(ue)].off(EventType[e(1125)],this._onMouseMoveHandler,this),this[e(3817)].off(EventType.leftUp,this._onLeftUpHandler,this),this[e(_e)]&&(this._map.scene.screenSpaceCameraController.enableInputs=!0,delete this._hasChangeEnableInputs),this[e(3817)][e(pe)](!1),this._graphic.show||(this[e(2283)].show=!0)}},{key:O(i),value:function(e){var t,i,a=O,n=this._map.mouseEvent.getPickTarget(e[a(ne)],e);n.layer===this.layer&&(i=null==n?void 0:n.graphic)&&i._isDragger&&(this._map[a(se)][a(re)][a(1068)]&&(this._map[a(3118)].screenSpaceCameraController[a(1068)]=!1,this._hasChangeEnableInputs=!0),this._map[a(2917)](!0),i._closeAllControl(),this._draggerIng=i,this._draggerIng.show=null!=(t=i[a(oe)].drawShow)&&t,i[a(1913)]&&i.onDragStart(i,n[a(2001)]||i[a(le)]),this.fire(EventType.editMouseDown,_objectSpread2(_objectSpread2(_objectSpread2({},e),n),{},{index:this[a(ce)].index})))}},{key:O(1856),value:function(e){var t=O;this._draggerIng?this[t(ae)](e):this._onMouseMoveMapHandler(e)}},{key:"_onMouseMoveDraggerHandler",value:function(e){var t,i,a,n,s,r=O;this._draggerIng[r(2372)]===PointType.MoveHeight?(s=e[r(2031)].y-e[r(W)].y,t=getPositionValue(this._draggerIng.position,null==(t=this._map)?void 0:t[r(1899)][r(352)]),i=new Cesium__namespace.EllipsoidTangentPlane(t),n=new Cesium__namespace[r(J)],a=new Cesium__namespace.Cartesian3,n.center=t,n.radius=1,n=1.5*this._map.scene.frameState.camera.getPixelSize(n,this[r(D)].scene[r(718)].context[r(2592)],this._map.scene.frameState.context[r(q)]),Cesium__namespace.Cartesian3.multiplyByScalar(i.zAxis,-s*n,a),i=Cesium__namespace.Cartesian3[r(Y)](t),Cesium__namespace.Cartesian3.add(t,a,i),this[r(Z)].position=i,this._draggerIng.onDrag&&this[r(1091)][r(X)](this._draggerIng,i,t),this[r(461)](),this[r(Q)](EventType.editStyle,e)):(this[r(D)].openSmallTooltip(e[r(K)],this._map.getLangText(r(1840))),s=this._graphic[r(ee)],this.clampToGround&&(s=null),(i=getCurrentMousePosition(this._map.scene,e.endPosition,s))&&(this[r(te)].position=i,this[r(1091)].onDrag&&this._draggerIng.onDrag(this._draggerIng,i),this[r(461)]())),this.fire(EventType.editMouseMove,_objectSpread2(_objectSpread2({},e),{},{index:this._draggerIng[r(ie)],cartesian:i,windowPosition:e[r(2031)]}))}},{key:O(a),value:function(e){var t=O,i=this._map[t(U)].getPickTarget(e.endPosition,e),a=null==i?void 0:i.graphic;null==a?this._map[t(1206)]():i.layer!==this.layer||!a._isDragger||this._map.contextmenu.show&&this._map.contextmenu.target===a||(i=a[t(1334)])&&(PointType.Control===a._pointType&&(null==(a=this._graphic)||null==(a=a[t(2383)])?void 0:a.length)>this._graphic._minPointNum&&(i+=t(2471)+this._map[t(349)]("_右击删除点")),this._map.openSmallTooltip(e.endPosition,i))}},{key:"_onLeftUpHandler",value:function(e){var t,i,a=O;this._draggerIng&&(this._draggerIng[a(j)]=!0,t=getPositionValue(this._draggerIng.position,null==(t=this._map)?void 0:t[a(V)].currentTime),i=this[a(1091)].index,this[a(L)].onDragEnd&&this._draggerIng[a($)](this[a(L)],t),this.updateAttrForEditing(),this.fire(EventType.editMovePoint,_objectSpread2(_objectSpread2({},e),{},{index:i,cartesian:t})),this._draggerIng=null,this[a(3817)][a(2917)](!1),this._hasChangeEnableInputs)&&(this._map.scene.screenSpaceCameraController.enableInputs=!0,delete this._hasChangeEnableInputs)}},{key:"openSmallTooltipByMinPointNum",value:function(e){var t=O;this[t(A)].openSmallTooltip(e,this[t(A)][t(B)]("_无法删除不能少于最小点数")+" "+this._graphic._minPointNum)}},{key:"createDragger",value:function(e){var t,i,a=O;return e.dragger?i=e[a(3654)]:((i=new PointPrimitive({position:null!=(t=e.position)?t:Cesium__namespace[a(784)][a(925)],style:getEditPointStyle(e[a(1488)]),hasEdit:!1,private:!0}))[a(2437)]=this._graphic,this[a(E)].addGraphic(i)),i._draw_tooltip=this._map.getLangText("_拖动该点后")+" "+(e.tooltip||this._map[a(H)]("_修改位置")),i._isDragger=!0,i._noMousePick=!0,i._pointType=e.type||PointType.Control,i.onDragStart=e[a(F)],i[a(N)]=e.onDrag,i.onDragEnd=e.onDragEnd,i._pointType!==PointType.Control&&i[a(G)]!==PointType.MoveAll||(i._draw_tooltip+="<br/>"+this._map.getLangText("_更多功能请右击"),i[a(z)](this.getDraggerContextMenu(i))),i}},{key:"bindDraggers",value:function(){}},{key:"destroyDraggers",value:function(){for(var e=O,t=0,i=this.draggers[e(M)];t<i;t++)this.layer.removeGraphic(this[e(761)][t],!0);this.draggers=[]}},{key:"updateDraggers",value:function(){var e,t=O;if(!this[t(2998)])return this;var i=null==(e=this._matrixMove)?void 0:e._dragger_index;if(this[t(w)](),this.bindDraggers(),Cesium__namespace.defined(i))for(var a=0,n=this.draggers[t(S)];a<n;a++){var s=this[t(761)][a];if((s._pointType===PointType[t(2666)]||s._pointType===PointType[t(T)])&&s.index===i){this.startMoveMatrix(s);break}}}},{key:O(n),value:function(){var e=O;this._graphic.updateAttrForDrawing&&this._graphic[e(1257)](!0),this._graphic._updateLabelPosition&&this[e(k)][e(P)]()}},{key:"getDraggerContextMenu",value:function(a){var i=3170,n=2532,s=2383,r=O,o=this;return[{text:this._map.getLangText("_停止编辑"),icon:Icon.DrawEditNo,show:function(e){var t;return null==(t=o._graphic)?void 0:t.isEditing},callback:function(e){o._graphic.stopEditing()}},{text:this._map.getLangText(r(y)),icon:Icon.Delete,show:function(e){var t,i=r;return!(null==(t=o._graphic)||!t[i(s)]||a._pointType===PointType.MoveAll||o._graphic._positions_draw.length-1<o[i(2283)][i(466)]&&(o.openSmallTooltipByMinPointNum(e[i(2532)]),1))},callback:function(e){var t=r,i=e.graphic;i&&0<=(i=i.index)&&i<o._graphic._positions_draw[t(x)]&&(o._graphic._positions_draw[t(4087)](i,1),o.updateDraggers(),o.updateAttrForEditing(),o.fire(EventType[t(b)],_objectSpread2(_objectSpread2({},e),{},{index:i})))}},{text:this[r(3817)].getLangText("_按轴平移"),icon:Icon[r(2364)],show:function(e){var t=r;return!o._matrixMove||o[t(g)][t(C)]!==a.index},callback:function(e){var t=r,i=null!=(i=e.graphic)&&i[t(n)]?e.graphic:e.layer;o.startMoveMatrix(i,e)}},{text:this[r(v)].getLangText(r(2365)),icon:Icon.DrawEditNo,show:function(e){var t=r;return o._matrixMove&&o._matrixMove._dragger_index===a[t(i)]},callback:function(e){o[r(1053)]()}}]}},{key:"_updateStyleHook",value:function(e){var t=O;Cesium__namespace.defined(e.clampToGround)&&(this[t(f)](),this[t(3401)](),this.updateDraggers())}},{key:"_fireAddPoint",value:function(e,t){this[O(p)](EventType.editAddPoint,{index:e.index,cartesian:t})}},{key:O(s),value:function(n){var s=2532,r=3199,o=3428,l=3258,c=3478,i=2450,a=1997,h=O,u=this,_=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},p=(this.stopMoveMatrix(),this.stopRotateMatrix(),(n=n||this[h(m)])[h(3912)]||n.position);this.clampToGround&&(p=getSurfacePosition(this._map.scene,p)),this._matrixMove=new MatrixMove({map:this._map,position:p}),this._map[h(3800)](this[h(d)]),this.clampToGround&&this._matrixMove._graphic_move_z&&(this._matrixMove._graphic_move_z.show=!1),this._matrixMove[h(1681)]=n[h(3170)],this._matrixMove.on(EventType.start,function(e){var t=h;n.onDragStart&&n[t(1913)](n,u[t(1045)].position)}),this._matrixMove.on(EventType.stop,function(e){var t=h;n.onDragEnd?n[t(i)](n,u[t(1045)].position,e):n.position=u[t(1045)].position,n[t(a)](EventType[t(1026)],{position:u[t(1045)].position}),u.fire(EventType.editMovePoint,_objectSpread2(_objectSpread2(_objectSpread2({},_),e),{},{index:n.index,cartesian:p}))}),this._matrixMove.on(EventType[h(3814)],function(e){var t,i=h,a=u._matrixMove.position;n.isPrivate?n[i(s)]=a:Cesium__namespace.defined(null==(t=u._graphic)?void 0:t._position_draw)?u._graphic._position_draw=a:n.position=a,e.editType===Cesium__namespace[i(r)].Z&&u._updateHeight?(t=Cesium__namespace[i(o)][i(l)](a).height,u[i(3073)](t)):n[i(c)]&&n.onDrag(n,a),u.updateAttrForEditing(),u.fire(EventType.editMouseMove,_objectSpread2(_objectSpread2(_objectSpread2({},_),e),{},{index:n.index,cartesian:a}))}),n.off(EventType.updatePosition,this._updateMatrixMovePosition,this),n.off(EventType[h(1026)],this._updateMatrixRotatePosition,this),n.on(EventType[h(1026)],this._updateMatrixMovePosition,this)}},{key:"_updateMatrixMovePosition",value:function(e){var t,i=O;this._matrixMove&&!this[i(1045)].isMoveing&&e.position&&this._matrixMove._dragger_index===(null==(t=e[i(c)])?void 0:t[i(h)])&&(this._matrixMove[i(u)]=e[i(_)])}},{key:O(r),value:function(){this._matrixMove&&(this._map.removeThing(this._matrixMove,!0),delete this._matrixMove)}},{key:"startRotateMatrix",value:function(e){var i=2574,a=O,n=this;this.stopMoveMatrix(),this.stopRotateMatrix(),e=e||this._graphic,this[a(3485)]=new MatrixRotate({map:this._map,position:e.positionShow||e[a(2532)],heading:this[a(2492)][a(977)]||0,pitch:this.style[a(2033)]||0,roll:this.style.roll||0}),this._map.addThing(this._matrixRotate),this._matrixRotate.on(EventType.change,function(e){var t=a;n.style.heading=formatNum$1(e[t(977)],2),n.style.pitch=formatNum$1(e[t(2033)],2),n.style.roll=formatNum$1(e[t(i)],2),n._graphic.updateOrientation(),n.fire(EventType.editStyle)}),e.off(EventType.updatePosition,this._updateMatrixMovePosition,this),e.off(EventType.updatePosition,this[a(l)],this),e.on(EventType.updatePosition,this._updateMatrixRotatePosition,this)}},{key:"_updateMatrixRotatePosition",value:function(e){var t,i=O;this._matrixRotate&&!this._matrixRotate.isMoveing&&e.position&&this._matrixRotate._dragger_index===(null==(t=e.graphic)?void 0:t.index)&&(this._matrixRotate[i(o)]=e.position)}},{key:"stopRotateMatrix",value:function(){this._matrixRotate&&(this._map.removeThing(this._matrixRotate,!0),delete this._matrixRotate)}},{key:"destroy",value:function(){for(var e in this.disable(),this)delete this[e]}}]),R}(),EditPoint=function(){var t=2372,i=2283,a=2979,n=2026,s=_0x1658de,r=(_inherits(o,EditBase),_createSuper(o));function o(){var e=_0x236b;return _classCallCheck(this,o),r[e(n)](this,arguments)}return _createClass(o,[{key:s(2756),value:function(){var i=this;this.createDragger({dragger:this._graphic,onDrag:function(e,t){i._graphic._position_draw=t}})}},{key:"finish",value:function(){var e=s;delete this._graphic._draw_tooltip,delete this._graphic[e(1331)],delete this[e(2283)][e(360)],delete this._graphic[e(t)],delete this[e(i)][e(3478)],this[e(i)][e(a)]()}}]),o}(),BasePointEntity=function(){var e=1494,t=2071,i=1950,a=1614,n=2001,s=1240,r=2779,o=3817,l=1997,c=2852,h=1036,u=1802,_=4045,p=1240,m=1592,d=2532,f=3993,y=1240,v=620,g=2818,C=2532,x=984,b=783,k=3496,P=2511,w=3600,S=2257,T=2379,M=3213,E=2532,A=1592,H=2371,F=977,N=2033,G=2492,z=2574,B=1617,j=1124,V=1124,L=3277,$=977,D=2492,U=2574,W=2078,J=2981,q=2532,Y=2078,Z=1592,X=3341,Q=2822,I=2078,K=1347,ee=2379,te=1176,ie=2981,ae=1374,ne=3342,se=1034,re=2492,oe=1034,le=1548,ce=620,he=1899,ue=3083,_e=654,pe=2993,me=2822,de=2383,fe=1874,ye=638,ve=2532,O=_0x1658de,ge=(_inherits(R,BaseEntity),_createSuper(R));function R(){var e,t,i=_0x236b,a=0<arguments[i(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),a.drawShow=null==(t=a.drawShow)||t,(t=ge.call(this,a))._minPointNum=null!=(e=a.minPointNum)?e:1,t._maxPointNum=null!=(e=a.maxPointNum)?e:1,t._hasEdit=null==(e=t.options[i(ye)])||e,a.positions&&(t.positions=a.positions),a.position&&(t[i(ve)]=a.position),t}return _createClass(R,[{key:"EditClass",get:function(){return EditPoint}},{key:"position",get:function(){return this._position},set:function(e){var t,i=_0x236b,e=(this._point=LngLatPoint.parse(e),!this[i(ue)]||0===this._point[i(_e)]&&0===this._point[i(484)]||(e=this[i(2492)].setHeight,Cesium__namespace.defined(e)&&(isString(e)&&(e=Number(template(e,this.attr,!0)),isNaN(e))&&(e=0),this._point[i(pe)]=e),0!==(e=this.getAddHeight())&&(this._point.alt=this[i(3083)].alt+e)),null==(e=this._point)?void 0:e.toCartesian());null!=(t=this.editing)&&t[i(3463)]&&e instanceof Cesium__namespace[i(784)]?(this._position_draw=e)&&0<(null==(t=this._positions_draw)?void 0:t[i(me)])&&(this[i(de)][0]=e):(this[i(fe)]&&e instanceof Cesium__namespace[i(784)]&&this._cancelPositionsCallback(),this[i(1111)]=e),this._entity&&this[i(3639)](),this.fire(EventType[i(1026)],{position:this._position})}},{key:"positionShow",get:function(){var e,t=_0x236b;return getPositionValue(this[t(2532)],null==(e=this._map)?void 0:e.clock[t(352)])}},{key:"point",get:function(){var e=_0x236b;return this._position instanceof Cesium__namespace[e(784)]||(this._point=LngLatPoint.parse(this.positionShow)),this._point}},{key:O(1548),get:function(){return this.getCoordinate()}},{key:O(e),get:function(){var e,t=O;return getPositionValue(this.positionShow,null==(e=this._map)?void 0:e[t(he)].currentTime)}},{key:"centerPoint",get:function(){return this.point}},{key:"positions",get:function(){return this.position?[this.position]:[]},set:function(e){e&&0<e.length&&(this.position=e[0])}},{key:O(3945),get:function(){return this[O(ce)]?[this.point]:[]}},{key:O(3497),get:function(){return this[O(le)]?[this.coordinate]:[]}},{key:"positionsShow",get:function(){return this.positionShow?[this.positionShow]:[]}},{key:O(2371),get:function(){return this.getOrientation()},set:function(e){this._orientation=e,this.updateOrientation()}},{key:O(977),get:function(){var e;return null!=(e=this.style.heading)?e:0},set:function(e){var t=O;this.style.heading=e,this[t(oe)]()}},{key:"pitch",get:function(){var e;return null!=(e=this[O(re)].pitch)?e:0},set:function(e){this.style.pitch=e,this.updateOrientation()}},{key:"roll",get:function(){var e;return null!=(e=this.style.roll)?e:0},set:function(e){var t=O;this[t(2492)].roll=e,this[t(se)]()}},{key:"height",get:function(){var e;return null==(e=this.point)?void 0:e.alt},set:function(e){this.point.alt=e,this.position=this.point}},{key:O(1436),get:function(){var e,t=O;return this[t(ie)]?this._entity[t(ae)](null==(e=this._map)||null==(e=e.clock)?void 0:e.currentTime,new Cesium__namespace[t(ne)]):void 0}},{key:"debugAxis",get:function(){return this._debugAxis},set:function(e){var t,i=O,a=this;this._debugAxis=e,this.debugAxisPrimitive||(t=Math.max(.06*Cesium__namespace[i(3428)][i(3258)](this.positionShow).height,100),this.debugAxisPrimitive=this._layer.primitiveCollection[i(3605)](new Cesium__namespace.DebugModelMatrixPrimitive({modelMatrix:this.modelMatrix,length:t,width:5})),this[i(I)]._tooltipConfig={content:i(K),options:this[i(1592)].tooltipOptions},(this.position instanceof Cesium__namespace.CallbackProperty||this.position instanceof Cesium__namespace[i(ee)])&&(this.debugAxisPrimitive[i(te)]=setInterval(function(){a[i(2078)].modelMatrix=a.modelMatrix},300)),this.bindPickId(this.debugAxisPrimitive)),this[i(I)].show=e}},{key:"debugAxisLength",get:function(){var e=O;return this.debugAxisPrimitive?this[e(2078)].length:0},set:function(e){var t=O;this.debugAxisPrimitive||(this[t(X)]=!0),this.debugAxisPrimitive[t(Q)]=e}},{key:"objectsToExclude",get:function(){var e=O;return this.options.objectsToExclude?this[e(Z)].objectsToExclude:this._objectsToExcludee?this._objectsToExclude:void 0},set:function(e){this._objectsToExclude=e}},{key:"_mountedHook",value:function(){}},{key:O(t),value:function(){var e=O;_get(_getPrototypeOf(R.prototype),"_removedHook",this).call(this),this.debugAxisPrimitive&&(clearInterval(this[e(Y)]._timeTik),this._layer.primitiveCollection.remove(this.debugAxisPrimitive),delete this.debugAxisPrimitive)}},{key:"_updatePositionsHook",value:function(){var e=O;this[e(J)][e(q)]=this._position,this.debugAxisPrimitive&&(this.debugAxisPrimitive.modelMatrix=this.modelMatrix),this._updateEditDraggers(),this._updateLabelPosition()}},{key:"updateOrientation",value:function(){var e=O;return this._entity.orientation=this.getOrientation(),this.debugAxisPrimitive&&(this[e(W)].modelMatrix=this.modelMatrix),this._entity.orientation}},{key:"getOrientation",value:function(){var a,n,s,r,e,t,i,o=O,l=this,c=this[o(A)][o(H)]||this._orientation;return c?(e=this.style.mergeOrientation||!Cesium__namespace.defined(this.style[o(F)])||!Cesium__namespace.defined(this.style[o(N)])||!Cesium__namespace.defined(this[o(G)][o(z)]),c instanceof Cesium__namespace[o(B)]&&e&&(a=c,n=Cesium__namespace.Math.toRadians(this.heading),s=Cesium__namespace.Math.toRadians(this.pitch),r=Cesium__namespace.Math.toRadians(this[o(2574)]),c=new Cesium__namespace.CallbackProperty(function(e){var t=o,i=getPositionValue(l.position,e),e=a.getValue(e);return i&&e?(e=getHeadingPitchRollByOrientation(i,e),l[t(2492)].mergeOrientation?(e.heading+=n,e.roll+=r,e.pitch+=s):(Cesium__namespace[t(L)](l.style.heading)&&(e[t($)]=n),Cesium__namespace[t(L)](l[t(D)][t(U)])&&(e[t(2574)]=r),Cesium__namespace.defined(l[t(D)].pitch)&&(e.pitch=s)),Cesium__namespace.Transforms.headingPitchRollQuaternion(i,e,null==(i=l._map)||null==(e=i.scene)?void 0:e.globe[t(3113)])):null},!1)),c):null!=(e=this.positionShow)?(c=Cesium__namespace[o(j)].toRadians(this.heading),t=Cesium__namespace.Math.toRadians(this.pitch),i=Cesium__namespace[o(V)].toRadians(this.roll),c=new Cesium__namespace.HeadingPitchRoll(c,t,i),Cesium__namespace.Transforms.headingPitchRollQuaternion(e,c)):void 0}},{key:"_getGeoJsonGeometry",value:function(e){return{type:"Point",coordinates:this.getCoordinate(null==e?void 0:e.noAlt)}}},{key:"clearDynamicPosition",value:function(){return this._orientation=void 0,this.property=null,this.position=void 0,this}},{key:O(i),value:function(){var e,n=448,s=2355,r=2818,o=3428,l=2900,c=O,h=this,u=(this._clampToTilesetFrame=-1,this._frameRateHeight=null!=(e=this.options.frameRateHeight)?e:30,this._maxCacheCount=null!=(e=this.options.maxCacheCount)?e:50,new Cesium__namespace[c(T)](this.options.referenceFrame,this.options[c(3749)]));u.forwardExtrapolationType=null!=(e=this.options.forwardExtrapolationType)?e:Cesium__namespace.ExtrapolationType[c(M)],u.backwardExtrapolationType=null!=(e=this[c(1592)][c(1090)])?e:Cesium__namespace.ExtrapolationType[c(3213)],!this._orientation&&(this[c(1498)]=new Cesium__namespace.VelocityOrientationProperty(u),this._entity)&&(this._entity.orientation=this.getOrientation()),this.property=u,this[c(E)]=new Cesium__namespace[c(3121)](function(e){var t,i,a=c;if(h._map)return(i=u.getValue(e))?(i&&h.options[a(n)]&&(h._clampToTilesetFrame++,h[a(2942)]&&h._clampToTilesetFrame%h[a(s)]!=0||(t=getHeight(h._map.scene,i,{objectsToExclude:h[a(r)].objectsToExclude,has3dtiles:!0}))&&(h._clampToTilesetHeight=t),h[a(2942)])&&(t=Cesium__namespace[a(o)].fromCartesian(i),i=Cesium__namespace[a(784)].fromRadians(t.longitude,t[a(2360)],h._clampToTilesetHeight+h[a(1993)]())),h._primitive_label&&(h[a(2797)].position=i),h[a(l)]=i,h._last_isFireStop=!1,i):(!h._last_isFireStop&&h._stopTime&&Cesium__namespace.JulianDate.greaterThanOrEquals(e,h._stopTime)&&(h.fire(EventType[a(405)]),h[a(662)]=!0),h._last_position)},!1)}},{key:"addDynamicPosition",value:function(e,t){var i=O,a=(this.property||this._initSampledPositionProperty(),this._removeDynamicPosition(),(null==(a=this._map)||null==(a=a.clock)?void 0:a.currentTime)||Cesium__namespace.JulianDate.now()),n=(t?isNumber(t)?t=Cesium__namespace[i(x)].addSeconds(a,t,new Cesium__namespace[i(984)]):isString(t)?t=-1===t.indexOf("Z")?Cesium__namespace.JulianDate.fromDate(new Date(t)):Cesium__namespace.JulianDate.fromIso8601(t):t instanceof Date&&(t=Cesium__namespace.JulianDate.fromDate(t)):t=a,e=LngLatPoint.parse(e),null==(n=this._sampledPositionProperty)||null==(n=n[i(b)])?void 0:n._times),a=(0<(null==n?void 0:n.length)&&this[i(1111)]&&(n=n[n[i(2822)]-1],.3<Cesium__namespace.JulianDate.secondsDifference(a,n))&&(n=this._position,this[i(k)]&&(n=getOnLinePointByLen(this._lastDynamicPosition,this._position,.01,!0)),n=setPositionsHeight(n,e.alt||0),this[i(P)].addSample(a,n)),e[i(w)]());return this.property[i(S)](t,a),this[i(3496)]=a,this._stopTime=t,this}},{key:"_removeDynamicPosition",value:function(){var e,t=O;this._maxCacheCount<1||(e=null==(e=this.property)||null==(e=e._property)?void 0:e[t(3846)])&&0!==(null==e?void 0:e.length)&&0<(t=e.length-this._maxCacheCount-1)&&this.property.removeSamples(new Cesium__namespace.TimeInterval({start:e[0],stop:e[t]}))}},{key:"autoSurfaceHeight",value:function(){var i=O,a=this,e=0<arguments[i(2822)]&&void 0!==arguments[0]?arguments[0]:{};return getSurfaceHeight(this._map[i(3118)],this.position,_objectSpread2({objectsToExclude:this[i(g)].objectsToExclude},e)).then(function(e){var t=i;e.position&&(a[t(C)]=e.position)})}},{key:O(a),value:function(e){return this.autoSurfaceHeight(e)}},{key:"getCoordinate",value:function(e){return this[O(v)]?this.point.toArray(e):[]}},{key:"setCallbackPosition",value:function(e){var t=O;return this[t(f)](),e&&(this[t(y)]=LngLatPoint.toCartesian(e)),this[t(1240)]}},{key:O(3993),value:function(){var t=1240,i=O,a=this;this._isCallbackPositions||(this._isCallbackPositions=!0,this.show=this[i(m)].drawShow,this._position_draw=this.positionShow,this[i(d)]=new Cesium__namespace.CallbackProperty(function(e){return a[i(t)]},!1),this.updateAttrForDrawing&&this.updateAttrForDrawing(!0),this._updateOutlineToCallback(),this[i(1187)]())}},{key:"_cancelPositionsCallback",value:function(){var e=O;this._isCallbackPositions&&(this._isCallbackPositions=!1,this._position=this._position_draw,this._point=LngLatPoint.fromCartesian(this._position),delete this[e(p)],this._entity.position=this._position)}},{key:"_startDrawHook",value:function(){this[O(3817)].on(EventType.mouseMove,this._onMouseMoveHandler_point,this),this._map.on(EventType.click,this._onClickHandler_point,this)}},{key:"_stopDrawHook",value:function(){var e=O;this._map[e(4030)](EventType[e(1125)],this[e(h)],this),this._map.off(EventType[e(u)],this._onClickHandler_point,this),this[e(_)]=!0}},{key:"_onMouseMoveHandler_point",value:function(e){var t=O,i=e.cartesian;i&&(this[t(s)]=i,this[t(r)]=!0),this._map.openSmallTooltip(e.endPosition,this._draw_tooltip||this[t(o)].getLangText("_单击完成绘制")),this[t(l)](EventType[t(c)],_objectSpread2(_objectSpread2({},e),{},{drawtype:this.type,graphic:this}),!0)}},{key:"_onClickHandler_point",value:function(e){var t=O,e=e[t(n)];e&&(this._position_draw=e),this._position_draw&&(this.lastPointTemporary=!1,this[t(2671)]())}}]),R}(),EditPoly=function(){var e=2756,t=4014,i=1338,s=3064,r=3064,c=352,h=3064,a=2062,n=1182,v=_0x1658de,o=(_inherits(l,EditBase),_createSuper(l));function l(){return _classCallCheck(this,l),o.apply(this,arguments)}return _createClass(l,[{key:"hasClosure",get:function(){return this.style.closure}},{key:"hasMidPoint",get:function(){return this.positions.length<this._graphic._maxPointNum}},{key:v(e),value:function(){for(var a=2726,n=761,s=3102,d=1229,e=v,f=this,y=this.positions,t=0,i=y.length;t<i;t++)!function(e,o){var r=761,l=4045,c=2822,h=3170,u=3170,_=3170,p=761,m=_0x236b,t=f[m(367)](y[e]),i=f[m(a)]({position:t,onDrag:function(e,t){var i,a,n,s,r=m;t=f.updatePositionsHeightByAttr(t),e.position=t,f.positions[e.index]=t,0<(null==(s=f._heightDraggers)?void 0:s[r(c)])||(f.hasMidPoint&&((f.hasClosure||!f.hasClosure&&0!==e[r(3170)])&&(a=0===e.index?(i=2*o-1,o-1):(i=2*e[r(3170)]-1,e.index-1),n=getMidpoint(t,y[a]),n=f[r(367)](n),f.draggers[i].position=n),f.hasClosure||!f.hasClosure&&e[r(h)]!==o-1)&&(a=e[r(u)]===o-1?(i=2*e.index+1,0):(i=2*e.index+1,e[r(_)]+1),n=getMidpoint(t,y[a]),n=f.updatePositionsHeightByAttr(n),f[r(p)][i].position=n),f._draggerMove&&(s=centerOfMass(y),s=f.updatePositionsHeightByAttr(s),f._draggerMove.position=s))},onDragStart:function(e,t){var i,a=m;if(0<(null==(i=f._heightDraggers)?void 0:i.length))for(var n=0,s=f[a(r)].length;n<s;n++)f.draggers[n][a(l)]=!1},onDragEnd:function(e,t){var i;0<(null==(i=f._heightDraggers)?void 0:i.length)&&f.updateDraggers()}});i.index=e,f[m(n)].push(i),f[m(3392)]&&(f[m(3102)]||!f[m(s)]&&e<o-1)&&(t=getMidpoint(t,y[i=(e+1)%o]),t=f.updatePositionsHeightByAttr(t),(e=f.createDragger({position:t,type:PointType[m(d)],tooltip:f._map.getLangText(m(3394)),onDragStart:function(e,t){f.positions.splice(e.index,0,t)},onDrag:function(e,t){var i=m;f.positions[e[i(3170)]]=t},onDragEnd:function(e,t){f._fireAddPoint(e,t),f.updateDraggers()}})).index=i,f[m(761)][m(1018)](e))}(t,i);this[e(1949)](),this.entityGraphic.extrudedHeight&&this._bindHeightDraggers()}},{key:"_bindMoveAllDragger",value:function(){var h,u,_=1980,p=2822,m=2283,d=761,f=v,y=this;this._graphic._hasMoveEdit&&(h=centerOfMass(this.positions),h=this[f(367)](h),u=this.createDragger({position:h,type:PointType[f(a)],tooltip:this._map.getLangText("_整体平移"),onDragStart:function(e,t){h=t},onDrag:function(e,t){var i,n=784,s=f,r=Cesium__namespace[s(784)].subtract(t,h,new Cesium__namespace.Cartesian3);if(h=t,y[s(_)].forEach(function(e,t,i){var a=s,e=Cesium__namespace.Cartesian3.add(e,r,new Cesium__namespace[a(n)]);y.positions[t]=e}),0<(null==(i=y[s(2283)]._draw_holes)?void 0:i[s(p)]))for(var a=0,o=y[s(m)]._draw_holes[s(2822)];a<o;a++)!function(e){var a=y._graphic._draw_holes[e];a.forEach(function(e,t,i){e=Cesium__namespace.Cartesian3.add(e,r,new Cesium__namespace.Cartesian3);a[t]=e})}(a);for(var l=0,c=y[s(761)].length;l<c;l++)u!==y[s(d)][l]&&(y.draggers[l].position=Cesium__namespace.Cartesian3[s(3605)](y.draggers[l].position,r,new Cesium__namespace.Cartesian3));y._updateMoveAllHook(t)}}),this[f(n)]=u,this[f(761)].push(u))}},{key:"_updateMoveAllHook",value:function(e){}},{key:v(t),value:function(e){var n=2492,s=1338,r=v,o=this;if(this._graphic._hasHeightEdit){this._heightDraggers=[],e=e||this.positions;for(var t=getCesiumValue(this.entityGraphic[r(4038)],Number,this._map.clock[r(c)]),i=0,a=e.length;i<a;i++){var l=setPositionsHeight(e[i],t),l=this.createDragger({position:l,type:PointType[r(3284)],tooltip:this._map.getLangText("_修改高度"),onDrag:function(e,t){var i=r,t=Cesium__namespace.Cartographic.fromCartesian(t)[i(3159)],a=(o[i(3135)].extrudedHeight=t,getMaxHeight(o.positions));o[i(n)].diffHeight=o[i(1830)](t-a,2),o[i(s)](t),o.updateAttrForEditing(),o.fire(EventType[i(2393)])}});this.draggers.push(l),this[r(h)].push(l)}}}},{key:v(i),value:function(e){for(var t=v,i=0;i<this[t(s)].length;i++){var a=this[t(r)][i],n=setPositionsHeight(getPositionValue(a[t(2532)],null==(n=this._map)?void 0:n[t(1899)].currentTime),e);a.position=n}}},{key:"updatePositionsHeightByAttr",value:function(e){return e=this.clampToGround?getSurfacePosition(this._map.scene,e,{has3dtiles:!0}):e}},{key:v(3692),value:function(e){_get(_getPrototypeOf(l[v(2385)]),"_updateStyleHook",this).call(this,e),(Cesium__namespace.defined(e.diffHeight)||Cesium__namespace.defined(e.height)||Cesium__namespace.defined(e.clampToGround))&&this.updateDraggers()}}]),l}(),BasePolyEntity=function(){var e=3127,t=2847,i=2526,a=4030,n=1125,s=3817,r=1607,o=1856,l=3817,c=1874,h=1874,u=2216,_=1980,p=2130,m=2383,d=1980,f=3817,y=3945,v=3764,g=2297,C=1187,x=1980,b=2936,k=2789,P=2494,w=2255,S=1970,T=2383,M=2981,E=1026,A=2712,L=1937,D=2903,I=3127,H=1925,F=1567,N=413,G=2492,O=_0x1658de,z=(_inherits(R,BaseEntity),_createSuper(R));function R(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(t=z[i(F)](this,a))[i(3077)]=null==(e=t.options.hasEdit)||e,t._minPointNum=null!=(e=a.minPointNum)?e:2,t[i(N)]=null!=(e=a.maxPointNum)?e:9999,t[i(3801)]=null==(e=a.hasMoveEdit)||e,t._hasHeightEdit=null==(e=a.hasHeightEdit)||e,a.positions&&(0<t.style.buffer?t.positions=bufferPoints(a.positions,t[i(G)].buffer,t.style.bufferSteps):t.positions=a[i(1980)]),t}return _createClass(R,[{key:"hasMoveEdit",get:function(){return this[_0x236b(3801)]}},{key:"hasHeightEdit",get:function(){return this[_0x236b(H)]}},{key:"EditClass",get:function(){return EditPoly}},{key:"center",get:function(){var e=_0x236b;return this.style[e(D)]?this[e(I)]:this.centerOfLine}},{key:O(e),get:function(){return centerOfMass(this[O(3203)])}},{key:"centerOfLine",get:function(){var e=O,t=this.positionsShow;return t&&0!==t.length?1===t.length?t[0]:t.length<10?sliceByMaxDistance(t,this[e(L)]/2,{point:!0}):t[Math.floor(t.length/2)]:null}},{key:"distance",get:function(){return getDistance(this.positionsShow)}},{key:O(672),get:function(){return getSurfaceArea(this.positionsShow)}},{key:"positions",get:function(){return this[O(A)]?this._getPositions():this._positions},set:function(e){var t,n,s,r=332,o=2492,l=O,c=this;e&&(Array[l(w)](e)?(n=[],s=[],e.forEach(function(e,t){var i,a=l,e=LngLatPoint[a(r)](e);e&&e[a(2313)]()&&(i=c[a(o)].setHeight,Cesium__namespace[a(3277)](i)&&(isString(i)?(i=Number(template(i,c.attr,!0)),isNaN(i)&&(i=0)):Array[a(2255)](i)&&(i=i[t]||0),e[a(2993)]=i),0!==(a=c.getAddHeight(t))&&(e.alt=e.alt+a),n.push(e),s.push(e.toCartesian()))}),null!=(t=this[l(S)])&&t.enabled?this[l(T)]=s:this[l(3019)]=s,this._points=n):this[l(3019)]=e,this[l(M)]&&this._updatePositionsHook(),this[l(1997)](EventType[l(E)],{positions:this[l(3019)]}))}},{key:"positionsShow",get:function(){var e=getCesiumValue(this._positions);return e=e instanceof Cesium__namespace.Rectangle?this.outlinePositions:e}},{key:O(3945),get:function(){var e,t,i=O;return this._positions instanceof Cesium__namespace.CallbackProperty&&(this._positions_draw?e=this._positions_draw:(e=this.positionsShow,this[i(2492)].closure&&e.pop()),t=[],e.forEach(function(e){e=LngLatPoint[i(332)](e);e&&t.push(e)}),this._points=t),this[i(k)]||(this[i(2789)]=LngLatArray[i(P)](this._positions)),this._points}},{key:"coordinates",get:function(){return this[O(3764)]()}},{key:"rectangle",get:function(){var e=O;return Cesium__namespace.Rectangle[e(b)](this.positions)}},{key:"getEntityPositions",value:function(){var e=O;return this.entityGraphic[e(x)]}},{key:"_mountedHook",value:function(){}},{key:"_updatePositionsHook",value:function(){var e=O;this[e(C)](),this[e(1957)]()}},{key:"_getGeoJsonGeometry",value:function(e){var t=O;return{type:t(690),coordinates:this[t(v)](null==e?void 0:e[t(g)])}}},{key:O(3764),value:function(t){var i=[];return this[O(y)].forEach(function(e){i.push(e.toArray(t))}),i}},{key:"isInPoly",value:function(e){var t=O,e=LngLatPoint.parse(e);return!!Cesium__namespace[t(2036)].contains(Cesium__namespace.Rectangle[t(2936)](this.positionsShow),e.toCartographic())&&isInPoly(e,this.coordinates)}},{key:O(3128),value:function(){var e=O,t=this;return computeSurfacePoints(_objectSpread2(_objectSpread2({},0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}),{},{map:this[e(f)],positions:this.positionsShow}))[e(2589)](function(e){return e.noHeight||(t.positions=e.positions),e})}},{key:"clampToGround",value:function(e){return this.autoSurfaceHeight(e)}},{key:"setCallbackPositions",value:function(e){var t=O;return this._setPositionsToCallback(),e&&(this._positions_draw=LngLatArray[t(3483)](e)),this._positions_draw}},{key:"_setPositionsToCallback",value:function(){var e,t=O,i=this;this[t(h)]||(this[t(1874)]=!0,(e=getCesiumValue(this._positions))instanceof Cesium__namespace[t(u)]?e=e[t(_)]:e instanceof Cesium__namespace.Rectangle&&(e=this[t(p)]),this[t(m)]=e||this.positionsShow||[],this[t(d)]=new Cesium__namespace.CallbackProperty(function(e){return i[t(2847)]()},!1),this._updateOutlineToCallback(),this.updateAttrForDrawing&&this.updateAttrForDrawing(!0),this[t(1187)]())}},{key:O(t),value:function(){return this._positions_draw}},{key:O(i),value:function(){var e=O;this._isCallbackPositions&&(this[e(c)]=!1,this._positions=this._positions_draw,this._points=LngLatArray.toPoints(this._positions_draw),delete this._positions_draw,this._updatePositionsHook(),this._cancelOutlinePositionsCallback())}},{key:"_startDrawHook",value:function(){var e,t=O;this._map.on(EventType.mouseMove,this[t(o)],this),this._map.on(EventType.click,this._onClickHandler,this),this._map.on(EventType[t(1875)],this[t(1607)],this),null!=(e=this.options.hasDrawDelPoint)&&!e||this[t(l)].on(EventType.rightClick,this._onRightClickHandler,this)}},{key:"_stopDrawHook",value:function(){var e,t=O;this._map[t(a)](EventType[t(n)],this._onMouseMoveHandler,this),this._map[t(a)](EventType.click,this._onClickHandler,this),this[t(s)].off(EventType.dblClick,this[t(r)],this),null!=(e=this[t(1592)].hasDrawDelPoint)&&!e||this._map.off(EventType[t(2330)],this._onRightClickHandler,this)}}]),R}(),PointEntity=function(){var i=3096,a=2434,n=1672,s=1592,r=2970,o=2434,l=1672,c=2434,h=1990,u=1672,t=3686,_=2492,p=3686,m=883,d=3055,f=3525,y=2532,v=_0x1658de,e=(_inherits(g,BasePointEntity),_createSuper(g));function g(){return _classCallCheck(this,g),e.apply(this,arguments)}return _createClass(g,[{key:"entityGraphic",get:function(){var e;return null==(e=this._entity)?void 0:e.point}},{key:"_mountedHook",value:function(){var e,t,i,a=_0x236b,n={position:this[a(2532)],point:PointStyleConver.toCesiumVal(this[a(_)])};this.style.label&&(n[a(p)]=LabelStyleConver.toCesiumVal(this[a(2492)].label,{},this.attr)),this[a(1592)].billboard&&(n.billboard=BillboardStyleConver.toCesiumVal(this.options[a(m)],{},!0)),this.options.circle&&(n.ellipse=CircleStyleConver.toCesiumVal(this.options[a(1990)],{},!0)),this.options.model&&this.options.model.show&&(n.model=ModelStyleConver.toCesiumVal(this.options.model,{},!0)),this.options.path&&((i=PathStyleConver.toCesiumVal(this.options.path,{},!0))[a(d)]||(i[a(f)]=0),n.path=i,i=null==(i=this.position)||null==(i=i._property)?void 0:i._times)&&0<i.length&&(t=i[0],i=i[i.length-1],(null==(e=this[a(y)])?void 0:e.forwardExtrapolationType)===Cesium__namespace.ExtrapolationType.HOLD&&(i=Cesium__namespace[a(984)][a(445)](new Date(2100,1,1))),n.availability=new Cesium__namespace.TimeIntervalCollection([new Cesium__namespace.TimeInterval({start:t,stop:i})])),this._entity=this[a(1922)](n)}},{key:"_addLabel",value:function(){var e=_0x236b;this._entity.label=this._entity[e(t)]||{},LabelStyleConver.toCesiumVal(this.style.label,this[e(2981)].label,this.attr)}},{key:"_updateStyleHook",value:function(e,t){PointStyleConver.toCesiumVal(e,this.entityGraphic)}},{key:v(1748),value:function(e,t){return PointStyleConver.toJSON(e,t,!0)}},{key:"_setOptionsHook",value:function(e,t){var i=v;t.model&&ModelStyleConver.toCesiumVal(e.model,this._entity[i(2970)],!0),t[i(883)]&&BillboardStyleConver[i(1672)](e[i(883)],this._entity.billboard,!0),t.path&&PathStyleConver[i(l)](e[i(c)],this._entity.path,!0),t[i(h)]&&CircleStyleConver[i(u)](e[i(1990)],this._entity.ellipse,!0)}},{key:"_toJSON_Ex",value:function(e){var t=v;this[t(s)].model&&(e[t(r)]={},ModelStyleConver[t(3458)](this[t(1592)].model,e[t(2970)],!0)),this.options.billboard&&(e[t(883)]={},BillboardStyleConver.toJSON(this.options.billboard,e.billboard,!0)),this.options.path&&(e.path={},PathStyleConver[t(3458)](this.options[t(o)],e[t(2434)],!0)),this.options[t(1990)]&&(e.circle={},CircleStyleConver.toJSON(this[t(1592)].circle,e.circle,!0))}},{key:v(3752),value:function(e){var t=v;this[t(2981)].model&&(this[t(2981)][t(2970)].color=Cesium__namespace.Color.WHITE.withAlpha(e)),this[t(2981)].billboard&&(this._entity.billboard[t(2745)]=Cesium__namespace[t(i)].WHITE[t(3535)](e)),this._entity.path&&!this._updateEntityOpacity(this._entity.path,e)&&PathStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this.options[t(a)]),{},{globalAlpha:e}),this._entity.path,!0),this._entity[t(1990)]&&!this._updateEntityOpacity(this._entity.circle,e)&&CircleStyleConver[t(n)](_objectSpread2(_objectSpread2({},this.options[t(1990)]),{},{globalAlpha:e}),this[t(2981)].ellipse,!0)}},{key:v(2292),value:function(){}}]),g}(),BillboardEntity=(register$4("point",PointEntity,!0),function(){var e=2292,t=3860,i=2981,_=1732,p=2638,m=3686,d=3060,f=2895,y=2981,v=3686,g=3121,a=883,n=3096,s=3535,r=2970,o=620,l=1592,c=3458,h=2434,u=2975,C=1672,x=1592,b=1672,k=2434,P=1990,w=3686,S=1740,T=1672,M=2492,E=1614,A=620,L=1592,D=2434,I=2981,H=2026,O=_0x1658de,F=(_inherits(R,BasePointEntity),_createSuper(R));function R(){var e=_0x236b;return _classCallCheck(this,R),F[e(H)](this,arguments)}return _createClass(R,[{key:"entityGraphic",get:function(){var e;return null==(e=this._entity)?void 0:e.billboard}},{key:"image",get:function(){var e=_0x236b;return this.style[e(613)]},set:function(e){var t=_0x236b;this.style.image=e,this[t(I)]&&(this._entity.billboard.image=e)}},{key:"_mountedHook",value:function(){var e,t,i,a=_0x236b,n={position:this.position,billboard:BillboardStyleConver[a(T)](this[a(M)])};this[a(2492)].label&&(Cesium__namespace[a(3277)](this.style[a(E)])&&!Cesium__namespace.defined(this[a(2492)][a(3686)].clampToGround)&&(this.style.label.clampToGround=this[a(2492)].clampToGround),n.label=LabelStyleConver.toCesiumVal(this.style.label,{},this.attr)),this.options.point&&(n[a(A)]=PointStyleConver.toCesiumVal(this.options.point,{},!0)),this.options.circle&&(n.ellipse=CircleStyleConver.toCesiumVal(this.options.circle,{},!0)),this[a(L)].model&&this[a(L)].model[a(4045)]&&(n.model=ModelStyleConver.toCesiumVal(this.options[a(2970)],{},!0)),this[a(1592)].path&&((i=PathStyleConver.toCesiumVal(this.options[a(2434)],{},!0)).isAll||(i.leadTime=0),n[a(D)]=i,i=null==(i=this.position)||null==(i=i[a(783)])?void 0:i._times)&&0<i.length&&(t=i[0],i=i[i.length-1],(null==(e=this.position)?void 0:e.forwardExtrapolationType)===Cesium__namespace[a(1772)].HOLD&&(i=Cesium__namespace[a(984)].fromDate(new Date(2100,1,1))),n.availability=new Cesium__namespace.TimeIntervalCollection([new Cesium__namespace.TimeInterval({start:t,stop:i})])),this._entity=this[a(1922)](n)}},{key:"_addLabel",value:function(){var e=_0x236b;this._entity.label=this._entity.label||{},LabelStyleConver.toCesiumVal(this[e(2492)][e(3686)],this._entity[e(w)],this[e(S)])}},{key:O(1748),value:function(e,t){return BillboardStyleConver[O(3458)](e,t,!0)}},{key:O(3692),value:function(e,t){BillboardStyleConver.toCesiumVal(e,this.entityGraphic)}},{key:"_setOptionsHook",value:function(e,t){var i=O;t.model&&ModelStyleConver[i(b)](e.model,this._entity[i(2970)],!0),t.point&&PointStyleConver.toCesiumVal(e.point,this._entity[i(620)],!0),t.path&&PathStyleConver.toCesiumVal(e[i(k)],this._entity.path,!0),t[i(P)]&&CircleStyleConver.toCesiumVal(e.circle,this._entity.ellipse,!0)}},{key:"_updateExOpacity",value:function(e){var t=O;this._entity.model&&(this._entity.model.color=Cesium__namespace.Color.WHITE.withAlpha(e)),this._entity.point&&!this[t(2975)](this._entity.point,e)&&PointStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this.options.point),{},{globalAlpha:e}),this[t(2981)].point,!0),this._entity.path&&!this[t(u)](this._entity.path,e)&&PathStyleConver[t(C)](_objectSpread2(_objectSpread2({},this.options.path),{},{globalAlpha:e}),this._entity.path,!0),this._entity.circle&&!this[t(2975)](this._entity.circle,e)&&CircleStyleConver[t(C)](_objectSpread2(_objectSpread2({},this[t(x)].circle),{},{globalAlpha:e}),this[t(2981)].ellipse,!0)}},{key:"_toJSON_Ex",value:function(e){var t=O;this.options.model&&(e.model={},ModelStyleConver.toJSON(this.options[t(r)],e[t(2970)],!0)),this.options[t(o)]&&(e[t(620)]={},PointStyleConver[t(3458)](this[t(1592)].point,e.point,!0)),this[t(l)].path&&(e.path={},PathStyleConver[t(c)](this.options.path,e[t(h)],!0)),this.options.circle&&(e.circle={},CircleStyleConver.toJSON(this.options.circle,e[t(1990)],!0))}},{key:O(e),value:function(){}},{key:O(t),value:function(e){var t=O;this[t(2492)].globalAlpha=e,this._entity&&(this._entity[t(a)].color=Cesium__namespace[t(n)].WHITE[t(s)](e)),this._updateLabelOpacity(e)}},{key:"startBounce",value:function(){var t,i,a,n,s,r,o,l,c,h,e=O,u=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this._entity&&(t=-(u[e(_)]||50),i=u.step||1,a=u.autoStop,n=t,s=-1,o=getCesiumValue((r=this).entityGraphic.pixelOffset,Cesium__namespace[e(p)])||new Cesium__namespace[e(p)](0,0),l=o.clone(),this.entityGraphic[e(2895)]=o,this.entityGraphic.pixelOffset=new Cesium__namespace.CallbackProperty(function(e){return n<=t&&1!==s?(s=1,a&&-(t*=.55)<=2*i&&r.stopBounce()):0<=n&&-1!==s&&(s=-1),n+=i*s,l.y=o.y+n,l}),this._entity[e(m)])&&(c=getCesiumValue(this[e(2981)][e(3686)].pixelOffset,Cesium__namespace.Cartesian2)||new Cesium__namespace.Cartesian2(0,0),h=c[e(d)](),this._entity.label[e(f)]=c,this[e(y)][e(v)].pixelOffset=new Cesium__namespace[e(g)](function(e){return h.y=c.y+n,h}))}},{key:"stopBounce",value:function(){var e=O;this.entityGraphic.pixelOffset=this.entityGraphic.pixelOffset_original,this[e(i)].label&&(this._entity.label.pixelOffset=this._entity.label.pixelOffset_original)}}]),R}()),DivBillboardEntity=(register$4("billboard",BillboardEntity,!0),function(){var l=3281,c=3920,h=3180,a=3770,e=2385,t=2026,u=_0x1658de,i=(_inherits(n,BillboardEntity),_createSuper(n));function n(){var e=_0x236b;return _classCallCheck(this,n),i[e(t)](this,arguments)}return _createClass(n,[{key:u(1744),value:function(){_get(_getPrototypeOf(n[u(e)]),"_mountedHook",this).call(this),this._updateImage_delay()}},{key:"_updateStyleHook",value:function(e,t){var i=u;delete e.image,_get(_getPrototypeOf(n[i(2385)]),"_updateStyleHook",this).call(this,e,t),t&&(t.html||t[i(a)]||t.color)&&this[i(3150)]()}},{key:"_updateImage_delay",value:function(){var t=853,i=u,a=this;this[i(853)]&&clearTimeout(this.updateTimer),this.updateTimer=setTimeout(function(){var e=i;delete a[e(t)],a[e(2981)]&&a[e(3419)]()},300)}},{key:"_updateImage",value:function(){var i=613,a=2418,n=375,t=3135,s=u,r=this,o=create$3("div",s(l)),e=this.style[s(c)];isString(e)?o.innerHTML=e:e instanceof Element&&o.appendChild(e),document[s(h)].appendChild(o),this._islosdImg=!0,window.domtoimage?window[s(2024)].toPng(o).then(function(e){r[s(t)].image=""+e,document.body.removeChild(o),r._islosdImg=!1,r.fire("image",{image:e})}).catch(function(e){var t=s;logError$1("未知原因,导出失败!",e),document[t(3180)][t(a)](o),r[t(n)]=!1}):window.html2canvas&&window.html2canvas(o,{backgroundColor:null,allowTaint:!0}).then(function(e){var t=s;r.entityGraphic[t(i)]=e,document.body.removeChild(o),r._islosdImg=!1,r.fire("image",{canvas:e})})[s(3718)](function(e){var t=s;logError$1("未知原因,导出失败!",e),document.body.removeChild(o),r[t(375)]=!1})}}]),n}()),FontBillboardEntity=(register$4(_0x1658de(2736),DivBillboardEntity,!0),function(){var o=3770,l=3448,c=665,h=2492,u=4106,_=2024,p=2589,m=3718,d=3180,e=(_inherits(t,DivBillboardEntity),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"_updateImage",value:function(){var i=375,a=_0x236b,n=this,e=null!=(e=this.style[a(o)])?e:50,t=null!=(t=this.style.iconPadding)?t:10,s=null!=(s=this[a(2492)].color)?s:"#ff0000",r=create$3("div",a(3281)),t=(r.setAttribute("style","padding: ".concat(t,"px;text-align:center;max-width:").concat(e,"px;max-height:").concat(e,a(l))),document[a(c)]("i"));t.setAttribute("class",this.style.iconClass),t.setAttribute(a(h),"font-size:"+e+"px;color:"+s+";"),r[a(4106)](t),document.body[a(u)](r),this._islosdImg=!0,window[a(_)]?window[a(2024)][a(3166)](r)[a(p)](function(e){var t=a;n.entityGraphic.image=""+e,document.body.removeChild(r),n[t(i)]=!1,n.fire("image",{image:e})}).catch(function(e){logError$1("未知原因,导出失败!",e),document.body.removeChild(r),n._islosdImg=!1}):window.html2canvas&&window.html2canvas(r,{backgroundColor:null,allowTaint:!0})[a(2589)](function(e){n.entityGraphic.image=e,document.body.removeChild(r),n._islosdImg=!1,n.fire("image",{canvas:e})})[a(m)](function(e){var t=a;logError$1("未知原因,导出失败!",e),document[t(d)][t(2418)](r),n._islosdImg=!1})}}]),t}()),LabelEntity=(register$4(_0x1658de(1221),FontBillboardEntity,!0),function(){var t=3135,h=3121,a=3135,i=2532,n=2492,s=2981,r=3045,e=2492,o=_0x1658de,l=(_inherits(c,BasePointEntity),_createSuper(c));function c(){var e=_0x236b;return _classCallCheck(this,c),l[e(2026)](this,arguments)}return _createClass(c,[{key:"entityGraphic",get:function(){var e;return null==(e=this._entity)?void 0:e.label}},{key:"label",get:function(){var e=_0x236b;return this._entity?this._entity[e(3686)]:this[e(2492)]}},{key:"text",get:function(){return this[_0x236b(e)].text},set:function(e){var t=_0x236b;this.style.text=e,this._entity&&(this.entityGraphic[t(r)]=e)}},{key:"_mountedHook",value:function(){var e=_0x236b,t={position:this[e(i)],label:LabelStyleConver.toCesiumVal(this[e(n)])};this[e(s)]=this[e(1922)](t)}},{key:"_addLabel",value:function(){}},{key:"_style2Json",value:function(e,t){return LabelStyleConver.toJSON(e,t,!0)}},{key:"_updateStyleHook",value:function(e,t){var i=_0x236b;LabelStyleConver.toCesiumVal(e,this[i(a)])}},{key:"_updateDistanceDisplayConditionByEdit",value:function(){}},{key:"startBounce",value:function(){var t,i,a,n,s,r,o,l,e=_0x236b,c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this._entity&&(t=-(c.maxHeight||50),i=c.step||1,a=c.autoStop,n=t,s=-1,o=getCesiumValue((r=this).entityGraphic.pixelOffset,Cesium__namespace[e(2638)])||new Cesium__namespace.Cartesian2(0,0),l=o.clone(),this.entityGraphic.pixelOffset_original=o,this.entityGraphic.pixelOffset=new Cesium__namespace[e(h)](function(e){return n<=t&&1!==s?(s=1,a&&-(t*=.55)<=2*i&&r[_0x236b(1866)]()):0<=n&&-1!==s&&(s=-1),n+=i*s,l.y=o.y+n,l}))}},{key:o(1866),value:function(){var e=o;this.entityGraphic[e(2347)]=this[e(t)].pixelOffset_original}},{key:"setOpacity",value:function(e){this.style.globalAlpha=e,this._entity&&LabelStyleConver.setOpacity(this.entityGraphic,e)}}]),c}()),CanvasLabelEntity=(register$4("label",LabelEntity,!0),function(){var n=2385,t=2385,i=2026,a=_0x1658de,s=(_inherits(r,BillboardEntity),_createSuper(r));function r(){var e=_0x236b;return _classCallCheck(this,r),s[e(i)](this,arguments)}return _createClass(r,[{key:"_mountedHook",value:function(){var e=_0x236b;_get(_getPrototypeOf(r[e(t)]),e(1744),this)[e(1567)](this),this._updateImage_delay(this[e(2492)])}},{key:"_onBeforeCreate",value:function(e){var t,i=_0x236b;return Cesium__namespace.defined(null==e||null==(t=e.billboard)?void 0:t[i(613)])&&delete e.billboard.image,Cesium__namespace.defined(null==e||null==(t=e.billboard)?void 0:t.color)&&delete e.billboard[i(2745)],e}},{key:"_updateStyleHook",value:function(e,t){var i=_0x236b,a=_objectSpread2({},e);delete a.image,delete a.color,_get(_getPrototypeOf(r[i(n)]),"_updateStyleHook",this).call(this,a,t),this._updateImage_delay(e)}},{key:a(3150),value:function(t){var i=this;this.updateTimer&&clearTimeout(this.updateTimer),this.updateTimer=setTimeout(function(){var e=_0x236b;delete i.updateTimer,i[e(2981)]&&i._updateImage(t)},100)}},{key:"_updateImage",value:function(e){var t=a,e=LabelStyleConver.toCesiumVal(e),e=getTextImage(e.text,e);e&&(this.entityGraphic[t(613)]=e)}}]),r}()),EditModel=(register$4(_0x1658de(1573),CanvasLabelEntity,!0),function(){var e=2532,t=367,i=2756,a=2369,n=2283,s=360,o=349,l=3817,c=1018,h=3485,u=3170,_=1334,p=349,m=1689,d=3215,f=4045,r=3817,y=_0x1658de,v=(_inherits(g,EditBase),_createSuper(g));function g(){var e=_0x236b;return _classCallCheck(this,g),v[e(2026)](this,arguments)}return _createClass(g,[{key:y(e),get:function(){return this._graphic._position_draw},set:function(e){this._graphic._position_draw=e}},{key:y(t),value:function(e){var t=y;return e=this[t(1614)]?getSurfacePosition(this[t(r)].scene,e):e}},{key:y(i),value:function(){var e,s=2822,r=y,o=this,t=(this._graphic[r(_)]=this[r(3817)][r(p)]("_拖动该点后")+"<br/>"+this._map[r(349)]("_修改位置"),this.createDragger({dragger:this._graphic,onDragStart:function(e,t){for(var i=r,a=0,n=o.draggers[i(s)];a<n;a++)o.draggers[a][i(4045)]=!1},onDrag:function(e,t){o.position=t},onDragEnd:function(e,t){o.updateDraggers()}}),this[r(2492)].radius),n=this.updatePositionsHeightByAttr(this.position);this._hasEditScale&&(e=addPositionsHeight(n,t),(e=this.createDragger({position:e,type:PointType.MoveHeight,tooltip:this._map.getLangText("_修改缩放比例"),onDragStart:function(e,t){var i=r;o[i(d)]&&(o.entityAngle.show=!1);for(var a=0,n=o.draggers.length;a<n;a++)o.draggers[a][i(f)]=!1},onDrag:function(e,t){var i=r,t=Cesium__namespace[i(784)].distance(t,n),a=formatNum$1(t/(e.radius/(o.style[i(1689)]||1)),3);isNaN(a)||(a<=0&&(a=.001),o.style[i(m)]=a,o[i(3135)].scale=a,e.radius=t,o.style.radius=t)},onDragEnd:function(e,t){var i=r;o.updateDraggers(),o.fire(EventType[i(2393)])}})).radius=t,this.draggers.push(e))}},{key:y(a),value:function(i){var e,a=2484,t=4094,n=y,s=this,r=_get(_getPrototypeOf(g.prototype),n(2369),this).call(this,i);return null!=(e=this.style.hasEditRotate)&&!e||(r.push({text:this._map[n(o)]("_按轴旋转"),icon:Icon.BloomEffectYes,show:function(e){return!s[n(3485)]||s._matrixRotate._dragger_index!==i.index},callback:function(e){s.startRotateMatrix(e.graphic,e)}}),r.push({text:this[n(l)].getLangText("_停止按轴旋转"),icon:Icon[n(2489)],show:function(e){var t=n;return s[t(h)]&&s._matrixRotate[t(1681)]===i[t(u)]},callback:function(e){s.stopRotateMatrix()}})),Cesium__namespace.defined(this._hasEditScale)||(this._hasEditScale=null!=(e=this._graphic.options.hasEditScale)&&e),r[n(c)]({text:this._map.getLangText("_调整比例"),icon:Icon.UndergroundYes,show:function(e){return!s._hasEditScale},callback:function(e){s[n(4094)]=!0,s.updateDraggers()}}),r.push({text:this._map.getLangText("_停止调整比例"),icon:Icon.UndergroundNo,show:function(e){return s[n(t)]},callback:function(e){var t=n;s._hasEditScale=!1,s[t(a)]()}}),r}},{key:y(1279),value:function(){var e=y;delete this[e(n)]._draw_tooltip,delete this._graphic._isDragger,delete this._graphic[e(s)],delete this._graphic._pointType,delete this._graphic.onDrag,this._graphic.unbindContextMenu()}}]),g}()),ModelEntity=function(){var e=3692,t=3639,i=2586,a=1257,n=1863,s=3860,r=3817,o=620,l=2454,c=3817,h=835,u=1124,_=2658,p=2822,m=1311,d=3121,f=835,y=2981,v=373,g=1921,C=854,x=2492,b=2941,k=1592,P=883,w=883,S=3458,T=1990,M=883,E=620,A=2434,L=984,D=1747,H=3236,F=1334,N=2639,G=2970,I=1526,z=1592,B=2675,j=883,V=921,$=1672,U=2822,W=2294,J=635,q=1921,Y=3610,Z=469,X=2492,Q=402,K=3980,O=_0x1658de,ee=(_inherits(R,BasePointEntity),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),i.drawShow=null==(e=i.drawShow)||e,(e=ee.call(this,i))[t(2492)].radius=null!=(i=e[t(X)][t(Q)])?i:50,e._readyPromise=Cesium__namespace.defer?Cesium__namespace[t(K)]():Cesium__namespace.when.defer(),e}return _createClass(R,[{key:"entityGraphic",get:function(){var e;return null==(e=this._entity)?void 0:e.model}},{key:"EditClass",get:function(){return EditModel}},{key:"scale",get:function(){var e;return null!=(e=this.style.scale)?e:1},set:function(e){var t=_0x236b;this.style[t(1689)]=e,this._updateStyleHook(this.style,{scale:e})}},{key:"readyPromise",get:function(){return this._readyPromise.promise}},{key:"_mountedHook",value:function(){var e,t,i,a=3236,n=2870,s=2492,r=_0x236b,o=this,l={occlusion:this.style.marsOcclusion},c=(isMars3DCesium&&(this[r(H)]=!1,this[r(F)]=this._map.getLangText(r(N)),this.fire(EventType.loadBefore,{url:this.options.url}),l.callback=function(e,t){var i=r;delete o[i(1334)],o[i(a)]=!0,(o._model=t)[i(n)].radius<(o.style.maxRadius,1e3)&&(o[i(s)].radius=t.boundingSphere.radius),o[i(1997)](EventType.load,{drawtype:o.type,entity:e,model:t,graphic:o},!0),o._readyPromise.resolve(o)}),{position:this.position,orientation:this.getOrientation(),model:ModelStyleConver.toCesiumVal(this[r(2492)],{},!0)});!c[r(G)][r(I)]&&this.options.url&&(c[r(2970)][r(I)]=this[r(z)][r(B)],c.model.show=!0),this.options.billboard&&(c.billboard=BillboardStyleConver[r(1672)](this.options[r(j)],{},!0)),this.options[r(620)]&&(c.point=PointStyleConver.toCesiumVal(this.options.point,{},!0)),this.options.circle&&(c[r(V)]=CircleStyleConver.toCesiumVal(this.options.circle,{},!0)),this.options.path&&((i=PathStyleConver[r($)](this.options.path,{},!0)).isAll||(i.leadTime=0),c.path=i,i=null==(i=this.position)||null==(i=i._property)?void 0:i._times)&&0<i[r(U)]&&(t=i[0],i=i[i.length-1],(null==(e=this.position)?void 0:e[r(W)])===Cesium__namespace.ExtrapolationType.HOLD&&(i=Cesium__namespace.JulianDate.fromDate(new Date(2100,1,1))),c[r(J)]=new Cesium__namespace[r(1443)]([new Cesium__namespace.TimeInterval({start:t,stop:i})])),this.style[r(1921)]&&(this.style.distanceDisplayPoint?(c.point=PointStyleConver[r(1672)](this.style.distanceDisplayPoint),c.point[r(q)]=this[r(Y)](this.style[r(Z)])):this.style[r(1747)]&&(c.billboard=BillboardStyleConver.toCesiumVal(this.style.distanceDisplayBillboard),c.billboard.distanceDisplayCondition=this._getTargetDistanceDisplayCondition(this[r(2492)].distanceDisplayBillboard))),c[r(2970)].marsOptions=l,this._entity=this[r(1922)](c),this.style.label&&this[r(1660)]()}},{key:O(2071),value:function(){this.rotateStop(),_get(_getPrototypeOf(R.prototype),"_removedHook",this).call(this)}},{key:"_style2Json",value:function(e,t){var i=O,e=ModelStyleConver.toJSON(e,t,!0);return this.style[i(469)]?e.distanceDisplayPoint=PointStyleConver.toJSON(this[i(2492)].distanceDisplayPoint,{},!0):this.style[i(D)]&&(e.distanceDisplayBillboard=BillboardStyleConver.toJSON(this.style.distanceDisplayBillboard,{},!0)),e}},{key:O(e),value:function(e,t){var i=O;null!=t&&t.url&&(this[i(3236)]=!1,this.entityGraphic._readyOk=!1,this.fire(EventType.loadBefore,{url:null==t?void 0:t.url})),this._entity[i(2371)]=this.getOrientation(),ModelStyleConver.toCesiumVal(e,this.entityGraphic,!0)}},{key:O(t),value:function(){var e,t,i,a=O;_get(_getPrototypeOf(R.prototype),a(3639),this).call(this),this[a(2981)].path&&(i=null==(i=this.position)||null==(i=i[a(783)])?void 0:i._times)&&0<i[a(2822)]&&(t=i[0],i=i[i.length-1],(null==(e=this.position)?void 0:e.forwardExtrapolationType)===Cesium__namespace.ExtrapolationType[a(3213)]&&(i=Cesium__namespace[a(L)].fromDate(new Date(2100,1,1))),this._entity[a(635)]=new Cesium__namespace.TimeIntervalCollection([new Cesium__namespace.TimeInterval({start:t,stop:i})]))}},{key:O(i),value:function(e,t){var i=O;t.billboard&&BillboardStyleConver.toCesiumVal(e.billboard,this._entity[i(M)],!0),t[i(E)]&&PointStyleConver.toCesiumVal(e.point,this._entity.point,!0),t.path&&(PathStyleConver.toCesiumVal(e.path,this._entity[i(A)],!0),!e[i(2434)][i(3055)])&&(this._entity.path.leadTime=0),t.circle&&CircleStyleConver.toCesiumVal(e.circle,this._entity[i(921)],!0)}},{key:"_toJSON_Ex",value:function(e){var t=O;this[t(1592)].billboard&&(e.billboard={},BillboardStyleConver[t(3458)](this[t(k)][t(P)],e[t(w)],!0)),this.options.point&&(e[t(620)]={},PointStyleConver.toJSON(this.options.point,e.point,!0)),this[t(1592)].path&&(e[t(2434)]={},PathStyleConver.toJSON(this[t(1592)].path,e.path,!0)),this.options.circle&&(e.circle={},CircleStyleConver[t(S)](this.options[t(1990)],e[t(T)],!0))}},{key:O(a),value:function(e){}},{key:"_updateDistanceDisplayConditionByEdit",value:function(){}},{key:"_getTargetDistanceDisplayCondition",value:function(e){var t,i=O;return this.style[i(g)]instanceof Cesium__namespace.DistanceDisplayCondition?t=this.style.distanceDisplayCondition[i(C)]:this.style.distanceDisplayCondition_far&&(t=this[i(x)][i(b)]),new Cesium__namespace.DistanceDisplayCondition((e[i(4085)],t),(e.distanceDisplayCondition_far,Number.MAX_VALUE))}},{key:"getHeadingPitchRoll",value:function(){var e=O,t=this._map.clock.currentTime;return getHeadingPitchRollByOrientation(this[e(3912)],Cesium__namespace.Property.getValueOrUndefined(this[e(y)].orientation,t,new Cesium__namespace[e(v)]))}},{key:"rotateStart",value:function(){var e=O,t=this,i=0<arguments[e(p)]&&void 0!==arguments[0]?arguments[0]:{};this._isRotateStart&&this.rotateStop(),this._rotateDirection=i.direction?1:-1,this._rotateAngle=360/(60*(i[e(3003)]||60)),this._rotateAutoStopAngle=i[e(m)],this._rotateHpr=this[e(2446)](),this._startHeading=this._rotateHpr.heading,this._tikRender=0,this._isRotateStart=!0,this.entity.orientation=new Cesium__namespace[e(d)](function(e){var e=getPositionValue(t.position,e);return Cesium__namespace.Transforms.headingPitchRollQuaternion(e,t._rotateHpr,null==(e=t._map)||null==(e=e.scene)?void 0:e.globe.ellipsoid)},!1),this._map.on(EventType[e(1804)],this[e(f)],this)}},{key:"_rotate_onPreRenderHandler",value:function(e){var t,i=O;this._map&&(this._tikRender++,t=this._tikRender*this._rotateAngle,this[i(_)]&&t>=this[i(2658)]?this[i(1699)]():(t=Cesium__namespace.Math.toRadians(t*this._rotateDirection)+this[i(2308)],this._rotateHpr[i(977)]=t))}},{key:"rotateStop",value:function(){var e=O;this._isRotateStart&&(this[e(l)]=!1,this[e(c)].off(EventType.preRender,this[e(h)],this),this.heading=Cesium__namespace[e(u)].toDegrees(this._rotateHpr.heading),delete this._rotateDirection,delete this[e(2110)],delete this._rotateAutoStopAngle,delete this._rotateHpr,delete this[e(2308)],delete this._tikRender)}},{key:"moveTo",value:function(c){var h=3060,u=2257,_=2981,p=3319,m=this;return new Promise(function(t,e){var i=2763,a=_0x236b,n=new Cesium__namespace.SampledPositionProperty,s=(n.forwardExtrapolationType=Cesium__namespace.ExtrapolationType.HOLD,m._map.clock[a(352)][a(h)]()),r=m[a(3912)],o=(n.addSample(s,r),LngLatPoint.parse(c.position).toCartesian()),r=c.time||5,s=Cesium__namespace.JulianDate.addSeconds(s,r,new Cesium__namespace.JulianDate),l=(n[a(u)](s,o),m[a(_)].position=n,m._map[a(1899)].multiplier);m._map.clock.shouldAnimate=!0,m._map.clock[a(p)]=c.speed||1,setTimeout(function(){var e=a;m._map&&(m.position=o,m._map.clock.multiplier=l,c.onEnd&&c[e(i)](),t(m))},1e3*r)})}},{key:"flyTo",value:function(){var e=O,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this[e(r)]?(Cesium__namespace[e(3277)](t.radius)||(t.radius=2*this.style[e(402)]*(t.scale||1.8)),this._map.flyToPoint(this[e(o)],t)):Promise[e(1049)](!1)}},{key:"setOpacity",value:function(e){var t=O;this.style[t(n)]=e,this._entity&&(ModelStyleConver[t(s)](this[t(3135)],e),this._updateLabelOpacity(e))}}]),R}(),EditBox=(register$4("model",ModelEntity,!0),function(){var i=3277,a=1785,n=1428,s=1785,r=3135,_=761,p=1018,m=3975,d=349,f=2726,y=3817,v=1830,g=2484,o=_0x1658de,e=(_inherits(l,EditBase),_createSuper(l));function l(){return _classCallCheck(this,l),e.apply(this,arguments)}return _createClass(l,[{key:"position",get:function(){return this._graphic._position_draw},set:function(e){this._graphic._position_draw=e}},{key:"bindDraggers",value:function(){var a=3428,n=3159,r=761,o=761,l=_0x236b,c=this,s=this[l(2492)],h=this.position,e=this.createDragger({position:h,onDrag:function(e,t){var i=l,a=Cesium__namespace.Cartesian3[i(3446)](t,c.position,new Cesium__namespace.Cartesian3);c.position=t;for(var n=0,s=c.draggers.length;n<s;n++)c.draggers[n]!==e&&(c[i(r)][n].position=Cesium__namespace.Cartesian3.add(c[i(o)][n][i(2532)],a,new Cesium__namespace[i(784)]))}}),t=(this[l(_)][l(p)](e),Cesium__namespace[l(1124)].toRadians(this._graphic.heading)),i=Cesium__namespace.Math.toRadians(this._graphic.pitch),u=Cesium__namespace.Math.toRadians(this[l(2283)].roll),t=new Cesium__namespace[l(m)](t,i,u),i=getPositionByHprAndOffset(h,new Cesium__namespace.Cartesian3(s.dimensions_x/2,0,0),t),u=(e=this.createDragger({position:i,type:PointType.EditAttr,tooltip:this._map[l(d)]("_修改长度"),onDrag:function(e,t){var i=l,e=(t=setPositionsHeight(t,Cesium__namespace[i(a)][i(3258)](c.position)[i(n)]),e.position=t,c[i(1830)](Cesium__namespace.Cartesian3.distance(c[i(2532)],t),2));s.dimensions_x=2*e,c.updateBox(s),c.fire(EventType.editStyle)},onDragEnd:function(e,t){c[l(g)]()}}),this.draggers.push(e),getPositionByHprAndOffset(h,new Cesium__namespace.Cartesian3(0,s.dimensions_y/2,0),t)),i=(e=this[l(f)]({position:u,type:PointType.EditAttr,tooltip:this._map.getLangText("_修改宽度"),onDrag:function(e,t){var i=l,e=(t=setPositionsHeight(t,Cesium__namespace.Cartographic.fromCartesian(h).height),e.position=t,c.formatNum(Cesium__namespace.Cartesian3.distance(c.position,t),2));s.dimensions_y=2*e,c.updateBox(s),c[i(1997)](EventType.editStyle)},onDragEnd:function(e,t){c.updateDraggers()}}),this[l(761)].push(e),getPositionByHprAndOffset(h,new Cesium__namespace[l(784)](0,0,s.dimensions_z/2),t));e=this.createDragger({position:i,type:PointType.MoveHeight,tooltip:this[l(y)].getLangText("_修改高度"),onDrag:function(e,t){var i=l,t=c[i(v)](Cesium__namespace.Cartesian3[i(1937)](c[i(2532)],t),2);s[i(1785)]=2*t,c.updateBox(s),c.fire(EventType.editStyle)},onDragEnd:function(e,t){c.updateDraggers()}}),this.draggers.push(e)}},{key:o(1207),value:function(e){var t=o,e=new Cesium__namespace.Cartesian3(e[t(n)],e.dimensions_y,e[t(s)]);this[t(r)].dimensions.setValue(e)}},{key:"_updateStyleHook",value:function(e){var t=o;_get(_getPrototypeOf(l[t(2385)]),t(3692),this)[t(1567)](this,e),(Cesium__namespace[t(3277)](e.dimensions_x)||Cesium__namespace[t(i)](e.dimensions_y)||Cesium__namespace[t(i)](e[t(a)]))&&this.updateDraggers()}}]),l}()),BoxEntity=function(){var a=977,n=3277,s=1672,i=2981,r=395,o=_0x1658de,e=(_inherits(l,BasePointEntity),_createSuper(l));function l(){return _classCallCheck(this,l),e.apply(this,arguments)}return _createClass(l,[{key:"entityGraphic",get:function(){var e,t=_0x236b;return null==(e=this[t(i)])?void 0:e[t(r)]}},{key:o(2997),get:function(){return EditBox}},{key:"_mountedHook",value:function(){var e=o,t={position:this[e(2532)],orientation:this.getOrientation(),box:BoxStyleConver.toCesiumVal(this.style,{},!0)};this._entity=this._createEntity(t),this[e(2492)].label&&this._addLabel()}},{key:"_style2Json",value:function(e,t){return BoxStyleConver.toJSON(e,t,!0)}},{key:"_updateStyleHook",value:function(e,t){var i=o;t&&(Cesium__namespace.defined(t[i(a)])||Cesium__namespace[i(n)](t.pitch)||Cesium__namespace.defined(t.roll))&&(this._entity.orientation=this[i(1357)]()),BoxStyleConver[i(s)](e,this[i(3135)],!0)}},{key:o(3993),value:function(){var e,t=o,i=(_get(_getPrototypeOf(l.prototype),"_setPositionsToCallback",this).call(this),getCesiumValue(this.entityGraphic.dimensions,Number,this._map.clock.currentTime));this.style.dimensions_x=null!=(e=this.style.dimensions_x)?e:i.x,this.style.dimensions_y=null!=(e=this.style[t(2457)])?e:i.y,this.style.dimensions_z=null!=(e=this.style.dimensions_z)?e:i.z,delete this.style[t(920)]}}]),l}(),EditPlane=(register$4("box",BoxEntity,!0),function(){var i=3692,c=2283,h=2574,u=784,_=1428,p=2532,m=1830,d=2457,f=2532,y=1937,v=2532,g=761,C=784,e=(_inherits(a,EditBase),_createSuper(a));function a(){return _classCallCheck(this,a),e.apply(this,arguments)}return _createClass(a,[{key:"position",get:function(){return this._graphic._position_draw},set:function(e){this._graphic._position_draw=e}},{key:"bindDraggers",value:function(){var r=_0x236b,o=this,a=this.style,e=this.position,t=this[r(2726)]({position:e,onDrag:function(e,t){var i=r,a=Cesium__namespace.Cartesian3[i(3446)](t,o[i(v)],new Cesium__namespace.Cartesian3);o.position=t;for(var n=0,s=o.draggers.length;n<s;n++)o[i(g)][n]!==e&&(o.draggers[n][i(2532)]=Cesium__namespace.Cartesian3.add(o.draggers[n].position,a,new Cesium__namespace[i(C)]))}}),i=(this[r(761)][r(1018)](t),Cesium__namespace.Math.toRadians(this._graphic[r(977)])),n=Cesium__namespace.Math.toRadians(this._graphic.pitch),s=Cesium__namespace.Math.toRadians(this[r(c)][r(h)]),i=new Cesium__namespace.HeadingPitchRoll(i,n,s),n=new Cesium__namespace[r(u)];if("x"===a.plane_normal?n.y=a.dimensions_x/2:n.x=a[r(_)]/2,t=this[r(2726)]({position:getPositionByHprAndOffset(e,n,i),type:PointType.EditAttr,tooltip:this._map.getLangText("_修改长度"),onDrag:function(e,t){var i=r,e=(t=setPositionsHeight(t,Cesium__namespace.Cartographic.fromCartesian(o[i(2532)])[i(3159)]),e[i(f)]=t,o.formatNum(Cesium__namespace.Cartesian3[i(y)](o.position,t),2));a.dimensions_x=2*e,o.updatePlane(a)},onDragEnd:function(e,t){o.updateDraggers()}}),this.draggers.push(t),"z"===a.plane_normal)t=this.createDragger({position:getPositionByHprAndOffset(e,new Cesium__namespace.Cartesian3(0,a.dimensions_y/2,0),i),type:PointType.EditAttr,tooltip:this._map.getLangText("_修改宽度"),onDrag:function(e,t){var i=r,e=(t=setPositionsHeight(t,Cesium__namespace.Cartographic.fromCartesian(o[i(2532)])[i(3159)]),e[i(p)]=t,o[i(m)](Cesium__namespace.Cartesian3.distance(o.position,t),2));a[i(d)]=2*e,o.updatePlane(a)},onDragEnd:function(e,t){o.updateDraggers()}}),this.draggers[r(1018)](t);else{var l={x:0,y:0,z:0};switch(a.plane_normal){case"x":case"y":l.z=a.dimensions_y/2;break;default:l.y=a.dimensions_y/2}t=this.createDragger({position:getPositionByHprAndOffset(e,l,i),type:PointType.MoveHeight,tooltip:this._map[r(349)]("_修改宽度"),onDrag:function(e,t){t=o.formatNum(Cesium__namespace.Cartesian3.distance(o.position,t),2);a.dimensions_y=2*t,o.updatePlane(a)},onDragEnd:function(e,t){o.updateDraggers()}}),this.draggers.push(t)}}},{key:"updatePlane",value:function(e){var t=_0x236b,e=new Cesium__namespace.Cartesian2(e[t(1428)],e.dimensions_y);this.entityGraphic.dimensions.setValue(e),this.fire(EventType[t(2393)])}},{key:"_updateStyleHook",value:function(e){var t=_0x236b;_get(_getPrototypeOf(a.prototype),t(i),this).call(this,e),(Cesium__namespace.defined(e.dimensions_x)||Cesium__namespace[t(3277)](e.dimensions_y))&&this.updateDraggers()}}]),a}()),PlaneEntity=function(){var i=2385,a=3993,n=2638,s=352,r=3277,o=2574,l=2981,c=1672,h=_0x1658de,t=(_inherits(u,BasePointEntity),_createSuper(u));function u(){var e=_0x236b;return _classCallCheck(this,u),t[e(2026)](this,arguments)}return _createClass(u,[{key:h(3135),get:function(){var e;return null==(e=this._entity)?void 0:e.plane}},{key:h(2997),get:function(){return EditPlane}},{key:"_mountedHook",value:function(){var e=h,t={position:this.position,orientation:this.getOrientation(),plane:PlaneStyleConver[e(c)](this.style,{},!0)};this._entity=this._createEntity(t),this.style[e(3686)]&&this._addLabel()}},{key:"_style2Json",value:function(e,t){return PlaneStyleConver.toJSON(e,t,!0)}},{key:"_updateStyleHook",value:function(e,t){var i=h;t&&(Cesium__namespace.defined(t.heading)||Cesium__namespace[i(r)](t[i(2033)])||Cesium__namespace.defined(t[i(o)]))&&(this[i(l)].orientation=this.getOrientation()),PlaneStyleConver.toCesiumVal(e,this[i(3135)],!0)}},{key:h(3993),value:function(){var e=h,t=(_get(_getPrototypeOf(u[e(i)]),e(a),this).call(this),getCesiumValue(this.entityGraphic[e(920)],Cesium__namespace[e(n)],this._map.clock[e(352)])),t=(t&&PlaneStyleConver[e(700)]("dimensions",t,this[e(2492)]),getCesiumValue(this[e(3135)].plane,Cesium__namespace.Plane,this._map.clock[e(s)]));t&&PlaneStyleConver.toOneJson("plane",t,this.style)}}]),u}(),EditCircle=(register$4(_0x1658de(2388),PlaneEntity,!0),function(){var i=3277,a=2484,n=3159,c=3817,h=761,u=3801,_=1018,p=3159,m=784,d=402,f=2393,y=3064,v=3135,g=1830,C=413,s=_0x1658de,e=(_inherits(r,EditPoly),_createSuper(r));function r(){return _classCallCheck(this,r),e.apply(this,arguments)}return _createClass(r,[{key:"bindDraggers",value:function(){var e,i=2484,s=_0x236b,r=this,a=this[s(1980)],t=this.updatePositionsHeightByAttr(a[0]),n=this[s(c)].clock.currentTime,o=getEllipseOuterPositions({position:t,semiMajorAxis:getCesiumValue(this.entityGraphic.semiMajorAxis,Number,n),semiMinorAxis:getCesiumValue(this[s(3135)].semiMinorAxis,Number,n),rotation:null!=(o=getCesiumValue(this.entityGraphic.rotation,Number,n))?o:0,count:1}),l=this.updatePositionsHeightByAttr(o[1]),l=(a[1]=l,this.createDragger({position:l,type:PointType.EditAttr,tooltip:this._map.getLangText("_修改半径"),onDragStart:function(e,t){if(r._heightDraggers)for(var i=0,a=r._heightDraggers.length;i<a;i++)r._heightDraggers[i].show=!1},onDrag:function(e,t){var i=s,e=(void 0!==r.entityGraphic.height&&(t=setPositionsHeight(t,getCesiumValue(r[i(v)].height,Number,n)),e[i(2532)]=t),a[e.index]=t,r[i(g)](Cesium__namespace.Cartesian3.distance(a[0],t),2));r[i(3135)].semiMajorAxis=e,3!==r._graphic[i(C)]&&Cesium__namespace.defined(r[i(2492)].radius)?(r[i(v)].semiMinorAxis=e,r.style.radius=e):r.style.semiMajorAxis=e,r.fire(EventType.editStyle)},onDragEnd:function(e,t){r.updateDraggers()}}));l.index=1,this[s(h)][s(1018)](l),3===this._graphic._maxPointNum&&(o=this[s(367)](o[0]),a[2]=o,(e=this.createDragger({position:o,type:PointType.EditAttr,tooltip:this._map.getLangText("_修改半径"),onDragStart:function(e,t){var i=s;if(r[i(y)])for(var a=0,n=r._heightDraggers.length;a<n;a++)r[i(3064)][a][i(4045)]=!1},onDrag:function(e,t){var i=s,e=(void 0!==r.entityGraphic[i(p)]&&(t=setPositionsHeight(t,getCesiumValue(r.entityGraphic[i(3159)],Number,n)),e.position=t),a[e.index]=t,r.formatNum(Cesium__namespace[i(m)].distance(a[0],t),2)),t=getCesiumValue(r[i(3135)].semiMajorAxis,Number,n);r.entityGraphic.semiMinorAxis=e=t<e?t:e,3!==r._graphic._maxPointNum&&Cesium__namespace.defined(r.style.radius)?(r.entityGraphic.semiMajorAxis=e,r.style[i(d)]=e):r.style.semiMinorAxis=e,r.fire(EventType[i(f)])},onDragEnd:function(e,t){r[s(i)]()}})).index=2,this.draggers.push(e)),this._graphic[s(u)]&&((o=this.createDragger({position:t,onDragStart:function(e,t){for(var i=0,a=r.draggers.length;i<a;i++)r.draggers[i].show=!1},onDrag:function(e,t){a[0]=t},onDragEnd:function(e,t){r[s(2484)]()}})).index=0,this[s(761)][s(_)](o),o.majorDragger=l,o.minorDragger=e),this.entityGraphic.extrudedHeight&&(t=3===this._graphic._maxPointNum?[a[1],a[2]]:[a[1]],this._bindHeightDraggers(t))}},{key:s(367),value:function(e){var t=s;return this.clampToGround&&(e=getSurfacePosition(this._map.scene,e)),e=void 0!==this.entityGraphic.height?setPositionsHeight(e,getCesiumValue(this.entityGraphic[t(n)],Number,this._map.clock.currentTime)):e}},{key:"_updateStyleHook",value:function(e){var t=s;_get(_getPrototypeOf(r.prototype),"_updateStyleHook",this)[t(1567)](this,e),(Cesium__namespace.defined(e.radius)||Cesium__namespace.defined(e[t(3589)])||Cesium__namespace.defined(e.semiMajorAxis)||Cesium__namespace[t(i)](e[t(3159)])||Cesium__namespace.defined(e[t(872)]))&&this[t(a)]()}},{key:"openSmallTooltipByMinPointNum",value:function(e){}}]),r}()),CircleEntity=function(){var e=2130,t=3459,i=519,a=3928,n=406,s=3817,r=1049,o=803,l=1937,c=984,h=921,u=921,_=1567,p=2492,m=784,d=1937,f=1937,y=2383,v=540,g=3589,C=3817,x=1937,b=2001,k=2557,P=2791,w=3817,S=1274,T=2402,M=3258,E=3277,A=1997,L=3639,D=1874,I=2383,H=2532,F=872,N=1185,G=2492,z=3686,B=3073,j=2492,V=3159,$=3159,U=3135,W=3135,J=402,q=540,Y=1680,Z=413,X=1592,Q=2221,O=_0x1658de,K=(_inherits(R,BasePointEntity),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(e=K.call(this,i))._minPointNum=2,e[t(Z)]=2,e._hasMoveEdit=null==(i=i.hasMoveEdit)||i,e._clampToGround_reload=!0,e[t(X)][t(Q)]=null==(i=e.options[t(2221)])||i,e}return _createClass(R,[{key:"entityGraphic",get:function(){var e,t=_0x236b;return null==(e=this._entity)?void 0:e[t(921)]}},{key:"EditClass",get:function(){return EditCircle}},{key:O(e),get:function(){var e=O;return this._entity&&(this[e(1680)]=this.getOutlinePositions()),this[e(Y)]},set:function(e){this._outlinePositions=e}},{key:"outlineCoordinates",get:function(){return cartesians2lonlats(this.outlinePositions)}},{key:"distance",get:function(){return 2*Math.PI*this.radius}},{key:O(672),get:function(){var e=this.radius;return Math.PI*e*e}},{key:"radius",get:function(){var e,t=O;return this.style[t(J)]?this.style.radius:getCesiumValue(null==(e=this.entityGraphic)?void 0:e[t(q)],Number,Cesium__namespace[t(984)][t(2023)]())},set:function(e){var t=O;this.style[t(402)]=e,this[t(W)]&&(this.entityGraphic.semiMajorAxis=e,this[t(3135)].semiMinorAxis=e,this._updateOutlineStyle(this[t(3459)](),this.style))}},{key:"height",get:function(){var e=O;return this.style[e(V)]?this.style[e($)]:null!=(e=getCesiumValue(null==(e=this[e(U)])?void 0:e.height,Number))?e:0},set:function(e){var t=O;this[t(j)].height=e,this[t(3135)]&&(this.entityGraphic.height=e)}},{key:"_mountedHook",value:function(){var e=O,t={position:this.position,ellipse:CircleStyleConver.toCesiumVal(this[e(G)],{},!0)};this.style[e(z)]&&(Cesium__namespace.defined(this.style.clampToGround)&&!Cesium__namespace.defined(this.style.label[e(1614)])&&(this.style.label.clampToGround=this.style[e(1614)]),t.label=LabelStyleConver.toCesiumVal(this.style.label,{},this.attr)),this._entity=this._createEntity(t),this[e(B)](),this[e(3612)](this._getOutlinePositions(),this.style),(this.position instanceof Cesium__namespace.CallbackProperty||this.position instanceof Cesium__namespace.SampledPositionProperty)&&this._updateOutlineToCallback(),this.style.label&&this._addLabel()}},{key:"_addLabel",value:function(){var e=O;this._entity.label=this._entity.label||{},LabelStyleConver.toCesiumVal(this.style.label,this._entity[e(3686)],this.attr)}},{key:"_style2Json",value:function(e,t){return CircleStyleConver.toJSON(e,t,!0)}},{key:"toGeoJSON",value:function(e){var t=O;return _get(_getPrototypeOf(R.prototype),"toGeoJSON",this)[t(1567)](this,e)}},{key:"_getGeoJsonGeometry",value:function(e){var t=O;return null!=e&&e[t(N)]?{type:t(3950),coordinates:[this.getOutlineCoordinates(null==e?void 0:e.closure,null==e?void 0:e[t(3143)],null==e?void 0:e.noAlt)]}:{type:"Point",coordinates:this[t(843)](null==e?void 0:e[t(2297)])}}},{key:"_updateStyleHook",value:function(e,t){var i=O;CircleStyleConver.toCesiumVal(e,this.entityGraphic,!0),(Cesium__namespace.defined(t[i(F)])||Cesium__namespace.defined(t.height))&&this._updateHeight()}},{key:"_updatePositionsHook",value:function(){var e=O;this._entity.position=this[e(2532)],this._updateHeight(),this[e(3612)](this._getOutlinePositions(),this.style),this._updateLabelPosition(),this._updateEditDraggers()}},{key:O(t),value:function(){return[this.outlinePositions]}},{key:"_setPositionsToCallback",value:function(){var e=O,t=this;this._isCallbackPositions||(this[e(D)]=!0,this[e(I)]=this.positions||[],this[e(H)]=new Cesium__namespace[e(3121)](function(e){return t._positions_draw.length<1?null:t._positions_draw[0]},!1),this[e(390)]())}},{key:"_cancelPositionsCallback",value:function(){var e=O;this._isCallbackPositions&&(this._isCallbackPositions=!1,this._position=this[e(2383)][0],this._point=LngLatPoint.fromCartesian(this._position),this[e(L)]())}},{key:"_updateHeight",value:function(){var e,t,i=O;!this.style.clampToGround&&(e=this._position,e=0<(null==(t=this._positions_draw)?void 0:t.length)?this._positions_draw[0]:e)&&(t=null!=(t=this.style.height)?t:LngLatPoint[i(M)](e).alt,this.entityGraphic.height=t,Cesium__namespace[i(E)](this.style.diffHeight)&&(Cesium__namespace.defined(this.style[i(872)])&&0!==this.style.diffHeight?this.entityGraphic.extrudedHeight=t+this.style.diffHeight:this.entityGraphic.extrudedHeight=void 0),this[i(A)](EventType[i(2393)]))}},{key:O(1496),value:function(){var e,t=O;this._map.on(EventType.mouseMove,this._onMouseMoveHandler,this),this._map.on(EventType.click,this[t(S)],this),this._map.on(EventType.dblClick,this._onDbClickHandler,this),null!=(e=this.options.hasDrawDelPoint)&&!e||this._map.on(EventType[t(2330)],this[t(T)],this)}},{key:"_stopDrawHook",value:function(){var e,t=O;this._map.off(EventType.mouseMove,this[t(1856)],this),this._map[t(4030)](EventType.click,this._onClickHandler,this),this._map.off(EventType[t(1875)],this._onDbClickHandler,this),null!=(e=this.options[t(P)])&&!e||this[t(w)].off(EventType.rightClick,this[t(2402)],this)}},{key:O(i),value:function(e){var t,i,a=O;this._positions_draw.length<=1?this[a(C)].openSmallTooltip(e.endPosition,this._map.getLangText(a(668))):(t="",this.options.drawShowRadius&&0<this[a(2383)].length&&e.cartesian&&0<(i=Cesium__namespace.Cartesian3[a(x)](this._positions_draw[0],e[a(b)]))&&(t="半径:"[a(k)](formatDistance(i),"<br />")),this._map.openSmallTooltip(e.endPosition,t+this[a(C)].getLangText("_单击完成绘制")))}},{key:"updateAttrForDrawing",value:function(e){var t=O;if(!(this._positions_draw[t(2822)]<2)){if(this._updateHeight(),!e){var i,a,n,e=formatNum$1(Cesium__namespace[t(m)][t(d)](this._positions_draw[0],this._positions_draw[1]),2);if(e<1)return;3===this._maxPointNum?(n=a=e,(n=3===this._positions_draw.length?formatNum$1(Cesium__namespace.Cartesian3[t(f)](this[t(y)][0],this._positions_draw[2]),2):n)<a&&(i=a,a=n,n=i),this.entityGraphic[t(v)]=n,this.entityGraphic.semiMinorAxis=a,this.style.semiMajorAxis=n,this[t(2492)][t(g)]=a):(this.entityGraphic.semiMajorAxis=e,this.entityGraphic[t(g)]=e,this.style[t(402)]=e)}this._entity_outlines&&(this._outlinePositions=this.getOutlinePositions(),this._updateOutlineToCallback())}}},{key:"_onRightClickHandler",value:function(e){var t=O;_get(_getPrototypeOf(R.prototype),"_onRightClickHandler",this)[t(_)](this,e),this[t(3135)].semiMajorAxis=0,this.entityGraphic.semiMinorAxis=0,this[t(p)].radius=0}},{key:"getOutlinePositions",value:function(){var e,t=O,i=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],a=1<arguments[t(2822)]?arguments[1]:void 0,n=Cesium__namespace[t(c)].now(),t=getEllipseOuterPositions({position:getPositionValue(this._entity.position),semiMajorAxis:getCesiumValue(null==(e=this._entity[t(h)])?void 0:e.semiMajorAxis,Number,n),semiMinorAxis:getCesiumValue(null==(e=this._entity[t(u)])?void 0:e.semiMinorAxis,Number,n),rotation:null!=(e=getCesiumValue(null==(e=this[t(2981)][t(921)])?void 0:e.rotation,Number,n))?e:0,granularity:getCesiumValue(null==(e=this._entity[t(921)])?void 0:e.granularity,Number,n),count:a});return i&&t&&t.push(t[0]),t}},{key:O(a),value:function(e,t,i){return cartesians2lonlats(this.getOutlinePositions(e,t),i)}},{key:"_getOutlineStyle",value:function(e,t){e=_get(_getPrototypeOf(R.prototype),"_getOutlineStyle",this).call(this,e,t);return e.arcType=Cesium__namespace.ArcType.RHUMB,e}},{key:"getRectangle",value:function(e){var t=this.getOutlinePositions(!1,1);if(t&&0!==t.length)return getRectangle(t,null==e?void 0:e.isFormat)}},{key:O(1996),value:function(e){var t=O;return e=setPositionsHeight(e=LngLatPoint[t(332)](e).toCartesian(),this.height),Cesium__namespace.Cartesian3[t(l)](this.positionShow,e)<=this.radius}},{key:O(n),value:function(){var e=O,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this[e(s)]?(t.radius=2*this[e(402)]*(t.scale||1.8),this[e(3817)][e(o)](this.point,t)):Promise[e(r)](!1)}}]),R}(),EditCylinder=(register$4(_0x1658de(1990),CircleEntity,!0),function(){var i=3692,l=761,c=1018,h=2046,u=545,_=2492,e=(_inherits(a,EditPoly),_createSuper(a));function a(){return _classCallCheck(this,a),e.apply(this,arguments)}return _createClass(a,[{key:"bindDraggers",value:function(){var a=2822,s=4045,n=_0x236b,r=this,o=this.positions,e=o[0],t=this.createDragger({position:e,onDragStart:function(e,t){for(var i=_0x236b,a=0,n=r.draggers.length;a<n;a++)r.draggers[a][i(s)]=!1},onDrag:function(e,t){o[0]=t},onDragEnd:function(e,t){r.updateDraggers()}});t.index=0,this[n(l)][n(c)](t);t=getEllipseOuterPositions({position:e,semiMajorAxis:this.style.bottomRadius,semiMinorAxis:this.style.bottomRadius,rotation:Cesium__namespace.Math.toRadians(Number(this.style[n(h)]||0))})[0],o[1]=t,t=this.createDragger({position:t,type:PointType.EditAttr,tooltip:this._map.getLangText(n(u)),onDrag:function(e,t){o[1]=t;t=r.formatNum(Cesium__namespace.Cartesian3.distance(o[0],t),2);r.style.bottomRadius=t,r.fire(EventType.editStyle)},onDragEnd:function(e,t){r[n(2484)]()}}),t.index=1,this[n(761)].push(t),t=addPositionsHeight(e,this[n(_)].length),o[2]=t,e=this.createDragger({position:t,type:PointType.MoveHeight,tooltip:this._map.getLangText("_修改高度"),onDrag:function(e,t){var i=n,e=(o[e[i(3170)]]=t,r.formatNum(Cesium__namespace.Cartesian3.distance(o[0],t),2));r.style[i(a)]=e,r.fire(EventType.editStyle)},onDragEnd:function(e,t){r[n(2484)]()}});e.index=2,this.draggers.push(e)}},{key:"_updateStyleHook",value:function(e){var t=_0x236b;_get(_getPrototypeOf(a.prototype),t(i),this).call(this,e),(Cesium__namespace.defined(e[t(2488)])||Cesium__namespace.defined(e.bottomRadius)||Cesium__namespace[t(3277)](e[t(2822)])||Cesium__namespace.defined(e[t(872)]))&&this.updateDraggers()}}]),a}()),CylinderEntity=function(){var e=1748,t=3692,i=1257,a=2385,n=2492,s=451,r=2492,o=3817,l=1802,c=1125,h=1874,u=3083,_=3639,p=2492,m=451,d=2492,f=2383,y=2532,v=2385,g=3135,C=4035,x=930,b=2492,k=1660,P=413,w=_0x1658de,S=(_inherits(T,BasePointEntity),_createSuper(T));function T(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,T),(t=S.call(this,t))._minPointNum=2,t[e(P)]=2,t}return _createClass(T,[{key:"entityGraphic",get:function(){var e;return null==(e=this._entity)?void 0:e.cylinder}},{key:w(2997),get:function(){return EditCylinder}},{key:w(1744),value:function(){var e=w;this._entity=this._createEntity(this[e(x)]()),this[e(b)].label&&this[e(k)]()}},{key:"_getCreateEntityAttr",value:function(){return{position:this.position,orientation:this.getOrientation(),cylinder:CylinderStyleConver.toCesiumVal(this.style,{},!0)}}},{key:w(e),value:function(e,t){return CylinderStyleConver.toJSON(e,t,!0)}},{key:w(t),value:function(e,t){var i=w;CylinderStyleConver.toCesiumVal(e,this[i(g)],{},!0),(Cesium__namespace.defined(t.heading)||Cesium__namespace[i(3277)](t.pitch)||Cesium__namespace.defined(t.roll))&&(this._entity.orientation=this.getOrientation()),(Cesium__namespace.defined(t.length)||Cesium__namespace.defined(t.diffHeight))&&0<(null==(t=this._positions_draw)?void 0:t.length)&&(this[i(C)]=addPositionsHeight(this._positions_draw[0],e.length/2))}},{key:w(3639),value:function(){var e,t=w;null!=(e=this.editing)&&e[t(3463)]&&0<(null==(e=this._positions_draw)?void 0:e.length)&&(this._position_show=addPositionsHeight(this._positions_draw[0],this[t(2492)][t(2822)]/2)),_get(_getPrototypeOf(T[t(v)]),"_updatePositionsHook",this).call(this)}},{key:"_setPositionsToCallback",value:function(){var e,t=2492,i=2488,a=w,n=this;this._isCallbackPositions||(this._isCallbackPositions=!0,e=this._map.clock[a(352)],this.style.topRadius=getCesiumValue(this.entityGraphic.topRadius,Number,e),this.entityGraphic.topRadius=new Cesium__namespace.CallbackProperty(function(e){var t=a;return n.style[t(i)]},!1),this[a(p)][a(m)]=getCesiumValue(this[a(3135)].bottomRadius,Number,e),this.entityGraphic[a(m)]=new Cesium__namespace.CallbackProperty(function(e){return n[a(2492)].bottomRadius},!1),this[a(d)].length=getCesiumValue(this.entityGraphic.length,Number,e),this.entityGraphic.length=new Cesium__namespace.CallbackProperty(function(e){return n[a(t)].length},!1),this.position?(this[a(f)]=this.positions,this._positions_draw[0]=addPositionsHeight(this.position,-this[a(2492)].length/2)):this._positions_draw=[],this._position_show=this[a(y)],this.position=new Cesium__namespace.CallbackProperty(function(e){return n[a(4035)]},!1))}},{key:"_cancelPositionsCallback",value:function(){var e=w;this[e(h)]&&(this._isCallbackPositions=!1,this[e(3135)].length=this[e(2492)].length,this.entityGraphic.topRadius=this[e(2492)][e(2488)],this.entityGraphic.bottomRadius=this[e(2492)].bottomRadius,this._position=this._position_show,this[e(u)]=LngLatPoint.fromCartesian(this._position),this[e(_)]())}},{key:w(1496),value:function(){var e=w;this[e(3817)].on(EventType[e(c)],this[e(1856)],this),this._map.on(EventType.click,this._onClickHandler,this),this._map.on(EventType.dblClick,this._onDbClickHandler,this),null!=(e=this.options.hasDrawDelPoint)&&!e||this._map.on(EventType.rightClick,this._onRightClickHandler,this)}},{key:"_stopDrawHook",value:function(){var e,t=w;this[t(o)].off(EventType[t(1125)],this._onMouseMoveHandler,this),this._map.off(EventType[t(l)],this._onClickHandler,this),this._map[t(4030)](EventType.dblClick,this._onDbClickHandler,this),null!=(e=this.options.hasDrawDelPoint)&&!e||this._map.off(EventType.rightClick,this[t(2402)],this)}},{key:w(i),value:function(e){var t=w;this._position_show=addPositionsHeight(this._positions_draw[0],this.style.length/2),!e&&1<this._positions_draw.length&&(e=formatNum$1(Cesium__namespace.Cartesian3.distance(this[t(2383)][0],this._positions_draw[1]),2),this[t(r)].bottomRadius=e,this.style.length=2*e)}},{key:"_onRightClickHandler",value:function(e){var t=w;_get(_getPrototypeOf(T[t(a)]),"_onRightClickHandler",this)[t(1567)](this,e),this[t(n)][t(s)]=0,this.style.length=0}}]),T}(),ConeTrack=(register$4("cylinder",CylinderEntity,!0),function(){var e=2997,t=930,a=1937,n=2033,s=2492,r=1124,o=2385,l=3121,c=2822,h=3121,i=3879,u=3074,_=888,p=_0x1658de,m=(_inherits(d,CylinderEntity),_createSuper(d));function d(){var e,t=_0x236b,i=0<arguments[t(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,d),e=m[t(1567)](this,i),i[t(888)]&&(e[t(888)]=i[t(_)]),e}return _createClass(d,[{key:p(638),get:function(){return!1}},{key:p(e),get:function(){}},{key:"targetPosition",get:function(){return this._targetPosition},set:function(e){var t=p;this._targetPoint=LngLatPoint.parse(e),this[t(u)]=this._targetPoint.toCartesian()}},{key:"targetPoint",get:function(){return this._targetPoint}},{key:"angle",get:function(){var e=p;return this.style[e(i)]},set:function(e){this.style.angle=e}},{key:"_mountedHook",value:function(){_get(_getPrototypeOf(d.prototype),"_mountedHook",this).call(this),this._updateDistanceDisplayConditionByEdit()}},{key:p(t),value:function(){var t=1498,i=p,a=this,e=_get(_getPrototypeOf(d[i(o)]),"_getCreateEntityAttr",this)[i(1567)](this);return e.position=new Cesium__namespace[i(l)](function(e){return a._update(e),a._cylinderPosition},!1),e.orientation=new Cesium__namespace.CallbackProperty(function(e){return a[i(t)]},!1),e.cylinder[i(c)]=new Cesium__namespace.CallbackProperty(function(e){return a._cylinderLength},!1),Cesium__namespace.defined(e.cylinder.topRadius)||(e[i(933)].topRadius=0),Cesium__namespace.defined(this.style.angle)&&(e.cylinder[i(451)]=new Cesium__namespace[i(h)](function(e){return a._cylinderBottomRadius},!1)),this._isCallbackPositions=!0,e}},{key:"_update",value:function(e){var t=p,i=getPositionValue(this.position,e);i?(Cesium__namespace.defined(this.targetPosition)?(e=getPositionValue(this.targetPosition,e))&&(this[t(497)]=Cesium__namespace.Cartesian3[t(a)](i,e),this._cylinderPosition=Cesium__namespace.Cartesian3.midpoint(i,e,new Cesium__namespace.Cartesian3),this._orientation=Cesium__namespace.Transforms.headingPitchRollQuaternion(e,getHeadingPitchRollForLine(e,i))):(this[t(497)]=this.style[t(2822)],this._cylinderLength||(e=LngLatPoint[t(332)](i),this._cylinderLength=e[t(2993)]-getHeight(this[t(3817)].scene,e,{has3dtiles:!1})),e=new Cesium__namespace[t(3975)](Cesium__namespace.Math.toRadians(this.heading),Cesium__namespace[t(1124)][t(2581)](this[t(n)]),Cesium__namespace.Math.toRadians(this.roll)),this._orientation=Cesium__namespace.Transforms.headingPitchRollQuaternion(i,e),this._cylinderPosition=getPositionByHprAndLen(i,e,this._cylinderLength/2)),Cesium__namespace.defined(this[t(s)].angle)&&(this._cylinderBottomRadius=this._cylinderLength*Math.cos(Cesium__namespace[t(r)][t(2581)](90-this.angle)))):this._cylinderPosition=void 0}},{key:"_updatePositionsHook",value:function(){}}]),d}()),EditEllipsoid=(register$4(_0x1658de(524),ConeTrack),function(){var i=3277,a=2484,l=3170,c=3523,h=2492,u=2726,_=545,p=2532,m=683,d=2283,f=1997,y=761,v=_0x1658de,e=(_inherits(n,EditBase),_createSuper(n));function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:v(2756),value:function(){var e,n=784,s=1997,r=v,o=this,t=this[r(1980)][0],i=this.createDragger({position:t,onDragStart:function(e,t){for(var i=r,a=0,n=o[i(y)][i(2822)];a<n;a++)o[i(y)][a].show=!1},onDrag:function(e,t){o.positions[0]=t},onDragEnd:function(e,t){o[r(2484)]()}});i[r(l)]=0,this.draggers.push(i),null!=(e=this._graphic.options.hasEditRadii)&&!e||(i=this.createDragger({position:addPositionsHeight(t,this.style[r(c)]),type:PointType.MoveHeight,tooltip:this._map[r(349)]("_修改半径"),onDrag:function(e,t){var i=r,a=o.positions[0],a=o.formatNum(Cesium__namespace.Cartesian3.distance(a,t),2);o.style.radii_z=a,o._graphic.updateRadii(o.style),o[i(s)](EventType.editStyle)}}),this.draggers.push(i),t=(e=getEllipseOuterPositions({position:t,semiMajorAxis:Number(this.style.radii_x),semiMinorAxis:Number(this[r(h)].radii_y),rotation:Cesium__namespace[r(1124)].toRadians(Number(this.style.rotation||0))}))[0],t=this[r(u)]({position:t,type:PointType[r(3245)],tooltip:this._map[r(349)](r(_)),onDrag:function(e,t){var i=r,a=o.positions[0],e=(t=setPositionsHeight(t,Cesium__namespace[i(3428)].fromCartesian(a).height),e.position=t,o.formatNum(Cesium__namespace[i(n)].distance(a,t),2));o.style.radii_y=e,o._graphic.updateRadii(o.style),o[i(1997)](EventType.editStyle)}}),i.majorDragger=t,this.draggers.push(t),t=e[1],e=this.createDragger({position:t,type:PointType.EditAttr,tooltip:this._map.getLangText("_修改半径"),onDrag:function(e,t){var i=r,a=o.positions[0],e=(t=setPositionsHeight(t,Cesium__namespace[i(3428)].fromCartesian(a).height),e[i(p)]=t,o[i(1830)](Cesium__namespace.Cartesian3.distance(a,t),2));o[i(2492)][i(m)]=e,o[i(d)].updateRadii(o.style),o[i(f)](EventType[i(2393)])}}),i[r(2651)]=e,this.draggers[r(1018)](e))}},{key:"_updateStyleHook",value:function(e){var t=v;_get(_getPrototypeOf(n.prototype),"_updateStyleHook",this)[t(1567)](this,e),(Cesium__namespace[t(3277)](e.radii_x)||Cesium__namespace[t(i)](e.radii_y)||Cesium__namespace.defined(e.radii_z))&&this[t(a)]()}}]),n}()),EllipsoidEntity=function(){var e=2611,t=2795,i=2244,m=2745,d=2492,f=2581,y=2581,v=2033,g=2574,C=893,x=2532,b=503,k=1899,P=977,a=2822,n=784,s=2383,r=2383,o=3817,l=2791,c=1875,h=1592,u=1111,_=1899,p=2383,w=3135,S=3584,T=2432,M=3639,E=2432,A=2532,L=3277,D=330,I=513,H=2532,F=2981,N=1922,G=1592,z=513,O=_0x1658de,B=(_inherits(R,BasePointEntity),_createSuper(R));function R(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(e=B.call(this,e))._minPointNum=2,e._maxPointNum=3,e}return _createClass(R,[{key:"entityGraphic",get:function(){var e;return null==(e=this._entity)?void 0:e.ellipsoid}},{key:"EditClass",get:function(){return EditEllipsoid}},{key:"czmObjectEx",get:function(){var e=_0x236b,t=[];return this._primitive_label&&t.push(this._primitive_label),t=this[e(z)]?t.concat(this._entity_scanPlane):t}},{key:"_mountedHook",value:function(){var e=_0x236b,t=this,i={position:this[e(H)],orientation:this.getOrientation(),ellipsoid:EllipsoidStyleConver.toCesiumVal(this.style,{},!0)},i=(this[e(F)]=this[e(N)](i),this.style.label&&this._addLabel(),this[e(G)].scanPlane);i&&(Array[e(2255)](i)?i.forEach(function(e){t.addScanPlane(e)}):this.addScanPlane(i))}},{key:"_style2Json",value:function(e,t){var i,a=_0x236b;return t=EllipsoidStyleConver[a(3458)](e,t,!0),this[a(I)]&&0<this._entity_scanPlane[a(2822)]&&(i=[],this[a(I)][a(2432)](function(e){i.push(e._planeOptions)}),t.scanPlane=i),t}},{key:"_updateStyleHook",value:function(e,t){var i=_0x236b;EllipsoidStyleConver.toCesiumVal(e,this.entityGraphic,!0),(Cesium__namespace.defined(t[i(977)])||Cesium__namespace.defined(t.pitch)||Cesium__namespace[i(3277)](t.roll))&&(this[i(2981)].orientation=this.getOrientation()),(Cesium__namespace.defined(t.radii_x)||Cesium__namespace[i(L)](t[i(D)])||Cesium__namespace.defined(t.radii_z))&&this.updateRadii(e)}},{key:"_updatePositionsHook",value:function(){var t=_0x236b,i=this;_get(_getPrototypeOf(R.prototype),t(M),this).call(this),this._entity_scanPlane&&this._entity_scanPlane[t(E)](function(e){e[t(A)]=i.position})}},{key:"_setOptionsHook",value:function(e,t){var i=_0x236b,a=this,t=t[i(2811)];t&&(this.removeAllScanPlan(),Array.isArray(t)?t[i(T)](function(e){a[i(2611)](e)}):this.addScanPlane(t))}},{key:"_updateExOpacity",value:function(i){var e,a=_0x236b,n=this;0<(null==(e=this._entity_scanPlane)?void 0:e.length)&&this._entity_scanPlane[a(2432)](function(e){var t=a;n[t(2975)](e.ellipsoid,i)||(e._planeOptions.style.globalAlpha=i,EllipsoidStyleConver[t(1672)](e._planeOptions.style,e[t(3113)],!0))})}},{key:"updateRadii",value:function(e){var t=_0x236b,e=new Cesium__namespace.Cartesian3(e.radii_x,e.radii_y,e.radii_z);this[t(w)].radii?this.entityGraphic[t(S)].setValue(e):this[t(3135)][t(S)]=e}},{key:"_setPositionsToCallback",value:function(){var e,t,i=_0x236b,a=this;this[i(1874)]||(this._isCallbackPositions=!0,(e=getCesiumValue(this.entityGraphic.radii,Cesium__namespace.Cartesian3,this._map[i(_)].currentTime))&&(this[i(2492)].radii_x=null!=(t=this.style.radii_x)?t:e.x,this.style.radii_y=null!=(t=this.style.radii_y)?t:e.y,this.style.radii_z=null!=(t=this[i(2492)][i(3523)])?t:e.z),this._positions_draw=this.positions||[],this.position=new Cesium__namespace.CallbackProperty(function(e){var t=i;return a._positions_draw.length<1?null:a[t(p)][0]},!1))}},{key:"_cancelPositionsCallback",value:function(){var e=_0x236b;this[e(1874)]&&(this._isCallbackPositions=!1,this[e(u)]=this[e(2383)][0],this._point=LngLatPoint.fromCartesian(this._position),this._updatePositionsHook())}},{key:O(1496),value:function(){var e=O;this._map.on(EventType.mouseMove,this._onMouseMoveHandler,this),this._map.on(EventType.click,this._onClickHandler,this),this._map.on(EventType[e(c)],this._onDbClickHandler,this),null!=(e=this[e(h)].hasDrawDelPoint)&&!e||this._map.on(EventType.rightClick,this._onRightClickHandler,this)}},{key:"_stopDrawHook",value:function(){var e,t=O;this[t(o)].off(EventType[t(1125)],this[t(1856)],this),this._map.off(EventType[t(1802)],this._onClickHandler,this),this._map.off(EventType.dblClick,this[t(1607)],this),null!=(e=this.options[t(l)])&&!e||this._map.off(EventType.rightClick,this[t(2402)],this)}},{key:"updateAttrForDrawing",value:function(e){var t=O;this._positions_draw.length<2||e||(e=formatNum$1(Cesium__namespace[t(n)].distance(this[t(s)][0],this[t(r)][1]),2),this[t(2492)].radii_x=e,this.style.radii_z=e,t=3===this._positions_draw.length?formatNum$1(Cesium__namespace.Cartesian3.distance(this._positions_draw[0],this[t(2383)][2]),2):e,this.style.radii_y=t,this.updateRadii(this.style))}},{key:"_onRightClickHandler",value:function(e){var t=O;_get(_getPrototypeOf(R.prototype),"_onRightClickHandler",this).call(this,e),this.style.radii_y=0,1===this._positions_draw[t(a)]&&(this[t(2492)].radii_x=0,this.style.radii_z=0),this.updateRadii(this.style)}},{key:O(e),value:function(){var i=530,a=2574,n=3912,s=O,r=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=(this._entity_scanPlane=this._entity_scanPlane||[],e.style=e.style||{},{radii:this[s(3135)].radii,innerRadii:1e-5,minimumClockDegree:-1e-5,maximumClockDegree:1e-5,minimumConeDegree:this.style.minimumConeDegree||0,maximumConeDegree:this.style.maximumConeDegree||90,outline:!1});this.style.color?(t[s(m)]=this.style.color,this.style.opacity&&(t.opacity=this[s(d)].opacity)):this.style.outlineColor&&(t[s(m)]=this.style.outlineColor,this.style.outlineOpacity)&&(t.opacity=this[s(2492)][s(1022)]);var o=Cesium__namespace.Math[s(f)](e.step||.5),l=new Cesium__namespace.HeadingPitchRoll(Cesium__namespace[s(1124)][s(y)](e.style.heading||this.heading),Cesium__namespace.Math.toRadians(e[s(2492)][s(2033)]||this[s(v)]),Cesium__namespace.Math[s(f)](e.style.roll||this.roll)),c=Cesium__namespace.Transforms.headingPitchRollQuaternion(this.positionShow,l);switch(e.type){case"pitch":var h=Cesium__namespace.Math.PI,u=new Cesium__namespace.CallbackProperty(function(e){var t=s;return r[t(3817)].clock.shouldAnimate&&(l.pitch+=o,l.pitch>=h&&(l[t(2033)]=0),c=Cesium__namespace[t(2510)][t(3092)](r[t(n)],l)),c},!1);break;case s(g):var _=-Cesium__namespace[s(1124)].PI_OVER_TWO,p=Cesium__namespace.Math.PI_OVER_TWO;u=new Cesium__namespace[s(3121)](function(e){var t=s;return r._map.clock[t(i)]&&(l.roll+=o,l[t(a)]>=p&&(l.roll=_),c=Cesium__namespace.Transforms.headingPitchRollQuaternion(r.positionShow,l)),c},!1);break;default:u=new Cesium__namespace.CallbackProperty(function(e){var t=s;return r._map[t(k)].shouldAnimate&&(l[t(P)]=(l.heading+o)%Cesium__namespace.Math[t(3004)],c=Cesium__namespace.Transforms.headingPitchRollQuaternion(r.positionShow,l)),c},!1)}t={id:s(C)+createGuid(),position:this[s(x)],orientation:u,ellipsoid:EllipsoidStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},t),e.style),{},!0)},t=this._createEntity(t);return this.dataSource&&this.isAdded&&this.dataSource.entities.add(t),this[s(3917)](t),t[s(b)]=e,this[s(513)].push(t),t}},{key:O(t),value:function(e){var t=O;this.dataSource&&this.isAdded&&this[t(i)].entities[t(4071)](e),removeArrayItem(this._entity_scanPlane,e)}},{key:"removeAllScanPlan",value:function(){var t=O,i=this;this.dataSource&&this[t(2514)]&&this._entity_scanPlane.forEach(function(e){i[t(2244)].entities.remove(e)}),this._entity_scanPlane=[]}}]),R}(),PolylineEntity=(register$4("ellipsoid",EllipsoidEntity,!0),function(){var e=3135,t=1748,i=2292,a=998,n=3135,s=3135,r=2847,o=1187,l=1957,c=3277,h=3019,u=_0x1658de,_=(_inherits(p,BasePolyEntity),_createSuper(p));function p(){var e=_0x236b;return _classCallCheck(this,p),_[e(2026)](this,arguments)}return _createClass(p,[{key:u(e),get:function(){var e;return null==(e=this._entity)?void 0:e.polyline}},{key:"_mountedHook",value:function(){var e=u,t={polyline:PolylineStyleConver.toCesiumVal(this.style,{},!0)};t.polyline[e(1980)]=this.getShowPositon(this.positions),this._entity=this._createEntity(t),this.style.label&&this._addLabel()}},{key:"getShowPositon",value:function(e){var t=u;return this.style.closure&&0<(null==e?void 0:e[t(2822)])?e.concat(e[0]):e}},{key:u(t),value:function(e,t){return PolylineStyleConver.toJSON(e,t,!0)}},{key:"_updateStyleHook",value:function(e,t){var i=u;PolylineStyleConver.toCesiumVal(e,this.entityGraphic,!0),Cesium__namespace[i(c)](null==t?void 0:t.closure)&&(this._isCallbackPositions||(this.entityGraphic.positions=this.getShowPositon(this[i(h)])),this.updateAttrForDrawing())}},{key:"_updatePositionsHook",value:function(){var e=u;this.entityGraphic.positions=this.getShowPositon(this._positions),this[e(o)](),this[e(l)]()}},{key:"_positions_CallbackProperty",value:function(){return this.getShowPositon(this._positions_draw)}},{key:u(1257),value:function(e){var t=u;Cesium__namespace.defined(this[t(s)].depthFailMaterial)&&(this.entityGraphic.positions=this[t(r)]())}},{key:"_stopDrawHook",value:function(){var e=u;_get(_getPrototypeOf(p.prototype),e(802),this).call(this),Cesium__namespace.defined(this[e(n)].depthFailMaterial)&&(this.positions=this._positions_draw)}},{key:u(i),value:function(){var e,t=u;this._isCallbackPositions&&this.style.clampToGround?(e=(e=this.center)?Cesium__namespace.Cartesian3.distance(e,new Cesium__namespace.Cartesian3):(Cesium__namespace.Ellipsoid.WGS84[t(2644)]+Cesium__namespace.Ellipsoid[t(a)].maximumRadius)/2,this.updateDistanceDisplayCondition(e)):this.updateDistanceDisplayCondition()}}]),p}()),CurveEntity=(register$4("polyline",PolylineEntity),function(){var e=2847,t=1257,i=2440,a=2058,n=_0x1658de,s=(_inherits(r,PolylineEntity),_createSuper(r));function r(){return _classCallCheck(this,r),s.apply(this,arguments)}return _createClass(r,[{key:"getShowPositon",value:function(e){return e instanceof Cesium__namespace.CallbackProperty?(this._positions_curve=this.getShowPositon(this._positions_draw),e):getBezierCurve(e,this.style.closure)}},{key:n(e),value:function(){return this._positions_curve}},{key:n(t),value:function(e){var t=n;this[t(i)]=this[t(a)](this._positions_draw)}}]),r}());function _0x236b(e,t){var i=_0xa195();return(_0x236b=function(e,t){return i[e-=321]})(e,t)}register$4("curve",CurveEntity);var EditPolylineVolume=function(){_inherits(t,EditPoly);var e=_createSuper(t);function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t)}(),PolylineVolumeEntity=function(){var t=1980,i=3458,a=2501,n=1660,s=_0x1658de,e=(_inherits(r,BasePolyEntity),_createSuper(r));function r(){return _classCallCheck(this,r),e.apply(this,arguments)}return _createClass(r,[{key:s(3135),get:function(){var e;return null==(e=this._entity)?void 0:e.polylineVolume}},{key:"EditClass",get:function(){return EditPolylineVolume}},{key:"_mountedHook",value:function(){var e=s,t={polylineVolume:PolylineVolumeStyleConver.toCesiumVal(this.style,{},!0)};t[e(a)].positions=this.positions,this[e(2981)]=this._createEntity(t),this.style.label&&this[e(n)]()}},{key:"_style2Json",value:function(e,t){return PolylineVolumeStyleConver[s(i)](e,t,!0)}},{key:"_updateStyleHook",value:function(e,t){var i=s;PolylineVolumeStyleConver.toCesiumVal(e,this[i(3135)],!0)}},{key:"_updatePositionsHook",value:function(){var e=s;this.entityGraphic.positions=this[e(t)],this._updateLabelPosition(),this._updateEditDraggers()}}]),r}(),PathEntity=(register$4("polylineVolume",PolylineVolumeEntity),function(){var e=3790,t=2251,i=2574,a=3692,n=3178,s=3764,r=803,o=1049,l=1124,c=3258,h=1018,u=1307,_=2532,p=984,m=2970,d=3096,f=3644,y=883,v=2981,g=1990,C=1592,x=1990,b=2981,k=921,P=1672,w=2981,S=883,T=2981,M=2981,E=921,A=2970,L=1592,H=883,F=620,N=1592,G=690,z=1592,B=1765,D=1090,j=352,V=984,$=984,U=2981,W=777,J=777,q=1124,Y=977,Z=2033,X=3975,Q=3817,K=2532,ee=1592,te=635,ie=783,ae=2294,ne=1443,se=1625,re=3045,oe=1592,le=1672,ce=1592,I=1592,he=2970,ue=1168,_e=3277,pe=3277,me=2981,de=1592,fe=2532,ye=783,ve=3846,ge=2574,Ce=2371,O=_0x1658de,xe=(_inherits(R,BasePointEntity),_createSuper(R));function R(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),delete(t=xe.call(this,t)).startEditing,t[e(3077)]=!1,t}return _createClass(R,[{key:"entityGraphic",get:function(){var e;return null==(e=this._entity)?void 0:e.path}},{key:O(e),get:function(){var e=O;return Cesium__namespace.Property.getValueOrUndefined(this[e(Ce)],this._map.clock.currentTime,new Cesium__namespace.Quaternion)}},{key:O(t),get:function(){return getHeadingPitchRollByOrientation(this.positionShow,this.orientationShow)}},{key:"pitch",get:function(){var e;return null!=(e=this.style.pitch)?e:0},set:function(e){this.style.pitch=e,this.updateOrientation()}},{key:O(i),get:function(){var e;return null!=(e=this.style.roll)?e:0},set:function(e){var t=O;this.style[t(ge)]=e,this.updateOrientation()}},{key:"positions",get:function(){return this._positions},set:function(e){var n,s=O;e&&(n=new Cesium__namespace[s(2379)],e[s(2432)](function(e,t){var i=s,a=Cesium__namespace.JulianDate.fromDate(new Date(e[3]));n[i(2257)](a,Cesium__namespace.Cartesian3.fromDegrees(e[0],e[1],e[2]))}),this.position=n)}},{key:"coordinates",get:function(){return this.getCoordinates()}},{key:"_updatePositionsHook",value:function(){var e,t,i,a=O;_get(_getPrototypeOf(R.prototype),"_updatePositionsHook",this).call(this),!this.position||this.position instanceof Cesium__namespace.Cartesian3?(this._entity.orientation=void 0,this[a(2981)].availability=void 0):(this.options._auto_orientation&&(this[a(me)].orientation=new Cesium__namespace.VelocityOrientationProperty(this.position)),this[a(de)]._auto_availability&&0<(null==(i=this[a(fe)])||null==(i=i[a(ye)])||null==(i=i[a(ve)])?void 0:i[a(2822)])&&(t=(i=this.position._property._times)[0],i=i[i.length-1],(null==(e=this.position)?void 0:e.forwardExtrapolationType)===Cesium__namespace.ExtrapolationType.HOLD&&(i=Cesium__namespace.JulianDate.fromDate(new Date(2100,1,1))),this._entity.availability=new Cesium__namespace.TimeIntervalCollection([new Cesium__namespace[a(2426)]({start:t,stop:i})])))}},{key:O(1744),value:function(){var e,t,i,a=1982,n=O,s=this,r=(this.position&&!this.options[n(2371)]&&(this.options.orientation=new Cesium__namespace[n(1617)](this[n(K)]),this._auto_orientation=!0),{position:this.position,orientation:this.options.orientation,path:PathStyleConver.toCesiumVal(this.style||this[n(ee)].path,{},!0)});this.options[n(te)]||(0<(null==(i=this.position)||null==(i=i[n(ie)])||null==(i=i._times)?void 0:i.length)?(t=(i=this.position._property[n(3846)])[0],i=i[i.length-1],(null==(e=this.position)?void 0:e[n(ae)])===Cesium__namespace.ExtrapolationType.HOLD&&(i=Cesium__namespace.JulianDate.fromDate(new Date(2100,1,1))),r.availability=new Cesium__namespace[n(ne)]([new Cesium__namespace.TimeInterval({start:t,stop:i})]),this._auto_availability=!0):(e=this._map[n(1899)][n(352)],t=Cesium__namespace.JulianDate[n(se)](e,1,new Cesium__namespace[n(984)]),(null==(i=this.position)?void 0:i.forwardExtrapolationType)===Cesium__namespace.ExtrapolationType.HOLD&&(t=Cesium__namespace.JulianDate.addDays(t,365,new Cesium__namespace.JulianDate)),r.availability=new Cesium__namespace[n(1443)]([new Cesium__namespace.TimeInterval({start:e,stop:t})]))),this[n(1592)].label&&(this.options.label.text=this.options.label[n(re)]||this.name,r.label=LabelStyleConver.toCesiumVal(this[n(oe)][n(3686)])),this[n(1592)][n(883)]&&(r[n(883)]=BillboardStyleConver.toCesiumVal(this.options.billboard)),this.options.point&&(r.point=PointStyleConver[n(le)](this.options.point)),this.options.circle&&(r[n(921)]=CircleStyleConver[n(1672)](this[n(ce)].circle,{},!0)),this[n(I)][n(2970)]&&(r.model=ModelStyleConver.toCesiumVal(this[n(I)][n(he)],{},!0),!(i=this.options.model)[n(ue)]&&Cesium__namespace[n(_e)](i.heading)&&Cesium__namespace[n(pe)](i[n(2033)])&&Cesium__namespace[n(3277)](i.roll)||(r.orientation=new Cesium__namespace.CallbackProperty(function(e){return s[n(a)](s.position,s.options.orientation)},!1))),this._entity=this._createEntity(r)}},{key:"_getCustomQuaternion",value:function(e,t){var i=O,a=(e.getValue&&(e=e[i(W)](null==(a=this[i(3817)])||null==(a=a.clock)?void 0:a.currentTime)),t[i(J)]&&(t=t[i(777)](null==(a=this._map)||null==(a=a.clock)?void 0:a[i(352)])),this.options.model),n=Cesium__namespace.Math.toRadians(a.heading||0),s=Cesium__namespace[i(q)].toRadians(a.pitch||0),r=Cesium__namespace.Math.toRadians(a.roll||0);return t&&(t=getHeadingPitchRollByOrientation(e,t),a[i(1168)]?(n+=t.heading,r+=t.roll,s+=t[i(2033)]):(Cesium__namespace.defined(a.heading)||(n=t[i(Y)]),Cesium__namespace[i(3277)](a.roll)||(r=t.roll),Cesium__namespace.defined(a[i(Z)])||(s=t.pitch))),Cesium__namespace.Transforms.headingPitchRollQuaternion(e,new Cesium__namespace[i(X)](n,s,r),null==(a=this[i(Q)])||null==(t=a.scene)?void 0:t.globe[i(3113)])}},{key:O(1950),value:function(){var e,t,i,a,n=O;this[n(z)]&&(this._maxCacheCount=null!=(e=this.options[n(B)])?e:50,this.position||((e=new Cesium__namespace[n(2379)](this.options.referenceFrame))[n(2294)]=null!=(i=this.options[n(2294)])?i:Cesium__namespace[n(1772)].HOLD,e[n(D)]=null!=(i=this[n(1592)][n(D)])?i:Cesium__namespace.ExtrapolationType.HOLD,!this[n(1592)].orientation&&(this.options.orientation=new Cesium__namespace.VelocityOrientationProperty(e),this._entity)&&(this._entity.orientation=this.getOrientation()),this._entity&&!this._entity.availability&&this._map&&(i=this._map[n(1899)][n(j)],a=Cesium__namespace.JulianDate.addDays(i,1,new Cesium__namespace[n(V)]),(null==(t=this.position)?void 0:t.forwardExtrapolationType)===Cesium__namespace[n(1772)].HOLD&&(a=Cesium__namespace[n($)].addDays(a,365,new Cesium__namespace.JulianDate)),this[n(U)].availability=new Cesium__namespace.TimeIntervalCollection([new Cesium__namespace.TimeInterval({start:i,stop:a})])),this.position=e),this.property=this.position)}},{key:O(a),value:function(e,t){var i=O;PathStyleConver.toCesiumVal(e,this[i(3135)],{},!0)}},{key:"_style2Json",value:function(e,t){return PathStyleConver.toJSON(e,t,!0)}},{key:"_getGeoJsonGeometry",value:function(e){var t=O;return{type:t(G),coordinates:this.getCoordinates(null==e?void 0:e[t(2297)])}}},{key:"_getJsonPositions",value:function(e){e.positions=this.getCoordinates()}},{key:O(n),value:function(e){var t=O;this[t(1592)][t(3686)]&&(e.label={},LabelStyleConver.toJSON(this.options.label,e.label,!0)),this.options.model&&(e[t(A)]={},ModelStyleConver[t(3458)](this[t(L)].model,e.model,!0)),this[t(1592)][t(H)]&&(e[t(883)]={},BillboardStyleConver.toJSON(this.options.billboard,e.billboard,!0)),this.options.point&&(e[t(F)]={},PointStyleConver.toJSON(this[t(N)][t(620)],e[t(620)],!0)),this[t(1592)].circle&&(e.circle={},CircleStyleConver.toJSON(this[t(1592)].circle,e.circle,!0))}},{key:"_setOptionsHook",value:function(e,t){var i=O;t.label&&LabelStyleConver.toCesiumVal(e.label,this._entity.label,this),t.model&&ModelStyleConver[i(P)](e.model,this[i(w)].model,!0),t.billboard&&BillboardStyleConver[i(1672)](e[i(S)],this[i(T)].billboard,!0),t.point&&PointStyleConver.toCesiumVal(e.point,this[i(2981)].point,!0),t.circle&&CircleStyleConver[i(1672)](e.circle,this[i(M)][i(E)],!0)}},{key:O(3752),value:function(e){var t=O;this._entity[t(m)]&&(this._entity.model.color=Cesium__namespace[t(d)][t(f)].withAlpha(e)),this._entity[t(y)]&&(this[t(v)][t(883)].color=Cesium__namespace.Color[t(3644)].withAlpha(e)),this._entity.point&&!this._updateEntityOpacity(this._entity.point,e)&&PointStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this.options[t(620)]),{},{globalAlpha:e}),this._entity[t(620)],!0),this._entity.circle&&!this[t(2975)](this._entity[t(g)],e)&&CircleStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this[t(C)][t(x)]),{},{globalAlpha:e}),this[t(b)][t(k)],!0)}},{key:"getIndex",value:function(e){var t=O,i=null==(i=this[t(_)])||null==(i=i._property)?void 0:i._times,a=i[t(2822)];return 0===a?0:(e=e||(null==(e=this._map)||null==(e=e.clock)?void 0:e.currentTime)||Cesium__namespace[t(p)].now(),a<=(t=(t=(t=Cesium__namespace.binarySearch(i,e,Cesium__namespace.JulianDate.compare))<0?~t:t)<0?0:t)?a-1:t)}},{key:"getRectangle",value:function(e){var t,i=O,a=null==(a=this.position)||null==(a=a._property)?void 0:a._times,n=null==(t=this.position)||null==(t=t._property)?void 0:t._values;if(a&&0!==a[i(2822)]){for(var s=[],r=0,o=a.length;r<o;r++)s.push(new Cesium__namespace.Cartesian3(n[3*r],n[3*r+1],n[3*r+2]));return getRectangle(s,null==e?void 0:e[i(u)])}}},{key:O(s),value:function(e){var t,i=O,a=null==(t=this.position)||null==(t=t._property)?void 0:t[i(3846)],n=null==(t=this.position)||null==(t=t[i(783)])?void 0:t._values;if(!a||0===a[i(2822)])return[];for(var s=[],r=0,o=a.length;r<o;r++){var l=LngLatPoint[i(c)](new Cesium__namespace.Cartesian3(n[3*r],n[3*r+1],n[3*r+2])).toArray(e);l[i(h)](Cesium__namespace.JulianDate.toDate(a[r])[i(3756)]()),s.push(l)}return s}},{key:O(r),value:function(){var e,t,i=O,a=0<arguments[i(2822)]&&void 0!==arguments[0]?arguments[0]:{};return this._map?(e=this[i(3912)])?(Cesium__namespace.defined(a[i(977)])&&(t=a.heading+Cesium__namespace[i(l)].toDegrees((null==(t=this.hpr)?void 0:t[i(977)])||0)),this[i(3817)].flyToPoint(e,_objectSpread2(_objectSpread2({},a),{},{heading:t}))):Promise.resolve(!1):Promise[i(o)](!1)}}]),R}()),EditCorridor=(register$4(_0x1658de(2434),PathEntity,!0),function(){var l=3159,c=1830,h=761,u=2532,i=1830,t=2026,_=_0x1658de,a=(_inherits(n,EditPoly),_createSuper(n));function n(){var e=_0x236b;return _classCallCheck(this,n),a[e(t)](this,arguments)}return _createClass(n,[{key:_(367),value:function(e){var t=_;return e=void 0!==this.entityGraphic.height?setPositionsHeight(e,getCesiumValue(this.entityGraphic.height,Number,this[t(3817)].clock.currentTime)):e}},{key:"createDragger",value:function(e){var t=_;return this.clampToGround&&(e.position=getSurfacePosition(this._map.scene,e.position)),_get(_getPrototypeOf(n.prototype),"createDragger",this)[t(1567)](this,e)}},{key:_(2770),value:function(e){var t=_,e=Cesium__namespace.Cartographic.fromCartesian(e).height;this.entityGraphic[t(3159)]=e,this.style.height=this[t(i)](e,2)}},{key:"_updateHeight",value:function(e){for(var t=_,i=(this[t(3135)][t(l)]=e,this.style.height=this[t(c)](e,2),this.positions),a=0,n=i.length;a<n;a++)i[a]=setPositionsHeight(i[a],e);for(var s=0,r=this[t(h)].length;s<r;s++){var o=this[t(761)][s];o[t(2532)]=setPositionsHeight(o[t(u)],e)}this.fire(EventType.editStyle)}}]),n}()),CorridorEntity=function(){var i=2492,a=1614,n=3135,s=2492,r=872,o=3135,l=4038,c=2822,h=2492,u=3019,_=872,p=3135,m=1980,d=3686,t=(_inherits(f,BasePolyEntity),_createSuper(f));function f(){var e=_0x236b;return _classCallCheck(this,f),t[e(2026)](this,arguments)}return _createClass(f,[{key:"entityGraphic",get:function(){var e;return null==(e=this._entity)?void 0:e.corridor}},{key:"EditClass",get:function(){return EditCorridor}},{key:"_mountedHook",value:function(){var e=_0x236b,t={corridor:CorridorStyleConver.toCesiumVal(this[e(2492)],{},!0)};t.corridor.positions=this[e(m)],this._entity=this._createEntity(t),this[e(2492)][e(d)]&&this._addLabel()}},{key:"_style2Json",value:function(e,t){return CorridorStyleConver.toJSON(e,t,!0)}},{key:"_updateStyleHook",value:function(e,t){var i=_0x236b;CorridorStyleConver.toCesiumVal(e,this.entityGraphic,!0),t&&(Cesium__namespace.defined(t.diffHeight)||Cesium__namespace.defined(t[i(3159)]))&&this._updateHeight()}},{key:"_updatePositionsHook",value:function(){var e=_0x236b;this.entityGraphic[e(1980)]=this.positions,this._updateLabelPosition(),this._updateEditDraggers()}},{key:"_updateHeight",value:function(){var e,t=_0x236b,i=!(0<arguments[t(c)]&&void 0!==arguments[0])||arguments[0];this[t(h)].clampToGround||(e=0,e=i&&Cesium__namespace.defined(this.style.height)?this.style.height:getMaxHeight(this._positions_draw||this[t(u)]),this[t(3135)].height=e,this.style.height=e,Cesium__namespace.defined(this[t(2492)].diffHeight)&&(Cesium__namespace.defined(this.style.diffHeight)&&0!==this.style[t(_)]?this.entityGraphic.extrudedHeight=e+this.style.diffHeight:this[t(p)].extrudedHeight=void 0))}},{key:"updateAttrForDrawing",value:function(e){var t=_0x236b;e?this._updateHeight():this[t(i)][t(a)]||0!==(e=getMaxHeight(this._positions_draw))&&(this[t(n)].height=e,this.style[t(3159)]=e,Cesium__namespace.defined(this.style[t(872)]))&&(Cesium__namespace.defined(this[t(s)].diffHeight)&&0!==this[t(2492)][t(r)]?this[t(o)][t(l)]=e+Number(this.style.diffHeight):this.entityGraphic[t(4038)]=void 0)}}]),f}(),EditWall=(register$4(_0x1658de(1215),CorridorEntity),function(){var u=872,_=636,p=2492,m=761,d=3102,f=3394,y=761,v=2484,g=3064,C=3064,x=2822,b=3170,k=_0x1658de,t=(_inherits(i,EditPoly),_createSuper(i));function i(){var e=_0x236b;return _classCallCheck(this,i),t[e(2026)](this,arguments)}return _createClass(i,[{key:k(2756),value:function(){for(var a=4087,n=3170,s=k,r=this,o=this.positions,l=this[s(p)],c=this.hasMidPoint,e=0,t=o.length;e<t;e++){var i=o[e],h=this[s(2726)]({position:i,onDrag:function(e,t){var i=s,t=(o[e.index]=t,r[i(g)]&&0<r[i(3064)][i(2822)]&&(r[i(C)][e.index][i(2532)]=addPositionsHeight(t,l.diffHeight)),c&&(0<e.index&&(r.draggers[2*e.index-1].position=getMidpoint(t,o[e[i(3170)]-1],new Cesium__namespace.Cartesian3)),e.index<o[i(x)]-1)&&(r[i(761)][2*e.index+1].position=getMidpoint(t,o[e[i(b)]+1])),centerOfMass(o));r._draggerMove.position=t}});h.index=e,this[s(m)].push(h),this[s(3392)]&&(this[s(d)]||!this[s(3102)]&&e<t-1)&&(i=getMidpoint(i,o[h=(e+1)%t]),(i=this.createDragger({position:i,type:PointType.AddMidPoint,tooltip:this._map[s(349)](s(f)),onDragStart:function(e,t){var i=s;r[i(1980)][i(a)](e[i(n)],0,t),r.updateAttrForEditing()},onDrag:function(e,t){r.positions[e.index]=t},onDragEnd:function(e,t){var i=s;r._fireAddPoint(e,t),r[i(v)]()}})).index=h,this[s(y)][s(1018)](i))}this._bindMoveAllDragger(),this[s(4014)]()}},{key:"_bindHeightDraggers",value:function(){var n=3064,s=2532,r=2492,o=461,l=k,c=this;if(this[l(2283)]._hasHeightEdit){this._heightDraggers=[];for(var h=this.positions,e=Number(this.style[l(u)]),t=0,i=h.length;t<i;t++){var a=addPositionsHeight(h[t],e),a=this.createDragger({position:a,type:PointType.MoveHeight,tooltip:this[l(3817)][l(349)](l(_)),onDrag:function(e,t){var i=l,t=Cesium__namespace.Cartographic.fromCartesian(t).height;c[i(2492)].diffHeight=formatNum$1(t-c._graphic._minimumHeights[e.index],2);for(var a=0;a<h.length;a++)a!==e.index&&(c[i(n)][a][i(s)]=addPositionsHeight(h[a],c[i(r)].diffHeight));c[i(o)](),c.fire(EventType.editStyle)}});a.index=t,this.draggers.push(a),this[l(3064)].push(a)}}}}]),i}()),WallEntity=function(){var e=1744,t=1748,i=2526,a=1567,n=2527,l=2822,c=2492,h=1074,u=2008,s=2822,r=1980,o=2903,_=2981,p=872,m=1980,d=2527,f=2981,y=_0x1658de,v=(_inherits(g,BasePolyEntity),_createSuper(g));function g(){return _classCallCheck(this,g),v.apply(this,arguments)}return _createClass(g,[{key:"entityGraphic",get:function(){var e;return null==(e=this._entity)?void 0:e.wall}},{key:"EditClass",get:function(){return EditWall}},{key:y(e),value:function(){var e,t=y,i=(this[t(2492)][t(p)]=this[t(2492)][t(p)]||100,{wall:WallStyleConver.toCesiumVal(this[t(2492)],{},!0)});this[t(2492)][t(2903)]&&0<(null==(e=this.positions)?void 0:e.length)?i.wall.positions=this.positions.concat(this[t(1980)][0]):i.wall.positions=this[t(m)],this.style[t(d)]&&this.style.minimumHeights||this._updateMaxMinHeights(i),this[t(f)]=this[t(1922)](i),this.style.label&&this[t(1660)]()}},{key:y(t),value:function(e,t){return WallStyleConver.toJSON(e,t,!0)}},{key:"_updateStyleHook",value:function(e,t){var i=y;WallStyleConver.toCesiumVal(e,this.entityGraphic,!0),Cesium__namespace.defined(t[i(o)])&&this._updatePositionsHook(),Cesium__namespace[i(3277)](null==t?void 0:t.diffHeight)&&this._updateMaxMinHeights(this[i(_)])}},{key:"_updatePositionsHook",value:function(){var e,t=y;this[t(2492)].closure&&0<(null==(e=this.positions)?void 0:e[t(s)])?this.entityGraphic.positions=this.positions.concat(this.positions[0]):this.entityGraphic.positions=this[t(r)],this.style.maximumHeights&&this.style.minimumHeights||this._updateMaxMinHeights(this._entity),this._updateLabelPosition(),this._updateEditDraggers()}},{key:y(2787),value:function(e){var t=y,i=this.points;if(i&&0!==i[t(l)]){for(var a=i.length,n=new Array(a),s=new Array(a),r=0;r<a;r++){var o=i[r].alt;n[r]=o,this[t(c)].fixedTop?s[r]=i[0].alt+this[t(c)].diffHeight:s[r]=o+this.style[t(872)]}this[t(c)].closure&&0<a&&(n.push(n[0]),s.push(s[0])),this[t(h)]=n,this._maximumHeights=s,!e||(e[t(u)].minimumHeights instanceof Cesium__namespace.CallbackProperty||(e[t(u)].minimumHeights=n),e.wall.maximumHeights instanceof Cesium__namespace.CallbackProperty)||(e.wall[t(2527)]=s)}}},{key:"_setPositionsToCallback",value:function(){var e=y,t=this;this._isCallbackPositions||(_get(_getPrototypeOf(g.prototype),"_setPositionsToCallback",this)[e(1567)](this),this.entityGraphic.minimumHeights=new Cesium__namespace.CallbackProperty(function(e){return t._minimumHeights},!1),this.entityGraphic[e(n)]=new Cesium__namespace.CallbackProperty(function(e){return t._maximumHeights},!1))}},{key:"_positions_CallbackProperty",value:function(){var e,t=y;return this.style.closure&&0<(null==(e=this._positions_draw)?void 0:e.length)?this._positions_draw.concat(this[t(2383)][0]):this[t(2383)]}},{key:y(2526),value:function(){var e=y;this[e(1874)]&&(_get(_getPrototypeOf(g.prototype),e(i),this)[e(a)](this),this.entityGraphic[e(995)]=this._minimumHeights,this.entityGraphic.maximumHeights=this._maximumHeights)}},{key:"updateAttrForDrawing",value:function(e){this._updateMaxMinHeights(this._entity)}}]),g}(),EditRectangle=(register$4("wall",WallEntity),function(){var e=2756,t=3073,l=2822,i=3817,a=1899,n=2726,s=4038,u=1899,_=3135,p=2822,m=2532,d=_0x1658de,r=(_inherits(o,EditPoly),_createSuper(o));function o(){return _classCallCheck(this,o),r.apply(this,arguments)}return _createClass(o,[{key:d(e),value:function(){for(var c=d,h=this,e=this.positions,t=0,i=e.length;t<i;t++){var a=this[c(367)](e[t]),a=this[c(n)]({position:a,onDrag:function(e,t){var i=c,a=h._map[i(u)].currentTime,n=getCesiumValue(h[i(_)].height,Number,a);if(h.positions[e.index]=t,void 0!==h.entityGraphic[i(3159)])for(var s=0,r=h.draggers[i(2822)];s<r;s++){var o=h[i(761)][s],l=setPositionsHeight(h.positions[o.index],n);o.position=l,h[i(1980)][o[i(3170)]]=l}h._heightDraggers&&0<h._heightDraggers[i(p)]&&(a=getCesiumValue(h.entityGraphic.extrudedHeight,Number,a),h._heightDraggers[e.index].position=setPositionsHeight(t,a));e=centerOfMass(h.positions),e=h.updatePositionsHeightByAttr(e);h[i(1182)][i(m)]=e}});a.index=t,this[c(761)].push(a)}this._bindMoveAllDragger(),this[c(3135)][c(s)]&&this._bindHeightDraggers()}},{key:"updatePositionsHeightByAttr",value:function(e){var t=d;return this.clampToGround&&(e=getSurfacePosition(this[t(i)].scene,e)),e=void 0!==this.entityGraphic.height?setPositionsHeight(e,getCesiumValue(this[t(3135)].height,Number,this._map[t(a)].currentTime)):e}},{key:d(t),value:function(e){for(var t=d,i=(this.entityGraphic.height=e,this.style.height=this.formatNum(e,2),this.positions),a=0,n=i.length;a<n;a++)i[a]=setPositionsHeight(i[a],e);for(var s=0,r=this.draggers[t(l)];s<r;s++){var o=this.draggers[s];o.position=setPositionsHeight(o[t(2532)],e)}this.fire(EventType.editStyle)}}]),o}()),RectangleEntity=function(){var e=1937,t=1748,i=3692,a=1901,n=1996,s=1614,r=3222,o=659,l=1307,c=2492,h=2383,u=872,_=3277,p=3135,m=2116,d=1680,f=1874,y=3222,v=390,g=2383,C=3497,x=3612,b=3497,k=3686,P=3222,w=2981,S=784,T=2874,M=2992,E=2432,A=3463,L=1733,D=3497,I=430,H=2936,F=1680,N=413,G=3497,O=_0x1658de,z=(_inherits(R,BasePolyEntity),_createSuper(R));function R(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(t=z.call(this,t))._minPointNum=2,t[e(N)]=2,t._clampToGround_reload=!0,t.options.rectangle?t._rectangle=t.options.rectangle:t.options.coordinates&&(t._rectangle=t.options[e(G)]),t}return _createClass(R,[{key:"entityGraphic",get:function(){var e;return null==(e=this._entity)?void 0:e.rectangle}},{key:"EditClass",get:function(){return EditRectangle}},{key:"center",get:function(){var e=getCesiumValue(this.rectangle);return e?Cesium__namespace.Cartographic.toCartesian(Cesium__namespace.Rectangle.center(e)):null}},{key:"outlinePositions",get:function(){var e=_0x236b;return this[e(2981)]&&(this[e(F)]=_getOutlinePositions2(this._entity)),this._outlinePositions},set:function(e){this._outlinePositions=e}},{key:"outlineCoordinates",get:function(){return cartesians2lonlats(this.outlinePositions)}},{key:"rectangle",get:function(){var e=_0x236b;return!this._rectangle&&this[e(1980)]&&(this[e(I)]=Cesium__namespace.Rectangle[e(H)](this.positions)),this[e(I)]},set:function(e){var t,i=_0x236b;null==(t=this.editing)||!t[i(A)]||e instanceof Cesium__namespace.CallbackProperty?(this._rectangle=e,this[i(2981)]&&(this.entityGraphic[i(D)]=e)):this[i(L)]=e}},{key:"points",get:function(){var t=_0x236b,i=[],e=this._positions_draw||this._positions;return(e=e?e:_getOutlinePositions2(this._entity,!1))[t(E)](function(e){e=LngLatPoint[t(332)](e);e&&e.valid()&&i.push(e)}),this._points=i,this[t(2789)]}},{key:O(e),get:function(){return getDistance(this.outlinePositions,!0)}},{key:"area",get:function(){return getSurfaceArea(this.outlinePositions)}},{key:"getEntityPositions",value:function(){var e,t,i=O;return this[i(2981)][i(P)]?(e=getCesiumValue(this._entity.rectangle.coordinates,Cesium__namespace.Rectangle),t=getCesiumValue(this[i(w)].rectangle.height,Number)||0,[Cesium__namespace[i(S)][i(T)](e.west,e.south,t),Cesium__namespace[i(784)].fromRadians(e.east,e[i(M)],t)]):null}},{key:"_mountedHook",value:function(){var i=2936,a=O,n=this,e={rectangle:RectangleStyleConver.toCesiumVal(this[a(2492)],{},!0)};e.rectangle.coordinates=this[a(3222)],this[a(3019)]instanceof Cesium__namespace.CallbackProperty&&(e.rectangle[a(C)]=new Cesium__namespace.CallbackProperty(function(e){var t=a,e=n._positions.getValue(e);return e&&0<e.length?(n._rectangle=Cesium__namespace.Rectangle[t(i)](e),n._rectangle):void 0},!1)),this[a(2981)]=this._createEntity(e),this._updateHeight(),this[a(x)](this._getOutlinePositions(),this.style),this._entity_outlines&&this.entityGraphic[a(b)]instanceof Cesium__namespace.CallbackProperty&&this._updateOutlineToCallback(),this.style[a(k)]&&this[a(1660)]()}},{key:O(t),value:function(e,t){return RectangleStyleConver.toJSON(e,t,!0)}},{key:O(i),value:function(e,t){var i=O;RectangleStyleConver.toCesiumVal(e,this[i(3135)],!0),(Cesium__namespace.defined(t.diffHeight)||Cesium__namespace.defined(t.height))&&this._updateHeight()}},{key:"_updatePositionsHook",value:function(){var e=O;this.positions?this.rectangle=Cesium__namespace.Rectangle.fromCartesianArray(this.positions):this._rectangle_draw=Cesium__namespace.Rectangle.fromCartesianArray(this[e(g)]),this.outlinePositions=_getOutlinePositions2(this._entity),this._updateOutlineStyle(this._getOutlinePositions(),this.style),this._updateLabelPosition(),this._updateHeight(),this._updateEditDraggers()}},{key:"_getOutlineStyle",value:function(e,t){var i=O,e=_get(_getPrototypeOf(R.prototype),"_getOutlineStyle",this).call(this,e,t);return e[i(3918)]=Cesium__namespace.ArcType.RHUMB,e}},{key:O(3459),value:function(){return[this.outlinePositions]}},{key:"toGeoJSON",value:function(e){return _get(_getPrototypeOf(R.prototype),"toGeoJSON",this).call(this,e)}},{key:"_getGeoJsonGeometry",value:function(e){var t=O;return null!=e&&e.outline?{type:"Polygon",coordinates:[this[t(3928)](null==e?void 0:e.closure,null==e?void 0:e.noAlt)]}:{type:t(690),coordinates:this.getCoordinates(null==e?void 0:e.noAlt)}}},{key:"_setPositionsToCallback",value:function(){var e,t=O,i=this;this._isCallbackPositions||(this[t(f)]=!0,(e=this[t(1980)])?(e instanceof Cesium__namespace.CallbackProperty?this._positions_draw=this.getEntityPositions():this._positions_draw=this.positions,this._rectangle_draw=Cesium__namespace.Rectangle[t(2936)](this._positions_draw)):(this[t(2383)]=[],this._rectangle_draw=null),this[t(y)]=new Cesium__namespace.CallbackProperty(function(e){return i._rectangle_draw},!1),this[t(v)]())}},{key:"_cancelPositionsCallback",value:function(){var e=O;this._isCallbackPositions&&(this._isCallbackPositions=!1,this._positions=this._positions_draw,this._rectangle=this._rectangle_draw,this[e(2981)]&&(this[e(3135)].coordinates=this._rectangle_draw),delete this._positions_draw,delete this._rectangle_draw,this[e(1450)]())}},{key:"updateAttrForDrawing",value:function(e){var t=O;this._rectangle_draw=Cesium__namespace.Rectangle.fromCartesianArray(this._positions_draw),this[t(m)]&&(this._updateOutlineToCallback(),this[t(d)]=_getOutlinePositions2(this._entity)),this._updateHeight(!1)}},{key:"_updateHeight",value:function(){var e,t=O,i=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];this[t(2492)][t(1614)]||(e=0,e=i&&Cesium__namespace.defined(this[t(c)].height)?this.style.height:getMaxHeight(this[t(h)]||this._positions),this.entityGraphic[t(3159)]=e,this.style[t(3159)]=e,Cesium__namespace.defined(this.style[t(u)])&&(Cesium__namespace[t(_)](this.style.diffHeight)&&0!==this.style[t(u)]?this[t(p)].extrudedHeight=e+this.style.diffHeight:this.entityGraphic[t(4038)]=void 0),this.fire(EventType.editStyle))}},{key:O(a),value:function(e){return _getOutlinePositions2(this._entity,e)}},{key:"getOutlineCoordinates",value:function(e,t){return cartesians2lonlats(this.getOutlinePositions(e),t)}},{key:"getRectangle",value:function(e){var t=O,i=this._rectangle_draw||this[t(3222)];return null!=e&&e[t(l)]?formatRectangle(i):i}},{key:O(n),value:function(e){var t=O,i=getCesiumValue(null==(i=this._entity[t(r)])?void 0:i.coordinates,Cesium__namespace.Rectangle);return Cesium__namespace.Rectangle.contains(i,LngLatPoint.parse(e)[t(o)]())}},{key:"flyTo",value:function(){var e=O,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(this._map)return t.clampToGround=this.style[e(s)],this._map[e(2309)](getCesiumValue(this.rectangle,Cesium__namespace[e(2036)]),t),this}}]),R}();function _getOutlinePositions2(e){var t,i=3222,a=1018,n=_0x1658de,s=!(1<arguments[n(2822)]&&void 0!==arguments[1])||arguments[1];return e&&e.rectangle&&(t=getCesiumValue(e.rectangle.coordinates,Cesium__namespace.Rectangle))?(t=getRectangleOuterPositions({rectangle:t,rotation:getCesiumValue(e[n(i)][n(2046)],Number)||0,height:getCesiumValue(e.rectangle.height,Number)||0}),s&&t[n(a)](t[0]),t):[]}function getAllPositions(e){return getHierarchyVal(getCesiumValue(e.polygon.hierarchy,Cesium__namespace.PolygonHierarchy))}function getPositions(e,t){var i=_0x1658de;return!t&&e._positions_draw&&0<e._positions_draw.length?e._positions_draw:(t=getCesiumValue(e[i(1377)][i(1192)],Cesium__namespace.PolygonHierarchy))&&t instanceof Cesium__namespace.PolygonHierarchy?t.positions:t}function getHolesPositions(e){var t=_0x1658de,e=getHierarchyVal(getCesiumValue(e[t(1377)][t(1192)],Cesium__namespace[t(2216)]));return 1<e.length?e.slice(1):null}function getHierarchyVal(e){var t=3136,i=2557,a=_0x1658de;if(!e)return[];if(e&&e instanceof Cesium__namespace.PolygonHierarchy){for(var n=[e.positions],s=0,r=e[a(t)][a(2822)];s<r;s++)var o=e.holes[s],n=n[a(i)](getHierarchyVal(o));return n}return[e]}function getPolygonHierarchy(e,t){var i=_0x1658de;if(0===e[i(2822)])return new Cesium__namespace[i(2216)];var a=[];if(1<e.length)for(var n=1,s=e.length;n<s;n++)a.push(new Cesium__namespace.PolygonHierarchy(lonlats2cartesians(e[n],t)));i=e[0];return new Cesium__namespace.PolygonHierarchy(lonlats2cartesians(i,t),a)}function getPolygonHierarchy2(e){if(0===e[_0x1658de(2822)])return new Cesium__namespace.PolygonHierarchy;var t=[];if(1<e.length)for(var i=1,a=e.length;i<a;i++)t.push(new Cesium__namespace.PolygonHierarchy(LngLatArray.toCartesians(e[i])));var n=e[0];return new Cesium__namespace.PolygonHierarchy(LngLatArray.toCartesians(n),t)}register$4("rectangle",RectangleEntity);var EditPolygon=function(){var l=3170,c=349,h=3394,u=1018,n=2385,s=1567,r=2283,i=2283,a=3135,t=3102,o=2026,_=(_inherits(p,EditPoly),_createSuper(p));function p(){var e=_0x236b;return _classCallCheck(this,p),_[e(o)](this,arguments)}return _createClass(p,[{key:"hasClosure",get:function(){var e=_0x236b;return null==(e=this._graphic[e(t)])||e}},{key:"clampToGround",get:function(){var e,t=_0x236b;return null!=(e=this.style.clampToGround)?e:!getCesiumValue(null==(e=this[t(i)])||null==(e=e[t(a)])?void 0:e.perPositionHeight,Boolean)}},{key:"bindDraggers",value:function(){var e,t=_0x236b;if(_get(_getPrototypeOf(p[t(n)]),"bindDraggers",this)[t(s)](this),0<(null==(e=this[t(r)]._draw_holes)?void 0:e.length))for(var i=0,a=this._graphic._draw_holes.length;i<a;i++)this.bindHolesDraggers(this._graphic[t(2620)][i],i)}},{key:"bindHolesDraggers",value:function(i,e){for(var t=_0x236b,a=this,n=0,s=i.length;n<s;n++){var r=this.updatePositionsHeightByAttr(i[n]),o=this.createDragger({position:r,onDrag:function(e,t){t=a.updatePositionsHeightByAttr(t),e.position=t,i[e.index]=t},onDragEnd:function(e,t){a.updateDraggers()}});o[t(l)]=n,this.draggers.push(o),this.hasMidPoint&&(this.hasClosure||!this.hasClosure&&n<s-1)&&(r=getMidpoint(r,i[o=(n+1)%s]),r=this.updatePositionsHeightByAttr(r),(r=this.createDragger({position:r,type:PointType.AddMidPoint,tooltip:this._map[t(c)](t(h)),onDragStart:function(e,t){i.splice(e.index,0,t)},onDrag:function(e,t){i[e.index]=t},onDragEnd:function(e,t){a._fireAddPoint(e,t),a.updateDraggers()}}))[t(3170)]=o,this.draggers[t(u)](r))}}}]),p}(),nullColor$1=new Cesium__namespace[_0x1658de(3096)](0,0,0,.01),PolygonEntity=function(){var e=3270,t=3639,i=2847,a=2526,n=1257,o=511,l=511,c=2216,h=3136,u=1980,_=2492,s=1874,r=1567,p=1567,m=3121,d=2526,f=511,y=3993,v=2903,g=2822,C=2432,x=3121,b=3135,k=1402,P=1402,w=3270,S=3135,T=2492,M=4038,E=872,A=1497,L=1377,D=584,I=3888,H=2492,F=511,N=2492,G=2981,z=1980,B=3159,j=1456,V=511,$=3019,U=1377,W=2637,O=_0x1658de,J=(_inherits(R,BasePolyEntity),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(e=J.call(this,i))._minPointNum=null!=(i=i[t(W)])?i:3,e._clampToGround_reload=!0,e}return _createClass(R,[{key:"entityGraphic",get:function(){var e,t=_0x236b;return null==(e=this._entity)?void 0:e[t(U)]}},{key:"EditClass",get:function(){return EditPolygon}},{key:O(1494),get:function(){return this[O(3127)]}},{key:"distance",get:function(){return getDistance(this.positionsShow,!0)}},{key:"positionsShow",get:function(){var e,t=getCesiumValue(this._positions);return t instanceof Cesium__namespace.PolygonHierarchy&&(t=t.positions),null!=(e=this._positions_show)?e:this.getShowPositions(t)}},{key:"hierarchy",get:function(){var e;return this._hierarchy||(null==(e=this.entityGraphic)?void 0:e.hierarchy)}},{key:O(1980),get:function(){return this._positions},set:function(e){var t,n,s,r=1740,o=2993,l=O,c=this;e&&(this._hierarchy=null,e instanceof Cesium__namespace[l(2216)]&&(this._hierarchy=e,e=this._hierarchy[l(z)]),Array[l(2255)](e)?(0<e.length&&Array.isArray(e[0])&&0<e[0][l(2822)]&&(t=e[0][0],Array.isArray(t)&&isNumber(t[0])?(this._hierarchy=getPolygonHierarchy(e,this.style[l(B)]||this.style.setHeight||this.style[l(j)]),e=this._hierarchy.positions):t instanceof Cesium__namespace.Cartesian3&&(this[l(511)]=getPolygonHierarchy2(e),e=this[l(V)][l(1980)])),n=[],s=[],e.forEach(function(e,t){var i,a=l,e=LngLatPoint.parse(e);e&&(i=c[a(2492)].setHeight,Cesium__namespace.defined(i)&&(isString(i)?(i=Number(template(i,c[a(r)],!0)),isNaN(i)&&(i=0)):Array.isArray(i)&&(i=i[t]||0),e[a(2993)]=i),0!==(i=c.getAddHeight(t))&&(e.alt=e[a(o)]+i),n[a(1018)](e),s.push(e.toCartesian()))}),this._points=n,null!=(t=this.editing)&&t.enabled?this[l(2383)]=s:this._positions=s):this[l($)]=e,this._positions_show=null,this._entity&&this._updatePositionsHook(),this[l(1997)](EventType.updatePosition,{positions:this._positions}))}},{key:"getEntityPositions",value:function(){return getPositions(this._entity)}},{key:"getShowPositions",value:function(e){return e}},{key:"_mountedHook",value:function(){var e,i,a=3019,n=777,s=2130,r=O,o=this,t={polygon:PolygonStyleConver.toCesiumVal(this[r(H)],{},!0)};this._positions instanceof Cesium__namespace.CallbackProperty?(e=this._positions.getValue(this._map.clock.currentTime))&&Array.isArray(e)?(i=new Cesium__namespace.PolygonHierarchy,t.polygon.hierarchy=new Cesium__namespace[r(3121)](function(e){var t=r,e=o[t(a)][t(n)](e);return o._positions_show=o.getShowPositions(e),i.positions=o[t(1402)],o._entity_outlines&&0<(null==(e=o._positions_show)?void 0:e.length)&&(null==(e=null==(e=o.style.outlineStyle)?void 0:e.closure)||e?o.outlinePositions=o._positions_show.concat(o._positions_show[0]):o[t(s)]=o[t(1402)]),i},!1),this[r(F)]=i):t.polygon.hierarchy=this._positions:this._hierarchy?t.polygon[r(1192)]=this._hierarchy:(this._positions_show||(this._positions_show=this.getShowPositions(this.positions)),t.polygon.hierarchy=new Cesium__namespace.PolygonHierarchy(this[r(1402)])),this[r(2981)]=this._createEntity(t),this._updateDiffHeight(),this._bindExType(),this._updateOutlineStyle(this._getOutlinePositions(),this[r(N)]),this[r(G)][r(1377)].hierarchy instanceof Cesium__namespace.CallbackProperty&&this[r(390)](),this.style.label&&this._addLabel()}},{key:"_bindExType",value:function(){var e,t,i,a=O,n=this.options.buildings||this._layer.options[a(A)];n&&(null==(e=n.enabled)||e)&&(n[a(3698)]&&(isNumber(n.bottomHeight)?i=n.bottomHeight:isString(n.bottomHeight)&&(i=Number(this.attr[n.bottomHeight]||0)),this._entity[a(L)].height=i),e=Number(this[a(1740)][n.cloumn]||1),t=isNumber(n.height)?n.height:isString(n.height)?this[a(1740)][n.height]||t:3.5,i=getCesiumValue(this[a(2981)].polygon.height)||0,this[a(2981)].polygon.extrudedHeight=i+e*t),(this.options[a(D)]||this[a(2818)].options.dth)&&(this._entity.polygon.classificationType=Cesium__namespace.ClassificationType.BOTH,Cesium__namespace.defined(this[a(2492)].color)||(this._entity.polygon[a(1336)]=nullColor$1),Cesium__namespace.defined(this.style.height)||(this[a(2981)][a(L)][a(I)]=!1),this._entity[a(1377)][a(1301)]=99)}},{key:O(e),value:function(){var e,t=O;!Cesium__namespace.defined(this.style.diffHeight)||this[t(S)].extrudedHeight instanceof Cesium__namespace.CallbackProperty||(Cesium__namespace.defined(this.style.diffHeight)&&0!==this.style[t(872)]?(e=0,e=Cesium__namespace.defined(this.style.height)?this[t(T)].height:getMaxHeight(this._positions_draw||this._positions),this.entityGraphic[t(M)]=e+this.style[t(E)]):this.entityGraphic.extrudedHeight=void 0)}},{key:"_style2Json",value:function(e,t){return PolygonStyleConver.toJSON(e,t,!0)}},{key:"_updateStyleHook",value:function(e,t){var i=O;PolygonStyleConver[i(1672)](e,this.entityGraphic,!0),(Cesium__namespace.defined(t.diffHeight)||Cesium__namespace[i(3277)](t.height))&&this[i(w)]()}},{key:O(t),value:function(){var e,t=O;this._positions instanceof Cesium__namespace[t(x)]?(this[t(b)][t(1192)]=this._positions,null!=(e=this.editing)&&e.enabled&&this._hierarchy&&(this._positions_show=this.getShowPositions(this._positions_draw),this._hierarchy.positions=this[t(k)])):this._hierarchy?this.entityGraphic.hierarchy=this._hierarchy:(this[t(P)]=this.getShowPositions(this.positions),this[t(b)].hierarchy=new Cesium__namespace.PolygonHierarchy(this[t(1402)])),this._updateOutlineStyle(this._getOutlinePositions(),this[t(2492)]),this._updateLabelPosition(),this._updateDiffHeight(),this._updateEditDraggers()}},{key:"_getOutlinePositions",value:function(){return getAllPositions(this._entity)}},{key:"toGeoJSON",value:function(e){return _get(_getPrototypeOf(R.prototype),"toGeoJSON",this).call(this,e)}},{key:"_getGeoJsonGeometry",value:function(e){var i=O,a=this.getCoordinates(null==e?void 0:e.noAlt);return null!=e&&e[i(v)]&&0<a[i(g)]&&a.push(a[0]),0<(null==(e=this[i(511)])||null==(e=e[i(3136)])?void 0:e.length)&&(a=[a],getHolesPositions(this._entity)[i(C)](function(e){var t=i;a.push(LngLatArray[t(1326)](e))})),{type:"Polygon",coordinates:[a]}}},{key:"setCallbackPositions",value:function(e){return this[O(y)](),e&&(this._positions_draw=e,this._hierarchy.positions=e),this._positions_draw}},{key:O(i),value:function(){return this[O(f)]}},{key:O(a),value:function(){var e=O;_get(_getPrototypeOf(R.prototype),e(d),this).call(this),this[e(511)]=null}},{key:O(1496),value:function(){var e=O,t=this;_get(_getPrototypeOf(R[e(2385)]),"_startDrawHook",this)[e(p)](this),this._updateOutlineStyle([new Cesium__namespace[e(m)](function(e){return t.outlinePositions},!1)],this.style,{show:!0,width:2,color:this.style.color})}},{key:"_setPositionsToCallback",value:function(){var e=O;this[e(s)]||(this._draw_holes=getHolesPositions(this[e(2981)]),_get(_getPrototypeOf(R.prototype),"_setPositionsToCallback",this)[e(r)](this))}},{key:O(n),value:function(e){var i,t,a,n=1018,s=2216,r=O;this[r(o)]||(this[r(l)]=new Cesium__namespace[r(c)],this[r(2620)]&&(i=[],this._draw_holes.forEach(function(e){var t=r;i[t(n)](new Cesium__namespace[t(s)](e))}),this._hierarchy[r(h)]=i)),this[r(1402)]=this.getShowPositions(this._positions_draw),this._hierarchy[r(u)]=this._positions_show,0<(null==(t=this[r(1402)])?void 0:t.length)&&(null==(t=null==(t=this[r(_)][r(1003)])?void 0:t.closure)||t?this[r(2130)]=this._positions_show.concat(this._positions_show[0]):this.outlinePositions=this._positions_show),this._positions_draw.length<this._minPointNum&&(a={show:!0,width:2,color:this.style.color}),this[r(390)](),this._updateOutlineStyle(null,this[r(2492)],a),this._updateDiffHeight()}}]),R}(),EllipseEntity=(register$4("polygon",PolygonEntity),PolygonEntity.getPositions=getPositions,PolygonEntity.getAllPositions=getAllPositions,function(){_inherits(a,CircleEntity);var i=_createSuper(a);function a(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,a),(t=i[e(1567)](this,t))[e(413)]=3,t}return _createClass(a)}());function RectangularSensorGraphics(e){var t=2713,i=3660,a=2334,n=3732,s=3431,r=1478,o=_0x1658de;this[o(2544)]=void 0,this._radius=void 0,this._xHalfAngle=void 0,this._yHalfAngle=void 0,this._lineColor=void 0,this[o(t)]=void 0,this[o(1232)]=void 0,this[o(i)]=void 0,this[o(1094)]=void 0,this._showDomeSurfaces=void 0,this[o(a)]=void 0,this._showIntersection=void 0,this[o(n)]=void 0,this._intersectionWidth=void 0,this._showThroughEllipsoid=void 0,this._gaze=void 0,this._showScanPlane=void 0,this._scanPlaneColor=void 0,this[o(s)]=void 0,this._scanPlaneRate=void 0,this._definitionChanged=new Cesium__namespace.Event,this.merge(Cesium__namespace.defaultValue(e,Cesium__namespace.defaultValue[o(r)]))}register$4(_0x1658de(921),EllipseEntity,!0),Object.defineProperties(RectangularSensorGraphics.prototype,{definitionChanged:{get:function(){return this[_0x1658de(2194)]}},show:Cesium__namespace.createPropertyDescriptor("show"),radius:Cesium__namespace.createPropertyDescriptor("radius"),xHalfAngle:Cesium__namespace.createPropertyDescriptor("xHalfAngle"),yHalfAngle:Cesium__namespace.createPropertyDescriptor("yHalfAngle"),lineColor:Cesium__namespace[_0x1658de(2768)](_0x1658de(365)),showSectorLines:Cesium__namespace[_0x1658de(2768)]("showSectorLines"),showSectorSegmentLines:Cesium__namespace.createPropertyDescriptor("showSectorSegmentLines"),showLateralSurfaces:Cesium__namespace.createPropertyDescriptor("showLateralSurfaces"),material:Cesium__namespace.createMaterialPropertyDescriptor("material"),showDomeSurfaces:Cesium__namespace.createPropertyDescriptor("showDomeSurfaces"),showDomeLines:Cesium__namespace[_0x1658de(2768)](_0x1658de(2994)),showIntersection:Cesium__namespace.createPropertyDescriptor("showIntersection"),intersectionColor:Cesium__namespace[_0x1658de(2768)](_0x1658de(1894)),intersectionWidth:Cesium__namespace.createPropertyDescriptor("intersectionWidth"),showThroughEllipsoid:Cesium__namespace.createPropertyDescriptor("showThroughEllipsoid"),gaze:Cesium__namespace.createPropertyDescriptor("gaze"),showScanPlane:Cesium__namespace.createPropertyDescriptor(_0x1658de(3197)),scanPlaneColor:Cesium__namespace[_0x1658de(2768)](_0x1658de(1059)),scanPlaneMode:Cesium__namespace.createPropertyDescriptor("scanPlaneMode"),scanPlaneRate:Cesium__namespace.createPropertyDescriptor("scanPlaneRate")}),RectangularSensorGraphics.prototype.clone=function(e){var t=3350,i=2994,a=1848,n=1894,s=3962,r=_0x1658de;return(e=Cesium__namespace.defined(e)?e:new RectangularSensorGraphics).show=this.show,e.radius=this.radius,e.xHalfAngle=this.xHalfAngle,e[r(t)]=this.yHalfAngle,e.lineColor=this.lineColor,e.showSectorLines=this.showSectorLines,e.showSectorSegmentLines=this.showSectorSegmentLines,e.showLateralSurfaces=this.showLateralSurfaces,e.material=this[r(1336)],e[r(1475)]=this.showDomeSurfaces,e.showDomeLines=this[r(i)],e.showIntersection=this[r(a)],e.intersectionColor=this[r(n)],e.intersectionWidth=this[r(s)],e.showThroughEllipsoid=this.showThroughEllipsoid,e.gaze=this.gaze,e.showScanPlane=this.showScanPlane,e.scanPlaneColor=this.scanPlaneColor,e.scanPlaneMode=this.scanPlaneMode,e.scanPlaneRate=this.scanPlaneRate,e},RectangularSensorGraphics.prototype.merge=function(e){var t=402,i=1629,a=4041,n=1336,s=2994,r=553,o=3962,l=3962,c=553,h=_0x1658de;if(!Cesium__namespace.defined(e))throw new Cesium__namespace.DeveloperError("source is required.");this.slice=Cesium__namespace.defaultValue(this.slice,e[h(2090)]),this.show=Cesium__namespace[h(553)](this.show,e[h(4045)]),this[h(t)]=Cesium__namespace.defaultValue(this.radius,e[h(402)]),this[h(i)]=Cesium__namespace.defaultValue(this.xHalfAngle,e[h(1629)]),this.yHalfAngle=Cesium__namespace.defaultValue(this.yHalfAngle,e[h(3350)]),this.lineColor=Cesium__namespace.defaultValue(this.lineColor,e.lineColor),this.showSectorLines=Cesium__namespace.defaultValue(this.showSectorLines,e.showSectorLines),this.showSectorSegmentLines=Cesium__namespace.defaultValue(this.showSectorSegmentLines,e.showSectorSegmentLines),this[h(4041)]=Cesium__namespace[h(553)](this.showLateralSurfaces,e[h(a)]),this[h(n)]=Cesium__namespace.defaultValue(this[h(1336)],e.material),this.showDomeSurfaces=Cesium__namespace.defaultValue(this.showDomeSurfaces,e.showDomeSurfaces),this[h(s)]=Cesium__namespace.defaultValue(this[h(2994)],e.showDomeLines),this.showIntersection=Cesium__namespace.defaultValue(this[h(1848)],e.showIntersection),this.intersectionColor=Cesium__namespace[h(r)](this.intersectionColor,e[h(1894)]),this.intersectionWidth=Cesium__namespace.defaultValue(this[h(o)],e[h(l)]),this.showThroughEllipsoid=Cesium__namespace.defaultValue(this.showThroughEllipsoid,e.showThroughEllipsoid),this.gaze=Cesium__namespace[h(r)](this.gaze,e.gaze),this.showScanPlane=Cesium__namespace.defaultValue(this.showScanPlane,e.showScanPlane),this[h(1059)]=Cesium__namespace.defaultValue(this.scanPlaneColor,e.scanPlaneColor),this.scanPlaneMode=Cesium__namespace[h(c)](this.scanPlaneMode,e.scanPlaneMode),this.scanPlaneRate=Cesium__namespace.defaultValue(this.scanPlaneRate,e[h(932)])};var RectangularSensorVS=_0x1658de(813),RectangularSensorFS="#ifdef GL_OES_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\n\nuniform bool u_showIntersection;\nuniform bool u_showThroughEllipsoid;\n\nuniform float u_radius;\nuniform float u_xHalfAngle;\nuniform float u_yHalfAngle;\nuniform float u_normalDirection;\nuniform float u_type;\n\nin vec3 v_position;\nin vec3 v_positionWC;\nin vec3 v_positionEC;\nin vec3 v_normalEC;\n\nvec4 getColor(float sensorRadius, vec3 pointEC) {\n czm_materialInput materialInput;\n\n vec3 pointMC = (czm_inverseModelView * vec4(pointEC, 1.0)).xyz;\n materialInput.st = sensor2dTextureCoordinates(sensorRadius, pointMC);\n materialInput.str = pointMC / sensorRadius;\n\n vec3 positionToEyeEC = -v_positionEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n\n vec3 normalEC = normalize(v_normalEC);\n materialInput.normalEC = u_normalDirection * normalEC;\n\n czm_material material = czm_getMaterial(materialInput);\n // czm_lightDirectionEC在cesium1.66开始加入的\n return mix(czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC), vec4(material.diffuse, material.alpha), 0.4);\n\n}\n\nbool isOnBoundary(float value, float epsilon) {\n float width = getIntersectionWidth();\n float tolerance = width * epsilon;\n\n#ifdef GL_OES_standard_derivatives\n float delta = max(abs(dFdx(value)), abs(dFdy(value)));\n float pixels = width * delta;\n float temp = abs(value);\n return temp < tolerance && temp < pixels || (delta < 10.0 * tolerance && temp - delta < tolerance && temp < pixels);\n#else\n return abs(value) < tolerance;\n#endif\n}\n\nvec4 shade(bool isOnBoundary) {\n if(u_showIntersection && isOnBoundary) {\n return getIntersectionColor();\n }\n if(u_type == 1.0) {\n return getLineColor();\n }\n return getColor(u_radius, v_positionEC);\n}\n\nfloat ellipsoidSurfaceFunction(vec3 point) {\n vec3 scaled = czm_ellipsoidInverseRadii * point;\n return dot(scaled, scaled) - 1.0;\n}\n\nvoid main() {\n vec3 sensorVertexWC = czm_model[3].xyz; // (0.0, 0.0, 0.0) in model coordinates\n\n float positionX = v_position.x;\n float positionY = v_position.y;\n float positionZ = v_position.z;\n\n vec3 zDir = vec3(0.0, 0.0, 1.0);\n vec3 lineX = vec3(positionX, 0, positionZ);\n vec3 lineY = vec3(0, positionY, positionZ);\n float resX = dot(normalize(lineX), zDir);\n if(resX < cos(u_xHalfAngle) - 0.00001) {\n discard;\n }\n float resY = dot(normalize(lineY), zDir);\n if(resY < cos(u_yHalfAngle) - 0.00001) {\n discard;\n }\n\n float ellipsoidValue = ellipsoidSurfaceFunction(v_positionWC);\n if(!u_showThroughEllipsoid) {\n if(ellipsoidValue < 0.0) {\n discard;\n }\n if(inSensorShadow(sensorVertexWC, v_positionWC)) {\n discard;\n }\n }\n\n bool isOnEllipsoid = isOnBoundary(ellipsoidValue, czm_epsilon3);\n out_FragColor = shade(isOnEllipsoid);\n}\n",RectangularSensor$1="uniform vec4 u_intersectionColor;\nuniform float u_intersectionWidth;\nuniform vec4 u_lineColor;\n\nbool inSensorShadow(vec3 coneVertexWC, vec3 pointWC) {\n // Diagonal matrix from the unscaled ellipsoid space to the scaled space.\n vec3 D = czm_ellipsoidInverseRadii;\n\n // Sensor vertex in the scaled ellipsoid space\n vec3 q = D * coneVertexWC;\n float qMagnitudeSquared = dot(q, q);\n float test = qMagnitudeSquared - 1.0;\n\n // Sensor vertex to fragment vector in the ellipsoid's scaled space\n vec3 temp = D * pointWC - q;\n float d = dot(temp, q);\n\n // Behind silhouette plane and inside silhouette cone\n return (d < -test) && (d / length(temp) < -sqrt(test));\n}\n\n\nvec4 getLineColor() {\n return u_lineColor;\n}\n\nvec4 getIntersectionColor() {\n return u_intersectionColor;\n}\n\nfloat getIntersectionWidth() {\n return u_intersectionWidth;\n}\n\nvec2 sensor2dTextureCoordinates(float sensorRadius, vec3 pointMC) {\n // (s, t) both in the range [0, 1]\n float t = pointMC.z / sensorRadius;\n float s = 1.0 + (atan(pointMC.y, pointMC.x) / czm_twoPi);\n s = s - floor(s);\n\n return vec2(s, t);\n}\n",RectangularSensorScanPlaneFS="#ifdef GL_OES_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\n\nuniform bool u_showIntersection;\nuniform bool u_showThroughEllipsoid;\n\nuniform float u_radius;\nuniform float u_xHalfAngle;\nuniform float u_yHalfAngle;\nuniform float u_normalDirection;\nuniform vec4 u_color;\n\nin vec3 v_position;\nin vec3 v_positionWC;\nin vec3 v_positionEC;\nin vec3 v_normalEC;\n\nvec4 getColor(float sensorRadius, vec3 pointEC) {\n czm_materialInput materialInput;\n\n vec3 pointMC = (czm_inverseModelView * vec4(pointEC, 1.0)).xyz;\n materialInput.st = sensor2dTextureCoordinates(sensorRadius, pointMC);\n materialInput.str = pointMC / sensorRadius;\n\n vec3 positionToEyeEC = -v_positionEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n\n vec3 normalEC = normalize(v_normalEC);\n materialInput.normalEC = u_normalDirection * normalEC;\n\n czm_material material = czm_getMaterial(materialInput);\n\n material.diffuse = u_color.rgb;\n material.alpha = u_color.a;\n // czm_lightDirectionEC在cesium1.66开始加入的\n return mix(czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC), vec4(material.diffuse, material.alpha), 0.4);\n\n}\n\nbool isOnBoundary(float value, float epsilon) {\n float width = getIntersectionWidth();\n float tolerance = width * epsilon;\n\n#ifdef GL_OES_standard_derivatives\n float delta = max(abs(dFdx(value)), abs(dFdy(value)));\n float pixels = width * delta;\n float temp = abs(value);\n return temp < tolerance && temp < pixels || (delta < 10.0 * tolerance && temp - delta < tolerance && temp < pixels);\n#else\n return abs(value) < tolerance;\n#endif\n}\n\nvec4 shade(bool isOnBoundary) {\n if(u_showIntersection && isOnBoundary) {\n return getIntersectionColor();\n }\n return getColor(u_radius, v_positionEC);\n}\n\nfloat ellipsoidSurfaceFunction(vec3 point) {\n vec3 scaled = czm_ellipsoidInverseRadii * point;\n return dot(scaled, scaled) - 1.0;\n}\n\nvoid main() {\n vec3 sensorVertexWC = czm_model[3].xyz; // (0.0, 0.0, 0.0) in model coordinates\n\n float positionX = v_position.x;\n float positionY = v_position.y;\n float positionZ = v_position.z;\n\n vec3 zDir = vec3(0.0, 0.0, 1.0);\n vec3 lineX = vec3(positionX, 0, positionZ);\n vec3 lineY = vec3(0, positionY, positionZ);\n float resX = dot(normalize(lineX), zDir);\n if(resX < cos(u_xHalfAngle) - 0.0001) {\n discard;\n }\n float resY = dot(normalize(lineY), zDir);\n if(resY < cos(u_yHalfAngle) - 0.0001) {\n discard;\n }\n\n float ellipsoidValue = ellipsoidSurfaceFunction(v_positionWC);\n\n if(!u_showThroughEllipsoid) {\n if(ellipsoidValue < 0.0) {\n discard;\n }\n if(inSensorShadow(sensorVertexWC, v_positionWC)) {\n discard;\n }\n }\n bool isOnEllipsoid = isOnBoundary(ellipsoidValue, czm_epsilon3);\n out_FragColor = shade(isOnEllipsoid);\n}\n",BoundingSphere$1=Cesium__namespace[_0x1658de(3481)],Cartesian3$3=Cesium__namespace[_0x1658de(784)],Color$1=Cesium__namespace.Color,combine$1=Cesium__namespace.combine,ComponentDatatype$1=Cesium__namespace.ComponentDatatype,defaultValue$1=Cesium__namespace[_0x1658de(553)],defined$3=Cesium__namespace[_0x1658de(3277)],DeveloperError$1=Cesium__namespace.DeveloperError,Matrix4$1=Cesium__namespace[_0x1658de(3342)],PrimitiveType$1=Cesium__namespace.PrimitiveType,Buffer=Cesium__namespace.Buffer,BufferUsage=Cesium__namespace[_0x1658de(2597)],DrawCommand=Cesium__namespace[_0x1658de(2381)],Pass=Cesium__namespace.Pass,RenderState=Cesium__namespace.RenderState,ShaderProgram=Cesium__namespace.ShaderProgram,ShaderSource=Cesium__namespace.ShaderSource,VertexArray=Cesium__namespace.VertexArray,BlendingState=Cesium__namespace.BlendingState,CullFace=Cesium__namespace[_0x1658de(1066)],Material=Cesium__namespace.Material,SceneMode=Cesium__namespace.SceneMode,VertexFormat$1=Cesium__namespace[_0x1658de(610)],CesiumMath$2=Cesium__namespace.Math,Matrix3$2=Cesium__namespace.Matrix3,JulianDate=Cesium__namespace.JulianDate,sin=Math.sin,cos=Math.cos,tan=Math.tan,atan=Math[_0x1658de(2604)],attributeLocations={position:0,normal:1};function RectangularSensorPrimitive(e){var t=1436,i=1013,a=1629,n=3350,s=1923,r=1336,o=3515,l=3515,c=3515,h=3267,u=1894,_=3904,p=2880,m=3775,d=1861,f=3429,y=1136,v=1848,g=402,C=3572,x=1894,b=_0x1658de,k=this;e=defaultValue$1(e,defaultValue$1[b(1478)]),this.show=defaultValue$1(e.show,!0),this.slice=defaultValue$1(e.slice,32),this.modelMatrix=Matrix4$1.clone(e[b(t)],new Matrix4$1),this._modelMatrix=new Matrix4$1,this[b(i)]=new Matrix4$1,this._computedScanPlaneModelMatrix=new Matrix4$1,this.radius=defaultValue$1(e.radius,Number.POSITIVE_INFINITY),this._radius=void 0,this[b(a)]=defaultValue$1(e[b(1629)],0),this._xHalfAngle=void 0,this[b(n)]=defaultValue$1(e.yHalfAngle,0),this[b(s)]=void 0,this.lineColor=defaultValue$1(e.lineColor,Color$1[b(3644)]),this.showSectorLines=defaultValue$1(e.showSectorLines,!0),this.showSectorSegmentLines=defaultValue$1(e.showSectorSegmentLines,!0),this[b(4041)]=defaultValue$1(e[b(4041)],!0),this[b(r)]=defined$3(e.material)?e.material:Material.fromType(Material.ColorType),this._material=void 0,this._translucent=void 0,this[b(o)]=defined$3(e[b(l)])?e[b(c)]:Material[b(h)](Material.ColorType),this._lateralSurfaceMaterial=void 0,this._lateralSurfaceTranslucent=void 0,this.showDomeSurfaces=defaultValue$1(e.showDomeSurfaces,!0),this[b(2314)]=defined$3(e.domeSurfaceMaterial)?e.domeSurfaceMaterial:Material[b(h)](Material.ColorType),this[b(1858)]=void 0,this.showDomeLines=defaultValue$1(e.showDomeLines,!0),this.showIntersection=defaultValue$1(e.showIntersection,!0),this[b(u)]=defaultValue$1(e.intersectionColor,Color$1[b(3644)]),this.intersectionWidth=defaultValue$1(e.intersectionWidth,5),this.showThroughEllipsoid=defaultValue$1(e.showThroughEllipsoid,!1),this._showThroughEllipsoid=void 0,this[b(3197)]=defaultValue$1(e.showScanPlane,!0),this[b(1059)]=defaultValue$1(e.scanPlaneColor,Color$1.WHITE),this.scanPlaneMode=defaultValue$1(e.scanPlaneMode,"horizontal"),this.scanPlaneRate=defaultValue$1(e.scanPlaneRate,10),this._scanePlaneXHalfAngle=0,this[b(2453)]=0,this._time=JulianDate.now(),this[b(1737)]=new BoundingSphere$1,this[b(_)]=new BoundingSphere$1,this._sectorFrontCommand=new DrawCommand({owner:this,primitiveType:PrimitiveType$1.TRIANGLES,boundingVolume:this._boundingSphereWC}),this._sectorBackCommand=new DrawCommand({owner:this,primitiveType:PrimitiveType$1[b(832)],boundingVolume:this._boundingSphereWC}),this._sectorVA=void 0,this._sectorLineCommand=new DrawCommand({owner:this,primitiveType:PrimitiveType$1.LINES,boundingVolume:this._boundingSphereWC}),this._sectorLineVA=void 0,this._sectorSegmentLineCommand=new DrawCommand({owner:this,primitiveType:PrimitiveType$1[b(3599)],boundingVolume:this[b(_)]}),this._sectorSegmentLineVA=void 0,this._domeFrontCommand=new DrawCommand({owner:this,primitiveType:PrimitiveType$1.TRIANGLES,boundingVolume:this._boundingSphereWC}),this[b(p)]=new DrawCommand({owner:this,primitiveType:PrimitiveType$1.TRIANGLES,boundingVolume:this._boundingSphereWC}),this[b(2345)]=void 0,this[b(m)]=new DrawCommand({owner:this,primitiveType:PrimitiveType$1.LINES,boundingVolume:this._boundingSphereWC}),this._domeLineVA=void 0,this._scanPlaneFrontCommand=new DrawCommand({owner:this,primitiveType:PrimitiveType$1.TRIANGLES,boundingVolume:this._boundingSphereWC}),this._scanPlaneBackCommand=new DrawCommand({owner:this,primitiveType:PrimitiveType$1.TRIANGLES,boundingVolume:this._boundingSphereWC}),this[b(d)]=void 0,this._colorCommands=[],this[b(f)]=void 0,this._backFaceRS=void 0,this._sp=void 0,this[b(y)]={u_type:function(){return 0},u_xHalfAngle:function(){return k.xHalfAngle},u_yHalfAngle:function(){return k.yHalfAngle},u_radius:function(){return k.radius},u_showThroughEllipsoid:function(){return k[b(3891)]},u_showIntersection:function(){return k.showIntersection},u_intersectionColor:function(){return k[b(x)]},u_intersectionWidth:function(){return k.intersectionWidth},u_normalDirection:function(){return 1},u_lineColor:function(){return k.lineColor}},this[b(1319)]={u_xHalfAngle:function(){return k[b(C)]},u_yHalfAngle:function(){return k._scanePlaneYHalfAngle},u_radius:function(){return k[b(g)]},u_color:function(){return k.scanPlaneColor},u_showThroughEllipsoid:function(){return k.showThroughEllipsoid},u_showIntersection:function(){return k[b(v)]},u_intersectionColor:function(){return k.intersectionColor},u_intersectionWidth:function(){return k.intersectionWidth},u_normalDirection:function(){return 1},u_lineColor:function(){return k.lineColor}}}RectangularSensorPrimitive.prototype.update=function(e){var t=3959,i=3060,a=1737,n=1793,s=3721,r=3263,o=3266,l=_0x1658de,c=e.mode;if(this.show&&c===SceneMode.SCENE3D){var c=!1,h=!1,u=!1,_=this.xHalfAngle,p=this.yHalfAngle;if(_<0||p<0)throw new DeveloperError$1("halfAngle must be greater than or equal to zero.");if(0!==_&&0!==p){this._xHalfAngle===_&&this._yHalfAngle===p||(this._xHalfAngle=_,this._yHalfAngle=p,c=!0);var m=this.radius;if(m<0)throw new DeveloperError$1("this.radius must be greater than or equal to zero.");var d=!1;this[l(t)]!==m&&(d=!0,this._radius=m,this._boundingSphere=new BoundingSphere$1(Cartesian3$3.ZERO,this.radius));(!Matrix4$1.equals(this[l(1436)],this._modelMatrix)||d)&&(Matrix4$1[l(i)](this.modelMatrix,this._modelMatrix),Matrix4$1[l(432)](this.modelMatrix,this.radius,this._computedModelMatrix),BoundingSphere$1.transform(this[l(a)],this[l(1436)],this._boundingSphereWC));var f,y,t=this.showThroughEllipsoid,m=(this._showThroughEllipsoid!==this.showThroughEllipsoid&&(this[l(n)]=t,h=!0),this.material),d=(this[l(1094)]!==m&&(this._material=m,u=h=!0),m.isTranslucent()),v=(this._translucent!==d&&(this._translucent=d,h=!0),this[l(3197)]&&(i=e.time,(a=JulianDate.secondsDifference(i,this._time))<0&&(this[l(2269)]=JulianDate.clone(i,this[l(2269)])),n=Math.max(a%this.scanPlaneRate/this[l(932)],0),i=new Matrix3$2,"horizontal"===this.scanPlaneMode?(a=cos(f=2*p*n-p),y=tan(_),a=atan(a*y),this._scanePlaneXHalfAngle=a,this._scanePlaneYHalfAngle=f,Cesium__namespace.Matrix3[l(s)](this._scanePlaneYHalfAngle,i)):(f=2*_*n-_,y=tan(p),a=cos(f),s=atan(a*y),this._scanePlaneXHalfAngle=f,this[l(2453)]=s,Cesium__namespace[l(3915)].fromRotationY(this._scanePlaneXHalfAngle,i)),Cesium__namespace.Matrix4[l(r)](this[l(1436)],i,this._computedScanPlaneModelMatrix),Matrix4$1.multiplyByUniformScale(this._computedScanPlaneModelMatrix,this.radius,this[l(o)])),c&&createVertexArray(this,e),h&&createRenderState(this,t,d),u&&createShaderProgram(this,e,m),(h||u)&&createCommands(this,d),e.commandList),n=e[l(3257)],g=this._colorCommands;if(n.render)for(var C=0,x=g.length;C<x;C++){var b=g[C];v.push(b)}}}};var nScratch=new Cartesian3$3;function computeUnitPosiiton(e,t,i){for(var a=e.slice,e=cos(i),i=tan(i),n=cos(t),t=tan(t),s=atan(n*i),r=atan(e*t),o=[],l=0;l<a;l++){var c=2*s*l/(a-1)-s;o.push(new Cartesian3$3(0,sin(c),cos(c)))}for(var h=[],u=0;u<a;u++){var _=2*r*u/(a-1)-r;h.push(new Cartesian3$3(sin(_),0,cos(_)))}return{zoy:o,zox:h}}function computeSectorPositions(e,t){var i=702,a=_0x1658de,n=e.xHalfAngle,e=e.yHalfAngle,s=t.zoy,t=t.zox,r=[],o=new Matrix3$2,l=Matrix3$2.fromRotationY(n,o);return r.push(s[a(2412)](function(e){return Matrix3$2.multiplyByVector(l,e,new Cesium__namespace.Cartesian3)})),l=Matrix3$2.fromRotationX(-e,o),r.push(t.map(function(e){return Matrix3$2[a(i)](l,e,new Cesium__namespace.Cartesian3)}).reverse()),l=Matrix3$2.fromRotationY(-n,o),r.push(s.map(function(e){return Matrix3$2.multiplyByVector(l,e,new Cesium__namespace.Cartesian3)})[a(2013)]()),l=Matrix3$2.fromRotationX(e,o),r[a(1018)](t.map(function(e){return Matrix3$2.multiplyByVector(l,e,new Cesium__namespace.Cartesian3)})),r}function createSectorVertexArray(e,t){for(var i=2557,a=2822,n=819,s=1758,r=_0x1658de,i=Array.prototype[r(i)].apply([],t).length-t[r(a)],o=new Float32Array(18*i),l=0,c=0,h=t.length;c<h;c++)for(var u=t[c],_=Cartesian3$3.normalize(Cartesian3$3.cross(u[0],u[u.length-1],nScratch),nScratch),p=0,m=u.length-1;p<m;p++)o[l++]=0,o[l++]=0,o[l++]=0,o[l++]=-_.x,o[l++]=-_.y,o[l++]=-_.z,o[l++]=u[p].x,o[l++]=u[p].y,o[l++]=u[p].z,o[l++]=-_.x,o[l++]=-_.y,o[l++]=-_.z,o[l++]=u[p+1].x,o[l++]=u[p+1].y,o[l++]=u[p+1].z,o[l++]=-_.x,o[l++]=-_.y,o[l++]=-_.z;a=Buffer.createVertexBuffer({context:e,typedArray:o,usage:BufferUsage[r(n)]}),i=6*Float32Array[r(s)],n=[{index:attributeLocations.position,vertexBuffer:a,componentsPerAttribute:3,componentDatatype:ComponentDatatype$1.FLOAT,offsetInBytes:0,strideInBytes:i},{index:attributeLocations.normal,vertexBuffer:a,componentsPerAttribute:3,componentDatatype:ComponentDatatype$1.FLOAT,offsetInBytes:3*Float32Array.BYTES_PER_ELEMENT,strideInBytes:i}];return new VertexArray({context:e,attributes:n})}function createSectorLineVertexArray(e,t){for(var i=_0x1658de,a=t.length,n=new Float32Array(9*a),s=0,r=0,o=t[i(2822)];r<o;r++){var l=t[r];n[s++]=0,n[s++]=0,n[s++]=0,n[s++]=l[0].x,n[s++]=l[0].y,n[s++]=l[0].z}var a=Buffer.createVertexBuffer({context:e,typedArray:n,usage:BufferUsage.STATIC_DRAW}),c=3*Float32Array.BYTES_PER_ELEMENT,a=[{index:attributeLocations.position,vertexBuffer:a,componentsPerAttribute:3,componentDatatype:ComponentDatatype$1[i(807)],offsetInBytes:0,strideInBytes:c}];return new VertexArray({context:e,attributes:a})}function createSectorSegmentLineVertexArray(e,t){for(var i=2026,a=3232,n=_0x1658de,i=Array.prototype.concat[n(i)]([],t).length-t.length,s=new Float32Array(9*i),r=0,o=0,l=t.length;o<l;o++)for(var c=t[o],h=0,u=c.length-1;h<u;h++)s[r++]=c[h].x,s[r++]=c[h].y,s[r++]=c[h].z,s[r++]=c[h+1].x,s[r++]=c[h+1].y,s[r++]=c[h+1].z;i=Buffer[n(a)]({context:e,typedArray:s,usage:BufferUsage[n(819)]}),a=3*Float32Array.BYTES_PER_ELEMENT,i=[{index:attributeLocations.position,vertexBuffer:i,componentsPerAttribute:3,componentDatatype:ComponentDatatype$1[n(807)],offsetInBytes:0,strideInBytes:a}];return new VertexArray({context:e,attributes:i})}function createDomeVertexArray(e){var t=_0x1658de,i=Cesium__namespace.EllipsoidGeometry.createGeometry(new Cesium__namespace.EllipsoidGeometry({vertexFormat:VertexFormat$1.POSITION_ONLY,stackPartitions:32,slicePartitions:32}));return VertexArray[t(3921)]({context:e,geometry:i,attributeLocations:attributeLocations,bufferUsage:BufferUsage.STATIC_DRAW,interleave:!1})}function createDomeLineVertexArray(e){var t=2594,i=3921,a=_0x1658de,t=Cesium__namespace[a(1444)].createGeometry(new Cesium__namespace.EllipsoidOutlineGeometry({vertexFormat:VertexFormat$1[a(t)],stackPartitions:32,slicePartitions:32}));return VertexArray[a(i)]({context:e,geometry:t,attributeLocations:attributeLocations,bufferUsage:BufferUsage.STATIC_DRAW,interleave:!1})}function createScanPlaneVertexArray(e,t){for(var i=_0x1658de,a=t.length-1,n=new Float32Array(9*a),s=0,r=0;r<a;r++)n[s++]=0,n[s++]=0,n[s++]=0,n[s++]=t[r].x,n[s++]=t[r].y,n[s++]=t[r].z,n[s++]=t[r+1].x,n[s++]=t[r+1].y,n[s++]=t[r+1].z;var o=Buffer[i(3232)]({context:e,typedArray:n,usage:BufferUsage.STATIC_DRAW}),l=3*Float32Array[i(1758)],o=[{index:attributeLocations.position,vertexBuffer:o,componentsPerAttribute:3,componentDatatype:ComponentDatatype$1[i(807)],offsetInBytes:0,strideInBytes:l}];return new VertexArray({context:e,attributes:o})}function createVertexArray(e,t){var i=828,a=1475,n=2345,s=2969,r=_0x1658de,t=t.context,o=computeSectorPositions(e,computeUnitPosiiton(e,e.xHalfAngle,e.yHalfAngle));e.showLateralSurfaces&&(e[r(i)]=createSectorVertexArray(t,o)),e.showSectorLines&&(e[r(3239)]=createSectorLineVertexArray(t,o)),e[r(3937)]&&(e._sectorSegmentLineVA=createSectorSegmentLineVertexArray(t,o)),e[r(a)]&&(e[r(n)]=createDomeVertexArray(t)),e.showDomeLines&&(e._domeLineVA=createDomeLineVertexArray(t)),e[r(3197)]&&("horizontal"===e.scanPlaneMode?(i=computeUnitPosiiton(e,CesiumMath$2.PI_OVER_TWO,0),e[r(s)]=createScanPlaneVertexArray(t,i.zox)):(o=computeUnitPosiiton(e,0,CesiumMath$2.PI_OVER_TWO),e._scanPlaneVA=createScanPlaneVertexArray(t,o.zoy)))}function createCommonShaderProgram(e,t,i){var a=3147,n=2798,s=_0x1658de,t=t[s(3974)],r=RectangularSensorVS,a=new ShaderSource({sources:[RectangularSensor$1,i[s(a)],RectangularSensorFS]}),a=(e._sp=ShaderProgram.replaceCache({context:t,shaderProgram:e._sp,vertexShaderSource:r,fragmentShaderSource:a,attributeLocations:attributeLocations}),new ShaderSource({sources:[RectangularSensor$1,i.shaderSource,RectangularSensorFS],pickColorQualifier:s(n)}));e._pickSP=ShaderProgram.replaceCache({context:t,shaderProgram:e[s(2746)],vertexShaderSource:r,fragmentShaderSource:a,attributeLocations:attributeLocations})}function createScanPlaneShaderProgram(e,t,i){var t=t[_0x1658de(3974)],a=RectangularSensorVS,i=new ShaderSource({sources:[RectangularSensor$1,i.shaderSource,RectangularSensorScanPlaneFS]});e._scanePlaneSP=ShaderProgram.replaceCache({context:t,shaderProgram:e._scanePlaneSP,vertexShaderSource:a,fragmentShaderSource:i,attributeLocations:attributeLocations})}function createShaderProgram(e,t,i){var a=_0x1658de;createCommonShaderProgram(e,t,i),e[a(3197)]&&createScanPlaneShaderProgram(e,t,i)}function createRenderState(e,t,i){var a=_0x1658de;i?(e[a(3429)]=RenderState[a(491)]({depthTest:{enabled:!t},depthMask:!1,blending:BlendingState[a(2102)],cull:{enabled:!0,face:CullFace.BACK}}),e._backFaceRS=RenderState.fromCache({depthTest:{enabled:!t},depthMask:!1,blending:BlendingState.ALPHA_BLEND,cull:{enabled:!0,face:CullFace.FRONT}}),e._pickRS=RenderState.fromCache({depthTest:{enabled:!t},depthMask:!1,blending:BlendingState[a(2102)]})):(e[a(3429)]=RenderState.fromCache({depthTest:{enabled:!t},depthMask:!0}),e._pickRS=RenderState.fromCache({depthTest:{enabled:!0},depthMask:!0}))}function createCommand(e,t,i,a,n,s,r,o,l,c,h,u){var _=796,p=1094,m=1436,d=1018,f=796,y=1650,v=2935,g=2748,C=_0x1658de;c&&i&&(i[C(438)]=r,i[C(2312)]=n,i[C(_)]=s,i[C(1650)]=combine$1(o,e[C(p)]._uniforms),i.uniformMap[C(421)]=function(){return-1},i.pass=h,i[C(m)]=l,e._colorCommands[C(d)](i)),t.vertexArray=r,t.renderState=a,t[C(f)]=s,t[C(y)]=combine$1(o,e._material[C(1136)]),u&&(t.uniformMap[C(2896)]=function(){return 1}),t[C(v)]=h,t.modelMatrix=l,e[C(g)][C(d)](t)}function createCommands(e,t){var i=2822,a=1013,n=3719,s=3306,r=3197,o=3938,l=_0x1658de,i=(e._colorCommands[l(i)]=0,t?Pass.TRANSLUCENT:Pass.OPAQUE);e[l(4041)]&&createCommand(e,e._sectorFrontCommand,e._sectorBackCommand,e[l(3429)],e[l(3719)],e[l(3306)],e._sectorVA,e._uniforms,e._computedModelMatrix,t,i),e.showSectorLines&&createCommand(e,e._sectorLineCommand,void 0,e._frontFaceRS,e._backFaceRS,e._sp,e._sectorLineVA,e._uniforms,e[l(a)],t,i,!0),e.showSectorSegmentLines&&createCommand(e,e._sectorSegmentLineCommand,void 0,e._frontFaceRS,e[l(n)],e._sp,e._sectorSegmentLineVA,e._uniforms,e[l(1013)],t,i,!0),e[l(1475)]&&createCommand(e,e._domeFrontCommand,e._domeBackCommand,e._frontFaceRS,e._backFaceRS,e[l(s)],e._domeVA,e._uniforms,e._computedModelMatrix,t,i),e.showDomeLines&&createCommand(e,e._domeLineCommand,void 0,e._frontFaceRS,e[l(3719)],e._sp,e._domeLineVA,e._uniforms,e._computedModelMatrix,t,i,!0),e[l(r)]&&createCommand(e,e._scanPlaneFrontCommand,e._scanPlaneBackCommand,e[l(3429)],e._backFaceRS,e[l(o)],e[l(2969)],e[l(1319)],e._computedScanPlaneModelMatrix,t,i)}var AssociativeArray=Cesium__namespace[_0x1658de(2232)],Cartesian3$2=Cesium__namespace.Cartesian3,Color=Cesium__namespace[_0x1658de(3096)],defined$2=Cesium__namespace.defined,DeveloperError=Cesium__namespace[_0x1658de(2478)],Matrix3$1=Cesium__namespace.Matrix3,Matrix4=Cesium__namespace.Matrix4,Quaternion$1=Cesium__namespace[_0x1658de(373)],MaterialProperty=Cesium__namespace[_0x1658de(2843)],Property=Cesium__namespace[_0x1658de(2830)],matrix3Scratch=new Matrix3$1,cachedPosition=new Cartesian3$2,cachedGazePosition=new Cartesian3$2,cachedOrientation=new Quaternion$1,diffVectorScratch=new Cartesian3$2,orientationScratch=new Quaternion$1;function removePrimitive(e,t,i){var a=_0x1658de,n=t[e.id];if(Cesium__namespace.defined(n)){n=n.primitive;try{i.remove(n)}catch(e){}n.isDestroyed&&!n[a(2103)]()&&n.destroy(),delete t[e.id]}}function RectangularSensorVisualizer(e,t){var i=379,a=1723,n=927,s=_0x1658de;if(!defined$2(e))throw new DeveloperError("scene is required.");if(!defined$2(t))throw new DeveloperError("entityCollection is required.");t[s(978)].addEventListener(RectangularSensorVisualizer.prototype[s(i)],this),this[s(a)]=e,this._primitives=e.primitives,this._entityCollection=t,this._hash={},this._entitiesToVisualize=new AssociativeArray,this._onCollectionChanged(t,t[s(n)],[],[])}RectangularSensorVisualizer.prototype.update=function(e){var t=2089,i=2609,a=2609,n=1867,s=3925,r=2371,o=1436,l=3437,c=2510,h=1629,u=3350,_=2552,p=2089,m=4041,d=3660,f=1094,y=2994,v=2089,g=388,C=_0x1658de;if(!defined$2(e))throw new DeveloperError("time is required.");for(var x,b,k,P=this[C(1801)].values,w=this[C(3988)],S=this[C(2415)],T=0,H=P.length;T<H;T++){var M=P[T],E=M._rectangularSensorMars,A=w[M.id],L=M[C(1216)]&&M.isAvailable(e)&&Property[C(t)](E._show,e,!0);if(L&&(x=Property[C(2609)](M._position,e,cachedPosition),O=Property[C(i)](M._orientation,e,cachedOrientation),R=Property[C(2609)](E._radius,e),b=Property[C(a)](E._xHalfAngle,e),k=Property[C(2609)](E._yHalfAngle,e),L=defined$2(x)&&defined$2(b)&&defined$2(k)),L){L=defined$2(A)?A[C(1867)]:void 0,M=(defined$2(L)||((L=new RectangularSensorPrimitive).id=M,S.add(L),w[M.id]=A={primitive:L,position:void 0,orientation:void 0}),Property.getValueOrUndefined(E[C(2943)],e));if(defined$2(M)){var D=Property.getValueOrUndefined(M._position,e,cachedGazePosition);if(!defined$2(x)||!defined$2(D))continue;var I=Cartesian3$2[C(3446)](x,D,diffVectorScratch),F=Cartesian3$2.angleBetween(Cesium__namespace.Cartesian3.UNIT_Z,I),I=Cartesian3$2[C(706)](Cesium__namespace[C(784)][C(3704)],I,diffVectorScratch),O=Quaternion$1[C(1649)](I,F-Math.PI,orientationScratch),R=Cartesian3$2.distance(x,D);L.modelMatrix=Matrix4.fromRotationTranslation(Matrix3$1[C(s)](O,matrix3Scratch),x,L.modelMatrix)}else Cartesian3$2.equals(x,A.position)&&Quaternion$1[C(2204)](O,A[C(r)])||(defined$2(O)?(L[C(o)]=Matrix4[C(l)](Matrix3$1[C(s)](O,matrix3Scratch),x,L.modelMatrix),A[C(2532)]=Cartesian3$2.clone(x,A.position),A[C(2371)]=Quaternion$1.clone(O,A.orientation)):(L[C(o)]=Cesium__namespace[C(c)][C(2073)](x),A[C(2532)]=Cartesian3$2[C(3060)](x,A.position)));L.show=!0,L.gaze=M,L.radius=R,L[C(h)]=b,L[C(u)]=k,L.lineColor=Property.getValueOrDefault(E[C(1532)],e,Color.WHITE),L[C(_)]=Property.getValueOrDefault(E._showSectorLines,e,!0),L.showSectorSegmentLines=Property[C(p)](E._showSectorSegmentLines,e,!0),L[C(m)]=Property[C(t)](E[C(d)],e,!0),L.material=MaterialProperty.getValue(e,E[C(f)],L.material),L.showDomeSurfaces=Property.getValueOrDefault(E[C(2198)],e,!0),L[C(y)]=Property[C(t)](E._showDomeLines,e,!0),L.showIntersection=Property[C(v)](E._showIntersection,e,!0),L.intersectionColor=Property.getValueOrDefault(E._intersectionColor,e,Color.WHITE),L.intersectionWidth=Property[C(2089)](E._intersectionWidth,e,1),L.showThroughEllipsoid=Property[C(p)](E._showThroughEllipsoid,e,!1),L.scanPlaneMode=Property.getValueOrDefault(E._scanPlaneMode,e),L.scanPlaneColor=Property.getValueOrDefault(E[C(g)],e,Color.WHITE),L[C(3197)]=Property[C(2089)](E._showScanPlane,e,!0),L.scanPlaneRate=Property.getValueOrDefault(E._scanPlaneRate,e,1)}else defined$2(A)&&(A[C(n)].show=!1)}return!0},RectangularSensorVisualizer.prototype.isDestroyed=function(){return!1},RectangularSensorVisualizer[_0x1658de(2385)].destroy=function(){for(var e,t=this._entitiesToVisualize.values,i=this._hash,a=this._primitives,n=t.length-1;-1<n;n--)removePrimitive(t[n],i,a);for(e in this)delete this[e];return Cesium__namespace.destroyObject(this)},RectangularSensorVisualizer.prototype[_0x1658de(379)]=function(e,t,i,a){var n=_0x1658de,s=this._entitiesToVisualize;if(s){for(var r,o=this._hash,l=this._primitives,c=t.length-1;-1<c;c--)r=t[c],defined$2(r._rectangularSensorMars)&&defined$2(r._position)&&s.set(r.id,r);for(c=a.length-1;-1<c;c--)r=a[c],defined$2(r._rectangularSensorMars)&&defined$2(r[n(1111)])?s.set(r.id,r):(removePrimitive(r,o,l),s[n(4071)](r.id));for(c=i[n(2822)]-1;-1<c;c--)removePrimitive(r=i[c],o,l),s.remove(r.id)}};var originalDefaultVisualizersCallback=Cesium__namespace.DataSourceDisplay[_0x1658de(2088)],RectangularSensor=(Cesium__namespace.DataSourceDisplay.defaultVisualizersCallback=function(e,t,i){var a=2557,n=_0x1658de,s=i[n(2738)];return originalDefaultVisualizersCallback(e,t,i)[n(a)]([new RectangularSensorVisualizer(e,s)])},function(){var e=402,t=3752,a=2053,n=3010,s=3277,r=585,o=2818,l=2244,i=2532,c=2492,h=402,u=_0x1658de,_=(_inherits(p,BasePointEntity),_createSuper(p));function p(){var e=_0x236b;return _classCallCheck(this,p),_[e(2026)](this,arguments)}return _createClass(p,[{key:"entityGraphic",get:function(){var e,t=_0x236b;return null==(e=this._entity)?void 0:e[t(2703)]}},{key:u(e),get:function(){var e=u;return this[e(c)][e(h)]},set:function(e){var t=u;this[t(2492)][t(402)]=e,this._entity&&(this.entityGraphic.radius=e)}},{key:"_mountedHook",value:function(){var e=u,t={position:this[e(i)],orientation:this.getOrientation(),rectangularSensorMars:new RectangularSensorGraphics(RectangularSensorStyleConver.toCesiumVal(this.style))};this._entity=this[e(1922)](t),this[e(2492)].label&&this._addLabel()}},{key:"_updateStyleHook",value:function(e,t){var i,a=u;this[a(2981)]&&this._state===State[a(r)]&&((i=this[a(o)][a(l)]).entities.remove(this._entity),delete this[a(2981)],this._mountedHook(),i.entities.add(this._entity))}},{key:"_updateEntityOpacity",value:function(e,t){var i,a=u,e=null==e?void 0:e.material;return!!e&&(i=getCesiumColor(e.color,Cesium__namespace.Color.WHITE),Cesium__namespace[a(s)](this._material_color_alpha)||(this._material_color_alpha=i[a(3629)]),e.color=i.withAlpha(this._material_color_alpha*t),!0)}},{key:u(t),value:function(e){var t=u,i=getCesiumColor(this[t(3135)][t(365)],Cesium__namespace[t(3096)].WHITE),i=(Cesium__namespace[t(3277)](this[t(a)])||(this._lineColor_alpha=i.alpha),this.entityGraphic.lineColor=i.withAlpha(this[t(2053)]*e),getCesiumColor(this.entityGraphic.scanPlaneColor,Cesium__namespace.Color.WHITE));Cesium__namespace[t(3277)](this._scanPlaneColor_alpha)||(this._scanPlaneColor_alpha=i.alpha),this.entityGraphic.scanPlaneColor=i.withAlpha(this[t(n)]*e)}},{key:"_style2Json",value:function(e,t){return RectangularSensorStyleConver.toJSON(e,t,!0)}}]),p}()),DEF_STYLE$l=(register$4(_0x1658de(3332),RectangularSensor,!0),{distance:.1,perPositionHeight:!0,showFrustum:!1,opacity:1,flipx:!1,flipy:!1}),Video2D=function(){var e=2098,t=2533,a=1997,n=349,s=1292,r=1488,o=2532,i=1125,l=3817,c=3817,h=1592,u=1162,_=1162,p=1049,m=1329,d=2518,f=977,y=1124,v=620,g=2391,C=373,x=2818,b=2329,k=2460,P=1192,w=2532,S=3817,T=2532,M=378,E=2574,A=1824,L=2581,D=784,I=2493,H=784,F=2818,N=4071,G=1613,z=2981,B=1567,j=888,V=2897,$=1613,U=2492,W=2951,J=1203,q=1377,Y=2983,Z=3853,X=2981,Q=3072,K=1377,ee=1336,te=2981,ie=2492,ae=2492,ne=977,se=3817,re=1937,oe=3118,le=2070,ce=2033,he=1111,ue=1018,_e=4019,pe=2532,O=_0x1658de,me=(_inherits(R,PolygonEntity),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),i[t(2492)]=_objectSpread2(_objectSpread2({},DEF_STYLE$l),i.style||{}),e=me.call(this,i),i.position&&(e[t(pe)]=i.position),e._videoPlay=!0,e}return _createClass(R,[{key:"czmObjectEx",get:function(){var e=_0x236b,t=[];return this[e(2329)]&&t[e(ue)](this._frustumPrimitive),this._entity_label&&t.push(this[e(_e)]),t=this._entity_outlines?t.concat(this._entity_outlines):t}},{key:O(2532),get:function(){return getPositionValue(this._position)},set:function(e){var t=O;this._point=LngLatPoint.parse(e),this[t(he)]=null==(e=this._point)?void 0:e[t(3600)](),this._entity&&(this[t(3639)](),this._updateDraw(),this[t(709)]())}},{key:"point",get:function(){return this._point}},{key:"coordinate",get:function(){return this.point.toArray()}},{key:"targetPosition",get:function(){return this.options.targetPosition},set:function(e){var t,i,a,n=O;this.options.targetPosition=e,this._map&&(t=this.position)&&(e=LngLatPoint.toCartesian(e,null==(e=this[n(se)])?void 0:e.currentTime),this.distance=Cesium__namespace.Cartesian3[n(re)](t,e),e=Cesium__namespace.Cartesian3.normalize(Cesium__namespace.Cartesian3.subtract(e,t,new Cesium__namespace.Cartesian3),new Cesium__namespace[n(784)]),i=Cesium__namespace[n(784)].normalize(t,new Cesium__namespace[n(784)]),(a=new Cesium__namespace[n(1075)](this._map[n(oe)])).position=t,a[n(le)]=e,a.up=i,this.style.heading=Cesium__namespace.Math.toDegrees(a.heading),this.style.pitch=Cesium__namespace.Math.toDegrees(a[n(ce)]),this[n(2184)](),this._bindHierarchy())}},{key:"heading",get:function(){var e;return null!=(e=this[O(2492)].heading)?e:0},set:function(e){var t=O;this[t(ae)][t(ne)]=e,this._updateDraw(),this._bindHierarchy()}},{key:"pitch",get:function(){var e;return null!=(e=this.style.pitch)?e:0},set:function(e){var t=O;this[t(2492)].pitch=e,this._updateDraw(),this[t(709)]()}},{key:"roll",get:function(){var e=O;return null!=(e=this.style[e(2574)])?e:0},set:function(e){this[O(ie)].roll=e,this._updateDraw(),this._bindHierarchy()}},{key:"angle",get:function(){return this.style.angle},set:function(e){var t=O;this.style[t(3879)]=e,this._updateDraw(),this[t(709)]()}},{key:O(1173),get:function(){var e;return null!=(e=this.style.angle2)?e:this.style.angle},set:function(e){var t=O;this.style.angle2=e,this[t(2184)](),this._bindHierarchy()}},{key:O(1937),get:function(){return this.style.distance},set:function(e){this.style.distance=e,this._updateDraw(),this._bindHierarchy()}},{key:O(e),get:function(){return this.style.opacity},set:function(e){var t=O;this.style.opacity=e,this._entity&&(this._entity[t(K)][t(ee)][t(965)]._value.alpha=e,this[t(te)].polygon.material.transparent=1!==e)}},{key:"flipx",get:function(){var e=O;return this.style[e(Q)]},set:function(e){var t=O;this.style.flipx=e,this._entity&&(this[t(X)][t(1377)].material.flipx=e)}},{key:"showFrustum",get:function(){return this[O(2492)].showFrustum},set:function(e){this.style.showFrustum=e,this._frustumPrimitive.show=e}},{key:"play",get:function(){return this[O(Z)]},set:function(e){var t=O;if(this._videoPlay=e,this._videoContainer)try{this._videoPlay?this[t(2983)].play():this[t(Y)].pause()}catch(e){}}},{key:"updateVideoContainer",value:function(){var e,t=O;this._hasRemoveElement&&null!=(e=this._videoContainer)&&e[t(V)]&&(this._videoContainer.parentNode.removeChild(this._videoContainer),delete this[t($)],delete this._videoContainer),this.style.url?(this._videoContainer=createVideo(this[t(U)].url,this.style[t(W)],"",document.body),this._videoContainer.style.display="none",this._hasRemoveElement=!0):this.style.container&&(this._videoContainer=this.style[t(J)]),this._videoContainer&&(this[t(2981)][t(q)].material=new Image2MaterialProperty({image:this._videoContainer,color:Cesium__namespace[t(3096)].WHITE.withAlpha(this[t(2492)][t(2098)]),transparent:1!==this.style.opacity,flipx:this.style[t(3072)],flipy:this.style[t(1562)]}))}},{key:"_mountedHook",value:function(){var e=O;_get(_getPrototypeOf(R.prototype),"_mountedHook",this)[e(B)](this),this.options.targetPosition&&(this[e(j)]=this.options.targetPosition),this.updateVideoContainer()}},{key:"_updateStyleHook",value:function(e,t){_get(_getPrototypeOf(R.prototype),"_updateStyleHook",this).call(this,e,t),(t.url||t.container)&&this.updateVideoContainer()}},{key:"_addedHook",value:function(e){var t=O;this._updateDraw(),this[t(709)](),this.dataSource[t(2738)].add(this[t(z)])}},{key:"_removedHook",value:function(){var e,t=O;this._frustumPrimitive&&(this[t(F)].primitiveCollection[t(N)](this._frustumPrimitive),delete this._frustumPrimitive),this[t(2244)].entities[t(4071)](this._entity),this._hasRemoveElement&&null!=(e=this._videoContainer)&&e.parentNode&&(this._videoContainer.parentNode.removeChild(this._videoContainer),delete this[t(G)],delete this[t(2983)])}},{key:"_updateDraw",value:function(){var e,t,i,a,n,s,r,o=O;this._map&&(a=this[o(w)])&&(e=new Cesium__namespace.HeadingPitchRoll(Cesium__namespace.Math.toRadians(this.heading),Cesium__namespace.Math.toRadians(this.pitch),Cesium__namespace.Math.toRadians(this.roll)),(r=new Cesium__namespace.Camera(this[o(S)].scene))[o(T)]=a,r.frustum.fov=Cesium__namespace.Math[o(2581)](2*this.angle),r[o(M)].aspectRatio=this.angle/this.angle2,r.frustum.near=.01,r.frustum.far=this.style.distance,r.setView({destination:a,orientation:{heading:e.heading,pitch:e.pitch,roll:e[o(E)]}}),this._createFrustumPrimitive(r),e=r.directionWC,n=r[o(A)],s=r.rightWC,a=new Cesium__namespace.Ray(a,e),e=Cesium__namespace.Ray.getPoint(a,this.style.distance,new Cesium__namespace[o(784)]),a=Cesium__namespace.Math[o(L)](this.angle),a=Math.tan(a),r=(a=this.style.distance*a)/r.frustum.aspectRatio,t=Math.sqrt(a*a+r*r),i=new Cesium__namespace.Cartesian3,s=new Cesium__namespace[o(2493)](e,s),s=Cesium__namespace.Ray.getPoint(s,a,new Cesium__namespace[o(784)]),a=new Cesium__namespace.Ray(s,n),Cesium__namespace.Ray[o(3035)](a,r,i),a=new Cesium__namespace.Cartesian3,n=Cesium__namespace[o(D)].negate(n,new Cesium__namespace.Cartesian3),s=new Cesium__namespace[o(I)](s,n),Cesium__namespace[o(2493)].getPoint(s,r,a),n=new Cesium__namespace.Cartesian3,s=Cesium__namespace.Cartesian3.normalize(Cesium__namespace.Cartesian3[o(3446)](e,i,new Cesium__namespace[o(784)]),new Cesium__namespace.Cartesian3),r=new Cesium__namespace[o(2493)](e,s),Cesium__namespace.Ray.getPoint(r,t,n),s=new Cesium__namespace.Cartesian3,r=Cesium__namespace.Cartesian3.normalize(Cesium__namespace.Cartesian3.subtract(e,a,new Cesium__namespace.Cartesian3),new Cesium__namespace[o(H)]),o=new Cesium__namespace.Ray(e,r),Cesium__namespace.Ray.getPoint(o,t,s),this._positions=[s,i,a,n])}},{key:"_bindHierarchy",value:function(){var t,e=O,i=this;this._entity&&(this._position instanceof Cesium__namespace.CallbackProperty||this._position instanceof Cesium__namespace.SampledPositionProperty?(t=new Cesium__namespace[e(2216)],this._entity.polygon.hierarchy=new Cesium__namespace.CallbackProperty(function(e){return i._updateDraw(),t.positions=i._positions,t},!1)):this._entity.polygon[e(P)]=new Cesium__namespace.PolygonHierarchy(this._positions))}},{key:"_createFrustumPrimitive",value:function(e){var t=O,i=e[t(g)],a=e.upWC,n=e[t(3869)],n=Cesium__namespace.Cartesian3.negate(n,new Cesium__namespace[t(784)]),s=new Cesium__namespace.Matrix3,n=(Cesium__namespace.Matrix3.setColumn(s,0,n,s),Cesium__namespace.Matrix3.setColumn(s,1,a,s),Cesium__namespace[t(3915)].setColumn(s,2,i,s),Cesium__namespace[t(C)].fromRotationMatrix(s,new Cesium__namespace.Quaternion));this._frustumPrimitive&&this[t(x)].primitiveCollection.remove(this._frustumPrimitive),this[t(b)]=new Cesium__namespace.Primitive({geometryInstances:new Cesium__namespace.GeometryInstance({id:this.id,geometry:new Cesium__namespace.FrustumOutlineGeometry({origin:e[t(2532)],orientation:n,frustum:e.frustum,_drawNearPlane:!0}),attributes:{color:Cesium__namespace.ColorGeometryInstanceAttribute.fromColor(Cesium__namespace.Color.AZURE)}}),appearance:new Cesium__namespace[t(k)]({translucent:!1,flat:!0}),asynchronous:!1,show:this.showFrustum&&this.show}),this[t(2818)].primitiveCollection.add(this._frustumPrimitive)}},{key:O(t),value:function(e,t){e=getAttrVal(e,{onlySimpleType:!0});return this.style.container&&(e.container="document.getElementById(".concat(this._videoContainer.id,")")),e}},{key:"_getGeoJsonGeometry",value:function(e){return{type:"Point",coordinates:this[O(843)](null==e?void 0:e.noAlt)}}},{key:"getCoordinate",value:function(e){var t=O;return this.point?this[t(v)].toArray(e):[]}},{key:"setView",value:function(){var e=O;this._map&&this._map.camera[e(4110)]({destination:this.position,orientation:{heading:Cesium__namespace.Math.toRadians(this[e(f)]),pitch:Cesium__namespace[e(y)].toRadians(this.pitch),roll:Cesium__namespace.Math.toRadians(this[e(2574)])}})}},{key:"startDraw",value:function(e){var t=O;if(this[t(m)])return this;if(this._enabledDraw=!0,e&&this.addTo(e),!this._map)throw new Error("绘制时_map不能为空,请将对象添加到图层,并且图层已添加到Map");this._map._setEditCursor(!0),this.enableControl(!1),this._startDrawHook(),this.fire(EventType[t(d)],{drawtype:this[t(1488)],graphic:this},!0)}},{key:"stopDraw",value:function(){var e,t=O;if(!this[t(1329)])return this;this._stopDrawHook(),this._map._setEditCursor(!1),this.enableControl(!0),this._map.closeSmallTooltip(),this._enabledDraw=!1,this.position&&this[t(1937)]?(this.fire(EventType.drawCreated,{drawtype:this.type,graphic:this},!0),null!=(e=this[t(h)])&&e[t(u)]&&this[t(1592)][t(_)](this),null!=(e=this.options)&&null!=(e=e._promise)&&e.resolve&&this[t(1592)]._promise[t(p)](this)):this.remove(!0)}},{key:"_startDrawHook",value:function(){var e=O;this[e(l)].on(EventType.click,this._onClickHandler,this),this[e(c)].on(EventType.mouseMove,this._onMouseMoveHandler,this)}},{key:O(802),value:function(){var e=O;this._map.off(EventType.click,this._onClickHandler,this),this._map.off(EventType[e(i)],this._onMouseMoveHandler,this)}},{key:"_onClickHandler",value:function(e){var t=O,i=e[t(2001)];i&&(this.fire(EventType.drawAddPoint,_objectSpread2(_objectSpread2({},e),{},{drawtype:this[t(r)],graphic:this}),!0),this[t(o)]?(this.targetPosition=i,this.stopDraw(),this[t(1997)](EventType.drawCreated,e)):this.position=i)}},{key:O(1856),value:function(e){var t=O,i=e.cartesian;i&&(this.position?(this.targetPosition=i,this[t(a)](EventType[t(2852)],_objectSpread2(_objectSpread2({},e),{},{drawtype:this[t(1488)],graphic:this}),!0),this._map.openSmallTooltip(e[t(2031)],this._map[t(n)](t(s)))):this._map.openSmallTooltip(e.endPosition,this._map.getLangText("_单击开始绘制")))}}]),R}(),PitEntity=(register$4("video2D",Video2D,!0),function(){var c=1018,a=2492,n=2981,s=2075,r=2492,o=1660,i=2492,l=872,h=3159,u=2822,_=2492,p=_0x1658de,m=(_inherits(d,BasePolyEntity),_createSuper(d));function d(){var e,t=_0x236b,i=0<arguments[t(u)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,d),(i=m.call(this,i)).style.diffHeight=null!=(e=i[t(_)][t(872)])?e:10,i[t(2492)].splitNum=null!=(e=i.style.splitNum)?e:50,i}return _createClass(d,[{key:p(872),get:function(){return this.style.diffHeight},set:function(e){var t=p;this[t(i)][t(l)]=e,this._entity&&(e=this._minHeight-this.style.diffHeight,this[t(2981)].polygon[t(h)]=e,e=Array(this._positionsWall.length).fill(e),this[t(2981)][t(2008)][t(995)]=e)}},{key:"_mountedHook",value:function(){var e=p,t=this[e(1592)].data||this._getPitData(),i=(this.data=t,{polygon:new Cesium__namespace.PolygonGraphics({hierarchy:new Cesium__namespace.PolygonHierarchy(this.positions),perPositionHeight:!1,height:t.height,material:new Cesium__namespace.ImageMaterialProperty({image:this.style.imageBottom,repeat:new Cesium__namespace.Cartesian2(2,2),transparent:!1}),fill:!0,outline:!1}),wall:{positions:t.positionsWall,minimumHeights:t[e(995)],maximumHeights:t[e(2527)],fill:!0,material:new Cesium__namespace[e(2186)]({image:this[e(a)][e(613)],repeat:new Cesium__namespace.Cartesian2(1,1)}),outline:!1}});this[e(n)]=this[e(1922)](i),this._minHeight=t.minHeight,this._positionsWall=t.positionsWall,this[e(s)]=t.maximumHeights,this[e(r)].label&&this[e(o)]()}},{key:"_getPitData",value:function(){for(var e=p,t=this.positions,i=interPolyline({scene:this._map[e(3118)],positions:t.concat(t[0]),splitNum:this.style.splitNum}),a=[],n=Number.MAX_VALUE,s=0,r=i.length;s<r;s++){var o=Cesium__namespace[e(3428)][e(3258)](i[s]),n=Math.min(n,o.height);a.push(o.height)}t=n-this.style.diffHeight;return{height:t,minHeight:n,positionsWall:i,minimumHeights:Array(i.length)[e(1877)](t),maximumHeights:a}}},{key:"setUpHeight",value:function(e){for(var t=p,i=this._minHeight-this.style.diffHeight,a=i+e,n=[],s=[],r=0,o=this._wallHeights.length;r<o;r++){var l=this._wallHeights[r];s[t(c)](l+e),n[t(1018)](a)}this._entity&&(this[t(2981)][t(1377)].height=i,this._entity.wall.minimumHeights=n,this._entity.wall[t(2527)]=s)}}]),d}()),AlgorithmUtil=(register$4(_0x1658de(917),PitEntity),function(){var e=3666,a=1156,u=1018,o=3280,h=2822,_=3318,d=1822,f=1018,r=1320,p=1320,m=1320,t=2255,l=3900,n=1868,y=3900,v=3992,g=_0x1658de;function i(){var e=_0x236b;_classCallCheck(this,i),this.HALF_PI=Math.PI/2,this[e(3992)]=1e-4}return _createClass(i,[{key:"toRadians",value:function(e){return e*Math.PI/180}},{key:"getThirdPoint",value:function(e,t,i,a,n){e=this.getAzimuth(e,t),n=n?e+i:e-i,e=a*Math.cos(n),i=a*Math.sin(n);return[t[0]+e,t[1]+i]}},{key:"getAzimuth",value:function(e,t){var i=0,a=Math.asin(Math.abs(t[1]-e[1])/this.MathDistance(e,t));return t[1]>=e[1]&&t[0]>=e[0]?i=a+Math.PI:t[1]>=e[1]&&t[0]<e[0]?i=2*Math.PI-a:t[1]<e[1]&&t[0]<e[0]?i=a:t[1]<e[1]&&t[0]>=e[0]&&(i=Math.PI-a),i}},{key:g(3900),value:function(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}},{key:"isClockWise",value:function(e,t,i){return!!i&&(i[1]-e[1])*(t[0]-e[0])>(t[1]-e[1])*(i[0]-e[0])}},{key:"getBisectorNormals",value:function(e,t,i,a){var n=g,s=this.getNormal(t,i,a),r=null,o=null,l=null,c=null,h=null,u=Math.sqrt(s[0]*s[0]+s[1]*s[1]),_=s[0]/u,s=s[1]/u,p=this[n(3900)](t,i),m=this[n(y)](i,a),o=(h=u>this[n(v)]?this.isClockWise(t,i,a)?(r=[c=i[0]-(l=e*p)*s,h=i[1]+l*_],c=i[0]+(l=e*m)*s,i[1]-l*_):(r=[c=i[0]+(l=e*p)*s,h=i[1]-l*_],c=i[0]-(l=e*m)*s,i[1]+l*_):(r=[c=i[0]+e*(t[0]-i[0]),h=i[1]+e*(t[1]-i[1])],c=i[0]+e*(a[0]-i[0]),i[1]+e*(a[1]-i[1])),[c,h]);return[r,o]}},{key:"getCubicValue",value:function(e,t,i,a,n){var s=1-(e=Math.max(Math.min(e,1),0)),r=e*e,o=r*e,l=s*s,c=l*s;return[c*t[0]+3*l*e*i[0]+3*s*r*a[0]+o*n[0],c*t[1]+3*l*e*i[1]+3*s*r*a[1]+o*n[1]]}},{key:"getNormal",value:function(e,t,i){var a=e[0]-t[0],e=e[1]-t[1],n=Math.sqrt(a*a+e*e),n=(a/=n,e/=n,i[0]-t[0]),i=i[1]-t[1],t=Math.sqrt(n*n+i*i);return[a+(n/=t),e+(i/=t)]}},{key:"getArcPoints",value:function(e,t,i,a){for(var n=g,s=[],r=(r=a-i)<0?r+2*Math.PI:r,o=0;o<=100;o++){var l=i+r*o/100,c=e[0]+t*Math[n(3007)](l),l=e[1]+t*Math.sin(l);s.push([c,l])}return s}},{key:g(1502),value:function(e,t,i){var a=g;return[e[0]+t*Math[a(3007)](i),e[1]+t*Math[a(n)](i)]}},{key:"getBaseLength",value:function(e){return Math[g(2127)](this.wholeDistance(e),.99)}},{key:g(e),value:function(a){var n=g,s=0,r=this;return a&&Array[n(t)](a)&&0<a.length&&a.forEach(function(e,t){var i=n;t<a.length-1&&(s+=r[i(l)](e,a[t+1]))}),s}},{key:"getArrowHeadPoints",value:function(e){var t,i,a,n,s,r,o,l,c,h=g;return!e||(t=e.points).length<2?[]:(n=e[h(465)],a=e.tailRight,s=e.headTailFactor,o=e.neckWidthFactor,c=e.neckHeightFactor,r=e.headWidthFactor,e=e.headHeightFactor,e=(l=this.getBaseLength(t))*e,i=t[t[h(2822)]-1],l=this.MathDistance(i,t[t[h(2822)]-2]),a=(e=(n=this.MathDistance(n,a))*s<e?n*s:e)*r,n=e*o,s=(e=l<e?l:e)*c,r=this[h(p)](t[t.length-2],i,0,e,!0),o=this[h(m)](t[t.length-2],i,0,s,!0),l=this.getThirdPoint(i,r,this.HALF_PI,a,!1),c=this.getThirdPoint(i,r,this[h(2915)],a,!0),[this.getThirdPoint(i,o,this.HALF_PI,n,!1),l,i,c,this.getThirdPoint(i,o,this.HALF_PI,n,!0)])}},{key:g(1799),value:function(e){var t,i,a,n,s=g;if(e)return t=e.points,n=e.tailWidthFactor,e=e.swallowTailFactor,n=this.getBaseLength(t)*n,i=this[s(1320)](t[1],t[0],this[s(2915)],n,!1),a=this.getThirdPoint(t[1],t[0],this.HALF_PI,n,!0),n=n*e,[i,this[s(r)](t[1],t[0],0,n,!0),a]}},{key:g(4047),value:function(e,t,i,a){for(var n=g,s=this.wholeDistance(e),r=this.getBaseLength(e)*a,o=(r-this.MathDistance(t,i))/2,l=0,c=[],h=[],u=1;u<e[n(2822)]-1;u++){var _=this[n(d)](e[u-1],e[u],e[u+1])/2,p=(r/2-(l+=this[n(3900)](e[u-1],e[u]))/s*o)/Math.sin(_),m=this.getThirdPoint(e[u-1],e[u],Math.PI-_,p,!0),_=this[n(1320)](e[u-1],e[u],_,p,!1);c[n(f)](m),h.push(_)}return c.concat(h)}},{key:g(1822),value:function(e,t,i){e=this.getAzimuth(t,e)-this.getAzimuth(t,i);return e<0?e+2*Math.PI:e}},{key:g(2087),value:function(e){var t=g;if(e[t(h)]<=2)return e;var i=[],a=e.length-2-1;i.push(e[0]);for(var n=0;n<=a;n++)for(var s=0;s<=1;s+=.05){for(var r=0,o=0,l=0;l<=2;l++){var c=this[t(_)](l,s);r+=c*e[n+l][0],o+=c*e[n+l][1]}i.push([r,o])}return i.push(e[e.length-1]),i}},{key:"getQuadricBSplineFactor",value:function(e,t){var i=0;return 0===e?i=Math.pow(t-1,2)/2:1===e?i=(-2*Math.pow(t,2)+2*t+1)/2:2===e&&(i=Math.pow(t,2)/2),i}},{key:"Mid",value:function(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2,(e[2]||0+t[2]||0)/2]}},{key:"getCircleCenterOfThreePoints",value:function(e,t,i){var a=g,n=e[2]||0,s=[(e[0]+t[0])/2,(e[1]+t[1])/2,n],t=[s[0]-e[1]+t[1],s[1]+e[0]-t[0],n],r=[(e[0]+i[0])/2,(e[1]+i[1])/2,n],e=[r[0]-e[1]+i[1],r[1]+e[0]-i[0],n];return this[a(o)](s,t,r,e)}},{key:"getIntersectPoint",value:function(e,t,i,a){return e[1]===t[1]?[(a[0]-i[0])/(a[1]-i[1])*(e[1]-i[1])+i[0],e[1]]:i[1]===a[1]?[(t[0]-e[0])/(t[1]-e[1])*(i[1]-e[1])+e[0],i[1]]:(t=(t[0]-e[0])/(t[1]-e[1]),a=(a[0]-i[0])/(a[1]-i[1]),[t*(i=(t*e[1]-e[0]-a*i[1]+i[0])/(t-a))-t*e[1]+e[0],i,e[2]||0])}},{key:"getBezierPoints",value:function(e){var t=g;if(e.length<=2)return e;for(var i=[],a=e.length-1,n=0;n<=1;n+=.01){for(var s=0,r=0,o=0;o<=a;o++){var l=this.getBinomialFactor(a,o),c=Math.pow(n,o),h=Math.pow(1-n,a-o);s+=l*c*h*e[o][0],r+=l*c*h*e[o][1]}i[t(u)]([s,r])}return i}},{key:g(1156),value:function(e){var t=1;switch(e){case e<=1:t=1;break;case 2===e:t=2;break;case 3===e:t=6;break;case 24===e:t=24;break;case 5===e:t=120;break;default:for(var i=1;i<=e;i++)t*=i}return t}},{key:"getBinomialFactor",value:function(e,t){var i=g;return this.getFactorial(e)/(this.getFactorial(t)*this[i(a)](e-t))}}]),i}()),algorithmUtil=new AlgorithmUtil,minAnalge=algorithmUtil.toRadians(20),maxAnalge=algorithmUtil[_0x1658de(2581)](160),ArrowParentUtil=function(){var d=3567,f=2728,o=3900,l=936,c=3900,y=_0x1658de;function e(){_classCallCheck(this,e),this.algorithmUtil=algorithmUtil}return _createClass(e,[{key:"getMaxHeight",value:function(e){for(var t=e[0][2]||0,i=0;i<e.length;i++)e[2]>t&&(t=e[2]);return t}},{key:"getArrowHeadPoints",value:function(e,t,i){var a,n,s,r=_0x236b;return!e||e.length<2?null:((n=this.algorithmUtil[r(3567)](e)*this[r(1236)])>(t=this[r(2728)][r(o)](t,i))*this.headTailFactor&&(n=t*this[r(l)]),i=e[e.length-1],t=e[e.length-2],e=(n=(e=this.algorithmUtil[r(c)](i,t))<n?e:n)*this.headWidthFactor,a=n*this.neckWidthFactor,s=n*this.neckHeightFactor,n=this.algorithmUtil.getThirdPoint(t,i,0,n,!0),t=this.algorithmUtil.getThirdPoint(t,i,0,s,!0),s=this.algorithmUtil.getThirdPoint(i,n,Math.PI/2,e,!1),r=this[r(2728)].getThirdPoint(i,n,Math.PI/2,e,!0),[this.algorithmUtil.getThirdPoint(i,t,Math.PI/2,a,!1),s,i,r,this.algorithmUtil.getThirdPoint(i,t,Math.PI/2,a,!0)])}},{key:y(4047),value:function(e,t,i,a){for(var n=y,s=this.algorithmUtil[n(3666)](e),r=this.algorithmUtil[n(d)](e)*a,o=(r-this[n(2728)].MathDistance(t,i))/2,l=0,c=[],h=[],u=1;u<e[n(2822)]-1;u++){var _=this[n(f)].getAngleOfThreePoints(e[u-1],e[u],e[u+1])/2,p=(_<minAnalge?_=minAnalge:maxAnalge<_&&(_=maxAnalge),(r/2-(l+=this.algorithmUtil.MathDistance(e[u-1],e[u]))/s*o)/Math[n(1868)](_)),m=this.algorithmUtil.getThirdPoint(e[u-1],e[u],Math.PI-_,p,!0),_=this[n(f)].getThirdPoint(e[u-1],e[u],_,p,!1);c.push(m),h[n(1018)](_)}return c.concat(h)}}]),e}(),AttackArrowUtil=function(){var c=1980,h=2822,i=1543,a=936,u=_0x1658de,e=(_inherits(t,ArrowParentUtil),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"setOptions",value:function(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this[e(1236)]=t.headHeightFactor||.18,this.headWidthFactor=t[e(i)]||.3,this.neckHeightFactor=t.neckHeightFactor||.85,this.neckWidthFactor=t.neckWidthFactor||.15,this.headTailFactor=t[e(a)]||.8}},{key:u(3312),value:function(e,t){var i=u;if(!e||0===e[i(2822)])return e;this[i(c)]=e,this[i(3533)](t);var t=cartesians2mercators(e),a=this[i(3501)](t),n=t[t[i(h)]-1],s=t[t.length-2],n=(this[i(2728)][i(3900)](n,s)<1&&2<t.length&&t[i(4087)](t.length-2,1),t[0]),s=t[1];this[i(2728)].isClockWise(t[0],t[1],t[2])&&(n=t[1],s=t[0]);var r,o,t=[this.algorithmUtil[i(3161)](n,s)][i(2557)](t.slice(2)),l=this[i(589)](t,n,s);return!l||l[i(2822)]<4?e:(e=l[0],r=l[4],o=this.algorithmUtil.MathDistance(n,s)/this[i(2728)].getBaseLength(t),o=(t=this.getArrowBodyPoints(t,e,r,o)).length,(n=[n].concat(t[i(2090)](0,o/2))).push(e),(e=[s].concat(t.slice(o/2,o))).push(r),n=this[i(2728)].getQBSplinePoints(n),e=this.algorithmUtil.getQBSplinePoints(e),mercators2cartesians(n.concat(l,e.reverse()),a))}}]),t}(),attackArrowUtil$1=new AttackArrowUtil,AttackArrow=function(){var i=2492,e=(_inherits(t,PolygonEntity),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"hasClosure",get:function(){return!1}},{key:"getShowPositions",value:function(e){var t=_0x236b;return!e||e[t(2822)]<2?e:attackArrowUtil$1.startCompute(e,this[t(i)])}}]),t}(),AttackArrowPWUtil=(register$4(_0x1658de(3066),AttackArrow),function(){var i=3567,c=2090,h=2557,a=548,u=_0x1658de,e=(_inherits(t,ArrowParentUtil),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"setOptions",value:function(){var e=_0x236b,t=0<arguments[e(2822)]&&void 0!==arguments[0]?arguments[0]:{};this.headHeightFactor=t.headHeightFactor||.18,this.headWidthFactor=t.headWidthFactor||.3,this.neckHeightFactor=t.neckHeightFactor||.85,this[e(2111)]=t.neckWidthFactor||.15,this[e(a)]=t.tailWidthFactor||.1}},{key:u(3312),value:function(e,t){var i=u;if(!e||0===e[i(2822)])return e;this.positions=e,this.setOptions(t);var a,n,s,t=cartesians2mercators(e),r=this.getMaxHeight(t),o=this[i(1799)](t),l=this.getArrowHeadPoints(t,o[0],o[1]);return!l||l.length<4?e:(e=l[0],a=l[4],n=(t=this.getArrowBodyPoints(t,e,a,this.tailWidthFactor)).length,(s=[o[0]].concat(t.slice(0,n/2)))[i(1018)](e),(e=[o[1]].concat(t[i(c)](n/2,n))).push(a),s=this.algorithmUtil.getQBSplinePoints(s),e=this.algorithmUtil.getQBSplinePoints(e),mercators2cartesians(s[i(h)](l,e.reverse()),r))}},{key:"getTailPoints",value:function(e){var t=u,t=this.algorithmUtil[t(i)](e)*this[t(548)];return[this.algorithmUtil.getThirdPoint(e[1],e[0],Math.PI/2,t,!1),this.algorithmUtil.getThirdPoint(e[1],e[0],Math.PI/2,t,!0)]}}]),t}()),attackArrowPWUtil=new AttackArrowPWUtil,AttackArrowPW=function(){var a=3312,t=2026,n=_0x1658de,i=(_inherits(s,PolygonEntity),_createSuper(s));function s(){var e=_0x236b;return _classCallCheck(this,s),i[e(t)](this,arguments)}return _createClass(s,[{key:"hasClosure",get:function(){return!1}},{key:n(1457),value:function(e){return!e||e.length<2?e:attackArrowPWUtil.startCompute(e,this.style)}}],[{key:"getOutlinePositions",value:function(e,t){var i=n;return!e||e.length<2?e:(e=LngLatArray.toCartesians(e),attackArrowPWUtil[i(a)](e,t))}}]),s}(),AttackArrowYWUtil=(register$4(_0x1658de(1035),AttackArrowPW),function(){var u=589,_=2822,p=3567,m=2728,d=2087,i=548,a=936,n=3140,f=_0x1658de,e=(_inherits(t,ArrowParentUtil),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"setOptions",value:function(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.headHeightFactor=t.headHeightFactor||.18,this.headWidthFactor=t.headWidthFactor||.3,this.neckHeightFactor=t.neckHeightFactor||.85,this.neckWidthFactor=t[e(2111)]||.15,this[e(i)]=t.tailWidthFactor||.1,this.headTailFactor=t[e(a)]||.8,this.swallowTailFactor=t[e(n)]||1}},{key:f(3312),value:function(e,t){var i=f;if(!e||0===e.length)return e;this.positions=e,this.setOptions(t);var t=cartesians2mercators(e),a=this.getMaxHeight(t),n=[t[0],t[1]],s=n[0],n=n[1];this.algorithmUtil.isClockWise(t[0],t[1],t[2])&&(s=t[1],n=t[0]);var r,o,l,c,t=[this.algorithmUtil.Mid(s,n)].concat(t.slice(2)),h=this[i(u)](t,s,n);return!h||h[i(_)]<4?e:(r=(e=[h[0],h[4]])[0],e=e[1],l=this.algorithmUtil.MathDistance(s,n),o=(c=this.algorithmUtil[i(p)](t))*this.tailWidthFactor*this.swallowTailFactor,o=this[i(2728)].getThirdPoint(t[1],t[0],0,o,!0),l=(t=this.getArrowBodyPoints(t,r,e,l/c)).length,(c=[s].concat(t.slice(0,l/2))).push(r),(s=[n].concat(t.slice(l/2,l))).push(e),c=this[i(m)][i(d)](c),s=this.algorithmUtil.getQBSplinePoints(s),mercators2cartesians(c.concat(h,s.reverse(),[o,c[0]]),a))}}]),t}()),attackArrowUtil=new AttackArrowYWUtil,AttackArrowYW=function(){var t=2822,i=_0x1658de,e=(_inherits(a,PolygonEntity),_createSuper(a));function a(){return _classCallCheck(this,a),e.apply(this,arguments)}return _createClass(a,[{key:"hasClosure",get:function(){return!1}},{key:i(1457),value:function(e){return!e||e[i(t)]<3?e:attackArrowUtil.startCompute(e,this.style)}}],[{key:"getOutlinePositions",value:function(e,t){return!e||e.length<3?e:(e=LngLatArray.toCartesians(e),attackArrowUtil.startCompute(e,t))}}]),a}(),CloseCurveUtil=(register$4("attackArrowYW",AttackArrowYW),function(){var n=2822,m=2557,d=2822,t=2728,s=_0x1658de;function i(){var e=_0x236b;_classCallCheck(this,i),this[e(t)]=algorithmUtil}return _createClass(i,[{key:"startCompute",value:function(e,t){var i=_0x236b;if(!e||0===e.length)return e;for(var a=cartesians2mercators(this.positions=e),e=this.getMaxHeight(a),n=(a.push(a[0],a[1]),[]),s=[],r=0;r<a[i(2822)]-2;r++)var o=this.algorithmUtil[i(1072)](.3,a[r],a[r+1],a[r+2]),n=n[i(m)](o);var l=n[i(2822)];n=[n[l-1]].concat(n.slice(0,l-1));for(var c=0;c<a[i(d)]-2;c++){var h=a[c],u=a[c+1];s.push(h);for(var _=0;_<=100;_++){var p=this[i(2728)].getCubicValue(_/100,h,n[2*c],n[2*c+1],u);s.push(p)}s.push(u)}return mercators2cartesians(s,e)}},{key:s(3501),value:function(e){for(var t=s,i=e[0][2]||0,a=0;a<e[t(n)];a++)e[2]>i&&(i=e[2]);return i}}]),i}()),closeCurveUtil=new CloseCurveUtil,CloseVurve=function(){var a=3483,t=(_inherits(i,PolygonEntity),_createSuper(i));function i(){var e=_0x236b;return _classCallCheck(this,i),t[e(2026)](this,arguments)}return _createClass(i,[{key:"getShowPositions",value:function(e){return!e||e.length<2?e:closeCurveUtil.startCompute(e,this.style)}}],[{key:"getOutlinePositions",value:function(e,t){var i=_0x236b;return!e||e.length<2?e:(e=LngLatArray[i(a)](e),closeCurveUtil.startCompute(e,t))}}]),i}(),DoubleArrowUtil=(register$4(_0x1658de(1780),CloseVurve),function(){var d=3666,f=3567,y=1822,o=3567,l=1320,c=2822,h=1320,u=2728,_=2728,p=1320,m=2728,v=3900,g=2013,C=3161,x=3900,b=1320,k=2728,P=2822,w=3161,S=2090,i=2111,n=_0x1658de;function t(){var e=_0x236b;_classCallCheck(this,t),this[e(2728)]=algorithmUtil}return _createClass(t,[{key:"setOptions",value:function(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.headHeightFactor=t.headHeightFactor||.25,this.headWidthFactor=t.headWidthFactor||.3,this.neckHeightFactor=t.neckHeightFactor||.85,this.neckWidthFactor=t[e(i)]||.15}},{key:"startCompute",value:function(e,t){var i=_0x236b;if(!e||e[i(P)]<3)return e;this.positions=e,this.setOptions(t);var t=cartesians2mercators(e),e=this.getMaxHeight(t),a=[t[0],t[1],t[2]],n=a[0],s=a[1],a=a[2],r=this.positions.length,s=(r=3===r?(o=this.getTempPoint4(n,s,a),this.algorithmUtil.Mid(n,s)):4===r?(o=t[3],this[i(2728)].Mid(n,s)):this.algorithmUtil.MathDistance(t[3],t[4])<.1*this.algorithmUtil.MathDistance(t[2],t[3])?(o=t[3],this.algorithmUtil[i(w)](n,s)):(o=t[3],t[4]),t=this.algorithmUtil.isClockWise(n,s,a)?(l=this.getArrowPoints(n,r,o,!1),this.getArrowPoints(r,s,a,!0)):(l=this[i(3191)](s,r,a,!1),this.getArrowPoints(r,n,o,!0)),l.length),a=(s-5)/2,r=l[i(2090)](0,a),n=l[i(S)](a,5+a),o=l.slice(5+a,s),l=t[i(2090)](0,a),c=t.slice(a,5+a),t=t.slice(5+a,s),l=this[i(2728)].getBezierPoints(l),a=this.algorithmUtil.getBezierPoints(t.concat(r.slice(1))),o=this.algorithmUtil.getBezierPoints(o);return mercators2cartesians(l[i(2557)](c,a,n,o),e)}},{key:"getTempPoint4",value:function(e,t,i){var a,n,s,r=_0x236b,t=this[r(2728)][r(C)](e,t),o=this.algorithmUtil[r(x)](t,i),i=this.algorithmUtil.getAngleOfThreePoints(e,t,i),o=i<Math.PI/2?(a=o*Math.sin(i),n=o*Math[r(3007)](i),s=this.algorithmUtil.getThirdPoint(e,t,Math.PI/2,a,!1),this[r(2728)].getThirdPoint(t,s,Math.PI/2,n,!0)):i>=Math.PI/2&&i<Math.PI?(a=o*Math.sin(Math.PI-i),n=o*Math.cos(Math.PI-i),s=this.algorithmUtil.getThirdPoint(e,t,Math.PI/2,a,!1),this.algorithmUtil.getThirdPoint(t,s,Math.PI/2,n,!1)):i>=Math.PI&&i<1.5*Math.PI?(a=o*Math[r(1868)](i-Math.PI),n=o*Math.cos(i-Math.PI),s=this.algorithmUtil.getThirdPoint(e,t,Math.PI/2,a,!0),this.algorithmUtil[r(b)](t,s,Math.PI/2,n,!0)):(a=o*Math.sin(2*Math.PI-i),n=o*Math[r(3007)](2*Math.PI-i),s=this.algorithmUtil.getThirdPoint(e,t,Math.PI/2,a,!0),this[r(k)].getThirdPoint(t,s,Math.PI/2,n,!1));return o}},{key:"getArrowPoints",value:function(e,t,i,a){var n=_0x236b,s=this.algorithmUtil.Mid(e,t),r=this.algorithmUtil.MathDistance(s,i),o=this[n(_)][n(1320)](i,s,0,.3*r,!0),l=this[n(2728)].getThirdPoint(i,s,0,.5*r,!0),o=[s,this.algorithmUtil[n(p)](s,o,Math.PI/2,r/5,a),this[n(m)].getThirdPoint(s,l,Math.PI/2,r/4,a),i],s=this[n(589)](o);if(s&&Array.isArray(s)&&3<s[n(2822)]){var l=[s[0],s[4]],r=l[0],a=l[1],i=this.algorithmUtil[n(v)](e,t)/this[n(2728)].getBaseLength(o)/2,l=this.getArrowBodyPoints(o,r,a,i);if(l)return o=l.length,i=l.slice(0,o/2),l=l.slice(o/2,o),i.push(r),l.push(a),(i=i.reverse())[n(1018)](t),(l=l[n(g)]())[n(1018)](e),i.reverse().concat(s,l)}else console.log("getArrowPoints:插值出错",s)}},{key:"getArrowHeadPoints",value:function(e){var t,i,a,n,s,r=_0x236b;return!e||e[r(2822)]<2?[]:(s=this.algorithmUtil[r(o)](e)*this.headHeightFactor,t=e[e.length-1],i=s*this.headWidthFactor,a=s*this.neckWidthFactor,n=s*this.neckHeightFactor,s=this.algorithmUtil.getThirdPoint(e[e[r(2822)]-2],t,0,s,!0),e=this.algorithmUtil[r(l)](e[e[r(c)]-2],t,0,n,!0),n=this.algorithmUtil.getThirdPoint(t,s,Math.PI/2,i,!1),s=this.algorithmUtil[r(h)](t,s,Math.PI/2,i,!0),[this[r(2728)].getThirdPoint(t,e,Math.PI/2,a,!1),n,t,s,this[r(u)].getThirdPoint(t,e,Math.PI/2,a,!0)])}},{key:"getArrowBodyPoints",value:function(e,t,i,a){for(var n=_0x236b,s=this.algorithmUtil[n(d)](e),r=this.algorithmUtil[n(f)](e)*a,o=(r-this.algorithmUtil.MathDistance(t,i))/2,l=0,c=[],h=[],u=1;u<e[n(2822)]-1;u++){var _=this[n(2728)][n(y)](e[u-1],e[u],e[u+1])/2,p=(r/2-(l+=this.algorithmUtil.MathDistance(e[u-1],e[u]))/s*o)/Math.sin(_),m=this.algorithmUtil.getThirdPoint(e[u-1],e[u],Math.PI-_,p,!0),_=this.algorithmUtil.getThirdPoint(e[u-1],e[u],_,p,!1);c.push(m),h[n(1018)](_)}return c.concat(h)}},{key:n(3501),value:function(e){for(var t=n,i=e[0][2]||0,a=0;a<e[t(2822)];a++)e[2]>i&&(i=e[2]);return i}}]),t}()),doubleArrowUtil=new DoubleArrowUtil,DoubleArrow=function(){var i=2822,e=_0x1658de,a=(_inherits(n,PolygonEntity),_createSuper(n));function n(){var e=_0x236b,t=0<arguments[e(i)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=a.call(this,t))._minPointNum=3,t[e(413)]=5,t}return _createClass(n,[{key:e(1457),value:function(e){return!e||e.length<this._minPointNum?e:doubleArrowUtil.startCompute(e,this.style)}}],[{key:"getOutlinePositions",value:function(e,t){return!e||e.length<3?e:(e=LngLatArray.toCartesians(e),doubleArrowUtil.startCompute(e,t))}}]),n}(),FineArrowUtil=(register$4("doubleArrow",DoubleArrow),function(){var c=1320,h=1320,i=2822,a=1975;function e(){_classCallCheck(this,e),this.algorithmUtil=algorithmUtil}return _createClass(e,[{key:"setOptions",value:function(){var e=_0x236b,t=0<arguments[e(i)]&&void 0!==arguments[0]?arguments[0]:{};this[e(a)]=t.headAngle||Math.PI/8.5,this[e(2844)]=t.neckAngle||Math.PI/13,this.tailWidthFactor=t.tailWidthFactor||.1,this.neckWidthFactor=t[e(2111)]||.2,this.headWidthFactor=t.headWidthFactor||.25,this[e(482)]=t[e(482)]||.85}},{key:"startCompute",value:function(e,t){var i=_0x236b;if(!e||0===e.length)return e;this.positions=e,this.setOptions(t);var t=cartesians2mercators(e),e=this.getMaxHeight(t),a=[t[0],t[1]],n=a[0],a=a[1],t=this[i(2728)].getBaseLength(t),s=t*this.tailWidthFactor,r=t*this[i(2111)],t=t*this.headWidthFactor,o=this.algorithmUtil.getThirdPoint(a,n,Math.PI/2,s,!0),s=this.algorithmUtil.getThirdPoint(a,n,Math.PI/2,s,!1),l=this[i(2728)][i(c)](n,a,this.headAngle,t,!1),t=this.algorithmUtil[i(h)](n,a,this.headAngle,t,!0);return mercators2cartesians([o,this.algorithmUtil.getThirdPoint(n,a,this[i(2844)],r,!1),l,a,t,this.algorithmUtil.getThirdPoint(n,a,this.neckAngle,r,!0),s],e)}},{key:"getMaxHeight",value:function(e){for(var t=e[0][2]||0,i=0;i<e.length;i++)e[2]>t&&(t=e[2]);return t}}]),e}()),fineArrowUtil=new FineArrowUtil,FineArrow=function(){var i=1567,t=_0x1658de,a=(_inherits(n,PolygonEntity),_createSuper(n));function n(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=a[e(i)](this,t))[e(466)]=2,t._maxPointNum=2,t}return _createClass(n,[{key:t(1457),value:function(e){return!e||e[t(2822)]<2?e:fineArrowUtil.startCompute(e,this.style)}}],[{key:"getOutlinePositions",value:function(e,t){return!e||e.length<2?e:(e=LngLatArray.toCartesians(e),fineArrowUtil.startCompute(e,t))}}]),n}(),FineArrowYWUtil=(register$4("fineArrow",FineArrow),function(){var s=2728,r=2728,c=1980,h=2822,u=1018,_=2728,i=482,p=_0x1658de,e=(_inherits(t,ArrowParentUtil),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:p(3533),value:function(){var e=p,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.headHeightFactor=t.headHeightFactor||.18,this.headWidthFactor=t.headWidthFactor||.3,this[e(i)]=t.neckHeightFactor||.85,this.neckWidthFactor=t[e(2111)]||.15,this.tailWidthFactor=t.tailWidthFactor||.1,this.swallowTailFactor=t[e(3140)]||1}},{key:"startCompute",value:function(e,t){var i=p;if(!e||0===e.length)return e;this[i(c)]=e,this.setOptions(t);var a,n,s,t=cartesians2mercators(e),r=this.getMaxHeight(t),o=this.getTailPoints(t),l=this.getArrowHeadPoints(t,o[0],o[2]);return!l||l.length<4?e:(e=l[0],a=l[4],n=(t=this.getArrowBodyPoints(t,e,a,this.tailWidthFactor))[i(h)],(s=[o[0]].concat(t.slice(0,n/2)))[i(u)](e),(e=[o[2]].concat(t.slice(n/2,n))).push(a),s=this[i(2728)].getQBSplinePoints(s),e=this[i(_)][i(2087)](e),mercators2cartesians(s.concat(l,e.reverse(),[o[1],s[0]]),r))}},{key:"getTailPoints",value:function(e){var t=p,i=this.algorithmUtil.getBaseLength(e)*this.tailWidthFactor,a=this[t(s)].getThirdPoint(e[1],e[0],Math.PI/2,i,!1),n=this[t(2728)].getThirdPoint(e[1],e[0],Math.PI/2,i,!0),i=i*this.swallowTailFactor;return[a,this[t(r)].getThirdPoint(e[1],e[0],0,i,!0),n]}}]),t}()),fineArrowYWUtil=new FineArrowYWUtil,FineArrowYW=function(){var a=3312,t=(_inherits(i,PolygonEntity),_createSuper(i));function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(e=t.call(this,e))._minPointNum=2,e._maxPointNum=2,e}return _createClass(i,[{key:"getShowPositions",value:function(e){return!e||e.length<2?e:fineArrowYWUtil.startCompute(e,this.style)}}],[{key:"getOutlinePositions",value:function(e,t){var i=_0x236b;return!e||e[i(2822)]<2?e:(e=LngLatArray.toCartesians(e),fineArrowYWUtil[i(a)](e,t))}}]),i}(),GatheringPlaceUtil=(register$4(_0x1658de(3123),FineArrowYW),function(){var m=3501,d=3591,f=1018,y=_0x1658de;function t(){var e=_0x236b;_classCallCheck(this,t),this[e(2728)]=algorithmUtil}return _createClass(t,[{key:y(3312),value:function(e,t){var i=y;if(!e||0===e.length)return e;for(var a=cartesians2mercators(this.positions=e),e=this[i(m)](a),n=this.algorithmUtil.Mid(a[0],a[2]),s=(a.push(n,a[0],a[1]),[]),r=[],o=0;o<a.length-2;o++)var l=a[o],c=a[o+1],h=a[o+2],h=this.algorithmUtil[i(1072)](.4,l,c,h),s=s.concat(h);n=s.length;s=[s[n-1]].concat(s.slice(0,n-1));for(var u=0;u<a[i(2822)]-2;u++){l=a[u],c=a[u+1],r.push(l);for(var _=0;_<=100;_++){var p=this.algorithmUtil[i(d)](_/100,l,s[2*u],s[2*u+1],c);r.push(p)}r[i(f)](c)}return mercators2cartesians(r,e)}},{key:"getMaxHeight",value:function(e){for(var t=e[0][2]||0,i=0;i<e.length;i++)e[2]>t&&(t=e[2]);return t}}]),t}()),gatheringPlaceUtil=new GatheringPlaceUtil,GatheringPlace=function(){var a=3312,t=2822,i=(_inherits(n,PolygonEntity),_createSuper(n));function n(){var e=0<arguments[_0x236b(t)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=i.call(this,e))._minPointNum=3,e._maxPointNum=3,e}return _createClass(n,[{key:"getShowPositions",value:function(e){return!e||e.length<this._minPointNum?e:gatheringPlaceUtil.startCompute(e,this.style)}}],[{key:"getOutlinePositions",value:function(e,t){var i=_0x236b;return!e||e.length<2?e:(e=LngLatArray[i(3483)](e),gatheringPlaceUtil[i(a)](e,t))}}]),n}(),IsosTriangle=(register$4("gatheringPlace",GatheringPlace),function(){var s=1841,i=2822,a=466,r=_0x1658de,t=(_inherits(n,PolygonEntity),_createSuper(n));function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,e))._minPointNum=3,e._maxPointNum=3,e}return _createClass(n,[{key:r(1457),value:function(e){var t=r;return!e||e[t(i)]<this[t(a)]?e:n.getOutlinePositions(e,this.style)}}],[{key:"getOutlinePositions",value:function(e,t){var i,a,n=r;return!e||e.length<3?e:(i=e[0],a=e[1],e=e[2],[i,a,getRotateCenterPoint(n=Cesium__namespace.Cartesian3[n(s)](i,a,new Cesium__namespace.Cartesian3),e,getAngle(n,a)-getAngle(n,e)-90)])}}]),n}()),LuneUtil=(register$4("isosTriangle",IsosTriangle),function(){var t=2728,p=_0x1658de;function i(){var e=_0x236b;_classCallCheck(this,i),this[e(t)]=algorithmUtil}return _createClass(i,[{key:p(3312),value:function(e,t){var i,a,n,s,r,o,l,c,h,u,_=p;return e&&0!==e.length?(u=cartesians2mercators(this.positions=e),i=this[_(3501)](u),r=(s=[u[0],u[1],u[2],void 0,void 0])[3],h=s[4],o=this.algorithmUtil.getCircleCenterOfThreePoints(a=s[0],n=s[1],s=s[2]),l=this.algorithmUtil.MathDistance(a,o),c=this[_(2728)].getAzimuth(a,o),_=this[_(2728)].getAzimuth(n,o),h=this.algorithmUtil.isClockWise(a,n,s)?(r=_,c):(r=c,_),(u=this.algorithmUtil.getArcPoints(o,l,r,h)).push(u[0]),mercators2cartesians(u,i)):e}},{key:"getMaxHeight",value:function(e){for(var t=e[0][2]||0,i=0;i<e.length;i++)e[2]>t&&(t=e[2]);return t}}]),i}()),luneUtil=new LuneUtil,Lune=function(){_inherits(i,PolygonEntity);var t=_createSuper(i);function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(e=t.call(this,e))._minPointNum=3,e._maxPointNum=3,e}return _createClass(i,[{key:"getShowPositions",value:function(e){return!e||e.length<this._minPointNum?e:luneUtil.startCompute(e,this.style)}}],[{key:"getOutlinePositions",value:function(e,t){return!e||e[_0x236b(2822)]<3?e:(e=LngLatArray.toCartesians(e),luneUtil.startCompute(e,t))}}]),i}(),EditRegular=(register$4("lune",Lune),function(){var s=1980,r=2393,t=349,i=402,_=761,p=1018,m=4038,d=4014,a=2026,n=(_inherits(o,EditPolygon),_createSuper(o));function o(){var e=_0x236b;return _classCallCheck(this,o),n[e(a)](this,arguments)}return _createClass(o,[{key:"bindDraggers",value:function(){var n=761,r=784,o=2532,l=784,c=_0x236b,h=this,a=this.positions,u=this.updatePositionsHeightByAttr(a[0]),e=this.createDragger({position:u,type:PointType.MoveAll,tooltip:this._map[c(t)]("_整体平移"),onDrag:function(e,t){var i=c,a=(t=h.updatePositionsHeightByAttr(t),e.position=t,Cesium__namespace.Cartesian3.subtract(t,u,new Cesium__namespace[i(r)]));u=t,h.positions.forEach(function(e,t,i){e=Cesium__namespace.Cartesian3.add(e,a,new Cesium__namespace.Cartesian3);h.positions[t]=e});for(var n=0,s=h.draggers.length;n<s;n++)h.draggers[n][i(o)]=Cesium__namespace.Cartesian3.add(h.draggers[n][i(2532)],a,new Cesium__namespace[i(l)])}}),e=(e.index=0,this[c(761)].push(e),getPositionByDirectionAndLen(u,this.style.startAngle,this.style[c(i)])),e=(a[1]=e,this.createDragger({position:this.updatePositionsHeightByAttr(e),onDrag:function(e,t){var i=c;t=h[i(367)](t),e.position=t,h[i(1980)][e.index]=t,h.style.radius=Cesium__namespace.Cartesian3.distance(a[0],t),h[i(2492)][i(383)]=formatNum$1(getAngle(a[0],t),2)},onDragStart:function(e,t){for(var i=0,a=h[c(n)].length;i<a;i++)h.draggers[i].show=!1},onDragEnd:function(e,t){h.updateDraggers()}}));e.index=1,this[c(_)][c(p)](e),this.entityGraphic[c(m)]&&this[c(d)]()}},{key:"_updateHeight",value:function(e){for(var t=_0x236b,i=(this[t(3135)][t(3159)]=e,this[t(2492)].height=this.formatNum(e,2),this[t(s)]),a=0,n=i[t(2822)];a<n;a++)i[a]=setPositionsHeight(i[a],e);this.fire(EventType[t(r)])}}]),o}()),Regular=function(){var c=383,t=2822,a=1937,n=2492,s=383,h=_0x1658de,r=(_inherits(o,PolygonEntity),_createSuper(o));function o(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,o),(t=r.call(this,a))._minPointNum=2,t._maxPointNum=2,t.style.radius=null!=(e=t[i(n)].radius)?e:1e3,t[i(2492)][i(s)]=null!=(e=t[i(n)].startAngle)?e:0,a.position&&(t.positions=[a.position]),t}return _createClass(o,[{key:"EditClass",get:function(){return EditRegular}},{key:h(1257),value:function(e){var t,i=h;!e&&1<(null==(t=this._positions_draw)?void 0:t.length)&&(t=this._positions_draw[0],this.style.radius=Cesium__namespace.Cartesian3[i(a)](t,this._positions_draw[1]),this[i(2492)].startAngle=formatNum$1(getAngle(t,this[i(2383)][1]),2)),_get(_getPrototypeOf(o.prototype),"updateAttrForDrawing",this).call(this,e)}},{key:"getShowPositions",value:function(e){return!e||e[h(t)]<1?e:o.getOutlinePositions(e[0],this.style)}}],[{key:"getOutlinePositions",value:function(e,t){for(var i=h,a=t.border||3,n=t.radius||1e3,s=t[i(c)]||0,r=360/a,o=[],l=0;l<=a;l++)o.push(getPositionByDirectionAndLen(e,s+r*l,n));return o}}]),o}(),EditSector=(register$4("regular",Regular),function(){var t=3817,i=402,c=367,h=2492,u=367,_=784,p=761,e=(_inherits(a,EditPolygon),_createSuper(a));function a(){return _classCallCheck(this,a),e.apply(this,arguments)}return _createClass(a,[{key:"bindDraggers",value:function(){var a=1398,n=402,r=_0x236b,o=this,s=this.positions,l=this.updatePositionsHeightByAttr(s[0]),e=this[r(2726)]({position:l,type:PointType[r(2062)],tooltip:this[r(t)].getLangText("_整体平移"),onDrag:function(e,t){var i=r,a=(t=o[i(u)](t),e.position=t,Cesium__namespace.Cartesian3[i(3446)](t,l,new Cesium__namespace[i(_)]));l=t,o.positions.forEach(function(e,t,i){e=Cesium__namespace.Cartesian3.add(e,a,new Cesium__namespace.Cartesian3);o.positions[t]=e});for(var n=0,s=o[i(761)].length;n<s;n++)o[i(761)][n].position=Cesium__namespace.Cartesian3.add(o[i(p)][n].position,a,new Cesium__namespace.Cartesian3)}}),e=(e.index=0,this.draggers.push(e),getPositionByDirectionAndLen(l,this.style.startAngle,this.style[r(402)])),e=(s[1]=e,this.createDragger({position:this.updatePositionsHeightByAttr(e),onDrag:function(e,t){var i=r;t=o.updatePositionsHeightByAttr(t),e.position=t,o[i(1980)][e.index]=t,o.style.radius=Cesium__namespace.Cartesian3.distance(s[0],t),o[i(h)][i(383)]=formatNum$1(getAngle(s[0],t),2),s[2]=getPositionByDirectionAndLen(s[0],o[i(2492)].endAngle,o.style[i(402)])},onDragStart:function(e,t){for(var i=0,a=o.draggers.length;i<a;i++)o.draggers[i].show=!1},onDragEnd:function(e,t){o.updateDraggers()}})),e=(e.index=1,this.draggers.push(e),getPositionByDirectionAndLen(l,this.style.endAngle,this.style[r(i)])),e=(s[2]=e,this[r(2726)]({position:this[r(c)](e),onDrag:function(e,t){var i=r;t=o.updatePositionsHeightByAttr(t),e.position=t,o.positions[e[i(3170)]]=t,o[i(2492)].radius=Cesium__namespace.Cartesian3.distance(s[0],t),o.style[i(a)]=getAngle(s[0],t),s[1]=getPositionByDirectionAndLen(s[0],o.style.startAngle,o[i(2492)][i(n)])},onDragStart:function(e,t){for(var i=r,a=0,n=o.draggers[i(2822)];a<n;a++)o.draggers[a].show=!1},onDragEnd:function(e,t){o.updateDraggers()}}));e.index=2,this.draggers.push(e),this.entityGraphic[r(4038)]&&this._bindHeightDraggers()}},{key:"_updateHeight",value:function(e){this.entityGraphic.height=e,this.style.height=this.formatNum(e,2);for(var t=this.positions,i=0,a=t.length;i<a;i++)t[i]=setPositionsHeight(t[i],e);this.fire(EventType.editStyle)}}]),a}()),Sector=function(){var l=383,c=1440,h=1440,a=1567,n=3277,s=1440,r=3639,t=2822,o=383,u=2492,_=_0x1658de,p=(_inherits(m,PolygonEntity),_createSuper(m));function m(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,m),(t=p.call(this,a))._minPointNum=2,t[i(413)]=3,t[i(2492)].radius=null!=(e=t.style.radius)?e:1e3,t.style.startAngle=null!=(e=t[i(u)].startAngle)?e:0,t.style.endAngle=null!=(e=t.style.endAngle)?e:0,a[i(2532)]&&(t.positions=[a.position]),t}return _createClass(m,[{key:_(2997),get:function(){return EditSector}},{key:"updateAttrForDrawing",value:function(e){var t,i,a=_;!e&&1<(null==(i=this._positions_draw)?void 0:i[a(2822)])&&(i=this._positions_draw[0],this.style.radius=formatNum$1(Cesium__namespace.Cartesian3.distance(i,this[a(2383)][1]),2),this.style[a(383)]=formatNum$1(getAngle(i,this._positions_draw[1]),2),2<(null==(t=this._positions_draw)?void 0:t.length)?this.style.endAngle=formatNum$1(getAngle(i,this[a(2383)][2]),2):this[a(2492)].endAngle=this.style[a(o)]),_get(_getPrototypeOf(m.prototype),"updateAttrForDrawing",this).call(this,e)}},{key:"getShowPositions",value:function(e){return!e||e[_(t)]<1?e:m.getOutlinePositions(e[0],this.style)}},{key:"_updateStyleHook",value:function(e,t){var i=_;_get(_getPrototypeOf(m.prototype),"_updateStyleHook",this)[i(a)](this,e,t),(Cesium__namespace.defined(t.radius)||Cesium__namespace.defined(t.startAngle)||Cesium__namespace.defined(t.endAngle)||Cesium__namespace[i(n)](t[i(s)]))&&this[i(r)]()}}],[{key:"getOutlinePositions",value:function(e,t){var i=_,a=t.radius,n=t[i(l)],s=t[i(1398)],r=(s<=n&&(s+=360),[]);t[i(c)]||r.push(e);for(var o=n;o<=s;o++)r.push(getPositionByDirectionAndLen(e,o,a));return t[i(h)]||r.push(e),r}}]),m}(),StraightArrowUtil=(register$4(_0x1658de(2946),Sector),function(){var c=2822,h=2728,u=1320,_=1320,p=2844,m=_0x1658de;function e(){_classCallCheck(this,e),this.algorithmUtil=algorithmUtil}return _createClass(e,[{key:"setOptions",value:function(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.tailWidthFactor=t[e(548)]||.05,this.neckWidthFactor=t.neckWidthFactor||.1,this.headWidthFactor=t[e(1543)]||.15,this.headAngle=Math.PI/4,this.neckAngle=.17741*Math.PI}},{key:m(3312),value:function(e,t){var i=m;if(!e||0===e[i(c)])return e;this.positions=e,this.setOptions(t);var t=cartesians2mercators(e),e=this[i(3501)](t),a=[t[0],t[1]],n=a[0],a=a[1],t=this.algorithmUtil[i(3567)](t),s=t*this.tailWidthFactor,r=t*this[i(2111)],t=t*this.headWidthFactor,o=this[i(2728)].getThirdPoint(a,n,Math.PI/2,s,!0),s=this.algorithmUtil.getThirdPoint(a,n,Math.PI/2,s,!1),l=this.algorithmUtil.getThirdPoint(n,a,this.headAngle,t,!1),t=this[i(h)][i(u)](n,a,this[i(1975)],t,!0);return mercators2cartesians([o,this[i(2728)][i(_)](n,a,this[i(p)],r,!1),l,a,t,this.algorithmUtil.getThirdPoint(n,a,this[i(2844)],r,!0),s],e)}},{key:"getMaxHeight",value:function(e){for(var t=m,i=e[0][2]||0,a=0;a<e[t(2822)];a++)e[2]>i&&(i=e[2]);return i}}]),e}()),straightArrowUtil=new StraightArrowUtil,StraightArrow=function(){var a=_0x1658de,i=(_inherits(n,PolygonEntity),_createSuper(n));function n(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=i.call(this,t))[e(466)]=2,t._maxPointNum=2,t}return _createClass(n,[{key:"getShowPositions",value:function(e){var t=_0x236b;return!e||e.length<2?e:straightArrowUtil.startCompute(e,this[t(2492)])}}],[{key:a(1901),value:function(e,t){var i=a;return!e||e.length<2?e:(e=LngLatArray.toCartesians(e),straightArrowUtil[i(3312)](e,t))}}]),n}(),DEF_STYLE$k=(register$4("straightArrow",StraightArrow),{color:"#3388ff",pixelSize:8,outlineColor:_0x1658de(1888),outlineWidth:2,visibleDepth:!1}),PointMeasure=function(){var i=1797,t=2758,a=3256,n=2213,s=2071,r=2385,h=476,u=484,_=1893,p=3366,m=2901,d=2557,o=_0x1658de,l=(_inherits(f,PointEntity),_createSuper(f));function f(){var e=0<arguments[_0x236b(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,f),e.style=_objectSpread2(_objectSpread2({},DEF_STYLE$k),e.style||{}),l.call(this,e)}return _createClass(f,[{key:"_addedHook",value:function(e){var o=_0x236b,l=this,c=(_get(_getPrototypeOf(f[o(r)]),"_addedHook",this).call(this,e),this[o(3817)]);this[o(h)](function(e){var t,i=o,a=l.point,n=(a.format(),degree2dms(a[i(u)]).str),s=degree2dms(a.lat)[i(_)],r="";return!1!==l.options.crs&&(t=proj4Trans([a[i(484)],a.lat],"EPSG:4326",null!=(t=l.options[i(2022)])?t:CRS.CGCS2000_GK_Zone_3))[0]!==a.lng&&t[1]!==a[i(654)]&&(r='<div title="大地2000坐标"><label>横坐标</label>'.concat(t[0].toFixed(1),'</div>\n <div title="大地2000坐标"><label>纵坐标</label>').concat(t[1][i(p)](1),"</div>")),'<div class="gis3d-template-titile">'.concat(c.getLangText(i(1764)),i(m)).concat(c[i(349)]("_经度"),"</label>").concat(a.lng," ").concat(n,"</div>\n <div><label>").concat(c.getLangText("_纬度"),i(1884)).concat(a[i(654)]," ")[i(d)](s,"</div>\n ")[i(2557)](r,"\n <div><label>").concat(c.getLangText("_海拔"),"</label>").concat(a.alt).concat(c.getLangText("_米"),"</div>\n </div>")},{autoClose:null!=(e=this[o(2492)].autoClose)&&e,closeOnClick:null!=(e=this[o(2492)].closeOnClick)&&e}),this.on(EventType.drawMouseMove,this._drawMouseMoveHandler,this),this[o(2306)](EventType.drawCreated,this[o(2374)],this),this.on(EventType.editMovePoint,this._editPointHandler,this),this.on(EventType.editRemovePoint,this._editPointHandler,this),this.position&&this.openPopup()}},{key:"_removedHook",value:function(){var e=_0x236b;this.off(EventType.drawMouseMove,this[e(t)],this),this[e(4030)](EventType.drawCreated,this[e(2374)],this),this.off(EventType.editMovePoint,this._editPointHandler,this),this[e(4030)](EventType[e(a)],this[e(n)],this),_get(_getPrototypeOf(f.prototype),e(s),this).call(this)}},{key:o(2758),value:function(e){this.openPopup()}},{key:"_drawCreatedHandler",value:function(e){var t=o;this.openPopup(),this.fire(EventType[t(i)],{mtype:this.type,graphic:this},!0)}},{key:"_editPointHandler",value:function(e){this.openPopup()}}]),f}(),DEF_STYLE$j=(register$4("pointMeasure",PointMeasure,!0),{materialType:"PolylineGlow",glowPower:.1,color:"#ebe12c",width:9,clampToGround:!1}),DistanceMeasure=function(){var f=2591,y=3045,v=2891,g=1997,C=1937,r=2822,o=2802,l=703,s=2822,c=3203,h=2822,u=349,_=3219,p=1937,m=528,d=3219,x=3546,b=3045,k=703,P=4012,w=349,S=2802,n=4030,T=4030,M=3277,i=563,a=3686,E=4052,A=2852,L=1567,D=_0x1658de,I=(_inherits(O,PolylineEntity),_createSuper(O));function O(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,O),i.hasMoveEdit=!1,i.showAddText=null==(e=i.showAddText)||e,i.decimal=null!=(e=i.decimal)?e:2,i.style=_objectSpread2(_objectSpread2({},DEF_STYLE$j),i.style||{}),(e=I[t(L)](this,i))._measured={},e}return _createClass(O,[{key:D(2546),get:function(){return this._measured}},{key:"_addedHook",value:function(e){var t=D;_get(_getPrototypeOf(O.prototype),t(i),this).call(this,e),this[t(1511)]=[],this._measureLable=this._createLabel(this.options.label||(null==(e=this._layer)||null==(e=e.options)?void 0:e[t(a)])),this._measureLable[t(4045)]=!1,this.on(EventType[t(3670)],this._drawAddPointHandler,this),this.on(EventType.drawRemovePoint,this[t(E)],this),this.on(EventType[t(A)],this._drawMouseMoveHandler,this),this.once(EventType.drawCreated,this[t(2374)],this),this.on(EventType.editMovePoint,this._editPointHandler,this),this.on(EventType.editRemovePoint,this[t(2213)],this),this.options.positions&&(this._measureLable.show=!0,this._editPointHandler())}},{key:D(2071),value:function(){var e=D;if(this[e(n)](EventType.drawAddPoint,this._drawAddPointHandler,this),this.off(EventType.drawMouseMove,this._drawMouseMoveHandler,this),this[e(4030)](EventType.drawRemovePoint,this[e(4052)],this),this.off(EventType.drawCreated,this._drawCreatedHandler,this),this.off(EventType.editMovePoint,this._editPointHandler,this),this[e(T)](EventType.editRemovePoint,this[e(2213)],this),Cesium__namespace.defined(this._measureLable)&&(this._removeLabel(this[e(2802)]),delete this[e(2802)]),Cesium__namespace[e(M)](this._arrPartMeasureLable)&&0<this._arrPartMeasureLable.length){var t=this._arrPartMeasureLable;if(t&&0<t.length)for(var i=0,a=t.length;i<a;i++)this._removeLabel(t[i]);delete this._arrPartMeasureLable}_get(_getPrototypeOf(O.prototype),"_removedHook",this).call(this)}},{key:"updateText",value:function(e){var t=D,i=(e&&(this.options.unit=e),{unit:this.options.unit,lang:this._map[t(372)],decimal:this.options.decimal});if(this[t(4012)][t(k)]=formatDistance(this[t(4012)].distance,i),this._measured.distance!==this[t(P)].distanceLastFd?(this._measureLable[t(3045)]=this._map[t(w)]("_总长")+":"+this[t(P)].distanceStr,this.options.showAddText&&(i=formatDistance(this._measured.distanceLastFd,i),this._measured.distanceLastFdStr=i,this[t(2802)].text+=t(3546)+i+")")):this[t(S)].text=this._map.getLangText("_总长")+":"+this._measured.distanceStr,e)for(var a=1,n=this._arrPartMeasureLable.length;a<n;a++){var s=this._arrPartMeasureLable[a];s[t(2891)]&&s.showText()}}},{key:"_drawAddPointHandler",value:function(e){var t,a=D,n=this,i=this[a(c)],s=this._createLabel(this.options.label||(null==(s=this._layer)||null==(s=s.options)?void 0:s.label),i[i[a(h)]-1]);this._arrPartMeasureLable.push(s),1===i.length?s.text=this._map[a(u)]("_起点"):(t=getSurfaceDistance(i),i=getSurfaceDistance([i[i.length-2],i[i.length-1]]),s.attr={},s.attr[a(3601)]=t,s[a(1740)][a(_)]=i,s.showText=function(){var e=a,t={unit:n.options[e(m)],lang:n._map.lang,decimal:n.options.decimal},i=formatDistance(this.attr.value,t);this.attr[e(3601)]!==this.attr.valueFD?(this.text=i,n.options.showAddText&&(t=formatDistance(this.attr[e(d)],t),this.text+=e(x)+t+")")):this[e(b)]=i},s[a(2891)](),this._measured[a(p)]=t,this[a(4012)].distanceLastFd=i,this[a(4012)].distanceStr=formatDistance(this._measured[a(1937)],{unit:this[a(1592)].unit,lang:this._map.lang,decimal:this[a(1592)][a(1390)]}))}},{key:"_drawRemovePointHandler",value:function(e){var t=D,i=this[t(1511)].pop();this[t(2591)](i),this._drawMouseMoveHandler(e),this._measureLable.position=e.cartesian}},{key:"_drawMouseMoveHandler",value:function(e){var t,i,a=D,n=this.positionsShow;n.length<2?this._measureLable[a(4045)]=!1:(t=getSurfaceDistance(n),0===(i=getSurfaceDistance([n[n.length-2],n[n.length-1]]))&&2<n[a(2822)]&&(i=getSurfaceDistance([n[n[a(2822)]-3],n[n.length-2]])),this._measured.distance=t,this._measured.distanceLastFd=i,this.updateText(),this._measureLable.position=n[n[a(s)]-1],this.fire(EventType.change,{mtype:this.type,value:this._measured.distance,label:this._measured.distanceStr},!0))}},{key:"_drawCreatedHandler",value:function(e){var t=D,i=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],a=this[t(3203)],n=this[t(1511)][t(r)]-a.length;if(0<=n){for(var s=this._arrPartMeasureLable.length-1;s>=a.length-1;s--)this._removeLabel(this._arrPartMeasureLable[s]);this._arrPartMeasureLable.splice(a.length-1,1+n)}this[t(2332)](),this._measureLable.position=a[a.length-1],this[t(o)].show=!0,i&&this.fire(EventType.end,{mtype:this.type,value:this._measured.distance,label:this._measured[t(l)]},!0)}},{key:"_editPointHandler",value:function(e){var a=372,n=1740,s=D,t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],r=this,i=this.positionsShow,o=this._arrPartMeasureLable;if(o&&0<o.length)for(var l=1,c=o.length;l<c;l++)this[s(f)](o[l]);else{var h=this._createLabel(this.options.label||(null==(h=this._layer)||null==(h=h.options)?void 0:h.label),i[0]);h[s(y)]=this._map.getLangText("_起点"),o=[h]}for(var h=o[0],u=(h.position=i[0],this._arrPartMeasureLable=[h],0),_=1,p=i.length-1;_<p;_++){var m=getSurfaceDistance([i[_-1],i[_]]),d=(u+=m,this[s(3717)](this.options.label||(null==(d=this._layer)||null==(d=d.options)?void 0:d[s(3686)]),i[_]));this._arrPartMeasureLable.push(d),d.attr={},d.attr[s(3601)]=u,d.attr[s(3219)]=m,d.showText=function(){var e=s,t={unit:r.options.unit,lang:r._map[e(a)],decimal:r.options[e(1390)]},i=formatDistance(this.attr.value,t);this.attr.value!==this.attr.valueFD?(e=formatDistance(this[e(n)].valueFD,t),this.text=i,r.options.showAddText&&(this.text+="\n(+"+e+")")):this.text=i},d[s(v)]()}h=getSurfaceDistance([i[i.length-2],i[i.length-1]]);this._measured.distance=u+=h,this._measured.distanceLastFd=h,this.updateText(),this._measureLable.position=i[i.length-1],this._measureLable[s(4045)]=!0,t&&this[s(g)](EventType.change,{mtype:this.type,value:this[s(4012)][s(C)],label:this._measured.distanceStr},!0)}}]),O}(),DistanceSurfaceMeasure=(register$4(_0x1658de(2387),DistanceMeasure),function(){var t=3203,i=1592,a=2893,n=703,l=1997,c=1797,h=1493,s=2385,r=1493,o=1493,u=355,_=_0x1658de,p=(_inherits(m,DistanceMeasure),_createSuper(m));function m(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,m),e=p[t(1567)](this,i),i[t(1493)]&&(e[t(r)]=i._promise,delete i[t(o)]),i.style.clampToGround=!0,i.splitNum=null!=(i=i.splitNum)?i:200,e[t(u)]=1.2,e}return _createClass(m,[{key:"_drawCreatedHandler",value:function(e){var t=_0x236b;_get(_getPrototypeOf(m[t(s)]),t(2374),this).call(this,e,!1),this[t(874)](e)}},{key:_(2213),value:function(e){_get(_getPrototypeOf(m[_(2385)]),"_editPointHandler",this).call(this,e,!1),this.updateLengthForTerrain(e)}},{key:"updateLengthForTerrain",value:function(e){var s=_,r=this,o=this[s(t)];this.fire(EventType.start,{mtype:this.type,graphic:this},!0),getClampDistance(o,{scene:this._map.scene,splitNum:this.options.splitNum,has3dtiles:this[s(i)][s(a)],exact:this[s(i)].exact,disTerrainScale:this.disTerrainScale,endItem:function(e){var t,i,a,n=s;r._map&&r._measureLable&&(t=e.index,i=e.all_distance,e=e[n(1937)],(a=r._arrPartMeasureLable[++t])?(a.attr.value=i,a.attr.valueFD=e,a.showText()):t==o.length-1&&r._measureLable&&(r[n(4012)].distance=i,r[n(4012)].distanceLastFd=e,r.updateText()))},end:function(e){var t=s;r._map&&r[t(2802)]&&(r._measured.distance=e,e={mtype:r[t(1488)],graphic:r,value:r._measured.distance,label:r._measured[t(n)]},r[t(1997)](EventType.change,e,!0),r[t(l)](EventType[t(c)],e,!0),null!=(e=r[t(h)]))&&e[t(1049)]&&r[t(1493)].resolve(r)}})}}]),m}()),SectionMeasure=(register$4(_0x1658de(468),DistanceSurfaceMeasure),function(){var t=1488,o=1592,g=3258,C=3159,x=1018,b=3258,k=3219,a=2822,n=1493,s=1493,l=_0x1658de,r=(_inherits(c,DistanceMeasure),_createSuper(c));function c(){var e,t=_0x236b,i=0<arguments[t(a)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,c),e=r.call(this,i),i._promise&&(e._promise=i[t(n)],delete i[t(s)]),i.style.clampToGround=!0,i.splitNum=null!=(t=i.splitNum)?t:200,e}return _createClass(c,[{key:"_drawCreatedHandler",value:function(e){_get(_getPrototypeOf(c.prototype),"_drawCreatedHandler",this).call(this,e,!1),this.updateSectionForTerrain(e)}},{key:l(2213),value:function(e){_get(_getPrototypeOf(c[l(2385)]),"_editPointHandler",this).call(this,e,!1),this.updateSectionForTerrain(e)}},{key:l(1918),value:function(e){var u,_,p,m,d,i=4012,a=3560,n=3814,s=1493,r=1049,f=l,y=this,v=this.positionsShow;v.length<2||(this.fire(EventType.start,{mtype:this[f(t)],graphic:this},!0),u=0,_=[],p=[],m=[],d=[],computeStepSurfaceLine({map:this._map,positions:v,splitNum:this.options.splitNum,has3dtiles:this[f(o)].has3dtiles,exact:this.options.exact,endItem:function(e,t,i){var a=f;if(y._map&&y._measureLable){for(var n=null==(h=Cesium__namespace.Cartographic[a(3258)](v[i]))?void 0:h.height,s=((null==(h=Cesium__namespace.Cartographic[a(g)](v[i+1]))?void 0:h[a(C)])-n)/e.length,r=0,o=0;o<e.length;o++){0!==o&&(l=Cesium__namespace.Cartesian3.distance(e[o],e[o-1]),u+=l,r+=l),_[a(x)](Number(u.toFixed(1)));var l=LngLatPoint[a(b)](e[o]),c=(p.push(l.alt),d[a(1018)](l),Number((n+s*o).toFixed(1)));m[a(x)](c)}i++;var h=y[a(1511)][i];h?(h[a(1740)].value=u,h[a(1740)][a(k)]=r,h.showText()):i===v.length-1&&y._measureLable&&(y._measured.distance=u,y._measured.distanceLastFd=r,y.updateText())}},end:function(){var e,t=f;y._map&&y._measureLable&&(y.updateText(),y[t(i)].arrLen=_,y._measured[t(2872)]=m,y._measured[t(a)]=p,y._measured.arrPoint=d,e=_objectSpread2({mtype:y.type,graphic:y,value:u,label:y[t(4012)].distanceStr},y[t(4012)]),y.fire(EventType[t(n)],e,!0),y.fire(EventType.end,e,!0),null!=(e=y[t(s)]))&&e[t(r)]&&y._promise.resolve(y)}}))}}]),c}()),DEF_STYLE$i=(register$4("sectionMeasure",SectionMeasure),{materialType:"PolylineArrow",color:"#ebe967",width:9,clampToGround:!0}),AngleMeasure=function(){var e=2546,t=2071,i=1997,a=1488,n=4012,s=4012,r=2802,o=3366,l=4012,c=3817,h=1390,u=1855,_=349,p=703,m=619,d=2802,f=4052,y=2852,v=2306,g=1582,C=3256,x=1592,b=4045,k=1814,P=_0x1658de,w=(_inherits(S,PolylineEntity),_createSuper(S));function S(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,S),t.hasMoveEdit=!1,t[e(k)]=2,t.decimal=null!=(e=t[e(1390)])?e:2,t.angleDecimal=null!=(e=t.angleDecimal)?e:1,t.style=_objectSpread2(_objectSpread2({},DEF_STYLE$i),t.style||{}),(e=w.call(this,t))._measured={},e}return _createClass(S,[{key:P(e),get:function(){return this._measured}},{key:"_addedHook",value:function(e){var t=P;_get(_getPrototypeOf(S[t(2385)]),"_addedHook",this).call(this,e),this._measureLable=this._createLabel(this.options.label||(null==(e=this._layer)||null==(e=e.options)?void 0:e[t(3686)])),this[t(d)].show=!1,this.on(EventType.drawAddPoint,this._drawAddPointHandler,this),this.on(EventType[t(2820)],this[t(f)],this),this.on(EventType[t(y)],this._drawMouseMoveHandler,this),this[t(v)](EventType[t(g)],this._drawCreatedHandler,this),this.on(EventType[t(3397)],this._drawMouseMoveHandler,this),this.on(EventType[t(C)],this[t(2758)],this),this.on(EventType.editMouseMove,this._drawMouseMoveHandler,this),this[t(x)].positions&&(this._measureLable[t(b)]=!0,this._drawMouseMoveHandler())}},{key:P(t),value:function(){var e=P;this.off(EventType.drawAddPoint,this[e(m)],this),this.off(EventType.drawMouseMove,this._drawMouseMoveHandler,this),this[e(4030)](EventType[e(2820)],this._drawRemovePointHandler,this),this[e(4030)](EventType.drawCreated,this[e(2374)],this),this.off(EventType[e(3397)],this._drawMouseMoveHandler,this),this.off(EventType.editRemovePoint,this[e(2758)],this),this.off(EventType[e(958)],this._drawMouseMoveHandler,this),Cesium__namespace.defined(this[e(2802)])&&(this._removeLabel(this._measureLable),delete this._measureLable),_get(_getPrototypeOf(S.prototype),"_removedHook",this).call(this)}},{key:"updateText",value:function(e){var t=P;e&&(this.options.unit=e),this._measured.angleStr=this._measured.angle[t(o)](this.options.angleDecimal)+"°",this._measured.distanceStr=formatDistance(this[t(l)][t(1937)],{unit:this.options.unit,lang:this[t(c)].lang,decimal:this[t(1592)][t(h)]}),this[t(2802)].text=this[t(3817)][t(349)](t(u))+":"+this[t(4012)].angleStr+"\n"+this[t(3817)][t(_)]("_距离")+":"+this[t(4012)][t(p)]}},{key:"_drawAddPointHandler",value:function(e){this._drawMouseMoveHandler(e)}},{key:P(4052),value:function(e){var t=P;this._measureLable&&(this._measureLable[t(4045)]=!1)}},{key:P(2758),value:function(e){var t=P,i=this[t(3203)];i.length<2?this._measureLable.show=!1:(this._measured.distance=Cesium__namespace.Cartesian3.distance(i[0],i[1]),this[t(4012)].angle=getAngle(i[0],i[1],!0),this.updateText(),this._measureLable.position=i[1],this[t(r)].show=!0,this[t(1997)](EventType.change,{mtype:this.type,value:this._measured.angle,label:this._measured.angleStr},!0))}},{key:P(2374),value:function(e){var t=P;this[t(i)](EventType.end,{mtype:this[t(a)],value:this[t(n)].angle,label:this[t(s)][t(582)]},!0)}}]),S}(),DEF_STYLE$h=(register$4(_0x1658de(2683),AngleMeasure),{materialType:"PolylineGlow",glowPower:.1,color:"#ebe12c",width:9}),HeightMeasure=function(){var e=2546,t=619,i=2939,s=4045,r=3428,o=3258,l=3817,c=2332,h=784,u=3159,_=4012,a=2939,n=3817,p=2802,m=2802,d=4030,f=3670,y=4030,v=2758,g=4052,C=3670,x=4052,b=2213,k=2492,P=_0x1658de,w=(_inherits(S,PolylineEntity),_createSuper(S));function S(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,S),i[t(3741)]=!1,i[t(1814)]=2,i.decimal=null!=(e=i.decimal)?e:2,i[t(k)]=_objectSpread2(_objectSpread2({},DEF_STYLE$h),i.style||{}),(e=w.call(this,i))._measured={},e}return _createClass(S,[{key:P(e),get:function(){return this[P(4012)]}},{key:P(563),value:function(e){var t=P;_get(_getPrototypeOf(S.prototype),"_addedHook",this).call(this,e),this[t(3730)](),this.on(EventType[t(C)],this._drawAddPointHandler,this),this.on(EventType.drawRemovePoint,this[t(x)],this),this.on(EventType.drawMouseMove,this._drawMouseMoveHandler,this),this.once(EventType[t(1582)],this[t(2374)],this),this.on(EventType.editMovePoint,this._editPointHandler,this),this.on(EventType.editRemovePoint,this._editPointHandler,this),this.on(EventType[t(958)],this._editPointHandler,this),this.options.positions&&(this._measureLable.show=!0,this[t(b)]())}},{key:P(2071),value:function(){var e=P;this[e(d)](EventType[e(f)],this._drawAddPointHandler,this),this[e(y)](EventType.drawMouseMove,this[e(v)],this),this.off(EventType.drawRemovePoint,this[e(g)],this),this.off(EventType[e(1582)],this._drawCreatedHandler,this),this[e(y)](EventType.editMovePoint,this._editPointHandler,this),this[e(y)](EventType.editRemovePoint,this._editPointHandler,this),this.off(EventType.editMouseMove,this._editPointHandler,this),this._removeMeasureLabelAndEx(),_get(_getPrototypeOf(S.prototype),"_removedHook",this).call(this)}},{key:"_initMeasureLable",value:function(){var e;this._measureLable=this._createLabel(this.options.label||(null==(e=this._layer)||null==(e=e.options)?void 0:e.label)),this._measureLable.show=!1}},{key:P(3913),value:function(){var e=P;Cesium__namespace.defined(this._measureLable)&&(this._removeLabel(this[e(m)]),delete this._measureLable)}},{key:"updateText",value:function(e){var t=P;e&&(this.options.unit=e),this._measured[t(a)]=formatDistance(this[t(4012)].height,{unit:this.options.unit,lang:this[t(n)].lang,decimal:this.options.decimal}),this[t(p)].text=this._map.getLangText("_高度差")+":"+this[t(4012)][t(2939)]}},{key:P(t),value:function(e){this._drawMouseMoveHandler(e)}},{key:"_drawRemovePointHandler",value:function(e){var t=P;this._measureLable&&(this[t(2802)].show=!1)}},{key:"_drawMouseMoveHandler",value:function(e){var t,i,a=P,n=this.positionsShow;n.length<2?this[a(2802)][a(s)]=!1:(t=Cesium__namespace.Cartographic.fromCartesian(n[0]),i=Cesium__namespace[a(r)][a(o)](n[1]),this._measured.height=this[a(l)].getRealAlt(Math[a(411)](i.height-t.height)),this[a(c)](),this._measureLable[a(2532)]=Cesium__namespace.Cartesian3.midpoint(n[0],n[1],new Cesium__namespace[a(h)]),this._measureLable[a(4045)]=!0,this.fire(EventType.change,{mtype:this.type,value:this._measured[a(u)],label:this[a(_)][a(2939)]},!0))}},{key:"_drawCreatedHandler",value:function(e){var t=P;this.fire(EventType.end,{mtype:this.type,value:this._measured.height,label:this[t(4012)][t(i)]},!0)}},{key:P(2213),value:function(e){this._drawMouseMoveHandler(e)}}]),S}(),HeightTriangleMeasure=(register$4("heightMeasure",HeightMeasure),function(){var a=1980,c=3203,h=4045,u=784,_=2874,p=2360,m=2532,d=3814,i=2301,n=4045,s=1264,r=3817,o=4012,l=349,t=3126,f=2738,y=3126,v=3730,g=2555,C=2638,x=_0x1658de,e=(_inherits(b,HeightMeasure),_createSuper(b));function b(){return _classCallCheck(this,b),e.apply(this,arguments)}return _createClass(b,[{key:"_initMeasureLable",value:function(){var e,t=_0x236b;_get(_getPrototypeOf(b.prototype),t(v),this).call(this),this._measureDistanceLable=this._createLabel(this.options.label||(null==(e=this._layer)||null==(e=e.options)?void 0:e.label)),this[t(g)].pixelOffset=new Cesium__namespace[t(C)](0,0),this._measureHorLable=this._createLabel(this.options.label||(null==(e=this[t(2818)])||null==(e=e.options)?void 0:e.label)),this._measureHorLable[t(2347)]=new Cesium__namespace[t(C)](0,0)}},{key:"_removeMeasureLabelAndEx",value:function(){var e=_0x236b;_get(_getPrototypeOf(b.prototype),"_removeMeasureLabelAndEx",this).call(this),null!=this._measureDistanceLable&&(this._removeLabel(this._measureDistanceLable),delete this[e(2555)]),null!=this[e(2301)]&&(this._removeLabel(this[e(2301)]),delete this._measureHorLable),null!=this[e(t)]&&(this.dataSource[e(f)][e(4071)](this[e(y)]),delete this._measureExLine)}},{key:x(2332),value:function(e){var t=x,e=(_get(_getPrototypeOf(b.prototype),"updateText",this).call(this,e),{unit:this.options.unit,lang:this[t(r)].lang,decimal:this.options.decimal});this._measured[t(703)]=formatDistance(this._measured.distance,e),this._measureDistanceLable[t(3045)]=this._map[t(349)](t(428))+":"+this._measured.distanceStr,this[t(o)].distanceHorStr=formatDistance(this._measured.distanceHor,e),this._measureHorLable.text=this._map[t(l)]("_水平距离")+":"+this._measured[t(2765)]}},{key:"_drawRemovePointHandler",value:function(e){var t=x;this._measureLable&&(this._measureLable.show=!1),this[t(i)]&&(this[t(2301)].show=!1),this._measureDistanceLable&&(this._measureDistanceLable[t(n)]=!1),this._measureExLine&&(this[t(s)]=null)}},{key:"_drawMouseMoveHandler",value:function(e){var t,i,a,n,s,r,o=x,l=this[o(c)];l[o(2822)]<2?this._measureLable[o(h)]=!1:(i=(t=Cesium__namespace.Cartographic.fromCartesian(l[0])).height,r=(a=(r=Cesium__namespace.Cartographic.fromCartesian(l[1]))[o(3159)])<i?(n=Cesium__namespace[o(784)].fromRadians(r[o(3594)],r.latitude,i),s=l[0],l[1]):(n=Cesium__namespace[o(u)][o(_)](t.longitude,t[o(p)],a),s=l[1],l[0]),this._measured.height=this._map.getRealAlt(Math.abs(a-i)),this._measureLable[o(2532)]=Cesium__namespace[o(u)].midpoint(n,r,new Cesium__namespace[o(784)]),this._measureLable[o(4045)]=!0,this._measured.distance=Cesium__namespace.Cartesian3.distance(s,r),this._measureDistanceLable.position=Cesium__namespace.Cartesian3.midpoint(s,r,new Cesium__namespace.Cartesian3),this._measureDistanceLable.show=!0,this[o(4012)].distanceHor=Cesium__namespace.Cartesian3.distance(n,s),this._measureHorLable[o(m)]=Cesium__namespace.Cartesian3[o(1841)](n,s,new Cesium__namespace[o(784)]),this._measureHorLable.show=!0,this.updateText(),this[o(3672)]([r,n,s]),this.fire(EventType[o(d)],{mtype:this.type,value:this._measured[o(3159)],label:this._measured.heightStr},!0))}},{key:"updateExLine",value:function(e){var t=x,i=this;this[t(1264)]=e,this._measureExLine||((e={id:this.id+"-ex",polyline:PolylineStyleConver.toCesiumVal(this.options.style,{},!0)})[t(3089)][t(a)]=new Cesium__namespace.CallbackProperty(function(e){return i._measureExLine_positions},!1),this._measureExLine=this._createEntity(e),this.dataSource.entities.add(this._measureExLine),this[t(3917)](this._measureExLine))}},{key:"_editPointHandler",value:function(e){this[x(2758)](e)}}]),b}()),DEF_STYLE$g=(register$4("heightTriangleMeasure",HeightTriangleMeasure),{color:"#00fff2",outline:!0,outlineColor:_0x1658de(3849),outlineWidth:1,opacity:.4,clampToGround:!1}),AreaMeasure=function(){var a=4012,n=3203,s=2332,r=4045,t=2802,i=4030,o=4030,l=563,c=3686,h=2306,u=2213,e=4012,_=3686,p=_0x1658de,m=(_inherits(d,PolygonEntity),_createSuper(d));function d(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,d),i.hasMoveEdit=!1,i.decimal=null!=(e=i.decimal)?e:2,i.style=_objectSpread2(_objectSpread2({},DEF_STYLE$g),i[t(2492)]||{}),i.label&&(i.label=_objectSpread2({horizontalOrigin:Cesium__namespace.HorizontalOrigin.CENTER},i[t(_)])),(e=m.call(this,i))._measured={},e}return _createClass(d,[{key:"measured",get:function(){return this[_0x236b(e)]}},{key:"_addedHook",value:function(e){var t=_0x236b;_get(_getPrototypeOf(d.prototype),t(l),this)[t(1567)](this,e),this._measureLable=this._createLabel(this.options.label||(null==(e=this._layer)||null==(e=e.options)?void 0:e[t(c)])),this._measureLable.show=!1,this.on(EventType.drawAddPoint,this._drawAddPointHandler,this),this.on(EventType.drawRemovePoint,this._drawRemovePointHandler,this),this.on(EventType.drawMouseMove,this._drawMouseMoveHandler,this),this[t(h)](EventType.drawCreated,this._drawCreatedHandler,this),this.on(EventType.editMovePoint,this._editPointHandler,this),this.on(EventType.editRemovePoint,this[t(u)],this),this.options.positions&&(this._measureLable.show=!0,this._editPointHandler())}},{key:"_removedHook",value:function(){var e=_0x236b;this[e(i)](EventType[e(3670)],this._drawAddPointHandler,this),this[e(o)](EventType.drawMouseMove,this._drawMouseMoveHandler,this),this.off(EventType.drawRemovePoint,this._drawRemovePointHandler,this),this.off(EventType.drawCreated,this._drawCreatedHandler,this),this.off(EventType.editMovePoint,this._editPointHandler,this),this.off(EventType.editRemovePoint,this._editPointHandler,this),this[e(3913)](),_get(_getPrototypeOf(d.prototype),"_removedHook",this)[e(1567)](this)}},{key:"_removeMeasureLabelAndEx",value:function(){var e=_0x236b;Cesium__namespace[e(3277)](this[e(t)])&&(this._removeLabel(this._measureLable),delete this[e(t)])}},{key:"updateText",value:function(e){var t=_0x236b;e&&(this[t(1592)][t(528)]=e),this._measured.areaStr=formatArea(this._measured.area,{unit:this.options.unit,lang:this._map.lang,decimal:this.options[t(1390)]}),this._measureLable[t(3045)]=this[t(3817)].getLangText("_面积")+":"+this._measured.areaStr}},{key:"startDraw",value:function(e){var t=_0x236b;_get(_getPrototypeOf(d.prototype),"startDraw",this).call(this,e),this[t(2758)](),2<(null==(e=this.options.positions)?void 0:e.length)&&this.stopDraw()}},{key:"_drawAddPointHandler",value:function(e){this._drawMouseMoveHandler(e)}},{key:"_drawRemovePointHandler",value:function(e){var t=_0x236b,i=this.positionsShow;(null==i?void 0:i.length)<3&&(this._measureLable[t(r)]=!1)}},{key:p(2758),value:function(e){var t=p,i=this[t(n)];i.length<3?this._measureLable[t(4045)]=!1:(this._measured.area=getArea(i),this[t(s)](),i=centerOfMass(i),this._measureLable.position=i,this[t(2802)].show=!0,this.fire(EventType.change,{mtype:this.type,value:this._measured.area,label:this._measured.areaStr},!0))}},{key:"_drawCreatedHandler",value:function(e){this.fire(EventType.end,{mtype:this.type,value:this._measured.area,label:this._measured.areaStr},!0)}},{key:"_editPointHandler",value:function(e){var t=p,i=this.positionsShow;this[t(a)].area=getArea(i),this.updateText(),this._measureLable.position=centerOfMass(i),this.fire(EventType.change,{mtype:this.type,value:this[t(a)].area,label:this._measured.areaStr},!0)}}]),d}(),AreaSurfaceMeasure=(register$4("areaMeasure",AreaMeasure),function(){var i=1997,s=1592,r=1592,o=2898,l=3817,c=1732,h=4012,u=1997,_=1493,a=(_inherits(n,AreaMeasure),_createSuper(n));function n(){var e,t=_0x236b,i=0<arguments[t(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),e=a.call(this,i),i._promise&&(e._promise=i._promise,delete i._promise),i.style[t(1614)]=!0,e}return _createClass(n,[{key:"_drawCreatedHandler",value:function(e){this.updateAreaForTerrain(e)}},{key:"_editPointHandler",value:function(e){var t=_0x236b;_get(_getPrototypeOf(n[t(2385)]),t(2213),this).call(this,e),this.updateAreaForTerrain(e)}},{key:"updateAreaForTerrain",value:function(e){var a=_0x236b,n=this,t=this.positionsShow;this[a(i)](EventType.start,{mtype:this.type,graphic:this},!0),getClampArea(t,{scene:this._map.scene,splitNum:this[a(s)].splitNum,has3dtiles:this.options.has3dtiles,exact:this[a(r)][a(o)]}).then(function(e){var t,i=a;n._map&&n._measureLable&&((t=getPositionValue(n[i(2802)].position,null==(t=n[i(l)])?void 0:t.clock.currentTime))&&null!=e&&e.maxHeight&&(n._measureLable.position=setPositionsHeight(t,e[i(c)])),n._measured.area=e.area,n.updateText(),t=_objectSpread2(_objectSpread2({},e),{},{mtype:n[i(1488)],value:n[i(h)].area,label:n._measured.areaStr}),n[i(u)](EventType[i(3814)],t,!0),n.fire(EventType.end,t,!0),null!=(e=n._promise))&&e.resolve&&n[i(_)][i(1049)](n)})}}]),n}()),VolumeMeasure=(register$4("areaSurfaceMeasure",AreaSurfaceMeasure),function(){var e=3913,t=3155,h=3118,u=3428,_=1479,p=1018,l=1994,c=642,m=3817,d=3049,f=4012,y=2532,v=1732,g=651,C=1672,x=568,b=360,k=3814,P=1049,w=1493,s=1592,r=2589,o=3118,S=3118,a=2986,n=3602,T=4012,M=3817,E=1308,A=1567,L=1511,D=2822,I=2591,F=2244,i=2385,O=651,N=4012,G=3159,z=1479,B=568,j=2892,V=1994,R=_0x1658de,$=(_inherits(H,AreaMeasure),_createSuper(H));function H(){var e,t,i=_0x236b,a=0<arguments[i(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,H),t=$.call(this,a),a._promise&&(t._promise=a._promise,delete a[i(1493)]),t.labelHeightStyle=_objectSpread2(_objectSpread2({},t.options.label||{}),{},{font_size:15,background:!1}),Cesium__namespace.defined(a[i(694)])&&(t.labelHeightStyle=_objectSpread2(_objectSpread2({},t[i(z)]),a.labelHeight)),t[i(B)]={color:"#00ff00",opacity:.3,closeTop:!1,closeBottom:!0,perPositionHeight:!1,height:new Cesium__namespace.CallbackProperty(function(e){return t[i(V)]},!1),extrudedHeight:new Cesium__namespace.CallbackProperty(function(e){return t[i(1732)]},!1)},Cesium__namespace.defined(a[i(987)])&&(t.polygonWallStyle=_objectSpread2(_objectSpread2({},t[i(568)]),a.polygonWall)),t.heightLabel=null==(e=a.heightLabel)||e,t.offsetLabel=null!=(e=a.offsetLabel)&&e,t.showArea=null==(e=a[i(j)])||e,t.showFillVolume=null==(e=a.showFillVolume)||e,t.showDigVolume=null==(e=a[i(3808)])||e,t[i(1343)]=!1,t}return _createClass(H,[{key:R(638),get:function(){return!1}},{key:R(3148),get:function(){return(this.interPolygonObj||this).maxHeight}},{key:"height",get:function(){return this._jzmHeight},set:function(e){var t=R;if((this._jzmHeight=e)>this.maxHeight&&(this.maxHeight=e),e<this.minHeight&&(this.minHeight=e),this._hasFX){var i,a=updateVolume(this.interPolygonObj,this[t(G)]);for(i in a)this[t(4012)][i]=a[i];if(this.updateText(),this._arrPartMeasureLable)for(var n=0;n<this[t(1511)].length;n++)this._arrPartMeasureLable[n].showText();e=_objectSpread2(_objectSpread2({},a),{},{sourceTarget:this,mtype:this[t(1488)],graphic:this});this.fire(EventType.change,e,!0)}}},{key:"minHeight",get:function(){return this._minHeight||0},set:function(e){var t=R;if(this._minHeight=e,this[t(1343)]){this[t(O)]&&(this.interPolygonObj[t(1994)]=e,this.interPolygonObj=updateVolumeByMinHeight(this[t(651)]));var i,a=updateVolume(this[t(O)],this.height);for(i in a)this[t(N)][i]=a[i];this.updateText();e=_objectSpread2(_objectSpread2({},a),{},{sourceTarget:this,mtype:this.type,graphic:this});this.fire(EventType.change,e,!0)}}},{key:"maxHeight",get:function(){return this[R(3049)]||0},set:function(e){this._maxHeight=e}},{key:"_removedHook",value:function(){var e=R;this[e(2572)]&&(this._map.scene.globe.depthTestAgainstTerrain=!1,delete this._depthTestAgainstTerrain_reset),_get(_getPrototypeOf(H[e(i)]),"_removedHook",this).call(this)}},{key:R(e),value:function(){var e=R;if(_get(_getPrototypeOf(H.prototype),"_removeMeasureLabelAndEx",this)[e(A)](this),Cesium__namespace[e(3277)](this[e(1511)])&&0<this._arrPartMeasureLable.length){var t=this[e(L)];if(t&&0<t[e(D)])for(var i=0,a=t[e(2822)];i<a;i++)this[e(I)](t[i]);delete this._arrPartMeasureLable}Cesium__namespace.defined(this._wallEntity)&&(this[e(F)][e(2738)].remove(this._wallEntity),delete this[e(3579)])}},{key:"_drawCreatedHandler",value:function(e){var t=this,i=(this[R(2802)].text=this._map.getLangText("_正在计算体积")+"…",this.positionsShow);setTimeout(function(){t.calcVolume(i)},100)}},{key:"_editPointHandler",value:function(e){this._drawCreatedHandler(e)}},{key:R(2332),value:function(e){var t=R,e=(e&&(this[t(1592)].unit=e),{unit:this.options.unit,lang:this[t(3817)].lang,decimal:this.options[t(1390)]}),i="";this[t(2655)]&&0<this._measured[t(a)]&&(this._measured.fillVolumeStr=formatVolume(this._measured.fillVolume,e),i+=(this.options[t(2208)]||this._map.getLangText(t(1960)))+":"+this[t(4012)].fillVolumeStr+"\n"),this.showDigVolume&&0<this._measured.digVolume&&(this._measured[t(n)]=formatVolume(this[t(T)][t(4081)],e),i+=(this.options.digVolumeName||this[t(M)].getLangText("_挖方体积"))+":"+this[t(T)].digVolumeStr+"\n"),this.showArea&&0<this[t(T)].totalArea&&(this._measured[t(1308)]=formatArea(this._measured.totalArea,e),i+=(this.options.areaName||this[t(M)].getLangText("_横切面积"))+":"+this._measured[t(E)]),this[t(2802)].text=i}},{key:"calcVolume",value:function(i){var a=R,n=this;this._map&&(this.fire(EventType.start,{mtype:this[a(1488)],sourceTarget:this,positions:i},!0),this._hasFX=!0,interPolygon(_objectSpread2({positions:i,scene:this._map.scene,exact:!0},this[a(s)]))[a(r)](function(e){var t=a;n._map&&n[t(1343)]&&(e.has3dtiles?n._map[t(o)].globe.depthTestAgainstTerrain=!1:n[t(3817)][t(S)].globe.depthTestAgainstTerrain||(n._map[t(S)].globe[t(477)]=!0,n._depthTestAgainstTerrain_reset=!0),n[t(2185)](i,e))}))}},{key:"showVolume",value:function(e,t){var i,a=3159,n=R,s=this,r=(this._jzmHeight=null!=(r=this[n(1592)].height)?r:t[n(l)],this._jzmHeight<t.minHeight&&(t[n(1994)]=this._jzmHeight),this.interPolygonObj=updateVolumeByMinHeight(t),this[n(c)]=null!=(r=this.options.minHeight)?r:this.interPolygonObj[n(l)],this._maxHeight=null!=(r=this.options[n(1732)])?r:this.interPolygonObj.maxHeight,Math.floor(.3*Cesium__namespace[n(1124)].chordLength(t.granularity,this[n(m)][n(3118)].globe.ellipsoid[n(3251)]))),o=(this[n(d)]-this[n(642)]<r&&(this._maxHeight=this._minHeight+r),updateVolume(this[n(651)],this[n(3159)]));for(i in o)this[n(f)][i]=o[i];this.updateText(),this._measureLable[n(y)]=centerOfMass(e,this[n(651)][n(v)]),this.heightLabel&&this.showPointHeightLabel(e,this[n(g)].minHeight),this._entity._noMousePick=!0,this[n(3135)].perPositionHeight=!1,this.entityGraphic.hierarchy=new Cesium__namespace.PolygonHierarchy(e),this.entityGraphic.height=new Cesium__namespace.CallbackProperty(function(e){return s[n(a)]},!1);t=PolygonStyleConver[n(C)](this[n(x)],{},!0),t.hierarchy=new Cesium__namespace.PolygonHierarchy(e),this._wallEntity=this[n(2244)].entities.add({polygon:t}),this[n(3579)][n(b)]=!0,this.bindPickId(this[n(3579)]),r=_objectSpread2(_objectSpread2({},o),{},{sourceTarget:this,mtype:this.type,graphic:this});this[n(1997)](EventType[n(k)],r,!0),this.fire(EventType[n(1797)],r,!0),null!=(e=this._promise)&&e[n(P)]&&this[n(w)].resolve(this)}},{key:R(t),value:function(e,t){for(var a=3366,n=349,s=R,r=this,i=[],o=0;o<e[s(2822)];o++){var l=Math.max(getHeight(this._map[s(h)],e[o]),t),c=Cesium__namespace[s(u)].fromCartesian(e[o]),c=Cesium__namespace.Cartesian3.fromRadians(c[s(3594)],c.latitude,l),c=this[s(3717)](this[s(_)],c);c[s(1740)]={value:l},i[s(p)](c),c.showText=function(){var e=s,t=this.attr[e(3601)],i=r._map.getLangText("_海拔")+":"+t[e(a)](2)+r._map.getLangText("_米");return r.offsetLabel&&(i+=0<(t=t-r.height)?"\n"+r._map[e(n)]("_高度")+":"+t.toFixed(2)+r[e(3817)].getLangText("_米")+"("+r._map.getLangText("_面上")+")":"\n"+r[e(3817)].getLangText("_高度")+":"+Math.abs(t).toFixed(2)+r._map.getLangText("_米")+"("+r._map.getLangText("_面下")+")"),this.text=i},c.showText()}this._arrPartMeasureLable=i}}]),H}()),VolumeDepthMeasure=(register$4("volumeMeasure",VolumeMeasure),function(){var e=3148,t=3159,i=1716,l=784,c=2360,h=2891,u=1740,_=3817,p=1237,m=3366,d=672,f=1980,y=1016,v=3423,g=4081,C=1711,x=1339,b=3487,a=2802,n=3089,k=1592,P=2589,s=372,r=1314,o=4081,w=3022,S=3817,T=2802,M=1241,E=2822,A=2244,L=4071,D=3049,I=4012,H=2332,F=1488,N=2612,G=1994,z=694,B=1479,j=1179,V=3156,$=3121,U=3121,W=568,J=987,q=2892,Y=3808,O=_0x1658de,Z=(_inherits(R,AreaMeasure),_createSuper(R));function R(){var e,t,i=1732,a=_0x236b,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),t=Z.call(this,n),n._promise&&(t._promise=n._promise,delete n._promise),t.labelHeightStyle=_objectSpread2(_objectSpread2({},t.options.label||{}),{},{font_size:15,background:!1}),Cesium__namespace[a(3277)](n[a(z)])&&(t[a(B)]=_objectSpread2(_objectSpread2({},t.labelHeightStyle),n[a(694)])),t._cutColor=Cesium__namespace.ColorGeometryInstanceAttribute[a(1179)](getCesiumColor(n.cutColor,Cesium__namespace.Color.RED.withAlpha(.5))),t._fillColor=Cesium__namespace.ColorGeometryInstanceAttribute[a(j)](getCesiumColor(n[a(3160)],Cesium__namespace.Color.YELLOW.withAlpha(.5))),t[a(1592)].offsetHeight=null!=(e=t[a(1592)][a(V)])?e:0,t.polygonWallStyle={color:"#00ff00",opacity:.3,closeTop:!1,closeBottom:!0,perPositionHeight:!1,height:new Cesium__namespace[a($)](function(e){return t.minHeight},!1),extrudedHeight:new Cesium__namespace[a(U)](function(e){return t[a(i)]},!1)},Cesium__namespace.defined(n[a(987)])&&(t[a(W)]=_objectSpread2(_objectSpread2({},t.polygonWallStyle),n[a(J)])),t.heightLabel=null==(e=n.heightLabel)||e,t[a(2052)]=null!=(e=n.offsetLabel)&&e,t.showArea=null==(e=n[a(q)])||e,t[a(2655)]=null==(e=n.showFillVolume)||e,t[a(3808)]=null==(e=n[a(Y)])||e,t._showBox=null==(e=n.showBox)||e,t[a(1184)]=null==(e=n.showPoly)||e,t._showWall=null!=(e=n.showWall)&&e,t._hasFX=!1,t}return _createClass(R,[{key:"hasEdit",get:function(){return!1}},{key:O(e),get:function(){return(this._measured||this).maxHeight}},{key:O(t),get:function(){return this._jzmHeight},set:function(e){var t=O;if((this[t(N)]=e)>this.maxHeight&&(this.maxHeight=e),e<this.minHeight&&(this[t(G)]=e),this._hasFX){if(this.updateVolume(),this.updateText(),this._arrPartMeasureLable)for(var i=0;i<this._arrPartMeasureLable.length;i++)this._arrPartMeasureLable[i].showText();t=_objectSpread2(_objectSpread2({},this._measured),{},{sourceTarget:this,mtype:this.type,graphic:this});this.fire(EventType.change,t,!0)}}},{key:"minHeight",get:function(){return this._minHeight||0},set:function(e){var t=O;this._minHeight=e,this._hasFX&&(this._measured&&(this[t(I)].minHeight=e,this[t(1716)]()),this[t(H)](),e=_objectSpread2(_objectSpread2({},this._measured),{},{sourceTarget:this,mtype:this[t(F)],graphic:this}),this.fire(EventType.change,e,!0))}},{key:"maxHeight",get:function(){return this[O(D)]||0},set:function(e){this._maxHeight=e}},{key:"showBox",get:function(){return this._showBox},set:function(e){var t=O;this[t(3295)]=e,this[t(1716)]()}},{key:"_removeMeasureLabelAndEx",value:function(){var e=O;if(_get(_getPrototypeOf(R.prototype),"_removeMeasureLabelAndEx",this).call(this),Cesium__namespace.defined(this._arrPartMeasureLable)&&0<this._arrPartMeasureLable.length){var t=this[e(1511)];if(t&&0<t[e(E)])for(var i=0,a=t.length;i<a;i++)this._removeLabel(t[i]);delete this._arrPartMeasureLable}Cesium__namespace.defined(this._wallEntity)&&(this[e(A)].entities[e(L)](this[e(3579)]),delete this._wallEntity)}},{key:O(2374),value:function(e){var t=O,i=this,a=(this[t(T)].text=this[t(3817)][t(349)](t(M))+"…",this[t(3203)]);setTimeout(function(){i.calcVolume(a)},100)}},{key:O(2213),value:function(e){this._drawCreatedHandler(e)}},{key:"updateText",value:function(e){var t=O,e=(e&&(this.options[t(528)]=e),{unit:this.options.unit,lang:this._map[t(s)],decimal:this.options.decimal}),i="";this[t(2655)]&&0<this._measured.fillVolume&&(this._measured.fillVolumeStr=formatVolume(this[t(4012)][t(2986)],e),i+=(this.options[t(2208)]||this._map.getLangText("_填方体积"))+":"+this._measured[t(r)]+"\n"),this[t(3808)]&&0<this._measured[t(o)]&&(this._measured.digVolumeStr=formatVolume(this._measured.digVolume,e),i+=(this.options[t(w)]||this[t(S)].getLangText("_挖方体积"))+":"+this._measured.digVolumeStr+"\n"),this.showArea&&0<this._measured.totalArea&&(this._measured.totalAreaStr=formatArea(this._measured[t(1978)],e),i+=(this.options.areaName||this._map.getLangText(t(3657)))+":"+this[t(4012)].totalAreaStr),this._measureLable.text=i}},{key:"calcVolume",value:function(s){var r=3159,o=1994,l=4012,c=4012,h=4012,u=2532,_=3155,p=4045,m=3135,d=1719,f=1672,y=568,v=360,g=3917,C=1049,x=O,b=this;if(this._map){if(this.fire(EventType[x(3057)],{mtype:this.type,sourceTarget:this,positions:s},!0),this._hasFX=!0,this[x(a)].show=!1,this._entity.show=!1,this._entity_outlines)for(var e=0,t=this._entity_outlines.length;e<t;e++)this._entity_outlines[e][x(n)].show=!1;interPolygonByDepth({scene:this[x(3817)].scene,positions:s,splitNum:this.options.splitNum,cameraHeight:this[x(k)].cameraHeight})[x(P)](function(e){var t=x;if(!b.isDestroy){if(b._measured=e,b[t(2612)]=null!=(n=b.options[t(r)])?n:e.minHeight,b._jzmHeight<e[t(o)]&&(e.minHeight=b[t(2612)]),b[t(l)]=b.updateVolume(e),b._minHeight=null!=(n=b.options.minHeight)?n:b[t(c)].minHeight,b._maxHeight=null!=(e=b.options.maxHeight)?e:b[t(h)].maxHeight,b[t(2332)](),b[t(2802)][t(u)]=centerOfMass(s,b._maxHeight),b[t(2802)].show=!0,b.heightLabel&&b[t(_)](s,b._minHeight),b._showPoly){if(b[t(2981)][t(p)]=!0,b._entity_outlines)for(var i=0,a=b._entity_outlines.length;i<a;i++)b._entity_outlines[i].polyline.show=!0;b._entity._noMousePick=!0,b[t(m)].perPositionHeight=!1,b[t(m)].hierarchy=new Cesium__namespace.PolygonHierarchy(s),b.entityGraphic.height=new Cesium__namespace.CallbackProperty(function(e){return b[t(3159)]},!1)}b[t(d)]&&((n=PolygonStyleConver[t(f)](b[t(y)],{},!0)).hierarchy=new Cesium__namespace.PolygonHierarchy(s),b._wallEntity=b.dataSource.entities.add({polygon:n}),b._wallEntity[t(v)]=!0,b[t(g)](b._wallEntity));var n,e=_objectSpread2(_objectSpread2({},b._measured),{},{sourceTarget:b,mtype:b.type,graphic:b});b.fire(EventType[t(3814)],e,!0),b.fire(EventType.end,e,!0),null!=(n=b._promise)&&n.resolve&&b._promise[t(C)](b)}})}}},{key:O(i),value:function(e){for(var t=O,i=(e=e||this[t(4012)])[t(1994)],a=this.height,n=e.box[t(d)],s=[],r=this.options.offsetHeight,o=0,l=0,c=0,h=e.count;c<h;c++){var u,_=e[t(f)][c],p=_.height;a<(p=p<i?i:p)?(o+=n*(p-a),this.showBox&&(u=_.getOutline(),s.push(new Cesium__namespace[t(1016)]({geometry:new Cesium__namespace.PolygonOutlineGeometry({polygonHierarchy:new Cesium__namespace.PolygonHierarchy(u),extrudedHeight:p+r,height:a+r}),attributes:{color:this._cutColor}})))):p<a&&(l+=n*(a-p),this.showBox)&&(u=_.getOutline(),s.push(new Cesium__namespace[t(y)]({geometry:new Cesium__namespace.PolygonOutlineGeometry({polygonHierarchy:new Cesium__namespace.PolygonHierarchy(u),extrudedHeight:a+r,height:p+r}),attributes:{color:this[t(v)]}})))}return e[t(g)]=o,e.fillVolume=l,this[t(1711)]&&(this._layer.primitiveCollection.remove(this[t(C)]),delete this._primitive_boxs),this[t(x)]&&0<s.length&&(this._primitive_boxs=new Cesium__namespace[t(b)]({geometryInstances:s,appearance:new Cesium__namespace.PerInstanceColorAppearance({flat:!0,renderState:{lineWidth:1}}),asynchronous:!0}),this._layer.primitiveCollection.add(this._primitive_boxs),this._primitive_boxs._noMousePick=!0,this.bindPickId(this[t(1711)])),e}},{key:O(3155),value:function(e,t){for(var a=O,n=this,i=[],s=0;s<e[a(2822)];s++){var r=Math.max(getHeight(this._map.scene,e[s]),t),o=Cesium__namespace[a(3428)].fromCartesian(e[s]),o=Cesium__namespace[a(l)].fromRadians(o[a(3594)],o[a(c)],r),o=this._createLabel(this[a(1479)],o);o.attr={value:r},i.push(o),o.showText=function(){var e=a,t=this[e(u)].value,i=n._map.getLangText("_海拔")+":"+t.toFixed(2)+n._map.getLangText("_米");return n[e(2052)]&&(i+=0<(t=t-n.height)?"\n"+n._map.getLangText("_高度")+":"+t[e(3366)](2)+n[e(_)].getLangText("_米")+"("+n._map.getLangText("_面上")+")":"\n"+n._map.getLangText(e(p))+":"+Math.abs(t)[e(m)](2)+n[e(_)].getLangText("_米")+"("+n._map.getLangText("_面下")+")"),this.text=i},o[a(h)]()}this[a(1511)]=i}}]),R}()),BillboardPrimitive=(register$4(_0x1658de(2222),VolumeDepthMeasure),function(){var e=3475,t=563,i=2492,a=2885,n=3535,s=2885,r=3458,o=2885,l=_0x1658de,c=(_inherits(h,BasePointPrimitive),_createSuper(h));function h(){var e=_0x236b;return _classCallCheck(this,h),c[e(2026)](this,arguments)}return _createClass(h,[{key:l(e),get:function(){var e;return null==(e=this._layer)?void 0:e.billboardCollection}},{key:"image",get:function(){var e=l;return this.style[e(613)]},set:function(e){this.style.image=e,this._primitive&&(this._primitive.image=e)}},{key:"_showHook",value:function(e){this[l(o)]?this._primitive.show=e:e&&_get(_getPrototypeOf(h.prototype),"_showHook",this).call(this,e)}},{key:l(t),value:function(e){var t=l;this.show&&(this._forPositionProperty(this.options.position),e=BillboardStyleConver.toCesiumVal(e,{show:this.show,position:this.position}),this._primitive=this[t(3475)].add(e),this.style[t(3686)])&&this._addLabel()}},{key:l(3692),value:function(e,t){BillboardStyleConver.toCesiumVal(e,this.primitive)}},{key:l(1748),value:function(e,t){return BillboardStyleConver[l(r)](e,t)}},{key:"_updatePositionsHook",value:function(){this[l(s)]._billboardCollection&&(this._primitive.position=this.position)}},{key:"setOpacity",value:function(e){var t=l;this[t(i)][t(1863)]=e,this._primitive&&(this[t(a)].color=Cesium__namespace.Color.WHITE[t(n)](e)),this._updateLabelOpacity(e)}},{key:l(969),value:function(e,t){return create$4(l(883),e)}}]),h}()),CloudPrimitive=(register$4(_0x1658de(2290),BillboardPrimitive,!0),function(){var t=2532,i=1594,a=1567,n=2090,s=2090,r=2026,o=_0x1658de,l=(_inherits(c,BasePointPrimitive),_createSuper(c));function c(){var e=_0x236b;return _classCallCheck(this,c),l[e(r)](this,arguments)}return _createClass(c,[{key:o(3475),get:function(){var e;return null==(e=this._layer)?void 0:e.cloudCollection}},{key:"maximumSize",get:function(){return this.style.maximumSize},set:function(e){var t=o;this.style.maximumSize=e,this._primitive&&(this[t(2885)].maximumSize=e)}},{key:"scale",get:function(){return this.style.scale},set:function(e){var t=o;this[t(2492)].scale=e,this._primitive&&(this[t(2885)].scale=e)}},{key:"slice",get:function(){return this[o(2492)].slice},set:function(e){var t=o;this.style[t(n)]=e,this._primitive&&(this._primitive[t(s)]=e)}},{key:"brightness",get:function(){return this.style.brightness},set:function(e){this.style.brightness=e,this._primitive&&(this._primitive.brightness=e)}},{key:"hasOpacity",get:function(){return!1}},{key:o(563),value:function(e){var t=o;this.show&&(this._forPositionProperty(this.options.position),e=CloudStyleConver.toCesiumVal(e,{show:this.show,position:this[t(2532)]}),this._primitive=this.primitiveCollection.add(e),this.style.label)&&this._addLabel()}},{key:"_showHook",value:function(e){var t=o;this._primitive?this._primitive[t(4045)]=e:_get(_getPrototypeOf(c.prototype),t(i),this)[t(a)](this,e)}},{key:"_updateStyleHook",value:function(e,t){var i=o;CloudStyleConver.toCesiumVal(e,this[i(1867)])}},{key:"_style2Json",value:function(e,t){return CloudStyleConver.toJSON(e,t)}},{key:"_updatePositionsHook",value:function(){var e=o;this._primitive.position=this[e(t)]}},{key:"_getDrawEntityClass",value:function(e,t){return this._getDrawPointEntityClass(e,t)}}]),c}()),LabelPrimitive=(register$4(_0x1658de(3462),CloudPrimitive,!0),function(){var i=4045,t=2532,a=1740,n=2885,s=2385,r=2885,o=2026,l=_0x1658de,c=(_inherits(h,BasePointPrimitive),_createSuper(h));function h(){var e=_0x236b;return _classCallCheck(this,h),c[e(o)](this,arguments)}return _createClass(h,[{key:"primitiveCollection",get:function(){var e;return null==(e=this._layer)?void 0:e.labelCollection}},{key:"text",get:function(){return this.style.text},set:function(e){var t=_0x236b;this.style.text=e,this[t(r)]&&(this._primitive.text=e)}},{key:"_showHook",value:function(e){var t=_0x236b;this._primitive?this[t(n)][t(4045)]=e:e&&_get(_getPrototypeOf(h[t(s)]),"_showHook",this).call(this,e)}},{key:"_addedHook",value:function(e){var t,i=_0x236b;this[i(4045)]&&(t=LabelStyleConver.toCesiumVal(this[i(2492)],{show:this.show,position:this[i(2532)]},{},this[i(1740)]),this._primitive=this[i(3475)].add(t))}},{key:l(3692),value:function(e,t){var i=l;LabelStyleConver.toCesiumVal(e,this[i(1867)],this[i(a)])}},{key:"_style2Json",value:function(e,t){return LabelStyleConver.toJSON(e,t)}},{key:"_updatePositionsHook",value:function(){var e=l;this._primitive[e(t)]=this[e(2532)]}},{key:"_getDrawEntityClass",value:function(e,t){return create$4("label",e)}},{key:"setOpacity",value:function(e){var t=l;this.style.globalAlpha=e,this._primitive&&this[t(i)]&&LabelStyleConver[t(3860)](this._primitive,e)}}]),h}()),ModelPrimitive=(register$4("labelP",LabelPrimitive,!0),function(){var e=2451,t=1689,i=1594,a=3639,n=969,s=3860,r=2885,o=1715,l=2941,c=3458,h=3277,u=3277,_=1689,p=3847,m=3773,d=3277,f=2885,y=1436,v=1436,g=2492,C=2492,x=348,b=2492,k=1672,P=2492,w=3610,S=1747,T=2885,M=2492,E=1273,A=_0x1658de,L=(_inherits(D,BasePointPrimitive),_createSuper(D));function D(){return _classCallCheck(this,D),L.apply(this,arguments)}return _createClass(D,[{key:A(e),get:function(){var e=A,t=[];return this[e(2797)]&&t.push(this._primitive_label),this._primitive_point&&t.push(this[e(1860)]),this._primitive_billboard&&t.push(this[e(E)]),t}},{key:A(t),get:function(){var e;return null!=(e=this[A(2492)].scale)?e:1},set:function(e){this.style.scale=e,this._updateStyleHook(this.style,{scale:e})}},{key:"scaleX",get:function(){var e;return null!=(e=this.style.scaleX)?e:1},set:function(e){var t=A;this.style.scaleX=e,this[t(1509)]()}},{key:"scaleY",get:function(){var e;return null!=(e=this[A(2492)].scaleY)?e:1},set:function(e){this.style.scaleY=e,this.updateModelMatrix()}},{key:"scaleZ",get:function(){var e;return null!=(e=this[A(M)].scaleZ)?e:1},set:function(e){this.style.scaleZ=e,this.updateModelMatrix()}},{key:A(621),get:function(){return this._primitive?this._primitive.readyPromise:null}},{key:A(i),value:function(e){var t=A;this[t(T)]?this._primitive.show=e:e&&_get(_getPrototypeOf(D.prototype),"_showHook",this)[t(1567)](this,e)}},{key:"_addedHook",value:function(e){var t,i,a=3834,n=A,s=this;this.show&&this[n(3817)]&&(this[n(2045)](this.options.position),(t=ModelStyleConver.toCesiumVal(this.style)).url)&&(i=this.style.customShader&&Cesium__namespace.ModelExperimental?(i=this[n(v)],0<this[n(g)].scale&&1!==this.style.scale&&Cesium__namespace.Matrix4[n(432)](i,this[n(C)].scale,i),Cesium__namespace.ModelExperimental[n(x)](_objectSpread2({modelMatrix:i,scene:this[n(3817)].scene,gltf:t.url},t))):Cesium__namespace.Model.fromGltf(_objectSpread2({modelMatrix:this.modelMatrix,scene:this._map.scene,marsOptions:{occlusion:this.style.marsOcclusion}},t)),this._primitive=this.primitiveCollection.add(i),this._primitive[n(621)].then(function(e){var t,i=n;(null==(t=s.style.runAnimations)||t)&&null!=(t=e[i(4097)])&&t.addAll&&e.activeAnimations.addAll(_objectSpread2({loop:Cesium__namespace[i(2702)][i(a)]},s.style)),s.fire(EventType.load,{drawtype:s.type,model:e,graphic:s},!0)}).catch(function(e){logError$1("ModelPrimitive:模型加载出错",e)}),this.style[n(3686)]&&this._addLabel(),this.style.distanceDisplayCondition)&&(this[n(b)].distanceDisplayPoint?((t=PointStyleConver[n(k)](this[n(P)].distanceDisplayPoint,{show:this.show,position:this.position}))[n(1921)]=this[n(w)](this.style.distanceDisplayPoint),this._primitive_point=null==(i=this._layer)?void 0:i.pointCollection.add(t)):this.style.distanceDisplayBillboard&&((i=BillboardStyleConver.toCesiumVal(this.style[n(S)],{show:this.show,position:this.position})).distanceDisplayCondition=this._getTargetDistanceDisplayCondition(this.style[n(S)]),this._primitive_billboard=null==(t=this._layer)?void 0:t.billboardCollection.add(i)))}},{key:"_removedHook",value:function(){var e,t=A;_get(_getPrototypeOf(D.prototype),"_removedHook",this)[t(1567)](this),this._primitive_point&&(null!=(e=this._layer)&&e.pointCollection[t(4071)](this._primitive_point),delete this._primitive_point),this._primitive_billboard&&(null!=(e=this[t(2818)])&&e.billboardCollection.remove(this._primitive_billboard),delete this._primitive_billboard)}},{key:"_updateStyleHook",value:function(e,t){var i=A;ModelStyleConver.toCesiumVal(e,this.primitive),(Cesium__namespace[i(h)](t.heading)||Cesium__namespace.defined(t[i(2033)])||Cesium__namespace.defined(t[i(2574)])||Cesium__namespace[i(u)](t[i(_)])||Cesium__namespace.defined(t[i(p)])||Cesium__namespace.defined(t[i(m)])||Cesium__namespace[i(d)](t.scaleZ))&&(this[i(f)].modelMatrix=this[i(y)])}},{key:"_style2Json",value:function(e,t){return ModelStyleConver[A(c)](e,t)}},{key:A(a),value:function(){var e=A;this._primitive[e(1436)]=this.modelMatrix,this._primitive_point&&(this._primitive_point.position=this.position),this._primitive_billboard&&(this[e(1273)][e(2532)]=this.position)}},{key:"_getTargetDistanceDisplayCondition",value:function(e){var t,i,a=A;return this.style[a(1921)]instanceof Cesium__namespace[a(3622)]?i=this[a(2492)][a(1921)].far:this.style.distanceDisplayCondition_far&&(i=this[a(2492)][a(l)]),new Cesium__namespace.DistanceDisplayCondition(null!=(t=e.distanceDisplayCondition_near)?t:i,null!=(t=e.distanceDisplayCondition_far)?t:Number[a(1637)])}},{key:"setOpacity",value:function(e){var t=A;this.style.globalAlpha=e,this._primitive&&ModelStyleConver[t(s)](this[t(r)],e),this[t(o)](e)}},{key:A(n),value:function(e,t){return create$4("model",e)}}]),D}()),CirclePrimitive=(register$4(_0x1658de(3708),ModelPrimitive,!0),function(){var e=402,t=2130,i=1901,a=3600,n=1937,s=1901,r=1689,o=2822,l=1231,c=1901,h=3159,u=3277,_=4038,p=3159,m=1533,d=2988,f=_0x1658de,y=(_inherits(v,BasePointPrimitive),_createSuper(v));function v(){return _classCallCheck(this,v),y.apply(this,arguments)}return _createClass(v,[{key:"distance",get:function(){return 2*Math.PI*this.radius}},{key:f(672),get:function(){var e=this.radius;return Math.PI*e*e}},{key:f(e),get:function(){return this.style.radius},set:function(e){this.style.radius=e,this._updateStyleHook(this.style,{radius:e})}},{key:f(t),get:function(){return this[f(1901)]()}},{key:"_conversionStyle",value:function(e){return CircleStyleConver.toCesiumVal(e)}},{key:"_style2Json",value:function(e,t){return CircleStyleConver.toJSON(e,t)}},{key:"_createGeometryInstance",value:function(e,t){var i=f,a=(e.center=this.position,e[i(3159)]=null!=(a=null!=(a=e[i(h)])?a:null==(a=this.point)?void 0:a[i(2993)])?a:0,Cesium__namespace[i(u)](this.style[i(872)])&&(e[i(_)]=e[i(p)]+this.style.diffHeight),t?Cesium__namespace.CircleOutlineGeometry:Cesium__namespace[i(m)]);return new Cesium__namespace.GeometryInstance({id:this.id,geometry:new a(e),attributes:this.options[i(d)]})}},{key:"_getPolylineOutlinePositions",value:function(){return[this[f(c)](!1)]}},{key:"getOutlineCoordinates",value:function(e,t,i){return cartesians2lonlats(this.getOutlinePositions(e,t),i)}},{key:f(i),value:function(){var e=f,t=!(0<arguments[e(2822)]&&void 0!==arguments[0])||arguments[0],i=1<arguments[e(o)]?arguments[1]:void 0,i=getEllipseOuterPositions({position:this.position,radius:this.radius,granularity:this.style[e(l)],count:i});return t&&i&&i[e(1018)](i[0]),i}},{key:"flyTo",value:function(){var e=f,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this[e(3817)]?(t.radius=this.radius*(t[e(r)]||1.8),this._map.flyToPoint(this.position,t)):Promise.resolve(!1)}},{key:"getRectangle",value:function(e){var t=this[f(s)](!1,1);if(t&&0!==t.length)return getRectangle(t,null==e?void 0:e.isFormat)}},{key:"isInPoly",value:function(e){var t=f;return e=setPositionsHeight(e=LngLatPoint.parse(e)[t(a)](),this.height),Cesium__namespace.Cartesian3[t(n)](this[t(2532)],e)<=this.radius}},{key:"_getDrawEntityClass",value:function(e,t){return create$4("circle",e)}}]),v}()),PlanePrimitive=(register$4("circleP",CirclePrimitive,!0),function(){var a=2988,r=1592,o=1436,l=2388,c=1541,h=3342,u=3915,_=1124,p=4054,m=_0x1658de,e=(_inherits(d,BasePointPrimitive),_createSuper(d));function d(){return _classCallCheck(this,d),e.apply(this,arguments)}return _createClass(d,[{key:m(1436),get:function(){var e,t,i,a,n,s=m;return this[s(r)].modelMatrix?this.options.modelMatrix:(e=_get(_getPrototypeOf(d.prototype),s(o),this),this.position?(n=PlaneStyleConver.toCesiumVal(this[s(2492)]),t=this.style.plane_normal||(null==(t=n[s(l)])?void 0:t.normal),i=new Cesium__namespace[s(784)](null!=(i=null==(i=n[s(920)])?void 0:i.x)?i:1,null!=(i=null==(i=n[s(920)])?void 0:i.y)?i:1,1),t===Cesium__namespace.Cartesian3[s(c)]||"x"===t?(a=Cesium__namespace[s(h)].fromRotationTranslation(Cesium__namespace[s(u)].fromRotationY(Cesium__namespace[s(_)].toRadians(90))),Cesium__namespace.Matrix4.multiply(e,a,e),i.x=null!=(a=null==(a=n.dimensions)?void 0:a.y)?a:1,i.y=null!=(n=null==(a=n[s(920)])?void 0:a.x)?n:1,i.z=1):t!==Cesium__namespace.Cartesian3.UNIT_Y&&"y"!==t||(a=Cesium__namespace.Matrix4.fromRotationTranslation(Cesium__namespace.Matrix3.fromRotationX(Cesium__namespace.Math.toRadians(90))),Cesium__namespace.Matrix4[s(p)](e,a,e)),n=Cesium__namespace.Matrix4.fromScale(i),Cesium__namespace.Matrix4.multiply(e,n,e),e):Cesium__namespace.Matrix4.IDENTITY)}},{key:"_conversionStyle",value:function(e){return PlaneStyleConver.toCesiumVal(e)}},{key:"_style2Json",value:function(e,t){return PlaneStyleConver.toJSON(e,t)}},{key:"_createGeometryInstance",value:function(e,t){var i=m,t=t?Cesium__namespace.PlaneOutlineGeometry:Cesium__namespace.PlaneGeometry;return new Cesium__namespace.GeometryInstance({id:this.id,geometry:new t(e),modelMatrix:this.modelMatrix,attributes:this.options[i(a)]})}},{key:m(969),value:function(e,t){return create$4("plane",e)}}]),d}()),BoxPrimitive=(register$4("planeP",PlanePrimitive,!0),function(){var a=2973,i=2822,n=_0x1658de,s=(_inherits(r,BasePointPrimitive),_createSuper(r));function r(){var e,t=0<arguments[_0x236b(i)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,r),(t=s.call(this,t)).style.closed=null==(e=t.style.closed)||e,t}return _createClass(r,[{key:n(3216),value:function(e){return BoxStyleConver.toCesiumVal(e)}},{key:"_style2Json",value:function(e,t){return BoxStyleConver.toJSON(e,t)}},{key:n(3671),value:function(e,t){var i=n,t=t?Cesium__namespace[i(a)]:Cesium__namespace[i(2741)];return new Cesium__namespace.GeometryInstance({id:this.id,geometry:t.fromDimensions(e),modelMatrix:this.modelMatrix,attributes:this.options.attributes})}},{key:"_getDrawEntityClass",value:function(e,t){return create$4("box",e)}}]),r}()),CylinderPrimitive=(register$4("boxP",BoxPrimitive,!0),function(){var a=1436,n=1592,i=2492,s=906,r=_0x1658de,o=(_inherits(l,BasePointPrimitive),_createSuper(l));function l(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),(t=o.call(this,t))[e(i)][e(906)]=null==(e=t[e(i)][e(s)])||e,t}return _createClass(l,[{key:"_conversionStyle",value:function(e){return CylinderStyleConver.toCesiumVal(e)}},{key:r(1748),value:function(e,t){return CylinderStyleConver.toJSON(e,t)}},{key:r(3671),value:function(e,t){var i=r,t=t?Cesium__namespace[i(1819)]:Cesium__namespace.CylinderGeometry;return new Cesium__namespace.GeometryInstance({id:this.id,geometry:new t(e),modelMatrix:e[i(a)]||this.modelMatrix,attributes:this[i(n)].attributes})}},{key:"_getDrawEntityClass",value:function(e,t){return create$4("cylinder",e)}}]),l}()),ConeTrackPrimitive=(register$4("cylinderP",CylinderPrimitive,!0),function(){var o=1124,l=1436,c=3879,h=3671,i=3879,e=2492,a=888,u=_0x1658de,n=(_inherits(_,CylinderPrimitive),_createSuper(_));function _(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,_),e=n.call(this,i),i[t(a)]&&(e[t(a)]=i.targetPosition),e}return _createClass(_,[{key:"hasEdit",get:function(){return!1}},{key:"targetPosition",get:function(){return this._targetPosition},set:function(e){var t=_0x236b;this[t(1046)]=LngLatPoint.parse(e),this[t(3074)]=this._targetPoint.toCartesian(),this.czmObject&&this._updatePositionsHook()}},{key:u(605),get:function(){return this._targetPoint}},{key:u(3879),get:function(){return this[u(e)].angle},set:function(e){var t=u;this.style[t(i)]=e}},{key:"_createGeometryInstance",value:function(e,t){var i,a,n=u,s=this[n(2532)],r=getPositionValue(this.targetPosition,this._map.clock[n(352)]);return r?(e.length=Cesium__namespace.Cartesian3.distance(s,r),a=Cesium__namespace[n(784)].midpoint(s,r,new Cesium__namespace[n(784)]),i=getHeadingPitchRollForLine(r,s)):(e.length=this.style[n(2822)],a=getPositionByHprAndLen(s,i=new Cesium__namespace.HeadingPitchRoll(Cesium__namespace.Math[n(2581)](this[n(977)]),Cesium__namespace.Math.toRadians(this.pitch),Cesium__namespace[n(o)].toRadians(this[n(2574)])),e.length/2)),e[n(l)]=Cesium__namespace.Transforms.headingPitchRollToFixedFrame(a,i),Cesium__namespace.defined(this.style[n(3879)])&&(e[n(451)]=e.length*Math.cos(Cesium__namespace.Math[n(2581)](90-this[n(c)]))),_get(_getPrototypeOf(_.prototype),n(h),this)[n(1567)](this,e,t)}}]),_}()),EllipsoidPrimitive=(register$4("coneTrackP",ConeTrackPrimitive,!0),function(){var e=1748,t=3671,a=2988,n=_0x1658de,i=(_inherits(s,BasePointPrimitive),_createSuper(s));function s(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,s),(t=i.call(this,t)).style[e(906)]=null==(e=t.style.closed)||e,t}return _createClass(s,[{key:"_conversionStyle",value:function(e){return EllipsoidStyleConver.toCesiumVal(e)}},{key:n(e),value:function(e,t){return EllipsoidStyleConver.toJSON(e,t)}},{key:n(t),value:function(e,t){var i=n,t=t?Cesium__namespace.EllipsoidOutlineGeometry:Cesium__namespace.EllipsoidGeometry;return new Cesium__namespace.GeometryInstance({id:this.id,geometry:new t(e),modelMatrix:this[i(1436)],attributes:this.options[i(a)]})}},{key:"_getDrawEntityClass",value:function(e,t){return create$4(n(3113),e)}}]),s}()),WallPrimitive=(register$4("ellipsoidP",EllipsoidPrimitive,!0),function(){var u=3945,_=2822,e=_0x1658de,t=(_inherits(i,BasePolyPrimitive),_createSuper(i));function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"_createGeometryInstance",value:function(e,t){for(var i=_0x236b,a=this.positions,n=this[i(u)],s=n.length,r=new Array(s),o=new Array(s),l=0;l<s;l++){var c=n[l].alt;r[l]=c,o[l]=c+Number(this.style.diffHeight||100)}this[i(2492)].closure&&0<(null==(h=a)?void 0:h[i(_)])&&(a=a.concat(a[0]),r=r.concat(r[0]),o=o.concat(o[0]));var h=t?Cesium__namespace.WallOutlineGeometry:Cesium__namespace[i(1521)];return new Cesium__namespace[i(1016)]({id:this.id,geometry:new h(_objectSpread2(_objectSpread2({},e),{},{positions:a,maximumHeights:o,minimumHeights:r})),attributes:this.options.attributes})}},{key:"_conversionStyle",value:function(e){return WallStyleConver[_0x236b(1672)](e)}},{key:e(1748),value:function(e,t){return WallStyleConver.toJSON(e,t)}},{key:e(969),value:function(e,t){return create$4("wall",e)}}]),i}()),CorridorPrimitive=(register$4(_0x1658de(3674),WallPrimitive),function(){var i=1215,a=3458,n=506,t=2026,s=(_inherits(r,BasePolyPrimitive),_createSuper(r));function r(){var e=_0x236b;return _classCallCheck(this,r),s[e(t)](this,arguments)}return _createClass(r,[{key:"_createGeometryInstance",value:function(e,t){var i=_0x236b,t=(this._updateDiffHeight(e),e.positions=this.positions,t?Cesium__namespace[i(n)]:Cesium__namespace.CorridorGeometry);return new Cesium__namespace.GeometryInstance({id:this.id,geometry:new t(e),attributes:this.options.attributes})}},{key:"_conversionStyle",value:function(e){return CorridorStyleConver.toCesiumVal(e)}},{key:"_style2Json",value:function(e,t){return CorridorStyleConver[_0x236b(a)](e,t)}},{key:"_getDrawEntityClass",value:function(e,t){return create$4(_0x236b(i),e)}}]),r}()),PolylineVolumePrimitive=(register$4(_0x1658de(940),CorridorPrimitive),function(){var e=3216,t=1748,i=2492,a=_0x1658de,n=(_inherits(s,BasePolyPrimitive),_createSuper(s));function s(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,s),(t=n.call(this,t))[e(i)].closed=null==(e=t[e(i)].closed)||e,t}return _createClass(s,[{key:"_createGeometryInstance",value:function(e,t){var i=_0x236b,t=t?Cesium__namespace.PolylineVolumeOutlineGeometry:Cesium__namespace[i(2124)];return new Cesium__namespace.GeometryInstance({id:this.id,geometry:new t(_objectSpread2(_objectSpread2({},e),{},{polylinePositions:this.positions,shapePositions:e[i(3824)]})),attributes:this[i(1592)].attributes})}},{key:a(e),value:function(e){return PolylineVolumeStyleConver.toCesiumVal(e)}},{key:a(t),value:function(e,t){return PolylineVolumeStyleConver[a(3458)](e,t)}},{key:"_getDrawEntityClass",value:function(e,t){return create$4("polylineVolume",e)}}]),s}()),RectanglePrimitive=(register$4("polylineVolumeP",PolylineVolumePrimitive),function(){var e=3222,t=2130,i=1937,a=1494,n=3671,s=3639,r=3222,o=2297,l=1016,c=1567,h=2130,u=1124,_=3277,p=2492,m=2046,d=2492,f=430,y=_0x1658de,v=(_inherits(g,BasePolyPrimitive),_createSuper(g));function g(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,g),e=v.call(this,i),i.rectangle&&(e[t(3222)]=i.rectangle),e}return _createClass(g,[{key:y(e),get:function(){var e=y;return!this[e(430)]&&this[e(1980)]&&(this._rectangle=Cesium__namespace.Rectangle.fromCartesianArray(this[e(1980)])),this[e(f)]},set:function(e){this._rectangle=e}},{key:y(t),get:function(){var e,t=y;return Cesium__namespace.defined(this.style.rotationDegree)?e=Cesium__namespace[t(u)].toRadians(this[t(2492)].rotationDegree):Cesium__namespace[t(_)](this[t(p)].rotation)&&(e=this.style[t(m)]),getRectangleOuterPositions({rectangle:this.rectangle,rotation:e,height:this[t(d)].height})}},{key:y(i),get:function(){return getDistance(this[y(h)],!0)}},{key:"area",get:function(){return getSurfaceArea(this.outlinePositions)}},{key:y(a),get:function(){var e=y,t=this.rectangle;return this.rectangle?Cesium__namespace.Cartographic.toCartesian(Cesium__namespace[e(2036)].center(t)):null}},{key:"_updatePositionsHook",value:function(){var e=y;return this.rectangle=Cesium__namespace.Rectangle.fromCartesianArray(this.positions),_get(_getPrototypeOf(g[e(2385)]),e(3639),this)[e(c)](this)}},{key:y(n),value:function(e,t){var i=y,t=(this._updateDiffHeight(e,!0),e[i(3222)]=this.rectangle,t?Cesium__namespace.RectangleOutlineGeometry:Cesium__namespace[i(3032)]);return new Cesium__namespace[i(l)]({id:this.id,geometry:new t(e),attributes:this[i(1592)].attributes})}},{key:"_conversionStyle",value:function(e){return RectangleStyleConver[y(1672)](e)}},{key:"_style2Json",value:function(e,t){return RectangleStyleConver.toJSON(e,t)}},{key:"_getGeoJsonGeometry",value:function(e){var t=y;return{type:"Polygon",coordinates:[this.getCoordinates(null==e?void 0:e[t(o)])]}}},{key:"_getPolylineOutlinePositions",value:function(){return[this.outlinePositions]}},{key:"getRectangle",value:function(e){var t=y,i=this[t(3222)];return null!=e&&e[t(1307)]?formatRectangle(i):i}},{key:y(1996),value:function(e){var t=y;return Cesium__namespace.Rectangle[t(1135)](this[t(r)],LngLatPoint.parse(e).toCartographic())}},{key:"_getDrawEntityClass",value:function(e,t){return create$4(y(3222),e)}},{key:"_updateDrawEntityToThis",value:function(){var e=y;_get(_getPrototypeOf(g[e(2385)]),"_updateDrawEntityToThis",this).call(this),this[e(s)]()}}]),g}()),nullColor=(register$4("rectangleP",RectanglePrimitive),new Cesium__namespace.Color(0,0,0,.01)),PolygonPrimitive=function(){var e=1980,t=3685,i=472,a=511,n=511,s=3764,r=3458,o=3754,l=3698,c=3159,h=3159,u=4038,_=2054,p=3270,m=2822,d=2255,f=3441,y=3019,v=_0x1658de,g=(_inherits(C,BasePolyPrimitive),_createSuper(C));function C(){var e=_0x236b;return _classCallCheck(this,C),g[e(2026)](this,arguments)}return _createClass(C,[{key:"center",get:function(){return this.centerOfMass}},{key:"distance",get:function(){return getDistance(this._positions,!0)}},{key:v(e),get:function(){return this._positions},set:function(e){var t,i=v;e&&(0<e[i(m)]&&Array[i(d)](e[0])&&0<e[0].length&&(t=e[0][0],Array.isArray(t)&&isNumber(t[0])?(this[i(511)]=getPolygonHierarchy(e,this.style[i(3159)]||this.style[i(f)]||this.style.addHeight),e=this[i(511)].positions):t instanceof Cesium__namespace.Cartesian3&&(this._hierarchy=getPolygonHierarchy2(e),e=this[i(511)].positions)),_set(_getPrototypeOf(C.prototype),"positions",e,this,!0),this._hierarchy)&&this[i(y)]&&(this._hierarchy.positions=this._positions)}},{key:"_createGeometryInstance",value:function(e,t){var i=v,t=(this[i(p)](e),this[i(511)]?e.polygonHierarchy=this._hierarchy:e[i(1827)]=new Cesium__namespace[i(2216)](this.positions),t?Cesium__namespace[i(2386)]:Cesium__namespace.PolygonGeometry);return new Cesium__namespace[i(1016)]({id:this.id,geometry:new t(e),attributes:this.options.attributes})}},{key:"_conversionStyle",value:function(e){e=PolygonStyleConver[v(1672)](e);return this._bindExType(e)}},{key:v(t),value:function(e){var t,i,a,n=v,s=this[n(1592)].buildings||this._layer.options.buildings;return s&&(null==(t=s.enabled)||t)&&(s.bottomHeight&&(isNumber(s.bottomHeight)?a=s.bottomHeight:isString(s.bottomHeight)&&(a=Number(this.attr[s[n(l)]]||0)),e.height=a),t=Number(this.attr[s.cloumn]||1),i=isNumber(s.height)?s[n(c)]:isString(s.height)?this.attr[s.height]||i:3.5,a=e[n(h)]||0,e[n(u)]=a+t*i),(this.options.dth||this._layer.options.dth)&&(s=this._getColorByColorMaterial(e,!1),Cesium__namespace.defined(s)||(e.color=nullColor),e[n(_)]=!0,Cesium__namespace.defined(this.style.height)||(e.perPositionHeight=!1),e[n(1301)]=99),e}},{key:"updateHeight",value:function(e){for(var t=v,i=0,a=this.primitiveCollection[t(2822)];i<a;i++){var n=this[t(3475)][t(o)](i),s=(6378137+e)/(6378137+this.style[t(3159)]),s=Cesium__namespace[t(3342)].fromScale(new Cesium__namespace.Cartesian3(s,s,s));n[t(1436)]=s}}},{key:"_style2Json",value:function(e,t){return PolygonStyleConver[v(r)](e,t)}},{key:"_getGeoJsonGeometry",value:function(e){return{type:"Polygon",coordinates:[this[v(s)](null==e?void 0:e.noAlt)]}}},{key:"_getPolylineOutlinePositions",value:function(){var e=v;return this[e(511)]?getHierarchyVal(this[e(n)]):[this[e(1980)]]}},{key:"_getDrawEntityClass",value:function(e,t){return create$4(v(1377),e)}},{key:v(i),value:function(e){var t=v;this._hierarchy&&(e[t(a)]=this._hierarchy)}}]),C}(),FrustumPrimitive=(register$4("polygonP",PolygonPrimitive),function(){var o=1124,l=3975,a=977,n=977,s=1604,r=1173,e=610,i=2492,c=1046,h=4045,u=2492,_=1567,p=2492,m=888,d=_0x1658de,f=(_inherits(y,BasePointPrimitive),_createSuper(y));function y(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,y),(t=f[i(_)](this,a)).style.closed=null==(e=t[i(p)].closed)||e,a[i(m)]&&(t.targetPosition=a.targetPosition),t}return _createClass(y,[{key:d(888),get:function(){return this._targetPosition},set:function(e){var t=d;this._targetPoint=LngLatPoint.parse(e),this._targetPosition=this[t(c)].toCartesian(),this.isAdded&&this[t(h)]&&(this._removedHook(),this._addedHook(this[t(u)]))}},{key:"targetPoint",get:function(){return this._targetPoint}},{key:d(3879),get:function(){return this.style.angle},set:function(e){var t=d;this[t(i)][t(3879)]=e}},{key:"angle2",get:function(){var e;return null!=(e=this.style.angle2)?e:this.style.angle},set:function(e){this.style.angle2=e}},{key:d(2878),get:function(){return getRayEarthPosition(this.position,this._orientation)}},{key:d(1481),get:function(){return Cesium__namespace[d(e)].POSITION_ONLY}},{key:"updateModelMatrix",value:function(){}},{key:"_conversionStyle",value:function(e){return CylinderStyleConver.toCesiumVal(e)}},{key:"_style2Json",value:function(e,t){return CylinderStyleConver[d(3458)](e,t)}},{key:"_createGeometryInstance",value:function(e,t){var i=d,t=(this._update(),t?Cesium__namespace.FrustumOutlineGeometry:Cesium__namespace[i(3949)]);return new Cesium__namespace.GeometryInstance({id:this.id,geometry:new t(_objectSpread2(_objectSpread2({},e),{},{origin:this.position,orientation:this._orientation,frustum:this._frustum})),attributes:this.options.attributes})}},{key:"_update",value:function(e){var t=d,i=getPositionValue(this[t(2532)],e);i?((e=getPositionValue(this.targetPosition,e))?(this._frustumFar=Cesium__namespace.Cartesian3.distance(i,e),e=getHeadingPitchRollForLine(i,e),this[t(a)]=Cesium__namespace[t(1124)].toDegrees(e[t(n)]),this.pitch=Cesium__namespace.Math[t(s)](e.pitch),this.roll=Cesium__namespace.Math.toDegrees(e.roll),this._orientation=Cesium__namespace.Transforms[t(3092)](i,e)):(this[t(1969)]=-this.style[t(2822)],e=new Cesium__namespace.HeadingPitchRoll(Cesium__namespace.Math.toRadians(this.heading),Cesium__namespace.Math.toRadians(this.pitch),Cesium__namespace[t(1124)].toRadians(this.roll)),this._orientation=Cesium__namespace[t(2510)][t(3092)](i,e)),this._frustum=new Cesium__namespace.PerspectiveFrustum({fov:Cesium__namespace[t(1124)][t(2581)](2*this[t(3879)]||.01),aspectRatio:this[t(r)]/this.angle,near:.01,far:this._frustumFar})):this._cylinderPosition=void 0}},{key:"getRayEarthPositions",value:function(e){var t=d,e=getPositionValue(this.position,e),i=Cesium__namespace.Math.toRadians(this.heading),a=Cesium__namespace[t(o)].toRadians(this.pitch+this.angle2),n=Cesium__namespace.Math.toRadians(this.pitch-this.angle2),s=Cesium__namespace[t(1124)].toRadians(this.roll+this.angle),r=Cesium__namespace.Math.toRadians(this.roll-this[t(3879)]);return[getRayEarthPosition(e,new Cesium__namespace[t(3975)](i,a,s),!0),getRayEarthPosition(e,new Cesium__namespace[t(l)](i,a,r),!0),getRayEarthPosition(e,new Cesium__namespace.HeadingPitchRoll(i,n,r),!0),getRayEarthPosition(e,new Cesium__namespace.HeadingPitchRoll(i,n,s),!0)]}},{key:"_getDrawEntityClass",value:function(e,t){return this._getDrawPointEntityClass(e,t)}}]),y}()),ConeGlowCircleOuterMaterial=(register$4("frustum",FrustumPrimitive,!0),"uniform vec4 u_color;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n float time = fract(czm_frameNumber / 90.);\n vec2 new_st = fract(st - vec2(time, time));\n vec4 color = texture(image, new_st);\n\n vec3 diffuse = color.rgb;\n float alpha = color.a;\n diffuse *= u_color.rgb;\n alpha *= u_color.a;\n alpha *= u_color.a;\n material.diffuse = diffuse;\n material.alpha = alpha * pow(1. - st.t, u_color.a) * globalAlpha;\n return material;\n}\n"),ConeGlowCylinderGaussMaterial="uniform vec4 u_color;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n float powerRatio = 1. / (fract(czm_frameNumber / 30.0) + 1.);\n float alpha = pow(1. - st.t, powerRatio);\n vec4 color = vec4(u_color.rgb, alpha * u_color.a);\n material.diffuse = color.rgb;\n material.alpha = color.a * globalAlpha;\n return material;\n}\n",ConeGlowGradientMaterial="uniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec4 tColor = u_color;\n vec2 st = materialInput.st;\n vec2 center = st - vec2(0.5, 0.5);\n float length = length(center) / 0.5;\n float time = 1. - abs(czm_frameNumber / 360. - 0.5);\n\n float param = 1. - step(length, 0.6);//大于0.6模糊,rate = 0.6\n float scale = param * length;// 0.6< length 返回0,反之返回1.\n float alpha = param * (1.0 - abs(scale - 0.8) / 0.2);// 0.8 < length 返回0,反之返回1.\n\n float param1 = step(length, 0.7);//小于0.5模糊\n float scale1 = param1 * length;// 0.6< length 返回0,反之返回1.\n alpha += param1 * (1.0 - abs(scale1 - 0.35) / 0.35);// 0.8 < length 返回0,反之返回1.\n\n material.diffuse = u_color.rgb * vec3(u_color.a);\n material.alpha = pow(alpha, 4.0) * globalAlpha;\n return material;\n}\n",ConeGlowRingScanMaterial=_0x1658de(2304),DEF_STYLE$f={height:1e3,radius:100,color:"#00ffff"},particleImage=new Image,LightCone=(particleImage[_0x1658de(2238)]=_0x1658de(657),particleImage.onload=function(){},function(){var e=2745,t=2275,i=969,a=3409,n=1863,s=1863,r=333,o=1336,l=3159,c=2835,h=547,u=696,_=2615,p=2517,m=3159,d=4045,f=3605,y=3487,v=3475,g=4002,C=4002,x=2532,b=3441,k=2955,P=2745,w=2513,S=2492,T=2513,M=3082,E=_0x1658de,A=(_inherits(L,BasePointPrimitive),_createSuper(L));function L(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,L),t[e(S)]=_objectSpread2(_objectSpread2({},DEF_STYLE$f),t.style||{}),(t=A.call(this,t))._primitive1=null,t[e(T)]=null,t._primitive3=null,t[e(M)]=null,t}return _createClass(L,[{key:"czmObject",get:function(){return this._primitive1}},{key:"czmObjectEx",get:function(){var e=_0x236b;return this[e(2513)]?[this[e(w)],this[e(333)],this._primitive4]:[]}},{key:E(e),get:function(){return this[E(965)]},set:function(e){var t=E;this.style[t(P)]=e}},{key:"_addedHook",value:function(e){var t,i,a=E;this.show&&this.position&&(t=this[a(x)],Cesium__namespace.defined(e.setHeight)&&(i=this.style[a(b)],Cesium__namespace.defined(i)&&(t=setPositionsHeight(t,i=isString(i)&&(i=Number(template(i,this.attr,!0)),isNaN(i))?0:i)),0!==(i=this.getAddHeight()))&&(t=addPositionsHeight(t,i)),i=e.radius,this.topRadius=i/100,this.topRadius=1<this.topRadius?1:this.topRadius,this.inner_controlPoints=getCirclePosition(t,.7*i),this.outer_controlPoints=getCirclePosition(t,i),this.circular_clone_topPoints=getCirclePosition(t,this.topRadius),this[a(3053)]=getCirclePosition(t,2*i),this.ringCanvas=this[a(k)](),this.gradientCircleCanvas=this.cirdrawGradientCircleCanvas(),this.image=this.drawCanvas(particleImage),this._color=getColorByStyle(e),this.addInner(e),this.addOuter(e),this.addCircle(e),this[a(2771)](e))}},{key:"_removedHook",value:function(){var e=E;this._primitive1&&(this[e(v)].remove(this[e(g)]),delete this[e(C)]),this._primitive2&&(this[e(3475)].remove(this[e(2513)]),delete this._primitive2),this._primitive3&&(this.primitiveCollection.remove(this[e(333)]),delete this._primitive3),this._primitive4&&(this[e(v)].remove(this._primitive4),delete this._primitive4)}},{key:"addInner",value:function(e){var t=E,e=createCylinderInstance(this.inner_controlPoints,this[t(3874)],{height:e.height,color:this.color,distanceDisplayCondition:e.distanceDisplayCondition}),i=new Cesium__namespace[t(2170)]({material:new Cesium__namespace.Material({fabric:{uniforms:{u_color:this._color,globalAlpha:1},source:ConeGlowCylinderGaussMaterial},translucent:function(e){return e.uniforms.u_color.alpha<1}})});this._primitive1=new Cesium__namespace[t(y)]({geometryInstances:e,appearance:i,asynchronous:!1,show:this.show}),this.primitiveCollection.add(this._primitive1)}},{key:E(3880),value:function(e){var t=E,e=createCylinderInstance(this[t(3132)],this.circular_clone_topPoints,{height:e[t(m)],distanceDisplayCondition:e.distanceDisplayCondition,color:new Cesium__namespace.Color(.5,.8,1,2)});this._primitive2=new Cesium__namespace.Primitive({geometryInstances:e,appearance:new Cesium__namespace.EllipsoidSurfaceAppearance({material:new Cesium__namespace.Material({fabric:{uniforms:{u_color:this._color,image:this.image,globalAlpha:1},source:ConeGlowCircleOuterMaterial},translucent:!0})}),asynchronous:!1,show:this[t(d)]}),this.primitiveCollection[t(f)](this._primitive2)}},{key:E(t),value:function(e){var t=E,i=Cesium__namespace.Cartographic.fromCartesian(this[t(2532)]),i=createCircleInstance(this.circlePoints_2,{perPositionHeight:1<=i.height,distanceDisplayCondition:e.distanceDisplayCondition});this._primitive3=new Cesium__namespace.Primitive({geometryInstances:i,appearance:new Cesium__namespace.EllipsoidSurfaceAppearance({material:new Cesium__namespace.Material({fabric:{uniforms:{u_color:this._color,image:this.gradientCircleCanvas,globalAlpha:1},source:ConeGlowGradientMaterial},translucent:!0})}),asynchronous:!1,show:this[t(4045)]}),this.primitiveCollection.add(this._primitive3)}},{key:"addRing",value:function(e){var t=E,e=createCircleInstance(this.circlePoints_2,{perPositionHeight:1<=this.point.alt,distanceDisplayCondition:e.distanceDisplayCondition});this._primitive4=new Cesium__namespace[t(3487)]({geometryInstances:e,appearance:new Cesium__namespace.EllipsoidSurfaceAppearance({material:new Cesium__namespace[t(p)]({fabric:{uniforms:{u_color:this[t(965)],image:this.ringCanvas,globalAlpha:1},source:ConeGlowRingScanMaterial},translucent:!0})}),asynchronous:!1,show:this.show}),this[t(3475)].add(this._primitive4)}},{key:E(450),value:function(e){var t=E,i=new Image;i[t(2238)]="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=",i.onload=function(){e&&e()}}},{key:E(1144),value:function(e){var t=E,i=document.createElement("canvas"),a=(i[t(u)]=64,i[t(3159)]=256,i[t(_)]("2d",{willReadFrequently:!0}));return a[t(1769)](0,0,64,256),a.drawImage(e,0,0),a.drawImage(e,33,0),i}},{key:E(2955),value:function(){var e=E,t=document.createElement(e(3252)),i=(t.width=512,t.height=512,t.getContext("2d",{willReadFrequently:!0}));return i.fillStyle="rgba(255,255,255,0)",i[e(392)]=e(1121),i.setLineDash([50,50]),i.lineWidth=30,i.beginPath(),i.arc(256,256,150,0,2*Math.PI,!0),i.stroke(),i.restore(),t}},{key:"cirdrawGradientCircleCanvas",value:function(){var e=E,t=document.createElement("canvas"),i=(t.width=512,t[e(l)]=512,t[e(2615)]("2d",{willReadFrequently:!0})),a=i.createRadialGradient(256,256,0,256,256,256);return a[e(547)](.1,e(c)),a[e(547)](.2,"rgba(255, 255, 255, 0.0)"),a.addColorStop(.3,"rgba(255, 255, 255, 0.9)"),a[e(h)](.5,"rgba(255, 255, 255, 0.0)"),a.addColorStop(.9,"rgba(255, 255, 255, 0.2)"),a.addColorStop(1,"rgba(255, 255, 255, 1.0)"),i.clearRect(0,0,512,512),i.beginPath(),i.arc(256,256,256,0,2*Math.PI,!0),i.fillStyle=a,i.fill(),i.restore(),t}},{key:"setOpacity",value:function(e){var t=E;this.style[t(1863)]=e,this._primitive1&&(this._primitive1[t(a)].material[t(1998)][t(n)]=e,this._primitive2.appearance.material.uniforms[t(s)]=e,this[t(r)].appearance[t(o)][t(1998)].globalAlpha=e,this._primitive4[t(a)][t(1336)][t(1998)][t(1863)]=e)}},{key:E(i),value:function(e,t){return this._getDrawPointEntityClass(e,t)}}]),L}());function createCircleInstance(e,t){var i=_0x1658de,e=new Cesium__namespace[i(3780)]({polygonHierarchy:new Cesium__namespace[i(2216)](e),perPositionHeight:t.perPositionHeight});return new Cesium__namespace.GeometryInstance({geometry:e,attributes:{distanceDisplayCondition:t[i(1921)]||new Cesium__namespace.DistanceDisplayConditionGeometryInstanceAttribute}})}function createCylinderInstance(e,t,i){for(var a=2090,n=2026,s=3780,r=927,o=_0x1658de,l=i.height,c=i.color,h=e[o(a)](),u=e.length,_=2*u,p=[],m=1/(u-1),d=[],f=[],y=0;y<u;y++){f.push(addPositionsHeight(t[y],l)),p[o(1018)](y*m),p.push(0);var v=(y+1)%u,g=_-(y+1);d.push[o(n)](d,[g-1,g,y]),d.push.apply(d,[y,v,g-1])}for(var C=0;C<f[o(2822)];C++)h[o(1018)](f[u-C-1]),p.push(1-C*m),p[o(1018)](1);a=new Cesium__namespace[o(3780)]({polygonHierarchy:new Cesium__namespace.PolygonHierarchy(h),perPositionHeight:!0});return(a=Cesium__namespace[o(s)].createGeometry(a)).indices=d,a[o(2988)].st[o(r)]=p,new Cesium__namespace[o(1016)]({geometry:a,attributes:{color:Cesium__namespace[o(3825)].fromColor(c),distanceDisplayCondition:i.distanceDisplayCondition||new Cesium__namespace[o(3026)]}})}function getCirclePosition(e,t){for(var i=2<arguments[_0x1658de(2822)]&&void 0!==arguments[2]?arguments[2]:120,a=[],n=Cesium__namespace.Transforms.eastNorthUpToFixedFrame(e),s=2*Math.PI/i,r=2*Math.PI*270/360,o=0;o<i;o++){var l=r-s*o,l=new Cesium__namespace.Cartesian3(Math.sin(l)*t,Math.cos(l)*t,0);a.push(Cesium__namespace.Matrix4.multiplyByPoint(n,l,new Cesium__namespace.Cartesian3))}return a.push(a[0]),a}register$4("lightCone",LightCone,!0);var WaterFS="in vec3 v_positionMC;\nin vec3 v_positionEC;\nin vec2 v_st;\n\nvoid main() {\n czm_materialInput materialInput;\n vec3 normalEC = normalize(czm_normal3D * czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0)));\n #ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n #endif\n materialInput.s = v_st.s;\n materialInput.st = v_st;\n materialInput.str = vec3(v_st, 0.0);\n materialInput.normalEC = normalEC;\n materialInput.tangentToEyeMatrix = czm_eastNorthUpToEyeCoordinates(v_positionMC, materialInput.normalEC);\n\n vec3 positionToEyeEC = -v_positionEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n czm_material material = czm_getMaterial(materialInput);\n\n #ifdef FLAT\n out_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n #else\n out_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n #endif\n}\n",Water=function(){var a=1377,n=4045,s=2098,r=3605,t=2026,o=_0x1658de,i=(_inherits(l,PolygonPrimitive),_createSuper(l));function l(){var e=_0x236b;return _classCallCheck(this,l),i[e(t)](this,arguments)}return _createClass(l,[{key:o(563),value:function(e){var t,i,a=o;this[a(n)]&&this.positions&&0!==this.positions[a(2822)]&&((t=this._conversionStyle(e)).vertexFormat=Cesium__namespace.EllipsoidSurfaceAppearance[a(2401)],e[a(s)]=null!=(i=e[a(2098)])?i:.8,i=e.opacity*(null!=(i=e.globalAlpha)?i:1),t={geometryInstances:this._createGeometryInstance(t),appearance:new Cesium__namespace.EllipsoidSurfaceAppearance({aboveGround:!1,material:new Cesium__namespace.Material({fabric:{type:a(2134),uniforms:{specularMap:t[a(2509)]||Cesium__namespace.Material.DefaultImageId,normalMap:t.normalMap||Cesium__namespace.Material.DefaultImageId,frequency:t.frequency||8e3,animationSpeed:t.animationSpeed||.03,amplitude:t.amplitude||5,specularIntensity:e[a(3001)]||.8,baseWaterColor:getCesiumColor(e[a(1102)]||"#123e59").withAlpha(e[a(s)]),blendColor:getCesiumColor(e.blendColor||a(2905)).withAlpha(e.opacity)}}}),fragmentShaderSource:WaterFS,translucent:1!=i}),show:this.show},e[a(1614)]?(t[a(3994)]=null!=(i=e[a(3994)])?i:Cesium__namespace.ClassificationType.TERRAIN,this[a(2885)]=this.primitiveCollection.add(new Cesium__namespace.GroundPrimitive(t))):this[a(2885)]=this.primitiveCollection[a(r)](new Cesium__namespace.Primitive(t)),e.label)&&this._addLabel()}},{key:"_getDrawEntityClass",value:function(e,t){var i=o;return e.style.materialType="Water",create$4(i(a),e)}}]),l}(),DiffuseWallGlowVS=(register$4(_0x1658de(1795),Water),_0x1658de(1714)),DiffuseWallGlowFS=_0x1658de(2525),DEF_STYLE$e={diffHeight:1e3,speed:10,maxScale:1},DiffuseWall=function(){var a=2492,i=1980,n=3143,s=356,t=2885,d=872,f=2026,y=1018,v=2026,g=2026,C=1018,x=1195,b=2700,k=832,r=402,o=2698,l=332,c=3600,e=2885,h=1567,P=_0x1658de,u=(_inherits(_,BasePolyPrimitive),_createSuper(_));function _(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,_),i.style=_objectSpread2(_objectSpread2({},DEF_STYLE$e),i.style||{}),e=u[t(h)](this,i),i.positions?e.center=e.centerOfMass:i.position&&(e.position=i.position,e._isCircle=!0),e[t(356)]=Cesium__namespace[t(3342)].fromUniformScale(1),e._maxScale=i[t(2492)].maxScale||1,e}return _createClass(_,[{key:"czmObject",get:function(){return this[_0x236b(e)]}},{key:P(1494),get:function(){return this[P(3052)]},set:function(e){this._center=e}},{key:"position",get:function(){return this._center},set:function(e){var t=P;this._center=LngLatPoint[t(l)](e)[t(c)](),this._updatePositionsByCircleCenter()}},{key:"radius",get:function(){return this.style.radius},set:function(e){var t=P;this.style[t(r)]=e,this[t(o)]()}},{key:"_addedHook",value:function(e){var t=P,i=this[t(1980)];if(this.show&&i&&0!==i.length){for(var a=addPositionsHeight(this[t(1980)],e[t(d)]),n=(this.center=this.centerOfMass,[]),s=[],r=[],o=[],l=0,c=i.length;l<c;l++){var h=(l+1)%c,h=(n.push[t(f)](n,[i[l].x,i[l].y,i[l].z]),n.push.apply(n,[i[h].x,i[h].y,i[h].z]),n[t(y)][t(v)](n,[a[h].x,a[h].y,a[h].z]),n.push[t(g)](n,[a[l].x,a[l].y,a[l].z]),o[t(1018)][t(2026)](o,[0,0,1]),o.push.apply(o,[0,0,1]),o.push.apply(o,[0,0,1]),o[t(1018)].apply(o,[0,0,1]),s.push[t(g)](s,[0,0,1,0,1,1,0,1]),4*l),u=1+h,_=2+h,p=3+h;r[t(C)].apply(r,[_,p,h,h,u,_])}var m=new Float64Array(n),m=new Cesium__namespace.GeometryInstance({id:this.id,geometry:new Cesium__namespace.Geometry({attributes:{position:new Cesium__namespace.GeometryAttribute({componentDatatype:Cesium__namespace[t(x)][t(3442)],componentsPerAttribute:3,values:m}),normal:new Cesium__namespace.GeometryAttribute({componentDatatype:Cesium__namespace[t(1195)][t(807)],componentsPerAttribute:3,values:new Float32Array(o)}),st:new Cesium__namespace[t(b)]({componentDatatype:Cesium__namespace.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:new Float32Array(s)})},indices:new Uint16Array(r),primitiveType:Cesium__namespace.PrimitiveType[t(k)],boundingSphere:Cesium__namespace.BoundingSphere.fromVertices(m)})}),e=getColorByStyle(e);this._primitive=new Cesium__namespace.Primitive({geometryInstances:m,appearance:new Cesium__namespace.MaterialAppearance({material:new Cesium__namespace.Material({translucent:!0,fabric:{uniforms:{color:e,globalAlpha:1},source:"\n uniform vec4 color;\n uniform float globalAlpha;\n\n vec4 xh_getMaterial(vec2 st){\n float alpha = pow(1. - st.t, 1.5);\n vec4 colorNew = vec4(color.rgb * color.a, alpha*globalAlpha);\n return colorNew;\n }"}}),vertexShaderSource:DiffuseWallGlowVS,fragmentShaderSource:DiffuseWallGlowFS}),asynchronous:!1,shadows:this.style.shadows,show:this.show}),this[t(3475)].add(this._primitive),this.bindUpdateEvent()}}},{key:"_removedHook",value:function(){var e=P;this._primitive&&(this.primitiveCollection.remove(this._primitive),delete this[e(t)])}},{key:"update",value:function(e){var t=P;this._primitive&&this._show&&(e=(e=e.frameNumber/1e3*this.style.speed)-Math.floor(e),this._mScale[0]=this._mScale[5]=(e=e<.01?.01:e)*this._maxScale,this._mScale[10]=1.1-e,this._primitive.modelMatrix=scaleXYZ(this.center,this[t(s)]))}},{key:"_updatePositionsByCircleCenter",value:function(){var e,t=P;this[t(i)]=getEllipseOuterPositions({position:this._center,radius:null!=(e=this.style[t(402)])?e:100,count:null!=(e=this.style[t(n)])?e:50})}},{key:"_getDrawEntityClass",value:function(e,t){var i=P;return this._isCircle?create$4("circle",e):(e[i(a)].closure=!0,create$4("wall",e))}},{key:"_updateStyleByEdit",value:function(e){this._isCircle&&Cesium__namespace.defined(e.radius)&&(this.radius=e.radius),Cesium__namespace.defined(e.diffHeight)&&(this.style.diffHeight=e.diffHeight)}}]),_}();function scaleXYZ(e,t){var i=3342,a=2028,n=4054,s=_0x1658de,e=Cesium__namespace[s(2510)][s(2073)](e),i=Cesium__namespace[s(i)][s(a)](e,new Cesium__namespace.Matrix4),a=Cesium__namespace.Matrix4[s(n)](t,i,new Cesium__namespace[s(3342)]);return Cesium__namespace.Matrix4.multiply(e,a,new Cesium__namespace.Matrix4)}register$4("diffuseWall",DiffuseWall);var ScrollWallGlowVS="in vec3 position3DHigh;\nin vec3 position3DLow;\nin vec3 normal;\nin vec2 st;\nin float batchId;\nout vec2 v_st;\nout vec3 v_normalEC;\nout vec3 v_positionEC;\n\nvoid main() {\n vec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow);\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz;\n v_normalEC = czm_normal * normal;\n v_st = st;\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\n}\n",ScrollWallGlowFS=_0x1658de(1263),ScrollWallGlowMaterial=_0x1658de(742),ScrollWallGlowMaterial2="uniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput cmi) {\n czm_material material = czm_getDefaultMaterial(cmi);\n vec2 st = cmi.st;\n float t = fract(speed * czm_frameNumber / 1000.0) * direction;\n vec2 st1 = vec2(fract(st.s - t), st.t);\n vec4 color = vec4(0., 0., 0., 0.);\n float alpha = 1. - st.t;\n float value = fract(st1.s / 0.25);\n alpha *= sin(value * 3.1415926);\n color = vec4(u_color.rgb * u_color.a, alpha * 1.2);\n material.diffuse = color.rgb;\n material.alpha = color.a * globalAlpha;\n return material;\n}\n",DEF_STYLE$d={diffHeight:100,speed:10,style:1},ScrollWall=function(){var e=2492,t=2885,m=1018,d=3728,f=_0x1658de,i=(_inherits(a,BasePolyPrimitive),_createSuper(a));function a(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,a),t[e(2492)]=_objectSpread2(_objectSpread2({},DEF_STYLE$d),t.style||{}),i.call(this,t)}return _createClass(a,[{key:f(417),get:function(){return this._primitive}},{key:"_addedHook",value:function(e){var t=f,i=this[t(1980)];if(this.show&&i&&0!==i.length){for(var a=addPositionsHeight(i,e.diffHeight),n=[],s=[],r=[],o=[],l=0,c=i[t(2822)];l<c;l++){var h=l+1,h=(h===c&&(h=0),n.push[t(2026)](n,[i[l].x,i[l].y,i[l].z]),n.push.apply(n,[i[h].x,i[h].y,i[h].z]),n.push.apply(n,[a[h].x,a[h].y,a[h].z]),n.push.apply(n,[a[l].x,a[l].y,a[l].z]),o.push.apply(o,[0,0,1]),o.push.apply(o,[0,0,1]),o[t(1018)].apply(o,[0,0,1]),o[t(m)].apply(o,[0,0,1]),s.push.apply(s,[0,0,1,0,1,1,0,1]),4*l),u=2+h;r.push.apply(r,[h,1+h,u,u,3+h,h])}var _=new Float64Array(n),_=new Cesium__namespace[t(1016)]({id:this.id,geometry:new Cesium__namespace.Geometry({attributes:{position:new Cesium__namespace[t(2700)]({componentDatatype:Cesium__namespace.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:_}),normal:new Cesium__namespace.GeometryAttribute({componentDatatype:Cesium__namespace.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:new Float32Array(o)}),st:new Cesium__namespace[t(2700)]({componentDatatype:Cesium__namespace.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:new Float32Array(s)})},indices:new Uint16Array(r),primitiveType:Cesium__namespace.PrimitiveType.TRIANGLES,boundingSphere:Cesium__namespace.BoundingSphere.fromVertices(_)})}),p=getColorByStyle(e);this._primitive=new Cesium__namespace.Primitive({geometryInstances:_,appearance:new Cesium__namespace[t(d)]({material:new Cesium__namespace.Material({translucent:!0,fabric:{uniforms:{u_color:p,speed:e.speed,direction:e.reverse?1:-1,globalAlpha:1},source:this.createShader()}}),vertexShaderSource:ScrollWallGlowVS,fragmentShaderSource:ScrollWallGlowFS}),asynchronous:!1,shadows:e.shadows,show:this.show}),this.primitiveCollection.add(this._primitive)}}},{key:"_removedHook",value:function(){var e=f;this._primitive&&(this.primitiveCollection.remove(this._primitive),delete this[e(t)])}},{key:"createShader",value:function(){return 1===this[f(e)].style?ScrollWallGlowMaterial:ScrollWallGlowMaterial2}},{key:"_getDrawEntityClass",value:function(e,t){var i=f;return e.style[i(2903)]=!0,create$4("wall",e)}}]),a}(),Cartesian3$1=(register$4("scrollWall",ScrollWall),Cesium__namespace.Cartesian3),defined$1=Cesium__namespace.defined,CesiumMath$1=Cesium__namespace[_0x1658de(1124)],Matrix3=Cesium__namespace.Matrix3,PolylineVolumeGeometryLibrary=Cesium__namespace.PolylineVolumeGeometryLibrary,Quaternion=Cesium__namespace.Quaternion,ThickWallGeometryLibrary={},scratch1=new Cartesian3$1,scratch2=new Cartesian3$1,scratch3=new Cartesian3$1,scratch4=new Cartesian3$1,scaleArray2=[new Cartesian3$1,new Cartesian3$1],cartesian1=new Cartesian3$1,cartesian2=new Cartesian3$1,cartesian3=new Cartesian3$1,cartesian4=new Cartesian3$1,cartesian5=new Cartesian3$1,cartesian6=new Cartesian3$1,cartesian7=new Cartesian3$1,cartesian8=new Cartesian3$1,cartesian9=new Cartesian3$1,cartesian10$1=new Cartesian3$1,quaterion=new Quaternion,rotMatrix=new Matrix3;function cartesian3ToArray(e){var i=1018,a=[];return e.forEach(function(e){var t=_0x236b;a[t(i)](e.x),a[t(1018)](e.y),a.push(e.z)}),a}function computeRoundCorner(e,t,i,a){var n,s=_0x1658de,r=Cartesian3$1.angleBetween(Cartesian3$1.subtract(t,e,scratch1),Cartesian3$1.subtract(i,e,scratch2)),o=new Array(3),l=(o[0]=i.x,o[1]=i.y,o[2]=i.z,n=a?Matrix3[s(3925)](Quaternion.fromAxisAngle(Cartesian3$1.negate(e,scratch1),+r,quaterion),rotMatrix):Matrix3[s(3925)](Quaternion.fromAxisAngle(e,+r,quaterion),rotMatrix),0);t=Cartesian3$1[s(3060)](t,scratch1);for(var c=0;c<1;c++)t=Matrix3.multiplyByVector(n,t,t),o[l++]=t.x,o[l++]=t.y,o[l++]=t.z;return o}function addShiftedPositions(e,t,i,a){for(var n=_0x1658de,s=new Array(e.length),r=new Array(e.length),o=Cartesian3$1[n(2816)](t,i,scratch1),l=Cartesian3$1.negate(o,scratch2),c=0,h=e.length-1,u=0;u<e.length;u+=3){var _=Cartesian3$1.fromArray(e,u,scratch3),p=Cartesian3$1.add(_,l,scratch4),p=(s[c++]=p.x,s[c++]=p.y,s[c++]=p.z,Cartesian3$1[n(3605)](_,o,scratch4));r[h--]=p.z,r[h--]=p.y,r[h--]=p.x}return a.push(s,r),a}ThickWallGeometryLibrary.addAttribute=function(e,t,i,a){var n=t.x,s=t.y,t=t.z;defined$1(i)&&(e[i]=n,e[i+1]=s,e[i+2]=t),defined$1(a)&&(e[a]=t,e[a-1]=s,e[a-2]=n)};var scratchForwardProjection=new Cartesian3$1,scratchBackwardProjection=new Cartesian3$1,BoundingSphere=(ThickWallGeometryLibrary[_0x1658de(369)]=function(e){for(var t=3113,i=1766,a=2822,n=2816,s=1245,r=3060,o=3605,l=_0x1658de,c=e.positions,h=e[l(t)],u=e.width/2,_=cartesian1,p=cartesian2,m=cartesian3,d=cartesian4,f=cartesian5,y=cartesian6,v=cartesian7,g=cartesian8,C=cartesian9,x=cartesian10$1,b=[],k=c[0],P=c[1],p=Cartesian3$1.normalize(Cartesian3$1.subtract(P,k,p),p),_=h[l(i)](k,_),d=Cartesian3$1.normalize(Cartesian3$1.cross(_,p,d),d),v=Cartesian3$1.clone(k,v),k=P,m=Cartesian3$1.negate(p,m),w=[],S=c[l(a)],T=1;T<S-1;T++){_=h.geodeticSurfaceNormal(k,_),P=c[T+1],p=Cartesian3$1[l(1346)](Cartesian3$1.subtract(P,k,p),p),f=Cartesian3$1.normalize(Cartesian3$1.add(p,m,f),f);var M=Cartesian3$1[l(n)](_,Cartesian3$1.dot(p,_),scratchForwardProjection),E=(Cartesian3$1.subtract(p,M,M),Cartesian3$1.normalize(M,M),Cartesian3$1[l(2816)](_,Cartesian3$1.dot(m,_),scratchBackwardProjection));Cartesian3$1[l(3446)](m,E,E),Cartesian3$1[l(1346)](E,E),!CesiumMath$1.equalsEpsilon(Math.abs(Cartesian3$1[l(2846)](M,E)),1,CesiumMath$1.EPSILON7)&&(f=Cartesian3$1.cross(f,_,f),f=Cartesian3$1.cross(_,f,f),f=Cartesian3$1.normalize(f,f),M=u/Math[l(s)](.25,Cartesian3$1[l(1878)](Cartesian3$1.cross(f,m,scratch1))),E=PolylineVolumeGeometryLibrary.angleIsGreaterThanPi(p,m,k,h),f=Cartesian3$1.multiplyByScalar(f,M,f),E?(g=Cartesian3$1.add(k,f,g),x=Cartesian3$1[l(3605)](g,Cartesian3$1.multiplyByScalar(d,u,x),x),C=Cartesian3$1.add(g,Cartesian3$1.multiplyByScalar(d,2*u,C),C),scaleArray2[0]=Cartesian3$1.clone(v,scaleArray2[0]),scaleArray2[1]=Cartesian3$1[l(r)](x,scaleArray2[1]),b=addShiftedPositions(cartesian3ToArray(scaleArray2),d,u,b),y=Cartesian3$1.clone(C,y),d=Cartesian3$1.normalize(Cartesian3$1.cross(_,p,d),d),C=Cartesian3$1[l(3605)](g,Cartesian3$1[l(2816)](d,2*u,C),C),v=Cartesian3$1.add(g,Cartesian3$1.multiplyByScalar(d,u,v),v),w.push({leftPositions:computeRoundCorner(g,y,C,E)})):(C=Cartesian3$1.add(k,f,C),x=Cartesian3$1.add(C,Cartesian3$1.negate(Cartesian3$1[l(2816)](d,u,x),x),x),g=Cartesian3$1[l(o)](C,Cartesian3$1.negate(Cartesian3$1.multiplyByScalar(d,2*u,g),g),g),scaleArray2[0]=Cartesian3$1[l(3060)](v,scaleArray2[0]),scaleArray2[1]=Cartesian3$1.clone(x,scaleArray2[1]),b=addShiftedPositions(cartesian3ToArray(scaleArray2),d,u,b),y=Cartesian3$1[l(3060)](g,y),d=Cartesian3$1.normalize(Cartesian3$1.cross(_,p,d),d),g=Cartesian3$1.add(C,Cartesian3$1.negate(Cartesian3$1.multiplyByScalar(d,2*u,g),g),g),v=Cartesian3$1.add(C,Cartesian3$1.negate(Cartesian3$1.multiplyByScalar(d,u,v),v),v),w.push({rightPositions:computeRoundCorner(C,y,g,E)})),m=Cartesian3$1.negate(p,m)),k=P}return _=h[l(1766)](k,_),scaleArray2[0]=Cartesian3$1.clone(v,scaleArray2[0]),scaleArray2[1]=Cartesian3$1.clone(k,scaleArray2[1]),{positions:b=addShiftedPositions(cartesian3ToArray(scaleArray2),d,u,b),corners:w}},Cesium__namespace.BoundingSphere),Cartesian3=Cesium__namespace.Cartesian3,Cartographic=Cesium__namespace[_0x1658de(3428)],Check=Cesium__namespace[_0x1658de(2343)],ComponentDatatype=Cesium__namespace[_0x1658de(1195)],defaultValue=Cesium__namespace.defaultValue,defined=Cesium__namespace[_0x1658de(3277)],Ellipsoid=Cesium__namespace.Ellipsoid,Geometry=Cesium__namespace.Geometry,GeometryAttribute=Cesium__namespace.GeometryAttribute,GeometryAttributes=Cesium__namespace.GeometryAttributes,IndexDatatype=Cesium__namespace.IndexDatatype,CesiumMath=Cesium__namespace.Math,PrimitiveType=Cesium__namespace.PrimitiveType,VertexFormat=Cesium__namespace[_0x1658de(610)],CornerType=Cesium__namespace.CornerType,cartesian10=new Cartesian3,cartesian20=new Cartesian3,cartesian30=new Cartesian3;function combine(e,H){var t,F=2141,i=2822,N=1503,a=1029,G=807,n=_0x1658de,s=e.positions,r=e.corners,e=new GeometryAttributes,o=0,l=0,c=0;for(R=0;R<s.length;R+=2)o+=t=s[R].length-3,c+=2*t,l+=s[R+1].length-3;for(o+=3,l+=3,R=0;R<r.length;R++){var h=r[R],u=r[R].leftPositions;defined(u)?o+=t=u.length:l+=t=r[R][n(F)][n(2822)],c+=t}var _,p,m,d,f=o+l,y=new Float64Array(f),v=0,g=f-1,C=IndexDatatype.createTypedArray(f/3,c),x=0,b=0,k=s[b++],P=s[b++];for(y.set(k,v),y.set(P,g-P[n(i)]+1),t=P.length-3,R=0;R<t;R+=3)d=(p=v/3)+1,m=(_=(g-2)/3)-1,C[x++]=_,C[x++]=p,C[x++]=m,C[x++]=m,C[x++]=p,C[x++]=d,v+=3,g-=3;for(R=0;R<r.length;R++){var w=void 0,S=(h=r[R])[n(N)],T=h.rightPositions,M=void 0,E=void 0,A=cartesian30,L=cartesian10,D=cartesian20;if(defined(S)){for(g-=3,M=d,E=m,w=0;w<S[n(i)]/3;w++)A=Cartesian3.fromArray(S,3*w,A),C[x++]=M,C[x++]=E-w-1,C[x++]=E-w,ThickWallGeometryLibrary.addAttribute(y,A,void 0,g),L=Cartesian3[n(a)](y,3*(E-w-1),L),D=Cartesian3.fromArray(y,3*M,D),g-=3;A=Cartesian3[n(a)](y,3*M,A),L=Cartesian3.subtract(Cartesian3.fromArray(y,3*E,L),A,L),D=Cartesian3.subtract(Cartesian3.fromArray(y,3*(E-w),D),A,D),v+=3}else{for(v+=3,M=m,E=d,w=0;w<T.length/3;w++)A=Cartesian3.fromArray(T,3*w,A),C[x++]=M,C[x++]=E+w,C[x++]=E+w+1,ThickWallGeometryLibrary.addAttribute(y,A,v),L=Cartesian3.fromArray(y,3*M,L),D=Cartesian3.fromArray(y,3*(E+w),D),v+=3;A=Cartesian3.fromArray(y,3*M,A),L=Cartesian3.subtract(Cartesian3.fromArray(y,3*(E+w),L),A,L),D=Cartesian3.subtract(Cartesian3.fromArray(y,3*E,D),A,D),g-=3}for(k=s[b++],P=s[b++],k.splice(0,3),P.splice(P.length-3,3),y.set(k,v),y.set(P,g-P.length+1),t=P[n(i)]-3,w=0;w<P.length;w+=3)p=(d=v/3)-1,C[x++]=_=(m=(g-2)/3)+1,C[x++]=p,C[x++]=m,C[x++]=m,C[x++]=p,C[x++]=d,v+=3,g-=3;v-=3,g+=3}if(e.position=new GeometryAttribute({componentDatatype:ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y}),H.st){for(var I=new Float32Array(f/3*2),O=0,z=1/((o/=3)-1),B=1/((l/=3)-1),R=0;R<l;R++)I[O++]=R*B,I[O++]=0;for(R=o;0<R;R--)I[O++]=(R-1)*z,I[O++]=1;e.st=new GeometryAttribute({componentDatatype:ComponentDatatype[n(G)],componentsPerAttribute:2,values:I})}return{attributes:e,indices:C}}function ThickWallGeometry(e){var t=1980,i=696,a=3019,n=3830,s=_0x1658de,t=(e=defaultValue(e,defaultValue.EMPTY_OBJECT))[s(t)],i=e[s(i)];Check.defined("options.positions",t),Check.defined("options.width",i),this[s(a)]=t,this._ellipsoid=Ellipsoid.clone(defaultValue(e.ellipsoid,Ellipsoid.WGS84)),this._vertexFormat=VertexFormat.clone(defaultValue(e[s(n)],VertexFormat.POSITION_AND_ST)),this._width=i,this._granularity=defaultValue(e[s(1231)],CesiumMath.RADIANS_PER_DEGREE)}ThickWallGeometry.createGeometry=function(e){for(var t=2822,i=3258,a=2874,n=3159,s=2532,r=2965,o=2874,l=_0x1658de,c=e._positions,h=e._width,u=e._ellipsoid,_=c.map(function(e){return Cartographic.fromCartesian(e)}),p=c.map(function(e){return u.scaleToGeodeticSurface(e)}),m=e._vertexFormat,p={ellipsoid:u,positions:p,width:h,cornerType:CornerType.BEVELED,granularity:e._granularity,saveAttributes:!1},h=ThickWallGeometryLibrary.computePositions(p),d=[],f=[],y=h.positions,v=y[l(t)]/2,g=0;g<v;g++){for(var C=_[g],x=_[g+1],b=y[2*g],k=y[2*g+1],P=b[l(2822)]/3,w=k.length/3,S=0;S<P;S++){var T=new Cesium__namespace.Cartesian3(b[3*S],b[3*S+1],b[3*S+2]),T=Cartographic[l(i)](T),M=void 0,M=0===S?Cartesian3[l(a)](T.longitude,T.latitude,C[l(n)]):Cartesian3.fromRadians(T.longitude,T.latitude,x.height);d[l(1018)](M),b[3*S]=M.x,b[3*S+1]=M.y,b[3*S+2]=M.z}for(var E=[],A=0;A<w;A++){var L=new Cesium__namespace.Cartesian3(k[3*A],k[3*A+1],k[3*A+2]),L=Cartographic.fromCartesian(L),D=void 0,D=0===A?Cartesian3.fromRadians(L.longitude,L[l(2360)],x[l(3159)]):Cartesian3.fromRadians(L[l(3594)],L.latitude,C.height);E.push(D),k[3*A]=D.x,k[3*A+1]=D.y,k[3*A+2]=D.z}f.push.apply(f,_toConsumableArray(E[l(2013)]()))}h.corners.forEach(function(e,t){var i=l,e=defined(e[i(2141)])?e.rightPositions:e.leftPositions,a=new Cesium__namespace.Cartesian3(e[0],e[1],e[2]),a=Cartographic.fromCartesian(a),t=c[t+1],t=Cartographic.fromCartesian(t),i=Cartesian3[i(o)](a.longitude,a.latitude,t.height);e[0]=i.x,e[1]=i.y,e[2]=i.z});e=combine(h,m),p=e[l(2988)],t=BoundingSphere.fromVertices(p[l(s)].values,void 0,3),f=Cesium__namespace.arrayRemoveDuplicates(f,Cartesian3[l(r)]);return{geometry:new Geometry({attributes:p,indices:e.indices,primitiveType:PrimitiveType.TRIANGLES,boundingSphere:t}),rightPoints:f,leftPoints:d}};var DEF_STYLE$c={diffHeight:100,bottomHeight:0,width:10,flat:!0},ThickWall=function(){var i=3458,m=1018,d=696,f=696,y=485,v=1521,g=3728,C=3428,x=1778,b=3428,k=_0x1658de,a=(_inherits(n,BasePolyPrimitive),_createSuper(n));function n(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),t.style=_objectSpread2(_objectSpread2({},DEF_STYLE$c),t[e(2492)]||{}),a.call(this,t)}return _createClass(n,[{key:"czmObject",get:function(){return this[_0x236b(2885)]}},{key:k(3671),value:function(i,e){var a=1018,n=2874,s=k,t=[],r=[],o=[],l=(this.positions.forEach(function(e){var t=_0x236b,e=Cesium__namespace.Cartographic[t(3258)](e);r[t(a)](Cesium__namespace.Cartesian3[t(n)](e.longitude,e.latitude,e[t(3159)]+i.diffHeight)),o[t(1018)](Cesium__namespace[t(784)].fromRadians(e[t(3594)],e.latitude,e.height-i.bottomHeight))}),i[s(2903)]&&(r[s(m)](r[0]),o.push(o[0])),ThickWallGeometry.createGeometry(new ThickWallGeometry({positions:r,width:i[s(d)]}))),c=ThickWallGeometry.createGeometry(new ThickWallGeometry({positions:o,width:i[s(f)]})),h=new Cesium__namespace.GeometryInstance({geometry:l.geometry}),u=new Cesium__namespace.GeometryInstance({geometry:c.geometry}),_=(t.push(h),t.push(u),[]),p=[],h=(c[s(y)].forEach(function(e){var t=s,e=Cesium__namespace.Cartographic.fromCartesian(e);_.push(e[t(3159)])}),c.rightPoints.forEach(function(e){var t=s,e=Cesium__namespace[t(b)].fromCartesian(e);p.push(e[t(3159)])}),new Cesium__namespace.GeometryInstance({geometry:new Cesium__namespace[s(v)]({positions:l.leftPoints,minimumHeights:_,vertexFormat:Cesium__namespace.MaterialAppearance.MaterialSupport.TEXTURED[s(3830)]})})),u=new Cesium__namespace.GeometryInstance({geometry:new Cesium__namespace.WallGeometry({positions:l.rightPoints,minimumHeights:p,vertexFormat:Cesium__namespace[s(g)].MaterialSupport[s(2236)].vertexFormat})});return t.push(h),t[s(m)](u),i.closure||(h=Cesium__namespace[s(C)][s(3258)](c.leftPoints[0])[s(3159)],u=new Cesium__namespace.GeometryInstance({geometry:new Cesium__namespace[s(1521)]({positions:[l.leftPoints[0],l[s(362)][0]],minimumHeights:[h,h],vertexFormat:Cesium__namespace[s(3728)][s(x)].TEXTURED.vertexFormat})}),h=Cesium__namespace.Cartographic.fromCartesian(c.leftPoints[c.leftPoints.length-1]).height,c=new Cesium__namespace.GeometryInstance({geometry:new Cesium__namespace.WallGeometry({positions:[l.leftPoints[l.leftPoints.length-1],l.rightPoints[l.rightPoints.length-1]],minimumHeights:[h,h],vertexFormat:Cesium__namespace.MaterialAppearance.MaterialSupport.TEXTURED.vertexFormat})}),t.push(u),t.push(c)),t}},{key:"_createAppearance",value:function(e,t,i){return new Cesium__namespace[k(3728)](_objectSpread2({},e))}},{key:"_conversionStyle",value:function(e){return WallStyleConver.toCesiumVal(e)}},{key:k(1748),value:function(e,t){return WallStyleConver[k(i)](e,t)}},{key:"_updateStyleByEdit",value:function(e){var t=k;this._isCircle&&Cesium__namespace.defined(e.radius)&&(this.radius=e.radius),Cesium__namespace.defined(e.diffHeight)&&(this.style[t(872)]=e[t(872)])}},{key:"_getDrawEntityClass",value:function(e,t){return create$4("wall",e)}}]),n}(),DynamicRiverFS=(register$4(_0x1658de(3285),ThickWall),"in vec3 v_positionMC;\nin vec3 v_positionEC;\nin vec2 v_st;\n\nvoid main() {\n czm_materialInput materialInput;\n\n vec3 normalEC = normalize(czm_normal3D * czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0)));\n #ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n #endif\n\n materialInput.s = v_st.s;\n materialInput.st = v_st;\n materialInput.str = vec3(v_st, 0.0);\n\n // Convert tangent space material normal to eye space\n materialInput.normalEC = normalEC;\n materialInput.tangentToEyeMatrix = czm_eastNorthUpToEyeCoordinates(v_positionMC, materialInput.normalEC);\n\n // Convert view vector to world space\n vec3 positionToEyeEC = -v_positionEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n\n czm_material material = czm_getMaterial(materialInput);\n\n #ifdef FLAT\n out_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n #else\n out_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n #endif\n}\n"),DynamicRiverVS="in vec3 position3DHigh;\nin vec3 position3DLow;\nin vec2 st;\nin float batchId;\n\nout vec3 v_positionMC;\nout vec3 v_positionEC;\nout vec2 v_st;\n\nvoid main() {\n vec4 p = czm_computePosition();\n\n v_positionMC = position3DHigh + position3DLow; // position in model coordinates\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n v_st = st;\n\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\n}\n",DynamicRiverMaterial="uniform float globalAlpha;\nuniform float opacity;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n if(move) {\n float r = sqrt((st.x - 0.8) * (st.x - 0.8) + (st.y - 0.8) * (st.y - 0.8));\n float r2 = sqrt((st.x - 0.2) * (st.x - 0.2) + (st.y - 0.2) * (st.y - 0.2));\n float z = cos(moveVar.x * r + czm_frameNumber / 100.0 * moveVar.y) / moveVar.z;\n float z2 = cos(moveVar.x * r2 + czm_frameNumber / 100.0 * moveVar.y) / moveVar.z;\n st += sqrt(z * z + z2 * z2);\n st.s += direction * czm_frameNumber / 1000.0 * speed;\n st.s = mod(st.s, 1.0);\n }\n if(axisY) {\n st = vec2(st.t, st.s);\n }\n vec4 colorImage = texture(image, st);\n material.alpha = opacity * globalAlpha;\n material.diffuse = colorImage.rgb;\n return material;\n}\n",DEF_STYLE$b={opacity:.5,width:10,height:0,speed:10,axisY:!1,move:!0,direction:!0,moveVar:new Cesium__namespace[_0x1658de(784)](50,1,100)},DynamicRiver=function(){var e=3159,t=2336,i=3692,a=3156,p=784,m=1346,d=3817,n=2532,s=2700,r=1195,o=3884,l=3487,c=613,h=2098,u=2336,_=3475,f=1094,y=4045,v=3475,g=792,C=1094,x=2336,b=3884,k=3884,P=2492,w=2662,S=2662,T=2070,M=2098,E=3159,A=_0x1658de,L=(_inherits(D,BasePolyPrimitive),_createSuper(D));function D(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,D),t.style=_objectSpread2(_objectSpread2({},DEF_STYLE$b),t[e(2492)]||{}),L.call(this,t)}return _createClass(D,[{key:"czmObject",get:function(){return this._primitive}},{key:"image",get:function(){return this.style.image},set:function(e){var t=_0x236b;this.style[t(613)]=e,this._material.uniforms.image=e}},{key:"width",get:function(){return this.style.width},set:function(e){var t=_0x236b;e=Number(e)||1,this.style.width=e,this.redraw(this[t(2492)])}},{key:A(e),get:function(){return this.style.height},set:function(e){var t=A;this[t(2492)][t(E)]=e,this.redraw(this.style)}},{key:A(2098),get:function(){return this.style.opacity},set:function(e){var t=A;this.style[t(M)]=Number(e),this[t(1094)].uniforms[t(M)]=e}},{key:A(2070),get:function(){return this.style.direction},set:function(e){var t=A;e=Boolean(e),this.style[t(T)]=e,this._material[t(1998)].direction=e?-1:1}},{key:"speed",get:function(){var e=A;return this.style[e(S)]},set:function(e){var t=A;e=Number(e)||1,this[t(P)][t(w)]=e,this._material.uniforms.speed=e}},{key:"move",get:function(){return this.style.move},set:function(e){var t=A;e=Boolean(e),this.style[t(b)]=e,this._material.uniforms[t(k)]=e}},{key:A(t),get:function(){var e=A;return this.style[e(2336)]},set:function(e){var t=A;e=Boolean(e),this[t(2492)][t(2336)]=e,this._material.uniforms[t(x)]=e}},{key:A(792),get:function(){return this.style.moveVar},set:function(e){var t=A;this.style[t(g)]=e,this[t(C)].uniforms.moveVar=e}},{key:"_addedHook",value:function(e){var t=A;this[t(y)]&&this[t(1980)]&&0!==this[t(1980)].length&&(this._sideRes=Lines2Plane(this.positions,this.width,this.height),this._sideRes)&&(this._primitive=this.createPrimitive(),this[t(v)].add(this._primitive))}},{key:"_removedHook",value:function(){var e=A;this.dhEvent&&(this._map.off(EventType.clockTick,this[e(4022)],this),delete this.dhEvent),this._primitive&&(this[e(_)][e(4071)](this._primitive),delete this._primitive),this._material&&(this._material.destroy(),delete this[e(f)])}},{key:A(i),value:function(e,t){var i,a=A,n=!1;for(i in t)switch(i){case a(c):case a(h):case"moveVar":case"direction":case"speed":case a(u):case"globalAlpha":this._material.uniforms[i]=t[i];break;default:n=!0}n&&this.redraw(e)}},{key:"createPrimitive",value:function(){var e=A,t=this._sideRes,i=new Float64Array(t.vertexs),a=new Cesium__namespace.GeometryAttributes,a=(a[e(n)]=new Cesium__namespace.GeometryAttribute({componentDatatype:Cesium__namespace.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:i}),a.st=new Cesium__namespace[e(s)]({componentDatatype:Cesium__namespace[e(r)].FLOAT,componentsPerAttribute:2,values:t.uvs}),new Cesium__namespace[e(1555)]({attributes:a,indices:t[e(1061)],primitiveType:Cesium__namespace.PrimitiveType.TRIANGLES,boundingSphere:Cesium__namespace.BoundingSphere.fromVertices(i)})),t=new Cesium__namespace[e(1016)]({id:this.id,geometry:a}),i=new Cesium__namespace[e(3712)];return i[e(3142)][e(3463)]=!0,this._material=createMaterial(MaterialType,{image:this[e(613)],opacity:this.opacity,moveVar:this.moveVar,direction:this.direction?-1:1,speed:this.speed,move:this[e(o)],axisY:this[e(2336)],globalAlpha:1}),new Cesium__namespace[e(l)]({geometryInstances:t,appearance:new Cesium__namespace.Appearance({material:this[e(1094)],renderState:i,vertexShaderSource:DynamicRiverVS,fragmentShaderSource:DynamicRiverFS})})}},{key:A(a),value:function(i,e){var a=3342,n=4030,s=A;if(i&&e&&this._primitive){for(var r=0,o=i/(20*e),t=this._sideRes.self,l=new Cesium__namespace[s(p)],c=0,h=t[s(2822)];c<h;c++){var u=Cesium__namespace.Cartesian3[s(m)](t[c],new Cesium__namespace[s(784)]);Cesium__namespace[s(784)].add(l,u,l)}Cesium__namespace.Cartesian3[s(1346)](l,l);var _=Cesium__namespace.clone(this._primitive[s(1436)]);this.dhEvent=function(){var e,t=s;this._primitive&&this._map&&(Math.abs(r)<=Math.abs(i)?(e=Cesium__namespace.Cartesian3.multiplyByScalar(l,r,new Cesium__namespace.Cartesian3),this._primitive.modelMatrix=Cesium__namespace.Matrix4.multiplyByTranslation(_,e,new Cesium__namespace[t(a)])):this.dhEvent&&(this[t(3817)][t(n)](EventType.clockTick,this[t(4022)],this),delete this.dhEvent),r+=o)},this[s(d)].on(EventType.clockTick,this.dhEvent,this)}}},{key:A(3860),value:function(e){var t=A;this.style[t(1863)]=e,this._material&&(this._material.uniforms.globalAlpha=e)}},{key:"_getDrawEntityClass",value:function(e,t){return e.style.width=5,create$4("polyline",e)}}]),D}(),MaterialType=(register$4("dynamicRiver",DynamicRiver),"DynamicRiver");function Lines2Plane(e,t,i){var a=1181,n=1018,s=1018,r=1018,o=1018,l=410,c=410,H=1018,h=1018,F=1018,N=2339,G=2068,z=1018,u=_0x1658de;if(e&&!(e.length<=1)&&t&&0!==t){for(var _=e.length,p=[],m=[],B=t/2,d=0;d<_;d++){var f=void 0,y=void 0,v=void 0,g=void 0,C=void 0,v=0===d?(f=e[d],y=e[d],e[d+1]):d===_-1?(f=e[d-1],y=e[d],e[d-1]):(f=e[d-1],y=e[d],e[d+1]);0!==i&&(f=RaisePoint(f,i),y=RaisePoint(y,i),v=RaisePoint(v,i)),f&&y&&v&&(g=(f=GetSide2(f,y,v,B))[u(a)],C=f.right,p.push(C),m.push(g))}for(var x=p,b=m,k=[],P=[],w=[],S=[],T=[],M=0;M<_;M++){var E=Cesium__namespace.EncodedCartesian3.fromCartesian(b[M]);P.push(b[M].x),P[u(n)](b[M].y),P.push(b[M].z),w[u(n)](E.high.x),w.push(E.high.y),w[u(s)](E.high.z),S.push(E.low.x),S.push(E.low.y),S[u(n)](E[u(2339)].z),k[u(1018)](1,1),M<_-1&&(T[u(r)](M+2*_),T.push(M+1),T[u(r)](M+1+_),T[u(o)](M+2*_),T.push(M+1+_),T[u(1018)](_+M+2*_))}for(var A=0;A<_;A++){var L=Cesium__namespace.EncodedCartesian3.fromCartesian(x[A]);P.push(x[A].x),P.push(x[A].y),P.push(x[A].z),w.push(L[u(l)].x),w.push(L[u(410)].y),w.push(L[u(c)].z),S.push(L.low.x),S.push(L[u(2339)].y),S[u(H)](L[u(2339)].z),k.push(1,0)}for(var D=0;D<_;D++){var I=Cesium__namespace[u(2068)].fromCartesian(b[D]);P.push(b[D].x),P.push(b[D].y),P.push(b[D].z),w.push(I.high.x),w.push(I[u(410)].y),w[u(h)](I[u(410)].z),S.push(I.low.x),S[u(F)](I[u(N)].y),S.push(I.low.z),k[u(1018)](0,1)}for(var O=0;O<_;O++){var R=Cesium__namespace[u(G)].fromCartesian(x[O]);P.push(x[O].x),P.push(x[O].y),P[u(z)](x[O].z),w.push(R.high.x),w[u(h)](R.high.y),w.push(R.high.z),S.push(R.low.x),S.push(R.low.y),S.push(R.low.z),k.push(0,0)}return{left:x,right:b,self:e,vertexs:new Float32Array(P),vertexsH:new Float32Array(w),vertexsL:new Float32Array(S),indexs:new Uint16Array(T),uvs:new Float32Array(k)}}logError$1("请确认参数符合规则:数组长度大于1,宽高不能为0!",e)}function RaisePoint(e,t){var i,a=_0x1658de;if(e instanceof Cesium__namespace.Cartesian3){if(t&&0!==t)return i=Cesium__namespace.Cartesian3.normalize(e,new Cesium__namespace.Cartesian3),a=new Cesium__namespace[a(2493)](e,i),Cesium__namespace.Ray.getPoint(a,t);logError$1("请确认高度是非零数值!")}else logError$1("请确认点是Cartesian3类型!")}function GetSide2(e,t,i,a){var n,s,r,o,l=784,c=2493,h=784,u=2846,_=1947,p=1124,m=_0x1658de;return t=Cesium__namespace.Cartesian3.equals(e,t)?(n=Cesium__namespace.Cartesian3[m(1346)](Cesium__namespace[m(l)].subtract(i,t,new Cesium__namespace.Cartesian3),new Cesium__namespace.Cartesian3),s=Cesium__namespace.Cartesian3.normalize(t,new Cesium__namespace.Cartesian3),r=Cesium__namespace.Cartesian3.cross(s,n,new Cesium__namespace[m(l)]),n=Cesium__namespace.Cartesian3.cross(n,s,new Cesium__namespace[m(l)]),s=new Cesium__namespace[m(c)](t,r),r=new Cesium__namespace.Ray(t,n),n=Cesium__namespace[m(2493)].getPoint(s,a),Cesium__namespace.Ray.getPoint(r,a)):Cesium__namespace.Cartesian3.equals(i,t)?(s=Cesium__namespace.Cartesian3.normalize(Cesium__namespace[m(l)].subtract(t,e,new Cesium__namespace[m(784)]),new Cesium__namespace[m(784)]),r=Cesium__namespace[m(l)].normalize(t,new Cesium__namespace.Cartesian3),o=Cesium__namespace.Cartesian3.cross(r,s,new Cesium__namespace.Cartesian3),s=Cesium__namespace[m(784)].cross(s,r,new Cesium__namespace.Cartesian3),r=new Cesium__namespace.Ray(t,o),o=new Cesium__namespace.Ray(t,s),n=Cesium__namespace.Ray.getPoint(r,a),Cesium__namespace.Ray.getPoint(o,a)):(s=Cesium__namespace.Cartesian3.normalize(Cesium__namespace[m(784)].subtract(t,e,new Cesium__namespace[m(l)]),new Cesium__namespace.Cartesian3),r=Cesium__namespace.Cartesian3.normalize(Cesium__namespace.Cartesian3.subtract(i,t,new Cesium__namespace.Cartesian3),new Cesium__namespace.Cartesian3),o=Cesium__namespace[m(784)].add(s,r,new Cesium__namespace.Cartesian3),Cesium__namespace.Cartesian3.equals(o,new Cesium__namespace.Cartesian3)?(i=Cesium__namespace[m(h)].normalize(Cesium__namespace.Cartesian3.subtract(t,e,new Cesium__namespace[m(784)]),new Cesium__namespace.Cartesian3),h=Cesium__namespace.Cartesian3[m(1346)](t,new Cesium__namespace.Cartesian3),e=Cesium__namespace.Cartesian3.cross(h,i,new Cesium__namespace.Cartesian3),i=Cesium__namespace.Cartesian3.cross(i,h,new Cesium__namespace.Cartesian3),h=new Cesium__namespace.Ray(t,e),e=new Cesium__namespace[m(2493)](t,i),n=Cesium__namespace.Ray.getPoint(h,a),Cesium__namespace.Ray.getPoint(e,a)):(i=Cesium__namespace.Cartesian3.normalize(o,new Cesium__namespace[m(784)]),h=Cesium__namespace.Cartesian3.normalize(t,new Cesium__namespace.Cartesian3),e=Cesium__namespace.Cartesian3.cross(h,i,new Cesium__namespace.Cartesian3),o=Cesium__namespace[m(l)].cross(i,h,new Cesium__namespace.Cartesian3),l=new Cesium__namespace[m(c)](t,e),i=new Cesium__namespace.Ray(t,o),h=Cesium__namespace.Cartesian3[m(u)](s,r)/Cesium__namespace[m(784)].magnitude(s)/Cesium__namespace.Cartesian3[m(1878)](r),c=Cesium__namespace[m(1124)].toDegrees(Math[m(_)](h))/2,e=2*a/Math.cos(Cesium__namespace[m(p)].toRadians(c)),n=Cesium__namespace.Ray.getPoint(l,e/2),Cesium__namespace.Ray.getPoint(i,e/2))),{left:n,right:t}}register$3(MaterialType,{fabric:{uniforms:{image:Cesium__namespace.Material.DefaultImageId,opacity:1,moveVar:new Cesium__namespace.Cartesian3(50,1,100),direction:1,speed:1,move:!0,axisY:!1,globalAlpha:1},source:DynamicRiverMaterial},translucent:!0});var DEF_STYLE$a={opacity:1,move:!1,axisY:!0},Road=function(){_inherits(a,DynamicRiver);var i=_createSuper(a);function a(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,a),t.style=_objectSpread2(_objectSpread2({},DEF_STYLE$a),t.style||{}),i[e(1567)](this,t)}return _createClass(a)}(),PitWallGeometry=(register$4("road",Road),function(){var x=1118,b=2822,k=2822,P=807,w=784,S=3481,a=3277,n=610;function s(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=(_classCallCheck(this,s),t.minimumArr),t=t.maximumArr,e=(Cesium__namespace.Check[e(a)]("dingmian",t),Cesium__namespace.Check.defined(e(2727),i),Cesium__namespace.Check[e(3828)].number.greaterThanOrEquals("dingmian.length",t.length,3),Cesium__namespace.Check.typeOf[e(1452)].greaterThanOrEquals("dimian.length",i.length,3),new Cesium__namespace[e(n)]({st:!0,position:!0,bitangent:!1,normal:!1,color:!1,tangent:!1}));this._minimumArr=Cesium__namespace.clone(i),this._maximumArr=Cesium__namespace.clone(t),this._vertexFormat=e,this._workerName=""}return _createClass(s,[{key:"createGeometry",value:function(e,t,i){var a=_0x236b,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,s=e[a(x)],r=e._maximumArr,e=e[a(748)],o=new Cesium__namespace.GeometryAttributes;if(Cesium__namespace.defined(e[a(2532)])&&Cesium__namespace[a(3277)](e.st)){if(Cesium__namespace.defined(e.position)){for(var l=new Float64Array(4*r[a(b)]*3),c=0;c<r.length;c++)c===r.length-1?(l[12*c+0]=r[c].x,l[12*c+1]=r[c].y,l[12*c+2]=r[c].z,l[12*c+3]=s[c].x,l[12*c+4]=s[c].y,l[12*c+5]=s[c].z,l[12*c+9]=s[0].x,l[12*c+10]=s[0].y,l[12*c+11]=s[0].z,l[12*c+6]=r[0].x,l[12*c+7]=r[0].y,l[12*c+8]=r[0].z):(l[12*c+0]=r[c].x,l[12*c+1]=r[c].y,l[12*c+2]=r[c].z,l[12*c+3]=s[c].x,l[12*c+4]=s[c].y,l[12*c+5]=s[c].z,l[12*c+9]=s[c+1].x,l[12*c+10]=s[c+1].y,l[12*c+11]=s[c+1].z,l[12*c+6]=r[c+1].x,l[12*c+7]=r[c+1].y,l[12*c+8]=r[c+1].z);o.position=new Cesium__namespace[a(2700)]({componentDatatype:Cesium__namespace.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:l})}if(Cesium__namespace.defined(e.st)){for(var h=new Float32Array(4*r.length*2),u=r[a(k)],_=0;_<r[a(2822)];_++){var p=_/u,m=((t&&t[_]||0)-i)/(n-i),d=_+1,f=d/u,d=((t&&t[d]||0)-i)/(n-i);h[8*_+0]=p,h[8*_+1]=m,h[8*_+2]=p,h[8*_+3]=m-m,h[8*_+4]=f,h[8*_+5]=d,h[8*_+6]=f,h[8*_+7]=d-d}o.st=new Cesium__namespace.GeometryAttribute({componentDatatype:Cesium__namespace.ComponentDatatype[a(P)],componentsPerAttribute:2,values:h})}for(var y=new Uint16Array(2*r.length*3),v=new Cesium__namespace.Cartesian3(9999999999999,9999999999999,9999999999999),g=new Cesium__namespace.Cartesian3(-9999999999999,-9999999999999,-9999999999999),C=0;C<r.length;C++)y[6*C+0]=4*C+0,y[6*C+1]=4*C+1,y[6*C+2]=4*C+2,y[6*C+3]=4*C+1,y[6*C+4]=4*C+2,y[6*C+5]=4*C+3,r[C].x>=g.x&&r[C].y>=g.y&&r[C].z>=g.z&&(g=r[C]),s[C].x<=v.x&&s[C].y<=v.y&&s[C].z<=v.z&&(v=s[C])}e=Cesium__namespace.Cartesian3[a(3446)](g,v,new Cesium__namespace.Cartesian3),e=.5*Cesium__namespace[a(w)][a(1878)](e);return new Cesium__namespace.Geometry({attributes:o,indices:y,primitiveType:Cesium__namespace.PrimitiveType.TRIANGLES,boundingSphere:new Cesium__namespace[a(S)](Cesium__namespace.Cartesian3.ZERO,e)})}}]),s}()),Pit=function(){var e=2451,t=3051,i=969,a=2492,n=1377,s=541,r=3487,o=4108,l=913,c=2517,h=3605,u=642,_=974,p=2885,m=541,d=2064,f=3817,y=1018,v=2874,g=3594,C=2874,x=2360,b=2554,k=_0x1658de,P=(_inherits(w,BasePolyPrimitive),_createSuper(w));function w(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,w),(i=P.call(this,i)).style.diffHeight=null!=(e=i.style.diffHeight)?e:10,i[t(2492)].splitNum=null!=(e=i.style.splitNum)?e:50,i}return _createClass(w,[{key:k(e),get:function(){var e=[];return this._bottomPrimitive&&e.push(this._bottomPrimitive),this._primitive_label&&e.push(this._primitive_label),e}},{key:"center",get:function(){return this.centerOfMass}},{key:"diffHeight",get:function(){var e=k;return this.style[e(872)]},set:function(e){for(var t=k,i=(this.style.diffHeight=e,[]),a=this._minHeight-e,n=this.wellData.cartoList,s=0,r=n.length;s<r;s++){var o=n[s];i[t(1018)](Cesium__namespace[t(784)][t(C)](o[t(3594)],o[t(x)],a))}this[t(b)].bottomPositions=i,this._removePit(),this._createPit(this.wellData)}},{key:"_getWellData",value:function(){var e=k;if(0!==this.positions.length){this[e(642)]=getMinHeight(this.positions);for(var t=this._minHeight-this.diffHeight,i=[],a=[],n=[],s=interPolyline({scene:this[e(f)].scene,positions:this.positions.concat(this.positions[0]),splitNum:this.style.splitNum}),r=0,o=s.length;r<o;r++){var l=Cesium__namespace.Cartographic.fromCartesian(s[r]);n[e(y)](new Cesium__namespace.Cartographic(l.longitude,l.latitude)),a.push(Cesium__namespace.Cartesian3[e(v)](l.longitude,l.latitude,t)),i.push(Cesium__namespace.Cartesian3.fromRadians(l[e(g)],l[e(2360)],0))}return{cartoList:n,bottomPositions:a,wallTopPositions:i}}}},{key:"_addedHook",value:function(e){var t,i=k;this.show&&this.positions&&0!==this.positions[i(2822)]&&(t=this[i(d)](),this[i(2554)]=t,this._createPit(t),this.style[i(3686)])&&this._addLabel()}},{key:"_removedHook",value:function(){_get(_getPrototypeOf(w[k(2385)]),"_removedHook",this).call(this),this._removePit()}},{key:"_removePit",value:function(){var e=k;this._primitive&&(this.primitiveCollection.remove(this[e(2885)]),delete this[e(2885)]),this._bottomPrimitive&&(this.primitiveCollection.remove(this._bottomPrimitive),delete this[e(m)])}},{key:"_createPit",value:function(l){var c=1245,h=3609,u=3351,_=this;this._createBottomSurface(l.bottomPositions),this._map.hasTerrain?Cesium__namespace.sampleTerrainMostDetailed(this._map.terrainProvider,l.cartoList).then(function(e){var t=_0x236b;if(_.isAdded){for(var i=[],a=-9999,n=[],s=0,r=e.length;s<r;s++){var o=e[s];i[t(1018)](o.height),a=Math[t(c)](o.height,a),n.push(Cesium__namespace.Cartesian3[t(2874)](o.longitude,o.latitude,o.height))}_._maxHeight=a,_[t(h)]=i,_[t(u)](l.bottomPositions,n)}}):this._createWellWall(l.bottomPositions,l.wallTopPositions)}},{key:k(3351),value:function(e,t){var i=k,a=this[i(u)]-this.diffHeight,n=null!=(n=this.style[i(2098)])?n:1,e=(e=new PitWallGeometry({minimumArr:e,maximumArr:t}))[i(_)](e,this._topHeights,a,this._maxHeight);this._primitive&&this.primitiveCollection.remove(this[i(p)]),this._primitive=new Cesium__namespace[i(3487)]({geometryInstances:new Cesium__namespace[i(1016)]({id:this.id,geometry:e}),appearance:new Cesium__namespace.MaterialAppearance({material:Cesium__namespace[i(2517)][i(3267)](Cesium__namespace.Material.ImageType,{image:this.style.image,color:Cesium__namespace[i(3096)].WHITE.withAlpha(n)}),translucent:1!==n,faceForward:!0,flat:!0})}),this[i(3475)].add(this[i(2885)]),this[i(3917)](this._primitive)}},{key:k(t),value:function(e){var t,i=k;e[i(2822)]&&(t=null!=(t=this.style.opacity)?t:1,this._bottomPrimitive&&this.primitiveCollection.remove(this._bottomPrimitive),this[i(s)]=new Cesium__namespace[i(r)]({geometryInstances:new Cesium__namespace.GeometryInstance({id:this.id,geometry:Cesium__namespace.PolygonGeometry[i(o)]({vertexFormat:Cesium__namespace.VertexFormat[i(l)],positions:e,perPositionHeight:!0})}),appearance:new Cesium__namespace.MaterialAppearance({material:Cesium__namespace[i(2517)].fromType(Cesium__namespace[i(c)].ImageType,{image:this.style.imageBottom,color:Cesium__namespace.Color[i(3644)].withAlpha(t)}),translucent:1!==t,faceForward:!0,flat:!0})}),this.primitiveCollection[i(h)](this._bottomPrimitive),this[i(3917)](this._bottomPrimitive))}},{key:"_updateExOpacity",value:function(e){this._updatePrimitiveOpacity(this._bottomPrimitive,e)}},{key:k(i),value:function(e,t){var i=k;return e[i(2492)][i(613)]=e[i(a)][i(447)],delete e[i(2492)].diffHeight,create$4(i(n),e)}}]),w}(),DEF_STYLE$9=(register$4("pit",Pit),{dimensions_x:100,dimensions_y:100}),DoubleSidedPlane=function(){var r=3886,o=2492,l=1519,c=784,h=3342,n=2700,t=(_inherits(i,BasePointPrimitive),_createSuper(i));function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),e.style=_objectSpread2(_objectSpread2({},DEF_STYLE$9),e.style||{}),t.call(this,e)}return _createClass(i,[{key:"_addedHook",value:function(e){var t,i,a=_0x236b;this.show&&(i=[0,-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0,.5,-.5,0,-.5,-.5,0,-.5,.5,0,.5,.5],i=new Cesium__namespace.Geometry({attributes:{position:new Cesium__namespace[a(n)]({componentDatatype:Cesium__namespace.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:new Float64Array(i)}),st:new Cesium__namespace.GeometryAttribute({componentDatatype:Cesium__namespace.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:new Float32Array([0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1])})},indices:new Uint16Array([0,1,2,0,2,3,4,5,6,4,6,7]),primitiveType:Cesium__namespace[a(2219)].TRIANGLES,boundingSphere:Cesium__namespace.BoundingSphere.fromVertices(i)}),e=new Cesium__namespace.Material({fabric:{type:"Image",uniforms:{image:e.image,opacity:null!=(t=e[a(2098)])?t:1,color:Cesium__namespace.Color[a(3644)],speed:e.speed||0,flipx:null!=(t=e.flipx)&&t,flipy:null!=(t=e.flipy)&&t,noWhite:null==(t=e[a(3225)])||t,globalAlpha:1},source:ImageMaterial}}),this._primitive=new Cesium__namespace[a(3487)]({geometryInstances:new Cesium__namespace.GeometryInstance({geometry:i}),appearance:new Cesium__namespace[a(3728)](_objectSpread2(_objectSpread2({translucent:!0,closed:!0,flat:!0},this.style),{},{material:e})),modelMatrix:this.modelMatrix,show:this.show}),this[a(3475)].add(this._primitive))}},{key:"_getModelMatrix",value:function(e,t){var i,a,n,s=_0x236b;return e?(n=Cesium__namespace.Math.toRadians(this.style.heading||0),i=Cesium__namespace.Math.toRadians(this.style.pitch||0),a=Cesium__namespace[s(1124)].toRadians(this[s(o)][s(2574)]||0),this._heading_reality=n,this._pitch_reality=i,this._roll_reality=a,e=Cesium__namespace.Transforms.headingPitchRollToFixedFrame(e,new Cesium__namespace[s(3975)](n,i,a),Cesium__namespace.Ellipsoid.WGS84,this[s(1592)][s(l)]),n=Cesium__namespace.Matrix4.fromScale(new Cesium__namespace[s(c)](1,this.style.dimensions_x,this.style[s(2457)])),Cesium__namespace.Matrix4.multiply(e,n,new Cesium__namespace[s(h)])):Cesium__namespace.Matrix4[s(r)]}},{key:"_getDrawEntityClass",value:function(e,t){return create$4("point",e)}}]),i}(),ReflectionWaterFS=(register$4("doubleSidedPlane",DoubleSidedPlane,!0),"uniform sampler2D reflexTexture; // 反射贴图\nuniform sampler2D normalTexture; // 法线贴图\nuniform float time;\n\nuniform mat4 fixedFrameToEastNorthUpTransform; // 水面的东北天矩阵的逆矩阵\n\n// 从顶点着色器传来的\nin vec4 v_worldPosition; // 当前像素的世界坐标\nin vec4 v_uv; // 原本的纹理坐标乘以贴图矩阵\n\n// 可配置的参数\nuniform float ripple; // 波纹大小(数值越大波纹越密集)\nuniform vec4 waterColor; // 水面颜色\nuniform float waterAlpha; // 水面透明度\nuniform float reflectivity; // 水面反射率\nuniform vec3 lightDirection; // 光照方向\nuniform float shiny; // 光照强度\nuniform float distortion; // 倒影的扭曲程度\nuniform float globalAlpha;\n\nconst vec3 sunColor = vec3(1.0);\n\n// 获取噪声\n// vec4 czm_getWaterNoise(sampler2D normalMap, vec2 uv, float time, float angleInRadians)\nvec4 gis3d_getNoise(sampler2D normalMap, vec2 uv) {\n vec2 uv0 = (uv / 103.0) + vec2(time / 17.0, time / 29.0);\n vec2 uv1 = uv / 107.0 - vec2(time / -19.0, time / 31.0);\n vec2 uv2 = uv / vec2(8907.0, 9803.0) + vec2(time / 101.0, time / 97.0);\n vec2 uv3 = uv / vec2(1091.0, 1027.0) - vec2(time / 109.0, time / -113.0);\n vec4 noise = texture(normalMap, uv0) +\n texture(normalMap, uv1) +\n texture(normalMap, uv2) +\n texture(normalMap, uv3);\n return noise * 0.5 - 1.0;\n}\n\nvoid gis3d_sunLight(const vec3 surfaceNormal, const vec3 eyeDirection, float shiny, float spec, float diffuse, inout vec3 diffuseColor, inout vec3 specularColor) {\n vec3 sunDirection = normalize(lightDirection);\n vec3 reflection = normalize(reflect(-sunDirection, surfaceNormal)); // 获得太阳对表面法线的反射向量\n float direction = max(0.0, dot(eyeDirection, reflection)); // 当太阳反射方向和眼睛的方向一致时,direction 最大,为 1,当角度大于 90度时最小,最小为 0\n specularColor += pow(direction, shiny) * sunColor * spec;\n diffuseColor += max(dot(sunDirection, surfaceNormal), 0.0) * sunColor * diffuse;\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n // 通过法线贴图计算新的表面法线\n vec2 transformedSt = materialInput.st * 2.0 - 1.0; // [0, 1] => [-1, 1]\n vec4 noise = gis3d_getNoise(normalTexture, transformedSt * ripple);\n vec3 surfaceNormal = normalize(noise.xzy); // [0, +1],Y up\n\n // 漫反射光\n vec3 diffuseLight = vec3(0.0);\n // 高光\n vec3 specularLight = vec3(0.0);\n\n // 获取视线方向(世界坐标)\n vec3 eye = (czm_inverseView * vec4(vec3(0.0), 1.0)).xyz;\n // 获取视线方向(水面的本地坐标)\n eye = (fixedFrameToEastNorthUpTransform * vec4(eye, 1.0)).xyz;\n // 当前像素的本地坐标\n vec3 world = (fixedFrameToEastNorthUpTransform * vec4(v_worldPosition.xyz, 1.0)).xyz;\n\n vec3 worldToEye = eye - world; // east, north, up\n worldToEye = vec3(worldToEye.x, worldToEye.z, -worldToEye.y); // Y up\n vec3 eyeDirection = normalize(worldToEye);\n\n float spec = 2.0;\n float diffuse = 0.5;\n gis3d_sunLight(surfaceNormal, eyeDirection, shiny, spec, diffuse, diffuseLight, specularLight);\n\n float distance = length(worldToEye);\n vec2 distortion = surfaceNormal.xz * (0.001 + 1.0 / distance) * distortion;\n vec3 reflectionSample = vec3(texture(reflexTexture, (v_uv.xy / v_uv.w) * 0.5 + 0.5 + distortion));\n\n float theta = max(dot(eyeDirection, surfaceNormal), 0.0);\n float reflectivity = reflectivity;\n float reflectance = mix(reflectivity, 1.0, pow(1.0 - theta, 5.0));\n\n // surfaceNormal 是以反射平面为 X-Y 平面的,\n // 所以 eyeDirection 也得是以反射平面为 X-Y 平面。\n vec3 scatter = max(0.0, dot(surfaceNormal, eyeDirection)) * waterColor.rgb;\n vec3 albedo = mix(sunColor * diffuseLight * 0.3 + scatter, vec3(0.1) + reflectionSample * 0.9 + reflectionSample * specularLight, reflectance);\n material.diffuse = albedo.rgb;\n material.alpha = waterAlpha* globalAlpha;\n\n return material;\n}\n"),ReflectionWaterVS="in vec3 position3DHigh;\nin vec3 position3DLow;\nin vec3 normal;\nin vec2 st;\nin float batchId;\n\nout vec3 v_positionEC;\nout vec3 v_normalEC;\nout vec2 v_st;\n\nuniform mat4 reflectorProjectionMatrix;\nuniform mat4 reflectorViewMatrix;\nuniform mat4 reflectMatrix;\nout vec4 v_worldPosition; // 世界坐标\nout vec4 v_uv; // 纹理坐标\n\nvoid main() {\n vec4 p = czm_computePosition();\n\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n v_normalEC = czm_normal * normal; // normal in eye coordinates\n v_st = st;\n\n mat4 modelView = reflectorViewMatrix * reflectMatrix * czm_model;\n modelView[3][0] = 0.0;\n modelView[3][1] = 0.0;\n modelView[3][2] = 0.0;\n v_uv = reflectorProjectionMatrix * modelView * p;\n vec4 positionMC = vec4(position3DHigh + position3DLow, 1.0);\n v_worldPosition = czm_model * positionMC;\n\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\n}\n",ReflectionWater=function(){var e=3159,t=3545,i=2385,a=3234,n=2385,s=3062,r=3060,o=2538,l=3060,c=2482,h=4057,u=929,_=1124,p=2990,m=1105,d=1253,f=3899,y=1345,v=673,g=2952,C=2510,x=2028,b=784,k=3605,P=3060,H=2391,F=3978,N=3641,G=3978,w=784,z=3446,S=3023,T=784,B=784,M=3023,j=1346,V=3023,$=3037,U=2785,W=3060,E=624,J=4102,q=2018,Y=941,A=1851,Z=899,X=1345,Q=2253,K=3342,ee=2528,te=941,ie=941,ae=3159,ne=3953,se=3978,re=3060,oe=3342,le=2785,L=347,ce=2785,he=2785,ue=2425,_e=3974,pe=3857,me=3118,de=1529,fe=2952,ye=1488,ve=1865,ge=2517,Ce=1246,xe=842,be=2885,ke=850,Pe=2745,we=3058,Se=3159,Te=3428,Me=2360,Ee=2885,Ae=998,Le=3342,D=2785,De=1937,I=347,Ie=347,Oe=347,O=_0x1658de,Re=(_inherits(R,PolygonPrimitive),_createSuper(R));function R(){var e=_0x236b;return _classCallCheck(this,R),Re[e(2026)](this,arguments)}return _createClass(R,[{key:O(e),get:function(){return this._height},set:function(e){var t=O,e=(this._height=e,Cesium__namespace[t(Te)][t(3258)](this._originalreflectorWorldPosition)),e=Cesium__namespace[t(784)][t(2874)](e.longitude,e[t(Me)],this._height),i=Cesium__namespace.Cartesian3[t(3446)](e,this._originalreflectorWorldPosition,new Cesium__namespace[t(784)]),i=Cesium__namespace[t(3342)].fromTranslation(i);this[t(Ee)][t(1436)]=i,this[t(3978)]=e,this[t(1964)]=Cesium__namespace.Ellipsoid[t(Ae)].geodeticSurfaceNormal(this[t(3978)]),this._waterPlane=Cesium__namespace.Plane.fromPointNormal(this[t(3978)],this._normal),this._reflectMatrix=new Cesium__namespace[t(Le)](-2*this._waterPlane.normal.x*this._waterPlane[t(2785)].x+1,-2*this._waterPlane[t(D)].x*this._waterPlane.normal.y,-2*this[t(347)].normal.x*this._waterPlane[t(D)].z,-2*this._waterPlane.normal.x*this._waterPlane[t(De)],-2*this._waterPlane.normal.y*this[t(I)].normal.x,-2*this._waterPlane.normal.y*this[t(I)].normal.y+1,-2*this._waterPlane.normal.y*this._waterPlane.normal.z,-2*this._waterPlane.normal.y*this[t(347)].distance,-2*this[t(Ie)].normal.z*this[t(Oe)].normal.x,-2*this._waterPlane.normal.z*this._waterPlane.normal.y,-2*this._waterPlane.normal.z*this._waterPlane.normal.z+1,-2*this._waterPlane[t(2785)].z*this._waterPlane.distance,0,0,0,1)}},{key:"_updateStyleHook",value:function(e,t){var i=O;Cesium__namespace.defined(t.color)&&(this._material.uniforms[i(ke)]=getCesiumColor(e[i(Pe)],Cesium__namespace.Color.fromCssColorString("#001e0f"))),Cesium__namespace.defined(t[i(2098)])&&(this._material.uniforms.waterAlpha=e[i(2098)]),Cesium__namespace.defined(t.reflectivity)&&(this._material.uniforms[i(3701)]=e.reflectivity),Cesium__namespace.defined(t.lightDirection)&&(this[i(1094)].uniforms[i(we)]=e.lightDirection),Cesium__namespace.defined(t.shiny)&&(this._material.uniforms.shiny=e[i(2633)]),Cesium__namespace[i(3277)](t.distortion)&&(this[i(1094)][i(1998)].distortion=e.distortion),Cesium__namespace.defined(t.height)&&(this[i(Se)]=t.height)}},{key:"_addedHook",value:function(e){var t=O;this.show&&this[t(1980)]&&0!==this.positions.length&&(this[t(611)](),this._createPrimitive(e),this[t(3426)]())}},{key:"_removedHook",value:function(){var e=O;this.unbindUpdateEvent(),this._primitive&&(this.primitiveCollection.remove(this._primitive),delete this[e(2885)]),this._destroyResource(),this._unbindFun()}},{key:"_createPrimitive",value:function(e){var t=O,i=this[t(3216)](e),a=(i[t(3830)]=Cesium__namespace[t(2170)].POSITION_NORMAL_AND_ST,0),a=Cesium__namespace[t(3277)](this.style[t(3159)])?this[t(2492)][t(ae)]:getMaxHeight(this[t(1980)]),a=(this._height=a,this._reflectorWorldPosition=this[t(1494)],this[t(ne)]=this[t(se)][t(re)](),this._normal=Cesium__namespace.Ellipsoid.WGS84[t(1766)](this._reflectorWorldPosition),this._waterPlane=Cesium__namespace.Plane[t(1423)](this._reflectorWorldPosition,this._normal),this._reflectMatrix=new Cesium__namespace[t(oe)](-2*this._waterPlane[t(2785)].x*this._waterPlane.normal.x+1,-2*this._waterPlane[t(le)].x*this._waterPlane.normal.y,-2*this._waterPlane.normal.x*this._waterPlane.normal.z,-2*this[t(L)].normal.x*this._waterPlane.distance,-2*this[t(347)].normal.y*this._waterPlane[t(2785)].x,-2*this[t(L)][t(ce)].y*this._waterPlane.normal.y+1,-2*this._waterPlane.normal.y*this._waterPlane.normal.z,-2*this[t(L)].normal.y*this._waterPlane.distance,-2*this[t(347)].normal.z*this._waterPlane.normal.x,-2*this._waterPlane.normal.z*this[t(347)][t(he)].y,-2*this._waterPlane.normal.z*this[t(L)].normal.z+1,-2*this._waterPlane[t(2785)].z*this._waterPlane.distance,0,0,0,1),this[t(ue)]=Cesium__namespace.Matrix4.IDENTITY.clone(),this[t(3972)]=Cesium__namespace.Matrix4.IDENTITY.clone(),this._map.scene[t(_e)]),n=(this[t(pe)](a,a.drawingBufferWidth,a.drawingBufferHeight,this._map[t(me)].highDynamicRange),new Cesium__namespace[t(1345)]({context:a,source:{width:1,height:1,arrayBufferView:new Uint8Array([255,0,0,255])},sampler:new Cesium__namespace[t(de)]({wrapS:Cesium__namespace[t(826)].REPEAT,wrapT:Cesium__namespace.TextureWrap.REPEAT,minificationFilter:Cesium__namespace[t(fe)].LINEAR,magnificationFilter:Cesium__namespace[t(2952)].LINEAR})})),s=(n[t(ye)]="sampler2D",Cesium__namespace.Texture.fromFramebuffer({context:a,framebuffer:this[t(ve)]})),r=(s.type="sampler2D",new Cesium__namespace[t(ge)]({fabric:{type:"ReflectionWater",uniforms:{waterColor:getCesiumColor(e.color,Cesium__namespace.Color.fromCssColorString("#001e0f")),waterAlpha:null!=(r=e[t(2098)])?r:.9,globalAlpha:1,ripple:null!=(r=e.ripple)?r:50,reflectivity:null!=(r=e[t(3701)])?r:.5,lightDirection:null!=(r=e.lightDirection)?r:new Cesium__namespace.Cartesian3(0,0,1),shiny:null!=(r=e.shiny)?r:100,distortion:null!=(r=e.distortion)?r:3.7,normalTexture:n,reflexTexture:s,time:0,fixedFrameToEastNorthUpTransform:Cesium__namespace.Matrix4.toArray(this[t(Ce)]())},source:ReflectionWaterFS},translucent:!1,minificationFilter:Cesium__namespace.TextureMinificationFilter.LINEAR,magnificationFilter:Cesium__namespace[t(xe)].LINEAR})),s=(addTextureUniform({material:r,context:a,uniformName:"normalTexture",image:null!=(n=e.normalMap)?n:"/img/textures/waterNormals.jpg"}),this[t(1094)]=r,new Cesium__namespace.MaterialAppearance({material:r,vertexShaderSource:ReflectionWaterVS,translucent:!0})),a=(s.uniforms={},s.uniforms[t(522)]=Cesium__namespace.Matrix4.toArray(this._reflectMatrix),s.uniforms.reflectorProjectionMatrix=Cesium__namespace.Matrix4.toArray(this._reflectorProjectionMatrix),s.uniforms.reflectorViewMatrix=Cesium__namespace.Matrix4[t(1326)](this._reflectorViewMatrix),{geometryInstances:this._createGeometryInstance(i),appearance:s,asynchronous:!1,show:this.show});this[t(be)]=this.primitiveCollection.add(new Cesium__namespace.Primitive(a))}},{key:"update",value:function(e){var t,i,a,n,s=O,r=this[s(3817)].scene,o=r._defaultView.camera,l=r.shadowMap,c=r.globe.show,h=r.globe[s(E)],u=r.logarithmicDepthBuffer;this[s(J)](r._defaultView[s(q)])?(this._primitive.show=!1,r[s(1165)].camera=this._virtualCamera,r.shadowMap=void 0,r[s(941)].show=!1,r[s(Y)][s(E)]=!1,r[s(A)]=!1,a=(t=r.context)[s(2592)],n=t[s(3822)],i=r[s(Z)],this[s(3857)](t,a,n,i),render(r,this._colorFramebuffer),a=this._primitive.appearance,(n=Cesium__namespace[s(X)][s(Q)]({context:t,framebuffer:this[s(1865)]})).type="sampler2D",this[s(1094)].uniforms[s(617)]=n,this._material[s(1998)].time=performance.now()/1e3,this._material.uniforms.fixedFrameToEastNorthUpTransform=Cesium__namespace[s(K)][s(1326)](this._getFixedFrameToEastNorthUpTransformFromWorldMatrix()),a.uniforms[s(522)]=Cesium__namespace.Matrix4.toArray(this._reflectMatrix),a.uniforms.reflectorProjectionMatrix=Cesium__namespace.Matrix4.toArray(this._reflectorProjectionMatrix),a.uniforms.reflectorViewMatrix=Cesium__namespace[s(3342)].toArray(this._reflectorViewMatrix),this._primitive.show=!0,r._defaultView.camera=o,r[s(ee)]=l,r[s(te)].show=c,r[s(ie)][s(624)]=h,r[s(A)]=u):this[s(2885)].show=!1}},{key:"_updateVirtualCamera",value:function(e){var t=O,i=new Cesium__namespace[t(b)](0,0,-1),a=new Cesium__namespace.Cartesian3,n=(this[t(3023)]=Cesium__namespace[t(1075)].clone(e,this._virtualCamera),e[t(2142)].clone()),s=Cesium__namespace[t(b)].subtract(this._reflectorWorldPosition,n,new Cesium__namespace[t(b)]);if(0<Cesium__namespace.Cartesian3.dot(s,this._normal))return!1;s=getReflectVector(s,this._normal),Cesium__namespace.Cartesian3[t(3641)](s,s),Cesium__namespace.Cartesian3[t(k)](s,this._reflectorWorldPosition,s),this._virtualCamera.position=s[t(P)](),Cesium__namespace.Cartesian3.add(e[t(H)],n,i),Cesium__namespace.Cartesian3.subtract(this[t(F)],i,a),a=getReflectVector(a,this._normal),Cesium__namespace[t(784)][t(N)](a,a),Cesium__namespace.Cartesian3.add(a,this[t(G)],a),this._virtualCamera.direction=Cesium__namespace[t(w)][t(z)](a,this._virtualCamera[t(2532)],new Cesium__namespace.Cartesian3),Cesium__namespace[t(w)].normalize(this._virtualCamera.direction,this[t(S)].direction),Cesium__namespace[t(T)].add(e.upWC,n,i),Cesium__namespace[t(w)].subtract(this._reflectorWorldPosition,i,a),a=getReflectVector(a,this._normal),Cesium__namespace[t(784)].negate(a,a),Cesium__namespace[t(B)].add(a,this._reflectorWorldPosition,a),this._virtualCamera.up=Cesium__namespace.Cartesian3.subtract(a,this[t(M)].position,new Cesium__namespace.Cartesian3),Cesium__namespace[t(T)][t(j)](this._virtualCamera.up,this._virtualCamera.up),this._reflectorProjectionMatrix=this._virtualCamera[t(378)].projectionMatrix,this._reflectorViewMatrix=this._virtualCamera.viewMatrix;s=Cesium__namespace.Plane.fromPointNormal(this[t(3978)],this._normal),Cesium__namespace[t(2577)].transform(s,this[t(V)][t($)],s),e=new Cesium__namespace.Cartesian4(s.normal.x,s.normal.y,s[t(U)].z,s.distance),n=Cesium__namespace[t(3342)][t(W)](this[t(S)].frustum.projectionMatrix),i=new Cesium__namespace.Cartesian4((Math[t(559)](e.x)+n[8])/n[0],(Math.sign(e.y)+n[9])/n[5],-1,(1+n[10])/n[14]);Cesium__namespace.Cartesian4.multiplyByScalar(e,2/Cesium__namespace.Cartesian4[t(2846)](e,i),e);return n[2]=e.x,n[6]=e.y,n[10]=+(e.z+1),n[14]=e.w,this[t(M)].frustum.customProjectionMatrix=Cesium__namespace.Matrix4.clone(n),!0}},{key:"_getFixedFrameToEastNorthUpTransformFromWorldMatrix",value:function(){var e=O,t=Cesium__namespace[e(C)].eastNorthUpToFixedFrame(this._reflectorWorldPosition);return Cesium__namespace[e(3342)][e(x)](t,new Cesium__namespace[e(3342)])}},{key:"_createFramebuffer",value:function(e,t,i,a){var n=O,s=this._colorTexture;Cesium__namespace.defined(s)&&s.width===t&&s[n(3159)]===i&&this[n(d)]===a||(this._destroyResource(),s=(this._hdr=a)?e[n(3663)]?Cesium__namespace.PixelDatatype[n(454)]:Cesium__namespace.PixelDatatype.FLOAT:Cesium__namespace[n(f)].UNSIGNED_BYTE,this._colorTexture=new Cesium__namespace[n(y)]({context:e,width:t,height:i,pixelFormat:Cesium__namespace.PixelFormat[n(v)],pixelDatatype:s,sampler:new Cesium__namespace.Sampler({wrapS:Cesium__namespace.TextureWrap.CLAMP_TO_EDGE,wrapT:Cesium__namespace[n(826)].CLAMP_TO_EDGE,minificationFilter:Cesium__namespace[n(g)].LINEAR,magnificationFilter:Cesium__namespace[n(842)].LINEAR})}),this._depthStencilTexture=new Cesium__namespace[n(y)]({context:e,width:t,height:i,pixelFormat:Cesium__namespace.PixelFormat.DEPTH_STENCIL,pixelDatatype:Cesium__namespace.PixelDatatype.UNSIGNED_INT_24_8}),this._colorFramebuffer=new Cesium__namespace.Framebuffer({context:e,colorTextures:[this[n(2462)]],depthStencilTexture:this._depthStencilTexture,destroyAttachments:!1}))}},{key:O(t),value:function(){var e=O;this._colorTexture&&this._colorTexture.destroy(),this._colorTexture=void 0,this._depthStencilTexture&&this._depthStencilTexture.destroy(),this[e(m)]=void 0,this._colorFramebuffer&&this[e(1865)][e(1553)](),this._colorFramebuffer=void 0}},{key:"_bindFun",value:function(){var i=O,t=(this[i(3544)]=Cesium__namespace[i(a)].prototype[i(3586)],Cesium__namespace.UniformState.prototype[i(3586)]=function(e){var t=i;Cesium__namespace.Matrix4[t(r)](Cesium__namespace[t(553)](e.customProjectionMatrix,e.projectionMatrix),this[t(o)]),this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._inverseViewProjectionDirty=!0,this._modelViewProjectionDirty=!0,this._modelViewProjectionRelativeToEyeDirty=!0,Cesium__namespace[t(3277)](e.infiniteProjectionMatrix)&&(Cesium__namespace.Matrix4[t(l)](e.infiniteProjectionMatrix,this._infiniteProjection),this[t(c)]=!0),this[t(h)].x=e[t(u)],this._currentFrustum.y=e.far,this._farDepthFromNearPlusOne=e.far-e.near+1,this._log2FarDepthFromNearPlusOne=Cesium__namespace[t(_)].log2(this[t(3214)]),this[t(3343)]=1/this._log2FarDepthFromNearPlusOne,Cesium__namespace.defined(e._offCenterFrustum)&&(e=e[t(393)]),this[t(p)].x=e.top,this._frustumPlanes.y=e.bottom,this._frustumPlanes.z=e.left,this._frustumPlanes.w=e.right},Cesium__namespace[i(3062)][i(n)][i(3060)]);Cesium__namespace[i(s)].prototype[i(3060)]=function(e){return(e=t.bind(this)(e)).customProjectionMatrix=this.customProjectionMatrix,e},this._PerspectiveFrustum_clone_old=t}},{key:"_unbindFun",value:function(){var e=O;Cesium__namespace.UniformState[e(i)].updateFrustum=this._UniformState_updateFrustum_old,Cesium__namespace.PerspectiveFrustum.prototype.clone=this._PerspectiveFrustum_clone_old}},{key:"_getDrawEntityClass",value:function(e,t){return e.style.materialType="Water",create$4("polygon",e)}}]),R}(),scratchBackgroundColor=(register$4("reflectionWater",ReflectionWater),new Cesium__namespace[_0x1658de(3096)]),renderTilesetPassState=new Cesium__namespace.Cesium3DTilePassState({pass:Cesium__namespace[_0x1658de(1510)].RENDER});function render(e,t){var i=3974,a=3406,n=2827,s=3665,r=1284,o=3641,l=2070,c=3169,h=3822,u=3277,_=941,p=_0x1658de,m=e[p(1172)],i=e[p(i)],d=i.uniformState,f=e._defaultView,a=(e[p(a)]=f,e.updateFrameState(),m.passes.render=!0,m.passes.postProcess=e.postProcessStages.hasSelected,m.tilesetPassState=renderTilesetPassState,null!=(a=e.backgroundColor)?a:Cesium__namespace.Color[p(n)]),n=(e[p(1253)]&&((a=Cesium__namespace[p(3096)].clone(a,scratchBackgroundColor)).red=Math.pow(a.red,e[p(s)]),a[p(1284)]=Math[p(2127)](a[p(r)],e.gamma),a.blue=Math.pow(a[p(1155)],e.gamma)),m.backgroundColor=a,e.fog.update(m),d.update(m),e.shadowMap),s=(Cesium__namespace.defined(n)&&n[p(3463)]&&(!Cesium__namespace.defined(e.light)||e.light instanceof Cesium__namespace.SunLight?Cesium__namespace.Cartesian3[p(o)](d.sunDirectionWC,e._shadowMapCamera[p(l)]):Cesium__namespace.Cartesian3.clone(e.light.direction,e._shadowMapCamera.direction),m.shadowMaps.push(n)),e._computeCommandList.length=0,e._overlayCommandList[p(2822)]=0,f[p(c)]),r=(s.x=0,s.y=0,s.width=i.drawingBufferWidth,s[p(3159)]=i[p(h)],f[p(3695)]);r.framebuffer=t,r.blendingEnabled=void 0,r.scissorTest=void 0,r.viewport=Cesium__namespace.BoundingRectangle.clone(s,r.viewport),Cesium__namespace[p(u)](e[p(_)])&&e.globe.beginFrame(m),e.updateEnvironment(),e.updateAndExecuteCommands(r,a),e.resolveFramebuffers(r),Cesium__namespace[p(3277)](e[p(941)])&&(e.globe.endFrame(m),!e.globe.tilesLoaded)&&(e._renderRequested=!0),i.endFrame()}var BaseCombine=function(){var n=1579,r=2822,o=1592,l=2532,c=1018,h=3539,u=3178,i=2936,a=430,s=430,_=430,p=1205,m=1980,d=1018,t=3539,f=_0x1658de,e=(_inherits(y,BasePrimitive),_createSuper(y));function y(){return _classCallCheck(this,y),e.apply(this,arguments)}return _createClass(y,[{key:"instances",get:function(){var e=_0x236b;return this.options[e(t)]||[]},set:function(e){this.options.instances=e,this._rectangle=null,this.redraw()}},{key:f(1300),value:function(e){var t=f,e=e.split("#");return 2!==e[t(2822)]?null:(e=Number(e[1]),this[t(3539)][e])}},{key:f(1579),value:function(e){return this.id+"#"+e}},{key:"_createGeometryInstance",value:function(e,t){var i=f;if(this.options.geometryInstances)return this.options[i(915)];for(var a=[],n=this.instances,s=0;s<n.length;s++){var r=n[s];r.id=this.createPickId(s),a[i(d)](r)}return a}},{key:"getRectangle",value:function(e){var t=f;if(!this._rectangle)for(var i=this.options.instances||[],a=0;a<i.length;a++){var n=i[a];n.position&&(n.position=LngLatPoint.parse(n.position)[t(3600)](),this._unionRectangle([n[t(2532)]])),n[t(1980)]&&(n.positions=LngLatArray.toCartesians(n.positions),this[t(p)](n[t(m)]))}return null!=e&&e.isFormat?formatRectangle(this._rectangle):this._rectangle}},{key:"_unionRectangle",value:function(e){var t=f,e=Cesium__namespace.Rectangle[t(i)](e);Cesium__namespace.defined(e)&&(Cesium__namespace.defined(this[t(a)])?this[t(s)]=Cesium__namespace.Rectangle[t(2019)](e,this[t(_)]):this[t(430)]=e)}},{key:"toJSON",value:function(){for(var e=f,t=_objectSpread2(_objectSpread2({},getAttrVal(this[e(o)],{onlySimpleType:!0})),{},{type:this.type}),i=(this.options.style&&(t.style=this._style2JsonBase(this.options.style,!1)),[]),a=0;a<this[e(3539)].length;a++){var n=this.instances[a],s={attr:n.attr,style:this._style2JsonBase(n.style,!1)};n.position?s[e(l)]=LngLatPoint.toArray(n[e(2532)]):n.positions&&(s.positions=LngLatArray.toArray(n[e(1980)])),i[e(c)](s)}return t[e(h)]=i,this[e(u)]&&this._toJSON_Ex(t),t}},{key:"toGeoJSON",value:function(e){for(var t=f,i=[],a=0;a<this[t(3539)][t(r)];a++){var n=this.instances[a],s={type:t(1196),properties:_objectSpread2(_objectSpread2({},n.attr),{},{type:this.type,style:this._style2JsonBase(n.style,!0)})};this._getGeoJsonGeometry?s.geometry=this._getGeoJsonGeometry(n,e):n.position?s.geometry={type:t(3308),coordinates:LngLatPoint[t(1326)](n[t(2532)],null==e?void 0:e[t(2297)])}:n.positions&&(s.geometry={type:"LineString",coordinates:LngLatArray.toArray(n.positions,null==e?void 0:e[t(2297)])}),i.push(s)}return i}},{key:"flyTo",value:function(e){var t=f,i=this.getRectangle();return this._map&&i?this[t(3817)].flyToExtent(i,e):Promise.resolve(!1)}},{key:"setColorStyle",value:function(e,t){var i=f;if(Cesium__namespace.defined(t))this._setColorStyleItem(t,e);else for(var a=0;a<this[i(1592)].instances.length;a++)this._setColorStyleItem(a,e)}},{key:"_setColorStyleItem",value:function(e,t){var i=f,a=this.getGeometryInstanceAttributes(this[i(n)](e));a&&(e=this.options.instances[e],e=getColorByStyle(_objectSpread2(_objectSpread2(_objectSpread2({},this.style),e.style||{}),t)),a.color=Cesium__namespace.ColorGeometryInstanceAttribute[i(698)](e))}}]),y}(),FlatBillboardFS=(BaseCombine.isCombine=!0,_0x1658de(2508)),FlatBillboardVS=_0x1658de(3179),DEF_STYLE$8={angle:0,width:50},FlatBillboard=function(){var y=3712,v=491,g=1750,C=2218,x=2597,b=927,k=819,P=2638,w=2381,S=3170,T=2798,M=1650,E=712,_=1592,p=1018,m=1018,d=1018,f=1018,A=1018,L=2073,D=2581,I=3437,O=1346,R=784,H=807,t=2260,a=2822,n=2260,F=2822,N=3170,G=1018,s=425,r=2822,o=3605,c=2532,h=3917,u=1083,i=1549,B=3817,j=3539,V=3600,$=3177,U=970,W=3646,J=3465,q=3817,Y=1592,Z=1592,X=3646,Q=3539,K=3817,ee=3133,te=2065,ie=3475,ae=2866,z=_0x1658de,ne=(_inherits(l,BaseCombine),_createSuper(l));function l(){var e,t=_0x236b,i=0<arguments[t(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),i.style=_objectSpread2(_objectSpread2({},DEF_STYLE$8),i.style||{}),(e=ne.call(this,i)).distanceDisplayCondition=null!=(i=i.distanceDisplayCondition)?i:new Cesium__namespace[t(3622)](0,5e6),e._globalAlpha=1,e}return _createClass(l,[{key:"billboardCollection",get:function(){var e,t=_0x236b;return null==(e=this._layer)?void 0:e[t(ae)]}},{key:"distanceDisplayCondition",get:function(){return this._distanceDisplayCondition},set:function(e){var t=_0x236b;this._distanceDisplayCondition=e,this[t(3370)]=new Cesium__namespace[t(2638)](e.near,e[t(854)])}},{key:"_addedHook",value:function(e){var t,i=_0x236b;this[i(4045)]&&(t=(null!=(t=this[i(1592)][i(J)])?t:1)*this[i(q)].viewer.resolutionScale,0<this[i(Y)].instances.length&&this[i(Z)].instances[0].style.width?this._pointSize=t*this.options.instances[0].style[i(696)]:this._pointSize=t*this.options[i(2492)].width,this.textures={},this[i(X)]=new Cesium__namespace.Texture({context:this[i(3817)].scene.context,width:500,height:500}),this.options[i(Q)]&&this.redraw(),this[i(K)].on(EventType[i(ee)],this[i(te)],this),this[i(ie)].add(this))}},{key:"_removedHook",value:function(){var e=_0x236b;this._map.off(EventType.morphComplete,this._onMorphComplete,this),this.clear(),this[e(W)].destroy(),delete this[e(3646)],this._noDestroy=!0,this.primitiveCollection[e(4071)](this),this._noDestroy=!1}},{key:"clear",value:function(){var e=_0x236b;this[e($)](),this[e(U)]()}},{key:"redraw",value:function(){var e=_0x236b;if(this[e(B)]){this.clear();var t=this[e(j)];if(t)for(var i=0,a=t.length;i<a;i++){var n=t[i];n.position=LngLatPoint[e(V)](n.position)}this._map.scene.mode===Cesium__namespace.SceneMode.SCENE3D?this._initCollectionBy3D():this._initCollectionBy2D()}}},{key:"_onMorphComplete",value:function(e){this[_0x236b(i)]()}},{key:"update",value:function(e){var t,i=_0x236b;this._map&&(this.show?e.mode===Cesium__namespace.SceneMode[i(3965)]?e.passes.render?this._drawCommands&&(t=e[i(2829)]).push.apply(t,_toConsumableArray(this._drawCommands)):this._pickCommands&&(t=e.commandList).push.apply(t,_toConsumableArray(this._pickCommands)):this.billboardCollection||this[i(u)]():this._removeCollectionBy2D())}},{key:z(1083),value:function(){var e=z,t=this.instances;if(t){this._billboard2DList=[];for(var i=0,a=t.length;i<a;i++){var n=t[i],s=_objectSpread2(_objectSpread2({},this.options.style),n.style),n=this.billboardCollection[e(o)]({id:this.createPickId(i),position:n[e(c)],image:s.image,scale:1,rotation:Cesium__namespace.Math[e(2581)](s.angle||0),width:s.width,height:s.height||s[e(696)]});this[e(h)](n),this._billboard2DList.push(n)}}}},{key:"_removeCollectionBy2D",value:function(){var e=z;if(this[e(2866)]&&this[e(s)]){for(var t=this[e(425)][e(r)]-1;0<=t;t--){var i=this._billboard2DList[t];this.billboardCollection.remove(i)}this[e(425)]=[]}}},{key:"_initCollectionBy3D",value:function(){var e=z,t=this[e(3539)];if(t){for(var i={},a=0,n=t[e(F)];a<n;a++){var s=t[a],r=(s[e(N)]=a,null==(r=s.style)?void 0:r[e(613)]);r&&(i[r]||(i[r]=[]),i[r][e(G)](s))}var o,l=[];for(o in i){var c,h=i[o],u=o,_=(this.prepareTexture(u),_createForOfIteratorHelper(h));try{for(_.s();!(c=_.n())[e(2824)];){var p=c.value,m=this.createDrawCommand(u,p);l[e(G)](m)}}catch(e){_.e(e)}finally{_.f()}}this._drawCommands=l}}},{key:"_removeCollectionBy3D",value:function(){var e,i=z;for(e in this._drawCommands&&0<this[i(t)][i(a)]&&(this[i(n)].forEach(function(e){var t=i;e.vertexArray&&e.vertexArray.destroy(),e[t(796)]&&e.shaderProgram.destroy()}),delete this[i(t)]),this._pickCommands&&0<this._pickCommands.length&&(this._pickCommands.forEach(function(e){e.vertexArray&&e.vertexArray.destroy(),e.shaderProgram&&e.shaderProgram.destroy()}),delete this[i(2964)]),this.textures)this[i(3301)][e]&&this[i(3301)][e].destroy();this.textures={}}},{key:"prepareTexture",value:function(i){var a=this,n=new Image;n.onload=function(e){var t=new Cesium__namespace.Texture({context:a._map.scene.context,source:n});a.textures[i]=t},n.src=i}},{key:"prepareVAO",value:function(e){for(var t=z,i=[],a=[],n=[],s=[],r=[],o=0,l=e.length;o<l;o++){var c=e[o],h=c.position,c=_objectSpread2(_objectSpread2({},this[t(_)].style),c.style),u=(n.push(4*o+0),n.push(4*o+2),n.push(4*o+1),n.push(4*o+0),n.push(4*o+3),n.push(4*o+2),new Float32Array(6)),u=(u[0]=h.x,u[1]=h.x-u[0],u[2]=h.y,u[3]=h.y-u[2],u[4]=h.z,u[5]=h.z-u[4],i.push(u[0]),i[t(p)](u[2]),i[t(1018)](u[4]),a[t(p)](u[1]),a.push(u[3]),a.push(u[5]),i[t(m)](u[0]),i.push(u[2]),i.push(u[4]),a[t(d)](u[1]),a.push(u[3]),a.push(u[5]),i.push(u[0]),i.push(u[2]),i.push(u[4]),a[t(1018)](u[1]),a.push(u[3]),a.push(u[5]),i.push(u[0]),i.push(u[2]),i[t(1018)](u[4]),a.push(u[1]),a.push(u[3]),a[t(f)](u[5]),s[t(A)](0,0),s.push(0,1),s[t(p)](1,1),s.push(1,0),Cesium__namespace.Transforms[t(L)](h)),h=c[t(3879)]||0,h=Cesium__namespace.Matrix3.fromRotationZ(Cesium__namespace[t(1124)][t(D)](h)),h=Cesium__namespace.Matrix4[t(I)](h),u=Cesium__namespace.Matrix4.multiply(u,h,new Cesium__namespace.Matrix4),h=(c[t(3159)]||c.width)/c.width,c=new Cesium__namespace.Cartesian3(-1,-h,0),c=(Cesium__namespace.Matrix4.multiplyByPointAsVector(u,c,c),Cesium__namespace.Cartesian3.normalize(c,c),r.push(c.x,c.y,c.z),new Cesium__namespace.Cartesian3(-1,h,0)),c=(Cesium__namespace.Matrix4.multiplyByPointAsVector(u,c,c),Cesium__namespace.Cartesian3.normalize(c,c),r.push(c.x,c.y,c.z),new Cesium__namespace.Cartesian3(1,h,0)),c=(Cesium__namespace.Matrix4.multiplyByPointAsVector(u,c,c),Cesium__namespace.Cartesian3[t(O)](c,c),r.push(c.x,c.y,c.z),new Cesium__namespace[t(R)](1,-h,0));Cesium__namespace.Matrix4.multiplyByPointAsVector(u,c,c),Cesium__namespace.Cartesian3.normalize(c,c),r.push(c.x,c.y,c.z)}return{index:new Uint16Array(n),vertex_H:{values:new Float32Array(i),componentDatatype:"DOUBLE",componentsPerAttribute:3},vertex_L:{values:new Float32Array(a),componentDatatype:"DOUBLE",componentsPerAttribute:3},uv:{values:new Float32Array(s),componentDatatype:t(H),componentsPerAttribute:2},color:{values:new Float32Array(r),componentDatatype:"FLOAT",componentsPerAttribute:3}}}},{key:"createDrawCommand",value:function(t,e){var i=3370,a=z,n=this,s=this._map.scene.context,r=null!=(r=this.options[a(3812)])&&r,o=Cesium__namespace[a(y)][a(v)]({depthTest:{enabled:!0,func:r?Cesium__namespace.WebGLConstants.LEQUAL:Cesium__namespace.WebGLConstants[a(g)]},depthMask:r,blending:Cesium__namespace.BlendingState[a(2102)]}),l={position3DHigh:0,position3DLow:1,color:2,st:3},c=Cesium__namespace[a(1200)].fromCache({context:s,vertexShaderSource:FlatBillboardVS,fragmentShaderSource:FlatBillboardFS,attributeLocations:l}),h=this[a(1437)]([e]),u=Cesium__namespace.Buffer.createIndexBuffer({context:s,typedArray:h.index,usage:Cesium__namespace.BufferUsage.STATIC_DRAW,indexDatatype:Cesium__namespace.IndexDatatype[a(C)]}),u=new Cesium__namespace.VertexArray({context:s,attributes:[{index:0,vertexBuffer:Cesium__namespace.Buffer.createVertexBuffer({context:s,typedArray:h.vertex_H.values,usage:Cesium__namespace[a(x)].STATIC_DRAW}),componentsPerAttribute:3},{index:1,vertexBuffer:Cesium__namespace.Buffer[a(3232)]({context:s,typedArray:h.vertex_L.values,usage:Cesium__namespace.BufferUsage.STATIC_DRAW}),componentsPerAttribute:3},{index:2,vertexBuffer:Cesium__namespace.Buffer.createVertexBuffer({context:s,typedArray:h[a(2745)][a(b)],usage:Cesium__namespace.BufferUsage[a(k)]}),componentsPerAttribute:3},{index:3,vertexBuffer:Cesium__namespace.Buffer.createVertexBuffer({context:s,typedArray:h.uv[a(927)],usage:Cesium__namespace[a(2597)].STATIC_DRAW}),componentsPerAttribute:2}],indexBuffer:u}),_=this[a(3817)][a(3118)].camera,p=s.drawingBufferWidth,m=s.drawingBufferHeight,d=new Cesium__namespace[a(P)](p,m),p=Cesium__namespace[a(3481)].fromVertices(h.vertex_H.values),f=(p.radius=1e4,new Cesium__namespace.DrawCommand({primitiveType:Cesium__namespace.PrimitiveType.TRIANGLES,shaderProgram:c,vertexArray:u,modelMatrix:Cesium__namespace.Matrix4.IDENTITY,renderState:o,boundingVolume:p,uniformMap:{mars_orthographicMatrix:function(){var e=a;return _.frustum[e(393)]?null==(e=_.frustum._offCenterFrustum)?void 0:e._perspectiveMatrix:_.frustum._orthographicMatrix},mars_viewMatrix:function(){return _._viewMatrix},mars_resolution:function(){return d},mars_pointSize:function(){return n._pointSize},mars_image:function(){var e=a;return n.textures[t]||n[e(3646)]},mars_distanceDisplayCondition:function(){return n[a(i)]},mars_positionWC:function(){return _.positionWC},globalAlpha:function(){return n._globalAlpha}},castShadows:!1,receiveShadows:!1,pass:r?Cesium__namespace.Pass.TRANSLUCENT:Cesium__namespace.Pass.OPAQUE,pickOnly:!0,pickCommand:new Cesium__namespace[a(w)]({owner:this,pickOnly:!0})})),m=(this.bindPickId(f),f.pickId=s.createPickId({primitive:f,id:this.createPickId(e[a(S)])}),new Cesium__namespace.DrawCommand({owner:f,primitiveType:Cesium__namespace.PrimitiveType.TRIANGLES,pickOnly:!0})),h=(m.vertexArray=u,m.renderState=o,Cesium__namespace[a(1200)][a(v)]({context:s,vertexShaderSource:FlatBillboardVS,fragmentShaderSource:Cesium__namespace[a(988)].createPickFragmentShaderSource(FlatBillboardFS,a(T)),attributeLocations:l}));return m[a(796)]=h,m.uniformMap=f[a(1650)],m[a(M)].czm_pickColor=function(){return f.pickId.color},m.pass=r?Cesium__namespace[a(E)].TRANSLUCENT:Cesium__namespace.Pass.OPAQUE,m.boundingVolume=p,m.modelMatrix=Cesium__namespace.Matrix4[a(3886)],this[a(2964)]||(this._pickCommands=[]),this._pickCommands.push(m),f}},{key:"setOpacity",value:function(e){this._globalAlpha=e}}]),l}(),ModelCombine=(register$4("flatBillboard",FlatBillboard,!0),function(){var r=2581,o=1124,l=3773,c=2429,h=2885,u=1592,_=3967,p=3236,m=4070,d=_0x1658de,e=(_inherits(t,BaseCombine),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:d(1312),get:function(){return!1}},{key:"_addedHook",value:function(i){var e,a=d,n=this;if(this.show){var t=this.instances;if(t&&0!==t.length){for(var s=[],r=0;r<t.length;r++){var o=t[r],o=(o.position=LngLatPoint.parse(o.position).toCartesian(),this[a(c)](o.position,o[a(2492)]));s[a(1018)]({batchId:this.createPickId(r),modelMatrix:o})}this[a(h)]=this.primitiveCollection.add(new Cesium__namespace.ModelInstanceCollection(_objectSpread2(_objectSpread2({},this[a(u)]),{},{url:this[a(1592)].url||(null==(e=t[0])||null==(e=e.style)?void 0:e.url),instances:s}))),this[a(h)].readyPromise[a(2589)](function(e){var t=a;e.activeAnimations[t(_)](_objectSpread2({loop:Cesium__namespace.ModelAnimationLoop.REPEAT},i)),n[t(p)]=!0,n.fire(EventType[t(m)],{drawtype:n.type,model:e,graphic:n},!0)}).catch(function(e){logError$1("ModelCombine:模型加载出错",e)})}}}},{key:"_style2JsonBase",value:function(e,t){e=getAttrVal(e,{onlySimpleType:!0});return t&&(e.url=this.options.url),e}},{key:"getModelMatrix",value:function(e,t){var i=d,a=Cesium__namespace.Math[i(r)](t.heading||0),n=Cesium__namespace[i(o)].toRadians(t.pitch||0),s=Cesium__namespace[i(1124)].toRadians(t.roll||0),e=Cesium__namespace[i(2510)].headingPitchRollToFixedFrame(e,new Cesium__namespace.HeadingPitchRoll(a,n,s)),a=t.scaleX||t.scale||1,n=t[i(l)]||t.scale||1,s=t.scaleZ||t.scale||1;return Cesium__namespace.Matrix4.multiplyByScale(e,new Cesium__namespace.Cartesian3(a,n,s),e),e}}]),t}()),BasePolyCombine=(register$4("modelCombine",ModelCombine),register$4("modelC",ModelCombine,!0),function(){var s=2492,a=1303,n=3185,r=1997,o=1303,l=1997,f=3539,y=1003,v=3277,g=2492,C=3535,x=3487,i=3483,c=1018,b=_0x1658de,e=(_inherits(h,BaseCombine),_createSuper(h));function h(){return _classCallCheck(this,h),e.apply(this,arguments)}return _createClass(h,[{key:"style",get:function(){var e,t=_0x236b;return 0<(null==(e=this.options.instances)?void 0:e.length)&&this.options.instances[0].style?_objectSpread2(_objectSpread2({},this[t(1592)].style||{}),this.options.instances[0].style):null==(e=this.options)?void 0:e.style},set:function(e){this.setStyle(e)}},{key:b(3671),value:function(e,t){for(var i=b,a=(this[i(430)]=null,this.translucent=!1,this[i(3539)]),n=[],s=0;s<a[i(2822)];s++){var r=a[s];r instanceof Cesium__namespace.GeometryInstance?(r.id=this[i(1579)](s),n.push(r)):(r=this._createGeometryInstanceItem(e,t,r))&&(r.id=this.createPickId(s),n[i(c)](r))}return n}},{key:"_createGeometryInstanceItem",value:function(e,t,i){}},{key:"_getPolylineOutlinePositions",value:function(e){var t=b;return e.positions?[LngLatArray[t(i)](e.positions)]:null}},{key:"_createPolylineOutline",value:function(e){for(var t,i=b,a=this[i(f)],n=[],s=0;s<a.length;s++){var r=a[s],o=void 0;if(r.style&&(Cesium__namespace.defined(r.style.outline)||Cesium__namespace.defined(r.style[i(y)])||Cesium__namespace[i(v)](r[i(2492)].outlineColor)||Cesium__namespace.defined(r[i(g)][i(1022)])||Cesium__namespace.defined(r.style.outlineWidth))){var l=this._getOutlineStyle(r[i(g)]);if(!l[i(4045)])continue;o=_objectSpread2(_objectSpread2({},e),l)}else o=e;(t=PolylineStyleConver.toCesiumVal(o)).material||(t[i(3830)]=Cesium__namespace.PolylineColorAppearance.VERTEX_FORMAT);var c=o.clampToGround?Cesium__namespace.GroundPolylineGeometry:Cesium__namespace.PolylineGeometry,h=null!=(l=t.color)?l:Cesium__namespace.Color.YELLOW[i(C)](.5),u=this._getPolylineOutlinePositions(r);if(!u)return;for(var _=0,p=u[i(2822)];_<p;_++){var m=u[_],m=(0<(m=Cesium__namespace[i(3277)](r.style.height)?setPositionsHeight(m,r[i(2492)].height):m).length&&(m=m.concat(m[0])),new Cesium__namespace[i(1016)]({geometry:new c(_objectSpread2(_objectSpread2({},t),{},{positions:m})),attributes:{color:Cesium__namespace.ColorGeometryInstanceAttribute.fromColor(h),distanceDisplayCondition:t.distanceDisplayCondition}}));n.push(m)}}var d=_objectSpread2(_objectSpread2({},this.options),{},{geometryInstances:n,show:this.show});return delete d.style,delete d.attr,this._isColorMaterial(e,t)?d.appearance=new Cesium__namespace[i(1369)](_objectSpread2({},t)):d.appearance=new Cesium__namespace[i(1322)](_objectSpread2({},t)),d=t.clampToGround?this.primitiveCollection.add(new Cesium__namespace.GroundPolylinePrimitive(d)):this.primitiveCollection.add(new Cesium__namespace[i(x)](d)),this.bindPickId(d),d}},{key:"_highlight_mouseEventHandler",value:function(e){var t=b,t=(this._map[t(1803)](),e.pickedObject);t&&(this._last_pickedObject=t,this._map.openHighlight(this,this._highlightOptions,e))}},{key:"openHighlight",value:function(e){var t=b,i=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],a=2<arguments[t(2822)]?arguments[2]:void 0,i=(i&&(this._map.closeHighlight(),this._map.last_highlighGraphic=this),a&&(this[t(1303)]=a),e||this._highlightOptions);this[t(o)]&&i&&(a=PolygonStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this._last_pickedObject.data.style),i)),e=this._getColorByColorMaterial(a,!1))&&(this.getGeometryInstanceAttributes(this[t(o)].id)[t(2745)]=Cesium__namespace.ColorGeometryInstanceAttribute.toValue(e),this[t(l)](EventType.highlightOpen,{},!0))}},{key:"closeHighlight",value:function(){var e,t,i=b;this._last_pickedObject&&this[i(2885)]&&(e=PolygonStyleConver[i(1672)](this[i(a)].data.style),(e=this._getColorByColorMaterial(e,!1))&&(t=this[i(n)](this._last_pickedObject.id))&&(t.color=Cesium__namespace.ColorGeometryInstanceAttribute.toValue(e),this[i(r)](EventType.highlightClose,{},!0)),delete this[i(a)]),(null==(t=this._map)?void 0:t.last_highlighGraphic)===this&&this._map._clearLastHighlight()}},{key:"setStyle",value:function(e){for(var t=b,i=this.options.instances||[],a=0;a<i.length;a++){var n=i[a];n.style&&(n[t(s)]=merge(n.style,e))}return _get(_getPrototypeOf(h[t(2385)]),"setStyle",this)[t(1567)](this,e)}}]),h}()),BasePointCombine=function(){var s=2581,r=2581,o=2574,l=2230,e=(_inherits(t,BasePolyCombine),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"_getModelMatrix",value:function(e,t){var i,a,n=_0x236b;return e.modelMatrix||(e=LngLatPoint.toCartesian(e.position),i=Cesium__namespace[n(1124)][n(s)](t.heading||0),a=Cesium__namespace.Math[n(r)](t.pitch||0),t=Cesium__namespace.Math.toRadians(t[n(o)]||0),Cesium__namespace.Transforms[n(l)](e,new Cesium__namespace[n(3975)](i,a,t)))}}]),t}(),PlaneCombine=function(){var n=3721,s=3342,r=4054,o=3915,l=3259,c=2492,h=3825,u=1921,t=2026,_=_0x1658de,i=(_inherits(p,BasePointCombine),_createSuper(p));function p(){var e=_0x236b;return _classCallCheck(this,p),i[e(t)](this,arguments)}return _createClass(p,[{key:"_conversionStyle",value:function(e){return PlaneStyleConver[_0x236b(1672)](e)}},{key:"_style2Json",value:function(e,t){return PlaneStyleConver.toJSON(e,t)}},{key:_(1932),value:function(e,t,i){var a=_,n=PlaneStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this.options[a(c)]),i.style||{})),e=(n.vertexFormat=n.vertexFormat||e.vertexFormat,this._getColorByColorMaterial(n)),i=(1!==(e=t&&n.outlineColor?n.outlineColor:e).alpha&&(this.translucent=!0),this._getModelMatrix(i,n)),t=t?Cesium__namespace.PlaneOutlineGeometry:Cesium__namespace[a(2961)];return new Cesium__namespace.GeometryInstance({geometry:new t(n),modelMatrix:i,attributes:{color:Cesium__namespace[a(h)].fromColor(e),distanceDisplayCondition:n[a(u)]}})}},{key:_(1212),value:function(e,t){var i,a=_;return e.modelMatrix||(e=_get(_getPrototypeOf(p[a(2385)]),"_getModelMatrix",this).call(this,e,t),t.plane_normal===Cesium__namespace.Cartesian3.UNIT_X?(i=Cesium__namespace.Matrix4.fromRotationTranslation(Cesium__namespace.Matrix3[a(n)](Cesium__namespace[a(1124)].toRadians(90))),Cesium__namespace[a(s)][a(r)](e,i,e)):t.plane_normal===Cesium__namespace.Cartesian3.UNIT_Y&&(i=Cesium__namespace.Matrix4.fromRotationTranslation(Cesium__namespace[a(o)][a(2337)](Cesium__namespace.Math.toRadians(90))),Cesium__namespace.Matrix4.multiply(e,i,e)),t=Cesium__namespace.Matrix4[a(l)](new Cesium__namespace.Cartesian3(null!=(a=null==(i=t.dimensions)?void 0:i.x)?a:1,null!=(a=null==(i=t.dimensions)?void 0:i.y)?a:1,1)),Cesium__namespace.Matrix4.multiply(e,t,e),e)}}]),p}(),BoxCombine=(register$4(_0x1658de(338),PlaneCombine,!0),function(){var s=3662,r=3812,o=3825,l=_0x1658de,e=(_inherits(t,BasePointCombine),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"_conversionStyle",value:function(e){var t;return e.closed=null==(t=e.closed)||t,BoxStyleConver.toCesiumVal(e)}},{key:l(1748),value:function(e,t){return BoxStyleConver[l(3458)](e,t)}},{key:l(1932),value:function(e,t,i){var a=l,n=BoxStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this[a(1592)].style),i.style||{})),e=(n.vertexFormat=n.vertexFormat||e.vertexFormat,this[a(s)](n)),i=(1!==(e=t&&n.outlineColor?n.outlineColor:e)[a(3629)]&&(this[a(r)]=!0),this[a(1212)](i,n)),t=t?Cesium__namespace.BoxOutlineGeometry:Cesium__namespace.BoxGeometry;return new Cesium__namespace.GeometryInstance({geometry:t[a(618)](n),modelMatrix:i,attributes:{color:Cesium__namespace[a(o)].fromColor(e),distanceDisplayCondition:n.distanceDisplayCondition}})}}]),t}()),CircleCombine=(register$4(_0x1658de(2883),BoxCombine,!0),function(){var i=2532,a=402,n=1231,s=2663,r=2532,o=1533,l=_0x1658de,e=(_inherits(t,BasePointCombine),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"_conversionStyle",value:function(e){return CircleStyleConver[_0x236b(1672)](e)}},{key:"_style2Json",value:function(e,t){return CircleStyleConver.toJSON(e,t)}},{key:"_createGeometryInstanceItem",value:function(e,t,i){var a=_0x236b,n=CircleStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this.options.style),i.style||{})),e=(n.vertexFormat=n.vertexFormat||e.vertexFormat,this._getColorByColorMaterial(n)),i=(1!==(e=t&&n[a(s)]?n.outlineColor:e).alpha&&(this[a(3812)]=!0),i[a(2532)]=LngLatPoint.parse(i.position).toCartesian(),n[a(1494)]=i[a(r)],t?Cesium__namespace.CircleOutlineGeometry:Cesium__namespace[a(o)]);return new Cesium__namespace.GeometryInstance({geometry:new i(n),attributes:{color:Cesium__namespace[a(3825)].fromColor(e),distanceDisplayCondition:n.distanceDisplayCondition}})}},{key:l(1659),value:function(e){var t=l;return[getEllipseOuterPositions({position:e[t(i)],radius:e[t(2492)][t(a)],granularity:e.style[t(n)]})]}}]),t}()),CylinderCombine=(register$4("circleC",CircleCombine,!0),function(){var a=1672,s=_0x1658de,e=(_inherits(t,BasePointCombine),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"_conversionStyle",value:function(e){var t,i=_0x236b;return e.closed=null==(t=e.closed)||t,CylinderStyleConver[i(a)](e)}},{key:s(1748),value:function(e,t){return CylinderStyleConver.toJSON(e,t)}},{key:"_createGeometryInstanceItem",value:function(e,t,i){var a=s,n=CylinderStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this.options.style),i.style||{})),e=(n.vertexFormat=n.vertexFormat||e.vertexFormat,this._getColorByColorMaterial(n)),a=(1!==(e=t&&n.outlineColor?n.outlineColor:e).alpha&&(this.translucent=!0),this[a(1212)](i,n)),i=t?Cesium__namespace.CylinderOutlineGeometry:Cesium__namespace.CylinderGeometry;return new Cesium__namespace.GeometryInstance({geometry:new i(n),modelMatrix:a,attributes:{color:Cesium__namespace.ColorGeometryInstanceAttribute.fromColor(e),distanceDisplayCondition:n.distanceDisplayCondition}})}}]),t}()),FrustumCombine=(register$4(_0x1658de(1624),CylinderCombine,!0),function(){var o=1672,l=1568,c=332,h=2033,u=3879,_=1179,t=2026,i=(_inherits(a,BasePointCombine),_createSuper(a));function a(){var e=_0x236b;return _classCallCheck(this,a),i[e(t)](this,arguments)}return _createClass(a,[{key:"_conversionStyle",value:function(e){var t;return e.closed=null==(t=e.closed)||t,CylinderStyleConver.toCesiumVal(e)}},{key:"_style2Json",value:function(e,t){return CylinderStyleConver.toJSON(e,t)}},{key:"_createGeometryInstanceItem",value:function(e,t,i){var a=_0x236b,n=CylinderStyleConver[a(o)](_objectSpread2(_objectSpread2({},this.options.style),i.style||{})),e=(n.vertexFormat=n.vertexFormat||e.vertexFormat,this._getColorByColorMaterial(n)),s=(1!==(e=t&&n.outlineColor?n.outlineColor:e).alpha&&(this.translucent=!0),i.position=LngLatPoint.parse(i.position).toCartesian()),r=(i=i[a(l)]?(i=LngLatPoint[a(c)](i.targetPosition).toCartesian(),r=Cesium__namespace.Cartesian3.distance(s,i),i=getHeadingPitchRollForLine(s,i),Cesium__namespace.Transforms[a(3092)](s,i)):(r=-n.length,i=new Cesium__namespace.HeadingPitchRoll(Cesium__namespace.Math.toRadians(n[a(977)]||0),Cesium__namespace[a(1124)].toRadians(n[a(h)]||0),Cesium__namespace.Math.toRadians(n.roll||0)),Cesium__namespace.Transforms.headingPitchRollQuaternion(s,i)),new Cesium__namespace.PerspectiveFrustum({fov:Cesium__namespace[a(1124)].toRadians(2*n[a(u)]||.01),aspectRatio:n.angle2/n.angle,near:.01,far:r})),t=t?Cesium__namespace.FrustumOutlineGeometry:Cesium__namespace[a(3949)];return new Cesium__namespace.GeometryInstance({geometry:new t(_objectSpread2(_objectSpread2({},n),{},{origin:s,orientation:i,frustum:r})),attributes:{color:Cesium__namespace.ColorGeometryInstanceAttribute[a(_)](e),distanceDisplayCondition:n.distanceDisplayCondition}})}}]),a}()),EllipsoidCombine=(register$4("frustumC",FrustumCombine,!0),function(){var s=2492,r=3830,o=2663,l=2663,c=3825,h=1921,i=3458,a=906,n=906,u=1672,t=2026,_=_0x1658de,p=(_inherits(m,BasePointCombine),_createSuper(m));function m(){var e=_0x236b;return _classCallCheck(this,m),p[e(t)](this,arguments)}return _createClass(m,[{key:"_conversionStyle",value:function(e){var t,i=_0x236b;return e[i(a)]=null==(t=e[i(n)])||t,EllipsoidStyleConver[i(u)](e)}},{key:_(1748),value:function(e,t){return EllipsoidStyleConver[_(i)](e,t)}},{key:"_createGeometryInstanceItem",value:function(e,t,i){var a=_,n=EllipsoidStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this.options[a(s)]),i.style||{})),e=(n.vertexFormat=n[a(r)]||e.vertexFormat,this._getColorByColorMaterial(n)),i=(1!==(e=t&&n[a(o)]?n[a(l)]:e).alpha&&(this.translucent=!0),this._getModelMatrix(i,n)),t=t?Cesium__namespace.EllipsoidOutlineGeometry:Cesium__namespace.EllipsoidGeometry;return new Cesium__namespace.GeometryInstance({geometry:new t(n),modelMatrix:i,attributes:{color:Cesium__namespace[a(c)].fromColor(e),distanceDisplayCondition:n[a(h)]}})}}]),m}()),PolylineCombine=(register$4("ellipsoidC",EllipsoidCombine,!0),function(){var s=3830,r=1980,o=3009,l=1179,c=1921,i=3458,t=2026,h=_0x1658de,a=(_inherits(n,BasePolyCombine),_createSuper(n));function n(){var e=_0x236b;return _classCallCheck(this,n),a[e(t)](this,arguments)}return _createClass(n,[{key:"_conversionStyle",value:function(e){return PolylineStyleConver.toCesiumVal(e)}},{key:h(1748),value:function(e,t){return PolylineStyleConver[h(i)](e,t)}},{key:"_createGeometryInstanceItem",value:function(e,t,i){var a=h,n=PolylineStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this.options[a(2492)]),i[a(2492)]||{})),e=(e._isColorMaterial&&(n[a(s)]=Cesium__namespace.PolylineColorAppearance.VERTEX_FORMAT),this._getColorByColorMaterial(n)),i=i.positions=LngLatArray.toCartesians(i[a(r)]),i=(n.positions=i,n.clampToGround?Cesium__namespace[a(o)]:Cesium__namespace.PolylineGeometry);return new Cesium__namespace.GeometryInstance({geometry:new i(n),attributes:{color:Cesium__namespace.ColorGeometryInstanceAttribute[a(l)](e),distanceDisplayCondition:n[a(c)]}})}},{key:h(3637),value:function(e,t){return new(e._isColorMaterial?Cesium__namespace.PolylineColorAppearance:Cesium__namespace.PolylineMaterialAppearance)(_objectSpread2({},e))}}]),n}()),PolylineVolumeCombine=(register$4("polylineCombine",PolylineCombine),register$4(_0x1658de(1846),PolylineCombine),function(){var s=1980,r=725,o=1179,i=906,l=_0x1658de,e=(_inherits(t,BasePolyCombine),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"_conversionStyle",value:function(e){var t=_0x236b;return e.closed=null==(t=e[t(i)])||t,PolylineVolumeStyleConver.toCesiumVal(e)}},{key:"_style2Json",value:function(e,t){return PolylineVolumeStyleConver.toJSON(e,t)}},{key:l(1932),value:function(e,t,i){var a=l,n=PolylineVolumeStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this.options.style),i[a(2492)]||{})),e=(n.vertexFormat=n.vertexFormat||e[a(3830)],this._getColorByColorMaterial(n)),i=(1!==(e=t&&n.outlineColor?n.outlineColor:e)[a(3629)]&&(this.translucent=!0),i[a(s)]=LngLatArray.toCartesians(i[a(s)])),t=t?Cesium__namespace[a(r)]:Cesium__namespace.PolylineVolumeGeometry;return new Cesium__namespace.GeometryInstance({geometry:new t(_objectSpread2(_objectSpread2({},n),{},{polylinePositions:i,shapePositions:n.shape})),attributes:{color:Cesium__namespace.ColorGeometryInstanceAttribute[a(o)](e),distanceDisplayCondition:n.distanceDisplayCondition}})}}]),t}()),CorridorCombine=(register$4("polylineVolumeC",PolylineVolumeCombine),function(){var s=3830,r=1980,o=667,l=1921,t=1672,e=(_inherits(i,BasePolyCombine),_createSuper(i));function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"_conversionStyle",value:function(e){return CorridorStyleConver[_0x236b(t)](e)}},{key:"_style2Json",value:function(e,t){return CorridorStyleConver.toJSON(e,t)}},{key:"_createGeometryInstanceItem",value:function(e,t,i){var a=_0x236b,n=CorridorStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this.options.style),i.style||{})),e=(n[a(s)]=n.vertexFormat||e.vertexFormat,this._getColorByColorMaterial(n)),i=(1!==(e=t&&n.outlineColor?n.outlineColor:e)[a(3629)]&&(this.translucent=!0),i.positions=LngLatArray[a(3483)](i.positions),n[a(r)]=i[a(1980)],t?Cesium__namespace[a(506)]:Cesium__namespace[a(o)]);return new Cesium__namespace.GeometryInstance({geometry:new i(n),attributes:{color:Cesium__namespace.ColorGeometryInstanceAttribute.fromColor(e),distanceDisplayCondition:n[a(l)]}})}}]),i}()),WallCombine=(register$4("corridorC",CorridorCombine),function(){var h=3830,u=2432,_=1016,p=3600,t=1672,e=(_inherits(i,BasePolyCombine),_createSuper(i));function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"_conversionStyle",value:function(e){return WallStyleConver[_0x236b(t)](e)}},{key:"_style2Json",value:function(e,t){return WallStyleConver[_0x236b(3458)](e,t)}},{key:"_createGeometryInstanceItem",value:function(e,t,i){var a=_0x236b,n=WallStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this[a(1592)].style),i.style||{})),e=(n[a(h)]=n.vertexFormat||e.vertexFormat,this._getColorByColorMaterial(n)),s=(1!==(e=t&&n.outlineColor?n[a(2663)]:e)[a(3629)]&&(this[a(3812)]=!0),[]),r=[],o=i.positions,l=new Array(o),c=new Array(o),i=(i.positions[a(u)](function(e,t){var i=a,e=LngLatPoint[i(332)](e);e&&e[i(2313)]()&&(s.push(e),r.push(e[i(p)]()),e=s[t].alt,l[t]=e,c[t]=e+Number(n[i(872)]||100))}),n.closure&&0<(null==(o=r)?void 0:o.length)&&(r=r.concat(r[0]),l=l.concat(l[0]),c=c.concat(c[0])),t?Cesium__namespace.WallOutlineGeometry:Cesium__namespace.WallGeometry);return new Cesium__namespace[a(_)]({geometry:new i(_objectSpread2(_objectSpread2({},n),{},{positions:r,maximumHeights:c,minimumHeights:l})),attributes:{color:Cesium__namespace.ColorGeometryInstanceAttribute[a(1179)](e),distanceDisplayCondition:n.distanceDisplayCondition}})}}]),i}()),PolygonCombine=(register$4("wallC",WallCombine),function(){var e=3216,t=2838,l=3475,i=511,o=1672,c=1592,h=3830,u=3629,_=2255,p=3483,m=1980,a=2026,d=_0x1658de,n=(_inherits(s,BasePolyCombine),_createSuper(s));function s(){var e=_0x236b;return _classCallCheck(this,s),n[e(a)](this,arguments)}return _createClass(s,[{key:d(e),value:function(e){return PolygonStyleConver.toCesiumVal(e)}},{key:"_style2Json",value:function(e,t){return PolygonStyleConver.toJSON(e,t)}},{key:"_createGeometryInstanceItem",value:function(e,t,i){var a,n=d,s=PolygonStyleConver[n(o)](_objectSpread2(_objectSpread2({},this[n(c)].style),i.style||{})),e=(s.vertexFormat=s.vertexFormat||e[n(h)],this._getColorByColorMaterial(s)),r=(1!==(e=t&&s.outlineColor?s.outlineColor:e)[n(u)]&&(this.translucent=!0),0<i.positions.length&&Array.isArray(i[n(1980)][0])&&0<i.positions[0].length&&Array[n(_)](i.positions[0][0])&&isNumber(i[n(1980)][0][0][0])?r=(a=getPolygonHierarchy(i.positions)).positions:(r=i.positions=LngLatArray[n(p)](i[n(m)]),a=new Cesium__namespace.PolygonHierarchy(r)),i[n(511)]=a,s.polygonHierarchy=a,t?Cesium__namespace.PolygonOutlineGeometry:Cesium__namespace.PolygonGeometry);return new Cesium__namespace.GeometryInstance({geometry:new r(s),attributes:{color:Cesium__namespace.ColorGeometryInstanceAttribute.fromColor(e),distanceDisplayCondition:s.distanceDisplayCondition}})}},{key:"_getPolylineOutlinePositions",value:function(e){return e[d(i)]?getHierarchyVal(e._hierarchy):e.positions?getHierarchyVal(LngLatArray.toCartesians(e.positions)):void 0}},{key:d(t),value:function(e){for(var t,i=d,a=(null==(t=this.style)?void 0:t[i(3159)])||0,n=0,s=this[i(l)].length;n<s;n++){var r=this.primitiveCollection.get(n),o=(6378137+e)/(6378137+a),o=Cesium__namespace.Matrix4.fromScale(new Cesium__namespace.Cartesian3(o,o,o));r[i(1436)]=o}}},{key:"_getGeoJsonGeometry",value:function(e,t){var i=d;return{type:"Polygon",coordinates:[LngLatArray[i(1326)](e.positions,null==t?void 0:t[i(2297)])]}}}]),s}()),WaterCombine=(register$4(_0x1658de(391),PolygonCombine),register$4("polygonC",PolygonCombine),function(){var n=2517,s=3648,r=1500,o=3001,l=3535,c=3475,t=2026,i=(_inherits(a,PolygonCombine),_createSuper(a));function a(){var e=_0x236b;return _classCallCheck(this,a),i[e(t)](this,arguments)}return _createClass(a,[{key:"_addedHook",value:function(e){var t,i,a=_0x236b;this.show&&(i=this[a(3216)](e),e[a(2098)]=null!=(t=e.opacity)?t:.8,t={geometryInstances:this._createGeometryInstance(i),appearance:new Cesium__namespace.EllipsoidSurfaceAppearance({aboveGround:!1,material:new Cesium__namespace.Material({fabric:{type:"Water",uniforms:{specularMap:i.specularMap||Cesium__namespace.Material.DefaultImageId,normalMap:i.normalMap||Cesium__namespace[a(n)][a(s)],frequency:i.frequency||8e3,animationSpeed:i[a(1517)]||.03,amplitude:i[a(r)]||5,specularIntensity:e[a(o)]||.8,baseWaterColor:getCesiumColor(e.baseWaterColor||"#123e59").withAlpha(e[a(2098)]),blendColor:getCesiumColor(e.blendColor||"#123e59")[a(l)](e.opacity)}}}),fragmentShaderSource:WaterFS,translucent:1!==e.opacity}),show:this.show},e.clampToGround?(t.classificationType=null!=(i=e.classificationType)?i:Cesium__namespace.ClassificationType.TERRAIN,this._primitive=this.primitiveCollection.add(new Cesium__namespace.GroundPrimitive(t))):this._primitive=this[a(c)].add(new Cesium__namespace.Primitive(t)))}}]),a}()),RectangleCombine=(register$4("waterCombine",WaterCombine),register$4(_0x1658de(647),WaterCombine),function(){var s=3830,r=2663,o=1980,l=430,c=1016,h=3825,u=_0x1658de,e=(_inherits(t,BasePolyCombine),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"_conversionStyle",value:function(e){return RectangleStyleConver.toCesiumVal(e)}},{key:"_style2Json",value:function(e,t){return RectangleStyleConver.toJSON(e,t)}},{key:u(1932),value:function(e,t,i){var a=u,n=RectangleStyleConver.toCesiumVal(_objectSpread2(_objectSpread2({},this.options.style),i.style||{})),e=(n.vertexFormat=n[a(s)]||e.vertexFormat,this._getColorByColorMaterial(n)),i=(1!==(e=t&&n[a(r)]?n.outlineColor:e).alpha&&(this.translucent=!0),i[a(o)]=LngLatArray.toCartesians(i.positions)),i=(n.rectangle=Cesium__namespace.Rectangle.fromCartesianArray(i),Cesium__namespace.defined(n.rectangle)&&(Cesium__namespace.defined(this[a(430)])?this[a(l)]=Cesium__namespace.Rectangle.union(n.rectangle,this._rectangle):this._rectangle=n.rectangle),t?Cesium__namespace.RectangleOutlineGeometry:Cesium__namespace.RectangleGeometry);return new Cesium__namespace[a(c)]({geometry:new i(n),attributes:{color:Cesium__namespace[a(h)].fromColor(e),distanceDisplayCondition:n.distanceDisplayCondition}})}}]),t}()),EditDivGraphic=(register$4("rectangleC",RectangleCombine),function(){var i=2532,a=1997,n=1434,s=3817,r=3359,o=3063,l=2361,c=3870,h=1206,u=2778,_=1334,t=2361,p=2998,m=1334,d=1583,f=3265,y=1203,e=1203,v=1905,g=2492,C=2283,x=2369,b=2532,k=_0x1658de,P=(_inherits(w,EditBase),_createSuper(w));function w(){return _classCallCheck(this,w),P.apply(this,arguments)}return _createClass(w,[{key:"container",get:function(){return this._graphic._container}},{key:"activate",value:function(){var n=_0x236b,s=this;return this._enabled||(this._enabled=!0,this.container[n(3870)]("mousemove",this[n(1202)].bind(this)),this[n(e)].addEventListener("mouseout",this[n(v)].bind(this)),this[n(e)].addEventListener("mousedown",this._onMarkerDragStart.bind(this)),addClass(this.container,this._graphic[n(g)].editClassName||"gis3d-divGraphic-edit"),this._graphic._draw_tooltip=this._map.getLangText("_拖动对象后")+n(2471)+this._map.getLangText("_修改位置")+"<br/>"+this._map[n(349)]("_更多功能请右击"),this[n(2283)][n(2450)]=function(e,t,i){var a=n;s._graphic[a(b)]=t,s.fire(EventType.editMovePoint,{mouseEvent:i,cartesian:t})},this._last_contextmenuConfig=this[n(2283)]._contextmenuConfig,this[n(C)][n(1989)](this[n(x)](this._graphic)),this.fire(EventType[n(3617)])),this}},{key:"disable",value:function(){var e=_0x236b;return this[e(p)]&&(this._enabled=!1,this.stopMoveMatrix(),delete this._graphic.onDragEnd,delete this._graphic[e(m)],this._graphic.unbindContextMenu(),this[e(2305)]&&(this[e(2283)]._contextmenuConfig=this._last_contextmenuConfig,delete this._last_contextmenuConfig),this.container.removeEventListener(e(d),this[e(1202)]),this.container.removeEventListener("mouseout",this._onMouseOut),this.container.removeEventListener("mousedown",this[e(f)]),this.unbindEvent(),removeClass(this[e(y)],this._graphic.style.editClassName||"gis3d-divGraphic-edit"),this[e(1997)](EventType.editStop)),this}},{key:k(3063),value:function(){var e=k;this[e(t)]&&document.removeEventListener("mousemove",this[e(2361)],!1),this._mouseUpHandle&&document.removeEventListener("mouseup",this._mouseUpHandle,!1),this[e(3817)][e(2461)](!1)}},{key:"_onMouseMove",value:function(e){var t=k;this[t(2283)]._draw_tooltip&&(e=this[t(2283)][t(u)](e),this[t(3817)].openSmallTooltip(e,this._graphic[t(_)]))}},{key:"_onMouseOut",value:function(e){var t=k;this[t(3817)][t(h)]()}},{key:k(3265),value:function(e){var t=k,i=this;this[t(2998)]&&1===e.which&&(e[t(r)](),this[t(3817)][t(2461)](!0),this[t(1997)](EventType.editMouseDown,{mouseEvent:e}),this[t(o)](),this[t(2361)]||(this[t(l)]=function(e){i._onMarkerDrag(e)},this[t(4073)]=function(e){i._onMarkerDragEnd(e)}),document[t(c)]("mousemove",this._mouseMoveHandle,!1),document.addEventListener("mouseup",this[t(4073)],!1))}},{key:"_onMarkerDrag",value:function(e){var t,i,a=k;this[a(2998)]&&(e.preventDefault(),t=this._graphic._getWindowPosition(e),i=getCurrentMousePosition(this._map.scene,t))&&(this._graphic.position=i,this._map[a(n)](t,this[a(s)].getLangText("_释放后完成修改")),this.fire(EventType.editMouseMove,{mouseEvent:e,cartesian:i,windowPosition:t}))}},{key:k(492),value:function(e){var t,i=k;this._enabled&&(e.preventDefault(),this.unbindEvent(),this._map.closeSmallTooltip(),t=this._graphic._getWindowPosition(e),this[i(a)](EventType.editMovePoint,{mouseEvent:e,cartesian:this._graphic.position,windowPosition:t}))}},{key:"_updateMatrixMovePosition",value:function(e){var t=k;this._matrixMove&&e.position&&(this._matrixMove.position=e[t(i)])}}]),w}()),isFirefox=0<=window.navigator.userAgent[_0x1658de(1728)]().indexOf("firefox"),DivGraphic=function(){var e=3142,t=3689,i=2071,a=1359,n=1421,s=843,r=2778,o=3993,l=2526,c=2530,h=3892,u=337,_=2383,p=2001,m=3817,d=1997,f=2852,y=1488,v=1125,g=1802,C=3362,H=1791,F=1582,N=1592,G=1329,z=2917,B=3912,j=1307,V=1125,$=3182,U=2330,W=3039,x=2818,J=1836,q=1578,Y=3817,Z=1134,X=3817,Q=434,K=1677,ee=2777,te=2426,b=2584,ie=1592,ae=2777,ne=1421,k=984,se=1210,re=2993,oe=2532,le=2297,ce=434,P=3817,he=352,ue=3084,_e=1203,pe=2823,me=1614,de=1592,fe=1592,ye=728,ve=422,ge=919,Ce=3336,xe=3965,be=854,w=434,ke=3142,Pe=2505,we=1612,S=2492,Se=3316,Te=1591,Me=3316,T=2492,M=3681,Ee=3293,Ae=1997,E=2492,Le=2492,De=3784,Ie=2492,A=3817,Oe=3118,Re=2589,He=3095,Fe=3733,Ne=1583,Ge=2034,ze=4106,Be=1612,je=2125,Ve=420,$e=3618,Ue=3920,We=2492,Je=3362,qe=1802,Ye=1592,L=2818,Ze=2818,Xe=681,Qe=2129,Ke=434,et=2762,tt=2492,D=2436,it=2492,at=434,nt=1134,st=1134,rt=1740,ot=434,lt=3793,ct=1853,ht=3605,ut=1592,_t=1709,pt=4035,mt=3441,dt=2993,ft=1709,yt=1026,I=1592,vt=3142,gt=3084,Ct=2121,xt=2640,bt=1089,kt=600,Pt=2492,wt=3273,O=_0x1658de,St=(_inherits(R,BaseGraphic),_createSuper(R));function R(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(t=St.call(this,a))._hasEdit=null==(e=null!=(e=t.options.hasEdit)?e:t[i(2492)].hasEdit)||e,t._depthTest=null==(e=null!=(e=t[i(I)][i(vt)])?e:t.style.depthTest)||e,t[i(gt)]=null==(e=null!=(e=t.options.hasCache)?e:t[i(2492)].hasCache)||e,t._hasZIndex=null!=(e=null!=(e=t.options[i(Ct)])?e:t[i(2492)].hasZIndex)&&e,t._css_transform_origin=null!=(e=t.style.css_transform_origin)?e:"left bottom 0",t.options.frameRate=null!=(e=t.options[i(xt)])?e:1,t.options.testPoint=merge({name:i(1012),color:i(bt),pixelSize:8,distanceDisplayCondition:t.style.distanceDisplayCondition,scaleByDistance:t.style[i(kt)],clampToGround:t[i(Pt)].clampToGround,heightReference:t.style[i(wt)]},t[i(I)].testPoint),a.position&&(t.position=a[i(2532)]),t}return _createClass(R,[{key:"position",get:function(){return this._position},set:function(e){var t=_0x236b;this._point=LngLatPoint.parse(e),this._point&&(e=this.style[t(mt)],Cesium__namespace.defined(e)&&(isString(e)&&(e=Number(template(e,this.attr,!0)),isNaN(e))&&(e=0),this[t(3083)].alt=e),0!==(e=this.getAddHeight()))&&(this[t(3083)][t(dt)]=this._point[t(2993)]+e),this._position=null==(e=this._point)?void 0:e.toCartesian(),this[t(ft)]&&(this[t(1709)].position=this._position),this._updateDivPosition(),this.fire(EventType[t(yt)],{position:this[t(1111)]})}},{key:"point",get:function(){return this._point}},{key:"coordinate",get:function(){return this[_0x236b(843)]()}},{key:"center",get:function(){return this._position}},{key:"positionShow",get:function(){return this[_0x236b(pt)]}},{key:"testPoint",get:function(){return null!=this[_0x236b(_t)]},set:function(e){var t=_0x236b;this[t(1709)]&&(this._layer.dataSource.entities.remove(this.debuggerPointEntity),delete this[t(1709)]),e&&(this[t(1709)]=this[t(2818)].dataSource.entities[t(ht)]({name:this[t(ut)].testPoint[t(640)],position:this.position,point:PointStyleConver[t(1672)](this.options.testPoint)}))}},{key:"pointerEvents",get:function(){return this.options.pointerEvents},set:function(e){var t=_0x236b;this.options[t(ct)]=e,this._updatePointerEvents(e)}},{key:"isEditing",get:function(){return this[_0x236b(678)]}},{key:"EditClass",get:function(){return EditDivGraphic}},{key:O(e),get:function(){return this[O(lt)]},set:function(e){this._depthTest=e,this._camera_cache=null}},{key:"clampToGround",get:function(){return this[O(2492)].clampToGround},set:function(e){this.style.clampToGround=e,this._calculateAsynSurfacePosition()}},{key:"parentContainer",get:function(){return this.options.parentContainer||this._layer.container}},{key:O(t),get:function(){var e;return null==(e=this.parentContainer)?void 0:e.id}},{key:"container",get:function(){return this._container}},{key:"containerId",get:function(){return this._container.id}},{key:"html",get:function(){return this[O(ot)].innerHTML},set:function(i){var e,a=O,n=this;if(this.style.html=i,this._container&&i)if((i="function"==typeof i?i(this[a(et)]):i)instanceof Promise)i.then(function(e){n.options&&(n._camera_cache=null,n.html=e)});else{if(isString(i)){if(this.attr instanceof Promise)return void this[a(1740)][a(2589)](function(e){var t=a;n.options&&(n._camera_cache=null,n[t(rt)]=e,n[t(3920)]=i)});this.style.template&&(i=this[a(tt)][a(1627)].replace("{content}",i)),this._container.innerHTML=template(i,this.attr,null==(e=this.style.templateEmptyStr)||e),this.fire(EventType.load)}else i instanceof Element&&(empty(this._container),i.style[a(2163)]!==a(D)&&(i[a(2492)].display=a(D)),this._container.appendChild(i),this.fire(EventType.load));if(this[a(it)].className)if(0<(null==(e=this._container.children)?void 0:e[a(2822)]))for(var t=0,s=this[a(at)].children[a(2822)];t<s;t++)addClass(this._container[a(1677)][t],this.style[a(nt)]);else addClass(this._container,this.style[a(st)]);this._appendHtmlHook&&this[a(1611)](),this._camera_cache=null}}},{key:"divWidth",get:function(){var e;return null==(e=this[O(434)])?void 0:e.offsetWidth}},{key:"divHeight",get:function(){var e;return null==(e=this[O(434)])?void 0:e.offsetHeight}},{key:O(2762),get:function(){return this}},{key:"_showHook",value:function(e){var t=O;this._container&&(e?(this._camera_cache=null,this._container[t(2492)].display=t(2436)):this[t(1612)](),this.debuggerPointEntity)&&(this.debuggerPointEntity.show=e)}},{key:"_updatePointerEvents",value:function(e){this._container&&(this._container.style["pointer-events"]=e?"all":"none")}},{key:"setOpacity",value:function(e){var t=O;this.style.globalAlpha=e,this[t(Ke)]&&(this._container.style.opacity=e)}},{key:"hasBindEvent",value:function(){var e,t=O;return!!this.listens(EventType[t(qe)])||!!(this.listens(EventType.mouseOver)||this.listens(EventType.mouseOut)||this.hasPopup(!1)||this.hasTooltip(!1))||(Cesium__namespace.defined(this.options[t(1853)])?this[t(Ye)].pointerEvents:!(null==(e=this[t(L)])||!e.listens(EventType[t(1802)]))||!!(null!=(e=this[t(Ze)])&&e.listens(EventType.mouseOver)||null!=(e=this[t(L)])&&e[t(Xe)](EventType[t(Qe)])||this.hasPopup(!0)||this.hasTooltip(!0)))}},{key:"_onEventHook",value:function(){this._updatePointerEvents(this.hasBindEvent())}},{key:"_mountedHook",value:function(){var e=O;DivGraphicStyleConver.toCesiumVal(this[e(2492)],this),this._container=create$3("div",e($e),this.parentContainer),this._container.id=this.id,this._container.style.opacity=this.style.globalAlpha,this.style[e(3920)]&&(this[e(Ue)]=this[e(We)].html),this[e(Je)](this.hasBindEvent())}},{key:O(563),value:function(e){var t=O;this._layer.container[t(ze)](this._container),this[t(Be)](),this._container.addEventListener("click",this[t(je)].bind(this)),this._container[t(3870)](t(Ve),this._container_onMousedownHandler.bind(this)),this[t(434)].addEventListener("mousemove",this._container_onMouseMoveHandler.bind(this)),this._container.addEventListener("mouseout",this[t(2034)].bind(this)),this._calculateAsynSurfacePosition(),this.bindUpdateEvent()}},{key:O(i),value:function(){var e=O;this[e(2671)](),this._map[e(4030)](EventType.terrainChange,this[e(3095)],this),this.testPoint=!1,this._container.removeEventListener("click",this._container_onClickHandler),this[e(434)].removeEventListener("mousedown",this[e(Fe)]),this._container.removeEventListener(e(Ne),this[e(884)]),this._container.removeEventListener(e(3935),this[e(Ge)]),remove(this[e(434)])}},{key:"_calculateAsynSurfacePosition",value:function(){var i=1093,a=O,n=this,e=(this._camera_cache=null,this._hasAsynSurfacePosition=!1,this[a(2532)]);e instanceof Cesium__namespace[a(784)]&&(this[a(Ie)][a(1614)]||this[a(2492)].heightReference===Cesium__namespace.HeightReference.CLAMP_TO_GROUND||this.style.heightReference===Cesium__namespace.HeightReference.RELATIVE_TO_GROUND)&&(getSurfaceHeight(this[a(A)][a(Oe)],e,this.options)[a(Re)](function(e){var t=a;n.isDestroy||(n.style.heightReference===Cesium__namespace.HeightReference.RELATIVE_TO_GROUND&&(e.point.alt+=e.height_original),n.position=e.point,n[t(i)]=!0)}),this._map.on(EventType.terrainChange,this[a(He)],this),this[a(A)].on(EventType.terrainChange,this[a(3095)],this))}},{key:"_onTerrainChangeHandler",value:function(e){var t=O;this[t(3817)]&&this[t(De)]()}},{key:"_updateStyleBaseHook",value:function(e){var t=O;return e.html&&(this.html=e.html),DivGraphicStyleConver[t(1672)](this[t(Le)],this),this[t(464)]=null,this[t(1641)](),this}},{key:"updateDivPosition",value:function(){return this._camera_cache=null,this._updateDivPosition(),this}},{key:"update",value:function(e){var t=O;this._map&&(this[t(E)].timeRender&&this[t(E)].html&&(this.html=this.style.html),this._updateDivPosition(),this[t(1997)](EventType.postRender,{container:this[t(1203)]},!1),this.fireTarget)&&this.fireTarget(EventType.postRender,{container:this.container},!1)}},{key:"_updateDivPosition",value:function(){var e=O;if(!this.show||!this._map)return!1;var t=this._map.scene,i=this._map.camera,a=getPositionValue(this[e(2532)],null==(a=this[e(P)])?void 0:a.clock[e(he)]);if(!Cesium__namespace.defined(a))return this.hide(),!1;if(this[e(ue)]){var n={x:a.x,y:a.y,z:a.z,p1:this[e(P)][e(_e)][e(1017)],p2:this._map.container[e(pe)],p3:i[e(2142)].x,p4:i.positionWC.y,p5:i.positionWC.z,p6:i.heading,p7:i.pitch,p8:i.roll};if(this._camera_cache&&n.x===this._camera_cache.x&&n.x===this[e(464)].x&&n.y===this._camera_cache.y&&n.z===this[e(464)].z&&n.p1===this._camera_cache.p1&&n.p2===this._camera_cache.p2&&n.p3===this._camera_cache.p3&&n.p4===this._camera_cache.p4&&n.p5===this._camera_cache.p5&&n.p6===this._camera_cache.p6&&n.p7===this._camera_cache.p7&&n.p8===this._camera_cache.p8)return!0;this._camera_cache=n}this._hasAsynSurfacePosition||(this.style[e(me)]||this.style[e(3273)]===Cesium__namespace.HeightReference.CLAMP_TO_GROUND?a=getSurfacePosition(this[e(3817)].scene,a,this[e(de)]):this.style.heightReference===Cesium__namespace[e(1507)].RELATIVE_TO_GROUND&&(a=getSurfacePosition(this._map.scene,a,_objectSpread2(_objectSpread2({},this[e(fe)]),{},{relativeHeight:!0})))),this._position_show=a;var s=Cesium__namespace[e(ye)][e(ve)](t,a),n=this.distanceDisplayCondition,r=this.scaleByDistance,o=i[e(ge)].height;if((this[e(Ce)]||n||r)&&t[e(2505)]===Cesium__namespace.SceneMode[e(xe)]&&(o=Cesium__namespace.Cartesian3[e(1937)](a,i.positionWC)),!s||n&&(n.near>o||n[e(be)]<o))return this[e(w)].style.display===e(2436)&&this.hide(),!1;if(this[e(ke)]&&t[e(Pe)]===Cesium__namespace.SceneMode.SCENE3D&&!new Cesium__namespace.EllipsoidalOccluder(t.globe.ellipsoid,t.camera.positionWC).isPointVisible(a))return this._container.style.display===e(2436)&&this[e(we)](),!1;"block"!==this._container[e(S)].display&&(this._camera_cache=null,this[e(w)].style.display=e(2436));var l,c,h=this.divHeight,u=this[e(736)];switch(this.horizontalOrigin){case"CENTER":case Cesium__namespace[e(1391)][e(Se)]:l=s.x-u/2;break;case"RIGHT":case Cesium__namespace.HorizontalOrigin.RIGHT:l=s.x-u;break;case"LEFT":case Cesium__namespace.HorizontalOrigin.LEFT:default:l=s.x}switch(this[e(Te)]){case"TOP":case Cesium__namespace.VerticalOrigin.TOP:c=s.y;break;case"CENTER":case Cesium__namespace.VerticalOrigin[e(Me)]:c=s.y-h/2;break;case"BOTTOM":case Cesium__namespace.VerticalOrigin.BOTTOM:default:c=s.y-h}this[e(T)].anchor?(l+=this[e(S)].anchor[0],c+=this.style.anchor[1]):(this.style.offsetX&&(l+=this.style[e(3607)]),this.style.offsetY&&(c+=this.style.offsetY));i=1,r&&(i=o<=r.near?r[e(M)]:o>r.near&&o<r.far?r[e(M)]+(r[e(1426)]-r.nearValue)*(o-r.near)/(r.far-r.near):r.farValue),n=e(3500)+i+e(1720)+i+","+l+","+c+")",t=this[e(Ee)],r=this.options.zIndex||"auto";this._hasZIndex&&(r=Math[e(498)](9999999-o))<=0&&(r=9999999),merge(this[e(434)][e(T)],{transform:n,"transform-origin":t,"-ms-transform":n,"-ms-transform-origin":t,"-webkit-transform":n,"-webkit-transform-origin":t,"-moz-transform":n,"-moz-transform-origin":t,"-o-transform":n,"-o-transform-origin":t,"z-index":r}),this[e(Ae)](EventType.change,{position:a,windowPosition:s,distance:o,x:l,y:c,height:h,width:u,scale:i},!0)}},{key:"hide",value:function(){this[O(ce)].style.display="none",this._camera_cache=null}},{key:O(a),value:function(e){var t=O;return{type:"Point",coordinates:this[t(843)](null==e?void 0:e[t(le)])}}},{key:O(1223),value:function(e,t){var i=O,a=(this[i(b)]?this[i(b)]!==this.position&&(this.position=this.property):((a=new Cesium__namespace.SampledPositionProperty).forwardExtrapolationType=null!=(n=this.options.forwardExtrapolationType)?n:Cesium__namespace.ExtrapolationType.HOLD,a.backwardExtrapolationType=null!=(n=this[i(1592)].backwardExtrapolationType)?n:Cesium__namespace.ExtrapolationType.HOLD,!this[i(ie)].orientation&&(this.options.orientation=new Cesium__namespace.VelocityOrientationProperty(a),this[i(2981)])&&(this._entity[i(2371)]=this.getOrientation()),this.property=a,this[i(2532)]=a,this[i(ae)]=null!=(n=this.options.maxCacheCount)?n:50),this[i(ne)](),(null==(a=this._map)||null==(n=a.clock)?void 0:n.currentTime)||Cesium__namespace[i(k)].now()),n=(t?isNumber(t)?t=Cesium__namespace[i(k)][i(se)](a,t,new Cesium__namespace.JulianDate):isString(t)?t=-1===t.indexOf("Z")?Cesium__namespace[i(984)][i(445)](new Date(t)):Cesium__namespace.JulianDate.fromIso8601(t):t instanceof Date&&(t=Cesium__namespace[i(984)].fromDate(t)):t=a,e=LngLatPoint.parse(e),null==(n=this._sampledPositionProperty)||null==(n=n._property)?void 0:n._times),a=(0<(null==n?void 0:n.length)&&this._position&&(n=n[n[i(2822)]-1],.3<Cesium__namespace.JulianDate.secondsDifference(a,n))&&(n=this._position,this._lastDynamicPosition&&(n=getOnLinePointByLen(this._lastDynamicPosition,this._position,.01,!0)),n=setPositionsHeight(n,e[i(re)]||0),this._sampledPositionProperty.addSample(a,n)),e.toCartesian());return this[i(oe)].addSample(t,a),this}},{key:O(n),value:function(){var e,t,i=O;this._maxCacheCount<1||(e=null==(e=this.property)||null==(e=e[i(783)])?void 0:e._times)&&0!==e.length&&0<(t=e.length-this[i(ee)]-1)&&this.property.removeSamples(new Cesium__namespace[i(te)]({start:e[0],stop:e[t]}))}},{key:O(s),value:function(e){return this[O(620)]?this.point.toArray(e):[]}},{key:"openHighlight",value:function(e){var t=O,i=((!(1<arguments.length&&void 0!==arguments[1])||arguments[1])&&(this[t(X)][t(1803)](),this._map.last_highlighGraphic=this),e||this._highlightOptions||(null==(e=this[t(2818)])?void 0:e._highlightOptions));if(i&&i.className){for(var a=0,n=this[t(Q)].children.length;a<n;a++)addClass(this[t(434)][t(K)][a],i.className);this._highlightOptions=i,this.fire(EventType.highlightOpen,{},!0)}}},{key:"closeHighlight",value:function(){var e,t=O;if(this._state===State.ADDED&&(null==(e=this._map)?void 0:e.last_highlighGraphic)===this){this[t(Y)]._clearLastHighlight();var i=this._highlightOptions;if(i&&i.className){for(var a=0,n=this._container.children.length;a<n;a++)removeClass(this._container.children[a],i[t(Z)]);this.fire(EventType.highlightClose,{},!0)}}}},{key:O(r),value:function(e){var t,i=O;return isFirefox?(t=this._map.container.getBoundingClientRect(),new Cesium__namespace.Cartesian2(e[i(q)]-t.left,e.clientY-t.top)):new Cesium__namespace.Cartesian2(e.layerX,e.layerY)}},{key:"_getEventTarget",value:function(e){var t=O,i=(e.stopPropagation&&e[t(3196)](),this._getWindowPosition(e)),e={mouseEvent:e,cartesian:this[t(2532)],windowPosition:i,sourceTarget:this,graphic:this,layer:this[t(x)]};return this[t(x)]&&(this._layer[t(J)]||this._layer._hasEdit&&this.hasEdit)&&(e.cartesian=getCurrentMousePosition(this._map[t(3118)],i)),e}},{key:"_container_onClickHandler",value:function(e){var t=O;this._enabledEdit||((e=this[t(577)](e)).position=e[t(W)],this[t(1997)](EventType.click,e,!0))}},{key:"_container_onMousedownHandler",value:function(e){var t=O;2===e[t($)]&&((e=this._getEventTarget(e)).position=e.windowPosition,this.fire(EventType[t(U)],e,!0))}},{key:"_container_onMouseMoveHandler",value:function(e){var t=O;this._enabledEdit||(this[t(3817)].mouseEvent[t(3537)](),(e=this._getEventTarget(e)).endPosition=e.windowPosition,this._map.fire(EventType[t(V)],e),this._map.fire(EventType.mouseMoveTarget,e),this[t(808)]||this[t(1997)](EventType.mouseOver,e,!0),this._hasMouseOver=!0)}},{key:O(2034),value:function(e){this._enabledEdit||(this._hasMouseOver=!1,e=this._getEventTarget(e),this.fire(EventType.mouseOut,e,!0))}},{key:"autoSurfaceHeight",value:function(e){var t=this;return getSurfaceHeight(this._map.scene,this.position,null!=e?e:this.options).then(function(e){e.position&&(t.position=e.position)})}},{key:"_style2Json",value:function(e,t){return DivGraphicStyleConver.toJSON(e,t,!0)}},{key:"getRectangle",value:function(e){var t=O,i=this[t(B)];if(i)return getRectangle([i],null==e?void 0:e[t(j)])}},{key:"startDraw",value:function(e){var t=O;if(this[t(G)])return this;if(this[t(1329)]=!0,e&&this[t(4062)](e),!this._map)throw new Error("绘制时_map不能为空,请将对象添加到图层,并且图层已添加到Map");this._map[t(z)](!0),this.enableControl(!1),this._startDrawHook(),this.fire(EventType.drawStart,{drawtype:this.type,graphic:this},!0)}},{key:O(2671),value:function(){var e,t=O;if(!this._enabledDraw)return this;this._stopDrawHook(),this._map._setEditCursor(!1),this.enableControl(!0),this._map.closeSmallTooltip(),this._enabledDraw=!1,this.fire(EventType[t(F)],{drawtype:this[t(1488)],graphic:this},!0),null!=(e=this[t(1592)])&&e.success&&this.options.success(this),null!=(e=this[t(N)])&&null!=(t=e._promise)&&t.resolve&&this.options._promise.resolve(this)}},{key:"_startDrawHook",value:function(){var e=O;this._updatePointerEvents(!1),this._map.on(EventType.mouseMove,this._onMouseMoveHandler_point,this),this[e(3817)].on(EventType.click,this._onClickHandler_point,this)}},{key:O(802),value:function(){var e=O;this._map.off(EventType[e(v)],this[e(1036)],this),this._map.off(EventType[e(g)],this._onClickHandler_point,this),this[e(C)](this[e(H)]())}},{key:"_onMouseMoveHandler_point",value:function(e){var t=O,i=e.cartesian;i&&(this.position=i),this[t(m)].openSmallTooltip(e.endPosition,this._draw_tooltip||this._map.getLangText("_单击完成绘制")),this[t(d)](EventType[t(f)],_objectSpread2(_objectSpread2({},e),{},{drawtype:this[t(y)],graphic:this}),!0)}},{key:"_onClickHandler_point",value:function(e){e=e[O(p)];e&&(this.position=e),this.stopDraw()}},{key:O(o),value:function(){}},{key:O(l),value:function(){}},{key:"endDraw",value:function(){var e=O;if(!this[e(1329)])return this;this[e(_)].length<this._minPointNum||(this.updateAttrForDrawing(!1),this.stopDraw())}},{key:"updateAttrForDrawing",value:function(e){}},{key:"enableControl",value:function(e){var t=O;this._map.mouseEvent[t(1477)]=e,this._map.popup&&(this._map[t(1286)].enabled=e),this._map.tooltip&&(this._map[t(2568)][t(3463)]=e)}},{key:O(c),value:function(){var e=O;if(this._enabledEdit)return this;if(this._enabledEdit=!0,!this._map)throw new Error("编辑时_map不能为空,请将对象添加到图层,并且图层已添加到Map");this._draw_tooltip=this._map.getLangText("_释放后完成修改"),this.enableControl(!1),this.editing||(this.editing=new this.EditClass(this)),this.editing.activate&&this.editing[e(u)]()}},{key:O(h),value:function(){var e,t=O;if(!this._enabledEdit)return this;null!=(e=this.editing)&&e.disable&&this.editing.disable(),this[t(2580)](!0),this._map.closeSmallTooltip(),this[t(678)]=!1}}]),R}(),DEF_STYLE$7=(register$4(_0x1658de(1467),DivGraphic,!0),{font_size:15,font_family:"楷体",color:"#ccc",boderColor:"rgb(21, 209, 242)",horizontalOrigin:Cesium__namespace.HorizontalOrigin.CENTER,verticalOrigin:Cesium__namespace.VerticalOrigin.CENTER}),DivBoderLabel=function(){var i=3277,a=3045,s=2492,r=1567,n=_0x1658de,o=(_inherits(l,DivGraphic),_createSuper(l));function l(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},a=(_classCallCheck(this,l),i[t(2492)]=_objectSpread2(_objectSpread2({},DEF_STYLE$7),i.style||{}),i[t(s)].html=getHtmlByStyle$2(i.style,i.attr),e=o[t(r)](this,i),i.style.font_size),n=i.style[t(696)]||getStrLength(i.style.text)*a*.6,i=i.style.height||2*a;return e[t(4089)]=n,e._divHeight=i,e}return _createClass(l,[{key:"divWidth",get:function(){return this[_0x236b(4089)]}},{key:"divHeight",get:function(){return this[_0x236b(1687)]}},{key:n(3820),value:function(e){var t=n;return(Cesium__namespace.defined(e.color)||Cesium__namespace.defined(e.boderColor)||Cesium__namespace.defined(e.font_size)||Cesium__namespace.defined(e.font_family)||Cesium__namespace[t(i)](e[t(a)]))&&(this.html=getHtmlByStyle$2(this.style,this.attr)),_get(_getPrototypeOf(l.prototype),"_updateStyleBaseHook",this)[t(1567)](this,e),this}}]),l}();function getHtmlByStyle$2(e,t){var i=3159,a=2557,n=2137,s=1191,r=2557,o=_0x1658de,l=e[o(2745)],c=e.boderColor,h=Cesium__namespace.Color.fromCssColorString(c).withAlpha(.5).toCssColorString(),u=e.font_size,_=e.width||getStrLength(e.text)*u*.6,i=e[o(i)]||2*u;return o(2626)[o(a)](u,o(2792)).concat(_,o(n))[o(a)](_+u,o(s)).concat(_+u-2,"px;\n --boder-height: ").concat(i,"px;\n --clip-height-1: ").concat(i+10,"px;\n --clip-height-2: ").concat(i+8,"px;\n --text-color: ").concat(l,o(3146)).concat(c,";\n --box-shadow-color: ")[o(r)](h,';">\n <div class="gis3d-divBoderLabel-boder">\n <span class="gis3d-divBoderLabel-text" style="font-family:')[o(a)](e.font_family,';">').concat(template(e.text,t,null==(n=e.templateEmptyStr)||n),o(633))}register$4("divBoderLabel",DivBoderLabel,!0);var DEF_STYLE$6={color:"#f33349",horizontalOrigin:Cesium__namespace.HorizontalOrigin[_0x1658de(3316)],verticalOrigin:Cesium__namespace.VerticalOrigin.CENTER},DivLightPoint=function(){var i=3277,a=3260,n=1740,s=1567,t=(_inherits(r,DivGraphic),_createSuper(r));function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,r),e.style=_objectSpread2(_objectSpread2({},DEF_STYLE$6),e.style||{}),e.style.html=getHtmlByStyle$1(e.style,e.attr),t.call(this,e)}return _createClass(r,[{key:"_updateStyleBaseHook",value:function(e){var t=_0x236b;return(Cesium__namespace[t(3277)](e[t(2745)])||Cesium__namespace[t(i)](e[t(a)])||Cesium__namespace.defined(e.label))&&(this.html=getHtmlByStyle$1(this.style,this[t(n)])),_get(_getPrototypeOf(r[t(2385)]),t(3820),this)[t(s)](this,e),this}}]),r}();function getHtmlByStyle$1(e,t){var i=2745,a=460,n=_0x1658de;return'\n <div class="gis3d-animation-point" style="color:'[n(2557)](e.color,";width: ").concat(e.size,"px;height: ").concat(e.size,'px;">\n <p></p>\n ').concat(e.label?'<div class="gis3d-animation-point-lbl" style="color:'.concat(e[n(3686)][n(i)]||e.color,';">').concat(template(e.label.text,t,null==(i=e.label[n(483)])||i),n(a)):"","\n </div>")}register$4("divLightPoint",DivLightPoint,!0);var DEF_STYLE$5={color:"white",font_family:"楷体",font_size:15,lineHeight:100,circleSize:10,horizontalOrigin:Cesium__namespace.HorizontalOrigin[_0x1658de(3316)],verticalOrigin:Cesium__namespace.VerticalOrigin.BOTTOM},DivUpLabel=function(){var i=3277,a=3977,n=2822,s=1740,r=(_inherits(o,DivGraphic),_createSuper(o));function o(){var e=_0x236b,t=0<arguments[e(n)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,o),t.style=_objectSpread2(_objectSpread2({},DEF_STYLE$5),t.style||{}),t.style.html=getHtmlByStyle(t[e(2492)],t[e(s)]),r.call(this,t)}return _createClass(o,[{key:"_updateStyleBaseHook",value:function(e){var t=_0x236b;return(Cesium__namespace[t(3277)](e.color)||Cesium__namespace[t(3277)](e.circleSize)||Cesium__namespace[t(i)](e.font_size)||Cesium__namespace.defined(e[t(a)])||Cesium__namespace.defined(e.lineHeight)||Cesium__namespace.defined(e[t(3045)]))&&(this.html=getHtmlByStyle(this.style,this.attr)),_get(_getPrototypeOf(o.prototype),t(3820),this)[t(1567)](this,e),this}}]),o}();function getHtmlByStyle(e,t){var i=2101,a=4016,n=1386,s=_0x1658de,r=e.color,i=e[s(i)];return'\n <div class="gis3d-divUpLabel" style="color: '.concat(r,';">\n <div class="gis3d-divUpLabel-text" style="font-family:').concat(e.font_family,s(1449)).concat(e.font_size,s(1175)).concat(template(e.text,t,!0),s(1077)).concat(e.lineHeight,s(a))[s(2557)](r,';"></div>\n <div style="border-radius: 50%;\n width: ').concat(i,"px;\n height: ").concat(i,"px;\n margin-left: calc(50% - ")[s(2557)](i/2,"px);\n background-color: ").concat(r,s(n))}register$4("divUpLabel",DivUpLabel,!0);var Popup=function(){var e=2762,t=2034,i=2784,a=4030,n=3626,s=1286,r=2723,o=3085,l=2562,c=926,h=2492,u=3448,_=979,p=1732,m=2764,d=1692,f=1592,y=1550,v=1469,g=3316,C=3693,x=1592,b=_0x1658de,k=(_inherits(P,DivGraphic),_createSuper(P));function P(){var e,t,i=_0x236b,a=0<arguments[i(2822)]&&void 0!==arguments[0]?arguments[0]:{},n=(_classCallCheck(this,P),a.eventParent=null!=(e=a.eventParent)&&e,a[i(638)]=null!=(e=a.hasEdit)&&e,a.animation=null==(e=a.animation)||e,a.zIndex=null!=(e=a.zIndex)?e:1e7,a.style=a.style||{},a[i(2492)].direction=null!=(e=a.style.direction)?e:"top",{});switch(a.style.direction){case"top":n.offsetY=-8,n.horizontalOrigin=Cesium__namespace.HorizontalOrigin.CENTER,n.verticalOrigin=Cesium__namespace[i(2629)].BOTTOM;break;case"bottom":n[i(y)]=8,n.horizontalOrigin=Cesium__namespace.HorizontalOrigin[i(3316)],n.verticalOrigin=Cesium__namespace.VerticalOrigin[i(v)];break;case"center":n.horizontalOrigin=Cesium__namespace.HorizontalOrigin.CENTER,n.verticalOrigin=Cesium__namespace.VerticalOrigin[i(g)];break;case"right":n[i(3607)]=8,n[i(1598)]=Cesium__namespace[i(1391)][i(C)],n.verticalOrigin=Cesium__namespace.VerticalOrigin[i(g)];break;case"left":n.offsetX=-8,n.horizontalOrigin=Cesium__namespace.HorizontalOrigin.RIGHT,n.verticalOrigin=Cesium__namespace.VerticalOrigin[i(3316)]}return a[i(2492)]=_objectSpread2(_objectSpread2({},n),a.style),(t=k.call(this,a))._depthTest=null!=(a=null!=(e=t[i(x)].depthTest)?e:t.style.depthTest)&&a,Cesium__namespace.defined(t[i(2492)].template)||!1===t[i(2492)].template||(t.style[i(1627)]=t._getDefaultTemplate()),t.once(EventType.load,function(){t[i(2123)]()}),t}return _createClass(P,[{key:"target",get:function(){var e;return null==(e=this[_0x236b(f)])?void 0:e.target}},{key:b(e),get:function(){var e,t=b;return null!=(e=this.options)&&e[t(2723)]?this[t(1592)].event:null!=(e=this.options)&&e.target?this.options.target:this}},{key:"_getDefaultTemplate",value:function(){var e=b,t=null==(t=this[e(2492)][e(2909)])||t?e(2860):"",i="";return this[e(h)].maxWidth&&(i+="max-width: "[e(2557)](this.style.maxWidth,e(u))),this.style.minWidth&&(i+="min-width: ".concat(this.style[e(_)],"px;")),this[e(2492)][e(p)]&&(i+=e(481).concat(this.style.maxHeight,e(3448))),'\n <div class="gis3d-popup '.concat(!this.style.timeRender&&this.options[e(m)]?"gis3d-popup-animation":"",'">\n ')[e(2557)](t,e(d)).concat(this.id,'" class="gis3d-popup-content gis3d-popup-color" style="').concat(i,'">{content}</div>\n </div>\n <div class="gis3d-popup-tip-container">\n <div class="gis3d-popup-tip gis3d-popup-background"></div>\n </div>\n </div>')}},{key:b(1611),value:function(){var i=4071,a=b,n=this,e=this._container[a(3297)](a(c));e&&e.addEventListener("click",function(e){var t=a;n[t(3903)]&&n.target[t(1803)]&&n.target.closeHighlight(),n[t(i)](!0)})}},{key:"fireTarget",value:function(e){var t=b,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=!(2<arguments[t(2822)]&&void 0!==arguments[2])||arguments[2],n=this.target||this._map;if(n){if(this[t(1592)].event)for(var s in this.options[t(r)])"options"!==s&&s!==t(o)&&(i[s]=this[t(1592)].event[s]);i.sourceTarget=n,i.attr=this.attr,i.container=this.container,this[t(l)](i),n.fire(e,i,a)}}},{key:"_fireBindDataEx",value:function(e){e[b(s)]=this}},{key:"_addedHook",value:function(e){var a=3817,n=3159,s=b,r=this;_get(_getPrototypeOf(P.prototype),s(563),this).call(this,e),this.once(EventType.change,function(e){var t,i=s;r.options.autoCenter&&r[i(a)]&&(e.y<0||e.x<0||e.x>r._map.scene[i(3252)].clientWidth-e.width||e.y>r[i(3817)].scene.canvas.clientHeight-e[i(3159)])&&(t=e.width/2+e.x,i=e[i(n)]/2+e.y,e=new Cesium__namespace.Cartesian2(t,i),t=r._map.scene.camera.getPickRay(e),i=(i=r._map.scene.globe.pick(t,r._map.scene))||r._map.scene.camera.pickEllipsoid(e),r._map.flyToPoint(i))}),this.target&&this.target.on(EventType[s(1026)],this._graphic_updatePosition,this)}},{key:b(2071),value:function(){var e=b;this[e(3903)]&&this.target[e(a)](EventType.updatePosition,this[e(n)],this),this._fireTarget_close(),_get(_getPrototypeOf(P.prototype),"_removedHook",this).call(this)}},{key:"_graphic_updatePosition",value:function(e){var t;null!=(t=e.graphic)&&t._getPopupPosition&&(this.position=e.graphic._getPopupPosition())}},{key:"_fireTarget_open",value:function(){this.fireTarget(EventType.popupOpen)}},{key:"_fireTarget_close",value:function(){var e=b;this.fireTarget(EventType[e(i)])}},{key:"_closeAllControl",value:function(){}},{key:"_container_onClickHandler",value:function(){}},{key:b(3733),value:function(){}},{key:"_container_onMouseMoveHandler",value:function(){}},{key:b(t),value:function(){}},{key:"hasBindEvent",value:function(){var e;return null==(e=this[b(1592)].pointerEvents)||e}}]),P}(),Tooltip=(register$4("popup",Popup),function(){var e=1743,t=2568,i=_0x1658de,a=(_inherits(n,Popup),_createSuper(n));function n(){return _classCallCheck(this,n),a.apply(this,arguments)}return _createClass(n,[{key:"_getDefaultTemplate",value:function(){var e=_0x236b;return'<div id="tooltip-'.concat(this.id,'" class="gis3d-tooltip gis3d-tooltip-')[e(2557)](this[e(2492)].direction,'">{content}</div>')}},{key:i(2562),value:function(e){e[i(t)]=this}},{key:"_fireTarget_open",value:function(){this[i(e)](EventType.tooltipOpen)}},{key:"_fireTarget_close",value:function(){var e=i;this.fireTarget(EventType[e(2122)])}}]),n}()),DEF_STYLE$4=(register$4("tooltip",Tooltip),{startColor:Cesium__namespace[_0x1658de(3096)].LIGHTCYAN[_0x1658de(3535)](.3),endColor:Cesium__namespace.Color[_0x1658de(3644)][_0x1658de(3535)](0),startScale:2,endScale:4,minimumParticleLife:3,maximumParticleLife:6,minimumSpeed:1,maximumSpeed:2,emissionRate:100}),ParticleSystem=function(){var i=3243,n=3029,e=2885,t=2885,a=784,s=2416,r=2251,o=2958,l=2046,c=2251,h=2416,u=1592,_=1111,p=3342,m=1111,d=2885,f=3277,y=919,v=1732,g=3475,C=2532,x=1592,b=2371,k=1592,P=2033,w=758,S=2885,T=2885,M=3799,E=2885,A=784,L=_0x1658de,D=(_inherits(I,BasePointPrimitive),_createSuper(I));function I(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,I),t.style=_objectSpread2(_objectSpread2({},DEF_STYLE$4),{},{emitter:new Cesium__namespace.CircleEmitter(1)},t.style||{}),(t=D.call(this,t))[e(2416)]=new Cesium__namespace[e(3342)],t.translation=new Cesium__namespace[e(A)],t[e(2046)]=new Cesium__namespace[e(373)],t.hpr=new Cesium__namespace.HeadingPitchRoll,t.trs=new Cesium__namespace.TranslationRotationScale,t}return _createClass(I,[{key:L(417),get:function(){return this[L(E)]}},{key:"maxHeight",get:function(){return this.style.maxHeight},set:function(e){this.style.maxHeight=e}},{key:"gravity",get:function(){return this.style.gravity||0},set:function(e){this.style.gravity=e}},{key:"transX",get:function(){return this[L(2492)].transX||0},set:function(e){this.style.transX=e}},{key:L(3307),get:function(){return this.style.transY||0},set:function(e){this.style.transY=e}},{key:L(3799),get:function(){var e=L;return this.style[e(3799)]||0},set:function(e){var t=L;this.style[t(M)]=e}},{key:"particleSize",get:function(){return this.style.particleSize||25},set:function(e){var t=L;this.style.particleSize=e,this[t(T)]&&(this._primitive.minimumImageSize.x=e,this[t(2885)].minimumImageSize.y=e,this._primitive.maximumImageSize.x=e,this._primitive[t(2521)].y=e)}},{key:L(1312),get:function(){return!1}},{key:"_addedHook",value:function(e){var t,i,a,n=1813,s=3299,r=3003,o=1813,l=L;this.show&&(t=this._map[l(1899)].currentTime,t=_objectSpread2(_objectSpread2({imageSize:new Cesium__namespace.Cartesian2(this.particleSize,this.particleSize),modelMatrix:this[l(3971)](t),emitterModelMatrix:this._computeEmitterModelMatrix(t)},this.style),{},{show:this[l(4045)]}),this[l(2885)]=new Cesium__namespace.ParticleSystem(t),this.primitiveCollection.add(this._primitive),this.options[l(2532)]&&(this.options[l(C)]instanceof Cesium__namespace[l(3121)]||this[l(x)].position instanceof Cesium__namespace[l(2379)])&&(this._orientation=this.options[l(b)]||new Cesium__namespace.VelocityOrientationProperty(this[l(1592)].position),this.property=this[l(k)][l(2532)]),this._bindUpdateCallback(),this._hasUpdate_modelMatrix=isFunction(this.options.modelMatrix)||this.property,this._hasUpdate_emitterModelMatrix=isFunction(this.options.emitterModelMatrix)||this.heading||this[l(P)]||this.roll||this.transX||this.transY||this.transZ,i=this._primitive[l(w)],(a=this)[l(S)].update=function(e){var t=l;a._update(e),this[t(n)]&&10<Cesium__namespace.JulianDate[t(s)](e.time,this._previousTime)&&(this[t(1813)]=Cesium__namespace.JulianDate.clone(e[t(r)],this[t(o)])),i.bind(this)(e)})}},{key:"_removedHook",value:function(){var e=L;this._map&&this[e(g)].remove(this._primitive)}},{key:"_update",value:function(e){var t=L;this[t(4045)]&&this._primitive&&this._map&&(this.property&&(this[t(m)]=getPositionValue(this.property,e.time)),this._hasUpdate_modelMatrix&&(this[t(d)].modelMatrix=this._computeModelMatrix(e[t(3003)])),this._hasUpdate_emitterModelMatrix&&(this[t(d)].emitterModelMatrix=this._computeEmitterModelMatrix(e.time)),Cesium__namespace[t(f)](this.maxHeight)&&e.frameNumber%10==0&&(this._map.camera[t(y)].height<this[t(v)]?this._primitive.show!==this.show&&(this[t(d)].show=this[t(4045)]):this[t(2885)].show&&(this._primitive.show=!1)),this[t(d)]._isComplete)&&this.fire("complete")}},{key:"_computeModelMatrix",value:function(e){var t=L;return this.options.modelMatrix?isFunction(this.options.modelMatrix)?this[t(1592)].modelMatrix(e):this[t(u)].modelMatrix:this._position?Cesium__namespace.Transforms.eastNorthUpToFixedFrame(this[t(_)]):new Cesium__namespace[t(p)]}},{key:"_computeEmitterModelMatrix",value:function(e){var t,i,a=L;return this.options[a(s)]?isFunction(this.options.emitterModelMatrix)?this.options.emitterModelMatrix(e):this.options.emitterModelMatrix:(e=this.heading,t=this.pitch,i=this.roll,this.hpr=Cesium__namespace.HeadingPitchRoll.fromDegrees(e,t,i,this[a(r)]),this.trs.translation=Cesium__namespace.Cartesian3[a(o)](this.transX,this.transY,this.transZ,this.translation),this.trs[a(l)]=Cesium__namespace.Quaternion.fromHeadingPitchRoll(this[a(c)],this.rotation),Cesium__namespace.Matrix4.fromTranslationRotationScale(this.trs,this[a(h)]),this[a(2416)])}},{key:L(2007),value:function(){var n,s,r=3970,o=L;this.options.updateCallback?this._primitive.updateCallback=this[o(1592)].updateCallback:0===this.gravity?this[o(e)].updateCallback=void 0:this[o(t)].updateCallback||(n=this,s=new Cesium__namespace[o(a)],this._primitive.updateCallback=function(e,t){var i=o,a=e.position;Cesium__namespace.Cartesian3[i(1346)](a,s),Cesium__namespace.Cartesian3[i(2816)](s,n.gravity*t,s),e.velocity=Cesium__namespace.Cartesian3.add(e[i(r)],s,e.velocity)})}},{key:"_updateStyleHook",value:function(e,t){var i=L;if(this._primitive){for(var a in t)this._primitive[a]=t[a];t.particleSize&&(this.particleSize=t.particleSize),t[i(n)]&&this._bindUpdateCallback()}this[i(3194)]=isFunction(this.options.emitterModelMatrix)||this.heading||this.pitch||this.roll||this.transX||this.transY||this.transZ}},{key:"_getDrawEntityClass",value:function(e,t){return this[L(i)](e,t)}}]),I}(),ArcFrustumFS=(register$4("particleSystem",ParticleSystem,!0),"uniform vec4 color;\n\nvoid main() {\n out_FragColor = color;\n}\n"),ArcFrustumVS="in vec4 aPosition;\n\nvoid main() {\n gl_Position = czm_modelViewProjection * vec4(aPosition.xyz, 1.0);\n}\n",DEF_STYLE$3={color:Cesium__namespace[_0x1658de(3096)].WHITE},ArcFrustum=function(){var e=1173,t=4044,i=3645,T=3007,M=1195,E=1195,r=2850,o=3296,l=1436,c=1737,h=2532,u=1737,_=2381,p=1200,m=712,d=3346,a=796,n=438,s=438,f=3475,y=3475,v=3605,g=1592,C=1124,x=977,b=965,k=3083,P=2492,A=_0x1658de,w=(_inherits(S,BasePointPrimitive),_createSuper(S));function S(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,S),t.style=_objectSpread2(_objectSpread2({},DEF_STYLE$3),t[e(2492)]||{}),delete(t=w.call(this,t))._position,delete t[e(k)],t._boundingSphere=new Cesium__namespace[e(3481)],t[e(965)]=getCesiumColor(t[e(P)].color),t}return _createClass(S,[{key:"czmObject",get:function(){return this}},{key:"color",get:function(){return this[_0x236b(965)]},set:function(e){this[_0x236b(b)]=e}},{key:A(3879),get:function(){var e=A;return this.style[e(3879)]},set:function(e){var t=A;this.style.angle=e,this[t(4044)]()}},{key:A(e),get:function(){var e;return null!=(e=this.style.angle2)?e:this.style.angle},set:function(e){var t=A;this.style[t(1173)]=e,this.destroyCommands()}},{key:A(1436),get:function(){var e,t,i,a=A;return this[a(1592)].modelMatrix?this[a(g)].modelMatrix:(e=this.position,t=new Cesium__namespace.HeadingPitchRoll(Cesium__namespace[a(C)][a(2581)](this.heading),Cesium__namespace.Math.toRadians(this.pitch),Cesium__namespace.Math.toRadians(this.roll)),(i=new Cesium__namespace.Camera(this[a(3817)].scene))[a(2532)]=e,i.frustum.fov=Cesium__namespace.Math.toRadians(2*this[a(3879)]),i.frustum.aspectRatio=this.angle/this[a(1173)],i[a(378)].near=.01,i[a(378)].far=this.style.distance,i.setView({destination:e,orientation:{heading:t[a(x)],pitch:t.pitch,roll:t[a(2574)]}}),i.inverseViewMatrix)}},{key:"updateModelMatrix",value:function(){this.destroyCommands()}},{key:"_addedHook",value:function(e){var t=A;this.show&&this[t(y)][t(v)](this)}},{key:"_removedHook",value:function(){var e=A;this.primitiveCollection[e(1135)](this)&&(this._noDestroy=!0,this[e(f)].remove(this),this._noDestroy=!1)}},{key:A(758),value:function(e){var t=A;this.show&&(Cesium__namespace.defined(this._command)||(this._command=this.createCommand(e.context)),e[t(3257)][t(3377)])&&Cesium__namespace.defined(this._command)&&e.commandList.push(this._command)}},{key:A(t),value:function(){var e=A;Cesium__namespace.defined(this[e(515)])&&(this._command[e(a)]&&this._command.shaderProgram.destroy(),this._command[e(n)]&&this._command[e(s)][e(1553)](),delete this[e(515)])}},{key:"createCommand",value:function(e){var t=A,i=this,a=(this.destroyCommands(),this.createVertices()),n={aPosition:0},s=Cesium__namespace.Buffer.createVertexBuffer({context:e,typedArray:a.vertices,usage:Cesium__namespace[t(2597)].STATIC_DRAW}),s=[{index:n[t(r)],vertexBuffer:s,componentsPerAttribute:3,componentDatatype:Cesium__namespace.ComponentDatatype.FLOAT,offsetInBytes:0,strideInBytes:12,normalize:!1}],a=Cesium__namespace.Buffer.createIndexBuffer({context:e,typedArray:a[t(o)],usage:Cesium__namespace.BufferUsage[t(819)],indexDatatype:Cesium__namespace.IndexDatatype.UNSIGNED_SHORT}),s=new Cesium__namespace.VertexArray({context:e,attributes:s,indexBuffer:a}),a=this[t(l)],e=(this[t(c)].radius=this.style.distance,this[t(2532)]?this[t(1737)].position=this[t(h)]:(Cesium__namespace[t(784)][t(3060)](Cesium__namespace.Cartesian3.ZERO,this._boundingSphere.center),Cesium__namespace.BoundingSphere.transform(this._boundingSphere,a,this[t(u)])),new Cesium__namespace[t(_)]({primitiveType:Cesium__namespace[t(2219)][t(3599)],shaderProgram:Cesium__namespace[t(p)].fromCache({context:e,vertexShaderSource:ArcFrustumVS,fragmentShaderSource:ArcFrustumFS,attributeLocations:n}),vertexArray:s,modelMatrix:a,boundingVolume:this._boundingSphere,uniformMap:{color:function(){return i[t(2745)]}},pass:Cesium__namespace[t(m)][t(d)],owner:this,cull:!0,renderState:Cesium__namespace.RenderState.fromCache({cull:{enabled:!0},depthTest:{enabled:!0}})}));return this.bindPickId(e),e}},{key:A(i),value:function(){for(var e,t=A,i=this.style[t(1937)],a=Cesium__namespace.ComponentDatatype.createTypedArray(Cesium__namespace.ComponentDatatype.FLOAT,1326),n=3,s=Cesium__namespace.Math.toRadians(2*this[t(3879)]),r=Cesium__namespace.Math.toRadians(2*this[t(1173)]),o=i*Math.tan(.5*r),l=Math.PI-.5*s,c=s/20,h=0;h<21;h++)for(var u=l+h*c,_=o/(i/Math[t(T)](u)),_=Math.atan(_),p=-_,m=2*_/20,d=0;d<21;d++)e=p+d*m,a[n++]=i*Math.cos(e)*Math.sin(u),a[n++]=i*Math.sin(e),a[n++]=i*Math.cos(e)*Math.cos(u);var f=Cesium__namespace[t(M)].createTypedArray(Cesium__namespace.ComponentDatatype.UNSIGNED_SHORT,448),y=0;f[y++]=0,f[y++]=1,f[y++]=0,f[y++]=21,f[y++]=0,f[y++]=421,f[y++]=0,f[y++]=441;for(var v=0;v<5;v++)for(var g=0;g<20;g++)f[y++]=1+g+105*v,f[y++]=1+(g+1)+105*v;for(var C=0;C<5;C++)for(var x=0;x<20;x++)f[y++]=1+21*x+5*C,f[y++]=1+21*(x+1)+5*C;for(var b=Cesium__namespace[t(1195)].createTypedArray(Cesium__namespace[t(E)].SHORT,2640),k=0;k<20;k++)for(var P=0;P<20;P++)b[y++]=1+k+21*P,b[y++]=1+k+1+21*P,b[y++]=1+k+21*(P+1),b[y++]=1+k+1+21*P,b[y++]=1+k+1+21*(P+1),b[y++]=1+k+21*(P+1);for(var w=0;w<20;w++)b[y++]=w+1+1,b[y++]=w+1,b[y++]=0,b[y++]=0,b[y++]=w+420+1,b[y++]=w+1+420+1;for(var S=0;S<20;S++)b[y++]=0,b[y++]=21*S+1,b[y++]=21*(S+1)+1,b[y++]=20+21*(S+1)+1,b[y++]=20+21*S+1,b[y++]=0;return{vertices:a,indices:f}}}]),S}(),TetrahedronFS=(register$4("arcFrustum",ArcFrustum,!0),"in vec3 v_positionEC;\nin vec3 v_normalEC;\nin vec2 v_st;\nuniform vec4 color;\nuniform float globalAlpha;\n\nvoid main() {\n vec3 positionToEyeEC = -v_positionEC;\n vec3 normalEC = normalize(v_normalEC);\n #ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n #endif\n czm_materialInput materialInput;\n materialInput.normalEC = normalEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n materialInput.st = v_st;\n\n vec2 st = materialInput.st;\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n material.alpha = (mix(0.1, 1.0, clamp((1.0 - st.t) * color.a, 0.0, 1.0)) + (1.0 - sign(st.t - czm_frameNumber * 0.001)) * 0.2 + 0.4) * globalAlpha;\n material.diffuse = color.rgb;\n\n #ifdef FLAT\n out_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n #else\n out_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n #endif\n}\n"),TetrahedronVS=_0x1658de(467),DEF_STYLE$2={width:20,height:30,color:new Cesium__namespace.Color(.8,.8,0,.8),animation:!0,moveHeight:30,moveDuration:2,rotationAngle:1},Tetrahedron=function(){var t=3223,a=807,n=2700,s=2370,c=906,h=3653,u=491,_=832,p=2687,m=1436,i=1713,r=796,o=923,l=438,d=2492,f=3724,y=2362,v=3915,g=3377,C=2829,x=2492,b=3710,k=4071,P=3692,w=2492,S=4054,e=965,T=2492,M=2492,E=3223,A=_0x1658de,L=(_inherits(D,BasePointPrimitive),_createSuper(D));function D(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,D),t[e(T)]=_objectSpread2(_objectSpread2({},DEF_STYLE$2),t[e(M)]||{}),(t=L.call(this,t))[e(E)]=1,t}return _createClass(D,[{key:"czmObject",get:function(){return this}},{key:"color",get:function(){return this[_0x236b(e)]},set:function(e){this[_0x236b(965)]=getCesiumColor(e)}},{key:A(1436),get:function(){var e,t,i=A;return this[i(1592)].modelMatrix?this[i(1592)].modelMatrix:this.position?(e=Cesium__namespace.Transforms.eastNorthUpToFixedFrame(this.position),t=Cesium__namespace.Matrix4.fromScale(new Cesium__namespace.Cartesian3(this.style[i(696)],this[i(w)].width,this.style[i(3159)])),Cesium__namespace.Matrix4[i(S)](e,t,new Cesium__namespace.Matrix4)):Cesium__namespace.Matrix4[i(3886)]}},{key:"_addedHook",value:function(e){var t=A;this.show&&this[t(2532)]&&(this[t(P)](e,e),this[t(3475)][t(3605)](this))}},{key:A(2071),value:function(){var e=A;this.primitiveCollection&&this.primitiveCollection.contains(this)&&(this[e(b)]=!0,this.primitiveCollection[e(k)](this),this._noDestroy=!1),delete this._modelMatrix}},{key:"_updatePositionsHook",value:function(){this._modelMatrix=this.modelMatrix,this._clearDrawCommand()}},{key:"_updateStyleHook",value:function(e,t){var i=A;(t.width||t.height)&&this._updatePositionsHook(),this.color=e.color,this._rotationAngle=Cesium__namespace.Math.toRadians(e.rotationAngle),this._moveMaxHeight=e.moveHeight/this[i(x)].height,0!==this._moveMaxHeight&&(this[i(3724)]=this._moveMaxHeight/(60*e.moveDuration),this._moveDistanceSum=0)}},{key:A(758),value:function(e){var t,i=A;this.show&&(this[i(d)].animation&&(0!==this._moveMaxHeight&&(this[i(3393)]+=this._moveDistanceStep,(this._moveDistanceSum>=this._moveMaxHeight||this[i(3393)]<=0)&&(this._moveDistanceStep=-this._moveDistanceStep),t=new Cesium__namespace.Cartesian3(0,0,this[i(f)]),Cesium__namespace.Matrix4.multiplyByTranslation(this._modelMatrix,t,this[i(y)])),0!==this[i(4109)])&&(t=Cesium__namespace.Matrix4[i(3437)](Cesium__namespace[i(v)].fromRotationZ(this._rotationAngle)),Cesium__namespace.Matrix4.multiply(this._modelMatrix,t,this._modelMatrix)),Cesium__namespace.defined(this._drawCommand)||(this._drawCommand=this[i(615)](e.context)),e[i(3257)][i(g)]?Cesium__namespace.defined(this._drawCommand)&&e.commandList.push(this._drawCommand):Cesium__namespace.defined(this._pickCommand)&&e[i(C)].push(this._pickCommand))}},{key:"_clearDrawCommand",value:function(){var e=A;Cesium__namespace.defined(this._drawCommand)&&(this._drawCommand.vertexArray&&this[e(i)][e(438)].destroy(),this._drawCommand.shaderProgram&&this[e(1713)][e(r)][e(1553)](),delete this._drawCommand),Cesium__namespace.defined(this[e(o)])&&(this[e(923)].vertexArray&&this._pickCommand[e(l)].destroy(),this._pickCommand.shaderProgram&&this._pickCommand[e(796)].destroy(),delete this._pickCommand)}},{key:"createDrawCommand",value:function(e){var t=A,i=this,a=null!=(a=this.style[t(3812)])&&a,n=null==(n=this.style[t(c)])||n,a=Cesium__namespace[t(h)].getDefaultRenderState(a,n,this.options.renderState),n=Cesium__namespace.RenderState.fromCache(a),a={position:0,textureCoordinates:1},s=Cesium__namespace.ShaderProgram[t(u)]({context:e,vertexShaderSource:TetrahedronVS,fragmentShaderSource:TetrahedronFS,attributeLocations:a}),r=this.createVertexArray(e),o=new Cesium__namespace.BoundingSphere(this.position,Math.max(this.style.width,this[t(2492)].height)),l=new Cesium__namespace.DrawCommand({primitiveType:Cesium__namespace.PrimitiveType[t(832)],shaderProgram:s,vertexArray:r,modelMatrix:this._modelMatrix,renderState:n,boundingVolume:o,uniformMap:{color:function(){return i.color},globalAlpha:function(){return i._globalAlpha}},castShadows:!1,receiveShadows:!1,pass:Cesium__namespace.Pass.TRANSLUCENT,owner:this,pickOnly:!0,pickCommand:new Cesium__namespace.DrawCommand({owner:this,pickOnly:!0})}),s=(this.bindPickId(l),l.pickId=e.createPickId({primitive:l,id:this.id}),new Cesium__namespace.DrawCommand({owner:l,primitiveType:Cesium__namespace.PrimitiveType[t(_)],pickOnly:!0})),r=(s.vertexArray=r,s.renderState=n,Cesium__namespace.ShaderProgram.fromCache({context:e,vertexShaderSource:TetrahedronVS,fragmentShaderSource:Cesium__namespace.ShaderSource.createPickFragmentShaderSource(TetrahedronFS,"uniform"),attributeLocations:a}));return s.shaderProgram=r,s[t(1650)]=l.uniformMap,s.uniformMap[t(2859)]=function(){return l.pickId.color},s.pass=Cesium__namespace.Pass[t(p)],s.boundingVolume=o,s[t(m)]=this._modelMatrix,this[t(923)]=s,l}},{key:"createVertexArray",value:function(e){var t=A,i=this.cereatePositionsAndIndice(),i=new Cesium__namespace.Geometry({attributes:{position:new Cesium__namespace.GeometryAttribute({componentDatatype:Cesium__namespace.ComponentDatatype[t(a)],componentsPerAttribute:3,values:i[t(1980)]}),textureCoordinates:new Cesium__namespace[t(n)]({componentDatatype:Cesium__namespace.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:i.sts})},indices:i.indices,primitiveType:Cesium__namespace.PrimitiveType.TRIANGLES,boundingSphere:Cesium__namespace[t(3481)][t(583)](i.positions)}),i=Cesium__namespace.GeometryPipeline.computeNormal(i);return Cesium__namespace[t(s)].fromGeometry({context:e,geometry:i,attributeLocations:{position:0,textureCoordinates:1},bufferUsage:Cesium__namespace[t(2597)].STATIC_DRAW})}},{key:"cereatePositionsAndIndice",value:function(){var e=new Float64Array(15),t=(e[0]=0,e[1]=1,e[2]=0,e[3]=-1,e[4]=0,e[5]=0,e[6]=0,e[7]=-1,e[8]=0,e[9]=1,e[10]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=-1,new Uint16Array(18)),i=(t[0]=4,t[1]=2,t[2]=3,t[3]=4,t[4]=3,t[5]=0,t[6]=4,t[7]=0,t[8]=1,t[9]=4,t[10]=1,t[11]=2,t[12]=1,t[13]=2,t[14]=3,t[15]=1,t[16]=3,t[17]=0,new Float32Array([0,0,1,0,1,1,0,1,.5,.5]));return{indices:t,positions:e,sts:i}}},{key:"setOpacity",value:function(e){this[A(t)]=e}},{key:"_getDrawEntityClass",value:function(e,t){return this._getDrawPointEntityClass(e,t)}}]),D}(),ViewShedFS=(register$4("tetrahedron",Tetrahedron,!0),"uniform float gis3d_xAngle;\nuniform float gis3d_yAngle;\nuniform float gis3d_distance;\nuniform float gis3d_opacity;\n\nuniform vec3 gis3d_visibleAreaColor;\nuniform vec3 gis3d_hiddenAreaColor;\n\nuniform sampler2D shadowMap_texture;\nuniform mat4 shadowMap_matrix;\nuniform vec4 shadowMap_lightPositionEC;\nuniform vec4 shadowMap_lightDirectionEC;\nuniform vec3 shadowMap_lightUp;\nuniform vec3 shadowMap_lightDir;\nuniform vec3 shadowMap_lightRight;\nuniform vec4 shadowMap_texelSizeDepthBias;\nuniform vec4 shadowMap_normalOffsetScale;\n\nuniform sampler2D colorTexture;\nuniform sampler2D depthTexture;\nin vec2 v_textureCoordinates;\n\nvec4 toEye(in vec2 uv, in float depth) {\n vec2 xy = vec2((uv.x * 2.0 - 1.0), (uv.y * 2.0 - 1.0));\n vec4 posInCamera = czm_inverseProjection * vec4(xy, depth, 1.0);\n posInCamera = posInCamera / posInCamera.w;\n return posInCamera;\n}\n\nfloat getDepth(in vec4 depth) {\n float z_window = czm_unpackDepth(depth);\n z_window = czm_reverseLogDepth(z_window);\n float n_range = czm_depthRange.near;\n float f_range = czm_depthRange.far;\n return (2.0 * z_window - n_range - f_range) / (f_range - n_range);\n}\nfloat _czm_sampleShadowMap(sampler2D shadowMap, vec2 uv) {\n return texture(shadowMap, uv).r;\n}\nfloat _czm_shadowDepthCompare(sampler2D shadowMap, vec2 uv, float depth) {\n return step(depth, _czm_sampleShadowMap(shadowMap, uv));\n}\nfloat _czm_shadowVisibility(sampler2D shadowMap, czm_shadowParameters shadowParameters) {\n float depthBias = shadowParameters.depthBias;\n float depth = shadowParameters.depth;\n float nDotL = shadowParameters.nDotL;\n float normalShadingSmooth = shadowParameters.normalShadingSmooth;\n float darkness = shadowParameters.darkness;\n vec2 uv = shadowParameters.texCoords;\n depth -= depthBias;\n vec2 texelStepSize = shadowParameters.texelStepSize;\n float radius = 1.0;\n float dx0 = -texelStepSize.x * radius;\n float dy0 = -texelStepSize.y * radius;\n float dx1 = texelStepSize.x * radius;\n float dy1 = texelStepSize.y * radius;\n float visibility = (_czm_shadowDepthCompare(shadowMap, uv, depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx0, dy0), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(0.0, dy0), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx1, dy0), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx0, 0.0), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx1, 0.0), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx0, dy1), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(0.0, dy1), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx1, dy1), depth)) * (1.0 / 9.0);\n return visibility;\n}\n\nvec3 pointProjectOnPlane(in vec3 planeNormal, in vec3 planeOrigin, in vec3 point) {\n vec3 v01 = point - planeOrigin;\n float d = dot(planeNormal, v01);\n return (point - planeNormal * d);\n}\nfloat ptm(vec3 pt) {\n return sqrt(pt.x * pt.x + pt.y * pt.y + pt.z * pt.z);\n}\n\nvoid main() {\n const float PI = 3.141592653589793;\n vec4 color = texture(colorTexture, v_textureCoordinates);\n vec4 currD = texture(depthTexture, v_textureCoordinates);\n if(currD.r >= 1.0) {\n out_FragColor = color;\n return;\n }\n float depth = getDepth(currD);\n vec4 positionEC = toEye(v_textureCoordinates, depth);\n vec3 normalEC = vec3(1.0);\n czm_shadowParameters shadowParameters;\n shadowParameters.texelStepSize = shadowMap_texelSizeDepthBias.xy;\n shadowParameters.depthBias = shadowMap_texelSizeDepthBias.z;\n shadowParameters.normalShadingSmooth = shadowMap_texelSizeDepthBias.w;\n shadowParameters.darkness = shadowMap_normalOffsetScale.w;\n shadowParameters.depthBias *= max(depth * 0.01, 1.0);\n\n vec3 directionEC = normalize(positionEC.xyz - shadowMap_lightPositionEC.xyz);\n float nDotL = clamp(dot(normalEC, -directionEC), 0.0, 1.0);\n vec4 shadowPosition = shadowMap_matrix * positionEC;\n shadowPosition /= shadowPosition.w;\n if(any(lessThan(shadowPosition.xyz, vec3(0.0))) || any(greaterThan(shadowPosition.xyz, vec3(1.0)))) {\n out_FragColor = color;\n return;\n }\n\n //坐标与视点位置距离,大于最大距离则舍弃阴影效果\n vec4 lw = czm_inverseView * vec4(shadowMap_lightPositionEC.xyz, 1.0);\n vec4 vw = czm_inverseView * vec4(positionEC.xyz, 1.0);\n if(distance(lw.xyz, vw.xyz) > gis3d_distance) {\n out_FragColor = color;\n return;\n }\n\n //水平夹角限制\n vec3 ptOnSP = pointProjectOnPlane(shadowMap_lightUp, lw.xyz, vw.xyz);\n directionEC = ptOnSP - lw.xyz;\n float directionECMO = ptm(directionEC.xyz);\n float shadowMap_lightDirMO = ptm(shadowMap_lightDir.xyz);\n float cosJJ = dot(directionEC, shadowMap_lightDir) / (directionECMO * shadowMap_lightDirMO);\n float degJJ = abs(acos(cosJJ) * (180.0 / PI));\n if(degJJ > gis3d_xAngle) {\n out_FragColor = color;\n return;\n }\n\n //垂直夹角限制\n vec3 ptOnCZ = pointProjectOnPlane(shadowMap_lightRight, lw.xyz, vw.xyz);\n vec3 dirOnCZ = ptOnCZ - lw.xyz;\n float dirOnCZMO = ptm(dirOnCZ);\n float cosJJCZ = dot(dirOnCZ, shadowMap_lightDir) / (dirOnCZMO * shadowMap_lightDirMO);\n float degJJCZ = abs(acos(cosJJCZ) * (180.0 / PI));\n if(degJJCZ > gis3d_yAngle) {\n out_FragColor = color;\n return;\n }\n\n shadowParameters.texCoords = shadowPosition.xy;\n shadowParameters.depth = shadowPosition.z;\n shadowParameters.nDotL = nDotL;\n float visibility = _czm_shadowVisibility(shadowMap_texture, shadowParameters);\n\n //可视域\n if(visibility == 1.0) {\n out_FragColor = mix(color, vec4(gis3d_visibleAreaColor, 1.0), gis3d_opacity);\n } else {\n out_FragColor = mix(color, vec4(gis3d_hiddenAreaColor, 1.0), gis3d_opacity);\n }\n}\n"),DEF_STYLE$1={angle:60,angle2:45,distance:1e3,opacity:.6,addHeight:0,showFrustum:!1},ViewShed=function(){var e=2098,t=888,i=1594,a=1744,n=2071,s=2671,r=1856,o=3817,l=2001,c=1997,h=2532,u=1802,_=3817,p=1274,m=1856,d=2580,f=2917,y=2580,v=1496,g=2098,C=3060,x=3817,b=977,k=3817,P=3605,w=385,S=2377,T=1937,M=1536,E=1124,A=2574,L=4110,D=2184,H=1271,F=1536,I=3710,N=888,G=2184,z=1592,B=2532,j=3817,V=352,$=784,U=1937,W=784,J=2033,q=888,Y=385,Z=2492,X=2492,Q=2492,K=1173,ee=2492,te=3879,ie=2492,ae=2492,ne=2822,se=2492,re=1288,oe=2165,O=_0x1658de,le=(_inherits(R,BasePointPrimitive),_createSuper(R));function R(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=!(1<arguments[e(ne)]&&void 0!==arguments[1])||arguments[1];return _classCallCheck(this,R),i&&(t.style=_objectSpread2(_objectSpread2({},DEF_STYLE$1),t[e(se)]||{})),(i=le[e(1567)](this,t))[e(2875)]=getCesiumColor(i.style[e(re)],new Cesium__namespace.Color(0,1,0)),i._hiddenAreaColor=getCesiumColor(i.style[e(1350)],new Cesium__namespace.Color(1,0,0)),i._hasTerrainShadows=null==(t=i.options[e(oe)])||t,i[e(3396)]=null!=(t=i.style.maximumDistance)?t:5e3,i}return _createClass(R,[{key:"czmObject",get:function(){return this._postProcessStage}},{key:"angle",get:function(){return this[_0x236b(ae)].angle},set:function(e){this[_0x236b(ie)].angle=e,this._updateDraw()}},{key:"angle2",get:function(){var e,t=_0x236b;return null!=(e=this[t(ee)].angle2)?e:this.style[t(te)]},set:function(e){var t=_0x236b;this[t(2492)][t(K)]=e,this._updateDraw()}},{key:"visibleAreaColor",get:function(){return this._visibleAreaColor},set:function(e){this._visibleAreaColor=getCesiumColor(e)}},{key:"hiddenAreaColor",get:function(){return this._hiddenAreaColor},set:function(e){this._hiddenAreaColor=getCesiumColor(e)}},{key:O(e),get:function(){var e=O;return this[e(Q)][e(2098)]},set:function(e){this.style.opacity=e}},{key:O(3335),get:function(){return this.style.showFrustum},set:function(e){var t=O;this[t(X)].showFrustum=e,this[t(2329)][t(4045)]=e}},{key:"distance",get:function(){return this.style.distance},set:function(e){var t=O;this[t(Z)][t(1937)]=e,this._updateDraw()}},{key:"shadowMap",get:function(){return this[O(Y)]}},{key:O(2018),get:function(){var e;return null==(e=this[O(385)])?void 0:e._lightCamera}},{key:O(t),get:function(){var e=O;return this.options[e(q)]},set:function(e){var t,i,a,n=O;this[n(z)].targetPosition=e,this._map&&(t=this[n(B)])&&(e=LngLatPoint[n(3600)](e,null==(e=this[n(j)])?void 0:e[n(V)]),this.distance=Cesium__namespace[n($)][n(U)](t,e),e=Cesium__namespace[n(784)].normalize(Cesium__namespace[n(784)].subtract(e,t,new Cesium__namespace.Cartesian3),new Cesium__namespace.Cartesian3),i=Cesium__namespace[n(W)].normalize(t,new Cesium__namespace.Cartesian3),(a=new Cesium__namespace.Camera(this._map[n(3118)])).position=t,a[n(2070)]=e,a.up=i,this.style.heading=Cesium__namespace[n(1124)][n(1604)](a.heading),this.style.pitch=Cesium__namespace[n(1124)][n(1604)](a[n(J)]),this._updateDraw())}},{key:O(i),value:function(){var e=O;this.show?this[e(G)]():this._clearDraw()}},{key:"_updatePositionsHook",value:function(){this._updateDraw()}},{key:O(a),value:function(){var e=O;this.options.targetPosition&&(this.targetPosition=this.options[e(N)]),this._defaultColorTexture=new Cesium__namespace.Texture({context:this._map[e(3118)].context,source:{width:1,height:1,arrayBufferView:new Uint8Array([0,0,0,0])},flipY:!1})}},{key:"_addedHook",value:function(e){var t=O;this[t(560)]&&(this._map.viewer.terrainShadows=Cesium__namespace.ShadowMode[t(381)]),this._updateDraw(),this.primitiveCollection.add(this)}},{key:O(n),value:function(){var e=O;this._hasTerrainShadows&&(this._map.terrainShadows=Cesium__namespace[e(H)][e(697)]),this[e(F)](),this.primitiveCollection[e(1135)](this)&&(this[e(I)]=!0,this[e(3475)][e(4071)](this),this[e(I)]=!1)}},{key:"updateModelMatrix",value:function(){this[O(D)]()}},{key:"_updateDraw",value:function(){var e,t,i,a=O;this[a(M)](),this._map&&this.show&&(e=this.position)&&(t=new Cesium__namespace.HeadingPitchRoll(Cesium__namespace[a(E)].toRadians(this.heading),Cesium__namespace.Math.toRadians(this.pitch),Cesium__namespace.Math[a(2581)](this[a(A)])),(i=new Cesium__namespace.Camera(this._map.scene)).position=e,i.frustum[a(3933)]=Cesium__namespace.Math.toRadians(2*this.angle),i.frustum.aspectRatio=this.angle/this.angle2,i[a(378)].near=.01,i[a(378)].far=this.distance,i[a(L)]({destination:e,orientation:{heading:t.heading,pitch:t[a(2033)],roll:t[a(2574)]}}),this[a(2057)](i),this._shadowMap=new Cesium__namespace.ShadowMap({lightCamera:i,context:this._map[a(3118)].context,maximumDistance:this[a(3396)],isSpotLight:!0,cascadesEnabled:!1,enabled:!1,depthBiasStep:this.options.depthBiasStep}),this[a(4013)]())}},{key:"_clearDraw",value:function(){var e=O;this._map&&(this[e(3952)]&&(this._map.scene.postProcessStages.remove(this._postProcessStage),delete this._postProcessStage),this[e(385)]&&(this._shadowMap.destroy(),delete this._shadowMap),this._frustumPrimitive)&&(this[e(2818)].removeGraphic(this[e(2329)],!0),delete this._frustumPrimitive)}},{key:O(758),value:function(e){this._shadowMap&&e.shadowMaps.push(this._shadowMap)}},{key:"_createFrustumPrimitive",value:function(e){var t=O,i=(this._frustumPrimitive&&this[t(2818)][t(S)](this._frustumPrimitive,!0),this[t(T)]+1);this._frustumPrimitive=new ArcFrustum({modelMatrix:e.inverseViewMatrix,style:{angle:this[t(3879)],angle2:this[t(1173)],distance:i},show:this.showFrustum&&this[t(4045)],private:!0}),this._layer.addGraphic(this._frustumPrimitive)}},{key:"_createPostProcessStage",value:function(){var t=385,i=2944,a=385,e=O,n=this,s=(this._postProcessStage&&(this._map.scene.postProcessStages.remove(this._postProcessStage),delete this._postProcessStage),new Cesium__namespace.Cartesian2),r=new Cesium__namespace.Cartesian4,o=new Cesium__namespace.Cartesian4,l=this._shadowMap._primitiveBias;this._postProcessStage=new Cesium__namespace.PostProcessStage({fragmentShader:ViewShedFS,uniforms:{gis3d_opacity:function(){return n.opacity},gis3d_visibleAreaColor:function(){return n.visibleAreaColor},gis3d_hiddenAreaColor:function(){return n.hiddenAreaColor},gis3d_distance:function(){return n.distance},gis3d_xAngle:function(){return n.angle},gis3d_yAngle:function(){return n.angle2},shadowMap_texture:function(){return n._shadowMap._shadowMapTexture||n._defaultColorTexture},shadowMap_matrix:function(){var e=_0x236b;return n[e(a)][e(3940)]},shadowMap_lightPositionEC:function(){return n._shadowMap._lightPositionEC},shadowMap_lightDirectionEC:function(){return n._shadowMap._lightDirectionEC},shadowMap_lightUp:function(){return n._shadowMap._lightCamera.up},shadowMap_lightDir:function(){return n._shadowMap._lightCamera.direction},shadowMap_lightRight:function(){var e=_0x236b;return n[e(w)]._lightCamera[e(1859)]},shadowMap_texelSizeDepthBias:function(){var e=_0x236b;return s.x=1/n._shadowMap._textureSize.x,s.y=1/n[e(t)]._textureSize.y,Cesium__namespace[e(i)][e(2958)](s.x,s.y,l[e(3996)],l.normalShadingSmooth,r)},shadowMap_normalOffsetScale:function(){return Cesium__namespace.Cartesian4.fromElements(l.normalOffsetScale,n._shadowMap._distance,n._shadowMap.maximumDistance,n._shadowMap._darkness,o)}}}),this[e(k)].scene.postProcessStages[e(P)](this._postProcessStage)}},{key:O(2533),value:function(e,t){var i=O;return e[i(b)]=formatNum$1(this[i(977)],1),e[i(2033)]=formatNum$1(this.pitch,1),e.distance=formatNum$1(this.distance,2),getAttrVal(e,{onlySimpleType:!0})}},{key:"setView",value:function(){var e,t=O;this._map&&(e=this.camera)&&(this._map.camera.position=Cesium__namespace[t(C)](this.position),this[t(x)].camera.direction=Cesium__namespace[t(3060)](e.direction),this._map[t(2018)].right=Cesium__namespace[t(C)](e.right),this._map.camera.up=Cesium__namespace.clone(e.up))}},{key:"setOpacity",value:function(e){var t=O;this.style[t(g)]=e}},{key:"startDraw",value:function(e){var t=O;if(this._enabledDraw)return this;if(this._enabledDraw=!0,e&&this.addTo(e),!this[t(3817)])throw new Error("绘制时_map不能为空,请将对象添加到图层,并且图层已添加到Map");this._map[t(f)](!0),this[t(y)](!1),this[t(v)](),this.fire(EventType.drawStart,{drawtype:this.type,graphic:this},!0)}},{key:O(s),value:function(){var e,t=O;if(!this._enabledDraw)return this;this._stopDrawHook(),this._map._setEditCursor(!1),this[t(d)](!0),this._map.closeSmallTooltip(),this[t(1329)]=!1,this.position&&this.distance?(this.fire(EventType.drawCreated,{drawtype:this[t(1488)],graphic:this},!0),null!=(e=this.options)&&e[t(1162)]&&this.options.success(this),null!=(e=this.options)&&null!=(e=e[t(1493)])&&e[t(1049)]&&this[t(1592)]._promise.resolve(this)):this.remove(!0)}},{key:O(1496),value:function(){var e=O;this[e(3817)].on(EventType.click,this[e(p)],this),this._map.on(EventType[e(1125)],this[e(m)],this)}},{key:O(802),value:function(){var e=O;this._map.off(EventType[e(u)],this._onClickHandler,this),this[e(_)].off(EventType.mouseMove,this._onMouseMoveHandler,this)}},{key:"_onClickHandler",value:function(e){var t=O,i=e[t(l)];i&&(this[t(c)](EventType[t(3670)],_objectSpread2(_objectSpread2({},e),{},{drawtype:this.type,graphic:this}),!0),this[t(2532)]?(Cesium__namespace.Cartesian3[t(1937)](this[t(h)],i)>this._maximumDistance&&(i=getOnLinePointByLen(this.position,i,this[t(3396)])),this.targetPosition=i,this.stopDraw(),this[t(1997)](EventType.drawCreated,e)):this.position=addPositionsHeight(i,this.style.addHeight))}},{key:O(r),value:function(e){var t,i=O,a=e.cartesian;a&&((t=this.position)?(Cesium__namespace.Cartesian3.distance(t,a)>this._maximumDistance&&(a=getOnLinePointByLen(t,a,this[i(3396)])),this.targetPosition=a,this.fire(EventType.drawMouseMove,_objectSpread2(_objectSpread2({},e),{},{drawtype:this.type,graphic:this}),!0),this[i(o)].openSmallTooltip(e.endPosition,this._map.getLangText("_单击完成绘制"))):this._map.openSmallTooltip(e[i(2031)],this._map.getLangText("_单击开始绘制")))}}]),R}(),ViewVideoFS=(register$4(_0x1658de(776),ViewShed,!0),"uniform float gis3d_opacity;\n\nuniform sampler2D gis3d_videoTexture;\nuniform sampler2D gis3d_maskTexture;\nuniform vec4 gis3d_hiddenAreaColor;\n\nuniform sampler2D shadowMap_texture;\nuniform mat4 shadowMap_matrix;\nuniform vec4 shadowMap_lightPositionEC;\nuniform vec4 shadowMap_texelSizeDepthBias;\nuniform vec4 shadowMap_normalOffsetScale;\nuniform bool gis3d_flipx;\nuniform bool gis3d_flipy;\n\nuniform sampler2D colorTexture;\nuniform sampler2D depthTexture;\nin vec2 v_textureCoordinates;\n\nvec4 toEye(in vec2 uv, in float depth) {\n vec2 xy = vec2((uv.x * 2.0 - 1.0), (uv.y * 2.0 - 1.0));\n vec4 posInCamera = czm_inverseProjection * vec4(xy, depth, 1.0);\n posInCamera = posInCamera / posInCamera.w;\n return posInCamera;\n}\n\nfloat getDepth(in vec4 depth) {\n float z_window = czm_unpackDepth(depth);\n z_window = czm_reverseLogDepth(z_window);\n float n_range = czm_depthRange.near;\n float f_range = czm_depthRange.far;\n return (2.0 * z_window - n_range - f_range) / (f_range - n_range);\n}\nfloat _czm_sampleShadowMap(sampler2D shadowMap, vec2 uv) {\n return texture(shadowMap, uv).r;\n}\nfloat _czm_shadowDepthCompare(sampler2D shadowMap, vec2 uv, float depth) {\n return step(depth, _czm_sampleShadowMap(shadowMap, uv));\n}\nfloat _czm_shadowVisibility(sampler2D shadowMap, czm_shadowParameters shadowParameters) {\n float depthBias = shadowParameters.depthBias;\n float depth = shadowParameters.depth;\n float nDotL = shadowParameters.nDotL;\n float normalShadingSmooth = shadowParameters.normalShadingSmooth;\n float darkness = shadowParameters.darkness;\n vec2 uv = shadowParameters.texCoords;\n depth -= depthBias;\n vec2 texelStepSize = shadowParameters.texelStepSize;\n float radius = 1.0;\n float dx0 = -texelStepSize.x * radius;\n float dy0 = -texelStepSize.y * radius;\n float dx1 = texelStepSize.x * radius;\n float dy1 = texelStepSize.y * radius;\n float visibility = (_czm_shadowDepthCompare(shadowMap, uv, depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx0, dy0), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(0.0, dy0), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx1, dy0), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx0, 0.0), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx1, 0.0), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx0, dy1), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(0.0, dy1), depth) +\n _czm_shadowDepthCompare(shadowMap, uv + vec2(dx1, dy1), depth)) * (1.0 / 9.0);\n return visibility;\n}\n\nvec3 pointProjectOnPlane(in vec3 planeNormal, in vec3 planeOrigin, in vec3 point) {\n vec3 v01 = point - planeOrigin;\n float d = dot(planeNormal, v01);\n return (point - planeNormal * d);\n}\nfloat ptm(vec3 pt) {\n return sqrt(pt.x * pt.x + pt.y * pt.y + pt.z * pt.z);\n}\n\nvoid main() {\n const float PI = 3.141592653589793;\n vec4 color = texture(colorTexture, v_textureCoordinates);\n vec4 currD = texture(depthTexture, v_textureCoordinates);\n if(currD.r >= 1.0) {\n out_FragColor = color;\n return;\n }\n float depth = getDepth(currD);\n vec4 positionEC = toEye(v_textureCoordinates, depth);\n vec3 normalEC = vec3(1.0);\n czm_shadowParameters shadowParameters;\n shadowParameters.texelStepSize = shadowMap_texelSizeDepthBias.xy;\n shadowParameters.depthBias = shadowMap_texelSizeDepthBias.z;\n shadowParameters.normalShadingSmooth = shadowMap_texelSizeDepthBias.w;\n shadowParameters.darkness = shadowMap_normalOffsetScale.w;\n shadowParameters.depthBias *= max(depth * 0.01, 1.0);\n\n vec3 directionEC = normalize(positionEC.xyz - shadowMap_lightPositionEC.xyz);\n float nDotL = clamp(dot(normalEC, -directionEC), 0.0, 1.0);\n vec4 shadowPosition = shadowMap_matrix * positionEC;\n shadowPosition /= shadowPosition.w;\n if(any(lessThan(shadowPosition.xyz, vec3(0.0))) || any(greaterThan(shadowPosition.xyz, vec3(1.0)))) {\n out_FragColor = color;\n return;\n }\n\n shadowParameters.texCoords = shadowPosition.xy;\n shadowParameters.depth = shadowPosition.z;\n shadowParameters.nDotL = nDotL;\n float visibility = _czm_shadowVisibility(shadowMap_texture, shadowParameters);\n\n //视频投射\n if(visibility == 1.0) {\n if(gis3d_flipx){\n shadowPosition.x = shadowPosition.x + (0.5 - shadowPosition.x) * 2.0;\n }\n if(gis3d_flipy){\n shadowPosition.y = shadowPosition.y + (0.5 - shadowPosition.y) * 2.0;\n }\n\n vec4 videoColor = texture(gis3d_videoTexture, shadowPosition.xy);\n vec4 maskColor = texture(gis3d_maskTexture, shadowPosition.xy);\n videoColor *= maskColor;\n out_FragColor = mix(color, vec4(videoColor.xyz, 1.0), gis3d_opacity * videoColor.a);\n } else {\n if(abs(shadowPosition.z - 0.0) < 0.01) {\n return;\n }\n out_FragColor = vec4(mix(color.rgb, gis3d_hiddenAreaColor.rgb, gis3d_hiddenAreaColor.a), gis3d_hiddenAreaColor.a);\n }\n}\n"),DEF_STYLE={angle:60,angle2:45,distance:1e3,opacity:1,showFrustum:!1,hiddenAreaColor:new Cesium__namespace.Color(0,0,0,.5),flipx:!1,flipy:!1},Video3D=function(){var e=1463,t=4013,r=3118,o=3952,l=2944,c=2944,h=1370,u=2492,_=2958,p=3996,m=2322,d=2876,f=3869,y=723,v=378,g=3335,C=4045,i=2329,a=2497,n=2463,s=3817,x=3974,b=2983,k=2897,P=2983,w=2385,S=1567,T=3118,M=2675,E=2983,A=2483,L=2492,D=1567,I=_0x1658de,O=(_inherits(R,ViewShed),_createSuper(R));function R(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),t.style=_objectSpread2(_objectSpread2({},DEF_STYLE),t[e(L)]||{}),t.terrain=!1,(e=O[e(D)](this,t,!1))._videoPlay=!0,e}return _createClass(R,[{key:"container",get:function(){return this._videoContainer}},{key:I(1937),get:function(){return this.style.distance},set:function(e){this[I(2492)].distance=e,this._updateDraw()}},{key:"flipx",get:function(){var e=I;return this[e(2492)][e(3072)]},set:function(e){var t=I;this.style[t(3072)]=e}},{key:I(e),get:function(){return this[I(3853)]},set:function(e){var t=I;if(this._videoPlay=Boolean(e),this._videoContainer)try{this[t(A)]?this._videoContainer.play():this._videoContainer[t(1958)]()}catch(e){}}},{key:I(1744),value:function(){var t,e=I,i=this,a=(_get(_getPrototypeOf(R[e(w)]),e(1744),this)[e(S)](this),this.style.maskImage);a?((t=new Image).onload=function(e){i._maskTexture=new Cesium__namespace.Texture({context:i._map.scene.context,source:t})},t.onerror=function(e){logError$1("图片加载失败:"+a,e)},t[e(2238)]=a):this._maskTexture=new Cesium__namespace.Texture({context:this._map[e(T)].context,source:{width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])},flipY:!1}),this.style.container?this._videoContainer=this.style.container:this.style[e(M)]&&(this._videoContainer=createVideo(this.style[e(2675)],this.style.fileType,"",document.body),this[e(E)].style.display=e(1058),this._hasRemoveElement=!0),this._videoContainer&&this._map.on(EventType.clockTick,this[e(2077)],this)}},{key:"_removedHook",value:function(){var e,t=I;this._map.off(EventType[t(3957)],this._onClockTickHandler,this),this._hasRemoveElement&&null!=(e=this[t(b)])&&e[t(k)]&&(this[t(P)][t(2897)].removeChild(this[t(2983)]),delete this._hasRemoveElement,delete this._videoContainer),_get(_getPrototypeOf(R.prototype),"_removedHook",this).call(this)}},{key:"_onClockTickHandler",value:function(){var e=I;try{this._videoPlay&&this._videoContainer[e(a)]&&this._videoContainer.play()}catch(e){}this._videoContainer&&this._map&&(this._videoTexture&&this[e(n)][e(1553)](),this._videoTexture=new Cesium__namespace.Texture({context:this[e(s)].scene[e(x)],source:this._videoContainer,pixelFormat:Cesium__namespace[e(1439)].RGBA,pixelDatatype:Cesium__namespace.PixelDatatype.UNSIGNED_BYTE}))}},{key:"_clearDraw",value:function(){var e=I;this[e(i)]&&(this[e(3475)].remove(this._frustumPrimitive),delete this._frustumPrimitive),_get(_getPrototypeOf(R.prototype),e(1536),this).call(this)}},{key:"_createFrustumPrimitive",value:function(e){var t=I,i=e.directionWC,a=e.upWC,n=e[t(f)],n=Cesium__namespace.Cartesian3.negate(n,new Cesium__namespace[t(784)]),s=new Cesium__namespace.Matrix3,n=(Cesium__namespace.Matrix3.setColumn(s,0,n,s),Cesium__namespace.Matrix3.setColumn(s,1,a,s),Cesium__namespace.Matrix3.setColumn(s,2,i,s),Cesium__namespace.Quaternion.fromRotationMatrix(s,new Cesium__namespace.Quaternion));this._frustumPrimitive&&this[t(3475)].remove(this[t(2329)]),this._frustumPrimitive=new Cesium__namespace.Primitive({geometryInstances:new Cesium__namespace.GeometryInstance({id:this.id,geometry:new Cesium__namespace[t(y)]({origin:e.position,orientation:n,frustum:e[t(v)],_drawNearPlane:!0}),attributes:{color:Cesium__namespace.ColorGeometryInstanceAttribute.fromColor(Cesium__namespace.Color[t(3989)])}}),appearance:new Cesium__namespace.PerInstanceColorAppearance({translucent:!1,flat:!0}),asynchronous:!1,show:this[t(g)]&&this[t(C)]}),this.primitiveCollection.add(this._frustumPrimitive),this[t(3917)](this[t(2329)])}},{key:I(t),value:function(){var t=I,i=this,a=(this._postProcessStage&&(this._map[t(r)].postProcessStages.remove(this[t(o)]),delete this._postProcessStage),new Cesium__namespace.Cartesian2),n=new Cesium__namespace[t(l)],e=new Cesium__namespace[t(c)],s=this._shadowMap._primitiveBias;this._postProcessStage=new Cesium__namespace.PostProcessStage({fragmentShader:ViewVideoFS,uniforms:{gis3d_videoTexture:function(){return i._videoTexture||i._defaultColorTexture},gis3d_maskTexture:function(){return i[t(d)]},gis3d_opacity:function(){return i.opacity},gis3d_hiddenAreaColor:function(){return i.hiddenAreaColor},shadowMap_texture:function(){var e=t;return i._shadowMap[e(m)]||i._defaultColorTexture},shadowMap_matrix:function(){return i._shadowMap._shadowMapMatrix},shadowMap_lightPositionEC:function(){var e=t;return i._shadowMap[e(3895)]},shadowMap_texelSizeDepthBias:function(){var e=t;return a.x=1/i._shadowMap._textureSize.x,a.y=1/i._shadowMap._textureSize.y,Cesium__namespace.Cartesian4[e(_)](a.x,a.y,s[e(p)],s[e(3015)],n)},shadowMap_normalOffsetScale:function(){return Cesium__namespace.Cartesian4.fromElements(s.normalOffsetScale,i._shadowMap._distance,i._shadowMap.maximumDistance,i._shadowMap._darkness,e)},gis3d_flipx:function(){return i[t(u)].flipx},gis3d_flipy:function(){return i.style.flipy}}}),this._map.scene[t(h)][t(3605)](this._postProcessStage)}}]),R}();register$4("video3D",Video3D,!0);var globeLastRoam,Route=function(){var e=524,t=2434,i=2008,a=1436,n=650,s=1594,r=3521,o=758,l=803,c=3128,h=1592,u=1488,_=2385,p=1899,m=2867,d=2018,f=1592,y=803,v=3817,g=3277,C=977,x=1604,b=2822,H=2584,F=2426,N=2822,G=3846,z=1772,B=3767,j=1120,V=2907,$=2822,U=3277,W=1239,J=2044,q=3193,Y=2270,Z=3277,X=1603,Q=2207,k=1197,K=1592,P=1683,ee=2018,te=3547,ie=1550,w=1374,ae=3553,S=2867,ne=3817,se=341,re=4045,oe=620,T=2885,le=341,ce=3089,he=1592,ue=3089,_e=2270,pe=1111,me=3817,de=3118,fe=3845,ye=3479,ve=3003,ge=2751,Ce=1717,xe=3158,be=3060,ke=3311,Pe=2355,we=3428,Se=3594,Te=2942,Me=1498,Ee=1567,Ae=1990,M=524,Le=2434,De=341,E=341,Ie=3089,A=3121,Oe=995,Re=3686,L=3521,He=524,D=3089,Fe=3521,Ne=4045,Ge=2822,ze=3258,Be=654,je=2158,Ve=2589,I=1980,$e=1049,Ue=2541,We=2407,Je=2541,qe=1018,Ye=3817,Ze=1899,Xe=3817,Qe=2942,Ke=1111,et=2008,tt=3089,it=2434,at=3521,nt=3521,st=1986,rt=3521,ot=3686,lt=3493,ct=2584,ht=2294,ut=3213,_t=2584,O=_0x1658de,pt=(_inherits(R,BasePointPrimitive),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(i=pt.call(this,i)).options.frameRate=null!=(e=i.options.frameRate)?e:1,i._maxCacheCount=null!=(e=i.options.maxCacheCount)?e:100,i._clampToTilesetFrame=-1,i._frameRateHeight=null!=(e=i.options[t(lt)])?e:30,i._child={},i[t(1448)]=new Cesium__namespace.Cartesian3,i.property=i.options[t(2532)]||new Cesium__namespace.SampledPositionProperty(i.options.referenceFrame,i.options.numberOfDerivatives),i[t(ct)][t(ht)]=null!=(e=i.options.forwardExtrapolationType)?e:Cesium__namespace.ExtrapolationType[t(ut)],i.property.backwardExtrapolationType=null!=(e=i.options.backwardExtrapolationType)?e:Cesium__namespace.ExtrapolationType.HOLD,i._orientation=i.options.orientation||new Cesium__namespace.VelocityOrientationProperty(i[t(_t)]),i._readyPromise=(Cesium__namespace.defer?Cesium__namespace:Cesium__namespace.when).defer(),i}return _createClass(R,[{key:"label",get:function(){return this._child.label},set:function(e){var t=_0x236b;this.options[t(ot)]=e,this._initChildGraphic(t(3686),LabelPrimitive)}},{key:O(883),get:function(){return this._child.billboard},set:function(e){var t=O;this.options.billboard=e,this[t(3521)]("billboard",BillboardPrimitive)}},{key:"point",get:function(){return this._child.point},set:function(e){var t=O;this.options.point=e,this[t(rt)]("point",PointPrimitive)}},{key:"model",get:function(){return this._child.model},set:function(e){this.options.model=e,this._initChildGraphic("model",ModelPrimitive)}},{key:"readyPromise",get:function(){var e=O;return this._readyPromise[e(st)]}},{key:"circle",get:function(){return this._child.circle},set:function(e){this.options.circle=e,this._initChildGraphic("circle",CircleEntity)}},{key:O(e),get:function(){return this[O(341)].coneTrack},set:function(e){var t=O;this.options.coneTrack=e,this[t(nt)]("coneTrack",ConeTrack)}},{key:O(t),get:function(){return this._child.path},set:function(e){var t=O;this.options[t(it)]=e,this[t(at)]("path",PathEntity)}},{key:"polyline",get:function(){var e=O;return this._child[e(tt)]},set:function(e){var t=O;this.options.polyline=e,this[t(3521)]("polyline",PolylineEntity)}},{key:O(i),get:function(){return this._child.wall},set:function(e){var t=O;this.options.wall=e,this[t(3521)](t(et),WallEntity)}},{key:O(a),get:function(){return this._modelMatrix||this._getModelMatrix(this._position,this._orientation_show)}},{key:"groundPosition",get:function(){return getRayEarthPosition(this[O(Ke)],this._orientation_show)}},{key:"alt",get:function(){var e=O;return this._clampToTilesetHeight?this[e(Qe)]:this._position?Cesium__namespace.Cartographic.fromCartesian(this._position)[e(3159)]:0}},{key:"startTime",get:function(){var e,t=O,t=null==(e=this.property)||null==(e=e[t(783)])?void 0:e._times;return 0<t.length?t[0]:null}},{key:"stopTime",get:function(){var e=O,t=null==(t=this.property)||null==(t=t._property)?void 0:t._times;return 0<t.length?t[t[e(2822)]-1]:null}},{key:O(n),get:function(){return this._flyok_index}},{key:"multiplier",get:function(){var e,t=O;return null==(e=this[t(Xe)])?void 0:e[t(1899)].multiplier},set:function(e){this._map&&(this._map.clock.multiplier=e)}},{key:"isPause",get:function(){var e,t=O;return!(null!=(e=this._map)&&e[t(Ze)][t(530)])},set:function(e){this[O(Ye)]&&(e?this.pause():this.proceed())}},{key:O(1123),get:function(){var i,a=O;return this.options.objectsToExclude?this[a(1592)].objectsToExclude:this[a(We)]?this[a(Je)]:(i=[],this.eachChildGraphic(function(e){var t=a;e.czmObject&&i[t(qe)](e[t(417)])}),0<i[a(2822)]?i:void 0)},set:function(e){this[O(Ue)]=e}},{key:"_initSampledPositionProperty",value:function(){this._sampledPositionProperty=this.property,this.bindUpdateEvent()}},{key:O(1744),value:function(){var e=O;this._initChildGraphic(e(3686),LabelPrimitive),this._initChildGraphic("billboard",BillboardPrimitive),this._initChildGraphic("point",PointPrimitive),this._initChildGraphic("model",ModelPrimitive),this._initChildGraphic(e(1990),CircleEntity),this._initChildGraphic("coneTrack",ConeTrack),this._initChildGraphic("path",PathEntity),this[e(3521)]("polyline",PolylineEntity),this._initChildGraphic("wall",WallEntity)}},{key:"_addedHook",value:function(e){var t,i=O,a=this;if(this.show&&(this._addChildGraphic(),null!=(t=this.model)&&t.readyPromise&&this.model.readyPromise[i(Ve)](function(){var e=i;a._readyPromise[e($e)](a)}),this[i(1592)][i(I)]))for(var n=0;n<this.options.positions.length;n++){var s=this.options[i(I)][n];this[i(1223)](s,s.time)}}},{key:"_removedHook",value:function(e){this._removeChildGraphic(),_get(_getPrototypeOf(R.prototype),"_removedHook",this).call(this,e)}},{key:O(1640),value:function(e){var t,i=O,a=null==(t=this.property)||null==(t=t._property)?void 0:t._times,n=null==(t=this.property)||null==(t=t[i(783)])?void 0:t._values;if(a&&0!==a[i(Ge)]){for(var s=[],r=0,o=a.length;r<o;r++){var l=LngLatPoint[i(ze)](new Cesium__namespace.Cartesian3(n[3*r],n[3*r+1],n[3*r+2])),c=Cesium__namespace.JulianDate.toDate(a[r]);s.push({lat:l[i(Be)],lng:l.lng,alt:l.alt,time:formatDate(c,i(je))})}e[i(1980)]=s}}},{key:O(s),value:function(e){e?this.eachChildGraphic(function(e){e.show=e._lastShow,delete e._lastShow}):this.eachChildGraphic(function(e){var t=_0x236b;e._lastShow=e[t(Ne)],e.show=!1})}},{key:"_setOptionsHook",value:function(e,t){var i,a=O;for(i in t)switch(i){case a(Re):this._initChildGraphic("label",LabelPrimitive);break;case a(883):this[a(L)]("billboard",BillboardPrimitive);break;case a(620):this._initChildGraphic("point",PointPrimitive);break;case"model":this._initChildGraphic("model",ModelPrimitive);break;case"circle":this[a(L)]("circle",CircleEntity);break;case"coneTrack":this._initChildGraphic(a(He),ConeTrack);break;case"path":this._initChildGraphic("path",PathEntity);break;case a(D):this._initChildGraphic(a(D),PolylineEntity);break;case"wall":this[a(Fe)]("wall",WallEntity)}}},{key:O(r),value:function(e,t){var i,a=2894,n=1909,s=O,r=this,o=this[s(1592)][e],l=this[s(341)][e];o?l?(l.setStyle(o),l.show=null==(i=o.show)||i):(l=new t({id:"".concat(this.id,"-").concat(e),style:clone(o,["show"]),private:!0,eventParent:this,show:null==(i=o[s(4045)])||i}),this.isAdded&&this._layer.addGraphic(l),l.czmObject&&this.bindPickId(l.czmObject),l.czmObjectEx&&l.czmObjectEx.forEach(function(e){r.bindPickId(e)}),this[s(341)][e]=l,"circle"===e?this[s(341)][s(Ae)].position=new Cesium__namespace.CallbackProperty(function(e){return r._position},!1):e===s(M)?this._child[s(M)][s(2532)]=new Cesium__namespace.CallbackProperty(function(e){return r._position},!1):e===s(Le)?this[s(De)].path.position=this.property:"polyline"===e?(this._polyline_positions=[],this[s(E)][s(Ie)].positions=new Cesium__namespace[s(A)](function(e){return r[s(n)]},!1)):"wall"===e&&(this._wall_positions=[],this._child.wall.positions=new Cesium__namespace[s(A)](function(e){return r[s(a)]},!1),this[s(3845)]=[],this._child[s(2008)][s(2492)][s(Oe)]=new Cesium__namespace.CallbackProperty(function(e){return r._wall_minimumHeights},!1),this._wall_maximumHeights=[],this[s(E)].wall[s(2492)][s(2527)]=new Cesium__namespace.CallbackProperty(function(e){return r._wall_maximumHeights},!1),this[s(341)][s(2008)]._heights_cache={})):l&&(l[s(4071)](!0),delete this[s(341)][e])}},{key:"_addChildGraphic",value:function(){var i=3917,a=this;this.eachChildGraphic(function(e){var t=_0x236b;a._layer.addGraphic(e),e.czmObject&&a[t(i)](e.czmObject),e.czmObjectEx&&e.czmObjectEx.forEach(function(e){a.bindPickId(e)})})}},{key:"_removeChildGraphic",value:function(){var t=this;this.eachChildGraphic(function(e){t._layer.removeGraphic(e)})}},{key:"eachChildGraphic",value:function(i,a){var n=O,s=this;if(this._child)return Object[n(2206)](this._child).forEach(function(e,t){i&&i[n(Ee)](a||s,s._child[e],t)}),this}},{key:O(o),value:function(e){var t,i=O;this[i(4045)]&&(this._position=this.getPropertyValue(e[i(ve)],this._position_result),this._position?(this[i(3237)]=!1,this.property[i(Ce)]===Cesium__namespace.ReferenceFrame[i(3276)]&&(this[i(xe)]=this._position[i(be)](),Cesium__namespace[i(3367)].convertToReferenceFrame(e[i(3003)],this._position,this.property.referenceFrame,Cesium__namespace.ReferenceFrame.FIXED,this[i(1111)])),this.options[i(448)]&&(this[i(ke)]++,this._clampToTilesetHeight&&this[i(3311)]%this[i(Pe)]!=0||(t=getHeight(this._map[i(3118)],this[i(1111)],{objectsToExclude:this[i(2818)].objectsToExclude,has3dtiles:!0}))&&(Cesium__namespace[i(3277)](this.options[i(1994)])&&t<this.options.minHeight&&(t=this.options.minHeight),Cesium__namespace.defined(this.options.maxHeight)&&t>this.options.maxHeight&&(t=this[i(1592)][i(1732)]),this._clampToTilesetHeight=t),this._clampToTilesetHeight)&&(t=Cesium__namespace[i(we)].fromCartesian(this._position),this._position=Cesium__namespace.Cartesian3.fromRadians(t[i(Se)],t.latitude,this[i(Te)])),this._orientation_show=this[i(Me)].getValue(e.time),this._map.clock[i(530)]&&(this._updatePosition(),this._updateCamera(),this._updateForEvent())):this._last_hasNull?this._updatePosition():(this._updatePosition(),this[i(ge)](),this._last_hasNull=!0))}},{key:"_updatePosition",value:function(){var e=O,t=(null!=(t=this._child.label)&&t.show&&(this[e(se)].label.position=this._position),null!=(t=this._child.billboard)&&t[e(4045)]&&(this._child.billboard.position=this._position),null!=(t=this._child.point)&&t[e(re)]&&(this._child[e(oe)].position=this._position),null!=(t=this._child.model)&&t.show&&(this[e(2362)]=this._child.model._getModelMatrix(this._position,this._orientation_show),this._heading_reality=this._child.model._heading_reality,this._pitch_reality=this._child.model._pitch_reality,this[e(3046)]=this._child.model._roll_reality,null!=(t=this._child.model)&&t[e(T)]&&(this._child.model[e(T)][e(1436)]=this._modelMatrix),this[e(le)].model._position=this._position),!1);if(null==(i=this[e(341)][e(ce)])||!i.show||null!=(i=this[e(he)].polyline)&&i.showAll||(i=this.property._property._values.slice(0,3*this._flyok_index),0<this._flyok_index?(i=Cesium__namespace.Cartesian3.unpackArray(i),this._position&&i[e(1018)](this._position),this.options[e(ue)][e(1067)]&&(i=sliceByMaxDistance(i,this[e(1592)].polyline.maxDistance),0<this._maxCacheCount)&&(this._maxCacheCount=Math.max(this._maxCacheCount,2*i.length)),this._polyline_positions=i,t=!0):this._polyline_positions=[]),null!=(i=this._child.wall)&&i.show){var i=this.property._property._values.slice(0,3*this._flyok_index);if(0<this[e(_e)]){t||(t=Cesium__namespace[e(784)].unpackArray(i),this._position&&t.push(this[e(pe)]),this.options.wall.maxDistance&&(t=sliceByMaxDistance(t,this[e(1592)].wall.maxDistance),0<this._maxCacheCount)&&(this._maxCacheCount=Math[e(1245)](this[e(2777)],2*t.length)),this._polyline_positions=t);for(var a=[],n=[],s=this._polyline_positions,r=0;r<s.length;r++){var o=s[r],l=Cesium__namespace.Cartographic.fromCartesian(o);n[e(1018)](l.height),this.options.wall.surface?(s[r].hbgd=null!=(l=s[r].hbgd)?l:getHeight(null==(l=this[e(me)])?void 0:l[e(de)],o,{has3dtiles:!1}),a.push(s[r][e(2567)])):a.push(0)}this._wall_positions=s,this[e(fe)]=a,this._wall_maximumHeights=n}else this._wall_positions=[],this._wall_minimumHeights=[],this[e(ye)]=[]}}},{key:O(3151),value:function(){var e=O;if(this[e(1592)].camera)switch(this.options.camera.type){case"gs":var t=this[e(1683)];this._map.clock[e(530)]&&this._map.trackedEntity!==t&&((this._map[e(1683)]=t)[e(k)]=!0),t[e(k)]&&!this._map.viewer._needTrackedEntityUpdate&&(t._needFlyToPoint=!1,this[e(803)](_objectSpread2(_objectSpread2({},this[e(K)].camera),{},{lock:!0,duration:0})));break;case"dy":var i,t=this[e(P)],t=(this._map.trackedEntity!==t&&(this._map.trackedEntity=t),this.options[e(ee)][e(te)]||0),a=this.options[e(2018)].followedZ||0;0===t&&0===a&&(t=.1),this.options.camera.offsetX&&((i=i||{}).x=this.options.camera.offsetX),this.options.camera[e(ie)]&&((i=i||{}).y=this.options.camera.offsetY),this.options.camera.offsetZ&&((i=i||{}).z=this.options.camera.offsetZ),this._map.scene.camera.lookAtTransform(this[e(w)](i),new Cesium__namespace[e(784)](-t,0,a));break;case"sd":t=this.trackedEntity;this[e(3817)][e(1683)]!==t&&(this._map[e(P)]=t),this._map.scene.camera[e(3997)](this[e(w)](),new Cesium__namespace.Cartesian3(-1,0,this.options.camera[e(ae)]));break;default:this[e(S)]&&this[e(ne)][e(1683)]===this[e(S)]&&(this._map[e(1683)]=void 0)}}},{key:"computeModelMatrix",value:function(e){var t=O,i=(this[t(3349)]||(this._matrix4=new Cesium__namespace.Matrix4,this._matrix3Scratch=new Cesium__namespace.Matrix3),this._position);if(Cesium__namespace.defined(i)&&this[t(955)])return e&&(t=new Cesium__namespace[t(3975)](this._heading,this[t(3157)],this[t(750)]),i=getPositionByHprAndOffset(i,new Cesium__namespace.Cartesian3(e.x||0,e.y||0,e.z||0),t)),this._matrix4=Cesium__namespace.Matrix4.fromRotationTranslation(Cesium__namespace.Matrix3.fromQuaternion(this._orientation_show,this._matrix3Scratch),i,this._matrix4),this._matrix4}},{key:O(2751),value:function(){var e,t=O,i=null!=(e=this._flyok_index)?e:0;if(this.fire(EventType[t(3814)],{index:i,counts:this._counts,position:this._position,orientation:this[t(955)]}),i!==this._last_fireIndex){if(Cesium__namespace[t(Z)](this._last_fireIndex)&&this._last_fireIndex+1!==i)for(;++this[t(X)]<i;)this.fire(EventType[t(Q)],{counts:this._counts,index:this._last_fireIndex});this[t(1997)](EventType[t(2207)],{counts:this._counts,index:i}),i===this._counts&&this.fire(EventType.end),this._last_fireIndex=i}}},{key:"getPropertyValue",value:function(e,t){var i=O,a=null==(a=this.property)?void 0:a._property,n=null==a?void 0:a[i(G)],s=n.length;if(0!==s){this._counts=s;var r=Cesium__namespace.Cartesian3,o=a._values;if(this._flyok_index=Cesium__namespace[i(3696)](n,e,Cesium__namespace.JulianDate.compare),this._flyok_index<0){if(this._flyok_index=~this[i(2270)],0===this._flyok_index){var l=n[this._flyok_index],c=a._backwardExtrapolationDuration;if(a._backwardExtrapolationType===Cesium__namespace[i(z)][i(B)]||0!==c&&Cesium__namespace.JulianDate.secondsDifference(l,e)>c)return;if(a._backwardExtrapolationType===Cesium__namespace.ExtrapolationType.HOLD)return r.unpack(o,0,t)}if(this._flyok_index>=s){this._flyok_index=s-1;l=n[this._flyok_index];if(c=a[i(j)],a._forwardExtrapolationType===Cesium__namespace.ExtrapolationType[i(3767)]||0!==c&&Cesium__namespace.JulianDate.secondsDifference(e,l)>c)return;if(a._forwardExtrapolationType===Cesium__namespace.ExtrapolationType[i(3213)])return this[i(2270)]=s-1,r.unpack(o,this._flyok_index*r.packedLength,t)}var h=a[i(1002)],u=a._yTable,l=a[i(565)],c=a._packedInterpolationLength,_=a._inputOrder,p=(a._updateTableLength&&(a._updateTableLength=!1,(p=Math.min(l.getRequiredDataPoints(a[i(V)],_),s))!==a._numberOfPoints)&&(a._numberOfPoints=p,h.length=p,u[i($)]=p*c),a._numberOfPoints-1);if(p<1)return;for(var m=0,d=s-1,f=(1+p<=d-m+1&&(m=s=d<(x=(s=(s=this._flyok_index-(p/2|0)-1)<m?m:s)+p)&&(s=(x=d)-p)<m?m:s,d=x),d-m+1),y=0;y<f;++y)h[y]=Cesium__namespace.JulianDate.secondsDifference(n[m+y],n[d]);if(Cesium__namespace[i(U)](r.convertPackedArrayForInterpolation))r[i(W)](o,m,d,u);else for(var v=0,p=a[i(2254)],g=m*p,C=(d+1)*p;g<C;)u[v]=o[g],g++,v++;var x,s=Cesium__namespace.JulianDate.secondsDifference(e,n[d]);return(p=0!==_&&Cesium__namespace.defined(l.interpolate)?(x=Math.floor(c/(_+1)),l.interpolate(s,h,u,x,_,_,a._interpolationResult)):l[i(J)](s,h,u,c,a._interpolationResult),Cesium__namespace.defined(r.unpackInterpolationResult))?r.unpackInterpolationResult(p,o,m,d,t):r[i(q)](p,0,t)}return r.unpack(o,this[i(Y)]*a._packedLength,t)}}},{key:"clearPosition",value:function(){var e=O,t=null==(t=this[e(H)])||null==(t=t._property)?void 0:t[e(3846)];t&&0!==t.length&&this.property.removeSamples(new Cesium__namespace[e(F)]({start:t[0],stop:t[t[e(N)]-1]}))}},{key:"getRectangle",value:function(e){var t,i=O,a=null==(a=this.property)||null==(a=a._property)?void 0:a._times,n=null==(t=this.property)||null==(t=t._property)?void 0:t[i(586)];if(a&&0!==a.length){for(var s=[],r=0,o=a.length;r<o;r++)s.push(new Cesium__namespace.Cartesian3(n[3*r],n[3*r+1],n[3*r+2]));return getRectangle(s,null==e?void 0:e.isFormat)}}},{key:O(3764),value:function(e){var t,i=O,a=null==(t=this.property)||null==(t=t._property)?void 0:t[i(3846)],n=null==(t=this.property)||null==(t=t._property)?void 0:t._values;if(!a||0===a.length)return[];for(var s=[],r=0,o=a[i(b)];r<o;r++){var l=LngLatPoint.fromCartesian(new Cesium__namespace[i(784)](n[3*r],n[3*r+1],n[3*r+2])).toArray(e);l.push(Cesium__namespace.JulianDate.toDate(a[r]).getTime()),s.push(l)}return s}},{key:O(l),value:function(){var e,t,i=O,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this[i(v)]&&(e=this[i(1111)])&&(Cesium__namespace[i(g)](a.heading)&&(t=a[i(C)]+Cesium__namespace.Math[i(x)]((null==(i=this.hpr)?void 0:i.heading)||0)),this._map.flyToPoint(e,_objectSpread2(_objectSpread2({},a),{},{heading:t})))}},{key:O(3841),value:function(e){var t,i=O;R.clearLastCamera(),this.options.camera?this.options[i(d)]=merge(this.options.camera,e):this.options.camera=e||{type:""},""!==(null==(t=this[i(f)].camera)?void 0:t.type)&&(globeLastRoam=this),e&&"gs"===e.type&&e.radius&&this[i(y)](_objectSpread2(_objectSpread2({},e),{},{duration:0}))}},{key:O(c),value:function(){logWarn("Route 类不支持autoSurfaceHeight方法 !")}},{key:"pause",value:function(){var e=O;this[e(3817)]&&(this._map[e(p)].shouldAnimate=!1,this[e(m)])&&this[e(3817)].trackedEntity===this._trackedEntity&&(this._map.trackedEntity=void 0)}},{key:O(2699),value:function(){var e=O;this._map&&(this._map[e(1899)][e(530)]=!0)}},{key:O(2642),value:function(){var t=this;return this._popupPosition||(this._popupPosition=new Cesium__namespace.CallbackProperty(function(e){return t[_0x236b(1111)]},!1)),this._popupPosition}},{key:"destroy",value:function(t){var e=O;this.eachChildGraphic(function(e){e.destroy(t)}),_get(_getPrototypeOf(R[e(_)]),"destroy",this).call(this,t)}}],[{key:"clearLastCamera",value:function(){var e,t=O;null!=(e=globeLastRoam)&&null!=(e=e[t(h)])&&null!=(e=e[t(2018)])&&e.type&&(globeLastRoam.options.camera[t(u)]=""),globeLastRoam=null}}]),R}(),FixedRoute=(register$4("route",Route),function(){var e=1542,t=3833,i=3128,r=2789,a=3128,o=2822,l=2789,c=1123,_=1111,p=984,m=1899,d=2822,f=3277,y=1603,v=1997,g=1557,C=1592,x=1210,n=955,s=1498,h=3865,u=1026,b=1592,k=631,P=1100,w=1899,S=3060,T=1787,M=2168,E=984,A=3426,L=2789,H=621,F=486,N=1592,G=1980,z=1592,B=3649,j=1592,V=2255,$=2993,D=1111,U=1498,W=373,J=445,I=984,q=1210,Y=2033,Z=2257,X=2510,Q=4099,K=1018,ee=1915,te=677,ie=1592,ae=1592,ne=3224,se=1111,re=654,O=_0x1658de,oe=(_inherits(R,Route),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments[t(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(i=oe.call(this,i))[t(1592)].showStop=null==(e=i.options[t(882)])||e,i.options.updateClock=null==(e=i[t(1592)].updateClock)||e,i}return _createClass(R,[{key:"startTime",get:function(){return this[_0x236b(1915)]}},{key:"stopTime",get:function(){return this._stopTime}},{key:"points",get:function(){return this._points},set:function(e){this.positions=e}},{key:"positions",get:function(){return this._points.map(function(e){return e._position})},set:function(e){var h=_0x236b;if(this._map&&e&&Array.isArray(e)&&0!==e.length){for(var t,i,u=LngLatArray.toPoints(e),a=(this.clearPosition(),t=this.options.startTime?isString(this[h(j)][h(1100)])?-1===this.options.startTime.indexOf("Z")?Cesium__namespace[h(984)][h(445)](new Date(this[h(1592)].startTime)):Cesium__namespace.JulianDate.fromIso8601(this.options.startTime):this.options.startTime instanceof Date?Cesium__namespace.JulianDate[h(445)](this[h(1592)].startTime):this.options.startTime:this.options[h(3758)]?(e=u[0][this[h(1592)].timeField],Cesium__namespace.JulianDate.fromDate(new Date(e))):this._map.clock[h(352)],this.options.speed),n=a&&Array[h(V)](a),s=100,_=null!=(e=this.options.offsetHeight)?e:0,r=0,o=0,l=[],c=!1,p=.001,m=0,d=u.length;m<d;m++){var f=u[m],y=f._position||Cesium__namespace.Cartesian3.fromDegrees(f.lng,f.lat,f[h($)]+_);if(0===m){var v=t.clone();this.property.addSample(v,y),f[h(D)]=y,f._time=v,f._distance=o,f._second=r,f._speed=0,f._index=m,l.push(f),Cesium__namespace.defined(f[h(977)])&&(this[h(U)]=new Cesium__namespace[h(1262)](Cesium__namespace[h(W)]),c=!0,g=new Cesium__namespace.HeadingPitchRoll(Cesium__namespace[h(1124)].toRadians(f.heading||0),Cesium__namespace.Math.toRadians(f.pitch||0),Cesium__namespace.Math.toRadians(f.roll||0)),this._orientation.addSample(v,Cesium__namespace.Transforms[h(3092)](y,g)))}else{var g=Cesium__namespace.Cartesian3.distance(y,i);if(0===g&&(g=p,!(y=P(m,y))))continue;var C,x,b=void 0,k=void 0;if(this[h(1592)].timeField?(C=new Date(f[this[h(1592)].timeField]),C=Cesium__namespace.JulianDate[h(J)](C),b=Cesium__namespace.JulianDate.secondsDifference(C,v)||.01,v=C,k=g/b,r+=b):(C=m-1,r+=b=(b=g/(k=(x=f).speed||x._speed||(n?(a[C]||s)/3.6:(a||s)/3.6)))<.01?.01:b,v=Cesium__namespace[h(I)][h(q)](t,r,new Cesium__namespace.JulianDate)),o+=g,this.property.addSample(v,y),c&&(x=new Cesium__namespace.HeadingPitchRoll(Cesium__namespace[h(1124)].toRadians(f.heading||0),Cesium__namespace.Math.toRadians(f[h(Y)]||0),Cesium__namespace.Math[h(2581)](f[h(2574)]||0)),this._orientation[h(Z)](v,Cesium__namespace[h(X)].headingPitchRollQuaternion(y,x))),f[h(D)]=y,f[h(2269)]=v,f._distance=o,f._second=r,f._speed=k,f[h(4112)]=m,l.push(f),this.options.pauseTime){b=P(m,y);if(!b)continue;k=void 0;0<(k=typeof this[h(1592)][h(4076)]===h(Q)?this[h(1592)].pauseTime(m,b):this.options.pauseTime)&&(r+=k,v=Cesium__namespace[h(I)].addSeconds(t,r,new Cesium__namespace[h(I)]),this[h(2584)].addSample(v,b),o+=p,(f=clone(f))[h(1111)]=b,f._time=v,f._distance=o,f._second=r,f._speed=0,f[h(4112)]=m,l[h(K)](f))}}i=y}this._points=l,this[h(ee)]=t,this._stopTime=v[h(3060)](),this.second_all=r,this.distance_all=o,this.options[h(te)]&&this.property.setInterpolationOptions({interpolationDegree:null!=(e=this[h(ie)].interpolationDegree)?e:2,interpolationAlgorithm:null!=(e=this[h(ae)][h(ne)])?e:Cesium__namespace.HermitePolynomialApproximation}),this.options.showStop&&(this.backToFirst(),null!=(e=this[h(1592)]))&&null!=(e=e.polyline)&&e.showAll&&(this._child.polyline.positions=this.positions),this[h(1997)](EventType.updatePosition,{position:this.property})}function P(e,t){for(var i=h,a=e-1;0<=a;a--){var n=u[a],s=n._position||Cesium__namespace.Cartesian3.fromDegrees(n[i(484)],n.lat,n.alt+_);if(n._position=s,0!==Cesium__namespace.Cartesian3.distance(t,s))return getOnLinePointByLen(s,t,p,!0)}for(var r=e-1,o=u.length;r<o;r++){var l=u[r],c=l[i(se)]||Cesium__namespace.Cartesian3[i(3119)](l.lng,l[i(re)],l.alt+_);if(l._position=c,0!==Cesium__namespace.Cartesian3[i(1937)](t,c))return getOnLinePointByLen(t,c,p,!1)}return null}}},{key:O(e),get:function(){return this[O(B)]}},{key:"info",get:function(){return this._timeinfo}},{key:O(563),value:function(e){var t,i=O,a=this;this.show&&(this._addChildGraphic(),null!=(t=this.model)&&t.readyPromise&&this.model.readyPromise.then(function(){a._readyPromise.resolve(a)}),this[i(G)]=this[i(z)].positions)}},{key:"_setOptionsHook",value:function(e,t){var i,a=O;for(i in t)switch(i){case"speed":case"startTime":this.positions=this[a(N)].positions;break;default:_get(_getPrototypeOf(R.prototype),"_setOptionsHook",this).call(this,e,t)}}},{key:"start",value:function(){var e,t=O,i=this;this._map&&!this._isStart&&(Cesium__namespace.defined(this._points)&&0!==this._points[t(2822)]?(this._isStart=!0,this.positions=this[t(L)],null!=(e=this._child.model)&&e.show&&this[t(1592)].updateClock?(this[t(3817)].clock.shouldAnimate=!1,this._map.clock.currentTime=this.startTime.clone(),this._child.model[t(H)].then(function(){i[t(F)]()})):this._start()):logError$1("没有坐标数据,漫游路线启动失败",this._points))}},{key:"_start",value:function(){var e,t,i=O;this[i(b)][i(1653)]&&(this._map.clock.shouldAnimate=!0,this._map.clock.currentTime=this.startTime.clone(),!this.options.clockLoop)&&this.options[i(631)]&&(this._bak_clockRange=this._map[i(1899)][i(k)],this._bak_startTime=this._map.clock[i(P)],this._bak_stopTime=this._map[i(w)].stopTime,this._map[i(w)][i(k)]=null!=(t=this.options[i(631)])?t:Cesium__namespace.ClockRange.LOOP_STOP,this._map[i(1899)].startTime=this.startTime.clone(),this._map.clock.stopTime=this.stopTime[i(S)](),this._map.controls.timeline)&&this._map.controls[i(3220)][i(T)](this.startTime,this[i(M)]),null!=(t=this._child.path)&&t.entity&&(t=this._stopTime,(null==(e=this.property)?void 0:e.forwardExtrapolationType)===Cesium__namespace.ExtrapolationType[i(3213)]&&(t=Cesium__namespace[i(984)].addDays(t,365,new Cesium__namespace[i(E)])),this._child.path.entity[i(635)]=new Cesium__namespace[i(1443)]([new Cesium__namespace.TimeInterval({start:this._startTime,stop:t})])),this.fire(EventType[i(3057)]),this[i(A)]()}},{key:"stop",value:function(){var e,t=O;this._isStart&&this[t(3817)]&&(this[t(3817)].trackedEntity=void 0,this.unbindUpdateEvent(),this.options.showStop?this[t(3833)]():(this._position=void 0,this._updatePosition()),this._polyline_positions=[],null!=(e=this._child[t(2434)])&&e.entity&&(this._child.path[t(h)].availability=void 0),this._isStart=!1,this.fire(EventType.end),this.fire(EventType[t(u)],{position:this._position}))}},{key:O(t),value:function(){var e=O;this._flyok_index=0,this._position=this._points[0]._position,this[e(n)]=this[e(s)][e(777)](this.startTime),this._updatePosition(),this._updateForEvent(!1)}},{key:"_updatePositionEx",value:function(){var e;null!=(e=this.options)&&null!=(e=e.polyline)&&e.showAll&&(this._child.polyline.positions=this.positions)}},{key:"_updateForEvent",value:function(){var e=O,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];if(this._points){var i=this._flyok_index,a=this._points[this._points.length-1],n=this._points[Math.max(i-1,0)];if(n){var s=LngLatPoint.fromCartesian(this[e(_)]),r=n._distance+(this._position?Cesium__namespace.Cartesian3.distance(this._position,n._position):0),o=(r>a._distance&&(r=a._distance),0);if(0<i&&(o=Cesium__namespace[e(p)].secondsDifference(this[e(3817)][e(m)][e(352)],this[e(1100)]))>a._second&&(o=a._second),this._timeinfo={index:i,counts:null!=(l=this._counts)?l:this._points[e(d)],point:s,position:this._position,orientation:this._orientation_show,second:o,second_all:a._second,distance:r,distance_all:a._distance,speed:n._speed},t){if(this[e(1997)](EventType.change,this._timeinfo),i!==this._last_fireIndex){if(Cesium__namespace[e(f)](this[e(y)])&&this._last_fireIndex+1!==i)for(;++this._last_fireIndex<i;)this[e(v)](EventType.endItem,{counts:this._counts,index:this._last_fireIndex,point:this._points[this._last_fireIndex]});this[e(v)](EventType[e(2207)],{counts:this[e(g)],index:i,point:this._points[i]}),i===this._counts&&this[e(v)](EventType[e(1797)]),this._last_fireIndex=i}if(o>=a._second)if(this[e(1592)][e(1798)]&&!this.options.clockRange){if(this.unbindUpdateEvent(),this.options.startTime)delete this.options.startTime;else if(this.options.timeField)for(var l=this[e(2789)][0][this[e(C)].timeField],s=Cesium__namespace.JulianDate.fromDate(new Date(l)),c=Cesium__namespace.JulianDate.secondsDifference(this._map[e(m)].currentTime,s),h=0;h<this[e(2789)].length;h++){var u=Cesium__namespace.JulianDate[e(445)](new Date(this._points[h][this.options.timeField]));this._points[h][this.options.timeField]=Cesium__namespace.JulianDate[e(1538)](Cesium__namespace[e(984)][e(x)](u,c,new Cesium__namespace.JulianDate))}this.positions=this._points,null!=(r=this._child.path)&&r[e(3865)]&&(n=this._stopTime,(null==(t=this.property)?void 0:t.forwardExtrapolationType)===Cesium__namespace.ExtrapolationType[e(3213)]&&(n=Cesium__namespace.JulianDate.addDays(n,365,new Cesium__namespace.JulianDate)),this._child.path.entity.availability=new Cesium__namespace.TimeIntervalCollection([new Cesium__namespace.TimeInterval({start:this._startTime,stop:n})])),this.bindUpdateEvent()}else!this.options.autoStop&&(null==(o=this[e(2584)])?void 0:o.forwardExtrapolationType)!==Cesium__namespace.ExtrapolationType.NONE||this.stop()}}}}},{key:O(i),value:function(){var p=1018,m=3088,d=3366,f=3258,n=O,y=this,s=0<arguments[n(o)]&&void 0!==arguments[0]?arguments[0]:{},v=this[n(l)],g=0,C=[],x=[],b=[],k=[],P=[];return new Promise(function(t,e){var i=1980,_=n,a=[];v.forEach(function(e){var t=_0x236b;a.push(e[t(1111)])}),computeStepSurfaceLine(_objectSpread2(_objectSpread2({objectsToExclude:y._layer[_(c)]},s),{},{exact:!0,scene:y._map.scene,positions:a,endItem:function(e,t,i){var a,n=_;if(y._map){var s=v[i];if(t)P[n(p)](s);else for(var r=0;r<e.length;r++){var o=LngLatPoint.fromCartesian(e[r]);o._speed=s[n(m)],P.push(o)}for(var l=(null==(a=v[i])?void 0:a.alt)||0,c=(((null==(a=v[i+1])?void 0:a.alt)||0)-l)/e.length,h=0;h<e.length;h++){0!==h&&(g+=Cesium__namespace.Cartesian3[n(1937)](e[h],e[h-1])),C.push(Number(g[n(d)](1)));var u=LngLatPoint[n(f)](e[h]),u=(k[n(1018)](u),t?0:u.alt),u=(x.push(u),Number((l+c*h).toFixed(1)));b.push(u)}}},end:function(){var e=_;y._map&&(y._terrainHeight={arrLength:C,arrFxgd:b,arrHbgd:x,arrPoint:k},y[e(i)]=P,t(P))}}))})}},{key:"clampToGround",value:function(e){return this[O(a)](e)}},{key:"getTerrainHeight",value:function(){var a=O,n=this,s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},f=this[a(r)];return new Promise(function(e,t){var l,c,h,u,_,i=496,p=2993,m=1018,d=a;n._terrainHeight?e(n._terrainHeight):(n[d(496)]=!0,l=0,c=[],h=[],u=[],_=[],computeStepSurfaceLine(_objectSpread2(_objectSpread2({objectsToExclude:n._layer.objectsToExclude},s),{},{exact:!0,scene:n._map[d(3118)],positions:f,endItem:function(e,t,i){for(var a=d,n=f[i].alt,s=(f[i+1][a(p)]-n)/e.length,r=0;r<e.length;r++){0!==r&&(l+=Cesium__namespace.Cartesian3[a(1937)](e[r],e[r-1])),c[a(1018)](Number(l.toFixed(1)));var o=LngLatPoint.fromCartesian(e[r]),o=(_[a(m)](o),t?0:o.alt),o=(h[a(1018)](o),Number((n+s*r).toFixed(1)));u.push(o)}},end:function(){n[d(i)]=!1,n._terrainHeight={arrLength:c,arrFxgd:u,arrHbgd:h,arrPoint:_},e(n._terrainHeight)}})))})}}]),R}()),index$6=(register$4("fixedRoute",FixedRoute),{__proto__:null,BaseGraphic:BaseGraphic,BaseEntity:BaseEntity,BasePointEntity:BasePointEntity,BasePolyEntity:BasePolyEntity,BasePrimitive:BasePrimitive,BasePointPrimitive:BasePointPrimitive,BasePolyPrimitive:BasePolyPrimitive,PointEntity:PointEntity,BillboardEntity:BillboardEntity,FontBillboardEntity:FontBillboardEntity,DivBillboardEntity:DivBillboardEntity,LabelEntity:LabelEntity,CanvasLabelEntity:CanvasLabelEntity,ModelEntity:ModelEntity,BoxEntity:BoxEntity,PlaneEntity:PlaneEntity,CircleEntity:CircleEntity,CylinderEntity:CylinderEntity,ConeTrack:ConeTrack,EllipsoidEntity:EllipsoidEntity,PolylineEntity:PolylineEntity,CurveEntity:CurveEntity,PolylineVolumeEntity:PolylineVolumeEntity,PathEntity:PathEntity,CorridorEntity:CorridorEntity,WallEntity:WallEntity,RectangleEntity:RectangleEntity,PolygonEntity:PolygonEntity,EllipseEntity:EllipseEntity,RectangularSensor:RectangularSensor,Video2D:Video2D,PitEntity:PitEntity,AttackArrow:AttackArrow,AttackArrowPW:AttackArrowPW,AttackArrowYW:AttackArrowYW,CloseVurve:CloseVurve,DoubleArrow:DoubleArrow,FineArrow:FineArrow,FineArrowYW:FineArrowYW,GatheringPlace:GatheringPlace,IsosTriangle:IsosTriangle,Lune:Lune,Regular:Regular,Sector:Sector,StraightArrow:StraightArrow,PointMeasure:PointMeasure,DistanceMeasure:DistanceMeasure,DistanceSurfaceMeasure:DistanceSurfaceMeasure,SectionMeasure:SectionMeasure,AngleMeasure:AngleMeasure,HeightMeasure:HeightMeasure,HeightTriangleMeasure:HeightTriangleMeasure,AreaMeasure:AreaMeasure,AreaSurfaceMeasure:AreaSurfaceMeasure,VolumeMeasure:VolumeMeasure,VolumeDepthMeasure:VolumeDepthMeasure,PointPrimitive:PointPrimitive,BillboardPrimitive:BillboardPrimitive,CloudPrimitive:CloudPrimitive,LabelPrimitive:LabelPrimitive,ModelPrimitive:ModelPrimitive,CirclePrimitive:CirclePrimitive,PlanePrimitive:PlanePrimitive,BoxPrimitive:BoxPrimitive,CylinderPrimitive:CylinderPrimitive,ConeTrackPrimitive:ConeTrackPrimitive,EllipsoidPrimitive:EllipsoidPrimitive,PolylinePrimitive:PolylinePrimitive,WallPrimitive:WallPrimitive,CorridorPrimitive:CorridorPrimitive,PolylineVolumePrimitive:PolylineVolumePrimitive,RectanglePrimitive:RectanglePrimitive,PolygonPrimitive:PolygonPrimitive,FrustumPrimitive:FrustumPrimitive,LightCone:LightCone,Water:Water,DiffuseWall:DiffuseWall,ScrollWall:ScrollWall,ThickWall:ThickWall,DynamicRiver:DynamicRiver,Road:Road,Pit:Pit,DoubleSidedPlane:DoubleSidedPlane,ReflectionWater:ReflectionWater,BaseCombine:BaseCombine,FlatBillboard:FlatBillboard,ModelCombine:ModelCombine,PlaneCombine:PlaneCombine,BoxCombine:BoxCombine,CircleCombine:CircleCombine,CylinderCombine:CylinderCombine,FrustumCombine:FrustumCombine,EllipsoidCombine:EllipsoidCombine,PolylineCombine:PolylineCombine,PolylineVolumeCombine:PolylineVolumeCombine,CorridorCombine:CorridorCombine,WallCombine:WallCombine,PolygonCombine:PolygonCombine,WaterCombine:WaterCombine,RectangleCombine:RectangleCombine,DivGraphic:DivGraphic,DivBoderLabel:DivBoderLabel,DivLightPoint:DivLightPoint,DivUpLabel:DivUpLabel,Popup:Popup,Tooltip:Tooltip,ParticleSystem:ParticleSystem,ArcFrustum:ArcFrustum,Tetrahedron:Tetrahedron,ViewShed:ViewShed,Video3D:Video3D,Route:Route,FixedRoute:FixedRoute}),XyzImageryProvider$1=function(e){var i=2822,a=(_inherits(r,e),_createSuper(r));function r(){var e,n=2922,s=_0x236b,t=0<arguments[s(i)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,r),t.customTags=t.customTags||{},t[s(1666)].host=function(e,t,i,a){return location[s(n)]},t[s(1666)].hostname=function(e,t,i,a){return location.hostname},t[s(1666)].z4490=function(e,t,i,a){return a+1},(e=a[s(1567)](this,t)).options=t,e}return _createClass(r)}(Cesium__namespace[_0x1658de(823)]),TdtImageryProvider=function(e){var r=1525,o=3176,l=532,c=3094,h=1189,u=2350,_=4072,p=3680,m=2350,d=2974,f=2512,y=1567,v=(_inherits(g,e),_createSuper(g));function g(){var t=_0x236b,e=0<arguments[t(2822)]&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,g);var i,a=18;switch(e.layer){case"vec_d":i="vec";break;case"vec_z":i="cva";break;case"vec_e":i="eva";break;case t(r):i="img";break;case"img_z":i=t(o);break;case t(l):i="eia";break;case"ter_d":i="ter",a=14;break;case"ter_z":i="cta",a=14;break;default:i="vec"}null!=e[t(3982)]&&0!==e.key.length||(e[t(3982)]=tiandituArr);var n,s=getArrayRandomOne(e.key),e=e.crs===CRS.EPSG4490||e.crs===CRS.EPSG4326?(n="https://t{s}.tianditu.gov.cn/"+i+"_c/wmts?service=WMTS&version=1.0.0&request=GetTile&tilematrix={TileMatrix}&layer="+i+"&style={style}&tilerow={TileRow}&tilecol={TileCol}&tilematrixset={TileMatrixSet}&format=tiles&tk="+s,(e[t(c)]||e.headers||e.queryParameters)&&(n=getUrlResource({url:n[t(h)]("{s}","0"),proxy:e[t(3094)],headers:e[t(1145)],queryParameters:e[t(u)]})),_objectSpread2(_objectSpread2({subdomains:["0","1","2","3","4","5","6","7"],maximumLevel:a},e),{},{url:n,layer:i,style:"default",format:t(_),tileMatrixSetID:"c",tileMatrixLabels:_toConsumableArray(Array(20)[t(2206)]())[t(2412)](function(e){return(e+1)[t(1375)]()}),tilingScheme:new Cesium__namespace[t(1327)]})):(n=t(3391)+i+t(p)+i+t(1177)+s,(e.proxy||e.headers||e.queryParameters)&&(n=getUrlResource({url:n.replace(t(1429),"0"),proxy:e.proxy,headers:e.headers,queryParameters:e[t(m)]})),_objectSpread2(_objectSpread2({subdomains:["0","1","2","3","4","5","6","7"],maximumLevel:a},e),{},{url:n,layer:i,style:t(d),format:"tiles",tileMatrixSetID:"w",tileMatrixLabels:_toConsumableArray(Array(20).keys()).map(function(e){return e[t(1375)]()}),tilingScheme:new Cesium__namespace[t(f)]}));return(s=v[t(y)](this,e)).options=e,s}return _createClass(g)}(Cesium__namespace[_0x1658de(682)]),GaodeImageryProvider=function(){var n=3881,s=2431,r=2675,o=2350,l=1189,c=1567,h=(_inherits(u,XyzImageryProvider$1),_createSuper(u));function u(){var e=_0x236b,t=0<arguments[e(2822)]&&void 0!==arguments[0]?arguments[0]:{};switch(_classCallCheck(this,u),t.layer){case e(1269):a="https://"+(t.bigfont?"wprd":e(n))+"0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}";break;case"img_d":a="https://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}";break;case"img_z":a="https://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8";break;case"time":var i=(new Date).getTime(),a=e(s)+i;break;default:a=t[e(r)]}return(t[e(3094)]||t.headers||t[e(o)])&&(a=getUrlResource({url:a[e(l)]("{s}","1"),proxy:t[e(3094)],headers:t.headers,queryParameters:t.queryParameters})),h[e(c)](this,_objectSpread2(_objectSpread2({subdomains:["1","2","3","4"],maximumLevel:18},t),{},{url:a}))}return _createClass(u)}(),EARTH_RADIUS=6370996.81,MC_BAND=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],LL_BAND=[75,60,45,30,15,0],MC2LL=[[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]],LL2MC=[[-.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]],BaiduMercatorProjection=function(){var e=3326,t=1943,i=578,s=1943,r=498,a=484,o=1868,n=411,l=3366,c=1523,h=654,u=484,_=2822,p=484,m=3366,d=3366,f=654,y=484,v=3198,g=484,C=654,x=484,b=2581,k=654,P=_0x1658de;function w(){var e=_0x236b;_classCallCheck(this,w),this[e(3317)]=!1}return _createClass(w,[{key:"getDistanceByMC",value:function(e,t){var i,a=_0x236b;return e&&t&&(e=this.convertMC2LL(e))&&(i=this.toRadians(e[a(x)]),e=this[a(b)](e[a(k)]),t=this.convertMC2LL(t))?(a=this.toRadians(t[a(484)]),t=this.toRadians(t.lat),this.getDistance(i,a,e,t)):0}},{key:"getDistanceByLL",value:function(e,t){var i=_0x236b;if(!e||!t)return 0;e[i(484)]=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74),t.lng=this[i(1523)](t[i(y)],-180,180),t.lat=this[i(v)](t.lat,-74,74);var a=this.toRadians(e[i(g)]),e=this.toRadians(e[i(C)]),i=this.toRadians(t[i(484)]),t=this.toRadians(t.lat);return this.getDistance(a,i,e,t)}},{key:"convertMC2LL",value:function(e){var t=_0x236b;if(!e)return{lng:0,lat:0};var i,a={};if(this[t(3317)])return a.lng=e.lng/20037508.34*180,i=e.lat/20037508.34*180,a.lat=180/Math.PI*(2*Math[t(2604)](Math.exp(i*Math.PI/180))-Math.PI/2),{lng:a[t(p)][t(m)](6),lat:a[t(654)][t(d)](6)};for(var n,s={lng:Math.abs(e.lng),lat:Math.abs(e.lat)},r=0;r<MC_BAND.length;r++)if(s[t(f)]>=MC_BAND[r]){n=MC2LL[r];break}return{lng:(a=this.convertor(e,n)).lng.toFixed(6),lat:a.lat.toFixed(6)}}},{key:P(2760),value:function(e){var t,i=P;if(!e)return{lng:0,lat:0};if(180<e.lng||e.lng<-180||90<e.lat||e[i(654)]<-90)return e;if(this.isWgs84)return(t={}).lng=e.lng*Math.PI/180*6378137,o=e.lat*Math.PI/180,t.lat=3189068.5*Math.log((1+Math.sin(o))/(1-Math[i(1868)](o))),{lng:parseFloat(t.lng[i(l)](2)),lat:parseFloat(t.lat[i(3366)](2))};e.lng=this[i(c)](e.lng,-180,180),e.lat=this[i(3198)](e[i(h)],-74,74);for(var a,n={lng:e[i(u)],lat:e[i(h)]},s=0;s<LL_BAND[i(_)];s++)if(n[i(654)]>=LL_BAND[s]){a=LL2MC[s];break}if(!a)for(var r=0;r<LL_BAND.length;r++)if(n.lat<=-LL_BAND[r]){a=LL2MC[r];break}var o=this.convertor(e,a);return{lng:parseFloat(o[i(u)].toFixed(2)),lat:parseFloat(o.lat.toFixed(2))}}},{key:P(3919),value:function(e,t){var i,a=P;return e&&t?(i=t[0]+t[1]*Math.abs(e.lng),a=Math[a(n)](e.lat)/t[9],t=t[2]+t[3]*a+t[4]*a*a+t[5]*a*a*a+t[6]*a*a*a*a+t[7]*a*a*a*a*a+t[8]*a*a*a*a*a*a,{lng:i*=e.lng<0?-1:1,lat:t*=e.lat<0?-1:1}):{lng:0,lat:0}}},{key:"getDistance",value:function(e,t,i,a){var n=P;return EARTH_RADIUS*Math.acos(Math.sin(i)*Math[n(o)](a)+Math.cos(i)*Math.cos(a)*Math[n(3007)](t-e))}},{key:P(2581),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)),e=null!=i?Math.min(e,i):e}},{key:"getLoop",value:function(e,t,i){for(;i<e;)e-=i-t;for(;e<t;)e+=i-t;return e}},{key:P(e),value:function(e){return this.convertLL2MC(e)}},{key:"lngLatToPoint",value:function(e){var t=P,e=this.convertLL2MC(e);return{x:e[t(a)],y:e[t(654)]}}},{key:P(t),value:function(e){return this.convertMC2LL(e)}},{key:P(i),value:function(e){var t=P,e={lng:e.x,lat:e.y};return this[t(1584)](e)}},{key:"pointToPixel",value:function(e,t,i,a){var n=P;if(!e)return{x:0,y:0};e=this.lngLatToMercator(e);t=this.getZoomUnits(t);return{x:Math[n(r)]((e.lng-i.lng)/t+a.width/2),y:Math.round((i.lat-e.lat)/t+a.height/2)}}},{key:P(2834),value:function(e,t,i,a){var n=P;return e?(t=this[n(2060)](t),i={lng:i.lng+t*(e.x-a.width/2),lat:i.lat-t*(e.y-a.height/2)},this[n(s)](i)):{lng:0,lat:0}}},{key:"getZoomUnits",value:function(e){return Math.pow(2,18-e)}}]),w}(),BaiduMercatorTilingScheme=function(e){var s=1135,r=3264,o=3277,l=2638,c=1567,h=1620,u=998,_=1604,p=2360,m=3924,d=(_inherits(f,e),_createSuper(f));function f(e){var t,a=484,n=_0x236b,i=(_classCallCheck(this,f),t=d[n(c)](this,e),e[n(h)]||ChinaCRS[n(u)]),s=ChinaCRS.BAIDU,r=getTransFun(i,s),o=getTransFun(s,i),l=new BaiduMercatorProjection;return t[n(2538)].project=function(e,t){var i=n;return t=[Cesium__namespace.Math.toDegrees(e[i(3594)]),Cesium__namespace[i(1124)][i(_)](e[i(p)])],(t=r?r(t):t)[0]=Math.min(t[0],180),t[0]=Math.max(t[0],-180),t[1]=Math[i(m)](t[1],85.05112877980659),t[1]=Math.max(t[1],-85.05112877980659),t=l.lngLatToPoint({lng:t[0],lat:t[1]}),new Cesium__namespace[i(2638)](t.x,t.y)},t._projection.unproject=function(e,t){var i=n;return t=[(t=l.mercatorToLngLat({lng:e.x,lat:e.y}))[i(a)],t.lat],o&&(t=o(t)),new Cesium__namespace.Cartographic(Cesium__namespace.Math.toRadians(t[0]),Cesium__namespace.Math.toRadians(t[1]))},t[n(656)]=e.resolutions||[],t}return _createClass(f,[{key:"tileXYToNativeRectangle",value:function(e,t,i,a){var n=_0x236b,i=this.resolutions[i],s=e*i,e=(e+1)*i,r=(1+(t=-t))*i,t=t*i;return Cesium__namespace[n(3277)](a)?(a.west=s,a[n(3566)]=t,a.east=e,a[n(2992)]=r,a):new Cesium__namespace[n(2036)](s,t,e,r)}},{key:"positionToTileXY",value:function(e,t,i){var a=_0x236b,n=this._rectangle;if(Cesium__namespace[a(2036)][a(s)](n,e)){var n=this._projection.project(e);if(Cesium__namespace[a(3277)](n))return e=this.resolutions[t],t=Math.floor(n.x/e),n=-Math[a(r)](n.y/e),Cesium__namespace[a(o)](i)?(i.x=t,i.y=n,i):new Cesium__namespace[a(l)](t,n)}}}]),f}(Cesium__namespace[_0x1658de(2512)]),BaiduImageryProvider=function(){var e=1365,t=323,c=1595,i=2287,a=1132,n=2478,s=3768,r=831,o=1269,l=2350,h=2350,u=2774,_=3425,p=1242,m=2492,d=2587,f=2557,y=717,v=2430,g=1592,C=2638,x=3778,b=3980,k=_0x1658de;function P(){var e,s=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};switch(_classCallCheck(this,P),t.layer){case s(o):e="https://maponline{s}.bdimg.com/tile/?qt=vtile&x={x}&y={y}&z={z}&styles="+(t.bigfont?"ph":"pl")+"&scaler=2&udt=&from=jsapi2_0";break;case"img_d":e="https://maponline{s}.bdimg.com/starpic/{s}?u={gis3d_u}",t.customTags=t.customTags||{},t.customTags[s(2021)]=function(e,t,i,a){var n=s;return"x="[n(2557)](t,n(2199))[n(2557)](-i,";z=").concat(a,";v=009;type=sate")},t[s(l)]=_objectSpread2(_objectSpread2({},t[s(h)]||{}),{},{qt:s(2009),app:"webearth2",udt:s(u),fm:"46",v:s(_)});break;case s(p):e="https://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles="+(t.bigfont?"sh":"sl")+"&v=020";break;case"custom":t[s(m)]=t.style||s(d),e="http://api{s}.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&scale=1&customid="+t.style;break;case"time":e="http://its.map.baidu.com:8002/traffic/TrafficTileService?x={x}&y={y}&level={z}&time="[s(f)]((new Date).getTime(),s(y)).concat(t.label||"web2D",s(v));break;case"streetview":e="https://gss{s}.bdstatic.com/5LUZemja_QUU8t7mm9GUKT-xh_/tile/?udt=20150114&qt=tile&styles=pl&x={x}&y={y}&z={z}";break;default:e=t.url}this.options=t,this._resource=getUrlResource(_objectSpread2(_objectSpread2({},t),{},{url:e})),this._tags=Cesium__namespace.combine(tags,this[s(g)][s(1666)]),this._subdomains=["0","1","2","3"],this._tileWidth=256,this._tileHeight=256,this._maximumLevel=18;for(var i=[],a=0;a<19;a++)i[a]=256*Math.pow(2,18-a);this[s(3358)]=new BaiduMercatorTilingScheme({resolutions:i,rectangleSouthwestInMeters:new Cesium__namespace[s(C)](-20037726.37,-12474104.17),rectangleNortheastInMeters:new Cesium__namespace[s(2638)](20037726.37,12474104.17),mapChinaCRS:t.mapChinaCRS}),this._rectangle=this._tilingScheme.rectangle,this[s(3787)]=Cesium__namespace.defer?Cesium__namespace.defer():Cesium__namespace[s(x)][s(b)](),this[s(831)]=new Cesium__namespace.Event,this._readyPromise.resolve(!0)}return _createClass(P,[{key:k(2675),get:function(){var e;return null==(e=this._resource)?void 0:e.url}},{key:"errorEvent",get:function(){return this[k(r)]}},{key:"tileWidth",get:function(){var e=k;if(this.ready)return this._tileWidth;throw new Cesium__namespace.DeveloperError(e(2417))}},{key:"tileHeight",get:function(){var e=k;if(this.ready)return this[e(s)];throw new Cesium__namespace.DeveloperError("tileHeight must not be called before the imagery provider is ready.")}},{key:"maximumLevel",get:function(){var e=k;if(this.ready)return this._maximumLevel;throw new Cesium__namespace.DeveloperError(e(3777))}},{key:"minimumLevel",get:function(){var e=k;if(this.ready)return 0;throw new Cesium__namespace.DeveloperError(e(2585))}},{key:k(e),get:function(){var e=k;if(this[e(625)])return this[e(3358)];throw new Cesium__namespace[e(n)](e(2786))}},{key:k(3222),get:function(){if(this.ready)return this._rectangle;throw new Cesium__namespace.DeveloperError("rectangle must not be called before the imagery provider is ready.")}},{key:"ready",get:function(){return!!this[k(a)]}},{key:"readyPromise",get:function(){return this._readyPromise.promise}},{key:"credit",get:function(){return this[k(i)]}},{key:k(t),get:function(){return!0}},{key:"requestImage",value:function(t,i,a,e){var n=k,s=this,r=this._resource,n=r[n(c)](!0),o=this._tags,l={},n=n.match(templateRegex);return Cesium__namespace.defined(n)&&n.forEach(function(e){e=e.substring(1,e.length-1);Cesium__namespace.defined(o[e])&&(l[e]=o[e](s,t,i,a))}),r.getDerivedResource({request:e,templateValues:l}).fetchImage({preferImageBitmap:!0,flipY:!0})}}]),P}(),templateRegex=/{[^}]+}/g,tags={x:xTag,y:yTag,reverseY:reverseYTag,z:zTag,s:sTag};function xTag(e,t,i,a){return t}function yTag(e,t,i,a){return-i}function reverseYTag(e,t,i,a){return e.tilingScheme.getNumberOfYTilesAtLevel(a)-i-1}function zTag(e,t,i,a){return a}function sTag(e,t,i,a){var n=_0x1658de,t=(t+i+a)%e._subdomains[n(2822)];return e[n(1783)][t]}var TencentImageryProvider=function(){var a=3395,n=(_inherits(s,XyzImageryProvider$1),_createSuper(s));function s(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};switch(_classCallCheck(this,s),i.layer){case"vec":i.url="https://rt{s}.map.gtimg.com/tile?z={z}&x={x}&y={reverseY}&styleid=1&scene=0";break;case"img_d":i.url="https://p{s}.map.gtimg.com/sateTiles/{z}/{sx}/{sy}/{x}_{reverseY}.jpg?version=400",i.customTags={sx:function(e,t,i,a){return t>>4},sy:function(e,t,i,a){return(1<<a)-i>>4}};break;case"img_z":i.url=t(a);break;case"custom":i.style=i.style||"4",i.url="https://rt{s}.map.gtimg.com/tile?z={z}&x={x}&y={reverseY}&styleid="+i[t(2492)]+t(3134)}return i.subdomains=null!=(e=i.subdomains)?e:["0","1","2"],n.call(this,i)}return _createClass(s)}(),GoogleImageryProvider=function(){var a=998,n=3138,s=1525,r=1242,o=2136,l=(_inherits(c,XyzImageryProvider$1),_createSuper(c));function c(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,c),i.chinaCRS===ChinaCRS[t(a)])e=i[t(2675)]||t(n);else switch(i.layer){case"vec":e="https://mt{s}.google.cn/vt/lyrs=m@207000000&hl=zh-CN&gl=CN&src=app&x={x}&y={y}&z={z}&s=Galile";break;case t(s):e="http://mt{s}.google.cn/vt/lyrs=s&hl=zh-CN&gl=CN&x={x}&y={y}&z={z}&s=Gali";break;case t(r):e=t(o);break;case"ter":e="http://mt{s}.google.cn/vt/lyrs=t@131,r@227000000&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&s=Galile";break;default:e=i.url}return(i.proxy||i.headers||i.queryParameters)&&(e=getUrlResource({url:e.replace("{s}","1"),proxy:i.proxy,headers:i.headers,queryParameters:i[t(2350)]})),l.call(this,_objectSpread2(_objectSpread2({subdomains:["1","2","3"],maximumLevel:20},i),{},{url:e}))}return _createClass(c)}(),OsmImageryProvider=function(){var a=1145,n=(_inherits(s,XyzImageryProvider$1),_createSuper(s));function s(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=(_classCallCheck(this,s),"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png");return(t.proxy||t[e(a)]||t.queryParameters)&&(i=getUrlResource({url:i.replace("{s}","a"),proxy:t.proxy,headers:t.headers,queryParameters:t.queryParameters})),n.call(this,_objectSpread2(_objectSpread2({subdomains:e(3587),maximumLevel:18},t),{},{url:i}))}return _createClass(s)}(),EmptyImageryProvider=function(e){var h=3159,u=3684,_=3611,n=1569,s=3222,r=3222,o=(_inherits(l,e),_createSuper(l));function l(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),(t=o.call(this,a)).options=a,t._minimumLevel=null!=(e=a[i(n)])?e:0,t._maximumLevel=a[i(4024)],t._tilingScheme=null!=(e=a.tilingScheme)?e:new Cesium__namespace.GeographicTilingScheme({ellipsoid:a.ellipsoid}),a[i(s)]?t._rectangle=Cesium__namespace[i(2036)].intersection(a.rectangle,t._tilingScheme.rectangle):t._rectangle=t._tilingScheme[i(r)],t.options=a,t}return _createClass(l,[{key:"requestImage",value:function(r,o,l){var c=this;return new Promise(function(e,t){var i,a,n=_0x236b,s=document.createElement("canvas");if(s.width=256,s[n(h)]=256,l<c._minimumLevel||Cesium__namespace.defined(c._maximumLevel)&&l>c._maximumLevel)return s;c[n(1592)][n(u)]&&((i=s.getContext("2d",{willReadFrequently:!0})).strokeStyle=n(_),i.lineWidth=2,i.strokeRect(1,1,255,255),a="L"+l+"X"+r+"Y"+o,i.font="bold 25px Arial",i[n(2261)]=n(1494),i.fillStyle=n(2747),i.fillText(a,127,127),i.fillStyle="#ffff00",i.fillText(a,124,124)),e(s)})}}]),l}(Cesium__namespace.TileCoordinatesImageryProvider),index$5={__proto__:null,XyzImageryProvider:XyzImageryProvider$1,TdtImageryProvider:TdtImageryProvider,GaodeImageryProvider:GaodeImageryProvider,BaiduImageryProvider:BaiduImageryProvider,TencentImageryProvider:TencentImageryProvider,GoogleImageryProvider:GoogleImageryProvider,OsmImageryProvider:OsmImageryProvider,EmptyImageryProvider:EmptyImageryProvider},GroupLayer=function(){var e=1983,t=3240,i=2681,a=907,n=1553,s=2432,r=3036,o=2036,l=1973,c=1973,h=1018,u=2437,_=2514,p=2437,m=412,d=368,f=2271,y=2822,v=1592,g=1301,C=1973,x=1312,b=2196,k=1973,P=2822,w=_0x1658de,S=(_inherits(T,BaseGraphicLayer),_createSuper(T));function T(){var e=_0x236b,t=0<arguments[e(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,T),(t=S.call(this,t))[e(1973)]=[],t}return _createClass(T,[{key:"layer",get:function(){return this[_0x236b(1973)]}},{key:"arrLayer",get:function(){return this._arrLayer}},{key:w(2524),get:function(){return 0===this.length}},{key:"hasChildLayer",get:function(){return 0<this[w(2822)]}},{key:w(2822),get:function(){var e,t=w;return 0<(null==(e=this.options)||null==(e=e[t(b)])?void 0:e.length)?this.options[t(b)].length:(null==(e=this[t(k)])?void 0:e[t(P)])||0}},{key:w(1312),get:function(){var e=w;return 0!==this._arrLayer.length&&this._arrLayer[0][e(x)]}},{key:"hasZIndex",get:function(){return 0!==this[w(C)].length&&this._arrLayer[0].hasZIndex}},{key:"zIndex",get:function(){return this.options.zIndex},set:function(t){var e=w;this.options[e(g)]=t,this.eachLayer(function(e){e.hasZIndex&&(e.zIndex=t)},this)}},{key:w(1594),value:function(t){this.eachLayer(function(e){e.show=t},this)}},{key:"_mountedHook",value:function(){var e=w,t=(_get(_getPrototypeOf(T.prototype),"_mountedHook",this).call(this),this.options.layers);if(t&&0<t[e(y)])for(var i=0;i<t.length;i++){var a=t[i],a=(a.eventParent=this,a.private=this.isPrivate,create$2(a,this[e(v)].templateValues));a&&this[e(1313)](a)}}},{key:"_addedHook",value:function(){var i=1049,t=2697,a=this,n=[];this.eachLayer(function(e){(e[_0x236b(t)]=a)._map.addLayer(e),n.push(e.readyPromise)},this),Promise.all(n).then(function(e){var t=_0x236b;a._readyPromise[t(i)](a)})}},{key:"_removedHook",value:function(){this.removeMapChilds()}},{key:"addChildsToMap",value:function(){var t=this;this[w(2271)](function(e){t._map.addLayer(e)},this)}},{key:w(e),value:function(){var t=this;this[w(f)](function(e){t._map.removeLayer(e)},this)}},{key:w(1313),value:function(e){var t=w;return e.parent&&(e.removeEventParent(e[t(p)]),e.parent=null),e[t(m)]=this.id,e.parent=this,(e.options[t(2697)]=this)[t(1973)].push(e),this.isAdded&&!e.isAdded?this._map.addLayer(e):(e[t(d)](this._map),e.addEventParent(this)),this}},{key:"removeLayer",value:function(e){var t=w;return e[t(u)]=null,e.removeEventParent(this),removeArrayItem(this._arrLayer,e),this._map&&e[t(_)]&&this._map.removeLayer(e),this}},{key:"eachLayer",value:function(t,i){var e=w;if(this._arrLayer)return this._arrLayer[e(2432)](function(e){t.call(i,e)}),this}},{key:w(2096),value:function(){return this._arrLayer}},{key:w(t),value:function(){var i=this,a=this._arrLayer||[];return this._map.eachLayer(function(e){var t=_0x236b;e[t(412)]===i.id&&-1===i._arrLayer.indexOf(e)&&a[t(h)](e)},this),a}},{key:w(i),value:function(e){var t=w,i=this._arrLayer;if(this[t(c)]&&0!==this._arrLayer[t(2822)])for(var a=0,n=i[t(2822)];a<n;a++){var s=i[a];if(s.id===e)return s}}},{key:"getLayer",value:function(e){if(this[w(l)]&&0!==this._arrLayer.length)for(var t=0;t<this._arrLayer.length;t++){var i=this._arrLayer[t];if(i.name===e||i.id===e)return i}}},{key:w(a),value:function(e,t){for(var i=w,a=0;a<this._arrLayer.length;a++){var n=this[i(1973)][a];if((!t||n!==t)&&(n.name===e||n.id===e))return!0}return!1}},{key:"_toJsonEx",value:function(e){var t=[];this.eachLayer(function(e){t.push(e.toJSON())},this),0<t.length&&(e.layers=t)}},{key:"getRectangle",value:function(e){var i,a=w;return this[a(3240)]()[a(s)](function(e){var t=a;e[t(r)]&&(e=e.getRectangle(),Cesium__namespace.defined(e))&&(i=i?Cesium__namespace[t(o)].union(e,i):e)},this),e?formatRectangle(i):i}},{key:w(3860),value:function(t){this[w(2271)](function(e){e.opacity=t},this)}},{key:"toTop",value:function(){this.eachLayer(function(e){e[_0x236b(2930)]()},this)}},{key:"toBottom",value:function(){var t=3630;this.eachLayer(function(e){e[_0x236b(t)]()},this)}},{key:"destroy",value:function(i){this.eachLayer(function(e){var t=_0x236b;null!=e&&e.destroy&&e[t(n)](i)},this),_get(_getPrototypeOf(T.prototype),"destroy",this).call(this,i)}}]),T}(),BaseTileLayer=(register$2(_0x1658de(752),GroupLayer),function(){var e=3385,t=3629,i=2121,a=794,n=2071,s=2930,r=952,o=1803,l=1266,c=2094,h=1266,u=3840,_=3570,p=1803,m=3817,d=737,f=1592,y=2992,v=3817,g=2606,C=3222,x=3817,b=2465,k=4070,P=2724,w=1558,S=1997,T=1592,M=3819,E=2119,A=1447,L=3119,H=2131,D=430,F=1967,N=2036,G=430,z=625,B=1592,j=625,V=2606,$=3563,U=2606,W=3668,J=2606,I=429,q=2606,Y=2995,Z=2098,X=2606,Q=679,O=_0x1658de,K=(_inherits(R,BaseLayer),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(e=K.call(this,i))._setRectangleByOptions(i),e[t(Q)]=!0,e}return _createClass(R,[{key:O(e),get:function(){return this[O(X)]}},{key:"imageryProvider",get:function(){var e;return null==(e=this._imageryLayer)?void 0:e.imageryProvider}},{key:O(2022),get:function(){return this.options.crs||CRS.EPSG3857}},{key:O(t),get:function(){return this.opacity},set:function(e){this[O(Z)]=e}},{key:"brightness",get:function(){var e;return this[O(1592)].brightness||(null==(e=this._imageryLayer)?void 0:e.brightness)},set:function(e){var t=O;this.options[t(Y)]=e,null!=this[t(2606)]&&(this[t(2606)].brightness=e)}},{key:"contrast",get:function(){var e;return this.options.contrast||(null==(e=this._imageryLayer)?void 0:e.contrast)},set:function(e){var t=O;this.options[t(I)]=e,null!=this[t(q)]&&(this[t(2606)][t(I)]=e)}},{key:"hue",get:function(){var e;return this.options.hue||(null==(e=this._imageryLayer)?void 0:e.hue)},set:function(e){var t=O;this[t(1592)][t(W)]=e,null!=this._imageryLayer&&(this[t(J)][t(3668)]=e)}},{key:"saturation",get:function(){var e;return this.options.saturation||(null==(e=this._imageryLayer)?void 0:e.saturation)},set:function(e){var t=O;this.options.saturation=e,null!=this[t(U)]&&(this[t(2606)].saturation=e)}},{key:"gamma",get:function(){var e=O;return this.options[e(3665)]||(null==(e=this._imageryLayer)?void 0:e.gamma)},set:function(e){this.options.gamma=e,null!=this._imageryLayer&&(this._imageryLayer.gamma=e)}},{key:O(i),get:function(){return!0}},{key:"zIndex",get:function(){return this[O(1592)].zIndex},set:function(e){var t=O;if(this.options.zIndex=e,null!=this[t(V)]&&null!=e){this._map[t(3563)].raiseToTop(this._imageryLayer);for(var i=this._map.imageryLayers._layers,a=i.length-1;0<=a;a--){var n=i[a];n!==this[t(2606)]&&((n=n._gis3d_config)&&n.zIndex&&e<n[t(1301)])&&this._map[t($)][t(3433)](this[t(2606)])}}}},{key:"rectangle",get:function(){var e,t=O;return this._rectangle?this[t(430)]:null!=(e=this[t(2606)])&&null!=(e=e[t(3569)])&&e[t(j)]&&this._imageryLayer.imageryProvider.rectangle?this._imageryLayer.imageryProvider.rectangle:null},set:function(e){var t=O;e?e instanceof Cesium__namespace.Rectangle&&(this._rectangle=e,this.options.rectangle=formatRectangle(this._rectangle),null!=(e=this._imageryLayer))&&null!=(e=e[t(3569)])&&e[t(z)]&&this._imageryLayer.imageryProvider[t(3222)]&&(this._imageryLayer.imageryProvider._rectangle=this._rectangle):(this[t(430)]=void 0,delete this[t(B)].rectangle,this.reload())}},{key:O(449),value:function(e){var t=O;Cesium__namespace.defined(e.rectangle)?Cesium__namespace.defined(e.rectangle[t(A)])&&Cesium__namespace[t(3277)](e.rectangle[t(2535)])&&Cesium__namespace.defined(e.rectangle.ymin)&&Cesium__namespace.defined(e.rectangle.ymax)?this._rectangle=Cesium__namespace.Rectangle[t(L)](e.rectangle.xmin,e.rectangle.ymin,e.rectangle[t(2535)],e.rectangle[t(H)]):e.rectangle instanceof Cesium__namespace.Rectangle?this[t(D)]=e.rectangle:delete e[t(3222)]:Cesium__namespace.defined(e.bbox)&&e[t(1967)].length&&4===e[t(F)].length?this[t(D)]=Cesium__namespace[t(N)].fromDegrees(e.bbox[0],e.bbox[1],e[t(1967)][2],e.bbox[3]):this[t(G)]=void 0}},{key:O(2586),value:function(e,t){this[O(449)](e),this.reload()}},{key:O(1258),value:function(e){return new Cesium__namespace[O(823)](e)}},{key:"_addedHook",value:function(){var e=O,t=this,e=(this[e(T)].highlight&&(this.options[e(M)]=!0),this._createImageryProvider(_objectSpread2(_objectSpread2({},this[e(1592)]),{},{rectangle:this.rectangle,mapChinaCRS:this._map[e(E)]})));Cesium__namespace.defined(e)&&(e.then?e.then(function(e){t._addImageryLayer(e)}):this._addImageryLayer(e))}},{key:O(a),value:function(e){var a=O,n=this,t=this[a(1592)],t=_objectSpread2(_objectSpread2({show:this.show,alpha:this.opacity},t),{},{rectangle:this[a(C)],marsOptions:{onAddTile:function(e){e=n._getTileEventParams(e);n.fire(EventType.addTile,e)},onAddTileSuccess:function(e){var t=a,e=n._getTileEventParams(e);n[t(S)](EventType.addTileSuccess,e)},onAddTileError:function(e){var t=a,e=n._getTileEventParams(e);n.fire(EventType[t(2288)],e)},onRemoveTile:function(e){var t=a,e=n[t(P)](e);n[t(1997)](EventType[t(w)],e)}}});this._imageryLayer=new Cesium__namespace.ImageryLayer(e,t),this._imageryLayer._gis3d_layerId=this.id,this._imageryLayer[a(3931)]=this.options,this[a(x)].imageryLayers.add(this[a(2606)]),this.options.zIndex&&(this.zIndex=this[a(1592)].zIndex),this[a(1592)].highlight?(this.options.enablePickFeatures=!0,this.bindHighlight(this[a(1592)].highlight)):null!=(t=this.options[a(1227)])&&null!=(t=t.styleOptions)&&t[a(b)]&&this.bindHighlight(this[a(1592)].symbol.styleOptions.highlight),e.readyPromise.then(function(e){var t,i=a;null!=(t=n.options)&&t.flyTo&&n.flyToByAnimationEnd(),n._readyPromise&&n[i(3787)][i(1049)](n),n[i(1997)](EventType[i(k)],{},!0)})}},{key:"_getTileEventParams",value:function(e){return{x:e.x,y:e.y,level:e.level,extent:formatRectangle(e.rectangle)}}},{key:O(n),value:function(){var e,t=O;this.unbindHighlight(),null!=(e=this._imageryLayer)&&null!=(e=e[t(3569)])&&e[t(1553)]&&this[t(2606)].imageryProvider.destroy(),this._map.imageryLayers.remove(this._imageryLayer,!0),this[t(g)]=null}},{key:"reload",value:function(){var e,t=this,i=null!=(e=this[O(1592)].flyTo)&&e;this._imageryLayer&&this._removedHook(),this.isAdded&&(this.options.flyTo=!1,this.once(EventType.load,function(){t.options.flyTo=i}),this._addedHook())}},{key:"setOpacity",value:function(e){this._imageryLayer&&(this._imageryLayer.alpha=e)}},{key:O(s),value:function(){var e=O;if(this._map)return this[e(3817)][e(3563)].raiseToTop(this._imageryLayer)}},{key:"toBottom",value:function(){var e=O;if(this[e(v)])return this[e(3817)][e(3563)].lowerToBottom(this._imageryLayer)}},{key:"flyTo",value:function(){var e,t=O,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this._map&&this._imageryLayer?(this[t(m)].cancelFlyTo(),this.options.flyToOptions&&(i=_objectSpread2(_objectSpread2({},this.options.flyToOptions),i)),this.options[t(1494)]?this._map[t(d)](this[t(1592)].center,i):this[t(f)][t(1561)]?this[t(3817)].flyToExtent(this.options.extent,i):(e=this.rectangle,Cesium__namespace[t(3277)](e)&&e.equals&&!e.equals(Cesium__namespace[t(2036)][t(1637)])&&0<e.west&&0<e.south&&0<e.east&&0<e[t(y)]?this._map.camera[t(406)](_objectSpread2(_objectSpread2({},i),{},{destination:e})):Promise.resolve(!1))):Promise.resolve(!1)}},{key:"bindHighlight",value:function(e){this.unbindHighlight(),this._highlightOptions=e,this.on(EventType.click,this._highlight_mouseEventHandler,this)}},{key:"unbindHighlight",value:function(){var e=O;this[e(2354)]&&(this.off(EventType.click,this._highlight_mouseEventHandler,this),this._map[e(p)](),this._highlightOptions=null)}},{key:"_highlight_mouseEventHandler",value:function(e){var t=O,i=(this[t(3817)][t(1803)](),e[t(_)]);i&&(this[t(371)]=i,this._map.openHighlight(this,this._highlightOptions,e))}},{key:"_highlight_mouseOutHandler",value:function(e){this._map.closeHighlight()}},{key:"openHighlight",value:function(e){var t=O,e=((!(1<arguments.length&&void 0!==arguments[1])||arguments[1])&&(this._map[t(o)](),this[t(3817)].last_highlighGraphic=this),e||this._highlightOptions);this._last_graphicsOptions&&e&&(this[t(l)]||(this._graphicLayer=new GraphicLayer({name:t(c),private:!0}),this._map.addLayer(this._graphicLayer)),this[t(h)][t(u)](this._last_graphicsOptions),this[t(1997)](EventType.highlightOpen,{},!0))}},{key:"closeHighlight",value:function(){var e,t=O;this[t(1266)]&&(null==(e=this._map)?void 0:e.last_highlighGraphic)===this&&(this[t(1266)].clear(),this._map._clearLastHighlight(),this.fire(EventType[t(r)],{},!0))}}]),R}()),TerrainLayer=function(){var t=1592,i=2165,a=2211,n=3530,o=_0x1658de,e=(_inherits(s,BaseLayer),_createSuper(s));function s(){return _classCallCheck(this,s),e.apply(this,arguments)}return _createClass(s,[{key:"_showHook",value:function(e){e?this._addedHook():this._removedHook()}},{key:"_mountedHook",value:function(){var e=_0x236b;this[e(a)]=createTerrainProvider(this[e(n)]())}},{key:"_getTerrainOptions",value:function(){var e=_0x236b;return _objectSpread2({templateValues:this[e(t)].templateValues},this.options[e(i)])}},{key:"_addedHook",value:function(){this.show&&this._updateTerrainProvider()}},{key:o(2071),value:function(){this._map.terrainProvider=getNoTerrainProvider()}},{key:"_setOptionsHook",value:function(e,t){this._terrainProvider=createTerrainProvider(this._getTerrainOptions()),this._updateTerrainProvider()}},{key:o(3242),value:function(){var a={_0x17ccc7:4030},e=o,n=this,s=function e(t){var i=_0x236b;n._map.off(EventType.terrainLoadSuccess,e),n[i(3817)][i(a._0x17ccc7)](EventType.terrainLoadError,r),n._readyPromise[i(1049)](n),n.fire(EventType.load,{terrain:n._terrainProvider})},r=function e(t){var i,a=_0x236b;n[a(3817)].off(EventType[a(350)],s),n[a(3817)][a(4030)](EventType.terrainLoadError,e),null!=(i=n._readyPromise)&&i.reject&&n._readyPromise[a(1781)](t)};this._map.once(EventType[e(350)],s),this._map.once(EventType.terrainLoadError,r),this._terrainProvider[e(621)].then(s),this._map.terrainProvider=this._terrainProvider}}]),s}(),ArcGisCacheLayer=(register$2("terrain",TerrainLayer),function(){_inherits(i,BaseTileLayer);var t=_createSuper(i);function i(){var e=_0x236b;return _classCallCheck(this,i),t[e(2026)](this,arguments)}return _createClass(i,[{key:"_createImageryProvider",value:function(e){return createImageryProvider$j(e)}}]),i}());function createImageryProvider$j(e){var t=1876,i=1666,a=1372,n=1666,s=1375,r=1375,o=_0x1658de,l=(e.url=e.url.replace("{x}","C{arc_x}").replace("{y}","R{arc_y}").replace("{z}",o(t)),e.upperCase);return e.customTags=e[o(i)]||{},e.customTags[o(a)]=function(e,t,i,a){return l?padLeft0(t[o(1375)](16),8).toUpperCase():padLeft0(t.toString(16),8)},e[o(i)][o(1668)]=function(e,t,i,a){var n=o;return l?padLeft0(i[n(s)](16),8).toUpperCase():padLeft0(i[n(r)](16),8)},e.customTags.arc_z=function(e,t,i,a){return l?padLeft0(a.toString(),2).toUpperCase():padLeft0(a.toString(),2)},e[o(n)][o(2982)]=function(e,t,i,a){return l?padLeft0((a+1).toString(),2).toUpperCase():padLeft0((a+1).toString(),2)},e=converOptions(e),new XyzImageryProvider$1(e)}ArcGisCacheLayer.createImageryProvider=createImageryProvider$j;var layerType$j="arcgis_cache",ArcGisTileLayer=(register$2(layerType$j,ArcGisCacheLayer),registerImageryProvider(layerType$j,createImageryProvider$j),function(){_inherits(i,BaseTileLayer);var t=_createSuper(i);function i(){var e=_0x236b;return _classCallCheck(this,i),t[e(2026)](this,arguments)}return _createClass(i,[{key:"_createImageryProvider",value:function(e){return createImageryProvider$i(e)}}]),i}());function createImageryProvider$i(e){var t=2675,i=_0x1658de;return isString((e=converOptions(e)).url)?e[i(t)]=e.url+"/tile/{z}/{y}/{x}":e[i(2675)]instanceof Cesium__namespace.Resource&&(e.url.url=e[i(2675)][i(t)]+"/tile/{z}/{y}/{x}"),new XyzImageryProvider$1(e)}ArcGisTileLayer.createImageryProvider=createImageryProvider$i;var layerType$i="arcgis_tile",ArcGisImageryProvider=(register$2(layerType$i,ArcGisTileLayer),registerImageryProvider(layerType$i,createImageryProvider$i),function(){var e=3222,t=2815,i=470,o=1124,u=1604,_=2831,p=3277,m=2196,d=2557,f=2557,y=3768,r=1132,l=1645,c=2557,h=2992,v=2752,g=328,a=2557,n=2324,s=1636,C=3379,x=2295,b=880,k=3379,P=1771,w=1299,S=2324,T=2781,M=2424,E=3358,A=1365,L=3113,D=3222,I=3379,H=3787,F=2667,N=3768,G=1132,z=2392,B=3027,j=2228,V=2295,$=3819,U=3787,W=3980,O=_0x1658de;function R(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=(_classCallCheck(this,R),this.options=t,Cesium__namespace[e(714)].createIfNeeded(t.url));i.appendForwardSlash(),Cesium__namespace.defined(t[e(z)])&&i.setQueryParameters({token:t.token}),this._resource=i,this[e(743)]=t.tileDiscardPolicy,this._tileWidth=null!=(i=t[e(1400)])?i:256,this._tileHeight=null!=(i=t[e(B)])?i:256,this._maximumLevel=t.maximumLevel,this._maxTileLevel=t[e(j)],this[e(V)]=t.crs,this.enablePickFeatures=null==(i=t[e($)])||i,this[e(3379)]=null==(i=t.usePreCachedTilesIfAvailable)||i,this._initTilingSchemeByCrs(t.crs||CRS.EPSG4326),this[e(831)]=new Cesium__namespace[e(1438)],this._ready=!1,this[e(U)]=Cesium__namespace[e(W)]?Cesium__namespace[e(3980)]():Cesium__namespace.when.defer(),this[e(3379)]?this._requestMetadata():(this._ready=!0,this._readyPromise.resolve(!0))}return _createClass(R,[{key:"url",get:function(){return this[_0x236b(1132)]._url}},{key:"token",get:function(){return this._resource.queryParameters.token}},{key:O(3094),get:function(){var e=O;return this[e(G)][e(3094)]}},{key:"tileWidth",get:function(){return this._tileWidth}},{key:"tileHeight",get:function(){return this[O(N)]}},{key:"maximumLevel",get:function(){return this[O(2200)]}},{key:"minimumLevel",get:function(){return 0}},{key:"tilingScheme",get:function(){return this._tilingScheme}},{key:O(e),get:function(){return this._rectangle}},{key:"tileDiscardPolicy",get:function(){return this[O(743)]}},{key:"errorEvent",get:function(){return this[O(831)]}},{key:"ready",get:function(){return this[O(F)]}},{key:"readyPromise",get:function(){return this[O(H)].promise}},{key:"credit",get:function(){return this._credit}},{key:O(t),get:function(){return this[O(I)]}},{key:"hasAlphaChannel",get:function(){return!0}},{key:O(2196),get:function(){return this.options.layers}},{key:"layerDefs",get:function(){return this.options.layerDefs}},{key:O(i),value:function(e){var t,i=O;return e===CRS.EPSG3857?(this[i(E)]=this[i(1592)][i(A)]||new Cesium__namespace.WebMercatorTilingScheme({ellipsoid:this.options[i(3113)]}),this._rectangle=null!=(t=this[i(1592)].rectangle)?t:this[i(3358)].rectangle,!0):(e===CRS.EPSG4326||e===CRS[i(1759)])&&(this[i(E)]=this.options.tilingScheme||new Cesium__namespace.GeographicTilingScheme({ellipsoid:this.options[i(L)]}),this._rectangle=null!=(t=this.options[i(D)])?t:this[i(3358)].rectangle,!0)}},{key:"_requestMetadata",value:function(){var e=O,t=this;this[e(1132)][e(T)]({queryParameters:{f:"json"}})[e(M)]().then(function(e){t._metadataSuccess(e)}).catch(function(e){t._metadataFailure(e)})}},{key:"_metadataSuccess",value:function(e){var t,i=O,a=(this[i(s)]=e,Cesium__namespace[i(3277)](e.tileInfo)?(this._useTiles=!0,a=e.tileInfo,this._tileWidth=a[i(b)],this[i(3768)]=a.cols,this._maximumLevel||(this._maximumLevel=a.lods.length-1),this.options.crs||(this._crs=getCRSByWkid(null==(a=a.spatialReference)?void 0:a.wkid),this._useTiles=this[i(470)](this._crs)),this[i(k)]&&!Cesium__namespace.defined(this._tileDiscardPolicy)&&(this[i(743)]=new Cesium__namespace[i(1490)]({missingImageUrl:this._buildImageResource(0,0,this._maximumLevel)[i(2675)],pixelsToCheck:[new Cesium__namespace[i(2638)](0,0),new Cesium__namespace.Cartesian2(200,20),new Cesium__namespace.Cartesian2(20,200),new Cesium__namespace[i(2638)](80,110),new Cesium__namespace.Cartesian2(160,130)],disableCheckIfAllPixelsAreTransparent:!0}))):(this[i(C)]=!1,this.options.crs||(this[i(x)]=getCRSByWkid(null==(a=e.spatialReference)?void 0:a.wkid),this._initTilingSchemeByCrs(this._crs))),e.fullExtent||e.extent);!this.options.rectangle&&a&&(e=this._crs,e=null!=(t=a)&&null!=(t=t.spatialReference)&&t[i(1771)]?getCRSByWkid(a.spatialReference[i(P)]):e)&&(e!==CRS[i(1199)]&&e!==CRS.EPSG4490&&(t=proj4Trans([a[i(1447)],a.ymin],e),e=proj4Trans([a.xmax,a.ymax],e),a={xmin:t[0],ymin:t[1],xmax:e[0],ymax:e[1]}),0<(this._extent=a).xmin)&&a.xmax<179&&0<a.ymin&&a[i(2131)]<85&&(this._rectangle=Cesium__namespace.Rectangle.fromDegrees(a.xmin,a.ymin,a.xmax,a[i(2131)])),this._ready=!0,this._readyPromise.resolve(!0),Cesium__namespace.TileProviderError.reportSuccess?Cesium__namespace.TileProviderError[i(3534)](this[i(w)]):Cesium__namespace[i(S)].handleSuccess&&Cesium__namespace.TileProviderError.handleSuccess(this._metadataError)}},{key:"_metadataFailure",value:function(e){var t=O,i="An error occurred while accessing "[t(a)](this[t(1132)].url,".");Cesium__namespace[t(n)].reportError?this._metadataError=Cesium__namespace.TileProviderError.reportError(this._metadataError,this,this._errorEvent,i,void 0,void 0,void 0,this._requestMetadata):Cesium__namespace[t(n)].handleError&&(this._metadataError=Cesium__namespace[t(2324)].handleError(this._metadataError,this,this._errorEvent,i,void 0,void 0,void 0,this._requestMetadata)),null!=(t=this._readyPromise)&&t.reject&&this._readyPromise.reject(new Cesium__namespace.RuntimeError(i))}},{key:"getTileCredits",value:function(e,t,i){}},{key:"requestImage",value:function(e,t,i,a){return Cesium__namespace.ImageryProvider.loadImage(this,this._buildImageResource(e,t,i,a))}},{key:"_buildImageResource",value:function(e,t,i,a){var n=O,s=this._useTiles;return(s=s&&Cesium__namespace.defined(this._maxTileLevel)?i<this[n(719)]:s)?(this._crs===CRS.EPSG4490&&(i+=1),this[n(r)].getDerivedResource({url:n(l).concat(i,"/").concat(t,"/")[n(c)](e),request:a})):(s=this._tilingScheme.tileXYToNativeRectangle(e,t,i),e={bbox:""[n(c)](s.west,",").concat(s.south,",").concat(s.east,",")[n(2557)](s[n(h)]),size:""[n(2557)](this._tileWidth,",").concat(this._tileHeight),format:"png32",transparent:!0,f:"image"},this._tilingScheme.projection instanceof Cesium__namespace.GeographicProjection?(e.bboxSR=this._wkid||4326,e[n(2752)]=this[n(328)]||4326):(e.bboxSR=this._wkid||3857,e[n(v)]=this[n(g)]||3857),this.layers&&(e[n(2196)]="show:"[n(c)](this.layers)),this.layerDefs&&(e.layerDefs=this.layerDefs),this._resource.getDerivedResource({url:n(3376),request:a,queryParameters:e}))}},{key:"pickFeatures",value:function(e,t,i,a,n){var s,r,l,c=2988,h=O;if(this.enablePickFeatures)return e=this._tilingScheme.tileXYToNativeRectangle(e,t,i),l=this._tilingScheme.projection instanceof Cesium__namespace.GeographicProjection?(s=Cesium__namespace.Math.toDegrees(a),r=Cesium__namespace[h(o)][h(u)](n),"4326"):(s=(t=this[h(3358)][h(1593)][h(1381)](new Cesium__namespace.Cartographic(a,n,0))).x,r=t.y,h(_)),i="visible",Cesium__namespace[h(p)](this.layers)&&(i+=":".concat(this[h(m)])),a={f:"json",tolerance:2,geometryType:"esriGeometryPoint",geometry:"".concat(s,",").concat(r),mapExtent:""[h(d)](e.west,",")[h(2557)](e.south,",").concat(e.east,",").concat(e.north),imageDisplay:"".concat(this._tileWidth,",")[h(f)](this[h(y)],",96"),sr:l,layers:i},Cesium__namespace[h(p)](this.layerDefs)&&(a.layerDefs=this.layerDefs),this._resource.getDerivedResource({url:"identify",queryParameters:a})[h(1348)]().then(function(e){var t=h,i=[],a=e.results;if(Cesium__namespace.defined(a))for(var n="EPSG:"+l,s=0;s<a.length;++s){var r=a[s],o=new Cesium__namespace.ImageryLayerFeatureInfo;o.data=r,o.crs=n,o.name=r.value,o.properties=r[t(2988)],o.configureDescriptionFromProperties(r[t(c)]),i.push(o)}return i})}}]),R}());function getCRSByWkid(e){var t=_0x1658de;switch(e){case 4326:case 4283:return CRS.EPSG4326;case 4490:return CRS[t(1759)];case 102100:case 900913:case 3857:return CRS.EPSG3857;default:return isNumber(e)?"EPSG:"+e:void 0}}var ArcGisLayer=function(){var e=2022,t=563,i=3103,a=3817,n=1588,s=2022,r=_0x1658de,o=(_inherits(l,BaseTileLayer),_createSuper(l));function l(){return _classCallCheck(this,l),o.apply(this,arguments)}return _createClass(l,[{key:r(e),get:function(){var e,t=r;return(null==(e=this[t(3569)])?void 0:e[t(2295)])||this.options[t(s)]||CRS.EPSG4326}},{key:"capabilities",get:function(){var e;return null==(e=this.imageryProvider)?void 0:e.capabilities}},{key:r(t),value:function(){var e=r;_get(_getPrototypeOf(l.prototype),"_addedHook",this)[e(1567)](this)}},{key:"_createImageryProvider",value:function(e){return createImageryProvider$h(e)}},{key:"hasPopup",value:function(){return!!this[r(n)]}},{key:"bindPopup",value:function(e,t){return this._popupConfig={content:e,options:t,layer:this},this._bindControl(),this}},{key:r(i),value:function(){var e=r;return this.closePopup(),this[e(1588)]=null,this}},{key:"closePopup",value:function(){var e=r;return this._map&&this.hasPopup()&&this[e(a)].popup.close(null,this),this}}]),l}();function createImageryProvider$h(e){var t=2675,i=1525,a=_0x1658de;if(Cesium__namespace.defined(e.layer)&&!Cesium__namespace.defined(e[a(t)]))switch(e.layer){case a(1269):e[a(2675)]="https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer";break;case a(i):e.url="https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"}return new((e=converOptions(e)).czm?Cesium__namespace.ArcGisMapServerImageryProvider:ArcGisImageryProvider)(e)}ArcGisLayer[_0x1658de(1039)]=createImageryProvider$h;var layerType$h="arcgis",BaiduLayer=(register$2(layerType$h,ArcGisLayer),registerImageryProvider(layerType$h,createImageryProvider$h),function(){_inherits(i,BaseTileLayer);var t=_createSuper(i);function i(){var e=_0x236b;return _classCallCheck(this,i),t[e(2026)](this,arguments)}return _createClass(i,[{key:"_createImageryProvider",value:function(e){return createImageryProvider$g(e)}}]),i}());function createImageryProvider$g(e){return e=converOptions(e),new BaiduImageryProvider(e)}BaiduLayer[_0x1658de(1039)]=createImageryProvider$g;var layerType$g=_0x1658de(2688),BingLayer=(register$2(layerType$g,BaiduLayer),registerImageryProvider(layerType$g,createImageryProvider$g),function(){var e=_0x1658de,t=(_inherits(i,BaseTileLayer),_createSuper(i));function i(){var e=_0x236b;return _classCallCheck(this,i),t[e(2026)](this,arguments)}return _createClass(i,[{key:e(1258),value:function(e){return createImageryProvider$f(e)}}]),i}());function createImageryProvider$f(e){var t,i=3743,a=3743,n=1662,s=_0x1658de;return e[s(2675)]=null!=(t=e.url)?t:"https://dev.virtualearth.net",e[s(i)]=null!=(t=e[s(a)])?t:s(n),e.key=null!=(i=e.key)?i:bing,e.layer=null!=(a=e.layer)?a:Cesium__namespace[s(2680)].Aerial,e=converOptions(e),new Cesium__namespace.BingMapsImageryProvider(_objectSpread2({mapStyle:e.layer},e))}BingLayer.createImageryProvider=createImageryProvider$f;var layerType$f="bing",GaodeLayer=(register$2(layerType$f,BingLayer),registerImageryProvider(layerType$f,createImageryProvider$f),function(){var t=2026,i=(_inherits(a,BaseTileLayer),_createSuper(a));function a(){var e=_0x236b;return _classCallCheck(this,a),i[e(t)](this,arguments)}return _createClass(a,[{key:"_createImageryProvider",value:function(e){return createImageryProvider$e(e)}}]),a}());function createImageryProvider$e(e){return e.chinaCRS=e.chinaCRS||ChinaCRS.GCJ02,e=converOptions(e),new GaodeImageryProvider(e)}GaodeLayer.createImageryProvider=createImageryProvider$e;var layerType$e=_0x1658de(2516),GeeLayer=(register$2(layerType$e,GaodeLayer),registerImageryProvider(layerType$e,createImageryProvider$e),function(){var e=_0x1658de,t=(_inherits(i,BaseTileLayer),_createSuper(i));function i(){var e=_0x236b;return _classCallCheck(this,i),t[e(2026)](this,arguments)}return _createClass(i,[{key:e(1258),value:function(e){return createImageryProvider$d(e)}}]),i}());function createImageryProvider$d(e){return e=converOptions(e),new Cesium__namespace.GoogleEarthEnterpriseImageryProvider(_objectSpread2(_objectSpread2({},e),{},{metadata:new Cesium__namespace.GoogleEarthEnterpriseMetadata(e.url)}))}GeeLayer.createImageryProvider=createImageryProvider$d;var layerType$d="gee",GoogleLayer=(register$2(layerType$d,GeeLayer),registerImageryProvider(layerType$d,createImageryProvider$d),function(){_inherits(i,BaseTileLayer);var t=_createSuper(i);function i(){var e=_0x236b;return _classCallCheck(this,i),t[e(2026)](this,arguments)}return _createClass(i,[{key:"_createImageryProvider",value:function(e){return createImageryProvider$c(e)}}]),i}());function createImageryProvider$c(e){return e.chinaCRS=e.chinaCRS||ChinaCRS.GCJ02,e=converOptions(e),new GoogleImageryProvider(e)}GoogleLayer[_0x1658de(1039)]=createImageryProvider$c;var layerType$c="google",ImageLayer=(register$2(layerType$c,GoogleLayer),registerImageryProvider(layerType$c,createImageryProvider$c),function(){var e=_0x1658de,t=(_inherits(i,BaseTileLayer),_createSuper(i));function i(){var e=_0x236b;return _classCallCheck(this,i),t[e(2026)](this,arguments)}return _createClass(i,[{key:e(1258),value:function(e){return createImageryProvider$b(e)}}]),i}());function createImageryProvider$b(e){return e.url?(e=converOptions(e),new Cesium__namespace.SingleTileImageryProvider(e)):null}ImageLayer.createImageryProvider=createImageryProvider$b;var layerType$b="image",IonLayer=(register$2(layerType$b,ImageLayer),registerImageryProvider(layerType$b,createImageryProvider$b),function(){var e=_0x1658de,t=(_inherits(i,BaseTileLayer),_createSuper(i));function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:e(1258),value:function(e){return createImageryProvider$a(e)}}]),i}());function createImageryProvider$a(e){var t=_0x1658de;return e[t(1076)]=null!=(t=e[t(1076)])?t:ion,e=converOptions(e),new Cesium__namespace.IonImageryProvider(e)}IonLayer.createImageryProvider=createImageryProvider$a;var layerType$a=_0x1658de(670),MapboxLayer=(register$2(layerType$a,IonLayer),registerImageryProvider(layerType$a,createImageryProvider$a),function(){var t=2026,i=(_inherits(a,BaseTileLayer),_createSuper(a));function a(){var e=_0x236b;return _classCallCheck(this,a),i[e(t)](this,arguments)}return _createClass(a,[{key:"_createImageryProvider",value:function(e){return createImageryProvider$9(e)}}]),a}());function createImageryProvider$9(t){var e=2675,i=1974,a=2392,n=_0x1658de,s=(t[n(2675)]=null!=(e=t[n(e)])?e:"https://api.mapbox.com/styles/v1",t.username=null!=(e=t[n(i)])?e:"marsgis",t.accessToken=null!=(e=null!=(i=t[n(a)])?i:t.accessToken)?e:mapbox,t.scaleFactor=null==(a=t[n(2105)])||a,t=converOptions(t),new Cesium__namespace.MapboxStyleImageryProvider(t));return Promise.resolve(t).then(function(e){t.tilingScheme&&(s._imageryProvider._tilingScheme=t.tilingScheme)}),s}MapboxLayer.createImageryProvider=createImageryProvider$9;var layerType$9=_0x1658de(1779),OsmLayer=(register$2(layerType$9,MapboxLayer),registerImageryProvider(layerType$9,createImageryProvider$9),function(){_inherits(t,BaseTileLayer);var e=_createSuper(t);function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"_createImageryProvider",value:function(e){return createImageryProvider$8(e)}}]),t}());function createImageryProvider$8(e){return e=converOptions(e),new OsmImageryProvider(e)}OsmLayer[_0x1658de(1039)]=createImageryProvider$8;var layerType$8="osm",XyzImageryProvider=(register$2(layerType$8,OsmLayer),registerImageryProvider(layerType$8,createImageryProvider$8),function(e){var i=2922,a=1666,s=1666,r=3753,o=(_inherits(l,e),_createSuper(l));function l(){var e,n=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,l),t.customTags=t[n(1666)]||{},t.customTags[n(i)]=function(e,t,i,a){return location.host},t[n(a)].hostname=function(e,t,i,a){return location[n(1512)]},t[n(s)][n(r)]=function(e,t,i,a){return a+1},(e=o.call(this,t)).options=t,e}return _createClass(l)}(Cesium__namespace.UrlTemplateImageryProvider)),TdtLayer=function(){_inherits(t,BaseTileLayer);var e=_createSuper(t);function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"_createImageryProvider",value:function(e){return createImageryProvider$7(e)}}]),t}();function createImageryProvider$7(e){var t=_0x1658de;return new((e=converOptions(e))[t(2675)]?(e.subdomains=e.subdomains||"01234567",e.url+=t(2701)+(e[t(3982)]||tianditu),XyzImageryProvider):TdtImageryProvider)(e)}TdtLayer.createImageryProvider=createImageryProvider$7;var layerType$7="tdt",TencentLayer=(register$2(layerType$7,TdtLayer),registerImageryProvider(layerType$7,createImageryProvider$7),function(){var t=2026,i=(_inherits(a,BaseTileLayer),_createSuper(a));function a(){var e=_0x236b;return _classCallCheck(this,a),i[e(t)](this,arguments)}return _createClass(a,[{key:"_createImageryProvider",value:function(e){return createImageryProvider$6(e)}}]),a}());function createImageryProvider$6(e){return e.chinaCRS=e.chinaCRS||ChinaCRS.GCJ02,e=converOptions(e),new TencentImageryProvider(e)}TencentLayer.createImageryProvider=createImageryProvider$6;var layerType$6="tencent",TmsLayer=(register$2(layerType$6,TencentLayer),registerImageryProvider(layerType$6,createImageryProvider$6),function(){var e=_0x1658de,t=(_inherits(i,BaseTileLayer),_createSuper(i));function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:e(1258),value:function(e){return createImageryProvider$5(e)}}]),i}());function createImageryProvider$5(e){var t=_0x1658de;return(e=converOptions(e)).url||(e.url=Cesium__namespace[t(1826)]("Assets/Textures/NaturalEarthII")),new Cesium__namespace[t(502)](e)}TmsLayer[_0x1658de(1039)]=createImageryProvider$5;var layerType$5="tms",WmsLayer=(register$2(layerType$5,TmsLayer),registerImageryProvider(layerType$5,createImageryProvider$5),function(){var t=3817,i=1815,a=3387,n=924,s=1962,h=3268,u=2022,_=3985,p=1447,m=2535,r=2026,d=_0x1658de,o=(_inherits(l,BaseTileLayer),_createSuper(l));function l(){var e=_0x236b;return _classCallCheck(this,l),o[e(r)](this,arguments)}return _createClass(l,[{key:"_addedHook",value:function(){var i=2514,a=2385,n=this;Cesium__namespace.defaultValue(this.options.getCapabilities,!0)?this.getMetadata().then(function(e){var t=_0x236b;n[t(i)]&&_get(_getPrototypeOf(l[t(a)]),"_addedHook",n).call(n)}):_get(_getPrototypeOf(l.prototype),"_addedHook",this).call(this)}},{key:d(1258),value:function(e){return createImageryProvider$4(e)}},{key:"getMetadata",value:function(){var n=1592,s=this;return new Promise(function(i,e){var t,a=_0x236b;s[a(1636)]?i(s.capabilities):(t=s[a(n)].url,s.options[a(3688)]&&(t=template(t,s[a(n)].templateValues)),Cesium__namespace[a(714)][a(3141)](_objectSpread2(_objectSpread2({},s[a(1592)]),{},{url:t,queryParameters:{service:"WMS",request:"GetCapabilities",version:"1.3.0"},proxy:s[a(408)]})).then(function(e){var t=a;if(!s.isDestroy){if(e){s.capabilities=e;try{s._initByMetaData(e)}catch(e){logInfo("WMS 解析GetCapabilities有误",e)}}i(e),s.fire(EventType[t(3656)],{capabilities:e})}}).catch(function(e){logInfo(a(3408),e),i(e)}))})}},{key:"_initByMetaData",value:function(e){var t=d,i=this.options.layers;-1!==i.indexOf(":")&&(i=i[t(4031)](":")[1]);for(var a=this._readChildNode(e,t(h)).getElementsByTagName("Layer"),n=0,s=a.length;n<s;n++){var r=a[n],o=this._readChildNodeVal(r,"Name"),l=this._readChildNodeVal(r,"Title");if(o===i||l===i){o=this._readChildNodeVal(r,"CRS"),l=(!this.options.crs&&o&&(this.options[t(u)]=o),this._readChildNode(r,t(479)));if(!this[t(1592)].rectangle&&l){var o=Math.max(Number(l.getAttribute("minx")),-180),r=Math[t(3924)](Number(l.getAttribute("maxx")),180),c=Math.max(Number(l[t(_)](t(1353))),-85),l=Math.min(Number(l[t(_)]("maxy")),85);if(isNaN(o)||isNaN(r)||isNaN(c)||isNaN(l))break;o={xmin:o,ymin:c,xmax:r,ymax:l};console.log("wms extent:",o),this.options.extent=o,this._rectangle=Cesium__namespace.Rectangle.fromDegrees(o[t(p)],o.ymin,o[t(m)],o[t(2131)])}break}}}},{key:"_readChildNode",value:function(e,t){e=e.getElementsByTagName(t);return 0<e.length?e[0]:null}},{key:"_readChildNodeVal",value:function(e,t){var i=d,e=this[i(n)](e,t);return null!=e&&e[i(s)]?e.innerHTML:null!=e&&e.getInnerHTML?e[i(1789)]():null}},{key:"hasPopup",value:function(){return!!this._popupConfig}},{key:d(476),value:function(e,t){var i=d;return this._popupConfig={content:e,options:t,layer:this},this[i(a)](),this}},{key:"unbindPopup",value:function(){var e=d;return this.closePopup(),this[e(1588)]=null,this}},{key:"closePopup",value:function(){var e=d;return this._map&&this.hasPopup()&&this[e(t)].popup[e(i)](null,this),this}},{key:"pickFeatures",value:function(e,t,i,a,n){return this.imageryProvider.pickFeatures(e,t,i,a,n)}}]),l}());function createImageryProvider$4(e){return e=converOptions(e),new Cesium__namespace.WebMapServiceImageryProvider(e)}WmsLayer[_0x1658de(1039)]=createImageryProvider$4;var layerType$4="wms",WmtsLayer=(register$2(layerType$4,WmsLayer),registerImageryProvider(layerType$4,createImageryProvider$4),function(){var a=1962,i=1099,C=2822,x=3385,b=924,k=3727,P=1592,w=1152,S=1592,T=2055,r=1636,o=4048,l=3141,c=3819,h=784,u=1124,_=1742,p=2112,m=2557,d=1128,f=2181,y=1676,v=3428,n=563,M=_0x1658de,e=(_inherits(s,BaseTileLayer),_createSuper(s));function s(){return _classCallCheck(this,s),e.apply(this,arguments)}return _createClass(s,[{key:"_addedHook",value:function(){var e,t=_0x236b,i=this;null==(e=this.options.getCapabilities)||e?this.getMetadata().then(function(e){var t=_0x236b;i.isAdded&&_get(_getPrototypeOf(s.prototype),"_addedHook",i)[t(1567)](i)}):_get(_getPrototypeOf(s.prototype),t(n),this).call(this)}},{key:"_createImageryProvider",value:function(e){var s=this,t=createImageryProvider$3(e);return e.pickFeatures?t.pickFeatures=e.pickFeatures:e.pickFeaturesUrl&&(t.pickFeatures=function(e,t,i,a,n){return s[_0x236b(594)](e,t,i,a,n)}),t}},{key:"pickFeatures",value:function(e,t,i,a,n){var s,r,o,l=_0x236b;if(this.options[l(c)])return s=this.imageryProvider,r=new Cesium__namespace[l(h)],s.tilingScheme.projection instanceof Cesium__namespace.GeographicProjection?(r.x=Cesium__namespace[l(u)].toDegrees(a),r.y=Cesium__namespace.Math.toDegrees(n)):((o=new Cesium__namespace.Cartographic).longitude=a,o[l(2360)]=n,s[l(1365)].projection.project(o,r)),a=new Cesium__namespace.Cartesian2,n=s.tilingScheme.tileXYToNativeRectangle(e,t,i,new Cesium__namespace.Rectangle),a.x=s.tileWidth*(r.x-n.west)/n.width|0,a.y=s.tileHeight*(n[l(2992)]-r.y)/n.height|0,t=_objectSpread2(_objectSpread2({},this.options.getFeatureInfoParameters||{}),{},{service:"WMS",version:l(_),request:"GetFeatureInfo",layers:this.options.layer,query_layers:this.options.layer,info_format:"application/json",srs:null!=(o=this.options.crs)?o:(null==(e=this.options.tilingScheme)?void 0:e.projection)instanceof Cesium__namespace.WebMercatorProjection?l(p):"EPSG:4326",bbox:""[l(2557)](n.west,",")[l(m)](n.south,",").concat(n.east,",")[l(m)](n.north),width:s.tileWidth,height:s.tileHeight,x:a.x,y:a.y}),fetchJson(_objectSpread2(_objectSpread2({},this.options),{},{url:this[l(1592)][l(d)],queryParameters:t,proxy:this[l(408)]})).then(function(e){for(var t=l,i=[],a=e.features,n=0;n<a.length;++n){var s,r=a[n],o=new Cesium__namespace.ImageryLayerFeatureInfo;o.data=r,o.properties=r[t(3069)],o[t(f)](r.properties),o[t(y)](r.properties),Cesium__namespace.defined(r.geometry)&&"Point"===r.geometry.type&&(s=r.geometry[t(3497)][0],r=r.geometry.coordinates[1],o[t(2532)]=Cesium__namespace[t(v)][t(3119)](s,r)),i[t(1018)](o)}return i})}},{key:"getMetadata",value:function(){var n=2937,s=this;return new Promise(function(i,e){var t,a=_0x236b;s[a(1636)]?i(s[a(r)]):(t={service:"WMTS",request:a(1605),version:a(o)},Cesium__namespace.Resource[a(l)](_objectSpread2(_objectSpread2({},s[a(1592)]),{},{queryParameters:t,proxy:s._proxy})).then(function(e){var t=a;if(!s[t(n)]){if(e){s[t(1636)]=e;try{s._initByMetaData(e)}catch(e){logInfo("解析GetCapabilities出错",e)}}i(e),s[t(1997)](EventType.loadConfig,{capabilities:e})}}).catch(function(e){logInfo("WMTS GetCapabilities请求出错",e),i(e)}))})}},{key:M(1354),value:function(e){for(var t=M,i=this._readChildNode(e,"Contents").getElementsByTagName("Layer"),a=0,n=i[t(C)];a<n;a++){var s=i[a];if(this._readChildNodeVal(s,"ows:Identifier")===this.options[t(x)]){for(var r,o,l,c=this[t(b)](s,"ows:WGS84BoundingBox"),h=(!this.options.rectangle&&c&&(r=this[t(1152)](c,t(3310)),c=this[t(1152)](c,"ows:UpperCorner"),r)&&c&&(r=r.split(" "),c=c.split(" "),l=Math.max(Number(r[0]),-180),o=Math.min(Number(c[0]),180),l={xmin:l,ymin:Math.max(Number(r[1]),-85),xmax:o,ymax:Math.min(Number(c[1]),85)},this.options.extent=l,this._rectangle=Cesium__namespace.Rectangle.fromDegrees(l.xmin,l[t(k)],l[t(2535)],l.ymax)),Cesium__namespace.defined(this.options.style)||(this.options.style=this._readChildNodeVal(this._readChildNode(s,t(1654)),t(3897))),s.getElementsByTagName(t(2679))),u=0,_=h.length;u<_;u++){var p=h[u],m=this._readChildNodeVal(p,"TileMatrixSet");if(Cesium__namespace.defined(this[t(P)].tileMatrixSetID)||(this.options.tileMatrixSetID=m),m===this[t(P)].tileMatrixSetID){if(!this.options.tileMatrixLabels){m=this._readChildNode(p,"TileMatrixSetLimits");if(m){for(var d=m.getElementsByTagName("TileMatrixLimits"),f=[],y=0,v=d.length;y<v;y++){var g=this[t(w)](d[y],"TileMatrix");f.push(g)}this[t(S)][t(T)]=f}}break}}break}}}},{key:"_readChildNode",value:function(e,t){return e&&0<(e=e[M(i)](t)).length?e[0]:null}},{key:"_readChildNodeVal",value:function(e,t){var i=M;return e?null!=(e=this._readChildNode(e,t))&&e[i(a)]?e.innerHTML:null!=e&&e.getInnerHTML?e.getInnerHTML():null:null}}]),s}());function createImageryProvider$3(e){var t=_0x1658de;return(e=converOptions(e)).crs===CRS.EPSG4490&&(e[t(2055)]=_toConsumableArray(Array(20).keys()).map(function(e){return(e+1)[t(1375)]()})),new Cesium__namespace.WebMapTileServiceImageryProvider(e)}WmtsLayer.createImageryProvider=createImageryProvider$3;var layerType$3="wmts",XyzLayer=(register$2(layerType$3,WmtsLayer),registerImageryProvider(layerType$3,createImageryProvider$3),function(){var t=2026,i=(_inherits(a,BaseTileLayer),_createSuper(a));function a(){var e=_0x236b;return _classCallCheck(this,a),i[e(t)](this,arguments)}return _createClass(a,[{key:"_createImageryProvider",value:function(e){return createImageryProvider$2(e)}}]),a}());function createImageryProvider$2(e){return new((e=converOptions(e)).chinaCRS===ChinaCRS.BAIDU?BaiduImageryProvider:XyzImageryProvider$1)(e)}XyzLayer[_0x1658de(1039)]=createImageryProvider$2;var layerType$2="xyz",GridLayer=(register$2(layerType$2,XyzLayer),registerImageryProvider(layerType$2,createImageryProvider$2),function(){_inherits(t,BaseTileLayer);var e=_createSuper(t);function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"_createImageryProvider",value:function(e){return createImageryProvider$1(e)}}]),t}());function createImageryProvider$1(e){var t,i=2745,a=423,n=3289,s=1114,r=_0x1658de;return e[r(643)]=null!=(t=e.cells)?t:2,e[r(2745)]=Cesium__namespace.Color.fromCssColorString(null!=(t=e[r(i)])?t:"rgba(255,255,255,1)"),e[r(a)]=null!=(i=e.glowWidth)?i:3,e[r(n)]?e.glowColor=Cesium__namespace.Color.fromCssColorString(e.glowColor):e.glowColor=e.color.withAlpha(.3),e.backgroundColor=Cesium__namespace.Color[r(s)](null!=(t=e[r(1530)])?t:"rgba(0,0,0,0)"),e=converOptions(e),new Cesium__namespace.GridImageryProvider(e)}GridLayer.createImageryProvider=createImageryProvider$1;var layerType$1=_0x1658de(3490),TileInfoLayer=(register$2(layerType$1,GridLayer),registerImageryProvider(layerType$1,createImageryProvider$1),function(){_inherits(i,BaseTileLayer);var t=_createSuper(i);function i(){var e=_0x236b;return _classCallCheck(this,i),t[e(2026)](this,arguments)}return _createClass(i,[{key:"_createImageryProvider",value:function(e){return createImageryProvider(e)}}]),i}());function createImageryProvider(e){var t=_0x1658de;return e[t(2745)]=Cesium__namespace.Color.fromCssColorString(e[t(2745)]||"rgba(255,0,0,1)"),e=converOptions(e),new Cesium__namespace.TileCoordinatesImageryProvider(e)}TileInfoLayer[_0x1658de(1039)]=createImageryProvider;var layerType="tileinfo",EmptyTileLayer=(register$2(layerType,TileInfoLayer),registerImageryProvider(layerType,createImageryProvider),function(){var i=3817,a=2805,n=2805,s=1592,r=1073,o=2466,l=2466,c=2822,h=1569,u=4024,_=_0x1658de,p=(_inherits(m,BaseTileLayer),_createSuper(m));function m(){var e,t,i=_0x236b,a=0<arguments[i(c)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,m),(t=p.call(this,a))._minimumLevel=null!=(e=a[i(h)])?e:0,t._maximumLevel=a[i(u)],t}return _createClass(m,[{key:"_createImageryProvider",value:function(e){var t=_0x236b;return(e=converOptions(e)).minimumTerrainLevel=this._minimumLevel,e[t(l)]=this._maximumLevel,new EmptyImageryProvider(e)}},{key:"_setOptionsHook",value:function(e,t){var i,a=_0x236b;this._minimumLevel=null!=(i=this.options.minimumLevel)?i:0,this._maximumLevel=this.options.maximumLevel,this[a(s)][a(r)]=this._minimumLevel,this.options[a(o)]=this._maximumLevel,_get(_getPrototypeOf(m.prototype),"_setOptionsHook",this).call(this,e,t)}},{key:_(1435),value:function(e){var t=_,i=this._map[t(1461)];return!(e<this[t(n)]||e<i-1||Cesium__namespace.defined(this._maximumLevel)&&e>=this._maximumLevel)}},{key:"isAllOutRange",value:function(e){var t=_;return this[t(i)].level<this[t(a)]||Cesium__namespace.defined(this._maximumLevel)&&e>=this._maximumLevel}}]),m}());function config2Entity(e,t,i){for(var a=_0x1658de,n=e.length-1;0<=n;n--){var s=e[n],r=t.symbol;r&&("function"==typeof r?r(s,s[a(2323)]):setConfigSymbol(s,t,i))}}function getStyleBySymbolConfig(e,t,i){var a,n=e.styleOptions;return e.styleField&&t&&(a=t[e.styleField],null!=(a=e.styleFieldOptions[a]))&&(n=_objectSpread2(_objectSpread2({},n=clone(n)),a)),n=(n="function"==typeof e.callback&&(n=clone(n),a=e.callback(t,i,n))?_objectSpread2(_objectSpread2({},n),a):n)||{}}function setConfigSymbol(e,a,n){var t=2098,i=696,s=1980,r=3686,o=1672,l=1885,c=3089,h=1377,u=2822,_=3159,p=3277,m=883,d=2970,f=1672,y=3509,v=3273,g=811,C=_0x1658de,x=e._attr,b=(x&&x[C(1488)]&&x[C(1740)]&&(x=x.attr),e[C(329)]),k=getStyleBySymbolConfig(a.symbol,x,e);if(n=n||function(e,t,i){var a=C;return""===t.text?null:(Cesium__namespace.defined(t[a(3159)])&&(e=setPositionsHeight(e,t[a(3159)])),b.add({position:e,label:t,_attr:i}))},e.polyline&&(PolylineStyleConver.toCesiumVal(k,e.polyline,!0),k[C(1215)]&&(t=_objectSpread2({color:k.color,opacity:k[C(t)]},k.corridor),isString(k.corridor.width)&&(t[C(i)]=template(k.corridor.width,x)),e._corridorEx?CorridorStyleConver.toCesiumVal(t,e._corridorEx[C(1215)],!0):((i=CorridorStyleConver.toCesiumVal(t,{},!0)).positions=getCesiumValue(e.polyline[C(s)]),(t=b.add({corridor:i,_attr:x}))._gis3d_layerId=a.id,e._corridorEx=t)),k.label)&&k[C(r)][C(3045)]&&(e._labelEx?LabelStyleConver[C(o)](k.label,e[C(l)].label,x):(t=(i=getCesiumValue(e[C(c)].positions))[Math.floor(i.length/2)],k.label.position&&("center"===k.label.position?t=centerOfMass(i,k.label.height):isNumber(k[C(r)].position)&&(t=i[k.label.position])),(o=LabelStyleConver.toCesiumVal(k[C(3686)],{},x))[C(3273)]=null!=(l=o.heightReference)?l:Cesium__namespace.HeightReference[C(881)],(c=n(t,o,x))&&(c._gis3d_layerId=a.id),e._labelEx=c)),e.polygon){if(PolygonStyleConver.toCesiumVal(k,e[C(h)],!0),k[C(1185)]&&(1<k.outlineWidth||1<(null==(i=k.outlineStyle)?void 0:i.width))){e.polygon.outline=!1;var P=_objectSpread2(_objectSpread2({},k),{},{outline:!1,color:k[C(2663)],width:k.outlineWidth,opacity:k.outlineOpacity},k.outlineStyle||{});if(e._outlineEx)for(var w=0,S=e._outlineEx.length;w<S;w++)PolylineStyleConver.toCesiumVal(P,e._outlineEx[w].polyline,!0);else{var T=getAllPositions(e);e[C(3075)]=[];for(var M=0,E=T[C(u)];M<E;M++){var A=PolylineStyleConver.toCesiumVal(P,{},!0),A=(A[C(s)]=T[M],b.add({polyline:A,_attr:x}));A._gis3d_layerId=a.id,e[C(3075)].push(A)}}}k[C(r)]&&k.label.text&&(e._labelEx?LabelStyleConver.toCesiumVal(k.label,e._labelEx.label,x):(l=centerOfMass(getPositions(e),k[C(r)][C(_)]),(t=LabelStyleConver.toCesiumVal(k.label,{},x))[C(3273)]=null!=(o=t.heightReference)?o:Cesium__namespace.HeightReference.CLAMP_TO_GROUND,(c=n(l,t,x))&&(c._gis3d_layerId=a.id),e._labelEx=c))}e.label?(k.label=k[C(r)]||k||{},Cesium__namespace[C(p)](k.label.clampToGround)||Cesium__namespace.defined(k.label.heightReference)||(k.label.heightReference=null!=(h=k.label.heightReference)?h:Cesium__namespace.HeightReference[C(881)]),LabelStyleConver.toCesiumVal(k.label,e.label,x)):k.label&&typeof k.label===C(4099)&&k.label(e,x,function(e,t){var i=C,t=LabelStyleConver.toCesiumVal(t,{},x),e=(t.heightReference=(t.heightReference,Cesium__namespace.HeightReference.CLAMP_TO_GROUND),n(e,t,x));e&&(e[i(811)]=a.id)}),e.billboard&&(Cesium__namespace[C(3277)](k.clampToGround)||Cesium__namespace.defined(k[C(3273)])||(k.heightReference=null!=(i=k[C(3273)])?i:Cesium__namespace[C(1507)].CLAMP_TO_GROUND),k.image=template(k.image,x),BillboardStyleConver.toCesiumVal(k,e[C(m)],!0),k[C(d)]&&(e._modelEx?ModelStyleConver[C(f)](k.model,e[C(y)].model,!0):((u=ModelStyleConver[C(1672)](k.model,!0))[C(3273)]=(u.heightReference,Cesium__namespace[C(1507)].CLAMP_TO_GROUND),(_=b.add({position:e.position,model:u,_attr:x}))._gis3d_layerId=a.id,e._modelEx=_)),k.point&&(e._pointEx?PointStyleConver.toCesiumVal(k.point,e._pointEx.point,!0):((o=PointStyleConver[C(1672)](k.point,{},!0))[C(3273)]=null!=(l=o[C(3273)])?l:Cesium__namespace[C(1507)].CLAMP_TO_GROUND,(t=b.add({position:e[C(2532)],point:o,_attr:x}))._gis3d_layerId=a.id,e._pointEx=t)),k.label)&&k.label.text&&!e.label&&(e[C(1885)]?LabelStyleConver.toCesiumVal(k[C(r)],e._labelEx.label,x):(c=e.position,(p=LabelStyleConver.toCesiumVal(k.label,{},x)).heightReference=null!=(h=p[C(v)])?h:Cesium__namespace.HeightReference.CLAMP_TO_GROUND,(i=n(c,p,x))&&(i[C(g)]=a.id),e[C(1885)]=i)),e.styleOpt=k}new Cesium__namespace.Color(0,0,0,.01);var CzmGeoJsonLayer=function(){var e=3385,t=2738,i=2586,a=1594,n=563,s=1071,r=3864,o=806,l=621,c=806,h=3535,u=1377,_=2745,p=3089,m=3089,d=883,f=3535,y=3241,v=2970,g=556,C=3686,x=1610,b=3235,k=2600,P=3118,w=2067,S=2532,T=811,M=1227,E=2772,A=1592,L=1301,D=927,I=1592,H=1404,F=1592,N=2589,G=3718,z=1540,B=1238,j=3817,V=1592,$=1567,U=1567,W=1744,J=1567,q=3905,Y=1227,Z=3844,X=1592,Q=3277,K=2745,ee=1614,te=4034,ie=3754,ae=3277,ne=1301,se=3433,re=1301,oe=2600,le=2144,ce=3905,he=2246,O=_0x1658de,ue=(_inherits(R,BaseGraphicLayer),_createSuper(R));function R(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(e=ue.call(this,t))._setOptionsHook(t,t),e}return _createClass(R,[{key:O(e),get:function(){return this._dataSource}},{key:O(t),get:function(){var e=O;return this._dataSource?this[e(he)].entities:null}},{key:"labelCollection",get:function(){var e=O;return this[e(3905)]||(this._labelCollection=new Cesium__namespace[e(oe)]({scene:this._map.scene}),this._state!==State.ADDED)||this._map.scene[e(le)][e(3605)](this._labelCollection),this[e(ce)]}},{key:"hasZIndex",get:function(){return!0}},{key:"zIndex",get:function(){var e=O;return this.options[e(re)]},set:function(e){var t=O;if(this.options[t(1301)]=e,null!=this._dataSource&&null!=e&&this._map[t(te)].contains(this._dataSource)){this[t(2246)].zIndex=e,this._map.dataSources[t(3714)](this[t(2246)]);for(var i=this[t(3817)].dataSources,a=i.length-1;0<=a;a--){var n=i[t(ie)](a);n!==this._dataSource&&Cesium__namespace[t(ae)](n.zIndex)&&e<n[t(ne)]&&this._map.dataSources[t(se)](this._dataSource)}}}},{key:O(1614),get:function(){var e=O;return!!this[e(1592)][e(1614)]||!!(this.options.symbol&&this.options.symbol[e(3844)]&&this.options[e(1227)].styleOptions[e(ee)])}},{key:O(i),value:function(e,t){var i=O;_get(_getPrototypeOf(R.prototype),"_setOptionsHook",this).call(this,e,t),null!=(e=this[i(1592)][i(Y)])&&e[i(Z)]&&(t=this.options.symbol[i(3844)],Cesium__namespace.defined(t.clampToGround)&&(this[i(X)].clampToGround=t[i(1614)]),Cesium__namespace[i(Q)](t.color)&&(e=Cesium__namespace.Color.fromCssColorString(null!=(e=t[i(K)])?e:"#FFFF00").withAlpha(Number(null!=(e=t.opacity)?e:.5)),this.options.fill=e),Cesium__namespace.defined(t.outlineColor)&&(e=Cesium__namespace.Color.fromCssColorString(null!=(e=null!=(e=t.outlineColor)?e:t.color)?e:"#FFFFFF").withAlpha(null!=(e=t.outlineOpacity)?e:(t.opacity,1)),this.options.stroke=e),Cesium__namespace[i(3277)](t.outlineWidth))&&(this.options.strokeWidth=t.outlineWidth)}},{key:O(a),value:function(e){var t=O;_get(_getPrototypeOf(R.prototype),t(1594),this).call(this,e),this[t(q)]&&(this._labelCollection.show=e)}},{key:"_mountedHook",value:function(){var e=O;_get(_getPrototypeOf(R.prototype),e(W),this)[e(J)](this),this.load()}},{key:O(n),value:function(){var e=O;_get(_getPrototypeOf(R.prototype),"_addedHook",this)[e(U)](this),this._dataSource&&this._map.dataSources[e(3605)](this._dataSource),this._labelCollection&&this._map[e(3118)].primitives.add(this._labelCollection)}},{key:O(2071),value:function(){var e=O;_get(_getPrototypeOf(R.prototype),"_removedHook",this)[e($)](this),this._labelCollection&&(this._map[e(3118)].primitives.remove(this[e(3905)]),this._labelCollection=null),this._dataSource&&this._map.dataSources.remove(this._dataSource)}},{key:"flyTo",value:function(e){var t=O;return this._map?(this[t(j)].cancelFlyTo(),this[t(1592)].center?this._map.setCameraView(this[t(1592)].center,e):this[t(V)].extent?this[t(3817)].flyToExtent(this.options.extent,e):this._dataSource?this._map.viewer[t(406)](this._dataSource,e):Promise.resolve(!1)):Promise.resolve(!1)}},{key:"load",value:function(e){var t,a=3787,n=O,s=this;return e&&(null!=(t=e.clear)&&!t||(delete this[n(I)].url,delete this.options[n(1238)]),this[n(H)](),this[n(F)]=_objectSpread2(_objectSpread2({},this.options),e)),this.options.url?fetchJson(_objectSpread2(_objectSpread2({},this.options),{},{proxy:this._proxy}))[n(N)](function(e){s._map&&s._state===State.ADDED&&s._load_data(e)})[n(G)](function(e){var t,i=n;logError$1("fetchJson出错了",e),null!=(t=s._readyPromise)&&t.reject&&s[i(a)].reject(e)}):this[n(1592)].data?this[n(z)](this.options[n(B)]):e&&logWarn("CzmGeoJsonLayer:没有传入 url 或 data 参数,请确认是否有误。"),this}},{key:"_load_data",value:function(e){var t=O,i=this;this.options.format&&(e=this.options[t(2498)](e)),Cesium__namespace.GeoJsonDataSource.load(e,this.options)[t(2589)](function(e){i.showResult(e)})}},{key:"showResult",value:function(e){var t,i,a=O;this[a(2246)]&&(this._map.dataSources.remove(this._dataSource),delete this._dataSource),e&&this._state!==State.REMOVED&&(e.show=this.show,this._map.dataSources[a(3605)](e),this._readyPromise.resolve(this),this[a(2246)]=e,this.options.zIndex&&(this.zIndex=this.options[a(L)]),t=e.entities[a(D)],i=this[a(2809)](t),1!==this._opacity&&this[a(3860)](this._opacity),this.options.flyTo&&this.flyToByAnimationEnd(),this.fire(EventType.load,{dataSource:e,entities:t,list:i}))}},{key:"bindEntities",value:function(e){for(var t=O,a=this,i=[],n=0,s=e.length;n<s;n++){var r=e[n],o=(r._gis3d_layerId=this.id,this[t(E)](r));r._attr=o||{},this.fire(EventType.addGraphic,{czmObject:r,attr:o}),i.push(_objectSpread2(_objectSpread2({},o),{},{_entity:r}))}return this[t(A)].id=this.id,config2Entity(e,this.options,function(e,t,i){return a.lblAddFun(e,t,i)}),i}},{key:O(s),value:function(e){var t=O,a=this;if(this[t(2246)])return e&&(this.options[t(M)]=_objectSpread2(_objectSpread2({},this.options.symbol),e)),t=this._dataSource.entities.values,this.options.id=this.id,config2Entity(t,this.options,function(e,t,i){return a.lblAddFun(e,t,i)}),this}},{key:O(r),value:function(e,t,i){var a=O;if(""===t[a(3045)])return null;Cesium__namespace.defined(t.height)&&(e=setPositionsHeight(e,t.height)),this[a(b)]||(this[a(3235)]=new Cesium__namespace[a(k)]({scene:this.viewer[a(P)]}),this[a(w)].scene[a(2144)].add(this.labelCollection)),t[a(S)]=getPositionValue(e);e=this.labelCollection[a(3605)](t);return e.properties=i,e[a(T)]=this.id,e}},{key:O(3860),value:function(e){var t=O;if(this._opacity=e,this._dataSource)for(var i=this[t(2246)].entities.values,a=0,n=i.length;a<n;a++){var s,r=i[a];r.polygon&&r.polygon[t(1336)]&&r.polygon.material.color&&(this._updatEntityAlpha(r[t(u)].material[t(_)],this._opacity),r.polygon.outlineColor)&&this._updatEntityAlpha(r[t(u)].outlineColor,this[t(3241)]),r[t(p)]&&r[t(m)].material&&r.polyline.material.color&&this._updatEntityAlpha(r[t(3089)][t(1336)].color,this[t(3241)]),r[t(d)]&&(r.billboard[t(2745)]=Cesium__namespace.Color[t(3644)][t(f)](this[t(y)])),r.model&&(r[t(v)][t(2745)]=Cesium__namespace.Color[t(3644)].withAlpha(this._opacity)),r.label&&(s=this._opacity,r.styleOpt&&r[t(g)][t(C)]&&r.styleOpt[t(3686)].opacity&&(s=r.styleOpt.label.opacity),r.label.fillColor&&this[t(x)](r.label[t(3160)],s),r.label.outlineColor&&this[t(1610)](r.label.outlineColor,s),r.label.backgroundColor)&&this[t(1610)](r.label.backgroundColor,s)}}},{key:O(1610),value:function(e,t){var i,a=O;if(e)return(i=getCesiumValue(e,Cesium__namespace.Color,this[a(3817)].clock.currentTime))&&i[a(h)]?(i=i[a(h)](t),void e.setValue(i)):e}},{key:"getEntityAttr",value:function(e){return getAttrVal(e.properties)}},{key:O(1404),value:function(){var e=O;return this._labelCollection&&this._labelCollection.removeAll(),this._dataSource&&this._dataSource.entities[e(2868)](),this._closeAllControl(),this}},{key:O(o),value:function(t,s){var r=O,o=this;return this[r(l)].then(function(e){var i=2738,a=2809,n=r;return o._dataSource[n(c)](t,s).then(function(e){var t=n,e=e[t(i)].values;return{entities:e,list:o[t(a)](e)}})})}}]),R}(),KmlLayer=(register$2("czmGeojson",CzmGeoJsonLayer),function(){var n=2675,s=1592,r=1238,o=1592,l=3118,c=1829,e=(_inherits(t,CzmGeoJsonLayer),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"load",value:function(){var e,t=_0x236b,i=this,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.options=_objectSpread2(_objectSpread2({},this.options),a),this.options[t(n)]?(a=getUrlResource(this.options),e=Cesium__namespace.KmlDataSource.load(a,{camera:this._map.scene.camera,canvas:this[t(3817)][t(3118)].canvas,clampToGround:this[t(s)].clampToGround})):this.options[t(r)]&&(e=Cesium__namespace[t(674)].load(this[t(o)].data,{camera:this._map[t(3118)][t(2018)],canvas:this._map[t(l)].canvas,clampToGround:this.options.clampToGround}),logError$1(t(c))),e.then(function(e){i.showResult(e)})}},{key:"getEntityAttr",value:function(e){var t,i={name:e.name,description:e.description},a=e._kml.extendedData;for(t in a)i[t]=a[t].value;return(i=getAttrVal(i)).description&&(i.description=i.description.replace(/<div[^>]+>/g,"")),i}}]),t}()),CzmlLayer=(register$2(_0x1658de(3861),KmlLayer),function(){var e=1321,t=2772,i=3152,n=1592,s=1238,r=2589,a=1567,o=631,l=1899,c=984,h=3817,u=2246,_=2168,p=3817,m=1899,d=1567,f=_0x1658de,y=(_inherits(v,CzmGeoJsonLayer),_createSuper(v));function v(){return _classCallCheck(this,v),y.apply(this,arguments)}return _createClass(v,[{key:"_showHook",value:function(e){var t=_0x236b;_get(_getPrototypeOf(v.prototype),"_showHook",this)[t(d)](this,e),null!=(t=this.options.updateClock)&&!t||(e?this.setCzmlTime():this.setNowTime())}},{key:"setCzmlTime",value:function(){var e,t=_0x236b;null!=(e=this._dataSource)&&e.clock&&(this[t(h)].clock.clockRange=this._dataSource[t(1899)].clockRange,this[t(h)].clock.multiplier=this._dataSource.clock.multiplier,this._map.clock.startTime=this._dataSource.clock.startTime,this._map.clock.stopTime=this[t(u)].clock[t(_)],this[t(p)][t(m)][t(352)]=this[t(u)].clock.startTime)}},{key:f(e),value:function(){var e=f,t=(this._map.clock[e(o)]=Cesium__namespace.ClockRange[e(3324)],this._map.clock[e(3319)]=1,Cesium__namespace.JulianDate.fromDate(new Date));this._map[e(l)].startTime=t.clone(),this._map.clock[e(2168)]=Cesium__namespace.JulianDate.addDays(t,1,new Cesium__namespace[e(c)]),this._map.clock.currentTime=t.clone()}},{key:"_removedHook",value:function(){var e=f;_get(_getPrototypeOf(v.prototype),"_removedHook",this)[e(a)](this),null!=(e=this.options.updateClock)&&!e||this.setNowTime()}},{key:"load",value:function(){var e,t=f,i=this,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this[t(1592)]=_objectSpread2(_objectSpread2({},this.options),a),this.options.url?(a=getUrlResource(this[t(n)]),e=Cesium__namespace[t(2459)].load(a,this.options)):this.options[t(s)]?e=Cesium__namespace.CzmlDataSource.load(this.options.data,this[t(1592)]):logError$1("CzmlLayer:请必须传入 url 或 data 参数"),e[t(r)](function(e){i.showResult(e)})}},{key:f(t),value:function(e){var t=f;return e.properties?getAttrVal(e.properties):e[t(3152)]?{description:getCesiumValue(e[t(i)])}:void 0}}]),v}()),GraphicGroupLayer=(register$2("czml",CzmlLayer),function(){var e=638,t=3456,i=1902,a=1537,n=2671,s=3508,r=2409,o=3277,l=2019,d=1404,f=3385,y=2603,v=1040,g=2822,c=606,h=2822,u=3817,_=3456,p=3274,m=1973,C=3817,x=412,b=3855,k=2385,P=563,w=3875,S=1260,T=1260,M=_0x1658de,E=(_inherits(A,GroupLayer),_createSuper(A));function A(){return _classCallCheck(this,A),E.apply(this,arguments)}return _createClass(A,[{key:M(e),get:function(){return this[M(3077)]},set:function(e){var t=M;this._hasEdit=e,this[t(1260)]&&(e?this._selectedLayer.activateEdit():this[t(1260)][t(1577)]())}},{key:"isAutoEditing",get:function(){return this.options.isAutoEditing},set:function(t){var i=M;this[i(1592)].isAutoEditing=t,this.eachLayer(function(e){e[i(2800)]=t},this)}},{key:M(3274),get:function(){return this[M(T)]},set:function(e){var t=M;this[t(1260)]&&(delete this[t(1260)].isActivate,this._selectedLayer.disableEdit()),e instanceof GraphicLayer||(e=this[t(w)](e)),this[t(S)]=e,this._selectedLayer&&(this._selectedLayer[t(478)]=!0,this._hasEdit)&&this[t(1260)][t(3508)]()}},{key:"isActivate",value:function(e){return e.isActivate}},{key:"_mountedHook",value:function(){var e=M;_get(_getPrototypeOf(A.prototype),"_mountedHook",this).call(this),this.options.geojson&&this[e(1902)](this.options.geojson)}},{key:"_addedHook",value:function(){var e=M;_get(_getPrototypeOf(A[e(k)]),e(P),this)[e(1567)](this),this._processForRemoveLayer()}},{key:"_getOrCreateLayer",value:function(e){var t=M;if(!e)return this.selectedLayer;if(isObject(e)){var i=this.getLayer(e.name);if(i)return Cesium__namespace.defined(e.id)&&(i.id=e.id),Cesium__namespace[t(3277)](e.show)&&(i.show=e.show),i}else{t=this.getLayer(e);if(t)return t}return this.createLayer(e)}},{key:"createLayer",value:function(e){var t=M,i=clone(this.options,["id","pid","geojson","data"]),e=(i[t(x)]=this.id,isObject(e)?(i.name=e.name,Cesium__namespace.defined(e.id)&&(i.id=e.id),Cesium__namespace[t(3277)](e.show)&&(i.show=e.show)):i[t(640)]=e,new GraphicLayer(i));return this[t(b)]&&(e._events=_objectSpread2({},this._events)),this[t(3817)].addLayer(e),this.addLayer(e),e}},{key:"deleteLayer",value:function(e){var t=M,e=e instanceof GraphicLayer?e:this[t(3875)](e);return!!e&&(this[t(p)]===e&&(this.selectedLayer=null),removeArrayItem(this[t(m)],e),this[t(C)].removeLayer(e,!0),this._processForRemoveLayer(),!0)}},{key:"deleteEmptyLayer",value:function(){for(var e=M,t=this._arrLayer.length-1;0<=t;t--){var i=this._arrLayer[t];0===i.length&&(this.selectedLayer===i&&(this.selectedLayer=null),this._arrLayer.splice(t,1),this[e(u)].removeLayer(i,!0))}return this[e(_)](),this}},{key:M(t),value:function(){var e=M;0===this._arrLayer.length&&this.options.defaultLayer&&(this.selectedLayer=this[e(3144)](this.options.defaultLayer)),null==this.selectedLayer&&0<this._arrLayer[e(h)]&&(this.selectedLayer=this[e(1973)][0])}},{key:"moveToLayer",value:function(e,t){t instanceof GraphicLayer||(t=this.getLayer(t)),e.remove(),t.addGraphic(e)}},{key:M(3006),value:function(){var t=[];return this[M(2409)](function(e){e.isPrivate||t.push(e)},this),t}},{key:"getGraphicById",value:function(e){var t=M;if(e)for(var i=this[t(1973)][t(2822)]-1;0<=i;i--){var a=this._arrLayer[i].getGraphicById(e);if(a)return a}}},{key:M(2409),value:function(t,i){return this.eachLayer(function(e){e.eachGraphic(t,i)},this),this}},{key:M(1404),value:function(t){this[M(2271)](function(e){e.clear(t)},this)}},{key:"toGeoJSON",value:function(n){var e=640,t=M,s=this,r=(null!=n&&n[t(c)]&&this.stopDraw(),[]),o=[];return this.eachLayer(function(i){var a=t;o[a(1018)]({id:i.id,name:i[a(e)],show:i.show}),i.eachGraphic(function(e){var t=a;e.isPrivate||((e=e[t(1108)](n)).properties._layer=i.name,r.push(e))},s)},this),{type:t(1442),layer:{id:this.id,name:this.name,layers:o,selected:this.selectedLayer.id},features:r}}},{key:M(i),value:function(e){var t,i=M,a=1<arguments[i(2822)]&&void 0!==arguments[1]?arguments[1]:{};try{isString(e)&&(e=JSON.parse(e))}catch(e){return void alert(e.name+": "+e.message+" \n请确认json文件格式正确!!!")}if(a.clear&&this[i(d)](!0),a[i(3385)])t=this[i(3875)](a.layer);else{var n={},s=null==(r=e)||null==(r=r[i(f)])?void 0:r[i(2196)];if(s){for(var r,o=0;o<s[i(2822)];o++){var l=this[i(y)](s[o]);n[l.id]=l}null!=(r=e)&&null!=(r=r.layer)&&r.selected&&(r=n[null==(r=e)||null==(r=r.layer)?void 0:r[i(v)]])&&(this.selectedLayer=r)}}for(var c=getGeoJsonFeatures(e),h=[],u=0,_=c[i(g)];u<_;u++)var p,m=c[u],m=(t||((p=null==m||null==(p=m.properties)?void 0:p[i(2818)])?this.getLayer(p):null)||this.selectedLayer).loadGeoJSON(m,_objectSpread2(_objectSpread2({},a),{},{clear:!1,flyTo:!1})),h=h.concat(m);return a.flyTo&&this[i(3817)].flyToGraphic(h),h}},{key:M(a),value:function(e){e.geojson=this.toGeoJSON()}},{key:M(3036),value:function(e){var i,a=M;return this[a(r)](function(e){var t=a;e.isPrivate||e.getRectangle&&(e=e.getRectangle(),Cesium__namespace[t(o)](e))&&(i=i?Cesium__namespace.Rectangle[t(l)](e,i):e)},this),e?formatRectangle(i):i}},{key:"startDraw",value:function(e){var t=M;return this._selectedLayer[t(3636)](e)}},{key:M(n),value:function(){return this._selectedLayer.stopDraw()}},{key:"activateEdit",value:function(){var e=M;return this._selectedLayer[e(s)]()}},{key:"disableEdit",value:function(){var e=M;return this[e(1260)][e(1577)]()}}]),A}()),GeoJsonLayer=(register$2("graphicGroup",GraphicGroupLayer),function(){var t=2409,p=4087,m=3277,d=2131,f=2131,y=3950,v=1972,g=3497,C=3950,n=890,s=1997,r=4070,o=1592,l=406,c=2300,i=553,h=1592,u=2675,_=1592,x=2675,b=2589,k=1238,P=1781,a=1404,w=1594,S=1567,T=4070,M=_0x1658de,E=(_inherits(A,GraphicLayer),_createSuper(A));function A(){var e=_0x236b;return _classCallCheck(this,A),E[e(2026)](this,arguments)}return _createClass(A,[{key:"_showHook",value:function(e){var t=_0x236b;_get(_getPrototypeOf(A.prototype),t(w),this)[t(S)](this,e),e&&this[t(4066)]&&(this._hasLoad=!1,this[t(T)]())}},{key:"_addedHook",value:function(){_get(_getPrototypeOf(A.prototype),"_addedHook",this).call(this),this.show?this.load():this._hasLoad=!0}},{key:"_removedHook",value:function(){var e=_0x236b;_get(_getPrototypeOf(A.prototype),"_removedHook",this).call(this),this[e(a)]()}},{key:M(4070),value:function(e){var a=M,n=this;e&&(Cesium__namespace[a(i)](e[a(1404)],!0)&&(delete this[a(h)][a(u)],delete this[a(_)][a(1238)]),this.clear(),this.options=_objectSpread2(_objectSpread2({},this.options),e)),this.options[a(x)]?sendAjax(_objectSpread2(_objectSpread2({},this.options),{},{proxy:this._proxy}))[a(b)](function(e){n._map&&n._state===State.ADDED&&n._load_data(e)})[a(3718)](function(e){var t,i=a;logError$1(i(3261),e),null!=(t=n[i(3787)])&&t.reject&&n._readyPromise[i(P)](e)}):this.options[a(k)]?this._load_data(this.options.data):e&&logWarn("GeoJsonLayer:没有传入 url 或 data 参数,请确认是否有误。")}},{key:"_load_data",value:function(e){var t=M,i=(this.options.format&&(e=this.options.format(e)),e=this[t(n)](e),this.loadGeoJSON(e,{clear:!0,enabledEvent:!1})),a=[];i.forEach(function(e){a.push(_objectSpread2(_objectSpread2({},e.attr),{},{graphic:e}))}),this[t(s)](EventType[t(r)],{geojson:e,list:a,graphics:i}),this[t(o)][t(l)]&&this[t(c)](),this._readyPromise.resolve(this)}},{key:M(890),value:function(e){var t=M,i=this.options.mask;if(i&&e.features&&0!==e.features.length){(e=clone(e))[t(1504)][t(p)](1,e.features.length-1),this._extent=getExtentByGeoJSON(e);var a={xmin:73,xmax:136,ymin:3,ymax:59},i=[[(a=isObject(i)&&Cesium__namespace.defined(i.xmin)&&Cesium__namespace[t(3277)](i.xmax)&&Cesium__namespace.defined(i.ymin)&&Cesium__namespace[t(m)](i[t(d)])?i:a).xmin,a[t(f)]],[a.xmin,a.ymin],[a.xmax,a.ymin],[a.xmax,a.ymax],[a.xmin,a[t(2131)]]],n=e.features[0];if(n.geometry.type===t(y))n.geometry={type:"Polygon",coordinates:[i,n.geometry.coordinates[0]]};else if("MultiPolygon"===n[t(v)][t(1488)]){for(var s=[i],r=0,o=n.geometry.coordinates.length;r<o;r++){var l=n.geometry[t(g)][r];0<l.length&&s.push(l[0])}n[t(v)]={type:t(C),coordinates:[s]}}else if("GeometryCollection"===n.geometry.type){for(var c=[i],h=0,u=n.geometry[t(517)].length;h<u;h++){var _=n[t(1972)][t(517)][h][t(3497)];0<_.length&&c.push(_[0])}n.geometry={type:t(3950),coordinates:[c]}}}return e}},{key:"_toJsonEx",value:function(e){}},{key:"_setOptionsHook",value:function(i,e){var a=1227,n=M;_get(_getPrototypeOf(A[n(2385)]),"_setOptionsHook",this).call(this,i,e),this._map&&(!e[n(1227)]||null!=(e=e.symbol)&&e.type?(this.clear(),this.load()):this[n(t)](function(e){var t=getSymbolStyle(i[n(a)],e.attr);e.style=t}))}}]),A}()),BusineDataLayer=(register$2("geojson",GeoJsonLayer),function(){var a=1488,_=2432,p=1405,m=2822,d=1488,f=1488,y=2532,v=1592,g=1997,C=406,t=1592,i=1592,r=3817,o=1941,n=1404,x=_0x1658de,e=(_inherits(s,GraphicLayer),_createSuper(s));function s(){return _classCallCheck(this,s),e.apply(this,arguments)}return _createClass(s,[{key:x(1594),value:function(e){var t=x;_get(_getPrototypeOf(s.prototype),t(1594),this).call(this,e),e&&this._hasLoad&&(this[t(4066)]=!1,this.load())}},{key:"_addedHook",value:function(){var e=x;_get(_getPrototypeOf(s[e(2385)]),"_addedHook",this)[e(1567)](this),this.show?this.load():this._hasLoad=!0}},{key:"_removedHook",value:function(){var e=x;_get(_getPrototypeOf(s.prototype),"_removedHook",this).call(this),this[e(n)]()}},{key:x(4070),value:function(e){var a=1781,n=x,s=this;e&&(Cesium__namespace.defaultValue(e.clear,!0)&&(delete this.options.url,delete this[n(t)].data),this.clear(),this.options=_objectSpread2(_objectSpread2({},this.options),e)),this[n(i)].url?fetchJson(_objectSpread2(_objectSpread2({},this.options),{},{proxy:this[n(408)]})).then(function(e){var t=n;s[t(r)]&&s[t(o)]===State[t(585)]&&s._load_data(e)})[n(3718)](function(e){var t,i=n;logError$1("fetchJson出错了",e),null!=(t=s._readyPromise)&&t[i(a)]&&s._readyPromise[i(1781)](e)}):this[n(1592)][n(1238)]?this._load_data(this.options.data):e&&logWarn("GeoJsonLayer:没有传入 url 或 data 参数,请确认是否有误。")}},{key:"_load_data",value:function(t){for(var e=x,i=(this.options.dataColumn&&this.options[e(2825)].split(".")[e(_)](function(e){t=t[e]}),[]),a=0,n=(t=this.options[e(p)]?this.options.formatData(t):t)[e(m)];a<n;a++){var s=t[a],r={},o=(s.style&&(r=_objectSpread2({},s[e(2492)])),this.options.symbol),l=s[e(d)]&&hasType(s.type)?s[e(f)]:"point";if(o&&(isFunction(o)?(r=o(s,r)||r)[e(1488)]&&(l=r.type):(l=o.type||l,c=getSymbolStyle(o,s||{}),r=o.merge?_objectSpread2(_objectSpread2({},c),r):c)),hasType(l)){var c,o={type:l,style:r,attr:s};if(isPointType(l)){if(s.position?o[e(2532)]=s.position:this.options.formatPosition?o[e(y)]=this.options.formatPosition(s,o):this.options[e(766)]||this.options.lngColumn?(c=s[this.options.latColumn||"lat"],r=s[this.options.lngColumn||"lng"],l=s[this.options.altColumn||"alt"]||0,o.position=[r,c,l]):s.lat&&s.lng&&(o.position=[s.lng,s.lat,s.alt||0]),!o[e(2532)]){logError$1("无法解析数据position坐标位置",s);continue}}else if(s.positions?o.positions=s.positions:this.options.formatPosition&&(o.positions=this[e(v)].formatPosition(s,o)),!o.positions){logError$1("无法解析数据positions坐标位置",s);continue}i.push(o)}else logError$1("不存在graphicType无法解析数据对Graphic",s)}var h=this._addGraphicByArrOptions(i,{enabledEvent:!1}),u=[];h.forEach(function(e){u.push(_objectSpread2(_objectSpread2({},e.attr),{},{graphic:e}))}),this[e(g)](EventType.load,{jsonData:t,list:u,graphics:h}),this.options[e(C)]&&this.flyToByAnimationEnd(),this[e(3787)].resolve(this)}},{key:"_toJsonEx",value:function(e){}},{key:"_setOptionsHook",value:function(i,e){var t=x;_get(_getPrototypeOf(s[t(2385)]),t(2586),this).call(this,i,e),this._map&&(!e.symbol||null!=(e=e.symbol)&&e[t(a)]?(this.clear(),this[t(4070)]()):this[t(2409)](function(e){var t=getSymbolStyle(i.symbol,e.attr);e.style=t}))}}]),s}()),EditTileset=(register$2(_0x1658de(3759),BusineDataLayer),function(){var e=3385,t=2756,i=1279,a=2912,n=3385,s=2532,r=1026,o=2853,l=553,c=349,h=1018,u=2489,_=1681,p=2353,m=3817,d=3817,f=1091,y=539,v=2532,g=1331,C=3118,x=3817,b=2115,k=2283,P=_0x1658de,w=(_inherits(S,EditBase),_createSuper(S));function S(){return _classCallCheck(this,S),w.apply(this,arguments)}return _createClass(S,[{key:P(e),get:function(){return this._graphic}},{key:"style",get:function(){return this._graphic.options}},{key:P(t),value:function(){var e=P,i=this;this._contextmenuConfig_bak=this.layer._contextmenuConfig,this.createDragger({dragger:this[e(2283)],onDrag:function(e,t){i._graphic.position=t}})}},{key:P(i),value:function(){var e=P;delete this._graphic._draw_tooltip,delete this._graphic._isDragger,delete this._graphic._noMousePick,delete this[e(k)]._pointType,delete this[e(2283)].onDrag,this[e(2283)].unbindContextMenu(),this._contextmenuConfig_bak&&(this[e(3385)]._contextmenuConfig=this._contextmenuConfig_bak,delete this._contextmenuConfig_bak)}},{key:"_onLeftDownHandler",value:function(e){var t,i=P,a=this._map[i(y)].getPickTarget(e[i(v)],e);a[i(3385)]===this[i(3385)]&&(t=null==a?void 0:a.layer)&&t[i(g)]&&(this._map.scene.screenSpaceCameraController.enableInputs&&(this._map[i(C)].screenSpaceCameraController.enableInputs=!1,this[i(2177)]=!0),this[i(x)]._setEditCursor(!0),t[i(b)](),this._draggerIng=t,this.fire(EventType.editMouseDown,_objectSpread2(_objectSpread2(_objectSpread2({},e),a),{},{index:this._draggerIng.index})))}},{key:"_onMouseMoveDraggerHandler",value:function(e){var t=P,i=(this._map.openSmallTooltip(e.endPosition,this[t(d)][t(349)]("_释放后完成修改")),getCurrentMouseTerrainPosition(this._map.scene,e.endPosition));i&&this[t(1091)][t(3478)]&&this[t(1091)][t(3478)](this[t(f)],i),this.fire(EventType.editMouseMove,_objectSpread2(_objectSpread2({},e),{},{index:this._draggerIng[t(3170)],cartesian:i,windowPosition:e.endPosition}))}},{key:P(a),value:function(e){var t=P,i=this[t(m)].mouseEvent.getPickTarget(e.endPosition,e),a=null==i?void 0:i.layer;null==a?this._map.closeSmallTooltip():i.layer!==this[t(3385)]||!a._isDragger||this._map.contextmenu.show&&this._map.contextmenu.target===a||(i=a._draw_tooltip)&&this._map.openSmallTooltip(e.endPosition,i)}},{key:"getDraggerContextMenu",value:function(i){var a=P,n=this,e=_get(_getPrototypeOf(S[a(2385)]),"getDraggerContextMenu",this).call(this,i);return Cesium__namespace[a(l)](this.style.hasEditRotate,!0)&&(e.push({text:this._map[a(c)]("_按轴旋转"),icon:Icon.BloomEffectYes,show:function(e){var t=a;return!n._matrixRotate||n._matrixRotate._dragger_index!==i[t(3170)]},callback:function(e){var t=null!=(t=e[a(p)])&&t.position?e.graphic:e.layer;n.startRotateMatrix(t,e)}}),e[a(h)]({text:this[a(3817)].getLangText("_停止按轴旋转"),icon:Icon[a(u)],show:function(e){var t=a;return n._matrixRotate&&n._matrixRotate[t(_)]===i.index},callback:function(e){n.stopRotateMatrix()}})),e}},{key:"startRotateMatrix",value:function(t,e){var i=P;t=t||this[i(n)],this.stopMoveMatrix(),this.stopRotateMatrix(),this[i(3485)]=new MatrixRotate({map:this._map,position:t[i(s)],roll:t.rotation_x,pitch:t[i(922)],heading:t.rotation_z}),this[i(3817)].addThing(this._matrixRotate),this._matrixRotate.on(EventType.change,function(e){t[i(2046)]={x:formatNum$1(e.roll,2),y:formatNum$1(e.pitch,2),z:formatNum$1(e.heading,2)}}),t.off(EventType[i(r)],this._updateMatrixMovePosition,this),t.off(EventType.updatePosition,this._updateMatrixRotatePosition,this),t.on(EventType.updatePosition,this[i(o)],this)}}]),S}()),TilesetEditBase=function(){var e=1404,t=2677,i=1882,n=1945,p=440,m=784,d=1977,s=1977,r=3034,o=1580,l=4086,c=1529,h=1580,u=3527,_=3079,f=403,a=2074,y=2016,v=2822,g=1977,C=1018,x=1906,b=2178,k=3443,P=3034,w=1580,S=1553,T=597,M=3673,E=2822,A=2818,L=1572,D=597,I=_0x1658de,O=(_inherits(R,BaseThing),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),e=O.call(this,i),isMars3DCesium||logError$1("该功能需要引入gis3d修改版Cesium库(cesium库)才支持!",_assertThisInitialized(e)),e.raise=null==(i=i[t(L)])||i,e[t(D)]=[],e._matrixFloat32=[],e[t(1945)]=[],e[t(2016)]=!1,e._onUpdate=!1,e[t(1906)]=!1,e._maxPositionsLength=-1,e[t(2959)]=new Cesium__namespace.Cartesian4,e}return _createClass(R,[{key:"list",get:function(){return this[_0x236b(1945)]}},{key:"layer",get:function(){return this[_0x236b(A)]},set:function(i){var a=1592,n=_0x236b,s=this;(this[n(2818)]=i).readyPromise.then(function(e){var t=n;s._initLayer(i[t(3650)]),s.options[t(672)]&&s[t(a)][t(672)].forEach(function(e){s[t(2945)](e.positions,e)})})}},{key:"tileset",get:function(){return this.tilesetLayer.tileset}},{key:"length",get:function(){var e,t=_0x236b;return this[t(1945)]?null==(e=this._areaList)?void 0:e[t(E)]:0}},{key:"_addedHook",value:function(){var e=_0x236b;this.options[e(3385)]&&(this.layer=this.options.layer)}},{key:"_removedHook",value:function(){this.clear(),this.cacheMarsOptions&&this.cacheMarsOptions()}},{key:I(e),value:function(){var e=I;Cesium__namespace.defined(this[e(P)])&&(this._polygonTexture.destroy(),this._polygonTexture=null),Cesium__namespace.defined(this[e(1580)])&&(this[e(w)][e(S)](),this._matrixTexture=null),this[e(T)]=[],this[e(M)]=[],this._areaList=[],this._multipleDirty=!1,this._onUpdate=!1,this._isUpdate=!1,this._maxPositionsLength=-1}},{key:"addArea",value:function(e){var t=I,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(e&&!(e[t(v)]<3)){(e=LngLatArray.toCartesians(e)).length<4&&(e=interLine(e,{splitNum:2})),this[t(g)]=Math[t(1245)](this._maxPositionsLength,e.length);for(var a=[],n=0;n<e.length;n++)a[n]=Cesium__namespace.Matrix4.multiplyByPoint(this[t(2818)][t(2083)],e[n],new Cesium__namespace.Cartesian3);i={id:getGlobalId(),show:!0,height:i.height||0,positions:e,positions_local:a};return this._areaList[t(C)](i),this[t(x)]=!0,this[t(b)]=!0,this.fire(EventType[t(k)],{area:i}),i}}},{key:"getAreaById",value:function(e){var t=I;if(isNumber(e)){for(var i=0;i<this[t(1945)][t(2822)];i++){var a=this._areaList[i];if(a.id===e)return a}return null}}},{key:I(t),value:function(e){var t=I,e=this.getAreaById(e);e&&(e.show=!1,this[t(y)]=!0)}},{key:"showArea",value:function(e){var t=I,e=this[t(a)](e);e&&(e[t(4045)]=!0,this._multipleDirty=!0)}},{key:"removeArea",value:function(e){(e=isNumber(e)?this.getAreaById(e):e)&&(removeArrayItem(this._areaList,e),this._multipleDirty=!0,this.fire(EventType.removeItem,{area:e}))}},{key:I(2888),value:function(e){var t,i,a=I,n=e.update,s=this,r=(e[a(758)]=function(e){var t=a;s._isUpdate&&s._update(e),n[t(f)](this)(e)},this._getCustomShader(!this.layer.transform));null!=(t=Cesium__namespace.Mars3DEx)&&t[a(u)]&&((i=Cesium__namespace.Mars3DEx[a(3527)](this.layer.id))[this._customShadersKey]=r,this[a(_)]=function(){e[a(758)]=n,delete i[s._customShadersKey]})}},{key:"_getCustomShader",value:function(){return null}},{key:I(i),value:function(e){var t=I,e=e.context,i=e[t(1148)],a=this[t(s)]*this._areaList.length;Cesium__namespace.defined(this._polygonTexture)&&this[t(3034)].width*this._polygonTexture.height!=a&&(this[t(r)].destroy(),this._polygonTexture=null,this[t(o)].destroy(),this._matrixTexture=null,this._onUpdate=!0),this._onUpdate&&3<this._maxPositionsLength&&(a=new Cesium__namespace.Cartesian2(this._maxPositionsLength,this._areaList.length),i&&(this._polygonTexture=new Cesium__namespace.Texture({context:e,width:a.x,height:a.y,pixelFormat:Cesium__namespace.PixelFormat[t(l)],pixelDatatype:Cesium__namespace.PixelDatatype.FLOAT,sampler:Cesium__namespace.Sampler.NEAREST,flipY:!1}),this._polygonFloat32=new Float32Array(a.x*a.y*3),this._matrixTexture=new Cesium__namespace.Texture({context:e,width:5,height:a.y,pixelFormat:Cesium__namespace.PixelFormat.RGBA,pixelDatatype:Cesium__namespace[t(3899)].FLOAT,sampler:Cesium__namespace[t(c)].NEAREST,flipY:!1}),this._matrixFloat32=new Float32Array(5*a.y*4)),this._multipleDirty=!0,this[t(2178)]=!1),i&&this._multipleDirty&&(this.packPolygonFloatArray(),this._polygonTexture[t(2040)]({source:{width:this[t(r)].width,height:this._polygonTexture.height,arrayBufferView:this._polygonFloat32}}),this[t(o)].copyFrom({source:{width:this._matrixTexture.width,height:this[t(h)][t(3159)],arrayBufferView:this._matrixFloat32}}),this._multipleDirty=!1)}},{key:"packPolygonFloatArray",value:function(){for(var e=I,t=0,i=0,a=-1e10,n=1e10,s=-1e10,r=1e10,o=0;o<this._areaList.length;o++){var l=this._areaList[o],c=l[e(p)];if(l.show){for(var h=0;h<this._maxPositionsLength;++h){var u=Cesium__namespace[e(m)][e(925)];h<c[e(2822)]&&(a=(u=c[h]).x>a?u.x:a,s=u.y>s?u.y:s,n=u.x<n?u.x:n,r=u.y<r?u.y:r),this._polygonFloat32[t]=u.x,this[e(597)][t+1]=u.y,this._polygonFloat32[t+2]=u.z,t+=3}this._matrixFloat32[i++]=1,this._matrixFloat32[i++]=this[e(d)],this._matrixFloat32[i++]=l.height,void 0===l.height?this._matrixFloat32[i++]=-1:this._matrixFloat32[i++]=1;for(var _=0;_<16;_++)this._matrixFloat32[i++]=this._layer.inverseMatrix[_]}}this._editExtent.x=n,this[e(2959)].y=r,this._editExtent.z=a,this._editExtent.w=s}},{key:I(3458),value:function(){var i=I,a=clone(this.options,[i(3385),"eventParent"]);return a.area=[],this[i(n)].forEach(function(e){var t=i;a.area.push({positions:LngLatArray[t(1326)](e.positions)})}),a}}]),R}(),TilesetClip=function(){var o=462,l=1650,c=859,h=1650,u=1945,_=2822,p=2959,m=_0x1658de,i=(_inherits(a,TilesetEditBase),_createSuper(a));function a(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,a),(t=i.call(this,t))[e(4061)]="clip",t}return _createClass(a,[{key:m(490),value:function(){var t=1977,i=m,a=this,e=0<arguments[i(2822)]&&void 0!==arguments[0]&&arguments[0],e=new Cesium__namespace.CustomShader({vertexShaderText:"\n ".concat(e?"#define GIS3D_CUSTOM_MVP":"","\n uniform sampler2D u_gis3d_clip_flatPolygonTexture;\n uniform sampler2D u_gis3d_clip_matrixTexture;\n uniform bool u_gis3d_clip_raise;\n uniform bool u_gis3d_clip_upz;\n uniform vec4 u_gis3d_clip_flatExtent;\n uniform float u_gis3d_clip_size;\n uniform float u_gis3d_clip_width;\n uniform float u_gis3d_clip_rows;\n out float v_gis3d_clip_inPolygon;\n\n #ifdef GIS3D_CUSTOM_MVP\n uniform mat4 u_gis3d_clip_tilesetMatrix;\n uniform mat4 u_gis3d_clip_mvMatrix;\n #endif\n\n bool isPointInPolygon_clip( vec2 start ,vec2 end, vec2 test){\n if ( ((start.y > test.y) != (end.y > test.y)) &&\n (test.x < ((end.x-start.x) * (test.y-start.y) / (end.y-start.y) + start.x)) )\n return true;\n return false;\n }\n\n bool isInRect_clip(vec2 minval,vec2 maxval,vec2 test){\n return test.x > minval.x && test.x < maxval.x && test.y > minval.y && test.y <maxval.y;\n }\n\n mat4 getInvWordMatrix_clip(vec2 matUV , float matUVY){\n vec4 row1 = texture(u_gis3d_clip_matrixTexture, vec2(matUV.x * 1.0, matUVY));\n vec4 row2 = texture(u_gis3d_clip_matrixTexture, vec2(matUV.x * 2.0, matUVY));\n vec4 row3 = texture(u_gis3d_clip_matrixTexture, vec2(matUV.x * 3.0, matUVY));\n vec4 row4 = texture(u_gis3d_clip_matrixTexture, vec2(matUV.x * 4.0, matUVY));\n\n return mat4(row1,row2,row3,row4);\n }\n\n void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput) {\n vec4 modelPos = vec4(vsInput.attributes.positionMC.xyz, 1.0);\n vec2 matUV = vec2(0.25, u_gis3d_clip_width);\n for(float i = 0.0 ; i < 100.0; i+=1.0){\n if(u_gis3d_clip_rows == i)break;\n float matUVY = matUV.y * i;\n vec4 mars_row = texture(u_gis3d_clip_matrixTexture, vec2(0.0, matUVY ));\n if(mars_row.w < 0.0)continue;\n if(!u_gis3d_clip_raise && modelPos.z < mars_row.z) continue;\n mat4 invWordMatrix = getInvWordMatrix_clip(matUV , matUVY);\n vec4 localpos;\n #ifdef GIS3D_CUSTOM_MVP\n localpos = u_gis3d_clip_mvMatrix * modelPos;\n localpos = czm_inverseView * localpos;\n localpos = invWordMatrix * localpos;\n if(!u_gis3d_clip_raise&&localpos.z < mars_row.z)continue;\n #else\n localpos = invWordMatrix * czm_model * modelPos;\n if(!u_gis3d_clip_raise&&modelPos.z < mars_row.z)continue;\n #endif\n if(!isInRect_clip( vec2(u_gis3d_clip_flatExtent.xy), vec2(u_gis3d_clip_flatExtent.zw) , localpos.xy ))break;\n int len = int(mars_row.y);\n int jj = len - 1;\n bool flatStatus = false;\n for(int ii = 0 ; ii < 100; ii++){\n if(ii >= len )break;\n vec2 start = texture (u_gis3d_clip_flatPolygonTexture, vec2(float(ii) * u_gis3d_clip_size, matUVY)).st;\n vec2 end = texture( u_gis3d_clip_flatPolygonTexture, vec2(float(jj) * u_gis3d_clip_size, matUVY)).st;\n if(isPointInPolygon_clip(start, end, localpos.xy)){\n flatStatus = true;\n break;\n }\n jj = ii;\n }\n if(flatStatus){\n vec4 position;\n #ifdef GIS3D_CUSTOM_MVP\n localpos.z = mars_row.z;\n localpos = u_gis3d_clip_tilesetMatrix * localpos;\n position = czm_view * localpos;\n #else\n if(u_gis3d_clip_upz)\n modelPos.z = mars_row.z;\n else\n modelPos.y = mars_row.z;\n position = czm_modelView * modelPos;\n #endif\n\n vsOutput.positionMC = modelPos.xyz;\n v_gis3d_clip_inPolygon = 1.0;\n }\n }\n }"),fragmentShaderText:i(o)}),n=this._layer[i(2799)]===Cesium__namespace.Axis.Z,s=this._map.scene.context.defaultTexture,r=new Cesium__namespace.Cartesian4(1,1,1,1);return e.uniformMap.u_gis3d_clip_mvMatrix=function(){return this.u_mv?this.u_mv():this.u_modelViewMatrix?this.u_modelViewMatrix():void 0},e.uniformMap.u_gis3d_clip_tilesetMatrix=function(){return a._layer.modelMatrix},e[i(l)].u_gis3d_clip_flatPolygonTexture=function(){var e;return null!=(e=a._polygonTexture)?e:s},e.uniformMap.u_gis3d_clip_matrixTexture=function(){var e;return null!=(e=a._matrixTexture)?e:s},e.uniformMap[i(c)]=function(){var e;return null!=(e=a[i(p)])?e:r},e.uniformMap.u_gis3d_clip_size=function(){var e=1/(a[i(t)]-1);return parseFloat(e.toFixed(3))},e[i(h)].u_gis3d_clip_width=function(){var e=i,e=a._areaList[e(2822)];return parseFloat((1===e?0:1/(e-1)).toFixed(3))},e.uniformMap[i(3809)]=function(){var e=i;return parseFloat(a[e(u)][e(_)])},e.uniformMap.u_gis3d_clip_raise=function(){return a.raise},e[i(1650)].u_gis3d_clip_upz=function(){return n},e}}]),a}(),TilesetFlat=function(){var n=1945,l=2822,c=2732,h=3817,u=2156,_=1834,p=1650,m=2957,d=2720,f=2959,s=_0x1658de,i=(_inherits(a,TilesetEditBase),_createSuper(a));function a(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,a),(t=i.call(this,t))._customShadersKey=e(2268),t}return _createClass(a,[{key:"layerHeight",get:function(){var e,t=this.layer;return null!=t&&null!=(e=t.options)&&e.flatHeight?t.options.flatHeight:this.options.flatHeight||0}},{key:"_getCustomShader",value:function(){var t=2822,i=_0x236b,a=this,e=0<arguments[i(l)]&&void 0!==arguments[0]&&arguments[0],e=new Cesium__namespace.CustomShader({vertexShaderText:"\n ".concat(e?"#define GIS3D_CUSTOM_MVP":"",i(c))}),n=this[i(2818)].upAxis===Cesium__namespace.Axis.Z,s=this.layerHeight,r=this[i(h)][i(3118)].context.defaultTexture,o=new Cesium__namespace.Cartesian4(1,1,1,1);return e.uniformMap.u_gis3d_flat_mvMatrix=function(){return this.u_mv?this.u_mv():this.u_modelViewMatrix?this.u_modelViewMatrix():void 0},e.uniformMap.u_gis3d_flat_tilesetMatrix=function(){return a._layer.modelMatrix},e.uniformMap[i(770)]=function(){return s},e.uniformMap[i(u)]=function(){var e;return null!=(e=a._polygonTexture)?e:r},e.uniformMap[i(_)]=function(){var e;return null!=(e=a._matrixTexture)?e:r},e.uniformMap.u_gis3d_flat_flatExtent=function(){var e;return null!=(e=a[i(f)])?e:o},e.uniformMap.u_gis3d_flat_size=function(){var e=1/(a._maxPositionsLength-1);return parseFloat(e.toFixed(3))},e[i(p)].u_gis3d_flat_width=function(){var e=i,t=a._areaList.length;return parseFloat((1===t?0:1/(t-1))[e(3366)](3))},e.uniformMap.u_gis3d_flat_rows=function(){var e=i;return parseFloat(a[e(1945)][e(t)])},e.uniformMap[i(m)]=function(){return a.raise},e.uniformMap[i(d)]=function(){return n},e}},{key:s(2838),value:function(e,t){var i=s;if(Cesium__namespace[i(3277)](t)){t=this.getAreaById(t);t&&(t.height=e,this._multipleDirty=!0)}else{for(var a=0;a<this[i(n)].length;a++)this._areaList[a].height=e;this._multipleDirty=!0}}}]),a}(),TilesetFlood=function(){var e=2745,t=1404,i=490,c=807,h=2496,u=2944,_=1527,p=1413,m=1650,d=1506,f=3109,y=1572,a=2385,n=1542,s=2621,r=1994,o=1650,l=1592,v=1592,g=1650,C=427,x=1567,b=1592,k=2745,P=1592,w=_0x1658de,S=(_inherits(T,TilesetEditBase),_createSuper(T));function T(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,T),(i=S[t(x)](this,i))._customShadersKey="flood",i[t(b)].speed=null!=(e=i.options.speed)?e:5,i.options[t(k)]=getCesiumColor(i[t(P)].color,new Cesium__namespace.Color(.15,.7,.95,.5)),i}return _createClass(T,[{key:"speed",get:function(){return this.options.speed},set:function(e){this.options.speed=e}},{key:"floodAll",get:function(){var e=_0x236b;return null!=(e=this[e(1592)][e(546)])&&e},set:function(e){var t=_0x236b;this.options.floodAll=e,this.uniformMap&&(this.uniformMap[t(1115)].value=e)}},{key:"height",get:function(){return this._currentHeight},set:function(e){this._currentHeight=e}},{key:w(e),get:function(){return this.options.color},set:function(e){this.options.color=e}},{key:w(3057),value:function(){var e=w;this.stop(),Cesium__namespace.defined(this.options.minHeight)&&(this[e(o)].v_mars_min_height.value=this[e(l)].minHeight,this.uniformMap.v_mars_current_height.value=this[e(v)].minHeight,this[e(2621)]=this[e(l)].minHeight),Cesium__namespace[e(3277)](this.options.maxHeight)&&(this[e(g)][e(C)].value=this[e(1592)].maxHeight),this.isStart=!0,this.fire(EventType.start),this._map.on(EventType.clockTick,this._onClockTickHandler,this)}},{key:w(2077),value:function(e){var t=w;this[t(s)]+=this[t(2662)]/50,this.uniformMap.v_mars_current_height.value=this[t(2621)],this[t(s)]>this.options[t(1732)]?(this._currentHeight=this.options.maxHeight,this.stop()):this[t(2621)]<this[t(1592)][t(r)]?(this._currentHeight=this.options[t(r)],this[t(405)]()):this.fire(EventType.change,{height:this.height})}},{key:"stop",value:function(){var e=w;this[e(n)]&&(this._map.off(EventType.clockTick,this._onClockTickHandler,this),this[e(n)]=!1,this.fire(EventType.end))}},{key:w(1917),value:function(){this[w(3057)]()}},{key:w(t),value:function(){var e=w;this.stop(),_get(_getPrototypeOf(T[e(a)]),"clear",this).call(this)}},{key:w(i),value:function(){var t=1945,i=2822,a=3366,n=w,s=this,e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=new Cesium__namespace.CustomShader({uniforms:{v_mars_min_height:{type:Cesium__namespace.UniformType.FLOAT,value:0},v_mars_max_height:{type:Cesium__namespace.UniformType.FLOAT,value:100},v_mars_current_height:{type:Cesium__namespace.UniformType[n(c)],value:50},v_mars_floodAll:{type:Cesium__namespace.UniformType[n(1514)],value:this.floodAll}},vertexShaderText:"\n ".concat(e?"#define GIS3D_CUSTOM_MVP":"",n(h)),fragmentShaderText:"\n in float v_gis3d_inPolygon;\n void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material)\n {\n if ((v_mars_floodAll || !v_mars_floodAll && v_gis3d_inPolygon > 0.0) && fsInput.attributes.positionMC.z <= v_mars_current_height && fsInput.attributes.positionMC.z >= v_mars_min_height) {\n float blnum = abs(fsInput.attributes.positionMC.z - v_mars_current_height) / (v_mars_max_height - v_mars_min_height);\n blnum = clamp(blnum, 0.0, 1.0);\n material.diffuse = mix(material.diffuse, mix(vec3(0.0, 1.0, 0.0), vec3(1.0, 0.0, 0.0), blnum), 0.5);\n }\n } "}),r=this._layer.upAxis===Cesium__namespace.Axis.Z,o=this._map.scene[n(3974)].defaultTexture,l=new Cesium__namespace[n(u)](1,1,1,1);return e.uniformMap[n(2188)]=function(){return this.u_mv?this.u_mv():this.u_modelViewMatrix?this.u_modelViewMatrix():void 0},e[n(1650)][n(_)]=function(){var e=n;return s[e(2818)][e(1436)]},e.uniformMap[n(p)]=function(){var e;return null!=(e=s._polygonTexture)?e:o},e[n(m)][n(d)]=function(){var e;return null!=(e=s._matrixTexture)?e:o},e.uniformMap.u_gis3d_flood_flatExtent=function(){var e;return null!=(e=s._editExtent)?e:l},e.uniformMap[n(3288)]=function(){var e=n,t=1/(s[e(1977)]-1);return parseFloat(t[e(3366)](3))},e.uniformMap[n(f)]=function(){var e=n,t=s._areaList.length;return parseFloat((1===t?0:1/(t-1))[e(a)](3))},e.uniformMap.u_gis3d_flood_rows=function(){var e=n;return parseFloat(s[e(t)][e(i)])},e[n(1650)].u_gis3d_flood_raise=function(){return s[n(y)]},e.uniformMap[n(3100)]=function(){return r},this.uniformMap=e.uniformMap,e}}]),T}(),TilesetPlanClip=function(){var i=1326,a=3754,n=3754,s=1404,r=3463,o=1592,l=1494,c=2638,h=3644,u=3840,_=1762,p=784,m=1018,d=3028,f=2785,y=1592,t=1027,v=1802,g=4030,C=3381,x=2201,b=3466,k=3432,P=1266,w=1592,S=1802,T=3278,M=1592,E=1980,A=1488,L=871,D=1206,I=2177,H=2353,F=2259,N=2745,G=1989,z=349,e=1592,B=3278,j=711,V=1001,$=1001,U=784,W=1431,J=2822,q=1431,Y=1431,Z=3754,X=2042,Q=2477,K=2073,ee=1431,te=2818,ie=3236,ae=1980,ne=3873,O=_0x1658de,se=(_inherits(R,BaseThing),_createSuper(R));function R(){return _classCallCheck(this,R),se.apply(this,arguments)}return _createClass(R,[{key:"clipTarget",get:function(){return this._tileset},set:function(e){var t=_0x236b;this._tileset=e,this._inverseMatrix=null,Cesium__namespace.defined(this.options.positions)&&(this.positions=this.options[t(ae)]),Cesium__namespace.defined(this.options.type)&&(this[t(1488)]=this.options.type),Cesium__namespace[t(3277)](this.options.distance)&&(this[t(1937)]=this.options.distance),Cesium__namespace[t(3277)](this.options.normalZ)&&(this.normalZ=this[t(1592)][t(ne)])}},{key:"layer",get:function(){return this._layer},set:function(t){var e=_0x236b,i=this;(this[e(te)]=t)[e(ie)]?this.clipTarget=t.tileset:t.on(EventType.load,function(e){i.clipTarget=t.tileset})}},{key:"planes",get:function(){return this[_0x236b(ee)]}},{key:"inverseMatrix",get:function(){var e,t=_0x236b;return this._inverseMatrix||(e=(e=this._tileset.root[t(Q)])&&e[t(2204)](Cesium__namespace.Matrix4.IDENTITY)||!e?Cesium__namespace.Transforms[t(K)](this._tileset.boundingSphere.center):Cesium__namespace[t(3342)].fromArray(this._tileset.root.transform),this[t(2953)]=Cesium__namespace.Matrix4.inverseTransformation(e,new Cesium__namespace.Matrix4)),this._inverseMatrix}},{key:"center",get:function(){var e=_0x236b;return this._layer?this._layer.position:this._tileset[e(2870)][e(1494)]}},{key:"distance",get:function(){return this[_0x236b(X)]},set:function(e){var t=_0x236b;this._distance=e,this[t(q)]&&0<this.clippingPlanes.length&&(this[t(Y)][t(Z)](this.clippingPlanes.length-1).distance=e)}},{key:"normalZ",get:function(){return this._normalZ||0},set:function(e){var t=_0x236b;this[t(3059)]=e,this.clippingPlanes&&0<this[t(W)][t(J)]&&(this.clippingPlanes.get(this.clippingPlanes[t(2822)]-1)[t(2785)].z=e)}},{key:"type",get:function(){return this._type},set:function(e){var t,i=_0x236b;switch(this[i(j)]=e){case ClipType.Z:t=[new Cesium__namespace.ClippingPlane(new Cesium__namespace[i(784)](0,0,1),1)];break;case ClipType.ZR:t=[new Cesium__namespace.ClippingPlane(new Cesium__namespace[i(784)](0,0,-1),1)];break;case ClipType.X:t=[new Cesium__namespace[i(V)](new Cesium__namespace.Cartesian3(1,0,0),1)];break;case ClipType.XR:t=[new Cesium__namespace.ClippingPlane(new Cesium__namespace[i(784)](-1,0,0),1)];break;case ClipType.Y:t=[new Cesium__namespace.ClippingPlane(new Cesium__namespace.Cartesian3(0,1,0),1)];break;case ClipType.YR:t=[new Cesium__namespace[i($)](new Cesium__namespace[i(U)](0,-1,0),1)]}this.setPlanes(t)}},{key:"positions",get:function(){return this._positions},set:function(e){var t=_0x236b;this._positions=LngLatArray[t(3483)](e),this._setPositions(this._positions)}},{key:"clipOutSide",get:function(){return this[_0x236b(1592)].clipOutSide},set:function(e){this.options.clipOutSide=e,this._map&&this._positions&&this._setPositions(this._positions)}},{key:O(1744),value:function(){var a=O,n=this;this.options.showPlane&&(this[a(1266)]=new GraphicLayer(_objectSpread2(_objectSpread2({},this.options),{},{private:!0})),this.options[a(3076)])&&this._graphicLayer[a(G)]([{text:this._map[a(z)](a(1161)),icon:Icon.Delete,callback:function(e){var t=a,i=e.graphic;i&&(n._graphicLayer[t(2377)](i),n.fire(EventType.remove,e))}}]),this[a(e)].layer?this[a(3385)]=this.options.layer:this.options.tileset&&(this[a(B)]=this[a(e)][a(3650)])}},{key:"_map_click",value:function(e){var t=O;this._last_planeGraphics&&(this._last_planeGraphics[t(638)]=!1,this[t(F)].material[t(N)]=this._last_planeGraphics.material.color_bak,delete this[t(2259)]),this._graphicLayer_leftUp(e)}},{key:"_graphicLayer_click",value:function(e){var t=O,i=null==(i=e.graphic)||null==(i=i.entity)?void 0:i.plane;Cesium__namespace.defined(i)&&(this._map_click(),i[t(638)]=!i.hasEdit,i.material.color_bak=i.material.color,i.material.color=e[t(H)].style.editColor,i.hasEdit&&(this[t(2259)]=i),e.stopPropagation())}},{key:O(3381),value:function(e){e=null==(e=e.graphic)||null==(e=e.entity)?void 0:e.plane;Cesium__namespace.defined(e)&&e.hasEdit&&(this._selectedPlane=e.plane.getValue(),this._map.scene.screenSpaceCameraController.enableInputs)&&(this._map.scene.screenSpaceCameraController.enableInputs=!1,this._hasChangeEnableInputs=!0)}},{key:"_graphicLayer_leftUp",value:function(e){var t=O;Cesium__namespace.defined(this._selectedPlane)&&(delete this._selectedPlane,this[t(2177)])&&(this[t(3817)].scene.screenSpaceCameraController.enableInputs=!0,delete this[t(I)])}},{key:"_map_mouseMove",value:function(e){var t,i=O;Cesium__namespace.defined(this._selectedPlane)?(t=(e[i(871)].x-e.endPosition.x+(e[i(L)].y-e.endPosition.y))/2,this._selectedPlane[i(1937)]=(this._selectedPlane.distance||0)+t,this._map.openSmallTooltip(e[i(2031)],this._map.getLangText("_释放后完成修改"))):this[i(3817)][i(D)]()}},{key:"_addedHook",value:function(){var e=O;this[e(P)]&&(this._map.addLayer(this._graphicLayer),this[e(w)][e(3076)])&&(this._map.on(EventType.click,this._map_click,this),this._graphicLayer.on(EventType[e(S)],this._graphicLayer_click,this),this._graphicLayer.on(EventType.leftDown,this._graphicLayer_leftDown,this),this._graphicLayer.on(EventType.leftUp,this._graphicLayer_leftUp,this),this._map.on(EventType.mouseMove,this._map_mouseMove,this)),this[e(T)]&&(Cesium__namespace.defined(this[e(M)].positions)&&(this.positions=this.options[e(E)]),Cesium__namespace[e(3277)](this.options[e(A)])&&(this[e(A)]=this.options[e(A)]),Cesium__namespace.defined(this.options.distance))&&(this.distance=this.options.distance)}},{key:"_removedHook",value:function(){var e=O;this.clear(),this[e(1266)]&&(this.options.editPlane&&(this._map.off(EventType.click,this[e(t)],this),this._graphicLayer.off(EventType[e(v)],this._graphicLayer_click,this),this._graphicLayer[e(g)](EventType.leftDown,this[e(C)],this),this[e(1266)].off(EventType.leftUp,this[e(x)],this),this._map.off(EventType[e(1125)],this[e(b)],this)),this[e(3817)][e(k)](this._graphicLayer))}},{key:"_setPositions",value:function(e){var t=O;if(!(e.length<2)){var i=[];if(2===e[t(2822)]){var a=this._createPlaneByLine(e[0],e[1]);a&&i[t(m)](a)}else{var n,a=formatNum$1(getAngle(e[0],e[1]),2);n=!(-.02<a&&a<.02)&&a<formatNum$1(getAngle(e[0],e[2]),2),this[t(d)]&&(n=!n);for(var s=0,r=e.length;s<r;++s){var o,l=(s+1)%r;(o=n?this._createPlaneByLine(e[l],e[s]):this._createPlaneByLine(e[s],e[l]))&&(this[t(3059)]&&(o[t(f)].z=this._normalZ),i.push(o))}Cesium__namespace.defined(this.options.height)&&(o=new Cesium__namespace[t(1001)](new Cesium__namespace.Cartesian3(0,0,-1),this[t(y)].height),i.push(o))}this[t(1952)](i)}}},{key:"_createPlaneByLine",value:function(e,t){var i,a=O;return Cesium__namespace.Cartesian3.distance(e,t)<.1?null:(i=this.inverseMatrix,e=Cesium__namespace[a(3342)][a(_)](i,e,new Cesium__namespace.Cartesian3),i=Cesium__namespace.Matrix4.multiplyByPoint(i,t,new Cesium__namespace.Cartesian3),t=new Cesium__namespace[a(784)](0,0,10),i=Cesium__namespace.Cartesian3.subtract(i,e,new Cesium__namespace[a(p)]),i=Cesium__namespace.Cartesian3.cross(i,t,new Cesium__namespace.Cartesian3),i=Cesium__namespace[a(784)].normalize(i,i),t=Cesium__namespace.Plane.fromPointNormal(e,i),Cesium__namespace.ClippingPlane[a(2704)](t))}},{key:"setPlanes",value:function(e){var t=O;if(e){var i=new Cesium__namespace.ClippingPlaneCollection({planes:e,edgeWidth:null!=(e=this.options.edgeWidth)?e:0,edgeColor:null!=(e=this.options[t(3404)])?e:Cesium__namespace.Color.WHITE,unionClippingRegions:null!=(e=this.clipOutSide)&&e});if(this.clippingPlanes=i,this.clipTarget&&(this.clipTarget[t(1431)]=i),this[t(o)].showPlane){this._graphicLayer[t(1404)]();for(var a=this._tileset.boundingSphere.radius,n=0;n<i.length;++n){var s=i.get(n),s=new PlaneEntity({position:this[t(l)],style:_objectSpread2(_objectSpread2({dimensions:new Cesium__namespace[t(c)](a,a),color:Cesium__namespace.Color[t(h)].withAlpha(.2),editColor:Cesium__namespace.Color[t(3644)].withAlpha(.5),outline:!0,outlineColor:Cesium__namespace.Color.WHITE},this[t(1592)][t(1160)]||{}),{},{plane:new Cesium__namespace.CallbackProperty(createPlaneUpdateFunction(s),!1)})});this._graphicLayer[t(u)](s)}}}}},{key:"clear",value:function(){var e,t=O;this._graphicLayer&&this._graphicLayer[t(s)](),this._positions=null,this[t(3059)]=0,this.options.clipOutSide=!1,this.clippingPlanes&&delete this[t(1431)],this.clipTarget&&(null!=(e=this.clipTarget.clippingPlanes)&&e[t(3463)]&&(this.clipTarget.clippingPlanes[t(r)]=!1),this.clipTarget.clippingPlanes=void 0)}},{key:"updateAllDistance",value:function(e){var t=O;if(null!=this.clippingPlanes)for(var i=0;i<this.clippingPlanes.length;i++)this.clippingPlanes[t(n)](i)[t(1937)]=e}},{key:O(1163),value:function(e){var t=O;if(null!=this.clippingPlanes)for(var i=0;i<this[t(1431)][t(2822)];i++)this[t(1431)][t(a)](i).normal.z=e}},{key:"toJSON",value:function(){var e=O,t=clone(this.options,["layer","eventParent"]);return this[e(3019)]&&(t.positions=LngLatArray[e(i)](this.positions)),t}}]),R}();function createPlaneUpdateFunction(e){return function(){return e}}TilesetPlanClip.Type=ClipType;var TilesetLayer=function(){var e=3385,t=2532,i=2799,a=922,n=3287,s=1324,r=2268,o=2395,l=2794,c=1410,h=4037,u=1767,_=1107,p=1259,m=539,d=3165,f=2890,y=3604,v=2890,g=2547,C=3675,x=3883,b=3400,k=1997,P=3130,H=3130,F=3130,N=3085,G=489,z=2970,B=1919,j=576,V=3517,$=1997,U=3723,W=2354,J=3817,q=1937,Y=3883,Z=2941,X=3817,Q=2993,K=3817,ee=3328,w=4113,te=3056,ie=1410,ae=1326,ne=2948,se=3678,re=3458,S=2319,oe=1626,le=737,ce=3817,he=2309,ue=3236,_e=2971,pe=2870,me=803,de=1116,T=3342,fe=3883,ye=1576,ve=2477,ge=2046,Ce=1124,xe=3287,be=3437,ke=3342,Pe=4054,we=1689,M=1592,Se=3887,Te=2326,Me=2576,Ee=3883,Ae=1494,E=1592,Le=2589,De=1364,A=1592,L=2477,Ie=3277,Oe=3342,Re=784,He=1539,Fe=1539,Ne=1604,Ge=1010,ze=3438,Be=3277,je=2492,Ve=2532,$e=3277,Ue=1614,We=3130,Je=2268,qe=3803,Ye=3650,Ze=332,Xe=654,Qe=3277,Ke=1494,et=1052,tt=1267,it=2319,at=1592,nt=2822,st=1592,rt=3463,ot=640,lt=621,D=3883,ct=3277,ht=3328,ut=3883,_t=4092,pt=845,mt=3678,dt=1592,ft=3678,yt=1592,vt=1592,gt=1592,Ct=2046,xt=1592,bt=2046,kt=3277,Pt=1592,wt=1576,St=2046,I=3883,Tt=2993,Mt=3883,Et=2492,At=1592,Lt=1592,Dt=2465,It=3236,Ot=2477,Rt=3883,Ht=1364,Ft=2510,Nt=2822,Gt=3077,O=_0x1658de,zt=(_inherits(R,BaseGraphicLayer),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments[t(Nt)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(e=zt[t(1567)](this,i)).orginRotation={x:0,y:0,z:0},e._orginCenterPoint=new LngLatPoint,e[t(Gt)]=null==(i=i[t(638)])||i,e._marsOptions={},e}return _createClass(R,[{key:O(e),get:function(){return this._tileset}},{key:O(3650),get:function(){return this._tileset}},{key:"modelMatrix",get:function(){var e=O;return this[e(3236)]?(this._tilesetMatrix||(this[e(Ot)]?this._tilesetMatrix=this[e(Rt)][e(Ht)].transform:this._tilesetMatrix=Cesium__namespace[e(Ft)].eastNorthUpToFixedFrame(this._tileset.boundingSphere.center)),this._tilesetMatrix):Cesium__namespace.Matrix4.ZERO}},{key:"inverseMatrix",get:function(){return this[O(It)]?(this._inverseMatrix||(this._inverseMatrix=Cesium__namespace.Matrix4.inverse(this.modelMatrix,new Cesium__namespace.Matrix4)),this._inverseMatrix):Cesium__namespace.Matrix4.ZERO}},{key:"highlight",get:function(){return this.options.highlight},set:function(e){var t=O;(this[t(Lt)].highlight=e)?this.bindHighlight(this.options[t(Dt)]):this[t(3522)]()}},{key:"marsJzwStyle",get:function(){return this.options.marsJzwStyle},set:function(e){this.options.marsJzwStyle=e,this._conventMarsOptions()}},{key:"style",get:function(){return this[O(At)].style},set:function(i){var e=O;this.options[e(2492)]=i,this[e(Mt)]&&(i instanceof Cesium__namespace.Cesium3DTileStyle?this._tileset[e(Et)]=i:"function"==typeof i?this[e(3883)].style=new Cesium__namespace.Cesium3DTileStyle({color:{evaluateColor:function(e,t){e=i(e);return e?Cesium__namespace.Color.clone(Cesium__namespace.Color.fromCssColorString(e),t):t}}}):this._tileset.style=new Cesium__namespace.Cesium3DTileStyle(i))}},{key:"customShader",get:function(){return this.options.customShader},set:function(e){this.options.customShader=e,this._tileset&&(this._tileset.customShader=e)}},{key:"orginCenterPoint",get:function(){return this._orginCenterPoint}},{key:"orginCenterPosition",get:function(){return this._orginCenterPosition}},{key:O(t),get:function(){return this._center.toCartesian()},set:function(e){this.center=e}},{key:"center",get:function(){return this[O(3052)]},set:function(e){this._center=LngLatPoint.parse(e),this.updateMatrix()}},{key:O(3159),get:function(){return this.alt},set:function(e){this.alt=e}},{key:"alt",get:function(){if(this.center)return this.center.alt},set:function(e){var t=O;this[t(3883)]&&(this.center[t(Tt)]=e,this.updateMatrix())}},{key:"boundingSphere",get:function(){var e,t=O;return null==(e=this._tileset)?void 0:e[t(2870)]}},{key:O(i),get:function(){var e,t=O;return Cesium__namespace.defined(null==(e=this._tileset)?void 0:e._modelUpAxis)?null==(e=this[t(I)])?void 0:e._modelUpAxis:!Cesium__namespace.defined(null==(e=this[t(3883)])?void 0:e[t(3936)])||null==(e=this[t(I)])?void 0:e._gltfUpAxis}},{key:"rotation",get:function(){var e=O;return this.options.rotation?this[e(1592)][e(St)]:this.orginRotation},set:function(e){var t=O;this[t(Pt)][t(2046)]=e,this[t(wt)]()}},{key:"rotation_x",get:function(){var e=O;return(this.options.rotation&&Cesium__namespace[e(kt)](this.options.rotation.x)?this.options.rotation:this.orginRotation).x},set:function(e){var t=O;this.options.rotation=this.options.rotation||{},this[t(1592)][t(bt)].x=e,this[t(1576)]()}},{key:O(a),get:function(){var e=O;return(this.options[e(2046)]&&Cesium__namespace.defined(this.options[e(Ct)].y)?this[e(xt)].rotation:this.orginRotation).y},set:function(e){var t=O;this.options[t(2046)]=this.options.rotation||{},this.options.rotation.y=e,this.updateMatrix()}},{key:O(n),get:function(){return(this.options.rotation&&Cesium__namespace.defined(this.options.rotation.z)?this.options.rotation:this.orginRotation).z},set:function(e){var t=O;this.options.rotation=this[t(1592)].rotation||{},this[t(gt)].rotation.z=e,this.updateMatrix()}},{key:"axis",get:function(){return this.options.axis||""},set:function(e){var t=O;this[t(vt)].axis=e,this[t(1576)]()}},{key:"scale",get:function(){return this.options.scale||1},set:function(e){this.options.scale=e,this.updateMatrix()}},{key:"allowDrillPick",get:function(){return this.options.allowDrillPick},set:function(e){this.options.allowDrillPick=e}},{key:"planClip",get:function(){var e=O;return this._map&&!this._tilesetPlanClip&&this._initTilesetPlanClip(),this[e(2948)]}},{key:"hasEdit",get:function(){return this._hasEdit&&this.transform},set:function(e){this._hasEdit=e}},{key:O(s),value:function(){this._tilesetPlanClip&&this._tilesetPlanClip.destroy(),this._tilesetPlanClip=new TilesetPlanClip(_objectSpread2(_objectSpread2({},this.options.planClip),{},{layer:this})),this._map.addThing(this._tilesetPlanClip)}},{key:"clip",get:function(){var e=O;return this._map&&!this[e(1052)]&&this._initTilesetClip(),this._tilesetClip}},{key:O(1028),value:function(){var e=O;this._tilesetClip&&this._tilesetClip.destroy(),this._tilesetClip=new TilesetClip(_objectSpread2(_objectSpread2({},this[e(yt)].clip),{},{layer:this})),this._map.addThing(this[e(1052)])}},{key:O(r),get:function(){var e=O;return this._map&&!this[e(ft)]&&this[e(2395)](),this._tilesetFlat}},{key:O(o),value:function(){var e=O;this._tilesetFlat&&this[e(mt)].destroy(),this._tilesetFlat=new TilesetFlat(_objectSpread2(_objectSpread2({},this[e(dt)].flat),{},{layer:this})),this._map.addThing(this._tilesetFlat)}},{key:"flood",get:function(){return this._map&&!this._tilesetFlood&&this._initTilesetFlood(),this._tilesetFlood}},{key:"_initTilesetFlood",value:function(){this._tilesetFlood&&this._tilesetFlood.destroy(),this._tilesetFlood=new TilesetFlood(_objectSpread2(_objectSpread2({},this.options.flood),{},{layer:this})),this._map.addThing(this._tilesetFlood)}},{key:"isEditing",get:function(){return this[O(678)]}},{key:O(3244),value:function(){var e=O;return new Cesium__namespace[e(pt)](_objectSpread2(_objectSpread2({},this.options),{},{url:getUrlResource(this.options),marsOptions:this[e(3604)]}))}},{key:"_addedHook",value:function(){var e,t=O,i=this;_get(_getPrototypeOf(R.prototype),"_addedHook",this).call(this),this._conventMarsOptions(),(0<(null==(e=this.options.flat)||null==(e=e.area)?void 0:e.length)||null!=(e=this.options.flat)&&e.enabled)&&this._initTilesetFlat(),(0<(null==(e=this.options.flood)||null==(e=e.area)?void 0:e[t(nt)])||null!=(e=this.options.flood)&&e.enabled)&&this._initTilesetFlood(),(0<(null==(e=this.options.clip)||null==(e=e.area)?void 0:e.length)||null!=(e=this[t(st)][t(3803)])&&e[t(rt)])&&this._initTilesetClip(),(0<(null==(e=this.options.planClip)||null==(e=e[t(1980)])?void 0:e.length)||null!=(e=this.options.planClip)&&e.enabled)&&this._initTilesetPlanClip(),this._tileset=this._createCesium3DTileset(),this._tileset.name=this[t(ot)],this._tileset._gis3d_layerId=this.id,this.loadOk=!1,this._tileset[t(lt)].then(function(e){i.loadOk=!0,i._tileset.show=i.show,i._initModel(),i._readyPromise.resolve(i)})[t(3718)](function(e){var t;null!=(t=i._readyPromise)&&t.reject&&i._readyPromise.reject(e)}),this[t(3817)].scene.primitives[t(3605)](this[t(D)]),this[t(3883)][t(3531)].addEventListener(function(e){i.fire(EventType.initialTilesLoaded,e)}),this._tileset.allTilesLoaded.addEventListener(function(e){i.fire(EventType.allTilesLoaded,e)}),Cesium__namespace[t(ct)](this._map[t(590)])&&(this[t(3817)][t(ht)]=this._map[t(3328)]||{},this[t(3817)]._tilesets[this.id]=this[t(D)],this[t(ut)][t(_t)].addEventListener(this._tileset_tileLoadHandler,this))}},{key:"_removedHook",value:function(){var e=O;this[e(et)]&&(this._map[e(tt)](this._tilesetClip,!0),delete this._tilesetClip),this._tilesetFlat&&(this[e(3817)].removeThing(this._tilesetFlat,!0),delete this[e(3678)]),this._tilesetFlood&&(this._map.removeThing(this[e(2319)],!0),delete this[e(it)]),this._tilesetPlanClip&&(this._map.removeThing(this._tilesetPlanClip,!0),delete this._tilesetPlanClip),Cesium__namespace.defined(this._map.tilesetMaxTotalMemory)&&(delete this._map[e(3328)][this.id],this[e(3883)].tileLoad.removeEventListener(this[e(455)],this)),_get(_getPrototypeOf(R.prototype),"_removedHook",this).call(this),Cesium__namespace.defined(this[e(at)].distanceDisplayCondition_far)&&this._map.off(EventType.cameraChanged,this[e(1767)],this),this._tileset&&(this._map[e(3118)].primitives.remove(this._tileset),delete this._tileset)}},{key:"reload",value:function(){this._removedHook(),this._addedHook()}},{key:"_mergePostion",value:function(e){var t=O;e&&((Array.isArray(e)||isString(e))&&(e=LngLatPoint[t(Ze)](e)),this._center||(this._center=new LngLatPoint),e.lat&&(this.center.lat=e[t(Xe)]),e.lng&&(this.center.lng=e.lng),Cesium__namespace.defined(e[t(1387)])&&(this.center.alt=this._orginCenterPoint[t(2993)]+e.alt_offset),Cesium__namespace[t(Qe)](e.alt))&&(this[t(Ke)].alt=e.alt)}},{key:"_setOptionsHook",value:function(e,t){var i,a,n=O;if(this[n(3883)]){for(a in t){var s,r=e[a];switch(a){case"highlight":return void(null==(s=this[n(3130)])||!s.event||null!=(s=t[n(2465)])&&s.type?_get(_getPrototypeOf(R.prototype),"_setOptionsHook",this).call(this,e,t):this._highlight_mouseEventHandler(this[n(We)].event));case"classificationType":case n(2119):case n(Je):case"flood":case n(qe):case"planClip":return void this.reload();case n(2532):case"rotation":case"scale":case n(3476):i=!0;break;case"opacity":case"style":case"marsJzwStyle":case"customShader":this[a]=r;break;default:try{this[n(Ye)][a]=r}catch(e){this.reload()}}}i&&(this._mergePostion(this[n(1592)][n(2532)]),this.updateMatrix())}}},{key:O(3201),value:function(){var e,t,i,a=O,n=(this[a(1997)](EventType.loadBefore,{tileset:this._tileset}),this._orginCenterPosition=Cesium__namespace.clone(this._tileset.boundingSphere.center),null==(n=this._tileset[a(De)])?void 0:n.transform);this.transform=null!=(i=this[a(A)][a(L)])?i:Boolean(n&&!n.equals(Cesium__namespace.Matrix4.IDENTITY)),this[a(L)]&&(this.orginMatrix=Cesium__namespace.Matrix4.inverse(Cesium__namespace.Matrix4.fromArray(this[a(3883)][a(2971)].transform),new Cesium__namespace.Matrix4),i=Cesium__namespace.Matrix4[a(1029)](this._tileset._root.transform),n=Cesium__namespace.Matrix4.getTranslation(i,new Cesium__namespace.Cartesian3),Cesium__namespace[a(Ie)](n)&&Cesium__namespace.Cartographic[a(3258)](n)?(this._orginCenterPosition=n,i=Cesium__namespace.Matrix4.getMatrix3(i,new Cesium__namespace.Matrix3),n=Cesium__namespace[a(Oe)].getMatrix3(Cesium__namespace.Transforms.eastNorthUpToFixedFrame(n),new Cesium__namespace[a(3915)]),e=Cesium__namespace.Matrix3.getColumn(n,0,new Cesium__namespace[a(Re)]),t=Cesium__namespace.Matrix3[a(He)](n,1,new Cesium__namespace.Cartesian3),n=Cesium__namespace.Matrix3.getColumn(n,2,new Cesium__namespace[a(784)]),i=Cesium__namespace.Matrix3[a(Fe)](i,0,new Cesium__namespace.Cartesian3),i=Cesium__namespace.Cartesian3.cross(i,n,i),i=Cesium__namespace.Cartesian3.cross(n,i,i),i=Cesium__namespace[a(784)].normalize(i,i),n=Cesium__namespace.Cartesian3.angleBetween(e,i),Cesium__namespace[a(784)].angleBetween(t,i)>.5*Math.PI&&(n=2*Math.PI-n),this.orginRotation={x:0,y:0,z:Number(Cesium__namespace.Math[a(Ne)](n)[a(3366)](1))}):this.transform=!1),this._orginCenterPoint=LngLatPoint.fromCartesian(this[a(3345)]),logInfo((this.name||"TilesetLayer")+a(Ge)+this._orginCenterPoint[a(1375)]()),null!=(e=Cesium__namespace[a(2890)])&&e.getCache&&null!=(t=Cesium__namespace.Mars3DEx[a(ze)](this.id))&&t.marsJzwStyle&&t.marsJzwStyle.setUniform(a(488),this[a(2799)]===Cesium__namespace[a(3199)].Z),Cesium__namespace[a(Be)](this[a(A)].style)&&(this.style=this[a(1592)][a(je)]),1!==this._opacity&&this.setOpacity(this._opacity),this._center=this._orginCenterPoint.clone(),this[a(629)](this.options[a(Ve)]),this[a(A)].chinaCRS&&(i=this.transformCenter(this.center),this._mergePostion(i)),this._hasUpdateMater()&&this.updateMatrix(),Cesium__namespace[a($e)](this.options[a(2941)])&&this.bindVisibleDistance(),this.options.clampToGround&&this[a(Ue)](),this[a(1592)].flyTo&&this.flyToByAnimationEnd(),this.fire(EventType.load,{tileset:this[a(3883)]})}},{key:"clampToGround",value:function(){var i=3159,a=O,n=this,s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1;this._map&&this._map.hasTerrain?getSurfaceTerrainHeight(this._map[a(3118)],this._orginCenterPosition)[a(Le)](function(e){var t=a;Cesium__namespace.defined(e[t(i)])&&(n.alt=e[t(3159)]-n[t(3286)].alt+s)}):this.alt=-this._orginCenterPoint[a(2993)]+s}},{key:"_hasUpdateMater",value:function(){var e=O;return!this[e(Ae)][e(2204)](this._orginCenterPoint)||!!this[e(E)].rotation||0<this[e(E)].scale&&1!==this.options.scale||!!Cesium__namespace.defined(this[e(1592)].axis)}},{key:"updateMatrix",value:function(){var e=O;if(this[e(fe)]){if(this.options[e(ye)])return s=this.options.updateMatrix(this.position,this),this._tileset[e(1436)]=s;if(!this[e(ve)])return this.updateMatrix2();var t,i,a,n,s=Cesium__namespace.Transforms.eastNorthUpToFixedFrame(this.position);if(this.options[e(ge)]&&(t=Cesium__namespace.Matrix3.fromRotationX(Cesium__namespace.Math.toRadians(this.rotation_x)),i=Cesium__namespace.Matrix3.fromRotationY(Cesium__namespace.Math.toRadians(this.rotation_y)),a=Cesium__namespace[e(3915)].fromRotationZ(Cesium__namespace[e(Ce)].toRadians(360-this[e(xe)])),t=Cesium__namespace.Matrix4.fromRotationTranslation(t),i=Cesium__namespace.Matrix4.fromRotationTranslation(i),a=Cesium__namespace.Matrix4[e(be)](a),Cesium__namespace[e(ke)][e(Pe)](s,t,s),Cesium__namespace.Matrix4.multiply(s,i,s),Cesium__namespace.Matrix4.multiply(s,a,s)),0<this[e(1592)][e(we)]&&1!==this[e(M)].scale&&Cesium__namespace.Matrix4.multiplyByUniformScale(s,this[e(M)].scale,s),Cesium__namespace.defined(this.options.axis)){if(isString(this.options.axis))switch(this[e(1592)].axis.toUpperCase()){case"Y_UP_TO_Z_UP":n=Cesium__namespace.Axis.Y_UP_TO_Z_UP;break;case"Z_UP_TO_Y_UP":n=Cesium__namespace.Axis.Z_UP_TO_Y_UP;break;case"X_UP_TO_Z_UP":n=Cesium__namespace.Axis[e(Se)];break;case e(2326):n=Cesium__namespace.Axis[e(Te)];break;case"X_UP_TO_Y_UP":n=Cesium__namespace.Axis.X_UP_TO_Y_UP;break;case e(Me):n=Cesium__namespace.Axis.Y_UP_TO_X_UP}else this.options.axis instanceof Cesium__namespace.Axis&&(n=this.options[e(3476)]);n&&(s=Cesium__namespace.Matrix4.multiplyTransformation(s,n,s))}return this[e(Ee)]._root.transform=s,this.fire(EventType[e(1026)],{position:this.position}),s}}},{key:"updateMatrix2",value:function(){var e,t,i=O;if(this._tileset&&this._tileset._root)return t=Cesium__namespace.Cartographic.fromCartesian(this[i(3883)].boundingSphere[i(1494)]),t=Cesium__namespace.Cartesian3.fromRadians(t.longitude,t[i(2360)],0),e=this.position,e=Cesium__namespace[i(784)].subtract(e,t,new Cesium__namespace.Cartesian3),t=Cesium__namespace.Matrix4.fromTranslation(e),this._tileset.modelMatrix=t,this.fire(EventType.updatePosition,{position:this[i(2532)]}),t}},{key:O(l),value:function(e){var t,i=O;return this.orginMatrix?(t=Cesium__namespace[i(T)].multiply(this._tileset._root.transform,this.orginMatrix,new Cesium__namespace[i(T)]),Cesium__namespace.Matrix4.multiplyByPoint(t,e,new Cesium__namespace[i(784)])):e}},{key:O(3860),value:function(e){var t=O;this.options[t(de)]?this.options.onSetOpacity(e):this._tileset&&(this._tileset.style=new Cesium__namespace.Cesium3DTileStyle({color:t(3751)+e+")"}))}},{key:"flyTo",value:function(){var i=O,a=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this._map?(this._map[i(oe)](),this.options.flyToOptions&&(n=_objectSpread2(_objectSpread2({},this.options.flyToOptions),n)),this.options[i(1494)]?this._map[i(le)](this.options[i(1494)],n):this.options.extent?this[i(ce)][i(he)](this.options.extent,n):this[i(ue)]&&this._tileset[i(_e)]?this._map.flyToPoint(this._tileset[i(pe)][i(1494)],_objectSpread2({radius:2*this._tileset.boundingSphere.radius,maxPitch:-45},n)):this[i(621)].then(function(e){var t=i;return a._map[t(me)](a[t(3883)].boundingSphere.center,_objectSpread2({radius:2*a._tileset.boundingSphere[t(402)],maxPitch:-45},n))})):Promise.resolve(!1)}},{key:"_toJsonEx",value:function(e){var t=O;this._tileset&&this.loadOk&&(e.position=this.center[t(ae)](),this[t(ne)]&&(e.planClip=this._tilesetPlanClip.toJSON()),this[t(1052)]&&(e[t(3803)]=this._tilesetClip.toJSON()),this._tilesetFlat&&(e.flat=this[t(se)][t(re)]()),this[t(S)])&&(e.flood=this[t(S)].toJSON())}},{key:"setProperties",value:function(i,e){var a=this;return this._idField=i,this._properties={},e.forEach(function(e){var t=e[i];a._properties[t]=e}),this._bindVisibleEvent(),this}},{key:"delProperties",value:function(t,e){var i=O,a=this;if(t&&e)return e.forEach(function(e){e=e[t];delete a._properties[e]}),this;delete this._properties,this._isBindTileVisible&&(this._tileset.tileVisible[i(te)](this[i(ie)],this),this._isBindTileVisible=!1)}},{key:"_bindVisibleEvent",value:function(){var e=O;this._isBindTileVisible||(this._tileset.tileVisible[e(3870)](this._updateTile,this),this[e(1904)]=!0)}},{key:O(c),value:function(e){for(var t=O,i=e[t(3085)],a=0;a<i.featuresLength;a++){var n,s=i.getFeature(a);this[t(w)]&&(n=s.getProperty(this._idField))&&this._setFeatureProperties(s,this[t(w)][n])}this.fire(EventType.update)}},{key:O(h),value:function(e,t){if(e&&t)for(var i in t){var a=t[i];e.hasProperty(i)&&e.getProperty(i)===a||e.setProperty(i,a)}}},{key:O(455),value:function(){var e,t=O,i=0,a=this[t(K)][t(ee)];for(e in a)i+=a[e].totalMemoryUsageInBytes/1024/1024;if(i>this._map.tilesetMaxTotalMemory)for(var n in a)a[n][t(2452)]()}},{key:"transformCenter",value:function(e){var t,i=O;return!!e&&(t=this._map.chinaCRS,!!(t=getTransFun(this.options[i(2119)],t)))&&{lng:(t=t([e.lng,e.lat]))[0],lat:t[1],alt:e[i(Q)]}}},{key:"bindVisibleDistance",value:function(){var e=O;this[e(X)].on(EventType[e(3439)],this.updateVisibleDistance,this)}},{key:O(u),value:function(){var e,t=O;this._show&&this._tileset&&this[t(3236)]&&this[t(J)].scene[t(2505)]===Cesium__namespace.SceneMode.SCENE3D&&(e=Cesium__namespace[t(784)][t(q)](this.position,this._map.camera.positionWC),this[t(Y)].show=e<this.options[t(Z)])}},{key:"_highlight_mouseEventHandler",value:function(e){var t,i=O,a=(this._map.closeHighlight(),e.pickedObject);a||this._highlightOptions.all?isFunction(this._highlightOptions[i(2899)])&&!1===this[i(2354)].filter(e)||isFunction(t=this.allowDrillPick)&&!0===t(e)||(this[i(3130)]={feature:a,event:e},this._map[i(U)](this,this[i(W)],e)):this._map.closeHighlight()}},{key:"openHighlight",value:function(e){var t=O,i=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],a=2<arguments.length?arguments[2]:void 0,i=(i&&(this._map.closeHighlight(),this._map.last_highlighGraphic=this),this[t(P)]=this._last_picked||{event:{layer:this}},a&&(this[t(H)].feature=a),e||this._highlightOptions);i&&(null==(a=this[t(3130)])||!a.feature||i.all||i.uniqueKey?(e=Cesium__namespace[t(3096)].fromCssColorString(i.color).toCssColorString(),i[t(B)]?(a=this._last_picked[t(3400)].getProperty(i[t(1919)]),this[t(3883)].style=new Cesium__namespace[t(j)]({color:{conditions:[["${"+i[t(1919)]+t(V)+a+"'",e]]}})):this._tileset.style=new Cesium__namespace[t(576)]({color:{conditions:[["true",e]]}}),this[t(2027)]=!0):(null!=(a=this._last_picked.feature)&&a.color&&i.color&&(this[t(F)][t(2035)]=a.color.clone(),isFunction(i.color)?a.color=getCesiumColor(i[t(2745)](null==(e=this._last_picked)?void 0:e.event)):a.color=getColorByStyle(i)),null!=a&&null!=(e=a.content)&&e._model&&i.model&&(this._last_picked[t(877)]=ModelStyleConver.toJSON(a[t(N)][t(G)]),ModelStyleConver[t(1672)](i[t(z)],a.content._model,!1))),this[t($)](EventType.highlightOpen,null==(e=this[t(3130)])?void 0:e.event,!0))}},{key:"closeHighlight",value:function(){var e,t,i=O;this._last_picked&&(this[i(2027)]?(this._highlightAll=!1,this[i(x)][i(2492)]=this.style):null!=(t=this._last_picked)&&t[i(3400)]&&(t=this._last_picked[i(b)],this[i(3130)].originalColor&&(t.color=this._last_picked.originalColor),null!=t)&&null!=(e=t.content)&&e[i(489)]&&this._last_picked.originalStyle&&ModelStyleConver.toCesiumVal(this._last_picked.originalStyle,t.content._model,!1),this._map._clearLastHighlight(),this[i(k)](EventType[i(952)],null==(e=this._last_picked)?void 0:e.event,!0),delete this[i(3130)])}},{key:O(_),value:function(){return!!this._popupConfig}},{key:"bindPopup",value:function(e,t){return this[O(1588)]={content:e,options:t,layer:this},this._bindControl(),this}},{key:"unbindPopup",value:function(){return this.closePopup(),this._popupConfig=null,this}},{key:"closePopup",value:function(){var e=O;return this._map&&this.hasPopup()&&this[e(3817)].popup.close(null,this),this}},{key:"_conventMarsOptions",value:function(){var e,t=O;null!=(e=Cesium__namespace[t(f)])&&e.getCacheOrAdd&&(this[t(y)].customShaders=this.id,e=Cesium__namespace[t(v)][t(3527)](this.id),this[t(g)]?e[t(2547)]=new Cesium__namespace[t(C)]({lightingModel:Cesium__namespace.LightingModel.UNLIT,uniforms:{u_gis3d_jzw_upz:{type:Cesium__namespace.UniformType.BOOL,value:!0}},fragmentShaderText:isString(this.marsJzwStyle)?this.marsJzwStyle:"\n void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material)\n {\n vec4 position = czm_inverseModelView * vec4(fsInput.attributes.positionEC,1); // 位置\n\n // 注意shader中写浮点数是,一定要带小数点,否则会报错,比如0需要写成0.0,1要写成1.0\n float _baseHeight = 0.0; // 物体的基础高度,需要修改成一个合适的建筑基础高度\n float _heightRange = 80.0; // 高亮的范围(_baseHeight ~ _baseHeight + _heightRange)\n float _glowRange = 100.0; // 光环的移动范围(高度)\n\n // 建筑基础色\n float mars_height = (u_gis3d_jzw_upz ? position.z : position.y) - _baseHeight;\n float mars_a11 = fract(czm_frameNumber / 120.0) * 3.14159265 * 2.0;\n float mars_a12 = mars_height / _heightRange + sin(mars_a11) * 0.1;\n\n material.diffuse = mix(material.diffuse, vec3(0.0, 0.0, 1.0), 0.5); // 颜色\n material.diffuse *= vec3(mars_a12);// 渐变\n\n // 动态光环\n float time = fract(czm_frameNumber / 360.0);\n time = abs(time - 0.5) * 2.0;\n float mars_h = clamp(mars_height / _glowRange, 0.0, 1.0);\n float mars_diff = step(0.005, abs(mars_h - time));\n material.diffuse += material.diffuse * (1.0 - mars_diff);\n } "}):delete e.marsJzwStyle)}},{key:"startEditing",value:function(){var e=O;if(this[e(678)]||!this.hasEdit)return this;if(this._enabledEdit=!0,!this[e(3817)])throw new Error("编辑时_map不能为空,请将对象添加到Map");this._map.mouseEvent.noPickEntity=this._entity,this._map.mouseEvent[e(1477)]=!1,this.editing||(this.editing=new EditTileset(this)),this.editing.activate&&this.editing.activate()}},{key:"stopEditing",value:function(){var e,t=O;if(!this._enabledEdit)return this;null!=(e=this[t(1970)])&&e.disable&&this.editing[t(p)](),this._map&&(this[t(3817)][t(1206)](),this._map[t(m)][t(d)]=null,this._map.mouseEvent[t(1477)]=!0),this._enabledEdit=!1}}]),R}(),OsmBuildingsLayer=(register$2("tileset",TilesetLayer),register$2(_0x1658de(1484),TilesetLayer),function(){var t=2026,i=(_inherits(a,TilesetLayer),_createSuper(a));function a(){var e=_0x236b;return _classCallCheck(this,a),i[e(t)](this,arguments)}return _createClass(a,[{key:"_createCesium3DTileset",value:function(){return Cesium__namespace.createOsmBuildings(this.options)}}]),a}()),I3SLayer=(register$2("osmBuildings",OsmBuildingsLayer),function(){var i=2890,a=3527,n=3675,s=4042,r=2547,o=1049,l=1592,c=1592,h=2309,t=3526,u=1010,_=3060,p=1592,m=2300,d=1997,f=1567,y=1592,v=3304,g=3383,C=3817,x=2242,b=2822,k=_0x1658de,P=(_inherits(w,BaseGraphicLayer),_createSuper(w));function w(){var e=0<arguments[_0x236b(b)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,w),(e=P.call(this,e))._marsOptions={},e}return _createClass(w,[{key:"layer",get:function(){return this._i3sProvider}},{key:k(2547),get:function(){return this.options.marsJzwStyle},set:function(e){var t=k;this[t(1592)].marsJzwStyle=e,this[t(x)]()}},{key:"_addedHook",value:function(){var e,i=k,a=this;_get(_getPrototypeOf(w.prototype),"_addedHook",this)[i(1567)](this),this._conventMarsOptions(),this[i(y)].geoidTiledTerrainProvider&&(e=this.options.geoidTiledTerrainProvider instanceof Cesium__namespace[i(v)]?this.options[i(2566)]:new Cesium__namespace.ArcGISTiledElevationTerrainProvider(this.options.geoidTiledTerrainProvider)),this._marsOptions._gis3d_layerId=this.id,this._i3sProvider=new Cesium__namespace.I3SDataProvider(_objectSpread2(_objectSpread2({},this.options),{},{url:getUrlResource(this.options),geoidTiledTerrainProvider:e,cesium3dTilesetOptions:_objectSpread2(_objectSpread2({},this.options),{},{marsOptions:this[i(3604)]})})),this[i(3383)][i(811)]=this.id,this.loadOk=!1,this[i(g)].readyPromise[i(2589)](function(e){var t=i;a.loadOk=!0,a._i3sProvider.show=a.show,a[t(3201)](),a[t(3787)].resolve(a)}).catch(function(e){var t;null!=(t=a._readyPromise)&&t.reject&&a._readyPromise.reject(e)}),this[i(C)][i(3118)].primitives.add(this[i(g)])}},{key:"_removedHook",value:function(){var e=k;_get(_getPrototypeOf(w.prototype),"_removedHook",this)[e(f)](this),this._i3sProvider&&(this._map.scene.primitives.remove(this._i3sProvider),delete this._i3sProvider)}},{key:"reload",value:function(){var e=k;this._removedHook(),this[e(563)]()}},{key:k(3201),value:function(){var e=k;this[e(1997)](EventType.loadBefore,{tileset:this._i3sProvider}),this[e(t)]=this._i3sProvider.extent,this._orginCenterPoint=LngLatPoint.fromCartographic(Cesium__namespace.Rectangle.center(this._extent)),this[e(3345)]=this[e(3286)].toCartesian(),logInfo((this.name||"I3SLayer")+e(u)+this._orginCenterPoint.toString()),this._center=this._orginCenterPoint[e(_)](),this[e(p)].flyTo&&this[e(m)](),this[e(d)](EventType.load,{provider:this._i3sProvider,layers:this._i3sProvider[e(688)]})}},{key:"flyTo",value:function(){var e=k,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this._map?(this._map.cancelFlyTo(),this[e(1592)][e(3850)]&&(t=_objectSpread2(_objectSpread2({},this.options.flyToOptions),t)),this[e(l)].center?this[e(3817)].setCameraView(this.options.center,t):this[e(c)].extent?this._map[e(h)](this[e(1592)].extent,t):this._center?this._map.flyToPoint(this._center,_objectSpread2({maxPitch:-45},t)):void 0):Promise[e(o)](!1)}},{key:"_conventMarsOptions",value:function(){var e,t=k;null!=(e=Cesium__namespace.Mars3DEx)&&e[t(3527)]&&(this._marsOptions.customShaders=this.id,e=Cesium__namespace[t(i)][t(a)](this.id),this.marsJzwStyle?e.marsJzwStyle=new Cesium__namespace[t(n)]({lightingModel:Cesium__namespace[t(s)].UNLIT,uniforms:{u_gis3d_jzw_upz:{type:Cesium__namespace.UniformType.BOOL,value:!1}},fragmentShaderText:isString(this.marsJzwStyle)?this[t(r)]:"\n void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material)\n {\n vec4 position = czm_inverseModelView * vec4(fsInput.attributes.positionEC,1); // 位置\n\n // 注意shader中写浮点数是,一定要带小数点,否则会报错,比如0需要写成0.0,1要写成1.0\n float _baseHeight = 0.0; // 物体的基础高度,需要修改成一个合适的建筑基础高度\n float _heightRange = 80.0; // 高亮的范围(_baseHeight ~ _baseHeight + _heightRange)\n float _glowRange = 100.0; // 光环的移动范围(高度)\n\n // 建筑基础色\n float mars_height = (u_gis3d_jzw_upz ? position.z : position.y) - _baseHeight;\n float mars_a11 = fract(czm_frameNumber / 120.0) * 3.14159265 * 2.0;\n float mars_a12 = mars_height / _heightRange + sin(mars_a11) * 0.1;\n\n material.diffuse = mix(material.diffuse, vec3(0.0, 0.0, 1.0), 0.5); // 颜色\n material.diffuse *= vec3(mars_a12);// 渐变\n\n // 动态光环\n float time = fract(czm_frameNumber / 360.0);\n time = abs(time - 0.5) * 2.0;\n float mars_h = clamp(mars_height / _glowRange, 0.0, 1.0);\n float mars_diff = step(0.005, abs(mars_h - time));\n material.diffuse += material.diffuse * (1.0 - mars_diff);\n } "}):delete e.marsJzwStyle)}}]),w}()),mins=(register$2(_0x1658de(3187),I3SLayer),[Cesium__namespace[_0x1658de(1124)].toRadians(.05),Cesium__namespace.Math.toRadians(.1),Cesium__namespace[_0x1658de(1124)].toRadians(.2),Cesium__namespace.Math[_0x1658de(2581)](.5),Cesium__namespace[_0x1658de(1124)].toRadians(1),Cesium__namespace.Math.toRadians(2),Cesium__namespace.Math[_0x1658de(2581)](5),Cesium__namespace.Math.toRadians(10)]);function gridPrecision(e){return e<.01?2:e<.1?1:0}function GraticuleProvider(e){var t=1365,i=3774,a=3113,n=3532,s=2144,r=3252,o=1723,l=2544,c=2500,h=_0x1658de,t=(this[h(1592)]=e,this._tilingScheme=e[h(t)]||new Cesium__namespace.GeographicTilingScheme,this._tileWidth=e.tileWidth||256,this._tileHeight=e.tileHeight||256,this._ready=!0,this[h(2996)]=e[h(3298)]||!1,this._numLines=e[h(i)]||50,this._scene=e.scene,this._ellipsoid=this._scene.globe[h(a)],this._labels=new Cesium__namespace[h(2600)],this._scene.primitives.add(this[h(n)]),this[h(471)]=new Cesium__namespace.PolylineCollection,this._scene[h(s)].add(this[h(471)]),document.createElement(h(r))),u=(t[h(696)]=256,t.height=256,this._canvas=t,this);this._scene[h(2018)].moveEnd.addEventListener(function(){var e=h;u[e(l)]&&(u[e(471)].removeAll(),u._labels.removeAll(),u[e(c)]=null,u._drawGrid(u._getExtentView()))}),this[h(o)].imageryLayers.addImageryProvider(this)}Object[_0x1658de(1903)](GraticuleProvider.prototype,{url:{get:function(){}},proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){return 18}},minimumLevel:{get:function(){return 0}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){var e=_0x1658de;return this[e(3358)][e(3222)]}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return this._ready}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!0}}}),GraticuleProvider.prototype.makeLabel=function(e,t,i,a,n){var s=812,r=2629,o=_0x1658de,a=LabelStyleConver.toCesiumVal(this.options[o(2627)]||{},{style:Cesium__namespace.LabelStyle.FILL_AND_OUTLINE,fillColor:Cesium__namespace.Color.AZURE,outlineColor:Cesium__namespace.Color.BLACK,outlineWidth:2,pixelOffset:new Cesium__namespace.Cartesian2(5,a?5:-5),eyeOffset:Cesium__namespace[o(784)].ZERO,horizontalOrigin:Cesium__namespace.HorizontalOrigin.LEFT,verticalOrigin:a?Cesium__namespace.VerticalOrigin[o(s)]:Cesium__namespace[o(r)].TOP,scale:1});a.position=this._ellipsoid[o(3012)](new Cesium__namespace.Cartographic(e,t,10)),a.text=i,this._labels.add(a)},GraticuleProvider.prototype._drawGrid=function(e){var t=2500,i=471,a=2822,n=4025,s=3566,r=3264,o=2992,l=2311,c=2581,h=1018,u=3428,_=3605,p=1669,m=_0x1658de;if(!this[m(t)]||!this._currentExtent.equals(e)){this[m(t)]=e,this[m(i)].removeAll(),this._labels.removeAll();for(var d=0,f=0,y=0;y<mins[m(2822)]&&d<(e.north-e[m(3566)])/10;y++)d=mins[y];for(y=0;y<mins[m(a)]&&f<(e.east-e.west)/10;y++)f=mins[y];var v=(e.west<0?Math.ceil(e[m(n)]/f):Math.floor(e.west/f))*f,g=(e.south<0?Math.ceil(e[m(s)]/d):Math[m(r)](e.south/d))*d,C=(e[m(2049)]<0?Math.ceil(e[m(2049)]/d):Math[m(3264)](e.east/d))*d,x=(e.north<0?Math.ceil(e[m(o)]/f):Math.floor(e.north/f))*f,v=Math.max(v-2*f,-Math.PI),C=Math.min(C+2*f,Math.PI),g=Math[m(1245)](g-2*d,-Math.PI/2),x=Math.min(x+2*f,Math.PI/2),b=this[m(l)],k=Cesium__namespace[m(1124)][m(c)](1),P=g+Math.floor((x-g)/d/2)*d;for(A=v;A<C;A+=f){for(var w=[],S=g;S<x;S+=k)w.push(new Cesium__namespace[m(3428)](A,S));w[m(h)](new Cesium__namespace.Cartographic(A,x)),this._polylines.add(PolylineStyleConver.toCesiumVal(this.options.lineStyle||{},{positions:b.cartographicArrayToCartesianArray(w),width:1}));var T=Cesium__namespace.Math[m(1604)](A);this[m(1669)](A,P,this._sexagesimal?this._decToSex(T):T.toFixed(gridPrecision(f)),!1)}var M=v+Math.floor((C-v)/f/2)*f;for(S=g;S<x;S+=d){for(var E=[],A=v;A<C;A+=k)E.push(new Cesium__namespace[m(3428)](A,S));E.push(new Cesium__namespace[m(u)](C,S)),this._polylines[m(_)](PolylineStyleConver.toCesiumVal(this.options[m(847)]||{},{positions:b.cartographicArrayToCartesianArray(E),width:1}));var L=Cesium__namespace.Math.toDegrees(S);this[m(p)](M,S,this._sexagesimal?this._decToSex(L):L.toFixed(gridPrecision(d)),!0)}}},GraticuleProvider.prototype.requestImage=function(e,t,i){var a=this;return new Promise(function(e,t){var i=_0x236b;a._show&&a._drawGrid(a._getExtentView()),e(a[i(3108)])})},GraticuleProvider.prototype.setVisible=function(e){var t=471,i=_0x1658de;(this[i(2544)]=e)?(this._currentExtent=null,this._drawGrid(this._getExtentView())):(this[i(t)].removeAll(),this._labels.removeAll())},GraticuleProvider.prototype[_0x1658de(3217)]=function(){return this[_0x1658de(2544)]},GraticuleProvider.prototype._decToSex=function(e){var t=_0x1658de,i=Math[t(3264)](e),e=(60*(Math.abs(e)-i)).toFixed(2);return"60.00"===e&&(i+=1,e="0.00"),[i,":",e][t(2280)]("")},GraticuleProvider.prototype._getExtentView=function(){for(var e=2638,t=2311,i=696,a=2036,n=2036,s=653,r=_0x1658de,o=this[r(1723)].camera,l=this._scene.canvas,c=[o.pickEllipsoid(new Cesium__namespace[r(2638)](0,0),this._ellipsoid),o.pickEllipsoid(new Cesium__namespace[r(e)](l.width,0),this[r(t)]),o.pickEllipsoid(new Cesium__namespace.Cartesian2(0,l[r(3159)]),this[r(2311)]),o.pickEllipsoid(new Cesium__namespace.Cartesian2(l[r(i)],l.height),this[r(2311)])],h=0;h<4;h++)if(void 0===c[h])return Cesium__namespace[r(a)].MAX_VALUE;return Cesium__namespace[r(n)].fromCartographicArray(this._ellipsoid[r(s)](c))};var GraticuleLayer=function(){var t=3817,i=1592,a=1041,n=_0x1658de,e=(_inherits(s,BaseLayer),_createSuper(s));function s(){return _classCallCheck(this,s),e.apply(this,arguments)}return _createClass(s,[{key:"layer",get:function(){return this._graticuleProvider}},{key:n(1594),value:function(e){var t=n;this._graticuleProvider&&this[t(a)].setVisible(e)}},{key:"_mountedHook",value:function(){var e=n;this[e(1041)]=new GraticuleProvider(_objectSpread2({scene:this[e(t)][e(3118)],numLines:10},this[e(i)]))}},{key:"_addedHook",value:function(){this._graticuleProvider.setVisible(!0)}},{key:"_removedHook",value:function(){this._graticuleProvider.setVisible(!1)}}]),s}(),LodGraphicLayer=(register$2(_0x1658de(3669),GraticuleLayer),function(){var t=1404,a=2582,i=1592,n=3291,o=1812,l=3229,u=2822,_=1018,p=3229,m=441,d=1812,f=1997,s=1592,r=570,c=2071,h=2485,y=3344,e=2385,v=1567,g=2474,C=1744,x=640,b=1488,k=_0x1658de,P=(_inherits(w,GraphicLayer),_createSuper(w));function w(){var i=2471,a=_0x236b,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,w),e=P.call(this,e),isMars3DCesium||logError$1("该功能需要引入gis3d修改版Cesium库(cesium库)才支持!",_assertThisInitialized(e)),e.options.debuggerTileInfo&&e[a(476)](function(e){var t=a;return((null==e||null==(e=e.graphic)?void 0:e.gridList)||[]).join(t(i))}),e._cacheGrid={},e._cacheGraphic={},e}return _createClass(w,[{key:k(2689),get:function(){for(var e in this._cacheGrid){e=this._cacheGrid[e];if(e&&e.grid&&e.isLoading)return!0}return!1}},{key:k(1594),value:function(e){var t=k;_get(_getPrototypeOf(w.prototype),t(1594),this).call(this,e),this._tileLayer&&(this._tileLayer.show=e)}},{key:"_mountedHook",value:function(){var e=k,t=this,i=(_get(_getPrototypeOf(w.prototype),e(C),this).call(this),_objectSpread2(_objectSpread2({},this.options),{},{private:!0}));delete i.id,delete i[e(x)],delete i.url,delete i[e(b)],this[e(2474)]=new EmptyTileLayer(i),this[e(2474)][e(621)].then(function(){t._readyPromise.resolve(t)})}},{key:"_addedHook",value:function(){var i=k,a=this,n=(_get(_getPrototypeOf(w[i(e)]),"_addedHook",this)[i(v)](this),this[i(g)].on(EventType.addTile,this._tileLayer_addTileHandler,this),this._tileLayer.on(EventType[i(1558)],this._tileLayer_removeTileHandler,this),this._map);Promise[i(1302)]([new Promise(function(a,e){n.on(EventType.tileLoadProgress,function e(t){var i=_0x236b;0===t&&(n.off(EventType[i(950)],e),a(!0))})}),this._map.terrainProvider.readyPromise]).then(function(e){var t=i;a._map[t(1313)](a._tileLayer)})}},{key:k(2071),value:function(){var e=k;_get(_getPrototypeOf(w.prototype),e(c),this)[e(1567)](this),this[e(2474)].off(EventType[e(1698)],this[e(h)],this),this[e(2474)].off(EventType.removeTile,this[e(y)],this),this[e(3817)].removeLayer(this._tileLayer),this.clear()}},{key:k(2439),value:function(e){return e.level+"_x"+e.x+"_y"+e.y}},{key:"checkHasBreak",value:function(e){return!this[k(4045)]||!this._cacheGrid[e]}},{key:"_tileLayer_addTileHandler",value:function(e){var t,i=k,a=this;this._tileLayer.isInRange(e[i(1461)])&&(t=this.getGridKey(e),e.key=t,this._cacheGrid[t]={grid:e,isLoading:!0},this.queryGridData(e).then(function(e){var t=i;a[t(4045)]&&a[t(r)](e)}))}},{key:k(591),value:function(e){var t=k;return e.id||((e="Feature"===e[t(1488)]?e.properties:e)[this.options[t(1597)]]?e[this[t(s)].IdField]:null)}},{key:"_showData",value:function(e){var t=k,i=e[t(741)],a=e.key;if(!this.checkHasBreak[a]){for(var n=[],s=[],r=0,o=i[t(u)];r<o;r++){var l=i[r],c=this[t(591)](l),h=(c||logWarn("LodGraphicLayer: 数据的ID识别失败",l),this._cacheGraphic[c]);if(h)h[t(2806)][t(_)](a),this[t(3577)](h,l);else{h=this[t(2582)](e,l);if(!h)continue;h.gridList=[a],this[t(p)][c]=h,s.push(h)}n.push(c)}this[t(m)][a]=this._cacheGrid[a]||{},this[t(441)][a][t(d)]=n,this._cacheGrid[a].isLoading=!1,this[t(f)](EventType.update,{graphics:s})}}},{key:k(3344),value:function(e){var t=k;if(this._tileLayer.isAllOutRange(e.level))this.clear();else{var i=this.getGridKey(e),a=this._cacheGrid[i];if(a){if(a.ids)for(var n=0;n<a.ids.length;n++){var s=a[t(o)][n],r=this[t(l)][s];r&&(removeArrayItem(r.gridList,i),0===r.gridList.length)&&(this.removeGraphic(r),delete this._cacheGraphic[s])}delete this[t(441)][i]}}}},{key:k(3291),value:function(e){var t=k;if(this[t(i)][t(n)])return this.options[t(3291)](e)}},{key:"createGraphic",value:function(e,t){var i=k;return this.options[i(a)]?this.options.createGraphic(e,t):null}},{key:"updateGraphic",value:function(e,t){this.options.updateGraphic&&this.options.updateGraphic(e,t)}},{key:"clear",value:function(e){var t=k;_get(_getPrototypeOf(w.prototype),"clear",this).call(this,e),this._cacheGraphic={},this[t(441)]={}}},{key:k(1158),value:function(){var e=k;this[e(t)](!0),this._tileLayer&&this[e(2474)].reload()}},{key:k(2586),value:function(e,t){var i=k;_get(_getPrototypeOf(w.prototype),i(2586),this).call(this,e,t),this.clear(!0),this._tileLayer&&(delete(i=_objectSpread2(_objectSpread2({},t),{},{private:!0})).id,delete i.name,delete i.url,delete i.type,this._tileLayer.setOptions(i))}},{key:k(1537),value:function(e){}}]),w}()),GeodePoiLayer=(register$2(_0x1658de(407),LodGraphicLayer),function(){var r=4031,o=613,l=1592,a=1447,n=2706,s=3982,u=_0x1658de,t=(_inherits(c,LodGraphicLayer),_createSuper(c));function c(){var i=1323,a=855,n=460,s=_0x236b,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,c),(e=t.call(this,e))[s(340)]=0,e[s(2302)]=e[s(1592)].key||gaodeArr,e.bindPopup(function(e){var t=s,e=null==e||null==(e=e.graphic)?void 0:e[t(1740)];if(e)return"<div>名称:"+e.name+t(460)+t(3707)+e.address+"</div><div>区域:"+e[t(2155)]+e[t(i)]+e[t(a)]+t(n)+"<div>类别:"+e.type+"</div>"},{anchor:[0,-10]}),e}return _createClass(c,[{key:u(3982),get:function(){var e=u,t=this._key_index++%this._keys.length;return this[e(2302)][t]}},{key:u(3291),value:function(l){var t=u,c=this,e=wgs2gcj([l.extent[t(a)],l.extent.ymax]),i=wgs2gcj([l.extent.xmax,l.extent.ymin]),e=e[0]+","+e[1]+"|"+i[0]+","+i[1],h=this[t(1592)].filter||{};return h.output=t(n),h[t(s)]=this.key,h.polygon=e,h.offset||(h[t(767)]=25),h[t(3878)]||(h[t(3878)]="120000|130000|190000"),new Promise(function(i,e){var a=873,n=3250,s=741,r=3502,o=t;fetchJson(_objectSpread2(_objectSpread2({url:o(3613)},c.options),{},{queryParameters:h,proxy:c[o(408)]})).then(function(e){var t=o;e.infocode!==t(a)?(logError$1(t(n),e),l.list=[]):l[t(s)]=e[t(r)],i(l)})})}},{key:"createGraphic",value:function(e,t){var i,a=u,n=gcj2wgs(t.location[a(r)](",")),s=getSymbolStyle(this[a(1592)].symbol,t);return s.clampToGround=null==(i=s[a(1614)])||i,i=null!=(i=this.options.clustering)&&i.enabled?s.image?new BillboardEntity({position:[n[0],n[1],this[a(1592)].height||0],style:s,attr:t}):new PointEntity({position:[n[0],n[1],this.options.height||0],style:s,attr:t}):s[a(o)]?new BillboardPrimitive({position:[n[0],n[1],this[a(l)].height||0],style:s,attr:t}):new PointPrimitive({position:[n[0],n[1],this[a(1592)].height||0],style:s,attr:t}),this.addGraphic(i),i}}]),c}()),WfsLayer=(register$2(_0x1658de(841),GeodePoiLayer),function(){var e=1744,t=1354,h=1199,u=1592,_=2022,p=3727,m=3385,d=4048,f=867,y=1592,v=2274,g=3638,C=1592,x=3688,a=924,n=1962,l=2166,c=2072,b=2022,k=1447,P=1592,w=2474,s=4005,r=408,i=1592,S=_0x1658de,o=(_inherits(T,LodGraphicLayer),_createSuper(T));function T(){return _classCallCheck(this,T),o.apply(this,arguments)}return _createClass(T,[{key:S(e),value:function(){var e=S;this[e(i)].geometryName=this.options.geometryName||"the_geom",_get(_getPrototypeOf(T[e(2385)]),"_mountedHook",this).call(this),Cesium__namespace.defaultValue(this[e(1592)].getCapabilities,!0)&&this[e(3829)](),this.fire(EventType[e(4070)])}},{key:S(3829),value:function(){var i=1636,a=S,n=this,e={service:a(s),request:"GetCapabilities",version:a(4048)},t=this.options.url;this.options.templateValues&&(t=template(t,this[a(1592)].templateValues)),Cesium__namespace[a(714)].fetchXML(_objectSpread2(_objectSpread2({},this.options),{},{url:t,queryParameters:e,proxy:this[a(r)]})).then(function(e){var t=a;if(e&&!n.isDestroy){n[t(i)]=e;try{n._initByMetaData(e)}catch(e){logInfo("解析GetCapabilities出错",e)}n[t(1997)](EventType.loadConfig,{capabilities:e})}})[a(3718)](function(e){logInfo("wfs请求GetCapabilities出错",e)})}},{key:S(t),value:function(e){for(var t=S,i=this._readChildNode(e,"FeatureTypeList").getElementsByTagName("FeatureType"),a=0,n=i.length;a<n;a++){var s=i[a];if(this[t(1152)](s,t(l))===this.options[t(3385)]){var r,o=this._readChildNodeVal(s,t(c)),o=(!this.options[t(2022)]&&o&&(this[t(1592)].crs=o),this._readChildNode(s,"LatLongBoundingBox"));!this[t(1592)][t(3222)]&&o&&(s={xmin:Number(o.getAttribute("minx")),ymin:Number(o.getAttribute("miny")),xmax:Number(o[t(3985)]("maxx")),ymax:Number(o.getAttribute("maxy"))},this.options.crs!==CRS.EPSG4326&&this[t(1592)][t(b)]!==CRS.EPSG4490&&(o=proj4Trans([s[t(k)],s[t(3727)]],this.options.crs),r=proj4Trans([s.xmax,s.ymax],this[t(P)].crs),s={xmin:o[0],ymin:o[1],xmax:r[0],ymax:r[1]}),this.options[t(1561)]=s,this._rectangle=Cesium__namespace.Rectangle.fromDegrees(s[t(1447)],s.ymin,s[t(2535)],s.ymax),this[t(2474)]&&(this[t(w)].rectangle=this._rectangle),this.options.flyTo)&&this.flyToByAnimationEnd();break}}}},{key:"_readChildNode",value:function(e,t){var i=S,e=e.getElementsByTagName(t);return 0<e[i(2822)]?e[0]:null}},{key:"_readChildNodeVal",value:function(e,t){var i=S,e=this[i(a)](e,t);return null!=e&&e[i(n)]?e.innerHTML:null!=e&&e[i(1789)]?e.getInnerHTML():null}},{key:"queryGridData",value:function(a){var e,t,i,n=3718,s=S,r=this,o=(i=this.options.crs!==CRS[s(h)]&&this[s(u)].crs!==CRS[s(1759)]?(e=proj4Trans([a.extent.xmin,a.extent.ymin],s(1159),this.options.crs),t=proj4Trans([a.extent.xmax,a.extent.ymax],s(1159),this.options[s(_)]),e[0]+","+e[1]+","+t[0]+","+t[1]):a.extent.xmin+","+a.extent[s(p)]+","+a.extent[s(2535)]+","+a.extent.ymax,{service:s(4005),request:"GetFeature",typeName:this.options[s(m)]||this[s(u)].typeName,version:s(d),outputFormat:s(f),srsName:this.options.crs||s(1159),bbox:i});if(Cesium__namespace[s(3277)](this[s(y)].parameters))for(var l in this.options[s(v)])l.toLowerCase()===s(g)?(delete o[s(1967)],o[l]=this.options[s(2274)][l]+" and BBOX("+this.options.geometryName+", "+i+")"):o[l]=this.options.parameters[l];var c=this[s(C)].url;return this.options[s(3688)]&&(c=template(c,this.options[s(x)])),new Promise(function(t,e){var i=s;fetchJson(_objectSpread2(_objectSpread2({},r.options),{},{url:c,queryParameters:o,proxy:r._proxy}))[i(2589)](function(e){a.list=[],r._show&&r._cacheGrid[a.key]&&void 0!==e&&null!=e&&("Feature"===e.type&&(e={type:"FeatureCollection",features:[e]}),a.list=e.features),t(a)})[i(n)](function(e){logError$1("wfs请求GetFeature出错",e)})})}},{key:"createGraphic",value:function(e,t){t=this.loadGeoJSON(t,{clear:!1,flyTo:!1});return 0<(null==t?void 0:t.length)?t[0]:null}}]),T}()),ArcGisWfsLayer=(register$2(_0x1658de(3331),WfsLayer),function(){var a=2582,i=1488,e=2822,h=1592,u=2196,_=2706,p=3755,m=1561,d=2131,f=1388,n=1561,s=1592,r=1592,o=1592,l=3727,c=2535,y=2535,v=406,g=1592,C=2392,x=2937,b=1997,k=_0x1658de,t=(_inherits(P,LodGraphicLayer),_createSuper(P));function P(){var e=_0x236b;return _classCallCheck(this,P),t[e(2026)](this,arguments)}return _createClass(P,[{key:"_mountedHook",value:function(){var e=_0x236b;_get(_getPrototypeOf(P.prototype),e(1744),this).call(this),this[e(3829)]()}},{key:"getMetadata",value:function(){var i=_0x236b,a=this,e=this.options.url,t=(this[i(g)].layers&&0<this.options.layers.length&&(e+="/"+this.options.layers[0]),{f:"json"});this.options.token&&(t[i(C)]=this.options.token),sendAjax(_objectSpread2(_objectSpread2({},this.options),{},{url:e,queryParameters:t,proxy:this[i(408)]})).then(function(e){var t=i;e&&!a[t(x)]&&(a._initByMetaData(e),a[t(b)](EventType[t(3656)],e))}).catch(function(e){logInfo("wfs请求getMetadata出错",e)})}},{key:"_initByMetaData",value:function(e){var t,i,a=_0x236b,e=(this[a(456)]=e).fullExtent||e[a(n)];!this[a(1592)].rectangle&&e&&((i=(null==(i=e)||null==(i=i[a(1800)])?void 0:i.wkid)||this[a(1592)].wkid)&&!this[a(s)].wkid&&(this[a(r)].wkid=i),this.options.wkid)&&((i="EPSG:"+this[a(o)].wkid)!==CRS[a(1199)]&&i!==CRS.EPSG4490&&(t=proj4Trans([e.xmin,e[a(l)]],i),i=proj4Trans([e[a(c)],e.ymax],i),e={xmin:t[0],ymin:t[1],xmax:i[0],ymax:i[1]}),this.options.extent=e,this._rectangle=Cesium__namespace.Rectangle.fromDegrees(e.xmin,e.ymin,e[a(y)],e.ymax),this._tileLayer&&(this._tileLayer.rectangle=this._rectangle),this.options[a(v)])&&this.flyToByAnimationEnd()}},{key:"queryGridData",value:function(n){var s=1196,r=1504,t=_0x236b,o=this,l=this.options.url,c=(this[t(1592)][t(2196)]&&0<this.options.layers[t(e)]&&(l+="/"+this[t(h)][t(u)][0]),{f:this.options.f||t(_),inSr:4326,outSR:4326,outFields:"*",returnGeometry:!0,where:this.options.where||"1=1",geometry:JSON[t(p)]({xmin:n[t(m)].xmin,ymin:n.extent.ymin,xmax:n[t(1561)][t(2535)],ymax:n[t(m)][t(d)],spatialReference:{wkid:4326}}),geometryType:t(f),spatialRel:"esriSpatialRelIntersects"});return this[t(1592)].token&&(c.token=this.options.token),new Promise(function(i,e){var a=t;sendAjax(_objectSpread2(_objectSpread2({},o.options),{},{url:l+"/query",queryParameters:c,proxy:o._proxy}))[a(2589)](function(e){var t=a;n[t(741)]=[],o.show&&o._cacheGrid[n.key]&&void 0!==e&&null!=e&&((e=arcgisToGeoJSON$1(e)).type===t(s)&&(e={type:"FeatureCollection",features:[e]}),n.list=e[t(r)]),i(n)}).catch(function(e){logError$1("wfs请求出错",e)})})}},{key:"_getItemDataId",value:function(e){var t=_0x236b;if(e.id)return e.id;if((e="Feature"===e[t(i)]?e.properties:e)[this.options.IdField])return e[this.options[t(1597)]];if(e.OBJECTID)return e.OBJECTID;if(e.objectid)return e[t(3930)];if(0<(null==(t=this.metaData)||null==(t=t.fields)?void 0:t.length)){t=this.metaData.fields[0].name;if(e[t])return e[t]}return null}},{key:"createGraphic",value:function(e,t){var i=_0x236b;return this.options.createGraphic?this.options[i(a)](e,t):0<(null==(i=this.loadGeoJSON(t,{clear:!1,flyTo:!1}))?void 0:i.length)?i[0]:null}},{key:k(3761),value:function(e){var t=k;this.options.where=e,this[t(1158)]()}}]),P}());function _0xa195(){var e=["_videoPlay","Close bloom","_events","_textureTarget","_createFramebuffer","citylimit","COLUMN0ROW2","setOpacity","kml","_zoomFactor","requestVertexNormals","lblAddFun","entity","特效效果","rome","场景出图_","rightWC","addEventListener","Fischer 1968","Stereographic_South_Pole","normalZ","circular_clone_topPoints","getLayer","VRTheWorldTerrainProvider","LEFT_DRAG","types","angle","addOuter","webrd","datum_params","_tileset","move","_moveStep","IDENTITY","X_UP_TO_Z_UP","perPositionHeight","qs2","accuracy","showThroughEllipsoid","stopEditing","_onKeyUp","false_northing","_lightPositionEC","limit","ows:Identifier","_highlight_mouseOutHandler","PixelDatatype","MathDistance","_标记矩形","ch1903","target","_boundingSphereWC","_labelCollection","addTileSuccess","createElementNS","units","depthFail","_createDivGraphic","UNIT_Y","positionShow","_removeMeasureLabelAndEx","mapSplit","Matrix3","wrapT","bindPickId","arcType","convertor","html","fromGeometry","message","_cloudCollection","min","fromQuaternion","GoogleEarthEnterpriseTerrainProvider","_allowDrillPick","getOutlineCoordinates","_eventParents","objectid","_gis3d_config","toolbar","fov","_onMap_leftUp","mouseout","_gltfUpAxis","showSectorSegmentLines","_scanePlaneSP","userAgent","_shadowMapMatrix","Equidistant_Cylindrical","_orbitIsLook","baseLayerPicker","fa fa-minus","points","查看当前视角",");\n}\n","無法刪除,點數量不能少于","FrustumGeometry","Polygon","s45","_postProcessStage","_originalreflectorWorldPosition","Lambert_Azimuthal_Equal_Area","colorHidden","loop","clockTick","updateOutlinesDistanceDisplayCondition","_radius","_map_timeTik","fi0","intersectionWidth","asin","invertColor","SCENE3D","_viewer","addAll","requestWaterMask","tile","velocity","_computeModelMatrix","_reflectorProjectionMatrix","_container_outer","context","HeadingPitchRoll","_containerBtnStart","font_family","_reflectorWorldPosition","_createGraphic","defer","SurfacePoint: 请传入scene参数","key","getControl","_initByPosition","getAttribute","GetFeature","tilt","_hash","AZURE","highlightOpen","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","ZERO_TOLERANCE","_setPositionsToCallback","classificationType","fschr68","depthBias","lookAtTransform","substring","_filterPOIData_circle","_pageIndex","private","_primitive1","evenColor","frequency","WFS","editType","destroy异常","_enableDebugWireframe","Firefox","_toOneCesiumVal_Poly","__created","_measured","_createPostProcessStage","_bindHeightDraggers","Oblique_Stereographic","px;\n background-color: ","_setInsertIndex","closeAll","_entity_label","横坐标","new_intl","dhEvent","INITIALIZED","maximumLevel","west","112FKICMr","terrainChange","_updatePrimitiveForColorMaterial","unproject","off","split","constructor","修改宽度(Y方向)","dataSources","_position_show","queryPolygon","_setFeatureProperties","extrudedHeight","http://api.tianditu.gov.cn/geocoder","district","showLateralSurfaces","LightingModel","updateAndExecuteCommands","destroyCommands","show","挖地坐标数据存在问题!","getArrowBodyPoints","1.0.0","_rightLayer","pixelOffsetX","sweep","_drawRemovePointHandler","cosX0","multiply","pixelStorei","snowCover","_currentFrustum","查看當前視角","graphicOptions","lightColor","_customShadersKey","addTo","哥伦布2.5D视图","moveCamera","_关闭泛光","_hasLoad","BlurComposite","_rotateMouseMoveFunction","neutral","load","remove","tiles","_mouseUpHandle","_smallTooltip","退出VR模式","pauseTime","_sources3","FLAT_VERTEX_FORMAT","iphone","results","digVolume","debugExtent","OBLIQ","aspectRatio","distanceDisplayCondition_near","RGB","splice","TEXTURE0","_divWidth","_enabledMoveTarget","RectangleGeometryLibrary","tileLoad","_开启大气渲染","_hasEditScale","Hotine_Oblique_Mercator","cacheTime","activeAnimations","billboardStyleConver","function","sampleTerrainMostDetailed","plane_distance","_updateVirtualCamera","當前視角信息","v_pole_n","RadarWave","appendChild","_sources","fromPositions","_rotationAngle","setView","depth","_index","_properties","C_im","skyAtmosphere","hasAlphaChannel","平移视图","from","_moveDelayTik","createBlackAndWhiteStage","_wkid","entityCollection","radii_y","AREA_0","parse","_primitive3","_menuObj","ReplaceUrl","pickPosition","activate","planeC","EPSG:4519","_key_index","_child","pixelOffsetY","MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters","uniform sampler2D image;\nuniform float opacity;\nuniform vec4 color;\nuniform float globalAlpha;\nuniform bool flipx;\nuniform bool flipy;\nuniform bool noWhite;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n if(flipx){\n st.x = st.x + (0.5 - st.x) * 2.0;\n }\n if(flipy){\n st.y = st.y + (0.5 - st.y) * 2.0;\n }\n\n vec4 colorImage;\n if(speed != 0.0)\n colorImage = texture(image, vec2(fract(st.s + czm_frameNumber * speed / 1000.0), fract(st.t)));\n else\n colorImage = texture(image, st);\n\n if(noWhite && colorImage.rgb == vec3(1.0)) {\n discard;\n }\n material.alpha = colorImage.a * opacity * color.a * globalAlpha;\n material.diffuse = colorImage.rgb * color.rgb;\n return material;\n}\n","result","imageryProviderViewModels","_waterPlane","fromGltf","getLangText","terrainLoadSuccess","rectangles","currentTime","getElementsByClassName","lines","disTerrainScale","_mScale","infocode","_pitch_max","_addedBaseHook","_noMousePick","sidesDashLength","rightPoints","stopMoveBackward",'\n </button>\n <button id="btn-clockAnimate-now" class="gis3d-clockAnimate-btn" title="返回到当前时间" >\n <svg width="20" height="20" style="margin-top: 5px;" viewBox="0 0 48 58" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect width="48" height="48" fill="white" fill-opacity="0.01"/><rect width="48" height="58" fill="white" fill-opacity="0.01"/>\n <path d="M34.0234 6.68921C31.0764 4.97912 27.6525 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44C35.0457 44 44 35.0457 44 24C44 20.3727 43.0344 16.9709 41.3461 14.0377" stroke="#ffffff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M31.9498 16.0502C31.9498 16.0502 28.5621 25.0947 27.0001 26.6568C25.438 28.2189 22.9053 28.2189 21.3432 26.6568C19.7811 25.0947 19.7811 22.562 21.3432 20.9999C22.9053 19.4378 31.9498 16.0502 31.9498 16.0502Z" fill="none" stroke="#ffffff" stroke-width="4" stroke-linejoin="round"/>\n </svg>\n </button>\n <span id="txt-clockAnimate-time" class="time" title="当前时间"> 2017-08-25 00:00:00 </span>\n <input id="txt-clockAnimate-speed" type="number" class="gis3d-clockAnimate-speed" value="1" title="速度(倍率)" />\n ',"lineColor","flags","updatePositionsHeightByAttr","removeEventParent","computePositions","analysisOptions","_last_graphicsOptions","lang","Quaternion","orderIndependentTranslucency","_islosdImg","rotateMatrix","LEFT_ROTATE","frustum","_onCollectionChanged","_templateHtml","ENABLED","minimumClock","startAngle","isPrivate","_shadowMap","getMatrix3","infinity_dist","_scanPlaneColor","_menuIndex","_updateOutlineToCallback","polygonCombine","strokeStyle","_offCenterFrustum","top","box","right click delete point","onChange","lowerToBottom","getShapeForStar","_updateDomByTagName","rotationMatrixFromPositionVelocity","radius","bind","_arrLayerIdx","stop","flyTo","lodGraphic","_proxy","warn","high","abs","pid","_maxPointNum","TdtPOI 请求出错","debugShowBoundingVolume",".png","czmObject","afterItem","depthTexture","mousedown","u_normalDirection","wgs84ToWindowCoordinates","glowWidth","rainEffect","_billboard2DList","REMOVED","v_mars_max_height","_空间距离","contrast","_rectangle","_updatePositionHook","multiplyByUniformScale","lam0","_container","FogEffectNo","_hasChangeDepthTestAgainstTerrain","mouseup","vertexArray","showPage","positions_local","_cacheGrid","_moveHandler","indexOf","Down","fromDate","GEOGCS","imageBottom","clampToTileset","_setRectangleByOptions","getParticleImage","bottomRadius","GaodePOI 请求出错","ColorMaterialProperty","HALF_FLOAT","_tileset_tileLoadHandler","metaData","responseText","_contourWidth","registerTerrainProvider: ","</div>","updateAttrForEditing","\n in float v_gis3d_clip_inPolygon;\n void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material)\n {\n if (v_gis3d_clip_inPolygon > 0.0) {\n discard;\n }\n } ","_popupMgr","_camera_cache","tailLeft","_minPointNum","in vec3 position;\nin vec3 normal;\nin vec2 st;\nin float batchId;\nout vec3 v_positionEC;\nout vec3 v_normalEC;\nout vec2 v_st;\n\nvoid main() {\n v_positionEC = (czm_modelView * vec4(position, 1.0)).xyz; // position in eye coordinates\n v_normalEC = czm_normal * normal; // normal in eye coordinates\n v_st = st;\n gl_Position = czm_modelViewProjection * vec4(position, 1.0);\n}\n","distanceSurfaceMeasure","distanceDisplayPoint","_initTilingSchemeByCrs","_polylines","_startEditingHook","ION","onStart","LocalWorldTransform","bindPopup","depthTestAgainstTerrain","isActivate","BoundingBox","S_POLE","max-height: ","neckHeightFactor","templateEmptyStr","lng","leftPoints","_start","NICEST","u_gis3d_jzw_upz","_model","_getCustomShader","fromCache","_onMarkerDragEnd","cons","_特效效果","localPos","_getTerrainHeight_ing","_cylinderLength","round","getSlope","titleField","Translation by axis","TileMapServiceImageryProvider","_planeOptions","cos_p12","radius_g_1","CorridorOutlineGeometry","_debug","_attributes_color_alpha","IAU2000","allCount","_hierarchy","按軸旋轉","_entity_scanPlane","_autoStyle","_command","updateControl","geometries","_rotateInitialCursorAngle","_showDrawMouseMoveSmallTooltip","FormatLength","_color_alpha_bak","reflectMatrix","_forceResize","coneTrack","回调属性未覆盖更新","globalMsg","address","unit","GEODETICCRS","shouldAnimate","Opera","img_e","visibleDepth","_isColorMaterial","easingFunction2","flip_axis",'<div class="gis3d-template-content" >',"zoomIn","mouseEvent","semiMajorAxis","_bottomPrimitive","buffer","_updateContent","enabledEvent","_修改半径","floodAll","addColorStop","tailWidthFactor","lineWidth","arrCenterTemp","mandatory","3016XCUJYJ","defaultValue","_mousMiddleDownHandler","terrainShadows","styleOpt","_contourSpacing","ARCGIS","sign","_hasTerrainShadows","GOOGLE","WHEEL","_addedHook","removeEffect","_interpolationAlgorithm","borderColor","EPSG:4518","polygonWallStyle","setAttribute","_showData","vrButton","_tikRender","SkyBoxNo","updateDistanceDisplayCondition","_右击菜单删除","Cesium3DTileStyle","_getEventTarget","pointToLngLat","geometryInstanceAttributes","focus","javascript","angleStr","fromVertices","dth","ADDED","_values","BillboardStyleConver","booleanPointInPolygon","getArrowHeadPoints","tilesetMaxTotalMemory","_getItemDataId","_enabledEvent","flipY","pickFeatures","_uniforms_baseWaterColor_alpha","county_code","_polygonFloat32","getFieldsForPickedPosition","標記圓","scaleByDistance","startsWith","_getKeywords","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","_graphic_rotate_z","targetPoint","stopEdit","southeast","pointer","def","VertexFormat","_bindFun","test","image","_thingList","createDrawCommand","fa fa-bullseye","reflexTexture","fromDimensions","_drawAddPointHandler","point","readyPromise","mouseover","ClearCommand","showSkirts","ready","closePopup","@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat","debugWireframe","_mergePostion","isRestorePositions","clockRange","CheckerboardMaterialProperty","</span>\n </div>\n </div> ","_addGraphic","availability","_修改高度","activateMouseOut","hasEdit","停止按轴旋转","name","sinph0","_minHeight","cells","kilometers","old_depthTestAgainstTerrain","smallTooltip","waterC","computePosition","textContent","currIndex","interPolygonObj","silhouetteSize","cartesianArrayToCartographicArray","lat","開啓夜視","resolutions","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=","795320ioZkau","toCartographic","insertIndex","flowGlow","_last_isFireStop","num","_addGraphicByArrOptions","createElement","bogota","CorridorGeometry","_单击开始绘制","_tooltipConfig","ion","state","area","RGBA","KmlDataSource","RequestScheduler","_gis3d_graphicId","interpolation","_enabledEdit","isTile","_mouseDown","listens","WebMapTileServiceImageryProvider","radii_x","触摸手势","_图上量算","MultiPolygon","depthFailColor","_layers","OBJECTID","LineString","-199.87,74.79,246.62","_initByMars3D","onTimelineScrubfunction","labelHeight","version","width","DISABLED","toValue","GCJ02","toOneJson","HomeButton","multiplyByVector","distanceStr","EPSG:4524","_containerSpeed","cross","_startMousePosition","pathStyleConver","_bindHierarchy","EPSG:4494","_type","Pass","ArcType","Resource","_允许进入地下","city","&label=","frameState","_maxTileLevel","lambda0","_onAdd","pickId","FrustumOutlineGeometry","vertexShader","PolylineVolumeOutlineGeometry","Modify the position","openFlyAnimation","SceneTransforms","classList","polygonTexture"," 不存在,该方法需引入 turf.js 库生效。","EPSG:4517","MIDDLE_DRAG","ray","Cassini","divWidth","setCameraView","_setCameraViewListItem","minHeight 请传入有效数值!","timetik","list","uniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput cmi) {\n czm_material material = czm_getDefaultMaterial(cmi);\n vec2 st = cmi.st;\n float t = fract(speed * czm_frameNumber / 1000.0) * direction;\n vec2 st1 = vec2(st.s, fract(st.t - t));\n vec4 color = vec4(0., 0., 0., 0.);\n float tt = 0.5 - abs(0.5 - st1.t);\n float ss = st1.s;\n float alpha = tt * 2.;\n color = vec4(u_color.rgb * u_color.a, alpha * 1.2);\n material.diffuse = color.rgb;\n material.alpha = color.a * globalAlpha;\n return material;\n}\n","_tileDiscardPolicy","alfa","brightnessEffect","Tag line","關閉地形","_vertexFormat","positiveZ","_roll","response","group","vandg","borderWidth","enumerable","varying","LOCAL_CS","update","surfaceDistance","onUploadProgress","draggers","loadCubeMap","lowerLatitude","mouseUp","PINCH_MOVE","latColumn","offset","_关闭雾天气","endDraw","u_gis3d_flat_tilesetHeight","170px",");\n}","Failed to detect nadgrid endian-ness, defaulting to little-endian","author","fromMercator","viewShed","getValue","SCENE2D","moon","_graphic_dragger_ing","getOutline","robin","_property","Cartesian3","Invalid height","polylineStyleConver","_polylineCollection","wrapS","Close depth test against terrain","vertexShaderSource","QueryArcServer 请求出错","moveVar","numberOfLevelZeroTilesX","_addImageryLayer","encoderOptions","shaderProgram","setCameraViewList",'<textarea class="gis3d-popup-edititem ',"_timeline","gtu","city_limit","_stopDrawHook","flyToPoint","percent","_setClockOption","process","FLOAT","_hasMouseOver","_显示三角网","getFloat32","_gis3d_layerId","BOTTOM","in vec4 position;\nin vec3 normal;\nout vec3 v_position;\nout vec3 v_positionWC;\nout vec3 v_positionEC;\nout vec3 v_normalEC;\n\nvoid main() {\n gl_Position = czm_modelViewProjection * position;\n v_position = vec3(position);\n v_positionWC = (czm_model * position).xyz;\n v_positionEC = (czm_modelView * position).xyz;\n v_normalEC = czm_normal * normal;\n}\n","noHeight","planeAngle","Unlocked","单击完成绘制","_gis3d_id","STATIC_DRAW","http://api.tianditu.gov.cn/v2/search","_element","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","UrlTemplateImageryProvider","ClassificationPrimitive","CameraEventType","TextureWrap","updateEnvironment","_sectorVA","45raVzAe","azimuth","_errorEvent","TRIANGLES","_createCzmControl","clusterEvent","_rotate_onPreRenderHandler","renderPass","utmSouth","FormatAltLength","North_American_Datum_1983","clustering","gaodePOI","TextureMagnificationFilter","getCoordinate","pickedObjects","Cesium3DTileset",'" style="width:',"lineStyle","POI 请求失败(","_sceneOption","waterColor","polygonStyleConver","_mouseEvent","updateTimer","far","adname","_clusterData","athens","gis3d-compass-inner","u_gis3d_clip_flatExtent","hasThing","eventType","ee24b622294b5bc659fb92fe81084776","fa fa-sun-o","addEventParent","_dirStep","Invalid GeoJSON object.","application/json","queryDriving","wm³","微软雅黑","startPosition","diffHeight","10000","updateLengthForTerrain","_cubeMap3","_isFlyAnimation","originalStyle","wheel","moveEnd","rows","CLAMP_TO_GROUND","showStop","billboard","_container_onMouseMoveHandler","fromCartographic","_pitch_reality","_startJulian","targetPosition","_stopEditingHook","_formatForMask","_getExcludedStyle","_addChildContainer","scanPlane-","_lights","_optionsBasemapsList","getListByAttr","childNodes","debugExtentEntity","highDynamicRange","i3s_","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","\n uniform sampler2D colorTexture;\n uniform vec3 marsColor;\n uniform float marsOpacity;\n uniform float threshold;\n uniform float smoothWidth;\n\n in vec2 v_textureCoordinates;\n void main() {\n vec4 marstexel = texture( colorTexture, v_textureCoordinates );\n\n #ifdef CZM_SELECTED_FEATURE\n if (!czm_selected()) {\n marstexel = vec4(0.);\n }\n #endif\n\n vec3 luma = vec3( 0.299, 0.587, 0.114 );\n float marsv = dot( marstexel.xyz, luma );\n vec4 outputColor = vec4(marsColor.rgb,marsOpacity);\n float alpha = smoothstep(threshold, threshold + smoothWidth, marsv);\n out_FragColor = mix( outputColor, marstexel, alpha );\n }","rotationArcSvg","GEE","Enable night vision","closed","hasLayer","controls","ClockRange","_onRemove","lastCameraView","setItem","ALL","infiniteProjectionMatrix","geometryInstances","unbindTooltip","pitEntity","_updateStyleByEdit","positionCartographic","dimensions","ellipse","rotation_y","_pickCommand","_readChildNode","ZERO",".closeButton","values","image/jpeg","near","_getCreateEntityAttr","_canrefresh","scanPlaneRate","cylinder","CameraInfo","sphere","headTailFactor","关闭大气渲染","onlyPickTerrainPosition","_map_cameraChanged","corridorP","globe","lim","Enable shadow","setOuterSvg","ml1","moveLeft","bottom","pageSize","EPSG:4499","tileLoadProgress","uniformName","highlightClose","setIcon","lat0","_orientation_show","16984CRAxlF","_last_depthTestAgainstTerrain","editMouseMove","False northing","#D33B7D","StripeMaterialProperty","_terrain_onLoadError","_array","allPage","_color","international","_renderPassCache","rgba(181, 226, 140, ","_getDrawEntityClass","_removeCollectionBy3D","BoundingRectangle","cesium-baseLayerPicker-item","grids","createGeometry","Walking","percentageChanged","heading","collectionChanged","minWidth","_graphic_move_z","removeItem","clampToTerrain","地图上已有","JulianDate","標記點","vscale","polygonWall","ShaderSource","writeTextToCanvas","corridorStyleConver","new_zealand_1949","HORIZONTAL","cosrot","maxCanvasSize","minimumHeights","setPitchRange","maximumSizeZ","WGS84","arrow","https://restapi.amap.com/v3/direction/walking","ClippingPlane","_xTable","outlineStyle","Timeline","lon","PostProcessStageSampleMode","_graphic_move_y","fa fa-unlock-alt","_onLeftDownHandler"," 模型中心位置:","GREEN","用于与DIV点进行对比测试位置的点","_computedModelMatrix","zoneNumber","_导出GeoJSON","GeometryInstance","clientWidth","push","styleField","setLayerSplitDirection","_updateDrawEntityToThis","outlineOpacity","ep2","minimumClockDegree","popupOptions","updatePosition","_map_click","_initTilesetClip","fromArray","removeControl","contextmenuOptions","標記矩形","_updateDomInnerHtml","updateOrientation","attackArrowPW","_onMouseMoveHandler_point","fa fa-share-alt","右键+拖拽,或者","createImageryProvider","selected","_graticuleProvider","1=1","平方公里","_sunlight","_matrixMove","_targetPoint","circleStyleConver","cesium-performanceDisplay","resolve","MIDDLE_UP","northwest","_tilesetClip","stopMoveMatrix","ECONNABORTED","editAddPoint","跟踪鎖定","_formatPOIData","none","scanPlaneColor","delta","indexs","set","cesium-viewer-animationContainer","textStyles","Add point","CullFace","maxDistance","enableInputs","construct","_toCesiumValEnd","updateStyle","getBisectorNormals","minimumTerrainLevel","_minimumHeights","Camera","accessToken",'</div>\n <div class="gis3d-divUpLabel-line" style="\n height: ',"originX","_looking","bessel","addEffect","绑定事件时传入了空值","_initCollectionBy2D","removeNearPoint","upGraphic","useLogDepth","formatted_address","Picking","#ff0000","backwardExtrapolationType","_draggerIng","isFinite","_hasAsynSurfacePosition","_material","paths","_cameraHandler","_last_material","views","getElementsByTagName","startTime","_contextmenuItemClickShowResult","baseWaterColor","geodetic_datum_of_1965","sigma","_depthStencilTexture","one_minus_f","hasPopup","toGeoJSON","focalDistance","CGCS2000_GK_Zone_6","_position","_开启泛光","putImageData","fromCssColorString","v_mars_floodAll","onSetOpacity","local","_minimumArr","_updateDomAttribute","_forwardExtrapolationDuration","rgba(255, 255, 255,255)","fromMGRS","objectsToExclude","Math","mouseMove","OrthographicOffCenterFrustum","Polyconic","pickFeaturesUrl","renderError","Ion","图上标记.json","_resource","del","className","contains","_uniforms","_textureFilterAnisotropic","mapProjection","shaderRedefine","Close BoundingVolume","msg","upHeight","4205wgYPPL","drawCanvas","headers","getTimestamp","rotatePoint","floatingPointTexture","regeocode","con","clickMap","_readChildNodeVal","CTRL","flood","blue","getFactorial","gradations","reload","EPSG:4326","planeStyle","_删除","success","updateAllNormalZ","arrayBufferView","_defaultView","projName","VERSION","mergeOrientation",'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="20" height="20" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect width="48" height="48" fill="white" fill-opacity="0.01"/>\n <path d="M16 12V36" stroke="#ffffff" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M32 12V36" stroke="#ffffff" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>',"timeEndVal","_pixelFormat","_frameState","angle2","href",'px;">',"_timeTik","&style={style}&tilerow={TileRow}&tilecol={TileCol}&tilematrixset={TileMatrixSet}&format=tiles&tk=","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","fromColor","createShadowReceiveFragmentShader","left","_draggerMove",'" placeholder="请输入 ',"_showPoly","outline","dashLength","_updateLabelPosition","updateDivPosition","replace","Walbeck","px;\n --clip-width-2: ","hierarchy","enableLook","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees","ComponentDatatype","Feature","_needFlyToPoint","_stateAll","EPSG4326","ShaderProgram","shapePositions","_onMouseMove","container","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","_unionRectangle","closeSmallTooltip","updateBox","proj4","https://api.map.baidu.com/place/v2/search","addSeconds","gis3d-distance-legend","_getModelMatrix","createMaterialProperty:未找到该类型的对应材质属性","pointLonlat","corridor","isShowing","[object Date]","sin_p12","cndesc","GEODESIC","fontBillboard","_effects","addDynamicPosition","eachThing","_海里","image2","symbol","_clearLastHighlight","AddMidPoint","_clickHandler","granularity","_showSectorSegmentLines","city_type","onDownloadProgress","_filterPropagateEvent","headHeightFactor","_高度","data","convertPackedArrayForInterpolation","_position_draw","_正在计算体积","img_z","</PropertyName>\n <Literal>","_显示包围盒","max","_getFixedFrameToEastNorthUpTransformFromWorldMatrix","geometryType","Rotation on axis","generateArc","inertiaTranslate","polylineVolumeStyleConver","MM月dd日","_hdr","merc","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","contrast_bias_blur","updateAttrForDrawing","_createImageryProvider","disable","_selectedLayer","{ \n","SampledProperty","in vec3 v_positionEC;\nin vec3 v_normalEC;\nin vec2 v_st;\n\nvoid main() {\n vec3 positionToEyeEC = -v_positionEC;\n vec3 normalEC = normalize(v_normalEC);\n #ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n #endif\n\n czm_materialInput materialInput;\n materialInput.normalEC = normalEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n materialInput.st = v_st;\n\n czm_material material = czm_getMaterial(materialInput);\n out_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n}\n","_measureExLine_positions","*</Literal>\n </PropertyIsLike>","_graphicLayer","removeThing","keyboardRoam","vec","_isInSceneCamera","ShadowMode","_goHistoryView","_primitive_billboard","_onClickHandler","CGCS2000_GK_Zone_3","_positions_line_y","colorOptsConver","_createCzmContainer","finish","Mask","innerRadii","FogEffectYes","PolylineGlowMaterialProperty","green","_allPage","popup","reduce","visibleAreaColor","fabric","#2747E0","清除所有標記","_单击完成绘制","in vec3 position;\n\nvoid main() {\n vec4 pos = vec4(position.xyz, 1.0);\n gl_Position = czm_projection * pos;\n}\n","ctx","czm_selectedIdTextureWidth",'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect width="48" height="48" fill="white" fill-opacity="0.01"/>\n <path d="M24.0607 10L24.024 38" stroke="#ffffff" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M10 24L38 24" stroke="#ffffff" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>',"Geostationary Satellite View","fa fa-soundcloud","_metadataError","getPickedObject","zIndex","all","_last_pickedObject","query","numberOfLevelZeroTilesY","getShapeForCircle","isFormat","totalAreaStr","gis3d-mousedownview-show","areas","autoStopAngle","hasOpacity","addLayer","fillVolumeStr","_isMouseLeftButtonPressed","_fxOnePoint","显示包围盒","positionsNew","_scanUniforms","getThirdPoint","setNowTime","PolylineMaterialAppearance","cityname","_initTilesetPlanClip","_default_zoomEventTypes","toArray","GeographicTilingScheme","preUpdate","_enabledDraw","_positions_circle_y","_isDragger","convert","停止按轴平移","_draw_tooltip","getState","material","@@iterator","updateHeightDraggers","showBox","4490","getArrayRandomOne","telephone","_hasFX","_defaultTerrainProvider","Texture","normalize",'<span style="color: red;">红色</span> 是 X轴<br/>\n <span style="color: green;">绿色</span> 是 Y轴<br/>\n <span style="color: blue;">蓝色</span> 是 Z轴',"fetchJson","keydown","hiddenAreaColor","destroyDraggers","_scopeIds_last","miny","_initByMetaData","_setPitchRange_mouseMoveHandler","Driving","getOrientation","右击删除点","_getGeoJsonGeometry","totalVolume","positiveX","cancelFlight","_getPickIds","root","tilingScheme","_createPrimitive",'<div class="gis3d-template-titile">',"EQUIT","PolylineColorAppearance","postProcessStages","BrightnessEffectYes","arc_x","地形服務","computeModelMatrix","toString","toJSON:缺少坐标信息","polygon","未处理的属性","zoomOut","EPSG:4545","project","pixelRange","请求出错","Extended_Transverse_Mercator","aust_SA",';"></div>\n </div> ',"alt_offset","esriGeometryEnvelope","</button>\n </div>","decimal","HorizontalOrigin","Northing at false origin","cbg","开启黑白","iterator","updatePass","rgba(253, 156, 115, ","endAngle","Fast_Transverse_Mercator","tileWidth","_on","_positions_show","EasingFunction","clear","formatData","_blur_comp","selectedIndex","cos_p14","fa fa-trello","_updateTile","updateMaterial","繞此處環繞飛行","u_gis3d_flood_flatPolygonTexture","maximumSizeX","_视角切换","rectangularSensorStyleConver","download","tilesetPassState","error","toJSON:未识别的材质类型","_removeDynamicPosition","Gunung Segara Jakarta","fromPointNormal","PolylinePipeline","標記線","farValue","defaultTicks","dimensions_x","{s}","pitPrimitive","clippingPlanes","_graphicList","253230wTpQqr","openSmallTooltip","isInRange","modelMatrix","prepareVAO","Event","PixelFormat","noCenter","homeButton","FeatureCollection","TimeIntervalCollection","EllipsoidOutlineGeometry","_currDistance","_updatePrimitiveOpacity","xmin","_position_result",";font-size: ","_cancelOutlinePositionsCallback","blendColor","number","getCurrentOptions","TOWGS84"," 对象 ","addHeight","getShowPositions","_rotateFrame","esriSpatialRelIntersects","_toOneJson_Poly","level","alignmentInBytes","play","if-modified-since","ellps","snowEffect","div","_alt_bak","TOP","gis3d-overviewMap","MaterialUtil registerOptsConver: ","currentObject","auto","opaqueFrustumNearOffset","showDomeSurfaces","showUp","enabledMoveTarget","EMPTY_OBJECT","labelHeightStyle","YELLOW","defaultVertexFormat","_updateClr","_last_multiplier","3dtiles","FirstPerspective","6e5d9f46b78cfb5b5ab3d407dad8fd14","HDR","type","contextMenuClick","DiscardMissingTileImagePolicy","command","地形服务","_promise","center","_关闭日照阴影","_startDrawHook","buildings","_orientation","_depthFailColor","amplitude","positiveY","getPointByAngleAndLen","leftPositions","features","phic0","u_gis3d_flood_matrixTexture","HeightReference","progress","updateModelMatrix","Cesium3DTilePass","_arrPartMeasureLable","hostname","GEOCCS","BOOL","#9b08fd","HH:mm:ss","animationSpeed","ratio","fixedFrameTransform","cylinderStyleConver","WallGeometry","_initFromEntity","getLoop","krovak","img_d","uri","u_gis3d_flood_tilesetMatrix","place","Sampler","backgroundColor","morphStart","_lineColor","CircleGeometry","ENLARGE","_showPolyline","_clearDraw","_toJsonEx","toDate","getColumn","_load_data","UNIT_X","isStart","headWidthFactor","GroundPrimitive","uniform vec4 color;\nuniform float speed;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n float time = fract(czm_frameNumber * speed / 1000.0);\n vec2 st = materialInput.st;\n float scalar = smoothstep(0.0, 1.0, time);\n material.diffuse = color.rgb * scalar;\n material.alpha = color.a * scalar * globalAlpha;\n return material;\n}\n","4326","getOwnPropertySymbols","coordinate","redraw","offsetY","cvs","fixedLight","destroy","_containerUl","Geometry","_sizeInBytes","_counts","removeTile","MERIT 1983","lonlat","extent","flipy","contourUniforms","lat_ts","origin","Clarke 1858","call","targetPositio","minimumLevel","method","widthRatio","raise","canvasLabel","50%","Prohibit to edit","updateMatrix","disableEdit","clientX","createPickId","_matrixTexture","complete","drawCreated","mousemove","convertMC2LL","cesiumWidget","noTitle","uniform samplerCube u_cubeMap;\nuniform samplerCube u_cubeMap2;\nuniform samplerCube u_cubeMap3;\nuniform float u_select;\nin vec3 v_texCoord;\n\nvoid main() {\n vec4 fragColor;\n if(u_select <= 1.0) {\n vec4 color = czm_textureCube(u_cubeMap, normalize(v_texCoord));\n color = vec4(czm_gammaCorrect(color).rgb, czm_morphTime);\n vec4 color2 = czm_textureCube(u_cubeMap2, normalize(v_texCoord));\n color2 = vec4(czm_gammaCorrect(color2).rgb, czm_morphTime);\n fragColor = mix(color, color2, u_select);\n }\n if(u_select > 1.0) {\n vec4 color = czm_textureCube(u_cubeMap2, normalize(v_texCoord));\n color = vec4(czm_gammaCorrect(color).rgb, czm_morphTime);\n vec4 color2 = czm_textureCube(u_cubeMap3, normalize(v_texCoord));\n color2 = vec4(czm_gammaCorrect(color2).rgb, czm_morphTime);\n fragColor = mix(color, color2, u_select - 1.0);\n }\n out_FragColor = fragColor;\n}\n","_popupConfig","cosc0","materials","verticalOrigin","options","projection","_showHook","getUrlComponent","latDecimal","IdField","horizontalOrigin","addControl","createObjectURL","normalX","gis3d-contextmenu","_last_fireIndex","toDegrees","GetCapabilities","easingFunction3","_onDbClickHandler","SkyAtmosphereNo","_outlineColor_alpha","_updatEntityAlpha","_appendHtmlHook","hide","_hasRemoveElement","clampToGround","modelToWorld","writable","VelocityOrientationProperty","ns0","czm_selectedIdTexture","mapChinaCRS","long0","addAsync","fogByDistance_farValue","cylinderC","addDays","cancelFlyTo","template",'<li class="line"></li>',"xHalfAngle","_mouseUpHandler","heightTriangleMeasure","cssText","_updateLabelStyleHook","_lng","_limitAngle","capabilities","MAX_VALUE","checkData","domToolbar","_getJsonPositions","_updateDivPosition","tan","shadingAlpha","owner","tile/","cesium-button cesium-toolbar-button gis3d-vrButton","pick","datumCode","fromAxisAngle","uniformMap","effect","skyBox","updateClock","Style","_getVector","isProperty","scaleByDistance_farValue","randomColor","_getPolylineOutlinePositions","_addLabel","enableCollisionDetection","zh-Hans","_map_preRenderHandler","leftLayer","repeat","customTags","precision highp float;\nprecision highp int;\n\n#define pi 3.1415926535\n#define PI2RAD 0.01745329252\n#define TWO_PI (2. * PI)\n\nuniform vec4 marscolor;\nuniform float speed;\nuniform float globalAlpha;\n\nfloat time;\nfloat rands(float p) {\n return fract(sin(p) * 10000.0);\n}\nfloat noise(vec2 p) {\n float t = time / 20000.0;\n if(t > 1.0)\n t -= floor(t);\n return rands(p.x * 14. + p.y * sin(t) * 0.5);\n}\nvec2 sw(vec2 p) {\n return vec2(floor(p.x), floor(p.y));\n}\nvec2 se(vec2 p) {\n return vec2(ceil(p.x), floor(p.y));\n}\nvec2 nw(vec2 p) {\n return vec2(floor(p.x), ceil(p.y));\n}\nvec2 ne(vec2 p) {\n return vec2(ceil(p.x), ceil(p.y));\n}\nfloat smoothNoise(vec2 p) {\n vec2 inter = smoothstep(0.0, 1.0, fract(p));\n float s = mix(noise(sw(p)), noise(se(p)), inter.x);\n float n = mix(noise(nw(p)), noise(ne(p)), inter.x);\n return mix(s, n, inter.y);\n}\nfloat fbm(vec2 p) {\n float z = 2.0;\n float rz = 0.0;\n vec2 bp = p;\n for(float i = 1.0; i < 6.0; i++) {\n rz += abs((smoothNoise(p) - 0.5) * 2.0) / z;\n z *= 2.0;\n p *= 2.0;\n }\n return rz;\n}\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 vUv = materialInput.st;\n time = czm_frameNumber * speed / 100.0;\n\n vec2 uv = vUv;\n vec2 uv2 = vUv;\n // if (uv.y < 0.5) {\n // discard;\n // }\n uv *= 4.;\n float rz = fbm(uv);\n uv /= exp(mod(time * 2.0, pi));\n rz *= pow(15., 1.0);\n vec4 marscolor = mix(vec4(color.rgb, 1.0) / rz, vec4(color.rgb, 0.1), 0.5);\n if(uv2.x < 0.05) {\n marscolor = mix(vec4(color.rgb, 0.1), marscolor, uv2.x / 0.05);\n }\n if(uv2.x > 0.95) {\n marscolor = mix(marscolor, vec4(color.rgb, 0.1), (uv2.x - 0.95) / 0.05);\n }\n\n material.alpha = marscolor.a * 2.0 * globalAlpha;\n material.diffuse = max(marscolor.rgb + marscolor.rgb * material.alpha, marscolor.rgb);\n\n return material;\n}\n","arc_y","makeLabel","_onMouseMoveDraggerHandler","_hiddenColor","toCesiumVal","Easting at false origin","glowPower","font","configureDescriptionFromProperties","children","GaodeRoute 请求出错","cosph0","_outlinePositions","_dragger_index","easting","trackedEntity","getContextMenu","視角切換","return","_divHeight","getCenter","scale","https://restapi.amap.com/v3/place/text","PROJECTION",'\n <div class="gis3d-popup-content-wrapper gis3d-popup-background">\n <div id="popup-',"backgroundPadding","walbeck","changeMouseModel","settime","column","addTile","rotateStop","terrainProviderViewModels","_hasRemoveByMapSplit","mouseDownView","_textStyles","EPSG:4539","segment","_keyboardRoam","jobScheduler","_单击增加点","debuggerPointEntity","_formatRouteData","_primitive_boxs","dirStep","_drawCommand","in vec3 position3DHigh;\nin vec3 position3DLow;\nin vec3 normal;\nin vec2 st;\nin float batchId;\nout vec2 v_st;\nout vec3 v_normalEC;\nout vec3 v_positionEC;\n\nvoid main() {\n vec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow);\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz;\n v_normalEC = czm_normal * normal;\n v_st = st;\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\n}\n","_updateLabelOpacity","updateVolume","referenceFrame","_id","_showWall",",0,0,","_scopes","fa fa-lock","_scene","contourMaterial.alpha == 0.0 ? slopeRampMaterial.diffuse : contourMaterial.diffuse","_cameraMoveEndHandler","minDistance","_czmContainerKey","toLowerCase","_onMap_leftDown","标记面","bloom","maxHeight","_rectangle_draw","_maxCanvasSize","register: ","match","_boundingSphere","坐标解析失败,请确认参数是否无误","ml2","attr","meter","1.1.1","fireTarget","_mountedHook","getPickRay","setPositions","distanceDisplayBillboard","_style2Json","isEntity","LESS","_lastPickedInfo","_isMouseUpdownPressed","search","Delete","DIRECTION_FORWARD","PolylineGeometry","_propagateEvent","BYTES_PER_ELEMENT","EPSG4490","_clampToGround_last","getTranslation","multiplyByPoint","exitFullscreen","_位置信息","maxCacheCount","geodeticSurfaceNormal","updateVisibleDistance","MGRSPoint given invalid Northing ","clearRect","_getTargetInfo","wkid","ExtrapolationType","PolyFacet","橫坐標","_city","createGuid","_bindEditEvent","MaterialSupport","mapbox","closeVurve","reject","MOUSE_MOVE","_subdomains","stack","dimensions_z","_positions_circle_z","zoomTo","4222520Cxodkb","getInnerHTML","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","hasBindEvent","one_minus_f_squared","_showThroughEllipsoid","_高度差","water","plane_normal","end","clockLoop","getTailPoints","spatialReference","_entitiesToVisualize","click","closeHighlight","preRender","selectedImageryProviderViewModel","{arc_Z4490}","string","moveRight","sin_po","isConstant","maxSpan","ids","_previousTime","maxPointNum","close","disableDepthTestDistance","_updateControlHandler","WGS84 椭球","CylinderOutlineGeometry","BlendingState","_y_direction","getAngleOfThreePoints","156","upWC","_scaleBarEl","buildModuleUrl","polygonHierarchy","visible","KmlLayer:请必须传入 url 或 data 参数","formatNum","translation","_mapEx_extentChangeHandler","video","u_gis3d_flat_matrixTexture","ExpandByMars","_graphic_drawing","_onClockTick","Enable skyBox","route","_释放后完成修改","midpoint","setStyle","setEndPoints","keywords","defaultView","polylineC","marsOptions","showIntersection","enableLighting","Cesium3DTilePassState","logarithmicDepthBuffer","Mark rectangular","pointerEvents","ml0","_角度","_onMouseMoveHandler","该对象暂不支持highlight高亮","_domeSurfaceMaterial","right","_primitive_point","_scanRadialCommand","getTooltipConfig","globalAlpha","requestRender","_colorFramebuffer","stopBounce","primitive","sin","_graphic_rotate_y","minimumCollisionTerrainHeight","angleBetween","face","mouseOver","_isCallbackPositions","dblClick","L{arc_z}","fill","magnitude","styleType","属性类型已存在","output","_update","elevationRampMaterial","</label>","_labelEx","hasTerrain","inertiaSpin","#ffffff","ellipsoidStyleConver","bindEvent","specify","pickedObject","str","intersectionColor","changed","field","_平方公里","getHeightReference","clock","fa fa-male","getOutlinePositions","loadGeoJSON","defineProperties","_isBindTileVisible","_onMouseOut","_isUpdate","TilesetWireframeYes","_allCount","_polyline_positions","getDate","inline-block","加载模型中…","onDragStart","fromString","_startTime","EDATUM","restart","updateSectionForTerrain","uniqueKey","asphaltColor","distanceDisplayCondition","_createEntity","_yHalfAngle","uniform vec4 evenColor;\nuniform vec4 oddColor;\nuniform float frequency;\nuniform vec2 noiseScale;\nuniform float grainFrequency;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n //Based on wood shader from OpenGL Shading Language (3rd edition) pg. 455\n vec2 st = materialInput.st;\n\n vec2 noisevec;\n noisevec.x = czm_snoise(st * noiseScale.x);\n noisevec.y = czm_snoise(st * noiseScale.y);\n\n vec2 location = st + noisevec;\n float dist = sqrt(location.x * location.x + location.y * location.y);\n dist *= frequency;\n\n float r = fract(dist + noisevec[0] + noisevec[1]) * 2.0;\n if(r > 1.0)\n r = 2.0 - r;\n\n vec4 color = mix(evenColor, oddColor, r);\n\n //streaks\n r = abs(czm_snoise(vec2(st.x * grainFrequency, st.y * grainFrequency * 0.02))) * 0.2;\n color.rgb += evenColor.rgb * r;\n\n material.diffuse = color.rgb;\n material.alpha = color.a * globalAlpha;\n\n return material;\n}\n","_hasHeightEdit","getMilliseconds","ArB","fullscreen","2GQpKBY","_data","_minPitch","_createGeometryInstanceItem","/query","_labelEl","atan2","_arrThing","distance","contextmenuItems","ScreenSpaceEventType","materialType","_state","shaderCache","mercatorToLngLat","sinrot","_areaList","code","acos","_关闭包围盒","_bindMoveAllDragger","_initSampledPositionProperty","pop","setPlanes","AREA_3","EPSG:4512","atob","_orbitMouseUpFunction","_updateEditDraggers","pause","PostProcessStage","_填方体积","gradient","innerHTML","開啓下雪","_normal","showMoon","_openByClick","bbox","getClusterList","_frustumFar","editing","TerrainYes","geometry","_arrLayer","username","headAngle","_container_rotationArc","_maxPositionsLength","totalArea","_extrudedHeight","positions","_绕此处环绕飞行","_getCustomQuaternion","removeMapChilds","_controls","cesium-navigation-button-left","promise","_removedBaseHook","goFirst","bindContextMenu","circle","Extended Transverse Mercator","_map_mouseDownHandler","getAddHeight","minHeight","_地形服务","isInPoly","fire","uniforms","getOptions","顯示地形","cartesian","OutlineEffectYes","_geoJsonLayer","_off","rightLayer","EPSG:4547","_bindUpdateCallback","wall","satepc","WebGL发生渲染错误,渲染已经停止,请刷新页面。","Null","isInPush","reverse","bindTexture","czech","_multipleDirty","120000|130000|190000","camera","union","clampToHeightMostDetailed","gis3d_u","crs","now","domtoimage","cartesianToCartographic","apply","_highlightAll","inverse","debugShowFramesPerSecond","Util","endPosition","cesium-viewer-geocoderContainer","pitch","_container_onMouseoutHandler","originalColor","Rectangle","標記面","sidesWidthRatio","B_im","copyFrom","_hasRightTilt","_distance","Edit Scale","interpolateOrderZero","_forPositionProperty","rotation","outerSvg","openPopup","east","_mouseMoveHandler","ymf","offsetLabel","_lineColor_alpha","classification","tileMatrixLabels","hasContextMenu","_createFrustumPrimitive","getShowPositon","2060979hqhxCk","getZoomUnits","BlackAndWhiteEffectNo","MoveAll","WGS84标准椭球,即 EPSG:4326","_getWellData","_onMorphComplete","GLOBE","viewer","EncodedCartesian3","pickTilesetLayer","direction","_removedHook","SRS","eastNorthUpToFixedFrame","getAreaById","_wallHeights","locationData","_onClockTickHandler","debugAxisPrimitive","_autoStopAngle","this hasn't been initialised - super() hasn't been called","ZHHK","radius_g","inverseMatrix","绘制时_map不能为空,请将对象添加到图层,并且图层已添加到Map","openHighlight:原有style中不存在以下属性,关闭高亮时将无法恢复","overrideViewport","getQBSplinePoints","defaultVisualizersCallback","getValueOrDefault","slice","_positionWC",'". State is ',"fromRandom","高亮对象图层","R_A","getLayers","_getJulianDate","opacity","cancel","clickTileGraphic","circleSize","ALPHA_BLEND","isDestroyed","_addPitGraphic","scaleFactor","_czmContrl","_useSingleColor","queryCircle","updateStatus","_rotateAngle","neckWidthFactor","EPSG:3857","MeasureAngle","_frameTime","_closeAllControl","_entity_outlines","_direction","setRequestHeader","chinaCRS","havn't handled \"","hasZIndex","tooltipClose","_fireTarget_open","PolylineVolumeGeometry","_container_onClickHandler","innerRadii_x","pow","avoidpolygons","mouseOut","outlinePositions","ymax","featureToGraphic","rightUp","Water","TEXTURE_3D","http://mt{s}.google.cn/vt/imgtp=png32&lyrs=h@207000000&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&s=Galil","px;\n --clip-width-1: ","word",'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="20" height="20" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect width="48" height="48" fill="white" fill-opacity="0.01"/>\n <path d="M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z" fill="none" stroke="#ffffff" stroke-width="5" stroke-linejoin="round"/>\n</svg>',"minPitch","rightPositions","positionWC","Quadrilateralized Spherical Cube","primitives","#f531e8","纵坐标","_mapEx","worldToLocal","11KaPtqN","toCssColorString","experimental-webgl2","omerc","_mars_type","replaceMain","pname","u_gis3d_flat_flatPolygonTexture","scope","yyyy-MM-dd HH:mm:ss","Mars3D三维可视化平台","_lat","_context","globalAlert","display","http://www.w3.org/2000/svg","terrain","Name","BaiduPOI: 请传入参location数","stopTime","_containerCon","EllipsoidSurfaceAppearance","RainEffectYes","单击增加点","FID","_primitiveCollection","The overall translation","MoveType","_hasChangeEnableInputs","_onUpdate","_poinst","strokeType","configureNameFromProperties","setPrototypeOf","getType","_updateDraw","showVolume","ImageMaterialProperty","getOwnPropertyDescriptor","u_gis3d_flood_mvMatrix","blackAndWhiteEffect","_删除该点","getByAttr","_toCesiumValBefore","_last_shouldAnimate","_definitionChanged","pointMeasure","layers","挖方体积","_showDomeSurfaces",";y=","_maximumLevel","_graphicLayer_leftUp","Normal Sphere (r=6370997)","pickHeight","equals","pick3DTileset","keys","endItem","fillVolumeName","closeContextMenu","view","_terrainProvider","evrst30","_editPointHandler","brussels","zoneLetter","PolygonHierarchy","_primitive_outline","UNSIGNED_SHORT","PrimitiveType","_outlineColor_alpha_bak","drawShowRadius","volumeDepthMeasure","三維模型","evrst56","innerRadii_y","negativeX","morphTo3D","maxTileLevel","AXIS","headingPitchRollToFixedFrame","Everest 1969","AssociativeArray","normalMap","offscreen","_mouseClickHandler","TEXTURED","Proj","src","isPoint","onlyPickModelPosition","inverseViewMatrix","_conventMarsOptions","_value","dataSource","_setGlobeOption","_dataSource","EPSG:4516","rotateCamera","_pickIds","sourceTarget","hpr","gis3d-mousedownview-img","fromFramebuffer","_packedLength","isArray","getTooltip","addSample","heightVal","_last_planeGraphics","_drawCommands","textAlign","hotPointID","color_bak","blackAndWhite","km²","_attributeLocations","fa fa-genderless","flat","_time","_flyok_index","eachLayer","anchor","fa fa-trash-o","parameters","addCircle","TOP_ROTATE","(window._contextmenuItemClickResult)","ShowGeometryInstanceAttribute","單擊增加點","join","sun","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","_graphic","oddColor","GRS80","sinc0","_credit","addTileError","getFloat64","billboardP","State","_updateDistanceDisplayConditionByEdit","defaultTexture","forwardExtrapolationType","_crs","DIRECTION_NONE","noAlt","airy","_compassRectangle","flyToByAnimationEnd","_measureHorLable","_keys","getExtent","uniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec2 center = st - vec2(0.5, 0.5);\n float time = -czm_frameNumber * 3.1415926 / 180.;//扫描速度1度\n float sin_t = sin(time);\n float cos_t = cos(time);\n vec2 center_rotate = vec2(center.s * cos_t - center.t * sin_t + 0.5, center.s * sin_t + center.t * cos_t + 0.5);\n vec4 color = texture(image, center_rotate);\n vec3 tColor = color.rgb * u_color.rgb;\n tColor *= u_color.a;\n material.diffuse = tColor;\n float length = 2. - length(center) / 0.5;\n material.alpha = color.a * pow(length, 0.5) * globalAlpha;//color.r = 0 或1\n return material;\n}\n","_last_contextmenuConfig","once","Clear","_startHeading","flyToExtent","CLAMP_TO_EDGE","_ellipsoid","renderState","valid","domeSurfaceMaterial","Plessis 1817 (France)","_globeMouseHandler","coslat0","pageIndex","_tilesetFlood","duration","latitudeShift","_shadowMapTexture","_attr","TileProviderError","defines","Z_UP_TO_X_UP","execute","setInputAction","_frustumPrimitive","rightClick","Tilted_Perspective","updateText","_maxPitch","_showDomeLines","to_meter","axisY","fromRotationY","updateAttr","low","rings","删除该点","_getAddress_ing","Check","fireTargetEvent","_domeVA","latitude_of_center","pixelOffset","_orbitTickFunction","_getConfig","queryParameters","Bessel 1841 (Namibia)","last_highlighGraphic","graphic","_highlightOptions","_frameRateHeight","Modify the length(X direction )","ElevationContour","Fullscreen","modelStyleConver","latitude","_mouseMoveHandle","_modelMatrix","onmouseover","DrawEditYes","_停止按轴平移","RED","TrackedEntityYes","_mapEx_timeTik","getDraggerContextMenu","VertexArray","orientation","_pointType","_last_velocity","_drawCreatedHandler","maximumHeight","sinb1","removeGraphic","pfact","SampledPositionProperty","GlobeSurfaceTileProvider","DrawCommand","belge","_positions_draw","停止编辑","prototype","PolygonOutlineGeometry","distanceMeasure","plane","baseMaterialConver","_billboardCollection","directionWC","token","editStyle","multiplyTransformation","_initTilesetFlat","from_greenwich","set-cookie","_graphic_rotate_x","isNull","depthRange","VERTEX_FORMAT","_onRightClickHandler","attribute","EPSILON6","createNightVisionStage","_sceneEvent","_objectsToExcludee","tooltipOptions","eachGraphic","_container2","sinu","map","openTooltip","AREA_1","_primitives","emitterModelMatrix","tileWidth must not be called before the imagery provider is ready.","removeChild","允许进入地下","fa fa-reorder","LEFT_DOUBLE_CLICK","onEachFeature","_关闭下雪","fetchJsonp","_reflectorViewMatrix","TimeInterval","_colorHidden","_planeAngle","getModelMatrix","&v=017","https://tm.amap.com/trafficengine/mapabc/traffictile?v=1.0&t=1&x={x}&y={y}&z={z}&&t=","forEach","rotateSpeed","path","timeTik","block","parent","fog","getGridKey","_positions_curve","_onPreRenderHandler","getInt32","fogByDistance","pointStyleConver","gis3d-smallTooltip-rightArrow","getHeadingPitchRoll","navigation","_cache_","fa fa-medium","onDragEnd","czmObjectEx","trimLoadedTiles","_scanePlaneYHalfAngle","_isRotateStart","slider-splitter","forward","dimensions_y","startMoveMatrix","CzmlDataSource","PerInstanceColorAppearance","setCursor","_colorTexture","_videoTexture","_color_alpha","highlight","maximumTerrainLevel","basemap","Object converted in non-standard crs - ","IAU2000:","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","<br/>","Total distance","_bindEvent","_tileLayer","Widgets/Images/TerrainProviders/CesiumWorldTerrain.png","backgroundOpacity","transform","DeveloperError","27580932aqWpuO","noiseScale","_flyTo","_modelViewInfiniteProjectionDirty","videoPlay","updateDraggers","_tileLayer_addTileHandler","zone","_leftLayer","topRadius","BloomEffectNo","crossorigin","clrk80","style","Ray","toPoints","Double click to finish drawing","\n uniform sampler2D u_gis3d_flood_flatPolygonTexture;\n uniform sampler2D u_gis3d_flood_matrixTexture;\n uniform bool u_gis3d_flood_raise;\n uniform vec4 u_gis3d_flood_flatExtent;\n uniform float u_gis3d_flood_size;\n uniform float u_gis3d_flood_width;\n uniform float u_gis3d_flood_rows;\n out float v_gis3d_inPolygon;\n\n #ifdef GIS3D_CUSTOM_MVP\n uniform mat4 u_gis3d_flood_tilesetMatrix;\n uniform mat4 u_gis3d_flood_mvMatrix;\n #endif\n\n bool isPointInPolygon_flood( vec2 start ,vec2 end, vec2 test){\n if ( ((start.y > test.y) != (end.y > test.y)) &&\n (test.x < ((end.x-start.x) * (test.y-start.y) / (end.y-start.y) + start.x)) )\n return true;\n return false;\n }\n\n bool isInRect_flood(vec2 minval,vec2 maxval,vec2 test){\n return test.x > minval.x && test.x < maxval.x && test.y > minval.y && test.y <maxval.y;\n }\n\n mat4 getInvWordMatrix_flood(vec2 matUV , float matUVY){\n vec4 row1 = texture(u_gis3d_flood_matrixTexture, vec2(matUV.x * 1.0, matUVY));\n vec4 row2 = texture(u_gis3d_flood_matrixTexture, vec2(matUV.x * 2.0, matUVY));\n vec4 row3 = texture(u_gis3d_flood_matrixTexture, vec2(matUV.x * 3.0, matUVY));\n vec4 row4 = texture(u_gis3d_flood_matrixTexture, vec2(matUV.x * 4.0, matUVY));\n\n return mat4(row1,row2,row3,row4);\n }\n\n // 自定义的顶点着色 需要在geometry着色之后修改glPosition\n void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput) {\n vec4 modelPos = vec4(vsInput.attributes.positionMC.xyz, 1.0);\n vec2 matUV = vec2(0.25, u_gis3d_flood_width);\n for(float i = 0.0 ; i < 100.0; i+=1.0){\n if(u_gis3d_flood_rows == i)break;\n bool flatStatus = false;\n float matUVY = matUV.y * i;\n vec4 mars_row = texture(u_gis3d_flood_matrixTexture, vec2(0.0, matUVY ));\n if(mars_row.w < 0.0)continue;\n\n if(!u_gis3d_flood_raise && modelPos.z < mars_row.z)continue;\n mat4 invWordMatrix = getInvWordMatrix_flood(matUV , matUVY);\n vec4 localpos;\n #ifdef GIS3D_CUSTOM_MVP\n localpos = u_gis3d_flood_mvMatrix * modelPos;\n localpos = czm_inverseView * localpos;\n localpos = invWordMatrix * localpos;\n if(!u_gis3d_flood_raise&&localpos.z < mars_row.z)continue;\n #else\n localpos = invWordMatrix * czm_model * modelPos;\n if(!u_gis3d_flood_raise&&modelPos.z < mars_row.z)continue;\n #endif\n\n if(!isInRect_flood( vec2(u_gis3d_flood_flatExtent.xy), vec2(u_gis3d_flood_flatExtent.zw) , localpos.xy ))break;\n int len = int(mars_row.y);\n int jj = len - 1;\n for(int ii = 0 ; ii < 100; ii++){\n if(ii >= len )break;\n vec2 start = texture (u_gis3d_flood_flatPolygonTexture, vec2(float(ii) * u_gis3d_flood_size, matUVY)).st;\n vec2 end = texture( u_gis3d_flood_flatPolygonTexture, vec2(float(jj) * u_gis3d_flood_size, matUVY)).st;\n if(isPointInPolygon_flood(start, end, localpos.xy)){\n flatStatus = !flatStatus;\n }\n jj = ii;\n }\n if(flatStatus){\n vec4 position;\n #ifdef GIS3D_CUSTOM_MVP\n localpos.z = mars_row.z;\n localpos = u_gis3d_flood_tilesetMatrix * localpos;\n position = czm_view * localpos;\n #else\n position = czm_modelView * modelPos;\n #endif\n\n vsOutput.positionMC = modelPos.xyz;\n v_gis3d_inPolygon = 1.0;\n }\n }\n }","paused","format","_heightReference","_currentExtent","polylineVolume","shadows","layui-layer-lan layer-mars-dialog","_lastMouseOverItem","mode","禁止編輯","_removeAreaHook","#ifdef GL_ES\nprecision mediump float;\n#endif\nuniform sampler2D mars_image;\nuniform vec2 mars_distanceDisplayCondition;\nuniform vec3 mars_positionWC;\nin vec3 v_worldPos;\nin vec2 v_st;\nuniform float globalAlpha;\n\nvoid main() {\n float dis = distance(mars_positionWC, v_worldPos);\n if(dis < mars_distanceDisplayCondition.x || dis > mars_distanceDisplayCondition.y) {\n discard;\n } else {\n vec4 color = texture(mars_image, v_st);\n color.a *= globalAlpha;\n\n // Fully transparent parts of the billboard are not pickable.\n #if !defined(OPAQUE) && !defined(TRANSLUCENT)\n if(color.a < 0.005) // matches 0/255 and 1/255\n {\n discard;\n }\n #else\n // The billboard is rendered twice. The opaque pass discards translucent fragments\n // and the translucent pass discards opaque fragments.\n #ifdef OPAQUE\n if(color.a < 0.995) // matches < 254/255\n {\n discard;\n }\n #else\n if(color.a >= 0.995) // matches 254/255 and 255/255\n {\n discard;\n }\n #endif\n #endif\n\n out_FragColor = color;\n\n }\n}\n","specularMap","Transforms","_sampledPositionProperty","WebMercatorTilingScheme","_primitive2","isAdded","slices","gaode","Material","drawStart","Entity","insertBefore","maximumImageSize","fa fa-connectdevelop","getAddress","hasEmptyGroup","in vec3 v_positionEC;\nin vec3 v_normalEC;\nin vec2 v_st;\n\nvoid main() {\n out_FragColor = xh_getMaterial(v_st);\n}\n","_cancelPositionsCallback","maximumHeights","shadowMap","cesium-baseLayerPicker-selected","startEditing","EPSG:4506","position","_style2JsonBase","getTileLayers","xmax","EllipsoidTerrainProvider","_getEventByType","_projection","_heading_reality","editStop","_objectsToExclude","entitys","_containerArrow","_show","labelStyleConver","measured","marsJzwStyle","Close Pick highlighted","EPSG:4532","Viewer","nSubgrids","showSectorLines","popupOpen","wellData","_measureDistanceLable","hasChildLayer","concat","hasUpdate","getMonth","leftDown","右键菜单操作出错","_fireBindDataEx","cameraHeight","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","leftUp","geoidTiledTerrainProvider","hbgd","tooltip","_filterPOIData_polygon",'<div style="text-align: center;padding: 2px 0;" >\n <button type="button" ',"GridMaterialProperty","_depthTestAgainstTerrain_reset","關閉大氣渲染","roll","toISOString","Y_UP_TO_X_UP","Plane","_cartographic","關閉黑白","enableControl","toRadians","createGraphic","NaN","property","minimumLevel must not be called before the imagery provider is ready.","_setOptionsHook","midnight","NEAREST","then","coordinates must be finite numbers","_removeLabel","drawingBufferWidth","AFAFAF","POSITION_ONLY","font_size","hough","BufferUsage","showPlane",'" style="width:',"LabelCollection","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","</gml:coordinates>\n </gml:LinearRing>\n </gml:outerBoundaryIs>\n </gml:Polygon>\n </Intersects>","_getOrCreateLayer","atan","texParameteri","_imageryLayer","object","enableTranslate","getValueOrUndefined","negativeY","addScanPlane","_jzmHeight","bloomEffect","PolyUtil turf.buffer:缓冲分析异常 ","getContext","projections","silhouetteColor","_last_stopTime","_toChineseLang","_draw_holes","_currentHeight","stage","czm_","getShortestPath","BACK",'\n <div class="gis3d-divBoderLabel" style="\n --text-font-size: ',"labelStyle","onmousedown","VerticalOrigin","camera_changedHandler","contextMenu","upperLatitude","shiny","_smallMap","maxAlpha","rgba(0,0,255,0.2)","minPointNum","Cartesian2","_加载模型中","frameRate","未获取到高度值,贴地高度计算存在误差","_getPopupPosition","bjColor","minimumRadius","google","inverMatrix","info","MultiLineString","Latitude_of_center","stroke-opacity","minorDragger","ContextLimits","random","(); \n","showFillVolume","rectangleStyleConver","25962df421fcad3cc2a8ceb55aafd04f","_rotateAutoStopAngle","BaiduPOI 请求出错","提供的高精度的DEM地形服务","Everest (Sabah & Sarawak)","speed","outlineColor","_has3dtiles","_skyboxMatrix3","Control","_ready","查询中...","N_POLE","_velocityScratch","stopDraw","SlopeRamp","showElseArea","482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15","url","withCredentials","hideArea","LangType","TileMatrixSetLink","BingMapsStyle","getLayerById","setUpHeight","angleMeasure","MORPHING","experimental-webgl","_last_success","TRANSLUCENT","baidu","isLoading","etag","frustumWidth","Standard_Parallel_2","data.gis3d.cn","relativeAmount","hasChildThing","DebugModelMatrixPrimitive","eventParent","_updatePositionsByCircleCenter","proceed","GeometryAttribute","&tk=","ModelAnimationLoop","rectangularSensorMars","fromPlane","_hasMapInit","json","EPSG:102113","gis3d-locationbar-content","DIRECTION_BACKWARD","rightDown","outlineWidth","_getPositions","_showSectorLines","ire65","FloodByMaterialType","navigationHelpButton","SceneModePicker","temp","MultipleSkyBox","u_gis3d_flat_upz","left: 120px; bottom: ","screenSpaceCameraController","event","_getTileEventParams","_rotationScratch","createDragger","dimianmian","algorithmUtil","getHours","SceneMode","cesium-sceneModePicker-button3D","\n uniform sampler2D u_gis3d_flat_flatPolygonTexture;\n uniform sampler2D u_gis3d_flat_matrixTexture;\n uniform bool u_gis3d_flat_raise;\n uniform bool u_gis3d_flat_upz;\n uniform vec4 u_gis3d_flat_flatExtent;\n uniform float u_gis3d_flat_size;\n uniform float u_gis3d_flat_width;\n uniform float u_gis3d_flat_rows;\n uniform float u_gis3d_flat_tilesetHeight;\n\n #ifdef GIS3D_CUSTOM_MVP\n uniform mat4 u_gis3d_flat_tilesetMatrix;\n uniform mat4 u_gis3d_flat_mvMatrix;\n #endif\n\n bool isPointInPolygon_flat( vec2 start ,vec2 end, vec2 test){\n if ( ((start.y > test.y) != (end.y > test.y)) &&\n (test.x < ((end.x-start.x) * (test.y-start.y) / (end.y-start.y) + start.x)) )\n return true;\n return false;\n }\n\n bool isInRect_flat(vec2 minval,vec2 maxval,vec2 test){\n return test.x > minval.x && test.x < maxval.x && test.y > minval.y && test.y <maxval.y;\n }\n\n mat4 getInvWordMatrix_flat(vec2 matUV , float matUVY){\n vec4 row1 = texture(u_gis3d_flat_matrixTexture, vec2(matUV.x * 1.0, matUVY));\n vec4 row2 = texture(u_gis3d_flat_matrixTexture, vec2(matUV.x * 2.0, matUVY));\n vec4 row3 = texture(u_gis3d_flat_matrixTexture, vec2(matUV.x * 3.0, matUVY));\n vec4 row4 = texture(u_gis3d_flat_matrixTexture, vec2(matUV.x * 4.0, matUVY));\n\n return mat4(row1,row2,row3,row4);\n }\n\n void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput) {\n vec4 modelPos = vec4(vsInput.attributes.positionMC.xyz, 1.0);\n vec2 matUV = vec2(0.25, u_gis3d_flat_width);\n for(float i = 0.0 ; i < 100.0; i+=1.0){\n if(u_gis3d_flat_rows == i)break;\n float matUVY = matUV.y * i;\n vec4 mars_row = texture(u_gis3d_flat_matrixTexture, vec2(0.0, matUVY ));\n if(mars_row.w < 0.0)continue;\n mars_row.z = mars_row.z + u_gis3d_flat_tilesetHeight;\n if(!u_gis3d_flat_raise && modelPos.z < mars_row.z)continue;\n\n mat4 invWordMatrix = getInvWordMatrix_flat(matUV , matUVY);\n vec4 localpos;\n\n #ifdef GIS3D_CUSTOM_MVP\n localpos = u_gis3d_flat_mvMatrix * modelPos;\n localpos = czm_inverseView * localpos;\n localpos = invWordMatrix * localpos;\n if(!u_gis3d_flat_raise&&localpos.z < mars_row.z)continue;\n #else\n localpos = invWordMatrix * czm_model * modelPos;\n if(!u_gis3d_flat_raise&&modelPos.z < mars_row.z)continue;\n #endif\n if(!isInRect_flat( vec2(u_gis3d_flat_flatExtent.xy), vec2(u_gis3d_flat_flatExtent.zw) , localpos.xy ))break;\n int len = int(mars_row.y);\n int jj = len - 1;\n bool flatStatus = false;\n for(int ii = 0 ; ii < 100; ii++){\n if(ii >= len )break;\n vec2 start = texture (u_gis3d_flat_flatPolygonTexture, vec2(float(ii) * u_gis3d_flat_size, matUVY)).st;\n vec2 end = texture( u_gis3d_flat_flatPolygonTexture, vec2(float(jj) * u_gis3d_flat_size, matUVY)).st;\n if(isPointInPolygon_flat(start, end, localpos.xy)){\n flatStatus = true;\n break;\n }\n jj = ii;\n }\n if(flatStatus){\n #ifdef GIS3D_CUSTOM_MVP\n localpos.z = mars_row.z;\n localpos = u_gis3d_flat_tilesetMatrix * localpos;\n #else\n if(u_gis3d_flat_upz)\n modelPos.z = mars_row.z;\n else\n modelPos.y = mars_row.z;\n #endif\n vsOutput.positionMC = modelPos.xyz;\n }\n }\n }","_addCameraView","LINEAR_NONE","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","divBillboard","_onMiddleUpHandler","entities","stopFlicker","helmert","BoxGeometry","v_pole_s","osni52","showGroundAtmosphere","color","_pickSP","black","_colorCommands","PostProcessStageComposite","ro0","_updateForEvent","imageSR","_matrix","COLUMN2ROW1","onloadend","bindDraggers","EPSG:","_drawMouseMoveHandler","平方公裏","convertLL2MC","_pitchWhenLeftClicked","eventTarget","onEnd","animation","distanceHorStr","fullscreenButton","singam","createPropertyDescriptor","setPitch","_updateMoveAllHook","addRing","getEntityAttr","uplift","20210830","_toOneCesiumVal_Point","gapColor","_maxCacheCount","_getWindowPosition","lastPointTemporary","BrA","getDerivedResource","_surface","getColorByStyle","popupClose","normal","tilingScheme must not be called before the imagery provider is ready.","_updateMaxMinHeights","retry-after","_points","lookAt","hasDrawDelPoint","px;\n --boder-width: ","things","getPositionByOrginMatrix","removeScanPlan","CGCS2000_GK_CM_6","_primitive_label","uniform","upAxis","isAutoEditing","_stateOkIndex","_measureLable","Model","_getLablePosition","_minimumLevel","gridList","pickImageryLayerFeatures","getTemplateHtml:格式化出错","bindEntities","#btn-clockAnimate-now","scanPlane","开启键盘漫游","getValueInReferenceFrame","_camera","usingPrecachedTiles","multiplyByScalar","uniform vec4 color;\nuniform float repeat;\nuniform float offset;\nuniform float thickness;\nuniform float globalAlpha;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n float sp = 1.0 / repeat;\n vec2 st = materialInput.st;\n float dis = distance(st, vec2(0.5));\n float m = mod(dis + offset, sp);\n float a = step(sp * (1.0 - thickness), m);\n material.diffuse = color.rgb;\n material.alpha = a * color.a * globalAlpha;\n return material;\n}\n","_layer","localToWorld","drawRemovePoint","updateCamera","length","clientHeight","done","dataColumn","_fpsFrameCount","BLACK","_graphic_editing","commandList","Property","3857","https://restapi.amap.com/v4/direction/bicycling","_onKeyDown","pixelToPoint","rgba(255, 255, 255, 1.0)","_map_extentChangeHandler","fogEffect","updateHeight","VERTICAL","status","开启深度监测","_alpha","MaterialProperty","neckAngle","GroupThing","dot","_positions_CallbackProperty","postUpdate","intl","aPosition","cosb1","drawMouseMove","_updateMatrixRotatePosition","fadeFactor","moveUp","getCameraView","toolButton","repeat_x","czm_pickColor",'<span class="gis3d-popup-close-button gis3d-popup-color closeButton" >×</span>',"geocoderConfig","请传入淹没区域才能开始分析","ProviderViewModel","commands","lat2","billboardCollection","_trackedEntity","removeAll","lam","boundingSphere","Reseau National Belge 1972","arrLX","EllipsoidStyleConver","fromRadians","_visibleAreaColor","_maskTexture","excludedKeys","groundPosition","zoom","_domeBackCommand","\nin float me_isSelected;\nbool czm_selected(){\n bool isSelected= me_isSelected>0.0000001;\n if(!isSelected){\n isSelected= czm_selected(","關閉夜視","boxC","pinchStart","_primitive","5e5949f7e96e8a136ef36a6594f18cdf","C_y","_initLayer","clampTo3DTileset","Mars3DEx","showText","showArea","has3dtiles","_wall_positions","pixelOffset_original","u_type","parentNode","exact","filter","_last_position",'</div>\n <div class="gis3d-template-content">\n <div><label>',"_getDrawEntityStyle","closure","afterquote","#123e59","_shadingType","_interpolationDegree","geocode","closeButton","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","開啓泛光","_onMouseMoveMapHandler","CylinderStyleConver","queryWalking","HALF_PI","fogByDistance_far","_setEditCursor","getOutlineColorByStyle","_controlList","shiftKey","sqrt","host","_attributes_depthFailColor_alpha","startMoveLeft","导出GeoJSON","clearPitchRange","boxStyleConver","prevStageUpdate","EPSG:4492","toTop","UniformType","_setCanvasOption","fa fa-dashboard","xmf","pass","fromCartesianArray","isDestroy","0,0,0","heightStr","_clickTileGraphic: 当前数据太大,避免卡顿未进行解析,如需展示矢量对象,请在图层配置加 hasToGraphic:true 参数 ","distanceDisplayCondition_far","_clampToTilesetHeight","_gaze","Cartesian4","addArea","sector","showNextPage","_tilesetPlanClip","bindHighlight","onabort","fileType","TextureMinificationFilter","_inverseMatrix","CheckerboardType","drawRingCanvas","point3","u_gis3d_flat_raise","fromElements","_editExtent","requestAnimationFrame","PlaneGeometry","ctrlKey","no_rot","_pickCommands","equalsEpsilon","scaleByDistance_near","multiplyByPointAsVector","_replaceFragmentShaderSourceByStyle","_scanPlaneVA","model","_root","_last_startTime","BoxOutlineGeometry","default","_updateEntityOpacity","dataTypes","_orbitCursorAngle","longlat","unbindContextMenu","\n ","_entity","arc_z4490","_videoContainer","_orbitFrame","floodRect","fillVolume","wallStyleConver","attributes","fa fa-moon-o","_frustumPlanes","hasZ","north","alt","showDomeLines","brightness","_sexagesimal","EditClass","_enabled","COLUMBUS_VIEW","sidesColor","specularIntensity","getPickDepth","time","TWO_PI","terrainExaggeration","getGraphics","cos","#000000","GroundPolylineGeometry","_scanPlaneColor_alpha","exp","cartographicToCartesian","The location information","#extension GL_OES_standard_derivatives : enable\nuniform sampler2D colorTexture;\nuniform sampler2D depthTexture;\nuniform float lineWidth;\nuniform float height;\nuniform bvec3 strokeType;\nuniform vec3 tjxColor;\nuniform vec3 bjColor;\nuniform vec3 cameraPos;\nuniform float mbDis;\nin vec2 v_textureCoordinates;\n\nvec4 toEye(in vec2 uv, in float depth) {\n vec2 xy = vec2((uv.x * 2.0 - 1.0), (uv.y * 2.0 - 1.0));\n vec4 posInCamera = czm_inverseProjection * vec4(xy, depth, 1.0);\n posInCamera = posInCamera / posInCamera.w;\n return posInCamera;\n}\nfloat getDepth(in vec4 depth) {\n float z_window = czm_unpackDepth(depth);\n z_window = czm_reverseLogDepth(z_window);\n float n_range = czm_depthRange.near;\n float f_range = czm_depthRange.far;\n return (2.0 * z_window - n_range - f_range) / (f_range - n_range);\n}\nbool isTJX(vec2 uv, float lw) {\n vec2 pixelSize = lw / czm_viewport.zw;\n float dx0 = -pixelSize.x;\n float dy0 = -pixelSize.y;\n float dx1 = pixelSize.x;\n float dy1 = pixelSize.y;\n\n vec2 currUV = uv + vec2(dx0, dy0);\n vec4 currDepth = texture(depthTexture, currUV);\n float depth = getDepth(currDepth);\n if(depth >= 1.0)\n return true;\n\n currUV = uv + vec2(0.0, dy0);\n currDepth = texture(depthTexture, currUV);\n depth = getDepth(currDepth);\n if(depth >= 1.0)\n return true;\n\n currUV = uv + vec2(dx1, dy0);\n currDepth = texture(depthTexture, currUV);\n depth = getDepth(currDepth);\n if(depth >= 1.0)\n return true;\n\n currUV = uv + vec2(dx0, 0.0);\n currDepth = texture(depthTexture, currUV);\n depth = getDepth(currDepth);\n if(depth >= 1.0)\n return true;\n\n currUV = uv + vec2(dx1, 0.0);\n currDepth = texture(depthTexture, currUV);\n depth = getDepth(currDepth);\n if(depth >= 1.0)\n return true;\n\n currUV = uv + vec2(dx0, dy1);\n currDepth = texture(depthTexture, currUV);\n depth = getDepth(currDepth);\n if(depth >= 1.0)\n return true;\n\n currUV = uv + vec2(0.0, dy1);\n currDepth = texture(depthTexture, currUV);\n depth = getDepth(currDepth);\n if(depth >= 1.0)\n return true;\n\n currUV = uv + vec2(dx1, dy1);\n currDepth = texture(depthTexture, currUV);\n depth = getDepth(currDepth);\n if(depth >= 1.0)\n return true;\n\n return false;\n}\n\nvoid main() {\n vec4 color = texture(colorTexture, v_textureCoordinates);\n if(height > 14102.0) {\n out_FragColor = color;\n return;\n }\n vec4 currD = texture(depthTexture, v_textureCoordinates);\n if(currD.r >= 1.0) {\n out_FragColor = color;\n return;\n }\n float depth = getDepth(currD);\n vec4 positionEC = toEye(v_textureCoordinates, depth);\n vec3 dx = dFdx(positionEC.xyz);\n vec3 dy = dFdy(positionEC.xyz);\n vec3 normal = normalize(cross(dx, dy));\n\n if(strokeType.y || strokeType.z) {\n vec4 wp = czm_inverseView * positionEC;\n if(distance(wp.xyz, cameraPos) > mbDis) {\n out_FragColor = color;\n } else {\n float dotNum = abs(dot(normal, normalize(positionEC.xyz)));\n if(dotNum < 0.05) {\n out_FragColor = vec4(bjColor, 1.0);\n return;\n }\n }\n }\n if(strokeType.x || strokeType.z) {\n bool tjx = isTJX(v_textureCoordinates, lineWidth);\n if(tjx) {\n out_FragColor = vec4(tjxColor, 1.0);\n return;\n }\n }\n out_FragColor = color;\n}\n","normalShadingSmooth","Ellipsoid","endFrame","queryText","_positions","sk.eyJ1IjoibWFyc2dpcyIsImEiOiJjbDFhYXQ3a2EwaHF6M2NvdnhmdjR6ajZ2In0.-sahm9R0QuPP3pAihJHC4A","BLUE","digVolumeName","_virtualCamera","measure","SlopeColorContour","DistanceDisplayConditionGeometryInstanceAttribute","tileHeight","clipOutSide","gravity","_alt","splitDirection","RectangleGeometry","_pointCollection","_polygonTexture","getPoint","getRectangle","viewMatrix","Close black and white","windowPosition","_lastUpdate","getOwnPropertyDescriptors","frustumCommandsList","contextmenu","lastParameters","text","_roll_reality","_contextmenuConfig","utg","_maxHeight","open","_createBottomSurface","_center","circlePoints_2","scanPlaneOpacity","isAll","removeEventListener","start","lightDirection","_normalZ","clone","datum_type","PerspectiveFrustum","unbindEvent","_heightDraggers","pinchEnd","attackArrow","_updateOutlineOpacity","queryExtent","properties","scaleByDistance_nearValue","WebMercatorProjection","flipx","_updateHeight","_targetPosition","_outlineEx","editPlane","_hasEdit","_cubeMap","cacheMarsOptions","關閉環繞飛行","_fillColor_alpha_bak","_primitive4","_point","_hasCache","content","cesium-button cesium-toolbar-button mar3d-toolButton","_height","_speed","polyline","_silhouetteColor_alpha_bak","Polar Stereographic (variant B)","headingPitchRollQuaternion","sinphi","proxy","_onTerrainChangeHandler","Color","flickerEntity","tiltEventTypes","_addAreaHook","u_gis3d_flood_upz","_editing_entity","hasClosure","unbindPopup","Helmert 1906","charCodeAt","class","BOTTOM_ROTATE","_canvas","u_gis3d_flood_width","WaterType","_contourColor","TerrainWireframeNo","ellipsoid","maximumConeDegree","scale_factor","fa fa-pencil","datumName","scene","fromDegrees","_czmControlKey","CallbackProperty","control","fineArrowYW","addImageryProvider","Alt","_measureExLine","centerOfMass","autoSurfaceHeight","DEPTH_COMPONENT","_last_picked","evrst69","outer_controlPoints","morphComplete","&scene=0","entityGraphic","holes","_target","http://mt{s}.google.cn/vt?lyrs=s@187&hl=us&gl=us&x={x}&y={y}&z={z}","material_bak","swallowTailFactor","fetchXML","depthTest","count","createLayer","hidden",";\n --border-color: ","shaderSource","polygonMaxHeight","sizeInBytes","_updateImage_delay","_updateCamera","description","geoJsonLayer_onLoadHandler","_isCenterAtArr","showPointHeightLabel","offsetHeight","_pitch","_position_inertial","height","fillColor","Mid","total","nightVisionEffect","stRotation","noPickEntity","toPng","_onBeforeCreate","sources3","viewport","index","AREA_2","keyup","eqdc","removeNullData","_createGraphics","cia","_removeCollectionBy2D","_toJSON_Ex","in vec3 position3DHigh;\nin vec3 position3DLow;\nin vec3 color;\nin vec2 st;\nin float batchId;\n\nuniform mat4 mars_orthographicMatrix;\nuniform mat4 mars_viewMatrix;\nuniform vec2 mars_resolution;\nuniform float mars_pointSize;\nout vec2 v_st;\nout vec3 v_worldPos;\n\nvec4 transform(mat4 m, mat4 v, vec3 coord) {\n return m * v * vec4(coord, 1.0);\n}\nvec2 project(vec4 device) {\n vec3 device_normal = device.xyz / device.w;\n vec2 clip_pos = (device_normal * 0.5 + 0.5).xy;\n return clip_pos * mars_resolution;\n}\nvec4 unproject(vec2 screen, float z, float w) {\n vec2 clip_pos = screen / mars_resolution;\n vec2 device_normal = clip_pos * 2.0 - 1.0;\n return vec4(device_normal * w, z, w);\n}\n\nvoid main() {\n v_st = st;\n vec3 currP = position3DHigh.xyz + position3DLow.xyz;\n v_worldPos = currP;\n vec4 eyeCurrP = transform(mars_orthographicMatrix, mars_viewMatrix, currP);\n vec2 winCurrP = project(eyeCurrP);\n vec3 dirEye = czm_viewRotation * color;\n dirEye = normalize(dirEye);\n\n vec2 newWinCurrP = winCurrP + dirEye.xy * mars_pointSize;\n gl_Position = unproject(newWinCurrP, eyeCurrP.z, eyeCurrP.w);\n gl_PointSize = mars_pointSize;\n}\n","body","matrix","button","interVal","_关闭拾取高亮","getGeometryInstanceAttributes","removeInputAction","i3s","terrainProvider","横切面积","_default_tiltEventTypes","getArrowPoints","viewModel","unpack","_hasUpdate_emitterModelMatrix","basemaps","stopPropagation","showScanPlane","getRange","Axis"," ","_initModel","extension","positionsShow","NARROW","bidirectional","sampler","middleClick",".contextmenu-item","setTime","null","mmf","wireframe","HOLD","_farDepthFromNearPlusOne","entityAngle","_conversionStyle","isVisible","android","valueFD","timeline","lat1","rectangle","_globalAlpha","interpolationAlgorithm","noWhite","fromCharCode","postRender","_czmBuiltinsAndUniforms","_cacheGraphic","类型已存在","_planeAngleRadians","createVertexBuffer","keyCode","UniformState","labelCollection","loadOk","_last_hasNull","PolylineDashMaterialProperty","_sectorLineVA","getInMapChilds","_opacity","_updateTerrainProvider","_getDrawPointEntityClass","_createCesium3DTileset","EditAttr","glow","queryBySql","moveDown","ssfn_","POI 请求失败","maximumRadius","canvas","按轴旋转","location","imageOptsConver","editRemovePoint","passes","fromCartesian","fromScale","size","fetchJson出错了","undefined","multiplyByMatrix3","floor","_onMarkerDragStart","_computedScanPlaneModelMatrix","fromType","Layer","EffectUtil","_updateDiffHeight","getThings","currentTarget","heightReference","selectedLayer","enableRotate","INERTIAL","defined","clipTarget","pinchMove","getIntersectPoint","gis3d-hideDiv","视角切换",'" in afterquote yet, index ',"MoveHeight","thickWall","_orginCenterPoint","rotation_z","u_gis3d_flood_size","glowColor","_stopTime","queryGridData","ms1","_css_transform_origin","crsy","_showBox","indices","querySelector","sexagesimal","secondsDifference","cos_po","textures","_framebuffer","data1.gis3d.cn","ArcGISTiledElevationTerrainProvider","Arguments","_sp","transY","Point","位置信息","ows:LowerCorner","_clampToTilesetFrame","startCompute","epsg","_objectsToExclude_auto","VERT_DATUM","CENTER","isWgs84","getQuadricBSplineFactor","multiplier","CloudCollection","osgb_1936","#1c197d","keyWord","UNBOUNDED","u_0","lngLatToMercator","divGraphicStyleConver","_tilesets","pn1","_getItemHtml","wfs","rectangularSensor","endsWith","Measure","showFrustum","_hasZIndex","_createViewer","查看此处坐标","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","sin_p14","debugAxis","Matrix4","_oneOverLog2FarDepthFromNearPlusOne","_tileLayer_removeTileHandler","_orginCenterPosition","OPAQUE","sinlat0","backFaceAlpha","_matrix4","yHalfAngle","_createWellWall","_hierarchyPositions","B_re","_删除测量","getNextLayerId","responseType","filename","_tilingScheme","preventDefault","_handleMouseDown","latitudeInterval","_updatePointerEvents","_pageSize","font_style","_backgroundColor_alpha_bak","toFixed","PositionProperty","_开启日照阴影","sceneFramebuffer","_distanceDisplayConditionCartesian2","icon","Lambert Conic Conformal (2SP)","s90","_map_mouseUpHandler","_last_clickTime","export","render","Image","_useTiles","Stop editing","_graphicLayer_leftDown","arrIDS","_i3sProvider","find","layer","isr93","_bindControl","onPointTrans"," compass-inner-active","handler","https://t{s}.tianditu.gov.cn/","hasMidPoint","_moveDistanceSum","_增加点","https://rt{s}.map.gtimg.com/tile?z={z}&x={x}&y={reverseY}&styleid=2&scene=0","_maximumDistance","editMovePoint","colorScheme","_onMiddleDownHandler","feature","stopRotateMatrix","showSun","_toOneCesiumVal","edgeColor","processFeatureCollection","_view","graphicLayer","WMS getMetadata请求出错","appearance","mouseDown","clrk66","_optionsLayersList","tailorRect","geocent","closeOnClick","resetFloodValue","postProcessStage","Grid shift grids not found","_updateImage","polylineP","substr","_mousePosition","_fillColor","Lambert Azimuthal Equal Area","009","bindUpdateEvent","getAllResponseHeaders","Cartographic","_frontFaceRS","title","_scanPlaneMode","removeLayer","lower","central_meridian","_last_clickPositionX","parentContainer","fromRotationTranslation","getCache","cameraChanged","_arrowLength","setHeight","DOUBLE","addItem","downGraphic","PROJCS","subtract","towgs84","px;","Crosscutting area","heightStep","materialOptions","planeStyleConver","官方ION","destroyPrimitives","fromIso8601","_processForRemoveLayer","_cache_getTemplateHtml_","toJSON","_getOutlinePositions","Delambre 1810 (Belgium)","_pitch_min","cloud","enabled","<?xml","scale3d","_map_mouseMove","moveTimer","visibility","Lang","Height difference","_arrowInstances","Latitude of false origin","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","bgColor","primitiveCollection","axis","distanceLegend","onDrag","_wall_maximumHeights","TRANSPARENT","BoundingSphere","init","toCartesians","moveStep","_matrixRotate","fa fa-camera-retro","Primitive","grainFrequency","framebuffer","grid","log","page","frameRateHeight","maximumRed","oncontextmenu","_lastDynamicPosition","coordinates","fa fa-tint","rayEllipsoid","matrix(","getMaxHeight","pois","allowDrillPick","StripeOrientation","SGS85","strokeColor","_highlight_mouseEventHandler","activateEdit","_modelEx","outlineEffect","ImageType","areaSurfaceMeasure","inverseTransformation","#546a53","lateralSurfaceMaterial","cameraMoveEnd","} ==='","getDefaultContextMenu","_arrData","textureScale","_initChildGraphic","unbindHighlight","radii_z","RIGHT","leadTime","_extent","getCacheOrAdd","_visibleColor","width: ","_getTerrainOptions","initialTilesLoaded","_labels","setOptions","reportSuccess","withAlpha","_contextmenuMgr","clearMoveTargetDelay","水平距离","instances","fa fa-spinner","cesium-viewer-timelineContainer","scaleByDistance_far","moveForward","_UniformState_updateFrustum_old","_destroyResource","\n(+","followedX","水平距離","globeHeight","strategy","hasOwnProperty","stepSize","followedZ","contourShow","_beginAnalysis","loadFields","双指按相反方向拖动","logDepth","trim","arrHB","DirectionalLight","locationBar","imageryLayers","CESIUM_3D_TILE","Type","south","getBaseLength","ScreenSpaceEventHandler","imageryProvider","graphics","_toOneJson","_scanePlaneXHalfAngle","lowerLongitude","geoJsonLayer_onClickHandler","显示三角网","_layerList","updateGraphic","#FF9742","_wallEntity","fragmentShader","color2","EPSG:4527","Quadrilateralized_Spherical_Cube","radii","中键按下拖拽,或者","updateFrustum","abc","_setPitchRange_rightDownHandler","semiMinorAxis","_mousWheelHandler","getCubicValue","_toOneJson_Point","_tooltipMgr","longitude","挖方體積","mapBound","renderType","Export image","LINES","toCartesian","value","digVolumeStr","#define FLAT\n","_marsOptions","add","normalY","offsetX","_graphic_move_x","_topHeights","_getTargetDistanceDisplayCondition","#ffff00","_updateOutlineStyle","https://restapi.amap.com/v3/place/polygon","DESTROY","关闭深度监测","_开启地形","editStart","gis3d-divGraphic ","getRealAlt","OrthographicFrustum","PointPrimitiveCollection","DistanceDisplayCondition","rotateUp","_texture","deleteTexture","_graphic_updatePosition","cesium-fullscreenButton","sources","alpha","toBottom","getAspectContourMaterial","splitNum","__esModule","未查询到相关结果!","_startPitch","startDraw","_createAppearance","cql_filter","_updatePositionsHook","maximumCone","negate","_height_original","_pickId","WHITE","createVertices","textureDef","middle","DefaultImageId","_isStart","tileset","pixelFormat","tileProvider","Appearance","dragger","Do not go underground","loadConfig","_横切面积","frontFaceAlphaByDistance","停止按軸旋轉","_showLateralSurfaces","datum","_getColorByColorMaterial","halfFloatingPointTexture","場景出圖","gamma","wholeDistance","wgs84","hue","graticule","drawAddPoint","_createGeometryInstance","updateExLine","_matrixFloat32","wallP","CustomShader","featureIndex","mod_airy","_tilesetFlat","EllipsoidGeodesic","_w/wmts?service=WMTS&version=1.0.0&request=GetTile&tilematrix={TileMatrix}&layer=","nearValue","data-index","pure","debuggerTileInfo","_bindExType","label","worldToModel","templateValues","parentContainerId","_cubeMap2","cos_phi","_updateStyleHook","LEFT","_downHandler","passState","binarySearch","_container_inner","bottomHeight","Enable black and white","_debugAxis","reflectivity","_关闭深度监测","_selectedIdTexture","UNIT_Z","KeyboardEventModifier","Universal Transverse Mercator System","<div>地址:","modelP","EPSG:4509","_noDestroy","_立方米","RenderState","onlySimpleType","raiseToTop","修改長度(X方向)","timeout","_createLabel","catch","_backFaceRS","右击菜单删除","fromRotationX","_changeHeadingPitch","openHighlight","_moveDistanceStep","greenwich","arrLayer","ymin","MaterialAppearance","autoClose","_initMeasureLable","ArcGIS 全球地形","_intersectionColor","_container_onMousedownHandler","selectedTerrainProviderViewModel","parentElement","clearDrawing","_popupId","Draw","texture","Unknown","hasMoveEdit","instanceId","culture","-outline","AnimationViewModel","_noPickEntity","North_American_Datum_1927","_enabledHook","numberOfDerivatives","phi","color() *vec4(1,1,1,","_updateExOpacity","z4490","get","stringify","getTime","debugAxisLength","timeField","busineData","defineProperty","setWhere","getAttrVal:出错了","EPSG:4550","getCoordinates","defs","_createOK","NONE","_tileHeight","ms2","iconSize","enableTilt","BlackAndWhiteEffectYes","scaleY","numLines","_domeLineCommand","開啓霧天氣","maximumLevel must not be called before the imagery provider is ready.","when","LINEAR","PolygonGeometry","rgba(240, 194, 12, ","post","duration3","_calculateAsynSurfacePosition","Cannot delete, the number of dots cannot be less than","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","_readyPromise","fa fa-codepen","CRS","orientationShow","splitPosition","radius_p2","_depthTest","_onEventHook","readCharicter","wgs","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=GRS80 +units=m +no_defs","isAnimate","transZ","addThing","_hasMoveEdit","_terrain_onLoadSuccess","clip","isEditing","Globe","sinX0","alert","showDigVolume","u_gis3d_clip_rows","dashPattern","//data.gis3d.cn/terrain","translucent","_hasTerrain","change","_unbindEditEvent","callback","_map","minimumZoomDistance","enablePickFeatures","_updateStyleBaseHook","closeTooltip","drawingBufferHeight","ViewportQuad","shape","ColorGeometryInstanceAttribute","_onLeftUpHandler","DATUM","typeOf","getMetadata","vertexFormat","batchTable","_updateDomAttributeByEvent","backToFirst","REPEAT","repeat_y","單擊完成繪制","middleDown","C_re","rotationDegree","addGraphic","setCameraOptions","step","Krassovsky, 1942","styleOptions","_wall_minimumHeights","_times","scaleX","_rebindCzmContainer","#fafa5a","flyToOptions","fa fa-yelp","maxPitch"];return(_0xa195=function(){return e})()}register$2("arcgis_wfs",ArcGisWfsLayer);var ArcGisWfsSingleLayer=function(){var t=4070,s=2822,r=1592,o=2196,l=2196,c=1592,i=_0x1658de,e=(_inherits(a,GeoJsonLayer),_createSuper(a));function a(){return _classCallCheck(this,a),e.apply(this,arguments)}return _createClass(a,[{key:"load",value:function(){var i=1540,a=_0x236b,n=this,e=0<arguments[a(s)]&&void 0!==arguments[0]?arguments[0]:{},e=(this.options=_objectSpread2(_objectSpread2({},this.options),e),this[a(r)].url),t=(this[a(r)][a(2196)]&&0<this.options[a(o)].length&&(e+="/"+this.options[a(l)][0]),{f:"json",inSr:4326,outSR:4326,outFields:"*",returnGeometry:!0,where:this[a(c)].where||"1=1"});this[a(c)].token&&(t.token=this.options[a(2392)]),fetchJson(_objectSpread2(_objectSpread2({},this[a(1592)]),{},{url:e+"/query",queryParameters:t,proxy:this._proxy})).then(function(e){var t=a;e?(e=arcgisToGeoJSON$1(e),n[t(i)](e)):n[t(1997)](EventType.load)})[a(3718)](function(e){logError$1("wfs请求出错",e)})}},{key:i(3761),value:function(e){this[i(t)]({where:e})}}]),a}(),index$4=(register$2("arcgis_wfs_single",ArcGisWfsSingleLayer),{__proto__:null,BaseLayer:BaseLayer,GroupLayer:GroupLayer,BaseTileLayer:BaseTileLayer,BaseGraphicLayer:BaseGraphicLayer,TerrainLayer:TerrainLayer,ArcGisCacheLayer:ArcGisCacheLayer,ArcGisTileLayer:ArcGisTileLayer,ArcGisLayer:ArcGisLayer,BaiduLayer:BaiduLayer,BingLayer:BingLayer,GaodeLayer:GaodeLayer,GeeLayer:GeeLayer,GoogleLayer:GoogleLayer,ImageLayer:ImageLayer,IonLayer:IonLayer,MapboxLayer:MapboxLayer,OsmLayer:OsmLayer,TdtLayer:TdtLayer,TencentLayer:TencentLayer,TmsLayer:TmsLayer,WmsLayer:WmsLayer,WmtsLayer:WmtsLayer,XyzLayer:XyzLayer,GridLayer:GridLayer,TileInfoLayer:TileInfoLayer,EmptyTileLayer:EmptyTileLayer,CzmGeoJsonLayer:CzmGeoJsonLayer,KmlLayer:KmlLayer,CzmlLayer:CzmlLayer,GraphicLayer:GraphicLayer,GraphicGroupLayer:GraphicGroupLayer,GeoJsonLayer:GeoJsonLayer,BusineDataLayer:BusineDataLayer,TilesetLayer:TilesetLayer,OsmBuildingsLayer:OsmBuildingsLayer,I3SLayer:I3SLayer,GraticuleLayer:GraticuleLayer,LodGraphicLayer:LodGraphicLayer,GeodePoiLayer:GeodePoiLayer,WfsLayer:WfsLayer,ArcGisWfsLayer:ArcGisWfsLayer,ArcGisWfsSingleLayer:ArcGisWfsSingleLayer,register:register$2,create:create$2,createTerrainProvider:createTerrainProvider,createImageryProvider:createImageryProvider$k}),Underground=function(){var e=3629,t=563,i=3817,a=477,n=3060,s=3118,r=3463,o=3817,l=3658,c=2842,h=_0x1658de,u=(_inherits(_,BaseThing),_createSuper(_));function _(){var e=_0x236b;return _classCallCheck(this,_),u[e(2026)](this,arguments)}return _createClass(_,[{key:"translucency",get:function(){return this._map.scene.globe.translucency}},{key:h(e),get:function(){return this._alpha},set:function(e){var t=h;this[t(2842)]=e,this._map&&(this.translucency[t(l)].nearValue=this[t(c)],this.translucency[t(3658)].farValue=this._alpha)}},{key:"color",get:function(){var e=h;return this._map[e(3118)].globe.undergroundColor},set:function(e){var t=h;this._map[t(3118)].globe.undergroundColor=e}},{key:"colorAlphaByDistance",get:function(){return this._map.scene.globe.undergroundColorAlphaByDistance},set:function(e){this[h(o)].scene.globe.undergroundColorAlphaByDistance=e}},{key:"_enabledHook",value:function(e){var t=h;this._map&&(this._map.scene.globe.depthTestAgainstTerrain=!!e||this.depthTestOld,this._map[t(s)][t(2722)].enableCollisionDetection=!e,this.translucency[t(r)]=e)}},{key:"_mountedHook",value:function(){var e,t=h;this.translucency[t(3658)]=new Cesium__namespace.NearFarScalar(100,0,900,1),this.translucency[t(3348)]=0,this.alpha=null!=(e=this.options.alpha)?e:.5,this.color=null!=(e=this.options.color)?e:Cesium__namespace.Color[t(2827)]}},{key:h(t),value:function(){var e=h;this.depthTestOld=Cesium__namespace[e(n)](this[e(3817)].scene.globe.depthTestAgainstTerrain),this._enabledHook(this.enabled)}},{key:"_removedHook",value:function(){var e=h;this[e(i)][e(3118)].globe[e(a)]=this.depthTestOld,this._enabledHook(!1)}}]),_}(),Sightline=function(){var e=2071,t=3605,a=2822,s=3605,r=3528,o=1671,l=3817,c=1018,i=1726,h=3156,u=477,_=941,p=784,m=2493,d=1997,f=941,y=1797,n=1499,v=1671,g=_0x1658de,C=(_inherits(x,BaseThing),_createSuper(x));function x(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,x),(t=C[t(1567)](this,i))._visibleColor=null!=(e=i.visibleColor)?e:new Cesium__namespace.Color(0,1,0,.5),t._hiddenColor=null!=(e=i.hiddenColor)?e:new Cesium__namespace.Color(1,0,0,.5),t._depthFailColor=i.depthFailColor,t.lines=[],t}return _createClass(x,[{key:"visibleColor",get:function(){return this[_0x236b(3528)]},set:function(e){this[_0x236b(3528)]=e}},{key:"hiddenColor",get:function(){return this._hiddenColor},set:function(e){this[_0x236b(v)]=e}},{key:"depthFailColor",get:function(){return this[_0x236b(n)]},set:function(e){this._depthFailColor=e}},{key:"_mountedHook",value:function(){}},{key:g(563),value:function(){}},{key:g(e),value:function(){}},{key:g(t),value:function(e,t){var i=g,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},a=(a[i(h)]&&(e=addPositionsHeight(e,a.offsetHeight)),this.fire(EventType.start),this._map.scene[i(941)][i(477)]||(this._map.scene.globe[i(u)]=!0,this.old_depthTestAgainstTerrain=this._map.scene[i(_)].depthTestAgainstTerrain),this[i(3817)].scene[i(1864)](),Cesium__namespace.Cartesian3.normalize(Cesium__namespace.Cartesian3.subtract(t,e,new Cesium__namespace[i(784)]),new Cesium__namespace[i(p)])),a=new Cesium__namespace[i(m)](e,a),a=this._map.scene.drillPickFromRay(a,2,this.lines);if(Cesium__namespace.defined(a)&&0<a.length&&Cesium__namespace.defined(a[0])&&Cesium__namespace.defined(a[0].position)){var a=a[0].position,n=Cesium__namespace.Cartesian3.distance(e,t);if(Cesium__namespace[i(p)][i(1937)](e,a)<n)return n={block:!0,position:a,entity:this._showPolyline(e,t,a)},this[i(d)](EventType.end,n),n}a={block:!1,entity:this._showPolyline(e,t)};return Cesium__namespace.defined(this[i(645)])&&(this._map.scene[i(f)].depthTestAgainstTerrain=this.old_depthTestAgainstTerrain,delete this.old_depthTestAgainstTerrain),this[i(d)](EventType[i(y)],a),a}},{key:g(1622),value:function(r,o){var l=3258,e=g,c=this,t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},h=interLine([r=t.offsetHeight?addPositionsHeight(r,t.offsetHeight):r,o],{splitNum:t.splitNum||50,minDistance:t[e(i)]});return this.fire(EventType.start),new Promise(function(s,e){computeSurfacePoints({map:c._map,positions:h}).then(function(e){var t=_0x236b;if(!e.noHeight)for(var i=0;i<h.length;i++){var a=h[i];if(Cesium__namespace.Cartographic[t(l)](a).height<=Cesium__namespace.Cartographic.fromCartesian(e.positions[i])[t(3159)])return a={block:!0,position:a,entity:c._showPolyline(r,o,a)},c.fire(EventType.end,a),void s(a)}var n={block:!1,entity:c[t(1535)](r,o)};c.fire(EventType.end,n),s(n)})})}},{key:"_showPolyline",value:function(e,t,i){var a,n=g;return i?(a=this[n(3817)].entities[n(s)](new Cesium__namespace.Entity({polyline:{positions:[e,i],width:2,material:this[n(r)],depthFailMaterial:this._depthFailColor}})),this.lines[n(1018)](a),i=this._map.entities.add(new Cesium__namespace.Entity({polyline:{positions:[i,t],width:2,material:this[n(o)],depthFailMaterial:this._depthFailColor}})),this.lines.push(i),[a,i]):(a=this[n(l)][n(2738)].add(new Cesium__namespace.Entity({polyline:{positions:[e,t],width:2,material:this._visibleColor,depthFailMaterial:this._depthFailColor}})),this[n(354)][n(c)](a),[a])}},{key:"clear",value:function(){for(var e=g,t=0,i=this.lines[e(a)];t<i;t++)this._map.entities[e(4071)](this[e(354)][t]);this.lines=[]}}]),x}(),fragmentShaderSource=_0x1658de(3014),Skyline=function(){var t=4071,i=3417,a=3159,n=2071,s=2180,r=2643,o=_0x1658de,l=(_inherits(c,BaseThing),_createSuper(c));function c(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,c),(t=l.call(this,a))[i(2745)]=null!=(e=a.color)?e:new Cesium__namespace.Color(1,0,0),t.width=null!=(e=a.width)?e:2,t[i(s)]=null!=(e=a.strokeType)?e:new Cesium__namespace.Cartesian3(!0,!1,!1),t.bjColor=null!=(e=a[i(r)])?e:new Cesium__namespace.Color(0,0,1),t[i(1937)]=null!=(e=a.distance)?e:500,t}return _createClass(c,[{key:o(3748),value:function(e){var t=o;e?this.postProcessStage||this._addedHook():this.postProcessStage&&this[t(n)]()}},{key:"_addedHook",value:function(){var e=o,t=this,i=this._map.camera;this.postProcessStage=new Cesium__namespace.PostProcessStage({fragmentShader:fragmentShaderSource,uniforms:{height:function(){var e=_0x236b;return i.positionCartographic[e(a)]},lineWidth:function(){return t.width},strokeType:function(){return t.strokeType},tjxColor:function(){return t.color},bjColor:function(){return t[_0x236b(2643)]},cameraPos:function(){return i.position},mbDis:function(){return t.distance}}}),this[e(3817)].scene.postProcessStages.add(this.postProcessStage)}},{key:"_removedHook",value:function(){var e=o;this.postProcessStage&&(this._map[e(3118)].postProcessStages[e(t)](this[e(i)]),this.postProcessStage.destroy(),delete this.postProcessStage)}}]),c}(),Shadows=function(){var e=3319,t=1744,i=1899,n=3817,s=352,r=3817,a=1899,o=1997,l=2502,c=1483,h=3817,u=530,_=1899,p=2168,m=3463,d=909,f=1899,y=3957,v=2067,g=555,C=1271,x=381,b=3118,k=3817,P=3817,w=_0x1658de,S=(_inherits(T,BaseThing),_createSuper(T));function T(){return _classCallCheck(this,T),S.apply(this,arguments)}return _createClass(T,[{key:"shadowMap",get:function(){var e=_0x236b;return this._map.scene[e(2528)]}},{key:"time",get:function(){var e=_0x236b,t=this[e(P)].clock.currentTime;return Cesium__namespace[e(984)].toDate(t)},set:function(e){var t=_0x236b;this._map[t(1899)].currentTime=Cesium__namespace.JulianDate[t(445)](e),this[t(405)]()}},{key:w(1542),get:function(){var e=w;return this[e(3817)][e(1899)].shouldAnimate}},{key:w(e),get:function(){var e;return null==(e=this[w(k)])?void 0:e.clock.multiplier},set:function(e){this.options.multiplier=e,this._map&&(this._map.clock.multiplier=e)}},{key:"_enabledHook",value:function(e){var t,i=w;this._map&&(this._map.viewer.shadows=e,null!=(t=this.options.terrain)&&!t||(this._map[i(v)][i(g)]=e?Cesium__namespace[i(C)][i(x)]:Cesium__namespace.ShadowMode.DISABLED),null!=(t=this.options.lighting)&&!t||(this._map[i(b)].globe.enableLighting=e))}},{key:w(t),value:function(){}},{key:"_addedHook",value:function(){var e,t=w;this._last_startTime=this[t(3817)].clock.startTime,this[t(2618)]=this._map[t(_)][t(p)],this._last_shouldAnimate=this._map.clock.shouldAnimate,this._last_clockRange=this[t(3817)][t(1899)].clockRange,this._last_multiplier=this._map.clock.multiplier,this._last_shadows=this._map.viewer.shadows,this._enabledHook(this[t(m)]),this._map.clock.shouldAnimate=!1,this._map.clock.clockRange=Cesium__namespace[t(d)].LOOP_STOP,this._map[t(f)].multiplier=null!=(e=this.options.multiplier)?e:1600,this.options[t(3003)]&&(this.time=this[t(1592)].time),this._map.on(EventType[t(y)],this._onClockTickHanlder,this)}},{key:w(2071),value:function(){var e=w;this[e(3817)].off(EventType.clockTick,this._onClockTickHanlder,this),this.clear(),this[e(3748)](!1),this._map.viewer[e(l)]=this._last_shadows,this[e(3817)].clock.clockRange=this._last_clockRange,this._map.clock.multiplier=this[e(c)],this[e(h)].clock[e(u)]=this[e(2193)]}},{key:"_onClockTickHanlder",value:function(){var e=w;this._map[e(a)].shouldAnimate&&this[e(o)](EventType[e(3814)])}},{key:w(3057),value:function(e,t,i){var a=w;this[a(n)]&&e&&t&&!(t<=e)&&(this._map.clock.startTime=Cesium__namespace[a(984)].fromDate(e),this._map.clock[a(s)]=Cesium__namespace.JulianDate[a(445)](i||e),this[a(r)].clock[a(2168)]=Cesium__namespace.JulianDate.fromDate(t),this[a(3817)].clock.shouldAnimate=!0)}},{key:"pause",value:function(){var e=w;this._map&&(this._map.clock[e(530)]=!1)}},{key:"proceed",value:function(){this._map&&(this._map.clock.shouldAnimate=!0)}},{key:"stop",value:function(){this[w(3817)]&&(this._map.clock.shouldAnimate=!1)}},{key:"clear",value:function(){var e=w;this.stop(),this.currentTime=new Date,this._map.clock[e(1100)]=this[e(2972)],this._map[e(i)].stopTime=this._last_stopTime}}]),T}(),Measure=function(){var e=3159,t=2671,i=1553,a=528,n=2891,s=769,r=2671,o=2671,l=2195,c=2671,h=2671,u=1631,_=3636,p=2822,m=3512,d=3636,f=1488,y=2822,v=1488,g=1266,C=3817,x=1592,b=1266,k=1754,P=2353,w=1266,S=_0x1658de,T=(_inherits(M,BaseThing),_createSuper(M));function M(){var e=_0x236b;return _classCallCheck(this,M),T[e(2026)](this,arguments)}return _createClass(M,[{key:S(3407),get:function(){return this._graphicLayer}},{key:"graphics",get:function(){return this._graphicLayer.graphics}},{key:"hasMeasure",get:function(){return 0<this[S(w)].length}},{key:"_enabledHook",value:function(e){}},{key:S(1744),value:function(){var i=1970,a=S,n=this;this._graphicLayer=new GraphicLayer(_objectSpread2(_objectSpread2({hasEdit:!0,eventParent:this,isContinued:this.options.isContinued,isAutoEditing:!this.options.isContinued},this[a(x)]),{},{private:!0})),this[a(b)].hasEdit&&this._graphicLayer.bindContextMenu([{text:this._map.getLangText("_删除测量"),icon:Icon[a(k)],show:function(e){var t=a,e=e[t(2353)];return!(null!=e&&e.inProgress&&!e[t(i)])},callback:function(e){var t,i=a,e=e[i(P)];e&&(t=e.parent,n[i(1266)][i(2377)](e),t&&n._graphicLayer.removeGraphic(t),n.fire(EventType[i(4071)],{mtype:n._measureType,graphic:e}))}}])}},{key:"_addedHook",value:function(){var e=S;this._map.addLayer(this[e(1266)])}},{key:"_removedHook",value:function(){this[S(C)].removeLayer(this._graphicLayer)}},{key:"distance",value:function(){var e=S,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.stopDraw(),t[e(1488)]="distanceMeasure",this[e(1266)].startDraw(t)}},{key:"distanceSurface",value:function(){var e=S,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.stopDraw(),t.type="distanceSurfaceMeasure",this._graphicLayer[e(3636)](t)}},{key:"section",value:function(){var e=S,t=0<arguments[e(y)]&&void 0!==arguments[0]?arguments[0]:{};return this[e(2671)](),t[e(v)]="sectionMeasure",this[e(g)].startDraw(t)}},{key:"area",value:function(){var e=S,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.stopDraw(),t[e(f)]="areaMeasure",this._graphicLayer.startDraw(t)}},{key:"areaSurface",value:function(){var e=S,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.stopDraw(),t[e(1488)]=e(m),this._graphicLayer[e(d)](t)}},{key:"volume",value:function(){var e=S,t=0<arguments[e(p)]&&void 0!==arguments[0]?arguments[0]:{};return this.stopDraw(),t[e(1488)]=t.depth?"volumeDepthMeasure":"volumeMeasure",this._graphicLayer.startDraw(t)}},{key:S(e),value:function(){var e=S,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.stopDraw(),t.type="heightMeasure",this._graphicLayer[e(_)](t)}},{key:"heightTriangle",value:function(){var e=S,t=0<arguments[e(2822)]&&void 0!==arguments[0]?arguments[0]:{};return this[e(h)](),t.type=e(u),this._graphicLayer.startDraw(t)}},{key:S(3879),value:function(){var e=S,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this[e(c)](),t[e(1488)]=e(2683),this._graphicLayer.startDraw(t)}},{key:"point",value:function(){var e=S,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this[e(o)](),t.type=e(l),this._graphicLayer.startDraw(t)}},{key:S(t),value:function(){var e=S;return this[e(1266)][e(r)]()}},{key:S(3736),value:function(){return this._graphicLayer.clearDrawing()}},{key:"endDraw",value:function(){var e=S;return this._graphicLayer[e(s)]()}},{key:"clear",value:function(){return this._graphicLayer.clear()}},{key:"updateUnit",value:function(i){this._graphicLayer.eachGraphic(function(e){var t=_0x236b;e.options[t(a)]=i,e.showText&&e[t(n)](i)})}},{key:S(i),value:function(e){var t=S;this._graphicLayer[t(1553)](e),_get(_getPrototypeOf(M.prototype),"destroy",this).call(this,e)}}]),M}(),FloodByGraphic=function(){var e=563,t=3057,i=1553,a=3407,n=1553,s=2385,r=1567,o=3817,l=1542,c=1994,h=3817,u=3432,_=3407,p=1979,m=1994,d=3277,f=3352,y=1592,v=1980,g=1980,C=2179,x=1994,b=3118,k=477,P=_0x1658de,w=(_inherits(S,BaseThing),_createSuper(S));function S(){return _classCallCheck(this,S),w.apply(this,arguments)}return _createClass(S,[{key:"positions",get:function(){return this.options.positions},set:function(e){var i,a,n=1468,s=_0x236b;(this.options.positions=e)?(i=[],a=[],e[s(2432)](function(e){var t=s,e=LngLatPoint.parse(e);e&&e.valid()&&(e[t(n)]=e.alt,a.push(e),i.push(e.toCartesian(!0)))}),this._poinst=a,this._hierarchyPositions=i,!this._map||(null!=(e=this.options.has3dtiles)?e:Cesium__namespace[s(3277)](this._map.pick3DTileset(i)))||(Cesium__namespace.defined(this._last_depthTestAgainstTerrain)||(this._last_depthTestAgainstTerrain=this._map[s(b)].globe[s(k)]),this[s(3817)].scene.globe[s(477)]=!0)):this._hierarchyPositions=null}},{key:P(3159),get:function(){var e,t=P;return null!=(e=this._extrudedHeight)?e:this.options[t(x)]},set:function(i){var a,n=P;this._extrudedHeight=i,this[n(y)].perPositionHeight&&(!this._poinst&&this.options.positions&&(this[n(v)]=this.options[n(g)]),this[n(C)])&&(a=[],this._poinst.forEach(function(e){var t=n,e=LngLatPoint.parse(e);e&&e[t(2313)]()&&(e.alt=e._alt_bak+i,a.push(e.toCartesian(!0)))}),this._hierarchyPositions=a),this.fire(EventType.change,{height:this[n(1979)]})}},{key:"speed",get:function(){var e=P;return this.options[e(2662)]},set:function(e){this.options.speed=e}},{key:"_mountedHook",value:function(){var i=P,a=this,n=(this[i(3407)]=new GraphicLayer({name:"淹没分析",private:!0}),this[i(p)]=0,new Cesium__namespace.PolygonHierarchy),e=_objectSpread2(_objectSpread2({color:"#007be6",opacity:.5,outline:!1},this.options.style||{}),{},{perPositionHeight:!0}),e=(this.options.perPositionHeight||(e.height=this._extrudedHeight,e.extrudedHeight=new Cesium__namespace.CallbackProperty(function(e){return a._extrudedHeight},!1)),new PolygonEntity({positions:new Cesium__namespace.CallbackProperty(function(e){var t=i;return a[t(f)]?(n.positions=a[t(3352)],n):null},!1),style:e}));this.graphic=e,Cesium__namespace.defined(this.options[i(m)])&&Cesium__namespace[i(d)](this.options.maxHeight)&&Cesium__namespace[i(3277)](this.options.positions)&&this.setOptions()}},{key:P(e),value:function(){var e=P;this._map.addLayer(this.graphicLayer),this[e(_)].addGraphic(this.graphic)}},{key:"_removedHook",value:function(){var e=P;this[e(h)][e(u)](this.graphicLayer),this.clear()}},{key:"setOptions",value:function(e){var t,i=P,e=(e&&(this.options=_objectSpread2(_objectSpread2({},this.options),e)),this.stop(),this.options[i(c)]),a=this.options.maxHeight;if(Cesium__namespace.defined(e)){if(Cesium__namespace.defined(a))return a<e&&(t=e,e=a,a=t),this._extrudedHeight=e,this._maxHeight=a,this[i(1980)]=this.options.positions,this;logError$1("maxHeight 请传入有效数值!",a)}else logError$1(i(739),e)}},{key:P(t),value:function(){var i=2662,a=3159,n=P,s=this;this[n(3352)]?(this.stop(),this[n(1542)]=!0,this[n(1997)](EventType.start),this._timeTik=setInterval(function(){var e,t=n;s._extrudedHeight>=s._maxHeight?s[t(405)]():(e=s._extrudedHeight+s[t(i)])>s._maxHeight?s[t(a)]=s._maxHeight:s[t(a)]=e},100)):logError$1(n(2862))}},{key:P(405),value:function(){this[P(l)]&&(this._timeTik&&(clearInterval(this._timeTik),delete this._timeTik),this.isStart=!1,this.fire(EventType.end))}},{key:P(1917),value:function(){var e=P;this.setOptions(),this[e(3057)]()}},{key:"clear",value:function(){var e=P;(this.positions=null)!=this[e(957)]&&(this[e(o)].scene.globe.depthTestAgainstTerrain=this._last_depthTestAgainstTerrain,delete this._last_depthTestAgainstTerrain),this[e(405)]()}},{key:P(i),value:function(e){var t=P;this.graphicLayer&&this[t(a)][t(n)](e),_get(_getPrototypeOf(S[t(s)]),t(n),this)[t(r)](this,e)}}]),S}(),Slope=function(){var e=1744,t=3605,i=3519,a=3428,n=3600,s=2360,o=3600,l=3159,c=3519,h=2801,u=3471,_=1592,p=1997,r=3118,g=3113,m=2801,d=3471,f=2822,y=3440,v=1316,C=3432,x=2822,b=1980,k=3407,P=1592,w=999,S=4045,T=_0x1658de,M=(_inherits(E,BaseThing),_createSuper(E));function E(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,E),(i=M.call(this,i))[t(P)][t(w)]=i.options.arrow||{},i.options.arrow[t(S)]=null==(e=i.options[t(w)].show)||e,i.options.arrow.color=null!=(e=i[t(1592)].arrow.color)?e:Cesium__namespace.Color.YELLOW,i[t(1592)].arrow.width=null!=(e=i.options.arrow.width)?e:15,i.options[t(999)].scale=null!=(e=i.options.arrow.scale)?e:.3,i}return _createClass(E,[{key:T(e),value:function(){var i=1740,a=T;this[a(k)]=new GraphicLayer(_objectSpread2(_objectSpread2({name:"坡度坡向",tooltip:function(e){var t=a,e=null==(e=e.graphic)?void 0:e[t(i)];if(e)return"坡度: ".concat(e.slopeStr1," (").concat(e.slopeStr2,")<br />坡向: ").concat(e.direction,"°")}},this[a(1592)]),{},{private:!0}))}},{key:T(563),value:function(){var e=T;this._map.addLayer(this.graphicLayer),this.options.positions&&0<this.options.positions[e(x)]&&this[e(3605)](this[e(1592)][e(b)],this.options)}},{key:"_removedHook",value:function(){var e=T;this._map[e(C)](this.graphicLayer),this.clear()}},{key:T(t),value:function(n){var s=2822,r=3440,o=3113,l=T,c=this,h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(n&&!(n.length<1)){n=LngLatArray[l(3483)](n),this._eventResult={positions:n},this[l(m)]=0,this[l(d)]=[],this._arrData=[];var e=null!=(e=h.splitNum)?e:8;if(2<n[l(f)]&&1<e)interPolygon({scene:this._map.scene,positions:n,has3dtiles:!1,onlyPoint:!0,splitNum:e}).then(function(e){var t=l;c.options.arrow[t(s)]?c[t(r)]=c.options.arrow.length:c._arrowLength=Cesium__namespace.Math.chordLength(e.granularity,c._map.scene.globe[t(o)][t(3251)])*c.options.arrow.scale,c._eventResult.maxHeight=e.maxHeight,c._eventResult.minHeight=e.minHeight,n=[];for(var i=0;i<e[t(741)].length;i++)n.push(e.list[i].pointDM);c._stateAll=n.length;for(var a=0;a<c._stateAll;a++)c[t(1316)](n[a],h)});else{this[l(y)]=null!=(e=this.options.arrow.length)?e:40,this._stateAll=n.length;for(var t=0;t<this._stateAll;t++)this[l(v)](n[t],h)}}}},{key:"_fxOnePoint",value:function(p,e){var t,m,d=3159,f=2822,y=T,v=this;p&&((t=getEllipseOuterPositions({position:p,radius:null!=(t=e[y(402)])?t:2,count:null!=(t=e.count)?t:4})).push(p),m=this._map[y(r)].globe[y(g)],computeSurfacePoints({scene:this._map.scene,positions:t,has3dtiles:e.has3dtiles})[y(2589)](function(e){var t=y;if(0!==v[t(1198)]){e.noHeight&&logWarn(t(2641));for(var i=m.cartesianArrayToCartographicArray(e[t(1980)]),e=i.pop(),a=0,n=i[0][t(d)],s=0,r=i[0].height,o=1;o<i[t(f)]-1;o++){var l=i[o];l.height>n&&(n=l.height,a=o),l.height<r&&(r=l.height,s=o)}var c=i[a],h=i[s],u=v[t(499)](e,c),_=v.getSlope(e,h);_<u?v._fxOnePointOk(p,e,c,u):v._fxOnePointOk(p,e,h,_)}}))}},{key:"_fxOnePointOk",value:function(e,t,i,a){var n=T,s=Cesium__namespace.Cartographic[n(o)](t),r=getOnLinePointByLen(s,Cesium__namespace[n(3428)].toCartesian(i),this._arrowLength),t=t.height>i[n(l)]?[s,r]:[r,s],i=getAngle(t[0],t[1],!0),r=180*Math.atan(a)/Math.PI,s={position:e,slope:r=Number(r.toFixed(2)),slopeStr1:r+"°",slopeStr2:(100*a).toFixed(2)+"%",direction:i};this[n(3519)]||(this._arrData=[]),this[n(c)].push(s),this[n(1997)](EventType.endItem,{data:s,index:this[n(h)]}),this.options.arrow[n(4045)]&&this[n(u)].push({positions:t,attr:s}),this[n(2801)]++,this[n(h)]>=this._stateAll&&(this[n(_)].arrow.show&&0<this[n(3471)].length&&(e=new PolylineCombine({instances:this._arrowInstances,style:_objectSpread2({materialType:PolylineArrow},this.options.arrow)}),this.graphicLayer[n(3840)](e)),this[n(p)](EventType.end,_objectSpread2(_objectSpread2({},this._eventResult||{}),{},{data:this._arrData})))}},{key:"getSlope",value:function(e,t){var i=T;if(e&&t)return Math.abs(e[i(3159)]-t.height)/Cesium__namespace.Cartesian3[i(1937)](Cesium__namespace[i(a)][i(n)](e),Cesium__namespace.Cartesian3[i(2874)](t.longitude,t[i(s)],e.height))}},{key:"clear",value:function(){var e=T;this.graphicLayer.clear(),this._arrowInstances=[],this[e(i)]=[],this._stateAll=0,this._stateOkIndex=0}}],[{key:"getSlope",value:function(n){var s=402,r=2207;return new Promise(function(t,e){var i=_0x236b,a=new E({positions:n.positions,splitNum:1,radius:n[i(s)],count:n[i(3143)],has3dtiles:n.has3dtiles,point:{show:!1},arrow:{show:!1}});a.addTo(n.map),n[i(r)]&&a.on(EventType.endItem,n.endItem),a.on(EventType.end,function(e){a.destroy(),n.callback&&n.callback(e),t(e)})})}}]),E}(),TerrainPlanClip=function(){var i=3817,a=3118,n=941,s=3463,u=4046,_=3019,p=2822,m=706,d=784,f=3096,y=3028,e=1404,t=1266,r=1592,o=1266,l=1266,c=3028,h=1592,v=872,g=1592,C=1404,x=3019,b=_0x1658de,k=(_inherits(P,BaseThing),_createSuper(P));function P(){return _classCallCheck(this,P),k.apply(this,arguments)}return _createClass(P,[{key:"positions",get:function(){return this._positions},set:function(e){var t=_0x236b;this[t(C)](),this[t(x)]=e,this.setPositions(e)}},{key:"diffHeight",get:function(){var e=_0x236b;return this[e(g)][e(872)]},set:function(t){var e=_0x236b;this.options[e(v)]=t,this[e(1266)]&&this._graphicLayer.eachGraphic(function(e){e.diffHeight=t})}},{key:b(3028),get:function(){var e=b;return this[e(h)][e(3028)]},set:function(e){var t=b;this.options[t(c)]=e,this._map&&this._positions&&this.setPositions(this._positions)}},{key:"_enabledHook",value:function(e){var t=b;this._map.scene.globe.clippingPlanes&&(this._map.scene[t(941)][t(1431)].enabled=e),this[t(o)]&&(this[t(l)][t(4045)]=e)}},{key:"_mountedHook",value:function(){}},{key:"_addedHook",value:function(){var e=b;this._graphicLayer=new GraphicLayer(_objectSpread2(_objectSpread2({},this[e(1592)]),{},{private:!0})),this._map.addLayer(this[e(t)]),this.options[e(1980)]&&0<this[e(r)].positions.length&&this[e(1746)](this.options.positions)}},{key:"_removedHook",value:function(){this[b(e)](),this._graphicLayer&&(this._map.removeLayer(this._graphicLayer),delete this._graphicLayer)}},{key:"setPositions",value:function(e){var t=b;if(this.clear(),!e||e.length<3)logError$1(t(u),e);else{e=LngLatArray.toCartesians(e);var i,a=[],n=(this[t(_)]=e)[t(p)],s=formatNum$1(getAngle(e[0],e[1]),2);i=!(-.02<s&&s<.02)&&s<formatNum$1(getAngle(e[0],e[2]),2),this.clipOutSide&&(i=!i);for(var r=0;r<n;++r){var o=(r+1)%n,l=Cesium__namespace.Cartesian3.midpoint(e[r],e[o],new Cesium__namespace[t(784)]),c=Cesium__namespace.Cartesian3.normalize(l,new Cesium__namespace[t(784)]),h=void 0,h=i?Cesium__namespace[t(784)].subtract(e[r],l,new Cesium__namespace.Cartesian3):Cesium__namespace.Cartesian3[t(3446)](e[o],l,new Cesium__namespace.Cartesian3),o=(h=Cesium__namespace.Cartesian3[t(1346)](h,h),Cesium__namespace.Cartesian3[t(m)](h,c,new Cesium__namespace.Cartesian3)),o=Cesium__namespace[t(d)].normalize(o,o),h=new Cesium__namespace[t(2577)](o,0),c=Cesium__namespace.Plane.getPointDistance(h,l);a.push(new Cesium__namespace.ClippingPlane(o,c))}this._map.scene.globe[t(1431)]=new Cesium__namespace.ClippingPlaneCollection({planes:a,edgeWidth:null!=(s=this.options.edgeWidth)?s:1,edgeColor:null!=(s=this.options[t(3404)])?s:Cesium__namespace[t(f)].WHITE,unionClippingRegions:this[t(y)],enabled:!0}),this.options.image&&(s=new Pit({style:this.options,positions:e}),this._graphicLayer.addGraphic(s))}}},{key:b(1404),value:function(){var e,t=b;this._map&&(this._positions=null,this._graphicLayer&&this._graphicLayer.clear(),null!=(e=this[t(i)][t(a)][t(n)])&&null!=(e=e.clippingPlanes)&&e[t(s)]&&(this._map.scene.globe.clippingPlanes[t(3463)]=!1),this._map.scene.globe[t(1431)]=void 0)}}]),P}(),TerrainEditVS=_0x1658de(1293),TerrainEditFS="\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n\nvoid main() {\n out_FragColor = vec4(1.0, 0.0, 0.0, 1.0);\n}\n",TerrainOldEditBase=function(){var e=2822,t=3555,l=3118,c=2142,h=3822,u=784,_=784,p=1937,r=2432,o=1352,m=3060,i=2646,a=370,E=1536,A=3974,L=2510,D=1126,I=784,O=378,R=1734,H=3034,F=3302,N=623,G=3096,z=2821,n=1882,s=1430,d=4045,f=1430,y=1945,v=2646,g=730,C=1553,x=3302,k=730,P=370,w=1328,S=2945,T=2822,M=370,j=3817,V=2782,$=2944,B=_0x1658de,U=(_inherits(b,BaseThing),_createSuper(b));function b(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,b),t=U.call(this,a),isMars3DCesium||logError$1("该功能需要引入gis3d修改版Cesium库(cesium库)才支持!",_assertThisInitialized(t)),t.heightVal=null!=(e=a.heightVal)?e:new Cesium__namespace[i($)](0,0,0,500),t._maxCanvasSize=null!=(e=a[i(994)])?e:4096,t[i(1945)]=[],t}return _createClass(b,[{key:"analysisOptions",get:function(){var e,t=_0x236b;return null==(e=this[t(j)])||null==(e=e.scene)||null==(e=e.globe)||null==(e=e[t(V)])||null==(e=e.tileProvider)||null==(e=e[t(1847)])?void 0:e.flood}},{key:"list",get:function(){return this._areaList}},{key:"showElseArea",get:function(){var e;return null==(e=null==(e=this[_0x236b(M)])?void 0:e.showElseArea)||e},set:function(e){this.analysisOptions.showElseArea=e}},{key:"positions",get:function(){return 0<this[_0x236b(T)]?this._areaList[0].positions:null},set:function(e){var t=_0x236b;this.clear(),this[t(S)](e)}},{key:B(e),get:function(){var e;return this._areaList?null==(e=this._areaList)?void 0:e.length:0}},{key:"_enabledHook",value:function(e){this.analysisOptions.enabled=e}},{key:"_addedHook",value:function(){var e,t=B;this[t(P)].showElseArea=null==(e=this.options.showElseArea)||e,this.options[t(1980)]&&this.addArea(this.options.positions),this.options.dynamicView&&(this._scopeIds_last=[],this[t(3817)].on(EventType[t(w)],this._map_preUpdateHandler,this))}},{key:B(2071),value:function(){var e=B;this.options.dynamicView&&(this._map.off(EventType.preUpdate,this._map_preUpdateHandler,this),this._scopeIds_last=[]),this.clear(),this.analysisOptions.enabled=!1,this.analysisOptions.inverMatrix=Cesium__namespace.Matrix4.IDENTITY,this.analysisOptions[e(k)]=void 0}},{key:"clear",value:function(){this._areaList=[],this._clearDraw()}},{key:"_clearDraw",value:function(){var e=B;this.analysisOptions[e(v)]=Cesium__namespace.Matrix4.IDENTITY,this.analysisOptions[e(g)]=void 0,this[e(3034)]&&(this[e(3034)][e(C)](),delete this._polygonTexture),this._framebuffer&&(this._framebuffer.destroy(),delete this[e(x)])}},{key:"getAreaById",value:function(e){var t=B;if(!isNumber(e))return e;for(var i=0;i<this[t(y)].length;i++){var a=this._areaList[i];if(a.id===e)return a}return null}},{key:"hideArea",value:function(e){var t=B,e=this.getAreaById(e);e&&(e[t(d)]=!1,e[t(f)]&&(e.pitPrimitive.show=!1),this._update())}},{key:B(2892),value:function(e){var t=B,e=this.getAreaById(e);e&&(e.show=!0,e.pitPrimitive&&(e[t(s)].show=!0),this._update())}},{key:"_removeAreaHook",value:function(e){}},{key:"removeArea",value:function(e){var t=B;(e=isNumber(e)?this.getAreaById(e):e)&&(this._removeAreaHook(e),removeArrayItem(this._areaList,e),this[t(n)]())}},{key:"_addAreaHook",value:function(e){}},{key:"addArea",value:function(e,t){var i,a=B;if(e&&0!==e.length)return i={show:!0,scope:!0,id:getGlobalId(),positions_original:e,positions:LngLatArray[a(3483)](e,!0)},this._areaList.push(i),logInfo("添加地形处理区域",LngLatArray.toArray(e)),this[a(3099)](i,t),this._update(),i}},{key:"_update",value:function(){var _,p,m,d,e,t,i,a,n,s,f=3780,y=2216,v=974,g=2822,C=1762,x=3442,b=3921,k=3712,P=2400,w=832,r=3481,o=1980,l=3605,c=1018,S=B,T=this,h=(this[S(E)](),new Cesium__namespace[S(784)]),u=[],M=(this._areaList[S(2432)](function(e){var t,i=S;e.show&&e.scope&&e[i(1980)]&&(t=Cesium__namespace[i(r)].fromPoints(e[i(o)]),Cesium__namespace[i(784)][i(l)](h,t.center,h),u[i(c)](e))}),this[S(3817)][S(3118)][S(A)]);0!==u.length&&(a=Cesium__namespace[S(784)].multiplyByScalar(h,1/u[S(2822)],new Cesium__namespace.Cartesian3),a=Cesium__namespace[S(L)].eastNorthUpToFixedFrame(a),this._inverMatrix=Cesium__namespace.Matrix4.inverse(a,new Cesium__namespace.Matrix4),d=m=-(p=_=99999999),u[S(2432)](function(e){for(var t=S,i=new Cesium__namespace[t(f)]({polygonHierarchy:new Cesium__namespace[t(y)](e.positions)}),a=(i=Cesium__namespace.PolygonGeometry[t(v)](i))[t(3296)],n=i.attributes.position.values,s=n[t(g)],r=[],o=[],l=0;l<s;l+=3){var c=new Cesium__namespace.Cartesian3(n[l],n[l+1],n[l+2]),c=Cesium__namespace.Matrix4[t(C)](T._inverMatrix,c,new Cesium__namespace.Cartesian3);c.z=0,r.push(c),o.push(c.x),o.push(c.y),o.push(c.z),_>=c.x&&(_=c.x),p>=c.y&&(p=c.y),m<=c.x&&(m=c.x),d<=c.y&&(d=c.y)}e[t(495)]=r;var i=new Float64Array(o),h=Cesium__namespace.BoundingSphere.fromVertices(i),i=new Cesium__namespace.Geometry({attributes:{position:new Cesium__namespace.GeometryAttribute({componentDatatype:Cesium__namespace.ComponentDatatype[t(x)],componentsPerAttribute:3,values:i})},indices:a,primitiveType:Cesium__namespace.PrimitiveType[t(832)],boundingSphere:h}),a=Cesium__namespace.ShaderProgram.fromCache({context:M,vertexShaderSource:TerrainEditVS,fragmentShaderSource:TerrainEditFS,attributeLocations:{position:0}}),i=Cesium__namespace.VertexArray[t(b)]({context:M,geometry:i,attributeLocations:a._attributeLocations,bufferUsage:Cesium__namespace.BufferUsage.STATIC_DRAW,interleave:!0}),u=new Cesium__namespace[t(k)];u[t(P)].near=-1e6,u.depthRange.far=1e6,e.drawAreaCommand=new Cesium__namespace.DrawCommand({boundingVolume:h,primitiveType:Cesium__namespace.PrimitiveType[t(w)],vertexArray:i,shaderProgram:a,renderState:u,pass:Cesium__namespace.Pass.TRANSLUCENT})}),a=(d-p)/(m-_),i=[_,p,m,d],(e={viewMatrix:Cesium__namespace.Matrix4.IDENTITY,inverseViewMatrix:Cesium__namespace[S(3342)].IDENTITY,frustum:new Cesium__namespace[S(D)],positionCartographic:{height:0,latitude:0,longitude:0},positionWC:new Cesium__namespace.Cartesian3(0,0,6e4),directionWC:new Cesium__namespace.Cartesian3(0,0,-1),upWC:new Cesium__namespace[S(I)](0,1,0),rightWC:new Cesium__namespace[S(I)](1,0,0),viewProjectionMatrix:Cesium__namespace.Matrix4.IDENTITY}).frustum.left=i[0],e[S(378)].top=i[3],e.frustum.right=i[2],e.frustum.bottom=i[1],e[S(O)].near=.1,e.frustum.far=-12e4,this._tailorRect=new Cesium__namespace[S(2944)](i[0],i[1],i[2]-i[0],i[3]-i[1]),i=1<a?(t=this[S(R)]/a,this._maxCanvasSize):(t=this._maxCanvasSize)*a,a=new Cesium__namespace.Texture({context:M,width:t,height:i,pixelFormat:Cesium__namespace[S(1439)].RGBA,pixelDatatype:Cesium__namespace[S(3899)].HALF_FLOAT,flipY:!1}),this._polygonTexture=a,this.analysisOptions.polygonTexture=this[S(H)],this[S(F)]=new Cesium__namespace.Framebuffer({context:M,colorTextures:[a],destroyAttachments:!1}),a=new Cesium__namespace[S(N)]({color:new Cesium__namespace[S(G)](0,0,0,0),framebuffer:this._framebuffer}),(n=new Cesium__namespace.PassState(M)).viewport=new Cesium__namespace[S(971)](0,0,t,i),(s=M.uniformState)[S(z)](e),a.execute(M),u.forEach(function(e){var t=S,e=e.drawAreaCommand;e&&(s.updatePass(e[t(2935)]),e.framebuffer=T._framebuffer,e.execute(M,n))}),this._beginAnalysis())}},{key:B(t),value:function(){var e=B;this.analysisOptions[e(i)]=this._inverMatrix,this[e(a)].polygonTexture=this._polygonTexture,this.analysisOptions.enabled=!0,this.analysisOptions.floodRect=this._tailorRect,this.analysisOptions.globe=!1}},{key:"_map_preUpdateHandler",value:function(){var i=2157,a=B,n=this;if(this._map&&this[a(1945)]&&(0!==this._areaList.length||0!==this._scopeIds_last.length)){var s=[],e=(this._areaList[a(r)](function(e){var t=a;e.show&&(e.scope=n._isInSceneCamera(e.positions),e[t(i)])&&s.push(e.id)}),s.length!==this[a(1352)].length);if(!e)for(var t=0;t<s[a(2822)];t++)if(this[a(o)][t]!==s[t]){e=!0;break}e&&(this[a(1882)](),this._scopeIds_last=Cesium__namespace[a(m)](s))}}},{key:B(1270),value:function(e){var t=B;if(e&&0!==e.length)for(var i=this._map[t(l)],a=this._map.getCenter(),n=i[t(2018)][t(c)],s=0;s<e.length;s++){var r=e[s],o=Cesium__namespace.SceneTransforms[t(422)](i,r,new Cesium__namespace.Cartesian2);if(o&&0<=o.x&&o.x<=i.context.drawingBufferWidth&&0<=o.y&&o.y<=i.context[t(h)])return!0;if(Cesium__namespace[t(u)].distance(r,n)<2e5)return!0;if(Cesium__namespace[t(_)][t(p)](r,a)<2e5)return!0}return!1}}]),b}(),GlobeFlodByMaterial="uniform vec4 u_mars_flood_val;//(基础淹没高度,当前淹没高度,最大淹没高度,默认高度差(最大淹没高度 - 基础淹没高度))\nuniform vec4 u_mars_flood_color;\n\nczm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n material.alpha = (materialInput.height < u_mars_flood_val.y) ? u_mars_flood_color.a : 0.0;\n material.diffuse = u_mars_flood_color.rgb;\n return material;\n}\n",FloodByMaterialType="FlodByMaterial",FloodByMaterial=function(){var e=405,t=1917,i=1404,a=3118,n=1404,s=1567,r=2258,o=2258,l=2258,c=3814,h=3817,u=1732,_=739,p=2258,m=370,d=2258,f=2673,y=3118,v=1336,g=3267,C=2945,x=965,b=370,k=2822,P=_0x1658de,w=(_inherits(S,TerrainOldEditBase),_createSuper(S));function S(){var e,t=0<arguments[_0x236b(k)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,S),(t=w.call(this,t)).color=null!=(e=t.options.color)?e:new Cesium__namespace.Color(.15,.7,.95,.5),t}return _createClass(S,[{key:"height",get:function(){var e;return null!=(e=this.heightVal.y)?e:this._minHeight},set:function(e){this.heightVal.y=e,this.analysisOptions.heightVal.y=e}},{key:"speed",get:function(){return this.options.speed||1},set:function(e){this.options.speed=Number(e)}},{key:"color",get:function(){return this._color},set:function(e){var t=_0x236b;this[t(x)]=getCesiumColor(e),this[t(b)]&&(this[t(370)].color=this._color)}},{key:"addArea",value:function(e,t){var i=_0x236b;return e=setPositionsHeight(e,0),_get(_getPrototypeOf(S.prototype),i(C),this).call(this,e,t)}},{key:P(3533),value:function(e){var t,i=P,e=(e&&(this.options=_objectSpread2(_objectSpread2({},this.options),e)),this.stop(),this.options.minHeight),a=this.options[i(u)];if(Cesium__namespace[i(3277)](e)){if(Cesium__namespace[i(3277)](a))return a<e&&(t=e,e=a,a=t),this._minHeight=e,this._maxHeight=a,this[i(p)]=new Cesium__namespace.Cartesian4(this._minHeight,this._minHeight,this._maxHeight,this._maxHeight-this._minHeight),this[i(m)][i(2258)].x=this[i(d)].x,this.analysisOptions.heightVal.y=this.heightVal.y,this.analysisOptions.color=this.color,this.analysisOptions[i(941)]=!1,this[i(370)].showElseArea=null==(t=this.options[i(f)])||t,this._map[i(y)][i(941)][i(v)]=Cesium__namespace.Material[i(g)](FloodByMaterialType),this;logError$1("maxHeight 请传入有效数值!",a)}else logError$1(i(_),e)}},{key:"_enabledHook",value:function(e){var t=P;_get(_getPrototypeOf(S.prototype),t(3748),this).call(this,e),e?this._map[t(3118)].globe[t(1336)]=Cesium__namespace.Material.fromType(FloodByMaterialType):(null==(e=this._map.scene.globe.material)?void 0:e.type)===FloodByMaterialType&&(this[t(h)].scene.globe.material=null)}},{key:P(3057),value:function(){var e=P;this.stop(),this.isStart=!0,this.fire(EventType[e(3057)]),this._map.on(EventType.clockTick,this[e(2077)],this)}},{key:P(2077),value:function(e){var t=P;this.heightVal.y+=this.speed/50,this[t(2258)].y>this[t(2258)].z?(this[t(2258)].y=this[t(r)].z,this.stop()):this.heightVal.y<this.heightVal.x?(this[t(o)].y=this.heightVal.x,this.stop()):(this.analysisOptions[t(2258)].y=this[t(l)].y,this.fire(EventType[t(c)],{height:this[t(2258)].y}))}},{key:P(e),value:function(){var e=P;this.isStart&&(this._map.off(EventType.clockTick,this._onClockTickHandler,this),this[e(1542)]=!1,this.fire(EventType.end))}},{key:P(t),value:function(){this.setOptions(),this.start()}},{key:P(i),value:function(){var e,t=P;this[t(405)](),(null==(e=this._map.scene[t(941)].material)?void 0:e.type)===FloodByMaterialType&&(this._map.scene.globe.material=null),this._map[t(a)].globe._surface[t(3652)][t(1847)].resetFloodValue(),_get(_getPrototypeOf(S.prototype),t(n),this)[t(s)](this)}}]),S}(),TerrainClip=(Cesium__namespace.Material[_0x1658de(2715)]=FloodByMaterialType,Cesium__namespace[_0x1658de(2517)]._materialCache.addMaterial(FloodByMaterialType,{fabric:{type:FloodByMaterialType,source:GlobeFlodByMaterial},translucent:!1}),function(){var t=370,i=3413,a=2377,n=1430,s=1592,r=613,o=1430,l=2646,c=1266,h=436,u=1266,_=4045,p=2409,m=_0x1658de,d=(_inherits(f,TerrainOldEditBase),_createSuper(f));function f(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,f),t.dynamicView=null==(e=t.dynamicView)||e,(e=d.call(this,t))._clipOutSide=null!=(t=t.clipOutSide)&&t,e}return _createClass(f,[{key:"analysisOptions",get:function(){var e;return null==(e=this._map)||null==(e=e.scene)||null==(e=e.globe)||null==(e=e._surface)||null==(e=e.tileProvider)||null==(e=e.marsOptions)?void 0:e.clip}},{key:m(3028),get:function(){var e;return null==(e=this[m(370)])?void 0:e.clipOutSide},set:function(e){this.analysisOptions.clipOutSide=e}},{key:"diffHeight",get:function(){return this[m(1592)].diffHeight},set:function(t){var e=m;this.options.diffHeight=t,this._graphicLayer&&this._graphicLayer[e(p)](function(e){e.diffHeight=t})}},{key:m(3748),value:function(e){var t=m;this.analysisOptions.enabled=e,this[t(1266)]&&(this._graphicLayer[t(_)]=e)}},{key:"_addedHook",value:function(){var e=m;this._map.scene[e(941)].depthTestAgainstTerrain||(this._map.scene[e(941)].depthTestAgainstTerrain=!0,this._hasChangeDepthTestAgainstTerrain=!0),this[e(u)]=new GraphicLayer(_objectSpread2(_objectSpread2({},this[e(1592)]),{},{private:!0})),this._map.addLayer(this._graphicLayer),_get(_getPrototypeOf(f.prototype),"_addedHook",this).call(this)}},{key:"_removedHook",value:function(){var e=m;this.clear(),this.analysisOptions.enabled=!1,this[e(370)][e(l)]=Cesium__namespace.Matrix4.IDENTITY,this.analysisOptions[e(730)]=void 0,this._map.removeLayer(this._graphicLayer,!0),delete this[e(c)],this._hasChangeDepthTestAgainstTerrain&&(this[e(3817)].scene.globe.depthTestAgainstTerrain=!1,this[e(h)]=!1)}},{key:"clear",value:function(){this._map.scene.globe._surface.tileProvider.marsOptions.resetClipValue(),_get(_getPrototypeOf(f.prototype),"clear",this).call(this),this._graphicLayer.clear()}},{key:m(3099),value:function(e,t){var i=m;this[i(s)][i(r)]&&(e[i(1430)]=new Pit({style:_objectSpread2(_objectSpread2({},this[i(s)]),t),positions:e.positions_original}),this._graphicLayer.addGraphic(e[i(o)]))}},{key:m(2507),value:function(e){var t=m;null!=e&&e.pitPrimitive&&(this._graphicLayer[t(a)](e[t(n)],!0),delete e.pitPrimitive)}},{key:"_beginAnalysis",value:function(){var e=m;this.analysisOptions.enabled=!0,this[e(370)][e(2646)]=this._inverMatrix,this[e(370)].polygonTexture=this._polygonTexture,this[e(t)][e(i)]=this._tailorRect}}]),f}()),ContourLine=function(){var e=1643,t=3748,i=3025,a=2672,n=1724,l=3159,c=2615,h=2822,u=2745,s=1883,r=2517,o=2375,_=1732,p=2672,m=1998,d=613,f=3118,y=941,v=1899,g=3817,C=1732,x=1097,b=1336,k=1097,P=1899,w=352,S=3111,T=2745,M=557,E=557,A=1563,L=1411,D=1567,I=2366,H=960,F=1290,N=1732,O=_0x1658de,G=(_inherits(R,TerrainOldEditBase),_createSuper(R));function R(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(t=G[i(D)](this,a))._contourShow=null==(e=a.contourShow)||e,t[i(557)]=null!=(e=a.spacing)?e:100,t._contourWidth=null!=(e=a.width)?e:1.5,t._contourColor=getCesiumColor(a.color,Cesium__namespace.Color[i(I)]),t._shadingType=null!=(e=a.shadingType)?e:"none",t._shadingAlpha=null!=(e=a.shadingAlpha)?e:.6,t.colorScheme=a.colorScheme||{elevation:{step:[0,.045,.1,.15,.37,.54,1],color:["#000000","#2747E0",i(H),"#D33038","#FF9742","#FF9742","#ffd700"]},slope:{step:[0,.29,.5,Math.sqrt(2)/2,.87,.91,1],color:[i(3008),i(F),"#D33B7D","#D33038","#FF9742",i(3578),"#ffd700"]},aspect:{step:[0,.2,.4,.6,.8,.9,1],color:["#000000",i(1290),"#D33B7D","#D33038","#FF9742","#FF9742","#ffd700"]}},t.minHeight=null!=(e=a.minHeight)?e:-414,t[i(N)]=null!=(e=a.maxHeight)?e:8777,t}return _createClass(R,[{key:O(3554),get:function(){return this._contourShow},set:function(e){this._contourShow=e,this.updateMaterial()}},{key:"shadingType",get:function(){return this._shadingType},set:function(e){var t=O;this._shadingType=e,this[t(L)]()}},{key:O(e),get:function(){return this._shadingAlpha},set:function(e){this._shadingAlpha=e,this.updateMaterial()}},{key:"width",get:function(){return this[O(458)]},set:function(e){var t=O;this._contourWidth=e,this[t(A)]&&(this.contourUniforms.width=e)}},{key:"spacing",get:function(){return this[O(E)]},set:function(e){this[O(M)]=e,this.contourUniforms&&(this.contourUniforms.spacing=e)}},{key:"color",get:function(){return this._contourColor},set:function(e){var t=O;this[t(S)]=getCesiumColor(e),this.contourUniforms&&(this.contourUniforms[t(T)]=e)}},{key:O(t),value:function(e){_get(_getPrototypeOf(R[O(2385)]),"_enabledHook",this).call(this,e),this.updateMaterial()}},{key:O(1404),value:function(){var e=O;_get(_getPrototypeOf(R.prototype),"clear",this)[e(1567)](this),this[e(x)]&&(this._map.scene.globe[e(b)]=this._last_material,delete this[e(k)]),this.contourUniforms=null,this._map.scene[e(941)]._surface.tileProvider.marsOptions.resetFloodValue(),this._hasResetEnableLighting&&(this[e(3817)].scene.globe.enableLighting=!1,this._map[e(P)][e(w)]=Cesium__namespace[e(984)].now(),delete this._hasResetEnableLighting)}},{key:O(3099),value:function(){var e=O;this.heightVal=new Cesium__namespace.Cartesian4(this.minHeight,this.minHeight,this[e(C)],this.maxHeight-this.minHeight),this.updateMaterial()}},{key:"updateMaterial",value:function(){var e,t,i,a=O,n=this[a(2906)];this.contourShow?((t=("elevation"===n?((i=(e=this.getElevationContourMaterial())[a(1590)][a(s)].uniforms).minimumHeight=this[a(1994)],i.maximumHeight=this.maxHeight,e.materials.contourMaterial):"slope"===n?(i=(e=this.getSlopeContourMaterial()).materials.slopeRampMaterial.uniforms,e.materials.contourMaterial):"aspect"===n?(i=(e=this[a(3631)]()).materials.aspectRampMaterial[a(1998)],e.materials.contourMaterial):e=Cesium__namespace[a(r)].fromType(a(2357))).uniforms).width=this._contourWidth,t.spacing=this._contourSpacing,t.color=this._contourColor):"elevation"===n?((i=(e=Cesium__namespace.Material[a(3267)]("ElevationRamp")).uniforms).minimumHeight=this[a(1994)],i[a(o)]=this[a(_)]):"slope"===n?i=(e=Cesium__namespace.Material.fromType(a(p)))[a(m)]:"aspect"===n&&(i=(e=Cesium__namespace.Material.fromType("AspectRamp"))[a(1998)]),"none"!==n&&(i[a(d)]=this.getColorRamp(n)),"slope"===n||"aspect"===n?this._map.scene.globe.enableLighting||(this[a(3817)][a(f)][a(y)].enableLighting=!0,(i=new Date).setHours(10),this._map.clock.currentTime=Cesium__namespace.JulianDate.fromDate(new Date(i)),this._hasResetEnableLighting=!0):this._hasResetEnableLighting&&(this._map.scene[a(y)][a(1849)]=!1,this._map[a(v)].currentTime=Cesium__namespace.JulianDate.now(),delete this._hasResetEnableLighting),this.contourUniforms=t,this[a(1097)]&&!this._map.scene.globe.material||(this._last_material=this[a(g)].scene[a(y)].material),this._map.scene.globe.material=e}},{key:"getColorRamp",value:function(e){var t=O,i=document.createElement("canvas"),a=(i.width=100,i[t(l)]=1,i[t(c)]("2d",{willReadFrequently:!0})),n=(a.globalAlpha=this.shadingAlpha,a.createLinearGradient(0,0,100,0)),s=this[t(3398)][e];if(0<(null==s||null==(e=s[t(3842)])?void 0:e.length))for(var r=0,o=s.step[t(h)];r<o;r++)n.addColorStop(s[t(3842)][r],s[t(u)][r]);return a.fillStyle=n,a.fillRect(0,0,100,1),i}},{key:"getElevationContourMaterial",value:function(){return new Cesium__namespace.Material({fabric:{type:"ElevationColorContour",materials:{contourMaterial:{type:"ElevationContour"},elevationRampMaterial:{type:"ElevationRamp"}},components:{diffuse:"contourMaterial.alpha == 0.0 ? elevationRampMaterial.diffuse : contourMaterial.diffuse",alpha:"max(contourMaterial.alpha, elevationRampMaterial.alpha)"}},translucent:!1})}},{key:"getSlopeContourMaterial",value:function(){var e=O;return new Cesium__namespace.Material({fabric:{type:e(i),materials:{contourMaterial:{type:"ElevationContour"},slopeRampMaterial:{type:e(a)}},components:{diffuse:e(n),alpha:"max(contourMaterial.alpha, slopeRampMaterial.alpha)"}},translucent:!1})}},{key:O(3631),value:function(){return new Cesium__namespace[O(2517)]({fabric:{type:"AspectColorContour",materials:{contourMaterial:{type:"ElevationContour"},aspectRampMaterial:{type:"AspectRamp"}},components:{diffuse:"contourMaterial.alpha == 0.0 ? aspectRampMaterial.diffuse : contourMaterial.diffuse",alpha:"max(contourMaterial.alpha, aspectRampMaterial.alpha)"}},translucent:!1})}}]),R}(),TerrainEditBase=function(){var e=3748,t=563,i=2945,a=1018,n=3099,s=2074,r=2074,o=4045,l=1945,c=370,h=_0x1658de,u=(_inherits(_,BaseThing),_createSuper(_));function _(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,_),e=u.call(this,e),isMars3DCesium||logError$1("该功能需要引入gis3d修改版Cesium库(cesium库)才支持!",_assertThisInitialized(e)),e._areaList=[],e}return _createClass(_,[{key:"list",get:function(){return this._areaList}},{key:"length",get:function(){var e;return this._areaList?null==(e=this._areaList)?void 0:e.length:0}},{key:h(e),value:function(e){var t=h;this[t(c)][t(3463)]=e}},{key:h(t),value:function(){var t=this;this.options.area&&this.options.area.forEach(function(e){t[_0x236b(2945)](e.positions,e)})}},{key:"_removedHook",value:function(){this.analysisOptions.enabled=!1}},{key:"clear",value:function(){this._areaList=[]}},{key:"getAreaById",value:function(e){var t=h;if(!isNumber(e))return e;for(var i=0;i<this[t(l)][t(2822)];i++){var a=this._areaList[i];if(a.id===e)return a}return null}},{key:"hideArea",value:function(e){var t=h,e=this[t(r)](e);e&&(e.show=!1,e.downGraphic&&(e[t(3444)][t(o)]=!1),e[t(1085)]&&(e.upGraphic[t(o)]=!1),this[t(1882)]())}},{key:"showArea",value:function(e){e=this[h(s)](e);e&&(e.show=!0,e.downGraphic&&(e.downGraphic.show=!0),e.upGraphic&&(e.upGraphic.show=!0),this._update())}},{key:h(2507),value:function(e){}},{key:"removeArea",value:function(e){(e=isNumber(e)?this.getAreaById(e):e)&&(this._removeAreaHook(e),removeArrayItem(this._areaList,e),this._update())}},{key:h(3099),value:function(e){}},{key:h(i),value:function(e,t){var i=h;if(e&&0!==e.length)return e=_objectSpread2(_objectSpread2({show:!0,id:getGlobalId()},t),{},{positions:LngLatArray.toCartesians(e)}),this._areaList[i(a)](e),this[i(n)](e,t),this[i(1882)](),e}},{key:"_update",value:function(){}}]),_}(),TerrainFlat=function(){var e=370,t=1882,i=3118,a=1945,h=351,u=351,n=2782,s=3652,r=3463,_=_0x1658de,o=(_inherits(l,TerrainEditBase),_createSuper(l));function l(){return _classCallCheck(this,l),o.apply(this,arguments)}return _createClass(l,[{key:_(e),get:function(){var e,t=_;return null==(e=this._map)||null==(e=e.scene)||null==(e=e.globe)||null==(e=e[t(2782)])||null==(t=e.tileProvider)||null==(e=t.marsOptions)?void 0:e.flat}},{key:"_enabledHook",value:function(e){this.analysisOptions.enabled=e}},{key:"_addedHook",value:function(){var e=_;_get(_getPrototypeOf(l.prototype),e(563),this).call(this),this.analysisOptions[e(r)]=this.enabled}},{key:"_removedHook",value:function(){this.clear(),this.analysisOptions.enabled=!1}},{key:"clear",value:function(){var e=_;this._map.scene.globe[e(n)][e(s)].marsOptions.resetFlatValue(),this.analysisOptions[e(3463)]=this.enabled,_get(_getPrototypeOf(l.prototype),"clear",this).call(this)}},{key:_(t),value:function(){var n,s,r,o,l=3159,c=_,e=this.analysisOptions;0<this._areaList.length?(n=this._map[c(i)].globe.ellipsoid,s=[],r=[],o=[],this[c(a)].forEach(function(e){var t,i,a=c;e.show&&e.positions&&(t=n.cartesianArrayToCartographicArray(e.positions),i=t[0].height,t.forEach(function(e){i=Math.min(i,e.height)}),s.push(i-(e[a(l)]||0)),r.push(t),o.push(Cesium__namespace[a(2036)].fromCartographicArray(t)))}),e.heights=s,e[c(h)]=o,e.areas=r):(e.heights=void 0,e[c(u)]=void 0,e.areas=void 0),e.hasUpdate=!0}}]),l}(),TerrainUplift=function(){var e=2071,t=2507,r=1945,o=1142,i=3444,a=1266,_=3428,p=3258,m=3924,d=3159,f=1994,y=3444,l=872,c=1980,h=2557,n=2782,s=1266,u=436,v=1592,g=3463,C=1266,x=370,b=2682,k=1847,P=_0x1658de,w=(_inherits(S,TerrainEditBase),_createSuper(S));function S(){return _classCallCheck(this,S),w.apply(this,arguments)}return _createClass(S,[{key:"analysisOptions",get:function(){var e,t=_0x236b;return null==(e=this._map)||null==(e=e[t(3118)])||null==(e=e.globe)||null==(e=e._surface)||null==(e=e.tileProvider)||null==(e=e[t(k)])?void 0:e[t(2773)]}},{key:"showUp",get:function(){var e;return null==(e=this.analysisOptions)?void 0:e.showUp},set:function(e){this.analysisOptions.showUp=e}},{key:P(1142),get:function(){var e;return null!=(e=this.options.upHeight)?e:0},set:function(e){var t=P;if(this.options.upHeight=e,0<this._areaList[t(2822)]){this.analysisOptions.height=e,this[t(x)].hasUpdate=!0;for(var i=0;i<this._areaList.length;i++){var a=this._areaList[i];a.upGraphic&&a.upGraphic[t(b)](e)}}}},{key:"_enabledHook",value:function(e){var t=P;this.analysisOptions.enabled=e,this[t(C)]&&(this._graphicLayer.show=e)}},{key:"_addedHook",value:function(){var e=P;1===this._map.scene[e(941)].terrainExaggeration&&(this._map.scene.globe[e(3005)]=1.001),this._map.scene.globe.depthTestAgainstTerrain||(this._map.scene.globe.depthTestAgainstTerrain=!0,this[e(u)]=!0),this._graphicLayer=new GraphicLayer(_objectSpread2(_objectSpread2({},this[e(v)]),{},{private:!0})),this._map.addLayer(this._graphicLayer),_get(_getPrototypeOf(S.prototype),e(563),this).call(this),this.analysisOptions[e(g)]=this[e(3463)]}},{key:P(e),value:function(){var e=P;this.clear(),this[e(370)].enabled=!1,this._map[e(3432)](this._graphicLayer,!0),delete this._graphicLayer,this._hasChangeDepthTestAgainstTerrain&&(this._map[e(3118)][e(941)].depthTestAgainstTerrain=!1,this._hasChangeDepthTestAgainstTerrain=!1)}},{key:P(1404),value:function(){var e=P;this._map.scene.globe[e(n)].tileProvider[e(1847)].resetUpliftValue(),this.analysisOptions.enabled=this[e(3463)],_get(_getPrototypeOf(S[e(2385)]),"clear",this).call(this),this[e(s)].clear()}},{key:"_addAreaHook",value:function(i,a){var e,n=P,s=this;(a=_objectSpread2(_objectSpread2({},this.options),a)).image&&a[n(l)]&&computeSurfaceLine({map:this._map,positions:i[n(c)][n(h)](i.positions[0]),has3dtiles:!1,splitNum:null!=(e=a.splitNum)?e:30}).then(function(e){var t=n;i.positionsNew=e[t(1980)],s._addPitGraphic(i,a)})}},{key:P(2104),value:function(e,t){for(var i=P,a=e[i(1318)],n=[],s=Number.MAX_VALUE,r=0,o=a.length;r<o;r++){var l=Cesium__namespace[i(_)][i(p)](a[r]),s=Math[i(m)](s,l[i(d)]);n[i(1018)](l.height)}var c=s-t.diffHeight,h=Array(a.length).fill(c),u=(e[i(f)]=s,e.diffHeight=t.diffHeight,e[i(3444)]=new PitEntity({style:t,data:{height:c,minHeight:s,positionsWall:a,minimumHeights:h,maximumHeights:n},positions:e.positions}),this._graphicLayer.addGraphic(e[i(y)]),this.upHeight);this.showUp&&0!==u&&(e.upGraphic=new PitEntity({style:t,data:{height:c,minHeight:s,positionsWall:a,minimumHeights:h,maximumHeights:n},positions:e.positions}),this._graphicLayer[i(3840)](e.upGraphic),e.upGraphic.setUpHeight(u))}},{key:P(t),value:function(e){var t=P;null!=e&&e.downGraphic&&(this._graphicLayer.removeGraphic(e.downGraphic,!0),delete e[t(i)]),null!=e&&e.upGraphic&&(this[t(a)].removeGraphic(e.upGraphic,!0),delete e.upGraphic)}},{key:"_update",value:function(){var i,a,n,s=P,e=this.analysisOptions;0<this._areaList[s(2822)]?(i=this[s(3817)].scene.globe.ellipsoid,a=[],n=[],this[s(r)].forEach(function(e){var t=s;e.show&&e.positions&&(e=i.cartesianArrayToCartographicArray(e.positions),a.push(e),n[t(1018)](Cesium__namespace.Rectangle.fromCartographicArray(e)))}),e.height=this[s(o)],e.rectangles=n,e.areas=a):(e.height=void 0,e[s(351)]=void 0,e.areas=void 0),e.hasUpdate=!0}}]),S}(),LimitHeight=function(){var e=3698,t=1404,i=2283,a=2818,n=2283,s=3698,r=2818,o=2283,l=1592,c=3159,h=_0x1658de,u=(_inherits(_,BaseThing),_createSuper(_));function _(){return _classCallCheck(this,_),u.apply(this,arguments)}return _createClass(_,[{key:"layer",get:function(){return this._layer}},{key:"positions",get:function(){return this.options.positions},set:function(e){this[_0x236b(1592)].positions=e,this._createGraphic()}},{key:"height",get:function(){var e=_0x236b;return this.options[e(c)]||0},set:function(e){var t=_0x236b;this.options.height=e,this[t(3979)]()}},{key:h(e),get:function(){return this[h(l)].bottomHeight||0},set:function(e){this.options.bottomHeight=e,this._createGraphic()}},{key:"_mountedHook",value:function(){this._layer=new GraphicLayer({private:!0})}},{key:"_addedHook",value:function(){var e=h;this._map[e(1313)](this[e(2818)]),this[e(1592)].positions&&(this.positions=this.options.positions)}},{key:"_removedHook",value:function(){var e=h;this[e(o)]&&(this._layer[e(2377)](this._graphic),delete this._graphic),this._map.removeLayer(this[e(2818)])}},{key:"_createGraphic",value:function(){var e,t=h;this._graphic&&(this[t(2818)].removeGraphic(this[t(2283)]),delete this[t(n)]),this[t(1592)].positions&&(e=LngLatArray.toCartesians(this.options.positions),this._graphic=new PolygonPrimitive({positions:e,style:_objectSpread2(_objectSpread2({},this.options),{},{height:this[t(s)]+this.height,diffHeight:1e4,perPositionHeight:!1,classification:!0,classificationType:Cesium__namespace.ClassificationType.CESIUM_3D_TILE}),asynchronous:!1}),this[t(r)].addGraphic(this._graphic))}},{key:h(t),value:function(){var e=h;this[e(1592)].positions=null,this[e(i)]&&(this[e(a)].removeGraphic(this._graphic),delete this._graphic)}}]),_}(),ModelPlanClip=function(){var t=2353,i=2953,a=3513,n=2362,s=2362,r=2532,o=2519,l=2803,c=489,e=489,h=_0x1658de,u=(_inherits(_,TilesetPlanClip),_createSuper(_));function _(){return _classCallCheck(this,_),u.apply(this,arguments)}return _createClass(_,[{key:"clipTarget",get:function(){return this[_0x236b(e)]},set:function(e){var t=_0x236b;this._model=e,this[t(2953)]=null,this.clippingPlanes&&(this[t(c)].clippingPlanes=this.clippingPlanes)}},{key:h(2353),get:function(){return this._graphic},set:function(e){var t=h;(this._graphic=e).entity?(this._model=e.entity.model,this[t(s)]=Cesium__namespace.Transforms[t(2073)](getPositionValue(e[t(r)]))):e instanceof Cesium__namespace[t(o)]?(this._model=e.model,this._modelMatrix=Cesium__namespace.Transforms.eastNorthUpToFixedFrame(getPositionValue(e[t(2532)]))):e.primitive?(this._model=e.primitive,this._modelMatrix=e.modelMatrix):e instanceof Cesium__namespace[t(l)]&&(this._model=e,this._modelMatrix=e.modelMatrix)}},{key:"inverseMatrix",get:function(){var e=h;return!this._inverseMatrix&&this._modelMatrix&&(this[e(i)]=Cesium__namespace[e(3342)][e(a)](this[e(n)],new Cesium__namespace[e(3342)])),this._inverseMatrix}},{key:h(1744),value:function(){var e=h;this.options[e(t)]&&(this.graphic=this.options[e(2353)])}}]),_}(),TilesetBoxClip=(ModelPlanClip.Type=ClipType,function(){var e=2532,t=1339,i=2071,a=3278,n=1431,l=2083,c=784,h=1592,u=3028,_=1266,p=3644,m=1592,s=1266,r=1266,o=3278,d=1592,f=1339,y=1592,v=1592,g=1111,C=2204,x=3342,b=3513,k=2818,P=3650,w=_0x1658de,S=(_inherits(T,BaseThing),_createSuper(T));function T(){return _classCallCheck(this,T),S.apply(this,arguments)}return _createClass(T,[{key:"clipTarget",get:function(){return this._tileset},set:function(e){var t=_0x236b;this._tileset=e,this[t(2953)]=null,Cesium__namespace.defined(this.options.position)&&(this.position=this[t(1592)].position)}},{key:w(3385),get:function(){return this._layer},set:function(t){var e=w,i=this;(this[e(k)]=t).loadOk?this.clipTarget=t[e(P)]:t.on(EventType.load,function(e){i.clipTarget=t.tileset})}},{key:"planes",get:function(){return this.clippingPlanes}},{key:"inverseMatrix",get:function(){var e,t=w;return this._inverseMatrix||(e=(e=this._tileset.root[t(2477)])&&e[t(C)](Cesium__namespace.Matrix4.IDENTITY)||!e?Cesium__namespace[t(2510)].eastNorthUpToFixedFrame(this._tileset.boundingSphere.center):Cesium__namespace.Matrix4.fromArray(this._tileset.root.transform),this._inverseMatrix=Cesium__namespace[t(x)][t(b)](e,new Cesium__namespace.Matrix4)),this._inverseMatrix}},{key:"center",get:function(){return this._layer?this._layer.position:this._tileset.boundingSphere.center}},{key:w(e),get:function(){return this[w(1111)]},set:function(e){this[w(g)]=LngLatPoint.toCartesian(e),this.redraw()}},{key:"dimensions",get:function(){return this[w(v)].dimensions},set:function(e){var t=w;this[t(y)].dimensions=e,this[t(1549)]()}},{key:w(t),get:function(){return this.options.showBox},set:function(e){var t=w;this.options[t(f)]=e,this.options[t(f)]?(this._graphicLayer||(this[t(1266)]=new GraphicLayer(_objectSpread2(_objectSpread2({},this.options),{},{private:!0}))),this._graphicLayer.show=!0):this._graphicLayer&&(this._graphicLayer[t(4045)]=!1),this.redraw()}},{key:"_mountedHook",value:function(){var e=w;this.options.showBox&&(this._graphicLayer=new GraphicLayer(_objectSpread2(_objectSpread2({},this.options),{},{private:!0}))),this.options.layer?this[e(3385)]=this.options.layer:this[e(d)].tileset&&(this.clipTarget=this[e(d)][e(3650)])}},{key:"_addedHook",value:function(){var e=w;this._graphicLayer&&this._map.addLayer(this._graphicLayer),this[e(o)]&&Cesium__namespace.defined(this.options.position)&&(this.position=this.options.position)}},{key:w(i),value:function(){var e=w;this.clear(),this[e(s)]&&this._map[e(3432)](this[e(r)])}},{key:w(1549),value:function(){var e,t,i,a,n,s,r,o=w;this.position&&this.dimensions&&(e=this.dimensions.x/2,r=this.dimensions.y/2,t=this.dimensions.z/2,n=this[o(l)],a=Cesium__namespace.Matrix4[o(1762)](n,this[o(1494)],new Cesium__namespace[o(784)]),n=Cesium__namespace.Matrix4[o(1762)](n,this[o(2532)],new Cesium__namespace.Cartesian3),s=a.x-n.x,i=a.y-n.y,a=a.z-n.z,n=[new Cesium__namespace.ClippingPlane(new Cesium__namespace.Cartesian3(0,0,1),a-t),new Cesium__namespace.ClippingPlane(new Cesium__namespace[o(c)](0,0,-1),-t-a),new Cesium__namespace[o(1001)](new Cesium__namespace[o(784)](1,0,0),s-e),new Cesium__namespace.ClippingPlane(new Cesium__namespace.Cartesian3(-1,0,0),-e-s),new Cesium__namespace.ClippingPlane(new Cesium__namespace[o(784)](0,1,0),i-r),new Cesium__namespace.ClippingPlane(new Cesium__namespace.Cartesian3(0,-1,0),-r-i)],s=new Cesium__namespace.ClippingPlaneCollection({planes:n,edgeWidth:null!=(t=this.options.edgeWidth)?t:0,edgeColor:null!=(a=this[o(h)].edgeColor)?a:Cesium__namespace.Color.WHITE,unionClippingRegions:null!=(e=this[o(1592)][o(u)])&&e}),this.clippingPlanes=s,this.clipTarget&&(this.clipTarget[o(1431)]=s),this.options.showBox)&&(this[o(_)].clear(),r=new BoxEntity({position:this.position,style:_objectSpread2({dimensions:this[o(1592)].dimensions,color:Cesium__namespace.Color[o(p)].withAlpha(.2)},this[o(m)].boxStyle||{})}),this._graphicLayer.addGraphic(r))}},{key:"clear",value:function(){var e,t=w;this._graphicLayer&&this._graphicLayer[t(1404)](),this.clippingPlanes&&delete this[t(1431)],null!=(e=this[t(a)])&&null!=(e=e[t(n)])&&e.enabled&&(this.clipTarget.clippingPlanes[t(3463)]=!1),this[t(3278)].clippingPlanes=void 0}}]),T}()),scratchCurrentDirection=new Cesium__namespace.Cartesian3,scratchDeltaPosition=new Cesium__namespace.Cartesian3,scratchNextPosition=new Cesium__namespace.Cartesian3,scratchTerrainConsideredNextPosition=new Cesium__namespace.Cartesian3,scratchNextCartographic=new Cesium__namespace.Cartographic,RoamType={DIRECTION_NONE:0,DIRECTION_FORWARD:1,DIRECTION_BACKWARD:2,DIRECTION_LEFT:3,DIRECTION_RIGHT:4},FirstPersonRoam=function(){var e=1009,t=2833,i=3893,a=3463,n=337,s=2117,r=3012,o=1124,l=3817,c=3275,h=2608,u=2722,_=1193,p=707,m=2018,d=3852,f=3852,y=2018,v=1124,g=1079,C=2296,x=784,b=2816,k=2117,P=3817,w=3817,S=2033,T=2018,M=3342,E=2117,A=2117,L=784,D=1125,I=3817,H=3957,F=1837,N=1592,G=2433,O=_0x1658de,z=(_inherits(R,BaseThing),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(i=z.call(this,i)).speed=null!=(e=i.options.speed)?e:1.5,i.rotateSpeed=null!=(e=i[t(N)][t(G)])?e:-5,i.height=null!=(e=i.options.height)?e:10,i.maxPitch=null!=(e=i[t(1592)].maxPitch)?e:88,i}return _createClass(R,[{key:"_enabledHook",value:function(e){e?this.activate():this.disable()}},{key:"_mountedHook",value:function(){}},{key:"_addedHook",value:function(){var e=_0x236b;this.enabled&&this.activate(),this[e(3817)].on(EventType.leftDown,this._onLeftDownHandler,this),this._map.on(EventType[e(2565)],this._onLeftUpHandler,this),this[e(I)].on(EventType.mouseMove,this._onMouseMoveHandler,this),this._map.on(EventType.dblClick,this._onDbClickHandler,this),this._map.on(EventType[e(1349)],this._onKeyDown,this),this._map.on(EventType.keyup,this._onKeyUp,this),this._map.on(EventType[e(H)],this[e(F)],this)}},{key:"_removedHook",value:function(){var e=_0x236b;this[e(1259)](),this._map.off(EventType.leftDown,this[e(1009)],this),this._map[e(4030)](EventType.leftUp,this._onLeftUpHandler,this),this[e(3817)][e(4030)](EventType[e(D)],this._onMouseMoveHandler,this),this._map.off(EventType.dblClick,this._onDbClickHandler,this),this._map.off(EventType.keydown,this._onKeyDown,this),this._map[e(4030)](EventType.keyup,this._onKeyUp,this),this._map.off(EventType.clockTick,this._onClockTick,this)}},{key:O(e),value:function(e){var t=O;this.enabled&&(this._looking=!0,this._startMousePosition=Cesium__namespace[t(L)].clone(e.position),this._mousePosition=this._startMousePosition)}},{key:"_onDbClickHandler",value:function(e){var t=O;this.enabled&&(this[t(1079)]=!0,this._startMousePosition=Cesium__namespace.Cartesian3.clone(e.position),this._mousePosition=this[t(707)])}},{key:"_onLeftUpHandler",value:function(e){this._looking=!1}},{key:"_onMouseMoveHandler",value:function(e){var t=O;this._mousePosition=e[t(2031)]}},{key:O(t),value:function(e){var t=O;if(this.enabled){e=e.keyCode;switch(this[t(E)]=RoamType.DIRECTION_NONE,e){case"W"[t(3105)](0):this._direction=RoamType.DIRECTION_FORWARD;break;case"S".charCodeAt(0):this[t(A)]=RoamType.DIRECTION_BACKWARD;break;case"D".charCodeAt(0):this[t(E)]=RoamType.DIRECTION_RIGHT;break;case"A".charCodeAt(0):this[t(A)]=RoamType.DIRECTION_LEFT}}}},{key:O(i),value:function(){this.enabled&&(this._direction=RoamType.DIRECTION_NONE)}},{key:O(1837),value:function(e){var t,i=O;this.enabled&&(e=e._clockStep,this[i(g)]&&this._changeHeadingPitch(e),this._direction!==RoamType[i(C)])&&(e=this[i(2662)]*e,this[i(2117)]===RoamType[i(1755)]?Cesium__namespace[i(x)][i(b)](this._map.camera.direction,1,scratchCurrentDirection):this[i(k)]===RoamType[i(2709)]?Cesium__namespace[i(x)].multiplyByScalar(this._map.camera.direction,-1,scratchCurrentDirection):this[i(2117)]===RoamType.DIRECTION_LEFT?Cesium__namespace.Cartesian3[i(2816)](this[i(P)].camera.right,-1,scratchCurrentDirection):this._direction===RoamType.DIRECTION_RIGHT&&Cesium__namespace.Cartesian3.multiplyByScalar(this[i(w)].camera.right,1,scratchCurrentDirection),Cesium__namespace.Cartesian3.multiplyByScalar(scratchCurrentDirection,e,scratchDeltaPosition),e=this._map.camera.position,Cesium__namespace.Cartesian3.add(e,scratchDeltaPosition,scratchNextPosition),(t=(e=this._map.scene.globe).ellipsoid).cartesianToCartographic(scratchNextPosition,scratchNextCartographic),void 0!==(e=e.getHeight(scratchNextCartographic)))&&(scratchNextCartographic.height=e+this.height,t.cartographicToCartesian(scratchNextCartographic,scratchTerrainConsideredNextPosition),this._map.camera.setView({destination:scratchTerrainConsideredNextPosition,orientation:new Cesium__namespace[i(3975)](this._map[i(2018)][i(977)],this._map.camera[i(S)],this._map[i(T)].roll),endTransform:Cesium__namespace[i(M)].IDENTITY}))}},{key:O(3722),value:function(e){var t=O,i=this._map.canvas.clientWidth,a=this._map.canvas.clientHeight,i=(this._mousePosition.x-this._startMousePosition.x)/i,a=-(this[t(3422)].y-this[t(p)].y)/a,i=Cesium__namespace.Math.toDegrees(this._map[t(m)].heading)+i*this.rotateSpeed,a=Cesium__namespace.Math[t(1604)](this[t(3817)].camera[t(2033)])+a*this.rotateSpeed;a>2*this[t(d)]&&a<360-this[t(f)]?a=360-this[t(3852)]:a>this.maxPitch&&a<360-this[t(3852)]&&(a=this.maxPitch),this._map[t(y)].setView({orientation:{heading:Cesium__namespace.Math[t(2581)](i),pitch:Cesium__namespace[t(v)].toRadians(a),roll:this._map.camera.roll}})}},{key:"_enableScreenSpaceCameraController",value:function(e){var t=O,i=this[t(l)].scene;i.screenSpaceCameraController[t(c)]=e,i[t(2722)][t(h)]=e,i[t(u)].enableZoom=e,i.screenSpaceCameraController[t(3771)]=e,i.screenSpaceCameraController[t(_)]=e}},{key:"activate",value:function(){var e=O,t=(this._enabled=!0,this._enableScreenSpaceCameraController(!1),this._map[e(2018)][e(2532)]),i=new Cesium__namespace[e(3428)],a=this._map.scene[e(941)],t=(a.ellipsoid.cartesianToCartographic(t,i),a.getHeight(i));if(void 0===t)return!1;i.height=t+this.height;t=new Cesium__namespace[e(784)],a.ellipsoid[e(r)](i,t),a=this._map.camera.heading;return this._heading=a,this._map.camera[e(406)]({destination:t,orientation:{heading:a,pitch:Cesium__namespace[e(o)][e(2581)](0),roll:0}}),!0}},{key:"disable",value:function(){this[O(2998)]=!1,this._enableScreenSpaceCameraController(!0)}},{key:"startAutoForward",value:function(){var e=O;this[e(a)]||this[e(n)](),this[e(s)]=RoamType.DIRECTION_FORWARD}},{key:"stopAutoForward",value:function(){this._direction=RoamType.DIRECTION_NONE}}]),R}(),RotatePoint=function(){var e=1744,t=563,i=1992,a=3057,n=572,s=2079,r=2079,o=405,l=3052,c=1997,h=3052,u=405,_=2308,p=3817,m=2033,d=784,f=3817,y=3410,v=3374,g=680,C=405,x=1592,b=_0x1658de,k=(_inherits(P,BaseThing),_createSuper(P));function P(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,P),(t=k.call(this,t))._direction=t.options.direction?1:-1,t._angle=360/(60*(t[e(x)][e(3003)]||60)),t._autoStopAngle=t.options.autoStopAngle,t}return _createClass(P,[{key:"isStart",get:function(){return this._isStart}},{key:"_enabledHook",value:function(e){var t=_0x236b;e?this.start():this[t(C)]()}},{key:b(e),value:function(){}},{key:b(t),value:function(){var e=b;this[e(f)].on(EventType[e(y)],this._map_mouseDownHandler,this),this[e(3817)].on(EventType.mouseUp,this[e(v)],this),this[e(g)]=!1}},{key:b(i),value:function(e){this._mouseDown=!0}},{key:"_map_mouseUpHandler",value:function(e){var t=b,i=(this._mouseDown=!1,this[t(3817)].getCenter());!i||5e5<i.alt||(this._tikRender=0,this._center=i.toCartesian(),this[t(_)]=this._map.camera.heading,this[t(3635)]=this[t(p)].camera[t(m)],this[t(2042)]=Cesium__namespace[t(d)].distance(this._center,this._map.camera[t(2142)]))}},{key:b(2071),value:function(){var e=b;this[e(3817)][e(4030)](EventType.mouseDown,this[e(1992)],this),this._map[e(4030)](EventType.mouseUp,this._map_mouseUpHandler,this),this[e(u)]()}},{key:b(a),value:function(e){var t=3649,i=b,a=this,n=(this._isStart&&this.stop(),this._isStart=!0,null==(n=this[i(3817)].getCenter())?void 0:n.toCartesian()),e=(e?e instanceof Cesium__namespace.Cartesian3?this._center=e:this[i(l)]=LngLatPoint.parse(e).toCartesian():this._center=n,this._distance=this.options.distance||Cesium__namespace.Cartesian3.distance(this._center,this._map.camera.positionWC),this._startHeading=this._map.camera.heading,this._startPitch=this._map[i(2018)][i(2033)],2);Cesium__namespace.Cartesian3.distance(n,this._center)<.01*this._distance&&(e=0),this[i(c)](EventType[i(3057)]),this[i(3817)].flyToPoint(this[i(h)],{radius:this[i(2042)],duration:e,complete:function(e){a[i(t)]=!0,a._tikRender=0,a._map.on(EventType.preRender,a._onPreRenderHandler,a)}})}},{key:"_onPreRenderHandler",value:function(e){var t,i=b;this._mouseDown||(this[i(n)]++,t=this._tikRender*this._angle,this[i(s)]&&t>=this[i(r)]&&this[i(o)](),t=Cesium__namespace.Math.toRadians(t*this._direction)+this._startHeading,this._map.scene.camera.setView({destination:this[i(3052)],orientation:{heading:t,pitch:this._startPitch}}),this._map.scene.camera.moveBackward(this._distance),this.fire(EventType.change))}},{key:"stop",value:function(){var e=b;this[e(3649)]&&(this._isStart=!1,this[e(3817)].off(EventType[e(1804)],this._onPreRenderHandler,this),this.fire(EventType.stop))}}]),P}(),MAX_PITCH_IN_DEGREE=88,StreetView=function(){var e=3399,t=1607,i=352,a=3800,n=784,s=2142,r=2018,o=3159,l=1752,c=1147,h=1752,u=707,_=2965,p=1124,m=2018,d=3817,f=2018,y=405,v=2532,g=1604,C=2761,x=3817,b=3748,k=3817,P=1125,w=4030,S=2737,T=2330,M=2402,E=2710,A=1125,L=3399,D=1802,H=1274,F=1325,N=825,I=3705,G=3817,z=2822,O=_0x1658de,B=(_inherits(R,BaseThing),_createSuper(R));function R(){var e,t,i=_0x236b,a=0<arguments[i(z)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(t=B.call(this,a)).rotateSpeed=null!=(e=a[i(2433)])?e:30,t.heightStep=null!=(e=a.heightStep)?e:.2,t.moveStep=null!=(e=a[i(3484)])?e:.1,t}return _createClass(R,[{key:"_enabledHook",value:function(e){var t=_0x236b;this._map.mouseZoom&&(this._map.mouseZoom.enabled=!e),e?(this[t(F)]=this[t(3817)].scene[t(2722)].zoomEventTypes,this._default_tiltEventTypes=this[t(3817)].scene.screenSpaceCameraController[t(3098)],this._map.scene.screenSpaceCameraController.zoomEventTypes=[Cesium__namespace[t(N)][t(562)],Cesium__namespace.CameraEventType.PINCH,{eventType:Cesium__namespace.CameraEventType.RIGHT_DRAG,modifier:Cesium__namespace[t(I)].CTRL}],this._map.scene.screenSpaceCameraController.tiltEventTypes=[{eventType:Cesium__namespace.CameraEventType.MIDDLE_DRAG,modifier:Cesium__namespace[t(I)][t(1153)]}]):(this._default_zoomEventTypes&&(this._map.scene.screenSpaceCameraController.zoomEventTypes=this._default_zoomEventTypes,delete this._default_zoomEventTypes),this[t(3190)]&&(this[t(G)].scene.screenSpaceCameraController.tiltEventTypes=this._default_tiltEventTypes,delete this._default_tiltEventTypes))}},{key:"_mountedHook",value:function(){}},{key:"_addedHook",value:function(){var e=_0x236b;this._enabledHook(this.enabled),this._map.on(EventType[e(E)],this._onRightDownHandler,this),this._map.on(EventType[e(A)],this._onMouseMove,this),this._map.on(EventType[e(2133)],this._onRightUpHandler,this),this[e(3817)].on(EventType.middleDown,this[e(L)],this),this._map.on(EventType.middleUp,this._onMiddleUpHandler,this),this._map.on(EventType[e(D)],this[e(H)],this),this[e(3817)].on(EventType.dblClick,this._onDbClickHandler,this),this[e(3817)].on(EventType.rightClick,this._onRightClickHandler,this)}},{key:"_removedHook",value:function(){var e=_0x236b;this[e(b)](!1),this._map.off(EventType.rightDown,this._onRightDownHandler,this),this[e(k)].off(EventType[e(P)],this[e(1202)],this),this._map.off(EventType.rightUp,this._onRightUpHandler,this),this[e(3817)].off(EventType[e(3837)],this._onMiddleDownHandler,this),this[e(3817)][e(w)](EventType.middleUp,this[e(S)],this),this._map.off(EventType.click,this._onClickHandler,this),this[e(3817)].off(EventType.dblClick,this._onDbClickHandler,this),this._map[e(w)](EventType[e(T)],this[e(M)],this),this.rotatePoint&&(this._map[e(1267)](this.rotatePoint,!0),delete this.rotatePoint)}},{key:"_onRightDownHandler",value:function(e){var t=_0x236b;this.enabled&&(this.rotatePoint&&this.rotatePoint[t(y)](),this._isMouseLeftButtonPressed=!0,this._mousePosition=this._startMousePosition=Cesium__namespace.Cartesian3.clone(e[t(v)]),this._headingWhenLeftClicked=Cesium__namespace.Math[t(g)](this._map.camera.heading),this[t(C)]=Cesium__namespace.Math.toDegrees(this[t(x)].camera.pitch))}},{key:"_onMouseMove",value:function(e){var t,i=_0x236b;this.enabled&&(this[i(3422)]=e.endPosition,this._isMouseLeftButtonPressed?(e=this._map.canvas[i(1017)],t=this._map.canvas.clientHeight,e=(this._mousePosition.x-this._startMousePosition.x)/e,t=-(this._mousePosition.y-this._startMousePosition.y)/t,Cesium__namespace[i(1124)][i(_)](e,0,Cesium__namespace.Math[i(2404)])&&Cesium__namespace[i(p)].equalsEpsilon(t,0,Cesium__namespace.Math[i(2404)])||(e=e*this.rotateSpeed,e=this._headingWhenLeftClicked+e,t=t*this.rotateSpeed,t=this._pitchWhenLeftClicked+t,2*MAX_PITCH_IN_DEGREE<t&&t<360-MAX_PITCH_IN_DEGREE?t=360-MAX_PITCH_IN_DEGREE:MAX_PITCH_IN_DEGREE<t&&t<360-MAX_PITCH_IN_DEGREE&&(t=MAX_PITCH_IN_DEGREE),this._map[i(m)].setView({orientation:{heading:Cesium__namespace.Math.toRadians(e),pitch:Cesium__namespace.Math.toRadians(t),roll:this[i(d)].camera.roll}}))):this._isMouseUpdownPressed&&(e=-(this._mousePosition.y-this._startMousePosition.y)/this._map.canvas.clientHeight,t=this._map[i(f)].positionCartographic[i(3159)]*this[i(3450)],this._map.camera.moveDown(e*t)))}},{key:"_onRightUpHandler",value:function(e){this[_0x236b(1315)]=!1}},{key:O(e),value:function(e){var t=O;this.enabled&&(this.rotatePoint&&this[t(c)][t(405)](),this[t(h)]=!0,this._startMousePosition=Cesium__namespace.Cartesian3.clone(e.position),this._mousePosition=this[t(u)])}},{key:"_onMiddleUpHandler",value:function(e){this[O(l)]=!1}},{key:"_onClickHandler",value:function(e){this.enabled&&this.rotatePoint&&this.rotatePoint.stop()}},{key:O(t),value:function(e){var t,i=O;this.enabled&&(this.rotatePoint&&this.rotatePoint.stop(),e=getCurrentMousePosition(this._map.scene,e.position))&&(t=Cesium__namespace[i(n)].distance(e,this._map.camera[i(s)])*this.moveStep,this._map.flyToPoint(e,{radius:t,maximumHeight:this._map[i(r)].positionCartographic[i(o)],duration:this.options.moveDuration}))}},{key:"_onRightClickHandler",value:function(e){var t=O;this.enabled&&(this.time&&Cesium__namespace.JulianDate.secondsDifference(this._map.clock[t(i)],this[t(3003)])<.5&&(this._map.closeContextMenu(),this.rotatePoint||(this[t(1147)]=new RotatePoint(this.options.rotatePoint),this._map[t(a)](this.rotatePoint)),this[t(1147)].start(e.cartesian)),this.time=this._map.clock.currentTime[t(3060)]())}}]),R}(),CameraHistory=function(){var e=1744,t=1988,i=3842,r=3817,o=2018,a=1018,n=1098,s=3896,l=4082,c=911,h=2012,u=2012,_=1592,p=4082,m=1592,d=3896,f=3896,y=3096,v=4082,g=_0x1658de,C=(_inherits(x,BaseThing),_createSuper(x));function x(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,x),(t=C.call(this,t)).step=0,t.views=[],t.maxCacheCount=null!=(e=t.options.maxCacheCount)?e:99,t}return _createClass(x,[{key:g(4082),get:function(){var e=g;return this.options.limit&&this[e(1592)].limit[e(v)]},set:function(e){var t,i,a=g;this[a(m)][a(d)]&&(this.options.limit.debugExtent=e,this.debugExtentEntity||(t=this[a(1592)][a(f)][a(402)],i=this.options.limit.position,this[a(898)]=this._map.entities.add({name:"限定的范围",position:i,ellipsoid:{radii:new Cesium__namespace.Cartesian3(t,t,t),maximumCone:Cesium__namespace.Math.PI_OVER_TWO,slicePartitions:45,stackPartitions:45,material:new Cesium__namespace[a(y)](0,1,1,0),outline:!0,outlineColor:new Cesium__namespace.Color(0,1,1,1)}})),this.debugExtentEntity.show=e)}},{key:g(e),value:function(){var e=g;this[e(_)].limit&&this.options.limit[e(p)]&&(this[e(p)]=this.options.limit.debugExtent),this._limitGlobe()}},{key:"_addedHook",value:function(){this._map.on(EventType.cameraMoveStart,this._cameraMoveStartHandler,this),this._map.on(EventType.cameraMoveEnd,this._cameraMoveEndHandler,this)}},{key:"_removedHook",value:function(){var e=g;this[e(3817)].off(EventType.cameraMoveStart,this._cameraMoveStartHandler,this),this._map.off(EventType.cameraMoveEnd,this[e(1725)],this),this.views=[],this.debugExtentEntity&&(this._map.entities.remove(this.debugExtentEntity),delete this.debugExtentEntity)}},{key:"_cameraMoveStartHandler",value:function(){this._map&&(this.isInPush=!0,this.lastCameraView=this._map.getCameraView())}},{key:g(1725),value:function(){var e=g;this._limitGlobe(),this[e(u)]&&this[e(2733)]()}},{key:"_limitGlobe",value:function(){var e,t,i,a=g,n=this;this[a(1592)].limit&&(e=this.options[a(s)].position,t=this[a(1592)].limit[a(402)],i=Cesium__namespace.Cartesian3.distance(e,this[a(3817)].camera.position),this.options.limit[a(l)],i<=t||(this.isInPush=!1,this.lastCameraView?this._map.setCameraView(this[a(c)],{duration:.5,complete:function(){var e=a;n.lastCameraView=null,n[e(h)]=!0}}):this._map.flyToPoint(e,{radius:.6*t,pitch:-60,duration:.5,complete:function(){n.lastCameraView=null,n.isInPush=!0}})))}},{key:"_addCameraView",value:function(){var e=g,t=this._map[e(2856)]();this.views[e(a)](t),this.views.length>this.maxCacheCount&&this.views[e(4087)](0,1),this.step=this.views.length-1,this[e(1997)](EventType.change,{index:this.step,count:this[e(n)].length})}},{key:g(1272),value:function(){var t=3817,i=879,a=2822,n=g,s=this;this._map.camera.moveStart.removeEventListener(this._cameraMoveStartHandler,this),this[n(r)][n(o)].moveEnd.removeEventListener(this._cameraMoveEndHandler,this),this.isInPush=!1,this._map.setCameraView(this.views[this.step],{complete:function(){var e=n;s._map[e(2018)].moveStart.addEventListener(s._cameraMoveStartHandler,s),s[e(t)].camera[e(i)].addEventListener(s._cameraMoveEndHandler,s),s.fire(EventType.change,{index:s.step,count:s.views[e(a)]})}})}},{key:"goNext",value:function(){var e=g;return!(this.step>=this[e(1098)].length-1||(this.step++,this[e(1272)](),0))}},{key:"goLast",value:function(){return!(this[g(i)]<=0||(this.step--,this._goHistoryView(),0))}},{key:"goNow",value:function(){var e=g;return this[e(3842)]!==this.views.length-1&&(this.step=this.views[e(2822)]-1,this._goHistoryView(),!0)}},{key:g(t),value:function(){return!(this[g(3842)]<=0||(this.step=0,this._goHistoryView(),0))}}]),x}(),RotateOut=function(){var e=1744,t=563,i=1997,a=572,n=3118,s=3817,r=2018,o=3057,l=3003,c=_0x1658de,h=(_inherits(u,BaseThing),_createSuper(u));function u(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,u),(t=h.call(this,t))._angle=360/(60*t.options[e(l)]||60),t._direction=t[e(1592)].direction?-1:1,t._autoStopAngle=t.options.autoStopAngle,t}return _createClass(u,[{key:"isStart",get:function(){return this[_0x236b(3649)]}},{key:"_enabledHook",value:function(e){e?this[_0x236b(o)]():this.stop()}},{key:c(e),value:function(){}},{key:c(t),value:function(){}},{key:"_removedHook",value:function(){this.stop()}},{key:"start",value:function(){var e=c;this._isStart&&this.stop(),this._isStart=!0,this._tikRender=0,this[e(2308)]=this[e(s)][e(r)].heading,this._startPitch=this._map.camera.pitch,this._map.on(EventType.preRender,this[e(2441)],this),this.fire(EventType.start)}},{key:"_onPreRenderHandler",value:function(e){var t=c,i=(this._tikRender++,this[t(a)]*this._angle),i=(this._autoStopAngle&&i>=this._autoStopAngle&&this.stop(),Cesium__namespace[t(1124)].toRadians(i*this._direction)+this._startHeading);this._map[t(n)].camera.setView({orientation:{heading:i,pitch:this[t(3635)]}}),this.fire(EventType.change)}},{key:"stop",value:function(){var e=c;this._isStart&&(this._isStart=!1,this._map.off(EventType.preRender,this._onPreRenderHandler,this),this[e(i)](EventType.stop))}}]),u}(),index$3={__proto__:null,Underground:Underground,Sightline:Sightline,Skyline:Skyline,Shadows:Shadows,Measure:Measure,FloodByGraphic:FloodByGraphic,Slope:Slope,TerrainPlanClip:TerrainPlanClip,FloodByMaterial:FloodByMaterial,TerrainClip:TerrainClip,ContourLine:ContourLine,TerrainFlat:TerrainFlat,TerrainUplift:TerrainUplift,LimitHeight:LimitHeight,TilesetPlanClip:TilesetPlanClip,ModelPlanClip:ModelPlanClip,TilesetBoxClip:TilesetBoxClip,TilesetClip:TilesetClip,TilesetFlood:TilesetFlood,TilesetFlat:TilesetFlat,FirstPersonRoam:FirstPersonRoam,StreetView:StreetView,CameraHistory:CameraHistory,RotatePoint:RotatePoint,RotateOut:RotateOut,MatrixMove:MatrixMove,MatrixRotate:MatrixRotate},BaseEffect=function(){var e=1488,t=4062,i=4071,n=1651,a=3463,s=564,r=1998,o=_0x1658de,l=(_inherits(c,BaseThing),_createSuper(c));function c(){var e=_0x236b;return _classCallCheck(this,c),l[e(2026)](this,arguments)}return _createClass(c,[{key:o(e),get:function(){return this._type}},{key:"target",get:function(){return this[o(3952)]}},{key:"uniforms",get:function(){var e,t=o;return null==(e=this._postProcessStage)?void 0:e[t(r)]}},{key:o(t),value:function(e){return e&&e.addEffect&&e.addEffect(this),this}},{key:o(i),value:function(e){var t=o;this._map&&this._map[t(s)](this,e)}},{key:"_enabledHook",value:function(e){this._postProcessStage&&(this._postProcessStage.enabled=e)}},{key:"_setOptionsHook",value:function(e,t){for(var i in t)"enabled"!==i&&(this[i]=t[i])}},{key:"_addedBaseHook",value:function(){var e=o;this._postProcessStage||this._mountedHook(),this._enabledHook(this[e(a)]),this._postProcessStage&&this._map.scene.postProcessStages.add(this[e(3952)])}},{key:o(1987),value:function(){this._postProcessStage&&(this._map.scene.postProcessStages.remove(this._postProcessStage),this._postProcessStage.isDestroyed())&&delete this._postProcessStage}},{key:"fire",value:function(e){var t=o,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=2<arguments.length?arguments[2]:void 0;return i.effect||(i[t(n)]=this),_get(_getPrototypeOf(c[t(2385)]),"fire",this).call(this,e,i,a)}},{key:"_getPickIds",value:function(e){var i=2249,a=this,n=[];return e.forEach(function(e){var t=_0x236b;(e=e.czmObject?e.czmObject:e)[t(i)]?n=n.concat(a._getPickIds(e._pickIds)):e.pickId?n=n.concat(a._getPickIds([e.pickId])):n.push({pickId:e})}),n}}]),c}(),FogFS="float getDistance(sampler2D depthTexture, vec2 texCoords) {\n float depth = czm_unpackDepth(texture(depthTexture, texCoords));\n if(depth == 0.0) {\n return czm_infinity;\n }\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(gl_FragCoord.xy, depth);\n return -eyeCoordinate.z / eyeCoordinate.w;\n}\nfloat interpolateByDistance(vec4 nearFarScalar, float distance) {\n float startDistance = nearFarScalar.x;\n float startValue = nearFarScalar.y;\n float endDistance = nearFarScalar.z;\n float endValue = nearFarScalar.w;\n float t = clamp((distance - startDistance) / (endDistance - startDistance), 0.0, 1.0);\n return mix(startValue, endValue, t);\n}\nvec4 alphaBlend(vec4 sourceColor, vec4 destinationColor) {\n return sourceColor * vec4(sourceColor.aaa, 1.0) + destinationColor * (1.0 - sourceColor.a);\n}\nuniform sampler2D colorTexture;\nuniform sampler2D depthTexture;\nuniform vec4 fogByDistance;\nuniform vec4 fogColor;\nin vec2 v_textureCoordinates;\nvoid main(void) {\n float distance = getDistance(depthTexture, v_textureCoordinates);\n vec4 sceneColor = texture(colorTexture, v_textureCoordinates);\n float blendAmount = interpolateByDistance(fogByDistance, distance);\n vec4 finalFogColor = vec4(fogColor.rgb, fogColor.a * blendAmount);\n out_FragColor = alphaBlend(finalFogColor, sceneColor);\n}\n",FogEffect=function(){var e=563,t=2071,i=2018,a=2630,n=1959,s=3277,r=2916,o=1732,l=2443,c=_0x1658de,h=(_inherits(u,BaseEffect),_createSuper(u));function u(){var e,t,i=_0x236b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,u),(t=h.call(this,a))[i(l)]=null!=(e=a.fogByDistance)?e:new Cesium__namespace[i(2944)](10,0,1e3,.9),t[i(2745)]=getCesiumColor(a.color,Cesium__namespace.Color.WHITE),t.maxHeight=null!=(e=a.maxHeight)?e:9e3,t._setOptionsHook(a),t}return _createClass(u,[{key:c(2586),value:function(e,t){var i=c;Cesium__namespace.defined(e.fogByDistance_near)&&(this.fogByDistance.x=e.fogByDistance_near),Cesium__namespace[i(s)](e.fogByDistance_nearValue)&&(this.fogByDistance.y=e.fogByDistance_nearValue),Cesium__namespace.defined(e.fogByDistance_far)&&(this.fogByDistance.z=e[i(r)]),Cesium__namespace.defined(e.fogByDistance_farValue)&&(this.fogByDistance.w=e[i(1623)]),Cesium__namespace.defined(null==t?void 0:t.color)&&(this.color=getCesiumColor(e[i(2745)],Cesium__namespace.Color[i(3644)])),this.maxHeight=null!=(t=e[i(o)])?t:9e3}},{key:"_mountedHook",value:function(){var e=c,t=this;this._postProcessStage=new Cesium__namespace[e(n)]({name:this[e(1718)],fragmentShader:FogFS,uniforms:{fogByDistance:function(){return t.fogByDistance},fogColor:function(){return t.color}},enabled:this.enabled})}},{key:c(e),value:function(){this._map.scene.camera.changed.addEventListener(this.camera_changedHandler,this)}},{key:c(t),value:function(){var e=c;this[e(3817)].scene.camera.changed.removeEventListener(this[e(a)],this)}},{key:c(2630),value:function(e){var t=c;this._map[t(i)].positionCartographic.height<this.maxHeight?this._postProcessStage.enabled=this.enabled:this._postProcessStage[t(3463)]=!1}}]),u}(),RainShader=(register("fog",FogEffect),"uniform sampler2D colorTexture;//下雨前输入的场景渲染照片\nin vec2 v_textureCoordinates;\nuniform float speed;\nuniform float size;\nuniform float direction;\n\nfloat hash(float x) {\n return fract(sin(x * 23.3) * 13.13);\n}\n\nvoid main(void) {\n\n float time = czm_frameNumber * speed / 1000.0;\n vec2 resolution = czm_viewport.zw;\n\n vec2 uv = (gl_FragCoord.xy * 2. - resolution.xy) / min(resolution.x, resolution.y);\n vec3 finalColor = vec3(0.1, 0.2, 0.3);//粒子的颜色\n\n float si = sin(direction), co = cos(direction);\n uv *= mat2(co, -si, si, co);\n uv *= length(uv + vec2(0, 4.9)) * 0.3 + 1.0;\n\n float v = 1. - sin(hash(floor(uv.x * 100.0)) * 2.0);\n float b = clamp(abs(sin(20.0 * time * v + uv.y * (5. / (2.0 + v)))) - .95, 0.0, 1.0) * size;\n finalColor *= v * b; //屏幕上雨的颜色\n\n out_FragColor = mix(texture(colorTexture, v_textureCoordinates), vec4(finalColor, 1.0), 0.5); //将雨和三维场景融合\n}\n"),RainEffect=function(){var i=2070,a=1998,n=1998,e=(_inherits(t,BaseEffect),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"speed",get:function(){var e;return null==(e=this._postProcessStage)?void 0:e.uniforms.speed},set:function(e){var t=_0x236b;this._postProcessStage&&(this._postProcessStage[t(n)].speed=e)}},{key:"size",get:function(){var e,t=_0x236b;return null==(e=this._postProcessStage)?void 0:e[t(a)].size},set:function(e){var t=_0x236b;this._postProcessStage&&(this[t(3952)].uniforms.size=e)}},{key:"direction",get:function(){var e;return null==(e=this._postProcessStage)?void 0:e.uniforms.direction},set:function(e){var t=_0x236b;this._postProcessStage&&(this._postProcessStage.uniforms[t(i)]=Cesium__namespace.Math.toRadians(e))}},{key:"_mountedHook",value:function(){var e,t=_0x236b;this._postProcessStage=new Cesium__namespace.PostProcessStage({fragmentShader:RainShader,uniforms:{speed:null!=(e=this.options.speed)?e:10,size:null!=(e=this.options.size)?e:20,direction:Cesium__namespace[t(1124)].toRadians(null!=(e=this.options.direction)?e:-30)},enabled:this[t(3463)]})}}]),t}(),SnowShader=(register("rain",RainEffect),"uniform sampler2D colorTexture; //输入的场景渲染照片\nin vec2 v_textureCoordinates;\nuniform float speed;\n\nfloat snow(vec2 uv, float scale) {\n float time = czm_frameNumber * speed / 1000.0;\n float w = smoothstep(1.0, 0.0, -uv.y * (scale / 10.0));\n if(w < 0.1)\n return 0.0;\n uv += time / scale;\n uv.y += time * 2.0 / scale;\n uv.x += sin(uv.y + time * 0.5) / scale;\n uv *= scale;\n\n vec2 s = floor(uv), f = fract(uv), p;\n float k = 3.0, d;\n p = 0.5 + 0.35 * sin(11.0 * fract(sin((s + p + scale) * mat2(7, 3, 6, 5)) * 5.0)) - f;\n d = length(p);\n k = min(d, k);\n k = smoothstep(0.0, k, sin(f.x + f.y) * 0.01);\n return k * w;\n}\n\nvoid main(void) {\n vec2 resolution = czm_viewport.zw;\n vec2 uv = (gl_FragCoord.xy * 2. - resolution.xy) / min(resolution.x, resolution.y);\n\n float c = 0.0;\n c += snow(uv, 15.);\n c += snow(uv, 10.);\n c += snow(uv, 9.);\n c += snow(uv, 8.);\n c += snow(uv, 7.);\n c += snow(uv, 6.);\n c += snow(uv, 5.);\n c += snow(uv, 4.);\n\n vec3 finalColor = (vec3(c)); //屏幕上雪的颜色\n\n out_FragColor = mix(texture(colorTexture, v_textureCoordinates), vec4(finalColor, 1.0), 0.5); //将雪和三维场景融合\n\n}\n"),SnowEffect=function(){var t=2662,i=_0x1658de,e=(_inherits(a,BaseEffect),_createSuper(a));function a(){return _classCallCheck(this,a),e.apply(this,arguments)}return _createClass(a,[{key:i(2662),get:function(){var e;return null==(e=this._postProcessStage)?void 0:e.uniforms.speed},set:function(e){this[i(3952)]&&(this._postProcessStage.uniforms.speed=e)}},{key:"_mountedHook",value:function(){var e=i;this._postProcessStage=new Cesium__namespace.PostProcessStage({fragmentShader:SnowShader,uniforms:{speed:null!=(e=this.options[e(t)])?e:10},enabled:this.enabled})}}]),a}(),SnowCoverFS=(register("snow",SnowEffect),"#extension GL_OES_standard_derivatives : enable\nuniform sampler2D colorTexture;\nuniform sampler2D depthTexture;\nuniform float alpha;\nin vec2 v_textureCoordinates;\n\nvec4 toEye(in vec2 uv, in float depth) {\n vec2 xy = vec2((uv.x * 2.0 - 1.0), (uv.y * 2.0 - 1.0));\n vec4 posInCamera = czm_inverseProjection * vec4(xy, depth, 1.0);\n posInCamera = posInCamera / posInCamera.w;\n return posInCamera;\n}\nfloat getDepth(in vec4 depth) {\n float z_window = czm_unpackDepth(depth);\n z_window = czm_reverseLogDepth(z_window);\n float n_range = czm_depthRange.near;\n float f_range = czm_depthRange.far;\n return (2.0 * z_window - n_range - f_range) / (f_range - n_range);\n}\n\nvoid main() {\n vec4 color = texture(colorTexture, v_textureCoordinates);\n vec4 currD = texture(depthTexture, v_textureCoordinates);\n if(currD.r >= 1.0) {\n out_FragColor = color;\n return;\n }\n float depth = getDepth(currD);\n vec4 positionEC = toEye(v_textureCoordinates, depth);\n vec3 dx = dFdx(positionEC.xyz);\n vec3 dy = dFdy(positionEC.xyz);\n vec3 nor = normalize(cross(dx, dy));\n\n vec4 positionWC = normalize(czm_inverseView * positionEC);\n vec3 normalWC = normalize(czm_inverseViewRotation * nor);\n float dotNumWC = dot(positionWC.xyz, normalWC);\n if(dotNumWC <= 0.2) {\n out_FragColor = mix(color, vec4(1.0), alpha * 0.2);\n return;\n }\n out_FragColor = mix(color, vec4(1.0), dotNumWC * alpha);\n}\n"),SnowCoverEffect=function(){var a=2890,n=2931,s=1514,r=4056,i=3463,o=1136,t=2630,l=1592,c=1718,h=3952,u=3629,_=1732,p=(_inherits(m,BaseEffect),_createSuper(m));function m(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,m),(e=p[t(1567)](this,i))[t(_)]=null!=(t=i.maxHeight)?t:9e3,e}return _createClass(m,[{key:"alpha",get:function(){var e,t=_0x236b;return this._postProcessStage?null==(e=this._postProcessStage)||null==(e=e.uniforms)?void 0:e[t(u)]:!this._uniforms||null==(e=this._uniforms)?void 0:e[t(u)].value},set:function(e){this[_0x236b(h)]&&(this._postProcessStage.uniforms.alpha=e),this._uniforms&&(this._uniforms.alpha.value=e)}},{key:"_enabledHook",value:function(e){var t=_0x236b;this._postProcessStage&&(this._postProcessStage.enabled=e),this._uniforms&&(this[t(1136)].enabled.value=e)}},{key:"_mountedHook",value:function(){var e=_0x236b;this[e(l)].layer?this._bindToLayer(this.options.layer):this._postProcessStage=new Cesium__namespace.PostProcessStage({name:this[e(c)],fragmentShader:SnowCoverFS,uniforms:{alpha:null!=(e=this.options[e(3629)])?e:1},enabled:this.enabled})}},{key:"_addedHook",value:function(){var e=_0x236b;this._map.scene.camera.changed.addEventListener(this[e(t)],this)}},{key:"_removedHook",value:function(){var e=_0x236b;this._map.scene[e(2018)][e(1895)][e(3056)](this.camera_changedHandler,this)}},{key:"camera_changedHandler",value:function(e){var t=_0x236b;this._map[t(2018)].positionCartographic.height<this[t(1732)]?(this._postProcessStage&&(this._postProcessStage.enabled=this.enabled),this._uniforms&&(this._uniforms[t(i)].value=this.enabled)):(this._postProcessStage&&(this._postProcessStage.enabled=!1),this._uniforms&&(this[t(o)][t(3463)].value=!1))}},{key:"_bindToLayer",value:function(e){var t,i=_0x236b;null!=(t=Cesium__namespace[i(a)])&&t.getCacheOrAdd&&(this.enabled?(t=new Cesium__namespace[i(3675)]({lightingModel:Cesium__namespace.LightingModel.UNLIT,uniforms:{alpha:{value:1,type:Cesium__namespace[i(n)].FLOAT},enabled:{value:!0,type:Cesium__namespace.UniformType[i(s)]}},fragmentShaderText:"\n #extension GL_OES_standard_derivatives : enable\n void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material){\n if(enabled){\n vec3 positionEC = fsInput.attributes.positionEC;\n vec4 positionWC = normalize(czm_inverseView * vec4(positionEC, 1.0));\n\n vec3 dx = dFdx(fsInput.attributes.positionEC);\n vec3 dy = dFdy(fsInput.attributes.positionEC);\n vec3 nor = normalize(cross(dx, dy));\n vec3 normalWC = normalize(czm_inverseViewRotation * nor);\n float dotNumWC = dot(positionWC.xyz, normalWC);\n if(dotNumWC <= 0.2) {\n material.diffuse = mix(material.diffuse, vec3(1.0), alpha*0.2);\n } else {\n material.diffuse = mix(material.diffuse, vec3(1.0), dotNumWC*alpha);\n }\n }\n }"}),this._uniforms=t[i(1998)],Cesium__namespace.Mars3DEx.getCacheOrAdd(e.id).snowCover=t):(delete this[i(1136)],(t=Cesium__namespace.Mars3DEx.getCache(e.id))&&delete t[i(r)]))}}]),m}(),InvertedSceneFS=(register("snowCover",SnowCoverEffect),"#extension GL_OES_standard_derivatives : enable\nuniform sampler2D colorTexture;\nuniform sampler2D depthTexture;\nin vec2 v_textureCoordinates;\nvec4 toEye(in vec2 uv, in float depth) {\n vec2 xy = vec2((uv.x * 2.0 - 1.0), (uv.y * 2.0 - 1.0));\n vec4 posInCamera = czm_inverseProjection * vec4(xy, depth, 1.0);\n posInCamera = posInCamera / posInCamera.w;\n return posInCamera;\n}\nfloat getDepth(in vec4 depth) {\n float z_window = czm_unpackDepth(depth);\n z_window = czm_reverseLogDepth(z_window);\n float n_range = czm_depthRange.near;\n float f_range = czm_depthRange.far;\n return (2.0 * z_window - n_range - f_range) / (f_range - n_range);\n}\nvec3 guussColor(vec2 uv) {\n vec2 pixelSize = 1.0 / czm_viewport.zw;\n float dx0 = -pixelSize.x;\n float dy0 = -pixelSize.y;\n float dx1 = pixelSize.x;\n float dy1 = pixelSize.y;\n vec4 gc = (texture(colorTexture, uv) +\n texture(colorTexture, uv + vec2(dx0, dy0)) +\n texture(colorTexture, uv + vec2(0.0, dy0)) +\n texture(colorTexture, uv + vec2(dx1, dy0)) +\n texture(colorTexture, uv + vec2(dx0, 0.0)) +\n texture(colorTexture, uv + vec2(dx1, 0.0)) +\n texture(colorTexture, uv + vec2(dx0, dy1)) +\n texture(colorTexture, uv + vec2(0.0, dy1)) +\n texture(colorTexture, uv + vec2(dx1, dy1))) * (1.0 / 9.0);\n return gc.rgb;\n}\nvoid main() {\n // mat4 dither = mat4(\n // 0, 0.5, 0.125, 0.625,\n // 0.75, 0.25, 0.875, 0.375,\n // 0.1875, 0.6875, 0.0625, 0.5625,\n // 0.9375, 0.4375, 0.8125, 0.3125\n // );\n // int sampleCoordX = int(mod((gl_FragCoord.x * v_textureCoordinates.x),4.0));\n // int sampleCoordY = int(mod((gl_FragCoord.y * v_textureCoordinates.y),4.0));\n float offset = 0.0;\n\n vec4 color = texture(colorTexture, v_textureCoordinates);\n vec4 currD = texture(depthTexture, v_textureCoordinates);\n // out_FragColor = currD;\n // return;\n if(currD.r >= 1.0) {\n out_FragColor = color;\n return;\n }\n float depth = getDepth(currD);\n // out_FragColor = vec4(depth,0.0,0.0,1.0);\n // return;\n\n vec4 positionEC = toEye(v_textureCoordinates, depth);\n vec3 dx = dFdx(positionEC.xyz);\n vec3 dy = dFdy(positionEC.xyz);\n vec3 normal = normalize(cross(dx, dy));\n\n vec4 positionWC = normalize(czm_inverseView * positionEC);\n vec3 normalWC = normalize(czm_inverseViewRotation * normal);\n float fotNumWC = dot(positionWC.xyz, normalWC);\n if(fotNumWC <= 0.5) {\n out_FragColor = color;\n return;\n }\n\n // float dotNum = dot(normal,vec3(0.0,1.0,0.0));\n // out_FragColor = mix(color,vec4(1.0),dotNum*0.8);\n // return;\n\n vec3 viewDir = normalize(positionEC.xyz);\n vec3 reflectDir = reflect(viewDir, normal);\n // vec3 viewReflectDir = czm_viewRotation * reflectDir;\n vec3 viewReflectDir = reflectDir;\n\n float step = 0.05;\n int stepNum = int(20.0 / step);\n vec3 pos;\n vec3 albedo;\n bool jd = false;\n for(float i = 1.0; i <= 400.0; i+=1.0) {\n float delta = step * i + offset;\n pos = positionEC.xyz + viewReflectDir * delta;\n float d = -pos.z;\n\n vec4 tmp = czm_projection * vec4(pos, 1.0);\n vec3 screenPos = tmp.xyz / tmp.w;\n vec2 uv = vec2(screenPos.x, screenPos.y) * 0.5 + vec2(0.5, 0.5);\n\n if(uv.x > 0.0 && uv.x < 1.0 && uv.y > 0.0 && uv.y < 1.0) {\n float dd = getDepth(texture(depthTexture, uv));\n vec4 jzc = toEye(uv, dd);\n dd = -jzc.z;\n if(d > dd) {\n if(abs(abs(d) - abs(dd)) <= step) {\n jd = true;\n // albedo = texture(colorTexture, uv).rgb;\n albedo = guussColor(uv);\n }\n break;\n }\n }\n }\n if(jd) {\n out_FragColor = vec4(mix(color.xyz, albedo, 0.5), 1.0);\n } else {\n out_FragColor = color;\n }\n}\n"),InvertedEffect=function(){var t=3952,i=1959,e=(_inherits(a,BaseEffect),_createSuper(a));function a(){return _classCallCheck(this,a),e.apply(this,arguments)}return _createClass(a,[{key:"_mountedHook",value:function(){var e=_0x236b;this[e(t)]=new Cesium__namespace[e(i)]({fragmentShader:InvertedSceneFS,enabled:this.enabled})}}]),a}(),NightVisionEffect=(register("inverted",InvertedEffect),function(){var t=_0x1658de,e=(_inherits(i,BaseEffect),_createSuper(i));function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:t(1744),value:function(){var e=t;this._postProcessStage=Cesium__namespace.PostProcessStageLibrary[e(2405)]()}}]),i}()),BloomEffect=(register("nightVision",NightVisionEffect),function(){var i=3463,a=1592,n=1998,s=1060,r=3952,o=3952,l=3552,t=3952,c=3952,h=1060,u=3952,_=1998,p=1060,m=429,d=2026,f=(_inherits(y,BaseEffect),_createSuper(y));function y(){var e=_0x236b;return _classCallCheck(this,y),f[e(d)](this,arguments)}return _createClass(y,[{key:"contrast",get:function(){var e;return null==(e=this._postProcessStage)?void 0:e.uniforms.contrast},set:function(e){var t=_0x236b;this[t(3952)]&&(this._postProcessStage.uniforms[t(m)]=e)}},{key:"brightness",get:function(){var e,t=_0x236b;return null==(e=this._postProcessStage)?void 0:e.uniforms[t(2995)]},set:function(e){var t=_0x236b;this[t(3952)]&&(this._postProcessStage.uniforms[t(2995)]=e)}},{key:"delta",get:function(){var e,t=_0x236b;return null==(e=this[t(u)])?void 0:e[t(_)][t(p)]},set:function(e){var t=_0x236b;this[t(c)]&&(this._postProcessStage.uniforms[t(h)]=e)}},{key:"sigma",get:function(){var e,t=_0x236b;return null==(e=this._postProcessStage)?void 0:e.uniforms[t(1104)]},set:function(e){this._postProcessStage&&(this._postProcessStage.uniforms.sigma=e)}},{key:"stepSize",get:function(){var e;return null==(e=this[_0x236b(t)])?void 0:e.uniforms.stepSize},set:function(e){var t=_0x236b;this._postProcessStage&&(this._postProcessStage.uniforms[t(l)]=e)}},{key:"_mountedHook",value:function(){var e,t=_0x236b;this._postProcessStage=this._map[t(3118)].postProcessStages.bloom,this._postProcessStage.uniforms.glowOnly=!1,this._postProcessStage.uniforms.contrast=null!=(e=this[t(a)].contrast)?e:128,this._postProcessStage[t(n)].brightness=null!=(e=this.options.brightness)?e:-.3,this._postProcessStage.uniforms.delta=null!=(e=this[t(1592)][t(s)])?e:1,this[t(r)].uniforms.sigma=null!=(e=this.options.sigma)?e:3.78,this[t(o)].uniforms.stepSize=null!=(e=this.options.stepSize)?e:5}},{key:"_addedBaseHook",value:function(e){var t=_0x236b;this._postProcessStage[t(i)]=this.enabled}},{key:"_removedBaseHook",value:function(){this._postProcessStage.enabled=!1}}]),y}()),BrightnessEffect=(register("bloom",BloomEffect),function(){var t=_0x1658de,i=(_inherits(a,BaseEffect),_createSuper(a));function a(){var e=_0x236b;return _classCallCheck(this,a),i[e(2026)](this,arguments)}return _createClass(a,[{key:t(2995),get:function(){var e;return null==(e=this._postProcessStage)?void 0:e.uniforms.brightness},set:function(e){this._postProcessStage&&(this._postProcessStage.uniforms.brightness=e)}},{key:t(1744),value:function(){var e=t;this._postProcessStage=Cesium__namespace.PostProcessStageLibrary.createBrightnessStage(),this._postProcessStage.uniforms[e(2995)]=null!=(e=this.options.brightness)?e:2}}]),a}()),BlackAndWhiteEffect=(register("brightness",BrightnessEffect),function(){var t=3952,i=327,a=1157,n=_0x1658de,e=(_inherits(s,BaseEffect),_createSuper(s));function s(){return _classCallCheck(this,s),e.apply(this,arguments)}return _createClass(s,[{key:n(1157),get:function(){var e;return null==(e=this._postProcessStage)?void 0:e.uniforms.gradations},set:function(e){var t=n;this._postProcessStage&&(this._postProcessStage.uniforms[t(a)]=e)}},{key:n(1744),value:function(){var e=n;this[e(t)]=Cesium__namespace.PostProcessStageLibrary[e(i)](),this._postProcessStage[e(1998)].gradations=null!=(e=this.options.gradations)?e:4}}]),s}()),MosaicShader=(register(_0x1658de(2264),BlackAndWhiteEffect),"uniform sampler2D colorTexture;\nin vec2 v_textureCoordinates;\nconst int KERNEL_WIDTH = 16;\nvoid main(void) {\n vec2 step = 1.0 / czm_viewport.zw;\n vec2 integralPos = v_textureCoordinates - mod(v_textureCoordinates, 8.0 * step);\n vec3 averageValue = vec3(0.0);\n for(int i = 0; i < KERNEL_WIDTH; i++) {\n for(int j = 0; j < KERNEL_WIDTH; j++) {\n averageValue += texture(colorTexture, integralPos + step * vec2(i, j)).rgb;\n }\n }\n averageValue /= float(KERNEL_WIDTH * KERNEL_WIDTH);\n out_FragColor = vec4(averageValue, 1.0);\n}\n"),MosaicEffect=function(){var t=_0x1658de,e=(_inherits(i,BaseEffect),_createSuper(i));function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:t(1744),value:function(){var e=t;this._postProcessStage=new Cesium__namespace[e(1959)]({fragmentShader:MosaicShader,enabled:this.enabled})}}]),i}(),DepthOfFieldEffect=(register("mosaic",MosaicEffect),function(){var i=1060,a=1592,n=1998,s=1998,r=3952,o=1998,l=1060,c=3952,h=1109,u=_0x1658de,e=(_inherits(t,BaseEffect),_createSuper(t));function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"focalDistance",get:function(){var e;return null==(e=this._postProcessStage)?void 0:e.uniforms.focalDistance},set:function(e){var t=_0x236b;this[t(c)]&&(this._postProcessStage[t(1998)][t(h)]=e)}},{key:u(1060),get:function(){var e,t=u;return null==(e=this._postProcessStage)?void 0:e.uniforms[t(1060)]},set:function(e){var t=u;this[t(r)]&&(this[t(3952)][t(o)][t(l)]=e)}},{key:u(1104),get:function(){var e;return null==(e=this._postProcessStage)?void 0:e.uniforms.sigma},set:function(e){var t=u;this[t(3952)]&&(this[t(3952)].uniforms.sigma=e)}},{key:"stepSize",get:function(){var e;return null==(e=this._postProcessStage)?void 0:e.uniforms.stepSize},set:function(e){var t=u;this._postProcessStage&&(this._postProcessStage[t(s)][t(3552)]=e)}},{key:"_mountedHook",value:function(){var e,t=u;this[t(3952)]=Cesium__namespace.PostProcessStageLibrary.createDepthOfFieldStage(),this._postProcessStage[t(1998)].focalDistance=null!=(e=this.options.focalDistance)?e:87,this[t(3952)].uniforms[t(i)]=null!=(e=this[t(a)].delta)?e:1,this._postProcessStage[t(n)].sigma=null!=(e=this[t(1592)].sigma)?e:3.78,this._postProcessStage.uniforms.stepSize=null!=(e=this[t(1592)][t(3552)])?e:2.46}}]),t}()),scratchPerspectiveFrustum,scratchPerspectiveOffCenterFrustum,scratchOrthographicFrustum,scratchOrthographicOffCenterFrustum;function executeDerivedCommand(e,t,i,a,n,s){var r=_0x1658de,o=Cesium__namespace.defined,a=a[r(1172)],r=e.derivedCommands;o(r)&&(a.useLogDepth&&o(r.logDepth)&&(e=r.logDepth.command),o((r=e.derivedCommands)[t]))&&(e=r[t][i]).execute(n,s)}function executeDerivedCommandList(e,t,i,n,s,r){var a,o,l,c=3620,h=914,u=2066,_=3296,p=_0x1658de,m=Cesium__namespace.Pass,d=Cesium__namespace.defined,f=Cesium__namespace.PerspectiveFrustum,y=Cesium__namespace.PerspectiveOffCenterFrustum,c=Cesium__namespace[p(c)],v=Cesium__namespace.OrthographicOffCenterFrustum,g=(scratchPerspectiveFrustum=scratchPerspectiveFrustum||new f,scratchPerspectiveOffCenterFrustum=scratchPerspectiveOffCenterFrustum||new y,scratchOrthographicFrustum=scratchOrthographicFrustum||new c,scratchOrthographicOffCenterFrustum=scratchOrthographicOffCenterFrustum||new v,e._us),f=g._frameState.camera,C=f._scene,x=C._view.frustumCommandsList,b=x.length,k=C._globeTranslucencyState,P=k[p(3812)],w=C._view.globeTranslucencyFramebuffer;function S(e,t,i,a){if(!r||r(e,t))try{n&&s?executeDerivedCommand(e,n,s,t,i,a):e.execute(i,a)}catch(e){}}for(var T=d(f.frustum.fov)?f.frustum.clone(scratchPerspectiveFrustum):d(f.frustum[p(h)])?f.frustum[p(3060)](scratchPerspectiveOffCenterFrustum):d(f.frustum.width)?f[p(378)].clone(scratchOrthographicFrustum):f.frustum.clone(scratchOrthographicOffCenterFrustum),M=0;M<b;++M){var E=b-M-1,A=x[E],L=i.framebuffer;if(i.framebuffer=t,T.near=0!=E?A.near*C.opaqueFrustumNearOffset:A.near,T.far=A.far,g.updateFrustum(T),g.updatePass(m[p(2066)]),l=A.commands[m.GLOBE],o=A[p(3296)][m[p(u)]],P)k.executeGlobeCommands(A,S,w,C,i);else for(a=0;a<o;++a)S(l[a],C,e,i);for(g.updatePass(m.CESIUM_3D_TILE),l=A[p(2864)][m.CESIUM_3D_TILE],o=A[p(_)][m.CESIUM_3D_TILE],a=0;a<o;++a)S(l[a],C,e,i);for(g[p(1396)](m[p(3346)]),l=A.commands[m[p(3346)]],o=A[p(_)][m.OPAQUE],a=0;a<o;++a)S(l[a],C,e,i);for(g.updatePass(m[p(2687)]),l=A.commands[m.TRANSLUCENT],o=A[p(_)][m.TRANSLUCENT],a=0;a<o;++a)S(l[a],C,e,i);i.framebuffer=L}}register("depthOfField",DepthOfFieldEffect);var packing="\nvec3 packNormalToRGB( const in vec3 normal ) {\n return normalize( normal ) * 0.5 + 0.5;\n}\n\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n return 2.0 * rgb.xyz - 1.0;\n}\n\nconst float PackUpscale = 256. / 255.; // fraction -> 0..1 (including 1)\nconst float UnpackDownscale = 255. / 256.; // 0..1 -> fraction (excluding 1)\n\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\n\nconst float ShiftRight8 = 1. / 256.;\n\nvec4 packDepthToRGBA( const in float v ) {\n vec4 r = vec4( fract( v * PackFactors ), v );\n r.yzw -= r.xyz * ShiftRight8; // tidy overflow\n return r * PackUpscale;\n}\n\nfloat unpackRGBAToDepth( const in vec4 v ) {\n return dot( v, UnpackFactors );\n}\n\nvec4 pack2HalfToRGBA( vec2 v ) {\n vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ));\n return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w);\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\n\n// NOTE: viewZ/eyeZ is < 0 when in front of the camera per OpenGL conventions\n\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n return ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n return linearClipZ * ( near - far ) - near;\n}\n\n// NOTE: https://twitter.com/gonnavis/status/1377183786949959682\n\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n return (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n return ( near * far ) / ( ( far - near ) * invClipZ - far );\n}\n",cmz_selected_glsl="\n#define CZM_SELECTED_FEATURE\nuniform sampler2D czm_selectedIdTexture;\nuniform float czm_selectedIdTextureStep;\nuniform float czm_selectedIdTextureWidth;\nbool czm_selected(vec4 id)\n{\n bool selected = false;\n for (int i = 0; i < 1024000; i++)\n {\n vec4 selectedId = texture(czm_selectedIdTexture, vec2((float(i) + 0.5) * czm_selectedIdTextureStep, 0.5));\n if (all(equal(id, selectedId))){\n return true;\n }\n if(float(i)>czm_selectedIdTextureWidth)\n break;\n }\n return false;\n}\n";function CesiumRenderPass(e){var s,t=971,i=3096,a=640,n=1998,H=3597,F=2086,N=2623,G=2557,z=2448,B={_0x444247:2928},r={_0x2c4f1c:2327,_0x529395:3489},d={_0x19204a:2822,_0x536927:722,_0x21f540:2249},j={_0xfd7bfa:3169},o={_0x5cf0d3:2588,_0x102717:3129,_0x1858c4:2588},_={_0x1d537d:1295,_0x434c6c:4011},p={_0x3cb7ee:1086,_0x13ace2:3558,_0x21a52d:836,_0xfa68fe:796,_0x22733b:796},w={_0x1536db:1942,_0x3bdba1:2266,_0x450cf8:790,_0x18c438:612,_0x26256b:2654,_0x5b20b9:1018,_0x23102d:756,_0x3dbadd:2154,_0x3eba1d:2557,_0x1e2016:3200},S=_0x1658de,l=Cesium__namespace.defaultValue,c=Cesium__namespace[S(t)],V=Cesium__namespace.Pass,$=Cesium__namespace.Sampler,U=Cesium__namespace[S(2381)],W=Cesium__namespace[S(i)],T=Cesium__namespace.ShaderSource,M=Cesium__namespace.defined,t=Cesium__namespace.ClearCommand,J=Cesium__namespace[S(3712)],m=Cesium__namespace.Texture,q=Cesium__namespace.PixelDatatype,Y=Cesium__namespace.PixelFormat,Z=Cesium__namespace.Framebuffer,i=(this[S(3703)]=null,e[S(a)]),E=e[S(724)],A=e.fragmentShader,f=e[S(n)],X=e.renderStateProcess,y=e.beforeUpdate,v=e[S(H)],a=e[S(3520)],Q=e.pixelFormat,K=e.pixelDatatype,ee=e.sampler,L=e[S(1139)],n=e[S(F)],D="renderPass_"+i[S(1189)](/[\.\\\/\-]/g,"_"),I="czm_non_".concat(D,"_main"),O=S(N)[S(G)](D,"_main"),g=S(z)[S(2557)](D),C=D+"Command",x=null,h=null,u=null,R=null,b=new t({color:W.TRANSPARENT,depth:1}),k=new c,P=this;if(n&&c.clone(n,k),L=L||"add",v=v||S(1302),(a=a||1)<0||8<a)throw new Cesium__namespace[S(2478)]("CesiumRenderPass:textureScale必须大于0小于等于8");function te(e,t,i,a){var n=S,s=e[n(w._0x1536db)].getDerivedShaderProgram(t,D);if(!M(s)){var r=t[n(w._0x3bdba1)],o=t.fragmentShaderSource,l=t[n(w._0x450cf8)],c=t._vertexShaderText,h=(C=o.sources).length,u=!!R&&(R&&(u=R.selected||R.parentSelected).length?u:void 0),_=cmz_selected_glsl,p=/texture\s?\(\s?model_pickTexture\s?,\s?selectedFeature.st\s?\)/.test(i),i=(_+="varying"!==a||p?"\nbool czm_selected(){\n return czm_selected(".concat(i,n(772)):n(2881).concat(i,");\n }\n return isSelected;\n}\n "),cmz_selected_glsl+"\nout float me_isSelected;\nbool czm_selected(){\n return czm_selected(".concat(i,n(3947))),m=!1,d=!1;if(/in\s?vec3\s?normal\s?;/.test(c)||/\n\s?vec3\s?normal\s?;/[n(w._0x18c438)](c)?m=!0:/out\s?vec3\s?v_normal\s?;/[n(612)](c)&&(d=!0),A){for(var f=!1,y=0;y<h;++y)if(/vec4\s?packDepthToRGBA\s?\(/.test(C[y])){f=!0;break}for(var c=(f?"":packing)+(u?_:"")+T.replaceMain(A,O)+"void main() \n"+n(1261)+("replace"!==L?" ".concat(I,n(w._0x26256b)):"")+" "[n(2557)](O,"(); \n")+"} \n",v=new Array(h+1),g=0;g<h;++g)v[g]=T.replaceMain(C[g],I);v[h]=c,m?o[n(2325)].push("HAS_NORMAL_X3D"):d&&o.defines[n(w._0x5b20b9)]("HAS_V_NORMAL_X3D"),o=new T({sources:v,defines:o[n(2325)]})}if(E||A){for(var C,h=(C=l.sources).length,x=!1,b=0;b<h;++b)if(/vec4\s?packDepthToRGBA\s?\(/.test(C[b])){x=!0;break}u=u&&a===n(w._0x23102d)&&!p,m?l[n(2325)].push("HAS_NORMAL_X3D"):d&&l.defines[n(w._0x5b20b9)]("HAS_V_NORMAL_X3D");for(var _=(x?"":packing)+(u?i:"")+T[n(w._0x3dbadd)](E||"void main(){}",O)+"void main() \n{ \n"+(L!==n(1189)?n(3200)[n(w._0x3eba1d)](I,"(); \n"):"")+(u?" me_isSelected = 0.0;\n #ifdef CZM_SELECTED_FEATURE\n me_isSelected=czm_selected()?1.0:0.0;\n #endif\n":"")+n(w._0x1e2016).concat(O,"(); \n")+"} \n",k=new Array(h+1),P=0;P<h;++P)k[P]=T.replaceMain(C[P],I);k[h]=_,l=new T({sources:k,defines:l.defines})}s=e[n(1942)].createDerivedShaderProgram(t,D,{vertexShaderSource:l,fragmentShaderSource:o,attributeLocations:r})}return s}function ie(e,t,i){var a=S,n=e,s=t[a(1172)],r=e.derivedCommands;if(M(r)){var o,l,s=(r=(e=s[a(p._0x3cb7ee)]&&M(r[a(p._0x13ace2)])?r.logDepth.command:e).derivedCommands).renderPass;M(r[a(p._0x21a52d)])||(s=r[a(836)]={}),M(s[C])&&(l=s[C].shaderProgram,o=s[C].renderState),s[C]=U.shallowClone(e,s[C]),M(l)&&s.shaderProgramId===e.shaderProgram.id?(s[C][a(p._0x22733b)]=l,s[C].renderState=o):(r=e.shaderProgram,l=n._pickIdQualifier=new RegExp("uniform\\s?vec4\\s?".concat(e.pickId),"g")[a(612)](r._fragmentShaderText)?"uniform":"varying",s[C].shaderProgram=te(i,r,e.pickId,l),s[C][a(2312)]=(o=t,n=e.renderState,i=S,o._renderPassCache=o._renderPassCache||{},o[i(967)][g]=o._renderPassCache[g]||{},r=(o=o[i(967)][g])[n.id],M(r)||(l=J[i(1335)](n),typeof X===i(4099)&&X.call(P,l),r=J.fromCache(l),o[n.id]=r),r),s.shaderProgramId=e[a(p._0xfa68fe)].id);var c,h=s[C].uniformMap,t=S;if(!h.__created&&(h[t(1619)]=function(){return R._selectedIdTexture},h[t(_._0x1d537d)]=function(){var e;return null!=(e=null==(e=R._selectedIdTexture)?void 0:e.width)?e:0},h.czm_selectedIdTextureStep=function(){var e;return null!=(e=R._selectedIdTexture)&&e.width?1/R._selectedIdTexture.width:-1},f))for(var u in h[t(_._0x434c6c)]=!0,f)f.hasOwnProperty(u)&&("function"!=typeof f[u]?h[u]=function(t){return function(){var e=f[t];return"function"==typeof e?e():e}}(u):h[u]=f[u],"string"==typeof(c=h[u]())||c instanceof m||c instanceof HTMLImageElement||c instanceof HTMLCanvasElement||c instanceof HTMLVideoElement)&&(h[u+"Dimensions"]=function(t,i){return function(){var e=t[i]();if(M(e))return e.dimensions}}(h,u))}}function ae(e,t,i){var a=S,n=t.width,t=t[a(3159)];h&&h.width===n&&h.height===t&&i===s||(s=i,h&&(h[S(1553)](),x.destroy(),h=x=void 0),u&&(u.destroy(),u=void 0),h=new m({context:e,width:n,height:t,pixelFormat:l(Q,Y.RGBA),pixelDatatype:l(K,q[a(807)]),sampler:l(ee,$[a(o._0x5cf0d3)])}),u=new m({context:e,width:n,height:t,pixelFormat:Y[a(o._0x102717)],pixelDatatype:q.UNSIGNED_SHORT,sampler:$[a(o._0x1858c4)]}),x=new Z({colorTextures:[h],context:e,destroyAttachments:!1,depthTexture:u}))}function ne(e){var t=S,e=(k=c[t(3060)](e.viewport,k),Object.assign({},e.passState));return e[t(j._0xfd7bfa)]=k,e}function se(e,t){var i=S,a=e._us._frameState.camera._scene,n=a._view;try{if(E||A){for(var s,r=ne(n),o=("function"==typeof y&&y.call(P,a,t),ae(e,k,a.hdr,n.sceneFramebuffer),a),l=S,c=o._view[l(3042)],h=c.length,u=0;u<h;++u)for(var _=c[h-u-1],p=0;p<_.commands.length;p++){var m=_.commands[p],d=_.indices[p];if(!R||p!==V.GLOBE)for(s=0;s<d;++s)ie(m[s],o,o._context)}executeDerivedCommandList(e,x,r,"renderPass",C,"all"!==v&&R&&R._selectedIdTexture?re:null)}else{var f=ne(n);"function"==typeof y&&y.call(P,a,t),ae(e,k,a.hdr,n[i(3369)]),executeDerivedCommandList(e,x,f)}}catch(e){}}function re(e,t){var i=S,a=R&&(R.selected||R.parentSelected);if(!R||!a||!a[i(2822)])return!1;if(!e.pickId||e._pickIdQualifier!==i(2798))return!0;var n=!0,s=e[i(1644)],r="selected"===v;if(s&&s.isObject3D){for(var o=0;o<a[i(d._0x19204a)];o++)if(a[o]===s)return r;return!r}var l=e.uniformMap;if(l[e[i(d._0x536927)]])for(var c=l[e.pickId](),n=!r,h=0;h<a[i(d._0x19204a)];h++)for(var u=a[h],_=u.pickId?[u.pickId]:u.pickIds||u[i(d._0x21f540)],p=0;p<_.length;p++){var m=_[p];if(m.color===c||W[i(2204)](m.color,c))return r}return n}function oe(e){var t,i=S;x&&(t=e._us._frameState.camera._scene._view,b.framebuffer=x,b[i(r._0x2c4f1c)](e,t[i(3695)]),b[i(r._0x529395)]=void 0)}this[S(758)]=se,this.clear=oe,Object[S(1903)](this,{texture:{get:function(){return h}},depthTexture:{get:function(){return u}},stage:{get:function(){return R},set:function(e){var a,t;R!==e&&(e=e,t=S,R&&P.prevStageUpdate&&(R.update=P[t(B._0x444247)],P.prevStageUpdate=null,P.prevStageExecute=null),R=e)&&(a=R.update,P.prevStageUpdate=a,R.update=function(e,t){var i;oe(e),a.call(R,e,t),R.enabled&&(!E&&!A||(i=R.selected||R.parentSelected)&&i.length)&&se(e,t)})}}})}var _shadersSeparableBlur="\n in vec2 v_textureCoordinates;\n uniform sampler2D colorTexture;\n uniform vec2 colorTextureDimensions;\n uniform vec2 direction;\n uniform float kernelRadius;\n\n float gaussianPdf(in float x, in float sigma) {\n return 0.39894 * exp( -0.5 * x * x/( sigma * sigma))/sigma;\n }\n void main() {\n vec2 vUv=v_textureCoordinates;\n vec2 invSize = 1.0 / colorTextureDimensions;\n float weightSum = gaussianPdf(0.0, kernelRadius);\n vec4 diffuseSum = texture( colorTexture, vUv) * weightSum;\n vec2 delta = direction * invSize * kernelRadius/float(MAX_RADIUS);\n vec2 uvOffset = delta;\n for( int i = 1; i <= MAX_RADIUS; i ++ ) {\n float w = gaussianPdf(uvOffset.x, kernelRadius);\n vec4 sample1 = texture( colorTexture, vUv + uvOffset);\n vec4 sample2 = texture( colorTexture, vUv - uvOffset);\n diffuseSum += ((sample1 + sample2) * w);\n weightSum += (2.0 * w);\n uvOffset += delta;\n }\n out_FragColor = diffuseSum/weightSum;\n }";function createBlurStage(e,t,i,a){var n=_0x1658de,s=Cesium__namespace[n(2638)],r=Cesium__namespace[n(1959)],o=Cesium__namespace.PostProcessStageComposite,l=Cesium__namespace.PostProcessStageSampleMode,c=new s(1,0),s=new s(0,1),t={defines:{MAX_RADIUS:t},fragmentShader:_shadersSeparableBlur};return parseDefines(t),new o({name:e,stages:[new r({name:e+"_x_direction",fragmentShader:t.fragmentShader,textureScale:a,forcePowerOfTwo:!0,uniforms:{kernelRadius:i,direction:c},sampleMode:l[n(3779)]}),new r({name:e+n(1821),fragmentShader:t[n(3580)],textureScale:a,forcePowerOfTwo:!0,uniforms:{kernelRadius:i,direction:s},sampleMode:l.LINEAR})],inputPreviousStageTexture:!0})}function parseDefines(e){var t,i,a=_0x1658de,n=[];for(t in e.defines)e.defines.hasOwnProperty(t)&&(i=e.defines[t],n.push("#define "+t+" "+i));n=n[a(2280)]("\n")+"\n",e.fragmentShader&&(e[a(3580)]=n+e.fragmentShader),e.vertexShader&&(e.vertexShader=n+e.vertexShader)}var OutlineEffect=function(){var r=3817,o=539,t=3817,u=640,_=1529,p=3779,m=1280,d=640,f=3463,y=1903,v=696,a=1802,n=696,s=3955,l=815,c=3246,i=3952,h=2428,g=3231,e=2428,C=1363,x=_0x1658de,b=(_inherits(k,BaseEffect),_createSuper(k));function k(){var e,t=_0x236b,i=0<arguments[t(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,k),(e=b.call(this,i))[t(3533)](i),e}return _createClass(k,[{key:"selected",get:function(){var e,t=_0x236b;return null==(e=this._postProcessStage)?void 0:e[t(1040)]},set:function(e){var t=_0x236b,i=[];e&&(i=Array.isArray(e)?this._getPickIds(e):this[t(C)]([e])),this._postProcessStage&&(this._postProcessStage.selected=i,this[t(3952)].enabled=this.enabled&&0<this.selected.length)}},{key:"color",get:function(){return this[_0x236b(965)]},set:function(e){var t=_0x236b;this[t(965)]=getCesiumColor(e),this[t(2107)]=!this._colorHidden||this._color.equals(this._colorHidden)}},{key:"colorHidden",get:function(){var e=_0x236b;return Cesium__namespace.defined(this[e(2427)])?this._colorHidden:this._color},set:function(e){var t=_0x236b;this._colorHidden=getCesiumColor(e),this._useSingleColor=!this._colorHidden||this._color.equals(this[t(2427)])}},{key:"planeAngle",get:function(){return this[_0x236b(e)]},set:function(e){var t=_0x236b;this[t(h)]=e,this[t(g)]=Cesium__namespace.Math.toRadians(e)}},{key:"_enabledHook",value:function(e){this[_0x236b(i)]&&(this._postProcessStage.enabled=e&&0<this.selected.length)}},{key:"setOptions",value:function(e){var t,i=_0x236b;return this.eventType=null!=(t=e[i(861)])?t:EventType[i(a)],this.width=null!=(t=e[i(n)])?t:6,this.color=getCesiumColor(e.color,Cesium__namespace.Color.WHITE),this.colorHidden=e[i(s)],this.showPlane=null!=(t=e[i(2598)])&&t,this.planeAngle=null!=(t=e[i(l)])?t:10,this.glow=null!=(t=e[i(c)])&&t,this.glowPower=null!=(i=e.glowPower)?i:1,this.glowStrength=null!=(t=e.glowStrength)?t:3,this.onlySelected=null!=(i=e.onlySelected)&&i,this}},{key:"_mountedHook",value:function(){var a={_0x5c6f7f:3231},n={_0x317f16:1674},e=419,t=2598,s=_0x236b,r=this,i=new CesiumRenderPass({name:this[s(u)]+"Pass",vertexShader:"\n out vec3 vOutlineNormal_gis3d;\n void main(){\n #ifdef HAS_NORMAL_GIS3D\n vOutlineNormal_gis3d = normal;\n #else\n #ifdef HAS_V_NORMAL_GIS3D\n vOutlineNormal_gis3d = v_normal;\n #else\n vOutlineNormal_gis3d=vec3(0.);\n #endif\n #endif\n } ",fragmentShader:"\n in vec3 vOutlineNormal_gis3d;\n void main(){\n #ifdef CZM_SELECTED_FEATURE\n if(!czm_selected())discard;\n #endif\n\n if(length(vOutlineNormal_gis3d)>0.0)\n out_FragColor=vec4( vOutlineNormal_gis3d ,out_FragColor.a);\n }",sampler:new Cesium__namespace[s(_)]({minificationFilter:Cesium__namespace.TextureMinificationFilter[s(p)],magnificationFilter:Cesium__namespace.TextureMagnificationFilter.LINEAR})}),o=new Cesium__namespace.PostProcessStage({name:this[s(640)]+s(m),uniforms:{outlineWidth:function(){return r[s(v)]},devicePixelRatio:devicePixelRatio,thresholdAngle:function(){return r._planeAngleRadians},useSingleColor:function(){return r[s(2107)]},showOutlineOnly:function(){return!r[s(t)]},visibleEdgeColor:function(){return r.color},hiddenEdgeColor:function(){return r.colorHidden},maskTexture:function(){return i.texture},maskDepthTexture:function(){return i[s(e)]}},fragmentShader:"\n uniform sampler2D colorTexture;\n uniform vec2 colorTextureDimensions;\n uniform sampler2D depthTexture;\n\n uniform sampler2D maskTexture;\n uniform sampler2D maskDepthTexture;\n uniform float thresholdAngle;\n uniform bool showOutlineOnly;\n\n uniform float outlineWidth;\n uniform float devicePixelRatio;\n uniform vec3 visibleEdgeColor;\n uniform vec3 hiddenEdgeColor;\n uniform bool useSingleColor;\n\n in vec2 v_textureCoordinates;\n\n float lengthSq(vec3 v){\n return v.x * v.x + v.y * v.y + v.z * v.z;\n }\n float normal_angleTo(vec3 a,vec3 b){\n float denominator = sqrt( lengthSq(a) * lengthSq(b) );\n if ( denominator == 0. ) return czm_pi / 2.;\n float theta = dot(a, b ) / denominator;\n // clamp, to handle numerical problems\n return acos( clamp( theta, - 1., 1. ) );\n }\n\n float compareNormal(vec4 n1,vec4 n2){\n if( abs ( normal_angleTo( n1.xyz , n2.xyz ) ) < thresholdAngle ){\n return 0.;\n }else{\n return 1.;\n }\n }\n\n float compareDepth(const in vec2 uv){\n float maskDepth = czm_readDepth( maskDepthTexture, uv);\n float nonDepth = czm_readDepth( depthTexture, uv);\n return maskDepth>nonDepth?1.:0.;\n }\n\n void main(){\n\n vec2 vUv=v_textureCoordinates;\n\n // vec4 color = texture( colorTexture, vUv);\n vec4 maskColor = texture( maskTexture, vUv);\n\n if( maskColor.a < 0.0001){\n // out_FragColor =color;\n discard;\n return;\n }\n\n vec2 invSize = outlineWidth / colorTextureDimensions;\n vec4 uvOffset = vec4(1.0, 0.0, 0.0, 1.0) * vec4(invSize, invSize);\n\n vec4 c1 = texture( maskTexture, vUv + uvOffset.xy);\n vec4 c2 = texture( maskTexture, vUv - uvOffset.xy);\n vec4 c3 = texture( maskTexture, vUv + uvOffset.yw);\n vec4 c4 = texture( maskTexture, vUv - uvOffset.yw);\n\n float d;\n if(showOutlineOnly){\n float diff1 = (c1.a - c2.a)*0.5;\n float diff2 = (c3.a - c4.a)*0.5;\n d = length( vec2(diff1, diff2) );\n }\n else{\n float diff1 = compareNormal(c1,c2)*0.5;\n float diff2 = compareNormal(c3,c4)*0.5;\n d = length( vec2(diff1, diff2) );\n }\n\n if(useSingleColor==false){\n float dp1 = compareDepth( vUv + uvOffset.xy);\n float dp2 = compareDepth( vUv - uvOffset.xy);\n float dp3 = compareDepth( vUv + uvOffset.yw);\n float dp4 = compareDepth( vUv - uvOffset.yw);\n\n float a1 = min(dp1, dp2);\n float a2 = min(dp3, dp4);\n float visibilityFactor = min(a1, a2);\n vec3 edgeColor = 1.0 - visibilityFactor > 0.001 ? visibleEdgeColor : hiddenEdgeColor;\n\n // out_FragColor =color+ vec4( edgeColor , 1. ) * vec4(d);\n out_FragColor = vec4( edgeColor , 1. ) * vec4(d);\n }else{\n // out_FragColor =color+ vec4( visibleEdgeColor , 1. ) * vec4(d);\n out_FragColor = vec4( visibleEdgeColor , 1. ) * vec4(d);\n }\n }\n "}),l=(i[s(2622)]=o,createBlurStage(this.name+"Blur1",4,1,.75)),c=createBlurStage(this.name+"Blur2",4,4,.5),c=new Cesium__namespace.PostProcessStageComposite({name:this[s(d)]+s(4067),stages:[o,l,c],inputPreviousStageTexture:!0}),o=new Cesium__namespace[s(1959)]({name:this.name+"Additive",uniforms:{showGlow:function(){return r[s(3246)]},edgeGlow:function(){return r.glowPower},edgeStrength:function(){return r.glowStrength},edgeOnly:function(){return r.onlySelected},maskTexture:function(){return i.texture},lineTexture:o.name,edgeTexture1:l[s(640)],edgeTexture2:c.name},fragmentShader:"\n uniform sampler2D colorTexture;\n uniform sampler2D edgeTexture1;\n uniform sampler2D edgeTexture2;\n uniform sampler2D lineTexture;\n uniform sampler2D maskTexture;\n uniform bool showGlow;\n uniform float edgeGlow;\n uniform bool edgeOnly;\n uniform float edgeStrength;\n\n in vec2 v_textureCoordinates;\n void main(){\n\n vec2 vUv =v_textureCoordinates;\n vec4 edgeColor=texture( lineTexture, vUv);\n vec4 color=texture( colorTexture, vUv);\n float opacity=1.;\n if(edgeOnly){\n vec4 maskColor=texture( maskTexture, vUv);\n opacity=1.-maskColor.a;\n out_FragColor = maskColor;\n return;\n }\n\n if(showGlow){\n vec4 edgeValue1 = texture(edgeTexture1, vUv);\n vec4 edgeValue2 = texture(edgeTexture2, vUv);\n vec4 glowColor = edgeValue1 + edgeValue2 * edgeGlow;\n out_FragColor = opacity * color + edgeColor + edgeStrength * (1. - edgeColor.r) * glowColor;\n }\n else{\n out_FragColor = opacity * color + edgeColor;\n }\n }\n "}),l=new Cesium__namespace.PostProcessStageComposite({name:this[s(640)]+"Composite",stages:[c,o],inputPreviousStageTexture:!1});function h(e){var t=3955,i=s;Object[i(y)](e,{showGlow:{get:function(){return r[i(3246)]},set:function(e){r.glow=e}},edgeGlow:{get:function(){return r[i(n._0x317f16)]},set:function(e){r.glowPower=e}},edgeStrength:{get:function(){return r.glowStrength},set:function(e){r.glowStrength=e}},thresholdAngle:{get:function(){return r._planeAngleRadians},set:function(e){r[i(a._0x5c6f7f)]=e}},showOutlineOnly:{get:function(){return!r.showPlane},set:function(e){r.showPlane=!e}},edgeOnly:{get:function(){return r.onlySelected},set:function(e){r.onlySelected=e}},useSingleColor:{get:function(){return r._useSingleColor}},outlineWidth:{get:function(){return r[i(696)]},set:function(e){r[i(696)]=e}},visibleEdgeColor:{get:function(){return r.color},set:function(e){r[i(2745)]=e}},hiddenEdgeColor:{get:function(){return r.colorHidden},set:function(e){r[i(t)]=e}}})}h(l),l._uniforms=l._uniforms||{},h(l._uniforms),l[s(1040)]=[],l[s(f)]=!1,this._postProcessStage=l}},{key:x(563),value:function(){var e=x;this[e(861)]&&this[e(t)].on(this.eventType,this._map_clickHandler,this)}},{key:"_removedHook",value:function(){var e=x;this.eventType&&this._map[e(4030)](this[e(861)],this._map_clickHandler,this)}},{key:"_map_clickHandler",value:function(e){var t=x,i=this.options.objectsToExclude;if(i)for(var a=0,n=i.length;a<n;a++){var s=i[a];if(e.graphic===s||e.layer===s)return}t=this[t(r)][t(o)].getPicked(e);this.selected=t}}]),k}(),BloomTargetEffect=(register("outline",OutlineEffect),function(){var r=1123,e=861,t=861,o=902,l=3096,c=2557,h=640,u=640,_=1959,p=1256,m=1592,d=1518,f=_0x1658de,a=(_inherits(n,BaseEffect),_createSuper(n));function n(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),i=_objectSpread2({contrast:128,brightness:-.3,blurSamples:32,delta:1,sigma:3.78,stepSize:5,ratio:2,threshold:0,smoothWidth:.01},i),(e=a[t(1567)](this,i))[t(2745)]=getCesiumColor(i.color,Cesium__namespace.Color[t(3644)]),e.eventType=null!=(t=i.eventType)?t:EventType.click,e}return _createClass(n,[{key:"selected",get:function(){var e;return null==(e=this._postProcessStage)?void 0:e.selected},set:function(e){var t=_0x236b,i=[];e&&(i=Array.isArray(e)?this._getPickIds(e):this[t(1363)]([e])),this._postProcessStage&&(this._postProcessStage.selected=i,this._postProcessStage.enabled=this.enabled&&0<this.selected.length)}},{key:"_enabledHook",value:function(e){var t=_0x236b;this._postProcessStage&&(this._postProcessStage.enabled=e&&0<this[t(1040)][t(2822)])}},{key:f(1744),value:function(){var t=429,i=f,a=this,e=new Cesium__namespace[i(1959)]({name:this.name+"high",fragmentShader:i(o),uniforms:{marsColor:Cesium__namespace[i(l)].BLACK,marsOpacity:1,smoothWidth:function(){return a.options.smoothWidth},threshold:function(){return a.options.threshold}}}),n="\n #define SAMPLES "[i(c)](this.options.blurSamples,"\n uniform sampler2D colorTexture;\n uniform float direction;\n\n uniform float delta;\n uniform float sigma;\n uniform float stepSize;\n\n in vec2 v_textureCoordinates;\n void main()\n {\n vec2 st = v_textureCoordinates;\n vec2 dir = vec2(1.0 - direction, direction);\n vec2 step = vec2(stepSize * (czm_pixelRatio / czm_viewport.zw));\n\n vec3 g;\n g.x = 1.0 / (sqrt(czm_twoPi) * sigma);\n g.y = exp((-0.5 * delta * delta) / (sigma * sigma));\n g.z = g.y * g.y;\n vec4 result = texture(colorTexture, st) * g.x;\n\n for (float i = 1.0; i < float(SAMPLES); i+=1.0)\n {\n g.xy *= g.yz;\n vec2 offset = i * dir * step;\n result += texture(colorTexture, st - offset) * g.x;\n result += texture(colorTexture, st + offset) * g.x;\n }\n out_FragColor = result;\n }\n "),s=new Cesium__namespace.PostProcessStage({name:this.name+"blur_x",fragmentShader:n,uniforms:{delta:function(){var e=i;return a.options[e(1060)]},sigma:function(){var e=i;return a.options[e(1104)]},stepSize:function(){return a.options.stepSize},direction:0},sampleMode:Cesium__namespace[i(1006)].LINEAR}),n=new Cesium__namespace.PostProcessStage({name:this[i(h)]+"blur_y",fragmentShader:n,uniforms:{delta:function(){return a.options.delta},sigma:function(){return a.options.sigma},stepSize:function(){return a.options.stepSize},direction:1},sampleMode:Cesium__namespace.PostProcessStageSampleMode[i(3779)]}),s=new Cesium__namespace.PostProcessStageComposite({name:this[i(u)]+"blur",stages:[s,n]}),n=new Cesium__namespace.PostProcessStageComposite({name:this.name+i(1406),stages:[e,s],inputPreviousStageTexture:!0}),e=new Cesium__namespace[i(_)]({name:this.name+"contrast_bias",fragmentShader:"\n uniform sampler2D colorTexture;\n in vec2 v_textureCoordinates;\n uniform float contrast;\n uniform float brightness;\n void main(void)\n {\n vec3 sceneColor = texture(colorTexture, v_textureCoordinates).xyz;\n sceneColor = czm_RGBToHSB(sceneColor);\n sceneColor.z += brightness;\n sceneColor = czm_HSBToRGB(sceneColor);\n float factor = (259.0 * (contrast + 255.0)) / (255.0 * (259.0 - contrast));\n sceneColor = factor * (sceneColor - vec3(0.5)) + vec3(0.5);\n out_FragColor = vec4(sceneColor, 1.0);\n }",uniforms:{contrast:function(){var e=i;return a.options[e(t)]},brightness:function(){var e=i;return a.options[e(2995)]}}}),s=new Cesium__namespace[i(2749)]({name:this.name+i(p),stages:[e,n]}),e=new Cesium__namespace.PostProcessStage({name:this.name+"generate_composite",fragmentShader:"\n uniform sampler2D colorTexture;\n uniform sampler2D bloomTexture;\n uniform float ratio;\n uniform vec4 color;\n in vec2 v_textureCoordinates;\n void main(void)\n {\n vec4 color1 = texture(colorTexture, v_textureCoordinates);\n vec4 bloom = texture(bloomTexture, v_textureCoordinates);\n bloom *= color ;\n #ifdef CZM_SELECTED_FEATURE\n if (czm_selected()) {\n bloom *= ratio;\n }\n #endif\n out_FragColor = bloom + color1;\n }",uniforms:{bloomTexture:s.name,ratio:function(){var e=i;return a[e(m)][e(d)]},color:function(){return a.color}}});this[i(3952)]=new Cesium__namespace.PostProcessStageComposite({name:this.name,stages:[s,e],inputPreviousStageTexture:!1}),this._postProcessStage[i(1040)]=[]}},{key:"_addedHook",value:function(){var e=f;this[e(t)]&&this._map.on(this[e(t)],this._map_clickHandler,this)}},{key:"_removedHook",value:function(){this[f(e)]&&this._map.off(this.eventType,this._map_clickHandler,this)}},{key:"_map_clickHandler",value:function(e){var t=f,i=this.options[t(r)];if(i)for(var a=0,n=i.length;a<n;a++){var s=i[a];if(e.graphic===s||e.layer===s)return}t=this[t(3817)].mouseEvent.getPicked(e);this.selected=t}}]),n}()),index$2=(register("bloomTarget",BloomTargetEffect),{__proto__:null,BaseEffect:BaseEffect,FogEffect:FogEffect,RainEffect:RainEffect,SnowEffect:SnowEffect,SnowCoverEffect:SnowCoverEffect,InvertedEffect:InvertedEffect,NightVisionEffect:NightVisionEffect,BloomEffect:BloomEffect,BrightnessEffect:BrightnessEffect,BlackAndWhiteEffect:BlackAndWhiteEffect,MosaicEffect:MosaicEffect,DepthOfFieldEffect:DepthOfFieldEffect,OutlineEffect:OutlineEffect,BloomTargetEffect:BloomTargetEffect}),BaseControl=function(){var e=3689,t=1158,i=1842,a=1553,n=3122,s=601,r=3464,o=416,l=434,c=2897,h=1941,u=426,_=897,p=660,m=3817,d=1744,f=434,y=2163,v=1592,g=2544,C=434,x=_0x1658de,b=(_inherits(k,BaseThing),_createSuper(k));function k(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,k),(e=b.call(this,t))._show=null==(t=t.show)||t,e}return _createClass(k,[{key:"show",get:function(){return this._show},set:function(e){var t=_0x236b;this[t(g)]!==e&&(this._show=e,this[t(C)]&&(this._container.style.display=e?"block":"none"),this._showHook&&this._showHook(e),this._map.fire(EventType.updateControl,{control:this}))}},{key:"type",get:function(){return this._type}},{key:"container",get:function(){return this._container}},{key:"parentContainer",get:function(){var e;return this[_0x236b(v)].parentContainer?this.options.parentContainer:null==(e=this._map)?void 0:e.container}},{key:x(e),get:function(){var e;return null==(e=this.parentContainer)?void 0:e.id}},{key:"_enabledHook",value:function(e){var t=x;this[t(f)]&&(this._container.style[t(y)]=e?"block":t(1058)),this._showHook&&this._showHook(e)}},{key:"setOptions",value:function(e){if(!isBoolean(e))return this.options=merge(this.options,e),this.reload(),this}},{key:x(t),value:function(){var e=x,t=this._map;t&&(this[e(910)](),delete this._container,this._onAdd(t))}},{key:"addTo",value:function(e){return e&&e.addControl&&e.addControl(this),this}},{key:x(4071),value:function(e){this._map&&this._map.removeControl(this,e)}},{key:x(721),value:function(e){var t=x;this._state!==State.ADDED&&(this[t(m)]=e,this._container?this[t(434)][t(2897)]||this[t(892)](this[t(434)]):(this[t(d)]&&this._mountedHook(),this[t(434)]&&this._addChildContainer(this[t(434)])),this._addedHook&&this._addedHook(),this._state=State[t(585)])}},{key:"_addChildContainer",value:function(e){var t,i=x;this.options.insertBefore?this.parentContainer.insertBefore(e,this.options.insertBefore):Cesium__namespace[i(3277)](this.options.insertIndex)?((t=this.parentContainer[i(_)])[i(2822)]<this[i(1592)].insertIndex&&(this.options[i(p)]=0),this.parentContainer.insertBefore(e,t[this.options.insertIndex])):this.parentContainer[i(4106)](e)}},{key:"_onRemove",value:function(){var e=x;this._state===State.ADDED&&this._map&&(this[e(434)]&&this[e(l)][e(c)]&&this[e(l)].parentNode.removeChild(this._container),this._removedHook&&this[e(2071)](),this._map=null,this[e(h)]=State[e(u)])}},{key:"_mountedHook",value:function(){}},{key:"_addedHook",value:function(){}},{key:"_removedHook",value:function(){}},{key:x(i),value:function(e){return this._container&&merge(this._container.style,e),this}},{key:"_createIcon",value:function(e,t){var i=x,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";return e?(t=t||create$3("div"),(e=trim(e))[i(s)](i(r))||e.startsWith("<svg")?t[i(4106)](parseDom(e,!0,a)):e.startsWith("data:image")||e[i(3333)](".svg")||e.endsWith(i(o))||e.endsWith(".jpg")?create$3("img",a,t).setAttribute("src",e):create$3("i",a+" "+e,t),t.innerHTML):""}},{key:x(1997),value:function(e){var t=x,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=2<arguments[t(2822)]?arguments[2]:void 0;return i.control||(i[t(n)]=this),_get(_getPrototypeOf(k[t(2385)]),"fire",this)[t(1567)](this,e,i,a)}},{key:"destroy",value:function(e){var t=x;this[t(3463)]=!1,_get(_getPrototypeOf(k.prototype),t(a),this).call(this,e)}}]),k}(),BaseCzmControl=function(){var e=2067,t=563,i=400,a=3832,r=1962,n=434,s=1592,o=1592,l=2492,c=2067,h=2106,u=2163,_=2436,p=372,m=1592,d=1802,f=_0x1658de,y=(_inherits(v,BaseControl),_createSuper(v));function v(){return _classCallCheck(this,v),y.apply(this,arguments)}return _createClass(v,[{key:f(e),get:function(){return this._map.viewer}},{key:"_mountedHook",value:function(){var e=f,t=this[e(3817)].viewer[this._czmControlKey];if(t){if(this[e(3848)])try{this[e(3848)](t[this._czmContainerKey]),delete this[e(3848)]}catch(e){}}else this._container=this[e(1278)](),this.options.style&&this.setStyle(this.options.style)}},{key:f(t),value:function(){var e=f,t=this._map[e(c)][this._czmControlKey];t=t||this[e(833)](this._container),this[e(h)]=t,this._container=t[this._czmContainerKey],this[e(434)].style[e(u)]=this.show?e(_):e(1058),!this._toChineseLang||this._map[e(p)]!==LangType.ZH&&this._map.lang!==LangType.ZHHK||this._toChineseLang(this._map[e(1203)]),this[e(m)][e(660)]&&this._setInsertIndex(this.options.insertIndex),this._container.addEventListener(e(d),this._container_onClickHandler.bind(this))}},{key:"_removedHook",value:function(){var e=f;if(this._container.removeEventListener("click",this[e(2125)]),this[e(o)].destroyCzm){try{this._czmContrl[e(1553)]()}catch(e){}delete this._czmContrl}else this._container[e(l)].display="none"}},{key:"_container_onClickHandler",value:function(e){var t=f;this.enabled&&(this.options.click&&this[t(s)].click(this[t(s)]),this.fire(EventType.click,_objectSpread2(_objectSpread2({},this[t(1592)]),{},{mouseEvent:e})))}},{key:f(4017),value:function(){var e=f,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,i=this.parentContainer.childNodes;i.length<t&&(t=0),this.parentContainer.removeChild(this._container),this.parentContainer.insertBefore(this[e(n)],i[t])}},{key:"_rebindCzmContainer",value:function(e){}},{key:"_createCzmContainer",value:function(){return null}},{key:f(833),value:function(){return null}},{key:"_updateDomInnerHtml",value:function(e,t,i){for(var a=f,n=e.getElementsByClassName(i),s=0;s<n[a(2822)];s++)t[n[s].innerHTML]&&(n[s].innerHTML=t[n[s][a(r)]])}},{key:f(i),value:function(e,t,i){for(var a=f,n=e.getElementsByTagName(i),s=0;s<n[a(2822)];s++)t[n[s].innerHTML]&&(n[s].innerHTML=t[n[s].innerHTML])}},{key:"_updateDomAttribute",value:function(e,t,i,a){for(var n=f,s=(e=e||document)[n(353)](i),r=0;r<s[n(2822)];r++)t[s[r].getAttribute(a)]&&s[r].setAttribute(a,t[s[r].getAttribute(a)])}},{key:f(a),value:function(e,a,t,n,i){var s=f,r=e.getElementsByClassName(t);if(0<r[s(2822)])for(var o=0;o<r.length;o++)r[o][i]=function(e){var t=s,i=e.currentTarget.getAttribute(n);a[i]&&e[t(3272)].setAttribute(n,a[i])}}}]),v}(),Animation=function(){var i=2822,a=3430,t=2067,e=1063,n=_0x1658de,s=(_inherits(r,BaseCzmControl),_createSuper(r));function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,r),(e=s.call(this,e))._czmControlKey="_animation",e._czmContainerKey="_container",e}return _createClass(r,[{key:"_createCzmContainer",value:function(){return create$3("div",_0x236b(e))}},{key:"_createCzmControl",value:function(){var e=_0x236b;return new Cesium__namespace.Animation(this[e(434)],new Cesium__namespace[e(3745)](this[e(t)].clockViewModel))}},{key:n(2619),value:function(e){var t=n,e=e[t(353)]("cesium-viewer-animationContainer");0<e[t(i)]&&(e=e[0],this._updateDomByTagName(e,{Today:"今天","Today (real-time)":"今天(实际时间)",Pause:"暂停","Play Reverse":"后退播放","Play Forward":"前进播放","Current time not in range":"当前时间不在范围内"},t(a)))}}]),r}(),BaseLayerPicker=(register$1(_0x1658de(2764),Animation),function(){var i=353,a=1818,n=1119,o=972,l=2529,c=3272,s=941,r=1805,h=3734,u=1407,_=3734,t=3817,p=1592,m=660,d=_0x1658de,f=(_inherits(y,BaseCzmControl),_createSuper(y));function y(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,y),(t=f[e(1567)](this,t))._czmControlKey="_baseLayerPicker",t[e(1727)]=e(821),t.options.insertIndex=null!=(e=t[e(p)][e(m)])?e:1,t}return _createClass(y,[{key:"parentContainer",get:function(){var e=_0x236b;return this[e(1592)].parentContainer?this.options[e(3436)]:this[e(t)][e(3932)]}},{key:d(833),value:function(){var e,t=d,i={map:this._map,globe:this._map.scene[t(s)],imageryProviderViewModels:this.options[t(346)],selectedImageryProviderViewModel:this.options[t(r)],terrainProviderViewModels:this.options.terrainProviderViewModels,selectedTerrainProviderViewModel:this.options[t(h)]};return!i.imageryProviderViewModels&&0<(null==(e=this._map[t(1592)][t(3195)])?void 0:e.length)&&(e=getImageryProviderViewModels(this._map.options.basemaps,this._map.options.templateValues),i[t(346)]=e[t(346)],-1!==e.selectedIndex)&&(i.selectedImageryProviderViewModel=e.imageryProviderViewModels[e[t(u)]]),i[t(1700)]||(i.terrainProviderViewModels=getTerrainProviderViewModels(this._map._getTerrainOptions()),i[t(_)]=i.terrainProviderViewModels[null!=(e=this._map.options.terrain)&&e.show?1:0]),new Cesium__namespace.BaseLayerPicker(this._map[t(3932)],i)}},{key:"_toChineseLang",value:function(e){var s,r=d,t=e[r(i)]("cesium-baseLayerPicker-dropDown");0<t[r(2822)]&&(t=t[0],s={Imagery:"影像","Cesium ion":r(3453),Other:"其他",Terrain:r(1492),"WGS84 Ellipsoid":r(a),"Cesium World Terrain":"Cesium 世界地形图","WGS84 standard ellipsoid, also known as EPSG:4326":"WGS84标准椭球,又称EPSG:4326","High-resolution global terrain tileset curated from several datasources and hosted by Cesium ion":"高分辨率全球地形图块集由几个数据源组成,由Cesium ion托管"},this._updateDomInnerHtml(t,s,"cesium-baseLayerPicker-sectionTitle"),this._updateDomInnerHtml(t,s,"cesium-baseLayerPicker-categoryTitle"),this[r(1033)](t,s,"cesium-baseLayerPicker-itemLabel"),this[r(n)](t,s,r(o),"title"),0<(t=e[r(i)](r(l))).length)&&(t[0].parentElement[r(2363)]=function(e){var t=r,i=e.currentTarget.getAttribute("title").split("\n"),a="",n="";s[i[0]]?a+=s[i[0]]:a+=i[0],s[i[0]]?n+=s[i[1]]:n+=i[1],e[t(c)].setAttribute("title",a+"\n"+n)})}}]),y}()),FullscreenButton=(register$1("baseLayerPicker",BaseLayerPicker),function(){var e=3436,t=1278,i=3832,a=3627,n=4106,s=2822,r=1727,o=_0x1658de,l=(_inherits(c,BaseCzmControl),_createSuper(c));function c(){var e=_0x236b,t=0<arguments[e(s)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,c),(t=l.call(this,t))._czmControlKey="_fullscreenButton",t[e(r)]="_container",t}return _createClass(c,[{key:o(e),get:function(){var e=o;return this[e(1592)].parentContainer?this.options.parentContainer:this._map[e(3932)]}},{key:o(t),value:function(){var e=o,t=create$3("div","cesium-button cesium-toolbar-button");return t.style.display=e(1911),t}},{key:"_createCzmControl",value:function(){return new Cesium__namespace.FullscreenButton(this._container,this.options.fullscreenElement)}},{key:"_rebindCzmContainer",value:function(e){var t=o,i=(removeClass(e,"cesium-viewer-fullscreenContainer"),addClass(e,"cesium-button cesium-toolbar-button"),e.style.display="inline-block",e.parentNode.removeChild(e),null==(i=this[t(2067)].navigationHelpButton)?void 0:i._wrapper);i?this.parentContainer.insertBefore(e,i):this[t(3436)][t(n)](e)}},{key:"_toChineseLang",value:function(e){var t=o;this[t(i)](e,{"Full screen":"全屏","Exit full screen":"退出全屏","Full screen unavailable":"全屏不可用"},t(a),"title",t(2363))}}]),c}()),GaodePOIGeocoder=(register$1(_0x1658de(2766),FullscreenButton),function(){var t=1341,i=2274,a=2822,r=_0x1658de;function n(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,n),this[e(1592)]=t,this.gaodekey=t.key||gaodeArr}return _createClass(n,[{key:r(1341),value:function(){var e=r,t=this.gaodekey;return t[Math[e(3264)](Math[e(2653)]()*t[e(a)]+1)-1]}},{key:"geocode",value:function(a){var n=r,e=this[n(t)](),e=new Cesium__namespace.Resource({url:n(1690),queryParameters:_objectSpread2({count:20,key:e,keywords:a,types:"110000|120000|130000|140000|180000|190000|"},this.options[n(i)]||{})}),s=this;return e.fetchJson().then(function(e){var i,t=n;return"10000"!==e.infocode?(logError$1("请求失败("+e.infocode+"):"+e.info),{}):0===e.pois.length?(logInfo("未查询到“"+a+"”相关数据!"),{}):(i=3e3,s[t(2412)].camera[t(919)].height<i&&(i=s.map.camera.positionCartographic.height),e.pois.map(function(e){var t=gcj2wgs(e.location.split(","));return{displayName:e.name,destination:Cesium__namespace.Cartesian3.fromDegrees(t[0],t[1],i)}}))})}}]),n}()),Geocoder=function(){var e=1278,t=2619,a=2412,n=434,s=3118,i=2032,r=3932,o=_0x1658de,l=(_inherits(c,BaseCzmControl),_createSuper(c));function c(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,c),(e=l.call(this,e))._czmControlKey="_geocoder",e._czmContainerKey="_form",e}return _createClass(c,[{key:"parentContainer",get:function(){var e=_0x236b;return this.options.parentContainer||this._map[e(r)]}},{key:o(e),value:function(){return create$3("div",o(i))}},{key:"_createCzmControl",value:function(){var e,t=o,i=this.options.service;return i||((e=new GaodePOIGeocoder(this.options.geocoderConfig))[t(a)]=this,i=[e]),new Cesium__namespace.Geocoder({container:this[t(n)],geocoderServices:i,scene:this._map[t(s)]})}},{key:o(t),value:function(e){var t=o,i={"Enter an address or landmark...":"请输入地址...","Searching...":t(2668)};this[t(1119)](e,i,"cesium-geocoder-input","placeholder")}}]),c}(),HomeButton=(register$1("geocoder",Geocoder),function(){var t=701,i=3817,a=3817,n=821,s=660,e=_0x1658de,r=(_inherits(o,BaseCzmControl),_createSuper(o));function o(){var e=_0x236b,t=0<arguments[e(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,o),(t=r[e(1567)](this,t))._czmControlKey="_homeButton",t[e(1727)]=e(n),t.options[e(s)]=null!=(e=t.options.insertIndex)?e:0,t}return _createClass(o,[{key:"parentContainer",get:function(){var e=_0x236b;return this.options[e(3436)]?this.options.parentContainer:this._map.toolbar}},{key:"_createCzmControl",value:function(){var e=_0x236b;return new Cesium__namespace[e(t)](this[e(i)].toolbar,this[e(a)].scene)}},{key:e(2619),value:function(e){this._updateDomAttribute(e,{"View Home":"初始视图"},"cesium-home-button","title")}}]),o}()),NavigationHelpButton=(register$1(_0x1658de(1441),HomeButton),function(){var n=3585,s=2822,r=649,o=353,l=1033,a=3277,c=553,t=3817,i=2822,h=_0x1658de,u=(_inherits(_,BaseCzmControl),_createSuper(_));function _(){var e=0<arguments[_0x236b(i)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,_),(e=u.call(this,e))._czmControlKey="_navigationHelpButton",e._czmContainerKey="_wrapper",e}return _createClass(_,[{key:"parentContainer",get:function(){var e=_0x236b;return this.options.parentContainer||this[e(t)][e(3932)]}},{key:h(833),value:function(){var e,t=h,i=!0;try{Cesium__namespace[t(a)](window.localStorage)&&(e=window.localStorage.getItem("cesium-hasSeenNavHelp"),Cesium__namespace.defined(e)&&Boolean(e)?i=!1:window.localStorage[t(912)]("cesium-hasSeenNavHelp","true"))}catch(e){}return new Cesium__namespace.NavigationHelpButton({container:this[t(3817)].toolbar,instructionsInitiallyVisible:Cesium__namespace[t(c)](this[t(1592)].navigationInstructionsInitiallyVisible,i)})}},{key:"_toChineseLang",value:function(e){var t=h,i=(this._updateDomAttribute(e,{"Navigation Instructions":"帮助"},"cesium-navigation-help-button","title"),{Mouse:"鼠标操作",Touch:t(684),"Pan view":t(324),"Left click + drag":"鼠标左键+拖拽","Zoom view":"缩放视图","Right click + drag, or":t(1038),"Mouse wheel scroll":"中键滚动","Rotate view":"旋转视图","Middle click + drag, or":t(n),"CTRL + Left/Right click + drag":"按Ctrl键 同时 左/右键拖拽","One finger drag":"单指拖动","Two finger pinch":"双指向内或向外滑动","Tilt view":"倾斜视图","Two finger drag, same direction":"双指按相同方向拖动","Two finger drag, opposite direction":t(3557)}),a=e.getElementsByClassName(t(1985)),a=(0<a[t(s)]&&i[(a=a[0]).textContent]&&(a[t(1962)]=a.children[0].outerHTML+i[a[t(r)]]),e[t(o)]("cesium-navigation-button-right"));0<a.length&&i[(a=a[0]).textContent]&&(a.innerHTML=a[t(1677)][0].outerHTML+i[a.textContent]),this._updateDomInnerHtml(e,i,"cesium-navigation-help-pan"),this[t(l)](e,i,"cesium-navigation-help-details"),this._updateDomInnerHtml(e,i,"cesium-navigation-help-zoom"),this._updateDomInnerHtml(e,i,"cesium-navigation-help-rotate"),this._updateDomInnerHtml(e,i,"cesium-navigation-help-tilt")}}]),_}()),ProjectionPicker=(register$1(_0x1658de(2716),NavigationHelpButton),function(){var a=1119,t=3817,i=3817,n=_0x1658de,s=(_inherits(r,BaseCzmControl),_createSuper(r));function r(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,r),(t=s.call(this,t))._czmControlKey="_projectionPicker",t[e(1727)]="_wrapper",t}return _createClass(r,[{key:n(3436),get:function(){var e=n;return this.options.parentContainer?this.options[e(3436)]:this[e(i)][e(3932)]}},{key:n(833),value:function(){var e=n;return new Cesium__namespace.ProjectionPicker(this[e(t)].toolbar,this[e(3817)].scene)}},{key:"_toChineseLang",value:function(e){var t=n,i={"Perspective Projection":"透视投影","Orthographic Projection":"正射投影"};this[t(1119)](e,i,"cesium-projectionPicker-buttonPerspective","title"),this[t(a)](e,i,"cesium-projectionPicker-dropDown-icon",t(3430))}}]),r}()),SceneModePicker=(register$1("projectionPicker",ProjectionPicker),function(){var a=4063,t=3436,i=1567,n=3120,s=(_inherits(r,BaseCzmControl),_createSuper(r));function r(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,r),(t=s[e(i)](this,t))[e(n)]="_sceneModePicker",t._czmContainerKey="_wrapper",t}return _createClass(r,[{key:"parentContainer",get:function(){var e=_0x236b;return this.options.parentContainer?this.options[e(t)]:this._map[e(3932)]}},{key:"_createCzmControl",value:function(){var e=_0x236b;return new Cesium__namespace[e(2717)](this[e(3817)][e(3932)],this._map.scene)}},{key:"_toChineseLang",value:function(e){var t=_0x236b,i={"2D":"二维视图","3D":"三维视图","Columbus View":t(a)};this._updateDomAttributeByEvent(e,i,t(2731),t(3430),t(2363)),this._updateDomAttribute(e,i,"cesium-sceneModePicker-dropDown-icon","title")}}]),r}()),Timeline=(register$1("sceneModePicker",SceneModePicker),function(){var t=2106,i=1696,a=693,n=2071,s=1787,o=1567,l=2106,c=3817,h=1899,r=1467,u=3541,_=799,p=(_inherits(m,BaseCzmControl),_createSuper(m));function m(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,m),(t=p.call(this,t))._czmControlKey=e(_),t._czmContainerKey="container",t}return _createClass(m,[{key:"_createCzmContainer",value:function(){var e=_0x236b,e=create$3(e(r),e(u));return e.style.right="0px",e}},{key:"_createCzmControl",value:function(){return new Cesium__namespace.Timeline(this._container,this._map.clock)}},{key:"_addedHook",value:function(){var e,a=984,n=_0x236b,s=(_get(_getPrototypeOf(m.prototype),n(563),this)[n(o)](this),10*(null!=(e=this.options[n(1811)])?e:1)),r=this[n(l)].zoomTo;this._czmContrl.zoomTo=function(e,t){var i=Cesium__namespace[n(a)].secondsDifference(t,e);if(s<i)return r.bind(this)(e,t)},this[n(2106)].addEventListener("settime",this[n(693)],!1),this._czmContrl.zoomTo(this._map.clock.startTime,this[n(c)][n(h)].stopTime)}},{key:"onTimelineScrubfunction",value:function(e){var t=e[_0x236b(1899)];t.currentTime=e.timeJulian,t.shouldAnimate=!1}},{key:"zoomTo",value:function(e,t){var i=_0x236b;return this._czmContrl[i(s)](e,t)}},{key:"_removedHook",value:function(){var e=_0x236b;this[e(t)].removeEventListener(e(i),this[e(a)],!1),_get(_getPrototypeOf(m.prototype),e(n),this).call(this)}},{key:"_rebindCzmContainer",value:function(e){e[_0x236b(2492)].right="0px"}}]),m}()),VRButton=(register$1("timeline",Timeline),function(){var e=3436,t=833,i=4075,a=2520,n=1646,s=3817,r=2822,o=_0x1658de,l=(_inherits(c,BaseCzmControl),_createSuper(c));function c(){var e=_0x236b,t=0<arguments[e(r)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,c),(t=l.call(this,t))._czmControlKey="_vrButton",t[e(1727)]=e(434),t}return _createClass(c,[{key:o(e),get:function(){var e=o;return this.options[e(3436)]?this[e(1592)].parentContainer:this[e(s)].toolbar}},{key:"_createCzmContainer",value:function(){return create$3("div",o(n))}},{key:o(t),value:function(){var e=o;return new Cesium__namespace.VRButton(this[e(434)],this._map.scene,this.options.fullscreenElement)}},{key:"_rebindCzmContainer",value:function(e){var t=o,i=(removeClass(e,"cesium-viewer-vrContainer"),addClass(e,"cesium-button cesium-toolbar-button gis3d-vrButton"),e[t(2897)].removeChild(e),null==(i=this.viewer[t(2716)])?void 0:i._wrapper);i?this.parentContainer[t(a)](e,i):this[t(3436)].appendChild(e)}},{key:"_toChineseLang",value:function(e){var t={"Enter VR mode":"进入VR模式","Exit VR mode":o(i),"VR mode is unavailable":"VR模式不可用"};this._updateDomAttributeByEvent(e,t,"cesium-vrButton","title","onmouseover")}}]),c}()),LocationBar=(register$1(_0x1658de(571),VRButton),function(){var a=3817,n=771,s=4045,r=838,o=3366,l=1604,c=3817,h=2018,u=2033,_=3619,p=1596,m=2076,d=2295,f=654,y=1159,v=3294,g=2169,e=3467,i=380,t=2029,C=1096,x=3817,b=2022,k=1592,P=2492,w=1817,S=2435,T=_0x1658de,M=(_inherits(E,BaseControl),_createSuper(E));function E(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,E),(t=M.call(this,t)).options.cacheTime=null!=(e=t.options[e(4096)])?e:50,t.locationData={},t}return _createClass(E,[{key:"_mountedHook",value:function(){var i,a=3118,n=2708,s=2897,r=2418,o=_0x236b,l=this;Cesium__namespace.defined(this.options[o(1627)])?Array.isArray(this.options.template)?this.template=this[o(1592)].template[this._map[o(372)]]:this.template=this[o(1592)].template:this.template="<div>经度:{lng}</div> <div>纬度:{lat}</div><div>海拔:{alt}米</div> <div class='hide700'>层级:{level}</div><div>方向:{heading}°</div> <div>俯仰角:{pitch}°</div><div class='hide700'>视高:{cameraHeight}米</div>",Cesium__namespace.defined(this[o(1592)][o(b)])?isString(this[o(k)].crs)?this._crs=this.options.crs:this.options.crs&&(this._crs=CRS.CGCS2000_GK_Zone_3):isString(this.template)&&-1!==this.template.indexOf("{crsx}")&&(this._crs=CRS.CGCS2000_GK_Zone_3),this._container=create$3("div","gis3d-locationbar no-print"),this._containerCon=create$3(o(1467),"gis3d-locationbar-content",this._container),this.options[o(P)]?this.setStyle(this.options.style):(this._autoStyle=!0,this[o(w)]()),this.options.fps?(this[o(3817)].scene.debugShowFramesPerSecond=!0,i=setInterval(function(){var e,t=o;l[t(3817)]&&l._map[t(a)]._performanceDisplay&&(clearInterval(i),l.timeTik=null,e=l._map.container.querySelector(".cesium-performanceDisplay"))&&(addClass(e,t(n)),removeClass(e,t(1048)),remove(e.querySelector(".cesium-performanceDisplay-throttled")),e[t(s)][t(r)](e),l[t(434)].insertBefore(e,l._containerCon))},100),this[o(S)]=i):(this.timeTik&&(clearInterval(this[o(S)]),this.timeTik=null),this[o(3817)][o(3118)].debugShowFramesPerSecond=!1)}},{key:"_addedHook",value:function(){var e=_0x236b;this._map.on(EventType.mouseMove,this._mouseMoveHandler,this),this._map.on(EventType[e(3516)],this[e(C)],this),this._map.on(EventType.addControl,this._updateControlHandler,this),this[e(x)].on(EventType.updateControl,this._updateControlHandler,this),this[e(1096)]()}},{key:"_removedHook",value:function(){var e=_0x236b;this[e(3817)].off(EventType[e(1125)],this._mouseMoveHandler,this),this[e(3817)].off(EventType.cameraMoveEnd,this._cameraHandler,this),this._map[e(4030)](EventType.addControl,this._updateControlHandler,this),this._map.off(EventType.updateControl,this[e(1817)],this),this.timeTik&&(clearInterval(this[e(2435)]),this.timeTik=null),this.options.fps&&(this._map.scene[e(t)]=!1,this[e(3817)].scene._performanceDisplay)&&(this._map[e(3118)]._performanceDisplay[e(1553)](),this._map[e(3118)]._performanceDisplay=void 0)}},{key:"_cameraHandler",value:function(){var e,t=_0x236b;this[t(3463)]&&(e=this._map.getCenter())&&this[t(i)](e)}},{key:"_mouseMoveHandler",value:function(t){var i=3463,a=_0x236b,n=this;this.moveTimer&&(clearTimeout(this.moveTimer),delete this.moveTimer),this[a(e)]=setTimeout(function(){var e=a;delete n.moveTimer,n[e(i)]&&(e=t.cartesian)&&n._templateHtml(LngLatPoint.fromCartesian(e))},this.options.cacheTime)}},{key:"_templateHtml",value:function(e){var t,i=_0x236b,a=(this.locationData.cameraHeight=this._map.camera.positionCartographic.height.toFixed(LngLatPoint[i(r)]),this.locationData.heading=Cesium__namespace.Math.toDegrees(this._map.camera[i(977)])[i(o)](0),this.locationData.pitch=Cesium__namespace.Math[i(l)](this[i(c)][i(h)][i(u)]).toFixed(0),this.locationData.level=this._map.level,this.locationData.alt=formatNum$1(this._map[i(_)](e.alt),LngLatPoint[i(838)]),null!=(a=this.options[i(p)])?a:LngLatPoint.FormatLength);this.locationData.lng=e.lng.toFixed(a),this[i(m)].lat=e.lat[i(3366)](a),this[i(d)]&&(a=null!=(a=this.options.crsDecimal)?a:1,(t=proj4Trans([e[i(484)],e[i(f)]],i(y),this._crs))[0]===e.lng?this.locationData.crsx="":this.locationData.crsx=t[0].toFixed(a),t[1]===e[i(f)]?this[i(2076)][i(v)]="":this.locationData.crsy=t[1].toFixed(a)),e="function"==typeof this.template?this.template(this.locationData):(this[i(1592)].formatData&&(this.locationData=this.options.formatData(this.locationData)),template(this.template,this[i(m)])),this[i(g)].innerHTML=e,this.fire(EventType.change)}},{key:T(1817),value:function(e){var t,i=T;!this[i(514)]||e&&"animation"!==(null==(t=e.control)?void 0:t[i(1488)])&&"timeline"!==(null==(t=e.control)?void 0:t[i(1488)])||this.setStyle({left:null!=(e=this._map.controls.animation)&&e.show||null!=(t=this[i(a)][i(908)].clockAnimate)&&t.show?i(n):"0",right:"0",bottom:null!=(e=this._map[i(908)].timeline)&&e[i(s)]?"25px":"0"})}}]),E}()),MouseDownView=(register$1(_0x1658de(3562),LocationBar),function(){var i=2492,a=2031,n=2492,s=919,r=3817,o=2532,l=434,c=1309,t=3817,h=2041,u=4030,_=3837,p=554,m=3817,d=1467,f=_0x1658de,e=(_inherits(y,BaseControl),_createSuper(y));function y(){return _classCallCheck(this,y),e.apply(this,arguments)}return _createClass(y,[{key:f(1744),value:function(){var e=f;this._container=create$3("div","gis3d-mousedownview"),this._container.id=this.parentContainerId+"-gis3d-mousedownview",create$3(e(d),e(2252),this._container)}},{key:f(1695),value:function(){var e=f;this.isAdded&&(this[e(2071)](),this._addedHook())}},{key:"_addedHook",value:function(){var e=f;isPCBroswer()&&(this._map.on(EventType[e(878)],this._mousWheelHandler,this),this._map._hasRightTilt?(this._map.on(EventType.rightDown,this[e(554)],this),this[e(m)].on(EventType.rightUp,this._mousMiddleUpHandler,this)):(this._map.on(EventType.middleDown,this._mousMiddleDownHandler,this),this._map.on(EventType.middleUp,this._mousMiddleUpHandler,this)),this._mousMiddleUpHandler())}},{key:f(2071),value:function(){var e=f;isPCBroswer()&&(this[e(t)].off(EventType.wheel,this._mousWheelHandler,this),this._map[e(h)]?(this._map.off(EventType.rightDown,this._mousMiddleDownHandler,this),this._map[e(4030)](EventType.rightUp,this._mousMiddleUpHandler,this)):(this[e(t)][e(u)](EventType[e(_)],this[e(p)],this),this._map.off(EventType.middleUp,this._mousMiddleUpHandler,this)))}},{key:f(3590),value:function(e){var t=f,i=this;this.enabled&&(addClass(this[t(l)],t(c)),clearTimeout(this[t(740)]),this.timetik=setTimeout(function(){removeClass(i._container,"gis3d-mousedownview-show")},200))}},{key:"_mousMiddleDownHandler",value:function(e){var t=f;!this.enabled||!getCurrentMousePosition(this._map.scene,e.position)||this._map.camera[t(s)].height>this[t(r)].scene[t(2722)].minimumCollisionTerrainHeight||(this[t(3817)][t(4030)](EventType.mouseMove,this._mouseMoveHandler,this),clearTimeout(this[t(740)]),this._container.style.top=e[t(o)].y+"px",this._container[t(2492)].left=e.position.x+"px",addClass(this._container,"gis3d-mousedownview-show"))}},{key:"_mousMiddleUpHandler",value:function(e){removeClass(this._container,"gis3d-mousedownview-show"),this._map.on(EventType.mouseMove,this._mouseMoveHandler,this)}},{key:"_mouseMoveHandler",value:function(e){var t=f;this._container[t(i)].top=e[t(a)].y+"px",this._container[t(n)].left=e.endPosition.x+"px"}}]),y}()),icon$7=(register$1(_0x1658de(1702),MouseDownView),_0x1658de(1296)),icon$6='<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect width="48" height="48" fill="white" fill-opacity="0.01"/>\n <path d="M10.5 24L38.5 24" stroke="#ffffff" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>',Zoom=function(){var t=434,e=3817,r=1802,o=2410,l=3086,c=1911,h=349,u=2410,_=3817,i=2410,a=2492,n=353,s=2026,p=_0x1658de,m=(_inherits(d,BaseControl),_createSuper(d));function d(){var e=_0x236b;return _classCallCheck(this,d),m[e(s)](this,arguments)}return _createClass(d,[{key:"parentContainer",get:function(){var e=_0x236b;return this._map?this._map.toolbar:document[e(n)]("cesium-viewer-toolbar")[0]}},{key:p(1594),value:function(e){var t=p;this[t(i)]&&(this._container2[t(a)].display=e?"block":"none")}},{key:p(1744),value:function(){var i=1592,a=2694,n=p,s=this;this._container=create$3("div",n(3086)),this._container[n(2492)][n(2163)]="inline-block",this._container[n(569)]("title",this[n(e)].getLangText("_缩小")),this._createIcon(this.options.zoomOutIcon||icon$6,this._container),this._container.addEventListener(n(r),function(e){var t=n;s.enabled&&s[t(_)].zoomOut(s[t(1592)][t(2694)])}),this[n(o)]=create$3("div",n(l)),this[n(2410)][n(2492)][n(2163)]=n(c),this._container2.setAttribute(n(3430),this._map[n(h)]("_放大")),this._createIcon(this.options.zoomInIcon||icon$7,this._container2),this[n(u)][n(3870)]("click",function(e){var t=n;s[t(3463)]&&s._map[t(538)](s[t(i)][t(a)])})}},{key:p(563),value:function(){var e=p;this[e(3436)].insertBefore(this._container2,this[e(t)])}},{key:"_removedHook",value:function(){var e=p;this.parentContainer.removeChild(this[e(2410)])}}]),d}(),ToolButton=(register$1("zoom",Zoom),function(){var e=3436,t=1744,r=434,o=434,l=1592,c=3371,h=3870,i=3817,u=_0x1658de,a=(_inherits(n,BaseControl),_createSuper(n));function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=a.call(this,e))._type="toolButton"+getGlobalId(),e}return _createClass(n,[{key:u(e),get:function(){return this[u(i)]?this._map.toolbar:document.getElementsByClassName("cesium-viewer-toolbar")[0]}},{key:u(t),value:function(){var i,a=1592,n=u,s=this;this[n(434)]=create$3("div","cesium-button cesium-toolbar-button mar3d-toolButton"),this[n(r)].id=this.id,this._container.style.display=n(1911),this[n(o)].setAttribute("title",this[n(1592)].title||""),this._createIcon(this[n(l)][n(c)],this._container),this[n(434)].addEventListener(n(1802),function(e){var t=n;s.enabled&&(s.options[t(1802)]&&s.options.click(s.options),s.fire(EventType[t(1802)],_objectSpread2({},s.options)))}),this._container[n(h)]("mouseover",function(e){var t=n;s.enabled&&i!==s.id&&(i=s.id,s[t(1592)].mouseOver&&s.options[t(1873)](s.options),s.fire(EventType.mouseOver,_objectSpread2({},s[t(1592)])))}),this._container[n(3870)]("mouseout",function(e){var t=n;i=null,s.enabled&&(s.options.mouseOut&&s.options.mouseOut(s[t(a)]),s[t(1997)](EventType.mouseOut,_objectSpread2({},s.options)))})}},{key:u(953),value:function(e){var t=u;this.options.icon=e,empty(this._container),this._createIcon(e,this[t(434)])}}]),n}()),icon$5=(register$1(_0x1658de(2857),ToolButton),'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="162px" height="162px" viewBox="0 0 162 162" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>拖拽调整四周方向角,双击回正北</title>\n <desc>gis3d.cn</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill-rule="evenodd">\n <g id="compass-outer" fill-rule="nonzero">\n <path d="M80.8410544,161.682109 C36.1937731,161.682109 0,125.488336 0,80.8410544 C0,36.1937731 36.1937731,0 80.8410544,0 C125.488336,0 161.682109,36.1937731 161.682109,80.8410544 C161.682109,125.488336 125.488336,161.682109 80.8410544,161.682109 Z M81.1836011,134.620909 C110.696211,134.620909 134.620909,110.696211 134.620909,81.1836011 C134.620909,51.6709916 110.696211,27.7462941 81.1836011,27.7462941 C51.6709916,27.7462941 27.7462941,51.6709916 27.7462941,81.1836011 C27.7462941,110.696211 51.6709916,134.620909 81.1836011,134.620909 Z" id="Oval-108"></path>\n <circle id="Oval-74" fill="#FFFFFF" cx="129.493683" cy="127.952092" r="1.54159147"></circle>\n <circle id="Oval-74-Copy-3" fill="#FFFFFF" cx="129.493683" cy="35.4566038" r="1.54159147"></circle>\n <circle id="Oval-74-Copy-5" fill="#FFFFFF" cx="30.8318294" cy="127.952092" r="1.54159147"></circle>\n <circle id="Oval-74-Copy-4" fill="#FFFFFF" cx="30.8318294" cy="35.4566038" r="1.54159147"></circle>\n <polygon id="N" fill="#FFFFFF" points="84.9318072 23.1238721 84.9318072 13.1321362 82.5623385 13.1321362 82.5623385 19.2984646 77.951866 13.1321362 75.7108625 13.1321362 75.7108625 23.1238721 78.0946053 23.1238721 78.0946053 16.9718176 82.6908037 23.1238721"></polygon>\n <polygon id="Line" fill="#FFFFFF" points="143.368007 82.1093476 152.617555 82.1093476 152.617555 81.2993476 143.368007 81.2993476"></polygon>\n <polygon id="Line-Copy-8" fill="#FFFFFF" points="9.24954884 82.1093476 18.4990976 82.1093476 18.4990976 81.2993476 9.24954884 81.2993476"></polygon>\n <polygon id="Line" fill="#FFFFFF" points="81.2993476 143.368007 81.2993476 152.617555 82.1093476 152.617555 82.1093476 143.368007"></polygon>\n </g>\n </g>\n</svg>\n'),icon$4='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="17px" height="17px" viewBox="0 0 17 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>拖拽调整俯仰角</title>\n <desc>gis3d.cn</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill-rule="evenodd">\n <g id="compass-inner" fill-rule="nonzero">\n <path d="M8.5,16.5 C4.081722,16.5 0.5,12.918278 0.5,8.5 C0.5,4.081722 4.081722,0.5 8.5,0.5 C12.918278,0.5 16.5,4.081722 16.5,8.5 C16.5,12.918278 12.918278,16.5 8.5,16.5 Z M8.5,15.5 C12.3659932,15.5 15.5,12.3659932 15.5,8.5 C15.5,4.63400675 12.3659932,1.5 8.5,1.5 C4.63400675,1.5 1.5,4.63400675 1.5,8.5 C1.5,12.3659932 4.63400675,15.5 8.5,15.5 Z" id="Oval-96"></path>\n <path d="M9.92599835,7.09066832 C12.7122872,9.87695712 14.3709388,12.5452228 13.4497471,13.4664145 C12.5285555,14.3876061 9.86028979,12.7289545 7.074001,9.94266568 C4.2877122,7.15637688 2.62906055,4.48811119 3.55025221,3.56691953 C4.47144386,2.64572788 7.13970955,4.30437952 9.92599835,7.09066832 Z M9.21889157,7.7977751 C6.92836458,5.50724811 4.52075769,4.01062761 4.25735899,4.27402631 C3.99396029,4.53742501 5.49058078,6.9450319 7.78110778,9.2355589 C10.0716348,11.5260859 12.4792417,13.0227064 12.7426404,12.7593077 C13.0060391,12.495909 11.5094186,10.0883021 9.21889157,7.7977751 Z" id="Oval-96-Copy-2"></path>\n <path d="M9.92599835,9.94266568 C7.13970955,12.7289545 4.47144386,14.3876061 3.55025221,13.4664145 C2.62906055,12.5452228 4.2877122,9.87695712 7.074001,7.09066832 C9.86028979,4.30437952 12.5285555,2.64572788 13.4497471,3.56691953 C14.3709388,4.48811119 12.7122872,7.15637688 9.92599835,9.94266568 Z M9.21889157,9.2355589 C11.5094186,6.9450319 13.0060391,4.53742501 12.7426404,4.27402631 C12.4792417,4.01062761 10.0716348,5.50724811 7.78110778,7.7977751 C5.49058078,10.0883021 3.99396029,12.495909 4.25735899,12.7593077 C4.52075769,13.0227064 6.92836458,11.5260859 9.21889157,9.2355589 Z" id="Oval-96-Copy-3"></path>\n <path d="M15.1464466,1.1464466 L14.3453364,1.94755684 L13.9608692,2.33202401 L14.667976,3.03913077 L15.0524431,2.65466362 L15.8535534,1.8535534 L15.1464466,1.1464466 Z M2.29760014,13.995293 L1.85311902,14.4397742 L1.004311,15.2885822 L1.71141776,15.995689 L2.56022581,15.146881 L3.00470698,14.7023998 L2.29760014,13.995293 Z" id="Line"></path>\n <circle id="Oval-432" cx="16" cy="1" r="1"></circle>\n <circle id="Oval-432-Copy" cx="1" cy="16" r="1"></circle>\n </g>\n </g>\n</svg>\n',icon$3='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="53px" height="53px" viewBox="0 0 53 53" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>导航球</title>\n <desc>gis3d.cn</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="compass-rotation-marker">\n <path d="M52.4399986,26.2199993 C52.4399986,11.7390936 40.7009051,0 26.2199993,0 C11.7390936,0 0,11.7390936 0,26.2199993 C0,40.7009051 11.7390936,52.4399986 26.2199993,52.4399986 C40.7009051,52.4399986 52.4399986,40.7009051 52.4399986,26.2199993 Z" id="rotator" stroke-opacity="0.135841259" stroke="#E2A549" stroke-width="9" opacity="0.201434235"></path>\n <path d="M0,26.2199993 C0,11.7390936 11.7390936,0 26.2199993,0 L26.2199993,9 C16.7096563,9 9,16.7096563 9,26.2199993" id="Shape" opacity="0.634561567" fill="#4990E2"></path>\n </g>\n </g>\n</svg>\n',Compass=function(){var e=944,t=3360,n=2638,s=1578,r=2018,o=1124,l=1458,c=2722,h=2730,u=2684,_=437,p=2999,m=1458,d=1458,f=1458,y=3997,i=437,a=2492,v=1124,g=1124,C=3060,x=3118,b=778,k=2730,P=2608,w=3965,S=3771,T=3275,M=4073,E=1683,A=2984,L=941,D=3942,H=1828,F=3389,N=2361,G=3817,I=3817,z=2532,B=2070,j=941,V=778,$=2999,U=1138,W=2730,J=2299,q=1592,Y=3973,Z=2492,X=1639,Q=3227,K=4030,ee=516,te=3817,ie=1976,ae=1962,ne=434,se=2628,re=2047,oe=1592,le=858,ce=3697,he=903,ue=394,_e=3932,pe=3277,me=1592,O=_0x1658de,de=(_inherits(R,BaseControl),_createSuper(R));function R(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(t=de.call(this,t))._orbitCursorAngle=0,t._orbitCursorOpacity=0,t._orbitLastTimestamp=0,t.options.rotation=null==(e=t[e(me)].rotation)||e,t}return _createClass(R,[{key:"_getCssText",value:function(){var e,t,i,a=_0x236b,n={},s=(Cesium__namespace.defined(this.options.top)&&""!==this.options.top?n[a(394)]=this.options[a(ue)]:Cesium__namespace[a(3277)](this.options.bottom)&&""!==this.options.bottom&&(n.bottom=this.options[a(947)],"toolbar"===n.bottom)&&(e=this._map[a(_e)])&&(t=e.offsetHeight+40,n.bottom=t+"px",this[a(1639)]=e),Cesium__namespace.defined(this.options.left)&&""!==this.options.left?n[a(1181)]=this.options.left:Cesium__namespace[a(pe)](this.options.right)&&""!==this.options.right&&(n.right=this[a(1592)].right),"");for(i in n)s+="".concat(i,": ").concat(n[i],";");return s||"top: 10px;right: 10px;"}},{key:"_mountedHook",value:function(){var t=3817,i=_0x236b,a=this;this._container=create$3("div",this.options.className||"gis3d-compass"),this[i(ne)].style.cssText=this._getCssText(),this._container[i(se)]=function(e){a._handleMouseDown(e)},this._container_outer=parseDom(this.options[i(re)]||icon$5,!0,"gis3d-compass-outer"),this._container.appendChild(this._container_outer),this._container_outer.ondblclick=function(e){a._map.camera.setView({orientation:{heading:0}})},this._container_inner=parseDom(this[i(oe)].innerSvg||icon$4,!0,i(le)),this._container.appendChild(this[i(ce)]),this._container_inner.ondblclick=function(e){a[i(t)].flyHome()},this.options.rotation&&(this._container_rotationArc=parseDom(this.options[i(he)]||icon$3,!0,"gis3d-compass-rotation-arc"),this._container.appendChild(this._container_rotationArc),this._container_rotationArc.style.visibility="hidden")}},{key:O(e),value:function(e){this[O(3973)].innerHTML=e}},{key:"setInnerSvg",value:function(e){var t=O;this._container_inner[t(ae)]=e}},{key:"setRotationSvg",value:function(e){this[O(ie)].innerHTML=e}},{key:"_addedHook",value:function(){var e=O;this[e(te)].on(EventType.postRender,this._postRenderHandler,this),this[e(3817)].on(EventType.addControl,this._updateControlHandler,this),this._map.on(EventType.updateControl,this._updateControlHandler,this)}},{key:"_removedHook",value:function(){var e=O;this._map.off(EventType[e(Q)],this._postRenderHandler,this),this[e(3817)][e(K)](EventType.addControl,this._updateControlHandler,this),this._map.off(EventType.addControl,this._updateControlHandler,this),this._map.off(EventType[e(ee)],this._updateControlHandler,this)}},{key:"_updateControlHandler",value:function(){var e=O;this[e(X)]&&(e=this[e(1639)][e(3156)]+40,this._container.style.bottom=e+"px")}},{key:"_postRenderHandler",value:function(){var e=O,t=this._map.camera.heading;this[e(Y)]&&(this[e(3973)][e(Z)].cssText="\n transform : rotate(-".concat(t,"rad);\n -webkit-transform : rotate(-").concat(t,"rad);\n "))}},{key:O(t),value:function(e){var t=O;if(this._map.scene.mode===Cesium__namespace[t(W)][t(2684)])return!0;this[t(J)]=e.currentTarget.getBoundingClientRect();var i=this._compassRectangle.width/2,e=this._getVector(e),i=Cesium__namespace.Cartesian2.magnitude(e)/i;if(this[t(q)].rotation&&i<50/145)this._orbit(e);else{if(!(i<1))return!0;this._rotate(e)}}},{key:"_getCameraFocus",value:function(e){var t,i=O,a=new Cesium__namespace.Cartesian3,n=this._map.scene,s=n.camera;if(n.mode!==Cesium__namespace.SceneMode.MORPHING&&(a=this[i(I)][i(1683)]?this._map.trackedEntity[i(z)][i(777)](this[i(I)].clock.currentTime):((t=new Cesium__namespace.Ray).origin=s.positionWC,t[i(B)]=s.directionWC,n[i(j)].pick(t,n))))return n.mode===Cesium__namespace.SceneMode[i(V)]||n.mode===Cesium__namespace[i(2730)][i($)]?(a=s.worldToCameraCoordinatesPoint(a),t=new Cesium__namespace.Cartographic,e&&(a=n.globe.ellipsoid.cartographicToCartesian(n[i(U)].unproject(a,t)))):e||(a=s.worldToCameraCoordinatesPoint(a)),a}},{key:"_orbit",value:function(e){var t,i=O,a=this,n=this._map[i(x)],s=n.screenSpaceCameraController,r=n.camera;if(n.mode!==Cesium__namespace.SceneMode[i(2684)]&&s.enableInputs){switch(n.mode){case Cesium__namespace.SceneMode[i(b)]:if(s.enableTranslate)break;return;case Cesium__namespace[i(k)].COLUMBUS_VIEW:if(s.enableLook)break;if(s[i(P)]&&s.enableTilt)break;return;default:Cesium__namespace.SceneMode[i(w)];if(s.enableLook)break;if(s[i(S)]&&s[i(T)])break;return}this._mouseMoveHandle=function(e){a._orbitMouseMoveFunction(e)},this[i(4073)]=function(){a[i(1956)]()},document.removeEventListener("mousemove",this._mouseMoveHandle,!1),document.removeEventListener("mouseup",this[i(M)],!1),this._orbitLastTimestamp=Cesium__namespace.getTimestamp(),this[i(3817)][i(E)]?(this[i(A)]=void 0,this._orbitIsLook=!1):(t=this._getCameraFocus(!0))?(this._orbitFrame=Cesium__namespace[i(2510)].eastNorthUpToFixedFrame(t,n.globe.ellipsoid),this._orbitIsLook=!1):(this._orbitFrame=Cesium__namespace.Transforms.eastNorthUpToFixedFrame(r.positionWC,n[i(L)].ellipsoid),this[i(D)]=!0),this._container_rotationArc[i(2492)][i(3468)]=i(H),this._container_inner[i(1134)]+=i(F),document.addEventListener("mousemove",this[i(N)],!1),document.addEventListener("mouseup",this._mouseUpHandle,!1),this[i(G)].on(EventType.clockTick,this[i(2348)],this),this._updateAngleAndOpacity(e,this._compassRectangle.width)}}},{key:"_orbitTickFunction",value:function(e){var t,i=O,a=this._map.scene,n=this._map.camera,s=Cesium__namespace[i(1146)](),r=(s-this._orbitLastTimestamp)*(2.5*(this._orbitCursorOpacity-.5)/1e3),o=this[i(2977)]+Cesium__namespace[i(g)].PI_OVER_TWO,l=Math.cos(o)*r,o=Math.sin(o)*r;this._orbitFrame&&(t=Cesium__namespace.Matrix4[i(C)](n[i(2477)]),n[i(3997)](this[i(2984)])),a.mode===Cesium__namespace.SceneMode.SCENE2D?n[i(3884)](new Cesium__namespace.Cartesian3(l,o,0),Math[i(1245)](a[i(3252)].clientWidth,a.canvas.clientHeight)/100*n.positionCartographic.height*r):this._orbitIsLook?(n.look(Cesium__namespace.Cartesian3.UNIT_Z,-l),n.look(n.right,-o)):(n.rotateLeft(l),n[i(3623)](o)),this._orbitFrame&&t&&n.lookAtTransform(t),this._orbitLastTimestamp=s}},{key:"_updateAngleAndOpacity",value:function(e,t){var i=O,a=Math.atan2(-e.y,e.x),a=(this._orbitCursorAngle=Cesium__namespace[i(v)].zeroToTwoPi(a-Cesium__namespace.Math.PI_OVER_TWO),Cesium__namespace.Cartesian2.magnitude(e)),e=t/2,t=Math[i(3924)](a/e,1);this._orbitCursorOpacity=.5*t*t+.5,this[i(1976)][i(2492)].cssText="\n transform: rotate(-".concat(this._orbitCursorAngle,"rad);\n opacity: ").concat(this._orbitCursorOpacity)}},{key:"_orbitMouseMoveFunction",value:function(e){this._updateAngleAndOpacity(this._getVector(e),this._compassRectangle.width)}},{key:"_orbitMouseUpFunction",value:function(){var e=O;document.removeEventListener("mousemove",this._mouseMoveHandle,!1),document[e(3056)](e(i),this[e(4073)],!1),this._map.off(EventType.clockTick,this._orbitTickFunction,this),this._mouseMoveHandle=void 0,this._mouseUpHandle=void 0,this._container_rotationArc[e(a)].visibility="hidden",this._container_inner.className=this._container_inner.className.replace("compass-inner-active","")}},{key:"_rotate",value:function(e){var t,i=4068,a=O,n=this,s=this[a(3817)][a(3118)],r=s.camera,o=s[a(c)];s.mode!==Cesium__namespace[a(h)][a(u)]&&s[a(2505)]!==Cesium__namespace.SceneMode.SCENE2D&&o.enableInputs&&(o.enableLook||s.mode!==Cesium__namespace.SceneMode.COLUMBUS_VIEW&&(s.mode!==Cesium__namespace[a(2730)].SCENE3D||o.enableRotate))&&(this[a(2361)]=function(e){n[a(i)](e)},this._mouseUpHandle=function(){n._rotateMouseUpFunction()},document.removeEventListener(a(1583),this._mouseMoveHandle,!1),document.removeEventListener(a(_),this[a(4073)],!1),this[a(518)]=Math.atan2(-e.y,e.x),this._map[a(1683)]?this._rotateFrame=void 0:(e=this._getCameraFocus(!0))&&(s.mode!==Cesium__namespace.SceneMode[a(p)]||o.enableLook||o.enableTranslate)?this[a(m)]=Cesium__namespace.Transforms.eastNorthUpToFixedFrame(e,s.globe.ellipsoid):this[a(m)]=Cesium__namespace.Transforms.eastNorthUpToFixedFrame(r.positionWC,s.globe[a(3113)]),this[a(d)]&&(t=Cesium__namespace[a(3342)][a(3060)](r.transform),r[a(3997)](this[a(f)])),this._rotateInitialCameraAngle=-r.heading,this._rotateFrame&&t&&r[a(y)](t),document.addEventListener("mousemove",this._mouseMoveHandle,!1),document.addEventListener("mouseup",this._mouseUpHandle,!1))}},{key:"_rotateMouseMoveFunction",value:function(e){var t,i=O,a=this._map[i(r)],e=this[i(1655)](e),e=Math.atan2(-e.y,e.x)-this._rotateInitialCursorAngle,e=Cesium__namespace[i(o)].zeroToTwoPi(this._rotateInitialCameraAngle-e),i=(this[i(l)]&&(t=Cesium__namespace.Matrix4.clone(a.transform),a.lookAtTransform(this._rotateFrame)),-a.heading);a.rotateRight(e-i),this._rotateFrame&&t&&a.lookAtTransform(t)}},{key:"_rotateMouseUpFunction",value:function(){var e=O;document[e(3056)]("mousemove",this._mouseMoveHandle,!1),document.removeEventListener("mouseup",this._mouseUpHandle,!1),this._mouseMoveHandle=void 0,this[e(4073)]=void 0}},{key:"_getVector",value:function(e){var t=O,i=this[t(2299)],a=new Cesium__namespace.Cartesian2((i.right-i.left)/2,(i.bottom-i.top)/2),t=new Cesium__namespace[t(n)](e[t(s)]-i.left,e.clientY-i.top),e=new Cesium__namespace.Cartesian2;return Cesium__namespace.Cartesian2.subtract(t,a,e),e}}]),R}(),geodesic=(register$1("compass",Compass),new Cesium__namespace.EllipsoidGeodesic),BASE=[1,2,3,5],DIS=[].concat(BASE,_toConsumableArray(BASE.map(function(e){return 10*e})),_toConsumableArray(BASE.map(function(e){return 100*e})),_toConsumableArray(BASE[_0x1658de(2412)](function(e){return 1e3*e})),_toConsumableArray(BASE[_0x1658de(2412)](function(e){return 1e4*e})),_toConsumableArray(BASE.map(function(e){return 1e5*e})),_toConsumableArray(BASE.map(function(e){return 1e6*e}))),DistanceLegend=function(){var c=2638,h=2018,u=941,_=1843,p=2025,m=1445,d=2492,f=1962,y=2557,v=1825,g=1632,t=543,s=1592,r=1592,o=1181,l=1181,C=1859,x=2557,b=2721,k=908,P=3220,i=434,a=1632,n=434,w=3145,S=3040,T=2026,M=_0x1658de,E=(_inherits(A,BaseControl),_createSuper(A));function A(){var e=_0x236b;return _classCallCheck(this,A),E[e(T)](this,arguments)}return _createClass(A,[{key:"distance",get:function(){return this._currDistance}},{key:M(1744),value:function(){var e=M;this[e(434)]=create$3("div",e(1211)),this[e(i)].style[e(a)]=this._getCssText(),this._labelEl=create$3("div","legend-label",this[e(n)]),this._scaleBarEl=create$3("div","legend-scale-bar",this._container),this[e(i)].style.visibility=e(w),this[e(S)]=Cesium__namespace.getTimestamp()}},{key:"_getCssText",value:function(){var e,t,i=M,a={},n=(Cesium__namespace.defined(this.options.top)&&""!==this[i(s)][i(394)]?a.top=this.options.top:Cesium__namespace.defined(this[i(r)].bottom)&&""!==this.options.bottom&&(a.bottom=this.options.bottom),Cesium__namespace.defined(this.options[i(o)])&&""!==this.options.left?a.left=this.options[i(l)]:Cesium__namespace.defined(this.options.right)&&""!==this[i(s)].right&&(a[i(C)]=this.options[i(1859)]),"");for(t in a)n+=""[i(x)](t,": ").concat(a[t],";");return n||i(b)[i(2557)](null!=(e=this._map[i(k)][i(P)])&&e[i(4045)]?"27":"2",i(3448))}},{key:"_addedHook",value:function(){this._map.on(EventType.postRender,this._updateContent,this)}},{key:"_removedHook",value:function(){var e=M;this._map.off(EventType.postRender,this[e(t)],this)}},{key:M(543),value:function(e,t){var i=M,a=Cesium__namespace[i(1146)]();if(!(a<this._lastUpdate+250)&&this._labelEl&&this._scaleBarEl){this._lastUpdate=a;var a=e.canvas.clientWidth,n=e.canvas[i(2823)],s=e[i(2018)].getPickRay(new Cesium__namespace[i(c)](a/2|0,n-1)),a=e[i(h)].getPickRay(new Cesium__namespace[i(2638)](1+a/2|0,n-1)),n=e[i(u)].pick(s,e),s=e[i(941)][i(1647)](a,e);if(n&&s){geodesic[i(_)](e.globe.ellipsoid[i(p)](n),e.globe.ellipsoid.cartesianToCartographic(s));for(var r=geodesic[i(759)],o=0,l=DIS.length-1;0<=l;--l)if(DIS[l]/r<100){o=DIS[l];break}o&&(this._currDistance!==o&&(this[i(m)]=o,this.fire(EventType.change,{distance:o})),this._container[i(d)].visibility=i(1828),this[i(1934)][i(f)]=1e3<=o?""[i(y)](o/1e3," km"):"".concat(o," m"),a=o/r|0,this[i(v)][i(d)][i(g)]=i(3529)[i(y)](a,"px; left: ").concat((125-a)/2,"px;"))}}}}]),A}(),icon$2=(register$1("distanceLegend",DistanceLegend),'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="10px" height="20px" viewBox="0 0 19 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M0.6551724,2.3448276 L0.6551724,25.6551724 C0.6551724,26.6454761 1.4579722,27.4482759 2.4482759,27.4482759 C3.4385796,27.4482759 4.2413793,26.6454761 4.2413793,25.6551724 L4.2413793,2.3448276 C4.2413793,1.3545239 3.4385796,0.5517241 2.4482759,0.5517241 C1.4579722,0.5517241 0.6551724,1.3545239 0.6551724,2.3448276 L0.6551724,2.3448276 Z M7.6551724,2.3448276 L7.6551724,25.6551724 C7.6551724,26.6454761 8.4579722,27.4482759 9.4482759,27.4482759 C10.4385796,27.4482759 11.2413793,26.6454761 11.2413793,25.6551724 L11.2413793,2.3448276 C11.2413793,1.3545239 10.4385796,0.5517241 9.4482759,0.5517241 C8.4579722,0.5517241 7.6551724,1.3545239 7.6551724,2.3448276 L7.6551724,2.3448276 Z M14.6551724,2.3448276 L14.6551724,25.6551724 C14.6551724,26.6454761 15.4579722,27.4482759 16.4482759,27.4482759 C17.4385796,27.4482759 18.2413793,26.6454761 18.2413793,25.6551724 L18.2413793,2.3448276 C18.2413793,1.3545239 17.4385796,0.5517241 16.4482759,0.5517241 C15.4579722,0.5517241 14.6551724,1.3545239 14.6551724,2.3448276 L14.6551724,2.3448276 Z" id="splitter"></path>\n</svg>\n'),MapSplit=function(){var e=2005,t=2071,i=3817,a=621,n=434,s=3735,r=1997,o=3118,l=3791,c=2492,h=442,u=1592,_=2005,p=1467,m=2455,d=2328,f=1782,y=1939,v=2255,g=1020,C=4049,x=1018,b=1701,k=_0x1658de,P=(_inherits(w,BaseControl),_createSuper(w));function w(){return _classCallCheck(this,w),P.apply(this,arguments)}return _createClass(w,[{key:"type",get:function(){return"mapSplit"}},{key:"leftLayer",get:function(){return this._leftLayer},set:function(e){var i=_0x236b,a=this;this._leftLayer&&(this._leftLayer.forEach(function(e){e._hasRemoveByMapSplit&&e.remove()}),this[i(2487)]=null),e&&(Array.isArray(e)||(e=[e]),this[i(2487)]=[],e.forEach(function(e){var t=i;e=a.setLayerSplitDirection(e,Cesium__namespace.SplitDirection[t(3693)]),a[t(2487)].push(e)}))}},{key:k(e),get:function(){return this._rightLayer},set:function(e){var i=k,a=this;this._rightLayer&&(this._rightLayer.forEach(function(e){e[_0x236b(b)]&&e.remove()}),this._rightLayer=null),e&&(Array[i(v)](e)||(e=[e]),this[i(4049)]=[],e.forEach(function(e){var t=i;e=a[t(g)](e,Cesium__namespace.SplitDirection.RIGHT),a[t(C)][t(x)](e)}))}},{key:"_mountedHook",value:function(){var e=k,t=(this._container=create$3(e(p),"gis3d-slider"),parseDom(icon$2,!0,e(m))),t=(this._container.appendChild(t),new Cesium__namespace.ScreenSpaceEventHandler(t)),i=this;t[e(2328)](function(){i._moveActive=!0},Cesium__namespace.ScreenSpaceEventType.LEFT_DOWN),t[e(d)](function(){i._moveActive=!0},Cesium__namespace.ScreenSpaceEventType.PINCH_START),t.setInputAction(function(e){i._moveHandler(e)},Cesium__namespace.ScreenSpaceEventType[e(f)]),t.setInputAction(function(e){i._moveHandler(e)},Cesium__namespace[e(y)].PINCH_MOVE),t.setInputAction(function(){i._moveActive=!1},Cesium__namespace.ScreenSpaceEventType.LEFT_UP),t.setInputAction(function(){i._moveActive=!1},Cesium__namespace.ScreenSpaceEventType.PINCH_END)}},{key:"_addedHook",value:function(){var e=k;this._map.scene.splitPosition=.5,this._container[e(c)].left="50%",this[e(h)](),this.options[e(1664)]&&(this[e(1664)]=this[e(u)][e(1664)]),this.options[e(_)]&&(this.rightLayer=this[e(u)].rightLayer)}},{key:k(t),value:function(){var e=k;this._map[e(o)][e(l)]=0,this.leftLayer=null,this.rightLayer=null}},{key:k(442),value:function(e){var t=k;this._moveActive&&this.enabled&&(e=e?e.endPosition.x:0,(e=(this._container.offsetLeft+e)/this[t(n)][t(s)].offsetWidth)<0||1<e||(this[t(n)].style.left=100*e+"%",this._map.scene.splitPosition=e,this[t(r)](EventType[t(1125)],{splitPosition:e})))}},{key:"setLayerSplitDirection",value:function(e,s){var r=3726,o=3031,l=k;return!e.isAdded&&this._map&&(e.type&&!e._onAdd&&(e=create$2(e)),this[l(i)][l(1313)](e),e[l(1701)]=!0),e[l(a)].then(function(e){var t=l;if(e[t(2556)])for(var i=0;i<e.arrLayer.length;i++){var a=e[t(r)][i].layer;a&&(a[t(o)]=s)}else{var n=e.layer;n&&(n.splitDirection=s)}}),e}}]),w}(),SceneEvent=(register$1(_0x1658de(3914),MapSplit),function(){var e=4030,n=1721,s=2537,i=2848,a=2848,r=950,o=941,l=_0x1658de;function c(e){var t=_0x236b;_classCallCheck(this,c),this._map=e,this._camera=e.camera,this._scene=e.scene,this._globe=e.scene[t(o)],this._clock=e.clock}return _createClass(c,[{key:l(2537),value:function(e){var t=l;switch(e){case EventType.cameraMoveStart:return this._camera.moveStart;case EventType[t(3516)]:return this[t(2814)].moveEnd;case EventType.cameraChanged:return this._camera.changed;case EventType[t(1328)]:return this._scene[t(1328)];case EventType[t(i)]:return this[t(1723)][t(a)];case EventType.preRender:return this._scene.preRender;case EventType.postRender:return this._scene[t(3227)];case EventType[t(1129)]:return this._scene.renderError;case EventType.morphStart:return this._scene.morphStart;case EventType.morphComplete:return this._scene.morphComplete;case EventType[t(3957)]:return this._clock.onTick;case EventType.terrainChange:return this._globe.terrainProviderChanged;case EventType[t(r)]:return this._globe.tileLoadProgressEvent;default:return null}}},{key:"hasType",value:function(e){e=this._getEventByType(e);return Boolean(e)}},{key:"on",value:function(e,t,i){var a=l;if(t){a=this[a(s)](e);if(a)return a.addEventListener(t,i||this)}}},{key:l(e),value:function(e,t,i){e=this._getEventByType(e);if(e)return e.removeEventListener(t,i||this)}},{key:"listens",value:function(e){var t=l,i=this._getEventByType(e);if(i&&0!==i.numberOfListeners)for(var a=0;a<i._scopes[t(2822)];a++)if(i[t(n)][a]===this._map)return!0;return!1}}]),c}()),DEF_OPTIONS={enabledMoveTarget:!0,moveDelay:30,pickWidth:4,pickHeight:4,pickLimit:9},MouseEvent=function(){var e=3927,t=1770,i=2316,a=2344,n=3817,s=1997,r=1997,o=2250,l=2504,c=2504,h=637,u=1997,_=3385,p=1151,m=2822,d=3817,f=3676,y=1802,v=1592,g=3570,C=1740,x=3755,b=1238,k=2940,P=1997,w=2100,S=3966,T=3563,M=1867,E=2249,H=3085,F=3085,N=2681,A=3085,G=3982,z=3831,B=3742,j=856,V=1107,$=3385,L=3966,U=2203,W=1751,J=2001,D=3118,q=2240,Y=3966,Z=844,X=3966,Q=3165,K=3817,ee=3172,te=3982,ie=2962,ae=1946,ne=2421,se=3390,I=2328,re=765,oe=1349,le=403,ce=2316,he=3410,ue=1997,_e=3165,pe=1125,me=326,de=2206,fe=4090,ye=2822,ve=3966,O=_0x1658de;function R(e){var t=_0x236b,i=1<arguments[t(ye)]&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,R),i=_objectSpread2(_objectSpread2({},DEF_OPTIONS),i),this[t(3817)]=e,this[t(ve)]=e.viewer,this.options=i,this.moveDelay=i.moveDelay,this._enabledMoveTarget=i[t(1477)],this._selected=void 0,this._setInputAction()}return _createClass(R,[{key:O(1477),get:function(){return this._enabledMoveTarget},set:function(e){this[O(4090)]=e,this.clearMoveTargetDelay()}},{key:"noPickEntity",get:function(){return this[O(3746)]},set:function(e){this._noPickEntity=e}},{key:"setOptions",value:function(e){var t=O;return e&&0!==Object[t(de)](e).length&&(this[t(1592)]=merge(this[t(1592)],e),this.moveDelay=this.options.moveDelay,this[t(fe)]=this.options.enabledMoveTarget),this}},{key:"clearMoveTargetDelay",value:function(){var e=O;this[e(326)]&&(clearTimeout(this._moveDelayTik),this[e(me)]=null)}},{key:"_setInputAction",value:function(){var i=2316,t=2316,n=O,s=this;this.handler=new Cesium__namespace[n(3568)](this._viewer.canvas),this.handler[n(2328)](function(e){s[n(1230)](e)},Cesium__namespace[n(1939)].LEFT_CLICK),this.handler[n(2328)](function(e){s._globeMouseHandler(e,EventType.dblClick)},Cesium__namespace.ScreenSpaceEventType[n(ne)]),this.handler.setInputAction(function(e){var t=n;s._globeMouseHandler(e,[EventType[t(2560)],EventType.mouseDown])},Cesium__namespace.ScreenSpaceEventType.LEFT_DOWN),this[n(3390)].setInputAction(function(e){s._globeMouseHandler(e,[EventType.leftUp,EventType.mouseUp])},Cesium__namespace.ScreenSpaceEventType.LEFT_UP),this.handler.setInputAction(function(t){var i=n,e=t.endPosition,a=getCurrentMousePosition(s._viewer.scene,e,s[i(_e)]);t.cartesian=a,s.enabledMoveTarget&&(s.clearMoveTargetDelay(),0<s.moveDelay?s[i(326)]=setTimeout(function(e){s[i(326)]=null,s._mouseMoveHandler(t)},s.moveDelay):s._mouseMoveHandler(t)),s._map[i(1997)](EventType[i(pe)],_objectSpread2(_objectSpread2({},t),{},{cartesian:a,windowPosition:e}))},Cesium__namespace.ScreenSpaceEventType[n(1782)]),this[n(se)].setInputAction(function(e){var t=n;s[t(3817)][t(ue)](EventType.wheel,e)},Cesium__namespace[n(1939)][n(562)]),this[n(3390)][n(I)](function(e){s._globeMouseHandler(e,EventType.rightClick)},Cesium__namespace.ScreenSpaceEventType.RIGHT_CLICK),this[n(3390)][n(I)](function(e){var t=n;s._globeMouseHandler(e,[EventType.rightDown,EventType[t(he)]])},Cesium__namespace.ScreenSpaceEventType.RIGHT_DOWN),this.handler.setInputAction(function(e){s._globeMouseHandler(e,[EventType.rightUp,EventType.mouseUp])},Cesium__namespace[n(1939)].RIGHT_UP),this.handler.setInputAction(function(e){s[n(t)](e,EventType.middleClick)},Cesium__namespace.ScreenSpaceEventType.MIDDLE_CLICK),this[n(3390)].setInputAction(function(e){s._globeMouseHandler(e,[EventType.middleDown,EventType.mouseDown])},Cesium__namespace.ScreenSpaceEventType.MIDDLE_DOWN),this.handler[n(I)](function(e){var t=n;s._globeMouseHandler(e,[EventType.middleUp,EventType[t(764)]])},Cesium__namespace.ScreenSpaceEventType[n(1050)]),this.handler.setInputAction(function(e){var t=n;s[t(i)](e,EventType[t(2884)])},Cesium__namespace[n(1939)].PINCH_START),this[n(3390)].setInputAction(function(e){var t=n;s[t(ce)](e,EventType[t(3065)])},Cesium__namespace[n(1939)].PINCH_END),this.handler[n(I)](function(e){var t=n;s._map[t(1997)](EventType.pinchMove,e)},Cesium__namespace.ScreenSpaceEventType[n(re)]),this._viewer[n(3252)][n(3870)](n(oe),this._onKeyDown.bind(this)),this[n(3966)][n(3252)].addEventListener("keyup",this._onKeyUp[n(le)](this))}},{key:"_onKeyDown",value:function(e){var t=O;this[t(3817)].fire(EventType[t(1349)],{ctrlKey:e[t(ie)],altKey:e.altKey,metaKey:e.metaKey,shiftKey:e[t(2920)],code:e[t(ae)],key:e.key,keyCode:e.keyCode})}},{key:"_onKeyUp",value:function(e){var t=O;this[t(K)].fire(EventType[t(ee)],{ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey,shiftKey:e.shiftKey,code:e.code,key:e[t(te)],keyCode:e.keyCode})}},{key:"getPickTarget",value:function(e,t){var i,a,n=O;if(null!=t&&t.graphic)return t;try{i=this[n(L)].scene[n(1647)](e,this[n(1592)].pickWidth,this.options[n(U)])}catch(e){}if(this[n(W)]&&i&&this._lastPickedInfo.pickedObject===i)return(a=null==t?void 0:t[n(J)])||("3dtiles"===(null==(_=this._lastPickedInfo)||null==(_=_.layer)?void 0:_.type)?(_=this._viewer[n(D)].onlyPickModelPosition,this[n(L)][n(3118)].onlyPickModelPosition=!0,a=getCurrentMousePosition(this._viewer[n(3118)],e,this.noPickEntity),this._viewer.scene[n(q)]=_):a=getCurrentMousePosition(this[n(Y)].scene,e,this.noPickEntity)),_objectSpread2(_objectSpread2(_objectSpread2({},t),this._lastPickedInfo),{},{cartesian:a,windowPosition:e});var s=this._getTargetInfo(i,e);if(i&&this._allowDrillPick(s)){var r=this._viewer[n(D)].drillPick(e,this[n(1592)].pickLimit,this[n(1592)].pickWidth,this.options.pickHeight),o=[];if(r&&0<r.length)for(var l=0,c=r.length;l<c;l++){var h=r[l];if(i===h)o.push(null==(u=s)?void 0:u.graphic);else{var u=this._getTargetInfo(h,e);if(o.push(null==u?void 0:u.graphic),!this._allowDrillPick(u)||l===c-1){(s=u)[n(Z)]=r,s.graphics=o;break}}}}else this._lastPickedInfo=s;var _=null==t?void 0:t.cartesian;return _||(_=getCurrentMousePosition(this[n(X)].scene,e,this[n(Q)])),_objectSpread2(_objectSpread2(_objectSpread2({},t),s),{},{cartesian:_,windowPosition:e})}},{key:O(e),value:function(e){var t=O,i=null==(i=e.graphic)?void 0:i.allowDrillPick;return(i||!!(i=null==(t=e[t($)])?void 0:t.allowDrillPick))&&(!isFunction(i)||i(e))}},{key:O(t),value:function(e,t){var i,a,n,s,r,o,l,c=O;return Cesium__namespace[c(3277)](e)?(Cesium__namespace.defined(e.id)&&e.id instanceof Cesium__namespace.Entity?a=(i=e.id).id:e instanceof Cesium__namespace.Cesium3DTileFeature?(a="3dtile_feature_"+(i=e)._batchId,l=e.tileset,n=this._map[c(N)](l._gis3d_layerId),s={attr:get3DTileFeatureAttr(e),feature:e}):e.content&&e[c(A)]instanceof(Cesium__namespace.PointCloud3DTileContent||Cesium__namespace.PointCloud)?(i=e.content,a="3dtile_pnts_"+(null==(l=e.content)||null==(l=l._pickId)?void 0:l[c(G)])||0,l=e.primitive,n=this._map[c(2681)](l._gis3d_layerId),e[c(z)]):null!=(l=e[c(3085)])&&null!=(l=l[c(3969)])&&l.i3sNode?(r=e[c(A)].tile.i3sNode,(o=this._viewer.scene.pickPosition(t))&&(s={attr:r[c(3556)]().then(function(){return r[c(598)](o)}),feature:r}),i=r,a=c(900)+r._nodeIndex||0,n=this[c(3817)].getLayerById(r._dataProvider._gis3d_layerId)):Cesium__namespace.defined(e[c(1867)])?(i=e[c(1867)],a=e.id):logInfo("getPickTarget:拾取到了对象,请确认是否要做处理",e),i&&(n=n||this._map.getLayerById(i._gis3d_layerId))&&n.getGraphicById&&((s=s||n.getGraphicById(i[c(676)]))?(a=s.id,s.getPickedObject&&(l=e.id||e[c(B)])&&(e.data=s.getPickedObject(a=l),s.attr=null==(t=e.data)?void 0:t.attr)):null!=(l=i)&&l[c(j)]&&(s=i._clusterData)),{id:a,pickedObject:e,sourceTarget:i,czmObject:i,layer:n,graphic:s,hasClickEvent:function(){var e=c;if(this.graphic){if(isFunction(this.graphic.listens)&&this.graphic.listens(EventType[e(1802)]))return!0;if(isFunction(this.graphic[e(1107)])&&s[e(V)]())return!0}if(this.layer){if(isFunction(this.layer.listens)&&this.layer.listens(EventType.click))return!0;if(isFunction(this.layer[e(1107)])&&null!=(e=n)&&e.hasPopup())return!0}return!1}}):{}}},{key:"getPicked",value:function(e){var t=O;if(e&&e.pickedObject){var i=e.pickedObject,e=e.czmObject;if(e instanceof Cesium__namespace[t(2519)]){var a=i[t(M)]._pickIds;if(0<(null==a?void 0:a.length))return a[t(3384)](function(e){return e.object===i})}else if(e instanceof Cesium__namespace.Cesium3DTileFeature){if(i[t(722)])return i.pickId}else{if(i[t(3085)]&&i.content instanceof(Cesium__namespace.PointCloud3DTileContent||Cesium__namespace.PointCloud))return null==(a=i.content)?void 0:a[t(3643)];if(i.primitive[t(722)])return i.primitive.pickId;if(i.primitive[t(E)])return i.primitive._pickIds;if(null!=(e=i[t(H)])&&null!=(a=e._model)&&a._pickIds)return null==(e=i[t(F)])||null==(a=e._model)?void 0:a._pickIds}}}},{key:"pickImageryLayerFeatures",value:function(t,i){var e=O,a=this,n=this[e(S)].scene,s=n.camera.getPickRay(t),e=n[e(T)][e(2807)](s,n);e&&e.then&&e.then(function(e){a._clickTileGraphic(e,t,i)})}},{key:"_clickTileGraphic",value:function(e,t,i){var a,n,s,r,o,l=O;Cesium__namespace.defined(e)&&0!==e[l(m)]&&(o=(a=e[0]).imageryLayer,(n=this[l(d)][l(2681)](o._gis3d_layerId))&&null!=(s=n[l(1592)])&&s[l(3676)]&&(s=n.options.featureIndex,"end"===(null==(r=n.options)?void 0:r[l(f)])?a=e[e.length-1]:isNumber(s)?a=e[s]||a:isFunction(s)&&(a=s(e)||a)),s={sourceTarget:o,layer:n,features:e,attr:a.properties||(null==(r=a.data)?void 0:r.properties),cartesian:null==i?void 0:i.cartesian,windowPosition:t},a.data&&n&&(null!=(o=n[l(1592)])&&o.highlight||n.listens(EventType[l(y)]))&&(n[l(v)][l(2132)]?(e=n.options.featureToGraphic(a,s))&&(Array.isArray(e)?(s.graphic=0<e.length?e[0]:null,s.graphics=e):(s.graphic=e,s[l(g)]=[e]),null!=(r=s.graphic))&&r.attr&&(s[l(C)]=s.graphic.attr):(i=!0,isBoolean(o=null!=(t=n.options.hasToGraphic)?t:5e3)?i=o:isNumber(o)?i=JSON[l(x)]((null==(e=a[l(b)])?void 0:e.geometry)||{})[l(2822)]<o:isFunction(o)&&(i=o(a)),i?(t=null==n||null==(r=n.options)?void 0:r.highlight,e=geoJsonToGraphics(a.data,{type:null==t?void 0:t.type,crs:a.crs||(null==n?void 0:n.crs),style:t}),s.graphic=0<e.length?e[0]:null,s.graphics=e):logInfo(l(k),null==n?void 0:n.options,null==(o=a[l(b)])?void 0:o[l(1972)]))),n&&n[l(P)](EventType.click,s,!1),this[l(3817)][l(P)](EventType[l(w)],s))}},{key:"_clickHandler",value:function(e){var t=O;if(!e||!e.position)return!1;var i,a=e.position,e=this.getPickTarget(a,e);this[t(3817)][t(1803)](e),e.sourceTarget?(this[t(2344)](EventType[t(1802)],e),this._map[t(u)](EventType.clickGraphic,e),null!=(i=e[t(_)])&&i.allowDrillPick&&this.pickImageryLayerFeatures(a,e)):(this._map.fire(EventType.click,e),this[t(3817)].fire(EventType[t(p)],e),this.pickImageryLayerFeatures(a,e))}},{key:"_mouseMoveHandler",value:function(e){var t=O;if(!e||!e.endPosition)return!1;var i=e.endPosition,i=this.getPickTarget(i,e),a=i[t(2250)];a&&!a.noMouseMove?this.activateMouseOver(i):this[t(h)](),this[t(3817)][t(1997)](EventType.mouseMoveTarget,_objectSpread2(_objectSpread2({czmObject:a},e),i))}},{key:"activateMouseOver",value:function(e){var t,i,a=O;this._lastMouseOverItem&&e.id&&e.id===this[a(l)].id||(this.activateMouseOut(),e.hasClickEvent&&e.hasClickEvent()&&(i=a(608),null!=(t=e.graphic)&&null!=(t=t.style)&&t.cursorCSS&&(i=e.graphic.style.cursorCSS),this._map.container[a(2492)].cursor=i),this.fireTargetEvent(EventType.mouseOver,e),this[a(c)]=e)}},{key:"activateMouseOut",value:function(){var e=O;null!=this._lastMouseOverItem&&(this._map._setEditCursor(!1),this.fireTargetEvent(EventType[e(2129)],this[e(2504)]),this[e(2504)]=null)}},{key:O(i),value:function(e,t){var i=O,a=this;if(!e||!e.position)return!1;var n=e[i(2532)],s=this.getPickTarget(n,e);Array[i(2255)](t)?t.forEach(function(e){s.sourceTarget?a.fireTargetEvent(e,s):a._map.fire(e,s)}):s[i(o)]?this.fireTargetEvent(t,s):this._map.fire(t,s)}},{key:O(a),value:function(e,t){var i=O,a=t.sourceTarget[e];a&&"function"==typeof a&&a(t),null!=(a=t.czmObject.eventTarget)&&a[i(s)](e,t),null!=(a=t.graphic)&&a.fire?t[i(2353)][i(r)](e,t,!0):null!=(a=t.layer)&&a.fire?t.layer[i(1997)](e,t,!0):this._map.fire(e,t)}},{key:O(1553),value:function(){var e=O;this._graphicLayer||(this._map.removeLayer(this._graphicLayer,!0),delete this._graphicLayer),this[e(3390)].destroy(),delete this[e(3390)],this[e(n)].canvas.removeEventListener("keydown",this._onKeyDown),this._map.canvas.removeEventListener("keyup",this._onKeyUp)}}]),R}(),rayScratch=(new Cesium__namespace.Cartographic,new Cesium__namespace.Ray),cartesian3Scratch=new Cesium__namespace.Cartesian3,ZoomNavigation=function(){var p=2067,m=2730,d=778,f=2391,y=2070,v=784,g=1723,C=3277,x=1683,i=2067;function a(e){var t=_0x236b;_classCallCheck(this,a),this[t(i)]=e}return _createClass(a,[{key:"zoomIn",value:function(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:2,i=1<arguments[e(2822)]?arguments[1]:void 0,t=1/t;return this[e(2879)](t,i)}},{key:"zoomOut",value:function(){return this.zoom(0<arguments.length&&void 0!==arguments[0]?arguments[0]:2,1<arguments.length?arguments[1]:void 0)}},{key:"zoom",value:function(e,t){var i=_0x236b,a=this[i(p)].scene,n=a.screenSpaceCameraController;if(!(t||n.enableInputs&&n.enableZoom))return!1;var s,r=a.camera;switch(a.mode){case Cesium__namespace.SceneMode.COLUMBUS_VIEW:case Cesium__namespace[i(m)].MORPHING:case Cesium__namespace.SceneMode[i(d)]:var o=r.positionCartographic.height*(1-e),l=(r.zoomIn(o),n.minimumZoomDistance),c=n.maximumZoomDistance,h=r.positionCartographic.height;if(h<l)return r.zoomOut(o),!1;if(h<n._minimumCollisionTerrainHeight){var u=n._scene[i(3549)];if(Cesium__namespace.defined(u)&&h<=u+l)return r[i(1379)](o),!1}return c&&c<h?(r.zoomOut(o),!1):!0;default:if(Cesium__namespace[i(3277)](this[i(2067)].trackedEntity)?_=new Cesium__namespace.Cartesian3:(rayScratch.origin=r[i(2142)],rayScratch.direction=r.directionWC,_=a.globe[i(1647)](rayScratch,a,new Cesium__namespace.Cartesian3),Cesium__namespace.defined(_)&&(_=r.worldToCameraCoordinatesPoint(_,_))),Cesium__namespace.defined(_))s={direction:r[i(y)],up:r.up};else{var u=new Cesium__namespace.Ray(r.worldToCameraCoordinatesPoint(a.globe.ellipsoid.cartographicToCartesian(r.positionCartographic)),r[i(f)]),_=Cesium__namespace.IntersectionTests.grazingAltitudeLocation(u,a.globe[i(3113)]);if(!Cesium__namespace.defined(_))return!1;s={heading:r.heading,pitch:r.pitch,roll:r.roll}}l=Cesium__namespace.Cartesian3.subtract(r.position,_,cartesian3Scratch),c=Cesium__namespace.Cartesian3.multiplyByScalar(l,e,l),h=Cesium__namespace[i(v)].add(_,c,_);if(!Cesium__namespace.defined(h))return!1;o=n.minimumZoomDistance,u=n.maximumZoomDistance,l=Cesium__namespace[i(3428)][i(3258)](h).height;if(l<o)return!1;if(l<n._minimumCollisionTerrainHeight){c=n[i(g)].globeHeight;if(Cesium__namespace[i(C)](c)&&l<=c+o)return!1}return u&&u<l?!1:(Cesium__namespace.defined(this[i(p)][i(x)])||a.mode===Cesium__namespace.SceneMode.COLUMBUS_VIEW?r.position=h:r.flyTo({destination:h,orientation:s,duration:.5,convert:!1}),!0)}}}]),a}(),SceneOption=function(){var s=1592,r=1899,o=1592,l=1100,c=2168,h=2097,u=352,_=1100,p=352,n=1592,m=3818,d=941,f=2744,y=2281,v=4045,g=3402,C=1114,x=569,i=1592,a=1592,b=1592,k=1271,P=3966,w=1491,S=523,T=_0x1658de;function t(e){_classCallCheck(this,t),this._map=e,this._viewer=e.viewer,this.options={},this._init()}return _createClass(t,[{key:"_init",value:function(){var e,i=_0x236b,a=this;if(this._viewer.cesiumWidget.creditContainer.style.display="none",this._viewer.scene[i(2722)].maximumZoomDistance=5e7,this._viewer.scene[i(1530)]=Cesium__namespace.Color.TRANSPARENT,this._viewer.sceneModePicker&&(this._viewer.sceneModePicker.viewModel.duration=0),null!=(e=this._viewer)&&null!=(e=e.homeButton)&&e.viewModel[i(w)].beforeExecute.addEventListener(function(e){var t=i;a[t(3817)].flyHome(),e[t(2099)]=!0}),this._viewer._cesiumWidget._supportsImageRenderingPixelated=Cesium__namespace.FeatureDetection.supportsImageRenderingPixelated(),this._viewer._cesiumWidget[i(S)]=!0,Cesium__namespace.FeatureDetection.supportsImageRenderingPixelated()){for(var t=window.devicePixelRatio;2<=t;)t/=2;this._viewer.resolutionScale=t}}},{key:"setOptions",value:function(e,t){var i=_0x236b;return t=t||{},this.options=e=e||{},this._setViewerOption(t)[i(2932)](t)._setSceneOption(t)[i(2245)](t)._setCameraOption(t)[i(805)](t),this}},{key:"_setViewerOption",value:function(e){var t=_0x236b;return e.center?this._map.setCameraView(this[t(i)].center,{duration:0}):e[t(1561)]&&this._map.flyToExtent(this[t(a)].extent,{duration:0}),this[t(3966)].shadows=null!=(e=this.options[t(2502)])&&e,null!=(e=this.options.removeDblClick)&&!e||this[t(3966)].screenSpaceEventHandler[t(3186)](Cesium__namespace.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this[t(1592)].resolutionScale&&(this._viewer.resolutionScale=this.options.resolutionScale),Cesium__namespace.defined(this[t(1592)].terrainShadows)&&(isBoolean(this[t(i)].terrainShadows)?this._viewer.terrainShadows=this[t(b)].terrainShadows?Cesium__namespace.ShadowMode[t(381)]:Cesium__namespace[t(k)].DISABLED:this[t(P)][t(555)]=this.options.terrainShadows),this}},{key:"_setCanvasOption",value:function(e){var t,i=_0x236b,a=this._viewer.canvas;return a[i(x)]("tabindex",null!=(t=this.options.tabIndex)?t:0),a.onclick=function(e){a[i(580)]()},this}},{key:"_setSceneOption",value:function(e){var t,i=_0x236b,a=this._viewer[i(3118)],n=this.options;switch(a[i(y)][i(v)]=null==(t=n[i(g)])||t,a.moon[i(4045)]=null==(t=n[i(1965)])||t,a.skyBox.show=null==(t=n.showSkyBox)||t,a.skyAtmosphere.show=Boolean(null==(t=n.showSkyAtmosphere)||t),a[i(2438)].enabled=null==(t=n.fog)||t,a.postProcessStages.fxaa.enabled=null==(t=n.fxaa)||t,a.highDynamicRange=null!=(t=n[i(899)])&&t,n[i(1530)]&&(a.backgroundColor=Cesium__namespace[i(3096)][i(C)](n.backgroundColor)),Cesium__namespace[i(3277)](n.orderIndependentTranslucency)&&(a._useOIT=n[i(374)]),n.sceneMode){case Cesium__namespace.SceneMode.SCENE2D:a.morphTo2D(0);break;case Cesium__namespace.SceneMode[i(2999)]:a.morphToColumbusView(0);break;case Cesium__namespace.SceneMode.SCENE3D:a[i(2227)](0)}return this}},{key:"_setGlobeOption",value:function(e){var t=_0x236b,i=this[t(3966)].scene.globe,a=null!=(a=this[t(1592)][t(d)])?a:{};return merge(i,_objectSpread2(_objectSpread2({},a),{},{show:null==(i=a.show)||i,depthTestAgainstTerrain:null!=(i=a.depthTestAgainstTerrain)&&i,baseColor:Cesium__namespace.Color.fromCssColorString(a.baseColor||t(3514)),showGroundAtmosphere:null==(i=a[t(f)])||i,enableLighting:null!=(t=a.enableLighting)&&t})),this}},{key:"_setCameraOption",value:function(e){var t=_0x236b,i=this._viewer.scene.screenSpaceCameraController,a=null!=(a=this[t(n)].cameraController)?a:{};return merge(i,_objectSpread2(_objectSpread2({},a),{},{_zoomFactor:a.zoomFactor||3,minimumZoomDistance:null!=(i=a[t(m)])?i:1,maximumZoomDistance:null!=(i=a.maximumZoomDistance)?i:5e7,minimumCollisionTerrainHeight:null!=(i=a[t(1870)])?i:15e3,enableRotate:null==(i=a.enableRotate)||i,enableTranslate:null==(i=a[t(2608)])||i,enableTilt:null==(i=a.enableTilt)||i,enableZoom:null==(i=a.enableZoom)||i,enableCollisionDetection:null==(i=a.enableCollisionDetection)||i})),!1===a.constrainedAxis&&(this[t(3966)].camera.constrainedAxis=void 0),this}},{key:"_setClockOption",value:function(e){var t,i=_0x236b,a=this[i(3966)].clock,n=null!=(n=this[i(s)][i(r)])?n:{};return n.shouldAnimate=null==(t=null!=(t=n.shouldAnimate)?t:this[i(o)].shouldAnimate)||t,a.shouldAnimate=n.shouldAnimate,n.startTime&&(a.startTime=this._getJulianDate(n[i(l)]),a.currentTime=a.startTime),n[i(c)]&&(a[i(2168)]=this[i(h)](n.stopTime)),n[i(u)]&&(a.currentTime=this[i(2097)](n.currentTime),n.startTime||(a[i(_)]=a.currentTime[i(3060)]()),!n.stopTime)&&(a.stopTime=Cesium__namespace.JulianDate.addDays(a[i(p)],1,new Cesium__namespace.JulianDate)),n.multiplier&&(a[i(3319)]=n.multiplier),this}},{key:T(2097),value:function(e){var t=T;return isString(e)?-1===e.indexOf("Z")?Cesium__namespace.JulianDate.fromDate(new Date(e)):Cesium__namespace.JulianDate[t(3455)](e):e}}]),t}();function initBeforeCreateDefaultValue(e){var t,i=_0x1658de;Cesium__namespace.Ion.defaultAccessToken=(null==e||null==(t=e[i(3118)])?void 0:t.ionToken)||ion,Cesium__namespace.AnimationViewModel[i(1427)]=(null==e||null==(t=e.control)?void 0:t.animationTicks)||[.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600],Cesium__namespace.Camera.DEFAULT_VIEW_RECTANGLE=Cesium__namespace.Rectangle[i(3119)](89.5,20.4,110.4,61.2),Cesium__namespace[i(675)].maximumRequests=100,Cesium__namespace.RequestScheduler.maximumRequestsPerServer=20}var PopupMgr=function(){var a=2499,n=3273,s=3737,o=1815,l=3385,c=2353,h=2353,u=2239,_=3910,C=1638,x=1592,b=3385,p=2822,m=3415,t=3817,i=3817,r=2100,d=2235,f=3432,k=_0x1658de,y=(_inherits(v,BaseControl),_createSuper(v));function v(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,v),(e=y.call(this,t))._depthTest=null==(t=t.depthTest)||t,e}return _createClass(v,[{key:k(3142),get:function(){return this._depthTest},set:function(e){this._depthTest=e}},{key:"_mountedHook",value:function(){this._layer=new GraphicLayer({private:!0}),this._layer._closeAllControl=function(){}}},{key:"_enabledHook",value:function(e){this[k(2818)].show=e}},{key:"_addedHook",value:function(){this[k(3817)].addLayer(this._layer),this._bindEvent()}},{key:k(2071),value:function(){var e=k;this._unbindEvent(),this[e(3817)][e(f)](this._layer)}},{key:"_bindEvent",value:function(){var e=k;this._map.on(EventType.click,this[e(d)],this),this._map.on(EventType.clickTileGraphic,this[e(d)],this)}},{key:"_unbindEvent",value:function(){var e=k;this[e(t)].off(EventType.click,this._mouseClickHandler,this),this[e(i)].off(EventType[e(r)],this._mouseClickHandler,this)}},{key:"_mouseClickHandler",value:function(e){var t,i=k;if(this.enabled&&!this._openByMouseEvent(e.czmObject,e)&&!(this._openByMouseEvent(e.graphic,e)||this._openByMouseEvent(null==(t=e.graphic)?void 0:t[i(2437)],e)||this._openByMouseEvent(e.layer,e)||this._openByMouseEvent(null==(t=e.layer)?void 0:t.parent,e)))for(var a=this._layer[i(3006)](),n=0,s=a[i(p)];n<s;n++){var r=a[n];!1!==r.options[i(m)]&&r.remove(!0)}}},{key:"_getConfig",value:function(e){return e[k(1588)]||e.getPopupConfig&&e.getPopupConfig()}},{key:"_openByMouseEvent",value:function(e,t){return!!e&&(!1===(e=this[k(2349)](e))||!!e&&(e=_objectSpread2(_objectSpread2({},e),t),this.open(t.cartesian,e),!0))}},{key:"close",value:function(e,t){var i=k;if(this._layer)if(e)for(var a=this._layer[i(3006)](),n=0,s=a.length;n<s;n++){var r,o,l=a[n];l.options.checkData?l.options[i(C)](null==(o=l.options)?void 0:o[i(1740)],e)&&l[i(4071)](!0):e===(null==(o=l.options)||null==(r=o.event)?void 0:r.graphic)&&l.remove(!0)}else if(t)for(var c=this._layer.getGraphics(),h=0,u=c.length;h<u;h++){var _,p,m=c[h];m.options.checkData?m.options.checkData(null==(p=m[i(x)])?void 0:p.attr,t)&&m[i(4071)](!0):t===(null==(p=m.options)||null==(_=p[i(2723)])?void 0:_[i(b)])&&m.remove(!0)}else for(var d=this._layer[i(3006)](),f=0,y=d[i(2822)];f<y;f++){var v,g=d[f];null!=(v=null==(v=g.options)?void 0:v[i(3729)])&&!v||g[i(4071)](!0)}}},{key:"closeAll",value:function(){this._layer&&this._layer.clear()}},{key:k(3050),value:function(e){var t=k,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=i.options||{},n=(null==(n=null===a?void 0:a.autoClose)||n?this.close():null!=i&&i.graphic&&this[t(o)](i.graphic),i.target),s=(i.layer&&i[t(l)].fire&&(n=i.layer),i.graphic&&i.graphic.fire&&(n=i[t(c)]),Cesium__namespace.HeightReference.NONE),r=(i.czmObject&&(r=i.czmObject,s=this.getHeightReference(r,s),r.billboard||r.point||r.position&&!(r.position instanceof Cesium__namespace.ConstantPositionProperty))&&(e=r.position),i[t(h)]&&(i.graphic[t(u)]&&(s=null==(r=i.graphic.style)?void 0:r[t(3273)],null!=(r=i.graphic.style))&&r.clampToGround&&(s=Cesium__namespace.HeightReference.CLAMP_TO_GROUND),i[t(3903)])&&i.graphic.property&&(e=i.graphic[t(2642)]()),_objectSpread2(_objectSpread2({},a),{},{heightReference:s,html:i[t(3085)]})),a=this[t(_)](_objectSpread2(_objectSpread2({depthTest:this.depthTest},a),{},{position:e,style:r,attr:null==(s=i[t(h)])?void 0:s.attr,target:n,event:i}),n);this._layer.addGraphic(a)}},{key:"getPopup",value:function(e){return this[k(2818)].getGraphicById(e._popupId)}},{key:k(3910),value:function(e,t){var i=k,e=new Popup(e);return t&&(t[i(s)]=e.id),e}},{key:k(1898),value:function(e,t){var i=k;return e?Cesium__namespace.defined(e[i(a)])?e._heightReference:(e=e.billboard||e.point||e.model||e.label,Cesium__namespace[i(3277)](null==e?void 0:e[i(3273)])?e[i(n)]._value:t):t}}]),v}(),TooltipMgr=(register$1("popup",PopupMgr),function(){var a=4096,t=3817,i=4030,n=3817,s=1630,r=2050,o=764,l=1592,c=_0x1658de,h=(_inherits(u,PopupMgr),_createSuper(u));function u(){var e=_0x236b,t=0<arguments[e(2822)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,u),(t=h.call(this,t))[e(l)].cacheTime=null!=(e=t[e(l)].cacheTime)?e:20,t}return _createClass(u,[{key:"_enabledHook",value:function(e){_get(_getPrototypeOf(u.prototype),"_enabledHook",this).call(this,e),this.moveTimer&&!e&&(clearTimeout(this.moveTimer),delete this.moveTimer)}},{key:"_bindEvent",value:function(){var e=_0x236b;this._map.on(EventType.mouseMoveTarget,this[e(r)],this),this._map.on(EventType.mouseDown,this._mouseDownHandler,this),this[e(3817)].on(EventType[e(o)],this._mouseUpHandler,this)}},{key:"_unbindEvent",value:function(){var e=_0x236b;this[e(t)][e(i)](EventType.mouseMoveTarget,this._mouseMoveHandler,this),this[e(n)].off(EventType.mouseDown,this._mouseDownHandler,this),this._map.off(EventType.mouseUp,this[e(s)],this)}},{key:"_mouseDownHandler",value:function(e){this.enabled&&(this._isMouseUpdownPressed=!0,this.close())}},{key:c(1630),value:function(e){this.enabled&&(this._isMouseUpdownPressed=!1)}},{key:"_mouseMoveHandler",value:function(e){var t=c,i=this;this.enabled&&(this[t(3467)]&&(clearTimeout(this.moveTimer),delete this.moveTimer),this._isMouseUpdownPressed||!this[t(2998)]?this.close():this[t(3467)]=setTimeout(function(){delete i.moveTimer,i._mouseClickHandler(e)},this.options[t(a)]))}},{key:"_getConfig",value:function(e){return e._tooltipConfig||e.getTooltipConfig&&e.getTooltipConfig()}},{key:"_createDivGraphic",value:function(e,t){e=new Tooltip(e);return t&&(t._tooltipId=e.id),e}},{key:"getTooltip",value:function(e){return this._layer.getGraphicById(e._tooltipId)}}]),u}()),SmallTooltip=(register$1("tooltip",TooltipMgr),function(){var a=3118,n=394,s=434,r=1181,t=434,i=2163,o=1467,l=2070,c=2543,h=2026,u=_0x1658de,_=(_inherits(p,BaseControl),_createSuper(p));function p(){var e=_0x236b;return _classCallCheck(this,p),_[e(h)](this,arguments)}return _createClass(p,[{key:u(2070),get:function(){return this.options.direction},set:function(e){var t=u;(this[t(1592)][t(l)]=e)?(addClass(this._containerArrow,"gis3d-smallTooltip-leftArrow"),removeClass(this[t(c)],"gis3d-smallTooltip-rightArrow")):(addClass(this._containerArrow,t(2445)),removeClass(this._containerArrow,"gis3d-smallTooltip-leftArrow"))}},{key:"_enabledHook",value:function(e){this.show=e}},{key:"_mountedHook",value:function(){var e=u,t=this;this._container=create$3("div","gis3d-smallTooltip"),this._container.style.display="none",this._containerArrow=create$3("div","gis3d-smallTooltip-arrow gis3d-smallTooltip-rightArrow",this._container),this._containerContent=create$3(e(o),"gis3d-smallTooltip-inner",this._container),this[e(434)].addEventListener("click",function(e){t.close()})}},{key:"close",value:function(){var e=u;this._container&&(this[e(t)].style[e(i)]="none")}},{key:u(3050),value:function(e,t){var i=u;this.enabled&&(t&&(this._containerContent[i(1962)]=t),e?(e instanceof Cesium__namespace.Cartesian3&&(e=Cesium__namespace.SceneTransforms.wgs84ToWindowCoordinates(this._map[i(a)],e)),this._container[i(2492)][i(2163)]="block",this._container.style[i(n)]=e.y-this._container.clientHeight/2+"px",this.options.direction?this[i(s)].style[i(r)]=e.x-this._container.clientWidth-25+"px":this._container.style.left=e.x+25+"px"):this._container.style.display=i(1058))}}]),p}()),ContextMenu=(register$1("smallTooltip",SmallTooltip),function(_0x1b4c1c){var _0x43689a={_0x305655:3748,_0x39d60f:563,_0x4c7da2:2071,_0x65c511:3694,_0x35db03:1966},_0x3f2506={_0x15b857:4045,_0x17bce0:1677,_0x3ef0ae:1238,_0x1993bf:3371,_0x137680:2557,_0x414663:1628},_0x246304={_0x12e0f9:3385,_0x15dfde:1997,_0x126c39:2437,_0x22e5dc:3330,_0x54d89b:1554,_0x3d5c58:4045,_0xbcd4c7:1550,_0x4e21dd:3156,_0x476b35:3817,_0xf8da5b:3252,_0x185a0a:394,_0xa1e3eb:3118,_0x556bab:2823,_0x898f3c:2492,_0x16112c:1473,_0x1cedda:1181},_0x1153e8={_0x13bd1e:3385,_0x3b7ef4:1997},_0x214744={_0x1b1680:417,_0x450e9d:2437},_0x9f3739={_0x34814e:1815},_0x5ad73b={_0x2ff7ba:878,_0x2feef0:2330},_0x5ae546={_0x37a0f:3495,_0x31ffca:1602,_0x564edd:434},_0x4a9ecc={_0x48fbd9:3137},_0x429326={_0x2401c3:2822},_0x49b96a=_0x1658de,_0x32322d=(_inherits(_0x445a7a,_0x1b4c1c),_createSuper(_0x445a7a));function _0x445a7a(){var e=_0x236b,t=0<arguments[e(_0x429326._0x2401c3)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,_0x445a7a),(t=_0x32322d.call(this,t))._menuIndex=0,t[e(334)]={},t}return _createClass(_0x445a7a,[{key:"target",get:function(){return this[_0x236b(_0x4a9ecc._0x48fbd9)]}},{key:_0x49b96a(_0x43689a._0x305655),value:function(){this._target=null}},{key:"_mountedHook",value:function(){var e=_0x49b96a;Cesium__namespace.defaultValue(this.options.preventDefault,!0)&&(this[e(3817)].container[e(_0x5ae546._0x37a0f)]=function(e){e.preventDefault()}),this._container=create$3("div",e(_0x5ae546._0x31ffca)),this._container[e(2492)][e(2163)]="none",this._containerUl=create$3("ul","gis3d-contextmenu-ul",this[e(_0x5ae546._0x564edd)]),this._containerUl.id=this[e(3689)]+"-gis3d-contextmenu-ul"}},{key:_0x49b96a(_0x43689a._0x39d60f),value:function(){var e=_0x49b96a;this[e(3817)].on(EventType.leftDown,this._downHandler,this),this[e(3817)].on(EventType.middleDown,this._downHandler,this),this._map.on(EventType.wheel,this._downHandler,this),this._map.on(EventType.rightClick,this._rightClickHandler,this)}},{key:_0x49b96a(_0x43689a._0x4c7da2),value:function(){var e=_0x49b96a;this._map[e(4030)](EventType.leftDown,this._downHandler,this),this._map.off(EventType.middleDown,this._downHandler,this),this._map.off(EventType[e(_0x5ad73b._0x2ff7ba)],this._downHandler,this),this._map.off(EventType[e(_0x5ad73b._0x2feef0)],this._rightClickHandler,this),this._target=null,this._eventResult=null}},{key:_0x49b96a(_0x43689a._0x65c511),value:function(e){this[_0x49b96a(_0x9f3739._0x34814e)]()}},{key:"_rightClickHandler",value:function(e){var t,i=_0x49b96a;this.close(),!this.enabled||this._openByClick(e[i(_0x214744._0x1b1680)],e)||this._openByClick(e.graphic,e)||this._openByClick(null==(t=e.graphic)?void 0:t.parent,e)||this._openByClick(e[i(3385)],e)||this._openByClick(null==(t=e.layer)?void 0:t[i(_0x214744._0x450e9d)],e)||this[i(1966)](this._map,e)}},{key:_0x49b96a(_0x43689a._0x35db03),value:function(e,t){var i=_0x49b96a;return!!e&&(!1===(e=e._contextmenuConfig||e.getContextMenu&&e[i(1684)]())||!!e&&(e=_objectSpread2(_objectSpread2({},e),t),this[i(3050)](t[i(2001)],e),!0))}},{key:_0x49b96a(1815),value:function(e,t){var i=_0x49b96a;!1===this._show||e&&e!==(null==(e=this._eventResult)?void 0:e[i(2353)])||t&&t!==(null==(e=this._eventResult)?void 0:e[i(_0x1153e8._0x13bd1e)])||(this[i(4045)]=!1,null!=(t=this[i(3903)])&&t[i(_0x1153e8._0x3b7ef4)]?this.target.fire(EventType.contextMenuClose,{},!0):this._map.fire(EventType.contextMenuClose))}},{key:"open",value:function _0x18239f(_0x27fa8c){var _0x510ef8={_0x40ca23:3297},_0x44e15a={_0x4d2a73:3985,_0x12d6fe:3682,_0x22f05f:334,_0x58a6a2:3903,_0x2a40a3:1489},_0x53c3c3=_0x49b96a,_0x362cdf,_0x575925=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},_0x95d65=_0x575925.options||{},_0x2505b9=_0x575925.content;if(_0x2505b9&&0!==_0x2505b9.length){for(var _0x1cef8e=_0x575925.windowPosition||Cesium__namespace.SceneTransforms.wgs84ToWindowCoordinates(this._map.scene,_0x27fa8c),_0x18207c=_objectSpread2(_objectSpread2({},_0x575925),{},{windowPosition:_0x1cef8e,position:_0x27fa8c}),_0x1dc4c3,_0x297581=(_0x575925[_0x53c3c3(_0x246304._0x12e0f9)]&&_0x575925[_0x53c3c3(3385)][_0x53c3c3(_0x246304._0x15dfde)]&&(_0x18207c[_0x53c3c3(3903)]=_0x575925[_0x53c3c3(3385)]),_0x575925.graphic&&_0x575925.graphic.fire&&(_0x18207c.target=_0x575925.graphic,_0x1dc4c3=_0x575925.graphic[_0x53c3c3(_0x246304._0x126c39)],_0x1dc4c3)&&_0x1dc4c3.fire&&(_0x18207c.graphic_parent=_0x1dc4c3),this._eventResult=_0x18207c,""),_0x50e23c=0,_0x3e6577=_0x2505b9[_0x53c3c3(2822)];_0x50e23c<_0x3e6577;_0x50e23c++){var _0x2fe9d5=_0x2505b9[_0x50e23c],_0x195eeb=this[_0x53c3c3(_0x246304._0x22e5dc)](_0x2fe9d5,_0x18207c);_0x195eeb&&(_0x297581+=_0x195eeb)}if(""===_0x297581)this.close();else{this[_0x53c3c3(_0x246304._0x54d89b)].innerHTML=_0x297581;for(var _0x2fa732=this._containerUl.querySelectorAll(_0x53c3c3(3208)),_0x492317=this,_0x5c5840=0;_0x5c5840<_0x2fa732[_0x53c3c3(2822)];_0x5c5840++){var _0x114ae1=_0x2fa732[_0x5c5840];_0x114ae1[_0x53c3c3(3870)]("click",function(_0x57e3d3){var _0x2f6c9f=_0x53c3c3,_0x5bd6d6,_0x28de6e=(_0x57e3d3.stopPropagation&&_0x57e3d3.stopPropagation(),Number(this[_0x2f6c9f(_0x44e15a._0x4d2a73)](_0x2f6c9f(_0x44e15a._0x12d6fe)))),_0x3c79cd=_0x492317[_0x2f6c9f(_0x44e15a._0x22f05f)][_0x28de6e],_0x36163a=_objectSpread2(_objectSpread2({},_0x18207c),{},{data:_0x3c79cd}),_0x5eab64=_0x3c79cd.callback,_0x127374=(_0x5eab64&&(isFunction(_0x5eab64)?_0x5eab64(_0x36163a):isString(_0x5eab64)&&(window._contextmenuItemClickResult=_0x36163a,eval(_0x5eab64+_0x2f6c9f(2277)),delete window._contextmenuItemClickResult)),null!=(_0x5bd6d6=_0x492317.target)&&_0x5bd6d6[_0x2f6c9f(1997)]?_0x492317[_0x2f6c9f(_0x44e15a._0x58a6a2)][_0x2f6c9f(1997)](EventType[_0x2f6c9f(_0x44e15a._0x2a40a3)],_0x36163a,!0):_0x492317._map[_0x2f6c9f(1997)](EventType.contextMenuClick,_0x36163a),Number(this.getAttribute("data-count")||0));0===_0x127374&&_0x492317.close()}),_0x114ae1.addEventListener(_0x53c3c3(622),function(e){for(var t=_0x53c3c3,i=_0x492317._container.querySelectorAll(".gis3d-sub-menu"),a=0;a<i.length;a++)i[a].style.display="none";var n=this[t(3297)](".gis3d-sub-menu");n&&(n.style.display="block"),removeClass(_0x492317._containerUl[t(_0x510ef8._0x40ca23)](".active"),"active"),addClass(this,"active")})}this[_0x53c3c3(_0x246304._0x3d5c58)]=!0,this._target=_0x18207c.target;for(var _0x4c512d=_0x1cef8e.y,_0x2038bc=_0x1cef8e.x,_0x2b8a0e=(_0x95d65.anchor?(_0x2038bc+=_0x95d65[_0x53c3c3(2272)][0],_0x4c512d+=_0x95d65.anchor[1]):(_0x95d65.offsetX&&(_0x2038bc+=_0x95d65.offsetX),_0x95d65.offsetY&&(_0x4c512d+=_0x95d65[_0x53c3c3(_0x246304._0xbcd4c7)])),this._container[_0x53c3c3(_0x246304._0x4e21dd)]),_0xf41a39=this._container.offsetWidth,_0x4e6b3b=(_0x4c512d+_0x2b8a0e>this[_0x53c3c3(_0x246304._0x476b35)].scene.canvas.clientHeight?(_0x4c512d-=_0x2b8a0e-10,_0x4c512d<=0&&(_0x4c512d=0)):_0x4c512d+=10,!0),_0x1a3ae0=(_0x2038bc+_0xf41a39>this._map.scene[_0x53c3c3(_0x246304._0xf8da5b)].clientWidth?(_0x2038bc-=_0xf41a39-10,_0x4e6b3b=!1,_0x2038bc<=0&&(_0x2038bc=0)):_0x2038bc+=10,this._container.style.left=_0x2038bc+"px",this._container.style[_0x53c3c3(_0x246304._0x185a0a)]=_0x4c512d+"px",this._containerUl.querySelectorAll(".gis3d-sub-menu")),_0x3913b6=0;_0x3913b6<_0x1a3ae0.length;_0x3913b6++){var _0x2948b9=_0x1a3ae0[_0x3913b6],_0x3b928e=34*Number(_0x2948b9.getAttribute("data-count")||1),_0x56b4a5=_0x4c512d+_0x2948b9.parentElement.offsetTop;_0x2948b9.style[_0x53c3c3(394)]="0",_0x2948b9[_0x53c3c3(2492)][_0x53c3c3(947)]=_0x53c3c3(1473),_0x56b4a5+_0x3b928e>this._map[_0x53c3c3(_0x246304._0xa1e3eb)].canvas[_0x53c3c3(_0x246304._0x556bab)]&&(_0x56b4a5-=_0x3b928e,0<_0x56b4a5)&&(_0x2948b9[_0x53c3c3(_0x246304._0x898f3c)].top=_0x53c3c3(_0x246304._0x16112c),_0x2948b9.style.bottom="0"),_0x4e6b3b?_0x2948b9.style[_0x53c3c3(_0x246304._0x1cedda)]=_0xf41a39+10+"px":_0x2948b9.style.right=_0xf41a39+10+"px"}null!=(_0x362cdf=_0x18207c.target)&&_0x362cdf.fire?_0x18207c.target.fire(EventType.contextMenuOpen,{},!0):this._map.fire(EventType.contextMenuOpen)}}else this[_0x53c3c3(1815)]()}},{key:"_getItemHtml",value:function _0x1b5d87(_0x2781c7,_0x575f4a){var _0x446d22=_0x49b96a,_0x43a9e6;if(_0x2781c7.hasOwnProperty("show")){var _0x1e1fe1=_0x2781c7[_0x446d22(_0x3f2506._0x15b857)];try{_0x575f4a[_0x446d22(1238)]=_0x2781c7,isFunction(_0x1e1fe1)?_0x1e1fe1=_0x2781c7[_0x446d22(_0x3f2506._0x15b857)](_0x575f4a):isString(_0x1e1fe1)&&(window._contextmenuItemClickShowResult=_0x575f4a,_0x1e1fe1=eval(_0x1e1fe1+"(window._contextmenuItemClickShowResult)"),delete window[_0x446d22(1101)])}catch(_0x40468c){logError$1(_0x446d22(2561),_0x40468c)}if(!_0x1e1fe1)return}if(_0x2781c7[_0x446d22(3045)]){var _0x123714="",_0x554f57="",_0x11a813=0;if(_0x2781c7[_0x446d22(_0x3f2506._0x17bce0)]){for(var _0x3f7da3=0,_0x34c14e=_0x2781c7.children.length;_0x3f7da3<_0x34c14e;_0x3f7da3++){var _0x4db82b=_0x2781c7.children[_0x3f7da3],_0x5ddd34=(_0x575f4a[_0x446d22(_0x3f2506._0x3ef0ae)]=_0x4db82b,this._getItemHtml(_0x4db82b,_0x575f4a));_0x5ddd34&&(_0x123714+=_0x5ddd34,_0x11a813++)}if(0===_0x11a813)return;_0x123714='<ul class="gis3d-contextmenu-ul gis3d-sub-menu" data-count="'.concat(_0x11a813,'">').concat(_0x123714,"</ul>"),_0x554f57='\n <span class="contextmenu-arrow" >\n <svg width="20" height="20" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01"/><path d="M20 12L32 24L20 36V12Z" fill="#ffffff" stroke="#ffffff" stroke-width="4" stroke-linejoin="round"/></svg>\n </span> '}this[_0x446d22(389)]++,this._menuObj[this._menuIndex]=_0x2781c7;var _0x2918ae=this._createIcon(_0x2781c7[_0x446d22(_0x3f2506._0x1993bf)]||_0x2781c7.iconCls,null,"contextmenu-icon"),_0x43a9e6='<li class="contextmenu-item" data-index="'[_0x446d22(2557)](this._menuIndex,'" data-count="')[_0x446d22(_0x3f2506._0x137680)](_0x11a813,'">\n <a href="javascript:void(0)">').concat(_0x2918ae).concat(_0x2781c7.text).concat(_0x554f57,"</a>\n ").concat(_0x123714,"\n </li>")}else _0x43a9e6=_0x446d22(_0x3f2506._0x414663);return _0x43a9e6}}]),_0x445a7a}(BaseControl)),KeyboardRoam=(register$1("contextMenu",ContextMenu),function(){var e=3484,t=2924,i=1837,l=3817,c=2276,h=1346,n=3204,s=3641,r=784,o=1635,u=3060,_=1534,p=1688,m=1859,d=784,f=2532,y=2532,v=1346,a=3118,g=3817,C=3118,x=2018,b=2855,k=1994,P=2070,w=2816,S=2532,T=3543,M=2248,E=3105,A=4064,L=2276,D=366,I=2833,H=4030,F=3957,N=2833,G=1592,z=3484,B=1931,j=3885,V=2822,O=_0x1658de,$=(_inherits(R,BaseControl),_createSuper(R));function R(){var e,t=0<arguments[_0x236b(V)]&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(e=$.call(this,t)).setOptions(t),e.flags={moveForward:!1,moveBackward:!1,moveUp:!1,moveDown:!1,moveLeft:!1,moveRight:!1},e}return _createClass(R,[{key:O(e),get:function(){return this._moveStep},set:function(e){this[O(j)]=e}},{key:"dirStep",get:function(){return this._dirStep},set:function(e){this[O(865)]=e}},{key:"rotateStep",get:function(){return this._rotateStep},set:function(e){this._rotateStep=e}},{key:"minPitch",get:function(){return this[O(B)]},set:function(e){this._minPitch=e}},{key:"maxPitch",get:function(){return this._maxPitch},set:function(e){this[O(2333)]=e}},{key:"minHeight",get:function(){return this._minHeight},set:function(e){this._minHeight=e}},{key:"setOptions",value:function(e){var t=O;return this.options=_objectSpread2(_objectSpread2({},this.options),e),this._moveStep=null!=(e=this[t(G)][t(z)])?e:10,this._dirStep=null!=(t=this.options.dirStep)?t:25,this._rotateStep=null!=(e=this.options.rotateStep)?e:1,this._minPitch=null!=(t=this.options.minPitch)?t:.1,this._maxPitch=null!=(e=this.options.maxPitch)?e:.95,this._minHeight=null!=(t=this.options.minHeight)?t:0,this}},{key:"_addedHook",value:function(){var e=O;this._map.on(EventType.keydown,this[e(N)],this),this._map.on(EventType.keyup,this._onKeyUp,this),this._map.on(EventType.clockTick,this._onClockTick,this)}},{key:"_removedHook",value:function(){var e=O;this._map.off(EventType.keydown,this[e(I)],this),this._map[e(H)](EventType[e(3172)],this._onKeyUp,this),this._map.off(EventType[e(F)],this._onClockTick,this)}},{key:"_onKeyDown",value:function(e){var t=O;this.enabled&&void 0!==(e=this._getFlagForKeyCode(e[t(3233)]))&&(this[t(D)][e]=!0)}},{key:"_onKeyUp",value:function(e){this.enabled&&void 0!==(e=this._getFlagForKeyCode(e.keyCode))&&(this.flags[e]=!1)}},{key:"_getFlagForKeyCode",value:function(e){var t=O;switch(e){case"W".charCodeAt(0):return t(T);case"S".charCodeAt(0):return"moveBackward";case"D".charCodeAt(0):return"moveRight";case"A".charCodeAt(0):return"moveLeft";case"Q"[t(3105)](0):return"moveUp";case"E"[t(3105)](0):return"moveDown";case 38:this[t(M)](MoveType.TOP_ROTATE);break;case 37:this.rotateCamera(MoveType[t(377)]);break;case 39:this[t(2248)](MoveType.RIGHT_ROTATE);break;case 40:this[t(2248)](MoveType.BOTTOM_ROTATE);break;case"I"[t(E)](0):case 104:this[t(A)](MoveType[t(1534)]);break;case"K"[t(E)](0):case 101:this.moveCamera(MoveType.NARROW);break;case"J".charCodeAt(0):case 100:this.moveCamera(MoveType.LEFT_ROTATE);break;case"L".charCodeAt(0):case 102:this.moveCamera(MoveType.RIGHT_ROTATE);break;case"U".charCodeAt(0):case 103:this[t(4064)](MoveType[t(L)]);break;case"O".charCodeAt(0):case 105:this.moveCamera(MoveType.BOTTOM_ROTATE)}}},{key:"startMoveForward",value:function(){this.flags.moveForward=!0}},{key:"stopMoveForward",value:function(){this.flags.moveForward=!1}},{key:"startMoveBackward",value:function(){this.flags.moveBackward=!0}},{key:O(363),value:function(){this[O(366)].moveBackward=!1}},{key:"startMoveRight",value:function(){var e=O;this[e(366)][e(1808)]=!0}},{key:"stopMoveRight",value:function(){var e=O;this.flags[e(1808)]=!1}},{key:O(t),value:function(){var e=O;this.flags[e(946)]=!0}},{key:"stopMoveLeft",value:function(){var e=O;this.flags[e(946)]=!1}},{key:O(3543),value:function(e){var t=O,i=this._map.camera,a=i[t(P)],n=Cesium__namespace.Cartesian3.normalize(i.position,new Cesium__namespace.Cartesian3),s=Cesium__namespace.Cartesian3.cross(a,n,new Cesium__namespace.Cartesian3),a=Cesium__namespace.Cartesian3.cross(n,s,new Cesium__namespace.Cartesian3);a=Cesium__namespace.Cartesian3.normalize(a,a),a=Cesium__namespace.Cartesian3[t(w)](a,e,a),i[t(S)]=Cesium__namespace.Cartesian3.add(i.position,a,i[t(2532)])}},{key:O(i),value:function(e){var t,i,a=O;this.enabled&&(t=this._map.camera,i=this.moveStep,this.flags.moveForward&&this.moveForward(i),this[a(366)].moveBackward&&this[a(3543)](-i),this.flags[a(b)]&&t[a(b)](i),this.flags[a(3248)]&&t.positionCartographic.height-i>=this[a(k)]&&t[a(3248)](i),this.flags.moveLeft&&t.moveLeft(i),this.flags.moveRight)&&t.moveRight(i)}},{key:"_resetCamera",value:function(e){var t=O;e&&(this._map[t(a)][t(2018)].position=e.position,this[t(g)][t(C)][t(x)].direction=e[t(2070)],this._map.scene.camera.right=e.right,this._map[t(3118)].camera.up=e.up)}},{key:"_limitAngle",value:function(e,t,i){var a=O,e=Cesium__namespace[a(784)].dot(e,Cesium__namespace.Cartesian3[a(v)](t,new Cesium__namespace.Cartesian3));return!("up"===i&&e<this.minPitch||"down"===i&&e>this.maxPitch)}},{key:"_computedNewPos",value:function(e,t,i){var a=O,n=e[a(2532)],s=this._map[a(p)]();if(s){var r,o,l,s=s.toCartesian();if(s)return o=(r=Cesium__namespace.Cartesian3.distance(s,n))/100,o=i?o*this.rotateStep:o,l={},n=new Cesium__namespace.Ray(n,t),l.position=Cesium__namespace.Ray.getPoint(n,o),l.direction=e.direction,l[a(m)]=e.right,l.up=e.up,i&&(t=Cesium__namespace.Cartesian3.normalize(Cesium__namespace[a(d)].subtract(l.position,s,new Cesium__namespace.Cartesian3),new Cesium__namespace.Cartesian3),n=new Cesium__namespace.Ray(s,t),l[a(f)]=Cesium__namespace.Ray.getPoint(n,r),l.direction=Cesium__namespace.Cartesian3.negate(t,new Cesium__namespace.Cartesian3),l.up=Cesium__namespace[a(784)].normalize(l[a(y)],new Cesium__namespace.Cartesian3),l.right=Cesium__namespace[a(d)].cross(l.direction,l.up,new Cesium__namespace[a(784)])),l}}},{key:"moveCamera",value:function(e){var t,i=O,a=this._map.scene.camera;switch(e){case MoveType[i(n)]:t=this._computedNewPos(a,Cesium__namespace.Cartesian3[i(s)](a[i(2070)],new Cesium__namespace[i(r)]));break;case MoveType.LEFT_ROTATE:t=this._computedNewPos(a,Cesium__namespace.Cartesian3[i(3641)](a.right,new Cesium__namespace.Cartesian3),!0);break;case MoveType.RIGHT_ROTATE:t=this._computedNewPos(a,a[i(1859)],!0);break;case MoveType.TOP_ROTATE:if(!this[i(o)](Cesium__namespace.clone(a.up),Cesium__namespace[i(u)](a.position),"up"))return;t=this._computedNewPos(a,Cesium__namespace[i(u)](a.up),!0);break;case MoveType.BOTTOM_ROTATE:if(!this._limitAngle(Cesium__namespace.clone(a.up),Cesium__namespace[i(u)](a.position),"down"))return;t=this._computedNewPos(a,Cesium__namespace[i(784)].negate(a.up,new Cesium__namespace.Cartesian3),!0);break;default:MoveType[i(_)];t=this._computedNewPos(a,a.direction)}t&&this._resetCamera(t)}},{key:"rotateCamera",value:function(e){var t=O,i=[0,0],a=this[t(l)].scene[t(3252)].clientWidth,n=this[t(l)].scene.canvas[t(2823)],s=(a+n)/this[t(1712)];switch(e){case MoveType.LEFT_ROTATE:i=[-s*a/n,0];break;case MoveType.RIGHT_ROTATE:i=[s*a/n,0];break;case MoveType[t(c)]:i=[0,s];break;case MoveType[t(3107)]:i=[0,-s];break;default:return}var e=i[0]/a,r=i[1]/n,o=this._map.camera,e=(o.lookRight(.05*e),o.lookUp(.05*r),o[t(2070)]),r=Cesium__namespace.Cartesian3[t(h)](o.position,new Cesium__namespace.Cartesian3),t=Cesium__namespace.Cartesian3.cross(e,r,new Cesium__namespace.Cartesian3),r=Cesium__namespace.Cartesian3.cross(t,e,new Cesium__namespace.Cartesian3);o.up=r,o.right=t}}]),R}());function getDefaultContextMenu(n){var e=715,t=809,i=1907,a=1948,s=3616,r=1971,o=3112,l=349,c=1794,h=2364,u=2171,_=2423,p=1371,m=349,d=2002,f=349,y=573,v=3368,g=1495,C=4093,x=4045,b=2744,k=322,P=2744,w=1849,S=2067,T=4045,M=1652,E=3118,A=477,H=1081,F=3163,N=745,G=745,z=745,B=564,j=2613,V=2613,$=1081,U=2018,W=3159,J=2837,q=564,Y=1466,Z=424,X=424,Q=3407,K=3636,ee=3407,te=3491,ie=3407,ae=3497,ne=3024,se=3024,re=3024,oe=3024,le=672,L=3024,ce=3118,he=941,ue=1886,_e=2001,pe=2001,me=628,de=2001,fe=4008,ye=2001,ve=1268,D=2018,ge=1937,I=2001,Ce=2142,xe=3159,be=3800,ke=1147,Pe=1542,we=3118,Se=2722,Te=1661,Me=2722,Ee=3118,Ae=2557,Le=1764,De=3277,O=_0x1658de,R=n.contextmenu;return[{text:n.getLangText("_查看此处坐标"),icon:Icon.Coordinates,show:function(e){return Cesium__namespace[_0x236b(De)](e.cartesian)},callback:function(e){var t=_0x236b,i=LngLatPoint.fromCartesian(e.cartesian),a=proj4Trans([i.lng,i.lat],"EPSG:4326",CRS.CGCS2000_GK_Zone_3),a=(alert("\n "[t(2557)](n.getLangText("_经度"),":").concat(i.lng,", ").concat(n.getLangText("_纬度"),":").concat(i.lat,", ").concat(n.getLangText("_海拔"),":")[t(Ae)](i.alt,",\n ").concat(n.getLangText("_横坐标"),":")[t(2557)](a[0].toFixed(1),", ").concat(n.getLangText("_纵坐标"),":").concat(a[1].toFixed(1)," (CGCS2000)\n "),n[t(349)](t(Le))),formatNum$1(e.cartesian.x,1)),t=formatNum$1(e.cartesian.y,1),e=formatNum$1(e.cartesian.z,1);logInfo("经纬度:".concat(i.toString()," , 笛卡尔:").concat(a,",").concat(t,",").concat(e))}},{text:n.getLangText("_查看当前视角"),icon:Icon[O(934)],callback:function(e){var t=O,t=JSON.stringify(n[t(2856)]());logInfo(t),alert(t,n.getLangText("_当前视角信息"))}},{text:n.getLangText(O(1415)),icon:Icon.Camera,children:[{text:n.getLangText(O(e)),icon:Icon.UndergroundYes,show:function(e){return n[O(Ee)].screenSpaceCameraController.enableCollisionDetection},callback:function(e){var t=O;n.scene[t(Me)].enableCollisionDetection=!1}},{text:n.getLangText("_禁止进入地下"),icon:Icon.UndergroundNo,show:function(e){var t=O;return!n.scene[t(Se)][t(Te)]},callback:function(e){n[O(we)].screenSpaceCameraController.enableCollisionDetection=!0}},{text:n.getLangText(O(1981)),icon:Icon.RotatePointStart,show:function(e){var t=O;return e.cartesian&&(!R[t(ke)]||!(null!=(e=R[t(1147)])&&e[t(Pe)]))},callback:function(e){var t=O;R.rotatePoint||(R[t(1147)]=new RotatePoint,n[t(be)](R.rotatePoint)),R.rotatePoint.start(e.cartesian)}},{text:n.getLangText("_关闭环绕飞行"),icon:Icon.RotatePointStop,show:function(e){var t;return null==(t=R[O(1147)])?void 0:t.isStart},callback:function(e){R.rotatePoint&&R.rotatePoint.stop()}},{text:n.getLangText("_移动到此处"),icon:Icon.FlyToPoint,show:function(e){return Cesium__namespace.defined(e.cartesian)},callback:function(e){var t=O,i=.1*Cesium__namespace.Cartesian3[t(ge)](e[t(I)],n.camera[t(Ce)]);n[t(803)](e[t(I)],{radius:i,maximumHeight:n.camera.positionCartographic[t(xe)]})}},{text:n[O(349)]("_第一视角站到此处"),icon:Icon[O(1485)],show:function(e){return Cesium__namespace.defined(e.cartesian)},callback:function(e){var t=O;n[t(D)].flyTo({destination:addPositionsHeight(e.cartesian,10),orientation:{heading:n[t(D)].heading,pitch:0,roll:0},maximumHeight:n.camera.positionCartographic.height})}},{text:n.getLangText("_开启键盘漫游"),icon:Icon.KeyboardRoamYes,show:function(e){return!n.keyboardRoam.enabled},callback:function(e){var t=O;n.keyboardRoam[t(3463)]=!0}},{text:n.getLangText("_关闭键盘漫游"),icon:Icon.KeyboardRoamNo,show:function(e){return n[O(1268)].enabled},callback:function(e){n[O(ve)].enabled=!1}},{text:n.getLangText("_跟踪锁定"),icon:Icon[O(2367)],show:function(e){var t=O,e=e.graphic;return!!e&&(e.entity instanceof Cesium__namespace[t(2519)]||e.trackedEntity instanceof Cesium__namespace.Entity)},callback:function(e){n.trackedEntity=e.graphic}},{text:n[O(349)]("_取消锁定"),icon:Icon.TrackedEntityNo,show:function(e){return void 0!==n.trackedEntity},callback:function(e){n.trackedEntity=void 0}}]},{text:n.getLangText("_三维模型"),icon:Icon.Tileset,show:function(e){var t=O,e=n.pick3DTileset(e[t(ye)]);return Cesium__namespace.defined(e)},children:[{text:n[O(349)](O(t)),icon:Icon[O(i)],show:function(e){e=n.pick3DTileset(e.cartesian);return!e.debugWireframe&&e._enableDebugWireframe},callback:function(e){n.pick3DTileset(e.cartesian).debugWireframe=!0}},{text:n.getLangText("_关闭三角网"),icon:Icon.TilesetWireframeNo,show:function(e){var t=O,e=n.pick3DTileset(e[t(de)]);return e.debugWireframe&&e[t(fe)]},callback:function(e){var t=O;n.pick3DTileset(e[t(pe)])[t(me)]=!1}},{text:n.getLangText(O(1244)),icon:Icon.TilesetBoundingVolumeYes,show:function(e){return!n.pick3DTileset(e.cartesian).debugShowBoundingVolume},callback:function(e){var t=O;n.pick3DTileset(e[t(2001)]).debugShowBoundingVolume=!0}},{text:n.getLangText(O(a)),icon:Icon.TilesetBoundingVolumeNo,show:function(e){var t=O;return n.pick3DTileset(e.cartesian)[t(415)]},callback:function(e){n[O(2205)](e.cartesian).debugShowBoundingVolume=!1}}]},{text:n.getLangText(O(1995)),icon:Icon.Terrain,show:function(e){var t=O;return Cesium__namespace.defined(e[t(_e)])},children:[{text:n.getLangText(O(s)),icon:Icon[O(r)],show:function(e){return!n.hasTerrain},callback:function(e){n.hasTerrain=!0}},{text:n.getLangText("_关闭地形"),icon:Icon.TerrainNo,show:function(e){return n[O(ue)]},callback:function(e){n.hasTerrain=!1}},{text:n[O(349)]("_显示三角网"),icon:Icon.TerrainWireframeYes,show:function(e){var t=O;return!n.scene.globe._surface.tileProvider[t(507)].wireframe},callback:function(e){var t=O;n.scene[t(he)]._surface.tileProvider._debug[t(3212)]=!0}},{text:n.getLangText("_关闭三角网"),icon:Icon[O(o)],show:function(e){return n[O(ce)].globe._surface.tileProvider._debug.wireframe},callback:function(e){n.scene.globe._surface.tileProvider._debug.wireframe=!1}}]},{text:n.getLangText(O(685)),icon:Icon[O(3334)],children:[{text:n.getLangText("_距离"),icon:Icon.MeasureDistance,callback:function(e){var t=O;R[t(L)]||(R[t(3024)]=new Measure,n.addThing(R[t(L)])),R.measure[t(1937)]()}},{text:n[O(l)]("_面积"),icon:Icon.MeasureArea,callback:function(e){var t=O;R[t(3024)]||(R[t(re)]=new Measure,n[t(3800)](R[t(oe)])),R.measure[t(le)]()}},{text:n.getLangText(O(c)),icon:Icon.MeasureHeight,callback:function(e){var t=O;R.measure||(R.measure=new Measure,n.addThing(R.measure)),R[t(se)].heightTriangle()}},{text:n[O(349)](O(1855)),icon:Icon[O(2113)],callback:function(e){var t=O;R.measure||(R.measure=new Measure,n.addThing(R[t(ne)])),R.measure.angle()}},{text:n.getLangText(O(3354)),icon:Icon.Delete,show:function(e){var t=O;return R.measure&&R[t(3024)].hasMeasure},callback:function(e){var t=O;R.measure&&R.measure[t(1404)]()}}]},{text:n.getLangText("_图上标记"),icon:Icon[O(3738)],children:[{text:n.getLangText("_标记点"),icon:Icon.DrawPoint,callback:function(e){var i=O;n[i(ie)].startDraw({type:"point",style:{pixelSize:12,color:"#3388ff"},success:function(e){var t=i;console[t(3491)](JSON[t(3755)](e[t(ae)]))}})}},{text:n.getLangText("_标记线"),icon:Icon.DrawPolyline,callback:function(e){var i=O;n.graphicLayer[i(3636)]({type:"polyline",style:{color:"#55ff33",width:3},success:function(e){var t=i;console[t(te)](JSON[t(3755)](e.coordinates))}})}},{text:n.getLangText("_标记面"),icon:Icon.DrawPolygon,callback:function(e){var i=O;n[i(ee)].startDraw({type:"polygon",style:{color:"#29cf34",opacity:.5,outline:!0,outlineWidth:2},success:function(e){var t=i;console.log(JSON.stringify(e[t(3497)]))}})}},{text:n[O(349)]("_标记圆"),icon:Icon.DrawCircle,callback:function(e){n.graphicLayer.startDraw({type:"circle",style:{color:"#ffff00",opacity:.6},success:function(e){console.log(JSON.stringify(e.coordinates))}})}},{text:n.getLangText(O(3901)),icon:Icon.DrawRectangle,callback:function(e){var i=3491,a=O;n[a(Q)][a(K)]({type:"rectangle",style:{color:a(3611),opacity:.6},success:function(e){var t=a;console[t(i)](JSON.stringify(e[t(3497)]))}})}},{text:n.getLangText("_允许编辑"),icon:Icon[O(h)],show:function(e){return!n.graphicLayer.hasEdit},callback:function(e){n[O(3407)].hasEdit=!0}},{text:n.getLangText("_禁止编辑"),icon:Icon.DrawEditNo,show:function(e){return n.graphicLayer.hasEdit},callback:function(e){n.graphicLayer.hasEdit=!1}},{text:n[O(l)](O(1015)),icon:Icon.DrawDownJson,show:function(e){var t=O;return 0<n[t(3407)][t(2822)]},callback:function(e){var t=O;downloadFile(t(1131),JSON[t(3755)](n.graphicLayer.toGeoJSON()))}},{text:n.getLangText("_清除所有标记"),icon:Icon.Delete,show:function(e){return 0<n.graphicLayer.length},callback:function(e){n.graphicLayer.clear()}}]},{text:n.getLangText(O(494)),icon:Icon.Effect,children:[{text:n.getLangText("_开启下雨"),icon:Icon[O(u)],show:function(e){return!R.rainEffect},callback:function(e){var t=O;R[t(424)]||(R.rainEffect=new RainEffect,n[t(1081)](R[t(X)]))}},{text:n.getLangText("_关闭下雨"),icon:Icon.RainEffectNo,show:function(e){return R.rainEffect},callback:function(e){R[O(Z)]&&(n.removeEffect(R.rainEffect,!0),delete R.rainEffect)}},{text:n[O(l)]("_开启下雪"),icon:Icon.SnowEffectYes,show:function(e){return!R.snowEffect},callback:function(e){var t=O;R.snowEffect||(R[t(Y)]=new SnowEffect,n.addEffect(R.snowEffect))}},{text:n.getLangText(O(_)),icon:Icon.SnowEffectNo,show:function(e){return R[O(1466)]},callback:function(e){var t=O;R.snowEffect&&(n[t(q)](R.snowEffect,!0),delete R.snowEffect)}},{text:n.getLangText("_开启雾天气"),icon:Icon[O(1282)],show:function(e){return!R.fogEffect},callback:function(e){var t,i=O;R.fogEffect||(t=2*n[i(U)].positionCartographic[i(W)],R.fogEffect=new FogEffect({fogByDistance:new Cesium__namespace.Cartesian4(.1*t,.1,t,.8)}),n.addEffect(R[i(J)]))}},{text:n.getLangText(O(768)),icon:Icon[O(435)],show:function(e){return R.fogEffect},callback:function(e){R[O(2837)]&&(n.removeEffect(R.fogEffect,!0),delete R.fogEffect)}},{text:n.getLangText(O(1112)),icon:Icon.BloomEffectYes,show:function(e){return!R.bloomEffect},callback:function(e){var t=O;R[t(V)]||(R.bloomEffect=new BloomEffect,n[t($)](R.bloomEffect))}},{text:n[O(349)](O(4065)),icon:Icon.BloomEffectNo,show:function(e){return R.bloomEffect},callback:function(e){var t=O;R.bloomEffect&&(n[t(B)](R[t(2613)],!0),delete R[t(j)])}},{text:n.getLangText("_开启亮度"),icon:Icon[O(p)],show:function(e){return!R.brightnessEffect},callback:function(e){R[O(z)]||(R.brightnessEffect=new BrightnessEffect,n.addEffect(R.brightnessEffect))}},{text:n[O(349)]("_关闭亮度"),icon:Icon.BrightnessEffectNo,show:function(e){return R.brightnessEffect},callback:function(e){var t=O;R.brightnessEffect&&(n.removeEffect(R[t(N)],!0),delete R[t(G)])}},{text:n.getLangText("_开启夜视"),icon:Icon.NightVisionEffectYes,show:function(e){return!R[O(F)]},callback:function(e){R.nightVisionEffect||(R.nightVisionEffect=new NightVisionEffect,n.addEffect(R.nightVisionEffect))}},{text:n[O(m)]("_关闭夜视"),icon:Icon.NightVisionEffectNo,show:function(e){return R.nightVisionEffect},callback:function(e){R.nightVisionEffect&&(n.removeEffect(R.nightVisionEffect,!0),delete R.nightVisionEffect)}},{text:n[O(m)]("_开启黑白"),icon:Icon[O(3772)],show:function(e){return!R.blackAndWhiteEffect},callback:function(e){var t=O;R.blackAndWhiteEffect||(R.blackAndWhiteEffect=new BlackAndWhiteEffect,n[t(H)](R.blackAndWhiteEffect))}},{text:n.getLangText("_关闭黑白"),icon:Icon[O(2061)],show:function(e){return R.blackAndWhiteEffect},callback:function(e){var t=O;R.blackAndWhiteEffect&&(n.removeEffect(R[t(2189)],!0),delete R.blackAndWhiteEffect)}},{text:n[O(l)]("_开启拾取高亮"),icon:Icon[O(d)],show:function(e){return!R.outlineEffect},callback:function(e){R[O(3510)]||(R.outlineEffect=new OutlineEffect,n.addEffect(R.outlineEffect))}},{text:n[O(f)](O(3184)),icon:Icon.OutlineEffectNo,show:function(e){return R.outlineEffect},callback:function(e){var t=O;R.outlineEffect&&(n.removeEffect(R.outlineEffect,!0),delete R[t(3510)])}}]},{text:n[O(l)]("_场景设置"),icon:Icon.Scene,children:[{text:n.getLangText("_开启深度监测"),icon:Icon.DepthTestYes,show:function(e){var t=O;return!n.scene.globe[t(A)]},callback:function(e){n.scene.globe.depthTestAgainstTerrain=!0}},{text:n.getLangText(O(3702)),icon:Icon.DepthTestNo,show:function(e){return n.scene.globe.depthTestAgainstTerrain},callback:function(e){n.scene.globe.depthTestAgainstTerrain=!1}},{text:n.getLangText("_显示星空背景"),icon:Icon.SkyBoxYes,show:function(e){return!n[O(E)].skyBox.show},callback:function(e){var t=O;n.scene.skyBox.show=!0,n[t(3118)].moon.show=!0,n.scene[t(2281)][t(4045)]=!0}},{text:n[O(f)]("_关闭星空背景"),icon:Icon[O(y)],show:function(e){var t=O;return n.scene[t(M)].show},callback:function(e){var t=O;n.scene.skyBox.show=!1,n.scene[t(779)].show=!1,n.scene.sun[t(T)]=!1}},{text:n.getLangText(O(v)),icon:Icon.ShadowYes,show:function(e){return!n[O(2067)].shadows},callback:function(e){var t=O;n[t(2067)].shadows=!0,n.viewer.terrainShadows=Cesium__namespace.ShadowMode.ENABLED,n.scene[t(941)].enableLighting=!0}},{text:n.getLangText(O(g)),icon:Icon.ShadowNo,show:function(e){return n[O(S)].shadows},callback:function(e){var t=O;n.viewer.shadows=!1,n.viewer[t(555)]=Cesium__namespace.ShadowMode.RECEIVE_ONLY,n.scene[t(941)][t(w)]=!1}},{text:n[O(l)](O(C)),icon:Icon.SkyAtmosphereYes,show:function(e){return!n.scene.skyAtmosphere.show},callback:function(e){var t=O;n.scene.skyAtmosphere[t(4045)]=!0,n.scene.globe[t(P)]=!0}},{text:n.getLangText("_关闭大气渲染"),icon:Icon[O(1608)],show:function(e){var t=O;return n.scene[t(k)].show},callback:function(e){var t=O;n.scene.skyAtmosphere[t(x)]=!1,n[t(3118)].globe[t(b)]=!1}},{text:n.getLangText("_场景出图"),icon:Icon.ExpImage,callback:function(e){n.expImage()}}]}]}function toChineseBeforeCreate(e){var c=1538,h=887,u=2559,_=_0x1658de;Cesium__namespace[_(3745)].defaultDateFormatter=function(e,t){return formatDate(Cesium__namespace[_(984)].toDate(e),"yyyy-MM-dd")},Cesium__namespace.AnimationViewModel.defaultTimeFormatter=function(e,t){var i=_;return formatDate(Cesium__namespace.JulianDate[i(1538)](e),i(1516))},Cesium__namespace[_(1004)].prototype.makeLabel=function(e){var t=_,i=Cesium__namespace[t(984)][t(c)](this[t(h)]),a=Cesium__namespace.JulianDate.toDate(this._endJulian),n=a.getFullYear()-i.getFullYear(),s=a[t(u)]()-i.getMonth(),r=a.getDate()-i.getDate(),o=a.getHours()-i.getHours(),l=a.getMinutes()-i.getMinutes(),a=a.getSeconds()-i.getSeconds(),i=Cesium__namespace.JulianDate.toDate(e);return formatDate(i,0==n?0==s&&r<10?0==r?0==o&&0==l&&a<10?0==a?"S":"HH:mm:ss S":"HH:mm:ss":"MM月dd日 HH:mm":t(1252):"yyyy-MM-dd")}}function toChineseCreateEnd(e,t){var a=2010,n=_0x1658de,s=t.container;t[n(3118)][n(1129)].addEventListener(function(e,t){var i={"An error occurred while rendering. Rendering has stopped.":n(a),"Error constructing CesiumWidget.":"构造CesiumWidget时出错"};_updateDomInnerHtml(s,i,"cesium-widget-errorPanel-header")})}function _updateDomInnerHtml(e,t,i){for(var a=e.getElementsByClassName(i),n=0;n<a.length;n++)t[a[n].innerHTML]&&(a[n].innerHTML=t[a[n].innerHTML])}register$1("keyboardRoam",KeyboardRoam),KeyboardRoam.MoveType=MoveType;var DefaultOptions={animation:!1,timeline:!1,fullscreenButton:!1,vrButton:!1,geocoder:!1,sceneModePicker:!1,homeButton:!1,navigationHelpButton:!1,navigationInstructionsInitiallyVisible:!1,infoBox:!1,selectionIndicator:!1,shouldAnimate:!0,showRenderLoopErrors:!0,baseLayerPicker:!1,requestRenderMode:!1},Map=function(){var e=1203,t=938,i=2568,a=646,n=1461,s=1999,r=2303,o=3619,l=2917,c=4030,h=1313,u=1030,_=1081,p=1267,m=1695,d=996,f=2769,y=1362,v=737,g=803,C=727,x=2919,b=852,k=4007,P=4074,H=3536,F=1815,N=3536,G=463,z=1857,B=1803,j=3510,V=1081,$=3510,U=1040,W=1494,J=784,q=3119,Y=2018,Z=654,X=2734,Q=1447,K=2535,ee=2131,te=784,ie=3119,ae=402,ne=3118,se=2535,re=1447,oe=2309,le=2822,ce=406,he=2822,ue=3036,_e=2019,pe=2309,me=2099,de=550,fe=3154,ye=2822,ve=1937,ge=3966,Ce=2018,xe=2505,be=3461,ke=358,Pe=2018,we=3594,Se=4110,Te=3461,Me=3118,Ee=2505,Ae=3118,w=2722,Le=1887,De=3461,Ie=3118,Oe=1887,Re=3966,He=1125,Fe=1355,Ne=2041,Ge=733,S=562,ze=2722,Be=733,je=1153,Ve=2722,$e=825,Ue=825,We=825,Je=1379,qe=538,Ye=1997,Ze=1135,Xe=1404,Qe=721,Ke=1222,et=3800,tt=1592,it=1651,at=1081,nt=910,st=1553,rt=721,ot=983,lt=1488,ct=1455,ht=3463,ut=3536,_t=1599,pt=4074,mt=1706,dt=2432,ft=3576,yt=927,vt=2432,gt=1018,Ct=3576,xt=895,bt=896,kt=1135,Pt=3576,wt=3726,St=4071,T=1404,Tt=910,Mt=895,Et=721,At=2589,M=2822,Lt=1592,Dt=2196,It=1592,Ot=2437,E=2822,Rt=640,Ht=1592,Ft=3688,Nt=1313,Gt=2589,A=2196,zt=1592,Bt=404,jt=2822,Vt=2705,$t=895,Ut=1018,Wt=2437,Jt=1018,qt=1567,Yt=3118,Zt=1203,Xt=2492,Qt=3966,Kt=3118,ei=384,ti=2437,ii=2437,ai=2206,ni=1592,si=2165,ri=3188,oi=3530,li=908,ci=2119,hi=2081,ui=1592,_i=3802,pi=1997,mi=3122,di=941,fi=3254,yi=1702,vi=1702,gi=2447,Ci=1138,xi=3113,L=346,bi=2722,ki=2722,Pi=3862,wi=1044,D=1266,Si=1984,Ti=3536,Mi=938,Ei=3966,Ai=640,Li=3966,Di=3195,Ii=2196,Oi=2822,Ri=3192,Hi=1344,Fi=3530,Ni=3188,Gi=350,zi=2519,I=1683,Bi=417,ji=3966,Vi=1585,$i=3966,Ui=3966,Wi=3118,Ji=3966,qi=2822,Yi=2392,Zi=2392,Xi=372,Qi=2919,Ki=895,ea=2119,ta=372,ia=2081,aa=2406,na=1592,sa=1592,O=_0x1658de,ra=(_inherits(R,BaseClass),_createSuper(R));function R(e){var t,i,a=_0x236b,n=1<arguments[a(qi)]&&void 0!==arguments[1]?arguments[1]:{};return _classCallCheck(this,R),((i=ra.call(this,n)).options=n)[a(Yi)]&&updateAll(n[a(Zi)]),n[a(Xi)]=null!=(t=n.lang)?t:LangType.ZH,n[a(372)]!==LangType.ZH&&n[a(372)]!==LangType.ZHHK||toChineseBeforeCreate(),initBeforeCreateDefaultValue(n),e instanceof Cesium__namespace.Viewer?i[a(3966)]=e:i._viewer=i._createViewer(e,n),i._isFlyAnimation=!1,i._highlightEnabled=!0,i[a(Qi)]=new MarsArray,i._thingList=new MarsArray,i._layerList=new MarsArray,i[a(Ki)]=new MarsArray,i._optionsLayersList=new MarsArray,i[a(894)]=new MarsArray,i._visibilitys=new MarsArray,i._controls={},i._effects={},i.chinaCRS=i.options[a(ea)]||ChinaCRS.WGS84,n[a(372)]!==LangType.ZH&&n[a(ta)]!==LangType[a(ia)]||toChineseCreateEnd(n,i._viewer),i[a(aa)]=new SceneEvent(_assertThisInitialized(i)),i[a(852)]=new MouseEvent(_assertThisInitialized(i),n.mouse),i[a(849)]=new SceneOption(_assertThisInitialized(i)),i._zoomNavigation=new ZoomNavigation(i._viewer),i._initLayers(),i._initControls(),i._initEffect(),i._sceneOption.setOptions(i[a(na)].scene,i[a(sa)].scene),i}return _createClass(R,[{key:"viewer",get:function(){return this[_0x236b(Ji)]}},{key:O(e),get:function(){return this[O(3966)].container}},{key:"toolbar",get:function(){return this._viewer._toolbar}},{key:"canvas",get:function(){var e,t=O;return null==(e=this._viewer)?void 0:e[t(Wi)].canvas}},{key:O(3118),get:function(){var e;return null==(e=this._viewer)?void 0:e.scene}},{key:"camera",get:function(){return this[O(3966)].camera}},{key:"imageryLayers",get:function(){return this._viewer.imageryLayers}},{key:"dataSources",get:function(){return this[O(Ui)].dataSources}},{key:"entities",get:function(){return this._viewer.entities}},{key:"clock",get:function(){return this._viewer.clock}},{key:"currentTime",get:function(){return this._viewer.clock.currentTime},set:function(e){this[O($i)].clock.currentTime=e}},{key:"cesiumWidget",get:function(){var e=O;return this._viewer[e(Vi)]}},{key:"trackedEntity",get:function(){return this._viewer.trackedEntity},set:function(e){var t=O;e?e instanceof Cesium__namespace.Entity?this._viewer.trackedEntity=e:e.entity instanceof Cesium__namespace[t(zi)]?this._viewer[t(I)]=e.entity:e.czmObject instanceof Cesium__namespace.Entity?this._viewer[t(I)]=e[t(Bi)]:e.trackedEntity instanceof Cesium__namespace.Entity&&(this._viewer.trackedEntity=e.trackedEntity):this[t(ji)].trackedEntity=void 0}},{key:O(3188),get:function(){return this._viewer.terrainProvider},set:function(e){var t=O,i=this;e&&(e._marsOptions=e._marsOptions||{},e._marsOptions.onLoadSuccess=function(e){i[_0x236b(3802)](e)},e._marsOptions.onLoadError=function(e){i._terrain_onLoadError(e)}),this._viewer[t(Ni)]=e,(this._defaultTerrainProvider=e)instanceof Cesium__namespace.EllipsoidTerrainProvider&&this.fire(EventType[t(Gi)])}},{key:"hasTerrain",get:function(){return Boolean(this[O(3966)].terrainProvider._layers)},set:function(e){var t=O;e?(null==this._defaultTerrainProvider&&(this[t(Hi)]=createTerrainProvider(this[t(Fi)]())),this._viewer.terrainProvider=this._defaultTerrainProvider):(this._viewer.terrainProvider=getNoTerrainProvider(),this.fire(EventType.terrainLoadSuccess))}},{key:"basemap",get:function(){var e=O,t=this._optionsBasemapsList.values;if(0===t[e(Oi)])return this._viewer.baseLayerPicker?this[e(3966)].baseLayerPicker[e(Ri)].selectedImagery:void 0;for(var i=0;i<t.length;i++){var a=t[i];if(!a.hasEmptyGroup&&a.isAdded)return a}},set:function(e){var n,s={_0x2e6c2c:640},r=O,o=this,l=e&&isObject(e)?(n=e.id,e[r(Ai)]):n=e,c=this._optionsBasemapsList.values;if(0===c[r(2822)]){if(this._viewer.baseLayerPicker){var t,i=this[r(Li)].baseLayerPicker.viewModel;if(e){for(var a,h=-1,u=0;u<this.options.basemaps.length;u++){var _=this.options[r(Di)][u];if(("group"!==_.type||null!=_[r(Ii)])&&(h++,l==_.name||n==_.id)){a=h;break}}Cesium__namespace.defined(a)&&(t=i[r(346)][a])}i.selectedImagery=t}}else for(var p=0;p<c.length;p++)(function(e){var t=3630,i=r,a=c[e];if(a.hasEmptyGroup)return;l==a[i(s._0x2e6c2c)]||n==a.id?a.isAdded||(a[i(1592)].show=!0,o.addLayer(a).then(function(){var e=i;a.toBottom&&a[e(t)]()})):a[i(2514)]&&(delete a[i(1592)].show,o.removeLayer(a))})(p)}},{key:"onlyPickModelPosition",get:function(){var e;return null==(e=this[O(Ei)])?void 0:e.scene.onlyPickModelPosition},set:function(e){this._viewer.scene.onlyPickModelPosition=e}},{key:O(t),get:function(){var e,t=O;return null==(e=this._viewer)?void 0:e.scene[t(Mi)]},set:function(e){this._viewer.scene.onlyPickTerrainPosition=e}},{key:"tilesetMaxTotalMemory",get:function(){return this._tilesetMaxTotalMemory},set:function(e){this._tilesetMaxTotalMemory=e}},{key:"mouseEvent",get:function(){return this._mouseEvent}},{key:"popup",get:function(){return this._popupMgr}},{key:O(i),get:function(){return this._tooltipMgr}},{key:O(a),get:function(){return this._smallTooltip}},{key:"contextmenu",get:function(){return this[O(Ti)]}},{key:"keyboardRoam",get:function(){return this._keyboardRoam}},{key:O(908),get:function(){return this[O(Si)]}},{key:"effects",get:function(){return this[O(1222)]}},{key:"graphicLayer",get:function(){var e=O;return null==this[e(D)]&&(this[e(D)]=new GraphicLayer({name:"默认数据图层",private:!0}),this[e(1313)](this._graphicLayer)),this._graphicLayer}},{key:O(n),get:function(){var e=O,e=Math.abs(this[e(3966)].camera.positionCartographic.height);return e!==this._prevCameraHeight&&(this._level=heightToZoom(e),this._prevCameraHeight=e),this._level}},{key:O(1552),get:function(){return this._fixedLight},set:function(e){var t=O;this._fixedLight=e,this[t(wi)]||(this._sunlight=this.scene.light),e?(e=new Cesium__namespace[t(3561)]({direction:new Cesium__namespace.Cartesian3(.35492591601301104,-.8909182691839401,-.2833588392420772)}),this.scene.light=e):this[t(3118)].light=this._sunlight}},{key:"lang",get:function(){var e=O;return this.options[e(372)]||LangType.ZH},set:function(e){var t=O;this.options[t(372)]=e}},{key:"zoomFactor",get:function(){var e=O;return this.scene[e(ki)][e(Pi)]},set:function(e){var t=O;this.scene[t(bi)]._zoomFactor=e}},{key:"highlightEnabled",get:function(){return this._highlightEnabled},set:function(e){(this._highlightEnabled=e)||this.closeHighlight()}},{key:O(3337),value:function(e,t){var i=O;if(!e)throw new Error("Map:id 不能为空");var a,n=_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},DefaultOptions),t[i(mi)]||{}),t.scene||{}),{},{baseLayerPicker:!1,timeline:!1}),s=(!n[i(di)]||n[i(941)]instanceof Cesium__namespace[i(3805)]||delete n.globe,n.cameraController&&delete n.cameraController,n[i(3043)]&&delete n.contextmenu,n[i(fi)]&&delete n.location,n[i(yi)]&&delete n[i(vi)],n[i(gi)]&&delete n.navigation,Cesium__namespace.defined(n[i(Ci)])&&(n.mapProjection===CRS.EPSG3857?n.mapProjection=new Cesium__namespace[i(3071)](n.ellipsoid):n.mapProjection=new Cesium__namespace.GeographicProjection(n[i(xi)])),Cesium__namespace.defined(n.ellipsoid)&&(n.globe=new Cesium__namespace[i(3805)](n.ellipsoid)),n.geocoder===i(2516)&&t.lang===LangType.ZH&&(n.geocoder=new GaodePOIGeocoder(n[i(2861)]),n.geocoder[i(2412)]=this),!1),t=(n[i(3943)]?(!n[i(L)]&&0<(null==(a=t.basemaps)?void 0:a[i(2822)])&&(a=getImageryProviderViewModels(t.basemaps,this.options.templateValues),n.imageryProviderViewModels=a.imageryProviderViewModels,-1===a.selectedIndex?s=!0:n.selectedImageryProviderViewModel=a[i(L)][a.selectedIndex]),n.terrainProviderViewModels||(n[i(1700)]=getTerrainProviderViewModels(this._getTerrainOptions()),n.selectedTerrainProviderViewModel=n.terrainProviderViewModels[null!=(a=t.terrain)&&a.show?1:0])):(null==n[i(3569)]&&(s=!0,n.imageryProvider=new Cesium__namespace.TileMapServiceImageryProvider({url:Cesium__namespace.buildModuleUrl("Assets/Textures/NaturalEarthII")})),t.terrain&&t.terrain.show?(a=createTerrainProvider(this[i(3530)]()),n[i(3188)]=a,this._defaultTerrainProvider=a):n.terrainProvider=getNoTerrainProvider()),new Cesium__namespace[i(2550)](e,n));if(s)for(var r=t.imageryLayers,o=r.length,l=0;l<o;l++){var c=r.get(0);r.remove(c,!0)}return t}},{key:"_terrain_onLoadSuccess",value:function(e){this[O(pi)](EventType.terrainLoadSuccess,{data:e})}},{key:O(962),value:function(e){this.hasTerrain=!1,this.fire(EventType.terrainLoadError,{error:e})}},{key:"_getTerrainOptions",value:function(){var t=O,i=this;return this.options.terrain&&_objectSpread2({templateValues:this.options[t(3688)],marsOptions:{onLoadSuccess:function(e){i[t(_i)](e)},onLoadError:function(e){i._terrain_onLoadError(e)}}},this.options[t(2165)])}},{key:"setOptions",value:function(e){var t=O;if(e&&0!==Object.keys(e).length)for(var i in this.options=merge(this.options,e),e){var a=e[i];switch(i){case"scene":this[t(849)].setOptions(this.options.scene,a);break;case"mouse":this._mouseEvent[t(3533)](this.options.mouse);break;case t(si):this[t(ri)]=createTerrainProvider(this[t(oi)]()),this[t(908)].baseLayerPicker&&this[t(li)].baseLayerPicker.reload();break;case"basemaps":this.setBasemapsOptions(a);break;case t(2196):this.setLayersOptions(a);break;case t(2119):this[t(ci)]=a||ChinaCRS.WGS84;break;case"lang":a!==LangType.ZH&&a!==LangType[t(hi)]||toChineseBeforeCreate(this.options);break;case"token":updateAll(a);break;case"control":for(var n in a){var s=this[t(1592)][t(3122)][n],r=this._controls[n];r?s&&!1!==(null==s?void 0:s.enabled)?(r.show=!0,r.enabled=!0,r.setOptions&&!0!==s&&r.setOptions(s)):(r.show=!1,r[t(3463)]=!1):s&&!1!==s[t(3463)]&&((r=create$1(n,s))?this.addControl(r):logWarn("createControl:无该类型控件暂不能创建",n,s))}break;case"effect":for(var o in a){var l=this[t(ui)].effect[o],c=this._effects[o];c?l&&!1!==(null==l?void 0:l.enabled)?(c.enabled=!0,c.setOptions&&c.setOptions(l)):c.enabled=!1:l&&!1!==l.enabled&&(c=create(o,l))&&this.addEffect(c)}break;default:logWarn("未处理参数",a)}}return this}},{key:"setSceneOptions",value:function(e){var t=O;return e&&0!==Object[t(ai)](e)[t(2822)]&&(this.options.scene=merge(this[t(1592)][t(3118)],e),this._sceneOption.setOptions(this[t(ni)].scene,e)),this}},{key:O(s),value:function(){var e=O;return clone(this.options,[e(ii),"eventParent"])}},{key:"getCurrentOptions",value:function(){for(var e=O,t=this.getOptions(),i=(t[e(Kt)].center=this[e(2856)](),t[e(2196)]=[],this[e(2096)]({basemaps:!1})),a=i.length-1;0<=a;a--){var n=i[a];n[e(ei)]||n[e(ti)]||t.layers.push(n.toJSON())}return t}},{key:"getDefaultContextMenu",value:function(){return getDefaultContextMenu(this)}},{key:"getCenter",value:function(){return getCenter(this.scene)}},{key:"getCameraDistance",value:function(){var e=O,t=this.getCenter();return t?Cesium__namespace[e(784)][e(1937)](t[e(3600)](),this._viewer.camera.positionWC):0}},{key:O(r),value:function(e){return getExtent(this,e)}},{key:O(o),value:function(e){var t,i=O;return null!=(t=this.options.scene)&&null!=(t=t.globe)&&t.realAlt&&(t=this._viewer.scene.globe.terrainExaggeration||this._viewer[i(3118)].terrainExaggeration)?e/t:e}},{key:"expImage",value:function(e){return expImage(this[O(Qt)],e)}},{key:"setCursor",value:function(){var e=O,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";this._default_cursor=t,this.container[e(Xt)].cursor=t}},{key:O(l),value:function(e){this[O(Zt)]&&(this.container.style.cursor=e?"crosshair":this._default_cursor||"")}},{key:O(2205),value:function(e){return pick3DTileset(this[O(3118)],e)}},{key:O(2069),value:function(e){var t=O,e=pick3DTileset(this[t(Yt)],e);return e?this.getLayerById(e[t(811)]):null}},{key:"on",value:function(e,t,i){return this._sceneEvent.on(e,t,i||this)||_get(_getPrototypeOf(R.prototype),"on",this).call(this,e,t,i),this}},{key:O(c),value:function(e,t,i){return this._sceneEvent.off(e,t,i||this)||_get(_getPrototypeOf(R.prototype),"off",this).call(this,e,t,i),this}},{key:O(681),value:function(e,t){var i=O;return this._sceneEvent.hasType(e)?this[i(2406)].listens(e):_get(_getPrototypeOf(R.prototype),"listens",this)[i(qt)](this,e,t)}},{key:"_initLayers",value:function(){for(var e=O,t=this,i=(this.options.basemaps=this[e(1592)][e(3195)]||[],this.options[e(A)]=this[e(zt)].layers||[],this._layerIdx=1,this[e(Bt)]=[],this.options.basemaps),a=this.options[e(A)],n=0;n<i[e(2822)];n++){var s=i[n];s.id&&(-1!==this._arrLayerIdx.indexOf(s.id)&&(delete s.id,logWarn("addLayer:图层id存在冲突,已重新赋值id",s)),this._arrLayerIdx.push(s.id))}for(var r=0;r<a[e(jt)];r++){var o=a[r];o.id&&(-1!==this._arrLayerIdx.indexOf(o.id)&&(delete o.id,logWarn("addLayer:图层id存在冲突,已重新赋值id",o)),this._arrLayerIdx[e(1018)](o.id))}var l=[],c=[];if(!this._viewer.baseLayerPicker)for(var h=0;h<i.length;h++){var u,_=i[h],p=(_.name||(_[e(640)]=""),_.id||(_.id=this[e(3355)]()),create$2(_,this.options.templateValues));if(p)if(p[e(Vt)]=!0,_.show?(u=this.addLayer(p),c[e(1018)](u)):delete _.show,this[e($t)].set(_.id,p),l[e(Ut)](_),p[e(2556)]&&_.layers)for(var m=0;m<_[e(2196)].length;m++){var d=_[e(2196)][m];d.pid=_.id,d[e(Wt)]=p,d.id||(d.id=this.getNextLayerId()),l.push(d)}}for(var f=0;f<a.length;f++){var y,v=a[f],g=(v.id||(v.id=this.getNextLayerId()),create$2(v,this.options.templateValues));if(g)if(g._hasMapInit=!0,v.show?(y=this.addLayer(g),c[e(1018)](y)):delete v.show,this._optionsLayersList.set(v.id,g),l.push(v),g.hasChildLayer&&v[e(A)])for(var C=0;C<v.layers.length;C++){var x=v.layers[C];x.pid=v.id,x.parent=g,x.id||(x.id=this.getNextLayerId()),l[e(Jt)](x)}}for(var b=0;b<l.length;b++){var k=l[b],P=Number(k.zIndex),k=(isNaN(P)&&(P=b),k.zIndex=P,this[e(3576)].get(k.id));k&&(k.zIndex=P)}c.push(new Promise(function(i,e){t.on(EventType.tileLoadProgress,function e(t){0===t&&(this.off(EventType.tileLoadProgress,e),i(!0))})})),c.push(this.terrainProvider[e(621)]),Promise.all(c).then(function(e){t.fire(EventType.load,{list:e})})}},{key:"setBasemapsOptions",value:function(e){var t=O,i=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(e&&0!==e[t(E)]){if(this.options.basemaps=e,i){this._optionsBasemapsList[t(2432)](function(e){e.destroy()}),this._optionsBasemapsList.removeAll();for(var a=0;a<e[t(E)];a++){var n=e[a],s=(n[t(Rt)]||(n.name=""),n.id||(n.id=this.getNextLayerId()),Number(n.zIndex)),r=(isNaN(s)&&(s=a),n[t(1301)]=s,create$2(n,this[t(Ht)][t(Ft)]));if(r&&(n.show&&(this[t(Nt)](r),r.readyPromise[t(Gt)](function(e){e[t(3630)]&&e.toBottom()})),this._optionsBasemapsList.set(n.id,r),r.hasChildLayer&&n.layers))for(var o=0;o<n.layers.length;o++){var l=n[t(2196)][o];l.pid=n.id,l.parent=r,l.id||(l.id=this.getNextLayerId())}}}return this.controls.baseLayerPicker&&this.controls.baseLayerPicker.reload(),this._optionsBasemapsList.values}}},{key:"setLayersOptions",value:function(e){var t=O;if(e&&0!==e[t(M)]){this._optionsLayersList.forEach(function(e){e.destroy()}),this._optionsLayersList.removeAll(),this[t(Lt)][t(Dt)]=e;for(var i=0;i<e[t(M)];i++){var a=e[i],n=(a.id||(a.id=this.getNextLayerId()),create$2(a,this[t(It)].templateValues));if(n&&(a.show&&this.addLayer(n),this._optionsLayersList.set(a.id,n),n.hasChildLayer&&a.layers))for(var s=0;s<a.layers.length;s++){var r=a.layers[s];r.pid=a.id,r[t(Ot)]=n,r.id||(r.id=this.getNextLayerId())}}return this._optionsLayersList.values}}},{key:"getNextLayerId",value:function(){for(var e=O;-1!==this[e(404)].indexOf(this._layerIdx);)this._layerIdx++;return this._arrLayerIdx.push(this._layerIdx),this._layerIdx}},{key:O(h),value:function(n,s){var r=this;return new Promise(function(t,e){var i,a=_0x236b;!n||!n[a(Et)]||(Cesium__namespace.defined(s)&&(n.show=s),n._state===State.ADDED)?t(!1):(n._onAdd(r),(i=r._layerList.get(n.id))&&i!==n&&(n.id=r.getNextLayerId(),logWarn("addLayer:图层id存在冲突,已重新赋值id",n)),r._layerList.set(n.id,n),n.readyPromise[a(At)](function(e){t(!0)}))})}},{key:"removeLayer",value:function(e,t){var i=O;return e&&(!isString(e)&&!isNumber(e)||(e=this._layerList.get(e)))?e._state===State.ADDED?(this._layerList[i(St)](e.id),t&&e[i(T)]&&e[i(T)](),e[i(Tt)](),t&&(this[i(Mt)].remove(e.id),this._optionsLayersList.remove(e.id),e.destroy()),this):void 0:this}},{key:"hasLayer",value:function(e){return!!e&&(isObject(e)&&(e=e.id),this._layerList.contains(e))}},{key:"eachLayer",value:function(e,t){return this._layerList.forEach(e,t||this),this}},{key:"getLayer",value:function(e,t){return isObject(e)&&(e=e.id),this.getLayerByAttr(e,t)}},{key:"getLayerById",value:function(e){var t=O,i=this[t(Pt)].get(e);if(i)return i;if(i=this._optionsLayersList.get(e))return i;if(i=this._optionsBasemapsList.get(e))return i;for(var a=this.getLayers({basemaps:!0,layers:!0}),n=0,s=a.length;n<s;n++){var r=a[n];if(r.id===e)return r;if(r.hasChildLayer&&r[t(wt)])for(var o=0;o<r.arrLayer.length;o++){var l=r.arrLayer[o];if(l.id===e)return l}}}},{key:"getLayerByAttr",value:function(e,t){var i=this._layerList.getByAttr(e,t);return i||this._optionsLayersList.getByAttr(e,t)||this._optionsBasemapsList.getByAttr(e,t)||void 0}},{key:"getLayersByAttr",value:function(e,t){for(var i=O,a=this._layerList.getListByAttr(e,t),n=this._optionsLayersList.getListByAttr(e,t),s=0,r=n.length;s<r;s++){var o=n[s];this[i(Ct)].contains(o.id)||a[i(1018)](o)}for(var l=0,c=(n=this[i(xt)][i(bt)](e,t)).length;l<c;l++){var h=n[l];this._layerList[i(kt)](h.id)||a.push(h)}return a}},{key:"getLayers",value:function(){var i=O,a=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=[];return n[i(3195)]&&(s=s.concat(this._optionsBasemapsList[i(yt)])),n.layers&&(s=s[i(2557)](this._optionsLayersList.values)),n.filter&&(n.basemaps=!1,n.layers=!1),this._layerList[i(vt)](function(e){var t=i;e.isPrivate||!1===n.childs&&e.parent||Cesium__namespace.defined(n.basemaps)&&a._optionsBasemapsList.contains(e.id)||Cesium__namespace.defined(n.layers)&&a._optionsLayersList.contains(e.id)||s[t(gt)](e)}),s}},{key:"getBasemaps",value:function(e){var i,a=O;return this._viewer.baseLayerPicker?(console.log("baseLayerPicker打开时,由baseLayerPicker机制决定,无法获取底图图层。"),[]):e?(i=[],this[a(895)].forEach(function(e){var t=a;e[t(2524)]||i[t(1018)](e)}),i):this._optionsBasemapsList[a(927)]}},{key:O(2534),value:function(){var i=3412,a=1018,n=O,s=this,r=(r=[]).concat(this.getBasemaps(!0));return this[n(3412)][n(dt)](function(e){e.isTile&&!e.isPrivate&&r.push(e)}),this[n(ft)].forEach(function(e){var t=n;!e.isTile||e[t(384)]||s[t(895)].contains(e.id)||s[t(i)][t(1135)](e.id)||r[t(a)](e)}),r}},{key:"_initControls",value:function(){var e,t,i=O,a=(null==(e=this.options)?void 0:e.control)||{};for(t in add(null==(e=this._viewer)?void 0:e.scene,this.options.licenseUrl),this._popupMgr=new PopupMgr(a[i(1286)]),this.addControl(this._popupMgr),this._tooltipMgr=new TooltipMgr(a.tooltip),this.addControl(this._tooltipMgr),this._contextmenuMgr=new ContextMenu(a.contextmenu),this.addControl(this[i(ut)]),null!=(e=null==(e=a.contextmenu)?void 0:e.hasDefault)&&!e||this.bindContextMenu(this[i(3518)]()),this[i(4074)]=new SmallTooltip(a.smallTooltip),this[i(_t)](this[i(pt)]),this._keyboardRoam=new KeyboardRoam(_objectSpread2({enabled:!1},a.keyboardRoam||{})),this.addControl(this[i(mt)]),a){var n=a[t];n&&!1!==n.enabled&&(n=create$1(t,n))&&this[i(1599)](n)}}},{key:"addControl",value:function(e,t){var i=O;return e&&e[i(rt)]?this._controls[e.type]?void logWarn(i(ot)[i(2557)](e[i(1488)],"控件,请直接使用 map.controls.").concat(e[i(lt)],i(ct)),this):(Cesium__namespace.defined(t)&&(e[i(ht)]=t),e._onAdd(this),this._controlList.set(e.id,e),this[i(1984)][e[i(1488)]]=e,this.fire(EventType.addControl,{control:e}),this):this}},{key:O(u),value:function(e,t){var i=O;return e&&(this._controlList.remove(e.id),delete this._controls[e.type],e[i(nt)](),this.fire(EventType.removeControl,{control:e}),t)&&e[i(st)](),this}},{key:"hasControl",value:function(e){return this._controlList.contains((null==e?void 0:e.id)||e)}},{key:"eachControl",value:function(e,t){return this._controlList.forEach(e,t||this),this}},{key:O(3983),value:function(e){return this._controlList.getByAttr(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:"type")}},{key:"_initEffect",value:function(){var e,t=O,i=null==(e=this[t(tt)])?void 0:e[t(it)];if(i)for(var a in i){var n=i[a];n&&!1!==n.enabled&&(a=create(a,n))&&this[t(at)](a)}}},{key:O(_),value:function(e){var t=O;if(!e||!e._onAdd)return this;this[t(Ke)][e.type]?logError$1("地图上已有".concat(e.type,"特效,请直接使用 map.effects.").concat(e[t(1488)]," 对象 "),this):(this[t(et)](e),this._effects[e.type]=e,this.fire(EventType.addEffect,{effect:e}))}},{key:"removeEffect",value:function(e,t){var i=O;delete this._effects[e.type],this[i(1997)](EventType.removeEffect,{effect:e}),this[i(1267)](e,t)}},{key:"getEffect",value:function(e){var t=1<arguments[O(2822)]&&void 0!==arguments[1]?arguments[1]:"type";return this.getThing(e,t)}},{key:"addThing",value:function(e){var t=O;return e&&e._onAdd&&(e[t(Qe)](this),this._thingList.set(e.id,e)),this}},{key:O(p),value:function(e,t){var i=O;return e&&(this._thingList.remove(e.id),t&&e.clear&&e[i(Xe)](),e._onRemove(),t)&&e[i(1553)](),this}},{key:O(860),value:function(e){var t=O;return this[t(614)][t(Ze)]((null==e?void 0:e.id)||e)}},{key:"eachThing",value:function(e,t){return this[O(614)].forEach(e,t||this),this}},{key:"getThing",value:function(e,t){var i=O;return this._thingList[i(2191)](e,t)}},{key:"getLangText",value:function(e){return getLangText(e,this.lang)}},{key:"zoomIn",value:function(e,t){var i=O,a=this._zoomNavigation[i(qe)](e,t);return a&&this[i(Ye)](EventType.zoom,{ztype:"zoomIn",relativeAmount:e,mandatory:t}),a}},{key:O(1379),value:function(e,t){var i=O,i=this._zoomNavigation[i(Je)](e,t);return i&&this.fire(EventType.zoom,{ztype:"zoomOut",relativeAmount:e,mandatory:t}),i}},{key:O(m),value:function(e){var t=O;(this[t(Ne)]=e)?(this._viewer.scene.screenSpaceCameraController[t(3098)]=[Cesium__namespace.CameraEventType.RIGHT_DRAG,Cesium__namespace.CameraEventType.PINCH,{eventType:Cesium__namespace.CameraEventType.LEFT_DRAG,modifier:Cesium__namespace.KeyboardEventModifier.CTRL},{eventType:Cesium__namespace.CameraEventType.RIGHT_DRAG,modifier:Cesium__namespace[t(3705)].CTRL}],this._viewer.scene.screenSpaceCameraController.zoomEventTypes=[Cesium__namespace.CameraEventType[t(Ge)],Cesium__namespace.CameraEventType[t(S)],Cesium__namespace.CameraEventType.PINCH]):(this._viewer.scene[t(ze)].tiltEventTypes=[Cesium__namespace.CameraEventType[t(Be)],Cesium__namespace.CameraEventType.PINCH,{eventType:Cesium__namespace.CameraEventType[t(3877)],modifier:Cesium__namespace.KeyboardEventModifier[t(je)]},{eventType:Cesium__namespace.CameraEventType.RIGHT_DRAG,modifier:Cesium__namespace.KeyboardEventModifier.CTRL}],this._viewer.scene[t(Ve)].zoomEventTypes=[Cesium__namespace[t($e)].RIGHT_DRAG,Cesium__namespace[t(Ue)][t(S)],Cesium__namespace[t(We)].PINCH]),this[t(908)].mouseDownView&&this[t(908)].mouseDownView.changeMouseModel()}},{key:O(2926),value:function(){var e=O;delete this._pitch_max,delete this[e(De)],delete this._pitch_minHeight,this._viewer[e(Ie)][e(2722)][e(Oe)]=.9,this[e(Re)].scene.screenSpaceCameraController.inertiaTranslate=.9,this.off(EventType.mouseDown,this._setPitchRange_rightDownHandler,this),this.off(EventType.mouseUp,this._setPitchRange_rightUpHandler,this),this.off(EventType[e(He)],this[e(Fe)],this),this.off(EventType.cameraMoveStart,this._setPitchRange_cameraChangedHandler,this)}},{key:O(d),value:function(e){var t=O,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:-90;this[t(2926)](),this._viewer[t(3118)][t(w)][t(Le)]=0,this._viewer.scene[t(w)][t(1250)]=0,this[t(358)]=Cesium__namespace.Math.toRadians(e),this._pitch_min=Cesium__namespace.Math.toRadians(i),this.on(EventType.mouseDown,this._setPitchRange_rightDownHandler,this),this.on(EventType.mouseUp,this._setPitchRange_rightUpHandler,this)}},{key:O(3588),value:function(e){var t=O;this._viewer.scene[t(Ee)]!==Cesium__namespace[t(2730)][t(3965)]||this._viewer.camera.positionCartographic.height>this._viewer[t(Ae)].screenSpaceCameraController.minimumCollisionTerrainHeight||(this._pitch_minHeight=this._viewer[t(2018)].positionCartographic[t(3159)],this.on(EventType.mouseMove,this._setPitchRange_mouseMoveHandler,this),this.on(EventType.cameraChanged,this._setPitchRange_cameraChangedHandler,this))}},{key:"_setPitchRange_rightUpHandler",value:function(e){var t=O;this[t(3966)][t(Me)].screenSpaceCameraController[t(3771)]=!0,this[t(4030)](EventType.mouseMove,this._setPitchRange_mouseMoveHandler,this),this.off(EventType.cameraChanged,this._setPitchRange_cameraChangedHandler,this)}},{key:"_setPitchRange_mouseMoveHandler",value:function(e){var t=O,i=!0,e=e[t(2031)].y<e[t(871)].y,i=!(e&&this._viewer.camera.pitch>this._pitch_max||!e&&this._viewer[t(2018)].pitch<this[t(Te)]);this._viewer.scene.screenSpaceCameraController[t(3771)]=i}},{key:"_setPitchRange_cameraChangedHandler",value:function(e){var t,i,a=O;this._viewer.scene[a(xe)]!==Cesium__namespace.SceneMode.SCENE3D||this._viewer.camera.positionCartographic[a(3159)]>this._viewer[a(3118)].screenSpaceCameraController.minimumCollisionTerrainHeight||((t=this._viewer[a(2018)].pitch)>this._pitch_max||t<this[a(be)])&&(this._viewer.scene[a(2722)].enableTilt=!1,t>this._pitch_max?t=this[a(ke)]:t<this._pitch_min&&(t=this._pitch_min),i=Cesium__namespace.Cartesian3[a(2874)](this._viewer[a(Pe)].positionCartographic[a(we)],this._viewer.camera.positionCartographic.latitude,Math.max(this._viewer.camera.positionCartographic.height,this._pitch_minHeight)),this._viewer.camera.cancelFlight(),this._viewer.camera[a(Se)]({destination:i,orientation:{pitch:t}}),this._viewer.scene.screenSpaceCameraController.enableTilt=!0)}},{key:O(f),value:function(e){var t=O,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=this[t(1688)]();return a?(t=Cesium__namespace[t(784)][t(ve)](a.toCartesian(),this[t(ge)][t(Ce)].positionWC),this.flyToPoint(a,_objectSpread2(_objectSpread2({},i),{},{radius:t,pitch:e}))):Promise.resolve(!1)}},{key:O(1626),value:function(){var e=O;return Route.clearLastCamera(),this._isCenterAtArr=!1,this[e(3966)].camera.cancelFlight(),this}},{key:O(y),value:function(){return this.cancelFlyTo()}},{key:"getCameraView",value:function(e){return getCameraView(this.camera,e)}},{key:O(v),value:function(n){var s=2018,r=2993,o=3277,l=2033,c=2320,h=4110,u=1581,_=3966,p=O,m=this,d=1<arguments[p(ye)]&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(e,t){var i,a=p;!n||0===n.lng&&0===n.lat&&0===n.alt?e(!1):(i=null!=(i=(d=isNumber(d)?{duration:d}:d).minHeight)?i:2500,m[a(3966)][a(s)].positionCartographic[a(3159)]<i&&(i=m._viewer.camera[a(919)].height),Cesium__namespace.defined(n[a(r)])&&(i=n.alt),i=Cesium__namespace.defined(n[a(484)])&&Cesium__namespace.defined(n.lat)?Cesium__namespace.Cartesian3.fromDegrees(n[a(484)],n.lat,i):Cesium__namespace.defined(n.x)&&Cesium__namespace.defined(n.y)?(Cesium__namespace[a(o)](n.z)&&(i=n.z),Cesium__namespace.Cartesian3.fromDegrees(n.x,n.y,i)):m._viewer.camera.position,i=_objectSpread2(_objectSpread2({},d),{},{destination:i,orientation:{heading:Cesium__namespace[a(1124)].toRadians(null!=(i=n.heading)?i:0),pitch:Cesium__namespace.Math.toRadians(null!=(i=n[a(l)])?i:-90),roll:Cesium__namespace.Math.toRadians(null!=(i=n[a(2574)])?i:0)},complete:function(){d.complete&&d.complete(),e(!0)},cancel:function(){d.cancel&&d.cancel(),e(!1)}}),0===d[a(c)]?(m._viewer.camera[a(h)](i),d.complete&&d[a(u)](),e(!0)):m[a(_)].camera.flyTo(i))})}},{key:"centerAt",value:function(e,t){return this.setCameraView(e,t)}},{key:"flyHome",value:function(e){var t,i=O;null!=(t=this.options)&&null!=(t=t.scene)&&t.center?this.setCameraView(this[i(1592)].scene.center,e):null!=(t=this.options)&&null!=(i=t.scene)&&i.extent&&this.flyToExtent(this.options.scene.extent,e)}},{key:O(797),value:function(e){var t=O,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.cancelFlyTo(),this[t(de)]=e,this[t(fe)]=!0,this[t(738)](0,i)}},{key:"_setCameraViewListItem",value:function(t,i){var a,n,s=O,r=this;!this._isCenterAtArr||t<0||t>=this.arrCenterTemp.length?(this._isCenterAtArr=!1,null!=i&&i.complete&&i.complete()):((a=this.arrCenterTemp[t])[s(474)]&&a.onStart(),this.setCameraView(a,_objectSpread2(_objectSpread2({easingFunction:Cesium__namespace.EasingFunction.LINEAR_NONE},i),{},{duration:a.duration,complete:function(){a[s(2763)]&&a.onEnd();var e=null!=(e=a.stop)?e:1;n=setTimeout(function(){r._setCameraViewListItem(++t,i)},1e3*e)},cancle:function(){var e=s;this._isCenterAtArr=!1,clearTimeout(n),null!=i&&i.cancel&&i[e(me)]()}})))}},{key:"flyTo",value:function(e,t){var i=O;if(e)return this._viewer[i(406)](e,t)}},{key:"flyToGraphic",value:function(e){var t,i,a=O,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!e||0===e.length)return Promise.resolve(!1);if(e.flyTo)return n[a(1614)]=null==(t=e.style)?void 0:t[a(1614)],e.flyTo(n);if(!Array.isArray(e))return Promise.resolve(!1);if(1===e[a(le)])return e[0][a(ce)](n);for(var s=0,r=e[a(he)];s<r;s++){var o=e[s];o.getRectangle&&(o=o[a(ue)](),Cesium__namespace[a(3277)](o))&&(i=i?Cesium__namespace.Rectangle[a(_e)](o,i):o)}return this[a(pe)](i,n)}},{key:"flyToPositions",value:function(e){var t,i=O,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return e&&0!==e.length?1===e.length?this.flyToPoint(e[0],a):(t=getRectangle(e,!0))?t[i(1447)]===t[i(se)]&&t.ymin===t.ymax||200<t.xmax-t[i(re)]?this.flyToPoint([t[i(1447)],t.ymin,t.height],a):(t.height=getMaxHeight(e),a.scale=a.scale||1.2,this[i(oe)](t,a)):Promise.resolve(!1):Promise[i(1049)](!1)}},{key:"flyToExtent",value:function(e){var t,i=O,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=(e=e instanceof Cesium__namespace.Rectangle?formatRectangle(e):e)[i(Q)],s=e[i(K)],r=e[i(3727)],o=e[i(ee)],l=(n+s)/2,c=(r+o)/2;return 0==l&&0==c?Promise.resolve(!1):(0===(e=null!=(e=null!=(e=e.height)?e:a.height)?e:0)&&(e=getHeight(null==(t=this._viewer)?void 0:t.scene,Cesium__namespace[i(te)][i(3119)](l,c))),t=Cesium__namespace.Rectangle[i(ie)](n,r,s,o),0<(n=Math.max(t[i(3159)],t[i(696)]))&&(a[i(402)]=(null!=(r=a[i(ae)])?r:0)+Cesium__namespace.Math.chordLength(n,null==(s=this._viewer)?void 0:s[i(ne)].globe.ellipsoid.maximumRadius)),this[i(803)](new LngLatPoint(l,c,e),a))}},{key:O(g),value:function(o){var l=3118,c=1994,h=1124,u=2140,_=977,p=2018,m=3886,d=1581,f=2099,y=3005,v=1614,g=this,C=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(i,e){var a=_0x236b;if(o){var t=(o=LngLatPoint[a(332)](o)).toCartesian();if(C.clampToGround){if(g[a(1886)])return void getSurfaceHeight(g._viewer[a(l)],t,{has3dtiles:!0}).then(function(e){var t=a;o.alt=e.height*(g._viewer.scene.globe[t(y)]||1),delete C[t(v)],g.flyToPoint(o,C)[t(2589)](function(e){i(e)})});o.alt=0,t=o.toCartesian()}var n=C.radius||g.getCameraDistance()||100,s=(Cesium__namespace.defined(C.scale)&&0<C.scale&&(n*=C.scale),Cesium__namespace.defined(C.minHeight)&&n<C.minHeight&&(n=C[a(c)]),Cesium__namespace.defined(C.maxHeight)&&n>C.maxHeight&&(n=C[a(1732)]),Cesium__namespace.defined(C.pitch)?r=Cesium__namespace[a(h)].toRadians(C[a(2033)]):(r=g[a(3966)][a(2018)].pitch,s=Cesium__namespace[a(h)].toDegrees(r),Cesium__namespace.defined(C.minPitch)&&s<C[a(u)]&&(r=Cesium__namespace.Math.toRadians(C.minPitch)),Cesium__namespace.defined(C.maxPitch)&&s>C.maxPitch&&(r=Cesium__namespace[a(1124)][a(2581)](C.maxPitch))),Cesium__namespace.defined(C.heading)?Cesium__namespace.Math.toRadians(C.heading):g._viewer.camera[a(_)]),s=new Cesium__namespace.HeadingPitchRange(s,r,n),r=new Cesium__namespace.BoundingSphere(t,0);0===C.duration?(g._viewer[a(p)][a(2790)](t,s),C.lock||g._viewer[a(1683)]||g._viewer.camera.lookAtTransform(Cesium__namespace[a(3342)][a(m)]),C[a(d)]&&C[a(1581)](),i(!0)):g._viewer[a(p)].flyToBoundingSphere(r,_objectSpread2(_objectSpread2({},C),{},{offset:s,complete:function(){C.complete&&C.complete(),i(!0)},cancel:function(){var e=a;C.cancel&&C[e(f)](),i(!1)}}))}else i(!1)})}},{key:"isFlyAnimation",value:function(){return this[O(876)]}},{key:O(C),value:function(){var r=2033,o=484,l=3783,t=O,c=this,h=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},u=this[t(3966)],_=h.center||this.getCameraView();return new Promise(function(i,e){var a=t,n=(c._isFlyAnimation=!0,c);function s(e){var t=_0x236b;i(e),h.callback&&h[t(3816)](e),n._isFlyAnimation=!1,n.openFlyAnimationEndFun&&(n.openFlyAnimationEndFun(),delete n.openFlyAnimationEndFun)}u.camera[a(4110)]({destination:Cesium__namespace[a(J)][a(q)](-85.16,13.71,23e6)}),u[a(Y)].flyTo({destination:Cesium__namespace.Cartesian3.fromDegrees(_.lng,_[a(Z)],23e6),duration:h.duration1||2,easingFunction:h.easingFunction1||Cesium__namespace[a(1403)][a(X)],complete:function(){var t=a,e=null!=(e=_.alt)?e:9e4;e<2e5&&-90!==_[t(r)]?(e=1.2*e+8e3,u.camera.flyTo({destination:Cesium__namespace.Cartesian3.fromDegrees(_[t(o)],_[t(654)],e),duration:h.duration2,easingFunction:h[t(535)],complete:function(){var e=t;c.setCameraView(_,{duration:h.duration3||2,easingFunction:h[e(1606)],complete:function(){s(!0)},cancel:function(){s(!1)}})},cancel:function(){s(!1)}})):c.setCameraView(_,{duration:h[t(l)]||2,easingFunction:h[t(1606)],complete:function(){s(!0)},cancel:function(){s(!1)}})},cancel:function(){s(!1)}})})}},{key:"rotateAnimation",value:function(){var t=484,c=2581,h=1124,u=O,e=0<arguments[u(2822)]&&void 0!==arguments[0]?arguments[0]:{},_=this._viewer,p=e[u(W)]||this.getCameraView({simplify:!1}),m=(null!=(e=e.duration)?e:10)/3;return new Promise(function(i,e){var a=2033,n=1124,s=2734,r=2581,o=2574,l=u;_.camera.flyTo({destination:Cesium__namespace.Cartesian3[l(3119)](p[l(t)]+120,p.lat,p.alt),orientation:{heading:Cesium__namespace.Math[l(c)](p[l(977)]),pitch:Cesium__namespace.Math.toRadians(p.pitch),roll:Cesium__namespace[l(h)][l(2581)](p[l(2574)]||0)},duration:m,easingFunction:Cesium__namespace.EasingFunction.LINEAR_NONE,complete:function(){var t=l;_.camera.flyTo({destination:Cesium__namespace.Cartesian3.fromDegrees(p.lng+240,p.lat,p.alt),orientation:{heading:Cesium__namespace.Math.toRadians(p.heading),pitch:Cesium__namespace[t(1124)].toRadians(p[t(a)]),roll:Cesium__namespace[t(n)].toRadians(p.roll||0)},duration:m,easingFunction:Cesium__namespace.EasingFunction[t(s)],complete:function(){var e=t;_.camera.flyTo({destination:Cesium__namespace.Cartesian3.fromDegrees(p.lng,p.lat,p.alt),orientation:{heading:Cesium__namespace.Math.toRadians(p.heading),pitch:Cesium__namespace.Math.toRadians(p.pitch),roll:Cesium__namespace.Math[e(r)](p[e(o)]||0)},duration:m,easingFunction:Cesium__namespace.EasingFunction.LINEAR_NONE,complete:function(){i(!0)},cancel:function(){i(!1)}})},cancel:function(){i(!1)}})},cancel:function(){i(!1)}})})}},{key:"closeHighlight",value:function(e){var t=O;(null==e?void 0:e.graphic)!==this[t(2352)]&&(this.last_highlighGraphic&&this.last_highlighGraphic.closeHighlight&&this[t(2352)].closeHighlight(),this._clearLastHighlight())}},{key:"_clearLastHighlight",value:function(){this[O(2352)]&&(this.last_highlighGraphic=null),this.outlineEffect&&(this.outlineEffect.selected=[])}},{key:"openHighlight",value:function(e,t,i){var a=O;this._highlightEnabled&&(e.openHighlight?(this[a(B)](),t.outlineEffect?(this[a(j)]||(this.outlineEffect=new OutlineEffect({eventType:!1}),this[a(V)](this.outlineEffect)),this[a($)].setOptions(t),this[a(3510)][a(U)]=this.mouseEvent.getPicked(i)):e.openHighlight(t,!1,null==i?void 0:i[a(1892)]),this.last_highlighGraphic=e,this[a(3966)].scene.requestRender()):logInfo(a(z),e))}},{key:"openPopup",value:function(e,t,i){return this[O(G)].open(e,{content:t,options:i}),this}},{key:"closePopup",value:function(){var e=O;return this._popupMgr&&this._popupMgr[e(4018)](),this}},{key:"openTooltip",value:function(e,t){return this._tooltipMgr.open(e,{content:t,options:2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},target:this}),this}},{key:O(3821),value:function(){var e=O;return this._tooltipMgr&&this[e(3593)][e(1815)](),this}},{key:"getContextMenu",value:function(){var e,t=O;return null==(e=this._contextmenuConfig)?void 0:e[t(3085)]}},{key:"bindContextMenu",value:function(e,t){return this._contextmenuConfig={content:e,options:t},this}},{key:"unbindContextMenu",value:function(){return this._contextmenuConfig=null,this}},{key:"openContextMenu",value:function(e){return this[O(N)].open(e,this._contextmenuConfig),this}},{key:"closeContextMenu",value:function(){var e=O;return this[e(H)]&&this._contextmenuMgr[e(F)](),this}},{key:"openSmallTooltip",value:function(e,t){return this._smallTooltip.open(e,t),this}},{key:"closeSmallTooltip",value:function(){var e=O;if(this[e(P)])return this._smallTooltip[e(1815)](),this}},{key:"destroy",value:function(){var t=O;if(this[t(3966)]){try{this[t(x)].destroy(),this._thingList.destroy(),this._layerList.destroy(),this[t(b)].destroy(),this._viewer.destroy()}catch(e){logWarn(t(k),e)}for(var e in this)delete this[e]}}}]),R}(),MapCompare=function(){var i=2856,n=3817,a=1832,s=3960,r=2147,o=2722,t=2836,l=1203,c=1453,h=3943,u=3122,_=3817,p=2147,e=(_inherits(m,BaseControl),_createSuper(m));function m(){return _classCallCheck(this,m),e.apply(this,arguments)}return _createClass(m,[{key:"mapEx",get:function(){return this._mapEx}},{key:"_mountedHook",value:function(){this._container=create$3("div",this.options.className||"gis3d-container gis3d-mapCompare")}},{key:"_addedHook",value:function(){var e=_0x236b,t=(this.options.parentContainer||(this._map[e(l)].firstChild.style[e(696)]=e(1574)),_objectSpread2({},this[e(1592)]));t.basemaps||t[e(2196)]||((t=merge(t,this._map[e(c)]())).control=t.control||{},t.control[e(h)]=!0,t[e(u)].sceneModePicker=!1),this._mapEx=new Map(this._container,t),this[e(3817)].on(EventType.morphComplete,this._morphCompleteHandler,this),this[e(_)].on(EventType.cameraChanged,this._map_extentChangeHandler,this),this._map.camera.percentageChanged=.001,this[e(p)].on(EventType.cameraChanged,this._mapEx_extentChangeHandler,this),this[e(2147)].camera.percentageChanged=.001,this[e(2836)]()}},{key:"_removedHook",value:function(){var e=_0x236b;this._map[e(4030)](EventType.morphComplete,this._morphCompleteHandler,this),this._map.off(EventType.cameraChanged,this[e(t)],this),this[e(2147)].off(EventType.cameraChanged,this._mapEx_extentChangeHandler,this),this._mapEx.destroy(),delete this._mapEx}},{key:"_morphCompleteHandler",value:function(e){var t=_0x236b;this._map.scene.mode===Cesium__namespace.SceneMode.SCENE2D?this._mapEx.scene[t(2722)][t(3771)]=!1:this[t(r)].scene[t(o)].enableTilt=!0}},{key:"_map_extentChangeHandler",value:function(e){var t=_0x236b,i=this;clearTimeout(this[t(3960)]),this._mapEx.off(EventType.cameraChanged,this[t(a)],this),this._updateView(this._map,this._mapEx),this[t(s)]=setTimeout(function(){var e=t;i._mapEx.on(EventType[e(3439)],i._mapEx_extentChangeHandler,i)},10)}},{key:"_mapEx_extentChangeHandler",value:function(e){var t=3439,i=_0x236b,a=this;clearTimeout(this[i(2368)]),this._map.off(EventType.cameraChanged,this._map_extentChangeHandler,this),this._updateView(this[i(2147)],this[i(n)]),this._mapEx_timeTik=setTimeout(function(){var e=i;a[e(3817)].on(EventType[e(t)],a._map_extentChangeHandler,a)},10)}},{key:"_updateView",value:function(e,t){e=e[_0x236b(i)]({simplify:!1});t.setCameraView(e,{duration:0})}}]),m}(),OverviewMap=(register$1("mapCompare",MapCompare),function(){var n=2467,s=2036,r=3119,o=430,i=3817,a=2131,l=3850,c=1997,t=939,h=976,u=3850,_=_0x1658de,e=(_inherits(p,BaseControl),_createSuper(p));function p(){return _classCallCheck(this,p),e.apply(this,arguments)}return _createClass(p,[{key:"smallMap",get:function(){return this[_0x236b(2634)]}},{key:"center",get:function(){return this[_0x236b(3052)]}},{key:"_mountedHook",value:function(){var e=_0x236b;this.options[e(u)]=this[e(1592)].flyToOptions||{},this._container=create$3("div",e(1470)),this.setStyle(this[e(1592)].style||{right:"10px",top:"10px"})}},{key:"_addedHook",value:function(){var e=_0x236b;this.initMinMap(),this._map.camera[e(h)]=.01,this[e(3817)].on(EventType.cameraChanged,this._map_cameraChanged,this),this._map_cameraChanged()}},{key:"_removedHook",value:function(){var e=_0x236b;this._map[e(4030)](EventType.cameraChanged,this[e(t)],this),this._smallMap.destroy(),delete this._smallMap}},{key:_(939),value:function(){var e=_,t=this[e(i)].getExtent();this[e(430)]=Cesium__namespace[e(2036)][e(3119)](t.xmin,t[e(3727)],t[e(2535)],t[e(a)]),this._center=Cesium__namespace.Cartographic.toCartesian(Cesium__namespace.Rectangle.center(this._rectangle)),this._smallMap.flyToExtent(t,_objectSpread2({duration:0,scale:2},this.options[e(l)])),this[e(c)](EventType[e(3814)])}},{key:"initMinMap",value:function(){var t=_,i=this,e=this._map.getExtent(),a={scene:_objectSpread2(_objectSpread2({sceneMode:Cesium__namespace.SceneMode[t(778)],cameraController:{enableRotate:!1,enableTranslate:!1,enableTilt:!1,enableZoom:!1}},this.options.scene),{},{extent:e}),control:_objectSpread2({contextmenu:{hasDefault:!1}},this.options[t(3122)]),basemaps:[_objectSpread2(_objectSpread2({},this.options[t(n)]),{},{show:!0})],layers:this.options[t(2196)]};this._smallMap=new Map(this[t(434)],a),this.options[t(3222)]&&(this._rectangle=Cesium__namespace[t(s)][t(r)](e.xmin,e.ymin,e[t(2535)],e[t(2131)]),this._extentGraphic=new RectangleEntity({rectangle:new Cesium__namespace.CallbackProperty(function(e){return i[t(o)]},!1),style:_objectSpread2({color:t(2636),outline:!0,outlineWidth:1,outlineColor:"#ff7800"},this.options.rectangle)}),this._smallMap.graphicLayer.addGraphic(this._extentGraphic))}}]),p}()),icon$1=(register$1("overviewMap",OverviewMap),_0x1658de(1169)),icon=_0x1658de(2139),ClockAnimate=function(){var i=3817,a=1899,n=569,s=2492,r=1058,o=1899,l=3817,c=352,h=1962,u=434,_=3477,p=3817,m=908,t=434,d=3297,f=705,y=569,v=705,g=3814,C=364,x=_0x1658de,e=(_inherits(b,BaseControl),_createSuper(b));function b(){return _classCallCheck(this,b),e.apply(this,arguments)}return _createClass(b,[{key:x(1744),value:function(){var e=x;this[e(434)]=create$3("div","gis3d-clockAnimate"),this._container.innerHTML='\n <button id="btn-clockAnimate-start" class="gis3d-clockAnimate-btn" title="暂停">\n '[e(2557)](icon$1,e(C))}},{key:"_addedHook",value:function(){var a=1997,i=1997,n=1802,s=3817,r=x,o=this,e=(this._container[r(3297)](r(2810)).addEventListener(r(1802),function(e){var t=r;o._map.clock[t(352)]=Cesium__namespace.JulianDate.now(),o.updateStatus(),o.fire(EventType[t(1802)],{mouseEvent:e,targetType:t(2023),time:o._map.clock.currentTime})}),this[r(t)][r(d)]("#btn-clockAnimate-start"));e.addEventListener(r(1802),function(e){var t=r;o[t(s)][t(1899)].shouldAnimate=!o._map.clock[t(530)],o[t(2109)](),o.fire(EventType.click,{mouseEvent:e,targetType:"state",state:o._map.clock.shouldAnimate})}),this[r(3976)]=e,this._containerTime=this._container.querySelector("#txt-clockAnimate-time"),this._containerTime.addEventListener(r(1802),function(e){var t=r;o[t(i)](EventType[t(n)],{mouseEvent:e,targetType:"label"})}),this[r(f)]=this._container.querySelector("#txt-clockAnimate-speed"),this[r(f)][r(y)]("value",this._map[r(1899)][r(3319)]),this[r(v)][r(3870)](r(g),function(e){var t=r,i=Number(o._containerSpeed.value||1);isNaN(i)||(o._map.clock.multiplier=i,o[t(a)](EventType.change,{mouseEvent:e,speed:i}))}),setTimeout(function(){o._showHook(!0)},1e3),this.timeTik=setInterval(function(){o.clock_onTickHandler()},500),this.clock_onTickHandler()}},{key:"_showHook",value:function(e){var t,i=x,a=this._map.controls.timeline,a=null==a?void 0:a.container;a&&(a.style.left=e?"".concat(this[i(u)].offsetWidth+1,"px"):"0"),null!=(t=this._map.controls)&&t[i(_)]&&(t=e||a&&"none"!==a.style[i(2163)],this[i(p)][i(m)][i(_)][i(1842)]({bottom:t?"27px":"2px"}))}},{key:"_removedHook",value:function(){this.timeTik&&(clearInterval(this.timeTik),this.timeTik=null)}},{key:"clock_onTickHandler",value:function(){var e=x,t=(this.updateStatus(),Number(this._containerSpeed.value)),t=(this._map[e(1899)].multiplier!==t&&this[e(705)].setAttribute("value",this._map[e(o)].multiplier),Cesium__namespace.JulianDate.toDate(this[e(l)][e(1899)][e(c)]));this._containerTime[e(h)]=formatDate(t,this.options.format||"yyyy-MM-dd HH:mm:ss")}},{key:"updateStatus",value:function(){var e,t=x;this[t(3798)]!==this[t(i)].clock.shouldAnimate&&(this.isAnimate=this._map[t(a)].shouldAnimate,this[t(3798)]?(this._containerBtnStart[t(n)]("title","暂停"),this._containerBtnStart.innerHTML=icon$1,this[t(705)].style.display="inline"):(this._containerBtnStart.setAttribute(t(3430),"继续"),this._containerBtnStart[t(1962)]=icon,this._containerSpeed[t(s)].display=t(r)),e=null==(e=this._map.controls.timeline)?void 0:e[t(1203)])&&(e.style.left=""[t(2557)](this._container.offsetWidth+1,"px"))}}]),b}(),index$1=(register$1("clockAnimate",ClockAnimate),{__proto__:null,BaseControl:BaseControl,Animation:Animation,BaseLayerPicker:BaseLayerPicker,FullscreenButton:FullscreenButton,Geocoder:Geocoder,HomeButton:HomeButton,NavigationHelpButton:NavigationHelpButton,ProjectionPicker:ProjectionPicker,SceneModePicker:SceneModePicker,Timeline:Timeline,VRButton:VRButton,LocationBar:LocationBar,MouseDownView:MouseDownView,Zoom:Zoom,ToolButton:ToolButton,Compass:Compass,DistanceLegend:DistanceLegend,MapSplit:MapSplit,MapCompare:MapCompare,OverviewMap:OverviewMap,ClockAnimate:ClockAnimate}),BaiduPOI=function(){var e=2523,o=2822,l=1196,c=1018,p=3878,m=1377,d=402,f=690,y=2131,v=1304,g=3045,C=1304,x=2840,b=4080,k=4080,P=2822,h=784,t=2706,i=3896,u=3492,_=332,w=2167,S=1209,T=2659,M=3858,E=602,A=1592,L=1162,a=4036,n=1049,s=2706,r=714,H=2659,D=1419,F=801,N=716,G=1304,z=3254,I=3254,B=484,j=2589,V=527,$=2302,U=3982,O=_0x1658de;function R(){var e=_0x236b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,R),this._key_index=0,this[e(2302)]=t[e(U)]||baiduArr,this[e(1775)]=t.city||"全国"}return _createClass(R,[{key:"keys",get:function(){return this._keys},set:function(e){this._keys=e}},{key:O(3982),get:function(){var e=O,t=this._key_index++%this._keys.length;return this[e($)][t]}},{key:"_formatPOIData",value:function(e){for(var t=O,i=[],a=0;a<e.length;a++){var n,s=e[a],r=[];s.location&&(r=gcj2wgs([s.location[t(484)],s.location.lat])),i.push({id:s.uid,name:s.name,lng:r[0],lat:r[1],type:null!=(n=null==(n=s.detail_info)?void 0:n.tag)?n:s.tag,xzqh:s.province+s.city+(s[t(4040)]||s[t(672)]||""),address:s[t(V)],tel:s[t(1342)]||"",detailUrl:null==(n=s.detail_info)?void 0:n.detail_url,info:s,x:r[0],y:r[1],detail_info:s.detail_info})}return i}},{key:"_getKeywords",value:function(e){var t=O;return isString(e)?e.replace(/ /gm,"$")[t(1189)](/,/gm,"$"):Array.isArray(e)?e.join("$"):e}},{key:O(e),value:function(a){var e,t,i=1419,n=345,s=1087,r=O,o=this;return this._getAddress_ing?Promise.resolve():(e={ak:this.key,output:"json",language:"zh-CN",coordtype:"wgs84ll",ret_coordtype:"gcj02ll"},t=LngLatPoint.parse(a[r(I)]),e[r(I)]=t.lat+","+t[r(B)],this._getAddress_ing=!0,Cesium__namespace.Resource.fetchJsonp(_objectSpread2(_objectSpread2({url:"https://api.map.baidu.com/reverse_geocoding/v3/"},this[r(1592)]),{},{queryParameters:e}))[r(j)](function(e){var t,i=r;if(o._getAddress_ing=!1,0===e.status)return t={address:(t=e[i(n)])[i(s)],city:t.cityCode,component:t.addressComponent},a[i(1162)]&&a.success(t),t;console.log("未查询到相关结果!",e)}).catch(function(e){var t=r;o._getAddress_ing=!1,logError$1("BaiduPOI 请求出错",e),a[t(i)]&&a.error("请求出错",e)}))}},{key:"autoTip",value:function(a){var e,i=1419,n=2840,s=3162,r=O,o=this,t={ak:this.key,output:r(2706),ret_coordtype:"gcj02ll"};return Cesium__namespace.defined(this._city)&&(t.region=this._city,t[r(F)]=!0),Cesium__namespace.defined(a.city)&&(t.region=a[r(N)],t.city_limit=!0),Cesium__namespace.defined(a.citylimit)&&(t.city_limit=a.citylimit),a[r(3045)]&&(t[r(G)]=this._getKeywords(a.text)),a.location&&(t.coord_type=1,e=LngLatPoint.parse(a[r(z)]),t.location=e.lat+","+e.lng),Cesium__namespace.Resource.fetchJsonp(_objectSpread2(_objectSpread2({url:"https://api.map.baidu.com/place/v2/suggestion"},this.options),{},{queryParameters:t})).then(function(e){var t,i=r;if(0===e[i(n)])return t=o._formatPOIData(e.result),t={allcount:e[i(s)],count:t.length,list:t},a[i(1162)]&&a.success(t),t;console.log("未查询到相关结果!",e)}).catch(function(e){var t=r;logError$1("BaiduPOI 请求出错",e),a[t(i)]&&a.error("请求出错",e)})}},{key:"detail",value:function(a){var n=O,e={ak:this.key,output:n(s),ret_coordtype:"gcj02ll",uid:a.id};return Cesium__namespace[n(r)].fetchJsonp(_objectSpread2({url:"https://api.map.baidu.com/place/v2/detail",queryParameters:e},this.options))[n(2589)](function(e){var t,i=n;if(0!==e.status)console.log("未查询到相关结果!",e);else{if(e.pois&&0!==e.pois[i(2822)])return t=e,a.success&&a.success(t),t;a.error&&a[i(1419)](i(3634),e)}})[n(3718)](function(e){var t=n;logError$1(t(H),e),a[t(D)]&&a[t(D)](t(1383),e)})}},{key:"query",value:function(e){var t=O,i=e[t(2353)];return i?"rectangle"===i.type?(e.polygon=i.outlineCoordinates,this.queryPolygon(e)):"polygon"===i.type?(e.polygon=i[t(3497)],this[t(a)](e)):"circle"===i[t(1488)]?(e.location=i.point,e.radius=i.radius,this[t(2108)](e)):Promise[t(n)](!1):e.polygon?this.queryPolygon(e):this.queryText(e)}},{key:"queryText",value:function(a){var e,i=1419,n=1383,s=O,r=this,t={ak:this.key,output:"json",ret_coordtype:"gcj02ll",scope:2,page_num:a.page||0,page_size:a.count||20,tag:a.types||""};return Cesium__namespace.defined(this._city)&&(t.region=this._city,t.city_limit=!0),Cesium__namespace.defined(a.city)&&(t.region=a.city,t.city_limit=!0),Cesium__namespace[s(3277)](a.citylimit)&&(t.city_limit=a[s(M)]),a.text&&(t.query=this[s(E)](a.text)),a.location&&(t.coord_type=1,e=LngLatPoint.parse(a.location),t[s(3254)]=e[s(654)]+","+e.lng),Cesium__namespace.defined(a.radius)&&(5e6<a.radius?delete t.location:t.radius=a.radius,Cesium__namespace[s(3277)](a.radiuslimit))&&(t.radius_limit=a.radiuslimit),Cesium__namespace.Resource.fetchJsonp(_objectSpread2(_objectSpread2({url:"https://api.map.baidu.com/place/v2/search"},this[s(A)]),{},{queryParameters:t})).then(function(e){var t,i=s;if(0===e.status)return e[i(4080)]&&"city_type"!==e.result_type&&0!==e.results[i(2822)]?(t=r._formatPOIData(e.results),t={allcount:e.total,count:t.length,list:t},a.success&&a.success(t),t):a._sendCount?(t={allcount:0,count:0,list:[]},a[i(1162)]&&a[i(L)](t),t):(delete a.radius,delete a.location,a._sendCount=1,r.queryText(a));t="POI 请求失败("+e.status+"):"+e[i(3922)],a[i(1419)]&&a.error(t)}).catch(function(e){var t=s;logError$1(t(2659),e),a.error&&a[t(i)](t(n),e)})}},{key:"queryCircle",value:function(a){var e,n=1233,s=4080,r=O,o=this,l={ak:this.key,output:r(t),ret_coordtype:"gcj02ll",scope:2,radius:a[r(402)]||3e3,radius_limit:a[r(i)],page_num:a[r(u)]||0,page_size:a.count||20,tag:a[r(3878)]||""};return a[r(3254)]?(l.coord_type=1,e=LngLatPoint[r(_)](a.location),l.location=e.lat+","+e.lng):logError$1(r(w)),a[r(3045)]?l.query=this._getKeywords(a.text):l.query="行政地标",Cesium__namespace.Resource.fetchJsonp(_objectSpread2(_objectSpread2({url:r(S)},this[r(1592)]),{},{queryParameters:l})).then(function(e){var t,i=r;if(0!==e.status)t="POI 请求失败("+e[i(2840)]+"):"+e.message,a.error&&a.error(t);else{if(e.results&&e.result_type!==i(n)&&0!==e.results[i(2822)])return t=o._formatPOIData(e[i(s)]),t=a.limit?o._filterPOIData_circle(t,a.location,l.radius):t,t={allcount:e.total,count:t.length,list:t},a.success&&a[i(1162)](t),t;a.error&&a.error("未查询到相关结果!",e)}}).catch(function(e){var t=r;logError$1(t(T),e),a[t(1419)]&&a.error(t(1383),e)})}},{key:"_filterPOIData_circle",value:function(e,t,i){var a=O;if(!e||!t||!i)return e;for(var n=t[a(3600)](),s=[],r=0;r<e.length;r++){var o=e[r],l=Cesium__namespace[a(h)][a(3119)](o.x,o.y,t[a(2993)]);Cesium__namespace[a(784)].distance(l,n)<i&&s[a(1018)](o)}return s}},{key:"queryPolygon",value:function(a){var e,t,i,n,s,r,o=1419,l=O,c=this,h={ak:this.key,output:"json",ret_coordtype:"gcj02ll",scope:2,radius:a.radius||3e3,radius_limit:a.limit,page_num:a[l(3492)]||0,page_size:a.count||20,tag:a[l(p)]||""},u=a[l(m)],_=u;return 2===u.length?(t=((r=u[0][0])+(s=u[1][0]))/2,i=((n=u[0][1])+(e=u[1][1]))/2,_=[[r,e],[r,n],[s,n],[s,e],[r,e]],h.coord_type=1,h.location=i+","+t,h[l(d)]=Math.max(getDistance([[t,i],u[0]]),getDistance([[t,i],u[1]]))):(s=((n=getExtentByGeoJSON({type:"Feature",properties:{},geometry:{type:l(f),coordinates:u}})).xmin+n.xmax)/2,r=(n.ymin+n[l(y)])/2,h.coord_type=1,h.location=r+","+s,h.radius=Math.max(getDistance([[s,r],[n.xmin,n[l(3727)]]]),getDistance([[s,r],[n.xmax,n[l(2131)]]]))),a[l(3045)]?h[l(v)]=this._getKeywords(a[l(g)]):h[l(C)]="行政地标",Cesium__namespace.Resource[l(2424)](_objectSpread2({url:"https://api.map.baidu.com/place/v2/search",queryParameters:h},this[l(1592)])).then(function(e){var t,i=l;if(0!==e[i(x)])t="POI 请求失败("+e.status+"):"+e.message,a.error&&a.error(t);else{if(e.results&&e.result_type!==i(1233)&&0!==e[i(b)].length)return t=c[i(1057)](e[i(k)]),t=a.limit?c._filterPOIData_polygon(t,_):t,t={allcount:e.total,count:t[i(P)],list:t},a.success&&a.success(t),t;a.error&&a[i(1419)]("未查询到相关结果!",e)}}).catch(function(e){var t=l;logError$1("BaiduPOI 请求出错",e),a[t(o)]&&a.error("请求出错",e)})}},{key:"_filterPOIData_polygon",value:function(e,t){var i=O;if(e&&t){for(var a={type:"Polygon",coordinates:[t=t.concat([t[0]])]},n=[],s=0;s<e[i(o)];s++){var r=e[s];booleanPointInPolygon({type:i(l),geometry:{type:"Point",coordinates:[r.x,r.y]}},a)&&n[i(c)](r)}return n}}}]),R}(),GaodePOI=function(){var o=2822,d=2706,f=1377,y=2822,v=1844,g=602,C=3878,x=2017,c=3600,h=1018,t=3143,i=3254,_=2017,l=1844,u=1592,p=452,e=3718,r=3277,m=3858,b=3254,k=3718,P=2589,w=452,a=1189,S=3254,T=3254,M=2155,n=340,s=2822,E=_0x1658de;function A(){var e=_0x236b,t=0<arguments[e(s)]&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,A),this._key_index=0,this[e(2302)]=t.key||gaodeArr}return _createClass(A,[{key:"keys",get:function(){return this._keys},set:function(e){this._keys=e}},{key:"key",get:function(){var e=_0x236b,t=this[e(n)]++%this._keys.length;return this[e(2302)][t]}},{key:"_formatPOIData",value:function(e){for(var t=_0x236b,i=[],a=0;a<e.length;a++){var n=e[a],s=[];n[t(S)]&&0<n[t(T)].length&&(s=gcj2wgs(n.location.split(","))),i.push({id:n.id,name:n[t(640)],lng:Number(s[0]),lat:Number(s[1]),type:n.type,xzqh:n[t(M)]+n.cityname+n[t(855)],address:n.address,tel:n.tel||"",info:n,x:Number(s[0]),y:Number(s[1])})}return i}},{key:"_getKeywords",value:function(e){var t=_0x236b;return isString(e)?e[t(1189)](/ /gm,"|")[t(a)](/,/gm,"|"):Array.isArray(e)?e.join("|"):e}},{key:"getAddress",value:function(a){var e,t,n=2342,s=873,r=_0x236b,o=this;return this._getAddress_ing?Promise.resolve():(e={key:this.key,output:"json"},a.location=LngLatPoint[r(332)](a[r(3254)]),t=wgs2gcj([a.location.lng,a.location[r(654)]]),e.location=t[0]+","+t[1],this._getAddress_ing=!0,Cesium__namespace.Resource.fetchJsonp(_objectSpread2(_objectSpread2({url:"https://restapi.amap.com/v3/geocode/regeo"},this.options),{},{queryParameters:e}))[r(P)](function(e){var t,i=r;if(o[i(n)]=!1,e[i(357)]===i(s))return t={address:(i=e[i(1149)]).formatted_address,city:null==(t=i.addressComponent)?void 0:t.adcode,component:i.addressComponent},a.success&&a.success(t),t;console.log("未查询到相关结果!",e)}).catch(function(e){var t=r;o._getAddress_ing=!1,logError$1(t(w),e),a.error&&a[t(1419)]("请求出错",e)}))}},{key:"autoTip",value:function(a){var e,n=_0x236b,s=this,t={key:this.key,output:"json"};return Cesium__namespace[n(r)](a.city)&&(t.city=a.city,t[n(m)]=!0),Cesium__namespace.defined(a.citylimit)&&(t.citylimit=a[n(3858)]),a.text&&(t.keywords=this._getKeywords(a.text)),a.location&&(a[n(3254)]=LngLatPoint[n(332)](a.location),e=wgs2gcj([a.location.lng,a.location.lat]),t[n(b)]=e[0]+","+e[1]),fetchJson(_objectSpread2({url:"https://restapi.amap.com/v3/assistant/inputtips",queryParameters:t},this.options)).then(function(e){var t,i=n;if(e.tips)return t=s._formatPOIData(e.tips),i={allcount:e[i(3143)],count:t[i(2822)],list:t},a.success&&a.success(i),i;console.log("未查询到相关结果!",e)})[n(k)](function(e){logError$1("GaodePOI 请求出错",e),a.error&&a.error("请求出错",e)})}},{key:"detail",value:function(a){var n=357,s=2647,r=1419,o=1419,l=_0x236b;return fetchJson(_objectSpread2({url:"https://restapi.amap.com/v3/place/detail",queryParameters:{key:this.key,id:a.id,output:"json"}},this[l(1592)])).then(function(e){var t,i=l;if("10000"!==e[i(357)])t="POI 请求失败("+e[i(n)]+"):"+e[i(s)],a[i(1419)]&&a[i(r)](t);else{if(e.pois&&0!==e.pois[i(2822)])return t=e.pois[0],a[i(1162)]&&a.success(t),t;a[i(o)]&&a.error("未查询到相关结果!",e)}})[l(e)](function(e){var t=l;logError$1("GaodePOI 请求出错",e),a.error&&a[t(1419)]("请求出错",e)})}},{key:E(1304),value:function(e){var t=E,i=e[t(2353)];return i?"rectangle"===i.type?(e.polygon=i.outlineCoordinates,this.queryPolygon(e)):i.type===t(1377)?(e.polygon=i.coordinates,this.queryPolygon(e)):"circle"===i.type?(e.location=i.point,e[t(402)]=i.radius,this.queryCircle(e)):Promise[t(1049)]():e.polygon?this.queryPolygon(e):this.queryText(e)}},{key:"queryText",value:function(a){var n=3143,s=E,r=this,e={key:this.key,output:s(2706),page:(a[s(3492)]||0)+1,offset:a.count||20,types:a.types||""};return Cesium__namespace.defined(a.city)&&(e.city=a[s(716)],e.citylimit=!0),Cesium__namespace[s(3277)](a.citylimit)&&(e.citylimit=a.citylimit),a[s(3045)]?e[s(l)]=this._getKeywords(a.text):e.types||(e.types="120000|130000|190000"),fetchJson(_objectSpread2({url:"https://restapi.amap.com/v3/place/text",queryParameters:e},this[s(u)])).then(function(e){var t,i=s;if("10000"!==e.infocode)t=i(848)+e[i(357)]+"):"+e.info,a.error&&a.error(t);else{if(e.pois)return t=r._formatPOIData(e.pois),i={allcount:e[i(n)],count:t[i(2822)],list:t},a.success&&a.success(i),i;a.error&&a.error("未查询到相关结果!",e)}}).catch(function(e){logError$1(s(p),e),a.error&&a.error("请求出错",e)})}},{key:"queryCircle",value:function(a){var e,n=1419,s=1419,r=3999,o=402,l=1162,c=E,h=this,u={output:"json",key:this[c(3982)],radius:a.radius||3e3,page:(a[c(3492)]||0)+1,offset:a[c(t)]||20,types:a.types||""};return a.location?(a.location=LngLatPoint.parse(a[c(i)]),e=wgs2gcj([a[c(3254)].lng,a.location.lat]),u.location=e[0]+","+e[1]):logError$1("GaodePOI: 请传入参location数"),a[c(3045)]?u.keywords=this._getKeywords(a[c(3045)]):u.types||(u.types=c(_)),fetchJson(_objectSpread2({url:"https://restapi.amap.com/v3/place/around",queryParameters:u},this.options)).then(function(e){var t,i=c;if("10000"!==e.infocode)a[i(n)]&&(t="POI 请求失败("+e.infocode+"):"+e.info,a.error(t));else{if(e.pois)return t=h._formatPOIData(e.pois),t=a.limit?h[i(r)](t,a.location,u[i(o)]):t,t={allcount:e[i(3143)],count:t.length,list:t},a.success&&a[i(l)](t),t;a.error&&a[i(s)]("未查询到相关结果!",e)}})[c(3718)](function(e){logError$1("GaodePOI 请求出错",e),a.error&&a.error("请求出错",e)})}},{key:"_filterPOIData_circle",value:function(e,t,i){var a=E;if(!e||!t||!i)return e;for(var n=t[a(c)](),s=[],r=0;r<e.length;r++){var o=e[r],l=Cesium__namespace[a(784)].fromDegrees(o.x,o.y,t.alt);Cesium__namespace.Cartesian3.distance(l,n)<i&&s[a(h)](o)}return s}},{key:E(4036),value:function(a){var i=1419,n=1419,s=1162,r=E,o=this,e={key:this.key,output:r(d),page:(a.page||0)+1,offset:a.count||20,types:a[r(3878)]||""},t=a[r(f)],l=[];if(2===t[r(2822)]){var c=wgs2gcj(t[0]),h=wgs2gcj(t[1]);e[r(1377)]=c[0]+","+c[1]+"|"+h[0]+","+h[1],l=[t[0],[t[0][0],t[1][1]],t[1],[t[1][0],t[0][1]]]}else{for(var l=t,u="",_=t.concat([t[0]]),p=0;p<_[r(y)];p++){var m=wgs2gcj(_[p]);p===_[r(y)]-1?u+=m[0]+","+m[1]:u+=m[0]+","+m[1]+"|"}e.polygon=u}return a.text?e[r(v)]=this[r(g)](a.text):e[r(C)]||(e.types=r(x)),fetchJson(_objectSpread2({url:"https://restapi.amap.com/v3/place/polygon",queryParameters:e},this.options)).then(function(e){var t,i=r;if(e[i(357)]!==i(873))a.error&&(t="POI 请求失败("+e.infocode+"):"+e[i(2647)],a[i(n)](t));else{if(e.pois)return t=o._formatPOIData(e.pois),t=a[i(3896)]?o._filterPOIData_polygon(t,l):t,t={allcount:e.count,count:t.length,list:t},a.success&&a[i(s)](t),t;a.error&&a.error("未查询到相关结果!",e)}}).catch(function(e){var t=r;logError$1("GaodePOI 请求出错",e),a[t(i)]&&a.error("请求出错",e)})}},{key:"_filterPOIData_polygon",value:function(e,t){var i=E;if(e&&t){for(var a={type:"Polygon",coordinates:[t=t.concat([t[0]])]},n=[],s=0;s<e[i(o)];s++){var r=e[s];booleanPointInPolygon({type:"Feature",geometry:{type:"Point",coordinates:[r.x,r.y]}},a)&&n.push(r)}return n}}}]),A}(),TdtPOI=function(){var e=3018,t=2108,i=4036,a=2569,l=1561,c=2557,h=3878,u=602,o=3950,_=3308,m=1326,d=3068,f=3045,p=3254,y=3323,v=1592,r=1891,g=1419,C=1057,n=1990,x=716,b=1823,k=1592,P=2589,w=1057,S=654,T=3254,M=4039,E=2908,s=2302,A=2822,L=_0x1658de;function D(){var e=_0x236b,t=0<arguments[e(A)]&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,D),this[e(340)]=0,this[e(2302)]=t.key||tiandituArr}return _createClass(D,[{key:"keys",get:function(){return this._keys},set:function(e){this[_0x236b(s)]=e}},{key:L(3982),get:function(){var e=this._key_index++%this._keys.length;return this._keys[e]}},{key:L(1057),value:function(e){for(var t=L,i=[],a=0;a<e[t(2822)];a++){var n=e[a],s=[];n.lonlat&&0<n.lonlat.length&&(s=n[t(1560)].split(",")),i[t(1018)]({id:n[t(2262)],name:n.name,lng:Number(s[0]),lat:Number(s[1]),type:n.typeName,xzqh:n.province+n[t(716)]+n.county,address:n.address,tel:n.phone||"",info:n,x:Number(s[0]),y:Number(s[1])})}return i}},{key:"_getKeywords",value:function(e){return isString(e)?e.replace(/ /gm,"|").replace(/,/gm,"|"):Array.isArray(e)?e.join("|"):e}},{key:"getAddress",value:function(n){var e,s=596,r=L,o=this;return this._getAddress_ing?Promise.resolve():(e={ver:1},n.location=LngLatPoint.parse(n.location),e.lon=n.location.lng,e[r(S)]=n[r(T)].lat,this._getAddress_ing=!0,sendAjax(_objectSpread2(_objectSpread2({url:r(M)},this.options),{},{queryParameters:{type:r(E),tk:this.key,postStr:JSON.stringify(e)}}))[r(2589)](function(e){var t,i,a=r;if(o._getAddress_ing=!1,1e3===(null==(t=e.status)?void 0:t.infocode))return i={address:(t=e.result).formatted_address,city:((null==(i=t.addressComponent)?void 0:i[a(s)])||"")[a(1189)]("156",""),component:t.addressComponent},n.success&&n[a(1162)](i),i;console.log("未查询到相关结果!",e)}).catch(function(e){var t=r;o._getAddress_ing=!1,logError$1(t(414),e),n.error&&n.error(t(1383),e)}))}},{key:"autoTip",value:function(a){var i=1419,n=L,s=this,e={queryType:7,show:1,level:a[n(1461)]||18,mapBound:a[n(3596)]||"70,18,134,51",start:0,offset:10};return Cesium__namespace.defined(a[n(x)])&&(e[n(1891)]=n(b)+a.city),Cesium__namespace.defined(a.types)&&(e.dataTypes=a.types),a.text&&(e.keyWord=this._getKeywords(a.text)),fetchJson(_objectSpread2({url:n(820),queryParameters:{type:"query",tk:this.key,postStr:JSON.stringify(e)}},this[n(k)]))[n(P)](function(e){var t,i=n;if(1e3!==(null==(t=e.status)?void 0:t.infocode))console.log(i(3634),e),a[i(1419)]&&a.error(e.status[i(1219)],e);else{if(e.pois)return t=s[i(w)](e.pois),t={allcount:e[i(3143)],count:t.length,list:t},a.success&&a[i(1162)](t),t;a.error&&a.error("未查询到相关结果!",e)}}).catch(function(e){var t=n;logError$1("TdtPOI 请求出错",e),a[t(i)]&&a[t(1419)]("请求出错",e)})}},{key:L(1304),value:function(e){var t=L,i=e.graphic;return i?"rectangle"===i.type?(e.polygon=i.outlineCoordinates,this.queryPolygon(e)):"polygon"===i.type?(e[t(1377)]=i.coordinates,this.queryPolygon(e)):i.type===t(n)?(e.location=i.point,e.radius=i.radius,this.queryCircle(e)):Promise.resolve():e.polygon?this.queryPolygon(e):this.queryText(e)}},{key:L(e),value:function(a){var n=L,s=this,e=a.count||20,e={queryType:7,show:2,level:a.level||18,mapBound:a.mapBound||"70,18,134,51",start:(a.page||0)*e,offset:e};return Cesium__namespace.defined(a.city)&&(e[n(r)]="156"+a[n(716)]),Cesium__namespace.defined(a.types)&&(e[n(2976)]=a.types),a.text&&(e.keyWord=this._getKeywords(a.text)),fetchJson(_objectSpread2({url:n(820),queryParameters:{type:"query",tk:this.key,postStr:JSON.stringify(e)}},this.options)).then(function(e){var t,i=n;if(1e3!==(null==(t=e[i(2840)])?void 0:t[i(357)]))console.log("未查询到相关结果!",e),a.error&&a.error(e.status[i(1219)],e);else{if(e[i(3502)])return t=s[i(C)](e.pois),t={allcount:e.count,count:t.length,list:t},a.success&&a.success(t),t;a[i(g)]&&a[i(1419)](i(3634),e)}}).catch(function(e){logError$1("TdtPOI 请求出错",e),a.error&&a.error("请求出错",e)})}},{key:L(t),value:function(a){var i=1419,n=L,s=this,e=a.count||20,r={queryType:3,show:2,queryRadius:formatNum$1(a.radius||3e3,0),start:(a.page||0)*e,offset:e};return a.location?(a.location=LngLatPoint.parse(a[n(p)]),r[n(1214)]=a.location.lng+","+a.location.lat):logError$1("TdtPOI: 请传入参location数"),Cesium__namespace.defined(a.types)&&(r.dataTypes=a.types),a.text&&(r[n(y)]=this._getKeywords(a.text)),fetchJson(_objectSpread2({url:"http://api.tianditu.gov.cn/v2/search",queryParameters:{type:n(1304),tk:this.key,postStr:JSON.stringify(r)}},this[n(v)])).then(function(e){var t,i=n;if(1e3!==(null==(t=e.status)?void 0:t.infocode))a.error&&a[i(1419)](e[i(2840)].cndesc,e);else{if(e[i(3502)])return t=s._formatPOIData(e.pois),i=a.limit?s._filterPOIData_circle(t,a.location,r.radius):t,t={allcount:e.count,count:i.length,list:i},a.success&&a.success(t),t;a.error&&a.error("未查询到相关结果!",e)}})[n(3718)](function(e){var t=n;logError$1("TdtPOI 请求出错",e),a.error&&a[t(i)]("请求出错",e)})}},{key:L(3999),value:function(e,t,i){if(!e||!t||!i)return e;for(var a=t.toCartesian(),n=[],s=0;s<e.length;s++){var r=e[s],o=Cesium__namespace.Cartesian3.fromDegrees(r.x,r.y,t.alt);Cesium__namespace.Cartesian3.distance(o,a)<i&&n.push(r)}return n}},{key:L(i),value:function(a){var i=1419,n=1419,s=1219,r=3634,o=3143,l=L,c=this,e=a[l(3143)]||20,e={queryType:10,show:2,start:(a.page||0)*e,offset:e},h=LngLatArray[l(m)](a.polygon);if(2===h.length)return a.extent=a.polygon,this[l(d)](a);for(var t="",u=h.concat([h[0]]),_=0;_<u.length;_++){var p=u[_];_===u.length-1?t+=p[0]+","+p[1]:t+=p[0]+","+p[1]+","}return e.polygon=t,Cesium__namespace.defined(a.types)&&(e.dataTypes=a.types),a[l(f)]&&(e[l(3323)]=this._getKeywords(a.text)),fetchJson(_objectSpread2({url:"http://api.tianditu.gov.cn/v2/search",queryParameters:{type:"query",tk:this[l(3982)],postStr:JSON.stringify(e)}},this[l(1592)])).then(function(e){var t,i=l;if(1e3!==(null==(t=e.status)?void 0:t[i(357)]))a[i(n)]&&a[i(1419)](e[i(2840)][i(s)],e);else{if(e.pois)return t=c._formatPOIData(e[i(3502)]),t=a.limit?c[i(2569)](t,h):t,t={allcount:e[i(o)],count:t.length,list:t},a.success&&a.success(t),t;a.error&&a.error(i(r),e)}}).catch(function(e){var t=l;logError$1("TdtPOI 请求出错",e),a[t(i)]&&a.error("请求出错",e)})}},{key:L(a),value:function(e,t){var i=L;if(e&&t){t=t.concat([t[0]]);for(var a={type:i(o),coordinates:[t]},n=[],s=0;s<e.length;s++){var r=e[s];booleanPointInPolygon({type:"Feature",geometry:{type:i(_),coordinates:[r.x,r.y]}},a)&&n.push(r)}return n}}},{key:L(3068),value:function(a){var n=1419,s=3143,r=L,o=this,e=a.count||20,e={queryType:2,show:2,level:18,start:(a[r(3492)]||0)*e,offset:e},t=a[r(l)][0],i=a.extent[1];return e.mapBound="".concat(t[0],",").concat(t[1],",")[r(c)](i[0],",").concat(i[1]),Cesium__namespace.defined(a[r(h)])&&(e[r(2976)]=a.types),a[r(3045)]&&(e.keyWord=this[r(u)](a.text)),fetchJson(_objectSpread2({url:"http://api.tianditu.gov.cn/v2/search",queryParameters:{type:"query",tk:this.key,postStr:JSON.stringify(e)}},this.options))[r(2589)](function(e){var t,i=r;if(1e3!==(null==(t=e[i(2840)])?void 0:t.infocode))a.error&&a.error(e.status.cndesc,e);else{if(e.pois)return t=o._formatPOIData(e.pois),t={allcount:e[i(s)],count:t.length,list:t},a[i(1162)]&&a.success(t),t;a[i(n)]&&a.error("未查询到相关结果!",e)}}).catch(function(e){var t=r;logError$1("TdtPOI 请求出错",e),a.error&&a.error(t(1383),e)})}}]),D}(),RouteType={Walking:1,Bicycling:2,Driving:3},GaodeRoute=function(){var g=2706,C=2822,x=2822,b=1592,o=3945,l=1565,c=2832,h=1592,u=1e3,_=2589,a=1419,i=1356,n=975,v=2822,k=2822,P=1937,w=1018,S=1018,T=_0x1658de;function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this._key_index=0,this._keys=e.key||gaodeArr}return _createClass(t,[{key:"keys",get:function(){return this[_0x236b(2302)]},set:function(e){this._keys=e}},{key:"key",get:function(){var e=_0x236b,e=this._key_index++%this[e(2302)].length;return this._keys[e]}},{key:"_formatRouteData",value:function(e,t,i){var a,n,s=_0x236b,r=[];if(e&&(a=gcj2wgs(e.split(","))),t&&(n=gcj2wgs(t.split(","))),i&&0<i[s(v)])for(var o=0;o<i[s(2822)];o++){for(var l=[],c=(l.push(a),i[o]),h=c.steps,u=[],_=[],p=0;p<h[s(k)];p++){for(var m={instruction:h[p].instruction,distance:h[p][s(P)],duration:h[p].duration,points:[],route:h[p].road},d=h[p].polyline.split(";"),f=0;f<d.length;f++){var y=gcj2wgs(d[f].split(","));l.push(y),m.points[s(w)](y)}_.push(m.route),u.push(m)}l[s(S)](n),r.push({allDistance:c.distance,allDuration:c[s(2320)],steps:u,points:l,road:_})}return{origin:a,destination:n,paths:r}}},{key:T(1304),value:function(e){var t=T;switch(e[t(1488)]){case RouteType.Bicycling:return this.queryBicycling(e);case RouteType[t(i)]:return this.queryDriving(e);default:RouteType[t(n)];return this[t(2914)](e)}}},{key:"queryArr",value:function(y){var i=this;return new Promise(function(n,e){var t,s=3945,r=1419,o=1095,l=1095,c=1018,h=2822,u=_0x236b,_=i,p=-1,m={};for(t in y)"points"!==t&&"success"!==t&&t!==u(a)&&(m[t]=y[t]);var d=y.points,f=[];!function i(){var a=u;p++,m[a(s)]=d[p],m.success=function(e){var t=a;e&&e[t(o)]&&0<e[t(l)].length?f.push(e.paths[0]):f[t(c)](null),p>=d[t(h)]-1?(y.success&&y.success(f),n(f)):i()},m[a(r)]=m.success,_.query(m)}()})}},{key:T(2624),value:function(e){for(var t=Number.MAX_VALUE,i=null,a=-1,n=0;n<e.length;n++){var s=e[n];s&&s.allDistance<=t&&(a=n,t=(i=s).allDistance)}return{lineData:i,index:a}}},{key:"queryWalking",value:function(a){var i=1419,n=T,s=this,r={key:this[n(3982)],output:"json"},e=wgs2gcj(a.points[0]),t=wgs2gcj(a.points[a.points.length-1]);return r.origin=e[0]+","+e[1],r.destination=t[0]+","+t[1],fetchJson(_objectSpread2({url:n(u),queryParameters:r},this.options))[n(_)](function(e){var t,i=n;if(e.infocode!==i(873))a.error&&(t="路径规划 请求失败("+e.infocode+"):"+e[i(2647)],a.error(t));else{if(e.route&&e.route.paths)return t=s[i(1710)](r.origin,r.destination,e.route[i(1095)]),a.success&&a.success(t),t;a.error&&a[i(1419)](i(3634))}}).catch(function(e){var t=n;logError$1("GaodeRoute 请求出错",e),a[t(i)]&&a[t(1419)]("请求出错",e)})}},{key:"queryBicycling",value:function(a){var i=1678,n=T,s=this,r={key:this.key,output:"json"},e=wgs2gcj(a[n(o)][0]),t=wgs2gcj(a.points[a[n(3945)].length-1]);return r[n(l)]=e[0]+","+e[1],r.destination=t[0]+","+t[1],fetchJson(_objectSpread2({url:n(c),queryParameters:r},this[n(h)])).then(function(e){var t,i=n;if(e.infocode!==i(873))t="路径规划 请求失败("+e.infocode+"):"+e.info,a.error&&a.error(t);else{if(e.route&&e.route.paths)return t=s[i(1710)](r[i(1565)],r.destination,e.route.paths),a.success&&a.success(t),t;a[i(1419)]&&a[i(1419)](i(3634))}}).catch(function(e){var t=n;logError$1(t(i),e),a.error&&a[t(1419)]("请求出错",e)})}},{key:T(868),value:function(a){var i=1419,n=1839,s=T,r=this,o={key:this.key,output:s(g),extensions:a.extensions||"base",strategy:a[s(3550)]||0},e=wgs2gcj(a[s(3945)][0]),t=wgs2gcj(a.points[a.points.length-1]);if(o.origin=e[0]+","+e[1],o.destination=t[0]+","+t[1],2<a.points[s(C)]){for(var l="",c=1,h=a.points[s(x)]-1;c<h;c++){var u=wgs2gcj(a.points[c]);l+=u[0]+","+u[1]+";"}o.waypoints=l}if(0<(null==(e=a.avoidpolygons)?void 0:e.length)){for(var _="",p=0,m=a.avoidpolygons.length;p<m;p++){0<p&&(_+="|");for(var d=a[s(2128)][p],f=0,y=d.length;f<y;f++){var v=wgs2gcj(d[f]);_+=v[0]+","+v[1]+";"}}o.avoidpolygons=_}return fetchJson(_objectSpread2({url:"https://restapi.amap.com/v3/direction/driving",queryParameters:o},this[s(b)])).then(function(e){var t,i=s;if("10000"!==e.infocode)a[i(1419)]&&(t="路径规划 请求失败("+e.infocode+"):"+e.info,a.error(t));else{if(e.route&&e[i(1839)][i(1095)]&&0!==e.route.paths.length)return t=r._formatRouteData(o.origin,o.destination,e[i(n)][i(1095)]),a[i(1162)]&&a[i(1162)](t),t;a[i(1419)]&&a.error("未查询到相关结果!")}}).catch(function(e){var t=s;logError$1("GaodeRoute 请求出错",e),a[t(1419)]&&a[t(i)]("请求出错",e)})}}]),t}(),Def_Parameters=(GaodeRoute.RouteType=RouteType,{service:_0x1658de(4005),request:_0x1658de(3986),version:"1.0.0",outputFormat:"application/json",maxFeatures:1e3}),QueryGeoServer=function(){var e=1304,t=3247,i=3153,a=3574,n=2686,h=2822,u=1049,_=1504,p=1018,m=2003,d=2353,f=3036,y=3277,v=2557,g=1265,C=1243,x=2353,b=1488,k=1377,P=3277,w=2131,S=2131,T=1592,M=2602,E=3385,s=3153,r=2003,A=_0x1658de,o=(_inherits(l,BaseClass),_createSuper(l));function l(){return _classCallCheck(this,l),o.apply(this,arguments)}return _createClass(l,[{key:A(3385),get:function(){var e,t=A;return this[t(2003)]||(delete(e=_objectSpread2({},this[t(1592)])).url,delete e.data,this._geoJsonLayer=new GeoJsonLayer(e),this._geoJsonLayer.on(EventType.load,this[t(s)],this),this[t(r)].on(EventType.click,this.geoJsonLayer_onClickHandler,this)),this._geoJsonLayer}},{key:A(e),value:function(n){var e=A,s=this,t='<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><And>';if(n.text&&(Cesium__namespace.defaultValue(n.like,!0)?t+=' <PropertyIsLike wildCard="*" singleChar="#" escapeChar="!">\n <PropertyName>'.concat(n[e(1697)],"</PropertyName>\n <Literal>*").concat(n.text,e(g)):t+="<PropertyIsEqualTo>\n <PropertyName>".concat(n.column,e(C)).concat(n[e(3045)],"</Literal>\n </PropertyIsEqualTo> ")),n[e(x)]){var i,a=n.graphic;if("rectangle"===a[e(b)]?i=a.outlineCoordinates:a.type===e(k)?i=a.coordinates:"circle"===a.type?i=a.getOutlineCoordinates(!0,30):Cesium__namespace[e(3277)](a[e(2535)])&&Cesium__namespace.defined(a.xmin)&&Cesium__namespace[e(P)](a.ymin)&&Cesium__namespace.defined(a[e(w)])&&(i=[[a.xmin,a[e(w)]],[a.xmin,a.ymin],[a.xmax,a.ymin],[a.xmax,a[e(S)]]]),i){i.push(i[0]);for(var r="",o=0;o<i.length;o++){var l=i[o];r+=(l=this[e(1592)].crs&&this[e(T)].crs!==CRS.EPSG4326&&this.options.crs!==CRS[e(1759)]?proj4Trans(l,"EPSG:4326",this.options[e(2022)]):l)[0]+","+l[1]+" "}t+="<Intersects>\n <PropertyName>".concat(n.geometryName||"the_geom","</PropertyName>\n <gml:Polygon>\n <gml:outerBoundaryIs>\n <gml:LinearRing>\n <gml:coordinates>").concat(r,e(M))}}t+="</And></Filter>";var c=_objectSpread2(_objectSpread2(_objectSpread2({},Def_Parameters),n),{},{typeName:this[e(1592)][e(E)],filter:t});return delete c.success,delete c[e(1419)],delete c.graphic,delete c.text,delete c[e(1697)],new Promise(function(t,i){var a=1419;sendAjax(_objectSpread2(_objectSpread2({},s.options),{},{queryParameters:c})).then(function(e){n._promise={resolve:t,reject:i},s.processFeatureCollection(e,n)}).catch(function(e){var t=_0x236b;logError$1("QueryGeoServer 请求出错",e),n.error&&n[t(a)]("请求出错",e)})})}},{key:A(t),value:function(a){var e=A,n=this,t=a.cql_filter||"1=1";if(a.graphic){var i,s,r=a[e(d)],o=a.geometryName||"the_geom";if("rectangle"===r.type?(s=(r=r[e(f)]({isFormat:!0})).xmin+","+r.ymin+","+r.xmax+","+r.ymax,t+=" and BBOX(".concat(o,", ").concat(s,")")):"polygon"===r.type?i=r.coordinates:"circle"===r.type?i=r.getOutlineCoordinates(!0,30):Cesium__namespace[e(y)](r[e(2535)])&&Cesium__namespace[e(3277)](r[e(1447)])&&Cesium__namespace.defined(r.ymin)&&Cesium__namespace.defined(r.ymax)&&(s=r.xmin+","+r.ymin+","+r.xmax+","+r.ymax,t+=" and BBOX(".concat(o,", ").concat(s,")")),i){i.push(i[0]);for(var l=[],c=0;c<i.length;c++)l.push(i[c][0]+" "+i[c][1]);t+=" and INTERSECTS (".concat(o,",POLYGON((")[e(v)](l.join(","),")))")}}var h=_objectSpread2(_objectSpread2(_objectSpread2({},Def_Parameters),a),{},{typeName:this.options.layer,cql_filter:t});return delete h.success,delete h.error,delete h.graphic,new Promise(function(t,i){sendAjax(_objectSpread2(_objectSpread2({},n[e(1592)]),{},{queryParameters:h})).then(function(e){a._promise={resolve:t,reject:i},n.processFeatureCollection(e,a)}).catch(function(e){logError$1("QueryGeoServer 请求出错",e),a.error&&a.error("请求出错",e)})})}},{key:"processFeatureCollection",value:function(a,n){var s=2822,r=A;if((a=a&&"Feature"===a.type?{type:r(1442),features:[a]}:a)&&a.features&&0!==a[r(1504)][r(h)]){for(var e,t,i=[],o=0;o<a.features.length;o++){var l,c=a[r(_)][o];0<(null==c||null==(l=c.geometry)||null==(l=l.coordinates)?void 0:l.length)&&i[r(p)](c)}a.features=i,this[r(m)]?(this._last_success=function(e){var t,i=r,e={geojson:a,count:a.features[i(s)],list:e};n.success&&n.success(e),null!=(t=n._promise)&&t[i(1049)]&&n._promise.resolve(e)},this[r(2003)].load({data:a})):(t={geojson:a,count:a[r(1504)].length},n.success&&n.success(t),null!=(e=n._promise)&&e.resolve&&n._promise.resolve(t))}else n.success&&n.success({count:0}),null!=(e=n._promise)&&e[r(u)]&&n[r(1493)].resolve({count:0})}},{key:A(i),value:function(e){var t=A;this[t(2686)]&&(this[t(2686)](e.list),this._last_success=null),this.fire(EventType.load,e)}},{key:A(a),value:function(e){var t=A;this.fire(EventType.click,_objectSpread2(_objectSpread2({},e),{},{layer:this[t(2003)]}))}},{key:"clear",value:function(){var e=A;this._last_success&&(this[e(n)]=null),this._geoJsonLayer&&this._geoJsonLayer.clear()}}]),l}(),QueryArcServer=function(){var e=964,t=2947,i=439,h=2822,u=964,_=1162,p=1493,m=1972,d=510,f=964,y=2318,v=1162,r=964,o=1162,l=1049,c=1933,a=2706,g=1042,C=1592,x=1697,b=3045,k=2353,P=1459,w=3277,S=3727,T=1196,M=3718,n=4e3,s=4e3,E=964,A=4e3,L=439,D=1285,I=1908,O=_0x1658de,H=(_inherits(R,BaseClass),_createSuper(R));function R(){var e,t=_0x236b,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,R),(e=H.call(this,i)).options=i,e._pageSize=null!=(i=i.pageSize)?i:10,e[t(1908)]=0,e._allPage=0,e._pageIndex=1,e[t(3382)]=[],e}return _createClass(R,[{key:"url",get:function(){return this.options.url},set:function(e){this[_0x236b(1592)].url=e}},{key:O(948),get:function(){return this[O(3363)]},set:function(e){this._pageSize=e}},{key:"allCount",get:function(){return this[O(I)]}},{key:O(e),get:function(){return this[O(D)]}},{key:O(2318),get:function(){return this._pageIndex},set:function(e){var t=O;this._pageIndex=e,this[t(L)](e)}},{key:"layer",get:function(){var e,t=O;return this._geoJsonLayer||(delete(e=_objectSpread2({},this.options)).url,delete e.data,this._geoJsonLayer=new GeoJsonLayer(e),this[t(2003)].on(EventType.load,this.geoJsonLayer_onLoadHandler,this),this._geoJsonLayer.on(EventType.click,this.geoJsonLayer_onClickHandler,this)),this._geoJsonLayer}},{key:"showFirstPage",value:function(){this.showPage(1)}},{key:"showPretPage",value:function(){var e=O;this._pageIndex=this._pageIndex-1,this._pageIndex<1&&(this._pageIndex=1),this.showPage(this[e(A)])}},{key:O(t),value:function(){var e=O;this._pageIndex=this[e(n)]+1,this._pageIndex>this.allPage&&(this[e(s)]=this[e(E)]),this.showPage(this._pageIndex)}},{key:O(i),value:function(e){this._pageIndex=e,this._queryPageByIds()}},{key:"query",value:function(n){var e,t,s=3405,r=2822,o=O,l=this,c=(this[o(4e3)]=1,this.arrIDS=[],{f:o(a),inSr:4326,outSR:4326,outFields:"*",returnGeometry:!0,where:n.where||o(g)});return this[o(C)].token&&(c.token=this[o(1592)].token),n[o(x)]&&(t="",t=null==(e=n.like)||e?n.column+" like '%"+n[o(b)]+"%' ":n.column+"='"+n.text+"'",c.where=t),n[o(2353)]&&(e=n[o(k)],c.spatialRel=o(P),"rectangle"===e.type?(t=e.outlineCoordinates,c.geometryType="esriGeometryEnvelope",c[o(1972)]=JSON.stringify({xmin:t[0][0],ymin:t[0][1],xmax:t[2][0],ymax:t[2][1],spatialReference:{wkid:4326}})):Cesium__namespace[o(w)](e.xmax)&&Cesium__namespace.defined(e.xmin)&&Cesium__namespace.defined(e.ymin)&&Cesium__namespace.defined(e[o(2131)])?(c.geometryType=o(1388),c.geometry=JSON.stringify({xmin:e.xmin,ymin:e[o(S)],xmax:e.xmax,ymax:e.ymax,spatialReference:{wkid:4326}})):(t="polygon"===e.type?e.toGeoJSON():"circle"===e[o(1488)]?{type:o(T),geometry:{type:"Polygon",coordinates:[e.outlineCoordinates]}}:n.graphic,c.geometry=JSON.stringify(geojsonToArcGIS$1(t.geometry)),c.geometryType=geojsonTypeToArcGIS(t.geometry.type))),new Promise(function(e,t){var i=791,a=o;n._promise={resolve:e,reject:t},null==(e=n.page)||e?(c.returnIdsOnly=!0,sendAjax(_objectSpread2(_objectSpread2({},l.options),{},{url:l.url+"/query",queryParameters:c})).then(function(e){var t=_0x236b,e=e.objectIds;e&&(l.arrIDS=e,l._allCount=e[t(r)],l[t(1285)]=Math.ceil(l._allCount/l[t(3363)])),delete c.returnIdsOnly,l._queryPageByIds(c,n)}).catch(function(e){var t=_0x236b;logError$1("QueryArcServer 请求出错",e),n.error&&n[t(1419)](e,e.message)})):sendAjax(_objectSpread2(_objectSpread2({},l.options),{},{url:l.url+"/query",queryParameters:c})).then(function(e){var t=_0x236b,e=arcgisToGeoJSON$1(e);l[t(s)](e,n)})[a(M)](function(e){var t=a;logError$1(t(i),e),n.error&&n[t(1419)](e,e.message)})})}},{key:"_queryPageByIds",value:function(e,t){var i,a,n=O,s=this;e?this[n(3044)]=e:this.lastParameters&&(e=this.lastParameters),t?this.lastQueryOpts=t:this.lastParameters&&(t=this.lastQueryOpts),!this.arrIDS||0===this.arrIDS.length||this._pageIndex<1||this._pageIndex>this.allPage?(i={geojson:null,count:0,allCount:this.allCount,pageSize:this.pageSize,allPage:this[n(r)],pageIndex:this[n(2318)]},t[n(o)]&&t.success(i),null!=(a=t._promise)&&a.resolve&&t._promise[n(l)](i)):(a=(this._pageIndex-1)*this._pageSize,i=this._pageIndex*this._pageSize,a=this[n(3382)].slice(a,i),e.objectIds=a[n(2280)](","),sendAjax(_objectSpread2(_objectSpread2({},this.options),{},{url:this.url+n(c),queryParameters:e})).then(function(e){e=arcgisToGeoJSON$1(e);s.processFeatureCollection(e,t)}).catch(function(e){logError$1("QueryArcServer 请求出错",e),t.error&&t.error(e,e.message)}))}},{key:"processFeatureCollection",value:function(e,i){var a=O;if(e&&e[a(1504)]&&0!==e[a(1504)][a(h)]){for(var t=[],n=0;n<e[a(1504)].length;n++){var s,r=e.features[n];0<(null==r||null==(s=r[a(m)])||null==(s=s.coordinates)?void 0:s.length)&&t.push(r)}e.features=t;var o={geojson:e,count:e.features.length,allCount:this[a(d)],pageSize:this.pageSize,allPage:this[a(f)],pageIndex:this[a(y)]};this._geoJsonLayer?(this._last_success=function(e){var t=a;o[t(741)]=e,i.success&&i[t(v)](o),null!=(e=i._promise)&&e.resolve&&i._promise.resolve(o)},this._geoJsonLayer.load({data:e})):(i[a(_)]&&i.success(o),null!=(c=i._promise)&&c.resolve&&i._promise.resolve(o))}else{var l,c={geojson:null,count:0,allCount:this.allCount,pageSize:this.pageSize,allPage:this[a(u)],pageIndex:this.pageIndex};i[a(_)]&&i.success(c),null!=(l=i[a(p)])&&l.resolve&&i[a(1493)].resolve(c)}}},{key:"geoJsonLayer_onLoadHandler",value:function(e){this._last_success&&(this._last_success(e.list),this._last_success=null),this.fire(EventType.load,e)}},{key:"geoJsonLayer_onClickHandler",value:function(e){this.fire(EventType.click,_objectSpread2(_objectSpread2({},e),{},{layer:this._geoJsonLayer}))}},{key:"clear",value:function(){this._last_success&&(this._last_success=null),this._geoJsonLayer&&this._geoJsonLayer.clear()}}]),R}();function geojsonTypeToArcGIS(e){var t,i=686,a=_0x1658de;switch(e){case"MultiPoint":t="esriGeometryMultipoint";break;case"LineString":case a(2648):t="esriGeometryPolyline";break;case"Polygon":case a(i):t="esriGeometryPolygon";break;default:t="esriGeometryPoint"}return t}var index={__proto__:null,BaiduPOI:BaiduPOI,GaodePOI:GaodePOI,TdtPOI:TdtPOI,GaodeRoute:GaodeRoute,QueryGeoServer:QueryGeoServer,QueryArcServer:QueryArcServer},name=_0x1658de(2159),website="http://gis3d.cn",author="合肥火星科技有限公司";exports.Cesium=Cesium__namespace,Object.defineProperty(exports,_0x1658de(714),{enumerable:!0,get:function(){return Cesium[_0x1658de(714)]}}),exports.BaseClass=BaseClass,exports.BaseMaterialConver=BaseMaterialConver,exports.BaseStyleConver=BaseStyleConver,exports.BaseThing=BaseThing,exports[_0x1658de(587)]=BillboardStyleConver,exports.BoxStyleConver=BoxStyleConver,exports[_0x1658de(3789)]=CRS,exports.ChinaCRS=ChinaCRS,exports.CircleStyleConver=CircleStyleConver,exports.ClipType=ClipType,exports.CloudStyleConver=CloudStyleConver,exports.ColorOptsConver=ColorOptsConver,exports.ControlType=ControlType,exports.ControlUtil=ControlUtil,exports.CorridorStyleConver=CorridorStyleConver,exports[_0x1658de(2913)]=CylinderStyleConver,exports.DivGraphicStyleConver=DivGraphicStyleConver,exports.DomUtil=DomUtil,exports.DrawUtil=DrawUtil,exports.EffectType=EffectType,exports[_0x1658de(3269)]=EffectUtil,exports[_0x1658de(2873)]=EllipsoidStyleConver,exports.EventType=EventType,exports.GraphicType=GraphicType,exports.GraphicUtil=GraphicUtil,exports.GroundSkyBox=GroundSkyBox,exports[_0x1658de(2845)]=GroupThing,exports.Icon=Icon,exports.ImageOptsConver=ImageOptsConver,exports.LabelStyleConver=LabelStyleConver,exports[_0x1658de(3469)]=Lang,exports[_0x1658de(2678)]=LangType,exports.LayerType=LayerType,exports.LayerUtil=LayerUtil,exports.LngLatArray=LngLatArray,exports.LngLatPoint=LngLatPoint,exports[_0x1658de(475)]=LocalWorldTransform,exports.Log=Log,exports.Map=Map,exports.MarsArray=MarsArray,exports.MaterialType=MaterialType$1,exports.MaterialUtil=MaterialUtil,exports.MeasureUtil=MeasureUtil,exports.ModelStyleConver=ModelStyleConver,exports[_0x1658de(2176)]=MoveType,exports[_0x1658de(2719)]=MultipleSkyBox,exports.PathStyleConver=PathStyleConver,exports.PlaneStyleConver=PlaneStyleConver,exports.PointStyleConver=PointStyleConver,exports.PointTrans=PointTrans,exports.PointUtil=PointUtil,exports.PolyUtil=PolyUtil,exports.PolygonStyleConver=PolygonStyleConver,exports.PolylineStyleConver=PolylineStyleConver,exports.PolylineVolumeStyleConver=PolylineVolumeStyleConver,exports.RectangleStyleConver=RectangleStyleConver,exports.RectangularSensorStyleConver=RectangularSensorStyleConver,exports[_0x1658de(2291)]=State,exports.Texture3=Texture3,exports.Token=Token,exports[_0x1658de(2030)]=Util,exports.WallStyleConver=WallStyleConver,exports[_0x1658de(774)]=author,exports[_0x1658de(3122)]=index$1,exports.effect=index$2,exports.graphic=index$6,exports.layer=index$4,exports.material=index$7,exports.name=name,exports.proj4=proj4,exports.provider=index$5,exports.query=index,exports.thing=index$3,exports.update=update,exports.version=version,exports.website=website,Object.defineProperty(exports,"__esModule",{value:!0})});
|