@mapgis/webclient-vue-cesium 17.4.14 → 17.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-libs/webclient-vue-cesium.umd.min.js +1 -1
- package/package.json +1 -1
- package/dist-libs/webclient-vue-cesium.common.1.js +0 -12943
- package/dist-libs/webclient-vue-cesium.common.2.js +0 -1548
- package/dist-libs/webclient-vue-cesium.common.js +0 -330886
- package/dist-libs/webclient-vue-cesium.umd.1.js +0 -12943
- package/dist-libs/webclient-vue-cesium.umd.2.js +0 -1548
- package/dist-libs/webclient-vue-cesium.umd.js +0 -330896
|
@@ -941,7 +941,7 @@ e["default"]=r["a"].defineLocale("fy",{months:"jannewaris_febrewaris_maart_april
|
|
|
941
941
|
//! moment.js locale configuration
|
|
942
942
|
//! locale : Uzbek [uz]
|
|
943
943
|
//! author : Sardor Muminov : https://github.com/muminoff
|
|
944
|
-
e["default"]=r["a"].defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})},f97d:function(t,e){var n={"":!0,up:!0};function r(t){if("string"!==typeof t)return!1;var e=n[t.toLowerCase()];return!!e&&t.toLowerCase()}function i(t){return"number"===typeof t&&t>=0&&t<=100}function o(){var t=100,e=3,n=0,o=100,a=0,s=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!i(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!i(t))throw new Error("RegionAnchorX must be between 0 and 100.");o=t}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!i(t))throw new Error("RegionAnchorY must be between 0 and 100.");n=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!i(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(t){if(!i(t))throw new Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return c},set:function(t){var e=r(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");c=e}}})}t.exports=o},f9ae:function(t,e,n){"use strict";var r=n("0f7c"),i=n("0d25"),o=n("926d"),a=n("3b6a");t.exports=function(t){if(t.length<1||"function"!==typeof t[0])throw new i("a function is required");return a(r,o,t)}},f9b6:function(t,e,n){"use strict";e.__esModule=!0;var r=n("f1ef"),i=s(r),o=n("1712"),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,c=(0,a.default)(t);!(r=(s=c.next()).done);r=!0)if(n.push(s.value),e&&n.length===e)break}catch(u){i=!0,o=u}finally{try{!r&&c["return"]&&c["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,i.default)(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},f9c8:function(t,e,n){"use strict";n("6e04")},fa21:function(t,e,n){var r=n("7530"),i=n("2dcb"),o=n("eac5");function a(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}t.exports=a},fa35:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));class r{constructor(t=[],e=i){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(t){this.data.push(t),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:e,compare:n}=this,r=e[t];while(t>0){const i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r}_down(t){const{data:e,compare:n}=this,r=this.length>>1,i=e[t];while(t<r){let r=1+(t<<1),o=e[r];const a=r+1;if(a<this.length&&n(e[a],o)<0&&(r=a,o=e[a]),n(o,i)>=0)break;e[t]=o,t=r}e[t]=i}}function i(t,e){return t<e?-1:t>e?1:0}},fa58:function(t,e,n){var r=n("c502"),i=n("a7a4"),o=n("2754"),a="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;function u(t){return null==t?void 0===t?s:a:c&&c in Object(t)?i(t):o(t)}t.exports=u},fa61:function(t,e,n){var r=n("a9c9"),i=n("1383"),o=n("ff9f"),a=n("fddf"),s=n("64fe"),c="prototype",u=function(t,e,n){var l,h,d,f=t&u.F,p=t&u.G,m=t&u.S,g=t&u.P,A=t&u.B,v=t&u.W,y=p?i:i[e]||(i[e]={}),b=y[c],w=p?r:m?r[e]:(r[e]||{})[c];for(l in p&&(n=e),n)h=!f&&w&&void 0!==w[l],h&&s(y,l)||(d=h?w[l]:n[l],y[l]=p&&"function"!=typeof w[l]?n[l]:A&&h?o(d,r):v&&w[l]==d?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[c]=t[c],e}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((y.virtual||(y.virtual={}))[l]=d,t&u.R&&b&&!b[l]&&a(b,l,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},fa66:function(t,e,n){},faec:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){i=!0,o=c}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("9fd3"),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(){var t="[^=]*",e='"[^"]*"|[^,]*',n="(?:"+t+")=(?:"+e+")";return new RegExp("(?:^|,)("+n+")")},d=function(t){var e=t.split(h()),n={},r=e.length,i=void 0;while(r--)""!==e[r]&&(i=/([^=]*)=(.*)/.exec(e[r]).slice(1),i[0]=i[0].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^['"](.*)['"]$/g,"$1"),n[i[0]]=i[1]);return n},f=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this))}return l(e,t),i(e,[{key:"push",value:function(t){var e=void 0,n=void 0;if(t=t.replace(/^[\u0000\s]+|[\u0000\s]+$/g,""),0!==t.length)if("#"===t[0])if(0===t.indexOf("#EXT"))if(t=t.replace("\r",""),e=/^#EXTM3U/.exec(t),e)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(e=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(t),e)return n={type:"tag",tagType:"inf"},e[1]&&(n.duration=parseFloat(e[1])),e[2]&&(n.title=e[2]),void this.trigger("data",n);if(e=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"targetduration"},e[1]&&(n.duration=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"totalduration"},e[1]&&(n.duration=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"version"},e[1]&&(n.version=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"media-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"discontinuity-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(t),e)return n={type:"tag",tagType:"playlist-type"},e[1]&&(n.playlistType=e[1]),void this.trigger("data",n);if(e=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"byterange"},e[1]&&(n.length=parseInt(e[1],10)),e[2]&&(n.offset=parseInt(e[2],10)),void this.trigger("data",n);if(e=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(t),e)return n={type:"tag",tagType:"allow-cache"},e[1]&&(n.allowed=!/NO/.test(e[1])),void this.trigger("data",n);if(e=/^#EXT-X-MAP:?(.*)$/.exec(t),e){if(n={type:"tag",tagType:"map"},e[1]){var i=d(e[1]);if(i.URI&&(n.uri=i.URI),i.BYTERANGE){var o=i.BYTERANGE.split("@"),a=r(o,2),s=a[0],c=a[1];n.byterange={},s&&(n.byterange.length=parseInt(s,10)),c&&(n.byterange.offset=parseInt(c,10))}}this.trigger("data",n)}else if(e=/^#EXT-X-STREAM-INF:?(.*)$/.exec(t),e){if(n={type:"tag",tagType:"stream-inf"},e[1]){if(n.attributes=d(e[1]),n.attributes.RESOLUTION){var u=n.attributes.RESOLUTION.split("x"),l={};u[0]&&(l.width=parseInt(u[0],10)),u[1]&&(l.height=parseInt(u[1],10)),n.attributes.RESOLUTION=l}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}this.trigger("data",n)}else{if(e=/^#EXT-X-MEDIA:?(.*)$/.exec(t),e)return n={type:"tag",tagType:"media"},e[1]&&(n.attributes=d(e[1])),void this.trigger("data",n);if(e=/^#EXT-X-ENDLIST/.exec(t),e)this.trigger("data",{type:"tag",tagType:"endlist"});else if(e=/^#EXT-X-DISCONTINUITY/.exec(t),e)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(e=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(t),e)return n={type:"tag",tagType:"program-date-time"},e[1]&&(n.dateTimeString=e[1],n.dateTimeObject=new Date(e[1])),void this.trigger("data",n);if(e=/^#EXT-X-KEY:?(.*)$/.exec(t),e)return n={type:"tag",tagType:"key"},e[1]&&(n.attributes=d(e[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void this.trigger("data",n);if(e=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(t),e)return n={type:"tag",tagType:"cue-out-cont"},e[1]?n.data=e[1]:n.data="",void this.trigger("data",n);if(e=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(t),e)return n={type:"tag",tagType:"cue-out"},e[1]?n.data=e[1]:n.data="",void this.trigger("data",n);if(e=/^#EXT-X-CUE-IN:?(.*)?$/.exec(t),e)return n={type:"tag",tagType:"cue-in"},e[1]?n.data=e[1]:n.data="",void this.trigger("data",n);this.trigger("data",{type:"tag",data:t.slice(4)})}}}else this.trigger("data",{type:"comment",text:t.slice(1)});else this.trigger("data",{type:"uri",uri:t})}}]),e}(a["default"]);e["default"]=f},faf5:function(t,e,n){t.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}))},fb15:function(t,e,n){"use strict";n.r(e),n.d(e,"MapgisWebScene",(function(){return He})),n.d(e,"Mapgis3dViewpointManager",(function(){return un})),n.d(e,"Mapgis3dStatebar",(function(){return _n})),n.d(e,"Mapgis3dLink",(function(){return Bn})),n.d(e,"Mapgis3dDraw",(function(){return Rn})),n.d(e,"Mapgis3dMeasure",(function(){return Cr})),n.d(e,"Mapgis3dCompare",(function(){return zr})),n.d(e,"Mapgis3dArcgisLegend",(function(){return Wr})),n.d(e,"Mapgis3dTable",(function(){return si})),n.d(e,"Mapgis3dLocate",(function(){return Ai})),n.d(e,"Mapgis3dDebug",(function(){return xi})),n.d(e,"Mapgis3dOutputImage",(function(){return Ii})),n.d(e,"Mapgis3dRotate",(function(){return Yi})),n.d(e,"Mapgis3dImageryLayer",(function(){return ao})),n.d(e,"Mapgis3dIgsDocLayer",(function(){return wo})),n.d(e,"Mapgis3dIgsTileLayer",(function(){return Lo})),n.d(e,"Mapgis3dRasterLayer",(function(){return Wo})),n.d(e,"Mapgis3dRasterTileLayer",(function(){return oa})),n.d(e,"Mapgis3dOgcWfsLayer",(function(){return Aa})),n.d(e,"Mapgis3dOgcWmtsLayer",(function(){return Sa})),n.d(e,"Mapgis3dOgcWmsLayer",(function(){return Ea})),n.d(e,"Mapgis3dOgcReveserWmsLayer",(function(){return Na})),n.d(e,"Mapgis3dIgsDynamicLayer",(function(){return Ua})),n.d(e,"Mapgis3dIgsVectorLayer",(function(){return Ka})),n.d(e,"Mapgis3dIgsFeatureLayer",(function(){return sc})),n.d(e,"Mapgis3dArcgisTileLayer",(function(){return fc})),n.d(e,"Mapgis3dArcgisMapLayer",(function(){return Lc})),n.d(e,"Mapgis3dGraphicSingleLayer",(function(){return nl})),n.d(e,"Mapgis3dGraphicLayer",(function(){return ul})),n.d(e,"Mapgis3dGraphicLayerService",(function(){return Ic})),n.d(e,"Mapgis3dWebTileLayer",(function(){return wl})),n.d(e,"Mapgis3dGeojsonLayer",(function(){return Ol})),n.d(e,"Mapgis3dKmlLayer",(function(){return zl})),n.d(e,"Mapgis3dCzmlLayer",(function(){return $l})),n.d(e,"Mapgis3dVectortileLayer",(function(){return Ah})),n.d(e,"Mapgis3dFileM3d",(function(){return Fh})),n.d(e,"Mapgis3dSceneLayer",(function(){return fp})),n.d(e,"Mapgis3dM3dLayer",(function(){return Wp})),n.d(e,"Mapgis3dTileset",(function(){return sm})),n.d(e,"Mapgis3dVirtualPopup",(function(){return zs})),n.d(e,"Mapgis3dPopup",(function(){return Ts})),n.d(e,"Mapgis3dFeaturePopup",(function(){return hm})),n.d(e,"Mapgis3dMonitorPointPopup",(function(){return Gg})),n.d(e,"Mapgis3dInsarPointPopup",(function(){return $g})),n.d(e,"Mapgis3dPopupIot",(function(){return pA})),n.d(e,"Mapgis3dRelationshipGraph",(function(){return CK})),n.d(e,"Mapgis3dPopupFeatureDetail",(function(){return RK})),n.d(e,"Mapgis3dMarker",(function(){return XK})),n.d(e,"Mapgis3dMarkerPro",(function(){return nq})),n.d(e,"Mapgis3dMarkerSetPro",(function(){return pq})),n.d(e,"Mapgis3dDynamicMarkerLayer",(function(){return Pq})),n.d(e,"Mapgis3dMapvLayer",(function(){return NX})),n.d(e,"Mapgis3dCusterLayer",(function(){return QX})),n.d(e,"Mapgis3dEchartsLayer",(function(){return Jet})),n.d(e,"Mapgis3dCesiumHeaterLayer",(function(){return bnt})),n.d(e,"Mapgis3dMapvHeaterLayer",(function(){return Nnt})),n.d(e,"Mapgis3dGraphThemeLayer",(function(){return Jnt})),n.d(e,"Mapgis3dThemeLayerCustom",(function(){return Hot})),n.d(e,"Mapgis3dM3dSubsectionLayer",(function(){return eat})),n.d(e,"Mapgis3dIgsTerrain",(function(){return fat})),n.d(e,"Mapgis3dTerrainProvider",(function(){return Cat})),n.d(e,"Mapgis3dVoxelLayer",(function(){return Bp})),n.d(e,"Mapgis3dGeojsonDatasource",(function(){return Hat})),n.d(e,"Mapgis3dCzmlDatasource",(function(){return hst})),n.d(e,"Mapgis3dViewshed",(function(){return Mst})),n.d(e,"Mapgis3dSightline",(function(){return zst})),n.d(e,"Mapgis3dSkyline",(function(){return act})),n.d(e,"Mapgis3dModelFlatten",(function(){return fct})),n.d(e,"Mapgis3dHeightlimited",(function(){return xct})),n.d(e,"Mapgis3dShadow",(function(){return Wct})),n.d(e,"Mapgis3dDynamicCutting",(function(){return Zct})),n.d(e,"Mapgis3dDynamicSection",(function(){return mut})),n.d(e,"Mapgis3dFill",(function(){return wut})),n.d(e,"Mapgis3dAspect",(function(){return Nut})),n.d(e,"Mapgis3dSlope",(function(){return $ut})),n.d(e,"Mapgis3dAspectSlope",(function(){return rlt})),n.d(e,"Mapgis3dContour",(function(){return vlt})),n.d(e,"Mapgis3dCutFill",(function(){return Blt})),n.d(e,"Mapgis3dProfile",(function(){return Klt})),n.d(e,"Mapgis3dParticleEffectsManager",(function(){return uht})),n.d(e,"Mapgis3dFlood",(function(){return Lht})),n.d(e,"Mapgis3dBufferAnalysis",(function(){return Fht})),n.d(e,"Mapgis3dModelBufferAnalysis",(function(){return Jht})),n.d(e,"Mapgis3dOverlayAanalysis",(function(){return adt})),n.d(e,"Mapgis3dModelOverlayAnalysis",(function(){return gdt})),n.d(e,"Mapgis3dStratifiedHousehold",(function(){return Tdt})),n.d(e,"Mapgis3dProjectorManger",(function(){return bft})),n.d(e,"Mapgis3dProjectorSetting",(function(){return Dft})),n.d(e,"Mapgis3dBimComponent",(function(){return zft})),n.d(e,"Mapgis3dExplosionAnalysis",(function(){return Svt})),n.d(e,"Mapgis3dTerrainExcavate",(function(){return Gvt})),n.d(e,"Mapgis3dComponentMix",(function(){return Jvt})),n.d(e,"Mapgis3dComponentLegend",(function(){return lyt})),n.d(e,"Mapgis3dSceneSetting",(function(){return pbt})),n.d(e,"Mapgis3dSceneRoaming",(function(){return ywt})),n.d(e,"Mapgis3dPathRoaming",(function(){return Vbt})),n.d(e,"Mapgis3DComprehensiveQuery",(function(){return Dwt})),n.d(e,"Mapgis3DDataFlow",(function(){return Xwt})),n.d(e,"Mapgis3DTack",(function(){return i_t})),n.d(e,"Mapgis3DPlottingLayer",(function(){return U_t})),n.d(e,"Mapgis3DMapStory",(function(){return HIt})),n.d(e,"Mapgis3DPreviewMapStory",(function(){return QIt})),n.d(e,"Mapgis3dCityGrow",(function(){return iDt})),n.d(e,"Mapgis3dCityGrowOptions",(function(){return gDt})),n.d(e,"Mapgis3dPondingSimulation",(function(){return _Dt})),n.d(e,"Mapgis3dPondingSimulationTimeline",(function(){return TDt})),n.d(e,"Mapgis3dBuildingGlow",(function(){return IDt})),n.d(e,"Mapgis3dWind",(function(){return JDt})),n.d(e,"Mapgis3DPlot",(function(){return mNt})),n.d(e,"Mapgis3DPlotLink",(function(){return _Nt})),n.d(e,"Mapgis3DPlotLayer",(function(){return PNt})),n.d(e,"Mapgis3DPlotAnimation",(function(){return UNt}));var r={};n.r(r),n.d(r,"default",(function(){return au}));var i={};n.r(i),n.d(i,"init",(function(){return u_})),n.d(i,"dispose",(function(){return l_})),n.d(i,"disposeAll",(function(){return h_})),n.d(i,"getInstance",(function(){return d_})),n.d(i,"registerPainter",(function(){return f_})),n.d(i,"getElementSSRData",(function(){return p_})),n.d(i,"registerSSRDataGetter",(function(){return m_})),n.d(i,"version",(function(){return g_}));var o={};n.r(o),n.d(o,"updateProps",(function(){return vL})),n.d(o,"initProps",(function(){return yL})),n.d(o,"removeElement",(function(){return wL})),n.d(o,"removeElementWithFadeOut",(function(){return xL})),n.d(o,"isElementRemoved",(function(){return bL})),n.d(o,"extendShape",(function(){return cI})),n.d(o,"extendPath",(function(){return lI})),n.d(o,"registerShape",(function(){return hI})),n.d(o,"getShapeClass",(function(){return dI})),n.d(o,"makePath",(function(){return fI})),n.d(o,"makeImage",(function(){return pI})),n.d(o,"mergePath",(function(){return gI})),n.d(o,"resizePath",(function(){return AI})),n.d(o,"subPixelOptimizeLine",(function(){return vI})),n.d(o,"subPixelOptimizeRect",(function(){return yI})),n.d(o,"subPixelOptimize",(function(){return bI})),n.d(o,"getTransform",(function(){return wI})),n.d(o,"applyTransform",(function(){return _I})),n.d(o,"transformDirection",(function(){return xI})),n.d(o,"groupTransition",(function(){return MI})),n.d(o,"clipPointsByRect",(function(){return LI})),n.d(o,"clipRectByRect",(function(){return TI})),n.d(o,"createIcon",(function(){return kI})),n.d(o,"linePolygonIntersect",(function(){return EI})),n.d(o,"lineLineIntersect",(function(){return OI})),n.d(o,"setTooltipConfig",(function(){return II})),n.d(o,"traverseElements",(function(){return NI})),n.d(o,"Group",(function(){return n_})),n.d(o,"Image",(function(){return PC})),n.d(o,"Text",(function(){return oM})),n.d(o,"Circle",(function(){return $P})),n.d(o,"Ellipse",(function(){return tB})),n.d(o,"Sector",(function(){return vB})),n.d(o,"Ring",(function(){return wB})),n.d(o,"Polygon",(function(){return MB})),n.d(o,"Polyline",(function(){return kB})),n.d(o,"Rect",(function(){return zC})),n.d(o,"Line",(function(){return BB})),n.d(o,"BezierCurve",(function(){return jB})),n.d(o,"Arc",(function(){return zB})),n.d(o,"IncrementalDisplayable",(function(){return iI})),n.d(o,"CompoundPath",(function(){return VB})),n.d(o,"LinearGradient",(function(){return WB})),n.d(o,"RadialGradient",(function(){return qB})),n.d(o,"BoundingRect",(function(){return cy})),n.d(o,"OrientedBoundingRect",(function(){return eI})),n.d(o,"Point",(function(){return Jv})),n.d(o,"Path",(function(){return SC}));var a={};n.r(a),n.d(a,"createList",(function(){return qX})),n.d(a,"getLayoutRect",(function(){return lk})),n.d(a,"createDimensions",(function(){return lz})),n.d(a,"dataStack",(function(){return XX})),n.d(a,"createSymbol",(function(){return nN})),n.d(a,"createScale",(function(){return $X})),n.d(a,"mixinAxisModelCommonMethods",(function(){return JX})),n.d(a,"getECData",(function(){return aM})),n.d(a,"enableHoverEmphasis",(function(){return oL})),n.d(a,"createTextStyle",(function(){return ZX}));var s={};n.r(s),n.d(s,"linearMap",(function(){return b_})),n.d(s,"round",(function(){return __})),n.d(s,"asc",(function(){return x_})),n.d(s,"getPrecision",(function(){return S_})),n.d(s,"getPrecisionSafe",(function(){return C_})),n.d(s,"getPixelPrecision",(function(){return M_})),n.d(s,"getPercentWithPrecision",(function(){return L_})),n.d(s,"MAX_SAFE_INTEGER",(function(){return E_})),n.d(s,"remRadian",(function(){return O_})),n.d(s,"isRadianAroundZero",(function(){return P_})),n.d(s,"parseDate",(function(){return I_})),n.d(s,"quantity",(function(){return D_})),n.d(s,"quantityExponent",(function(){return N_})),n.d(s,"nice",(function(){return F_})),n.d(s,"quantile",(function(){return j_})),n.d(s,"reformIntervals",(function(){return R_})),n.d(s,"isNumeric",(function(){return z_})),n.d(s,"numericToNumber",(function(){return H_}));var c={};n.r(c),n.d(c,"extendShape",(function(){return cI})),n.d(c,"extendPath",(function(){return lI})),n.d(c,"makePath",(function(){return fI})),n.d(c,"makeImage",(function(){return pI})),n.d(c,"mergePath",(function(){return gI})),n.d(c,"resizePath",(function(){return AI})),n.d(c,"createIcon",(function(){return kI})),n.d(c,"updateProps",(function(){return vL})),n.d(c,"initProps",(function(){return yL})),n.d(c,"getTransform",(function(){return wI})),n.d(c,"clipPointsByRect",(function(){return LI})),n.d(c,"clipRectByRect",(function(){return TI})),n.d(c,"registerShape",(function(){return hI})),n.d(c,"getShapeClass",(function(){return dI})),n.d(c,"Group",(function(){return n_})),n.d(c,"Image",(function(){return PC})),n.d(c,"Text",(function(){return oM})),n.d(c,"Circle",(function(){return $P})),n.d(c,"Ellipse",(function(){return tB})),n.d(c,"Sector",(function(){return vB})),n.d(c,"Ring",(function(){return wB})),n.d(c,"Polygon",(function(){return MB})),n.d(c,"Polyline",(function(){return kB})),n.d(c,"Rect",(function(){return zC})),n.d(c,"Line",(function(){return BB})),n.d(c,"BezierCurve",(function(){return jB})),n.d(c,"Arc",(function(){return zB})),n.d(c,"IncrementalDisplayable",(function(){return iI})),n.d(c,"CompoundPath",(function(){return VB})),n.d(c,"LinearGradient",(function(){return WB})),n.d(c,"RadialGradient",(function(){return qB})),n.d(c,"BoundingRect",(function(){return cy}));var u={};n.r(u),n.d(u,"addCommas",(function(){return qT})),n.d(u,"toCamelCase",(function(){return XT})),n.d(u,"normalizeCssArray",(function(){return $T})),n.d(u,"encodeHTML",(function(){return Mv})),n.d(u,"formatTpl",(function(){return tk})),n.d(u,"getTooltipMarker",(function(){return ek})),n.d(u,"formatTime",(function(){return nk})),n.d(u,"capitalFirst",(function(){return rk})),n.d(u,"truncateText",(function(){return Wx})),n.d(u,"getTextRect",(function(){return m$}));var l={};n.r(l),n.d(l,"map",(function(){return VA["F"]})),n.d(l,"each",(function(){return VA["k"]})),n.d(l,"indexOf",(function(){return VA["q"]})),n.d(l,"inherits",(function(){return VA["r"]})),n.d(l,"reduce",(function(){return VA["K"]})),n.d(l,"filter",(function(){return VA["n"]})),n.d(l,"bind",(function(){return VA["c"]})),n.d(l,"curry",(function(){return VA["h"]})),n.d(l,"isArray",(function(){return VA["s"]})),n.d(l,"isString",(function(){return VA["A"]})),n.d(l,"isObject",(function(){return VA["y"]})),n.d(l,"isFunction",(function(){return VA["u"]})),n.d(l,"extend",(function(){return VA["m"]})),n.d(l,"defaults",(function(){return VA["i"]})),n.d(l,"clone",(function(){return VA["d"]})),n.d(l,"merge",(function(){return VA["G"]}));var h,d={};(n.r(d),n.d(d,"MapgisWebScene",(function(){return He})),n.d(d,"Mapgis3dViewpointManager",(function(){return un})),n.d(d,"Mapgis3dStatebar",(function(){return _n})),n.d(d,"Mapgis3dLink",(function(){return Bn})),n.d(d,"Mapgis3dDraw",(function(){return Rn})),n.d(d,"Mapgis3dMeasure",(function(){return Cr})),n.d(d,"Mapgis3dCompare",(function(){return zr})),n.d(d,"Mapgis3dArcgisLegend",(function(){return Wr})),n.d(d,"Mapgis3dTable",(function(){return si})),n.d(d,"Mapgis3dLocate",(function(){return Ai})),n.d(d,"Mapgis3dDebug",(function(){return xi})),n.d(d,"Mapgis3dOutputImage",(function(){return Ii})),n.d(d,"Mapgis3dRotate",(function(){return Yi})),n.d(d,"Mapgis3dImageryLayer",(function(){return ao})),n.d(d,"Mapgis3dIgsDocLayer",(function(){return wo})),n.d(d,"Mapgis3dIgsTileLayer",(function(){return Lo})),n.d(d,"Mapgis3dRasterLayer",(function(){return Wo})),n.d(d,"Mapgis3dRasterTileLayer",(function(){return oa})),n.d(d,"Mapgis3dOgcWfsLayer",(function(){return Aa})),n.d(d,"Mapgis3dOgcWmtsLayer",(function(){return Sa})),n.d(d,"Mapgis3dOgcWmsLayer",(function(){return Ea})),n.d(d,"Mapgis3dOgcReveserWmsLayer",(function(){return Na})),n.d(d,"Mapgis3dIgsDynamicLayer",(function(){return Ua})),n.d(d,"Mapgis3dIgsVectorLayer",(function(){return Ka})),n.d(d,"Mapgis3dIgsFeatureLayer",(function(){return sc})),n.d(d,"Mapgis3dArcgisTileLayer",(function(){return fc})),n.d(d,"Mapgis3dArcgisMapLayer",(function(){return Lc})),n.d(d,"Mapgis3dGraphicSingleLayer",(function(){return nl})),n.d(d,"Mapgis3dGraphicLayer",(function(){return ul})),n.d(d,"Mapgis3dGraphicLayerService",(function(){return Ic})),n.d(d,"Mapgis3dWebTileLayer",(function(){return wl})),n.d(d,"Mapgis3dGeojsonLayer",(function(){return Ol})),n.d(d,"Mapgis3dKmlLayer",(function(){return zl})),n.d(d,"Mapgis3dCzmlLayer",(function(){return $l})),n.d(d,"Mapgis3dVectortileLayer",(function(){return Ah})),n.d(d,"Mapgis3dFileM3d",(function(){return Fh})),n.d(d,"Mapgis3dSceneLayer",(function(){return fp})),n.d(d,"Mapgis3dM3dLayer",(function(){return Wp})),n.d(d,"Mapgis3dTileset",(function(){return sm})),n.d(d,"Mapgis3dVirtualPopup",(function(){return zs})),n.d(d,"Mapgis3dPopup",(function(){return Ts})),n.d(d,"Mapgis3dFeaturePopup",(function(){return hm})),n.d(d,"Mapgis3dMonitorPointPopup",(function(){return Gg})),n.d(d,"Mapgis3dInsarPointPopup",(function(){return $g})),n.d(d,"Mapgis3dPopupIot",(function(){return pA})),n.d(d,"Mapgis3dRelationshipGraph",(function(){return CK})),n.d(d,"Mapgis3dPopupFeatureDetail",(function(){return RK})),n.d(d,"Mapgis3dMarker",(function(){return XK})),n.d(d,"Mapgis3dMarkerPro",(function(){return nq})),n.d(d,"Mapgis3dMarkerSetPro",(function(){return pq})),n.d(d,"Mapgis3dDynamicMarkerLayer",(function(){return Pq})),n.d(d,"Mapgis3dMapvLayer",(function(){return NX})),n.d(d,"Mapgis3dCusterLayer",(function(){return QX})),n.d(d,"Mapgis3dEchartsLayer",(function(){return Jet})),n.d(d,"Mapgis3dCesiumHeaterLayer",(function(){return bnt})),n.d(d,"Mapgis3dMapvHeaterLayer",(function(){return Nnt})),n.d(d,"Mapgis3dGraphThemeLayer",(function(){return Jnt})),n.d(d,"Mapgis3dThemeLayerCustom",(function(){return Hot})),n.d(d,"Mapgis3dM3dSubsectionLayer",(function(){return eat})),n.d(d,"Mapgis3dIgsTerrain",(function(){return fat})),n.d(d,"Mapgis3dTerrainProvider",(function(){return Cat})),n.d(d,"Mapgis3dVoxelLayer",(function(){return Bp})),n.d(d,"Mapgis3dGeojsonDatasource",(function(){return Hat})),n.d(d,"Mapgis3dCzmlDatasource",(function(){return hst})),n.d(d,"Mapgis3dViewshed",(function(){return Mst})),n.d(d,"Mapgis3dSightline",(function(){return zst})),n.d(d,"Mapgis3dSkyline",(function(){return act})),n.d(d,"Mapgis3dModelFlatten",(function(){return fct})),n.d(d,"Mapgis3dHeightlimited",(function(){return xct})),n.d(d,"Mapgis3dShadow",(function(){return Wct})),n.d(d,"Mapgis3dDynamicCutting",(function(){return Zct})),n.d(d,"Mapgis3dDynamicSection",(function(){return mut})),n.d(d,"Mapgis3dFill",(function(){return wut})),n.d(d,"Mapgis3dAspect",(function(){return Nut})),n.d(d,"Mapgis3dSlope",(function(){return $ut})),n.d(d,"Mapgis3dAspectSlope",(function(){return rlt})),n.d(d,"Mapgis3dContour",(function(){return vlt})),n.d(d,"Mapgis3dCutFill",(function(){return Blt})),n.d(d,"Mapgis3dProfile",(function(){return Klt})),n.d(d,"Mapgis3dParticleEffectsManager",(function(){return uht})),n.d(d,"Mapgis3dFlood",(function(){return Lht})),n.d(d,"Mapgis3dBufferAnalysis",(function(){return Fht})),n.d(d,"Mapgis3dModelBufferAnalysis",(function(){return Jht})),n.d(d,"Mapgis3dOverlayAanalysis",(function(){return adt})),n.d(d,"Mapgis3dModelOverlayAnalysis",(function(){return gdt})),n.d(d,"Mapgis3dStratifiedHousehold",(function(){return Tdt})),n.d(d,"Mapgis3dProjectorManger",(function(){return bft})),n.d(d,"Mapgis3dProjectorSetting",(function(){return Dft})),n.d(d,"Mapgis3dBimComponent",(function(){return zft})),n.d(d,"Mapgis3dExplosionAnalysis",(function(){return Svt})),n.d(d,"Mapgis3dTerrainExcavate",(function(){return Gvt})),n.d(d,"Mapgis3dComponentMix",(function(){return Jvt})),n.d(d,"Mapgis3dComponentLegend",(function(){return lyt})),n.d(d,"Mapgis3dSceneSetting",(function(){return pbt})),n.d(d,"Mapgis3dSceneRoaming",(function(){return ywt})),n.d(d,"Mapgis3dPathRoaming",(function(){return Vbt})),n.d(d,"Mapgis3DComprehensiveQuery",(function(){return Dwt})),n.d(d,"Mapgis3DDataFlow",(function(){return Xwt})),n.d(d,"Mapgis3DTack",(function(){return i_t})),n.d(d,"Mapgis3DPlottingLayer",(function(){return U_t})),n.d(d,"Mapgis3DMapStory",(function(){return HIt})),n.d(d,"Mapgis3DPreviewMapStory",(function(){return QIt})),n.d(d,"Mapgis3dCityGrow",(function(){return iDt})),n.d(d,"Mapgis3dCityGrowOptions",(function(){return gDt})),n.d(d,"Mapgis3dPondingSimulation",(function(){return _Dt})),n.d(d,"Mapgis3dPondingSimulationTimeline",(function(){return TDt})),n.d(d,"Mapgis3dBuildingGlow",(function(){return IDt})),n.d(d,"Mapgis3dWind",(function(){return JDt})),n.d(d,"Mapgis3DPlot",(function(){return mNt})),n.d(d,"Mapgis3DPlotLink",(function(){return _Nt})),n.d(d,"Mapgis3DPlotLayer",(function(){return PNt})),n.d(d,"Mapgis3DPlotAnimation",(function(){return UNt})),"undefined"!==typeof window)&&(n("f6fd"),(h=window.document.currentScript)&&(h=h.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=h[1]));var f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cesium-map-wrapper"},[t._m(0),t.initialized?t._t("default"):t._e()],2)},p=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",attrs:{id:t.container}})}],m=(n("f28b"),n("8269"));function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=w(t,"string");return"symbol"==g(e)?e:e+""}function w(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var _={methods:{$_emitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$emit(t,v({map:this.map,component:this},e))},$_emitMapEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$_emitEvent(t.type,v({cesiumEvent:t},e))}}};function x(t,e){e.camera.flyTo(t)}function S(t,e){var n,r=t.destination,i=t.orientation,o=r.x,a=r.y,s=r.z,c=i.heading,u=i.pitch,l=1;n=o>180||o<-180||a>180||a<-180?new Cesium.Cartesian3(o,a,s):new Cesium.Cartesian3.fromDegrees(o,a,s),e.camera.flyToEx({target:n,offset:new Cesium.HeadingPitchRange(c,u,l)})}function C(t){var e;if(t.includes("rgb")){var n=t.split("(")[1].split(")")[0],r=n.split(","),i=Number((Number(r[0])/255).toFixed(2)),o=Number((Number(r[1])/255).toFixed(2)),a=Number((Number(r[2])/255).toFixed(2)),s=Number(r[3]?r[3]:1);e=new Cesium.Color(i,o,a,s)}return e}function M(t){var e=L(t);if(e){var n=e.longitude,r=e.latitude,i=Math.PI,o=180*n/i,a=180*r/i,s=E(t);return{lng:o,lat:a,height:s}}return null}function L(t){var e=T(t);return e?Cesium.Ellipsoid.WGS84.cartesianToCartographic(e):null}function T(t){var e=k(t),n=e.w,r=e.h;return t.camera.pickEllipsoid(new Cesium.Cartesian2(n/2,r/2))}function k(t){var e=t.canvas;return{w:e.clientWidth,h:e.clientHeight}}function E(t){return t?t.scene.globe.ellipsoid.cartesianToCartographic(t.camera.position).height:0}function O(t){return t.scene.logarithmicDepthBuffer}function P(){return!(navigator.userAgent.indexOf("Linux")>0&&navigator.userAgent.indexOf("Firefox")>0)}function B(t,e){e.scene.logarithmicDepthBuffer=t}function I(t){return t.scene.globe.depthTestAgainstTerrain}function D(t,e){e.scene.globe.depthTestAgainstTerrain=t}function N(t){return t.scene.globe.enableLighting}function F(t,e){e.scene.globe.enableLighting=t}function j(t,e){e.scene.light=t}function R(t){return t.scene.light}function H(t,e){e.scene.globe.dynamicAtmosphereLighting=t}function z(t){return t.scene.globe.dynamicAtmosphereLighting}function U(t,e){e.scene.globe.dynamicAtmosphereLightingFromSun=t}function V(t){return t.scene.globe.dynamicAtmosphereLightingFromSun}function Y(t){return t.scene.farToNearRatio}function G(t,e){e.scene.farToNearRatio=t}function Q(t){return t.scene.globe.translucency.enabled}function W(t,e){e.scene.screenSpaceCameraController.enableCollisionDetection=!t,e.scene.globe.translucency.enabled=t}var K=n("b07a");function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}function X(t,e,n){return e=tt(e),$(t,Z()?Reflect.construct(e,n||[],tt(t).constructor):e.apply(t,n))}function $(t,e){if(e&&("object"==q(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return J(t)}function J(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Z(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Z=function(){return!!t})()}function tt(t){return tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tt(t)}function et(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nt(t,e)}function nt(t,e){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nt(t,e)}function rt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function it(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rt(Object(n),!0).forEach((function(e){ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ot(t,e,n){return(e=ut(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function at(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function st(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ut(r.key),r)}}function ct(t,e,n){return e&&st(t.prototype,e),n&&st(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ut(t){var e=lt(t,"string");return"symbol"==q(e)?e:e+""}function lt(t,e){if("object"!=q(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ht(){window.vueCesium=window.vueCesium||{}}function dt(){window.vueCesium=window.vueCesium||{},window.vueCesium.G3DManager=window.vueCesium.G3DManager||new Ot,window.vueCesium.ViewerManager=window.vueCesium.ViewerManager||new Pt,window.vueCesium.HighlightManager=window.vueCesium.HighlightManager||new Bt,window.vueCesium.RasterManager=window.vueCesium.RasterManager||new pt,window.vueCesium.GeojsonManager=window.vueCesium.GeojsonManager||new mt,window.vueCesium.KmlManager=window.vueCesium.KmlManager||new gt,window.vueCesium.CzmlManager=window.vueCesium.CzmlManager||new At,window.vueCesium.PopupManager=window.vueCesium.PopupManager||new bt,window.vueCesium.ExplosionManager=window.vueCesium.ExplosionManager||new ne,window.vueCesium.BloomEffectManager=window.vueCesium.BloomEffectManager||new re,window.vueCesium.DynamicLightLineManager=window.vueCesium.DynamicLightLineManager||new ie,window.vueCesium.SearchLightManager=window.vueCesium.SearchLightManager||new ae,window.vueCesium.IgsFeatureManager=window.vueCesium.IgsFeatureManager||new Yt,window.vueCesium.DynamicSectionAnalysisManager=window.vueCesium.DynamicSectionAnalysisManager||new Qt,window.vueCesium.HeightLimitedAnalysisManager=window.vueCesium.HeightLimitedAnalysisManager||new Ut,window.vueCesium.GlobesManager=window.vueCesium.GlobesManager||new ft,window.vueCesium.Tileset3DManager=window.vueCesium.Tileset3DManager||new ft,window.vueCesium.EntityManager=window.vueCesium.EntityManager||new vt,window.vueCesium.MarkerManager=window.vueCesium.MarkerManager||new jt,window.vueCesium.OGCWMTSManager=window.vueCesium.OGCWMTSManager||new wt,window.vueCesium.FloodAnalysisManager=window.vueCesium.FloodAnalysisManager||new Ft,window.vueCesium.OGCWMSManager=window.vueCesium.OGCWMSManager||new _t,window.vueCesium.OGCWFSManager=window.vueCesium.OGCWFSManager||new xt,window.vueCesium.DragEditManager=window.vueCesium.DragEditManager||new yt,window.vueCesium.VectorTileManager=window.vueCesium.VectorTileManager||new St,window.vueCesium.AdvancedAnalysisManager=window.vueCesium.AdvancedAnalysisManager||new Ct,window.vueCesium.DrawToolManager=window.vueCesium.DrawToolManager||new Mt,window.vueCesium.MeasureToolManager=window.vueCesium.MeasureToolManager||new Lt,window.vueCesium.EventHandlerManager=window.vueCesium.EventHandlerManager||new Tt,window.vueCesium.IgsTerrainManager=window.vueCesium.IgsTerrainManager||new kt,window.vueCesium.TerrainManager=window.vueCesium.TerrainManager||new Et,window.vueCesium.M3DIgsManager=window.vueCesium.M3DIgsManager||new Tt,window.vueCesium.ArcgisManager=window.vueCesium.ArcgisManager||new Tt,window.vueCesium.WebTileManager=window.vueCesium.WebTileManager||new Tt,window.vueCesium.IgsDocLayerManager=window.vueCesium.IgsDocLayerManager||new It,window.vueCesium.IgsTilecLayerManager=window.vueCesium.IgsTilecLayerManager||new Dt,window.vueCesium.IgsserverManager=window.vueCesium.IgsserverManager||new Tt,window.vueCesium.ExcavateAnalysisManager=window.vueCesium.ExcavateAnalysisManager||new Nt,window.vueCesium.AnalysisModelFlattenManager=window.vueCesium.AnalysisModelFlattenManager||new Rt,window.vueCesium.DynamicCuttingManager=window.vueCesium.DynamicCuttingManager||new Ht,window.vueCesium.AnalysisManager=window.vueCesium.AnalysisManager||new zt,window.vueCesium.shadowAnalysisManager=window.vueCesium.shadowAnalysisManager||new Vt,window.vueCesium.AspectAnalysisManager=window.vueCesium.AspectAnalysisManager||new Gt,window.vueCesium.SlopeAnalysisManager=window.vueCesium.SlopeAnalysisManager||new Wt,window.vueCesium.AspectAnalysisManager||new Gt,window.vueCesium.AspectSlopeAnalysisManager=window.vueCesium.AspectSlopeAnalysisManager||new he,window.vueCesium.SkyLineAnalysisManager=window.vueCesium.SkyLineAnalysisManager||new Kt,window.vueCesium.ContourAnalysisManager=window.vueCesium.ContourAnalysisManager||new qt,window.vueCesium.StratifiedHousehouldManager=window.vueCesium.StratifiedHousehouldManager||new Xt,window.vueCesium.ViewshedAnalysisManager=window.vueCesium.ViewshedAnalysisManager||new $t,window.vueCesium.VisiblityAnalysisManager=window.vueCesium.VisiblityAnalysisManager||new Jt,window.vueCesium.CutFillAnalysisManager=window.vueCesium.CutFillAnalysisManager||new Zt,window.vueCesium.ProfileAnalysisManager=window.vueCesium.ProfileAnalysisManager||new te,window.vueCesium.DataFlowManager=window.vueCesium.DataFlowManager||new ee,window.vueCesium.SettingToolManager=window.vueCesium.SettingToolManager||new oe,window.vueCesium.MapStoryManager=window.vueCesium.MapStoryManager||new se,window.vueCesium.PondingSimulationManager=window.vueCesium.PondingSimulationManager||new ce,window.vueCesium.GraphicsLayerManager=window.vueCesium.GraphicsLayerManager||new ue,window.vueCesium.BimManager=window.vueCesium.BimManager||new le,window.vueCesium.RotateManager=window.vueCesium.RotateManager||new de,window.vueCesium.PlotLayerManager=window.vueCesium.PlotLayerManager||new fe,window.vueCesium.PlotLayerGroupManager=window.vueCesium.PlotLayerGroupManager||new pe,window.vueCesium.PlotLayerData=window.vueCesium.PlotLayerData||new me,window.vueCesium.PlotManager=window.vueCesium.PlotManager||new ge,window.vueCesium.OneSymbolManager=window.vueCesium.OneSymbolManager||new Ae,window.vueCesium.PlotAnimationManager=window.vueCesium.PlotAnimationManager||new ve,window.vueCesium.PlotSymbolManager=window.vueCesium.PlotSymbolManager||new ye,window.vueCesium.M3DSubSectionManager=window.vueCesium.M3DSubSectionManager||new be,window.vueCesium.CompareManager=window.vueCesium.CompareManager||new we,window.vueCesium.WindManager=window.vueCesium.WindManager||new _e,window.vueCesium.ImageLayersTranslucencyManager=window.vueCesium.ImageLayersTranslucencyManager||new xe,window.vueCesium.getViewer=function(t){t||(t="default");var e,n=window.vueCesium.ViewerManager;return e=n[t][0].source,e},window.vueCesium.getViewerByInterval=function(t,e){e||(e="default");var n,r=window.vueCesium.ViewerManager,i=setInterval((function(){r.hasOwnProperty(e)&&r[e].length>0&&(clearInterval(i),n=r[e][0].source,t(n))}),50)}}var ft=function(){function t(e){at(this,t),this.default=[],this.vueKey=e||"default"}return ct(t,[{key:"addSource",value:function(t,e,n,r){t=t||this.vueKey,e=e||0==e?e:this.vueIndex,e="".concat(e),this[t]||(this[t]=[]);var i=this[t].find((function(t){return t&&t.key===e}));i?(i.source=n,i.options=r):this[t].push({parent:t,key:e,source:n,options:r})}},{key:"deleteSource",value:function(t,e){var n=-1;e="".concat(e),this[t]instanceof Array&&(this[t].find((function(t,r){var i=!1;return t&&t.key===e&&(n=r,i=!0),i})),n>=0&&this[t].splice(n,1))}},{key:"changeSource",value:function(t,e,n){t=t||this.vueKey,e=e||0==e?e:this.vueIndex,e="".concat(e);var r=void 0;if(!this[t])return r;var i=this[t].find((function(t,n){var r=!1;return t&&t.key===e&&(n,r=!0),r}));return n&&(i.source=n),i}},{key:"changeOptions",value:function(t,e,n,r){t=t||this.vueKey,e=e||0==e?e:this.vueIndex,e="".concat(e);var i=void 0;if(!this[t]||0==this[t].length)return i;var o=this[t].find((function(t,n){var r=!1;return t&&t.key===e&&(n,r=!0),r}));return o.options=o.options||{},o.options[n]=r,o}},{key:"findSource",value:function(t,e){t=t||this.vueKey,e=e||0==e?e:this.vueIndex,e="".concat(e);var n=-1,r=void 0;if(!this[t])return r;var i=this[t].find((function(t,r){var i=!1;return t&&t.key===e&&(n=r,i=!0),i}));return i&&(r=it(it({},i),{},{index:n})),r}},{key:"findAllSource",value:function(t){return t=t||this.vueKey,this[t]}},{key:"flatAllSource",value:function(){var t=this,e=[];return Object.keys(this).forEach((function(n){"vueKey"!==n&&(e=e.concat(t[n]))})),e}}])}(),pt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),mt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),gt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),At=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),vt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),yt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),bt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),wt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),_t=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),xt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),St=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ct=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Mt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Lt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Tt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),kt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Et=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ot=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Pt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Bt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),It=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Dt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Nt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ft=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),jt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Rt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ht=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),zt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ut=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Vt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Yt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Gt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Qt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Wt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Kt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),qt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Xt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),$t=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Jt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Zt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),te=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ee=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ne=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),re=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ie=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),oe=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ae=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),se=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ce=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ue=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),le=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),he=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),de=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),fe=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),pe=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),me=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ge=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ae=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ve=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ye=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),be=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),we=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),_e=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),xe=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Se={vueKey:{typs:String,default:"default"},vueIndex:{typs:[String,Number],default:function(){return(1e6*Math.random()).toFixed(0)}},container:{type:[String,HTMLElement],default:function(){return"cesium-".concat((""+Math.random()).split(".")[1])}},shouldAnimate:{type:Boolean,default:!0},homeButton:{type:Boolean,default:!1},navigationHelpButton:{type:Boolean,default:!1},sceneModePicker:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},baseLayerPicker:{type:Boolean,default:!1},fullscreenButton:{type:Boolean,default:!1},vrButton:{type:Boolean,default:!1},geocoder:{type:Boolean,default:!1},sceneMode:{type:Number},timeline:{type:Boolean,default:!1},contextOptions:{type:Object,default:function(){return{webgl:{preserveDrawingBuffer:!0}}}},cameraView:{type:Object,default:function(){return{}}},minZoom:{type:Number,default:void 0},maxZoom:{type:Number,default:void 0}},Ce=n("b047"),Me=n.n(Ce);function Le(t){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(t)}function Te(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Te=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Le(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Le(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function ke(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Ee(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ke(o,r,i,a,s,"next",t)}function s(t){ke(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Oe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oe(Object(n),!0).forEach((function(e){Be(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Be(t,e,n){return(e=Ie(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ie(t){var e=De(t,"string");return"symbol"==Le(e)?e:e+""}function De(t,e){if("object"!=Le(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ne={name:"mapgis-web-scene",mixins:[_,m["a"]],props:Pe({libPath:{type:String},pluginPath:{type:String},height:{type:Number},netCDFPath:{type:String,default:"/netcdf/netcdfjs.min.js"}},Se),provide:function(){var t=this;return{get Cesium(){return t.Cesium},get vueCesium(){return t.vueCesium},get viewer(){return t.viewer}}},data:function(){return{initialized:!1}},watch:{height:{handler:function(){var t=this;window.vueCesium.getViewerByInterval((function(e){t.$nextTick((function(){e.container.style.height=this.height+"px"}))}),this.vueKey)}}},methods:{loadScript:function(){var t=Ee(Te().mark((function t(){return Te().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$_loadScript();case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),flyTo:function(t){x(t,this.viewer)},flyToEx:function(t){S(t,this.viewer)},getScaleOneZoom:function(){for(var t=295829355.45,e=1,n=1;n<30;n++)t/=2,t<2&&t>=1&&(e=n);return e},resetCameraPos:function(){if(void 0!==this.minZoom&&void 0!==this.maxZoom){var t=this.viewer,e=this.Cesium,n=this;this.cameraChangedListener&&t.camera.changed.removeEventListener(this.cameraChangedListener);var r=new e.Cartesian3,i=t.camera,o=i.position,a=i.heading,s=i.pitch,c=i.roll;e.Cartesian3.clone(o,r),this.preCameraPos={position:o,heading:a,pitch:s,roll:c},this.scaleOneZoom=this.getScaleOneZoom(),this.cameraChangedListener=t.camera.changed.addEventListener(Me()((function(r){var i=t.scene.globe.show,o=t.scene.screenSpaceCameraController.enableCollisionDetection;if(i&&o&&!(n.maxZoom>=n.scaleOneZoom)){var a=n.getCurrentZoom();if(!(a<1))if(a>n.maxZoom||a<n.minZoom){var s=n.preCameraPos,c=s.position,u=s.heading,l=s.pitch,h=s.roll;t.camera.setView({destination:c,orientation:{heading:u,pitch:l,roll:h}});var d=a>n.maxZoom?"地图最大显示级数".concat(n.maxZoom):"地图最小显示级数".concat(n.minZoom);n.$message.warning("当前视图的显示级数已超出您设置的".concat(d))}else{var f=new e.Cartesian3,p=t.camera,m=p.position,g=p.heading,A=p.pitch,v=p.roll;e.Cartesian3.clone(m,f),n.preCameraPos={position:f,heading:g,pitch:A,roll:v}}}}),100,{leading:!0}))}},getCurrentZoom:function(){var t={xmin:-180,ymax:90,xmax:180,ymin:-90,height:0},e=this.viewer,n=this.Cesium,r=e.camera.computeViewRectangle();if("undefined"===typeof r){var i=function(t,e,r){var i=t.camera,o=t.scene,a=new n.Cartesian2(e,r);if(!a)return 0;var s=o.globe.ellipsoid,c=i.pickEllipsoid(a,s);if(!c)return 0;var u=o.globe.ellipsoid.cartesianToCartographic(c),l=n.Math.toDegrees(u.longitude),h=n.Math.toDegrees(u.latitude);return{lon:l,lat:h}},o=e.scene.canvas,a=i(e,0,0),s=i(e,o.clientWidth,o.clientHeight);t.xmin=a.lon,t.ymin=s.lat,t.xmax=s.lon,t.ymax=a.lat}else t.xmin=n.Math.toDegrees(r.west),t.ymin=n.Math.toDegrees(r.south),t.xmax=n.Math.toDegrees(r.east),t.ymax=n.Math.toDegrees(r.north);var c=t.xmin,u=t.ymin,l=t.xmax,h=t.ymax,d={lng:(c+l)/2,lat:(u+h)/2},f=this.getZoomAndResolution(d).zoom;return f},getZoomAndResolution:function(t){var e,n,r=this.viewer,i=this.Cesium,o=r.scene.globe._surface._tilesToRender,a={lng:i.Math.toRadians(t.lng),lat:i.Math.toRadians(t.lat)},s=-1;return o.forEach((function(t){a.lng>=t._rectangle.west&&a.lng<=t._rectangle.east&&a.lat>=t._rectangle.south&&a.lat<=t._rectangle.north&&s<t._level&&(s=t._level,e=t)})),s>-1&&(n=1*r.terrainProvider.getLevelMaximumGeometricError(e.level)),{zoom:s,resolution:n}}},created:function(){ht(),dt(),this.viewer=null,this.propsIsUpdating={},window.viewer=window.viewer||null,this.initialized=!1},mounted:function(){var t=this,e=this.vueKey,n=this.vueIndex,r=this.cameraView,i=this;this.$_loadScript().then((function(o){t.Cesium=o,t.CesiumZondy=window.CesiumZondy,t.vueCesium=window.vueCesium;var a=t.$refs.container,s=new o.Viewer(a,Pe({},t._props));if(t.viewer=s,t.height&&t.$nextTick((function(){s.container.style.height=this.height+"px"})),s.vueKey=e,r&&s.scene.camera.setView(r),window.vueCesium.GlobesManager.addSource(e,n,s,{ScreenSpaceEventHandler:void 0}),window.vueCesium.ViewerManager.addSource(e,n,s,{ScreenSpaceEventHandler:void 0}),window.viewer=s,s.cesiumWidget.readyPromise&&s.cesiumWidget.readyPromise.then((function(t){i.$emit("webGlobeLoaded",t)})),t.initialized=!0,t.$emit("load",{component:t,Cesium:o,CesiumZondy:window.CesiumZondy,vueCesium:window.vueCesium}),t.container){var c=document.getElementById(t.container);c&&(c.style.height="100%")}t.resetCameraPos()}))},beforeDestroy:function(){var t=this;this.$nextTick((function(){if(t.viewer){var e=t.vueKey,n=t.vueIndex;t.viewer.scene.primitives.removeAll(),t.viewer.scene.primitives.destroy(),t.viewer.entities.removeAll(),window.vueCesium.GlobesManager.deleteSource(e,n),window.vueCesium.ViewerManager.deleteSource(e,n),t.cameraChangedListener&&viewer.camera.changed.removeEventListener(t.cameraChangedListener),t.initialized=!1}}))}},Fe=Ne;n("dd74");function je(t,e,n,r,i,o,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}var Re=je(Fe,f,p,!1,null,null,null),He=Re.exports,ze=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.manager,expression:"manager"}],staticClass:"mapgis-3d-viewpoint-manager"},[n("viewpoint-editor",{attrs:{editTuple:t.editTuple,show:t.editor,mode:t.mode},on:{update:function(e){return t.changeViewpoint(e)},change:function(e){t.editor=e}},model:{value:t.config,callback:function(e){t.config=e},expression:"config"}}),t._l(t.items,(function(e,r){return n("div",{key:r},[n("mapgis-ui-collapse",{staticClass:"collapse",attrs:{accordion:""},on:{change:t.changeActivekey},model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},[n("mapgis-ui-collapse-panel",{key:r,staticClass:"collapse-item"},[t.showEdit||t.editIndex!==r+1?n("template",{slot:"header"},[t._v(t._s(e.viewGroupName))]):n("template",{slot:"header"},[n("mapgis-ui-input",{style:{width:"150px",height:"22px"},model:{value:e.viewGroupName,callback:function(n){t.$set(e,"viewGroupName",n)},expression:"item.viewGroupName"}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"飞行"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-play-circle"},on:{click:function(e){return e.stopPropagation(),t.clickFlyPano(r)}}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"编辑"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-edit"},on:{click:function(e){return e.stopPropagation(),t.clickEdit(r)}}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"删除"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-delete"},on:{click:function(n){return n.stopPropagation(),t.clickDelete(r,e)}}})],1),n("div",{staticClass:"collapse-item-div"},[e.viewGroupItems.length>0?n("div",{staticClass:"content"},t._l(e.viewGroupItems,(function(e,i){return n("mapgis-ui-collapse",{key:i},[n("mapgis-ui-collapse-panel",{key:i},[t.showEditChild||t.editChildIndex!==i+1?n("template",{slot:"header"},[t._v(t._s(e.name))]):n("template",{slot:"header"},[n("mapgis-ui-input",{style:{width:"150px",height:"22px"},model:{value:e.name,callback:function(n){t.$set(e,"name",n)},expression:"itemChild.name"}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"飞行"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-play-circle"},on:{click:function(n){return n.stopPropagation(),t.flyTo(e,i)}}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"编辑"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-edit"},on:{click:function(e){return e.stopPropagation(),t.clickEditChild(r,i)}}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"删除"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-delete"},on:{click:function(n){return n.stopPropagation(),t.clickDeleteChild(r,i,e)}}})],1),t._t("saveAsInitViewPoint",null,{slot:"extra",viewPoint:e}),n("div",{staticClass:"collapse-item-content"},[n("div",{staticClass:"collapse-item-left"},[n("img",{attrs:{src:t.getImage(e.image),alt:""}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.active>=0,expression:"active >= 0"}],ref:"menu",refInFor:!0,staticClass:"item-more-tool",on:{mouseleave:function(e){t.active=-1}}},[n("div",{staticClass:"more-tool-btn",on:{click:function(e){return t.editViewpoint(t.active)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-bianji"}}),t._v("\n 编辑\n ")],1),n("div",{staticClass:"more-tool-btn",on:{click:function(e){return t.deleteViewpoint(t.active)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-shanchu"}}),t._v("\n 删除\n ")],1)])]),n("div",{staticClass:"collapse-item-right"},[n("div",[n("div",{style:{"margin-bottom":"10px"}},[n("mapgis-ui-button",{staticClass:"collapse-item-right-button",on:{click:function(e){return e.stopPropagation(),t.editViewpoint(r,i)}}},[t._v("重新获取")])],1),n("div",{style:{position:"relative",left:"-10px"}},[t._v("\n 时间:\n "),n("mapgis-ui-input",{staticClass:"collapse-item-right-input",attrs:{placeholder:"Basic usage"},model:{value:e.duration,callback:function(n){t.$set(e,"duration",n)},expression:"itemChild.duration"}}),t._v("\n s\n ")],1)])])])],2)],1)})),1):t._e(),n("span",{staticClass:"addView",on:{click:function(e){return e.stopPropagation(),t.addViewpoint(r)}}},[t._v("添加视点")])])],2)],1)],1)})),n("div",{staticClass:"save-current-view-point-as-init-div"},[t._t("saveCurrentViewPointAsInit")],2),n("div",{staticClass:"viewpoint-footer"},[t.selectMode?t._e():n("mapgis-ui-button",{attrs:{type:"primary",block:!0},on:{click:t.addViewpointGroup}},[t._v("添加视点组\n ")]),n("mapgis-ui-button",{staticClass:"save-btn",attrs:{type:"primary"},on:{click:t.saveConfig}},[t._v("保存\n ")])],1)],2)},Ue=[],Ve={inject:["Cesium","vueCesium","viewer"],props:{vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}}},data:function(){return{waitManagerName:void 0}},methods:{$_init:function(t){var e=this,n=setInterval((function(){var r=e.$_getObject();r&&(clearInterval(n),t())}),50)},$_getObject:function(t,e){var n,r=this.waitManagerName;if(t&&(r=t),"GlobesManager"===r){var i=this.viewer;if("default"===this.vueKey)n=i;else{var o=window.vueCesium.GlobesManager;o[this.vueKey]&&(n=o[this.vueKey][0].source)}}else n=window.vueCesium[r].findSource(this.vueKey,this.vueIndex);return e&&e(n),n},$_deleteManger:function(t,e){var n=this.vueKey,r=this.vueIndex,i=window.vueCesium[t].findSource(n,r);i&&(e(i),window.vueCesium.MeasureToolManager.deleteSource(n,r))}}},Ye=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mapgis-ui-modal",{directives:[{name:"show",rawName:"v-show",value:t.innerShow,expression:"innerShow"},{name:"drag",rawName:"v-drag"}],staticClass:"viewpoint-editor",attrs:{title:"视角编辑器",visible:t.innerShow,mask:!1,bodyStyle:t.bodyStyle,width:320,okText:"确定",cancelText:"取消"},on:{cancel:t.closePanel,ok:t.getResultConfig}},[n("mapgis-ui-form",{attrs:{layout:t.layout,labelCol:{span:6},wrapperCol:{span:18},labelAlign:"left",colon:!1}},[n("mapgis-ui-form-item",{attrs:{label:"名称"}},[n("mapgis-ui-input",{model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),n("mapgis-ui-input-number-panel",{attrs:{size:"medium",label:"飞行时间(s)",slider:!1,labelCol:{span:6},wrapperCol:{span:18}},model:{value:t.duration,callback:function(e){t.duration=e},expression:"duration"}}),n("mapgis-ui-form-item",{attrs:{label:"缩略图"}},[n("mapgis-ui-row",[n("mapgis-ui-col",{attrs:{span:15}},[n("img",{staticClass:"thumbnail",attrs:{src:t.image}})]),n("mapgis-ui-col",{staticClass:"thumbnail-btn",attrs:{span:9}},[n("mapgis-ui-button",{staticStyle:{"margin-bottom":"8px"},on:{click:t.screenshot}},[t._v("截图")]),n("mapgis-ui-button",{on:{click:t.upload}},[t._v("上传"),n("input",{attrs:{type:"file",id:"file"}})])],1)],1)],1),n("mapgis-ui-form-item",{attrs:{label:"视角"}},[n("div",{staticClass:"current-camera"},[n("mapgis-ui-button",{on:{click:function(e){return e.stopPropagation(),t.getCameraConfig.apply(null,arguments)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-xiangji"}})],1),n("label",[t._v("获取时间 : "+t._s(t.currentTime))])],1)])],1),n("mapgis-ui-collapse",{attrs:{"expand-icon-position":"left",bordered:!1},scopedSlots:t._u([{key:"expandIcon",fn:function(t){return[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-chevrons-down",rotate:t.isActive?180:0}})]}}])},[n("mapgis-ui-collapse-panel",{style:t.collapseStyle},[n("div",{attrs:{slot:"header"},slot:"header"},[n("mapgis-ui-row",{staticClass:"input-parameter-style"},[n("mapgis-ui-col",{attrs:{span:6}}),n("mapgis-ui-col",{attrs:{span:18}},[n("div",{staticClass:"current-camera"},[n("label",{staticStyle:{color:"#0081e2",margin:"0 16px"}},[t._v("展开详细参数")])])])],1)],1),n("mapgis-ui-row",[n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"经度",range:[0,180],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.longitude,callback:function(e){t.longitude=e},expression:"longitude"}}),n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"纬度",range:[-90,90],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.latitude,callback:function(e){t.latitude=e},expression:"latitude"}}),n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"高度",range:[0,1e8],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.height,callback:function(e){t.height=e},expression:"height"}}),n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"方向角",range:[0,360],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.heading,callback:function(e){t.heading=e},expression:"heading"}}),n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"俯视角",range:[-90,90],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.pitch,callback:function(e){t.pitch=e},expression:"pitch"}}),n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"翻滚角",range:[0,180],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.roll,callback:function(e){t.roll=e},expression:"roll"}})],1)],1)],1),n("mapgis-ui-spin",{staticStyle:{top:"50%",left:"50%"},attrs:{spinning:t.spinning,size:"large"}}),n("template",{slot:"footer"},[n("mapgis-ui-button",{attrs:{type:"primary"},on:{click:t.getResultConfig}},[t._v("确定")])],1)],2)},Ge=[],Qe=n("c0e9"),We=n.n(Qe),Ke=n("bc3a"),qe=n.n(Ke),Xe={name:"viewpoint-editor",mixins:[Ve],props:{show:{type:Boolean,default:!1},config:{type:[Object,Array]},mode:{type:String},editTuple:{type:Array},layout:{type:String,default:"horizontal"}},model:{prop:"config",event:"update"},watch:{show:function(t){this.innerShow=t,t&&(console.log(Object.prototype.toString.call(this.config)[1]),this.initConfig(this.config))},innerShow:function(t){this.$emit("change",t)},config:{handler:function(t){t&&(console.log(t),this.initConfig(t))},deep:!0}},data:function(){return{bodyStyle:{padding:"8px 16px"},collapseStyle:{border:"0",overflow:"hidden",padding:"0"},innerShow:this.show,name:"",image:n("65ec"),imageUrl:"",duration:.5,currentTime:void 0,longitude:void 0,latitude:void 0,height:void 0,heading:void 0,pitch:void 0,roll:void 0,resultConfig:void 0,spinning:!1,labelCol:{span:6},wrapperCol:{span:18}}},computed:{baseUrl:function(){return window._CONFIG.domainURL},appProductName:function(){return window._CONFIG.productName||"psmap"},imagesUploadApi:function(){return"".concat(this.baseUrl,"/").concat(this.appProductName,"/rest/services/system/ResourceServer/files/pictures")}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{getimageUrl:function(t){return t.startsWith("/file")?"".concat(this.baseUrl,"/").concat(this.appProductName).concat(t):t.startsWith("data:")?t:"".concat(this.baseUrl).concat(t)},mount:function(){this.$emit("load",this)},unmount:function(){this.$emit("unload")},initConfig:function(t){this.name=t.name,this.image=this.getimageUrl(t.image),this.imageUrl=t.image,this.longitude=t.destination.x,this.latitude=t.destination.y,this.height=t.destination.z,this.heading=t.orientation.heading,this.pitch=t.orientation.pitch,this.roll=t.orientation.roll,this.duration=t.duration,"add"===this.mode&&this.getCameraConfig()},setView:function(){var t=this.viewer,e=this.Cesium,n=this;t.camera.setView({destination:e.Cartesian3.fromDegrees(n.longitude,n.latitude,n.height),orientation:{heading:e.Math.toRadians(n.heading),pitch:e.Math.toRadians(n.pitch),roll:e.Math.toRadians(n.roll)}})},screenshot:function(){this.spinning=!0;var t=this.viewer,e=(this.Cesium,this),n={allowTaint:!0,useCORS:!0};We()(t.scene.canvas,n).then((function(t){var n=document.querySelector(".thumbnail");n.setAttribute("src",t.toDataURL());var r=(1e6*Math.random()).toFixed(0),i=e.base64ToFile(t.toDataURL(),r);e.uploadImage(i).then((function(t){e.image=e.getimageUrl(t.data.url),e.imageUrl=t.data.url,e.spinning=!1})).catch((function(t){e.$message.error("图片上传失败!"),n.setAttribute("src",e.image),e.spinning=!1}))}))},upload:function(){var t=document.getElementById("file"),e=document.querySelector(".thumbnail"),n=this;t.onchange=function(){var t=this.files[0],r=/^image/;if(r.test(t.type)){var i=new FileReader;i.onloadstart=function(){this.spinning=!0},i.readAsDataURL(t),i.onload=function(t){e.setAttribute("src",this.result),n.image=this.result,n.imageUrl=this.result,n.spinning=!1},i.onabort=function(){n.spinning=!1}}else alert("图片格式不正确")}},getCameraConfig:function(){var t=this.viewer,e=this.Cesium,n=new Date,r=n.getHours()>9?n.getHours():"0"+n.getHours(),i=n.getMinutes()>9?n.getMinutes():"0"+n.getMinutes(),o=n.getSeconds()>9?n.getSeconds():"0"+n.getSeconds();this.currentTime=r+" : "+i+" : "+o;var a=t.camera.position,s=t.scene.globe.ellipsoid,c=s.cartesianToCartographic(a);this.latitude=e.Math.toDegrees(c.latitude),this.longitude=e.Math.toDegrees(c.longitude),this.height=c.height,this.heading=e.Math.toDegrees(t.camera.heading),this.pitch=e.Math.toDegrees(t.camera.pitch),this.roll=e.Math.toDegrees(t.camera.roll)},getResultConfig:function(){var t=this;this.resultConfig={name:t.name,image:t.imageUrl,destination:{x:t.longitude,y:t.latitude,z:t.height},orientation:{heading:t.heading,pitch:t.pitch,roll:t.roll},duration:t.duration},this.$emit("update",[this.resultConfig,this.editTuple]),this.innerShow=!1},closePanel:function(){this.innerShow=!1},base64ToFile:function(t,e){var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=window.atob(n[1]),o=i.length,a=new Uint8Array(o);while(o--)a[o]=i.charCodeAt(o);return new File([a],"".concat(e,".jpeg"),{type:r})},uploadImage:function(t){var e=this,n=new FormData;n.append("file",t);var r=window._CONFIG["productName"]?"access_token_".concat(window._CONFIG["productName"]):"access_token";return new Promise((function(t,i){qe.a.post(e.imagesUploadApi,n,{headers:{"Content-Type":"multipart/form-data",Authorization:JSON.parse(localStorage.getItem(r))}}).then((function(e){t(e)})).catch((function(t){i(t)}))}))}},directives:{drag:{bind:function(t){var e=t;e.onmousedown=function(t){var n=t.clientX-e.offsetLeft,r=t.clientY-e.offsetTop;document.onmousemove=function(t){var i=t.clientX-n,o=t.clientY-r;e.style.left=i+"px",e.style.top=o+"px"},document.onmouseup=function(t){document.onmousemove=null,document.onmouseup=null}}}}}},$e=Xe,Je=(n("e7c3"),je($e,Ye,Ge,!1,null,"47cf5158",null)),Ze=Je.exports;function tn(){var t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACgCAYAAABJ/yOpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpENTc3MTM2ODRDMkMxMUVDQkQ3N0E5MzkyRDc4RkU1NSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpENTc3MTM2OTRDMkMxMUVDQkQ3N0E5MzkyRDc4RkU1NSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkQ1NzcxMzY2NEMyQzExRUNCRDc3QTkzOTJENzhGRTU1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkQ1NzcxMzY3NEMyQzExRUNCRDc3QTkzOTJENzhGRTU1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+A419kwAAJnZJREFUeNrsfQmUZFd53n/fq33pfZ2enpmekWYRI6EFJIEhCAFmObbB2HFihxhkAhxnsbHl48QJTk58MMfEwXHAwcuJEycOcYIgYIwRyIAMAVtCaCKkkWbVbN3T0/tae9V7N//36lX36+5a3quq7q6uvt+Z/1RN16tX9713v/sv97//FVJKUlBQKA9N3QIFBUUQBQVFEAUFRRAFBUUQBQVFEAUFRRAFBUUQBQVFEAUFRRAFBQVFEAUFd/C1QiPOjKsHoVAf7h1VGkRBQZlYCgqKIAoKiiAKCspJVyiD/EztY/wD6j4pDaJQwv+1RUERREFBmVgK7vBX9uvpTf9/i7o1SoMoKCgNolAVb3H4IEpzKIIo1ItakS8V9VImVjvj9ba4wSGWJ1hW7ddD6vYpDdJWaHC0/2OWp1new/ILLP+N5Y3qru4uRCtUVtzP2bwOEwuaY4xljqWP5SZLUJlY1aGyefcPnrI1Byjxz1j+Rt0S5YMorOP9LK9hucLyWpb3qVuifBCFddwgFQ5WBFFoqmOvoEwsBQWlQZqFIMs9VIwCzbOcYcmqx6ygCEI0QsXoT7fjb+9i+RTLhHrUCvvZxALR//EmcgBdLB9gEXvBHWHpsLWfU6LKFFYapFGcsDtTOQyxHGRphelIEGDUbs+Q3eYelrhtHlZDmmXJNh0xmXiLipOJuK6M6sqKINXQWePzWBN+I8JyN8sCy3kPhMCakJMsx6qQ2A3Ctgxv+rvJMslymeUlu23K71IE2YCbdkcpZ4oYTfBBYKI9ao/8wNdZPsdSLk+nl+VVLPdRMeFwu807zW4X5CGWgk2SZ1meY0mpbt7Ag2+jXCzMQv9sGZJ8jeX/1NfzDHuI1qEJfnvTx99k+SwfI/lzDDSInr3ONvdaxefJUzGS9x1u50XV3dkEGNX3pQYB/tYe0f+hfV0YObHU9fHGh2hjhUnwRSpGxUp4GB/x3xfs910t6vg/AOF2jtv34xm+HnMfcQKm7ctKg2zsFHHboTUbJMYmY19/G7/8+B7vMMgf/kuW7+0TonyU5SP1apB2DB/mbUe66Q+fO9RX+eUre/z+ILnlEXQaJvzxNibGbSyn7EDJKVvqcvAUvOEvqBhmbQpiQeoajNOxSMDSejsJTKw+yiT5EEtXGz4nRBzvp2Lk8H5bPGM/JysK27FHxAmTccimxVLX2RpaxOQOdY7cL6WtiOFOOjEQo/szBZri9z80sURPziV2fL7mXpaTfE2f42v7bhs938/Zr7dTcXUmKYJ4I8f7WB50/O2IPcr8HsulGt9viuPWH6P7rs7TV1YyNN8bpZGhDnr1LhAEwBzPzzJJ7uTXP2WiJNvoWX+7MbN6f+L0JnKUEKLiqr6Ktjl3IpDrZLWTx4PUfbiH7o0GLPu38s0X5C+YlMN7dpfz/P/ALt+Xe2zf5HAbPesnFEG8464qn6GTfpjlRyt8/nbb0a2IsT56O2uEVx3to7dWO24xRS8c42P5uAcP9dCbWHs81wL3Bqkvv8okeUC5m/vXxNJdfP4j3EngyH7D9kvQcR6i4rxCVZjSSvWIGbJ6ysf1BTrTF6VZdtB7xxfpSSbMVAv1i0f4+jvZ3HpiPxNkv1Y1QSf/ue06ecBHoe4IjSwkaTxvFE2oPQwMEI8hY6AdOryaB3GHZ1hqpl4MxuloR8jKrfKEXIEy0yv0chuQA3gTBhPWJvuyr+xXEwuTiJ+m4gKrY+UOQAiWyXE4ZlIq6KPx2QRdb9aPYyg2DOkzTKmbUmqmSRpeodEZZiykJ3BcJm8Gc3kzJARJjf/Or6auCaMk+PsO3S9E97JMks+0iybZDwSBM32UiiFKTNyNk7fwK9ZXfJLlY1ScB9n4YY4Ww37qZW2wmilYRd2aglTWiBQM6a9o85ZJc2QrWBhSwjbQnd/VmCSRgJbi151IGcG8D8K/X1AEaX3AWX6nTY4Srtkd3ksMHwuN/oTlQ5vvxVKaZtioCGQLlEhkrbwu75qCO3beMP0Bn2aZWvmC9Fcjh2c1yBqItUwoEtStlHZoJGggbfs0y9tYi6yyFvn6fiHIXrQrETr96U3kAI6w/FI5bVADz7P8IRXXUWzAfJIm6iEHd1wtnTPCrHriplxPfc9yZ272zQDhWHRb+8gE/ya0FMiyTff/J5kk9yiCtCYQav2xKp+P2iTxtILwW2cXQJI/KEcST8RgMoAYiYwRZ20RADOCtvbIFcyA7Wc0HSXiwU/x6yIP0iQzRgxE4TY1+zdxWZh171MEaT280oVZWCJJ3CNJXuCX36+XJNxJgxi9QYw1J8mnZUuOdC4vg9t1U1hb+EoagwmZdWqXRLoQh7Pf5J+E9v6gvVBMEaSF4Dbr9GA9JLl3lM7yy5c8dk4No7U1isuNKwn9tvbgjurbLu3hJKjtuJu6LjaQHJEw1mqxJptdSEf5SUWQ1sKyh2MxC/7LXklCxYmxtJsD2WyCKRMv1/F8bOqUnGWYV9t9Y6AtpE3QUlBgs0MPIje5LW9kLXJaEaR18AOiTcv8quOAV5KwFsHoW3POA75GJmdGKn1e6qTwS5oZuapBWKvzww/BnEm5Y7jNYbS9iT/7D5gkIUWQ1gBqQnld0QeSoCJJhxfLqdIHGKWTWSPq9DW2eLHcOX22mZOvMWLzkC9Y01Qt8oDPhYtCEHkHEdm8y1c8jtvO2iQqZVOKSyBw8qOKIK0DrKd+0uN3hm1NUpMkZ8atTjNSiRwpJgdmwaudw6+vd878Ju2Bk8dDIjbcqR042q8dPzms39UZFlV9q1hIxHHcMT7+QJc20sH/L0cYmFHwiWwtkqvl2ONamkQSmFpD7UiQvRiFgF3/v+3Xh+sgye+wrFQ57lXlggFr5HDh6Pp9Im+bV5q5Fl2iQE9U64uHqEvXRD1+gAj4RCTgowgTqp/bkccczULSnMvkaUPkis+fZTER9q0WHMC14JoiIT3RIEtwjT/B8p+UBmkdknzWdqi9ahKYW70VtAeiXz9T7jO3k28I6yJPyjav/CE/BQ92a4eO9uunuiJioE5ybO2RmvCDKGN9+slDPdrhcECEN2ssBApq2pI2SZrQpLtYixxtN4K0Q7r7T1Ex49QLkI7yNdvpX7EJc599nkA5h7yaz7FJe+TCAT3NfoMWDZjH2BwapjLmEDRAOk+JVFYmVjJyOW8U51+QX7U5WdGnkY/J0BkJimjYT3GQo9ygsZyWc9Mr5lQ46FtEBA3hZbedv9TuBh/lWY2MT1X60F6p2M/yPB+3K5nOXtPd22U9yN9lefN2RYYQ+XF7PHeyVEdYBPvjdDv7Kpt9HpnIysWllFxMZORquTtfjiCbfRj2SWJMmB72Zbo2WwEg3kKKLuQMDQENWk0XOtz6GeGAlqrm3LvER7nzj5chB5Y4v8++BHz+sd2oy7VfKys+RsUU9h9u5knh8HohBzAQF/1dERrlTqkbm0b3uVVzJmdQQx0QpFrNyATEr9OtvpjGvyf6SkSBdhnsoJOpHF1HLhkIVyuoUAITMgzzsMHsYAxU/7XM3x90aFJkO6DNM8oH2Tl83jabmoZ0lXmOLaqYhX2NA90ROoQIEzvHVmdI5+Xq1Tnj/OSSebNRcmwGm2X5W8vm5JVZ40I6J1ccAQW9M0QHhzroNr8uXM8bWYEID9dcKcjB2qJcLpyz/Oc0FUP2Koq1wygVqX5roydC6obpMjUDhBjt0Q6xaQWTqmBHsMRcwrw5typnt9uIzRYoe23evNIXE339ce0Ad3QNvxnxU99otxa4PGNO8t9cNQPXzGZdIODXcg30KWiLzSnxX7Y1BjY5QjFtQxFk90giGjG3EJ7NFtwn+GFuIhoU3UKskaNwY8G8zn5Gza0HMAnYHRE9TK6esF90+X0UZtNJ4ByGKYxUTksks7Q0nzBnQYRq55pLyDnWeqmRbjFmSqHpgsxIgDpYs/kmuD3SNeHMkI99kQbWlbxmM0HslYhP77XO1K7ZmA1VB2F2yWhQd7XwqjfK/IhYmiOH7xUkZadX6DxzLBcNVf3ecE+ETjExRrkj+iq1hMlTNH8GNdZqtLicpgu3VuTFfGVzLTGbpJWRTjrOXw/i291RLerTRc/MqlU90rXJ2AAOYuKQSTG11ztSuxLk/oYIgrkMUdt2jwapk32OA8Je6stjZH5qhc6haAM7u2W/w6Q4wE70a8N+K0XDC2kp5KdulgcH4uK+hRS9OLFEZwxza3o+/y05tUrnhjvoDtYiAXY0ZWdIDLIPtLyasQp77wQQNv9LRZDWA0yj2xowr4SbAVTXyMdaAL9j2fssBo/QF0AOOLty0zl8OvnHeugNnWFr5SM1SGA///bd7IifGF+ib84nrf0KN0WkippsqJNOi2IwRjA5j7G5liyYroMFsgEz605FkNbEyXqvC+RIpAuukhpHurSDhiFiJTUzn5TXMgXNnr8wQs6JRUzynRrU3hD0iXBTH55O4bFeeodfM8+xI/7CVv/Gt7yYoqtdYbrdzigOxIPyxDj7I25/Ix72rdRZPeUwm1nRvV7ntx1rHZ2o94t5l2slIgERYd9hLV0lmZNLSykrdGlHgtbvKyJLrxzV39xscjgVCjvhd7zigP6AKBNsYJ9lNp2XayHVWFB0I1nS7ckbWD+Ce3C70iDbgEPd9X/3xmL5OlfN7Az9cTFYMsOklMbUsnlT0zRzvWMWw8PsvHeeGtYfYjNF3+57xm06cnJYL5y7ZTy7TlSpabow5xPi6mDc7BdC6PaxB1Yz8qK7QUMGgv66d83Fs3hOEaRFwOTA9Ryq57tI2pMuChwgKZA1yJoZtpiSs+x35CPB9dln+CDI3r2DycG+ir5T1z/YIW5L57Tla/PmZZuoGnhsSMotpORUb1RYafyszSJImV/JyJr1vnAO3JtSAqZHjFX7MDtT/dYEB3Z/qmQvmlgYuVHHCiMlkutQNO5/UXFLg+F6rynvMh2DO1l/SXtw5zHmEnK2FPkqmTV4Zc3xGtTodfv7PKJnr88bSy9NFqbP3jTGL04Zk8tpibmPBJ/TderHoV7tHnvCkpw5WOyLzHJ71yJe3VHhuipJweW9KYODHo496vF4pUEqkANp7s5iAeiEf4/lnT0R+pWFOncFN1wsi0WGbixInaX/r6Rp3jCLqw+x9sImjRju1EbYvHK1gGh21UxenjEWVtIyVyIaj9ZWlGl80dCP9esrkaCmpbJm/GC33sOOuVarjccHtfu/f834unMtCCYemXDz3RHLPIQf1eFj7VYway9hhoNfp5kVZke9lx11N2kl2JMFQY6JVupwe0mDYMT7RapcSSMUDdJvYlMarye2Snu6SCvp5JG5ZMcDSym5NqewFulBTnevuLfmb/K/a3Pm9JnrhakSOcpE1ejSjEFMDjMc0JafvV64wb9ZMyWdHfFeJumwU4PwfTEXk1Z7SxEpwSR2VSUG9ybko9ipIXrHPQfpEbyG/a5rj/XX+Bzh4Pey/B0qLjd4byOBlv2qQX6D5V/VIjT3hs6BGD3MNvdqIkuX03l32aJuy+FEgyK+7tDLdDovMxvIwRjooCMhv6ia8MejtjmxYE5yR872xjSaT5g02qPFR7r1Dv5bgP0Wa24lnZO5qWUzcXXOWB7rI/NIn268eLNwi53xQf5etLqpJe6cWZXj6/dGyGxBZlnS8EHs6+lgE9FV0uBot3wonRNTL8/RN4c76PRYLz300pSVX1XTKq3xOX4fez7GbJMZ7xeVBvFmm37EbVvZ7j/Mo9vp/hi9syPkbsKwtI67toO+Xh0llXMWtBZy3Uepvd3w2YnC9IWpQnZm1aQjvTrdP+YfuOOAb4A1VAjkKNmSbAYFjvbrPa8e84+wf6KlcyYdG9TlhSljOpGVVZMJw37RHQutBxNKJE7l1h3zkJ+iblNK2BwbmFyhs5gIvcWvbHK5XYNeK2NgkuV7VMz2vWi/n1EEcYcfYvlzqi81SDBBXKWclMKyVYmno1DI+nLZZE4mNnc+v04B7pRVt2djjbA6vWJantL4gkE5Q8bYYY7XMJkCx4d8fTC3sjlJTBp5edqYqTV7N9RBRze3MZldJzb7Tb6gX7gKJPD1zkFz4Brxms27zndza4ohHHxeOene8D+pzrCt3SlcPXznxF5VWyBhTq51mKxMOkw7q/N1ha28LFHF15GXpo2FTZ2/0/n/haSZurFgzvbH2eTq0tZG34G4FuV2Wj7J7QM6DXVqWT420RvVKnbAeFAcuLXB7bE0SMp5HVJKVxGyq3PyqdMj9OrTw/SeTIGmr87TXzeZIC2Z2NjqBGmopiyPcpddOekuNCkWO7FNP1MxtgabPmDV4KqIxZSZ5g66IbkwFNi4vpx9gsX5hEzlDdNwEgTRqaI5aJNkUKegX1up1gEjDvKJNXOSzIrXUQXpHKXPTdWVW1XxGbbCPMdeJ8g/omJBaU/xcR6p89kCXZlL0t+4O142lN1d0iBsflS1t7nzbwlCP3kud439BR+bZn521AP9MS2fK0h9rE/fQLaVzHr0yiLJtEHHhyjTFdFlJa0FUiHahOIQZXfm8XJPqe57tKfTmVqdIF+2xRVuLFr7fHiGromGtj0ozTKzg13VpEtkZKZcSdBMQeYyCZmbS5jJ44O6jx32I8490zHqn5sszDi/a4WAmSTDnXqOiVl5lPZRBATRitUe87vwDF1ZAQe7tzfhYGLRaB+C3Kg/yFeo55pKOzQ1HPEQ1X+bO3quGhkDPtIPdOkHnXM5eYOM58cLN5K58mtMYLJ1hkWwMnmL5wKJm3WdHpFp4rmwDRyK/z1oR8fgYqEOwb9nubQfo1hekW/p1tWowXuoR+9mkvgdWiLP/sa1pbTMVCGlVsPcNHf5qmVT7lyxIua3Wd7FghAzNCzqbH2Q5axtju87E8srMDfgOa0cVRMbNbHYYc5yh646NxFgU8gwZUUNEgtu3FZuekVOD3ZoZjIrfYvJ8v2czavqWksWVxxiMjTb4EY6dWqgZmiQf0PF/V4q3lqWP6LinMpXFEEqAzH+Ts92mSl91IQizgXTqthYMQmQTaHw1HLlvUdMuWHYlS9N5tNsm2uYTESBv8XkxsE45Bc6i79G9GnVPrfWyDYMDWw53cgOwQjOYOL1X7jUMqgNjMlhQxGkPOpavSYsS6Q6QTDDHfStT6ql8zJdKqVTynnKFmjWVvtl0R/XohemjIprwpGX5UxW5E6tX58rPuuxPuYwK5+l1Ho/Ze1SNd2E/ZdcziiO4KUKmnx+EfavL95C+onhImFROLIFduCZwGxE9PID5G2S+AjLx6mY4Y0Z+ScbNfHajSB1FSPThJBGjRKsPnZ2D/dqx0v/H18wLyUck4XWUJmlm/0xqzp8WUSDIsAkCc+umukKn/vvHvUNkj1az6yYiUvTxvL1+WL/Pdrvoyuz6yQ51KtV1ZbcvgVH/7LegBzO67gxb15M5mqXJxJa3b5MPc/k52zfoh486nj/OMu7GzHztP1AkL4Yjb5yhN4DwfstN0GrPYLmCpR1rqeIBNcn6EraB8tbjRoFEY4P6b2VNsxhLSViIRGMBUUIwuaTz9ZQBJLADwFJOiOCjvTpHcjVqvZbyyl5w+GsiyIJ17fJ5tOa0ITuBpG6CTLn8Xhot59oUn94O8u/VVEsh19b7o8jnfSGiSX6awjel3Oy3YRi2J5fy7/izrlOEHuiEREjHt2rFkTgjh88Oezr8XphIMk1myQnBn3+2wf1qlmyWGQ1teogiE1ibvda3lcmL5Omy4qLda4oBGY9HPsAC7If3tbEPvGeljKx5hLev9PIGnQnbizWt9hGc/nwkQnLZlCXbarEEEGyty1Y0wgzq3S2N1Y9i3i0R+syTCsrd8ErSWYTpn+sXx+uFd5dSMoJbls24FsnMRZIOQmCrRe8ROrqcdBZOS95OB6RqANN7pK9LUWQOrUYVgT+fSqWrMQCG+QKIU3kM1QsJepWvUODwMTZEK25uUzfPthFD6Gf4H29D385LZf741Zkxaqd1RUR3bOoveuIgLEfsrCYklPdNVYUsomEdPTACxPGbK4grd/HwqknXsxdXnfSrSzjtSnmg91a7MSwr9+n1Zz7wGKsF4TDQUUb0V4HmVFxfnGbCXLT4/Ent6F/Pd1o59xNwFl8hopZuz9G66vPkDKOCaHH7M9dlY9hTQQiXS+j1W784Cb9D5bP4H25+ODmvcUrRIUKKUcVdWw7INbWp9vrONjBfnnGfNbNOvK+mBZ9/XH/oRNDeg8c9Ep+yYEuLfbgMf/IK0Z8g7XIYY0SKxIBhIQQYjNB1lb3ZfMylS2QqwLVbu5NBVzxePxfNbl/4fr+5V7VILfZWqKWCsTy1e+wvJY2ltCvhMtUR2VFnyYKbvbRYO0wz2ZKp/2dYHdUdLE5s4i16BpiqEKYiYxMTCyaLxzq0V5Z+3dJgzaBsE9QSOZk1jTJ0LFYQyc/fJZau+A6Ab/i8ozxwmbHGhvu+PX1lJSltHQdXfLXn8N1yiT9CTaz3O5c9QHbzHrrZivAI7B+/imWX2P5272oQfy26eTWPoRG+bxLQl+oq0EuO8FqWq5gue2agRsT8AeEtNeUlEp1Xp01z7PD7mmNA6JWvVEt2h/XOnqiIt4REiEv5AASWZoq2PV6SwRh3mq90fWdew1T5pjors0rn67Vq0FQ9ufDTBK32Q3IrcKW0oGSGVunYL7qoUbJsZsEQZz7To/fwWj8iIvjLlEdOVnYVcltNGsusd7xscpwIC4GnRVEkHWL487eNL6TzMqlnbyxfTFx7OSQdmexHcVKKz0RGvE5tMc8t1+6j14VGgjxWu4Wyy95IElLoel7FFaJYqHa929ScZvlOJXZLNMFztjnqRbJAv4Jy12eDVYP+xEe6dWOhtcLyMlbK/KcKTUrpJl07KXuZzPproP6G+Ih0buTD3Zq2Xzp5rL23UiAogNxOl0wpEWQbEEmWbtdcvvUm7RvIdm+4e+yuZXazQ6/LZt4PjfuPoBRIa8f0alv2qqvEaCxGJHRiWFn/weWP3MegLx/Hq1eZduznk+ecLnpZdBHwaP9+omSFmaVkZlNiDOonL55V1ykqbAjfh9rmqZvk5y1zD2R5/Z0bPWX6AeoqshWX7hgWGatvDZvXkzn3E0OIuAQQ/HqrR+hQ7xIxUlAzOmcdmn+7jpJdoIg1+2o0695IAhswQe36Zo/ScV6WU6CoDP8NtWR2Vtu64JK6I7QIJsvR0pfzRuUmFymlwyzfG7XQIwOD3XS6wI6NWxuIJlxKUUXry/QU9iK4cQgvYPP272VQDSTylnrvcVymibmku5DrwgTl0lShJb8FHfy9WLdpCNB8+fJ3cpPRBF/x4PjvqsE2QkfBDPOD2zj+X+BNhWT45sPk+D7ddmcwtoTw3Qj3OFuZfI0Z3UkstLZY8MddBKh2XLHc+e8em6K/mxmlZ7OG/XlB8F3WMnQ9cuz9Pmr8/Qt1lxZPlfy0gx9mV8Xy2i6ATazhpgoi6xRJtxeG6QMOeCLfNpJDvt+Q5NgvYabDb1RhOPdbeWD2BqkNOuLECfiyxgB/gvLr1TRIHDG/zVVyXBtEr5lRy3WllbyqIbK4r9aZycUTqe76ggjSDvQJU5wR4yXiJJjTTKxJC+V2/3JQUTRF6WDnWG6PRoUQ9W0CpPAYLNoYTUrrs0m5GUmZaqC2Rc+OSSgSbZUTFxI0vMvz8lnXI+c7OCXIchFJsMnKraTdOR5Yd3GaC3LEFrf3rewpTWIl3mQj9uvyM1HDaOvsvy/KscjB+aPd+i6yznuV+yw4XA9vkiKHW3pco3I5SxNstN+WyQo/Ni6DZpkKC7vubkkbyQ3Zfw6kUhbI/737M4dYEe+IxQQgUhAK/BvG5m8ZLPIzCUyctWRM6VRpUomARFZSGiT/XERZi22YXFUT5TuYuL6z98ynnfle4R85dZxLFQ3R4wkkwR+4YepermmoB2kyVKLYzt9kJeIalcZbBISdmRsw+J8fliYXHxvPSfEVsiZvOnaV8A2B2P9+qFYoLhmJG9Kv2mSWEia07OrctptUiDywmIh3d6pygxyO0IuOrToj4mB3piGwtQa2tIdFQf1MnXBplbkuVokCQW0dMBXdhvoq0yC36rVHr7vEZsklSyHGT7Pr7erD/L7tklTC8d28LqfrfB3jM51lYDAPuGah/wjLDq6NmteTeeLKfda0V4XPVFt6Fi/dhLbsIltuHBsdcDnP8HkWNv6AWWP5pN0ppxPMtQhTp2w50nKE501oK/iHulHuPPfXrtTWVGq36UyaT82vkx7BPUQ5Lds86oWXt7B6/i9Cg8KPkDdG0myqZPystS0wGri5jJdXkzTNeHYJReTdAe6tLFjA9rJnqjoqZWJ60JbaTgPE+P4SJd2lO06p6aQ7IyPTyzS2Qsz9BfsnC9v/v5wp3YHvl/OtMK8R/XAFn2ISTLsgSTOfgCz7b/zZ3tmv/TtnAf5GSpm4243toR5N6l7NAjV4fvqOXm+YPrTOdN1UYfSxBrqUcWD5qmgb+t+gFg3gqRHpM8jqTCbp6ysYmJZETIfYSFVDBXm2dfpEGUGN6TATC3LcVNoc6XUmVyh0H/3Qd/DIf/GtfpXZs2nbyyY18q13cVlImETodpbbu4J9gixfY5pzSp7t3topTAv/JRHtkmTIET6lE3CX6wxkoExj9X7Q+gwfp/IuT3eKgBB1vxD6saCPDe1bF7PGxvL9iA3CutK+uPa6FiffspOQ6+IOJtRR/v1UwMd2ii+t5kc/Ju56RXzBnf6C1g+67Nrb2FnqEyOcs+NF55kh3/ZYQ7m2C+a2nidIudhxhyTko9yxz/grpMZ8yDTbpOjHmx3Nu+f2LLLdqTxHD/Mc/UGDcIBPW1KQ3OT7WtXDknbplVhMWUuLqXkYmdEdHVHRF/IL6JE1BR3BGkjfO65xaRckvbaD+ROlczC0tZp2DP9zA3jG6Pd2lGfToHJJXm1tLeJ9R1uJ67R488jKPLLfF+hSSapTdF0gtRb4nEHAHMP9ZXqSqOOBPVkKmPEam22g9Awj+g6j+KGX9fyGTLDVn5MCltFyyU2lQJdYdHNZlIMZBHetLjJmiAF0wznYi21JUzqc6zdcJb5wUajL7OGKeeU49rqvKcgyU+zfMIVoWd0rBEvhf7fHxwwHt/vGqSFohHGLI92X6I6CwKIEkmQiFiDJIWC9PsCwrBL+BQMc13zcEfNzazKaWLR7BI8bIJVNW3SbDaxv4AcqkythVglMwltrDXZWSJHA+oMbfmCh+NBjmHH+wOt32/2F75OxV2M6otocIfvjunmQIcYEFUiUXljfb91tu0rdn7MjcBnwNYKVQMFBhWSWZmqRQ50+FJqer5QvUgciGuRQzRUN+pxHniu1Hs798bAuo9gO4lIj0nWSRBxcpDedcew/saTg9p9Vc2stXR3bcfqBTuDCU6SljsuGmqYHCCG1/kM1M9FcAAJk+937WvN6H0s72N5N8uOWj0+2mdgkiyyqQX1/k+9DhAaZqnt2emOiBYIByhVKQSMtSU+XbccZmw70EjZT5fjsSyREdqjUppMlVlyL8B8xh95jUqxz/EV8pj6w4SAGYYJXyzPxqrID8KX4XPJnekv+xD8YLGW4Ytev8ePxLi2QI/PJ+nZa/P0bdj7PBKvlluJCEKYdiflDrntOUeY9yhpBJBzyzVzG7mtiSaQA0GAP8RAs0OPCwmvX2RC/BQVt4pG+sp9SoNsP0m+xpoEa91f5+V7iym6BXHY8iY6HiqnZwtm0FkEO8d/4xE7wxrEQAc1XW43XQ9KJMSOvc6ggPWZX8uE/E0hKQiImfBLO/ioyrU7pwiyM8BqREzSvaLRE2H7A9YouWzeCJVWE8IPCEoti5E9yB04nWtsm4WKD5G1B4hq9SZHciP+HgromQbXlDvxxV1IE8GE89NsVmEwg7mF/K4XlJO+M1oE5sIfUJ2VULacz8pl0tMxNrvgCMMPKO3JgWiWVn/5zprkLGkPmHYgBrQa9vNoIjm+xvfrqzv9jNi0gkN/NxXz/7Ao60d2yv+wXLtm52LtRbCpFbSd9uPNPC8IwlrEX7L7EdnCPEpVknlMdwcZShvb4PxaMdRb9aGiUn3B9FT55atMji+0w7NuxSW3LY9vnV3ACPzJZqtumFZOpxiz3M3cSBNkgAnlPL/mInR7Wz+9yYPP8dl2IYcysRojCTrup6lYxXHbgNE+HvEtY5KOTaMMTDE7f2rLEldBpTXyVs2uAo7Fd/DdeNi3Ak3jxYSKBanr+AC9OeijPrzi/1UOh/n5n5kc39jP/UKZWOVNrh/mlx9vhwEEM/4gwmpmfbnsyUF62/npqmt6MJGKeY7z7fZslYnVBNw7Sk/wy3+kxvbXawmwv+Eb7rCc3DXMJayaVpWAsjwfaxNyPETu9jdUBKmDJOggH2XZkx0FqxY7w9QXDxJ2tArifcmkmkuWLc8DUwLm1L+zy/i0A1CL7ecbGmAUFaqNHsYSm1tYNvowyzuJKLhX2o5icj0ROsomlu7XKYb3uQIlElkqVysY6+j/lK/3XJs8OpjI97BgNzEs7vrn9t8/rgjSfJJYIysTBaWOsPbhzr3Qbuxwe3WevsfkCIz1Uhjvy7pbxZKwX+LrzLbRYwNBkKISsge1ugmiTCz3RMGyURSHQDj41l5pN1LkWWuUW/EHP+Q3+JoeazNyAChmiKIUqEUwYb/vqedESoN4J8qL9vLd+6m4l0VfK7cX1R0nlzf4Ucij+vMdzqfas1Bh3kZGZ1j6xczSt9D2l1dtBHjImAR9Yr8TYztLjyps1Saw4VHv9hkmC7Y2eL1NmFZx5uGQYx3Fd9soMtV6GmS7cWa8ZQlQj1YJ2o48iPKKXSALalYhoIDq9pf2YqkdpUHaW6tk7c75fSYL7i82FD1hvx7eBsJgMhPLX1F/DPWQJ3ajanq7QhFke8mCfKbztpR8FhSYxtJR7KPeazv5KJ+DLN8YbY0sIkcMqR/I8EXxN8xZwFxCJO0momvqTiuCtJPPcov2UJhYPTMFBYXW1iD3jrbmzXluXHUQpUEUFBQUQRQUFEEUFBRBFBQUQRQUFEEUFBRBFBQUQRQUFEEUFBRBFBQUFEEUFBRBFBQUQRQUFEFaAr+uboEiiEJl9KpbsP+gVhTWxidYwlTcXAfbI6BK+kfUbVEEUSjiUfsVNXo/rG6HMrEUFBQUQTxDaY99iJYoHKegoDSIgsIexP8XYAAsll2REptLMgAAAABJRU5ErkJggg==";return t}function en(t){return en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(t)}function nn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==en(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(en(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function rn(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function on(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){rn(o,r,i,a,s,"next",t)}function s(t){rn(o,r,i,a,s,"throw",t)}a(void 0)}))}}var an={name:"mapgis-3d-viewpoint-manager",components:{ViewpointEditor:Ze},mixins:[Ve],props:{viewpointConfig:{type:Array,default:void 0}},model:{prop:"viewpointConfig",event:"change"},mounted:function(){this.mount()},computed:{baseUrl:function(){return window._CONFIG.domainURL},appProductName:function(){return window._CONFIG.productName||"psmap"},getImage:function(){var t=this;return function(e){return e.startsWith("/file")?"".concat(t.baseUrl,"/").concat(t.appProductName).concat(e):e.startsWith("data:")?e:"".concat(t.baseUrl).concat(e)}}},watch:{viewpointConfig:{handler:function(t){void 0!==t&&null!==t&&(this.items=JSON.parse(JSON.stringify(t)))},immediate:!0,deep:!0}},data:function(){return{loading:!1,editIndex:1,editChildIndex:1,showEdit:!0,showEditChild:!0,editTuple:[],testGroup:[{viewGroupName:"one",viewGroupItems:[{duration:3,image:n("71d0"),orientation:{heading:360,roll:0,pitch:-90},name:"视点_1",destination:{x:104,y:28.011763478186143,z:10071759.273162084}},{duration:3,image:n("8cf3"),orientation:{heading:360,roll:0,pitch:-90},name:"视点_2",destination:{x:108.91,y:32.52,z:5e6}},{duration:3,image:n("65ec"),orientation:{heading:360,roll:0,pitch:-90},name:"视点_3",destination:{x:114.21,y:30.42,z:15e4}}]}],currentItem:0,selectMode:!1,mode:void 0,selectItems:[],editor:!1,editItem:void 0,hover:void 0,manager:!0,imgIndex:void 0,active:-1,config:void 0,clickActive:!1,activeKey:["1"],originViewPoint:{name:"",image:tn(),destination:{x:0,y:0,z:0},orientation:{heading:0,pitch:0,roll:0},duration:.5},items:[]}},destroyed:function(){this.unmount()},methods:{clickFlyPano:function(){var t=on(nn().mark((function t(e){var n,r,i,o,a,s;return nn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this,n=this.viewer,r=this.Cesium,2,-20,i=this.items[e].viewGroupItems,o=0,a=nn().mark((function t(e){var a;return nn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=i[e-1],a&&(o+=Number(a.duration)),setTimeout((function(){n.scene.camera.flyTo({destination:r.Cartesian3.fromDegrees(i[e].destination.x,i[e].destination.y,i[e].destination.z),duration:i[e].duration,orientation:{heading:r.Math.toRadians(i[e].orientation.heading),pitch:r.Math.toRadians(i[e].orientation.pitch),roll:r.Math.toRadians(i[e].orientation.roll)}})}),1e3*o);case 3:case"end":return t.stop()}}),t)})),s=0;case 8:if(!(s<i.length)){t.next=13;break}return t.delegateYield(a(s),"t0",10);case 10:s++,t.next=8;break;case 13:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),clickDelete:function(t,e){var n=this;this.$confirm({content:"确定删除'".concat(e.viewGroupName,"'?"),onOk:function(){n.items.splice(t,1)},okText:"确定",cancelText:"取消",onCancel:function(){}}),console.log(t)},clickDeleteChild:function(t,e,n){console.log(n);var r=this;this.$confirm({content:"确定删除'".concat(n.name,"'?"),onOk:function(){r.items[t].viewGroupItems.splice(e,1)},okText:"确定",cancelText:"取消",onCancel:function(){}})},changeActivekey:function(t){console.log(t)},clickEdit:function(t){this.editIndex=t+1,console.log(this.editIndex),this.showEdit=!this.showEdit},clickEditChild:function(t,e){this.editChildIndex=e+1,this.showEditChild=!this.showEditChild},flyTo:function(t,e){var n=this.viewer,r=this.Cesium;this.currentItem=e,n.scene.camera.flyTo({destination:r.Cartesian3.fromDegrees(t.destination.x,t.destination.y,t.destination.z),orientation:{heading:r.Math.toRadians(t.orientation.heading),pitch:r.Math.toRadians(t.orientation.pitch),roll:r.Math.toRadians(t.orientation.roll)},duration:t.duration})},mount:function(){this.$emit("loaded",this)},unmount:function(){this.$emit("unload")},addViewpointGroup:function(t){this.items.push({viewGroupName:"飞行视点组",viewGroupItems:[]}),console.log("content")},addViewpoint:function(t){var e=this;this.editTuple=[t,void 0],e.config=e.originViewPoint,this.editor=!0,this.mode="add"},handleMenu:function(t,e){this.active=t,this.active>=0&&(this.active%2===0?(this.$refs.menu.style.left="".concat(e.x,"px"),this.$refs.menu.style.top="".concat(e.y,"px")):(this.$refs.menu.style.left="".concat(e.x-88,"px"),this.$refs.menu.style.top="".concat(e.y,"px")))},editViewpoint:function(t,e){this.editTuple=[t,e],this.editItem=e,this.config=this.items[t].viewGroupItems[e],this.editor=!0,this.mode="edit"},changeViewpoint:function(t){var e=t[0],n=t[1],r=this;r.config=e,"add"===r.mode?(""===e.name&&(e.name="视点_"+(r.items[n[0]].viewGroupItems.length+1)),console.log(r.items),r.items[n[0]].viewGroupItems.push(e)):"edit"===r.mode&&(""===e.name&&(e.name="视点_"+(r.items[n[0]].viewGroupItems+1)),r.items[n[0]].viewGroupItems[n[1]]=Object.assign(r.items[n[0]].viewGroupItems[n[1]],e))},selectItem:function(t,e){var n=this;if(t.target.checked)n.selectItems.push(e),n.selectMode=!0;else{var r=n.selectItems.indexOf(e);n.selectItems.splice(r,1),0===n.selectItems.length&&(n.selectMode=!1)}},deleteViewpoint:function(t){var e=this;e.selectMode?(e.selectItems.forEach((function(t){e.items.splice(t,1)})),e.selectItems=[],e.selectMode=!1):e.items.splice(t,1),(0===e.items.length||e.items.length<=e.currentItem)&&(e.currentItem=-1)},closePanel:function(){this.manager=!1},saveConfig:function(){this.$emit("change",this.items)}}},sn=an,cn=(n("c780"),je(sn,ze,Ue,!1,null,"13dd3ac6",null)),un=cn.exports,ln={vueKey:{type:String,default:"default"},vueIndex:{type:[String,Number],default:function(){return(1e8*Math.random()).toFixed(0)}}};function hn(t){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(t)}function dn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dn(Object(n),!0).forEach((function(e){pn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pn(t,e,n){return(e=mn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mn(t){var e=gn(t,"string");return"symbol"==hn(e)?e:e+""}function gn(t,e){if("object"!=hn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var An,vn,yn={name:"mapgis-3d-statebar",mixins:[],inject:["Cesium","viewer"],props:fn(fn({},ln),{},{outStyle:{type:Object},info:{type:Object},showHpr:{type:Boolean,default:!1},showSelectTileInfo:{type:Boolean,default:!1},showViewLevelInfo:{type:Boolean,default:!1},frame:{type:Number,default:10},bottomMap:{type:Boolean,default:!1}}),computed:{},model:{props:"info",event:"change"},data:function(){return{initial:!0,control:void 0,viewLevel:0,longitude:0,latitude:0,cameraHeight:0,height:0,selectedTile:void 0}},created:function(){this.bindEvent()},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{bindEvent:function(){var t=this;this.$_frame=-1,this.levelEvent=Me()((function(){t.updateViewLevel()}),100,{leading:!0})},mount:function(){this.showPosition()},unmount:function(){var t=this.viewer,e=this.vueKey,n=this.vueIndex,r=this.bottomMap,i=t.container,o=window.vueCesium.EventHandlerManager.findSource(e,n);if(o&&o.source.destroy&&o.source.destroy(),window.vueCesium.EventHandlerManager.deleteSource(e,n),r){for(var a=!1,s="mapgis-3d-statebar",c=0;c<i.children.length;c++){var u=i.children[c];u.className==s&&(a=u)}a&&i.removeChild(a)}},showPosition:function(){var t,e=this,n=this.Cesium,r=this.viewer,i=this.vueIndex,o=this.vueKey,a=this.frame;if(o&&i){var s=new n.ScreenSpaceEventHandler(r.scene.canvas);s.setInputAction((function(n){++e.$_frame%a==0&&e.updateShowInfo(n.endPosition),e.$_frame>1e7&&(e.$_frame=0),t=n.endPosition}),n.ScreenSpaceEventType.MOUSE_MOVE),s.setInputAction((function(){++e.$_frame%a==0&&e.updateShowInfo(t),e.$_frame>1e7&&(e.$_frame=0)}),n.ScreenSpaceEventType.WHEEL),window.vueCesium.EventHandlerManager.addSource(o,i,s)}r.scene.globe.tileLoadProgressEvent.addEventListener((function(){e.levelEvent()})),r.camera.changed.addEventListener((function(){e.levelEvent()}))},selectTile:function(t){var e,n=this.Cesium,r=this.viewer,i=r.scene.globe.ellipsoid,o=r.scene.camera.pickEllipsoid(t,i);if(n.defined(o)){var a=i.cartesianToCartographic(o);if(!a)return;for(var s=r.scene.globe._surface.tileProvider._tilesToRenderByTextureCount,c=0;!e&&c<s.length;c+=1){var u=s[c];if(n.defined(u))for(var l=0;!e&&l<u.length;l+=1){var h=u[l];n.Rectangle.contains(h.rectangle,a)&&(e=h)}}}return e},updateViewLevel:function(){for(var t=this.Cesium,e=this.viewer,n=e.scene.globe._surface.tileProvider._tilesToRenderByTextureCount,r=0;r<n.length;r+=1)if(n[r])for(var i=0;i<n[r].length;i+=1)t.Rectangle.contains(n[r][i].rectangle,e.camera.positionCartographic)&&(this.viewLevel=n[r][i]._level)},updateShowInfo:function(t){this.viewLevel,this.height;var e=this.Cesium,n=this.viewer,r=(this.showHpr,this.showSelectTileInfo,this.showViewLevelInfo,n.getCartesian3Position(t,r)),i=n.scene.globe.ellipsoid,o=n.camera;if(r){var a=i.cartesianToCartographic(r);if(!a)return;this.longitude=e.Math.toDegrees(a.longitude).toFixed(4),this.latitude=e.Math.toDegrees(a.latitude).toFixed(4),this.cameraHeight=Math.ceil(o.positionCartographic.height).toFixed(0),this.height=Math.max(n.scene.globe.getHeight(a),a.height).toFixed(0),this.$emit("change",{longitude:this.longitude,latitude:this.latitude,cameraHeight:this.cameraHeight,height:this.height})}}},render:function(t){var e=this.longitude,n=this.latitude,r=this.height,i=this.cameraHeight,o=this.viewer,a=this.bottomMap,s="经度:".concat(e,"°,纬度:").concat(n,"°, 海拔高度: ").concat(r,",米,相机高度:").concat(i,"米"),c=o.container,u=(o.outStyle,"mapgis-3d-statebar");if(a){var l=!1;if(c&&c.children)for(var h=0;h<c.children.length;h++){var d=c.children[h];d.className==u&&(l=d)}if(l)l.children[0].innerText=s;else{l=window.document.createElement("div"),l.className=u;var f=window.document.createElement("span");f.innerText=s,l.appendChild(f),c.appendChild(l)}return t("span")}return t("div",{class:"mapgis-3d-statebar"},[t("span",{innerText:s},[s])])}},bn=yn,wn=je(bn,An,vn,!1,null,null,null),_n=wn.exports,xn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},Sn=[],Cn={LEFT_CLICK:{type:"LEFT_CLICK"},LEFT_DOUBLE_CLICK:{type:"LEFT_DOUBLE_CLICK"},LEFT_DOWN:{type:"LEFT_DOWN"},LEFT_UP:{type:"LEFT_UP"},MIDDLE_CLICK:{type:"MIDDLE_CLICK"},MIDDLE_DOWN:{type:"MIDDLE_DOWN"},MIDDLE_UP:{type:"MIDDLE_UP"},MOUSE_MOVE:{type:"MOUSE_MOVE"},PINCH_END:{type:"PINCH_END"},PINCH_MOVE:{type:"PINCH_MOVE"},PINCH_START:{type:"PINCH_START"},RIGHT_CLICK:{type:"RIGHT_CLICK"},RIGHT_DOWN:{type:"RIGHT_DOWN"},RIGHT_UP:{type:"RIGHT_UP"},WHEEL:{type:"WHEEL"}};function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Ln(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Ln(t[n],e[n]))return!1;return!0}if("object"===Mn(t)&&null!==t&&null!==e){if("object"!==Mn(e))return!1;var r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(var i in t)if(!Ln(t[i],e[i]))return!1;return!0}return t===e}function Tn(t){return"[object Object]"===Object.prototype.toString.call(t)?"Object":"[object Array]"===Object.prototype.toString.call(t)?"Array":"nomal"}function kn(t){if("nomal"===Tn(t))return t;var e="Object"===Tn(t)?{}:[];for(var n in t)t.hasOwnProperty(n)&&(e[n]=kn(t[n]));return e}var En={name:"mapgis-3d-link",inject:["Cesium","vueCesium","viewer"],props:{enable:{type:Boolean,default:!1},includes:{type:Array,default:function(){return[]}},excludes:{type:Array,default:function(){return[]}},screenSpaceEventType:{type:Array,default:function(){return[Cn.WHEEL,Cn.MOUSE_MOVE,Cn.LEFT_UP,Cn.LEFT_DOWN,Cn.RIGHT_UP,Cn.RIGHT_DOWN]}},vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}},timestamp:{type:Number,default:0},interval:{type:Number,default:60},enableWheel:{type:Boolean,default:!1},enableRight:{type:Boolean,default:!0},isAll3d:{type:Boolean,default:!1}},model:{prop:"view",event:"change"},data:function(){return{time:0,stamp:-1,active:!1}},watch:{enable:function(t){t?this.addHandler():this.deleteHandler()}},mounted:function(){this.enable&&this.addHandler()},destroyed:function(){this.deleteHandler()},methods:{getInstanceOptions:function(){var t,e=this.vueKey,n=this.vueCesium;return n=n||window.vueCesium,"default"!==e&&(t=n.ViewerManager[e][0].options),t},checkValid:function(t,e,n){var r=this.includes,i=this.excludes;(0===r.length&&0===i.length||r&&i&&r.length>0&&i.length>=0&&r.indexOf(n)>=0||r&&i&&0===r.length&&i.length>0&&i.indexOf(n)<0)&&this.setView(t,e)},updateView:function(t){var e=this.interval,n=this.timestamp;if(n>0){var r=(new Date).getTime();r-this.stamp>n&&(this.updateRect(t),this.stamp=r)}else++this.time%e===0&&this.updateRect(t),this.time>1e6&&(this.time=0)},updateRect:function(t){var e={destination:kn(t.position),orientation:{direction:kn(t._direction),up:kn(t.up),heading:kn(t.heading),pitch:kn(t.pitch),roll:kn(t.roll)}},n=t.computeViewRectangle(),r={west:0,east:0,north:0,south:0};r.west=Cesium.Math.toDegrees(n.west),r.east=Cesium.Math.toDegrees(n.east),r.north=Cesium.Math.toDegrees(n.north),r.south=Cesium.Math.toDegrees(n.south),this.$emit("change",{"3d":e,"2d":r})},setView:function(t,e){var n={destination:kn(e.position),orientation:{direction:kn(e._direction),up:kn(e.up),heading:kn(e.heading),pitch:kn(e.pitch),roll:kn(e.roll)}};t.camera.setView(n)},addHandler:function(){var t=this.vueCesium,e=this.includes,n=this.excludes,r=this.screenSpaceEventType;t=t||window.vueCesium;var i=t.ViewerManager.flatAllSource(),o=this,a=this;this.stamp=(new Date).getTime();for(var s=function(t){var s=i[t];return e&&e.length>0&&e.indexOf(s.parent)<0||(!e||0==e.length)&&n&&n.length>0&&n.indexOf(s.parent)>=0?0:(s.options.ScreenSpaceEventHandler=new Cesium.ScreenSpaceEventHandler(s.source.scene.canvas),void r.forEach((function(e){s.options.ScreenSpaceEventHandler.setInputAction((function(n){if(o.enableWheel&&"WHEEL"==e.type&&(o.active=!0),"LEFT_DOWN"==e.type)o.active=!0;else if("LEFT_UP"==e.type||"RIGHT_UP"==e.type||"RIGHT_DOWN"==e.type)o.active=!1;else if("MOUSE_MOVE"==e.type&&!o.active)return;if((o.enableRight||"RIGHT_UP"!=e.type&&"RIGHT_DOWN"!=e.type)&&(!(Cesium.Math.toDegrees(s.source.camera.pitch)<-120)||a.isAll3d)&&(!(Cesium.Math.toDegrees(s.source.camera.pitch)>-70)||a.isAll3d)){o.updateView(s.source.camera);var r=s.source.camera;i.forEach((function(e,n){t!=n&&o.checkValid(e.source,r,e.parent)}))}}),Cesium.ScreenSpaceEventType[e.type])})))},c=0;c<i.length;c++)s(c)},deleteHandler:function(){var t=this.vueCesium,e=this.screenSpaceEventType;t=t||window.vueCesium;var n=this.getInstanceOptions();if(n){var r=n.ScreenSpaceEventHandler;r&&(e.forEach((function(t){r.removeInputAction(Cesium.ScreenSpaceEventType[t.type])})),r.destroy())}var i=t.ViewerManager.flatAllSource();i.forEach((function(t,n){t.options.ScreenSpaceEventHandler&&(e.forEach((function(e){t.options.ScreenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType[e.type])})),t.source.camera.changed.removeEventListener((function(){})))}))}}},On=En,Pn=je(On,xn,Sn,!1,null,null,null),Bn=Pn.exports,In=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("toolbar"),t.initial?t._t("default"):t._e(),n("mapgis-ui-card",{staticClass:"mapgis-3d-draw-control",attrs:{customPosition:t.position}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.enableControl,expression:"enableControl"}]},[n("mapgis-ui-space",t._l(t.draws,(function(e,r){return n("mapgis-ui-tooltip",{key:r,attrs:{placement:"bottom"}},[n("template",{slot:"title"},[n("span",[t._v(t._s(e.tip))])]),n("mapgis-ui-button",{class:e.className,attrs:{shape:"circle",type:e.type},on:{click:e.click}},[n("mapgis-ui-iconfont",{class:e.className,attrs:{type:e.icon,theme:"filled"}})],1)],2)})),1)],1)])],2)},Dn=[],Nn={name:"mapgis-3d-draw",mixins:[],inject:["Cesium","vueCesium","viewer"],props:{infinite:{type:Boolean,default:!1},enableControl:{type:Boolean,default:!1},position:{type:String,default:"top-right"},clampToGround:{type:Boolean,default:!0},drawStyle:{type:Object,default:function(){return{}}},vueKey:{type:String,default:""},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}}},data:function(){return{drawStyleCopy:{color:"#FF0000",opacity:.5,outlineWidth:1,outlineColor:"#000000",width:2},initial:!1,drawOption:"",draws:[{icon:"mapgis-huizhidian2",type:"primary",tip:"画点",click:this.enableDrawPoint},{icon:"mapgis-huizhixian1",type:"primary",tip:"画线",click:this.enableDrawLine},{icon:"mapgis-huizhijuxing",type:"primary",tip:"画矩形",click:this.enableDrawRectangle},{icon:"mapgis-draw-polygon",type:"primary",tip:"画多边形",click:this.enableDrawPolygon},{icon:"mapgis-huizhiyuan1",type:"primary",tip:"画圆",click:this.enableDrawCircle},{icon:"mapgis-shanchu_dianji",type:"primary",tip:"删除绘制",click:this.removeEntities}]}},created:function(){},mounted:function(){this.drawStyleCopy=Object.assign(this.drawStyleCopy,this.drawStyle),this.mount()},destroyed:function(){this.unmount()},watch:{clampToGround:{handler:function(t,e){this.unmount(),this.mount()}},drawStyle:{handler:function(){this.drawStyleCopy=Object.assign(this.drawStyleCopy,this.drawStyle)},deep:!0}},methods:{mount:function(){var t=this,e=this.vueKey,n=this.vueIndex,r=setInterval((function(){var i=t.getWebGlobe();i&&(clearInterval(r),t.initial=!0,t.$emit("load",t),window.vueCesium.DrawToolManager.addSource(e,n,[]))}),50)},unmount:function(){var t=this.vueKey,e=this.vueIndex,n=this.vueCesium;n||(n=window.vueCesium);var r=n.DrawToolManager.findSource(t,e);r&&(this.removeEntities(!0),n.DrawToolManager.deleteSource(t,e)),window.drawElement&&window.drawElement.stopDrawing(),delete window.drawElement,this.$emit("unload",this)},removeEntities:function(t){var e=this.vueKey,n=this.vueIndex,r=this.getWebGlobe();if(r){var i=window.vueCesium.DrawToolManager.findSource(e,n);if(i){i=i.source;for(var o=0;o<i.length;o++)r.scene.primitives.remove(i[o]),r.entities.remove(i[o]);i.source=[]}}window.drawElement&&window.drawElement.stopDrawing(),t||this.drawOption.length>0&&this[this.drawOption]()},getWebGlobe:function(){var t,e=this.viewer,n=this.vueCesium,r=this.Cesium,i=this.vueKey,o=this.vueIndex;if(n||(n=window.vueCesium),r||(r=window.Cesium),0===this.vueKey.length)t=e;else{var a=n.GlobesManager;a.hasOwnProperty(this.vueKey)&&a[this.vueKey].length>0&&a[this.vueKey][0].hasOwnProperty("source")&&(t=a[this.vueKey][0].source)}if(!this.infinite){var s=window.vueCesium.DrawToolManager.findSource(i,o);if(s){s=s.source;for(var c=0;c<s.length;c++)t.scene.primitives.remove(s[c]),t.entities.remove(s[c]);s.source=[]}}return t},getDrawElement:function(t){return window.drawElement&&window.drawElement.stopDrawing(),window.drawElement=new Cesium.DrawElement(t),window.drawElement},enableDrawPoint:function(){var t,e;this.drawOption="enableDrawPoint";var n=this.getWebGlobe(),r=this,i=this.vueCesium,o=this.Cesium,a=this.vueKey,s=this.vueIndex,c=this.drawStyleCopy;i||(i=window.vueCesium),o||(o=window.Cesium);var u=this.getDrawElement(n);this.clampToGround?u.setGroundPrimitiveType("BOTH"):u.setGroundPrimitiveType("NONE");var l=new o.Color.fromCssColorString(c.outlineColor).withAlpha(c.opacity),h=new o.Color.fromCssColorString((null===(t=c.point)||void 0===t?void 0:t.color)||c.color).withAlpha((null===(e=c.point)||void 0===e?void 0:e.alpha)||c.opacity);u.startDrawingMarker({addDefaultMark:!1,color:h,callback:function(t){var e,i=t.position,d=o.Cartographic.fromCartesian(i),f=o.Math.toDegrees(d.longitude),p=o.Math.toDegrees(d.latitude),m=d.height,g=n.entities.add({name:"点",position:o.Cartesian3.fromDegrees(f,p,m),point:{pixelSize:(null===(e=c.point)||void 0===e?void 0:e.size)||10,color:h,outlineColor:l,outlineWidth:c.outlineWidth}});r.infinite||u.stopDrawing();var A=window.vueCesium.DrawToolManager.findSource(a,s).source;A.push(g),r.$emit("drawCreate",i,[f,p,m],n),r.$emit("drawcreate",i,[f,p,m],n)}})},enableDrawLine:function(t){var e,n;this.drawOption="enableDrawLine";var r=this.getWebGlobe(),i=this.Cesium,o=this.vueKey,a=this.vueIndex,s=this.drawStyleCopy;i||(i=window.Cesium);var c=this,u=this.getDrawElement(r);this.clampToGround?u.setGroundPrimitiveType("BOTH"):u.setGroundPrimitiveType("NONE");var l=new i.Color.fromCssColorString((null===(e=s.line)||void 0===e?void 0:e.color)||s.color).withAlpha((null===(n=s.line)||void 0===n?void 0:n.alpha)||s.opacity);u.startDrawingPolyline({color:l,callback:function(e){for(var n=e.positions,l=[],h=0;h<n.length;h++){var d=i.Cartographic.fromCartesian(n[h]),f=i.Math.toDegrees(d.longitude),p=i.Math.toDegrees(d.latitude),m=d.height;l.push([f,p,m])}if(!t||"boolean"!==typeof t){var g,A=new i.DrawElement.PolylinePrimitive({id:"polyline",positions:n,width:(null===(g=s.line)||void 0===g?void 0:g.size)||s.width,geodesic:!0}),v=r.scene.primitives.add(A),y=window.vueCesium.DrawToolManager.findSource(o,a).source;y.push(v)}c.infinite||u.stopDrawing(),c.$emit("drawCreate",n,l,r),c.$emit("drawcreate",n,l,r)}})},enableDrawPolygon:function(t){var e,n;this.drawOption="enableDrawPolygon";var r=this.getWebGlobe(),i=this.Cesium,o=this.vueKey,a=this.vueIndex;i||(i=window.Cesium);var s=this,c=this.drawStyleCopy,u=this.getDrawElement(r);this.clampToGround?u.setGroundPrimitiveType("BOTH"):u.setGroundPrimitiveType("NONE");var l=new i.Color.fromCssColorString((null===(e=c.polygon)||void 0===e?void 0:e.color)||c.color).withAlpha((null===(n=c.polygon)||void 0===n?void 0:n.alpha)||c.opacity);u.startDrawingPolygon({color:l,callback:function(e){for(var n=e.positions,h=[],d=0;d<n.length;d++){var f=i.Cartographic.fromCartesian(n[d]),p=i.Math.toDegrees(f.longitude),m=i.Math.toDegrees(f.latitude),g=f.height;h.push([p,m,g])}if(!t||"boolean"!==typeof t){var A,v=new i.DrawElement.PolygonPrimitive({positions:n,width:(null===(A=c.polygon)||void 0===A?void 0:A.size)||c.width,material:i.Material.fromType("Color",{color:l})}),y=r.scene.primitives.add(v),b=window.vueCesium.DrawToolManager.findSource(o,a).source;b.push(y)}s.infinite||u.stopDrawing(),s.$emit("drawCreate",n,h,r),s.$emit("drawcreate",n,h,r)}})},enableDrawRectangle:function(t){var e,n;this.drawOption="enableDrawRectangle";var r=this.getWebGlobe(),i=this.Cesium,o=this.vueKey,a=this.vueIndex,s=this.drawStyleCopy;i||(i=window.Cesium);var c=this,u=this.getDrawElement(r);this.clampToGround?u.setGroundPrimitiveType("BOTH"):u.setGroundPrimitiveType("NONE");var l=new i.Color.fromCssColorString((null===(e=s.polygon)||void 0===e?void 0:e.color)||s.color).withAlpha((null===(n=s.polygon)||void 0===n?void 0:n.alpha)||s.opacity);u.startDrawingExtent({color:l,callback:function(e){var n=e.extent;if(!t||"boolean"!==typeof t){var s=new i.DrawElement.ExtentPrimitive({extent:n,material:i.Material.fromType("Color",{color:l})}),h=r.scene.primitives.add(s),d=window.vueCesium.DrawToolManager.findSource(o,a).source;d.push(h)}for(var f=[n.west,n.north,n.east,n.south],p=r.scene.globe.ellipsoid,m=i.Cartesian3.fromRadiansArray(f,p),g=[],A=0;A<m.length;A++){var v=i.Cartographic.fromCartesian(m[A]),y=i.Math.toDegrees(v.longitude),b=i.Math.toDegrees(v.latitude),w=e.height;g.push([y,b,w])}c.infinite||u.stopDrawing(),c.$emit("drawCreate",m,g,r,n),c.$emit("drawcreate",m,g,r,n)}})},enableDrawCircle:function(){var t,e;this.drawOption="enableDrawCircle";var n=this.getWebGlobe(),r=this.Cesium,i=this.vueKey,o=this.vueIndex,a=this.drawStyleCopy;r||(r=window.Cesium);var s=this,c=this.getDrawElement(n);this.clampToGround?c.setGroundPrimitiveType("BOTH"):c.setGroundPrimitiveType("NONE");var u=new r.Color.fromCssColorString((null===(t=a.polygon)||void 0===t?void 0:t.color)||a.color).withAlpha((null===(e=a.polygon)||void 0===e?void 0:e.alpha)||a.opacity);c.startDrawingCircle({color:u,callback:function(t){var e=t.center,a=t.radius;console.log("circle",e);var l=r.Cartographic.fromCartesian(e),h=l.height,d=new r.DrawElement.CirclePrimitive({center:e,radius:a,height:h,asynchronous:!1,material:r.Material.fromType("Color",{color:u})});s.infinite||c.stopDrawing();var f=n.scene.primitives.add(d),p=window.vueCesium.DrawToolManager.findSource(i,o).source;p.push(f),s.$emit("drawCreate",e,a,n),s.$emit("drawcreate",e,a,n)}})}}},Fn=Nn,jn=(n("2411"),je(Fn,In,Dn,!1,null,"494bdf51",null)),Rn=jn.exports,Hn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-measure"},[t.initial?t._t("default"):t._e(),t._t("measureTool",(function(){return[n("measure-3d-tool",{ref:"measureTool",attrs:{result:t.result,measureConfig:t.measureConfig}})]}))],2)},zn=[],Un=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.prefixCls},[n("mapgis-ui-toolbar",{class:t.prefixCls+"-toolbar",attrs:{bordered:!1}},[n("mapgis-ui-toolbar-command-group",t._l(t.modes,(function(e){var r=e.title,i=e.mode,o=e.icon,a=e.measuretype;return n("mapgis-ui-toolbar-command",{key:r,staticClass:"command-group",attrs:{title:r,icon:o,active:t.activeMode===i},on:{click:function(e){return t.startMeasure(i,a)}}})})),1),n("mapgis-ui-toolbar-space"),n("mapgis-ui-toolbar-command-group",[n("mapgis-ui-toolbar-command",{attrs:{title:"清除",icon:"mapgis-shanchu_dianji"},on:{click:t.clearMeasure}}),n("mapgis-ui-toolbar-command",{attrs:{active:t.showSettingPanel,title:"设置",icon:"mapgis-setting"},on:{click:function(e){t.showSettingPanel=!t.showSettingPanel}}})],1)],1),n("measure-3d-result",{attrs:{mode:t.activeMode,result:t.measureResult,type:t.activeType}}),t.showSettingPanel?n("measure-3d-setting",{attrs:{measureConfig:t.measureConfig},on:{"measure-style-change":t.measureStyleChange,"measure-style-resize":t.measureStyleResize}}):t._e()],1)},Vn=[],Yn=n("c249"),Gn=function(t){return t.replace(new RegExp("[A-Z]","g"),(function(t){return"-".concat(t.toLowerCase())})).replace(new RegExp("^-"),"")};function Qn(t){return void 0!==t&&null!==t}function Wn(t){return t instanceof Cesium.Color?t:t instanceof Array?new Cesium.Color(t[0],t[1],t[2],t[3]):"string"===typeof t?Cesium.Color.fromCssColorString(t):t}function Kn(t,e){var n=t[e];if(!n&&(n=window[e],!n))throw new Error("未找到可用的"+e+"对象!");return n}var qn=function(){for(var t="",e=1;e<=32;e++){var n=Math.floor(16*Math.random()).toString(16);t+=n,8!==e&&12!==e&&16!==e&&20!==e||(t+="-")}return t};function Xn(t){var e={positionCartographic:{}};return e.positionCartographic.height=t.camera.positionCartographic.height,e.positionCartographic.longitude=t.camera.positionCartographic.longitude,e.positionCartographic.latitude=t.camera.positionCartographic.latitude,e.heading=t.scene.camera.heading,e.pitch=t.scene.camera.pitch,e.roll=t.scene.camera.roll,e}var $n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.selfResult?n("div",{staticClass:"measure-result"},t._l(t.selfResultOptions,(function(e){var r=e.label,i=e.value,o=e.unit;return n("div",{key:i},[t._v("\n "+t._s(r)+":"+t._s(t.selfResult[i])+" "+t._s(o)+"\n ")])})),0):t._e()},Jn=[];function Zn(t){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(t)}function tr(t,e,n){return(e=er(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function er(t){var e=nr(t,"string");return"symbol"==Zn(e)?e:e+""}function nr(t,e){if("object"!=Zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var rr={MeasureLengthTool:"MeasureLengthTool",MeasureStickLengthTool:"MeasureStickLengthTool",MeasureStickAreaTool:"MeasureStickAreaTool",MeasureAreaTool:"MeasureAreaTool",TriangulationTool:"TriangulationTool"},ir={name:"measure-3d-result",props:{mode:{type:String},result:{type:Object},type:{type:String}},data:function(t){return{selfResult:null,resultOptions:null,selfResultMap:tr(tr(tr(tr(tr({},rr.MeasureLengthTool,[{label:"空间距离",value:"cesiumLength",unit:"千米",type:"space"}]),rr.MeasureStickLengthTool,[{label:"贴地距离",value:"cesiumStickLength",unit:"千米",type:"tostick"}]),rr.MeasureAreaTool,[{label:"空间面积",value:"cesiumArea",unit:"平方公里",type:"space"}]),rr.MeasureStickAreaTool,[{label:"贴地面积",value:"cesiumStickArea",unit:"平方公里",type:"tostick"}]),rr.TriangulationTool,[{label:"高差",value:"verticalDiatance",unit:"米"},{label:"水平距离",value:"horizontalDiatance",unit:"米"}])}},computed:{selfResultOptions:function(t){var e=t.selfResultMap,n=t.mode;return e[n]}},watch:{result:{deep:!0,handler:function(t){this.selfResult=t}}}},or=ir,ar=je(or,$n,Jn,!1,null,"6e5a70b9",null),sr=ar.exports,cr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"measure-3d-setting"},[n("mapgis-ui-group-tab",{attrs:{title:"设置"}},[n("mapgis-ui-toolbar-command",{attrs:{slot:"handle",title:"重置",icon:"mapgis-redo"},on:{click:t.onReset},slot:"handle"})],1),n("mapgis-ui-setting-form",{attrs:{layout:"vertical"}},[n("mapgis-ui-form-item",{attrs:{label:"线颜色"}},[n("mapgis-ui-sketch-color-picker",{attrs:{color:t.measureConfig.lineColor,"disable-alpha":!1},on:{input:function(e){return t.onColorChange(e,"lineColor")}}})],1)],1)],1)},ur=[],lr={name:"measure-3d-setting",props:{measureConfig:{type:Object,defualt:function(){}}},data:function(t){return{}},computed:{measureStyle:{get:function(){return this.measureConfig},set:function(t){this.$emit("measure-style-change",t)}}},methods:{emitStyle:function(t){this.$emit("measure-style-change",t)},onReset:function(){this.$emit("measure-style-resize")},onColorChange:function(t,e){var n=t.hex,r=JSON.parse(JSON.stringify(this.measureStyle));r[e]=n,this.measureStyle=r}}},hr=lr,dr=je(hr,cr,ur,!1,null,"5fa54a75",null),fr=dr.exports,pr={name:"measure-3d-tool",inject:["viewer"],components:{"measure-3d-result":sr,"measure-3d-setting":fr},props:{result:{type:[Number,Object]},measureConfig:{type:Object,defualt:function(){}}},data:function(t){return{prefixCls:"measure-3d-tool",showSettingPanel:!1,measureResult:null,activeMode:"",activeType:"",modes:[{mode:rr.MeasureLengthTool,title:"空间距离",icon:"mapgis-huizhixian1",measuretype:"space"},{mode:rr.MeasureAreaTool,title:"空间面积",icon:"mapgis-area",measuretype:"space"},{mode:rr.MeasureStickLengthTool,title:"贴地距离",icon:'<svg t="1638933339434" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7017" width="200" height="200"><path d="M98.6 98.2h50v830h-50z" p-id="7018" ></path><path d="M98.6 877.5H928v50H98.6z m477.5-84.7c-29.1 0-53.9-16.6-73.6-49.3-14.8-24.6-26.2-56.7-37.2-87.7-24.7-69.7-45-119-81.2-119-38.9 0-91.8 24.3-152.8 70.2-48.1 36.2-84 73.1-84.3 73.4l-36-34.8c1.5-1.6 38.5-39.7 89.6-78.2 71-53.5 132.7-80.6 183.4-80.6 34.2 0 63.1 18.4 85.9 54.6 17.6 28 30.2 63.4 42.4 97.7 18 50.8 36.7 103.4 63.5 103.7 1.7-0.6 18.4-7.8 46.9-82.4 20.3-53.2 40.6-123.9 60.2-192.3 20.2-70.4 41-143.1 62.2-197.2 20.1-51.5 46.2-104.1 87-104.1H928v50h-95.1c-1.3 0.6-7.2 4.3-16.8 20.2-8.5 14.1-17.8 34.5-27.6 60.6-19.2 51-38.6 118.7-57.4 184.3-20.7 72.3-42.2 147.1-64.3 203.3-21 53.2-48.1 107.6-90.7 107.6z" p-id="7019" "></path></svg>',measuretype:"tostick"},{mode:rr.MeasureStickAreaTool,title:"贴地面积",icon:'<svg t="1638932551716" class="icon" viewBox="0 0 1255 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2635" width="14" height="14"><path d="M155.791637 754.376488l1056.914077 186.369394a41.879297 41.879297 0 1 1-14.546858 82.470251l-1154.616129-203.590787a42.401157 42.401157 0 0 1-10.029505-3.098547A41.862989 41.862989 0 0 1 0.032616 775.495526V42.705679a41.879297 41.879297 0 1 1 83.742286 0v693.340462l539.163331-196.186893a20.929864 20.929864 0 1 1 14.318545 39.335228z" p-id="2636"></path><path d="M615.615879 258.625419l602.8303 150.475183L615.615879 597.867293 195.632416 428.409437l419.983463-169.784018z" p-id="2637"></path><path d="M383.958787 121.604448c58.432056-12.52465 63.960515 15.378574 137.787453 152.43216 3.163779 5.870929 30.20267 138.619168 91.912663 138.619168 57.208946 0 179.911372-132.976552 183.172999-138.619168 40.378948-70.565311 34.328629-136.711116 104.926556-115.608386s115.412688 25.505927 185.651837 199.611602q5.642616 14.024998 131.035884 47.097901l-4.2075 15.93305a4.46843 4.46843 0 0 1 0.88064 8.284534l-270.470459 137.656988a952.949702 952.949702 0 0 0-228.737936 162.820444l-11.415696 10.910144a115.265915 115.265915 0 0 1-162.967217-3.082238 120.491042 120.491042 0 0 1-6.882034-7.827906 907.939242 907.939242 0 0 0-181.672651-171.626838l-148.567132-105.758271a20.92334 20.92334 0 0 1 5.120756-36.77485q44.700605-15.949358 56.328306-27.903223c16.079823-16.536451 59.671475-253.656769 118.103531-266.165111z" p-id="2638" ></path><path d="M383.958787 121.604448c58.432056-12.52465 98.077138 12.60619 137.787453 152.43216 21.200579 74.77281 65.705486 138.619168 91.912663 138.619168 57.208946 0 85.161094-90.526471 99.479638-138.619168 21.559358-72.717985 96.430017-201.519654 188.815615-201.519654s130.269402 59.573626 234.837179 241.670289c50.131214 87.281151 119.489723 80.333885 117.05981 98.468533q-53.523307 24.95145-351.945913 176.796518l-245.910404 54.273481a188.619917 188.619917 0 0 1-70.973015 1.956977l-25.848397-4.240116a322.11833 322.11833 0 0 1-114.825596-42.303308q-247.492293-149.627161-275.949993-165.706985c15.003486-5.039214 26.565956-18.460812 40.150634-31.963949 86.971297-113.357863 81.524379-247.541218 175.410326-279.863946z" p-id="2639"></path><path d="M615.599571 412.003451q70.989322 114.303735 215.0391 114.303735t420.749945-112.526148L615.599571 729.816433 185.374598 443.054145q82.992111 41.357436 219.246599 41.357436t210.978374-72.40813z" p-id="2640"></path></svg>',measuretype:"tostick"},{mode:rr.TriangulationTool,title:"三角",icon:"mapgis-sanjiaoceliang",measuretype:"triangle"}]}},watch:{result:{deep:!0,immediate:!0,handler:function(t){this.setMeasureResult(t)}}},methods:{precision:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return t.toFixed(e)},setMeasureResult:function(t){var e;switch(this.activeMode){case rr.MeasureLengthTool:e={cesiumLength:this.precision(t)};break;case rr.MeasureStickLengthTool:e={cesiumStickLength:this.precision(t)};break;case rr.MeasureAreaTool:e={cesiumArea:this.precision(t/Math.pow(1e3,2))};break;case rr.MeasureStickAreaTool:console.log("=========="),console.log(t),e={cesiumStickArea:this.precision(t/Math.pow(1e3,2))},console.log(e);break;case rr.TriangulationTool:e={horizontalDiatance:this.precision(t.horizontalDiatance),verticalDiatance:this.precision(t.verticalDiatance)};break;default:break}this.measureResult=e},startMeasure:function(t,e){this.clearMeasure(),this.enableMeasure(t,e),this.activeMode=t,this.activeType=e},clearMeasure:function(){this.activeMode="",this.measureResult=null,this.$parent.remove()},enableMeasure:function(t,e){this.$parent.$_enableMeasure(t,e,this.setMeasureResult)},measureStyleChange:function(t){this.$parent.measureConfig=t,this.$parent.initStyles(t)},measureStyleResize:function(){this.$parent.resizeStyles()}}},mr=pr,gr=(n("e5c5"),je(mr,Un,Vn,!1,null,"514b5785",null)),Ar=gr.exports;function vr(t){return vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vr(t)}function yr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yr=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==vr(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(vr(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function br(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function wr(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){br(o,r,i,a,s,"next",t)}function s(t){br(o,r,i,a,s,"throw",t)}a(void 0)}))}}var _r={name:"mapgis-3d-measure",mixins:[Ve],components:{"measure-3d-tool":Ar},props:{styles:{type:Object,default:function(){return{lineColor:"#1890ff",fillColor:"#1890ff"}}},options:{type:Object,default:function(){return{}}},featureConfig:{type:Object,defalut:function(){}}},data:function(){return{result:void 0,initial:!1,measureStyles:{},waitManagerName:"GlobesManager",measureConfig:{}}},watch:{styles:{handler:function(){this.initStyles(this.styles)},deep:!0},measureOptions:{handler:function(){this.measureOptions=this.$_formatOptions(this.measureOptions)},deep:!0},featureConfig:{handler:function(t){var e,n;t&&(this.measureConfig.lineColor=(null===t||void 0===t||null===(e=t.feature)||void 0===e||null===(n=e.line)||void 0===n?void 0:n.color)||"#1890ff")},deep:!0,immediate:!0}},mounted:function(){var t=this;this.$_init((function(){t.initStyles(t.styles),t.initial=!0,t.$emit("load",t)}))},destroyed:function(){this.deleteMeasure(),this.$emit("unload")},methods:{onChange:function(t){this.changeContour=t.target.checked},initStyles:function(t){this.measureStyles.lineColor=Cesium.Color.fromCssColorString(t.lineColor)},measureCallBack:function(t){var e=null;e=t instanceof Array?t[t.length-1]:t,this.result=e,this.$emit("measured",t)},enableMeasureLength:function(){this.$_enableMeasure("MeasureLengthTool")},enableMeasureArea:function(){this.$_enableMeasure("MeasureAreaTool")},enableMeasureTriangle:function(){this.$_enableMeasure("TriangulationTool")},enableMeasureSlope:function(){this.$_enableMeasure("MeasureSlopeTool")},$_enableMeasure:function(){var t=wr(yr().mark((function t(e,n){var r,i,o,a,s,c,u,l,h,d,f,p,m,g,A,v,y,b,w,_=this;return yr().wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(u=(null===(r=this.featureConfig)||void 0===r||null===(i=r.feature)||void 0===i?void 0:i.line)||{color:"rgba(255,0,0,1)",size:"3"},l=(null===(o=this.featureConfig)||void 0===o||null===(a=o.label)||void 0===a?void 0:a.text)||{color:"rgba(255,0,102,1)",fontSize:"14",fontFamily:"华文行楷"},h=(null===(s=this.featureConfig)||void 0===s||null===(c=s.feature)||void 0===c?void 0:c.reg)||{color:"rgba(255,255,0,0.5)"},this.measureConfig.lineColor&&(this.measureStyles.lineColor=Cesium.Color.fromCssColorString(this.measureConfig.lineColor)),d={},u&&u.size&&this.measureConfig.lineColor&&(f={width:Number(u.size),material:new Cesium.PolylineGlowMaterialProperty({glowPower:.15,color:Cesium.Color.fromCssColorString(this.measureConfig.lineColor)}),depthFailMaterial:new Cesium.PolylineGlowMaterialProperty({glowPower:.15,color:Cesium.Color.fromCssColorString(this.measureConfig.lineColor)})},d.lineStyle=f),l&&(l.color&&(d.fillColor=Cesium.Color.fromCssColorString(l.color)),l.fontSize&&l.fontFamily&&(d.font="".concat(l.fontSize,"px ").concat(l.fontFamily))),"MeasureLengthTool"===e?d.paneNum=256:"MeasureAreaTool"===e&&(d.xPaneNum=64,d.yPaneNum=64,h&&h.color&&(d.areaColor=Cesium.Color.fromCssColorString(h.color))),p=this.vueKey,m=this.vueIndex,g=this.$_getObject(this.waitManagerName,this.deleteMeasure),this.viewer=g,A={lineColor:this.measureStyles.lineColor,callBack:function(){var t=wr(yr().mark((function t(e){return yr().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e){t.next=5;break}return t.next=3,_.waitAreaResult();case 3:e=t.sent,console.log(e);case 5:"function"===typeof callback?callback(e):_.measureCallBack(e);case 6:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}(),isTerrain:"tostick"===n},v=0,y=Object.keys(d);v<y.length;v++)b=y[v],A[b]=d[b];A=Object.assign(A,this.options),"MeasureStickLengthTool"===e?e="MeasureLengthTool":"MeasureStickAreaTool"===e&&(e="MeasureAreaTool"),w=new Cesium[e](g,A),this.measure=w,window.vueCesium.MeasureToolManager.addSource(p,m,w),w.startTool();case 19:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),deleteMeasure:function(){this.$_deleteManger("MeasureToolManager",(function(t){t.source&&t.source.stopTool()}))},waitAreaResult:function(){var t=wr(yr().mark((function t(){var e=this;return yr().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){setTimeout((function(){var n=e.measure._area;t(n)}),100)})));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),remove:function(){this.deleteMeasure(),this.$refs.measureTool.activeMode="",this.$refs.measureTool.measureResult=null},resizeStyles:function(){var t,e,n;this.measureConfig.lineColor=(null===(t=this.featureConfig)||void 0===t||null===(e=t.feature)||void 0===e||null===(n=e.line)||void 0===n?void 0:n.color)||"#1890ff"}}},xr=_r,Sr=je(xr,Hn,zn,!1,null,null,null),Cr=Sr.exports,Mr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},Lr=[],Tr={inject:["viewer","Cesium","vueCesium"],props:{vueKey:{type:String,default:"default"},vueIndex:{type:[Number,String],default:function(){return Number((1e8*Math.random()).toFixed(0))}},terrainGraphics:{type:Object,default:function(){return{perPositionHeight:!0,material:new Cesium.Color(33/255,150/255,243/255,0),outline:!1,outlineColor:Cesium.Color.RED}}}},data:function(){return{}},methods:{$_getCesium:function(){var t=this.Cesium;return t||(t=window.Cesium),t},$_draw:function(t,e,n,r){window.drawElement=new window.Cesium.DrawElement(e);var i=this;window.drawElement[t]({callback:function(t){var o=t.positions;i[n](e,o,r)}})},$_initAnalysis:function(t,e,n){var r=this;window.vueCesium.getViewerByInterval((function(i){r.$_draw(t,i,e,n)}),this.vueKey)},$_getManager:function(t,e){var n,r=this.waitManagerName;if(t&&(r=t),"GlobesManager"===r){var i=this.viewer;if("default"===this.vueKey)n=i;else{var o=window.vueCesium.GlobesManager;o[this.vueKey]&&(n=o[this.vueKey][0].source)}}else n=window.vueCesium[r].findSource(this.vueKey,this.vueIndex);return e&&e(n),n},$_deleteManager:function(t,e){var n=this.vueKey,r=this.vueIndex,i=window.vueCesium[t].findSource(n,r);i&&(e&&e(i),window.vueCesium.MeasureToolManager.deleteSource(n,r))},$_getM3DByInterval:function(t,e,n){e=e||this.vueKey,n=n||this.vueIndex,n instanceof Array||(n=[n]);var r=Kn(this,"vueCesium"),i=void 0,o=[],a=setInterval((function(){for(var s=!0,c=0;c<n.length;c++)i=r.M3DIgsManager.findSource(e,n[c]),i&&i.hasOwnProperty("source")&&i.source||(s=!1);if(s){for(var u=0;u<n.length;u++)i=r.M3DIgsManager.findSource(e,n[u]),o.push(i);t(o),clearInterval(a),this.interval=void 0}}),50);this.interval=a},$_getG3DByInterval:function(t,e,n){e=e||this.vueKey,n=n||this.vueIndex;var r=Kn(this,"vueCesium"),i=void 0,o=[];n instanceof Array||(n=[n]);var a=setInterval((function(){for(var s=!0,c=0;c<n.length;c++)i=r.G3DManager.findSource(e,n[c]),i&&i.hasOwnProperty("options")&&i.options||(s=!1);if(s){for(var u=0;u<n.length;u++)i=r.G3DManager.findSource(e,n[u]),o.push(i);t(o),clearInterval(a)}}),50);this.interval=a},$_getM3DSetArray:function(t,e,n,r){e=e||this.vueKey,n=n||this.vueIndex,n instanceof Array||(n=[n]);var i=Kn(this,"vueCesium"),o=void 0,a=void 0,s=[],c=setInterval((function(){for(var r=0;r<n.length;r++)if(o=i.M3DIgsManager.findSource(e,n[r]),o)for(var u=0;u<o.source.length;u++)s=s.concat(o.source[u]);for(var l=0;l<n.length;l++)if(a=i.G3DManager.findSource(e,n[l]),a){var h=a.options.m3ds;s=s.concat(h)}t(s),clearInterval(c),this.interval=void 0}),50);this.interval=c},$_getAll3DTileSetArray:function(t,e,n,r){e=e||this.vueKey,n=n||this.vueIndex,n instanceof Array||(n=[n]);var i=Kn(this,"vueCesium"),o=void 0,a=void 0,s=void 0,c=[],u=setInterval((function(){for(var r=0;r<n.length;r++)if(o=i.M3DIgsManager.findSource(e,n[r]),o)for(var l=0;l<o.source.length;l++)c=c.concat(o.source[l]);for(var h=0;h<n.length;h++)if(a=i.G3DManager.findSource(e,n[h]),a){var d=a.options.m3ds;c=c.concat(d)}for(var f=0;f<n.length;f++)s=i.Tileset3DManager.findSource(e,n[f]),s&&(c=c.concat(s.source));t(c),clearInterval(u),this.interval=void 0}),50);this.interval=u},$_degreeFromCartesian:function(t){var e={},n=Cesium.Cartographic.fromCartesian(t);return e.longitude=Cesium.Math.toDegrees(n.longitude),e.latitude=Cesium.Math.toDegrees(n.latitude),e.height=n.height,e},$_getM3DBox:function(t){var e=t._root.boundingVolume.northeastCornerCartesian,n=t._root.boundingVolume.southwestCornerCartesian,r=this.$_degreeFromCartesian(n),i=this.$_degreeFromCartesian(e),o={},a={};o.longitude=r.longitude,o.latitude=i.latitude,o.height=r.height,a.longitude=i.longitude,a.latitude=r.latitude,a.height=i.height;var s=Cesium.Cartesian3.fromDegrees(o.longitude,o.latitude,o.height),c=Cesium.Cartesian3.fromDegrees(a.longitude,a.latitude,a.height),u=Cesium.Cartesian3.distance(c,n),l=Cesium.Cartesian3.distance(s,n),h=t._root.boundingVolume.maximumHeight-t._root.boundingVolume.minimumHeight;return{length:u,width:l,height:h}}}};function kr(t){return kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(t)}function Er(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Er=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==kr(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(kr(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Or(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Pr(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Or(o,r,i,a,s,"next",t)}function s(t){Or(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Br(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ir(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Br(Object(n),!0).forEach((function(e){Dr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dr(t,e,n){return(e=Nr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Nr(t){var e=Fr(t,"string");return"symbol"==kr(e)?e:e+""}function Fr(t,e){if("object"!=kr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=kr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var jr={name:"mapgis-3d-compare",inject:["Cesium","vueCesium","viewer"],mixins:[Tr],props:Ir(Ir({},ln),{},{beforeLayers:{type:Array,default:function(){return[]}},afterLayers:{type:Array,default:function(){return[]}},orientation:{type:String,default:"horizontal"}}),data:function(){return{moveActive:!1,slider:void 0}},watch:{beforeLayers:{handler:function(t){this.compare()},deep:!0},afterLayers:{handler:function(t){this.compare()},deep:!0},vueKey:function(){this.compare()},orientation:function(){this.compare()}},mounted:function(){this.mount()},beforeDestroy:function(){this.umount()},methods:{createCesiumObject:function(){var t=Pr(Er().mark((function t(){return Er().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.baseUrl,this.options,t.abrupt("return",new Promise((function(t){t()}),(function(t){})));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){this.viewer;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this,i=this.createCesiumObject();i.then((function(i){r.$emit("load",r),t.CompareManager.addSource(e,n,i,{beforeM3DSet:null,afterM3DSet:null}),r.compare()}))},$_getM3DSet:function(t){this.Cesium;for(var e=this.vueCesium,n=this.vueKey,r=this.vueIndex,i=this,o=[],a=[],s=function(t){var a=i.beforeLayers[t];i.$_getAll3DTileSetArray((function(a){a&&a.length>0&&(o=o.concat(a));for(var s=0;s<a.length;s++)a[s].swipeEnabled=!0,a[s].swipeInverse=-1;t===i.beforeLayers.length-1&&e.CompareManager.changeOptions(n,r,"beforeM3DSet",o)}),n,a,["m3d","g3d"])},c=0;c<i.beforeLayers.length;c++)s(c);for(var u=function(t){var o=i.afterLayers[t];i.$_getAll3DTileSetArray((function(o){o&&o.length>0&&(a=a.concat(o));for(var s=0;s<o.length;s++)o[s].swipeEnabled=!0,o[s].swipeInverse=1;t===i.afterLayers.length-1&&e.CompareManager.changeOptions(n,r,"afterM3DSet",a)}),n,o,["m3d","g3d"])},l=0;l<i.afterLayers.length;l++)u(l)},compare:function(){this.remove();var t=this.viewer,e=this.Cesium,n="slider",r="compare-swiper";"vertical"===this.orientation?(n="slider",r="compare-swiper"):"horizontal"===this.orientation&&(n="slider slider-horizontal",r="compare-swiper compare-swiper-horizontal");var i,o=document.getElementById(t.container.id).parentNode;this.slider=o.getElementsByClassName("slider"),0===this.slider.length?(this.slider=document.createElement("div"),this.slider.className=n,i=document.createElement("div"),i.className=r,this.slider.appendChild(i),o.appendChild(this.slider)):(this.slider=this.slider[0],i=document.getElementsByClassName("compare-swiper")[0]),this.slider.className=n,this.slider.style.left="",this.slider.style.top="",i.className=r;var a=t.imageryLayers._layers;if(this.beforeLayers.length&&this.afterLayers.length)for(var s=1;s<a.length;s++)this.beforeLayers.includes(a[s].id)?(a[s].swipeEnabled=!0,a[s].swipeInverse=-1):this.afterLayers.includes(a[s].id)&&(a[s].swipeEnabled=!0,a[s].swipeInverse=1);else a[a.length-2].swipeEnabled=!1,a[a.length-1].swipeEnabled=!0;var c=.5,u=e.SwipeModeType.HORIZONTAL;"vertical"===this.orientation?(u=e.SwipeModeType.HORIZONTAL,c=this.slider.offsetLeft/this.slider.parentElement.offsetWidth):"horizontal"===this.orientation&&(u=e.SwipeModeType.VERTICAL,c=this.slider.offsetTop/this.slider.parentElement.offsetHeight),t.scene.swipeController={region:c,type:u,inverse:!0};var l=new e.ScreenSpaceEventHandler(this.slider);this.$_getM3DSet(c);var h=this;l.setInputAction((function(){h.moveActive=!0}),e.ScreenSpaceEventType.LEFT_DOWN),l.setInputAction((function(){h.moveActive=!1}),e.ScreenSpaceEventType.LEFT_UP),l.setInputAction((function(){h.moveActive=!0}),e.ScreenSpaceEventType.PINCH_START),l.setInputAction((function(){h.moveActive=!1}),e.ScreenSpaceEventType.PINCH_END),l.setInputAction(h.move,e.ScreenSpaceEventType.MOUSE_MOVE),l.setInputAction(h.move,e.ScreenSpaceEventType.PINCH_MOVE)},move:function(t){if(this.moveActive){var e,n=this.viewer,r=this.slider;if("vertical"===this.orientation){var i=t.endPosition.x;e=(r.offsetLeft+i)/r.parentElement.offsetWidth,r.style.left=100*e+"%"}else if("horizontal"===this.orientation){var o=t.endPosition.y;e=(r.offsetTop+o)/r.parentElement.offsetHeight,r.style.top=100*e+"%"}n.scene.swipeController.region=e,this.compareM3D(e)}},compareM3D:function(t){this.Cesium;var e=this.vueCesium,n=this.vueKey,r=this.vueIndex,i=e.CompareManager.findSource(n,r);if(i&&i.options){var o=i.options,a=o.beforeM3DSet,s=o.afterM3DSet;if(a)for(var c=0;c<a.length;c++)void 0!==t?(a[c].swipeEnabled=!0,a[c].swipeInverse=-1):(a[c].swipeEnabled=!1,a[c].swipeInverse=0);if(s)for(var u=0;u<s.length;u++)void 0!==t?(s[u].swipeEnabled=!0,s[u].swipeInverse=1):(s[u].swipeEnabled=!1,s[u].swipeInverse=0)}},umount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex;if(t&&t.CompareManager){var r=t.CompareManager.findSource(e,n);r&&this.remove(),t.CompareManager.deleteSource(e,n),this.$emit("unload",this)}},remove:function(){var t=this.viewer,e=t.imageryLayers._layers;e.forEach((function(t){t.swipeEnabled=!1,t.swipeInverse=0}));var n=document.getElementsByClassName("slider");if(n.length>0){var r=document.getElementById(t.container.id).parentNode;r.removeChild(n[0])}this.compareM3D()}}},Rr=jr,Hr=(n("f9c8"),je(Rr,Mr,Lr,!1,null,null,null)),zr=Hr.exports,Ur=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-legend"},[n("mapgis-ui-select",{staticStyle:{width:"100%"},attrs:{"default-value":"全部"},on:{change:t.handleChange}},[n("mapgis-ui-select-option",{attrs:{value:"全部"}},[t._v(" 全部 ")]),t._l(t.layers,(function(e,r){return n("mapgis-ui-select-option",{key:r,attrs:{value:r}},[t._v(t._s(e.layerName)+"\n ")])}))],2),n("div",{staticClass:"legend-area"},t._l(t.legends,(function(e,r){return n("li",{key:r},[n("img",{attrs:{src:"data:image/png;base64,"+e.imageData}}),n("span",[t._v(t._s(e.label))])])})),0)],1)},Vr=[],Yr={name:"mapgis-3d-arcgis-legend",inject:["Cesium","viewer","vueCesium"],data:function(){return{layers:[],legends:[],allLegends:[]}},mounted:function(){this.getLegendUrl()},methods:{getLegendInfo:function(t){var e=this,n=new RegExp("(?<=MapServer).*","i"),r=t.replace(n,"/legend?f=pjson");fetch(r).then((function(t){return t.json()})).then((function(t){t&&t.error?e.$message.info(t.error.message):(e.layers=e.layers.concat(t.layers),t.layers.forEach((function(t){e.allLegends=e.allLegends.concat(t.legend)})),e.legends=e.allLegends)})).catch((function(t){console.log(t)}))},getLegendUrl:function(){var t=this,e=this.vueCesium,n=[];Object.keys(e.ArcgisManager).forEach((function(t){"vueKey"!==t&&(n=n.concat(e.ArcgisManager[t]))})),n.forEach((function(e){var n=e.source._imageryProvider.url,r=new RegExp("\\/arcgis\\/rest\\/services","i");r.test(n)&&t.getLegendInfo(n)}))},handleChange:function(t){this.legends="全部"===t?this.allLegends:this.layers[t].legend}}},Gr=Yr,Qr=(n("931f"),je(Gr,Ur,Vr,!1,null,"2c7f23c2",null)),Wr=Qr.exports,Kr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.hasFeatures,expression:"hasFeatures"}]},[n("div",{staticClass:"mapgis-table-collapse-wrapper"},[n("mapgis-ui-div",{directives:[{name:"show",rawName:"v-show",value:!t.visible,expression:"!visible"}],staticClass:"mapgis-table-collapse"},[n("div",{on:{click:t.showTable}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-table"}}),t._v("属性表\n ")],1)])],1),n("mapgis-ui-div",{staticClass:"mapgis-baseTable"},[t.toolbar&&t.visible?n("mapgis-ui-div",{staticClass:"mapgis-baseTable-toolbar",style:{bottom:t.toolbarBottom},attrs:{id:t.toolbarId}},[n("div",{staticClass:"toolbar-num"},[t._v("\n 总共"+t._s(t.paginationCopy.total)+"条,已选"+t._s(t.selectData.length)+"条\n ")]),n("mapgis-ui-button-group",{staticClass:"toolbar-buttons"},[n("mapgis-ui-button",{attrs:{size:"small"},on:{click:t.$_exportData}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-export"}}),t._v("\n 导出\n ")],1),n("mapgis-ui-button",{attrs:{size:"small"},on:{click:t.$_fieldFilter}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-filter"}}),t._v("\n 字段过滤\n ")],1),n("mapgis-ui-button",{attrs:{size:"small"},on:{click:t.$_deleteMassFeature}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-delete"}}),t._v("\n 批量删除\n ")],1),n("mapgis-ui-button",{directives:[{name:"show",rawName:"v-show",value:t.showFullScene,expression:"showFullScene"}],attrs:{size:"small"},on:{click:t.$_fullScreen}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-fullscreen"}}),t._v("\n 全屏\n ")],1),n("mapgis-ui-button",{attrs:{size:"small"},on:{click:t.hideTable}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-close-circle"}}),t._v("\n 关闭\n ")],1)],1)],1):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:0===t.columnsCopy.length&&t.visible,expression:"columnsCopy.length === 0 && visible"}],staticClass:"mapgis-baseTable-nonData"},[n("div",{staticStyle:{width:"100%"}},[t._v("\n 暂无数据\n ")])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showFilter&&t.visible,expression:"showFilter && visible"}],staticClass:"mapgis-baseTable-fieldFilter",style:{overflowY:t.plainOptions.length>8?"scroll":"hidden",top:t.filterTop+"px",position:t.filterPosition},attrs:{id:t.columnFilterId}},[n("mapgis-ui-row",[n("mapgis-ui-checkbox",{attrs:{indeterminate:t.indeterminate,checked:t.checkAll},on:{change:t.$_checkAll}},[t._v("\n 全选\n ")])],1),n("mapgis-ui-row",[n("mapgis-ui-checkbox-group",{attrs:{options:t.plainOptions},on:{change:t.$_check},model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}})],1)],1),t.deletTable?t._e():n("mapgis-ui-table",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],attrs:{id:t.tableId,"data-source":t.dataSourceCopy,columns:t.columnsCopy,pagination:t.paginationCopy,scroll:t.scroll,"row-selection":t.rowSelection},on:{change:t.$_change},scopedSlots:t._u([t._l(t.columnsCopy,(function(e,r){return{key:e.dataIndex,fn:function(i,o){return n("div",{key:r},[n("div",{staticClass:"mapgis-baseTable-tableTd",on:{click:function(n){return t.$_onceClick(o.key,e.key)},dblclick:function(n){return t.$_doubleClick(o.key,e.key,o)}}},[t.editRowAndCol!==e.key+"_"+o.key?n("p",{staticClass:"mapgis-baseTable-content",style:{fontStyle:"null"===i?"italic":"normal"},attrs:{title:i}},[t._v("\n "+t._s(i)+"\n ")]):t._e(),t.editRowAndCol===e.key+"_"+o.key?n("mapgis-ui-input",{model:{value:o[e.key],callback:function(n){t.$set(o,e.key,n)},expression:"record[column.key]"}}):t._e()],1)])}}})),{key:"operation",fn:function(e,r){return t.editable?[n("mapgis-ui-popconfirm",{on:{confirm:function(e){return t.$_deleteFeature(r)}}},[t._v("\n 删除\n ")])]:void 0}}],null,!0)})],1)],1)},qr=[];function Xr(t){return Xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(t)}function $r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$r(Object(n),!0).forEach((function(e){Zr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zr(t,e,n){return(e=ti(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ti(t){var e=ei(t,"string");return"symbol"==Xr(e)?e:e+""}function ei(t,e){if("object"!=Xr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ni=K["MRFS"].FeatureService,ri=K["MRFS"].VFeature,ii={name:"mapgis-3d-table",props:{baseUrl:{type:String},dataSource:{type:[Array,Object]},columns:{type:Array,default:function(){return[]}},pagination:{type:Object,default:function(){return{total:0,pageSize:10}}},editable:{type:Boolean,default:!0},selectable:{type:Boolean,default:!0},autoEdit:{type:Boolean,default:!0},showFullScene:{type:Boolean,default:!1}},data:function(){var t=this;return{visible:!0,dataSourceCopy:[],dataSourceOrigin:[],featureSet:[],columnsCopy:[],columnsSave:[],columnsWidthSave:[],tableId:"table"+(1e3*Math.random()).toFixed(0),toolbarId:"toolbar"+(1e3*Math.random()).toFixed(0),columnFilterId:"columnFilter"+(1e3*Math.random()).toFixed(0),paginationCopy:{},checkedList:[],scroll:{},selectData:[],editRowAndCol:"",toolbar:!0,showFilter:!1,rowSelection:{onChange:function(e,n){t.rowSelection.selectedRowKeys=e,t.$_tableChanged(),t.$emit("selectedChange",e,n),t.$emit("selectedchange",e,n)},onSelect:function(e,n){t.$_select(e,n)},onSelectAll:function(e){t.$_selectAll(e)},selectedRowKeys:[]},pageInfo:void 0,sorterInfo:{orderField:"",isASC:!1},indeterminate:!0,checkAll:!1,plainOptions:[],toolbarBottom:0,fullScreen:!1,rowHeight:0,pageHeight:0,filterTop:6,filterPosition:"absolute",pageSize:10,baseUrlCopy:void 0,hasFeatures:!0,currentId:void 0,deletTable:!1,sortBack:{}}},watch:{dataSource:{handler:function(){this.$_initSource()},deep:!0},baseUrl:{handler:function(){this.baseUrlCopy=this.baseUrl,this.$_initTableFromUrl()}},pagination:{handler:function(){this.$_initPagination()},deep:!0}},created:function(){window.tableData||(window.tableData={})},mounted:function(){this.$_initTable(),this.$_registerMouseLeave(),this.$emit("loaded",this)},methods:{$_initTable:function(){this.pagination&&(this.paginationCopy=this.pagination,this.pageSize=this.pagination.pageSize),this.dataSource&&this.$_initSource(),this.baseUrl&&(this.baseUrlCopy=this.baseUrl,this.$_initTableFromUrl())},addTable:function(t,e){this.deletTable=!0,this.currentId=e,this.$nextTick((function(){if("string"===typeof t)this.baseUrlCopy=t,this.$_initTableFromUrl();else{if(!(t instanceof Object))throw new Error("请传入数据对象或者url!");this.$_initSource(t)}}))},$_initTableFromUrl:function(){var t=this;ni.get(this.baseUrlCopy,(function(e){e=JSON.parse(e),t.$_initSource(e)}),(function(t){console.log(t)}))},$_nullProperties:function(t){for(var e=!0,n=0;n<t.length;n++)if(e&&"{}"!==JSON.stringify(t[n].properties)){e=!1;break}return e},$_initSource:function(t){if(t=t||this.dataSource,this.dataSourceOrigin=t,this.sortBack={},this.rowSelection&&(this.rowSelection.selectedRowKeys=[]),!t)return this.hasFeatures=!1,this.$emit("createTableFailed","属性表","没有数据!"),void this.$emit("createLayerFailed",{message:"属性表",description:"数据量为0!"});if(this.hasFeatures=!0,t instanceof Array){if(0===t.length)return this.hasFeatures=!1,this.$emit("createTableFailed","属性表","没有数据!"),void this.$emit("createLayerFailed",{message:"属性表",description:"数据量为0!"});this.$_isFeatureSet(t)&&(this.$_getColumnsCopyByFeatureSet(t),this.$_applyColumnsToColumnsCopy(),this.$_initPlainOptions(),this.$_initCheckedList(),this.$_addOperationColumns(),this.featureSet=t,this.$_featureSetToDataSource(this.featureSet),this.$_drawTable())}else if(t instanceof Object){if(t.hasOwnProperty("selectedRowKeys")&&(console.log("dataSource.selectedRowKeys",t.selectedRowKeys),this.rowSelection.selectedRowKeys=t.selectedRowKeys),t.hasOwnProperty("pagination")){this.paginationCopy=Jr({},t.pagination);var e=this.paginationCopy.current;delete this.paginationCopy.current,this.paginationCopy.defaultCurrent=e||1}else this.paginationCopy=this.pagination;if(this.$_isZondyResult(t)){if(!t.SFEleArray||0===t.SFEleArray.length)return this.hasFeatures=!1,this.$emit("createTableFailed","属性表","没有数据!"),void this.$emit("createLayerFailed",{message:"属性表",description:"数据量为0!"});0===this.columnsCopy.length?(this.$_getColumnsCopyByZondySource(t),this.$_applyColumnsToColumnsCopy(),this.$_initPlainOptions(),this.$_initCheckedList(),this.$_addOperationColumns(),this.featureSet=ri.fromQueryResult(t),this.$_featureSetToDataSource(this.featureSet),this.$_drawTable()):(this.featureSet=ri.fromQueryResult(t),this.$_featureSetToDataSource(this.featureSet),this.$nextTick((function(){this.$_drawTableHeight()})))}else{var n=function(t,e){t.$_initCheckedList(),t.featureSet=e,t.$_featureSetToDataSource(e),t.$_drawTable(),t.$_addOperationColumns()},r=this.$_nullProperties(t.features);if(r)return this.$emit("createLayerFailed",{message:"属性表",description:"数据中不包含任何属性数据!"}),void(this.hasFeatures=!1);var i=ri.fromGeoJSON(t);this.paginationCopy.total=i.length,this.$_getColumnsCopyByFeatureSet(i,t.sortInfo),this.$_applyColumnsToColumnsCopy(),this.$_initPlainOptions(),this.deletTable=!1;var o=document.getElementById(this.tableId);if(o)n(this,i);else var a=this,s=setInterval((function(){var e=document.getElementById(a.tableId);e&&(clearInterval(s),n(a,i,t))}),30)}}},$_getColumnsCopyByZondySource:function(t){for(var e=t.AttStruct.FldName,n=[],r=0;r<e.length;r++)n.push({title:e[r],dataIndex:e[r],key:e[r],scopedSlots:{customRender:e[r]},align:"left",ellipsis:!0,sorter:function(t,e){return t[key]-e[key]},width:100});this.columnsCopy=n},$_getColumnsCopyByFeatureSet:function(t,e){if(t.length>0){var n=[];Object.keys(t[0].attributes).forEach((function(t){var r={title:t,dataIndex:t,key:t,scopedSlots:{customRender:t},align:"left",ellipsis:!0,sorter:function(e,n){return e[t]-n[t]},width:100};e&&t===e.key&&(r.defaultSortOrder=e.value),n.push(r)})),this.columnsCopy=n}},$_featureSetToDataSource:function(t){this.allDataSource=t,this.dataSourceCopy=[];for(var e=0;e<t.length;e++){for(var n=Object.assign(t[e].attributes,{}),r=0;r<this.columnsCopy.length;r++)if(t[e].attributes.hasOwnProperty(this.columnsCopy[r].dataIndex)){var i=t[e].attributes[this.columnsCopy[r].dataIndex];void 0!==i&&null!==i&&""!==i||(n[this.columnsCopy[r].dataIndex]="null")}else n[this.columnsCopy[r].dataIndex]="null";t[e].FID=t[e].FID||e+1,this.dataSourceCopy.push(Object.assign(n,{key:t[e].FID}))}},$_initPagination:function(){this.paginationCopy=JSON.parse(JSON.stringify(this.pagination))},$_applyColumnsToColumnsCopy:function(){if(this.columns.length>0)for(var t=0;t<this.columnsCopy.length;t++)for(var e=0;e<this.columns.length;e++)this.columns[e].key===this.columnsCopy[t].key&&(this.columnsCopy[t]=Object.assign(this.columnsCopy[t],this.columns[e]));this.columnsSave=this.columnsCopy,this.columnsWidthSave=JSON.parse(JSON.stringify(this.columnsCopy))},$_addOperationColumns:function(){if(this.editable){for(var t=!0,e=0;e<this.columnsCopy.length;e++)if("operation"===this.columnsCopy[e].dataIndex){t=!1;break}t&&this.columnsCopy.push({title:"删除",dataIndex:"operation",key:"operation",scopedSlots:{customRender:"operation"},align:"center",width:100,fixed:"right"})}},$_initPlainOptions:function(){this.plainOptions=[];for(var t=0;t<this.columnsCopy.length;t++)"operation"!==this.columnsCopy[t].dataIndex&&this.plainOptions.push(this.columnsCopy[t].title)},$_getTableEffectiveWidth:function(t){var e,n=document.getElementById(this.tableId);return e=t||n.offsetWidth,this.editable&&(e-=100),this.selectable&&(e-=60),e},$_initCheckedList:function(){function t(){for(var t=0;t<r.columnsCopy.length;t++){if(n+=r.columnsCopy[t].width,!(n<i))break;r.checkedList.push(r.columnsCopy[t].title),e.push(r.columnsCopy[t])}}this.checkedList=[];var e=[],n=0,r=this,i=this.$_getTableEffectiveWidth();if(this.columns.length>0){for(var o=0;o<this.columnsCopy.length;o++)this.columnsCopy[o].checked&&(e.push(this.columnsCopy[o]),n+=this.columnsCopy[o].width,this.checkedList.push(this.columnsCopy[o].title));0===e.length&&t()}else t();for(var a=0;a<e.length;a++)e[a].width=e[a].width/n*i;this.columnsCopy=e},$_drawTable:function(){for(var t=0,e=this.$_getTableEffectiveWidth(),n=0;n<this.checkedList.length;n++)for(var r=0;r<this.columnsCopy.length;r++)if(this.checkedList[n]===this.columnsCopy[r].title&&"key"!==this.columnsCopy[r].title){t+=this.columnsCopy[r].width;break}t>e?this.scroll={x:t}:(delete this.scroll.x,this.$nextTick((function(){this.dataSourceCopy.length>0&&this.$_drawTableHeight()})))},$_drawTableHeight:function(t){var e=document.getElementById(this.tableId),n=this.$_queryTag(e.childNodes,"mapgis-ui-table-body","div"),r=this.$_queryTag(n.childNodes,"mapgis-ui-table-row-level-0","tr"),i=this.$_queryTag(e.childNodes,"mapgis-ui-spin-container","div");this.rowHeight=r.offsetHeight;var o=this.$_queryTag(e.childNodes,"mapgis-ui-pagination","ul"),a=window.getComputedStyle(o),s=a.marginTop.replace("px",""),c=a.marginBottom.replace("px","");this.pageHeight=o.offsetHeight+Number(s)+Number(c);var u=(this.paginationCopy.pageSize+1.5)*this.rowHeight+this.pageHeight;i.style.height=u+"px",n.style.height=u+"px";var l=this;setTimeout((function(){l.$_drawToolBar(u)}),20)},$_drawToolBar:function(t){this.toolbarBottom=t+"px"},$_queryTag:function(t,e,n){var r;function i(t,e,n){for(var o=0;o<t.length;o++)if(t[o].localName===n&&"string"===typeof t[o].className&&t[o].className.indexOf(e)>-1){if(t[o].className.indexOf(e+"-")<0){r=t[o];break}}else i(t[o].childNodes,e,n)}return i(t,e,n),r},$_isZondyResult:function(t){var e=!0;return t.hasOwnProperty("AttStruct")&&t.hasOwnProperty("SFEleArray")&&t.hasOwnProperty("TotalCount")||(e=!1),e},$_isFeatureSet:function(t){for(var e=!0,n=0;n<t.length;n++)if(!(t[n].hasOwnProperty("geometry")&&t[n].hasOwnProperty("geometryType")&&t[n].hasOwnProperty("attributes")&&t[n].hasOwnProperty("style")&&t[n].hasOwnProperty("FID"))){e=!1;break}return e},$_getAllAttrData:function(){for(var t=Object.assign(this.featureSet,{}),e=0;e<t.length;e++)t[e].attributes=this.$_removeNullData(t[e].attributes);return t},$_removeNullData:function(t){var e={};return Object.keys(t).forEach((function(n){"string"===typeof t[n]&&t[n].indexOf("null")>-1?e[n]=null:e[n]=t[n]})),e},$_getIndexFromArray:function(t,e,n){for(var r=void 0,i=0;i<n.length;i++)if(n[i][t]===e){r=i;break}return r},$_deleteFeature:function(t){var e=this.$_getDataByKey(t.key),n=this.$_getIndexFromArray("key",t.key,this.dataSourceCopy),r=this.$_getIndexFromArray("FID",t.key,this.selectData);if(void 0!==n){this.dataSourceCopy.splice(n,1),this.featureSet.splice(n,1),void 0!==r&&this.selectData.splice(r,1);var i=this.rowSelection.selectedRowKeys.indexOf(t.key);i>-1&&this.rowSelection.selectedRowKeys.splice(i,1),this.paginationCopy.total=this.dataSourceCopy.length,this.$_tableChanged(),this.$emit("dataChanged",this.$_getGeoJsonFromData()),this.$emit("deleted",e)}},$_deleteMassFeature:function(){for(var t=[],e=[],n=0;n<this.dataSourceCopy.length;n++)if(this.$_getObjectFromArray("key",this.dataSourceCopy[n].key,this.selectData)){var r=this.rowSelection.selectedRowKeys.indexOf(this.dataSourceCopy[n].key);r>-1&&this.rowSelection.selectedRowKeys.splice(r,1)}else t.push(this.dataSourceCopy[n]);for(var i=0;i<this.featureSet.length;i++)this.$_getObjectFromArray("key",this.featureSet[i].attributes.key,this.selectData)||e.push(this.featureSet[i]);this.dataSourceCopy=t,this.featureSet=e,this.paginationCopy.total=this.dataSourceCopy.length,this.$_tableChanged(),this.$emit("deleteMass",this.selectData),this.$emit("dataChanged",this.$_getGeoJsonFromData()),this.selectData=[]},$_getObjectFromArray:function(t,e,n){for(var r=void 0,i=0;i<n.length;i++)if(e===n[i].attributes[t]){r=n[i];break}return r},$_select:function(t,e){for(var n,r=this.$_getDateAuto(this.featureSet),i=0;i<r.length;i++)if(t.key===r[i].FID){n=r[i],n.attributes=this.$_removeNullData(n.attributes);break}for(var o=-1,a=0,s=[],c=0;c<this.selectData.length;c++)if(s.push(this.selectData[c].FID),this.selectData[c].FID===n.FID){o=c;break}if(-1===o){for(var u=0;u<s.length;u++)n.FID>s[u]&&a++;this.selectData.splice(a,0,n)}else this.selectData.splice(o,1);this.$_tableChanged(),this.$emit("selected",n,this.selectData,e)},$_getDateAuto:function(t){var e=[];if(this.autoEdit)if(this.pageInfo)for(var n=(this.pageInfo.current-1)*this.pageInfo.pageSize,r=n;r<n+this.pageInfo.pageSize;r++)e.push(t[r]);else for(var i=0;i<this.paginationCopy.pageSize;i++)e.push(t[i]);return e},$_selectAll:function(t){var e=this.featureSet,n=[];if(e=this.$_getDateAuto(e),t)for(var r=0;r<e.length;r++){for(var i=!1,o=[],a=0;a<this.selectData.length;a++)if(o.push(this.selectData[a].FID),this.selectData[a].FID===e[r].FID){i=!0;break}if(!i){for(var s=0,c=0;c<o.length;c++)e[r].FID>o[c]&&s++;this.selectData.splice(s,0,e[r])}}else{for(var u=0;u<this.selectData.length;u++)for(var l=0;l<e.length;l++)if(this.selectData[u].FID===e[l].FID){this.selectData[u]=[];break}n=[].concat(this.selectData),this.selectData=[];for(var h=0;h<n.length;h++)0!==n[h].length&&this.selectData.push(n[h])}this.$_tableChanged(),this.$emit("selectAll",this.selectData,t),this.$emit("selectall",this.selectData,t)},$_change:function(t,e,n,r){console.log("sorter",n),n.hasOwnProperty("order")||(n.order="");var i={};i.orderField=n.field,"ascend"===n.order?i.isAsc=!0:"descend"===n.order?i.isAsc=!1:""===n.order&&(i.isAsc=!1,i.noSort=!0),this.pageInfo?t.current!==this.pageInfo.current?(this.$emit("pageChanged",t,i,r),this.$emit("pagechanged",t,i,r)):this.$emit("sorted",i,t,r):n.hasOwnProperty("columnKey")?this.$emit("sorted",i,t,r):(this.$emit("pageChanged",t,i,r),this.$emit("pagechanged",t,i,r)),this.pageInfo=t,this.sorterInfo=i;var o=void 0;o=!i.hasOwnProperty("noSort")&&(i.isAsc?"ascend":"descend"),this.sortBack={},this.sortBack.key=i.orderField,this.sortBack.value=o,this.$_tableChanged(),this.$emit("changed",t,e,i,r)},$_onceClick:function(t,e){if(this.editRowAndCol!==e+"_"+t){if(this.editRowAndCol.length>0){var n=this.editRowAndCol.split("_"),r=n[n.length-1],i=this.$_getDataByKey(r);this.$_tableChanged(),this.$emit("edited",i,this.$_getGeoJsonFromData()),this.$emit("dataChanged",this.$_getGeoJsonFromData())}this.editRowAndCol=""}var o=this.$_getDataByKey(t);this.$emit("click",o,e)},$_getGeoJsonFromData:function(){for(var t={type:"FeatureCollection",features:[]},e=0;e<this.dataSourceCopy.length;e++)if(this.dataSourceOrigin.hasOwnProperty("features"))t.features.push({type:"Feature",geometry:this.dataSourceOrigin.features[e].geometry,properties:this.dataSourceCopy[e]});else if(this.$_isZondyResult(this.dataSourceOrigin)){var n=ri.fromQueryResult(this.dataSourceOrigin);t.features.push({type:"Feature",geometry:n[e].geometry,properties:this.dataSourceCopy[e]})}else this.dataSourceOrigin instanceof Array&&t.features.push({type:"Feature",geometry:this.dataSourceOrigin[e].geometry,properties:this.dataSourceCopy[e]});return t},$_getDataByKey:function(t){for(var e,n=0;n<this.dataSourceCopy.length;n++)if(Number(t)===this.dataSourceCopy[n].key){e=n;break}var r=JSON.parse(JSON.stringify(this.dataSourceCopy[e]));delete r.key,this.dataSourceCopy[e].attributes=r,r=this.$_removeNullData(r);var i=this.$_getAllAttrData();return i[e].attributes=r,i[e]},$_doubleClick:function(t,e,n){var r=this.$_removeNullData(n),i=this.$_getAllAttrData(),o=r[e];o=o||null,this.curruntKey=e,this.editable&&(this.editRowAndCol=e+"_"+t,this.currentRecord=n),this.$emit("doubleClick",t-1,e,o,r,i[t-1]),this.$emit("doubleclick",t-1,e,o,r,i[t-1])},$_check:function(t){this.indeterminate=this.checkedList.length<this.plainOptions.length,this.checkAll=this.checkedList.length===this.plainOptions.length;for(var e=[],n=0;n<this.checkedList.length;n++)for(var r=0;r<this.columnsSave.length;r++)this.checkedList[n]===this.columnsSave[r].title&&e.push(Object.assign(this.columnsSave[r],{width:this.columnsWidthSave[n].width}));this.columnsCopy=e,this.editable&&this.columnsCopy.length>0&&(this.$_addOperationColumns(),this.$_drawTable()),this.$_setRowSelect()},$_setRowSelect:function(){var t=this;0===this.columnsCopy.length?this.rowSelection=void 0:this.rowSelection={onChange:function(e,n){t.$_tableChanged(),t.$emit("selectedChange",e,n),t.$emit("selectedchange",e,n)},onSelect:function(e,n){t.$_select(e,n)},onSelectAll:function(e){t.$_selectAll(e)}}},$_checkAll:function(t){if(t.target.checked){this.checkedList=this.plainOptions;for(var e=[],n=0;n<this.checkedList.length;n++)for(var r=0;r<this.columnsSave.length;r++)this.checkedList[n]===this.columnsSave[r].title&&(this.columnsSave[r].width=this.columnsWidthSave[r].width,e.push(this.columnsSave[r]));this.columnsCopy=e,this.editable&&this.columnsCopy.length>0&&this.$_addOperationColumns(),this.$_drawTable()}else this.checkedList=[],this.columnsCopy=[];this.indeterminate=!1,this.checkAll=t.target.checked,this.$_setRowSelect()},$_fieldFilter:function(){this.showFilter=!this.showFilter},$_exportData:function(){this.$emit("exportData",this.$_getGeoJsonFromData())},showTable:function(){this.visible=!0},$_tableChanged:function(){var t=this.$_getGeoJsonFromData();console.log("this.rowSelection.selectedRowKeys",this.rowSelection.selectedRowKeys),t.selectedRowKeys=[].concat(this.rowSelection.selectedRowKeys),this.pageInfo?t.pagination=Jr({},this.pageInfo):(t.pagination=Jr({},this.paginationCopy),t.pagination.current=1),t.sortInfo=this.sortBack,this.$emit("tableChanged",t)},hideTable:function(){this.$emit("hideTable"),this.visible=!1},$_registerMouseLeave:function(){var t=document.getElementById(this.columnFilterId),e=this;t.onmouseleave=function(){e.showFilter=!1}},$_fullScreen:function(){var t=document.getElementById(this.toolbarId),e=document.getElementById(this.tableId);if(this.fullScreen)e.removeAttribute("style"),e.classList.remove("mapgis-baseTable-fullScreen"),this.$nextTick((function(){var t=document.getElementById(this.toolbarId),e=document.getElementById(this.tableId);t.style="",this.toolbarBottom=e.offsetHeight-1+"px",t.style.position="absolute",t.style.width="100%",this.filterTop=6,this.filterPosition="absolute";for(var n=this.$_getTableEffectiveWidth(),r=0,i=0;i<this.columnsCopy.length;i++)for(var o=0;o<this.columnsWidthSave.length;o++)if(this.columnsCopy[i].key===this.columnsWidthSave[o].key){this.columnsCopy[i].width=this.columnsWidthSave[o].width,r+=this.columnsCopy[i].width;break}r>n?this.scroll.x=n:delete this.scroll.x})),this.$emit("originScreen",this.$_getPageInfo(this.pageSize),this.sorterInfo),this.$emit("originscreen",this.$_getPageInfo(this.pageSize),this.sorterInfo),this.fullScreen=!1;else{var n=Number(document.body.scrollHeight);e.style.height=n+"px",e.style.top=t.offsetHeight+"px",e.classList.add("mapgis-baseTable-fullScreen"),t.style.top="0",t.style.position="fixed",t.style.width=document.body.scrollWidth+"px",this.filterTop=this.rowHeight+6,this.filterPosition="fixed";for(var r=this.$_getTableEffectiveWidth(document.body.scrollWidth),i=0,o=0;o<this.columnsCopy.length;o++)for(var a=0;a<this.columnsWidthSave.length;a++)if(this.columnsCopy[o].key===this.columnsWidthSave[a].key){this.columnsCopy[o].width=this.columnsWidthSave[a].width,i+=this.columnsCopy[o].width;break}i>r?this.scroll.x=r:delete this.scroll.x,this.pageSize=this.pagination.pageSize;var s=parseInt((n-this.pageHeight-t.offsetHeight)/this.rowHeight);this.$emit("fullScreen",this.$_getPageInfo(s-2),this.sorterInfo),this.$emit("fullscreen",this.$_getPageInfo(s-2),this.sorterInfo),this.fullScreen=!0}},$_getPageInfo:function(t){var e={};return this.pageInfo?(e=this.pageInfo,e.pageSize=t):(e.current=1,e.pageSize=t),e}}},oi=ii,ai=(n("4dca"),je(oi,Kr,qr,!1,null,null,null)),si=ai.exports,ci=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"div_inline"},[n("mapgis-ui-input-group",{staticStyle:{display:"flex"},attrs:{compact:""}},[n("mapgis-ui-select",{staticStyle:{width:"155px","padding-right":"5px"},attrs:{"default-value":"lonlat"},on:{change:t.handleChange}},[n("mapgis-ui-select-opt-group",{attrs:{label:"定位点"}},[n("mapgis-ui-select-option",{attrs:{value:"lonlat"}},[t._v("\n 经纬度\n ")]),n("mapgis-ui-select-option",{attrs:{value:"WebMecro"}},[t._v("\n Web墨卡托\n ")])],1),n("mapgis-ui-select-opt-group",{attrs:{label:"图幅号"}},[n("mapgis-ui-select-option",{attrs:{value:"NewMapNum"}},[t._v("\n GB/T 13989-92\n ")])],1)],1),n("mapgis-ui-input",{staticStyle:{width:"55%","padding-right":"5px"},attrs:{placeholder:t.inputDefaultVal,"allow-clear":"",id:"inputVal"}})],1),n("mapgis-ui-button",{attrs:{shape:"circle",type:"primary",size:"small"},on:{click:t.locateToMap}},[n("mapgis-ui-iconfont",{style:{fontSize:"16px"},attrs:{type:"mapgis-target-lock",theme:"filled"}})],1),t.locateMarker?n("mapgis-3d-dynamic-marker-layer",{attrs:{data:t.locateFeature,fitBound:t.fitBound,layerStyle:t.layerStyle,highlightStyle:t.highlightStyle},scopedSlots:t._u([{key:"popup",fn:function(e){var r=e.marker;return n("mapgis-ui-card",{},[t._v("\n "+t._s(r.fid)+"\n ")])}}],null,!1,3530197095)}):t._e()],1)},ui=[],li=K["Style"].MarkerStyle,hi=(K["Style"].PointStyle,K["Style"].FillStyle),di="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABcCAYAAADNqvPKAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAD4FJREFUeJztXAl0VOUV/mefyWSbLIQtIawBUiAckEVaC7hUT+vpaU9pj7bao6eKR6BFisfl2GprES1Yai1QQaSIu2xVqy0VqIqKIIpWtMWyhoRsk1nfzJu3Te/933uTN1symcwWTu+cm5lkXt77/+//7nfv/d8kevJ/69X0+R5AoVuhAKTTeEFZrgFSQdBr3JDg+9if5Q3AbAOUDBB0I7hJ86x17XsGEg9azsDKFkDaFVdB0QJh1rgl5jn2tepGjecMrEwDpAUmGSgWxa0/GTdywp2NY2Y/esmkGx+bNemW38+adOv908YtXNk4evY0R2k5HqM5XgVNyzIVqKyBlCmAEgGjgkNBubTaUblq+oRrt86bsurVhTP3HbhqdtvN42s/XFQ/dO/8morHvzakYs1l4NeOHLJ70aihezfMmXzuratnd76+8JK3X7isafsfZzcuWTyhbhLpAU0FKxGjMmaZAEgbSlpgKEt+3TT+G89f1rTlwenjj185vPKZmZVlt08sK2oaU2oz1BdbySi7lYwsspCRdgsZAc+18P2oYhupBx9dXEQaym2N0ypKvnlpdfmqG8YO/+DVhTMO/mnu5BUAYh1JDlTGGDUQgJJpDAXmgWnjFuyZP2P/lcMqX5rmKPnO2GKbfVSRjYywWUmN1UKqTCbiMJtIuUn2MmPP63KTkVTAe1XgQywWMhSOrwXwRtttZGKpfeKsCscvbptQ9+Gf501Zfc2IqmGkByitqGcEpHQBSgQO1Zg7JtU3vfz16TuuGl61u6GsaGodTAoBqbSYSYnZSOwmA7Ea9MQEbtTpiB7Ogm6AL+j0Nfwc3zPCNxY4rshoIMUIHPz+EBswDdg2usRmbaooW3zn5DEfPjG3cWVTRWkZ6WFTxkBKB6CE4CwcWlm9/atTNn63ruafjWX2+XVFyBQzsMFA7EY9scBk1ZEnKn504TD1RAWSfJEwMQNoVjhPqdFIqi0mMtxmhlC0lsysKLv34abxH62dOfF6Es+mAYVcfwGKBYeK8K0TaicCc/ZNLiv5QS0wBlcZV9sGK2/U6ykjdIqrFk7RIxfG36WMA6bBSzOctxiAqgBmjoDrjS4tqp5bVbZh27yp68YU20pIT7YbEEj9AShWjKnePNg0/prv1w/dN6bEVo8r6rAYiA3DRy9PRMZEnu5AH+p5FKzg/GEIVx2ErR5C2AShZyWN5fYbfzujYeeiUTW1JFq806rGUwUoUaYyb5w9+efzaxzb62xWexUMsBgYY9Hp6Zt6OBzGTz1luvTD6bnhgdcxwzWLDAYq7sNA7xpK7HNuHjfy73c1jp5DonUpKwxKqDlb5n5lLWSne4fZzAaHxQgDlFmji6zRwBmTKqPwenp4NsH1i4FN1TYTlg8jLh9euef+qeMuJ4nLgIwBpIIUAWfjrMZ7JpXab8LsVG4yg3AaaNbBhzrmcA5dFisIaXATsMkG+oRlQp3NYp03pPwZYNJs0iPc/Soo+wJIyxx086MzGm5oLC9aWQN6U4Yp24gpWdGFbMRSiq5THMsEZJINtAmZXWszWxfUOF6+edyIsaSHSSmLdm8AxbYPpp9OHDV1qqP44Roo3lBvMJPoldXLNWt6YxMy2QhMQj0sByYNs1lKvjW8ehtIQgmJZlGflgqDaGiNhkp4QU35lhqL2Vpq1kNYQfomSiKGkYULyHE8OHCjUjc5QLyhnWn8WUPdahLNoj5DLRlAccJ81+T6e4bbrGMxU1BwdHJtUnBbgIrRwWPNBGMtAinAMmBMcdGPfjllzAISn/qTWm8MioCzZEJtI/RSiyk4BqXwwyMKgC19uR7cBOO1w7iroEab7ihZi9FAUmxHEgEUx565laX3guCZsGVAAdTlIIVn4hFdAhCqm5Bc6pc31N1CUgyz3kKMArS0oXbKMJv1Gux/zNhMqm8XgCCnKtq0BADBtirFJETDsjlVZWUkhYyWjEGRfnGGo2RFKcCP7YOBAhMeFKEV69gIQ0VCikCTHGZj5aK6ITeSFArHWICiwuvKoRXV0JFfZQdqIkX1cn2f99Dp7yMSarTJ1dFQq7dbfkyiNxX6zSDD1cMqvgfFoJU2n9j1hHVZ661y4fqwXB9hW+QwmceunFg3k/TR7ffGID00ft9GcMxEF6mS8x0q6boqSLgDgCyyQ50yocR2HekjkyXNYlfUOKqgwJphVXb9BqPuJAMKK0UsV6rMpitIT4glDDN9LDDqwaDyl1iMeoPJoG50yb9bAJGStqvT1INQY5tkNxlGXDeqpo6kE2JVZuMUM25KUd0Z3OEV62pGwwJyfLFtSgw4USAlDbESo2Gsiah1T/4nlbEQU/iE80KAIOVPTodBOiiqGvAug045It/hkWmXO35I+QbD2GTgxAKkPUBn1ZGhVIyoroUvGpFW59Kzd0SqSJLwigUo6gDohIv0gzy19xVqCJIR1CQRc5IBpAEpbA8r7LkYnSjP2OgnY08igCIZUQoTRj4ZuShdUp8lwmnmnhKD6MEhUewW4AxCWMIgI/LXi+OBcxHp3MIkJElODThxIGkB0h4UDojiSR7gFQFqqQBCItOO88L5+QXhjDZyUg2xsIcTP2LhBHiSfE8mky4pCy7AvEKCRLpD/BHtvFMFSLrAch8EBQSIANo0VrOuC7lyQSQkBJOCKBHfcXr34XyThVlsiIWVg6U32l3v+QXRHRQEirYUlgZ9qEnUJdAekbAAkIcXjh3o9DjVOafCIBUo6bg3wDg57kAQwwzBybu0DvyBAInwzMGcgpJIukL8WzBXUQNO6iGGfo4J7WR4GW0q1lL+WTBQ9ohimIaXD+b1sYd5qTf2JGOQ+gvipjMdb7p5sTMIQctLknKR/GtIuo5j5wAkBrQV2HP4ueau/6bDoEiYuXiBu8CGngMtoqhj7TAYWSQp48YoYAEcH+jq2UBoG8xR6A2cZAxSQwyRFQ46fVs9vMgHACBeHLxijePGKIDMRVwhsW17c+ceZY5iMnB6AyiiQ6+0uZpb2dBuBlDnFLGmAA2ShzpeFOcggOOBeZxhgxvOBbmABpx+MUgLEmXRMU/gcdAiEkAtEsODjkU4Xo7WPRJxc6Jzd6trO+nRnqQC3RtARPPL4rbmrs/bWWGvH0AKUbEeHIWjOk5YU6XuEVF7nvzYE/CQPsQ5VQapWiR+6mXWegSZRdwg0iKVPZi53Jzgfq3dvZnI4qwFKKn19fkglUXC5nOdR1tZ7q9+JeUXekZTMxcPjmWKh+fJ6UDosUMuf3eq7OkLoFgWCYfdzENuQRAZUaQXlkhhV9gikbsAPyxoFy80P9ncuak/7EmFQVoWic+1dP+7JcC/5FW0SFTjvAD0JlZ7sOYR4Dkohxb50s893Cxnrj5rn/4AFMei/d2+R7p5kWFoRpMKMswkxUO0KBRJJ8cff+TkhRdJP9mTCkCqRQB6vcNz7gzEMq4K1hVCWIoMKN/ARGkP0BsTSjcniEfdgTsSgJMxgOJYtLm5a4OTE1r8gpwhxALZVFMXSoRFY6Fbx9oNwurZLeedRxMAlJKlyiAtSMJ5lme+DIRQsGnxRYM6HL00+XLMrhwMxgfjcgqQ1ju9qxKAk3GAVJAiLFpzuuPFtpBwyAs0xgYw36GmhpaAt2NgTC6QgJNMaNVBl78jBqB+WX8BirAI/aCLWQ6hxudbsNWFwUUKwjhw0dpC/LurT7VvJQNgT38BUkGKFI872twnTge5NS4eQg1inu485ukuCOog6qEfwr6LE5h3upnl6kKS6Ka0X5YOQGHlgvTiW1u617dzwnGfgDt1ctes7QCz7fRa8ILWPACSG8L9ZJB7aFeH5yS8xZM0hFlr6f7NapRgf+ILrsR0ihU2rmI4R6GmDS3c0MOs1RbiDq0+1bEpATg5Aygu7T/V4jrczHJbqWBjDZJDwe4JLah5oIB91xVYrgGn182wbAGkghRpQXBAO9q9q7o4sQW3M9XaKJsARbIWPMuhJZJTAfaRnR3eEyRD7BkIQKr1bIf4WffnDHs3akCA3ipS+iKSJd0hKIKy7nnhmhc44ciG825tM5q2MGttIADFpf31zd1vtLD8brdyqyhboSbFhBZkLfY9N7PMI4gsic5aA7aBMih6QYHar3X57oZQ68RQk2ujnjaEZMDpeZQ7FFjzuAAgyFq/2tXhy2hoqZapf24SEez3PcGOz5jQMhfQnqGCrcyNZC60eIK6E6YpvZUV9q4569xM4oW5IBiEFhdqT7S4/tHMCk97eIGuMpeBAjLSiErynVEvMLQTGuZXnL5lRAYno6GlWqYYFBdqz7Z57mvnpJNeuoctZ5uBbq7hp0xwJ5OB83XzkviJP7QUGUsG2E70Zpn+B0uRUPsyyPmO+dmloBEiI0kUIOy003mo97awIAzQlI73tvj1Wy643yY97Mk4OGiZBCi2gOSfbvMcPh3k17l5ZVskjVCLrZYxbC+EhCPrW1wPkWhw0m4nerNMMygu1Da2ute2c+IxnxJqIuVEajOJIA5fcI/HD94tSL53PcHbPYKkTen93sZI1TINkGqRUMOJHPKyS5zQquEmFqf53GMqTFI/S4gMxF2DLxhuxatORm1EsxZaqmUDoLhQ293l/+JEgL8bC0gGpoSbWuE+7syqd0Xx2AAwz8VL5CwrPLm+1b2LZKHeSWbZYpA6aLUu4f/Q4n7+fEjY4RUF2jvxRCkgE1Q86kOAY/D2Eqb0Czx/5Kk27/0kPqVnDRy0bAGkmgoS1aOdXf47OyD1+4ERyVK/+j2mdOyzfOCdguTc72JvaeUEhqS5+Z6uZROguFD7LMC5jvrZxV28wOPdTk5J/RKJdrrxjp8Ek+jGu/gpE7rtTXfgLMkxe9BywSAtSMILnf6PTrH8Ax4e949lESYaPSKSfFcUdccNx5xmhUe2tvn2kxyJcqxlGyC0KIDA+XUtnidaOOFv+GkR1CPUmki9QyT6M3yvlRf2rT3v/h3JQb2TzHIBkGpRevQXJ7MU6qOTHiFMWEWP6OYXvMaftcF7e7qYxUQGR5u1cmq5AihOjz5muK7DfvamblFgsT7CP3tAx9ddguB738f+EI8hOUzpiSzXDIoKt13OwGcnAsKKbuzORfmOBBSU4vEAv/iV7sB/SJ7BQcslQGhxerShzftCc1DYBJ0/gRIARFn8zZZ23xskOmPlVHe0lmuAVFP1CEHgnncy97Vy4pFmTnhxXasnVpTzAoxq+QAoTo/OhQQ/1EjXH/CwS+B7/AvAvIeWavlkUBRIe93Bs/8KcF6Sxc2vdCxfAKHFbjWrfVvsneu8Wj4BQku2N18Q4KDlGyDVtAAVlBUKQAVr/wNs1uBsLJi1hgAAAABJRU5ErkJggg==",fi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAuCAYAAABEbmvDAAAAAXNSR0IB2cksfwAAAAlwSFlzAAASdAAAEnQB3mYfeAAABjNJREFUeJztWF1MFFcUnsSY8NjEmJj0xRfTJk19sEkfffGpsWn9Q5HFYX9nd9lZVkgb2/ovC11cRRRYQLYIrAK2WrUNVK3SqtFapU1t0xrTRK1UrEbEv/fT75thXWphf2DAh/YmX2Zn5t5zv3vOd86du4ryf5um9uTJkwWPHj3SHj58uHl4eLg5Cd7z+ePHj99++vTpnGkhw4k46YMHD768OXBb4ke/kffrD0tReL8s/iBuXEtqDsru7pNy5ervMjQ01E+iXMSUkSIhTvTpyQuyqLxZZi6pFmVprSjL6kRZ1STKymZcgZUxPNstyrvbZb6vXiIdPXL33j0hQUs9SGMM0ZnLv8jCtY2iLNlhEihoFcXWIUpRAtdRMO7x3NaGfi0G+bnqTsO79LQl3qMRGosdOiV5y6pNz3BCTl7cOYKuMTDyjv2K2kVZDYLvRKW4KiGDd/4S6m9SniKp8rrPjLAYxlV4ovhAipC9e3zwvaMrRbDgEyPEb5bsket/DEycHMMXSfQiFAidDUbtMO7oNCdzdo/gYBqM9GF/jlPpPXg7v04WlsUM3eUcVgr1SN9FmbEkIkrhKE/9g1QOMDx3wFycCnJLd4nj44ShuaxJcRXUwVw7PQVNqdCIYz8m6DLh7s4dybEuksMi18SRRBH54ttLwmzP2ltMcWVFDUjtA6mEadCFcLi6JoFOE1wkvVYQk/neWqPWZSwj7MDYzy5EBhahJNhhwAVD7k4LQUnQa9AtamFHz9nMXmOH/b1nRVmOLFQx0NFuGiI8ndYgScyOaBTWy1vrmjJrjZlYHMGgAlRuJwa68NsDQ95O60B7bsqjzYhKXn6lkaFpw0nmbwRBytaQIqYxlFYDxDyIhh1JsDwifd//NHZdI1uCQpxlQ4lQkY1ObDkaiSVMclbCzUi0mcRWRiV+7PTYOhshJvfv35eZS7eh5kD4rlZzsDdhPbhgFyJiR41cFZWart60xAyP5eVvxQBs1k6sRiOxDuuhIYweLNyxFx6rlr1HT6XPTGpsfgCFVcWnjKvFHOwluXaLAZseZL2bn0qVcvx8f/q9k1mp10IDRTsxEKvRMNgPI/52CwF7GmWChTtj8tKacOaspDt7zl3CKsIYiATQEE4fjPihB59FMGxhwR54a02NrKhoyVzHyBoJMDjXWQWdoWxo8JqfXgO5kn2TB+0QGmUCHReE5XDfhez2S4ZzW/sR1DKUDW9jilyg1Rr4Wsxo2GvlVV81K8FgVp/cFOHNgT9lVnEFsgZe88KID+QCIKe3ThwcT3gRQi/OBYWV0nD4hHEWyEhqtNc+iuPL1YaQerEL+GHMj5UG4hMHx/uxQB9LUY28pm/P/WORXrs9eEde1irhdpyESppMcjqM6/EJgIvaa9rRUIpWb5VDfedz89ZorzV8fhyZg5CW1ANYqQ5ypZgkFM8e7K9TClwcQuiMyqINddlr6/lGF3Pw6yEkgQd1LQCjOowHMUmoJXsER5HSamVm4Sa5eOXX7L9cx2p09bEz38kMdQu0hpDqSXLN2YP9Oc63BztKWEINB3L71h+rJfdPdTtC4oDecPQyJglhslIg1Dw+jPfsBwkEkUDaDplXUinU7qTOlclGl9+4NSBz3FsM40oQetMxUajRnDgtGs3+vhqZYdsoX124PDHBj9eYCG29p5EIm+C1XfACJgvFzInLmv4Ng3TM7BeABBwV4q9rz+7gkUtLJsLirUh1e9ic7Bk5oKwxheQzvtcRencEIaywLoTPN4b02vUbMtu9GYmAU1QpJg2RHMK6NpYC7/mc7/1RyVPXy7kff7Y2hM83hrT7a5yi1A3GpEoptqwykFjbkALv+dzH77qNUnuoZ/JZmKk9y9Id3IhReAOob6E9JpnyEVK853NXhSyvajAK6ZT+cZds1MnA7UGZF8AnuIa9VMeJvRSaC+02r7zHc75nNk+qkObaqJezP1yRvOIPkaXYGUpBJrjLvOKez/l+SnU1Vkv+dxY9eAwnqvUIHU7uwah5xT2f8/20/Tk8ulE31NuyKujKhfrmrTSuqyIxo15Ni67Ga9TbLejtFR0lRF0nC8rDcufu3ampV7k2eqb/t2syz/WeXL1+M/1p50W0oeHh/hfN4b/d/gYnm2n24iputAAAAABJRU5ErkJggg==",pi={name:"mapgis-3d-locate",inject:["Cesium","viewer"],props:{mapSheetBoundaryStyle:{type:Object,default:function(){return{color:"#FFA500",opacity:.5}}}},data:function(){return{dataSource:[],inputDefaultVal:"X°,Y°",NewMapNum:void 0,locateMarker:!1,locateFeature:{type:"FeatureCollection",features:[]},layerStyle:new li({symbol:fi}),marker:new li({symbol:di}),fitBound:void 0,highlightStyle:{enableHoverMarker:!1,enableHoverFeature:!0,polygon:new hi({color:"#ff0000",opacity:.8,outlineColor:"#000000"}),marker:new li({symbol:di})}}},watch:{mapNumber:{handler:function(t,e){this.resultCoorFromMapNumber()}}},methods:{handleChange:function(t){switch(document.getElementById("inputVal").value=void 0,this.dataSource=[],t){case"lonlat":this.inputDefaultVal="X°,Y°";break;case"WebMecro":this.inputDefaultVal="X,Y";break;case"NewMapNum":this.inputDefaultVal="NewMapNum";break;case"OldMapNum":this.inputDefaultVal="OldMapNum";break}},locateValue:function(t){this.dataSource=t},locateToMap:function(){var t=document.getElementById("inputVal").value;switch(this.inputDefaultVal){case"NewMapNum":this.resultCoorFromMapNumber(t);break;case"X°,Y°":this.lonlatToPoint(t);break;case"X,Y":this.degreesFromWebMercatorProjection(t)}},viewerflyToLonLat:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=this.viewer,a=this.Cesium,s=document.getElementById("inputVal").value;this.locateFeature.features=[];var c={type:"Feature",properties:{fid:"["+t+","+e+"]"},geometry:{type:"Point",coordinates:[t,e]}};this.locateFeature.features.push(c),this.locateMarker=!0,o.entities.removeAll();var u=new a.Entity({id:s,position:a.Cartesian3.fromDegrees(t,e,o.camera.positionCartographic.height),point:{pixelSize:10,color:a.Color.WHITE.withAlpha(0),outlineColor:a.Color.WHITE.withAlpha(0),outlineWidth:1}});o.entities.add(u),o.flyTo(u,{maximumHeight:1e3,offset:{heading:a.Math.toRadians(n),pitch:a.Math.toRadians(r),range:i}})},flyToRectangle:function(t){var e=this.viewer,n=this;e.entities.removeAll();var r=Math.round(100*Number(t[0][0]))/100,i=Math.round(100*Number(t[0][1]))/100,o=Math.round(100*Number(t[2][0]))/100,a=Math.round(100*Number(t[2][1]))/100,s=[t[0],t[1],t[2],t[3],t[0]],c={type:"Feature",properties:{fid:"图幅边界: {XMin: "+r+"°, YMin: "+i+"°, XMax: "+o+"°, YMax: "+a+"°}"},geometry:{type:"Polygon",coordinates:[s]}};this.locateFeature.features.push(c),this.locateMarker=!0,this.fitBound={xmin:r,ymin:i,xmax:o,ymax:a},this.highlightStyle.polygon=new hi(this.mapSheetBoundaryStyle),n.$emit("located",s)},lonlatToPoint:function(t){var e=t.split(",")[0],n=t.split(",")[1];t.indexOf("°")&&(e=Number(e.split("°")[0]),n=Number(n.split("°")[0]));Cesium.Cartographic.toCartesian(Cesium.Cartographic.fromDegrees(e,n));this.locateMarker=!1,this.viewerflyToLonLat(e,n)},resultCoorFromMapNumber:function(t){var e,n,r=0,i=0,o=0,a=0;if(3==t.length)e=6,n=4;else switch(o=Number(t.slice(4,7)),a=Number(t.slice(7,10)),t[3]){case"B":e=3,n=2;break;case"C":e=1.5,n=1;break;case"D":e=.5,n=1/3;break;case"E":e=.25,n=1/6;break;case"F":e=.125,n=1/12;break;case"G":e=.0625,n=1/24;break;case"H":e=.03125,n=1/24/2;break}r=t[0].charCodeAt()-64,i=Number(t.slice(1,3));var s=6*(i-31)+(a-1)*e,c=4*(r-1)+(4/n-o)*n,u=[],l=[s,c];u.push(l);var h=[s+e,c];u.push(h);var d=[s+e,c+n];u.push(d);var f=[s,c+n];u.push(f),this.flyToRectangle(u)},degreesFromWebMercatorProjection:function(t){var e=t.split(",")[0],n=t.split(",")[1],r=new Cesium.Cartesian3(e,n,0),i=new Cesium.WebMercatorProjection,o=this.degreesFromCartographic(i.unproject(r));this.viewerflyToLonLat(o.longitude,o.latitude)},degreesFromCartographic:function(t){return console.log("cartographic",t),t.longitude=this.toDegrees(t.longitude),t.latitude=this.toDegrees(t.latitude),t},toDegrees:function(t){return Cesium.Math.toDegrees(t)}}},mi=pi,gi=(n("9fab"),je(mi,ci,ui,!1,null,"153b3ed8",null)),Ai=gi.exports,vi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},yi=[],bi={name:"mapgis-3d-debug",inject:["viewer","Cesium","vueCesium"],mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},mount:function(){var t=this.viewer,e=this.createCesiumObject(),n=this;e.then((function(){t.scene.debugShowFramesPerSecond=!0,n.$emit("load",{component:n})}))},unmount:function(){var t=this.viewer;t.scene.debugShowFramesPerSecond=!1}}},wi=bi,_i=je(wi,vi,yi,!1,null,null,null),xi=_i.exports,Si=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default",(function(){return[n("div",{staticClass:"mapgis-widget-output-image"},[n("mapgis-ui-input",{attrs:{placeholder:"请输入输出图片名"},model:{value:t.imgName,callback:function(e){t.imgName=e},expression:"imgName"}},[n("div",{attrs:{slot:"addonAfter"},slot:"addonAfter"},[n("mapgis-ui-select",{staticClass:"outputType-select",model:{value:t.outputType,callback:function(e){t.outputType=e},expression:"outputType"}},t._l(t.outputTypes,(function(e){return n("mapgis-ui-select-option",{key:e,attrs:{value:e}},[t._v("\n "+t._s(e)+"\n ")])})),1),n("mapgis-ui-tooltip",{attrs:{placement:"bottom",title:"下载","arrow-point-at-center":""}},[n("mapgis-ui-iconfont",{staticClass:"download-icon",attrs:{type:"mapgis-download"},on:{click:t.download}})],1)],1)])],1)]}))],2)},Ci=[],Mi=n("8baf");function Li(t){return Li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Li(t)}function Ti(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ti=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Li(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Li(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function ki(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Ei(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ki(o,r,i,a,s,"next",t)}function s(t){ki(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Oi={name:"mapgis-3d-output-image",inject:["Cesium","vueCesium","viewer"],props:{},watch:{outputType:{handler:function(){this.imgName&&""!==this.imgName&&!this.outputTypes.includes(this.imgName.split("-")[0])||(this.imgName="".concat(this.outputType,"-").concat((new Date).toLocaleString()))},deep:!0,immediate:!0}},data:function(){return{imgName:"",outputType:"tiff",outputTypes:["tiff","pdf","bmp","png","gif","jpg","ico"]}},computed:{mime:function(){var t=this.outputType,e="image/bmp";switch(t){case"pdf":e="application/pdf";break;case"tiff":case"bmp":case"png":case"gif":e="image/".concat(t);break;case"jpg":e="image/jpeg";break;case"ico":e="image/x-icon";break}return e}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=Ei(Ti().mark((function t(){return Ti().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.baseUrl,this.options,t.abrupt("return",new Promise((function(t){t()}),(function(t){})));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){var t=this,e=t.createCesiumObject();e.then((function(e){t.$emit("load",t)}))},unmount:function(){this.$emit("unload",this)},download:function(){this.viewer.render();var t=viewer,e=t.canvas;if(!e.clientHeight||!e.clientWidth)for(var n=document.getElementsByClassName("cesium-widget"),r=0;r<n.length;r++)if(e=n[r].getElementsByTagName("canvas")[0],e.clientHeight&&e.clientWidth)break;var i=this.Cesium.ReImg.fromCanvas(e),o=i.toBase64();this.downloadFileByBase64(o,this.imgName,e.clientHeight,e.clientWidth)},dataURLtoBlob:function(t){var e=t.split(","),n=atob(e[1]),r=n.length,i=new Uint8Array(r);while(r--)i[r]=n.charCodeAt(r);return new Blob([i],{type:this.mime})},downloadFile:function(t,e){var n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download",e),n.setAttribute("target","_blank");var r=document.createEvent("MouseEvents");r.initEvent("click",!0,!0),n.dispatchEvent(r)},downloadFileByBase64:function(t,e,n,r){var i=this.mime;if(i.includes("image/")){var o=this.dataURLtoBlob(t),a=URL.createObjectURL(o);this.downloadFile(a,e)}else if(i.includes("pdf")){var s=n/r,c=new Mi["a"]("p","pt","a4"),u=c.internal.pageSize.height,l=c.internal.pageSize.width,h=(u-20)/(l-20);s<=h&&(c=new Mi["a"]("l","pt","a4"),u=c.internal.pageSize.height,l=c.internal.pageSize.width);var d=u-20,f=l-20,p=d/s;if(p<f){var m=(l-p)/2;c.addImage(t,"PNG",m,10,p,d)}else{var g=f*s,A=(u-g)/2;c.addImage(t,"PNG",10,A,f,g)}c.save(e)}}}},Pi=Oi,Bi=(n("ac3e"),je(Pi,Si,Ci,!1,null,"8e56658a",null)),Ii=Bi.exports,Di=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default",(function(){return[n("div",{staticClass:"mapgis-3d-rotate"},[n("mapgis-ui-group-tab",{attrs:{title:"旋转模式"}}),n("mapgis-ui-radio-group",{model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[n("mapgis-ui-radio",{attrs:{value:1}},[t._v(" 全球旋转")]),n("mapgis-ui-radio",{attrs:{value:2}},[t._v(" 绕点旋转")])],1),n("mapgis-ui-group-tab",{attrs:{title:"参数设置"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:1===t.value,expression:"value === 1"}]},[n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"纬度(°)",range:[0,90]},model:{value:t.latitude,callback:function(e){t.latitude=e},expression:"latitude"}}),n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"高度(米)",rangeShow:!0,range:[2e5,28043e4]},model:{value:t.height,callback:function(e){t.height=e},expression:"height"}}),n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"旋转周期(秒)",range:[1,600]},model:{value:t.rotatePeriod,callback:function(e){t.rotatePeriod=e},expression:"rotatePeriod"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:2===t.value,expression:"value === 2"}]},[n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"俯仰角(°)",range:[-90,0]},model:{value:t.pitch,callback:function(e){t.pitch=e},expression:"pitch"}}),n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"距离(米)",range:[0,5e4]},model:{value:t.distance,callback:function(e){t.distance=e},expression:"distance"}}),n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"环绕周期(秒)",range:[1,600]},model:{value:t.rotatePeriod,callback:function(e){t.rotatePeriod=e},expression:"rotatePeriod"}}),n("mapgis-ui-switch-panel",{attrs:{labelCol:{span:8},wrapperCol:{span:16},layout:"vertical",label:"鼠标拾取中心点坐标",size:"default",checked:t.getCenter},on:{changeChecked:t.getM3dCenter}},[n("mapgis-ui-row",{attrs:{gutter:8}},[n("mapgis-ui-col",{attrs:{span:12}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,step:1e-4},model:{value:t.coordinate.longitude,callback:function(e){t.$set(t.coordinate,"longitude",t._n(e))},expression:"coordinate.longitude"}},[n("mapgis-ui-tooltip",{attrs:{slot:"addonBefore",title:"x坐标"},slot:"addonBefore"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-xzhouyidong"}})],1)],1)],1),n("mapgis-ui-col",{attrs:{span:12}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,step:1e-4},model:{value:t.coordinate.latitude,callback:function(e){t.$set(t.coordinate,"latitude",t._n(e))},expression:"coordinate.latitude"}},[n("mapgis-ui-tooltip",{attrs:{slot:"addonBefore",title:"y坐标"},slot:"addonBefore"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-yzhouyidong"}})],1)],1)],1)],1)],1)],1),n("mapgis-ui-setting-footer",[n("mapgis-ui-button",{attrs:{type:"primary"},on:{click:t.beginRotate}},[t._v("旋转\n ")]),n("mapgis-ui-button",{on:{click:t.stopRotate}},[t._v("停止")])],1)],1)]}))],2)},Ni=[];function Fi(t){return Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(t)}function ji(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ji=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Fi(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Fi(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Ri(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Hi(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ri(o,r,i,a,s,"next",t)}function s(t){Ri(o,r,i,a,s,"throw",t)}a(void 0)}))}}var zi={name:"mapgis-3d-rotate",mixins:[Ve],inject:["Cesium","vueCesium","viewer"],props:{},watch:{value:{handler:function(t){var e=this,n=this.findRotateTool();n.stop(),n&&(1===t?(n.pitch=-1*e.Cesium.Math.toRadians(parseInt(e.latitude)),n.distance=e.height,n.speed=e.speed):2===t&&(n.pitch=e.Cesium.Math.toRadians(parseInt(e.pitch)),n.distance=e.distance,n.speed=e.speed))}},pitch:{handler:function(t){var e=this.findRotateTool();e.pitch=this.Cesium.Math.toRadians(parseInt(t))}},distance:{handler:function(t){var e=this.findRotateTool();e.distance=t}},height:{handler:function(t){var e=this.findRotateTool();e.distance=t}},rotatePeriod:{handler:function(t){var e=this,n=e.findRotateTool();e.speed=360/t,n.speed=e.speed}},latitude:{handler:function(t){var e=this.findRotateTool();e.pitch=-1*this.Cesium.Math.toRadians(parseInt(t))}}},data:function(){return{value:1,pitch:-30,distance:500,rotatePeriod:60,speed:6,height:20966848,latitude:38,handlerAction:void 0,getCenter:!1,coordinate:{longitude:0,latitude:0,height:0}}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=Hi(ji().mark((function t(){return ji().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){t()}),(function(t){})));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this,i=this.createCesiumObject();i.then((function(i){var o=r.addRotatePointTool();t.RotateManager.addSource(e,n,i,o),r.$emit("loaded",r)}))},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this.findRotateTool();if(r)try{r.stop()}catch(i){}t.RotateManager.deleteSource(e,n)},addRotatePointTool:function(){var t=this.viewer,e=this.Cesium,n=this,r=new e.AnimationTool(t,{toolType:"point",heading:0,pitch:-1*n.Cesium.Math.toRadians(parseInt(n.latitude)),speed:n.speed,isLoop:!0,positions:new e.Cartesian3(0,0,0),distance:n.height,moveToStop:!0,complete:function(){},onPositionCallback:function(t){}});return r},findRotateTool:function(){var t,e=this.vueCesium,n=this.vueKey,r=this.vueIndex,i=e.RotateManager.findSource(n,r);return i&&i.options&&(t=i.options),t},getCenterPosition:function(){var t=this.viewer,e=this.Cesium,n=t.camera.pickEllipsoid(new e.Cartesian2(t.canvas.clientWidth/2,t.canvas.clientHeight/2)),r=e.Ellipsoid.WGS84.cartesianToCartographic(n),i=180*r.longitude/Math.PI,o=180*r.latitude/Math.PI;return[i,o]},getM3dCenter:function(t){var e=this,n=this.viewer,r=this.Cesium;this.getCenter=t,t&&(this.handlerAction=new r.ScreenSpaceEventHandler(this.viewer.scene.canvas),this.handlerAction.setInputAction((function(t){var i=n.getCartesian3Position(t.position),o=r.Cartographic.fromCartesian(i);e.coordinate.longitude=r.Math.toDegrees(o.longitude),e.coordinate.latitude=r.Math.toDegrees(o.latitude),e.coordinate.height=o.height}),r.ScreenSpaceEventType.LEFT_CLICK))},beginRotate:function(){var t=this,e=t.findRotateTool();if(1===t.value)e.positions=new Cesium.Cartesian3(0,0,0),e.start();else{if(t.getCenter)e.positions=new Cesium.Cartesian3.fromDegrees(t.coordinate.longitude,t.coordinate.latitude,0);else{var n=t.getCenterPosition();e.positions=new Cesium.Cartesian3.fromDegrees(n[0],n[1],0)}e.start()}},stopRotate:function(){var t=this,e=t.findRotateTool();e.stop()}}},Ui=zi,Vi=(n("1415"),je(Ui,Di,Ni,!1,null,"6830364a",null)),Yi=Vi.exports,Gi={imageryProvider:{type:Object,required:!0},rectangle:Object,alpha:{type:Number|Function,default:1},brightness:{type:Number|Function,default:1},contrast:{type:Number|Function,default:1},hue:{type:Number|Function,default:0},saturation:{type:Number|Function,default:1},gamma:{type:Number|Function,default:1},splitDirection:Number,minificationFilter:Number,magnificationFilter:Number,show:{type:Boolean,default:!0},maximumAnisotropy:Number,minimumTerrainLevel:Number,maximumTerrainLevel:Number,cutoutRectangle:Object,colorToAlpha:Object,colorToAlphaThreshold:{type:Number,default:.004}};function Qi(t){return Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(t)}function Wi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wi=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Qi(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Qi(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Ki(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function qi(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ki(o,r,i,a,s,"next",t)}function s(t){Ki(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Xi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xi(Object(n),!0).forEach((function(e){Ji(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ji(t,e,n){return(e=Zi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zi(t){var e=to(t,"string");return"symbol"==Qi(e)?e:e+""}function to(t,e){if("object"!=Qi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var eo,no,ro={name:"cesium-layer-imagery",mixins:[],inject:["Cesium","viewer"],props:$i({},Gi),methods:{createCesiumObject:function(){var t=qi(Wi().mark((function t(){var e;return Wi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.$props,t.abrupt("return",new Cesium.ImageryLayer(provider||{},e));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){var t=qi(Wi().mark((function t(){var e,n;return Wi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.viewer,n=this.imageryLayer,e.imageryLayers.add(n),t.abrupt("return",!this.viewer.isDestroyed()&&e.imageryLayers.contains(n));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),unmount:function(){var t=qi(Wi().mark((function t(){var e,n;return Wi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.viewer,n=this.imageryLayer,t.abrupt("return",!e.isDestroyed()&&e.imageryLayers.remove(n));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},created:function(){var t=this;this._provider=void 0,Object.defineProperties(this,{imageryLayer:{enumerable:!0,get:function(){return t.originInstance}},provider:{enumerable:!0,get:function(){return t.imageryProvider||t._provider}}})}},io=ro,oo=je(io,eo,no,!1,null,null,null),ao=oo.exports,so=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},co=[],uo=n("f805");function lo(t){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(t)}function ho(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ho(Object(n),!0).forEach((function(e){po(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function po(t,e,n){return(e=mo(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mo(t){var e=go(t,"string");return"symbol"==lo(e)?e:e+""}function go(t,e){if("object"!=lo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ao={inject:["viewer","Cesium"],props:{baseUrl:{type:String,default:null},domain:{type:String,default:null},protocol:{type:String,default:"http://"},ip:{type:String,default:null},port:{type:String,default:null},serverName:{type:String,default:null},layerStyle:{type:Object,default:function(){return{visible:!0,opacity:1}}},id:{type:String,default:""},token:{type:Object},options:{type:Object,default:function(){return{proxy:void 0,tilingScheme:void 0,rectangle:void 0,tileDiscardPolicy:void 0,tileHeight:256,tileWidth:256,enablePickFeatures:!1,minimumLevel:0,maximumLevel:20,credit:void 0}}},vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}}},data:function(){return{layerStyleCopy:{},managerName:void 0,providerName:void 0,checkType:void 0,layerId:void 0,optionsBack:void 0}},watch:{layerStyle:{handler:function(){var t=this.vueKey,e=this.vueIndex,n=window.vueCesium[this.managerName].findSource(t,e);n&&(this.layerStyleCopy.visible!==this.layerStyle.visible&&(n.source.show=this.layerStyle.visible),this.layerStyleCopy.opacity!==this.layerStyle.opacity&&(n.source.alpha=this.layerStyle.opacity),this.layerStyleCopy.zIndex!==this.layerStyle.zIndex&&this.$_moveLayer(),this.layerStyleCopy=fo({},this.layerStyle))},deep:!0},options:{handler:function(){var t=this,e=this.$_isEqual(t.options,t.optionsBack);e||(this.unmount(),this.mount(),this.optionsBack=this.options)},deep:!0},id:{handler:function(){var t=this.vueIndex,e=this.vueKey,n=window.vueCesium[this.managerName].findSource(e,t);n.source.id=this.id}}},mounted:function(){this.optionsBack=this.options},methods:{$_isEqual:function(t,e){if("object"!==lo(t)||"object"!==lo(e))return t===e;if(e===t)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=0,o=n;i<o.length;i++){var a=o[i],s=this.$_isEqual(t[a],e[a]);if(!s)return!1}return!0},$_mount:function(t,e){this.$_check();var n={},r={},i=this.$props,o=this.vueIndex,a=this.vueKey,s=this.Cesium;if(Object.keys(i).forEach((function(t){"options"!==t&&"layerStyle"!==t&&"id"!==t&&(n[t]=i[t])})),r=fo(fo(fo({},this.options),n),t),this.token&&("MapGIS2DDocMapProvider"===this.providerName?r.hasOwnProperty("extensions")&&r.extensions.length>0?r.extensions.push({key:this.token.key,value:this.token.value}):r.extensions=[{key:this.token.key,value:this.token.value}]:this.token.value&&(r.baseUrl+="?"+this.token.key+"="+this.token.value)),r.rectangle){var c=r,u=c.rectangle,l=u.xmin,h=u.ymin,d=u.xmax,f=u.ymax,p=c.srs,m=c.spatialReference,g=c.tilingScheme;if(["EPSG:4326","EPSG:4490","EPSG:4610","EPSG:4214"].includes(p)||[4326,4490,4610,4214].includes((null===m||void 0===m?void 0:m.wkid)||(null===g||void 0===g?void 0:g.wkid)))r.rectangle=s.Rectangle.fromDegrees(l,h,d,f);else if(["EPSG:102100","EPSG:3857"].includes(p)||[102100,3857].includes((null===m||void 0===m?void 0:m.wkid)||(null===g||void 0===g?void 0:g.wkid))){var A=zondy.geometry.Projection.project(new zondy.geometry.Extent({xmin:l,ymin:h,xmax:d,ymax:f,spatialReference:new zondy.SpatialReference({wkid:3857})}),new zondy.SpatialReference({wkid:4326})).toJSON();r.rectangle=s.Rectangle.fromDegrees(A.xmin,A.ymin,A.xmax,A.ymax)}else delete r.rectangle}r.url=r.baseUrl;var v,y,b=this.layerStyle,w=r,_=w.saturation,x=w.hue,S=b.visible,C=b.opacity,M=b.zIndex,L=this.$_getWebGlobe(),T=L.imageryLayers;if(v=e?new e(r):new s[this.providerName](r),M<0)throw new Error("zIndex不能为负数");M?(this.$_checkZIndex(T),y=M):y=0;var k=T.addImageryProvider(v,T._layers.length);this.$_initLayerIndex(),void 0!==_&&(k.saturation=_),void 0!==x&&(k.hue=x),"boolean"===typeof S&&(k.show=S),"number"===typeof C&&(k.alpha=C),this.layerStyleCopy=Object.assign({},b),0===this.id.length?k.id=o:k.id=this.id,this.layerId=k.id;var E={zIndex:y,id:k.id};if(0===y){var O=this.$_getMaxZeroIndex();E.zeroIndex=O+1}window.vueCesium[this.managerName].addSource(a,o,k,E),this.$emit("load",k,this)},$_unmount:function(){var t=this.vueKey,e=this.vueIndex,n=this.$_getWebGlobe(),r=n.imageryLayers,i=window.vueCesium[this.managerName].findSource(t,e);r.remove(i.source,!0),window.vueCesium[this.managerName].deleteSource(t,e),this.$emit("unload",this)},$_checkZIndex:function(t){for(var e=this.$_getLayers(),n=t._layers,r=0;r<n.length;r++)for(var i=0;i<e.length;i++)if(e[i].options&&e[i].options.id===n[r].id&&e[i].options.zIndex&&e[i].options.zIndex===this.layerStyle.zIndex)throw new Error("该zIndex值:"+e[i].options.zIndex+"已被使用,请重新赋值")},$_getMaxZeroIndex:function(){for(var t=this.$_getLayers(),e=0,n=0;n<t.length;n++)t[n].hasOwnProperty("options")&&t[n].options&&t[n].options.hasOwnProperty("zeroIndex")&&(e=t[n].options.zeroIndex>e?t[n].options.zeroIndex:e);return e},$_getCurrentLayer:function(t){for(var e,n,r=t._layers,i=0;i<r.length;i++)if(r[i].id===this.layerId){e=r[i],n=i;break}return{currentLayer:e,index:n}},$_getLayers:function(){var t=[],e=this;return Object.keys(window.vueCesium).forEach((function(n){if(n.indexOf("Manager")>-1&&"GlobesManager"!==n&&window.vueCesium[n].hasOwnProperty("vueKey")&&window.vueCesium[n].hasOwnProperty(e.vueKey))for(var r=window.vueCesium[n][e.vueKey],i=0;i<r.length;i++)r[i].hasOwnProperty("options")&&r[i].options&&r[i].options.hasOwnProperty("zIndex")&&void 0!==r[i].options.zIndex&&null!==r[i].options.zIndex&&t.push(r[i])})),t.sort((function(t,e){return t.options&&e.options?t.options.zIndex-e.options.zIndex:0})),t},$_getCurrentLayerManage:function(){for(var t,e=this.$_getLayers(),n=0;n<e.length;n++)if(e[n].options.id===this.layerId){t=e[n];break}return t},$_getLayerIndex:function(t){for(var e,n=0;n<t.length;n++)if(t[n].options.zIndex===this.layerStyleCopy.zIndex){e=n;break}return e},$_getWebGlobe:function(){var t,e=this.vueKey,n=this.viewer;if(e)if("default"===e)t=n;else{var r=window.vueCesium.GlobesManager;t=r[this.vueKey][0].source}else t=n;return t},$_moveLayer:function(){var t=this.layerStyle,e=this.layerStyleCopy,n=t.zIndex,r=e.zIndex;if(n<0)throw new Error("zIndex不能为负数");var i=this.$_getWebGlobe(),o=i.imageryLayers,a=o._layers,s=this.$_getCurrentLayer(o).currentLayer,c=this.$_getCurrentLayer(o).index;if(this.$_checkZIndex(o),!r&&n>0){for(var u=c+1;u<a.length;u++){var l=this.$_getIndexById(a[u].id);(0===l||this.layerStyle.zIndex>l)&&o.raise(s)}this.$_updateLayerManager("zIndex",this.layerStyle.zIndex)}else if(r&&!n){var h=this.$_getCurrentLayerManage();h.options.zIndex=0;for(var d=this.$_getCurrentLayer(o),f=d.currentLayer,p=d.index,m=p-1;m>0;m--)if(this.$_getIndexById(a[m].id))o.lower(f);else if(this.$_getIndexById(a[m].id,"zeroIndex")){var g=this.$_getIndexById(this.layerId,"zeroIndex"),A=this.$_getIndexById(a[m].id,"zeroIndex");if(!g){var v=this.$_getMaxZeroIndex();this.$_updateLayerManager("zeroIndex",v+1);break}g<A&&o.lower(f)}p-1===0&&this.$_updateLayerManager("zeroIndex",1)}else{var y=c+1,b=c-1;if(y<=a.length-1){if(this.layerStyle.zIndex>this.$_getIndexById(a[y].id))for(var w=y;w<a.length;w++){var _=this.$_getIndexById(a[w].id);this.layerStyle.zIndex>_&&o.raise(s)}}else if(b>0){var x=this.$_getIndexById(a[b].id);if(x>0&&this.layerStyle.zIndex<x)for(var S=b;S>0;S--){var C=this.$_getIndexById(a[S].id);this.layerStyle.zIndex<C&&o.lower(s)}}this.$_updateLayerManager("zIndex",this.layerStyle.zIndex)}},$_updateLayerManager:function(t,e){for(var n=this.$_getLayers(),r=0;r<n.length;r++)if(this.layerId===n[r].options.id){n[r].options[t]=e;break}},$_initLayerIndex:function(){var t=this.$_getWebGlobe(),e=t.imageryLayers,n=e._layers,r=n.length,i=n[r-1];if(this.layerStyle.zIndex)for(var o=r-2;o>0;o--)this.layerStyle.zIndex<this.$_getIndexById(n[o].id)&&e.lower(i);else for(var a=r-2;a>0;a--)this.$_getIndexById(n[a].id)>0&&e.lower(i)},$_getIndexById:function(t,e){for(var n,r=e||"zIndex",i=this.$_getLayers(),o=0;o<i.length;o++)if(i[o].hasOwnProperty("options")&&i[o].options&&i[o].options.hasOwnProperty("id")&&i[o].options.id&&i[o].options.id===t){n=i[o].options[r];break}return n},$_checkValue:function(t,e,n){var r="";if("string"===typeof n)for(var i=n.split("|"),o=0;o<i.length;o++)i[o]=i[o].replace(/\s*/g,""),t.hasOwnProperty(e)?null===t[e]||void 0===t[e]?r="null":"object"===lo(t[e])?"array"===i[o]?r=t[e]instanceof Array?"":"wrongType":"object"!==i[o]&&(r="wrongType"):lo(t[e])!==i[o]&&(r="wrongType"):r="null";return r},$_check:function(){var t=fo(fo({},this.options),this.layerStyle);this.$_checkProps(t,this.checkType)},$_checkProps:function(t,e){var n=this;t&&e&&Object.keys(t).forEach((function(r){var i;if(e.hasOwnProperty(r)&&"string"===typeof r&&(i=n.$_checkValue(t,r,e[r]),"wrongType"===i))throw new Error(r+"的类型错误,应为"+e[r]+"类型")}))},$_initUrl:function(t){var e;if(this.baseUrl)e=this.baseUrl;else if(this.domain){if(!this.serverName)throw new Error("请输入地图文档名称");e=this.domain+t+this.serverName}else{if(!this.ip||!this.port)throw new Error("请输入url地址信息");if(!this.serverName)throw new Error("请输入地图文档名称");e=this.protocol+this.ip+":"+this.port+t+this.serverName}return e},$_setTilingScheme:function(t){var e;if("string"===typeof t&&(t=t.includes("EPSG:")?Number(t.split(":")[1]):Number(t)),4326===t||4490===t||4610===t||4214===t)e=new Cesium.GeographicTilingScheme;else if(3857===t)e=new Cesium.WebMercatorTilingScheme;else if(this.$_isCustomWKID(t)){var n,r,i,o={x:1,y:-1};if(n=Number(t),[uo["CustomWKID"].bd09ll,uo["CustomWKID"].bd09mc].indexOf(n)>-1)o={x:1,y:1},r=new Cesium.Cartesian2(-20037726.37,-12474104.17),i=new Cesium.Cartesian2(20037726.37,12474104.17);else if([uo["CustomWKID"].gcj02ll,uo["CustomWKID"].gcj02mc].indexOf(n)>-1){var a=Cesium.Ellipsoid.WGS84.maximumRadius*Math.PI;r=new Cesium.Cartesian2(-a,-a),i=new Cesium.Cartesian2(a,a)}var s=this.$_getTileInfoByWKID(n);e=new Cesium.CustomTilingScheme({wkid:n,axisDirection:o,rectangleSouthwest:r,rectangleNortheast:i,tileInfo:s})}else e=new Cesium.GeographicTilingScheme;return e},$_isCustomWKID:function(t){var e=Number(t);return!(isNaN(e)||e!==uo["CustomWKID"].gcj02&&e!==uo["CustomWKID"].gcj02ll&&e!==uo["CustomWKID"].gcj02mc&&e!==uo["CustomWKID"].bd09&&e!==uo["CustomWKID"].bd09ll&&e!==uo["CustomWKID"].bd09mc)},$_getTileInfoByWKID:function(t){var e,n,r={},i=[];if(20020902===t){e=[256,256];for(var o=0;o<19;o++){var a=Math.pow(2,18-o);i[o]={level:o,resolution:a,scale:null}}r={dpi:0,format:"PNG",size:e,origin:{coordinates:[0,0],type:"Point"},lods:i}}else if(20010202===t){e=[256,256];var s=Cesium.Ellipsoid.WGS84.maximumRadius*Math.PI;n=(s+s)/e[0];for(var c=0;c<19;c++){var u=n/Math.pow(2,c);i[c]={level:c,resolution:u,scale:null}}r={dpi:0,format:"PNG",size:e,origin:{coordinates:[-s,s],type:"Point"},lods:i}}else if(20020901===t||20010201===t){var l={xmin:-180,ymin:-90,xmax:180,ymax:90},h=2;e=256;var d=111319490.79327358;n=(l.xmax-l.xmin)/h/e;for(var f=0;f<19;f++){var p=n/Math.pow(2,f),m={level:f,resolution:p,scale:d*(96*p)/.0254};i.push(m)}r={dpi:96,format:"PNG",size:e,origin:{coordinates:[180,-90],type:"Point"},lods:i}}return r}}},vo={name:"mapgis-3d-igs-doc-layer",mixins:[Ao],props:{layers:{type:String,default:null},srs:{type:String,default:"EPSG:4326"}},watch:{layers:{handler:function(){this.unmount(),this.mount()}}},data:function(){return{managerName:"IgsDocLayerManager",providerName:"MapGISMapServerImageryProvider",checkType:{tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number"}}},mounted:function(){this.mount()},methods:{mount:function(){var t=this.$_setTilingScheme(this.srs),e=this.$_initUrl("/igs/rest/mrms/docs/");this.$_mount({baseUrl:e,tilingScheme:t})},unmount:function(){this.$_unmount()}},destroyed:function(){this.unmount()}},yo=vo,bo=je(yo,so,co,!1,null,null,null),wo=bo.exports,_o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},xo=[],So={name:"mapgis-3d-igs-tile-layer",mixins:[Ao],props:{tilingScheme:{type:String,default:"EPSG:4326"}},data:function(){return{managerName:"IgsTilecLayerManager",providerName:"MapGISTileServerImageProvider",checkType:{tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number"}}},mounted:function(){this.mount()},methods:{mount:function(){var t=this.$_initUrl("/igs/rest/mrms/tile");t+="/{level}/{row}/{col}";var e=this.$_setTilingScheme(this.tilingScheme);this.$_mount({baseUrl:t,srs:this.tilingScheme,tilingScheme:e})},unmount:function(){this.$_unmount()}},destroyed:function(){this.unmount()}},Co=So,Mo=je(Co,_o,xo,!1,null,null,null),Lo=Mo.exports,To=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},ko=[],Eo={url:{type:String,default:null},layerIndex:{type:Number},domain:{type:String,default:null},protocol:{type:String,default:location.protocol.split(":")[0]||window.location.protocol.split(":")[0]},ip:{type:String,default:"localhost"},port:{type:String,default:"6163"},colNum:{type:Number,default:2},rowNum:{type:Number,default:1},offset:{type:Number,default:0},show:{type:Boolean,default:!0},alpha:{type:Number,default:1},proxy:{type:String,default:void 0},tilingScheme:{type:Object,default:void 0},rectangle:{type:Object,default:void 0},tileDiscardPolicy:{},tileHeight:{type:Number,default:256},tileWidth:{type:Number,default:256},enablePickFeatures:{},minimumLevel:{type:Number,default:0},maximumLevel:{type:Number,default:20},credit:{}};function Oo(t){return Oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(t)}function Po(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Po(Object(n),!0).forEach((function(e){Io(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Po(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Io(t,e,n){return(e=Do(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Do(t){var e=No(t,"string");return"symbol"==Oo(e)?e:e+""}function No(t,e){if("object"!=Oo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Oo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Fo={props:Bo({},Eo),inject:["Cesium","viewer"],created:function(){this.imageryLayer=this.createCesiumObject(),this.mount(),this.watchProp()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=this.$props,e=this.provider;return new Cesium.ImageryLayer(e||{},t)},watchProp:function(){var t=this.show,e=this.alpha;t&&this.$watch("show",(function(t){this.initial||(this.imageryLayer.show=t)})),e&&this.$watch("alpha",(function(t){this.initial||(this.imageryLayer.alpha=t)}))},mount:function(){var t=this.viewer,e=this.imageryLayer,n=this.layerIndex;return t.imageryLayers.add(e,n),!t.isDestroyed()&&t.imageryLayers.contains(e)},unmount:function(){var t=this.viewer,e=this.imageryLayer;return!t.isDestroyed()&&t.imageryLayers.remove(e)}},render:function(t){return t("span")}};function jo(t){return jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jo(t)}function Ro(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ho(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ro(Object(n),!0).forEach((function(e){zo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zo(t,e,n){return(e=Uo(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uo(t){var e=Vo(t,"string");return"symbol"==jo(e)?e:e+""}function Vo(t,e){if("object"!=jo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=jo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Yo={name:"mapgis-3d-raster-layer",mixins:[Fo],props:{baseUrl:{type:String,default:null}},methods:{createCesiumObject:function(){var t=this.$props,e=this.baseUrl,n=t;e&&(n=Ho(Ho({},t),{},{url:e}));var r=new Cesium.UrlTemplateImageryProvider(n);return new Cesium.ImageryLayer(r)}}},Go=Yo,Qo=je(Go,To,ko,!1,null,null,null),Wo=Qo.exports,Ko=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},qo=[];function Xo(t){return Xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xo(t)}function $o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$o(Object(n),!0).forEach((function(e){Zo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zo(t,e,n){return(e=ta(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ta(t){var e=ea(t,"string");return"symbol"==Xo(e)?e:e+""}function ea(t,e){if("object"!=Xo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var na={name:"mapgis-3d-rastertile-layer",inject:["Cesium","viewer","vueCesium"],mixins:[Ao],props:{crs:{type:String,defalut:"EPSG:4326"}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",rectangle:"object",tilingScheme:"object",ellipsoid:"object",tileWidth:"number",tileHeight:"number",maximumLevel:"number",credit:"object|String",vueKey:"string",vueIndex:"string | Number"},managerName:"RasterManager",providerName:"UrlTemplateImageryProvider"}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=this.$props,e=new Cesium.UrlTemplateImageryProvider(t);return new Cesium.ImageryLayer(e)},mount:function(){var t=this.crs,e=this.baseUrl,n={};t&&(n.tilingScheme=this.$_setTilingScheme(t));var r,i=this.$props.options.offset;if(e.includes("{")&&e.includes("}/")){var o=e.split("{");r=o[1].split("}/")[0]}r&&i&&(n.customTags={},n.customTags[r]=function(t,e,n,r){return r-i},t||(n.tilingScheme=this.$_setTilingScheme("EPSG:4326")));var a=e;if(e.includes("format=")){var s=e.split("format="),c=s[1].split("&");n.hasOwnProperty("extensions")&&n.extensions.length>0?n.extensions.push({key:"format",value:c[0]}):n.extensions=[{key:"format",value:c[0]}],a=s[0]+c[1]}var u=Jo(Jo({},n),{},{baseUrl:a});this.$_mount(u)},unmount:function(){this.$_unmount()}}},ra=na,ia=je(ra,Ko,qo,!1,null,null,null),oa=ia.exports,aa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},sa=[];function ca(t){return ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(t)}function ua(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function la(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ua(Object(n),!0).forEach((function(e){ha(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ha(t,e,n){return(e=da(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function da(t){var e=fa(t,"string");return"symbol"==ca(e)?e:e+""}function fa(t,e){if("object"!=ca(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ca(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var pa={name:"mapgis-3d-ogc-wfs-layer",inject:["Cesium","vueCesium","viewer"],mixins:[Ao],props:{baseUrl:{type:String,default:null},wfsVersion:{type:String,dafault:"2.0.0"},count:{type:Number,dafault:1e3},autoReset:{type:Boolean,default:!0},renderer:{type:Object,default:function(){return{}}},id:{type:String,default:""},token:{type:Object},options:{type:Object,default:function(){return{proxy:void 0,tilingScheme:void 0,rectangle:void 0,tileDiscardPolicy:void 0,tileHeight:256,tileWidth:256,enablePickFeatures:!1,minimumLevel:0,maximumLevel:20,credit:void 0}}},vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}}},data:function(){return{checkType:ha(ha({visible:"boolean",opacity:"number",zIndex:"number",tileMatrixLabels:"array",clock:"object",times:"object",dimensions:"object",tileWidth:"number",tileHeight:"number",tilingScheme:"object",rectangle:"object",minimumLevel:"number",maximumLevel:"number",credit:"object|string",subdomains:"string|array",startLevel:"number",vueKey:"string",vueIndex:"string|number"},"tilingScheme","object"),"proxy","object"),managerName:"OGCWFSManager",layerIndex:void 0,layer:void 0,layerRange:[]}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{wfsVersion:{handler:function(){this.unmount(),this.mount()}},baseUrl:{handler:function(){this.unmount(),this.mount()}},count:{handler:function(){this.unmount(),this.mount()}},autoReset:{handler:function(){this.unmount(),this.mount()}},renderer:{handler:function(t){this.mount()},deep:!0},id:{handler:function(){var t=this.vueIndex,e=this.vueKey,n=window.vueCesium[this.managerName].findSource(e,t);n.source.id=this.id}}},methods:{mount:function(){var t=this.viewer,e=(this.vueCesium,this.baseUrl),n=this.wfsVersion,r=this.count,i=this.autoReset,o=this.renderer,a=this,s={wfsVersion:n,count:r,autoReset:i,renderer:o};this.$_check();var c=JSON.parse(JSON.stringify(o));this.transformObject(c),s.renderer=c;t.scene.layers.appendFeatureLayer(e,la(la({},s),{},{getDocLayerIndexes:a.getDocLayer,loaded:function(t){var e=this;e.$emit("loaded",t)}}))},getDocLayer:function(t){var e=this,n=this.vueIndex,r=this.vueKey,i=this.vueCesium;this.url;if(t){e.layerIndex=t,e.layer=viewer.scene.layers.getLayer(e.layerIndex[0]);var o=[e.layer];o&&(i[e.managerName].addSource(r,n,o,{url:e.baseUrl,layerIndex:e.layerIndex}),e.layerRange=e.layer._layerRange),e.$emit("load",{data:e})}},transformObject:function(t){var e=this;t=t||{},Object.keys(t).forEach((function(n){"object"==ca(t[n])&&e.transformObject(t[n]),"color"==n&&(t[n]=Cesium.Color.fromCssColorString(t[n]))}))},unmount:function(){var t=this.viewer,e=this.vueCesium,n=this.vueKey,r=this.vueIndex,i=(this.layerIndex,e[this.managerName].findSource(n,r));i&&i.source&&t.scene.layers.removeAllLayers(),e[this.managerName].deleteSource(n,r),this.$emit("unload",this)}}},ma=pa,ga=je(ma,aa,sa,!1,null,null,null),Aa=ga.exports,va=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},ya=[],ba=n("3aa2"),wa={name:"mapgis-3d-ogc-wmts-layer",inject:["Cesium","viewer"],mixins:[Ao],props:{wmtsLayer:{type:String,required:!0},tileMatrixSet:{type:String|Object,default:""},wmtsStyle:{type:String,default:"default"},tilingScheme:{type:String,required:!0},format:{type:String,default:"image/png"}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",tileMatrixLabels:"array",clock:"object",times:"object",dimensions:"object",tileWidth:"number",tileHeight:"number",tilingScheme:"object",rectangle:"object",minimumLevel:"number",maximumLevel:"number",ellipsoid:"object",credit:"object|string",subdomains:"string|array",startLevel:"number",vueKey:"string",vueIndex:"number"},managerName:"OGCWMTSManager",providerName:"WebMapTileServiceImageryProvider"}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},computed:{watchList:function(){var t=this.wmtsLayer,e=this.tileMatrixSet,n=this.tilingScheme,r=this.wmtsStyle;return{wmtsLayer:t,tileMatrixSet:e,tilingScheme:n,wmtsStyle:r}}},watch:{watchList:{handler:function(t,e){if(JSON.stringify(t)!==JSON.stringify(e)){var n=this.vueIndex,r=this.vueKey,i=window.vueCesium[this.managerName].findSource(r,n);i&&(this.unmount(),this.mount())}},deep:!0}},methods:{mount:function(){var t={};if(t.style=this.wmtsStyle,this.tileMatrixSet&&this.tileMatrixSet.tileInfo){var e=this.tileMatrixSet.tileInfo,n=this.tileMatrixSet.layer.activeLayer.fullExtent,r=e.spatialReference,i=this.getCustomTilingScheme(e,r,n);t.tilingScheme=i}else this.tilingScheme&&(t.tilingScheme=this.$_setTilingScheme(this.tilingScheme));var o=this.$_checkValue(this.options,"tileMatrixLabels","");"null"===o&&"EPSG:4326"===this.tilingScheme&&this.baseUrl.indexOf("tianditu")>-1&&(t.tileMatrixLabels=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20"]),t.layer=this.wmtsLayer,t.tileMatrixSetID=this.tileMatrixSet.id?this.tileMatrixSet.id:this.tileMatrixSet,this.$_mount(t)},getCustomTilingScheme:function(t,e,n){var r=new uo["SpatialReference"]({wkid:e.wkid}),i=new uo["Point"]({coordinates:[t.origin.x,t.origin.y],spatialReference:e}),o=new uo["Extent"]({xmin:n.xmin,ymin:n.ymin,xmax:n.xmax,ymax:n.ymax}),a=new uo["TileInfo"]({dpi:t.dpi,format:t.format,origin:i,lods:t.lods,spatialReference:r,size:t.size}),s=Object(ba["getTilingScheme"])(r,o,a);return s},unmount:function(){this.$_unmount()}}},_a=wa,xa=je(_a,va,ya,!1,null,null,null),Sa=xa.exports,Ca=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},Ma=[],La={name:"mapgis-3d-ogc-wms-layer",inject:["Cesium","viewer"],mixins:[Ao],props:{layers:{type:String,required:!0},styles:{type:String,default:""},srs:{type:String},format:{type:String,default:"image/png"},transparent:{type:Boolean,default:!0},version:{type:String,default:"1.1.1"}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",parameters:"object",getFeatureInfoParameters:"object",enablePickFeatures:"boolean",getFeatureInfoFormats:"array",rectangle:"object",tilingScheme:"object",ellipsoid:"object",tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number",credit:"object|String",subdomains:"string|array",clock:"object",times:"object",proxy:"object",vueKey:"string",vueIndex:"string|number"},managerName:"OGCWMSManager",providerName:"WebMapServiceImageryProvider"}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{layers:{handler:function(){this.unmount(),this.mount()}},styles:{handler:function(){this.unmount(),this.mount()}},srs:{handler:function(){this.unmount(),this.mount()}}},methods:{mount:function(){var t=this.srs,e={};t&&(e.tilingScheme=this.$_setTilingScheme(t)),e.parameters={transparent:this.transparent,format:this.format,version:this.version,styles:this.styles},this.$_mount(e)},unmount:function(){this.$_unmount()}}},Ta=La,ka=je(Ta,Ca,Ma,!1,null,null,null),Ea=ka.exports,Oa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},Pa=[],Ba={name:"mapgis-3d-ogc-reveserwms-layer",inject:["Cesium","vueCesium","viewer"],mixins:[Ao],props:{layers:{type:String,required:!0},styles:{type:String},reversebbox:{type:Boolean,default:!0},srs:{type:String}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",parameters:"object",getFeatureInfoParameters:"object",enablePickFeatures:"boolean",getFeatureInfoFormats:"array",rectangle:"object",tilingScheme:"object",ellipsoid:"object",tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number",credit:"object|String",subdomains:"string|array",clock:"object",times:"object",proxy:"object",vueKey:"string",vueIndex:"string|number"},managerName:"OGCWMSManager"}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{layers:{handler:function(){this.unmount(),this.mount()}},styles:{handler:function(){this.unmount(),this.mount()}},srs:{handler:function(){this.unmount(),this.mount()}}},methods:{mount:function(){var t=this.srs,e=this.vueCesium,n={};t&&(n.tilingScheme=this.$_setTilingScheme(t)),this.$_mount(n,e.Provider.WebReverseMapServiceImageryProvider)},unmount:function(){this.$_unmount()}}},Ia=Ba,Da=je(Ia,Oa,Pa,!1,null,null,null),Na=Da.exports,Fa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},ja=[],Ra={name:"mapgis-3d-igs-dynamic-layer",mixins:[Ao],props:{gdbps:{type:[Array,String],require:!0}},data:function(){return{managerName:"IgsserverManager",providerName:"MapGISMapServerImageryProvider",checkType:{tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number"}}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{gdbps:{handler:function(){this.unmount(),this.mount()}}},methods:{initUrl:function(t){var e;if(this.baseUrl)e=this.baseUrl;else if(this.domain)e=this.domain+t;else{if(!this.ip||!this.port)throw new Error("请输入url地址信息");e=this.protocol+this.ip+":"+this.port+t}return e},mount:function(){var t=this.initUrl("/igs/rest/mrms/layers"),e=this.gdbps;"string"===typeof e&&(e=e.split(",")),this.$_mount({baseUrl:t,gdbps:e})},unmount:function(){this.$_unmount()}}},Ha=Ra,za=je(Ha,Fa,ja,!1,null,null,null),Ua=za.exports,Va=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},Ya=[],Ga={name:"mapgis-3d-igs-vector-layer",mixins:[Ao],props:{gdbps:{type:[Array,String],require:!0}},data:function(){return{managerName:"IgsserverManager",providerName:"MapGISMapServerImageryProvider",checkType:{tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number"}}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{"layerStyle.visible":function(t){this.showOrHideModel(t)}},methods:{mount:function(){var t=this.gdbps,e=this.baseUrl.split("?")[0],n="".concat(e,"?gdbpUrl=").concat(t,"&geometry=&oids=&sRef=WGS1984_度&modelDataFormat=");this.fetchModel(n)},unmount:function(){this.model&&viewer.scene.primitives.remove(this.model),this.model=null},showOrHideModel:function(t){this.model.show=t},fetchModel:function(t){var e=this;fetch(t).then((function(t){return e.xPosition=t.headers.get("X-Gis-Position"),t.arrayBuffer()})).then((function(t){e.createModel(t)}))},createModel:function(t){var e=this.xPosition.split(","),n=this.viewer,r=Cesium.Cartesian3.fromDegrees(Number(e[0]),Number(e[1]),Number(e[2])),i=Cesium.defaultValue(Cesium.Math.toRadians(90),0),o=Cesium.defaultValue(Cesium.Math.toRadians(0),0),a=Cesium.defaultValue(0,0),s=Cesium.Transforms.headingPitchRollToFixedFrame(r,new Cesium.HeadingPitchRoll(i,o,a)),c={modelMatrix:s,gltf:t,id:this.gdbps[0]};this.model=n.scene.primitives.add(new Cesium.Model(c))}}},Qa=Ga,Wa=je(Qa,Va,Ya,!1,null,null,null),Ka=Wa.exports,qa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-popup-default-wrapper"},[t.popVisiable?n("div",[n("Popup",{attrs:{position:t.iClickPosition,visible:t.iClickVisible,forceRender:t.forceRender}},[n("mapgis-ui-popup-content",{attrs:{feature:t.gemotryAttribute[0],popupOptions:t.popupOptions}})],1)],1):t._e()])},Xa=[],$a=n("cd3f"),Ja=n.n($a);function Za(t){return Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(t)}function ts(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function es(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ts(Object(n),!0).forEach((function(e){ns(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ns(t,e,n){return(e=rs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rs(t){var e=is(t,"string");return"symbol"==Za(e)?e:e+""}function is(t,e){if("object"!=Za(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Za(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var as={inject:["Cesium","vueCesium","viewer"],props:es(es({},ln),{},{properties:{type:Object},enablePopup:{type:Boolean,default:!1},enableModelSwitch:{type:Boolean,default:!1},enableTips:{type:Boolean,default:!1},enableIot:{type:Boolean,default:!1},popupOptions:{type:Object,default:function(){return{type:"default",title:"name",popupType:"table",fullHeight:900}}},tipsOptions:{type:Object,default:function(){return{type:"default",title:"name"}}},iotOptions:{type:Object,default:function(){return{field:"Euid"}}},customPopup:Function,customTips:Function,clickVisible:{type:Boolean,default:!1},hoverVisible:{type:Boolean,default:!1},clickPosition:{type:Object,default:function(){return{longitude:0,latitude:0,height:0}}},hoverPosition:{type:Object,default:function(){return{longitude:0,latitude:0,height:0}}},clickFeatures:{type:Array,default:function(){return[]}},hoverFeatures:{type:Array,default:function(){return[]}},clickMode:{type:String,default:"click"},hoverMode:{type:String,default:"hover"},popupConfig:{type:Object,default:function(){return{}}},showPopup:{type:Boolean,default:!0}}),data:function(){return{iPinMap:!0,activeId:void 0,iClickVisible:!1,iClickPosition:{longitude:110,latitude:30,height:0},iHoverVisible:!1,iHoverPosition:{longitude:110,latitude:30,height:0},iClickFeatures:[],iHoverFeatures:[],iClickMode:"click",iHoverMode:"hover"}},watch:{clickVisible:function(t){this.iClickVisible=t},clickPosition:function(t){this.iClickPosition=t},hoverVisible:function(t){this.iHoverPosition=t},hoverPosition:function(t){this.iHoverPosition=t},clickFeatures:function(t){this.iClickFeatures=t},hoverFeatures:function(t){this.iHoverFeatures=t}},computed:{popupComponent:function(){var t;return(null===(t=this.popupConfig)||void 0===t?void 0:t.component)||"mapgis-3d-popup-iot"},popupWidth:function(){var t;return(null===(t=this.popupConfig)||void 0===t?void 0:t.componentWidth)||260}},methods:{$_pickEvent:function(t,e,n,r,i,o){var a=this,s=this.Cesium,c=this.viewer,u=this.popupOptions,l=this.iClickMode,h=(this.iHoverMode,c.scene),d=new s.Ray,f=new s.Cartesian3;if(t&&h.mode!==s.SceneMode.MORPHING){var p,m,g,A,v,y,b=t.position||t.endPosition,w=c.getCartesian3Position(b),_=h.camera.getPickRay(b,d),x=h.globe.pick(_,h,f);if(i&&(p=c.scene.pick(b),!p))return void(r&&r({movement:t}));if(o&&(m=h.drillPick(b),m.length<=0))return e==l?a.iClickVisible=!1:a.iHoverVisible=!1,void(r&&r({movement:t}));if(s.defined(w)){var S=s.Cartographic.fromCartesian(w);g=s.Math.toDegrees(S.longitude),A=s.Math.toDegrees(S.latitude),v=S.height}if(w||x)e==l?(a.iClickVisible=!0,a.iClickPosition={longitude:g,latitude:A,height:v}):(a.iHoverVisible=!0,a.iHoverPosition={longitude:g,latitude:A,height:v}),o&&(y=m.map((function(t){var e={layer:{id:t.id?t.id.id:"未知数据"},properties:{}};if(a.activeId=t.id?t.id.id:void 0,t.id&&t.id.properties){Object.keys(t.id.properties).filter((function(t){var e=t.indexOf("Subscription")<=0&&!["_propertyNames","_definitionChanged"].find((function(e){return e==t}));return e})).forEach((function(n){var r=n.substr(1);e.properties[r]=t.id.properties[n]._value})),e.layer.id=a.layerId||e.properties["name"]||e.properties["title"];var n=u?u.title:void 0;n&&(e.title=e.properties[n])}return e})),a.iClickFeatures=y),n&&n({entities:m,movement:t,iClickFeatures:y,pickedFeature:p});else e==l?a.iClickVisible=!1:a.iHoverVisible=!1,r&&r()}},$_bindClickEvent:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=this,o=this.Cesium,a=this.viewer,s=this.iClickMode,c=new o.ScreenSpaceEventHandler(a.scene.canvas);return c.setInputAction((function(o){i.$_pickEvent(o,s,t,e,n,r)}),o.ScreenSpaceEventType.LEFT_CLICK),c},$_bindHoverEvent:function(t,e){var n=this,r=this.Cesium,i=this.viewer,o=this.iHoverMode,a=Me()((function(r){n.$_pickEvent(r,o,t,e)}),100,{leading:!0}),s=new r.ScreenSpaceEventHandler(i.scene.canvas);return s.setInputAction(a,r.ScreenSpaceEventType.MOUSE_MOVE),s},$_changeVisible:function(t){},$_separateMap:function(){this.iPinMap=!1},$_pinMap:function(){this.iPinMap=!0},$_onPinMap:function(){this.iPinMap=!0},$_onFlyTo:function(){},$_getProjectorStatus:function(){},$_handleProjectScreen:function(){}}},ss=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"none"}},[t._t("default")],2)},cs=[],us={vueKey:{typs:String,default:"default"},vueIndex:{typs:[String,Number],default:function(){return(1e8*Math.random()).toFixed(0)}},position:{type:Object,required:!0},options:{type:Object,default:function(){return{postRender:!0}}},container:{type:String,default:"<div>空</div>"},visible:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},forceRender:{type:Boolean,default:!1}};function ls(t,e,n,r,i){if(e){var o,a,s,c=t.scene,u=t.camera,l=u.computeViewRectangle(),h=i.Cesium||window["Cesium"],d=h.Math.toDegrees(l.south),f=h.Math.toDegrees(l.north),p=h.Math.toDegrees(l.east),m=h.Math.toDegrees(l.west);if(i&&i.longitude&&i.latitude){if(a=i.position.longitude,s=i.position.latitude,a<m||a>p||s>f||s<d)return void(C.style.display="none")}else o=h.Ellipsoid.WGS84.cartesianToCartographic(e),a=h.Math.toDegrees(o.longitude),s=h.Math.toDegrees(o.latitude);var g=h.Cartesian3.fromDegrees(m,d),A=h.Cartesian3.fromDegrees(p,f),v=h.SceneTransforms.wgs84ToWindowCoordinates(c,g),y=h.SceneTransforms.wgs84ToWindowCoordinates(c,A),b=h.SceneTransforms.wgs84ToWindowCoordinates(c,e);if(b){var w=!1,_=e,x=u.position,S=c.globe.ellipsoid.cartesianToCartographic(x).height;S+=1*c.globe.ellipsoid.maximumRadius,h.Cartesian3.distance(x,_)>S||(w=!0),v&&y&&(b.x<v.x||b.x>y.x||b.y>v.y||b.y<y.y)&&(w=!1),c.globe.ellipsoid.cartesianToCartographic(x).height&&(w=!0);var C=window.document.getElementById(n);if(C)if(w){C.style.display="block";var M=window.document.getElementById(r),L=document.getElementById(r).offsetWidth,T=document.getElementById(r).offsetHeight;M.style.left=b.x-L/2+"px",M.style.top=b.y-(T-10)+"px"}else C.style.display="none"}}}function hs(t){return hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(t)}function ds(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ms(r.key),r)}}function ps(t,e,n){return e&&fs(t.prototype,e),n&&fs(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ms(t){var e=gs(t,"string");return"symbol"==hs(e)?e:e+""}function gs(t,e){if("object"!=hs(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=hs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var As=0,vs=function(){function t(e,n,r,i,o,a,s){var c=this;if(ds(this,t),this.map=e,this.scene=e.scene,this.position=n,this.options=r,this.container=i,this.popupWapperStyle=o,this.popupHeaderStyle=a,this.popupCloseBtnStyle=s,this.popupId=r.popupId||"cesium-popup-id-"+As++,this.popupClass=r.popupClass||"cesium-popup",this.popupTitle=r.title,this.popupContentId=r.popupContentId||"cesium-popup-content-id-"+As++,this.options.postRender=void 0===this.options.postRender||this.options.postRender,this.Cesium=r.Cesium||window["Cesium"],this.scene=e.scene,this.camera=e.camera,this.isShow=!0,r.callback){var u=r.callback,l=u.onShow,h=u.onHide,d=u.onSeparate;this.onShow=l,this.onHide=h,this.onSeparate=d}var f=this.Cesium.ScreenSpaceEventHandler||window["Cesium"].ScreenSpaceEventHandler;this.handler=new f(this.scene.canvas),this.infoDiv=null,n.entity&&(this.cartesian=n.entity.position._value),this.cartesian=this.cartesian||this.position.cartesian||this.Cesium.Cartesian3.fromDegrees(this.position.longitude,this.position.latitude,this.position.height);var p=this.map.container,m=void 0;if(p.children&&p.children.length>0&&p.children[0].children&&p.children[0].children.length>0&&p.children[0].children[0].children&&p.children[0].children[0].children.length>0&&(m=p.children[0].children[0].children[0]),m)this.parent=m;else{var g=document.getElementsByClassName("cesium-widget");parent=g.length>0?g[0]:e.container,this.parent=parent}return this.showClose=void 0===r.showClose||r.showClose,this.popupType=r.popupType,this.images=r.images,this.description=r.description,this.popup=this._createPopup(),this.moveStart=this.eventMoveStart.bind(this),this.moveEnd=this.eventMoveEnd.bind(this),this.movement=this.movement.bind(this),this.update=this.update.bind(this),this.updateEvent=function(){return c.update()},this.bindEvent(),this}return ps(t,[{key:"_createPopup",value:function(){var t=this,e=this;this.hide=this.hide.bind(this);var n=window.document.createElement("div");if(n.id=this.popupId,n.style.display="none","string"===typeof this.container){n.innerHTML='<div id="'+this.popupContentId+'" class="cesium-popup"><div class="cesium-popup-content-wrapper">'+this.container+'</div><div class="cesium-popup-tip-container"><div class="cesium-popup-tip" /></div></div>';var r=window.document.getElementById(this.popupContentId),i=window.document.createElement("div");i.className="cesium-popup-close-button",i.addEventListener("click",(function(){return e.hide()})),i.innerText="x",this.popupCloseBtnStyle&&Object.keys(this.popupCloseBtnStyle).forEach((function(e){i.style[e]=t.popupCloseBtnStyle[e]})),this.parent.appendChild(n);var o=window.document.getElementsByClassName("cesium-popup-content-wrapper");this.popupWapperStyle&&Object.keys(this.popupWapperStyle).forEach((function(e){o[0].style[e]=t.popupWapperStyle[e]}));var a=window.document.createElement("div");a.className="cesium-popup-separate-button",a.addEventListener("click",(function(){return e.separate()}));var s='<svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#mapgis-Matchsizeup"></use></svg>';if(a.innerHTML=s,"table"==this.popupType||"card"==this.popupType||"rich-text"==this.popupType&&r&&r.appendChild(a),this.showClose){var c=window.document.getElementById(this.popupContentId);c&&c.appendChild(i)}this.infoDiv=n}else{var u=window.document.createElement("div");u.id=this.popupContentId,u.className="cesium-popup";var l=window.document.createElement("div");l.className="cesium-popup-content-header";var h=window.document.createElement("div");h.className="cesium-popup-content-header-title",h.innerText=this.popupTitle||"",this.popupHeaderStyle&&Object.keys(this.popupHeaderStyle).forEach((function(e){h.style[e]=t.popupHeaderStyle[e]}));var d=window.document.createElement("div");d.className="cesium-popup-content-header-extra",l.appendChild(h),l.appendChild(d);var f=window.document.createElement("div");f.className="cesium-popup-close-button",f.addEventListener("click",(function(){return e.hide()}));var p='<svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#mapgis-close"></use></svg>';f.innerHTML=p,this.popupCloseBtnStyle&&Object.keys(this.popupCloseBtnStyle).forEach((function(e){f.style[e]=t.popupCloseBtnStyle[e]}));var m=window.document.createElement("div");m.className="cesium-popup-separate-button",m.addEventListener("click",(function(){return e.separate()}));var g='<svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#mapgis-Matchsizeup"></use></svg>';m.innerHTML=g,"table"==this.popupType||"card"==this.popupType||"rich-text"==this.popupType&&d.appendChild(m),this.showClose&&d.appendChild(f);var A=window.document.createElement("div");A.className="cesium-popup-content-wrapper",this.popupWapperStyle&&Object.keys(this.popupWapperStyle).forEach((function(e){A.style[e]=t.popupWapperStyle[e]})),A.appendChild(l),A.appendChild(this.container),u.appendChild(A);var v=window.document.createElement("div");v.className="cesium-popup-tip-container";var y=window.document.createElement("div");y.className="cesium-popup-tip",v.appendChild(y),u.appendChild(v),n.appendChild(u),this.infoDiv=n,this.parent.appendChild(n)}}},{key:"bindEvent",value:function(){var t=this;this.handler.setInputAction(this.movement,this.Cesium.ScreenSpaceEventType.LEFT_CLICK),this.map&&(this.options.postRender?this.map.scene.postRender.addEventListener(t.updateEvent):(this.map.camera.changed.addEventListener(t.updateEvent),this.handler.setInputAction(this.moveStart,this.Cesium.ScreenSpaceEventType.LEFT_DOWN),this.handler.setInputAction(this.moveEnd,this.Cesium.ScreenSpaceEventType.LEFT_UP),this.map.scene.camera.moveEnd.addEventListener(t.updateEvent)))}},{key:"unbindEvent",value:function(){var t=this;this.map&&(this.options.postRender?(this.map.scene.postRender.removeEventListener(t.updateEvent),this.handler.destroy()):(this.map.camera.changed.removeEventListener(t.updateEvent),this.map.scene.camera.moveEnd.removeEventListener(t.updateEvent),this.handler.destroy()))}},{key:"movement",value:function(t){var e=this.map.scene.pick(t.position),n=this.Cesium.defined(e)?e.id:void 0;this.Cesium.defined(n)&&this.position&&this.position.entity&&(e.id,this.position.entity.id,this.show())}},{key:"eventMoveStart",value:function(t){this.hide()}},{key:"eventMoveEnd",value:function(){this.update()}},{key:"update",value:function(){this.cartesian&&this.isShow&&ls(this.map,this.cartesian,this.popupId,this.popupContentId,this.options)}},{key:"show",value:function(){this.isShow=!0,this.onShow&&this.onShow(this.isShow,this.popupId);var t=window.document.getElementById(this.popupId);t&&t.style&&(t.style.display="block")}},{key:"hide",value:function(){this.isShow=!1,this.onHide&&this.onHide(this.isShow);var t=window.document.getElementById(this.popupId);t&&t.style&&(t.style.display="none")}},{key:"separate",value:function(){this.hide(),this.onSeparate&&this.onSeparate()}},{key:"remove",value:function(){this.unbindEvent();var t=window.document.getElementById(this.popupId);return t&&(t.parentNode?t.parentNode.removeChild(t):t.remove()),this}}])}();function ys(t){return ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(t)}function bs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ws(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bs(Object(n),!0).forEach((function(e){_s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _s(t,e,n){return(e=xs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xs(t){var e=Ss(t,"string");return"symbol"==ys(e)?e:e+""}function Ss(t,e){if("object"!=ys(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ys(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Cs={name:"mapgis-3d-popup",props:ws(ws({},us),{},{popupWapperStyle:{type:Object},popupHeaderStyle:{type:Object},popupCloseBtnStyle:{type:Object}}),model:{prop:"visible",event:"change"},data:function(){return{longitude:0,latitude:0,height:0,show:!0,isPopupOptionsChange:!1,slotInnerHTML:""}},inject:["Cesium","vueCesium","viewer"],watch:{position:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}},visible:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}},show:{deep:!0,handler:function(){this.update()}},options:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}},popupWapperStyle:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}},popupHeaderStyle:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}},popupCloseBtnStyle:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}}},updated:function(){this.forceRender&&this.update()},mounted:function(){this.update()},destroyed:function(){this.unmount()},methods:{togglePopup:function(){var t=!this.show;this.show=t},getViewer:function(){var t=this.viewer,e=this.vueKey,n=this.vueCesium;n=n||window.vueCesium;var r=t||n.getViewer(e);return r},createCesiumObject:function(){var t=this,e=this.Cesium,n=this.vueCesium,r=this.position,i=this.options,o=this.container,a=this.popupWapperStyle,s=this.popupCloseBtnStyle,c=this.popupHeaderStyle;n=n||window.vueCesium,this.$slots.default&&(this.$slots.default[0].elm?(o=this.$slots.default[0].elm||this.$slots.default[0].elm.innerHTML,this.slotInnerHTML=o):this.isPopupOptionsChange?o=this.slotInnerHTML:this.$slots.default[0].context.$children[0].$el&&(o=this.$slots.default[0].context.$children[0].$el.innerHTML)),i=ws(ws({},i),{},{Cesium:e,callback:{onShow:function(e,n){t.$emit("change",e,n)},onHide:function(){t.$emit("change",!1,t.vueIndex),t.destroyOnClose},onSeparate:function(e){t.$emit("separate",e)}}});var u=this.getViewer();return new vs(u,r,i,o,a,c,s)},mount:function(){var t,e=this.viewer,n=this.vueKey,r=this.vueIndex,i=this.vueCesium;i=i||window.vueCesium,e=e||this.getViewer();var o=i.PopupManager.findSource(n,r);return o&&(t=o.source),!e.isDestroyed()&&t&&t.show()},unmount:function(){var t,e=this.viewer,n=this.vueKey,r=this.vueIndex,i=this.vueCesium;e=e||this.getViewer(),i=i||window.vueCesium;var o=i.PopupManager.findSource(n,r);return o&&(t=o.source),t&&(t.remove(),t=void 0),!e.isDestroyed()},update:function(){var t,e=this.vueCesium,n=this.vueIndex,r=this.vueKey;e=e||window.vueCesium;var i=e.PopupManager.findSource(r,n);i&&(t=i.source),t&&t.remove&&(t.remove(),t=void 0,e.PopupManager.deleteSource(r,n)),this.visible&&this.show&&(t=this.createCesiumObject(),this.$emit("load",{popup:t}),r&&(n||0===n)&&e.PopupManager.addSource(r,n,t),this.mount())},removeAll:function(){var t=window.vueCesium.PopupManager.findAllSource();t.forEach((function(t){var e=t.source;e&&e.remove()}))}}},Ms=Cs,Ls=je(Ms,ss,cs,!1,null,null,null),Ts=Ls.exports,ks=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"click"===t.mode?n("div",{staticClass:"mapgis-popup-container"},[t.currentLayerInfo&&t.currentLayerInfo.length>0?n("div",[t.currentLayerInfo[0].title?n("div",{staticClass:"mapgis-popup-title"},[t._v("\n "+t._s(t.currentLayerInfo[0].title)+"\n ")]):t._e(),n("div",{staticClass:"mapgis-popup-row-container"},t._l(t.currentLayerInfo[0].properties,(function(e,r){return n("div",{key:r,staticClass:"mapgis-popup-row"},[n("span",{staticClass:"mapgis-popup-item mapgis-popup-field"},[t._v(t._s(r))]),n("span",{staticClass:"mapgis-popup-item mapgis-popup-value"},[t._v(t._s(e))])])})),0)]):t._e()]):n("div",[t.currentLayerInfo&&t.currentLayerInfo.length>0?n("div",[t.currentLayerInfo[0].title?n("div",[t._v("\n "+t._s(t.currentLayerInfo[0].title)+"\n ")]):t._e(),t._l(t.currentLayerInfo[0].properties,(function(e,r){return n("div",{key:r,staticClass:"mapgis-popup-row"},[n("div",{staticClass:"mapgis-3d-inspect-prop-key"},[n("span",{staticStyle:{"padding-right":"5px"}},[t._v(t._s(r))])]),n("div",[t._v(t._s(e))])])}))],2):t._e()])},Es=[],Os={name:"mapgis-3d-geojson-popup",inject:["Cesium","vueCesium"],props:{outStyle:{type:Object,default:function(){return{height:"120px",width:"240px"}}},mode:{type:String,default:"click"},currentLayerInfo:{type:Array,default:function(){return[]}}}},Ps=Os,Bs=(n("e675"),je(Ps,ks,Es,!1,null,"8b918720",null)),Is=Bs.exports;function Ds(t){return Ds="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ds(t)}function Ns(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ns(Object(n),!0).forEach((function(e){js(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function js(t,e,n){return(e=Rs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rs(t){var e=Hs(t,"string");return"symbol"==Ds(e)?e:e+""}function Hs(t,e){if("object"!=Ds(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ds(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var zs={name:"mapgis-3d-virtual-popup",inject:["Cesium","vueCesium","viewer"],props:Fs({},ln),mixins:[as],data:function(){return{}},components:{Popup:Ts,PopupContent:Is},render:function(t){var e=this.enablePopup,n=this.enableTips,r=this.enableIot,i=this.properties,o=(this.custom,this.componentWidth),a=this.popupOptions,s=(this.tipsOptions,this.iotOptions,this.customPopup),c=this.customTips,u=this.iClickVisible,l=this.iClickPosition,h=this.iHoverVisible,d=this.iHoverPosition,f=this.iClickMode,p=this.iHoverMode,m=this.iClickFeatures,g=this.iHoverFeatures,A=this.iPinMap,v=a.title,y=void 0===v?"name":v,b=a.type,w=void 0===b?"default":b,_=(a.enableSeparate,a.popupType),x=void 0===_?"table":_,S=a.fullHeight,C=void 0===S?600:S,M=i?{properties:i}:m&&m.length>0?m[0]:{properties:{}},L=[],T="补充一段说明文字,默认字段description",k=Fs(Fs({},a),{},{type:w,popupType:x,images:L,description:T,title:y?M.properties[y]:"标题"});if(!A){m.forEach((function(t){t.images=M.properties.images||L,t.content=M.properties.description||T}));var E=M?[M.properties]:m;return t("mapgis-ui-story-panel-large",{on:{closePanel:this.$_onPinMap.bind(this),flyTo:this.$_onFlyTo.bind(this)},attrs:{dataSource:E,height:C}})}var O=this.$slots.default;return delete a.title,s||c?t(Ts,{attrs:{position:l,visible:u,forceRender:!0}},[t("div",{ref:"click"},[s&&s(m),!s&&t(Is,{attrs:{mode:f,currentLayerInfo:m}})]),t("div",{ref:"hover"},[c&&c(g),!c&&t(Is,{attrs:{mode:p,currentLayerInfo:g}})])]):t("div",{class:"mapgis-popup-default-wrapper"},r?[t("mapgis-3d-feature-popup",{attrs:{position:l,popupOptions:a,visible:u}},[t("mapgis-3d-popup-iot",{attrs:{properties:M.properties,getProjectorStatus:this.$_getProjectorStatus.bind(this),projectScreen:this.$_handleProjectScreen.bind(this)}})])]:[e&&t(Ts,{attrs:{position:l,visible:u,forceRender:!0,options:k},on:{change:this.$_changeVisible.bind(this),separate:this.$_separateMap.bind(this)}},[t("mapgis-ui-popup-content",{attrs:{feature:M,popupOptions:a,width:o}},[O])]),n&&t(Ts,{attrs:{position:d,visible:h,forceRender:!0}},[t("mapgis-ui-card",[t("span",[M.properties.title||M.properties[y]])])])])},methods:{}},Us={mixins:[zs],inject:["Cesium","vueCesium","viewer"],components:{Popup:Ts,PopupContent:Is},props:{vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}},layerId:{type:String,default:"theme"},autoReset:{type:Boolean,default:!0},enableClick:{type:Boolean,default:!1},enableHover:{type:Boolean,default:!1},enableQuery:{type:Boolean,default:!1},highlightSymbol:{type:Object,default:function(){return{}}},queryInfo:{type:Object,default:function(){return{}}},visible:{type:Boolean,default:!0}},data:function(){return{gemotryAttribute:void 0,popVisiable:!1,forceRender:!0,visiblePop:!0,checkTypeResult:0,otherQueryDataArr:[]}},watch:{gemotryAttribute:{handler:function(t){t&&(this.popVisiable=!0)}},enableQuery:{handler:function(t){this.findDataSource(this.layerType);t?this.queryPrimitive():this.clearQuery()}},queryInfo:{handler:function(t){this.enableQuery&&(this.clearQuery(),this.queryPrimitive())},deep:!0}},methods:{findDataSource:function(t){var e,n=this.vueKey,r=this.vueIndex,i=this.vueCesium;switch(t=t||this.layerType,t){case"feature":e=i.IgsFeatureManager.findSource(n,r);break;case"geojson":e=i.GeojsonManager.findSource(n,r);break}return e},queryPrimitive:function(){this.viewer,this.vueCesium,this.vueKey,this.vueIndex;var t=this.queryInfo,e=this.renderer;if(void 0!=t){var n=t.field,r=t.type,i=t.minValue,o=t.maxValue,a=t.value,s=n||e.field,c=this.findDataSource(),u=c.source[0]._primitivesArr;switch(r){case"range":this.queryPrimitiveByRange(u,s,i,o);break;case"value":this.queryPrimitiveByValue(u,s,a);break;default:this.queryPrimitiveByValue(u,s,a);break}}},queryPrimitiveByRange:function(t,e,n,r){for(var i=0;i<t.length;i++)for(var o=t[i].primitive,a=0;a<o.geometryInstances.length;a++){var s=o.geometryInstances[a],c=s.id,u=o.getGeometryInstanceAttributes(c),l={color:u.color,show:u.show},h={queryPrimitive:o,id:c,attributes:u,beforeAttr:l};s.extendAttr[e]>=n&&s.extendAttr[e]<r?this.tempQueryDataArr.push(h):this.otherQueryDataArr.push(h)}this.setQuery()},queryPrimitiveByValue:function(t,e,n){for(var r=0;r<t.length;r++)for(var i=t[r].primitive,o=0;o<i.geometryInstances.length;o++){var a=i.geometryInstances[o];if(a.extendAttr[e]==n){var s=a.id,c=i.getGeometryInstanceAttributes(s),u={color:c.color,show:c.show},l={queryPrimitive:i,id:s,attributes:c,beforeAttr:u};this.tempQueryDataArr.push(l)}}this.setQuery()},setQuery:function(){var t=this.tempQueryDataArr,e=this.queryInfo,n=(e.minValue,e.maxValue,e.symbol),r=e.show;if(n){var i=JSON.parse(JSON.stringify(n.symbolLayers));this.transformObject(i);for(var o=0;o<t.length;o++){var a=t[o],s=(a.queryPrimitive,a.id,a.attributes);s.color=new Cesium.ColorGeometryInstanceAttribute.toValue(i.material.color)}}else for(var c=0;c<t.length;c++){var u=t[c],l=(u.queryPrimitive,u.id,u.attributes);l.show=new Cesium.ShowGeometryInstanceAttribute.toValue(r)}},clearQuery:function(){for(var t=0;t<this.tempQueryDataArr.length;t++){var e=this.tempQueryDataArr[t],n=(e.queryPrimitive,e.id,e.attributes),r=e.beforeAttr;n.color=r.color,n.show=r.show}this.tempQueryDataArr=[],this.otherQueryDataArr=[]},changeVisible:function(){this.viewer,this.vueCesium,this.vueKey,this.vueIndex;for(var t=this.visible,e=this.findDataSource(),n=e.source[0]._primitivesArr,r=0;r<n.length;r++)for(var i=n[r].primitive,o=n[r].outlinePrimitive,a=0;a<i.geometryInstances.length;a++){var s=i.geometryInstances[a].id,c=i.getGeometryInstanceAttributes(s);if(c.show=new Cesium.ShowGeometryInstanceAttribute.toValue(t),o){var u=o.geometryInstances[a].id,l=o.getGeometryInstanceAttributes(u);l.show=new Cesium.ShowGeometryInstanceAttribute.toValue(t)}}},checkType:function(){if("{}"!==JSON.stringify(this.renderer)){var t=this.renderer.symbol||this.renderer.defaultSymbol;if(t){var e=t.symbolLayers;e.resource?e.resource.herf?this.checkTypeResult=1:(e.resource.primitive="billboard")?this.checkTypeResult=2:this.checkTypeResult=0:this.checkTypeResult=0}}},clickHighlight:function(t){this.highlight(t)},hoverHighlight:function(t){this.highlight(t)},highlight:function(t){this.clearHighlight();var e=JSON.parse(JSON.stringify(this.highlightSymbol.symbolLayers));this.transformObject(e);t.entities,t.iClickFeatures,t.movement;var n=t.pickedFeature,r=n.id,i=n.primitive;if(1==this.checkTypeResult||2==this.checkTypeResult){this.gemotryAttribute=[{layer:{id:"矢量图层"},properties:i.extendAttr}];var o={color:n.primitive._color};return i._color=e.material.color,void(this.tempHighlightData={pickedFeature:n,oldPickedFeature:o})}for(var a=i.geometryInstances,s=0;s<a.length;s++)if(a[s].id===r){var c=a[s].extendAttr;this.gemotryAttribute=[{layer:{id:"矢量图层"},properties:c}];var u=i.getGeometryInstanceAttributes(r),l={color:u.color,show:u.show};this.tempHighlightData={pickedFeature:n,attributes:l,pickExtendAttr:c},u.color=new Cesium.ColorGeometryInstanceAttribute.toValue(e.material.color),u.show=new Cesium.ShowGeometryInstanceAttribute.toValue(!0)}},clearHighlight:function(){if(this.tempHighlightData){switch(this.checkTypeResult){case 0:var t=this.tempHighlightData,e=t.pickedFeature,n=t.attributes,r=e.id,i=e.primitive,o=i.getGeometryInstanceAttributes(r);o.color=n.color,o.show=n.show;break;case 1:var a=this.tempHighlightData,s=a.pickedFeature,c=a.oldPickedFeature;s.primitive._color=c.color;break;case 2:var u=this.tempHighlightData,l=u.pickedFeature,h=u.oldPickedFeature;l.primitive._color=h.color;break}!this.enableQuery&&this.tempQueryDataArr&&0==this.tempQueryDataArr.length&&this.clearQuery()}}}};function Vs(t){return Vs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(t)}function Ys(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ys=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Vs(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Vs(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Gs(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Qs(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Gs(o,r,i,a,s,"next",t)}function s(t){Gs(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Ws=uo["Zondy"].Renderer,Ks=uo["Zondy"].Symbol,qs=(uo["Zondy"].Color,Ws.SimpleRenderer),Xs=Ks.SimpleMarkerSymbol,$s=Ks.SimpleLineSymbol,Js=Ks.SimpleFillSymbol,Zs={props:{opacity:{type:Number,default:1},visible:{type:Boolean,default:!0},renderer:{type:Object,default:function(){}}},watch:{opacity:function(t){this.innerLayer&&this.innerLayer.setOpacity(t)},visible:function(t){this.innerLayer&&this.innerLayer.setVisible(t)},renderer:function(t,e){this.innerLayer&&JSON.stringify(t)!==JSON.stringify(e)&&this.reloadLayer()}},methods:{getCesiumInnerGraphicsLayer:function(t){var e=new ba["CesiumInnerGraphicsLayer"](t);return e.addPrimitives(),e},queryFeaturesInLayers:function(){var t=Qs(Ys().mark((function t(e,n){var r,i,o;return Ys().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=new uo["FeatureServer"]({url:n}),t.next=3,r.queryFeaturesInLayers({gdbp:e,pageCount:1e5});case 3:return i=t.sent,o=i.data.featureSet,this.featureSet=o.toJSON(),t.abrupt("return",o.features);case 7:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),featureSetApplyRenderer:function(t,e){uo["RendererUtil"].updateRenderer(t,e)},transfromRenderer:function(t){return t.type?uo["BaseRenderer"].fromJSON(t):null},isTextSymbol:function(t){var e,n;switch(t.type){case"simple":n=null===t||void 0===t||null===(e=t.symbol)||void 0===e?void 0:e.type;break;case"class-breaks":break;case"unique-value":break;default:break}return"text"===n},getTextSymbolField:function(t){var e=t.symbol.text;return e},constructFeatureSet:function(t){var e=[];t.forEach((function(t){try{var n=new uo["Feature"]({attributes:t.properties,geometry:uo["Geometry"].fromJSON(t.geometry)});e.push(n)}catch(r){console.log(t)}}));var n=new uo["FeatureSet"]({features:e});return this.featureSet=n.toJSON(),e},getSimplePointRenderer:function(t){return new qs({symbol:new Xs({color:t.color,size:t.radius,outline:new $s({color:t.outlineColor,width:t.outlineWidth})})})},getSimpleLineRenderer:function(t){return new qs({symbol:new $s({color:t.color,width:t.width})})},getSimplePolygonRenderer:function(t){return new qs({symbol:new Js({color:t.color,outline:new $s({color:t.outlineColor,width:t.lineWidth||t.outlineWidth})})})},getRenderer:function(t,e){var n;switch(t){case"Point":case"MultiPoint":n=this.getSimplePointRenderer(e);break;case"LineString":case"MultiLineString":n=this.getSimpleLineRenderer(e);break;case"Polygon":case"MultiPolygon":n=this.getSimplePolygonRenderer(e);break;default:break}return n},addLayer:function(t,e,n){var r=this,i=this.opacity,o=this.visible;if(this.innerLayer||(this.innerLayer=this.getCesiumInnerGraphicsLayer({viewer:t,elevationInfo:new uo["ElevationInfo"]({mode:uo["ElevationMode"].OnTheGround})})),this.isTextSymbol(e)){var a=JSON.parse(JSON.stringify(e)),s=a.symbol.text;n.forEach((function(t){var e=t.attributes||{};a.symbol.text=e[s];var n=r.transfromRenderer(a);t.symbol=n.symbol,r.innerLayer.add(t)}))}else{var c=this.transfromRenderer(e);this.featureSetApplyRenderer(n,c),n.forEach((function(t){r.innerLayer.add(t)}))}this.innerLayer.setOpacity(i),this.innerLayer.setVisible(o)},reloadLayer:function(){var t=this,e=this.renderer,n=this.opacity,r=this.visible,i=uo["FeatureSet"].fromJSON(this.featureSet).features,o=[],a=this.isTextSymbol(e);if(a){this.innerLayer.removeAll();var s=JSON.parse(JSON.stringify(e)),c=s.symbol.text;i.forEach((function(t){var e=t.attributes||{};s.symbol.text=e[c],t.symbol=s.symbol,o.push(uo["Feature"].fromJSON(t))}))}else i.forEach((function(t){o.push(uo["Feature"].fromJSON(t))})),this.featureSetApplyRenderer(o,uo["BaseRenderer"].fromJSON(e));o.forEach((function(e){a?t.innerLayer.add(e):t.innerLayer.update(e)})),this.innerLayer.setOpacity(n),this.innerLayer.setVisible(r)}}};function tc(t){return tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(t)}function ec(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ec=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==tc(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(tc(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function nc(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function rc(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){nc(o,r,i,a,s,"next",t)}function s(t){nc(o,r,i,a,s,"throw",t)}a(void 0)}))}}var ic={name:"mapgis-3d-igs-feature-layer",inject:["Cesium","vueCesium","viewer"],mixins:[Us,zs,Zs],props:{baseUrl:{type:String,default:null},gdbps:{type:String,default:null},renderer:{type:Object,default:function(){return{}}},filter:{type:Object,default:null},clampToGround:{type:Boolean,default:!1},featureStyle:{type:Object,default:function(){return{}}}},data:function(){return{layerType:"feature",layerIndex:void 0,layer:void 0,layerRange:[],clickhandler:void 0,hoverhandler:void 0,tempHighlightdata:void 0,tempQueryDataArr:[]}},mounted:function(){var t=this;this.mount(),window.reloadLayer=function(){return t.reloadLayer()}},destroyed:function(){this.unmount()},watch:{},methods:{createCesiumObject:function(){var t=rc(ec().mark((function t(){var e,n,r,i,o,a,s,c,u,l,h,d,f,p;return ec().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.viewer,this.vueCesium,n=this.baseUrl,r=this.gdbps,i=this.autoReset,o=this.renderer,a=this.filter,s=this.clampToGround,c=this.featureStyle,u=this.vueIndex,this,l={autoReset:i,loadAll:!0,renderer:o,clampToGround:s,filter:a},n&&-1!==n.indexOf("/igs/rest/mrfs/layer")&&(l.layers=r),t.next=7,this.queryFeaturesInLayers(r,n);case 7:d=t.sent,"{}"===JSON.stringify(o)&&"{}"!==JSON.stringify(c)&&(f=d[0],f&&(p=f.geometry.type,h=this.getRenderer(p,c))),this.addLayer(e,h||o,d),this.getDocLayer(u);case 11:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getDocLayer:function(t){var e=this,n=this.vueIndex,r=this.vueKey,i=this.vueCesium;this.url,this.enablePopup;if(t){e.layerIndex=t;var o=[this.innerLayer];o&&i.IgsFeatureManager.addSource(r,n,o,{url:e.baseUrl,layerIndex:e.layerIndex,clickhandler:e.clickhandler,hoverhandler:e.hoverhandler}),e.$emit("load",{data:e})}},mount:function(){var t=this.viewer;this.vueCesium,this.vueKey,this.vueIndex,this.baseUrl,this.gdbps,this.enablePopup;this.mapController||(this.mapController=new Map),t.shadows=!0,Cesium.FeatureDetection.supportsImageRenderingPixelated()&&(t.resolutionScale=window.devicePixelRatio),t.scene.fxaa=!0,t.scene.postProcessStages.fxaa.enabled=!0;var e=this.createCesiumObject(),n=this;e.then((function(t){n.$_bindClickEvent(n.parseClick),n.$_bindHoverEvent(n.parseHover),n.enablePopup&&(n.clickhandler=n.$_bindClickEvent(n.clickHighlight)),n.enableClick&&(n.clickhandler=n.$_bindClickEvent(n.clickHighlight)),n.enableHover&&(n.hoverhandler=n.$_bindHoverEvent(n.hoverHighlight)),n.enableQuery&&n.queryPrimitive()}))},unmount:function(){this.viewer;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=(this.layerIndex,t.IgsFeatureManager.findSource(e,n));r&&r.source&&this.innerLayer.destroy(),r&&r.clickhandler&&r.clickhandler.destroy(),r&&r.hoverhandler&&r.hoverhandler.destroy(),t.IgsFeatureManager.deleteSource(e,n),this.mapController=null,this.$emit("unload",this)},parseClick:function(t){this.$emit("featureClick",{pick:t})},parseHover:function(t){this.$emit("featureHover",{pick:t})},parseBBox:function(t){this.$emit("bbox",{bbox:t})}}},oc=ic,ac=je(oc,qa,Xa,!1,null,"06c7d1e6",null),sc=ac.exports,cc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},uc=[],lc={name:"mapgis-3d-arcgis-tile-layer",props:{srs:{type:String,default:"EPSG:4326"}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",vueKey:"string",vueIndex:"string | Number"},managerName:"ArcgisManager",providerName:"ArcGisMapServerImageryProvider"}},inject:["Cesium","vueCesium"],mixins:[Ao],created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{mount:function(){var t={};t.tilingScheme=this.$_setTilingScheme(this.srs),this.$_mount(t)},unmount:function(){this.$_unmount()}}},hc=lc,dc=je(hc,cc,uc,!1,null,"04953ff2",null),fc=dc.exports,pc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},mc=[];function gc(t){return gc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(t)}function Ac(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ac(Object(n),!0).forEach((function(e){yc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ac(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yc(t,e,n){return(e=bc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bc(t){var e=wc(t,"string");return"symbol"==gc(e)?e:e+""}function wc(t,e){if("object"!=gc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var _c,xc,Sc={name:"mapgis-3d-arcgis-map-layer",props:{srs:{type:String,defalut:"EPSG:4326"},layers:{type:String}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",rectangle:"object",tilingScheme:"object",ellipsoid:"object",tileWidth:"number",tileHeight:"number",maximumLevel:"number",credit:"object|String",vueKey:"string",vueIndex:"string | Number"},managerName:"ArcgisManager",providerName:"ArcGisMapServerImageryProvider"}},mixins:[Ao],created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{srs:{handler:function(){this.unmount(),this.mount()}},layers:{handler:function(){this.unmount(),this.mount()}}},methods:{mount:function(){var t={},e=this.layers;e&&e.indexOf("show")>=0&&(e=this.layers.replace("show:",""));var n=this.baseUrl;this.srs&&(t.tilingScheme=this.$_setTilingScheme(this.srs)),t.usePreCachedTilesIfAvailable=!1;var r=vc(vc({},t),{},{layers:e,baseUrl:n});this.$_mount(r)},unmount:function(){this.$_unmount()}}},Cc=Sc,Mc=je(Cc,pc,mc,!1,null,"ee5a3440",null),Lc=Mc.exports,Tc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-graphic-container",style:t.containerStyle},[n("div",[n("mapgis-ui-graphic-icons-panel",{ref:"iconsPanel",attrs:{models:t.models,containerStyle:t.iconsPanelStyle,enableOneMap:t.enableOneMap,enableMapStory:t.enableMapStory},on:{startDraw:t.$_startDraw,startDrawModel:t.$_startDrawModel}})],1),n("div",{staticClass:"mapgis-ui-graphic-edit-panel"},[n("mapgis-ui-graphic-edit-panel",{ref:"editPanel",attrs:{editPanelValues:t.editPanelValues,editList:t.editList,dataSource:t.dataSourceCopy,currentEditType:t.currentEditType,graphicGroups:t.graphicGroups,uploadUrl:t.uploadUrl},on:{change:t.$_changeEditPanelValues,changeGroup:t.$_changeGroup,stopDrawing:t.$_stopDraw,dblclick:t.$_dbclick,clickTool:t.$_clickTool,changeAttributes:t.$_changeAttributes,deleteAttribute:t.$_deleteAttribute,editTitle:t.$_editTitle,batchOperate:t.$_batchOperate,pickCoords:t.$_pickCoords,editPositions:t.$_editPositions,location:t.$_location,editOrientation:t.$_editOrientation,resetOrientation:t.$_resetOrientation}})],1),t.popup.lng?n("mapgis-3d-feature-popup",{attrs:{position:{longitude:t.popup.lng,latitude:t.popup.lat,height:t.popup.alt},popupOptions:t.popupOptions},model:{value:t.enablePopup,callback:function(e){t.enablePopup=e},expression:"enablePopup"}},[n("mapgis-3d-popup-iot",{attrs:{properties:t.popup.properties}})],1):t._e()],1)},kc=[],Ec=n("9588"),Oc={name:"mapgis-3d-graphic-layer-service",inject:["Cesium","viewer"],data:function(){return{localVueIndex:void 0,localVueKey:void 0,drawNum:{label:0,box:0,polyline:0,polygon:0,polygonCube:0,point:0,circle:0,cylinder:0,cone:0,polylineVolume:0,corridor:0,wall:0,rectangle:0,ellipsoid:0,marker:0,model:0}}},methods:{hasObject:function(t,e,n){if(n=n||"graphicsLayer不存在!",t)return e(t);console.warn(n)},$_newGraphicLayer:function(t){t=t||{};var e=t,n=e.vueIndex,r=e.vueKey,i=e.viewer,o=e.getGraphic,a=e.finishEdit,s=e.revokeModel,c=e.revokePoint;e.finishDraw;if(i=i||this.viewer,n=n||this.$_getId(),r=r||"default",i.scene.fxaa=!0,i.scene.postProcessStages.fxaa.enabled=!0,this.localVueIndex=n,this.localVueKey=r,Cesium.hasOwnProperty("GraphicsLayer")){var u=new Cesium.GraphicsLayer(i,{getGraphic:o,finishEdit:a,revokeModel:s,revokePoint:c});i.scene.layers.appendGraphicsLayer(u),window.vueCesium.GraphicsLayerManager.addSource(r,n,u)}else console.warn("请升级最新版的Cesium库!")},$_getGraphicLayer:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=window.vueCesium.GraphicsLayerManager.findSource(e,t);return this.hasObject(n,(function(t){return t.source}),"请初始化GraphicsLayer对象")},$_switchGraphicLayer:function(t,e){e=e||"default",this.localVueIndex=t,this.localVueKey=e},$_startDrawing:function(t,e,n){var r=this.$_getGraphicLayer(e,n);t=t||{},t.hasOwnProperty("type")||console.warn("请输入绘制类型!"),this.hasObject(r,(function(e){e.startDrawing(t)}))},$_stopDrawing:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);this.hasObject(n,(function(t){t.stopDrawing()}))},$_startEdit:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);this.hasObject(n,(function(t){t.startEdit()}))},$_stopEdit:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);this.hasObject(n,(function(t){t.stopEdit()}))},$_updateStyle:function(t,e,n){t.style[e]=n},$_updateStyleByStyle:function(t,e,n,r){n=n||this.localVueIndex,r=r||this.localVueKey;var i=this.$_getGraphicLayer(n,r),o=this;e&&e instanceof Object?this.hasObject(i,(function(n){var r=n.getGraphicByID(t);o.hasObject(r,(function(t){Object.keys(e).forEach((function(n){"labelStyle"===n||"billboardStyle"===n?Object.keys(e[n]).forEach((function(r){t.style[n][r]=e[n][r]})):t.style[n]=e[n]}))}),"标绘对象不存在")})):console.warn("样式为空或者不是对象!")},$_updateStyleByLayer:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n),i=t.dataSource;i&&i instanceof Object&&!i.hasOwnProperty("features")?this.hasObject(r,(function(t){for(var e=i,n=function(n){var r=t.getGraphicByID(e[n].id);r&&e[n].style&&e[n].style instanceof Object&&Object.keys(e[n].style).forEach((function(t){r.style[t]=e[n].style[t]}))},r=0;r<e.length;r++)n(r)})):console.warn("dataSource为空或者不是GeoJSON数据!")},$_updateStyleById:function(t,e,n,r,i){r=r||this.localVueIndex,i=i||this.localVueKey;var o=this.$_getGraphicLayer(),a=this;this.hasObject(o,(function(r){var i=r.getGraphicByID(t);a.hasObject(i,(function(t){t.style[e]=n}),"标绘对象不存在")}))},$_getGraphicByID:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);return this.hasObject(r,(function(e){return e.getGraphicByID(t)}))},$_getGraphicByIndex:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);return this.hasObject(r,(function(e){return e.getGraphicByIndex(t)}))},$_fromJson:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);this.hasObject(r,(function(e){e.loadJson(JSON.stringify(t))}))},$_getJsonById:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;for(var r,i=this.$_toJSON(e,n),o=0;o<i.features.length;o++)if(i.features[o].id===t){r=i.features[o];break}return r},$_toJSON:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);return this.hasObject(n,(function(t){return JSON.parse(t.exportToJson())}))},$_toJSONById:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);return this.hasObject(r,(function(e){var n,r=e.exportToJson();"string"===typeof r&&(r=JSON.parse(r));for(var i=0;i<r.features.length;i++)if(t===r.features[i].id){n=r.features[i];break}return n}))},$_toFile:function(t,e){e=e||"无标题",this.hasObject(t,(function(t){var n=new Blob([JSON.stringify(t)],{type:"application/json;charset=utf-8"});Object(Ec["saveAs"])(n,e+".json")}),"请传入数据")},$_removeAllGraphic:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);this.hasObject(n,(function(t){t.removeAllGraphic()}))},$_removePickingGraphic:function(){var t=this.$_getGraphicLayer();return t.removePickingGraphic()},$_removeGraphicByIndex:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);this.hasObject(r,(function(e){e.removeGraphicByIndex(t)}))},$_removeGraphicByID:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);this.hasObject(r,(function(e){e.removeGraphicByID(t)}))},$_destroy:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);this.hasObject(n,(function(n){n.destroy(),window.vueCesium.GraphicsLayerManager.deleteSource(e,t)}))},$_getAllGraphic:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);return this.hasObject(n,(function(t){return t.getAllGraphic()}))},$_formatType:function(t){var e={label:"文字",point:"点",line:"直线",curve:"曲线",polygon:"多边形",rectangle:"矩形",circle:"圆",cube:"正方体",polygonCube:"立体多边形",cuboid:"长方体",cone:"圆柱",cylinder:"圆锥",ellipsoid:"球",polylineVolume:"圆管线",corridor:"方管线",model:"模型",marker:"标注"};return e[t]},$_getId:function(t){return t=t||1e10,parseInt(String(Math.random()*t))},$_cartesian3ToLongLat:function(t){var e={},n=Cesium.Cartographic.fromCartesian(t);return e.lat=Cesium.Math.toDegrees(n.latitude),e.lng=Cesium.Math.toDegrees(n.longitude),e.alt=n.height,e},$_getTitle:function(t,e){var n;switch(t){case"label":n="文本";break;case"box":n="盒子";break;case"polyline":n="线";break;case"rectangle":n="矩形";break;case"polygon":n="多边形";break;case"polygonCube":n="立体多边形";break;case"point":n="点";break;case"circle":n="圆";break;case"cone":n="圆柱";break;case"ellipsoid":n="球体";break;case"cylinder":n="圆锥";break;case"polylineVolume":n="圆管线";break;case"corridor":n="方管线";break;case"wall":n="墙";break;case"marker":n="标注";break;case"model":n="模型";break}return this.drawNum[t]+=1,n+"_"+this.drawNum[t]},$_getEditPanelValues:function(t,e){for(var n=this.editList[e],r={},i=0;i<n.length;i++)r[n[i].key]=n[i].value;return r},$_getClassificationType:function(t,e){var n=e.ClassificationType.BOTH;switch(t){case 2:n=e.ClassificationType.BOTH;break;case 0:n=e.ClassificationType.TERRAIN;break;case 1:n=e.ClassificationType.CESIUM_3D_TILE;break;case-1:n=void 0;break;default:break}return n},$_getDrawOptions:function(t,e,n){var r,i={},o=this.$_getClassificationType(t.elevationMode,n);switch(e){case"point":i.style={disableDepthTestDistance:0,color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),arcType:n.ArcType.GEODESIC,pixelSize:t.pixelSize,offsetHeight:t.offsetHeight,outlineWidth:t.outlineWidth||0,outlineColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.outlineColor||"#000000"),t.outlineOpacity/100)};break;case"label":var a;a="number"===typeof t.fontSize?t.fontSize+"px "+t.fontFamily:t.fontSize.indexOf("px")>-1?t.fontSize+" "+t.fontFamily:t.fontSize+"px "+t.fontFamily;var s=Number(t.verticalOrigin)||this.Cesium.VerticalOrigin.BOTTOM,c=Number(t.horizontalOrigin)||this.Cesium.HorizontalOrigin.CENTER;i.style={disableDepthTestDistance:Number.POSITIVE_INFINITY,text:t.text||"",offsetHeight:t.offsetHeight||0,font:a,style:2,fillColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.fontColor||"#000000"),t.opacity/100),outlineWidth:t.outlineWidth||0,outlineColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.outlineColor||"#000000"),t.outlineOpacity/100),showBackground:t.showBackground,backgroundColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.backgroundColor||"#000000"),t.backgroundOpacity/100),backgroundPadding:new n.Cartesian2(t.backgroundPadding,t.backgroundPadding),verticalOrigin:s,horizontalOrigin:c},t.hasOwnProperty("position")&&(i.position=t.position);break;case"box":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),arcType:n.ArcType.GEODESIC,extrudedHeight:t.extrudedHeight,offsetHeight:t.offsetHeight},i.drawWithHeight=!0;break;case"polyline":switch(r={disableDepthTestDistance:Number.POSITIVE_INFINITY,width:t.width,materialType:t.materialType,isHermiteSpline:t.isHermiteSpline,loop:t.loop,classificationType:o},t.materialType){case"Color":r.material=void 0,r.color=n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100);break;case"PolylineDash":r.material={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100)};break;case"PolylineArrow":r.material={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100)};break}i.style=r;break;case"polygonCube":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),extrudedHeight:t.extrudedHeight,offsetHeight:t.offsetHeight,isPlanePolygon:!0},i.drawWithHeight=!0;break;case"polygon":switch(t.materialType=t.materialType||"Color",t.materialType){case"flash":case"Color":r={materialType:void 0,material:void 0,color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),offsetHeight:t.offsetHeight,isPlanePolygon:!1,classificationType:o};break;case"Image":r={materialType:"Image",stRotation:t.stRotation,material:{image:t.image,repeat:new n.Cartesian2(t.repeatX,t.repeatY),color:n.Color.fromAlpha(n.Color.WHITE,t.opacity/100)},height:t.height,isPlanePolygon:!1,classificationType:o};break}i.style=r;break;case"rectangle":switch(t.materialType=t.materialType||"Color",t.materialType){case"Color":r={materialType:void 0,material:void 0,color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),offsetHeight:t.offsetHeight,classificationType:o};break;case"Image":r={materialType:"Image",material:{image:t.image,repeat:new n.Cartesian2(t.repeatX,t.repeatY),color:n.Color.fromAlpha(n.Color.WHITE,t.opacity/100)},stRotation:Math.PI/180*t.stRotation,classificationType:o};break;case"text":r={color:n.Color.WHITE,material:{text:t.rectangleText||"无标题",fillColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),font:(t.rtFontSize||30)+"px "+(t.rtFontFamily||"微软雅黑"),backgroundColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.rtBackgroundColor||"#FFFFFF"),(t.rtBackgroundOpacity||0)/100)},materialType:"text"};break}i.style=r;break;case"circle":switch(r={radius:Number(t.radius),offsetHeight:t.offsetHeight,materialType:t.materialType,classificationType:o},t.materialType=t.materialType||"Color",t.materialType){case"Color":r.material=void 0,r.color=n.Color.fromAlpha(n.Color.fromCssColorString(t.materialColor),t.materialOpacity/100);break;case"RadarMaterial":r.material={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.materialColor),t.materialOpacity/100),speed:t.speed};break;case"CircleWaveMaterial":r.material={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.materialColor),t.materialOpacity/100),duration:t.duration,gradient:t.gradient,count:t.count};break}i.style=r;break;case"ellipsoid":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),offsetHeight:t.offsetHeight,radiusX:t.radiusX,radiusY:t.radiusY,radiusZ:t.radiusZ};break;case"cone":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),radius:Number(t.radius),extrudedHeight:t.extrudedHeight,offsetHeight:t.offsetHeight};break;case"wall":switch(r={extrudedHeight:t.extrudedHeight,materialType:t.materialType,loop:t.loop},t.materialType){case"Color":r.material=void 0,r.color=n.Color.fromAlpha(n.Color.fromCssColorString(t.materialColor),t.materialOpacity/100);break;case"PolylineTrailLink":r.material={image:t.image,color:n.Color.fromAlpha(n.Color.fromCssColorString(t.linkColor),t.materialOpacity/100),duration:t.duration,direction:t.direction,repeat:new n.Cartesian2(1,1)};break}i.style=r;break;case"polylineVolume":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),width:t.width,offsetHeight:t.offsetHeight,cornerType:t.cornerType};break;case"corridor":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),width:t.width,cornerType:t.cornerType,offsetHeight:t.offsetHeight,extrudedHeight:t.extrudedHeight};break;case"cylinder":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),topRadius:t.topRadius,bottomRadius:t.bottomRadius,offsetHeight:t.offsetHeight,extrudedHeight:t.extrudedHeight};break;case"square":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),extrudedHeight:t.extrudedHeight,offsetHeight:t.offsetHeight},i.drawWithHeight=!0;break;case"marker":var u;u="number"===typeof t.fontSize?t.fontSize+"px "+t.fontFamily:t.fontSize.indexOf("px")>-1?t.fontSize+" "+t.fontFamily:t.fontSize+"px "+t.fontFamily;var l={text:t.text||"",font:u,fillColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.fontColor||"#000000"),t.opacity/100),outlineColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.outlineColor||"#000000"),t.outlineOpacity/100),outlineWidth:t.outlineWidth,style:n.LabelStyle.FILL_AND_OUTLINE},h={image:t.image,width:t.width,height:t.height,color:n.Color.fromAlpha(n.Color.fromCssColorString("#FFF"),t.opacity/100)};i.style={labelStyle:l,billboardStyle:h,labelPlaceType:t.labelPlaceType,labelPadding:t.labelPadding,offsetHeight:t.offsetHeight,disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new n.Cartesian2(0,0)};break;case"model":i.style={url:t.url,scale:t.scale};break}return i},$_bezierSpline:function(t,e){for(var n=[],r=0;r<t.length;r++){var i=this.$_cartesian3ToLongLat(t[r]);n.push([i.lng,i.lat])}e&&n.push(n[0]),n=Yn["lineString"](n);for(var o=Yn["bezierSpline"](n),a=o.geometry.coordinates,s=0;s<a.length;s++)a[s].push(10);for(var c=[],u=0;u<a.length;u++)c.push(Cesium.Cartesian3.fromDegrees(a[u][0],a[u][1],a[u][2]));return c}}},Pc=Oc,Bc=je(Pc,_c,xc,!1,null,"730254a2",null),Ic=Bc.exports,Dc={methods:{setFeatureConfig:function(){var t=this.featureConfig.feature,e=this.featureConfig.label,n=this.getConfig(t,e),r=JSON.parse(JSON.stringify(this.editList));this.setManagerConfig(r,n),this.editList=r},getConfig:function(t,e){var n={};return Object.keys(t).forEach((function(e){var r=t[e];switch(e){case"line":n.lineColor=r.color,n.lineWidth=Number(r.size);break;case"pnt":n.pointColor=r.color,n.pointWidth=Number(r.size),n.pointStyle=r.style;break;case"reg":n.polygonColor=r.color;default:break}})),Object.keys(e).forEach((function(t){var r=e[t];switch(t){case"image":n.defaultImg=r.defaultImg,n.selectedImg=r.selectedImg,n.anchor=r.popupAnchor;break;case"text":n.textColor=r.color,n.fontFamily=r.fontFamily,n.fontSize=r.fontSize;break;default:break}})),n},setManagerConfig:function(t,e){var n=this;Object.keys(t).forEach((function(r){var i=t[r];switch(r){case"box":n.setBoxConfig(i,e);break;case"circle":n.setCircleConfig(i,e);break;case"cone":n.setConeConfig(i,e);break;case"corridor":n.setCorridorConfig(i,e);break;case"curve":n.setCurveConfig(i,e);break;case"cylinder":n.setCylinderConfig(i,e);break;case"ellipsoid":n.setEllipsoidConfig(i,e);break;case"label":n.setLabelConfig(i,e);break;case"marker":n.setMarkerConfig(i,e);break;case"model":n.setModelConfig(i,e);break;case"point":n.setPointConfig(i,e);break;case"polygon":n.setPolygonConfig(i,e);break;case"polygonCube":n.setPolygonCubeConfig(i,e);break;case"polyline":n.setPolylineConfig(i,e);break;case"polylineVolume":n.setPolylineVolumeConfig(i,e);break;case"rectangle":n.setRectangleConfig(i,e);break;case"square":n.setSquareConfig(i,e);break;case"wall":n.setWallConfig(i,e);break;default:break}}))},setBoxConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"extrudedHeight":break;case"offsetHeight":break;case"color":t.value=e.polygonColor;break;case"opacity":break;default:break}}))},setCircleConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"radius":break;case"materialType":break;case"materialColor":t.value=e.polygonColor;break;case"elevationMode":break;case"offsetHeight":break;case"extrudedHeight":break;case"offsetHeight":break;case"materialOpacity":break;case"speed":break;case"duration":break;case"gradient":break;case"count":break;default:break}}))},setConeConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"radius":break;case"extrudedHeight":break;case"color":t.value=e.polygonColor;break;case"offsetHeight":break;case"opacity":break;default:break}}))},setCorridorConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"width":e.lineWidth&&(t.value=e.lineWidth);break;case"extrudedHeight":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"cornerType":break;case"opacity":break;default:break}}))},setCurveConfig:function(t,e){},setCylinderConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"opacity":break;case"extrudedHeight":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"topRadius":break;case"bottomRadius":break;case"offsetHeight":break;default:break}}))},setEllipsoidConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"radiusX":break;case"radiusY":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"radiusZ":break;case"opacity":break;case"offsetHeight":break;default:break}}))},setLabelConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"text":break;case"fontFamily":e.fontFamily&&(t.value=e.fontFamily);break;case"fontSize":e.fontSize&&(t.value=e.fontSize);break;case"fontColor":e.textColor&&(t.value=e.textColor);break;case"showOutline":break;case"opacity":break;case"offsetHeight":break;case"outlineWidth":break;case"outlineColor":break;case"outlineOpacity":break;case"showBackground":break;case"backgroundColor":break;case"backgroundOpacity":break;case"backgroundPadding":break;case"horizontalOrigin":break;case"verticalOrigin":break;default:break}}))},setMarkerConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"image":break;case"width":break;case"height":break;case"text":break;case"fontFamily":e.fontFamily&&(t.value=e.fontFamily);break;case"fontSize":e.fontSize&&(t.value=e.fontSize);break;case"fontColor":e.textColor&&(t.value=e.textColor);break;case"labelPlaceType":break;case"labelPadding":break;case"offsetHeight":break;case"opacity":break;default:break}}))},setModelConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"url":break;case"scale":break;default:break}}))},setPointConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"pixelSize":break;case"color":e.pointColor&&(t.value=e.pointColor);break;case"opacity":break;case"offsetHeight":break;case"showOutline":break;case"outlineWidth":break;case"outlineColor":break;case"outlineOpacity":break;default:break}}))},setPolygonConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"materialType":break;case"image":break;case"repeatX":break;case"repeatY":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;case"elevationMode":break;case"offsetHeight":break;case"flashAlpha":break;case"alphaSpace":break;case"flashTime":break;default:break}}))},setPolygonCubeConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"extrudedHeight":break;case"offsetHeight":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;default:break}}))},setPolylineConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"materialType":break;case"width":e.lineWidth&&(t.value=e.lineWidth);break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;case"isHermiteSpline":break;case"loop":break;case"elevationMode":break;default:break}}))},setPolylineVolumeConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"cornerType":break;case"width":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;default:break}}))},setRectangleConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"rectangleText":break;case"materialType":break;case"image":break;case"repeatX":break;case"repeatY":break;case"stRotation":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;case"elevationMode":break;case"offsetHeight":break;case"rtFontFamily":e.fontFamily&&(t.value=e.fontFamily);break;case"rtFontSize":e.fontSize&&(t.value=e.fontSize);break;case"rtBackgroundColor":break;case"rtBackgroundOpacity":break;default:break}}))},setSquareConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"extrudedHeight":break;case"offsetHeight":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;default:break}}))},setWallConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"materialType":break;case"offsetHeight":break;case"linkColor":e.lineColor&&(t.value=e.lineColor);break;case"materialColor":e.polygonColor&&(t.value=e.polygonColor);break;case"materialOpacity":break;case"image":break;case"duration":break;case"direction":break;case"extrudedHeight":break;case"loop":break;default:break}}))}}},Nc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAfCAYAAAAmyadiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2MTdDRDczRTNBRkIxMUVDQThGQjg3NTI5NEQzRjQyMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2MTdDRDczRjNBRkIxMUVDQThGQjg3NTI5NEQzRjQyMSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjYxN0NENzNDM0FGQjExRUNBOEZCODc1Mjk0RDNGNDIxIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjYxN0NENzNEM0FGQjExRUNBOEZCODc1Mjk0RDNGNDIxIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/qoASAAAAFtJREFUeNo8y0sKgDAMANE2LgRRUdHe/3z+AgouXKR2LJrFYwKJU9VKnHONxBg7GGCEScwsUCGvH+9JDy2/NVVSBZh472/qog5Q2GGBOZNm/tcVtnycfs9HgAEAVWM2FO/Nz/0AAAAASUVORK5CYII=",Fc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAKNJREFUOE9jZKAQMFKon2EQGhCflLp64bzZodi8lpCUtmrBvFlhyHJYvZCQmLZpwfxZfsgKsWkGyeMMg4Sk9B0L5s30ACnCpRmvAWCNian7GRgZX6M7m6AXYApANjMwMEgvmDfLGld04/ECIsASEtPOLJg/ywSbIdgDEUtoJySlXVowb5YeuiEYBuALsISktPcL5s0SJDoMiEnmgzApE+NsZDUAmhk5Eepj+2cAAAAASUVORK5CYII=",jc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAXpJREFUSEu1lb0vA2Ecxz+/6n9gYWBQCdGBqKQTO3+B2pAwIL2mRP8JYelq1JdZiMnLWh0MNXmJhrZnvonkHnlI43rN9ULvnu2b57nf53e/Vxk6Uoq/HQt4BV4UXDFAydyRZy8T8g+A25YtUBLINQypuy+DALRtWkqxYWak4IQECdB2lUC2achhGxI04BuiIGUaUtIiDIC2a0UgrnMSFkBDii1DUmECbIky5guIRiCbhMlBWD0Ft/ZpoVxPQERgKwGJYchXodrs1JWGb4deeAIEWJuGhVE4voObeqe+7mqpbpiCN0/A8hQsjUPxHs4ewK19ff958OEJSMVhMQaFGpw/glv3DdAhWp+B+ZHfEDl13yHSHuokb8/B7BDkb6Ha6tSVpu9/eCe5/akuy90kTDjK1Kn7KlNf/3o/sFHEfButD0iooyLUYaeUsGKmpRjGuNb7fa9lyEEYC8dSwqaZlpOgV6YNlCOwH9TS/1TwjqKGcImibGbkyavavgBf6sD4yClN/AAAAABJRU5ErkJggg==",Rc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAWRJREFUSEu1lb8vQ1EYhp+v/BFlMNCpBkN1ZcdOjQYGkd5GRP+JhoERG73dSUyESaLCoDE0RP1or8R2J+QeOZIbXOlttfec7c05eZ/k/b7zfRJfV4r/HRd4BO4VHNOD7SzJXTML6QAQ9PIEbIH8syW14GUUAN/TVYp5Jyd7PyFRArSvEliuW7LmQ6IGfEEUZBxLbC1MALSvG4NhXRNTAA0pNizJmAR40stgKGBnCm5eoXAGHx4EdRvfJx8KSPfDYgrKddgsQ6rvt/Zaf9HDlhGND8DcCJzUYPsKxgI6jKHgqSVAxzCZgOkk7FfBrvzVIVG9tQWYSMBMEg6qUKxAUHcF8CM6fYCty++IfN1VRGld1FG4aMDGOaTiv3XXRTbepm30edgTD8VQW0XuEGR0VBgddkoJs05WiibGte7alYYlBRMLx1XCgpOV3ahXpgeUYrAa1dJ/V/CC4hrhCEXJyclts077BMiv1vg3sLy1AAAAAElFTkSuQmCC",Hc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAJ9JREFUOE9jZKAQMFKon2G4GqAVGsom8pGx+z8jYwwDAwMj4///i9/w/y+9tnr1L/QwwxoGTj5xExgY/uejKGZk7Ny3eVEFUQZ4hKS/ZWBgEEJT/G7HmpnCRBkQEFuE1YANi/uIMyAyvW7C//+oXvjPwNC1clZzOVEuCG1oYON6z9bN8J8hFqyBkWHxN8FfpasbGogLRFJS53BNiaSEAQAcxS8RnAsgsgAAAABJRU5ErkJggg==",zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAZxJREFUOE+lk98rg1Ecxp/vOzU0k7lStNbWLuRPUG6UiAvplV+l/CxakV9XdGpKUdoNUmRGwm5W4k69F67co+TCIjc0UozNu6/e169tbV7l3J7n+ZznPOd7CP9cZOSvrGmuJkK/6SXWqyihh3S9IaCqtm0PQD2AiCrBdbS/dZ8M+RUgy7LpLpp7CsD9aYrEWU2BZAXUyN02NZbYAFCXFjtifnt17X8mSQFoJz6hqDzBaGJmDwBblo4ir2rcqYT8DzpACCEdn93OEXgAQK5Rsdo+AzsHO4stOqChY6iVmLf+aDwj0LlE8IU2fYoO0KKrefYACG0GkD3Tc7gxGAyqX7rvDjSIZHUFGFkhtzHV7A75RcospJbYN1GYQ+ZrAJb0JAye3F72Tv86SB2DXj8BnQCfA/T19rpHAlesL0ydZAV0embaQexnouHojXMpr+QiQD/XiTpsMYsQIpER0DM650iofCgxda34xpSPYndNltJLHUKE2dX58YlMBesd9AmRH38sKF6bH7lKFmkQqz0sl1medjOdrmkNP5PRbLwDNTWSEULK4hEAAAAASUVORK5CYII=",Uc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAVJJREFUOE+lk09LAlEUxc99ueyzRLtWEU+SECtnIYiFUQNJIOSjqEUUSVQEFiG5cCEWOISBiwmF/ihR1KYv0DYI2gZ9gbkxozNkf8DBu7qLe37c8867hD6L+tTDA4xOxNkP7PHmwtF6gLHwjA14Y2BDsHi3yIoTsOQMES9axC+CB4aYOQdg8OHqvBsQnEx+BgjDt/XKqy0KRpIKhGO7F2DZahj3di+n5qLEbN41Kt2AkKavNs3ykWtjXNMVoQ1gCNkySw7ArlBUzzcvy5kuCz/9h2MpxSAHAJC8rhU9wPfZf1OIJNKKXABDNqoFfwAtuaLQsQAW0jQO/QFi+rqCu4EgWSsd+AMkUluK3Q0Ey2px1x9gNr2jiLn9iIKlUcj6A8wv72UZtO1kwNb02clm/a+f+iuFhUxuhIRlC0MAAh3RBxhPzGL/NL/23FOMvd5F39f4BdUGcBHgxmlVAAAAAElFTkSuQmCC",Vc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAARBJREFUOE+l071OwzAUBeBz4+J0TN8EKSurYciSEbHglQV1hK0TKrxA3sAMzBGCZEFCbJF4E0ZKnNjIlWo1oimW6v07Ptc/hAMXhfqT7GJGXf/YG3PzUT19blxQgMOsRwVCCuD17VmdBQc4zCmqAEoB27TWiPdSfQUFZNnVrD1aecz1VJRl4bELGR0hz2WymvB6szPjTJRqiEcDcjlPuh/tsSWzE+8McBhdVK8PzKLRhotSLQe1t29uMILDE4o95lMSqhjHgwZSLpJv3tcEpBZoGNP/Yh8g54uka6kG1vfcGMuFKm5Ha/8Z4fL67gXAqcNau9pheKvBw3FE5j6O7XmxDMd730HoHwn6C/vCDg74BYYfbBG7+QTOAAAAAElFTkSuQmCC",Yc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAT9JREFUOE+lk8Erw2EYxz/vb69MOO6kRnLyL3BZkmRJtE2bpeywXCaklVaSaBw4jEgth7FNP2ktxY6SP8FNSuQ/UKzt92oOMrP1+7Xn/Hw+z/d53l5BkyWa5DElGBzy92q2sldpuFCqH4TjrnBurwxvKBhwB53SMOIo5QO032lvr9PfbF2Ba2xmXAhxCnQCRVB5AbmylPeOlvc3XdeLdQXDE6EFULuVqQpyNkOsFPLJx//uVZNg1BP2KUUGMBRitXBxtNPo0FUCtyfiRBoPQAcQvcrsN4RrVpgILp0BflCXudTelJkn/kkwGVru1pR8AkpSyb7syeaLJcF0OBZFiTiQzh5vBMzAVSsE5tdvhGBEKLypwzXdsmA2svUKdMmy0ZM8iD1bFswtbn8Are2lNnsiEfm0LDAL/O0z9Zkayb8AiRtbEaHgLjoAAAAASUVORK5CYII=",Gc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAalJREFUOE+lk8srhGEUxp/zzcLO2n8wVrJQpEYpl3GL0jT4XMY9hXItyiSKkkuhZIgx+VwWE2oyGlmYolFWbPgPrO0s5nv0zZhh+JqFeZfvOe/vfc5zzhFkeCTD9/gNkJIK5z0FRWZgISLh0GkxACbiKYASu9ohQm86VaS4wlfawR9AVZWa/WFRXgHkCNh6EzjUfoJK69pbhDTu3rKiujUY1N6NeFJBeUPXMoAxkJHri/0UmV8gKWvovhXQBmDl+nxvPAmwOwasoP4MwKIQhZf+7UezMqob+wt0wQOAqE7mhfyel5iCuubBAIEaQHYDxxu96TyobR7aAdgDQTBwtFkdA9S3jQYFsItg98y3mhZQ3zbqEaAXROj8cLUyBmh0TeWKoj8ZJRAs9O8tmZbgcE3kU1GMmE5dyfN7F+MlGMfZ514WcAzE3cnOvGFUstcJE5v6Z25B2AhZOfXMfZtoJKhDs9kSlVgbSVG1LffRTy/UgbkWkXgbaaFV25hNbaOR3D680CFA+kECXL716b+DFP+N0jmydC8wH2UCkf21yWJAzEf5P4uV8TZ+AnP6lxHiwQAkAAAAAElFTkSuQmCC",Qc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAL5JREFUOE9jZKAQMFKonwFsgK17+H9yDDq8cyUj2AB7zyiyDDi4fRnEACefWLAB+7YsJspLyOrBGlwDksAG7N4wjygDkNWDNXiEpIMN2LFmJlEGIKsHa/CJzAEbsGX5FKIMQFYP1hAQWwQ2YMPiPqIMQFYP1hCSVA42YM28TqIMQFYP1hCRVgs2YMWsZqIMQFYP1hCT1Qg2YMm0eqIMQFYP1hCf10ZWQlo4qQqSkJIKO8kyYF5/OcQASgDFBgAAMpZQEQDl/wIAAAAASUVORK5CYII=",Wc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAgBJREFUOE+lk0tPE2EUht8zQ7nF4gb9B8DOrnRtidFQmca0DKQGFtM0BIkmWk0ToY1NrZI00oRLlNDYhJRYFK3aQhcYqWvdEN0Y9RcYV8WAtpk5Zj6sV2ZceLbnO8+5vO9H+M+gP+uPK4FO/SuHAe4Hoft7/i3ARblZnn1Ryn/6teY3gNsT8BuMuwAOWgxWlQjBSjn/qJH/AXB7hv0grAIgIloj1tN6e/2V+VDecRxlksPM3A+AwVAr5WUBEYC+Pu1QzcEfAHSA+Nrzp0uJ/SY44dWiDL4OoCrLetfG49xHATjlCyUYiDFo/VkhY3axjJO+UBGAAtDURiEzIQAedWwLgItI6l1/cLtiBzg9OO5mNjYBvCmvLhwRACVw4QuAFmpr6yhmU9t2AG8w4uTd3SqAWik/1yIAZ0bCAmA4mv4JUNXxA/XWVrPJ5ye5tFMAVC2yxYDLIPQWsinbFXzBiFtibILw+mE25RKAwVA0QcQxEEr3F2947VYYGp0sgqEQaGolk9w74shY/LBO/F7ICIrduxNP7gc5ey4eRUNGpq7cQnxPRjOGzyf9BBZGArBGkpHm5vaXwiy1nWOs0yUQKaaRGKQuz0d/GqkB0S7eHGCmLACnxRrbDGhLM1f/tnKjYPTyrc66zmGSWAGjx5QL4HemyRySNLM4fcX6M9kdzyr3DUdxuxH7oaeBAAAAAElFTkSuQmCC",Kc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAsVJREFUOE91028sVXEYB/Dvc67uRbVVaynrTbW1eNHS1GaWF5UmS2PyJ+ZPmFItN8utvMiZLcVMrg0xoZQ/15TR0uZPMWQpFTJivKlIcc1/9zrn1845MfnzvPs9z3M+v+f3O+cQ1glnV39HTsXSpLIokLa5puTDWq20Muns6m+rsqBEAL4g6OU6QzQAg7DA4pprSn4uf2YJcPLxsdLMqGMA3AZQLXKcrrGqcFBqdvEI2sOJYjKA0wDuzVubUt+Vlc1KNRk4cSbYjxGSAIyBSFtf+bhxrXGPnw1xAZOPtY0Ybta9fFIqA66eYYyIJkUw99oXeU3r3YuUP+kVYUdMrAVgW1ORRzLg5h3Jjjo6iB8/dYgcUeWC2RRd/Tz3+3LolNelHcSJPAFhjLFSIgp+XZ6jAO6+USz6cjhMZjPqG5rn+/oHCaAkmjbdt7TcyKZo7joBt8DQoBKFWJVgPWxSzxtfGbIUwCPgGrsaGQKNRi1vOjQ8grq3TbOjxokZYcE8y8BGCHSjsij9jVT3DNVuEUyisaooXQE8g2JYVHjgErA4enVNA3r6Bksc9m0O5HleXMxLAATOWFGYqgDeF3QsMtQPGrUywWI0trThS1evvjw/Sbs8LwEqUhvL85MVwDcijoUHea8Cmlrb0dnVqy99lLgC4LeoLUxGQ26iApy/eIcdczoMu/17QUpKjpb3n9HZ3acvzk5YAnie53qGhEgCZRVnJyjdfEr+3aHh37GWlpoNTo4HsdNmuwy0tnWgq6df/zQzXgYCrvAuHKM0BmzlGHSFWfFlS9vxGRmbhGmrZz+GRjx229rQkUP26O4dwNdvA3ominoiTvqU3YiQSBPmBwUF/JyErvqZUh4a7MfGJst//Rk7YG2lweTUzACAXQwoITMXV5CpG15+oauAxWJSRvG5kdHxnPHxyS5RhDY/Tdf+3yv6t/gL+cQlIMbeT3wAAAAASUVORK5CYII=",qc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAiNJREFUOE9jZKAQMCLrt3UPr2NgYGjEZ+b///8bjuxaBVcDN8DRO7ruHwNDOAvzP6e9m5a/xGaIm1us2C/Wf/sYGBnXHNiypAGkBmyAW0BSw3/G/yGMDH+cdq1f/AqfCzxDE0X//GHYz/CPae3ujXPrGW3dw//z8Qld/cfA4rh99eTXxASJZ2iuKCPjn32fP77TYbT3ivovKCxxhZXlt9Pq+cQZEJqYK/r7D+u+929f6DA6+cb9d3R0enztxp1vf37/tV09vx2vK0ITK0WZWJgOykqJ8547d0aG0S0w+X9VWQHD6fNXP1+9cffN31+/LRbPaMAaDom5baL/GP6elJYQEVGSl+JdtXYTA6NXWOb/ssIssNcvXLn1Z9fuPSxikvJYg+LV84cMxsbGf+WlRZlBCtZt2sHA6Bed/78oJwWuoW/KHIZNSyeipA+YJEitn6cTXO2m7fsYGIMSSv8H+7kzSEuKgyUmzVzEsG5BN1YDQGq9XGzA6t69/8hw4uxlBsbSpimbnz1/5ePt5sAgJSHKMH3eCoaVs1uxGhCeWv3f1d6M4f3HzwznL99kEBTg3QJWmFfVP/fjpy+JHi42jFt2HmRYOr0BqwHRmQ3/DXVVGS5dvfufg4Nt/qzeimS4wvSy7t5fv/4U/P37j2nR5GqsBsTltv5nYmL6x8zMNGFuX3kxPCnDQiW5uKv537//NXhTIxNjy/zeslqYGqw2EZOcYWoAQbTTFwCAzaIAAAAASUVORK5CYII=",Xc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAuhJREFUOE9901lIVGEUB/D/+e4yEuTkQzElUVL0IgQ9hAmGVgZiZVJoZTVhmjSl7aUtVBSZRiZlZYq2qIU0ImWWFIZg0WqCuRG0YJgImZbbqDPznbiTilp0nu7l3Pv7zrn8L2FChYSEqFK37GGS+wBKtXjLbLvd7p743Mg9jW0Eh20IZMI1IchXCNHhcrnNALWxhO3Z4ztv/oV4gKAVMT4KRBqBY5k5S1dlhoTW7HZKfwhOBmg7GHku4iPPH97pGgvRsgjrJmZkA/jGRIe6LaaKd7m5ztAI630G7E/LCopCI6wLJOMaAD9mOlBVfqsQABsQLY/cysxuB7OsATADgK+BAVAA/CKmfAl8ZJKfFaEtJdAZEOqlZNvT+zeaKGxtAqu6WukacgWCafdkpbOwY9DkR0TziGEnwl1mTAMwdxhvJxIakZiuqlomhUfbeJctrvfl65rSt7V1qwFUM6txFfas72PXMMaNiorSDVxX1EiQmqKo2hRaFbOLExO2wGTS8au7p76ouHRgYNA5i1nGO/q6vAkiurKswIARHrXDomhqhmExKI/ANorcvI9tcRs9wHC5qqpfvahraA4Ay+Ke7h9rVJM+e5KXeRMDpwl4JyUlkuZug1t0UXT8YZ7jNxMhQQEw6aMIOjq72kvLnzj6uzv9zGYf9DmcbWDaX3IzvdizjnWvr1S0VsopeLDzfUPzBcfQkB4aHIgZFuN7/SkpJUruPYIQAl+///Auu36uZ6S3Lv7oIga/9ATpdvkznw8NHyo+tbQGzPefh4UL/D0vGWUARl1OTx5N7frtx7cRIxPginFRTrtUaG1pbc/Rdd1rSdBCTDFPHgfEJqVOdbqd+UZ4ASQVXT1xexxgnHTyZJF3v9Jb3tH5c7ExSWNjk2eCnn7XSgZdZ8haUhFfkHnMCBv+AkZ2TD6VE/Ozty9fI6eXBxjgXgEcuHExORcgT4z/CxhNW8pZn8Eh5QpAM4WANe/8wS9jfyTj+jf3DEAtsHGcIwAAAABJRU5ErkJggg==",$c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAfBJREFUOE+l001IVFEUB/Bz//e+p5ZB0JAVLaKFM1HtglCkRV8UmUUfpBGj41dpMUEELbsSEWJftghDiUiy7IOi1hFtkqBWppSYTtMoJULMe87z9d5rbjRRJNxmUWd9zo/z59zL6D+L/TkvpcTz16P7AF7DCGsZxxIQiDF8AscgwO+si4TuSSmzv+bmABsro90MbA0R62QF5ouK1ctSPxpfDU0uVzDKAcSJsaEnfVeatMCmnbUZYsbKp497PuuSVdUcL4HA2KPeS/O1wOZddQoMAwR0whQvF3wrykE+VyWKq/UMiDOG8oc3L/zefE6ELbvrVVnFhoHhN4NwnNkVjFEI4MSAadMsTCxcFMp+mZ4qe3CjQw9s3dOoGpuP5rabdV2yLZvSlkW2PUOe5xEXnMbfj9D96+16YNveZlXf1JIX+DA+Snd7zumB7fuPqFjD4bxAMjFG/d1n9cCOA62qNvbzQn+LkEom6Pa1M3qgsvqYitY15AUmPiapr6tND1QdjKtD0VheYHIiRbeuntYD8mLv19LSiCmE0EYABwW+711uaynQPqTWU+ffBkEQDodX0bziYvI9P3fGdNoix8mQ67pkmsa7rvYTES0g5TPhiJEO256pzmQyi30/AADiQmQFjCmj0OhfWmSdlFIGWuBffvZ3skgEILDn5EgAAAAASUVORK5CYII=",Jc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAkpJREFUOE+V091L01EYB/DvnFsTVjZzy6iIXpjKWlSg3XQTlNBf0G2IBCEFVhdWEqOcQpIrBbM3YgmWEBniVc0u6sYMRi6DIVGoy+nefu+v++2c2KCRtVmdu8N5+Jwv5zyPCeusi/7gyQrkVvuutobLlZnWA670PkpKssrcudHu/m9gbHL62Idw+I2uG9Rs3eQNXDv9uRRSNsFgcHJuaTHmkRUFFqttKuA7e/yfgdGJ6aOzsx/f1bjqsLKyCl0RqbW62h243Pbld6RkgsCDlxGWZb21ddsRjyfApJZRabWFBrvPnfgrEBx/2zwX+fS+vnE/FE1HIpkGz7FQRYbaHc7dt7raFn5F/khw8+7ziKap3r376pFmWKTTDARRgsiuwmzZ8Hqot6OlLHD/WahpPhqdOXjoMGAyg+F4MAxXAHRNySO02l67q9/fvvQTWZOgZ+DpLEw4UN/QCElWwfECOE4oAIZhQMjEUWGuCA33dRbfogjcfjzRtPhtYab5SDPMlVbIsgpeFMHzIiRJhqbrMLIauFSM2jbX7Bz2X/ieT1EErvePRGxVNq/b7YaezRUAQZIgCBIkWYam6aCUgk8tg5ro1MNAV6EvikCn/17G4/E47PaN0HQDiqpClGSIoox8M6mqBkIIdE0Gl44nnwx1u9YAZy71nAeBz+lyxrbWbauyWGyObI5skSQFgsBlBI7P8GxKkUVuh0EM3/jI4MAaIL9p7fDtoTo5ZRDaAkoacsRwUULyNycIIVFK6SuSNY29GA18LfkL601mubMffcY3ICmUgnoAAAAASUVORK5CYII=",Zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAnZJREFUOE+lk9tLFGEYxp/ZOe23swcNz6GWgYQtwRYiSPa/dLC8CMpTohQFlZbrSnTA1CKJqP/DG2/qLrzoQpBWN3UPM7Nz3pmdmE/WLCqiXvjgu3l+7/Fh8J/B/KyfnF7qthxvxbLtlGNXwoAPlmVNjuM+MGAvP5+59vmw5gfA+P2ltKrqo82N9UxLUwMICcNxKijKKnb38pAV1Q+L4czCo+HxGuQAEIg1TR/rTZ1Cc8MRsGwInleFadvQdBNq2cBeoYRsdgthQZxbSI9SCAVMTi+eLMr6et/ZJNPe1gRCRHAsC9fzYJo2lLIOWdFQUjTkizJy21s+iUWSizNj6xQwfHdhNSaRgb4zSSQSEiQSPgDopgVF0VGQVRTlMhRVw3YuB8/z1l5mJvopYGhi3jjd0026OttQl4hSQC0CQJC9UFLpk1UNpZKCQmHXevPsDqGAizce+ufP9aKxPvFXFeiGhezmBt4tPWAo4ML1Gb+/L4X6uhgSMemPM1A1A7Zl48vmhv9+eTpEAYOjs0bXsQ7S2tKAqERARPGXWwjEQXbTNJDfyVlvX9zbb2HoZmZVFIWBE8c7ESEiBIEHGwrBq1bpHRimTYXBPCoVF8X8LtxKZe3109v7Q7w6+aTH0pRPHe3tTDweA89zCDEMqr5PBbZTgWU79O84Nr5ubfrxeDy5mJnaXyOFjKfTpmmMtbQehRQhYBgGvu/D9apwXQ/VoBrbwk4uCxKJzL16fOv7IdUgV0Zn53S9PCJJMSYSjUIQhMAKNKtWVlAuK340GsvUxAeXeNgcgyOZbs8zVhzbSbmuE/YBcBxvcjz/UeD5S8vzU7830784+xu5iGQg9wAmPgAAAABJRU5ErkJggg==",tu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAnxJREFUOE+lk29Ik3EQx+/uN7eJ5SSwV5kQvpJIWFFkxObEWWpL3TSNaUvXGiIpatTU8DEKCQsTXZbaH5qZ9KCFRjYlit74pnqTRoUgWkoYqcmGuebzxCYbpohB9/Luvh/uvtwh/GfgRvrkTEsCEjYi0dSSTMwfcNycXqlZF6DNMCchQjMSRRGxa4AoZcTyEKmkt7ORD0DWAJJ0BTogaCSiKCQakyAkPuVbJ3yCo3kl+xDoLiM2LAhQ/NhxdToIUOuMMRJgZUjMTEQhSOwBuqWF/f1NiytHNpk4uQvdtYjMSMhKUZNqjAeiciJKR6SPSMQTsUhEUAFIE/r5pu+rfTKYbAdJgq+JqBg1R06MEGEsE0J2OvvaRgLNaTlFHCAZlrz4FyTXWn1awiQNvz3e0K62S+hfISm9QBx8cmeNH7rjZziGzCCRehPA9W1GHhnbLJNJTbn6VHm7owce3rq4DNBmmsWBnnasqmsdFgF5UVzi6yqtH3y1jPxykYhGwsLC5rdGblHqdVqZXCaD+uZ70NlSuww4pLeIz7tbfQAxsMJlm8Vf05vOijE7ovsiFOEpWs0BRkQgCAI0tHRAx42aZcDhLKtPmKhUKl+sBhhOnhOrKqxBH38teqCr2zk6M/fzusN+we4HpGQX+caEuLhdwcbABNmFNtFWZvHnZ+fm4VHv4FeXy13QYa8Z9OWCxqUZS9Wb5KH14YrNeyIUioWx8Yks/vaVZ8dOVQnnS80w/mUKnC+HJt0uj+a+vfLzupdoMFWoAYlDYioieotIu5M18fDu/afRHzMLeztbbLP/9As55mo1EHJEpIrevu3NkGdy/yuO864+qg2/caNv/QMdv9RA9tcFJwAAAABJRU5ErkJggg==",eu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABTJJREFUeF7tmm+IVFUYxp/35oegfyQFRR8iqKiMij5EUVQWFZlUO/ecNlmjtUCygsIPskp/NiqrDyEkmFFB/zTqvGdc2CVtIVoqFImoUEuLdqOiUstKR9Ny5o3ZNlht595z7j1zZ1bdTwP7vs/zvL97zsy9Z4ZwmP9R0vxdXV3H79279zIAU621bx6KrBoC0FqfVxN5G8C00cGJPo6AR4wxaw4lEA0BxFp/BJHLDx5WgIfLzE8cKhAaAlBabxeRkyYclKgvAnqMMVsmO4jGK0Cp3wGc0HBAou9JZCEzr5jMEJK2wAaInO8w3BLLPN+hri1LklbAOwBudEpN9MHYaljrVN9GRY0BxPELIJrrkXWPAD1l5qUePS0vbQigpNRDBDyeIeGrlnkOAMnQW3hL0gq4E0SvZEy0iYAeZh7I2F9YW9KN0DU1kffyJBGgt8z8WB6NZvcmrYCzQPRVgAADEdFsY8wfAbSCSzQE0N3dffSuSuXPQI4/QWSBtfaNQHrBZBIfhmKltgE4OZgb8JxlfiCgXm6pZABafwKRi3O7HCiwNiKaZYz5LrBuJrm0FdAH4JZMyslN+wiYz8zLmqDtJZkMII6Xguh+L0WPYgFWlJlne7QEL00EUFJqAQHPBHc9UHBzrVrVq1at2thknwnl01bALBCtLCKYAIvKzE8V4TXeIxFAh9ZXRCIfFhhqtWWeUaAfkrdAqXQ6RdG3RQYCsI2ADmYu5MkyEUBvb2+0YePGasEA/rUTedpau7DZ3okA6uaxUj8AOK3ZQRror7fMlzbTOx1AHK8DUVNDpAxYjYhmNus0Oh2AUvWjcd3Mq+CiTcAyZr7PpdanJh1AHD8LonY58/v6r337Lurv79/jM2RSbSqAklIPErAklGEIHSG6vWzMWyG0UgHEcRyDiEOYhdQIdRudCuBWrS85SmR9yPABtXZERNOMMT9n1UwFUCqVTqUo+jGrQSF9InOttS9m8UoFMHovEMd/g2hKFoPCeoj6rTE3+/q5AVBqGMAZvuKtqLfMTjP9l82pWCk1JMBVrRjI29PzFtoJQKzU6wBaenDhAWLIMk93rXcCoJRaLEDTH0xcQ6fUhQcQaz0PIi0/v3MBRMB0Zh5yqa3XuK6AmQL0u4oWWUfAbgHqZxbrCVjJzF7fZjkB6OjsvDCqVj8rcrDxXgL8QiIjIBoRYIRE6gOP1KZMGflt69bhoaGh/VmzOQHQWk+tifya1cSxr/49Qf3jdhhEw6jVRl9HUTRsjNnuqOFd5gSgrqqUqghwjLfDxA2bQNQvwDqJos15r2KeTM4AYqW+BHBOHrOx3k0R0W3GmC8CaOWWcAaglBoU4LqcjhUCbijqwNMlqzOAWKmXAdzlItqwRmSetXZ5Lo3Azc4AlFK9Ajyaw3+5ZZ6Xo78prc4ASlrfTSIvZUyx1jL/71enGbWCtjkDUEpdL8C7GdwrELnSWvtpht6mtzgD6OjsPDeqVv3fudtw34+n6gxAa31sTWSX5yVpy32fCUC9KVZqB4ATHSG07b7PA+BzABc4AKjs2rnzlMHBwd0OtS0tcd4CY7fDAwLclJaYgBnMvDqtrh3+7wUgVup5APckBvc8kmo1BC8ASqlFAjyZEHpS7PvM7wElre8gkdcaAKhY5uNafUV9/X1XwNUCvD+RSXX//jP7+vq+8Q3Q6novAKMfhXG8BURnjw8uRHPKxmT9ZXlLGXgDGPuucDGAa+s/piaRe33P4Vo68UHm3gDaKXyILEcAhKA4mTWOrIDJfPVCZD/sV8A/RO+4UIBMrFcAAAAASUVORK5CYII=",nu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAqFJREFUeF7tmrFv00AUxr+LnQyBtYKxKGUBJiYkBgoTKwsMXasMTEnknOOJssSyE2VjZERIZemGmOjAAEMlFpgqwYrEwB+A/dChGFUhqc52LnbtFylKhnfv3ve7d+/OvhOo+UfUXD8YAGdAzQloTYHJZPLMsqxXg8HgtGq8zgUwnU5vxHH8JREdRdE1z/O+VwnCuQDUyBPRQSJYCHEwHA6f1xaAQeGfiegjER2NRqN3Bvv5z3WqDNhEYET00nXd/U30pfooHYC58KGUcroJCGUFgEajcdNxnK+mIZQWwKYKbmkBADiWUt6vbQYwAM4AngJcA7gI8irAyyDvA8q2ETpOGdBuSvuz5sWvAr7vb1uW9S2JqtVqXe31ej90RC221WmzYFM8ABXQbDbbiaJoL8s7wTAMKYPwpEk5AOQQAAbAGcBTgGtAjhrCRbDwh6Eco/e3Ka8CvArwKpB5FSCiU9d1r+edhr7v73qet/IZRut4PGsQOWuA6vaxlPJNlv7H4/GWbduHANQD2Scp5Z1lfsoOQJ0QbTmO8zMthCAIngohXiTtVh20lB6AEkBEIyGEuqfwm4guA7ikvkKI5H+biNpCiH+/ANoAHlQCQNrRX5rqK+42XIgMYABrIHCha8Aa9IMBcA1YfsGLi+A65tcqH2EYngC4bbIPXd9F1YAJAEc3SJN2RQF4COCtSWG6vgsBMH8pIgEEuoGasisMwByCOl3aNiVOx2+hAOYQPgC4qxOsCZvCAZyZDk8A3ALQMiF0lc9SAEiC63a7zU6nsxPH8RVTEGzbvqdz093oRsiUOB2/6lWYZVnvE1sieuS67tFi28oCUEKDINgTQqib56+bzeZhv9//VSsAOplS6QxgABoEOAM0IFXahDOg0sOrIa72GfAHtcd7UEKK8f4AAAAASUVORK5CYII=",ru="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAB4FJREFUeF7tmn2MVFcVwM95s9ABQpe2WMRq3NqKbbCW1iakkTRoQdKYYD9p0hiBEF2EOpTu3HNnVpRBG3befbsz6yZGSQkibZN+hIqGNKYN/QiVEJKmwWCDEtviVw1+NGt1WOfrmENmyEh39937ZmaZCvfPmfN1f+/ce8877yJc4AMv8PnDRQAXM+ACJ9CyJZDNZpfEYrFNzHwvADzDzDmt9eFO59s0gIGBgcu6urq+y8wPnjtZgQAAea31HzsVRFMAgiB4iJm/BQBzJ5ngHxAxp5Qa7kQIkQD4vr8cEQ0ALLKdFCIekowgor22OlMhFwmAMeYlAFgaMcCnEHG7UupXEfVbqhYJQBAEy5g5CwCfjRhNFQAkG1RE/ZapOQMYGBhYmk6nX5YIstlsr+d5AmJOxIhOyiZJRN+PqN+0mhMAY8waAPgxALzMzLK7/3zHjh3TRkdHHwEAihoNIr4KAN9WSp0BO5XDFcA2APhOPUBEfKxcLufT6fTrxphPAsAAANwTdQLM/OSMGTPWJBKJ/0S14arnBMD3/UcQUY69xjEm67lQKGzNZDJlY8wXETHLzDe5BlOTLyNiXikVOaNc/DoBCIJgOzOnJ3Bworaefyj/Dw4Orq9Wqz4AXOoSUF2Wmd8GgD6t9bNR9G11XAHIk9Uhxl+sgdifz+fnlEolyZikbUDjyB2cNm3a/Zs3b36nCRsTqjoBMMYEDpPZg4hKKXXKGCMFk+wddzUxiV1EtK4J/XFVnQD4vj+EiA87BFGonRZbRCcIgi8DwDZmvtHBRqNoCQA2ENHOiPrvU3MCYIyRen6Tq3Nm/q2UDVprOULBGCM2vgcAs11t1eTfrFarK1Op1K8j6p9VcwUwAgDfbMLpAc/zHkwmk8dzudxV5XK5DwA2N2FvHxE1s6zcWmK+7/8AETc0EXBddTcRra1lw+dq+8qdTdjVRCQvZ87DNQPkiFvv7GV8hX8z81at9VBtf3iAmVMAcENE+1I8LSeigy76rgB2AMDXXRxYyB6PxWLr+vr6Do2MjFwyNjYmy6IfAGZZ6L5PhJnv0lrvs9V1AuD7/k5EbPlRVAv2BaXUCkTkoaGhBZVKRUA4w/Y8b2EymXyjLQCCINjFzGfWbhvHdiI6U27XyuqHmXlFmD9mHmbmTCqVGg2TbfzfKQOMMT8BgK+6OIgo+x4APEBE+2v7w9eYWTLiU+PYexwRA2mw+L7/eUR8CAD+Ud9kw/y7AngMAL4SZrRV/yPi0VKpdHt/f//fc7nc5bVjUwqxOABIV0qaKvuHh4fnFYvFTH2DlmWklPJs4nAF8IQ8GRvDLZb5ERF9Q2wODQ3dVCwWu+tNGWOMvGfIpnlZg88KEXXZxOAK4EkAuN/GcJtkVhPRnvr+INU1AHxmHF8lIppuE4MrgKcB4D4bw22UWUpErxhj3gKAngn8jBHRDJsYnAD4vr8XEe+2MdxGmduk2DHG8EQ+mLmgtbaqI5wAGGN+CgDNlKyt4LKEiH45GQAAeI+IrBoxrgB+BgArWzGLqDaY+Vb55hgCYJSIrDrVTgB839+PiF+KGnwr9Jh5sdb6SAgAqQOusPHnCuA5RLzDxnC7ZDzPuyWZTL4WAuBvRPQhmxicAARB8AubstTGcVSZWCx2c19fn7ThJ9wEAeAUEc2z8eEEwBjzAgAsszHcLplqtboolUodnQwAIr6jlPqITQyuAA4AwBdsDLdLBhFvUEodC8mAPxHRR21icAIQBMFzzHy+94Azr7shAH5PRB9vOQAx6Pv+84i43MZ4O2Q8z7teeoohAN4moqtt/DtlQN1gNpu90fO85wHgShsnLZZZQEQnQirBN7XW19j4jQSgbtgYI70B6RFM5biWiH4XkgEniGiBTVBNAag7iPDBxCa2cWUQ8RNKqbdCAPyGiK6zcdISAOLIGPNhAHgcAG63cRxVplgs9mzZsuVkCIA3iGihjY+WAWhYFtLnl67sZDfHbGIbV4aZPybX7kIAHCMiq/Z6ywE0LIu1iLgr8kwnUGTmq7TWfw4phI4qpaxusLUNQO3InI2I8g3Q+XviJODmE9FfQgC8rpS62QZ+WwE0LAt5GvkmrtadnUs8Hr8ykUj8NWQJvEZEt3QMgAYQcn/o0XMamDZxnpUpl8tzpUscAuAIES22MTwlGdAYSCaT8WbOnCmdXLk+4zwqlcrl6XT63RAAh4noVhvjUw6gHlQul7u2XC4LiF6bQOsy8Xi8O5FI/DOkEjyktZbTKHScNwD1yAYHB1cwcz8z3xYarXwxnTVr9saNG/8VkgEHicjK3nkH0ABiQ7ValXuGkzYzC4XCrEwmUwgB8AoRWd1l7hgAAiKfz8+XZcHME95DisfjcblIGXIMZpRScqkzdHQUgIZsWFKtVmV/kEtV/zO6u7un9/b2liYAcLxSqdyRTqfljqHV6EgADSBW10B8uv5bT09P16pVqyrjAFhLRLutZt0g1NEAJM6RkZFLT58+nUREyYh3a60ubgCwu1KpbHN56o2QOh5APdhzvwoHQbCVmU9GeeofSACuqW0r/4HJANsJucpdBOBK7P9N/oLPgP8CSYLuX3zkuqgAAAAASUVORK5CYII=",iu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAodJREFUeF7tmrFqVUEQhr9bqCk1rYUhoLFTsE2hYJnkFfQdLCw1pYXvoK+QpBS0sNBCEBtBTLQQwUYF0xgJkT/uwvXes7tn751ADjsLyy3OnDmzszOz//53RjQ+Ro2vH3eAR0DjHvAUaDwAvAh6CoQUWALuGKXDOWAFeGekL6q5CuwBB0Z6nwKfYwR8AuSElsZX4GJ0wFFY+QsDD1wHzsu7YRqoPN4czZ/AWwOFN4OO0aQDbgHzOuE5oA88BDYNjJWKB0GfbJON8wzZJhs13AEeASEUYg3wFPAa4EXQT4Gmj0GBDIGNyXEWuALs9wA3NUBI8PYPsFs42GuAkGQXMrBZIE02duKAeQDGEN+dAkJPEjss9KQpeCuZ3Ki5DAktasTfnN6+l6G7ATYrlbvSWREimSokaAlFxxcZ8YfltbwExWeCwu4Aw8uIR8CYBzwFYjEyPEK8BhT4CC+COUJkA3jZEY73AU09k4zV+B4ULVopBLaAVeBRmJOq9UwyjgS7KDHDjRiEqikonEqBmtWUQrBGV5S1TMFsCjgl5pSYU2JOiTVNiXkRbL0IPgY+JA5qEYnvgd+Fg/xeIFC3gZ2C7CXgEPhSkFsD1oNtsjE3RIheA14nhETuykaHwjVQWJ0Zy8AP4E1hBySnXfjYo5vjdtD1rKBTRKtI0V+B7s6J3wAuZAQU4YqCzghIFUHnBJ0T/MfdW3RojEenc4IxF2e5IibecU7QOcF8k5aTorN0iTVzDKZugjX/z9fUM4GWM8CrmpcKspfVARpg+7eE7FSjZPOtsn2apfv+P2+4mSeq6r9m6RP90mlWbtmYcJrXmbTNHTDIbTM02iPA0JmDVOURMMhtMzS6+Qj4C+KWPFAcAeqBAAAAAElFTkSuQmCC",ou={splitImg:Nc,closeImg:Fc,layOff:jc,pointImage:Hc,billboardImage:zc,layOut:Rc,labelImage:Uc,polylineImage:Vc,curveImage:Yc,polygonImage:Gc,rectangleImage:Qc,circleImage:Wc,cubeImage:Kc,polygonCubeImage:qc,boxImage:Xc,cylinderImage:Jc,coneImage:$c,ellipsoidImage:Zc,modelImage:tu,mouseImage:eu,polylineVolumeImage:nu,corridorImage:ru,wallImage:iu},au=ou,su={label:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInput",title:"文本",key:"text",value:"无标题"},{type:"MapgisUiSelect",title:"字体",key:"fontFamily",value:"微软雅黑",dataSource:[{key:"微软雅黑",value:"微软雅黑"},{key:"宋体",value:"宋体"},{key:"楷体",value:"楷体"},{key:"隶书",value:"隶书"},{key:"黑体",value:"黑体"},{key:"新宋体",value:"新宋体"},{key:"华文行楷",value:"华文行楷"},{key:"sans-serif",value:"sans-serif"}]},{type:"MapgisUiInputNumber",title:"字体大小",key:"fontSize",value:30},{type:"MapgisUiColorPicker",title:"字体颜色",key:"fontColor",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiShowOutline",title:"边线设置",key:"showOutline",value:!1},{type:"MapgisUiInputNumber",title:"边线宽度",key:"outlineWidth",value:0},{type:"MapgisUiColorPicker",title:"边线颜色",value:"#F04155",key:"outlineColor"},{type:"MapgisUiSlider",title:"边线透明度",key:"outlineOpacity",value:100},{type:"MapgisUiShowBackground",title:"背景设置",key:"showBackground",value:!0},{type:"MapgisUiColorPicker",title:"背景颜色",value:"#F04155",key:"backgroundColor"},{type:"MapgisUiSlider",title:"背景明度",key:"backgroundOpacity",value:0},{type:"MapgisUiInputNumber",title:"背景边距",key:"backgroundPadding",value:5},{type:"MapgisUiSelect",title:"水平位置",key:"horizontalOrigin",value:0,dataSource:[{key:1,value:"靠左"},{key:0,value:"居中"},{key:-1,value:"靠右"}]},{type:"MapgisUiSelect",title:"垂直位置",key:"verticalOrigin",value:1,dataSource:[{key:-1,value:"居上"},{key:0,value:"居中"},{key:1,value:"居下"}]}],point:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"半径",key:"pixelSize",value:20},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiShowOutline",title:"边线设置",key:"showOutline",value:!1},{type:"MapgisUiInputNumber",title:"边线宽度",key:"outlineWidth",value:0},{type:"MapgisUiColorPicker",title:"边线颜色",key:"outlineColor",value:"#F04155"},{type:"MapgisUiSlider",title:"边线透明度",key:"outlineOpacity",value:100}],polyline:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiSelect",title:"填充类型",key:"materialType",value:"Color",dataSource:[{key:"Color",value:"实线"},{key:"PolylineDash",value:"虚线"},{key:"PolylineArrow",value:"箭头"}]},{type:"MapgisUiInputNumber",title:"线宽",key:"width",value:10},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiSwitch",title:"是否为曲线",key:"isHermiteSpline",value:!1},{type:"MapgisUiLoop",title:"是否闭环",key:"loop",value:!1},{type:"MapgisUiSelect",title:"高程类型",key:"elevationMode",value:2,dataSource:[{key:2,value:"贴地形/模型表面"},{key:0,value:"贴地形表面"},{key:1,value:"贴模型表面"},{key:-1,value:"绝对高度"}]}],polylineVolume:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"半径",key:"width",value:10},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiSelect",title:"拐角类型",key:"cornerType",value:0,dataSource:[{key:0,value:"圆角"},{key:1,value:"方角"},{key:2,value:"斜边角"}]}],corridor:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"宽度",key:"width",value:10},{type:"MapgisUiInputNumber",title:"墙体高度",key:"extrudedHeight",value:100},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiSelect",title:"拐角类型",key:"cornerType",value:0,dataSource:[{key:"圆角",value:0},{key:"方角",value:1},{key:"斜边角",value:2}]}],curve:[{type:"MapgisUiInput",title:"标题"},{type:"MapgisUiInputNumber",title:"线宽"},{type:"MapgisUiColorPicker",title:"颜色"},{type:"MapgisUiSlider",title:"透明度"},{type:"MapgisUiColorPicker",title:"背景颜色"},{type:"MapgisUiSelect",title:"类型",dataSource:[{key:"实线",value:"实线"},{key:"虚线",value:"虚线"},{key:"箭头",value:"箭头"}]}],polygonCube:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiInputNumber",title:"高度",key:"extrudedHeight",value:40},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0}],polygon:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiSelect",title:"填充类型",key:"materialType",value:"Color",dataSource:[{key:"Color",value:"纯色"},{key:"Image",value:"图片"},{key:"flash",value:"闪烁"}]},{type:"MapgisUiInput",title:"图片",key:"image",value:""},{type:"MapgisUiInputNumber",title:"X轴重复",key:"repeatX",value:1},{type:"MapgisUiInputNumber",title:"Y轴重复",key:"repeatY",value:1},{type:"MapgisUiInputNumber",title:"纹理旋转角",key:"stRotation",value:0},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiSelect",title:"高程类型",key:"elevationMode",value:2,dataSource:[{key:2,value:"贴地形/模型表面"},{key:0,value:"贴地形表面"},{key:1,value:"贴模型表面"},{key:-1,value:"绝对高度"}]},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiInputNumber",title:"透明度",key:"flashAlpha",value:.5},{type:"MapgisUiInputNumber",title:"闪烁步长",key:"alphaSpace",value:.05},{type:"MapgisUiInputNumber",title:"闪烁时间",key:"flashTime",value:4e3}],rectangle:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInput",title:"文本",key:"rectangleText",value:"无标题"},{type:"MapgisUiSelect",title:"填充类型",key:"materialType",value:"Color",dataSource:[{key:"Color",value:"纯色"},{key:"Image",value:"图片"},{key:"text",value:"文字"}]},{type:"MapgisUiInput",title:"图片",key:"image",value:""},{type:"MapgisUiInputNumber",title:"X轴重复",key:"repeatX",value:1},{type:"MapgisUiInputNumber",title:"Y轴重复",key:"repeatY",value:1},{type:"MapgisUiInputNumber",title:"纹理旋转角",key:"stRotation",value:0},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiSelect",title:"高程类型",key:"elevationMode",value:2,dataSource:[{key:2,value:"贴地形/模型表面"},{key:0,value:"贴地形表面"},{key:1,value:"贴模型表面"},{key:-1,value:"绝对高度"}]},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiSelect",title:"字体",key:"rtFontFamily",value:"微软雅黑",dataSource:[{key:"微软雅黑",value:"微软雅黑"},{key:"宋体",value:"宋体"},{key:"楷体",value:"楷体"},{key:"隶书",value:"隶书"},{key:"黑体",value:"黑体"},{key:"sans-serif",value:"sans-serif"}]},{type:"MapgisUiInputNumber",title:"字体大小",key:"rtFontSize",value:30},{type:"MapgisUiColorPicker",title:"背景颜色",key:"rtBackgroundColor",value:"#FFFFFF"},{type:"MapgisUiSlider",title:"背景明度",key:"rtBackgroundOpacity",value:0}],circle:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"半径",key:"radius",value:20},{type:"MapgisUiSelect",title:"填充类型",key:"materialType",value:"Color",dataSource:[{key:"Color",value:"纯色"},{key:"RadarMaterial",value:"雷达波"},{key:"CircleWaveMaterial",value:"动态圆波"}]},{type:"MapgisUiSelect",title:"高程类型",key:"elevationMode",value:2,dataSource:[{key:2,value:"贴地形/模型表面"},{key:0,value:"贴地形表面"},{key:1,value:"贴模型表面"},{key:-1,value:"绝对高度"}]},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiColorPicker",title:"材质颜色",key:"materialColor",value:"#F04155"},{type:"MapgisUiSlider",title:"材质透明度",key:"materialOpacity",value:100},{type:"MapgisUiInputNumber",title:"速度",key:"speed",value:1},{type:"MapgisUiInputNumber",title:"动画时间",key:"duration",value:2e3},{type:"MapgisUiInputNumber",title:"倾斜度",key:"gradient",value:.5},{type:"MapgisUiInputNumber",title:"圆波数量",key:"count",value:4}],square:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"高度",key:"extrudedHeight",value:100},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0}],box:[{type:"MapgisUiInput",title:"标题",key:"title",value:"盒子模型"},{type:"MapgisUiInputNumber",title:"盒子高度",key:"extrudedHeight",value:40},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiColorPicker",title:"填充颜色",key:"color",value:"#FF0000"},{type:"MapgisUiSlider",title:"填充透明度",key:"opacity",value:100}],cylinder:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"顶部半径",key:"topRadius",value:0},{type:"MapgisUiInputNumber",title:"底部半径",key:"bottomRadius",value:0},{type:"MapgisUiInputNumber",title:"圆锥高度",key:"extrudedHeight",value:0},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100}],cone:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"半径",key:"radius",value:20},{type:"MapgisUiInputNumber",title:"圆柱高度",key:"extrudedHeight",value:100},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100}],ellipsoid:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"X半径",key:"radiusX",value:20},{type:"MapgisUiInputNumber",title:"Y半径",key:"radiusY",value:20},{type:"MapgisUiInputNumber",title:"Z半径",key:"radiusZ",value:20},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiColorPicker",title:"填充颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"填充透明度",key:"opacity",value:100}],model:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInput",title:"URL",key:"url",value:"http://localhost:8080/assets/glb/tree4.glb"},{type:"MapgisUiInputNumber",title:"比例尺",key:"scale",value:1}],wall:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiSelect",title:"填充类型",key:"materialType",value:"Color",dataSource:[{key:"Color",value:"纯色"},{key:"PolylineTrailLink",value:"流动纹理"}]},{type:"MapgisUiColorPicker",title:"材质颜色",key:"linkColor",value:"#FFFFFF"},{type:"MapgisUiColorPicker",title:"材质颜色",key:"materialColor",value:"#F04155"},{type:"MapgisUiSlider",title:"材质透明度",key:"materialOpacity",value:100},{type:"MapgisUiInput",title:"材质贴图",key:"image",value:""},{type:"MapgisUiInputNumber",title:"动画时间",key:"duration",value:2e3},{type:"MapgisUiSelect",title:"流动方向",key:"direction",value:1,dataSource:[{key:1,value:"从左到右"},{key:2,value:"从右到左"},{key:3,value:"从上到下"},{key:4,value:"从下到上"}]},{type:"MapgisUiInputNumber",title:"墙体高度",key:"extrudedHeight",value:100},{type:"MapgisUiLoop",title:"是否闭环",key:"loop",value:!1}],marker:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInput",title:"图片",key:"image",value:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABdFJREFUeF7tWm2IVFUYfp4dyRX6cCmcO6s/hDAKNHALLAtSCFPMSq2ICiyJPiydM1vZF5H1Q0vdnTtGZoSZUESUWn5URlRQmUK4RoISURHp3IvZWgmt5ewbd5yJddm999xzz8yAuxfm133e93neZ95zzj3nXmKIXxzi9WPYgOEOGOIODA+BId4A9Z0E065MgWAOiRYCLQK0BH8AgW4JfoJuENt8xT31+mNqPgQynXK5pDAbgpsBTNQsbD+Id1nCjmI7v9GMMYLVzIB0Xq4FsYDAnUbKKkECvAHBRj/HT5LkGSy2JgY4edkEYp5VwYLNXo7zreY8NfzsXo4rewFMtpv1/2xdnmKbzdxWDUi70k1gtE2B/XMJcMxXLE+eNi5rBjiuHABwsQ1RGjkOeoqXaOAiIVYMSLuSJ6Ai2SwCBHB9xVzSlIkNcAryDATLkgoxiieWeVk+axRbCUpkQPpFmcQSdgE421DEwUqc6dA5LilM9RfzO0P+ZKuAU5DXIVgQg9wHsEoEXSeAvcdyPBbEjs7L6JFAG1lePR4FkNbOSWz0srxLG98PaNwBmU6ZKU34UJdYiI9PlrDwaDsPhcWc3yljR6TwGgUzdHOzF7OK7fxIF98XZ26AKysEeFyHtEkw93CO7+lgq5jWvNzUS2zRiSHwfFHxCR1sf4yxAY4rXwO4IpI0wUQVY4Ld7SleGallAICRAcGYbSa6NQj3eIrRJoUkclzZDWBKFFePoKU6p0RhEw+BTEFmikSPfwFu9BW3xhHUH5t25QYC70flIDGrmI0/Dxh1gOPKIgAvRYkSwYV+jj9G4cLut66WC3pH4IhGjgc9xbUauNMgpgasBvBwBNlxT/GcuIIGwjuufAvg0ohcHZ7iI3H5jAxIu7KZwNwIsv2e4qS4ggY0oCDrIVgYlkuALb5i7C24kQGOK9sAXB8haJ+vaGVb7LjyMoD7Q80U7PByDNU0ULyRAZm8vCrEPREGWNu26iy5BNYXFUM1WTPAKchzEDwd1d4nBa2/5ViMwoXdH79Bmnv+KC+5zWE4AsuLik/F5TLqAN1VoCmFqw8v5ldxRfXFj+mQqU0pROYQIOsrronLZWRAJi/zhNgURRY8//tZXheFC7ufLshOnX2BALf5im/H5TIyIF2QiRRobUFJrChm+WRcYQE+U5DlItB7xhdM93L8PC6PkQEBSdqV7wlM0CH0FI14HFdEJz+AvzzFczWxp8GMhAUZHFdWVvbuWrwUzC/muFkHrDvEqrkIvFVUvF0nd3+MsQFxzwMCYiHeFGDtWSV0/drOv/uKGdcpo/5JYTKBRRTcEasYYqGX5YZYMRWwsQHjl0lzTwt+gsAxID4BYD8FXRVjggem4LXZSINcKPViwpF2/mASa2xAeR7Iyysk7jUhthhjfBYQaEhkQKYgl4mgpi8vNYwy2gX2mT80KEIgDe6CA83noe3nu9ljWkWiDqis1Y3sgqWe4irT4hMPgSpxg7rgl9QItB16iEcbbsDYDrmolMIXAMYkERMrNsFha1+exEOgmiyTl3YhOmIVYQ7+0mvFNNzKknmKU5HWDAiSOa58CmB6UlFR8QRmFhV3RuF07ls1oHWNzOjthRVhg4oXrPZyDF6fWbmsGlDugry8AGKpFXX9kgiw798mXPP7Ev5pK791AypDITgriH1AGVHUCRCzvCw/s1W89TmgKmxcp4w92YQPNI6y9WsRLPJyDA5HrV416YDKUJgGlk0YlVQxBYVijjX5AqVmBgRFZ1y5T4B1CQ3Y7inOSZhj0PCaGlAxoSDAEpMCgknP1ruFwfhrbkB5OBRka/CNcEwTjniKNX+yrIsBFRO2QzBb0wRr7xWj+OpmQMWEtRA8ECZKgF2+4lVRwm3dr6sBFRPCPqtb5ymGGmSr8GqeuhswqAmClV6Oj9kuMCpfQwzoY8ItZYHEO0k/eIwqtKGrgKm4esQ1rAPqUZwOx7ABOi6dyZjhDjiT/12d2oZ8B/wH/E/KUC7IGC4AAAAASUVORK5CYII="},{type:"MapgisUiInputNumber",title:"图片宽度",key:"width",value:40},{type:"MapgisUiInputNumber",title:"图片高度",key:"height",value:40},{type:"MapgisUiInput",title:"文本",key:"text",value:""},{type:"MapgisUiSelect",title:"字体",key:"fontFamily",value:"微软雅黑",dataSource:[{key:"微软雅黑",value:"微软雅黑"},{key:"宋体",value:"宋体"},{key:"楷体",value:"楷体"},{key:"隶书",value:"隶书"},{key:"黑体",value:"黑体"},{key:"sans-serif",value:"sans-serif"}]},{type:"MapgisUiInputNumber",title:"字体大小",key:"fontSize",value:30},{type:"MapgisUiColorPicker",title:"字体颜色",key:"fontColor",value:"#F04155"},{type:"MapgisUiShowOutline",title:"边线设置",key:"showOutline",value:!1},{type:"MapgisUiInputNumber",title:"边线宽度",key:"outlineWidth",value:0},{type:"MapgisUiColorPicker",title:"边线颜色",value:"#F04155",key:"outlineColor"},{type:"MapgisUiSlider",title:"边线透明度",key:"outlineOpacity",value:100},{type:"MapgisUiSelect",title:"文字相对图片位置",key:"labelPlaceType",value:"topCenter",dataSource:[{key:"topLeft",value:"靠上靠左"},{key:"topCenter",value:"靠上居中"},{key:"topRight",value:"靠上靠右"},{key:"centerLeft",value:"垂直居中靠左"},{key:"center",value:"垂直水平居中"},{key:"centerRight",value:"垂直居中靠右"},{key:"bottomLeft",value:"底部靠左"},{key:"bottomCenter",value:"底部居中"},{key:"bottomRight",value:"底部靠右"},{key:"leftTop",value:"左边靠上"},{key:"leftCenter",value:"左边居中"},{key:"leftBottom",value:"左边靠下"},{key:"rightTop",value:"右边靠上"},{key:"rightCenter",value:"右边居中"},{key:"rightBottom",value:"右边靠下"}]},{type:"MapgisUiInputNumber",title:"文字相对图片间隔",key:"labelPadding",value:20},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:10},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100}]},cu=su;function uu(t,e,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=e||{},r.geometry=t,r}function lu(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!du(t[0])||!du(t[1]))throw new Error("coordinates must contain numbers");var r={type:"Point",coordinates:t};return uu(r,e,n)}function hu(t,e,n){void 0===n&&(n={});for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}var s={type:"Polygon",coordinates:t};return uu(s,e,n)}function du(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}var fu=n("a230"),pu=n.n(fu);function mu(t,e,n){if(n=n||{},!vu(n))throw new Error("options is invalid");var r=n.bbox,i=n.id;if(void 0===t)throw new Error("geometry is required");if(e&&e.constructor!==Object)throw new Error("properties must be an Object");r&&yu(r),i&&bu(i);var o={type:"Feature"};return i&&(o.id=i),r&&(o.bbox=r),o.properties=e||{},o.geometry=t,o}function gu(t,e,n){if(!t)throw new Error("coordinates is required");for(var r=0;r<t.length;r++){var i=t[r];if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var o=0;o<i[i.length-1].length;o++){if(0===r&&0===o&&!Au(i[0][0])||!Au(i[0][1]))throw new Error("coordinates must contain numbers");if(i[i.length-1][o]!==i[0][o])throw new Error("First and last Position are not equivalent.")}}return mu({type:"Polygon",coordinates:t},e,n)}function Au(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function vu(t){return!!t&&t.constructor===Object}function yu(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!Au(t))throw new Error("bbox must only contain numbers")}))}function bu(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}function wu(t,e,n){if(null!==t)for(var r,i,o,a,s,c,u,l,h=0,d=0,f=t.type,p="FeatureCollection"===f,m="Feature"===f,g=p?t.features.length:1,A=0;A<g;A++){u=p?t.features[A].geometry:m?t.geometry:t,l=!!u&&"GeometryCollection"===u.type,s=l?u.geometries.length:1;for(var v=0;v<s;v++){var y=0,b=0;if(a=l?u.geometries[v]:u,null!==a){c=a.coordinates;var w=a.type;switch(h=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(c,d,A,y,b))return!1;d++,y++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===e(c[r],d,A,y,b))return!1;d++,"MultiPoint"===w&&y++}"LineString"===w&&y++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(i=0;i<c[r].length-h;i++){if(!1===e(c[r][i],d,A,y,b))return!1;d++}"MultiLineString"===w&&y++,"Polygon"===w&&b++}"Polygon"===w&&y++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for("MultiPolygon"===w&&(b=0),i=0;i<c[r].length;i++){for(o=0;o<c[r][i].length-h;o++){if(!1===e(c[r][i][o],d,A,y,b))return!1;d++}b++}y++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===wu(a.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function _u(t,e){if(e=e||{},!vu(e))throw new Error("options is invalid");var n=e.concavity||1/0,r=[];if(wu(t,(function(t){r.push([t[0],t[1]])})),!r.length)return null;var i=pu()(r,n);return i.length>3?gu([i]):null}var xu=_u;function Su(t,e,n){if(n=n||{},!Lu(n))throw new Error("options is invalid");var r=n.bbox,i=n.id;if(void 0===t)throw new Error("geometry is required");if(e&&e.constructor!==Object)throw new Error("properties must be an Object");r&&Tu(r),i&&ku(i);var o={type:"Feature"};return i&&(o.id=i),r&&(o.bbox=r),o.properties=e||{},o.geometry=t,o}function Cu(t,e,n){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Mu(t[0])||!Mu(t[1]))throw new Error("coordinates must contain numbers");return Su({type:"Point",coordinates:t},e,n)}function Mu(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function Lu(t){return!!t&&t.constructor===Object}function Tu(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!Mu(t))throw new Error("bbox must only contain numbers")}))}function ku(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}function Eu(t,e,n){if(null!==t)for(var r,i,o,a,s,c,u,l,h=0,d=0,f=t.type,p="FeatureCollection"===f,m="Feature"===f,g=p?t.features.length:1,A=0;A<g;A++){u=p?t.features[A].geometry:m?t.geometry:t,l=!!u&&"GeometryCollection"===u.type,s=l?u.geometries.length:1;for(var v=0;v<s;v++){var y=0,b=0;if(a=l?u.geometries[v]:u,null!==a){c=a.coordinates;var w=a.type;switch(h=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(c,d,A,y,b))return!1;d++,y++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===e(c[r],d,A,y,b))return!1;d++,"MultiPoint"===w&&y++}"LineString"===w&&y++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(i=0;i<c[r].length-h;i++){if(!1===e(c[r][i],d,A,y,b))return!1;d++}"MultiLineString"===w&&y++,"Polygon"===w&&b++}"Polygon"===w&&y++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for("MultiPolygon"===w&&(b=0),i=0;i<c[r].length;i++){for(o=0;o<c[r][i].length-h;o++){if(!1===e(c[r][i][o],d,A,y,b))return!1;d++}b++}y++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===Eu(a.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Ou(t,e){var n=0,r=0,i=0;return Eu(t,(function(t){n+=t[0],r+=t[1],i++}),!0),Cu([n/i,r/i],e)}var Pu=Ou;function Bu(t,e){if(!t)throw new Error((e||"geojson")+" is required");if(t.geometry&&t.geometry.type)return t.geometry.type;if(t.type)return t.type;throw new Error((e||"geojson")+" is invalid")}function Iu(t,e){switch(Bu(t)){case"Point":return t;case"Polygon":var n=[];Eu(t,(function(t){n.push(t)}));var r,i,o,a,s,c,u,l,h=Pu(t,e),d=h.geometry.coordinates,f=0,p=0,m=0,g=n.map((function(t){return[t[0]-d[0],t[1]-d[1]]}));for(r=0;r<n.length-1;r++)i=g[r],a=i[0],c=i[1],o=g[r+1],s=o[0],u=o[1],l=a*u-s*c,m+=l,f+=(a+s)*l,p+=(c+u)*l;if(0===m)return h;var A=.5*m,v=1/(6*A);return Cu([d[0]+v*f,d[1]+v*p],e);default:var y=xu(t);return y?Iu(y,e):Pu(t,e)}}var Du=Iu;function Nu(t,e,n){if(null!==t)for(var r,i,o,a,s,c,u,l,h=0,d=0,f=t.type,p="FeatureCollection"===f,m="Feature"===f,g=p?t.features.length:1,A=0;A<g;A++){u=p?t.features[A].geometry:m?t.geometry:t,l=!!u&&"GeometryCollection"===u.type,s=l?u.geometries.length:1;for(var v=0;v<s;v++){var y=0,b=0;if(a=l?u.geometries[v]:u,null!==a){c=a.coordinates;var w=a.type;switch(h=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(c,d,A,y,b))return!1;d++,y++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===e(c[r],d,A,y,b))return!1;d++,"MultiPoint"===w&&y++}"LineString"===w&&y++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(i=0;i<c[r].length-h;i++){if(!1===e(c[r][i],d,A,y,b))return!1;d++}"MultiLineString"===w&&y++,"Polygon"===w&&b++}"Polygon"===w&&y++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for(b=0,i=0;i<c[r].length;i++){for(o=0;o<c[r][i].length-h;o++){if(!1===e(c[r][i][o],d,A,y,b))return!1;d++}b++}y++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===Nu(a.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Fu(t){var e=[1/0,1/0,-1/0,-1/0];return Nu(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}Fu["default"]=Fu;var ju=Fu;function Ru(t,e){var n,r,i,o,a,s,c,u,l,h;function d(t){var e="";return t&&t instanceof Object&&Object.keys(t).forEach((function(n){e+=n+":"+t[n]+";"})),e}return t&&t.hasOwnProperty("containerStyle")&&(n=d(t.containerStyle)),e&&e.hasOwnProperty("containerClass")&&(s=e.containerClass),t&&t.hasOwnProperty("rowStyle")&&(i=d(t.rowStyle)),e&&e.hasOwnProperty("rowClass")&&(c=e.rowClass),t&&t.hasOwnProperty("titleStyle")&&(r=d(t.titleStyle)),e&&e.hasOwnProperty("titleClass")&&(u=e.titleClass),t&&t.hasOwnProperty("fieldStyle")&&(o=d(t.fieldStyle)),e&&e.hasOwnProperty("fieldClass")&&(l=e.fieldClass),t&&t.hasOwnProperty("valueStyle")&&(a=d(t.valueStyle)),e&&e.hasOwnProperty("valueClass")&&(h=e.valueClass),{containerStyle:n,containerClass:s,rowStyle:i,rowClass:c,fieldStyle:o,fieldClass:l,titleStyle:r,titleClass:u,valueStyle:a,valueClass:h}}function Hu(t,e){return t&&t instanceof Object&&t.hasOwnProperty(e)&&(e=t[e]),e}function zu(t){return"<div class='mapgis-popup-container "+t.containerClass+"' style='"+t.containerStyle+"'>"}function Uu(t,e,n,r){r.enableSeparate,r.separateMap;return n="mapgis-popup-row-container "+n,"<div class='mapgis-popup-title "+t.titleClass+"' style='"+t.titleStyle+"'>"+e+"</div><div class='"+n+"'>"}function Vu(t,e,n,r,i,o,a,s,c){var u,l="";function h(t,e,n){return"<div class='"+o+" "+t.rowClass+"' style='"+t.rowStyle+"'>"+c+"<span class='"+a+" "+t.fieldClass+"' style='"+t.fieldStyle+"' title='"+e+"'>"+e+"</span><span class='"+s+" "+t.valueClass+"' style='"+t.valueStyle+"' title='"+n+"'>"+n+"</span></div>"}if(c=c||"",t&&t instanceof Array&&t.length>0)for(var d=0;d<t.length;d++){u=Hu(e,t[d]);var f=r.properties[t[d]]||"无";l+=h(n,u,f)}else if(i){u=Hu(e,i);var p=r.properties[i]||"无";l+=h(n,u,p)}return l}function Yu(t,e,n,r,i,o,a,s){var c=t.fields,u=t.alias,l=(t.style,t.title),h=(t.class,zu(r));return l&&(h+=Uu(r,l,"",t)),h+=Vu(c,u,r,e,n,i,o,a,s),h+=l?"</div></div>":"</div>",n&&(!c||c&&c instanceof Array&&0===c.length)&&(h=h.replace("mapgis-popup-row-container ","mapgis-popup-row-container mapgis-popup-row-container-defaultField ")),h}function Gu(t,e,n,r){var i,o=t.fields,a=t.alias,s=(t.style,t.title),c=(t.class,zu(r));function u(t,e,n){return"<div class='mapgis-popup-row mapgis-popup-left-row "+t.rowClass+"' style='"+t.rowStyle+"'><div class='mapgis-popup-left-item mapgis-popup-left-field "+t.fieldClass+"' style='"+t.fieldStyle+"' title='"+e+"'>"+e+"</div><div class='mapgis-popup-left-item mapgis-popup-left-value mapgis-popup-ellipsis "+t.valueClass+"' style='"+t.valueStyle+"' title='"+n+"'>"+n+"</div></div>"}if(s&&(c+=Uu(r,s,"mapgis-popup-row-left-container")),o&&o instanceof Array&&o.length>0)for(var l=0;l<o.length;l++){i=Hu(a,o[l]);var h=e.properties[o[l]]||"无";c+=u(r,i,h)}else{i=Hu(a,n);var d=e.properties[n]||"无";c+=u(r,i,d)}return c+=s?"</div></div>":"</div>",c}function Qu(t,e,n,r){var i,o=Ru(n.style,n.class);switch(t){case"left":i=Gu(n,e,r,o,n);break;case"underline":i=Yu(n,e,r,o,"mapgis-popup-underline-row","mapgis-popup-item mapgis-popup-underline-item mapgis-popup-field mapgis-popup-underline-field","mapgis-popup-item mapgis-popup-underline-item mapgis-popup-value");break;case"point":i=Yu(n,e,r,o,"mapgis-popup-point-row","mapgis-popup-item mapgis-popup-point-item mapgis-popup-field mapgis-popup-point-field","mapgis-popup-item mapgis-popup-point-item mapgis-popup-value mapgis-popup-point-value","<span class='mapgis-popup-point'></span>");break;case"table":i=Yu(n,e,r,o,"mapgis-popup-table-row","mapgis-popup-item mapgis-popup-table-item mapgis-popup-field mapgis-popup-table-field","mapgis-popup-item mapgis-popup-table-item mapgis-popup-value mapgis-popup-table-value");break;case"default":i=Yu(n,e,r,o,"mapgis-popup-row","mapgis-popup-item mapgis-popup-field","mapgis-popup-item mapgis-popup-value");break;default:i=Yu(n,e,r,o,"mapgis-popup-row","mapgis-popup-item mapgis-popup-field","mapgis-popup-item mapgis-popup-value");break}return i}function Wu(t){return Wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(t)}function Ku(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ku(Object(n),!0).forEach((function(e){Xu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ku(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xu(t,e,n){return(e=$u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $u(t){var e=Ju(t,"string");return"symbol"==Wu(e)?e:e+""}function Ju(t,e){if("object"!=Wu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Wu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Zu={name:"mapgis-3d-graphic-single-layer",mixins:[Ic,Dc],model:{prop:"dataSource",event:"change"},props:{dataSource:{type:Array,default:function(){return[]}},models:{type:Object},vueKey:{type:String,default:"default"},vueIndex:{type:[Number,String],default:function(){return Number((1e8*Math.random()).toFixed(0))}},autoFlyToGraphic:{type:Boolean,default:!0},containerStyle:{type:Object},iconsPanelStyle:{type:Object},enableOneMap:{type:Boolean,default:!1},enableMapStory:{type:Boolean,default:!1},groupGraphicIDs:{type:Array,default:function(){return[]}},uploadUrl:{type:String,default:""},featureConfig:{type:Object,defalut:function(){}}},data:function(){return{tabListNoTitle:[{key:"list",tab:"标注列表"},{key:"edit",tab:"设置面板"}],noTitleKey:"list",editList:cu,currentEditType:"",currentIconType:"",dataSourceCopy:void 0,icons:au,editPanelValues:void 0,isEdit:!1,isStartDrawing:!1,addSource:!1,isStartDrawLine:!1,add:!0,drawMode:"",drawDistance:0,modelUrl:void 0,lastGraphicColor:void 0,groupNum:0,enablePopup:!1,popup:{},graphicGroups:[],destinationHeight:100,clickTime:0,clickInterval:200,firstClickFlag:void 0,currentGroupId:void 0,isUpdateByEditValues:!0,groupName:void 0,popupOptions:{type:Object,default:function(){return{popupType:"card"}}},transformEditor:void 0}},watch:{dataSource:{handler:function(){!this.isEdit&&!this.addSource&&!this.editTitle&&this.dataSource.length>0&&this.$_init()},deep:!0},dataSourceCopy:{handler:function(){},deep:!0},featureConfig:{handler:function(t){t&&this.setFeatureConfig()},deep:!0,immediate:!0}},mounted:function(){},methods:{$_getGroups:function(){for(var t=[],e=0;e<this.dataSourceCopy.length;e++)if("group"===this.dataSourceCopy[e].type){var n=JSON.parse(JSON.stringify(this.dataSourceCopy[e])),r=this.$_getGraphicLayer(),i=r.getGraphicByName(n.attributes.title);n.dataSource=[];for(var o=0;o<i.length;o++)n.dataSource.push(i[o].id);t.push(n)}return t},$_resetEditPanel:function(){this.$refs.editPanel&&(this.$refs.editPanel.$_resetEditPanel(),this.dataSourceCopy=[],this.$refs.editPanel.isUpdatePanel=!1,this.$_clearList())},$_resetIconsPanel:function(){this.$refs.iconsPanel&&this.$refs.iconsPanel.$_resetIconsPanel()},$_setIconMode:function(t){this.$refs.iconsPanel.currentIconType=t},$_clearList:function(){this.drawNum={label:0,box:0,polyline:0,polygon:0,polygonCube:0,point:0,circle:0,cylinder:0,cone:0,polylineVolume:0,corridor:0,wall:0,rectangle:0,ellipsoid:0,marker:0,model:0}},$_showAllGraphics:function(){var t=this.$_getAllGraphic();if(t)for(var e=0;e<t.length;e++)t[e].show=!0},$_hideAllGraphics:function(){var t=this.$_getAllGraphic();if(t)for(var e=0;e<t.length;e++)t[e].show=!1},$_update:function(){var t=this.editPanelValues.title,e=this.$_getDrawOptions(this.editPanelValues,this.currentEditType,Cesium);if(this.$_updateStyleByStyle(this.editPanelValues.id,e.style),e.hasOwnProperty("position")){var n=this.$_getGraphicLayer(),r=n.getGraphicByID(this.editPanelValues.id);r.primitive.position=Cesium.Cartesian3.fromDegrees(e.position.lng,e.position.lat,this.editPanelValues.height)}var i=this.$_getJsonById(this.editPanelValues.id);i.title=t,this.$_updateSourceById(this.editPanelValues.id,i)},$_updateSourceById:function(t,e){for(var n,r=0;r<this.dataSourceCopy.length;r++)if(this.dataSourceCopy[r].id===t){n=r;break}this.$set(this.dataSourceCopy,n,e)},$_updateSourceTitleById:function(t,e){for(var n,r=0;r<this.dataSourceCopy.length;r++)if(this.dataSourceCopy[r].id===t){n=r;break}this.dataSourceCopy[n].title=e},$_changeAttributes:function(t,e){if(e){var n=this.$_getGraphicByID(e);Object.keys(t).forEach((function(e){n.attributes[e]=t[e]})),this.enablePopup=!1,this.$nextTick((function(){this.$_setPopUp(n,!0)}))}},$_deleteAttribute:function(t,e){if(e){var n=this.$_getGraphicByID(e);n.attributes[t]&&delete n.attributes[t],this.enablePopup=!1,this.$nextTick((function(){this.$_setPopUp(n,!0)}))}},$_editTitle:function(t,e,n){if(!t){var r=this.$_getGraphicByID(n);r.attributes.title=e}this.editTitle=t},$_batchOperate:function(t){if(t&&t.selectedIds&&!(t.selectedIds.length<1)){var e,n=t.operate,r=t.selectedIds;if("batchShow"===n)for(var i=0;i<r.length;i++)e=this.$_getGraphicByID(r[i]),"marker"===e.type?e.label&&e.billboard&&(e.label.show=!0,e.billboard.show=!0):e.show=!0,e.attributes.show=!0;else if("batchHide"===n)for(var o=0;o<r.length;o++)e=this.$_getGraphicByID(r[o]),"marker"===e.type?e.label&&e.billboard&&(e.label.show=!1,e.billboard.show=!1):e.show=!1,e.attributes.show=!1;else if("batchDelete"===n)for(var a=0;a<r.length;a++){for(var s=void 0,c=0;c<this.dataSourceCopy.length;c++)if(this.dataSourceCopy[c].id===r[a]){s=c;break}this.$refs.editPanel.isUpdatePanel=!1,this.addSource=!0,this.dataSourceCopy.splice(s,1);var u=this.$_getGraphicLayer(this.vueIndex,this.vueKey);u.removeGraphicByID(r[a]),this.$refs.editPanel.isUpdatePanel=!0,this.addSource=!1}}},$_clickTool:function(t,e){switch(t){case"edit":if("group"===e.type){this.$refs.iconsPanel.$_resetIconsPanel(),this.$_stopDrawing(),this.isStartDrawing=!1,this.$nextTick((function(){this.isEdit=!0,this.$_startEdit()})),this.editPanelValues={scale:e.style.scale,heading:0,pitch:0,roll:0};for(var n=this.$_getGraphicLayer(),r=n.getGraphicByName(e.attributes.title),i=[],o=0;o<r.length;o++)i.push({name:r[o].name+"_"+(o+1),attributes:Ja()(r[o].attributes),type:r[o].type,id:r[o].id});this.graphicGroups=i,this.$refs.editPanel.$_setEditPanelValues(this.editPanelValues),this.$refs.editPanel.noTitleKey="edit",this.$refs.editPanel.editType="batch"}else this.$_dbclick(e);break;case"editPopup":this.$refs.editPanel.noTitleKey="edit",this.$refs.editPanel.editType="popup";break;case"delete":for(var a,s=0;s<this.dataSourceCopy.length;s++)if(this.dataSourceCopy[s].id===e.id){a=s;break}if(this.$refs.editPanel.isUpdatePanel=!1,this.addSource=!0,this.dataSourceCopy.splice(a,1),"group"===e.type)for(var c=this.$_getGraphicLayer(),u=c.getGraphicByName(e.attributes.title),l=0;l<u.length;l++)this.$_removeGraphicByID(u[l].id);this.$emit("delete",e.id),this.$nextTick((function(){var t=this.$_getGraphicLayer(this.vueIndex,this.vueKey);t.removeGraphicByID(e.id),this.$refs.editPanel.isUpdatePanel=!0,this.addSource=!1}));break}},$_getEditPanelValuesFromJSON:function(t){if(t&&t instanceof Object&&"{}"!==JSON.stringify(t)){if(t.hasOwnProperty("type")&&t.hasOwnProperty("id")){var e=t.id,n=t.positions,r=t.style,i=(t.editPointStyle,t.attributes),o=t.name,a=(t.show,t.editing,t.allowPicking,t.modelMatrix,t.asynchronous,t.heading),s=t.pitch,c=t.roll,u=r.text,l=r.font,h=r.color,d=r.fillColor,f=r.backgroundColor,p=r.outlineWidth,m=r.outlineColor,g=(r.image,r.extrudedHeight),A=r.width,v=(r.height,r.topRadius),y=(r.backgroundOpacity,r.backgroundPadding),b=r.bottomRadius,w=r.pixelSize,_=r.radius,x=r.materialType,S=r.material,C=r.cornerType,M=r.radiusX,L=r.radiusY,T=r.radiusZ,k=r.url,E=r.scale,O=r.isHermiteSpline,P=r.stRotation,B=r.offsetHeight,I=r.loop,D=r.verticalOrigin,N=r.horizontalOrigin,F=r.classificationType,j=r.abelStyle,R=r.illboardStyle,H=r.labelPlaceType,z=r.labelPadding,U=i.title,V=i.__flashStyle;S=S||{};var Y=S,G=Y.speed,Q=Y.duration,W=Y.gradient,K=Y.count,q=Y.direction,X={};switch(t.type){case"point":X.id=e,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.pixelSize=w,X.offsetHeight=B,X.outlineWidth=p,X.outlineOpacity=100*m[3],X.outlineColor="rgb("+255*m[0]+","+255*m[1]+","+255*m[2]+")",U&&(X.title=U);break;case"label":var $;X.id=e,X.text=u,X.title=U,X.name=o,$="number"===typeof l?[l,"sans-serif"]:l.indexOf(" ")>-1?l.split(" "):[l,"sans-serif"],X.fontSize=$[0],X.fontFamily=$[1],X.fontColor="rgb("+255*d[0]+","+255*d[1]+","+255*d[2]+")",X.opacity=100*d[3],X.backgroundColor="rgb("+255*f[0]+","+255*f[1]+","+255*f[2]+")",X.backgroundOpacity=100*f[3],X.backgroundPadding=y.x,X.outlineWidth=p,X.outlineColor="rgb("+255*m[0]+","+255*m[1]+","+255*m[2]+")",X.outlineOpacity=100*m[3];var J=this.$_cartesian3ToLongLat({x:n[0],y:n[1],z:n[2]});X.offsetHeight=J.alt,X.position=J,X.verticalOrigin=D,X.horizontalOrigin=N;break;case"box":X.id=e,X.color="rgba(".concat(255*h[0],",").concat(255*h[1],",").concat(255*h[2],",").concat(100*h[3],")"),X.opacity=100*h[3],X.extrudedHeight=g,X.offsetHeight=B,U&&(X.title=U);break;case"polyline":X.id=e,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.width=A,X.isHermiteSpline=O,X.materialType=x,X.loop=I,U&&(X.title=U),X.elevationMode=void 0===F?-1:F;break;case"polylineVolume":X.id=e,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.width=A,X.offsetHeight=B,X.cornerType=C,U&&(X.title=U);break;case"polygon":if(X.id=e,X.title=U,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.extrudedHeight=g,X.offsetHeight=B,X.materialType=x||"Color",U&&(X.title=U),V&&(X.alphaSpace=V.alphaSpace,X.flashTime=V.flashTime,X.flashAlpha=V.flashAlpha,X.materialType="flash"),"Image"===x){var Z=S,tt=Z.repeat;X.image=S.image,X.stRotation=P,X.repeatX=tt.x,X.repeatY=tt.y}else X.stRotation=0,X.repeatX=1,X.repeatY=1;X.elevationMode=void 0===F?-1:F;break;case"rectangle":if(X.id=e,X.title=U,X.offsetHeight=B,X.materialType=x,X.rtFontSize=30,X.rtFontFamily="微软雅黑",X.rectangleText="无标题",X.rtBackgroundColor="#FFFFFF",X.rtBackgroundOpacity=0,U&&(X.title=U),"text"===x){var et=S,nt=et.backgroundColor,rt=et.text,it=et.font,ot=et.fillColor;X.rtBackgroundColor="rgb("+255*nt[0]+","+255*nt[1]+","+255*nt[2]+")",X.rtBackgroundOpacity=100*nt[3],X.rectangleText=rt;var at=it.split(" ");X.rtFontSize=at[0].split("px")[0],X.rtFontFamily=at[1],X.color="rgb("+255*ot[0]+","+255*ot[1]+","+255*ot[2]+")",X.opacity=100*ot[3]}else X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3];if("Image"===x){var st=S,ct=st.repeat;X.image=S.image,X.stRotation=P,X.repeatX=ct.x,X.repeatY=ct.y}else X.stRotation=0,X.repeatX=1,X.repeatY=1;X.elevationMode=void 0===F?-1:F;break;case"circle":X.offsetHeight=B,"circle"===this.currentEditType?(X.id=e,X.pureColor="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.pureOpacity=100*h[3],X.radius=_,X.speed=G||1,X.duration=Q||2e3,X.gradient=W||.5,X.count=K||4,X.materialType=x,"Color"===x?(X.materialColor="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.materialOpacity=100*h[3]):(X.materialColor="rgb("+255*S.color.red+","+255*S.color.green+","+255*S.color.blue+")",X.materialOpacity=100*S.color.alpha),U&&(X.title=U)):(X.id=e,X.title=U,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.radius=_,X.extrudedHeight=g,U&&(X.title=U)),X.elevationMode=void 0===F?-1:F;break;case"ellipsoid":X.id=e,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.radiusX=M,X.radiusY=L,X.radiusZ=T,X.offsetHeight=B,U&&(X.title=U);break;case"wall":X.id=e,X.title=U,X.extrudedHeight=g,X.offsetHeight=B,X.speed=G||1,X.image=S.image||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAUCAYAAAA3IwABAAABv0lEQVR4nO2cwW7DMAiGSbrbTnuCvf8DrtplzQ5dNWSBwa4bCen7JMsONn8MiTiyHcch8v25yT/b4Kz9rDOezTvTe1/WzxrtPT29aG9GY+bcWb672vfWkfasn6exKsZd2dq1vm/0Th2XFWdWZ/S/jPIhifWITZw5s7Z8vH1x7FZOtP36Js+jRXfDlgkmSrj33P4k7bmZD69/9sgvq99qrhirtC7q/lbhyd5ln/Dz8n2Z1LBiE6Wv1yNxtndqc9Xqj367nt/IXu+fzdh6z16cYsyv4mNFwdIci/Uibn/z6g+/yT2WyC+r/xi3pNaZ40fd/5mCNeO3WsPSFGc98q72XJurVn909Pxm9ix7xtZ7jtbtHO33/MSxf+0CAFAEChYAlIGCBQBloGABQBkoWABQBgoWAJSBggUAZaBgAUAZKFgAUAYKFgCUgYIFAGWgYAFAGShYAFAGChYAlIGCBQBlWN0Pq9ffZrbfTu+ZBn7PDxr45b4tDfzsOMWYX8X7ioKlm/bphnqP2QqqlxAvCZbfaAM/bz/yy5ztacycO8uXFsnxO3VcVpxZndH/MsqHJNYjNnHmzNry8fbFsVs50fbrLwRiE9BpH2RgAAAAAElFTkSuQmCC",X.duration=Q||2e3,X.direction=q||1,X.materialType=x,X.loop=I,"Color"===x?(X.materialColor="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.materialOpacity=100*h[3],X.linkColor="rgb(255, 255, 255)"):(X.linkColor="rgb("+255*S.color.red+","+255*S.color.green+","+255*S.color.blue+")",X.materialOpacity=100*S.color.alpha),U&&(X.title=U);break;case"corridor":X.id=e,X.color="rgba("+255*h[0]+","+255*h[1]+","+255*h[2]+","+100*h[3]+")",X.opacity=100*h[3],X.width=A,X.cornerType=C,X.offsetHeight=B,X.extrudedHeight=g,U&&(X.title=U);break;case"cylinder":X.id=e,X.color="rgba("+255*h[0]+","+255*h[1]+","+255*h[2]+","+100*h[3]+")",X.opacity=100*h[3],X.topRadius=v,X.bottomRadius=b,X.offsetHeight=B,X.extrudedHeight=g,U&&(X.title=U);break;case"marker":var ut;X.id=e,X.image=R.image,X.width=R.width,X.height=R.height,X.title=U,X.text=j.text,ut="number"===typeof j.font?[j.font,"sans-serif"]:j.font.indexOf(" ")>-1?j.font.split(" "):[j.font,"sans-serif"],X.fontSize=ut[0],X.fontFamily=ut[1],X.fontColor="rgb("+255*j.fillColor.red+","+255*j.fillColor.green+","+255*j.fillColor.blue+")",X.opacity=100*j.fillColor.alpha,X.outlineWidth=j.outlineWidth,X.outlineOpacity=100*j.outlineColor.alpha,X.outlineColor="rgba(".concat(255*j.outlineColor.red,",").concat(255*j.outlineColor.green,",").concat(255*j.outlineColor.blue,",").concat(j.outlineColor.alpha,")"),X.offsetHeight=B,X.labelPlaceType=H,X.labelPadding=z;break;case"model":X.id=e,X.url=k,X.scale=E,U&&(X.title=U),X.positions=this.$_cartesian3ToLongLat(new this.Cesium.Cartesian3.fromArray(n)),X.orientation={heading:a?Math.PI/a:0,pitch:s?Math.PI/s:0,roll:c?Math.PI/c:0};break}return i&&(X.attributes=JSON.parse(JSON.stringify(i))),X}console.warn("type或者id不存在!")}else console.warn("json对象不能为空!")},$_startDrawModel:function(t,e,n,r,i,o){var a;if(a=this.$_getGraphicLayer(),new this.Cesium.DrawTool(this.viewer,a),this.$_stopDrawing(),this.drawMode=n,this.currentEditType="model",this.isStartDrawLine=!0,this.isStartDrawing=!0,this.drawDistance=r,this.modelUrl=e,e)switch(n){case"point":this.editPanelValues||(this.editPanelValues=this.$_getEditPanelValues(this.editList,"model")),this.editPanelValues.url=e,this.editPanelValues.scale=o,this.$refs.editPanel.$_setEditPanelValues(this.editPanelValues);var s=this.$_getDrawOptions(this.editPanelValues,"model",Cesium);this.$_startDrawing(qu({type:"model"},s));break;case"polyline":this.$_DrawGroup("polyline",e,o,r,i);break;case"polygon":this.$_DrawGroup("polygon",e,o,r,i);break}},$_DrawGroup:function(t,e,n,r,i){var o,a,s=e.split("/"),c=this,u=s[s.length-1];switch(this.drawMode="group",u=u.split(".")[0],this.groupNum++,this.groupName=u+"模型组"+this.groupNum,o=this.$_getGraphicLayer(),a=new this.Cesium.DrawTool(this.viewer,o,{finishDraw:function(){var t=Number((1e8*Math.random()).toFixed(0));c.currentGroupId=t,c.dataSourceCopy.push({type:"group",id:t,attributes:{title:c.groupName},style:{scale:n||1},dataSource:[]}),console.log("vm.dataSourceCopy",c.dataSourceCopy)}}),t){case"polyline":a.DrawModelsByLine({intervalDistance:r,modelRadius:i,style:{scale:n||1,url:e},name:this.groupName});break;case"polygon":a.DrawModelsByArea({style:{scale:n||1,url:e},name:this.groupName});break}},$_startDraw:function(t,e){if("mouse"!==t&&(this.currentEditType=t),this.$_stopDrawing(),"mouse"===t)this.$_startEdit(),this.isStartDrawing=!1;else{this.editPanelValues=this.$_getEditPanelValues(this.editList,this.currentEditType),this.$refs.editPanel.$_setEditPanelValues(this.editPanelValues);var n=this.$_getDrawOptions(this.editPanelValues,this.currentEditType,Cesium);this.isStartDrawing=!0,this.$_stopEdit();var r=this.currentEditType;"cone"===r&&(r="circle"),"polygonCube"===r&&(r="polygon"),"square"===r&&(r="box"),this.drawMode="point",this.$_startDrawing(qu({type:r},n))}this.enablePopup=!1},$_stopDraw:function(){this.$refs.iconsPanel.currentIconType="mouse",this.$_stopDrawing(),this.$_startEdit()},$_stopDrawAll:function(){this.$refs.iconsPanel.currentIconType="mouse",this.$_stopDrawing(),this.$_stopEdit()},$_changeEditPanelValues:function(t,e){if(this.isUpdateByEditValues&&(this.editPanelValues=t,e))if(this.isStartDrawing){this.$_stopDrawing();var n=this.$_getDrawOptions(t,this.currentEditType,Cesium),r=this.currentEditType;if("cone"===r&&(r="circle"),"polygonCube"===r&&(r="polygon"),"square"===r&&(r="box"),"model"===r)this.$_startDrawModel("model",this.modelUrl,this.drawMode,this.drawDistance,0,t.scale);else{var i=t.materialType;"flash"===i&&(n.attributes={__enableFlash:!0,__flashStyle:{flog:!0,flashAlpha:t.flashAlpha,alphaSpace:t.alphaSpace,flashTime:t.flashTime}}),this.$_startDrawing(qu({type:r},n))}}else{if(!t)return;var o=t.title;this.$refs.editPanel.isUpdatePanel=!1,this.$_updateSourceTitleById(t.id,o);var a=this.$_getGraphicByID(t.id);a&&(a.attributes.title=o);var s=this.$_getDrawOptions(t,this.currentEditType,Cesium);if("label"===a.type){var c=a.style.showBackground;s.style.showBackground=c}if("model"===a.type){if(t.orientation){var u=t.orientation,l=u.heading,h=u.pitch,d=u.roll;a.heading=l?Math.PI/l:0,a.pitch=h?Math.PI/h:0,a.roll=d?Math.PI/d:0}if(t.positions){var f=t.positions,p=f.lng,m=f.lat,g=f.alt,A=this.Cesium.Cartesian3.fromDegrees(p,m,g);a.positions=[A]}}this.$_updateStyleByStyle(t.id,s.style),this.$nextTick((function(){this.$refs.editPanel.isUpdatePanel=!0}))}},$_changeGroup:function(t,e){for(var n,r=this,i=0;i<this.dataSourceCopy.length;i++)this.dataSourceCopy[i].id===e&&(n=this.dataSourceCopy[i]);if(n)for(var o=function(){var e=r.$_getGraphicByID(r.graphicGroups[a].id);e&&Object.keys(t).forEach((function(n){"scale"===n?e[n]=t[n]:(e[n]=Cesium.Math.toRadians(t[n]),e.setRotateMatrix())}))},a=0;a<this.graphicGroups.length;a++)o()},$_dbclick:function(t,e,n){if(this.noTitleKey="edit",this.$refs.iconsPanel.$_resetIconsPanel(),this.$refs.editPanel.noTitleKey="edit",this.$refs.editPanel.editType="edit",this.$refs.editPanel.isEdit=!0,this.$_stopDrawing(),this.isStartDrawing=!1,n||"model"===this.currentEditType||this.$nextTick((function(){this.isEdit=!0,this.$_startEdit()})),t.hasOwnProperty("style")||(t=this.$_getJsonById(t.id)),this.currentEditType=t.type,"group"===this.currentEditType){var r=this.$_getGraphicLayer();r.getGraphicByName(t.attributes.title)}t.style.hasOwnProperty("isSquare")&&t.style.isSquare&&(this.currentEditType="square"),"circle"===this.currentEditType&&t.style.hasOwnProperty("extrudedHeight")&&t.style.extrudedHeight>0&&(this.currentEditType="cone"),"polygon"===this.currentEditType&&t.style.hasOwnProperty("extrudedHeight")&&t.style.extrudedHeight>0&&(this.currentEditType="polygonCube"),this.currentIconType="mouse";var i=this.$_getJsonById(t.id);this.editPanelValues=this.$_getEditPanelValuesFromJSON(i),this.editPanelValues.showOutline=!1;var o=this.$_getGraphicByID(t.id);if(o&&o.heading){var a=o.heading,s=o.pitch,c=o.roll;this.editPanelValues.orientation={heading:a?Math.PI/a:0,pitch:s?Math.PI/s:0,roll:c?Math.PI/c:0}}this.$refs.editPanel.$_setEditPanelValues(this.editPanelValues);var u=o.style,l=u.offsetHeight,h=u.extrudedHeight,d=u.radiusX,f=u.width,p=u.radius;this.destinationHeight=0,l&&(this.destinationHeight+=Number(l)),h&&(this.destinationHeight+=Number(h)),"ellipsoid"===o.type&&d&&(this.destinationHeight+=Number(8*d)),"polylineVolume"===o.type&&f&&(this.destinationHeight+=Number(8*f)),"circle"===o.type&&p&&(this.destinationHeight+=Number(8*p)),"model"===o.type?(this.lastGraphicColor=Cesium.Color.WHITE,this.destinationHeight+=Number(4*o.boundingSphere.radius)):this.lastGraphicColor=o.style.color,this.destinationHeight<=0&&(this.destinationHeight=1e4);var m,g,A,v,y,b=[[]];switch(t.type){case"label":case"marker":case"point":v=o.positions[0],y=this.$_cartesian3ToLongLat(new Cesium.Cartesian3(v.x,v.y,v.z)),g=Cesium.Cartesian3.fromDegrees(y.lng,y.lat,this.destinationHeight);break;case"polygon":case"polyline":case"polylineVolume":case"corridor":case"wall":for(var w=0;w<t.positions.length/3;w++){var _=this.$_cartesian3ToLongLat(new Cesium.Cartesian3(t.positions[3*w],t.positions[3*w+1],t.positions[3*w+2]));b[0].push([_.lng,_.lat])}b[0].push(b[0][0]),A=hu(b),m=Du(A);var x=ju(A),S=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(x[0],x[1]),Cesium.Cartesian3.fromDegrees(x[2],x[1])),C=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(x[0],x[1]),Cesium.Cartesian3.fromDegrees(x[0],x[3]));this.destinationHeight+=Number(S>C?S:C),g=Cesium.Cartesian3.fromDegrees(m.geometry.coordinates[0],m.geometry.coordinates[1],this.destinationHeight);break;case"rectangle":case"box":var M=new Cesium.Cartesian3(t.positions[0],t.positions[1],t.positions[2]),L=new Cesium.Cartesian3(t.positions[3],t.positions[4],t.positions[5]);M=this.$_cartesian3ToLongLat(M),L=this.$_cartesian3ToLongLat(L),b[0].push([M.lng,M.lat]),b[0].push([L.lng,M.lat]),b[0].push([L.lng,L.lat]),b[0].push([M.lng,L.lat]),b[0].push([M.lng,M.lat]),A=hu(b),m=Du(A);var T=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(M.lng,M.lat),Cesium.Cartesian3.fromDegrees(L.lng,M.lat)),k=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(M.lng,M.lat),Cesium.Cartesian3.fromDegrees(M.lng,L.lat));this.destinationHeight+=Number(T>k?T:k),g=Cesium.Cartesian3.fromDegrees(m.geometry.coordinates[0],m.geometry.coordinates[1],this.destinationHeight);break;case"circle":case"cylinder":case"ellipsoid":v=o.centerPosition,y=this.$_cartesian3ToLongLat(new Cesium.Cartesian3(v.x,v.y,v.z)),g=Cesium.Cartesian3.fromDegrees(y.lng,y.lat,this.destinationHeight);break;case"model":v=o.positions[0];var E=new Cesium.Cartesian3(v.x,v.y,v.z);m=this.$_cartesian3ToLongLat(E),this.destinationHeight+=m.alt,g=Cesium.Cartesian3.fromDegrees(m.lng,m.lat,this.destinationHeight);break}viewer.camera;this.autoFlyToGraphic&&!e&&this.viewer.camera.flyTo({duration:1,destination:g,orientation:{heading:6.283185307179586,pitch:-1.5707963267948966,roll:0}})},$_getCenter:function(t){if(t){var e,n,r,i,o=[[]],a=t.style,s=a.extrudedHeight,c=a.offsetHeight,u=a.radiusX;switch(t.type){case"polyline":case"polygon":for(var l=0;l<t.positions.length;l++){var h=this.$_cartesian3ToLongLat(t.positions[l]);o[0].push([h.lng,h.lat])}o[0].push(o[0][0]),n=hu(o),e=Du(n);break;case"rectangle":case"box":var d,f;d=t.positions[0],f=t.positions[1],d=this.$_cartesian3ToLongLat(d),f=this.$_cartesian3ToLongLat(f),o[0].push([d.lng,d.lat]),o[0].push([f.lng,d.lat]),o[0].push([f.lng,f.lat]),o[0].push([d.lng,f.lat]),o[0].push([d.lng,d.lat]),n=hu(o),e=Du(n);break;case"cylinder":case"circle":case"ellipsoid":case"label":case"point":case"text":case"marker":r=t.centerPosition,i=this.$_cartesian3ToLongLat(new Cesium.Cartesian3(r.x,r.y,r.z)),e={geometry:{coordinates:[i.lng,i.lat]}};break;case"model":var p=new Cesium.Cartesian3(t.positions[0],t.positions[1],t.positions[2]);e=this.$_cartesian3ToLongLat(p);break}return e.geometry.coordinates.push((s||0)+(c||0)+(2*u||0)),e}},$_updateGraphicList:function(t){this.dataSourceCopy=t},$_resetGetGraphic:function(t,e){var n=this.$_getGraphicLayer(t,e);this.$_switchGraphicLayer(t,e),n._getGraphic=this.$_getGraphic},$_getGraphic:function(t){var e=this,n=e.$_getJsonById(t.id),r=n.type;if(!(this.groupGraphicIDs.indexOf(n.id)>-1))if("point"===e.drawMode){if(!e.add)return;e.addSource=!0,"circle"===r&&n.style.hasOwnProperty("extrudedHeight")&&n.style.extrudedHeight>0&&(r="cone"),"polygon"===r&&n.style.hasOwnProperty("extrudedHeight")&&n.style.extrudedHeight>0&&(r="polygonCube");var i=t.attributes;if(i.hasOwnProperty("__enableFlash")){var o=t.style.color,a=t.attributes.__flashStyle;o.alpha=a.flashAlpha;var s=e.$_bezierSpline(t.positions,!0),c=new Cesium.Graphic({type:"polygon",positions:s,style:{color:o}}),u=e.$_getGraphicLayer();e.drawMode="addFlashGraphic",c.attributes.__flashStyle=t.attributes.__flashStyle,c.attributes.__enableFlash=t.attributes.__enableFlash,u.addGraphic(c),e.$_removeGraphicByID(t.id)}else{t.attributes.title=t.attributes.title||e.$_getTitle(r),n.attributes.title=t.attributes.title;for(var l=!1,h=0;h<e.dataSourceCopy.length;h++)if(e.dataSourceCopy[h].id===n.id){l=!0,h;break}if(!l){e.dataSourceCopy.push(n),1===e.dataSourceCopy.length&&e.$emit("saveCamera");var d=e.$_getEditPanelValuesFromJSON(n);e.$refs.editPanel.$_setEditPanelValues(d),e.$nextTick((function(){e.addSource=!1})),e.$emit("change",e.dataSourceCopy),e.$emit("addFeature",e.$_getJsonById(t.id))}}}else if("addGraphic"===e.drawMode)e.drawMode="point";else if("addFlashGraphic"===e.drawMode){e.drawMode="point";var f=t.attributes.__flashStyle;window["flog_"+t.id]=f.flog,window["alpha_"+t.id]=f.flashAlpha,window["alphaEnd_"+t.id]=f.flashAlpha,window["alphaSpace_"+t.id]=f.alphaSpace,window["flashTime_"+t.id]=f.flashTime,window["flashRunningTime_"+t.id]=0,window["interval_"+t.id]=setInterval((function(){window["flog_"+t.id]?(window["alpha_"+t.id]=window["alpha_"+t.id]-window["alphaSpace_"+t.id],window["alpha_"+t.id]<=0&&(window["alpha_"+t.id]=0,window["flog_"+t.id]=!1)):(window["alpha_"+t.id]=window["alpha_"+t.id]+window["alphaSpace_"+t.id],window["alpha_"+t.id]>=window["alphaEnd_"+t.id]&&(window["flog_"+t.id]=!0)),t.style.color.alpha=window["alpha_"+t.id].toFixed(2),window["flashRunningTime_"+t.id]+=100,window["flashRunningTime_"+t.id]>window["flashTime_"+t.id]&&(clearInterval(window["interval_"+t.id]),t.show=!1,delete window["flog_"+t.id],delete window["alpha_"+t.id],delete window["alphaEnd_"+t.id],delete window["alphaSpace_"+t.id],delete window["flashTime_"+t.id],delete window["flashRunningTime_"+t.id])}),100),t.attributes.title=t.attributes.title||e.$_getTitle(r),n.attributes.title=t.attributes.title,e.dataSourceCopy.push(n),1===e.dataSourceCopy.length&&e.$emit("saveCamera");var p=e.$_getEditPanelValuesFromJSON(n);e.$refs.editPanel.$_setEditPanelValues(p),e.$nextTick((function(){e.addSource=!1})),e.$emit("change",e.dataSourceCopy),e.$emit("addFeature",e.$_getJsonById(t.id))}else if("group"===e.drawMode){for(var m=0;m<e.dataSourceCopy.length;m++)if(e.currentGroupId===e.dataSourceCopy[m].id){e.dataSourceCopy[m].dataSource.push(t.id);break}e.$refs.editPanel.noTitleKey="list"}else{for(var g=!1,A=0;A<e.dataSourceCopy.length;A++)if(e.dataSourceCopy[A].id===n.id){e.$set(e.dataSourceCopy,A,n),g=!0;break}if(!g){if(!n.attributes.hasOwnProperty("title")){var v=e.$_getGraphicByID(n.id);n.attributes.title=v.attributes.title=e.$_getTitle(n.type)}e.dataSourceCopy.push(n)}}},$_init:function(t,e,n){this.dataSourceCopy=t||JSON.parse(JSON.stringify(this.dataSource)),0===this.dataSourceCopy.length&&this.$nextTick((function(){this.$_setIconMode("mouse")}));var r=this;e=e||this.vueIndex,n=n||this.vueKey;var i=this.$_getGraphicLayer(e,n);if(i||this.$_newGraphicLayer({vueIndex:e,vueKey:n,finishEdit:function(t){for(var e=0;e<r.dataSourceCopy.length;e++)if(r.dataSourceCopy[e].id===t.id){r.isUpdateByEditValues=!1,t.style.extrudedHeight&&(r.dataSourceCopy[e].style.extrudedHeight=t.style.extrudedHeight,r.dataSourceCopy[e].style.color=[t.style._lastChangeColor.red,t.style._lastChangeColor.green,t.style._lastChangeColor.blue,t.style._lastChangeColor.alpha]),t.style.radius&&(r.dataSourceCopy[e].style.radius=t.style.radius),r.$nextTick((function(){r.isUpdateByEditValues=!0}));break}},getGraphic:this.$_getGraphic,revokeModel:function(t){for(var e=void 0,n=0;n<r.dataSourceCopy.length;n++)if(r.dataSourceCopy[n].id===t.id){e=n;break}void 0!==e&&(r.$refs.editPanel.isUpdatePanel=!1,r.dataSourceCopy.splice(e,1))},revokePoint:function(t){for(var e=void 0,n=0;n<r.dataSourceCopy.length;n++)if(r.dataSourceCopy[n].id===t.id){e=n;break}void 0!==e&&(r.$refs.editPanel.isUpdatePanel=!1,r.dataSourceCopy.splice(e,1))}}),this.dataSourceCopy.length>0){for(var o=[],a=0;a<this.dataSourceCopy.length;a++){var s=this.$_getGraphicByID(this.dataSourceCopy[a].id);s||"group"===this.dataSourceCopy[a].type||o.push(this.dataSourceCopy[a])}this.$_fromJson({type:"FeatureCollection",features:o})}this.dataSourceCopy.length>0&&"group"!==this.dataSourceCopy[0].type&&(this.editPanelValues=this.$_getEditPanelValuesFromJSON(this.dataSourceCopy[0])),this.viewer.screenSpaceEventHandler.setInputAction((function(t){var e=r.viewer.scene.pick(t.position),n=r.viewer.scene.pickPosition(t.position);Cesium.defined(e)&&!r.isStartDrawing&&(r.clickTime++,2===r.clickTime?(clearTimeout(r.firstClickFlag),r.clickTime=0):1===r.clickTime&&(r.firstClickFlag=setTimeout((function(){r.$_setPopUp(e,!1,n),r.clickTime=0}),r.clickInterval)))}),Cesium.ScreenSpaceEventType.LEFT_CLICK),this.viewer.screenSpaceEventHandler.setInputAction((function(t){var e=r.viewer.scene.pick(t.position);if(Cesium.defined(e)&&!r.isStartDrawing&&e.hasOwnProperty("id")){var n=r.$_getGraphicByID(e.id);n&&r.$_dbclick(r.$_getJsonById(e.id),!0,!0),r.enablePopup=!1}}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK)},$_setPopUp:function(t,e,n){var r,i,o=this;if(e)i=t.attributes;else{var a=this.$_getGraphicByID(t.primitive.id);i=a&&a.attributes?a.attributes:void 0}if(n){var s=this.$_cartesian3ToLongLat(n);this.popup={lng:s.lng,lat:s.lat,alt:s.alt,properties:{}}}else{if(r=e?this.$_getCenter(t):this.$_getCenter(this.$_getGraphicByID(t.primitive.id)),!r)return;var c=r.geometry.coordinates;this.popup={lng:c[0],lat:c[1],alt:c[2],properties:{}}}if(i){Object.keys(i).forEach((function(t){o.popup.properties[t]=i[t]}));var u=JSON.parse(JSON.stringify(this.popup.properties));delete u.title,this.popup.container=Qu("underline",{properties:u},{fields:Object.keys(u),title:this.popup.properties.title,style:{containerStyle:{width:"360px"}}}),this.enablePopup=!0}},onTabChange:function(t,e){this[e]=t,"list"===this.noTitleKey?this.isEdit=!1:this.isEdit=!0},$_pickCoords:function(t){if(this.$_deactivate(),t){var e=this.Cesium,n=this.viewer,r=this;n.screenSpaceEventHandler.setInputAction((function(t){var i=r.$_getGraphicByID(r.editPanelValues.id);if(i){var o=n.scene.globe.pick(n.camera.getPickRay(t.endPosition),n.scene);i.positions=[o];var a=r.$_getJsonById(r.editPanelValues.id);a&&(r.editPanelValues.positions=r.$_cartesian3ToLongLat(new e.Cartesian3.fromArray(a.positions)),r.$refs.editPanel.$_setEditPanelValues(r.editPanelValues))}}),e.ScreenSpaceEventType.MOUSE_MOVE),n.screenSpaceEventHandler.setInputAction((function(t){r.viewer.screenSpaceEventHandler.removeInputAction(e.ScreenSpaceEventType.MOUSE_MOVE)}),e.ScreenSpaceEventType.LEFT_CLICK)}},$_editPositions:function(t){if(this.$_deactivate(),t){var e=this.$_getTransformEditor(),n=e.viewModel;n&&(n.setModeTranslation(),n.activate())}},$_deactivate:function(){var t=this.$_getTransformEditor(),e=t.viewModel;e.deactivate()},$_getTransformEditor:function(){var t=this.$_getGraphicByID(this.editPanelValues.id);if(!t)return null;this.Cesium,this.viewer;var e=this;if(window.transformEditor&&window.transformEditor.id===this.editPanelValues.id)window.transformEditor.transform=t.modelMatrix,window.transformEditor.boundingSphere=t.boundingSphere;else{var n=this.vueIndex,r=this.vueKey,i=this.$_getGraphicLayer(n,r),o=function(n){if("model"===t.type){var r=n.headingPitchRoll,i=r.heading,o=r.pitch,a=r.roll;e.editPanelValues.orientation={heading:i?Math.PI/i:0,pitch:o?Math.PI/o:0,roll:a?Math.PI/a:0},e.editPanelValues.positions=e.$_cartesian3ToLongLat(n.position),e.$refs.editPanel.isUpdatePanel=!1,e.$refs.editPanel.$_setEditPanelValues(e.editPanelValues)}};window.transformEditor=i.getTransformEditor(t,o),window.transformEditor.id=this.editPanelValues.id}return window.transformEditor},$_location:function(){this.$_deactivate();var t=this.$_getGraphicByID(this.editPanelValues.id);if(!t)return null;var e=this.$_getJsonById(this.editPanelValues.id);if(e){var n=new Cesium.Cartesian3(e.positions[0],e.positions[1],e.positions[2]),r=this.$_cartesian3ToLongLat(n),i=Number(4*t.boundingSphere.radius)+r.alt,o=Cesium.Cartesian3.fromDegrees(r.lng,r.lat,i);this.viewer.camera.flyTo({duration:1,destination:o,orientation:{heading:6.283185307179586,pitch:-1.5707963267948966,roll:0}})}},$_editOrientation:function(t){if(this.$_deactivate(),t){var e=this.$_getTransformEditor(),n=e.viewModel;n&&(n.setModeRotation(),n.activate())}},$_resetOrientation:function(){var t=this.$_getGraphicByID(this.editPanelValues.id);if(!t)return null;t.heading=0,t.pitch=0,t.roll=0,this.editPanelValues.orientation={heading:0,pitch:0,roll:0},this.$refs.editPanel.$_setEditPanelValues(this.editPanelValues)}}},tl=Zu,el=(n("7b69"),je(tl,Tc,kc,!1,null,"483d1db8",null)),nl=el.exports,rl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.showSetting,expression:"!showSetting"}],staticClass:"mapgis-3d-graphic-layers-select-container"},[n("mapgis-ui-select",{staticClass:"mapgis-3d-graphic-layers-select",attrs:{value:t.currenSelectLayer},on:{change:t.$_selectLayer}},t._l(t.layerSelect,(function(e,r){return n("mapgis-ui-select-option",{key:r,attrs:{value:e.key}},[t._v("\n "+t._s(e.value)+"\n ")])})),1),n("input",{staticStyle:{display:"none"},attrs:{type:"file",id:t.inputId,accept:".json"}}),n("div",{staticClass:"mapgis-ui-graphic-layers-toll-bar"},t._l(t.moreTools,(function(e,r){return n("mapgis-ui-svg-icon",{key:r,attrs:{iconStyle:t.toolStyle,containerStyle:t.toolContainerStyle,title:e.title,type:e.icon},on:{click:function(n){return t.$_clickTool(e.icon)}}})})),1)],1),n("mapgis-ui-input-row-left",{directives:[{name:"show",rawName:"v-show",value:t.showEditTitle,expression:"showEditTitle"}],staticClass:"mapgis-ui-graphic-layers-edit-title",staticStyle:{margin:"0"},attrs:{title:"修改标题",enableButton:!0,paddingLeft:"0px"},on:{finish:t.$_finishEditTitle},model:{value:t.currenSelectLayer,callback:function(e){t.currenSelectLayer=e},expression:"currenSelectLayer"}}),n("mapgis-3d-graphic-single-layer",{directives:[{name:"show",rawName:"v-show",value:!t.showSetting,expression:"!showSetting"}],ref:"graphicLayer",attrs:{vueIndex:t.vueIndex,models:t.models,autoFlyToGraphic:t.autoFlyToGraphic,groupGraphicIDs:t.groupGraphicIDs,uploadUrl:t.uploadUrl,featureConfig:t.featureConfig},on:{saveCamera:t.$_saveCamera,change:t.$_addFeature,delete:t.$_deleteFeature},model:{value:t.currentLayer,callback:function(e){t.currentLayer=e},expression:"currentLayer"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showSetting,expression:"showSetting"}]},[n("mapgis-ui-row",[n("mapgis-ui-svg-icon",{staticClass:"mapgis-ui-graphic-layers-setting-back",attrs:{iconStyle:t.editStyle,type:"back"},on:{click:t.$_back}}),n("span",{staticStyle:{"margin-left":"33px"}},[t._v("配置参数")])],1),n("mapgis-ui-switch-row-left",{attrs:{title:"进入图层后自动跳转视角"},model:{value:t.autoFlyTo,callback:function(e){t.autoFlyTo=e},expression:"autoFlyTo"}}),n("mapgis-ui-switch-row-left",{attrs:{title:"选择标绘对象后自动跳转视角"},model:{value:t.autoFlyToGraphic,callback:function(e){t.autoFlyToGraphic=e},expression:"autoFlyToGraphic"}})],1)],1)},il=[],al={name:"mapgis-3d-graphic-layer",mixins:[Ic],inject:["Cesium","viewer"],props:{dataSource:{type:Array,default:function(){return[]}},models:{type:Object,default:function(){return{}}},enableRelativePath:{type:Boolean,default:!0},enableOneMap:{type:Boolean,default:!1},baseUrl:{type:String,default:""},uploadUrl:{type:String,default:""},featureConfig:{type:Object,defalut:function(){}}},watch:{dataSource:{handler:function(){this.updatable&&this.$_init()},deep:!0},dataSourceCopy:{handler:function(){},deep:!0}},data:function(){return{layerSelect:[],currenSelectLayer:void 0,currenSelectIndex:0,currentLayer:void 0,dataSourceCopy:[],inputId:"mapgisPlottingImport"+parseInt(String(1e4*Math.random())),moreTools:[{event:"add",icon:"add",title:"新增图层"},{event:"editTitle",icon:"editTitle",title:"编辑标题"},{event:"delete",icon:"delete",title:"删除图层"},{event:"import",icon:"import",title:"导入"},{event:"export",icon:"export",title:"导出"},{event:"save",icon:"save",title:"保存"}],vueIndex:void 0,showEditTitle:!1,showSetting:!1,autoFlyTo:!0,autoFlyToGraphic:!0,editStyle:{color:"#7A8DA0",width:"20px",height:"20px"},updatable:!0,toolStyle:{color:"rgb(80, 93, 113)",width:"16px",height:"16px"},toolContainerStyle:{width:"30px",height:"32px",lineHeight:"36px"},addLayer:!0,groupGraphicIDs:[]}},mounted:function(){this.$_init(!0)},methods:{$_deleteFeature:function(t){for(var e=this.dataSourceCopy[this.currenSelectIndex].dataSource,n=e.features,r=0;r<n.length;r++)n[r].id===t&&n.splice(r,1)},$_addFeature:function(t){this.dataSourceCopy[this.currenSelectIndex].dataSource.features=t},$_saveCamera:function(){this.currenSelectLayer&&(this.dataSourceCopy[this.currenSelectIndex].camera=Xn(viewer))},$_hasSameTitle:function(t){for(var e=!1,n=0;n<this.dataSourceCopy.length;n++)if(this.dataSourceCopy[n].name===t){e=!0;break}return e},$_finishEditTitle:function(){this.$_hasSameTitle(this.currenSelectLayer)?this.$message.warning("该图层名称已存在!"):(this.showEditTitle=!1,this.dataSourceCopy[this.currenSelectIndex].name=this.currenSelectLayer)},$_cloneArray:function(t){for(var e=[],n=0;n<t.length;n++)e.push(JSON.parse(JSON.stringify(t[n])));return e},$_clickTool:function(t,e){switch(t){case"add":var n="新建图层_"+(this.dataSourceCopy.length+1);this.$_hasSameTitle(n)&&(n+=parseInt(String(1e11*Math.random())));var r={name:n,uuid:parseInt(String(1e7*Math.random())),autoFlyTo:!0,autoFlyToGraphic:!0,dataSource:{type:"FeatureCollection",features:[]}};this.dataSourceCopy.length>0&&this.currenSelectIndex++,!e&&this.dataSourceCopy.length>0&&this.$message.success(n+"添加成功!"),this.dataSourceCopy.push(r),this.currentLayer.length>0&&this.$refs.graphicLayer.$_hideAllGraphics(),this.currentLayer=[],this.currenSelectLayer=r.name,this.$_layerSelect(),this.vueIndex=Number(r.uuid),this.$nextTick((function(){this.$refs.graphicLayer.drawMode="",this.$refs.graphicLayer.noTitleKey="list",this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.currentIconType="mouse",this.$refs.graphicLayer.$_resetEditPanel(),this.$refs.graphicLayer.$_resetIconsPanel(),this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing(),this.$refs.graphicLayer.isStartDrawing=!1,this.$refs.graphicLayer.$_clearList(),this.$refs.graphicLayer.$_init([],r.uuid),this.$refs.graphicLayer.$_switchGraphicLayer(r.uuid)}));break;case"delete":if(0===this.dataSourceCopy.length)return;if(this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing(),this.$refs.graphicLayer.$_removeAllGraphic(),this.$refs.graphicLayer.$_destroy(),this.$refs.graphicLayer.$_resetEditPanel(),this.$refs.graphicLayer.$_resetIconsPanel(),this.$message.success(this.dataSourceCopy[this.currenSelectIndex].name+"删除成功!"),this.dataSourceCopy.splice(this.currenSelectIndex,1),this.layerSelect.splice(this.currenSelectIndex,1),this.currenSelectIndex--,this.currenSelectIndex<0&&(this.currenSelectIndex=0),0===this.dataSourceCopy.length)this.currenSelectLayer="请添加图层",this.currentLayer=[],this.addLayer=!1;else{var i=this.currenSelectIndex<0?0:this.currenSelectIndex;this.currenSelectLayer=this.dataSourceCopy[i].name,this.currentLayer=this.$_cloneArray(this.dataSourceCopy[i].dataSource.features),this.$_selectLayer(this.dataSourceCopy[i].uuid)}break;case"editTitle":this.showEditTitle=!0;break;case"saveCamera":this.currenSelectLayer&&(this.dataSourceCopy[this.currenSelectIndex].camera=Xn(viewer));break;case"flyTo":if(this.currenSelectLayer){var o=this.dataSourceCopy[this.currenSelectIndex],a=o.camera;if(a){var s=a.positionCartographic,c=a.heading,u=a.pitch,l=a.roll,h=s.longitude,d=s.latitude,f=s.height;this.viewer.camera.flyTo({duration:1,destination:new Cesium.Cartesian3.fromRadians(h,d,f),orientation:{heading:c,pitch:u,roll:l}})}}break;case"setting":this.showSetting=!this.showSetting;break;case"save":for(var p=[],m=0;m<this.dataSourceCopy.length;m++){var g=this.dataSourceCopy[m],A=this.$refs.graphicLayer.$_toJSON(g.uuid,"default"),v=this.$refs.graphicLayer.$_getGroups();p.push({name:g.name,uuid:g.uuid,autoFlyTo:g.autoFlyTo,autoFlyToGraphic:g.autoFlyToGraphic,camera:Ja()(g.camera),dataSource:A,groups:v})}this.$message.success("保存成功!"),this.$emit("save",p);break;case"import":this.$_import();break;case"export":this.$_export();break}},$_back:function(){this.showSetting=!this.showSetting},$_import:function(){var t=document.getElementById(this.inputId),e=this;t.click(),t.onchange=function(){var n=t.files[0],r=new FileReader;r.readAsText(n,"UTF-8"),r.onload=function(n){var r=n.target.result;e.$_updateData(JSON.parse(r)),t.value=""}}},$_getRelativeUrl:function(t){for(var e="",n=t.split("//")[1],r=n.split("/"),i=1;i<r.length;i++)e+=r[i]+"/";return e=e.substr(0,e.length-1),e},$_export:function(){for(var t,e=0;e<this.dataSourceCopy.length;e++)if(this.currenSelectLayer===this.dataSourceCopy[e].name){t=this.dataSourceCopy[e];break}this.$refs.graphicLayer.$_stopEdit();var n=this.$refs.graphicLayer.$_toJSON(),r=this.$refs.graphicLayer.$_getGroups();if(this.enableRelativePath)for(var i=n.features,o=0;o<i.length;o++){var a=i[o].style;a&&a.hasOwnProperty("url")&&(i[o].style.url=this.$_getRelativeUrl(i[o].style.url))}var s={name:t.name,uuid:t.uuid,autoFlyTo:this.autoFlyTo,autoFlyToGraphic:this.autoFlyToGraphic,camera:Ja()(t.camera),dataSource:n,groups:r},c=new Blob([JSON.stringify(s)],{type:"application/json;charset=utf-8"}),u=t.name||"无标题";Object(Ec["saveAs"])(c,u+".json")},$_updateData:function(t){this.currenSelectLayer=t.name;for(var e=0;e<this.dataSourceCopy.length;e++){if(this.dataSourceCopy[e].uuid===t.uuid){this.$message.warning("请勿导入相同图层!");break}this.updatable=!1,this.dataSourceCopy.length>0&&this.currenSelectIndex++,this.$refs.graphicLayer.$_resetEditPanel(),this.dataSourceCopy.push(t),this.$_layerSelect();for(var n=[],r=[],i=0;i<t.groups.length;i++)n=n.concat(t.groups[e].dataSource),r.push(t.groups[e]);for(var o=0;o<t.dataSource.features.length;o++)n.indexOf(t.dataSource.features[o].id)<0&&r.push(t.dataSource.features[o]);if(this.enableRelativePath)for(var a=0;a<t.dataSource.features.length;a++)"model"===t.dataSource.features[a].type&&(t.dataSource.features[a].style.url=this.baseUrl+"/"+t.dataSource.features[a].style.url);this.groupGraphicIDs=n,this.$refs.graphicLayer.addSource=!1,this.$refs.graphicLayer.drawMode="point",this.currentLayer=this.$_cloneArray(r),this.autoFlyTo=t.autoFlyTo,this.autoFlyToGraphic=t.autoFlyToGraphic,this.vueIndex=Number(t.uuid),this.$refs.graphicLayer.$_hideAllGraphics(),this.$nextTick((function(){this.$refs.graphicLayer.noTitleKey="list",this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.currentIconType="mouse",this.$refs.graphicLayer.$_resetIconsPanel(),this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing(),this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.isStartDrawing=!1,this.$refs.graphicLayer.$_switchGraphicLayer(this.vueIndex),this.$refs.graphicLayer.$_showAllGraphics(),this.updatable=!0}));break}if(0===this.dataSourceCopy.length&&(this.dataSourceCopy.push(t),this.vueIndex=Number(t.uuid),this.autoFlyTo=t.autoFlyTo,this.autoFlyToGraphic=t.autoFlyToGraphic,this.$nextTick((function(){this.$refs.graphicLayer.drawMode="",this.$refs.graphicLayer.noTitleKey="list",this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.currentIconType="mouse",this.$refs.graphicLayer.$_resetEditPanel(),this.$refs.graphicLayer.$_resetIconsPanel(),this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing(),this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.isStartDrawing=!1,this.$refs.graphicLayer.$_init(),this.$refs.graphicLayer.$_switchGraphicLayer(this.vueIndex),this.$refs.graphicLayer.$_fromJson(t.dataSource)}))),this.autoFlyTo&&t.hasOwnProperty("camera")){var s=t.camera,c=s.heading,u=s.pitch,l=s.roll,h=s.positionCartographic,d=h.longitude,f=h.latitude,p=h.height;this.viewer.camera.flyTo({duration:2,destination:Cesium.Cartesian3.fromRadians(d,f,p),orientation:{heading:c,pitch:u,roll:l}})}},$_selectLayer:function(t){for(var e=this,n=function(n){if(e.dataSourceCopy[n].uuid===t){e.autoFlyTo=e.dataSourceCopy[n].autoFlyTo,e.autoFlyToGraphic=e.dataSourceCopy[n].autoFlyToGraphic,e.currenSelectLayer=e.dataSourceCopy[n].name,e.$refs.graphicLayer.$_hideAllGraphics(),e.vueIndex=Number(e.dataSourceCopy[n].uuid),e.currenSelectIndex=n,e.$nextTick((function(){this.$refs.graphicLayer.drawMode="",this.$refs.graphicLayer.noTitleKey="list",this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.currentIconType="mouse",this.$refs.graphicLayer.$_resetEditPanel(),this.$refs.graphicLayer.$_resetIconsPanel(),this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing(),this.$refs.graphicLayer.$_switchGraphicLayer(this.vueIndex),this.$refs.graphicLayer.$_showAllGraphics(),this.$refs.graphicLayer.dataSourceCopy=this.$_cloneArray(this.dataSourceCopy[n].dataSource.features)}));var r=e.dataSourceCopy[n].camera;if(e.autoFlyTo&&r){var i=r.heading,o=r.pitch,a=r.roll,s=r.positionCartographic,c=s.longitude,u=s.latitude,l=s.height;e.viewer.camera.flyTo({duration:2,destination:Cesium.Cartesian3.fromRadians(c,u,l),orientation:{heading:i,pitch:o,roll:a}})}return 1}},r=0;r<this.dataSourceCopy.length;r++)if(n(r))break},$_layerSelect:function(){this.layerSelect=[];for(var t=0;t<this.dataSourceCopy.length;t++)this.layerSelect.push({key:this.dataSourceCopy[t].uuid,value:this.dataSourceCopy[t].name})},$_init:function(t){this.dataSourceCopy=JSON.parse(JSON.stringify(this.dataSource)),this.dataSourceCopy.length>0?(this.currentLayer=this.$_cloneArray(this.dataSourceCopy[0].dataSource.features),this.vueIndex=this.dataSourceCopy[0].uuid,this.$_layerSelect()):(this.currenSelectLayer="请添加图层",this.currentLayer=[],this.addLayer&&this.$_clickTool("add",t))},$_hideAllGraphic:function(){this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing();for(var t=0;t<this.dataSourceCopy.length;t++)for(var e=this.dataSourceCopy[t].dataSource.features,n=0;n<e.length;n++){var r=this.$_getGraphicByID(e[n].id,this.dataSourceCopy[t].uuid);r.show=!1}},$_showCurrentGraphic:function(){this.$refs.graphicLayer.$_startEdit();for(var t=0;t<this.dataSourceCopy.length;t++)if(this.currenSelectLayer===this.dataSourceCopy[t].name){for(var e=this.dataSourceCopy[t].dataSource.features,n=0;n<e.length;n++){var r=this.$_getGraphicByID(e[n].id,this.dataSourceCopy[t].uuid);r.show=!0}break}},$_stopDrawAll:function(){this.$refs.graphicLayer.$_stopDrawAll()}}},sl=al,cl=(n("27b4"),je(sl,rl,il,!1,null,"1d8f64d3",null)),ul=cl.exports,ll=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},hl=[];function dl(t){return dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(t)}function fl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fl(Object(n),!0).forEach((function(e){ml(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ml(t,e,n){return(e=gl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gl(t){var e=Al(t,"string");return"symbol"==dl(e)?e:e+""}function Al(t,e){if("object"!=dl(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=dl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var vl={name:"mapgis-3d-web-tile-layer",inject:["Cesium","viewer","vueCesium"],mixins:[Ao],props:{subDomains:{type:Array,default:function(){return[]}},spatialReference:{type:Object,default:function(){}},options:{type:Object,default:function(){}}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",rectangle:"object",tilingScheme:"object",ellipsoid:"object",tileWidth:"number",tileHeight:"number",maximumLevel:"number",credit:"object|String",vueKey:"string",vueIndex:"string | Number"},managerName:"WebTileManager",providerName:"UrlTemplateImageryProvider"}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=this.$props,e=new Cesium.UrlTemplateImageryProvider(t);return new Cesium.ImageryLayer(e)},mount:function(){var t=this.baseUrl,e={};this.$props.spatialReference&&(e.tilingScheme=this.$_setTilingScheme(this.$props.spatialReference.wkid));var n,r=this.$props.options.zoomOffset||0;if(t.includes("{")&&t.includes("}/")){var i=t.split("{");n=i[1].split("}/")[0]}n&&r&&("z"===n&&(n="sz",t=t.replace("{z}","{sz}")),e.customTags={},e.customTags[n]=function(t,e,n,i){return i-r});var o=["{s}","{subDomain}","{subDomains}"];o.forEach((function(e){t&&t.includes(e)&&(t=t.replace(e,"{s}"))}));var a=t;if(t.includes("format=")){var s=t.split("format="),c=s[1].split("&");e.hasOwnProperty("extensions")&&e.extensions.length>0?e.extensions.push({key:"format",value:c[0]}):e.extensions=[{key:"format",value:c[0]}],a=s[0]+c[1]}var u=pl(pl({},e),{},{baseUrl:a});this.subDomains&&this.subDomains.length>0&&(u.subdomains=this.subDomains),this.$_mount(u)},unmount:function(){this.$_unmount()}}},yl=vl,bl=je(yl,ll,hl,!1,null,null,null),wl=bl.exports,_l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-popup-default-wrapper"},[t.popVisiable?n("div",[n("Popup",{attrs:{position:t.iClickPosition,visible:t.iClickVisible,forceRender:t.forceRender}},[n("mapgis-ui-popup-content",{attrs:{feature:t.gemotryAttribute[0],popupOptions:t.popupOptions,width:260}},[n("mapgis-3d-popup-iot",{attrs:{properties:t.gemotryAttribute[0]}})],1)],1)],1):t._e()])},xl=[];function Sl(t){return Sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(t)}function Cl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Cl=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Sl(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Sl(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Ml(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Ll(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ml(o,r,i,a,s,"next",t)}function s(t){Ml(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Tl={name:"mapgis-3d-geojson-layer",inject:["Cesium","vueCesium","viewer"],mixins:[Us,zs,Zs],props:{renderer:{type:Object,default:function(){return{}}},data:[String,Object],clampToGround:{type:Boolean,default:!1},layerStyle:{type:Object}},data:function(){return{layerType:"geojson",layerIndex:void 0,layerRange:[],clickhandler:void 0,hoverhandler:void 0,tempHighlightdata:void 0,tempQueryDataArr:[]}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{},methods:{createCesiumObject:function(){var t=Ll(Cl().mark((function t(){var e,n,r,i,o,a,s,c,u,l,h,d=this;return Cl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.viewer,this.vueCesium,n=this.data,this.gdbps,r=this.autoReset,i=this.renderer,o=this.clampToGround,a=this.layerStyle,this,{autoReset:r,loadAll:!0,renderer:i,getDocLayerIndexes:function(t){d.layerIndex=t[0]},clampToGround:o},!a){t.next=16;break}c=a.type,t.t0=c,t.next="point"===t.t0?9:"line"===t.t0?11:"fill"===t.t0?13:15;break;case 9:return s=this.getSimplePointRenderer(a),t.abrupt("break",16);case 11:return s=this.getSimpleLineRenderer(a),t.abrupt("break",16);case 13:return s=this.getSimplePolygonRenderer(a),t.abrupt("break",16);case 15:return t.abrupt("break",16);case 16:u="{}"===JSON.stringify(i)?s:i,l=n.features,h=this.constructFeatureSet(l),this.addLayer(e,u,h),this.onGeojsonLoaded(this.innerLayer);case 21:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onGeojsonLoaded:function(t){var e=this,n=this.vueIndex,r=this.vueKey,i=this.vueCesium,o=this.data;if(t){e.layer=t;var a=[t];i.GeojsonManager.addSource(r,n,a,{data:o,layerIndex:n,clickhandler:e.clickhandler,hoverhandler:e.hoverhandler}),e.$emit("load",{data:e})}},changeVisible:function(){var t=this.viewer,e=this.visible,n=this.layerIndex,r=t.scene.layers.getLayer(n);r.show=e},mount:function(){var t=this.viewer,e=(this.vueCesium,this.vueKey,this.vueIndex,this);t.shadows=!0,Cesium.FeatureDetection.supportsImageRenderingPixelated()&&(t.resolutionScale=window.devicePixelRatio),t.scene.fxaa=!0,t.scene.postProcessStages.fxaa.enabled=!0;var n=this.createCesiumObject();n.then((function(t){e.$_bindClickEvent(e.parseClick),e.$_bindHoverEvent(e.parseHover),e.enablePopup&&(e.clickhandler=e.$_bindClickEvent(e.clickHighlight)),e.enableClick&&(e.clickhandler=e.$_bindClickEvent(e.clickHighlight)),e.enableHover&&(e.hoverhandler=e.$_bindHoverEvent(e.hoverHighlight)),e.enableQuery&&e.queryPrimitive()}))},transformObject:function(t){var e=this;t=t||{},Object.keys(t).forEach((function(n){"distanceDisplayCondition"==n&&(t[n]=new Cesium.DistanceDisplayCondition(t[n][0],t[n][1])),"object"==Sl(t[n])&&e.transformObject(t[n]),"color"==n&&(t[n]=Cesium.Color.fromCssColorString(t[n]))}))},unmount:function(){this.viewer;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=(this.layerIndex,t.GeojsonManager.findSource(e,n));r&&r.source&&this.innerLayer.destroy(),r&&r.clickhandler&&r.clickhandler.destroy(),r&&r.hoverhandler&&r.hoverhandler.destroy(),t.GeojsonManager.deleteSource(e,n),this.$emit("unload",this)},parseClick:function(t){this.$emit("geojsonClick",{pick:t})},parseHover:function(t){this.$emit("geojsonHover",{pick:t})},parseBBox:function(t){this.$emit("bbox",{bbox:t})}}},kl=Tl,El=je(kl,_l,xl,!1,null,"3b683e50",null),Ol=El.exports,Pl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},Bl=[];function Il(t){return Il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(t)}function Dl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Dl=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Il(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Il(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Nl(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Fl(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Nl(o,r,i,a,s,"next",t)}function s(t){Nl(o,r,i,a,s,"throw",t)}a(void 0)}))}}var jl={name:"mapgis-3d-kml-layer",inject:["Cesium","vueCesium","viewer"],props:{vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}},visible:{type:Boolean,default:!0},url:{type:String,default:null},token:{type:Object}},computed:{name:function(){var t=null;if(this.url&&this.url.length>0){var e=this.url.split("/");t=e[e.length-1]}return t}},data:function(){return{}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{url:{handler:function(){this.removeKML(),(void 0===this.visible||this.visible)&&this.appendKml(this.url,!0)}},visible:{handler:function(){this.removeKML(),(void 0===this.visible||this.visible)&&this.appendKml(this.url,!1)}}},methods:{createCesiumObject:function(){var t=Fl(Dl().mark((function t(){return Dl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){t()}),(function(t){})));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){this.viewer;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=(this.kmlData,this),i=this.createCesiumObject();i.then((function(i){t.KmlManager.addSource(e,n,i,{kmlData:void 0}),r.appendKml(r.url,!0),r.$emit("loaded",r)}))},appendKml:function(t,e){if(t&&0!=t.length){var n=this.vueKey,r=this.vueIndex,i=this.Cesium,o=this.viewer,a=this.token,s=vueCesium.KmlManager.findSource(n,r),c=s.options,u=c.kmlData;return u&&!e||(a&&a.value&&(t+="?"+a.key+"="+a.value),u=i.KmlDataSource.load(t,{camera:o.scene.camera,canvas:o.scene.canvas,clampToGround:!0}),vueCesium.KmlManager.changeOptions(n,r,"kmlData",u)),o.dataSources.add(u),u}},removeKML:function(){var t=this.viewer,e=t.dataSources.getByName(this.name)[0];e&&t.dataSources.remove(e)},unmount:function(){this.removeKML();var t=this.vueKey,e=this.vueIndex,n=(this.viewer,this.vueCesium),r=n.KmlManager.findSource(t,e),i=r.options,o=i.kmlData;o&&n.KmlManager.changeOptions(t,e,"kmlData",null),this.$emit("unload",this)}}},Rl=jl,Hl=je(Rl,Pl,Bl,!1,null,"8c16df60",null),zl=Hl.exports,Ul=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},Vl=[];function Yl(t){return Yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(t)}function Gl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Gl=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Yl(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Yl(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Ql(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Wl(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ql(o,r,i,a,s,"next",t)}function s(t){Ql(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Kl={name:"mapgis-3d-czml-layer",inject:["Cesium","vueCesium","viewer"],props:{url:{type:String,default:null},token:{type:Object}},data:function(){return{}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{url:{handler:function(){this.removeCzml(),(void 0===this.visible||this.visible)&&this.appendCzml(this.url,!0)}},visible:{handler:function(){this.removeCzml(),(void 0===this.visible||this.visible)&&this.appendCzml(this.url,!1)}}},methods:{createCesiumObject:function(){var t=Wl(Gl().mark((function t(){return Gl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){t()}),(function(t){})));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){this.viewer;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=(this.czmlData,this),i=this.createCesiumObject();i.then((function(i){t.CzmlManager.addSource(e,n,i,{czmlData:void 0}),r.appendCzml(r.url,!0),r.$emit("loaded",r)}))},appendCzml:function(t,e){if(t&&0!=t.length){var n=this.vueKey,r=this.vueIndex,i=this.Cesium,o=this.viewer,a=this.token,s=vueCesium.CzmlManager.findSource(n,r),c=s.options,u=c.czmlData;return u&&!e||(a&&a.value&&(t+="?"+a.key+"="+a.value),u=i.CzmlDataSource.load(t,{camera:o.scene.camera,canvas:o.scene.canvas,clampToGround:!0}),vueCesium.CzmlManager.changeOptions(n,r,"czmlData",u)),o.dataSources.add(u),u}},removeCzml:function(){var t=this.viewer,e=t.dataSources.getByName(this.name)[0];e&&t.dataSources.remove(e)},unmount:function(){this.removeCzml();var t=this.vueKey,e=this.vueIndex,n=(this.viewer,this.vueCesium),r=n.CzmlManager.findSource(t,e),i=r.options,o=i.czmlData;o&&n.CzmlManager.changeOptions(t,e,"czmlData",null),this.$emit("unload",this)}}},ql=Kl,Xl=je(ql,Ul,Vl,!1,null,"1aa93b61",null),$l=Xl.exports,Jl={vueKey:{type:String,default:"default"},vueIndex:{type:[String,Number],default:(1e4*Math.random()).toFixed(0)},headers:{},ip:{type:String},port:{type:Number},layerName:{type:String},mvtStyle:{type:[String,Object]},styleUrl:{type:String},vectortilejson:{type:Object},tilingScheme:{type:[String,Object]},tileInfo:{type:Object},spatialReference:{type:Object},extent:{type:[Object]},token:{type:Object},show:{type:Boolean,default:!0}},Zl=n("5da1"),th=n.n(Zl),eh=n("3059");function nh(t){return nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nh(t)}function rh(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */rh=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==nh(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(nh(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function ih(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function oh(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ih(o,r,i,a,s,"next",t)}function s(t){ih(o,r,i,a,s,"throw",t)}a(void 0)}))}}function ah(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function sh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ah(Object(n),!0).forEach((function(e){ch(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ch(t,e,n){return(e=uh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uh(t){var e=lh(t,"string");return"symbol"==nh(e)?e:e+""}function lh(t,e){if("object"!=nh(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=nh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var hh,dh,fh=eh["Util"].UrlUtil,ph={name:"mapgis-3d-vectortile-layer",mixins:[Ao],props:sh({},Jl),data:function(){return{managerName:"VectorTileManager"}},inject:["Cesium","viewer","vueCesium"],created:function(){},mounted:function(){var t=this;this.$_mount().then((function(){t.watchProp()}))},destroyed:function(){this.$_unmount()},watch:{layerStyle:{handler:function(t,e){var n=this.vueKey,r=this.vueIndex,i=this.vueCesium,o=i[this.managerName].findSource(n,r);o&&(this.layerStyleCopy.visible!==this.layerStyle.visible&&(o.source.show=this.layerStyle.visible),this.layerStyleCopy.opacity!==this.layerStyle.opacity&&(o.source.alpha=this.layerStyle.opacity),this.layerStyleCopy.zIndex!==this.layerStyle.zIndex&&this.$_moveLayer(),this.layerStyleCopy=Ja()(t))},deep:!0}},methods:{createCesiumObject:function(){var t=oh(rh().mark((function t(){var e,n,r,i,o=this;return rh().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.$props,n=this.viewer,this.vueCesium,r=e.tilingScheme,i=void 0,i=r?"string"===typeof r?this.checkTiling(r):r:e.tileInfo&&e.spatialReference&&e.extent?this.getCustomTilingScheme(e.tileInfo,e.spatialReference,e.extent):new Cesium.GeographicTilingScheme,t.abrupt("return",new Promise(function(){var t=oh(rh().mark((function t(r){var a,s,c,u,l,h,d,f;return rh().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=o.$_getLevelRangeByTileInfo(e.tileInfo),c=0,u=22,e.options&&(l=e.options.minimumLevel||0,h=e.options.maximumLevel||22,c=Math.max(l,s[0]),u=Math.min(h,s[1])),d=sh(sh({},e),{},{minimumLevel:c,maximumLevel:u,tilingScheme:i}),f=Object(ba["getProviderExtent"])(d,d.tilingScheme.rectangle),f.spatialReference=new uo["SpatialReference"]("EPSG:4326"),d.rectangle=new Cesium.Rectangle(f.xmin,f.ymin,f.xmax,f.ymax),t.next=10,o.getMVTStyleObject();case 10:d.style=t.sent,d.scene=n.scene,d.tileWidth=d.tileInfo&&d.tileInfo.size?d.tileInfo.size[0]:256,d.tileHeight=d.tileInfo&&d.tileInfo.size?d.tileInfo.size[1]:256,a=o.$_addLayer(d),r(a);case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){})));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),$_addLayer:function(t){var e=new ba["MapGISVectorTileImageryProvider"]({style:t.style,opacity:t.opacity?t.opacity:1,show:!t.visible||t.visible,tilingScheme:t.tilingScheme,scene:t.scene,labelsRenderMode:t.labelsRenderMode?t.labelsRenderMode:"off-screen",rectangle:t.rectangle,tileWidth:t.tileWidth,tileHeight:t.tileHeight,transform:t.mvtExtent?[512/t.mvtExtent,0,0,512/t.mvtExtent,0,0]:[.125,0,0,.125,0,0],tokenKey:t.tokenKey?t.tokenKey:"",tokenValue:t.tokenValue?t.tokenValue:"",minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel});return viewer.imageryLayers.addImageryProvider(e)},$_removeLayer:function(){this.$vectortile&&(this.viewer.imageryLayers.remove(this.$vectortile,!0),this.$vectortile.show=!1)},$_getLevelRangeByTileInfo:function(t){var e=[0,22];if(!t||!Array.isArray(t.lods)||0===t.lods.length)return e;var n=t.lods,r=n[0].level,i=n[n.length-1].level;return[r,i]},getMVTStyleObject:function(){var t=this,e=void 0,n=void 0;this.styleUrl;return new Promise((function(r,i){if(t.mvtStyle)"string"===typeof t.mvtStyle?e=t.mvtStyle:n=t.mvtStyle;else if(t.styleUrl){if("string"===typeof t.styleUrl)e=t.styleUrl;else if(t.ip&&t.layerName){var o=t.ip,a=t.port;e="".concat(fh.getOrigin({ip:o,port:a}),"/igs/rest/mrcs/vtiles/0/").concat(t.layerName)}}else t.vectortilejson?n=t.vectortilejson:e=t.url;if(e||n){var s=new uo["IGSVectorTileLayer"]({url:e,style:n});s.load().then((function(t){r(t.style)}))}else r()}))},checkTiling:function(t){var e;return e="EPSG:4326"===t||"EPSG:4490"===t||"EPSG:4610"===t||"EPSG:4214"===t?new Cesium.GeographicTilingScheme:"EPSG:3857"===t?new Cesium.WebMercatorTilingScheme:new Cesium.GeographicTilingScheme,e},getCustomTilingScheme:function(t,e,n){var r=new uo["SpatialReference"]({wkid:e.wkid}),i=new uo["Point"]({coordinates:[t.origin.x,t.origin.y],spatialReference:e}),o=new uo["Extent"]({xmin:n.xmin,ymin:n.ymin,xmax:n.xmax,ymax:n.ymax}),a=new uo["TileInfo"]({dpi:t.dpi,format:t.format,origin:i,lods:t.lods,spatialReference:r,size:t.size}),s=Object(ba["getTilingScheme"])(r,o,a);return s},watchProp:function(){var t=this.vueCesium,e=this.viewer,n=this.vueKey,r=this.vueIndex,i=this.show,o=this.mvtStyle,a=this.vectortilejson,s=t.VectorTileManager.findSource(n,r);i&&this.$watch("show",(function(t){this.initial||s&&!e.isDestroyed()&&(s.source.show=t)})),o&&this.$watch("mvtStyle",{handler:function(t){"object"!==nh(t)||e.isDestroyed()||this.updateStyle(t)},deep:!0}),a&&this.$watch("vectortilejson",{handler:function(t,n){var r=th()(t,n);"object"!==nh(t)||r||void 0===this.$vectortile||e.isDestroyed()||this.updateStyle(t)},deep:!0})},updateStyle:function(t){var e=this.$vectortile&&this.$vectortile._imageryProvider?this.$vectortile._imageryProvider.options:{};th()(t,e.style)||(this.layerStyle=t,e.style=t,this.$_removeLayer(),this.$vectortile=this.$_addLayer(e))},provider:function(){return this.$vectortile?this.$vectortile._imageryProvider:void 0},$_mount:function(){var t=this.vueIndex,e=this.vueKey,n=this.vueCesium,r=this.layerStyle,i=r.visible,o=r.opacity,a=r.zIndex,s=this.$_getWebGlobe(),c=s.imageryLayers;if(!s.isDestroyed()){this.$emit("load",this);var u=this,l=this.createCesiumObject();return l.then((function(s){u.$vectortile=s;var l=s;if(e&&t&&n.VectorTileManager.addSource(e,t,l,{vectortile:s}),a<0)throw new Error("zIndex不能为负数");a&&u.$_checkZIndex(c),u.$_initLayerIndex(),"boolean"===typeof i&&(l.show=i),"number"===typeof o&&(l.alpha=o),u.layerStyleCopy=Ja()(r)})),l}},$_unmount:function(){var t=this.viewer,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=r.VectorTileManager.findSource(e,n);i&&!t.isDestroyed()&&(this.$_removeLayer(),this.$vectortile=void 0),r.VectorTileManager.deleteSource(e,n)}},render:function(t){return t("span")}},mh=ph,gh=je(mh,hh,dh,!1,null,null,null),Ah=gh.exports,vh=(K["Style"].ModelStyle,{vueKey:{type:String,default:"default"},vueIndex:{type:[String,Number],default:function(){return(1e8*Math.random()).toFixed(0)}},highlightStyle:{type:String,default:"rgba(255, 255, 0, 0.6)"},headers:{},url:{type:String,required:!0},show:{type:Boolean,default:!0},opacity:{type:Number,default:1},autoReset:{type:Boolean,default:!0},duration:{type:Number,default:1},fillClip:{type:Boolean,default:!1},hasSectionGeometry:{type:Boolean,default:!1},offset:{type:Object},scale:{type:Object},maximumScreenSpaceError:{type:[Number,Array],default:16},maximumMemoryUsage:{type:Number,default:512},cullWithChildrenBounds:{type:Boolean,default:!0},cullRequestsWhileMoving:{type:Boolean,default:!0},cullRequestsWhileMovingMultiplier:{type:Number,default:60},preloadWhenHidden:{type:Boolean,default:!1},preloadFlightDestinations:{type:Boolean,default:!0},preferLeaves:{type:Boolean,default:!1},dynamicScreenSpaceError:{type:Boolean,default:!1},dynamicScreenSpaceErrorDensity:{type:Number,default:.00278},dynamicScreenSpaceErrorFactor:{type:Number,default:4},dynamicScreenSpaceErrorHeightFalloff:{type:Number,default:.25},progressiveResolutionHeightFraction:{type:Number,default:.3},foveatedScreenSpaceError:{type:Boolean,default:!0},foveatedConeSize:{type:Number,default:.1},foveatedMinimumScreenSpaceErrorRelaxation:{type:Number,default:0},foveatedTimeDelay:{type:Number,default:.2},skipLevelOfDetail:{type:Boolean,default:!1},baseScreenSpaceError:{type:Number,default:1024},skipScreenSpaceErrorFactor:{type:Number,default:16},skipLevels:{type:Number,default:1},immediatelyLoadDesiredLevelOfDetail:{type:Boolean,default:!1},loadSiblings:{type:Boolean,default:!1},luminanceAtZenith:{type:Number,default:.2},specularEnvironmentMaps:{type:String,default:""},debugHeatmapTilePropertyName:{type:String},debugFreezeFrame:{type:Boolean,default:!1},debugColorizeTiles:{type:Boolean,default:!1},debugWireframe:{type:Boolean,default:!1},debugShowBoundingVolume:{type:Boolean,default:!1},debugShowContentBoundingVolume:{type:Boolean,default:!1},debugShowViewerRequestVolume:{type:Boolean,default:!1},debugShowGeometricError:{type:Boolean,default:!1},debugShowRenderingStatistics:{type:Boolean,default:!1},debugShowMemoryUsage:{type:Boolean,default:!1},debugShowUrl:{type:Boolean,default:!1},extensions:{type:Object}});function yh(t){return yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yh(t)}function bh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bh(Object(n),!0).forEach((function(e){_h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _h(t,e,n){return(e=xh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xh(t){var e=Sh(t,"string");return"symbol"==yh(e)?e:e+""}function Sh(t,e){if("object"!=yh(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=yh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ch={props:wh(wh({},vh),{},{popupShowType:{type:String,default:"default"},popupOverlay:{type:Object,default:function(){}},dataStoreIp:{type:String,default:"192.168.96.101"},dataStorePort:{type:String,default:"9014"},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"},popupOptions:{type:Object,default:function(){return{popupType:"card"}}},token:{type:Object}}),inject:["Cesium","vueCesium","viewer"],created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=this.$props,e=this.Cesium;return new e.Cesium3DTileset(t)},watchProp:function(){var t=this.show;t&&this.$watch("show",(function(t){this.initial}))},mount:function(){var t=this.viewer;this.autoReset,this.vueIndex,this.vueKey;if(!t.isDestroyed()){this.$emit("load",this);var e=this.createCesiumObject();e.then((function(e){var n=e.layerIndex;t.scene.layers.getCesium3DTilesetLayer(n)}))}},unmount:function(){var t=this.viewer,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=r.Tileset3DManager.findSource(e,n);i&&!t.isDestroyed()&&t.scene.primitives.remove(i.source),this.feature=null,this.unbindPopupEvent(),this.$emit("unload"),r.Tileset3DManager.deleteSource(e,n)},bindPopupEvent:function(){var t,e,n=this.vueKey,r=this.vueIndex,i=this.vueCesium,o=this.enablePopup,a=this.enableTips,s=this.enableModelSwitch;(o||s)&&(t=this.$_bindClickEvent(this.pickFeature,this.cancelFeature,!0,!1)),a&&(e=this.$_bindHoverEvent(this.pickFeature)),i.Tileset3DManager.changeOptions(n,r,"clickhandler",t),i.Tileset3DManager.changeOptions(n,r,"hoverhandler",e)},unbindPopupEvent:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=t.Tileset3DManager.findSource(e,n);r&&r.options&&(r.options.clickhandler&&r.options.clickhandler.destroy(),r.options.hoverhandler&&r.options.hoverhandler.destroy()),this.popupOverlay&&this.popupOverlay.setContent(null),this.cancelFeature()}},render:function(t){return t("span")}};function Mh(t){return Mh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mh(t)}function Lh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Th(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lh(Object(n),!0).forEach((function(e){kh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kh(t,e,n){return(e=Eh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Eh(t){var e=Oh(t,"string");return"symbol"==Mh(e)?e:e+""}function Oh(t,e){if("object"!=Mh(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Mh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ph,Bh,Ih={name:"mapgis-3d-filem3d-layer",mixins:[Ch],props:{layerRenderIndex:{type:Number,default:0},layerIndex:{type:Number,default:0},gdbpUrl:{type:String,default:""},show:{type:Boolean,default:!0},igserver:{type:Boolean,default:!0}},methods:{createCesiumObject:function(){var t=this.$props,e=this.url,n=this.Cesium,r=Th(Th({},t),{},{igserver:!1,url:e}),i=new n.MapGISM3DSet(r);return i},mount:function(){var t=this.Cesium,e=this.viewer,n=this.autoReset;if(!e.isDestroyed()){var r=this.createCesiumObject();r.readyPromise.then((function(r){e.scene.primitives.add(r);var i=r.boundingSphere;n&&e.camera.viewBoundingSphere(i,new t.HeadingPitchRange(0,-.5,i.radius)),e.camera.lookAtTransform(t.Matrix4.IDENTITY);var o=t.Cartographic.fromCartesian(r.boundingSphere.center),a=t.Cartesian3.fromRadians(o.longitude,o.latitude,0),s=t.Cartesian3.fromRadians(o.longitude,o.latitude,0),c=t.Cartesian3.subtract(s,a,new t.Cartesian3);r.modelMatrix=t.Matrix4.fromTranslation(c),n&&new t.Layers.zoomToM3dLayer(r)})).otherwise((function(t){console.error("3dtileset",t)}))}},unmount:function(){var t=this.viewer,e=this.tileset;return!t.isDestroyed()&&t.scene.primitives.remove(e)}}},Dh=Ih,Nh=je(Dh,Ph,Bh,!1,null,null,null),Fh=Nh.exports,jh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.enableControl?n("mapgis-ui-collapse-card",{ref:"card",staticClass:"mapgis-3d-scene-layer",attrs:{position:"top-left",defaultCollapse:!1,outStyle:t.outStyle,title:t.title},on:{"toggle-main":t.handleBackMain}},[n("mapgis-ui-iconfont",{attrs:{slot:"icon-hiden",type:"mapgis-layer1"},slot:"icon-hiden"}),n("span",{staticClass:"mapgis-3d-scene-layer-title",attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.title))]),n("mapgis-ui-space",{staticClass:"mapgis-3d-scene-layer-icons",attrs:{slot:"extra"},slot:"extra"},t._l(t.menus,(function(e,r){return n("mapgis-ui-tooltip",{key:r},[n("template",{slot:"title"},[t._v(t._s(e.title))]),n("mapgis-ui-iconfont",{class:{active:e.active},attrs:{type:e.icon},on:{click:function(n){return t.handleMenu(e.title)}}})],2)})),1),n("mapgis-ui-row",{staticClass:"mapgis-3d-g3d-document"},[n("mapgis-ui-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{placeholder:"搜索"},on:{change:t.onChange}}),n("mapgis-ui-tree",{staticClass:"mapgis-3d-g3d-document-tree",attrs:{checkable:"",showIcon:"","expanded-keys":t.expandedKeys,"auto-expand-parent":t.autoExpandParent,"tree-data":t.layerTree,selectedKeys:t.selectedKeys},on:{expand:t.onExpand,select:t.onSelect},scopedSlots:t._u([{key:"custom",fn:function(t){}},{key:"title",fn:function(e){var r=e.title,i=e.icon,o=e.version,a=e.gdbp,s=e.ip,c=e.port,u=e.domain,l=e.layerIndex,h=e.layerType,d=e.key,f=e.subLayerType;return[n("mapgis-ui-iconfont",{style:{marginRight:"2px"},attrs:{type:f}}),n("span",{class:{"mapgis-3d-scene-layer-span":!0,"mapgis-3d-scene-layer-span-inline":!0,select:t.selectLayerIndex==l}},[r&&r.indexOf(t.searchValue)>-1?n("span",[t._v("\n "+t._s(r.substr(0,r.indexOf(t.searchValue)))+"\n "),n("span",{staticStyle:{color:"#f50"}},[t._v(t._s(t.searchValue))]),t._v("\n "+t._s(r.substr(r.indexOf(t.searchValue)+t.searchValue.length))+"\n ")]):n("span",[t._v(t._s(r))]),o&&"地图场景默认键值"==d?n("span",{staticClass:"mapgis-3d-scene-layer-version"},[t._v("版本:"+t._s(o))]):t._e(),h!=t.type.cache||t.isolation&&t.selectLayerIndex!=l?t._e():n("mapgis-ui-iconfont",{staticClass:"iconfont",staticStyle:{marginleft:"8px"},attrs:{type:i},on:{click:function(){return t.handleActiveItemKey({title:r,version:o,gdbp:a,ip:s,port:c,domain:u,layerIndex:l,key:d})}}}),h!=t.type.cache||t.isolation&&t.selectLayerIndex!=l?t._e():n("mapgis-ui-iconfont",{staticClass:"iconfont",attrs:{type:t.layerKey==d?"mapgis-unlock":"mapgis-lock"},on:{click:function(){return t.changeIsolation({title:r,icon:i,version:o,gdbp:a,ip:s,port:c,domain:u,layerIndex:l,key:d})}}})],1)]}}],null,!1,3112751892),model:{value:t.layerIds,callback:function(e){t.layerIds=e},expression:"layerIds"}})],1),n("m3d-menus",{attrs:{slot:"panel",size:"big",mode:"地图场景默认键值"==t.layerKey?"g3d":"m3d",version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.selectLayerIndex,gdbp:t.gdbp,ip:t.ip,port:t.port,domain:t.domain},on:{"enable-dynamic-query":t.handleDynamicQuery},slot:"panel"})],1):t._e(),t.featureposition?n("mapgis-3d-feature-popup",t._b({attrs:{position:t.featureposition,popupOptions:t.popupOptions,componentWidth:t.popupWidth},model:{value:t.featurevisible,callback:function(e){t.featurevisible=e},expression:"featurevisible"}},"mapgis-3d-feature-popup",t.popupConfig,!1),[n(t.popupComponent,t._b({tag:"component",attrs:{properties:t.featureproperties,dataStoreIp:t.dataStoreIp,dataStorePort:t.dataStorePort,dataStoreDataset:t.dataStoreDataset}},"component",t.popupConfig,!1))],1):t._e()],1)},Rh=[],Hh={vueKey:{type:String,default:"default"},vueIndex:{type:[String,Number],default:function(){return(1e8*Math.random()).toFixed(0)}},layerId:{type:String},url:{type:String,required:!0},opacity:{type:Number,default:1},opacityLayersArray:{type:Array,default:function(){return[]}},autoReset:{type:Boolean,default:!0},fillClip:{type:Boolean,default:!1},hasSectionGeometry:{type:Boolean,default:!1},synchronous:{type:Boolean,default:!0},showBoundingVolume:{type:Boolean,default:!1},maximumScreenSpaceError:{type:Number,default:16},maximumMemoryUsage:{type:Number,default:512},layers:{type:String,default:void 0},useIDB:{type:Boolean,default:!1},maxCacheLevel:{type:Number,default:3},tileFeaturesCount:{type:Number,default:400},duration:{type:Number,default:1},orientation:{type:Object},requestVertexNormals:{type:Boolean,default:!1},proxy:{type:Object},enablePopup:{type:Boolean,default:!1},enableControl:{type:Boolean,default:!1},outStyle:{type:Object,default:function(){return{position:"absolute",zIndex:1e3,height:"450px",width:"270px",top:"0px",left:"0px"}}}},zh={UnKnow:"UnKnow",Model:"Model",Instance:"Instance",CloudPoint:"CloudPoint",Terrain:"Terrain"},Uh={Model:0,Instance:1,CloudPoint:2},Vh=K["G3D"].G3DLayerType,Yh=K["G3D"].M3DTileDataInfo;function Gh(t,e){var n=function(n){if(r){window.clearInterval(r),r=void 0;var i=[];t.forEach((function(t){var e=Qh(t);t.type=e||n,i.push(t.type)})),e&&e(i)}},r=window.setInterval((function(){t.forEach((function(t){Qh(t,n)}))}),100)}function Qh(t,e){var n=Yh.UnKnow,r=t.root;if(!r)return n;var i=r.tileset._version,o=r.children;if("0.0"==i||"1.0"==i){if(!o||o.length<=0)return n;o.forEach((function(t){var r=Wh(t,i,e);n=r||n}))}else if("2.0"==i){if(!o||o.length<=0)return n;o.forEach((function(t){var r=Wh(t,i,e);n=r||n}))}return n}function Wh(t,e,n){var r;if(!t)return r;if(t._content){var i=t._content._dataType;if(i>=0){if("0.0"==e||"1.0"==e)switch(i){case Uh.Model:r=Yh.Model;break;case Uh.Instance:r=Yh.Vector;break;case Uh.CloudPoint:r=Yh.PointCloud;break}else if("2.0"==e)switch(i){case Yh.Model:case"".concat(Yh.Model):r=Yh.Model;break;case Yh.Instance:case"".concat(Yh.Instance):r=Yh.Vector;break;case Yh.PointCloud:case"".concat(Yh.PointCloud):r=Yh.PointCloud;break}return n&&n(r),r}}return r}function Kh(t){var e="";switch(t){case Yh.UnKnow:e="mapgis-info";break;case Yh.Model:e="mapgis-sanweiditu";break;case Yh.Vector:e="mapgis-vector";break;case Yh.PointCloud:e="mapgis-cloud";break;case Vh.g3dTerrainLayer:e="mapgis-terrain";break}return e}var qh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menus"},[n("mapgis-ui-tab-panel",{attrs:{tabs:t.menus},on:{change:t.handleMenuClick}}),n("div",{staticClass:"mapgis-3d-m3d-menus-content"},["setting"==t.currentMenu?n("m3d-menu-setting",{attrs:{version:t.version}}):t._e(),"properties"==t.currentMenu?n("m3d-menu-props",{attrs:{version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.layerIndex,gdbp:t.gdbp,ip:t.ip,port:t.port,domain:t.domain}}):t._e(),"explosion"==t.currentMenu?n("m3d-menu-explosion",{attrs:{version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.layerIndex}}):t._e(),"bloom"==t.currentMenu?n("m3d-menu-bloom",{attrs:{version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.layerIndex}}):t._e(),"dynamic"==t.currentMenu?n("m3d-menu-dynamic-line",{attrs:{version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.layerIndex}}):t._e(),"searchlight"==t.currentMenu?n("m3d-menu-searchlight",{attrs:{version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.layerIndex}}):t._e()],1)],1)},Xh=[],$h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{className:"mapgis-3d-m3d-menu-setting"}},[n("mapgis-3d-scene-setting",{attrs:{layout:"vertical"}})],1)},Jh=[];function Zh(t){return Zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zh(t)}function td(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ed(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?td(Object(n),!0).forEach((function(e){nd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):td(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nd(t,e,n){return(e=rd(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rd(t){var e=id(t,"string");return"symbol"==Zh(e)?e:e+""}function id(t,e){if("object"!=Zh(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Zh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var od={name:"mapgis-3d-m3d-menu-setting",inject:["Cesium","vueCesium","viewer","m3ds"],props:ed(ed({},ln),{},{version:{type:String},layerIndex:{type:Number}}),data:function(){return{currentMenu:void 0}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},mount:function(){var t=this,e=this,n=this.Cesium,r=this.vueIndex,i=this.vueKey,o=this.vueCesium,a=this.viewer,s=this.createCesiumObject();s.then((function(s){o.G3DManager.addSource(i,r,t,{version_0_0:{current:{feature:void 0,originalColor:new n.Color},currentLayer:void 0,analysisManager:new window.CesiumZondy.Manager.AnalysisManager({viewer:a})},version_2_0:{}});var c=o.ViewerManager.findAllSource(i);if(c&&c.length>0){var u=c[0].options.ScreenSpaceEventHandler;u?u.removeInputAction(e.$_highlightAction,n.ScreenSpaceEventType.LEFT_CLICK):u=new n.ScreenSpaceEventHandler(a.scene.canvas),u.setInputAction(e.$_highlightAction,n.ScreenSpaceEventType.LEFT_CLICK)}})),a.isDestroyed()},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=t.G3DManager.findSource(e,n);r&&r.options,this.$emit("unload",{component:this}),t.G3DManager.deleteSource(e,n)},$_highlightAction:function(t){this.vueKey,this.vueIndex,this.vueCesium,this.Cesium;var e=this.layerIndex,n=this.viewer,r=this.m3ds;this.version;r?r[e]:n.scene.layers.getM3DLayer(e)}}},ad=od,sd=(n("84e6"),je(ad,$h,Jh,!1,null,null,null)),cd=sd.exports,ud=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menu-props"},[t.enableQuery()?n("mapgis-ui-input",{attrs:{value:t.gdbp,size:"small"}},[n("mapgis-ui-tooltip",{attrs:{slot:"addonAfter",placement:"bottom"},slot:"addonAfter"},[n("span",{attrs:{slot:"title"},slot:"title"},[t._v("0.0版本/1.0版本需要地图文档绑定模型,服务要重新发一下")]),n("mapgis-ui-iconfont",{attrs:{type:"mapgis-info-circle"}})],1)],1):t._e(),n("mapgis-ui-divider",{staticStyle:{fontsize:"14px"}},[t._v("属性展示 ")]),t._l(Object.keys(t.properties),(function(e){return n("div",{key:e,staticClass:"mapgis-3d-popup-props-item"},[n("span",{staticClass:"mapgis-3d-popup-props-item-key"},[t._v(t._s(e))]),n("span",{staticClass:"mapgis-3d-popup-props-item-value"},[t._v(t._s(t.properties[e]))])])})),n("mapgis-3d-feature-popup",{attrs:{position:t.position,properties:t.properties},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}})],2)},ld=[];function hd(t){return hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hd(t)}function dd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dd(Object(n),!0).forEach((function(e){pd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pd(t,e,n){return(e=md(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function md(t){var e=gd(t,"string");return"symbol"==hd(e)?e:e+""}function gd(t,e){if("object"!=hd(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=hd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ad={name:"mapgis-3d-m3d-menu-props",inject:["Cesium","vueCesium","viewer","m3ds"],props:fd(fd({},ln),{},{version:{type:String},g3dLayerIndex:{type:Number},layerIndex:{type:Number},gdbp:{type:String},ip:{type:String},port:{type:String},domain:{type:String}}),data:function(){return{currentMenu:void 0,position:{longitude:0,latitude:0,height:0},oid:void 0,properties:{},show:!1}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},mount:function(){var t=this,e=this,n=this.Cesium,r=this.vueIndex,i=this.vueKey,o=this.vueCesium,a=this.viewer,s=this.createCesiumObject();s.then((function(s){var c=new n.PrimitiveCollection;o.G3DManager.addSource(i,r,t,{version_0_0:{current:{feature:void 0,originalColor:new n.Color},currentLayer:void 0,analysisManager:new window.CesiumZondy.Manager.AnalysisManager({viewer:a}),collection:c,primitiveCollection:a.scene.primitives.add(c)},version_2_0:{}});var u=o.ViewerManager.findAllSource(i);if(u&&u.length>0){var l=u[0].options.ScreenSpaceEventHandler;l?l.removeInputAction(e.$_highlightAction,n.ScreenSpaceEventType.LEFT_CLICK):l=new n.ScreenSpaceEventHandler(a.scene.canvas),l.setInputAction(e.$_highlightAction,n.ScreenSpaceEventType.LEFT_CLICK)}})),a.isDestroyed()},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this.version,i=this.viewer;this.show=!1;var o=t.G3DManager.findSource(e,n);if(o&&o.options&&("0.0"==r||"1.0"==r)){var a=o.options.version_0_0,s=a.current,c=a.currentLayer,u=a.analysisManager,l=a.collection;l&&i.scene.primitives.remove(l),s.feature&&(c=[s.feature.tileset],u.stopCustomDisplay(c),s.feature=void 0)}this.$emit("unload",{component:this}),t.G3DManager.deleteSource(e,n)},enableQuery:function(){var t=this.gdbp,e=!1;return t&&(t=t.toLowerCase(),(t.indexOf("gdbp")>=0||t.indexOf("file")>=0)&&(e=!0)),e},parseRule:function(){var t=this.gdbp,e=void 0;return t&&(t=t.toLowerCase(),t.indexOf("gdbp")>=0?e="gdbp":t.indexOf("file")>=0&&(e="doc")),e},$_highlightAction:function(t){var e,n=this,r=this.vueKey,i=this.vueIndex,o=this.vueCesium,a=this.Cesium,s=this.layerIndex,c=this.viewer,u=this.m3ds,l=this.version,h=this.gdbp;if(e=u?u[s]:c.scene.layers.getM3DLayer(s),e){var d=c.scene.pick(t.position);if("0.0"==l||"1.0"==l){var f=this.parseRule();if("gdbp"==f){var p=o.G3DManager.findSource(r,i);if(p&&p.options&&p.options.version_0_0){var m=p.options.version_0_0,g=m.current,A=m.currentLayer,v=m.analysisManager;if(a.defined(g.feature)&&g.feature!==d&&(A=[g.feature.tileset],v.stopCustomDisplay(A),g.feature=void 0),a.defined(d)&&g.feature!==d){g.feature=d,A=[g.feature.tileset];var y=g.feature.getProperty("name"),b=y.split("_"),w=parseInt(b[2]),_=[w],x={color:new a.Color(1,1,0,.6),colorBlendMode:a.Cesium3DTileColorBlendMode.REPLACE};v.stopCustomDisplay(A),v.startCustomDisplay(A,_,x);var S=c.scene.globe.ellipsoid,C=g.feature.tileset.boundingSphere.center,M=S.cartesianToCartographic(C),L=a.Math.toDegrees(M.latitude),T=a.Math.toDegrees(M.longitude),k=M.height;n.position.longitude=T,n.position.latitude=L,n.position.height=k,n.oid=w,n.$_gdbpquery(w,h)}else a.defined(d)&&g.feature==d||(n.show=!1)}}else"doc"==f&&this.$_docquery(t)}else if(d){var E,O,P=e.version.tilesetVersion;"2.1"===P?(E=d.getProperty("tid"),O=[["${tid} === ${id}","rgba(255, 255, 0, 0.6)"]]):(E=d.getProperty("OID"),O=[["${OID} === ${id}","rgba(255, 255, 0, 0.6)"]]),e.style=new a.Cesium3DTileStyle({defines:{id:E},color:{conditions:O}})}}},$_query:function(t,e){if(t){var n=this.parseRule();"gdbp"==n?this.$_gdbpquery(t,e):"doc"==n&&this.$_docquery()}},$_gdbpquery:function(t,e){var n=this,r=this.ip,i=this.port,o=this.domain,a=new window.CesiumZondy.Query.G3DDocQuery;a.gdbp=encodeURI(e),a.structs='{"IncludeAttribute":true,"IncludeGeometry":true,"IncludeWebGraphic":false}',a.objectIds=t,a.serverIp=r,a.serverPort=i,a.domain=o,a.queryG3DFeature((function(t){if(null!=t){var e=t.AttStruct.FldName,r=t.SFEleArray[0].AttValue,i={};e.forEach((function(t,e){i[t]=r[e]})),n.properties=i,n.show=!0}}),(function(t){alert("error")}),"post")},$_docquery:function(t){var e=this,n=this.vueKey,r=this.vueIndex,i=this.vueCesium,o=this.Cesium,a=this.viewer,s=this.g3dLayerIndex,c=this.layerIndex,u=i.G3DManager.findSource(n,r);if(u&&u.options&&u.options.version_0_0){var l=u.options.version_0_0.primitiveCollection,h=a.getCartesian3Position(t.position);if(o.defined(h)){var d=o.Cartographic.fromCartesian(h),f=o.Math.toDegrees(d.longitude),p=o.Math.toDegrees(d.latitude),m=d.height,g={x:f,y:p,z:m},A=a.scene.layers.getLayer(s);A.Monomerization((function(t){if(t&&t.length>0){var o=t[0],a=i.G3DManager.changeOptions(n,r);if(a){var s=a.options.feature;l.remove(s)}e.show=!0,e.position={longitude:f,latitude:p,height:m},e.properties=o.property,l.add(o),i.G3DManager.changeOptions(n,r,"feature",o)}else e.show=!1}),{position:new o.Cartesian3(g.x,g.y,g.z),tolerance:1e-4,layerIndex:c})}}}}},vd=Ad,yd=je(vd,ud,ld,!1,null,null,null),bd=yd.exports,wd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menu-explosion"},[n("mapgis-ui-divider",{staticStyle:{fontSize:"14px"}},[t._v("爆炸设置")]),n("div",{staticClass:"mapgis-3d-m3d-menu-explosion-direction"},[n("mapgis-ui-row",[n("mapgis-ui-col",{attrs:{span:8,offset:8}},[n("mapgis-ui-button",{attrs:{shape:"circle"},on:{click:function(){return t.changeHeadding(90)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-arrow-up-filling"}})],1)],1)],1),n("mapgis-ui-row",{style:{margin:"8px 0px"}},[n("mapgis-ui-col",{attrs:{span:8}},[n("mapgis-ui-button",{attrs:{shape:"circle"},on:{click:function(){return t.changeHeadding(180)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-arrow-left-filling"}})],1)],1),n("mapgis-ui-col",{attrs:{span:8}},[n("mapgis-ui-button",{attrs:{shape:"circle"},on:{click:function(){return t.resetHeadding()}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-redo"}})],1)],1),n("mapgis-ui-col",{attrs:{span:8}},[n("mapgis-ui-button",{attrs:{shape:"circle"},on:{click:function(){return t.changeHeadding(0)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-arrow-right-filling"}})],1)],1)],1),n("mapgis-ui-row",[n("mapgis-ui-col",{attrs:{span:8,offset:8}},[n("mapgis-ui-button",{attrs:{shape:"circle"},on:{click:function(){return t.changeHeadding(-90)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-arrow-down-filling"}})],1)],1)],1)],1),n("div",{staticClass:"mapgis-3d-m3d-menu-explosion-content"},[n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"距离",range:[-100,100]},model:{value:t.distance,callback:function(e){t.distance=e},expression:"distance"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"速度",range:[0,100]},model:{value:t.speed,callback:function(e){t.speed=e},expression:"speed"}})],1)],1)},_d=[];function xd(t){return xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xd(t)}function Sd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Cd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sd(Object(n),!0).forEach((function(e){Md(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Md(t,e,n){return(e=Ld(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ld(t){var e=Td(t,"string");return"symbol"==xd(e)?e:e+""}function Td(t,e){if("object"!=xd(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=xd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var kd={name:"mapgis-3d-m3d-menu-explosion",inject:["Cesium","vueCesium","viewer","m3ds"],props:Cd(Cd({},ln),{},{version:{type:String},layerIndex:{type:Number}}),data:function(){return{layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},currentMenu:void 0,headding:0,angle:0,distance:5,speed:1,moveDirection:void 0}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},mount:function(){var t=this,e=this.Cesium,n=this.vueIndex,r=this.vueKey,i=this.vueCesium,o=this.viewer,a=this.createCesiumObject();a.then((function(a){var s=new e.ModelExplosion(o);i.ExplosionManager.addSource(r,n,t,{explosion:s})})),o.isDestroyed()},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=t.ExplosionManager.findSource(e,n);r&&r.options,this.$emit("unload",{component:this}),t.ExplosionManager.deleteSource(e,n),this.resetHeadding()},explosionAction:function(){var t,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.Cesium,o=this.layerIndex,a=this.viewer,s=this.m3ds,c=(this.version,this.distance),u=this.speed;this.moveDirection;if(t=s?s[o]:a.scene.layers.getM3DLayer(o),t){var l=r.ExplosionManager.findSource(e,n);if(l&&l.options){var h=l.options.explosion,d=t,f=new i.Cartesian3(1,0,0),p=new i.Cartesian3(0,1,0),m=new i.Cartesian3,g=i.Math.toRadians(this.angle);m.x=f.x*Math.cos(g)+p.x*Math.sin(g),m.y=f.y*Math.cos(g)+p.y*Math.sin(g),m.z=f.z*Math.cos(g)+p.z*Math.sin(g),h.multiLayerAxisExplosionWithAnimate([d],{direction:m,expDistance:c,speed:u})}}},handleDrawDirection:function(){var t=this.viewer,e=new Cesium.DrawElement(t);e.startDrawingPolyline({color:new Cesium.Color(.3,.7,.8,1),callback:function(t){var e=new Cesium.DrawElement.PolylinePrimitive({positions:t.positions,width:1,geodesic:!0});scene.primitives.add(e),e.setEditable(),primitivesList.push(e)}})},changeHeadding:function(t){this.angle=this.headding+t,this.explosionAction()},resetHeadding:function(){var t,e=this.layerIndex,n=this.viewer,r=this.m3ds,i=this.vueKey,o=this.vueIndex,a=this.vueCesium,s=a.ExplosionManager.findSource(i,o);if(s&&s.options){var c=s.options.explosion;if(t=r?r[e]:n.scene.layers.getM3DLayer(e),!t||!c)return;c.removeModelExplosion([t])}}}},Ed=kd,Od=(n("62b6"),je(Ed,wd,_d,!1,null,null,null)),Pd=Od.exports,Bd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menu-bloom"},[n("mapgis-ui-divider",{staticStyle:{fontSize:"14px"}},[t._v(" 泛光设置 ")]),n("div",{staticClass:"mapgis-3d-m3d-menu-bloom-content"},[n("div",[n("mapgis-ui-color-pick-panel",{attrs:{transparent:"",label:"颜色设置",disableAlpha:!1,labelCol:24,wrapperCol:24},model:{value:t.lightColor,callback:function(e){t.lightColor=e},expression:"lightColor"}})],1),n("mapgis-ui-input-number-panel",{attrs:{size:"large",label:"呼吸速度",tooltip:"呼吸灯速度,建议取值区间(0,1),值越小,闪烁速度越慢",step:.1,range:[0,1]},model:{value:t.breathSpeed,callback:function(e){t.breathSpeed=e},expression:"breathSpeed"}}),n("mapgis-ui-switch-panel",{attrs:{label:"启用渐变",size:"small",layout:"horizontal"},model:{value:t.enableGradient,callback:function(e){t.enableGradient=e},expression:"enableGradient"}},[n("mapgis-ui-row",[n("label",{staticClass:"mapgis-3d-m3d-menu-bloom-label"},[t._v("渐变中心高度")]),n("mapgis-ui-tooltip",{staticStyle:{"margin-left":"4px"}},[n("template",{slot:"title"},[t._v("从指定高度开始渐变")]),n("mapgis-ui-iconfont",{staticStyle:{color:"white"},attrs:{type:"mapgis-info-circle"}})],2)],1),n("mapgis-ui-row",[n("mapgis-ui-input-number",{style:{width:"256px"},attrs:{label:"渐变中心高度",placeholder:"渐变中心高度",step:.1},model:{value:t.gradientCenterHeight,callback:function(e){t.gradientCenterHeight=e},expression:"gradientCenterHeight"}})],1),n("mapgis-ui-row",[n("label",{staticClass:"mapgis-3d-m3d-menu-bloom-label"},[t._v("渐变半径")]),n("mapgis-ui-tooltip",{staticStyle:{"margin-left":"4px"}},[n("template",{slot:"title"},[t._v("渐变效果半径")]),n("mapgis-ui-iconfont",{staticStyle:{color:"white"},attrs:{type:"mapgis-info-circle"}})],2)],1),n("mapgis-ui-row",[n("mapgis-ui-input-number",{style:{width:"256px"},attrs:{label:"渐变半径",placeholder:"渐变半径",step:.1},model:{value:t.gradientRadius,callback:function(e){t.gradientRadius=e},expression:"gradientRadius"}})],1)],1)],1),n("mapgis-ui-setting-footer",[n("mapgis-ui-button",{attrs:{type:"primary"},on:{click:t.addEffect}},[t._v("执行泛光")]),n("mapgis-ui-button",{on:{click:t.removeEffect}},[t._v("删除泛光")])],1)],1)},Id=[];function Dd(t){return Dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dd(t)}function Nd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nd(Object(n),!0).forEach((function(e){jd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jd(t,e,n){return(e=Rd(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rd(t){var e=Hd(t,"string");return"symbol"==Dd(e)?e:e+""}function Hd(t,e){if("object"!=Dd(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Dd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var zd={name:"mapgis-3d-m3d-base-layer",inject:["Cesium","vueCesium","viewer"],props:Fd({},ln),data:function(){return{logic:{minHeight:0,maxHeight:50,minWidth:0,maxWidth:50,minLength:0,maxLength:50}}},methods:{$_degreeFromCartesian:function(t){if(t){var e=this.Cesium,n={},r=e.Cartographic.fromCartesian(t);return n.longitude=e.Math.toDegrees(r.longitude),n.latitude=e.Math.toDegrees(r.latitude),n.height=r.height,n}},$_getAngle:function(t){var e=this.Cesium,n=e.Matrix4.multiplyByPoint(this.mtx,positions[0],new e.Cartesian3),r=e.Matrix4.multiplyByPoint(this.mtx,t,new e.Cartesian3),i=e.Cartesian3.subtract(r,n,new e.Cartesian3);i=e.Cartesian3.normalize(i,new e.Cartesian3);var o=new e.Cartesian3(0,1,0),a=e.Cartesian3.dot(o,i),s=new e.Cartesian3(1,0,0),c=e.Cartesian3.dot(s,r),u=Math.acos(a),l=e.Math.toDegrees(u);return c<0&&(l=360-l),l},$_getM3DBox:function(t){var e=this.Cesium,n={length:0,width:0,height:0,logic:this.logic},r=t._root.boundingVolume.northeastCornerCartesian,i=t._root.boundingVolume.southwestCornerCartesian,o=this.$_degreeFromCartesian(i),a=this.$_degreeFromCartesian(r);if(!o||!a)return n;var s={},c={};s.longitude=o.longitude,s.latitude=a.latitude,s.height=o.height,c.longitude=a.longitude,c.latitude=o.latitude,c.height=a.height;var u=e.Cartesian3.fromDegrees(s.longitude,s.latitude,s.height),l=e.Cartesian3.fromDegrees(c.longitude,c.latitude,c.height),h=e.Cartesian3.distance(l,i),d=e.Cartesian3.distance(u,i);t._root.boundingVolume.maximumHeight,t._root.boundingVolume.minimumHeight;return this.logic.minHeight=t._root.boundingVolume.minimumHeight,this.logic.maxHeight=t._root.boundingVolume.maximumHeight,this.logic.minWidth=0,this.logic.maxWidth=d,this.logic.minLength=0,this.logic.maxlength=h,n}}},Ud={data:function(){return{}},methods:{getM3DSet:function(){var t,e=this.layerIndex,n=this.viewer,r=this.m3ds;return t=r?r[e]:n.scene.layers.getM3DLayer(e),t},formatNumberToString:function(t){var e=Number(t);return Number.isInteger(e)?String(e)+".0":String(e)},setHighLightBack:function(t){if(t.style){var e=t.style.color;this.highLightBack=e.expression}},removeEffect:function(){var t=this.Cesium,e=this.getM3DSet();e&&(e.customShader=void 0,this.highLightBack&&(e.style=new t.Cesium3DTileStyle({color:this.highLightBack})))},unmount:function(){this.$emit("unload",{component:this})}}},Vd={name:"mapgis-3d-m3d-menu-bloom",inject:["Cesium","vueCesium","viewer","m3ds"],mixins:[zd,Ud],props:{version:{type:String},layerIndex:{type:[Number,String]}},watch:{},data:function(){return{lightColor:"#FF0000",breathSpeed:.5,highLightBack:void 0,enableGradient:!1,gradientCenterHeight:0,gradientRadius:1}},created:function(){},mounted:function(){},destroyed:function(){this.unmount()},methods:{addEffect:function(){var t=this.Cesium,e=this.getM3DSet();if(e){this.setHighLightBack(e),e.style=void 0;var n=t.Color.fromCssColorString(this.lightColor),r=this.formatNumberToString(n.red)+", "+this.formatNumberToString(n.green)+", "+this.formatNumberToString(n.blue)+", "+this.formatNumberToString(n.alpha);if(this.enableGradient){var i=this.formatNumberToString(this.gradientCenterHeight),o=this.formatNumberToString(this.gradientRadius);e.customShader=new t.CustomShader({uniforms:{},fragmentShaderText:"\n void fragmentMain(vec4 position, float frameNumber, vec4 oid, inout vec4 fragColor) {\n // 将0~1之间的值映射到5~720之间\n float mappedSpeed = ".concat(this.breathSpeed," * (5.0 - 720.0) + 720.0;\n // 根据当前帧时间(czm_frameNumber),获取当前顶点所处的周期\n float time = fract(frameNumber / mappedSpeed);\n time = abs(time - 0.5) * 2.0;\n float diffHeight = abs((position.y) + ").concat(i,");\n float mappedValue = clamp(diffHeight / ").concat(o,", 0.0, 1.0);\n fragColor += vec4(").concat(r,") * (1.0 - mappedValue) * time;\n }\n ")})}else e.customShader=new t.CustomShader({uniforms:{},fragmentShaderText:"\n void fragmentMain(vec4 position, float frameNumber, vec4 oid, inout vec4 fragColor) {\n // 将0~1之间的值映射到5~720之间\n float mappedSpeed = ".concat(this.breathSpeed," * (5.0 - 720.0) + 720.0;\n // 根据当前帧时间(czm_frameNumber),获取当前顶点所处的周期\n float time = fract(frameNumber / mappedSpeed);\n time = abs(time - 0.5) * 2.0;\n fragColor += vec4(").concat(r,") * 0.5 * time;\n }\n ")})}}}},Yd=Vd,Gd=(n("c26d"),je(Yd,Bd,Id,!1,null,null,null)),Qd=Gd.exports,Wd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menu-dynamicline"},[n("mapgis-ui-divider",{staticStyle:{fontSize:"14px"}},[t._v(" 扫描设置 ")]),n("div",{staticClass:"mapgis-3d-m3d-menu-dynamic-line"},[n("mapgis-ui-color-pick-panel",{attrs:{transparent:"",label:"光线颜色",disableAlpha:!1,labelCol:24,wrapperCol:24},model:{value:t.lightColor,callback:function(e){t.lightColor=e},expression:"lightColor"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"扫描速度",tooltip:"扫描速度,建议取值区间(0,1),值越小,扫描速度越慢",step:.1,range:[0,1]},model:{value:t.scanSpeed,callback:function(e){t.scanSpeed=e},expression:"scanSpeed"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"扫描线宽度",tooltip:"扫描线宽度,建议取值区间(0,1),值越小,扫描线越细",step:.1,range:[0,1]},model:{value:t.lineWidth,callback:function(e){t.lineWidth=e},expression:"lineWidth"}}),n("mapgis-ui-row",[n("label",{staticClass:"mapgis-3d-m3d-menu-bloom-label"},[t._v("底部高度偏移")]),n("mapgis-ui-tooltip",{staticStyle:{"margin-left":"4px"}},[n("template",{slot:"title"},[t._v("模型底部相对于制图原点的高度偏移")]),n("mapgis-ui-iconfont",{attrs:{type:"mapgis-info-circle"}})],2)],1),n("mapgis-ui-row",[n("mapgis-ui-input-number",{style:{width:"256px"},attrs:{label:"底部高度偏移",placeholder:"底部高度偏移",step:.1},model:{value:t.bottomHeightOffset,callback:function(e){t.bottomHeightOffset=e},expression:"bottomHeightOffset"}})],1)],1),n("mapgis-ui-setting-footer",[n("mapgis-ui-button",{attrs:{type:"primary"},on:{click:t.addEffect}},[t._v("执行动态线")]),n("mapgis-ui-button",{on:{click:t.removeEffect}},[t._v("删除动态线")])],1)],1)},Kd=[],qd={name:"mapgis-3d-m3d-menu-dynamic-line",inject:["Cesium","vueCesium","viewer","m3ds"],mixins:[zd,Ud],props:{version:{type:String},layerIndex:{type:[Number,String]}},data:function(){return{layout:"horizontal",scanSpeed:.5,lineWidth:.2,lightColor:"#FFFF00",bottomHeightOffset:0}},created:function(){},mounted:function(){},destroyed:function(){this.unmount()},watch:{},methods:{addEffect:function(){var t=this.Cesium,e=this.getM3DSet();if(e){this.setHighLightBack(e),e.style=void 0;var n=t.Color.fromCssColorString(this.lightColor),r=this.formatNumberToString(n.red)+", "+this.formatNumberToString(n.green)+", "+this.formatNumberToString(n.blue)+", "+this.formatNumberToString(n.alpha),i=this.formatNumberToString(e.boundingSphere.radius),o=this.formatNumberToString(this.lineWidth/10),a=this.formatNumberToString(this.bottomHeightOffset);e.customShader=new t.CustomShader({uniforms:{},fragmentShaderText:"\n void fragmentMain(vec4 position, float frameNumber, vec4 oid, inout vec4 fragColor) {\n float currentHeight = position.y + ".concat(a," + ").concat(i,";\n // 将0~1之间的值映射到20~720之间\n float mappedSpeed = ").concat(this.scanSpeed," * (20.0 - 720.0) + 720.0;\n // 根据当前帧时间(czm_frameNumber),获取当前顶点所处的周期\n float time = fract(frameNumber / mappedSpeed);\n // 获取当前高度占整体高度的百分比,0到1之间的值\n // clamp参考https://learn.microsoft.com/zh-cn/previous-versions/hh308289(v=vs.120)\n currentHeight = clamp(currentHeight / ").concat(2*i,", 0.0, 1.0);\n // 处理周期\n time = abs(time - 0.5) * 2.0;\n // 根据高度和周期计算光圈\n float circle = step(").concat(o,", abs(currentHeight - time));\n if (abs(currentHeight - time) < ").concat(o,") {\n circle = abs(currentHeight - time) * (1.0 / ").concat(o,");\n }\n fragColor += vec4(").concat(r,") * (1.0 - circle);\n }\n ")})}}}},Xd=qd,$d=(n("d5e3"),je(Xd,Wd,Kd,!1,null,"ead81a6a",null)),Jd=$d.exports,Zd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menu-searchlight"},[n("mapgis-ui-divider",{staticStyle:{fontSize:"14px"}},[t._v(" 探照灯设置 ")]),n("div",{staticClass:"mapgis-3d-m3d-menu-search-light"},[n("mapgis-ui-color-pick-panel",{attrs:{transparent:"",label:"颜色",disableAlpha:!1,labelCol:24,wrapperCol:24},model:{value:t.searchlightColor,callback:function(e){t.searchlightColor=e},expression:"searchlightColor"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"混合系数",range:[0,1e3]},model:{value:t.mixFactor,callback:function(e){t.mixFactor=e},expression:"mixFactor"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"持续时间",range:[0,1e4]},model:{value:t.duration,callback:function(e){t.duration=e},expression:"duration"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"类型",range:[0,1e5]},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"宽度",range:[0,1e5]},model:{value:t.width,callback:function(e){t.width=e},expression:"width"}}),n("mapgis-ui-tooltip",{attrs:{title:"点击第一次设置灯光位置,点击第二次设置灯光的方向"}},[n("mapgis-ui-button",{style:{width:"100%",marginBottom:"8px"},on:{click:t.handleDraw}},[t._v("\n 交互绘制激活")])],1)],1),n("mapgis-ui-setting-footer",[n("mapgis-ui-button",{attrs:{type:"primary"},on:{click:t.addEffect}},[t._v("执行探照灯")]),n("mapgis-ui-button",{on:{click:t.removeEffect}},[t._v("删除探照灯")])],1)],1)},tf=[],ef={name:"mapgis-3d-m3d-menu-searchlight",inject:["Cesium","vueCesium","viewer","m3ds"],mixins:[zd],props:{version:{type:String},layerIndex:{type:Number}},data:function(){return{layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},direction:1,searchlightColor:"#FFFF00",mixFactor:.9,duration:5e3,type:2,width:5}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{direction:function(t){var e=this.logic;if(e){var n=e.minHeight,r=e.maxHeight,i=e.minWidth,o=e.maxWidth,a=e.minLength,s=e.maxLength;switch(t){case 1:case-1:this.min=a,this.max=s;break;case 2:case-2:this.min=i,this.max=o;break;case 3:case-3:this.min=n,this.max=r;break}}},layerIndex:function(t){this.parseM3d()}},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},mount:function(){var t=this,e=(this.Cesium,this.vueIndex),n=this.vueKey,r=this.vueCesium,i=this.viewer;this.parseM3d();var o=this.createCesiumObject();o.then((function(i){r.SearchLightManager.addSource(n,e,t,{lines:[]})})),i.isDestroyed()},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex;this.removeEffect(),this.$emit("unload",{component:this}),t.SearchLightManager.deleteSource(e,n)},parseM3d:function(){var t=this.getM3DSet();this.$_getM3DBox(t).logic},getM3DSet:function(){var t,e=this.layerIndex,n=this.viewer,r=this.m3ds;return t=r?r[e]:n.scene.layers.getM3DLayer(e),t},addEffect:function(){var t=this.vueKey,e=this.vueIndex,n=this.vueCesium,r=this.Cesium,i=this.viewer,o=this.searchlightColor,a=this.mixFactor,s=this.duration,c=this.type,u=this.width,l=this.getM3DSet();if(l){this.removeEffect();var h=new r.Cartesian3(-2005887,4964532,3454029),d=new r.Cartesian3(-2005886,4964528,3454026),f=new r.SearchlightEffect(i,h,d,l.root.transform,{lightColor:new r.Color.fromCssColorString(o),mixFactor:a,duration:s,type:c,width:u});f.add(),n.SearchLightManager.changeOptions(t,e,"searchlight",f)}},removeEffect:function(){var t=this.vueKey,e=this.vueIndex,n=this.vueCesium,r=n.SearchLightManager.findSource(t,e);if(r&&r.options&&r.options.searchlight){var i=r.options.searchlight;i.remove&&i.remove()}},handleDraw:function(){this.vueKey,this.vueIndex,this.vueCesium;var t=this.Cesium,e=this.searchlightColor,n=new t.DrawElement(viewer);n.startDrawingPolyline({color:new t.Color.fromCssColorString(e),callback:function(e){var r=e.positions;r&&r.length>=2&&n.stopDrawing();var i=new t.DrawElement.PolylinePrimitive({positions:e.positions,width:1,geodesic:!0});viewer.scene.primitives.add(i),i.setEditable()}})}}},nf=ef,rf=(n("721f"),je(nf,Zd,tf,!1,null,null,null)),of=rf.exports,af={name:"mapgis-3d-m3d-menus",components:{M3dMenuSetting:cd,M3dMenuProps:bd,M3dMenuExplosion:Pd,M3dMenuBloom:Qd,M3dMenuDynamicLine:Jd,M3dMenuSearchlight:of},props:{mode:{type:String,default:"m3d"},size:{type:String,default:"small"},version:{type:String},g3dLayerIndex:{type:Number},layerIndex:{type:Number},gdbp:{type:String},ip:{type:String},port:{type:String},domain:{type:String}},watch:{mode:function(t){this.menus=this.parseMode(t)}},data:function(){return{currentMenu:void 0,currentLayerIndex:-1,menus:this.parseMode()}},methods:{parseMode:function(t){return t=t||this.mode,"m3d"==t?[{type:"properties",title:"动态单体化查询",icon:"mapgis-table"},{type:"explosion",title:"爆炸",icon:"mapgis-api"},{type:"bloom",title:"泛光",icon:"mapgis-highlight"},{type:"dynamic",title:"扫描",icon:"mapgis-wifi"},{type:"searchlight",title:"探照灯",icon:"mapgis-star"}]:[{type:"setting",title:"全局场景特效",icon:"mapgis-setting"}]},handleMenuClick:function(t){var e=t.type;switch(this.currentMenu=e,e){case"properties":this.$emit("enable-dynamic-query",t);break;default:break}}}},sf=af,cf=je(sf,qh,Xh,!1,null,null,null),uf=cf.exports;function lf(t){return lf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lf(t)}function hf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function df(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,pf(r.key),r)}}function ff(t,e,n){return e&&df(t.prototype,e),n&&df(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function pf(t){var e=mf(t,"string");return"symbol"==lf(e)?e:e+""}function mf(t,e){if("object"!=lf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=lf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var gf=function(){function t(){hf(this,t)}return ff(t,null,[{key:"calculateBound",value:function(t){for(var e={xmin:t[0][0],ymin:t[0][1],xmax:t[0][0],ymax:t[0][1]},n=0;n<t.length;n+=1)e.xmin&&t[n][0]<e.xmin&&(e.xmin=t[n][0]),e.ymin&&t[n][1]<e.ymin&&(e.ymin=t[n][1]),e.xmax&&t[n][0]>e.xmax&&(e.xmax=t[n][0]),e.ymax&&t[n][1]>e.ymax&&(e.ymax=t[n][1]);return e}},{key:"getCenterOfGravityPoint",value:function(t){for(var e=0,n=0,r=0,i=1;i<=t.length;i+=1){var o=t[i%t.length][1],a=t[i%t.length][0],s=t[i-1][1],c=t[i-1][0],u=(o*c-a*s)/2;e+=u,r+=u*(o+s)/3,n+=u*(a+c)/3}return[n/e,r/e]}},{key:"creatRectangleByViewRectangle",value:function(t){return new K["Common"].Rectangle(t.west,t.south,t.east,t.north)}},{key:"creatRectByMinMax",value:function(t,e,n,r){return new K["Common"].Rectangle(t,e,n,r)}}])}();function Af(t){return wf(t)||bf(t)||yf(t)||vf()}function vf(){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 yf(t,e){if(t){if("string"==typeof t)return _f(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_f(t,e):void 0}}function bf(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function wf(t){if(Array.isArray(t))return _f(t)}function _f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function xf(t){var e=t.geometry,n=[];switch(e.type){case"Point":n=e.coordinates;break;case"LineString":var r=Math.floor(e.coordinates.length/2);n=e.coordinates[r];break;case"Polygon":n=gf.getCenterOfGravityPoint(e.coordinates[0]);break;case"MultiPolygon":for(var i=e.coordinates,o=[],a=0;a<i.length;a+=1){var s=gf.getCenterOfGravityPoint(i[a][0]);s&&o.push(s)}o.push(o[0]),n=o[0],3===o.length?n=[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]:o.length>3&&(n=gf.getCenterOfGravityPoint(o));break;default:break}return n}function Sf(t){var e=function(t,n){var r=t[n];if("number"===typeof r)return[r];if(Array.isArray(t[0])){var i=t.map((function(t){return e(t,n)}));return i.reduce((function(t,e){return[].concat(Af(t),Af(e))}))}return[]},n=t.geometry.coordinates,r=e(n,0),i=e(n,1);return{xmin:Math.min.apply(Math,Af(r)),ymin:Math.min.apply(Math,Af(i)),xmax:Math.max.apply(Math,Af(r)),ymax:Math.max.apply(Math,Af(i))}}function Cf(t){return Cf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cf(t)}function Mf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,kf(r.key),r)}}function Tf(t,e,n){return e&&Lf(t.prototype,e),n&&Lf(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function kf(t){var e=Ef(t,"string");return"symbol"==Cf(e)?e:e+""}function Ef(t,e){if("object"!=Cf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Cf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Of=eh["Util"].UrlUtil,Pf=function(){function t(){Mf(this,t)}return Tf(t,null,[{key:"getTiles",value:function(t){var e=t.ip,n=t.port,r="".concat(Of.getOrigin({ip:e,port:n}),"/igs/rest/mrcs/tiles?version=2&f=json"),i=new Promise((function(t,e){qe.a.get(r).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return i.then((function(t){return t}))}},{key:"getDocs",value:function(t){var e=t.ip,n=t.port,r="".concat(Of.getOrigin({ip:e,port:n}),"/igs/rest/mrcs/docs?version=2&f=json"),i=new Promise((function(t,e){qe.a.get(r).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return i.then((function(t){return t}))}},{key:"getDocInfo",value:function(t){if(!t.serverName)return null;if(this.globalDocInfo[t.serverName])return this.globalDocInfo[t.serverName];var e=t.domain||null;if(!e){var n=t.protocol||window.location.protocol.split(":")[0],r=t.ip,i=t.port;e="".concat(Of.getOrigin({ip:r,port:i,protocol:n}))}var o="".concat(e,"/igs/rest/mrcs/docs/").concat(t.serverName,"?dataService=").concat(t.serverName,"&f=json&tree=true&guid=").concat(t.guid||"__readonly_user__"),a=this,s=new Promise((function(e,n){qe.a.get(o).then((function(n){var r=n.data;if(r){for(var i=0;i<r.MapInfos.length;i+=1){var o=r.MapInfos[i].CatalogLayer;o&&(r.MapInfos[i].CatalogLayer=a.disposeDocInfo(o))}a.globalDocInfo[t.serverName]=r,e(r)}else e(void 0)}),(function(t){n(t)}))}));return s.then((function(t){return t}))}},{key:"get3dDocInfo",value:function(t){if(!t.serverName)return null;if(this.globalDocInfo[t.serverName])return this.globalDocInfo[t.serverName];var e=t.domain||null;if(!e){var n=t.protocol||window.location.protocol.split(":")[0],r=t.ip,i=t.port;e="".concat(Of.getOrigin({ip:r,port:i,protocol:n}))}var o="".concat(e,"/igs/rest/g3d/").concat(t.serverName,"/GetDocInfo"),a=this,s=new Promise((function(e,n){qe.a.get(o).then((function(n){var r=n.data;r?(a.globalDocInfo[t.serverName]=r,e(r)):e(void 0)}),(function(t){n(t)}))}));return s.then((function(t){return t}))}},{key:"getMapInfoService",value:function(t){var e=t.ip,n=t.port,r=t.name,i="".concat(Of.getOrigin({ip:e,port:n}),"/igs/rest/mrms/info/").concat(r,"?guid="),o=new Promise((function(t,e){qe.a.get(i).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return o.then((function(t){return t}))}},{key:"disposeDocInfo",value:function(t,e){if(!t)return[];for(var n=0;n<t.length;n+=1){var r=e&&""!==e?"".concat(e,"-").concat(n):String(n);if("Layer"===t[n].Type)t[n].layerIndex=r;else if("Group"===t[n].Type){var i=t[n].GroupMapLayerInfo;i&&(t[n].GroupMapLayerInfo=this.disposeDocInfo(i,r))}}return t}},{key:"getLayerIndexesByNamesOrCodes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(r=r||[],i=i||[],""!==e||""!==n)for(var o=0;o<t.length;o+=1){var a=t[o],s=a.URL,c=a.layerIndex,u=a.GroupMapLayerInfo;if("Layer"===t[o].Type)if(""===n){var l=[];l=e.includes(",")?e.split(","):[e];for(var h=0;h<l.length;h+=1)s&&s.indexOf(l[h])===s.length-l[h].length&&(i.includes(s)||(i.push(s),c&&r.push(c)))}else if(""===e){var d=[];d=n.includes(",")?n.split(","):[n];for(var f=0;f<d.length;f+=1)s&&s.includes(d[f])&&(i.includes(s)||(i.push(s),c&&r.push(c)))}else s&&s.indexOf(e)===s.length-e.length&&s.includes(n)&&(i.includes(s)||(i.push(s),c&&r.push(c)));else u&&u.length>0&&(r=this.getLayerIndexesByNamesOrCodes(u,e,n,r,i))}else for(var p=0;p<t.length;p+=1){var m=t[p],g=m.layerIndex,A=m.GroupMapLayerInfo;"Layer"===t[p].Type?g&&r.push(g):A&&A.length>0&&(r=this.getLayerIndexesByNamesOrCodes(A,e,n,r,i))}return r}},{key:"getLayerUrlsByNamesOrCodes",value:function(t,e,n,r){if(r=r||[],""!==e||""!==n)for(var i=0;i<t.length;i+=1){var o=t[i],a=o.URL,s=o.GroupMapLayerInfo;if("Layer"===t[i].Type)if(""===n){var c=[];c=e.includes(",")?e.split(","):[e];for(var u=0;u<c.length;u+=1)a&&a.indexOf(c[u])===a.length-c[u].length&&(r.includes(a)||r.push(a))}else if(""===e){var l=[];l=n.includes(",")?n.split(","):[n];for(var h=0;h<l.length;h+=1)a&&a.includes(l[h])&&(r.includes(a)||r.push(a))}else a&&a.indexOf(e)===a.length-e.length&&a.includes(n)&&(r.includes(a)||r.push(a));else s&&s.length>0&&(r=this.getLayerUrlsByNamesOrCodes(s,e,n,r))}else for(var d=0;d<t.length;d+=1){var f=t[d],p=f.URL,m=f.GroupMapLayerInfo;"Layer"===t[d].Type?p&&r.push(p):m&&m.length>0&&(r=this.getLayerUrlsByNamesOrCodes(m,e,n,r))}return r}},{key:"getLayersByIndexes",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!t||""===t||!e)return[];n||(n=[]);var r=[];r=t.includes(",")?t.split(","):[t];for(var i=0;i<e.length;i+=1){for(var o=0;o<r.length;o+=1)r[o]===e[i].layerIndex&&n.push(e[i]);if("Group"===e[i].Type){var a=e[i].GroupMapLayerInfo;a&&(n=this.getLayersByIndexes(t,a,n))}}return n}},{key:"getLayerIndexesByNames",value:function(t,e,n){if(""===e)return[];var r;n=n||[],r=e.includes(",")?e.split(","):[e];for(var i=0;i<t.length;i+=1)if("Layer"===t[i].Type)for(var o=0;o<r.length;o+=1){var a=t[i].URL;a&&a.indexOf(r[o])>0&&(n.includes(a)||n.push(a))}else{var s=t[i].GroupMapLayerInfo;s&&(n=this.getLayerIndexesByNames(s,e,n))}return n}},{key:"getLayersByExtentOrName",value:function(t,e,n,r,i){r||(r=[]),i=i||[];for(var o=0;o<t.length;o++)if("Layer"===t[o].Type){var a=t[o].ProjTransRange;if(a&&e&&(a.xmax<e[0]||a.xmin>e[2]||a.ymax<e[1]||a.ymin>e[3]))continue;if(n)for(var s=0;s<n.length;s++)t[s].URL.indexOf(n[s])===t[s].URL.length-n[s].length&&i.indexOf(t[s].URL)<0&&(r.push(t[s]),i.push(t[s].URL));else i.indexOf(t[o].URL)<0&&(r.push(t[o]),i.push(t[o].URL))}else t[o].GroupMapLayerInfo&&(r=this.getLayersByExtentOrName(t[o].GroupMapLayerInfo,e,n,r,i));return r}},{key:"getLayerInfo",value:function(t){var e=t.domain;if(!e){var n=t.protocol,r=t.ip,i=t.port;e="".concat(n,"://").concat(r,":").concat(i)}var o,a=t.layerType;if("layer"===a){var s=new K["MRCS"].VectorLayer({domain:e}),c=t.gdbp;o=new Promise((function(t){s.getLayerInfo(c,(function(e){if(e&&e.Range){var n={layerType:a,proName:e.SrName,extent:e.Range,FieldAtt:e.FieldAtt};t(n)}else t(null)}))}))}else if("vector"===a){var u=t.serverName,l=new K["MRCS"].MapDoc({domain:e,docName:u});o=new Promise((function(t){l.getMapInfo((function(e){if(e&&e.range){var n=e.range.split(","),r={xmin:Number(n[0]),ymin:Number(n[1]),xmax:Number(n[2]),ymax:Number(n[3])},i={layerType:a,proName:e.projtransName,extent:r};t(i)}else t(null)}))}))}else if("tile"===a){var h=t.serverName,d=new K["MRCS"].TileLayer({domain:e,tileName:h});o=new Promise((function(t){d.getTileInfo((function(e){if(e&&e.TileInfo2){var n=e.TileInfo2.fullExtent;if(n){var r={xmin:n.xmin,ymin:n.ymin,xmax:n.xmax,ymax:n.ymax},i=e.TileInfo2.tileInfo.spatialReference.tileSRefInfo.Name,o=e.TileInfo2.tileInfo.cols||e.TileInfo2.tileInfo.rows,s=e.TileInfo2.tileInfo.origin,c={layerType:a,proName:i,extent:r,tileSize:o,origin:s};t(c)}}else t(null)}))}))}return o?o.then((function(t){return t})):null}}])}();function Bf(t){return Bf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(t)}function If(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Df(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ff(r.key),r)}}function Nf(t,e,n){return e&&Df(t.prototype,e),n&&Df(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ff(t){var e=jf(t,"string");return"symbol"==Bf(e)?e:e+""}function jf(t,e){if("object"!=Bf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Bf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}Pf.globalDocInfo={};var Rf=eh["Util"].UrlUtil,Hf=function(){function t(){If(this,t)}return Nf(t,null,[{key:"getDataSource",value:function(t){var e=t.ip,n=t.port,r=t.isDetail,i=void 0!==r&&r,o="".concat(Rf.getOrigin({ip:e,port:n}),"/igs/rest/mrcs/datasource?f=json&").concat(i?"getAtt":"getAttr","=true"),a=new Promise((function(t,e){qe.a.get(o).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return a.then((function(t){return t}))}},{key:"getDataBase",value:function(t){var e=t.ip,n=t.port,r=t.dataSource,i=t.user,o=t.password,a="".concat(Rf.getOrigin({ip:e,port:n}),"/igs/rest/mrcs/datasource/").concat(r,"?user=").concat(i,"&psw=").concat(o,"&f=json"),s=new Promise((function(t,e){qe.a.get(a).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return s.then((function(t){return t}))}},{key:"getGDBData",value:function(t){var e=t.ip,n=t.port,r=t.gdbp,i=t.type,o=t.user,a=t.password,s="".concat(Rf.getOrigin({ip:e,port:n}),"/igs/rest/mrcs/datasource/").concat(r,"/").concat(i,"?user=").concat(o,"&psw=").concat(a,"&containAll=false&f=json"),c=new Promise((function(t,e){qe.a.get(s).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return c.then((function(t){return t}))}}])}();function zf(t){return zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(t)}function Uf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Uf(Object(n),!0).forEach((function(e){Yf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yf(t,e,n){return(e=qf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Gf=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==zf(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(zf(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Qf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qf(r.key),r)}}function Kf(t,e,n){return e&&Wf(t.prototype,e),n&&Wf(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function qf(t){var e=Xf(t,"string");return"symbol"==zf(e)?e:e+""}function Xf(t,e){if("object"!=zf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=zf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $f=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(r.next(t))}catch(e){o(e)}}function s(t){try{c(r["throw"](t))}catch(e){o(e)}}function c(t){t.done?n(t.value):i(t.value).then(a,s)}c((r=r.apply(t,e||[])).next())}))},Jf=eh["Util"].UrlUtil,Zf=function(){function t(){Qf(this,t)}return Kf(t,null,[{key:"query",value:function(t,e,n){return $f(this,void 0,void 0,Gf().mark((function r(){return Gf().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(t){r.next=2;break}return r.abrupt("return",null);case 2:if(!t.isEsGeoCode){r.next=4;break}return r.abrupt("return",this.dataStoreEsGeoCode(t));case 4:if(!t.isDataStoreQuery){r.next=6;break}return r.abrupt("return",this.dataStorePgQueryFeature(t));case 6:return r.abrupt("return",this.igsQuery(t,e,n));case 7:case"end":return r.stop()}}),r,this)})))}},{key:"isDataStoreQuery",value:function(t){return $f(this,void 0,void 0,Gf().mark((function e(){var n,r,i,o,a,s,c,u;return Gf().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.ip,r=t.port,i=t.gdbp,o=!1,a="",!(i&&-1===i.indexOf("MapGisLocal")&&i.indexOf("@")>-1)){e.next=18;break}return e.next=6,Hf.getDataSource({ip:n,port:r,isDetail:!0});case 6:if(s=e.sent,c=i.split("@")[1].split("/")[0],!(s&&s.length>0)){e.next=18;break}u=0;case 10:if(!(u<s.length)){e.next=18;break}if(s[u].Name!==c||"DBPG"!==s[u].Type){e.next=15;break}return o=!0,a=s[u].DNSName,e.abrupt("break",18);case 15:u++,e.next=10;break;case 18:return e.abrupt("return",{isDataStoreQuery:o,DNSName:a});case 19:case"end":return e.stop()}}),e)})))}},{key:"igsQuery",value:function(t,e,n){return $f(this,void 0,void 0,Gf().mark((function r(){var i,o,a,s;return Gf().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n||!t.docName||void 0===t.layerIdxs){r.next=8;break}return r.next=3,Pf.getDocInfo({serverName:t.docName,ip:t.ip,port:t.port});case 3:i=r.sent,o=null===i||void 0===i?void 0:i.MapInfos[Number(t.mapIndex)||0].CatalogLayer,a=t.layerName||"",s=t.code||"",o&&""===t.layerIdxs&&(t.layerIdxs=Pf.getLayerIndexesByNamesOrCodes(o,a,s,[],[]).join(","));case 8:if(!e){r.next=11;break}return t.combine=e,r.abrupt("return",this.igsCombineQueryFeature(t));case 11:if(!n){r.next=13;break}return r.abrupt("return",this.igsQuery3DFeature(t));case 13:return r.abrupt("return",this.igsQueryFeature(t));case 14:case"end":return r.stop()}}),r,this)})))}},{key:"igsQueryFeature",value:function(t){var e;t.gdbp?(e=new K["MRFS"].QueryByLayerParameter(t.gdbp),e.proj=t.srsIds):e=new K["MRFS"].QueryParameter,e.resultFormat=t.f||"geojson",e.geometry=t.geometry||null,e.where=t.where||null,e.pageIndex=t.page||0,e.recordNumber=t.pageCount||10,e.rule=new K["MRFS"].QueryFeatureRule({CompareRectOnly:void 0!==t.CompareRectOnly&&t.CompareRectOnly,EnableDisplayCondition:void 0!==t.EnableDisplayCondition&&t.EnableDisplayCondition,Intersect:void 0===t.Intersect||t.Intersect,MustInside:void 0!==t.MustInside&&t.MustInside}),e.struct=new K["MRFS"].QueryFeatureStruct({IncludeAttribute:void 0===t.IncludeAttribute||t.IncludeAttribute,IncludeGeometry:void 0===t.IncludeGeometry||t.IncludeGeometry,IncludeWebGraphic:void 0!==t.IncludeWebGraphic&&t.IncludeWebGraphic}),e.objectIds=t.objectIds||null,e.orderField=t.orderField||null,e.rtnLabel=void 0===t.rtnLabel||t.rtnLabel,e.isAsc=void 0!==t.isAsc&&t.isAsc,e.cursorType=t.cursorType||"forward",e.guid=t.guid||"__readonly_user__",e.fields=t.fields||"",e.coordPrecision=t.coordPrecision||0===t.coordPrecision?t.coordPrecision:2;var n,r=t.domain||null;if(!r){var i=t.protocol||window.location.protocol.split(":")[0],o=t.ip,a=t.port;r="".concat(Jf.getOrigin({ip:o,port:a,protocol:i}))}if(t.gdbp&&!t.docName)n=new K["MRFS"].QueryLayerFeature(e,{domain:r});else{if(!t.docName||!t.layerIdxs)return null;var s=t.docName,c=t.mapIndex||0,u=t.layerIdxs||"0"===t.layerIdxs?t.layerIdxs:"*",l=t.dataService||t.docName;e.partUrl="docs/".concat(s,"/").concat(c,"/").concat(u,"/query?dataService=").concat(l),n=new K["MRFS"].QueryDocFeature(e,s,u,{domain:r})}var h=new Promise((function(t,e){n.query((function(e){t(e||void 0)}),(function(t){console.log(t),e(t)}))}));return h.then((function(t){return t}))}},{key:"igsCombineQueryFeature",value:function(t){var e={};e.f=t.f||"geojson","geojson"===e.f&&(e.compress=void 0!==t.compress&&t.compress,e.level=t.level||0===t.level?t.level:8),t.geometry&&(e.geometryType=t.geometry.getGeometryType(),e.geometry=t.geometry.toString()),e.where=t.where||void 0,e.page=t.page||0,e.pageCount=t.pageCount||10;var n=new K["MRFS"].QueryFeatureRule({CompareRectOnly:void 0!==t.CompareRectOnly&&t.CompareRectOnly,EnableDisplayCondition:void 0!==t.EnableDisplayCondition&&t.EnableDisplayCondition,Intersect:void 0===t.Intersect||t.Intersect,MustInside:void 0!==t.MustInside&&t.MustInside});e.rule=n.toJSON();var r=new K["MRFS"].QueryFeatureStruct({IncludeAttribute:void 0===t.IncludeAttribute||t.IncludeAttribute,IncludeGeometry:void 0===t.IncludeGeometry||t.IncludeGeometry,IncludeWebGraphic:void 0!==t.IncludeWebGraphic&&t.IncludeWebGraphic});e.structs=r.toJSON(),e.objectIds=t.objectIds||void 0,e.orderField=t.orderField||void 0,e.rtnLabel=void 0===t.rtnLabel||t.rtnLabel,e.isAsc=void 0!==t.isAsc&&t.isAsc,e.cursorType=t.cursorType||"forward",e.guid=t.guid||"__readonly_user__",e.fields=t.fields||"",e.coordPrecision=t.coordPrecision||0===t.coordPrecision?t.coordPrecision:2,e.combine=void 0===t.combine||t.combine;var i,o=t.domain||null;if(!o){var a=t.protocol||window.location.protocol.split(":")[0],s=t.ip,c=t.port;o="".concat(Jf.getOrigin({ip:s,port:c,protocol:a}))}if(t.gdbp)e.gdbp=t.gdbp,e.srsIds=t.srsIds,i="".concat(o,"/onemap/layer/query");else{if(!t.docName)return null;var u=t.docName,l=t.mapIndex||0,h=t.layerIdxs||"0"===t.layerIdxs?t.layerIdxs:"*";i="".concat(o,"/onemap/docs/").concat(u,"/").concat(l,"/").concat(h,"/query")}var d=new Promise((function(t,n){qe.a.get(i,{params:e}).then((function(e){var r=e.data;r?t(r):n("undefined")}),(function(t){n(t)}))}));return d.then((function(t){return t}))}},{key:"igsQuery3DFeature",value:function(t){var e;e=t.gdbp?new K["MRFS"].QueryByLayerParameter(t.gdbp):new K["MRFS"].QueryParameter,e.resultFormat=t.f||"geojson",t.geometry&&(e.geometryType=t.geometryType&&""!==t.geometryType?t.geometryType:t.geometry.getGeometryType(),e.geometry=t.geometry.toString()),e.where=t.where||null,e.page=t.page||0,e.pageCount=t.pageCount||10,e.rule=new K["MRFS"].QueryFeatureRule({CompareRectOnly:void 0!==t.CompareRectOnly&&t.CompareRectOnly,EnableDisplayCondition:void 0!==t.EnableDisplayCondition&&t.EnableDisplayCondition,Intersect:void 0===t.Intersect||t.Intersect,MustInside:void 0!==t.MustInside&&t.MustInside}),e.struct=new K["MRFS"].QueryFeatureStruct({IncludeAttribute:void 0===t.IncludeAttribute||t.IncludeAttribute,IncludeGeometry:void 0===t.IncludeGeometry||t.IncludeGeometry,IncludeWebGraphic:void 0!==t.IncludeWebGraphic&&t.IncludeWebGraphic}),e.objectIds=t.objectIds||null,e.orderField=t.orderField||null,e.rtnLabel=void 0===t.rtnLabel||t.rtnLabel,e.isAsc=void 0!==t.isAsc&&t.isAsc,e.cursorType=t.cursorType||"forward",e.guid=t.guid||"__readonly_user__";var n,r=t.domain||null;if(!r){var i=t.protocol||window.location.protocol.split(":")[0],o=t.ip,a=t.port;r="".concat(Jf.getOrigin({ip:o,port:a,protocol:i}))}if(t.gdbp)n=new K["G3D"].G3DMapDoc(Vf({domain:r,gdbp:t.gdbp},e));else{if(!t.docName||!t.layerIdxs)return null;var s=t.docName,c=t.layerIdxs||"0"===t.layerIdxs?t.layerIdxs:"*";n=new K["G3D"].G3DMapDoc(Vf({domain:r,docName:s,layerindex:c},e))}var u=new Promise((function(t){n.GetFeature((function(e){t(e||void 0)}))}));return u.then((function(t){return t}))}},{key:"igsQueryResourceServer",value:function(t){var e={};e.f=t.f||"json",t.geometry&&(e.geometryType=t.geometryType&&""!==t.geometryType?t.geometryType:t.geometry.getGeometryType(),e.geometry=t.geometry.toString()),e.where=t.where||"",e.returnGeometry=t.returnGeometry||!0,e.returnAttribute=t.returnAttribute||!0,e.returnStyle=t.returnStyle||!1,e.returnIdsOnly=t.returnIdsOnly||!1,e.returnCountOnly=t.returnCountOnly||!1,e.returnExtentOnly=t.returnExtentOnly||!1,e.objectIds=t.objectIds||"",e.outFields=t.outFields||"",e.url=t.url||"",e.mapResource=t.mapResource||"",e.distance=t.distance||"",e.geometryPrecision=t.geometryPrecision||"",e.spatialRel=t.spatialRel||"",e.orderByFields=t.orderByFields||"",e.outStatistics=t.outStatistics||"",e.groupByFieldsForStatistics=t.groupByFieldsForStatistics||"";var n=t.pageCount||10,r=t.page||0,i=r*n;e.resultRecordCount=n,e.resultOffset=i,e.returnZ=t.returnZ||!1,e.is6xAcls=t.is6xAcls||"",e.inSrs=t.inSrs||"WGS1984_度",e.outSrs=t.outSrs||"WGS1984_度";var o=t.domain||"";if(!o){var a=t.protocol||window.location.protocol.split(":")[0],s=t.ip,c=t.port;o="".concat(Jf.getOrigin({ip:s,port:c,protocol:a}))}var u="".concat(o,"/igs/rest/services/system/ResourceServer/tempData/features/query"),l=new Promise((function(t){qe.a.get(u,{params:Vf({},e)}).then((function(e){e&&e.data?t(e.data):t(void 0)}))}));return l.then((function(t){return t}))}},{key:"dataStorePgQueryFeature",value:function(t){var e={},n=t.gdbp.split("/"),r=t.DNSName.split("/")[1],i=t.gdbp.split("@")[1].split("/")[1],o=n[n.length-1];if(e.path="".concat(r,"/").concat(i,"/").concat(o),e.pageNo=void 0!==t.page?t.page:1,e.pageSize=t.pageCount||10,e.includeProperites=!0,t.geometry){e.geoFormat="wkt";var a,s=t.geometry.getGeometryType(),c=[];if("rect"===s)c.push("".concat(t.geometry.xmin," ").concat(t.geometry.ymin)),c.push("".concat(t.geometry.xmin," ").concat(t.geometry.ymax)),c.push("".concat(t.geometry.xmax," ").concat(t.geometry.ymax)),c.push("".concat(t.geometry.xmax," ").concat(t.geometry.ymin)),c.push("".concat(t.geometry.xmin," ").concat(t.geometry.ymin)),a=c.join(","),e.geometry="POLYGON(( ".concat(a,"))");else if("polygon"===s||"polygon"===s){for(var u=t.geometry.pointArr,l=0;l<u.length;l+=1)c.push("".concat(u[l].x," ").concat(u[l].y));a=c.join(","),"polygon"===s?e.geometry="POLYGON(( ".concat(a,"))"):"line"===s&&(e.geometry="LINESTRING(".concat(a,")"))}else"point"===s&&(e.geometry="POINT(".concat(t.geometry.x," ").concat(t.geometry.y,")"))}t.where&&(e.filter=t.where),t.fields&&(e.fields=t.fields),e.sref=t.sref;var h=t.domain||null;if(e.ip=t.ip,e.port=t.port,!h){var d=t.protocol||window.location.protocol.split(":")[0],f=e.ip,p=e.port;h="".concat(Jf.getOrigin({ip:f,port:p,protocol:d}))}e.domain=h;var m=new Promise((function(t,n){new K["PostGIS"].PostgisQueryService(e).query((function(e){e&&e.features?t(e):n("undefined")}),(function(t){n(t)}))}));return m.then((function(t){return t}))}},{key:"dataStoreEsGeoCode",value:function(t){var e={};e.indexName=t.libName,e.pageNo=void 0!==t.page?t.page:1,e.pageSize=t.pageCount||10,e.province=t.province,e.city=t.city,e.bbox=t.bbox,e.geometry=t.geometry;var n=t.domain||null,r=t.ip,i=t.port;if(!n){var o=t.protocol||window.location.protocol.split(":")[0];n="".concat(Jf.getOrigin({ip:r,port:i,protocol:o}))}e.domain=n;var a,s=t.decode;s?(e.lon=t.lon,e.lat=t.lat,e.dis=t.dis,a=K["ElasticSearch"].ESGeoDecode):(e.keyWord=t.where||"",a=K["ElasticSearch"].ESGeoCode);var c=new Promise((function(t,n){new a(e).query((function(e){e&&e.t?t(e.t):n("undefined")}),(function(t){n(t)}))}));return c.then((function(t){return t}))}}])}();n("4328");function tp(t){return tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tp(t)}function ep(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ep=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==tp(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(tp(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function np(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function rp(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){np(o,r,i,a,s,"next",t)}function s(t){np(o,r,i,a,s,"throw",t)}a(void 0)}))}}function ip(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function op(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ip(Object(n),!0).forEach((function(e){ap(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ap(t,e,n){return(e=sp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sp(t){var e=cp(t,"string");return"symbol"==tp(e)?e:e+""}function cp(t,e){if("object"!=tp(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=tp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var up=K["G3D"].G3DLayerType,lp=(K["G3D"].M3DTileDataInfo,{name:"mapgis-3d-scene-layer",inject:["Cesium","vueCesium","viewer"],props:op(op({},Hh),{},{popupOptions:{type:Object,default:function(){return{popupType:"card"}}},dataStoreIp:{type:String,default:"192.168.96.101"},dataStorePort:{type:String,default:"9014"},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"},popupShowType:{type:String,default:"default"},popupOverlay:{type:Object,default:function(){}},highlightStyle:{type:String,default:"rgba(255,255,0,0.5)"},searchParams:{type:Object,default:function(){}}}),mixins:[as],components:{M3dMenus:uf},data:function(){return{title:"G3D场景图层",layerIds:this.parseLayers(),type:{terrain:up.g3dTerrainLayer,cache:up.g3dCacheLayer},menus:[{title:"静态单体化查询",icon:"mapgis-highlight",active:this.enablePopup},{title:"批量设置",icon:"mapgis-setting",active:!1},{title:"隐藏面板",icon:"mapgis-hide",active:!1}],layerTree:[{title:"地图场景",key:"地图场景默认键值",version:"",layerIndex:-99,icon:"mapgis-layer1",menu:"mapgis-down",children:[],scopedSlots:{icon:"custom",title:"title"}}],expandedKeys:[],searchValue:"",autoExpandParent:!0,expandItemKey:void 0,activeItemKey:void 0,gdbp:void 0,g3dLayerIndex:void 0,layerKey:void 0,selectLayerIndex:void 0,selectedKeys:[],version:void 0,ip:"localhost",port:"6163",domain:void 0,isolation:!1,featureposition:void 0,featureproperties:void 0,featurevisible:void 0,featureclickenable:this.enablePopup,iEnableIot:!1,layerVisibleArr:[]}},provide:function(){var t=this;return{get m3ds(){return t.m3ds}}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{enablePopup:function(t){this.featureclickenable=t,t?this.bindPopupEvent():this.unbindPopupEvent()},opacity:function(t){var e=this;this.opacityLayersArray.length>0?(this.opacityLayersArray.forEach((function(t,n){"number"==typeof t&&(e.opacityLayersArray[n]=t.toString())})),this.changeLayerOpacity(t,this.opacityLayersArray)):this.changeLayerOpacity(t)},opacityLayersArray:function(t){this.changeLayerOpacity(this.opacity,t)},layers:function(t){this.layerIds=this.parseLayers(t),this.changeLayerVisible(this.layerIds)},layerIds:function(t){this.changeLayerVisible(this.layerIds)}},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},onM3dLoaded:function(t){},mount:function(){var t=this,e=(this.vueIndex,this.vueKey,this.vueCesium,this.viewer),n=this.url,r=this.$props,i=(this.enablePopup,this.layerId,this.parseVersion(),this.parseServer()),o=i.ip,a=i.port,s=i.domain;this.ip=o,this.port=a,this.domain=s;var c=this.createCesiumObject(),u=this.parseLayers();u||(this.layerIds=[]),c.then((function(i){e.scene.layers.appendSceneLayer(n,op(op({},r),{},{loaded:function(t){},getDocLayerIndexes:t.getDocLayerIndexes}))})),e.isDestroyed()},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this.viewer,i=this.g3dLayerIndex;if(this.unbindPopupEvent(),this.cancelHighlight(),!("number"!==typeof i||i<0)){var o=r.scene.layers.getLayer(i);o.remove(!0),this.$emit("unload",{component:this}),t.G3DManager.deleteSource(e,n)}},getDocLayerIndexes:function(t,e){var n=this.vueIndex,r=this.vueKey,i=this.vueCesium,o=this.Cesium,a=this.viewer,s=this.enablePopup,c=this.ip,u=this.port,l=this.domain,h=this,d=this.parseLayers();h.g3dLayerIndex=t[0];var f=new o.PrimitiveCollection;i.G3DManager.addSource(r,n,e,{m3ds:[],layerId:n,g3dLayerIndex:h.g3dLayerIndex,collection:f,primitiveCollection:a.scene.primitives.add(f)});var p=a.scene.layers.getLayer(h.g3dLayerIndex);h.layerTree[0].version=p.version,h.version=p.version,h.layerTree[0].title=p.name;var m=p.getM3DLayerIndexes(),g=i.G3DManager.findSource(r,n);if(g&&g.options&&g.options.m3ds){var A=m.map((function(t,e){var n=t,r=p.getLayer("".concat(n));return r.readyPromise}));Promise.all(A).then((function(t){h.recordOriginStyle(),s&&h.bindPopupEvent(),h.m3ds=t,i.G3DManager.changeOptions(r,n,"m3ds",t);var e=[];t.forEach((function(t,n){var r=m[n],i=p.getLayerInfo(r),o=p.getLayer("".concat(r)),a=i.layerName,s=i.gdbpUrl,f=i.layerType;e.push("".concat(r)),h.layerTree[0].children.push({title:a,key:"".concat(r),version:p.version,layerIndex:r,layerType:f,ip:c,port:u,domain:l,gdbp:s,icon:"mapgis-layer",menu:"mapgis-down",scopedSlots:{icon:"custom",title:"title"}}),d?d.indexOf("".concat(n))>=0?o.show=!0:o.show=!1:o.show=!0})),Gh(t,(function(t){t.forEach((function(t,e){var n=h.layerTree[0].children;n[m[e]].subLayerType=Kh(t)}))})),h.$emit("loaded",{g3d:h,component:h}),h.parseTerrain(),h.parserVector(),h.resortLayers(),h.layerIds=h.layerIds.concat(e),h.opacityLayersArray.length>0?(h.opacityLayersArray.forEach((function(t,e){"number"==typeof t&&(h.opacityLayersArray[e]=t.toString())})),h.changeLayerOpacity(h.opacity,h.opacityLayersArray)):h.changeLayerOpacity(h.opacity)}))}},onExpand:function(t){this.expandedKeys=t,this.autoExpandParent=!1},getParentKey:function(t,e){for(var n,r=0;r<e.length;r++){var i=e[r];i.children&&(i.children.some((function(e){return e.key===t}))?n=i.key:this.getParentKey(t,i.children)&&(n=this.getParentKey(t,i.children)))}return n},onChange:function(t){var e=this,n=this.layerTree,r=[],i=function(t){for(var e=0;e<t.length;e++){var n=t[e],o=n.key;r.push({key:o,title:o}),n.children&&i(n.children)}};i(n);var o=t.target.value,a=r.map((function(t){return t.title.indexOf(o)>-1?e.getParentKey(t.key,n):null})).filter((function(t,e,n){return t&&n.indexOf(t)===e}));Object.assign(this,{expandedKeys:a,searchValue:o,autoExpandParent:!0})},onSelect:function(t,e){this.selectedKeys=t;var n=e.selectedNodes;if(n&&n.length>0){var r=n[0].data,i=r.props,o=i.layerIndex;this.highlightM3d(o)}},parseTerrain:function(){var t=this,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.viewer,o=this.g3dLayerIndex;if(!("number"!==typeof o||o<0)){var a=i.scene.layers.getLayer(o);if(a){var s=a.getTerrainLayerIndexes(),c=a.getTerrainLayers();s.forEach((function(e){var n=a.getLayerInfo(e),r=n.layerName,i=n.layerType;i="string"===typeof i?parseInt(i):i,i==up.g3dTerrainLayer&&t.layerTree[0].children.push({title:r,key:"".concat(e),layerIndex:e,layerType:i,subLayerType:"mapgis-terrain",icon:"mapgis-terrain",menu:"mapgis-down",scopedSlots:{icon:"custom",title:"title"}}),t.layerIds.push("".concat(e))})),r.G3DManager.changeOptions(e,n,"terrains",c)}}},parserVector:function(){var t=this,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.viewer,o=this.g3dLayerIndex;if(!("number"!==typeof o||o<0)){var a=i.scene.layers.getLayer(o);if(a){var s=a.getVectorLayerIndexes(),c=a.getVectorLayers();s.forEach((function(e){var n=a.getLayerInfo(e),r=n.layerName,i=n.layerType;i="string"===typeof i?parseInt(i):i,i==up.g3dVectorLayer&&t.layerTree[0].children.push({title:r,key:"".concat(e),layerIndex:e,layerType:i,subLayerType:"mapgis-vector",icon:"mapgis-vector",menu:"mapgis-down",scopedSlots:{icon:"custom",title:"title"}}),t.layerIds.push("".concat(e))})),r.G3DManager.changeOptions(e,n,"vectors",c)}}},resortLayers:function(){var t=this,e=t.layerTree[0].children,n=e.sort((function(t,e){return t.layerIndex-e.layerIndex}));console.log("news",n[1])},parseServer:function(t){t=t||this.url;var e=new URL(t);return this.ip=e.hostname,this.port=e.port,this.domain=e.origin,{ip:this.ip,port:this.port,domain:this.domain}},parseVersion:function(t){t=t||this.url;var e=new RegExp("/igs/rest/g3d/"),n=new RegExp("/SceneServer"),r=t.search(e),i=t.search(n);return this.version=r>=0?"1.0":i>=0?"2.0":"1.0",this.version},parseName:function(t){var e,n=t._gdbpUrl,r=new RegExp(/\\.*\.mcj/g),i=n.match(r);if(i&&i.length>0){var o=i[0],a=o.split("\\"),s=a[a.length-1],c=s.split(".mcj");e=c&&c.length>0?c[0]:"未命名"}return e},parseLayers:function(t){if(t=t||this.layers,!t)return[];var e=new RegExp(/show:/i);e.test(t)||console.warn("layers格式错误,格式为show:0,1,2");var n=t.replace(/show:/i,""),r=n.split(","),i=r.map((function(t){return t}));return i},changeLayerOpacity:function(t,e){e=e||this.layerIds;var n=this.g3dLayerIndex,r=this.viewer;if(!("number"!==typeof n||n<0)){var i=r.scene.layers.getLayer(n),o=i.getAllLayerIndexes();o.forEach((function(n){var r=i.getLayer(n);e.indexOf("".concat(n))>=0&&r&&i.translucencyByLayerIndex(n,t)}))}},changeLayerVisible:function(t){var e=this;t=t||this.layerIds;var n=this.g3dLayerIndex,r=this.viewer;if(!("number"!==typeof n||n<0)&&!("number"!==typeof n||n<0)){var i=r.scene.layers.getLayer(n),o=i.getAllLayerIndexes();this.layerVisibleArr=[],o.forEach((function(n){var r=i.getLayer(n);if(t.indexOf("".concat(n))>=0)r&&(r.show=!0,i.showByLayerIndex(n,!0),e.layerVisibleArr.push(n));else if(r){var o;r.show=!1,i.showByLayerIndex(n,!1);var a=null===(o=e.prePickFeature)||void 0===o?void 0:o.index;n===a&&(e.featureproperties=void 0,e.featurevisible=!1,e.restoreHighlight())}}))}},handleExpandItemKey:function(t){t==this.expandItemKey?this.expandItemKey=void 0:this.expandItemKey=t},handleActiveItemKey:function(t){var e=t.title,n=t.version,r=t.gdbp,i=t.ip,o=t.port,a=t.domain,s=t.layerIndex,c=t.key;this.title=e,this.gdbp=r,this.version=n,this.ip=i,this.port=o,this.domain=a,this.selectLayerIndex=s,this.layerKey=c,this.$refs.card&&this.$refs.card.togglePanel()},recordOriginStyle:function(){var t=this.g3dLayerIndex,e=this.viewer,n=this.vueKey,r=this.vueIndex,i=this.vueCesium;if(!("number"!==typeof t||t<0)){var o=e.scene.layers.getLayer(t),a=o.getM3DLayerIndexes(),s=[];a.forEach((function(t){var e=o.getLayer(t);e&&s.push(e.style)})),i.G3DManager.changeOptions(n,r,"originStyles",s)}},restoreOriginStyle:function(){var t=this,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.g3dLayerIndex,o=this.viewer,a=r.G3DManager.findSource(e,n);if(!("number"!==typeof i||i<0)){var s=o.scene.layers.getLayer(i);s&&a&&a.options.originStyles&&a.options.originStyles.forEach((function(e,n){var r=s.getLayer(String(n));r&&s.translucencyByLayerIndex(n.toString(),t.opacity)}))}},restoreOrigindVisible:function(){var t=this.vueKey,e=this.vueIndex,n=this.vueCesium,r=this.g3dLayerIndex,i=this.viewer,o=n.G3DManager.findSource(t,e);if(!("number"!==typeof r||r<0)){var a=i.scene.layers.getLayer(r);o&&o.options.originStyles&&o.options.originStyles.forEach((function(t,e){var n=a.getLayer(String(e));n&&(n.show=!0)}))}},changeIsolation:function(t){var e=t.key,n=this;this.layerKey!=e?(this.layerKey=e,this.isolation=!0,window.setTimeout((function(){return n.enableIsolation(t)}),10)):(this.layerKey=void 0,this.isolation=!1,window.setTimeout((function(){return n.disableIsolation()}),10))},enableIsolation:function(t){var e=this.g3dLayerIndex,n=this.viewer,r=t.layerIndex;if(!("number"!==typeof e||e<0)){var i=n.scene.layers.getLayer(e),o=i.getM3DLayerIndexes();this.featurevisible=!1,this.selectedKeys=["".concat(r)],o.forEach((function(t){var e=i.getLayer(t);e&&(t!=r?e.show=!1:(e.show=!0,n.camera.flyToBoundingSphere(e.boundingSphere)))}));var a=this.layerTree[0].children.map((function(t){return t.layerIndex==r?t.disabled=!1:t.disabled=!0,t}));this.layerTree[0].children.splice(0,1,a[0])}},disableIsolation:function(){var t=this.layerTree[0].children.map((function(t){return t.disabled=!1,t}));this.layerTree[0].children.splice(0,1,t[0]),this.restoreOrigindVisible()},handleMenu:function(t){"隐藏面板"==t?this.$refs.card&&this.$refs.card.hide():"静态单体化查询"==t&&(this.menus[0].active?(this.menus[0].active=!1,this.unbindPopupEvent()):(this.menus[0].active=!0,this.bindPopupEvent()))},pickFeature:function(t){var e=t.movement,n=t.pickedFeature,r=this,i=this.g3dLayerIndex,o=this.viewer;if(!n||!e||n&&"Cesium3DTileFeature"!==n.constructor.name)r.iClickVisible=!1;else if(!("number"!==typeof i||i<0)){var a=o.scene.layers.getLayer(i);if(n._content||!n.primitive){var s=n._content._tileset._layerIndex,c=a.getLayer("".concat(s));if(n.tileset===c&&this.layerVisibleArr.includes(s)){r.selectLayerIndex=s,r.selectedKeys=["".concat(s)];var u=a.getLayerInfo(s),l=u.children,h=!!(l&&l.length>0);h?this.queryDynamic(e,s):this.queryStatic(e)}}else this.featurevisible=!0}},cancelFeature:function(){this.$emit("pick-info",{}),this.cancelHighlight()},cancelHighlight:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex;"default"===this.popupShowType?this.featurevisible=!1:"right"===this.popupShowType&&this.popupOverlay&&this.popupOverlay.setContent(null);var r=t.G3DManager.findSource(e,n);if(r&&r.options){var i=r.options.primitiveCollection,o=r.options.feature;o&&i.remove(o)}this.restoreHighlight(),this.restoreM3d()},bindPopupEvent:function(){var t,e=this.vueKey,n=this.vueIndex,r=this.enablePopup;this.enableTips;r&&(t=this.$_bindClickEvent(this.pickFeature,this.cancelFeature,!0,!1)),vueCesium.G3DManager.changeOptions(e,n,"clickhandler",t)},unbindPopupEvent:function(){var t=this.vueKey,e=this.vueIndex;this.featurevisible=!1,this.restoreHighlight(),this.restoreM3d();var n=vueCesium.G3DManager.findSource(t,e);n&&n.options.clickhandler&&(n.options.clickhandler.destroy(),vueCesium.G3DManager.changeOptions(t,e,"clickhandler",void 0))},restoreM3d:function(){this.restoreOriginStyle()},highlightM3d:function(t){var e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.Cesium,o=this.viewer;this.selectLayerIndex=t;var a=o.scene.layers.getLayer(this.g3dLayerIndex),s=a.getLayer("".concat(t));s&&(this.restoreM3d(),r.G3DManager.changeOptions(e,n,"pickerTileset",s),r.G3DManager.changeOptions(e,n,"pickerTilesetStyle",s.style),s.style=new i.Cesium3DTileStyle({color:this.highlightStyle}))},queryDynamic:function(t,e){var n=this;n.featureproperties=void 0;var r=this.Cesium,i=this.viewer,o=this.g3dLayerIndex,a=this.vueKey,s=this.vueIndex,c=this.vueCesium,u=c.G3DManager.findSource(a,s);if(u&&u.options){var l=u.options.primitiveCollection,h=i.getCartesian3Position(t.position);if(r.defined(h)){var d=r.Cartographic.fromCartesian(h),f=r.Math.toDegrees(d.longitude),p=r.Math.toDegrees(d.latitude),m=d.height,g={x:f,y:p,z:m};if("number"!==typeof o||o<0)return;var A=i.scene.layers.getLayer(o);A.getM3DLayerIndexes();if(void 0==e||e<0)return void(n.featurevisible=!1);"string"===typeof e&&(e=parseInt(e));var v=p.toString().split(".")[1],y=Number("0.".concat(v))/Number(v);A.Monomerization((function(t){n.featurevisible=!1;var e=c.G3DManager.findSource(a,s);if(e){var r=e.options.feature;l.remove(r)}if(t&&t.length>0){var i=t[0];n.featureproperties=i.property,n.featureproperties&&Object.keys(n.featureproperties).length>0?"default"===n.popupShowType?(n.featurevisible=!0,n.featureposition={longitude:f,latitude:p,height:m}):n.popupOverlay&&n.popupOverlay.setContent(n.featureproperties):n.popupOverlay&&n.popupOverlay.setContent(null),i.geometryInstances.geometry._extrudedHeight=0,i.geometryInstances.geometry._height=1e5,l.add(i),c.G3DManager.changeOptions(a,s,"feature",i)}}),{position:new r.Cartesian3(g.x,g.y,g.z),tolerance:y,layerIndex:String(e)})}}},queryStatic:function(){var t=rp(ep().mark((function t(e){var n,r,i,o,a,s,c,u,l,h,d,f,p,m,g,A,v,y,b,w,_,x,S,C,M,L,T,k,E,O,P,B,I,D,N,F;return ep().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=this,r=this.Cesium,i=this.viewer,o=this.version,a=this.g3dLayerIndex,this.popupOptions,s=this.highlightStyle,c=this.popupShowType,this.vueKey,this.vueIndex,this.vueCesium,u=i.scene,l=new r.Ray,h=new r.Cartesian3,d={},e){t.next=9;break}return t.abrupt("return");case 9:if(u.mode===r.SceneMode.MORPHING){t.next=70;break}if(f=e.position||e.endPosition,p=i.getCartesian3Position(f),m=u.camera.getPickRay(f,l),g=u.globe.pick(m,u,h),A=i.scene.pick(e.position),A){t.next=19;break}return n.clickvisible=!1,n.featurevisible=!1,t.abrupt("return");case 19:if(w=r.Cartographic.fromCartesian(p),v=r.Math.toDegrees(w.longitude),y=r.Math.toDegrees(w.latitude),b=w.height,!p&&!g){t.next=68;break}if(_=i.scene.layers.getLayer(a),x=A._content._tileset._layerIndex,S=_.getLayer("".concat(x)),A.tileset===S){t.next=29;break}return t.abrupt("return");case 29:if(n.featureproperties=void 0,n.featurevisible=!1,n.restoreHighlight(),this.prePickFeature={feature:A,color:A.color,index:A._content._tileset._layerIndex},n.selectLayerIndex=x,n.selectedKeys=["".concat(x)],C=_.getLayerInfo(x),M=C.layerName,L=C.gdbpUrl,"1.0"!=o&&"0.0"!=o){t.next=52;break}if(T={},k=A.getProperty("name"),!k||""===k){t.next=47;break}return E=k.split("_"),O=E[E.length-1],d.id=O,t.next=46,this.getFeaturePorpertiesById(O,M);case 46:T=t.sent;case 47:Object.keys(T).length>0?(n.showPopup&&(n.featureproperties=T,n.iClickFeatures=[{properties:T}]),d.properties=T):(n.showPopup&&(n.featureproperties={layerName:M,gdbpUrl:L},n.iClickFeatures=[{properties:{layerName:M,gdbpUrl:L}}]),d.properties={layerName:M,gdbpUrl:L}),A.color=r.Color.fromCssColorString(s),"right"===c&&n.popupOverlay&&n.popupOverlay.setContent(n.featureproperties),t.next=62;break;case 52:if(!("number"!==typeof a||a<0)){t.next=54;break}return t.abrupt("return");case 54:return P=S.version.tilesetVersion,"2.1"===P?(B=A.getProperty("tid"),I=[["${tid} === ${id}",s]]):(B=A.getProperty("OID"),I=[["${OID} === ${id}",s]]),d.id=B,S.style=new r.Cesium3DTileStyle({defines:{id:B},color:{conditions:I}}),t.next=60,this.getFeaturePorpertiesById(B,M);case 60:D=t.sent,Object.keys(D).length>0?(n.showPopup&&(n.featureproperties=D,n.iClickFeatures=[{properties20:D}]),d.properties=D):(S._useRawSaveAtt&&r.defined(A)?(N={},F=A.getPropertyNames(),F.forEach((function(t){N[t]=A.getProperty(t)})),n.showPopup&&(n.featureproperties=N,n.iClickFeatures=[{properties:N}]),d.properties=N):S.queryAttributes(B).then((function(t){t=t||{},n.showPopup&&(n.featureproperties=t,n.iClickFeatures=[{properties:t}]),d.properties=t})),"right"===c&&n.popupOverlay&&n.popupOverlay.setContent(n.featureproperties));case 62:n.showPopup&&n.featureclickenable&&n.featureproperties&&Object.keys(n.featureproperties).length>0&&"default"===n.popupShowType&&(n.featurevisible=!0,n.featureposition={longitude:v,latitude:y,height:b}),d.position={longitude:v,latitude:y,height:b},d.layerId=n.vueIndex,n.$emit("pick-info",d),t.next=70;break;case 68:n.clickvisible=!1,"right"===c&&n.popupOverlay&&n.popupOverlay.setContent(null);case 70:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),restoreHighlight:function(){var t=this.g3dLayerIndex,e=this.viewer;if(!("number"!==typeof t||t<0)){var n=e.scene.layers.getLayer(t);this.prePickFeature&&(this.prePickFeature.feature.color=this.prePickFeature.color,this.prePickFeature=void 0);var r=n.getM3DLayerIndexes();r.forEach((function(t){var e=n.getLayer(t);e&&(e.style=void 0)}))}},restoreBeforeM3d:function(){if(this.prePickFeature){var t=this.viewer.scene.layers.getLayer(this.g3dLayerIndex);t.translucencyByLayerIndex(this.prePickFeature.index,this.opacity)}},handleDynamicQuery:function(){this.featurevisible=!1,this.featureclickenable=!1},handleBackMain:function(){this.featureclickenable=this.enablePopup},projectScreen:function(t){this.$emit("project-screen",t)},getFeaturePorpertiesById:function(){var t=rp(ep().mark((function t(e,n){var r,i,o,a,s,c,u,l,h,d,f,p,m,g,A,v,y,b;return ep().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r={},!this.searchParams){t.next=9;break}if(i=this.searchParams,o=i.domain,a=i.serverName,s=i.layerIndex,c=i.serverType,u=i.mapList,l=this.searchParams.gdbp,"IGSMapImage"===c&&n&&u&&u.length>0)for(h=0;h<u.length;h++)d=u[h],n.includes(d.LayerName)&&(l=d.URL);return t.next=7,Zf.query({domain:o,f:"json",IncludeAttribute:!0,IncludeGeometry:!1,IncludeWebGraphic:!1,where:null,gdbp:l,docName:a,layerIdxs:s,rtnLabel:!1,objectIds:e,requestType:"POST"},!1,!0);case 7:if(f=t.sent,f&&f.SFEleArray)for(p=f.AttStruct,m=f.SFEleArray,g=p.FldAlias,A=p.FldName,v=m[0].AttValue,y=0;y<v.length;y++)b=g[y]?g[y]:A[y],r[b]=v[y];case 9:return t.abrupt("return",r);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}()}}),hp=lp,dp=je(hp,jh,Rh,!1,null,null,null),fp=dp.exports,pp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isVoxelLayer?[n("VoxelLayer",t._b({},"VoxelLayer",t.$props,!1))]:[t.modelSwitchVisible?n("Popup",{attrs:{visible:t.modelSwitchVisible,position:t.iClickPosition,forceRender:""}},[n("mapgis-ui-popup-content",{staticClass:"mapgis-multi-model-status-popup"},[n("modelSwitchPopup",{attrs:{tile:t.tile},on:{handleModel:t.handleModel}})],1)],1):"default"===t.popupShowType&&t.featureposition?n("mapgis-3d-feature-popup",t._b({attrs:{position:t.featureposition,popupOptions:t.popupOptions,componentWidth:t.popupWidth}},"mapgis-3d-feature-popup",t.popupConfig,!1),[n(t.popupComponent,t._b({tag:"component",attrs:{properties:t.featureproperties,dataStoreIp:t.dataStoreIp,dataStorePort:t.dataStorePort,dataStoreDataset:t.dataStoreDataset}},"component",t.popupConfig,!1))],1):t._e()]],2)},mp=[],gp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ysc-dynamic-layer"},[n("span",{staticStyle:{position:"relative",left:"0px",top:"-12px","border-bottom":"1px solid rgba","font-size":"14px",color:"#a5a5a5"}},[t._v("请选择多模态数据")]),n("mapgis-ui-col",{staticClass:"axis"},[n("mapgis-ui-radio-group",{attrs:{size:"small"},model:{value:t.typeValue,callback:function(e){t.typeValue=e},expression:"typeValue"}},t._l(t.modelTypeList,(function(e,r){return n("mapgis-ui-radio",{key:r,attrs:{value:r},on:{click:function(e){return t.handleChange(r)}}},[t._v("\n "+t._s(t.modelTypeData[e])+"\n ")])})),1)],1)],1)},Ap=[],vp={name:"mapgis-3d-popupDyn",props:{tile:{type:Object,default:function(){}}},mounted:function(){},components:{},watch:{tile:{immediate:!0,handler:function(t){this.tile&&this.getModelType()}}},data:function(){return{modelTypeList:[],typeValue:"",modelTypeData:{TiltPhotography:"倾斜摄影",PointCloud:"点云数据",Model:"模型数据"}}},methods:{getModelType:function(){var t=this;this.$nextTick((function(){if(t.tile&&t.tile.tileDataInfoList){t.modelTypeList=[];var e=t.tile.tileDataInfoList;e.forEach((function(e){t.modelTypeList.push(e.dataType)}))}}))},handleChange:function(t){this.$emit("handleModel",t)}},destroyed:function(){this.modelTypeList=[]}},yp=vp,bp=(n("38bb"),je(yp,gp,Ap,!1,null,"30ddf4e6",null)),wp=bp.exports,_p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[t.featureposition?n("mapgis-3d-feature-popup",{attrs:{position:t.featureposition,popupOptions:t.popupOptions}},[n(t.popupComponent,t._b({tag:"component",attrs:{properties:t.featureproperties}},"component",t.popupConfig,!1))],1):t._e()],1)},xp=[];function Sp(t){return Sp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sp(t)}function Cp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cp(Object(n),!0).forEach((function(e){Lp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Lp(t,e,n){return(e=Tp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tp(t){var e=kp(t,"string");return"symbol"==Sp(e)?e:e+""}function kp(t,e){if("object"!=Sp(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Sp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ep={name:"mapgis-3d-voxel-layer",inject:["Cesium","vueCesium","viewer"],mixins:[as],props:Mp(Mp({},vh),{},{popupOptions:{type:Object,default:function(){return{popupType:"card"}}}}),data:function(){return{baseDate:new Date("0001-01-01T00:00:00Z").getTime(),featureposition:void 0,featureproperties:void 0,test:0}},watch:{show:function(){this.changeShow()}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{mount:function(){this.initQuery()},unmount:function(){this.stopQuery()},formatter:function(t,e){var n=new Date(t),r=n.getFullYear(),i=n.getMonth()+1,o=n.getDate(),a=n.getHours(),s=n.getMinutes(),c=n.getSeconds();switch(e){case"years":return"".concat(r);case"month":return"".concat(r,"-").concat(i<10?"0".concat(i):i);case"weeks":case"days":return"".concat(r,"-").concat(i<10?"0".concat(i):i,"-").concat(o<10?"0".concat(o):o);case"hours":return"".concat(r,"-").concat(i<10?"0".concat(i):i,"-").concat(o<10?"0".concat(o):o," ").concat(a<10?"0".concat(a):a);case"minutes":return"".concat(r,"-").concat(i<10?"0".concat(i):i,"-").concat(o<10?"0".concat(o):o," ").concat(a<10?"0".concat(a):a,":").concat(s<10?"0".concat(s):s);case"seconds":return"".concat(r,"-").concat(i<10?"0".concat(i):i,"-").concat(o<10?"0".concat(o):o," ").concat(a<10?"0".concat(a):a,":").concat(s<10?"0".concat(s):s,":").concat(c<10?"0".concat(c):c);default:break}},initQuery:function(){var t=this,e=this.viewer,n=this.Cesium;this.handler=new n.ScreenSpaceEventHandler(e.scene.canvas),this.handler.setInputAction((function(r){var i=e.scene.pickVoxel(r.position);if(i instanceof n.VoxelCell){var o=i.metadata;o&&(t.featureposition={cartesian:e.scene.pickPosition(r.position)},o.time=t.formatter(o.time,"hours"),t.featureproperties=o)}}),n.ScreenSpaceEventType.LEFT_CLICK)},stopQuery:function(){this.featureposition=void 0,this.handler&&this.handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK)},changeShow:function(){this.show?this.initQuery():this.stopQuery()}}},Op=Ep,Pp=je(Op,_p,xp,!1,null,null,null),Bp=Pp.exports;function Ip(t){return Ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ip(t)}function Dp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Dp=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Ip(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Ip(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Np(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Fp(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Np(o,r,i,a,s,"next",t)}function s(t){Np(o,r,i,a,s,"throw",t)}a(void 0)}))}}function jp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jp(Object(n),!0).forEach((function(e){Hp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hp(t,e,n){return(e=zp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zp(t){var e=Up(t,"string");return"symbol"==Ip(e)?e:e+""}function Up(t,e){if("object"!=Ip(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ip(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Vp=K["G3D"].M3DTileDataInfo,Yp={name:"mapgis-3d-m3d-layer",inject:["Cesium","vueCesium","viewer"],mixins:[as],props:Rp(Rp({},vh),{},{popupShowType:{type:String,default:"default"},popupOverlay:{type:Object,default:function(){}},dataStoreIp:{type:String,default:"192.168.96.101"},dataStorePort:{type:String,default:"9014"},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"},popupOptions:{type:Object,default:function(){return{popupType:"card"}}},searchParams:{type:Object,default:function(){}}}),components:{modelSwitchPopup:wp,Popup:Ts,VoxelLayer:Bp},data:function(){return{layerIndex:void 0,layerList:void 0,version:void 0,modelSwitchVisible:!1,tileIndex:void 0,tile:{},iEnableIot:!1,featureposition:void 0,featureproperties:void 0,isVoxelLayer:!1}},created:function(){},mounted:function(){this.layerList=this.parseLayers(this.layers),this.mount()},destroyed:function(){this.unmount()},watch:{tileIndex:function(t){this.tile.tileIndex=t},url:function(t){this.unmount(),this.mount()},layers:function(t){this.initial||(this.layerList=this.parseLayers(t),this.changeLayerVisible(this.layerList))},show:function(t){this.initial||this.changeShow(t)},opacity:function(t){this.initial||t>=0&&t<=1&&this.changeOpacity(t)},enablePopup:function(t){t?this.bindPopupEvent():this.unbindPopupEvent()},enableIot:function(t){this.iEnableIot=t}},methods:{handleModel:function(t){var e=this;e.tileIndex=t,e.modelSwitchVisible=!1},createCesiumObject:function(){var t=this,e=this,n=(this.vueCesium,this.viewer),r=this.url;return new Promise((function(i){var o=t.getOptions();o.loaded=function(){i({layerIndex:e.layerIndex})},o.errorCallback=function(){e.$emit("unLoaded")},e.layerIndex=n.scene.layers.appendM3DLayer(r,o)}),(function(t){}))},getOptions:function(){this.$props;var t={},e=Rp(Rp(Rp({},this.$props),this.$props.extensions),this.$options.propsData);return Object.keys(e).forEach((function(n){t[n]=e[n]})),t},parseM3dVersion:function(){},mount:function(){var t=this,e=this,n=this.viewer,r=this.vueIndex,i=this.vueKey,o=this.vueCesium,a=(this.$props,this.url),s=this.opacity;if(!n.isDestroyed()){var c=this.createCesiumObject();c.then((function(c){var u=c.layerIndex;if(u>=0){var l;e.layerIndex=u,l=n.scene.layers.m3dLayersMap.get(u),l.readyPromise.then((function(){var e=l.layerinfo;if(e&&e.length){var n=e[0]||{},i=n.voxelInfo;i&&(t.isVoxelLayer=!0,l.heightScale=1e3,t.$emit("handelVoxel",r))}})),l.style=new Cesium.Cesium3DTileStyle({color:"undefined === ${COLOR}.r ? color('white',"+s+"):rgba(${COLOR}.r *255,${COLOR}.g* 255,${COLOR}.b *255, "+s+")"});var h=[l];e.loopM3d(h,"2.0"),o.M3DIgsManager.addSource(i,r,h,{version:"2.0",url:a}),e.$emit("loaded",{tileset:l,m3ds:h}),e.bindPopupEvent()}}))}},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex;this.removeLayer(),this.unbindPopupEvent(),this.$emit("unload",{component:this}),t.M3DIgsManager.deleteSource(e,n)},removeLayer:function(){this.url;var t=this.layerIndex,e=this.viewer;if(void 0!==t){var n=e.scene.layers.getLayer(t);n&&e.scene.layers.m3dLayersMap.length>0&&e.scene.layers.removeM3DLayerByID(t)}},unbindSource:function(){var t=this.viewer,e=this.vueCesium,n=this.vueKey,r=this.vueIndex,i=e.M3DIgsManager.findSource(n,r);if(i){var o=i.source;!t.isDestroyed()&&o&&o.forEach((function(t){t.destroy()}))}},bindPopupEvent:function(){var t,e,n=this.vueKey,r=this.vueIndex,i=this.vueCesium,o=this.enablePopup,a=this.enableTips,s=this.enableModelSwitch;(o||s)&&(t=this.$_bindClickEvent(this.pickFeature,this.cancelFeature,!0,!1)),a&&(e=this.$_bindHoverEvent(this.pickFeature)),i.M3DIgsManager.changeOptions(n,r,"clickhandler",t),i.M3DIgsManager.changeOptions(n,r,"hoverhandler",e)},unbindPopupEvent:function(){this.Cesium;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this.viewer,i=(this.highlightStyle,this.layerIndex),o=t.M3DIgsManager.findSource(e,n);o&&o.options&&(o.options.clickhandler&&o.options.clickhandler.destroy(),o.options.hoverhandler&&o.options.hoverhandler.destroy()),this.popupOverlay&&this.popupOverlay.setContent(null);var a=r.scene.layers.getM3DLayer(i);a&&(a.style=void 0),this.featureposition=void 0,this.featureproperties=void 0},pickFeature:function(){var t=Fp(Dp().mark((function t(e){var n,r,i,o,a,s,c,u,l,h,d,f,p,m,g,A,v,y,b,w,_,x;return Dp().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=this,r=e.movement,i=this.popupOptions,o=this.highlightStyle,a=this.vueKey,s=this.vueIndex,c=this.viewer,u=this.vueCesium,l=this.Cesium,h=this.layerIndex,d={},n.modelSwitchVisible=!1,f=c.scene.pick(r.position),!n.enableModelSwitch){t.next=12;break}return n.tile=f.content.tile.searchMultimodalTile(),n.modelSwitchVisible=!0,t.abrupt("return");case 12:if(p=c.scene.layers.getM3DLayer(h),f.tileset===p){t.next=15;break}return t.abrupt("return");case 15:return u.M3DIgsManager.changeOptions(a,s,"pick",p),u.M3DIgsManager.changeOptions(a,s,"pickStyle",p.pickedColor||l.Color.fromCssColorString(o)),m=p.version,"2.1"===m?(g=f.getProperty("tid"),A=[["${tid} === ${id}",o]]):(g=f.getProperty("OID"),A=[["${OID} === ${id}",o]]),d.id=g,p.style=new l.Cesium3DTileStyle({defines:{id:g},color:{conditions:A}}),v=i?i.title:void 0,t.next=24,this.getFeaturePorpertiesById(g);case 24:y=t.sent,Object.keys(y).length>0?(n.showPopup&&("default"===this.popupShowType?n.featureproperties=y:(b={},b=y[v]?Rp({title:y[v]},y):Rp({},y),n.popupOverlay&&n.popupOverlay.setContent(b))),d.properties=y):p._useRawSaveAtt&&l.defined(f)?(w={},_=f.getPropertyNames(),_.forEach((function(t){w[t]=f.getProperty(t)})),n.showPopup&&("default"===this.popupShowType?n.featureproperties=w:(x={},x=w[v]?Rp({title:w[v]},w):Rp({},w),n.popupOverlay&&n.popupOverlay.setContent(x))),d.properties=w):p.queryAttributes(g).then((function(t){if(t=t||{},n.showPopup)if("default"===this.popupShowType)n.featureproperties=t;else{var e={};e=t[v]?Rp({title:t[v]},t):Rp({},t),n.popupOverlay&&n.popupOverlay.setContent(e)}d.properties=t})),"default"===this.popupShowType&&n.iClickPosition&&(n.showPopup&&(n.featureposition=n.iClickPosition),d.position=n.iClickPosition),d.layerId=n.vueIndex,n.$emit("pick-info",d);case 29:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),cancelFeature:function(t){t.movement,this.version;var e=this.layerIndex,n=this.viewer,r=(this.Cesium,this.highlightStyle,n.scene.layers.getM3DLayer(e));r.style=void 0,this.featureposition=void 0,this.featureproperties=void 0,this.popupOverlay&&this.popupOverlay.setContent(null),this.$emit("pick-info",{})},changeShow:function(t){var e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=r.M3DIgsManager.findSource(e,n);if(i){var o=i.source;o&&o.forEach((function(e){return e.show=t}))}this.layerList=this.parseLayers(),this.changeLayerVisible(this.layerList)},changeOpacity:function(t){var e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.Cesium,o=r.M3DIgsManager.findSource(e,n);if(o){var a=o.source;if(!a)return;a.forEach((function(e){e.style=new i.Cesium3DTileStyle({color:"undefined === ${COLOR}.r ? color('white',"+t+"):rgba(${COLOR}.r *255,${COLOR}.g* 255,${COLOR}.b *255, "+t+")"})}))}},checkType:function(t,e){var n=this,r=zh.UnKnow;if(!t._root)return r;var i=t.root,o=i.tileset._version,a=i.children;if("0.0"==o||"1.0"==o){if(!a||a.length<=0)return r;a.forEach((function(t){var i=n.checkTypeNode(t,o,e);r=i||r}))}else if("2.0"==o){if(!a||a.length<=0)return r;a.forEach((function(t){var i=n.checkTypeNode(t,o,e);r=i||r}))}return r},checkTypeNode:function(t,e,n){var r,i=this;if(!t)return r;if(t._content){var o=t._content._dataType;if(o>=0){if("0.0"==e||"1.0"==e)switch(o){case Uh.Model:r=zh.Model;break;case Uh.Instance:r=zh.Instance;break;case Uh.CloudPoint:r=zh.CloudPoint;break}else if("2.0"==e)switch(o){case Vp.Model:r=zh.Model;break;case Vp.Vector:r=zh.Instance;break;case Vp.CloudPoint:r=zh.CloudPoint;break}return n&&n(r),r}}return t.children.forEach((function(t){var o=i.checkTypeNode(t,e,n);r=o||r})),r},loopM3d:function(t,e){var n=this,r=this.vueKey,i=this.vueIndex,o=this.vueCesium,a=this.Cesium,s=this.opacity,c=this.url,u=function(e){l&&(window.clearInterval(l),l=void 0,t.forEach((function(t){var r=n.checkType(t);switch(t.type=r||e,r){case zh.Model:case zh.Instance:t.style=new a.Cesium3DTileStyle({color:"undefined === ${COLOR}.r ? color('white',"+s+"):rgba(${COLOR}.r *255,${COLOR}.g* 255,${COLOR}.b *255, "+s+")"});break;case zh.CloudPoint:break;case zh.UnKnow:break}})),o.M3DIgsManager.addSource(r,i,t,{url:c}))},l=window.setInterval((function(){t.forEach((function(t){n.checkType(t,u)}))}),100)},parseLayers:function(t){if(t=t||this.layers,t){var e=new RegExp(/layers=show:/i);e.test(t)||console.warn("layers格式错误,格式为layers=show:0,1,2");var n=t.replace(/layers=show:/i,""),r=n.split(","),i=r.map((function(t){return parseInt(t)}));return i}},changeLayerVisible:function(t){t=t||this.layerList;var e=this.vueKey,n=this.vueIndex,r=this.show,i=this.vueCesium,o=i.M3DIgsManager.findSource(e,n);if(o){var a=o.source;if(!a)return;a.forEach((function(e){t?(e.show=!0,t.indexOf(e.layerIndex||e._layerIndex)>=0||(e.show=!1)):e.show=r}))}},getFeaturePorpertiesById:function(){var t=Fp(Dp().mark((function t(e){var n,r,i,o,a,s,c,u,l,h,d,f,p,m;return Dp().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n={},!this.searchParams){t.next=7;break}return r=this.searchParams,i=r.domain,o=r.serverName,a=r.layerIndex,s=r.gdbp,t.next=5,Zf.query({domain:i,f:"json",IncludeAttribute:!0,IncludeGeometry:!1,IncludeWebGraphic:!1,where:null,gdbp:s,docName:o,layerIdxs:a,rtnLabel:!1,objectIds:e,requestType:"POST"},!1,!0);case 5:if(c=t.sent,c&&c.SFEleArray)for(u=c.AttStruct,l=c.SFEleArray,h=u.FldAlias,d=u.FldName,f=l[0].AttValue,p=0;p<f.length;p++)m=h[p]?h[p]:d[p],n[m]=f[p];case 7:return t.abrupt("return",n);case 8:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}},Gp=Yp,Qp=je(Gp,pp,mp,!1,null,null,null),Wp=Qp.exports,Kp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.featureposition?n("mapgis-3d-feature-popup",t._b({attrs:{position:t.featureposition,popupOptions:t.popupOptions,componentWidth:t.popupWidth}},"mapgis-3d-feature-popup",t.popupConfig,!1),[n(t.popupComponent,t._b({tag:"component",attrs:{properties:t.featureproperties,dataStoreIp:t.dataStoreIp,dataStorePort:t.dataStorePort,dataStoreDataset:t.dataStoreDataset}},"component",t.popupConfig,!1))],1):t._e()},qp=[];function Xp(t){return Xp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xp(t)}function $p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$p(Object(n),!0).forEach((function(e){Zp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zp(t,e,n){return(e=tm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tm(t){var e=em(t,"string");return"symbol"==Xp(e)?e:e+""}function em(t,e){if("object"!=Xp(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var nm,rm,im={name:"mapgis-3d-3dtiles-layer",mixins:[Ch,as],data:function(){return{layerIndex:void 0,featureposition:void 0,featureproperties:void 0}},watch:{opacity:function(t){t>=0&&t<=1&&this.changeOpacity(t)},enablePopup:function(t){t?this.bindPopupEvent():this.unbindPopupEvent()},show:function(t){var e=this.viewer,n=e.scene.layers.getCesium3DTilesetLayer(this.layerIndex);n.show=t}},methods:{createCesiumObject:function(){var t=this,e=this.viewer,n=this.Cesium;return new Promise((function(r){var i,o,a=t.$props,s=t.url,c=t.token,u=a.headers,l=t.getOptions();l.loaded=t.onTilesetLoaded,l.errorCallback=t.onTilesetLoadedError,o=u?new n.Resource({url:s,headers:u}):(c&&c.value,s),i=e.scene.layers.appendCesium3DTilesetLayer(o,l),t.layerIndex=i,r({layerIndex:i})}),(function(t){}))},getOptions:function(){this.$props;var t={},e=Jp(Jp(Jp({},this.$props),this.$props.extensions),this.$options.propsData);return Object.keys(e).forEach((function(n){"extensions"!==n&&(t[n]=e[n])})),t},changeOpacity:function(t){var e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.Cesium,o=r.Tileset3DManager.findSource(e,n);if(o){var a=o.source;if(!a)return;a.style=new i.Cesium3DTileStyle({color:"undefined === ${COLOR}.r ? color('white',"+t+"):rgba(${COLOR}.r *255,${COLOR}.g* 255,${COLOR}.b *255, "+t+")"})}},onTilesetLoaded:function(t){var e=this,n=this.vueIndex,r=this.vueKey,i=this.vueCesium,o=this.Cesium,a=this.url,s=this.opacity;if(t){t.style=new o.Cesium3DTileStyle({color:"undefined === ${COLOR}.r ? color('white',"+s+"):rgba(${COLOR}.r *255,${COLOR}.g* 255,${COLOR}.b *255, "+s+")"});var c=[t];i.Tileset3DManager.addSource(r,n,t,{url:a}),e.$emit("loaded",{tileset:t,m3d:c}),e.bindPopupEvent()}},onTilesetLoadedError:function(t){this.$emit("unLoaded")},pickFeature:function(t){var e=this,n=t.movement,r=(this.popupOptions,this.highlightStyle),i=(this.vueKey,this.vueIndex,this.viewer),o=this.Cesium,a=(this.version,this.layerIndex),s=this.popupShowType,c={},u=i.scene.layers.getCesium3DTilesetLayer(a),l=i.scene.pick(n.position);if(this.cancelFeature(!1),l instanceof o.Cesium3DTileFeature){if(l.content.tileset===u){var h;"default"===s&&(e.showPopup&&(e.featureposition=e.iClickPosition),c.position=e.iClickPosition),l&&(this.feature=l),l.color=o.Color.fromCssColorString(r);var d=l.getPropertyNames();d&&d.length>0&&(h={},d.forEach((function(t){h[t]=l.getProperty(t)}))),"default"===s?e.featureproperties=h:e.popupOverlay&&e.popupOverlay.setContent(h||null),c.properties=h,c.layerId=e.vueIndex,e.$emit("pick-info",c)}}else e.$emit("pick-info",{})},cancelFeature:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.feature){var e=this.Cesium;this.feature.color=new e.Color,this.feature=null,this.featureposition=void 0,this.featureproperties=void 0,"right"===this.popupShowType&&this.popupOverlay&&this.popupOverlay.setContent(null)}t&&this.$emit("pick-info",{})}}},om=im,am=je(om,Kp,qp,!1,null,null,null),sm=am.exports,cm={name:"mapgis-3d-feature-popup",mixins:[zs],props:{position:{type:Object,required:!0},visible:{type:Boolean,default:!0},enablePopup:{type:Boolean,default:!0},componentWidth:{type:[Number,String],default:280}},data:function(){return{}},model:{prop:"visible",event:"change"},inject:["Cesium","vueCesium","viewer"],watch:{position:{deep:!0,immediate:!0,handler:function(){this.update()}},visible:{deep:!0,immediate:!0,handler:function(){this.update()}}},mounted:function(){this.iClickVisible=this.visible},destroyed:function(){},methods:{togglePopup:function(){var t=!this.show;this.show=t},getViewer:function(){var t=this.viewer,e=this.vueKey,n=this.vueCesium;n=n||window.vueCesium;var r=t||n.getViewer(e);return r},createCesiumObject:function(){return new Promise((function(t){t()}))},mount:function(){var t=this.viewer,e=this.vueKey,n=this.vueIndex,r=this.vueCesium;r=r||window.vueCesium,t=t||this.getViewer();var i=this.createCesiumObject();i.then((function(){r.PopupManager.addSource(e,n,void 0,{})}))},unmount:function(){var t=this.viewer,e=this.vueKey,n=this.vueIndex,r=this.vueCesium;t=t||this.getViewer(),r=r||window.vueCesium;var i=r.PopupManager.findSource(e,n);return i&&i.source,!t.isDestroyed()},update:function(){var t=this.position,e=this.visible;this.iClickPosition=t,this.iClickVisible=e},$_changeVisible:function(t,e){this.$emit("change",t,e)}}},um=cm,lm=je(um,nm,rm,!1,null,null,null),hm=lm.exports,dm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monitor-point-popup-wrapper"},[n("div",{staticClass:"data-point-content"},[n("div",{staticClass:"monitor-left"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.listPanelVisible,expression:"listPanelVisible"}],staticClass:"monitor-title"},[t._v("监测点信息- "+t._s(t.monitorTitle))]),n("div",{staticClass:"monitor-table"},[n("mapgis-ui-list",{staticClass:"table-marker",style:{width:t.listPanelVisible?"350px":0},attrs:{"item-layout":"horizontal",locale:t.emptyText,"data-source":t.dataList,size:"small",bordered:""},scopedSlots:t._u([{key:"renderItem",fn:function(e){return n("mapgis-ui-list-item",{staticClass:"table-marker-item"},[n("div",{attrs:{title:e}},[t._v("\n "+t._s(e)+"\n ")]),n("div",{attrs:{title:t.infoData[e]}},[t._v("\n "+t._s(t.infoData[e])+"\n ")])])}}])}),n("div",{staticClass:"monitor-handle",on:{click:t.onTogglelistPanel}},[n("mapgis-ui-iconfont",{attrs:{type:t.listPanelVisible?"mapgis-left":"mapgis-right"}})],1)],1)]),"data"===t.type?n("div",{staticClass:"monitor-right"},[n("span",{staticClass:"monitor-title"},[t._v("监测曲线- "+t._s(t.monitorTitle))]),n("div",{staticClass:"monitor-search-time"},[n("mapgis-ui-range-picker",{attrs:{locale:t.locale,"show-time":{format:"HH:mm:ss"},placeholder:["开始时间","结束时间"],format:"YYYY-MM-DD HH:mm:ss"},on:{change:t.onChange,openChange:t.openChange},model:{value:t.timePick,callback:function(e){t.timePick=e},expression:"timePick"}}),n("mapgis-ui-select",{staticStyle:{width:"100px","margin-left":"5px"},attrs:{"default-value":"最近一周"},on:{change:t.handleChange}},t._l(t.selectTimeRange,(function(e,r){return n("mapgis-ui-select-option",{key:r,attrs:{value:e.label}},[t._v("\n "+t._s(e.label)+"\n ")])})),1)],1),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showEcharts,expression:"showEcharts"}],ref:t.id,staticClass:"monitor-echart"}),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.showEcharts,expression:"!showEcharts"}],staticClass:"monitor-tips"},[t._v("暂无数据")])]):t._e(),"video"===t.type?n("div",{staticClass:"monitor-point-content"},[n("div",{staticClass:"monitor-title"},[t._v("视频- "+t._s(t.monitorTitle))]),n("div",{staticClass:"monitor-video"},[n("div",{staticClass:"monitor-search-time"},[n("mapgis-ui-range-picker",{attrs:{locale:t.locale,"show-time":{format:"HH:mm:ss"},placeholder:["开始时间","结束时间"],format:"YYYY-MM-DD HH:mm:ss"},on:{change:t.onChange,openChange:t.openChange},model:{value:t.timePick,callback:function(e){t.timePick=e},expression:"timePick"}}),n("mapgis-ui-select",{staticStyle:{width:"100px","margin-left":"5px"},attrs:{"default-value":"最近一周"},on:{change:t.handleChange}},t._l(t.selectTimeRange,(function(e,r){return n("mapgis-ui-select-option",{key:r,attrs:{value:e.label}},[t._v("\n "+t._s(e.label)+"\n ")])})),1)],1),n("div",{staticClass:"monitor-video-content"},[t.videoUrl?n("div",{attrs:{id:"projectorVideoContainer",width:300,height:200}}):n("mapgis-ui-empty",{staticClass:"empty"})],1)])]):t._e()])])},fm=[],pm=(n("b2a3"),n("2ee9"),n("92fa")),mm=n.n(pm),gm=n("1098"),Am=n.n(gm),ym=n("6042"),bm=n.n(ym),wm=n("41b2"),_m=n.n(wm),xm=n("60ed"),Sm=n.n(xm),Cm=Object.prototype,Mm=Cm.toString,Lm=Cm.hasOwnProperty,Tm=/^\s*function (\w+)/,km=function(t){var e=null!==t&&void 0!==t?t.type?t.type:t:null,n=e&&e.toString().match(Tm);return n&&n[1]},Em=function(t){if(null===t||void 0===t)return null;var e=t.constructor.toString().match(Tm);return e&&e[1]},Om=function(){},Pm=Number.isInteger||function(t){return"number"===typeof t&&isFinite(t)&&Math.floor(t)===t},Bm=Array.isArray||function(t){return"[object Array]"===Mm.call(t)},Im=function(t){return"[object Function]"===Mm.call(t)},Dm=function(t){Object.defineProperty(t,"def",{value:function(t){return void 0===t&&void 0===this["default"]?(this["default"]=void 0,this):Im(t)||jm(this,t)?(this["default"]=Bm(t)||Sm()(t)?function(){return t}:t,this):(Rm(this._vueTypes_name+' - invalid default value: "'+t+'"',t),this)},enumerable:!1,writable:!1})},Nm=function(t){Object.defineProperty(t,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1})},Fm=function(t,e){return Object.defineProperty(e,"_vueTypes_name",{enumerable:!1,writable:!1,value:t}),Nm(e),Dm(e),Im(e.validator)&&(e.validator=e.validator.bind(e)),e},jm=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e,o=!0,a=void 0;Sm()(e)||(i={type:e});var s=i._vueTypes_name?i._vueTypes_name+" - ":"";return Lm.call(i,"type")&&null!==i.type&&(Bm(i.type)?(o=i.type.some((function(e){return t(e,n,!0)})),a=i.type.map((function(t){return km(t)})).join(" or ")):(a=km(i),o="Array"===a?Bm(n):"Object"===a?Sm()(n):"String"===a||"Number"===a||"Boolean"===a||"Function"===a?Em(n)===a:n instanceof i.type)),o?Lm.call(i,"validator")&&Im(i.validator)?(o=i.validator(n),o||!1!==r||Rm(s+"custom validation failed"),o):o:(!1===r&&Rm(s+'value "'+n+'" should be of type "'+a+'"'),!1)},Rm=Om,Hm={get any(){return Fm("any",{type:null})},get func(){return Fm("function",{type:Function}).def(Um.func)},get bool(){return Fm("boolean",{type:Boolean}).def(Um.bool)},get string(){return Fm("string",{type:String}).def(Um.string)},get number(){return Fm("number",{type:Number}).def(Um.number)},get array(){return Fm("array",{type:Array}).def(Um.array)},get object(){return Fm("object",{type:Object}).def(Um.object)},get integer(){return Fm("integer",{type:Number,validator:function(t){return Pm(t)}}).def(Um.integer)},get symbol(){return Fm("symbol",{type:null,validator:function(t){return"symbol"===("undefined"===typeof t?"undefined":Am()(t))}})},custom:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom validation failed";if("function"!==typeof t)throw new TypeError("[VueTypes error]: You must provide a function as argument");return Fm(t.name||"<<anonymous function>>",{validator:function(){var n=t.apply(void 0,arguments);return n||Rm(this._vueTypes_name+" - "+e),n}})},oneOf:function(t){if(!Bm(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");var e='oneOf - value should be one of "'+t.join('", "')+'"',n=t.reduce((function(t,e){return null!==e&&void 0!==e&&-1===t.indexOf(e.constructor)&&t.push(e.constructor),t}),[]);return Fm("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==t.indexOf(n);return r||Rm(e),r}})},instanceOf:function(t){return Fm("instanceOf",{type:t})},oneOfType:function(t){if(!Bm(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");var e=!1,n=t.reduce((function(t,n){if(Sm()(n)){if("oneOf"===n._vueTypes_name)return t.concat(n.type||[]);if(n.type&&!Im(n.validator)){if(Bm(n.type))return t.concat(n.type);t.push(n.type)}else Im(n.validator)&&(e=!0);return t}return t.push(n),t}),[]);if(!e)return Fm("oneOfType",{type:n}).def(void 0);var r=t.map((function(t){return t&&Bm(t.type)?t.type.map(km):km(t)})).reduce((function(t,e){return t.concat(Bm(e)?e:[e])}),[]).join('", "');return this.custom((function(e){var n=t.some((function(t){return"oneOf"===t._vueTypes_name?!t.type||jm(t.type,e,!0):jm(t,e,!0)}));return n||Rm('oneOfType - value type should be one of "'+r+'"'),n})).def(void 0)},arrayOf:function(t){return Fm("arrayOf",{type:Array,validator:function(e){var n=e.every((function(e){return jm(t,e)}));return n||Rm('arrayOf - value must be an array of "'+km(t)+'"'),n}})},objectOf:function(t){return Fm("objectOf",{type:Object,validator:function(e){var n=Object.keys(e).every((function(n){return jm(t,e[n])}));return n||Rm('objectOf - value must be an object of "'+km(t)+'"'),n}})},shape:function(t){var e=Object.keys(t),n=e.filter((function(e){return t[e]&&!0===t[e].required})),r=Fm("shape",{type:Object,validator:function(r){var i=this;if(!Sm()(r))return!1;var o=Object.keys(r);return n.length>0&&n.some((function(t){return-1===o.indexOf(t)}))?(Rm('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):o.every((function(n){if(-1===e.indexOf(n))return!0===i._vueTypes_isLoose||(Rm('shape - object is missing "'+n+'" property'),!1);var o=t[n];return jm(o,r[n])}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{enumerable:!1,writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this},enumerable:!1}),r}},zm=function(){return{func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0}},Um=zm();Object.defineProperty(Hm,"sensibleDefaults",{enumerable:!1,set:function(t){!1===t?Um={}:!0===t?Um=zm():Sm()(t)&&(Um=t)},get:function(){return Um}});var Vm=Hm,Ym={functional:!0,inject:{configProvider:{default:function(){return Wm}}},props:{componentName:Vm.string},render:function(t,e){var n=arguments[0],r=e.props,i=e.injections;function o(t){var e=i.configProvider.getPrefixCls,r=e("empty");switch(t){case"Table":case"List":return n(kg,{attrs:{image:kg.PRESENTED_IMAGE_SIMPLE}});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return n(kg,{attrs:{image:kg.PRESENTED_IMAGE_SIMPLE},class:r+"-small"});default:return n(kg)}}return o(r.componentName)}};function Gm(t,e){return t(Ym,{attrs:{componentName:e}})}var Qm=Gm,Wm={getPrefixCls:function(t,e){return e||"ant-"+t},renderEmpty:Qm};n("b24f"),n("4d26");var Km=function(t){return t.data&&t.data.scopedSlots||{}},qm=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.$createElement){var i=t.$createElement,o=t[e];return void 0!==o?"function"===typeof o&&r?o(i,n):o:t.$scopedSlots[e]&&r&&t.$scopedSlots[e](n)||t.$scopedSlots[e]||t.$slots[e]||void 0}var a=t.context.$createElement,s=Xm(t)[e];if(void 0!==s)return"function"===typeof s&&r?s(a,n):s;var c=Km(t)[e];if(void 0!==c)return"function"===typeof c&&r?c(a,n):c;var u=[],l=t.componentOptions||{};return(l.children||[]).forEach((function(t){t.data&&t.data.slot===e&&(t.data.attrs&&delete t.data.attrs.slot,"template"===t.tag?u.push(t.children):u.push(t))})),u.length?u:void 0},Xm=function(t){var e=t.componentOptions;return t.$vnode&&(e=t.$vnode.componentOptions),e&&e.propsData||{}};function $m(t){return(t.$vnode?t.$vnode.componentOptions.listeners:t.$listeners)||{}}var Jm={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},Zm={today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},tg={placeholder:"Select time"},eg=tg,ng={lang:_m()({placeholder:"Select date",rangePlaceholder:["Start date","End date"]},Zm),timePickerLocale:_m()({},eg)},rg=ng,ig=rg,og={locale:"en",Pagination:Jm,DatePicker:rg,TimePicker:eg,Calendar:ig,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",selectAll:"Select current page",selectInvert:"Invert current page",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},ag=og,sg={name:"LocaleReceiver",props:{componentName:Vm.string.def("global"),defaultLocale:Vm.oneOfType([Vm.object,Vm.func]),children:Vm.func},inject:{localeData:{default:function(){return{}}}},methods:{getLocale:function(){var t=this.componentName,e=this.defaultLocale,n=e||ag[t||"global"],r=this.localeData.antLocale,i=t&&r?r[t]:{};return _m()({},"function"===typeof n?n():n,i||{})},getLocaleCode:function(){var t=this.localeData.antLocale,e=t&&t.locale;return t&&t.exist&&!e?ag.locale:e}},render:function(){var t=this.$scopedSlots,e=this.children||t["default"],n=this.localeData.antLocale;return e(this.getLocale(),this.getLocaleCode(),n)}},cg={functional:!0,PRESENTED_IMAGE_DEFAULT:!0,render:function(){var t=arguments[0];return t("svg",{attrs:{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{fill:"none",fillRule:"evenodd"}},[t("g",{attrs:{transform:"translate(24 31.67)"}},[t("ellipse",{attrs:{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}}),t("path",{attrs:{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}}),t("path",{attrs:{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}}),t("path",{attrs:{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}}),t("path",{attrs:{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"}})]),t("path",{attrs:{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}}),t("g",{attrs:{transform:"translate(149.65 15.383)",fill:"#FFF"}},[t("ellipse",{attrs:{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}}),t("path",{attrs:{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}})])])])}},ug={functional:!0,PRESENTED_IMAGE_SIMPLE:!0,render:function(){var t=arguments[0];return t("svg",{attrs:{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"}},[t("ellipse",{attrs:{fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"}}),t("g",{attrs:{fillRule:"nonzero",stroke:"#D9D9D9"}},[t("path",{attrs:{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}}),t("path",{attrs:{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA"}})])])])}},lg=n("46cf"),hg=n.n(lg),dg="undefined"!==typeof window,fg=dg&&window.navigator.userAgent.toLowerCase(),pg=fg&&fg.indexOf("msie 9.0")>0;function mg(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var gg=mg("text,number,password,search,email,tel,url");function Ag(t){t.target.composing=!0}function vg(t){t.target.composing&&(t.target.composing=!1,yg(t.target,"input"))}function yg(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function bg(t){return t.directive("ant-input",{inserted:function(t,e,n){("textarea"===n.tag||gg(t.type))&&(e.modifiers&&e.modifiers.lazy||(t.addEventListener("compositionstart",Ag),t.addEventListener("compositionend",vg),t.addEventListener("change",vg),pg&&(t.vmodel=!0)))}})}pg&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&yg(t,"input")}));function wg(t){return t.directive("decorator",{})}function _g(t){return t.directive("ant-portal",{inserted:function(t,e){var n=e.value,r="function"===typeof n?n(t):n;r!==t.parentNode&&r.appendChild(t)},componentUpdated:function(t,e){var n=e.value,r="function"===typeof n?n(t):n;r!==t.parentNode&&r.appendChild(t)}})}var xg={install:function(t){t.use(hg.a,{name:"ant-ref"}),bg(t),wg(t),_g(t)}},Sg={},Cg=function(t){Sg.Vue=t,t.use(xg)};Sg.install=Cg;var Mg=Sg,Lg=function(){return{prefixCls:Vm.string,image:Vm.any,description:Vm.any,imageStyle:Vm.object}},Tg={name:"AEmpty",props:_m()({},Lg()),inject:{configProvider:{default:function(){return Wm}}},methods:{renderEmpty:function(t){var e=this.$createElement,n=this.$props,r=n.prefixCls,i=n.imageStyle,o=this.configProvider.getPrefixCls,a=o("empty",r),s=qm(this,"image")||e(cg),c=qm(this,"description"),u="undefined"!==typeof c?c:t.description,l="string"===typeof u?u:"empty",h=bm()({},a,!0),d=null;if("string"===typeof s)d=e("img",{attrs:{alt:l,src:s}});else if("object"===("undefined"===typeof s?"undefined":Am()(s))&&s.PRESENTED_IMAGE_SIMPLE){var f=s;d=e(f),h[a+"-normal"]=!0}else d=s;return e("div",mm()([{class:h},{on:$m(this)}]),[e("div",{class:a+"-image",style:i},[d]),u&&e("p",{class:a+"-description"},[u]),this.$slots["default"]&&e("div",{class:a+"-footer"},[this.$slots["default"]])])}},render:function(){var t=arguments[0];return t(sg,{attrs:{componentName:"Empty"},scopedSlots:{default:this.renderEmpty}})}};Tg.PRESENTED_IMAGE_DEFAULT=cg,Tg.PRESENTED_IMAGE_SIMPLE=ug,Tg.install=function(t){t.use(Mg),t.component(Tg.name,Tg)};var kg=Tg,Eg=n("164e"),Og=n("c32d"),Pg=n.n(Og),Bg={today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},Ig={placeholder:"请选择时间"},Dg=Ig,Ng={lang:_m()({placeholder:"请选择日期",rangePlaceholder:["开始日期","结束日期"]},Bg),timePickerLocale:_m()({},Dg)};Ng.lang.ok="确 定";var Fg=Ng;n("e3a1"),n("3d33"),n("a151"),n("fda2");function jg(t){return jg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(t)}function Rg(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Rg=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==jg(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(jg(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Hg(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function zg(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Hg(o,r,i,a,s,"next",t)}function s(t){Hg(o,r,i,a,s,"throw",t)}a(void 0)}))}}window.monitorPointDomMap={};var Ug={name:"mapgis-3d-monitor-point-popup",props:{properties:{type:Object,default:function(){}},componentWidth:{type:[Number,String],default:980},type:{type:String,default:"data"},access_token:{type:String,default:"U95_PewQPaUqOvqcCC6DtWGAn1sHZnc6rhTCrj7tzuU"},dataUrl:{type:String,default:"https://szaqxsbg.szsti.org:8060"},monPntID:{type:String,default:"monPntID"},propertyRelation:{type:Object,default:function(){return{cd:"监测点编号",jcdw:"监测单位",jcdx:"监测对象",ssyq:"所属测区",lx:"监测类型",jcxm:"监测项目",fs:"监测方式",mon_project_unit:"监测指标单位"}}},videoType:{type:String,default:""},xAxis:{type:String,default:"mon_time_ts"},yAxis:{type:String,default:"mon_acc_value"},title:{type:String,default:"测点"},exhibition:{type:Object}},data:function(){return{id:Math.floor(1e5*Math.random()),infoData:{},showEcharts:!0,timePick:[Pg()().subtract(1,"weeks"),Pg()()],timeRange:{"今天":[Pg()().startOf("day"),Pg()()],"昨天":[Pg()().startOf("day").subtract(1,"days"),Pg()().endOf("day").subtract(1,"days")],"最近一周":[Pg()().subtract(1,"weeks"),Pg()()],"最近一月":[Pg()().subtract(1,"months"),Pg()()],"最近一季":[Pg()().subtract(3,"months"),Pg()()],"最近一年":[Pg()().subtract(1,"years"),Pg()()],"全部":["",Pg()()]},locale:Fg,selectTimeRange:[{label:"今天"},{label:"昨天"},{label:"最近一周"},{label:"最近一月"},{label:"最近一季"},{label:"最近一年"},{label:"全部"}],hasChange:!1,listPanelVisible:!1,videoUrl:""}},computed:{dataList:function(){return Object.keys(this.infoData)},monitorPointId:function(){return this.properties[this.monPntID]},monitorTitle:function(){return this.properties[this.title]},emptyText:function(){var t=this.$createElement,e="未查询到监测点信息";return{emptyText:t(kg,{attrs:{image:kg.PRESENTED_IMAGE_SIMPLE,description:e}})}}},watch:{listPanelVisible:{handler:function(){var t=this;if("video"===this.type){var e=document.querySelectorAll(".mapgis-feature-popup-container");e&&e.forEach((function(e){t.listPanelVisible?e.style.width="".concat(t.componentWidth,"px"):e.style.width="550px"}))}}},monitorPointId:{immediate:!0,handler:function(){var t=zg(Rg().mark((function t(){var e,n,r,i;return Rg().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("video"!==this.type){t.next=16;break}if(!window.monitorPointDomMap||!window.monitorPointDomMap[this.monitorPointId]){t.next=5;break}this._getVideoDom(),t.next=16;break;case 5:return e=this.exhibition.options?this.exhibition.options[this.exhibition.activeOptionId].name:this.exhibition.option.name,n=this.properties[this.monPntID],t.next=9,this.getPath(n,e);case 9:if(r=t.sent,!(r.indexOf("undefined")>-1)){t.next=13;break}return this.videoUrl="",t.abrupt("return",this.$message.info("获取视频流失败"));case 13:i=this.dataUrl.replace("/catalog/hdfs/services","/services/file/hdfs"),this.videoUrl="".concat(i,"/").concat(r,"/download?isPreview=true"),this._getVideoDom();case 16:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},mounted:function(){var t=zg(Rg().mark((function t(){var e=this;return Rg().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("data"!==this.type){t.next=6;break}return t.next=3,this.getMonitorData();case 3:setTimeout((function(){e.initEcharts()}),500),t.next=7;break;case 6:this.getMonitorData();case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{getPath:function(){var t=zg(Rg().mark((function t(e,n){var r,i,o;return Rg().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,qe.a.get(this.dataUrl);case 2:if(r=t.sent,200!==r.status){t.next=10;break}return i=r.data.t.rtn,t.next=7,this.getUrl(e,i,this.dataUrl,n);case 7:return o=t.sent,console.log(o,"res"),t.abrupt("return",o);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),getUrl:function(){var t=zg(Rg().mark((function t(e,n,r,i){var o,a,s,c,u,l,h=this;return Rg().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=n.find((function(t){return t.name===i}))||n.find((function(t){return t.name===e})),!o){t.next=14;break}return a="".concat(r,"/").concat(o.name),t.next=5,qe.a.get(a);case 5:if(s=t.sent,200!==s.status){t.next=12;break}return c=s.data.t.rtn,t.next=10,this.getUrl(e,c,a);case 10:return u=t.sent,t.abrupt("return","".concat(o.name,"/").concat(u));case 12:t.next=17;break;case 14:if(l=n.find((function(t){return t.name==="".concat(e,".").concat(h.videoType)})),!l){t.next=17;break}return t.abrupt("return",l.name);case 17:case"end":return t.stop()}}),t,this)})));function e(e,n,r,i){return t.apply(this,arguments)}return e}(),_getVideoDom:function(){var t;if(window.monitorPointDomMap&&window.monitorPointDomMap[this.monitorPointId]){var e=window.monitorPointDomMap[this.monitorPointId],n=e.videoDom;e.hlsPlayer;t=n}else{if(!this.videoUrl)return null;t=this.createVideoElement(this.videoType,this.videoUrl,this.monitorPointId)}this.videoDom=t,this.$nextTick((function(){var e=document.getElementById("projectorVideoContainer");e.innerHTML="",t.width=300,t.height=200,t.controls=!0,e.appendChild(t)}))},createVideoElement:function(t,e,n){if(window.monitorPointDomMap[n]){var r=window.monitorPointDomMap[n],i=r.videoDom;r.hlsPlayer;return i}var o=this.getVideoPlayerType(t),a=document.createElement("div"),s=300,c=200;a.innerHTML='<video id="projector-video-'.concat(n,'" class="video-js vjs-default-skin" controls preload="auto" width="').concat(s,'" height="').concat(c,'" crossOrigin="anonymous">\n <source src="').concat(e,'" type="').concat(o,'" /></video>');var u=a.getElementsByTagName("video")[0],l={autoplay:!0,loop:!1,preload:"auto",aspectRatio:"16:9",fluid:!0},h=window.videojs(u,l);return h.src({type:o,src:e}),h.load(e),h.play(),h.loop(),window.monitorPointDomMap[n]={videoDom:u,hlsPlayer:h},u},getVideoPlayerType:function(t){var e="video/mp4";return"mp4"===t?e="video/mp4":"m3u8"===t?e="application/x-mpegURL":"webm"===t?e="video/webm":"ogg"===t&&(e="video/ogg"),e},onTogglelistPanel:function(){this.listPanelVisible=!this.listPanelVisible,"data"===this.type&&this.initEcharts()},initEcharts:function(){var t=zg(Rg().mark((function t(){var e,n;return Rg().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.timePick[0]?Pg()(this.timePick[0]).format("YYYY-MM-DD+HH:mm:ss"):void 0,n=this.timePick[1]?Pg()(this.timePick[1]).format("YYYY-MM-DD+HH:mm:ss"):void 0,t.next=4,this.getMonitorEchartsData(n,e);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getMonitorData:function(){var t=this;this.dataUrl.indexOf("datastore")>-1?(this.infoData=this.properties,this.listPanelVisible=!0):qe.a.get("".concat(this.dataUrl,"/hotel/api/QueryJcjkHqjcXm?access_token=").concat(this.access_token,"&mon_point_id=").concat(this.monitorPointId)).then((function(e){if(200===e.status){var n=e.data;if(n.records&&0===n.records.length)return void t.$message.info("监测点".concat(t.monitorTitle,"未查询到信息!"));var r=n.records[0],i={};Object.keys(t.propertyRelation).forEach((function(e){var n=t.propertyRelation[e];i[n]=r[e]})),t.infoData=i,t.listPanelVisible=!0}})).catch((function(e){t.$message.error("监测点".concat(t.monitorPointId,"信息查询异常!"))}))},getMonitorEchartsData:function(t,e){var n=this,r="".concat(this.dataUrl,"/hotel/api/QueryJcjkHqjcSj?access_token=").concat(this.access_token,"&mon_point_id=").concat(this.monitorPointId);t&&(r+="&endDate=".concat(t)),e&&(r+="&beginDate=".concat(e)),qe.a.get(r).then((function(t){if(200===t.status){var e=t.data;if(e.records&&0===e.records.length)return void(n.showEcharts=!1);var r=t.data.records.reduce((function(t,e){var r=[e[n.xAxis],e[n.yAxis]];return t.push(r),t}),[]);n.showEcharts=!0,n.myCharts?n.$nextTick((function(){n.resizeEcharts(r)})):n.$nextTick((function(){n.drawEcharts(r)}))}else n.showEcharts=!1})).catch((function(t){n.showEcharts=!1}))},drawEcharts:function(t){var e=this.$refs[this.id];if(e){this.myCharts=Eg["init"](e,null,{renderer:"canvas",useDirtyRect:!1});var n={tooltip:{trigger:"axis"},legend:{data:["第三方监测数据"],right:30,textStyle:{color:"#fff"}},grid:{top:30,left:"8%",right:34},toolbox:{iconStyle:{color:"#111",borderColor:"#fff"},top:-4,feature:{saveAsImage:{}}},xAxis:{type:"time",boundaryGap:!1,interval:864e5,axisLine:{show:!0},textStyle:{color:"#fff"},axisLabel:{color:"#fff"}},yAxis:{type:"value",boundaryGap:[0,"100%"],axisLine:{show:!0},textStyle:{color:"#fff",lineStyle:{color:"#ccc"}},axisLabel:{color:"#fff"},splitLine:{lineStyle:{color:"#6a6969",type:"dashed"}}},dataZoom:[{type:"slider",show:!0,start:80,end:100,xAxisIndex:[0],bottom:10},{type:"slider",show:!0,yAxisIndex:[0],left:"95%",start:0,end:100}],series:[{name:"第三方监测数据",type:"line",smooth:!0,symbol:"none",data:t}]};this.myCharts.setOption(n)}},resizeEcharts:function(t){var e=this.myCharts.getOption();e?(e.series[0].data=t,this.myCharts.setOption(e),this.myCharts.resize()):this.drawEcharts(t)},onChange:function(t){this.hasChange=!0},openChange:function(t){!t&&this.hasChange&&(this.hasChange=!this.hasChange,this.initEcharts())},handleChange:function(t){var e=JSON.parse(JSON.stringify(this.timeRange[t]));this.timePick=e,this.initEcharts()}}},Vg=Ug,Yg=(n("8d97"),je(Vg,dm,fm,!1,null,"4704f88e",null)),Gg=Yg.exports,Qg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"insar-point-popup-wrapper"},[n("span",{staticClass:"monitor-title"},[t._v("沉降数据")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showEcharts,expression:"showEcharts"}],ref:t.id,staticClass:"insar-echarts"}),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.showEcharts,expression:"!showEcharts"}],staticClass:"monitor-tips"},[t._v("暂无数据")])])},Wg=[],Kg={name:"mapgis-3d-insar-point-popup",props:{properties:{type:Object,default:function(){}},componentWidth:{type:[Number,String],default:580}},data:function(){return{id:Math.floor(1e5*Math.random()),showEcharts:!0}},watch:{properties:{deep:!0,immediate:!0,handler:function(t){t?this.drawEcharts(t):this.showEcharts=!1}}},methods:{drawEcharts:function(t){var e=this,n=["VEL","mpLayer","fid","HEIGHT"],r=[],i=[];Object.keys(t).forEach((function(e){n.includes(e)||(r.push(e),i.push(t[e]))})),this.myCharts?this.$nextTick((function(){e.resizeEcharts(r,i)})):this.$nextTick((function(){e.drawEchart(r,i)}))},drawEchart:function(t,e){var n=this.$refs[this.id];if(n){this.myCharts=Eg["init"](n,null,{renderer:"canvas",useDirtyRect:!1,width:n.clientWidth,height:n.clientHeight});var r={grid:{top:"10%",left:"6%",right:"6%",bottom:"8%"},tooltip:{trigger:"axis"},xAxis:{type:"category",data:t,axisLine:{show:!0},textStyle:{color:"#fff"},axisLabel:{color:"#fff"}},yAxis:{type:"value",axisLine:{show:!0},textStyle:{color:"#fff"},axisLabel:{color:"#fff"},splitLine:{lineStyle:{color:"#6a6969",type:"dashed"}}},series:[{data:e,type:"line"}]};this.myCharts.setOption(r)}},resizeEcharts:function(t,e){var n=this.myCharts.getOption();n.xAxis.data=t,n.series[0].data=e,this.myCharts.setOption(n),this.myCharts.resize()}}},qg=Kg,Xg=(n("26cc"),je(qg,Qg,Wg,!1,null,"78ceb203",null)),$g=Xg.exports,Jg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"attribute-popup-content-wrapper"},[t.title?n("div",{staticClass:"mapgis-popup-title"},[t._v(t._s(t.title))]):t._e(),t.images&&t.images.length>0?n("mapgis-ui-carousel",{attrs:{autoplay:""}},t._l(t.images,(function(t,e){return n("div",{key:e,staticClass:"carousel-image-container"},[n("img",{staticStyle:{"object-fit":"contain"},attrs:{src:t,width:"100%",height:"100%"}})])})),0):t._e(),n("mapgis-ui-list",{staticClass:"table-marker",class:t.showAccessory?"":"scene-popup-detail",attrs:{"item-layout":"horizontal","data-source":t.propertyKeys,size:"small",bordered:""},scopedSlots:t._u([{key:"renderItem",fn:function(e){return"images"!==e?n("mapgis-ui-list-item",{staticClass:"table-marker-item"},[n("div",{attrs:{title:e}},[t._v("\n "+t._s(e)+"\n ")]),n("div",{attrs:{title:t.properties[e]}},[t._v("\n "+t._s(t.properties[e])+"\n ")])]):t._e()}}],null,!0)}),t.Euid&&t.showAccessory?[n("div",{staticClass:"iot-enclosure-title"},[t._v("附件")]),n("ul",{staticClass:"iot-enclosure-container"},[n("li",{attrs:{title:"非结构化文件"}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-feijiegouhuawenjian"},on:{click:function(e){return t.clickIot(101)}}})],1),n("li",{attrs:{title:"传感器"}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-a-iotDevicechuanganqi"},on:{click:function(e){return t.clickIot(301)}}})],1),n("li",{attrs:{title:"知识图谱"}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-share-alt"},on:{click:function(e){return t.clickIot(501)}}})],1)])]:t._e(),n("mapgis-ui-modal",{staticClass:"attribute-model",attrs:{footer:null,width:600,centered:!0,bodyStyle:{padding:"30px 10px 10px"},destroyOnClose:!0},model:{value:t.showModal,callback:function(e){t.showModal=e},expression:"showModal"}},[t.Euid?n("iot-detail",{attrs:{toType:t.toType,Euid:t.Euid,dataStoreIp:t.dataStoreIp,dataStorePort:t.dataStorePort,dataStoreDataset:t.dataStoreDataset},on:{"project-screen":t.projectScreen}}):t._e()],1)],2)},Zg=[],tA=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mapgis-ui-spin",{attrs:{spinning:t.loading}},[501==t.toType?n("div",{staticClass:"iot-detail-graph-tool-panel"},[n("mapgis-ui-select-panel",{attrs:{label:"关系图类型",selectOptions:{force:"力引导布局",circular:"环形布局"}},model:{value:t.graphType,callback:function(e){t.graphType=e},expression:"graphType"}})],1):t._e(),501==t.toType?n("div",{staticClass:"iot-detail-graph-chart-panel",attrs:{id:"echarts-graph"}}):t._e(),501!=t.toType?n("div",{staticClass:"iot-detail-title"},[n("h3",[t._v("附件")]),n("mapgis-ui-radio-group",{attrs:{"button-style":"solid",size:"small"},model:{value:t.isList,callback:function(e){t.isList=e},expression:"isList"}},[n("mapgis-ui-radio-button",{attrs:{value:!0}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-unorderedlist"}})],1),n("mapgis-ui-radio-button",{attrs:{value:!1}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-table"}})],1)],1)],1):t._e(),501!=t.toType?n("mapgis-ui-file-preview",{attrs:{isList:t.isList,files:t.files},on:{"project-screen":t.projectScreen}}):t._e(),501!=t.toType?n("div",{staticClass:"iot-detail-pagination"},[n("mapgis-ui-pagination",{attrs:{size:"small","show-size-changer":"","page-size":t.pageSize,total:t.total},on:{"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e}},model:{value:t.current,callback:function(e){t.current=e},expression:"current"}})],1):t._e()],1)},eA=[];function nA(t){return nA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nA(t)}function rA(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */rA=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==nA(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(nA(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function iA(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function oA(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){iA(o,r,i,a,s,"next",t)}function s(t){iA(o,r,i,a,s,"throw",t)}a(void 0)}))}}var aA=eh["Util"].UrlUtil,sA={name:"IotDetail",props:{Euid:{type:String,default:""},toType:{type:Number,default:1},dataStoreIp:{type:String,default:""},dataStorePort:{type:String,default:""},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"}},data:function(){return{isList:!0,current:1,pageSize:10,total:0,files:[],loading:!1,graphType:"force"}},watch:{graphType:function(t){this.genGraph(t)}},mounted:function(){501!=this.toType?this.getData():this.genGraph(this.graphType)},methods:{getData:function(){var t=oA(rA().mark((function t(){var e,n,r,i,o,a,s;return rA().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=[],this.loading=!0,n=this.dataStoreIp,r=this.dataStorePort,t.prev=4,t.next=7,qe.a.get("".concat(aA.getOrigin({ip:n,port:r}),"/datastore/rest/services/dataset/relations"),{params:{fromID:this.Euid,fromType:1,toType:this.toType,pageNo:this.current,pageSize:this.pageSize}});case 7:if(i=t.sent,200!==i.status){t.next=20;break}if(o=i.data.data,a=o.total,s=o.rtn,this.total=a,!s){t.next=20;break}t.t0=this.toType,t.next=101===t.t0?15:301===t.t0?17:19;break;case 15:return e=this.fileDataStore(s),t.abrupt("break",20);case 17:return e=this.iotDevice(s),t.abrupt("break",20);case 19:return t.abrupt("break",20);case 20:t.next=24;break;case 22:t.prev=22,t.t1=t["catch"](4);case 24:return t.prev=24,this.files=e,this.loading=!1,t.finish(24);case 28:case"end":return t.stop()}}),t,this,[[4,22,24,28]])})));function e(){return t.apply(this,arguments)}return e}(),formatter:function(t){var e={categories:[],nodes:[],links:[]};return t.graphValues.forEach((function(t,n){t.entityName?(-1==e.categories.indexOf(t.entityName)&&e.categories.push(t.entityName),t.category=e.categories.indexOf(t.entityName),e.nodes.push(t)):t.relationshipName&&e.links.push({source:t.src,target:t.dst})})),e},genGraph:function(t){var e=this.dataStoreIp,n=this.dataStorePort,r=this;this.loading=!0;var i,o=document.getElementById("echarts-graph"),a=Eg["init"](o,null,{renderer:"canvas",useDirtyRect:!1,width:480,height:480});a.showLoading(),qe.a.post("".concat(aA.getOrigin({ip:e,port:n}),"/datastore/rest/services/dataset/nebula/").concat(this.dataStoreDataset,"/knowledgeGraph/graph/query?type=graphRelationType"),{id:this.Euid,pageSize:this.pageSize,pageOffset:0,step:3,relationshipTypes:["*"],direction:"Both",usePaging:!1}).then((function(e){var n=r.formatter(e.data);a.hideLoading();var o=n.categories;switch(n.categories=n.categories.map((function(t){return t={name:t},t})),i={tooltip:{position:"right",formatter:function(t){for(var e in t.data.properties)null==t.data.properties[e]&&delete t.data.properties[e];var n=JSON.stringify(t.data.properties);if(n){n=n.replaceAll('":',":"),n=n.replaceAll(/{|}|"|'/g,"");var r=n.split(","),i=r.join("<br>");return i}}},legend:{data:o,textStyle:{color:"#fff"}},animationDuration:1500,animationEasingUpdate:"quinticInOut",series:[{type:"graph",layout:t,roam:!0,categories:n.categories,links:n.links,label:{position:"right",formatter:"{b}"},emphasis:{focus:"adjacency",lineStyle:{width:10}}}]},t){case"force":i.series[0].force={repulsion:100},i.series[0].data=n.nodes.map((function(t,e){return t.id==r.Euid?t.symbolSize=15:t.symbolSize=7,t}));break;case"circular":i.series[0].data=n.nodes.map((function(t,e){return t.id==r.Euid?t.symbolSize=15:t.symbolSize=7,t})),i.series[0].lineStyle={color:"target",curveness:.3};break;case"none":i.series[0].label.show=!0,i.series[0].labelLayout={hideOverlap:!0},i.series[0].lineStyle={color:"target",curveness:.3},i.series[0].data=n.nodes.map((function(t,e){if(t.id==r.Euid)t.symbolSize=12,t.x=0,t.y=0;else switch(t.symbolSize=5,t.category){case 0:t.x=10*Math.random()+1,t.y=10*Math.random()+1;break;case 1:t.x=10*-Math.random()+1,t.y=10*Math.random()+1;break;case 2:t.x=10*Math.random()+1,t.y=10*-Math.random()+1;break;case 3:t.x=10*-Math.random()+1,t.y=10*-Math.random()+1;break}return t}));break}try{a.setOption(i,{notMerge:!0})}catch(s){console.log("setOptionError",s)}window.addEventListener("resize",a.resize),r.loading=!1}))},projectScreen:function(t){this.$emit("project-screen",t)},fileDataStore:function(t){this.dataStoreIp,this.dataStorePort;var e=[];return t.forEach((function(t){var n=t.toDataUrl,r=t.toExtInfo,i=n.split("/");if(i.length>0){var o=i[i.length-1],a=JSON.parse(r),s=a.ip,c=a.port,u=a.provider,l="".concat(aA.getOrigin({ip:s,port:c}),"/datastore/rest/services/file/").concat(u).concat(n,"/download?isPreview=true");e.push({name:o,url:l})}})),e},iotDevice:function(t){this.dataStoreIp,this.dataStorePort;var e=[];return t.forEach((function(t){var n=t.toDataUrl,r=t.toExtInfo,i=t.toID,o=JSON.parse(r),a=o.ip,s=o.port,c=o.provider,u="".concat(aA.getOrigin({ip:a,port:s}),"/datastore/rest/services/dataset/").concat(c).concat(n,"/iots/devices/videos");e.push({name:i,type:"hls",url:u})})),e}}},cA=sA,uA=(n("58aa"),je(cA,tA,eA,!1,null,"62c889d0",null)),lA=uA.exports,hA={components:{IotDetail:lA},name:"mapgis-3d-popup-iot",provide:function(){return{getProjectorStatus:this.getProjectorStatus}},props:{properties:{type:Object,default:function(){return{}}},dataStoreIp:{type:String,default:"192.168.96.101"},dataStorePort:{type:String,default:"9014"},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"},getProjectorStatus:{type:Function,default:function(){}},showAccessory:{type:Boolean,default:!0}},data:function(){return{showModal:!1,toType:""}},computed:{propertyKeys:function(){var t=[];for(var e in this.properties)"Euid"!==e&&"images"!==e&&"title"!==e&&t.push(e);return t},Euid:function(){return this.properties.Euid},images:function(){if(this.properties.images){var t=this.properties.images.split(";");return t||[]}return[]},title:function(){return this.properties.title?this.properties.title:null}},methods:{clickIot:function(t){this.showModal=!0,this.toType=t},projectScreen:function(t){this.$emit("project-screen",t)}}},dA=hA,fA=(n("17c9"),je(dA,Jg,Zg,!1,null,"793cedba",null)),pA=fA.exports,mA=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-relationship-graph"},[n("mapgis-ui-spin",{attrs:{spinning:t.loading}},[n("mapgis-ui-setting-form",{attrs:{layout:"inline",size:"default"}},[n("mapgis-ui-form-item",{attrs:{label:"建筑面积:"}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,step:10,"addon-after":"㎡(及以上)"},model:{value:t.queryParams.jzmj,callback:function(e){t.$set(t.queryParams,"jzmj",e)},expression:"queryParams.jzmj"}})],1),n("mapgis-ui-form-item",{attrs:{label:"套内建筑面积:"}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,step:10,"addon-after":"㎡(及以上)"},model:{value:t.queryParams.tnjzmj,callback:function(e){t.$set(t.queryParams,"tnjzmj",e)},expression:"queryParams.tnjzmj"}})],1),n("mapgis-ui-form-item",{attrs:{label:"分摊系数:"}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,max:1,step:.1,"addon-after":"(及以上)"},model:{value:t.queryParams.ftxs,callback:function(e){t.$set(t.queryParams,"ftxs",e)},expression:"queryParams.ftxs"}})],1),n("mapgis-ui-form-item",{attrs:{label:"分摊建筑面积:"}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,step:10,"addon-after":"㎡(及以上)"},model:{value:t.queryParams.ftjzmj,callback:function(e){t.$set(t.queryParams,"ftjzmj",e)},expression:"queryParams.ftjzmj"}})],1),n("mapgis-ui-form-item",[n("mapgis-ui-button",{on:{click:t.filterGraphData}},[t._v("查询")]),n("mapgis-ui-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resizeQueryparams}},[t._v("重置")])],1)],1),n("mapgis-ui-setting-form",{attrs:{layout:"inline",size:"default"}},[n("mapgis-ui-form-item",{attrs:{label:"图谱类型:"}},[n("mapgis-ui-space",{staticClass:"mapgis-relationship-icons",attrs:{slot:"extra"},slot:"extra"},t._l(t.relationshipTypeList,(function(e,r){return n("mapgis-ui-tooltip",{key:r},[n("template",{slot:"title"},[t._v(t._s(e.title))]),n("mapgis-ui-iconfont",{class:{active:e.active},attrs:{type:e.icon},on:{click:function(n){return t.handleSelectChange(e)}}})],2)})),1)],1),n("mapgis-ui-form-item",{directives:[{name:"show",rawName:"v-show",value:t.showRevert,expression:"showRevert"}],attrs:{label:""}},[n("mapgis-ui-button",{on:{click:t.goBack}},[t._v("返回")])],1)],1),n("div",{staticClass:"relationship-graph",attrs:{id:"relationship-graph"}},[n("div",{staticClass:"relationship-graph-left",attrs:{id:"relationship"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showTooltip,expression:"showTooltip"}],staticClass:"relationship-graph-right",style:{width:t.tooltipWidth+"px",maxHeight:t.tooltipHeight+"px"}},[n("mapgis-ui-iconfont",{staticClass:"right-close",attrs:{type:"mapgis-close"},on:{click:function(){return t.tooltipInfo=void 0}}}),n("div",{staticClass:"right-content",domProps:{innerHTML:t._s(t.tooltipInfo)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showAccessory,expression:"showAccessory"}],staticClass:"right-accessory"},[n("relation-accessory",{ref:"detailInfo",attrs:{toType:t.toType,dataStoreIp:t.info.dataStoreIp,dataStorePort:t.info.dataStorePort,dataStoreDataset:t.info.dataStoreDataset},on:{"project-screen":t.projectScreen}})],1)],1)])],1)],1)},gA=[],AA=n("07cd"),vA=n.n(AA),yA=n("0519"),bA=n.n(yA),wA=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mapgis-ui-spin",{attrs:{spinning:t.loading}},[n("div",{staticClass:"accessory-detail-title"},[n("h3",[t._v("附件")]),n("mapgis-ui-radio-group",{attrs:{"button-style":"solid",size:"small"},model:{value:t.isList,callback:function(e){t.isList=e},expression:"isList"}},[n("mapgis-ui-radio-button",{attrs:{value:!0}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-unorderedlist"}})],1),n("mapgis-ui-radio-button",{attrs:{value:!1}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-table"}})],1)],1)],1),n("mapgis-ui-file-preview",{attrs:{isList:t.isList,files:t.files,isrelationShip:t.isrelationShip,videoToType:t.videoToType},on:{"project-screen":t.projectScreen}})],1)},_A=[];function xA(t){return xA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xA(t)}function SA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function CA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?SA(Object(n),!0).forEach((function(e){MA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function MA(t,e,n){return(e=LA(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function LA(t){var e=TA(t,"string");return"symbol"==xA(e)?e:e+""}function TA(t,e){if("object"!=xA(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=xA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function kA(t){return BA(t)||PA(t)||OA(t)||EA()}function EA(){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 OA(t,e){if(t){if("string"==typeof t)return IA(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IA(t,e):void 0}}function PA(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function BA(t){if(Array.isArray(t))return IA(t)}function IA(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var DA=eh["Util"].UrlUtil,NA={name:"RelationAccessory",props:{Euid:{type:String,default:""},toType:{type:Number,default:1},dataStoreIp:{type:String,default:""},dataStorePort:{type:String,default:""},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"}},data:function(){return{isList:!0,files:[],loading:!1,isrelationShip:!0,videoToType:301}},methods:{projectScreen:function(t){this.$emit("project-screen",t)},fileDataStore:function(t){this.dataStoreIp,this.dataStorePort;var e=[];return t.forEach((function(t){var n=t.toDataUrl,r=t.toExtInfo,i=t.toType,o=n.split("/");if(o.length>0){var a=o[o.length-1],s=JSON.parse(r),c=s.ip,u=s.port,l=s.provider,h="".concat(DA.getOrigin({ip:c,port:u}),"/datastore/rest/services/file/").concat(l).concat(n,"/download?isPreview=true");e.push({name:a,url:h,toType:i})}})),e},iotDevice:function(t){this.dataStoreIp,this.dataStorePort;var e=[];return t.forEach((function(t){var n=t.toDataUrl,r=t.toExtInfo,i=t.toID,o=t.toType,a=JSON.parse(r),s=a.ip,c=a.port,u=a.provider,l="".concat(DA.getOrigin({ip:s,port:c}),"/datastore/rest/services/dataset/").concat(u).concat(n,"/iots/devices/videos");e.push({name:i,type:"hls",url:l,toType:o})})),e},getAccessoryInfo:function(t){var e=this;Promise.all(this.getAccessory(t)).then((function(t){e.files=[].concat(kA(t[0]),kA(t[1])),e.loading=!1}))},getAccessory:function(t){var e=this;this.loading=!0;var n=[],r=this.dataStoreIp,i=this.dataStorePort,o=new Promise((function(n,o){var a=[];qe.a.get("".concat(DA.getOrigin({ip:r,port:i}),"/datastore/rest/services/dataset/relations"),{params:CA(CA({},t),{},{fromType:1,toType:e.toType,pageNo:1,pageSize:99})}).then((function(t){if(200===t.status){var r=t.data.data,i=r.total,o=r.rtn;e.total=i,a=e.fileDataStore(o),n(a)}})).catch((function(t){o(t)}))})),a=new Promise((function(n,o){var a=[];qe.a.get("".concat(DA.getOrigin({ip:r,port:i}),"/datastore/rest/services/dataset/relations"),{params:CA(CA({},t),{},{fromType:1,toType:e.videoToType,pageNo:1,pageSize:99})}).then((function(t){if(200===t.status){var r=t.data.data,i=r.total,o=r.rtn;e.total=i,a=e.iotDevice(o),n(a)}})).catch((function(t){o(t)}))}));return n.push(o),n.push(a),n}}},FA=NA,jA=(n("bad61"),je(FA,wA,_A,!1,null,"e67476aa",null)),RA=jA.exports,HA=function(t,e){return HA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},HA(t,e)};function zA(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}HA(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var UA=n("22d1"),VA=n("6d8b"),YA=function(t,e){return YA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},YA(t,e)};function GA(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}YA(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;function QA(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function WA(t,e){return t[0]=e[0],t[1]=e[1],t}function KA(t){return[t[0],t[1]]}function qA(t,e,n){return t[0]=e,t[1]=n,t}function XA(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function $A(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function JA(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function ZA(t){return Math.sqrt(tv(t))}function tv(t){return t[0]*t[0]+t[1]*t[1]}function ev(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function nv(t,e){var n=ZA(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function rv(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var iv=rv;function ov(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var av=ov;function sv(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function cv(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function uv(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function lv(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var hv=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),dv=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new hv(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new hv(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new hv(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new hv(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new hv(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new hv(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),fv=dv,pv=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[t].length-1,u=i[t][c];return u&&u.callAtLast?i[t].splice(c,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var c=r[s];if(!i||!i.filter||null==c.query||i.filter(t,c.query))switch(o){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,e[0]);break;case 2:c.h.call(c.ctx,e[0],e[1]);break;default:c.h.apply(c.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,c=0;c<s;c++){var u=r[c];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),mv=pv,gv=Math.log(2);function Av(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var c=Math.round(Math.log((1<<s)-1&~i)/gv);return t[n][c]}var u=r|1<<n,l=n+1;while(r&1<<l)l++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&i||(h+=(f%2?-1:1)*t[n][d]*Av(t,e-1,l,u,i|p,o),f++)}return o[a]=h,h}function vv(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=Av(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Av(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var yv="___zrEVENTSAVED";function bv(t,e,n,r,i){if(e.getBoundingClientRect&&UA["a"].domSupported&&!xv(e)){var o=e[yv]||(e[yv]={}),a=wv(e,o),s=_v(a,o,i);if(s)return s(t,n,r),!0}return!1}function wv(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,c=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[c]+":0",i[u]+":0",r[1-c]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function _v(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],c=!0,u=0;u<4;u++){var l=t[u].getBoundingClientRect(),h=2*u,d=l.left,f=l.top;a.push(d,f),c=c&&o&&d===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return c&&i?i:(e.srcCoords=a,e[r]=n?vv(s,a):vv(a,s))}function xv(t){return"CANVAS"===t.nodeName.toUpperCase()}var Sv=/([&<>"'])/g,Cv={"&":"&","<":"<",">":">",'"':""","'":"'"};function Mv(t){return null==t?"":(t+"").replace(Sv,(function(t,e){return Cv[e]}))}var Lv=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Tv=[],kv=UA["a"].browser.firefox&&+UA["a"].browser.version.split(".")[0]<39;function Ev(t,e,n,r){return n=n||{},r?Ov(t,e,n):kv&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Ov(t,e,n),n}function Ov(t,e,n){if(UA["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(xv(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(bv(Tv,t,r,i))return n.zrX=Tv[0],void(n.zrY=Tv[1])}n.zrX=n.zrY=0}function Pv(t){return t||window.event}function Bv(t,e,n){if(e=Pv(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&Ev(t,o,e,n)}else{Ev(t,e,e,n);var a=Iv(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&Lv.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Iv(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function Dv(t,e,n,r){t.addEventListener(e,n,r)}function Nv(t,e,n,r){t.removeEventListener(e,n,r)}var Fv=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function jv(t){return 2===t.which||3===t.which}var Rv=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],c=Ev(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in Uv)if(Uv.hasOwnProperty(e)){var n=Uv[e](this._track,t);if(n)return n}},t}();function Hv(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function zv(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Uv={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=Hv(r)/Hv(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=zv(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function Vv(){return[1,0,0,1,0,0]}function Yv(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Gv(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Qv(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],c=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=c,t}function Wv(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Kv(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],c=e[3],u=e[5],l=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*l,t[1]=-i*l+s*h,t[2]=o*h+c*l,t[3]=-o*l+h*c,t[4]=h*(a-r[0])+l*(u-r[1])+r[0],t[5]=h*(u-r[1])-l*(a-r[0])+r[1],t}function qv(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Xv(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],c=n*a-o*r;return c?(c=1/c,t[0]=a*c,t[1]=-o*c,t[2]=-r*c,t[3]=n*c,t[4]=(r*s-a*i)*c,t[5]=(o*i-n*s)*c,t):null}var $v=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),Jv=$v,Zv=Math.min,ty=Math.max,ey=new Jv,ny=new Jv,ry=new Jv,iy=new Jv,oy=new Jv,ay=new Jv,sy=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=Zv(t.x,this.x),n=Zv(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ty(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ty(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=Vv();return Wv(i,i,[-e.x,-e.y]),qv(i,i,[n,r]),Wv(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,c=e.x,u=e.x+e.width,l=e.y,h=e.y+e.height,d=!(o<c||u<i||s<l||h<a);if(n){var f=1/0,p=0,m=Math.abs(o-c),g=Math.abs(u-i),A=Math.abs(s-l),v=Math.abs(h-a),y=Math.min(m,g),b=Math.min(A,v);o<c||u<i?y>p&&(p=y,m<g?Jv.set(ay,-m,0):Jv.set(ay,g,0)):y<f&&(f=y,m<g?Jv.set(oy,m,0):Jv.set(oy,-g,0)),s<l||h<a?b>p&&(p=b,A<v?Jv.set(ay,0,-A):Jv.set(ay,0,v)):y<f&&(f=y,A<v?Jv.set(oy,0,A):Jv.set(oy,0,-v))}return n&&Jv.copy(n,d?oy:ay),d},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}ey.x=ry.x=n.x,ey.y=iy.y=n.y,ny.x=iy.x=n.x+n.width,ny.y=ry.y=n.y+n.height,ey.transform(r),iy.transform(r),ny.transform(r),ry.transform(r),e.x=Zv(ey.x,ny.x,ry.x,iy.x),e.y=Zv(ey.y,ny.y,ry.y,iy.y);var c=ty(ey.x,ny.x,ry.x,iy.x),u=ty(ey.y,ny.y,ry.y,iy.y);e.width=c-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),cy=sy,uy="silent";function ly(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:hy}}function hy(){Fv(this.event)}var dy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return GA(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(mv),fy=function(){function t(t,e){this.x=t,this.y=e}return t}(),py=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],my=new cy(0,0,0,0),gy=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new fy(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new dy,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new fv(a),a}return GA(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(VA["k"](py,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=yy(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new fy(e,n):this.findHover(e,n),s=a.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new fy(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=ly(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new fy(t,e);if(vy(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,c=new cy(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var l=r[u];l===n||l.ignore||l.ignoreCoarsePointer||l.parent&&l.parent.ignoreCoarsePointer||(my.copy(l.getBoundingRect()),l.transform&&my.applyTransform(l.transform),my.intersect(c)&&o.push(l))}if(o.length)for(var h=4,d=Math.PI/12,f=2*Math.PI,p=0;p<s;p+=h)for(var m=0;m<f;m+=d){var g=t+p*Math.cos(m),A=e+p*Math.sin(m);if(vy(o,i,g,A,n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Rv);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new fy;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(mv);function Ay(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||uy}return!1}function vy(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=Ay(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==uy)){e.target=a;break}}}function yy(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}VA["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){gy.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=yy(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||iv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var by=gy,wy=32,_y=7;function xy(t){var e=0;while(t>=wy)e|=1&t,t>>=1;return t+e}function Sy(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i<n&&r(t[i],t[i-1])<0)i++;Cy(t,e,i)}else while(i<n&&r(t[i],t[i-1])>=0)i++;return i-e}function Cy(t,e,n){n--;while(e<n){var r=t[e];t[e++]=t[n],t[n--]=r}}function My(t,e,n,r,i){for(r===e&&r++;r<n;r++){var o,a=t[r],s=e,c=r;while(s<c)o=s+c>>>1,i(a,t[o])<0?c=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function Ly(t,e,n,r,i,o){var a=0,s=0,c=1;if(o(t,e[n+i])>0){s=r-i;while(c<s&&o(t,e[n+i+c])>0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=i,c+=i}else{s=i+1;while(c<s&&o(t,e[n+i-c])<=0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s);var u=a;a=i-c,c=i-u}a++;while(a<c){var l=a+(c-a>>>1);o(t,e[n+l])>0?a=l+1:c=l}return c}function Ty(t,e,n,r,i,o){var a=0,s=0,c=1;if(o(t,e[n+i])<0){s=i+1;while(c<s&&o(t,e[n+i-c])<0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s);var u=a;a=i-c,c=i-u}else{s=r-i;while(c<s&&o(t,e[n+i+c])>=0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=i,c+=i}a++;while(a<c){var l=a+(c-a>>>1);o(t,e[n+l])<0?c=l:a=l+1}return c}function ky(t,e){var n,r,i=_y,o=0,a=[];function s(t,e){n[o]=t,r[o]=e,o+=1}function c(){while(o>1){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;l(t)}}function u(){while(o>1){var t=o-2;t>0&&r[t-1]<r[t+1]&&t--,l(t)}}function l(i){var a=n[i],s=r[i],c=n[i+1],u=r[i+1];r[i]=s+u,i===o-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),o--;var l=Ty(t[c],t,a,s,0,e);a+=l,s-=l,0!==s&&(u=Ly(t[a+s-1],t,c,u,u-1,e),0!==u&&(s<=u?h(a,s,c,u):d(a,s,c,u)))}function h(n,r,o,s){var c=0;for(c=0;c<r;c++)a[c]=t[n+c];var u=0,l=o,h=n;if(t[h++]=t[l++],0!==--s)if(1!==r){var d,f,p,m=i;while(1){d=0,f=0,p=!1;do{if(e(t[l],a[u])<0){if(t[h++]=t[l++],f++,d=0,0===--s){p=!0;break}}else if(t[h++]=a[u++],d++,f=0,1===--r){p=!0;break}}while((d|f)<m);if(p)break;do{if(d=Ty(t[l],a,u,r,0,e),0!==d){for(c=0;c<d;c++)t[h+c]=a[u+c];if(h+=d,u+=d,r-=d,r<=1){p=!0;break}}if(t[h++]=t[l++],0===--s){p=!0;break}if(f=Ly(a[u],t,l,s,0,e),0!==f){for(c=0;c<f;c++)t[h+c]=t[l+c];if(h+=f,l+=f,s-=f,0===s){p=!0;break}}if(t[h++]=a[u++],1===--r){p=!0;break}m--}while(d>=_y||f>=_y);if(p)break;m<0&&(m=0),m+=2}if(i=m,i<1&&(i=1),1===r){for(c=0;c<s;c++)t[h+c]=t[l+c];t[h+s]=a[u]}else{if(0===r)throw new Error;for(c=0;c<r;c++)t[h+c]=a[u+c]}}else{for(c=0;c<s;c++)t[h+c]=t[l+c];t[h+s]=a[u]}else for(c=0;c<r;c++)t[h+c]=a[u+c]}function d(n,r,o,s){var c=0;for(c=0;c<s;c++)a[c]=t[o+c];var u=n+r-1,l=s-1,h=o+s-1,d=0,f=0;if(t[h--]=t[u--],0!==--r)if(1!==s){var p=i;while(1){var m=0,g=0,A=!1;do{if(e(a[l],t[u])<0){if(t[h--]=t[u--],m++,g=0,0===--r){A=!0;break}}else if(t[h--]=a[l--],g++,m=0,1===--s){A=!0;break}}while((m|g)<p);if(A)break;do{if(m=r-Ty(a[l],t,n,r,r-1,e),0!==m){for(h-=m,u-=m,r-=m,f=h+1,d=u+1,c=m-1;c>=0;c--)t[f+c]=t[d+c];if(0===r){A=!0;break}}if(t[h--]=a[l--],1===--s){A=!0;break}if(g=s-Ly(t[u],a,0,s,s-1,e),0!==g){for(h-=g,l-=g,s-=g,f=h+1,d=l+1,c=0;c<g;c++)t[f+c]=a[d+c];if(s<=1){A=!0;break}}if(t[h--]=t[u--],0===--r){A=!0;break}p--}while(m>=_y||g>=_y);if(A)break;p<0&&(p=0),p+=2}if(i=p,i<1&&(i=1),1===s){for(h-=r,u-=r,f=h+1,d=u+1,c=r-1;c>=0;c--)t[f+c]=t[d+c];t[h]=a[l]}else{if(0===s)throw new Error;for(d=h-(s-1),c=0;c<s;c++)t[d+c]=a[c]}}else{for(h-=r,u-=r,f=h+1,d=u+1,c=r-1;c>=0;c--)t[f+c]=t[d+c];t[h]=a[l]}else for(d=h-(s-1),c=0;c<s;c++)t[d+c]=a[c]}return n=[],r=[],{mergeRuns:c,forceMergeRuns:u,pushRun:s}}function Ey(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<wy)return o=Sy(t,n,r,e),void My(t,n,r,n+o,e);var a=ky(t,e),s=xy(i);do{if(o=Sy(t,n,r,e),o<s){var c=i;c>s&&(c=s),My(t,n,n+c,n+o,e),o=c}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var Oy=1,Py=2,By=4,Iy=!1;function Dy(){Iy||(Iy=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ny(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Fy,jy=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ny}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,Ey(n,Ny)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];var i=r,o=t;while(i)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var c=a[s];t.__dirty&&(c.__dirty|=Oy),this._updateAndAddDisplayable(c,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Dy(),u.z=0),isNaN(u.z2)&&(Dy(),u.z2=0),isNaN(u.zlevel)&&(Dy(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var l=t.getDecalElement&&t.getDecalElement();l&&this._updateAndAddDisplayable(l,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=VA["q"](this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Ry=jy;Fy=UA["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Hy=Fy,zy={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-zy.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*zy.bounceIn(2*t):.5*zy.bounceOut(2*t-1)+.5}},Uy=zy,Vy=Math.pow,Yy=Math.sqrt,Gy=1e-8,Qy=1e-4,Wy=Yy(3),Ky=1/3,qy=QA(),Xy=QA(),$y=QA();function Jy(t){return t>-Gy&&t<Gy}function Zy(t){return t>Gy||t<-Gy}function tb(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function eb(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function nb(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),c=3*(e-t),u=t-i,l=s*s-3*a*c,h=s*c-9*a*u,d=c*c-3*s*u,f=0;if(Jy(l)&&Jy(h))if(Jy(s))o[0]=0;else{var p=-c/s;p>=0&&p<=1&&(o[f++]=p)}else{var m=h*h-4*l*d;if(Jy(m)){var g=h/l,A=(p=-s/a+g,-g/2);p>=0&&p<=1&&(o[f++]=p),A>=0&&A<=1&&(o[f++]=A)}else if(m>0){var v=Yy(m),y=l*s+1.5*a*(-h+v),b=l*s+1.5*a*(-h-v);y=y<0?-Vy(-y,Ky):Vy(y,Ky),b=b<0?-Vy(-b,Ky):Vy(b,Ky);p=(-s-(y+b))/(3*a);p>=0&&p<=1&&(o[f++]=p)}else{var w=(2*l*s-3*a*h)/(2*Yy(l*l*l)),_=Math.acos(w)/3,x=Yy(l),S=Math.cos(_),C=(p=(-s-2*x*S)/(3*a),A=(-s+x*(S+Wy*Math.sin(_)))/(3*a),(-s+x*(S-Wy*Math.sin(_)))/(3*a));p>=0&&p<=1&&(o[f++]=p),A>=0&&A<=1&&(o[f++]=A),C>=0&&C<=1&&(o[f++]=C)}}return f}function rb(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,c=0;if(Jy(a)){if(Zy(o)){var u=-s/o;u>=0&&u<=1&&(i[c++]=u)}}else{var l=o*o-4*a*s;if(Jy(l))i[0]=-o/(2*a);else if(l>0){var h=Yy(l),d=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[c++]=u),d>=0&&d<=1&&(i[c++]=d)}}return c}function ib(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,c=(r-n)*i+n,u=(s-a)*i+a,l=(c-s)*i+s,h=(l-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=l,o[6]=c,o[7]=r}function ob(t,e,n,r,i,o,a,s,c,u,l){var h,d,f,p,m,g=.005,A=1/0;qy[0]=c,qy[1]=u;for(var v=0;v<1;v+=.05)Xy[0]=tb(t,n,i,a,v),Xy[1]=tb(e,r,o,s,v),p=av(qy,Xy),p<A&&(h=v,A=p);A=1/0;for(var y=0;y<32;y++){if(g<Qy)break;d=h-g,f=h+g,Xy[0]=tb(t,n,i,a,d),Xy[1]=tb(e,r,o,s,d),p=av(Xy,qy),d>=0&&p<A?(h=d,A=p):($y[0]=tb(t,n,i,a,f),$y[1]=tb(e,r,o,s,f),m=av($y,qy),f<=1&&m<A?(h=f,A=m):g*=.5)}return l&&(l[0]=tb(t,n,i,a,h),l[1]=tb(e,r,o,s,h)),Yy(A)}function ab(t,e,n,r,i,o,a,s,c){for(var u=t,l=e,h=0,d=1/c,f=1;f<=c;f++){var p=f*d,m=tb(t,n,i,a,p),g=tb(e,r,o,s,p),A=m-u,v=g-l;h+=Math.sqrt(A*A+v*v),u=m,l=g}return h}function sb(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function cb(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function ub(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,c=0;if(Jy(o)){if(Zy(a)){var u=-s/a;u>=0&&u<=1&&(i[c++]=u)}}else{var l=a*a-4*o*s;if(Jy(l)){u=-a/(2*o);u>=0&&u<=1&&(i[c++]=u)}else if(l>0){var h=Yy(l),d=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[c++]=u),d>=0&&d<=1&&(i[c++]=d)}}return c}function lb(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function hb(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function db(t,e,n,r,i,o,a,s,c){var u,l=.005,h=1/0;qy[0]=a,qy[1]=s;for(var d=0;d<1;d+=.05){Xy[0]=sb(t,n,i,d),Xy[1]=sb(e,r,o,d);var f=av(qy,Xy);f<h&&(u=d,h=f)}h=1/0;for(var p=0;p<32;p++){if(l<Qy)break;var m=u-l,g=u+l;Xy[0]=sb(t,n,i,m),Xy[1]=sb(e,r,o,m);f=av(Xy,qy);if(m>=0&&f<h)u=m,h=f;else{$y[0]=sb(t,n,i,g),$y[1]=sb(e,r,o,g);var A=av($y,qy);g<=1&&A<h?(u=g,h=A):l*=.5}}return c&&(c[0]=sb(t,n,i,u),c[1]=sb(e,r,o,u)),Yy(h)}function fb(t,e,n,r,i,o,a){for(var s=t,c=e,u=0,l=1/a,h=1;h<=a;h++){var d=h*l,f=sb(t,n,i,d),p=sb(e,r,o,d),m=f-s,g=p-c;u+=Math.sqrt(m*m+g*g),s=f,c=p}return u}var pb=/cubic-bezier\(([0-9,\.e ]+)\)/;function mb(t){var e=t&&pb.exec(t);if(e){var n=e[1].split(","),r=+Object(VA["Q"])(n[0]),i=+Object(VA["Q"])(n[1]),o=+Object(VA["Q"])(n[2]),a=+Object(VA["Q"])(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:nb(0,r,o,1,t,s)&&tb(0,i,a,1,s[0])}}}var gb=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||VA["I"],this.ondestroy=t.ondestroy||VA["I"],this.onrestart=t.onrestart||VA["I"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(VA["u"])(t)?t:Uy[t]||mb(t)},t}(),Ab=gb,vb=n("41ef"),yb=n("7a29"),bb=Array.prototype.slice;function wb(t,e,n){return(e-t)*n+t}function _b(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=wb(e[o],n[o],r);return t}function xb(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=wb(e[a][s],n[a][s],r)}return t}function Sb(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function Cb(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function Mb(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function Lb(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var c=o;c<a;c++)r.push(1===n?i[c]:bb.call(i[c]))}var u=r[0]&&r[0].length;for(c=0;c<r.length;c++)if(1===n)isNaN(r[c])&&(r[c]=i[c]);else for(var l=0;l<u;l++)isNaN(r[c][l])&&(r[c][l]=i[c][l])}}function Tb(t){if(Object(VA["t"])(t)){var e=t.length;if(Object(VA["t"])(t[0])){for(var n=[],r=0;r<e;r++)n.push(bb.call(t[r]));return n}return bb.call(t)}return t}function kb(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Eb(t){return Object(VA["t"])(t&&t[0])?2:1}var Ob=0,Pb=1,Bb=2,Ib=3,Db=4,Nb=5,Fb=6;function jb(t){return t===Db||t===Nb}function Rb(t){return t===Pb||t===Bb}var Hb=[0,0,0,0],zb=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=Fb,s=e;if(Object(VA["t"])(e)){var c=Eb(e);a=c,(1===c&&!Object(VA["x"])(e[0])||2===c&&!Object(VA["x"])(e[0][0]))&&(o=!0)}else if(Object(VA["x"])(e)&&!Object(VA["l"])(e))a=Ob;else if(Object(VA["A"])(e))if(isNaN(+e)){var u=vb["parse"](e);u&&(s=u,a=Ib)}else a=Ob;else if(Object(VA["v"])(e)){var l=Object(VA["m"])({},s);l.colorStops=Object(VA["F"])(e.colorStops,(function(t){return{offset:t.offset,color:vb["parse"](t.color)}})),Object(yb["a"])(e)?a=Db:Object(yb["b"])(e)&&(a=Nb),s=l}0===i?this.valType=a:a===this.valType&&a!==Fb||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(VA["u"])(n)?n:Uy[n]||mb(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=Rb(r),c=jb(r),u=0;u<i;u++){var l=n[u],h=l.value,d=o.value;l.percent=l.time/t,a||(s&&u!==i-1?Lb(h,d,r):c&&Mb(h.colorStops,d.colorStops))}if(!a&&r!==Nb&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var f=n[0].value;for(u=0;u<i;u++)r===Ob?n[u].additiveValue=n[u].value-f:r===Ib?n[u].additiveValue=Sb([],n[u].value,f,-1):Rb(r)&&(n[u].additiveValue=r===Pb?Sb([],n[u].value,f,-1):Cb([],n[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,c=this.keyframes,u=c.length,l=this.propName,h=s===Ib,d=this._lastFr,f=Math.min;if(1===u)r=i=c[0];else{if(e<0)n=0;else if(e<this._lastFrP){var p=f(d+1,u-1);for(n=p;n>=0;n--)if(c[n].percent<=e)break;n=f(n,u-2)}else{for(n=d;n<u;n++)if(c[n].percent>e)break;n=f(n-1,u-2)}i=c[n+1],r=c[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var m=i.percent-r.percent,g=0===m?1:f((e-r.percent)/m,1);i.easingFunc&&(g=i.easingFunc(g));var A=o?this._additiveValue:h?Hb:t[l];if(!Rb(s)&&!h||A||(A=this._additiveValue=[]),this.discrete)t[l]=g<1?r.rawValue:i.rawValue;else if(Rb(s))s===Pb?_b(A,r[a],i[a],g):xb(A,r[a],i[a],g);else if(jb(s)){var v=r[a],y=i[a],b=s===Db;t[l]={type:b?"linear":"radial",x:wb(v.x,y.x,g),y:wb(v.y,y.y,g),colorStops:Object(VA["F"])(v.colorStops,(function(t,e){var n=y.colorStops[e];return{offset:wb(t.offset,n.offset,g),color:kb(_b([],t.color,n.color,g))}})),global:y.global},b?(t[l].x2=wb(v.x2,y.x2,g),t[l].y2=wb(v.y2,y.y2,g)):t[l].r=wb(v.r,y.r,g)}else if(h)_b(A,r[a],i[a],g),o||(t[l]=kb(A));else{var w=wb(r[a],i[a],g);o?this._additiveValue=w:t[l]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===Ob?t[n]=t[n]+r:e===Ib?(vb["parse"](t[n],Hb),Sb(Hb,Hb,r,1),t[n]=kb(Hb)):e===Pb?Sb(t[n],t[n],r,1):e===Bb&&Cb(t[n],t[n],r,1)},t}(),Ub=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(VA["E"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(VA["D"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new zb(a);var c=void 0,u=this._getAdditiveTrack(a);if(u){var l=u.keyframes,h=l[l.length-1];c=h&&h.value,u.valType===Ib&&c&&(c=kb(c))}else c=this._target[a];if(null==c)continue;t>0&&s.addKeyframe(0,Tb(c),r),this._trackKeys.push(a)}s.addKeyframe(t,Tb(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),c=a.keyframes,u=c.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var l=c[u-1];l&&(e._target[a.propName]=l.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Ab({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(VA["F"])(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=Tb(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(VA["D"])(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),Vb=Ub;function Yb(){return(new Date).getTime()}var Gb=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return GA(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=Yb()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(Hy(e),!t._paused&&t.update())}this._running=!0,Hy(e)},e.prototype.start=function(){this._running||(this._time=Yb(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Yb(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Yb()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Vb(t,e.loop);return this.addAnimator(n),n},e}(mv),Qb=Gb,Wb=300,Kb=UA["a"].domSupported,qb=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=VA["F"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),Xb={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},$b=!1;function Jb(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Zb(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function tw(t){t&&(t.zrByTouch=!0)}function ew(t,e){return Bv(t.dom,new rw(t,e),!0)}function nw(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var rw=function(){function t(t,e){this.stopPropagation=VA["I"],this.stopImmediatePropagation=VA["I"],this.preventDefault=VA["I"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),iw={mousedown:function(t){t=Bv(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Bv(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Bv(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Bv(this.dom,t);var e=t.toElement||t.relatedTarget;nw(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){$b=!0,t=Bv(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){$b||(t=Bv(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Bv(this.dom,t),tw(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),iw.mousemove.call(this,t),iw.mousedown.call(this,t)},touchmove:function(t){t=Bv(this.dom,t),tw(t),this.handler.processGesture(t,"change"),iw.mousemove.call(this,t)},touchend:function(t){t=Bv(this.dom,t),tw(t),this.handler.processGesture(t,"end"),iw.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Wb&&iw.click.call(this,t)},pointerdown:function(t){iw.mousedown.call(this,t)},pointermove:function(t){Jb(t)||iw.mousemove.call(this,t)},pointerup:function(t){iw.mouseup.call(this,t)},pointerout:function(t){Jb(t)||iw.mouseout.call(this,t)}};VA["k"](["click","dblclick","contextmenu"],(function(t){iw[t]=function(e){e=Bv(this.dom,e),this.trigger(t,e)}}));var ow={pointermove:function(t){Jb(t)||ow.mousemove.call(this,t)},pointerup:function(t){ow.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function aw(t,e){var n=e.domHandlers;UA["a"].pointerEventsSupported?VA["k"](qb.pointer,(function(r){cw(e,r,(function(e){n[r].call(t,e)}))})):(UA["a"].touchEventsSupported&&VA["k"](qb.touch,(function(r){cw(e,r,(function(i){n[r].call(t,i),Zb(e)}))})),VA["k"](qb.mouse,(function(r){cw(e,r,(function(i){i=Pv(i),e.touching||n[r].call(t,i)}))})))}function sw(t,e){function n(n){function r(r){r=Pv(r),nw(t,r.target)||(r=ew(t,r),e.domHandlers[n].call(t,r))}cw(e,n,r,{capture:!0})}UA["a"].pointerEventsSupported?VA["k"](Xb.pointer,n):UA["a"].touchEventsSupported||VA["k"](Xb.mouse,n)}function cw(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,Dv(t.domTarget,e,n,r)}function uw(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Nv(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var lw=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),hw=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new lw(e,iw),Kb&&(r._globalHandlerScope=new lw(document,ow)),aw(r,r._localHandlerScope),r}return GA(e,t),e.prototype.dispose=function(){uw(this._localHandlerScope),Kb&&uw(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Kb&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?sw(this,e):uw(e)}},e}(mv),dw=hw,fw=1;UA["a"].hasGlobalWindow&&(fw=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var pw=fw,mw=.4,gw="#333",Aw="#ccc",vw="#eee",yw=Yv,bw=5e-5;function ww(t){return t>bw||t<-bw}var _w=[],xw=[],Sw=Vv(),Cw=Math.abs,Mw=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return ww(this.rotation)||ww(this.x)||ww(this.y)||ww(this.scaleX-1)||ww(this.scaleY-1)||ww(this.skewX)||ww(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Vv(),e?this.getLocalTransform(n):yw(n),t&&(e?Qv(n,t,n):Gv(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(yw(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(_w);var n=_w[0]<0?-1:1,r=_w[1]<0?-1:1,i=((_w[0]-n)*e+n)/_w[0]||0,o=((_w[1]-r)*e+r)/_w[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Vv(),Xv(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Vv(),Qv(xw,t.invTransform,e),e=xw);var n=this.originX,r=this.originY;(n||r)&&(Sw[4]=n,Sw[5]=r,Qv(xw,e,Sw),xw[4]-=n,xw[5]-=r,e=xw),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&cv(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&cv(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Cw(t[0]-1)>1e-10&&Cw(t[3]-1)>1e-10?Math.sqrt(Cw(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Tw(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,c=t.rotation||0,u=t.x,l=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var f=n+a,p=r+s;e[4]=-f*i-h*p*o,e[5]=-p*o-d*f*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=d*i,e[2]=h*o,c&&Kv(e,e,c),e[4]+=n+u,e[5]+=r+l,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Lw=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Tw(t,e){for(var n=0;n<Lw.length;n++){var r=Lw[n];t[r]=e[r]}}var kw=Mw,Ew=n("d51b"),Ow=n("726e"),Pw={};function Bw(t,e){e=e||Ow["a"];var n=Pw[e];n||(n=Pw[e]=new Ew["a"](500));var r=n.get(t);return null==r&&(r=Ow["c"].measureText(t,e).width,n.put(t,r)),r}function Iw(t,e,n,r){var i=Bw(t,e),o=jw(e),a=Nw(0,i,n),s=Fw(0,o,r),c=new cy(a,s,i,o);return c}function Dw(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return Iw(i[0],e,n,r);for(var a=new cy(0,0,0,0),s=0;s<i.length;s++){var c=Iw(i[s],e,n,r);0===s?a.copy(c):a.union(c)}return a}function Nw(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Fw(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function jw(t){return Bw("国",t)}function Rw(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Hw(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,c=n.x,u=n.y,l="left",h="top";if(r instanceof Array)c+=Rw(r[0],n.width),u+=Rw(r[1],n.height),l=null,h=null;else switch(r){case"left":c-=i,u+=s,l="right",h="middle";break;case"right":c+=i+a,u+=s,h="middle";break;case"top":c+=a/2,u-=i,l="center",h="bottom";break;case"bottom":c+=a/2,u+=o+i,l="center";break;case"inside":c+=a/2,u+=s,l="center",h="middle";break;case"insideLeft":c+=i,u+=s,h="middle";break;case"insideRight":c+=a-i,u+=s,l="right",h="middle";break;case"insideTop":c+=a/2,u+=i,l="center";break;case"insideBottom":c+=a/2,u+=o-i,l="center",h="bottom";break;case"insideTopLeft":c+=i,u+=i;break;case"insideTopRight":c+=a-i,u+=i,l="right";break;case"insideBottomLeft":c+=i,u+=o-i,h="bottom";break;case"insideBottomRight":c+=a-i,u+=o-i,l="right",h="bottom";break}return t=t||{},t.x=c,t.y=u,t.align=l,t.verticalAlign=h,t}var zw="__zr_normal__",Uw=Lw.concat(["ignore"]),Vw=Object(VA["K"])(Lw,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Yw={},Gw=new cy(0,0,0,0),Qw=function(){function t(t){this.id=Object(VA["o"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var c=!1;if(i.copyTransform(e),null!=n.position){var u=Gw;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Yw,n,u):Hw(Yw,n,u),i.x=Yw.x,i.y=Yw.y,o=Yw.align,a=Yw.verticalAlign;var l=n.origin;if(l&&null!=n.rotation){var h=void 0,d=void 0;"center"===l?(h=.5*u.width,d=.5*u.height):(h=Rw(l[0],u.width),d=Rw(l[1],u.height)),c=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+d+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var f=n.offset;f&&(i.x+=f[0],i.y+=f[1],c||(i.originX=-f[0],i.originY=-f[1]));var p=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,A=void 0,v=void 0;p&&this.canBeInsideText()?(g=n.insideFill,A=n.insideStroke,null!=g&&"auto"!==g||(g=this.getInsideTextFill()),null!=A&&"auto"!==A||(A=this.getInsideTextStroke(g),v=!0)):(g=n.outsideFill,A=n.outsideStroke,null!=g&&"auto"!==g||(g=this.getOutsideFill()),null!=A&&"auto"!==A||(A=this.getOutsideStroke(g),v=!0)),g=g||"#000",g===m.fill&&A===m.stroke&&v===m.autoStroke&&o===m.align&&a===m.verticalAlign||(s=!0,m.fill=g,m.stroke=A,m.autoStroke=v,m.align=o,m.verticalAlign=a,e.setDefaultTextStyle(m)),e.__dirty|=Oy,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Aw:gw},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(vb["parse"])(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(vb["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(VA["m"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(VA["y"])(t))for(var n=t,r=Object(VA["D"])(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==zw)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Uw)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(zw,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===zw,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(VA["q"])(a,t)>=0)||!e&&1!==a.length){var c;if(this.stateProxy&&!i&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),c||i){i||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var l=this._textContent,h=this._textGuide;return l&&l.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oy),c}Object(VA["E"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var c=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(c,t)),u||(u=this.states[c]),u&&r.push(u)}var l=r[o-1],h=!!(l&&l.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,m=this._textGuide;p&&p.useStates(t,e,h),m&&m.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oy)}else this.clearStates()},t.prototype.isSilent=function(){var t=this.silent,e=this.parent;while(!t&&e){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(VA["q"])(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(VA["q"])(r,t),o=Object(VA["q"])(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];Object(VA["m"])(n,i),i.textConfig&&(e=e||{},Object(VA["m"])(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=Object(VA["m"])({},r?this.textConfig:n.textConfig),Object(VA["m"])(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,u=0;u<Uw.length;u++){var l=Uw[u],h=i&&Vw[l];e&&null!=e[l]?h?(c=!0,s[l]=e[l]):this[l]=e[l]:a&&null!=n[l]&&(h?(c=!0,s[l]=n[l]):this[l]=n[l])}if(!i)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||n)[f]:e||n)}c&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new kw,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(VA["m"])(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Oy;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this;var i=new Vb(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,n=Object(VA["q"])(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){Ww(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Ww(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Ww(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Oy;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){if(!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Ww(t,e,n,r,i){n=n||{};var o=[];Zw(t,"",t,e,n,r,o,i);var a=o.length,s=!1,c=n.done,u=n.aborted,l=function(){s=!0,a--,a<=0&&(s?c&&c():u&&u())},h=function(){a--,a<=0&&(s?c&&c():u&&u())};a||c&&c(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d<o.length;d++){var f=o[d];l&&f.done(l),h&&f.aborted(h),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function Kw(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function qw(t){return Object(VA["t"])(t[0])}function Xw(t,e,n){if(Object(VA["t"])(e[n]))if(Object(VA["t"])(t[n])||(t[n]=[]),Object(VA["C"])(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Kw(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(qw(i))for(var s=i[0].length,c=0;c<a;c++)o[c]?Kw(o[c],i[c],s):o[c]=Array.prototype.slice.call(i[c]);else Kw(o,i,a);o.length=i.length}else t[n]=e[n]}function $w(t,e){return t===e||Object(VA["t"])(t)&&Object(VA["t"])(e)&&Jw(t,e)}function Jw(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Zw(t,e,n,r,i,o,a,s){for(var c=Object(VA["D"])(r),u=i.duration,l=i.delay,h=i.additive,d=i.setToFinal,f=!Object(VA["y"])(o),p=t.animators,m=[],g=0;g<c.length;g++){var A=c[g],v=r[A];if(null!=v&&null!=n[A]&&(f||o[A]))if(!Object(VA["y"])(v)||Object(VA["t"])(v)||Object(VA["v"])(v))m.push(A);else{if(e){s||(n[A]=v,t.updateDuringAnimation(e));continue}Zw(t,A,n[A],v,i,o&&o[A],a,s)}else s||(n[A]=v,t.updateDuringAnimation(e),m.push(A))}var y=m.length;if(!h&&y)for(var b=0;b<p.length;b++){var w=p[b];if(w.targetName===e){var _=w.stopTracks(m);if(_){var x=Object(VA["q"])(p,w);p.splice(x,1)}}}if(i.force||(m=Object(VA["n"])(m,(function(t){return!$w(r[t],n[t])})),y=m.length),y>0||i.force&&!a.length){var S=void 0,C=void 0,M=void 0;if(s){C={},d&&(S={});for(b=0;b<y;b++){A=m[b];C[A]=n[A],d?S[A]=r[A]:n[A]=r[A]}}else if(d){M={};for(b=0;b<y;b++){A=m[b];M[A]=Tb(n[A]),Xw(n,r,A)}}w=new Vb(n,!1,!1,h?Object(VA["n"])(p,(function(t){return t.targetName===e})):null);w.targetName=e,i.scope&&(w.scope=i.scope),d&&S&&w.whenWithKeys(0,S,m),M&&w.whenWithKeys(0,M,m),w.whenWithKeys(null==u?500:u,s?C:r,m).delay(l||0),t.addAnimator(w,e),a.push(w)}}Object(VA["H"])(Qw,mv),Object(VA["H"])(Qw,kw);var t_=Qw,e_=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return GA(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=VA["q"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=VA["q"](n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new cy(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),c=a.getLocalTransform(r);c?(cy.applyTransform(e,s,c),i=i||e.clone(),i.union(e)):(i=i||s.clone(),i.union(s))}}return i||e},e}(t_);e_.prototype.type="group";var n_=e_,r_={},i_={};
|
|
944
|
+
e["default"]=r["a"].defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})},f97d:function(t,e){var n={"":!0,up:!0};function r(t){if("string"!==typeof t)return!1;var e=n[t.toLowerCase()];return!!e&&t.toLowerCase()}function i(t){return"number"===typeof t&&t>=0&&t<=100}function o(){var t=100,e=3,n=0,o=100,a=0,s=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!i(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!i(t))throw new Error("RegionAnchorX must be between 0 and 100.");o=t}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!i(t))throw new Error("RegionAnchorY must be between 0 and 100.");n=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!i(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(t){if(!i(t))throw new Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return c},set:function(t){var e=r(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");c=e}}})}t.exports=o},f9ae:function(t,e,n){"use strict";var r=n("0f7c"),i=n("0d25"),o=n("926d"),a=n("3b6a");t.exports=function(t){if(t.length<1||"function"!==typeof t[0])throw new i("a function is required");return a(r,o,t)}},f9b6:function(t,e,n){"use strict";e.__esModule=!0;var r=n("f1ef"),i=s(r),o=n("1712"),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,c=(0,a.default)(t);!(r=(s=c.next()).done);r=!0)if(n.push(s.value),e&&n.length===e)break}catch(u){i=!0,o=u}finally{try{!r&&c["return"]&&c["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,i.default)(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},f9c8:function(t,e,n){"use strict";n("6e04")},fa21:function(t,e,n){var r=n("7530"),i=n("2dcb"),o=n("eac5");function a(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}t.exports=a},fa35:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));class r{constructor(t=[],e=i){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(t){this.data.push(t),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:e,compare:n}=this,r=e[t];while(t>0){const i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r}_down(t){const{data:e,compare:n}=this,r=this.length>>1,i=e[t];while(t<r){let r=1+(t<<1),o=e[r];const a=r+1;if(a<this.length&&n(e[a],o)<0&&(r=a,o=e[a]),n(o,i)>=0)break;e[t]=o,t=r}e[t]=i}}function i(t,e){return t<e?-1:t>e?1:0}},fa58:function(t,e,n){var r=n("c502"),i=n("a7a4"),o=n("2754"),a="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;function u(t){return null==t?void 0===t?s:a:c&&c in Object(t)?i(t):o(t)}t.exports=u},fa61:function(t,e,n){var r=n("a9c9"),i=n("1383"),o=n("ff9f"),a=n("fddf"),s=n("64fe"),c="prototype",u=function(t,e,n){var l,h,d,f=t&u.F,p=t&u.G,m=t&u.S,g=t&u.P,A=t&u.B,v=t&u.W,y=p?i:i[e]||(i[e]={}),b=y[c],w=p?r:m?r[e]:(r[e]||{})[c];for(l in p&&(n=e),n)h=!f&&w&&void 0!==w[l],h&&s(y,l)||(d=h?w[l]:n[l],y[l]=p&&"function"!=typeof w[l]?n[l]:A&&h?o(d,r):v&&w[l]==d?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[c]=t[c],e}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((y.virtual||(y.virtual={}))[l]=d,t&u.R&&b&&!b[l]&&a(b,l,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},fa66:function(t,e,n){},faec:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){i=!0,o=c}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("9fd3"),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(){var t="[^=]*",e='"[^"]*"|[^,]*',n="(?:"+t+")=(?:"+e+")";return new RegExp("(?:^|,)("+n+")")},d=function(t){var e=t.split(h()),n={},r=e.length,i=void 0;while(r--)""!==e[r]&&(i=/([^=]*)=(.*)/.exec(e[r]).slice(1),i[0]=i[0].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^['"](.*)['"]$/g,"$1"),n[i[0]]=i[1]);return n},f=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this))}return l(e,t),i(e,[{key:"push",value:function(t){var e=void 0,n=void 0;if(t=t.replace(/^[\u0000\s]+|[\u0000\s]+$/g,""),0!==t.length)if("#"===t[0])if(0===t.indexOf("#EXT"))if(t=t.replace("\r",""),e=/^#EXTM3U/.exec(t),e)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(e=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(t),e)return n={type:"tag",tagType:"inf"},e[1]&&(n.duration=parseFloat(e[1])),e[2]&&(n.title=e[2]),void this.trigger("data",n);if(e=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"targetduration"},e[1]&&(n.duration=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"totalduration"},e[1]&&(n.duration=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"version"},e[1]&&(n.version=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"media-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"discontinuity-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(t),e)return n={type:"tag",tagType:"playlist-type"},e[1]&&(n.playlistType=e[1]),void this.trigger("data",n);if(e=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(t),e)return n={type:"tag",tagType:"byterange"},e[1]&&(n.length=parseInt(e[1],10)),e[2]&&(n.offset=parseInt(e[2],10)),void this.trigger("data",n);if(e=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(t),e)return n={type:"tag",tagType:"allow-cache"},e[1]&&(n.allowed=!/NO/.test(e[1])),void this.trigger("data",n);if(e=/^#EXT-X-MAP:?(.*)$/.exec(t),e){if(n={type:"tag",tagType:"map"},e[1]){var i=d(e[1]);if(i.URI&&(n.uri=i.URI),i.BYTERANGE){var o=i.BYTERANGE.split("@"),a=r(o,2),s=a[0],c=a[1];n.byterange={},s&&(n.byterange.length=parseInt(s,10)),c&&(n.byterange.offset=parseInt(c,10))}}this.trigger("data",n)}else if(e=/^#EXT-X-STREAM-INF:?(.*)$/.exec(t),e){if(n={type:"tag",tagType:"stream-inf"},e[1]){if(n.attributes=d(e[1]),n.attributes.RESOLUTION){var u=n.attributes.RESOLUTION.split("x"),l={};u[0]&&(l.width=parseInt(u[0],10)),u[1]&&(l.height=parseInt(u[1],10)),n.attributes.RESOLUTION=l}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}this.trigger("data",n)}else{if(e=/^#EXT-X-MEDIA:?(.*)$/.exec(t),e)return n={type:"tag",tagType:"media"},e[1]&&(n.attributes=d(e[1])),void this.trigger("data",n);if(e=/^#EXT-X-ENDLIST/.exec(t),e)this.trigger("data",{type:"tag",tagType:"endlist"});else if(e=/^#EXT-X-DISCONTINUITY/.exec(t),e)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(e=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(t),e)return n={type:"tag",tagType:"program-date-time"},e[1]&&(n.dateTimeString=e[1],n.dateTimeObject=new Date(e[1])),void this.trigger("data",n);if(e=/^#EXT-X-KEY:?(.*)$/.exec(t),e)return n={type:"tag",tagType:"key"},e[1]&&(n.attributes=d(e[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void this.trigger("data",n);if(e=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(t),e)return n={type:"tag",tagType:"cue-out-cont"},e[1]?n.data=e[1]:n.data="",void this.trigger("data",n);if(e=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(t),e)return n={type:"tag",tagType:"cue-out"},e[1]?n.data=e[1]:n.data="",void this.trigger("data",n);if(e=/^#EXT-X-CUE-IN:?(.*)?$/.exec(t),e)return n={type:"tag",tagType:"cue-in"},e[1]?n.data=e[1]:n.data="",void this.trigger("data",n);this.trigger("data",{type:"tag",data:t.slice(4)})}}}else this.trigger("data",{type:"comment",text:t.slice(1)});else this.trigger("data",{type:"uri",uri:t})}}]),e}(a["default"]);e["default"]=f},faf5:function(t,e,n){t.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}))},fb15:function(t,e,n){"use strict";n.r(e),n.d(e,"MapgisWebScene",(function(){return He})),n.d(e,"Mapgis3dViewpointManager",(function(){return un})),n.d(e,"Mapgis3dStatebar",(function(){return _n})),n.d(e,"Mapgis3dLink",(function(){return Bn})),n.d(e,"Mapgis3dDraw",(function(){return Rn})),n.d(e,"Mapgis3dMeasure",(function(){return Cr})),n.d(e,"Mapgis3dCompare",(function(){return zr})),n.d(e,"Mapgis3dArcgisLegend",(function(){return Wr})),n.d(e,"Mapgis3dTable",(function(){return si})),n.d(e,"Mapgis3dLocate",(function(){return Ai})),n.d(e,"Mapgis3dDebug",(function(){return xi})),n.d(e,"Mapgis3dOutputImage",(function(){return Ii})),n.d(e,"Mapgis3dRotate",(function(){return Yi})),n.d(e,"Mapgis3dImageryLayer",(function(){return ao})),n.d(e,"Mapgis3dIgsDocLayer",(function(){return wo})),n.d(e,"Mapgis3dIgsTileLayer",(function(){return Lo})),n.d(e,"Mapgis3dRasterLayer",(function(){return Wo})),n.d(e,"Mapgis3dRasterTileLayer",(function(){return oa})),n.d(e,"Mapgis3dOgcWfsLayer",(function(){return Aa})),n.d(e,"Mapgis3dOgcWmtsLayer",(function(){return Sa})),n.d(e,"Mapgis3dOgcWmsLayer",(function(){return Ea})),n.d(e,"Mapgis3dOgcReveserWmsLayer",(function(){return Na})),n.d(e,"Mapgis3dIgsDynamicLayer",(function(){return Ua})),n.d(e,"Mapgis3dIgsVectorLayer",(function(){return Ka})),n.d(e,"Mapgis3dIgsFeatureLayer",(function(){return sc})),n.d(e,"Mapgis3dArcgisTileLayer",(function(){return fc})),n.d(e,"Mapgis3dArcgisMapLayer",(function(){return Lc})),n.d(e,"Mapgis3dGraphicSingleLayer",(function(){return nl})),n.d(e,"Mapgis3dGraphicLayer",(function(){return ul})),n.d(e,"Mapgis3dGraphicLayerService",(function(){return Ic})),n.d(e,"Mapgis3dWebTileLayer",(function(){return wl})),n.d(e,"Mapgis3dGeojsonLayer",(function(){return Ol})),n.d(e,"Mapgis3dKmlLayer",(function(){return zl})),n.d(e,"Mapgis3dCzmlLayer",(function(){return $l})),n.d(e,"Mapgis3dVectortileLayer",(function(){return Ah})),n.d(e,"Mapgis3dFileM3d",(function(){return Fh})),n.d(e,"Mapgis3dSceneLayer",(function(){return fp})),n.d(e,"Mapgis3dM3dLayer",(function(){return Wp})),n.d(e,"Mapgis3dTileset",(function(){return sm})),n.d(e,"Mapgis3dVirtualPopup",(function(){return zs})),n.d(e,"Mapgis3dPopup",(function(){return Ts})),n.d(e,"Mapgis3dFeaturePopup",(function(){return hm})),n.d(e,"Mapgis3dMonitorPointPopup",(function(){return Gg})),n.d(e,"Mapgis3dInsarPointPopup",(function(){return $g})),n.d(e,"Mapgis3dPopupIot",(function(){return pA})),n.d(e,"Mapgis3dRelationshipGraph",(function(){return CK})),n.d(e,"Mapgis3dPopupFeatureDetail",(function(){return RK})),n.d(e,"Mapgis3dMarker",(function(){return XK})),n.d(e,"Mapgis3dMarkerPro",(function(){return nq})),n.d(e,"Mapgis3dMarkerSetPro",(function(){return pq})),n.d(e,"Mapgis3dDynamicMarkerLayer",(function(){return Pq})),n.d(e,"Mapgis3dMapvLayer",(function(){return NX})),n.d(e,"Mapgis3dCusterLayer",(function(){return QX})),n.d(e,"Mapgis3dEchartsLayer",(function(){return Jet})),n.d(e,"Mapgis3dCesiumHeaterLayer",(function(){return bnt})),n.d(e,"Mapgis3dMapvHeaterLayer",(function(){return Nnt})),n.d(e,"Mapgis3dGraphThemeLayer",(function(){return Jnt})),n.d(e,"Mapgis3dThemeLayerCustom",(function(){return Hot})),n.d(e,"Mapgis3dM3dSubsectionLayer",(function(){return eat})),n.d(e,"Mapgis3dIgsTerrain",(function(){return fat})),n.d(e,"Mapgis3dTerrainProvider",(function(){return Cat})),n.d(e,"Mapgis3dVoxelLayer",(function(){return Bp})),n.d(e,"Mapgis3dGeojsonDatasource",(function(){return Hat})),n.d(e,"Mapgis3dCzmlDatasource",(function(){return hst})),n.d(e,"Mapgis3dViewshed",(function(){return Mst})),n.d(e,"Mapgis3dSightline",(function(){return zst})),n.d(e,"Mapgis3dSkyline",(function(){return act})),n.d(e,"Mapgis3dModelFlatten",(function(){return fct})),n.d(e,"Mapgis3dHeightlimited",(function(){return xct})),n.d(e,"Mapgis3dShadow",(function(){return Wct})),n.d(e,"Mapgis3dDynamicCutting",(function(){return Zct})),n.d(e,"Mapgis3dDynamicSection",(function(){return mut})),n.d(e,"Mapgis3dFill",(function(){return wut})),n.d(e,"Mapgis3dAspect",(function(){return Nut})),n.d(e,"Mapgis3dSlope",(function(){return $ut})),n.d(e,"Mapgis3dAspectSlope",(function(){return rlt})),n.d(e,"Mapgis3dContour",(function(){return vlt})),n.d(e,"Mapgis3dCutFill",(function(){return Blt})),n.d(e,"Mapgis3dProfile",(function(){return Klt})),n.d(e,"Mapgis3dParticleEffectsManager",(function(){return uht})),n.d(e,"Mapgis3dFlood",(function(){return Lht})),n.d(e,"Mapgis3dBufferAnalysis",(function(){return Fht})),n.d(e,"Mapgis3dModelBufferAnalysis",(function(){return Jht})),n.d(e,"Mapgis3dOverlayAanalysis",(function(){return adt})),n.d(e,"Mapgis3dModelOverlayAnalysis",(function(){return gdt})),n.d(e,"Mapgis3dStratifiedHousehold",(function(){return Tdt})),n.d(e,"Mapgis3dProjectorManger",(function(){return bft})),n.d(e,"Mapgis3dProjectorSetting",(function(){return Dft})),n.d(e,"Mapgis3dBimComponent",(function(){return zft})),n.d(e,"Mapgis3dExplosionAnalysis",(function(){return Svt})),n.d(e,"Mapgis3dTerrainExcavate",(function(){return Gvt})),n.d(e,"Mapgis3dComponentMix",(function(){return Jvt})),n.d(e,"Mapgis3dComponentLegend",(function(){return lyt})),n.d(e,"Mapgis3dSceneSetting",(function(){return pbt})),n.d(e,"Mapgis3dSceneRoaming",(function(){return ywt})),n.d(e,"Mapgis3dPathRoaming",(function(){return Vbt})),n.d(e,"Mapgis3DComprehensiveQuery",(function(){return Dwt})),n.d(e,"Mapgis3DDataFlow",(function(){return Xwt})),n.d(e,"Mapgis3DTack",(function(){return i_t})),n.d(e,"Mapgis3DPlottingLayer",(function(){return U_t})),n.d(e,"Mapgis3DMapStory",(function(){return HIt})),n.d(e,"Mapgis3DPreviewMapStory",(function(){return QIt})),n.d(e,"Mapgis3dCityGrow",(function(){return iDt})),n.d(e,"Mapgis3dCityGrowOptions",(function(){return gDt})),n.d(e,"Mapgis3dPondingSimulation",(function(){return _Dt})),n.d(e,"Mapgis3dPondingSimulationTimeline",(function(){return TDt})),n.d(e,"Mapgis3dBuildingGlow",(function(){return IDt})),n.d(e,"Mapgis3dWind",(function(){return JDt})),n.d(e,"Mapgis3DPlot",(function(){return mNt})),n.d(e,"Mapgis3DPlotLink",(function(){return _Nt})),n.d(e,"Mapgis3DPlotLayer",(function(){return PNt})),n.d(e,"Mapgis3DPlotAnimation",(function(){return UNt}));var r={};n.r(r),n.d(r,"default",(function(){return au}));var i={};n.r(i),n.d(i,"init",(function(){return u_})),n.d(i,"dispose",(function(){return l_})),n.d(i,"disposeAll",(function(){return h_})),n.d(i,"getInstance",(function(){return d_})),n.d(i,"registerPainter",(function(){return f_})),n.d(i,"getElementSSRData",(function(){return p_})),n.d(i,"registerSSRDataGetter",(function(){return m_})),n.d(i,"version",(function(){return g_}));var o={};n.r(o),n.d(o,"updateProps",(function(){return vL})),n.d(o,"initProps",(function(){return yL})),n.d(o,"removeElement",(function(){return wL})),n.d(o,"removeElementWithFadeOut",(function(){return xL})),n.d(o,"isElementRemoved",(function(){return bL})),n.d(o,"extendShape",(function(){return cI})),n.d(o,"extendPath",(function(){return lI})),n.d(o,"registerShape",(function(){return hI})),n.d(o,"getShapeClass",(function(){return dI})),n.d(o,"makePath",(function(){return fI})),n.d(o,"makeImage",(function(){return pI})),n.d(o,"mergePath",(function(){return gI})),n.d(o,"resizePath",(function(){return AI})),n.d(o,"subPixelOptimizeLine",(function(){return vI})),n.d(o,"subPixelOptimizeRect",(function(){return yI})),n.d(o,"subPixelOptimize",(function(){return bI})),n.d(o,"getTransform",(function(){return wI})),n.d(o,"applyTransform",(function(){return _I})),n.d(o,"transformDirection",(function(){return xI})),n.d(o,"groupTransition",(function(){return MI})),n.d(o,"clipPointsByRect",(function(){return LI})),n.d(o,"clipRectByRect",(function(){return TI})),n.d(o,"createIcon",(function(){return kI})),n.d(o,"linePolygonIntersect",(function(){return EI})),n.d(o,"lineLineIntersect",(function(){return OI})),n.d(o,"setTooltipConfig",(function(){return II})),n.d(o,"traverseElements",(function(){return NI})),n.d(o,"Group",(function(){return n_})),n.d(o,"Image",(function(){return PC})),n.d(o,"Text",(function(){return oM})),n.d(o,"Circle",(function(){return $P})),n.d(o,"Ellipse",(function(){return tB})),n.d(o,"Sector",(function(){return vB})),n.d(o,"Ring",(function(){return wB})),n.d(o,"Polygon",(function(){return MB})),n.d(o,"Polyline",(function(){return kB})),n.d(o,"Rect",(function(){return zC})),n.d(o,"Line",(function(){return BB})),n.d(o,"BezierCurve",(function(){return jB})),n.d(o,"Arc",(function(){return zB})),n.d(o,"IncrementalDisplayable",(function(){return iI})),n.d(o,"CompoundPath",(function(){return VB})),n.d(o,"LinearGradient",(function(){return WB})),n.d(o,"RadialGradient",(function(){return qB})),n.d(o,"BoundingRect",(function(){return cy})),n.d(o,"OrientedBoundingRect",(function(){return eI})),n.d(o,"Point",(function(){return Jv})),n.d(o,"Path",(function(){return SC}));var a={};n.r(a),n.d(a,"createList",(function(){return qX})),n.d(a,"getLayoutRect",(function(){return lk})),n.d(a,"createDimensions",(function(){return lz})),n.d(a,"dataStack",(function(){return XX})),n.d(a,"createSymbol",(function(){return nN})),n.d(a,"createScale",(function(){return $X})),n.d(a,"mixinAxisModelCommonMethods",(function(){return JX})),n.d(a,"getECData",(function(){return aM})),n.d(a,"enableHoverEmphasis",(function(){return oL})),n.d(a,"createTextStyle",(function(){return ZX}));var s={};n.r(s),n.d(s,"linearMap",(function(){return b_})),n.d(s,"round",(function(){return __})),n.d(s,"asc",(function(){return x_})),n.d(s,"getPrecision",(function(){return S_})),n.d(s,"getPrecisionSafe",(function(){return C_})),n.d(s,"getPixelPrecision",(function(){return M_})),n.d(s,"getPercentWithPrecision",(function(){return L_})),n.d(s,"MAX_SAFE_INTEGER",(function(){return E_})),n.d(s,"remRadian",(function(){return O_})),n.d(s,"isRadianAroundZero",(function(){return P_})),n.d(s,"parseDate",(function(){return I_})),n.d(s,"quantity",(function(){return D_})),n.d(s,"quantityExponent",(function(){return N_})),n.d(s,"nice",(function(){return F_})),n.d(s,"quantile",(function(){return j_})),n.d(s,"reformIntervals",(function(){return R_})),n.d(s,"isNumeric",(function(){return z_})),n.d(s,"numericToNumber",(function(){return H_}));var c={};n.r(c),n.d(c,"extendShape",(function(){return cI})),n.d(c,"extendPath",(function(){return lI})),n.d(c,"makePath",(function(){return fI})),n.d(c,"makeImage",(function(){return pI})),n.d(c,"mergePath",(function(){return gI})),n.d(c,"resizePath",(function(){return AI})),n.d(c,"createIcon",(function(){return kI})),n.d(c,"updateProps",(function(){return vL})),n.d(c,"initProps",(function(){return yL})),n.d(c,"getTransform",(function(){return wI})),n.d(c,"clipPointsByRect",(function(){return LI})),n.d(c,"clipRectByRect",(function(){return TI})),n.d(c,"registerShape",(function(){return hI})),n.d(c,"getShapeClass",(function(){return dI})),n.d(c,"Group",(function(){return n_})),n.d(c,"Image",(function(){return PC})),n.d(c,"Text",(function(){return oM})),n.d(c,"Circle",(function(){return $P})),n.d(c,"Ellipse",(function(){return tB})),n.d(c,"Sector",(function(){return vB})),n.d(c,"Ring",(function(){return wB})),n.d(c,"Polygon",(function(){return MB})),n.d(c,"Polyline",(function(){return kB})),n.d(c,"Rect",(function(){return zC})),n.d(c,"Line",(function(){return BB})),n.d(c,"BezierCurve",(function(){return jB})),n.d(c,"Arc",(function(){return zB})),n.d(c,"IncrementalDisplayable",(function(){return iI})),n.d(c,"CompoundPath",(function(){return VB})),n.d(c,"LinearGradient",(function(){return WB})),n.d(c,"RadialGradient",(function(){return qB})),n.d(c,"BoundingRect",(function(){return cy}));var u={};n.r(u),n.d(u,"addCommas",(function(){return qT})),n.d(u,"toCamelCase",(function(){return XT})),n.d(u,"normalizeCssArray",(function(){return $T})),n.d(u,"encodeHTML",(function(){return Mv})),n.d(u,"formatTpl",(function(){return tk})),n.d(u,"getTooltipMarker",(function(){return ek})),n.d(u,"formatTime",(function(){return nk})),n.d(u,"capitalFirst",(function(){return rk})),n.d(u,"truncateText",(function(){return Wx})),n.d(u,"getTextRect",(function(){return m$}));var l={};n.r(l),n.d(l,"map",(function(){return VA["F"]})),n.d(l,"each",(function(){return VA["k"]})),n.d(l,"indexOf",(function(){return VA["q"]})),n.d(l,"inherits",(function(){return VA["r"]})),n.d(l,"reduce",(function(){return VA["K"]})),n.d(l,"filter",(function(){return VA["n"]})),n.d(l,"bind",(function(){return VA["c"]})),n.d(l,"curry",(function(){return VA["h"]})),n.d(l,"isArray",(function(){return VA["s"]})),n.d(l,"isString",(function(){return VA["A"]})),n.d(l,"isObject",(function(){return VA["y"]})),n.d(l,"isFunction",(function(){return VA["u"]})),n.d(l,"extend",(function(){return VA["m"]})),n.d(l,"defaults",(function(){return VA["i"]})),n.d(l,"clone",(function(){return VA["d"]})),n.d(l,"merge",(function(){return VA["G"]}));var h,d={};(n.r(d),n.d(d,"MapgisWebScene",(function(){return He})),n.d(d,"Mapgis3dViewpointManager",(function(){return un})),n.d(d,"Mapgis3dStatebar",(function(){return _n})),n.d(d,"Mapgis3dLink",(function(){return Bn})),n.d(d,"Mapgis3dDraw",(function(){return Rn})),n.d(d,"Mapgis3dMeasure",(function(){return Cr})),n.d(d,"Mapgis3dCompare",(function(){return zr})),n.d(d,"Mapgis3dArcgisLegend",(function(){return Wr})),n.d(d,"Mapgis3dTable",(function(){return si})),n.d(d,"Mapgis3dLocate",(function(){return Ai})),n.d(d,"Mapgis3dDebug",(function(){return xi})),n.d(d,"Mapgis3dOutputImage",(function(){return Ii})),n.d(d,"Mapgis3dRotate",(function(){return Yi})),n.d(d,"Mapgis3dImageryLayer",(function(){return ao})),n.d(d,"Mapgis3dIgsDocLayer",(function(){return wo})),n.d(d,"Mapgis3dIgsTileLayer",(function(){return Lo})),n.d(d,"Mapgis3dRasterLayer",(function(){return Wo})),n.d(d,"Mapgis3dRasterTileLayer",(function(){return oa})),n.d(d,"Mapgis3dOgcWfsLayer",(function(){return Aa})),n.d(d,"Mapgis3dOgcWmtsLayer",(function(){return Sa})),n.d(d,"Mapgis3dOgcWmsLayer",(function(){return Ea})),n.d(d,"Mapgis3dOgcReveserWmsLayer",(function(){return Na})),n.d(d,"Mapgis3dIgsDynamicLayer",(function(){return Ua})),n.d(d,"Mapgis3dIgsVectorLayer",(function(){return Ka})),n.d(d,"Mapgis3dIgsFeatureLayer",(function(){return sc})),n.d(d,"Mapgis3dArcgisTileLayer",(function(){return fc})),n.d(d,"Mapgis3dArcgisMapLayer",(function(){return Lc})),n.d(d,"Mapgis3dGraphicSingleLayer",(function(){return nl})),n.d(d,"Mapgis3dGraphicLayer",(function(){return ul})),n.d(d,"Mapgis3dGraphicLayerService",(function(){return Ic})),n.d(d,"Mapgis3dWebTileLayer",(function(){return wl})),n.d(d,"Mapgis3dGeojsonLayer",(function(){return Ol})),n.d(d,"Mapgis3dKmlLayer",(function(){return zl})),n.d(d,"Mapgis3dCzmlLayer",(function(){return $l})),n.d(d,"Mapgis3dVectortileLayer",(function(){return Ah})),n.d(d,"Mapgis3dFileM3d",(function(){return Fh})),n.d(d,"Mapgis3dSceneLayer",(function(){return fp})),n.d(d,"Mapgis3dM3dLayer",(function(){return Wp})),n.d(d,"Mapgis3dTileset",(function(){return sm})),n.d(d,"Mapgis3dVirtualPopup",(function(){return zs})),n.d(d,"Mapgis3dPopup",(function(){return Ts})),n.d(d,"Mapgis3dFeaturePopup",(function(){return hm})),n.d(d,"Mapgis3dMonitorPointPopup",(function(){return Gg})),n.d(d,"Mapgis3dInsarPointPopup",(function(){return $g})),n.d(d,"Mapgis3dPopupIot",(function(){return pA})),n.d(d,"Mapgis3dRelationshipGraph",(function(){return CK})),n.d(d,"Mapgis3dPopupFeatureDetail",(function(){return RK})),n.d(d,"Mapgis3dMarker",(function(){return XK})),n.d(d,"Mapgis3dMarkerPro",(function(){return nq})),n.d(d,"Mapgis3dMarkerSetPro",(function(){return pq})),n.d(d,"Mapgis3dDynamicMarkerLayer",(function(){return Pq})),n.d(d,"Mapgis3dMapvLayer",(function(){return NX})),n.d(d,"Mapgis3dCusterLayer",(function(){return QX})),n.d(d,"Mapgis3dEchartsLayer",(function(){return Jet})),n.d(d,"Mapgis3dCesiumHeaterLayer",(function(){return bnt})),n.d(d,"Mapgis3dMapvHeaterLayer",(function(){return Nnt})),n.d(d,"Mapgis3dGraphThemeLayer",(function(){return Jnt})),n.d(d,"Mapgis3dThemeLayerCustom",(function(){return Hot})),n.d(d,"Mapgis3dM3dSubsectionLayer",(function(){return eat})),n.d(d,"Mapgis3dIgsTerrain",(function(){return fat})),n.d(d,"Mapgis3dTerrainProvider",(function(){return Cat})),n.d(d,"Mapgis3dVoxelLayer",(function(){return Bp})),n.d(d,"Mapgis3dGeojsonDatasource",(function(){return Hat})),n.d(d,"Mapgis3dCzmlDatasource",(function(){return hst})),n.d(d,"Mapgis3dViewshed",(function(){return Mst})),n.d(d,"Mapgis3dSightline",(function(){return zst})),n.d(d,"Mapgis3dSkyline",(function(){return act})),n.d(d,"Mapgis3dModelFlatten",(function(){return fct})),n.d(d,"Mapgis3dHeightlimited",(function(){return xct})),n.d(d,"Mapgis3dShadow",(function(){return Wct})),n.d(d,"Mapgis3dDynamicCutting",(function(){return Zct})),n.d(d,"Mapgis3dDynamicSection",(function(){return mut})),n.d(d,"Mapgis3dFill",(function(){return wut})),n.d(d,"Mapgis3dAspect",(function(){return Nut})),n.d(d,"Mapgis3dSlope",(function(){return $ut})),n.d(d,"Mapgis3dAspectSlope",(function(){return rlt})),n.d(d,"Mapgis3dContour",(function(){return vlt})),n.d(d,"Mapgis3dCutFill",(function(){return Blt})),n.d(d,"Mapgis3dProfile",(function(){return Klt})),n.d(d,"Mapgis3dParticleEffectsManager",(function(){return uht})),n.d(d,"Mapgis3dFlood",(function(){return Lht})),n.d(d,"Mapgis3dBufferAnalysis",(function(){return Fht})),n.d(d,"Mapgis3dModelBufferAnalysis",(function(){return Jht})),n.d(d,"Mapgis3dOverlayAanalysis",(function(){return adt})),n.d(d,"Mapgis3dModelOverlayAnalysis",(function(){return gdt})),n.d(d,"Mapgis3dStratifiedHousehold",(function(){return Tdt})),n.d(d,"Mapgis3dProjectorManger",(function(){return bft})),n.d(d,"Mapgis3dProjectorSetting",(function(){return Dft})),n.d(d,"Mapgis3dBimComponent",(function(){return zft})),n.d(d,"Mapgis3dExplosionAnalysis",(function(){return Svt})),n.d(d,"Mapgis3dTerrainExcavate",(function(){return Gvt})),n.d(d,"Mapgis3dComponentMix",(function(){return Jvt})),n.d(d,"Mapgis3dComponentLegend",(function(){return lyt})),n.d(d,"Mapgis3dSceneSetting",(function(){return pbt})),n.d(d,"Mapgis3dSceneRoaming",(function(){return ywt})),n.d(d,"Mapgis3dPathRoaming",(function(){return Vbt})),n.d(d,"Mapgis3DComprehensiveQuery",(function(){return Dwt})),n.d(d,"Mapgis3DDataFlow",(function(){return Xwt})),n.d(d,"Mapgis3DTack",(function(){return i_t})),n.d(d,"Mapgis3DPlottingLayer",(function(){return U_t})),n.d(d,"Mapgis3DMapStory",(function(){return HIt})),n.d(d,"Mapgis3DPreviewMapStory",(function(){return QIt})),n.d(d,"Mapgis3dCityGrow",(function(){return iDt})),n.d(d,"Mapgis3dCityGrowOptions",(function(){return gDt})),n.d(d,"Mapgis3dPondingSimulation",(function(){return _Dt})),n.d(d,"Mapgis3dPondingSimulationTimeline",(function(){return TDt})),n.d(d,"Mapgis3dBuildingGlow",(function(){return IDt})),n.d(d,"Mapgis3dWind",(function(){return JDt})),n.d(d,"Mapgis3DPlot",(function(){return mNt})),n.d(d,"Mapgis3DPlotLink",(function(){return _Nt})),n.d(d,"Mapgis3DPlotLayer",(function(){return PNt})),n.d(d,"Mapgis3DPlotAnimation",(function(){return UNt})),"undefined"!==typeof window)&&(n("f6fd"),(h=window.document.currentScript)&&(h=h.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=h[1]));var f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cesium-map-wrapper"},[t._m(0),t.initialized?t._t("default"):t._e()],2)},p=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",attrs:{id:t.container}})}],m=(n("f28b"),n("8269"));function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=w(t,"string");return"symbol"==g(e)?e:e+""}function w(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var _={methods:{$_emitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$emit(t,v({map:this.map,component:this},e))},$_emitMapEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$_emitEvent(t.type,v({cesiumEvent:t},e))}}};function x(t,e){e.camera.flyTo(t)}function S(t,e){var n,r=t.destination,i=t.orientation,o=r.x,a=r.y,s=r.z,c=i.heading,u=i.pitch,l=1;n=o>180||o<-180||a>180||a<-180?new Cesium.Cartesian3(o,a,s):new Cesium.Cartesian3.fromDegrees(o,a,s),e.camera.flyToEx({target:n,offset:new Cesium.HeadingPitchRange(c,u,l)})}function C(t){var e;if(t.includes("rgb")){var n=t.split("(")[1].split(")")[0],r=n.split(","),i=Number((Number(r[0])/255).toFixed(2)),o=Number((Number(r[1])/255).toFixed(2)),a=Number((Number(r[2])/255).toFixed(2)),s=Number(r[3]?r[3]:1);e=new Cesium.Color(i,o,a,s)}return e}function M(t){var e=L(t);if(e){var n=e.longitude,r=e.latitude,i=Math.PI,o=180*n/i,a=180*r/i,s=E(t);return{lng:o,lat:a,height:s}}return null}function L(t){var e=T(t);return e?Cesium.Ellipsoid.WGS84.cartesianToCartographic(e):null}function T(t){var e=k(t),n=e.w,r=e.h;return t.camera.pickEllipsoid(new Cesium.Cartesian2(n/2,r/2))}function k(t){var e=t.canvas;return{w:e.clientWidth,h:e.clientHeight}}function E(t){return t?t.scene.globe.ellipsoid.cartesianToCartographic(t.camera.position).height:0}function O(t){return t.scene.logarithmicDepthBuffer}function P(){return!(navigator.userAgent.indexOf("Linux")>0&&navigator.userAgent.indexOf("Firefox")>0)}function B(t,e){e.scene.logarithmicDepthBuffer=t}function I(t){return t.scene.globe.depthTestAgainstTerrain}function D(t,e){e.scene.globe.depthTestAgainstTerrain=t}function N(t){return t.scene.globe.enableLighting}function F(t,e){e.scene.globe.enableLighting=t}function j(t,e){e.scene.light=t}function R(t){return t.scene.light}function H(t,e){e.scene.globe.dynamicAtmosphereLighting=t}function z(t){return t.scene.globe.dynamicAtmosphereLighting}function U(t,e){e.scene.globe.dynamicAtmosphereLightingFromSun=t}function V(t){return t.scene.globe.dynamicAtmosphereLightingFromSun}function Y(t){return t.scene.farToNearRatio}function G(t,e){e.scene.farToNearRatio=t}function Q(t){return t.scene.globe.translucency.enabled}function W(t,e){e.scene.screenSpaceCameraController.enableCollisionDetection=!t,e.scene.globe.translucency.enabled=t}var K=n("b07a");function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}function X(t,e,n){return e=tt(e),$(t,Z()?Reflect.construct(e,n||[],tt(t).constructor):e.apply(t,n))}function $(t,e){if(e&&("object"==q(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return J(t)}function J(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Z(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Z=function(){return!!t})()}function tt(t){return tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tt(t)}function et(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nt(t,e)}function nt(t,e){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nt(t,e)}function rt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function it(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rt(Object(n),!0).forEach((function(e){ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ot(t,e,n){return(e=ut(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function at(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function st(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ut(r.key),r)}}function ct(t,e,n){return e&&st(t.prototype,e),n&&st(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ut(t){var e=lt(t,"string");return"symbol"==q(e)?e:e+""}function lt(t,e){if("object"!=q(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ht(){window.vueCesium=window.vueCesium||{}}function dt(){window.vueCesium=window.vueCesium||{},window.vueCesium.G3DManager=window.vueCesium.G3DManager||new Ot,window.vueCesium.ViewerManager=window.vueCesium.ViewerManager||new Pt,window.vueCesium.HighlightManager=window.vueCesium.HighlightManager||new Bt,window.vueCesium.RasterManager=window.vueCesium.RasterManager||new pt,window.vueCesium.GeojsonManager=window.vueCesium.GeojsonManager||new mt,window.vueCesium.KmlManager=window.vueCesium.KmlManager||new gt,window.vueCesium.CzmlManager=window.vueCesium.CzmlManager||new At,window.vueCesium.PopupManager=window.vueCesium.PopupManager||new bt,window.vueCesium.ExplosionManager=window.vueCesium.ExplosionManager||new ne,window.vueCesium.BloomEffectManager=window.vueCesium.BloomEffectManager||new re,window.vueCesium.DynamicLightLineManager=window.vueCesium.DynamicLightLineManager||new ie,window.vueCesium.SearchLightManager=window.vueCesium.SearchLightManager||new ae,window.vueCesium.IgsFeatureManager=window.vueCesium.IgsFeatureManager||new Yt,window.vueCesium.DynamicSectionAnalysisManager=window.vueCesium.DynamicSectionAnalysisManager||new Qt,window.vueCesium.HeightLimitedAnalysisManager=window.vueCesium.HeightLimitedAnalysisManager||new Ut,window.vueCesium.GlobesManager=window.vueCesium.GlobesManager||new ft,window.vueCesium.Tileset3DManager=window.vueCesium.Tileset3DManager||new ft,window.vueCesium.EntityManager=window.vueCesium.EntityManager||new vt,window.vueCesium.MarkerManager=window.vueCesium.MarkerManager||new jt,window.vueCesium.OGCWMTSManager=window.vueCesium.OGCWMTSManager||new wt,window.vueCesium.FloodAnalysisManager=window.vueCesium.FloodAnalysisManager||new Ft,window.vueCesium.OGCWMSManager=window.vueCesium.OGCWMSManager||new _t,window.vueCesium.OGCWFSManager=window.vueCesium.OGCWFSManager||new xt,window.vueCesium.DragEditManager=window.vueCesium.DragEditManager||new yt,window.vueCesium.VectorTileManager=window.vueCesium.VectorTileManager||new St,window.vueCesium.AdvancedAnalysisManager=window.vueCesium.AdvancedAnalysisManager||new Ct,window.vueCesium.DrawToolManager=window.vueCesium.DrawToolManager||new Mt,window.vueCesium.MeasureToolManager=window.vueCesium.MeasureToolManager||new Lt,window.vueCesium.EventHandlerManager=window.vueCesium.EventHandlerManager||new Tt,window.vueCesium.IgsTerrainManager=window.vueCesium.IgsTerrainManager||new kt,window.vueCesium.TerrainManager=window.vueCesium.TerrainManager||new Et,window.vueCesium.M3DIgsManager=window.vueCesium.M3DIgsManager||new Tt,window.vueCesium.ArcgisManager=window.vueCesium.ArcgisManager||new Tt,window.vueCesium.WebTileManager=window.vueCesium.WebTileManager||new Tt,window.vueCesium.IgsDocLayerManager=window.vueCesium.IgsDocLayerManager||new It,window.vueCesium.IgsTilecLayerManager=window.vueCesium.IgsTilecLayerManager||new Dt,window.vueCesium.IgsserverManager=window.vueCesium.IgsserverManager||new Tt,window.vueCesium.ExcavateAnalysisManager=window.vueCesium.ExcavateAnalysisManager||new Nt,window.vueCesium.AnalysisModelFlattenManager=window.vueCesium.AnalysisModelFlattenManager||new Rt,window.vueCesium.DynamicCuttingManager=window.vueCesium.DynamicCuttingManager||new Ht,window.vueCesium.AnalysisManager=window.vueCesium.AnalysisManager||new zt,window.vueCesium.shadowAnalysisManager=window.vueCesium.shadowAnalysisManager||new Vt,window.vueCesium.AspectAnalysisManager=window.vueCesium.AspectAnalysisManager||new Gt,window.vueCesium.SlopeAnalysisManager=window.vueCesium.SlopeAnalysisManager||new Wt,window.vueCesium.AspectAnalysisManager||new Gt,window.vueCesium.AspectSlopeAnalysisManager=window.vueCesium.AspectSlopeAnalysisManager||new he,window.vueCesium.SkyLineAnalysisManager=window.vueCesium.SkyLineAnalysisManager||new Kt,window.vueCesium.ContourAnalysisManager=window.vueCesium.ContourAnalysisManager||new qt,window.vueCesium.StratifiedHousehouldManager=window.vueCesium.StratifiedHousehouldManager||new Xt,window.vueCesium.ViewshedAnalysisManager=window.vueCesium.ViewshedAnalysisManager||new $t,window.vueCesium.VisiblityAnalysisManager=window.vueCesium.VisiblityAnalysisManager||new Jt,window.vueCesium.CutFillAnalysisManager=window.vueCesium.CutFillAnalysisManager||new Zt,window.vueCesium.ProfileAnalysisManager=window.vueCesium.ProfileAnalysisManager||new te,window.vueCesium.DataFlowManager=window.vueCesium.DataFlowManager||new ee,window.vueCesium.SettingToolManager=window.vueCesium.SettingToolManager||new oe,window.vueCesium.MapStoryManager=window.vueCesium.MapStoryManager||new se,window.vueCesium.PondingSimulationManager=window.vueCesium.PondingSimulationManager||new ce,window.vueCesium.GraphicsLayerManager=window.vueCesium.GraphicsLayerManager||new ue,window.vueCesium.BimManager=window.vueCesium.BimManager||new le,window.vueCesium.RotateManager=window.vueCesium.RotateManager||new de,window.vueCesium.PlotLayerManager=window.vueCesium.PlotLayerManager||new fe,window.vueCesium.PlotLayerGroupManager=window.vueCesium.PlotLayerGroupManager||new pe,window.vueCesium.PlotLayerData=window.vueCesium.PlotLayerData||new me,window.vueCesium.PlotManager=window.vueCesium.PlotManager||new ge,window.vueCesium.OneSymbolManager=window.vueCesium.OneSymbolManager||new Ae,window.vueCesium.PlotAnimationManager=window.vueCesium.PlotAnimationManager||new ve,window.vueCesium.PlotSymbolManager=window.vueCesium.PlotSymbolManager||new ye,window.vueCesium.M3DSubSectionManager=window.vueCesium.M3DSubSectionManager||new be,window.vueCesium.CompareManager=window.vueCesium.CompareManager||new we,window.vueCesium.WindManager=window.vueCesium.WindManager||new _e,window.vueCesium.ImageLayersTranslucencyManager=window.vueCesium.ImageLayersTranslucencyManager||new xe,window.vueCesium.getViewer=function(t){t||(t="default");var e,n=window.vueCesium.ViewerManager;return e=n[t][0].source,e},window.vueCesium.getViewerByInterval=function(t,e){e||(e="default");var n,r=window.vueCesium.ViewerManager,i=setInterval((function(){r.hasOwnProperty(e)&&r[e].length>0&&(clearInterval(i),n=r[e][0].source,t(n))}),50)}}var ft=function(){function t(e){at(this,t),this.default=[],this.vueKey=e||"default"}return ct(t,[{key:"addSource",value:function(t,e,n,r){t=t||this.vueKey,e=e||0==e?e:this.vueIndex,e="".concat(e),this[t]||(this[t]=[]);var i=this[t].find((function(t){return t&&t.key===e}));i?(i.source=n,i.options=r):this[t].push({parent:t,key:e,source:n,options:r})}},{key:"deleteSource",value:function(t,e){var n=-1;e="".concat(e),this[t]instanceof Array&&(this[t].find((function(t,r){var i=!1;return t&&t.key===e&&(n=r,i=!0),i})),n>=0&&this[t].splice(n,1))}},{key:"changeSource",value:function(t,e,n){t=t||this.vueKey,e=e||0==e?e:this.vueIndex,e="".concat(e);var r=void 0;if(!this[t])return r;var i=this[t].find((function(t,n){var r=!1;return t&&t.key===e&&(n,r=!0),r}));return n&&(i.source=n),i}},{key:"changeOptions",value:function(t,e,n,r){t=t||this.vueKey,e=e||0==e?e:this.vueIndex,e="".concat(e);var i=void 0;if(!this[t]||0==this[t].length)return i;var o=this[t].find((function(t,n){var r=!1;return t&&t.key===e&&(n,r=!0),r}));return o.options=o.options||{},o.options[n]=r,o}},{key:"findSource",value:function(t,e){t=t||this.vueKey,e=e||0==e?e:this.vueIndex,e="".concat(e);var n=-1,r=void 0;if(!this[t])return r;var i=this[t].find((function(t,r){var i=!1;return t&&t.key===e&&(n=r,i=!0),i}));return i&&(r=it(it({},i),{},{index:n})),r}},{key:"findAllSource",value:function(t){return t=t||this.vueKey,this[t]}},{key:"flatAllSource",value:function(){var t=this,e=[];return Object.keys(this).forEach((function(n){"vueKey"!==n&&(e=e.concat(t[n]))})),e}}])}(),pt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),mt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),gt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),At=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),vt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),yt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),bt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),wt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),_t=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),xt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),St=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ct=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Mt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Lt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Tt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),kt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Et=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ot=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Pt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Bt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),It=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Dt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Nt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ft=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),jt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Rt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ht=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),zt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ut=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Vt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Yt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Gt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Qt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Wt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Kt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),qt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Xt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),$t=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Jt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Zt=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),te=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ee=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ne=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),re=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ie=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),oe=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ae=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),se=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ce=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ue=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),le=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),he=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),de=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),fe=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),pe=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),me=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ge=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Ae=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ve=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),ye=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),be=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),we=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),_e=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),xe=function(t){function e(){return at(this,e),X(this,e,arguments)}return et(e,t),ct(e)}(ft),Se={vueKey:{typs:String,default:"default"},vueIndex:{typs:[String,Number],default:function(){return(1e6*Math.random()).toFixed(0)}},container:{type:[String,HTMLElement],default:function(){return"cesium-".concat((""+Math.random()).split(".")[1])}},shouldAnimate:{type:Boolean,default:!0},homeButton:{type:Boolean,default:!1},navigationHelpButton:{type:Boolean,default:!1},sceneModePicker:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},baseLayerPicker:{type:Boolean,default:!1},fullscreenButton:{type:Boolean,default:!1},vrButton:{type:Boolean,default:!1},geocoder:{type:Boolean,default:!1},sceneMode:{type:Number},timeline:{type:Boolean,default:!1},contextOptions:{type:Object,default:function(){return{webgl:{preserveDrawingBuffer:!0}}}},cameraView:{type:Object,default:function(){return{}}},minZoom:{type:Number,default:void 0},maxZoom:{type:Number,default:void 0}},Ce=n("b047"),Me=n.n(Ce);function Le(t){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(t)}function Te(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Te=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Le(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Le(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function ke(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Ee(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ke(o,r,i,a,s,"next",t)}function s(t){ke(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Oe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oe(Object(n),!0).forEach((function(e){Be(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Be(t,e,n){return(e=Ie(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ie(t){var e=De(t,"string");return"symbol"==Le(e)?e:e+""}function De(t,e){if("object"!=Le(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ne={name:"mapgis-web-scene",mixins:[_,m["a"]],props:Pe({libPath:{type:String},pluginPath:{type:String},height:{type:Number},netCDFPath:{type:String,default:"/netcdf/netcdfjs.min.js"}},Se),provide:function(){var t=this;return{get Cesium(){return t.Cesium},get vueCesium(){return t.vueCesium},get viewer(){return t.viewer}}},data:function(){return{initialized:!1}},watch:{height:{handler:function(){var t=this;window.vueCesium.getViewerByInterval((function(e){t.$nextTick((function(){e.container.style.height=this.height+"px"}))}),this.vueKey)}}},methods:{loadScript:function(){var t=Ee(Te().mark((function t(){return Te().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$_loadScript();case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),flyTo:function(t){x(t,this.viewer)},flyToEx:function(t){S(t,this.viewer)},getScaleOneZoom:function(){for(var t=295829355.45,e=1,n=1;n<30;n++)t/=2,t<2&&t>=1&&(e=n);return e},resetCameraPos:function(){if(void 0!==this.minZoom&&void 0!==this.maxZoom){var t=this.viewer,e=this.Cesium,n=this;this.cameraChangedListener&&t.camera.changed.removeEventListener(this.cameraChangedListener);var r=new e.Cartesian3,i=t.camera,o=i.position,a=i.heading,s=i.pitch,c=i.roll;e.Cartesian3.clone(o,r),this.preCameraPos={position:o,heading:a,pitch:s,roll:c},this.scaleOneZoom=this.getScaleOneZoom(),this.cameraChangedListener=t.camera.changed.addEventListener(Me()((function(r){var i=t.scene.globe.show,o=t.scene.screenSpaceCameraController.enableCollisionDetection;if(i&&o&&!(n.maxZoom>=n.scaleOneZoom)){var a=n.getCurrentZoom();if(!(a<1))if(a>n.maxZoom||a<n.minZoom){var s=n.preCameraPos,c=s.position,u=s.heading,l=s.pitch,h=s.roll;t.camera.setView({destination:c,orientation:{heading:u,pitch:l,roll:h}});var d=a>n.maxZoom?"地图最大显示级数".concat(n.maxZoom):"地图最小显示级数".concat(n.minZoom);n.$message.warning("当前视图的显示级数已超出您设置的".concat(d))}else{var f=new e.Cartesian3,p=t.camera,m=p.position,g=p.heading,A=p.pitch,v=p.roll;e.Cartesian3.clone(m,f),n.preCameraPos={position:f,heading:g,pitch:A,roll:v}}}}),100,{leading:!0}))}},getCurrentZoom:function(){var t={xmin:-180,ymax:90,xmax:180,ymin:-90,height:0},e=this.viewer,n=this.Cesium,r=e.camera.computeViewRectangle();if("undefined"===typeof r){var i=function(t,e,r){var i=t.camera,o=t.scene,a=new n.Cartesian2(e,r);if(!a)return 0;var s=o.globe.ellipsoid,c=i.pickEllipsoid(a,s);if(!c)return 0;var u=o.globe.ellipsoid.cartesianToCartographic(c),l=n.Math.toDegrees(u.longitude),h=n.Math.toDegrees(u.latitude);return{lon:l,lat:h}},o=e.scene.canvas,a=i(e,0,0),s=i(e,o.clientWidth,o.clientHeight);t.xmin=a.lon,t.ymin=s.lat,t.xmax=s.lon,t.ymax=a.lat}else t.xmin=n.Math.toDegrees(r.west),t.ymin=n.Math.toDegrees(r.south),t.xmax=n.Math.toDegrees(r.east),t.ymax=n.Math.toDegrees(r.north);var c=t.xmin,u=t.ymin,l=t.xmax,h=t.ymax,d={lng:(c+l)/2,lat:(u+h)/2},f=this.getZoomAndResolution(d).zoom;return f},getZoomAndResolution:function(t){var e,n,r=this.viewer,i=this.Cesium,o=r.scene.globe._surface._tilesToRender,a={lng:i.Math.toRadians(t.lng),lat:i.Math.toRadians(t.lat)},s=-1;return o.forEach((function(t){a.lng>=t._rectangle.west&&a.lng<=t._rectangle.east&&a.lat>=t._rectangle.south&&a.lat<=t._rectangle.north&&s<t._level&&(s=t._level,e=t)})),s>-1&&(n=1*r.terrainProvider.getLevelMaximumGeometricError(e.level)),{zoom:s,resolution:n}}},created:function(){ht(),dt(),this.viewer=null,this.propsIsUpdating={},window.viewer=window.viewer||null,this.initialized=!1},mounted:function(){var t=this,e=this.vueKey,n=this.vueIndex,r=this.cameraView,i=this;this.$_loadScript().then((function(o){t.Cesium=o,t.CesiumZondy=window.CesiumZondy,t.vueCesium=window.vueCesium;var a=t.$refs.container,s=new o.Viewer(a,Pe({},t._props));if(t.viewer=s,t.height&&t.$nextTick((function(){s.container.style.height=this.height+"px"})),s.vueKey=e,r&&s.scene.camera.setView(r),window.vueCesium.GlobesManager.addSource(e,n,s,{ScreenSpaceEventHandler:void 0}),window.vueCesium.ViewerManager.addSource(e,n,s,{ScreenSpaceEventHandler:void 0}),window.viewer=s,s.cesiumWidget.readyPromise&&s.cesiumWidget.readyPromise.then((function(t){i.$emit("webGlobeLoaded",t)})),t.initialized=!0,t.$emit("load",{component:t,Cesium:o,CesiumZondy:window.CesiumZondy,vueCesium:window.vueCesium}),t.container){var c=document.getElementById(t.container);c&&(c.style.height="100%")}t.resetCameraPos()}))},beforeDestroy:function(){var t=this;this.$nextTick((function(){if(t.viewer){var e=t.vueKey,n=t.vueIndex;t.viewer.scene.primitives.removeAll(),t.viewer.scene.primitives.destroy(),t.viewer.entities.removeAll(),window.vueCesium.GlobesManager.deleteSource(e,n),window.vueCesium.ViewerManager.deleteSource(e,n),t.cameraChangedListener&&viewer.camera.changed.removeEventListener(t.cameraChangedListener),t.initialized=!1}}))}},Fe=Ne;n("dd74");function je(t,e,n,r,i,o,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}var Re=je(Fe,f,p,!1,null,null,null),He=Re.exports,ze=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.manager,expression:"manager"}],staticClass:"mapgis-3d-viewpoint-manager"},[n("viewpoint-editor",{attrs:{editTuple:t.editTuple,show:t.editor,mode:t.mode},on:{update:function(e){return t.changeViewpoint(e)},change:function(e){t.editor=e}},model:{value:t.config,callback:function(e){t.config=e},expression:"config"}}),t._l(t.items,(function(e,r){return n("div",{key:r},[n("mapgis-ui-collapse",{staticClass:"collapse",attrs:{accordion:""},on:{change:t.changeActivekey},model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},[n("mapgis-ui-collapse-panel",{key:r,staticClass:"collapse-item"},[t.showEdit||t.editIndex!==r+1?n("template",{slot:"header"},[t._v(t._s(e.viewGroupName))]):n("template",{slot:"header"},[n("mapgis-ui-input",{style:{width:"150px",height:"22px"},model:{value:e.viewGroupName,callback:function(n){t.$set(e,"viewGroupName",n)},expression:"item.viewGroupName"}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"飞行"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-play-circle"},on:{click:function(e){return e.stopPropagation(),t.clickFlyPano(r)}}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"编辑"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-edit"},on:{click:function(e){return e.stopPropagation(),t.clickEdit(r)}}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"删除"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-delete"},on:{click:function(n){return n.stopPropagation(),t.clickDelete(r,e)}}})],1),n("div",{staticClass:"collapse-item-div"},[e.viewGroupItems.length>0?n("div",{staticClass:"content"},t._l(e.viewGroupItems,(function(e,i){return n("mapgis-ui-collapse",{key:i},[n("mapgis-ui-collapse-panel",{key:i},[t.showEditChild||t.editChildIndex!==i+1?n("template",{slot:"header"},[t._v(t._s(e.name))]):n("template",{slot:"header"},[n("mapgis-ui-input",{style:{width:"150px",height:"22px"},model:{value:e.name,callback:function(n){t.$set(e,"name",n)},expression:"itemChild.name"}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"飞行"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-play-circle"},on:{click:function(n){return n.stopPropagation(),t.flyTo(e,i)}}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"编辑"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-edit"},on:{click:function(e){return e.stopPropagation(),t.clickEditChild(r,i)}}})],1),n("mapgis-ui-tooltip",{staticClass:"iconTool",attrs:{slot:"extra",placement:"top",title:"删除"},slot:"extra"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-delete"},on:{click:function(n){return n.stopPropagation(),t.clickDeleteChild(r,i,e)}}})],1),t._t("saveAsInitViewPoint",null,{slot:"extra",viewPoint:e}),n("div",{staticClass:"collapse-item-content"},[n("div",{staticClass:"collapse-item-left"},[n("img",{attrs:{src:t.getImage(e.image),alt:""}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.active>=0,expression:"active >= 0"}],ref:"menu",refInFor:!0,staticClass:"item-more-tool",on:{mouseleave:function(e){t.active=-1}}},[n("div",{staticClass:"more-tool-btn",on:{click:function(e){return t.editViewpoint(t.active)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-bianji"}}),t._v("\n 编辑\n ")],1),n("div",{staticClass:"more-tool-btn",on:{click:function(e){return t.deleteViewpoint(t.active)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-shanchu"}}),t._v("\n 删除\n ")],1)])]),n("div",{staticClass:"collapse-item-right"},[n("div",[n("div",{style:{"margin-bottom":"10px"}},[n("mapgis-ui-button",{staticClass:"collapse-item-right-button",on:{click:function(e){return e.stopPropagation(),t.editViewpoint(r,i)}}},[t._v("重新获取")])],1),n("div",{style:{position:"relative",left:"-10px"}},[t._v("\n 时间:\n "),n("mapgis-ui-input",{staticClass:"collapse-item-right-input",attrs:{placeholder:"Basic usage"},model:{value:e.duration,callback:function(n){t.$set(e,"duration",n)},expression:"itemChild.duration"}}),t._v("\n s\n ")],1)])])])],2)],1)})),1):t._e(),n("span",{staticClass:"addView",on:{click:function(e){return e.stopPropagation(),t.addViewpoint(r)}}},[t._v("添加视点")])])],2)],1)],1)})),n("div",{staticClass:"save-current-view-point-as-init-div"},[t._t("saveCurrentViewPointAsInit")],2),n("div",{staticClass:"viewpoint-footer"},[t.selectMode?t._e():n("mapgis-ui-button",{attrs:{type:"primary",block:!0},on:{click:t.addViewpointGroup}},[t._v("添加视点组\n ")]),n("mapgis-ui-button",{staticClass:"save-btn",attrs:{type:"primary"},on:{click:t.saveConfig}},[t._v("保存\n ")])],1)],2)},Ue=[],Ve={inject:["Cesium","vueCesium","viewer"],props:{vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}}},data:function(){return{waitManagerName:void 0}},methods:{$_init:function(t){var e=this,n=setInterval((function(){var r=e.$_getObject();r&&(clearInterval(n),t())}),50)},$_getObject:function(t,e){var n,r=this.waitManagerName;if(t&&(r=t),"GlobesManager"===r){var i=this.viewer;if("default"===this.vueKey)n=i;else{var o=window.vueCesium.GlobesManager;o[this.vueKey]&&(n=o[this.vueKey][0].source)}}else n=window.vueCesium[r].findSource(this.vueKey,this.vueIndex);return e&&e(n),n},$_deleteManger:function(t,e){var n=this.vueKey,r=this.vueIndex,i=window.vueCesium[t].findSource(n,r);i&&(e(i),window.vueCesium.MeasureToolManager.deleteSource(n,r))}}},Ye=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mapgis-ui-modal",{directives:[{name:"show",rawName:"v-show",value:t.innerShow,expression:"innerShow"},{name:"drag",rawName:"v-drag"}],staticClass:"viewpoint-editor",attrs:{title:"视角编辑器",visible:t.innerShow,mask:!1,bodyStyle:t.bodyStyle,width:320,okText:"确定",cancelText:"取消"},on:{cancel:t.closePanel,ok:t.getResultConfig}},[n("mapgis-ui-form",{attrs:{layout:t.layout,labelCol:{span:6},wrapperCol:{span:18},labelAlign:"left",colon:!1}},[n("mapgis-ui-form-item",{attrs:{label:"名称"}},[n("mapgis-ui-input",{model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),n("mapgis-ui-input-number-panel",{attrs:{size:"medium",label:"飞行时间(s)",slider:!1,labelCol:{span:6},wrapperCol:{span:18}},model:{value:t.duration,callback:function(e){t.duration=e},expression:"duration"}}),n("mapgis-ui-form-item",{attrs:{label:"缩略图"}},[n("mapgis-ui-row",[n("mapgis-ui-col",{attrs:{span:15}},[n("img",{staticClass:"thumbnail",attrs:{src:t.image}})]),n("mapgis-ui-col",{staticClass:"thumbnail-btn",attrs:{span:9}},[n("mapgis-ui-button",{staticStyle:{"margin-bottom":"8px"},on:{click:t.screenshot}},[t._v("截图")]),n("mapgis-ui-button",{on:{click:t.upload}},[t._v("上传"),n("input",{attrs:{type:"file",id:"file"}})])],1)],1)],1),n("mapgis-ui-form-item",{attrs:{label:"视角"}},[n("div",{staticClass:"current-camera"},[n("mapgis-ui-button",{on:{click:function(e){return e.stopPropagation(),t.getCameraConfig.apply(null,arguments)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-xiangji"}})],1),n("label",[t._v("获取时间 : "+t._s(t.currentTime))])],1)])],1),n("mapgis-ui-collapse",{attrs:{"expand-icon-position":"left",bordered:!1},scopedSlots:t._u([{key:"expandIcon",fn:function(t){return[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-chevrons-down",rotate:t.isActive?180:0}})]}}])},[n("mapgis-ui-collapse-panel",{style:t.collapseStyle},[n("div",{attrs:{slot:"header"},slot:"header"},[n("mapgis-ui-row",{staticClass:"input-parameter-style"},[n("mapgis-ui-col",{attrs:{span:6}}),n("mapgis-ui-col",{attrs:{span:18}},[n("div",{staticClass:"current-camera"},[n("label",{staticStyle:{color:"#0081e2",margin:"0 16px"}},[t._v("展开详细参数")])])])],1)],1),n("mapgis-ui-row",[n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"经度",range:[0,180],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.longitude,callback:function(e){t.longitude=e},expression:"longitude"}}),n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"纬度",range:[-90,90],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.latitude,callback:function(e){t.latitude=e},expression:"latitude"}}),n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"高度",range:[0,1e8],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.height,callback:function(e){t.height=e},expression:"height"}}),n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"方向角",range:[0,360],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.heading,callback:function(e){t.heading=e},expression:"heading"}}),n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"俯视角",range:[-90,90],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.pitch,callback:function(e){t.pitch=e},expression:"pitch"}}),n("mapgis-ui-input-number-panel",{attrs:{size:"small",label:"翻滚角",range:[0,180],slider:!1,rangeShow:!1,labelCol:t.labelCol,wrapperCol:t.wrapperCol},model:{value:t.roll,callback:function(e){t.roll=e},expression:"roll"}})],1)],1)],1),n("mapgis-ui-spin",{staticStyle:{top:"50%",left:"50%"},attrs:{spinning:t.spinning,size:"large"}}),n("template",{slot:"footer"},[n("mapgis-ui-button",{attrs:{type:"primary"},on:{click:t.getResultConfig}},[t._v("确定")])],1)],2)},Ge=[],Qe=n("c0e9"),We=n.n(Qe),Ke=n("bc3a"),qe=n.n(Ke),Xe={name:"viewpoint-editor",mixins:[Ve],props:{show:{type:Boolean,default:!1},config:{type:[Object,Array]},mode:{type:String},editTuple:{type:Array},layout:{type:String,default:"horizontal"}},model:{prop:"config",event:"update"},watch:{show:function(t){this.innerShow=t,t&&(console.log(Object.prototype.toString.call(this.config)[1]),this.initConfig(this.config))},innerShow:function(t){this.$emit("change",t)},config:{handler:function(t){t&&(console.log(t),this.initConfig(t))},deep:!0}},data:function(){return{bodyStyle:{padding:"8px 16px"},collapseStyle:{border:"0",overflow:"hidden",padding:"0"},innerShow:this.show,name:"",image:n("65ec"),imageUrl:"",duration:.5,currentTime:void 0,longitude:void 0,latitude:void 0,height:void 0,heading:void 0,pitch:void 0,roll:void 0,resultConfig:void 0,spinning:!1,labelCol:{span:6},wrapperCol:{span:18}}},computed:{baseUrl:function(){return window._CONFIG.domainURL},appProductName:function(){return window._CONFIG.productName||"psmap"},imagesUploadApi:function(){return"".concat(this.baseUrl,"/").concat(this.appProductName,"/rest/services/system/ResourceServer/files/pictures")}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{getimageUrl:function(t){return t.startsWith("/file")?"".concat(this.baseUrl,"/").concat(this.appProductName).concat(t):t.startsWith("data:")?t:"".concat(this.baseUrl).concat(t)},mount:function(){this.$emit("load",this)},unmount:function(){this.$emit("unload")},initConfig:function(t){this.name=t.name,this.image=this.getimageUrl(t.image),this.imageUrl=t.image,this.longitude=t.destination.x,this.latitude=t.destination.y,this.height=t.destination.z,this.heading=t.orientation.heading,this.pitch=t.orientation.pitch,this.roll=t.orientation.roll,this.duration=t.duration,"add"===this.mode&&this.getCameraConfig()},setView:function(){var t=this.viewer,e=this.Cesium,n=this;t.camera.setView({destination:e.Cartesian3.fromDegrees(n.longitude,n.latitude,n.height),orientation:{heading:e.Math.toRadians(n.heading),pitch:e.Math.toRadians(n.pitch),roll:e.Math.toRadians(n.roll)}})},screenshot:function(){this.spinning=!0;var t=this.viewer,e=(this.Cesium,this),n={allowTaint:!0,useCORS:!0};We()(t.scene.canvas,n).then((function(t){var n=document.querySelector(".thumbnail");n.setAttribute("src",t.toDataURL());var r=(1e6*Math.random()).toFixed(0),i=e.base64ToFile(t.toDataURL(),r);e.uploadImage(i).then((function(t){e.image=e.getimageUrl(t.data.url),e.imageUrl=t.data.url,e.spinning=!1})).catch((function(t){e.$message.error("图片上传失败!"),n.setAttribute("src",e.image),e.spinning=!1}))}))},upload:function(){var t=document.getElementById("file"),e=document.querySelector(".thumbnail"),n=this;t.onchange=function(){var t=this.files[0],r=/^image/;if(r.test(t.type)){var i=new FileReader;i.onloadstart=function(){this.spinning=!0},i.readAsDataURL(t),i.onload=function(t){e.setAttribute("src",this.result),n.image=this.result,n.imageUrl=this.result,n.spinning=!1},i.onabort=function(){n.spinning=!1}}else alert("图片格式不正确")}},getCameraConfig:function(){var t=this.viewer,e=this.Cesium,n=new Date,r=n.getHours()>9?n.getHours():"0"+n.getHours(),i=n.getMinutes()>9?n.getMinutes():"0"+n.getMinutes(),o=n.getSeconds()>9?n.getSeconds():"0"+n.getSeconds();this.currentTime=r+" : "+i+" : "+o;var a=t.camera.position,s=t.scene.globe.ellipsoid,c=s.cartesianToCartographic(a);this.latitude=e.Math.toDegrees(c.latitude),this.longitude=e.Math.toDegrees(c.longitude),this.height=c.height,this.heading=e.Math.toDegrees(t.camera.heading),this.pitch=e.Math.toDegrees(t.camera.pitch),this.roll=e.Math.toDegrees(t.camera.roll)},getResultConfig:function(){var t=this;this.resultConfig={name:t.name,image:t.imageUrl,destination:{x:t.longitude,y:t.latitude,z:t.height},orientation:{heading:t.heading,pitch:t.pitch,roll:t.roll},duration:t.duration},this.$emit("update",[this.resultConfig,this.editTuple]),this.innerShow=!1},closePanel:function(){this.innerShow=!1},base64ToFile:function(t,e){var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=window.atob(n[1]),o=i.length,a=new Uint8Array(o);while(o--)a[o]=i.charCodeAt(o);return new File([a],"".concat(e,".jpeg"),{type:r})},uploadImage:function(t){var e=this,n=new FormData;n.append("file",t);var r=window._CONFIG["productName"]?"access_token_".concat(window._CONFIG["productName"]):"access_token";return new Promise((function(t,i){qe.a.post(e.imagesUploadApi,n,{headers:{"Content-Type":"multipart/form-data",Authorization:JSON.parse(localStorage.getItem(r))}}).then((function(e){t(e)})).catch((function(t){i(t)}))}))}},directives:{drag:{bind:function(t){var e=t;e.onmousedown=function(t){var n=t.clientX-e.offsetLeft,r=t.clientY-e.offsetTop;document.onmousemove=function(t){var i=t.clientX-n,o=t.clientY-r;e.style.left=i+"px",e.style.top=o+"px"},document.onmouseup=function(t){document.onmousemove=null,document.onmouseup=null}}}}}},$e=Xe,Je=(n("e7c3"),je($e,Ye,Ge,!1,null,"47cf5158",null)),Ze=Je.exports;function tn(){var t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACgCAYAAABJ/yOpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpENTc3MTM2ODRDMkMxMUVDQkQ3N0E5MzkyRDc4RkU1NSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpENTc3MTM2OTRDMkMxMUVDQkQ3N0E5MzkyRDc4RkU1NSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkQ1NzcxMzY2NEMyQzExRUNCRDc3QTkzOTJENzhGRTU1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkQ1NzcxMzY3NEMyQzExRUNCRDc3QTkzOTJENzhGRTU1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+A419kwAAJnZJREFUeNrsfQmUZFd53n/fq33pfZ2enpmekWYRI6EFJIEhCAFmObbB2HFihxhkAhxnsbHl48QJTk58MMfEwXHAwcuJEycOcYIgYIwRyIAMAVtCaCKkkWbVbN3T0/tae9V7N//36lX36+5a3quq7q6uvt+Z/1RN16tX9713v/sv97//FVJKUlBQKA9N3QIFBUUQBQVFEAUFRRAFBUUQBQVFEAUFRRAFBUUQBQVFEAUFRRAFBQVFEAUFd/C1QiPOjKsHoVAf7h1VGkRBQZlYCgqKIAoKiiAKCspJVyiD/EztY/wD6j4pDaJQwv+1RUERREFBmVgK7vBX9uvpTf9/i7o1SoMoKCgNolAVb3H4IEpzKIIo1ItakS8V9VImVjvj9ba4wSGWJ1hW7ddD6vYpDdJWaHC0/2OWp1new/ILLP+N5Y3qru4uRCtUVtzP2bwOEwuaY4xljqWP5SZLUJlY1aGyefcPnrI1Byjxz1j+Rt0S5YMorOP9LK9hucLyWpb3qVuifBCFddwgFQ5WBFFoqmOvoEwsBQWlQZqFIMs9VIwCzbOcYcmqx6ygCEI0QsXoT7fjb+9i+RTLhHrUCvvZxALR//EmcgBdLB9gEXvBHWHpsLWfU6LKFFYapFGcsDtTOQyxHGRphelIEGDUbs+Q3eYelrhtHlZDmmXJNh0xmXiLipOJuK6M6sqKINXQWePzWBN+I8JyN8sCy3kPhMCakJMsx6qQ2A3Ctgxv+rvJMslymeUlu23K71IE2YCbdkcpZ4oYTfBBYKI9ao/8wNdZPsdSLk+nl+VVLPdRMeFwu807zW4X5CGWgk2SZ1meY0mpbt7Ag2+jXCzMQv9sGZJ8jeX/1NfzDHuI1qEJfnvTx99k+SwfI/lzDDSInr3ONvdaxefJUzGS9x1u50XV3dkEGNX3pQYB/tYe0f+hfV0YObHU9fHGh2hjhUnwRSpGxUp4GB/x3xfs910t6vg/AOF2jtv34xm+HnMfcQKm7ctKg2zsFHHboTUbJMYmY19/G7/8+B7vMMgf/kuW7+0TonyU5SP1apB2DB/mbUe66Q+fO9RX+eUre/z+ILnlEXQaJvzxNibGbSyn7EDJKVvqcvAUvOEvqBhmbQpiQeoajNOxSMDSejsJTKw+yiT5EEtXGz4nRBzvp2Lk8H5bPGM/JysK27FHxAmTccimxVLX2RpaxOQOdY7cL6WtiOFOOjEQo/szBZri9z80sURPziV2fL7mXpaTfE2f42v7bhs938/Zr7dTcXUmKYJ4I8f7WB50/O2IPcr8HsulGt9viuPWH6P7rs7TV1YyNN8bpZGhDnr1LhAEwBzPzzJJ7uTXP2WiJNvoWX+7MbN6f+L0JnKUEKLiqr6Ktjl3IpDrZLWTx4PUfbiH7o0GLPu38s0X5C+YlMN7dpfz/P/ALt+Xe2zf5HAbPesnFEG8464qn6GTfpjlRyt8/nbb0a2IsT56O2uEVx3to7dWO24xRS8c42P5uAcP9dCbWHs81wL3Bqkvv8okeUC5m/vXxNJdfP4j3EngyH7D9kvQcR6i4rxCVZjSSvWIGbJ6ysf1BTrTF6VZdtB7xxfpSSbMVAv1i0f4+jvZ3HpiPxNkv1Y1QSf/ue06ecBHoe4IjSwkaTxvFE2oPQwMEI8hY6AdOryaB3GHZ1hqpl4MxuloR8jKrfKEXIEy0yv0chuQA3gTBhPWJvuyr+xXEwuTiJ+m4gKrY+UOQAiWyXE4ZlIq6KPx2QRdb9aPYyg2DOkzTKmbUmqmSRpeodEZZiykJ3BcJm8Gc3kzJARJjf/Or6auCaMk+PsO3S9E97JMks+0iybZDwSBM32UiiFKTNyNk7fwK9ZXfJLlY1ScB9n4YY4Ww37qZW2wmilYRd2aglTWiBQM6a9o85ZJc2QrWBhSwjbQnd/VmCSRgJbi151IGcG8D8K/X1AEaX3AWX6nTY4Srtkd3ksMHwuN/oTlQ5vvxVKaZtioCGQLlEhkrbwu75qCO3beMP0Bn2aZWvmC9Fcjh2c1yBqItUwoEtStlHZoJGggbfs0y9tYi6yyFvn6fiHIXrQrETr96U3kAI6w/FI5bVADz7P8IRXXUWzAfJIm6iEHd1wtnTPCrHriplxPfc9yZ272zQDhWHRb+8gE/ya0FMiyTff/J5kk9yiCtCYQav2xKp+P2iTxtILwW2cXQJI/KEcST8RgMoAYiYwRZ20RADOCtvbIFcyA7Wc0HSXiwU/x6yIP0iQzRgxE4TY1+zdxWZh171MEaT280oVZWCJJ3CNJXuCX36+XJNxJgxi9QYw1J8mnZUuOdC4vg9t1U1hb+EoagwmZdWqXRLoQh7Pf5J+E9v6gvVBMEaSF4Dbr9GA9JLl3lM7yy5c8dk4No7U1isuNKwn9tvbgjurbLu3hJKjtuJu6LjaQHJEw1mqxJptdSEf5SUWQ1sKyh2MxC/7LXklCxYmxtJsD2WyCKRMv1/F8bOqUnGWYV9t9Y6AtpE3QUlBgs0MPIje5LW9kLXJaEaR18AOiTcv8quOAV5KwFsHoW3POA75GJmdGKn1e6qTwS5oZuapBWKvzww/BnEm5Y7jNYbS9iT/7D5gkIUWQ1gBqQnld0QeSoCJJhxfLqdIHGKWTWSPq9DW2eLHcOX22mZOvMWLzkC9Y01Qt8oDPhYtCEHkHEdm8y1c8jtvO2iQqZVOKSyBw8qOKIK0DrKd+0uN3hm1NUpMkZ8atTjNSiRwpJgdmwaudw6+vd878Ju2Bk8dDIjbcqR042q8dPzms39UZFlV9q1hIxHHcMT7+QJc20sH/L0cYmFHwiWwtkqvl2ONamkQSmFpD7UiQvRiFgF3/v+3Xh+sgye+wrFQ57lXlggFr5HDh6Pp9Im+bV5q5Fl2iQE9U64uHqEvXRD1+gAj4RCTgowgTqp/bkccczULSnMvkaUPkis+fZTER9q0WHMC14JoiIT3RIEtwjT/B8p+UBmkdknzWdqi9ahKYW70VtAeiXz9T7jO3k28I6yJPyjav/CE/BQ92a4eO9uunuiJioE5ybO2RmvCDKGN9+slDPdrhcECEN2ssBApq2pI2SZrQpLtYixxtN4K0Q7r7T1Ex49QLkI7yNdvpX7EJc599nkA5h7yaz7FJe+TCAT3NfoMWDZjH2BwapjLmEDRAOk+JVFYmVjJyOW8U51+QX7U5WdGnkY/J0BkJimjYT3GQo9ygsZyWc9Mr5lQ46FtEBA3hZbedv9TuBh/lWY2MT1X60F6p2M/yPB+3K5nOXtPd22U9yN9lefN2RYYQ+XF7PHeyVEdYBPvjdDv7Kpt9HpnIysWllFxMZORquTtfjiCbfRj2SWJMmB72Zbo2WwEg3kKKLuQMDQENWk0XOtz6GeGAlqrm3LvER7nzj5chB5Y4v8++BHz+sd2oy7VfKys+RsUU9h9u5knh8HohBzAQF/1dERrlTqkbm0b3uVVzJmdQQx0QpFrNyATEr9OtvpjGvyf6SkSBdhnsoJOpHF1HLhkIVyuoUAITMgzzsMHsYAxU/7XM3x90aFJkO6DNM8oH2Tl83jabmoZ0lXmOLaqYhX2NA90ROoQIEzvHVmdI5+Xq1Tnj/OSSebNRcmwGm2X5W8vm5JVZ40I6J1ccAQW9M0QHhzroNr8uXM8bWYEID9dcKcjB2qJcLpyz/Oc0FUP2Koq1wygVqX5roydC6obpMjUDhBjt0Q6xaQWTqmBHsMRcwrw5typnt9uIzRYoe23evNIXE339ce0Ad3QNvxnxU99otxa4PGNO8t9cNQPXzGZdIODXcg30KWiLzSnxX7Y1BjY5QjFtQxFk90giGjG3EJ7NFtwn+GFuIhoU3UKskaNwY8G8zn5Gza0HMAnYHRE9TK6esF90+X0UZtNJ4ByGKYxUTksks7Q0nzBnQYRq55pLyDnWeqmRbjFmSqHpgsxIgDpYs/kmuD3SNeHMkI99kQbWlbxmM0HslYhP77XO1K7ZmA1VB2F2yWhQd7XwqjfK/IhYmiOH7xUkZadX6DxzLBcNVf3ecE+ETjExRrkj+iq1hMlTNH8GNdZqtLicpgu3VuTFfGVzLTGbpJWRTjrOXw/i291RLerTRc/MqlU90rXJ2AAOYuKQSTG11ztSuxLk/oYIgrkMUdt2jwapk32OA8Je6stjZH5qhc6haAM7u2W/w6Q4wE70a8N+K0XDC2kp5KdulgcH4uK+hRS9OLFEZwxza3o+/y05tUrnhjvoDtYiAXY0ZWdIDLIPtLyasQp77wQQNv9LRZDWA0yj2xowr4SbAVTXyMdaAL9j2fssBo/QF0AOOLty0zl8OvnHeugNnWFr5SM1SGA///bd7IifGF+ib84nrf0KN0WkippsqJNOi2IwRjA5j7G5liyYroMFsgEz605FkNbEyXqvC+RIpAuukhpHurSDhiFiJTUzn5TXMgXNnr8wQs6JRUzynRrU3hD0iXBTH55O4bFeeodfM8+xI/7CVv/Gt7yYoqtdYbrdzigOxIPyxDj7I25/Ix72rdRZPeUwm1nRvV7ntx1rHZ2o94t5l2slIgERYd9hLV0lmZNLSykrdGlHgtbvKyJLrxzV39xscjgVCjvhd7zigP6AKBNsYJ9lNp2XayHVWFB0I1nS7ckbWD+Ce3C70iDbgEPd9X/3xmL5OlfN7Az9cTFYMsOklMbUsnlT0zRzvWMWw8PsvHeeGtYfYjNF3+57xm06cnJYL5y7ZTy7TlSpabow5xPi6mDc7BdC6PaxB1Yz8qK7QUMGgv66d83Fs3hOEaRFwOTA9Ryq57tI2pMuChwgKZA1yJoZtpiSs+x35CPB9dln+CDI3r2DycG+ir5T1z/YIW5L57Tla/PmZZuoGnhsSMotpORUb1RYafyszSJImV/JyJr1vnAO3JtSAqZHjFX7MDtT/dYEB3Z/qmQvmlgYuVHHCiMlkutQNO5/UXFLg+F6rynvMh2DO1l/SXtw5zHmEnK2FPkqmTV4Zc3xGtTodfv7PKJnr88bSy9NFqbP3jTGL04Zk8tpibmPBJ/TderHoV7tHnvCkpw5WOyLzHJ71yJe3VHhuipJweW9KYODHo496vF4pUEqkANp7s5iAeiEf4/lnT0R+pWFOncFN1wsi0WGbixInaX/r6Rp3jCLqw+x9sImjRju1EbYvHK1gGh21UxenjEWVtIyVyIaj9ZWlGl80dCP9esrkaCmpbJm/GC33sOOuVarjccHtfu/f834unMtCCYemXDz3RHLPIQf1eFj7VYway9hhoNfp5kVZke9lx11N2kl2JMFQY6JVupwe0mDYMT7RapcSSMUDdJvYlMarye2Snu6SCvp5JG5ZMcDSym5NqewFulBTnevuLfmb/K/a3Pm9JnrhakSOcpE1ejSjEFMDjMc0JafvV64wb9ZMyWdHfFeJumwU4PwfTEXk1Z7SxEpwSR2VSUG9ybko9ipIXrHPQfpEbyG/a5rj/XX+Bzh4Pey/B0qLjd4byOBlv2qQX6D5V/VIjT3hs6BGD3MNvdqIkuX03l32aJuy+FEgyK+7tDLdDovMxvIwRjooCMhv6ia8MejtjmxYE5yR872xjSaT5g02qPFR7r1Dv5bgP0Wa24lnZO5qWUzcXXOWB7rI/NIn268eLNwi53xQf5etLqpJe6cWZXj6/dGyGxBZlnS8EHs6+lgE9FV0uBot3wonRNTL8/RN4c76PRYLz300pSVX1XTKq3xOX4fez7GbJMZ7xeVBvFmm37EbVvZ7j/Mo9vp/hi9syPkbsKwtI67toO+Xh0llXMWtBZy3Uepvd3w2YnC9IWpQnZm1aQjvTrdP+YfuOOAb4A1VAjkKNmSbAYFjvbrPa8e84+wf6KlcyYdG9TlhSljOpGVVZMJw37RHQutBxNKJE7l1h3zkJ+iblNK2BwbmFyhs5gIvcWvbHK5XYNeK2NgkuV7VMz2vWi/n1EEcYcfYvlzqi81SDBBXKWclMKyVYmno1DI+nLZZE4mNnc+v04B7pRVt2djjbA6vWJantL4gkE5Q8bYYY7XMJkCx4d8fTC3sjlJTBp5edqYqTV7N9RBRze3MZldJzb7Tb6gX7gKJPD1zkFz4Brxms27zndza4ohHHxeOene8D+pzrCt3SlcPXznxF5VWyBhTq51mKxMOkw7q/N1ha28LFHF15GXpo2FTZ2/0/n/haSZurFgzvbH2eTq0tZG34G4FuV2Wj7J7QM6DXVqWT420RvVKnbAeFAcuLXB7bE0SMp5HVJKVxGyq3PyqdMj9OrTw/SeTIGmr87TXzeZIC2Z2NjqBGmopiyPcpddOekuNCkWO7FNP1MxtgabPmDV4KqIxZSZ5g66IbkwFNi4vpx9gsX5hEzlDdNwEgTRqaI5aJNkUKegX1up1gEjDvKJNXOSzIrXUQXpHKXPTdWVW1XxGbbCPMdeJ8g/omJBaU/xcR6p89kCXZlL0t+4O142lN1d0iBsflS1t7nzbwlCP3kud439BR+bZn521AP9MS2fK0h9rE/fQLaVzHr0yiLJtEHHhyjTFdFlJa0FUiHahOIQZXfm8XJPqe57tKfTmVqdIF+2xRVuLFr7fHiGromGtj0ozTKzg13VpEtkZKZcSdBMQeYyCZmbS5jJ44O6jx32I8490zHqn5sszDi/a4WAmSTDnXqOiVl5lPZRBATRitUe87vwDF1ZAQe7tzfhYGLRaB+C3Kg/yFeo55pKOzQ1HPEQ1X+bO3quGhkDPtIPdOkHnXM5eYOM58cLN5K58mtMYLJ1hkWwMnmL5wKJm3WdHpFp4rmwDRyK/z1oR8fgYqEOwb9nubQfo1hekW/p1tWowXuoR+9mkvgdWiLP/sa1pbTMVCGlVsPcNHf5qmVT7lyxIua3Wd7FghAzNCzqbH2Q5axtju87E8srMDfgOa0cVRMbNbHYYc5yh646NxFgU8gwZUUNEgtu3FZuekVOD3ZoZjIrfYvJ8v2czavqWksWVxxiMjTb4EY6dWqgZmiQf0PF/V4q3lqWP6LinMpXFEEqAzH+Ts92mSl91IQizgXTqthYMQmQTaHw1HLlvUdMuWHYlS9N5tNsm2uYTESBv8XkxsE45Bc6i79G9GnVPrfWyDYMDWw53cgOwQjOYOL1X7jUMqgNjMlhQxGkPOpavSYsS6Q6QTDDHfStT6ql8zJdKqVTynnKFmjWVvtl0R/XohemjIprwpGX5UxW5E6tX58rPuuxPuYwK5+l1Ho/Ze1SNd2E/ZdcziiO4KUKmnx+EfavL95C+onhImFROLIFduCZwGxE9PID5G2S+AjLx6mY4Y0Z+ScbNfHajSB1FSPThJBGjRKsPnZ2D/dqx0v/H18wLyUck4XWUJmlm/0xqzp8WUSDIsAkCc+umukKn/vvHvUNkj1az6yYiUvTxvL1+WL/Pdrvoyuz6yQ51KtV1ZbcvgVH/7LegBzO67gxb15M5mqXJxJa3b5MPc/k52zfoh486nj/OMu7GzHztP1AkL4Yjb5yhN4DwfstN0GrPYLmCpR1rqeIBNcn6EraB8tbjRoFEY4P6b2VNsxhLSViIRGMBUUIwuaTz9ZQBJLADwFJOiOCjvTpHcjVqvZbyyl5w+GsiyIJ17fJ5tOa0ITuBpG6CTLn8Xhot59oUn94O8u/VVEsh19b7o8jnfSGiSX6awjel3Oy3YRi2J5fy7/izrlOEHuiEREjHt2rFkTgjh88Oezr8XphIMk1myQnBn3+2wf1qlmyWGQ1teogiE1ibvda3lcmL5Omy4qLda4oBGY9HPsAC7If3tbEPvGeljKx5hLev9PIGnQnbizWt9hGc/nwkQnLZlCXbarEEEGyty1Y0wgzq3S2N1Y9i3i0R+syTCsrd8ErSWYTpn+sXx+uFd5dSMoJbls24FsnMRZIOQmCrRe8ROrqcdBZOS95OB6RqANN7pK9LUWQOrUYVgT+fSqWrMQCG+QKIU3kM1QsJepWvUODwMTZEK25uUzfPthFD6Gf4H29D385LZf741Zkxaqd1RUR3bOoveuIgLEfsrCYklPdNVYUsomEdPTACxPGbK4grd/HwqknXsxdXnfSrSzjtSnmg91a7MSwr9+n1Zz7wGKsF4TDQUUb0V4HmVFxfnGbCXLT4/Ent6F/Pd1o59xNwFl8hopZuz9G66vPkDKOCaHH7M9dlY9hTQQiXS+j1W784Cb9D5bP4H25+ODmvcUrRIUKKUcVdWw7INbWp9vrONjBfnnGfNbNOvK+mBZ9/XH/oRNDeg8c9Ep+yYEuLfbgMf/IK0Z8g7XIYY0SKxIBhIQQYjNB1lb3ZfMylS2QqwLVbu5NBVzxePxfNbl/4fr+5V7VILfZWqKWCsTy1e+wvJY2ltCvhMtUR2VFnyYKbvbRYO0wz2ZKp/2dYHdUdLE5s4i16BpiqEKYiYxMTCyaLxzq0V5Z+3dJgzaBsE9QSOZk1jTJ0LFYQyc/fJZau+A6Ab/i8ozxwmbHGhvu+PX1lJSltHQdXfLXn8N1yiT9CTaz3O5c9QHbzHrrZivAI7B+/imWX2P5272oQfy26eTWPoRG+bxLQl+oq0EuO8FqWq5gue2agRsT8AeEtNeUlEp1Xp01z7PD7mmNA6JWvVEt2h/XOnqiIt4REiEv5AASWZoq2PV6SwRh3mq90fWdew1T5pjors0rn67Vq0FQ9ufDTBK32Q3IrcKW0oGSGVunYL7qoUbJsZsEQZz7To/fwWj8iIvjLlEdOVnYVcltNGsusd7xscpwIC4GnRVEkHWL487eNL6TzMqlnbyxfTFx7OSQdmexHcVKKz0RGvE5tMc8t1+6j14VGgjxWu4Wyy95IElLoel7FFaJYqHa929ScZvlOJXZLNMFztjnqRbJAv4Jy12eDVYP+xEe6dWOhtcLyMlbK/KcKTUrpJl07KXuZzPproP6G+Ih0buTD3Zq2Xzp5rL23UiAogNxOl0wpEWQbEEmWbtdcvvUm7RvIdm+4e+yuZXazQ6/LZt4PjfuPoBRIa8f0alv2qqvEaCxGJHRiWFn/weWP3MegLx/Hq1eZduznk+ecLnpZdBHwaP9+omSFmaVkZlNiDOonL55V1ykqbAjfh9rmqZvk5y1zD2R5/Z0bPWX6AeoqshWX7hgWGatvDZvXkzn3E0OIuAQQ/HqrR+hQ7xIxUlAzOmcdmn+7jpJdoIg1+2o0695IAhswQe36Zo/ScV6WU6CoDP8NtWR2Vtu64JK6I7QIJsvR0pfzRuUmFymlwyzfG7XQIwOD3XS6wI6NWxuIJlxKUUXry/QU9iK4cQgvYPP272VQDSTylnrvcVymibmku5DrwgTl0lShJb8FHfy9WLdpCNB8+fJ3cpPRBF/x4PjvqsE2QkfBDPOD2zj+X+BNhWT45sPk+D7ddmcwtoTw3Qj3OFuZfI0Z3UkstLZY8MddBKh2XLHc+e8em6K/mxmlZ7OG/XlB8F3WMnQ9cuz9Pmr8/Qt1lxZPlfy0gx9mV8Xy2i6ATazhpgoi6xRJtxeG6QMOeCLfNpJDvt+Q5NgvYabDb1RhOPdbeWD2BqkNOuLECfiyxgB/gvLr1TRIHDG/zVVyXBtEr5lRy3WllbyqIbK4r9aZycUTqe76ggjSDvQJU5wR4yXiJJjTTKxJC+V2/3JQUTRF6WDnWG6PRoUQ9W0CpPAYLNoYTUrrs0m5GUmZaqC2Rc+OSSgSbZUTFxI0vMvz8lnXI+c7OCXIchFJsMnKraTdOR5Yd3GaC3LEFrf3rewpTWIl3mQj9uvyM1HDaOvsvy/KscjB+aPd+i6yznuV+yw4XA9vkiKHW3pco3I5SxNstN+WyQo/Ni6DZpkKC7vubkkbyQ3Zfw6kUhbI/737M4dYEe+IxQQgUhAK/BvG5m8ZLPIzCUyctWRM6VRpUomARFZSGiT/XERZi22YXFUT5TuYuL6z98ynnfle4R85dZxLFQ3R4wkkwR+4YepermmoB2kyVKLYzt9kJeIalcZbBISdmRsw+J8fliYXHxvPSfEVsiZvOnaV8A2B2P9+qFYoLhmJG9Kv2mSWEia07OrctptUiDywmIh3d6pygxyO0IuOrToj4mB3piGwtQa2tIdFQf1MnXBplbkuVokCQW0dMBXdhvoq0yC36rVHr7vEZsklSyHGT7Pr7erD/L7tklTC8d28LqfrfB3jM51lYDAPuGah/wjLDq6NmteTeeLKfda0V4XPVFt6Fi/dhLbsIltuHBsdcDnP8HkWNv6AWWP5pN0ppxPMtQhTp2w50nKE501oK/iHulHuPPfXrtTWVGq36UyaT82vkx7BPUQ5Lds86oWXt7B6/i9Cg8KPkDdG0myqZPystS0wGri5jJdXkzTNeHYJReTdAe6tLFjA9rJnqjoqZWJ60JbaTgPE+P4SJd2lO06p6aQ7IyPTyzS2Qsz9BfsnC9v/v5wp3YHvl/OtMK8R/XAFn2ISTLsgSTOfgCz7b/zZ3tmv/TtnAf5GSpm4243toR5N6l7NAjV4fvqOXm+YPrTOdN1UYfSxBrqUcWD5qmgb+t+gFg3gqRHpM8jqTCbp6ysYmJZETIfYSFVDBXm2dfpEGUGN6TATC3LcVNoc6XUmVyh0H/3Qd/DIf/GtfpXZs2nbyyY18q13cVlImETodpbbu4J9gixfY5pzSp7t3topTAv/JRHtkmTIET6lE3CX6wxkoExj9X7Q+gwfp/IuT3eKgBB1vxD6saCPDe1bF7PGxvL9iA3CutK+uPa6FiffspOQ6+IOJtRR/v1UwMd2ii+t5kc/Ju56RXzBnf6C1g+67Nrb2FnqEyOcs+NF55kh3/ZYQ7m2C+a2nidIudhxhyTko9yxz/grpMZ8yDTbpOjHmx3Nu+f2LLLdqTxHD/Mc/UGDcIBPW1KQ3OT7WtXDknbplVhMWUuLqXkYmdEdHVHRF/IL6JE1BR3BGkjfO65xaRckvbaD+ROlczC0tZp2DP9zA3jG6Pd2lGfToHJJXm1tLeJ9R1uJ67R488jKPLLfF+hSSapTdF0gtRb4nEHAHMP9ZXqSqOOBPVkKmPEam22g9Awj+g6j+KGX9fyGTLDVn5MCltFyyU2lQJdYdHNZlIMZBHetLjJmiAF0wznYi21JUzqc6zdcJb5wUajL7OGKeeU49rqvKcgyU+zfMIVoWd0rBEvhf7fHxwwHt/vGqSFohHGLI92X6I6CwKIEkmQiFiDJIWC9PsCwrBL+BQMc13zcEfNzazKaWLR7BI8bIJVNW3SbDaxv4AcqkythVglMwltrDXZWSJHA+oMbfmCh+NBjmHH+wOt32/2F75OxV2M6otocIfvjunmQIcYEFUiUXljfb91tu0rdn7MjcBnwNYKVQMFBhWSWZmqRQ50+FJqer5QvUgciGuRQzRUN+pxHniu1Hs798bAuo9gO4lIj0nWSRBxcpDedcew/saTg9p9Vc2stXR3bcfqBTuDCU6SljsuGmqYHCCG1/kM1M9FcAAJk+937WvN6H0s72N5N8uOWj0+2mdgkiyyqQX1/k+9DhAaZqnt2emOiBYIByhVKQSMtSU+XbccZmw70EjZT5fjsSyREdqjUppMlVlyL8B8xh95jUqxz/EV8pj6w4SAGYYJXyzPxqrID8KX4XPJnekv+xD8YLGW4Ytev8ePxLi2QI/PJ+nZa/P0bdj7PBKvlluJCEKYdiflDrntOUeY9yhpBJBzyzVzG7mtiSaQA0GAP8RAs0OPCwmvX2RC/BQVt4pG+sp9SoNsP0m+xpoEa91f5+V7iym6BXHY8iY6HiqnZwtm0FkEO8d/4xE7wxrEQAc1XW43XQ9KJMSOvc6ggPWZX8uE/E0hKQiImfBLO/ioyrU7pwiyM8BqREzSvaLRE2H7A9YouWzeCJVWE8IPCEoti5E9yB04nWtsm4WKD5G1B4hq9SZHciP+HgromQbXlDvxxV1IE8GE89NsVmEwg7mF/K4XlJO+M1oE5sIfUJ2VULacz8pl0tMxNrvgCMMPKO3JgWiWVn/5zprkLGkPmHYgBrQa9vNoIjm+xvfrqzv9jNi0gkN/NxXz/7Ao60d2yv+wXLtm52LtRbCpFbSd9uPNPC8IwlrEX7L7EdnCPEpVknlMdwcZShvb4PxaMdRb9aGiUn3B9FT55atMji+0w7NuxSW3LY9vnV3ACPzJZqtumFZOpxiz3M3cSBNkgAnlPL/mInR7Wz+9yYPP8dl2IYcysRojCTrup6lYxXHbgNE+HvEtY5KOTaMMTDE7f2rLEldBpTXyVs2uAo7Fd/DdeNi3Ak3jxYSKBanr+AC9OeijPrzi/1UOh/n5n5kc39jP/UKZWOVNrh/mlx9vhwEEM/4gwmpmfbnsyUF62/npqmt6MJGKeY7z7fZslYnVBNw7Sk/wy3+kxvbXawmwv+Eb7rCc3DXMJayaVpWAsjwfaxNyPETu9jdUBKmDJOggH2XZkx0FqxY7w9QXDxJ2tArifcmkmkuWLc8DUwLm1L+zy/i0A1CL7ecbGmAUFaqNHsYSm1tYNvowyzuJKLhX2o5icj0ROsomlu7XKYb3uQIlElkqVysY6+j/lK/3XJs8OpjI97BgNzEs7vrn9t8/rgjSfJJYIysTBaWOsPbhzr3Qbuxwe3WevsfkCIz1Uhjvy7pbxZKwX+LrzLbRYwNBkKISsge1ugmiTCz3RMGyURSHQDj41l5pN1LkWWuUW/EHP+Q3+JoeazNyAChmiKIUqEUwYb/vqedESoN4J8qL9vLd+6m4l0VfK7cX1R0nlzf4Ucij+vMdzqfas1Bh3kZGZ1j6xczSt9D2l1dtBHjImAR9Yr8TYztLjyps1Saw4VHv9hkmC7Y2eL1NmFZx5uGQYx3Fd9soMtV6GmS7cWa8ZQlQj1YJ2o48iPKKXSALalYhoIDq9pf2YqkdpUHaW6tk7c75fSYL7i82FD1hvx7eBsJgMhPLX1F/DPWQJ3ajanq7QhFke8mCfKbztpR8FhSYxtJR7KPeazv5KJ+DLN8YbY0sIkcMqR/I8EXxN8xZwFxCJO0momvqTiuCtJPPcov2UJhYPTMFBYXW1iD3jrbmzXluXHUQpUEUFBQUQRQUFEEUFBRBFBQUQRQUFEEUFBRBFBQUQRQUFEEUFBRBFBQUFEEUFBRBFBQUQRQUFEFaAr+uboEiiEJl9KpbsP+gVhTWxidYwlTcXAfbI6BK+kfUbVEEUSjiUfsVNXo/rG6HMrEUFBQUQTxDaY99iJYoHKegoDSIgsIexP8XYAAsll2REptLMgAAAABJRU5ErkJggg==";return t}function en(t){return en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(t)}function nn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==en(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(en(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function rn(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function on(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){rn(o,r,i,a,s,"next",t)}function s(t){rn(o,r,i,a,s,"throw",t)}a(void 0)}))}}var an={name:"mapgis-3d-viewpoint-manager",components:{ViewpointEditor:Ze},mixins:[Ve],props:{viewpointConfig:{type:Array,default:void 0}},model:{prop:"viewpointConfig",event:"change"},mounted:function(){this.mount()},computed:{baseUrl:function(){return window._CONFIG.domainURL},appProductName:function(){return window._CONFIG.productName||"psmap"},getImage:function(){var t=this;return function(e){return e.startsWith("/file")?"".concat(t.baseUrl,"/").concat(t.appProductName).concat(e):e.startsWith("data:")?e:"".concat(t.baseUrl).concat(e)}}},watch:{viewpointConfig:{handler:function(t){void 0!==t&&null!==t&&(this.items=JSON.parse(JSON.stringify(t)))},immediate:!0,deep:!0}},data:function(){return{loading:!1,editIndex:1,editChildIndex:1,showEdit:!0,showEditChild:!0,editTuple:[],testGroup:[{viewGroupName:"one",viewGroupItems:[{duration:3,image:n("71d0"),orientation:{heading:360,roll:0,pitch:-90},name:"视点_1",destination:{x:104,y:28.011763478186143,z:10071759.273162084}},{duration:3,image:n("8cf3"),orientation:{heading:360,roll:0,pitch:-90},name:"视点_2",destination:{x:108.91,y:32.52,z:5e6}},{duration:3,image:n("65ec"),orientation:{heading:360,roll:0,pitch:-90},name:"视点_3",destination:{x:114.21,y:30.42,z:15e4}}]}],currentItem:0,selectMode:!1,mode:void 0,selectItems:[],editor:!1,editItem:void 0,hover:void 0,manager:!0,imgIndex:void 0,active:-1,config:void 0,clickActive:!1,activeKey:["1"],originViewPoint:{name:"",image:tn(),destination:{x:0,y:0,z:0},orientation:{heading:0,pitch:0,roll:0},duration:.5},items:[]}},destroyed:function(){this.unmount()},methods:{clickFlyPano:function(){var t=on(nn().mark((function t(e){var n,r,i,o,a,s;return nn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this,n=this.viewer,r=this.Cesium,2,-20,i=this.items[e].viewGroupItems,o=0,a=nn().mark((function t(e){var a;return nn().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=i[e-1],a&&(o+=Number(a.duration)),setTimeout((function(){n.scene.camera.flyTo({destination:r.Cartesian3.fromDegrees(i[e].destination.x,i[e].destination.y,i[e].destination.z),duration:i[e].duration,orientation:{heading:r.Math.toRadians(i[e].orientation.heading),pitch:r.Math.toRadians(i[e].orientation.pitch),roll:r.Math.toRadians(i[e].orientation.roll)}})}),1e3*o);case 3:case"end":return t.stop()}}),t)})),s=0;case 8:if(!(s<i.length)){t.next=13;break}return t.delegateYield(a(s),"t0",10);case 10:s++,t.next=8;break;case 13:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),clickDelete:function(t,e){var n=this;this.$confirm({content:"确定删除'".concat(e.viewGroupName,"'?"),onOk:function(){n.items.splice(t,1)},okText:"确定",cancelText:"取消",onCancel:function(){}}),console.log(t)},clickDeleteChild:function(t,e,n){console.log(n);var r=this;this.$confirm({content:"确定删除'".concat(n.name,"'?"),onOk:function(){r.items[t].viewGroupItems.splice(e,1)},okText:"确定",cancelText:"取消",onCancel:function(){}})},changeActivekey:function(t){console.log(t)},clickEdit:function(t){this.editIndex=t+1,console.log(this.editIndex),this.showEdit=!this.showEdit},clickEditChild:function(t,e){this.editChildIndex=e+1,this.showEditChild=!this.showEditChild},flyTo:function(t,e){var n=this.viewer,r=this.Cesium;this.currentItem=e,n.scene.camera.flyTo({destination:r.Cartesian3.fromDegrees(t.destination.x,t.destination.y,t.destination.z),orientation:{heading:r.Math.toRadians(t.orientation.heading),pitch:r.Math.toRadians(t.orientation.pitch),roll:r.Math.toRadians(t.orientation.roll)},duration:t.duration})},mount:function(){this.$emit("loaded",this)},unmount:function(){this.$emit("unload")},addViewpointGroup:function(t){this.items.push({viewGroupName:"飞行视点组",viewGroupItems:[]}),console.log("content")},addViewpoint:function(t){var e=this;this.editTuple=[t,void 0],e.config=e.originViewPoint,this.editor=!0,this.mode="add"},handleMenu:function(t,e){this.active=t,this.active>=0&&(this.active%2===0?(this.$refs.menu.style.left="".concat(e.x,"px"),this.$refs.menu.style.top="".concat(e.y,"px")):(this.$refs.menu.style.left="".concat(e.x-88,"px"),this.$refs.menu.style.top="".concat(e.y,"px")))},editViewpoint:function(t,e){this.editTuple=[t,e],this.editItem=e,this.config=this.items[t].viewGroupItems[e],this.editor=!0,this.mode="edit"},changeViewpoint:function(t){var e=t[0],n=t[1],r=this;r.config=e,"add"===r.mode?(""===e.name&&(e.name="视点_"+(r.items[n[0]].viewGroupItems.length+1)),console.log(r.items),r.items[n[0]].viewGroupItems.push(e)):"edit"===r.mode&&(""===e.name&&(e.name="视点_"+(r.items[n[0]].viewGroupItems+1)),r.items[n[0]].viewGroupItems[n[1]]=Object.assign(r.items[n[0]].viewGroupItems[n[1]],e))},selectItem:function(t,e){var n=this;if(t.target.checked)n.selectItems.push(e),n.selectMode=!0;else{var r=n.selectItems.indexOf(e);n.selectItems.splice(r,1),0===n.selectItems.length&&(n.selectMode=!1)}},deleteViewpoint:function(t){var e=this;e.selectMode?(e.selectItems.forEach((function(t){e.items.splice(t,1)})),e.selectItems=[],e.selectMode=!1):e.items.splice(t,1),(0===e.items.length||e.items.length<=e.currentItem)&&(e.currentItem=-1)},closePanel:function(){this.manager=!1},saveConfig:function(){this.$emit("change",this.items)}}},sn=an,cn=(n("c780"),je(sn,ze,Ue,!1,null,"13dd3ac6",null)),un=cn.exports,ln={vueKey:{type:String,default:"default"},vueIndex:{type:[String,Number],default:function(){return(1e8*Math.random()).toFixed(0)}}};function hn(t){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(t)}function dn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dn(Object(n),!0).forEach((function(e){pn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pn(t,e,n){return(e=mn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mn(t){var e=gn(t,"string");return"symbol"==hn(e)?e:e+""}function gn(t,e){if("object"!=hn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var An,vn,yn={name:"mapgis-3d-statebar",mixins:[],inject:["Cesium","viewer"],props:fn(fn({},ln),{},{outStyle:{type:Object},info:{type:Object},showHpr:{type:Boolean,default:!1},showSelectTileInfo:{type:Boolean,default:!1},showViewLevelInfo:{type:Boolean,default:!1},frame:{type:Number,default:10},bottomMap:{type:Boolean,default:!1}}),computed:{},model:{props:"info",event:"change"},data:function(){return{initial:!0,control:void 0,viewLevel:0,longitude:0,latitude:0,cameraHeight:0,height:0,selectedTile:void 0}},created:function(){this.bindEvent()},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{bindEvent:function(){var t=this;this.$_frame=-1,this.levelEvent=Me()((function(){t.updateViewLevel()}),100,{leading:!0})},mount:function(){this.showPosition()},unmount:function(){var t=this.viewer,e=this.vueKey,n=this.vueIndex,r=this.bottomMap,i=t.container,o=window.vueCesium.EventHandlerManager.findSource(e,n);if(o&&o.source.destroy&&o.source.destroy(),window.vueCesium.EventHandlerManager.deleteSource(e,n),r){for(var a=!1,s="mapgis-3d-statebar",c=0;c<i.children.length;c++){var u=i.children[c];u.className==s&&(a=u)}a&&i.removeChild(a)}},showPosition:function(){var t,e=this,n=this.Cesium,r=this.viewer,i=this.vueIndex,o=this.vueKey,a=this.frame;if(o&&i){var s=new n.ScreenSpaceEventHandler(r.scene.canvas);s.setInputAction((function(n){++e.$_frame%a==0&&e.updateShowInfo(n.endPosition),e.$_frame>1e7&&(e.$_frame=0),t=n.endPosition}),n.ScreenSpaceEventType.MOUSE_MOVE),s.setInputAction((function(){++e.$_frame%a==0&&e.updateShowInfo(t),e.$_frame>1e7&&(e.$_frame=0)}),n.ScreenSpaceEventType.WHEEL),window.vueCesium.EventHandlerManager.addSource(o,i,s)}r.scene.globe.tileLoadProgressEvent.addEventListener((function(){e.levelEvent()})),r.camera.changed.addEventListener((function(){e.levelEvent()}))},selectTile:function(t){var e,n=this.Cesium,r=this.viewer,i=r.scene.globe.ellipsoid,o=r.scene.camera.pickEllipsoid(t,i);if(n.defined(o)){var a=i.cartesianToCartographic(o);if(!a)return;for(var s=r.scene.globe._surface.tileProvider._tilesToRenderByTextureCount,c=0;!e&&c<s.length;c+=1){var u=s[c];if(n.defined(u))for(var l=0;!e&&l<u.length;l+=1){var h=u[l];n.Rectangle.contains(h.rectangle,a)&&(e=h)}}}return e},updateViewLevel:function(){for(var t=this.Cesium,e=this.viewer,n=e.scene.globe._surface.tileProvider._tilesToRenderByTextureCount,r=0;r<n.length;r+=1)if(n[r])for(var i=0;i<n[r].length;i+=1)t.Rectangle.contains(n[r][i].rectangle,e.camera.positionCartographic)&&(this.viewLevel=n[r][i]._level)},updateShowInfo:function(t){this.viewLevel,this.height;var e=this.Cesium,n=this.viewer,r=(this.showHpr,this.showSelectTileInfo,this.showViewLevelInfo,n.getCartesian3Position(t,r)),i=n.scene.globe.ellipsoid,o=n.camera;if(r){var a=i.cartesianToCartographic(r);if(!a)return;this.longitude=e.Math.toDegrees(a.longitude).toFixed(4),this.latitude=e.Math.toDegrees(a.latitude).toFixed(4),this.cameraHeight=Math.ceil(o.positionCartographic.height).toFixed(0),this.height=Math.max(n.scene.globe.getHeight(a),a.height).toFixed(0),this.$emit("change",{longitude:this.longitude,latitude:this.latitude,cameraHeight:this.cameraHeight,height:this.height})}}},render:function(t){var e=this.longitude,n=this.latitude,r=this.height,i=this.cameraHeight,o=this.viewer,a=this.bottomMap,s="经度:".concat(e,"°,纬度:").concat(n,"°, 海拔高度: ").concat(r,",米,相机高度:").concat(i,"米"),c=o.container,u=(o.outStyle,"mapgis-3d-statebar");if(a){var l=!1;if(c&&c.children)for(var h=0;h<c.children.length;h++){var d=c.children[h];d.className==u&&(l=d)}if(l)l.children[0].innerText=s;else{l=window.document.createElement("div"),l.className=u;var f=window.document.createElement("span");f.innerText=s,l.appendChild(f),c.appendChild(l)}return t("span")}return t("div",{class:"mapgis-3d-statebar"},[t("span",{innerText:s},[s])])}},bn=yn,wn=je(bn,An,vn,!1,null,null,null),_n=wn.exports,xn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},Sn=[],Cn={LEFT_CLICK:{type:"LEFT_CLICK"},LEFT_DOUBLE_CLICK:{type:"LEFT_DOUBLE_CLICK"},LEFT_DOWN:{type:"LEFT_DOWN"},LEFT_UP:{type:"LEFT_UP"},MIDDLE_CLICK:{type:"MIDDLE_CLICK"},MIDDLE_DOWN:{type:"MIDDLE_DOWN"},MIDDLE_UP:{type:"MIDDLE_UP"},MOUSE_MOVE:{type:"MOUSE_MOVE"},PINCH_END:{type:"PINCH_END"},PINCH_MOVE:{type:"PINCH_MOVE"},PINCH_START:{type:"PINCH_START"},RIGHT_CLICK:{type:"RIGHT_CLICK"},RIGHT_DOWN:{type:"RIGHT_DOWN"},RIGHT_UP:{type:"RIGHT_UP"},WHEEL:{type:"WHEEL"}};function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Ln(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Ln(t[n],e[n]))return!1;return!0}if("object"===Mn(t)&&null!==t&&null!==e){if("object"!==Mn(e))return!1;var r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(var i in t)if(!Ln(t[i],e[i]))return!1;return!0}return t===e}function Tn(t){return"[object Object]"===Object.prototype.toString.call(t)?"Object":"[object Array]"===Object.prototype.toString.call(t)?"Array":"nomal"}function kn(t){if("nomal"===Tn(t))return t;var e="Object"===Tn(t)?{}:[];for(var n in t)t.hasOwnProperty(n)&&(e[n]=kn(t[n]));return e}var En={name:"mapgis-3d-link",inject:["Cesium","vueCesium","viewer"],props:{enable:{type:Boolean,default:!1},includes:{type:Array,default:function(){return[]}},excludes:{type:Array,default:function(){return[]}},screenSpaceEventType:{type:Array,default:function(){return[Cn.WHEEL,Cn.MOUSE_MOVE,Cn.LEFT_UP,Cn.LEFT_DOWN,Cn.RIGHT_UP,Cn.RIGHT_DOWN]}},vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}},timestamp:{type:Number,default:0},interval:{type:Number,default:60},enableWheel:{type:Boolean,default:!1},enableRight:{type:Boolean,default:!0},isAll3d:{type:Boolean,default:!1}},model:{prop:"view",event:"change"},data:function(){return{time:0,stamp:-1,active:!1}},watch:{enable:function(t){t?this.addHandler():this.deleteHandler()}},mounted:function(){this.enable&&this.addHandler()},destroyed:function(){this.deleteHandler()},methods:{getInstanceOptions:function(){var t,e=this.vueKey,n=this.vueCesium;return n=n||window.vueCesium,"default"!==e&&(t=n.ViewerManager[e][0].options),t},checkValid:function(t,e,n){var r=this.includes,i=this.excludes;(0===r.length&&0===i.length||r&&i&&r.length>0&&i.length>=0&&r.indexOf(n)>=0||r&&i&&0===r.length&&i.length>0&&i.indexOf(n)<0)&&this.setView(t,e)},updateView:function(t){var e=this.interval,n=this.timestamp;if(n>0){var r=(new Date).getTime();r-this.stamp>n&&(this.updateRect(t),this.stamp=r)}else++this.time%e===0&&this.updateRect(t),this.time>1e6&&(this.time=0)},updateRect:function(t){var e={destination:kn(t.position),orientation:{direction:kn(t._direction),up:kn(t.up),heading:kn(t.heading),pitch:kn(t.pitch),roll:kn(t.roll)}},n=t.computeViewRectangle(),r={west:0,east:0,north:0,south:0};r.west=Cesium.Math.toDegrees(n.west),r.east=Cesium.Math.toDegrees(n.east),r.north=Cesium.Math.toDegrees(n.north),r.south=Cesium.Math.toDegrees(n.south),this.$emit("change",{"3d":e,"2d":r})},setView:function(t,e){var n={destination:kn(e.position),orientation:{direction:kn(e._direction),up:kn(e.up),heading:kn(e.heading),pitch:kn(e.pitch),roll:kn(e.roll)}};t.camera.setView(n)},addHandler:function(){var t=this.vueCesium,e=this.includes,n=this.excludes,r=this.screenSpaceEventType;t=t||window.vueCesium;var i=t.ViewerManager.flatAllSource(),o=this,a=this;this.stamp=(new Date).getTime();for(var s=function(t){var s=i[t];return e&&e.length>0&&e.indexOf(s.parent)<0||(!e||0==e.length)&&n&&n.length>0&&n.indexOf(s.parent)>=0?0:(s.options.ScreenSpaceEventHandler=new Cesium.ScreenSpaceEventHandler(s.source.scene.canvas),void r.forEach((function(e){s.options.ScreenSpaceEventHandler.setInputAction((function(n){if(o.enableWheel&&"WHEEL"==e.type&&(o.active=!0),"LEFT_DOWN"==e.type)o.active=!0;else if("LEFT_UP"==e.type||"RIGHT_UP"==e.type||"RIGHT_DOWN"==e.type)o.active=!1;else if("MOUSE_MOVE"==e.type&&!o.active)return;if((o.enableRight||"RIGHT_UP"!=e.type&&"RIGHT_DOWN"!=e.type)&&(!(Cesium.Math.toDegrees(s.source.camera.pitch)<-120)||a.isAll3d)&&(!(Cesium.Math.toDegrees(s.source.camera.pitch)>-70)||a.isAll3d)){o.updateView(s.source.camera);var r=s.source.camera;i.forEach((function(e,n){t!=n&&o.checkValid(e.source,r,e.parent)}))}}),Cesium.ScreenSpaceEventType[e.type])})))},c=0;c<i.length;c++)s(c)},deleteHandler:function(){var t=this.vueCesium,e=this.screenSpaceEventType;t=t||window.vueCesium;var n=this.getInstanceOptions();if(n){var r=n.ScreenSpaceEventHandler;r&&(e.forEach((function(t){r.removeInputAction(Cesium.ScreenSpaceEventType[t.type])})),r.destroy())}var i=t.ViewerManager.flatAllSource();i.forEach((function(t,n){t.options.ScreenSpaceEventHandler&&(e.forEach((function(e){t.options.ScreenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType[e.type])})),t.source.camera.changed.removeEventListener((function(){})))}))}}},On=En,Pn=je(On,xn,Sn,!1,null,null,null),Bn=Pn.exports,In=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("toolbar"),t.initial?t._t("default"):t._e(),n("mapgis-ui-card",{staticClass:"mapgis-3d-draw-control",attrs:{customPosition:t.position}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.enableControl,expression:"enableControl"}]},[n("mapgis-ui-space",t._l(t.draws,(function(e,r){return n("mapgis-ui-tooltip",{key:r,attrs:{placement:"bottom"}},[n("template",{slot:"title"},[n("span",[t._v(t._s(e.tip))])]),n("mapgis-ui-button",{class:e.className,attrs:{shape:"circle",type:e.type},on:{click:e.click}},[n("mapgis-ui-iconfont",{class:e.className,attrs:{type:e.icon,theme:"filled"}})],1)],2)})),1)],1)])],2)},Dn=[],Nn={name:"mapgis-3d-draw",mixins:[],inject:["Cesium","vueCesium","viewer"],props:{infinite:{type:Boolean,default:!1},enableControl:{type:Boolean,default:!1},position:{type:String,default:"top-right"},clampToGround:{type:Boolean,default:!0},drawStyle:{type:Object,default:function(){return{}}},vueKey:{type:String,default:""},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}}},data:function(){return{drawStyleCopy:{color:"#FF0000",opacity:.5,outlineWidth:1,outlineColor:"#000000",width:2},initial:!1,drawOption:"",draws:[{icon:"mapgis-huizhidian2",type:"primary",tip:"画点",click:this.enableDrawPoint},{icon:"mapgis-huizhixian1",type:"primary",tip:"画线",click:this.enableDrawLine},{icon:"mapgis-huizhijuxing",type:"primary",tip:"画矩形",click:this.enableDrawRectangle},{icon:"mapgis-draw-polygon",type:"primary",tip:"画多边形",click:this.enableDrawPolygon},{icon:"mapgis-huizhiyuan1",type:"primary",tip:"画圆",click:this.enableDrawCircle},{icon:"mapgis-shanchu_dianji",type:"primary",tip:"删除绘制",click:this.removeEntities}]}},created:function(){},mounted:function(){this.drawStyleCopy=Object.assign(this.drawStyleCopy,this.drawStyle),this.mount()},destroyed:function(){this.unmount()},watch:{clampToGround:{handler:function(t,e){this.unmount(),this.mount()}},drawStyle:{handler:function(){this.drawStyleCopy=Object.assign(this.drawStyleCopy,this.drawStyle)},deep:!0}},methods:{mount:function(){var t=this,e=this.vueKey,n=this.vueIndex,r=setInterval((function(){var i=t.getWebGlobe();i&&(clearInterval(r),t.initial=!0,t.$emit("load",t),window.vueCesium.DrawToolManager.addSource(e,n,[]))}),50)},unmount:function(){var t=this.vueKey,e=this.vueIndex,n=this.vueCesium;n||(n=window.vueCesium);var r=n.DrawToolManager.findSource(t,e);r&&(this.removeEntities(!0),n.DrawToolManager.deleteSource(t,e)),window.drawElement&&window.drawElement.stopDrawing(),delete window.drawElement,this.$emit("unload",this)},removeEntities:function(t){var e=this.vueKey,n=this.vueIndex,r=this.getWebGlobe();if(r){var i=window.vueCesium.DrawToolManager.findSource(e,n);if(i){i=i.source;for(var o=0;o<i.length;o++)r.scene.primitives.remove(i[o]),r.entities.remove(i[o]);i.source=[]}}window.drawElement&&window.drawElement.stopDrawing(),t||this.drawOption.length>0&&this[this.drawOption]()},getWebGlobe:function(){var t,e=this.viewer,n=this.vueCesium,r=this.Cesium,i=this.vueKey,o=this.vueIndex;if(n||(n=window.vueCesium),r||(r=window.Cesium),0===this.vueKey.length)t=e;else{var a=n.GlobesManager;a.hasOwnProperty(this.vueKey)&&a[this.vueKey].length>0&&a[this.vueKey][0].hasOwnProperty("source")&&(t=a[this.vueKey][0].source)}if(!this.infinite){var s=window.vueCesium.DrawToolManager.findSource(i,o);if(s){s=s.source;for(var c=0;c<s.length;c++)t.scene.primitives.remove(s[c]),t.entities.remove(s[c]);s.source=[]}}return t},getDrawElement:function(t){return window.drawElement&&window.drawElement.stopDrawing(),window.drawElement=new Cesium.DrawElement(t),window.drawElement},enableDrawPoint:function(){var t,e;this.drawOption="enableDrawPoint";var n=this.getWebGlobe(),r=this,i=this.vueCesium,o=this.Cesium,a=this.vueKey,s=this.vueIndex,c=this.drawStyleCopy;i||(i=window.vueCesium),o||(o=window.Cesium);var u=this.getDrawElement(n);this.clampToGround?u.setGroundPrimitiveType("BOTH"):u.setGroundPrimitiveType("NONE");var l=new o.Color.fromCssColorString(c.outlineColor).withAlpha(c.opacity),h=new o.Color.fromCssColorString((null===(t=c.point)||void 0===t?void 0:t.color)||c.color).withAlpha((null===(e=c.point)||void 0===e?void 0:e.alpha)||c.opacity);u.startDrawingMarker({addDefaultMark:!1,color:h,callback:function(t){var e,i=t.position,d=o.Cartographic.fromCartesian(i),f=o.Math.toDegrees(d.longitude),p=o.Math.toDegrees(d.latitude),m=d.height,g=n.entities.add({name:"点",position:o.Cartesian3.fromDegrees(f,p,m),point:{pixelSize:(null===(e=c.point)||void 0===e?void 0:e.size)||10,color:h,outlineColor:l,outlineWidth:c.outlineWidth}});r.infinite||u.stopDrawing();var A=window.vueCesium.DrawToolManager.findSource(a,s).source;A.push(g),r.$emit("drawCreate",i,[f,p,m],n),r.$emit("drawcreate",i,[f,p,m],n)}})},enableDrawLine:function(t){var e,n;this.drawOption="enableDrawLine";var r=this.getWebGlobe(),i=this.Cesium,o=this.vueKey,a=this.vueIndex,s=this.drawStyleCopy;i||(i=window.Cesium);var c=this,u=this.getDrawElement(r);this.clampToGround?u.setGroundPrimitiveType("BOTH"):u.setGroundPrimitiveType("NONE");var l=new i.Color.fromCssColorString((null===(e=s.line)||void 0===e?void 0:e.color)||s.color).withAlpha((null===(n=s.line)||void 0===n?void 0:n.alpha)||s.opacity);u.startDrawingPolyline({color:l,callback:function(e){for(var n=e.positions,l=[],h=0;h<n.length;h++){var d=i.Cartographic.fromCartesian(n[h]),f=i.Math.toDegrees(d.longitude),p=i.Math.toDegrees(d.latitude),m=d.height;l.push([f,p,m])}if(!t||"boolean"!==typeof t){var g,A=new i.DrawElement.PolylinePrimitive({id:"polyline",positions:n,width:(null===(g=s.line)||void 0===g?void 0:g.size)||s.width,geodesic:!0}),v=r.scene.primitives.add(A),y=window.vueCesium.DrawToolManager.findSource(o,a).source;y.push(v)}c.infinite||u.stopDrawing(),c.$emit("drawCreate",n,l,r),c.$emit("drawcreate",n,l,r)}})},enableDrawPolygon:function(t){var e,n;this.drawOption="enableDrawPolygon";var r=this.getWebGlobe(),i=this.Cesium,o=this.vueKey,a=this.vueIndex;i||(i=window.Cesium);var s=this,c=this.drawStyleCopy,u=this.getDrawElement(r);this.clampToGround?u.setGroundPrimitiveType("BOTH"):u.setGroundPrimitiveType("NONE");var l=new i.Color.fromCssColorString((null===(e=c.polygon)||void 0===e?void 0:e.color)||c.color).withAlpha((null===(n=c.polygon)||void 0===n?void 0:n.alpha)||c.opacity);u.startDrawingPolygon({color:l,callback:function(e){for(var n=e.positions,h=[],d=0;d<n.length;d++){var f=i.Cartographic.fromCartesian(n[d]),p=i.Math.toDegrees(f.longitude),m=i.Math.toDegrees(f.latitude),g=f.height;h.push([p,m,g])}if(!t||"boolean"!==typeof t){var A,v=new i.DrawElement.PolygonPrimitive({positions:n,width:(null===(A=c.polygon)||void 0===A?void 0:A.size)||c.width,material:i.Material.fromType("Color",{color:l})}),y=r.scene.primitives.add(v),b=window.vueCesium.DrawToolManager.findSource(o,a).source;b.push(y)}s.infinite||u.stopDrawing(),s.$emit("drawCreate",n,h,r),s.$emit("drawcreate",n,h,r)}})},enableDrawRectangle:function(t){var e,n;this.drawOption="enableDrawRectangle";var r=this.getWebGlobe(),i=this.Cesium,o=this.vueKey,a=this.vueIndex,s=this.drawStyleCopy;i||(i=window.Cesium);var c=this,u=this.getDrawElement(r);this.clampToGround?u.setGroundPrimitiveType("BOTH"):u.setGroundPrimitiveType("NONE");var l=new i.Color.fromCssColorString((null===(e=s.polygon)||void 0===e?void 0:e.color)||s.color).withAlpha((null===(n=s.polygon)||void 0===n?void 0:n.alpha)||s.opacity);u.startDrawingExtent({color:l,callback:function(e){var n=e.extent;if(!t||"boolean"!==typeof t){var s=new i.DrawElement.ExtentPrimitive({extent:n,material:i.Material.fromType("Color",{color:l})}),h=r.scene.primitives.add(s),d=window.vueCesium.DrawToolManager.findSource(o,a).source;d.push(h)}for(var f=[n.west,n.north,n.east,n.south],p=r.scene.globe.ellipsoid,m=i.Cartesian3.fromRadiansArray(f,p),g=[],A=0;A<m.length;A++){var v=i.Cartographic.fromCartesian(m[A]),y=i.Math.toDegrees(v.longitude),b=i.Math.toDegrees(v.latitude),w=e.height;g.push([y,b,w])}c.infinite||u.stopDrawing(),c.$emit("drawCreate",m,g,r,n),c.$emit("drawcreate",m,g,r,n)}})},enableDrawCircle:function(){var t,e;this.drawOption="enableDrawCircle";var n=this.getWebGlobe(),r=this.Cesium,i=this.vueKey,o=this.vueIndex,a=this.drawStyleCopy;r||(r=window.Cesium);var s=this,c=this.getDrawElement(n);this.clampToGround?c.setGroundPrimitiveType("BOTH"):c.setGroundPrimitiveType("NONE");var u=new r.Color.fromCssColorString((null===(t=a.polygon)||void 0===t?void 0:t.color)||a.color).withAlpha((null===(e=a.polygon)||void 0===e?void 0:e.alpha)||a.opacity);c.startDrawingCircle({color:u,callback:function(t){var e=t.center,a=t.radius;console.log("circle",e);var l=r.Cartographic.fromCartesian(e),h=l.height,d=new r.DrawElement.CirclePrimitive({center:e,radius:a,height:h,asynchronous:!1,material:r.Material.fromType("Color",{color:u})});s.infinite||c.stopDrawing();var f=n.scene.primitives.add(d),p=window.vueCesium.DrawToolManager.findSource(i,o).source;p.push(f),s.$emit("drawCreate",e,a,n),s.$emit("drawcreate",e,a,n)}})}}},Fn=Nn,jn=(n("2411"),je(Fn,In,Dn,!1,null,"494bdf51",null)),Rn=jn.exports,Hn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-measure"},[t.initial?t._t("default"):t._e(),t._t("measureTool",(function(){return[n("measure-3d-tool",{ref:"measureTool",attrs:{result:t.result,measureConfig:t.measureConfig}})]}))],2)},zn=[],Un=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.prefixCls},[n("mapgis-ui-toolbar",{class:t.prefixCls+"-toolbar",attrs:{bordered:!1}},[n("mapgis-ui-toolbar-command-group",t._l(t.modes,(function(e){var r=e.title,i=e.mode,o=e.icon,a=e.measuretype;return n("mapgis-ui-toolbar-command",{key:r,staticClass:"command-group",attrs:{title:r,icon:o,active:t.activeMode===i},on:{click:function(e){return t.startMeasure(i,a)}}})})),1),n("mapgis-ui-toolbar-space"),n("mapgis-ui-toolbar-command-group",[n("mapgis-ui-toolbar-command",{attrs:{title:"清除",icon:"mapgis-shanchu_dianji"},on:{click:t.clearMeasure}}),n("mapgis-ui-toolbar-command",{attrs:{active:t.showSettingPanel,title:"设置",icon:"mapgis-setting"},on:{click:function(e){t.showSettingPanel=!t.showSettingPanel}}})],1)],1),n("measure-3d-result",{attrs:{mode:t.activeMode,result:t.measureResult,type:t.activeType}}),t.showSettingPanel?n("measure-3d-setting",{attrs:{measureConfig:t.measureConfig},on:{"measure-style-change":t.measureStyleChange,"measure-style-resize":t.measureStyleResize}}):t._e()],1)},Vn=[],Yn=n("c249"),Gn=function(t){return t.replace(new RegExp("[A-Z]","g"),(function(t){return"-".concat(t.toLowerCase())})).replace(new RegExp("^-"),"")};function Qn(t){return void 0!==t&&null!==t}function Wn(t){return t instanceof Cesium.Color?t:t instanceof Array?new Cesium.Color(t[0],t[1],t[2],t[3]):"string"===typeof t?Cesium.Color.fromCssColorString(t):t}function Kn(t,e){var n=t[e];if(!n&&(n=window[e],!n))throw new Error("未找到可用的"+e+"对象!");return n}var qn=function(){for(var t="",e=1;e<=32;e++){var n=Math.floor(16*Math.random()).toString(16);t+=n,8!==e&&12!==e&&16!==e&&20!==e||(t+="-")}return t};function Xn(t){var e={positionCartographic:{}};return e.positionCartographic.height=t.camera.positionCartographic.height,e.positionCartographic.longitude=t.camera.positionCartographic.longitude,e.positionCartographic.latitude=t.camera.positionCartographic.latitude,e.heading=t.scene.camera.heading,e.pitch=t.scene.camera.pitch,e.roll=t.scene.camera.roll,e}var $n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.selfResult?n("div",{staticClass:"measure-result"},t._l(t.selfResultOptions,(function(e){var r=e.label,i=e.value,o=e.unit;return n("div",{key:i},[t._v("\n "+t._s(r)+":"+t._s(t.selfResult[i])+" "+t._s(o)+"\n ")])})),0):t._e()},Jn=[];function Zn(t){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(t)}function tr(t,e,n){return(e=er(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function er(t){var e=nr(t,"string");return"symbol"==Zn(e)?e:e+""}function nr(t,e){if("object"!=Zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var rr={MeasureLengthTool:"MeasureLengthTool",MeasureStickLengthTool:"MeasureStickLengthTool",MeasureStickAreaTool:"MeasureStickAreaTool",MeasureAreaTool:"MeasureAreaTool",TriangulationTool:"TriangulationTool"},ir={name:"measure-3d-result",props:{mode:{type:String},result:{type:Object},type:{type:String}},data:function(t){return{selfResult:null,resultOptions:null,selfResultMap:tr(tr(tr(tr(tr({},rr.MeasureLengthTool,[{label:"空间距离",value:"cesiumLength",unit:"千米",type:"space"}]),rr.MeasureStickLengthTool,[{label:"贴地距离",value:"cesiumStickLength",unit:"千米",type:"tostick"}]),rr.MeasureAreaTool,[{label:"空间面积",value:"cesiumArea",unit:"平方公里",type:"space"}]),rr.MeasureStickAreaTool,[{label:"贴地面积",value:"cesiumStickArea",unit:"平方公里",type:"tostick"}]),rr.TriangulationTool,[{label:"高差",value:"verticalDiatance",unit:"米"},{label:"水平距离",value:"horizontalDiatance",unit:"米"}])}},computed:{selfResultOptions:function(t){var e=t.selfResultMap,n=t.mode;return e[n]}},watch:{result:{deep:!0,handler:function(t){this.selfResult=t}}}},or=ir,ar=je(or,$n,Jn,!1,null,"6e5a70b9",null),sr=ar.exports,cr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"measure-3d-setting"},[n("mapgis-ui-group-tab",{attrs:{title:"设置"}},[n("mapgis-ui-toolbar-command",{attrs:{slot:"handle",title:"重置",icon:"mapgis-redo"},on:{click:t.onReset},slot:"handle"})],1),n("mapgis-ui-setting-form",{attrs:{layout:"vertical"}},[n("mapgis-ui-form-item",{attrs:{label:"线颜色"}},[n("mapgis-ui-sketch-color-picker",{attrs:{color:t.measureConfig.lineColor,"disable-alpha":!1},on:{input:function(e){return t.onColorChange(e,"lineColor")}}})],1)],1)],1)},ur=[],lr={name:"measure-3d-setting",props:{measureConfig:{type:Object,defualt:function(){}}},data:function(t){return{}},computed:{measureStyle:{get:function(){return this.measureConfig},set:function(t){this.$emit("measure-style-change",t)}}},methods:{emitStyle:function(t){this.$emit("measure-style-change",t)},onReset:function(){this.$emit("measure-style-resize")},onColorChange:function(t,e){var n=t.hex,r=JSON.parse(JSON.stringify(this.measureStyle));r[e]=n,this.measureStyle=r}}},hr=lr,dr=je(hr,cr,ur,!1,null,"5fa54a75",null),fr=dr.exports,pr={name:"measure-3d-tool",inject:["viewer"],components:{"measure-3d-result":sr,"measure-3d-setting":fr},props:{result:{type:[Number,Object]},measureConfig:{type:Object,defualt:function(){}}},data:function(t){return{prefixCls:"measure-3d-tool",showSettingPanel:!1,measureResult:null,activeMode:"",activeType:"",modes:[{mode:rr.MeasureLengthTool,title:"空间距离",icon:"mapgis-huizhixian1",measuretype:"space"},{mode:rr.MeasureAreaTool,title:"空间面积",icon:"mapgis-area",measuretype:"space"},{mode:rr.MeasureStickLengthTool,title:"贴地距离",icon:'<svg t="1638933339434" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7017" width="200" height="200"><path d="M98.6 98.2h50v830h-50z" p-id="7018" ></path><path d="M98.6 877.5H928v50H98.6z m477.5-84.7c-29.1 0-53.9-16.6-73.6-49.3-14.8-24.6-26.2-56.7-37.2-87.7-24.7-69.7-45-119-81.2-119-38.9 0-91.8 24.3-152.8 70.2-48.1 36.2-84 73.1-84.3 73.4l-36-34.8c1.5-1.6 38.5-39.7 89.6-78.2 71-53.5 132.7-80.6 183.4-80.6 34.2 0 63.1 18.4 85.9 54.6 17.6 28 30.2 63.4 42.4 97.7 18 50.8 36.7 103.4 63.5 103.7 1.7-0.6 18.4-7.8 46.9-82.4 20.3-53.2 40.6-123.9 60.2-192.3 20.2-70.4 41-143.1 62.2-197.2 20.1-51.5 46.2-104.1 87-104.1H928v50h-95.1c-1.3 0.6-7.2 4.3-16.8 20.2-8.5 14.1-17.8 34.5-27.6 60.6-19.2 51-38.6 118.7-57.4 184.3-20.7 72.3-42.2 147.1-64.3 203.3-21 53.2-48.1 107.6-90.7 107.6z" p-id="7019" "></path></svg>',measuretype:"tostick"},{mode:rr.MeasureStickAreaTool,title:"贴地面积",icon:'<svg t="1638932551716" class="icon" viewBox="0 0 1255 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2635" width="14" height="14"><path d="M155.791637 754.376488l1056.914077 186.369394a41.879297 41.879297 0 1 1-14.546858 82.470251l-1154.616129-203.590787a42.401157 42.401157 0 0 1-10.029505-3.098547A41.862989 41.862989 0 0 1 0.032616 775.495526V42.705679a41.879297 41.879297 0 1 1 83.742286 0v693.340462l539.163331-196.186893a20.929864 20.929864 0 1 1 14.318545 39.335228z" p-id="2636"></path><path d="M615.615879 258.625419l602.8303 150.475183L615.615879 597.867293 195.632416 428.409437l419.983463-169.784018z" p-id="2637"></path><path d="M383.958787 121.604448c58.432056-12.52465 63.960515 15.378574 137.787453 152.43216 3.163779 5.870929 30.20267 138.619168 91.912663 138.619168 57.208946 0 179.911372-132.976552 183.172999-138.619168 40.378948-70.565311 34.328629-136.711116 104.926556-115.608386s115.412688 25.505927 185.651837 199.611602q5.642616 14.024998 131.035884 47.097901l-4.2075 15.93305a4.46843 4.46843 0 0 1 0.88064 8.284534l-270.470459 137.656988a952.949702 952.949702 0 0 0-228.737936 162.820444l-11.415696 10.910144a115.265915 115.265915 0 0 1-162.967217-3.082238 120.491042 120.491042 0 0 1-6.882034-7.827906 907.939242 907.939242 0 0 0-181.672651-171.626838l-148.567132-105.758271a20.92334 20.92334 0 0 1 5.120756-36.77485q44.700605-15.949358 56.328306-27.903223c16.079823-16.536451 59.671475-253.656769 118.103531-266.165111z" p-id="2638" ></path><path d="M383.958787 121.604448c58.432056-12.52465 98.077138 12.60619 137.787453 152.43216 21.200579 74.77281 65.705486 138.619168 91.912663 138.619168 57.208946 0 85.161094-90.526471 99.479638-138.619168 21.559358-72.717985 96.430017-201.519654 188.815615-201.519654s130.269402 59.573626 234.837179 241.670289c50.131214 87.281151 119.489723 80.333885 117.05981 98.468533q-53.523307 24.95145-351.945913 176.796518l-245.910404 54.273481a188.619917 188.619917 0 0 1-70.973015 1.956977l-25.848397-4.240116a322.11833 322.11833 0 0 1-114.825596-42.303308q-247.492293-149.627161-275.949993-165.706985c15.003486-5.039214 26.565956-18.460812 40.150634-31.963949 86.971297-113.357863 81.524379-247.541218 175.410326-279.863946z" p-id="2639"></path><path d="M615.599571 412.003451q70.989322 114.303735 215.0391 114.303735t420.749945-112.526148L615.599571 729.816433 185.374598 443.054145q82.992111 41.357436 219.246599 41.357436t210.978374-72.40813z" p-id="2640"></path></svg>',measuretype:"tostick"},{mode:rr.TriangulationTool,title:"三角",icon:"mapgis-sanjiaoceliang",measuretype:"triangle"}]}},watch:{result:{deep:!0,immediate:!0,handler:function(t){this.setMeasureResult(t)}}},methods:{precision:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return t.toFixed(e)},setMeasureResult:function(t){var e;switch(this.activeMode){case rr.MeasureLengthTool:e={cesiumLength:this.precision(t)};break;case rr.MeasureStickLengthTool:e={cesiumStickLength:this.precision(t)};break;case rr.MeasureAreaTool:e={cesiumArea:this.precision(t/Math.pow(1e3,2))};break;case rr.MeasureStickAreaTool:console.log("=========="),console.log(t),e={cesiumStickArea:this.precision(t/Math.pow(1e3,2))},console.log(e);break;case rr.TriangulationTool:e={horizontalDiatance:this.precision(t.horizontalDiatance),verticalDiatance:this.precision(t.verticalDiatance)};break;default:break}this.measureResult=e},startMeasure:function(t,e){this.clearMeasure(),this.enableMeasure(t,e),this.activeMode=t,this.activeType=e},clearMeasure:function(){this.activeMode="",this.measureResult=null,this.$parent.remove()},enableMeasure:function(t,e){this.$parent.$_enableMeasure(t,e,this.setMeasureResult)},measureStyleChange:function(t){this.$parent.measureConfig=t,this.$parent.initStyles(t)},measureStyleResize:function(){this.$parent.resizeStyles()}}},mr=pr,gr=(n("e5c5"),je(mr,Un,Vn,!1,null,"514b5785",null)),Ar=gr.exports;function vr(t){return vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vr(t)}function yr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yr=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==vr(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(vr(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function br(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function wr(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){br(o,r,i,a,s,"next",t)}function s(t){br(o,r,i,a,s,"throw",t)}a(void 0)}))}}var _r={name:"mapgis-3d-measure",mixins:[Ve],components:{"measure-3d-tool":Ar},props:{styles:{type:Object,default:function(){return{lineColor:"#1890ff",fillColor:"#1890ff"}}},options:{type:Object,default:function(){return{}}},featureConfig:{type:Object,defalut:function(){}}},data:function(){return{result:void 0,initial:!1,measureStyles:{},waitManagerName:"GlobesManager",measureConfig:{}}},watch:{styles:{handler:function(){this.initStyles(this.styles)},deep:!0},measureOptions:{handler:function(){this.measureOptions=this.$_formatOptions(this.measureOptions)},deep:!0},featureConfig:{handler:function(t){var e,n;t&&(this.measureConfig.lineColor=(null===t||void 0===t||null===(e=t.feature)||void 0===e||null===(n=e.line)||void 0===n?void 0:n.color)||"#1890ff")},deep:!0,immediate:!0}},mounted:function(){var t=this;this.$_init((function(){t.initStyles(t.styles),t.initial=!0,t.$emit("load",t)}))},destroyed:function(){this.deleteMeasure(),this.$emit("unload")},methods:{onChange:function(t){this.changeContour=t.target.checked},initStyles:function(t){this.measureStyles.lineColor=Cesium.Color.fromCssColorString(t.lineColor)},measureCallBack:function(t){var e=null;e=t instanceof Array?t[t.length-1]:t,this.result=e,this.$emit("measured",t)},enableMeasureLength:function(){this.$_enableMeasure("MeasureLengthTool")},enableMeasureArea:function(){this.$_enableMeasure("MeasureAreaTool")},enableMeasureTriangle:function(){this.$_enableMeasure("TriangulationTool")},enableMeasureSlope:function(){this.$_enableMeasure("MeasureSlopeTool")},$_enableMeasure:function(){var t=wr(yr().mark((function t(e,n){var r,i,o,a,s,c,u,l,h,d,f,p,m,g,A,v,y,b,w,_=this;return yr().wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(u=(null===(r=this.featureConfig)||void 0===r||null===(i=r.feature)||void 0===i?void 0:i.line)||{color:"rgba(255,0,0,1)",size:"3"},l=(null===(o=this.featureConfig)||void 0===o||null===(a=o.label)||void 0===a?void 0:a.text)||{color:"rgba(255,0,102,1)",fontSize:"14",fontFamily:"华文行楷"},h=(null===(s=this.featureConfig)||void 0===s||null===(c=s.feature)||void 0===c?void 0:c.reg)||{color:"rgba(255,255,0,0.5)"},this.measureConfig.lineColor&&(this.measureStyles.lineColor=Cesium.Color.fromCssColorString(this.measureConfig.lineColor)),d={},u&&u.size&&this.measureConfig.lineColor&&(f={width:Number(u.size),material:new Cesium.PolylineGlowMaterialProperty({glowPower:.15,color:Cesium.Color.fromCssColorString(this.measureConfig.lineColor)}),depthFailMaterial:new Cesium.PolylineGlowMaterialProperty({glowPower:.15,color:Cesium.Color.fromCssColorString(this.measureConfig.lineColor)})},d.lineStyle=f),l&&(l.color&&(d.fillColor=Cesium.Color.fromCssColorString(l.color)),l.fontSize&&l.fontFamily&&(d.font="".concat(l.fontSize,"px ").concat(l.fontFamily))),"MeasureLengthTool"===e?d.paneNum=256:"MeasureAreaTool"===e&&(d.xPaneNum=64,d.yPaneNum=64,h&&h.color&&(d.areaColor=Cesium.Color.fromCssColorString(h.color))),p=this.vueKey,m=this.vueIndex,g=this.$_getObject(this.waitManagerName,this.deleteMeasure),this.viewer=g,A={lineColor:this.measureStyles.lineColor,callBack:function(){var t=wr(yr().mark((function t(e){return yr().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e){t.next=5;break}return t.next=3,_.waitAreaResult();case 3:e=t.sent,console.log(e);case 5:"function"===typeof callback?callback(e):_.measureCallBack(e);case 6:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}(),isTerrain:"tostick"===n},v=0,y=Object.keys(d);v<y.length;v++)b=y[v],A[b]=d[b];A=Object.assign(A,this.options),"MeasureStickLengthTool"===e?e="MeasureLengthTool":"MeasureStickAreaTool"===e&&(e="MeasureAreaTool"),w=new Cesium[e](g,A),this.measure=w,window.vueCesium.MeasureToolManager.addSource(p,m,w),w.startTool();case 19:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),deleteMeasure:function(){this.$_deleteManger("MeasureToolManager",(function(t){t.source&&t.source.stopTool()}))},waitAreaResult:function(){var t=wr(yr().mark((function t(){var e=this;return yr().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){setTimeout((function(){var n=e.measure._area;t(n)}),100)})));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),remove:function(){this.deleteMeasure(),this.$refs.measureTool.activeMode="",this.$refs.measureTool.measureResult=null},resizeStyles:function(){var t,e,n;this.measureConfig.lineColor=(null===(t=this.featureConfig)||void 0===t||null===(e=t.feature)||void 0===e||null===(n=e.line)||void 0===n?void 0:n.color)||"#1890ff"}}},xr=_r,Sr=je(xr,Hn,zn,!1,null,null,null),Cr=Sr.exports,Mr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},Lr=[],Tr={inject:["viewer","Cesium","vueCesium"],props:{vueKey:{type:String,default:"default"},vueIndex:{type:[Number,String],default:function(){return Number((1e8*Math.random()).toFixed(0))}},terrainGraphics:{type:Object,default:function(){return{perPositionHeight:!0,material:new Cesium.Color(33/255,150/255,243/255,0),outline:!1,outlineColor:Cesium.Color.RED}}}},data:function(){return{}},methods:{$_getCesium:function(){var t=this.Cesium;return t||(t=window.Cesium),t},$_draw:function(t,e,n,r){window.drawElement=new window.Cesium.DrawElement(e);var i=this;window.drawElement[t]({callback:function(t){var o=t.positions;i[n](e,o,r)}})},$_initAnalysis:function(t,e,n){var r=this;window.vueCesium.getViewerByInterval((function(i){r.$_draw(t,i,e,n)}),this.vueKey)},$_getManager:function(t,e){var n,r=this.waitManagerName;if(t&&(r=t),"GlobesManager"===r){var i=this.viewer;if("default"===this.vueKey)n=i;else{var o=window.vueCesium.GlobesManager;o[this.vueKey]&&(n=o[this.vueKey][0].source)}}else n=window.vueCesium[r].findSource(this.vueKey,this.vueIndex);return e&&e(n),n},$_deleteManager:function(t,e){var n=this.vueKey,r=this.vueIndex,i=window.vueCesium[t].findSource(n,r);i&&(e&&e(i),window.vueCesium.MeasureToolManager.deleteSource(n,r))},$_getM3DByInterval:function(t,e,n){e=e||this.vueKey,n=n||this.vueIndex,n instanceof Array||(n=[n]);var r=Kn(this,"vueCesium"),i=void 0,o=[],a=setInterval((function(){for(var s=!0,c=0;c<n.length;c++)i=r.M3DIgsManager.findSource(e,n[c]),i&&i.hasOwnProperty("source")&&i.source||(s=!1);if(s){for(var u=0;u<n.length;u++)i=r.M3DIgsManager.findSource(e,n[u]),o.push(i);t(o),clearInterval(a),this.interval=void 0}}),50);this.interval=a},$_getG3DByInterval:function(t,e,n){e=e||this.vueKey,n=n||this.vueIndex;var r=Kn(this,"vueCesium"),i=void 0,o=[];n instanceof Array||(n=[n]);var a=setInterval((function(){for(var s=!0,c=0;c<n.length;c++)i=r.G3DManager.findSource(e,n[c]),i&&i.hasOwnProperty("options")&&i.options||(s=!1);if(s){for(var u=0;u<n.length;u++)i=r.G3DManager.findSource(e,n[u]),o.push(i);t(o),clearInterval(a)}}),50);this.interval=a},$_getM3DSetArray:function(t,e,n,r){e=e||this.vueKey,n=n||this.vueIndex,n instanceof Array||(n=[n]);var i=Kn(this,"vueCesium"),o=void 0,a=void 0,s=[],c=setInterval((function(){for(var r=0;r<n.length;r++)if(o=i.M3DIgsManager.findSource(e,n[r]),o)for(var u=0;u<o.source.length;u++)s=s.concat(o.source[u]);for(var l=0;l<n.length;l++)if(a=i.G3DManager.findSource(e,n[l]),a){var h=a.options.m3ds;s=s.concat(h)}t(s),clearInterval(c),this.interval=void 0}),50);this.interval=c},$_getAll3DTileSetArray:function(t,e,n,r){e=e||this.vueKey,n=n||this.vueIndex,n instanceof Array||(n=[n]);var i=Kn(this,"vueCesium"),o=void 0,a=void 0,s=void 0,c=[],u=setInterval((function(){for(var r=0;r<n.length;r++)if(o=i.M3DIgsManager.findSource(e,n[r]),o)for(var l=0;l<o.source.length;l++)c=c.concat(o.source[l]);for(var h=0;h<n.length;h++)if(a=i.G3DManager.findSource(e,n[h]),a){var d=a.options.m3ds;c=c.concat(d)}for(var f=0;f<n.length;f++)s=i.Tileset3DManager.findSource(e,n[f]),s&&(c=c.concat(s.source));t(c),clearInterval(u),this.interval=void 0}),50);this.interval=u},$_degreeFromCartesian:function(t){var e={},n=Cesium.Cartographic.fromCartesian(t);return e.longitude=Cesium.Math.toDegrees(n.longitude),e.latitude=Cesium.Math.toDegrees(n.latitude),e.height=n.height,e},$_getM3DBox:function(t){var e=t._root.boundingVolume.northeastCornerCartesian,n=t._root.boundingVolume.southwestCornerCartesian,r=this.$_degreeFromCartesian(n),i=this.$_degreeFromCartesian(e),o={},a={};o.longitude=r.longitude,o.latitude=i.latitude,o.height=r.height,a.longitude=i.longitude,a.latitude=r.latitude,a.height=i.height;var s=Cesium.Cartesian3.fromDegrees(o.longitude,o.latitude,o.height),c=Cesium.Cartesian3.fromDegrees(a.longitude,a.latitude,a.height),u=Cesium.Cartesian3.distance(c,n),l=Cesium.Cartesian3.distance(s,n),h=t._root.boundingVolume.maximumHeight-t._root.boundingVolume.minimumHeight;return{length:u,width:l,height:h}}}};function kr(t){return kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(t)}function Er(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Er=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==kr(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(kr(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Or(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Pr(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Or(o,r,i,a,s,"next",t)}function s(t){Or(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Br(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ir(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Br(Object(n),!0).forEach((function(e){Dr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dr(t,e,n){return(e=Nr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Nr(t){var e=Fr(t,"string");return"symbol"==kr(e)?e:e+""}function Fr(t,e){if("object"!=kr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=kr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var jr={name:"mapgis-3d-compare",inject:["Cesium","vueCesium","viewer"],mixins:[Tr],props:Ir(Ir({},ln),{},{beforeLayers:{type:Array,default:function(){return[]}},afterLayers:{type:Array,default:function(){return[]}},orientation:{type:String,default:"horizontal"}}),data:function(){return{moveActive:!1,slider:void 0}},watch:{beforeLayers:{handler:function(t){this.compare()},deep:!0},afterLayers:{handler:function(t){this.compare()},deep:!0},vueKey:function(){this.compare()},orientation:function(){this.compare()}},mounted:function(){this.mount()},beforeDestroy:function(){this.umount()},methods:{createCesiumObject:function(){var t=Pr(Er().mark((function t(){return Er().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.baseUrl,this.options,t.abrupt("return",new Promise((function(t){t()}),(function(t){})));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){this.viewer;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this,i=this.createCesiumObject();i.then((function(i){r.$emit("load",r),t.CompareManager.addSource(e,n,i,{beforeM3DSet:null,afterM3DSet:null}),r.compare()}))},$_getM3DSet:function(t){this.Cesium;for(var e=this.vueCesium,n=this.vueKey,r=this.vueIndex,i=this,o=[],a=[],s=function(t){var a=i.beforeLayers[t];i.$_getAll3DTileSetArray((function(a){a&&a.length>0&&(o=o.concat(a));for(var s=0;s<a.length;s++)a[s].swipeEnabled=!0,a[s].swipeInverse=-1;t===i.beforeLayers.length-1&&e.CompareManager.changeOptions(n,r,"beforeM3DSet",o)}),n,a,["m3d","g3d"])},c=0;c<i.beforeLayers.length;c++)s(c);for(var u=function(t){var o=i.afterLayers[t];i.$_getAll3DTileSetArray((function(o){o&&o.length>0&&(a=a.concat(o));for(var s=0;s<o.length;s++)o[s].swipeEnabled=!0,o[s].swipeInverse=1;t===i.afterLayers.length-1&&e.CompareManager.changeOptions(n,r,"afterM3DSet",a)}),n,o,["m3d","g3d"])},l=0;l<i.afterLayers.length;l++)u(l)},compare:function(){this.remove();var t=this.viewer,e=this.Cesium,n="slider",r="compare-swiper";"vertical"===this.orientation?(n="slider",r="compare-swiper"):"horizontal"===this.orientation&&(n="slider slider-horizontal",r="compare-swiper compare-swiper-horizontal");var i,o=document.getElementById(t.container.id).parentNode;this.slider=o.getElementsByClassName("slider"),0===this.slider.length?(this.slider=document.createElement("div"),this.slider.className=n,i=document.createElement("div"),i.className=r,this.slider.appendChild(i),o.appendChild(this.slider)):(this.slider=this.slider[0],i=document.getElementsByClassName("compare-swiper")[0]),this.slider.className=n,this.slider.style.left="",this.slider.style.top="",i.className=r;var a=t.imageryLayers._layers;if(this.beforeLayers.length&&this.afterLayers.length)for(var s=1;s<a.length;s++)this.beforeLayers.includes(a[s].id)?(a[s].swipeEnabled=!0,a[s].swipeInverse=-1):this.afterLayers.includes(a[s].id)&&(a[s].swipeEnabled=!0,a[s].swipeInverse=1);else a[a.length-2].swipeEnabled=!1,a[a.length-1].swipeEnabled=!0;var c=.5,u=e.SwipeModeType.HORIZONTAL;"vertical"===this.orientation?(u=e.SwipeModeType.HORIZONTAL,c=this.slider.offsetLeft/this.slider.parentElement.offsetWidth):"horizontal"===this.orientation&&(u=e.SwipeModeType.VERTICAL,c=this.slider.offsetTop/this.slider.parentElement.offsetHeight),t.scene.swipeController={region:c,type:u,inverse:!0};var l=new e.ScreenSpaceEventHandler(this.slider);this.$_getM3DSet(c);var h=this;l.setInputAction((function(){h.moveActive=!0}),e.ScreenSpaceEventType.LEFT_DOWN),l.setInputAction((function(){h.moveActive=!1}),e.ScreenSpaceEventType.LEFT_UP),l.setInputAction((function(){h.moveActive=!0}),e.ScreenSpaceEventType.PINCH_START),l.setInputAction((function(){h.moveActive=!1}),e.ScreenSpaceEventType.PINCH_END),l.setInputAction(h.move,e.ScreenSpaceEventType.MOUSE_MOVE),l.setInputAction(h.move,e.ScreenSpaceEventType.PINCH_MOVE)},move:function(t){if(this.moveActive){var e,n=this.viewer,r=this.slider;if("vertical"===this.orientation){var i=t.endPosition.x;e=(r.offsetLeft+i)/r.parentElement.offsetWidth,r.style.left=100*e+"%"}else if("horizontal"===this.orientation){var o=t.endPosition.y;e=(r.offsetTop+o)/r.parentElement.offsetHeight,r.style.top=100*e+"%"}n.scene.swipeController.region=e,this.compareM3D(e)}},compareM3D:function(t){this.Cesium;var e=this.vueCesium,n=this.vueKey,r=this.vueIndex,i=e.CompareManager.findSource(n,r);if(i&&i.options){var o=i.options,a=o.beforeM3DSet,s=o.afterM3DSet;if(a)for(var c=0;c<a.length;c++)void 0!==t?(a[c].swipeEnabled=!0,a[c].swipeInverse=-1):(a[c].swipeEnabled=!1,a[c].swipeInverse=0);if(s)for(var u=0;u<s.length;u++)void 0!==t?(s[u].swipeEnabled=!0,s[u].swipeInverse=1):(s[u].swipeEnabled=!1,s[u].swipeInverse=0)}},umount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex;if(t&&t.CompareManager){var r=t.CompareManager.findSource(e,n);r&&this.remove(),t.CompareManager.deleteSource(e,n),this.$emit("unload",this)}},remove:function(){var t=this.viewer,e=t.imageryLayers._layers;e.forEach((function(t){t.swipeEnabled=!1,t.swipeInverse=0}));var n=document.getElementsByClassName("slider");if(n.length>0){var r=document.getElementById(t.container.id).parentNode;r.removeChild(n[0])}this.compareM3D()}}},Rr=jr,Hr=(n("f9c8"),je(Rr,Mr,Lr,!1,null,null,null)),zr=Hr.exports,Ur=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-legend"},[n("mapgis-ui-select",{staticStyle:{width:"100%"},attrs:{"default-value":"全部"},on:{change:t.handleChange}},[n("mapgis-ui-select-option",{attrs:{value:"全部"}},[t._v(" 全部 ")]),t._l(t.layers,(function(e,r){return n("mapgis-ui-select-option",{key:r,attrs:{value:r}},[t._v(t._s(e.layerName)+"\n ")])}))],2),n("div",{staticClass:"legend-area"},t._l(t.legends,(function(e,r){return n("li",{key:r},[n("img",{attrs:{src:"data:image/png;base64,"+e.imageData}}),n("span",[t._v(t._s(e.label))])])})),0)],1)},Vr=[],Yr={name:"mapgis-3d-arcgis-legend",inject:["Cesium","viewer","vueCesium"],data:function(){return{layers:[],legends:[],allLegends:[]}},mounted:function(){this.getLegendUrl()},methods:{getLegendInfo:function(t){var e=this,n=new RegExp("(?<=MapServer).*","i"),r=t.replace(n,"/legend?f=pjson");fetch(r).then((function(t){return t.json()})).then((function(t){t&&t.error?e.$message.info(t.error.message):(e.layers=e.layers.concat(t.layers),t.layers.forEach((function(t){e.allLegends=e.allLegends.concat(t.legend)})),e.legends=e.allLegends)})).catch((function(t){console.log(t)}))},getLegendUrl:function(){var t=this,e=this.vueCesium,n=[];Object.keys(e.ArcgisManager).forEach((function(t){"vueKey"!==t&&(n=n.concat(e.ArcgisManager[t]))})),n.forEach((function(e){var n=e.source._imageryProvider.url,r=new RegExp("\\/arcgis\\/rest\\/services","i");r.test(n)&&t.getLegendInfo(n)}))},handleChange:function(t){this.legends="全部"===t?this.allLegends:this.layers[t].legend}}},Gr=Yr,Qr=(n("931f"),je(Gr,Ur,Vr,!1,null,"2c7f23c2",null)),Wr=Qr.exports,Kr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.hasFeatures,expression:"hasFeatures"}]},[n("div",{staticClass:"mapgis-table-collapse-wrapper"},[n("mapgis-ui-div",{directives:[{name:"show",rawName:"v-show",value:!t.visible,expression:"!visible"}],staticClass:"mapgis-table-collapse"},[n("div",{on:{click:t.showTable}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-table"}}),t._v("属性表\n ")],1)])],1),n("mapgis-ui-div",{staticClass:"mapgis-baseTable"},[t.toolbar&&t.visible?n("mapgis-ui-div",{staticClass:"mapgis-baseTable-toolbar",style:{bottom:t.toolbarBottom},attrs:{id:t.toolbarId}},[n("div",{staticClass:"toolbar-num"},[t._v("\n 总共"+t._s(t.paginationCopy.total)+"条,已选"+t._s(t.selectData.length)+"条\n ")]),n("mapgis-ui-button-group",{staticClass:"toolbar-buttons"},[n("mapgis-ui-button",{attrs:{size:"small"},on:{click:t.$_exportData}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-export"}}),t._v("\n 导出\n ")],1),n("mapgis-ui-button",{attrs:{size:"small"},on:{click:t.$_fieldFilter}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-filter"}}),t._v("\n 字段过滤\n ")],1),n("mapgis-ui-button",{attrs:{size:"small"},on:{click:t.$_deleteMassFeature}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-delete"}}),t._v("\n 批量删除\n ")],1),n("mapgis-ui-button",{directives:[{name:"show",rawName:"v-show",value:t.showFullScene,expression:"showFullScene"}],attrs:{size:"small"},on:{click:t.$_fullScreen}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-fullscreen"}}),t._v("\n 全屏\n ")],1),n("mapgis-ui-button",{attrs:{size:"small"},on:{click:t.hideTable}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-close-circle"}}),t._v("\n 关闭\n ")],1)],1)],1):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:0===t.columnsCopy.length&&t.visible,expression:"columnsCopy.length === 0 && visible"}],staticClass:"mapgis-baseTable-nonData"},[n("div",{staticStyle:{width:"100%"}},[t._v("\n 暂无数据\n ")])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showFilter&&t.visible,expression:"showFilter && visible"}],staticClass:"mapgis-baseTable-fieldFilter",style:{overflowY:t.plainOptions.length>8?"scroll":"hidden",top:t.filterTop+"px",position:t.filterPosition},attrs:{id:t.columnFilterId}},[n("mapgis-ui-row",[n("mapgis-ui-checkbox",{attrs:{indeterminate:t.indeterminate,checked:t.checkAll},on:{change:t.$_checkAll}},[t._v("\n 全选\n ")])],1),n("mapgis-ui-row",[n("mapgis-ui-checkbox-group",{attrs:{options:t.plainOptions},on:{change:t.$_check},model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}})],1)],1),t.deletTable?t._e():n("mapgis-ui-table",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],attrs:{id:t.tableId,"data-source":t.dataSourceCopy,columns:t.columnsCopy,pagination:t.paginationCopy,scroll:t.scroll,"row-selection":t.rowSelection},on:{change:t.$_change},scopedSlots:t._u([t._l(t.columnsCopy,(function(e,r){return{key:e.dataIndex,fn:function(i,o){return n("div",{key:r},[n("div",{staticClass:"mapgis-baseTable-tableTd",on:{click:function(n){return t.$_onceClick(o.key,e.key)},dblclick:function(n){return t.$_doubleClick(o.key,e.key,o)}}},[t.editRowAndCol!==e.key+"_"+o.key?n("p",{staticClass:"mapgis-baseTable-content",style:{fontStyle:"null"===i?"italic":"normal"},attrs:{title:i}},[t._v("\n "+t._s(i)+"\n ")]):t._e(),t.editRowAndCol===e.key+"_"+o.key?n("mapgis-ui-input",{model:{value:o[e.key],callback:function(n){t.$set(o,e.key,n)},expression:"record[column.key]"}}):t._e()],1)])}}})),{key:"operation",fn:function(e,r){return t.editable?[n("mapgis-ui-popconfirm",{on:{confirm:function(e){return t.$_deleteFeature(r)}}},[t._v("\n 删除\n ")])]:void 0}}],null,!0)})],1)],1)},qr=[];function Xr(t){return Xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(t)}function $r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$r(Object(n),!0).forEach((function(e){Zr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zr(t,e,n){return(e=ti(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ti(t){var e=ei(t,"string");return"symbol"==Xr(e)?e:e+""}function ei(t,e){if("object"!=Xr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ni=K["MRFS"].FeatureService,ri=K["MRFS"].VFeature,ii={name:"mapgis-3d-table",props:{baseUrl:{type:String},dataSource:{type:[Array,Object]},columns:{type:Array,default:function(){return[]}},pagination:{type:Object,default:function(){return{total:0,pageSize:10}}},editable:{type:Boolean,default:!0},selectable:{type:Boolean,default:!0},autoEdit:{type:Boolean,default:!0},showFullScene:{type:Boolean,default:!1}},data:function(){var t=this;return{visible:!0,dataSourceCopy:[],dataSourceOrigin:[],featureSet:[],columnsCopy:[],columnsSave:[],columnsWidthSave:[],tableId:"table"+(1e3*Math.random()).toFixed(0),toolbarId:"toolbar"+(1e3*Math.random()).toFixed(0),columnFilterId:"columnFilter"+(1e3*Math.random()).toFixed(0),paginationCopy:{},checkedList:[],scroll:{},selectData:[],editRowAndCol:"",toolbar:!0,showFilter:!1,rowSelection:{onChange:function(e,n){t.rowSelection.selectedRowKeys=e,t.$_tableChanged(),t.$emit("selectedChange",e,n),t.$emit("selectedchange",e,n)},onSelect:function(e,n){t.$_select(e,n)},onSelectAll:function(e){t.$_selectAll(e)},selectedRowKeys:[]},pageInfo:void 0,sorterInfo:{orderField:"",isASC:!1},indeterminate:!0,checkAll:!1,plainOptions:[],toolbarBottom:0,fullScreen:!1,rowHeight:0,pageHeight:0,filterTop:6,filterPosition:"absolute",pageSize:10,baseUrlCopy:void 0,hasFeatures:!0,currentId:void 0,deletTable:!1,sortBack:{}}},watch:{dataSource:{handler:function(){this.$_initSource()},deep:!0},baseUrl:{handler:function(){this.baseUrlCopy=this.baseUrl,this.$_initTableFromUrl()}},pagination:{handler:function(){this.$_initPagination()},deep:!0}},created:function(){window.tableData||(window.tableData={})},mounted:function(){this.$_initTable(),this.$_registerMouseLeave(),this.$emit("loaded",this)},methods:{$_initTable:function(){this.pagination&&(this.paginationCopy=this.pagination,this.pageSize=this.pagination.pageSize),this.dataSource&&this.$_initSource(),this.baseUrl&&(this.baseUrlCopy=this.baseUrl,this.$_initTableFromUrl())},addTable:function(t,e){this.deletTable=!0,this.currentId=e,this.$nextTick((function(){if("string"===typeof t)this.baseUrlCopy=t,this.$_initTableFromUrl();else{if(!(t instanceof Object))throw new Error("请传入数据对象或者url!");this.$_initSource(t)}}))},$_initTableFromUrl:function(){var t=this;ni.get(this.baseUrlCopy,(function(e){e=JSON.parse(e),t.$_initSource(e)}),(function(t){console.log(t)}))},$_nullProperties:function(t){for(var e=!0,n=0;n<t.length;n++)if(e&&"{}"!==JSON.stringify(t[n].properties)){e=!1;break}return e},$_initSource:function(t){if(t=t||this.dataSource,this.dataSourceOrigin=t,this.sortBack={},this.rowSelection&&(this.rowSelection.selectedRowKeys=[]),!t)return this.hasFeatures=!1,this.$emit("createTableFailed","属性表","没有数据!"),void this.$emit("createLayerFailed",{message:"属性表",description:"数据量为0!"});if(this.hasFeatures=!0,t instanceof Array){if(0===t.length)return this.hasFeatures=!1,this.$emit("createTableFailed","属性表","没有数据!"),void this.$emit("createLayerFailed",{message:"属性表",description:"数据量为0!"});this.$_isFeatureSet(t)&&(this.$_getColumnsCopyByFeatureSet(t),this.$_applyColumnsToColumnsCopy(),this.$_initPlainOptions(),this.$_initCheckedList(),this.$_addOperationColumns(),this.featureSet=t,this.$_featureSetToDataSource(this.featureSet),this.$_drawTable())}else if(t instanceof Object){if(t.hasOwnProperty("selectedRowKeys")&&(console.log("dataSource.selectedRowKeys",t.selectedRowKeys),this.rowSelection.selectedRowKeys=t.selectedRowKeys),t.hasOwnProperty("pagination")){this.paginationCopy=Jr({},t.pagination);var e=this.paginationCopy.current;delete this.paginationCopy.current,this.paginationCopy.defaultCurrent=e||1}else this.paginationCopy=this.pagination;if(this.$_isZondyResult(t)){if(!t.SFEleArray||0===t.SFEleArray.length)return this.hasFeatures=!1,this.$emit("createTableFailed","属性表","没有数据!"),void this.$emit("createLayerFailed",{message:"属性表",description:"数据量为0!"});0===this.columnsCopy.length?(this.$_getColumnsCopyByZondySource(t),this.$_applyColumnsToColumnsCopy(),this.$_initPlainOptions(),this.$_initCheckedList(),this.$_addOperationColumns(),this.featureSet=ri.fromQueryResult(t),this.$_featureSetToDataSource(this.featureSet),this.$_drawTable()):(this.featureSet=ri.fromQueryResult(t),this.$_featureSetToDataSource(this.featureSet),this.$nextTick((function(){this.$_drawTableHeight()})))}else{var n=function(t,e){t.$_initCheckedList(),t.featureSet=e,t.$_featureSetToDataSource(e),t.$_drawTable(),t.$_addOperationColumns()},r=this.$_nullProperties(t.features);if(r)return this.$emit("createLayerFailed",{message:"属性表",description:"数据中不包含任何属性数据!"}),void(this.hasFeatures=!1);var i=ri.fromGeoJSON(t);this.paginationCopy.total=i.length,this.$_getColumnsCopyByFeatureSet(i,t.sortInfo),this.$_applyColumnsToColumnsCopy(),this.$_initPlainOptions(),this.deletTable=!1;var o=document.getElementById(this.tableId);if(o)n(this,i);else var a=this,s=setInterval((function(){var e=document.getElementById(a.tableId);e&&(clearInterval(s),n(a,i,t))}),30)}}},$_getColumnsCopyByZondySource:function(t){for(var e=t.AttStruct.FldName,n=[],r=0;r<e.length;r++)n.push({title:e[r],dataIndex:e[r],key:e[r],scopedSlots:{customRender:e[r]},align:"left",ellipsis:!0,sorter:function(t,e){return t[key]-e[key]},width:100});this.columnsCopy=n},$_getColumnsCopyByFeatureSet:function(t,e){if(t.length>0){var n=[];Object.keys(t[0].attributes).forEach((function(t){var r={title:t,dataIndex:t,key:t,scopedSlots:{customRender:t},align:"left",ellipsis:!0,sorter:function(e,n){return e[t]-n[t]},width:100};e&&t===e.key&&(r.defaultSortOrder=e.value),n.push(r)})),this.columnsCopy=n}},$_featureSetToDataSource:function(t){this.allDataSource=t,this.dataSourceCopy=[];for(var e=0;e<t.length;e++){for(var n=Object.assign(t[e].attributes,{}),r=0;r<this.columnsCopy.length;r++)if(t[e].attributes.hasOwnProperty(this.columnsCopy[r].dataIndex)){var i=t[e].attributes[this.columnsCopy[r].dataIndex];void 0!==i&&null!==i&&""!==i||(n[this.columnsCopy[r].dataIndex]="null")}else n[this.columnsCopy[r].dataIndex]="null";t[e].FID=t[e].FID||e+1,this.dataSourceCopy.push(Object.assign(n,{key:t[e].FID}))}},$_initPagination:function(){this.paginationCopy=JSON.parse(JSON.stringify(this.pagination))},$_applyColumnsToColumnsCopy:function(){if(this.columns.length>0)for(var t=0;t<this.columnsCopy.length;t++)for(var e=0;e<this.columns.length;e++)this.columns[e].key===this.columnsCopy[t].key&&(this.columnsCopy[t]=Object.assign(this.columnsCopy[t],this.columns[e]));this.columnsSave=this.columnsCopy,this.columnsWidthSave=JSON.parse(JSON.stringify(this.columnsCopy))},$_addOperationColumns:function(){if(this.editable){for(var t=!0,e=0;e<this.columnsCopy.length;e++)if("operation"===this.columnsCopy[e].dataIndex){t=!1;break}t&&this.columnsCopy.push({title:"删除",dataIndex:"operation",key:"operation",scopedSlots:{customRender:"operation"},align:"center",width:100,fixed:"right"})}},$_initPlainOptions:function(){this.plainOptions=[];for(var t=0;t<this.columnsCopy.length;t++)"operation"!==this.columnsCopy[t].dataIndex&&this.plainOptions.push(this.columnsCopy[t].title)},$_getTableEffectiveWidth:function(t){var e,n=document.getElementById(this.tableId);return e=t||n.offsetWidth,this.editable&&(e-=100),this.selectable&&(e-=60),e},$_initCheckedList:function(){function t(){for(var t=0;t<r.columnsCopy.length;t++){if(n+=r.columnsCopy[t].width,!(n<i))break;r.checkedList.push(r.columnsCopy[t].title),e.push(r.columnsCopy[t])}}this.checkedList=[];var e=[],n=0,r=this,i=this.$_getTableEffectiveWidth();if(this.columns.length>0){for(var o=0;o<this.columnsCopy.length;o++)this.columnsCopy[o].checked&&(e.push(this.columnsCopy[o]),n+=this.columnsCopy[o].width,this.checkedList.push(this.columnsCopy[o].title));0===e.length&&t()}else t();for(var a=0;a<e.length;a++)e[a].width=e[a].width/n*i;this.columnsCopy=e},$_drawTable:function(){for(var t=0,e=this.$_getTableEffectiveWidth(),n=0;n<this.checkedList.length;n++)for(var r=0;r<this.columnsCopy.length;r++)if(this.checkedList[n]===this.columnsCopy[r].title&&"key"!==this.columnsCopy[r].title){t+=this.columnsCopy[r].width;break}t>e?this.scroll={x:t}:(delete this.scroll.x,this.$nextTick((function(){this.dataSourceCopy.length>0&&this.$_drawTableHeight()})))},$_drawTableHeight:function(t){var e=document.getElementById(this.tableId),n=this.$_queryTag(e.childNodes,"mapgis-ui-table-body","div"),r=this.$_queryTag(n.childNodes,"mapgis-ui-table-row-level-0","tr"),i=this.$_queryTag(e.childNodes,"mapgis-ui-spin-container","div");this.rowHeight=r.offsetHeight;var o=this.$_queryTag(e.childNodes,"mapgis-ui-pagination","ul"),a=window.getComputedStyle(o),s=a.marginTop.replace("px",""),c=a.marginBottom.replace("px","");this.pageHeight=o.offsetHeight+Number(s)+Number(c);var u=(this.paginationCopy.pageSize+1.5)*this.rowHeight+this.pageHeight;i.style.height=u+"px",n.style.height=u+"px";var l=this;setTimeout((function(){l.$_drawToolBar(u)}),20)},$_drawToolBar:function(t){this.toolbarBottom=t+"px"},$_queryTag:function(t,e,n){var r;function i(t,e,n){for(var o=0;o<t.length;o++)if(t[o].localName===n&&"string"===typeof t[o].className&&t[o].className.indexOf(e)>-1){if(t[o].className.indexOf(e+"-")<0){r=t[o];break}}else i(t[o].childNodes,e,n)}return i(t,e,n),r},$_isZondyResult:function(t){var e=!0;return t.hasOwnProperty("AttStruct")&&t.hasOwnProperty("SFEleArray")&&t.hasOwnProperty("TotalCount")||(e=!1),e},$_isFeatureSet:function(t){for(var e=!0,n=0;n<t.length;n++)if(!(t[n].hasOwnProperty("geometry")&&t[n].hasOwnProperty("geometryType")&&t[n].hasOwnProperty("attributes")&&t[n].hasOwnProperty("style")&&t[n].hasOwnProperty("FID"))){e=!1;break}return e},$_getAllAttrData:function(){for(var t=Object.assign(this.featureSet,{}),e=0;e<t.length;e++)t[e].attributes=this.$_removeNullData(t[e].attributes);return t},$_removeNullData:function(t){var e={};return Object.keys(t).forEach((function(n){"string"===typeof t[n]&&t[n].indexOf("null")>-1?e[n]=null:e[n]=t[n]})),e},$_getIndexFromArray:function(t,e,n){for(var r=void 0,i=0;i<n.length;i++)if(n[i][t]===e){r=i;break}return r},$_deleteFeature:function(t){var e=this.$_getDataByKey(t.key),n=this.$_getIndexFromArray("key",t.key,this.dataSourceCopy),r=this.$_getIndexFromArray("FID",t.key,this.selectData);if(void 0!==n){this.dataSourceCopy.splice(n,1),this.featureSet.splice(n,1),void 0!==r&&this.selectData.splice(r,1);var i=this.rowSelection.selectedRowKeys.indexOf(t.key);i>-1&&this.rowSelection.selectedRowKeys.splice(i,1),this.paginationCopy.total=this.dataSourceCopy.length,this.$_tableChanged(),this.$emit("dataChanged",this.$_getGeoJsonFromData()),this.$emit("deleted",e)}},$_deleteMassFeature:function(){for(var t=[],e=[],n=0;n<this.dataSourceCopy.length;n++)if(this.$_getObjectFromArray("key",this.dataSourceCopy[n].key,this.selectData)){var r=this.rowSelection.selectedRowKeys.indexOf(this.dataSourceCopy[n].key);r>-1&&this.rowSelection.selectedRowKeys.splice(r,1)}else t.push(this.dataSourceCopy[n]);for(var i=0;i<this.featureSet.length;i++)this.$_getObjectFromArray("key",this.featureSet[i].attributes.key,this.selectData)||e.push(this.featureSet[i]);this.dataSourceCopy=t,this.featureSet=e,this.paginationCopy.total=this.dataSourceCopy.length,this.$_tableChanged(),this.$emit("deleteMass",this.selectData),this.$emit("dataChanged",this.$_getGeoJsonFromData()),this.selectData=[]},$_getObjectFromArray:function(t,e,n){for(var r=void 0,i=0;i<n.length;i++)if(e===n[i].attributes[t]){r=n[i];break}return r},$_select:function(t,e){for(var n,r=this.$_getDateAuto(this.featureSet),i=0;i<r.length;i++)if(t.key===r[i].FID){n=r[i],n.attributes=this.$_removeNullData(n.attributes);break}for(var o=-1,a=0,s=[],c=0;c<this.selectData.length;c++)if(s.push(this.selectData[c].FID),this.selectData[c].FID===n.FID){o=c;break}if(-1===o){for(var u=0;u<s.length;u++)n.FID>s[u]&&a++;this.selectData.splice(a,0,n)}else this.selectData.splice(o,1);this.$_tableChanged(),this.$emit("selected",n,this.selectData,e)},$_getDateAuto:function(t){var e=[];if(this.autoEdit)if(this.pageInfo)for(var n=(this.pageInfo.current-1)*this.pageInfo.pageSize,r=n;r<n+this.pageInfo.pageSize;r++)e.push(t[r]);else for(var i=0;i<this.paginationCopy.pageSize;i++)e.push(t[i]);return e},$_selectAll:function(t){var e=this.featureSet,n=[];if(e=this.$_getDateAuto(e),t)for(var r=0;r<e.length;r++){for(var i=!1,o=[],a=0;a<this.selectData.length;a++)if(o.push(this.selectData[a].FID),this.selectData[a].FID===e[r].FID){i=!0;break}if(!i){for(var s=0,c=0;c<o.length;c++)e[r].FID>o[c]&&s++;this.selectData.splice(s,0,e[r])}}else{for(var u=0;u<this.selectData.length;u++)for(var l=0;l<e.length;l++)if(this.selectData[u].FID===e[l].FID){this.selectData[u]=[];break}n=[].concat(this.selectData),this.selectData=[];for(var h=0;h<n.length;h++)0!==n[h].length&&this.selectData.push(n[h])}this.$_tableChanged(),this.$emit("selectAll",this.selectData,t),this.$emit("selectall",this.selectData,t)},$_change:function(t,e,n,r){console.log("sorter",n),n.hasOwnProperty("order")||(n.order="");var i={};i.orderField=n.field,"ascend"===n.order?i.isAsc=!0:"descend"===n.order?i.isAsc=!1:""===n.order&&(i.isAsc=!1,i.noSort=!0),this.pageInfo?t.current!==this.pageInfo.current?(this.$emit("pageChanged",t,i,r),this.$emit("pagechanged",t,i,r)):this.$emit("sorted",i,t,r):n.hasOwnProperty("columnKey")?this.$emit("sorted",i,t,r):(this.$emit("pageChanged",t,i,r),this.$emit("pagechanged",t,i,r)),this.pageInfo=t,this.sorterInfo=i;var o=void 0;o=!i.hasOwnProperty("noSort")&&(i.isAsc?"ascend":"descend"),this.sortBack={},this.sortBack.key=i.orderField,this.sortBack.value=o,this.$_tableChanged(),this.$emit("changed",t,e,i,r)},$_onceClick:function(t,e){if(this.editRowAndCol!==e+"_"+t){if(this.editRowAndCol.length>0){var n=this.editRowAndCol.split("_"),r=n[n.length-1],i=this.$_getDataByKey(r);this.$_tableChanged(),this.$emit("edited",i,this.$_getGeoJsonFromData()),this.$emit("dataChanged",this.$_getGeoJsonFromData())}this.editRowAndCol=""}var o=this.$_getDataByKey(t);this.$emit("click",o,e)},$_getGeoJsonFromData:function(){for(var t={type:"FeatureCollection",features:[]},e=0;e<this.dataSourceCopy.length;e++)if(this.dataSourceOrigin.hasOwnProperty("features"))t.features.push({type:"Feature",geometry:this.dataSourceOrigin.features[e].geometry,properties:this.dataSourceCopy[e]});else if(this.$_isZondyResult(this.dataSourceOrigin)){var n=ri.fromQueryResult(this.dataSourceOrigin);t.features.push({type:"Feature",geometry:n[e].geometry,properties:this.dataSourceCopy[e]})}else this.dataSourceOrigin instanceof Array&&t.features.push({type:"Feature",geometry:this.dataSourceOrigin[e].geometry,properties:this.dataSourceCopy[e]});return t},$_getDataByKey:function(t){for(var e,n=0;n<this.dataSourceCopy.length;n++)if(Number(t)===this.dataSourceCopy[n].key){e=n;break}var r=JSON.parse(JSON.stringify(this.dataSourceCopy[e]));delete r.key,this.dataSourceCopy[e].attributes=r,r=this.$_removeNullData(r);var i=this.$_getAllAttrData();return i[e].attributes=r,i[e]},$_doubleClick:function(t,e,n){var r=this.$_removeNullData(n),i=this.$_getAllAttrData(),o=r[e];o=o||null,this.curruntKey=e,this.editable&&(this.editRowAndCol=e+"_"+t,this.currentRecord=n),this.$emit("doubleClick",t-1,e,o,r,i[t-1]),this.$emit("doubleclick",t-1,e,o,r,i[t-1])},$_check:function(t){this.indeterminate=this.checkedList.length<this.plainOptions.length,this.checkAll=this.checkedList.length===this.plainOptions.length;for(var e=[],n=0;n<this.checkedList.length;n++)for(var r=0;r<this.columnsSave.length;r++)this.checkedList[n]===this.columnsSave[r].title&&e.push(Object.assign(this.columnsSave[r],{width:this.columnsWidthSave[n].width}));this.columnsCopy=e,this.editable&&this.columnsCopy.length>0&&(this.$_addOperationColumns(),this.$_drawTable()),this.$_setRowSelect()},$_setRowSelect:function(){var t=this;0===this.columnsCopy.length?this.rowSelection=void 0:this.rowSelection={onChange:function(e,n){t.$_tableChanged(),t.$emit("selectedChange",e,n),t.$emit("selectedchange",e,n)},onSelect:function(e,n){t.$_select(e,n)},onSelectAll:function(e){t.$_selectAll(e)}}},$_checkAll:function(t){if(t.target.checked){this.checkedList=this.plainOptions;for(var e=[],n=0;n<this.checkedList.length;n++)for(var r=0;r<this.columnsSave.length;r++)this.checkedList[n]===this.columnsSave[r].title&&(this.columnsSave[r].width=this.columnsWidthSave[r].width,e.push(this.columnsSave[r]));this.columnsCopy=e,this.editable&&this.columnsCopy.length>0&&this.$_addOperationColumns(),this.$_drawTable()}else this.checkedList=[],this.columnsCopy=[];this.indeterminate=!1,this.checkAll=t.target.checked,this.$_setRowSelect()},$_fieldFilter:function(){this.showFilter=!this.showFilter},$_exportData:function(){this.$emit("exportData",this.$_getGeoJsonFromData())},showTable:function(){this.visible=!0},$_tableChanged:function(){var t=this.$_getGeoJsonFromData();console.log("this.rowSelection.selectedRowKeys",this.rowSelection.selectedRowKeys),t.selectedRowKeys=[].concat(this.rowSelection.selectedRowKeys),this.pageInfo?t.pagination=Jr({},this.pageInfo):(t.pagination=Jr({},this.paginationCopy),t.pagination.current=1),t.sortInfo=this.sortBack,this.$emit("tableChanged",t)},hideTable:function(){this.$emit("hideTable"),this.visible=!1},$_registerMouseLeave:function(){var t=document.getElementById(this.columnFilterId),e=this;t.onmouseleave=function(){e.showFilter=!1}},$_fullScreen:function(){var t=document.getElementById(this.toolbarId),e=document.getElementById(this.tableId);if(this.fullScreen)e.removeAttribute("style"),e.classList.remove("mapgis-baseTable-fullScreen"),this.$nextTick((function(){var t=document.getElementById(this.toolbarId),e=document.getElementById(this.tableId);t.style="",this.toolbarBottom=e.offsetHeight-1+"px",t.style.position="absolute",t.style.width="100%",this.filterTop=6,this.filterPosition="absolute";for(var n=this.$_getTableEffectiveWidth(),r=0,i=0;i<this.columnsCopy.length;i++)for(var o=0;o<this.columnsWidthSave.length;o++)if(this.columnsCopy[i].key===this.columnsWidthSave[o].key){this.columnsCopy[i].width=this.columnsWidthSave[o].width,r+=this.columnsCopy[i].width;break}r>n?this.scroll.x=n:delete this.scroll.x})),this.$emit("originScreen",this.$_getPageInfo(this.pageSize),this.sorterInfo),this.$emit("originscreen",this.$_getPageInfo(this.pageSize),this.sorterInfo),this.fullScreen=!1;else{var n=Number(document.body.scrollHeight);e.style.height=n+"px",e.style.top=t.offsetHeight+"px",e.classList.add("mapgis-baseTable-fullScreen"),t.style.top="0",t.style.position="fixed",t.style.width=document.body.scrollWidth+"px",this.filterTop=this.rowHeight+6,this.filterPosition="fixed";for(var r=this.$_getTableEffectiveWidth(document.body.scrollWidth),i=0,o=0;o<this.columnsCopy.length;o++)for(var a=0;a<this.columnsWidthSave.length;a++)if(this.columnsCopy[o].key===this.columnsWidthSave[a].key){this.columnsCopy[o].width=this.columnsWidthSave[a].width,i+=this.columnsCopy[o].width;break}i>r?this.scroll.x=r:delete this.scroll.x,this.pageSize=this.pagination.pageSize;var s=parseInt((n-this.pageHeight-t.offsetHeight)/this.rowHeight);this.$emit("fullScreen",this.$_getPageInfo(s-2),this.sorterInfo),this.$emit("fullscreen",this.$_getPageInfo(s-2),this.sorterInfo),this.fullScreen=!0}},$_getPageInfo:function(t){var e={};return this.pageInfo?(e=this.pageInfo,e.pageSize=t):(e.current=1,e.pageSize=t),e}}},oi=ii,ai=(n("4dca"),je(oi,Kr,qr,!1,null,null,null)),si=ai.exports,ci=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"div_inline"},[n("mapgis-ui-input-group",{staticStyle:{display:"flex"},attrs:{compact:""}},[n("mapgis-ui-select",{staticStyle:{width:"155px","padding-right":"5px"},attrs:{"default-value":"lonlat"},on:{change:t.handleChange}},[n("mapgis-ui-select-opt-group",{attrs:{label:"定位点"}},[n("mapgis-ui-select-option",{attrs:{value:"lonlat"}},[t._v("\n 经纬度\n ")]),n("mapgis-ui-select-option",{attrs:{value:"WebMecro"}},[t._v("\n Web墨卡托\n ")])],1),n("mapgis-ui-select-opt-group",{attrs:{label:"图幅号"}},[n("mapgis-ui-select-option",{attrs:{value:"NewMapNum"}},[t._v("\n GB/T 13989-92\n ")])],1)],1),n("mapgis-ui-input",{staticStyle:{width:"55%","padding-right":"5px"},attrs:{placeholder:t.inputDefaultVal,"allow-clear":"",id:"inputVal"}})],1),n("mapgis-ui-button",{attrs:{shape:"circle",type:"primary",size:"small"},on:{click:t.locateToMap}},[n("mapgis-ui-iconfont",{style:{fontSize:"16px"},attrs:{type:"mapgis-target-lock",theme:"filled"}})],1),t.locateMarker?n("mapgis-3d-dynamic-marker-layer",{attrs:{data:t.locateFeature,fitBound:t.fitBound,layerStyle:t.layerStyle,highlightStyle:t.highlightStyle},scopedSlots:t._u([{key:"popup",fn:function(e){var r=e.marker;return n("mapgis-ui-card",{},[t._v("\n "+t._s(r.fid)+"\n ")])}}],null,!1,3530197095)}):t._e()],1)},ui=[],li=K["Style"].MarkerStyle,hi=(K["Style"].PointStyle,K["Style"].FillStyle),di="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABcCAYAAADNqvPKAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAD4FJREFUeJztXAl0VOUV/mefyWSbLIQtIawBUiAckEVaC7hUT+vpaU9pj7bao6eKR6BFisfl2GprES1Yai1QQaSIu2xVqy0VqIqKIIpWtMWyhoRsk1nfzJu3Te/933uTN1symcwWTu+cm5lkXt77/+//7nfv/d8kevJ/69X0+R5AoVuhAKTTeEFZrgFSQdBr3JDg+9if5Q3AbAOUDBB0I7hJ86x17XsGEg9azsDKFkDaFVdB0QJh1rgl5jn2tepGjecMrEwDpAUmGSgWxa0/GTdywp2NY2Y/esmkGx+bNemW38+adOv908YtXNk4evY0R2k5HqM5XgVNyzIVqKyBlCmAEgGjgkNBubTaUblq+oRrt86bsurVhTP3HbhqdtvN42s/XFQ/dO/8morHvzakYs1l4NeOHLJ70aihezfMmXzuratnd76+8JK3X7isafsfZzcuWTyhbhLpAU0FKxGjMmaZAEgbSlpgKEt+3TT+G89f1rTlwenjj185vPKZmZVlt08sK2oaU2oz1BdbySi7lYwsspCRdgsZAc+18P2oYhupBx9dXEQaym2N0ypKvnlpdfmqG8YO/+DVhTMO/mnu5BUAYh1JDlTGGDUQgJJpDAXmgWnjFuyZP2P/lcMqX5rmKPnO2GKbfVSRjYywWUmN1UKqTCbiMJtIuUn2MmPP63KTkVTAe1XgQywWMhSOrwXwRtttZGKpfeKsCscvbptQ9+Gf501Zfc2IqmGkByitqGcEpHQBSgQO1Zg7JtU3vfz16TuuGl61u6GsaGodTAoBqbSYSYnZSOwmA7Ea9MQEbtTpiB7Ogm6AL+j0Nfwc3zPCNxY4rshoIMUIHPz+EBswDdg2usRmbaooW3zn5DEfPjG3cWVTRWkZ6WFTxkBKB6CE4CwcWlm9/atTNn63ruafjWX2+XVFyBQzsMFA7EY9scBk1ZEnKn504TD1RAWSfJEwMQNoVjhPqdFIqi0mMtxmhlC0lsysKLv34abxH62dOfF6Es+mAYVcfwGKBYeK8K0TaicCc/ZNLiv5QS0wBlcZV9sGK2/U6ykjdIqrFk7RIxfG36WMA6bBSzOctxiAqgBmjoDrjS4tqp5bVbZh27yp68YU20pIT7YbEEj9AShWjKnePNg0/prv1w/dN6bEVo8r6rAYiA3DRy9PRMZEnu5AH+p5FKzg/GEIVx2ErR5C2AShZyWN5fYbfzujYeeiUTW1JFq806rGUwUoUaYyb5w9+efzaxzb62xWexUMsBgYY9Hp6Zt6OBzGTz1luvTD6bnhgdcxwzWLDAYq7sNA7xpK7HNuHjfy73c1jp5DonUpKwxKqDlb5n5lLWSne4fZzAaHxQgDlFmji6zRwBmTKqPwenp4NsH1i4FN1TYTlg8jLh9euef+qeMuJ4nLgIwBpIIUAWfjrMZ7JpXab8LsVG4yg3AaaNbBhzrmcA5dFisIaXATsMkG+oRlQp3NYp03pPwZYNJs0iPc/Soo+wJIyxx086MzGm5oLC9aWQN6U4Yp24gpWdGFbMRSiq5THMsEZJINtAmZXWszWxfUOF6+edyIsaSHSSmLdm8AxbYPpp9OHDV1qqP44Roo3lBvMJPoldXLNWt6YxMy2QhMQj0sByYNs1lKvjW8ehtIQgmJZlGflgqDaGiNhkp4QU35lhqL2Vpq1kNYQfomSiKGkYULyHE8OHCjUjc5QLyhnWn8WUPdahLNoj5DLRlAccJ81+T6e4bbrGMxU1BwdHJtUnBbgIrRwWPNBGMtAinAMmBMcdGPfjllzAISn/qTWm8MioCzZEJtI/RSiyk4BqXwwyMKgC19uR7cBOO1w7iroEab7ihZi9FAUmxHEgEUx565laX3guCZsGVAAdTlIIVn4hFdAhCqm5Bc6pc31N1CUgyz3kKMArS0oXbKMJv1Gux/zNhMqm8XgCCnKtq0BADBtirFJETDsjlVZWUkhYyWjEGRfnGGo2RFKcCP7YOBAhMeFKEV69gIQ0VCikCTHGZj5aK6ITeSFArHWICiwuvKoRXV0JFfZQdqIkX1cn2f99Dp7yMSarTJ1dFQq7dbfkyiNxX6zSDD1cMqvgfFoJU2n9j1hHVZ661y4fqwXB9hW+QwmceunFg3k/TR7ffGID00ft9GcMxEF6mS8x0q6boqSLgDgCyyQ50yocR2HekjkyXNYlfUOKqgwJphVXb9BqPuJAMKK0UsV6rMpitIT4glDDN9LDDqwaDyl1iMeoPJoG50yb9bAJGStqvT1INQY5tkNxlGXDeqpo6kE2JVZuMUM25KUd0Z3OEV62pGwwJyfLFtSgw4USAlDbESo2Gsiah1T/4nlbEQU/iE80KAIOVPTodBOiiqGvAug045It/hkWmXO35I+QbD2GTgxAKkPUBn1ZGhVIyoroUvGpFW59Kzd0SqSJLwigUo6gDohIv0gzy19xVqCJIR1CQRc5IBpAEpbA8r7LkYnSjP2OgnY08igCIZUQoTRj4ZuShdUp8lwmnmnhKD6MEhUewW4AxCWMIgI/LXi+OBcxHp3MIkJElODThxIGkB0h4UDojiSR7gFQFqqQBCItOO88L5+QXhjDZyUg2xsIcTP2LhBHiSfE8mky4pCy7AvEKCRLpD/BHtvFMFSLrAch8EBQSIANo0VrOuC7lyQSQkBJOCKBHfcXr34XyThVlsiIWVg6U32l3v+QXRHRQEirYUlgZ9qEnUJdAekbAAkIcXjh3o9DjVOafCIBUo6bg3wDg57kAQwwzBybu0DvyBAInwzMGcgpJIukL8WzBXUQNO6iGGfo4J7WR4GW0q1lL+WTBQ9ohimIaXD+b1sYd5qTf2JGOQ+gvipjMdb7p5sTMIQctLknKR/GtIuo5j5wAkBrQV2HP4ueau/6bDoEiYuXiBu8CGngMtoqhj7TAYWSQp48YoYAEcH+jq2UBoG8xR6A2cZAxSQwyRFQ46fVs9vMgHACBeHLxijePGKIDMRVwhsW17c+ceZY5iMnB6AyiiQ6+0uZpb2dBuBlDnFLGmAA2ShzpeFOcggOOBeZxhgxvOBbmABpx+MUgLEmXRMU/gcdAiEkAtEsODjkU4Xo7WPRJxc6Jzd6trO+nRnqQC3RtARPPL4rbmrs/bWWGvH0AKUbEeHIWjOk5YU6XuEVF7nvzYE/CQPsQ5VQapWiR+6mXWegSZRdwg0iKVPZi53Jzgfq3dvZnI4qwFKKn19fkglUXC5nOdR1tZ7q9+JeUXekZTMxcPjmWKh+fJ6UDosUMuf3eq7OkLoFgWCYfdzENuQRAZUaQXlkhhV9gikbsAPyxoFy80P9ncuak/7EmFQVoWic+1dP+7JcC/5FW0SFTjvAD0JlZ7sOYR4Dkohxb50s893Cxnrj5rn/4AFMei/d2+R7p5kWFoRpMKMswkxUO0KBRJJ8cff+TkhRdJP9mTCkCqRQB6vcNz7gzEMq4K1hVCWIoMKN/ARGkP0BsTSjcniEfdgTsSgJMxgOJYtLm5a4OTE1r8gpwhxALZVFMXSoRFY6Fbx9oNwurZLeedRxMAlJKlyiAtSMJ5lme+DIRQsGnxRYM6HL00+XLMrhwMxgfjcgqQ1ju9qxKAk3GAVJAiLFpzuuPFtpBwyAs0xgYw36GmhpaAt2NgTC6QgJNMaNVBl78jBqB+WX8BirAI/aCLWQ6hxudbsNWFwUUKwjhw0dpC/LurT7VvJQNgT38BUkGKFI872twnTge5NS4eQg1inu485ukuCOog6qEfwr6LE5h3upnl6kKS6Ka0X5YOQGHlgvTiW1u617dzwnGfgDt1ctes7QCz7fRa8ILWPACSG8L9ZJB7aFeH5yS8xZM0hFlr6f7NapRgf+ILrsR0ihU2rmI4R6GmDS3c0MOs1RbiDq0+1bEpATg5Aygu7T/V4jrczHJbqWBjDZJDwe4JLah5oIB91xVYrgGn182wbAGkghRpQXBAO9q9q7o4sQW3M9XaKJsARbIWPMuhJZJTAfaRnR3eEyRD7BkIQKr1bIf4WffnDHs3akCA3ipS+iKSJd0hKIKy7nnhmhc44ciG825tM5q2MGttIADFpf31zd1vtLD8brdyqyhboSbFhBZkLfY9N7PMI4gsic5aA7aBMih6QYHar3X57oZQ68RQk2ujnjaEZMDpeZQ7FFjzuAAgyFq/2tXhy2hoqZapf24SEez3PcGOz5jQMhfQnqGCrcyNZC60eIK6E6YpvZUV9q4569xM4oW5IBiEFhdqT7S4/tHMCk97eIGuMpeBAjLSiErynVEvMLQTGuZXnL5lRAYno6GlWqYYFBdqz7Z57mvnpJNeuoctZ5uBbq7hp0xwJ5OB83XzkviJP7QUGUsG2E70Zpn+B0uRUPsyyPmO+dmloBEiI0kUIOy003mo97awIAzQlI73tvj1Wy643yY97Mk4OGiZBCi2gOSfbvMcPh3k17l5ZVskjVCLrZYxbC+EhCPrW1wPkWhw0m4nerNMMygu1Da2ute2c+IxnxJqIuVEajOJIA5fcI/HD94tSL53PcHbPYKkTen93sZI1TINkGqRUMOJHPKyS5zQquEmFqf53GMqTFI/S4gMxF2DLxhuxatORm1EsxZaqmUDoLhQ293l/+JEgL8bC0gGpoSbWuE+7syqd0Xx2AAwz8VL5CwrPLm+1b2LZKHeSWbZYpA6aLUu4f/Q4n7+fEjY4RUF2jvxRCkgE1Q86kOAY/D2Eqb0Czx/5Kk27/0kPqVnDRy0bAGkmgoS1aOdXf47OyD1+4ERyVK/+j2mdOyzfOCdguTc72JvaeUEhqS5+Z6uZROguFD7LMC5jvrZxV28wOPdTk5J/RKJdrrxjp8Ek+jGu/gpE7rtTXfgLMkxe9BywSAtSMILnf6PTrH8Ax4e949lESYaPSKSfFcUdccNx5xmhUe2tvn2kxyJcqxlGyC0KIDA+XUtnidaOOFv+GkR1CPUmki9QyT6M3yvlRf2rT3v/h3JQb2TzHIBkGpRevQXJ7MU6qOTHiFMWEWP6OYXvMaftcF7e7qYxUQGR5u1cmq5AihOjz5muK7DfvamblFgsT7CP3tAx9ddguB738f+EI8hOUzpiSzXDIoKt13OwGcnAsKKbuzORfmOBBSU4vEAv/iV7sB/SJ7BQcslQGhxerShzftCc1DYBJ0/gRIARFn8zZZ23xskOmPlVHe0lmuAVFP1CEHgnncy97Vy4pFmTnhxXasnVpTzAoxq+QAoTo/OhQQ/1EjXH/CwS+B7/AvAvIeWavlkUBRIe93Bs/8KcF6Sxc2vdCxfAKHFbjWrfVvsneu8Wj4BQku2N18Q4KDlGyDVtAAVlBUKQAVr/wNs1uBsLJi1hgAAAABJRU5ErkJggg==",fi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAuCAYAAABEbmvDAAAAAXNSR0IB2cksfwAAAAlwSFlzAAASdAAAEnQB3mYfeAAABjNJREFUeJztWF1MFFcUnsSY8NjEmJj0xRfTJk19sEkfffGpsWn9Q5HFYX9nd9lZVkgb2/ovC11cRRRYQLYIrAK2WrUNVK3SqtFapU1t0xrTRK1UrEbEv/fT75thXWphf2DAh/YmX2Zn5t5zv3vOd86du4ryf5um9uTJkwWPHj3SHj58uHl4eLg5Cd7z+ePHj99++vTpnGkhw4k46YMHD768OXBb4ke/kffrD0tReL8s/iBuXEtqDsru7pNy5ervMjQ01E+iXMSUkSIhTvTpyQuyqLxZZi6pFmVprSjL6kRZ1STKymZcgZUxPNstyrvbZb6vXiIdPXL33j0hQUs9SGMM0ZnLv8jCtY2iLNlhEihoFcXWIUpRAtdRMO7x3NaGfi0G+bnqTsO79LQl3qMRGosdOiV5y6pNz3BCTl7cOYKuMTDyjv2K2kVZDYLvRKW4KiGDd/4S6m9SniKp8rrPjLAYxlV4ovhAipC9e3zwvaMrRbDgEyPEb5bsket/DEycHMMXSfQiFAidDUbtMO7oNCdzdo/gYBqM9GF/jlPpPXg7v04WlsUM3eUcVgr1SN9FmbEkIkrhKE/9g1QOMDx3wFycCnJLd4nj44ShuaxJcRXUwVw7PQVNqdCIYz8m6DLh7s4dybEuksMi18SRRBH54ttLwmzP2ltMcWVFDUjtA6mEadCFcLi6JoFOE1wkvVYQk/neWqPWZSwj7MDYzy5EBhahJNhhwAVD7k4LQUnQa9AtamFHz9nMXmOH/b1nRVmOLFQx0NFuGiI8ndYgScyOaBTWy1vrmjJrjZlYHMGgAlRuJwa68NsDQ95O60B7bsqjzYhKXn6lkaFpw0nmbwRBytaQIqYxlFYDxDyIhh1JsDwifd//NHZdI1uCQpxlQ4lQkY1ObDkaiSVMclbCzUi0mcRWRiV+7PTYOhshJvfv35eZS7eh5kD4rlZzsDdhPbhgFyJiR41cFZWart60xAyP5eVvxQBs1k6sRiOxDuuhIYweLNyxFx6rlr1HT6XPTGpsfgCFVcWnjKvFHOwluXaLAZseZL2bn0qVcvx8f/q9k1mp10IDRTsxEKvRMNgPI/52CwF7GmWChTtj8tKacOaspDt7zl3CKsIYiATQEE4fjPihB59FMGxhwR54a02NrKhoyVzHyBoJMDjXWQWdoWxo8JqfXgO5kn2TB+0QGmUCHReE5XDfhez2S4ZzW/sR1DKUDW9jilyg1Rr4Wsxo2GvlVV81K8FgVp/cFOHNgT9lVnEFsgZe88KID+QCIKe3ThwcT3gRQi/OBYWV0nD4hHEWyEhqtNc+iuPL1YaQerEL+GHMj5UG4hMHx/uxQB9LUY28pm/P/WORXrs9eEde1irhdpyESppMcjqM6/EJgIvaa9rRUIpWb5VDfedz89ZorzV8fhyZg5CW1ANYqQ5ypZgkFM8e7K9TClwcQuiMyqINddlr6/lGF3Pw6yEkgQd1LQCjOowHMUmoJXsER5HSamVm4Sa5eOXX7L9cx2p09bEz38kMdQu0hpDqSXLN2YP9Oc63BztKWEINB3L71h+rJfdPdTtC4oDecPQyJglhslIg1Dw+jPfsBwkEkUDaDplXUinU7qTOlclGl9+4NSBz3FsM40oQetMxUajRnDgtGs3+vhqZYdsoX124PDHBj9eYCG29p5EIm+C1XfACJgvFzInLmv4Ng3TM7BeABBwV4q9rz+7gkUtLJsLirUh1e9ic7Bk5oKwxheQzvtcRencEIaywLoTPN4b02vUbMtu9GYmAU1QpJg2RHMK6NpYC7/mc7/1RyVPXy7kff7Y2hM83hrT7a5yi1A3GpEoptqwykFjbkALv+dzH77qNUnuoZ/JZmKk9y9Id3IhReAOob6E9JpnyEVK853NXhSyvajAK6ZT+cZds1MnA7UGZF8AnuIa9VMeJvRSaC+02r7zHc75nNk+qkObaqJezP1yRvOIPkaXYGUpBJrjLvOKez/l+SnU1Vkv+dxY9eAwnqvUIHU7uwah5xT2f8/20/Tk8ulE31NuyKujKhfrmrTSuqyIxo15Ni67Ga9TbLejtFR0lRF0nC8rDcufu3ampV7k2eqb/t2syz/WeXL1+M/1p50W0oeHh/hfN4b/d/gYnm2n24iputAAAAABJRU5ErkJggg==",pi={name:"mapgis-3d-locate",inject:["Cesium","viewer"],props:{mapSheetBoundaryStyle:{type:Object,default:function(){return{color:"#FFA500",opacity:.5}}}},data:function(){return{dataSource:[],inputDefaultVal:"X°,Y°",NewMapNum:void 0,locateMarker:!1,locateFeature:{type:"FeatureCollection",features:[]},layerStyle:new li({symbol:fi}),marker:new li({symbol:di}),fitBound:void 0,highlightStyle:{enableHoverMarker:!1,enableHoverFeature:!0,polygon:new hi({color:"#ff0000",opacity:.8,outlineColor:"#000000"}),marker:new li({symbol:di})}}},watch:{mapNumber:{handler:function(t,e){this.resultCoorFromMapNumber()}}},methods:{handleChange:function(t){switch(document.getElementById("inputVal").value=void 0,this.dataSource=[],t){case"lonlat":this.inputDefaultVal="X°,Y°";break;case"WebMecro":this.inputDefaultVal="X,Y";break;case"NewMapNum":this.inputDefaultVal="NewMapNum";break;case"OldMapNum":this.inputDefaultVal="OldMapNum";break}},locateValue:function(t){this.dataSource=t},locateToMap:function(){var t=document.getElementById("inputVal").value;switch(this.inputDefaultVal){case"NewMapNum":this.resultCoorFromMapNumber(t);break;case"X°,Y°":this.lonlatToPoint(t);break;case"X,Y":this.degreesFromWebMercatorProjection(t)}},viewerflyToLonLat:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=this.viewer,a=this.Cesium,s=document.getElementById("inputVal").value;this.locateFeature.features=[];var c={type:"Feature",properties:{fid:"["+t+","+e+"]"},geometry:{type:"Point",coordinates:[t,e]}};this.locateFeature.features.push(c),this.locateMarker=!0,o.entities.removeAll();var u=new a.Entity({id:s,position:a.Cartesian3.fromDegrees(t,e,o.camera.positionCartographic.height),point:{pixelSize:10,color:a.Color.WHITE.withAlpha(0),outlineColor:a.Color.WHITE.withAlpha(0),outlineWidth:1}});o.entities.add(u),o.flyTo(u,{maximumHeight:1e3,offset:{heading:a.Math.toRadians(n),pitch:a.Math.toRadians(r),range:i}})},flyToRectangle:function(t){var e=this.viewer,n=this;e.entities.removeAll();var r=Math.round(100*Number(t[0][0]))/100,i=Math.round(100*Number(t[0][1]))/100,o=Math.round(100*Number(t[2][0]))/100,a=Math.round(100*Number(t[2][1]))/100,s=[t[0],t[1],t[2],t[3],t[0]],c={type:"Feature",properties:{fid:"图幅边界: {XMin: "+r+"°, YMin: "+i+"°, XMax: "+o+"°, YMax: "+a+"°}"},geometry:{type:"Polygon",coordinates:[s]}};this.locateFeature.features.push(c),this.locateMarker=!0,this.fitBound={xmin:r,ymin:i,xmax:o,ymax:a},this.highlightStyle.polygon=new hi(this.mapSheetBoundaryStyle),n.$emit("located",s)},lonlatToPoint:function(t){var e=t.split(",")[0],n=t.split(",")[1];t.indexOf("°")&&(e=Number(e.split("°")[0]),n=Number(n.split("°")[0]));Cesium.Cartographic.toCartesian(Cesium.Cartographic.fromDegrees(e,n));this.locateMarker=!1,this.viewerflyToLonLat(e,n)},resultCoorFromMapNumber:function(t){var e,n,r=0,i=0,o=0,a=0;if(3==t.length)e=6,n=4;else switch(o=Number(t.slice(4,7)),a=Number(t.slice(7,10)),t[3]){case"B":e=3,n=2;break;case"C":e=1.5,n=1;break;case"D":e=.5,n=1/3;break;case"E":e=.25,n=1/6;break;case"F":e=.125,n=1/12;break;case"G":e=.0625,n=1/24;break;case"H":e=.03125,n=1/24/2;break}r=t[0].charCodeAt()-64,i=Number(t.slice(1,3));var s=6*(i-31)+(a-1)*e,c=4*(r-1)+(4/n-o)*n,u=[],l=[s,c];u.push(l);var h=[s+e,c];u.push(h);var d=[s+e,c+n];u.push(d);var f=[s,c+n];u.push(f),this.flyToRectangle(u)},degreesFromWebMercatorProjection:function(t){var e=t.split(",")[0],n=t.split(",")[1],r=new Cesium.Cartesian3(e,n,0),i=new Cesium.WebMercatorProjection,o=this.degreesFromCartographic(i.unproject(r));this.viewerflyToLonLat(o.longitude,o.latitude)},degreesFromCartographic:function(t){return console.log("cartographic",t),t.longitude=this.toDegrees(t.longitude),t.latitude=this.toDegrees(t.latitude),t},toDegrees:function(t){return Cesium.Math.toDegrees(t)}}},mi=pi,gi=(n("9fab"),je(mi,ci,ui,!1,null,"153b3ed8",null)),Ai=gi.exports,vi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},yi=[],bi={name:"mapgis-3d-debug",inject:["viewer","Cesium","vueCesium"],mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},mount:function(){var t=this.viewer,e=this.createCesiumObject(),n=this;e.then((function(){t.scene.debugShowFramesPerSecond=!0,n.$emit("load",{component:n})}))},unmount:function(){var t=this.viewer;t.scene.debugShowFramesPerSecond=!1}}},wi=bi,_i=je(wi,vi,yi,!1,null,null,null),xi=_i.exports,Si=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default",(function(){return[n("div",{staticClass:"mapgis-widget-output-image"},[n("mapgis-ui-input",{attrs:{placeholder:"请输入输出图片名"},model:{value:t.imgName,callback:function(e){t.imgName=e},expression:"imgName"}},[n("div",{attrs:{slot:"addonAfter"},slot:"addonAfter"},[n("mapgis-ui-select",{staticClass:"outputType-select",model:{value:t.outputType,callback:function(e){t.outputType=e},expression:"outputType"}},t._l(t.outputTypes,(function(e){return n("mapgis-ui-select-option",{key:e,attrs:{value:e}},[t._v("\n "+t._s(e)+"\n ")])})),1),n("mapgis-ui-tooltip",{attrs:{placement:"bottom",title:"下载","arrow-point-at-center":""}},[n("mapgis-ui-iconfont",{staticClass:"download-icon",attrs:{type:"mapgis-download"},on:{click:t.download}})],1)],1)])],1)]}))],2)},Ci=[],Mi=n("8baf");function Li(t){return Li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Li(t)}function Ti(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ti=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Li(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Li(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function ki(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Ei(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ki(o,r,i,a,s,"next",t)}function s(t){ki(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Oi={name:"mapgis-3d-output-image",inject:["Cesium","vueCesium","viewer"],props:{},watch:{outputType:{handler:function(){this.imgName&&""!==this.imgName&&!this.outputTypes.includes(this.imgName.split("-")[0])||(this.imgName="".concat(this.outputType,"-").concat((new Date).toLocaleString()))},deep:!0,immediate:!0}},data:function(){return{imgName:"",outputType:"tiff",outputTypes:["tiff","pdf","bmp","png","gif","jpg","ico"]}},computed:{mime:function(){var t=this.outputType,e="image/bmp";switch(t){case"pdf":e="application/pdf";break;case"tiff":case"bmp":case"png":case"gif":e="image/".concat(t);break;case"jpg":e="image/jpeg";break;case"ico":e="image/x-icon";break}return e}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=Ei(Ti().mark((function t(){return Ti().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.baseUrl,this.options,t.abrupt("return",new Promise((function(t){t()}),(function(t){})));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){var t=this,e=t.createCesiumObject();e.then((function(e){t.$emit("load",t)}))},unmount:function(){this.$emit("unload",this)},download:function(){this.viewer.render();var t=viewer,e=t.canvas;if(!e.clientHeight||!e.clientWidth)for(var n=document.getElementsByClassName("cesium-widget"),r=0;r<n.length;r++)if(e=n[r].getElementsByTagName("canvas")[0],e.clientHeight&&e.clientWidth)break;var i=this.Cesium.ReImg.fromCanvas(e),o=i.toBase64();this.downloadFileByBase64(o,this.imgName,e.clientHeight,e.clientWidth)},dataURLtoBlob:function(t){var e=t.split(","),n=atob(e[1]),r=n.length,i=new Uint8Array(r);while(r--)i[r]=n.charCodeAt(r);return new Blob([i],{type:this.mime})},downloadFile:function(t,e){var n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download",e),n.setAttribute("target","_blank");var r=document.createEvent("MouseEvents");r.initEvent("click",!0,!0),n.dispatchEvent(r)},downloadFileByBase64:function(t,e,n,r){var i=this.mime;if(i.includes("image/")){var o=this.dataURLtoBlob(t),a=URL.createObjectURL(o);this.downloadFile(a,e)}else if(i.includes("pdf")){var s=n/r,c=new Mi["a"]("p","pt","a4"),u=c.internal.pageSize.height,l=c.internal.pageSize.width,h=(u-20)/(l-20);s<=h&&(c=new Mi["a"]("l","pt","a4"),u=c.internal.pageSize.height,l=c.internal.pageSize.width);var d=u-20,f=l-20,p=d/s;if(p<f){var m=(l-p)/2;c.addImage(t,"PNG",m,10,p,d)}else{var g=f*s,A=(u-g)/2;c.addImage(t,"PNG",10,A,f,g)}c.save(e)}}}},Pi=Oi,Bi=(n("ac3e"),je(Pi,Si,Ci,!1,null,"8e56658a",null)),Ii=Bi.exports,Di=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default",(function(){return[n("div",{staticClass:"mapgis-3d-rotate"},[n("mapgis-ui-group-tab",{attrs:{title:"旋转模式"}}),n("mapgis-ui-radio-group",{model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[n("mapgis-ui-radio",{attrs:{value:1}},[t._v(" 全球旋转")]),n("mapgis-ui-radio",{attrs:{value:2}},[t._v(" 绕点旋转")])],1),n("mapgis-ui-group-tab",{attrs:{title:"参数设置"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:1===t.value,expression:"value === 1"}]},[n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"纬度(°)",range:[0,90]},model:{value:t.latitude,callback:function(e){t.latitude=e},expression:"latitude"}}),n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"高度(米)",rangeShow:!0,range:[2e5,28043e4]},model:{value:t.height,callback:function(e){t.height=e},expression:"height"}}),n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"旋转周期(秒)",range:[1,600]},model:{value:t.rotatePeriod,callback:function(e){t.rotatePeriod=e},expression:"rotatePeriod"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:2===t.value,expression:"value === 2"}]},[n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"俯仰角(°)",range:[-90,0]},model:{value:t.pitch,callback:function(e){t.pitch=e},expression:"pitch"}}),n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"距离(米)",range:[0,5e4]},model:{value:t.distance,callback:function(e){t.distance=e},expression:"distance"}}),n("mapgis-ui-input-number-panel",{staticClass:"mapgis-ui-number-style",attrs:{size:"large",label:"环绕周期(秒)",range:[1,600]},model:{value:t.rotatePeriod,callback:function(e){t.rotatePeriod=e},expression:"rotatePeriod"}}),n("mapgis-ui-switch-panel",{attrs:{labelCol:{span:8},wrapperCol:{span:16},layout:"vertical",label:"鼠标拾取中心点坐标",size:"default",checked:t.getCenter},on:{changeChecked:t.getM3dCenter}},[n("mapgis-ui-row",{attrs:{gutter:8}},[n("mapgis-ui-col",{attrs:{span:12}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,step:1e-4},model:{value:t.coordinate.longitude,callback:function(e){t.$set(t.coordinate,"longitude",t._n(e))},expression:"coordinate.longitude"}},[n("mapgis-ui-tooltip",{attrs:{slot:"addonBefore",title:"x坐标"},slot:"addonBefore"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-xzhouyidong"}})],1)],1)],1),n("mapgis-ui-col",{attrs:{span:12}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,step:1e-4},model:{value:t.coordinate.latitude,callback:function(e){t.$set(t.coordinate,"latitude",t._n(e))},expression:"coordinate.latitude"}},[n("mapgis-ui-tooltip",{attrs:{slot:"addonBefore",title:"y坐标"},slot:"addonBefore"},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-yzhouyidong"}})],1)],1)],1)],1)],1)],1),n("mapgis-ui-setting-footer",[n("mapgis-ui-button",{attrs:{type:"primary"},on:{click:t.beginRotate}},[t._v("旋转\n ")]),n("mapgis-ui-button",{on:{click:t.stopRotate}},[t._v("停止")])],1)],1)]}))],2)},Ni=[];function Fi(t){return Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(t)}function ji(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ji=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Fi(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Fi(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Ri(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Hi(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ri(o,r,i,a,s,"next",t)}function s(t){Ri(o,r,i,a,s,"throw",t)}a(void 0)}))}}var zi={name:"mapgis-3d-rotate",mixins:[Ve],inject:["Cesium","vueCesium","viewer"],props:{},watch:{value:{handler:function(t){var e=this,n=this.findRotateTool();n.stop(),n&&(1===t?(n.pitch=-1*e.Cesium.Math.toRadians(parseInt(e.latitude)),n.distance=e.height,n.speed=e.speed):2===t&&(n.pitch=e.Cesium.Math.toRadians(parseInt(e.pitch)),n.distance=e.distance,n.speed=e.speed))}},pitch:{handler:function(t){var e=this.findRotateTool();e.pitch=this.Cesium.Math.toRadians(parseInt(t))}},distance:{handler:function(t){var e=this.findRotateTool();e.distance=t}},height:{handler:function(t){var e=this.findRotateTool();e.distance=t}},rotatePeriod:{handler:function(t){var e=this,n=e.findRotateTool();e.speed=360/t,n.speed=e.speed}},latitude:{handler:function(t){var e=this.findRotateTool();e.pitch=-1*this.Cesium.Math.toRadians(parseInt(t))}}},data:function(){return{value:1,pitch:-30,distance:500,rotatePeriod:60,speed:6,height:20966848,latitude:38,handlerAction:void 0,getCenter:!1,coordinate:{longitude:0,latitude:0,height:0}}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=Hi(ji().mark((function t(){return ji().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){t()}),(function(t){})));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this,i=this.createCesiumObject();i.then((function(i){var o=r.addRotatePointTool();t.RotateManager.addSource(e,n,i,o),r.$emit("loaded",r)}))},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this.findRotateTool();if(r)try{r.stop()}catch(i){}t.RotateManager.deleteSource(e,n)},addRotatePointTool:function(){var t=this.viewer,e=this.Cesium,n=this,r=new e.AnimationTool(t,{toolType:"point",heading:0,pitch:-1*n.Cesium.Math.toRadians(parseInt(n.latitude)),speed:n.speed,isLoop:!0,positions:new e.Cartesian3(0,0,0),distance:n.height,moveToStop:!0,complete:function(){},onPositionCallback:function(t){}});return r},findRotateTool:function(){var t,e=this.vueCesium,n=this.vueKey,r=this.vueIndex,i=e.RotateManager.findSource(n,r);return i&&i.options&&(t=i.options),t},getCenterPosition:function(){var t=this.viewer,e=this.Cesium,n=t.camera.pickEllipsoid(new e.Cartesian2(t.canvas.clientWidth/2,t.canvas.clientHeight/2)),r=e.Ellipsoid.WGS84.cartesianToCartographic(n),i=180*r.longitude/Math.PI,o=180*r.latitude/Math.PI;return[i,o]},getM3dCenter:function(t){var e=this,n=this.viewer,r=this.Cesium;this.getCenter=t,t&&(this.handlerAction=new r.ScreenSpaceEventHandler(this.viewer.scene.canvas),this.handlerAction.setInputAction((function(t){var i=n.getCartesian3Position(t.position),o=r.Cartographic.fromCartesian(i);e.coordinate.longitude=r.Math.toDegrees(o.longitude),e.coordinate.latitude=r.Math.toDegrees(o.latitude),e.coordinate.height=o.height}),r.ScreenSpaceEventType.LEFT_CLICK))},beginRotate:function(){var t=this,e=t.findRotateTool();if(1===t.value)e.positions=new Cesium.Cartesian3(0,0,0),e.start();else{if(t.getCenter)e.positions=new Cesium.Cartesian3.fromDegrees(t.coordinate.longitude,t.coordinate.latitude,0);else{var n=t.getCenterPosition();e.positions=new Cesium.Cartesian3.fromDegrees(n[0],n[1],0)}e.start()}},stopRotate:function(){var t=this,e=t.findRotateTool();e.stop()}}},Ui=zi,Vi=(n("1415"),je(Ui,Di,Ni,!1,null,"6830364a",null)),Yi=Vi.exports,Gi={imageryProvider:{type:Object,required:!0},rectangle:Object,alpha:{type:Number|Function,default:1},brightness:{type:Number|Function,default:1},contrast:{type:Number|Function,default:1},hue:{type:Number|Function,default:0},saturation:{type:Number|Function,default:1},gamma:{type:Number|Function,default:1},splitDirection:Number,minificationFilter:Number,magnificationFilter:Number,show:{type:Boolean,default:!0},maximumAnisotropy:Number,minimumTerrainLevel:Number,maximumTerrainLevel:Number,cutoutRectangle:Object,colorToAlpha:Object,colorToAlphaThreshold:{type:Number,default:.004}};function Qi(t){return Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(t)}function Wi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wi=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Qi(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Qi(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Ki(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function qi(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ki(o,r,i,a,s,"next",t)}function s(t){Ki(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Xi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xi(Object(n),!0).forEach((function(e){Ji(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ji(t,e,n){return(e=Zi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zi(t){var e=to(t,"string");return"symbol"==Qi(e)?e:e+""}function to(t,e){if("object"!=Qi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var eo,no,ro={name:"cesium-layer-imagery",mixins:[],inject:["Cesium","viewer"],props:$i({},Gi),methods:{createCesiumObject:function(){var t=qi(Wi().mark((function t(){var e;return Wi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.$props,t.abrupt("return",new Cesium.ImageryLayer(provider||{},e));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){var t=qi(Wi().mark((function t(){var e,n;return Wi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.viewer,n=this.imageryLayer,e.imageryLayers.add(n),t.abrupt("return",!this.viewer.isDestroyed()&&e.imageryLayers.contains(n));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),unmount:function(){var t=qi(Wi().mark((function t(){var e,n;return Wi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.viewer,n=this.imageryLayer,t.abrupt("return",!e.isDestroyed()&&e.imageryLayers.remove(n));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},created:function(){var t=this;this._provider=void 0,Object.defineProperties(this,{imageryLayer:{enumerable:!0,get:function(){return t.originInstance}},provider:{enumerable:!0,get:function(){return t.imageryProvider||t._provider}}})}},io=ro,oo=je(io,eo,no,!1,null,null,null),ao=oo.exports,so=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},co=[],uo=n("f805");function lo(t){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(t)}function ho(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ho(Object(n),!0).forEach((function(e){po(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function po(t,e,n){return(e=mo(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mo(t){var e=go(t,"string");return"symbol"==lo(e)?e:e+""}function go(t,e){if("object"!=lo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ao={inject:["viewer","Cesium","vueCesium"],props:{baseUrl:{type:String,default:null},domain:{type:String,default:null},protocol:{type:String,default:"http://"},ip:{type:String,default:null},port:{type:String,default:null},serverName:{type:String,default:null},layerStyle:{type:Object,default:function(){return{visible:!0,opacity:1}}},id:{type:String,default:""},token:{type:Object},options:{type:Object,default:function(){return{proxy:void 0,tilingScheme:void 0,rectangle:void 0,tileDiscardPolicy:void 0,tileHeight:256,tileWidth:256,enablePickFeatures:!1,minimumLevel:0,maximumLevel:20,credit:void 0}}},vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}}},data:function(){return{layerStyleCopy:{},managerName:void 0,providerName:void 0,checkType:void 0,layerId:void 0,optionsBack:void 0}},watch:{layerStyle:{handler:function(){var t=this.vueKey,e=this.vueIndex,n=window.vueCesium[this.managerName].findSource(t,e);n&&(this.layerStyleCopy.visible!==this.layerStyle.visible&&(n.source.show=this.layerStyle.visible),this.layerStyleCopy.opacity!==this.layerStyle.opacity&&(n.source.alpha=this.layerStyle.opacity),this.layerStyleCopy.zIndex!==this.layerStyle.zIndex&&this.$_moveLayer(),this.layerStyleCopy=fo({},this.layerStyle))},deep:!0},options:{handler:function(){var t=this,e=this.$_isEqual(t.options,t.optionsBack);e||(this.unmount(),this.mount(),this.optionsBack=this.options)},deep:!0},id:{handler:function(){var t=this.vueIndex,e=this.vueKey,n=window.vueCesium[this.managerName].findSource(e,t);n.source.id=this.id}}},mounted:function(){this.optionsBack=this.options},methods:{$_isEqual:function(t,e){if("object"!==lo(t)||"object"!==lo(e))return t===e;if(e===t)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=0,o=n;i<o.length;i++){var a=o[i],s=this.$_isEqual(t[a],e[a]);if(!s)return!1}return!0},$_mount:function(t,e){this.$_check();var n={},r={},i=this.$props,o=this.vueIndex,a=this.vueKey,s=this.Cesium;if(Object.keys(i).forEach((function(t){"options"!==t&&"layerStyle"!==t&&"id"!==t&&(n[t]=i[t])})),r=fo(fo(fo({},this.options),n),t),this.token&&("MapGIS2DDocMapProvider"===this.providerName?r.hasOwnProperty("extensions")&&r.extensions.length>0?r.extensions.push({key:this.token.key,value:this.token.value}):r.extensions=[{key:this.token.key,value:this.token.value}]:this.token.value&&(r.baseUrl+="?"+this.token.key+"="+this.token.value)),r.rectangle){var c,u,l=r,h=l.rectangle,d=l.srs,f=l.tilingScheme,p=r,m=p.spatialReference,g=Number(h.xmax),A=Number(h.xmin),v=Number(h.ymax),y=Number(h.ymin),b=this.tileWidth||256,w=Math.max(g-A,v-y)/b;if(!m){var _,x=d?Number(d.split(":")[1]):(null===(_=m)||void 0===_?void 0:_.wkid)||(null===f||void 0===f?void 0:f.wkid)||4326;m=new uo["SpatialReference"]({wkid:x})}var S=Object(uo["getExtendExtentByPixel"])({xmin:A,ymin:y,xmax:g,ymax:v,spatialReference:m},{extendPixel:100,resolution:w});if(["EPSG:4326","EPSG:4490","EPSG:4610","EPSG:4214"].includes(d)||[4326,4490,4610,4214].includes((null===(c=m)||void 0===c?void 0:c.wkid)||(null===f||void 0===f?void 0:f.wkid)))r.rectangle=s.Rectangle.fromDegrees(S.xmin,S.ymin,S.xmax,S.ymax);else if(["EPSG:102100","EPSG:3857"].includes(d)||[102100,3857].includes((null===(u=m)||void 0===u?void 0:u.wkid)||(null===f||void 0===f?void 0:f.wkid))){var C=zondy.geometry.Projection.project(new zondy.geometry.Extent({xmin:S.xmin,ymin:S.ymin,xmax:S.xmax,ymax:S.ymax,spatialReference:new zondy.SpatialReference({wkid:3857})}),new zondy.SpatialReference({wkid:4326})).toJSON();r.rectangle=s.Rectangle.fromDegrees(C.xmin,C.ymin,C.xmax,C.ymax)}else delete r.rectangle}r.url=r.url||r.baseUrl;var M,L,T=this.layerStyle,k=r,E=k.saturation,O=k.hue,P=T.visible,B=T.opacity,I=T.zIndex,D=this.$_getWebGlobe(),N=D.imageryLayers;if(M=e?new e(r):new s[this.providerName](r),I<0)throw new Error("zIndex不能为负数");I?(this.$_checkZIndex(N),L=I):L=0;var F=N.addImageryProvider(M,N._layers.length);this.$_initLayerIndex(),void 0!==E&&(F.saturation=E),void 0!==O&&(F.hue=O),"boolean"===typeof P&&(F.show=P),"number"===typeof B&&(F.alpha=B),this.layerStyleCopy=Object.assign({},T),0===this.id.length?F.id=o:F.id=this.id,this.layerId=F.id;var j={zIndex:L,id:F.id};if(0===L){var R=this.$_getMaxZeroIndex();j.zeroIndex=R+1}window.vueCesium[this.managerName].addSource(a,o,F,j),this.$emit("load",F,this)},$_unmount:function(){var t=this.vueKey,e=this.vueIndex,n=this.$_getWebGlobe(),r=n.imageryLayers,i=window.vueCesium[this.managerName].findSource(t,e);r.remove(i.source,!0),window.vueCesium[this.managerName].deleteSource(t,e),this.$emit("unload",this)},$_checkZIndex:function(t){for(var e=this.$_getLayers(),n=t._layers,r=0;r<n.length;r++)for(var i=0;i<e.length;i++)if(e[i].options&&e[i].options.id===n[r].id&&e[i].options.zIndex&&e[i].options.zIndex===this.layerStyle.zIndex)throw new Error("该zIndex值:"+e[i].options.zIndex+"已被使用,请重新赋值")},$_getMaxZeroIndex:function(){for(var t=this.$_getLayers(),e=0,n=0;n<t.length;n++)t[n].hasOwnProperty("options")&&t[n].options&&t[n].options.hasOwnProperty("zeroIndex")&&(e=t[n].options.zeroIndex>e?t[n].options.zeroIndex:e);return e},$_getCurrentLayer:function(t){for(var e,n,r=t._layers,i=0;i<r.length;i++)if(r[i].id===this.layerId){e=r[i],n=i;break}return{currentLayer:e,index:n}},$_getLayers:function(){var t=[],e=this;return Object.keys(window.vueCesium).forEach((function(n){if(n.indexOf("Manager")>-1&&"GlobesManager"!==n&&window.vueCesium[n].hasOwnProperty("vueKey")&&window.vueCesium[n].hasOwnProperty(e.vueKey))for(var r=window.vueCesium[n][e.vueKey],i=0;i<r.length;i++)r[i].hasOwnProperty("options")&&r[i].options&&r[i].options.hasOwnProperty("zIndex")&&void 0!==r[i].options.zIndex&&null!==r[i].options.zIndex&&t.push(r[i])})),t.sort((function(t,e){return t.options&&e.options?t.options.zIndex-e.options.zIndex:0})),t},$_getCurrentLayerManage:function(){for(var t,e=this.$_getLayers(),n=0;n<e.length;n++)if(e[n].options.id===this.layerId){t=e[n];break}return t},$_getLayerIndex:function(t){for(var e,n=0;n<t.length;n++)if(t[n].options.zIndex===this.layerStyleCopy.zIndex){e=n;break}return e},$_getWebGlobe:function(){var t,e=this.vueKey,n=this.viewer;if(e)if("default"===e)t=n;else{var r=window.vueCesium.GlobesManager;t=r[this.vueKey][0].source}else t=n;return t},$_moveLayer:function(){var t=this.layerStyle,e=this.layerStyleCopy,n=t.zIndex,r=e.zIndex;if(n<0)throw new Error("zIndex不能为负数");var i=this.$_getWebGlobe(),o=i.imageryLayers,a=o._layers,s=this.$_getCurrentLayer(o).currentLayer,c=this.$_getCurrentLayer(o).index;if(this.$_checkZIndex(o),!r&&n>0){for(var u=c+1;u<a.length;u++){var l=this.$_getIndexById(a[u].id);(0===l||this.layerStyle.zIndex>l)&&o.raise(s)}this.$_updateLayerManager("zIndex",this.layerStyle.zIndex)}else if(r&&!n){var h=this.$_getCurrentLayerManage();h.options.zIndex=0;for(var d=this.$_getCurrentLayer(o),f=d.currentLayer,p=d.index,m=p-1;m>0;m--)if(this.$_getIndexById(a[m].id))o.lower(f);else if(this.$_getIndexById(a[m].id,"zeroIndex")){var g=this.$_getIndexById(this.layerId,"zeroIndex"),A=this.$_getIndexById(a[m].id,"zeroIndex");if(!g){var v=this.$_getMaxZeroIndex();this.$_updateLayerManager("zeroIndex",v+1);break}g<A&&o.lower(f)}p-1===0&&this.$_updateLayerManager("zeroIndex",1)}else{var y=c+1,b=c-1;if(y<=a.length-1){if(this.layerStyle.zIndex>this.$_getIndexById(a[y].id))for(var w=y;w<a.length;w++){var _=this.$_getIndexById(a[w].id);this.layerStyle.zIndex>_&&o.raise(s)}}else if(b>0){var x=this.$_getIndexById(a[b].id);if(x>0&&this.layerStyle.zIndex<x)for(var S=b;S>0;S--){var C=this.$_getIndexById(a[S].id);this.layerStyle.zIndex<C&&o.lower(s)}}this.$_updateLayerManager("zIndex",this.layerStyle.zIndex)}},$_updateLayerManager:function(t,e){for(var n=this.$_getLayers(),r=0;r<n.length;r++)if(this.layerId===n[r].options.id){n[r].options[t]=e;break}},$_initLayerIndex:function(){var t=this.$_getWebGlobe(),e=t.imageryLayers,n=e._layers,r=n.length,i=n[r-1];if(this.layerStyle.zIndex)for(var o=r-2;o>0;o--)this.layerStyle.zIndex<this.$_getIndexById(n[o].id)&&e.lower(i);else for(var a=r-2;a>0;a--)this.$_getIndexById(n[a].id)>0&&e.lower(i)},$_getIndexById:function(t,e){for(var n,r=e||"zIndex",i=this.$_getLayers(),o=0;o<i.length;o++)if(i[o].hasOwnProperty("options")&&i[o].options&&i[o].options.hasOwnProperty("id")&&i[o].options.id&&i[o].options.id===t){n=i[o].options[r];break}return n},$_checkValue:function(t,e,n){var r="";if("string"===typeof n)for(var i=n.split("|"),o=0;o<i.length;o++)i[o]=i[o].replace(/\s*/g,""),t.hasOwnProperty(e)?null===t[e]||void 0===t[e]?r="null":"object"===lo(t[e])?"array"===i[o]?r=t[e]instanceof Array?"":"wrongType":"object"!==i[o]&&(r="wrongType"):lo(t[e])!==i[o]&&(r="wrongType"):r="null";return r},$_check:function(){var t=fo(fo({},this.options),this.layerStyle);this.$_checkProps(t,this.checkType)},$_checkProps:function(t,e){var n=this;t&&e&&Object.keys(t).forEach((function(r){var i;if(e.hasOwnProperty(r)&&"string"===typeof r&&(i=n.$_checkValue(t,r,e[r]),"wrongType"===i))throw new Error(r+"的类型错误,应为"+e[r]+"类型")}))},$_initUrl:function(t){var e;if(this.baseUrl)e=this.baseUrl;else if(this.domain){if(!this.serverName)throw new Error("请输入地图文档名称");e=this.domain+t+this.serverName}else{if(!this.ip||!this.port)throw new Error("请输入url地址信息");if(!this.serverName)throw new Error("请输入地图文档名称");e=this.protocol+this.ip+":"+this.port+t+this.serverName}return e},$_setTilingScheme:function(t){var e;if("string"===typeof t&&(t=t.includes("EPSG:")?Number(t.split(":")[1]):Number(t)),4326===t||4490===t||4610===t||4214===t)e=new Cesium.GeographicTilingScheme;else if(3857===t)e=new Cesium.WebMercatorTilingScheme;else if(this.$_isCustomWKID(t)){var n,r,i,o={x:1,y:-1};if(n=Number(t),[uo["CustomWKID"].bd09ll,uo["CustomWKID"].bd09mc].indexOf(n)>-1)o={x:1,y:1},r=new Cesium.Cartesian2(-20037726.37,-12474104.17),i=new Cesium.Cartesian2(20037726.37,12474104.17);else if([uo["CustomWKID"].gcj02ll,uo["CustomWKID"].gcj02mc].indexOf(n)>-1){var a=Cesium.Ellipsoid.WGS84.maximumRadius*Math.PI;r=new Cesium.Cartesian2(-a,-a),i=new Cesium.Cartesian2(a,a)}var s=this.$_getTileInfoByWKID(n);e=new Cesium.CustomTilingScheme({wkid:n,axisDirection:o,rectangleSouthwest:r,rectangleNortheast:i,tileInfo:s})}else e=new Cesium.GeographicTilingScheme;return e},$_isCustomWKID:function(t){var e=Number(t);return!(isNaN(e)||e!==uo["CustomWKID"].gcj02&&e!==uo["CustomWKID"].gcj02ll&&e!==uo["CustomWKID"].gcj02mc&&e!==uo["CustomWKID"].bd09&&e!==uo["CustomWKID"].bd09ll&&e!==uo["CustomWKID"].bd09mc)},$_getTileInfoByWKID:function(t){var e,n,r={},i=[];if(20020902===t){e=[256,256];for(var o=0;o<19;o++){var a=Math.pow(2,18-o);i[o]={level:o,resolution:a,scale:null}}r={dpi:0,format:"PNG",size:e,origin:{coordinates:[0,0],type:"Point"},lods:i}}else if(20010202===t){e=[256,256];var s=Cesium.Ellipsoid.WGS84.maximumRadius*Math.PI;n=(s+s)/e[0];for(var c=0;c<19;c++){var u=n/Math.pow(2,c);i[c]={level:c,resolution:u,scale:null}}r={dpi:0,format:"PNG",size:e,origin:{coordinates:[-s,s],type:"Point"},lods:i}}else if(20020901===t||20010201===t){var l={xmin:-180,ymin:-90,xmax:180,ymax:90},h=2;e=256;var d=111319490.79327358;n=(l.xmax-l.xmin)/h/e;for(var f=0;f<19;f++){var p=n/Math.pow(2,f),m={level:f,resolution:p,scale:d*(96*p)/.0254};i.push(m)}r={dpi:96,format:"PNG",size:e,origin:{coordinates:[180,-90],type:"Point"},lods:i}}return r}}},vo={name:"mapgis-3d-igs-doc-layer",mixins:[Ao],props:{layers:{type:String,default:null},srs:{type:String,default:"EPSG:4326"}},watch:{layers:{handler:function(){this.unmount(),this.mount()}}},data:function(){return{managerName:"IgsDocLayerManager",providerName:"MapGISMapServerImageryProvider",checkType:{tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number"}}},mounted:function(){this.mount()},methods:{mount:function(){var t=this.$_setTilingScheme(this.srs),e=this.$_initUrl("/igs/rest/mrms/docs/");this.$_mount({baseUrl:e,tilingScheme:t})},unmount:function(){this.$_unmount()}},destroyed:function(){this.unmount()}},yo=vo,bo=je(yo,so,co,!1,null,null,null),wo=bo.exports,_o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},xo=[],So={name:"mapgis-3d-igs-tile-layer",mixins:[Ao],props:{tilingScheme:{type:String,default:"EPSG:4326"}},data:function(){return{managerName:"IgsTilecLayerManager",providerName:"MapGISTileServerImageProvider",checkType:{tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number"}}},mounted:function(){this.mount()},methods:{mount:function(){var t=this.$_initUrl("/igs/rest/mrms/tile");t+="/{level}/{row}/{col}";var e=this.$_setTilingScheme(this.tilingScheme);this.$_mount({baseUrl:t,srs:this.tilingScheme,tilingScheme:e})},unmount:function(){this.$_unmount()}},destroyed:function(){this.unmount()}},Co=So,Mo=je(Co,_o,xo,!1,null,null,null),Lo=Mo.exports,To=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},ko=[],Eo={url:{type:String,default:null},layerIndex:{type:Number},domain:{type:String,default:null},protocol:{type:String,default:location.protocol.split(":")[0]||window.location.protocol.split(":")[0]},ip:{type:String,default:"localhost"},port:{type:String,default:"6163"},colNum:{type:Number,default:2},rowNum:{type:Number,default:1},offset:{type:Number,default:0},show:{type:Boolean,default:!0},alpha:{type:Number,default:1},proxy:{type:String,default:void 0},tilingScheme:{type:Object,default:void 0},rectangle:{type:Object,default:void 0},tileDiscardPolicy:{},tileHeight:{type:Number,default:256},tileWidth:{type:Number,default:256},enablePickFeatures:{},minimumLevel:{type:Number,default:0},maximumLevel:{type:Number,default:20},credit:{}};function Oo(t){return Oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(t)}function Po(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Po(Object(n),!0).forEach((function(e){Io(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Po(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Io(t,e,n){return(e=Do(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Do(t){var e=No(t,"string");return"symbol"==Oo(e)?e:e+""}function No(t,e){if("object"!=Oo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Oo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Fo={props:Bo({},Eo),inject:["Cesium","viewer"],created:function(){this.imageryLayer=this.createCesiumObject(),this.mount(),this.watchProp()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=this.$props,e=this.provider;return new Cesium.ImageryLayer(e||{},t)},watchProp:function(){var t=this.show,e=this.alpha;t&&this.$watch("show",(function(t){this.initial||(this.imageryLayer.show=t)})),e&&this.$watch("alpha",(function(t){this.initial||(this.imageryLayer.alpha=t)}))},mount:function(){var t=this.viewer,e=this.imageryLayer,n=this.layerIndex;return t.imageryLayers.add(e,n),!t.isDestroyed()&&t.imageryLayers.contains(e)},unmount:function(){var t=this.viewer,e=this.imageryLayer;return!t.isDestroyed()&&t.imageryLayers.remove(e)}},render:function(t){return t("span")}};function jo(t){return jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jo(t)}function Ro(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ho(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ro(Object(n),!0).forEach((function(e){zo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zo(t,e,n){return(e=Uo(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uo(t){var e=Vo(t,"string");return"symbol"==jo(e)?e:e+""}function Vo(t,e){if("object"!=jo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=jo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Yo={name:"mapgis-3d-raster-layer",mixins:[Fo],props:{baseUrl:{type:String,default:null}},methods:{createCesiumObject:function(){var t=this.$props,e=this.baseUrl,n=t;e&&(n=Ho(Ho({},t),{},{url:e}));var r=new Cesium.UrlTemplateImageryProvider(n);return new Cesium.ImageryLayer(r)}}},Go=Yo,Qo=je(Go,To,ko,!1,null,null,null),Wo=Qo.exports,Ko=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},qo=[];function Xo(t){return Xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xo(t)}function $o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$o(Object(n),!0).forEach((function(e){Zo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zo(t,e,n){return(e=ta(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ta(t){var e=ea(t,"string");return"symbol"==Xo(e)?e:e+""}function ea(t,e){if("object"!=Xo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var na={name:"mapgis-3d-rastertile-layer",inject:["Cesium","viewer","vueCesium"],mixins:[Ao],props:{crs:{type:String,defalut:"EPSG:4326"}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",rectangle:"object",tilingScheme:"object",ellipsoid:"object",tileWidth:"number",tileHeight:"number",maximumLevel:"number",credit:"object|String",vueKey:"string",vueIndex:"string | Number"},managerName:"RasterManager",providerName:"UrlTemplateImageryProvider"}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=this.$props,e=new Cesium.UrlTemplateImageryProvider(t);return new Cesium.ImageryLayer(e)},mount:function(){var t=this.crs,e=this.baseUrl,n={};t&&(n.tilingScheme=this.$_setTilingScheme(t));var r,i=this.$props.options.offset;if(e.includes("{")&&e.includes("}/")){var o=e.split("{");r=o[1].split("}/")[0]}r&&i&&(n.customTags={},n.customTags[r]=function(t,e,n,r){return r-i},t||(n.tilingScheme=this.$_setTilingScheme("EPSG:4326")));var a=e;if(e.includes("format=")){var s=e.split("format="),c=s[1].split("&");n.hasOwnProperty("extensions")&&n.extensions.length>0?n.extensions.push({key:"format",value:c[0]}):n.extensions=[{key:"format",value:c[0]}],a=s[0]+c[1]}var u=Jo(Jo({},n),{},{baseUrl:a});this.$_mount(u)},unmount:function(){this.$_unmount()}}},ra=na,ia=je(ra,Ko,qo,!1,null,null,null),oa=ia.exports,aa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},sa=[];function ca(t){return ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(t)}function ua(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function la(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ua(Object(n),!0).forEach((function(e){ha(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ha(t,e,n){return(e=da(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function da(t){var e=fa(t,"string");return"symbol"==ca(e)?e:e+""}function fa(t,e){if("object"!=ca(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ca(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var pa={name:"mapgis-3d-ogc-wfs-layer",inject:["Cesium","vueCesium","viewer"],mixins:[Ao],props:{baseUrl:{type:String,default:null},wfsVersion:{type:String,dafault:"2.0.0"},count:{type:Number,dafault:1e3},autoReset:{type:Boolean,default:!0},renderer:{type:Object,default:function(){return{}}},id:{type:String,default:""},token:{type:Object},options:{type:Object,default:function(){return{proxy:void 0,tilingScheme:void 0,rectangle:void 0,tileDiscardPolicy:void 0,tileHeight:256,tileWidth:256,enablePickFeatures:!1,minimumLevel:0,maximumLevel:20,credit:void 0}}},vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}}},data:function(){return{checkType:ha(ha({visible:"boolean",opacity:"number",zIndex:"number",tileMatrixLabels:"array",clock:"object",times:"object",dimensions:"object",tileWidth:"number",tileHeight:"number",tilingScheme:"object",rectangle:"object",minimumLevel:"number",maximumLevel:"number",credit:"object|string",subdomains:"string|array",startLevel:"number",vueKey:"string",vueIndex:"string|number"},"tilingScheme","object"),"proxy","object"),managerName:"OGCWFSManager",layerIndex:void 0,layer:void 0,layerRange:[]}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{wfsVersion:{handler:function(){this.unmount(),this.mount()}},baseUrl:{handler:function(){this.unmount(),this.mount()}},count:{handler:function(){this.unmount(),this.mount()}},autoReset:{handler:function(){this.unmount(),this.mount()}},renderer:{handler:function(t){this.mount()},deep:!0},id:{handler:function(){var t=this.vueIndex,e=this.vueKey,n=window.vueCesium[this.managerName].findSource(e,t);n.source.id=this.id}}},methods:{mount:function(){var t=this.viewer,e=(this.vueCesium,this.baseUrl),n=this.wfsVersion,r=this.count,i=this.autoReset,o=this.renderer,a=this,s={wfsVersion:n,count:r,autoReset:i,renderer:o};this.$_check();var c=JSON.parse(JSON.stringify(o));this.transformObject(c),s.renderer=c;t.scene.layers.appendFeatureLayer(e,la(la({},s),{},{getDocLayerIndexes:a.getDocLayer,loaded:function(t){var e=this;e.$emit("loaded",t)}}))},getDocLayer:function(t){var e=this,n=this.vueIndex,r=this.vueKey,i=this.vueCesium;this.url;if(t){e.layerIndex=t,e.layer=viewer.scene.layers.getLayer(e.layerIndex[0]);var o=[e.layer];o&&(i[e.managerName].addSource(r,n,o,{url:e.baseUrl,layerIndex:e.layerIndex}),e.layerRange=e.layer._layerRange),e.$emit("load",{data:e})}},transformObject:function(t){var e=this;t=t||{},Object.keys(t).forEach((function(n){"object"==ca(t[n])&&e.transformObject(t[n]),"color"==n&&(t[n]=Cesium.Color.fromCssColorString(t[n]))}))},unmount:function(){var t=this.viewer,e=this.vueCesium,n=this.vueKey,r=this.vueIndex,i=(this.layerIndex,e[this.managerName].findSource(n,r));i&&i.source&&t.scene.layers.removeAllLayers(),e[this.managerName].deleteSource(n,r),this.$emit("unload",this)}}},ma=pa,ga=je(ma,aa,sa,!1,null,null,null),Aa=ga.exports,va=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},ya=[],ba=n("3aa2"),wa={name:"mapgis-3d-ogc-wmts-layer",inject:["Cesium","viewer"],mixins:[Ao],props:{wmtsLayer:{type:String,required:!0},tileMatrixSet:{type:String|Object,default:""},wmtsStyle:{type:String,default:"default"},tilingScheme:{type:String,required:!0},format:{type:String,default:"image/png"}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",tileMatrixLabels:"array",clock:"object",times:"object",dimensions:"object",tileWidth:"number",tileHeight:"number",tilingScheme:"object",rectangle:"object",minimumLevel:"number",maximumLevel:"number",ellipsoid:"object",credit:"object|string",subdomains:"string|array",vueKey:"string",vueIndex:"number"},managerName:"OGCWMTSManager",providerName:"WebMapTileServiceImageryProvider"}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},computed:{watchList:function(){var t=this.wmtsLayer,e=this.tileMatrixSet,n=this.tilingScheme,r=this.wmtsStyle;return{wmtsLayer:t,tileMatrixSet:e,tilingScheme:n,wmtsStyle:r}}},watch:{watchList:{handler:function(t,e){if(JSON.stringify(t)!==JSON.stringify(e)){var n=this.vueIndex,r=this.vueKey,i=window.vueCesium[this.managerName].findSource(r,n);i&&(this.unmount(),this.mount())}},deep:!0}},methods:{mount:function(){var t={};if(t.style=this.wmtsStyle,this.tileMatrixSet&&this.tileMatrixSet.tileInfo){var e=this.tileMatrixSet.tileInfo,n=this.tileMatrixSet.layer.activeLayer.fullExtent,r=e.spatialReference,i=this.getCustomTilingScheme(e,r,n);t.tilingScheme=i}else this.tilingScheme&&(t.tilingScheme=this.$_setTilingScheme(this.tilingScheme));t.layer=this.wmtsLayer,t.tileMatrixSetID=this.tileMatrixSet.id?this.tileMatrixSet.id:this.tileMatrixSet,this.$_mount(t)},getCustomTilingScheme:function(t,e,n){for(var r=new uo["SpatialReference"]({wkid:e.wkid}),i=new uo["Point"]({coordinates:[t.origin.x,t.origin.y],spatialReference:e}),o=new uo["Extent"]({xmin:n.xmin,ymin:n.ymin,xmax:n.xmax,ymax:n.ymax}),a=[],s=0;s<t.lods.length;s++)a.push({level:t.lods[s].levelValue,resolution:t.lods[s].resolution,scale:t.lods[s].scale});t.lods=a;var c=new uo["TileInfo"]({dpi:t.dpi,format:t.format,origin:i,lods:t.lods,spatialReference:r,size:t.size}),u=Object(ba["getTilingScheme"])(r,o,c);return u},unmount:function(){this.$_unmount()}}},_a=wa,xa=je(_a,va,ya,!1,null,null,null),Sa=xa.exports,Ca=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},Ma=[],La={name:"mapgis-3d-ogc-wms-layer",inject:["Cesium","viewer"],mixins:[Ao],props:{layers:{type:String,required:!0},styles:{type:String,default:""},srs:{type:String},format:{type:String,default:"image/png"},transparent:{type:Boolean,default:!0},version:{type:String,default:"1.1.1"}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",parameters:"object",getFeatureInfoParameters:"object",enablePickFeatures:"boolean",getFeatureInfoFormats:"array",rectangle:"object",tilingScheme:"object",ellipsoid:"object",tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number",credit:"object|String",subdomains:"string|array",clock:"object",times:"object",proxy:"object",vueKey:"string",vueIndex:"string|number"},managerName:"OGCWMSManager",providerName:"WebMapServiceImageryProvider"}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{layers:{handler:function(){this.unmount(),this.mount()}},styles:{handler:function(){this.unmount(),this.mount()}},srs:{handler:function(){this.unmount(),this.mount()}}},methods:{mount:function(){var t=this.srs,e={};t&&(e.tilingScheme=this.$_setTilingScheme(t)),e.parameters={transparent:this.transparent,format:this.format,version:this.version,styles:this.styles},this.$_mount(e)},unmount:function(){this.$_unmount()}}},Ta=La,ka=je(Ta,Ca,Ma,!1,null,null,null),Ea=ka.exports,Oa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},Pa=[],Ba={name:"mapgis-3d-ogc-reveserwms-layer",inject:["Cesium","vueCesium","viewer"],mixins:[Ao],props:{layers:{type:String,required:!0},styles:{type:String},reversebbox:{type:Boolean,default:!0},srs:{type:String}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",parameters:"object",getFeatureInfoParameters:"object",enablePickFeatures:"boolean",getFeatureInfoFormats:"array",rectangle:"object",tilingScheme:"object",ellipsoid:"object",tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number",credit:"object|String",subdomains:"string|array",clock:"object",times:"object",proxy:"object",vueKey:"string",vueIndex:"string|number"},managerName:"OGCWMSManager"}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{layers:{handler:function(){this.unmount(),this.mount()}},styles:{handler:function(){this.unmount(),this.mount()}},srs:{handler:function(){this.unmount(),this.mount()}}},methods:{mount:function(){var t=this.srs,e=this.vueCesium,n={};t&&(n.tilingScheme=this.$_setTilingScheme(t)),this.$_mount(n,e.Provider.WebReverseMapServiceImageryProvider)},unmount:function(){this.$_unmount()}}},Ia=Ba,Da=je(Ia,Oa,Pa,!1,null,null,null),Na=Da.exports,Fa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},ja=[],Ra={name:"mapgis-3d-igs-dynamic-layer",mixins:[Ao],props:{gdbps:{type:[Array,String],require:!0}},data:function(){return{managerName:"IgsserverManager",providerName:"MapGISMapServerImageryProvider",checkType:{tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number"}}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{gdbps:{handler:function(){this.unmount(),this.mount()}}},methods:{initUrl:function(t){var e;if(this.baseUrl)e=this.baseUrl;else if(this.domain)e=this.domain+t;else{if(!this.ip||!this.port)throw new Error("请输入url地址信息");e=this.protocol+this.ip+":"+this.port+t}return e},mount:function(){var t=this.initUrl("/igs/rest/mrms/layers"),e=this.gdbps;"string"===typeof e&&(e=e.split(",")),this.$_mount({baseUrl:t,gdbps:e})},unmount:function(){this.$_unmount()}}},Ha=Ra,za=je(Ha,Fa,ja,!1,null,null,null),Ua=za.exports,Va=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},Ya=[],Ga={name:"mapgis-3d-igs-vector-layer",mixins:[Ao],props:{gdbps:{type:[Array,String],require:!0}},data:function(){return{managerName:"IgsserverManager",providerName:"MapGISMapServerImageryProvider",checkType:{tileWidth:"number",tileHeight:"number",minimumLevel:"number",maximumLevel:"number"}}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{"layerStyle.visible":function(t){this.showOrHideModel(t)}},methods:{mount:function(){var t=this.gdbps,e=this.baseUrl.split("?")[0],n="".concat(e,"?gdbpUrl=").concat(t,"&geometry=&oids=&sRef=WGS1984_度&modelDataFormat=");this.fetchModel(n)},unmount:function(){this.model&&viewer.scene.primitives.remove(this.model),this.model=null},showOrHideModel:function(t){this.model.show=t},fetchModel:function(t){var e=this;fetch(t).then((function(t){return e.xPosition=t.headers.get("X-Gis-Position"),t.arrayBuffer()})).then((function(t){e.createModel(t)}))},createModel:function(t){var e=this.xPosition.split(","),n=this.viewer,r=Cesium.Cartesian3.fromDegrees(Number(e[0]),Number(e[1]),Number(e[2])),i=Cesium.defaultValue(Cesium.Math.toRadians(90),0),o=Cesium.defaultValue(Cesium.Math.toRadians(0),0),a=Cesium.defaultValue(0,0),s=Cesium.Transforms.headingPitchRollToFixedFrame(r,new Cesium.HeadingPitchRoll(i,o,a)),c={modelMatrix:s,gltf:t,id:this.gdbps[0]};this.model=n.scene.primitives.add(new Cesium.Model(c))}}},Qa=Ga,Wa=je(Qa,Va,Ya,!1,null,null,null),Ka=Wa.exports,qa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-popup-default-wrapper"},[t.popVisiable?n("div",[n("Popup",{attrs:{position:t.iClickPosition,visible:t.iClickVisible,forceRender:t.forceRender}},[n("mapgis-ui-popup-content",{attrs:{feature:t.gemotryAttribute[0],popupOptions:t.popupOptions}})],1)],1):t._e()])},Xa=[],$a=n("cd3f"),Ja=n.n($a);function Za(t){return Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(t)}function ts(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function es(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ts(Object(n),!0).forEach((function(e){ns(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ns(t,e,n){return(e=rs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rs(t){var e=is(t,"string");return"symbol"==Za(e)?e:e+""}function is(t,e){if("object"!=Za(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Za(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var as={inject:["Cesium","vueCesium","viewer"],props:es(es({},ln),{},{properties:{type:Object},enablePopup:{type:Boolean,default:!1},enableModelSwitch:{type:Boolean,default:!1},enableTips:{type:Boolean,default:!1},enableIot:{type:Boolean,default:!1},popupOptions:{type:Object,default:function(){return{type:"default",title:"name",popupType:"table",fullHeight:900}}},tipsOptions:{type:Object,default:function(){return{type:"default",title:"name"}}},iotOptions:{type:Object,default:function(){return{field:"Euid"}}},customPopup:Function,customTips:Function,clickVisible:{type:Boolean,default:!1},hoverVisible:{type:Boolean,default:!1},clickPosition:{type:Object,default:function(){return{longitude:0,latitude:0,height:0}}},hoverPosition:{type:Object,default:function(){return{longitude:0,latitude:0,height:0}}},clickFeatures:{type:Array,default:function(){return[]}},hoverFeatures:{type:Array,default:function(){return[]}},clickMode:{type:String,default:"click"},hoverMode:{type:String,default:"hover"},popupConfig:{type:Object,default:function(){return{}}},showPopup:{type:Boolean,default:!0}}),data:function(){return{iPinMap:!0,activeId:void 0,iClickVisible:!1,iClickPosition:{longitude:110,latitude:30,height:0},iHoverVisible:!1,iHoverPosition:{longitude:110,latitude:30,height:0},iClickFeatures:[],iHoverFeatures:[],iClickMode:"click",iHoverMode:"hover"}},watch:{clickVisible:function(t){this.iClickVisible=t},clickPosition:function(t){this.iClickPosition=t},hoverVisible:function(t){this.iHoverPosition=t},hoverPosition:function(t){this.iHoverPosition=t},clickFeatures:function(t){this.iClickFeatures=t},hoverFeatures:function(t){this.iHoverFeatures=t}},computed:{popupComponent:function(){var t;return(null===(t=this.popupConfig)||void 0===t?void 0:t.component)||"mapgis-3d-popup-iot"},popupWidth:function(){var t;return(null===(t=this.popupConfig)||void 0===t?void 0:t.componentWidth)||260}},methods:{$_pickEvent:function(t,e,n,r,i,o){var a=this,s=this.Cesium,c=this.viewer,u=this.popupOptions,l=this.iClickMode,h=(this.iHoverMode,c.scene),d=new s.Ray,f=new s.Cartesian3;if(t&&h.mode!==s.SceneMode.MORPHING){var p,m,g,A,v,y,b=t.position||t.endPosition,w=c.getCartesian3Position(b),_=h.camera.getPickRay(b,d),x=h.globe.pick(_,h,f);if(i&&(p=c.scene.pick(b),!p))return void(r&&r({movement:t}));if(o&&(m=h.drillPick(b),m.length<=0))return e==l?a.iClickVisible=!1:a.iHoverVisible=!1,void(r&&r({movement:t}));if(s.defined(w)){var S=s.Cartographic.fromCartesian(w);g=s.Math.toDegrees(S.longitude),A=s.Math.toDegrees(S.latitude),v=S.height}if(w||x)e==l?(a.iClickVisible=!0,a.iClickPosition={longitude:g,latitude:A,height:v}):(a.iHoverVisible=!0,a.iHoverPosition={longitude:g,latitude:A,height:v}),o&&(y=m.map((function(t){var e={layer:{id:t.id?t.id.id:"未知数据"},properties:{}};if(a.activeId=t.id?t.id.id:void 0,t.id&&t.id.properties){Object.keys(t.id.properties).filter((function(t){var e=t.indexOf("Subscription")<=0&&!["_propertyNames","_definitionChanged"].find((function(e){return e==t}));return e})).forEach((function(n){var r=n.substr(1);e.properties[r]=t.id.properties[n]._value})),e.layer.id=a.layerId||e.properties["name"]||e.properties["title"];var n=u?u.title:void 0;n&&(e.title=e.properties[n])}return e})),a.iClickFeatures=y),n&&n({entities:m,movement:t,iClickFeatures:y,pickedFeature:p});else e==l?a.iClickVisible=!1:a.iHoverVisible=!1,r&&r()}},$_bindClickEvent:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=this,o=this.Cesium,a=this.viewer,s=this.iClickMode,c=new o.ScreenSpaceEventHandler(a.scene.canvas);return c.setInputAction((function(o){i.$_pickEvent(o,s,t,e,n,r)}),o.ScreenSpaceEventType.LEFT_CLICK),c},$_bindHoverEvent:function(t,e){var n=this,r=this.Cesium,i=this.viewer,o=this.iHoverMode,a=Me()((function(r){n.$_pickEvent(r,o,t,e)}),100,{leading:!0}),s=new r.ScreenSpaceEventHandler(i.scene.canvas);return s.setInputAction(a,r.ScreenSpaceEventType.MOUSE_MOVE),s},$_changeVisible:function(t){},$_separateMap:function(){this.iPinMap=!1},$_pinMap:function(){this.iPinMap=!0},$_onPinMap:function(){this.iPinMap=!0},$_onFlyTo:function(){},$_getProjectorStatus:function(){},$_handleProjectScreen:function(){}}},ss=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"none"}},[t._t("default")],2)},cs=[],us={vueKey:{typs:String,default:"default"},vueIndex:{typs:[String,Number],default:function(){return(1e8*Math.random()).toFixed(0)}},position:{type:Object,required:!0},options:{type:Object,default:function(){return{postRender:!0}}},container:{type:String,default:"<div>空</div>"},visible:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},forceRender:{type:Boolean,default:!1}};function ls(t,e,n,r,i){if(e){var o,a,s,c=t.scene,u=t.camera,l=u.computeViewRectangle(),h=i.Cesium||window["Cesium"],d=h.Math.toDegrees(l.south),f=h.Math.toDegrees(l.north),p=h.Math.toDegrees(l.east),m=h.Math.toDegrees(l.west);if(i&&i.longitude&&i.latitude){if(a=i.position.longitude,s=i.position.latitude,a<m||a>p||s>f||s<d)return void(C.style.display="none")}else o=h.Ellipsoid.WGS84.cartesianToCartographic(e),a=h.Math.toDegrees(o.longitude),s=h.Math.toDegrees(o.latitude);var g=h.Cartesian3.fromDegrees(m,d),A=h.Cartesian3.fromDegrees(p,f),v=h.SceneTransforms.wgs84ToWindowCoordinates(c,g),y=h.SceneTransforms.wgs84ToWindowCoordinates(c,A),b=h.SceneTransforms.wgs84ToWindowCoordinates(c,e);if(b){var w=!1,_=e,x=u.position,S=c.globe.ellipsoid.cartesianToCartographic(x).height;S+=1*c.globe.ellipsoid.maximumRadius,h.Cartesian3.distance(x,_)>S||(w=!0),v&&y&&(b.x<v.x||b.x>y.x||b.y>v.y||b.y<y.y)&&(w=!1),c.globe.ellipsoid.cartesianToCartographic(x).height&&(w=!0);var C=window.document.getElementById(n);if(C)if(w){C.style.display="block";var M=window.document.getElementById(r),L=document.getElementById(r).offsetWidth,T=document.getElementById(r).offsetHeight;M.style.left=b.x-L/2+"px",M.style.top=b.y-(T-10)+"px"}else C.style.display="none"}}}function hs(t){return hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(t)}function ds(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ms(r.key),r)}}function ps(t,e,n){return e&&fs(t.prototype,e),n&&fs(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ms(t){var e=gs(t,"string");return"symbol"==hs(e)?e:e+""}function gs(t,e){if("object"!=hs(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=hs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var As=0,vs=function(){function t(e,n,r,i,o,a,s){var c=this;if(ds(this,t),this.map=e,this.scene=e.scene,this.position=n,this.options=r,this.container=i,this.popupWapperStyle=o,this.popupHeaderStyle=a,this.popupCloseBtnStyle=s,this.popupId=r.popupId||"cesium-popup-id-"+As++,this.popupClass=r.popupClass||"cesium-popup",this.popupTitle=r.title,this.popupContentId=r.popupContentId||"cesium-popup-content-id-"+As++,this.options.postRender=void 0===this.options.postRender||this.options.postRender,this.Cesium=r.Cesium||window["Cesium"],this.scene=e.scene,this.camera=e.camera,this.isShow=!0,r.callback){var u=r.callback,l=u.onShow,h=u.onHide,d=u.onSeparate;this.onShow=l,this.onHide=h,this.onSeparate=d}var f=this.Cesium.ScreenSpaceEventHandler||window["Cesium"].ScreenSpaceEventHandler;this.handler=new f(this.scene.canvas),this.infoDiv=null,n.entity&&(this.cartesian=n.entity.position._value),this.cartesian=this.cartesian||this.position.cartesian||this.Cesium.Cartesian3.fromDegrees(this.position.longitude,this.position.latitude,this.position.height);var p=this.map.container,m=void 0;if(p.children&&p.children.length>0&&p.children[0].children&&p.children[0].children.length>0&&p.children[0].children[0].children&&p.children[0].children[0].children.length>0&&(m=p.children[0].children[0].children[0]),m)this.parent=m;else{var g=document.getElementsByClassName("cesium-widget");parent=g.length>0?g[0]:e.container,this.parent=parent}return this.showClose=void 0===r.showClose||r.showClose,this.popupType=r.popupType,this.images=r.images,this.description=r.description,this.popup=this._createPopup(),this.moveStart=this.eventMoveStart.bind(this),this.moveEnd=this.eventMoveEnd.bind(this),this.movement=this.movement.bind(this),this.update=this.update.bind(this),this.updateEvent=function(){return c.update()},this.bindEvent(),this}return ps(t,[{key:"_createPopup",value:function(){var t=this,e=this;this.hide=this.hide.bind(this);var n=window.document.createElement("div");if(n.id=this.popupId,n.style.display="none","string"===typeof this.container){n.innerHTML='<div id="'+this.popupContentId+'" class="cesium-popup"><div class="cesium-popup-content-wrapper">'+this.container+'</div><div class="cesium-popup-tip-container"><div class="cesium-popup-tip" /></div></div>';var r=window.document.getElementById(this.popupContentId),i=window.document.createElement("div");i.className="cesium-popup-close-button",i.addEventListener("click",(function(){return e.hide()})),i.innerText="x",this.popupCloseBtnStyle&&Object.keys(this.popupCloseBtnStyle).forEach((function(e){i.style[e]=t.popupCloseBtnStyle[e]})),this.parent.appendChild(n);var o=window.document.getElementsByClassName("cesium-popup-content-wrapper");this.popupWapperStyle&&Object.keys(this.popupWapperStyle).forEach((function(e){o[0].style[e]=t.popupWapperStyle[e]}));var a=window.document.createElement("div");a.className="cesium-popup-separate-button",a.addEventListener("click",(function(){return e.separate()}));var s='<svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#mapgis-Matchsizeup"></use></svg>';if(a.innerHTML=s,"table"==this.popupType||"card"==this.popupType||"rich-text"==this.popupType&&r&&r.appendChild(a),this.showClose){var c=window.document.getElementById(this.popupContentId);c&&c.appendChild(i)}this.infoDiv=n}else{var u=window.document.createElement("div");u.id=this.popupContentId,u.className="cesium-popup";var l=window.document.createElement("div");l.className="cesium-popup-content-header";var h=window.document.createElement("div");h.className="cesium-popup-content-header-title",h.innerText=this.popupTitle||"",this.popupHeaderStyle&&Object.keys(this.popupHeaderStyle).forEach((function(e){h.style[e]=t.popupHeaderStyle[e]}));var d=window.document.createElement("div");d.className="cesium-popup-content-header-extra",l.appendChild(h),l.appendChild(d);var f=window.document.createElement("div");f.className="cesium-popup-close-button",f.addEventListener("click",(function(){return e.hide()}));var p='<svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#mapgis-close"></use></svg>';f.innerHTML=p,this.popupCloseBtnStyle&&Object.keys(this.popupCloseBtnStyle).forEach((function(e){f.style[e]=t.popupCloseBtnStyle[e]}));var m=window.document.createElement("div");m.className="cesium-popup-separate-button",m.addEventListener("click",(function(){return e.separate()}));var g='<svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><use xlink:href="#mapgis-Matchsizeup"></use></svg>';m.innerHTML=g,"table"==this.popupType||"card"==this.popupType||"rich-text"==this.popupType&&d.appendChild(m),this.showClose&&d.appendChild(f);var A=window.document.createElement("div");A.className="cesium-popup-content-wrapper",this.popupWapperStyle&&Object.keys(this.popupWapperStyle).forEach((function(e){A.style[e]=t.popupWapperStyle[e]})),A.appendChild(l),A.appendChild(this.container),u.appendChild(A);var v=window.document.createElement("div");v.className="cesium-popup-tip-container";var y=window.document.createElement("div");y.className="cesium-popup-tip",v.appendChild(y),u.appendChild(v),n.appendChild(u),this.infoDiv=n,this.parent.appendChild(n)}}},{key:"bindEvent",value:function(){var t=this;this.handler.setInputAction(this.movement,this.Cesium.ScreenSpaceEventType.LEFT_CLICK),this.map&&(this.options.postRender?this.map.scene.postRender.addEventListener(t.updateEvent):(this.map.camera.changed.addEventListener(t.updateEvent),this.handler.setInputAction(this.moveStart,this.Cesium.ScreenSpaceEventType.LEFT_DOWN),this.handler.setInputAction(this.moveEnd,this.Cesium.ScreenSpaceEventType.LEFT_UP),this.map.scene.camera.moveEnd.addEventListener(t.updateEvent)))}},{key:"unbindEvent",value:function(){var t=this;this.map&&(this.options.postRender?(this.map.scene.postRender.removeEventListener(t.updateEvent),this.handler.destroy()):(this.map.camera.changed.removeEventListener(t.updateEvent),this.map.scene.camera.moveEnd.removeEventListener(t.updateEvent),this.handler.destroy()))}},{key:"movement",value:function(t){var e=this.map.scene.pick(t.position),n=this.Cesium.defined(e)?e.id:void 0;this.Cesium.defined(n)&&this.position&&this.position.entity&&(e.id,this.position.entity.id,this.show())}},{key:"eventMoveStart",value:function(t){this.hide()}},{key:"eventMoveEnd",value:function(){this.update()}},{key:"update",value:function(){this.cartesian&&this.isShow&&ls(this.map,this.cartesian,this.popupId,this.popupContentId,this.options)}},{key:"show",value:function(){this.isShow=!0,this.onShow&&this.onShow(this.isShow,this.popupId);var t=window.document.getElementById(this.popupId);t&&t.style&&(t.style.display="block")}},{key:"hide",value:function(){this.isShow=!1,this.onHide&&this.onHide(this.isShow);var t=window.document.getElementById(this.popupId);t&&t.style&&(t.style.display="none")}},{key:"separate",value:function(){this.hide(),this.onSeparate&&this.onSeparate()}},{key:"remove",value:function(){this.unbindEvent();var t=window.document.getElementById(this.popupId);return t&&(t.parentNode?t.parentNode.removeChild(t):t.remove()),this}}])}();function ys(t){return ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(t)}function bs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ws(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bs(Object(n),!0).forEach((function(e){_s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _s(t,e,n){return(e=xs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xs(t){var e=Ss(t,"string");return"symbol"==ys(e)?e:e+""}function Ss(t,e){if("object"!=ys(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ys(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Cs={name:"mapgis-3d-popup",props:ws(ws({},us),{},{popupWapperStyle:{type:Object},popupHeaderStyle:{type:Object},popupCloseBtnStyle:{type:Object}}),model:{prop:"visible",event:"change"},data:function(){return{longitude:0,latitude:0,height:0,show:!0,isPopupOptionsChange:!1,slotInnerHTML:""}},inject:["Cesium","vueCesium","viewer"],watch:{position:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}},visible:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}},show:{deep:!0,handler:function(){this.update()}},options:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}},popupWapperStyle:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}},popupHeaderStyle:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}},popupCloseBtnStyle:{deep:!0,handler:function(){this.isPopupOptionsChange=!0,this.update()}}},updated:function(){this.forceRender&&this.update()},mounted:function(){this.update()},destroyed:function(){this.unmount()},methods:{togglePopup:function(){var t=!this.show;this.show=t},getViewer:function(){var t=this.viewer,e=this.vueKey,n=this.vueCesium;n=n||window.vueCesium;var r=t||n.getViewer(e);return r},createCesiumObject:function(){var t=this,e=this.Cesium,n=this.vueCesium,r=this.position,i=this.options,o=this.container,a=this.popupWapperStyle,s=this.popupCloseBtnStyle,c=this.popupHeaderStyle;n=n||window.vueCesium,this.$slots.default&&(this.$slots.default[0].elm?(o=this.$slots.default[0].elm||this.$slots.default[0].elm.innerHTML,this.slotInnerHTML=o):this.isPopupOptionsChange?o=this.slotInnerHTML:this.$slots.default[0].context.$children[0].$el&&(o=this.$slots.default[0].context.$children[0].$el.innerHTML)),i=ws(ws({},i),{},{Cesium:e,callback:{onShow:function(e,n){t.$emit("change",e,n)},onHide:function(){t.$emit("change",!1,t.vueIndex),t.destroyOnClose},onSeparate:function(e){t.$emit("separate",e)}}});var u=this.getViewer();return new vs(u,r,i,o,a,c,s)},mount:function(){var t,e=this.viewer,n=this.vueKey,r=this.vueIndex,i=this.vueCesium;i=i||window.vueCesium,e=e||this.getViewer();var o=i.PopupManager.findSource(n,r);return o&&(t=o.source),!e.isDestroyed()&&t&&t.show()},unmount:function(){var t,e=this.viewer,n=this.vueKey,r=this.vueIndex,i=this.vueCesium;e=e||this.getViewer(),i=i||window.vueCesium;var o=i.PopupManager.findSource(n,r);return o&&(t=o.source),t&&(t.remove(),t=void 0),!e.isDestroyed()},update:function(){var t,e=this.vueCesium,n=this.vueIndex,r=this.vueKey;e=e||window.vueCesium;var i=e.PopupManager.findSource(r,n);i&&(t=i.source),t&&t.remove&&(t.remove(),t=void 0,e.PopupManager.deleteSource(r,n)),this.visible&&this.show&&(t=this.createCesiumObject(),this.$emit("load",{popup:t}),r&&(n||0===n)&&e.PopupManager.addSource(r,n,t),this.mount())},removeAll:function(){var t=window.vueCesium.PopupManager.findAllSource();t.forEach((function(t){var e=t.source;e&&e.remove()}))}}},Ms=Cs,Ls=je(Ms,ss,cs,!1,null,null,null),Ts=Ls.exports,ks=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"click"===t.mode?n("div",{staticClass:"mapgis-popup-container"},[t.currentLayerInfo&&t.currentLayerInfo.length>0?n("div",[t.currentLayerInfo[0].title?n("div",{staticClass:"mapgis-popup-title"},[t._v("\n "+t._s(t.currentLayerInfo[0].title)+"\n ")]):t._e(),n("div",{staticClass:"mapgis-popup-row-container"},t._l(t.currentLayerInfo[0].properties,(function(e,r){return n("div",{key:r,staticClass:"mapgis-popup-row"},[n("span",{staticClass:"mapgis-popup-item mapgis-popup-field"},[t._v(t._s(r))]),n("span",{staticClass:"mapgis-popup-item mapgis-popup-value"},[t._v(t._s(e))])])})),0)]):t._e()]):n("div",[t.currentLayerInfo&&t.currentLayerInfo.length>0?n("div",[t.currentLayerInfo[0].title?n("div",[t._v("\n "+t._s(t.currentLayerInfo[0].title)+"\n ")]):t._e(),t._l(t.currentLayerInfo[0].properties,(function(e,r){return n("div",{key:r,staticClass:"mapgis-popup-row"},[n("div",{staticClass:"mapgis-3d-inspect-prop-key"},[n("span",{staticStyle:{"padding-right":"5px"}},[t._v(t._s(r))])]),n("div",[t._v(t._s(e))])])}))],2):t._e()])},Es=[],Os={name:"mapgis-3d-geojson-popup",inject:["Cesium","vueCesium"],props:{outStyle:{type:Object,default:function(){return{height:"120px",width:"240px"}}},mode:{type:String,default:"click"},currentLayerInfo:{type:Array,default:function(){return[]}}}},Ps=Os,Bs=(n("e675"),je(Ps,ks,Es,!1,null,"8b918720",null)),Is=Bs.exports;function Ds(t){return Ds="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ds(t)}function Ns(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ns(Object(n),!0).forEach((function(e){js(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function js(t,e,n){return(e=Rs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rs(t){var e=Hs(t,"string");return"symbol"==Ds(e)?e:e+""}function Hs(t,e){if("object"!=Ds(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ds(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var zs={name:"mapgis-3d-virtual-popup",inject:["Cesium","vueCesium","viewer"],props:Fs({},ln),mixins:[as],data:function(){return{}},components:{Popup:Ts,PopupContent:Is},render:function(t){var e=this.enablePopup,n=this.enableTips,r=this.enableIot,i=this.properties,o=(this.custom,this.componentWidth),a=this.popupOptions,s=(this.tipsOptions,this.iotOptions,this.customPopup),c=this.customTips,u=this.iClickVisible,l=this.iClickPosition,h=this.iHoverVisible,d=this.iHoverPosition,f=this.iClickMode,p=this.iHoverMode,m=this.iClickFeatures,g=this.iHoverFeatures,A=this.iPinMap,v=a.title,y=void 0===v?"name":v,b=a.type,w=void 0===b?"default":b,_=(a.enableSeparate,a.popupType),x=void 0===_?"table":_,S=a.fullHeight,C=void 0===S?600:S,M=i?{properties:i}:m&&m.length>0?m[0]:{properties:{}},L=[],T="补充一段说明文字,默认字段description",k=Fs(Fs({},a),{},{type:w,popupType:x,images:L,description:T,title:y?M.properties[y]:"标题"});if(!A){m.forEach((function(t){t.images=M.properties.images||L,t.content=M.properties.description||T}));var E=M?[M.properties]:m;return t("mapgis-ui-story-panel-large",{on:{closePanel:this.$_onPinMap.bind(this),flyTo:this.$_onFlyTo.bind(this)},attrs:{dataSource:E,height:C}})}var O=this.$slots.default;return delete a.title,s||c?t(Ts,{attrs:{position:l,visible:u,forceRender:!0}},[t("div",{ref:"click"},[s&&s(m),!s&&t(Is,{attrs:{mode:f,currentLayerInfo:m}})]),t("div",{ref:"hover"},[c&&c(g),!c&&t(Is,{attrs:{mode:p,currentLayerInfo:g}})])]):t("div",{class:"mapgis-popup-default-wrapper"},r?[t("mapgis-3d-feature-popup",{attrs:{position:l,popupOptions:a,visible:u}},[t("mapgis-3d-popup-iot",{attrs:{properties:M.properties,getProjectorStatus:this.$_getProjectorStatus.bind(this),projectScreen:this.$_handleProjectScreen.bind(this)}})])]:[e&&t(Ts,{attrs:{position:l,visible:u,forceRender:!0,options:k},on:{change:this.$_changeVisible.bind(this),separate:this.$_separateMap.bind(this)}},[t("mapgis-ui-popup-content",{attrs:{feature:M,popupOptions:a,width:o}},[O])]),n&&t(Ts,{attrs:{position:d,visible:h,forceRender:!0}},[t("mapgis-ui-card",[t("span",[M.properties.title||M.properties[y]])])])])},methods:{}},Us={mixins:[zs],inject:["Cesium","vueCesium","viewer"],components:{Popup:Ts,PopupContent:Is},props:{vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}},layerId:{type:String,default:"theme"},autoReset:{type:Boolean,default:!0},enableClick:{type:Boolean,default:!1},enableHover:{type:Boolean,default:!1},enableQuery:{type:Boolean,default:!1},highlightSymbol:{type:Object,default:function(){return{}}},queryInfo:{type:Object,default:function(){return{}}},visible:{type:Boolean,default:!0}},data:function(){return{gemotryAttribute:void 0,popVisiable:!1,forceRender:!0,visiblePop:!0,checkTypeResult:0,otherQueryDataArr:[]}},watch:{gemotryAttribute:{handler:function(t){t&&(this.popVisiable=!0)}},enableQuery:{handler:function(t){this.findDataSource(this.layerType);t?this.queryPrimitive():this.clearQuery()}},queryInfo:{handler:function(t){this.enableQuery&&(this.clearQuery(),this.queryPrimitive())},deep:!0}},methods:{findDataSource:function(t){var e,n=this.vueKey,r=this.vueIndex,i=this.vueCesium;switch(t=t||this.layerType,t){case"feature":e=i.IgsFeatureManager.findSource(n,r);break;case"geojson":e=i.GeojsonManager.findSource(n,r);break}return e},queryPrimitive:function(){this.viewer,this.vueCesium,this.vueKey,this.vueIndex;var t=this.queryInfo,e=this.renderer;if(void 0!=t){var n=t.field,r=t.type,i=t.minValue,o=t.maxValue,a=t.value,s=n||e.field,c=this.findDataSource(),u=c.source[0]._primitivesArr;switch(r){case"range":this.queryPrimitiveByRange(u,s,i,o);break;case"value":this.queryPrimitiveByValue(u,s,a);break;default:this.queryPrimitiveByValue(u,s,a);break}}},queryPrimitiveByRange:function(t,e,n,r){for(var i=0;i<t.length;i++)for(var o=t[i].primitive,a=0;a<o.geometryInstances.length;a++){var s=o.geometryInstances[a],c=s.id,u=o.getGeometryInstanceAttributes(c),l={color:u.color,show:u.show},h={queryPrimitive:o,id:c,attributes:u,beforeAttr:l};s.extendAttr[e]>=n&&s.extendAttr[e]<r?this.tempQueryDataArr.push(h):this.otherQueryDataArr.push(h)}this.setQuery()},queryPrimitiveByValue:function(t,e,n){for(var r=0;r<t.length;r++)for(var i=t[r].primitive,o=0;o<i.geometryInstances.length;o++){var a=i.geometryInstances[o];if(a.extendAttr[e]==n){var s=a.id,c=i.getGeometryInstanceAttributes(s),u={color:c.color,show:c.show},l={queryPrimitive:i,id:s,attributes:c,beforeAttr:u};this.tempQueryDataArr.push(l)}}this.setQuery()},setQuery:function(){var t=this.tempQueryDataArr,e=this.queryInfo,n=(e.minValue,e.maxValue,e.symbol),r=e.show;if(n){var i=JSON.parse(JSON.stringify(n.symbolLayers));this.transformObject(i);for(var o=0;o<t.length;o++){var a=t[o],s=(a.queryPrimitive,a.id,a.attributes);s.color=new Cesium.ColorGeometryInstanceAttribute.toValue(i.material.color)}}else for(var c=0;c<t.length;c++){var u=t[c],l=(u.queryPrimitive,u.id,u.attributes);l.show=new Cesium.ShowGeometryInstanceAttribute.toValue(r)}},clearQuery:function(){for(var t=0;t<this.tempQueryDataArr.length;t++){var e=this.tempQueryDataArr[t],n=(e.queryPrimitive,e.id,e.attributes),r=e.beforeAttr;n.color=r.color,n.show=r.show}this.tempQueryDataArr=[],this.otherQueryDataArr=[]},changeVisible:function(){this.viewer,this.vueCesium,this.vueKey,this.vueIndex;for(var t=this.visible,e=this.findDataSource(),n=e.source[0]._primitivesArr,r=0;r<n.length;r++)for(var i=n[r].primitive,o=n[r].outlinePrimitive,a=0;a<i.geometryInstances.length;a++){var s=i.geometryInstances[a].id,c=i.getGeometryInstanceAttributes(s);if(c.show=new Cesium.ShowGeometryInstanceAttribute.toValue(t),o){var u=o.geometryInstances[a].id,l=o.getGeometryInstanceAttributes(u);l.show=new Cesium.ShowGeometryInstanceAttribute.toValue(t)}}},checkType:function(){if("{}"!==JSON.stringify(this.renderer)){var t=this.renderer.symbol||this.renderer.defaultSymbol;if(t){var e=t.symbolLayers;e.resource?e.resource.herf?this.checkTypeResult=1:(e.resource.primitive="billboard")?this.checkTypeResult=2:this.checkTypeResult=0:this.checkTypeResult=0}}},clickHighlight:function(t){this.highlight(t)},hoverHighlight:function(t){this.highlight(t)},highlight:function(t){this.clearHighlight();var e=JSON.parse(JSON.stringify(this.highlightSymbol.symbolLayers));this.transformObject(e);t.entities,t.iClickFeatures,t.movement;var n=t.pickedFeature,r=n.id,i=n.primitive;if(1==this.checkTypeResult||2==this.checkTypeResult){this.gemotryAttribute=[{layer:{id:"矢量图层"},properties:i.extendAttr}];var o={color:n.primitive._color};return i._color=e.material.color,void(this.tempHighlightData={pickedFeature:n,oldPickedFeature:o})}for(var a=i.geometryInstances,s=0;s<a.length;s++)if(a[s].id===r){var c=a[s].extendAttr;this.gemotryAttribute=[{layer:{id:"矢量图层"},properties:c}];var u=i.getGeometryInstanceAttributes(r),l={color:u.color,show:u.show};this.tempHighlightData={pickedFeature:n,attributes:l,pickExtendAttr:c},u.color=new Cesium.ColorGeometryInstanceAttribute.toValue(e.material.color),u.show=new Cesium.ShowGeometryInstanceAttribute.toValue(!0)}},clearHighlight:function(){if(this.tempHighlightData){switch(this.checkTypeResult){case 0:var t=this.tempHighlightData,e=t.pickedFeature,n=t.attributes,r=e.id,i=e.primitive,o=i.getGeometryInstanceAttributes(r);o.color=n.color,o.show=n.show;break;case 1:var a=this.tempHighlightData,s=a.pickedFeature,c=a.oldPickedFeature;s.primitive._color=c.color;break;case 2:var u=this.tempHighlightData,l=u.pickedFeature,h=u.oldPickedFeature;l.primitive._color=h.color;break}!this.enableQuery&&this.tempQueryDataArr&&0==this.tempQueryDataArr.length&&this.clearQuery()}}}};function Vs(t){return Vs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(t)}function Ys(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ys=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Vs(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Vs(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Gs(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Qs(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Gs(o,r,i,a,s,"next",t)}function s(t){Gs(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Ws=uo["Zondy"].Renderer,Ks=uo["Zondy"].Symbol,qs=(uo["Zondy"].Color,Ws.SimpleRenderer),Xs=Ks.SimpleMarkerSymbol,$s=Ks.SimpleLineSymbol,Js=Ks.SimpleFillSymbol,Zs={props:{opacity:{type:Number,default:1},visible:{type:Boolean,default:!0},renderer:{type:Object,default:function(){}}},watch:{opacity:function(t){this.innerLayer&&this.innerLayer.setOpacity(t)},visible:function(t){this.innerLayer&&this.innerLayer.setVisible(t)},renderer:function(t,e){this.innerLayer&&JSON.stringify(t)!==JSON.stringify(e)&&this.reloadLayer()}},methods:{getCesiumInnerGraphicsLayer:function(t){var e=new ba["CesiumInnerGraphicsLayer"](t);return e.addPrimitives(),e},queryFeaturesInLayers:function(){var t=Qs(Ys().mark((function t(e,n){var r,i,o;return Ys().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=new uo["FeatureServer"]({url:n}),t.next=3,r.queryFeaturesInLayers({gdbp:e,pageCount:1e5});case 3:return i=t.sent,o=i.data.featureSet,this.featureSet=o.toJSON(),t.abrupt("return",o.features);case 7:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),featureSetApplyRenderer:function(t,e){uo["RendererUtil"].updateRenderer(t,e)},transfromRenderer:function(t){return t.type?uo["BaseRenderer"].fromJSON(t):null},isTextSymbol:function(t){var e,n;switch(t.type){case"simple":n=null===t||void 0===t||null===(e=t.symbol)||void 0===e?void 0:e.type;break;case"class-breaks":break;case"unique-value":break;default:break}return"text"===n},getTextSymbolField:function(t){var e=t.symbol.text;return e},constructFeatureSet:function(t){var e=[];t.forEach((function(t){try{var n=new uo["Feature"]({attributes:t.properties,geometry:uo["Geometry"].fromJSON(t.geometry)});e.push(n)}catch(r){console.log(t)}}));var n=new uo["FeatureSet"]({features:e});return this.featureSet=n.toJSON(),e},getSimplePointRenderer:function(t){return new qs({symbol:new Xs({color:t.color,size:t.radius,outline:new $s({color:t.outlineColor,width:t.outlineWidth})})})},getSimpleLineRenderer:function(t){return new qs({symbol:new $s({color:t.color,width:t.width})})},getSimplePolygonRenderer:function(t){return new qs({symbol:new Js({color:t.color,outline:new $s({color:t.outlineColor,width:t.lineWidth||t.outlineWidth})})})},getRenderer:function(t,e){var n;switch(t){case"Point":case"MultiPoint":n=this.getSimplePointRenderer(e);break;case"LineString":case"MultiLineString":n=this.getSimpleLineRenderer(e);break;case"Polygon":case"MultiPolygon":n=this.getSimplePolygonRenderer(e);break;default:break}return n},addLayer:function(t,e,n){var r=this,i=this.opacity,o=this.visible;if(this.innerLayer||(this.innerLayer=this.getCesiumInnerGraphicsLayer({viewer:t,elevationInfo:new uo["ElevationInfo"]({mode:uo["ElevationMode"].OnTheGround})})),this.isTextSymbol(e)){var a=JSON.parse(JSON.stringify(e)),s=a.symbol.text;n.forEach((function(t){var e=t.attributes||{};a.symbol.text=e[s];var n=r.transfromRenderer(a);t.symbol=n.symbol,r.innerLayer.add(t)}))}else{var c=this.transfromRenderer(e);this.featureSetApplyRenderer(n,c),n.forEach((function(t){r.innerLayer.add(t)}))}this.innerLayer.setOpacity(i),this.innerLayer.setVisible(o)},reloadLayer:function(){var t=this,e=this.renderer,n=this.opacity,r=this.visible,i=uo["FeatureSet"].fromJSON(this.featureSet).features,o=[],a=this.isTextSymbol(e);if(a){this.innerLayer.removeAll();var s=JSON.parse(JSON.stringify(e)),c=s.symbol.text;i.forEach((function(t){var e=t.attributes||{};s.symbol.text=e[c],t.symbol=s.symbol,o.push(uo["Feature"].fromJSON(t))}))}else i.forEach((function(t){o.push(uo["Feature"].fromJSON(t))})),this.featureSetApplyRenderer(o,uo["BaseRenderer"].fromJSON(e));o.forEach((function(e){a?t.innerLayer.add(e):t.innerLayer.update(e)})),this.innerLayer.setOpacity(n),this.innerLayer.setVisible(r)}}};function tc(t){return tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(t)}function ec(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ec=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==tc(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(tc(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function nc(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function rc(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){nc(o,r,i,a,s,"next",t)}function s(t){nc(o,r,i,a,s,"throw",t)}a(void 0)}))}}var ic={name:"mapgis-3d-igs-feature-layer",inject:["Cesium","vueCesium","viewer"],mixins:[Us,zs,Zs],props:{baseUrl:{type:String,default:null},gdbps:{type:String,default:null},renderer:{type:Object,default:function(){return{}}},filter:{type:Object,default:null},clampToGround:{type:Boolean,default:!1},featureStyle:{type:Object,default:function(){return{}}}},data:function(){return{layerType:"feature",layerIndex:void 0,layer:void 0,layerRange:[],clickhandler:void 0,hoverhandler:void 0,tempHighlightdata:void 0,tempQueryDataArr:[]}},mounted:function(){var t=this;this.mount(),window.reloadLayer=function(){return t.reloadLayer()}},destroyed:function(){this.unmount()},watch:{},methods:{createCesiumObject:function(){var t=rc(ec().mark((function t(){var e,n,r,i,o,a,s,c,u,l,h,d,f,p;return ec().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.viewer,this.vueCesium,n=this.baseUrl,r=this.gdbps,i=this.autoReset,o=this.renderer,a=this.filter,s=this.clampToGround,c=this.featureStyle,u=this.vueIndex,this,l={autoReset:i,loadAll:!0,renderer:o,clampToGround:s,filter:a},n&&-1!==n.indexOf("/igs/rest/mrfs/layer")&&(l.layers=r),t.next=7,this.queryFeaturesInLayers(r,n);case 7:d=t.sent,"{}"===JSON.stringify(o)&&"{}"!==JSON.stringify(c)&&(f=d[0],f&&(p=f.geometry.type,h=this.getRenderer(p,c))),this.addLayer(e,h||o,d),this.getDocLayer(u);case 11:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getDocLayer:function(t){var e=this,n=this.vueIndex,r=this.vueKey,i=this.vueCesium;this.url,this.enablePopup;if(t){e.layerIndex=t;var o=[this.innerLayer];o&&i.IgsFeatureManager.addSource(r,n,o,{url:e.baseUrl,layerIndex:e.layerIndex,clickhandler:e.clickhandler,hoverhandler:e.hoverhandler}),e.$emit("load",{data:e})}},mount:function(){var t=this.viewer;this.vueCesium,this.vueKey,this.vueIndex,this.baseUrl,this.gdbps,this.enablePopup;this.mapController||(this.mapController=new Map),t.shadows=!0,Cesium.FeatureDetection.supportsImageRenderingPixelated()&&(t.resolutionScale=window.devicePixelRatio),t.scene.fxaa=!0,t.scene.postProcessStages.fxaa.enabled=!0;var e=this.createCesiumObject(),n=this;e.then((function(t){n.$_bindClickEvent(n.parseClick),n.$_bindHoverEvent(n.parseHover),n.enablePopup&&(n.clickhandler=n.$_bindClickEvent(n.clickHighlight)),n.enableClick&&(n.clickhandler=n.$_bindClickEvent(n.clickHighlight)),n.enableHover&&(n.hoverhandler=n.$_bindHoverEvent(n.hoverHighlight)),n.enableQuery&&n.queryPrimitive()}))},unmount:function(){this.viewer;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=(this.layerIndex,t.IgsFeatureManager.findSource(e,n));r&&r.source&&this.innerLayer.destroy(),r&&r.clickhandler&&r.clickhandler.destroy(),r&&r.hoverhandler&&r.hoverhandler.destroy(),t.IgsFeatureManager.deleteSource(e,n),this.mapController=null,this.$emit("unload",this)},parseClick:function(t){this.$emit("featureClick",{pick:t})},parseHover:function(t){this.$emit("featureHover",{pick:t})},parseBBox:function(t){this.$emit("bbox",{bbox:t})}}},oc=ic,ac=je(oc,qa,Xa,!1,null,"06c7d1e6",null),sc=ac.exports,cc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},uc=[],lc={name:"mapgis-3d-arcgis-tile-layer",props:{srs:{type:String,default:"EPSG:4326"}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",vueKey:"string",vueIndex:"string | Number"},managerName:"ArcgisManager",providerName:"UrlTemplateImageryProvider"}},inject:["Cesium","vueCesium"],mixins:[Ao],created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{mount:function(){var t,e=this,n=(this.viewer,this.token),r=this.options,i={url:this.baseUrl,extent:r.rectangle||null,extensionOptions:null!==(t=this.options)&&void 0!==t&&t.extensions?this.options.extensions:{}};null!==n&&void 0!==n&&n.key&&null!==n&&void 0!==n&&n.value&&(i.tokenKey=n.key,i.tokenValue=n.value);var o=new uo["ArcGISTileLayer"](i);o.load().then((function(t){if(t.loaded){var n=Object(ba["initializeOptions"])(t);r.tilingScheme=n.tilingScheme,r.url=n.url,e.$_mount(r)}}))},unmount:function(){this.$_unmount()}}},hc=lc,dc=je(hc,cc,uc,!1,null,"2873d177",null),fc=dc.exports,pc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},mc=[];function gc(t){return gc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(t)}function Ac(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ac(Object(n),!0).forEach((function(e){yc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ac(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yc(t,e,n){return(e=bc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bc(t){var e=wc(t,"string");return"symbol"==gc(e)?e:e+""}function wc(t,e){if("object"!=gc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var _c,xc,Sc={name:"mapgis-3d-arcgis-map-layer",props:{srs:{type:String,defalut:"EPSG:4326"},layers:{type:String}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",rectangle:"object",tilingScheme:"object",ellipsoid:"object",tileWidth:"number",tileHeight:"number",maximumLevel:"number",credit:"object|String",vueKey:"string",vueIndex:"string | Number"},managerName:"ArcgisManager",providerName:"ArcGisMapServerImageryProvider"}},mixins:[Ao],created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{srs:{handler:function(){this.unmount(),this.mount()}},layers:{handler:function(){this.unmount(),this.mount()}}},methods:{mount:function(){var t={},e=this.layers;e&&e.indexOf("show")>=0&&(e=this.layers.replace("show:",""));var n=this.baseUrl;this.srs&&(t.tilingScheme=this.$_setTilingScheme(this.srs)),t.usePreCachedTilesIfAvailable=!1;var r=vc(vc({},t),{},{layers:e,baseUrl:n});this.$_mount(r)},unmount:function(){this.$_unmount()}}},Cc=Sc,Mc=je(Cc,pc,mc,!1,null,"ee5a3440",null),Lc=Mc.exports,Tc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-graphic-container",style:t.containerStyle},[n("div",[n("mapgis-ui-graphic-icons-panel",{ref:"iconsPanel",attrs:{models:t.models,containerStyle:t.iconsPanelStyle,enableOneMap:t.enableOneMap,enableMapStory:t.enableMapStory},on:{startDraw:t.$_startDraw,startDrawModel:t.$_startDrawModel}})],1),n("div",{staticClass:"mapgis-ui-graphic-edit-panel"},[n("mapgis-ui-graphic-edit-panel",{ref:"editPanel",attrs:{editPanelValues:t.editPanelValues,editList:t.editList,dataSource:t.dataSourceCopy,currentEditType:t.currentEditType,graphicGroups:t.graphicGroups,uploadUrl:t.uploadUrl},on:{change:t.$_changeEditPanelValues,changeGroup:t.$_changeGroup,stopDrawing:t.$_stopDraw,dblclick:t.$_dbclick,clickTool:t.$_clickTool,changeAttributes:t.$_changeAttributes,deleteAttribute:t.$_deleteAttribute,editTitle:t.$_editTitle,batchOperate:t.$_batchOperate,pickCoords:t.$_pickCoords,editPositions:t.$_editPositions,location:t.$_location,editOrientation:t.$_editOrientation,resetOrientation:t.$_resetOrientation}})],1),t.popup.lng?n("mapgis-3d-feature-popup",{attrs:{position:{longitude:t.popup.lng,latitude:t.popup.lat,height:t.popup.alt},popupOptions:t.popupOptions},model:{value:t.enablePopup,callback:function(e){t.enablePopup=e},expression:"enablePopup"}},[n("mapgis-3d-popup-iot",{attrs:{properties:t.popup.properties}})],1):t._e()],1)},kc=[],Ec=n("9588"),Oc={name:"mapgis-3d-graphic-layer-service",inject:["Cesium","viewer"],data:function(){return{localVueIndex:void 0,localVueKey:void 0,drawNum:{label:0,box:0,polyline:0,polygon:0,polygonCube:0,point:0,circle:0,cylinder:0,cone:0,polylineVolume:0,corridor:0,wall:0,rectangle:0,ellipsoid:0,marker:0,model:0}}},methods:{hasObject:function(t,e,n){if(n=n||"graphicsLayer不存在!",t)return e(t);console.warn(n)},$_newGraphicLayer:function(t){t=t||{};var e=t,n=e.vueIndex,r=e.vueKey,i=e.viewer,o=e.getGraphic,a=e.finishEdit,s=e.revokeModel,c=e.revokePoint;e.finishDraw;if(i=i||this.viewer,n=n||this.$_getId(),r=r||"default",i.scene.fxaa=!0,i.scene.postProcessStages.fxaa.enabled=!0,this.localVueIndex=n,this.localVueKey=r,Cesium.hasOwnProperty("GraphicsLayer")){var u=new Cesium.GraphicsLayer(i,{getGraphic:o,finishEdit:a,revokeModel:s,revokePoint:c});i.scene.layers.appendGraphicsLayer(u),window.vueCesium.GraphicsLayerManager.addSource(r,n,u)}else console.warn("请升级最新版的Cesium库!")},$_getGraphicLayer:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=window.vueCesium.GraphicsLayerManager.findSource(e,t);return this.hasObject(n,(function(t){return t.source}),"请初始化GraphicsLayer对象")},$_switchGraphicLayer:function(t,e){e=e||"default",this.localVueIndex=t,this.localVueKey=e},$_startDrawing:function(t,e,n){var r=this.$_getGraphicLayer(e,n);t=t||{},t.hasOwnProperty("type")||console.warn("请输入绘制类型!"),this.hasObject(r,(function(e){e.startDrawing(t)}))},$_stopDrawing:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);this.hasObject(n,(function(t){t.stopDrawing()}))},$_startEdit:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);this.hasObject(n,(function(t){t.startEdit()}))},$_stopEdit:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);this.hasObject(n,(function(t){t.stopEdit()}))},$_updateStyle:function(t,e,n){t.style[e]=n},$_updateStyleByStyle:function(t,e,n,r){n=n||this.localVueIndex,r=r||this.localVueKey;var i=this.$_getGraphicLayer(n,r),o=this;e&&e instanceof Object?this.hasObject(i,(function(n){var r=n.getGraphicByID(t);o.hasObject(r,(function(t){Object.keys(e).forEach((function(n){"labelStyle"===n||"billboardStyle"===n?Object.keys(e[n]).forEach((function(r){t.style[n][r]=e[n][r]})):t.style[n]=e[n]}))}),"标绘对象不存在")})):console.warn("样式为空或者不是对象!")},$_updateStyleByLayer:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n),i=t.dataSource;i&&i instanceof Object&&!i.hasOwnProperty("features")?this.hasObject(r,(function(t){for(var e=i,n=function(n){var r=t.getGraphicByID(e[n].id);r&&e[n].style&&e[n].style instanceof Object&&Object.keys(e[n].style).forEach((function(t){r.style[t]=e[n].style[t]}))},r=0;r<e.length;r++)n(r)})):console.warn("dataSource为空或者不是GeoJSON数据!")},$_updateStyleById:function(t,e,n,r,i){r=r||this.localVueIndex,i=i||this.localVueKey;var o=this.$_getGraphicLayer(),a=this;this.hasObject(o,(function(r){var i=r.getGraphicByID(t);a.hasObject(i,(function(t){t.style[e]=n}),"标绘对象不存在")}))},$_getGraphicByID:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);return this.hasObject(r,(function(e){return e.getGraphicByID(t)}))},$_getGraphicByIndex:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);return this.hasObject(r,(function(e){return e.getGraphicByIndex(t)}))},$_fromJson:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);this.hasObject(r,(function(e){e.loadJson(JSON.stringify(t))}))},$_getJsonById:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;for(var r,i=this.$_toJSON(e,n),o=0;o<i.features.length;o++)if(i.features[o].id===t){r=i.features[o];break}return r},$_toJSON:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);return this.hasObject(n,(function(t){return JSON.parse(t.exportToJson())}))},$_toJSONById:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);return this.hasObject(r,(function(e){var n,r=e.exportToJson();"string"===typeof r&&(r=JSON.parse(r));for(var i=0;i<r.features.length;i++)if(t===r.features[i].id){n=r.features[i];break}return n}))},$_toFile:function(t,e){e=e||"无标题",this.hasObject(t,(function(t){var n=new Blob([JSON.stringify(t)],{type:"application/json;charset=utf-8"});Object(Ec["saveAs"])(n,e+".json")}),"请传入数据")},$_removeAllGraphic:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);this.hasObject(n,(function(t){t.removeAllGraphic()}))},$_removePickingGraphic:function(){var t=this.$_getGraphicLayer();return t.removePickingGraphic()},$_removeGraphicByIndex:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);this.hasObject(r,(function(e){e.removeGraphicByIndex(t)}))},$_removeGraphicByID:function(t,e,n){e=e||this.localVueIndex,n=n||this.localVueKey;var r=this.$_getGraphicLayer(e,n);this.hasObject(r,(function(e){e.removeGraphicByID(t)}))},$_destroy:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);this.hasObject(n,(function(n){n.destroy(),window.vueCesium.GraphicsLayerManager.deleteSource(e,t)}))},$_getAllGraphic:function(t,e){t=t||this.localVueIndex,e=e||this.localVueKey;var n=this.$_getGraphicLayer(t,e);return this.hasObject(n,(function(t){return t.getAllGraphic()}))},$_formatType:function(t){var e={label:"文字",point:"点",line:"直线",curve:"曲线",polygon:"多边形",rectangle:"矩形",circle:"圆",cube:"正方体",polygonCube:"立体多边形",cuboid:"长方体",cone:"圆柱",cylinder:"圆锥",ellipsoid:"球",polylineVolume:"圆管线",corridor:"方管线",model:"模型",marker:"标注"};return e[t]},$_getId:function(t){return t=t||1e10,parseInt(String(Math.random()*t))},$_cartesian3ToLongLat:function(t){var e={},n=Cesium.Cartographic.fromCartesian(t);return e.lat=Cesium.Math.toDegrees(n.latitude),e.lng=Cesium.Math.toDegrees(n.longitude),e.alt=n.height,e},$_getTitle:function(t,e){var n;switch(t){case"label":n="文本";break;case"box":n="盒子";break;case"polyline":n="线";break;case"rectangle":n="矩形";break;case"polygon":n="多边形";break;case"polygonCube":n="立体多边形";break;case"point":n="点";break;case"circle":n="圆";break;case"cone":n="圆柱";break;case"ellipsoid":n="球体";break;case"cylinder":n="圆锥";break;case"polylineVolume":n="圆管线";break;case"corridor":n="方管线";break;case"wall":n="墙";break;case"marker":n="标注";break;case"model":n="模型";break}return this.drawNum[t]+=1,n+"_"+this.drawNum[t]},$_getEditPanelValues:function(t,e){for(var n=this.editList[e],r={},i=0;i<n.length;i++)r[n[i].key]=n[i].value;return r},$_getClassificationType:function(t,e){var n=e.ClassificationType.BOTH;switch(t){case 2:n=e.ClassificationType.BOTH;break;case 0:n=e.ClassificationType.TERRAIN;break;case 1:n=e.ClassificationType.CESIUM_3D_TILE;break;case-1:n=void 0;break;default:break}return n},$_getDrawOptions:function(t,e,n){var r,i={},o=this.$_getClassificationType(t.elevationMode,n);switch(e){case"point":i.style={disableDepthTestDistance:0,color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),arcType:n.ArcType.GEODESIC,pixelSize:t.pixelSize,offsetHeight:t.offsetHeight,outlineWidth:t.outlineWidth||0,outlineColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.outlineColor||"#000000"),t.outlineOpacity/100)};break;case"label":var a;a="number"===typeof t.fontSize?t.fontSize+"px "+t.fontFamily:t.fontSize.indexOf("px")>-1?t.fontSize+" "+t.fontFamily:t.fontSize+"px "+t.fontFamily;var s=Number(t.verticalOrigin)||this.Cesium.VerticalOrigin.BOTTOM,c=Number(t.horizontalOrigin)||this.Cesium.HorizontalOrigin.CENTER;i.style={disableDepthTestDistance:Number.POSITIVE_INFINITY,text:t.text||"",offsetHeight:t.offsetHeight||0,font:a,style:2,fillColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.fontColor||"#000000"),t.opacity/100),outlineWidth:t.outlineWidth||0,outlineColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.outlineColor||"#000000"),t.outlineOpacity/100),showBackground:t.showBackground,backgroundColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.backgroundColor||"#000000"),t.backgroundOpacity/100),backgroundPadding:new n.Cartesian2(t.backgroundPadding,t.backgroundPadding),verticalOrigin:s,horizontalOrigin:c},t.hasOwnProperty("position")&&(i.position=t.position);break;case"box":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),arcType:n.ArcType.GEODESIC,extrudedHeight:t.extrudedHeight,offsetHeight:t.offsetHeight},i.drawWithHeight=!0;break;case"polyline":switch(r={disableDepthTestDistance:Number.POSITIVE_INFINITY,width:t.width,materialType:t.materialType,isHermiteSpline:t.isHermiteSpline,loop:t.loop,classificationType:o},t.materialType){case"Color":r.material=void 0,r.color=n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100);break;case"PolylineDash":r.material={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100)};break;case"PolylineArrow":r.material={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100)};break}i.style=r;break;case"polygonCube":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),extrudedHeight:t.extrudedHeight,offsetHeight:t.offsetHeight,isPlanePolygon:!0},i.drawWithHeight=!0;break;case"polygon":switch(t.materialType=t.materialType||"Color",t.materialType){case"flash":case"Color":r={materialType:void 0,material:void 0,color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),offsetHeight:t.offsetHeight,isPlanePolygon:!1,classificationType:o};break;case"Image":r={materialType:"Image",stRotation:t.stRotation,material:{image:t.image,repeat:new n.Cartesian2(t.repeatX,t.repeatY),color:n.Color.fromAlpha(n.Color.WHITE,t.opacity/100)},height:t.height,isPlanePolygon:!1,classificationType:o};break}i.style=r;break;case"rectangle":switch(t.materialType=t.materialType||"Color",t.materialType){case"Color":r={materialType:void 0,material:void 0,color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),offsetHeight:t.offsetHeight,classificationType:o};break;case"Image":r={materialType:"Image",material:{image:t.image,repeat:new n.Cartesian2(t.repeatX,t.repeatY),color:n.Color.fromAlpha(n.Color.WHITE,t.opacity/100)},stRotation:Math.PI/180*t.stRotation,classificationType:o};break;case"text":r={color:n.Color.WHITE,material:{text:t.rectangleText||"无标题",fillColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),font:(t.rtFontSize||30)+"px "+(t.rtFontFamily||"微软雅黑"),backgroundColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.rtBackgroundColor||"#FFFFFF"),(t.rtBackgroundOpacity||0)/100)},materialType:"text"};break}i.style=r;break;case"circle":switch(r={radius:Number(t.radius),offsetHeight:t.offsetHeight,materialType:t.materialType,classificationType:o},t.materialType=t.materialType||"Color",t.materialType){case"Color":r.material=void 0,r.color=n.Color.fromAlpha(n.Color.fromCssColorString(t.materialColor),t.materialOpacity/100);break;case"RadarMaterial":r.material={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.materialColor),t.materialOpacity/100),speed:t.speed};break;case"CircleWaveMaterial":r.material={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.materialColor),t.materialOpacity/100),duration:t.duration,gradient:t.gradient,count:t.count};break}i.style=r;break;case"ellipsoid":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),offsetHeight:t.offsetHeight,radiusX:t.radiusX,radiusY:t.radiusY,radiusZ:t.radiusZ};break;case"cone":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),radius:Number(t.radius),extrudedHeight:t.extrudedHeight,offsetHeight:t.offsetHeight};break;case"wall":switch(r={extrudedHeight:t.extrudedHeight,materialType:t.materialType,loop:t.loop},t.materialType){case"Color":r.material=void 0,r.color=n.Color.fromAlpha(n.Color.fromCssColorString(t.materialColor),t.materialOpacity/100);break;case"PolylineTrailLink":r.material={image:t.image,color:n.Color.fromAlpha(n.Color.fromCssColorString(t.linkColor),t.materialOpacity/100),duration:t.duration,direction:t.direction,repeat:new n.Cartesian2(1,1)};break}i.style=r;break;case"polylineVolume":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),width:t.width,offsetHeight:t.offsetHeight,cornerType:t.cornerType};break;case"corridor":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),width:t.width,cornerType:t.cornerType,offsetHeight:t.offsetHeight,extrudedHeight:t.extrudedHeight};break;case"cylinder":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),topRadius:t.topRadius,bottomRadius:t.bottomRadius,offsetHeight:t.offsetHeight,extrudedHeight:t.extrudedHeight};break;case"square":i.style={color:n.Color.fromAlpha(n.Color.fromCssColorString(t.color),t.opacity/100),extrudedHeight:t.extrudedHeight,offsetHeight:t.offsetHeight},i.drawWithHeight=!0;break;case"marker":var u;u="number"===typeof t.fontSize?t.fontSize+"px "+t.fontFamily:t.fontSize.indexOf("px")>-1?t.fontSize+" "+t.fontFamily:t.fontSize+"px "+t.fontFamily;var l={text:t.text||"",font:u,fillColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.fontColor||"#000000"),t.opacity/100),outlineColor:n.Color.fromAlpha(n.Color.fromCssColorString(t.outlineColor||"#000000"),t.outlineOpacity/100),outlineWidth:t.outlineWidth,style:n.LabelStyle.FILL_AND_OUTLINE},h={image:t.image,width:t.width,height:t.height,color:n.Color.fromAlpha(n.Color.fromCssColorString("#FFF"),t.opacity/100)};i.style={labelStyle:l,billboardStyle:h,labelPlaceType:t.labelPlaceType,labelPadding:t.labelPadding,offsetHeight:t.offsetHeight,disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new n.Cartesian2(0,0)};break;case"model":i.style={url:t.url,scale:t.scale};break}return i},$_bezierSpline:function(t,e){for(var n=[],r=0;r<t.length;r++){var i=this.$_cartesian3ToLongLat(t[r]);n.push([i.lng,i.lat])}e&&n.push(n[0]),n=Yn["lineString"](n);for(var o=Yn["bezierSpline"](n),a=o.geometry.coordinates,s=0;s<a.length;s++)a[s].push(10);for(var c=[],u=0;u<a.length;u++)c.push(Cesium.Cartesian3.fromDegrees(a[u][0],a[u][1],a[u][2]));return c}}},Pc=Oc,Bc=je(Pc,_c,xc,!1,null,"730254a2",null),Ic=Bc.exports,Dc={methods:{setFeatureConfig:function(){var t=this.featureConfig.feature,e=this.featureConfig.label,n=this.getConfig(t,e),r=JSON.parse(JSON.stringify(this.editList));this.setManagerConfig(r,n),this.editList=r},getConfig:function(t,e){var n={};return Object.keys(t).forEach((function(e){var r=t[e];switch(e){case"line":n.lineColor=r.color,n.lineWidth=Number(r.size);break;case"pnt":n.pointColor=r.color,n.pointWidth=Number(r.size),n.pointStyle=r.style;break;case"reg":n.polygonColor=r.color;default:break}})),Object.keys(e).forEach((function(t){var r=e[t];switch(t){case"image":n.defaultImg=r.defaultImg,n.selectedImg=r.selectedImg,n.anchor=r.popupAnchor;break;case"text":n.textColor=r.color,n.fontFamily=r.fontFamily,n.fontSize=r.fontSize;break;default:break}})),n},setManagerConfig:function(t,e){var n=this;Object.keys(t).forEach((function(r){var i=t[r];switch(r){case"box":n.setBoxConfig(i,e);break;case"circle":n.setCircleConfig(i,e);break;case"cone":n.setConeConfig(i,e);break;case"corridor":n.setCorridorConfig(i,e);break;case"curve":n.setCurveConfig(i,e);break;case"cylinder":n.setCylinderConfig(i,e);break;case"ellipsoid":n.setEllipsoidConfig(i,e);break;case"label":n.setLabelConfig(i,e);break;case"marker":n.setMarkerConfig(i,e);break;case"model":n.setModelConfig(i,e);break;case"point":n.setPointConfig(i,e);break;case"polygon":n.setPolygonConfig(i,e);break;case"polygonCube":n.setPolygonCubeConfig(i,e);break;case"polyline":n.setPolylineConfig(i,e);break;case"polylineVolume":n.setPolylineVolumeConfig(i,e);break;case"rectangle":n.setRectangleConfig(i,e);break;case"square":n.setSquareConfig(i,e);break;case"wall":n.setWallConfig(i,e);break;default:break}}))},setBoxConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"extrudedHeight":break;case"offsetHeight":break;case"color":t.value=e.polygonColor;break;case"opacity":break;default:break}}))},setCircleConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"radius":break;case"materialType":break;case"materialColor":t.value=e.polygonColor;break;case"elevationMode":break;case"offsetHeight":break;case"extrudedHeight":break;case"offsetHeight":break;case"materialOpacity":break;case"speed":break;case"duration":break;case"gradient":break;case"count":break;default:break}}))},setConeConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"radius":break;case"extrudedHeight":break;case"color":t.value=e.polygonColor;break;case"offsetHeight":break;case"opacity":break;default:break}}))},setCorridorConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"width":e.lineWidth&&(t.value=e.lineWidth);break;case"extrudedHeight":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"cornerType":break;case"opacity":break;default:break}}))},setCurveConfig:function(t,e){},setCylinderConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"opacity":break;case"extrudedHeight":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"topRadius":break;case"bottomRadius":break;case"offsetHeight":break;default:break}}))},setEllipsoidConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"radiusX":break;case"radiusY":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"radiusZ":break;case"opacity":break;case"offsetHeight":break;default:break}}))},setLabelConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"text":break;case"fontFamily":e.fontFamily&&(t.value=e.fontFamily);break;case"fontSize":e.fontSize&&(t.value=e.fontSize);break;case"fontColor":e.textColor&&(t.value=e.textColor);break;case"showOutline":break;case"opacity":break;case"offsetHeight":break;case"outlineWidth":break;case"outlineColor":break;case"outlineOpacity":break;case"showBackground":break;case"backgroundColor":break;case"backgroundOpacity":break;case"backgroundPadding":break;case"horizontalOrigin":break;case"verticalOrigin":break;default:break}}))},setMarkerConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"image":break;case"width":break;case"height":break;case"text":break;case"fontFamily":e.fontFamily&&(t.value=e.fontFamily);break;case"fontSize":e.fontSize&&(t.value=e.fontSize);break;case"fontColor":e.textColor&&(t.value=e.textColor);break;case"labelPlaceType":break;case"labelPadding":break;case"offsetHeight":break;case"opacity":break;default:break}}))},setModelConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"url":break;case"scale":break;default:break}}))},setPointConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"pixelSize":break;case"color":e.pointColor&&(t.value=e.pointColor);break;case"opacity":break;case"offsetHeight":break;case"showOutline":break;case"outlineWidth":break;case"outlineColor":break;case"outlineOpacity":break;default:break}}))},setPolygonConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"materialType":break;case"image":break;case"repeatX":break;case"repeatY":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;case"elevationMode":break;case"offsetHeight":break;case"flashAlpha":break;case"alphaSpace":break;case"flashTime":break;default:break}}))},setPolygonCubeConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"extrudedHeight":break;case"offsetHeight":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;default:break}}))},setPolylineConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"materialType":break;case"width":e.lineWidth&&(t.value=e.lineWidth);break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;case"isHermiteSpline":break;case"loop":break;case"elevationMode":break;default:break}}))},setPolylineVolumeConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"cornerType":break;case"width":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;default:break}}))},setRectangleConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"rectangleText":break;case"materialType":break;case"image":break;case"repeatX":break;case"repeatY":break;case"stRotation":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;case"elevationMode":break;case"offsetHeight":break;case"rtFontFamily":e.fontFamily&&(t.value=e.fontFamily);break;case"rtFontSize":e.fontSize&&(t.value=e.fontSize);break;case"rtBackgroundColor":break;case"rtBackgroundOpacity":break;default:break}}))},setSquareConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"extrudedHeight":break;case"offsetHeight":break;case"color":e.polygonColor&&(t.value=e.polygonColor);break;case"opacity":break;default:break}}))},setWallConfig:function(t,e){t.forEach((function(t){switch(t.key){case"title":break;case"materialType":break;case"offsetHeight":break;case"linkColor":e.lineColor&&(t.value=e.lineColor);break;case"materialColor":e.polygonColor&&(t.value=e.polygonColor);break;case"materialOpacity":break;case"image":break;case"duration":break;case"direction":break;case"extrudedHeight":break;case"loop":break;default:break}}))}}},Nc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAfCAYAAAAmyadiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2MTdDRDczRTNBRkIxMUVDQThGQjg3NTI5NEQzRjQyMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2MTdDRDczRjNBRkIxMUVDQThGQjg3NTI5NEQzRjQyMSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjYxN0NENzNDM0FGQjExRUNBOEZCODc1Mjk0RDNGNDIxIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjYxN0NENzNEM0FGQjExRUNBOEZCODc1Mjk0RDNGNDIxIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/qoASAAAAFtJREFUeNo8y0sKgDAMANE2LgRRUdHe/3z+AgouXKR2LJrFYwKJU9VKnHONxBg7GGCEScwsUCGvH+9JDy2/NVVSBZh472/qog5Q2GGBOZNm/tcVtnycfs9HgAEAVWM2FO/Nz/0AAAAASUVORK5CYII=",Fc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAKNJREFUOE9jZKAQMFKon2EQGhCflLp64bzZodi8lpCUtmrBvFlhyHJYvZCQmLZpwfxZfsgKsWkGyeMMg4Sk9B0L5s30ACnCpRmvAWCNian7GRgZX6M7m6AXYApANjMwMEgvmDfLGld04/ECIsASEtPOLJg/ywSbIdgDEUtoJySlXVowb5YeuiEYBuALsISktPcL5s0SJDoMiEnmgzApE+NsZDUAmhk5Eepj+2cAAAAASUVORK5CYII=",jc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAXpJREFUSEu1lb0vA2Ecxz+/6n9gYWBQCdGBqKQTO3+B2pAwIL2mRP8JYelq1JdZiMnLWh0MNXmJhrZnvonkHnlI43rN9ULvnu2b57nf53e/Vxk6Uoq/HQt4BV4UXDFAydyRZy8T8g+A25YtUBLINQypuy+DALRtWkqxYWak4IQECdB2lUC2achhGxI04BuiIGUaUtIiDIC2a0UgrnMSFkBDii1DUmECbIky5guIRiCbhMlBWD0Ft/ZpoVxPQERgKwGJYchXodrs1JWGb4deeAIEWJuGhVE4voObeqe+7mqpbpiCN0/A8hQsjUPxHs4ewK19ff958OEJSMVhMQaFGpw/glv3DdAhWp+B+ZHfEDl13yHSHuokb8/B7BDkb6Ha6tSVpu9/eCe5/akuy90kTDjK1Kn7KlNf/3o/sFHEfButD0iooyLUYaeUsGKmpRjGuNb7fa9lyEEYC8dSwqaZlpOgV6YNlCOwH9TS/1TwjqKGcImibGbkyavavgBf6sD4yClN/AAAAABJRU5ErkJggg==",Rc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAWRJREFUSEu1lb8vQ1EYhp+v/BFlMNCpBkN1ZcdOjQYGkd5GRP+JhoERG73dSUyESaLCoDE0RP1or8R2J+QeOZIbXOlttfec7c05eZ/k/b7zfRJfV4r/HRd4BO4VHNOD7SzJXTML6QAQ9PIEbIH8syW14GUUAN/TVYp5Jyd7PyFRArSvEliuW7LmQ6IGfEEUZBxLbC1MALSvG4NhXRNTAA0pNizJmAR40stgKGBnCm5eoXAGHx4EdRvfJx8KSPfDYgrKddgsQ6rvt/Zaf9HDlhGND8DcCJzUYPsKxgI6jKHgqSVAxzCZgOkk7FfBrvzVIVG9tQWYSMBMEg6qUKxAUHcF8CM6fYCty++IfN1VRGld1FG4aMDGOaTiv3XXRTbepm30edgTD8VQW0XuEGR0VBgddkoJs05WiibGte7alYYlBRMLx1XCgpOV3ahXpgeUYrAa1dJ/V/CC4hrhCEXJyclts077BMiv1vg3sLy1AAAAAElFTkSuQmCC",Hc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAJ9JREFUOE9jZKAQMFKon2G4GqAVGsom8pGx+z8jYwwDAwMj4///i9/w/y+9tnr1L/QwwxoGTj5xExgY/uejKGZk7Ny3eVEFUQZ4hKS/ZWBgEEJT/G7HmpnCRBkQEFuE1YANi/uIMyAyvW7C//+oXvjPwNC1clZzOVEuCG1oYON6z9bN8J8hFqyBkWHxN8FfpasbGogLRFJS53BNiaSEAQAcxS8RnAsgsgAAAABJRU5ErkJggg==",zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAZxJREFUOE+lk98rg1Ecxp/vOzU0k7lStNbWLuRPUG6UiAvplV+l/CxakV9XdGpKUdoNUmRGwm5W4k69F67co+TCIjc0UozNu6/e169tbV7l3J7n+ZznPOd7CP9cZOSvrGmuJkK/6SXWqyihh3S9IaCqtm0PQD2AiCrBdbS/dZ8M+RUgy7LpLpp7CsD9aYrEWU2BZAXUyN02NZbYAFCXFjtifnt17X8mSQFoJz6hqDzBaGJmDwBblo4ir2rcqYT8DzpACCEdn93OEXgAQK5Rsdo+AzsHO4stOqChY6iVmLf+aDwj0LlE8IU2fYoO0KKrefYACG0GkD3Tc7gxGAyqX7rvDjSIZHUFGFkhtzHV7A75RcospJbYN1GYQ+ZrAJb0JAye3F72Tv86SB2DXj8BnQCfA/T19rpHAlesL0ydZAV0embaQexnouHojXMpr+QiQD/XiTpsMYsQIpER0DM650iofCgxda34xpSPYndNltJLHUKE2dX58YlMBesd9AmRH38sKF6bH7lKFmkQqz0sl1medjOdrmkNP5PRbLwDNTWSEULK4hEAAAAASUVORK5CYII=",Uc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAVJJREFUOE+lk09LAlEUxc99ueyzRLtWEU+SECtnIYiFUQNJIOSjqEUUSVQEFiG5cCEWOISBiwmF/ihR1KYv0DYI2gZ9gbkxozNkf8DBu7qLe37c8867hD6L+tTDA4xOxNkP7PHmwtF6gLHwjA14Y2BDsHi3yIoTsOQMES9axC+CB4aYOQdg8OHqvBsQnEx+BgjDt/XKqy0KRpIKhGO7F2DZahj3di+n5qLEbN41Kt2AkKavNs3ykWtjXNMVoQ1gCNkySw7ArlBUzzcvy5kuCz/9h2MpxSAHAJC8rhU9wPfZf1OIJNKKXABDNqoFfwAtuaLQsQAW0jQO/QFi+rqCu4EgWSsd+AMkUluK3Q0Ey2px1x9gNr2jiLn9iIKlUcj6A8wv72UZtO1kwNb02clm/a+f+iuFhUxuhIRlC0MAAh3RBxhPzGL/NL/23FOMvd5F39f4BdUGcBHgxmlVAAAAAElFTkSuQmCC",Vc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAARBJREFUOE+l071OwzAUBeBz4+J0TN8EKSurYciSEbHglQV1hK0TKrxA3sAMzBGCZEFCbJF4E0ZKnNjIlWo1oimW6v07Ptc/hAMXhfqT7GJGXf/YG3PzUT19blxQgMOsRwVCCuD17VmdBQc4zCmqAEoB27TWiPdSfQUFZNnVrD1aecz1VJRl4bELGR0hz2WymvB6szPjTJRqiEcDcjlPuh/tsSWzE+8McBhdVK8PzKLRhotSLQe1t29uMILDE4o95lMSqhjHgwZSLpJv3tcEpBZoGNP/Yh8g54uka6kG1vfcGMuFKm5Ha/8Z4fL67gXAqcNau9pheKvBw3FE5j6O7XmxDMd730HoHwn6C/vCDg74BYYfbBG7+QTOAAAAAElFTkSuQmCC",Yc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAT9JREFUOE+lk8Erw2EYxz/vb69MOO6kRnLyL3BZkmRJtE2bpeywXCaklVaSaBw4jEgth7FNP2ktxY6SP8FNSuQ/UKzt92oOMrP1+7Xn/Hw+z/d53l5BkyWa5DElGBzy92q2sldpuFCqH4TjrnBurwxvKBhwB53SMOIo5QO032lvr9PfbF2Ba2xmXAhxCnQCRVB5AbmylPeOlvc3XdeLdQXDE6EFULuVqQpyNkOsFPLJx//uVZNg1BP2KUUGMBRitXBxtNPo0FUCtyfiRBoPQAcQvcrsN4RrVpgILp0BflCXudTelJkn/kkwGVru1pR8AkpSyb7syeaLJcF0OBZFiTiQzh5vBMzAVSsE5tdvhGBEKLypwzXdsmA2svUKdMmy0ZM8iD1bFswtbn8Are2lNnsiEfm0LDAL/O0z9Zkayb8AiRtbEaHgLjoAAAAASUVORK5CYII=",Gc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAalJREFUOE+lk8srhGEUxp/zzcLO2n8wVrJQpEYpl3GL0jT4XMY9hXItyiSKkkuhZIgx+VwWE2oyGlmYolFWbPgPrO0s5nv0zZhh+JqFeZfvOe/vfc5zzhFkeCTD9/gNkJIK5z0FRWZgISLh0GkxACbiKYASu9ohQm86VaS4wlfawR9AVZWa/WFRXgHkCNh6EzjUfoJK69pbhDTu3rKiujUY1N6NeFJBeUPXMoAxkJHri/0UmV8gKWvovhXQBmDl+nxvPAmwOwasoP4MwKIQhZf+7UezMqob+wt0wQOAqE7mhfyel5iCuubBAIEaQHYDxxu96TyobR7aAdgDQTBwtFkdA9S3jQYFsItg98y3mhZQ3zbqEaAXROj8cLUyBmh0TeWKoj8ZJRAs9O8tmZbgcE3kU1GMmE5dyfN7F+MlGMfZ514WcAzE3cnOvGFUstcJE5v6Z25B2AhZOfXMfZtoJKhDs9kSlVgbSVG1LffRTy/UgbkWkXgbaaFV25hNbaOR3D680CFA+kECXL716b+DFP+N0jmydC8wH2UCkf21yWJAzEf5P4uV8TZ+AnP6lxHiwQAkAAAAAElFTkSuQmCC",Qc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAL5JREFUOE9jZKAQMFKonwFsgK17+H9yDDq8cyUj2AB7zyiyDDi4fRnEACefWLAB+7YsJspLyOrBGlwDksAG7N4wjygDkNWDNXiEpIMN2LFmJlEGIKsHa/CJzAEbsGX5FKIMQFYP1hAQWwQ2YMPiPqIMQFYP1hCSVA42YM28TqIMQFYP1hCRVgs2YMWsZqIMQFYP1hCT1Qg2YMm0eqIMQFYP1hCf10ZWQlo4qQqSkJIKO8kyYF5/OcQASgDFBgAAMpZQEQDl/wIAAAAASUVORK5CYII=",Wc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAgBJREFUOE+lk0tPE2EUht8zQ7nF4gb9B8DOrnRtidFQmca0DKQGFtM0BIkmWk0ToY1NrZI00oRLlNDYhJRYFK3aQhcYqWvdEN0Y9RcYV8WAtpk5Zj6sV2ZceLbnO8+5vO9H+M+gP+uPK4FO/SuHAe4Hoft7/i3ARblZnn1Ryn/6teY3gNsT8BuMuwAOWgxWlQjBSjn/qJH/AXB7hv0grAIgIloj1tN6e/2V+VDecRxlksPM3A+AwVAr5WUBEYC+Pu1QzcEfAHSA+Nrzp0uJ/SY44dWiDL4OoCrLetfG49xHATjlCyUYiDFo/VkhY3axjJO+UBGAAtDURiEzIQAedWwLgItI6l1/cLtiBzg9OO5mNjYBvCmvLhwRACVw4QuAFmpr6yhmU9t2AG8w4uTd3SqAWik/1yIAZ0bCAmA4mv4JUNXxA/XWVrPJ5ye5tFMAVC2yxYDLIPQWsinbFXzBiFtibILw+mE25RKAwVA0QcQxEEr3F2947VYYGp0sgqEQaGolk9w74shY/LBO/F7ICIrduxNP7gc5ey4eRUNGpq7cQnxPRjOGzyf9BBZGArBGkpHm5vaXwiy1nWOs0yUQKaaRGKQuz0d/GqkB0S7eHGCmLACnxRrbDGhLM1f/tnKjYPTyrc66zmGSWAGjx5QL4HemyRySNLM4fcX6M9kdzyr3DUdxuxH7oaeBAAAAAElFTkSuQmCC",Kc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAsVJREFUOE91028sVXEYB/Dvc67uRbVVaynrTbW1eNHS1GaWF5UmS2PyJ+ZPmFItN8utvMiZLcVMrg0xoZQ/15TR0uZPMWQpFTJivKlIcc1/9zrn1845MfnzvPs9z3M+v+f3O+cQ1glnV39HTsXSpLIokLa5puTDWq20Muns6m+rsqBEAL4g6OU6QzQAg7DA4pprSn4uf2YJcPLxsdLMqGMA3AZQLXKcrrGqcFBqdvEI2sOJYjKA0wDuzVubUt+Vlc1KNRk4cSbYjxGSAIyBSFtf+bhxrXGPnw1xAZOPtY0Ybta9fFIqA66eYYyIJkUw99oXeU3r3YuUP+kVYUdMrAVgW1ORRzLg5h3Jjjo6iB8/dYgcUeWC2RRd/Tz3+3LolNelHcSJPAFhjLFSIgp+XZ6jAO6+USz6cjhMZjPqG5rn+/oHCaAkmjbdt7TcyKZo7joBt8DQoBKFWJVgPWxSzxtfGbIUwCPgGrsaGQKNRi1vOjQ8grq3TbOjxokZYcE8y8BGCHSjsij9jVT3DNVuEUyisaooXQE8g2JYVHjgErA4enVNA3r6Bksc9m0O5HleXMxLAATOWFGYqgDeF3QsMtQPGrUywWI0trThS1evvjw/Sbs8LwEqUhvL85MVwDcijoUHea8Cmlrb0dnVqy99lLgC4LeoLUxGQ26iApy/eIcdczoMu/17QUpKjpb3n9HZ3acvzk5YAnie53qGhEgCZRVnJyjdfEr+3aHh37GWlpoNTo4HsdNmuwy0tnWgq6df/zQzXgYCrvAuHKM0BmzlGHSFWfFlS9vxGRmbhGmrZz+GRjx229rQkUP26O4dwNdvA3ominoiTvqU3YiQSBPmBwUF/JyErvqZUh4a7MfGJst//Rk7YG2lweTUzACAXQwoITMXV5CpG15+oauAxWJSRvG5kdHxnPHxyS5RhDY/Tdf+3yv6t/gL+cQlIMbeT3wAAAAASUVORK5CYII=",qc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAiNJREFUOE9jZKAQMCLrt3UPr2NgYGjEZ+b///8bjuxaBVcDN8DRO7ruHwNDOAvzP6e9m5a/xGaIm1us2C/Wf/sYGBnXHNiypAGkBmyAW0BSw3/G/yGMDH+cdq1f/AqfCzxDE0X//GHYz/CPae3ujXPrGW3dw//z8Qld/cfA4rh99eTXxASJZ2iuKCPjn32fP77TYbT3ivovKCxxhZXlt9Pq+cQZEJqYK/r7D+u+929f6DA6+cb9d3R0enztxp1vf37/tV09vx2vK0ITK0WZWJgOykqJ8547d0aG0S0w+X9VWQHD6fNXP1+9cffN31+/LRbPaMAaDom5baL/GP6elJYQEVGSl+JdtXYTA6NXWOb/ssIssNcvXLn1Z9fuPSxikvJYg+LV84cMxsbGf+WlRZlBCtZt2sHA6Bed/78oJwWuoW/KHIZNSyeipA+YJEitn6cTXO2m7fsYGIMSSv8H+7kzSEuKgyUmzVzEsG5BN1YDQGq9XGzA6t69/8hw4uxlBsbSpimbnz1/5ePt5sAgJSHKMH3eCoaVs1uxGhCeWv3f1d6M4f3HzwznL99kEBTg3QJWmFfVP/fjpy+JHi42jFt2HmRYOr0BqwHRmQ3/DXVVGS5dvfufg4Nt/qzeimS4wvSy7t5fv/4U/P37j2nR5GqsBsTltv5nYmL6x8zMNGFuX3kxPCnDQiW5uKv537//NXhTIxNjy/zeslqYGqw2EZOcYWoAQbTTFwCAzaIAAAAASUVORK5CYII=",Xc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAuhJREFUOE9901lIVGEUB/D/+e4yEuTkQzElUVL0IgQ9hAmGVgZiZVJoZTVhmjSl7aUtVBSZRiZlZYq2qIU0ImWWFIZg0WqCuRG0YJgImZbbqDPznbiTilp0nu7l3Pv7zrn8L2FChYSEqFK37GGS+wBKtXjLbLvd7p743Mg9jW0Eh20IZMI1IchXCNHhcrnNALWxhO3Z4ztv/oV4gKAVMT4KRBqBY5k5S1dlhoTW7HZKfwhOBmg7GHku4iPPH97pGgvRsgjrJmZkA/jGRIe6LaaKd7m5ztAI630G7E/LCopCI6wLJOMaAD9mOlBVfqsQABsQLY/cysxuB7OsATADgK+BAVAA/CKmfAl8ZJKfFaEtJdAZEOqlZNvT+zeaKGxtAqu6WukacgWCafdkpbOwY9DkR0TziGEnwl1mTAMwdxhvJxIakZiuqlomhUfbeJctrvfl65rSt7V1qwFUM6txFfas72PXMMaNiorSDVxX1EiQmqKo2hRaFbOLExO2wGTS8au7p76ouHRgYNA5i1nGO/q6vAkiurKswIARHrXDomhqhmExKI/ANorcvI9tcRs9wHC5qqpfvahraA4Ay+Ke7h9rVJM+e5KXeRMDpwl4JyUlkuZug1t0UXT8YZ7jNxMhQQEw6aMIOjq72kvLnzj6uzv9zGYf9DmcbWDaX3IzvdizjnWvr1S0VsopeLDzfUPzBcfQkB4aHIgZFuN7/SkpJUruPYIQAl+///Auu36uZ6S3Lv7oIga/9ATpdvkznw8NHyo+tbQGzPefh4UL/D0vGWUARl1OTx5N7frtx7cRIxPginFRTrtUaG1pbc/Rdd1rSdBCTDFPHgfEJqVOdbqd+UZ4ASQVXT1xexxgnHTyZJF3v9Jb3tH5c7ExSWNjk2eCnn7XSgZdZ8haUhFfkHnMCBv+AkZ2TD6VE/Ozty9fI6eXBxjgXgEcuHExORcgT4z/CxhNW8pZn8Eh5QpAM4WANe/8wS9jfyTj+jf3DEAtsHGcIwAAAABJRU5ErkJggg==",$c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAfBJREFUOE+l001IVFEUB/Bz//e+p5ZB0JAVLaKFM1HtglCkRV8UmUUfpBGj41dpMUEELbsSEWJftghDiUiy7IOi1hFtkqBWppSYTtMoJULMe87z9d5rbjRRJNxmUWd9zo/z59zL6D+L/TkvpcTz16P7AF7DCGsZxxIQiDF8AscgwO+si4TuSSmzv+bmABsro90MbA0R62QF5ouK1ctSPxpfDU0uVzDKAcSJsaEnfVeatMCmnbUZYsbKp497PuuSVdUcL4HA2KPeS/O1wOZddQoMAwR0whQvF3wrykE+VyWKq/UMiDOG8oc3L/zefE6ELbvrVVnFhoHhN4NwnNkVjFEI4MSAadMsTCxcFMp+mZ4qe3CjQw9s3dOoGpuP5rabdV2yLZvSlkW2PUOe5xEXnMbfj9D96+16YNveZlXf1JIX+DA+Snd7zumB7fuPqFjD4bxAMjFG/d1n9cCOA62qNvbzQn+LkEom6Pa1M3qgsvqYitY15AUmPiapr6tND1QdjKtD0VheYHIiRbeuntYD8mLv19LSiCmE0EYABwW+711uaynQPqTWU+ffBkEQDodX0bziYvI9P3fGdNoix8mQ67pkmsa7rvYTES0g5TPhiJEO256pzmQyi30/AADiQmQFjCmj0OhfWmSdlFIGWuBffvZ3skgEILDn5EgAAAAASUVORK5CYII=",Jc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAkpJREFUOE+V091L01EYB/DvnFsTVjZzy6iIXpjKWlSg3XQTlNBf0G2IBCEFVhdWEqOcQpIrBbM3YgmWEBniVc0u6sYMRi6DIVGoy+nefu+v++2c2KCRtVmdu8N5+Jwv5zyPCeusi/7gyQrkVvuutobLlZnWA670PkpKssrcudHu/m9gbHL62Idw+I2uG9Rs3eQNXDv9uRRSNsFgcHJuaTHmkRUFFqttKuA7e/yfgdGJ6aOzsx/f1bjqsLKyCl0RqbW62h243Pbld6RkgsCDlxGWZb21ddsRjyfApJZRabWFBrvPnfgrEBx/2zwX+fS+vnE/FE1HIpkGz7FQRYbaHc7dt7raFn5F/khw8+7ziKap3r376pFmWKTTDARRgsiuwmzZ8Hqot6OlLHD/WahpPhqdOXjoMGAyg+F4MAxXAHRNySO02l67q9/fvvQTWZOgZ+DpLEw4UN/QCElWwfECOE4oAIZhQMjEUWGuCA33dRbfogjcfjzRtPhtYab5SDPMlVbIsgpeFMHzIiRJhqbrMLIauFSM2jbX7Bz2X/ieT1EErvePRGxVNq/b7YaezRUAQZIgCBIkWYam6aCUgk8tg5ro1MNAV6EvikCn/17G4/E47PaN0HQDiqpClGSIoox8M6mqBkIIdE0Gl44nnwx1u9YAZy71nAeBz+lyxrbWbauyWGyObI5skSQFgsBlBI7P8GxKkUVuh0EM3/jI4MAaIL9p7fDtoTo5ZRDaAkoacsRwUULyNycIIVFK6SuSNY29GA18LfkL601mubMffcY3ICmUgnoAAAAASUVORK5CYII=",Zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAnZJREFUOE+lk9tLFGEYxp/ZOe23swcNz6GWgYQtwRYiSPa/dLC8CMpTohQFlZbrSnTA1CKJqP/DG2/qLrzoQpBWN3UPM7Nz3pmdmE/WLCqiXvjgu3l+7/Fh8J/B/KyfnF7qthxvxbLtlGNXwoAPlmVNjuM+MGAvP5+59vmw5gfA+P2ltKrqo82N9UxLUwMICcNxKijKKnb38pAV1Q+L4czCo+HxGuQAEIg1TR/rTZ1Cc8MRsGwInleFadvQdBNq2cBeoYRsdgthQZxbSI9SCAVMTi+eLMr6et/ZJNPe1gRCRHAsC9fzYJo2lLIOWdFQUjTkizJy21s+iUWSizNj6xQwfHdhNSaRgb4zSSQSEiQSPgDopgVF0VGQVRTlMhRVw3YuB8/z1l5mJvopYGhi3jjd0026OttQl4hSQC0CQJC9UFLpk1UNpZKCQmHXevPsDqGAizce+ufP9aKxPvFXFeiGhezmBt4tPWAo4ML1Gb+/L4X6uhgSMemPM1A1A7Zl48vmhv9+eTpEAYOjs0bXsQ7S2tKAqERARPGXWwjEQXbTNJDfyVlvX9zbb2HoZmZVFIWBE8c7ESEiBIEHGwrBq1bpHRimTYXBPCoVF8X8LtxKZe3109v7Q7w6+aTH0pRPHe3tTDweA89zCDEMqr5PBbZTgWU79O84Nr5ubfrxeDy5mJnaXyOFjKfTpmmMtbQehRQhYBgGvu/D9apwXQ/VoBrbwk4uCxKJzL16fOv7IdUgV0Zn53S9PCJJMSYSjUIQhMAKNKtWVlAuK340GsvUxAeXeNgcgyOZbs8zVhzbSbmuE/YBcBxvcjz/UeD5S8vzU7830784+xu5iGQg9wAmPgAAAABJRU5ErkJggg==",tu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAnxJREFUOE+lk29Ik3EQx+/uN7eJ5SSwV5kQvpJIWFFkxObEWWpL3TSNaUvXGiIpatTU8DEKCQsTXZbaH5qZ9KCFRjYlit74pnqTRoUgWkoYqcmGuebzxCYbpohB9/Luvh/uvtwh/GfgRvrkTEsCEjYi0dSSTMwfcNycXqlZF6DNMCchQjMSRRGxa4AoZcTyEKmkt7ORD0DWAJJ0BTogaCSiKCQakyAkPuVbJ3yCo3kl+xDoLiM2LAhQ/NhxdToIUOuMMRJgZUjMTEQhSOwBuqWF/f1NiytHNpk4uQvdtYjMSMhKUZNqjAeiciJKR6SPSMQTsUhEUAFIE/r5pu+rfTKYbAdJgq+JqBg1R06MEGEsE0J2OvvaRgLNaTlFHCAZlrz4FyTXWn1awiQNvz3e0K62S+hfISm9QBx8cmeNH7rjZziGzCCRehPA9W1GHhnbLJNJTbn6VHm7owce3rq4DNBmmsWBnnasqmsdFgF5UVzi6yqtH3y1jPxykYhGwsLC5rdGblHqdVqZXCaD+uZ70NlSuww4pLeIz7tbfQAxsMJlm8Vf05vOijE7ovsiFOEpWs0BRkQgCAI0tHRAx42aZcDhLKtPmKhUKl+sBhhOnhOrKqxBH38teqCr2zk6M/fzusN+we4HpGQX+caEuLhdwcbABNmFNtFWZvHnZ+fm4VHv4FeXy13QYa8Z9OWCxqUZS9Wb5KH14YrNeyIUioWx8Yks/vaVZ8dOVQnnS80w/mUKnC+HJt0uj+a+vfLzupdoMFWoAYlDYioieotIu5M18fDu/afRHzMLeztbbLP/9As55mo1EHJEpIrevu3NkGdy/yuO864+qg2/caNv/QMdv9RA9tcFJwAAAABJRU5ErkJggg==",eu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABTJJREFUeF7tmm+IVFUYxp/35oegfyQFRR8iqKiMij5EUVQWFZlUO/ecNlmjtUCygsIPskp/NiqrDyEkmFFB/zTqvGdc2CVtIVoqFImoUEuLdqOiUstKR9Ny5o3ZNlht595z7j1zZ1bdTwP7vs/zvL97zsy9Z4ZwmP9R0vxdXV3H79279zIAU621bx6KrBoC0FqfVxN5G8C00cGJPo6AR4wxaw4lEA0BxFp/BJHLDx5WgIfLzE8cKhAaAlBabxeRkyYclKgvAnqMMVsmO4jGK0Cp3wGc0HBAou9JZCEzr5jMEJK2wAaInO8w3BLLPN+hri1LklbAOwBudEpN9MHYaljrVN9GRY0BxPELIJrrkXWPAD1l5qUePS0vbQigpNRDBDyeIeGrlnkOAMnQW3hL0gq4E0SvZEy0iYAeZh7I2F9YW9KN0DU1kffyJBGgt8z8WB6NZvcmrYCzQPRVgAADEdFsY8wfAbSCSzQE0N3dffSuSuXPQI4/QWSBtfaNQHrBZBIfhmKltgE4OZgb8JxlfiCgXm6pZABafwKRi3O7HCiwNiKaZYz5LrBuJrm0FdAH4JZMyslN+wiYz8zLmqDtJZkMII6Xguh+L0WPYgFWlJlne7QEL00EUFJqAQHPBHc9UHBzrVrVq1at2thknwnl01bALBCtLCKYAIvKzE8V4TXeIxFAh9ZXRCIfFhhqtWWeUaAfkrdAqXQ6RdG3RQYCsI2ADmYu5MkyEUBvb2+0YePGasEA/rUTedpau7DZ3okA6uaxUj8AOK3ZQRror7fMlzbTOx1AHK8DUVNDpAxYjYhmNus0Oh2AUvWjcd3Mq+CiTcAyZr7PpdanJh1AHD8LonY58/v6r337Lurv79/jM2RSbSqAklIPErAklGEIHSG6vWzMWyG0UgHEcRyDiEOYhdQIdRudCuBWrS85SmR9yPABtXZERNOMMT9n1UwFUCqVTqUo+jGrQSF9InOttS9m8UoFMHovEMd/g2hKFoPCeoj6rTE3+/q5AVBqGMAZvuKtqLfMTjP9l82pWCk1JMBVrRjI29PzFtoJQKzU6wBaenDhAWLIMk93rXcCoJRaLEDTH0xcQ6fUhQcQaz0PIi0/v3MBRMB0Zh5yqa3XuK6AmQL0u4oWWUfAbgHqZxbrCVjJzF7fZjkB6OjsvDCqVj8rcrDxXgL8QiIjIBoRYIRE6gOP1KZMGflt69bhoaGh/VmzOQHQWk+tifya1cSxr/49Qf3jdhhEw6jVRl9HUTRsjNnuqOFd5gSgrqqUqghwjLfDxA2bQNQvwDqJos15r2KeTM4AYqW+BHBOHrOx3k0R0W3GmC8CaOWWcAaglBoU4LqcjhUCbijqwNMlqzOAWKmXAdzlItqwRmSetXZ5Lo3Azc4AlFK9Ajyaw3+5ZZ6Xo78prc4ASlrfTSIvZUyx1jL/71enGbWCtjkDUEpdL8C7GdwrELnSWvtpht6mtzgD6OjsPDeqVv3fudtw34+n6gxAa31sTWSX5yVpy32fCUC9KVZqB4ATHSG07b7PA+BzABc4AKjs2rnzlMHBwd0OtS0tcd4CY7fDAwLclJaYgBnMvDqtrh3+7wUgVup5APckBvc8kmo1BC8ASqlFAjyZEHpS7PvM7wElre8gkdcaAKhY5uNafUV9/X1XwNUCvD+RSXX//jP7+vq+8Q3Q6novAKMfhXG8BURnjw8uRHPKxmT9ZXlLGXgDGPuucDGAa+s/piaRe33P4Vo68UHm3gDaKXyILEcAhKA4mTWOrIDJfPVCZD/sV8A/RO+4UIBMrFcAAAAASUVORK5CYII=",nu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAqFJREFUeF7tmrFv00AUxr+LnQyBtYKxKGUBJiYkBgoTKwsMXasMTEnknOOJssSyE2VjZERIZemGmOjAAEMlFpgqwYrEwB+A/dChGFUhqc52LnbtFylKhnfv3ve7d+/OvhOo+UfUXD8YAGdAzQloTYHJZPLMsqxXg8HgtGq8zgUwnU5vxHH8JREdRdE1z/O+VwnCuQDUyBPRQSJYCHEwHA6f1xaAQeGfiegjER2NRqN3Bvv5z3WqDNhEYET00nXd/U30pfooHYC58KGUcroJCGUFgEajcdNxnK+mIZQWwKYKbmkBADiWUt6vbQYwAM4AngJcA7gI8irAyyDvA8q2ETpOGdBuSvuz5sWvAr7vb1uW9S2JqtVqXe31ej90RC221WmzYFM8ABXQbDbbiaJoL8s7wTAMKYPwpEk5AOQQAAbAGcBTgGtAjhrCRbDwh6Eco/e3Ka8CvArwKpB5FSCiU9d1r+edhr7v73qet/IZRut4PGsQOWuA6vaxlPJNlv7H4/GWbduHANQD2Scp5Z1lfsoOQJ0QbTmO8zMthCAIngohXiTtVh20lB6AEkBEIyGEuqfwm4guA7ikvkKI5H+biNpCiH+/ANoAHlQCQNrRX5rqK+42XIgMYABrIHCha8Aa9IMBcA1YfsGLi+A65tcqH2EYngC4bbIPXd9F1YAJAEc3SJN2RQF4COCtSWG6vgsBMH8pIgEEuoGasisMwByCOl3aNiVOx2+hAOYQPgC4qxOsCZvCAZyZDk8A3ALQMiF0lc9SAEiC63a7zU6nsxPH8RVTEGzbvqdz093oRsiUOB2/6lWYZVnvE1sieuS67tFi28oCUEKDINgTQqib56+bzeZhv9//VSsAOplS6QxgABoEOAM0IFXahDOg0sOrIa72GfAHtcd7UEKK8f4AAAAASUVORK5CYII=",ru="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAB4FJREFUeF7tmn2MVFcVwM95s9ABQpe2WMRq3NqKbbCW1iakkTRoQdKYYD9p0hiBEF2EOpTu3HNnVpRBG3befbsz6yZGSQkibZN+hIqGNKYN/QiVEJKmwWCDEtviVw1+NGt1WOfrmENmyEh39937ZmaZCvfPmfN1f+/ce8877yJc4AMv8PnDRQAXM+ACJ9CyJZDNZpfEYrFNzHwvADzDzDmt9eFO59s0gIGBgcu6urq+y8wPnjtZgQAAea31HzsVRFMAgiB4iJm/BQBzJ5ngHxAxp5Qa7kQIkQD4vr8cEQ0ALLKdFCIekowgor22OlMhFwmAMeYlAFgaMcCnEHG7UupXEfVbqhYJQBAEy5g5CwCfjRhNFQAkG1RE/ZapOQMYGBhYmk6nX5YIstlsr+d5AmJOxIhOyiZJRN+PqN+0mhMAY8waAPgxALzMzLK7/3zHjh3TRkdHHwEAihoNIr4KAN9WSp0BO5XDFcA2APhOPUBEfKxcLufT6fTrxphPAsAAANwTdQLM/OSMGTPWJBKJ/0S14arnBMD3/UcQUY69xjEm67lQKGzNZDJlY8wXETHLzDe5BlOTLyNiXikVOaNc/DoBCIJgOzOnJ3Bworaefyj/Dw4Orq9Wqz4AXOoSUF2Wmd8GgD6t9bNR9G11XAHIk9Uhxl+sgdifz+fnlEolyZikbUDjyB2cNm3a/Zs3b36nCRsTqjoBMMYEDpPZg4hKKXXKGCMFk+wddzUxiV1EtK4J/XFVnQD4vj+EiA87BFGonRZbRCcIgi8DwDZmvtHBRqNoCQA2ENHOiPrvU3MCYIyRen6Tq3Nm/q2UDVprOULBGCM2vgcAs11t1eTfrFarK1Op1K8j6p9VcwUwAgDfbMLpAc/zHkwmk8dzudxV5XK5DwA2N2FvHxE1s6zcWmK+7/8AETc0EXBddTcRra1lw+dq+8qdTdjVRCQvZ87DNQPkiFvv7GV8hX8z81at9VBtf3iAmVMAcENE+1I8LSeigy76rgB2AMDXXRxYyB6PxWLr+vr6Do2MjFwyNjYmy6IfAGZZ6L5PhJnv0lrvs9V1AuD7/k5EbPlRVAv2BaXUCkTkoaGhBZVKRUA4w/Y8b2EymXyjLQCCINjFzGfWbhvHdiI6U27XyuqHmXlFmD9mHmbmTCqVGg2TbfzfKQOMMT8BgK+6OIgo+x4APEBE+2v7w9eYWTLiU+PYexwRA2mw+L7/eUR8CAD+Ud9kw/y7AngMAL4SZrRV/yPi0VKpdHt/f//fc7nc5bVjUwqxOABIV0qaKvuHh4fnFYvFTH2DlmWklPJs4nAF8IQ8GRvDLZb5ERF9Q2wODQ3dVCwWu+tNGWOMvGfIpnlZg88KEXXZxOAK4EkAuN/GcJtkVhPRnvr+INU1AHxmHF8lIppuE4MrgKcB4D4bw22UWUpErxhj3gKAngn8jBHRDJsYnAD4vr8XEe+2MdxGmduk2DHG8EQ+mLmgtbaqI5wAGGN+CgDNlKyt4LKEiH45GQAAeI+IrBoxrgB+BgArWzGLqDaY+Vb55hgCYJSIrDrVTgB839+PiF+KGnwr9Jh5sdb6SAgAqQOusPHnCuA5RLzDxnC7ZDzPuyWZTL4WAuBvRPQhmxicAARB8AubstTGcVSZWCx2c19fn7ThJ9wEAeAUEc2z8eEEwBjzAgAsszHcLplqtboolUodnQwAIr6jlPqITQyuAA4AwBdsDLdLBhFvUEodC8mAPxHRR21icAIQBMFzzHy+94Azr7shAH5PRB9vOQAx6Pv+84i43MZ4O2Q8z7teeoohAN4moqtt/DtlQN1gNpu90fO85wHgShsnLZZZQEQnQirBN7XW19j4jQSgbtgYI70B6RFM5biWiH4XkgEniGiBTVBNAag7iPDBxCa2cWUQ8RNKqbdCAPyGiK6zcdISAOLIGPNhAHgcAG63cRxVplgs9mzZsuVkCIA3iGihjY+WAWhYFtLnl67sZDfHbGIbV4aZPybX7kIAHCMiq/Z6ywE0LIu1iLgr8kwnUGTmq7TWfw4phI4qpaxusLUNQO3InI2I8g3Q+XviJODmE9FfQgC8rpS62QZ+WwE0LAt5GvkmrtadnUs8Hr8ykUj8NWQJvEZEt3QMgAYQcn/o0XMamDZxnpUpl8tzpUscAuAIES22MTwlGdAYSCaT8WbOnCmdXLk+4zwqlcrl6XT63RAAh4noVhvjUw6gHlQul7u2XC4LiF6bQOsy8Xi8O5FI/DOkEjyktZbTKHScNwD1yAYHB1cwcz8z3xYarXwxnTVr9saNG/8VkgEHicjK3nkH0ABiQ7ValXuGkzYzC4XCrEwmUwgB8AoRWd1l7hgAAiKfz8+XZcHME95DisfjcblIGXIMZpRScqkzdHQUgIZsWFKtVmV/kEtV/zO6u7un9/b2liYAcLxSqdyRTqfljqHV6EgADSBW10B8uv5bT09P16pVqyrjAFhLRLutZt0g1NEAJM6RkZFLT58+nUREyYh3a60ubgCwu1KpbHN56o2QOh5APdhzvwoHQbCVmU9GeeofSACuqW0r/4HJANsJucpdBOBK7P9N/oLPgP8CSYLuX3zkuqgAAAAASUVORK5CYII=",iu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAodJREFUeF7tmrFqVUEQhr9bqCk1rYUhoLFTsE2hYJnkFfQdLCw1pYXvoK+QpBS0sNBCEBtBTLQQwUYF0xgJkT/uwvXes7tn751ADjsLyy3OnDmzszOz//53RjQ+Ro2vH3eAR0DjHvAUaDwAvAh6CoQUWALuGKXDOWAFeGekL6q5CuwBB0Z6nwKfYwR8AuSElsZX4GJ0wFFY+QsDD1wHzsu7YRqoPN4czZ/AWwOFN4OO0aQDbgHzOuE5oA88BDYNjJWKB0GfbJON8wzZJhs13AEeASEUYg3wFPAa4EXQT4Gmj0GBDIGNyXEWuALs9wA3NUBI8PYPsFs42GuAkGQXMrBZIE02duKAeQDGEN+dAkJPEjss9KQpeCuZ3Ki5DAktasTfnN6+l6G7ATYrlbvSWREimSokaAlFxxcZ8YfltbwExWeCwu4Aw8uIR8CYBzwFYjEyPEK8BhT4CC+COUJkA3jZEY73AU09k4zV+B4ULVopBLaAVeBRmJOq9UwyjgS7KDHDjRiEqikonEqBmtWUQrBGV5S1TMFsCjgl5pSYU2JOiTVNiXkRbL0IPgY+JA5qEYnvgd+Fg/xeIFC3gZ2C7CXgEPhSkFsD1oNtsjE3RIheA14nhETuykaHwjVQWJ0Zy8AP4E1hBySnXfjYo5vjdtD1rKBTRKtI0V+B7s6J3wAuZAQU4YqCzghIFUHnBJ0T/MfdW3RojEenc4IxF2e5IibecU7QOcF8k5aTorN0iTVzDKZugjX/z9fUM4GWM8CrmpcKspfVARpg+7eE7FSjZPOtsn2apfv+P2+4mSeq6r9m6RP90mlWbtmYcJrXmbTNHTDIbTM02iPA0JmDVOURMMhtMzS6+Qj4C+KWPFAcAeqBAAAAAElFTkSuQmCC",ou={splitImg:Nc,closeImg:Fc,layOff:jc,pointImage:Hc,billboardImage:zc,layOut:Rc,labelImage:Uc,polylineImage:Vc,curveImage:Yc,polygonImage:Gc,rectangleImage:Qc,circleImage:Wc,cubeImage:Kc,polygonCubeImage:qc,boxImage:Xc,cylinderImage:Jc,coneImage:$c,ellipsoidImage:Zc,modelImage:tu,mouseImage:eu,polylineVolumeImage:nu,corridorImage:ru,wallImage:iu},au=ou,su={label:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInput",title:"文本",key:"text",value:"无标题"},{type:"MapgisUiSelect",title:"字体",key:"fontFamily",value:"微软雅黑",dataSource:[{key:"微软雅黑",value:"微软雅黑"},{key:"宋体",value:"宋体"},{key:"楷体",value:"楷体"},{key:"隶书",value:"隶书"},{key:"黑体",value:"黑体"},{key:"新宋体",value:"新宋体"},{key:"华文行楷",value:"华文行楷"},{key:"sans-serif",value:"sans-serif"}]},{type:"MapgisUiInputNumber",title:"字体大小",key:"fontSize",value:30},{type:"MapgisUiColorPicker",title:"字体颜色",key:"fontColor",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiShowOutline",title:"边线设置",key:"showOutline",value:!1},{type:"MapgisUiInputNumber",title:"边线宽度",key:"outlineWidth",value:0},{type:"MapgisUiColorPicker",title:"边线颜色",value:"#F04155",key:"outlineColor"},{type:"MapgisUiSlider",title:"边线透明度",key:"outlineOpacity",value:100},{type:"MapgisUiShowBackground",title:"背景设置",key:"showBackground",value:!0},{type:"MapgisUiColorPicker",title:"背景颜色",value:"#F04155",key:"backgroundColor"},{type:"MapgisUiSlider",title:"背景明度",key:"backgroundOpacity",value:0},{type:"MapgisUiInputNumber",title:"背景边距",key:"backgroundPadding",value:5},{type:"MapgisUiSelect",title:"水平位置",key:"horizontalOrigin",value:0,dataSource:[{key:1,value:"靠左"},{key:0,value:"居中"},{key:-1,value:"靠右"}]},{type:"MapgisUiSelect",title:"垂直位置",key:"verticalOrigin",value:1,dataSource:[{key:-1,value:"居上"},{key:0,value:"居中"},{key:1,value:"居下"}]}],point:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"半径",key:"pixelSize",value:20},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiShowOutline",title:"边线设置",key:"showOutline",value:!1},{type:"MapgisUiInputNumber",title:"边线宽度",key:"outlineWidth",value:0},{type:"MapgisUiColorPicker",title:"边线颜色",key:"outlineColor",value:"#F04155"},{type:"MapgisUiSlider",title:"边线透明度",key:"outlineOpacity",value:100}],polyline:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiSelect",title:"填充类型",key:"materialType",value:"Color",dataSource:[{key:"Color",value:"实线"},{key:"PolylineDash",value:"虚线"},{key:"PolylineArrow",value:"箭头"}]},{type:"MapgisUiInputNumber",title:"线宽",key:"width",value:10},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiSwitch",title:"是否为曲线",key:"isHermiteSpline",value:!1},{type:"MapgisUiLoop",title:"是否闭环",key:"loop",value:!1},{type:"MapgisUiSelect",title:"高程类型",key:"elevationMode",value:2,dataSource:[{key:2,value:"贴地形/模型表面"},{key:0,value:"贴地形表面"},{key:1,value:"贴模型表面"},{key:-1,value:"绝对高度"}]}],polylineVolume:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"半径",key:"width",value:10},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiSelect",title:"拐角类型",key:"cornerType",value:0,dataSource:[{key:0,value:"圆角"},{key:1,value:"方角"},{key:2,value:"斜边角"}]}],corridor:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"宽度",key:"width",value:10},{type:"MapgisUiInputNumber",title:"墙体高度",key:"extrudedHeight",value:100},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiSelect",title:"拐角类型",key:"cornerType",value:0,dataSource:[{key:"圆角",value:0},{key:"方角",value:1},{key:"斜边角",value:2}]}],curve:[{type:"MapgisUiInput",title:"标题"},{type:"MapgisUiInputNumber",title:"线宽"},{type:"MapgisUiColorPicker",title:"颜色"},{type:"MapgisUiSlider",title:"透明度"},{type:"MapgisUiColorPicker",title:"背景颜色"},{type:"MapgisUiSelect",title:"类型",dataSource:[{key:"实线",value:"实线"},{key:"虚线",value:"虚线"},{key:"箭头",value:"箭头"}]}],polygonCube:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiInputNumber",title:"高度",key:"extrudedHeight",value:40},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0}],polygon:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiSelect",title:"填充类型",key:"materialType",value:"Color",dataSource:[{key:"Color",value:"纯色"},{key:"Image",value:"图片"},{key:"flash",value:"闪烁"}]},{type:"MapgisUiInput",title:"图片",key:"image",value:""},{type:"MapgisUiInputNumber",title:"X轴重复",key:"repeatX",value:1},{type:"MapgisUiInputNumber",title:"Y轴重复",key:"repeatY",value:1},{type:"MapgisUiInputNumber",title:"纹理旋转角",key:"stRotation",value:0},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiSelect",title:"高程类型",key:"elevationMode",value:2,dataSource:[{key:2,value:"贴地形/模型表面"},{key:0,value:"贴地形表面"},{key:1,value:"贴模型表面"},{key:-1,value:"绝对高度"}]},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiInputNumber",title:"透明度",key:"flashAlpha",value:.5},{type:"MapgisUiInputNumber",title:"闪烁步长",key:"alphaSpace",value:.05},{type:"MapgisUiInputNumber",title:"闪烁时间",key:"flashTime",value:4e3}],rectangle:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInput",title:"文本",key:"rectangleText",value:"无标题"},{type:"MapgisUiSelect",title:"填充类型",key:"materialType",value:"Color",dataSource:[{key:"Color",value:"纯色"},{key:"Image",value:"图片"},{key:"text",value:"文字"}]},{type:"MapgisUiInput",title:"图片",key:"image",value:""},{type:"MapgisUiInputNumber",title:"X轴重复",key:"repeatX",value:1},{type:"MapgisUiInputNumber",title:"Y轴重复",key:"repeatY",value:1},{type:"MapgisUiInputNumber",title:"纹理旋转角",key:"stRotation",value:0},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiSelect",title:"高程类型",key:"elevationMode",value:2,dataSource:[{key:2,value:"贴地形/模型表面"},{key:0,value:"贴地形表面"},{key:1,value:"贴模型表面"},{key:-1,value:"绝对高度"}]},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiSelect",title:"字体",key:"rtFontFamily",value:"微软雅黑",dataSource:[{key:"微软雅黑",value:"微软雅黑"},{key:"宋体",value:"宋体"},{key:"楷体",value:"楷体"},{key:"隶书",value:"隶书"},{key:"黑体",value:"黑体"},{key:"sans-serif",value:"sans-serif"}]},{type:"MapgisUiInputNumber",title:"字体大小",key:"rtFontSize",value:30},{type:"MapgisUiColorPicker",title:"背景颜色",key:"rtBackgroundColor",value:"#FFFFFF"},{type:"MapgisUiSlider",title:"背景明度",key:"rtBackgroundOpacity",value:0}],circle:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"半径",key:"radius",value:20},{type:"MapgisUiSelect",title:"填充类型",key:"materialType",value:"Color",dataSource:[{key:"Color",value:"纯色"},{key:"RadarMaterial",value:"雷达波"},{key:"CircleWaveMaterial",value:"动态圆波"}]},{type:"MapgisUiSelect",title:"高程类型",key:"elevationMode",value:2,dataSource:[{key:2,value:"贴地形/模型表面"},{key:0,value:"贴地形表面"},{key:1,value:"贴模型表面"},{key:-1,value:"绝对高度"}]},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiColorPicker",title:"材质颜色",key:"materialColor",value:"#F04155"},{type:"MapgisUiSlider",title:"材质透明度",key:"materialOpacity",value:100},{type:"MapgisUiInputNumber",title:"速度",key:"speed",value:1},{type:"MapgisUiInputNumber",title:"动画时间",key:"duration",value:2e3},{type:"MapgisUiInputNumber",title:"倾斜度",key:"gradient",value:.5},{type:"MapgisUiInputNumber",title:"圆波数量",key:"count",value:4}],square:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"高度",key:"extrudedHeight",value:100},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0}],box:[{type:"MapgisUiInput",title:"标题",key:"title",value:"盒子模型"},{type:"MapgisUiInputNumber",title:"盒子高度",key:"extrudedHeight",value:40},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiColorPicker",title:"填充颜色",key:"color",value:"#FF0000"},{type:"MapgisUiSlider",title:"填充透明度",key:"opacity",value:100}],cylinder:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"顶部半径",key:"topRadius",value:0},{type:"MapgisUiInputNumber",title:"底部半径",key:"bottomRadius",value:0},{type:"MapgisUiInputNumber",title:"圆锥高度",key:"extrudedHeight",value:0},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100}],cone:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"半径",key:"radius",value:20},{type:"MapgisUiInputNumber",title:"圆柱高度",key:"extrudedHeight",value:100},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiColorPicker",title:"颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100}],ellipsoid:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInputNumber",title:"X半径",key:"radiusX",value:20},{type:"MapgisUiInputNumber",title:"Y半径",key:"radiusY",value:20},{type:"MapgisUiInputNumber",title:"Z半径",key:"radiusZ",value:20},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:0},{type:"MapgisUiColorPicker",title:"填充颜色",key:"color",value:"#F04155"},{type:"MapgisUiSlider",title:"填充透明度",key:"opacity",value:100}],model:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInput",title:"URL",key:"url",value:"http://localhost:8080/assets/glb/tree4.glb"},{type:"MapgisUiInputNumber",title:"比例尺",key:"scale",value:1}],wall:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiSelect",title:"填充类型",key:"materialType",value:"Color",dataSource:[{key:"Color",value:"纯色"},{key:"PolylineTrailLink",value:"流动纹理"}]},{type:"MapgisUiColorPicker",title:"材质颜色",key:"linkColor",value:"#FFFFFF"},{type:"MapgisUiColorPicker",title:"材质颜色",key:"materialColor",value:"#F04155"},{type:"MapgisUiSlider",title:"材质透明度",key:"materialOpacity",value:100},{type:"MapgisUiInput",title:"材质贴图",key:"image",value:""},{type:"MapgisUiInputNumber",title:"动画时间",key:"duration",value:2e3},{type:"MapgisUiSelect",title:"流动方向",key:"direction",value:1,dataSource:[{key:1,value:"从左到右"},{key:2,value:"从右到左"},{key:3,value:"从上到下"},{key:4,value:"从下到上"}]},{type:"MapgisUiInputNumber",title:"墙体高度",key:"extrudedHeight",value:100},{type:"MapgisUiLoop",title:"是否闭环",key:"loop",value:!1}],marker:[{type:"MapgisUiInput",title:"标题",key:"title",value:"无标题"},{type:"MapgisUiInput",title:"图片",key:"image",value:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABdFJREFUeF7tWm2IVFUYfp4dyRX6cCmcO6s/hDAKNHALLAtSCFPMSq2ICiyJPiydM1vZF5H1Q0vdnTtGZoSZUESUWn5URlRQmUK4RoISURHp3IvZWgmt5ewbd5yJddm999xzz8yAuxfm133e93neZ95zzj3nXmKIXxzi9WPYgOEOGOIODA+BId4A9Z0E065MgWAOiRYCLQK0BH8AgW4JfoJuENt8xT31+mNqPgQynXK5pDAbgpsBTNQsbD+Id1nCjmI7v9GMMYLVzIB0Xq4FsYDAnUbKKkECvAHBRj/HT5LkGSy2JgY4edkEYp5VwYLNXo7zreY8NfzsXo4rewFMtpv1/2xdnmKbzdxWDUi70k1gtE2B/XMJcMxXLE+eNi5rBjiuHABwsQ1RGjkOeoqXaOAiIVYMSLuSJ6Ai2SwCBHB9xVzSlIkNcAryDATLkgoxiieWeVk+axRbCUpkQPpFmcQSdgE421DEwUqc6dA5LilM9RfzO0P+ZKuAU5DXIVgQg9wHsEoEXSeAvcdyPBbEjs7L6JFAG1lePR4FkNbOSWz0srxLG98PaNwBmU6ZKU34UJdYiI9PlrDwaDsPhcWc3yljR6TwGgUzdHOzF7OK7fxIF98XZ26AKysEeFyHtEkw93CO7+lgq5jWvNzUS2zRiSHwfFHxCR1sf4yxAY4rXwO4IpI0wUQVY4Ld7SleGallAICRAcGYbSa6NQj3eIrRJoUkclzZDWBKFFePoKU6p0RhEw+BTEFmikSPfwFu9BW3xhHUH5t25QYC70flIDGrmI0/Dxh1gOPKIgAvRYkSwYV+jj9G4cLut66WC3pH4IhGjgc9xbUauNMgpgasBvBwBNlxT/GcuIIGwjuufAvg0ohcHZ7iI3H5jAxIu7KZwNwIsv2e4qS4ggY0oCDrIVgYlkuALb5i7C24kQGOK9sAXB8haJ+vaGVb7LjyMoD7Q80U7PByDNU0ULyRAZm8vCrEPREGWNu26iy5BNYXFUM1WTPAKchzEDwd1d4nBa2/5ViMwoXdH79Bmnv+KC+5zWE4AsuLik/F5TLqAN1VoCmFqw8v5ldxRfXFj+mQqU0pROYQIOsrronLZWRAJi/zhNgURRY8//tZXheFC7ufLshOnX2BALf5im/H5TIyIF2QiRRobUFJrChm+WRcYQE+U5DlItB7xhdM93L8PC6PkQEBSdqV7wlM0CH0FI14HFdEJz+AvzzFczWxp8GMhAUZHFdWVvbuWrwUzC/muFkHrDvEqrkIvFVUvF0nd3+MsQFxzwMCYiHeFGDtWSV0/drOv/uKGdcpo/5JYTKBRRTcEasYYqGX5YZYMRWwsQHjl0lzTwt+gsAxID4BYD8FXRVjggem4LXZSINcKPViwpF2/mASa2xAeR7Iyysk7jUhthhjfBYQaEhkQKYgl4mgpi8vNYwy2gX2mT80KEIgDe6CA83noe3nu9ljWkWiDqis1Y3sgqWe4irT4hMPgSpxg7rgl9QItB16iEcbbsDYDrmolMIXAMYkERMrNsFha1+exEOgmiyTl3YhOmIVYQ7+0mvFNNzKknmKU5HWDAiSOa58CmB6UlFR8QRmFhV3RuF07ls1oHWNzOjthRVhg4oXrPZyDF6fWbmsGlDugry8AGKpFXX9kgiw798mXPP7Ev5pK791AypDITgriH1AGVHUCRCzvCw/s1W89TmgKmxcp4w92YQPNI6y9WsRLPJyDA5HrV416YDKUJgGlk0YlVQxBYVijjX5AqVmBgRFZ1y5T4B1CQ3Y7inOSZhj0PCaGlAxoSDAEpMCgknP1ruFwfhrbkB5OBRka/CNcEwTjniKNX+yrIsBFRO2QzBb0wRr7xWj+OpmQMWEtRA8ECZKgF2+4lVRwm3dr6sBFRPCPqtb5ymGGmSr8GqeuhswqAmClV6Oj9kuMCpfQwzoY8ItZYHEO0k/eIwqtKGrgKm4esQ1rAPqUZwOx7ABOi6dyZjhDjiT/12d2oZ8B/wH/E/KUC7IGC4AAAAASUVORK5CYII="},{type:"MapgisUiInputNumber",title:"图片宽度",key:"width",value:40},{type:"MapgisUiInputNumber",title:"图片高度",key:"height",value:40},{type:"MapgisUiInput",title:"文本",key:"text",value:""},{type:"MapgisUiSelect",title:"字体",key:"fontFamily",value:"微软雅黑",dataSource:[{key:"微软雅黑",value:"微软雅黑"},{key:"宋体",value:"宋体"},{key:"楷体",value:"楷体"},{key:"隶书",value:"隶书"},{key:"黑体",value:"黑体"},{key:"sans-serif",value:"sans-serif"}]},{type:"MapgisUiInputNumber",title:"字体大小",key:"fontSize",value:30},{type:"MapgisUiColorPicker",title:"字体颜色",key:"fontColor",value:"#F04155"},{type:"MapgisUiShowOutline",title:"边线设置",key:"showOutline",value:!1},{type:"MapgisUiInputNumber",title:"边线宽度",key:"outlineWidth",value:0},{type:"MapgisUiColorPicker",title:"边线颜色",value:"#F04155",key:"outlineColor"},{type:"MapgisUiSlider",title:"边线透明度",key:"outlineOpacity",value:100},{type:"MapgisUiSelect",title:"文字相对图片位置",key:"labelPlaceType",value:"topCenter",dataSource:[{key:"topLeft",value:"靠上靠左"},{key:"topCenter",value:"靠上居中"},{key:"topRight",value:"靠上靠右"},{key:"centerLeft",value:"垂直居中靠左"},{key:"center",value:"垂直水平居中"},{key:"centerRight",value:"垂直居中靠右"},{key:"bottomLeft",value:"底部靠左"},{key:"bottomCenter",value:"底部居中"},{key:"bottomRight",value:"底部靠右"},{key:"leftTop",value:"左边靠上"},{key:"leftCenter",value:"左边居中"},{key:"leftBottom",value:"左边靠下"},{key:"rightTop",value:"右边靠上"},{key:"rightCenter",value:"右边居中"},{key:"rightBottom",value:"右边靠下"}]},{type:"MapgisUiInputNumber",title:"文字相对图片间隔",key:"labelPadding",value:20},{type:"MapgisUiInputNumber",title:"离地高度",key:"offsetHeight",value:10},{type:"MapgisUiSlider",title:"透明度",key:"opacity",value:100}]},cu=su;function uu(t,e,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=e||{},r.geometry=t,r}function lu(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!du(t[0])||!du(t[1]))throw new Error("coordinates must contain numbers");var r={type:"Point",coordinates:t};return uu(r,e,n)}function hu(t,e,n){void 0===n&&(n={});for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}var s={type:"Polygon",coordinates:t};return uu(s,e,n)}function du(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}var fu=n("a230"),pu=n.n(fu);function mu(t,e,n){if(n=n||{},!vu(n))throw new Error("options is invalid");var r=n.bbox,i=n.id;if(void 0===t)throw new Error("geometry is required");if(e&&e.constructor!==Object)throw new Error("properties must be an Object");r&&yu(r),i&&bu(i);var o={type:"Feature"};return i&&(o.id=i),r&&(o.bbox=r),o.properties=e||{},o.geometry=t,o}function gu(t,e,n){if(!t)throw new Error("coordinates is required");for(var r=0;r<t.length;r++){var i=t[r];if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var o=0;o<i[i.length-1].length;o++){if(0===r&&0===o&&!Au(i[0][0])||!Au(i[0][1]))throw new Error("coordinates must contain numbers");if(i[i.length-1][o]!==i[0][o])throw new Error("First and last Position are not equivalent.")}}return mu({type:"Polygon",coordinates:t},e,n)}function Au(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function vu(t){return!!t&&t.constructor===Object}function yu(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!Au(t))throw new Error("bbox must only contain numbers")}))}function bu(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}function wu(t,e,n){if(null!==t)for(var r,i,o,a,s,c,u,l,h=0,d=0,f=t.type,p="FeatureCollection"===f,m="Feature"===f,g=p?t.features.length:1,A=0;A<g;A++){u=p?t.features[A].geometry:m?t.geometry:t,l=!!u&&"GeometryCollection"===u.type,s=l?u.geometries.length:1;for(var v=0;v<s;v++){var y=0,b=0;if(a=l?u.geometries[v]:u,null!==a){c=a.coordinates;var w=a.type;switch(h=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(c,d,A,y,b))return!1;d++,y++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===e(c[r],d,A,y,b))return!1;d++,"MultiPoint"===w&&y++}"LineString"===w&&y++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(i=0;i<c[r].length-h;i++){if(!1===e(c[r][i],d,A,y,b))return!1;d++}"MultiLineString"===w&&y++,"Polygon"===w&&b++}"Polygon"===w&&y++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for("MultiPolygon"===w&&(b=0),i=0;i<c[r].length;i++){for(o=0;o<c[r][i].length-h;o++){if(!1===e(c[r][i][o],d,A,y,b))return!1;d++}b++}y++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===wu(a.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function _u(t,e){if(e=e||{},!vu(e))throw new Error("options is invalid");var n=e.concavity||1/0,r=[];if(wu(t,(function(t){r.push([t[0],t[1]])})),!r.length)return null;var i=pu()(r,n);return i.length>3?gu([i]):null}var xu=_u;function Su(t,e,n){if(n=n||{},!Lu(n))throw new Error("options is invalid");var r=n.bbox,i=n.id;if(void 0===t)throw new Error("geometry is required");if(e&&e.constructor!==Object)throw new Error("properties must be an Object");r&&Tu(r),i&&ku(i);var o={type:"Feature"};return i&&(o.id=i),r&&(o.bbox=r),o.properties=e||{},o.geometry=t,o}function Cu(t,e,n){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Mu(t[0])||!Mu(t[1]))throw new Error("coordinates must contain numbers");return Su({type:"Point",coordinates:t},e,n)}function Mu(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function Lu(t){return!!t&&t.constructor===Object}function Tu(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!Mu(t))throw new Error("bbox must only contain numbers")}))}function ku(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}function Eu(t,e,n){if(null!==t)for(var r,i,o,a,s,c,u,l,h=0,d=0,f=t.type,p="FeatureCollection"===f,m="Feature"===f,g=p?t.features.length:1,A=0;A<g;A++){u=p?t.features[A].geometry:m?t.geometry:t,l=!!u&&"GeometryCollection"===u.type,s=l?u.geometries.length:1;for(var v=0;v<s;v++){var y=0,b=0;if(a=l?u.geometries[v]:u,null!==a){c=a.coordinates;var w=a.type;switch(h=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(c,d,A,y,b))return!1;d++,y++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===e(c[r],d,A,y,b))return!1;d++,"MultiPoint"===w&&y++}"LineString"===w&&y++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(i=0;i<c[r].length-h;i++){if(!1===e(c[r][i],d,A,y,b))return!1;d++}"MultiLineString"===w&&y++,"Polygon"===w&&b++}"Polygon"===w&&y++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for("MultiPolygon"===w&&(b=0),i=0;i<c[r].length;i++){for(o=0;o<c[r][i].length-h;o++){if(!1===e(c[r][i][o],d,A,y,b))return!1;d++}b++}y++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===Eu(a.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Ou(t,e){var n=0,r=0,i=0;return Eu(t,(function(t){n+=t[0],r+=t[1],i++}),!0),Cu([n/i,r/i],e)}var Pu=Ou;function Bu(t,e){if(!t)throw new Error((e||"geojson")+" is required");if(t.geometry&&t.geometry.type)return t.geometry.type;if(t.type)return t.type;throw new Error((e||"geojson")+" is invalid")}function Iu(t,e){switch(Bu(t)){case"Point":return t;case"Polygon":var n=[];Eu(t,(function(t){n.push(t)}));var r,i,o,a,s,c,u,l,h=Pu(t,e),d=h.geometry.coordinates,f=0,p=0,m=0,g=n.map((function(t){return[t[0]-d[0],t[1]-d[1]]}));for(r=0;r<n.length-1;r++)i=g[r],a=i[0],c=i[1],o=g[r+1],s=o[0],u=o[1],l=a*u-s*c,m+=l,f+=(a+s)*l,p+=(c+u)*l;if(0===m)return h;var A=.5*m,v=1/(6*A);return Cu([d[0]+v*f,d[1]+v*p],e);default:var y=xu(t);return y?Iu(y,e):Pu(t,e)}}var Du=Iu;function Nu(t,e,n){if(null!==t)for(var r,i,o,a,s,c,u,l,h=0,d=0,f=t.type,p="FeatureCollection"===f,m="Feature"===f,g=p?t.features.length:1,A=0;A<g;A++){u=p?t.features[A].geometry:m?t.geometry:t,l=!!u&&"GeometryCollection"===u.type,s=l?u.geometries.length:1;for(var v=0;v<s;v++){var y=0,b=0;if(a=l?u.geometries[v]:u,null!==a){c=a.coordinates;var w=a.type;switch(h=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(c,d,A,y,b))return!1;d++,y++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===e(c[r],d,A,y,b))return!1;d++,"MultiPoint"===w&&y++}"LineString"===w&&y++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(i=0;i<c[r].length-h;i++){if(!1===e(c[r][i],d,A,y,b))return!1;d++}"MultiLineString"===w&&y++,"Polygon"===w&&b++}"Polygon"===w&&y++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for(b=0,i=0;i<c[r].length;i++){for(o=0;o<c[r][i].length-h;o++){if(!1===e(c[r][i][o],d,A,y,b))return!1;d++}b++}y++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===Nu(a.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Fu(t){var e=[1/0,1/0,-1/0,-1/0];return Nu(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}Fu["default"]=Fu;var ju=Fu;function Ru(t,e){var n,r,i,o,a,s,c,u,l,h;function d(t){var e="";return t&&t instanceof Object&&Object.keys(t).forEach((function(n){e+=n+":"+t[n]+";"})),e}return t&&t.hasOwnProperty("containerStyle")&&(n=d(t.containerStyle)),e&&e.hasOwnProperty("containerClass")&&(s=e.containerClass),t&&t.hasOwnProperty("rowStyle")&&(i=d(t.rowStyle)),e&&e.hasOwnProperty("rowClass")&&(c=e.rowClass),t&&t.hasOwnProperty("titleStyle")&&(r=d(t.titleStyle)),e&&e.hasOwnProperty("titleClass")&&(u=e.titleClass),t&&t.hasOwnProperty("fieldStyle")&&(o=d(t.fieldStyle)),e&&e.hasOwnProperty("fieldClass")&&(l=e.fieldClass),t&&t.hasOwnProperty("valueStyle")&&(a=d(t.valueStyle)),e&&e.hasOwnProperty("valueClass")&&(h=e.valueClass),{containerStyle:n,containerClass:s,rowStyle:i,rowClass:c,fieldStyle:o,fieldClass:l,titleStyle:r,titleClass:u,valueStyle:a,valueClass:h}}function Hu(t,e){return t&&t instanceof Object&&t.hasOwnProperty(e)&&(e=t[e]),e}function zu(t){return"<div class='mapgis-popup-container "+t.containerClass+"' style='"+t.containerStyle+"'>"}function Uu(t,e,n,r){r.enableSeparate,r.separateMap;return n="mapgis-popup-row-container "+n,"<div class='mapgis-popup-title "+t.titleClass+"' style='"+t.titleStyle+"'>"+e+"</div><div class='"+n+"'>"}function Vu(t,e,n,r,i,o,a,s,c){var u,l="";function h(t,e,n){return"<div class='"+o+" "+t.rowClass+"' style='"+t.rowStyle+"'>"+c+"<span class='"+a+" "+t.fieldClass+"' style='"+t.fieldStyle+"' title='"+e+"'>"+e+"</span><span class='"+s+" "+t.valueClass+"' style='"+t.valueStyle+"' title='"+n+"'>"+n+"</span></div>"}if(c=c||"",t&&t instanceof Array&&t.length>0)for(var d=0;d<t.length;d++){u=Hu(e,t[d]);var f=r.properties[t[d]]||"无";l+=h(n,u,f)}else if(i){u=Hu(e,i);var p=r.properties[i]||"无";l+=h(n,u,p)}return l}function Yu(t,e,n,r,i,o,a,s){var c=t.fields,u=t.alias,l=(t.style,t.title),h=(t.class,zu(r));return l&&(h+=Uu(r,l,"",t)),h+=Vu(c,u,r,e,n,i,o,a,s),h+=l?"</div></div>":"</div>",n&&(!c||c&&c instanceof Array&&0===c.length)&&(h=h.replace("mapgis-popup-row-container ","mapgis-popup-row-container mapgis-popup-row-container-defaultField ")),h}function Gu(t,e,n,r){var i,o=t.fields,a=t.alias,s=(t.style,t.title),c=(t.class,zu(r));function u(t,e,n){return"<div class='mapgis-popup-row mapgis-popup-left-row "+t.rowClass+"' style='"+t.rowStyle+"'><div class='mapgis-popup-left-item mapgis-popup-left-field "+t.fieldClass+"' style='"+t.fieldStyle+"' title='"+e+"'>"+e+"</div><div class='mapgis-popup-left-item mapgis-popup-left-value mapgis-popup-ellipsis "+t.valueClass+"' style='"+t.valueStyle+"' title='"+n+"'>"+n+"</div></div>"}if(s&&(c+=Uu(r,s,"mapgis-popup-row-left-container")),o&&o instanceof Array&&o.length>0)for(var l=0;l<o.length;l++){i=Hu(a,o[l]);var h=e.properties[o[l]]||"无";c+=u(r,i,h)}else{i=Hu(a,n);var d=e.properties[n]||"无";c+=u(r,i,d)}return c+=s?"</div></div>":"</div>",c}function Qu(t,e,n,r){var i,o=Ru(n.style,n.class);switch(t){case"left":i=Gu(n,e,r,o,n);break;case"underline":i=Yu(n,e,r,o,"mapgis-popup-underline-row","mapgis-popup-item mapgis-popup-underline-item mapgis-popup-field mapgis-popup-underline-field","mapgis-popup-item mapgis-popup-underline-item mapgis-popup-value");break;case"point":i=Yu(n,e,r,o,"mapgis-popup-point-row","mapgis-popup-item mapgis-popup-point-item mapgis-popup-field mapgis-popup-point-field","mapgis-popup-item mapgis-popup-point-item mapgis-popup-value mapgis-popup-point-value","<span class='mapgis-popup-point'></span>");break;case"table":i=Yu(n,e,r,o,"mapgis-popup-table-row","mapgis-popup-item mapgis-popup-table-item mapgis-popup-field mapgis-popup-table-field","mapgis-popup-item mapgis-popup-table-item mapgis-popup-value mapgis-popup-table-value");break;case"default":i=Yu(n,e,r,o,"mapgis-popup-row","mapgis-popup-item mapgis-popup-field","mapgis-popup-item mapgis-popup-value");break;default:i=Yu(n,e,r,o,"mapgis-popup-row","mapgis-popup-item mapgis-popup-field","mapgis-popup-item mapgis-popup-value");break}return i}function Wu(t){return Wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(t)}function Ku(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ku(Object(n),!0).forEach((function(e){Xu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ku(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xu(t,e,n){return(e=$u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $u(t){var e=Ju(t,"string");return"symbol"==Wu(e)?e:e+""}function Ju(t,e){if("object"!=Wu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Wu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Zu={name:"mapgis-3d-graphic-single-layer",mixins:[Ic,Dc],model:{prop:"dataSource",event:"change"},props:{dataSource:{type:Array,default:function(){return[]}},models:{type:Object},vueKey:{type:String,default:"default"},vueIndex:{type:[Number,String],default:function(){return Number((1e8*Math.random()).toFixed(0))}},autoFlyToGraphic:{type:Boolean,default:!0},containerStyle:{type:Object},iconsPanelStyle:{type:Object},enableOneMap:{type:Boolean,default:!1},enableMapStory:{type:Boolean,default:!1},groupGraphicIDs:{type:Array,default:function(){return[]}},uploadUrl:{type:String,default:""},featureConfig:{type:Object,defalut:function(){}}},data:function(){return{tabListNoTitle:[{key:"list",tab:"标注列表"},{key:"edit",tab:"设置面板"}],noTitleKey:"list",editList:cu,currentEditType:"",currentIconType:"",dataSourceCopy:void 0,icons:au,editPanelValues:void 0,isEdit:!1,isStartDrawing:!1,addSource:!1,isStartDrawLine:!1,add:!0,drawMode:"",drawDistance:0,modelUrl:void 0,lastGraphicColor:void 0,groupNum:0,enablePopup:!1,popup:{},graphicGroups:[],destinationHeight:100,clickTime:0,clickInterval:200,firstClickFlag:void 0,currentGroupId:void 0,isUpdateByEditValues:!0,groupName:void 0,popupOptions:{type:Object,default:function(){return{popupType:"card"}}},transformEditor:void 0}},watch:{dataSource:{handler:function(){!this.isEdit&&!this.addSource&&!this.editTitle&&this.dataSource.length>0&&this.$_init()},deep:!0},dataSourceCopy:{handler:function(){},deep:!0},featureConfig:{handler:function(t){t&&this.setFeatureConfig()},deep:!0,immediate:!0}},mounted:function(){},methods:{$_getGroups:function(){for(var t=[],e=0;e<this.dataSourceCopy.length;e++)if("group"===this.dataSourceCopy[e].type){var n=JSON.parse(JSON.stringify(this.dataSourceCopy[e])),r=this.$_getGraphicLayer(),i=r.getGraphicByName(n.attributes.title);n.dataSource=[];for(var o=0;o<i.length;o++)n.dataSource.push(i[o].id);t.push(n)}return t},$_resetEditPanel:function(){this.$refs.editPanel&&(this.$refs.editPanel.$_resetEditPanel(),this.dataSourceCopy=[],this.$refs.editPanel.isUpdatePanel=!1,this.$_clearList())},$_resetIconsPanel:function(){this.$refs.iconsPanel&&this.$refs.iconsPanel.$_resetIconsPanel()},$_setIconMode:function(t){this.$refs.iconsPanel.currentIconType=t},$_clearList:function(){this.drawNum={label:0,box:0,polyline:0,polygon:0,polygonCube:0,point:0,circle:0,cylinder:0,cone:0,polylineVolume:0,corridor:0,wall:0,rectangle:0,ellipsoid:0,marker:0,model:0}},$_showAllGraphics:function(){var t=this.$_getAllGraphic();if(t)for(var e=0;e<t.length;e++)t[e].show=!0},$_hideAllGraphics:function(){var t=this.$_getAllGraphic();if(t)for(var e=0;e<t.length;e++)t[e].show=!1},$_update:function(){var t=this.editPanelValues.title,e=this.$_getDrawOptions(this.editPanelValues,this.currentEditType,Cesium);if(this.$_updateStyleByStyle(this.editPanelValues.id,e.style),e.hasOwnProperty("position")){var n=this.$_getGraphicLayer(),r=n.getGraphicByID(this.editPanelValues.id);r.primitive.position=Cesium.Cartesian3.fromDegrees(e.position.lng,e.position.lat,this.editPanelValues.height)}var i=this.$_getJsonById(this.editPanelValues.id);i.title=t,this.$_updateSourceById(this.editPanelValues.id,i)},$_updateSourceById:function(t,e){for(var n,r=0;r<this.dataSourceCopy.length;r++)if(this.dataSourceCopy[r].id===t){n=r;break}this.$set(this.dataSourceCopy,n,e)},$_updateSourceTitleById:function(t,e){for(var n,r=0;r<this.dataSourceCopy.length;r++)if(this.dataSourceCopy[r].id===t){n=r;break}this.dataSourceCopy[n].title=e},$_changeAttributes:function(t,e){if(e){var n=this.$_getGraphicByID(e);Object.keys(t).forEach((function(e){n.attributes[e]=t[e]})),this.enablePopup=!1,this.$nextTick((function(){this.$_setPopUp(n,!0)}))}},$_deleteAttribute:function(t,e){if(e){var n=this.$_getGraphicByID(e);n.attributes[t]&&delete n.attributes[t],this.enablePopup=!1,this.$nextTick((function(){this.$_setPopUp(n,!0)}))}},$_editTitle:function(t,e,n){if(!t){var r=this.$_getGraphicByID(n);r.attributes.title=e}this.editTitle=t},$_batchOperate:function(t){if(t&&t.selectedIds&&!(t.selectedIds.length<1)){var e,n=t.operate,r=t.selectedIds;if("batchShow"===n)for(var i=0;i<r.length;i++)e=this.$_getGraphicByID(r[i]),"marker"===e.type?e.label&&e.billboard&&(e.label.show=!0,e.billboard.show=!0):e.show=!0,e.attributes.show=!0;else if("batchHide"===n)for(var o=0;o<r.length;o++)e=this.$_getGraphicByID(r[o]),"marker"===e.type?e.label&&e.billboard&&(e.label.show=!1,e.billboard.show=!1):e.show=!1,e.attributes.show=!1;else if("batchDelete"===n)for(var a=0;a<r.length;a++){for(var s=void 0,c=0;c<this.dataSourceCopy.length;c++)if(this.dataSourceCopy[c].id===r[a]){s=c;break}this.$refs.editPanel.isUpdatePanel=!1,this.addSource=!0,this.dataSourceCopy.splice(s,1);var u=this.$_getGraphicLayer(this.vueIndex,this.vueKey);u.removeGraphicByID(r[a]),this.$refs.editPanel.isUpdatePanel=!0,this.addSource=!1}}},$_clickTool:function(t,e){switch(t){case"edit":if("group"===e.type){this.$refs.iconsPanel.$_resetIconsPanel(),this.$_stopDrawing(),this.isStartDrawing=!1,this.$nextTick((function(){this.isEdit=!0,this.$_startEdit()})),this.editPanelValues={scale:e.style.scale,heading:0,pitch:0,roll:0};for(var n=this.$_getGraphicLayer(),r=n.getGraphicByName(e.attributes.title),i=[],o=0;o<r.length;o++)i.push({name:r[o].name+"_"+(o+1),attributes:Ja()(r[o].attributes),type:r[o].type,id:r[o].id});this.graphicGroups=i,this.$refs.editPanel.$_setEditPanelValues(this.editPanelValues),this.$refs.editPanel.noTitleKey="edit",this.$refs.editPanel.editType="batch"}else this.$_dbclick(e);break;case"editPopup":this.$refs.editPanel.noTitleKey="edit",this.$refs.editPanel.editType="popup";break;case"delete":for(var a,s=0;s<this.dataSourceCopy.length;s++)if(this.dataSourceCopy[s].id===e.id){a=s;break}if(this.$refs.editPanel.isUpdatePanel=!1,this.addSource=!0,this.dataSourceCopy.splice(a,1),"group"===e.type)for(var c=this.$_getGraphicLayer(),u=c.getGraphicByName(e.attributes.title),l=0;l<u.length;l++)this.$_removeGraphicByID(u[l].id);this.$emit("delete",e.id),this.$nextTick((function(){var t=this.$_getGraphicLayer(this.vueIndex,this.vueKey);t.removeGraphicByID(e.id),this.$refs.editPanel.isUpdatePanel=!0,this.addSource=!1}));break}},$_getEditPanelValuesFromJSON:function(t){if(t&&t instanceof Object&&"{}"!==JSON.stringify(t)){if(t.hasOwnProperty("type")&&t.hasOwnProperty("id")){var e=t.id,n=t.positions,r=t.style,i=(t.editPointStyle,t.attributes),o=t.name,a=(t.show,t.editing,t.allowPicking,t.modelMatrix,t.asynchronous,t.heading),s=t.pitch,c=t.roll,u=r.text,l=r.font,h=r.color,d=r.fillColor,f=r.backgroundColor,p=r.outlineWidth,m=r.outlineColor,g=(r.image,r.extrudedHeight),A=r.width,v=(r.height,r.topRadius),y=(r.backgroundOpacity,r.backgroundPadding),b=r.bottomRadius,w=r.pixelSize,_=r.radius,x=r.materialType,S=r.material,C=r.cornerType,M=r.radiusX,L=r.radiusY,T=r.radiusZ,k=r.url,E=r.scale,O=r.isHermiteSpline,P=r.stRotation,B=r.offsetHeight,I=r.loop,D=r.verticalOrigin,N=r.horizontalOrigin,F=r.classificationType,j=r.abelStyle,R=r.illboardStyle,H=r.labelPlaceType,z=r.labelPadding,U=i.title,V=i.__flashStyle;S=S||{};var Y=S,G=Y.speed,Q=Y.duration,W=Y.gradient,K=Y.count,q=Y.direction,X={};switch(t.type){case"point":X.id=e,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.pixelSize=w,X.offsetHeight=B,X.outlineWidth=p,X.outlineOpacity=100*m[3],X.outlineColor="rgb("+255*m[0]+","+255*m[1]+","+255*m[2]+")",U&&(X.title=U);break;case"label":var $;X.id=e,X.text=u,X.title=U,X.name=o,$="number"===typeof l?[l,"sans-serif"]:l.indexOf(" ")>-1?l.split(" "):[l,"sans-serif"],X.fontSize=$[0],X.fontFamily=$[1],X.fontColor="rgb("+255*d[0]+","+255*d[1]+","+255*d[2]+")",X.opacity=100*d[3],X.backgroundColor="rgb("+255*f[0]+","+255*f[1]+","+255*f[2]+")",X.backgroundOpacity=100*f[3],X.backgroundPadding=y.x,X.outlineWidth=p,X.outlineColor="rgb("+255*m[0]+","+255*m[1]+","+255*m[2]+")",X.outlineOpacity=100*m[3];var J=this.$_cartesian3ToLongLat({x:n[0],y:n[1],z:n[2]});X.offsetHeight=J.alt,X.position=J,X.verticalOrigin=D,X.horizontalOrigin=N;break;case"box":X.id=e,X.color="rgba(".concat(255*h[0],",").concat(255*h[1],",").concat(255*h[2],",").concat(100*h[3],")"),X.opacity=100*h[3],X.extrudedHeight=g,X.offsetHeight=B,U&&(X.title=U);break;case"polyline":X.id=e,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.width=A,X.isHermiteSpline=O,X.materialType=x,X.loop=I,U&&(X.title=U),X.elevationMode=void 0===F?-1:F;break;case"polylineVolume":X.id=e,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.width=A,X.offsetHeight=B,X.cornerType=C,U&&(X.title=U);break;case"polygon":if(X.id=e,X.title=U,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.extrudedHeight=g,X.offsetHeight=B,X.materialType=x||"Color",U&&(X.title=U),V&&(X.alphaSpace=V.alphaSpace,X.flashTime=V.flashTime,X.flashAlpha=V.flashAlpha,X.materialType="flash"),"Image"===x){var Z=S,tt=Z.repeat;X.image=S.image,X.stRotation=P,X.repeatX=tt.x,X.repeatY=tt.y}else X.stRotation=0,X.repeatX=1,X.repeatY=1;X.elevationMode=void 0===F?-1:F;break;case"rectangle":if(X.id=e,X.title=U,X.offsetHeight=B,X.materialType=x,X.rtFontSize=30,X.rtFontFamily="微软雅黑",X.rectangleText="无标题",X.rtBackgroundColor="#FFFFFF",X.rtBackgroundOpacity=0,U&&(X.title=U),"text"===x){var et=S,nt=et.backgroundColor,rt=et.text,it=et.font,ot=et.fillColor;X.rtBackgroundColor="rgb("+255*nt[0]+","+255*nt[1]+","+255*nt[2]+")",X.rtBackgroundOpacity=100*nt[3],X.rectangleText=rt;var at=it.split(" ");X.rtFontSize=at[0].split("px")[0],X.rtFontFamily=at[1],X.color="rgb("+255*ot[0]+","+255*ot[1]+","+255*ot[2]+")",X.opacity=100*ot[3]}else X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3];if("Image"===x){var st=S,ct=st.repeat;X.image=S.image,X.stRotation=P,X.repeatX=ct.x,X.repeatY=ct.y}else X.stRotation=0,X.repeatX=1,X.repeatY=1;X.elevationMode=void 0===F?-1:F;break;case"circle":X.offsetHeight=B,"circle"===this.currentEditType?(X.id=e,X.pureColor="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.pureOpacity=100*h[3],X.radius=_,X.speed=G||1,X.duration=Q||2e3,X.gradient=W||.5,X.count=K||4,X.materialType=x,"Color"===x?(X.materialColor="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.materialOpacity=100*h[3]):(X.materialColor="rgb("+255*S.color.red+","+255*S.color.green+","+255*S.color.blue+")",X.materialOpacity=100*S.color.alpha),U&&(X.title=U)):(X.id=e,X.title=U,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.radius=_,X.extrudedHeight=g,U&&(X.title=U)),X.elevationMode=void 0===F?-1:F;break;case"ellipsoid":X.id=e,X.color="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.opacity=100*h[3],X.radiusX=M,X.radiusY=L,X.radiusZ=T,X.offsetHeight=B,U&&(X.title=U);break;case"wall":X.id=e,X.title=U,X.extrudedHeight=g,X.offsetHeight=B,X.speed=G||1,X.image=S.image||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAUCAYAAAA3IwABAAABv0lEQVR4nO2cwW7DMAiGSbrbTnuCvf8DrtplzQ5dNWSBwa4bCen7JMsONn8MiTiyHcch8v25yT/b4Kz9rDOezTvTe1/WzxrtPT29aG9GY+bcWb672vfWkfasn6exKsZd2dq1vm/0Th2XFWdWZ/S/jPIhifWITZw5s7Z8vH1x7FZOtP36Js+jRXfDlgkmSrj33P4k7bmZD69/9sgvq99qrhirtC7q/lbhyd5ln/Dz8n2Z1LBiE6Wv1yNxtndqc9Xqj367nt/IXu+fzdh6z16cYsyv4mNFwdIci/Uibn/z6g+/yT2WyC+r/xi3pNaZ40fd/5mCNeO3WsPSFGc98q72XJurVn909Pxm9ix7xtZ7jtbtHO33/MSxf+0CAFAEChYAlIGCBQBloGABQBkoWABQBgoWAJSBggUAZaBgAUAZKFgAUAYKFgCUgYIFAGWgYAFAGShYAFAGChYAlIGCBQBlWN0Pq9ffZrbfTu+ZBn7PDxr45b4tDfzsOMWYX8X7ioKlm/bphnqP2QqqlxAvCZbfaAM/bz/yy5ztacycO8uXFsnxO3VcVpxZndH/MsqHJNYjNnHmzNry8fbFsVs50fbrLwRiE9BpH2RgAAAAAElFTkSuQmCC",X.duration=Q||2e3,X.direction=q||1,X.materialType=x,X.loop=I,"Color"===x?(X.materialColor="rgb("+255*h[0]+","+255*h[1]+","+255*h[2]+")",X.materialOpacity=100*h[3],X.linkColor="rgb(255, 255, 255)"):(X.linkColor="rgb("+255*S.color.red+","+255*S.color.green+","+255*S.color.blue+")",X.materialOpacity=100*S.color.alpha),U&&(X.title=U);break;case"corridor":X.id=e,X.color="rgba("+255*h[0]+","+255*h[1]+","+255*h[2]+","+100*h[3]+")",X.opacity=100*h[3],X.width=A,X.cornerType=C,X.offsetHeight=B,X.extrudedHeight=g,U&&(X.title=U);break;case"cylinder":X.id=e,X.color="rgba("+255*h[0]+","+255*h[1]+","+255*h[2]+","+100*h[3]+")",X.opacity=100*h[3],X.topRadius=v,X.bottomRadius=b,X.offsetHeight=B,X.extrudedHeight=g,U&&(X.title=U);break;case"marker":var ut;X.id=e,X.image=R.image,X.width=R.width,X.height=R.height,X.title=U,X.text=j.text,ut="number"===typeof j.font?[j.font,"sans-serif"]:j.font.indexOf(" ")>-1?j.font.split(" "):[j.font,"sans-serif"],X.fontSize=ut[0],X.fontFamily=ut[1],X.fontColor="rgb("+255*j.fillColor.red+","+255*j.fillColor.green+","+255*j.fillColor.blue+")",X.opacity=100*j.fillColor.alpha,X.outlineWidth=j.outlineWidth,X.outlineOpacity=100*j.outlineColor.alpha,X.outlineColor="rgba(".concat(255*j.outlineColor.red,",").concat(255*j.outlineColor.green,",").concat(255*j.outlineColor.blue,",").concat(j.outlineColor.alpha,")"),X.offsetHeight=B,X.labelPlaceType=H,X.labelPadding=z;break;case"model":X.id=e,X.url=k,X.scale=E,U&&(X.title=U),X.positions=this.$_cartesian3ToLongLat(new this.Cesium.Cartesian3.fromArray(n)),X.orientation={heading:a?Math.PI/a:0,pitch:s?Math.PI/s:0,roll:c?Math.PI/c:0};break}return i&&(X.attributes=JSON.parse(JSON.stringify(i))),X}console.warn("type或者id不存在!")}else console.warn("json对象不能为空!")},$_startDrawModel:function(t,e,n,r,i,o){var a;if(a=this.$_getGraphicLayer(),new this.Cesium.DrawTool(this.viewer,a),this.$_stopDrawing(),this.drawMode=n,this.currentEditType="model",this.isStartDrawLine=!0,this.isStartDrawing=!0,this.drawDistance=r,this.modelUrl=e,e)switch(n){case"point":this.editPanelValues||(this.editPanelValues=this.$_getEditPanelValues(this.editList,"model")),this.editPanelValues.url=e,this.editPanelValues.scale=o,this.$refs.editPanel.$_setEditPanelValues(this.editPanelValues);var s=this.$_getDrawOptions(this.editPanelValues,"model",Cesium);this.$_startDrawing(qu({type:"model"},s));break;case"polyline":this.$_DrawGroup("polyline",e,o,r,i);break;case"polygon":this.$_DrawGroup("polygon",e,o,r,i);break}},$_DrawGroup:function(t,e,n,r,i){var o,a,s=e.split("/"),c=this,u=s[s.length-1];switch(this.drawMode="group",u=u.split(".")[0],this.groupNum++,this.groupName=u+"模型组"+this.groupNum,o=this.$_getGraphicLayer(),a=new this.Cesium.DrawTool(this.viewer,o,{finishDraw:function(){var t=Number((1e8*Math.random()).toFixed(0));c.currentGroupId=t,c.dataSourceCopy.push({type:"group",id:t,attributes:{title:c.groupName},style:{scale:n||1},dataSource:[]}),console.log("vm.dataSourceCopy",c.dataSourceCopy)}}),t){case"polyline":a.DrawModelsByLine({intervalDistance:r,modelRadius:i,style:{scale:n||1,url:e},name:this.groupName});break;case"polygon":a.DrawModelsByArea({style:{scale:n||1,url:e},name:this.groupName});break}},$_startDraw:function(t,e){if("mouse"!==t&&(this.currentEditType=t),this.$_stopDrawing(),"mouse"===t)this.$_startEdit(),this.isStartDrawing=!1;else{this.editPanelValues=this.$_getEditPanelValues(this.editList,this.currentEditType),this.$refs.editPanel.$_setEditPanelValues(this.editPanelValues);var n=this.$_getDrawOptions(this.editPanelValues,this.currentEditType,Cesium);this.isStartDrawing=!0,this.$_stopEdit();var r=this.currentEditType;"cone"===r&&(r="circle"),"polygonCube"===r&&(r="polygon"),"square"===r&&(r="box"),this.drawMode="point",this.$_startDrawing(qu({type:r},n))}this.enablePopup=!1},$_stopDraw:function(){this.$refs.iconsPanel.currentIconType="mouse",this.$_stopDrawing(),this.$_startEdit()},$_stopDrawAll:function(){this.$refs.iconsPanel.currentIconType="mouse",this.$_stopDrawing(),this.$_stopEdit()},$_changeEditPanelValues:function(t,e){if(this.isUpdateByEditValues&&(this.editPanelValues=t,e))if(this.isStartDrawing){this.$_stopDrawing();var n=this.$_getDrawOptions(t,this.currentEditType,Cesium),r=this.currentEditType;if("cone"===r&&(r="circle"),"polygonCube"===r&&(r="polygon"),"square"===r&&(r="box"),"model"===r)this.$_startDrawModel("model",this.modelUrl,this.drawMode,this.drawDistance,0,t.scale);else{var i=t.materialType;"flash"===i&&(n.attributes={__enableFlash:!0,__flashStyle:{flog:!0,flashAlpha:t.flashAlpha,alphaSpace:t.alphaSpace,flashTime:t.flashTime}}),this.$_startDrawing(qu({type:r},n))}}else{if(!t)return;var o=t.title;this.$refs.editPanel.isUpdatePanel=!1,this.$_updateSourceTitleById(t.id,o);var a=this.$_getGraphicByID(t.id);a&&(a.attributes.title=o);var s=this.$_getDrawOptions(t,this.currentEditType,Cesium);if("label"===a.type){var c=a.style.showBackground;s.style.showBackground=c}if("model"===a.type){if(t.orientation){var u=t.orientation,l=u.heading,h=u.pitch,d=u.roll;a.heading=l?Math.PI/l:0,a.pitch=h?Math.PI/h:0,a.roll=d?Math.PI/d:0}if(t.positions){var f=t.positions,p=f.lng,m=f.lat,g=f.alt,A=this.Cesium.Cartesian3.fromDegrees(p,m,g);a.positions=[A]}}this.$_updateStyleByStyle(t.id,s.style),this.$nextTick((function(){this.$refs.editPanel.isUpdatePanel=!0}))}},$_changeGroup:function(t,e){for(var n,r=this,i=0;i<this.dataSourceCopy.length;i++)this.dataSourceCopy[i].id===e&&(n=this.dataSourceCopy[i]);if(n)for(var o=function(){var e=r.$_getGraphicByID(r.graphicGroups[a].id);e&&Object.keys(t).forEach((function(n){"scale"===n?e[n]=t[n]:(e[n]=Cesium.Math.toRadians(t[n]),e.setRotateMatrix())}))},a=0;a<this.graphicGroups.length;a++)o()},$_dbclick:function(t,e,n){if(this.noTitleKey="edit",this.$refs.iconsPanel.$_resetIconsPanel(),this.$refs.editPanel.noTitleKey="edit",this.$refs.editPanel.editType="edit",this.$refs.editPanel.isEdit=!0,this.$_stopDrawing(),this.isStartDrawing=!1,n||"model"===this.currentEditType||this.$nextTick((function(){this.isEdit=!0,this.$_startEdit()})),t.hasOwnProperty("style")||(t=this.$_getJsonById(t.id)),this.currentEditType=t.type,"group"===this.currentEditType){var r=this.$_getGraphicLayer();r.getGraphicByName(t.attributes.title)}t.style.hasOwnProperty("isSquare")&&t.style.isSquare&&(this.currentEditType="square"),"circle"===this.currentEditType&&t.style.hasOwnProperty("extrudedHeight")&&t.style.extrudedHeight>0&&(this.currentEditType="cone"),"polygon"===this.currentEditType&&t.style.hasOwnProperty("extrudedHeight")&&t.style.extrudedHeight>0&&(this.currentEditType="polygonCube"),this.currentIconType="mouse";var i=this.$_getJsonById(t.id);this.editPanelValues=this.$_getEditPanelValuesFromJSON(i),this.editPanelValues.showOutline=!1;var o=this.$_getGraphicByID(t.id);if(o&&o.heading){var a=o.heading,s=o.pitch,c=o.roll;this.editPanelValues.orientation={heading:a?Math.PI/a:0,pitch:s?Math.PI/s:0,roll:c?Math.PI/c:0}}this.$refs.editPanel.$_setEditPanelValues(this.editPanelValues);var u=o.style,l=u.offsetHeight,h=u.extrudedHeight,d=u.radiusX,f=u.width,p=u.radius;this.destinationHeight=0,l&&(this.destinationHeight+=Number(l)),h&&(this.destinationHeight+=Number(h)),"ellipsoid"===o.type&&d&&(this.destinationHeight+=Number(8*d)),"polylineVolume"===o.type&&f&&(this.destinationHeight+=Number(8*f)),"circle"===o.type&&p&&(this.destinationHeight+=Number(8*p)),"model"===o.type?(this.lastGraphicColor=Cesium.Color.WHITE,this.destinationHeight+=Number(4*o.boundingSphere.radius)):this.lastGraphicColor=o.style.color,this.destinationHeight<=0&&(this.destinationHeight=1e4);var m,g,A,v,y,b=[[]];switch(t.type){case"label":case"marker":case"point":v=o.positions[0],y=this.$_cartesian3ToLongLat(new Cesium.Cartesian3(v.x,v.y,v.z)),g=Cesium.Cartesian3.fromDegrees(y.lng,y.lat,this.destinationHeight);break;case"polygon":case"polyline":case"polylineVolume":case"corridor":case"wall":for(var w=0;w<t.positions.length/3;w++){var _=this.$_cartesian3ToLongLat(new Cesium.Cartesian3(t.positions[3*w],t.positions[3*w+1],t.positions[3*w+2]));b[0].push([_.lng,_.lat])}b[0].push(b[0][0]),A=hu(b),m=Du(A);var x=ju(A),S=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(x[0],x[1]),Cesium.Cartesian3.fromDegrees(x[2],x[1])),C=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(x[0],x[1]),Cesium.Cartesian3.fromDegrees(x[0],x[3]));this.destinationHeight+=Number(S>C?S:C),g=Cesium.Cartesian3.fromDegrees(m.geometry.coordinates[0],m.geometry.coordinates[1],this.destinationHeight);break;case"rectangle":case"box":var M=new Cesium.Cartesian3(t.positions[0],t.positions[1],t.positions[2]),L=new Cesium.Cartesian3(t.positions[3],t.positions[4],t.positions[5]);M=this.$_cartesian3ToLongLat(M),L=this.$_cartesian3ToLongLat(L),b[0].push([M.lng,M.lat]),b[0].push([L.lng,M.lat]),b[0].push([L.lng,L.lat]),b[0].push([M.lng,L.lat]),b[0].push([M.lng,M.lat]),A=hu(b),m=Du(A);var T=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(M.lng,M.lat),Cesium.Cartesian3.fromDegrees(L.lng,M.lat)),k=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(M.lng,M.lat),Cesium.Cartesian3.fromDegrees(M.lng,L.lat));this.destinationHeight+=Number(T>k?T:k),g=Cesium.Cartesian3.fromDegrees(m.geometry.coordinates[0],m.geometry.coordinates[1],this.destinationHeight);break;case"circle":case"cylinder":case"ellipsoid":v=o.centerPosition,y=this.$_cartesian3ToLongLat(new Cesium.Cartesian3(v.x,v.y,v.z)),g=Cesium.Cartesian3.fromDegrees(y.lng,y.lat,this.destinationHeight);break;case"model":v=o.positions[0];var E=new Cesium.Cartesian3(v.x,v.y,v.z);m=this.$_cartesian3ToLongLat(E),this.destinationHeight+=m.alt,g=Cesium.Cartesian3.fromDegrees(m.lng,m.lat,this.destinationHeight);break}viewer.camera;this.autoFlyToGraphic&&!e&&this.viewer.camera.flyTo({duration:1,destination:g,orientation:{heading:6.283185307179586,pitch:-1.5707963267948966,roll:0}})},$_getCenter:function(t){if(t){var e,n,r,i,o=[[]],a=t.style,s=a.extrudedHeight,c=a.offsetHeight,u=a.radiusX;switch(t.type){case"polyline":case"polygon":for(var l=0;l<t.positions.length;l++){var h=this.$_cartesian3ToLongLat(t.positions[l]);o[0].push([h.lng,h.lat])}o[0].push(o[0][0]),n=hu(o),e=Du(n);break;case"rectangle":case"box":var d,f;d=t.positions[0],f=t.positions[1],d=this.$_cartesian3ToLongLat(d),f=this.$_cartesian3ToLongLat(f),o[0].push([d.lng,d.lat]),o[0].push([f.lng,d.lat]),o[0].push([f.lng,f.lat]),o[0].push([d.lng,f.lat]),o[0].push([d.lng,d.lat]),n=hu(o),e=Du(n);break;case"cylinder":case"circle":case"ellipsoid":case"label":case"point":case"text":case"marker":r=t.centerPosition,i=this.$_cartesian3ToLongLat(new Cesium.Cartesian3(r.x,r.y,r.z)),e={geometry:{coordinates:[i.lng,i.lat]}};break;case"model":var p=new Cesium.Cartesian3(t.positions[0],t.positions[1],t.positions[2]);e=this.$_cartesian3ToLongLat(p);break}return e.geometry.coordinates.push((s||0)+(c||0)+(2*u||0)),e}},$_updateGraphicList:function(t){this.dataSourceCopy=t},$_resetGetGraphic:function(t,e){var n=this.$_getGraphicLayer(t,e);this.$_switchGraphicLayer(t,e),n._getGraphic=this.$_getGraphic},$_getGraphic:function(t){var e=this,n=e.$_getJsonById(t.id),r=n.type;if(!(this.groupGraphicIDs.indexOf(n.id)>-1))if("point"===e.drawMode){if(!e.add)return;e.addSource=!0,"circle"===r&&n.style.hasOwnProperty("extrudedHeight")&&n.style.extrudedHeight>0&&(r="cone"),"polygon"===r&&n.style.hasOwnProperty("extrudedHeight")&&n.style.extrudedHeight>0&&(r="polygonCube");var i=t.attributes;if(i.hasOwnProperty("__enableFlash")){var o=t.style.color,a=t.attributes.__flashStyle;o.alpha=a.flashAlpha;var s=e.$_bezierSpline(t.positions,!0),c=new Cesium.Graphic({type:"polygon",positions:s,style:{color:o}}),u=e.$_getGraphicLayer();e.drawMode="addFlashGraphic",c.attributes.__flashStyle=t.attributes.__flashStyle,c.attributes.__enableFlash=t.attributes.__enableFlash,u.addGraphic(c),e.$_removeGraphicByID(t.id)}else{t.attributes.title=t.attributes.title||e.$_getTitle(r),n.attributes.title=t.attributes.title;for(var l=!1,h=0;h<e.dataSourceCopy.length;h++)if(e.dataSourceCopy[h].id===n.id){l=!0,h;break}if(!l){e.dataSourceCopy.push(n),1===e.dataSourceCopy.length&&e.$emit("saveCamera");var d=e.$_getEditPanelValuesFromJSON(n);e.$refs.editPanel.$_setEditPanelValues(d),e.$nextTick((function(){e.addSource=!1})),e.$emit("change",e.dataSourceCopy),e.$emit("addFeature",e.$_getJsonById(t.id))}}}else if("addGraphic"===e.drawMode)e.drawMode="point";else if("addFlashGraphic"===e.drawMode){e.drawMode="point";var f=t.attributes.__flashStyle;window["flog_"+t.id]=f.flog,window["alpha_"+t.id]=f.flashAlpha,window["alphaEnd_"+t.id]=f.flashAlpha,window["alphaSpace_"+t.id]=f.alphaSpace,window["flashTime_"+t.id]=f.flashTime,window["flashRunningTime_"+t.id]=0,window["interval_"+t.id]=setInterval((function(){window["flog_"+t.id]?(window["alpha_"+t.id]=window["alpha_"+t.id]-window["alphaSpace_"+t.id],window["alpha_"+t.id]<=0&&(window["alpha_"+t.id]=0,window["flog_"+t.id]=!1)):(window["alpha_"+t.id]=window["alpha_"+t.id]+window["alphaSpace_"+t.id],window["alpha_"+t.id]>=window["alphaEnd_"+t.id]&&(window["flog_"+t.id]=!0)),t.style.color.alpha=window["alpha_"+t.id].toFixed(2),window["flashRunningTime_"+t.id]+=100,window["flashRunningTime_"+t.id]>window["flashTime_"+t.id]&&(clearInterval(window["interval_"+t.id]),t.show=!1,delete window["flog_"+t.id],delete window["alpha_"+t.id],delete window["alphaEnd_"+t.id],delete window["alphaSpace_"+t.id],delete window["flashTime_"+t.id],delete window["flashRunningTime_"+t.id])}),100),t.attributes.title=t.attributes.title||e.$_getTitle(r),n.attributes.title=t.attributes.title,e.dataSourceCopy.push(n),1===e.dataSourceCopy.length&&e.$emit("saveCamera");var p=e.$_getEditPanelValuesFromJSON(n);e.$refs.editPanel.$_setEditPanelValues(p),e.$nextTick((function(){e.addSource=!1})),e.$emit("change",e.dataSourceCopy),e.$emit("addFeature",e.$_getJsonById(t.id))}else if("group"===e.drawMode){for(var m=0;m<e.dataSourceCopy.length;m++)if(e.currentGroupId===e.dataSourceCopy[m].id){e.dataSourceCopy[m].dataSource.push(t.id);break}e.$refs.editPanel.noTitleKey="list"}else{for(var g=!1,A=0;A<e.dataSourceCopy.length;A++)if(e.dataSourceCopy[A].id===n.id){e.$set(e.dataSourceCopy,A,n),g=!0;break}if(!g){if(!n.attributes.hasOwnProperty("title")){var v=e.$_getGraphicByID(n.id);n.attributes.title=v.attributes.title=e.$_getTitle(n.type)}e.dataSourceCopy.push(n)}}},$_init:function(t,e,n){this.dataSourceCopy=t||JSON.parse(JSON.stringify(this.dataSource)),0===this.dataSourceCopy.length&&this.$nextTick((function(){this.$_setIconMode("mouse")}));var r=this;e=e||this.vueIndex,n=n||this.vueKey;var i=this.$_getGraphicLayer(e,n);if(i||this.$_newGraphicLayer({vueIndex:e,vueKey:n,finishEdit:function(t){for(var e=0;e<r.dataSourceCopy.length;e++)if(r.dataSourceCopy[e].id===t.id){r.isUpdateByEditValues=!1,t.style.extrudedHeight&&(r.dataSourceCopy[e].style.extrudedHeight=t.style.extrudedHeight,r.dataSourceCopy[e].style.color=[t.style._lastChangeColor.red,t.style._lastChangeColor.green,t.style._lastChangeColor.blue,t.style._lastChangeColor.alpha]),t.style.radius&&(r.dataSourceCopy[e].style.radius=t.style.radius),r.$nextTick((function(){r.isUpdateByEditValues=!0}));break}},getGraphic:this.$_getGraphic,revokeModel:function(t){for(var e=void 0,n=0;n<r.dataSourceCopy.length;n++)if(r.dataSourceCopy[n].id===t.id){e=n;break}void 0!==e&&(r.$refs.editPanel.isUpdatePanel=!1,r.dataSourceCopy.splice(e,1))},revokePoint:function(t){for(var e=void 0,n=0;n<r.dataSourceCopy.length;n++)if(r.dataSourceCopy[n].id===t.id){e=n;break}void 0!==e&&(r.$refs.editPanel.isUpdatePanel=!1,r.dataSourceCopy.splice(e,1))}}),this.dataSourceCopy.length>0){for(var o=[],a=0;a<this.dataSourceCopy.length;a++){var s=this.$_getGraphicByID(this.dataSourceCopy[a].id);s||"group"===this.dataSourceCopy[a].type||o.push(this.dataSourceCopy[a])}this.$_fromJson({type:"FeatureCollection",features:o})}this.dataSourceCopy.length>0&&"group"!==this.dataSourceCopy[0].type&&(this.editPanelValues=this.$_getEditPanelValuesFromJSON(this.dataSourceCopy[0])),this.viewer.screenSpaceEventHandler.setInputAction((function(t){var e=r.viewer.scene.pick(t.position),n=r.viewer.scene.pickPosition(t.position);Cesium.defined(e)&&!r.isStartDrawing&&(r.clickTime++,2===r.clickTime?(clearTimeout(r.firstClickFlag),r.clickTime=0):1===r.clickTime&&(r.firstClickFlag=setTimeout((function(){r.$_setPopUp(e,!1,n),r.clickTime=0}),r.clickInterval)))}),Cesium.ScreenSpaceEventType.LEFT_CLICK),this.viewer.screenSpaceEventHandler.setInputAction((function(t){var e=r.viewer.scene.pick(t.position);if(Cesium.defined(e)&&!r.isStartDrawing&&e.hasOwnProperty("id")){var n=r.$_getGraphicByID(e.id);n&&r.$_dbclick(r.$_getJsonById(e.id),!0,!0),r.enablePopup=!1}}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK)},$_setPopUp:function(t,e,n){var r,i,o=this;if(e)i=t.attributes;else{var a=this.$_getGraphicByID(t.primitive.id);i=a&&a.attributes?a.attributes:void 0}if(n){var s=this.$_cartesian3ToLongLat(n);this.popup={lng:s.lng,lat:s.lat,alt:s.alt,properties:{}}}else{if(r=e?this.$_getCenter(t):this.$_getCenter(this.$_getGraphicByID(t.primitive.id)),!r)return;var c=r.geometry.coordinates;this.popup={lng:c[0],lat:c[1],alt:c[2],properties:{}}}if(i){Object.keys(i).forEach((function(t){o.popup.properties[t]=i[t]}));var u=JSON.parse(JSON.stringify(this.popup.properties));delete u.title,this.popup.container=Qu("underline",{properties:u},{fields:Object.keys(u),title:this.popup.properties.title,style:{containerStyle:{width:"360px"}}}),this.enablePopup=!0}},onTabChange:function(t,e){this[e]=t,"list"===this.noTitleKey?this.isEdit=!1:this.isEdit=!0},$_pickCoords:function(t){if(this.$_deactivate(),t){var e=this.Cesium,n=this.viewer,r=this;n.screenSpaceEventHandler.setInputAction((function(t){var i=r.$_getGraphicByID(r.editPanelValues.id);if(i){var o=n.scene.globe.pick(n.camera.getPickRay(t.endPosition),n.scene);i.positions=[o];var a=r.$_getJsonById(r.editPanelValues.id);a&&(r.editPanelValues.positions=r.$_cartesian3ToLongLat(new e.Cartesian3.fromArray(a.positions)),r.$refs.editPanel.$_setEditPanelValues(r.editPanelValues))}}),e.ScreenSpaceEventType.MOUSE_MOVE),n.screenSpaceEventHandler.setInputAction((function(t){r.viewer.screenSpaceEventHandler.removeInputAction(e.ScreenSpaceEventType.MOUSE_MOVE)}),e.ScreenSpaceEventType.LEFT_CLICK)}},$_editPositions:function(t){if(this.$_deactivate(),t){var e=this.$_getTransformEditor(),n=e.viewModel;n&&(n.setModeTranslation(),n.activate())}},$_deactivate:function(){var t=this.$_getTransformEditor(),e=t.viewModel;e.deactivate()},$_getTransformEditor:function(){var t=this.$_getGraphicByID(this.editPanelValues.id);if(!t)return null;this.Cesium,this.viewer;var e=this;if(window.transformEditor&&window.transformEditor.id===this.editPanelValues.id)window.transformEditor.transform=t.modelMatrix,window.transformEditor.boundingSphere=t.boundingSphere;else{var n=this.vueIndex,r=this.vueKey,i=this.$_getGraphicLayer(n,r),o=function(n){if("model"===t.type){var r=n.headingPitchRoll,i=r.heading,o=r.pitch,a=r.roll;e.editPanelValues.orientation={heading:i?Math.PI/i:0,pitch:o?Math.PI/o:0,roll:a?Math.PI/a:0},e.editPanelValues.positions=e.$_cartesian3ToLongLat(n.position),e.$refs.editPanel.isUpdatePanel=!1,e.$refs.editPanel.$_setEditPanelValues(e.editPanelValues)}};window.transformEditor=i.getTransformEditor(t,o),window.transformEditor.id=this.editPanelValues.id}return window.transformEditor},$_location:function(){this.$_deactivate();var t=this.$_getGraphicByID(this.editPanelValues.id);if(!t)return null;var e=this.$_getJsonById(this.editPanelValues.id);if(e){var n=new Cesium.Cartesian3(e.positions[0],e.positions[1],e.positions[2]),r=this.$_cartesian3ToLongLat(n),i=Number(4*t.boundingSphere.radius)+r.alt,o=Cesium.Cartesian3.fromDegrees(r.lng,r.lat,i);this.viewer.camera.flyTo({duration:1,destination:o,orientation:{heading:6.283185307179586,pitch:-1.5707963267948966,roll:0}})}},$_editOrientation:function(t){if(this.$_deactivate(),t){var e=this.$_getTransformEditor(),n=e.viewModel;n&&(n.setModeRotation(),n.activate())}},$_resetOrientation:function(){var t=this.$_getGraphicByID(this.editPanelValues.id);if(!t)return null;t.heading=0,t.pitch=0,t.roll=0,this.editPanelValues.orientation={heading:0,pitch:0,roll:0},this.$refs.editPanel.$_setEditPanelValues(this.editPanelValues)}}},tl=Zu,el=(n("7b69"),je(tl,Tc,kc,!1,null,"483d1db8",null)),nl=el.exports,rl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.showSetting,expression:"!showSetting"}],staticClass:"mapgis-3d-graphic-layers-select-container"},[n("mapgis-ui-select",{staticClass:"mapgis-3d-graphic-layers-select",attrs:{value:t.currenSelectLayer},on:{change:t.$_selectLayer}},t._l(t.layerSelect,(function(e,r){return n("mapgis-ui-select-option",{key:r,attrs:{value:e.key}},[t._v("\n "+t._s(e.value)+"\n ")])})),1),n("input",{staticStyle:{display:"none"},attrs:{type:"file",id:t.inputId,accept:".json"}}),n("div",{staticClass:"mapgis-ui-graphic-layers-toll-bar"},t._l(t.moreTools,(function(e,r){return n("mapgis-ui-svg-icon",{key:r,attrs:{iconStyle:t.toolStyle,containerStyle:t.toolContainerStyle,title:e.title,type:e.icon},on:{click:function(n){return t.$_clickTool(e.icon)}}})})),1)],1),n("mapgis-ui-input-row-left",{directives:[{name:"show",rawName:"v-show",value:t.showEditTitle,expression:"showEditTitle"}],staticClass:"mapgis-ui-graphic-layers-edit-title",staticStyle:{margin:"0"},attrs:{title:"修改标题",enableButton:!0,paddingLeft:"0px"},on:{finish:t.$_finishEditTitle},model:{value:t.currenSelectLayer,callback:function(e){t.currenSelectLayer=e},expression:"currenSelectLayer"}}),n("mapgis-3d-graphic-single-layer",{directives:[{name:"show",rawName:"v-show",value:!t.showSetting,expression:"!showSetting"}],ref:"graphicLayer",attrs:{vueIndex:t.vueIndex,models:t.models,autoFlyToGraphic:t.autoFlyToGraphic,groupGraphicIDs:t.groupGraphicIDs,uploadUrl:t.uploadUrl,featureConfig:t.featureConfig},on:{saveCamera:t.$_saveCamera,change:t.$_addFeature,delete:t.$_deleteFeature},model:{value:t.currentLayer,callback:function(e){t.currentLayer=e},expression:"currentLayer"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showSetting,expression:"showSetting"}]},[n("mapgis-ui-row",[n("mapgis-ui-svg-icon",{staticClass:"mapgis-ui-graphic-layers-setting-back",attrs:{iconStyle:t.editStyle,type:"back"},on:{click:t.$_back}}),n("span",{staticStyle:{"margin-left":"33px"}},[t._v("配置参数")])],1),n("mapgis-ui-switch-row-left",{attrs:{title:"进入图层后自动跳转视角"},model:{value:t.autoFlyTo,callback:function(e){t.autoFlyTo=e},expression:"autoFlyTo"}}),n("mapgis-ui-switch-row-left",{attrs:{title:"选择标绘对象后自动跳转视角"},model:{value:t.autoFlyToGraphic,callback:function(e){t.autoFlyToGraphic=e},expression:"autoFlyToGraphic"}})],1)],1)},il=[],al={name:"mapgis-3d-graphic-layer",mixins:[Ic],inject:["Cesium","viewer"],props:{dataSource:{type:Array,default:function(){return[]}},models:{type:Object,default:function(){return{}}},enableRelativePath:{type:Boolean,default:!0},enableOneMap:{type:Boolean,default:!1},baseUrl:{type:String,default:""},uploadUrl:{type:String,default:""},featureConfig:{type:Object,defalut:function(){}}},watch:{dataSource:{handler:function(){this.updatable&&this.$_init()},deep:!0},dataSourceCopy:{handler:function(){},deep:!0}},data:function(){return{layerSelect:[],currenSelectLayer:void 0,currenSelectIndex:0,currentLayer:void 0,dataSourceCopy:[],inputId:"mapgisPlottingImport"+parseInt(String(1e4*Math.random())),moreTools:[{event:"add",icon:"add",title:"新增图层"},{event:"editTitle",icon:"editTitle",title:"编辑标题"},{event:"delete",icon:"delete",title:"删除图层"},{event:"import",icon:"import",title:"导入"},{event:"export",icon:"export",title:"导出"},{event:"save",icon:"save",title:"保存"}],vueIndex:void 0,showEditTitle:!1,showSetting:!1,autoFlyTo:!0,autoFlyToGraphic:!0,editStyle:{color:"#7A8DA0",width:"20px",height:"20px"},updatable:!0,toolStyle:{color:"rgb(80, 93, 113)",width:"16px",height:"16px"},toolContainerStyle:{width:"30px",height:"32px",lineHeight:"36px"},addLayer:!0,groupGraphicIDs:[]}},mounted:function(){this.$_init(!0)},methods:{$_deleteFeature:function(t){for(var e=this.dataSourceCopy[this.currenSelectIndex].dataSource,n=e.features,r=0;r<n.length;r++)n[r].id===t&&n.splice(r,1)},$_addFeature:function(t){this.dataSourceCopy[this.currenSelectIndex].dataSource.features=t},$_saveCamera:function(){this.currenSelectLayer&&(this.dataSourceCopy[this.currenSelectIndex].camera=Xn(viewer))},$_hasSameTitle:function(t){for(var e=!1,n=0;n<this.dataSourceCopy.length;n++)if(this.dataSourceCopy[n].name===t){e=!0;break}return e},$_finishEditTitle:function(){this.$_hasSameTitle(this.currenSelectLayer)?this.$message.warning("该图层名称已存在!"):(this.showEditTitle=!1,this.dataSourceCopy[this.currenSelectIndex].name=this.currenSelectLayer)},$_cloneArray:function(t){for(var e=[],n=0;n<t.length;n++)e.push(JSON.parse(JSON.stringify(t[n])));return e},$_clickTool:function(t,e){switch(t){case"add":var n="新建图层_"+(this.dataSourceCopy.length+1);this.$_hasSameTitle(n)&&(n+=parseInt(String(1e11*Math.random())));var r={name:n,uuid:parseInt(String(1e7*Math.random())),autoFlyTo:!0,autoFlyToGraphic:!0,dataSource:{type:"FeatureCollection",features:[]}};this.dataSourceCopy.length>0&&this.currenSelectIndex++,!e&&this.dataSourceCopy.length>0&&this.$message.success(n+"添加成功!"),this.dataSourceCopy.push(r),this.currentLayer.length>0&&this.$refs.graphicLayer.$_hideAllGraphics(),this.currentLayer=[],this.currenSelectLayer=r.name,this.$_layerSelect(),this.vueIndex=Number(r.uuid),this.$nextTick((function(){this.$refs.graphicLayer.drawMode="",this.$refs.graphicLayer.noTitleKey="list",this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.currentIconType="mouse",this.$refs.graphicLayer.$_resetEditPanel(),this.$refs.graphicLayer.$_resetIconsPanel(),this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing(),this.$refs.graphicLayer.isStartDrawing=!1,this.$refs.graphicLayer.$_clearList(),this.$refs.graphicLayer.$_init([],r.uuid),this.$refs.graphicLayer.$_switchGraphicLayer(r.uuid)}));break;case"delete":if(0===this.dataSourceCopy.length)return;if(this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing(),this.$refs.graphicLayer.$_removeAllGraphic(),this.$refs.graphicLayer.$_destroy(),this.$refs.graphicLayer.$_resetEditPanel(),this.$refs.graphicLayer.$_resetIconsPanel(),this.$message.success(this.dataSourceCopy[this.currenSelectIndex].name+"删除成功!"),this.dataSourceCopy.splice(this.currenSelectIndex,1),this.layerSelect.splice(this.currenSelectIndex,1),this.currenSelectIndex--,this.currenSelectIndex<0&&(this.currenSelectIndex=0),0===this.dataSourceCopy.length)this.currenSelectLayer="请添加图层",this.currentLayer=[],this.addLayer=!1;else{var i=this.currenSelectIndex<0?0:this.currenSelectIndex;this.currenSelectLayer=this.dataSourceCopy[i].name,this.currentLayer=this.$_cloneArray(this.dataSourceCopy[i].dataSource.features),this.$_selectLayer(this.dataSourceCopy[i].uuid)}break;case"editTitle":this.showEditTitle=!0;break;case"saveCamera":this.currenSelectLayer&&(this.dataSourceCopy[this.currenSelectIndex].camera=Xn(viewer));break;case"flyTo":if(this.currenSelectLayer){var o=this.dataSourceCopy[this.currenSelectIndex],a=o.camera;if(a){var s=a.positionCartographic,c=a.heading,u=a.pitch,l=a.roll,h=s.longitude,d=s.latitude,f=s.height;this.viewer.camera.flyTo({duration:1,destination:new Cesium.Cartesian3.fromRadians(h,d,f),orientation:{heading:c,pitch:u,roll:l}})}}break;case"setting":this.showSetting=!this.showSetting;break;case"save":for(var p=[],m=0;m<this.dataSourceCopy.length;m++){var g=this.dataSourceCopy[m],A=this.$refs.graphicLayer.$_toJSON(g.uuid,"default"),v=this.$refs.graphicLayer.$_getGroups();p.push({name:g.name,uuid:g.uuid,autoFlyTo:g.autoFlyTo,autoFlyToGraphic:g.autoFlyToGraphic,camera:Ja()(g.camera),dataSource:A,groups:v})}this.$message.success("保存成功!"),this.$emit("save",p);break;case"import":this.$_import();break;case"export":this.$_export();break}},$_back:function(){this.showSetting=!this.showSetting},$_import:function(){var t=document.getElementById(this.inputId),e=this;t.click(),t.onchange=function(){var n=t.files[0],r=new FileReader;r.readAsText(n,"UTF-8"),r.onload=function(n){var r=n.target.result;e.$_updateData(JSON.parse(r)),t.value=""}}},$_getRelativeUrl:function(t){for(var e="",n=t.split("//")[1],r=n.split("/"),i=1;i<r.length;i++)e+=r[i]+"/";return e=e.substr(0,e.length-1),e},$_export:function(){for(var t,e=0;e<this.dataSourceCopy.length;e++)if(this.currenSelectLayer===this.dataSourceCopy[e].name){t=this.dataSourceCopy[e];break}this.$refs.graphicLayer.$_stopEdit();var n=this.$refs.graphicLayer.$_toJSON(),r=this.$refs.graphicLayer.$_getGroups();if(this.enableRelativePath)for(var i=n.features,o=0;o<i.length;o++){var a=i[o].style;a&&a.hasOwnProperty("url")&&(i[o].style.url=this.$_getRelativeUrl(i[o].style.url))}var s={name:t.name,uuid:t.uuid,autoFlyTo:this.autoFlyTo,autoFlyToGraphic:this.autoFlyToGraphic,camera:Ja()(t.camera),dataSource:n,groups:r},c=new Blob([JSON.stringify(s)],{type:"application/json;charset=utf-8"}),u=t.name||"无标题";Object(Ec["saveAs"])(c,u+".json")},$_updateData:function(t){this.currenSelectLayer=t.name;for(var e=0;e<this.dataSourceCopy.length;e++){if(this.dataSourceCopy[e].uuid===t.uuid){this.$message.warning("请勿导入相同图层!");break}this.updatable=!1,this.dataSourceCopy.length>0&&this.currenSelectIndex++,this.$refs.graphicLayer.$_resetEditPanel(),this.dataSourceCopy.push(t),this.$_layerSelect();for(var n=[],r=[],i=0;i<t.groups.length;i++)n=n.concat(t.groups[e].dataSource),r.push(t.groups[e]);for(var o=0;o<t.dataSource.features.length;o++)n.indexOf(t.dataSource.features[o].id)<0&&r.push(t.dataSource.features[o]);if(this.enableRelativePath)for(var a=0;a<t.dataSource.features.length;a++)"model"===t.dataSource.features[a].type&&(t.dataSource.features[a].style.url=this.baseUrl+"/"+t.dataSource.features[a].style.url);this.groupGraphicIDs=n,this.$refs.graphicLayer.addSource=!1,this.$refs.graphicLayer.drawMode="point",this.currentLayer=this.$_cloneArray(r),this.autoFlyTo=t.autoFlyTo,this.autoFlyToGraphic=t.autoFlyToGraphic,this.vueIndex=Number(t.uuid),this.$refs.graphicLayer.$_hideAllGraphics(),this.$nextTick((function(){this.$refs.graphicLayer.noTitleKey="list",this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.currentIconType="mouse",this.$refs.graphicLayer.$_resetIconsPanel(),this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing(),this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.isStartDrawing=!1,this.$refs.graphicLayer.$_switchGraphicLayer(this.vueIndex),this.$refs.graphicLayer.$_showAllGraphics(),this.updatable=!0}));break}if(0===this.dataSourceCopy.length&&(this.dataSourceCopy.push(t),this.vueIndex=Number(t.uuid),this.autoFlyTo=t.autoFlyTo,this.autoFlyToGraphic=t.autoFlyToGraphic,this.$nextTick((function(){this.$refs.graphicLayer.drawMode="",this.$refs.graphicLayer.noTitleKey="list",this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.currentIconType="mouse",this.$refs.graphicLayer.$_resetEditPanel(),this.$refs.graphicLayer.$_resetIconsPanel(),this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing(),this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.isStartDrawing=!1,this.$refs.graphicLayer.$_init(),this.$refs.graphicLayer.$_switchGraphicLayer(this.vueIndex),this.$refs.graphicLayer.$_fromJson(t.dataSource)}))),this.autoFlyTo&&t.hasOwnProperty("camera")){var s=t.camera,c=s.heading,u=s.pitch,l=s.roll,h=s.positionCartographic,d=h.longitude,f=h.latitude,p=h.height;this.viewer.camera.flyTo({duration:2,destination:Cesium.Cartesian3.fromRadians(d,f,p),orientation:{heading:c,pitch:u,roll:l}})}},$_selectLayer:function(t){for(var e=this,n=function(n){if(e.dataSourceCopy[n].uuid===t){e.autoFlyTo=e.dataSourceCopy[n].autoFlyTo,e.autoFlyToGraphic=e.dataSourceCopy[n].autoFlyToGraphic,e.currenSelectLayer=e.dataSourceCopy[n].name,e.$refs.graphicLayer.$_hideAllGraphics(),e.vueIndex=Number(e.dataSourceCopy[n].uuid),e.currenSelectIndex=n,e.$nextTick((function(){this.$refs.graphicLayer.drawMode="",this.$refs.graphicLayer.noTitleKey="list",this.$refs.graphicLayer.currentEditType="mouse",this.$refs.graphicLayer.currentIconType="mouse",this.$refs.graphicLayer.$_resetEditPanel(),this.$refs.graphicLayer.$_resetIconsPanel(),this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing(),this.$refs.graphicLayer.$_switchGraphicLayer(this.vueIndex),this.$refs.graphicLayer.$_showAllGraphics(),this.$refs.graphicLayer.dataSourceCopy=this.$_cloneArray(this.dataSourceCopy[n].dataSource.features)}));var r=e.dataSourceCopy[n].camera;if(e.autoFlyTo&&r){var i=r.heading,o=r.pitch,a=r.roll,s=r.positionCartographic,c=s.longitude,u=s.latitude,l=s.height;e.viewer.camera.flyTo({duration:2,destination:Cesium.Cartesian3.fromRadians(c,u,l),orientation:{heading:i,pitch:o,roll:a}})}return 1}},r=0;r<this.dataSourceCopy.length;r++)if(n(r))break},$_layerSelect:function(){this.layerSelect=[];for(var t=0;t<this.dataSourceCopy.length;t++)this.layerSelect.push({key:this.dataSourceCopy[t].uuid,value:this.dataSourceCopy[t].name})},$_init:function(t){this.dataSourceCopy=JSON.parse(JSON.stringify(this.dataSource)),this.dataSourceCopy.length>0?(this.currentLayer=this.$_cloneArray(this.dataSourceCopy[0].dataSource.features),this.vueIndex=this.dataSourceCopy[0].uuid,this.$_layerSelect()):(this.currenSelectLayer="请添加图层",this.currentLayer=[],this.addLayer&&this.$_clickTool("add",t))},$_hideAllGraphic:function(){this.$refs.graphicLayer.$_stopEdit(),this.$refs.graphicLayer.$_stopDrawing();for(var t=0;t<this.dataSourceCopy.length;t++)for(var e=this.dataSourceCopy[t].dataSource.features,n=0;n<e.length;n++){var r=this.$_getGraphicByID(e[n].id,this.dataSourceCopy[t].uuid);r.show=!1}},$_showCurrentGraphic:function(){this.$refs.graphicLayer.$_startEdit();for(var t=0;t<this.dataSourceCopy.length;t++)if(this.currenSelectLayer===this.dataSourceCopy[t].name){for(var e=this.dataSourceCopy[t].dataSource.features,n=0;n<e.length;n++){var r=this.$_getGraphicByID(e[n].id,this.dataSourceCopy[t].uuid);r.show=!0}break}},$_stopDrawAll:function(){this.$refs.graphicLayer.$_stopDrawAll()}}},sl=al,cl=(n("27b4"),je(sl,rl,il,!1,null,"1d8f64d3",null)),ul=cl.exports,ll=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span")},hl=[];function dl(t){return dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(t)}function fl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fl(Object(n),!0).forEach((function(e){ml(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ml(t,e,n){return(e=gl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gl(t){var e=Al(t,"string");return"symbol"==dl(e)?e:e+""}function Al(t,e){if("object"!=dl(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=dl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var vl={name:"mapgis-3d-web-tile-layer",inject:["Cesium","viewer","vueCesium"],mixins:[Ao],props:{subDomains:{type:Array,default:function(){return[]}},spatialReference:{type:Object,default:function(){}},options:{type:Object,default:function(){}}},data:function(){return{checkType:{visible:"boolean",opacity:"number",zIndex:"number",rectangle:"object",tilingScheme:"object",ellipsoid:"object",tileWidth:"number",tileHeight:"number",maximumLevel:"number",credit:"object|String",vueKey:"string",vueIndex:"string | Number"},managerName:"WebTileManager",providerName:"UrlTemplateImageryProvider"}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=this.$props,e=new Cesium.UrlTemplateImageryProvider(t);return new Cesium.ImageryLayer(e)},mount:function(){var t=this.baseUrl,e={};this.$props.spatialReference&&(e.tilingScheme=this.$_setTilingScheme(this.$props.spatialReference.wkid));var n,r=this.$props.options.zoomOffset||0;if(t.includes("{")&&t.includes("}/")){var i=t.split("{");n=i[1].split("}/")[0]}n&&r&&("z"===n&&(n="sz",t=t.replace("{z}","{sz}")),e.customTags={},e.customTags[n]=function(t,e,n,i){return i-r});var o=["{s}","{subDomain}","{subDomains}"];o.forEach((function(e){t&&t.includes(e)&&(t=t.replace(e,"{s}"))}));var a=t;if(t.includes("format=")){var s=t.split("format="),c=s[1].split("&");e.hasOwnProperty("extensions")&&e.extensions.length>0?e.extensions.push({key:"format",value:c[0]}):e.extensions=[{key:"format",value:c[0]}],a=s[0]+c[1]}var u=pl(pl({},e),{},{baseUrl:a});this.subDomains&&this.subDomains.length>0&&(u.subdomains=this.subDomains),this.$_mount(u)},unmount:function(){this.$_unmount()}}},yl=vl,bl=je(yl,ll,hl,!1,null,null,null),wl=bl.exports,_l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-popup-default-wrapper"},[t.popVisiable?n("div",[n("Popup",{attrs:{position:t.iClickPosition,visible:t.iClickVisible,forceRender:t.forceRender}},[n("mapgis-ui-popup-content",{attrs:{feature:t.gemotryAttribute[0],popupOptions:t.popupOptions,width:260}},[n("mapgis-3d-popup-iot",{attrs:{properties:t.gemotryAttribute[0]}})],1)],1)],1):t._e()])},xl=[];function Sl(t){return Sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(t)}function Cl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Cl=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Sl(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Sl(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Ml(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Ll(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ml(o,r,i,a,s,"next",t)}function s(t){Ml(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Tl={name:"mapgis-3d-geojson-layer",inject:["Cesium","vueCesium","viewer"],mixins:[Us,zs,Zs],props:{renderer:{type:Object,default:function(){return{}}},data:[String,Object],clampToGround:{type:Boolean,default:!1},layerStyle:{type:Object}},data:function(){return{layerType:"geojson",layerIndex:void 0,layerRange:[],clickhandler:void 0,hoverhandler:void 0,tempHighlightdata:void 0,tempQueryDataArr:[]}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{},methods:{createCesiumObject:function(){var t=Ll(Cl().mark((function t(){var e,n,r,i,o,a,s,c,u,l,h,d=this;return Cl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.viewer,this.vueCesium,n=this.data,this.gdbps,r=this.autoReset,i=this.renderer,o=this.clampToGround,a=this.layerStyle,this,{autoReset:r,loadAll:!0,renderer:i,getDocLayerIndexes:function(t){d.layerIndex=t[0]},clampToGround:o},!a){t.next=16;break}c=a.type,t.t0=c,t.next="point"===t.t0?9:"line"===t.t0?11:"fill"===t.t0?13:15;break;case 9:return s=this.getSimplePointRenderer(a),t.abrupt("break",16);case 11:return s=this.getSimpleLineRenderer(a),t.abrupt("break",16);case 13:return s=this.getSimplePolygonRenderer(a),t.abrupt("break",16);case 15:return t.abrupt("break",16);case 16:u="{}"===JSON.stringify(i)?s:i,l=n.features,h=this.constructFeatureSet(l),this.addLayer(e,u,h),this.onGeojsonLoaded(this.innerLayer);case 21:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onGeojsonLoaded:function(t){var e=this,n=this.vueIndex,r=this.vueKey,i=this.vueCesium,o=this.data;if(t){e.layer=t;var a=[t];i.GeojsonManager.addSource(r,n,a,{data:o,layerIndex:n,clickhandler:e.clickhandler,hoverhandler:e.hoverhandler}),e.$emit("load",{data:e})}},changeVisible:function(){var t=this.viewer,e=this.visible,n=this.layerIndex,r=t.scene.layers.getLayer(n);r.show=e},mount:function(){var t=this.viewer,e=(this.vueCesium,this.vueKey,this.vueIndex,this);t.shadows=!0,Cesium.FeatureDetection.supportsImageRenderingPixelated()&&(t.resolutionScale=window.devicePixelRatio),t.scene.fxaa=!0,t.scene.postProcessStages.fxaa.enabled=!0;var n=this.createCesiumObject();n.then((function(t){e.$_bindClickEvent(e.parseClick),e.$_bindHoverEvent(e.parseHover),e.enablePopup&&(e.clickhandler=e.$_bindClickEvent(e.clickHighlight)),e.enableClick&&(e.clickhandler=e.$_bindClickEvent(e.clickHighlight)),e.enableHover&&(e.hoverhandler=e.$_bindHoverEvent(e.hoverHighlight)),e.enableQuery&&e.queryPrimitive()}))},transformObject:function(t){var e=this;t=t||{},Object.keys(t).forEach((function(n){"distanceDisplayCondition"==n&&(t[n]=new Cesium.DistanceDisplayCondition(t[n][0],t[n][1])),"object"==Sl(t[n])&&e.transformObject(t[n]),"color"==n&&(t[n]=Cesium.Color.fromCssColorString(t[n]))}))},unmount:function(){this.viewer;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=(this.layerIndex,t.GeojsonManager.findSource(e,n));r&&r.source&&this.innerLayer.destroy(),r&&r.clickhandler&&r.clickhandler.destroy(),r&&r.hoverhandler&&r.hoverhandler.destroy(),t.GeojsonManager.deleteSource(e,n),this.$emit("unload",this)},parseClick:function(t){this.$emit("geojsonClick",{pick:t})},parseHover:function(t){this.$emit("geojsonHover",{pick:t})},parseBBox:function(t){this.$emit("bbox",{bbox:t})}}},kl=Tl,El=je(kl,_l,xl,!1,null,"3b683e50",null),Ol=El.exports,Pl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},Bl=[];function Il(t){return Il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(t)}function Dl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Dl=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Il(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Il(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Nl(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Fl(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Nl(o,r,i,a,s,"next",t)}function s(t){Nl(o,r,i,a,s,"throw",t)}a(void 0)}))}}var jl={name:"mapgis-3d-kml-layer",inject:["Cesium","vueCesium","viewer"],props:{vueKey:{type:String,default:"default"},vueIndex:{type:Number,default:function(){return Number((1e8*Math.random()).toFixed(0))}},visible:{type:Boolean,default:!0},url:{type:String,default:null},token:{type:Object}},computed:{name:function(){var t=null;if(this.url&&this.url.length>0){var e=this.url.split("/");t=e[e.length-1]}return t}},data:function(){return{}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{url:{handler:function(){this.removeKML(),(void 0===this.visible||this.visible)&&this.appendKml(this.url,!0)}},visible:{handler:function(){this.removeKML(),(void 0===this.visible||this.visible)&&this.appendKml(this.url,!1)}}},methods:{createCesiumObject:function(){var t=Fl(Dl().mark((function t(){return Dl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){t()}),(function(t){})));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){this.viewer;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=(this.kmlData,this),i=this.createCesiumObject();i.then((function(i){t.KmlManager.addSource(e,n,i,{kmlData:void 0}),r.appendKml(r.url,!0),r.$emit("loaded",r)}))},appendKml:function(t,e){if(t&&0!=t.length){var n=this.vueKey,r=this.vueIndex,i=this.Cesium,o=this.viewer,a=this.token,s=vueCesium.KmlManager.findSource(n,r),c=s.options,u=c.kmlData;return u&&!e||(a&&a.value&&(t+="?"+a.key+"="+a.value),u=i.KmlDataSource.load(t,{camera:o.scene.camera,canvas:o.scene.canvas,clampToGround:!0}),vueCesium.KmlManager.changeOptions(n,r,"kmlData",u)),o.dataSources.add(u),u}},removeKML:function(){var t=this.viewer,e=t.dataSources.getByName(this.name)[0];e&&t.dataSources.remove(e)},unmount:function(){this.removeKML();var t=this.vueKey,e=this.vueIndex,n=(this.viewer,this.vueCesium),r=n.KmlManager.findSource(t,e),i=r.options,o=i.kmlData;o&&n.KmlManager.changeOptions(t,e,"kmlData",null),this.$emit("unload",this)}}},Rl=jl,Hl=je(Rl,Pl,Bl,!1,null,"8c16df60",null),zl=Hl.exports,Ul=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},Vl=[];function Yl(t){return Yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(t)}function Gl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Gl=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Yl(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Yl(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Ql(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Wl(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ql(o,r,i,a,s,"next",t)}function s(t){Ql(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Kl={name:"mapgis-3d-czml-layer",inject:["Cesium","vueCesium","viewer"],props:{url:{type:String,default:null},token:{type:Object}},data:function(){return{}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{url:{handler:function(){this.removeCzml(),(void 0===this.visible||this.visible)&&this.appendCzml(this.url,!0)}},visible:{handler:function(){this.removeCzml(),(void 0===this.visible||this.visible)&&this.appendCzml(this.url,!1)}}},methods:{createCesiumObject:function(){var t=Wl(Gl().mark((function t(){return Gl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){t()}),(function(t){})));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),mount:function(){this.viewer;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=(this.czmlData,this),i=this.createCesiumObject();i.then((function(i){t.CzmlManager.addSource(e,n,i,{czmlData:void 0}),r.appendCzml(r.url,!0),r.$emit("loaded",r)}))},appendCzml:function(t,e){if(t&&0!=t.length){var n=this.vueKey,r=this.vueIndex,i=this.Cesium,o=this.viewer,a=this.token,s=vueCesium.CzmlManager.findSource(n,r),c=s.options,u=c.czmlData;return u&&!e||(a&&a.value&&(t+="?"+a.key+"="+a.value),u=i.CzmlDataSource.load(t,{camera:o.scene.camera,canvas:o.scene.canvas,clampToGround:!0}),vueCesium.CzmlManager.changeOptions(n,r,"czmlData",u)),o.dataSources.add(u),u}},removeCzml:function(){var t=this.viewer,e=t.dataSources.getByName(this.name)[0];e&&t.dataSources.remove(e)},unmount:function(){this.removeCzml();var t=this.vueKey,e=this.vueIndex,n=(this.viewer,this.vueCesium),r=n.CzmlManager.findSource(t,e),i=r.options,o=i.czmlData;o&&n.CzmlManager.changeOptions(t,e,"czmlData",null),this.$emit("unload",this)}}},ql=Kl,Xl=je(ql,Ul,Vl,!1,null,"1aa93b61",null),$l=Xl.exports,Jl={vueKey:{type:String,default:"default"},vueIndex:{type:[String,Number],default:(1e4*Math.random()).toFixed(0)},headers:{},ip:{type:String},port:{type:Number},layerName:{type:String},mvtStyle:{type:[String,Object]},styleUrl:{type:String},vectortilejson:{type:Object},tilingScheme:{type:[String,Object]},tileInfo:{type:Object},spatialReference:{type:Object},extent:{type:[Object]},token:{type:Object},show:{type:Boolean,default:!0}},Zl=n("5da1"),th=n.n(Zl),eh=n("3059");function nh(t){return nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nh(t)}function rh(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */rh=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==nh(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(nh(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function ih(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function oh(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ih(o,r,i,a,s,"next",t)}function s(t){ih(o,r,i,a,s,"throw",t)}a(void 0)}))}}function ah(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function sh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ah(Object(n),!0).forEach((function(e){ch(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ch(t,e,n){return(e=uh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uh(t){var e=lh(t,"string");return"symbol"==nh(e)?e:e+""}function lh(t,e){if("object"!=nh(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=nh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var hh,dh,fh=eh["Util"].UrlUtil,ph={name:"mapgis-3d-vectortile-layer",mixins:[Ao],props:sh({},Jl),data:function(){return{managerName:"VectorTileManager"}},created:function(){},mounted:function(){var t=this;this.$_mount().then((function(){t.watchProp()}))},destroyed:function(){this.$_unmount()},watch:{layerStyle:{handler:function(t,e){var n,r=this.vueKey,i=this.vueIndex,o=this.vueCesium,a=null===(n=o[this.managerName])||void 0===n?void 0:n.findSource(r,i);a&&(this.layerStyleCopy.visible!==this.layerStyle.visible&&(a.show=this.layerStyle.visible),this.layerStyleCopy.opacity!==this.layerStyle.opacity&&(a.alpha=this.layerStyle.opacity),this.layerStyleCopy.zIndex!==this.layerStyle.zIndex&&this.$_moveLayer(),this.layerStyleCopy=Ja()(t))},deep:!0}},methods:{createCesiumObject:function(){var t=oh(rh().mark((function t(){var e=this;return rh().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(){var t=oh(rh().mark((function t(n){var r;return rh().wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=e.$_addLayer({}),n(r);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){})));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),$_addLayer:function(){var t=oh(rh().mark((function t(e){var n,r,i,o,a,s,c,u,l,h,d,f,p,m,g;return rh().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=this.viewer,r=this.$props,t.next=3,this.getIGSVectorTileLayer();case 3:if(i=t.sent,i){t.next=6;break}return t.abrupt("return");case 6:if(o=Object(ba["initializeOptions"])(i,n),a=o.rectangle,!a){t.next=12;break}if(s=a.west,c=a.south,u=a.east,l=a.north,!(s>=u||c>=l)){t.next=12;break}return t.abrupt("return");case 12:return h=r.options.minimumLevel||0,d=r.options.maximumLevel||22,f=Math.max(h,o.minimumLevel),p=Math.min(d,o.maximumLevel),m=sh(sh({},o),{},{show:!r.visible||r.visible,opacity:r.opacity?r.opacity:1,minimumLevel:f,maximumLevel:p}),g=new ba["MapGISVectorTileImageryProvider"](m),t.abrupt("return",n.imageryLayers.addImageryProvider(g));case 19:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),$_removeLayer:function(){this.$vectortile&&(this.viewer.imageryLayers.remove(this.$vectortile,!0),this.$vectortile.show=!1)},getIGSVectorTileLayer:function(){var t=this,e=void 0,n=void 0;this.styleUrl;return new Promise((function(r,i){if(t.mvtStyle)"string"===typeof t.mvtStyle?e=t.mvtStyle:n=t.mvtStyle;else if(t.styleUrl){if("string"===typeof t.styleUrl)e=t.styleUrl;else if(t.ip&&t.layerName){var o=t.ip,a=t.port;e="".concat(fh.getOrigin({ip:o,port:a}),"/igs/rest/mrcs/vtiles/0/").concat(t.layerName)}}else t.vectortilejson?n=t.vectortilejson:e=t.url;if(e||n){var s,c=t.token,u={url:e,style:n,extensionOptions:null!==(s=t.options)&&void 0!==s&&s.extensions?t.options.extensions:{}};c.key&&c.value&&(u.tokenKey=c.key,u.tokenValue=c.value);var l=new uo["IGSVectorTileLayer"](u);l.load().then((function(t){t.loaded||r(null),r(t)}))}else r()}))},watchProp:function(){var t=this.vueCesium,e=this.viewer,n=this.vueKey,r=this.vueIndex,i=this.show,o=this.mvtStyle,a=(this.vectortilejson,t.VectorTileManager.findSource(n,r));i&&this.$watch("show",(function(t){this.initial||a&&!e.isDestroyed()&&(a.source.show=t)})),o&&this.$watch("mvtStyle",{handler:function(t){"object"!==nh(t)||e.isDestroyed()||this.updateStyle(t)},deep:!0})},updateStyle:function(t){var e=this.$vectortile&&this.$vectortile._imageryProvider?this.$vectortile._imageryProvider.options:{};th()(t,e.style)||(e.style=Ja()(t),this.$_removeLayer(),this.$vectortile=this.$_addLayer(e))},provider:function(){return this.$vectortile?this.$vectortile._imageryProvider:void 0},$_mount:function(){var t=this,e=this.vueIndex,n=this.vueKey,r=this.vueCesium,i=this.layerStyle,o=i.visible,a=i.opacity,s=i.zIndex,c=this.$_getWebGlobe(),u=c.imageryLayers;if(!c.isDestroyed()){var l=this,h=this.createCesiumObject();return h.then((function(c){l.$vectortile=c;var h,d=c;if(n&&e&&r.VectorTileManager.addSource(n,e,d,{vectortile:c}),s<0)throw new Error("zIndex不能为负数");s?(l.$_checkZIndex(u),h=s):h=0,l.$_initLayerIndex(),"boolean"===typeof o&&(d.show=o),"number"===typeof a&&(d.alpha=a),l.layerStyleCopy=Ja()(i),0===l.id.length?d.id=e:d.id=t.id,l.layerId=d.id;var f={zIndex:h,id:d.id};if(0===h){var p=l.$_getMaxZeroIndex();f.zeroIndex=p+1}l.vueCesium[l.managerName].addSource(n,e,d,f),l.$emit("load",d,l)})),h}},$_unmount:function(){var t=this.viewer,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=r.VectorTileManager.findSource(e,n);i&&!t.isDestroyed()&&(this.$_removeLayer(),this.$vectortile=void 0),r.VectorTileManager.deleteSource(e,n)}},render:function(t){return t("span")}},mh=ph,gh=je(mh,hh,dh,!1,null,null,null),Ah=gh.exports,vh=(K["Style"].ModelStyle,{vueKey:{type:String,default:"default"},vueIndex:{type:[String,Number],default:function(){return(1e8*Math.random()).toFixed(0)}},highlightStyle:{type:String,default:"rgba(255, 255, 0, 0.6)"},headers:{},url:{type:String,required:!0},show:{type:Boolean,default:!0},opacity:{type:Number,default:1},autoReset:{type:Boolean,default:!0},duration:{type:Number,default:1},fillClip:{type:Boolean,default:!1},hasSectionGeometry:{type:Boolean,default:!1},offset:{type:Object},scale:{type:Object},maximumScreenSpaceError:{type:[Number,Array],default:16},maximumMemoryUsage:{type:Number,default:512},cullWithChildrenBounds:{type:Boolean,default:!0},cullRequestsWhileMoving:{type:Boolean,default:!0},cullRequestsWhileMovingMultiplier:{type:Number,default:60},preloadWhenHidden:{type:Boolean,default:!1},preloadFlightDestinations:{type:Boolean,default:!0},preferLeaves:{type:Boolean,default:!1},dynamicScreenSpaceError:{type:Boolean,default:!1},dynamicScreenSpaceErrorDensity:{type:Number,default:.00278},dynamicScreenSpaceErrorFactor:{type:Number,default:4},dynamicScreenSpaceErrorHeightFalloff:{type:Number,default:.25},progressiveResolutionHeightFraction:{type:Number,default:.3},foveatedScreenSpaceError:{type:Boolean,default:!0},foveatedConeSize:{type:Number,default:.1},foveatedMinimumScreenSpaceErrorRelaxation:{type:Number,default:0},foveatedTimeDelay:{type:Number,default:.2},skipLevelOfDetail:{type:Boolean,default:!1},baseScreenSpaceError:{type:Number,default:1024},skipScreenSpaceErrorFactor:{type:Number,default:16},skipLevels:{type:Number,default:1},immediatelyLoadDesiredLevelOfDetail:{type:Boolean,default:!1},loadSiblings:{type:Boolean,default:!1},luminanceAtZenith:{type:Number,default:.2},specularEnvironmentMaps:{type:String,default:""},debugHeatmapTilePropertyName:{type:String},debugFreezeFrame:{type:Boolean,default:!1},debugColorizeTiles:{type:Boolean,default:!1},debugWireframe:{type:Boolean,default:!1},debugShowBoundingVolume:{type:Boolean,default:!1},debugShowContentBoundingVolume:{type:Boolean,default:!1},debugShowViewerRequestVolume:{type:Boolean,default:!1},debugShowGeometricError:{type:Boolean,default:!1},debugShowRenderingStatistics:{type:Boolean,default:!1},debugShowMemoryUsage:{type:Boolean,default:!1},debugShowUrl:{type:Boolean,default:!1},extensions:{type:Object}});function yh(t){return yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yh(t)}function bh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bh(Object(n),!0).forEach((function(e){_h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _h(t,e,n){return(e=xh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xh(t){var e=Sh(t,"string");return"symbol"==yh(e)?e:e+""}function Sh(t,e){if("object"!=yh(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=yh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ch={props:wh(wh({},vh),{},{popupShowType:{type:String,default:"default"},popupOverlay:{type:Object,default:function(){}},dataStoreIp:{type:String,default:"192.168.96.101"},dataStorePort:{type:String,default:"9014"},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"},popupOptions:{type:Object,default:function(){return{popupType:"card"}}},token:{type:Object}}),inject:["Cesium","vueCesium","viewer"],created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){var t=this.$props,e=this.Cesium;return new e.Cesium3DTileset(t)},watchProp:function(){var t=this.show;t&&this.$watch("show",(function(t){this.initial}))},mount:function(){var t=this.viewer;this.autoReset,this.vueIndex,this.vueKey;if(!t.isDestroyed()){this.$emit("load",this);var e=this.createCesiumObject();e.then((function(e){var n=e.layerIndex;t.scene.layers.getCesium3DTilesetLayer(n)}))}},unmount:function(){var t=this.viewer,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=r.Tileset3DManager.findSource(e,n);i&&!t.isDestroyed()&&t.scene.primitives.remove(i.source),this.feature=null,this.unbindPopupEvent(),this.$emit("unload"),r.Tileset3DManager.deleteSource(e,n)},bindPopupEvent:function(){var t,e,n=this.vueKey,r=this.vueIndex,i=this.vueCesium,o=this.enablePopup,a=this.enableTips,s=this.enableModelSwitch;(o||s)&&(t=this.$_bindClickEvent(this.pickFeature,this.cancelFeature,!0,!1)),a&&(e=this.$_bindHoverEvent(this.pickFeature)),i.Tileset3DManager.changeOptions(n,r,"clickhandler",t),i.Tileset3DManager.changeOptions(n,r,"hoverhandler",e)},unbindPopupEvent:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=t.Tileset3DManager.findSource(e,n);r&&r.options&&(r.options.clickhandler&&r.options.clickhandler.destroy(),r.options.hoverhandler&&r.options.hoverhandler.destroy()),this.popupOverlay&&this.popupOverlay.setContent(null),this.cancelFeature()}},render:function(t){return t("span")}};function Mh(t){return Mh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mh(t)}function Lh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Th(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lh(Object(n),!0).forEach((function(e){kh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kh(t,e,n){return(e=Eh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Eh(t){var e=Oh(t,"string");return"symbol"==Mh(e)?e:e+""}function Oh(t,e){if("object"!=Mh(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Mh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ph,Bh,Ih={name:"mapgis-3d-filem3d-layer",mixins:[Ch],props:{layerRenderIndex:{type:Number,default:0},layerIndex:{type:Number,default:0},gdbpUrl:{type:String,default:""},show:{type:Boolean,default:!0},igserver:{type:Boolean,default:!0}},methods:{createCesiumObject:function(){var t=this.$props,e=this.url,n=this.Cesium,r=Th(Th({},t),{},{igserver:!1,url:e}),i=new n.MapGISM3DSet(r);return i},mount:function(){var t=this.Cesium,e=this.viewer,n=this.autoReset;if(!e.isDestroyed()){var r=this.createCesiumObject();r.readyPromise.then((function(r){e.scene.primitives.add(r);var i=r.boundingSphere;n&&e.camera.viewBoundingSphere(i,new t.HeadingPitchRange(0,-.5,i.radius)),e.camera.lookAtTransform(t.Matrix4.IDENTITY);var o=t.Cartographic.fromCartesian(r.boundingSphere.center),a=t.Cartesian3.fromRadians(o.longitude,o.latitude,0),s=t.Cartesian3.fromRadians(o.longitude,o.latitude,0),c=t.Cartesian3.subtract(s,a,new t.Cartesian3);r.modelMatrix=t.Matrix4.fromTranslation(c),n&&new t.Layers.zoomToM3dLayer(r)})).otherwise((function(t){console.error("3dtileset",t)}))}},unmount:function(){var t=this.viewer,e=this.tileset;return!t.isDestroyed()&&t.scene.primitives.remove(e)}}},Dh=Ih,Nh=je(Dh,Ph,Bh,!1,null,null,null),Fh=Nh.exports,jh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.enableControl?n("mapgis-ui-collapse-card",{ref:"card",staticClass:"mapgis-3d-scene-layer",attrs:{position:"top-left",defaultCollapse:!1,outStyle:t.outStyle,title:t.title},on:{"toggle-main":t.handleBackMain}},[n("mapgis-ui-iconfont",{attrs:{slot:"icon-hiden",type:"mapgis-layer1"},slot:"icon-hiden"}),n("span",{staticClass:"mapgis-3d-scene-layer-title",attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.title))]),n("mapgis-ui-space",{staticClass:"mapgis-3d-scene-layer-icons",attrs:{slot:"extra"},slot:"extra"},t._l(t.menus,(function(e,r){return n("mapgis-ui-tooltip",{key:r},[n("template",{slot:"title"},[t._v(t._s(e.title))]),n("mapgis-ui-iconfont",{class:{active:e.active},attrs:{type:e.icon},on:{click:function(n){return t.handleMenu(e.title)}}})],2)})),1),n("mapgis-ui-row",{staticClass:"mapgis-3d-g3d-document"},[n("mapgis-ui-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{placeholder:"搜索"},on:{change:t.onChange}}),n("mapgis-ui-tree",{staticClass:"mapgis-3d-g3d-document-tree",attrs:{checkable:"",showIcon:"","expanded-keys":t.expandedKeys,"auto-expand-parent":t.autoExpandParent,"tree-data":t.layerTree,selectedKeys:t.selectedKeys},on:{expand:t.onExpand,select:t.onSelect},scopedSlots:t._u([{key:"custom",fn:function(t){}},{key:"title",fn:function(e){var r=e.title,i=e.icon,o=e.version,a=e.gdbp,s=e.ip,c=e.port,u=e.domain,l=e.layerIndex,h=e.layerType,d=e.key,f=e.subLayerType;return[n("mapgis-ui-iconfont",{style:{marginRight:"2px"},attrs:{type:f}}),n("span",{class:{"mapgis-3d-scene-layer-span":!0,"mapgis-3d-scene-layer-span-inline":!0,select:t.selectLayerIndex==l}},[r&&r.indexOf(t.searchValue)>-1?n("span",[t._v("\n "+t._s(r.substr(0,r.indexOf(t.searchValue)))+"\n "),n("span",{staticStyle:{color:"#f50"}},[t._v(t._s(t.searchValue))]),t._v("\n "+t._s(r.substr(r.indexOf(t.searchValue)+t.searchValue.length))+"\n ")]):n("span",[t._v(t._s(r))]),o&&"地图场景默认键值"==d?n("span",{staticClass:"mapgis-3d-scene-layer-version"},[t._v("版本:"+t._s(o))]):t._e(),h!=t.type.cache||t.isolation&&t.selectLayerIndex!=l?t._e():n("mapgis-ui-iconfont",{staticClass:"iconfont",staticStyle:{marginleft:"8px"},attrs:{type:i},on:{click:function(){return t.handleActiveItemKey({title:r,version:o,gdbp:a,ip:s,port:c,domain:u,layerIndex:l,key:d})}}}),h!=t.type.cache||t.isolation&&t.selectLayerIndex!=l?t._e():n("mapgis-ui-iconfont",{staticClass:"iconfont",attrs:{type:t.layerKey==d?"mapgis-unlock":"mapgis-lock"},on:{click:function(){return t.changeIsolation({title:r,icon:i,version:o,gdbp:a,ip:s,port:c,domain:u,layerIndex:l,key:d})}}})],1)]}}],null,!1,3112751892),model:{value:t.layerIds,callback:function(e){t.layerIds=e},expression:"layerIds"}})],1),n("m3d-menus",{attrs:{slot:"panel",size:"big",mode:"地图场景默认键值"==t.layerKey?"g3d":"m3d",version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.selectLayerIndex,gdbp:t.gdbp,ip:t.ip,port:t.port,domain:t.domain},on:{"enable-dynamic-query":t.handleDynamicQuery},slot:"panel"})],1):t._e(),t.featureposition?n("mapgis-3d-feature-popup",t._b({attrs:{position:t.featureposition,popupOptions:t.popupOptions,componentWidth:t.popupWidth},model:{value:t.featurevisible,callback:function(e){t.featurevisible=e},expression:"featurevisible"}},"mapgis-3d-feature-popup",t.popupConfig,!1),[n(t.popupComponent,t._b({tag:"component",attrs:{properties:t.featureproperties,dataStoreIp:t.dataStoreIp,dataStorePort:t.dataStorePort,dataStoreDataset:t.dataStoreDataset}},"component",t.popupConfig,!1))],1):t._e()],1)},Rh=[],Hh={vueKey:{type:String,default:"default"},vueIndex:{type:[String,Number],default:function(){return(1e8*Math.random()).toFixed(0)}},layerId:{type:String},url:{type:String,required:!0},opacity:{type:Number,default:1},opacityLayersArray:{type:Array,default:function(){return[]}},autoReset:{type:Boolean,default:!0},fillClip:{type:Boolean,default:!1},hasSectionGeometry:{type:Boolean,default:!1},synchronous:{type:Boolean,default:!0},showBoundingVolume:{type:Boolean,default:!1},maximumScreenSpaceError:{type:Number,default:16},maximumMemoryUsage:{type:Number,default:512},layers:{type:String,default:void 0},useIDB:{type:Boolean,default:!1},maxCacheLevel:{type:Number,default:3},tileFeaturesCount:{type:Number,default:400},duration:{type:Number,default:1},orientation:{type:Object},requestVertexNormals:{type:Boolean,default:!1},proxy:{type:Object},enablePopup:{type:Boolean,default:!1},enableControl:{type:Boolean,default:!1},outStyle:{type:Object,default:function(){return{position:"absolute",zIndex:1e3,height:"450px",width:"270px",top:"0px",left:"0px"}}}},zh={UnKnow:"UnKnow",Model:"Model",Instance:"Instance",CloudPoint:"CloudPoint",Terrain:"Terrain"},Uh={Model:0,Instance:1,CloudPoint:2},Vh=K["G3D"].G3DLayerType,Yh=K["G3D"].M3DTileDataInfo;function Gh(t,e){var n=function(n){if(r){window.clearInterval(r),r=void 0;var i=[];t.forEach((function(t){var e=Qh(t);t.type=e||n,i.push(t.type)})),e&&e(i)}},r=window.setInterval((function(){t.forEach((function(t){Qh(t,n)}))}),100)}function Qh(t,e){var n=Yh.UnKnow,r=t.root;if(!r)return n;var i=r.tileset._version,o=r.children;if("0.0"==i||"1.0"==i){if(!o||o.length<=0)return n;o.forEach((function(t){var r=Wh(t,i,e);n=r||n}))}else if("2.0"==i){if(!o||o.length<=0)return n;o.forEach((function(t){var r=Wh(t,i,e);n=r||n}))}return n}function Wh(t,e,n){var r;if(!t)return r;if(t._content){var i=t._content._dataType;if(i>=0){if("0.0"==e||"1.0"==e)switch(i){case Uh.Model:r=Yh.Model;break;case Uh.Instance:r=Yh.Vector;break;case Uh.CloudPoint:r=Yh.PointCloud;break}else if("2.0"==e)switch(i){case Yh.Model:case"".concat(Yh.Model):r=Yh.Model;break;case Yh.Instance:case"".concat(Yh.Instance):r=Yh.Vector;break;case Yh.PointCloud:case"".concat(Yh.PointCloud):r=Yh.PointCloud;break}return n&&n(r),r}}return r}function Kh(t){var e="";switch(t){case Yh.UnKnow:e="mapgis-info";break;case Yh.Model:e="mapgis-sanweiditu";break;case Yh.Vector:e="mapgis-vector";break;case Yh.PointCloud:e="mapgis-cloud";break;case Vh.g3dTerrainLayer:e="mapgis-terrain";break}return e}var qh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menus"},[n("mapgis-ui-tab-panel",{attrs:{tabs:t.menus},on:{change:t.handleMenuClick}}),n("div",{staticClass:"mapgis-3d-m3d-menus-content"},["setting"==t.currentMenu?n("m3d-menu-setting",{attrs:{version:t.version}}):t._e(),"properties"==t.currentMenu?n("m3d-menu-props",{attrs:{version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.layerIndex,gdbp:t.gdbp,ip:t.ip,port:t.port,domain:t.domain}}):t._e(),"explosion"==t.currentMenu?n("m3d-menu-explosion",{attrs:{version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.layerIndex}}):t._e(),"bloom"==t.currentMenu?n("m3d-menu-bloom",{attrs:{version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.layerIndex}}):t._e(),"dynamic"==t.currentMenu?n("m3d-menu-dynamic-line",{attrs:{version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.layerIndex}}):t._e(),"searchlight"==t.currentMenu?n("m3d-menu-searchlight",{attrs:{version:t.version,g3dLayerIndex:t.g3dLayerIndex,layerIndex:t.layerIndex}}):t._e()],1)],1)},Xh=[],$h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{className:"mapgis-3d-m3d-menu-setting"}},[n("mapgis-3d-scene-setting",{attrs:{layout:"vertical"}})],1)},Jh=[];function Zh(t){return Zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zh(t)}function td(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ed(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?td(Object(n),!0).forEach((function(e){nd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):td(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nd(t,e,n){return(e=rd(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rd(t){var e=id(t,"string");return"symbol"==Zh(e)?e:e+""}function id(t,e){if("object"!=Zh(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Zh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var od={name:"mapgis-3d-m3d-menu-setting",inject:["Cesium","vueCesium","viewer","m3ds"],props:ed(ed({},ln),{},{version:{type:String},layerIndex:{type:Number}}),data:function(){return{currentMenu:void 0}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},mount:function(){var t=this,e=this,n=this.Cesium,r=this.vueIndex,i=this.vueKey,o=this.vueCesium,a=this.viewer,s=this.createCesiumObject();s.then((function(s){o.G3DManager.addSource(i,r,t,{version_0_0:{current:{feature:void 0,originalColor:new n.Color},currentLayer:void 0,analysisManager:new window.CesiumZondy.Manager.AnalysisManager({viewer:a})},version_2_0:{}});var c=o.ViewerManager.findAllSource(i);if(c&&c.length>0){var u=c[0].options.ScreenSpaceEventHandler;u?u.removeInputAction(e.$_highlightAction,n.ScreenSpaceEventType.LEFT_CLICK):u=new n.ScreenSpaceEventHandler(a.scene.canvas),u.setInputAction(e.$_highlightAction,n.ScreenSpaceEventType.LEFT_CLICK)}})),a.isDestroyed()},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=t.G3DManager.findSource(e,n);r&&r.options,this.$emit("unload",{component:this}),t.G3DManager.deleteSource(e,n)},$_highlightAction:function(t){this.vueKey,this.vueIndex,this.vueCesium,this.Cesium;var e=this.layerIndex,n=this.viewer,r=this.m3ds;this.version;r?r[e]:n.scene.layers.getM3DLayer(e)}}},ad=od,sd=(n("84e6"),je(ad,$h,Jh,!1,null,null,null)),cd=sd.exports,ud=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menu-props"},[t.enableQuery()?n("mapgis-ui-input",{attrs:{value:t.gdbp,size:"small"}},[n("mapgis-ui-tooltip",{attrs:{slot:"addonAfter",placement:"bottom"},slot:"addonAfter"},[n("span",{attrs:{slot:"title"},slot:"title"},[t._v("0.0版本/1.0版本需要地图文档绑定模型,服务要重新发一下")]),n("mapgis-ui-iconfont",{attrs:{type:"mapgis-info-circle"}})],1)],1):t._e(),n("mapgis-ui-divider",{staticStyle:{fontsize:"14px"}},[t._v("属性展示 ")]),t._l(Object.keys(t.properties),(function(e){return n("div",{key:e,staticClass:"mapgis-3d-popup-props-item"},[n("span",{staticClass:"mapgis-3d-popup-props-item-key"},[t._v(t._s(e))]),n("span",{staticClass:"mapgis-3d-popup-props-item-value"},[t._v(t._s(t.properties[e]))])])})),n("mapgis-3d-feature-popup",{attrs:{position:t.position,properties:t.properties},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}})],2)},ld=[];function hd(t){return hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hd(t)}function dd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dd(Object(n),!0).forEach((function(e){pd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pd(t,e,n){return(e=md(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function md(t){var e=gd(t,"string");return"symbol"==hd(e)?e:e+""}function gd(t,e){if("object"!=hd(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=hd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ad={name:"mapgis-3d-m3d-menu-props",inject:["Cesium","vueCesium","viewer","m3ds"],props:fd(fd({},ln),{},{version:{type:String},g3dLayerIndex:{type:Number},layerIndex:{type:Number},gdbp:{type:String},ip:{type:String},port:{type:String},domain:{type:String}}),data:function(){return{currentMenu:void 0,position:{longitude:0,latitude:0,height:0},oid:void 0,properties:{},show:!1}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},mount:function(){var t=this,e=this,n=this.Cesium,r=this.vueIndex,i=this.vueKey,o=this.vueCesium,a=this.viewer,s=this.createCesiumObject();s.then((function(s){var c=new n.PrimitiveCollection;o.G3DManager.addSource(i,r,t,{version_0_0:{current:{feature:void 0,originalColor:new n.Color},currentLayer:void 0,analysisManager:new window.CesiumZondy.Manager.AnalysisManager({viewer:a}),collection:c,primitiveCollection:a.scene.primitives.add(c)},version_2_0:{}});var u=o.ViewerManager.findAllSource(i);if(u&&u.length>0){var l=u[0].options.ScreenSpaceEventHandler;l?l.removeInputAction(e.$_highlightAction,n.ScreenSpaceEventType.LEFT_CLICK):l=new n.ScreenSpaceEventHandler(a.scene.canvas),l.setInputAction(e.$_highlightAction,n.ScreenSpaceEventType.LEFT_CLICK)}})),a.isDestroyed()},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this.version,i=this.viewer;this.show=!1;var o=t.G3DManager.findSource(e,n);if(o&&o.options&&("0.0"==r||"1.0"==r)){var a=o.options.version_0_0,s=a.current,c=a.currentLayer,u=a.analysisManager,l=a.collection;l&&i.scene.primitives.remove(l),s.feature&&(c=[s.feature.tileset],u.stopCustomDisplay(c),s.feature=void 0)}this.$emit("unload",{component:this}),t.G3DManager.deleteSource(e,n)},enableQuery:function(){var t=this.gdbp,e=!1;return t&&(t=t.toLowerCase(),(t.indexOf("gdbp")>=0||t.indexOf("file")>=0)&&(e=!0)),e},parseRule:function(){var t=this.gdbp,e=void 0;return t&&(t=t.toLowerCase(),t.indexOf("gdbp")>=0?e="gdbp":t.indexOf("file")>=0&&(e="doc")),e},$_highlightAction:function(t){var e,n=this,r=this.vueKey,i=this.vueIndex,o=this.vueCesium,a=this.Cesium,s=this.layerIndex,c=this.viewer,u=this.m3ds,l=this.version,h=this.gdbp;if(e=u?u[s]:c.scene.layers.getM3DLayer(s),e){var d=c.scene.pick(t.position);if("0.0"==l||"1.0"==l){var f=this.parseRule();if("gdbp"==f){var p=o.G3DManager.findSource(r,i);if(p&&p.options&&p.options.version_0_0){var m=p.options.version_0_0,g=m.current,A=m.currentLayer,v=m.analysisManager;if(a.defined(g.feature)&&g.feature!==d&&(A=[g.feature.tileset],v.stopCustomDisplay(A),g.feature=void 0),a.defined(d)&&g.feature!==d){g.feature=d,A=[g.feature.tileset];var y=g.feature.getProperty("name"),b=y.split("_"),w=parseInt(b[2]),_=[w],x={color:new a.Color(1,1,0,.6),colorBlendMode:a.Cesium3DTileColorBlendMode.REPLACE};v.stopCustomDisplay(A),v.startCustomDisplay(A,_,x);var S=c.scene.globe.ellipsoid,C=g.feature.tileset.boundingSphere.center,M=S.cartesianToCartographic(C),L=a.Math.toDegrees(M.latitude),T=a.Math.toDegrees(M.longitude),k=M.height;n.position.longitude=T,n.position.latitude=L,n.position.height=k,n.oid=w,n.$_gdbpquery(w,h)}else a.defined(d)&&g.feature==d||(n.show=!1)}}else"doc"==f&&this.$_docquery(t)}else if(d){var E,O,P=e.version.tilesetVersion;"2.1"===P?(E=d.getProperty("tid"),O=[["${tid} === ${id}","rgba(255, 255, 0, 0.6)"]]):(E=d.getProperty("OID"),O=[["${OID} === ${id}","rgba(255, 255, 0, 0.6)"]]),e.style=new a.Cesium3DTileStyle({defines:{id:E},color:{conditions:O}})}}},$_query:function(t,e){if(t){var n=this.parseRule();"gdbp"==n?this.$_gdbpquery(t,e):"doc"==n&&this.$_docquery()}},$_gdbpquery:function(t,e){var n=this,r=this.ip,i=this.port,o=this.domain,a=new window.CesiumZondy.Query.G3DDocQuery;a.gdbp=encodeURI(e),a.structs='{"IncludeAttribute":true,"IncludeGeometry":true,"IncludeWebGraphic":false}',a.objectIds=t,a.serverIp=r,a.serverPort=i,a.domain=o,a.queryG3DFeature((function(t){if(null!=t){var e=t.AttStruct.FldName,r=t.SFEleArray[0].AttValue,i={};e.forEach((function(t,e){i[t]=r[e]})),n.properties=i,n.show=!0}}),(function(t){alert("error")}),"post")},$_docquery:function(t){var e=this,n=this.vueKey,r=this.vueIndex,i=this.vueCesium,o=this.Cesium,a=this.viewer,s=this.g3dLayerIndex,c=this.layerIndex,u=i.G3DManager.findSource(n,r);if(u&&u.options&&u.options.version_0_0){var l=u.options.version_0_0.primitiveCollection,h=a.getCartesian3Position(t.position);if(o.defined(h)){var d=o.Cartographic.fromCartesian(h),f=o.Math.toDegrees(d.longitude),p=o.Math.toDegrees(d.latitude),m=d.height,g={x:f,y:p,z:m},A=a.scene.layers.getLayer(s);A.Monomerization((function(t){if(t&&t.length>0){var o=t[0],a=i.G3DManager.changeOptions(n,r);if(a){var s=a.options.feature;l.remove(s)}e.show=!0,e.position={longitude:f,latitude:p,height:m},e.properties=o.property,l.add(o),i.G3DManager.changeOptions(n,r,"feature",o)}else e.show=!1}),{position:new o.Cartesian3(g.x,g.y,g.z),tolerance:1e-4,layerIndex:c})}}}}},vd=Ad,yd=je(vd,ud,ld,!1,null,null,null),bd=yd.exports,wd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menu-explosion"},[n("mapgis-ui-divider",{staticStyle:{fontSize:"14px"}},[t._v("爆炸设置")]),n("div",{staticClass:"mapgis-3d-m3d-menu-explosion-direction"},[n("mapgis-ui-row",[n("mapgis-ui-col",{attrs:{span:8,offset:8}},[n("mapgis-ui-button",{attrs:{shape:"circle"},on:{click:function(){return t.changeHeadding(90)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-arrow-up-filling"}})],1)],1)],1),n("mapgis-ui-row",{style:{margin:"8px 0px"}},[n("mapgis-ui-col",{attrs:{span:8}},[n("mapgis-ui-button",{attrs:{shape:"circle"},on:{click:function(){return t.changeHeadding(180)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-arrow-left-filling"}})],1)],1),n("mapgis-ui-col",{attrs:{span:8}},[n("mapgis-ui-button",{attrs:{shape:"circle"},on:{click:function(){return t.resetHeadding()}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-redo"}})],1)],1),n("mapgis-ui-col",{attrs:{span:8}},[n("mapgis-ui-button",{attrs:{shape:"circle"},on:{click:function(){return t.changeHeadding(0)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-arrow-right-filling"}})],1)],1)],1),n("mapgis-ui-row",[n("mapgis-ui-col",{attrs:{span:8,offset:8}},[n("mapgis-ui-button",{attrs:{shape:"circle"},on:{click:function(){return t.changeHeadding(-90)}}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-arrow-down-filling"}})],1)],1)],1)],1),n("div",{staticClass:"mapgis-3d-m3d-menu-explosion-content"},[n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"距离",range:[-100,100]},model:{value:t.distance,callback:function(e){t.distance=e},expression:"distance"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"速度",range:[0,100]},model:{value:t.speed,callback:function(e){t.speed=e},expression:"speed"}})],1)],1)},_d=[];function xd(t){return xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xd(t)}function Sd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Cd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sd(Object(n),!0).forEach((function(e){Md(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Md(t,e,n){return(e=Ld(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ld(t){var e=Td(t,"string");return"symbol"==xd(e)?e:e+""}function Td(t,e){if("object"!=xd(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=xd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var kd={name:"mapgis-3d-m3d-menu-explosion",inject:["Cesium","vueCesium","viewer","m3ds"],props:Cd(Cd({},ln),{},{version:{type:String},layerIndex:{type:Number}}),data:function(){return{layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},currentMenu:void 0,headding:0,angle:0,distance:5,speed:1,moveDirection:void 0}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},mount:function(){var t=this,e=this.Cesium,n=this.vueIndex,r=this.vueKey,i=this.vueCesium,o=this.viewer,a=this.createCesiumObject();a.then((function(a){var s=new e.ModelExplosion(o);i.ExplosionManager.addSource(r,n,t,{explosion:s})})),o.isDestroyed()},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=t.ExplosionManager.findSource(e,n);r&&r.options,this.$emit("unload",{component:this}),t.ExplosionManager.deleteSource(e,n),this.resetHeadding()},explosionAction:function(){var t,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.Cesium,o=this.layerIndex,a=this.viewer,s=this.m3ds,c=(this.version,this.distance),u=this.speed;this.moveDirection;if(t=s?s[o]:a.scene.layers.getM3DLayer(o),t){var l=r.ExplosionManager.findSource(e,n);if(l&&l.options){var h=l.options.explosion,d=t,f=new i.Cartesian3(1,0,0),p=new i.Cartesian3(0,1,0),m=new i.Cartesian3,g=i.Math.toRadians(this.angle);m.x=f.x*Math.cos(g)+p.x*Math.sin(g),m.y=f.y*Math.cos(g)+p.y*Math.sin(g),m.z=f.z*Math.cos(g)+p.z*Math.sin(g),h.multiLayerAxisExplosionWithAnimate([d],{direction:m,expDistance:c,speed:u})}}},handleDrawDirection:function(){var t=this.viewer,e=new Cesium.DrawElement(t);e.startDrawingPolyline({color:new Cesium.Color(.3,.7,.8,1),callback:function(t){var e=new Cesium.DrawElement.PolylinePrimitive({positions:t.positions,width:1,geodesic:!0});scene.primitives.add(e),e.setEditable(),primitivesList.push(e)}})},changeHeadding:function(t){this.angle=this.headding+t,this.explosionAction()},resetHeadding:function(){var t,e=this.layerIndex,n=this.viewer,r=this.m3ds,i=this.vueKey,o=this.vueIndex,a=this.vueCesium,s=a.ExplosionManager.findSource(i,o);if(s&&s.options){var c=s.options.explosion;if(t=r?r[e]:n.scene.layers.getM3DLayer(e),!t||!c)return;c.removeModelExplosion([t])}}}},Ed=kd,Od=(n("62b6"),je(Ed,wd,_d,!1,null,null,null)),Pd=Od.exports,Bd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menu-bloom"},[n("mapgis-ui-divider",{staticStyle:{fontSize:"14px"}},[t._v(" 泛光设置 ")]),n("div",{staticClass:"mapgis-3d-m3d-menu-bloom-content"},[n("div",[n("mapgis-ui-color-pick-panel",{attrs:{transparent:"",label:"颜色设置",disableAlpha:!1,labelCol:24,wrapperCol:24},model:{value:t.lightColor,callback:function(e){t.lightColor=e},expression:"lightColor"}})],1),n("mapgis-ui-input-number-panel",{attrs:{size:"large",label:"呼吸速度",tooltip:"呼吸灯速度,建议取值区间(0,1),值越小,闪烁速度越慢",step:.1,range:[0,1]},model:{value:t.breathSpeed,callback:function(e){t.breathSpeed=e},expression:"breathSpeed"}}),n("mapgis-ui-switch-panel",{attrs:{label:"启用渐变",size:"small",layout:"horizontal"},model:{value:t.enableGradient,callback:function(e){t.enableGradient=e},expression:"enableGradient"}},[n("mapgis-ui-row",[n("label",{staticClass:"mapgis-3d-m3d-menu-bloom-label"},[t._v("渐变中心高度")]),n("mapgis-ui-tooltip",{staticStyle:{"margin-left":"4px"}},[n("template",{slot:"title"},[t._v("从指定高度开始渐变")]),n("mapgis-ui-iconfont",{staticStyle:{color:"white"},attrs:{type:"mapgis-info-circle"}})],2)],1),n("mapgis-ui-row",[n("mapgis-ui-input-number",{style:{width:"256px"},attrs:{label:"渐变中心高度",placeholder:"渐变中心高度",step:.1},model:{value:t.gradientCenterHeight,callback:function(e){t.gradientCenterHeight=e},expression:"gradientCenterHeight"}})],1),n("mapgis-ui-row",[n("label",{staticClass:"mapgis-3d-m3d-menu-bloom-label"},[t._v("渐变半径")]),n("mapgis-ui-tooltip",{staticStyle:{"margin-left":"4px"}},[n("template",{slot:"title"},[t._v("渐变效果半径")]),n("mapgis-ui-iconfont",{staticStyle:{color:"white"},attrs:{type:"mapgis-info-circle"}})],2)],1),n("mapgis-ui-row",[n("mapgis-ui-input-number",{style:{width:"256px"},attrs:{label:"渐变半径",placeholder:"渐变半径",step:.1},model:{value:t.gradientRadius,callback:function(e){t.gradientRadius=e},expression:"gradientRadius"}})],1)],1)],1),n("mapgis-ui-setting-footer",[n("mapgis-ui-button",{attrs:{type:"primary"},on:{click:t.addEffect}},[t._v("执行泛光")]),n("mapgis-ui-button",{on:{click:t.removeEffect}},[t._v("删除泛光")])],1)],1)},Id=[];function Dd(t){return Dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dd(t)}function Nd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nd(Object(n),!0).forEach((function(e){jd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jd(t,e,n){return(e=Rd(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rd(t){var e=Hd(t,"string");return"symbol"==Dd(e)?e:e+""}function Hd(t,e){if("object"!=Dd(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Dd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var zd={name:"mapgis-3d-m3d-base-layer",inject:["Cesium","vueCesium","viewer"],props:Fd({},ln),data:function(){return{logic:{minHeight:0,maxHeight:50,minWidth:0,maxWidth:50,minLength:0,maxLength:50}}},methods:{$_degreeFromCartesian:function(t){if(t){var e=this.Cesium,n={},r=e.Cartographic.fromCartesian(t);return n.longitude=e.Math.toDegrees(r.longitude),n.latitude=e.Math.toDegrees(r.latitude),n.height=r.height,n}},$_getAngle:function(t){var e=this.Cesium,n=e.Matrix4.multiplyByPoint(this.mtx,positions[0],new e.Cartesian3),r=e.Matrix4.multiplyByPoint(this.mtx,t,new e.Cartesian3),i=e.Cartesian3.subtract(r,n,new e.Cartesian3);i=e.Cartesian3.normalize(i,new e.Cartesian3);var o=new e.Cartesian3(0,1,0),a=e.Cartesian3.dot(o,i),s=new e.Cartesian3(1,0,0),c=e.Cartesian3.dot(s,r),u=Math.acos(a),l=e.Math.toDegrees(u);return c<0&&(l=360-l),l},$_getM3DBox:function(t){var e=this.Cesium,n={length:0,width:0,height:0,logic:this.logic},r=t._root.boundingVolume.northeastCornerCartesian,i=t._root.boundingVolume.southwestCornerCartesian,o=this.$_degreeFromCartesian(i),a=this.$_degreeFromCartesian(r);if(!o||!a)return n;var s={},c={};s.longitude=o.longitude,s.latitude=a.latitude,s.height=o.height,c.longitude=a.longitude,c.latitude=o.latitude,c.height=a.height;var u=e.Cartesian3.fromDegrees(s.longitude,s.latitude,s.height),l=e.Cartesian3.fromDegrees(c.longitude,c.latitude,c.height),h=e.Cartesian3.distance(l,i),d=e.Cartesian3.distance(u,i);t._root.boundingVolume.maximumHeight,t._root.boundingVolume.minimumHeight;return this.logic.minHeight=t._root.boundingVolume.minimumHeight,this.logic.maxHeight=t._root.boundingVolume.maximumHeight,this.logic.minWidth=0,this.logic.maxWidth=d,this.logic.minLength=0,this.logic.maxlength=h,n}}},Ud={data:function(){return{}},methods:{getM3DSet:function(){var t,e=this.layerIndex,n=this.viewer,r=this.m3ds;return t=r?r[e]:n.scene.layers.getM3DLayer(e),t},formatNumberToString:function(t){var e=Number(t);return Number.isInteger(e)?String(e)+".0":String(e)},setHighLightBack:function(t){if(t.style){var e=t.style.color;this.highLightBack=e.expression}},removeEffect:function(){var t=this.Cesium,e=this.getM3DSet();e&&(e.customShader=void 0,this.highLightBack&&(e.style=new t.Cesium3DTileStyle({color:this.highLightBack})))},unmount:function(){this.$emit("unload",{component:this})}}},Vd={name:"mapgis-3d-m3d-menu-bloom",inject:["Cesium","vueCesium","viewer","m3ds"],mixins:[zd,Ud],props:{version:{type:String},layerIndex:{type:[Number,String]}},watch:{},data:function(){return{lightColor:"#FF0000",breathSpeed:.5,highLightBack:void 0,enableGradient:!1,gradientCenterHeight:0,gradientRadius:1}},created:function(){},mounted:function(){},destroyed:function(){this.unmount()},methods:{addEffect:function(){var t=this.Cesium,e=this.getM3DSet();if(e){this.setHighLightBack(e),e.style=void 0;var n=t.Color.fromCssColorString(this.lightColor),r=this.formatNumberToString(n.red)+", "+this.formatNumberToString(n.green)+", "+this.formatNumberToString(n.blue)+", "+this.formatNumberToString(n.alpha);if(this.enableGradient){var i=this.formatNumberToString(this.gradientCenterHeight),o=this.formatNumberToString(this.gradientRadius);e.customShader=new t.CustomShader({uniforms:{},fragmentShaderText:"\n void fragmentMain(vec4 position, float frameNumber, vec4 oid, inout vec4 fragColor) {\n // 将0~1之间的值映射到5~720之间\n float mappedSpeed = ".concat(this.breathSpeed," * (5.0 - 720.0) + 720.0;\n // 根据当前帧时间(czm_frameNumber),获取当前顶点所处的周期\n float time = fract(frameNumber / mappedSpeed);\n time = abs(time - 0.5) * 2.0;\n float diffHeight = abs((position.y) + ").concat(i,");\n float mappedValue = clamp(diffHeight / ").concat(o,", 0.0, 1.0);\n fragColor += vec4(").concat(r,") * (1.0 - mappedValue) * time;\n }\n ")})}else e.customShader=new t.CustomShader({uniforms:{},fragmentShaderText:"\n void fragmentMain(vec4 position, float frameNumber, vec4 oid, inout vec4 fragColor) {\n // 将0~1之间的值映射到5~720之间\n float mappedSpeed = ".concat(this.breathSpeed," * (5.0 - 720.0) + 720.0;\n // 根据当前帧时间(czm_frameNumber),获取当前顶点所处的周期\n float time = fract(frameNumber / mappedSpeed);\n time = abs(time - 0.5) * 2.0;\n fragColor += vec4(").concat(r,") * 0.5 * time;\n }\n ")})}}}},Yd=Vd,Gd=(n("c26d"),je(Yd,Bd,Id,!1,null,null,null)),Qd=Gd.exports,Wd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menu-dynamicline"},[n("mapgis-ui-divider",{staticStyle:{fontSize:"14px"}},[t._v(" 扫描设置 ")]),n("div",{staticClass:"mapgis-3d-m3d-menu-dynamic-line"},[n("mapgis-ui-color-pick-panel",{attrs:{transparent:"",label:"光线颜色",disableAlpha:!1,labelCol:24,wrapperCol:24},model:{value:t.lightColor,callback:function(e){t.lightColor=e},expression:"lightColor"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"扫描速度",tooltip:"扫描速度,建议取值区间(0,1),值越小,扫描速度越慢",step:.1,range:[0,1]},model:{value:t.scanSpeed,callback:function(e){t.scanSpeed=e},expression:"scanSpeed"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"扫描线宽度",tooltip:"扫描线宽度,建议取值区间(0,1),值越小,扫描线越细",step:.1,range:[0,1]},model:{value:t.lineWidth,callback:function(e){t.lineWidth=e},expression:"lineWidth"}}),n("mapgis-ui-row",[n("label",{staticClass:"mapgis-3d-m3d-menu-bloom-label"},[t._v("底部高度偏移")]),n("mapgis-ui-tooltip",{staticStyle:{"margin-left":"4px"}},[n("template",{slot:"title"},[t._v("模型底部相对于制图原点的高度偏移")]),n("mapgis-ui-iconfont",{attrs:{type:"mapgis-info-circle"}})],2)],1),n("mapgis-ui-row",[n("mapgis-ui-input-number",{style:{width:"256px"},attrs:{label:"底部高度偏移",placeholder:"底部高度偏移",step:.1},model:{value:t.bottomHeightOffset,callback:function(e){t.bottomHeightOffset=e},expression:"bottomHeightOffset"}})],1)],1),n("mapgis-ui-setting-footer",[n("mapgis-ui-button",{attrs:{type:"primary"},on:{click:t.addEffect}},[t._v("执行动态线")]),n("mapgis-ui-button",{on:{click:t.removeEffect}},[t._v("删除动态线")])],1)],1)},Kd=[],qd={name:"mapgis-3d-m3d-menu-dynamic-line",inject:["Cesium","vueCesium","viewer","m3ds"],mixins:[zd,Ud],props:{version:{type:String},layerIndex:{type:[Number,String]}},data:function(){return{layout:"horizontal",scanSpeed:.5,lineWidth:.2,lightColor:"#FFFF00",bottomHeightOffset:0}},created:function(){},mounted:function(){},destroyed:function(){this.unmount()},watch:{},methods:{addEffect:function(){var t=this.Cesium,e=this.getM3DSet();if(e){this.setHighLightBack(e),e.style=void 0;var n=t.Color.fromCssColorString(this.lightColor),r=this.formatNumberToString(n.red)+", "+this.formatNumberToString(n.green)+", "+this.formatNumberToString(n.blue)+", "+this.formatNumberToString(n.alpha),i=this.formatNumberToString(e.boundingSphere.radius),o=this.formatNumberToString(this.lineWidth/10),a=this.formatNumberToString(this.bottomHeightOffset);e.customShader=new t.CustomShader({uniforms:{},fragmentShaderText:"\n void fragmentMain(vec4 position, float frameNumber, vec4 oid, inout vec4 fragColor) {\n float currentHeight = position.y + ".concat(a," + ").concat(i,";\n // 将0~1之间的值映射到20~720之间\n float mappedSpeed = ").concat(this.scanSpeed," * (20.0 - 720.0) + 720.0;\n // 根据当前帧时间(czm_frameNumber),获取当前顶点所处的周期\n float time = fract(frameNumber / mappedSpeed);\n // 获取当前高度占整体高度的百分比,0到1之间的值\n // clamp参考https://learn.microsoft.com/zh-cn/previous-versions/hh308289(v=vs.120)\n currentHeight = clamp(currentHeight / ").concat(2*i,", 0.0, 1.0);\n // 处理周期\n time = abs(time - 0.5) * 2.0;\n // 根据高度和周期计算光圈\n float circle = step(").concat(o,", abs(currentHeight - time));\n if (abs(currentHeight - time) < ").concat(o,") {\n circle = abs(currentHeight - time) * (1.0 / ").concat(o,");\n }\n fragColor += vec4(").concat(r,") * (1.0 - circle);\n }\n ")})}}}},Xd=qd,$d=(n("d5e3"),je(Xd,Wd,Kd,!1,null,"ead81a6a",null)),Jd=$d.exports,Zd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-m3d-menu-searchlight"},[n("mapgis-ui-divider",{staticStyle:{fontSize:"14px"}},[t._v(" 探照灯设置 ")]),n("div",{staticClass:"mapgis-3d-m3d-menu-search-light"},[n("mapgis-ui-color-pick-panel",{attrs:{transparent:"",label:"颜色",disableAlpha:!1,labelCol:24,wrapperCol:24},model:{value:t.searchlightColor,callback:function(e){t.searchlightColor=e},expression:"searchlightColor"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"混合系数",range:[0,1e3]},model:{value:t.mixFactor,callback:function(e){t.mixFactor=e},expression:"mixFactor"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"持续时间",range:[0,1e4]},model:{value:t.duration,callback:function(e){t.duration=e},expression:"duration"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"类型",range:[0,1e5]},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}}),n("mapgis-ui-input-number-panel",{attrs:{transparent:"",size:"large",label:"宽度",range:[0,1e5]},model:{value:t.width,callback:function(e){t.width=e},expression:"width"}}),n("mapgis-ui-tooltip",{attrs:{title:"点击第一次设置灯光位置,点击第二次设置灯光的方向"}},[n("mapgis-ui-button",{style:{width:"100%",marginBottom:"8px"},on:{click:t.handleDraw}},[t._v("\n 交互绘制激活")])],1)],1),n("mapgis-ui-setting-footer",[n("mapgis-ui-button",{attrs:{type:"primary"},on:{click:t.addEffect}},[t._v("执行探照灯")]),n("mapgis-ui-button",{on:{click:t.removeEffect}},[t._v("删除探照灯")])],1)],1)},tf=[],ef={name:"mapgis-3d-m3d-menu-searchlight",inject:["Cesium","vueCesium","viewer","m3ds"],mixins:[zd],props:{version:{type:String},layerIndex:{type:Number}},data:function(){return{layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},direction:1,searchlightColor:"#FFFF00",mixFactor:.9,duration:5e3,type:2,width:5}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{direction:function(t){var e=this.logic;if(e){var n=e.minHeight,r=e.maxHeight,i=e.minWidth,o=e.maxWidth,a=e.minLength,s=e.maxLength;switch(t){case 1:case-1:this.min=a,this.max=s;break;case 2:case-2:this.min=i,this.max=o;break;case 3:case-3:this.min=n,this.max=r;break}}},layerIndex:function(t){this.parseM3d()}},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},mount:function(){var t=this,e=(this.Cesium,this.vueIndex),n=this.vueKey,r=this.vueCesium,i=this.viewer;this.parseM3d();var o=this.createCesiumObject();o.then((function(i){r.SearchLightManager.addSource(n,e,t,{lines:[]})})),i.isDestroyed()},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex;this.removeEffect(),this.$emit("unload",{component:this}),t.SearchLightManager.deleteSource(e,n)},parseM3d:function(){var t=this.getM3DSet();this.$_getM3DBox(t).logic},getM3DSet:function(){var t,e=this.layerIndex,n=this.viewer,r=this.m3ds;return t=r?r[e]:n.scene.layers.getM3DLayer(e),t},addEffect:function(){var t=this.vueKey,e=this.vueIndex,n=this.vueCesium,r=this.Cesium,i=this.viewer,o=this.searchlightColor,a=this.mixFactor,s=this.duration,c=this.type,u=this.width,l=this.getM3DSet();if(l){this.removeEffect();var h=new r.Cartesian3(-2005887,4964532,3454029),d=new r.Cartesian3(-2005886,4964528,3454026),f=new r.SearchlightEffect(i,h,d,l.root.transform,{lightColor:new r.Color.fromCssColorString(o),mixFactor:a,duration:s,type:c,width:u});f.add(),n.SearchLightManager.changeOptions(t,e,"searchlight",f)}},removeEffect:function(){var t=this.vueKey,e=this.vueIndex,n=this.vueCesium,r=n.SearchLightManager.findSource(t,e);if(r&&r.options&&r.options.searchlight){var i=r.options.searchlight;i.remove&&i.remove()}},handleDraw:function(){this.vueKey,this.vueIndex,this.vueCesium;var t=this.Cesium,e=this.searchlightColor,n=new t.DrawElement(viewer);n.startDrawingPolyline({color:new t.Color.fromCssColorString(e),callback:function(e){var r=e.positions;r&&r.length>=2&&n.stopDrawing();var i=new t.DrawElement.PolylinePrimitive({positions:e.positions,width:1,geodesic:!0});viewer.scene.primitives.add(i),i.setEditable()}})}}},nf=ef,rf=(n("721f"),je(nf,Zd,tf,!1,null,null,null)),of=rf.exports,af={name:"mapgis-3d-m3d-menus",components:{M3dMenuSetting:cd,M3dMenuProps:bd,M3dMenuExplosion:Pd,M3dMenuBloom:Qd,M3dMenuDynamicLine:Jd,M3dMenuSearchlight:of},props:{mode:{type:String,default:"m3d"},size:{type:String,default:"small"},version:{type:String},g3dLayerIndex:{type:Number},layerIndex:{type:Number},gdbp:{type:String},ip:{type:String},port:{type:String},domain:{type:String}},watch:{mode:function(t){this.menus=this.parseMode(t)}},data:function(){return{currentMenu:void 0,currentLayerIndex:-1,menus:this.parseMode()}},methods:{parseMode:function(t){return t=t||this.mode,"m3d"==t?[{type:"properties",title:"动态单体化查询",icon:"mapgis-table"},{type:"explosion",title:"爆炸",icon:"mapgis-api"},{type:"bloom",title:"泛光",icon:"mapgis-highlight"},{type:"dynamic",title:"扫描",icon:"mapgis-wifi"},{type:"searchlight",title:"探照灯",icon:"mapgis-star"}]:[{type:"setting",title:"全局场景特效",icon:"mapgis-setting"}]},handleMenuClick:function(t){var e=t.type;switch(this.currentMenu=e,e){case"properties":this.$emit("enable-dynamic-query",t);break;default:break}}}},sf=af,cf=je(sf,qh,Xh,!1,null,null,null),uf=cf.exports;function lf(t){return lf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lf(t)}function hf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function df(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,pf(r.key),r)}}function ff(t,e,n){return e&&df(t.prototype,e),n&&df(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function pf(t){var e=mf(t,"string");return"symbol"==lf(e)?e:e+""}function mf(t,e){if("object"!=lf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=lf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var gf=function(){function t(){hf(this,t)}return ff(t,null,[{key:"calculateBound",value:function(t){for(var e={xmin:t[0][0],ymin:t[0][1],xmax:t[0][0],ymax:t[0][1]},n=0;n<t.length;n+=1)e.xmin&&t[n][0]<e.xmin&&(e.xmin=t[n][0]),e.ymin&&t[n][1]<e.ymin&&(e.ymin=t[n][1]),e.xmax&&t[n][0]>e.xmax&&(e.xmax=t[n][0]),e.ymax&&t[n][1]>e.ymax&&(e.ymax=t[n][1]);return e}},{key:"getCenterOfGravityPoint",value:function(t){for(var e=0,n=0,r=0,i=1;i<=t.length;i+=1){var o=t[i%t.length][1],a=t[i%t.length][0],s=t[i-1][1],c=t[i-1][0],u=(o*c-a*s)/2;e+=u,r+=u*(o+s)/3,n+=u*(a+c)/3}return[n/e,r/e]}},{key:"creatRectangleByViewRectangle",value:function(t){return new K["Common"].Rectangle(t.west,t.south,t.east,t.north)}},{key:"creatRectByMinMax",value:function(t,e,n,r){return new K["Common"].Rectangle(t,e,n,r)}}])}();function Af(t){return wf(t)||bf(t)||yf(t)||vf()}function vf(){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 yf(t,e){if(t){if("string"==typeof t)return _f(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_f(t,e):void 0}}function bf(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function wf(t){if(Array.isArray(t))return _f(t)}function _f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function xf(t){var e=t.geometry,n=[];switch(e.type){case"Point":n=e.coordinates;break;case"LineString":var r=Math.floor(e.coordinates.length/2);n=e.coordinates[r];break;case"Polygon":n=gf.getCenterOfGravityPoint(e.coordinates[0]);break;case"MultiPolygon":for(var i=e.coordinates,o=[],a=0;a<i.length;a+=1){var s=gf.getCenterOfGravityPoint(i[a][0]);s&&o.push(s)}o.push(o[0]),n=o[0],3===o.length?n=[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]:o.length>3&&(n=gf.getCenterOfGravityPoint(o));break;default:break}return n}function Sf(t){var e=function(t,n){var r=t[n];if("number"===typeof r)return[r];if(Array.isArray(t[0])){var i=t.map((function(t){return e(t,n)}));return i.reduce((function(t,e){return[].concat(Af(t),Af(e))}))}return[]},n=t.geometry.coordinates,r=e(n,0),i=e(n,1);return{xmin:Math.min.apply(Math,Af(r)),ymin:Math.min.apply(Math,Af(i)),xmax:Math.max.apply(Math,Af(r)),ymax:Math.max.apply(Math,Af(i))}}function Cf(t){return Cf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cf(t)}function Mf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,kf(r.key),r)}}function Tf(t,e,n){return e&&Lf(t.prototype,e),n&&Lf(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function kf(t){var e=Ef(t,"string");return"symbol"==Cf(e)?e:e+""}function Ef(t,e){if("object"!=Cf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Cf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Of=eh["Util"].UrlUtil,Pf=function(){function t(){Mf(this,t)}return Tf(t,null,[{key:"getTiles",value:function(t){var e=t.ip,n=t.port,r="".concat(Of.getOrigin({ip:e,port:n}),"/igs/rest/mrcs/tiles?version=2&f=json"),i=new Promise((function(t,e){qe.a.get(r).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return i.then((function(t){return t}))}},{key:"getDocs",value:function(t){var e=t.ip,n=t.port,r="".concat(Of.getOrigin({ip:e,port:n}),"/igs/rest/mrcs/docs?version=2&f=json"),i=new Promise((function(t,e){qe.a.get(r).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return i.then((function(t){return t}))}},{key:"getDocInfo",value:function(t){if(!t.serverName)return null;if(this.globalDocInfo[t.serverName])return this.globalDocInfo[t.serverName];var e=t.domain||null;if(!e){var n=t.protocol||window.location.protocol.split(":")[0],r=t.ip,i=t.port;e="".concat(Of.getOrigin({ip:r,port:i,protocol:n}))}var o="".concat(e,"/igs/rest/mrcs/docs/").concat(t.serverName,"?dataService=").concat(t.serverName,"&f=json&tree=true&guid=").concat(t.guid||"__readonly_user__"),a=this,s=new Promise((function(e,n){qe.a.get(o).then((function(n){var r=n.data;if(r){for(var i=0;i<r.MapInfos.length;i+=1){var o=r.MapInfos[i].CatalogLayer;o&&(r.MapInfos[i].CatalogLayer=a.disposeDocInfo(o))}a.globalDocInfo[t.serverName]=r,e(r)}else e(void 0)}),(function(t){n(t)}))}));return s.then((function(t){return t}))}},{key:"get3dDocInfo",value:function(t){if(!t.serverName)return null;if(this.globalDocInfo[t.serverName])return this.globalDocInfo[t.serverName];var e=t.domain||null;if(!e){var n=t.protocol||window.location.protocol.split(":")[0],r=t.ip,i=t.port;e="".concat(Of.getOrigin({ip:r,port:i,protocol:n}))}var o="".concat(e,"/igs/rest/g3d/").concat(t.serverName,"/GetDocInfo"),a=this,s=new Promise((function(e,n){qe.a.get(o).then((function(n){var r=n.data;r?(a.globalDocInfo[t.serverName]=r,e(r)):e(void 0)}),(function(t){n(t)}))}));return s.then((function(t){return t}))}},{key:"getMapInfoService",value:function(t){var e=t.ip,n=t.port,r=t.name,i="".concat(Of.getOrigin({ip:e,port:n}),"/igs/rest/mrms/info/").concat(r,"?guid="),o=new Promise((function(t,e){qe.a.get(i).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return o.then((function(t){return t}))}},{key:"disposeDocInfo",value:function(t,e){if(!t)return[];for(var n=0;n<t.length;n+=1){var r=e&&""!==e?"".concat(e,"-").concat(n):String(n);if("Layer"===t[n].Type)t[n].layerIndex=r;else if("Group"===t[n].Type){var i=t[n].GroupMapLayerInfo;i&&(t[n].GroupMapLayerInfo=this.disposeDocInfo(i,r))}}return t}},{key:"getLayerIndexesByNamesOrCodes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(r=r||[],i=i||[],""!==e||""!==n)for(var o=0;o<t.length;o+=1){var a=t[o],s=a.URL,c=a.layerIndex,u=a.GroupMapLayerInfo;if("Layer"===t[o].Type)if(""===n){var l=[];l=e.includes(",")?e.split(","):[e];for(var h=0;h<l.length;h+=1)s&&s.indexOf(l[h])===s.length-l[h].length&&(i.includes(s)||(i.push(s),c&&r.push(c)))}else if(""===e){var d=[];d=n.includes(",")?n.split(","):[n];for(var f=0;f<d.length;f+=1)s&&s.includes(d[f])&&(i.includes(s)||(i.push(s),c&&r.push(c)))}else s&&s.indexOf(e)===s.length-e.length&&s.includes(n)&&(i.includes(s)||(i.push(s),c&&r.push(c)));else u&&u.length>0&&(r=this.getLayerIndexesByNamesOrCodes(u,e,n,r,i))}else for(var p=0;p<t.length;p+=1){var m=t[p],g=m.layerIndex,A=m.GroupMapLayerInfo;"Layer"===t[p].Type?g&&r.push(g):A&&A.length>0&&(r=this.getLayerIndexesByNamesOrCodes(A,e,n,r,i))}return r}},{key:"getLayerUrlsByNamesOrCodes",value:function(t,e,n,r){if(r=r||[],""!==e||""!==n)for(var i=0;i<t.length;i+=1){var o=t[i],a=o.URL,s=o.GroupMapLayerInfo;if("Layer"===t[i].Type)if(""===n){var c=[];c=e.includes(",")?e.split(","):[e];for(var u=0;u<c.length;u+=1)a&&a.indexOf(c[u])===a.length-c[u].length&&(r.includes(a)||r.push(a))}else if(""===e){var l=[];l=n.includes(",")?n.split(","):[n];for(var h=0;h<l.length;h+=1)a&&a.includes(l[h])&&(r.includes(a)||r.push(a))}else a&&a.indexOf(e)===a.length-e.length&&a.includes(n)&&(r.includes(a)||r.push(a));else s&&s.length>0&&(r=this.getLayerUrlsByNamesOrCodes(s,e,n,r))}else for(var d=0;d<t.length;d+=1){var f=t[d],p=f.URL,m=f.GroupMapLayerInfo;"Layer"===t[d].Type?p&&r.push(p):m&&m.length>0&&(r=this.getLayerUrlsByNamesOrCodes(m,e,n,r))}return r}},{key:"getLayersByIndexes",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!t||""===t||!e)return[];n||(n=[]);var r=[];r=t.includes(",")?t.split(","):[t];for(var i=0;i<e.length;i+=1){for(var o=0;o<r.length;o+=1)r[o]===e[i].layerIndex&&n.push(e[i]);if("Group"===e[i].Type){var a=e[i].GroupMapLayerInfo;a&&(n=this.getLayersByIndexes(t,a,n))}}return n}},{key:"getLayerIndexesByNames",value:function(t,e,n){if(""===e)return[];var r;n=n||[],r=e.includes(",")?e.split(","):[e];for(var i=0;i<t.length;i+=1)if("Layer"===t[i].Type)for(var o=0;o<r.length;o+=1){var a=t[i].URL;a&&a.indexOf(r[o])>0&&(n.includes(a)||n.push(a))}else{var s=t[i].GroupMapLayerInfo;s&&(n=this.getLayerIndexesByNames(s,e,n))}return n}},{key:"getLayersByExtentOrName",value:function(t,e,n,r,i){r||(r=[]),i=i||[];for(var o=0;o<t.length;o++)if("Layer"===t[o].Type){var a=t[o].ProjTransRange;if(a&&e&&(a.xmax<e[0]||a.xmin>e[2]||a.ymax<e[1]||a.ymin>e[3]))continue;if(n)for(var s=0;s<n.length;s++)t[s].URL.indexOf(n[s])===t[s].URL.length-n[s].length&&i.indexOf(t[s].URL)<0&&(r.push(t[s]),i.push(t[s].URL));else i.indexOf(t[o].URL)<0&&(r.push(t[o]),i.push(t[o].URL))}else t[o].GroupMapLayerInfo&&(r=this.getLayersByExtentOrName(t[o].GroupMapLayerInfo,e,n,r,i));return r}},{key:"getLayerInfo",value:function(t){var e=t.domain;if(!e){var n=t.protocol,r=t.ip,i=t.port;e="".concat(n,"://").concat(r,":").concat(i)}var o,a=t.layerType;if("layer"===a){var s=new K["MRCS"].VectorLayer({domain:e}),c=t.gdbp;o=new Promise((function(t){s.getLayerInfo(c,(function(e){if(e&&e.Range){var n={layerType:a,proName:e.SrName,extent:e.Range,FieldAtt:e.FieldAtt};t(n)}else t(null)}))}))}else if("vector"===a){var u=t.serverName,l=new K["MRCS"].MapDoc({domain:e,docName:u});o=new Promise((function(t){l.getMapInfo((function(e){if(e&&e.range){var n=e.range.split(","),r={xmin:Number(n[0]),ymin:Number(n[1]),xmax:Number(n[2]),ymax:Number(n[3])},i={layerType:a,proName:e.projtransName,extent:r};t(i)}else t(null)}))}))}else if("tile"===a){var h=t.serverName,d=new K["MRCS"].TileLayer({domain:e,tileName:h});o=new Promise((function(t){d.getTileInfo((function(e){if(e&&e.TileInfo2){var n=e.TileInfo2.fullExtent;if(n){var r={xmin:n.xmin,ymin:n.ymin,xmax:n.xmax,ymax:n.ymax},i=e.TileInfo2.tileInfo.spatialReference.tileSRefInfo.Name,o=e.TileInfo2.tileInfo.cols||e.TileInfo2.tileInfo.rows,s=e.TileInfo2.tileInfo.origin,c={layerType:a,proName:i,extent:r,tileSize:o,origin:s};t(c)}}else t(null)}))}))}return o?o.then((function(t){return t})):null}}])}();function Bf(t){return Bf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(t)}function If(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Df(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ff(r.key),r)}}function Nf(t,e,n){return e&&Df(t.prototype,e),n&&Df(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ff(t){var e=jf(t,"string");return"symbol"==Bf(e)?e:e+""}function jf(t,e){if("object"!=Bf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Bf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}Pf.globalDocInfo={};var Rf=eh["Util"].UrlUtil,Hf=function(){function t(){If(this,t)}return Nf(t,null,[{key:"getDataSource",value:function(t){var e=t.ip,n=t.port,r=t.isDetail,i=void 0!==r&&r,o="".concat(Rf.getOrigin({ip:e,port:n}),"/igs/rest/mrcs/datasource?f=json&").concat(i?"getAtt":"getAttr","=true"),a=new Promise((function(t,e){qe.a.get(o).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return a.then((function(t){return t}))}},{key:"getDataBase",value:function(t){var e=t.ip,n=t.port,r=t.dataSource,i=t.user,o=t.password,a="".concat(Rf.getOrigin({ip:e,port:n}),"/igs/rest/mrcs/datasource/").concat(r,"?user=").concat(i,"&psw=").concat(o,"&f=json"),s=new Promise((function(t,e){qe.a.get(a).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return s.then((function(t){return t}))}},{key:"getGDBData",value:function(t){var e=t.ip,n=t.port,r=t.gdbp,i=t.type,o=t.user,a=t.password,s="".concat(Rf.getOrigin({ip:e,port:n}),"/igs/rest/mrcs/datasource/").concat(r,"/").concat(i,"?user=").concat(o,"&psw=").concat(a,"&containAll=false&f=json"),c=new Promise((function(t,e){qe.a.get(s).then((function(e){var n=e.data;t(n||void 0)}),(function(t){e(t)}))}));return c.then((function(t){return t}))}}])}();function zf(t){return zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(t)}function Uf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Uf(Object(n),!0).forEach((function(e){Yf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yf(t,e,n){return(e=qf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Gf=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==zf(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(zf(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Qf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qf(r.key),r)}}function Kf(t,e,n){return e&&Wf(t.prototype,e),n&&Wf(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function qf(t){var e=Xf(t,"string");return"symbol"==zf(e)?e:e+""}function Xf(t,e){if("object"!=zf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=zf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $f=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(r.next(t))}catch(e){o(e)}}function s(t){try{c(r["throw"](t))}catch(e){o(e)}}function c(t){t.done?n(t.value):i(t.value).then(a,s)}c((r=r.apply(t,e||[])).next())}))},Jf=eh["Util"].UrlUtil,Zf=function(){function t(){Qf(this,t)}return Kf(t,null,[{key:"query",value:function(t,e,n){return $f(this,void 0,void 0,Gf().mark((function r(){return Gf().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(t){r.next=2;break}return r.abrupt("return",null);case 2:if(!t.isEsGeoCode){r.next=4;break}return r.abrupt("return",this.dataStoreEsGeoCode(t));case 4:if(!t.isDataStoreQuery){r.next=6;break}return r.abrupt("return",this.dataStorePgQueryFeature(t));case 6:return r.abrupt("return",this.igsQuery(t,e,n));case 7:case"end":return r.stop()}}),r,this)})))}},{key:"isDataStoreQuery",value:function(t){return $f(this,void 0,void 0,Gf().mark((function e(){var n,r,i,o,a,s,c,u;return Gf().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.ip,r=t.port,i=t.gdbp,o=!1,a="",!(i&&-1===i.indexOf("MapGisLocal")&&i.indexOf("@")>-1)){e.next=18;break}return e.next=6,Hf.getDataSource({ip:n,port:r,isDetail:!0});case 6:if(s=e.sent,c=i.split("@")[1].split("/")[0],!(s&&s.length>0)){e.next=18;break}u=0;case 10:if(!(u<s.length)){e.next=18;break}if(s[u].Name!==c||"DBPG"!==s[u].Type){e.next=15;break}return o=!0,a=s[u].DNSName,e.abrupt("break",18);case 15:u++,e.next=10;break;case 18:return e.abrupt("return",{isDataStoreQuery:o,DNSName:a});case 19:case"end":return e.stop()}}),e)})))}},{key:"igsQuery",value:function(t,e,n){return $f(this,void 0,void 0,Gf().mark((function r(){var i,o,a,s;return Gf().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n||!t.docName||void 0===t.layerIdxs){r.next=8;break}return r.next=3,Pf.getDocInfo({serverName:t.docName,ip:t.ip,port:t.port});case 3:i=r.sent,o=null===i||void 0===i?void 0:i.MapInfos[Number(t.mapIndex)||0].CatalogLayer,a=t.layerName||"",s=t.code||"",o&&""===t.layerIdxs&&(t.layerIdxs=Pf.getLayerIndexesByNamesOrCodes(o,a,s,[],[]).join(","));case 8:if(!e){r.next=11;break}return t.combine=e,r.abrupt("return",this.igsCombineQueryFeature(t));case 11:if(!n){r.next=13;break}return r.abrupt("return",this.igsQuery3DFeature(t));case 13:return r.abrupt("return",this.igsQueryFeature(t));case 14:case"end":return r.stop()}}),r,this)})))}},{key:"igsQueryFeature",value:function(t){var e;t.gdbp?(e=new K["MRFS"].QueryByLayerParameter(t.gdbp),e.proj=t.srsIds):e=new K["MRFS"].QueryParameter,e.resultFormat=t.f||"geojson",e.geometry=t.geometry||null,e.where=t.where||null,e.pageIndex=t.page||0,e.recordNumber=t.pageCount||10,e.rule=new K["MRFS"].QueryFeatureRule({CompareRectOnly:void 0!==t.CompareRectOnly&&t.CompareRectOnly,EnableDisplayCondition:void 0!==t.EnableDisplayCondition&&t.EnableDisplayCondition,Intersect:void 0===t.Intersect||t.Intersect,MustInside:void 0!==t.MustInside&&t.MustInside}),e.struct=new K["MRFS"].QueryFeatureStruct({IncludeAttribute:void 0===t.IncludeAttribute||t.IncludeAttribute,IncludeGeometry:void 0===t.IncludeGeometry||t.IncludeGeometry,IncludeWebGraphic:void 0!==t.IncludeWebGraphic&&t.IncludeWebGraphic}),e.objectIds=t.objectIds||null,e.orderField=t.orderField||null,e.rtnLabel=void 0===t.rtnLabel||t.rtnLabel,e.isAsc=void 0!==t.isAsc&&t.isAsc,e.cursorType=t.cursorType||"forward",e.guid=t.guid||"__readonly_user__",e.fields=t.fields||"",e.coordPrecision=t.coordPrecision||0===t.coordPrecision?t.coordPrecision:2;var n,r=t.domain||null;if(!r){var i=t.protocol||window.location.protocol.split(":")[0],o=t.ip,a=t.port;r="".concat(Jf.getOrigin({ip:o,port:a,protocol:i}))}if(t.gdbp&&!t.docName)n=new K["MRFS"].QueryLayerFeature(e,{domain:r});else{if(!t.docName||!t.layerIdxs)return null;var s=t.docName,c=t.mapIndex||0,u=t.layerIdxs||"0"===t.layerIdxs?t.layerIdxs:"*",l=t.dataService||t.docName;e.partUrl="docs/".concat(s,"/").concat(c,"/").concat(u,"/query?dataService=").concat(l),n=new K["MRFS"].QueryDocFeature(e,s,u,{domain:r})}var h=new Promise((function(t,e){n.query((function(e){t(e||void 0)}),(function(t){console.log(t),e(t)}))}));return h.then((function(t){return t}))}},{key:"igsCombineQueryFeature",value:function(t){var e={};e.f=t.f||"geojson","geojson"===e.f&&(e.compress=void 0!==t.compress&&t.compress,e.level=t.level||0===t.level?t.level:8),t.geometry&&(e.geometryType=t.geometry.getGeometryType(),e.geometry=t.geometry.toString()),e.where=t.where||void 0,e.page=t.page||0,e.pageCount=t.pageCount||10;var n=new K["MRFS"].QueryFeatureRule({CompareRectOnly:void 0!==t.CompareRectOnly&&t.CompareRectOnly,EnableDisplayCondition:void 0!==t.EnableDisplayCondition&&t.EnableDisplayCondition,Intersect:void 0===t.Intersect||t.Intersect,MustInside:void 0!==t.MustInside&&t.MustInside});e.rule=n.toJSON();var r=new K["MRFS"].QueryFeatureStruct({IncludeAttribute:void 0===t.IncludeAttribute||t.IncludeAttribute,IncludeGeometry:void 0===t.IncludeGeometry||t.IncludeGeometry,IncludeWebGraphic:void 0!==t.IncludeWebGraphic&&t.IncludeWebGraphic});e.structs=r.toJSON(),e.objectIds=t.objectIds||void 0,e.orderField=t.orderField||void 0,e.rtnLabel=void 0===t.rtnLabel||t.rtnLabel,e.isAsc=void 0!==t.isAsc&&t.isAsc,e.cursorType=t.cursorType||"forward",e.guid=t.guid||"__readonly_user__",e.fields=t.fields||"",e.coordPrecision=t.coordPrecision||0===t.coordPrecision?t.coordPrecision:2,e.combine=void 0===t.combine||t.combine;var i,o=t.domain||null;if(!o){var a=t.protocol||window.location.protocol.split(":")[0],s=t.ip,c=t.port;o="".concat(Jf.getOrigin({ip:s,port:c,protocol:a}))}if(t.gdbp)e.gdbp=t.gdbp,e.srsIds=t.srsIds,i="".concat(o,"/onemap/layer/query");else{if(!t.docName)return null;var u=t.docName,l=t.mapIndex||0,h=t.layerIdxs||"0"===t.layerIdxs?t.layerIdxs:"*";i="".concat(o,"/onemap/docs/").concat(u,"/").concat(l,"/").concat(h,"/query")}var d=new Promise((function(t,n){qe.a.get(i,{params:e}).then((function(e){var r=e.data;r?t(r):n("undefined")}),(function(t){n(t)}))}));return d.then((function(t){return t}))}},{key:"igsQuery3DFeature",value:function(t){var e;e=t.gdbp?new K["MRFS"].QueryByLayerParameter(t.gdbp):new K["MRFS"].QueryParameter,e.resultFormat=t.f||"geojson",t.geometry&&(e.geometryType=t.geometryType&&""!==t.geometryType?t.geometryType:t.geometry.getGeometryType(),e.geometry=t.geometry.toString()),e.where=t.where||null,e.page=t.page||0,e.pageCount=t.pageCount||10,e.rule=new K["MRFS"].QueryFeatureRule({CompareRectOnly:void 0!==t.CompareRectOnly&&t.CompareRectOnly,EnableDisplayCondition:void 0!==t.EnableDisplayCondition&&t.EnableDisplayCondition,Intersect:void 0===t.Intersect||t.Intersect,MustInside:void 0!==t.MustInside&&t.MustInside}),e.struct=new K["MRFS"].QueryFeatureStruct({IncludeAttribute:void 0===t.IncludeAttribute||t.IncludeAttribute,IncludeGeometry:void 0===t.IncludeGeometry||t.IncludeGeometry,IncludeWebGraphic:void 0!==t.IncludeWebGraphic&&t.IncludeWebGraphic}),e.objectIds=t.objectIds||null,e.orderField=t.orderField||null,e.rtnLabel=void 0===t.rtnLabel||t.rtnLabel,e.isAsc=void 0!==t.isAsc&&t.isAsc,e.cursorType=t.cursorType||"forward",e.guid=t.guid||"__readonly_user__";var n,r=t.domain||null;if(!r){var i=t.protocol||window.location.protocol.split(":")[0],o=t.ip,a=t.port;r="".concat(Jf.getOrigin({ip:o,port:a,protocol:i}))}if(t.gdbp)n=new K["G3D"].G3DMapDoc(Vf({domain:r,gdbp:t.gdbp},e));else{if(!t.docName||!t.layerIdxs)return null;var s=t.docName,c=t.layerIdxs||"0"===t.layerIdxs?t.layerIdxs:"*";n=new K["G3D"].G3DMapDoc(Vf({domain:r,docName:s,layerindex:c},e))}var u=new Promise((function(t){n.GetFeature((function(e){t(e||void 0)}))}));return u.then((function(t){return t}))}},{key:"igsQueryResourceServer",value:function(t){var e={};e.f=t.f||"json",t.geometry&&(e.geometryType=t.geometryType&&""!==t.geometryType?t.geometryType:t.geometry.getGeometryType(),e.geometry=t.geometry.toString()),e.where=t.where||"",e.returnGeometry=t.returnGeometry||!0,e.returnAttribute=t.returnAttribute||!0,e.returnStyle=t.returnStyle||!1,e.returnIdsOnly=t.returnIdsOnly||!1,e.returnCountOnly=t.returnCountOnly||!1,e.returnExtentOnly=t.returnExtentOnly||!1,e.objectIds=t.objectIds||"",e.outFields=t.outFields||"",e.url=t.url||"",e.mapResource=t.mapResource||"",e.distance=t.distance||"",e.geometryPrecision=t.geometryPrecision||"",e.spatialRel=t.spatialRel||"",e.orderByFields=t.orderByFields||"",e.outStatistics=t.outStatistics||"",e.groupByFieldsForStatistics=t.groupByFieldsForStatistics||"";var n=t.pageCount||10,r=t.page||0,i=r*n;e.resultRecordCount=n,e.resultOffset=i,e.returnZ=t.returnZ||!1,e.is6xAcls=t.is6xAcls||"",e.inSrs=t.inSrs||"WGS1984_度",e.outSrs=t.outSrs||"WGS1984_度";var o=t.domain||"";if(!o){var a=t.protocol||window.location.protocol.split(":")[0],s=t.ip,c=t.port;o="".concat(Jf.getOrigin({ip:s,port:c,protocol:a}))}var u="".concat(o,"/igs/rest/services/system/ResourceServer/tempData/features/query"),l=new Promise((function(t){qe.a.get(u,{params:Vf({},e)}).then((function(e){e&&e.data?t(e.data):t(void 0)}))}));return l.then((function(t){return t}))}},{key:"dataStorePgQueryFeature",value:function(t){var e={},n=t.gdbp.split("/"),r=t.DNSName.split("/")[1],i=t.gdbp.split("@")[1].split("/")[1],o=n[n.length-1];if(e.path="".concat(r,"/").concat(i,"/").concat(o),e.pageNo=void 0!==t.page?t.page:1,e.pageSize=t.pageCount||10,e.includeProperites=!0,t.geometry){e.geoFormat="wkt";var a,s=t.geometry.getGeometryType(),c=[];if("rect"===s)c.push("".concat(t.geometry.xmin," ").concat(t.geometry.ymin)),c.push("".concat(t.geometry.xmin," ").concat(t.geometry.ymax)),c.push("".concat(t.geometry.xmax," ").concat(t.geometry.ymax)),c.push("".concat(t.geometry.xmax," ").concat(t.geometry.ymin)),c.push("".concat(t.geometry.xmin," ").concat(t.geometry.ymin)),a=c.join(","),e.geometry="POLYGON(( ".concat(a,"))");else if("polygon"===s||"polygon"===s){for(var u=t.geometry.pointArr,l=0;l<u.length;l+=1)c.push("".concat(u[l].x," ").concat(u[l].y));a=c.join(","),"polygon"===s?e.geometry="POLYGON(( ".concat(a,"))"):"line"===s&&(e.geometry="LINESTRING(".concat(a,")"))}else"point"===s&&(e.geometry="POINT(".concat(t.geometry.x," ").concat(t.geometry.y,")"))}t.where&&(e.filter=t.where),t.fields&&(e.fields=t.fields),e.sref=t.sref;var h=t.domain||null;if(e.ip=t.ip,e.port=t.port,!h){var d=t.protocol||window.location.protocol.split(":")[0],f=e.ip,p=e.port;h="".concat(Jf.getOrigin({ip:f,port:p,protocol:d}))}e.domain=h;var m=new Promise((function(t,n){new K["PostGIS"].PostgisQueryService(e).query((function(e){e&&e.features?t(e):n("undefined")}),(function(t){n(t)}))}));return m.then((function(t){return t}))}},{key:"dataStoreEsGeoCode",value:function(t){var e={};e.indexName=t.libName,e.pageNo=void 0!==t.page?t.page:1,e.pageSize=t.pageCount||10,e.province=t.province,e.city=t.city,e.bbox=t.bbox,e.geometry=t.geometry;var n=t.domain||null,r=t.ip,i=t.port;if(!n){var o=t.protocol||window.location.protocol.split(":")[0];n="".concat(Jf.getOrigin({ip:r,port:i,protocol:o}))}e.domain=n;var a,s=t.decode;s?(e.lon=t.lon,e.lat=t.lat,e.dis=t.dis,a=K["ElasticSearch"].ESGeoDecode):(e.keyWord=t.where||"",a=K["ElasticSearch"].ESGeoCode);var c=new Promise((function(t,n){new a(e).query((function(e){e&&e.t?t(e.t):n("undefined")}),(function(t){n(t)}))}));return c.then((function(t){return t}))}}])}();n("4328");function tp(t){return tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tp(t)}function ep(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ep=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==tp(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(tp(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function np(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function rp(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){np(o,r,i,a,s,"next",t)}function s(t){np(o,r,i,a,s,"throw",t)}a(void 0)}))}}function ip(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function op(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ip(Object(n),!0).forEach((function(e){ap(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ap(t,e,n){return(e=sp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sp(t){var e=cp(t,"string");return"symbol"==tp(e)?e:e+""}function cp(t,e){if("object"!=tp(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=tp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var up=K["G3D"].G3DLayerType,lp=(K["G3D"].M3DTileDataInfo,{name:"mapgis-3d-scene-layer",inject:["Cesium","vueCesium","viewer"],props:op(op({},Hh),{},{popupOptions:{type:Object,default:function(){return{popupType:"card"}}},dataStoreIp:{type:String,default:"192.168.96.101"},dataStorePort:{type:String,default:"9014"},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"},popupShowType:{type:String,default:"default"},popupOverlay:{type:Object,default:function(){}},highlightStyle:{type:String,default:"rgba(255,255,0,0.5)"},searchParams:{type:Object,default:function(){}}}),mixins:[as],components:{M3dMenus:uf},data:function(){return{title:"G3D场景图层",layerIds:this.parseLayers(),type:{terrain:up.g3dTerrainLayer,cache:up.g3dCacheLayer},menus:[{title:"静态单体化查询",icon:"mapgis-highlight",active:this.enablePopup},{title:"批量设置",icon:"mapgis-setting",active:!1},{title:"隐藏面板",icon:"mapgis-hide",active:!1}],layerTree:[{title:"地图场景",key:"地图场景默认键值",version:"",layerIndex:-99,icon:"mapgis-layer1",menu:"mapgis-down",children:[],scopedSlots:{icon:"custom",title:"title"}}],expandedKeys:[],searchValue:"",autoExpandParent:!0,expandItemKey:void 0,activeItemKey:void 0,gdbp:void 0,g3dLayerIndex:void 0,layerKey:void 0,selectLayerIndex:void 0,selectedKeys:[],version:void 0,ip:"localhost",port:"6163",domain:void 0,isolation:!1,featureposition:void 0,featureproperties:void 0,featurevisible:void 0,featureclickenable:this.enablePopup,iEnableIot:!1,layerVisibleArr:[]}},provide:function(){var t=this;return{get m3ds(){return t.m3ds}}},created:function(){},mounted:function(){this.mount()},destroyed:function(){this.unmount()},watch:{enablePopup:function(t){this.featureclickenable=t,t?this.bindPopupEvent():this.unbindPopupEvent()},opacity:function(t){var e=this;this.opacityLayersArray.length>0?(this.opacityLayersArray.forEach((function(t,n){"number"==typeof t&&(e.opacityLayersArray[n]=t.toString())})),this.changeLayerOpacity(t,this.opacityLayersArray)):this.changeLayerOpacity(t)},opacityLayersArray:function(t){this.changeLayerOpacity(this.opacity,t)},layers:function(t){this.layerIds=this.parseLayers(t),this.changeLayerVisible(this.layerIds)},layerIds:function(t){this.changeLayerVisible(this.layerIds)}},methods:{createCesiumObject:function(){return new Promise((function(t){t()}),(function(t){}))},onM3dLoaded:function(t){},mount:function(){var t=this,e=(this.vueIndex,this.vueKey,this.vueCesium,this.viewer),n=this.url,r=this.$props,i=(this.enablePopup,this.layerId,this.parseVersion(),this.parseServer()),o=i.ip,a=i.port,s=i.domain;this.ip=o,this.port=a,this.domain=s;var c=this.createCesiumObject(),u=this.parseLayers();u||(this.layerIds=[]),c.then((function(i){e.scene.layers.appendSceneLayer(n,op(op({},r),{},{loaded:function(t){},getDocLayerIndexes:t.getDocLayerIndexes}))})),e.isDestroyed()},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this.viewer,i=this.g3dLayerIndex;if(this.unbindPopupEvent(),this.cancelHighlight(),!("number"!==typeof i||i<0)){var o=r.scene.layers.getLayer(i);o.remove(!0),this.$emit("unload",{component:this}),t.G3DManager.deleteSource(e,n)}},getDocLayerIndexes:function(t,e){var n=this.vueIndex,r=this.vueKey,i=this.vueCesium,o=this.Cesium,a=this.viewer,s=this.enablePopup,c=this.ip,u=this.port,l=this.domain,h=this,d=this.parseLayers();h.g3dLayerIndex=t[0];var f=new o.PrimitiveCollection;i.G3DManager.addSource(r,n,e,{m3ds:[],layerId:n,g3dLayerIndex:h.g3dLayerIndex,collection:f,primitiveCollection:a.scene.primitives.add(f)});var p=a.scene.layers.getLayer(h.g3dLayerIndex);h.layerTree[0].version=p.version,h.version=p.version,h.layerTree[0].title=p.name;var m=p.getM3DLayerIndexes(),g=i.G3DManager.findSource(r,n);if(g&&g.options&&g.options.m3ds){var A=m.map((function(t,e){var n=t,r=p.getLayer("".concat(n));return r.readyPromise}));Promise.all(A).then((function(t){h.recordOriginStyle(),s&&h.bindPopupEvent(),h.m3ds=t,i.G3DManager.changeOptions(r,n,"m3ds",t);var e=[];t.forEach((function(t,n){var r=m[n],i=p.getLayerInfo(r),o=p.getLayer("".concat(r)),a=i.layerName,s=i.gdbpUrl,f=i.layerType;e.push("".concat(r)),h.layerTree[0].children.push({title:a,key:"".concat(r),version:p.version,layerIndex:r,layerType:f,ip:c,port:u,domain:l,gdbp:s,icon:"mapgis-layer",menu:"mapgis-down",scopedSlots:{icon:"custom",title:"title"}}),d?d.indexOf("".concat(n))>=0?o.show=!0:o.show=!1:o.show=!0})),Gh(t,(function(t){t.forEach((function(t,e){var n=h.layerTree[0].children;n[m[e]].subLayerType=Kh(t)}))})),h.$emit("loaded",{g3d:h,component:h}),h.parseTerrain(),h.parserVector(),h.resortLayers(),h.layerIds=h.layerIds.concat(e),h.opacityLayersArray.length>0?(h.opacityLayersArray.forEach((function(t,e){"number"==typeof t&&(h.opacityLayersArray[e]=t.toString())})),h.changeLayerOpacity(h.opacity,h.opacityLayersArray)):h.changeLayerOpacity(h.opacity)}))}},onExpand:function(t){this.expandedKeys=t,this.autoExpandParent=!1},getParentKey:function(t,e){for(var n,r=0;r<e.length;r++){var i=e[r];i.children&&(i.children.some((function(e){return e.key===t}))?n=i.key:this.getParentKey(t,i.children)&&(n=this.getParentKey(t,i.children)))}return n},onChange:function(t){var e=this,n=this.layerTree,r=[],i=function(t){for(var e=0;e<t.length;e++){var n=t[e],o=n.key;r.push({key:o,title:o}),n.children&&i(n.children)}};i(n);var o=t.target.value,a=r.map((function(t){return t.title.indexOf(o)>-1?e.getParentKey(t.key,n):null})).filter((function(t,e,n){return t&&n.indexOf(t)===e}));Object.assign(this,{expandedKeys:a,searchValue:o,autoExpandParent:!0})},onSelect:function(t,e){this.selectedKeys=t;var n=e.selectedNodes;if(n&&n.length>0){var r=n[0].data,i=r.props,o=i.layerIndex;this.highlightM3d(o)}},parseTerrain:function(){var t=this,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.viewer,o=this.g3dLayerIndex;if(!("number"!==typeof o||o<0)){var a=i.scene.layers.getLayer(o);if(a){var s=a.getTerrainLayerIndexes(),c=a.getTerrainLayers();s.forEach((function(e){var n=a.getLayerInfo(e),r=n.layerName,i=n.layerType;i="string"===typeof i?parseInt(i):i,i==up.g3dTerrainLayer&&t.layerTree[0].children.push({title:r,key:"".concat(e),layerIndex:e,layerType:i,subLayerType:"mapgis-terrain",icon:"mapgis-terrain",menu:"mapgis-down",scopedSlots:{icon:"custom",title:"title"}}),t.layerIds.push("".concat(e))})),r.G3DManager.changeOptions(e,n,"terrains",c)}}},parserVector:function(){var t=this,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.viewer,o=this.g3dLayerIndex;if(!("number"!==typeof o||o<0)){var a=i.scene.layers.getLayer(o);if(a){var s=a.getVectorLayerIndexes(),c=a.getVectorLayers();s.forEach((function(e){var n=a.getLayerInfo(e),r=n.layerName,i=n.layerType;i="string"===typeof i?parseInt(i):i,i==up.g3dVectorLayer&&t.layerTree[0].children.push({title:r,key:"".concat(e),layerIndex:e,layerType:i,subLayerType:"mapgis-vector",icon:"mapgis-vector",menu:"mapgis-down",scopedSlots:{icon:"custom",title:"title"}}),t.layerIds.push("".concat(e))})),r.G3DManager.changeOptions(e,n,"vectors",c)}}},resortLayers:function(){var t=this,e=t.layerTree[0].children,n=e.sort((function(t,e){return t.layerIndex-e.layerIndex}));console.log("news",n[1])},parseServer:function(t){t=t||this.url;var e=new URL(t);return this.ip=e.hostname,this.port=e.port,this.domain=e.origin,{ip:this.ip,port:this.port,domain:this.domain}},parseVersion:function(t){t=t||this.url;var e=new RegExp("/igs/rest/g3d/"),n=new RegExp("/SceneServer"),r=t.search(e),i=t.search(n);return this.version=r>=0?"1.0":i>=0?"2.0":"1.0",this.version},parseName:function(t){var e,n=t._gdbpUrl,r=new RegExp(/\\.*\.mcj/g),i=n.match(r);if(i&&i.length>0){var o=i[0],a=o.split("\\"),s=a[a.length-1],c=s.split(".mcj");e=c&&c.length>0?c[0]:"未命名"}return e},parseLayers:function(t){if(t=t||this.layers,!t)return[];var e=new RegExp(/show:/i);e.test(t)||console.warn("layers格式错误,格式为show:0,1,2");var n=t.replace(/show:/i,""),r=n.split(","),i=r.map((function(t){return t}));return i},changeLayerOpacity:function(t,e){e=e||this.layerIds;var n=this.g3dLayerIndex,r=this.viewer;if(!("number"!==typeof n||n<0)){var i=r.scene.layers.getLayer(n),o=i.getAllLayerIndexes();o.forEach((function(n){var r=i.getLayer(n);e.indexOf("".concat(n))>=0&&r&&i.translucencyByLayerIndex(n,t)}))}},changeLayerVisible:function(t){var e=this;t=t||this.layerIds;var n=this.g3dLayerIndex,r=this.viewer;if(!("number"!==typeof n||n<0)&&!("number"!==typeof n||n<0)){var i=r.scene.layers.getLayer(n),o=i.getAllLayerIndexes();this.layerVisibleArr=[],o.forEach((function(n){var r=i.getLayer(n);if(t.indexOf("".concat(n))>=0)r&&(r.show=!0,i.showByLayerIndex(n,!0),e.layerVisibleArr.push(n));else if(r){var o;r.show=!1,i.showByLayerIndex(n,!1);var a=null===(o=e.prePickFeature)||void 0===o?void 0:o.index;n===a&&(e.featureproperties=void 0,e.featurevisible=!1,e.restoreHighlight())}}))}},handleExpandItemKey:function(t){t==this.expandItemKey?this.expandItemKey=void 0:this.expandItemKey=t},handleActiveItemKey:function(t){var e=t.title,n=t.version,r=t.gdbp,i=t.ip,o=t.port,a=t.domain,s=t.layerIndex,c=t.key;this.title=e,this.gdbp=r,this.version=n,this.ip=i,this.port=o,this.domain=a,this.selectLayerIndex=s,this.layerKey=c,this.$refs.card&&this.$refs.card.togglePanel()},recordOriginStyle:function(){var t=this.g3dLayerIndex,e=this.viewer,n=this.vueKey,r=this.vueIndex,i=this.vueCesium;if(!("number"!==typeof t||t<0)){var o=e.scene.layers.getLayer(t),a=o.getM3DLayerIndexes(),s=[];a.forEach((function(t){var e=o.getLayer(t);e&&s.push(e.style)})),i.G3DManager.changeOptions(n,r,"originStyles",s)}},restoreOriginStyle:function(){var t=this,e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.g3dLayerIndex,o=this.viewer,a=r.G3DManager.findSource(e,n);if(!("number"!==typeof i||i<0)){var s=o.scene.layers.getLayer(i);s&&a&&a.options.originStyles&&a.options.originStyles.forEach((function(e,n){var r=s.getLayer(String(n));r&&s.translucencyByLayerIndex(n.toString(),t.opacity)}))}},restoreOrigindVisible:function(){var t=this.vueKey,e=this.vueIndex,n=this.vueCesium,r=this.g3dLayerIndex,i=this.viewer,o=n.G3DManager.findSource(t,e);if(!("number"!==typeof r||r<0)){var a=i.scene.layers.getLayer(r);o&&o.options.originStyles&&o.options.originStyles.forEach((function(t,e){var n=a.getLayer(String(e));n&&(n.show=!0)}))}},changeIsolation:function(t){var e=t.key,n=this;this.layerKey!=e?(this.layerKey=e,this.isolation=!0,window.setTimeout((function(){return n.enableIsolation(t)}),10)):(this.layerKey=void 0,this.isolation=!1,window.setTimeout((function(){return n.disableIsolation()}),10))},enableIsolation:function(t){var e=this.g3dLayerIndex,n=this.viewer,r=t.layerIndex;if(!("number"!==typeof e||e<0)){var i=n.scene.layers.getLayer(e),o=i.getM3DLayerIndexes();this.featurevisible=!1,this.selectedKeys=["".concat(r)],o.forEach((function(t){var e=i.getLayer(t);e&&(t!=r?e.show=!1:(e.show=!0,n.camera.flyToBoundingSphere(e.boundingSphere)))}));var a=this.layerTree[0].children.map((function(t){return t.layerIndex==r?t.disabled=!1:t.disabled=!0,t}));this.layerTree[0].children.splice(0,1,a[0])}},disableIsolation:function(){var t=this.layerTree[0].children.map((function(t){return t.disabled=!1,t}));this.layerTree[0].children.splice(0,1,t[0]),this.restoreOrigindVisible()},handleMenu:function(t){"隐藏面板"==t?this.$refs.card&&this.$refs.card.hide():"静态单体化查询"==t&&(this.menus[0].active?(this.menus[0].active=!1,this.unbindPopupEvent()):(this.menus[0].active=!0,this.bindPopupEvent()))},pickFeature:function(t){var e=t.movement,n=t.pickedFeature,r=this,i=this.g3dLayerIndex,o=this.viewer;if(!n||!e||n&&"Cesium3DTileFeature"!==n.constructor.name)r.iClickVisible=!1;else if(!("number"!==typeof i||i<0)){var a=o.scene.layers.getLayer(i);if(n._content||!n.primitive){var s=n._content._tileset._layerIndex,c=a.getLayer("".concat(s));if(n.tileset===c&&this.layerVisibleArr.includes(s)){r.selectLayerIndex=s,r.selectedKeys=["".concat(s)];var u=a.getLayerInfo(s),l=u.children,h=!!(l&&l.length>0);h?this.queryDynamic(e,s):this.queryStatic(e)}}else this.featurevisible=!0}},cancelFeature:function(){this.$emit("pick-info",{}),this.cancelHighlight()},cancelHighlight:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex;"default"===this.popupShowType?this.featurevisible=!1:"right"===this.popupShowType&&this.popupOverlay&&this.popupOverlay.setContent(null);var r=t.G3DManager.findSource(e,n);if(r&&r.options){var i=r.options.primitiveCollection,o=r.options.feature;o&&i.remove(o)}this.restoreHighlight(),this.restoreM3d()},bindPopupEvent:function(){var t,e=this.vueKey,n=this.vueIndex,r=this.enablePopup;this.enableTips;r&&(t=this.$_bindClickEvent(this.pickFeature,this.cancelFeature,!0,!1)),vueCesium.G3DManager.changeOptions(e,n,"clickhandler",t)},unbindPopupEvent:function(){var t=this.vueKey,e=this.vueIndex;this.featurevisible=!1,this.restoreHighlight(),this.restoreM3d();var n=vueCesium.G3DManager.findSource(t,e);n&&n.options.clickhandler&&(n.options.clickhandler.destroy(),vueCesium.G3DManager.changeOptions(t,e,"clickhandler",void 0))},restoreM3d:function(){this.restoreOriginStyle()},highlightM3d:function(t){var e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.Cesium,o=this.viewer;this.selectLayerIndex=t;var a=o.scene.layers.getLayer(this.g3dLayerIndex),s=a.getLayer("".concat(t));s&&(this.restoreM3d(),r.G3DManager.changeOptions(e,n,"pickerTileset",s),r.G3DManager.changeOptions(e,n,"pickerTilesetStyle",s.style),s.style=new i.Cesium3DTileStyle({color:this.highlightStyle}))},queryDynamic:function(t,e){var n=this;n.featureproperties=void 0;var r=this.Cesium,i=this.viewer,o=this.g3dLayerIndex,a=this.vueKey,s=this.vueIndex,c=this.vueCesium,u=c.G3DManager.findSource(a,s);if(u&&u.options){var l=u.options.primitiveCollection,h=i.getCartesian3Position(t.position);if(r.defined(h)){var d=r.Cartographic.fromCartesian(h),f=r.Math.toDegrees(d.longitude),p=r.Math.toDegrees(d.latitude),m=d.height,g={x:f,y:p,z:m};if("number"!==typeof o||o<0)return;var A=i.scene.layers.getLayer(o);A.getM3DLayerIndexes();if(void 0==e||e<0)return void(n.featurevisible=!1);"string"===typeof e&&(e=parseInt(e));var v=p.toString().split(".")[1],y=Number("0.".concat(v))/Number(v);A.Monomerization((function(t){n.featurevisible=!1;var e=c.G3DManager.findSource(a,s);if(e){var r=e.options.feature;l.remove(r)}if(t&&t.length>0){var i=t[0];n.featureproperties=i.property,n.featureproperties&&Object.keys(n.featureproperties).length>0?"default"===n.popupShowType?(n.featurevisible=!0,n.featureposition={longitude:f,latitude:p,height:m}):n.popupOverlay&&n.popupOverlay.setContent(n.featureproperties):n.popupOverlay&&n.popupOverlay.setContent(null),i.geometryInstances.geometry._extrudedHeight=0,i.geometryInstances.geometry._height=1e5,l.add(i),c.G3DManager.changeOptions(a,s,"feature",i)}}),{position:new r.Cartesian3(g.x,g.y,g.z),tolerance:y,layerIndex:String(e)})}}},queryStatic:function(){var t=rp(ep().mark((function t(e){var n,r,i,o,a,s,c,u,l,h,d,f,p,m,g,A,v,y,b,w,_,x,S,C,M,L,T,k,E,O,P,B,I,D,N,F;return ep().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=this,r=this.Cesium,i=this.viewer,o=this.version,a=this.g3dLayerIndex,this.popupOptions,s=this.highlightStyle,c=this.popupShowType,this.vueKey,this.vueIndex,this.vueCesium,u=i.scene,l=new r.Ray,h=new r.Cartesian3,d={},e){t.next=9;break}return t.abrupt("return");case 9:if(u.mode===r.SceneMode.MORPHING){t.next=70;break}if(f=e.position||e.endPosition,p=i.getCartesian3Position(f),m=u.camera.getPickRay(f,l),g=u.globe.pick(m,u,h),A=i.scene.pick(e.position),A){t.next=19;break}return n.clickvisible=!1,n.featurevisible=!1,t.abrupt("return");case 19:if(w=r.Cartographic.fromCartesian(p),v=r.Math.toDegrees(w.longitude),y=r.Math.toDegrees(w.latitude),b=w.height,!p&&!g){t.next=68;break}if(_=i.scene.layers.getLayer(a),x=A._content._tileset._layerIndex,S=_.getLayer("".concat(x)),A.tileset===S){t.next=29;break}return t.abrupt("return");case 29:if(n.featureproperties=void 0,n.featurevisible=!1,n.restoreHighlight(),this.prePickFeature={feature:A,color:A.color,index:A._content._tileset._layerIndex},n.selectLayerIndex=x,n.selectedKeys=["".concat(x)],C=_.getLayerInfo(x),M=C.layerName,L=C.gdbpUrl,"1.0"!=o&&"0.0"!=o){t.next=52;break}if(T={},k=A.getProperty("name"),!k||""===k){t.next=47;break}return E=k.split("_"),O=E[E.length-1],d.id=O,t.next=46,this.getFeaturePorpertiesById(O,M);case 46:T=t.sent;case 47:Object.keys(T).length>0?(n.showPopup&&(n.featureproperties=T,n.iClickFeatures=[{properties:T}]),d.properties=T):(n.showPopup&&(n.featureproperties={layerName:M,gdbpUrl:L},n.iClickFeatures=[{properties:{layerName:M,gdbpUrl:L}}]),d.properties={layerName:M,gdbpUrl:L}),A.color=r.Color.fromCssColorString(s),"right"===c&&n.popupOverlay&&n.popupOverlay.setContent(n.featureproperties),t.next=62;break;case 52:if(!("number"!==typeof a||a<0)){t.next=54;break}return t.abrupt("return");case 54:return P=S.version.tilesetVersion,"2.1"===P?(B=A.getProperty("tid"),I=[["${tid} === ${id}",s]]):(B=A.getProperty("OID"),I=[["${OID} === ${id}",s]]),d.id=B,S.style=new r.Cesium3DTileStyle({defines:{id:B},color:{conditions:I}}),t.next=60,this.getFeaturePorpertiesById(B,M);case 60:D=t.sent,Object.keys(D).length>0?(n.showPopup&&(n.featureproperties=D,n.iClickFeatures=[{properties20:D}]),d.properties=D):(S._useRawSaveAtt&&r.defined(A)?(N={},F=A.getPropertyNames(),F.forEach((function(t){N[t]=A.getProperty(t)})),n.showPopup&&(n.featureproperties=N,n.iClickFeatures=[{properties:N}]),d.properties=N):S.queryAttributes(B).then((function(t){t=t||{},n.showPopup&&(n.featureproperties=t,n.iClickFeatures=[{properties:t}]),d.properties=t})),"right"===c&&n.popupOverlay&&n.popupOverlay.setContent(n.featureproperties));case 62:n.showPopup&&n.featureclickenable&&n.featureproperties&&Object.keys(n.featureproperties).length>0&&"default"===n.popupShowType&&(n.featurevisible=!0,n.featureposition={longitude:v,latitude:y,height:b}),d.position={longitude:v,latitude:y,height:b},d.layerId=n.vueIndex,n.$emit("pick-info",d),t.next=70;break;case 68:n.clickvisible=!1,"right"===c&&n.popupOverlay&&n.popupOverlay.setContent(null);case 70:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),restoreHighlight:function(){var t=this.g3dLayerIndex,e=this.viewer;if(!("number"!==typeof t||t<0)){var n=e.scene.layers.getLayer(t);this.prePickFeature&&(this.prePickFeature.feature.color=this.prePickFeature.color,this.prePickFeature=void 0);var r=n.getM3DLayerIndexes();r.forEach((function(t){var e=n.getLayer(t);e&&(e.style=void 0)}))}},restoreBeforeM3d:function(){if(this.prePickFeature){var t=this.viewer.scene.layers.getLayer(this.g3dLayerIndex);t.translucencyByLayerIndex(this.prePickFeature.index,this.opacity)}},handleDynamicQuery:function(){this.featurevisible=!1,this.featureclickenable=!1},handleBackMain:function(){this.featureclickenable=this.enablePopup},projectScreen:function(t){this.$emit("project-screen",t)},getFeaturePorpertiesById:function(){var t=rp(ep().mark((function t(e,n){var r,i,o,a,s,c,u,l,h,d,f,p,m,g,A,v,y,b;return ep().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r={},!this.searchParams){t.next=9;break}if(i=this.searchParams,o=i.domain,a=i.serverName,s=i.layerIndex,c=i.serverType,u=i.mapList,l=this.searchParams.gdbp,"IGSMapImage"===c&&n&&u&&u.length>0)for(h=0;h<u.length;h++)d=u[h],n.includes(d.LayerName)&&(l=d.URL);return t.next=7,Zf.query({domain:o,f:"json",IncludeAttribute:!0,IncludeGeometry:!1,IncludeWebGraphic:!1,where:null,gdbp:l,docName:a,layerIdxs:s,rtnLabel:!1,objectIds:e,requestType:"POST"},!1,!0);case 7:if(f=t.sent,f&&f.SFEleArray)for(p=f.AttStruct,m=f.SFEleArray,g=p.FldAlias,A=p.FldName,v=m[0].AttValue,y=0;y<v.length;y++)b=g[y]?g[y]:A[y],r[b]=v[y];case 9:return t.abrupt("return",r);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}()}}),hp=lp,dp=je(hp,jh,Rh,!1,null,null,null),fp=dp.exports,pp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isVoxelLayer?[n("VoxelLayer",t._b({},"VoxelLayer",t.$props,!1))]:[t.modelSwitchVisible?n("Popup",{attrs:{visible:t.modelSwitchVisible,position:t.iClickPosition,forceRender:""}},[n("mapgis-ui-popup-content",{staticClass:"mapgis-multi-model-status-popup"},[n("modelSwitchPopup",{attrs:{tile:t.tile},on:{handleModel:t.handleModel}})],1)],1):"default"===t.popupShowType&&t.featureposition?n("mapgis-3d-feature-popup",t._b({attrs:{position:t.featureposition,popupOptions:t.popupOptions,componentWidth:t.popupWidth}},"mapgis-3d-feature-popup",t.popupConfig,!1),[n(t.popupComponent,t._b({tag:"component",attrs:{properties:t.featureproperties,dataStoreIp:t.dataStoreIp,dataStorePort:t.dataStorePort,dataStoreDataset:t.dataStoreDataset}},"component",t.popupConfig,!1))],1):t._e()]],2)},mp=[],gp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ysc-dynamic-layer"},[n("span",{staticStyle:{position:"relative",left:"0px",top:"-12px","border-bottom":"1px solid rgba","font-size":"14px",color:"#a5a5a5"}},[t._v("请选择多模态数据")]),n("mapgis-ui-col",{staticClass:"axis"},[n("mapgis-ui-radio-group",{attrs:{size:"small"},model:{value:t.typeValue,callback:function(e){t.typeValue=e},expression:"typeValue"}},t._l(t.modelTypeList,(function(e,r){return n("mapgis-ui-radio",{key:r,attrs:{value:r},on:{click:function(e){return t.handleChange(r)}}},[t._v("\n "+t._s(t.modelTypeData[e])+"\n ")])})),1)],1)],1)},Ap=[],vp={name:"mapgis-3d-popupDyn",props:{tile:{type:Object,default:function(){}}},mounted:function(){},components:{},watch:{tile:{immediate:!0,handler:function(t){this.tile&&this.getModelType()}}},data:function(){return{modelTypeList:[],typeValue:"",modelTypeData:{TiltPhotography:"倾斜摄影",PointCloud:"点云数据",Model:"模型数据"}}},methods:{getModelType:function(){var t=this;this.$nextTick((function(){if(t.tile&&t.tile.tileDataInfoList){t.modelTypeList=[];var e=t.tile.tileDataInfoList;e.forEach((function(e){t.modelTypeList.push(e.dataType)}))}}))},handleChange:function(t){this.$emit("handleModel",t)}},destroyed:function(){this.modelTypeList=[]}},yp=vp,bp=(n("38bb"),je(yp,gp,Ap,!1,null,"30ddf4e6",null)),wp=bp.exports,_p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[t.featureposition?n("mapgis-3d-feature-popup",{attrs:{position:t.featureposition,popupOptions:t.popupOptions}},[n(t.popupComponent,t._b({tag:"component",attrs:{properties:t.featureproperties}},"component",t.popupConfig,!1))],1):t._e()],1)},xp=[];function Sp(t){return Sp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sp(t)}function Cp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cp(Object(n),!0).forEach((function(e){Lp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Lp(t,e,n){return(e=Tp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tp(t){var e=kp(t,"string");return"symbol"==Sp(e)?e:e+""}function kp(t,e){if("object"!=Sp(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Sp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ep={name:"mapgis-3d-voxel-layer",inject:["Cesium","vueCesium","viewer"],mixins:[as],props:Mp(Mp({},vh),{},{popupOptions:{type:Object,default:function(){return{popupType:"card"}}}}),data:function(){return{baseDate:new Date("0001-01-01T00:00:00Z").getTime(),featureposition:void 0,featureproperties:void 0,test:0}},watch:{show:function(){this.changeShow()}},mounted:function(){this.mount()},destroyed:function(){this.unmount()},methods:{mount:function(){this.initQuery()},unmount:function(){this.stopQuery()},formatter:function(t,e){var n=new Date(t),r=n.getFullYear(),i=n.getMonth()+1,o=n.getDate(),a=n.getHours(),s=n.getMinutes(),c=n.getSeconds();switch(e){case"years":return"".concat(r);case"month":return"".concat(r,"-").concat(i<10?"0".concat(i):i);case"weeks":case"days":return"".concat(r,"-").concat(i<10?"0".concat(i):i,"-").concat(o<10?"0".concat(o):o);case"hours":return"".concat(r,"-").concat(i<10?"0".concat(i):i,"-").concat(o<10?"0".concat(o):o," ").concat(a<10?"0".concat(a):a);case"minutes":return"".concat(r,"-").concat(i<10?"0".concat(i):i,"-").concat(o<10?"0".concat(o):o," ").concat(a<10?"0".concat(a):a,":").concat(s<10?"0".concat(s):s);case"seconds":return"".concat(r,"-").concat(i<10?"0".concat(i):i,"-").concat(o<10?"0".concat(o):o," ").concat(a<10?"0".concat(a):a,":").concat(s<10?"0".concat(s):s,":").concat(c<10?"0".concat(c):c);default:break}},initQuery:function(){var t=this,e=this.viewer,n=this.Cesium;this.handler=new n.ScreenSpaceEventHandler(e.scene.canvas),this.handler.setInputAction((function(r){var i=e.scene.pickVoxel(r.position);if(i instanceof n.VoxelCell){var o=i.metadata;o&&(t.featureposition={cartesian:e.scene.pickPosition(r.position)},o.time=t.formatter(o.time,"hours"),t.featureproperties=o)}}),n.ScreenSpaceEventType.LEFT_CLICK)},stopQuery:function(){this.featureposition=void 0,this.handler&&this.handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK)},changeShow:function(){this.show?this.initQuery():this.stopQuery()}}},Op=Ep,Pp=je(Op,_p,xp,!1,null,null,null),Bp=Pp.exports;function Ip(t){return Ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ip(t)}function Dp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Dp=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Ip(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Ip(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Np(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Fp(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Np(o,r,i,a,s,"next",t)}function s(t){Np(o,r,i,a,s,"throw",t)}a(void 0)}))}}function jp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jp(Object(n),!0).forEach((function(e){Hp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hp(t,e,n){return(e=zp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zp(t){var e=Up(t,"string");return"symbol"==Ip(e)?e:e+""}function Up(t,e){if("object"!=Ip(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ip(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Vp=K["G3D"].M3DTileDataInfo,Yp={name:"mapgis-3d-m3d-layer",inject:["Cesium","vueCesium","viewer"],mixins:[as],props:Rp(Rp({},vh),{},{popupShowType:{type:String,default:"default"},popupOverlay:{type:Object,default:function(){}},dataStoreIp:{type:String,default:"192.168.96.101"},dataStorePort:{type:String,default:"9014"},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"},popupOptions:{type:Object,default:function(){return{popupType:"card"}}},searchParams:{type:Object,default:function(){}}}),components:{modelSwitchPopup:wp,Popup:Ts,VoxelLayer:Bp},data:function(){return{layerIndex:void 0,layerList:void 0,version:void 0,modelSwitchVisible:!1,tileIndex:void 0,tile:{},iEnableIot:!1,featureposition:void 0,featureproperties:void 0,isVoxelLayer:!1}},created:function(){},mounted:function(){this.layerList=this.parseLayers(this.layers),this.mount()},destroyed:function(){this.unmount()},watch:{tileIndex:function(t){this.tile.tileIndex=t},url:function(t){this.unmount(),this.mount()},layers:function(t){this.initial||(this.layerList=this.parseLayers(t),this.changeLayerVisible(this.layerList))},show:function(t){this.initial||this.changeShow(t)},opacity:function(t){this.initial||t>=0&&t<=1&&this.changeOpacity(t)},enablePopup:function(t){t?this.bindPopupEvent():this.unbindPopupEvent()},enableIot:function(t){this.iEnableIot=t}},methods:{handleModel:function(t){var e=this;e.tileIndex=t,e.modelSwitchVisible=!1},createCesiumObject:function(){var t=this,e=this,n=(this.vueCesium,this.viewer),r=this.url;return new Promise((function(i){var o=t.getOptions();o.loaded=function(){i({layerIndex:e.layerIndex})},o.errorCallback=function(){e.$emit("unLoaded")},e.layerIndex=n.scene.layers.appendM3DLayer(r,o)}),(function(t){}))},getOptions:function(){this.$props;var t={},e=Rp(Rp(Rp({},this.$props),this.$props.extensions),this.$options.propsData);return Object.keys(e).forEach((function(n){t[n]=e[n]})),t},parseM3dVersion:function(){},mount:function(){var t=this,e=this,n=this.viewer,r=this.vueIndex,i=this.vueKey,o=this.vueCesium,a=(this.$props,this.url),s=this.opacity;if(!n.isDestroyed()){var c=this.createCesiumObject();c.then((function(c){var u=c.layerIndex;if(u>=0){var l;e.layerIndex=u,l=n.scene.layers.m3dLayersMap.get(u),l.readyPromise.then((function(){var e=l.layerinfo;if(e&&e.length){var n=e[0]||{},i=n.voxelInfo;i&&(t.isVoxelLayer=!0,l.heightScale=1e3,t.$emit("handelVoxel",r))}})),l.style=new Cesium.Cesium3DTileStyle({color:"undefined === ${COLOR}.r ? color('white',"+s+"):rgba(${COLOR}.r *255,${COLOR}.g* 255,${COLOR}.b *255, "+s+")"});var h=[l];e.loopM3d(h,"2.0"),o.M3DIgsManager.addSource(i,r,h,{version:"2.0",url:a}),e.$emit("loaded",{tileset:l,m3ds:h}),e.bindPopupEvent()}}))}},unmount:function(){var t=this.vueCesium,e=this.vueKey,n=this.vueIndex;this.removeLayer(),this.unbindPopupEvent(),this.$emit("unload",{component:this}),t.M3DIgsManager.deleteSource(e,n)},removeLayer:function(){this.url;var t=this.layerIndex,e=this.viewer;if(void 0!==t){var n=e.scene.layers.getLayer(t);n&&e.scene.layers.m3dLayersMap.length>0&&e.scene.layers.removeM3DLayerByID(t)}},unbindSource:function(){var t=this.viewer,e=this.vueCesium,n=this.vueKey,r=this.vueIndex,i=e.M3DIgsManager.findSource(n,r);if(i){var o=i.source;!t.isDestroyed()&&o&&o.forEach((function(t){t.destroy()}))}},bindPopupEvent:function(){var t,e,n=this.vueKey,r=this.vueIndex,i=this.vueCesium,o=this.enablePopup,a=this.enableTips,s=this.enableModelSwitch;(o||s)&&(t=this.$_bindClickEvent(this.pickFeature,this.cancelFeature,!0,!1)),a&&(e=this.$_bindHoverEvent(this.pickFeature)),i.M3DIgsManager.changeOptions(n,r,"clickhandler",t),i.M3DIgsManager.changeOptions(n,r,"hoverhandler",e)},unbindPopupEvent:function(){this.Cesium;var t=this.vueCesium,e=this.vueKey,n=this.vueIndex,r=this.viewer,i=(this.highlightStyle,this.layerIndex),o=t.M3DIgsManager.findSource(e,n);o&&o.options&&(o.options.clickhandler&&o.options.clickhandler.destroy(),o.options.hoverhandler&&o.options.hoverhandler.destroy()),this.popupOverlay&&this.popupOverlay.setContent(null);var a=r.scene.layers.getM3DLayer(i);a&&(a.style=void 0),this.featureposition=void 0,this.featureproperties=void 0},pickFeature:function(){var t=Fp(Dp().mark((function t(e){var n,r,i,o,a,s,c,u,l,h,d,f,p,m,g,A,v,y,b,w,_,x;return Dp().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=this,r=e.movement,i=this.popupOptions,o=this.highlightStyle,a=this.vueKey,s=this.vueIndex,c=this.viewer,u=this.vueCesium,l=this.Cesium,h=this.layerIndex,d={},n.modelSwitchVisible=!1,f=c.scene.pick(r.position),!n.enableModelSwitch){t.next=12;break}return n.tile=f.content.tile.searchMultimodalTile(),n.modelSwitchVisible=!0,t.abrupt("return");case 12:if(p=c.scene.layers.getM3DLayer(h),f.tileset===p){t.next=15;break}return t.abrupt("return");case 15:return u.M3DIgsManager.changeOptions(a,s,"pick",p),u.M3DIgsManager.changeOptions(a,s,"pickStyle",p.pickedColor||l.Color.fromCssColorString(o)),m=p.version,"2.1"===m?(g=f.getProperty("tid"),A=[["${tid} === ${id}",o]]):(g=f.getProperty("OID"),A=[["${OID} === ${id}",o]]),d.id=g,p.style=new l.Cesium3DTileStyle({defines:{id:g},color:{conditions:A}}),v=i?i.title:void 0,t.next=24,this.getFeaturePorpertiesById(g);case 24:y=t.sent,Object.keys(y).length>0?(n.showPopup&&("default"===this.popupShowType?n.featureproperties=y:(b={},b=y[v]?Rp({title:y[v]},y):Rp({},y),n.popupOverlay&&n.popupOverlay.setContent(b))),d.properties=y):p._useRawSaveAtt&&l.defined(f)?(w={},_=f.getPropertyNames(),_.forEach((function(t){w[t]=f.getProperty(t)})),n.showPopup&&("default"===this.popupShowType?n.featureproperties=w:(x={},x=w[v]?Rp({title:w[v]},w):Rp({},w),n.popupOverlay&&n.popupOverlay.setContent(x))),d.properties=w):p.queryAttributes(g).then((function(t){if(t=t||{},n.showPopup)if("default"===this.popupShowType)n.featureproperties=t;else{var e={};e=t[v]?Rp({title:t[v]},t):Rp({},t),n.popupOverlay&&n.popupOverlay.setContent(e)}d.properties=t})),"default"===this.popupShowType&&n.iClickPosition&&(n.showPopup&&(n.featureposition=n.iClickPosition),d.position=n.iClickPosition),d.layerId=n.vueIndex,n.$emit("pick-info",d);case 29:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),cancelFeature:function(t){t.movement,this.version;var e=this.layerIndex,n=this.viewer,r=(this.Cesium,this.highlightStyle,n.scene.layers.getM3DLayer(e));r.style=void 0,this.featureposition=void 0,this.featureproperties=void 0,this.popupOverlay&&this.popupOverlay.setContent(null),this.$emit("pick-info",{})},changeShow:function(t){var e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=r.M3DIgsManager.findSource(e,n);if(i){var o=i.source;o&&o.forEach((function(e){return e.show=t}))}this.layerList=this.parseLayers(),this.changeLayerVisible(this.layerList)},changeOpacity:function(t){var e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.Cesium,o=r.M3DIgsManager.findSource(e,n);if(o){var a=o.source;if(!a)return;a.forEach((function(e){e.style=new i.Cesium3DTileStyle({color:"undefined === ${COLOR}.r ? color('white',"+t+"):rgba(${COLOR}.r *255,${COLOR}.g* 255,${COLOR}.b *255, "+t+")"})}))}},checkType:function(t,e){var n=this,r=zh.UnKnow;if(!t._root)return r;var i=t.root,o=i.tileset._version,a=i.children;if("0.0"==o||"1.0"==o){if(!a||a.length<=0)return r;a.forEach((function(t){var i=n.checkTypeNode(t,o,e);r=i||r}))}else if("2.0"==o){if(!a||a.length<=0)return r;a.forEach((function(t){var i=n.checkTypeNode(t,o,e);r=i||r}))}return r},checkTypeNode:function(t,e,n){var r,i=this;if(!t)return r;if(t._content){var o=t._content._dataType;if(o>=0){if("0.0"==e||"1.0"==e)switch(o){case Uh.Model:r=zh.Model;break;case Uh.Instance:r=zh.Instance;break;case Uh.CloudPoint:r=zh.CloudPoint;break}else if("2.0"==e)switch(o){case Vp.Model:r=zh.Model;break;case Vp.Vector:r=zh.Instance;break;case Vp.CloudPoint:r=zh.CloudPoint;break}return n&&n(r),r}}return t.children.forEach((function(t){var o=i.checkTypeNode(t,e,n);r=o||r})),r},loopM3d:function(t,e){var n=this,r=this.vueKey,i=this.vueIndex,o=this.vueCesium,a=this.Cesium,s=this.opacity,c=this.url,u=function(e){l&&(window.clearInterval(l),l=void 0,t.forEach((function(t){var r=n.checkType(t);switch(t.type=r||e,r){case zh.Model:case zh.Instance:t.style=new a.Cesium3DTileStyle({color:"undefined === ${COLOR}.r ? color('white',"+s+"):rgba(${COLOR}.r *255,${COLOR}.g* 255,${COLOR}.b *255, "+s+")"});break;case zh.CloudPoint:break;case zh.UnKnow:break}})),o.M3DIgsManager.addSource(r,i,t,{url:c}))},l=window.setInterval((function(){t.forEach((function(t){n.checkType(t,u)}))}),100)},parseLayers:function(t){if(t=t||this.layers,t){var e=new RegExp(/layers=show:/i);e.test(t)||console.warn("layers格式错误,格式为layers=show:0,1,2");var n=t.replace(/layers=show:/i,""),r=n.split(","),i=r.map((function(t){return parseInt(t)}));return i}},changeLayerVisible:function(t){t=t||this.layerList;var e=this.vueKey,n=this.vueIndex,r=this.show,i=this.vueCesium,o=i.M3DIgsManager.findSource(e,n);if(o){var a=o.source;if(!a)return;a.forEach((function(e){t?(e.show=!0,t.indexOf(e.layerIndex||e._layerIndex)>=0||(e.show=!1)):e.show=r}))}},getFeaturePorpertiesById:function(){var t=Fp(Dp().mark((function t(e){var n,r,i,o,a,s,c,u,l,h,d,f,p,m;return Dp().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n={},!this.searchParams){t.next=7;break}return r=this.searchParams,i=r.domain,o=r.serverName,a=r.layerIndex,s=r.gdbp,t.next=5,Zf.query({domain:i,f:"json",IncludeAttribute:!0,IncludeGeometry:!1,IncludeWebGraphic:!1,where:null,gdbp:s,docName:o,layerIdxs:a,rtnLabel:!1,objectIds:e,requestType:"POST"},!1,!0);case 5:if(c=t.sent,c&&c.SFEleArray)for(u=c.AttStruct,l=c.SFEleArray,h=u.FldAlias,d=u.FldName,f=l[0].AttValue,p=0;p<f.length;p++)m=h[p]?h[p]:d[p],n[m]=f[p];case 7:return t.abrupt("return",n);case 8:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}},Gp=Yp,Qp=je(Gp,pp,mp,!1,null,null,null),Wp=Qp.exports,Kp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.featureposition?n("mapgis-3d-feature-popup",t._b({attrs:{position:t.featureposition,popupOptions:t.popupOptions,componentWidth:t.popupWidth}},"mapgis-3d-feature-popup",t.popupConfig,!1),[n(t.popupComponent,t._b({tag:"component",attrs:{properties:t.featureproperties,dataStoreIp:t.dataStoreIp,dataStorePort:t.dataStorePort,dataStoreDataset:t.dataStoreDataset}},"component",t.popupConfig,!1))],1):t._e()},qp=[];function Xp(t){return Xp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xp(t)}function $p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$p(Object(n),!0).forEach((function(e){Zp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zp(t,e,n){return(e=tm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tm(t){var e=em(t,"string");return"symbol"==Xp(e)?e:e+""}function em(t,e){if("object"!=Xp(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var nm,rm,im={name:"mapgis-3d-3dtiles-layer",mixins:[Ch,as],data:function(){return{layerIndex:void 0,featureposition:void 0,featureproperties:void 0}},watch:{opacity:function(t){t>=0&&t<=1&&this.changeOpacity(t)},enablePopup:function(t){t?this.bindPopupEvent():this.unbindPopupEvent()},show:function(t){var e=this.viewer,n=e.scene.layers.getCesium3DTilesetLayer(this.layerIndex);n.show=t}},methods:{createCesiumObject:function(){var t=this,e=this.viewer,n=this.Cesium;return new Promise((function(r){var i,o,a=t.$props,s=t.url,c=t.token,u=a.headers,l=t.getOptions();l.loaded=t.onTilesetLoaded,l.errorCallback=t.onTilesetLoadedError,o=u?new n.Resource({url:s,headers:u}):(c&&c.value,s),i=e.scene.layers.appendCesium3DTilesetLayer(o,l),t.layerIndex=i,r({layerIndex:i})}),(function(t){}))},getOptions:function(){this.$props;var t={},e=Jp(Jp(Jp({},this.$props),this.$props.extensions),this.$options.propsData);return Object.keys(e).forEach((function(n){"extensions"!==n&&(t[n]=e[n])})),t},changeOpacity:function(t){var e=this.vueKey,n=this.vueIndex,r=this.vueCesium,i=this.Cesium,o=r.Tileset3DManager.findSource(e,n);if(o){var a=o.source;if(!a)return;a.style=new i.Cesium3DTileStyle({color:"undefined === ${COLOR}.r ? color('white',"+t+"):rgba(${COLOR}.r *255,${COLOR}.g* 255,${COLOR}.b *255, "+t+")"})}},onTilesetLoaded:function(t){var e=this,n=this.vueIndex,r=this.vueKey,i=this.vueCesium,o=this.Cesium,a=this.url,s=this.opacity;if(t){t.style=new o.Cesium3DTileStyle({color:"undefined === ${COLOR}.r ? color('white',"+s+"):rgba(${COLOR}.r *255,${COLOR}.g* 255,${COLOR}.b *255, "+s+")"});var c=[t];i.Tileset3DManager.addSource(r,n,t,{url:a}),e.$emit("loaded",{tileset:t,m3d:c}),e.bindPopupEvent()}},onTilesetLoadedError:function(t){this.$emit("unLoaded")},pickFeature:function(t){var e=this,n=t.movement,r=(this.popupOptions,this.highlightStyle),i=(this.vueKey,this.vueIndex,this.viewer),o=this.Cesium,a=(this.version,this.layerIndex),s=this.popupShowType,c={},u=i.scene.layers.getCesium3DTilesetLayer(a),l=i.scene.pick(n.position);if(this.cancelFeature(!1),l instanceof o.Cesium3DTileFeature){if(l.content.tileset===u){var h;"default"===s&&(e.showPopup&&(e.featureposition=e.iClickPosition),c.position=e.iClickPosition),l&&(this.feature=l),l.color=o.Color.fromCssColorString(r);var d=l.getPropertyNames();d&&d.length>0&&(h={},d.forEach((function(t){h[t]=l.getProperty(t)}))),"default"===s?e.featureproperties=h:e.popupOverlay&&e.popupOverlay.setContent(h||null),c.properties=h,c.layerId=e.vueIndex,e.$emit("pick-info",c)}}else e.$emit("pick-info",{})},cancelFeature:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.feature){var e=this.Cesium;this.feature.color=new e.Color,this.feature=null,this.featureposition=void 0,this.featureproperties=void 0,"right"===this.popupShowType&&this.popupOverlay&&this.popupOverlay.setContent(null)}t&&this.$emit("pick-info",{})}}},om=im,am=je(om,Kp,qp,!1,null,null,null),sm=am.exports,cm={name:"mapgis-3d-feature-popup",mixins:[zs],props:{position:{type:Object,required:!0},visible:{type:Boolean,default:!0},enablePopup:{type:Boolean,default:!0},componentWidth:{type:[Number,String],default:280}},data:function(){return{}},model:{prop:"visible",event:"change"},inject:["Cesium","vueCesium","viewer"],watch:{position:{deep:!0,immediate:!0,handler:function(){this.update()}},visible:{deep:!0,immediate:!0,handler:function(){this.update()}}},mounted:function(){this.iClickVisible=this.visible},destroyed:function(){},methods:{togglePopup:function(){var t=!this.show;this.show=t},getViewer:function(){var t=this.viewer,e=this.vueKey,n=this.vueCesium;n=n||window.vueCesium;var r=t||n.getViewer(e);return r},createCesiumObject:function(){return new Promise((function(t){t()}))},mount:function(){var t=this.viewer,e=this.vueKey,n=this.vueIndex,r=this.vueCesium;r=r||window.vueCesium,t=t||this.getViewer();var i=this.createCesiumObject();i.then((function(){r.PopupManager.addSource(e,n,void 0,{})}))},unmount:function(){var t=this.viewer,e=this.vueKey,n=this.vueIndex,r=this.vueCesium;t=t||this.getViewer(),r=r||window.vueCesium;var i=r.PopupManager.findSource(e,n);return i&&i.source,!t.isDestroyed()},update:function(){var t=this.position,e=this.visible;this.iClickPosition=t,this.iClickVisible=e},$_changeVisible:function(t,e){this.$emit("change",t,e)}}},um=cm,lm=je(um,nm,rm,!1,null,null,null),hm=lm.exports,dm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monitor-point-popup-wrapper"},[n("div",{staticClass:"data-point-content"},[n("div",{staticClass:"monitor-left"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.listPanelVisible,expression:"listPanelVisible"}],staticClass:"monitor-title"},[t._v("监测点信息- "+t._s(t.monitorTitle))]),n("div",{staticClass:"monitor-table"},[n("mapgis-ui-list",{staticClass:"table-marker",style:{width:t.listPanelVisible?"350px":0},attrs:{"item-layout":"horizontal",locale:t.emptyText,"data-source":t.dataList,size:"small",bordered:""},scopedSlots:t._u([{key:"renderItem",fn:function(e){return n("mapgis-ui-list-item",{staticClass:"table-marker-item"},[n("div",{attrs:{title:e}},[t._v("\n "+t._s(e)+"\n ")]),n("div",{attrs:{title:t.infoData[e]}},[t._v("\n "+t._s(t.infoData[e])+"\n ")])])}}])}),n("div",{staticClass:"monitor-handle",on:{click:t.onTogglelistPanel}},[n("mapgis-ui-iconfont",{attrs:{type:t.listPanelVisible?"mapgis-left":"mapgis-right"}})],1)],1)]),"data"===t.type?n("div",{staticClass:"monitor-right"},[n("span",{staticClass:"monitor-title"},[t._v("监测曲线- "+t._s(t.monitorTitle))]),n("div",{staticClass:"monitor-search-time"},[n("mapgis-ui-range-picker",{attrs:{locale:t.locale,"show-time":{format:"HH:mm:ss"},placeholder:["开始时间","结束时间"],format:"YYYY-MM-DD HH:mm:ss"},on:{change:t.onChange,openChange:t.openChange},model:{value:t.timePick,callback:function(e){t.timePick=e},expression:"timePick"}}),n("mapgis-ui-select",{staticStyle:{width:"100px","margin-left":"5px"},attrs:{"default-value":"最近一周"},on:{change:t.handleChange}},t._l(t.selectTimeRange,(function(e,r){return n("mapgis-ui-select-option",{key:r,attrs:{value:e.label}},[t._v("\n "+t._s(e.label)+"\n ")])})),1)],1),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showEcharts,expression:"showEcharts"}],ref:t.id,staticClass:"monitor-echart"}),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.showEcharts,expression:"!showEcharts"}],staticClass:"monitor-tips"},[t._v("暂无数据")])]):t._e(),"video"===t.type?n("div",{staticClass:"monitor-point-content"},[n("div",{staticClass:"monitor-title"},[t._v("视频- "+t._s(t.monitorTitle))]),n("div",{staticClass:"monitor-video"},[n("div",{staticClass:"monitor-search-time"},[n("mapgis-ui-range-picker",{attrs:{locale:t.locale,"show-time":{format:"HH:mm:ss"},placeholder:["开始时间","结束时间"],format:"YYYY-MM-DD HH:mm:ss"},on:{change:t.onChange,openChange:t.openChange},model:{value:t.timePick,callback:function(e){t.timePick=e},expression:"timePick"}}),n("mapgis-ui-select",{staticStyle:{width:"100px","margin-left":"5px"},attrs:{"default-value":"最近一周"},on:{change:t.handleChange}},t._l(t.selectTimeRange,(function(e,r){return n("mapgis-ui-select-option",{key:r,attrs:{value:e.label}},[t._v("\n "+t._s(e.label)+"\n ")])})),1)],1),n("div",{staticClass:"monitor-video-content"},[t.videoUrl?n("div",{attrs:{id:"projectorVideoContainer",width:300,height:200}}):n("mapgis-ui-empty",{staticClass:"empty"})],1)])]):t._e()])])},fm=[],pm=(n("b2a3"),n("2ee9"),n("92fa")),mm=n.n(pm),gm=n("1098"),Am=n.n(gm),ym=n("6042"),bm=n.n(ym),wm=n("41b2"),_m=n.n(wm),xm=n("60ed"),Sm=n.n(xm),Cm=Object.prototype,Mm=Cm.toString,Lm=Cm.hasOwnProperty,Tm=/^\s*function (\w+)/,km=function(t){var e=null!==t&&void 0!==t?t.type?t.type:t:null,n=e&&e.toString().match(Tm);return n&&n[1]},Em=function(t){if(null===t||void 0===t)return null;var e=t.constructor.toString().match(Tm);return e&&e[1]},Om=function(){},Pm=Number.isInteger||function(t){return"number"===typeof t&&isFinite(t)&&Math.floor(t)===t},Bm=Array.isArray||function(t){return"[object Array]"===Mm.call(t)},Im=function(t){return"[object Function]"===Mm.call(t)},Dm=function(t){Object.defineProperty(t,"def",{value:function(t){return void 0===t&&void 0===this["default"]?(this["default"]=void 0,this):Im(t)||jm(this,t)?(this["default"]=Bm(t)||Sm()(t)?function(){return t}:t,this):(Rm(this._vueTypes_name+' - invalid default value: "'+t+'"',t),this)},enumerable:!1,writable:!1})},Nm=function(t){Object.defineProperty(t,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1})},Fm=function(t,e){return Object.defineProperty(e,"_vueTypes_name",{enumerable:!1,writable:!1,value:t}),Nm(e),Dm(e),Im(e.validator)&&(e.validator=e.validator.bind(e)),e},jm=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e,o=!0,a=void 0;Sm()(e)||(i={type:e});var s=i._vueTypes_name?i._vueTypes_name+" - ":"";return Lm.call(i,"type")&&null!==i.type&&(Bm(i.type)?(o=i.type.some((function(e){return t(e,n,!0)})),a=i.type.map((function(t){return km(t)})).join(" or ")):(a=km(i),o="Array"===a?Bm(n):"Object"===a?Sm()(n):"String"===a||"Number"===a||"Boolean"===a||"Function"===a?Em(n)===a:n instanceof i.type)),o?Lm.call(i,"validator")&&Im(i.validator)?(o=i.validator(n),o||!1!==r||Rm(s+"custom validation failed"),o):o:(!1===r&&Rm(s+'value "'+n+'" should be of type "'+a+'"'),!1)},Rm=Om,Hm={get any(){return Fm("any",{type:null})},get func(){return Fm("function",{type:Function}).def(Um.func)},get bool(){return Fm("boolean",{type:Boolean}).def(Um.bool)},get string(){return Fm("string",{type:String}).def(Um.string)},get number(){return Fm("number",{type:Number}).def(Um.number)},get array(){return Fm("array",{type:Array}).def(Um.array)},get object(){return Fm("object",{type:Object}).def(Um.object)},get integer(){return Fm("integer",{type:Number,validator:function(t){return Pm(t)}}).def(Um.integer)},get symbol(){return Fm("symbol",{type:null,validator:function(t){return"symbol"===("undefined"===typeof t?"undefined":Am()(t))}})},custom:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom validation failed";if("function"!==typeof t)throw new TypeError("[VueTypes error]: You must provide a function as argument");return Fm(t.name||"<<anonymous function>>",{validator:function(){var n=t.apply(void 0,arguments);return n||Rm(this._vueTypes_name+" - "+e),n}})},oneOf:function(t){if(!Bm(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");var e='oneOf - value should be one of "'+t.join('", "')+'"',n=t.reduce((function(t,e){return null!==e&&void 0!==e&&-1===t.indexOf(e.constructor)&&t.push(e.constructor),t}),[]);return Fm("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==t.indexOf(n);return r||Rm(e),r}})},instanceOf:function(t){return Fm("instanceOf",{type:t})},oneOfType:function(t){if(!Bm(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");var e=!1,n=t.reduce((function(t,n){if(Sm()(n)){if("oneOf"===n._vueTypes_name)return t.concat(n.type||[]);if(n.type&&!Im(n.validator)){if(Bm(n.type))return t.concat(n.type);t.push(n.type)}else Im(n.validator)&&(e=!0);return t}return t.push(n),t}),[]);if(!e)return Fm("oneOfType",{type:n}).def(void 0);var r=t.map((function(t){return t&&Bm(t.type)?t.type.map(km):km(t)})).reduce((function(t,e){return t.concat(Bm(e)?e:[e])}),[]).join('", "');return this.custom((function(e){var n=t.some((function(t){return"oneOf"===t._vueTypes_name?!t.type||jm(t.type,e,!0):jm(t,e,!0)}));return n||Rm('oneOfType - value type should be one of "'+r+'"'),n})).def(void 0)},arrayOf:function(t){return Fm("arrayOf",{type:Array,validator:function(e){var n=e.every((function(e){return jm(t,e)}));return n||Rm('arrayOf - value must be an array of "'+km(t)+'"'),n}})},objectOf:function(t){return Fm("objectOf",{type:Object,validator:function(e){var n=Object.keys(e).every((function(n){return jm(t,e[n])}));return n||Rm('objectOf - value must be an object of "'+km(t)+'"'),n}})},shape:function(t){var e=Object.keys(t),n=e.filter((function(e){return t[e]&&!0===t[e].required})),r=Fm("shape",{type:Object,validator:function(r){var i=this;if(!Sm()(r))return!1;var o=Object.keys(r);return n.length>0&&n.some((function(t){return-1===o.indexOf(t)}))?(Rm('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):o.every((function(n){if(-1===e.indexOf(n))return!0===i._vueTypes_isLoose||(Rm('shape - object is missing "'+n+'" property'),!1);var o=t[n];return jm(o,r[n])}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{enumerable:!1,writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this},enumerable:!1}),r}},zm=function(){return{func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0}},Um=zm();Object.defineProperty(Hm,"sensibleDefaults",{enumerable:!1,set:function(t){!1===t?Um={}:!0===t?Um=zm():Sm()(t)&&(Um=t)},get:function(){return Um}});var Vm=Hm,Ym={functional:!0,inject:{configProvider:{default:function(){return Wm}}},props:{componentName:Vm.string},render:function(t,e){var n=arguments[0],r=e.props,i=e.injections;function o(t){var e=i.configProvider.getPrefixCls,r=e("empty");switch(t){case"Table":case"List":return n(kg,{attrs:{image:kg.PRESENTED_IMAGE_SIMPLE}});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return n(kg,{attrs:{image:kg.PRESENTED_IMAGE_SIMPLE},class:r+"-small"});default:return n(kg)}}return o(r.componentName)}};function Gm(t,e){return t(Ym,{attrs:{componentName:e}})}var Qm=Gm,Wm={getPrefixCls:function(t,e){return e||"ant-"+t},renderEmpty:Qm};n("b24f"),n("4d26");var Km=function(t){return t.data&&t.data.scopedSlots||{}},qm=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.$createElement){var i=t.$createElement,o=t[e];return void 0!==o?"function"===typeof o&&r?o(i,n):o:t.$scopedSlots[e]&&r&&t.$scopedSlots[e](n)||t.$scopedSlots[e]||t.$slots[e]||void 0}var a=t.context.$createElement,s=Xm(t)[e];if(void 0!==s)return"function"===typeof s&&r?s(a,n):s;var c=Km(t)[e];if(void 0!==c)return"function"===typeof c&&r?c(a,n):c;var u=[],l=t.componentOptions||{};return(l.children||[]).forEach((function(t){t.data&&t.data.slot===e&&(t.data.attrs&&delete t.data.attrs.slot,"template"===t.tag?u.push(t.children):u.push(t))})),u.length?u:void 0},Xm=function(t){var e=t.componentOptions;return t.$vnode&&(e=t.$vnode.componentOptions),e&&e.propsData||{}};function $m(t){return(t.$vnode?t.$vnode.componentOptions.listeners:t.$listeners)||{}}var Jm={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},Zm={today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},tg={placeholder:"Select time"},eg=tg,ng={lang:_m()({placeholder:"Select date",rangePlaceholder:["Start date","End date"]},Zm),timePickerLocale:_m()({},eg)},rg=ng,ig=rg,og={locale:"en",Pagination:Jm,DatePicker:rg,TimePicker:eg,Calendar:ig,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",selectAll:"Select current page",selectInvert:"Invert current page",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},ag=og,sg={name:"LocaleReceiver",props:{componentName:Vm.string.def("global"),defaultLocale:Vm.oneOfType([Vm.object,Vm.func]),children:Vm.func},inject:{localeData:{default:function(){return{}}}},methods:{getLocale:function(){var t=this.componentName,e=this.defaultLocale,n=e||ag[t||"global"],r=this.localeData.antLocale,i=t&&r?r[t]:{};return _m()({},"function"===typeof n?n():n,i||{})},getLocaleCode:function(){var t=this.localeData.antLocale,e=t&&t.locale;return t&&t.exist&&!e?ag.locale:e}},render:function(){var t=this.$scopedSlots,e=this.children||t["default"],n=this.localeData.antLocale;return e(this.getLocale(),this.getLocaleCode(),n)}},cg={functional:!0,PRESENTED_IMAGE_DEFAULT:!0,render:function(){var t=arguments[0];return t("svg",{attrs:{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{fill:"none",fillRule:"evenodd"}},[t("g",{attrs:{transform:"translate(24 31.67)"}},[t("ellipse",{attrs:{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}}),t("path",{attrs:{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}}),t("path",{attrs:{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}}),t("path",{attrs:{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}}),t("path",{attrs:{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"}})]),t("path",{attrs:{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}}),t("g",{attrs:{transform:"translate(149.65 15.383)",fill:"#FFF"}},[t("ellipse",{attrs:{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}}),t("path",{attrs:{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}})])])])}},ug={functional:!0,PRESENTED_IMAGE_SIMPLE:!0,render:function(){var t=arguments[0];return t("svg",{attrs:{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"}},[t("ellipse",{attrs:{fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"}}),t("g",{attrs:{fillRule:"nonzero",stroke:"#D9D9D9"}},[t("path",{attrs:{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}}),t("path",{attrs:{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA"}})])])])}},lg=n("46cf"),hg=n.n(lg),dg="undefined"!==typeof window,fg=dg&&window.navigator.userAgent.toLowerCase(),pg=fg&&fg.indexOf("msie 9.0")>0;function mg(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var gg=mg("text,number,password,search,email,tel,url");function Ag(t){t.target.composing=!0}function vg(t){t.target.composing&&(t.target.composing=!1,yg(t.target,"input"))}function yg(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function bg(t){return t.directive("ant-input",{inserted:function(t,e,n){("textarea"===n.tag||gg(t.type))&&(e.modifiers&&e.modifiers.lazy||(t.addEventListener("compositionstart",Ag),t.addEventListener("compositionend",vg),t.addEventListener("change",vg),pg&&(t.vmodel=!0)))}})}pg&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&yg(t,"input")}));function wg(t){return t.directive("decorator",{})}function _g(t){return t.directive("ant-portal",{inserted:function(t,e){var n=e.value,r="function"===typeof n?n(t):n;r!==t.parentNode&&r.appendChild(t)},componentUpdated:function(t,e){var n=e.value,r="function"===typeof n?n(t):n;r!==t.parentNode&&r.appendChild(t)}})}var xg={install:function(t){t.use(hg.a,{name:"ant-ref"}),bg(t),wg(t),_g(t)}},Sg={},Cg=function(t){Sg.Vue=t,t.use(xg)};Sg.install=Cg;var Mg=Sg,Lg=function(){return{prefixCls:Vm.string,image:Vm.any,description:Vm.any,imageStyle:Vm.object}},Tg={name:"AEmpty",props:_m()({},Lg()),inject:{configProvider:{default:function(){return Wm}}},methods:{renderEmpty:function(t){var e=this.$createElement,n=this.$props,r=n.prefixCls,i=n.imageStyle,o=this.configProvider.getPrefixCls,a=o("empty",r),s=qm(this,"image")||e(cg),c=qm(this,"description"),u="undefined"!==typeof c?c:t.description,l="string"===typeof u?u:"empty",h=bm()({},a,!0),d=null;if("string"===typeof s)d=e("img",{attrs:{alt:l,src:s}});else if("object"===("undefined"===typeof s?"undefined":Am()(s))&&s.PRESENTED_IMAGE_SIMPLE){var f=s;d=e(f),h[a+"-normal"]=!0}else d=s;return e("div",mm()([{class:h},{on:$m(this)}]),[e("div",{class:a+"-image",style:i},[d]),u&&e("p",{class:a+"-description"},[u]),this.$slots["default"]&&e("div",{class:a+"-footer"},[this.$slots["default"]])])}},render:function(){var t=arguments[0];return t(sg,{attrs:{componentName:"Empty"},scopedSlots:{default:this.renderEmpty}})}};Tg.PRESENTED_IMAGE_DEFAULT=cg,Tg.PRESENTED_IMAGE_SIMPLE=ug,Tg.install=function(t){t.use(Mg),t.component(Tg.name,Tg)};var kg=Tg,Eg=n("164e"),Og=n("c32d"),Pg=n.n(Og),Bg={today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},Ig={placeholder:"请选择时间"},Dg=Ig,Ng={lang:_m()({placeholder:"请选择日期",rangePlaceholder:["开始日期","结束日期"]},Bg),timePickerLocale:_m()({},Dg)};Ng.lang.ok="确 定";var Fg=Ng;n("e3a1"),n("3d33"),n("a151"),n("fda2");function jg(t){return jg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(t)}function Rg(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Rg=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==jg(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(jg(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Hg(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function zg(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Hg(o,r,i,a,s,"next",t)}function s(t){Hg(o,r,i,a,s,"throw",t)}a(void 0)}))}}window.monitorPointDomMap={};var Ug={name:"mapgis-3d-monitor-point-popup",props:{properties:{type:Object,default:function(){}},componentWidth:{type:[Number,String],default:980},type:{type:String,default:"data"},access_token:{type:String,default:"U95_PewQPaUqOvqcCC6DtWGAn1sHZnc6rhTCrj7tzuU"},dataUrl:{type:String,default:"https://szaqxsbg.szsti.org:8060"},monPntID:{type:String,default:"monPntID"},propertyRelation:{type:Object,default:function(){return{cd:"监测点编号",jcdw:"监测单位",jcdx:"监测对象",ssyq:"所属测区",lx:"监测类型",jcxm:"监测项目",fs:"监测方式",mon_project_unit:"监测指标单位"}}},videoType:{type:String,default:""},xAxis:{type:String,default:"mon_time_ts"},yAxis:{type:String,default:"mon_acc_value"},title:{type:String,default:"测点"},exhibition:{type:Object}},data:function(){return{id:Math.floor(1e5*Math.random()),infoData:{},showEcharts:!0,timePick:[Pg()().subtract(1,"weeks"),Pg()()],timeRange:{"今天":[Pg()().startOf("day"),Pg()()],"昨天":[Pg()().startOf("day").subtract(1,"days"),Pg()().endOf("day").subtract(1,"days")],"最近一周":[Pg()().subtract(1,"weeks"),Pg()()],"最近一月":[Pg()().subtract(1,"months"),Pg()()],"最近一季":[Pg()().subtract(3,"months"),Pg()()],"最近一年":[Pg()().subtract(1,"years"),Pg()()],"全部":["",Pg()()]},locale:Fg,selectTimeRange:[{label:"今天"},{label:"昨天"},{label:"最近一周"},{label:"最近一月"},{label:"最近一季"},{label:"最近一年"},{label:"全部"}],hasChange:!1,listPanelVisible:!1,videoUrl:""}},computed:{dataList:function(){return Object.keys(this.infoData)},monitorPointId:function(){return this.properties[this.monPntID]},monitorTitle:function(){return this.properties[this.title]},emptyText:function(){var t=this.$createElement,e="未查询到监测点信息";return{emptyText:t(kg,{attrs:{image:kg.PRESENTED_IMAGE_SIMPLE,description:e}})}}},watch:{listPanelVisible:{handler:function(){var t=this;if("video"===this.type){var e=document.querySelectorAll(".mapgis-feature-popup-container");e&&e.forEach((function(e){t.listPanelVisible?e.style.width="".concat(t.componentWidth,"px"):e.style.width="550px"}))}}},monitorPointId:{immediate:!0,handler:function(){var t=zg(Rg().mark((function t(){var e,n,r,i;return Rg().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("video"!==this.type){t.next=16;break}if(!window.monitorPointDomMap||!window.monitorPointDomMap[this.monitorPointId]){t.next=5;break}this._getVideoDom(),t.next=16;break;case 5:return e=this.exhibition.options?this.exhibition.options[this.exhibition.activeOptionId].name:this.exhibition.option.name,n=this.properties[this.monPntID],t.next=9,this.getPath(n,e);case 9:if(r=t.sent,!(r.indexOf("undefined")>-1)){t.next=13;break}return this.videoUrl="",t.abrupt("return",this.$message.info("获取视频流失败"));case 13:i=this.dataUrl.replace("/catalog/hdfs/services","/services/file/hdfs"),this.videoUrl="".concat(i,"/").concat(r,"/download?isPreview=true"),this._getVideoDom();case 16:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},mounted:function(){var t=zg(Rg().mark((function t(){var e=this;return Rg().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("data"!==this.type){t.next=6;break}return t.next=3,this.getMonitorData();case 3:setTimeout((function(){e.initEcharts()}),500),t.next=7;break;case 6:this.getMonitorData();case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{getPath:function(){var t=zg(Rg().mark((function t(e,n){var r,i,o;return Rg().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,qe.a.get(this.dataUrl);case 2:if(r=t.sent,200!==r.status){t.next=10;break}return i=r.data.t.rtn,t.next=7,this.getUrl(e,i,this.dataUrl,n);case 7:return o=t.sent,console.log(o,"res"),t.abrupt("return",o);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),getUrl:function(){var t=zg(Rg().mark((function t(e,n,r,i){var o,a,s,c,u,l,h=this;return Rg().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=n.find((function(t){return t.name===i}))||n.find((function(t){return t.name===e})),!o){t.next=14;break}return a="".concat(r,"/").concat(o.name),t.next=5,qe.a.get(a);case 5:if(s=t.sent,200!==s.status){t.next=12;break}return c=s.data.t.rtn,t.next=10,this.getUrl(e,c,a);case 10:return u=t.sent,t.abrupt("return","".concat(o.name,"/").concat(u));case 12:t.next=17;break;case 14:if(l=n.find((function(t){return t.name==="".concat(e,".").concat(h.videoType)})),!l){t.next=17;break}return t.abrupt("return",l.name);case 17:case"end":return t.stop()}}),t,this)})));function e(e,n,r,i){return t.apply(this,arguments)}return e}(),_getVideoDom:function(){var t;if(window.monitorPointDomMap&&window.monitorPointDomMap[this.monitorPointId]){var e=window.monitorPointDomMap[this.monitorPointId],n=e.videoDom;e.hlsPlayer;t=n}else{if(!this.videoUrl)return null;t=this.createVideoElement(this.videoType,this.videoUrl,this.monitorPointId)}this.videoDom=t,this.$nextTick((function(){var e=document.getElementById("projectorVideoContainer");e.innerHTML="",t.width=300,t.height=200,t.controls=!0,e.appendChild(t)}))},createVideoElement:function(t,e,n){if(window.monitorPointDomMap[n]){var r=window.monitorPointDomMap[n],i=r.videoDom;r.hlsPlayer;return i}var o=this.getVideoPlayerType(t),a=document.createElement("div"),s=300,c=200;a.innerHTML='<video id="projector-video-'.concat(n,'" class="video-js vjs-default-skin" controls preload="auto" width="').concat(s,'" height="').concat(c,'" crossOrigin="anonymous">\n <source src="').concat(e,'" type="').concat(o,'" /></video>');var u=a.getElementsByTagName("video")[0],l={autoplay:!0,loop:!1,preload:"auto",aspectRatio:"16:9",fluid:!0},h=window.videojs(u,l);return h.src({type:o,src:e}),h.load(e),h.play(),h.loop(),window.monitorPointDomMap[n]={videoDom:u,hlsPlayer:h},u},getVideoPlayerType:function(t){var e="video/mp4";return"mp4"===t?e="video/mp4":"m3u8"===t?e="application/x-mpegURL":"webm"===t?e="video/webm":"ogg"===t&&(e="video/ogg"),e},onTogglelistPanel:function(){this.listPanelVisible=!this.listPanelVisible,"data"===this.type&&this.initEcharts()},initEcharts:function(){var t=zg(Rg().mark((function t(){var e,n;return Rg().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.timePick[0]?Pg()(this.timePick[0]).format("YYYY-MM-DD+HH:mm:ss"):void 0,n=this.timePick[1]?Pg()(this.timePick[1]).format("YYYY-MM-DD+HH:mm:ss"):void 0,t.next=4,this.getMonitorEchartsData(n,e);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getMonitorData:function(){var t=this;this.dataUrl.indexOf("datastore")>-1?(this.infoData=this.properties,this.listPanelVisible=!0):qe.a.get("".concat(this.dataUrl,"/hotel/api/QueryJcjkHqjcXm?access_token=").concat(this.access_token,"&mon_point_id=").concat(this.monitorPointId)).then((function(e){if(200===e.status){var n=e.data;if(n.records&&0===n.records.length)return void t.$message.info("监测点".concat(t.monitorTitle,"未查询到信息!"));var r=n.records[0],i={};Object.keys(t.propertyRelation).forEach((function(e){var n=t.propertyRelation[e];i[n]=r[e]})),t.infoData=i,t.listPanelVisible=!0}})).catch((function(e){t.$message.error("监测点".concat(t.monitorPointId,"信息查询异常!"))}))},getMonitorEchartsData:function(t,e){var n=this,r="".concat(this.dataUrl,"/hotel/api/QueryJcjkHqjcSj?access_token=").concat(this.access_token,"&mon_point_id=").concat(this.monitorPointId);t&&(r+="&endDate=".concat(t)),e&&(r+="&beginDate=".concat(e)),qe.a.get(r).then((function(t){if(200===t.status){var e=t.data;if(e.records&&0===e.records.length)return void(n.showEcharts=!1);var r=t.data.records.reduce((function(t,e){var r=[e[n.xAxis],e[n.yAxis]];return t.push(r),t}),[]);n.showEcharts=!0,n.myCharts?n.$nextTick((function(){n.resizeEcharts(r)})):n.$nextTick((function(){n.drawEcharts(r)}))}else n.showEcharts=!1})).catch((function(t){n.showEcharts=!1}))},drawEcharts:function(t){var e=this.$refs[this.id];if(e){this.myCharts=Eg["init"](e,null,{renderer:"canvas",useDirtyRect:!1});var n={tooltip:{trigger:"axis"},legend:{data:["第三方监测数据"],right:30,textStyle:{color:"#fff"}},grid:{top:30,left:"8%",right:34},toolbox:{iconStyle:{color:"#111",borderColor:"#fff"},top:-4,feature:{saveAsImage:{}}},xAxis:{type:"time",boundaryGap:!1,interval:864e5,axisLine:{show:!0},textStyle:{color:"#fff"},axisLabel:{color:"#fff"}},yAxis:{type:"value",boundaryGap:[0,"100%"],axisLine:{show:!0},textStyle:{color:"#fff",lineStyle:{color:"#ccc"}},axisLabel:{color:"#fff"},splitLine:{lineStyle:{color:"#6a6969",type:"dashed"}}},dataZoom:[{type:"slider",show:!0,start:80,end:100,xAxisIndex:[0],bottom:10},{type:"slider",show:!0,yAxisIndex:[0],left:"95%",start:0,end:100}],series:[{name:"第三方监测数据",type:"line",smooth:!0,symbol:"none",data:t}]};this.myCharts.setOption(n)}},resizeEcharts:function(t){var e=this.myCharts.getOption();e?(e.series[0].data=t,this.myCharts.setOption(e),this.myCharts.resize()):this.drawEcharts(t)},onChange:function(t){this.hasChange=!0},openChange:function(t){!t&&this.hasChange&&(this.hasChange=!this.hasChange,this.initEcharts())},handleChange:function(t){var e=JSON.parse(JSON.stringify(this.timeRange[t]));this.timePick=e,this.initEcharts()}}},Vg=Ug,Yg=(n("8d97"),je(Vg,dm,fm,!1,null,"4704f88e",null)),Gg=Yg.exports,Qg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"insar-point-popup-wrapper"},[n("span",{staticClass:"monitor-title"},[t._v("沉降数据")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showEcharts,expression:"showEcharts"}],ref:t.id,staticClass:"insar-echarts"}),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.showEcharts,expression:"!showEcharts"}],staticClass:"monitor-tips"},[t._v("暂无数据")])])},Wg=[],Kg={name:"mapgis-3d-insar-point-popup",props:{properties:{type:Object,default:function(){}},componentWidth:{type:[Number,String],default:580}},data:function(){return{id:Math.floor(1e5*Math.random()),showEcharts:!0}},watch:{properties:{deep:!0,immediate:!0,handler:function(t){t?this.drawEcharts(t):this.showEcharts=!1}}},methods:{drawEcharts:function(t){var e=this,n=["VEL","mpLayer","fid","HEIGHT"],r=[],i=[];Object.keys(t).forEach((function(e){n.includes(e)||(r.push(e),i.push(t[e]))})),this.myCharts?this.$nextTick((function(){e.resizeEcharts(r,i)})):this.$nextTick((function(){e.drawEchart(r,i)}))},drawEchart:function(t,e){var n=this.$refs[this.id];if(n){this.myCharts=Eg["init"](n,null,{renderer:"canvas",useDirtyRect:!1,width:n.clientWidth,height:n.clientHeight});var r={grid:{top:"10%",left:"6%",right:"6%",bottom:"8%"},tooltip:{trigger:"axis"},xAxis:{type:"category",data:t,axisLine:{show:!0},textStyle:{color:"#fff"},axisLabel:{color:"#fff"}},yAxis:{type:"value",axisLine:{show:!0},textStyle:{color:"#fff"},axisLabel:{color:"#fff"},splitLine:{lineStyle:{color:"#6a6969",type:"dashed"}}},series:[{data:e,type:"line"}]};this.myCharts.setOption(r)}},resizeEcharts:function(t,e){var n=this.myCharts.getOption();n.xAxis.data=t,n.series[0].data=e,this.myCharts.setOption(n),this.myCharts.resize()}}},qg=Kg,Xg=(n("26cc"),je(qg,Qg,Wg,!1,null,"78ceb203",null)),$g=Xg.exports,Jg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"attribute-popup-content-wrapper"},[t.title?n("div",{staticClass:"mapgis-popup-title"},[t._v(t._s(t.title))]):t._e(),t.images&&t.images.length>0?n("mapgis-ui-carousel",{attrs:{autoplay:""}},t._l(t.images,(function(t,e){return n("div",{key:e,staticClass:"carousel-image-container"},[n("img",{staticStyle:{"object-fit":"contain"},attrs:{src:t,width:"100%",height:"100%"}})])})),0):t._e(),n("mapgis-ui-list",{staticClass:"table-marker",class:t.showAccessory?"":"scene-popup-detail",attrs:{"item-layout":"horizontal","data-source":t.propertyKeys,size:"small",bordered:""},scopedSlots:t._u([{key:"renderItem",fn:function(e){return"images"!==e?n("mapgis-ui-list-item",{staticClass:"table-marker-item"},[n("div",{attrs:{title:e}},[t._v("\n "+t._s(e)+"\n ")]),n("div",{attrs:{title:t.properties[e]}},[t._v("\n "+t._s(t.properties[e])+"\n ")])]):t._e()}}],null,!0)}),t.Euid&&t.showAccessory?[n("div",{staticClass:"iot-enclosure-title"},[t._v("附件")]),n("ul",{staticClass:"iot-enclosure-container"},[n("li",{attrs:{title:"非结构化文件"}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-feijiegouhuawenjian"},on:{click:function(e){return t.clickIot(101)}}})],1),n("li",{attrs:{title:"传感器"}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-a-iotDevicechuanganqi"},on:{click:function(e){return t.clickIot(301)}}})],1),n("li",{attrs:{title:"知识图谱"}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-share-alt"},on:{click:function(e){return t.clickIot(501)}}})],1)])]:t._e(),n("mapgis-ui-modal",{staticClass:"attribute-model",attrs:{footer:null,width:600,centered:!0,bodyStyle:{padding:"30px 10px 10px"},destroyOnClose:!0},model:{value:t.showModal,callback:function(e){t.showModal=e},expression:"showModal"}},[t.Euid?n("iot-detail",{attrs:{toType:t.toType,Euid:t.Euid,dataStoreIp:t.dataStoreIp,dataStorePort:t.dataStorePort,dataStoreDataset:t.dataStoreDataset},on:{"project-screen":t.projectScreen}}):t._e()],1)],2)},Zg=[],tA=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mapgis-ui-spin",{attrs:{spinning:t.loading}},[501==t.toType?n("div",{staticClass:"iot-detail-graph-tool-panel"},[n("mapgis-ui-select-panel",{attrs:{label:"关系图类型",selectOptions:{force:"力引导布局",circular:"环形布局"}},model:{value:t.graphType,callback:function(e){t.graphType=e},expression:"graphType"}})],1):t._e(),501==t.toType?n("div",{staticClass:"iot-detail-graph-chart-panel",attrs:{id:"echarts-graph"}}):t._e(),501!=t.toType?n("div",{staticClass:"iot-detail-title"},[n("h3",[t._v("附件")]),n("mapgis-ui-radio-group",{attrs:{"button-style":"solid",size:"small"},model:{value:t.isList,callback:function(e){t.isList=e},expression:"isList"}},[n("mapgis-ui-radio-button",{attrs:{value:!0}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-unorderedlist"}})],1),n("mapgis-ui-radio-button",{attrs:{value:!1}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-table"}})],1)],1)],1):t._e(),501!=t.toType?n("mapgis-ui-file-preview",{attrs:{isList:t.isList,files:t.files},on:{"project-screen":t.projectScreen}}):t._e(),501!=t.toType?n("div",{staticClass:"iot-detail-pagination"},[n("mapgis-ui-pagination",{attrs:{size:"small","show-size-changer":"","page-size":t.pageSize,total:t.total},on:{"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e}},model:{value:t.current,callback:function(e){t.current=e},expression:"current"}})],1):t._e()],1)},eA=[];function nA(t){return nA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nA(t)}function rA(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */rA=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof A?e:A,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:M(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function A(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var x=y.prototype=A.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==nA(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,n,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(nA(e)+" is not iterable")}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function iA(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function oA(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){iA(o,r,i,a,s,"next",t)}function s(t){iA(o,r,i,a,s,"throw",t)}a(void 0)}))}}var aA=eh["Util"].UrlUtil,sA={name:"IotDetail",props:{Euid:{type:String,default:""},toType:{type:Number,default:1},dataStoreIp:{type:String,default:""},dataStorePort:{type:String,default:""},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"}},data:function(){return{isList:!0,current:1,pageSize:10,total:0,files:[],loading:!1,graphType:"force"}},watch:{graphType:function(t){this.genGraph(t)}},mounted:function(){501!=this.toType?this.getData():this.genGraph(this.graphType)},methods:{getData:function(){var t=oA(rA().mark((function t(){var e,n,r,i,o,a,s;return rA().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=[],this.loading=!0,n=this.dataStoreIp,r=this.dataStorePort,t.prev=4,t.next=7,qe.a.get("".concat(aA.getOrigin({ip:n,port:r}),"/datastore/rest/services/dataset/relations"),{params:{fromID:this.Euid,fromType:1,toType:this.toType,pageNo:this.current,pageSize:this.pageSize}});case 7:if(i=t.sent,200!==i.status){t.next=20;break}if(o=i.data.data,a=o.total,s=o.rtn,this.total=a,!s){t.next=20;break}t.t0=this.toType,t.next=101===t.t0?15:301===t.t0?17:19;break;case 15:return e=this.fileDataStore(s),t.abrupt("break",20);case 17:return e=this.iotDevice(s),t.abrupt("break",20);case 19:return t.abrupt("break",20);case 20:t.next=24;break;case 22:t.prev=22,t.t1=t["catch"](4);case 24:return t.prev=24,this.files=e,this.loading=!1,t.finish(24);case 28:case"end":return t.stop()}}),t,this,[[4,22,24,28]])})));function e(){return t.apply(this,arguments)}return e}(),formatter:function(t){var e={categories:[],nodes:[],links:[]};return t.graphValues.forEach((function(t,n){t.entityName?(-1==e.categories.indexOf(t.entityName)&&e.categories.push(t.entityName),t.category=e.categories.indexOf(t.entityName),e.nodes.push(t)):t.relationshipName&&e.links.push({source:t.src,target:t.dst})})),e},genGraph:function(t){var e=this.dataStoreIp,n=this.dataStorePort,r=this;this.loading=!0;var i,o=document.getElementById("echarts-graph"),a=Eg["init"](o,null,{renderer:"canvas",useDirtyRect:!1,width:480,height:480});a.showLoading(),qe.a.post("".concat(aA.getOrigin({ip:e,port:n}),"/datastore/rest/services/dataset/nebula/").concat(this.dataStoreDataset,"/knowledgeGraph/graph/query?type=graphRelationType"),{id:this.Euid,pageSize:this.pageSize,pageOffset:0,step:3,relationshipTypes:["*"],direction:"Both",usePaging:!1}).then((function(e){var n=r.formatter(e.data);a.hideLoading();var o=n.categories;switch(n.categories=n.categories.map((function(t){return t={name:t},t})),i={tooltip:{position:"right",formatter:function(t){for(var e in t.data.properties)null==t.data.properties[e]&&delete t.data.properties[e];var n=JSON.stringify(t.data.properties);if(n){n=n.replaceAll('":',":"),n=n.replaceAll(/{|}|"|'/g,"");var r=n.split(","),i=r.join("<br>");return i}}},legend:{data:o,textStyle:{color:"#fff"}},animationDuration:1500,animationEasingUpdate:"quinticInOut",series:[{type:"graph",layout:t,roam:!0,categories:n.categories,links:n.links,label:{position:"right",formatter:"{b}"},emphasis:{focus:"adjacency",lineStyle:{width:10}}}]},t){case"force":i.series[0].force={repulsion:100},i.series[0].data=n.nodes.map((function(t,e){return t.id==r.Euid?t.symbolSize=15:t.symbolSize=7,t}));break;case"circular":i.series[0].data=n.nodes.map((function(t,e){return t.id==r.Euid?t.symbolSize=15:t.symbolSize=7,t})),i.series[0].lineStyle={color:"target",curveness:.3};break;case"none":i.series[0].label.show=!0,i.series[0].labelLayout={hideOverlap:!0},i.series[0].lineStyle={color:"target",curveness:.3},i.series[0].data=n.nodes.map((function(t,e){if(t.id==r.Euid)t.symbolSize=12,t.x=0,t.y=0;else switch(t.symbolSize=5,t.category){case 0:t.x=10*Math.random()+1,t.y=10*Math.random()+1;break;case 1:t.x=10*-Math.random()+1,t.y=10*Math.random()+1;break;case 2:t.x=10*Math.random()+1,t.y=10*-Math.random()+1;break;case 3:t.x=10*-Math.random()+1,t.y=10*-Math.random()+1;break}return t}));break}try{a.setOption(i,{notMerge:!0})}catch(s){console.log("setOptionError",s)}window.addEventListener("resize",a.resize),r.loading=!1}))},projectScreen:function(t){this.$emit("project-screen",t)},fileDataStore:function(t){this.dataStoreIp,this.dataStorePort;var e=[];return t.forEach((function(t){var n=t.toDataUrl,r=t.toExtInfo,i=n.split("/");if(i.length>0){var o=i[i.length-1],a=JSON.parse(r),s=a.ip,c=a.port,u=a.provider,l="".concat(aA.getOrigin({ip:s,port:c}),"/datastore/rest/services/file/").concat(u).concat(n,"/download?isPreview=true");e.push({name:o,url:l})}})),e},iotDevice:function(t){this.dataStoreIp,this.dataStorePort;var e=[];return t.forEach((function(t){var n=t.toDataUrl,r=t.toExtInfo,i=t.toID,o=JSON.parse(r),a=o.ip,s=o.port,c=o.provider,u="".concat(aA.getOrigin({ip:a,port:s}),"/datastore/rest/services/dataset/").concat(c).concat(n,"/iots/devices/videos");e.push({name:i,type:"hls",url:u})})),e}}},cA=sA,uA=(n("58aa"),je(cA,tA,eA,!1,null,"62c889d0",null)),lA=uA.exports,hA={components:{IotDetail:lA},name:"mapgis-3d-popup-iot",provide:function(){return{getProjectorStatus:this.getProjectorStatus}},props:{properties:{type:Object,default:function(){return{}}},dataStoreIp:{type:String,default:"192.168.96.101"},dataStorePort:{type:String,default:"9014"},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"},getProjectorStatus:{type:Function,default:function(){}},showAccessory:{type:Boolean,default:!0}},data:function(){return{showModal:!1,toType:""}},computed:{propertyKeys:function(){var t=[];for(var e in this.properties)"Euid"!==e&&"images"!==e&&"title"!==e&&t.push(e);return t},Euid:function(){return this.properties.Euid},images:function(){if(this.properties.images){var t=this.properties.images.split(";");return t||[]}return[]},title:function(){return this.properties.title?this.properties.title:null}},methods:{clickIot:function(t){this.showModal=!0,this.toType=t},projectScreen:function(t){this.$emit("project-screen",t)}}},dA=hA,fA=(n("17c9"),je(dA,Jg,Zg,!1,null,"793cedba",null)),pA=fA.exports,mA=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mapgis-3d-relationship-graph"},[n("mapgis-ui-spin",{attrs:{spinning:t.loading}},[n("mapgis-ui-setting-form",{attrs:{layout:"inline",size:"default"}},[n("mapgis-ui-form-item",{attrs:{label:"建筑面积:"}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,step:10,"addon-after":"㎡(及以上)"},model:{value:t.queryParams.jzmj,callback:function(e){t.$set(t.queryParams,"jzmj",e)},expression:"queryParams.jzmj"}})],1),n("mapgis-ui-form-item",{attrs:{label:"套内建筑面积:"}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,step:10,"addon-after":"㎡(及以上)"},model:{value:t.queryParams.tnjzmj,callback:function(e){t.$set(t.queryParams,"tnjzmj",e)},expression:"queryParams.tnjzmj"}})],1),n("mapgis-ui-form-item",{attrs:{label:"分摊系数:"}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,max:1,step:.1,"addon-after":"(及以上)"},model:{value:t.queryParams.ftxs,callback:function(e){t.$set(t.queryParams,"ftxs",e)},expression:"queryParams.ftxs"}})],1),n("mapgis-ui-form-item",{attrs:{label:"分摊建筑面积:"}},[n("mapgis-ui-input-number-addon",{attrs:{min:0,step:10,"addon-after":"㎡(及以上)"},model:{value:t.queryParams.ftjzmj,callback:function(e){t.$set(t.queryParams,"ftjzmj",e)},expression:"queryParams.ftjzmj"}})],1),n("mapgis-ui-form-item",[n("mapgis-ui-button",{on:{click:t.filterGraphData}},[t._v("查询")]),n("mapgis-ui-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resizeQueryparams}},[t._v("重置")])],1)],1),n("mapgis-ui-setting-form",{attrs:{layout:"inline",size:"default"}},[n("mapgis-ui-form-item",{attrs:{label:"图谱类型:"}},[n("mapgis-ui-space",{staticClass:"mapgis-relationship-icons",attrs:{slot:"extra"},slot:"extra"},t._l(t.relationshipTypeList,(function(e,r){return n("mapgis-ui-tooltip",{key:r},[n("template",{slot:"title"},[t._v(t._s(e.title))]),n("mapgis-ui-iconfont",{class:{active:e.active},attrs:{type:e.icon},on:{click:function(n){return t.handleSelectChange(e)}}})],2)})),1)],1),n("mapgis-ui-form-item",{directives:[{name:"show",rawName:"v-show",value:t.showRevert,expression:"showRevert"}],attrs:{label:""}},[n("mapgis-ui-button",{on:{click:t.goBack}},[t._v("返回")])],1)],1),n("div",{staticClass:"relationship-graph",attrs:{id:"relationship-graph"}},[n("div",{staticClass:"relationship-graph-left",attrs:{id:"relationship"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showTooltip,expression:"showTooltip"}],staticClass:"relationship-graph-right",style:{width:t.tooltipWidth+"px",maxHeight:t.tooltipHeight+"px"}},[n("mapgis-ui-iconfont",{staticClass:"right-close",attrs:{type:"mapgis-close"},on:{click:function(){return t.tooltipInfo=void 0}}}),n("div",{staticClass:"right-content",domProps:{innerHTML:t._s(t.tooltipInfo)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showAccessory,expression:"showAccessory"}],staticClass:"right-accessory"},[n("relation-accessory",{ref:"detailInfo",attrs:{toType:t.toType,dataStoreIp:t.info.dataStoreIp,dataStorePort:t.info.dataStorePort,dataStoreDataset:t.info.dataStoreDataset},on:{"project-screen":t.projectScreen}})],1)],1)])],1)],1)},gA=[],AA=n("07cd"),vA=n.n(AA),yA=n("0519"),bA=n.n(yA),wA=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mapgis-ui-spin",{attrs:{spinning:t.loading}},[n("div",{staticClass:"accessory-detail-title"},[n("h3",[t._v("附件")]),n("mapgis-ui-radio-group",{attrs:{"button-style":"solid",size:"small"},model:{value:t.isList,callback:function(e){t.isList=e},expression:"isList"}},[n("mapgis-ui-radio-button",{attrs:{value:!0}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-unorderedlist"}})],1),n("mapgis-ui-radio-button",{attrs:{value:!1}},[n("mapgis-ui-iconfont",{attrs:{type:"mapgis-table"}})],1)],1)],1),n("mapgis-ui-file-preview",{attrs:{isList:t.isList,files:t.files,isrelationShip:t.isrelationShip,videoToType:t.videoToType},on:{"project-screen":t.projectScreen}})],1)},_A=[];function xA(t){return xA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xA(t)}function SA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function CA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?SA(Object(n),!0).forEach((function(e){MA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function MA(t,e,n){return(e=LA(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function LA(t){var e=TA(t,"string");return"symbol"==xA(e)?e:e+""}function TA(t,e){if("object"!=xA(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=xA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function kA(t){return BA(t)||PA(t)||OA(t)||EA()}function EA(){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 OA(t,e){if(t){if("string"==typeof t)return IA(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IA(t,e):void 0}}function PA(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function BA(t){if(Array.isArray(t))return IA(t)}function IA(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var DA=eh["Util"].UrlUtil,NA={name:"RelationAccessory",props:{Euid:{type:String,default:""},toType:{type:Number,default:1},dataStoreIp:{type:String,default:""},dataStorePort:{type:String,default:""},dataStoreDataset:{type:String,default:"Graph3/GraphDataset1"}},data:function(){return{isList:!0,files:[],loading:!1,isrelationShip:!0,videoToType:301}},methods:{projectScreen:function(t){this.$emit("project-screen",t)},fileDataStore:function(t){this.dataStoreIp,this.dataStorePort;var e=[];return t.forEach((function(t){var n=t.toDataUrl,r=t.toExtInfo,i=t.toType,o=n.split("/");if(o.length>0){var a=o[o.length-1],s=JSON.parse(r),c=s.ip,u=s.port,l=s.provider,h="".concat(DA.getOrigin({ip:c,port:u}),"/datastore/rest/services/file/").concat(l).concat(n,"/download?isPreview=true");e.push({name:a,url:h,toType:i})}})),e},iotDevice:function(t){this.dataStoreIp,this.dataStorePort;var e=[];return t.forEach((function(t){var n=t.toDataUrl,r=t.toExtInfo,i=t.toID,o=t.toType,a=JSON.parse(r),s=a.ip,c=a.port,u=a.provider,l="".concat(DA.getOrigin({ip:s,port:c}),"/datastore/rest/services/dataset/").concat(u).concat(n,"/iots/devices/videos");e.push({name:i,type:"hls",url:l,toType:o})})),e},getAccessoryInfo:function(t){var e=this;Promise.all(this.getAccessory(t)).then((function(t){e.files=[].concat(kA(t[0]),kA(t[1])),e.loading=!1}))},getAccessory:function(t){var e=this;this.loading=!0;var n=[],r=this.dataStoreIp,i=this.dataStorePort,o=new Promise((function(n,o){var a=[];qe.a.get("".concat(DA.getOrigin({ip:r,port:i}),"/datastore/rest/services/dataset/relations"),{params:CA(CA({},t),{},{fromType:1,toType:e.toType,pageNo:1,pageSize:99})}).then((function(t){if(200===t.status){var r=t.data.data,i=r.total,o=r.rtn;e.total=i,a=e.fileDataStore(o),n(a)}})).catch((function(t){o(t)}))})),a=new Promise((function(n,o){var a=[];qe.a.get("".concat(DA.getOrigin({ip:r,port:i}),"/datastore/rest/services/dataset/relations"),{params:CA(CA({},t),{},{fromType:1,toType:e.videoToType,pageNo:1,pageSize:99})}).then((function(t){if(200===t.status){var r=t.data.data,i=r.total,o=r.rtn;e.total=i,a=e.iotDevice(o),n(a)}})).catch((function(t){o(t)}))}));return n.push(o),n.push(a),n}}},FA=NA,jA=(n("bad61"),je(FA,wA,_A,!1,null,"e67476aa",null)),RA=jA.exports,HA=function(t,e){return HA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},HA(t,e)};function zA(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}HA(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var UA=n("22d1"),VA=n("6d8b"),YA=function(t,e){return YA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},YA(t,e)};function GA(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}YA(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;function QA(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function WA(t,e){return t[0]=e[0],t[1]=e[1],t}function KA(t){return[t[0],t[1]]}function qA(t,e,n){return t[0]=e,t[1]=n,t}function XA(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function $A(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function JA(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function ZA(t){return Math.sqrt(tv(t))}function tv(t){return t[0]*t[0]+t[1]*t[1]}function ev(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function nv(t,e){var n=ZA(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function rv(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var iv=rv;function ov(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var av=ov;function sv(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function cv(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function uv(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function lv(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var hv=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),dv=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new hv(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new hv(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new hv(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new hv(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new hv(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new hv(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),fv=dv,pv=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[t].length-1,u=i[t][c];return u&&u.callAtLast?i[t].splice(c,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var c=r[s];if(!i||!i.filter||null==c.query||i.filter(t,c.query))switch(o){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,e[0]);break;case 2:c.h.call(c.ctx,e[0],e[1]);break;default:c.h.apply(c.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,c=0;c<s;c++){var u=r[c];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),mv=pv,gv=Math.log(2);function Av(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var c=Math.round(Math.log((1<<s)-1&~i)/gv);return t[n][c]}var u=r|1<<n,l=n+1;while(r&1<<l)l++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&i||(h+=(f%2?-1:1)*t[n][d]*Av(t,e-1,l,u,i|p,o),f++)}return o[a]=h,h}function vv(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=Av(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Av(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var yv="___zrEVENTSAVED";function bv(t,e,n,r,i){if(e.getBoundingClientRect&&UA["a"].domSupported&&!xv(e)){var o=e[yv]||(e[yv]={}),a=wv(e,o),s=_v(a,o,i);if(s)return s(t,n,r),!0}return!1}function wv(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,c=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[c]+":0",i[u]+":0",r[1-c]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function _v(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],c=!0,u=0;u<4;u++){var l=t[u].getBoundingClientRect(),h=2*u,d=l.left,f=l.top;a.push(d,f),c=c&&o&&d===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return c&&i?i:(e.srcCoords=a,e[r]=n?vv(s,a):vv(a,s))}function xv(t){return"CANVAS"===t.nodeName.toUpperCase()}var Sv=/([&<>"'])/g,Cv={"&":"&","<":"<",">":">",'"':""","'":"'"};function Mv(t){return null==t?"":(t+"").replace(Sv,(function(t,e){return Cv[e]}))}var Lv=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Tv=[],kv=UA["a"].browser.firefox&&+UA["a"].browser.version.split(".")[0]<39;function Ev(t,e,n,r){return n=n||{},r?Ov(t,e,n):kv&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Ov(t,e,n),n}function Ov(t,e,n){if(UA["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(xv(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(bv(Tv,t,r,i))return n.zrX=Tv[0],void(n.zrY=Tv[1])}n.zrX=n.zrY=0}function Pv(t){return t||window.event}function Bv(t,e,n){if(e=Pv(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&Ev(t,o,e,n)}else{Ev(t,e,e,n);var a=Iv(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&Lv.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Iv(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function Dv(t,e,n,r){t.addEventListener(e,n,r)}function Nv(t,e,n,r){t.removeEventListener(e,n,r)}var Fv=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function jv(t){return 2===t.which||3===t.which}var Rv=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],c=Ev(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in Uv)if(Uv.hasOwnProperty(e)){var n=Uv[e](this._track,t);if(n)return n}},t}();function Hv(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function zv(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Uv={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=Hv(r)/Hv(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=zv(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function Vv(){return[1,0,0,1,0,0]}function Yv(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Gv(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Qv(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],c=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=c,t}function Wv(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Kv(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],c=e[3],u=e[5],l=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*l,t[1]=-i*l+s*h,t[2]=o*h+c*l,t[3]=-o*l+h*c,t[4]=h*(a-r[0])+l*(u-r[1])+r[0],t[5]=h*(u-r[1])-l*(a-r[0])+r[1],t}function qv(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Xv(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],c=n*a-o*r;return c?(c=1/c,t[0]=a*c,t[1]=-o*c,t[2]=-r*c,t[3]=n*c,t[4]=(r*s-a*i)*c,t[5]=(o*i-n*s)*c,t):null}var $v=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),Jv=$v,Zv=Math.min,ty=Math.max,ey=new Jv,ny=new Jv,ry=new Jv,iy=new Jv,oy=new Jv,ay=new Jv,sy=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=Zv(t.x,this.x),n=Zv(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ty(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ty(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=Vv();return Wv(i,i,[-e.x,-e.y]),qv(i,i,[n,r]),Wv(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,c=e.x,u=e.x+e.width,l=e.y,h=e.y+e.height,d=!(o<c||u<i||s<l||h<a);if(n){var f=1/0,p=0,m=Math.abs(o-c),g=Math.abs(u-i),A=Math.abs(s-l),v=Math.abs(h-a),y=Math.min(m,g),b=Math.min(A,v);o<c||u<i?y>p&&(p=y,m<g?Jv.set(ay,-m,0):Jv.set(ay,g,0)):y<f&&(f=y,m<g?Jv.set(oy,m,0):Jv.set(oy,-g,0)),s<l||h<a?b>p&&(p=b,A<v?Jv.set(ay,0,-A):Jv.set(ay,0,v)):y<f&&(f=y,A<v?Jv.set(oy,0,A):Jv.set(oy,0,-v))}return n&&Jv.copy(n,d?oy:ay),d},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}ey.x=ry.x=n.x,ey.y=iy.y=n.y,ny.x=iy.x=n.x+n.width,ny.y=ry.y=n.y+n.height,ey.transform(r),iy.transform(r),ny.transform(r),ry.transform(r),e.x=Zv(ey.x,ny.x,ry.x,iy.x),e.y=Zv(ey.y,ny.y,ry.y,iy.y);var c=ty(ey.x,ny.x,ry.x,iy.x),u=ty(ey.y,ny.y,ry.y,iy.y);e.width=c-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),cy=sy,uy="silent";function ly(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:hy}}function hy(){Fv(this.event)}var dy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return GA(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(mv),fy=function(){function t(t,e){this.x=t,this.y=e}return t}(),py=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],my=new cy(0,0,0,0),gy=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new fy(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new dy,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new fv(a),a}return GA(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(VA["k"](py,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=yy(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new fy(e,n):this.findHover(e,n),s=a.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new fy(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=ly(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new fy(t,e);if(vy(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,c=new cy(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var l=r[u];l===n||l.ignore||l.ignoreCoarsePointer||l.parent&&l.parent.ignoreCoarsePointer||(my.copy(l.getBoundingRect()),l.transform&&my.applyTransform(l.transform),my.intersect(c)&&o.push(l))}if(o.length)for(var h=4,d=Math.PI/12,f=2*Math.PI,p=0;p<s;p+=h)for(var m=0;m<f;m+=d){var g=t+p*Math.cos(m),A=e+p*Math.sin(m);if(vy(o,i,g,A,n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Rv);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new fy;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(mv);function Ay(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||uy}return!1}function vy(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=Ay(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==uy)){e.target=a;break}}}function yy(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}VA["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){gy.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=yy(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||iv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var by=gy,wy=32,_y=7;function xy(t){var e=0;while(t>=wy)e|=1&t,t>>=1;return t+e}function Sy(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i<n&&r(t[i],t[i-1])<0)i++;Cy(t,e,i)}else while(i<n&&r(t[i],t[i-1])>=0)i++;return i-e}function Cy(t,e,n){n--;while(e<n){var r=t[e];t[e++]=t[n],t[n--]=r}}function My(t,e,n,r,i){for(r===e&&r++;r<n;r++){var o,a=t[r],s=e,c=r;while(s<c)o=s+c>>>1,i(a,t[o])<0?c=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function Ly(t,e,n,r,i,o){var a=0,s=0,c=1;if(o(t,e[n+i])>0){s=r-i;while(c<s&&o(t,e[n+i+c])>0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=i,c+=i}else{s=i+1;while(c<s&&o(t,e[n+i-c])<=0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s);var u=a;a=i-c,c=i-u}a++;while(a<c){var l=a+(c-a>>>1);o(t,e[n+l])>0?a=l+1:c=l}return c}function Ty(t,e,n,r,i,o){var a=0,s=0,c=1;if(o(t,e[n+i])<0){s=i+1;while(c<s&&o(t,e[n+i-c])<0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s);var u=a;a=i-c,c=i-u}else{s=r-i;while(c<s&&o(t,e[n+i+c])>=0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=i,c+=i}a++;while(a<c){var l=a+(c-a>>>1);o(t,e[n+l])<0?c=l:a=l+1}return c}function ky(t,e){var n,r,i=_y,o=0,a=[];function s(t,e){n[o]=t,r[o]=e,o+=1}function c(){while(o>1){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;l(t)}}function u(){while(o>1){var t=o-2;t>0&&r[t-1]<r[t+1]&&t--,l(t)}}function l(i){var a=n[i],s=r[i],c=n[i+1],u=r[i+1];r[i]=s+u,i===o-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),o--;var l=Ty(t[c],t,a,s,0,e);a+=l,s-=l,0!==s&&(u=Ly(t[a+s-1],t,c,u,u-1,e),0!==u&&(s<=u?h(a,s,c,u):d(a,s,c,u)))}function h(n,r,o,s){var c=0;for(c=0;c<r;c++)a[c]=t[n+c];var u=0,l=o,h=n;if(t[h++]=t[l++],0!==--s)if(1!==r){var d,f,p,m=i;while(1){d=0,f=0,p=!1;do{if(e(t[l],a[u])<0){if(t[h++]=t[l++],f++,d=0,0===--s){p=!0;break}}else if(t[h++]=a[u++],d++,f=0,1===--r){p=!0;break}}while((d|f)<m);if(p)break;do{if(d=Ty(t[l],a,u,r,0,e),0!==d){for(c=0;c<d;c++)t[h+c]=a[u+c];if(h+=d,u+=d,r-=d,r<=1){p=!0;break}}if(t[h++]=t[l++],0===--s){p=!0;break}if(f=Ly(a[u],t,l,s,0,e),0!==f){for(c=0;c<f;c++)t[h+c]=t[l+c];if(h+=f,l+=f,s-=f,0===s){p=!0;break}}if(t[h++]=a[u++],1===--r){p=!0;break}m--}while(d>=_y||f>=_y);if(p)break;m<0&&(m=0),m+=2}if(i=m,i<1&&(i=1),1===r){for(c=0;c<s;c++)t[h+c]=t[l+c];t[h+s]=a[u]}else{if(0===r)throw new Error;for(c=0;c<r;c++)t[h+c]=a[u+c]}}else{for(c=0;c<s;c++)t[h+c]=t[l+c];t[h+s]=a[u]}else for(c=0;c<r;c++)t[h+c]=a[u+c]}function d(n,r,o,s){var c=0;for(c=0;c<s;c++)a[c]=t[o+c];var u=n+r-1,l=s-1,h=o+s-1,d=0,f=0;if(t[h--]=t[u--],0!==--r)if(1!==s){var p=i;while(1){var m=0,g=0,A=!1;do{if(e(a[l],t[u])<0){if(t[h--]=t[u--],m++,g=0,0===--r){A=!0;break}}else if(t[h--]=a[l--],g++,m=0,1===--s){A=!0;break}}while((m|g)<p);if(A)break;do{if(m=r-Ty(a[l],t,n,r,r-1,e),0!==m){for(h-=m,u-=m,r-=m,f=h+1,d=u+1,c=m-1;c>=0;c--)t[f+c]=t[d+c];if(0===r){A=!0;break}}if(t[h--]=a[l--],1===--s){A=!0;break}if(g=s-Ly(t[u],a,0,s,s-1,e),0!==g){for(h-=g,l-=g,s-=g,f=h+1,d=l+1,c=0;c<g;c++)t[f+c]=a[d+c];if(s<=1){A=!0;break}}if(t[h--]=t[u--],0===--r){A=!0;break}p--}while(m>=_y||g>=_y);if(A)break;p<0&&(p=0),p+=2}if(i=p,i<1&&(i=1),1===s){for(h-=r,u-=r,f=h+1,d=u+1,c=r-1;c>=0;c--)t[f+c]=t[d+c];t[h]=a[l]}else{if(0===s)throw new Error;for(d=h-(s-1),c=0;c<s;c++)t[d+c]=a[c]}}else{for(h-=r,u-=r,f=h+1,d=u+1,c=r-1;c>=0;c--)t[f+c]=t[d+c];t[h]=a[l]}else for(d=h-(s-1),c=0;c<s;c++)t[d+c]=a[c]}return n=[],r=[],{mergeRuns:c,forceMergeRuns:u,pushRun:s}}function Ey(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<wy)return o=Sy(t,n,r,e),void My(t,n,r,n+o,e);var a=ky(t,e),s=xy(i);do{if(o=Sy(t,n,r,e),o<s){var c=i;c>s&&(c=s),My(t,n,n+c,n+o,e),o=c}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var Oy=1,Py=2,By=4,Iy=!1;function Dy(){Iy||(Iy=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ny(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Fy,jy=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ny}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,Ey(n,Ny)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];var i=r,o=t;while(i)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var c=a[s];t.__dirty&&(c.__dirty|=Oy),this._updateAndAddDisplayable(c,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Dy(),u.z=0),isNaN(u.z2)&&(Dy(),u.z2=0),isNaN(u.zlevel)&&(Dy(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var l=t.getDecalElement&&t.getDecalElement();l&&this._updateAndAddDisplayable(l,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=VA["q"](this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Ry=jy;Fy=UA["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Hy=Fy,zy={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-zy.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*zy.bounceIn(2*t):.5*zy.bounceOut(2*t-1)+.5}},Uy=zy,Vy=Math.pow,Yy=Math.sqrt,Gy=1e-8,Qy=1e-4,Wy=Yy(3),Ky=1/3,qy=QA(),Xy=QA(),$y=QA();function Jy(t){return t>-Gy&&t<Gy}function Zy(t){return t>Gy||t<-Gy}function tb(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function eb(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function nb(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),c=3*(e-t),u=t-i,l=s*s-3*a*c,h=s*c-9*a*u,d=c*c-3*s*u,f=0;if(Jy(l)&&Jy(h))if(Jy(s))o[0]=0;else{var p=-c/s;p>=0&&p<=1&&(o[f++]=p)}else{var m=h*h-4*l*d;if(Jy(m)){var g=h/l,A=(p=-s/a+g,-g/2);p>=0&&p<=1&&(o[f++]=p),A>=0&&A<=1&&(o[f++]=A)}else if(m>0){var v=Yy(m),y=l*s+1.5*a*(-h+v),b=l*s+1.5*a*(-h-v);y=y<0?-Vy(-y,Ky):Vy(y,Ky),b=b<0?-Vy(-b,Ky):Vy(b,Ky);p=(-s-(y+b))/(3*a);p>=0&&p<=1&&(o[f++]=p)}else{var w=(2*l*s-3*a*h)/(2*Yy(l*l*l)),_=Math.acos(w)/3,x=Yy(l),S=Math.cos(_),C=(p=(-s-2*x*S)/(3*a),A=(-s+x*(S+Wy*Math.sin(_)))/(3*a),(-s+x*(S-Wy*Math.sin(_)))/(3*a));p>=0&&p<=1&&(o[f++]=p),A>=0&&A<=1&&(o[f++]=A),C>=0&&C<=1&&(o[f++]=C)}}return f}function rb(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,c=0;if(Jy(a)){if(Zy(o)){var u=-s/o;u>=0&&u<=1&&(i[c++]=u)}}else{var l=o*o-4*a*s;if(Jy(l))i[0]=-o/(2*a);else if(l>0){var h=Yy(l),d=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[c++]=u),d>=0&&d<=1&&(i[c++]=d)}}return c}function ib(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,c=(r-n)*i+n,u=(s-a)*i+a,l=(c-s)*i+s,h=(l-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=l,o[6]=c,o[7]=r}function ob(t,e,n,r,i,o,a,s,c,u,l){var h,d,f,p,m,g=.005,A=1/0;qy[0]=c,qy[1]=u;for(var v=0;v<1;v+=.05)Xy[0]=tb(t,n,i,a,v),Xy[1]=tb(e,r,o,s,v),p=av(qy,Xy),p<A&&(h=v,A=p);A=1/0;for(var y=0;y<32;y++){if(g<Qy)break;d=h-g,f=h+g,Xy[0]=tb(t,n,i,a,d),Xy[1]=tb(e,r,o,s,d),p=av(Xy,qy),d>=0&&p<A?(h=d,A=p):($y[0]=tb(t,n,i,a,f),$y[1]=tb(e,r,o,s,f),m=av($y,qy),f<=1&&m<A?(h=f,A=m):g*=.5)}return l&&(l[0]=tb(t,n,i,a,h),l[1]=tb(e,r,o,s,h)),Yy(A)}function ab(t,e,n,r,i,o,a,s,c){for(var u=t,l=e,h=0,d=1/c,f=1;f<=c;f++){var p=f*d,m=tb(t,n,i,a,p),g=tb(e,r,o,s,p),A=m-u,v=g-l;h+=Math.sqrt(A*A+v*v),u=m,l=g}return h}function sb(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function cb(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function ub(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,c=0;if(Jy(o)){if(Zy(a)){var u=-s/a;u>=0&&u<=1&&(i[c++]=u)}}else{var l=a*a-4*o*s;if(Jy(l)){u=-a/(2*o);u>=0&&u<=1&&(i[c++]=u)}else if(l>0){var h=Yy(l),d=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[c++]=u),d>=0&&d<=1&&(i[c++]=d)}}return c}function lb(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function hb(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function db(t,e,n,r,i,o,a,s,c){var u,l=.005,h=1/0;qy[0]=a,qy[1]=s;for(var d=0;d<1;d+=.05){Xy[0]=sb(t,n,i,d),Xy[1]=sb(e,r,o,d);var f=av(qy,Xy);f<h&&(u=d,h=f)}h=1/0;for(var p=0;p<32;p++){if(l<Qy)break;var m=u-l,g=u+l;Xy[0]=sb(t,n,i,m),Xy[1]=sb(e,r,o,m);f=av(Xy,qy);if(m>=0&&f<h)u=m,h=f;else{$y[0]=sb(t,n,i,g),$y[1]=sb(e,r,o,g);var A=av($y,qy);g<=1&&A<h?(u=g,h=A):l*=.5}}return c&&(c[0]=sb(t,n,i,u),c[1]=sb(e,r,o,u)),Yy(h)}function fb(t,e,n,r,i,o,a){for(var s=t,c=e,u=0,l=1/a,h=1;h<=a;h++){var d=h*l,f=sb(t,n,i,d),p=sb(e,r,o,d),m=f-s,g=p-c;u+=Math.sqrt(m*m+g*g),s=f,c=p}return u}var pb=/cubic-bezier\(([0-9,\.e ]+)\)/;function mb(t){var e=t&&pb.exec(t);if(e){var n=e[1].split(","),r=+Object(VA["Q"])(n[0]),i=+Object(VA["Q"])(n[1]),o=+Object(VA["Q"])(n[2]),a=+Object(VA["Q"])(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:nb(0,r,o,1,t,s)&&tb(0,i,a,1,s[0])}}}var gb=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||VA["I"],this.ondestroy=t.ondestroy||VA["I"],this.onrestart=t.onrestart||VA["I"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(VA["u"])(t)?t:Uy[t]||mb(t)},t}(),Ab=gb,vb=n("41ef"),yb=n("7a29"),bb=Array.prototype.slice;function wb(t,e,n){return(e-t)*n+t}function _b(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=wb(e[o],n[o],r);return t}function xb(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=wb(e[a][s],n[a][s],r)}return t}function Sb(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function Cb(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function Mb(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function Lb(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var c=o;c<a;c++)r.push(1===n?i[c]:bb.call(i[c]))}var u=r[0]&&r[0].length;for(c=0;c<r.length;c++)if(1===n)isNaN(r[c])&&(r[c]=i[c]);else for(var l=0;l<u;l++)isNaN(r[c][l])&&(r[c][l]=i[c][l])}}function Tb(t){if(Object(VA["t"])(t)){var e=t.length;if(Object(VA["t"])(t[0])){for(var n=[],r=0;r<e;r++)n.push(bb.call(t[r]));return n}return bb.call(t)}return t}function kb(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Eb(t){return Object(VA["t"])(t&&t[0])?2:1}var Ob=0,Pb=1,Bb=2,Ib=3,Db=4,Nb=5,Fb=6;function jb(t){return t===Db||t===Nb}function Rb(t){return t===Pb||t===Bb}var Hb=[0,0,0,0],zb=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=Fb,s=e;if(Object(VA["t"])(e)){var c=Eb(e);a=c,(1===c&&!Object(VA["x"])(e[0])||2===c&&!Object(VA["x"])(e[0][0]))&&(o=!0)}else if(Object(VA["x"])(e)&&!Object(VA["l"])(e))a=Ob;else if(Object(VA["A"])(e))if(isNaN(+e)){var u=vb["parse"](e);u&&(s=u,a=Ib)}else a=Ob;else if(Object(VA["v"])(e)){var l=Object(VA["m"])({},s);l.colorStops=Object(VA["F"])(e.colorStops,(function(t){return{offset:t.offset,color:vb["parse"](t.color)}})),Object(yb["a"])(e)?a=Db:Object(yb["b"])(e)&&(a=Nb),s=l}0===i?this.valType=a:a===this.valType&&a!==Fb||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(VA["u"])(n)?n:Uy[n]||mb(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=Rb(r),c=jb(r),u=0;u<i;u++){var l=n[u],h=l.value,d=o.value;l.percent=l.time/t,a||(s&&u!==i-1?Lb(h,d,r):c&&Mb(h.colorStops,d.colorStops))}if(!a&&r!==Nb&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var f=n[0].value;for(u=0;u<i;u++)r===Ob?n[u].additiveValue=n[u].value-f:r===Ib?n[u].additiveValue=Sb([],n[u].value,f,-1):Rb(r)&&(n[u].additiveValue=r===Pb?Sb([],n[u].value,f,-1):Cb([],n[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,c=this.keyframes,u=c.length,l=this.propName,h=s===Ib,d=this._lastFr,f=Math.min;if(1===u)r=i=c[0];else{if(e<0)n=0;else if(e<this._lastFrP){var p=f(d+1,u-1);for(n=p;n>=0;n--)if(c[n].percent<=e)break;n=f(n,u-2)}else{for(n=d;n<u;n++)if(c[n].percent>e)break;n=f(n-1,u-2)}i=c[n+1],r=c[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var m=i.percent-r.percent,g=0===m?1:f((e-r.percent)/m,1);i.easingFunc&&(g=i.easingFunc(g));var A=o?this._additiveValue:h?Hb:t[l];if(!Rb(s)&&!h||A||(A=this._additiveValue=[]),this.discrete)t[l]=g<1?r.rawValue:i.rawValue;else if(Rb(s))s===Pb?_b(A,r[a],i[a],g):xb(A,r[a],i[a],g);else if(jb(s)){var v=r[a],y=i[a],b=s===Db;t[l]={type:b?"linear":"radial",x:wb(v.x,y.x,g),y:wb(v.y,y.y,g),colorStops:Object(VA["F"])(v.colorStops,(function(t,e){var n=y.colorStops[e];return{offset:wb(t.offset,n.offset,g),color:kb(_b([],t.color,n.color,g))}})),global:y.global},b?(t[l].x2=wb(v.x2,y.x2,g),t[l].y2=wb(v.y2,y.y2,g)):t[l].r=wb(v.r,y.r,g)}else if(h)_b(A,r[a],i[a],g),o||(t[l]=kb(A));else{var w=wb(r[a],i[a],g);o?this._additiveValue=w:t[l]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===Ob?t[n]=t[n]+r:e===Ib?(vb["parse"](t[n],Hb),Sb(Hb,Hb,r,1),t[n]=kb(Hb)):e===Pb?Sb(t[n],t[n],r,1):e===Bb&&Cb(t[n],t[n],r,1)},t}(),Ub=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(VA["E"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(VA["D"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new zb(a);var c=void 0,u=this._getAdditiveTrack(a);if(u){var l=u.keyframes,h=l[l.length-1];c=h&&h.value,u.valType===Ib&&c&&(c=kb(c))}else c=this._target[a];if(null==c)continue;t>0&&s.addKeyframe(0,Tb(c),r),this._trackKeys.push(a)}s.addKeyframe(t,Tb(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),c=a.keyframes,u=c.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var l=c[u-1];l&&(e._target[a.propName]=l.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Ab({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(VA["F"])(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=Tb(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(VA["D"])(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),Vb=Ub;function Yb(){return(new Date).getTime()}var Gb=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return GA(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=Yb()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(Hy(e),!t._paused&&t.update())}this._running=!0,Hy(e)},e.prototype.start=function(){this._running||(this._time=Yb(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Yb(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Yb()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Vb(t,e.loop);return this.addAnimator(n),n},e}(mv),Qb=Gb,Wb=300,Kb=UA["a"].domSupported,qb=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=VA["F"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),Xb={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},$b=!1;function Jb(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Zb(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function tw(t){t&&(t.zrByTouch=!0)}function ew(t,e){return Bv(t.dom,new rw(t,e),!0)}function nw(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var rw=function(){function t(t,e){this.stopPropagation=VA["I"],this.stopImmediatePropagation=VA["I"],this.preventDefault=VA["I"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),iw={mousedown:function(t){t=Bv(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Bv(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Bv(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Bv(this.dom,t);var e=t.toElement||t.relatedTarget;nw(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){$b=!0,t=Bv(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){$b||(t=Bv(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Bv(this.dom,t),tw(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),iw.mousemove.call(this,t),iw.mousedown.call(this,t)},touchmove:function(t){t=Bv(this.dom,t),tw(t),this.handler.processGesture(t,"change"),iw.mousemove.call(this,t)},touchend:function(t){t=Bv(this.dom,t),tw(t),this.handler.processGesture(t,"end"),iw.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Wb&&iw.click.call(this,t)},pointerdown:function(t){iw.mousedown.call(this,t)},pointermove:function(t){Jb(t)||iw.mousemove.call(this,t)},pointerup:function(t){iw.mouseup.call(this,t)},pointerout:function(t){Jb(t)||iw.mouseout.call(this,t)}};VA["k"](["click","dblclick","contextmenu"],(function(t){iw[t]=function(e){e=Bv(this.dom,e),this.trigger(t,e)}}));var ow={pointermove:function(t){Jb(t)||ow.mousemove.call(this,t)},pointerup:function(t){ow.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function aw(t,e){var n=e.domHandlers;UA["a"].pointerEventsSupported?VA["k"](qb.pointer,(function(r){cw(e,r,(function(e){n[r].call(t,e)}))})):(UA["a"].touchEventsSupported&&VA["k"](qb.touch,(function(r){cw(e,r,(function(i){n[r].call(t,i),Zb(e)}))})),VA["k"](qb.mouse,(function(r){cw(e,r,(function(i){i=Pv(i),e.touching||n[r].call(t,i)}))})))}function sw(t,e){function n(n){function r(r){r=Pv(r),nw(t,r.target)||(r=ew(t,r),e.domHandlers[n].call(t,r))}cw(e,n,r,{capture:!0})}UA["a"].pointerEventsSupported?VA["k"](Xb.pointer,n):UA["a"].touchEventsSupported||VA["k"](Xb.mouse,n)}function cw(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,Dv(t.domTarget,e,n,r)}function uw(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Nv(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var lw=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),hw=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new lw(e,iw),Kb&&(r._globalHandlerScope=new lw(document,ow)),aw(r,r._localHandlerScope),r}return GA(e,t),e.prototype.dispose=function(){uw(this._localHandlerScope),Kb&&uw(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Kb&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?sw(this,e):uw(e)}},e}(mv),dw=hw,fw=1;UA["a"].hasGlobalWindow&&(fw=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var pw=fw,mw=.4,gw="#333",Aw="#ccc",vw="#eee",yw=Yv,bw=5e-5;function ww(t){return t>bw||t<-bw}var _w=[],xw=[],Sw=Vv(),Cw=Math.abs,Mw=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return ww(this.rotation)||ww(this.x)||ww(this.y)||ww(this.scaleX-1)||ww(this.scaleY-1)||ww(this.skewX)||ww(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Vv(),e?this.getLocalTransform(n):yw(n),t&&(e?Qv(n,t,n):Gv(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(yw(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(_w);var n=_w[0]<0?-1:1,r=_w[1]<0?-1:1,i=((_w[0]-n)*e+n)/_w[0]||0,o=((_w[1]-r)*e+r)/_w[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Vv(),Xv(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Vv(),Qv(xw,t.invTransform,e),e=xw);var n=this.originX,r=this.originY;(n||r)&&(Sw[4]=n,Sw[5]=r,Qv(xw,e,Sw),xw[4]-=n,xw[5]-=r,e=xw),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&cv(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&cv(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Cw(t[0]-1)>1e-10&&Cw(t[3]-1)>1e-10?Math.sqrt(Cw(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Tw(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,c=t.rotation||0,u=t.x,l=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var f=n+a,p=r+s;e[4]=-f*i-h*p*o,e[5]=-p*o-d*f*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=d*i,e[2]=h*o,c&&Kv(e,e,c),e[4]+=n+u,e[5]+=r+l,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Lw=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Tw(t,e){for(var n=0;n<Lw.length;n++){var r=Lw[n];t[r]=e[r]}}var kw=Mw,Ew=n("d51b"),Ow=n("726e"),Pw={};function Bw(t,e){e=e||Ow["a"];var n=Pw[e];n||(n=Pw[e]=new Ew["a"](500));var r=n.get(t);return null==r&&(r=Ow["c"].measureText(t,e).width,n.put(t,r)),r}function Iw(t,e,n,r){var i=Bw(t,e),o=jw(e),a=Nw(0,i,n),s=Fw(0,o,r),c=new cy(a,s,i,o);return c}function Dw(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return Iw(i[0],e,n,r);for(var a=new cy(0,0,0,0),s=0;s<i.length;s++){var c=Iw(i[s],e,n,r);0===s?a.copy(c):a.union(c)}return a}function Nw(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Fw(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function jw(t){return Bw("国",t)}function Rw(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Hw(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,c=n.x,u=n.y,l="left",h="top";if(r instanceof Array)c+=Rw(r[0],n.width),u+=Rw(r[1],n.height),l=null,h=null;else switch(r){case"left":c-=i,u+=s,l="right",h="middle";break;case"right":c+=i+a,u+=s,h="middle";break;case"top":c+=a/2,u-=i,l="center",h="bottom";break;case"bottom":c+=a/2,u+=o+i,l="center";break;case"inside":c+=a/2,u+=s,l="center",h="middle";break;case"insideLeft":c+=i,u+=s,h="middle";break;case"insideRight":c+=a-i,u+=s,l="right",h="middle";break;case"insideTop":c+=a/2,u+=i,l="center";break;case"insideBottom":c+=a/2,u+=o-i,l="center",h="bottom";break;case"insideTopLeft":c+=i,u+=i;break;case"insideTopRight":c+=a-i,u+=i,l="right";break;case"insideBottomLeft":c+=i,u+=o-i,h="bottom";break;case"insideBottomRight":c+=a-i,u+=o-i,l="right",h="bottom";break}return t=t||{},t.x=c,t.y=u,t.align=l,t.verticalAlign=h,t}var zw="__zr_normal__",Uw=Lw.concat(["ignore"]),Vw=Object(VA["K"])(Lw,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Yw={},Gw=new cy(0,0,0,0),Qw=function(){function t(t){this.id=Object(VA["o"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var c=!1;if(i.copyTransform(e),null!=n.position){var u=Gw;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Yw,n,u):Hw(Yw,n,u),i.x=Yw.x,i.y=Yw.y,o=Yw.align,a=Yw.verticalAlign;var l=n.origin;if(l&&null!=n.rotation){var h=void 0,d=void 0;"center"===l?(h=.5*u.width,d=.5*u.height):(h=Rw(l[0],u.width),d=Rw(l[1],u.height)),c=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+d+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var f=n.offset;f&&(i.x+=f[0],i.y+=f[1],c||(i.originX=-f[0],i.originY=-f[1]));var p=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,A=void 0,v=void 0;p&&this.canBeInsideText()?(g=n.insideFill,A=n.insideStroke,null!=g&&"auto"!==g||(g=this.getInsideTextFill()),null!=A&&"auto"!==A||(A=this.getInsideTextStroke(g),v=!0)):(g=n.outsideFill,A=n.outsideStroke,null!=g&&"auto"!==g||(g=this.getOutsideFill()),null!=A&&"auto"!==A||(A=this.getOutsideStroke(g),v=!0)),g=g||"#000",g===m.fill&&A===m.stroke&&v===m.autoStroke&&o===m.align&&a===m.verticalAlign||(s=!0,m.fill=g,m.stroke=A,m.autoStroke=v,m.align=o,m.verticalAlign=a,e.setDefaultTextStyle(m)),e.__dirty|=Oy,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Aw:gw},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(vb["parse"])(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(vb["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(VA["m"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(VA["y"])(t))for(var n=t,r=Object(VA["D"])(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==zw)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Uw)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(zw,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===zw,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(VA["q"])(a,t)>=0)||!e&&1!==a.length){var c;if(this.stateProxy&&!i&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),c||i){i||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var l=this._textContent,h=this._textGuide;return l&&l.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oy),c}Object(VA["E"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var c=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(c,t)),u||(u=this.states[c]),u&&r.push(u)}var l=r[o-1],h=!!(l&&l.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,m=this._textGuide;p&&p.useStates(t,e,h),m&&m.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oy)}else this.clearStates()},t.prototype.isSilent=function(){var t=this.silent,e=this.parent;while(!t&&e){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(VA["q"])(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(VA["q"])(r,t),o=Object(VA["q"])(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];Object(VA["m"])(n,i),i.textConfig&&(e=e||{},Object(VA["m"])(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=Object(VA["m"])({},r?this.textConfig:n.textConfig),Object(VA["m"])(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,u=0;u<Uw.length;u++){var l=Uw[u],h=i&&Vw[l];e&&null!=e[l]?h?(c=!0,s[l]=e[l]):this[l]=e[l]:a&&null!=n[l]&&(h?(c=!0,s[l]=n[l]):this[l]=n[l])}if(!i)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||n)[f]:e||n)}c&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new kw,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(VA["m"])(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Oy;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this;var i=new Vb(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,n=Object(VA["q"])(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){Ww(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Ww(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Ww(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Oy;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){if(!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Ww(t,e,n,r,i){n=n||{};var o=[];Zw(t,"",t,e,n,r,o,i);var a=o.length,s=!1,c=n.done,u=n.aborted,l=function(){s=!0,a--,a<=0&&(s?c&&c():u&&u())},h=function(){a--,a<=0&&(s?c&&c():u&&u())};a||c&&c(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d<o.length;d++){var f=o[d];l&&f.done(l),h&&f.aborted(h),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function Kw(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function qw(t){return Object(VA["t"])(t[0])}function Xw(t,e,n){if(Object(VA["t"])(e[n]))if(Object(VA["t"])(t[n])||(t[n]=[]),Object(VA["C"])(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Kw(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(qw(i))for(var s=i[0].length,c=0;c<a;c++)o[c]?Kw(o[c],i[c],s):o[c]=Array.prototype.slice.call(i[c]);else Kw(o,i,a);o.length=i.length}else t[n]=e[n]}function $w(t,e){return t===e||Object(VA["t"])(t)&&Object(VA["t"])(e)&&Jw(t,e)}function Jw(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Zw(t,e,n,r,i,o,a,s){for(var c=Object(VA["D"])(r),u=i.duration,l=i.delay,h=i.additive,d=i.setToFinal,f=!Object(VA["y"])(o),p=t.animators,m=[],g=0;g<c.length;g++){var A=c[g],v=r[A];if(null!=v&&null!=n[A]&&(f||o[A]))if(!Object(VA["y"])(v)||Object(VA["t"])(v)||Object(VA["v"])(v))m.push(A);else{if(e){s||(n[A]=v,t.updateDuringAnimation(e));continue}Zw(t,A,n[A],v,i,o&&o[A],a,s)}else s||(n[A]=v,t.updateDuringAnimation(e),m.push(A))}var y=m.length;if(!h&&y)for(var b=0;b<p.length;b++){var w=p[b];if(w.targetName===e){var _=w.stopTracks(m);if(_){var x=Object(VA["q"])(p,w);p.splice(x,1)}}}if(i.force||(m=Object(VA["n"])(m,(function(t){return!$w(r[t],n[t])})),y=m.length),y>0||i.force&&!a.length){var S=void 0,C=void 0,M=void 0;if(s){C={},d&&(S={});for(b=0;b<y;b++){A=m[b];C[A]=n[A],d?S[A]=r[A]:n[A]=r[A]}}else if(d){M={};for(b=0;b<y;b++){A=m[b];M[A]=Tb(n[A]),Xw(n,r,A)}}w=new Vb(n,!1,!1,h?Object(VA["n"])(p,(function(t){return t.targetName===e})):null);w.targetName=e,i.scope&&(w.scope=i.scope),d&&S&&w.whenWithKeys(0,S,m),M&&w.whenWithKeys(0,M,m),w.whenWithKeys(null==u?500:u,s?C:r,m).delay(l||0),t.addAnimator(w,e),a.push(w)}}Object(VA["H"])(Qw,mv),Object(VA["H"])(Qw,kw);var t_=Qw,e_=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return GA(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=VA["q"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=VA["q"](n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new cy(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),c=a.getLocalTransform(r);c?(cy.applyTransform(e,s,c),i=i||e.clone(),i.union(e)):(i=i||s.clone(),i.union(s))}}return i||e},e}(t_);e_.prototype.type="group";var n_=e_,r_={},i_={};
|
|
945
945
|
/*!
|
|
946
946
|
* ZRender, a high performance 2d drawing library.
|
|
947
947
|
*
|