(function(config){var ba=navigator.userAgent.toLowerCase(),ca=window,fa=document,ga=fa.documentElement;function ma(a){return-1!==ba.indexOf(a)}var na=/([a-z0-9]*\d+[a-z0-9]*)/; function pa(){var a=qa;if(!a)return null;var a=a.toLowerCase(),b=null;if(b=a.match(/angle \((.*)\)/))a=b[1],a=a.replace(/\s*direct3d.*$/,"");a=a.replace(/\s*\([^\)]*wddm[^\)]*\)/,"");if(0<=a.indexOf("intel")){b=["Intel"];0<=a.indexOf("mobile")&&b.push("Mobile");(0<=a.indexOf("gma")||0<=a.indexOf("graphics media accelerator"))&&b.push("GMA");if(0<=a.indexOf("haswell"))b.push("Haswell");else if(0<=a.indexOf("ivy"))b.push("HD 4000");else if(0<=a.indexOf("sandy"))b.push("HD 3000");else if(0<=a.indexOf("ironlake"))b.push("HD"); else{0<=a.indexOf("hd")&&b.push("HD");var c=a.match(na);c&&c[1]&&b.push(c[1].toUpperCase())}return b=b.join(" ")}return 0<=a.indexOf("nvidia")||0<=a.indexOf("quadro")||0<=a.indexOf("geforce")||0<=a.indexOf("nvs")?(b=["nVidia"],0<=a.indexOf("geforce")&&b.push("geForce"),0<=a.indexOf("quadro")&&b.push("Quadro"),0<=a.indexOf("nvs")&&b.push("NVS"),a.match(/\bion\b/)&&b.push("ION"),a.match(/gtx\b/)?b.push("GTX"):a.match(/gts\b/)?b.push("GTS"):a.match(/gt\b/)?b.push("GT"):a.match(/gs\b/)?b.push("GS"):a.match(/ge\b/)? b.push("GE"):a.match(/fx\b/)&&b.push("FX"),(c=a.match(na))&&c[1]&&b.push(c[1].toUpperCase().replace("GS","")),0<=a.indexOf("titan")?b.push("TITAN"):0<=a.indexOf("ti")&&b.push("Ti"),b=b.join(" ")):0<=a.indexOf("amd")||0<=a.indexOf("ati")||0<=a.indexOf("radeon")||0<=a.indexOf("firegl")||0<=a.indexOf("firepro")?(b=["AMD"],0<=a.indexOf("mobil")&&b.push("Mobility"),c=a.indexOf("radeon"),0<=c&&b.push("Radeon"),0<=a.indexOf("firepro")?b.push("FirePro"):0<=a.indexOf("firegl")&&b.push("FireGL"),0<=a.indexOf("hd")&& b.push("HD"),0<=c&&(a=a.substring(c)),(c=a.match(na))&&c[1]&&b.push(c[1].toUpperCase().replace("HD","")),b=b.join(" ")):a.substring(0,100)} var ra="microsoft basic render driver;vmware svga 3d;Intel 965GM;Intel B43;Intel G41;Intel G45;Intel G965;Intel GMA 3600;Intel Mobile 4;Intel Mobile 45;Intel Mobile 965".split(";"),sa="ActiveXObject"in ca,va="devicePixelRatio"in ca&&1Sa;Ra&&5<=Sa||ba.search(/android 4.4/); var Ua=Ra?"android":Ma?"ios":wa?"windows":Ea?"mac":"other",Va=sa&&!ca.XMLHttpRequest,Wa=sa&&!fa.querySelector,Xa=sa&&!fa.addEventListener,Ya=sa&&ma("msie 9"),Za=sa&&ma("msie 10"),$a=sa&&ma("rv:11"),ab=Xa||Ya,bb=ma("edge"),cb=ma("qtweb"),db=ma("ucbrowser"),eb=ma("alipay")||Ra&&db,fb=ma("miuibrowser"),gb=ma("micromessenger"),hb=ma("mqqbrowser"),ib=ma("baidubrowser"),chrome=(ma("chrome")||ma("crios"))&&!gb&&!ib&&!hb&&!bb&&!fb,jb=chrome&&ma("chromium"),kb=chrome&&!jb&&(30Gb)break;if(23>b.getShaderPrecisionFormat(35632,36338).precision||23>b.getShaderPrecisionFormat(35633,36338).precision)break;qa=b.getExtension("WEBGL_debug_renderer_info")? b.getParameter(37446):null;if((b=pa())&&-1!==ra.indexOf(b))break;Fb=a[c];return!0}}return!1}(),Lb=Kb&&(kb||mb||ob)&&("mac"===Ua||"windows"===Ua)&&!rb,Mb=!window.Uint8Array||!Cb||cb||Da||rb&&lb||Ya||Na||Ja||Ka||Ta||ma("gt-n710")||za,Nb=!Mb&&!Lb,Ob=Lb?"vw":Mb?"d":Nb?"dv":"v",Pb=ma("webkit"),Qb="WebKitCSSMatrix"in ca&&"m11"in new window.WebKitCSSMatrix,Rb="MozPerspective"in ga.style,Sb="OTransition"in ga.style,Tb=zb||Qb||Rb||Sb,Ub=void 0!==config[8]?config[8]:!0,Vb=void 0!==config[9]?config[9]:!0,Wb= void 0!==config[10]?config[10]:!0,Xb=void 0!==config[11]?config[11]:!0,Yb=void 0!==config[12]?config[12]:null,Zb=!Ab&&rb&&Cb,$b=!0;try{if("undefined"===typeof ca.localStorage)$b=!1;else{var ac=(new Date).getTime()+"";ca.localStorage.setItem("_test",ac);ca.localStorage.getItem("_test")!==ac&&($b=!1);ca.localStorage.removeItem("_test")}}catch(bc){$b=!1}var cc=parseInt(ba.split("chrome/")[1]),dc=Ub&&Cb; config.l={Nra:Ga,Ora:La,size:La?100:Ra?200:500,oz:Ea,Vza:wa,ED:Ma,ZEa:Qa,Yl:Ra,Zla:Ta,H3:eb,Ez:Ua,YH:ib,Zva:hb,zE:nb,y$:gb,Es:sa,Ci:Va,sv:Wa,e5:Ya,d5:Za,Ie:Xa,g5:ab,Rra:$a,lpa:bb,Ura:sa&&!$a,Qta:Fa,Gv:$b,Pi:dc&&$b&&Xb&&!rb&&chrome,mf:Yb,geolocation:rb||sa&&!Xa||bb,jza:db,vL:db&&!chrome,chrome:chrome,f3:!0,fR:lb,ba:rb,cua:rb&&Pb,B6:rb&&Qb,bua:rb&&ca.opera,Kc:va,DL:xb,ja:yb,Yf:wb,D6:tb,FT:ub,L7:vb,nna:chrome&&57<=cc,ona:!rb&&chrome&&64<=cc,x$:Pb,Sra:zb,HL:Qb,cqa:Rb,Vua:Sb,UH:Tb,Gn:Ab,kl:Cb,JS:Eb,jA:Wb, Sf:Lb,u$:Fb,v$:Jb,WR:qa,Ota:Gb,wAa:!1,Xp:Ub&&!Mb,N1:Ub?Ob:"d",j2:Ub?Kb:!1,gL:dc,qp:Ub&&Kb,kFa:Ub&&(!Mb||Kb),xq:Vb&&!!ca.WebSocket&&!ib,WFa:Zb,dva:Cb||Zb?"c":"d"};var ec=config;config=void 0;var fc={overlay:["style"],"AMap.IndoorMap":["AMap.CustomLayer","cvector"],"AMap.IndoorMap3D":["Map3D"],"AMap.MarkerList":["AMap.TplUtils"],Map3D:["vectorlayer","wgl","AMap.CustomLayer","rbush"],"AMap.Heatmap":["AMap.CustomLayer"],"AMap.DistrictLayer":["MVT"],vectorForeign:["gridmap","MVT"],"AMap.GltfLoader":["AMap.CustomLayer","Map3D"],"AMap.LabelsLayer":["rbush","promise"]}; window.AMap?(window.AMap.version="1600777590400",window.AMap.zL={zM:function(a){a(ec)}}):window.AMap={version:"1600777590400",zL:{zM:function(a){a(ec)}}};ec.Hk="1600777590400";ec.Ru=fc; for(var gc=document.head||document.getElementsByTagName("head")[0],hc='.vml{behavior:url(#default#VML);display:inline-block;position:absolute}.amap-custom{top:0;left:0;position:absolute}.amap-container img{max-width:none!important;max-height:none!important}.amap-container{touch-action:none;position:relative;overflow:hidden;background:#fcf9f2 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0AgMAAAC2uDcZAAAADFBMVEX////////////////1pQ5zAAAABHRSTlMAgP/AWuZC2AAAAVhJREFUeAFiYGAQYGDEQjAB2rcDC4BiGIqiU7abdKlO2QkeIClyPsDHweMKtOPHIJ1Op6/w7Y4fdqfT6VpndzqdrnV2p9PpWmd3Oj3qWndSoKp+2J1Op7vr7E6n07XO7nQ6XevsTqfTtc7udPo4/f787E6n0911dqfT6VpndzqdrnV2p9PpWmd3Ot27Ce8m6HS6u85dR6fTtU7r6HS61mkdnU7XOrvT6XTvJuxOp9PddXan0+laZ3c6na51dDpd67SOTqd7N+HdBJ1Od9e56+h0utZpHZ1O1zq70+l0rbM7nU73bsLudDrdXWd3Ol3rtI5Op2ud1tHpdK3TOjqd7t2EdxN0Ot1dZ3c6na51dqfT6VpndzqdrnV2p9Pp3k3Q6XR3nbuOTqdrndbR6XSt0zo6na51Wken072bsDudTnfX2Z1Op2ud3el0utbZnU7XOq2j0+t0uncTD1gO4zoT5doZAAAAAElFTkSuQmCC);-ms-touch-action:none}.amap-drags,.amap-layers{width:100%;height:100%;position:absolute;overflow:hidden}.amap-layers canvas{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.amap-layer img{pointer-events:none}.amap-e,.amap-maps{width:100%;height:100%}.amap-maps,.amap-e,.amap-layers,.amap-tile,.amap-tile-container{position:absolute;left:0;top:0;overflow:hidden}.amap-context{position:absolute;left:0;top:0}.amap-overlays,.amap-markers,.amap-marker{position:absolute;left:0;top:0}.amap-layers{z-index:0}.amap-overlays{z-index:110;cursor:default}.amap-markers{z-index:120}.amap-controls{z-index:150}.amap-copyright{position:absolute;display:block!important;left:77px;height:16px;bottom:0;padding-bottom:3px;font-size:11px;font-family:Arial,sans-serif;z-index:160}.amap-logo{position:absolute;bottom:1px;left:1px;z-index:160;height:20px}.amap-logo img{width:73px!important;height:20px!important;border:0;vertical-align:baseline!important}.amap-icon{position:relative;z-index:1}.amap-icon img{position:absolute;z-index:-1}.amap-marker-label{position:absolute;z-index:2;border:1px solid blue;background-color:white;white-space:nowrap;cursor:default;padding:3px;font-size:12px;line-height:14px}.amap-info{position:absolute;left:0;z-index:140;width:320px}.amap-menu{position:absolute;z-index:140;_width:100px}.amap-info-close{position:absolute;right:5px;_right:12px;+right:11px;top:5px;_top:2px;+top:2px;color:#c3c3c3;text-decoration:none;font:bold 16px/14px Tahoma,Verdana,sans-serif;width:14px;height:14px}.amap-info-outer,.amap-menu-outer{box-shadow:0 1px 2px rgba(0,0,0,0.1);background:none repeat scroll 0 0 white;border-radius:2px;padding:1px;text-align:left}.amap-menu-outer:hover{box-shadow:0 1px 2px rgba(0,0,0,0.3)}.amap-info-contentContainer:hover .amap-info-outer{box-shadow:0 1px 2px rgba(0,0,0,0.3)}.amap-info-content{position:relative;background:#fff;padding:10px 18px 10px 10px;line-height:1.4;overflow:auto}.amap-marker-content{position:relative}.amap-info{_width:320px}.amap-menu{_width:100px}.amap-info-sharp-old{overflow:hidden;position:absolute;background-image:url(http://webapi.amap.com/images/arrows.png)}.bottom-center .amap-info-sharp-old{height:12px;margin:0 auto;width:20px;background-position:center 12px;top:100%;margin-top:-9px;left:50%;margin-left:-10px}.bottom-left .amap-info-sharp-old{height:12px;width:13px;background-position:-16px -46px;top:100%;margin-top:-9px}.bottom-right .amap-info-sharp-old{height:12px;width:13px;top:-1px;background-position:-56px -46px;left:100%;margin-left:-13px;top:100%;margin-top:-9px}.middle-left .amap-info-sharp-old{height:20px;width:12px;background-position:left;top:50%;margin-top:-10px;margin-left:-11px}.center .amap-info-sharp-old{display:none}.middle-right .amap-info-sharp-old{height:20px;margin-right:0;width:12px;background-position:right;left:100%;margin-left:-9px;top:50%;margin-top:-10px}.top-center .amap-info-sharp-old{height:12px;margin:0 auto;width:20px;background-position:top;top:0;margin-top:-3px;left:50%;margin-left:-10px}.top-left .amap-info-sharp-old{height:12px;width:13px;background-position:-16px -3px;top:0;margin-top:-3px}.top-right .amap-info-sharp-old{height:12px;width:13px;background-position:-56px -3px;left:100%;margin-left:-13px;top:0;margin-top:-3px}.amap-info-sharp{position:absolute}.bottom-center .amap-info-sharp{bottom:0;left:50%;margin-left:-8px;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #fff}.bottom-center .amap-info-sharp:after{position:absolute;content:"";margin-left:-8px;margin-top:-7px;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid rgba(0,0,0,0.3);filter:blur(2px);z-index:-1}.amap-info-contentContainer:hover.bottom-center .amap-info-sharp:after{border-top:8px solid rgba(0,0,0,0.5)}.bottom-left .amap-info-sharp{border-color:transparent #fff;border-width:0 0 10px 10px;border-style:solid}.bottom-left .amap-info-sharp:after{position:absolute;content:"";margin-left:-10px;border-color:transparent rgba(0,0,0,0.3);border-width:0 0 10px 10px;border-style:solid;filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.bottom-left .amap-info-sharp:after{border-color:transparent rgba(0,0,0,0.5)}.bottom-left .amap-info-content{border-radius:2px 2px 2px 0}.bottom-right .amap-info-sharp{right:0;border-top:10px solid #fff;border-left:10px solid transparent}.bottom-right .amap-info-sharp:after{position:absolute;margin-top:-9px;margin-left:-10px;content:"";border-top:10px solid rgba(0,0,0,0.3);border-left:10px solid transparent;filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.bottom-right .amap-info-sharp:after{border-top:10px solid rgba(0,0,0,0.5)}.bottom-right .amap-info-content{border-radius:2px 2px 0 2px}.top-center .amap-info-sharp{top:0;left:50%;margin-left:-8px;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid #fff}.top-center .amap-info-sharp:after{position:absolute;content:"";margin-top:0;margin-left:-8px;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid rgba(0,0,0,0.3);filter:blur(1px);z-index:-1}.top-left .amap-info-sharp{left:0;top:0;border-bottom:10px solid #fff;border-right:10px solid transparent}.top-left .amap-info-sharp:after{position:absolute;content:"";margin-top:0;margin-left:0;border-bottom:10px solid rgba(0,0,0,0.3);border-right:10px solid transparent;filter:blur(1px);z-index:-1}.top-right .amap-info-sharp{right:0;top:0;border-bottom:10px solid #fff;border-left:10px solid transparent}.top-right .amap-info-sharp:after{position:absolute;content:"";margin-top:0;margin-left:-10px;border-bottom:10px solid rgba(0,0,0,0.3);border-left:10px solid transparent;filter:blur(1px);z-index:-1}.middle-right .amap-info-sharp{right:0;top:50%;margin-top:-8px;border-top:8px solid transparent;border-left:8px solid #fff;border-bottom:8px solid transparent}.middle-right .amap-info-sharp:after{position:absolute;content:"";margin-top:-8px;margin-left:-8px;border-top:8px solid transparent;border-left:8px solid rgba(0,0,0,0.3);border-bottom:8px solid transparent;filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.middle-right .amap-info-sharp:after{border-left:8px solid rgba(0,0,0,0.5)}.middle-left .amap-info-sharp{left:0;top:50%;margin-top:-8px;border-top:8px solid transparent;border-right:8px solid #fff;border-bottom:8px solid transparent}.middle-left .amap-info-sharp:after{position:absolute;content:"";margin-top:-8px;margin-left:0;border-top:8px solid transparent;border-right:8px solid rgba(0,0,0,0.3);border-bottom:8px solid transparent;filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.middle-left .amap-info-sharp:after{border-right:8px solid rgba(0,0,0,0.5)}.amap-info-contentContainer.top-left,.amap-info-contentContainer.top-center,.amap-info-contentContainer.top-right{padding-top:8px}.amap-info-contentContainer.bottom-left,.amap-info-contentContainer.bottom-center,.amap-info-contentContainer.bottom-right{padding-bottom:8px}.amap-info-contentContainer.middle-right{padding-right:8px}.amap-info-contentContainer.middle-left{padding-left:8px}.amap-menu-outer{margin:0;padding:0;list-style-type:none}ul.amap-menu-outer li{cursor:pointer;height:35px;line-height:35px;word-break:break-all;padding:0 10px;font-size:12px;white-space:nowrap}ul.amap-menu-outer li a{text-decoration:none;font-size:13px;margin:0 5px;color:#000;padding:5px 5px}ul.amap-menu-outer li:hover{background-color:#f3f3ee}.amap-overlay-text-container{display:block;width:auto;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff;padding:2px 3px;border:1px solid #ccc;border-radius:3px}.amap-overlay-text-container.amap-overlay-text-empty{display:none}.amap-info-content-ie8{border:1px solid #9c9c9c}'.replace(/url\((['"]?)(?:\.\.\/)+/g,"url($1"+ ec[2].split(",")[0]+"/"),ic=null,jc=0,kc=gc.childNodes.length;jc"+hc+"");var g=g||{Da:{Le:0,lr:[],Ij:{}}},B={o:{},control:{},C:{}};g.IDa=function(a){var b=Function;return function(){return(new b("return "+a))()}}();g.CLASS_NAME="AMap";g.c=g.BuryPoint={};g.c.add=g.BuryPoint.add=function(a,b,c){a.r5||a.D||!(a=a.CLASS_NAME)||(a=a.replace("AMap.",""),g.AA.mp(a,b,c))};var mc={lang:1,baseRender:1,overlayRender:1,viewMode:1}; g.c.ya=g.BuryPoint.addOptions=function(a,b){if(!a.Xua)if(b&&(b.innerLayer||b.innerOverlay))a.r5=!0;else{a.Xua=!0;var c=a.CLASS_NAME;if(c){c=c.replace("AMap.","");g.AA.mp(c);b=b||{};for(var d in b)b.hasOwnProperty(d)&&("Map"===c&&d in mc?g.AA.mp(c,d,b[d]):g.AA.mp(c,d))}}};g.ca=function(){}; g.ca.extend=g.ca.extend=function(a){function b(){}function c(){var a=this.initialize||this.A;a&&a.apply(this,arguments);if(!d&&this.Oi){a=document.createElement("style");a.setAttribute("type","text/css");this.CLASS_NAME&&a.setAttribute("class",this.CLASS_NAME);this.Oi=this.Oi.replace(/url\((['"]?)(?:\.\.\/)*/g,"url($1"+g.r.Fb+"/");a.styleSheet?a.styleSheet.cssText=this.Oi:a.innerHTML=this.Oi;for(var b=document.head||document.getElementsByTagName("head")[0],c=null,e=0,f=b.childNodes.length;ee;e++)d[e]||(f=0|16*Math.random(),d[e]=a[19===e?f&3|8:f])}return d.join("")}}(),jD:{start:function(a){a.startTime=new Date;a.lt=[];var b=(new Date).getTime();a.id=requestAnimationFrame(function d(){var e= (new Date).getTime();a.lt.push(e-b);b=e;a.id=requestAnimationFrame(d)})},cancel:function(a){a.id&&cancelAnimationFrame(a.id)},stop:function(a){a.aoa=new Date-a.startTime;this.cancel(a);a.jD=Math.round(1E3/(a.aoa/(a.lt.length+1)))}},B4:function(a,b,c){var d=4>=0);return e},createObjectURL:function(a){var b=1b.length&&(h=b.length);for(;fd););d=c[d.toString()];return"number"===typeof d?a[d]:null},Xv:function(a){a=a.split(",");a[0]=parseFloat(a[0].split("rgba(")[1])/255;a[1]=parseFloat(a[1])/255; a[2]=parseFloat(a[2])/255;a[3]=parseFloat(a[3]);return a},Wwa:function(a){a=a.split(",");a[0]=parseFloat(a[0].split("rgb(")[1])/255;a[1]=parseFloat(a[1])/255;a[2]=parseFloat(a[2])/255;return a},qU:function(a){return"rgba("+255*a[0]+","+255*a[1]+","+255*a[2]+","+a[3]+")"},Ina:function(a){return this.qU(this.$l(a))},$l:function(a){if(a instanceof Array)return 3==a.length&&a.push(1),a;a=this.oI(a);if(0==a.indexOf("#")){if(4===a.length)return a=a.substr(1).replace(/./g,function(a){return a+a}),this.dt(a); if(7==a.length)return this.dt(a.substr(1));if(9==a.length)return a=a.substr(1),this.bl(a.substr(6)+a.substr(0,6))}else{if(0==a.indexOf("rgb("))return a=this.Wwa(a),a.push(1),a;if(0==a.indexOf("rgba("))return this.Xv(a)}},x8:function(a){return g.a.Rr("ff"+a)},Rr:function(a){for(var b=[],c=0,d=a.length;c=a},hsa:function(a){var b=a.length,c=new a.constructor(b);b&&"string"==typeof a[0]&&Object.hasOwnProperty.call(a,"index")&&(c.index=a.index,c.input=a.input);return c},ema:function(a,b){var c=-1,d=a.length;for(b|| (b=Array(d));++cb.indexOf(a[e])&& b.push(a[e])},x3:function(b){if(!b)return null;b=b.map.la;for(var d=0,e=b.length;d=h||b.hl;if(d||b){d=1this.ZZ&&this.aU(Object.keys(this.Yj).slice(0,Math.floor(this.ZZ/2)))},aU:function(a){for(var b=0,e=a.length;bv&&(s<=p&&b(s+r,u,v),s>=r-p&&b(s-r,u,v));b(s,u,v)},y0:function(a){for(var b=this.so.length-1;0<=b;b--)this.so[b]===a&&this.so.splice(b,1)},dga:function(a){for(var b=0,e=this.so.length;b")},Vc:function(a,b){var c=a.style[b];!c&&a.currentStyle&&(c=a.currentStyle[b]);c&&"auto"!==c||!document.defaultView||(c=(c=document.defaultView.getComputedStyle(a, null))?c[b]:null);c&&"auto"!==c||"height"!==b||(c=a.clientHeight+"px");c&&"auto"!==c||"width"!==b||(c=a.clientWidth+"px");return"auto"===c?null:c},pJ:function(a){if(a)return new g.xd(a.clientWidth||document.body.clientWidth,a.clientHeight||(g.l.Es?"CSS1Compat"===document.compatMode?document.documentElement.clientHeight:document.body.clientHeight:document.body.clientHeight),!0)},O3:function(a){return new g.xd(a.clientWidth,a.clientHeight)},UR:function(a){var b=0,c=0,d=a,e=document.body,f=document.documentElement, h,k=g.l.sv;do{b+=d.offsetTop||0;c+=d.offsetLeft||0;b+=parseInt(g.g.Vc(d,"borderTopWidth"),10)||0;c+=parseInt(g.g.Vc(d,"borderLeftWidth"),10)||0;h=g.g.Vc(d,"position");if(d.offsetParent===e&&"absolute"===h)break;if("fixed"===h){b+=e.scrollTop||f.scrollTop||0;c+=e.scrollLeft||f.scrollLeft||0;break}d=d.offsetParent}while(d);d=a;do{if(d===e)break;b-=d.scrollTop||0;c-=d.scrollLeft||0;g.g.Qoa()||!g.l.x$&&!k||(c+=d.scrollWidth-d.clientWidth,k&&"hidden"!==g.g.Vc(d,"overflow-y")&&"hidden"!==g.g.Vc(d,"overflow")&& (c+=17));d=d.parentNode}while(d);return new g.H(c,b)},Qoa:function(){g.g.bea||(g.g.bea=!0,g.g.aea="ltr"===g.g.Vc(document.body,"direction"));return g.g.aea},create:function(a,b,c,d){a=document.createElement(a);c&&(a.className=c);b&&(d&&"before"===d?b.insertBefore(a,b.firstChild):b.appendChild(a));return a},X2:function(){document.selection&&document.selection.empty&&document.selection.empty();this.$ia||(this.$ia=document.onselectstart,document.onselectstart=g.a.t3)},k3:function(){},yya:function(a, b,c){c?this.Wa(a,b):this.eb(a,b)},Cn:function(a,b){if(a&&b)return 0a.childNodes.length?a.appendChild(e):a.insertBefore(e,a.childNodes[1])};(function(a){var b=g.l;if(!g.indexedDB&&b.Pi){var c=a.indexedDB||a.webkitIndexedDB||a.msIndexedDB||a.mozIndexedDB,d=a.IDBKeyRange||a.fIa||a.PFa||a.OFa;if(c){var e=g.a,f=null;a="amap-jsapi"+(a.yAa?"-debug":"");var h=g.extend({},g.va),k;try{k=c.open(a),k.onsuccess=function(){f=this.result;h.q("dbReady",{status:"success"})},k.onerror=function(){h.q("dbReady",{status:"error"})},k.onblocked=function(){h.q("dbReady",{status:"blocked"})},k.onupgradeneeded=function(a){a.currentTarget.result.createObjectStore("tile", {keyPath:"tileKey"})}}catch(l){b.Pi=!1}finally{if(!b.Pi)return}var b=function(a){return function(){try{return a.apply(this,arguments)}catch(b){var c=arguments[arguments.length-1];"function"===typeof c&&setTimeout(function(){c({code:4,KI:b})},1)}}},m=b(function(a,b){return null===f?(setTimeout(function(){b&&b({code:3})},1),null):f.transaction("tile",a).objectStore("tile")});g.indexedDB={lC:function(a,b){f?"function"===typeof a&&a():h.h("dbReady",function(c){"success"===c.status?"function"===typeof a&& a():"function"===typeof b&&b({code:3,status:status})})},count:b(function(a){var b=this,c=arguments;this.lC(function(){b.Pt.apply(b,c)},a)}),Pt:b(function(a){var b=m("readonly",a).count();b.onsuccess=function(){a(null,b.result)};b.onerror=function(){a({code:7})}}),get:b(function(a,b,c){var d=this,e=setTimeout(function(){e&&(e=null,c&&c({code:7}))},b.timeout||1E3);this.lC(function(){d.Dea.call(d,a,function(a,b){e&&(clearTimeout(e),e=null,c(a,b))})},c)}),Dea:b(function(a,b){var c=m("readonly",b);if(e.isArray(a)){var d, f;(function(){function e(b){var f=c.get(a[b]);f.onsuccess=function(a){a.target.result&&(d[b]=a.target.result);h()};f.onerror=h}function h(){f++;f===a.length&&b(null,d)}d=[];for(var k=f=0,l=a.length;kd&&(e=d);for(var f=m("readwrite",b),s=5*(h-1);sc.value.tileKey){d=f;break}c["continue"](a[d])}else b&&b(null)}}),clear:b(function(a){var b=this,c=arguments;this.lC(function(){b.cG.apply(b,c)},a)}),cG:b(function(a){var b=m("readwrite",a).clear();b.onsuccess=function(){a&&a(null)};b.onerror=function(){a&&a({code:2})}})}}else b.Pi=!1}})(window);(function(){function a(a){u.data.keys=u.data.keys.filter(function(b){return!r.ka(a,b)}).concat(a)}function b(a){var b=g.r.Hk+"|"+a.Qi.replace(/\//g,",")+"|"+(a.Sf?"w":"v")+"|",c;c=a.ja;var d=a.ze;c=[c?1:0,q.ba?1:0,d?1:0].join();return b+c+"|"+m(a.url)}function c(){u.data.keys.length>=u.ZL&&d()}function d(){var a=u.data.keys.length,b=Math.floor(a/2);a>u.ZL&&(b=Math.floor(a-u.ZL/2));a=u.data.keys.slice(0,b);u.data.keys=u.data.keys.slice(b+1);s.remove(a,function(a){a&&3===a.code&&(q.Pi=!1)})}function e(){var a= 0parseInt(d)||isNaN(parseInt(d)))&&a.hasOwnProperty(d)&&(c[d]=n(a[d]));b.push(c);b.push(a.map(function(a){return n(a)}))}else if(r.lk(a,"Float32Array"))b.push("__Float32Array"),b.push(Array.prototype.slice.call(a));else if(r.lk(a,"Uint16Array"))b.push("__Uint16Array"),b.push(Array.prototype.slice.call(a));else for(d in b={},a)a.hasOwnProperty(d)&& (b[d]=n(a[d]));return b}return a}function p(a){if("object"===typeof a&&null!==a){var b={};if(r.isArray(a))if("__Float32Array"===a[0])b=new Float32Array(a[1]);else if("__Uint16Array"===a[0])b=new Uint16Array(a[1]);else if("__arrayObject"===a[0]){b=p(a[2]);a=a[1];for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])}else b=a.map(function(a){return p(a)});else for(c in a)a.hasOwnProperty(c)&&(b[c]=p(a[c]));return b}return a}var q=g.l,r=g.a;if(!g.Qj&&q.Pi){var s=g.indexedDB,u={ZL:1E3,key:"_AMap_data.tileKeys"}, v=[],w={getItem:function(a,b){var c=localStorage.getItem(a);if(c&&b){var d;try{d=JSON.parse(c)}catch(e){d=null}c=d}return c},setItem:function(a,b,c){var d=b;c&&(d=JSON.stringify(b),1.5e||180===e?180:-180));this.Q=d;this.R=e;this.lng=Math.round(1E6*e)/1E6;this.lat=Math.round(1E6*d)/1E6},DR:function(){return g.a.vb(this.R,6)},AR:function(){return g.a.vb(this.Q,6)},add:function(a,b){return new g.U(this.R+a.R,this.Q+a.Q,b)},ab:function(a,b){return new g.U(this.R-a.R,this.Q-a.Q,b)},kd:function(a, b){return new g.U(this.R/a,this.Q/a,b)},Nd:function(a,b){return new g.U(this.R*a,this.Q*a,b)},He:function(a){return g.Ft.distance(this,a)},offset:function(a,b){if(isNaN(a)||isNaN(b))return!1;var c=2*Math.asin(Math.sin(Math.round(a)/12756274)/Math.cos(this.Q*Math.PI/180)),c=this.R+180*c/Math.PI,d=2*Math.asin(Math.round(b)/12756274);return new g.U(c,this.Q+180*d/Math.PI)},gb:function(a){a=g.a.Ja(a);return a instanceof g.U?1E-9>=Math.max(Math.abs(this.Q-a.Q),Math.abs(this.R-a.R)):!1},toString:function(){return g.a.vb(this.R, 6)+","+g.a.vb(this.Q,6)},yl:function(){return[this.R,this.Q]},cb:function(){var a=this.controlPoints,b=new g.U(this.R,this.Q);a&&(b.controlPoints=[].concat(a));return b}}); g.U.Gqa=function(a,b,c){c=c+1||Math.round(Math.abs(a.R-b.R));if(!c||0.001>Math.abs(a.R-b.R))return[];var d=[],e=Math.PI,f=g.Nm.Pu,h=g.Nm.cwa,k=Math.asin,l=Math.sqrt,m=Math.sin,n=Math.pow,p=Math.cos,q=Math.atan2,r=a.Q*f;a=a.R*f;var s=b.Q*f;b=b.R*f;for(var k=2*k(l(n(m((r-s)/2),2)+p(r)*p(s)*n(m((a-b)/2),2))),u,v,w,t,f=1;fa?(ub&&(u-=2*e)): (u>a&&(u-=2*e),uk&&(k+=360,0>e&&(e+=360),0>h&&(h+=360));return d.Q>=b.Q&&a.Q<=c.Q&&e>=f&&h<=k},ah:function(a){var b=this.xc,c=this.oc, d=a.xc;a=a.oc;var e=a.R>=b.R&&d.R<=c.R;return a.Q>=b.Q&&d.Q<=c.Q&&e},Ai:function(){return new g.U(this.xc.R>this.oc.R?(this.xc.R+this.oc.R+360)/2%360:(this.xc.R+this.oc.R)/2,(this.xc.Q+this.oc.Q)/2)},extend:function(a){this.xc.R=Math.min(this.xc.R,a.R);this.xc.Q=Math.min(this.xc.Q,a.Q);this.oc.R=Math.max(this.oc.R,a.R);this.oc.Q=Math.max(this.oc.Q,a.Q);return this},mza:function(a){return this.extend(a.xc).extend(a.oc)},toString:function(){return this.xc.toString()+";"+this.oc.toString()},cb:function(){return new g.ne(this.xc.cb(), this.oc.cb())},gb:function(a){return a instanceof g.ne?this.xc.gb(a.xc)&&this.oc.gb(a.oc):!1},zj:function(){return Math.abs(this.oc.R-this.xc.R)},wj:function(){return Math.abs(this.xc.Q-this.oc.Q)},bV:function(a){var b=[this.iv(),this.Po(),this.Py(),this.fk()];a&&b.push(this.iv());return new g.tp(b)},uya:function(a){return new g.$f(a.lc(this.fk(),20),a.lc(this.Po(),20))},vR:function(a,b){return this.bV(b).vR(a)},sR:function(a){return this.uya(a).Ai()}}); g.ne.Xb({iv:"getSouthWest",Py:"getNorthEast",fk:"getNorthWest",Po:"getSouthEast",contains:"contains",ah:"intersects",Ai:"getCenter",extend:"extend"});g.H=g.ca.extend({A:function(a,b,c){if(isNaN(a)||isNaN(b))throw"Invalid Object: Pixel("+a+", "+b+")";this.x=c?Math.round(a):Number(a);this.y=c?Math.round(b):Number(b)},xf:function(){return this.x},te:function(){return this.y},add:function(a,b){return new g.H(this.x+a.x,this.y+a.y,b)},ab:function(a,b){return new g.H(this.x-a.x,this.y-a.y,b)},kd:function(a,b){return new g.H(this.x/a,this.y/a,b)},Nd:function(a,b){return new g.H(this.x*a,this.y*a,b)},He:function(a){var b=a.x-this.x;a=a.y-this.y;return Math.sqrt(b* b+a*a)},floor:function(){return new g.H(Math.floor(this.x),Math.floor(this.y))},round:function(){return new g.H(this.x,this.y,!0)},gb:function(a){return a instanceof g.H&&this.x===a.x&&this.y===a.y},cb:function(a){return new g.H(this.x,this.y,a)},toString:function(){return this.x+","+this.y},yl:function(){return[this.x,this.y]},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},direction:function(){var a=this.x,b=this.y;if(0===a&&0===b)return null;if(0===a)return 0a&&0a&&0>b?c+180:0b?c+360:c},Lu:function(a){var b=this.length(),c=a.length();return b&&c?180*Math.acos((this.x*a.x+this.y*a.y)/c/b)/Math.PI:null},noa:function(a){var b=this.length(),c=a.length();return b&&c?(this.x*a.x+this.y*a.y)/c/b:null},toFixed:function(a){this.x=g.a.vb(this.x,a);this.y=g.a.vb(this.y,a);return this}});g.H.Xb({xf:"getX",te:"getY",add:"add",ab:"subtract",kd:"divideBy",Nd:"multiplyBy",He:"distance",gb:"equals",toString:"toString"});g.xd=g.ca.extend({A:function(a,b,c){if(isNaN(a)||isNaN(b))throw"Invalid Object: Size("+a+", "+b+")";this.width=c?Math.round(a):Number(a);this.height=c?Math.round(b):Number(b)},cb:function(){return new g.xd(this.width,this.height)},zj:function(){return this.width},wj:function(){return this.height},PE:function(){return new g.H(this.zj(),this.wj())},contains:function(a){return Math.abs(a.x)<=Math.abs(this.width)&&Math.abs(a.y)<=Math.abs(this.height)},gb:function(a){return a instanceof g.xd&&this.width=== a.width&&this.height===a.height},toString:function(){return this.zj()+","+this.wj()}});g.xd.Xb({zj:"getWidth",wj:"getHeight",toString:"toString"});g.tp=g.ca.extend({A:function(a){this.CLASS_NAME="AMap.ArrayBounds";a=g.a.Ja(a);this.path=[];for(var b=0;bthis.kc.x&&a.xthis.kc.y&&a.y=c.y-b&&e.y<=d.y+b;return f.x>=c.x-b&&e.x<=d.x+b&&h},toString:function(){return this.kc+";"+this.Vd},cb:function(){return new g.$f(this.kc.cb(),this.Vd.cb())}});g.I={};g.I.VP=function(a){for(var b=[Infinity,Infinity,-Infinity,-Infinity],c=0,d=a.length;ca[2]&&(a[2]=b[2]);b[1]a[3]&&(a[3]=b[3])};g.I.LI=function(a,b){b[0]a[2]&&(a[2]=b[0]);b[1]a[3]&&(a[3]=b[1])};g.I.bEa=function(a){return[a[0],a[1]]};g.I.cEa=function(a){return[a[2],a[1]]};g.I.Ai=function(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}; g.I.oEa=function(a,b,c,d,e){var f=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);c=Math.sin(c);f=[-f,-f,f,f];d=[-d,d,-d,d];var h,k,l;for(h=0;4>h;h+=1)k=f[h],l=d[h],f[h]=a[0]+k*b-l*c,d[h]=a[1]+k*c+l*b;return g.I.U1(f,d,e)};g.I.wj=function(a){return a[3]-a[1]};g.I.CEa=function(a){return[a[2]-a[0],a[3]-a[1]]};g.I.GEa=function(a){return[a[0],a[3]]};g.I.HEa=function(a){return[a[2],a[3]]};g.I.zj=function(a){return a[2]-a[0]};g.I.ah=function(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}; g.I.xh=function(a){return a[2]g.l.Ota&&(b.baseRender="dv");c=b.vectorMapForeign;"d"==b.baseRender&&c&&(b.vectorMapForeign=!1);c&&!g.l.Xp&&(b.vectorMapForeign=!1);c=this.U6(b.vectorMapForeign);b.vectorMapForeign=c[0];b.name_field=c[1];b.turboMode=!1;g.a.tb(this,b);this.kf(this.w);"rotateEnable"in b||"3D"!==b.viewMode||!g.l.qp||this.set("rotateEnable",!0);"pitchEnable"in b||"3D"!==b.viewMode||!g.l.qp||this.set("pitchEnable",!0);c=this.get("zoom",null,!0);"3D"===this.get("viewMode")&& g.l.qp||(c=Math.round(c));d=this.get("zooms");c>d[1]?c=d[1]:c> 0,h.y>>0])}}(d=b.style)&&d.layers&&(g.Hta=d.layers,b.zoomlevel&&(g.TJ=b.zoomlevel[0],g.SJ=b.zoomlevel[1]))}else c.js=!1,c.set("vectorMapForeign",!1);a()},this);f.h("error",function(){c.js=!1;c.set("vectorMapForeign",!1);a()},this)}else this.js=!1,this.set("vectorMapForeign",!1),a();else this.js=!1,this.set("vectorMapForeign",!1),a()}catch(h){this.js=!1,this.set("vectorMapForeign",!1),a()}},zta:function(a){function b(){var a=AMap.anole,b={},c=[],d=0,e=void 0;if(a){for(var a=a.replace(/\?/g,":").replace(/\//g, "&"),e=a.split(""),a=0,f=e.length;ac[0];e-=1){var f=this.lc(a.xc,e),h=this.lc(a.oc,e);if(Math.abs(h.x-f.x)e.get("zIndex"))&&(e=a)});e&&d.bf(["zIndex","opacity","zooms","visible"],e)}this.set("rasterLayer",d,!0)}}},dna:function(a){a||(a={});if(a.hasOwnProperty("defaultLayer")){a.layers=[a.defaultLayer];var b=a.defaultLayer;b.LP=!0;this.set("defaultLayer",b,!0)}a.layers&&0!==a.layers.length?this.set("defaultLayer",a.layers[0],!0):(b=new B.o.qb({innerLayer:!0}), a.layers=[b],b.LP=!0,this.set("defaultLayer",b,!0));if(b=a.view)b.w.rotation&&(a.rotation=b.w.rotation),b.w.center&&(a.center=b.w.center),b.w.zoom&&(a.zoom=Math.max(a.zooms[0],Math.min(a.zooms[1],b.w.zoom))),b.w.crs&&(a.crs=b.w.crs);a.level&&!a.zoom&&(a.zoom=a.level);return a},setLimitBounds:function(a){g.c.add(this,"setLimitBounds");a instanceof g.tp&&(a.D=!0,a=a.toBounds(),a.D=!1);a instanceof g.ne||(a=null);this.set("limitBounds",a)},clearLimitBounds:function(){g.c.add(this,"clearLimitBounds"); this.set("limitBounds",null)},getLimitBounds:function(){g.c.add(this,"getLimitBounds");return this.get("limitBounds",null,!0)},SH:function(a){var b=this.get("layers");if(!(0<=g.a.indexOf(b,a))&&(b.push(a),this.set("layers",b),a.xB)){a=a.getLayers();for(var b=-1,c=a.length;++bc[1]&&(a=c[1]);ad[1]&&(a=d[1]);athis.fG.width*this.fG.height)&&this.refreshSize();return this.fG},getContainer:function(){g.c.add(this,"getContainer");return this.K},panTo:function(a){g.c.add(this,"panTo");a=g.a.Ja(a);this.loaded?this.set("panTo",a):(this.D=!0,this.setCenter(a),this.D=!1)},panBy:function(a,b,c){g.c.add(this,"panBy");this.D=!0;var d=this.get("rotation")*Math.PI/180,e=a*Math.cos(d)+Math.sin(d)*b;a=-Math.sin(d)*a+Math.cos(d)*b;b=this.loaded&&this.map&&this.map.Fd?this.map.Fd.A9:this.get("centerCoords"); d=Math.pow(2,20-this.getZoom());e=b.add(new g.H(-e*d,-a*d));e=this.Od(e);!this.loaded||c?this.setCenter(e,c):this.set("panTo",e);this.D=!1},setFitView:function(a,b,c,d){g.c.add(this,"setFitView");this.D=!0;var e=this.get("size"),f=e.height;if(!e.width||!f)return!0;if(a=this.m4(a)){if(c=this.eJ(a,0,new g.H(40,40),c,d))b=b||!this.getBounds().contains(a.Ai())||g.l.ba&&1k.width||q>k.height){d-=1;break}d+=1}while(d<=c[1]);d=Math.min(c[1],e,Math.max(c[0],d+b));d=Math.floor(d);b=Math.pow(2,20-d);e=f*Math.PI/180;f=h*Math.cos(e)+Math.sin(e)*n;e=-Math.sin(e)*h+Math.cos(e)*n;m=m.ab(new g.H(f*b,e*b));m=this.Zh(m,20);return[d,m]},setLayers:function(a){g.c.add(this,"setLayers");for(var b=0;b=this.ql[0]?(b[0]this.ql[1]&&(b[1]=this.ql[1])):a.zooms=[this.ql[0],this.ql[1]]; arguments.callee.ma.call(this,a);a.vk&&(this.vk=!0);this.HG=this.wq()},setTextIndex:function(a){g.c.add(this,"setTextIndex");this.set("textIndex",a)},wq:function(){if(this.get("createTile"))return!1;var a=this.get("getTileUrl");return a&&a!==g.r.OD&&a!==g.r.TE?!1:!0},q2:function(){if(!this.wq())return!1;var a=this.get("map");return a&&a.Ei&&"zh_cn"===a.get("lang")&&!this.noVector?!0:!1},u4:function(a){var b=g.r.WJ;g.l.ja&&this.get("detectRetina")&&(b=g.r.WJ.replace("scl=1","scl=2"));a&&(b=b.replace("ltype=3", "ltype=11"));return b},fg:function(a){var b=this.q2(),c=this.get("map");this.wq()&&this.set("mapNumber","GS(2019)6379");if(this.vk)return new g.o.qb(this,a,this.yr(this.u4(!0)),this.w.maxDataZoom,!0);if(b)if(this.Hq=!0,g.o.hi){if("dv"===c.get("baseRender")&&!this.get("watermark")){var b=c.get("showBuildingBlock"),d=new g.o.qb(this,a,this.yr(this.u4(!b)),void 0,!0);b&&(d.Kj=new g.o.od(new B.o.qb({zooms:[16,20],innerLayer:!0}),a,["building"]),d.Kj.type="\u697c\u5757\u56fe\u5c42",d.Kj.bf(["visible", "opacity","zIndex"],d,!0),d.Kj.BC(c.get("mapStyle")||"normal"));d.type="\u6805\u683c\u5e95\u56fe";return d}if("v"<=c.get("baseRender")||this.get("watermark"))return"3D"==a.B.view.type?(c=new g.o.od(this,a,["region","road"]),c.type="\u77e2\u91cf\u5e95\u56fe",b=new B.o.qb({zooms:[17,20],zIndex:50,innerLayer:!0}),c.Kj=new g.o.od(b,a,["building"]),c.Kj.gf=17,c.Kj.type="\u697c\u5757\u56fe\u5c42",c.Kj.Yy=1,c.Kj.bf(["visible","merge","sort","opacity"],c,!0),b.X("rejectMapMask",this,!0)):(c=new g.o.od(this, a,["region","building","road"]),c.type="\u77e2\u91cf\u5e95\u56fe"),a.tma=c}else return["vectorlayer","overlay"];else return this.Hq=!1,new g.o.qb(this,a,null,this.w.maxDataZoom)},getTileUrlChanged:function(){var a=this.get("getTileUrl");if(a===g.r.OD||a===g.r.TE||a===g.r.SK)this.bK=!0;"string"===typeof a&&(a=this.yr(a));this.set("tileFun",a)},kna:function(a){this.ql||(this.ql=[this.w.zooms[0],this.w.zooms[1]]);var b;a.hasOwnProperty("detectRetina")&&!1===a.detectRetina&&(b=!0);g.l.ba&&g.l.ja&&this.w.detectRetina&& !b&&(this.ql[1]-=1)},getTiles:function(){g.c.add(this,"getTiles");var a=this.get("tiles",null,!0);if(a&&a.length)a=a[0];else return[];for(var b=[],c,d=0;da[1]?this.set("outOfZooms", !0):this.set("outOfZooms",!1);this.C&&this.C.cva()}},setIcon:function(a){g.c.add(this,"setIcon");this.set("icon",a)},getIcon:function(){g.c.add(this,"getIcon");return this.get("icon",null,!0)},setContent:function(a){g.c.add(this,"setContent");this.set("content",a)},getContent:function(){g.c.add(this,"getContent");return this.get("content",null,!0)},getContentDom:function(){return this.get("contentDom",null,!0)},hide:function(){g.c.add(this,"hide");!0==this.get("visible",null,!0)&&this.set("visible", !1)},show:function(){g.c.add(this,"show");!1==this.get("visible",null,!0)&&this.set("visible",!0)},setCursor:function(a){g.c.add(this,"setCursor");this.set("cursor",a)},setRotation:function(a){g.c.add(this,"setRotation");g.l.Ie||this.set("angle",a)},setAngle:function(a){g.c.add(this,"setAngle");g.l.Ie||"number"!==typeof a||this.set("angle",a)},getAngle:function(){g.c.add(this,"getAngle");return this.get("angle",null,!0)},setOffset:function(a){g.c.add(this,"setOffset");this.set("offset",a)},getOffset:function(){g.c.add(this, "getOffset");return this.get("offset",null,!0)},setTextAlign:function(a){g.c.add(this,"setTextAlign");this.set("textAlign",a)},getTextAlign:function(){g.c.add(this,"getTextAlign");return this.get("textAlign",null,!0)},setVerticalAlign:function(a){g.c.add(this,"setVerticalAlign");this.set("verticalAlign",a)},getVerticalAlign:function(){g.c.add(this,"getVerticalAlign");return this.get("verticalAlign",null,!0)},setzIndex:function(a){g.c.add(this,"setzIndex");this.set("zIndex",a)},getzIndex:function(){g.c.add(this, "getzIndex");return this.get("zIndex",null,!0)},setOpacity:function(a){g.c.add(this,"setOpacity");this.set("opacity",a)},setDraggable:function(a){g.c.add(this,"setDraggable");this.set("draggable",a)},getDraggable:function(){g.c.add(this,"getDraggable");return this.get("draggable",null,!0)},moveTo:function(a,b,c){g.c.add(this,"moveTo");a=this.Ja(a);this.set("move",{Tf:a,speed:b,wb:c})},moveAlong:function(a,b,c,d){g.c.add(this,"moveAlong");if(!(2>a.length)){a=this.Ja(a);console.log(""," -lnglatList.length- ", a.length);for(var e=[a[0]],f=a[0],h=1;hc;++c){l=3* (1-3*h+3*e)*d*d+2*(3*h-6*e)*d+3*e;if(0===l)break;d-=(a(d,e,h)-b)/l}b=d}else if(0===l)b=d;else{var d=c,c=c+0.1,m,n=0;do m=d+(c-d)/2,l=a(m,e,h)-b,0++n);b=m}b=a(b,f,s)}return b}if(!(0<=e&&1>=e&&0<=h&&1>=h))throw Error("bezier x values must be in [0, 1] range");var v=arguments.toString();if(c[v])return c[v];if(e===f&&h===s)return b;for(var w=d?new Float32Array(11):Array(11),t=0;11>t;++t)w[t]=a(0.1*t,e,h);return c[v]=u}}(),d4:function(a,b,c,d){var e,f,r=[];e=0;for(f= a.length;ed)return 0;for(var e=0;ec;c++)b[c].copy(a.iE[c]);return this},CJ:function(){var a=new g.Oa,b=new g.Oa,c=a.elements,d=b.elements;return function(e){var f=this.iE,h=e.max.elements;e=e.min.elements;for(var k=0;6>k;k++){var l=f[k],m=l.wz.elements;c[0]=0m&&0>l)return!1}return!0}}()};(function(a){function b(a){this.elements=a||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}a.gM=function(a){this.elements=[a.elements[0],a.elements[1],a.elements[2],a.elements[4],a.elements[5],a.elements[6],a.elements[8],a.elements[9],a.elements[10]]};b.prototype.AU=function(){var a=this.elements;a[0]=1;a[4]=0;a[8]=0;a[12]=0;a[1]=0;a[5]=1;a[9]=0;a[13]=0;a[2]=0;a[6]=0;a[10]=1;a[14]=0;a[3]=0;a[7]=0;a[11]=0;a[15]=1};b.prototype.set=function(a){if(a.elements!==this.elements)return this.elements=a.elements.slice(0), this};b.prototype.toFixed=function(b){for(var d=this.elements,e=0;16>e;++e)0!==d[e]&&(d[e]=a.a.vb(d[e],b));return this};b.prototype.concat=function(a){var b,e,f,h,k,l,m;e=b=this.elements;f=a.elements;if(b===f)for(f=Array(16),a=0;16>a;++a)f[a]=b[a];for(a=0;4>a;a++)h=e[a],k=e[a+4],l=e[a+8],m=e[a+12],b[a]=h*f[0]+k*f[1]+l*f[2]+m*f[3],b[a+4]=h*f[4]+k*f[5]+l*f[6]+m*f[7],b[a+8]=h*f[8]+k*f[9]+l*f[10]+m*f[11],b[a+12]=h*f[12]+k*f[13]+l*f[14]+m*f[15];return this};b.multiply=function(b,d){var e=Array(16),f,h, k,l,m,n,p;k=h=b.elements;l=d.elements;if(h===l)for(f=0;16>f;++f)e[f]=h[f];for(f=0;4>f;f++)h=k[f],m=k[f+4],n=k[f+8],p=k[f+12],e[f]=h*l[0]+m*l[1]+n*l[2]+p*l[3],e[f+4]=h*l[4]+m*l[5]+n*l[6]+p*l[7],e[f+8]=h*l[8]+m*l[9]+n*l[10]+p*l[11],e[f+12]=h*l[12]+m*l[13]+n*l[14]+p*l[15];return new a.Dc(e)};b.prototype.multiply=b.prototype.concat;b.prototype.Dh=function(b){var d=this.elements;b=b.elements;var e=new a.Hl,f=e.elements;f[0]=b[0]*d[0]+b[1]*d[4]+b[2]*d[8]+b[3]*d[12];f[1]=b[0]*d[1]+b[1]*d[5]+b[2]*d[9]+b[3]* d[13];f[2]=b[0]*d[2]+b[1]*d[6]+b[2]*d[10]+b[3]*d[14];f[3]=b[0]*d[3]+b[1]*d[7]+b[2]*d[11]+b[3]*d[15];return e};b.prototype.cA=function(){var a,b;a=this.elements;b=a[1];a[1]=a[4];a[4]=b;b=a[2];a[2]=a[8];a[8]=b;b=a[3];a[3]=a[12];a[12]=b;b=a[6];a[6]=a[9];a[9]=b;b=a[7];a[7]=a[13];a[13]=b;b=a[11];a[11]=a[14];a[14]=b;return this};b.prototype.vxa=function(a){var b,e,f;b=a.elements;a=this.elements;e=[];e[0]=b[5]*(b[10]*b[15]-b[11]*b[14])-b[9]*(b[6]*b[15]+b[7]*b[14])+b[13]*(b[6]*b[11]-b[7]*b[10]);e[4]=-b[4]* (b[10]*b[15]-b[11]*b[14])+b[8]*(b[6]*b[15]-b[7]*b[14])-b[12]*(b[6]*b[11]-b[7]*b[10]);e[8]=b[4]*(b[9]*b[15]-b[11]*b[13])-b[8]*(b[5]*b[15]-b[7]*b[13])+b[12]*(b[5]*b[11]-b[7]*b[9]);e[12]=-b[4]*(b[9]*b[14]-b[10]*b[13])+b[8]*(b[5]*b[14]-b[6]*b[13])-b[12]*(b[5]*b[10]-b[6]*b[9]);e[1]=-b[1]*(b[10]*b[15]-b[11]*b[14])+b[9]*(b[2]*b[15]-b[3]*b[14])-b[13]*(b[2]*b[11]-b[3]*b[10]);e[5]=b[0]*(b[10]*b[15]-b[11]*b[14])-b[8]*(b[2]*b[15]-b[3]*b[14])+b[12]*(b[2]*b[11]-b[3]*b[10]);e[9]=-b[0]*(b[9]*b[15]-b[11]*b[13])+b[8]* (b[1]*b[15]-b[3]*b[13])-b[12]*(b[1]*b[11]-b[3]*b[9]);e[13]=b[0]*(b[9]*b[14]-b[10]*b[13])-b[8]*(b[1]*b[14]-b[2]*b[13])+b[12]*(b[1]*b[10]-b[2]*b[9]);e[2]=b[1]*(b[6]*b[15]-b[7]*b[14])-b[5]*(b[2]*b[15]-b[3]*b[14])+b[13]*(b[2]*b[7]-b[3]*b[6]);e[6]=-b[0]*(b[6]*b[15]-b[7]*b[14])+b[4]*(b[2]*b[15]-b[3]*b[14])-b[12]*(b[2]*b[7]-b[3]*b[6]);e[10]=b[0]*(b[5]*b[15]-b[7]*b[13])-b[4]*(b[1]*b[15]-b[3]*b[13])+b[12]*(b[1]*b[7]-b[3]*b[5]);e[14]=-b[0]*(b[5]*b[14]-b[6]*b[13])+b[4]*(b[1]*b[14]-b[2]*b[13])-b[12]*(b[1]*b[6]- b[2]*b[5]);e[3]=-b[1]*(b[6]*b[11]-b[7]*b[10])+b[5]*(b[2]*b[11]-b[3]*b[10])-b[9]*(b[2]*b[7]-b[3]*b[6]);e[7]=b[0]*(b[6]*b[11]-b[7]*b[10])-b[4]*(b[2]*b[11]+b[3]*b[10])+b[8]*(b[2]*b[7]-b[3]*b[6]);e[11]=-b[0]*(b[5]*b[11]+b[7]*b[9])+b[4]*(b[1]*b[11]-b[3]*b[9])-b[8]*(b[1]*b[7]+b[3]*b[5]);e[15]=b[0]*(b[5]*b[10]-b[6]*b[9])-b[4]*(b[1]*b[10]+b[2]*b[9])+b[8]*(b[1]*b[6]-b[2]*b[5]);f=b[0]*e[0]+b[1]*e[4]+b[2]*e[8]+b[3]*e[12];if(0===f)return this;f=1/f;for(b=0;16>b;b++)a[b]=e[b]*f;return this};b.prototype.Hg=function(){return(new b).vxa(this)}; b.prototype.DU=function(a,b,e,f,h,k){var l,m,n,p;if(a===b||e===f||h===k)throw"null frustum";m=1/(b-a);n=1/(f-e);p=1/(k-h);l=this.elements;l[0]=2*m;l[1]=0;l[2]=0;l[3]=0;l[4]=0;l[5]=2*n;l[6]=0;l[7]=0;l[8]=0;l[9]=0;l[10]=-2*p;l[11]=0;l[12]=-(b+a)*m;l[13]=-(f+e)*n;l[14]=-(k+h)*p;l[15]=1;return this};b.prototype.ava=function(a,d,e,f,h,k){return this.concat((new b).DU(a,d,e,f,h,k))};b.prototype.txa=function(a,b,e,f,h,k){var l,m,n,p;if(a===b||f===e||h===k)throw"null frustum";if(0>=h)throw"near <= 0";if(0>= k)throw"far <= 0";m=1/(b-a);n=1/(f-e);p=1/(k-h);l=this.elements;l[0]=2*h*m;l[1]=0;l[2]=0;l[3]=0;l[4]=0;l[5]=2*h*n;l[6]=0;l[7]=0;l[8]=(b+a)*m;l[9]=(f+e)*n;l[10]=-(k+h)*p;l[11]=-1;l[12]=0;l[13]=0;l[14]=-2*h*k*p;l[15]=0;return this};b.prototype.pR=function(a,d,e,f,h,k){return this.concat((new b).txa(a,d,e,f,h,k))};b.prototype.V8=function(a,b,e,f){var h,k;if(e===f||0===b)throw"null frustum";if(0>=e)throw"near <= 0";if(0>=f)throw"far <= 0";a/=2;k=Math.sin(a);if(0===k)throw"null frustum";h=1/(f-e);k=Math.cos(a)/ k;a=this.elements;a[0]=k/b;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=k;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=-(f+e)*h;a[11]=-1;a[12]=0;a[13]=0;a[14]=-2*e*f*h;a[15]=0;return this};b.prototype.perspective=function(a,d,e,f){return this.concat((new b).V8(a,d,e,f))};b.prototype.bw=function(a,b,e){var f=this.elements;f[0]=a;f[4]=0;f[8]=0;f[12]=0;f[1]=0;f[5]=b;f[9]=0;f[13]=0;f[2]=0;f[6]=0;f[10]=e;f[14]=0;f[3]=0;f[7]=0;f[11]=0;f[15]=1;return this};b.prototype.scale=function(a,b,e){var f=this.elements;f[0]*=a;f[4]*=b; f[8]*=e;f[1]*=a;f[5]*=b;f[9]*=e;f[2]*=a;f[6]*=b;f[10]*=e;f[3]*=a;f[7]*=b;f[11]*=e;return this};b.prototype.Y8=function(a,b,e){var f=this.elements;f[12]=a;f[13]=b;f[14]=e;return this};b.prototype.translate=function(a,b,e){var f=this.elements;f[12]+=f[0]*a+f[4]*b+f[8]*e;f[13]+=f[1]*a+f[5]*b+f[9]*e;f[14]+=f[2]*a+f[6]*b+f[10]*e;f[15]+=f[3]*a+f[7]*b+f[11]*e;return this};b.prototype.Sz=function(a,b,e,f){var h,k,l,m,n,p,q,r;a=Math.PI*a/180;h=this.elements;k=Math.sin(a);a=Math.cos(a);0!==b&&0===e&&0===f? (0>b&&(k=-k),h[0]=1,h[4]=0,h[8]=0,h[12]=0,h[1]=0,h[5]=a,h[9]=-k,h[13]=0,h[2]=0,h[6]=k,h[10]=a,h[14]=0,h[3]=0,h[7]=0,h[11]=0):0===b&&0!==e&&0===f?(0>e&&(k=-k),h[0]=a,h[4]=0,h[8]=k,h[12]=0,h[1]=0,h[5]=1,h[9]=0,h[13]=0,h[2]=-k,h[6]=0,h[10]=a,h[14]=0,h[3]=0,h[7]=0,h[11]=0):0===b&&0===e&&0!==f?(0>f&&(k=-k),h[0]=a,h[4]=-k,h[8]=0,h[12]=0,h[1]=k,h[5]=a,h[9]=0,h[13]=0,h[2]=0,h[6]=0,h[10]=1,h[14]=0,h[3]=0,h[7]=0,h[11]=0):(l=Math.sqrt(b*b+e*e+f*f),1!==l&&(l=1/l,b*=l,e*=l,f*=l),l=1-a,m=b*e,n=e*f,p=f*b,q=b*k, r=e*k,k*=f,h[0]=b*b*l+a,h[1]=m*l+k,h[2]=p*l-r,h[3]=0,h[4]=m*l-k,h[5]=e*e*l+a,h[6]=n*l+q,h[7]=0,h[8]=p*l+r,h[9]=n*l-q,h[10]=f*f*l+a,h[11]=0,h[12]=0,h[13]=0,h[14]=0);h[15]=1;return this};b.prototype.rotate=function(a,d,e,f){return this.concat((new b).Sz(a,d,e,f))};b.prototype.et=function(a){return this.rotate(a,1,0,0)};b.prototype.ft=function(a){return this.rotate(a,0,1,0)};b.prototype.gt=function(a){return this.rotate(a,0,0,1)};b.prototype.Yu=function(a){for(var b=0,e=this.elements.length;b=e&&a[1]<=b}var e=Math.min(b[0],c[0]),f=Math.max(b[0],c[0]);return Math.abs((c[1]-b[1])/(c[0]-b[0])*(a[0]-b[0])+b[1]-a[1])=e&&a[0]<=f},B2:function(a,b){var c=a[0],d=a[1],e=b[0],f=b[1],h=e[0],e=e[1],k=f[0],f=f[1],l=k-h,m=f-e,c=0===l&&0===m?0:(l*(c-h)+m*(d-e))/(l*l+m*m||0);0>=c||(1<=c?(h=k,e=f):(h+=c*l,e+=c*m));return[h,e]},vq:function(a){for(var b=a.length,c=0,d=a[b-1],e=d[0],d=d[1],f,h,k=0;k=a){f=(k-f)*(a-h)/(l-h)+f;if(d===f)return c?!0:!1;p=d(c[1]-b[1])*(a[0]-b[0])}var e,f,h,k,l=a;e=b[b.length-2];for(var m=0,n=b.length-1;ml.length)return[];l.push(l[0]);return l}};(function(a){function b(b,c){var d;a:{switch(b){case "EPSG3395":d=a.bi.XV;break a;case "EPSG4326":d=a.bi.YV;break a}d=a.bi.NL}return{project:function(b){a.a.isArray(b)&&(b=new a.U(b[0],b[1]));return d.ND(b,c).yl()},unproject:function(b){a.a.isArray(b)&&(b=new a.H(b[0],b[1]));return d.lE(b,c).yl()},normalizePoint:function(b){return a.a.Ja(b)},distance:function(b,c){c=this.normalizePoint(c);if(a.a.isArray(c))return this.distanceToLine(b,c);b=this.normalizePoint(b);var d=a.Nm.Pu,e=Math.cos,f=b.Q*d,h= c.Q*d,k=2*a.Nm.TQ,d=c.R*d-b.R*d,e=(1-e(h-f)+(1-e(d))*e(f)*e(h))/2;return k*Math.asin(Math.sqrt(e))},ringArea:function(b){b=this.normalizeLine(b);var c=a.Nm.TQ*a.Nm.Pu,d=0,e=b.length;if(3>e)return 0;for(var f=0;f=b}function e(b){this.CLASS_NAME="AMap.GeometryUtil";this.Vb=a.extend({onSegmentTolerance:5,crs:"EPSG3857",maxZoom:20},b);this.setCrs(this.Vb.crs)}a.extend(e.prototype,{clone:function(b){return new e(a.extend({},this.Vb,b))},isPoint:function(b){return b&&(b instanceof a.U||a.a.isArray(b)&&!isNaN(b[0]))},normalizePoint:function(a){return a},normalizeLine:function(a){for(var b= [],c=0,d=a.length;cd)d=this.Vb.onSegmentTolerance;return this.distanceToSegment(a,b,c)<=d},isPointOnLine:function(a,b,c){b=this.normalizeLine(b); for(var d=0,e=b.length;d=b&&0<=a&&1>=a&&(e=!0));return e},doesSegmentLineIntersect:function(a,b,c){c=this.normalizeLine(c);for(var d=0,e=c.length;d(n[1]-e[1])*(a[0]-e[0])}a=this.makesureAntiClockwise(a); b=this.makesureClockwise(b);var e,n,p,q,r=a;e=b[b.length-1];for(var s=0,u=b.length;s=b}a.Gta=function(a){b(a)&&(a=[].concat(a),a.reverse());return a};a.y5=b})();(function(){function b(a){var b=a.length;2=c;f-=e)h=r(f,b[f],b[f+1],h);h&&m(h,h.next)&&(s(h),h=h.next);return h}function c(a,b){if(!a)return a;b||(b=a);var c=a,d;do if(d=!1,c.q9||!m(c,c.next)&&0!==l(c.Ia,c,c.next))c=c.next;else{s(c);c=b=c.Ia;if(c===c.next)break;d=!0}while(d||c!==b);return b}function d(a,b,e,f,r,u,C){if(a){if(!C&&u){var E=a,A=E;do null===A.z&& (A.z=h(A.x,A.y,f,r,u)),A.jp=A.Ia,A=A.pl=A.next;while(A!==E);A.jp.pl=null;A.jp=null;var E=A,z,G,H,I,P,L,O=1;do{A=E;H=E=null;for(I=0;A;){I++;G=A;for(z=P=0;z a.x?H.x>I.x?H.x:I.x:a.x>I.x?a.x:I.x,H.y>a.y?H.y>I.y?H.y:I.y:a.y>I.y?a.y:I.y,f,r,u);for(z=a.pl;z&&z.z<=O;){if(z!==a.Ia&&z!==a.next&&k(H.x,H.y,a.x,a.y,I.x,I.y,z.x,z.y)&&0<=l(z.Ia,z,z.next)){H=!1;break a}z=z.pl}for(z=a.jp;z&&z.z>=P;){if(z!==a.Ia&&z!==a.next&&k(H.x,H.y,a.x,a.y,I.x,I.y,z.x,z.y)&&0<=l(z.Ia,z,z.next)){H=!1;break a}z=z.jp}H=!0}else a:if(H=a.Ia,I=a.next,0<=l(H,a,I))H=!1;else{for(P=a.next.next;P!==a.Ia;){if(k(H.x,H.y,a.x,a.y,I.x,I.y,P.x,P.y)&&0<=l(P.Ia,P,P.next)){H=!1;break a}P=P.next}H=!0}if(H)b.push(A.ve/ e),b.push(a.ve/e),b.push(G.ve/e),s(a),E=a=G.next;else if(a=G,a===E){if(C)if(1===C){C=b;E=e;A=a;do G=A.Ia,H=A.next.next,!m(G,H)&&n(G,A,A.next,H)&&p(G,H)&&p(H,G)&&(C.push(G.ve/E),C.push(A.ve/E),C.push(H.ve/E),s(A),s(A.next),A=a=H),A=A.next;while(A!==a);a=A;d(a,b,e,f,r,u,2)}else{if(2===C)a:{C=a;do{for(E=C.next.next;E!==C.Ia;){if(A=C.ve!==E.ve)if(A=void 0,A=C.next.ve!==E.ve)if(A=void 0,A=C.Ia.ve!==E.ve){A=A=void 0;b:{A=C;do{if(A.ve!==C.ve&&A.next.ve!==C.ve&&A.ve!==E.ve&&A.next.ve!==E.ve&&n(A,A.next,C, E)){A=!0;break b}A=A.next}while(A!==C);A=!1}if(A=!A)if(A=void 0,A=p(C,E))if(A=void 0,A=p(E,C)){A=C;G=!1;H=(C.x+E.x)/2;I=(C.y+E.y)/2;do A.y>I!==A.next.y>I&&A.next.y!==A.y&&H<(A.next.x-A.x)*(I-A.y)/(A.next.y-A.y)+A.x&&(G=!G),A=A.next;while(A!==C);A=G}}if(A){a=q(C,E);C=c(C,C.next);a=c(a,a.next);d(C,b,e,f,r,u);d(a,b,e,f,r,u);break a}E=E.next}C=C.next}while(C!==a)}}else d(c(a),b,e,f,r,u,1);break}}}}function e(a,b){return a.x-b.x}function f(a,b){var c=b,d=a.x,e=a.y,f=-Infinity,h;do{if(e<=c.y&&e>=c.next.y&& c.next.y!==c.y){var l=c.x+(e-c.y)*(c.next.x-c.x)/(c.next.y-c.y);if(l<=d&&l>f){f=l;if(l===d){if(e===c.y)return c;if(e===c.next.y)return c.next}h=c.x=c.x&&c.x>=m&&d!==c.x&&k(eh.x)&&p(c,a)&&(h=c,r=s)),c=c.next;return h}function h(a,b,c,d,e){a=32767*(a-c)*e;b=32767*(b-d)*e;a=(a|a<<8)&16711935; a=(a|a<<4)&252645135;a=(a|a<<2)&858993459;b=(b|b<<8)&16711935;b=(b|b<<4)&252645135;b=(b|b<<2)&858993459;return(a|a<<1)&1431655765|((b|b<<1)&1431655765)<<1}function k(a,b,c,d,e,f,h,k){return 0<=(e-h)*(b-k)-(a-h)*(f-k)&&0<=(a-h)*(d-k)-(c-h)*(b-k)&&0<=(c-h)*(f-k)-(e-h)*(d-k)}function l(a,b,c){return(b.y-a.y)*(c.x-b.x)-(b.x-a.x)*(c.y-b.y)}function m(a,b){return a.x===b.x&&a.y===b.y}function n(a,b,c,d){return m(a,b)&&m(c,d)||m(a,d)&&m(c,b)?!0:0l(a.Ia,a,a.next)?0<=l(a,b,a.next)&&0<=l(a,a.Ia,b):0>l(a,b,a.Ia)||0>l(a,a.next,b)}function q(a,b){var c=new u(a.ve,a.x,a.y),d=new u(b.ve,b.x,b.y),e=a.next,f=b.Ia;a.next=b;b.Ia=a;c.next=e;e.Ia=c;d.next=c;c.Ia=d;f.next=d;d.Ia=f;return d}function r(a,b,c,d){a=new u(a,b,c);d?(a.next=d.next,a.Ia=d,d.next.Ia=a,d.next=a):(a.Ia=a,a.next=a);return a}function s(a){a.next.Ia=a.Ia;a.Ia.next=a.next;a.jp&&(a.jp.pl=a.pl);a.pl&&(a.pl.jp=a.jp)}function u(a,b,c){this.ve=a;this.x=b;this.y=c;this.pl=this.jp= this.z=this.next=this.Ia=null;this.q9=!1}return{qL:function(h,k,l){l=l||2;var m=k&&k.length,n=m?k[0]*l:h.length,p=a(h,0,n,l,!0),r=[];if(!p)return r;var s,u,z,G;if(m){var H=l,m=[],I,P,L;G=0;for(I=k.length;G80*l){s=z=h[0];u=m=h[1];for(H=l;Hz&&(z=G),k>m&&(m=k);z=Math.max(z-s,m-u);z=0!==z?1/z:0}d(p,r,l,s,u,z);return r}}};a.baa=a.sF()})(g);(function(a){function b(a){var b=a.length;2a.ao.ri(b)},normalize:function(b){var c;if(b){c=[];for(var f=0,h=b.length;fc.length?g.r.vc+"://webapi.amap.com/style?name="+c+"&key="+g.r.key:g.r.vc+"://webapi.amap.com/v4/map/styles?styleid="+ c+"&s=rsv3&key="+g.r.key+(b?"&ispublic=1":""),{callback:"callback"}),b.h("complete",function(a){a.data&&a.data.content?this.set("style",JSON.parse(a.data.content)):this.set("style","");this.hA=!1},this),b.h("error",function(){this.hA=!1},this),this.Dm=a,this.sE())}}},N8:function(a){this.K.style.background=a},eqa:function(a){var b=this.get("center");if(a.contains(b))return null;a=g.Ft.closestOnLine(b,a.bV().path);return new g.U(a[0],a[1])},gna:function(){var a=this.get("limitBounds"),b=this.get("bounds"); b.xc&&b.xc.R>b.oc.R&&(b.oc.R+=360);if(!a.contains(b)){if(b instanceof g.tp)return this.eqa(a,b);var c=this.get("center").cb();a.zj()b.xc.R&&(c.R+=a.xc.R-b.xc.R),a.oc.Rb.xc.Q&&(c.Q+=a.xc.Q-b.xc.Q),a.oc.Qb&&a[d].get("visible")&&(c=e,b=f)}this.set("mapNumber",c);this.B.D=!0;a=this.B.getMapStyle();this.B.D=!1;"GS(2019)6379"===c&&a&&"normal"!==a&&"amap://styles/normal"!==a&&(c="",this.Za.tn.style.visibility="hidden");c&&this.Za.tn.q6&&(this.Za.tn.q6.innerHTML="- "+c+"\u53f7",this.Za.tn.style.visibility="visible");return c}},vY:function(){var a=0e[1]||be;e+=1)for(var f=0;100>f;f+=1){var h=new g.U(d.R+0.02*f,d.Q+0.02*e),h=new g.di({name:"point"+(100*e+f),map:this,W:new g.Aa.Pg(this.Ab(h))});c[100*e+f]=h;h.h("hover",a,h)}b.ay(c); this.la.push(b)},nc:function(){},BCa:function(a){var b=new g.o.ed,c=[],c=(new g.naa({map:this})).QT(a);b.ay(c);this.la.push(b);this.set("display",0)},fg:function(a){var b=this;a=a.fg(this);if(!a)return null;if(a.length&&"string"==typeof a[0])g.sb.Jg(a,function(){b.layersChanged()});else return a;return null},wEa:function(){return this.Za},KGa:function(){this.set("display",0)},displayChanged:function(a){this.l1||this.PK(a)},PK:function(a){if(a)if(g.a.ui(this.wE),g.l.Yl){var b=this;setTimeout(function(){b.pc()}, 0)}else this.pc();else this.Dw||(this.wE=g.a.Yc(this.pc),this.Dw=!0)},pc:function(){this.wE=null;if(!this.yI){this.q("render");this.Dw=!1;var a={};if(this.la&&(a.size=this.B.get("size"),a.size.width&&a.size.height)){for(var b=this.B.view.type,c=[],d=0,e=this.la.length;dd?1:c===d?a.ex>b.ex?1:-1:-1});a.la=c;c=g.l.ja? Math.min(window.devicePixelRatio||1,2):1;a.Q1=15E5b;a.Lf=a.P.zoom>b?"zoomOut":a.P.zooma.indexOf(this.la[e].S)||(d.push(this.la[e]),this.la[e].Kj&&d.push(this.la[e].Kj));d.sort(function(a,b){var c=a.get("zIndex"),d=b.get("zIndex");return c>d?1:c===d?a.ex>b.ex?1:-1:-1});b.la=d;a=g.l.ja?Math.min(window.devicePixelRatio||1, 2):1;b.Q1=15E5c;b.Lf=b.P.zoom>c?"zoomOut":b.P.zoomb.get("zIndex")?-1:1});c.nq(a,this.la,function(a){d=a;d=e.Pxa(d)},function(){d=[]},b);return d}});g.Rb.Gb({mga:function(){this.Vm={};this.h("moveend",this.b7,this);g.l.Yl&&(g.l.vL||g.l.YH)&&this.h("zoomend",this.GV,this);this.h("movestart",this.c7,this);this.h("zoomstart",this.k7,this);this.h("zoomend",this.j7,this);this.KM();this.St=0;this.tG={};"undefined"===typeof window.requestAnimationFrame&&(this.St=2)},k7:function(){2!==this.St&&12===this.get("zoom")&&(this.St=1,g.a.jD.start(this.tG));this.gj=!0},j7:function(){1===this.St&&13!==this.get("zoom")&&(this.St=0,g.a.jD.cancel(this.tG));this.gj= !1;this.set("display")},P0:function(a,b){this.Vm.left=0a;this.Vm.bF=0b},nu:function(){this.Vm.left=!1;this.Vm.right=!1;this.Vm.bF=!1;this.Vm.JQ=!1},qha:function(){this.G("moveend",this.b7,this);g.l.Yl&&(g.l.vL||g.l.YH)&&this.G("zoomend",this.GV,this);this.G("movestart",this.c7,this);this.G("zoomstart",this.k7,this);this.G("zoomend",this.j7,this);this.sha()},b7:function(a){this.Of=!1;this.nu();this.u8();!a.I5&&this.B.get("limitBounds",null,!0)?(a=this.gna())&&!a.gb(this.get("center"))? this.ZK(this.get("zoom"),a,!1,!0):this.qa("moveend"):this.qa("moveend");this.set("display")},c7:function(){this.Of=!0;this.nu()},dragEnableChanged:function(){(this.YC=this.get("dragEnable"))?this.JM():this.DO()},qa:function(a,b){if(this.B.ue(a)){var c;b&&(c=b.N6?{type:a,newsize:b.N6,oldsize:b.vua}:{type:a,pixel:b.Bb,target:this.B,lnglat:b.Tf});this.B.q(a,c)}},KM:function(){this.h("click",this.s_);this.h("dblclick",this.w_);g.l.Yf&&this.tX();g.l.ba||this.xca()},sha:function(){this.G("click",this.s_); this.G("dblclick",this.w_);g.l.Yf&&this.h_();g.l.ba||this.tha()},eH:function(a,b){var c=this.get("targetLevel")||this.get("zoom"),c=0Math.abs(b)&&1>Math.abs(c))){var d=parseFloat(a.style.top)||0,e=parseFloat(a.style.left)||0,f="";this.rotation&&(f=g.g.pt[g.g.tg]+":rotate("+this.rotation+"deg);overflow:visible;");a.style.cssText="position:absolute;top:"+ (d+c)+"px;left:"+(e+b)+"px;"+f}},s2:function(a){var b=this.B.view.WW(),c=this.MU.height*this.T/2;return a.yb.tc-c?(a.y=b.tc-c,a):null},z_:function(){this.ww();100Math.abs(a.x)&&2>Math.abs(a.y))this.Je.stop(), this.q("moveend"),this.us(),this.Zt=this.kh=null;else{var b=a.x,e=a.y,f=this.rotation;f&&(f*=Math.PI/180,b=a.x*Math.cos(f)+Math.sin(f)*a.y,e=-Math.sin(f)*a.x+Math.cos(f)*a.y);b=this.get("centerCoords").ab((new g.H(b,e)).Nd(this.T));e=this.s2(b);f=a.y;e&&(f=Math.round(this.Xd(e).ab(this.Xd(b)).y));this.$o(this.Za.Xr,a.x,f);b.x=(b.x+g.a.Fa)%g.a.Fa;this.set("centerCoords",b,!0);this.set("center",this.Od(b),!0);this.qa("mapmove")}};this.Je.Pn(this)}else this.q("moveend"),this.us(!0),this.Zt=this.kh=null; else this.q("moveend"),this.us(),this.Zt=this.kh=null},Vxa:function(){if(!this.V.refresh){var a=this,b=null;this.V.refresh=setInterval(function(){b!==a.V.jg&&(a.set("display",0),b=a.V.jg)},g.l.ba?400:100)}},GV:function(){if(g.l.Yl&&(g.l.vL||g.l.YH)){for(var a=this.Za.o.childNodes,b=0;bthis.get("zooms")[1]&&(b=this.get("zooms")[1]);this.ZK(b,a[1],a[2]||!this.get("animateEnable"))},zoomChanged:function(){this.T=Math.pow(2,20-this.get("zoom"));this.q("closeOverlays");this.set("display")},rotationChanged:function(a){this.rotation=this.get("rotation"); this.B.q("rotate",{rotation:this.rotation||0});!0!==a&&this.set("display",0)},pitchChanged:function(){this.pitch=this.get("pitch");this.B.q("pitch",{pitch:this.pitch||0});this.set("display",0)},centerCoordsChanged:function(){this.q("closeOverlays");this.JBa?this.PK(!0):this.PK(!1)}});g.LW=g.ca.extend({ka:[g.va,g.$e],A:function(a,b){this.type="2D";this.kf(b,!0);a&&this.xma(a)},xma:function(a){this.map=a;this.bf(["size","refresh","maxPitch"],a);this.centerChanged();a.bf(["zoom","center","centerCoords","rotation","pitch"],this)},WW:function(){this.AM||this.Pna();return this.AM},Pna:function(){var a;if(this.get("center")instanceof g.U){a=new g.ne(-180,-85,180,85);var b=this.map.Ab(a.fk());a=this.map.Ab(a.Po());this.AM={Jc:b.x,hc:b.y,Ic:a.x,tc:a.y}}else a=this.map.get("limitBounds", null,!0),this.AM={Jc:a[0],hc:a[1],Ic:a[2],tc:a[3]}},sD:function(){var a=this.map,b=this.get("zoom");return{zoom:b,rh:this.get("center"),Ha:this.lm(),lb:this.get("centerCoords"),rotation:parseInt(this.get("rotation")),Uf:a.get("crs"),T:Math.pow(2,20-b),me:Math.round(b),Kg:Math.pow(2,20-Math.round(this.get("zoom")))}},centerChanged:function(){this.set("centerCoords",this.map.Ab(this.get("center")).toFixed(3),!0)},centerCoordsChanged:function(){var a=this.map;a.D=!0;var b=this.WW(),c=this.get("centerCoords"), d=a.getSize();a.D=!1;var e=this.get("zoom",null,!0),a=this.get("center",null,!0),d=d.height*Math.pow(2,20-e)/2;a instanceof g.U?c.x=(c.x+268435456)%268435456:0>c.x?c.x=0:c.x>b.Ic&&(c.x=b.Ic);c.yb.tc-d&&(c.y=b.tc-d);this.set("center",this.map.Od(c),!0)}});g.OF=g.LW.extend({lm:function(){var a=this.get("size"),b=this.get("centerCoords"),c=parseInt(this.get("rotation"))%360,d=this.get("zoom",null,!0),e=Math.pow(2,20-d),c=Math.PI*c/180,a=new g.H((Math.abs(a.width*Math.cos(c))+Math.abs(a.height*Math.sin(c)))/2,(Math.abs(a.width*Math.sin(c))+Math.abs(a.height*Math.cos(c)))/2),e=new g.$f(b.ab(a.Nd(e)),b.add(a.Nd(e))),c=this.map.get("targetLevel");if(c>d-1){var f=Math.pow(2,20-c);e.J$=new g.$f(b.ab(a.Nd(f)),b.add(a.Nd(f)))}e.B9=c||d;e.Bc=a;return e},gqa:function(a){var b= this.get("size"),c=this.get("centerCoords"),d=parseInt(this.get("rotation"))%360,d=Math.PI*d/180,b=new g.H((Math.abs(b.width*Math.cos(d))+Math.abs(b.height*Math.sin(d)))/2,(Math.abs(b.width*Math.sin(d))+Math.abs(b.height*Math.cos(d)))/2);a=Math.pow(2,20-a);return new g.$f(c.ab(b.Nd(a)),c.add(b.Nd(a)))},Kd:function(){var a=this.lm(),b=a.Vd.x,c=a.kc.y,a=new g.H(a.kc.x,a.Vd.y),b=new g.H(b,c);return new g.ne(this.map.Od(a),this.map.Od(b))},zoomChanged:function(){},Xd:function(a,b){this.get("size");var c= a.cb(),d=this.get("centerCoords"),e=c.ab(d);e.x<-g.a.Fa/2?e.x+=g.a.Fa:e.x>g.a.Fa/2&&(e.x-=g.a.Fa);var c=this.get("size").PE().kd(2),f=this.get("rotation")*Math.PI/180,d=e.x*Math.cos(f)-Math.sin(f)*e.y,e=Math.sin(f)*e.x+Math.cos(f)*e.y;return c.add((new g.H(d,e)).Nd(Math.pow(2,(b||this.get("zoom"))-20)))},Cg:function(a,b){var c=this.get("size").PE().kd(2),d=a.ab(c),e=this.get("rotation")*Math.PI/180,c=d.x*Math.cos(e)+Math.sin(e)*d.y,d=-Math.sin(e)*d.x+Math.cos(e)*d.y,c=this.get("centerCoords").add((new g.H(c, d)).Nd(Math.pow(2,20-(b||this.get("zoom")))));c.x=(c.x+268435456)%268435456;return c}});g.uM=g.LW.extend({A:function(a,b){this.Ne=new g.Dc;this.cc=new g.Dc([1,0,0,0,0,-1,0,0,0,0,-1,0,0,0,0,1]);arguments.callee.ma.apply(this,arguments);this.scale=1;this.type="3D";this.mA=null;this.P7="";this.P=["",0,0,"",0];this.mA={}},refreshChanged:function(){this.jr()},zoomChanged:function(a){this.jr();this.P[4]=a},centerChanged:function(a){arguments.callee.ma.apply(this,arguments);this.jr()},centerCoordsChanged:function(a){arguments.callee.ma.apply(this,arguments);this.jr();this.P[0]=a.toString()}, rotationChanged:function(a){this.jr();this.P[2]=a},pitchChanged:function(a){this.Ce.pitch=Math.min(this.get("maxPitch"),Math.max(a,0));this.jr();this.P[1]=a},jr:function(){if(!this.wza()&&(this.xL(),this.Moa(),this.map)){var a=this,b=function(){a.map.camera=a.N3();a.map.q("camerachange",{map:a.map,camera:a.map.camera})};a.map.La?b():this.map.h("complete",b,this)}},N3:function(){return{height:this.rn,fov:this.Vpa,aspect:this.vC,near:this.tz,far:this.OI,position:this.Uma,rotation:this.Ce.rotation,pitch:this.Ce.pitch}}, Moa:function(){this.Mga=g.a.hg()},Vo:function(){var a=0a},xL:function(){var a=this.get("centerCoords"),b=this.get("pitch"),c=this.get("rotation"),d=(new g.Dc).Y8(-a.x+g.a.dc.x,-a.y+g.a.dc.y,0);this.Uma={x:a.x-g.a.dc.x,y:a.y-g.a.dc.y};a=(new g.Dc).Sz(180-b,1,0,0);this.E7=(new g.Dc).set(a);c=(new g.Dc).Sz(c,0,0,1);this.Uq=(new g.Dc).set(c);this.Tpa=d.Hg();this.cc=(new g.Dc).Y8(0,0,-this.rn).multiply(a.multiply(c.multiply(d))).toFixed(8); this.cc.ef=this.cc.Hg()},wza:function(a){a=a||this.get("zoom");var b=this.get("size"),c=b.width,b=b.height;if(!c||!b)return!0;this.vC=c/=b;b=b/2*Math.pow(2,20-a);a=g.a.vb((56-a)*Math.PI/180,2);var d=g.a.vb(b/Math.tan(a/2),0);2400>d&&(d=2400,a=2*Math.atan(b/d));this.Vpa=a;this.rn=d;this.tz=this.rn/10;this.OI=50*this.rn;this.voa=(this.rn-this.tz)/(this.OI-this.tz);this.Ne.V8(a,c,this.tz,this.OI);this.Ne.ef=this.Ne.Hg();a=this.Ne;var c=new g.bW,b=c.iE,e=this.Ne.elements,d=e[0],f=e[1],h=e[2],k=e[3],l= e[4],m=e[5],n=e[6],p=e[7],q=e[8],r=e[9],s=e[10],u=e[11],v=e[12],w=e[13],t=e[14],e=e[15];wc(b[0],k-d,p-l,u-q,e-v).normalize();wc(b[1],k+d,p+l,u+q,e+v).normalize();wc(b[2],k+f,p+m,u+r,e+w).normalize();wc(b[3],k-f,p-m,u-r,e-w).normalize();wc(b[4],k-h,p-n,u-s,e-t).normalize();wc(b[5],k+h,p+n,u+s,e+t).normalize();a.pR=c},sD:function(){var a=this.map;a.map.it&&(this.jr(),this.P[3]=a.get("size").toString());var b=this.P.toString();if(b!==this.P7){var c=this.get("zoom"),d=this.mA;d.zoom=c;d.vC=this.vC;d.top= this.top;d.Ha=this.lm();d.lb=this.get("centerCoords");d.rotation=a.get("rotateEnable")&&parseInt(this.get("rotation"))||0;d.pitch=this.get("pitch")||0;d.tIa=this.get("yaw");d.Uf=a.get("crs");d.T=Math.pow(2,20-c);d.me=Math.round(c);d.m7=Math.floor(c);d.Kg=Math.pow(2,20-d.me);d.Wua=Math.pow(2,20-d.m7);d.Ne=this.Ne;d.cc=this.cc;this.P7=d.key=b}this.mA.rh=this.get("center");this.mA.hr=g.a.hg();this.mA.Vo=this.Vo();return this.mA},lm:function(){var a=this.get("size"),b=a.width,a=a.height;if(!b||!a)return null; var c,d;d=0;var e=new g.H(0,d);c=this.Cg(e,!0);if(55a[2]||0>c||b&&c>2.5*this.voa)return null;b=e[0]-c*(e[0]-a[0]);c=e[1]-c*(e[1]-a[1]);return isNaN(b)||isNaN(c)?null:(new g.H(b,c)).add(g.a.dc)},E6:function(a){for(var b=this.get("centerCoords"),c=g.a.dc.x,d=g.a.dc.y,e=this.get("size"),f=g.a.Fa,h=b.x+f/2,b=b.x-f/2,k=[],l=new g.Hl([0,0,0,1]),m=l.elements,n=new g.H(0,0),p=g.Dc.multiply(this.Ne,this.cc),q=0,r=a.length;qn.x&&(n.x+=f);m[0]=n.x-c;m[1]=n.y-d;m[2]=n.z;var s=p.Dh(l);s.multiply(1/s.elements[3]);k[q]={x:(s.elements[0]+1)/2*e.width,y:(-s.elements[1]+1)/2*e.height,z:s.elements[2]}}return k},Zza:function(a){var b=this.get("size");a=this.Ne.Dh(this.cc.Dh((new g.Hl).copy(a)));a.multiply(1/a.elements[3]);b=new g.H((a.elements[0]+1)/2*b.width,(-a.elements[1]+1)/2*b.height);b.z=a.elements[2];return b}});g.a.dc=new g.H(215440491,106744817);g.Rb.Gb({n2:function(a,b,c){var d=this;d.jF?(clearTimeout(d.jF),d.jF=null):(d.qa("zoomstart",{zoom:a}),d.q("zoomstart"));d.jF=setTimeout(function(){d.jF=null;d.qa("zoomend",{zoom:a});d.qa("zoomchange",{zoom:a});d.q("zoomend")},150);a=g.a.vb(a,2);d.rA(a,!0,b,c)},rA:function(a,b,c,d){var e=this.get("zoom");if(e!==a){var f=this.get("zooms");"3D"!==this.B.view.type&&(g.l.ba||g.l.Ie)&&(b=!0);a=a||e;a=Math.min(Math.max(a,f[0]),f[1]);var h=a!==e,k=!!c;this.Je&&(this.Je.stop(),this.Je=null);c=c||this.get("centerCoords"); var l=this.Xd(c);c=function(c){b||(c=g.a.vb(c,2));var d=this.Cg(l);this.set("zoom",c);var e=this.Cg(l),d=e&&e?e.ab(d):new g.H(0,0);this.set("centerCoords",this.get("centerCoords").ab(d).toFixed(3));d.x&&d.y&&this.qa("mapmove");c===a&&a<<0===a&&(this.set("targetLevel",null),h&&!this.jF&&(this.qa("zoomchange"),this.qa("zoomend")),this.q("zoomend"),k&&this.q("moveend"),this.Zf=null)};var m;this.Fd&&this.Fd.Zv&&(this.Fd.stop(),this.Fd.hS&&(d=!0),this.Fd.tD&&(m=!0),this.Fd=null,this.set("targetLevel", null));this.Zf&&this.Zf.Zv&&(this.Zf.stop(),d=!0,this.Zf.tD&&(m=!0),this.Zf=null,this.set("targetLevel",null));h&&!d&&this.qa("zoomstart");k&&!m&&this.qa("movestart");this.q("zoomstart");b?c.call(this,a):(this.Zf=new g.Nj(e,a,null,0.04),this.Zf.hS=h,this.Zf.tD=k,this.Zf.transition=function(a,b,c){return c>=g.r.TH?b:(b-a)*(1-Math.pow(1-c/g.r.TH,4))+a},this.Zf.Kq=c,this.Zf.Pn(this,!0),this.set("targetLevel",a))}},ZK:function(a,b,c,d){var e=null;a||(a=this.Fd?this.Fd.fya:this.get("targetLevel")||this.get("zoom")); var e=b?this.Ab(b).toFixed(3):this.Fd?this.Fd.A9:this.get("centerCoords"),f=a!==this.get("zoom"),h=!e.gb(this.get("centerCoords")),k=b=!1;this.Zf&&this.Zf.Zv&&(this.Zf.stop(),b=!0,this.Zf.tD&&(k=!0),this.Zf=null,this.set("targetLevel",null));this.Fd&&this.Fd.Zv&&(this.Fd.stop(),this.Fd.hS&&(b=!0),this.Fd.tD&&(k=!0),this.Fd=null,this.set("targetLevel",null));this.Je&&(this.Je.stop(),this.Je=null);if(f||h){if(!this.B.view.lm().contains(e)||f&&"3D"!==this.B.view.type&&(g.l.ba||g.l.Ie))c=!0;if(c)f&&(b|| (this.q("zoomstart"),this.qa("zoomstart")),this.set("zoom",a),this.qa("zoomchange"),this.qa("zoomend"),this.q("zoomend")),h&&(k||d||(this.qa("movestart"),this.q("movestart")),this.set("centerCoords",e),this.qa("mapmove"),this.q("moveend",{I5:d})),this.set("targetLevel",null);else{this.set("targetLevel",a);var l=a-this.get("zoom"),m=e.ab(this.get("centerCoords")).toFixed(3);this.Fd=new g.Nj(1,0,null,0.001);this.Fd.hS=f;this.Fd.tD=h;this.Fd.A9=e;this.Fd.fya=a;this.Fd.transition=function(a,b,c){return Math.pow(1- Math.min(g.r.TH,c)/g.r.TH,2)};this.Fd.Kq=function(b){0.02>b?(this.Fd&&(this.Fd.stop(),this.Fd=null),f&&(this.set("zoom",a),this.qa("zoomchange"),this.qa("zoomend"),f=!1,this.q("zoomend")),h&&(this.set("centerCoords",e),this.q("mapmove"),this.q("moveend",{I5:d})),this.set("targetLevel",null)):(f&&this.set("zoom",a-l*b),h&&(b=e.ab(m.Nd(b)).toFixed(3),this.set("centerCoords",b),this.qa("mapmove")));this.set("display",1)};this.Fd.Pn(this);f&&!b&&(this.q("zoomstart"),this.qa("zoomstart"));!h||k||d||(this.q("movestart"), this.qa("movestart"))}}}});g.o={}; g.o.Yb=g.ca.extend({ka:[g.va,g.$e],A:function(a,b){this.S=a;this.Xa=[3,18];this.ex=g.a.xb(this);a&&this.bf(["opacity","visible","zIndex","zooms"],a);a.Kf=b.B.view.type;this.e=b;this.X("display",b)},kg:function(){this.Fi&&this.nQ();if(g.Da&&g.Da.lr&&g.Da.lr.length){var a=g.a.indexOf(g.Da.lr,this);-1!==a&&(g.Da.lr=g.a.Ho(g.Da.lr,a))}if(a=this.Mb){if(a.length)for(var b=0;ba.R&&(0=this.Ip},qHa:function(a){this.Ip!==a&&(this.Ip=a|0)&&this.o1(this.Ip)},Ld:function(a){return!!this.e[a]},get:function(a,b){var c=this.sY(a);return c?c.value:b},set:function(a,b){var c=this.sY(a);c?c.value=b:(c=new g.sg.tr(a,b),this.e[a]=c,this.tB(c),this.count+=1,this.count>this.Ip&&this.o1(this.Ip))},yw:function(a){this.remove(a)}, remove:function(a){return this.e.hasOwnProperty(a)&&this.UB(this.e[a])?!0:!1},forEach:function(a,b){for(var c=this.bd.next;c!==this.bd;c=c.next)a.call(b,c.value,c.key,this)},tK:function(a,b){return this.e.hasOwnProperty(a)?this.e[a].value:b},lGa:function(){return this.bd.next.value},mGa:function(){return this.bd.Ia.value},shift:function(){return this.h0(this.bd.next)},x2:function(){this.CB.length=0},o6:function(a){this.CB.push(a)},push:function(a){a=new g.sg.tr("",a);0===this.count?(this.bd.Ia=null, a.Ia=this.bd,this.bd.next=a):(this.jC.next=a,a.Ia=this.jC);this.count+=1;this.jC=a},lza:function(a){a=new g.sg.tr("",a);0===this.count?(this.bd.Ia=null,a.Ia=this.bd,this.jC=this.bd.next=a):(this.bd.next.Ia=a,a.next=this.bd.next,a.Ia=this.bd,this.bd.next=a);this.count+=1},nua:function(){if(this.count){this.count-=1;var a=this.bd.next;a.next?(a.next.Ia=this.bd,this.bd.next=a.next):(this.bd.next=null,this.jC=this.bd.Ia=null);a.next=null;a.Ia=null;return a.value}return null},pop:function(){return this.h0(this.bd.Ia)}, sY:function(a){if(this.e.hasOwnProperty(a))return a=this.e[a],this.VF&&(a.remove(),this.tB(a)),a},tB:function(a){this.VF?(a.next=this.bd.next,a.Ia=this.bd,this.bd.next=a,a.next.Ia=a):(a.Ia=this.bd.Ia,a.next=this.bd,this.bd.Ia=a,a.Ia.next=a)},o1:function(a){if(!(this.count<=a||this.count<2*this.CB.length)){for(var b=this.VF?this.bd.Ia:this.bd.next,c={},d=0,e=this.CB.length;da&&(d=this.VF?b.Ia:b.next,b.key&&!c[b.key]&&this.UB(b)&&this.mK(b.value), b=d,b!==this.bd&&b!==this.jC););}},UB:function(a){if(this.yC&&!1==this.yC(a.value))return!1;a.remove();delete this.e[a.key];this.count-=1;return!0},h0:function(a){this.bd!==a&&(this.yC&&console.log("Warnning!!!"),this.UB(a));return a.value},clear:function(){this.e={};this.bd=new g.sg.tr("",null);this.bd.Ia=this.bd.next=this.bd;this.count=0}});g.sg.tr=function(a,b){this.key=a;this.value=b};g.sg.tr.prototype.Ia=null;g.sg.tr.prototype.next=null; g.sg.tr.prototype.remove=function(){this.Ia.next=this.next;this.next.Ia=this.Ia;this.next=this.Ia=null};function Oc(a,b,c){this.url=a;this.Nc=b;this.kR=c;this.sn=this.QK=!1}function Pc(a,b,c){var d=Qc;return function(){return d.call(this,a,b,c)}}function Qc(a,b,c){a.EDa=+new Date;a.loaded=b;clearTimeout(a.tya);var d=a.Ata;d.Nn.remove(a.url)&&d.Nga();d=a.Gsa?a.ga:a.Ba;a.ga=null;(c||b||a.kR)&&a.Nc(b?d:null,a);a.Q5?(a.Q5.wi(),a.Q5=null):d&&(d.onload=null,d.onerror=null,d.onabort=null,a.Ba=null)} g.xF=g.ca.extend({GBa:"assets/image/blank.gif",A:function(a,b,c){this.timeout=b||15E3;this.Pq=new g.sg(1024);this.Nn=new g.sg(1024);this.H2=a;this.YQ=c},SM:function(a){a&&this.Nn.count>=this.H2&&(a=this.Nn.bd.Ia.value,a.sn&&(this.Nn.remove(a.url),this.cX(a)));for(;this.Pq.count&&!(this.Nn.count>=this.H2);)this.Zda(this.Pq.shift())},Nga:function(){if(!this.LX){this.LX=!0;var a=this;setTimeout(function(){a.LX=!1;a.SM()},0)}},Zda:function(a){var b=document.createElement("img");a.Xpa&&(b.crossOrigin= "anonymous");b.src=a.url;a.Ba=b;a.Ata=this;a.startTime=+new Date;a.QK=!0;b.complete?Qc(a,!0):(this.Nn.set(a.url,a),b.onload=Pc(a,!0),b.onerror=Pc(a,!1,!0),b.onabort=Pc(a,!1),a.tya=setTimeout(Pc(a,!1,!0),this.timeout))},cX:function(a){a.QK&&(Qc(a,!1),a.sn=!0,a.ACa=!0)},zFa:function(a,b,c){return this.nz(a.url,b,c,!0,a.ta.z+"_"+a.ta.x+"_"+a.ta.y)},nz:function(a,b,c,d,e){var f=this.Nn.get(a);if(f&&f.sn)f.sn=!1,f.Nc=b,f.kR=c;else{f=new Oc(a,b,c);f.Gsa=d;f.key=e;if(this.Pq.get(g.a.xb(f)))return;this.Pq.set(g.a.xb(f), f);this.SM(!0)}return f},qta:function(a,b,c){var d=this.Nn.get(a);if(d&&d.sn)d.sn=!1,d.Nc=b,d.kR=c;else{d=new Oc(a,b,c);d.Xpa=!0;if(this.Pq.get(g.a.xb(d)))return;this.Pq.set(g.a.xb(d),d);this.SM(!0)}return d},k2:function(a){a.sn||(a.sn=!0,this.Pq.remove(g.a.xb(a)))},clear:function(a){this.Pq.forEach(function(a){a.sn=!0});this.Pq.clear();if(a)for(;0this.Ns&&(this.Ns=a.vl,this.qz=this.Ns/this.map.B.pj.oq(20))},RH:function(a){this.fm.add(a);if(!this.XC&& !this.S.Cj){if(0===a.name.indexOf("circle")||0===a.name.indexOf("ellipse")){a.h("rad",this.dwa,this);var b=a.get("radius");b.length&&(b=Math.max.apply(null,b));"px"===a.get("unit")?(this.Df=Math.max(b,this.Df),this.mg=Math.max(b,this.mg)):this.Ns?b>this.Ns&&(this.Ns=b,this.qz=this.Ns/this.map.B.pj.oq(20)):(this.Ns=b,this.qz=this.Ns/this.map.B.pj.oq(20))}b=a.get("strokeWeight")||0;if(!this.rz||b>this.rz)this.rz=b}this.Sxa||a.X("feature",this,!0)},ay:function(a){this.pm=!0;for(var b=0,c=a.length;b< c;b+=1)this.RH(a[b])},clear:function(){this.pm=!0;this.ls=[];this.fm.clear();this.set("display",0)},An:function(a){var b,c;b=this.fm.An([a[0]+g.a.Fa,a[1],a[2]+g.a.Fa,a[3]]);c=this.fm.An([a[0]-g.a.Fa,a[1],a[2]-g.a.Fa,a[3]]);a=this.fm.An(a);return g.extend(a,g.extend(b,c))},tEa:function(a){var b,c=this.get("style"),d=a.wl;c instanceof g.pM||(c=this.Bva(c));if(d&&0a.I[2]?k.I[2]:a.I[2])-(k.I[0]a.I[3]?k.I[3]:a.I[3])- (k.I[1]c||Math.abs(k-l)d.length&&(c.Ib.push(f[0]),d.push(c),e=f[1])}else g.I.extend(c.I,e.I),e={I:g.I.cb(c.I)}}while(0a[c].I[0]?c=f:h.I[2]a[e].I[1]?e=f:h.I[3]Math.abs(a[d].I[3]-a[e].I[1])?b>c?(b=a.splice(b,1)[0],c=a.splice(c,1)[0]):(c=a.splice(c,1)[0],b=a.splice(b,1)[0]):d>e?(b=a.splice(d,1)[0],c=a.splice(e,1)[0]):(c=a.splice(e,1)[0],b=a.splice(d,1)[0]);return[{I:g.I.cb(b.I),Ib:[b]},{I:g.I.cb(c.I),Ib:[c]}]},Hva:function(a,b,c){for(var d=g.Ok.Uz(b.I[2]-b.I[0],b.I[3]-b.I[1], b.Ib.length+1),e=g.Ok.Uz(c.I[2]-c.I[0],c.I[3]-c.I[1],c.Ib.length+1),f,h,k,l=a.length-1;0<=l;l-=1){var m=a[l],n=[b.I[0]m.I[2]?b.I[2]:m.I[2],b.I[1]m.I[3]?b.I[3]:m.I[3]],n=Math.abs(g.Ok.Uz(n[1]-n[0],n[3]-n[2],b.Ib.length+2)-d),m=[c.I[0]m.I[2]?c.I[2]:m.I[2],c.I[1]m.I[3]?c.I[3]:m.I[3]],m=Math.abs(g.Ok.Uz(m[1]-m[0],m[3]-m[2],c.Ib.length+2)-e),p=Math.abs(m-n);if(!h||!f||p=c.Ib.length?(h=this.Oz(c,!0,h,c),c.Ib.length=0,d.push(c),e.push(1)):0this.map.td.fr){this.map.td.fr=a;var b=this.map.td.nL;b&&b.L&&b.L.fa&&(b.L.fa.style.zIndex=a+10)}this.L&&this.L.fa&&(this.L.fa.style.zIndex=this.get("isTop")?this.map.td.fr+10:this.get("zIndex"))}, opacityChanged:function(){var a=this.get("contentDom"),b=this.get("shadowDom");a&&g.g.Yq(a,this.get("opacity"));b&&g.g.Yq(b,this.get("opacity"))},X1:function(a){var b;b=document.createElement("div");b.className="amap-marker-content";"string"!==typeof a?b.appendChild(a):(b.innerHTML=a,b.childNodes[0]&&!b.childNodes[0].style&&(b.style["white-space"]="pre"));g.g.Yq(b,this.get("opacity"));return b},YP:function(a,b){var c,d=0,e=0,f,h,k,l,m,n;a?("string"===typeof a?(c=a,n=!0):(c=a.get("image"),e=a.get("size"), f=a.get("imageSize"),d=e.width,e=e.height,f&&(l=f.width,m=f.height)),f="string"!==typeof a?a.get("imageOffset"):{x:0,y:0}):(c=g.r.Ji+"/mark_bs.png",f={x:0,y:0},d=19,e=33,l=19,m=33);h=document.createElement("div");h.className="amap-icon";h.style.position="absolute";h.style.overflow=n?"inherit":"hidden";d&&(h.style.width=d+"px");e&&(h.style.height=e+"px");k=document.createElement("img");l&&m&&(k.style.width=l+"px",k.style.height=m+"px");k.style.top=f.y+"px";k.style.left=f.x+"px";h.appendChild(k);g.g.Yq(g.l.Ie&& n?k:h,this.get("opacity"));d&&e||(h.CM=!1);g.F.h(k,"load",function q(){this.L&&(this.L.Zj=null);this.map&&this.map.td&&(this.map.td.om=!0);g.F.G(k,"load",q,this);if(this.L&&this.L.fa){var a=this.get("labelDom");a&&this.L.fa.appendChild(a)}h.CM=!0;b&&b()},this);k.src=c;return h},d2:function(a){a=this.YP(a);a.style.zIndex=-1;return a},moveChanged:function(){var a=this.get("move");if(!1===a)return this.Zxa();void 0!==a&&("pause"===a.action?this.Eva():"[object Array]"===Object.prototype.toString.call(a.Tf)? a.Tf&&("resume"===a.action&&this.PG?this.moveTo(a.Tf[a.Tf.Kp||0],a.speed,a.wb):(this.PG&&this.q("movestop"),a.Tf.Kp=0,this.set("position",a.Tf[0]),this.gua(a.Tf,a.speed,a.wb,a.qna))):this.moveTo(a.Tf,a.speed,a.wb,!0))},moveTo:function(a,b,c,d){if(!(0>=b)){var e=this.get("position");a.ab(e);var f=Math.round(a.He(e)/1E3/b*36E5);if(0===f)return this.q("moveend");this.Bh&&(this.Bh.stop(),this.Bh=null);this.Bh=new g.Nj(e,a);c=c||function(a){return a};this.Bh.transition=function(a,b,d){if(d>=f)return b; var e=(b.R-a.R)*c(d/f)+a.R;a=(b.Q-a.Q)*c(d/f)+a.Q;return new g.U(e,a)};this.Bh.Kq=function(b){this.set("position",b);d&&this.Kb.q("moving",{target:this.Kb,passedPath:[this.Bh.start,this.get("position")]});this.q("moving");b.gb(a)&&(this.Bh&&(this.Bh.stop(),this.Bh=null),this.Kb.q("moveend",{target:this.Kb}),this.q("moveend"))};this.get("autoRotation")&&!g.l.Ie&&(b="2D"==(this.map.B.view.type||"2D")?this.Sea(e,a):this.Tea(e,a),this.set("angle",b));this.Bh.Pn(this)}},Zxa:function(){this.Bh&&(this.Bh.stop(), this.Bh=null,this.q("movestop"))},Eva:function(){this.Bh&&(this.Bh.stop(),this.Bh=null,this.q("movepause"))},gua:function(a,b,c,d){function e(){var b=a.slice(0,a.Kp||0);b.push(this.get("position"));this.Kb.q("moving",{target:this.Kb,passedPath:b})}function f(){a.Kph?e=Math.PI+e:0>f&&0>=h?e=Math.PI+e:0>f&&0<=h&&(e=2*Math.PI+e)):e=c.y>d.y?Math.PI/2:3*Math.PI/2;return g.a.vb(180*e/Math.PI,1)},Sea:function(a,b){var c=this.map,d=c.Ab(a),c=c.Ab(b),e=0;c.He(d);var f=c.y- d.y,h=c.x-d.x;0!==c.x-d.x?(e=Math.atan((c.y-d.y)/(c.x-d.x)),0<=f&&0>h?e=Math.PI+e:0>f&&0>=h?e=Math.PI+e:0>f&&0<=h&&(e=2*Math.PI+e)):e=c.y>d.y?Math.PI/2:3*Math.PI/2;return g.a.vb(180*e/Math.PI,1)}});g.C.Vn=g.C.Hh.extend({A:function(a,b){arguments.callee.ma.apply(this,arguments);this.X("items",a,!0);this.X("content",a,!0);this.X("resolution",b);this.X("centerCoords",b);this.Sp=a},Ts:function(a){this.$g();this.ut();this.Gm();this.zl("resolution");this.zl("centerCoords");this.zl("render");this.X("resolution",a);this.X("centerCoords",a);this.X("render",a);this.map.h("movestart",this.bn,this);this.map.h("mapmove",this.bn,this);this.map.h("zoomstart",this.bn,this);this.map.h("click",this.bn,this); this.map.h("closeOverlays",this.bn,this);this.map.h("rotate",this.bn,this)},bn:function(){this.Sp.map&&(this.Sp.D=!0,this.Sp.close(),this.Sp.D=!1)},mapChanged:function(){},positionChanged:function(){this.Gm()},renderChanged:function(){this.Gm()},$g:function(){this.K&&(this.K.parentNode&&this.K.parentNode.removeChild(this.K),this.K=null);var a=g.g.create("div",null,"amap-menu");g.F.h(a,"mousedown",function(a){g.F.stopPropagation(a)},this);this.K=a;this.map.Za.C.appendChild(this.K)},ut:function(){var a= this,b=this.K;b.innerHTML="";var c=this.get("content");if("object"===typeof c)b.appendChild(c);else if("string"===typeof c)b.innerHTML=c;else if((c=this.get("items"))&&c.length){var d=g.g.create("ul",b,"amap-menu-outer");c.sort(function(a,b){return isNaN(a.nK)||isNaN(b.nK)?0:a.nK-b.nK});for(b=0;b=c;c+=1)d=g.g.create("div",a),f=[],f.push("position:absolute;"),f.push(b),f.push("top:"+ e[c].top+"px;"),f.push("left:"+e[c].left+"px;"),f.push("width:"+e[c].width+"px;"),f.push("height:"+e[c].height+"px;"),f.push("background-position:"+-e[c].offsetX+"px "+-e[c].offsetY+"px;"),d.style.cssText=f.join("")}},ZHa:function(){},Gm:function(){var a=this.map,b=this.Rc,c=this.get("position"),d=this.get("anchor");if(a&&b&&c){a=a.Ls(c,this.get("altitude"));d&&(this.sh.className=d+" amap-info-contentContainer");var e=g.g.pJ(this.sh);if(g.l.Ci||g.l.sv)e.width=this.sh.childNodes[0].offsetWidth+14; b=e.height;c=this.get("offset");this.get("isCustom");e=e.width;this.Rc.style.left=Math.round(a.x-e/2+(c.x||0))+"px";this.Rc.style.top=Math.round(a.y+(c.y||0))+"px";if(d){var f;"center"==d?(d="center",f="middle"):(f=d.split("-"),d=f[1],f=f[0]);switch(f){case "middle":this.Rc.style.top=Math.round(a.y+b/2+(c.y||0))+"px";break;case "top":this.Rc.style.top=Math.round(a.y+b+(c.y||0))+"px"}switch(d){case "left":this.Rc.style.left=Math.round(a.x+(c.x||0))+"px";break;case "right":this.Rc.style.left=Math.round(a.x- e+(c.x||0))+"px"}}d=this.Una;if(this.mQ&&d.childNodes[0]){for(b=a=0;b(this.get("size").height||d.clientHeight)?this.mQ.style.right="20px":this.mQ.style.right="5px"}}},vda:function(){var a=new g.H(2-this.sh.offsetWidth/2,2-this.sh.offsetHeight),b=this.get("offset")||new g.H(0,0),c=this.get("anchor");if(c){var a=this.sh.offsetWidth,d=this.sh.offsetHeight,e,f,h=2-a/2,k=2-d;c&&(c=c.split("-"),2===c.length?(e=c[1],f=c[0]):1===c.length&&"center"=== c[0]&&(e="center",f="middle"));switch(e){case "left":h=2;break;case "right":h=-a}switch(f){case "middle":k=-d/2;break;case "top":k=-2}a=new g.H(h,k)}this.get("isCustom")||(a=a.add(new g.H(0,-23)));return a.add(b)},altitudeChanged:function(){this.Gm()},kX:function(){if(this.get("position")&&this.get("autoMove")&&this.sh){for(var a=this.map,b=new g.xd(this.sh.offsetWidth,this.sh.offsetHeight),c=a.Ls(this.get("position"),this.get("altitude")).add(this.vda()),d=c.add(b.PE()),e=a.get("size"),f=a.pqa(), h=0,k=0,l=0;ln&&0n&&0>p&&(Math.abs(n)p&&(Math.abs(n)c.x||b.zj()>e.zj()?f=20-c.x:e.zj()c.y||b.wj()>e.wj()?l=5-c.y:e.wj()b.gm?-1:1}):c.sort(function(a,b){return a.get("isTop")?-1:b.get("isTop")?1:a.get("zIndex")>b.get("zIndex")||a.get("zIndex")===b.get("zIndex")&&a.gm>b.gm?-1:1});b(c,f)}else b([],f)}},GD:function(a,b,c){var d=(b[0]-c[0][0])/this.T;b=(b[1]-c[0][1])/this.T;a=a.get("params");c=a.offset;var d=[d-c.x,b-c.y],e;a=a.shape;if("circle"===a.w.type){if(b=a.w.coords[0],c=a.w.coords[1],Math.sqrt((d[0]-b)*(d[0]-b)+(d[1]-c)*(d[1]-c))<=a.w.coords[2])return!0}else{if("poly"=== a.w.type)return e=a.w.coords,e=this.jI(e),g.wd.Sd(d,e);if("rect"===a.w.type)return e=a.w.coords,a=e[0],b=e[1],c=e[2],e=e[3],e=[[a,b],[c,b],[c,e],[a,e]],g.wd.Sd(d,e)}return!1},jI:function(a){for(var b=[],c=0;c/2f&&("opacity"in a.style?(k.push("opacity"), k.push(":"),k.push(f),k.push(";")):8<=document.documentMode?(k.push("-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(opacity="),k.push(Math.ceil(100*f)),k.push(")';")):(k.push("filter:alpha(opacity="),k.push(Math.ceil(100*f)),k.push(");")));k.push("z-index:"+h+";");k.join("");g.g.P8(a,k.join(""))}});g.M.Rb=g.ca.extend({ka:[g.va,g.$e],A:function(a){this.e=a;this.type="2D";this.Jj=g.a.vb(a.get("zoom"),1);this.Nl=a.Nl;this.K=a.Za.o;this.X("display",a);this.X("rotateEnable",a);this.X("style",a);this.X("zoom",a);this.X("hightlight",a)},lT:function(a){this.De=a||g.a.bl("ff"+this.e.De.slice(1))},nq:function(a,b,c,d,e){function f(a,d){a.length&&(k[g.a.indexOf(b,d)]=a);l-=1;0>=l&&(c(k),l=0)}for(var h=b.length,k=[],l=0,m,n=[],p=0;p=p?p:22),p&&g.l.Kc&&(p*=2)));f=!1;this.Cs===d?f=!0:void 0!==e&&this.Cs=== d+"-"+e&&(f=!0);f&&(h=this.gv(h||a),k=this.gv(k||b),l=this.gv(l||c),q=1-1.6*this.zD,n=m=!0);return[h,k,l,m,n,q,p]},Ly:function(a,b,c,d,e){var f=null,h=a,k=b;d=d?this.lq:this.mm;var l=e||this.Jj;if(f=this.kJ(c,void 0,e))"function"===typeof f.visible&&!f.visible(l)||!1===f.visible?h=k="":(h=d(a,f.ke,f.fillColor,!1,l),k=d(b,f.ob,f.strokeColor,!1,l));this.Cs===c&&(b=k||b,h=this.gv(h||a),k=this.gv(b));return[h,k]}};g.M.Rb.Gb(g.P2);g.M.canvas.Rb=g.M.Rb.extend({A:function(a){arguments.callee.ma.apply(this,arguments)},zs:function(a){if(!a.M){var b=a.am(this);b&&!b.eoa&&(a.M=b)}return a.M},pc:function(a){var b=this.e.J3();b&&this.UT!==b&&this.e.B.Ei&&(this.e.N8(b),this.UT=b);this.e.Za.Xr.style.cssText="";var c=a.la,b=a.P,d=this.e.B.get("features"),e=a.size.width,f=a.size.height;this.Jj="vw"===this.e.B.Ce.baseRender?g.a.vb(b.zoom,1):a.P.me;this.T=b.T;if(!this.Na||1E4g.a.Fa/2&&(this.Na=new g.H(this.Na.x-g.a.Fa,this.Na.y));for(var h=0;hb.zoom||m.Xa[1]Math.abs(s)&&(s=0);1E-5>Math.abs(u)&&(u=0);var w=[];w.push("position:absolute");w.push("z-index:"+(p.Lk||c[h].get("zIndex")));c[h].XC?(w.push("top:"+Math.floor(f/2+u)+"px"),w.push("left:"+ Math.floor(e/2+s)+"px")):n.G5?(w.push("height:"+n.height*v+"px"),w.push("width:"+n.width*v+"px"),w.push("top:"+(f/2-u*v)+"px"),w.push("left:"+(e/2-s*v)+"px")):(1!==v&&(w.push(g.g.pt[g.g.tg]+"-origin:"+s+"px "+u+"px"),w.push(g.g.pt[g.g.tg]+":scale3d("+v+","+v+",1)")),w.push("top:"+Math.floor(f/2-u)+"px"),w.push("left:"+Math.floor(e/2-s)+"px"),w.push("display:block"),l.ok&&(w.push("height:"+n.height+"px"),w.push("width:"+n.width+"px")));l.IJ||1===m.opacity||"number"!==typeof m.opacity||w.push(g.g.l4(n, m.opacity));n.parentNode!==this.K&&this.K.appendChild(n);g.g.P8(n,w.join(";"))}}}}a=this.e.Za.Xr;k=this.e.Za.o;c=this.e.Za.C;g.g.tg&&"number"===typeof b.rotation&&0!==b.rotation?(a.style[g.g.tg+"Origin"]=e/2+"px "+f/2+"px",a.style[g.g.tg]="rotate("+b.rotation+"deg)",a.style.overflow="visible",k.style.overflow="visible",c.style.overflow="visible"):(a.style.cssText="",k.style.cssText="-webkit-transform: translateZ(0);",c.style.cssText="");this.e.it=!1},JJ:function(a,b){if("all"===b||void 0===a.Xl)return!0; for(var c=0,d=a.Xl.length;ch.z){var k=this.nJ(f);k&&(f.Pb=k,f.status="loaded",f.Ba=!0,k.kj+=1,f.un=(h.x-k.ta.x)/Math.pow(2,h.z),d.splice(c,1),this.set("display",0))}this.oa.set(f.key,f);!b&&f.Ke?f.Ke=!1:f.status="loading"}}var l=this;this.QI(a,function(a){for(var c=a.length-1;0<=c;c-=1){var d=a[c];if(d.length)if(l.Fi){if(l.e.hA)break;var e=d[0].ta.z;l.ew(d,l.ok?1:0);for(var f=0,h=0;fa.Ic||ca.tc?!1:!0},ew:function(a,b){if(a.length){var c=this.lb.kd(this.Dd<<20-a[0].ta.z),d=Math.floor(c.x),e=Math.floor(c.y);a.sort(function(a,c){var k=a.ta,l=c.ta,m=k.x-d,k=k.y-e,n=l.x-d,l=l.y-e;return(b?-1:1)*(n*n+l*l-(m*m+k*k))})}},clear:function(){this.sm.clear()},hp:function(a,b){this.zg=!1;this.clear();this.aj=b.aj;this.$i=b.$i;this.Dd=b.Dd;var c=a.P;this.Uf=b.Uf||a.P.Uf;this.rh=c.rh;this.size=a.size;this.rotation=c.rotation;this.lb=c.lb;this.Ha=a.P.Ha;this.Lf=a.Lf;this.fe= a.fe;this.hf=a.hf;this.zoom=c.zoom;this.me=c.me;this.fb="AMap.MapBox"==this.f.S.CLASS_NAME?Math.max(2,this.me-g.r.Xn):!1===this.Fi&&!this.f.qS&&this.f.ja?this.me+1:this.me;this.gf&&this.fb>this.gf&&(this.fb=this.gf);this.Zo&&this.fb=this.fb;){s[p+""]|=v;v=p.x>>1;w=p.y>> 1;r=v<<1;t=w<<1;k=0;for(x=2;0k.hx)&&(v=!0))):(q=!1,this.uv(c,x,y)&&(v=!0),k.status&&!k.Ke||this.me!==d||this.Gw&&!this.uv(this.Gw,x,y)||l.push(k)),v&&n.push(k);q?(this.gD||(this.gD=!0),this.f.La||(k={key:this.f.bh? "rl":"rb",index:1,id:this.e.B.id},this.f.S.vk||(g.Be.nf.end(k),g.Be.nf.push({key:"ftc",If:m.length,id:this.e.B.id})))):this.f.La=!1;this.zg=q;m.length&&this.gD&&(f.push(m),m.zg=q);h.push(l);d=!1;if(this.$i){n=n.slice(0);e=[];for(q=n.length-1;0<=q;q-=1)k=n[q],s[k.key]&4||e.push(k);k=b.Xa[1];for(r=this.fb+1;n.length&&r<=k;r+=1){m=[];l=n;n=[];p.z=r;for(q=l.length-1;0<=q;q-=1)if(x=l[q],v=s[x.key],v&7)for(v=x.ta.x<<1,w=x.ta.y<<1,x=1;0<=x;x-=1)for(p.x=v+x,y=1;0<=y;y-=1)p.y=w+y,F=p+"",t=this.oa.tK(F),s[F]& 5&&t&&t.Ba?(t.IB=!0,t.de=this.de,m.push(t),this.bu(t)):n.push(new g.qb(p.cb()));m.length&&(d=!0,f.push(m))}n=e}if(!d&&this.aj)for(x=!f.length||this.ok?b.Xa[0]:Math.max(b.Xa[0],this.fb-2),Math.max(x,this.fb-this.Yga),r=this.fb-1;n.length&&r>=x;r-=1){m=[];y={};l=n;n=[];for(q=l.length-1;0<=q;q-=1)k=l[q],p.z=r,p.x=k.ta.x>>1,p.y=k.ta.y>>1,k=this.Sy(p),y[k.key]||(y[k.key]=1,v=!1,k.Ba&&(!this.Zia||s[k.key]&64)?(p.x=Math.min(c.Ic,Math.max(c.Jc,p.x<u[F]?v=!0:k.IB=!0,k.de=this.de,m.push(k),this.bu(k)):v=!0,v&&n.push(k));m.length&&f.push(m)}this.cV=h;this.Fv=this.Aq=0;this.Hn(h);this.Mg=f;this.f.set("tiles",f);this.Rv(a,b)},bu:function(a){this.oa.o6(a.vFa)},KR:function(a,b){for(var c=[],d=this.e.B.getCoordsBoundByZoom(a),d=this.qy(d,b,a),e=d.Jc;e=d[0]+1){var d=[],e=null,e="zoomOut"===this.Lf?Math.floor(this.zoom):Math.ceil(this.zoom),e=this.KR(e,c);e.length&&d.push(e);d.length&&this.Hn(d,!0)}}});g.M.ae.Vi=g.M.Vi.extend({A:function(a,b){arguments.callee.ma.apply(this,arguments);this.bo=120;this.Fi=!1;this.$g();this.gf=a.gf;this.Zo=a.Zo},yj:function(){return this.Mb},$g:function(){this.Mb=document.createElement("div");this.Mb.className=this.f.S.get("className")||"amap-layer";this.bv=document.createDocumentFragment()},Wv:function(a){var b=Math.pow(2,a.P.zoom-this.Ff),c=a.P.lb.ab(this.Js).kd(this.zm);this.transform={translate:this.transform.translate.add(c),scale:b,rotate:0};this.lb=a.P.lb}, TP:function(a,b){this.Na=this.J.Na;this.Ff=this.me;this.zm=this.Kg;this.xe=!1;this.currentTime=+new Date;this.zV=b.zV;var c=this.sk;this.Pk=this.bo&&b.bI;var d=this.Mg,e=256*c.qE,c=256*c.DK;this.fe=this.zoom<<0!==this.zoom;var f=this.lb.ab(this.Na);f.x<-g.a.Fa/2?f.x+=g.a.Fa:f.x>g.a.Fa/2&&(f.x-=g.a.Fa);this.fQ=f.kd(this.Kg);return[d,e,c,b]},Mz:function(a,b){var c=this.TP(a,b);this.at.apply(this,c);this.Pe(a);this.zg&&!this.f.La&&(c=this.f,c.S.vk||g.Be.nf.end({key:"rb",index:2,id:this.e.B.id}),c.La= !0,c.Jd?c.qa("renderComplete"):(c.Jd=!0,c.qa("complete")))},pc:function(a,b){this.sp=a.sp;this.hf=a.hf;this.hp(a,b);this.Js&&g.l.Yl&&(a.fe||a.hf)?this.Wv(a,b):this.Mz(a,b);this.Js=this.lb;this.xe&&this.set("display",0)},Vv:function(){for(var a=this.Mb.childNodes,b=a.length-1;0<=b;b-=1)a[b]&&a[b].gd!==this.gd&&this.Mb.removeChild(a[b])},pE:function(a,b){return a.hc===b.hc&&a.Jc===b.Jc&&a.tc===b.tc&&a.Ic===b.Ic},at:function(a){var b=this.gd;this.gd+=1;var c=!1,d,e,f;e=!1;var h=[],k,l;for(d=a.length- 1;0<=d;d-=1)if(f=a[d],f.length){e=f[0].ta.z;var m,n,p=this.cL(this.me,e),q=!1;this.mk&&f.zg&&f[0].ta.z==this.fb&&(k=[],l=[],q=!0);for(var r=f.length-1;0<=r;r-=1){n=f[r];q&&n.ga&&(k.push.apply(k,n.ga),l.push(n.ta+""));this.lU(n);if(this.Na===n.Na&&n.Ff===this.Ff){var s=n.Fe;if(s&&s.parentNode===this.Mb&&1===n.hx){h.push(n);s.gd=this.gd;n.gd=this.gd;continue}}n.Na=this.Na;n.Ff=this.Ff;m=n.ta;var c=!0,u=(new g.H((m.x<<20-e)*this.Dd,(m.y<<20-e)*this.Dd)).ab(this.Na),u=u.kd(this.Kg);u.x=g.a.vb(u.x,1); u.y=g.a.vb(u.y,1);var v=1;if(!n.hY||this.mX&&n.gd!==b)n.hY=this.currentTime;this.Pk&&!n.IB?(s=Math.max(0,Math.abs(m.z-this.zoom)-1),v=Math.min(1,(this.currentTime-n.hY)/(1/Math.pow(1.32,s)*this.bo)),1!==v&&(this.xe=!0)):n.IB=!1;n.gd=this.gd;n.hx=v;n.Ba?(s=n.Fe,!s&&n.Pb&&n.Pb.Fe&&(s=n.Pb.Fe),0!==v&&s&&(this.c4(s,u.x,u.y,p,p,v,m.z),s.parentNode!==this.Mb&&(g.l.Ci&&"overlayer"===this.f.get("type")&&(s.style.display="none"),this.bv.appendChild(s)),s.gd=this.gd,n.me=this.me,h.push(n))):n.de=null}e=!0}this.mk&& k&&(r=l.sort().join(";"),k.KS=r,r!==this.se.KS&&(this.se=k));1f&&!p&&(m=q,n=-f,p=!0);for(p=0;n+p<=k;)n=d?e:Math.round(e/(d[0]+d[1])),h=(d[0]+d[1])/e*2*Math.PI;d=d[0]/e*2*Math.PI;for(e=0;eg.a.Fa/2?b-=g.a.Fa:b<-g.a.Fa/2&&(b+=g.a.Fa);return[b/this.T,(a[1]-this.Na.y)/this.T]}});var Mc=g.r,Sc=g.l,fc=g.ca.Ru,Tc=g.Jva,fa=document,Uc=!0,Vc=[];Sc.Yf&&Vc.push("touch");Sc.ba||Vc.push("mouse");Sc.gL&&(Vc.push("vectorlayer","overlay"),Sc.qp?Vc.push("wgl"):Vc.push("cgl"));if(Tc){for(var Wc=[],Xc=Tc.split(","),Ic=0;Ic\x3c/script>'),setTimeout(function(){fa.getElementById("amap_plus_js")||jd(a)},1))} function jd(a){var b=fa.createElement("script");b.charset="utf-8";b.src=a;b.id="amap_plus_js";(a=fa.head||fa.getElementsByTagName("head")[0]||fa.body)&&a.appendChild(b)} function ed(){var a=ad.join("\n"),b=fa.createElement("style");b.type="text/css";-1===Mc.Fb.indexOf("webapi.amap.com")&&(a=a.replace(/webapi.amap.com/gi,Mc.Fb.split("://")[1]));"https"===Mc.vc&&(a=a.replace(/http:/gi,"https:"));if(b.styleSheet){var c=function(){try{b.styleSheet.cssText=a}catch(c){}};b.styleSheet.disabled?setTimeout(c,10):c()}else b.appendChild(fa.createTextNode(a));c=fa.head||fa.getElementsByTagName("head")[0];2>c.childNodes.length?c.appendChild(b):c.insertBefore(b,c.childNodes[1])} ; (typeof _cssload_=="function")&&_cssload_("logo",".amap-logo{display:block!important;pointer-events:none;}",true)})(["c4f1baed25d062607f5e99ccd26fc3d0",[107.329323,22.204184,109.621646,24.032943,108.320004,22.82402],"https://webapi.amap.com",1,"1.4.15",null,"450100","",true,false,false,true,"1597772827-20200522-1",false,"D","3_20_09_21_00"])