!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):e.Plugins=t()}(this,function(){"use strict";vare=(t.prototype._addListener=function(e,t,i){if(this.emit("newListener",e,t),this.events.has(e)){varr=this.events.get(e);i?r.unshift(t):r.push(t)}elsethis.events.set(e,[t]);varo=this.getMaxListeners();if(0<o&&this.listenerCount(e)>o){varn=newError("Possible EventEmitter memory leak detected.\n "+this.listenerCount(e)+" "+e.toString()+" listeners.\n Use emitter.setMaxListeners() to increase limit");n.name="MaxListenersExceededWarning",console.warn(n)}returnthis},t.prototype.addListener=function(e,t){returnthis._addListener(e,t,!1)},t.prototype.emit=function(e){for(vart=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(this.events.has(e)){for(varr=0,o=this.events.get(e).slice();r<o.length;r++){varn=o[r];try{n.apply(this,t)}catch(e){this.emit("error",e)}}return!0}if("error"===e)throw0<t.length?t[0]:Error("Unhandled error.");return!1},t.prototype.eventNames=function(){returnArray.from(this.events.keys())},t.prototype.getMaxListeners=function(){returnthis.maxListeners||t.defaultMaxListeners},t.prototype.listenerCount=function(e){returnthis.events.has(e)?this.events.get(e).length:0},t.prototype._listeners=function(e,t,i){if(!e.events.has(t))return[];varr=e.events.get(t);returni?this.unwrapListeners(r):r.slice(0)},t.prototype.unwrapListeners=function(e){for(vart=newArray(e.length),i=0;i<e.length;i++)t[i]=e[i].listener||e[i];returnt},t.prototype.listeners=function(e){returnthis._listeners(this,e,!0)},t.prototype.rawListeners=function(e){returnthis._listeners(this,e,!1)},t.prototype.off=function(e,t){returnthis.removeListener(e,t)},t.prototype.on=function(e,t){returnthis.addListener(e,t)},t.prototype.once=function(e,t){vari=this.onceWrap(e,t);returnthis.on(e,i),this},t.prototype.onceWrap=function(e,t){functioni(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.context.removeListener(this.eventName,this.rawListener),this.listener.apply(this.context,e)}varr={eventName:e,listener:t,rawListener:i,context:this},o=i.bind(r);return(r.rawListener=o).listener=t,o},t.prototype.prependListener=function(e,t){returnthis._addListener(e,t,!0)},t.prototype.prependOnceListener=function(e,t){vari=this.onceWrap(e,t);returnthis.prependListener(e,i),this},t.prototype.removeAllListeners=function(e){vart=this;if(void0===this.events)returnthis;if(this.events.has(e)){vari=this.events.get(e).slice();this.events.delete(e);for(varr=0,o=i;r<o.length;r++){varn=o[r];this.emit("removeListener",e,n)}}elsethis.eventNames().map(function(e){t.removeAllListeners(e)});returnthis},t.prototype.removeListener=function(e,t){if(this.events.has(e)){vari=this.events.get(e);-1!==i.indexOf(t)&&(i.splice(i.indexOf(t),1),this.emit("removeListener",e,t),0===i.length&&this.events.delete(e))}returnthis},t.prototype.setMaxListeners=function(e){returnthis.maxListeners=e,this},t.defaultMaxListeners=50,t);functiont(){this.events=newMap}vary=(i.jsapi="http://10.108.3.16/smiapi/arcgis",i.jsapiversion4X="4.15",i);functioni(){}vara=y.jsapiversion4X,o="next";functionn(e){if(null===e&&(e=a),e.toString().toLowerCase()===o)returno;vart=e&&e.match(/^(\d)\.(\d+)/);returnt&&{major:parseInt(t[1],10),minor:parseInt(t[2],10)}}functionl(e){returnvoid0===e&&(e=a),y.jsapi+"/"+e+"/init.js"}functions(e){vart=document.createElement("link");returnt.rel="stylesheet",t.href=e,t}functionu(e,t){if(t){vari=document.querySelector(t);i.parentNode.insertBefore(e,i)}elsedocument.head.appendChild(e)}functiond(e){returndocument.querySelector('link[href*="'+e+'"]')}functionc(e){return!e||n(e)?function(e){void0===e&&(e=a),null===e&&(e=a);vart=l(e),i=t.substring(0,t.indexOf("init.js")),r=n(e);returnr===o||3!==r.major?i+"esri/themes/light/main.css":i+(r.minor<=10?"js/":"")+"esri/css/esri.css"}(e):e}functionp(e,t){vari=c(e),r=d(i);if(r||u(r=s(i),t),4===function(e){null===e&&(e=a);vart=e&&e.match(/^(\d)\.(\d+)/);returnt&&{major:parseInt(t[1],10),minor:parseInt(t[2],10)}}(e).major){varo=i.substring(0,i.indexOf("esri/themes/"))+"esri/themes/gis/css/gis.css",n=d(o);n||u(n=s(o),t)}returnr}varr={Promise:"undefined"!=typeofwindow?window.Promise:void0},f={};functionh(e,t,i){varr,o,n,a;i&&(n=i,a=function(e){n(e.error||newError("There was an error attempting to load "+o.src)),o.removeEventListener("error",a,!1)},(o=e).addEventListener("error",a,!1),r=a);varl=function(){t(e),e.removeEventListener("load",l,!1),r&&e.removeEventListener("error",r,!1)};e.addEventListener("load",l,!1)}functionv(){returndocument.querySelector("script[data-shsmi]")}functionb(){vare=window.require;returne&&e.on}functionm(e){void0===e&&(e={});vars={};[f,e].forEach(function(e){for(vartine)Object.prototype.hasOwnProperty.call(e,t)&&(s[t]=e[t])});varu=s.version,d=s.url||l(u);returnnewr.Promise(function(e,t){vari,r,o=v();if(o){varn=o.getAttribute("src");n!==d?t(newError("The ArcGIS API for JavaScript is already loaded ("+n+").")):b()?e(o):h(o,e,t)}elseif(b())t(newError("The ArcGIS API for JavaScript is already loaded."));else{vara=s.css;if(a)p(!0===a?u:a,s.insertCssBefore);elsep(null,s.insertCssBefore);if(s.dojoConfig)window.dojoConfig=s.dojoConfig;else{varl={async:!0,packages:[{location:y.jsapi+"/extensions",name:"smiapi"},{location:y.jsapi+"/extensions/geolocation",name:"geolocate",main:"geolocate"}],deps:["@dojo/framework/shim/main"],has:{"esri-promise-compatibility":1,"esri-featurelayer-webgl":1}};window.dojoConfig=l}i=d,(r=document.createElement("script")).type="text/javascript",r.src=i,r.setAttribute("data-shsmi","loading"),h(o=r,function(){o.setAttribute("data-shsmi","loaded"),e(o)},t),document.head.appendChild(o)}})}functionw(t){returnnewr.Promise(function(i,e){varr=window.require.on("error",e);window.require(t,function(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.remove(),i(e)})})}functiong(e,t){if(void0===t&&(t={}),b())returnw(e);vari=v(),r=i&&i.getAttribute("src");return!t.url&&r&&(t.url=r),m(t).then(function(){returnw(e)})}varL=(x.prototype.S4=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)},x.prototype.get_uuid=function(){returnthis.S4()+this.S4()+"-"+this.S4()+"-"+this.S4()+"-"+this.S4()+"-"+this.S4()+this.S4()+this.S4()},x);functionx(){this.uuid=this.get_uuid()}vark=(z.maploaded="maploaded",z.zoomchanged="zoomchanged",z.extentchanged="extentchanged",z.centerchanged="centerchanged",z.blur="blur",z.click="click",z.doubleclick="doubleclick",z.drag="drag",z.focus="focus",z.hold="hold",z.keydown="key-down",z.keyup="key-up",z.mousewheel="mouse-wheel",z.pointerdown="pointer-down",z.pointerenter="pointer-enter",z.pointerleave="pointer-leave",z.pointermove="pointer-move",z.pointerup="pointer-up",z.resize="pointer-up",z.popupvisible="popup-visible",z);functionz(){}varC,S,I=(C=function(e,t){return(C=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(variint)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){functioni(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)}),R=function(e,a,l,s){returnnew(l=l||Promise)(function(i,t){functionr(e){try{n(s.next(e))}catch(e){t(e)}}functiono(e){try{n(s.throw(e))}catch(e){t(e)}}functionn(e){vart;e.done?i(e.value):((t=e.value)instanceofl?t:newl(function(e){e(t)})).then(r,o)}n((s=s.apply(e,a||[])).next())})},A=function(i,r){varo,n,a,e,l={label:0,sent:function(){if(1&a[0])throwa[1];returna[1]},trys:[],ops:[]};returne={next:t(0),throw:t(1),return:t(2)},"function"==typeofSymbol&&(e[Symbol.iterator]=function(){returnthis}),e;functiont(t){returnfunction(e){returnfunction(t){if(o)thrownewTypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&t[0]?n.return:t[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,t[1])).done)returna;switch(n=0,a&&(t=[2&t[0],a.value]),t[0]){case0:case1:a=t;break;case4:returnl.label++,{value:t[1],done:!1};case5:l.label++,n=t[1],t=[0];continue;case7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(i,l)}catch(e){t=[6,e],n=0}finally{o=a=0}if(5&t[0])throwt[1];return{value:t[0]?t[1]:void0,done:!0}}([t,e])}}},E=(I(B,S=e),B.prototype.add=function(a){varl=this;void0===a&&(a={}),g(["esri/layers/GraphicsLayer","esri/Graphic","esri/layers/FeatureLayer"]).then(function(e){vart=e[0],o=e[1],i=e[2];if(l.view){varr=null;if(a.boundaryType&&(r=l.view.map.findLayerById(a.boundaryType)),r||a.url&&(r=newi({url:a.url,id:a.boundaryType,title:a.boundaryType,visible:!1}),l.view.map.add(r)),r){varn=r.createQuery();n.where=a.boundaryDefinition,r.queryFeatures(n).then(function(e){if(0<e.features.length){vari,r=l.view.map.findLayerById(l.displayedLayerid);void0===r&&(r=newt({title:l.displayedLayerid+"边界",id:l.displayedLayerid,listMode:"hide"}),l.view.map.add(r)),i=void0!==a.symbol?a.symbol:{type:"simple-fill",color:[255,255,255,0],outline:{color:[255,255,0,1],width:"5px"}},e.features.map(function(e){vart=newo({geometry:e.geometry,symbol:i,attributes:e.attributes});r.add(t)})}})}}}).catch(function(e){console.error(e)})},B.prototype.remove=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&this.view.map.remove(e)},B.prototype.show=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&(e.visible=!0)},B.prototype.hide=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&(e.visible=!1)},B.prototype.init=function(t){returnR(this,void0,void0,function(){varr=this;returnA(this,function(e){returnthis.displayedLayerid=(newL).uuid,this.view=t,this.view.on(k.click,function(i){r.view.hitTest(i).then(function(t){returnR(r,void0,void0,function(){returnA(this,function(e){return0<t.results.length&&t.results[0].graphic.layer.id===this.displayedLayerid&&this.emit(k.click,t.results[0].graphic,i.mapPoint),[2]})})})}),this.view.on(k.pointermove,function(i){r.view.hitTest(i).then(function(t){returnR(r,void0,void0,function(){returnA(this,function(e){return0<t.results.length&&t.results[0].graphic.layer.id===this.displayedLayerid&&this.emit(k.pointermove,t.results[0].graphic,i.mapPoint),[2]})})})}),[2]})})},B);functionB(e){vart=S.call(this)||this;returnt.displayedLayerid="",t.view=null,t.init(e),t}var_,P,M=(_=function(e,t){return(_=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(variint)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){functioni(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)}),j=function(e,a,l,s){returnnew(l=l||Promise)(function(i,t){functionr(e){try{n(s.next(e))}catch(e){t(e)}}functiono(e){try{n(s.throw(e))}catch(e){t(e)}}functionn(e){vart;e.done?i(e.value):((t=e.value)instanceofl?t:newl(function(e){e(t)})).then(r,o)}n((s=s.apply(e,a||[])).next())})},O=function(i,r){varo,n,a,e,l={label:0,sent:function(){if(1&a[0])throwa[1];returna[1]},trys:[],ops:[]};returne={next:t(0),throw:t(1),return:t(2)},"function"==typeofSymbol&&(e[Symbol.iterator]=function(){returnthis}),e;functiont(t){returnfunction(e){returnfunction(t){if(o)thrownewTypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&t[0]?n.return:t[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,t[1])).done)returna;switch(n=0,a&&(t=[2&t[0],a.value]),t[0]){case0:case1:a=t;break;case4:returnl.label++,{value:t[1],done:!1};case5:l.label++,n=t[1],t=[0];continue;case7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(i,l)}catch(e){t=[6,e],n=0}finally{o=a=0}if(5&t[0])throwt[1];return{value:t[0]?t[1]:void0,done:!0}}([t,e])}}},W=(M(T,P=e),T.prototype.drawcircle=function(){vary=this;g(["esri/views/draw/Draw","esri/Graphic","esri/layers/GraphicsLayer","esri/geometry/Point","esri/geometry/geometryEngine"]).then(function(e){vart=e[0],a=e[1],i=e[2],l=e[3],s=e[4],r=newt({view:y.view}),u=y.view.map.findLayerById(y.displayedLayerid);null==u&&(u=newi({id:y.displayedLayerid,title:"绘制结果显示层",listMode:"hide"}),y.view.map.add(u));varo=(newL).uuid,d=y.view.map.findLayerById(o);d||(d=newi({id:y.displayedLayerid,title:"画圆显示层",listMode:"hide"}),y.view.map.add(d));varn=r.create("circle",{mode:"click"});y.view.focus(),n.on("vertex-add",function(e){if(2===e.vertices.length){d.removeAll();vart=newl({x:e.vertices[0][0],y:e.vertices[0][1],spatialReference:y.view.spatialReference}),i=newl({x:e.vertices[1][0],y:e.vertices[1][1],spatialReference:y.view.spatialReference}),r=s.distance(t,i,"meters"),o=s.buffer(t,r,"meters"),n=newa({geometry:o,symbol:y.polygonsymbol});d.add(n)}}),n.on("vertex-remove",function(e){console.log(e)}),n.on("cursor-update",function(e){if(2===e.vertices.length){d.removeAll();vart=newl({x:e.vertices[0][0],y:e.vertices[0][1],spatialReference:y.view.spatialReference}),i=newl({x:e.vertices[1][0],y:e.vertices[1][1],spatialReference:y.view.spatialReference}),r=s.distance(t,i,"meters"),o=s.buffer(t,r,"meters"),n=newa({geometry:o,symbol:y.polygonsymbol});d.add(n)}}),n.on("redo",function(e){console.log(e)}),n.on("undo",function(e){console.log(e)}),n.on("draw-complete",function(e){if(2===e.vertices.length){vart=newl({x:e.vertices[0][0],y:e.vertices[0][1],spatialReference:y.view.spatialReference}),i=newl({x:e.vertices[1][0],y:e.vertices[1][1],spatialReference:y.view.spatialReference}),r=s.distance(t,i,"meters"),o=s.buffer(t,r,"meters"),n=newa({geometry:o,symbol:y.polygonsymbol});y.view.map.remove(d),u.add(n),y.emit("drawcomplete",n,"circle")}})})},T.prototype.drawrectangle=function(){vary=this;g(["esri/views/draw/Draw","esri/Graphic","esri/layers/GraphicsLayer","esri/geometry/Polygon"]).then(function(e){vart=e[0],l=e[1],i=e[2],s=e[3],r=newt({view:y.view}),u=y.view.map.findLayerById(y.displayedLayerid);u||(u=newi({id:y.displayedLayerid,title:"绘制结果显示层",listMode:"hide"}),y.view.map.add(u));varo=(newL).uuid,d=y.view.map.findLayerById(o);null==d&&(d=newi({id:y.displayedLayerid,title:"画矩形追踪显示层",listMode:"hide"}),y.view.map.add(d));varn=r.create("rectangle",{mode:"click"});y.view.focus(),n.on("vertex-add",function(e){if(2===e.vertices.length){d.removeAll();vart=e.vertices[0][0]>e.vertices[1][0]?e.vertices[1][0]:e.vertices[0][0],i=e.vertices[0][1]>e.vertices[1][1]?e.vertices[1][1]:e.vertices[0][1],r=e.vertices[0][0]>e.vertices[1][0]?e.vertices[0][0]:e.vertices[1][0],o=e.vertices[0][1]>e.vertices[1][1]?e.vertices[0][1]:e.vertices[1][1],n=news({hasZ:!0,hasM:!0,rings:[[[t,i],[r,i],[r,o],[t,o],[t,i]]],spatialReference:y.view.spatialReference}),a=newl({geometry:n,symbol:y.polygonsymbol});d.add(a)}}),n.on("vertex-remove",function(e){console.log(e)}),n.on("cursor-update",function(e){if(2===e.vertices.length){d.removeAll();vart=e.vertices[0][0]>e.vertices[1][0]?e.vertices[1][0]:e.vertices[0][0],i=e.vertices[0][1]>e.vertices[1][1]?e.vertices[1][1]:e.vertices[0][1],r=e.vertices[0][0]>e.vertices[1][0]?e.vertices[0][0]:e.vertices[1][0],o=e.vertices[0][1]>e.vertices[1][1]?e.vertices[0][1]:e.vertices[1][1],n=news({hasZ:!0,hasM:!0,rings:[[[t,i],[r,i],[r,o],[t,o],[t,i]]],spatialReference:y.view.spatialReference}),a=newl({geometry:n,symbol:y.polygonsymbol});d.add(a)}}),n.on("redo",function(e){console.log(e)}),n.on("undo",function(e){console.log(e)}),n.on("draw-complete",function(e){if(2===e.vertices.length){vart=e.vertices[0][0]>e.vertices[1][0]?e.vertices[1][0]:e.vertices[0][0],i=e.vertices[0][1]>e.vertices[1][1]?e.vertices[1][1]:e.vertices[0][1],r=e.vertices[0][0]>e.vertices[1][0]?e.vertices[0][0]:e.vertices[1][0],o=e.vertices[0][1]>e.vertices[1][1]?e.vertices[0][1]:e.vertices[1][1],n=news({hasZ:!0,hasM:!0,rings:[[[t,i],[r,i],[r,o],[t,o],[t,i]]],spatialReference:y.view.spatialReference}),a=newl({geometry:n,symbol:y.polygonsymbol});y.view.map.remove(d),u.add(a),y.emit("drawcomplete",a,"rectangle")}})})},T.prototype.drawPoint=function(){varu=this;g(["esri/views/draw/Draw","esri/Graphic","esri/layers/GraphicsLayer"]).then(function(e){vart=e[0],r=e[1],i=e[2],o=newt({view:u.view}),n=u.view.map.findLayerById(u.displayedLayerid);n||(n=newi({id:u.displayedLayerid,title:"绘制结果显示层",listMode:"hide"}),u.view.map.add(n));vara=(newL).uuid,l=u.view.map.findLayerById(a);null==l&&(l=newi({id:u.displayedLayerid,title:"画点移动追踪显示层",listMode:"hide"}),u.view.map.add(l));vars=o.create("point",{mode:"click"});u.view.focus(),s.on("vertex-add",function(e){console.log(e)}),s.on("vertex-remove",function(e){console.log(e)}),s.on("cursor-update",function(e){l.removeAll();vart={type:"point",x:e.coordinates[0],y:e.coordinates[1],spatialReference:u.view.spatialReference},i=newr({geometry:t,symbol:u.marksymbol});l.add(i)}),s.on("redo",function(e){console.log(e)}),s.on("undo",function(e){console.log(e)}),s.on("draw-complete",function(e){vart={type:"point",x:e.coordinates[0],y:e.coordinates[1],spatialReference:u.view.spatialReference},i=newr({geometry:t,symbol:u.marksymbol});u.view.map.remove(l),n.add(i),u.emit("drawcomplete",i,"point")})})},T.prototype.drawMultipoint=function(){vary=this;g(["esri/views/draw/Draw","esri/views/draw/PointDrawAction","esri/Graphic","esri/layers/GraphicsLayer","esri/geometry/Polygon","esri/geometry/geometryEngine"]).then(function(e){vart=e[0],o=(e[1],e[2]),i=e[3],r=(e[4],e[5],newt({view:y.view})),n=y.view.map.findLayerById(y.displayedLayerid);n||(n=newi({id:y.displayedLayerid,title:"绘制结果显示层",listMode:"hide"}),y.view.map.add(n));vara=(newL).uuid,l=y.view.map.findLayerById(a);null==l&&(l=newi({id:y.displayedLayerid,title:"画多点显示层",listMode:"hide"}),y.view.map.add(l));vars=(newL).uuid,u=y.view.map.findLayerById(s);null==u&&(u=newi({id:y.displayedLayerid,title:"移动追踪点显示层",listMode:"hide"}),y.view.map.add(u));vard=r.create("multipoint",{mode:"click"});y.view.focus(),d.on("vertex-add",function(e){l.removeAll(),e.vertices.map(function(e){vart={type:"point",x:e[0],y:e[1],spatialReference:y.view.spatialReference},i=newo({geometry:t,symbol:y.marksymbol});l.add(i)})}),d.on("vertex-remove",function(e){console.log(e)}),d.on("cursor-update",function(e){u.removeAll(),e.vertices.map(function(e){vart={type:"point",x:e[0],y:e[1],spatialReference:y.view.spatialReference},i=newo({geometry:t,symbol:y.marksymbol});u.add(i)})}),d.on("redo",function(e){console.log(e)}),d.on("undo",function(e){console.log(e)}),d.on("draw-complete",function(e){l.removeAll();varr=[];e.vertices.map(function(e){vart={type:"point",x:e[0],y:e[1],spatialReference:y.view.spatialReference},i=newo({geometry:t,symbol:y.marksymbol});r.push(i),n.add(i)}),y.view.map.remove(l),y.view.map.remove(u),y.emit("drawcomplete",r,"multipoint")})})},T.prototype.drawPolyline=function(){vard=this;g(["esri/views/draw/Draw","esri/Graphic","esri/layers/GraphicsLayer","esri/geometry/geometryEngine"]).then(function(e){vart=e[0],a=e[1],i=e[2],l=e[3],r=newt({view:d.view}),s=d.view.map.findLayerById(d.displayedLayerid);s||(s=newi({id:d.displayedLayerid,title:"绘制结果显示层",listMode:"hide"}),d.view.map.add(s));varo=(newL).uuid,u=d.view.map.findLayerById(o);null==u&&(u=newi({id:d.displayedLayerid,title:"画线显示层",listMode:"hide"}),d.view.map.add(u));varn=r.create("polyline");d.view.focus(),n.on(["vertex-add","vertex-remove","cursor-update","redo","undo"],function(e){if(1<e.vertices.length){vart=e.vertices;u.removeAll();vari=newa({geometry:{type:"polyline",paths:t,spatialReference:d.view.spatialReference},symbol:d.polylinesymbol}),r=function(e){vart=e.clone(),i=t.removePoint(0,t.paths[0].length-1),r=t.getPoint(0,t.paths[0].length-1);return{type:"polyline",spatialReference:d.view.spatialReference,hasZ:!1,paths:[[[r.x,r.y],[i.x,i.y]]]}};if(function(e){if(!(e.paths[0].length<3)){vart=e.clone(),i=r(e);returnt.removePoint(0,t.paths[0].length-1),l.crosses(i,t)}}(i.geometry)){varo=newa({geometry:r(i.geometry),symbol:d.polylinesymbol});o&&u.addMany([i,o]),o&&e.preventDefault()}elseu.add(i)}}),n.on("draw-complete",function(e){if(1<e.vertices.length){vart=e.vertices;u.removeAll();vari=newa({geometry:{type:"polyline",paths:t,spatialReference:d.view.spatialReference},symbol:d.polylinesymbol}),r=function(e){vart=e.clone(),i=t.removePoint(0,t.paths[0].length-1),r=t.getPoint(0,t.paths[0].length-1);return{type:"polyline",spatialReference:d.view.spatialReference,hasZ:!1,paths:[[[r.x,r.y],[i.x,i.y]]]}},o=null;if(function(e){if(!(e.paths[0].length<3)){vart=e.clone(),i=r(e);returnt.removePoint(0,t.paths[0].length-1),l.crosses(i,t)}}(i.geometry)){varn=newa({geometry:r(i.geometry),symbol:d.polylinesymbol});n&&(s.addMany([i,n]),o=newa({geometry:l.union(i.geometry,n.geometry),symbol:d.polylinesymbol})),n&&e.preventDefault()}elseo=i,s.add(i);d.view.map.remove(u),d.emit("drawcomplete",o,"polyline")}})})},T.prototype.drawPolygon=function(){varu=this;g(["esri/views/draw/Draw","esri/Graphic","esri/layers/GraphicsLayer","esri/geometry/geometryEngine"]).then(function(e){vart=e[0],o=e[1],i=e[2],r=(e[3],newt({view:u.view})),n=u.view.map.findLayerById(u.displayedLayerid);n||(n=newi({id:u.displayedLayerid,title:"绘制结果显示层",listMode:"hide"}),u.view.map.add(n));vara=(newL).uuid,l=u.view.map.findLayerById(a);null==l&&(l=newi({id:u.displayedLayerid,title:"画面显示层",listMode:"hide"}),u.view.map.add(l));vars=r.create("polygon");u.view.focus(),s.on(["vertex-add","vertex-remove","cursor-update","redo","undo"],function(e){vart=e.vertices;l.removeAll();vari={type:"polygon",rings:t,spatialReference:u.view.spatialReference},r=newo({geometry:i,symbol:u.polygonsymbol});l.add(r)}),s.on("draw-complete",function(e){vart=e.vertices;l.removeAll();vari={type:"polygon",rings:t,spatialReference:u.view.spatialReference},r=newo({geometry:i,symbol:u.polygonsymbol});u.view.map.remove(l),n.add(r),u.emit("drawcomplete",r,"polygon")})})},T.prototype.clean=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&this.view.map.remove(e)},T.prototype.show=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&(e.visible=!0)},T.prototype.hide=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&(e.visible=!1)},T.prototype.init=function(i){returnj(this,void0,void0,function(){vart=this;returnO(this,function(e){returnthis.displayedLayerid=(newL).uuid,this.view=i,this.view.on(k.click,function(e){t.view.hitTest(e).then(function(e){returnj(t,void0,void0,function(){returnO(this,function(e){return[2]})})})}),this.view.on(k.pointermove,function(e){t.view.hitTest(e).then(function(e){returnj(t,void0,void0,function(){returnO(this,function(e){return[2]})})})}),[2]})})},T);functionT(e){vart=P.call(this)||this;returnt.marksymbol=null,t.polylinesymbol=null,t.polygonsymbol=null,t.displayedLayerid="",t.view=null,t.drawlayerscollection=[],t.init(e),t.polygonsymbol={type:"simple-fill",color:[255,255,255,.6],style:"solid",outline:{color:[255,255,0,.8],width:2}},t.polylinesymbol={type:"simple-line",color:[255,255,255,1],width:"4px",style:"solid"},t.marksymbol={type:"simple-marker",style:"circle",color:[255,255,0,1],size:"24px",outline:{color:[255,255,255,.8],width:1}},t}varH,G,Z=(H=function(e,t){return(H=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(variint)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){functioni(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)}),J=function(e,a,l,s){returnnew(l=l||Promise)(function(i,t){functionr(e){try{n(s.next(e))}catch(e){t(e)}}functiono(e){try{n(s.throw(e))}catch(e){t(e)}}functionn(e){vart;e.done?i(e.value):((t=e.value)instanceofl?t:newl(function(e){e(t)})).then(r,o)}n((s=s.apply(e,a||[])).next())})},F=function(i,r){varo,n,a,e,l={label:0,sent:function(){if(1&a[0])throwa[1];returna[1]},trys:[],ops:[]};returne={next:t(0),throw:t(1),return:t(2)},"function"==typeofSymbol&&(e[Symbol.iterator]=function(){returnthis}),e;functiont(t){returnfunction(e){returnfunction(t){if(o)thrownewTypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&t[0]?n.return:t[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,t[1])).done)returna;switch(n=0,a&&(t=[2&t[0],a.value]),t[0]){case0:case1:a=t;break;case4:returnl.label++,{value:t[1],done:!1};case5:l.label++,n=t[1],t=[0];continue;case7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(i,l)}catch(e){t=[6,e],n=0}finally{o=a=0}if(5&t[0])throwt[1];return{value:t[0]?t[1]:void0,done:!0}}([t,e])}}},D=(Z(q,G=e),q.prototype.add=function(a){varl=this;g(["esri/layers/echartsLayer"]).then(function(e){vart=e[0],i=document.getElementsByClassName("esri-view-surface")[0],r=document.getElementById(l.displayedLayerid);null!==r&&i.removeChild(r);varo=[];l.datas=a.datas,a.datas.forEach(function(e,t){o.push({name:"Top10",type:"effectScatter",coordinateSystem:"arcgis",zlevel:2,showEffectOn:"render",rippleEffect:{brushType:"stroke"},legendHoverLink:!0,hoverAnimation:!0,symbol:null==e.symbol||void0===e.symbol?"diamond":e.symbol,cursor:"pointer",label:{normal:{show:!0,position:null==e.labelposition||void0===e.labelposition?"right":e.labelposition,formatter:"{b}"}},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1},symbolSize:function(e){returne[2]/8},itemStyle:{normal:{color:e.color,shadowBlur:10,shadowColor:"#333"}},data:[{name:e.name,value:[e.x,e.y].concat([e.value])}]})});varn={title:{text:"",subtext:"",left:"center",textStyle:{color:"#fff"}},series:o};newt(l.view,"",l.displayedLayerid).setChartOption(n)})},q.prototype.update=function(a){varl=this;g(["esri/layers/echartsLayer"]).then(function(e){vart=e[0],i=document.getElementsByClassName("esri-view-surface")[0],r=document.getElementById(l.displayedLayerid);null!==r&&i.removeChild(r);varo=[];l.datas=a.datas,a.datas.forEach(function(e,t){o.push({name:"Top10",type:"effectScatter",coordinateSystem:"arcgis",zlevel:2,showEffectOn:"render",rippleEffect:{brushType:"stroke"},legendHoverLink:!0,hoverAnimation:!0,symbol:null==e.symbol||void0===e.symbol?"diamond":e.symbol,cursor:"pointer",label:{normal:{show:!0,position:null==e.labelposition||void0===e.labelposition?"right":e.labelposition,formatter:"{b}"}},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1},symbolSize:function(e){returne[2]/8},itemStyle:{normal:{color:e.color,shadowBlur:10,shadowColor:"#333"}},data:[{name:e.name,value:[e.x,e.y].concat([e.value])}]})});varn={title:{text:"",subtext:"",left:"center",textStyle:{color:"#fff"}},series:o};newt(l.view,"",l.displayedLayerid).setChartOption(n)})},q.prototype.delete=function(){vare=document.getElementsByClassName("esri-view-surface")[0],t=document.getElementById(this.displayedLayerid);null!==t&&e.removeChild(t)},q.prototype.init=function(t){returnJ(this,void0,void0,function(){vars=this;returnF(this,function(e){returnthis.view=t,this.displayedLayerid=(newL).uuid,g(["esri/geometry/Point","esri/geometry/SpatialReference","esri/geometry/support/webMercatorUtils"]).then(function(e){vara=e[0],l=e[1];e[2],s.view.on(k.click,function(r){if(s.datas.length){vari=s.datas.map(function(e){vart=newa({x:e.x,y:e.y,spatialReference:l.WebMercator}),i=s.view.toScreen(t);returnMath.sqrt((i.x-r.x)*(i.x-r.x)+(i.y-r.y)*(i.y-r.y))}),o=0;i.forEach(function(e,t){e<i[o]&&(o=t)}),35<i[o]||s.emit(k.click,s.datas[o],r.mapPoint)}}),s.view.on(k.doubleclick,function(r){if(s.datas.length){vari=s.datas.map(function(e){vart=newa({x:e.x,y:e.y,spatialReference:l.WebMercator}),i=s.view.toScreen(t);returnMath.sqrt((i.x-r.x)*(i.x-r.x)+(i.y-r.y)*(i.y-r.y))}),o=0;i.forEach(function(e,t){e<i[o]&&(o=t)}),35<i[o]||s.emit(k.doubleclick,s.datas[o],r.mapPoint)}}),s.view.on(k.pointermove,function(n){s.view.hitTest(n).then(function(t){returnJ(s,void0,void0,function(){vari,r,o=this;returnF(this,function(e){if(0<t.results.length&&t.results[0].graphic.layer.id===this.displayedLayerid){if(!this.datas.length)return[2];if(i=this.datas.map(function(e){vart=newa({x:e.x,y:e.y,spatialReference:l.WebMercator}),i=o.view.toScreen(t);returnMath.sqrt((i.x-n.x)*(i.x-n.x)+(i.y-n.y)*(i.y-n.y))}),r=0,i.forEach(function(e,t){e<i[r]&&(r=t)}),35<i[r])return[2];this.emit(k.pointermove,this.datas[r],this.view.toMap({x:n.x,y:n.y}))}return[2]})})})})}),[2]})})},q);functionq(e){vart=G.call(this)||this;returnt.displayedLayerid="",t.view=null,t.datas=null,t.init(e),t}varN,X,Y=(N=function(e,t){return(N=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(variint)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){functioni(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)}),V=function(e,a,l,s){returnnew(l=l||Promise)(function(i,t){functionr(e){try{n(s.next(e))}catch(e){t(e)}}functiono(e){try{n(s.throw(e))}catch(e){t(e)}}functionn(e){vart;e.done?i(e.value):((t=e.value)instanceofl?t:newl(function(e){e(t)})).then(r,o)}n((s=s.apply(e,a||[])).next())})},U=function(i,r){varo,n,a,e,l={label:0,sent:function(){if(1&a[0])throwa[1];returna[1]},trys:[],ops:[]};returne={next:t(0),throw:t(1),return:t(2)},"function"==typeofSymbol&&(e[Symbol.iterator]=function(){returnthis}),e;functiont(t){returnfunction(e){returnfunction(t){if(o)thrownewTypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&t[0]?n.return:t[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,t[1])).done)returna;switch(n=0,a&&(t=[2&t[0],a.value]),t[0]){case0:case1:a=t;break;case4:returnl.label++,{value:t[1],done:!1};case5:l.label++,n=t[1],t=[0];continue;case7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(i,l)}catch(e){t=[6,e],n=0}finally{o=a=0}if(5&t[0])throwt[1];return{value:t[0]?t[1]:void0,done:!0}}([t,e])}}},Q=(Y($,X=e),$.prototype.createFeatureGroup=function(h){varv=this,e=this.view.map.findLayerById(this.displayedLayerid);e&&(this.view.map.remove(e),this.mapoverlayersflayer=[]),g(["esri/layers/FeatureLayer","esri/layers/support/LabelClass","esri/Graphic","esri/geometry/Point","esri/symbols/PictureMarkerSymbol"]).then(function(e){vart=e[0],i=e[1],r=e[2],o=e[3];if(e[4],"group"===h.type){varn,a=[{name:"objectId",alias:"objectId",type:"oid"},{name:"uuid",alias:"唯一标识",type:"string"}];if(a.push({name:"style",alias:"样式",type:"string"}),h.datafiled.forEach(function(e){a.push(e)}),"marker"===h.overlaytype.toLowerCase()){h.renderer?n=h.renderer:(n={type:"unique-value",field:"style",uniqueValueInfos:[]},h.style.forEach(function(e){"3d"===v.view.type?n.uniqueValueInfos.push({value:e.style,label:e.style,symbol:{type:"point-3d",symbolLayers:[{type:"icon",size:e.size.height,resource:{href:e.url}}]}}):n.uniqueValueInfos.push({value:e.style,label:e.style,symbol:{type:"picture-marker",url:e.url,width:e.size.height,height:e.size.height}})}));varl=newt({id:v.displayedLayerid,title:v.displayedLayerid,objectIdField:"objectId",geometryType:"point",renderer:n,screenSizePerspectiveEnabled:"3d"===v.view.type,popupEnabled:!1,popupTemplate:!1,fields:a,source:[],spatialReference:v.view.spatialReference});if(h.elevationInfo&&(l.elevationInfo=h.elevationInfo),v.view.map.add(l),h.overlayers.forEach(function(e){if(e.attributes&&e.position){e.attributes.uuid=e.uuid;vart=newr({geometry:newo({x:e.position[0],y:e.position[1],z:void0===e.position[2]?0:e.position[2],spatialReference:v.view.spatialReference}),attributes:e.attributes});l.source.add(t),v.mapoverlayersflayer.push([h.uuid,e.uuid,t])}}),100<l.source.items.length&&null!=h.frreduction&&(l.featureReduction={type:h.frreduction.type,clusterRadius:h.frreduction.clusterRadius}),h.label.visible){vars=void0;if(h.label.labelingInfo)s=h.label.labelingInfo,l.labelingInfo=s;else{varu=newi({labelExpressionInfo:{expression:"$feature.NAME"},symbol:s="2d"===v.view.type?{type:h.label.type,text:h.label.text,color:h.label.color,angle:h.label.angle,backgroundColor:h.label.backgroundColor,borderLineColor:h.label.borderLineColor,borderLineSize:h.label.borderLineSize,kerning:h.label.kerning,lineHeight:h.label.lineHeight,lineWidth:h.label.lineWidth,rotated:h.label.rotated,haloColor:h.label.haloColor,haloSize:h.label.haloSize,xoffset:h.label.xoffset,yoffset:h.label.yoffset,verticalAlignment:h.label.verticalAlignment,horizontalAlignment:h.label.horizontalAlignment,font:{size:h.label.size,family:"Josefin Slab",weight:h.label.weight}}:{type:"label-3d",symbolLayers:[{type:"text",material:{color:h.label.color},size:h.label.size,halo:{color:h.label.haloColor,size:h.label.haloSize}}]},labelPlacement:h.label.placement,minScale:h.label.minScale,maxScale:h.label.maxScale});l.labelingInfo=[u]}}}}elseif("element"===h.type&&"marker"===h.overlaytype.toLowerCase()){vard=void0;d=h.renderer?h.renderer:"3d"===v.view.type?{type:"simple",symbol:{type:"point-3d",symbolLayers:[{type:"icon",size:h.icon.size.width,resource:{href:h.icon.image}}]}}:{type:"simple",symbol:{type:"picture-marker",url:h.icon.image,width:h.icon.size.width,height:h.icon.size.height}};vary=[{name:"objectId",alias:"objectId",type:"oid"},{name:"uuid",alias:"唯一标识",type:"string"}];Object.keys(h.attributes).forEach(function(e){y.push({name:e,alias:e,type:"string"})});varc=newt({id:v.displayedLayerid,title:v.displayedLayerid,objectIdField:"objectId",geometryType:"point",renderer:d,screenSizePerspectiveEnabled:!0,popupEnabled:!1,popupTemplate:!1,fields:y,source:[],spatialReference:v.view.spatialReference});if(h.elevationInfo&&(c.elevationInfo=h.elevationInfo),h.position&&h.attributes){varp=h.attributes;p.uuid=h.uuid;varf=newr({geometry:newo({x:h.position[0],y:h.position[1],z:void0===h.position[2]?0:h.position[2],spatialReference:v.view.spatialReference}),attributes:p});c.source.add(f),v.mapoverlayersflayer.push([h.uuid,h.uuid,f])}v.view.map.add(c),h.label.visible&&(s=void0,h.label.labelingInfo?(s=h.label.labelingInfo,c.labelingInfo=s):(u=newi({labelExpressionInfo:{expression:"$feature.NAME"},symbol:s="2d"===v.view.type?{type:h.label.type,text:h.label.text,color:h.label.color,angle:h.label.angle,backgroundColor:h.label.backgroundColor,borderLineColor:h.label.borderLineColor,borderLineSize:h.label.borderLineSize,kerning:h.label.kerning,lineHeight:h.label.lineHeight,lineWidth:h.label.lineWidth,rotated:h.label.rotated,haloColor:h.label.haloColor,haloSize:h.label.haloSize,xoffset:h.label.xoffset,yoffset:h.label.yoffset,verticalAlignment:h.label.verticalAlignment,horizontalAlignment:h.label.horizontalAlignment,font:{size:h.label.size,family:"Josefin Slab",weight:h.label.weight}}:{type:"label-3d",symbolLayers:[{type:"text",material:{color:h.label.color},size:h.label.size,halo:{color:h.label.haloColor,size:h.label.haloSize}}]},labelPlacement:h.label.placement,minScale:h.label.minScale,maxScale:h.label.maxScale}),c.labelingInfo=[u]))}})},$.prototype.addfeature=function(l){vars=this;g(["esri/layers/FeatureLayer","esri/layers/support/LabelClass","esri/Graphic","esri/geometry/Point","esri/symbols/PictureMarkerSymbol"]).then(function(e){e[0],e[1];varr=e[2],o=e[3],t=(e[4],s.view.map.findLayerById(s.displayedLayerid));if(t)if(linstanceofArray){varn=[];l.forEach(function(e){if("marker"===e.overlaytype.toLowerCase()){vart=e.attributes;t.uuid=e.uuid;vari=newr({geometry:newo({x:e.position[0],y:e.position[1],z:void0===e.position[2]?0:e.position[2],spatialReference:s.view.spatialReference}),attributes:t});n.push(i),s.mapoverlayersflayer.push([e.uuid,e.uuid,i])}}),t.applyEdits({addFeatures:n}).then(function(e){})}elseif("marker"===l.overlaytype.toLowerCase()){vari=l.attributes;i.uuid=l.uuid;vara=newr({geometry:newo({x:l.position[0],y:l.position[1],z:void0===l.position[2]?0:l.position[2],spatialReference:s.view.spatialReference}),attributes:i});t.applyEdits({addFeatures:[a]}).then(function(e){}),s.mapoverlayersflayer.push([l.uuid,l.uuid,a])}})},$.prototype.updatefeature=function(a){varl=this;g(["esri/layers/FeatureLayer","esri/layers/support/LabelClass","esri/Graphic","esri/geometry/Point","esri/symbols/PictureMarkerSymbol","esri/geometry/Polyline","esri/geometry/Polygon"]).then(function(e){e[0],e[1],e[2];varo=e[3];if(e[4],e[5],e[6],l.view.map.findLayerById(l.displayedLayerid))if(ainstanceofArray){varr=[];a.forEach(function(t){vari=l.mapoverlayersflayer.filter(function(e){returne[1]===t.uuid});if(1===i.length){vare=newo({x:t.position[0],y:t.position[1],z:void0===t.position[2]?0:t.position[2],spatialReference:l.view.spatialReference});i[0][2].geometry=e,Object.keys(t.attributes).map(function(e){"objectId"!==e&&i[0][2].setAttribute(e,t.attributes[e])}),r.push(i[0][2])}}),(t=l.view.map.findLayerById(l.displayedLayerid))&&r.length&&t.applyEdits({updateFeatures:r}).then(function(e){})}elseif("group"===a.type){vart,n=[];a.overlayers.forEach(function(t){vari=l.mapoverlayersflayer.filter(function(e){returne[1]===t.uuid});if(1===i.length){vare=newo({x:t.position[0],y:t.position[1],z:void0===t.position[2]?0:t.position[2],spatialReference:l.view.spatialReference});i[0][2].geometry=e,Object.keys(t.attributes).map(function(e){"objectId"!==e&&i[0][2].setAttribute(e,t.attributes[e])}),n.push(i[0][2])}}),(t=l.view.map.findLayerById(l.displayedLayerid))&&n.length&&t.applyEdits({updateFeatures:n}).then(function(e){})}else"element"===a.type&&l.mapoverlayersflayer.filter(function(e){returne[1]===a.uuid}).forEach(function(t){vare=[];a.attributes.uuid=a.uuid;vari=newo({x:a.position[0],y:a.position[1],z:void0===a.position[2]?0:a.position[2],spatialReference:l.view.spatialReference});t[2].geometry=i,Object.keys(a.attributes).map(function(e){"objectId"!==e&&t[2].setAttribute(e,a.attributes[e])}),e.push(t[2]);varr=l.view.map.findLayerById(l.displayedLayerid);r&&e.length&&r.applyEdits({updateFeatures:e}).then(function(e){})})})},$.prototype.removefeature=function(t){vare=this;if(this.view.map.findLayerById(this.displayedLayerid))if(tinstanceofArray){vari=[];t.forEach(function(t){e.mapoverlayersflayer.filter(function(e){returne[1]===t.uuid}).forEach(function(e){i.push(e[2])}),e.mapoverlayersflayer=e.mapoverlayersflayer.filter(function(e){returne[1]!==t.uuid})}),(n=this.view.map.findLayerById(this.displayedLayerid))&&i.length&&n.applyEdits({deleteFeatures:i}).then(function(e){})}elseif("group"===t.type){varr=this.mapoverlayersflayer.filter(function(e){returne[0]===t.uuid}),o=[];r.forEach(function(e){o.push(e[2])}),(n=this.view.map.findLayerById(this.displayedLayerid))&&o.length&&n.applyEdits({deleteFeatures:o}).then(function(e){}),this.mapoverlayersflayer=this.mapoverlayersflayer.filter(function(e){returne[0]!==t.uuid})}elseif("element"===t.type){r=this.mapoverlayersflayer.filter(function(e){returne[1]===t.uuid});varn,a=[];r.forEach(function(e){a.push(e[2])}),(n=this.view.map.findLayerById(this.displayedLayerid))&&a.length&&n.applyEdits({deleteFeatures:a}).then(function(e){}),this.mapoverlayersflayer=this.mapoverlayersflayer.filter(function(e){returne[1]!==t.uuid})}},$.prototype.removeAll=function(){vart=this,e=this.view.map.findLayerById(this.displayedLayerid);if(e){vari=[];this.mapoverlayersflayer.forEach(function(e){i.push(e[2])}),e.applyEdits({deleteFeatures:i}).then(function(e){t.mapoverlayersflayer=[]})}},$.prototype.delete=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&(this.view.map.remove(e),this.mapoverlayersflayer=[])},$.prototype.init=function(i){returnV(this,void0,void0,function(){vart=this;returnU(this,function(e){returnthis.displayedLayerid=(newL).uuid,this.view=i,this.view.on(k.click,function(n){t.view.hitTest(n).then(function(o){returnV(t,void0,void0,function(){vart,i,r=this;returnU(this,function(e){return0<o.results.length&&o.results[0].graphic.layer.id===this.displayedLayerid&&(t=o.results[0].graphic.attributes.objectId,(i=o.results[0].graphic.layer.createQuery()).where="objectId ="+t,o.results[0].graphic.layer.queryFeatures(i).then(function(e){0<e.features.length&&r.emit(k.click,e.features,n.mapPoint)})),[2]})})})}),this.view.on(k.pointermove,function(n){t.view.hitTest(n).then(function(o){returnV(t,void0,void0,function(){vart,i,r=this;returnU(this,function(e){return0<o.results.length&&o.results[0].graphic.layer.id===this.displayedLayerid&&(t=o.results[0].graphic.attributes.objectId,(i=o.results[0].graphic.layer.createQuery()).where="objectId ="+t,o.results[0].graphic.layer.queryFeatures(i).then(function(e){0<e.features.length&&r.emit(k.pointermove,e.features,r.view.toMap({x:n.x,y:n.y}))})),[2]})})})}),[2]})})},$);function$(e){vart=X.call(this)||this;returnt.displayedLayerid="",t.view=null,t.mapoverlayersflayer=[],t.init(e),t}varK,ee,te=(K=function(e,t){return(K=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(variint)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){functioni(){this.constructor=e}K(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)}),ie=function(e,a,l,s){returnnew(l=l||Promise)(function(i,t){functionr(e){try{n(s.next(e))}catch(e){t(e)}}functiono(e){try{n(s.throw(e))}catch(e){t(e)}}functionn(e){vart;e.done?i(e.value):((t=e.value)instanceofl?t:newl(function(e){e(t)})).then(r,o)}n((s=s.apply(e,a||[])).next())})},re=function(i,r){varo,n,a,e,l={label:0,sent:function(){if(1&a[0])throwa[1];returna[1]},trys:[],ops:[]};returne={next:t(0),throw:t(1),return:t(2)},"function"==typeofSymbol&&(e[Symbol.iterator]=function(){returnthis}),e;functiont(t){returnfunction(e){returnfunction(t){if(o)thrownewTypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&t[0]?n.return:t[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,t[1])).done)returna;switch(n=0,a&&(t=[2&t[0],a.value]),t[0]){case0:case1:a=t;break;case4:returnl.label++,{value:t[1],done:!1};case5:l.label++,n=t[1],t=[0];continue;case7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(i,l)}catch(e){t=[6,e],n=0}finally{o=a=0}if(5&t[0])throwt[1];return{value:t[0]?t[1]:void0,done:!0}}([t,e])}}},oe=(te(ne,ee=e),ne.prototype.add=function(o){varn=this;g(["smiapi/utils/FlashPoint3DLayer","esri/geometry/Point","esri/views/3d/externalRenderers"]).then(function(e){vart=e[0],i=e[1],r=e[2];n.falshpoint3DRenderer=newt({nring:o.nring,spead:o.spead,size:o.size,color:o.color,view:o.view,points:o.points},function(e){vart=null;null!=e&&(t=newi({x:e.x,y:e.y,spatialReference:{wkid:102100}})),n.emit(k.click,e,t)},function(e){vart=null;null!=e&&(t=newi({x:e.x,y:e.y,spatialReference:{wkid:102100}})),n.emit(k.pointermove,e,t)}),r.add(n.view,n.falshpoint3DRenderer)})},ne.prototype.remove=function(){vart=this;g(["esri/views/3d/externalRenderers"]).then(function(e){e[0].remove(t.view,t.falshpoint3DRenderer)})},ne.prototype.init=function(t){returnie(this,void0,void0,function(){returnre(this,function(e){returnthis.view=t,[2]})})},ne);functionne(e){vart=ee.call(this)||this;returnt.view=null,t.falshpoint3DRenderer=null,t.init(e),t}varae,le,se=(ae=function(e,t){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(variint)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){functioni(){this.constructor=e}ae(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)}),ue=function(e,a,l,s){returnnew(l=l||Promise)(function(i,t){functionr(e){try{n(s.next(e))}catch(e){t(e)}}functiono(e){try{n(s.throw(e))}catch(e){t(e)}}functionn(e){vart;e.done?i(e.value):((t=e.value)instanceofl?t:newl(function(e){e(t)})).then(r,o)}n((s=s.apply(e,a||[])).next())})},de=function(i,r){varo,n,a,e,l={label:0,sent:function(){if(1&a[0])throwa[1];returna[1]},trys:[],ops:[]};returne={next:t(0),throw:t(1),return:t(2)},"function"==typeofSymbol&&(e[Symbol.iterator]=function(){returnthis}),e;functiont(t){returnfunction(e){returnfunction(t){if(o)thrownewTypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&t[0]?n.return:t[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,t[1])).done)returna;switch(n=0,a&&(t=[2&t[0],a.value]),t[0]){case0:case1:a=t;break;case4:returnl.label++,{value:t[1],done:!1};case5:l.label++,n=t[1],t=[0];continue;case7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(i,l)}catch(e){t=[6,e],n=0}finally{o=a=0}if(5&t[0])throwt[1];return{value:t[0]?t[1]:void0,done:!0}}([t,e])}}},ye=(se(ce,le=e),ce.prototype.add=function(C){varS=this;g(["esri/Graphic","esri/geometry/Point","esri/layers/GraphicsLayer","esri/symbols/PictureMarkerSymbol","esri/geometry/Polyline","esri/geometry/Polygon"]).then(function(e){varg=e[0],L=e[1],t=e[2],x=(e[3],e[4]),k=e[5],i=S.view.map.findLayerById(S.displayedLayerid);if(i||(i=newt({id:S.displayedLayerid,title:S.displayedLayerid}),S.view.map.add(i)),CinstanceofArray)C.forEach(function(e){if("marker"===e.overlaytype.toLowerCase()){vart=void0;t=e.symbol?e.symbol:"2d"===S.view.type?{type:"picture-marker",url:e.icon.image,width:e.icon.size.width,height:e.icon.size.height}:{type:"point-3d",symbolLayers:[{type:"icon",size:e.icon.size.width,resource:{href:e.icon.image}}]};vari=e.attributes;i.uuid=e.uuid;varr=newg({geometry:newL({x:e.position[0],y:e.position[1],z:void0===e.position[2]?0:e.position[2],spatialReference:S.view.spatialReference}),symbol:t,attributes:i});if(S.mapoverlayers.push(["smap-default",e.uuid,r]),(v=S.view.map.findLayerById(S.displayedLayerid))&&v.add(r),e.label.visible){varo=null;o=e.label.labelingInfo?e.label.labelingInfo:{type:e.label.type,text:e.label.text,color:e.label.color,angle:e.label.angle,backgroundColor:e.label.backgroundColor,borderLineColor:e.label.borderLineColor,borderLineSize:e.label.borderLineSize,kerning:e.label.kerning,lineHeight:e.label.lineHeight,lineWidth:e.label.lineWidth,rotated:e.label.rotated,haloColor:e.label.haloColor,haloSize:e.label.haloSize,xoffset:e.label.xoffset,yoffset:e.label.yoffset,verticalAlignment:e.label.verticalAlignment,horizontalAlignment:e.label.horizontalAlignment,font:{size:e.label.size,family:"Josefin Slab",weight:e.label.weight}};varn=newg({geometry:newL({x:"3d"===S.view.type?e.position[0]+e.label.xoffset:e.position[0],y:"3d"===S.view.type?e.position[1]+e.label.yoffset:e.position[1],z:"3d"===S.view.type?e.position[2]+e.label.zoffset:e.position[2],spatialReference:S.view.spatialReference}),symbol:o,attributes:i});(m=S.view.map.findLayerById(S.displayedLayerid))&&m.add(n),S.mapoverlayers.push(["smap-default",e.uuid,n])}}elseif("polyline"===e.overlaytype.toLowerCase()){vara=null;a=e.symbol?e.symbol:{type:"simple-line",color:e.strokeColor,style:e.style,width:e.width,cap:e.cap,join:e.lineJoin};varl=[];e.path.forEach(function(e){l.push([e.X,e.Y,e.Z])});vars=newx({hasZ:!1,hasM:!1,paths:l,spatialReference:S.view.spatialReference}),u=e.attributes;u.uuid=e.uuid;vard=newg({geometry:s,symbol:a,attributes:u});if(S.mapoverlayers.push(["smap-default",e.uuid,d]),(v=S.view.map.findLayerById(S.displayedLayerid))&&v.add(d),e.label.visible){vary=null;y=e.label.labelingInfo?e.label.labelingInfo:{type:e.label.type,text:e.label.text,color:e.label.color,angle:e.label.angle,backgroundColor:e.label.backgroundColor,borderLineColor:e.label.borderLineColor,borderLineSize:e.label.borderLineSize,kerning:e.label.kerning,lineHeight:e.label.lineHeight,lineWidth:e.label.lineWidth,rotated:e.label.rotated,haloColor:e.label.haloColor,haloSize:e.label.haloSize,xoffset:e.label.xoffset,yoffset:e.label.yoffset,verticalAlignment:e.label.verticalAlignment,horizontalAlignment:e.label.horizontalAlignment,font:{size:e.label.size,family:"Josefin Slab",weight:e.label.weight}},n=newg({geometry:d.geometry.extent.center,symbol:y,attributes:u}),(m=S.view.map.findLayerById(S.displayedLayerid))&&m.add(n),S.mapoverlayers.push(["smap-default",e.uuid,n])}}elseif("polygon"===e.overlaytype.toLowerCase()){varc=void0;c=e.symbol?e.symbol:"simple"===e.symboltype?{type:"simple-fill",color:e.fillColor,style:e.style,outline:{color:e.strokeColor,width:e.strokeWeight,style:e.strokestyle}}:{type:"picture-fill",url:e.url,width:e.picwidth,height:e.picheight,outline:{style:e.strokestyle,color:e.strokeColor,width:e.strokeWeight}};varp=[];e.paths.forEach(function(e){p.push([e.X,e.Y,e.Z])});varf=newk({hasZ:!0,hasM:!0,rings:p,spatialReference:S.view.spatialReference}),h=e.attributes;h.uuid=e.uuid;varv,b=newg({geometry:f,symbol:c,attributes:h});if(S.mapoverlayers.push(["smap-default",e.uuid,b]),(v=S.view.map.findLayerById(S.displayedLayerid))&&v.add(b),e.label.visible){varm,w=null;w=e.label.labelingInfo?e.label.labelingInfo:{type:e.label.type,text:e.label.text,color:e.label.color,angle:e.label.angle,backgroundColor:e.label.backgroundColor,borderLineColor:e.label.borderLineColor,borderLineSize:e.label.borderLineSize,kerning:e.label.kerning,lineHeight:e.label.lineHeight,lineWidth:e.label.lineWidth,rotated:e.label.rotated,haloColor:e.label.haloColor,haloSize:e.label.haloSize,xoffset:e.label.xoffset,yoffset:e.label.yoffset,verticalAlignment:e.label.verticalAlignment,horizontalAlignment:e.label.horizontalAlignment,font:{size:e.label.size,family:"Josefin Slab",weight:e.label.weight}},n=newg({geometry:b.geometry.extent.center,symbol:w,attributes:h}),(m=S.view.map.findLayerById(S.displayedLayerid))&&m.add(n),S.mapoverlayers.push(["smap-default",e.uuid,n])}}});elseif("group"===C.type)C.overlayers.forEach(function(e){if("marker"===e.overlaytype.toLowerCase()){vart=void0;t=e.symbol?e.symbol:"2d"===S.view.type?{type:"picture-marker",url:e.icon.image,width:e.icon.size.width,height:e.icon.size.height}:{type:"point-3d",symbolLayers:[{type:"icon",size:e.icon.size.width,resource:{href:e.icon.image}}]};vari=e.attributes;i.uuid=e.uuid;varr=newg({geometry:newL({x:e.position[0],y:e.position[1],z:void0===e.position[2]?0:e.position[2],spatialReference:S.view.spatialReference}),symbol:t,attributes:i});if(S.mapoverlayers.push([C.uuid,e.uuid,r]),(h=S.view.map.findLayerById(S.displayedLayerid))&&h.add(r),e.label.visible){varo=null;o=e.label.labelingInfo?e.label.labelingInfo:{type:e.label.type,text:e.label.text,color:e.label.color,angle:e.label.angle,backgroundColor:e.label.backgroundColor,borderLineColor:e.label.borderLineColor,borderLineSize:e.label.borderLineSize,kerning:e.label.kerning,lineHeight:e.label.lineHeight,lineWidth:e.label.lineWidth,rotated:e.label.rotated,haloColor:e.label.haloColor,haloSize:e.label.haloSize,xoffset:e.label.xoffset,yoffset:e.label.yoffset,verticalAlignment:e.label.verticalAlignment,horizontalAlignment:e.label.horizontalAlignment,font:{size:e.label.size,family:"Josefin Slab",weight:e.label.weight}};varn=newg({geometry:newL({x:"3d"===S.view.type?e.position[0]+e.label.xoffset:e.position[0],y:"3d"===S.view.type?e.position[1]+e.label.yoffset:e.position[1],z:"3d"===S.view.type?e.position[2]+e.label.zoffset:e.position[2],spatialReference:S.view.spatialReference}),symbol:o,attributes:i});(m=S.view.map.findLayerById(S.displayedLayerid))&&m.add(n),S.mapoverlayers.push([C.uuid,e.uuid,n])}}elseif("polyline"===e.overlaytype.toLowerCase()){vara=null;a=e.symbol?e.symbol:{type:"simple-line",color:e.strokeColor,style:e.style,width:e.width,cap:e.cap,join:e.lineJoin};varl=[];e.path.forEach(function(e){l.push([e.X,e.Y,e.Z])});vars=newx({hasZ:!1,hasM:!1,paths:l,spatialReference:S.view.spatialReference}),u=e.attributes;u.uuid=e.uuid;vard=newg({geometry:s,symbol:a,attributes:u});if(S.mapoverlayers.push([C.uuid,e.uuid,d]),(m=S.view.map.findLayerById(S.displayedLayerid))&&m.add(d),e.label.visible){vary=null;y=e.label.labelingInfo?e.label.labelingInfo:{type:e.label.type,text:e.label.text,color:e.label.color,angle:e.label.angle,backgroundColor:e.label.backgroundColor,borderLineColor:e.label.borderLineColor,borderLineSize:e.label.borderLineSize,kerning:e.label.kerning,lineHeight:e.label.lineHeight,lineWidth:e.label.lineWidth,rotated:e.label.rotated,haloColor:e.label.haloColor,haloSize:e.label.haloSize,xoffset:e.label.xoffset,yoffset:e.label.yoffset,verticalAlignment:e.label.verticalAlignment,horizontalAlignment:e.label.horizontalAlignment,font:{size:e.label.size,family:"Josefin Slab",weight:e.label.weight}},n=newg({geometry:d.geometry.extent.center,symbol:y,attributes:u}),(h=S.view.map.findLayerById(S.displayedLayerid))&&h.add(n),S.mapoverlayers.push([C.uuid,e.uuid,n])}}elseif("polygon"===e.overlaytype.toLowerCase()){varc=void0;c=e.symbol?e.symbol:"simple"===e.symboltype?{type:"simple-fill",color:e.fillColor,style:e.style,outline:{color:e.strokeColor,width:e.strokeWeight,style:e.strokestyle}}:{type:"picture-fill",url:e.url,width:e.picwidth,height:e.picheight,outline:{style:e.strokestyle,color:e.strokeColor,width:e.strokeWeight}};varp=[];e.paths.forEach(function(e){p.push([e.X,e.Y,e.Z])});varf=e.attributes;f.uuid=e.uuid;varh,v=newk({hasZ:!0,hasM:!0,rings:p,spatialReference:S.view.spatialReference}),b=newg({geometry:v,symbol:c,attributes:f});if(S.mapoverlayers.push([C.uuid,e.uuid,b]),(h=S.view.map.findLayerById(S.displayedLayerid))&&h.add(b),e.label.visible){varm,w=null;w=e.label.labelingInfo?e.label.labelingInfo:{type:e.label.type,text:e.label.text,color:e.label.color,angle:e.label.angle,backgroundColor:e.label.backgroundColor,borderLineColor:e.label.borderLineColor,borderLineSize:e.label.borderLineSize,kerning:e.label.kerning,lineHeight:e.label.lineHeight,lineWidth:e.label.lineWidth,rotated:e.label.rotated,haloColor:e.label.haloColor,haloSize:e.label.haloSize,xoffset:e.label.xoffset,yoffset:e.label.yoffset,verticalAlignment:e.label.verticalAlignment,horizontalAlignment:e.label.horizontalAlignment,font:{size:e.label.size,family:"Josefin Slab",weight:e.label.weight}},n=newg({geometry:b.geometry.extent.center,symbol:w,attributes:f}),(m=S.view.map.findLayerById(S.displayedLayerid))&&m.add(n),S.mapoverlayers.push([C.uuid,e.uuid,n])}}});elseif("element"===C.type)if("marker"===C.overlaytype.toLowerCase()){varr=void0;r=C.symbol?C.symbol:"2d"===S.view.type?{type:"picture-marker",url:C.icon.image,width:C.icon.size.width,height:C.icon.size.height}:{type:"point-3d",symbolLayers:[{type:"icon",size:C.icon.size.width,resource:{href:C.icon.image}}]};varo=C.attributes;o.uuid=C.uuid;varn=newg({geometry:newL({x:C.position[0],y:C.position[1],z:void0===C.position[2]?0:C.position[2],spatialReference:S.view.spatialReference}),symbol:r,attributes:o});if(S.mapoverlayers.push(["smap-default",C.uuid,n]),(b=S.view.map.findLayerById(S.displayedLayerid))&&b.add(n),C.label.visible){vara=null;a=C.label.labelingInfo?C.label.labelingInfo:{type:C.label.type,text:C.label.text,color:C.label.color,angle:C.label.angle,backgroundColor:C.label.backgroundColor,borderLineColor:C.label.borderLineColor,borderLineSize:C.label.borderLineSize,kerning:C.label.kerning,lineHeight:C.label.lineHeight,lineWidth:C.label.lineWidth,rotated:C.label.rotated,haloColor:C.label.haloColor,haloSize:C.label.haloSize,xoffset:C.label.xoffset,yoffset:C.label.yoffset,verticalAlignment:C.label.verticalAlignment,horizontalAlignment:C.label.horizontalAlignment,font:{size:C.label.size,family:"Josefin Slab",weight:C.label.weight}};varl=newg({geometry:newL({x:"3d"===S.view.type?C.position[0]+C.label.xoffset:C.position[0],y:"3d"===S.view.type?C.position[1]+C.label.yoffset:C.position[1],z:"3d"===S.view.type?C.position[2]+C.label.zoffset:C.position[2],spatialReference:S.view.spatialReference}),symbol:a,attributes:o});(m=S.view.map.findLayerById(S.displayedLayerid))&&m.add(l),S.mapoverlayers.push(["smap-default",C.uuid,l])}}elseif("polyline"===C.overlaytype.toLowerCase()){vars=null;s=C.symbol?C.symbol:{type:"simple-line",color:C.strokeColor,style:C.style,width:C.width,cap:C.cap,join:C.lineJoin};varu=[];C.path.forEach(function(e){u.push([e.X,e.Y,e.Z])});vard=newx({hasZ:!1,hasM:!1,paths:u,spatialReference:S.view.spatialReference}),y=C.attributes;y.uuid=C.uuid;varc=newg({geometry:d,symbol:s,attributes:y});if(S.mapoverlayers.push(["smap-default",C.uuid,c]),(m=S.view.map.findLayerById(S.displayedLayerid))&&m.add(c),C.label.visible){varp=null;p=C.label.labelingInfo?C.label.labelingInfo:{type:C.label.type,text:C.label.text,color:C.label.color,angle:C.label.angle,backgroundColor:C.label.backgroundColor,borderLineColor:C.label.borderLineColor,borderLineSize:C.label.borderLineSize,kerning:C.label.kerning,lineHeight:C.label.lineHeight,lineWidth:C.label.lineWidth,rotated:C.label.rotated,haloColor:C.label.haloColor,haloSize:C.label.haloSize,xoffset:C.label.xoffset,yoffset:C.label.yoffset,verticalAlignment:C.label.verticalAlignment,horizontalAlignment:C.label.horizontalAlignment,font:{size:C.label.size,family:"Josefin Slab",weight:C.label.weight}},l=newg({geometry:c.geometry.extent.center,symbol:p,attributes:y}),(b=S.view.map.findLayerById(S.displayedLayerid))&&b.add(l),S.mapoverlayers.push(["smap-default",C.uuid,l])}}elseif("polygon"===C.overlaytype.toLowerCase()){varf=void0;f=C.symbol?C.symbol:"simple"===C.symboltype?{type:"simple-fill",color:C.fillColor,style:C.style,outline:{color:C.strokeColor,width:C.strokeWeight,style:C.strokestyle}}:{type:"picture-fill",url:C.url,width:C.picwidth,height:C.picheight,outline:{style:C.strokestyle,color:C.strokeColor,width:C.strokeWeight}};varh=[];C.paths.forEach(function(e){h.push([e.X,e.Y,e.Z])});varv=C.attributes;v.uuid=C.uuid;varb,m,w=newk({hasZ:!0,hasM:!0,rings:h,spatialReference:S.view.spatialReference}),z=newg({geometry:w,symbol:f,attributes:v});if(S.mapoverlayers.push(["smap-default",C.uuid,z]),(b=S.view.map.findLayerById(S.displayedLayerid))&&b.add(z),C.label.visible)p=null,p=C.label.labelingInfo?C.label.labelingInfo:{type:C.label.type,text:C.label.text,color:C.label.color,angle:C.label.angle,backgroundColor:C.label.backgroundColor,borderLineColor:C.label.borderLineColor,borderLineSize:C.label.borderLineSize,kerning:C.label.kerning,lineHeight:C.label.lineHeight,lineWidth:C.label.lineWidth,rotated:C.label.rotated,haloColor:C.label.haloColor,haloSize:C.label.haloSize,xoffset:C.label.xoffset,yoffset:C.label.yoffset,verticalAlignment:C.label.verticalAlignment,horizontalAlignment:C.label.horizontalAlignment,font:{size:C.label.size,family:"Josefin Slab",weight:C.label.weight}},l=newg({geometry:z.geometry.extent.center,symbol:p,attributes:v}),(m=S.view.map.findLayerById(S.displayedLayerid))&&m.add(l),S.mapoverlayers.push(["smap-default",C.uuid,l])}}).catch(function(e){console.error(e)})},ce.prototype.remove=function(t){vari=this;tinstanceofArray?t.forEach(function(t){i.mapoverlayers.filter(function(e){returne[1]===t.uuid}).forEach(function(e){vart=i.view.map.findLayerById(i.displayedLayerid);t&&t.remove(e[2])}),i.mapoverlayers=i.mapoverlayers.filter(function(e){returne[1]!==t.uuid})}):"group"===t.type?(this.mapoverlayers.filter(function(e){returne[0]===t.uuid}).forEach(function(e){vart=i.view.map.findLayerById(i.displayedLayerid);t&&t.remove(e[2])}),this.mapoverlayers=this.mapoverlayers.filter(function(e){returne[0]!==t.uuid})):"element"===t.type&&(this.mapoverlayers.filter(function(e){returne[1]===t.uuid}).forEach(function(e){vart=i.view.map.findLayerById(i.displayedLayerid);t&&t.remove(e[2])}),this.mapoverlayers=this.mapoverlayers.filter(function(e){returne[1]!==t.uuid}))},ce.prototype.update=function(z){varC=this;g(["esri/Graphic","esri/geometry/Point","esri/symbols/PictureMarkerSymbol","esri/geometry/Polyline","esri/geometry/Polygon"]).then(function(e){varg=e[0],L=e[1],x=(e[2],e[3]),k=e[4];if(zinstanceofArray)z.forEach(function(t){if(C.mapoverlayers.filter(function(e){returne[1]===t.uuid}).forEach(function(e){vart=C.view.map.findLayerById(C.displayedLayerid);t&&t.remove(e[2])}),C.mapoverlayers=C.mapoverlayers.filter(function(e){returne[1]!==t.uuid}),"marker"===t.overlaytype.toLowerCase()){vare=void0;e=t.symbol?t.symbol:"2d"===C.view.type?{type:"picture-marker",url:t.icon.image,width:t.icon.size.width,height:t.icon.size.height}:{type:"point-3d",symbolLayers:[{type:"icon",size:t.icon.size.width,resource:{href:t.icon.image}}]};vari=t.attributes;i.uuid=t.uuid;varr=newg({geometry:newL({x:t.position[0],y:t.position[1],z:void0===t.position[2]?0:t.position[2],spatialReference:C.view.spatialReference}),symbol:e,attributes:i});if(C.mapoverlayers.push(["smap-default",t.uuid,r]),(v=C.view.map.findLayerById(C.displayedLayerid))&&v.add(r),t.label.visible){varo=null;o=t.label.labelingInfo?t.label.labelingInfo:{type:t.label.type,text:t.label.text,color:t.label.color,angle:t.label.angle,backgroundColor:t.label.backgroundColor,borderLineColor:t.label.borderLineColor,borderLineSize:t.label.borderLineSize,kerning:t.label.kerning,lineHeight:t.label.lineHeight,lineWidth:t.label.lineWidth,rotated:t.label.rotated,haloColor:t.label.haloColor,haloSize:t.label.haloSize,xoffset:t.label.xoffset,yoffset:t.label.yoffset,verticalAlignment:t.label.verticalAlignment,horizontalAlignment:t.label.horizontalAlignment,font:{size:t.label.size,family:"Josefin Slab",weight:t.label.weight}};varn=newg({geometry:newL({x:"3d"===C.view.type?t.position[0]+t.label.xoffset:t.position[0],y:"3d"===C.view.type?t.position[1]+t.label.yoffset:t.position[1],z:"3d"===C.view.type?t.position[2]+t.label.zoffset:t.position[2],spatialReference:C.view.spatialReference}),symbol:o,attributes:i});(m=C.view.map.findLayerById(C.displayedLayerid))&&m.add(n),C.mapoverlayers.push(["smap-default",t.uuid,n])}}elseif("polyline"===t.overlaytype.toLowerCase()){vara=null;a=t.symbol?t.symbol:{type:"simple-line",color:t.strokeColor,style:t.style,width:t.width,cap:t.cap,join:t.lineJoin};varl=[];t.path.forEach(function(e){l.push([e.X,e.Y,e.Z])});vars=newx({hasZ:!1,hasM:!1,paths:l,spatialReference:C.view.spatialReference}),u=t.attributes;u.uuid=t.uuid;vard=newg({geometry:s,symbol:a,attributes:u});if(C.mapoverlayers.push(["smap-default",t.uuid,d]),(m=C.view.map.findLayerById(C.displayedLayerid))&&m.add(d),t.label.visible){vary=null;y=t.label.labelingInfo?t.label.labelingInfo:{type:t.label.type,text:t.label.text,color:t.label.color,angle:t.label.angle,backgroundColor:t.label.backgroundColor,borderLineColor:t.label.borderLineColor,borderLineSize:t.label.borderLineSize,kerning:t.label.kerning,lineHeight:t.label.lineHeight,lineWidth:t.label.lineWidth,rotated:t.label.rotated,haloColor:t.label.haloColor,haloSize:t.label.haloSize,xoffset:t.label.xoffset,yoffset:t.label.yoffset,verticalAlignment:t.label.verticalAlignment,horizontalAlignment:t.label.horizontalAlignment,font:{size:t.label.size,family:"Josefin Slab",weight:t.label.weight}},n=newg({geometry:d.geometry.extent.center,symbol:y,attributes:u}),(v=C.view.map.findLayerById(C.displayedLayerid))&&v.add(n),C.mapoverlayers.push(["smap-default",t.uuid,n])}}elseif("polygon"===t.overlaytype.toLowerCase()){varc=void0;c=t.symbol?t.symbol:"simple"===t.symboltype?{type:"simple-fill",color:t.fillColor,style:t.style,outline:{color:t.strokeColor,width:t.strokeWeight,style:t.strokestyle}}:{type:"picture-fill",url:t.url,width:t.picwidth,height:t.picheight,outline:{style:t.strokestyle,color:t.strokeColor,width:t.strokeWeight}};varp=[];t.paths.forEach(function(e){p.push([e.X,e.Y,e.Z])});varf=newk({hasZ:!0,hasM:!0,rings:p,spatialReference:C.view.spatialReference}),h=t.attributes;h.uuid=t.uuid;varv,b=newg({geometry:f,symbol:c,attributes:h});if(C.mapoverlayers.push(["smap-default",t.uuid,b]),(v=C.view.map.findLayerById(C.displayedLayerid))&&v.add(b),t.label.visible){varm,w=null;w=t.label.labelingInfo?t.label.labelingInfo:{type:t.label.type,text:t.label.text,color:t.label.color,angle:t.label.angle,backgroundColor:t.label.backgroundColor,borderLineColor:t.label.borderLineColor,borderLineSize:t.label.borderLineSize,kerning:t.label.kerning,lineHeight:t.label.lineHeight,lineWidth:t.label.lineWidth,rotated:t.label.rotated,haloColor:t.label.haloColor,haloSize:t.label.haloSize,xoffset:t.label.xoffset,yoffset:t.label.yoffset,verticalAlignment:t.label.verticalAlignment,horizontalAlignment:t.label.horizontalAlignment,font:{size:t.label.size,family:"Josefin Slab",weight:t.label.weight}},n=newg({geometry:b.geometry.extent.center,symbol:w,attributes:h}),(m=C.view.map.findLayerById(C.displayedLayerid))&&m.add(n),C.mapoverlayers.push(["smap-default",t.uuid,n])}}});elseif("group"===z.type)C.mapoverlayers.filter(function(e){returne[0]===z.uuid}).forEach(function(e){vart=C.view.map.findLayerById(C.displayedLayerid);t&&t.remove(e[2])}),C.mapoverlayers=C.mapoverlayers.filter(function(e){returne[0]!==z.uuid}),z.overlayers.forEach(function(e){if("marker"===e.overlaytype.toLowerCase()){vart=void0;t=e.symbol?e.symbol:"2d"===C.view.type?{type:"picture-marker",url:e.icon.image,width:e.icon.size.width,height:e.icon.size.height}:{type:"point-3d",symbolLayers:[{type:"icon",size:e.icon.size.width,resource:{href:e.icon.image}}]};vari=e.attributes;i.uuid=e.uuid;varr=newg({geometry:newL({x:e.position[0],y:e.position[1],z:void0===e.position[2]?0:e.position[2],spatialReference:C.view.spatialReference}),symbol:t,attributes:i});if(C.mapoverlayers.push([z.uuid,e.uuid,r]),(h=C.view.map.findLayerById(C.displayedLayerid))&&h.add(r),e.label.visible){varo=null;o=e.label.labelingInfo?e.label.labelingInfo:{type:e.label.type,text:e.label.text,color:e.label.color,angle:e.label.angle,backgroundColor:e.label.backgroundColor,borderLineColor:e.label.borderLineColor,borderLineSize:e.label.borderLineSize,kerning:e.label.kerning,lineHeight:e.label.lineHeight,lineWidth:e.label.lineWidth,rotated:e.label.rotated,haloColor:e.label.haloColor,haloSize:e.label.haloSize,xoffset:e.label.xoffset,yoffset:e.label.yoffset,verticalAlignment:e.label.verticalAlignment,horizontalAlignment:e.label.horizontalAlignment,font:{size:e.label.size,family:"Josefin Slab",weight:e.label.weight}};varn=newg({geometry:newL({x:"3d"===C.view.type?e.position[0]+e.label.xoffset:e.position[0],y:"3d"===C.view.type?e.position[1]+e.label.yoffset:e.position[1],z:"3d"===C.view.type?e.position[2]+e.label.zoffset:e.position[2],spatialReference:C.view.spatialReference}),symbol:o,attributes:i});(m=C.view.map.findLayerById(C.displayedLayerid))&&m.add(n),C.mapoverlayers.push([z.uuid,e.uuid,n])}}elseif("polyline"===e.overlaytype.toLowerCase()){vara=null;a=e.symbol?e.symbol:{type:"simple-line",color:e.strokeColor,style:e.style,width:e.width,cap:e.cap,join:e.lineJoin};varl=[];e.path.forEach(function(e){l.push([e.X,e.Y,e.Z])});vars=newx({hasZ:!1,hasM:!1,paths:l,spatialReference:C.view.spatialReference}),u=e.attributes;u.uuid=e.uuid;vard=newg({geometry:s,symbol:a,attributes:u});if(C.mapoverlayers.push([z.uuid,e.uuid,d]),(m=C.view.map.findLayerById(C.displayedLayerid))&&m.add(d),e.label.visible){vary=null;y=e.label.labelingInfo?e.label.labelingInfo:{type:e.label.type,text:e.label.text,color:e.label.color,angle:e.label.angle,backgroundColor:e.label.backgroundColor,borderLineColor:e.label.borderLineColor,borderLineSize:e.label.borderLineSize,kerning:e.label.kerning,lineHeight:e.label.lineHeight,lineWidth:e.label.lineWidth,rotated:e.label.rotated,haloColor:e.label.haloColor,haloSize:e.label.haloSize,xoffset:e.label.xoffset,yoffset:e.label.yoffset,verticalAlignment:e.label.verticalAlignment,horizontalAlignment:e.label.horizontalAlignment,font:{size:e.label.size,family:"Josefin Slab",weight:e.label.weight}},n=newg({geometry:d.geometry.extent.center,symbol:y,attributes:u}),(h=C.view.map.findLayerById(C.displayedLayerid))&&h.add(n),C.mapoverlayers.push([z.uuid,e.uuid,n])}}elseif("polygon"===e.overlaytype.toLowerCase()){varc=void0;c=e.symbol?e.symbol:"simple"===z.symboltype?{type:"simple-fill",color:z.fillColor,style:z.style,outline:{color:z.strokeColor,width:z.strokeWeight,style:z.strokestyle}}:{type:"picture-fill",url:z.url,width:z.picwidth,height:z.picheight,outline:{style:z.strokestyle,color:z.strokeColor,width:z.strokeWeight}};varp=[];z.paths.forEach(function(e){p.push([e.X,e.Y,e.Z])});varf=e.attributes;f.uuid=e.uuid;varh,v=newk({hasZ:!0,hasM:!0,rings:p,spatialReference:C.view.spatialReference}),b=newg({geometry:v,symbol:c,attributes:f});if(C.mapoverlayers.push(["smap-default",z.uuid,b]),(h=C.view.map.findLayerById(C.displayedLayerid))&&h.add(b),z.label.visible){varm,w=null;w=e.label.labelingInfo?e.label.labelingInfo:{type:z.label.type,text:z.label.text,color:z.label.color,angle:z.label.angle,backgroundColor:z.label.backgroundColor,borderLineColor:z.label.borderLineColor,borderLineSize:z.label.borderLineSize,kerning:z.label.kerning,lineHeight:z.label.lineHeight,lineWidth:z.label.lineWidth,rotated:z.label.rotated,haloColor:z.label.haloColor,haloSize:z.label.haloSize,xoffset:z.label.xoffset,yoffset:z.label.yoffset,verticalAlignment:z.label.verticalAlignment,horizontalAlignment:z.label.horizontalAlignment,font:{size:z.label.size,family:"Josefin Slab",weight:z.label.weight}},n=newg({geometry:b.geometry.extent.center,symbol:w,attributes:f}),(m=C.view.map.findLayerById(C.displayedLayerid))&&m.add(n),C.mapoverlayers.push(["smap-default",z.uuid,n])}}});elseif("element"===z.type)if(C.mapoverlayers.filter(function(e){returne[1]===z.uuid}).forEach(function(e){vart=C.view.map.findLayerById(C.displayedLayerid);t&&t.remove(e[2])}),C.mapoverlayers=C.mapoverlayers.filter(function(e){returne[1]!==z.uuid}),"marker"===z.overlaytype.toLowerCase()){vart=void0;t=z.symbol?z.symbol:"2d"===C.view.type?{type:"picture-marker",url:z.icon.image,width:z.icon.size.width,height:z.icon.size.height}:{type:"point-3d",symbolLayers:[{type:"icon",size:z.icon.size.width,resource:{href:z.icon.image}}]};vari=z.attributes;i.uuid=z.uuid;varr=newg({geometry:newL({x:z.position[0],y:z.position[1],z:void0===z.position[2]?0:z.position[2],spatialReference:C.view.spatialReference}),symbol:t,attributes:i});if(C.mapoverlayers.push(["smap-default",z.uuid,r]),(v=C.view.map.findLayerById(C.displayedLayerid))&&v.add(r),z.label.visible){varo=null;o=z.label.labelingInfo?z.label.labelingInfo:{type:z.label.type,text:z.label.text,color:z.label.color,angle:z.label.angle,backgroundColor:z.label.backgroundColor,borderLineColor:z.label.borderLineColor,borderLineSize:z.label.borderLineSize,kerning:z.label.kerning,lineHeight:z.label.lineHeight,lineWidth:z.label.lineWidth,rotated:z.label.rotated,haloColor:z.label.haloColor,haloSize:z.label.haloSize,xoffset:z.label.xoffset,yoffset:z.label.yoffset,verticalAlignment:z.label.verticalAlignment,horizontalAlignment:z.label.horizontalAlignment,font:{size:z.label.size,family:"Josefin Slab",weight:z.label.weight}};varn=newg({geometry:newL({x:"3d"===C.view.type?z.position[0]+z.label.xoffset:z.position[0],y:"3d"===C.view.type?z.position[1]+z.label.yoffset:z.position[1],z:"3d"===C.view.type?z.position[2]+z.label.zoffset:z.position[2],spatialReference:C.view.spatialReference}),symbol:o,attributes:i});(b=C.view.map.findLayerById(C.displayedLayerid))&&b.add(n),C.mapoverlayers.push(["smap-default",z.uuid,n])}}elseif("polyline"===z.overlaytype.toLowerCase()){vara=null;a=z.symbol?z.symbol:{type:"simple-line",color:z.strokeColor,style:z.style,width:z.width,cap:z.cap,join:z.lineJoin};varl=[];z.path.forEach(function(e){l.push([e.X,e.Y,e.Z])});vars=newx({hasZ:!1,hasM:!1,paths:l,spatialReference:C.view.spatialReference}),u=z.attributes;u.uuid=z.uuid;vard=newg({geometry:s,symbol:a,attributes:u});if(C.mapoverlayers.push(["smap-default",z.uuid,d]),(b=C.view.map.findLayerById(C.displayedLayerid))&&b.add(d),z.label.visible){vary=null;y=z.label.labelingInfo?z.label.labelingInfo:{type:z.label.type,text:z.label.text,color:z.label.color,angle:z.label.angle,backgroundColor:z.label.backgroundColor,borderLineColor:z.label.borderLineColor,borderLineSize:z.label.borderLineSize,kerning:z.label.kerning,lineHeight:z.label.lineHeight,lineWidth:z.label.lineWidth,rotated:z.label.rotated,haloColor:z.label.haloColor,haloSize:z.label.haloSize,xoffset:z.label.xoffset,yoffset:z.label.yoffset,verticalAlignment:z.label.verticalAlignment,horizontalAlignment:z.label.horizontalAlignment,font:{size:z.label.size,family:"Josefin Slab",weight:z.label.weight}},n=newg({geometry:d.geometry.extent.center,symbol:y,attributes:u}),(v=C.view.map.findLayerById(C.displayedLayerid))&&v.add(n),C.mapoverlayers.push(["smap-default",z.uuid,n])}}elseif("polygon"===z.overlaytype.toLowerCase()){varc=void0;c=z.symbol?z.symbol:"simple"===z.symboltype?{type:"simple-fill",color:z.fillColor,style:z.style,outline:{color:z.strokeColor,width:z.strokeWeight,style:z.strokestyle}}:{type:"picture-fill",url:z.url,width:z.picwidth,height:z.picheight,outline:{style:z.strokestyle,color:z.strokeColor,width:z.strokeWeight}};varp=[];z.paths.forEach(function(e){p.push([e.X,e.Y,e.Z])});varf=newk({hasZ:!0,hasM:!0,rings:p,spatialReference:C.view.spatialReference}),h=z.attributes;h.uuid=z.uuid;varv,b,m=newg({geometry:f,symbol:c,attributes:h});if(C.mapoverlayers.push(["smap-default",z.uuid,m]),(v=C.view.map.findLayerById(C.displayedLayerid))&&v.add(m),z.label.visible)y=null,y=z.label.labelingInfo?z.label.labelingInfo:{type:z.label.type,text:z.label.text,color:z.label.color,angle:z.label.angle,backgroundColor:z.label.backgroundColor,borderLineColor:z.label.borderLineColor,borderLineSize:z.label.borderLineSize,kerning:z.label.kerning,lineHeight:z.label.lineHeight,lineWidth:z.label.lineWidth,rotated:z.label.rotated,haloColor:z.label.haloColor,haloSize:z.label.haloSize,xoffset:z.label.xoffset,yoffset:z.label.yoffset,verticalAlignment:z.label.verticalAlignment,horizontalAlignment:z.label.horizontalAlignment,font:{size:z.label.size,family:"Josefin Slab",weight:z.label.weight}},n=newg({geometry:m.geometry.extent.center,symbol:y,attributes:h}),(b=C.view.map.findLayerById(C.displayedLayerid))&&b.add(n),C.mapoverlayers.push(["smap-default",z.uuid,n])}})},ce.prototype.removeAll=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&(e.removeAll(),this.mapoverlayers=[])},ce.prototype.delete=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&(this.view.map.remove(e),this.mapoverlayers=[])},ce.prototype.init=function(t){returnue(this,void0,void0,function(){varr=this;returnde(this,function(e){returnthis.displayedLayerid=(newL).uuid,this.view=t,this.view.on(k.click,function(i){r.view.hitTest(i).then(function(t){returnue(r,void0,void0,function(){returnde(this,function(e){return0<t.results.length&&t.results[0].graphic.layer.id===this.displayedLayerid&&this.emit(k.click,t,i.mapPoint),[2]})})})}),this.view.on(k.pointermove,function(i){r.view.hitTest(i).then(function(t){returnue(r,void0,void0,function(){returnde(this,function(e){return0<t.results.length&&t.results[0].graphic.layer.id===this.displayedLayerid&&this.emit(k.pointermove,t,this.view.toMap({x:i.x,y:i.y})),[2]})})})}),[2]})})},ce);functionce(e){vart=le.call(this)||this;returnt.displayedLayerid="",t.view=null,t.mapoverlayers=[],t.init(e),t}varpe,fe,he=(pe=function(e,t){return(pe=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(variint)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){functioni(){this.constructor=e}pe(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)}),ve=function(e,a,l,s){returnnew(l=l||Promise)(function(i,t){functionr(e){try{n(s.next(e))}catch(e){t(e)}}functiono(e){try{n(s.throw(e))}catch(e){t(e)}}functionn(e){vart;e.done?i(e.value):((t=e.value)instanceofl?t:newl(function(e){e(t)})).then(r,o)}n((s=s.apply(e,a||[])).next())})},be=function(i,r){varo,n,a,e,l={label:0,sent:function(){if(1&a[0])throwa[1];returna[1]},trys:[],ops:[]};returne={next:t(0),throw:t(1),return:t(2)},"function"==typeofSymbol&&(e[Symbol.iterator]=function(){returnthis}),e;functiont(t){returnfunction(e){returnfunction(t){if(o)thrownewTypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&t[0]?n.return:t[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,t[1])).done)returna;switch(n=0,a&&(t=[2&t[0],a.value]),t[0]){case0:case1:a=t;break;case4:returnl.label++,{value:t[1],done:!1};case5:l.label++,n=t[1],t=[0];continue;case7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(i,l)}catch(e){t=[6,e],n=0}finally{o=a=0}if(5&t[0])throwt[1];return{value:t[0]?t[1]:void0,done:!0}}([t,e])}}},me=(he(we,fe=e),we.prototype.add=function(r){varo=this;g(["smiapi/utils/HeatMapLayer"]).then(function(e){vart=e[0],i={container:document.getElementById(r.container),radius:r.radius||30,maxOpacity:r.maxOpacity||.8,minOpacity:r.minOpacity||0,blur:r.blur||.7,gradient:r.gradient||{0:"rgb(0,0,0)",.3:"rgb(0,0,255)",.8:"rgb(0,255,0)",.98:"rgb(255,255,0)",1:"rgb(255,0,0)"}};o.heatmaplayer=newt(o.view,i,r.datas,r.h337,r.id),o.heatmaplayer.addData()})},we.prototype.remove=function(e){vart=document.getElementsByClassName("esri-view-surface")[0],i=document.getElementById(e);null!=i&&t.removeChild(i)},we.prototype.refreshdata=function(e){this.heatmaplayer.setVisible(!0),this.heatmaplayer.freshenLayerData(e)},we.prototype.show=function(){this.heatmaplayer.setVisible(!0)},we.prototype.hide=function(){this.heatmaplayer.setVisible(!1)},we.prototype.init=function(t){returnve(this,void0,void0,function(){returnbe(this,function(e){returnthis.displayedLayerid=(newL).uuid,this.view=t,[2]})})},we);functionwe(e){vart=fe.call(this)||this;returnt.displayedLayerid="",t.view=null,t.heatmaplayer=null,t.init(e),t}varge=(Le.shqxboundary="qx_boundary",Le.shjdboundary="jd_boundary",Le.shjwhboundary="jwh_boundary",Le);functionLe(){}varxe,ke,ze=(xe=function(e,t){return(xe=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(variint)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){functioni(){this.constructor=e}xe(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)}),Ce=function(e,a,l,s){returnnew(l=l||Promise)(function(i,t){functionr(e){try{n(s.next(e))}catch(e){t(e)}}functiono(e){try{n(s.throw(e))}catch(e){t(e)}}functionn(e){vart;e.done?i(e.value):((t=e.value)instanceofl?t:newl(function(e){e(t)})).then(r,o)}n((s=s.apply(e,a||[])).next())})},Se=function(i,r){varo,n,a,e,l={label:0,sent:function(){if(1&a[0])throwa[1];returna[1]},trys:[],ops:[]};returne={next:t(0),throw:t(1),return:t(2)},"function"==typeofSymbol&&(e[Symbol.iterator]=function(){returnthis}),e;functiont(t){returnfunction(e){returnfunction(t){if(o)thrownewTypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&t[0]?n.return:t[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,t[1])).done)returna;switch(n=0,a&&(t=[2&t[0],a.value]),t[0]){case0:case1:a=t;break;case4:returnl.label++,{value:t[1],done:!1};case5:l.label++,n=t[1],t=[0];continue;case7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(i,l)}catch(e){t=[6,e],n=0}finally{o=a=0}if(5&t[0])throwt[1];return{value:t[0]?t[1]:void0,done:!0}}([t,e])}}},Ie=(ze(Re,ke=e),Re.prototype.add=function(p){varf=this;g(["esri/Graphic","esri/layers/GraphicsLayer","esri/geometry/Polygon","esri/geometry/geometryEngineAsync","esri/geometry/SpatialReference","esri/Color"]).then(function(e){varu=e[0],t=e[1],i=e[2],d=e[3],y=(e[4],e[5]),r=null;"qx_boundary"!==p.boundaryType&&"jd_boundary"!==p.boundaryType&&"jwh_boundary"!==p.boundaryType||(r=f.view.map.findLayerById(p.boundaryType));varc=f.view.map.findLayerById(f.displayedLayerid);if(null==c&&(c=newt({id:f.displayedLayerid,title:"遮罩层",listMode:"hide"}),f.view.map.add(c)),c.removeAll(),p.inputgeometry){if(null===(r=f.view.map.findLayerById("qx_boundary")))return;varo=newi({rings:p.inputgeometry,spatialReference:f.view.spatialReference}),n=r.fullExtent;n.spatialReference=f.view.spatialReference;vars=o;s.spatialReference=f.view.spatialReference,d.buffer(s,p.boundarydistance,"meters").then(function(e){d.difference(n,e).then(function(e){vart;t="3d"===f.view.type?p.symbol?{type:"polygon-3d",symbolLayers:[{type:"extrude",material:{color:p.maskColor},size:p.symbol.size,edges:{type:"solid",color:p.maskColor}}]}:{type:"polygon-3d",symbolLayers:[{type:"fill",material:{color:p.maskColor},outline:{color:"white",size:"0px"}}]}:{type:"simple-fill",color:p.maskColor,style:"solid",outline:{color:p.maskColor,width:1}};vari=newu({geometry:e,symbol:t});c.add(i);for(varo=void0===p.bounarycount?30:p.bounarycount,n=Math.ceil(p.boundarydistance/o),a=newy(p.boundaryColor).toRgba(),r=function(r){d.buffer(s,r*o,"meters").then(function(t){d.buffer(s,(r-1)*o,"meters").then(function(e){d.difference(t,e).then(function(e){vart;a[3]=1/n*r,t="3d"===f.view.type?p.symbol?{type:"polygon-3d",symbolLayers:[{type:"extrude",material:{color:a},size:p.symbol.size,edges:{type:"solid",color:a}}]}:{type:"polygon-3d",symbolLayers:[{type:"fill",material:{color:a},outline:{color:"white",size:"0px"}}]}:{type:"simple-fill",color:a,style:"solid",outline:{color:a,width:1}};vari=newu({geometry:e,symbol:t});c.add(i)})})})},l=1;l<=n;l++)r(l)})})}else{if(console.log(r),null===r)return;vara=r.createQuery();a.where=p.boundaryDefinition,r.queryFeatures(a).then(function(e){if(e.features.length){vart=r.fullExtent;t.spatialReference=f.view.spatialReference;vars=e.features[0].geometry;s.spatialReference=f.view.spatialReference,d.buffer(s,p.boundarydistance,"meters").then(function(e){d.difference(t,e).then(function(e){vart;t="3d"===f.view.type?p.symbol?{type:"polygon-3d",symbolLayers:[{type:"extrude",material:{color:p.maskColor},size:p.symbol.size,edges:{type:"solid",color:p.maskColor}}]}:{type:"polygon-3d",symbolLayers:[{type:"fill",material:{color:p.maskColor},outline:{color:"white",size:"0px"}}]}:{type:"simple-fill",color:p.maskColor,style:"solid",outline:{color:p.maskColor,width:1}};vari=newu({geometry:e,symbol:t});c.add(i);for(varo=void0===p.bounarycount?30:p.bounarycount,n=Math.ceil(p.boundarydistance/o),a=newy(p.boundaryColor).toRgba(),r=function(r){d.buffer(s,r*o,"meters").then(function(t){d.buffer(s,(r-1)*o,"meters").then(function(e){d.difference(t,e).then(function(e){vart;a[3]=1/n*r,t="3d"===f.view.type?p.symbol?{type:"polygon-3d",symbolLayers:[{type:"extrude",material:{color:a},size:p.symbol.size,edges:{type:"solid",color:a}}]}:{type:"polygon-3d",symbolLayers:[{type:"fill",material:{color:a},outline:{color:"white",size:"0px"}}]}:{type:"simple-fill",color:a,style:"solid",outline:{color:a,width:1}};vari=newu({geometry:e,symbol:t});c.add(i)})})})},l=1;l<=n;l++)r(l)})})}})}})},Re.prototype.remove=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&this.view.map.remove(e)},Re.prototype.show=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&(e.visible=!0)},Re.prototype.hide=function(){vare=this.view.map.findLayerById(this.displayedLayerid);e&&(e.visible=!1)},Re.prototype.init=function(t){returnCe(this,void0,void0,function(){returnSe(this,function(e){returnthis.displayedLayerid=(newL).uuid,this.view=t,[2]})})},Re);functionRe(e){vart=ke.call(this)||this;returnt.displayedLayerid="",t.view=null,t.init(e),t}varAe,Ee,Be=(Ae=function(e,t){return(Ae=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(variint)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){functioni(){this.constructor=e}Ae(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)}),_e=function(e,a,l,s){returnnew(l=l||Promise)(function(i,t){functionr(e){try{n(s.next(e))}catch(e){t(e)}}functiono(e){try{n(s.throw(e))}catch(e){t(e)}}functionn(e){vart;e.done?i(e.value):((t=e.value)instanceofl?t:newl(function(e){e(t)})).then(r,o)}n((s=s.apply(e,a||[])).next())})},Pe=function(i,r){varo,n,a,e,l={label:0,sent:function(){if(1&a[0])throwa[1];returna[1]},trys:[],ops:[]};returne={next:t(0),throw:t(1),return:t(2)},"function"==typeofSymbol&&(e[Symbol.iterator]=function(){returnthis}),e;functiont(t){returnfunction(e){returnfunction(t){if(o)thrownewTypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&t[0]?n.return:t[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,t[1])).done)returna;switch(n=0,a&&(t=[2&t[0],a.value]),t[0]){case0:case1:a=t;break;case4:returnl.label++,{value:t[1],done:!1};case5:l.label++,n=t[1],t=[0];continue;case7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(i,l)}catch(e){t=[6,e],n=0}finally{o=a=0}if(5&t[0])throwt[1];return{value:t[0]?t[1]:void0,done:!0}}([t,e])}}},Me=(Be(je,Ee=e),je.prototype.add=function(n){vara=this;void0===n&&(n={}),g(["esri/layers/echartsLayer"]).then(function(e){vart=e[0],i=[];n.datas.forEach(function(e,t){i.push({name:e[0]+" Top10",type:"lines",coordinateSystem:"arcgis",zlevel:1,effect:{show:!0,period:6,trailLength:.7,color:"#fff",symbolSize:3},lineStyle:{normal:{color:n.color[t],width:0,curveness:.2}},data:a.convertData(e[1],n.geoCoordMap)},{name:e[0]+" Top10",type:"lines",coordinateSystem:"arcgis",zlevel:2,symbol:["none","arrow"],symbolSize:10,effect:{show:!0,period:6,trailLength:0,symbol:n.planePath,symbolSize:15},lineStyle:{normal:{color:n.color[t],width:1,opacity:.6,curveness:.2}},data:a.convertData(e[1],n.geoCoordMap)},{name:e[0]+" Top10",type:"effectScatter",coordinateSystem:"arcgis",zlevel:2,rippleEffect:{brushType:"stroke"},legendHoverLink:!0,hoverAnimation:!0,symbol:n.symbol,label:{normal:{show:!0,position:"right",formatter:"{b}"}},symbolSize:function(e){returne[2]/8},itemStyle:{normal:{color:n.color[t],shadowBlur:10,shadowColor:"#333"}},data:e[1].map(function(e){return{name:e[1].name,value:n.geoCoordMap[e[1].name].concat([e[1].value])}})})});varr=newt(a.view,"",n.id),o={title:{text:"",subtext:"",left:"center",textStyle:{color:"#fff"}},series:i};r.setChartOption(o)})},je.prototype.remove=function(e){vart=document.getElementsByClassName("esri-view-surface")[0],i=document.getElementById(e);null!=i&&t.removeChild(i)},je.prototype.convertData=function(e,t){for(vari=[],r=0,o=e;r<o.length;r++){varn=o[r],a=t[n[0].name],l=t[n[1].name];a&&l&&i.push({fromName:n[0].name,toName:n[1].name,coords:[a,l],value:n[1].value})}returni},je.prototype.getAPIScript=function(e){returndocument.querySelector("script["+e+"]")},je.prototype.loadAPIScript=function(o,n){vara=this;returnnewr.Promise(function(e,t){vari=a.getAPIScript(o);if(i){varr=i.getAttribute("src");r!==n?t(newError("The echartgl is already loaded ("+r+").")):a.handleScriptLoad(i,e,t)}elsei=a.createScript(o,n),a.handleScriptLoad(i,function(){i.setAttribute(o,"loaded"),e(i)},t),document.head.appendChild(i)})},je.prototype.createScript=function(e,t){vari=document.createElement("script");returni.type="text/javascript",i.src=t,i.setAttribute(e,"loading"),i},je.prototype.handleScriptLoad=function(e,t,i){varr;i&&(r=this.handleScriptError(e,i));varo=function(){t(e),e.removeEventListener("load",o,!1),r&&e.removeEventListener("error",r,!1)};e.addEventListener("load",o,!1)},je.prototype.handleScriptError=function(t,i){varr=function(e){i(e.error||newError("There was an error attempting to load "+t.src)),t.removeEventListener("error",r,!1)};returnt.addEventListener("error",r,!1),r},je.prototype.init=function(t){return_e(this,void0,void0,function(){returnPe(this,function(e){returnthis.view=t,[2]})})},je);functionje(e){vart=Ee.call(this)||this;returnt.view=null,t.init(e),t}varOe,We,Te=(Oe=function(e,t){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(variint)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){functioni(){this.constructor=e}Oe(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)}),He=function(e,a,l,s){returnnew(l=l||Promise)(function(i,t){functionr(e){try{n(s.next(e))}catch(e){t(e)}}functiono(e){try{n(s.throw(e))}catch(e){t(e)}}functionn(e){vart;e.done?i(e.value):((t=e.value)instanceofl?t:newl(function(e){e(t)})).then(r,o)}n((s=s.apply(e,a||[])).next())})},Ge=function(i,r){varo,n,a,e,l={label:0,sent:function(){if(1&a[0])throwa[1];returna[1]},trys:[],ops:[]};returne={next:t(0),throw:t(1),return:t(2)},"function"==typeofSymbol&&(e[Symbol.iterator]=function(){returnthis}),e;functiont(t){returnfunction(e){returnfunction(t){if(o)thrownewTypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&t[0]?n.return:t[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,t[1])).done)returna;switch(n=0,a&&(t=[2&t[0],a.value]),t[0]){case0:case1:a=t;break;case4:returnl.label++,{value:t[1],done:!1};case5:l.label++,n=t[1],t=[0];continue;case7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(i,l)}catch(e){t=[6,e],n=0}finally{o=a=0}if(5&t[0])throwt[1];return{value:t[0]?t[1]:void0,done:!0}}([t,e])}}},Ze=(Te(Je,We=e),Je.prototype.play=function(a){varl=this;void0===a&&(a={}),g(["geolocate","esri/widgets/Track","esri/geometry/support/webMercatorUtils"]).then(function(e){vari=e[0],t=e[1],r=e[2];if(void0!==a.coords){varo=0;l.track=newt({view:l.view,goToLocationEnabled:!1});varn=0;i.use(),void0!==l.routepalybackinternal&&clearInterval(l.routepalybackinternal),l.routepalybackinternal=setInterval(function(){vare=r.xyToLngLat(a.coords[n].x,a.coords[n].y),t={lng:e[0],lat:e[1]};i.change(t),n=(n+1)%a.coords.length,++o===a.coords.length&&clearInterval(l.routepalybackinternal)},2500),l.view.when(function(){vart=l.view.center;l.track.on("track",function(){a.mobilesymbol&&(l.track.graphic.symbol=a.mobilesymbol);vare=l.track.graphic.geometry;1<o&&a.showtrail&&l.createAnimateRoute(e,t,a.trailsymbol),l.view.goTo({center:e,tilt:70,scale:2500,heading:360-l.getHeading(e,t),rotation:360-l.getHeading(e,t)}).catch(function(e){"AbortError"!==e.name&&console.error(e)}),t=e.clone()}),l.track.start()})}}).catch(function(e){console.error(e)})},Je.prototype.remove=function(){this.routepalybackinternal,clearInterval(this.routepalybackinternal),this.track.destroy();vare=this.view.map.findLayerById(this.displayedLayerid);e&&this.view.map.remove(e)},Je.prototype.getHeading=function(e,t){return180*Math.atan2(e.y-t.y,e.x-t.x)/Math.PI-90},Je.prototype.createAnimateRoute=function(n,a,l){vars=this;g(["esri/Graphic","esri/layers/GraphicsLayer"]).then(function(e){vart=e[0],i=e[1],r=newt({geometry:{type:"polyline",paths:[[a.longitude,a.latitude],[n.longitude,n.latitude]]},symbol:void0!==l?l:{type:"simple-line",color:[156,39,176],width:10}}),o=s.view.map.findLayerById(s.displayedLayerid);void0===o&&(o=newi({title:"路径轨迹播放",id:s.displayedLayerid,listMode:"hide"}),s.view.map.add(o)),o.add(r)})},Je.prototype.init=function(t){returnHe(this,void0,void0,function(){returnGe(this,function(e){returnthis.displayedLayerid=(newL).uuid,this.view=t,[2]})})},Je);functionJe(e){vart=We.call(this)||this;returnt.displayedLayerid="",t.view=null,t.routepalybackinternal=null,t.track=null,t.init(e),t}varFe,De,qe=(Fe=function(e,t){return(Fe=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(variint)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){functioni(){this.constructor=e}Fe(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,newi)}),Ne=function(e,a,l,s){returnnew(l=l||Promise)(function(i,t){functionr(e){try{n(s.next(e))}catch(e){t(e)}}functiono(e){try{n(s.throw(e))}catch(e){t(e)}}functionn(e){vart;e.done?i(e.value):((t=e.value)instanceofl?t:newl(function(e){e(t)})).then(r,o)}n((s=s.apply(e,a||[])).next())})},Xe=function(i,r){varo,n,a,e,l={label:0,sent:function(){if(1&a[0])throwa[1];returna[1]},trys:[],ops:[]};returne={next:t(0),throw:t(1),return:t(2)},"function"==typeofSymbol&&(e[Symbol.iterator]=function(){returnthis}),e;functiont(t){returnfunction(e){returnfunction(t){if(o)thrownewTypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&t[0]?n.return:t[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,t[1])).done)returna;switch(n=0,a&&(t=[2&t[0],a.value]),t[0]){case0:case1:a=t;break;case4:returnl.label++,{value:t[1],done:!1};case5:l.label++,n=t[1],t=[0];continue;case7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(i,l)}catch(e){t=[6,e],n=0}finally{o=a=0}if(5&t[0])throwt[1];return{value:t[0]?t[1]:void0,done:!0}}([t,e])}}},Ye=(qe(Ve,De=e),Ve.prototype.play=function(c){varp=this;void0===c&&(c={}),g(["esri/geometry/Point","esri/Graphic","esri/layers/GraphicsLayer","esri/geometry/support/webMercatorUtils"]).then(function(e){varo=e[0],n=e[1],a=e[2];if(e[3],void0!==c.coords){varl=0,s=0,u=p.view.center;void0!==p.mapRoamplayinternal&&clearInterval(p.mapRoamplayinternal);vard=void0!==c.duration?c.duration:2e3,y=void0!==c.speedFactor?c.speedFactor:1;p.mapRoamplayinternal=setInterval(function(){vare={x:c.coords[s].x,y:c.coords[s].y,z:void0!==c.coords[s].z?c.coords[s].z:0};s=(s+1)%c.coords.length,++l;vart=newo({x:e.x,y:e.y,z:e.z,spatialReference:p.view.spatialReference}),i=p.view.map.findLayerById(p.mobilelayerid);void0===i&&(i=newa({title:"漫游路径"+p.mobilelayerid,id:p.mobilelayerid,listMode:"hide"}),p.view.map.add(i)),i.removeAll();varr=newn({geometry:t,symbol:c.mobilesymbol});i.add(r),1<l&&c.showtrail&&p.createAnimateRoute(t,u,c.trailsymbol),p.view.goTo({center:t,tilt:70,scale:2500,heading:360-p.getHeading(t,u),rotation:360-p.getHeading(t,u)},{speedFactor:y,duration:d-.2*d,maxDuration:d-.2*d,easing:"in-out-coast-quadratic"}).then().catch(function(e){"AbortError"!==e.name&&console.error(e)}),u=t.clone(),l===c.coords.length&&clearInterval(p.mapRoamplayinternal)},d)}}).catch(function(e){console.error(e)})},Ve.prototype.remove=function(){this.mapRoamplayinternal,clearInterval(this.mapRoamplayinternal);vare=this.view.map.findLayerById(this.displayedLayerid);e&&this.view.map.remove(e);vart=this.view.map.findLayerById(this.mobilelayerid);t&&this.view.map.remove(t)},Ve.prototype.getHeading=function(e,t){return180*Math.atan2(e.y-t.y,e.x-t.x)/Math.PI-90},Ve.prototype.createAnimateRoute=function(n,a,l){vars=this;g(["esri/Graphic","esri/layers/GraphicsLayer"]).then(function(e){vart=e[0],i=e[1],r=newt({geometry:{type:"polyline",paths:[[a.x,a.y,a.z],[n.x,n.y,n.z]],spatialReference:s.view.spatialReference},symbol:void0!==l?l:{type:"simple-line",color:[156,39,176],width:10}}),o=s.view.map.findLayerById(s.displayedLayerid);void0===o&&(o=newi({title:"漫游路径"+s.displayedLayerid,id:s.displayedLayerid,listMode:"hide"}),s.view.map.add(o)),o.add(r)})},Ve.prototype.init=function(t){returnNe(this,void0,void0,function(){returnXe(this,function(e){returnthis.displayedLayerid=(newL).uuid,this.mobilelayerid=(newL).uuid,this.view=t,[2]})})},Ve);functionVe(e){vart=De.call(this)||this;returnt.displayedLayerid="",t.view=null,t.mapRoamplayinternal=null,t.mobilelayerid="",t.init(e),t}return{load:g,Layers:ge,Boundary:E,Draw:W,GraphicOverlays:ye,FeaureOverlays:Q,EchartFlashPointLayer:D,FlashPoint3DLayer:oe,HeatMap:me,MaskBoundary:Ie,TrajectoryPlus:Ye,MigrationMap:Me,Trajectory:Ze}});