window.TILE_VERSION={"ditu":{"normal":{"version":"088","updateDate":"20200305"},"satellite":{"version":"009","updateDate":"20200305"},"normalTraffic":{"version":"081","updateDate":"20200305"},"satelliteTraffic":{"version":"083","updateDate":"20200305"},"mapJS":{"version":"104","updateDate":"20200305"},"satelliteStreet":{"version":"083","updateDate":"20200305"},"earthVector":{"version":"001","updateDate":"20200305"}},"webapp":{"high_normal":{"version":"001","updateDate":"20200305"},"lower_normal":{"version":"002","updateDate":"20200305"}},"api_for_mobile":{"vector":{"version":"002","updateDate":"20200305"},"vectorIcon":{"version":"002","updateDate":"20200305"}}};window.BMAP_AUTHENTIC_KEY="8d6c8b8f3749aed6b1aff3aad6f40e37";(function(){function aa(a){throw a;}var l=void 0,p=!0,q=null,t=!1;function u(){return function(){}}function ba(a){return function(b){this[a]=b}}function x(a){return function(){return this[a]}}function da(a){return function(){return a}}var fa,ga=[];function ha(a){return function(){return ga[a].apply(this,arguments)}}function ia(a,b){return ga[a]=b}var ja,z=ja=z||{version:"1.3.4"};z.ea="$BAIDU$";window[z.ea]=window[z.ea]||{};z.object=z.object||{}; z.extend=z.object.extend=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};z.U=z.U||{};z.U.da=function(a){return"string"==typeof a||a instanceof String?document.getElementById(a):a&&a.nodeName&&(1==a.nodeType||9==a.nodeType)?a:q};z.da=z.Ec=z.U.da;z.U.aa=function(a){a=z.U.da(a);if(a===q)return a;a.style.display="none";return a};z.aa=z.U.aa;z.lang=z.lang||{};z.lang.sg=function(a){return"[object String]"==Object.prototype.toString.call(a)};z.sg=z.lang.sg; z.lang.pm=function(a){if("[object Object]"===Object.prototype.toString.call(a)){for(var b in a)return t;return p}return t};z.pm=z.lang.pm;z.U.Ej=function(a){return z.lang.sg(a)?document.getElementById(a):a};z.Ej=z.U.Ej;z.U.getElementsByClassName=function(a,b){var c;if(a.getElementsByClassName)c=a.getElementsByClassName(b);else{var e=a;e==q&&(e=document);c=[];var e=e.getElementsByTagName("*"),f=e.length,g=RegExp("(^|\\s)"+b+"(\\s|$)"),i,k;for(k=i=0;i<f;i++)g.test(e[i].className)&&(c[k]=e[i],k++)}return c}; z.getElementsByClassName=z.U.getElementsByClassName;z.U.contains=function(a,b){var c=z.U.Ej,a=c(a),b=c(b);return a.contains?a!=b&&a.contains(b):!!(a.compareDocumentPosition(b)&16)};z.fa=z.fa||{};/msie (\d+\.\d)/i.test(navigator.userAgent)&&(z.fa.na=z.na=document.documentMode||+RegExp.$1);var ka={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"}; 8>z.fa.na?(ka["for"]="htmlFor",ka["class"]="className"):(ka.htmlFor="for",ka.className="class");z.U.WF=ka;z.U.zE=function(a,b,c){a=z.U.da(a);if(a===q)return a;if("style"==b)a.style.cssText=c;else{b=z.U.WF[b]||b;a.setAttribute(b,c)}return a};z.zE=z.U.zE;z.U.AE=function(a,b){a=z.U.da(a);if(a===q)return a;for(var c in b)z.U.zE(a,c,b[c]);return a};z.AE=z.U.AE;z.Kk=z.Kk||{};(function(){var a=RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)","g");z.Kk.trim=function(b){return(""+b).replace(a,"")}})(); z.trim=z.Kk.trim;z.Kk.Bo=function(a,b){var a=""+a,c=Array.prototype.slice.call(arguments,1),e=Object.prototype.toString;if(c.length){c=c.length==1?b!==q&&/\[object Array\]|\[object Object\]/.test(e.call(b))?b:c:c;return a.replace(/#\{(.+?)\}/g,function(a,b){var i=c[b];"[object Function]"==e.call(i)&&(i=i(b));return"undefined"==typeof i?"":i})}return a};z.Bo=z.Kk.Bo; z.U.tc=function(a,b){a=z.U.da(a);if(a===q)return a;for(var c=a.className.split(/\s+/),e=b.split(/\s+/),f,g=e.length,i,k=0;k<g;++k){i=0;for(f=c.length;i<f;++i)if(c[i]==e[k]){c.splice(i,1);break}}a.className=c.join(" ");return a};z.tc=z.U.tc; z.U.gx=function(a,b,c){a=z.U.da(a);if(a===q)return a;var e;if(a.insertAdjacentHTML)a.insertAdjacentHTML(b,c);else{e=a.ownerDocument.createRange();b=b.toUpperCase();if(b=="AFTERBEGIN"||b=="BEFOREEND"){e.selectNodeContents(a);e.collapse(b=="AFTERBEGIN")}else{b=b=="BEFOREBEGIN";e[b?"setStartBefore":"setEndAfter"](a);e.collapse(b)}e.insertNode(e.createContextualFragment(c))}return a};z.gx=z.U.gx;z.U.show=function(a){a=z.U.da(a);if(a===q)return a;a.style.display="";return a};z.show=z.U.show; z.U.VC=function(a){a=z.U.da(a);return a===q?a:a.nodeType==9?a:a.ownerDocument||a.document};z.U.eb=function(a,b){a=z.U.da(a);if(a===q)return a;for(var c=b.split(/\s+/),e=a.className,f=" "+e+" ",g=0,i=c.length;g<i;g++)f.indexOf(" "+c[g]+" ")<0&&(e=e+(" "+c[g]));a.className=e;return a};z.eb=z.U.eb;z.U.XA=z.U.XA||{};z.U.Dl=z.U.Dl||[];z.U.Dl.filter=function(a,b,c){for(var e=0,f=z.U.Dl,g;g=f[e];e++)if(g=g[c])b=g(a,b);return b}; z.Kk.MN=function(a){return a.indexOf("-")<0&&a.indexOf("_")<0?a:a.replace(/[-_][^-_]/g,function(a){return a.charAt(1).toUpperCase()})};z.U.N_=function(a){z.U.zs(a,"expand")?z.U.tc(a,"expand"):z.U.eb(a,"expand")}; z.U.zs=function(a){if(arguments.length<=0||typeof a==="function")return this;if(this.size()<=0)return t;var a=a.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g," "),b=a.split(" "),c;z.forEach(this,function(a){for(var a=a.className,f=0;f<b.length;f++)if(!~(" "+a+" ").indexOf(" "+b[f]+" ")){c=t;return}c!==t&&(c=p)});return c}; z.U.rg=function(a,b){var c=z.U,a=c.da(a);if(a===q)return a;var b=z.Kk.MN(b),e=a.style[b];if(!e)var f=c.XA[b],e=a.currentStyle||(z.fa.na?a.style:getComputedStyle(a,q)),e=f&&f.get?f.get(a,e):e[f||b];if(f=c.Dl)e=f.filter(b,e,"get");return e};z.rg=z.U.rg;/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(z.fa.opera=+RegExp.$1);z.fa.BL=/webkit/i.test(navigator.userAgent);z.fa.eY=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent);z.fa.KD="CSS1Compat"==document.compatMode; z.U.ka=function(a){a=z.U.da(a);if(a===q)return a;var b=z.U.VC(a),c=z.fa,e=z.U.rg;c.eY>0&&b.getBoxObjectFor&&e(a,"position");var f={left:0,top:0},g;if(a==(c.na&&!c.KD?b.body:b.documentElement))return f;if(a.getBoundingClientRect){a=a.getBoundingClientRect();f.left=Math.floor(a.left)+Math.max(b.documentElement.scrollLeft,b.body.scrollLeft);f.top=Math.floor(a.top)+Math.max(b.documentElement.scrollTop,b.body.scrollTop);f.left=f.left-b.documentElement.clientLeft;f.top=f.top-b.documentElement.clientTop; a=b.body;b=parseInt(e(a,"borderLeftWidth"));e=parseInt(e(a,"borderTopWidth"));if(c.na&&!c.KD){f.left=f.left-(isNaN(b)?2:b);f.top=f.top-(isNaN(e)?2:e)}}else{g=a;do{f.left=f.left+g.offsetLeft;f.top=f.top+g.offsetTop;if(c.BL>0&&e(g,"position")=="fixed"){f.left=f.left+b.body.scrollLeft;f.top=f.top+b.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(c.opera>0||c.BL>0&&e(a,"position")=="absolute")f.top=f.top-b.body.offsetTop;for(g=a.offsetParent;g&&g!=b.body;){f.left=f.left-g.scrollLeft;if(!c.opera|| g.tagName!="TR")f.top=f.top-g.scrollTop;g=g.offsetParent}}return f};/firefox\/(\d+\.\d)/i.test(navigator.userAgent)&&(z.fa.Re=+RegExp.$1);/BIDUBrowser/i.test(navigator.userAgent)&&(z.fa.P1=p);var la=navigator.userAgent;/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(la)&&!/chrome/i.test(la)&&(z.fa.Qx=+(RegExp.$1||RegExp.$2));/chrome\/(\d+\.\d)/i.test(navigator.userAgent)&&(z.fa.cw=+RegExp.$1);z.mc=z.mc||{}; z.mc.Ob=function(a,b){var c,e,f=a.length;if("function"==typeof b)for(e=0;e<f;e++){c=a[e];c=b.call(a,c,e);if(c===t)break}return a};z.Ob=z.mc.Ob;z.lang.ea=function(){return"TANGRAM__"+(window[z.ea]._counter++).toString(36)};window[z.ea]._counter=window[z.ea]._counter||1;window[z.ea]._instances=window[z.ea]._instances||{};z.lang.Js=function(a){return"[object Function]"==Object.prototype.toString.call(a)};z.lang.Ga=function(a){this.ea=a||z.lang.ea();window[z.ea]._instances[this.ea]=this}; window[z.ea]._instances=window[z.ea]._instances||{};z.lang.Ga.prototype.Sh=ha(0);z.lang.Ga.prototype.toString=function(){return"[object "+(this.LP||"Object")+"]"};z.lang.cu=function(a,b){this.type=a;this.returnValue=p;this.target=b||q;this.currentTarget=q}; z.lang.Ga.prototype.addEventListener=function(a,b,c){if(z.lang.Js(b)){!b.Vk&&(b.Vk={});!this.wi&&(this.wi={});var e=this.wi,f;if(typeof c=="string"&&c){/[^\w\-]/.test(c)&&aa("nonstandard key:"+c);f=b.Xw=c}a.indexOf("on")!=0&&(a="on"+a);typeof e[a]!="object"&&(e[a]={});typeof b.Vk[a]!="object"&&(b.Vk[a]={});f=f||z.lang.ea();b.Vk[a].Xw=f;e[a][f]=b}}; z.lang.Ga.prototype.removeEventListener=function(a,b){a.indexOf("on")!=0&&(a="on"+a);if(z.lang.Js(b)){if(!b.Vk||!b.Vk[a])return;b=b.Vk[a].Xw}else if(!z.lang.sg(b))return;!this.wi&&(this.wi={});var c=this.wi;c[a]&&c[a][b]&&delete c[a][b]}; z.lang.Ga.prototype.dispatchEvent=function(a,b){z.lang.sg(a)&&(a=new z.lang.cu(a));!this.wi&&(this.wi={});var b=b||{},c;for(c in b)a[c]=b[c];var e=this.wi,f=a.type;a.target=a.target||this;a.currentTarget=this;f.indexOf("on")!=0&&(f="on"+f);z.lang.Js(this[f])&&this[f].apply(this,arguments);if(typeof e[f]=="object")for(c in e[f])e[f][c].apply(this,arguments);return a.returnValue}; z.lang.wa=function(a,b,c){var e,f,g=a.prototype;f=new Function;f.prototype=b.prototype;f=a.prototype=new f;for(e in g)f[e]=g[e];a.prototype.constructor=a;a.A_=b.prototype;if("string"==typeof c)f.LP=c};z.wa=z.lang.wa;z.lang.Nc=function(a){return window[z.ea]._instances[a]||q};z.platform=z.platform||{};z.platform.uL=/macintosh/i.test(navigator.userAgent);z.platform.S3=/MicroMessenger/i.test(navigator.userAgent);z.platform.CL=/windows/i.test(navigator.userAgent);z.platform.oY=/x11/i.test(navigator.userAgent);z.platform.jj=/android/i.test(navigator.userAgent);/android (\d+(\.\d)?)/i.test(navigator.userAgent)&&(z.platform.qB=z.qB=RegExp.$1);z.platform.gY=/ipad/i.test(navigator.userAgent);z.platform.FD=/iphone/i.test(navigator.userAgent); function ma(a,b){a.domEvent=b=window.event||b;a.clientX=b.clientX||b.pageX;a.clientY=b.clientY||b.pageY;a.offsetX=b.offsetX||b.layerX;a.offsetY=b.offsetY||b.layerY;a.screenX=b.screenX;a.screenY=b.screenY;a.ctrlKey=b.ctrlKey||b.metaKey;a.shiftKey=b.shiftKey;a.altKey=b.altKey;if(b.touches){a.touches=[];for(var c=0;c<b.touches.length;c++)a.touches.push({clientX:b.touches[c].clientX,clientY:b.touches[c].clientY,screenX:b.touches[c].screenX,screenY:b.touches[c].screenY,pageX:b.touches[c].pageX,pageY:b.touches[c].pageY, target:b.touches[c].target,identifier:b.touches[c].identifier})}if(b.changedTouches){a.changedTouches=[];for(c=0;c<b.changedTouches.length;c++)a.changedTouches.push({clientX:b.changedTouches[c].clientX,clientY:b.changedTouches[c].clientY,screenX:b.changedTouches[c].screenX,screenY:b.changedTouches[c].screenY,pageX:b.changedTouches[c].pageX,pageY:b.changedTouches[c].pageY,target:b.changedTouches[c].target,identifier:b.changedTouches[c].identifier})}if(b.targetTouches){a.targetTouches=[];for(c=0;c< b.targetTouches.length;c++)a.targetTouches.push({clientX:b.targetTouches[c].clientX,clientY:b.targetTouches[c].clientY,screenX:b.targetTouches[c].screenX,screenY:b.targetTouches[c].screenY,pageX:b.targetTouches[c].pageX,pageY:b.targetTouches[c].pageY,target:b.targetTouches[c].target,identifier:b.targetTouches[c].identifier})}a.rotation=b.rotation;a.scale=b.scale;return a}z.lang.vw=function(a){var b=window[z.ea];b.SR&&delete b.SR[a]};z.event={}; z.V=z.event.V=function(a,b,c){if(!(a=z.da(a)))return a;b=b.replace(/^on/,"");a.addEventListener?a.addEventListener(b,c,t):a.attachEvent&&a.attachEvent("on"+b,c);return a};z.dd=z.event.dd=function(a,b,c){if(!(a=z.da(a)))return a;b=b.replace(/^on/,"");a.removeEventListener?a.removeEventListener(b,c,t):a.detachEvent&&a.detachEvent("on"+b,c);return a}; z.U.zs=function(a,b){if(!a||!a.className||typeof a.className!="string")return t;var c=-1;try{c=a.className==b||a.className.search(RegExp("(\\s|^)"+b+"(\\s|$)"))}catch(e){return t}return c>-1};z.fK=function(){function a(a){document.addEventListener&&(this.element=a,this.iK=this.tk?"touchstart":"mousedown",this.CC=this.tk?"touchmove":"mousemove",this.BC=this.tk?"touchend":"mouseup",this.hh=t,this.It=this.Ht=0,this.element.addEventListener(this.iK,this,t),ja.V(this.element,"mousedown",u()),this.handleEvent(q))}a.prototype={tk:"ontouchstart"in window||"createTouch"in document,start:function(a){na(a);this.hh=t;this.Ht=this.tk?a.touches[0].clientX:a.clientX;this.It=this.tk?a.touches[0].clientY: a.clientY;this.element.addEventListener(this.CC,this,t);this.element.addEventListener(this.BC,this,t)},move:function(a){oa(a);var c=this.tk?a.touches[0].clientY:a.clientY;if(10<Math.abs((this.tk?a.touches[0].clientX:a.clientX)-this.Ht)||10<Math.abs(c-this.It))this.hh=p},end:function(a){oa(a);this.hh||(a=document.createEvent("Event"),a.initEvent("tap",t,p),this.element.dispatchEvent(a));this.element.removeEventListener(this.CC,this,t);this.element.removeEventListener(this.BC,this,t)},handleEvent:function(a){if(a)switch(a.type){case this.iK:this.start(a); break;case this.CC:this.move(a);break;case this.BC:this.end(a)}}};return function(b){return new a(b)}}();var D=window.BMap||{};D.version="3.0";D.G1=0.34>Math.random();0<=D.version.indexOf("#")&&(D.version="3.0");D.Yq=[];D.Xe=function(a){this.Yq.push(a)};D.Oq=[];D.xm=function(a){this.Oq.push(a)};D.fU=D.apiLoad||u(); D.m0=D.verify||function(){D.version&&D.version>=1.5&&pa(D.nd+"?qt=verify&ak="+qa,function(a){if(a&&a.error!==0){if(typeof map!=="undefined"){map.Ta().innerHTML="";map.wi={}}D=q;var b="\u767e\u5ea6\u672a\u6388\u6743\u4f7f\u7528\u5730\u56feAPI\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u60a8\u63d0\u4f9b\u7684\u5bc6\u94a5\u4e0d\u662f\u6709\u6548\u7684\u767e\u5ea6LBS\u5f00\u653e\u5e73\u53f0\u5bc6\u94a5\uff0c\u6216\u6b64\u5bc6\u94a5\u672a\u5bf9\u672c\u5e94\u7528\u7684\u767e\u5ea6\u5730\u56feJavaScriptAPI\u6388\u6743\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002";switch(a.error){case 101:b= "\u5f00\u53d1\u8005\u7981\u7528\u4e86\u8be5ak\u7684jsapi\u670d\u52a1\u6743\u9650\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002";break;case 102:b="\u5f00\u53d1\u8005Referer\u4e0d\u6b63\u786e\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002"}alert(b)}})}; var qa=window.BMAP_AUTHENTIC_KEY;window.BMAP_AUTHENTIC_KEY=q;var sa=window.BMap_loadScriptTime,ta=(new Date).getTime(),ua=q,wa=p,xa=5042,ya=5002,Aa=5003,Ba="load_mapclick",Ca=5038,Da=5041,Fa=5047,Ga=5036,Ha=5039,Ia=5037,Ja=5040,Ka=5011,Ma=7E3;var Na=0; function Oa(a,b){if(a=z.da(a)){var c=this;z.lang.Ga.call(c);b=b||{};c.R={DB:200,Xb:p,Aw:t,rC:p,xo:p,yo:b.enableWheelZoom||t,dK:p,uC:p,as:p,$r:p,yC:p,vo:b.enable3DBuilding||t,Hc:25,z0:240,TT:450,yc:H.yc,Gd:H.Gd,Ks:!!b.Ks,jc:Math.round(b.minZoom)||1,pc:Math.round(b.maxZoom)||19,yb:b.mapType||Pa,S4:t,aK:b.drawer||Na,zw:p,yw:500,ZV:b.enableHighResolution!==t,tC:b.enableMapClick!==t,devicePixelRatio:b.devicePixelRatio||window.devicePixelRatio||1,jF:99,xe:b.mapStyle||q,vY:b.logoControl===t?t:p,mU:[],S1:b.beforeClickIcon|| q,og:t,gk:t,qo:t,dE:p,nC:b.enableBizAuthLogo===t?t:p};c.R.xe&&(this.SX(c.R.xe.controls),this.pL(c.R.xe.geotableId));c.R.xe&&c.R.xe.styleId&&c.p3(c.R.xe.styleId);c.R.GB={dark:{backColor:"#2D2D2D",textColor:"#bfbfbf",iconUrl:"dicons"},normal:{backColor:"#F3F1EC",textColor:"#c61b1b",iconUrl:"icons"},light:{backColor:"#EBF8FC",textColor:"#017fb4",iconUrl:"licons"}};b.enableAutoResize&&(c.R.$r=b.enableAutoResize);b.enableStreetEntrance===t&&(c.R.yC=b.enableStreetEntrance);b.enableDeepZoom===t&&(c.R.dK= b.enableDeepZoom);var e=c.R.mU;if(I())for(var f=0,g=e.length;f<g;f++)if(z.fa[e[f]]){c.R.devicePixelRatio=1;break}e=-1<navigator.userAgent.toLowerCase().indexOf("android");f=-1<navigator.userAgent.toLowerCase().indexOf("mqqbrowser");if(-1<navigator.userAgent.toLowerCase().indexOf("UCBrowser")||e&&f)c.R.jF=99;c.Ya=a;c.QA(a);a.unselectable="on";a.innerHTML="";a.appendChild(c.za());b.size&&this.Be(b.size);e=c.Eb();c.width=e.width;c.height=e.height;c.offsetX=0;c.offsetY=0;c.platform=a.firstChild;c.ye= c.platform.firstChild;c.ye.style.width=c.width+"px";c.ye.style.height=c.height+"px";c.Xd={};c.pe=new J(0,0);c.ac=new J(0,0);c.Va=3;c.Bc=0;c.RB=q;c.QB=q;c.Sb="";c.ew="";c.Bh={};c.Bh.custom={};c.yi={};c.Wa=0;b.useWebGL===t&&Qa(t);c.W=new Ra(a,{kf:"api",XR:p});c.W.aa();c.W.FE(c);b=b||{};e=c.yb=c.R.yb;c.Jc=e.qk();e===Sa&&Ta(ya);e===Va&&Ta(Aa);e=c.R;e.eO=Math.round(b.minZoom);e.dO=Math.round(b.maxZoom);c.vu();c.$={Ic:t,nc:0,Ps:0,IL:0,W3:0,vB:t,oE:-1,re:[]};c.platform.style.cursor=c.R.yc;for(f=0;f<D.Yq.length;f++)D.Yq[f](c); c.$.oE=f;c.ga();K.load("map",function(){c.kb()});c.R.tC&&(setTimeout(function(){Ta(Ba)},1E3),K.load("mapclick",function(){window.MPC_Mgr=window.MPC_Mgr||{};window.MPC_Mgr[c.ea]=new Wa(c)},p));Xa()&&K.load("oppc",function(){c.ku()});I()&&K.load("opmb",function(){c.ku()});a=q;c.dB=[]}}z.lang.wa(Oa,z.lang.Ga,"Map"); z.extend(Oa.prototype,{za:function(){var a=O("div"),b=a.style;b.overflow="visible";b.position="absolute";b.zIndex="0";b.top=b.left="0px";var b=O("div",{"class":"BMap_mask"}),c=b.style;c.position="absolute";c.top=c.left="0px";c.zIndex="9";c.overflow="hidden";c.WebkitUserSelect="none";a.appendChild(b);return a},QA:function(a){var b=a.style;b.overflow="hidden";"absolute"!==Ya(a).position&&(b.position="relative",b.zIndex=0);b.backgroundColor="#F3F1EC";b.color="#000";b.textAlign="left"},ga:function(){var a= this;a.Wn=function(){var b=a.Eb();if(a.width!==b.width||a.height!==b.height){var c=new P(a.width,a.height),e=new Q("onbeforeresize");e.size=c;a.dispatchEvent(e);a.Xj((b.width-a.width)/2,(b.height-a.height)/2);a.ye.style.width=(a.width=b.width)+"px";a.ye.style.height=(a.height=b.height)+"px";c=new Q("onresize");c.size=b;a.dispatchEvent(c)}};a.R.$r&&(a.$.Nl=setInterval(a.Wn,80))},Xj:function(a,b,c,e){var f=this.va().$b(this.ja()),g=this.Jc,i=p;c&&J.tL(c)&&(this.pe=new J(c.lng,c.lat),i=t);if(c=c&&e? g.ci(c,this.Sb):this.ac)if(this.ac=new J(c.lng+a*f,c.lat-b*f),(a=g.gh(this.ac,this.Sb))&&i)this.pe=a},Cg:function(a,b){if(Za(a)&&(this.vu(),this.dispatchEvent(new Q("onzoomstart")),a=this.yn(a).zoom,a!==this.Va)){this.Bc=this.Va;this.Va=a;var c;b?c=b:this.bh()&&(c=this.bh().ka());c&&(c=this.Tb(c,this.Bc),this.Xj(this.width/2-c.x,this.height/2-c.y,this.Ib(c,this.Bc),p));this.dispatchEvent(new Q("onzoomstartcode"))}},Qc:function(a){this.Cg(a)},qF:function(a){this.Cg(this.Va+1,a)},rF:function(a){this.Cg(this.Va- 1,a)},ki:function(a){a instanceof J&&(this.ac=this.Jc.ci(a,this.Sb),this.pe=J.tL(a)?new J(a.lng,a.lat):this.Jc.gh(this.ac,this.Sb))},xg:function(a,b){a=Math.round(a)||0;b=Math.round(b)||0;this.Xj(-a,-b)},vr:function(a){a&&$a(a.Ge)&&(a.Ge(this),this.dispatchEvent(new Q("onaddcontrol",a)))},UM:function(a){a&&$a(a.remove)&&(a.remove(),this.dispatchEvent(new Q("onremovecontrol",a)))},$n:function(a){a&&$a(a.xa)&&(a.xa(this),this.dispatchEvent(new Q("onaddcontextmenu",a)))},dp:function(a){a&&$a(a.remove)&& (this.dispatchEvent(new Q("onremovecontextmenu",a)),a.remove())},Pa:function(a){a&&$a(a.Ge)&&(a.Ge(this),this.dispatchEvent(new Q("onaddoverlay",a)))},Ub:function(a){a&&$a(a.remove)&&(a.remove(),this.dispatchEvent(new Q("onremoveoverlay",a)))},wJ:function(){this.dispatchEvent(new Q("onclearoverlays"))},Ne:function(a){a&&this.dispatchEvent(new Q("onaddtilelayer",a))},Vf:function(a){a&&this.dispatchEvent(new Q("onremovetilelayer",a))},Ag:function(a){if(this.yb!==a){this.R.yY&&this.YZ(a);var b=new Q("onsetmaptype"); b.J4=this.yb;this.yb=this.R.yb=a;this.Jc=this.yb.qk();this.Xj(0,0,this.Db(),p);this.vu();var c=this.yn(this.ja()).zoom;this.Cg(c);this.dispatchEvent(b);b=new Q("onmaptypechange");b.Va=c;b.yb=a;this.dispatchEvent(b);(a===ab||a===Va)&&Ta(Aa)}},YZ:function(a){a===ab||a===Va?(this.Ux(p),this.lN(t),this.R.og=t,this.R.gk=t):(this.Ux(t),this.lN(p),this.R.og=p,this.R.gk=p)},qf:function(a){var b=this;if(a instanceof J)b.ki(a,{noAnimation:p});else if(bb(a))if(b.yb===Sa){var c=H.zB[a];c&&(pt=c.o,b.qf(pt))}else{var e= this.ZG();e.xt(function(c){0===e.gm()&&2===e.Ma.result.type&&(b.qf(c.pk(0).point),Sa.kk(a)&&b.CE(a))});e.search(a,{log:"center"})}},Ed:function(a,b){"[object Undefined]"!==Object.prototype.toString.call(b)&&(b=parseInt(b));D.Tp("cus.fire","time",{z_loadscripttime:ta-sa});var c=this;if(bb(a))if(c.yb===Sa){var e=H.zB[a];e&&(pt=e.o,c.Ed(pt,b))}else{var f=c.ZG();f.xt(function(e){if(0===f.gm()&&(2===f.Ma.result.type||11===f.Ma.result.type)){var e=e.pk(0).point,g=b||db.Ew(f.Ma.content.level,c);c.Ed(e,g); Sa.kk(a)&&c.CE(a)}});f.search(a,{log:"center"})}else if(a instanceof J&&b){b=c.yn(b).zoom;c.Bc=c.Va||b;c.Va=b;e=c.pe;c.pe=new J(a.lng,a.lat);c.ac=c.Jc.ci(c.pe,c.Sb);c.RB=c.RB||c.Va;c.QB=c.QB||c.pe;var g=new Q("onload"),i=new Q("onloadcode");g.point=new J(a.lng,a.lat);g.pixel=c.Tb(c.pe,c.Va);g.zoom=b;c.loaded||(c.loaded=p,c.dispatchEvent(g),ua||(ua=eb()));c.dispatchEvent(i);g=new Q("onmoveend");g.lz="centerAndZoom";e.Yb(c.pe)||c.dispatchEvent(g);c.dispatchEvent(new Q("onmoveend"));c.Bc!==c.Va&&(e= new Q("onzoomend"),e.lz="centerAndZoom",c.dispatchEvent(e));c.R.vo&&c.vo()}},ZG:function(){this.$.UL||(this.$.UL=new fb(1));return this.$.UL},reset:function(){this.Ed(this.QB,this.RB,p)},enableDragging:function(){this.R.Xb=p},disableDragging:function(){this.R.Xb=t},enableInertialDragging:function(){this.R.zw=p},disableInertialDragging:function(){this.R.zw=t},enableScrollWheelZoom:function(){this.R.yo=p},disableScrollWheelZoom:function(){this.R.yo=t},enableContinuousZoom:function(){this.R.xo=p},disableContinuousZoom:function(){this.R.xo= t},enableDoubleClickZoom:function(){this.R.rC=p},disableDoubleClickZoom:function(){this.R.rC=t},enableKeyboard:function(){this.R.Aw=p},disableKeyboard:function(){this.R.Aw=t},enablePinchToZoom:function(){this.R.as=p},disablePinchToZoom:function(){this.R.as=t},enableAutoResize:function(){this.R.$r=p;this.Wn();this.$.Nl||(this.$.Nl=setInterval(this.Wn,80))},disableAutoResize:function(){this.R.$r=t;this.$.Nl&&(clearInterval(this.$.Nl),this.$.Nl=q)},enableBizAuthLogo:function(){this.R.nC=p;this.io&&this.io.show()}, disableBizAuthLogo:function(){this.R.nC=t;this.io&&this.io.aa()},vo:function(){this.R.vo=p;this.hn||(this.hn=new BuildingLayer({z2:p}),this.Ne(this.hn))},zV:function(){this.R.vo=t;this.hn&&(this.Vf(this.hn),this.hn=q,delete this.hn)},Eb:function(){return this.Nr&&this.Nr instanceof P?new P(this.Nr.width,this.Nr.height):new P(this.Ya.clientWidth,this.Ya.clientHeight)},Be:function(a){a&&a instanceof P?(this.Nr=a,this.Ya.style.width=a.width+"px",this.Ya.style.height=a.height+"px"):this.Nr=q},Db:x("pe"), ja:x("Va"),NU:function(){this.Wn()},yn:function(a){var b=this.R.jc,c=this.R.pc,e=t,a=Math.round(a);a<b&&(e=p,a=b);a>c&&(e=p,a=c);return{zoom:a,DC:e}},Ta:x("Ya"),Tb:function(a,b){b=b||this.ja();return this.Jc.Tb(a,b,this.ac,this.Eb(),this.Sb)},Ib:function(a,b){b=b||this.ja();return this.Jc.Ib(a,b,this.ac,this.Eb(),this.Sb)},We:function(a,b){if(a){var c=this.Tb(new J(a.lng,a.lat),b);c.x-=this.offsetX;c.y-=this.offsetY;return c}},BY:function(a,b){b=b||this.ja();return this.Jc.CY(a,b,this.ac,this.Eb(), this.Sb)},AY:function(a,b){if(a){var c=this.BY(new J(a.lng,a.lat),b);c.x-=this.offsetX;c.y-=this.offsetY;return c}},DM:function(a,b){if(a){var c=new R(a.x,a.y);c.x+=this.offsetX;c.y+=this.offsetY;return this.Ib(c,b)}},pointToPixelFor3D:function(a,b){var c=map.Sb;this.yb===Sa&&c&&gb.CJ(a,this,b)},A4:function(a,b){var c=map.Sb;this.yb===Sa&&c&&gb.BJ(a,this,b)},B4:function(a,b){var c=this,e=map.Sb;c.yb===Sa&&e&&gb.CJ(a,c,function(a){a.x-=c.offsetX;a.y-=c.offsetY;b&&b(a)})},y4:function(a,b){var c=map.Sb; this.yb===Sa&&c&&(a.x+=this.offsetX,a.y+=this.offsetY,gb.BJ(a,this,b))},te:function(a){if(!this.jx())return new hb;var b=a||{},a=b.margins||[0,0,0,0],c=b.zoom||q,b=this.Ib({x:a[3],y:this.height-a[2]},c),a=this.Ib({x:this.width-a[1],y:a[0]},c);return new hb(b,a)},jx:function(){return!!this.loaded},$Q:function(a,b){for(var c=this.va(),e=b.margins||[10,10,10,10],f=b.zoomFactor||0,g=e[1]+e[3],e=e[0]+e[2],i=c.aj(),k=c=c.Yh();k>=i;k--){var m=this.va().$b(k);if(a.aF().lng/m<this.width-g&&a.aF().lat/m<this.height- e)break}k+=f;k<i&&(k=i);k>c&&(k=c);return k},ys:function(a,b){var c={center:this.Db(),zoom:this.ja()};if(!a||!a instanceof hb&&0===a.length||a instanceof hb&&a.lj())return c;var e=[];a instanceof hb?(e.push(a.Nf()),e.push(a.Te())):e=a.slice(0);for(var b=b||{},f=[],g=0,i=e.length;g<i;g++)f.push(this.Jc.ci(e[g],this.Sb));e=new hb;for(g=f.length-1;0<=g;g--)e.extend(f[g]);if(e.lj())return c;c=e.Db();f=this.$Q(e,b);b.margins&&(e=b.margins,g=(e[1]-e[3])/2,e=(e[0]-e[2])/2,i=this.va().$b(f),b.offset&&(g= b.offset.width,e=b.offset.height),c.lng+=i*g,c.lat+=i*e);c=this.Jc.gh(c,this.Sb);return{center:c,zoom:f}},oh:function(a,b){var c;c=a&&a.center?a:this.ys(a,b);var b=b||{},e=b.delay||200;if(c.zoom===this.Va&&b.enableAnimation!==t){var f=this;setTimeout(function(){f.ki(c.center,{duration:210})},e)}else this.Ed(c.center,c.zoom)},Of:x("Xd"),bh:function(){return this.$.sb&&this.$.sb.Za()?this.$.sb:q},getDistance:function(a,b){if(a&&b){if(a.Yb(b))return 0;var c=0,c=S.mk(a,b);if(c===q||c===l)c=0;return c}}, Qw:function(){var a=[],b=this.Ba,c=this.De;if(b)for(var e in b)b[e]instanceof ib&&a.push(b[e]);if(c){e=0;for(b=c.length;e<b;e++)a.push(c[e])}return a},va:x("yb"),sX:x("Cd"),ku:function(){for(var a=this.$.oE;a<D.Yq.length;a++)D.Yq[a](this);this.$.oE=a},CE:function(a){this.Sb=Sa.kk(a);this.ew=Sa.xK(this.Sb);this.yb===Sa&&this.Jc instanceof jb&&(this.Jc.Ui=this.Sb)},setDefaultCursor:function(a){this.R.yc=a;this.platform&&(this.platform.style.cursor=this.R.yc)},getDefaultCursor:function(){return this.R.yc}, setDraggingCursor:function(a){this.R.Gd=a},getDraggingCursor:function(){return this.R.Gd},bx:function(){return this.R.ZV&&1.5<=this.R.devicePixelRatio},iB:function(a,b){b?this.Bh[b]||(this.Bh[b]={}):b="custom";a.tag=b;a instanceof kb&&(this.Bh[b][a.ea]=a,a.xa(this));var c=this;K.load("hotspot",function(){c.ku()},p)},uZ:function(a,b){b||(b="custom");this.Bh[b][a.ea]&&delete this.Bh[b][a.ea]},gw:function(a){a||(a="custom");this.Bh[a]={}},vu:function(){var a=this.yb.aj(),b=this.yb.Yh(),c=this.R;c.jc= c.eO||a;c.pc=c.dO||b;c.jc<a&&(c.jc=a);c.pc>b&&(c.pc=b)},setMinZoom:function(a){a=Math.round(a);a>this.R.pc&&(a=this.R.pc);this.R.eO=a;this.FI()},setMaxZoom:function(a){a=Math.round(a);a<this.R.jc&&(a=this.R.jc);this.R.dO=a;this.FI()},FI:function(){this.vu();var a=this.R;this.Va<a.jc?this.Qc(a.jc):this.Va>a.pc&&this.Qc(a.pc);var b=new Q("onzoomspanchange");b.jc=a.jc;b.pc=a.pc;this.dispatchEvent(b)},r3:x("dB"),getKey:function(){return qa},$Z:function(a){function b(a){c.w_=a;var b=D.nd+"custom/v2/mapstyle?ak="+ qa+"&callback=cb&",b=b+"is_all=true&is_new=1&"+("styles="+encodeURIComponent(c.TE(a,e)));pa(b)}var c=this;D.Tp("cus.fire","count","z_setmapstylev2count");this.Ux(t);this.R.yY=p;this.addEventListener("hidecopyright",function(){c.ck.aa();c.R.qo=!!a.customEditor;c.R.qo===t&&c.BE(new P(1,1))});c.ck&&c.ck.aa();this.R.qo=!!a.customEditor;this.R.h5=!!a.sharing;this.R.N4=!!a.preview;this.R.qo===t&&this.BE(new P(1,1));K.load("hotspot",function(){c.ku()},p);window.rh={};window.R5=[];window.Xt=[];window.La= {};var e=this.ja(),f={};z.extend(f,a);window.cb=function(a){if(0===a.status){3===a.data.style.length?(window.bmap_baseFs||(window.bmap_baseFs=a.data.style),window.Np=a.data.style[2]):window.Np=a.data.style;a=window.bmap_baseFs;if(z.pm(window.rh))window.E0=a,c.gF(e);else{c.aO(window.Np,e);c.gF(e);var a=c.GU(window.rh,e),b;for(b in a){var g={};z.extend(g,f);c.bX(b,g)}}c.ZX()}};if(a.styleId){var g="jsapi";a.sharing?g="sharing":a.preview&&(g="preview");this.QW(a.styleId,g,b)}else b(a.styleJson);window.iconSetInfo_high|| pa(D.url.proto+D.url.domain.TILE_ONLINE_URLS[0]+"/sty/icons_na2x.js?udt=20190108&v=001&from=jsapi")},QW:function(a,b,c){var e=this,f=(1E5*Math.random()).toFixed(0);window["_cbk_si_phpui"+f]=function(a){var b=[];a.result&&(0===a.result.error&&a.content&&0===a.content.status)&&(b=e.Ex(a.content.data.json));c&&c(b)};window["_cbk_si_api"+f]=function(a){var b=[];0===a.status&&(b=a.info?e.Ex(a.info.json):e.Ex(a.data.json));c&&c(b)};var g="/apiconsole/custommap/";switch(b){case "jsapi":g=D.nd+"?qt=custom_map&v=3.0"; g+="&style_id="+a+"&type=publish&ak="+qa;g+="&callback=_cbk_si_phpui"+f;break;case "sharing":g=g+"getSharingJson"+("?styleid="+a+"&type=edit")+("&ck=_cbk_si_api"+f);break;case "preview":g=g+"getJson"+("?styleid="+a+"&type=edit")+("&ck=_cbk_si_api"+f)}pa(g)},tV:function(){Array.prototype.map||(Array.prototype.map=function(a,b){var c,e,f;this==q&&aa(new TypeError(" this is null or not defined"));var g=Object(this),i=g.length>>>0;"[object Function]"!=Object.prototype.toString.call(a)&&aa(new TypeError(a+ " is not a function"));b&&(c=b);e=Array(i);for(f=0;f<i;){var k;f in g&&(k=g[f],k=a.call(c,k,f,g),e[f]=k);f++}return e})},Ex:function(a){if(a===q||""===a)return[];this.tV();var b={t:"featureType",e:"elementType",v:"visibility",c:"color",l:"lightness",s:"saturation",w:"weight",z:"level",h:"hue",f:"fontsize",zri:"curZoomRegionId",zr:"curZoomRegion"},c={all:"all",g:"geometry","g.f":"geometry.fill","g.s":"geometry.stroke",l:"labels","l.t.f":"labels.text.fill","l.t.s":"labels.text.stroke","l.t":"labels.text", "l.i":"labels.icon"};return a.split(",").map(function(a){var a=a.split("|").map(function(a){var e=b[a.split(":")[0]],a=c[a.split(":")[1]]?c[a.split(":")[1]]:a.split(":")[1];switch(a){case "poi":a="poilabel";break;case "districtlabel":a="districtlabel"}var f={};f[e]=a;return f}),f=a[0],g=1;a[1].elementType&&(g=2,z.extend(f,a[1]));for(var i={};g<a.length;g++)z.extend(i,a[g]);return z.extend(f,{stylers:i})})},xX:function(){return this.Ye.dg},bX:function(a,b){var c=this,e=(1E5*Math.random()).toFixed(0); window["_cbk"+e]=function(b){b=3===b.data.style.length?b.data.style[2]:b.data.style;c.aO(b,a);c.gF(a);b=new Q("onzoomfeatureload"+a);c.dispatchEvent(b);delete window["_cbk"+e]};var f=D.nd+"custom/v2/mapstyle?ak="+qa+"&callback=_cbk"+e+"&",f=f+"is_all=true&is_new=1&";b.styleJson?f+="styles="+encodeURIComponent(this.TE(b.styleJson,parseInt(a,10))):b.styleId&&(f+="styles="+encodeURIComponent(c.TE(c.w_,parseInt(a,10))));pa(f)},BE:function(a,b){var c=new Q("oncopyrightoffsetchange",{UD:a,hV:b});this.R.GJ= b;this.dispatchEvent(c)},ot:function(a){var b=this;window.MPC_Mgr&&window.MPC_Mgr[b.ea]&&window.MPC_Mgr[b.ea].close();b.R.tC=t;D.Tp("cus.fire","count","z_setmapstylecount");if(a){b=this;a.styleJson&&(a.styleStr=b.x_(a.styleJson));I()&&z.fa.Qx?setTimeout(function(){b.R.xe=a;b.dispatchEvent(new Q("onsetcustomstyles",a))},50):(this.R.xe=a,this.dispatchEvent(new Q("onsetcustomstyles",a)),this.pL(b.R.xe.geotableId));var c={style:a.style};a.features&&0<a.features.length&&(c.features=p);a.styleJson&&0<a.styleJson.length&& (c.styleJson=p);Ta(5050,c);a.style&&(c=b.R.GB[a.style]?b.R.GB[a.style].backColor:b.R.GB.normal.backColor)&&(this.Ta().style.backgroundColor=c)}},SX:function(a){this.controls||(this.controls={navigationControl:new lb,scaleControl:new mb,overviewMapControl:new nb,mapTypeControl:new ob});var b=this,c;for(c in this.controls)b.UM(b.controls[c]);a=a||[];z.mc.Ob(a,function(a){b.vr(b.controls[a])})},pL:function(a){a?this.Lr&&this.Lr.yf===a||(this.Vf(this.Lr),this.Lr=new pb({geotableId:a}),this.Ne(this.Lr)): this.Vf(this.Lr)},Od:function(){var a=this.ja()>=this.R.jF&&this.va()===Pa&&18>=this.ja(),b=t;try{document.createElement("canvas").getContext("2d"),b=p}catch(c){b=t}return a&&b},getCurrentCity:function(){return{name:this.Wg,code:this.yr}},ss:function(){this.W.Dn();return this.W},WX:function(a){Pa.setMaxZoom(a.maxZoom||19);var b=new Q("oninitindoorlayer");b.Ue=a;this.dispatchEvent(b);this.R.og=t},ZX:function(a){if(this.R.og){var b=new Q("onupdatestyles");this.dispatchEvent(b)}else b=new Q("oninitindoorlayer"), b.Ue=a,this.dispatchEvent(b),this.R.og=p,this.R.gk=p},Ux:function(a){this.R.dE=a;this.Ye.Lb||(this.Ye.Lb=this.Ye.nj[0].Lb);this.Ye.Lb.parentElement.style.display=a?"block":"none"},lN:function(a){this.Ye.dg.style.display=a?"block":"none"},setPanorama:function(a){this.W=a;this.W.FE(this)},TE:function(a,b){var c={featureType:"t",elementType:"e",visibility:"v",color:"c",lightness:"l",saturation:"s",weight:"w",level:"z",hue:"h",fontsize:"f"},e={all:"all",geometry:"g","geometry.fill":"g.f","geometry.stroke":"g.s", labels:"l","labels.text.fill":"l.t.f","labels.text.stroke":"l.t.s","labels.text":"l.t","labels.icon":"l.i"},f=[];window.La[b]={};for(var g=0,i;i=a[g];g++)if(!this.hY(i)&&(window.rh=this.BX(i,window.rh),this.iY(i,b))){if(("land"===i.featureType||"all"===i.featureType||"background"===i.featureType)&&"string"===typeof i.elementType&&("geometry"===i.elementType||"geometry.fill"===i.elementType||"all"===i.elementType)&&i.stylers)if(i.stylers.color&&(window.La[b].bmapLandColor=i.stylers.color,window.La[b].HL= p,window.bmapLandColor=i.stylers.color),i.stylers.visibility&&"off"===i.stylers.visibility)window.La[b].bmapLandColor="#00000000",window.La[b].HL=p,window.bmapLandColor="#00000000";if("railway"===i.featureType&&"string"===typeof i.elementType&&i.stylers){if(i.stylers.color&&("geometry"===i.elementType&&(window.bmapRailwayFillColor=i.stylers.color,window.bmapRailwayStrokeColor=i.stylers.color,window.La[b].bmapRailwayFillColor=i.stylers.color,window.La[b].bmapRailwayStrokeColor=i.stylers.color,window.La[b].QM= p,window.La[b].RM=p),"geometry.fill"===i.elementType&&(window.bmapRailwayFillColor=i.stylers.color,window.La[b].bmapRailwayFillColor=i.stylers.color,window.La[b].QM=p),"geometry.stroke"===i.elementType))window.bmapRailwayStrokeColor=i.stylers.color,window.La[b].bmapRailwayStrokeColor=i.stylers.color,window.La[b].RM=p;i.stylers.visibility&&(window.bmapRailwayVisibility=i.stylers.visibility,window.La[b].bmapRailwayVisibility=i.stylers.visibility,window.La[b].rZ=p)}"roadarrow"===i.featureType&&("labels.icon"=== i.elementType&&i.stylers)&&(window.bmapRoadarrowVisibility=i.stylers.visibility,window.La[b].bmapRoadarrowVisibility=i.stylers.visibility,window.La[b].BZ=p);var k={};z.extend(k,i);i=k.stylers;delete k.stylers;z.extend(k,i);i=[];for(var m in c)if(k[m]&&!this.dY(m))if("elementType"===m)i.push(c[m]+":"+e[k[m]]);else{switch(k[m]){case "poilabel":k[m]="poi";break;case "districtlabel":k[m]="label"}i.push(c[m]+":"+k[m])}2<i.length&&f.push(i.join("|"))}!window.La[b].HL&&window.La[b].bmapLandColor&&delete window.La[b].bmapLandColor; !window.La[b].QM&&window.La[b].bmapRailwayFillColor&&delete window.La[b].bmapRailwayFillColor;!window.La[b].RM&&window.La[b].bmapRailwayStrokeColor&&delete window.La[b].bmapRailwayStrokeColor;!window.La[b].rZ&&window.La[b].bmapRailwayVisibility&&delete window.La[b].bmapRailwayVisibility;!window.La[b].BZ&&window.La[b].bmapRoadarrowVisibility&&delete window.La[b].bmapRoadarrowVisibility;return f.join(",")},x_:function(a){for(var b={featureType:"t",elementType:"e",visibility:"v",color:"c",lightness:"l", saturation:"s",weight:"w",zoom:"z",hue:"h"},c={all:"all",geometry:"g","geometry.fill":"g.f","geometry.stroke":"g.s",labels:"l","labels.text.fill":"l.t.f","labels.text.stroke":"l.t.s","lables.text":"l.t","labels.icon":"l.i"},e=[],f=0,g;g=a[f];f++){var i=g.stylers;delete g.stylers;z.extend(g,i);var i=[],k;for(k in b)if(g[k])if("elementType"===k)i.push(b[k]+":"+c[g[k]]);else{switch(g[k]){case "poilabel":g[k]="poi";break;case "districtlabel":g[k]="label"}i.push(b[k]+":"+g[k])}2<i.length&&e.push(i.join("|"))}return e.join(",")}, hY:function(a){var b={};z.extend(b,a.stylers);delete b.curZoomRegionId;delete b.curZoomRegion;delete b.level;return z.pm(b)?p:t},iY:function(a,b){var c=a.stylers.level;return c===l?p:c===b+""?p:t},dY:function(a){return{curZoomRegionId:p,curZoomRegion:p}[a]?p:t},BX:function(a,b){var c=a.stylers.level,e={};z.extend(e,b);c!==l&&(e[parseInt(c,10)]=p);return e},aO:function(a,b){window.Xt[b]=a;if(!window.rh[b])for(var c=this.yb.aj(),e=this.yb.Yh();c<=e;c++)window.rh[c]||(window.Xt[c]=a)},gF:function(a){if(!window.rh[a])for(var b= this.yb.aj(),c=this.yb.Yh();b<=c;b++)window.rh[b]||(window.La[b]||(window.La[b]={}),window.La[b].bmapLandColor=window.La[a].bmapLandColor,window.La[b].bmapRailwayFillColor=window.La[a].bmapRailwayFillColor,window.La[b].bmapRailwayStrokeColor=window.La[a].bmapRailwayStrokeColor)},GU:function(a,b){var c={};z.extend(c,a);if(c[b]){for(var e=this.yb.aj(),f=this.yb.Yh();e<=f;e++)if(!c[e]){c[e]=p;break}delete c[b]}return c},N3:function(a){return a.Is||"0"===a.uid?t:p},RU:function(){delete this.yi.jZ},Z1:function(){this.yi= {}},Zn:function(a,b,c){if(!this.R.qo)return t;a=a||"sp"+this.$.k5++;if(b&&0!==b.length)return c=c||{},this.yi[a]=this.yi[a]||{polygon:[],polyline:[]},this.yi=this.yi||{},this.yi[a][c.type].push({OE:b,Wb:c.Wb,type:c.type,style:c.style}),a},nF:function(a){return qb/Math.pow(2,18-a)}});var qb=4.007545274461451E7; function Ta(a,b){if(a){var b=b||{},c="",e;for(e in b)c=c+"&"+e+"="+encodeURIComponent(b[e]);var f=function(a){a&&(rb=p,setTimeout(function(){sb.src=D.nd+"images/blank.gif?"+a.src},50))},g=function(){var a=tb.shift();a&&f(a)};e=(1E8*Math.random()).toFixed(0);rb?tb.push({src:"product=jsapi&sub_product=jsapi&v="+D.version+"&sub_product_v="+D.version+"&t="+e+"&code="+a+"&da_src="+a+c}):f({src:"product=jsapi&sub_product=jsapi&v="+D.version+"&sub_product_v="+D.version+"&t="+e+"&code="+a+"&da_src="+a+c}); ub||(z.V(sb,"load",function(){rb=t;g()}),z.V(sb,"error",function(){rb=t;g()}),ub=p)}}var rb,ub,tb=[],sb=new Image;Ta(5E3,{device_pixel_ratio:window.devicePixelRatio,platform:navigator.platform});D.jL={TILE_BASE_URLS:["gss0.bdstatic.com/5bwHcj7lABFU8t_jkk_Z1zRvfdw6buu","gss0.bdstatic.com/5bwHcj7lABFV8t_jkk_Z1zRvfdw6buu","gss0.bdstatic.com/5bwHcj7lABFS8t_jkk_Z1zRvfdw6buu","gss0.bdstatic.com/5bwHcj7lABFT8t_jkk_Z1zRvfdw6buu","gss0.bdstatic.com/5bwHcj7lABFY8t_jkk_Z1zRvfdw6buu"],TILE_ONLINE_URLS:["maponline0.bdimg.com","maponline1.bdimg.com","maponline2.bdimg.com","maponline3.bdimg.com"],TIlE_PERSPECT_URLS:["gss0.bdstatic.com/-OR1cTe9KgQFm2e88IuM_a","gss0.bdstatic.com/-ON1cTe9KgQFm2e88IuM_a","gss0.bdstatic.com/-OZ1cTe9KgQFm2e88IuM_a", "gss0.bdstatic.com/-OV1cTe9KgQFm2e88IuM_a"],geolocControl:"gsp0.baidu.com/8LkJsjOpB1gCo2Kml5_Y_D3",TILES_YUN_HOST:["gsp0.baidu.com/-eR1bSahKgkFkRGko9WTAnF6hhy","gsp0.baidu.com/-eN1bSahKgkFkRGko9WTAnF6hhy","gsp0.baidu.com/-eZ1bSahKgkFkRGko9WTAnF6hhy","gsp0.baidu.com/-eV1bSahKgkFkRGko9WTAnF6hhy"],traffic:"gsp0.baidu.com/7_AZsjOpB1gCo2Kml5_Y_DAcsMJiwa",iw_pano:"gss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_",message:"gsp0.baidu.com/7vo0bSba2gU2pMbgoY3K",baidumap:"gsp0.baidu.com/80MWsjip0QIZ8tyhnq",wuxian:"gsp0.baidu.com/6a1OdTeaKgQFm2e88IuM_a", pano:["gss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_","gss0.bdstatic.com/5LUZemfa_QUU8t7mm9GUKT-xh_","gss0.bdstatic.com/5LUZemja_QUU8t7mm9GUKT-xh_"],main_domain_nocdn:{baidu:"gsp0.baidu.com/9_Q4sjOpB1gCo2Kml5_Y_D3",other:"api.map.baidu.com"},main_domain_cdn:{baidu:["gss0.bdstatic.com/9_Q4vHSd2RZ3otebn9fN2DJv","gss0.baidu.com/9_Q4vXSd2RZ3otebn9fN2DJv","gss0.bdstatic.com/9_Q4vnSd2RZ3otebn9fN2DJv"],other:["api.map.baidu.com"],webmap:["gss0.baidu.com/6b1IcTe9R1gBo1vgoIiO_jowehsv"]},map_click:"gsp0.baidu.com/80MWbzKh2wt3n2qy8IqW0jdnxx1xbK", vector_traffic:"gss0.bdstatic.com/8aZ1cTe9KgQIm2_p8IuM_a"}; D.JX={TILE_BASE_URLS:["shangetu0.map.bdimg.com","shangetu1.map.bdimg.com","shangetu2.map.bdimg.com","shangetu3.map.bdimg.com","shangetu4.map.bdimg.com"],TILE_ONLINE_URLS:["maponline0.bdimg.com","maponline1.bdimg.com","maponline2.bdimg.com","maponline3.bdimg.com"],TIlE_PERSPECT_URLS:["d0.map.baidu.com","d1.map.baidu.com","d2.map.baidu.com","d3.map.baidu.com"],geolocControl:"loc.map.baidu.com",TILES_YUN_HOST:["g0.api.map.baidu.com","g1.api.map.baidu.com","g2.api.map.baidu.com","g3.api.map.baidu.com"], traffic:"its.map.baidu.com:8002",iw_pano:"pcsv0.map.bdimg.com",message:"j.map.baidu.com",baidumap:"map.baidu.com",wuxian:"wuxian.baidu.com",pano:["pcsv0.map.bdimg.com","pcsv1.map.bdimg.com","pcsv2.map.bdimg.com"],main_domain_nocdn:{baidu:"api.map.baidu.com"},main_domain_cdn:{baidu:["api0.map.bdimg.com","api1.map.bdimg.com","api2.map.bdimg.com"],webmap:["webmap0.map.bdimg.com"]},map_click:"mapclick.map.baidu.com",vector_traffic:"or.map.bdimg.com"}; D.c0={"0":{proto:"http://",domain:D.JX},1:{proto:"https://",domain:D.jL},2:{proto:"https://",domain:D.jL}};window.BMAP_PROTOCOL&&"https"===window.BMAP_PROTOCOL&&(window.HOST_TYPE=2);D.Rt=window.HOST_TYPE||"0";D.url=D.c0[D.Rt];D.Xo=D.url.proto+D.url.domain.baidumap+"/";D.nd=D.url.proto+("2"==D.Rt?D.url.domain.main_domain_nocdn.other:D.url.domain.main_domain_nocdn.baidu)+"/";D.oa=D.url.proto+("2"==D.Rt?D.url.domain.main_domain_cdn.other[0]:D.url.domain.main_domain_nocdn.baidu)+"/"; D.Si=D.url.proto+D.url.domain.main_domain_cdn.webmap[0]+"/";D.Zh=function(a,b){var c,e,b=b||"";switch(a){case "main_domain_nocdn":c=D.nd+b;break;case "main_domain_cdn":c=D.oa+b;break;default:e=D.url.domain[a],"[object Array]"==Object.prototype.toString.call(e)?(c=[],z.mc.Ob(e,function(a,e){c[e]=D.url.proto+a+"/"+b})):c=D.url.proto+D.url.domain[a]+"/"+b}return c};function vb(a){var b={duration:1E3,Hc:30,so:0,dc:wb.QL,$s:u()};this.Yf=[];if(a)for(var c in a)b[c]=a[c];this.m=b;if(Za(b.so)){var e=this;setTimeout(function(){e.start()},b.so)}else b.so!=xb&&this.start()}var xb="INFINITE";vb.prototype.start=function(){this.mu=eb();this.kz=this.mu+this.m.duration;yb(this)};vb.prototype.add=function(a){this.Yf.push(a)}; function yb(a){var b=eb();b>=a.kz?($a(a.m.za)&&a.m.za(a.m.dc(1)),$a(a.m.finish)&&a.m.finish(),0<a.Yf.length&&(b=a.Yf[0],b.Yf=[].concat(a.Yf.slice(1)),b.start())):(a.Rx=a.m.dc((b-a.mu)/a.m.duration),$a(a.m.za)&&a.m.za(a.Rx),a.VE||(a.rr=setTimeout(function(){yb(a)},1E3/a.m.Hc)))}vb.prototype.stop=function(a){this.VE=p;for(var b=0;b<this.Yf.length;b++)this.Yf[b].stop(),this.Yf[b]=q;this.Yf.length=0;this.rr&&(clearTimeout(this.rr),this.rr=q);this.m.$s(this.Rx);a&&(this.kz=this.mu,yb(this))}; vb.prototype.cancel=ha(1);var wb={QL:function(a){return a},reverse:function(a){return 1-a},lC:function(a){return a*a},jC:function(a){return Math.pow(a,3)},Yr:function(a){return-(a*(a-2))},bK:function(a){return Math.pow(a-1,3)+1},kC:function(a){return 0.5>a?2*a*a:-2*(a-2)*a-1},p2:function(a){return 0.5>a?4*Math.pow(a,3):4*Math.pow(a-1,3)+1},q2:function(a){return(1-Math.cos(Math.PI*a))/2}};wb["ease-in"]=wb.lC;wb["ease-out"]=wb.Yr;var H={uF:34,vF:21,wF:new P(21,32),uO:new P(10,32),tO:new P(24,36),sO:new P(12,36),sF:new P(13,1),sa:D.oa+"images/",H3:"http://api0.map.bdimg.com/images/",tF:D.oa+"images/markers_new.png",qO:24,rO:73,zB:{"\u5317\u4eac":{Hx:"bj",o:new J(116.403874,39.914889)},"\u4e0a\u6d77":{Hx:"sh",o:new J(121.487899,31.249162)},"\u6df1\u5733":{Hx:"sz",o:new J(114.025974,22.546054)},"\u5e7f\u5dde":{Hx:"gz",o:new J(113.30765,23.120049)}},fontFamily:"arial,sans-serif"}; z.fa.Re?(z.extend(H,{OJ:"url("+H.sa+"ruler.cur),crosshair",yc:"-moz-grab",Gd:"-moz-grabbing"}),z.platform.CL&&(H.fontFamily="arial,simsun,sans-serif")):z.fa.cw||z.fa.Qx?z.extend(H,{OJ:"url("+H.sa+"ruler.cur) 2 6,crosshair",yc:"url("+H.sa+"openhand.cur) 8 8,default",Gd:"url("+H.sa+"closedhand.cur) 8 8,move"}):z.extend(H,{OJ:"url("+H.sa+"ruler.cur),crosshair",yc:"url("+H.sa+"openhand.cur),default",Gd:"url("+H.sa+"closedhand.cur),move"});function zb(a,b){var c=a.style;c.left=b[0]+"px";c.top=b[1]+"px"}function Ab(a){0<z.fa.na?a.unselectable="on":a.style.MozUserSelect="none"}function Bb(a){return a&&a.parentNode&&11!==a.parentNode.nodeType}function Cb(a,b){z.U.gx(a,"beforeEnd",b);return a.lastChild}function Db(a){for(var b={left:0,top:0};a&&a.offsetParent;)b.left+=a.offsetLeft,b.top+=a.offsetTop,a=a.offsetParent;return b}function na(a){a=window.event||a;a.stopPropagation?a.stopPropagation():a.cancelBubble=p} function Eb(a){a=window.event||a;a.preventDefault?a.preventDefault():a.returnValue=t;return t}function oa(a){na(a);return Eb(a)}function Fb(){var a=document.documentElement,b=document.body;return a&&(a.scrollTop||a.scrollLeft)?[a.scrollTop,a.scrollLeft]:b?[b.scrollTop,b.scrollLeft]:[0,0]}function Gb(a,b){if(a&&b)return Math.round(Math.sqrt(Math.pow(a.x-b.x,2)+Math.pow(a.y-b.y,2)))}function Hb(a,b){var c=[],b=b||function(a){return a},e;for(e in a)c.push(e+"="+b(a[e]));return c.join("&")} function O(a,b,c){var e=document.createElement(a);c&&(e=document.createElementNS(c,a));return z.U.AE(e,b||{})}function Ya(a){if(a.currentStyle)return a.currentStyle;if(a.ownerDocument&&a.ownerDocument.defaultView)return a.ownerDocument.defaultView.getComputedStyle(a,q)}function $a(a){return"function"===typeof a}function Za(a){return"number"===typeof a}function bb(a){return"string"==typeof a}function Ib(a){return"undefined"!=typeof a}function Jb(a){return"object"==typeof a}var Kb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; function Lb(a){for(var b="",c=0;c<a.length;c++){var e=a.charCodeAt(c)<<1,f=e=e.toString(2);8>e.length&&(f="00000000"+e,f=f.substr(e.length,8));b+=f}a=5-b.length%5;e=[];for(c=0;c<a;c++)e[c]="0";b=e.join("")+b;f=[];for(c=0;c<b.length/5;c++)e=b.substr(5*c,5),f.push(String.fromCharCode(parseInt(e,2)+50));return f.join("")+a.toString()} function Mb(a){var b="",c,e,f="",g,i="",k=0;g=/[^A-Za-z0-9\+\/\=]/g;if(!a||g.exec(a))return a;a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");do c=Kb.indexOf(a.charAt(k++)),e=Kb.indexOf(a.charAt(k++)),g=Kb.indexOf(a.charAt(k++)),i=Kb.indexOf(a.charAt(k++)),c=c<<2|e>>4,e=(e&15)<<4|g>>2,f=(g&3)<<6|i,b+=String.fromCharCode(c),64!=g&&(b+=String.fromCharCode(e)),64!=i&&(b+=String.fromCharCode(f));while(k<a.length);return b}var Q=z.lang.cu;function I(){return!(!z.platform.FD&&!z.platform.gY&&!z.platform.jj)} function Xa(){return!(!z.platform.CL&&!z.platform.uL&&!z.platform.oY)}function eb(){return(new Date).getTime()}function Nb(){var a=document.body.appendChild(O("div"));a.innerHTML='<v:shape id="vml_tester1" adj="1" />';var b=a.firstChild;if(!b.style)return t;b.style.behavior="url(#default#VML)";b=b?"object"===typeof b.adj:p;a.parentNode.removeChild(a);return b}function Ob(){return!!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape","1.1")} function Pb(){return!!O("canvas").getContext}function U(a){return a*Math.PI/180}D.uY=function(){var a=p,b=p,c=p,e=p,f=0,g=0,i=0,k=0;return{WP:function(){f+=1;a&&(a=t,setTimeout(function(){Ta(5054,{pic:f});a=p;f=0},1E4))},U0:function(){g+=1;b&&(b=t,setTimeout(function(){Ta(5055,{move:g});b=p;g=0},1E4))},W0:function(){i+=1;c&&(c=t,setTimeout(function(){Ta(5056,{zoom:i});c=p;i=0},1E4))},V0:function(a){k+=a;e&&(e=t,setTimeout(function(){Ta(5057,{tile:k});e=p;k=0},5E3))}}}();D.Ip={JF:"#83a1ff",Kp:"#808080"}; function Qb(a,b,c){b.XD||(b.XD=[],b.handle={});b.XD.push({filter:c,es:a});b.addEventListener||(b.addEventListener=function(a,c){b.attachEvent("on"+a,c)});b.handle.click||(b.addEventListener("click",function(a){for(var c=a.target||a.srcElement;c!=b;){Rb(b.XD,function(b,i){RegExp(i.filter).test(c.getAttribute("filter"))&&i.es.call(c,a,c.getAttribute("filter"))});c=c.parentNode}},t),b.handle.click=p)}function Rb(a,b){for(var c=0,e=a.length;c<e;c++)b(c,a[c])} void function(a,b,c){void function(a,b,c){function i(a){if(!a.ro){for(var c=p,e=[],g=a.xZ,k=0;g&&k<g.length;k++){var m=g[k],n=ea[m]=ea[m]||{};if(n.ro||n==a)e.push(n.Nc);else{c=t;if(!n.uV&&(m=(va.get("alias")||{})[m]||m+".js",!N[m])){N[m]=p;var o=b.createElement("script"),s=b.getElementsByTagName("script")[0];o.async=p;o.src=m;s.parentNode.insertBefore(o,s)}n.ly=n.ly||{};n.ly[a.name]=a}}if(c){a.ro=p;a.JJ&&(a.Nc=a.JJ.apply(a,e));for(var v in a.ly)i(a.ly[v])}}}function k(a){return(a||new Date)-F}function m(a, b,c){if(a){"string"==typeof a&&(c=b,b=a,a=L);try{a==L?(M[b]=M[b]||[],M[b].unshift(c)):a.addEventListener?a.addEventListener(b,c,t):a.attachEvent&&a.attachEvent("on"+b,c)}catch(e){}}}function n(a,b,c){if(a){"string"==typeof a&&(c=b,b=a,a=L);try{if(a==L){var e=M[b];if(e)for(var f=e.length;f--;)e[f]===c&&e.splice(f,1)}else a.removeEventListener?a.removeEventListener(b,c,t):a.detachEvent&&a.detachEvent("on"+b,c)}catch(g){}}}function o(a){var b=M[a],c=0;if(b){for(var e=[],f=arguments,g=1;g<f.length;g++)e.push(f[g]); for(g=b.length;g--;)b[g].apply(this,e)&&c++;return c}}function s(a,b){if(a&&b){var c=new Image(1,1),e=[],f="img_"+ +new Date,g;for(g in b)b[g]&&e.push(g+"="+encodeURIComponent(b[g]));L[f]=c;c.onload=c.onerror=function(){L[f]=c=c.onload=c.onerror=q;delete L[f]};c.src=a+"?"+e.join("&")}}function v(){var a=arguments,b=a[0];if(this.IJ||/^(on|un|set|get|create)$/.test(b)){for(var b=y.prototype[b],c=[],e=1,f=a.length;e<f;e++)c.push(a[e]);"function"==typeof b&&b.apply(this,c)}else this.fJ.push(a)}function w(a, b){var c={},e;for(e in a)a.hasOwnProperty(e)&&(c[e]=a[e]);for(e in b)b.hasOwnProperty(e)&&(c[e]=b[e]);return c}function y(a){this.name=a;this.cs={protocolParameter:{postUrl:q,protocolParameter:q}};this.fJ=[];this.alog=L}function A(a){a=a||"default";if("*"==a){var a=[],b;for(b in T)a.push(T[b]);return a}(b=T[a])||(b=T[a]=new y(a));return b}var B=c.alog;if(!B||!B.ro){var C=b.all&&a.attachEvent,F=B&&B.OD||+new Date,E=a.Z3||(+new Date).toString(36)+Math.random().toString(36).substr(2,3),G=0,N={},L=function(a){var b= arguments,c,e,f,g;if("define"==a||"require"==a){for(e=1;e<b.length;e++)switch(typeof b[e]){case "string":c=b[e];break;case "object":f=b[e];break;case "function":g=b[e]}"require"==a&&(c&&!f&&(f=[c]),c=q);c=!c?"#"+G++:c;e=ea[c]=ea[c]||{};e.ro||(e.name=c,e.xZ=f,e.JJ=g,"define"==a&&(e.uV=p),i(e))}else"function"==typeof a?a(L):(""+a).replace(/^(?:([\w$_]+)\.)?(\w+)$/,function(a,c,e){b[0]=e;v.apply(L.eF(c),b)})},M={},T={},ea={J1:{name:"alog",ro:p,Nc:L}};y.prototype.start=y.prototype.create=function(a){if(!this.IJ){"object"== typeof a&&this.set(a);this.IJ=new Date;for(this.ds("create",this);a=this.fJ.shift();)v.apply(this,a)}};y.prototype.send=function(a,b){var c=w({ts:k().toString(36),t:a,sid:E},this.cs);if("object"==typeof b)c=w(c,b);else{var e=arguments;switch(a){case "pageview":e[1]&&(c.page=e[1]);e[2]&&(c.title=e[2]);break;case "event":e[1]&&(c.eventCategory=e[1]);e[2]&&(c.eventAction=e[2]);e[3]&&(c.eventLabel=e[3]);e[4]&&(c.eventValue=e[4]);break;case "timing":e[1]&&(c.timingCategory=e[1]);e[2]&&(c.timingVar=e[2]); e[3]&&(c.timingValue=e[3]);e[4]&&(c.timingLabel=e[4]);break;case "exception":e[1]&&(c.exDescription=e[1]);e[2]&&(c.exFatal=e[2]);break;default:return}}this.ds("send",c);var f;if(e=this.cs.protocolParameter){var g={};for(f in c)e[f]!==q&&(g[e[f]||f]=c[f]);f=g}else f=c;s(this.cs.postUrl,f)};y.prototype.set=function(a,b){if("string"==typeof a)"protocolParameter"==a&&(b=w({postUrl:q,protocolParameter:q},b)),this.cs[a]=b;else if("object"==typeof a)for(var c in a)this.set(c,a[c])};y.prototype.get=function(a, b){var c=this.cs[a];"function"==typeof b&&b(c);return c};y.prototype.ds=function(a,b){return L.ds(this.name+"."+a,b)};y.prototype.V=function(a,b){L.V(this.name+"."+a,b)};y.prototype.dd=function(a,b){L.dd(this.name+"."+a,b)};L.name="alog";L.Wb=E;L.ro=p;L.timestamp=k;L.dd=n;L.V=m;L.ds=o;L.eF=A;L("init");var ca=y.prototype;V(ca,{start:ca.start,create:ca.create,send:ca.send,set:ca.set,get:ca.get,on:ca.V,un:ca.dd,fire:ca.ds});var va=A();va.set("protocolParameter",{I1:q});if(B){ca=[].concat(B.zb||[],B.ht|| []);B.zb=B.ht=q;for(var za in L)L.hasOwnProperty(za)&&(B[za]=L[za]);L.zb=L.ht={push:function(a){L.apply(L,a)}};for(B=0;B<ca.length;B++)L.apply(L,ca[B])}c.alog=L;C&&m(b,"mouseup",function(a){a=a.target||a.srcElement;1==a.nodeType&&/^ajavascript:/i.test(a.tagName+a.href)});var Ea=t;a.onerror=function(a,b,e,f){var i=p;!b&&/^script error/i.test(a)&&(Ea?i=t:Ea=p);i&&c.alog("exception.send","exception",{Ws:a,ND:b,Rs:e,Tl:f});return t};c.alog("exception.on","catch",function(a){c.alog("exception.send","exception", {Ws:a.Ws,ND:a.path,Rs:a.Rs,method:a.method,mK:"catch"})})}}(a,b,c);void function(a,b,c){var i="18_3";I()&&(i="18_4");var k="http://static.tieba.baidu.com";"https:"===a.location.protocol&&(k="https://gsp0.baidu.com/5aAHeD3nKhI2p27j8IqW0jdnxx1xbK");var m=Math.random,k=k+"/tb/pms/img/st.gif",n={mh:"0.1"},o={mh:"0.1"},s={mh:"0.1"},v={mh:"0"};if(n&&n.mh&&m()<n.mh){var w=c.alog.eF("monkey"),y,n=a.screen,A=b.referrer;w.set("ver",5);w.set("pid",241);n&&w.set("px",n.width+"*"+n.height);w.set("ref",A);c.alog("monkey.on", "create",function(){y=c.alog.timestamp;w.set("protocolParameter",{reports:q})});c.alog("monkey.on","send",function(a){"pageview"==a.t&&(a.cmd="open");a.now&&(a.ts=y(a.now).toString(36),a.now="")});c.alog("monkey.create",{page:i,pid:"241",p:"18",dv:6,postUrl:k,reports:{refer:1}});c.alog("monkey.send","pageview",{now:+new Date})}if(o&&o.mh&&m()<o.mh){var B=t;a.onerror=function(a,b,e,f){var i=p;!b&&/^script error/i.test(a)&&(B?i=t:B=p);i&&c.alog("exception.send","exception",{Ws:a,ND:b,Rs:e,Tl:f});return t}; c.alog("exception.on","catch",function(a){c.alog("exception.send","exception",{Ws:a.Ws,ND:a.path,Rs:a.Rs,method:a.method,mK:"catch"})});c.alog("exception.create",{postUrl:k,dv:7,page:i,pid:"170",p:"18"})}s&&(s.mh&&m()<s.mh)&&(c.alog("cus.on","time",function(a){var b={},e=t,f;if("[object Object]"===a.toString()){for(var i in a)"page"==i?b.page=a[i]:(f=parseInt(a[i]),0<f&&/^z_/.test(i)&&(e=p,b[i]=f));e&&c.alog("cus.send","time",b)}}),c.alog("cus.on","count",function(a){var b={},e=t;"string"===typeof a&& (a=[a]);if(a instanceof Array)for(var f=0;f<a.length;f++)/^z_/.test(a[f])?(e=p,b[a[f]]=1):/^page:/.test(a[f])&&(b.page=a[f].substring(5));e&&c.alog("cus.send","count",b)}),c.alog("cus.create",{dv:3,postUrl:k,page:i,p:"18"}));if(v&&v.mh&&m()<v.mh){var C=["Moz","O","ms","Webkit"],F=["-webkit-","-moz-","-o-","-ms-"],E=function(){return typeof b.createElement!=="function"?b.createElement(arguments[0]):b.createElement.apply(b,arguments)},G=E("dpFeatureTest").style,N=function(a){return L(a,l,l)},L=function(a, b,c){var e=a.charAt(0).toUpperCase()+a.slice(1),f=(a+" "+C.join(e+" ")+e).split(" ");if(typeof b==="string"||typeof b==="undefined")return M(f,b);f=(a+" "+C.join(e+" ")+e).split(" ");a:{var a=f,g;for(g in a)if(a[g]in b){if(c===t){b=a[g];break a}g=b[a[g]];b=typeof g==="function"?fnBind(g,c||b):g;break a}b=t}return b},M=function(a,b){var c,e,f;e=a.length;for(c=0;c<e;c++){f=a[c];~(""+f).indexOf("-")&&(f=T(f));if(G[f]!==l)return b=="pfx"?f:p}return t},T=function(a){return a.replace(/([a-z])-([a-z])/g, function(a,b,c){return b+c.toUpperCase()}).replace(/^-/,"")},ea=function(a,b,c){if(a.indexOf("@")===0)return atRule(a);a.indexOf("-")!=-1&&(a=T(a));return!b?L(a,"pfx"):L(a,b,c)},ca=function(){var a=E("canvas");return!(!a.getContext||!a.getContext("2d"))},va=function(){var a=E("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},za=function(){try{localStorage.setItem("localStorage","localStorage");localStorage.removeItem("localStorage");return p}catch(a){return t}},Ea=function(){return"content"in b.createElement("template")},ra=function(){return"createShadowRoot"in b.createElement("a")},Ua=function(){return"registerElement"in b},se=function(){return"import"in b.createElement("link")},Pc=function(){return"getItems"in b},Gi=function(){return"EventSource"in window},te=function(a,b){var c=new Image;c.onload=function(){b(a,c.width>0&&c.height>0)};c.onerror=function(){b(a,t)};c.src="data:image/webp;base64,"+{c4:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",b4:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==", alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",Zj:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}[a]},ue=function(a,b){return Vb.Uh["WebP-"+a]=b},Hi=function(){return"openDatabase"in a},Ii=function(){return"performance"in a&&"timing"in a.performance},Ji=function(){return"performance"in a&&"mark"in a.performance},Ki=function(){return!(!Array.prototype|| !Array.prototype.every||!Array.prototype.filter||!Array.prototype.forEach||!Array.prototype.indexOf||!Array.prototype.lastIndexOf||!Array.prototype.map||!Array.prototype.some||!Array.prototype.reduce||!Array.prototype.reduceRight||!Array.isArray)},Li=function(){return"Promise"in a&&"cast"in a.Lp&&"resolve"in a.Lp&&"reject"in a.Lp&&"all"in a.Lp&&"race"in a.Lp&&function(){var b;new a.Lp(function(a){b=a});return typeof b==="function"}()},Mi=function(){var b=!!a.H0,c=a.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest;return!!a.L0&&b&&c},Ni=function(){return"geolocation"in navigator},Oi=function(){var b=E("canvas"),c="probablySupportsContext"in b?"probablySupportsContext":"supportsContext";return c in b?b[c]("webgl")||b[c]("experimental-webgl"):"WebGLRenderingContext"in a},Pi=function(){return!!b.createElementNS&&!!b.createElementNS("http://www.w3.org/2000/svg","svg").e2},Qi=function(){return!!a.S0},Ri=function(){return"WebSocket"in a&&a.P0.D0===2},Si=function(){return!!b.createElement("video").canPlayType}, Ti=function(){return!!b.createElement("audio").canPlayType},Ui=function(){return!!(a.history&&"pushState"in a.history)},Vi=function(){return!(!a.F0||!a.G0)},Wi=function(){return"postMessage"in window},Xi=function(){return!!a.webkitNotifications||"Notification"in a&&"permission"in a.NO&&"requestPermission"in a.NO},Yi=function(){for(var b=["webkit","moz","o","ms"],c=a.requestAnimationFrame,f=0;f<b.length&&!c;++f)c=a[b[f]+"RequestAnimationFrame"];return!!c},Zi=function(){return"JSON"in a&&"parse"in JSON&& "stringify"in JSON},$i=function(){return!(!ea("exitFullscreen",b,t)&&!ea("cancelFullScreen",b,t))},aj=function(){return!!ea("Intl",a)},bj=function(){return N("flexBasis")},cj=function(){return!!N("perspective")},dj=function(){return N("shapeOutside")},ej=function(){var a=E("div");a.style.cssText=F.join("filter:blur(2px); ");return!!a.style.length&&(b.documentMode===l||b.documentMode>9)},fj=function(){return"XMLHttpRequest"in a&&"withCredentials"in new XMLHttpRequest},gj=function(){return E("progress").max!== l},hj=function(){return E("meter").max!==l},ij=function(){return"sendBeacon"in navigator},jj=function(){return N("borderRadius")},kj=function(){return N("boxShadow")},lj=function(){var a=E("div").style;a.cssText=F.join("opacity:.55;");return/^0.55$/.test(a.opacity)},mj=function(){return M(["textShadow"],l)},nj=function(){return N("animationName")},oj=function(){return N("transition")},pj=function(){return navigator.userAgent.indexOf("Android 2.")===-1&&N("transform")},Vb={Uh:{},ra:function(a,b,c){this.Uh[a]= b.apply(this,[].slice.call(arguments,2))},Dd:function(a,b){a.apply(this,[].slice.call(arguments,1))},DZ:function(){this.ra("bdrs",jj);this.ra("bxsd",kj);this.ra("opat",lj);this.ra("txsd",mj);this.ra("anim",nj);this.ra("trsi",oj);this.ra("trfm",pj);this.ra("flex",bj);this.ra("3dtr",cj);this.ra("shpe",dj);this.ra("fltr",ej);this.ra("cavs",ca);this.ra("dgdp",va);this.ra("locs",za);this.ra("wctem",Ea);this.ra("wcsdd",ra);this.ra("wccse",Ua);this.ra("wchti",se);this.Dd(te,"lossy",ue);this.Dd(te,"lossless", ue);this.Dd(te,"alpha",ue);this.Dd(te,"animation",ue);this.ra("wsql",Hi);this.ra("natm",Ii);this.ra("ustm",Ji);this.ra("arra",Ki);this.ra("prms",Li);this.ra("xhr2",Mi);this.ra("wbgl",Oi);this.ra("geol",Ni);this.ra("svg",Pi);this.ra("work",Qi);this.ra("wbsk",Ri);this.ra("vido",Si);this.ra("audo",Ti);this.ra("hsty",Ui);this.ra("file",Vi);this.ra("psmg",Wi);this.ra("wknf",Xi);this.ra("rqaf",Yi);this.ra("json",Zi);this.ra("flsc",$i);this.ra("i18n",aj);this.ra("cors",fj);this.ra("prog",gj);this.ra("metr", hj);this.ra("becn",ij);this.ra("mcrd",Pc);this.ra("esrc",Gi)}},w=c.alog.eF("feature");w.V("commit",function(){Vb.DZ();var a=setInterval(function(){if("WebP-lossy"in Vb.Uh&&"WebP-lossless"in Vb.Uh&&"WebP-alpha"in Vb.Uh&&"WebP-animation"in Vb.Uh){for(var b in Vb.Uh)Vb.Uh[b]=Vb.Uh[b]?"y":"n";w.send("feature",Vb.Uh);clearInterval(a)}},500)});c.alog("feature.create",{n2:4,F4:k,page:i,zb:"18"});c.alog("feature.fire","commit")}}(a,b,c)}(window,document,D);D.Tp=D.alog||u();D.alog("cus.fire","count","z_loadscriptcount"); "https:"===location.protocol&&D.alog("cus.fire","count","z_httpscount");function Sb(a){var b=window.TILE_VERSION,c="20170927";b&&b.ditu&&(b=b.ditu,b[a]&&b[a].updateDate&&(c=b[a].updateDate));return c};function pa(a,b){if(b){var c=(1E5*Math.random()).toFixed(0);D._rd["_cbk"+c]=function(a){b&&b(a);delete D._rd["_cbk"+c]};a+="&callback=BMap._rd._cbk"+c}var e=O("script",{type:"text/javascript"});e.charset="utf-8";e.src=a;e.addEventListener?e.addEventListener("load",function(a){a=a.target;a.parentNode.removeChild(a)},t):e.attachEvent&&e.attachEvent("onreadystatechange",function(){var a=window.event.srcElement;a&&("loaded"==a.readyState||"complete"==a.readyState)&&a.parentNode.removeChild(a)});setTimeout(function(){document.getElementsByTagName("head")[0].appendChild(e); e=q},1)};var Tb={map:"pxg0sy",common:"lqylio",style:"xuda1u",tile:"hxvfsg",groundoverlay:"eescpx",pointcollection:"oo01k0",marker:"wyaogp",symbol:"fidjsw",canvablepath:"54nixq",vmlcontext:"5r0bnb",markeranimation:"3cm503",poly:"nxdp35",draw:"4vjtrr",drawbysvg:"gyly3b",drawbyvml:"yn1pdt",drawbycanvas:"uhivqr",infowindow:"mzscvs", oppc:"deb555",opmb:"lxecbe",menu:"d2reoq",control:"vhjjb2",navictrl:"rovo3u",geoctrl:"gqslmc",copyrightctrl:"udgckd",citylistcontrol:"rnsteg",scommon:"w451lb",local:"ty1t0n",route:"ankedp",othersearch:"2u1qac",mapclick:"aocy31",buslinesearch:"z4n0zu",hotspot:"s1gizd",autocomplete:"t22xwp",coordtrans:"ggece5", coordtransutils:"14ewqr",convertor:"vqpmt5",clayer:"2r4abe",pservice:"olymfd",pcommon:"bgqs2b",panorama:"cjnjdj",panoramaflash:"vjmlwq"}; z.ey=function(){function a(a){return e&&!!c[b+a+"_"+Tb[a]]}var b="BMap_",c=window.localStorage,e="localStorage"in window&&c!==q&&c!==l;return{jY:e,set:function(a,g){if(e){for(var i=b+a+"_",k=c.length,m;k--;)m=c.key(k),-1<m.indexOf(i)&&c.removeItem(m);try{c.setItem(b+a+"_"+Tb[a],g)}catch(n){c.clear()}}},get:function(f){return e&&a(f)?c.getItem(b+f+"_"+Tb[f]):t},tJ:a}}();function K(){} z.object.extend(K,{uj:{KF:-1,aP:0,Ep:1},AK:function(){var a="canvablepath";if(!I()||!Pb())Ob()||(Nb()?a="vmlcontext":Pb());return{tile:["style"],control:[],marker:["symbol"],symbol:["canvablepath","common"],canvablepath:"canvablepath"===a?[]:[a],vmlcontext:[],style:[],poly:["marker","drawbycanvas","drawbysvg","drawbyvml"],drawbysvg:["draw"],drawbyvml:["draw"],drawbycanvas:["draw"],infowindow:["common","marker"],menu:[],oppc:[],opmb:[],scommon:[],local:["scommon"],route:["scommon"],othersearch:["scommon"],autocomplete:["scommon"], citylistcontrol:["autocomplete"],mapclick:["scommon"],buslinesearch:["route"],hotspot:[],coordtransutils:["coordtrans"],convertor:[],clayer:["tile"],pservice:[],pcommon:["style","pservice"],panorama:["pcommon"],panoramaflash:["pcommon"]}},I4:{},CF:{kP:D.oa+"getmodules?v=3.0",IT:5E3},SB:t,Qd:{ml:{},$m:[],vv:[]},load:function(a,b,c){var e=this.mb(a);if(e.Le==this.uj.Ep)c&&b();else{if(e.Le==this.uj.KF){this.yJ(a);this.OM(a);var f=this;f.SB==t&&(f.SB=p,setTimeout(function(){for(var a=[],b=0,c=f.Qd.$m.length;b< c;b++){var e=f.Qd.$m[b],n="";ja.ey.tJ(e)?n=ja.ey.get(e):(n="",a.push(e+"_"+Tb[e]));f.Qd.vv.push({fM:e,aE:n})}f.SB=t;f.Qd.$m.length=0;0==a.length?f.hK():pa(f.CF.kP+"&mod="+a.join(","))},1));e.Le=this.uj.aP}e.ru.push(b)}},yJ:function(a){if(a&&this.AK()[a])for(var a=this.AK()[a],b=0;b<a.length;b++)this.yJ(a[b]),this.Qd.ml[a[b]]||this.OM(a[b])},OM:function(a){for(var b=0;b<this.Qd.$m.length;b++)if(this.Qd.$m[b]==a)return;this.Qd.$m.push(a)},CZ:function(a,b){var c=this.mb(a);try{eval(b)}catch(e){return}c.Le= this.uj.Ep;for(var f=0,g=c.ru.length;f<g;f++)c.ru[f]();c.ru.length=0},tJ:function(a,b){var c=this;c.timeout=setTimeout(function(){c.Qd.ml[a].Le!=c.uj.Ep?(c.remove(a),c.load(a,b)):clearTimeout(c.timeout)},c.CF.IT)},mb:function(a){this.Qd.ml[a]||(this.Qd.ml[a]={},this.Qd.ml[a].Le=this.uj.KF,this.Qd.ml[a].ru=[]);return this.Qd.ml[a]},remove:function(a){delete this.mb(a)},KU:function(a,b){for(var c=this.Qd.vv,e=p,f=0,g=c.length;f<g;f++)""==c[f].aE&&(c[f].fM==a?c[f].aE=b:e=t);e&&this.hK()},hK:function(){for(var a= this.Qd.vv,b=0,c=a.length;b<c;b++)this.CZ(a[b].fM,a[b].aE);this.Qd.vv.length=0}});function R(a,b){this.x=a||0;this.y=b||0;this.x=this.x;this.y=this.y}R.prototype.Yb=function(a){return a&&a.x==this.x&&a.y==this.y};function P(a,b){this.width=a||0;this.height=b||0}P.prototype.Yb=function(a){return a&&this.width==a.width&&this.height==a.height};function kb(a,b){a&&(this.Mb=a,this.ea="spot"+kb.ea++,b=b||{},this.Sg=b.text||"",this.av=b.offsets?b.offsets.slice(0):[5,5,5,5],this.bB=b.userData||q,this.Dh=b.minZoom||q,this.Df=b.maxZoom||q)}kb.ea=0;z.extend(kb.prototype,{xa:function(a){this.Dh==q&&(this.Dh=a.R.jc);this.Df==q&&(this.Df=a.R.pc)},ua:function(a){a instanceof J&&(this.Mb=a)},ka:x("Mb"),yt:ba("Sg"),kD:x("Sg"),setUserData:ba("bB"),getUserData:x("bB")});function Ub(){this.M=q;this.Nb="control";this.Sa=this.kJ=p}z.lang.wa(Ub,z.lang.Ga,"Control"); z.extend(Ub.prototype,{initialize:function(a){this.M=a;if(this.P)return a.Ya.appendChild(this.P),this.P},Ge:function(a){!this.P&&(this.initialize&&$a(this.initialize))&&(this.P=this.initialize(a));this.m=this.m||{zg:t};this.QA();this.hr();this.P&&(this.P.Gq=this)},QA:function(){var a=this.P;if(a){var b=a.style;b.position="absolute";b.zIndex=this.ou||"10";b.MozUserSelect="none";b.WebkitTextSizeAdjust="none";this.m.zg||z.U.eb(a,"BMap_noprint");I()||z.V(a,"contextmenu",oa)}},remove:function(){this.M= q;this.P&&(this.P.parentNode&&this.P.parentNode.removeChild(this.P),this.P=this.P.Gq=q)},Ea:function(){this.P=Cb(this.M.Ya,"<div unselectable='on'></div>");this.Sa==t&&z.U.aa(this.P);return this.P},hr:function(){this.uc(this.m.anchor)},uc:function(a){if(this.K1||!Za(a)||isNaN(a)||a<Wb||3<a)a=this.defaultAnchor;this.m=this.m||{zg:t};this.m.Da=this.m.Da||this.defaultOffset;var b=this.m.anchor;this.m.anchor=a;if(this.P){var c=this.P,e=this.m.Da.width,f=this.m.Da.height;c.style.left=c.style.top=c.style.right= c.style.bottom="auto";switch(a){case Wb:c.style.top=f+"px";c.style.left=e+"px";break;case Xb:c.style.top=f+"px";c.style.right=e+"px";break;case Yb:c.style.bottom=f+"px";c.style.left=e+"px";break;case 3:c.style.bottom=f+"px",c.style.right=e+"px"}c=["TL","TR","BL","BR"];z.U.tc(this.P,"anchor"+c[b]);z.U.eb(this.P,"anchor"+c[a])}},NC:function(){return this.m.anchor},getContainer:x("P"),Ld:function(a){a instanceof P&&(this.m=this.m||{zg:t},this.m.Da=new P(a.width,a.height),this.P&&this.uc(this.m.anchor))}, cj:function(){return this.m.Da},Zc:x("P"),show:function(){this.Sa!=p&&(this.Sa=p,this.P&&z.U.show(this.P))},aa:function(){this.Sa!=t&&(this.Sa=t,this.P&&z.U.aa(this.P))},isPrintable:function(){return!!this.m.zg},Oc:function(){return!this.P&&!this.M?t:!!this.Sa}});var Wb=0,Xb=1,Yb=2;function lb(a){Ub.call(this);a=a||{};this.m={zg:t,NE:a.showZoomInfo||p,anchor:a.anchor,Da:a.offset,type:a.type,YV:a.enableGeolocation||t};this.defaultAnchor=I()?3:Wb;this.defaultOffset=new P(10,10);this.uc(a.anchor);this.Km(a.type);this.vf()}z.lang.wa(lb,Ub,"NavigationControl");z.extend(lb.prototype,{initialize:function(a){this.M=a;return this.P},Km:function(a){this.m.type=Za(a)&&0<=a&&3>=a?a:0},Mo:function(){return this.m.type},vf:function(){var a=this;K.load("navictrl",function(){a.uf()})}});function Zb(a){Ub.call(this);a=a||{};this.m={anchor:a.anchor||Yb,Da:a.offset||new P(10,30),m_:a.showAddressBar!==t,s2:a.enableAutoLocation||t,YL:a.locationIcon||q};var b=this;this.ou=1200;b.f0=[];this.ne=[];K.load("geoctrl",function(){(function e(){if(0!==b.ne.length){var a=b.ne.shift();b[a.method].apply(b,a.arguments);e()}})();b.jP()});Ta(Ma)}z.lang.wa(Zb,Ub,"GeolocationControl");z.extend(Zb.prototype,{location:function(){this.ne.push({method:"location",arguments:arguments})},getAddressComponent:da(q)});function $b(a){Ub.call(this);a=a||{};this.m={zg:t,anchor:a.anchor,Da:a.offset};this.gc=[];this.defaultAnchor=Yb;this.defaultOffset=new P(5,2);this.uc(a.anchor);this.kJ=t;this.vf()}z.lang.wa($b,Ub,"CopyrightControl"); z.object.extend($b.prototype,{initialize:function(a){this.M=a;return this.P},Rv:function(a){if(a&&Za(a.id)&&!isNaN(a.id)){var b={bounds:q,content:""},c;for(c in a)b[c]=a[c];if(a=this.bm(a.id))for(var e in b)a[e]=b[e];else this.gc.push(b)}},bm:function(a){for(var b=0,c=this.gc.length;b<c;b++)if(this.gc[b].id==a)return this.gc[b]},UC:x("gc"),pE:function(a){for(var b=0,c=this.gc.length;b<c;b++)this.gc[b].id==a&&(r=this.gc.splice(b,1),b--,c=this.gc.length)},vf:function(){var a=this;K.load("copyrightctrl", function(){a.uf()})}});function nb(a){Ub.call(this);a=a||{};this.m={zg:t,size:a.size||new P(150,150),padding:5,Za:a.isOpen===p?p:t,x0:4,Da:a.offset,anchor:a.anchor};this.defaultAnchor=3;this.defaultOffset=new P(0,0);this.Yp=this.Zp=13;this.uc(a.anchor);this.Be(this.m.size);this.vf()}z.lang.wa(nb,Ub,"OverviewMapControl"); z.extend(nb.prototype,{initialize:function(a){this.M=a;return this.P},uc:function(a){Ub.prototype.uc.call(this,a)},qe:function(){this.qe.Ln=p;this.m.Za=!this.m.Za;this.P||(this.qe.Ln=t)},Be:function(a){a instanceof P||(a=new P(150,150));a.width=0<a.width?a.width:150;a.height=0<a.height?a.height:150;this.m.size=a},Eb:function(){return this.m.size},Za:function(){return this.m.Za},vf:function(){var a=this;K.load("control",function(){a.uf()})}});function ac(a){Ub.call(this);a=a||{};this.defaultAnchor=Wb;this.IU=a.canCheckSize===t?t:p;this.Ui="";this.defaultOffset=new P(10,10);this.onChangeBefore=[];this.onChangeAfter=[];this.onChangeSuccess=[];this.m={zg:t,Da:a.offset||this.defaultOffset,anchor:a.anchor||this.defaultAnchor,expand:!!a.expand};a.onChangeBefore&&$a(a.onChangeBefore)&&this.onChangeBefore.push(a.onChangeBefore);a.onChangeAfter&&$a(a.onChangeAfter)&&this.onChangeAfter.push(a.onChangeAfter);a.onChangeSuccess&&$a(a.onChangeSuccess)&& this.onChangeSuccess.push(a.onChangeSuccess);this.uc(a.anchor);this.vf()}z.lang.wa(ac,Ub,"CityListControl");z.object.extend(ac.prototype,{initialize:function(a){this.M=a;return this.P},vf:function(){var a=this;K.load("citylistcontrol",function(){a.uf()},p)}});function mb(a){Ub.call(this);a=a||{};this.m={zg:t,color:"black",ed:"metric",Da:a.offset};this.defaultAnchor=Yb;this.defaultOffset=new P(81,18);this.uc(a.anchor);this.Lh={metric:{name:"metric",AJ:1,oL:1E3,YN:"\u7c73",ZN:"\u516c\u91cc"},us:{name:"us",AJ:3.2808,oL:5280,YN:"\u82f1\u5c3a",ZN:"\u82f1\u91cc"}};this.Lh[this.m.ed]||(this.m.ed="metric");this.eI=q;this.EH={};this.vf()}z.lang.wa(mb,Ub,"ScaleControl"); z.object.extend(mb.prototype,{initialize:function(a){this.M=a;return this.P},Dk:function(a){this.m.color=a+""},O2:function(){return this.m.color},JE:function(a){this.m.ed=this.Lh[a]&&this.Lh[a].name||this.m.ed},wX:function(){return this.m.ed},vf:function(){var a=this;K.load("control",function(){a.uf()})}});var bc=0;function ob(a){Ub.call(this);a=a||{};this.defaultAnchor=Xb;this.defaultOffset=new P(10,10);this.m={zg:t,fh:[Pa,ab,Va,Sa],sV:["B_DIMENSIONAL_MAP","B_SATELLITE_MAP","B_NORMAL_MAP"],type:a.type||bc,Da:a.offset||this.defaultOffset,bW:p};this.uc(a.anchor);"[object Array]"==Object.prototype.toString.call(a.mapTypes)&&(this.m.fh=a.mapTypes.slice(0));this.vf()}z.lang.wa(ob,Ub,"MapTypeControl"); z.object.extend(ob.prototype,{initialize:function(a){this.M=a;return this.P},fy:function(a){this.M.Bn=a},vf:function(){var a=this;K.load("control",function(){a.uf()},p)}});function cc(a){Ub.call(this);a=a||{};this.m={zg:t,Da:a.offset,anchor:a.anchor};this.Hi=t;this.zv=q;this.NH=new dc({kf:"api"});this.OH=new ec(q,{kf:"api"});this.defaultAnchor=Xb;this.defaultOffset=new P(10,10);this.uc(a.anchor);this.vf();Ta(xa)}z.lang.wa(cc,Ub,"PanoramaControl");z.extend(cc.prototype,{initialize:function(a){this.M=a;return this.P},vf:function(){var a=this;K.load("control",function(){a.uf()})}});function fc(a){z.lang.Ga.call(this);this.m={Ya:q,cursor:"default"};this.m=z.extend(this.m,a);this.Nb="contextmenu";this.M=q;this.Aa=[];this.Ff=[];this.Ee=[];this.sw=this.Hr=q;this.Ch=t;var b=this;K.load("menu",function(){b.kb()})}z.lang.wa(fc,z.lang.Ga,"ContextMenu"); z.object.extend(fc.prototype,{xa:function(a,b){this.M=a;this.rl=b||q},remove:function(){this.M=this.rl=q},Sv:function(a){if(a&&!("menuitem"!=a.Nb||""==a.Sg||0>=a.Pi)){for(var b=0,c=this.Aa.length;b<c;b++)if(this.Aa[b]===a)return;this.Aa.push(a);this.Ff.push(a)}},removeItem:function(a){if(a&&"menuitem"==a.Nb){for(var b=0,c=this.Aa.length;b<c;b++)this.Aa[b]===a&&(this.Aa[b].remove(),this.Aa.splice(b,1),c--);b=0;for(c=this.Ff.length;b<c;b++)this.Ff[b]===a&&(this.Ff[b].remove(),this.Ff.splice(b,1),c--)}}, lB:function(){this.Aa.push({Nb:"divider",Bj:this.Ee.length});this.Ee.push({U:q})},rE:function(a){if(this.Ee[a]){for(var b=0,c=this.Aa.length;b<c;b++)this.Aa[b]&&("divider"==this.Aa[b].Nb&&this.Aa[b].Bj==a)&&(this.Aa.splice(b,1),c--),this.Aa[b]&&("divider"==this.Aa[b].Nb&&this.Aa[b].Bj>a)&&this.Aa[b].Bj--;this.Ee.splice(a,1)}},Zc:x("P"),show:function(){this.Ch!=p&&(this.Ch=p)},aa:function(){this.Ch!=t&&(this.Ch=t)},RZ:function(a){a&&(this.m.cursor=a)},getItem:function(a){return this.Ff[a]}});var gc=H.sa+"menu_zoom_in.png",hc=H.sa+"menu_zoom_out.png";function ic(a,b,c){if(a&&$a(b)){z.lang.Ga.call(this);this.m={width:100,id:"",lm:""};c=c||{};this.m.width=1*c.width?c.width:100;this.m.id=c.id?c.id:"";this.m.lm=c.iconUrl?c.iconUrl:"";this.Sg=a+"";this.Oy=b;this.M=q;this.Nb="menuitem";this.or=this.Qu=this.P=this.xh=q;this.Ah=p;var e=this;K.load("menu",function(){e.kb()})}}z.lang.wa(ic,z.lang.Ga,"MenuItem"); z.object.extend(ic.prototype,{xa:function(a,b){this.M=a;this.xh=b},remove:function(){this.M=this.xh=q},yt:function(a){a&&(this.Sg=a+"")},Vb:function(a){a&&(this.m.lm=a)},Zc:x("P"),enable:function(){this.Ah=p},disable:function(){this.Ah=t}});function hb(a,b){a&&!b&&(b=a);this.He=this.Wd=this.Me=this.Yd=this.El=this.pl=q;a&&(this.El=new J(a.lng,a.lat),this.pl=new J(b.lng,b.lat),this.Me=a.lng,this.Yd=a.lat,this.He=b.lng,this.Wd=b.lat)} z.object.extend(hb.prototype,{lj:function(){return!this.El||!this.pl},Yb:function(a){return!(a instanceof hb)||this.lj()?t:this.Te().Yb(a.Te())&&this.Nf().Yb(a.Nf())},Te:x("El"),Nf:x("pl"),ZU:function(a){return!(a instanceof hb)||this.lj()||a.lj()?t:a.Me>this.Me&&a.He<this.He&&a.Yd>this.Yd&&a.Wd<this.Wd},Db:function(){return this.lj()?q:new J((this.Me+this.He)/2,(this.Yd+this.Wd)/2)},Gs:function(a){if(!(a instanceof hb)||Math.max(a.Me,a.He)<Math.min(this.Me,this.He)||Math.min(a.Me,a.He)>Math.max(this.Me, this.He)||Math.max(a.Yd,a.Wd)<Math.min(this.Yd,this.Wd)||Math.min(a.Yd,a.Wd)>Math.max(this.Yd,this.Wd))return q;var b=Math.max(this.Me,a.Me),c=Math.min(this.He,a.He),e=Math.max(this.Yd,a.Yd),a=Math.min(this.Wd,a.Wd);return new hb(new J(b,e),new J(c,a))},Dr:function(a){return!(a instanceof J)||this.lj()?t:a.lng>=this.Me&&a.lng<=this.He&&a.lat>=this.Yd&&a.lat<=this.Wd},extend:function(a){if(a instanceof J){var b=a.lng,a=a.lat;this.El||(this.El=new J(0,0));this.pl||(this.pl=new J(0,0));if(!this.Me|| this.Me>b)this.El.lng=this.Me=b;if(!this.He||this.He<b)this.pl.lng=this.He=b;if(!this.Yd||this.Yd>a)this.El.lat=this.Yd=a;if(!this.Wd||this.Wd<a)this.pl.lat=this.Wd=a}},aF:function(){return this.lj()?new J(0,0):new J(Math.abs(this.He-this.Me),Math.abs(this.Wd-this.Yd))}});function J(a,b){isNaN(a)&&(a=Mb(a),a=isNaN(a)?0:a);bb(a)&&(a=parseFloat(a));isNaN(b)&&(b=Mb(b),b=isNaN(b)?0:b);bb(b)&&(b=parseFloat(b));this.lng=a;this.lat=b}J.tL=function(a){return a&&180>=a.lng&&-180<=a.lng&&74>=a.lat&&-74<=a.lat};J.prototype.Yb=function(a){return a&&this.lat==a.lat&&this.lng==a.lng};function jc(){}jc.prototype.ug=function(){aa("lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0")};jc.prototype.pj=function(){aa("pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0")};function kc(){};var gb={CJ:function(a,b,c){K.load("coordtransutils",function(){gb.iU(a,b,c)},p)},BJ:function(a,b,c){K.load("coordtransutils",function(){gb.hU(a,b,c)},p)}};function lc(){this.Ra=[];var a=this;K.load("convertor",function(){a.hP()})}z.wa(lc,z.lang.Ga,"Convertor");z.extend(lc.prototype,{translate:function(a,b,c,e){this.Ra.push({method:"translate",arguments:[a,b,c,e]})}});V(lc.prototype,{translate:lc.prototype.translate});function S(){}S.prototype=new jc; z.extend(S,{EO:6370996.81,OF:[1.289059486E7,8362377.87,5591021,3481989.83,1678043.12,0],fu:[86,60,45,30,15,0],KO:[[1.410526172116255E-8,8.98305509648872E-6,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-0.03801003308653,1.73379812E7],[-7.435856389565537E-9,8.983055097726239E-6,-0.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1.026014486E7],[-3.030883460898826E-8, 8.98305509983578E-6,0.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,0.32710905363475,6856817.37],[-1.981981304930552E-8,8.983055099779535E-6,0.03278182852591,40.31678527705744,0.65659298677277,-4.44255534477492,0.85341911805263,0.12923347998204,-0.04625736007561,4482777.06],[3.09191371068437E-9,8.983055096812155E-6,6.995724062E-5,23.10934304144901,-2.3663490511E-4,-0.6321817810242,-0.00663494467273,0.03430082397953,-0.00466043876332,2555164.4], [2.890871144776878E-9,8.983055095805407E-6,-3.068298E-8,7.47137025468032,-3.53937994E-6,-0.02145144861037,-1.234426596E-5,1.0322952773E-4,-3.23890364E-6,826088.5]],LF:[[-0.0015702102444,111320.7020616939,1704480524535203,-10338987376042340,26112667856603880,-35149669176653700,26595700718403920,-10725012454188240,1800819912950474,82.5],[8.277824516172526E-4,111320.7020463578,6.477955746671607E8,-4.082003173641316E9,1.077490566351142E10,-1.517187553151559E10,1.205306533862167E10,-5.124939663577472E9, 9.133119359512032E8,67.5],[0.00337398766765,111320.7020202162,4481351.045890365,-2.339375119931662E7,7.968221547186455E7,-1.159649932797253E8,9.723671115602145E7,-4.366194633752821E7,8477230.501135234,52.5],[0.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-3.441963504368392E-4,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236, -2710.55326746645,1405.483844121726,22.5],[-3.218135878613132E-4,111320.7020701615,0.00369383431289,823725.6402795718,0.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,0.37238884252424,7.45]],U2:function(a,b){if(!a||!b)return 0;var c,e,a=this.hc(a);if(!a)return 0;c=this.Mk(a.lng);e=this.Mk(a.lat);b=this.hc(b);return!b?0:this.ue(c,this.Mk(b.lng),e,this.Mk(b.lat))},mk:function(a,b){if(!a||!b)return 0;a.lng=this.aD(a.lng,-180,180);a.lat=this.gD(a.lat,-74,74);b.lng=this.aD(b.lng,-180, 180);b.lat=this.gD(b.lat,-74,74);return this.ue(this.Mk(a.lng),this.Mk(b.lng),this.Mk(a.lat),this.Mk(b.lat))},hc:function(a){if(a===q||a===l)return new J(0,0);var b,c;b=new J(Math.abs(a.lng),Math.abs(a.lat));for(var e=0;e<this.OF.length;e++)if(b.lat>=this.OF[e]){c=this.KO[e];break}a=this.DJ(a,c);return a=new J(a.lng,a.lat)},gb:function(a){if(a===q||a===l||180<a.lng||-180>a.lng||90<a.lat||-90>a.lat)return new J(0,0);var b,c;a.lng=this.aD(a.lng,-180,180);a.lat=this.gD(a.lat,-85,85);b=new J(a.lng,a.lat); for(var e=0;e<this.fu.length;e++)if(b.lat>=this.fu[e]){c=this.LF[e];break}if(!c)for(e=0;e<this.fu.length;e++)if(b.lat<=-this.fu[e]){c=this.LF[e];break}a=this.DJ(a,c);return a=new J(a.lng,a.lat)},DJ:function(a,b){if(a&&b){var c=b[0]+b[1]*Math.abs(a.lng),e=Math.abs(a.lat)/b[9],e=b[2]+b[3]*e+b[4]*e*e+b[5]*e*e*e+b[6]*e*e*e*e+b[7]*e*e*e*e*e+b[8]*e*e*e*e*e*e,c=c*(0>a.lng?-1:1),e=e*(0>a.lat?-1:1);return new J(c,e)}},ue:function(a,b,c,e){return this.EO*Math.acos(Math.sin(c)*Math.sin(e)+Math.cos(c)*Math.cos(e)* Math.cos(b-a))},Mk:function(a){return Math.PI*a/180},r5:function(a){return 180*a/Math.PI},gD:function(a,b,c){b!=q&&(a=Math.max(a,b));c!=q&&(a=Math.min(a,c));return a},aD:function(a,b,c){for(;a>c;)a-=c-b;for(;a<b;)a+=c-b;return a}}); z.extend(S.prototype,{ci:function(a){return S.gb(a)},ug:function(a){a=S.gb(a);return new R(a.lng,a.lat)},gh:function(a){return S.hc(a)},pj:function(a){a=new J(a.x,a.y);return S.hc(a)},Tb:function(a,b,c,e,f){if(a)return a=this.ci(a,f),b=this.$b(b),new R(Math.round((a.lng-c.lng)/b+e.width/2),Math.round((c.lat-a.lat)/b+e.height/2))},CY:function(a,b,c,e){if(a)return b=this.$b(b),new R(Math.round((a.lng-c.lng)/b+e.width/2),Math.round((c.lat-a.lat)/b+e.height/2))},Ib:function(a,b,c,e,f){if(a)return b=this.$b(b), this.gh(new J(c.lng+b*(a.x-e.width/2),c.lat-b*(a.y-e.height/2)),f)},$b:function(a){return Math.pow(2,18-a)}});function jb(){this.Ui="bj"}jb.prototype=new S; z.extend(jb.prototype,{ci:function(a,b){return this.TP(b,S.gb(a))},gh:function(a,b){return S.hc(this.UP(b,a))},lngLatToPointFor3D:function(a,b){var c=this,e=S.gb(a);K.load("coordtrans",function(){var a=kc.eD(c.Ui||"bj",e),a=new R(a.x,a.y);b&&b(a)},p)},pointToLngLatFor3D:function(a,b){var c=this,e=new J(a.x,a.y);K.load("coordtrans",function(){var a=kc.bD(c.Ui||"bj",e),a=new J(a.lng,a.lat),a=S.hc(a);b&&b(a)},p)},TP:function(a,b){if(K.mb("coordtrans").Le==K.uj.Ep){var c=kc.eD(a||"bj",b);return new J(c.x, c.y)}K.load("coordtrans",u());return new J(0,0)},UP:function(a,b){if(K.mb("coordtrans").Le==K.uj.Ep){var c=kc.bD(a||"bj",b);return new J(c.lng,c.lat)}K.load("coordtrans",u());return new J(0,0)},$b:function(a){return Math.pow(2,20-a)}});function mc(){this.Nb="overlay"}z.lang.wa(mc,z.lang.Ga,"Overlay");mc.sk=function(a){a*=1;return!a?0:-1E5*a<<1}; z.extend(mc.prototype,{Ge:function(a){if(!this.ba&&$a(this.initialize)&&(this.ba=this.initialize(a)))this.ba.style.WebkitUserSelect="none";this.draw()},initialize:function(){aa("initialize\u65b9\u6cd5\u672a\u5b9e\u73b0")},draw:function(){aa("draw\u65b9\u6cd5\u672a\u5b9e\u73b0")},remove:function(){this.ba&&this.ba.parentNode&&this.ba.parentNode.removeChild(this.ba);this.ba=q;this.dispatchEvent(new Q("onremove"))},aa:function(){this.ba&&z.U.aa(this.ba)},show:function(){this.ba&&z.U.show(this.ba)},Oc:function(){return!this.ba|| "none"==this.ba.style.display||"hidden"==this.ba.style.visibility?t:p}});D.Xe(function(a){function b(a,b){var c=O("div"),i=c.style;i.position="absolute";i.top=i.left=i.width=i.height="0";i.zIndex=b;a.appendChild(c);return c}var c=a.$;c.Pc=a.Pc=b(a.platform,200);a.Xd.GC=b(c.Pc,800);a.Xd.WD=b(c.Pc,700);a.Xd.nK=b(c.Pc,600);a.Xd.PD=b(c.Pc,500);a.Xd.bM=b(c.Pc,400);a.Xd.cM=b(c.Pc,300);a.Xd.jO=b(c.Pc,201);a.Xd.Ss=b(c.Pc,200)});function ib(){z.lang.Ga.call(this);mc.call(this);this.map=q;this.Sa=p;this.Fb=q;this.yG=0}z.lang.wa(ib,mc,"OverlayInternal"); z.extend(ib.prototype,{initialize:function(a){this.map=a;z.lang.Ga.call(this,this.ea);return q},Mw:x("map"),draw:u(),vj:u(),remove:function(){this.map=q;z.lang.vw(this.ea);mc.prototype.remove.call(this)},aa:function(){this.Sa!==t&&(this.Sa=t)},show:function(){this.Sa!==p&&(this.Sa=p)},Oc:function(){return!this.ba?t:!!this.Sa},Ta:x("ba"),jN:function(a){var a=a||{},b;for(b in a)this.K[b]=a[b]},sp:ba("zIndex"),Yi:function(){this.K.Yi=p},BV:function(){this.K.Yi=t},$n:ba("gg"),dp:function(){this.gg=q}});function nc(){this.map=q;this.Ba={};this.De=[]} D.Xe(function(a){var b=new nc;b.map=a;a.Ba=b.Ba;a.De=b.De;a.addEventListener("load",function(a){b.draw(a)});a.addEventListener("moveend",function(a){b.draw(a)});z.fa.na&&8>z.fa.na||"BackCompat"===document.compatMode?a.addEventListener("zoomend",function(a){setTimeout(function(){b.draw(a)},20)}):a.addEventListener("zoomend",function(a){b.draw(a)});a.addEventListener("maptypechange",function(a){b.draw(a)});a.addEventListener("addoverlay",function(a){a=a.target;if(a instanceof ib)b.Ba[a.ea]||(b.Ba[a.ea]= a);else{for(var e=t,f=0,g=b.De.length;f<g;f++)if(b.De[f]===a){e=p;break}e||b.De.push(a)}});a.addEventListener("removeoverlay",function(a){a=a.target;if(a instanceof ib)delete b.Ba[a.ea];else for(var e=0,f=b.De.length;e<f;e++)if(b.De[e]===a){b.De.splice(e,1);break}});a.addEventListener("clearoverlays",function(){this.Xc();for(var a in b.Ba)b.Ba[a].K.Yi&&(b.Ba[a].remove(),delete b.Ba[a]);a=0;for(var e=b.De.length;a<e;a++)b.De[a].enableMassClear!==t&&(b.De[a].remove(),b.De[a]=q,b.De.splice(a,1),a--, e--)});a.addEventListener("infowindowopen",function(){var a=this.Fb;a&&(z.U.aa(a.zc),z.U.aa(a.cc))});a.addEventListener("movestart",function(){this.bh()&&this.bh().kI()});a.addEventListener("moveend",function(){this.bh()&&this.bh().$H()})});nc.prototype.draw=function(a){if(D.Hp){var b=D.Hp.ks(this.map);"canvas"===b.Nb&&b.canvas&&b.OP(b.canvas.getContext("2d"))}for(var c in this.Ba)this.Ba[c].draw(a);z.mc.Ob(this.De,function(a){a.draw()});this.map.$.sb&&this.map.$.sb.ua();D.Hp&&b.HE()};function oc(a){ib.call(this);a=a||{};this.K={strokeColor:a.strokeColor||"#3a6bdb",qc:a.strokeWeight||5,td:a.strokeOpacity||0.65,strokeStyle:a.strokeStyle||"solid",Yi:a.enableMassClear===t?t:p,ok:q,em:q,hf:a.enableEditing===p?p:t,gM:5,d0:t,ef:a.enableClicking===t?t:p,ai:a.icons&&0<a.icons.length?a.icons:q,vW:a.geodesic===p?p:t};0>=this.K.qc&&(this.K.qc=5);if(0>this.K.td||1<this.K.td)this.K.td=0.65;if(0>this.K.pg||1<this.K.pg)this.K.pg=0.65;"solid"!=this.K.strokeStyle&&"dashed"!=this.K.strokeStyle&& (this.K.strokeStyle="solid");this.ba=q;this.nu=new hb(0,0);this.cf=[];this.rc=[];this.Ua={}}z.lang.wa(oc,ib,"Graph");oc.Jw=function(a){var b=[];if(!a)return b;bb(a)&&z.mc.Ob(a.split(";"),function(a){a=a.split(",");b.push(new J(a[0],a[1]))});"[object Array]"==Object.prototype.toString.apply(a)&&0<a.length&&(b=a);return b};oc.gE=[0.09,0.0050,1.0E-4,1.0E-5]; z.extend(oc.prototype,{initialize:function(a){this.map=a;return q},draw:u(),gr:function(a){this.cf.length=0;this.la=oc.Jw(a).slice(0);this.uh()},je:function(a){this.gr(a)},uh:function(){if(this.la){var a=this;a.nu=new hb;z.mc.Ob(this.la,function(b){a.nu.extend(b)})}},Se:x("la"),Jm:function(a,b){b&&this.la[a]&&(this.cf.length=0,this.la[a]=new J(b.lng,b.lat),this.uh())},setStrokeColor:function(a){this.K.strokeColor=a},oX:function(){return this.K.strokeColor},rp:function(a){0<a&&(this.K.qc=a)},QK:function(){return this.K.qc}, pp:function(a){a==l||(1<a||0>a)||(this.K.td=a)},pX:function(){return this.K.td},mt:function(a){1<a||0>a||(this.K.pg=a)},JW:function(){return this.K.pg},qp:function(a){"solid"!=a&&"dashed"!=a||(this.K.strokeStyle=a)},PK:function(){return this.K.strokeStyle},setFillColor:function(a){this.K.fillColor=a||""},IW:function(){return this.K.fillColor},te:x("nu"),remove:function(){this.map&&this.map.removeEventListener("onmousemove",this.Nu);ib.prototype.remove.call(this);this.cf.length=0},hf:function(){if(!(2> this.la.length)){this.K.hf=p;var a=this;K.load("poly",function(){a.Jl()},p)}},AV:function(){this.K.hf=t;var a=this;K.load("poly",function(){a.bk()},p)},FW:function(){return this.K.hf},LW:function(){for(var a=[],b=0;b<this.la.length-1;b++)var c=this.CU(this.la[b],this.la[b+1]),a=a.concat(c);return a=a.concat(this.la[this.la.length-1])},CU:function(a,b){if(a.Yb(b))return[a];var c=S.ue(U(a.lng),U(a.lat),U(b.lng),U(b.lat)),c=S.mk(a,b);if(25E4>c)return[a];var e=[],c=Math.round(c/15E4),f=this.nJ(a,b);e.push(a); for(var g=0;g<c;g++){var i=this.oJ(a,b,g/c,f);e.push(i)}e.push(b);return e},oJ:function(a,b,c,e){var f=U(a.lat),g=U(b.lat),a=U(a.lng),i=U(b.lng),b=Math.sin((1-c)*e)/Math.sin(e),c=Math.sin(c*e)/Math.sin(e),e=b*Math.cos(f)*Math.cos(a)+c*Math.cos(g)*Math.cos(i),a=b*Math.cos(f)*Math.sin(a)+c*Math.cos(g)*Math.sin(i);return new J(180*(Math.atan2(a,e)/Math.PI),180*(Math.atan2(b*Math.sin(f)+c*Math.sin(g),Math.sqrt(Math.pow(e,2)+Math.pow(a,2)))/Math.PI))},nJ:function(a,b){var c=U(a.lat),e=U(b.lat);return Math.acos(Math.sin(c)* Math.sin(e)+Math.cos(c)*Math.cos(e)*Math.cos(Math.abs(U(b.lng)-U(a.lng))))}});function pc(a){ib.call(this);this.ba=this.map=q;this.K={width:0,height:0,Da:new P(0,0),opacity:1,background:"transparent",ox:1,OL:"#000",tY:"solid",point:q};this.jN(a);this.point=this.K.point}z.lang.wa(pc,ib,"Division"); z.extend(pc.prototype,{vj:function(){var a=this.K,b=this.content,c=['<div class="BMap_Division" style="position:absolute;'];c.push("width:"+a.width+"px;display:block;");c.push("overflow:hidden;");"none"!=a.borderColor&&c.push("border:"+a.ox+"px "+a.tY+" "+a.OL+";");c.push("opacity:"+a.opacity+"; filter:(opacity="+100*a.opacity+")");c.push("background:"+a.background+";");c.push('z-index:60;">');c.push(b);c.push("</div>");this.ba=Cb(this.map.Of().WD,c.join(""))},initialize:function(a){this.map=a;this.vj(); this.ba&&z.V(this.ba,I()?"touchstart":"mousedown",function(a){na(a)});return this.ba},draw:function(){var a=this.map.We(this.K.point);this.K.Da=new P(-Math.round(this.K.width/2)-Math.round(this.K.ox),-Math.round(this.K.height/2)-Math.round(this.K.ox));this.ba.style.left=a.x+this.K.Da.width+"px";this.ba.style.top=a.y+this.K.Da.height+"px"},ka:function(){return this.K.point},j1:function(){return this.map.Tb(this.ka())},ua:function(a){this.K.point=a;this.draw()},SZ:function(a,b){this.K.width=Math.round(a); this.K.height=Math.round(b);this.ba&&(this.ba.style.width=this.K.width+"px",this.ba.style.height=this.K.height+"px",this.draw())}});function qc(a,b,c){a&&b&&(this.imageUrl=a,this.size=b,a=new P(Math.floor(b.width/2),Math.floor(b.height/2)),c=c||{},a=c.anchor||a,b=c.imageOffset||new P(0,0),this.imageSize=c.imageSize,this.anchor=a,this.imageOffset=b,this.infoWindowAnchor=c.infoWindowAnchor||this.anchor,this.printImageUrl=c.printImageUrl||"")} z.extend(qc.prototype,{kN:function(a){a&&(this.imageUrl=a)},i_:function(a){a&&(this.printImageUrl=a)},Be:function(a){a&&(this.size=new P(a.width,a.height))},uc:function(a){a&&(this.anchor=new P(a.width,a.height))},nt:function(a){a&&(this.imageOffset=new P(a.width,a.height))},XZ:function(a){a&&(this.infoWindowAnchor=new P(a.width,a.height))},UZ:function(a){a&&(this.imageSize=new P(a.width,a.height))},toString:da("Icon")});function rc(a,b){if(a){b=b||{};this.style={anchor:b.anchor||new P(0,0),fillColor:b.fillColor||"#000",pg:b.fillOpacity||0,scale:b.scale||1,rotation:b.rotation||0,strokeColor:b.strokeColor||"#000",td:b.strokeOpacity||1,qc:b.strokeWeight};this.Nb="number"===typeof a?a:"UserDefined";this.xi=this.style.anchor;this.Lq=new P(0,0);this.anchor=q;this.DA=a;var c=this;K.load("symbol",function(){c.gn()},p)}} z.extend(rc.prototype,{setPath:ba("DA"),setAnchor:function(a){this.xi=this.style.anchor=a},setRotation:function(a){this.style.rotation=a},setScale:function(a){this.style.scale=a},setStrokeWeight:function(a){this.style.qc=a},setStrokeColor:function(a){a=z.Br.JB(a,this.style.td);this.style.strokeColor=a},setStrokeOpacity:function(a){this.style.td=a},setFillOpacity:function(a){this.style.pg=a},setFillColor:function(a){this.style.fillColor=a}});function sc(a,b,c,e){a&&(this.gv={},this.lK=e?!!e:t,this.Uc=[],this.B_=a instanceof rc?a:q,this.TH=b===l?p:!!(b.indexOf("%")+1),this.Oj=isNaN(parseFloat(b))?1:this.TH?parseFloat(b)/100:parseFloat(b),this.UH=!!(c.indexOf("%")+1),this.repeat=c!=l?this.UH?parseFloat(c)/100:parseFloat(c):0)};function tc(a,b){z.lang.Ga.call(this);this.content=a;this.map=q;b=b||{};this.K={width:b.width||0,height:b.height||0,maxWidth:b.maxWidth||730,Da:b.offset||new P(0,0),title:b.title||"",YD:b.maxContent||"",Zg:b.enableMaximize||t,Zr:b.enableAutoPan===t?t:p,pC:b.enableCloseOnClick===t?t:p,margin:b.margin||[10,10,40,10],FB:b.collisions||[[10,10],[10,10],[10,10],[10,10]],MX:t,RY:b.onClosing||da(p),eK:t,vC:b.enableParano===p?p:t,message:b.message,xC:b.enableSearchTool===p?p:t,Yw:b.headerContent||"",qC:b.enableContentScroll|| t};if(0!=this.K.width&&(220>this.K.width&&(this.K.width=220),730<this.K.width))this.K.width=730;if(0!=this.K.height&&(60>this.K.height&&(this.K.height=60),650<this.K.height))this.K.height=650;if(0!=this.K.maxWidth&&(220>this.K.maxWidth&&(this.K.maxWidth=220),730<this.K.maxWidth))this.K.maxWidth=730;this.ce=t;this.si=H.sa;this.tb=q;var c=this;K.load("infowindow",function(){c.kb()})}z.lang.wa(tc,z.lang.Ga,"InfoWindow"); z.extend(tc.prototype,{setWidth:function(a){!a&&0!=a||(isNaN(a)||0>a)||(0!=a&&(220>a&&(a=220),730<a&&(a=730)),this.K.width=a)},setHeight:function(a){!a&&0!=a||(isNaN(a)||0>a)||(0!=a&&(60>a&&(a=60),650<a&&(a=650)),this.K.height=a)},pN:function(a){!a&&0!=a||(isNaN(a)||0>a)||(0!=a&&(220>a&&(a=220),730<a&&(a=730)),this.K.maxWidth=a)},Dc:function(a){this.K.title=a},getTitle:function(){return this.K.title},cd:ba("content"),lk:x("content"),ut:function(a){this.K.YD=a+""},ie:u(),Zr:function(){this.K.Zr=p}, disableAutoPan:function(){this.K.Zr=t},enableCloseOnClick:function(){this.K.pC=p},disableCloseOnClick:function(){this.K.pC=t},Zg:function(){this.K.Zg=p},xw:function(){this.K.Zg=t},show:function(){this.Sa=p},aa:function(){this.Sa=t},close:function(){this.aa()},sx:function(){this.ce=p},restore:function(){this.ce=t},Oc:function(){return this.Za()},Za:da(t),ka:function(){if(this.tb&&this.tb.ka)return this.tb.ka()},cj:function(){return this.K.Da}}); Oa.prototype.ad=function(a,b){if(a instanceof tc&&b instanceof J){var c=this.$;c.rm?c.rm.ua(b):(c.rm=new W(b,{icon:new qc(H.sa+"blank.gif",{width:1,height:1}),offset:new P(0,0),clickable:t}),c.rm.OQ=1);this.Pa(c.rm);c.rm.ad(a)}};Oa.prototype.Xc=function(){var a=this.$.sb||this.$.gl;a&&a.tb&&a.tb.Xc()};ib.prototype.ad=function(a){this.map&&(this.map.Xc(),a.Sa=p,this.map.$.gl=a,a.tb=this,z.lang.Ga.call(a,a.ea))}; ib.prototype.Xc=function(){this.map&&this.map.$.gl&&(this.map.$.gl.Sa=t,z.lang.vw(this.map.$.gl.ea),this.map.$.gl=q)};function uc(a,b){ib.call(this);this.content=a;this.ba=this.map=q;b=b||{};this.K={width:0,Da:b.offset||new P(0,0),xp:{backgroundColor:"#fff",border:"1px solid #f00",padding:"1px",whiteSpace:"nowrap",font:"12px "+H.fontFamily,zIndex:"80",MozUserSelect:"none"},position:b.position||q,Yi:b.enableMassClear===t?t:p,ef:p,left:b.left===p?p:t,right:b.right===p?p:t};0>this.K.width&&(this.K.width=0);Ib(b.enableClicking)&&(this.K.ef=b.enableClicking);this.point=this.K.position;var c=this;K.load("marker",function(){c.kb()})} z.lang.wa(uc,ib,"Label"); z.extend(uc.prototype,{ka:function(){return this.Vu?this.Vu.ka():this.point},ua:function(a){a instanceof J&&!this.Nw()&&(this.point=this.K.position=new J(a.lng,a.lat))},cd:ba("content"),GE:function(a){0<=a&&1>=a&&(this.K.opacity=a)},Ld:function(a){a instanceof P&&(this.K.Da=new P(a.width,a.height))},cj:function(){return this.K.Da},Md:function(a){a=a||{};this.K.xp=z.extend(this.K.xp,a)},ni:function(a){return this.Md(a)},Dc:function(a){this.K.title=a||""},getTitle:function(){return this.K.title},oN:function(a){this.point= (this.Vu=a)?this.K.position=a.ka():this.K.position=q},Nw:function(){return this.Vu||q},lk:x("content")});function vc(a,b){if(0!==arguments.length){ib.apply(this,arguments);b=b||{};this.K={fb:a,opacity:b.opacity||1,Qo:b.imageURL||"",Qr:b.displayOnMinLevel||1,Yi:b.enableMassClear===t?t:p,Pr:b.displayOnMaxLevel||19,v_:b.stretch||t};0===b.opacity&&(this.K.opacity=0);var c=this;K.load("groundoverlay",function(){c.kb()})}}z.lang.wa(vc,ib,"GroundOverlay"); z.extend(vc.prototype,{setBounds:function(a){this.K.fb=a},getBounds:function(){return this.K.fb},setOpacity:function(a){this.K.opacity=a},getOpacity:function(){return this.K.opacity},setImageURL:function(a){this.K.Qo=a},getImageURL:function(){return this.K.Qo},setDisplayOnMinLevel:function(a){this.K.Qr=a},getDisplayOnMinLevel:function(){return this.K.Qr},setDisplayOnMaxLevel:function(a){this.K.Pr=a},getDisplayOnMaxLevel:function(){return this.K.Pr}});var wc=3,xc=4;function yc(){var a=document.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))} function zc(a,b){var c=this;yc()&&(a===l&&aa(Error("\u6ca1\u6709\u4f20\u5165points\u6570\u636e")),"[object Array]"!==Object.prototype.toString.call(a)&&aa(Error("points\u6570\u636e\u4e0d\u662f\u6570\u7ec4")),b=b||{},ib.apply(c,arguments),c.ia={la:a},c.K={shape:b.shape||wc,size:b.size||xc,color:b.color||"#fa937e",Yi:p},this.AA=[],this.ne=[],K.load("pointcollection",function(){for(var a=0,b;b=c.AA[a];a++)c[b.method].apply(c,b.arguments);for(a=0;b=c.ne[a];a++)c[b.method].apply(c,b.arguments)}))} z.lang.wa(zc,ib,"PointCollection");z.extend(zc.prototype,{initialize:function(a){this.AA&&this.AA.push({method:"initialize",arguments:arguments})},setPoints:function(a){this.ne&&this.ne.push({method:"setPoints",arguments:arguments})},setStyles:function(a){this.ne&&this.ne.push({method:"setStyles",arguments:arguments})},clear:function(){this.ne&&this.ne.push({method:"clear",arguments:arguments})},remove:function(){this.ne&&this.ne.push({method:"remove",arguments:arguments})}});var Ac=new qc(H.sa+"marker_red_sprite.png",new P(19,25),{anchor:new P(10,25),infoWindowAnchor:new P(10,0)}),Bc=new qc(H.sa+"marker_red_sprite.png",new P(20,11),{anchor:new P(6,11),imageOffset:new P(-19,-13)}); function W(a,b){ib.call(this);b=b||{};this.point=a;this.Vp=this.map=q;this.K={Da:b.offset||new P(0,0),ve:b.icon||Ac,Gk:Bc,title:b.title||"",label:q,iJ:b.baseZIndex||0,ef:p,Q5:t,LD:t,Yi:b.enableMassClear===t?t:p,Xb:t,SM:b.raiseOnDrag===p?p:t,$M:t,Gd:b.draggingCursor||H.Gd,rotation:b.rotation||0,left:b.left===p?p:t,right:b.right===p?p:t};b.icon&&!b.shadow&&(this.K.Gk=q);b.enableDragging&&(this.K.Xb=b.enableDragging);Ib(b.enableClicking)&&(this.K.ef=b.enableClicking);var c=this;K.load("marker",function(){c.kb()})} W.iu=mc.sk(-90)+1E6;W.GF=W.iu+1E6;z.lang.wa(W,ib,"Marker"); z.extend(W.prototype,{Vb:function(a){if(a instanceof qc||a instanceof rc)this.K.ve=a},Fo:function(){return this.K.ve},Xx:function(a){a instanceof qc&&(this.K.Gk=a)},getShadow:function(){return this.K.Gk},Hm:function(a){this.K.label=a||q},$C:function(){return this.K.label},Xb:function(){this.K.Xb=p},YB:function(){this.K.Xb=t},ka:x("point"),ua:function(a){a instanceof J&&(this.point=new J(a.lng,a.lat))},oi:function(a,b){this.K.LD=!!a;a&&(this.aG=b||0)},Dc:function(a){this.K.title=a+""},getTitle:function(){return this.K.title}, Ld:function(a){a instanceof P&&(this.K.Da=a)},cj:function(){return this.K.Da},Gm:ba("Vp"),op:function(a){this.K.rotation=a},NK:function(){return this.K.rotation}});function Cc(a){this.options=a||{};this.VY=this.options.paneName||"labelPane";this.zIndex=this.options.zIndex||0;this.$U=this.options.contextType||"2d"}Cc.prototype=new mc;Cc.prototype.initialize=function(a){this.M=a;var b=this.canvas=document.createElement("canvas"),c=this.canvas.getContext(this.$U);b.style.cssText="position:absolute;left:0;top:0;z-index:"+this.zIndex+";";Dc(this);Ec(c);a.getPanes()[this.VY].appendChild(b);var e=this;a.addEventListener("resize",function(){Dc(e);Ec(c);e.kb()});return this.canvas}; function Dc(a){var b=a.M.Eb(),a=a.canvas;a.width=b.width;a.height=b.height;a.style.width=a.width+"px";a.style.height=a.height+"px"}function Ec(a){var b=(window.devicePixelRatio||1)/(a.lU||a.L5||a.j4||a.k4||a.o4||a.lU||1),c=a.canvas.width,e=a.canvas.height;a.canvas.width=c*b;a.canvas.height=e*b;a.canvas.style.width=c+"px";a.canvas.style.height=e+"px";a.scale(b,b)}Cc.prototype.draw=function(){var a=this,b=arguments;clearTimeout(a.K_);a.K_=setTimeout(function(){a.kb.apply(a,b)},15)};fa=Cc.prototype; fa.kb=function(){var a=this.M;this.canvas.style.left=-a.offsetX+"px";this.canvas.style.top=-a.offsetY+"px";this.dispatchEvent("draw");this.options.update&&this.options.update.apply(this,arguments)};fa.Ta=x("canvas");fa.show=function(){this.canvas||this.M.Pa(this);this.canvas.style.display="block"};fa.aa=function(){this.canvas.style.display="none"};fa.sp=function(a){this.canvas.style.zIndex=a};fa.sk=x("zIndex");function Fc(a,b){oc.call(this,b);b=b||{};this.K.pg=b.fillOpacity?b.fillOpacity:0.65;this.K.fillColor=""==b.fillColor?"":b.fillColor?b.fillColor:"#fff";this.je(a);var c=this;K.load("poly",function(){c.kb()})}z.lang.wa(Fc,oc,"Polygon"); z.extend(Fc.prototype,{je:function(a,b){this.Un=oc.Jw(a).slice(0);var c=oc.Jw(a).slice(0);1<c.length&&c.push(new J(c[0].lng,c[0].lat));oc.prototype.je.call(this,c,b)},Jm:function(a,b){this.Un[a]&&(this.Un[a]=new J(b.lng,b.lat),this.la[a]=new J(b.lng,b.lat),0==a&&!this.la[0].Yb(this.la[this.la.length-1])&&(this.la[this.la.length-1]=new J(b.lng,b.lat)),this.uh())},Se:function(){var a=this.Un;0==a.length&&(a=this.la);return a}});function Gc(a,b){oc.call(this,b);this.gr(a);var c=this;K.load("poly",function(){c.kb()})}z.lang.wa(Gc,oc,"Polyline");function Hc(a,b,c){this.point=a;this.Ca=Math.abs(b);Fc.call(this,[],c)}Hc.gE=[0.01,1.0E-4,1.0E-5,4.0E-6];z.lang.wa(Hc,Fc,"Circle"); z.extend(Hc.prototype,{initialize:function(a){this.map=a;this.la=this.Iu(this.point,this.Ca);this.uh();return q},Db:x("point"),qf:function(a){a&&(this.point=a)},LK:x("Ca"),rf:function(a){this.Ca=Math.abs(a)},Iu:function(a,b){if(!a||!b||!this.map)return[];for(var c=[],e=b/6378800,f=Math.PI/180*a.lat,g=Math.PI/180*a.lng,i=0;360>i;i+=9){var k=Math.PI/180*i,m=Math.asin(Math.sin(f)*Math.cos(e)+Math.cos(f)*Math.sin(e)*Math.cos(k)),k=new J(((g-Math.atan2(Math.sin(k)*Math.sin(e)*Math.cos(f),Math.cos(e)-Math.sin(f)* Math.sin(m))+Math.PI)%(2*Math.PI)-Math.PI)*(180/Math.PI),m*(180/Math.PI));c.push(k)}e=c[0];c.push(new J(e.lng,e.lat));return c}});var Ic={};function Jc(a){this.map=a;this.nj=[];this.Wf=[];this.Bg=[];this.AU=300;this.nE=0;this.vg={};this.Ti={};this.wk=0;this.ED=p;this.pV={};this.En=this.fq(1);this.kg=this.fq(2);this.ql=this.fq(3);this.dg=this.fq(4);a.platform.appendChild(this.En);a.platform.appendChild(this.kg);a.platform.appendChild(this.ql);a.platform.appendChild(this.dg);var b=256*Math.pow(2,15),c=3*b,a=S.gb(new J(180,0)).lng,c=c-a,b=-3*b,e=S.gb(new J(-180,0)).lng;this.hA=a;this.iA=e;this.eA=c+(e-b);this.yH=a-e} D.Xe(function(a){var b=new Jc(a);b.xa();a.Ye=b}); z.extend(Jc.prototype,{xa:function(){var a=this,b=a.map;b.addEventListener("loadcode",function(){a.Wo()});b.addEventListener("addtilelayer",function(b){a.Ne(b)});b.addEventListener("removetilelayer",function(b){a.Vf(b)});b.addEventListener("setmaptype",function(b){a.Ag(b)});b.addEventListener("zoomstartcode",function(b){a.Lc(b)});b.addEventListener("setcustomstyles",function(b){a.ot(b.target);a.Tf(p)});b.addEventListener("initindoorlayer",function(b){a.AD(b)})},Wo:function(){var a=this;if(z.fa.na)try{document.execCommand("BackgroundImageCache", t,p)}catch(b){}this.loaded||a.fx();a.Tf();this.loaded||(this.loaded=p,K.load("tile",function(){a.iP()}))},AD:function(a){this.St=new Kc(this);this.St.Ne(new Lc(this.map,this.St,a.Ue))},fx:function(){for(var a=this.map.va().bf,b=0;b<a.length;b++){var c=new Mc;z.extend(c,a[b]);this.nj.push(c);c.xa(this.map,this.En)}this.ot()},fq:function(a){var b=O("div");b.style.position="absolute";b.style.overflow="visible";b.style.left=b.style.top="0";b.style.zIndex=a;return b},wf:function(){this.wk--;var a=this; this.ED&&(this.map.dispatchEvent(new Q("onfirsttileloaded")),this.ED=t);0==this.wk&&(this.Ci&&(clearTimeout(this.Ci),this.Ci=q),this.Ci=setTimeout(function(){if(a.wk==0){a.map.dispatchEvent(new Q("ontilesloaded"));a.ED=p}a.Ci=q},80))},lD:function(a,b){return"TILE-"+b.ea+"-"+a[0]+"-"+a[1]+"-"+a[2]},ax:function(a){var b=a.Jb;b&&Bb(b)&&b.parentNode.removeChild(b);delete this.vg[a.name];a.loaded||(Nc(a),a.Jb=q,a.sm=q)},VK:function(a,b,c){var e=this.map,f=e.va(),g=e.Va,i=e.ac,k=f.$b(g),m=this.BW(),n=m[0], o=m[1],s=m[2],v=m[3],w=m[4],c="undefined"!=typeof c?c:0,f=f.Id(),m=e.ea.replace(/^TANGRAM_/,"");for(this.Ce?this.Ce.length=0:this.Ce=[];n<s;n++)for(var y=o;y<v;y++){var A=n,B=y;this.Ce.push([A,B]);A=m+"_"+b+"_"+A+"_"+B+"_"+g;this.pV[A]=A}this.Ce.sort(function(a){return function(b,c){return 0.4*Math.abs(b[0]-a[0])+0.6*Math.abs(b[1]-a[1])-(0.4*Math.abs(c[0]-a[0])+0.6*Math.abs(c[1]-a[1]))}}([w[0]-1,w[1]-1]));i=[Math.round(-i.lng/k),Math.round(i.lat/k)];n=-e.offsetY+e.height/2;a.style.left=-e.offsetX+ e.width/2+"px";a.style.top=n+"px";this.Oe?this.Oe.length=0:this.Oe=[];n=0;for(e=a.childNodes.length;n<e;n++)y=a.childNodes[n],y.Dq=t,this.Oe.push(y);if(n=this.vm)for(var C in n)delete n[C];else this.vm={};this.Pe?this.Pe.length=0:this.Pe=[];n=0;for(e=this.Ce.length;n<e;n++){C=this.Ce[n][0];k=this.Ce[n][1];y=0;for(o=this.Oe.length;y<o;y++)if(s=this.Oe[y],s.id==m+"_"+b+"_"+C+"_"+k+"_"+g){s.Dq=p;this.vm[s.id]=s;break}}n=0;for(e=this.Oe.length;n<e;n++)s=this.Oe[n],s.Dq||this.Pe.push(s);this.YE=[];y=(f+ c)*this.map.R.devicePixelRatio;n=0;for(e=this.Ce.length;n<e;n++)C=this.Ce[n][0],k=this.Ce[n][1],v=C*f+i[0]-c/2,w=(-1-k)*f+i[1]-c/2,A=m+"_"+b+"_"+C+"_"+k+"_"+g,o=this.vm[A],s=q,o?(s=o.style,s.left=v+"px",s.top=w+"px",o.nn||this.YE.push([C,k,o])):(0<this.Pe.length?(o=this.Pe.shift(),o.getContext("2d").clearRect(-c/2,-c/2,y,y),s=o.style):(o=document.createElement("canvas"),s=o.style,s.position="absolute",s.width=f+c+"px",s.height=f+c+"px",this.mY()&&(s.WebkitTransform="scale(1.001)"),o.setAttribute("width", y),o.setAttribute("height",y),a.appendChild(o)),o.id=A,s.left=v+"px",s.top=w+"px",-1<A.indexOf("bg")&&(v="#F3F1EC",this.map.R.jU&&(v=this.map.R.jU),s.background=v?v:""),this.YE.push([C,k,o])),o.style.visibility="";n=0;for(e=this.Pe.length;n<e;n++)this.Pe[n].style.visibility="hidden";return this.YE},mY:function(){return/M040/i.test(navigator.userAgent)},BW:function(){var a=this.map,b=a.va(),c=b.$K(a.Va),e=a.ac,f=Math.ceil(e.lng/c),g=Math.ceil(e.lat/c),b=b.Id(),c=[f,g,(e.lng-f*c)/c*b,(e.lat-g*c)/c* b];return[c[0]-Math.ceil((a.width/2-c[2])/b),c[1]-Math.ceil((a.height/2-c[3])/b),c[0]+Math.ceil((a.width/2+c[2])/b),c[1]+Math.ceil((a.height/2+c[3])/b),c]},p_:function(a,b,c,e){var f=this;f.X1=b;var g=this.map.va(),i=f.lD(a,c),k=g.Id(),b=[a[0]*k+b[0],(-1-a[1])*k+b[1]],m=this.vg[i];if(this.map.va()!==ab&&this.map.va()!==Va){var n=this.Yv(a[0],a[2]).offsetX;b[0]+=n;b.q1=n}m&&m.Jb?(zb(m.Jb,b),e&&(e=new R(a[0],a[1]),g=this.map.R.xe?this.map.R.xe.style:"normal",e=c.getTilesUrl(e,a[2],g),m.loaded=t,Oc(m, e)),m.loaded?this.wf():Qc(m,function(){f.wf()})):(m=this.Ti[i])&&m.Jb?(c.Lb.insertBefore(m.Jb,c.Lb.lastChild),this.vg[i]=m,zb(m.Jb,b),e&&(e=new R(a[0],a[1]),g=this.map.R.xe?this.map.R.xe.style:"normal",e=c.getTilesUrl(e,a[2],g),m.loaded=t,Oc(m,e)),m.loaded?this.wf():Qc(m,function(){f.wf()})):(m=k*Math.pow(2,g.Yh()-a[2]),new J(a[0]*m,a[1]*m),e=new R(a[0],a[1]),g=this.map.R.xe?this.map.R.xe.style:"normal",e=c.getTilesUrl(e,a[2],g),m=new Rc(this,e,b,a,c),Qc(m,function(){f.wf()}),m.Dn(),this.vg[i]=m)}, wf:function(){this.wk--;var a=this;0==this.wk&&(this.Ci&&(clearTimeout(this.Ci),this.Ci=q),this.Ci=setTimeout(function(){if(a.wk==0){a.map.dispatchEvent(new Q("ontilesloaded"));if(wa){if(sa&&ta&&ua){var b=eb(),c=a.map.Eb();setTimeout(function(){Ta(5030,{load_script_time:ta-sa,load_tiles_time:b-ua,map_width:c.width,map_height:c.height,map_size:c.width*c.height})},1E4);D.Tp("cus.fire","time",{z_imgfirstloaded:b-ua})}wa=t}}a.Ci=q},80))},lD:function(a,b){return this.map.va()===Sa?"TILE-"+b.ea+"-"+this.map.ew+ "-"+a[0]+"-"+a[1]+"-"+a[2]:"TILE-"+b.ea+"-"+a[0]+"-"+a[1]+"-"+a[2]},ax:function(a){var b=a.Jb;b&&(Sc(b),Bb(b)&&b.parentNode.removeChild(b));delete this.vg[a.name];a.loaded||(Sc(b),Nc(a),a.Jb=q,a.sm=q)},Yv:function(a,b){for(var c=0,e=6*Math.pow(2,b-3),f=e/2-1,g=-e/2;a>f;)a-=e,c-=this.eA;for(;a<g;)a+=e,c+=this.eA;c=Math.round(c/Math.pow(2,18-b));return{offsetX:c,Tl:a}},EU:function(a){for(var b=a.lng;b>this.hA;)b-=this.yH;for(;b<this.iA;)b+=this.yH;a.lng=b;return a},FU:function(a,b){for(var c=256*Math.pow(2, 18-b),e=Math.floor(this.hA/c),f=Math.floor(this.iA/c),c=Math.floor(this.eA/c),g=[],i=0;i<a.length;i++){var k=a[i],m=k[0],k=k[1];if(m>=e){var m=m+c,n="id_"+m+"_"+k+"_"+b;a[n]||(a[n]=p,g.push([m,k]))}else m<=f&&(m-=c,n="id_"+m+"_"+k+"_"+b,a[n]||(a[n]=p,g.push([m,k])))}for(i=0;i<g.length;i++)a.push(g[i]);return a},Tf:function(a){if(!this.map.R.og){var b=this;if(b.map.va()==Sa)K.load("coordtrans",function(){b.map.Sb||(b.map.Sb=Sa.kk(b.map.Wg),b.map.ew=Sa.xK(b.map.Sb));b.AH()},p);else{if(a&&a)for(var c in this.Ti)delete this.Ti[c]; b.AH(a)}}},AH:function(a){var b=this.nj.concat(this.Wf),c=b.length,e=this.map,f=e.va(),g=e.ac,i=e.width,i=e.va().$b(e.Va)*i,i=this.bY(g.lng-i/2,g.lng+i/2);this.map.va()!==ab&&this.map.va()!==Va&&(g=this.EU(g));for(var k=0;k<c;k++){var m=b[k];if(m.jc&&e.Va<m.jc)break;if(m.Xv){var n=this.Lb=m.Lb;if(a){var o=n;if(o&&o.childNodes)for(var s=o.childNodes.length,v=s-1;0<=v;v--)s=o.childNodes[v],o.removeChild(s),s=q}if(this.map.Od()){this.kg.style.display="block";n.style.display="none";this.map.dispatchEvent(new Q("vectorchanged"), {isvector:p});continue}else n.style.display="block",this.kg.style.display="none",this.map.dispatchEvent(new Q("vectorchanged"),{isvector:t})}if(!m.p1&&!(m.kx&&!this.map.Od()||m.AL&&this.map.Od())){e=this.map;f=e.va();n=f.qk();s=e.Va;g=e.ac;f==Sa&&g.Yb(new J(0,0))&&(g=e.ac=n.ci(e.pe,e.Sb));var w=f.$b(s),n=f.$K(s),o=Math.ceil(g.lng/n),y=Math.ceil(g.lat/n),A=f.Id(),n=[o,y,(g.lng-o*n)/n*A,(g.lat-y*n)/n*A],y=i?1.5*(e.width/2):e.width/2,v=n[0]-Math.ceil((y-n[2])/A),o=n[1]-Math.ceil((e.height/2-n[3])/A), y=n[0]+Math.ceil((y+n[2])/A),B=0;f===Sa&&15==e.ja()&&(B=1);f=n[1]+Math.ceil((e.height/2+n[3])/A)+B;this.dJ=new J(g.lng,g.lat);var C=this.vg,A=-this.dJ.lng/w,B=this.dJ.lat/w,g=[Math.ceil(A),Math.ceil(B)],w=e.ja(),F;for(F in C){var E=C[F],G=E.info;(G[2]!=w||G[2]==w&&(v>G[0]||y<=G[0]||o>G[1]||f<=G[1]))&&this.ax(E)}C=-e.offsetX+e.width/2;E=-e.offsetY+e.height/2;m.Lb&&(m.Lb.style.left=Math.ceil(A+C)-g[0]+"px",m.Lb.style.top=Math.ceil(B+E)-g[1]+"px",m.Lb.style.WebkitTransform="translate3d(0,0,0)");A=[]; for(e.dB=[];v<y;v++)for(B=o;B<f;B++)A.push([v,B]),e.dB.push({x:v,y:B});this.map.va()!==ab&&this.map.va()!==Va&&(A=this.FU(A,s));A.sort(function(a){return function(b,c){return 0.4*Math.abs(b[0]-a[0])+0.6*Math.abs(b[1]-a[1])-(0.4*Math.abs(c[0]-a[0])+0.6*Math.abs(c[1]-a[1]))}}([n[0]-1,n[1]-1]));s=A.length;this.wk+=s;for(v=0;v<s;v++)this.p_([A[v][0],A[v][1],w],g,m,a)}}},bY:function(a,b){return a<this.iA||b>this.hA},Ne:function(a){var b=this,c=a.target;b.map.Od();c.Rm&&this.map.Ne(c.Rm);if(c.kx){for(a= 0;a<b.Bg.length;a++)if(b.Bg[a]==c)return;K.load("vector",function(){c.xa(b.map,b.kg);b.Bg.push(c)},p)}else{for(a=0;a<b.Wf.length;a++)if(b.Wf[a]==c)return;c.xa(this.map,this.ql);b.Wf.push(c)}},Vf:function(a){a=a.target;this.map.Od();a.Rm&&this.map.Vf(a.Rm);if(a.kx)for(var b=0,c=this.Bg.length;b<c;b++)a==this.Bg[b]&&this.Bg.splice(b,1);else{b=0;for(c=this.Wf.length;b<c;b++)a==this.Wf[b]&&this.Wf.splice(b,1)}a.remove()},Ag:function(){for(var a=this.nj,b=0,c=a.length;b<c;b++)a[b].remove();delete this.Lb; this.nj=[];this.Ti=this.vg={};this.fx();this.Tf()},Lc:function(){var a=this;a.vd&&z.U.aa(a.vd);setTimeout(function(){a.Tf();a.map.dispatchEvent(new Q("onzoomend"))},10)},E5:u(),ot:function(a){var b=this.map.va();if(!this.map.Od()&&(a?this.map.R.y_=a:a=this.map.R.y_,a))for(var c=q,c="2"==D.Rt?[D.url.proto+D.url.domain.main_domain_cdn.other[0]+"/"]:[D.url.proto+D.url.domain.main_domain_cdn.baidu[0]+"/",D.url.proto+D.url.domain.main_domain_cdn.baidu[1]+"/",D.url.proto+D.url.domain.main_domain_cdn.baidu[2]+ "/"],e=0,f;f=this.nj[e];e++)if(f.k_==p){b.m.pc=18;f.getTilesUrl=function(b,e){var f=b.x,f=this.map.Ye.Yv(f,e).Tl,m=b.y,n=Sb("normal"),o=1;this.map.bx()&&(o=2);n="customimage/tile?&x="+f+"&y="+m+"&z="+e+"&udt="+n+"&scale="+o+"&ak="+qa;n=a.styleStr?n+("&styles="+encodeURIComponent(a.styleStr)):n+("&customid="+a.style);return c[Math.abs(f+m)%c.length]+n};break}}});function Rc(a,b,c,e,f){this.sm=a;this.position=c;this.tu=[];this.name=a.lD(e,f);this.info=e;this.EI=f.Ns();e=O("img");Ab(e);e.qK=t;var g=e.style,a=a.map.va();g.position="absolute";g.border="none";g.width=a.Id()+"px";g.height=a.Id()+"px";g.left=c[0]+"px";g.top=c[1]+"px";g.maxWidth="none";this.Jb=e;this.src=b;Tc&&(this.Jb.style.opacity=0);var i=this;this.Jb.onload=function(){D.uY.WP();i.loaded=p;if(i.sm){var a=i.sm,b=a.Ti;if(!b[i.name]){a.nE++;b[i.name]=i}if(i.Jb&&!Bb(i.Jb)&&f.Lb){f.Lb.appendChild(i.Jb); if(z.fa.na<=6&&z.fa.na>0&&i.EI)i.Jb.style.cssText=i.Jb.style.cssText+(';filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+i.src+'",sizingMethod=scale);')}var c=a.nE-a.AU,e;for(e in b){if(c<=0)break;if(!a.vg[e]){b[e].sm=q;var g=b[e].Jb;if(g&&g.parentNode){g.parentNode.removeChild(g);Sc(g)}g=q;b[e].Jb=q;delete b[e];a.nE--;c--}}Tc&&new vb({Hc:20,duration:200,za:function(a){if(i.Jb&&i.Jb.style)i.Jb.style.opacity=a*1},finish:function(){i.Jb&&i.Jb.style&&delete i.Jb.style.opacity}});Nc(i)}}; this.Jb.onerror=function(){Nc(i);if(i.sm){var a=i.sm.map.va();if(a.m.AC){i.error=p;i.Jb.src=a.m.AC;i.Jb&&!Bb(i.Jb)&&f.Lb.appendChild(i.Jb)}}};e=q}function Qc(a,b){a.tu.push(b)}Rc.prototype.Dn=function(){this.Jb.src=0<z.fa.na&&6>=z.fa.na&&this.EI?H.sa+"blank.gif":""!==this.src&&this.Jb.src==this.src?this.src+"&t = "+Date.now():this.src};function Nc(a){for(var b=0;b<a.tu.length;b++)a.tu[b]();a.tu.length=0} function Sc(a){if(a){a.onload=a.onerror=q;var b=a.attributes,c,e,f;if(b){e=b.length;for(c=0;c<e;c+=1)f=b[c].name,$a(a[f])&&(a[f]=q)}if(b=a.children){e=b.length;for(c=0;c<e;c+=1)Sc(a.children[c])}}}function Oc(a,b){a.src=b;a.Dn()}var Tc=!z.fa.na||8<z.fa.na;function Mc(a){this.Ue=a||{};this.bV=this.Ue.copyright||q;this.Z_=this.Ue.transparentPng||t;this.Xv=this.Ue.baseLayer||t;this.zIndex=this.Ue.zIndex||0;this.ea=Mc.GR++}Mc.GR=0;z.lang.wa(Mc,z.lang.Ga,"TileLayer"); z.extend(Mc.prototype,{xa:function(a,b){this.Xv&&(this.zIndex=-100);this.map=a;if(!this.Lb){var c=O("div"),e=c.style;e.position="absolute";e.overflow="visible";e.zIndex=this.zIndex;e.left=Math.ceil(-a.offsetX+a.width/2)+"px";e.top=Math.ceil(-a.offsetY+a.height/2)+"px";b.appendChild(c);this.Lb=c}},remove:function(){this.Lb&&this.Lb.parentNode&&(this.Lb.innerHTML="",this.Lb.parentNode.removeChild(this.Lb));delete this.Lb},Ns:x("Z_"),getTilesUrl:function(a,b){if(this.map.va()!==ab&&this.map.va()!==Va)var c= this.map.Ye.Yv(a.x,b).Tl;var e="";this.Ue.tileUrlTemplate&&(e=this.Ue.tileUrlTemplate.replace(/\{X\}/,c),e=e.replace(/\{Y\}/,a.y),e=e.replace(/\{Z\}/,b));return e},bm:x("bV"),va:function(){return this.yb||Pa}});function Uc(a){Mc.call(this,a);this.m=a||{};this.AL=p;if(this.m.predictDate){if(1>this.m.predictDate.weekday||7<this.m.predictDate.weekday)this.m.predictDate=1;if(0>this.m.predictDate.hour||23<this.m.predictDate.hour)this.m.predictDate.hour=0}this.HT=D.url.proto+D.url.domain.traffic+"/traffic/"}Uc.prototype=new Mc;Uc.prototype.xa=function(a,b){Mc.prototype.xa.call(this,a,b);this.M=a};Uc.prototype.Ns=da(p); Uc.prototype.getTilesUrl=function(a,b){var c="";this.m.predictDate?c="HistoryService?day="+(this.m.predictDate.weekday-1)+"&hour="+this.m.predictDate.hour+"&t="+(new Date).getTime()+"&":(c="TrafficTileService?time="+(new Date).getTime()+"&",c+="label=web2D&v=016&");var c=this.HT+c+"level="+b+"&x="+a.x+"&y="+a.y,e=1;this.M.bx()&&(e=2);return(c+"&scaler="+e).replace(/-(\d+)/gi,"M$1")};var Vc=[D.url.proto+D.url.domain.TILES_YUN_HOST[0]+"/georender/gss",D.url.proto+D.url.domain.TILES_YUN_HOST[1]+"/georender/gss",D.url.proto+D.url.domain.TILES_YUN_HOST[2]+"/georender/gss",D.url.proto+D.url.domain.TILES_YUN_HOST[3]+"/georender/gss"],Wc=D.url.proto+D.url.domain.main_domain_nocdn.baidu+"/style/poi/rangestyle",Xc=100; function pb(a,b){Mc.call(this);var c=this;this.AL=p;try{document.createElement("canvas").getContext("2d")}catch(e){}Jb(a)?b=a||{}:(c.mn=a,b=b||{});b.geotableId&&(c.yf=b.geotableId);b.databoxId&&(c.mn=b.databoxId);var f=D.nd+"geosearch";c.$a={KM:b.pointDensity||Xc,HX:f+"/detail/",IX:f+"/v2/detail/",aJ:b.age||36E5,ht:b.q||"",J_:"png",E3:[5,5,5,5],qY:{backgroundColor:"#FFFFD5",borderColor:"#808080"},pB:b.ak||qa,UE:b.tags||"",filter:b.filter||"",zN:b.sortby||"",sD:b.hotspotName||"tile_md_"+(1E5*Math.random()).toFixed(0), iF:p};K.load("clayer",function(){c.Rd()})}pb.prototype=new Mc;pb.prototype.xa=function(a,b){Mc.prototype.xa.call(this,a,b);this.M=a}; pb.prototype.getTilesUrl=function(a,b){var c=a.x,e=a.y,f=this.$a,c=Vc[Math.abs(c+e)%Vc.length]+"/image?grids="+c+"_"+e+"_"+b+"&q="+f.ht+"&tags="+f.UE+"&filter="+f.filter+"&sortby="+f.zN+"&ak="+this.$a.pB+"&age="+f.aJ+"&page_size="+f.KM+"&format="+f.J_;f.iF||(f=(1E5*Math.random()).toFixed(0),c+="&timeStamp="+f);this.yf?c+="&geotable_id="+this.yf:this.mn&&(c+="&databox_id="+this.mn);return c};pb.prototype.enableUseCache=function(){this.$a.iF=p};pb.prototype.disableUseCache=function(){this.$a.iF=t}; pb.fT=/^point\(|\)$/ig;pb.gT=/\s+/;pb.iT=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;var Yc={};function Zc(a,b){this.jd=a;this.lP=18;this.m={iy:256,Jc:new S};z.extend(this.m,b||{})}var $c=[0,0,0,8,7,7,6,6,5,5,4,3,3,3,2,2,1,1,0,0,0,0],ad=[512,2048,4096,32768,65536,262144,1048576,4194304,8388608],bd=[0,0,0,3,5,5,7,7,9,9,10,12,12,12,15,15,17,17,19,19,19,19],cd=[0,0,0,256,256,512,256,512,256,512,256,256,512,1024,256,512,512,1024,512,1024,2048,4096]; Zc.prototype={getName:x("jd"),Id:function(a){return"na"===this.jd?cd[a]:this.m.iy},js:function(a){return"na"===this.jd?bd[a]:a},qk:function(){return this.m.Jc},$b:function(a){return Math.pow(2,this.lP-a)},cD:function(a){return"na"===this.jd?ad[$c[a]]:this.$b(a)*this.Id(a)}};var dd={drawPoly:function(a,b,c,e,f,g){var i=a[1];if(i)for(var a=a[6],k=0;k<i.length;k++){var m=i[k][0],n=f.hj(m,"polygon",c,g);if(n&&n.length)for(var o=i[k][1],s=0;s<o.length;s++){var v=o[s][1];f.Oc(v[0],c)&&(v["cache"+c]||(v["cache"+c]=f.ym(v[1],c,e,a)),v=v["cache"+c],f.M.Zn(b.canvas.id,v,{type:"polygon",Wb:m,style:n}),this.SV(b,v,n,c))}}},SV:function(a,b,c,e){c=c[0];if(!c.Wb||!(6<e&&(71013===c.Wb||71012===c.Wb||71011===c.Wb)||6===e&&(71011===c.Wb||71012===c.Wb)||5===e&&(71011===c.Wb||71013===c.Wb)|| 5>e&&(71012===c.Wb||71013===c.Wb))){a.fillStyle=c.Dw;a.beginPath();a.moveTo(b[0],b[1]);for(var e=2,f=b.length;e<f;e+=2)a.lineTo(b[e],b[e+1]);a.closePath();c.borderWidth&&(a.strokeStyle=c.jo,a.lineWidth=c.borderWidth/2,a.stroke());a.fill()}},drawGaoqingRoadBorder:function(a,b,c,e,f){var g=a[1];if(g)for(var a=a[6],i=0;i<g.length;i++){var k=g[i][0],m=f.hj(k,"polygon",c);if(m&&m.length&&m[0].borderWidth)for(var n=g[i][1],o=0;o<n.length;o++){var s=n[o][1];f.Oc(s[0],c)&&(s["cache"+c]||(s["cache"+c]=f.ym(s[1], c,e,a)),s=s["cache"+c],f.M.Zn(b.canvas.id,s,{type:"polygon",Wb:k,style:m}),this.UV(b,s,m))}}},drawGaoqingRoadFill:function(a,b,c,e,f){var g=a[1];if(g)for(var a=a[6],i=0;i<g.length;i++){var k=g[i][0],m=f.hj(k,"polygon",c);if(m&&m.length)for(var n=g[i][1],o=0;o<n.length;o++){var s=n[o][1];f.Oc(s[0],c)&&(s["cache"+c]||(s["cache"+c]=f.ym(s[1],c,e,a)),s=s["cache"+c],f.M.Zn(b.canvas.id,s,{type:"polygon",Wb:k,style:m}),this.VV(b,s,m))}}},UV:function(a,b,c){c=c[0];a.beginPath();a.moveTo(b[0],b[1]);for(var e= 2,f=b.length;e<f;e+=2)a.lineTo(b[e],b[e+1]);a.closePath();a.strokeStyle=c.jo;a.lineWidth=c.borderWidth/2;a.stroke()},VV:function(a,b,c){a.fillStyle=c[0].Dw;a.beginPath();a.moveTo(b[0],b[1]);for(var c=2,e=b.length;c<e;c+=2)a.lineTo(b[c],b[c+1]);a.closePath();a.fill()}};var ed={drawArrow:function(a,b,c,e,f,g){b.lineWidth=1.5;b.lineCap="butt";b.lineJoin="miter";b.strokeStyle="rgba(153,153,153,1)";var i=a[7];if(i){a=i[1];e=g.ym(i[0],c,e);for(i=0;i<a.length;i++)if(g.Oc(a[i],c)){var k=e[4*i],m=e[4*i+1],n=e[4*i+2],o=e[4*i+3],s=(k+n)/2,v=(m+o)/2,n=(k-n)/f,o=(m-o)/f,k=s+n/2,n=s-n/2,m=v+o/2,o=v-o/2;this.LV(b,k,m,n,o)}}},LV:function(a,b,c,e,f){a.beginPath();a.moveTo(b,c);a.lineTo(e,f);a.stroke();c=this.BU([b,c],[e,f]);b=c[0];c=c[1];a.beginPath();a.moveTo(b[0],b[1]);a.lineTo(c[0], c[1]);a.lineTo(e,f);a.closePath();a.stroke()},BU:function(a,b){var c=b[0]-a[0],e=b[1]-a[1],f=1.8*Math.sqrt(c*c+e*e),g=b[0]+4.8410665352790705*(c/f),f=b[1]+4.8410665352790705*(e/f),c=Math.atan2(e,c)+Math.PI;return[[g+4.8410665352790705*Math.cos(c-0.3),f+4.8410665352790705*Math.sin(c-0.3)],[g+4.8410665352790705*Math.cos(c+0.3),f+4.8410665352790705*Math.sin(c+0.3)]]}};var fd={drawHregion:function(a,b,c,e,f){var g=a[1];if(g)for(var a=a[6],i=0;i<g.length;i++){var k=g[i][0],m=f.hj(k,"polygon3d",c);if(m&&m.length)for(var n=g[i][1],o=0;o<n.length;o++){var s=n[o][2];if(f.Oc(s[0],c)){var v=s[2];s["cache"+c]||(s["cache"+c]=f.ym(s[1],c,e,a));s=s["cache"+c];f.M.Zn(b.canvas.id,s,{type:"polygon",Wb:k,style:m});this.TV(b,s,v,m)}}}},TV:function(a,b,c,e){e=e[0];if(!(c<e.filter)){a.fillStyle=e.kW;a.beginPath();a.moveTo(b[0],b[1]);for(var c=2,f=b.length;c<f;c+=2)a.lineTo(b[c], b[c+1]);a.closePath();e.borderWidth&&(a.strokeStyle=e.jo,a.lineWidth=e.borderWidth/2,a.stroke());a.fill()}}};var gd={parse:function(a,b,c,e,f){for(var g=e.M,i=g.ja(),k=Math.pow(2,18-i),m=g.Jc.ci(g.Db()),n=m.lng,o=m.lat,m=g.Eb(),s=m.width,v=m.height,m=[],w=0;w<a.length;w++){var y=[],A=a[w].H_;y.x=A[0];y.y=A[1];y.P5=A[2];for(var B=(A[0]*c*k-n)/k+s/2,C=(o-(A[1]+1)*c*k)/k+v/2,F=0;F<a[w].length;F++)a[w][F].GL?this.GM(a[w][F].GL,A,e,b,c,B,C,i,k,s,v,y):a[w][F].OX?this.GM(a[w][F].OX,A,e,b,c,B,C,i,k,s,v,y,p,window.I3):this.aZ(a[w][F].rY,A,e,b,c,B,C,i,k,s,v,y,f);m.push(y)}if(/collision=0/.test(location.search)){a= [];for(w=0;w<m.length;w++)for(F=0;F<m[w].length;F++)a.push(m[w][F])}else a=this.nZ(m,e.M.ja());g.RU();for(w=0;w<a.length;w++)if(c=a[w],!c.Is)if(F=[c.Rf,c.Sf,c.Rf,c.gi,c.fi,c.gi,c.fi,c.Sf,c.Rf,c.Sf],c.style&&g.Zn("poi",F,{type:"polygon",Wb:c.style.Wb,style:c.style}),"fixed"===c.type){F=t;c.ve&&(c.style&&4===c.direction)&&(F=p);if(c.ve)if(F){var E=this;this.Xr(b,c,e,F,function(a){for(var c=0;c<a.sf.length;c++)E.ZJ(b,a.sf[c].ae,a.sf[c].be,a.sf[c].text,a.style,e)})}else this.Xr(b,c,e);if(c.style&&!F)for(F= 0;F<c.sf.length;F++)this.ZJ(b,c.sf[F].ae,c.sf[F].be,c.sf[F].text,c.style,e)}else if("line"===c.type)for(F=0;F<c.oO.length;F++)f=c.oO[F],gd.OV(b,f.ae,f.be,f.eU,f.mO,f.width,f.height,c.style,e);return m},GM:function(a,b,c,e,f,g,i,k,m,n,o,s,v,w){if(a=a[1])for(b=0;b<a.length;b++){var y=a[b],A=y[0],B=c.hj(A,"point",k,w),A=c.hj(A,"pointText",k,w),y=y[1],C=q,F=100,E=0,G=0;B&&B[0]&&(B=B[0],C=B.ve,F=B.zoom||100);A=A&&A[0]?A[0]:q;for(B=0;B<y.length;B++){var N=y[B][4];if(N&&c.Oc(N[2],k)){var L=Math.round(N[0]/ 100)/m+g,M=f-Math.round(N[1]/100)/m+i;if(v||!(-50>L||-50>M||L>n+50||M>o+50)){var T=N[7]||"",ea={type:"fixed",uid:N[3]||"",name:T,Mx:N[4],Ds:q,sf:[],Ax:[L,M],style:A};if(C){var ca=window.iconSetInfo_high[C]||window.iconSetInfo_high["MapRes/"+C];if(!ca){var va=C.charCodeAt(0);48<=va&&57>=va&&(ca=window.iconSetInfo_high["_"+C])}ca&&(E=ca[2],G=ca[3],E=E/2*F/100,G=G/2*F/100,ea.Ds={ae:L-E/2,be:M-G/2,width:E,height:G},ea.ve=C)}if(A){N=N[5];"number"!==typeof N&&(N=0);var za=ca=0,va=(A.fontSize||12)/2,Ea= 0.2*va;e.font=gd.Iw(A,c);var T=T.split("\\"),ra=T.length;ea.direction=N;for(var Ua=0;Ua<ra;Ua++){var se=T[Ua],Pc=e.measureText(se).width;switch(N){case 3:za=M-va/2*ra-Ea*(ra-1)/2;ca=L-Pc-E/2;za=za+va*Ua+Ea*Ua;break;case 1:za=M-va/2*ra-Ea*(ra-1)/2;ca=L+E/2;za=za+va*Ua+Ea*Ua;break;case 2:za=M-G/2-va*ra-Ea*(ra-1)-Ea;ca=L-Pc/2;za=za+va*Ua+Ea*Ua;break;case 0:za=M+G/2+Ea/2;ca=L-Pc/2;za=za+va*Ua+Ea*Ua;break;case 4:za=M-va/2*ra-Ea*(ra-1)/2,ca=L-Pc/2,za=za+va*Ua+Ea*Ua}ea.sf.push({ae:ca,be:za,width:Pc,height:va, text:se})}}s.push(ea)}}}}},aZ:function(a,b,c,e,f,g,i,k,m,n,o,s,v){b=a[7].length;if((n=c.hj(a[0],"pointText",k))&&n.length){n=n[0];e.font=gd.Iw(n,c);for(var o=n.fontSize/2,w=a[1],y=a[2],A=y.split("").length,B=a[4],C=B.slice(0,2),F=2;F<B.length;F+=2)C[F]=C[F-2]+B[F],C[F+1]=C[F-1]+B[F+1];for(F=2;F<B.length;F+=2)0===F%(2*A)||1===F%(2*A)||(C[F]=C[F-2]+B[F]/v,C[F+1]=C[F-1]+B[F+1]/v);for(v=0;v<b;v++)if(c.Oc(a[7][v],k)){var F=[],E=l,G=l,N=l,L=l,M=y.split("");a[6][v]&&M.reverse();for(var B=2*v*A,B=C.slice(B, B+2*A),T=0;T<A;T++){var ea=a[5][A*v+T],ca=B[2*T]/100/m+g,va=f-B[2*T+1]/100/m+i,za=M[T],Ea=e.measureText(za).width;if(E===l)E=ca-Ea/2,G=va-o/2,N=E+Ea,L=G+o;else{var ra=ca-Ea/2,Ua=va-o/2;ra<E&&(E=ra);Ua<G&&(G=Ua);ra+Ea>N&&(N=ra+Ea);Ua+o>L&&(L=Ua+o)}F.push({mO:za,ae:ca,be:va,eU:ea,width:Ea,height:o})}s.push({type:"line",Mx:w,style:n,oO:F,Rf:E,Sf:G,fi:N,gi:L})}}},Xr:function(a,b,c,e,f){var g=b.ve;if("lanche"!==g)if(gd.dx[g])this.WJ(a,b,gd.dx[g],e,f);else{var c=c.EK(g),i=new Image;i.setAttribute("crossOrigin", "anonymous");var k=this;i.onload=function(){gd.dx[g]=this;k.WJ(a,b,this,e,f);i.onload=q};i.src=c}},WJ:function(a,b,c,e,f){var g=b.Ds,i=g.ae,k=g.be,m=q,n=q,o=p,s=b.style?b.style.Wb:q;if(b.style&&62203===s){for(var v=n=m=0;v<b.sf.length;v++)m<b.sf[v].width&&(m=b.sf[v].width),n+=20;m=Math.ceil(m)+10}e&&519===s&&(o=t);m!==q&&n!==q?this.RV(a,b,c,8,m,n):e&&o?(m=Math.ceil(b.sf[0].width)+6,this.KV(a,b,c,12,m,c.height/2)):a.drawImage(c,i,k,g.width,g.height);f&&f(b)},RV:function(a,b,c,e,f,g){var i=b.Ax[0]- f/2,b=b.Ax[1]-g/2;0<navigator.userAgent.indexOf("iPhone")&&(b+=1);var k=e/2;a.drawImage(c,0,0,e,e,i,b,k,k);a.drawImage(c,e,0,1,e,i+k,b,f-2*k,k);a.drawImage(c,c.width-e,0,e,e,i+f-k,b,k,k);a.drawImage(c,0,e,e,1,i,b+k,k,g-2*k);a.drawImage(c,e,e,1,1,i+k,b+k,f-2*k,g-2*k);a.drawImage(c,c.width-e,e,e,1,i+f-k,b+k,k,g-2*k);a.drawImage(c,0,c.height-e,e,e,i,b+g-k,k,k);a.drawImage(c,e,c.height-e,1,e,i+k,b+g-k,f-2*k,k);a.drawImage(c,c.width-e,c.height-e,e,e,i+f-k,b+g-k,k,k)},KV:function(a,b,c,e,f,g){var i=b.Ax[0]- f/2,b=b.Ax[1]-g/2,g=e/2;a.drawImage(c,0,0,e,c.height,i,b,g,c.height/2);a.drawImage(c,e,0,1,c.height,i+g,b,f-2*g,c.height/2);a.drawImage(c,c.width-e,0,e,c.height,i+f-g,b,g,c.height/2)},OV:function(a,b,c,e,f,g,i,k,m){a.font=gd.Iw(k,m);a.fillStyle=k.oK;g/=2;i/=2;a.save();a.translate(b,c);a.rotate(-e/180*Math.PI);0<k.Vw&&(a.lineWidth=k.Vw,a.strokeStyle=k.eL,a.strokeText(f,-g,-i));a.fillText(f,-g,-i);a.restore()},ZJ:function(a,b,c,e,f,g){a.font=gd.Iw(f,g);a.fillStyle=f.oK;0<f.Vw&&(a.lineWidth=f.Vw,a.strokeStyle= f.eL,a.strokeText(e,b,c));a.fillText(e,b,c)},Iw:function(a,b){var c=a.fontSize/2,e=10*a.fontWeight;return e=b.FD?e+" bold"+(" "+c+"px")+' arial, "PingFang SC", sans-serif':e+(" "+c+"px")+" arial, sans-serif"},nZ:function(a,b){var c=[],e=0;5===b&&(e=1);a.sort(function(a,b){return a.x*a.y<b.x*b.y?-1:1});for(var f=0,g=a.length;f<g;f++)for(var i=a[f],k=0,m=i.length;k<m;k++){var n=i[k],o=l,s=l,v=l,w=l;if("fixed"===n.type){var y=n.Ds,A=n.sf;y&&(o=y.ae,s=y.be,v=y.ae+y.width,w=y.be+y.height);for(y=0;y<A.length;y++){var B= A[y];o!==l?(B.ae<o&&(o=B.ae),B.be<s&&(s=B.be),B.ae+B.width>v&&(v=B.ae+B.width),B.be+B.height>w&&(w=B.be+B.height)):(o=B.ae,s=B.be,v=B.ae+B.width,w=B.be+B.height)}}else"line"===n.type?(o=n.Rf,s=n.Sf,v=n.fi,w=n.gi):"biaopai"===n.type&&(w=n.E4,o=w.ae,s=w.be,v=w.ae+w.width,w=w.be+w.height);o!==l&&(n.Rf=o,n.Sf=s,n.fi=v,n.gi=w,c.push(n))}c.sort(function(a,b){return b.Mx-a.Mx||b.Rf-a.Rf||b.Sf-a.Sf});f=0;for(g=c.length;f<g;f++){m=c[f];m.Is=t;m.gJ=[];for(k=f+1;k<g;k++)i=c[k],m.fi-e<i.Rf||(m.Rf>i.fi-e||m.gi- e<i.Sf||m.Sf>i.gi-e)||m.gJ.push(k)}f=0;for(g=c.length;f<g;f++)if(k=c[f],k.Is===t){e=k.gJ;k=0;for(m=e.length;k<m;k++)c[e[k]].Is=p}return c},dx:{}};var hd=["round","butt","square"],id=["miter","round","bevel"],jd={daojiao:[{stroke:"#FF6600",Cb:1,Ab:"round",Bb:"round",sd:[4,3]}],daojiao_bai:[{stroke:"#f5f3f0",Cb:1,Ab:"round",Bb:"round",sd:[4,3]}],junhuoxian:[{stroke:"#DB7093",Cb:1,Ab:"round",Bb:"round",sd:[4,3]}],lundu:[{stroke:"#5c91c5",Cb:1,Ab:"round",Bb:"round",sd:[10,11]}],shengjie:[{stroke:"#737373",Cb:1,Ab:"round",Bb:"round",sd:[6,3]}],weidingguojie:[{stroke:"#aea08a",Cb:1,Ab:"round",Bb:"round",sd:[4,3]}],weidingguojie_guowai:[{stroke:"#a29e96", Cb:2,Ab:"round",Bb:"round",sd:[4,3]}],weidingguojie_guonei:[{stroke:"#b5a37c",Cb:2,Ab:"round",Bb:"round",sd:[4,3]}]},kd={}; function ld(a,b){if("tielu"===a||"tielu_0"===a){if("off"===window.La[b].bmapRailwayVisibility)return[];var c="#ffffff",e="#949494";window.La[b].bmapRailwayStrokeColor&&(c=window.La[b].bmapRailwayStrokeColor);window.La[b].bmapRailwayFillColor&&(e=window.La[b].bmapRailwayFillColor);if(4<=b&&9>=b||10<=b&&16>=b)return[{stroke:c,Cb:1.5,Ab:"butt",Bb:"round",sd:[10,11]},{stroke:e,Cb:2,Ab:"round",Bb:"round"}];if(17<=b&&18>=b)return[{stroke:c,Cb:2.5,Ab:"butt",Bb:"round",sd:[15,16]},{stroke:e,Cb:5,Ab:"round", Bb:"round"}];if(19<=b&&20>=b)return[{stroke:c,Cb:4.5,Ab:"butt",Bb:"round",sd:[25,26]},{stroke:e,Cb:5,Ab:"round",Bb:"round"}]}else if(0===a.indexOf("ditie_zj")){if(12<=b&&16>=b)return[{stroke:"#868686",Cb:1,Ab:"round",Bb:"round",sd:[7,4]}];if(17<=b&&18>=b||19<=b&&20>=b)return[{stroke:"#6e6e6e",Cb:1,Ab:"round",Bb:"round",sd:[7,4]}]}else if(/^tongdaomian/.test(a)){if(17===b)return[{stroke:"#e5e5e5",Cb:4,Ab:"square",Bb:"round"},{stroke:"#a8a8a8",Cb:6,Ab:"square",Bb:"round"}];if(18===b)return[{stroke:"#e5e5e5", Cb:6,Ab:"square",Bb:"round"},{stroke:"#a8a8a8",Cb:8,Ab:"square",Bb:"round"}];if(19<=b&&21>=b)return[{stroke:"#e5e5e5",Cb:8,Ab:"square",Bb:"round"},{stroke:"#a8a8a8",Cb:10,Ab:"square",Bb:"round"}]}else if(/^jietizhongduan|^dixiatongdaojieti/.test(a)){if(17===b)return[{stroke:"#e5e5e5",Cb:4,Ab:"butt",Bb:"round",sd:[2,1]},{stroke:"#bebebe",Cb:6,Ab:"butt",Bb:"round"}];if(18===b)return[{stroke:"#e5e5e5",Cb:6,Ab:"butt",Bb:"round",sd:[3,1]},{stroke:"#bebebe",Cb:8,Ab:"butt",Bb:"round"}];if(19<=b&&21>=b)return[{stroke:"#e5e5e5", Cb:8,Ab:"butt",Bb:"round",sd:[4,2]},{stroke:"#bebebe",Cb:10,Ab:"butt",Bb:"round"}]}else if(/^guojietianqiao/.test(a))return 18===b?[{stroke:"#ffffff",Cb:6,Ab:"butt",Bb:"round",sd:[4,2]},{stroke:"#bebebe",Cb:8,Ab:"butt",Bb:"round"}]:[{stroke:"#ffffff",Cb:8,Ab:"butt",Bb:"round",sd:[4,2]},{stroke:"#bebebe",Cb:10,Ab:"butt",Bb:"round"}];return jd[a]} var md={drawLink:function(a,b,c,e,f){var g=a[1];g&&(a=a[6],this.XN(g,c,e,b,a,f,p),this.XN(g,c,e,b,a,f,t))},XN:function(a,b,c,e,f,g,i){for(var k=0;k<a.length;k++){var m=a[k][0],n=g.hj(m,"line",b);if(n&&n.length&&(!i||n[0].borderWidth))if(!n[0].Ao||ld(n[0].Ao,b))for(var o=a[k][1],s=0;s<o.length;s++){var v=o[s][3];g.Oc(v[0],b)&&(v["cache"+b]||(v["cache"+b]=g.ym(v[1],b,c,f)),v=v["cache"+b],g.M.Zn(e.canvas.id,v,{type:"polyline",Wb:m,style:n}),this.PV(e,v,n,i,b))}}},drawSingleTexture:function(a,b,c,e,f){var g= a[1];if(g)for(var a=a[6],i=0;i<g.length;i++){var k=f.hj(g[i][0],"line",c);if(k&&k.length)for(var m=g[i][1],n=0;n<m.length;n++){var o=m[n][11];if(f.Oc(o[0],c)){var s;o["cache"+c]||(o["cache"+c]=f.ym(o[1],c,e,a));s=o["cache"+c];o=o[3];o*=Math.pow(2,c-f.w0[c].Mc);this.QV(b,s,k,o,f)}}}},QV:function(a,b,c,e,f){var g=c[0].Ao,i=this;if(kd[g])i.Xr(b,e,a,kd[g]);else{var c=f.EK(g),k=new Image;k.onload=function(){kd[g]=k;i.Xr(b,e,a,k);k.onload=q};k.src=c}},Xr:function(a,b,c,e){var f=[a[0],a[1]],g=[a[2],a[3]], a=g[0]-f[0],g=g[1]-f[1],f=[f[0]+a/2,f[1]+g/2],i=Math.sqrt(a*a+g*g),b=b/10,a=Math.atan2(g,a);c.save();c.translate(f[0],f[1]);c.rotate(Math.PI/2+a);c.drawImage(e,-b/2,-i/2,b,i);c.restore()},PV:function(a,b,c,e,f){c=c[0];if(!e&&c.Ao&&ld(c.Ao,f))this.WV(a,b,c,ld(c.Ao,f));else{a.beginPath();a.moveTo(b[0],b[1]);for(var f=2,g=b.length;f<g;f+=2)a.lineTo(b[f],b[f+1]);c.borderWidth&&e?(a.strokeStyle=c.jo,a.lineCap=hd[c.uU],a.lineJoin=id[1],a.lineWidth=c.borderWidth/2,a.stroke()):e||(a.strokeStyle=c.Dw,a.lineCap= hd[c.jW],a.lineJoin=id[1],a.lineWidth=c.kK/2,a.stroke())}},WV:function(a,b,c,e){if(c=e[1]){a.strokeStyle=c.stroke;a.lineCap=c.Ab;a.lineJoin=c.Bb;a.lineWidth=c.Cb;a.beginPath();a.moveTo(b[0],b[1]);for(var c=2,f=b.length;c<f;c+=2)a.lineTo(b[c],b[c+1]);a.stroke()}if(e=e[0])if(e.sd)this.NV(a,b,e);else{a.strokeStyle=e.stroke;a.lineCap=e.Ab;a.lineJoin=e.Bb;a.lineWidth=e.Cb;a.beginPath();a.moveTo(b[0],b[1]);c=2;for(f=b.length;c<f;c+=2)a.lineTo(b[c],b[c+1]);a.stroke()}},NV:function(a,b,c){a.strokeStyle=c.stroke; a.lineCap=c.Ab;a.lineJoin=c.Bb;a.lineWidth=c.Cb;var e=p,c=c.sd[0];a.beginPath();for(var f=0;f<b.length-2;f+=2){var g=b[f],i=b[f+1],k=b[f+2]-g,m=b[f+3]-i,n=0!==k?m/k:0<m?1E15:-1E15,m=Math.sqrt(k*k+m*m),o=c;for(a.moveTo(g,i);0.1<=m;){o>m&&(o=m);var s=Math.sqrt(o*o/(1+n*n));0>k&&(s=-s);g+=s;i+=n*s;a[e?"lineTo":"moveTo"](g,i);m-=o;e=!e}}a.stroke()}};var nd=3,od=4,pd=7,qd=8,rd=15,sd=16,td={},ud={},vd={},wd,xd={3:{start:3,Mc:3},4:{start:4,Mc:5},5:{start:4,Mc:5},6:{start:6,Mc:7},7:{start:6,Mc:7},8:{start:8,Mc:9},9:{start:8,Mc:9},10:{start:10,Mc:10},11:{start:11,Mc:12},12:{start:11,Mc:12},13:{start:11,Mc:12},14:{start:14,Mc:15},15:{start:14,Mc:15},16:{start:16,Mc:17},17:{start:16,Mc:17},18:{start:18,Mc:19},19:{start:18,Mc:19},20:{start:18,Mc:19},21:{start:18,Mc:19}};function yd(a){this.M=a;this.Vc=a.R.devicePixelRatio;this.w0=xd} yd.prototype={fC:function(a,b,c,e,f,g,i,k,m){this.M.DN={};var n=this;m||(m=0);if(!(z.pm(window.rh)?window.Np:window.Xt[f])&&100>m)setTimeout(function(){n.fC(a,b,c,e,f,g,i,k,m+1)},100);else{wd||(wd=k);var o=b.getContext("2d"),s=b.parentNode;s.removeChild(b);o.clearRect(0,0,g,g);s.appendChild(b);s=this.Vc;1<s&&!b._scale&&(o.scale(s,s),b._scale=p);o.fillStyle=this.FM("#F5F3F0");window.La[f].bmapLandColor&&(o.fillStyle=this.FM(window.La[f].bmapLandColor));s=b.style.width;b.style.width="0px";b.style.width= s;o.fillRect(0,0,g,g);if(a[0])for(s=0;s<a[0].length;s++){var v=a[0][s];v[0]===pd&&dd.drawPoly(v,o,f,g,this)}17<=this.M.ja()?(n.YJ(a,o,f,g,i,c,e),b.nn=p):setTimeout(function(){if(!b.CG){n.YJ(a,o,f,g,i,c,e);b.nn=p}},1)}},YJ:function(a,b,c,e){if(a[0])for(var f=0;f<a[0].length;f++){var g=a[0][f],i=g[0];i===od?md.drawLink(g,b,c,e,this):i===sd?md.drawLink(g,b,c,e,this):i===rd?(dd.drawGaoqingRoadBorder(g,b,c,e,this),dd.drawGaoqingRoadFill(g,b,c,e,this)):18===i?"off"!==window.La[c].bmapRoadarrowVisibility&& ed.drawArrow(g,b,c,e,Math.pow(2,c-xd[c].Mc),this):i===qd?fd.drawHregion(g,b,c,e,this):19===i&&md.drawSingleTexture(g,b,c,e,this)}},XJ:function(a,b,c,e,f,g,i){var k=this;i||(i=0);!(z.pm(window.rh)?window.Np:window.Xt[g])&&100>i?setTimeout(function(){k.XJ(a,b,c,e,f,g,i+1)},100):(wd||(wd=b),a.hZ=gd.parse(a,c,e,this,f))},hj:function(a,b,c,e){var f=a+"-"+b+"-"+c;if(e)return td[f]||(td[f]=this.rg(a,b,c,e)),td[f];this.M.DN[f]=this.rg(a,b,c);return this.M.DN[f]},rg:function(a,b,c,e){var f;f=e||window.bmap_baseFs; var e=z.pm(window.rh)?window.Np:window.Xt[c],g=f[2];if("arrow"===b)return this.XY(g[2]);switch(b){case "point":g=g[0];e=e[0]||{};break;case "pointText":g=g[1];e=e[1]||{};break;case "line":g=g[3];e=e[3]||{};break;case "polygon":g=g[4];e=e[4]||{};break;case "polygon3d":g=g[5],e=e[5]||{}}var i=[],c=f[1][c-1][0][a];if(!c)return i;for(f=0;f<c.length;f++){var k=e[c[f]]||g[c[f]];if(k){switch(b){case "polygon":k=this.fZ(k,a);break;case "line":k=this.bZ(k,a);break;case "pointText":k=this.dZ(k,a);break;case "point":k= this.cZ(k,a);break;case "polygon3d":k=this.eZ(k,a)}k.l5=c[f];i[i.length]=k}}return i},dZ:function(a,b){return{Wb:b,oK:this.yg(a[0]),eL:this.yg(a[1]),O1:this.yg(a[2]),fontSize:a[3],Vw:a[4],fontWeight:a[5],fontStyle:a[6],wV:a[7]}},cZ:function(a,b){return{Wb:b,Mx:a[0],C5:a[1],ve:a[2],KX:a[3],m4:a[4],wV:a[5],zoom:a[6]}},bZ:function(a,b){return{Wb:b,jo:this.yg(a[0]),Dw:this.yg(a[1]),borderWidth:a[2],kK:a[3],uU:a[4],jW:a[5],w3:a[6],x3:a[7],y3:a[8],P3:a[9],Q3:a[10],vU:a[11],Ao:a[12],wU:a[13],y2:a[14],O3:a[15], u3:a[16],l4:a[17],Q4:a[18]}},fZ:function(a,b){return{Wb:b,Dw:this.yg(a[0]),jo:this.yg(a[1]),borderWidth:a[2],vU:a[3],wU:a[4],K5:a[5],t3:a[6],p5:a[7],q5:this.yg(a[8])}},eZ:function(a,b){return{Wb:b,filter:a[0],TM:a[1],v3:a[2],borderWidth:a[3],jo:this.yg(a[4]),kW:this.yg(a[5]),x2:this.yg(a[6]),C4:a[7]}},XY:function(a){for(var b in a)return a=a[b],{color:this.yg(a[0]),KX:a[1],ve:a[2]}},yg:function(a){var b=a;if(vd[b])return vd[b];a>>>=0;vd[b]="rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24& 255)/255+")";return vd[b]},FM:function(a){a=a.replace("#","");6===a.length&&(a+="ff");for(var b="rgba(",c=0;8>c;c+=2)b=6>c?b+(parseInt(a.slice(c,c+2),16)+","):b+(parseInt(a.slice(c,c+2),16)/255+")");return b},Oc:function(a,b){var c;ud[a]||(c=a.toString(2),8>c.length&&(c=Array(8-c.length+1).join("0")+c),ud[a]=c);c=ud[a];return"1"===c[b-xd[b].start]},ym:function(a,b,c){var e=[],b=Math.pow(2,b-xd[b].Mc)/100,f=a[0]*b,g=a[1]*b;e[e.length]=f;e[e.length]=c-g;for(var i=2;i<a.length;i+=2)f+=a[i]*b,g+=a[i+ 1]*b,e[e.length]=f,e[e.length]=c-g;return e},EK:function(a){var b=a.length%wd.length,c=this.NW();return wd[b]+a+".png?v="+c.kF+"&udt="+c.fF},NW:function(){if(this.vD)return this.vD;var a="undefined"!==typeof MSV?MSV.e4:{};return this.vD={kF:a.version?a.version:"001",fF:a.$_?a.$_:"20150621"}}};Q=z.lang.cu;nd=3;od=4;pd=7;qd=8;rd=15;sd=16; function Lc(a,b,c){c=c||{};this.M=a;this.Gv=b;this.Vc=b.TM;this.$a={I_:"na",zIndex:0,JN:c.tileUrls||{http:["http://online0.map.bdimg.com/pvd/?qt=vtile","http://online1.map.bdimg.com/pvd/?qt=vtile","http://online2.map.bdimg.com/pvd/?qt=vtile","http://online3.map.bdimg.com/pvd/?qt=vtile","http://online4.map.bdimg.com/pvd/?qt=vtile"],https:["https://ss0.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile","https://ss1.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile","https://ss2.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile", "https://ss3.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile","https://ss0.bdstatic.com/8bo_dTSlQ1gBo1vgoIiO_jowehsv/pvd/?qt=vtile"]},uD:c.iconUrls||["https://ss0.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/sty/map_icons2x/","https://ss1.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/sty/map_icons2x/"],LE:p};this.aB="";this.dS={};var c=c.urlOpts||{styles:"pl",extdata:1,textimg:0,mesh3d:0,limit:30},e;for(e in c)c.hasOwnProperty(e)&&(this.aB=this.aB+"&"+e+"="+c[e]);this.Xg={};this.Ir=[];this.Os=0; this.ix=t;this.dx={};a=this.$a.I_;Yc[a]?a=Yc[a]:(b=new Zc(a,l),a=Yc[a]=b);this.Cd=a;this.M.Cd=this.Cd}window.VectorIndoorTileLayer="VectorIndoorTileLayer";fa=Lc.prototype; fa.xa=function(){var a=this.M,b=a.Ye;if(!this.Vn){var c=b.fq(this.$a.zIndex);c.style.WebkitTransform="translate3d(0px, 0px, 0)";this.Vn=c}b.dg.appendChild(this.Vn);b.J3=c;if(this.$a.LE){zd(this);var e=this;a.addEventListener("checkvectorclick",function(a){var b;a:{b=a.offsetX;var c=a.offsetY,k=e.Ir.hZ;if(k)for(var m=0;m<k.length;m++)for(var n=k[m],o=0;o<n.length;o++)if(a=n[o],!a.Is&&a.Ds&&b>a.Rf&&b<a.fi&&c>a.Sf&&c<a.gi){b=a.Ds;b={type:9,name:a.name,uid:a.uid,point:{x:b.ae+b.width/2,y:b.be+6}};break a}b= q}b&&(a=new Q("onvectorclick"),a.F3=b,a.kf="base",this.dispatchEvent(a))})}};function zd(a){var b=a.M,c=b.Ye,e=a.Vc,f=b.Eb(),g=f.width,f=f.height,i=O("canvas");i.style.cssText="position: absolute;left:0;top:0;width:"+g+"px;height:"+f+"px;z-index:2;";i.width=g*e;i.height=f*e;a.mx=i;a.To=i.getContext("2d");a.To.scale(e,e);a.To.textBaseline="top";c.dg.appendChild(i);b.NR=i}fa.sX=x("Cd"); fa.update=function(a,b){b=b||{};this.hF=b.hF;b.$l&&(this.a0=b.$l);if(this.$a.LE&&(b.Rl&&this.Rl(),b.q_)){var c=this.Vc,e=this.M.Eb(),f=e.width,e=e.height,g=this.mx,i=g.style;i.width=f+"px";i.height=e+"px";g.width=f*c;g.height=e*c;this.To.scale(c,c);this.To.textBaseline="top"}if(b.F5){c=this.Vn;f=0;for(e=c.childNodes.length;f<e;f++)c.childNodes[f].nn=t}this.tw=a;this.Wo(a)}; fa.Wo=function(a){this.Ir=[];var b=this.M,c=b.ja(),e=b.Jc.ci(b.pe),f=this.Cd.$b(c),e=[Math.round(-e.lng/f),Math.round(e.lat/f)],f=this.Cd.Id(c),g=b.ea.replace(/^TANGRAM_/,""),i=this.Cd.js(c),b=this.M,k=-b.offsetY+b.height/2,m=this.Vn;m.style.left=-b.offsetX+b.width/2+"px";m.style.top=k+"px";this.Oe?this.Oe.length=0:this.Oe=[];b=0;for(k=m.childNodes.length;b<k;b++){var n=m.childNodes[b];n.Dq=t;this.Oe.push(n)}if(b=this.vm)for(var o in b)delete b[o];else this.vm={};this.Pe?this.Pe.length=0:this.Pe= [];b=0;for(k=a.length;b<k;b++){var n=a[b][0],s=a[b][1];o=0;for(var v=this.Oe.length;o<v;o++){var w=this.Oe[o];if(w.id===g+"_"+n+"_"+s+"_"+i+"_"+c){w.Dq=p;this.vm[w.id]=w;break}}}b=0;for(k=this.Oe.length;b<k;b++)w=this.Oe[b],w.Dq||(w.eB=q,delete w.eB,w.nn=t,this.Pe.push(w));o=[];v=f*this.Vc;b=0;for(k=a.length;b<k;b++){var n=a[b][0],s=a[b][1],w=n*f+e[0],y=(-1-s)*f+e[1],A=g+"_"+n+"_"+s+"_"+i+"_"+c,B=this.vm[A],C=q;if(B)C=B.style,C.left=w+"px",C.top=y+"px",C.width=f+"px",C.height=f+"px",B.nn?B.XE&&B.XE&& this.Ir.push(B.XE):(B.CG=p,B.eB=q,delete B.eB,o.push([n,s,B]));else{if(0<this.Pe.length){var B=this.Pe.shift(),F=B.getContext("2d");B.getAttribute("width")!==v&&(B._scale=t);B.setAttribute("width",v);B.setAttribute("height",v);C=B.style;C.width=f+"px";C.height=f+"px";F.clearRect(0,0,v,v)}else B=document.createElement("canvas"),C=B.style,C.position="absolute",this.$a.backgroundColor&&(C.background=this.$a.backgroundColor),C.width=f+"px",C.height=f+"px",B.setAttribute("width",v),B.setAttribute("height", v),m.appendChild(B);B.id=A;C.left=w+"px";C.top=y+"px";o.push([n,s,B])}B.style.visibility=""}b=0;for(k=this.Pe.length;b<k;b++)this.Pe[b].style.visibility="hidden";if(0===o.length){Ad(this);a=this.M.ea.replace(/^TANGRAM_/,"");c=this.M.ja();e=this.Cd.js(c);f={};for(g=0;g<this.tw.length;g++)i=this.tw[g],i=a+"_"+i[0]+"_"+i[1]+"_"+e+"_"+c,this.Xg[i]&&(f[i]=this.Xg[i],this.hF&&this.Gv.gC.fC(this.Xg[i].n0,this.Xg[i].G_,this.Xg[i].Tl,this.Xg[i].Em,this.Xg[i].VD,this.Cd.Id(this.Xg[i].VD),this.Cd.cD(this.Xg[i].VD), this.$a.uD));this.Xg=f}else{this.Os=o.length;this.ix=t;c=this.Cd.js(this.M.ja());for(e=0;e<a.length;e++)a[e][3]=c;for(e=0;e<o.length;e++)a=o[e][2],f=o[e][0],g=o[e][1],o[e][3]=c,a.nn=t,a.CG=t,Bd(this,f,g,c,a)}}; function Bd(a,b,c,e,f){var g=b+"_"+c+"_"+e,i=a.dS;if(i[g]){if("loading"===i[g].status)return}else i[g]={status:"init",aN:0};var k=a,m=k.M,n=[],n="0"===D.Rt?k.$a.JN.http:k.$a.JN.https,o=Math.abs(b+c)%n.length,s="x="+b+"&y="+c+"&z="+e,v=Cd(a.Gv),w=v.kF,v=v.fF,y="_"+(0>b?"_":"")+(0>c?"$":"")+parseInt(Math.abs(b)+""+Math.abs(c)+""+e,10).toString(36),s=s+a.aB+"v="+w+"&udt="+v+"&fn=window."+y,w=n[o]+"&"+s,w=n[o]+"&param="+window.encodeURIComponent(Lb(s));window[y]=function(a){clearTimeout(i[g].Lk);i[g]= q;if(a){var n=m.ja(),o;a:{for(o=0;o<k.tw.length;o++){var s=k.tw[o];if(s[0]===b&&s[1]===c&&s[3]===e){o=p;break a}}o=t}if(o!==t){o=new Q("updateindoor");o.IndoorCanvas=[];o.IndoorCanvas.push({canvasDom:f,data:a,canvasID:f.id,ratio:k.Vc});m.dispatchEvent(o);if(m.R.gk){if(k.Xg[f.id]={n0:a,G_:f,Tl:b,Em:c,VD:n},k.Gv.gC.fC(a,f,b,c,n,k.Cd.Id(n),k.Cd.cD(n),k.$a.uD),k.$a.LE){n=[];n.H_=[b,c,e];if(a[0])for(o=0;o<a[0].length;o++)a[0][o][0]===nd&&n.push({GL:a[0][o]});if(a[2])for(o=0;o<a[2].length;o++)n.push({rY:a[2][o]}); f.XE=n;k.Ir.push(n);k.ix===t&&k.Os--;(0===k.Os||k.ix===p)&&Ad(k)}}else k.Os--,(0===k.Os||k.ix===p)&&Ad(k);delete window[y]}}};pa(w);i[g].status="loading";k=a;i[g].Lk=setTimeout(function(){3>i[g].aN?(i[g].aN++,i[g].status="init",Bd(k,b,c,e,f)):i[g]=q},4E3)} function Ad(a){if(a.mx){var b=a.M;a.mx.style.left=-b.offsetX+"px";a.mx.style.top=-b.offsetY+"px";var c=new Q("updateindoorlabel");c.labelCanvasDom=b.NR;b.dispatchEvent(c);if(b.R.gk){a.Rl();var c=a.Cd,e=b.ja(),f=c.js(b.ja());a.Gv.gC.XJ(a.Ir,a.$a.uD,a.To,c.Id(e),Math.pow(2,e-f),e);"moving"!==a.a0&&b.dispatchEvent(new Q("ontilesloaded"))}}}fa.Rl=function(){var a=this.M.Eb(),b=this.Vc;this.To.clearRect(0,0,a.width*b,a.height*b)};fa.remove=function(){var a=this.M.Ye;this.Vn&&a.dg.removeChild(this.Vn)};function Kc(a){this.M=a.map;this.bf=[];this.qr={};this.TM=this.M.R.devicePixelRatio;this.gC=new yd(this.M);this.xa()}window.VectorIndoorTileMgr="VectorIndoorTileMgr";fa=Kc.prototype; fa.xa=function(){var a=this,b=this.M;b.addEventListener("addtilelayer",function(b){a.Ne(b.target)});b.addEventListener("removetilelayer",function(b){a.Vf(b.target)});setTimeout(function(){b.addEventListener("onmoveend",function(b){"centerAndZoom"!==b.lz&&a.update({$l:"moveend"})});b.addEventListener("onmoving",function(){a.update({$l:"moving"})});b.addEventListener("onzoomend",function(b){"centerAndZoom"!==b.lz&&a.update({Rl:p,$l:"zoomend"})});b.addEventListener("centerandzoom",function(){a.update({Rl:p, $l:"centerandzoom"})});b.addEventListener("onupdatestyles",function(){a.update({Rl:p,hF:p,$l:"updatestyles"});a.M.qf(a.M.Db());setTimeout(function(){a.M.dispatchEvent(new Q("onvectordrawend"))},10)});b.addEventListener("onmaptypechange",function(b){b.yb===Pa&&a.update({Rl:p,$l:"maptypechange"})})},1);b.addEventListener("indoor_data_refresh",u());b.addEventListener("onresize",function(){a.update({q_:p})});a.update()}; fa.Ne=function(a){if(a instanceof Lc){for(var b=0;b<this.bf.length;b++)if(this.bf[b]===a)return;this.bf.push(a);a.xa();this.M.loaded&&this.update()}};fa.Vf=function(a){if(a instanceof Lc){for(var b=0;b<this.bf.length;b++)if(this.bf[b]===a){this.bf.splice(b,1);break}a.remove()}}; fa.VK=function(a){var b=a.getName();if(this.qr[b])return this.qr[b];var c=this.M,e=c.ja(),f=c.ac,g=a.cD(e);c.ea.replace(/^TANGRAM_/,"");var i=Math.ceil(f.lng/g),k=Math.ceil(f.lat/g),a=a.Id(e),m=[i,k,(f.lng/g-i)*a,(f.lat/g-k)*a],e=m[0]-Math.ceil((c.width/2-m[2])/a),f=m[1]-Math.ceil((c.height/2-m[3])/a),g=m[0]+Math.ceil((c.width/2+m[2])/a),c=m[1]+Math.ceil((c.height/2+m[3])/a);this.Ce?this.Ce.length=0:this.Ce=[];for(a=e;a<g;a++)for(e=f;e<c;e++)this.Ce.push([a,e]);this.Ce.sort(function(a){return function(b, c){return 0.4*Math.abs(b[0]-a[0])+0.6*Math.abs(b[1]-a[1])-(0.4*Math.abs(c[0]-a[0])+0.6*Math.abs(c[1]-a[1]))}}([i,k]));this.qr[b]=this.Ce.slice(0);return this.qr[b]};function Cd(a){if(a.lF)return a.lF;a.lF={kF:"001",fF:Sb("normal")};return a.lF}fa.update=function(a){this.qr={};for(var b=0;b<this.bf.length;b++){var c=this.bf[b],e=this.VK(c.Cd);c.update(e,a)}};function Dd(a,b,c){this.jd=a;this.bf=b instanceof Mc?[b]:b.slice(0);c=c||{};this.m={L_:c.tips||"",QD:"",jc:c.minZoom||4,pc:c.maxZoom||18,D3:c.minZoom||4,C3:c.maxZoom||18,iy:256,WE:c.textColor||"black",AC:c.errorImageUrl||"",fb:new hb(new J(-21364736,-16023552),new J(23855104,19431424)),Jc:c.projection||new S};1<=this.bf.length&&(this.bf[0].Xv=p);z.extend(this.m,c)} z.extend(Dd.prototype,{getName:x("jd"),xs:function(){return this.m.L_},c3:function(){return this.m.QD},rX:function(){return this.bf[0]},q3:x("bf"),Id:function(){return this.m.iy},aj:function(){return this.m.jc},Yh:function(){return this.m.pc},setMaxZoom:function(a){this.m.pc=a},im:function(){return this.m.WE},qk:function(){return this.m.Jc},V2:function(){return this.m.AC},Id:function(){return this.m.iy},$b:function(a){return Math.pow(2,18-a)},$K:function(a){return this.$b(a)*this.Id()}}); var Ed=[D.url.proto+D.url.domain.TILE_BASE_URLS[0]+"/it/",D.url.proto+D.url.domain.TILE_BASE_URLS[1]+"/it/",D.url.proto+D.url.domain.TILE_BASE_URLS[2]+"/it/",D.url.proto+D.url.domain.TILE_BASE_URLS[3]+"/it/",D.url.proto+D.url.domain.TILE_BASE_URLS[4]+"/it/"],Fd=[D.url.proto+D.url.domain.TILE_ONLINE_URLS[0]+"/tile/",D.url.proto+D.url.domain.TILE_ONLINE_URLS[1]+"/tile/",D.url.proto+D.url.domain.TILE_ONLINE_URLS[2]+"/tile/",D.url.proto+D.url.domain.TILE_ONLINE_URLS[3]+"/tile/"],Gd={dark:"dl",light:"ll", normal:"pl"},Hd=new Mc;Hd.k_=p;Hd.getTilesUrl=function(a,b,c){var e=a.x,a=a.y,f=Sb("normal"),g=1,c=Gd[c];this.map.bx()&&(g=2);e=this.map.Ye.Yv(e,b).Tl;return(Fd[Math.abs(e+a)%Fd.length]+"?qt=vtile&x="+(e+"").replace(/-/gi,"M")+"&y="+(a+"").replace(/-/gi,"M")+"&z="+b+"&styles="+c+"&scaler="+g+(6==z.fa.na?"&color_dep=32&colors=50":"")+"&udt="+f).replace(/-(\d+)/gi,"M$1")};var Pa=new Dd("\u5730\u56fe",Hd,{tips:"\u663e\u793a\u666e\u901a\u5730\u56fe",maxZoom:19}),Id=new Mc; Id.IN=[D.url.proto+D.url.domain.TIlE_PERSPECT_URLS[0]+"/resource/mappic/",D.url.proto+D.url.domain.TIlE_PERSPECT_URLS[1]+"/resource/mappic/",D.url.proto+D.url.domain.TIlE_PERSPECT_URLS[2]+"/resource/mappic/",D.url.proto+D.url.domain.TIlE_PERSPECT_URLS[3]+"/resource/mappic/"];Id.getTilesUrl=function(a,b){var c=a.x,e=a.y,f=256*Math.pow(2,20-b),e=Math.round((9998336-f*e)/f)-1;return url=this.IN[Math.abs(c+e)%this.IN.length]+this.map.Sb+"/"+this.map.ew+"/3/lv"+(21-b)+"/"+c+","+e+".jpg"}; var Sa=new Dd("\u4e09\u7ef4",Id,{tips:"\u663e\u793a\u4e09\u7ef4\u5730\u56fe",minZoom:15,maxZoom:20,textColor:"white",projection:new jb});Sa.$b=function(a){return Math.pow(2,20-a)};Sa.kk=function(a){if(!a)return"";var b=H.zB,c;for(c in b)if(-1<a.search(c))return b[c].Hx;return""};Sa.xK=function(a){return{bj:2,gz:1,sz:14,sh:4}[a]};var Jd=new Mc({Xv:p}); Jd.getTilesUrl=function(a,b){var c=a.x,e=a.y;return(Ed[Math.abs(c+e)%Ed.length]+"u=x="+c+";y="+e+";z="+b+";v=009;type=sate&fm=46&udt="+Sb("satellite")).replace(/-(\d+)/gi,"M$1")};var ab=new Dd("\u536b\u661f",Jd,{tips:"\u663e\u793a\u536b\u661f\u5f71\u50cf",minZoom:4,maxZoom:19,textColor:"white"}),Kd=new Mc({transparentPng:p}); Kd.getTilesUrl=function(a,b){var c=a.x,e=a.y,f=Sb("satelliteStreet");return(Fd[Math.abs(c+e)%Fd.length]+"?qt=vtile&x="+(c+"").replace(/-/gi,"M")+"&y="+(e+"").replace(/-/gi,"M")+"&z="+b+"&styles=sl"+(6==z.fa.na?"&color_dep=32&colors=50":"")+"&udt="+f).replace(/-(\d+)/gi,"M$1")};var Va=new Dd("\u6df7\u5408",[Jd,Kd],{tips:"\u663e\u793a\u5e26\u6709\u8857\u9053\u7684\u536b\u661f\u5f71\u50cf",labelText:"\u8def\u7f51",minZoom:4,maxZoom:19,textColor:"white"});var Ld=1,X={};window.A0=X;function Y(a,b){z.lang.Ga.call(this);this.zd={};this.Im(a);b=b||{};b.pa=b.renderOptions||{};this.m={pa:{Oa:b.pa.panel||q,map:b.pa.map||q,Vg:b.pa.autoViewport||p,kt:b.pa.selectFirstResult,Bs:b.pa.highlightMode,Xb:b.pa.enableDragging||t},Zs:b.onSearchComplete||u(),vM:b.onMarkersSet||u(),uM:b.onInfoHtmlSet||u(),xM:b.onResultsHtmlSet||u(),tM:b.onGetBusListComplete||u(),sM:b.onGetBusLineComplete||u(),qM:b.onBusListHtmlSet||u(),pM:b.onBusLineHtmlSet||u(),eE:b.onPolylinesSet||u(),ep:b.reqFrom||""};this.m.pa.Vg= "undefined"!=typeof b&&"undefined"!=typeof b.renderOptions&&"undefined"!=typeof b.renderOptions.autoViewport?b.renderOptions.autoViewport:p;this.m.pa.Oa=z.Ec(this.m.pa.Oa)}z.wa(Y,z.lang.Ga); z.extend(Y.prototype,{getResults:function(){return this.Gc?this.zi:this.ma},enableAutoViewport:function(){this.m.pa.Vg=p},disableAutoViewport:function(){this.m.pa.Vg=t},Im:function(a){a&&(this.zd.src=a)},xt:function(a){this.m.Zs=a||u()},setMarkersSetCallback:function(a){this.m.vM=a||u()},setPolylinesSetCallback:function(a){this.m.eE=a||u()},setInfoHtmlSetCallback:function(a){this.m.uM=a||u()},setResultsHtmlSetCallback:function(a){this.m.xM=a||u()},gm:x("Le")});var Md={PF:D.nd,ob:function(a,b,c,e,f){this.qZ(b);var g=(1E5*Math.random()).toFixed(0);D._rd["_cbk"+g]=function(b){b.result&&b.result.error&&202===b.result.error?alert("\u8be5AK\u56e0\u4e3a\u6076\u610f\u884c\u4e3a\u5df2\u7ecf\u88ab\u7ba1\u7406\u5458\u5c01\u7981\uff01"):(c=c||{},a&&a(b,c),delete D._rd["_cbk"+g])};e=e||"";b=c&&c.e0?Hb(b,encodeURI):Hb(b,encodeURIComponent);this.PF=c&&c.gK?c.ZM?c.ZM:D.Xo:D.nd;e=this.PF+e+"?"+b+"&ie=utf-8&oue=1&fromproduct=jsapi";f||(e+="&res=api");e=e+("&callback=BMap._rd._cbk"+ g)+("&ak="+qa);pa(e)},qZ:function(a){if(a.qt){var b="";switch(a.qt){case "bt":b="z_qt|bt";break;case "nav":b="z_qt|nav";break;case "walk":b="z_qt|walk";break;case "bse":b="z_qt|bse";break;case "nse":b="z_qt|nse";break;case "drag":b="z_qt|drag"}""!==b&&D.alog("cus.fire","count",b)}}};window.O0=Md;D._rd={};var db={};window.N0=db;db.VM=function(a){a=a.replace(/<\/?[^>]*>/g,"");return a=a.replace(/[ | ]* /g," ")};db.YY=function(a){return a.replace(/([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*),([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*)(,)/g,"$1,$2;")};db.ZY=function(a,b){return a.replace(RegExp("(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){"+b+"}","ig"),"$1")};var Nd=2,Od=6,Pd=8,Qd=2,Rd=3,Sd=6,Td=0,Ud="bt",Vd="nav",Wd="walk",Xd="bl",Yd="bsl",Zd="ride",$d=15,ae=18;D.I=window.Instance=z.lang.Nc;function be(a,b,c){z.lang.Ga.call(this);if(a){this.Ya="object"==typeof a?a:z.Ec(a);this.page=1;this.Jd=100;this.eJ="pg";this.Uf=4;this.pJ=b;this.update=p;a={page:1,v5:100,Jd:100,Uf:4,eJ:"pg",update:p};c||(c=a);for(var e in c)"undefined"!=typeof c[e]&&(this[e]=c[e]);this.za()}} z.extend(be.prototype,{za:function(){this.xa()},xa:function(){this.MU();this.Ya.innerHTML=this.kV()},MU:function(){isNaN(parseInt(this.page))&&(this.page=1);isNaN(parseInt(this.Jd))&&(this.Jd=1);1>this.page&&(this.page=1);1>this.Jd&&(this.Jd=1);this.page>this.Jd&&(this.page=this.Jd);this.page=parseInt(this.page);this.Jd=parseInt(this.Jd)},h3:function(){location.search.match(RegExp("[?&]?"+this.eJ+"=([^&]*)[&$]?","gi"));this.page=RegExp.$1},kV:function(){var a=[],b=this.page-1,c=this.page+1;a.push('<p style="margin:0;padding:0;white-space:nowrap">'); if(!(1>b)){if(this.page>=this.Uf){var e;a.push('<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp1}">\u9996\u9875</a></span>'.replace("{temp1}","BMap.I('"+this.ea+"').toPage(1);"))}a.push('<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp2}">\u4e0a\u4e00\u9875</a></span>'.replace("{temp2}","BMap.I('"+this.ea+"').toPage("+b+");"))}if(this.page<this.Uf)e=0==this.page%this.Uf?this.page-this.Uf-1:this.page-this.page% this.Uf+1,b=e+this.Uf-1;else{e=Math.floor(this.Uf/2);var f=this.Uf%2-1,b=this.Jd>this.page+e?this.page+e:this.Jd;e=this.page-e-f}this.page>this.Jd-this.Uf&&this.page>=this.Uf&&(e=this.Jd-this.Uf+1,b=this.Jd);for(f=e;f<=b;f++)0<f&&(f==this.page?a.push('<span style="margin-right:3px">'+f+"</span>"):1<=f&&f<=this.Jd&&(e='<span><a style="color:#7777cc;margin-right:3px" href="javascript:void(0)" onclick="{temp3}">['+f+"]</a></span>",a.push(e.replace("{temp3}","BMap.I('"+this.ea+"').toPage("+f+");")))); c>this.Jd||a.push('<span><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp4}">\u4e0b\u4e00\u9875</a></span>'.replace("{temp4}","BMap.I('"+this.ea+"').toPage("+c+");"));a.push("</p>");return a.join("")},toPage:function(a){a=a?a:1;"function"==typeof this.pJ&&(this.pJ(a),this.page=a);this.update&&this.za()}});function fb(a,b){Y.call(this,a,b);b=b||{};b.renderOptions=b.renderOptions||{};this.np(b.pageCapacity);"undefined"!=typeof b.renderOptions.selectFirstResult&&!b.renderOptions.selectFirstResult?this.ZB():this.sC();this.Ba=[];this.tf=[];this.pb=-1;this.Ra=[];var c=this;K.load("local",function(){c.Ry()},p)}z.wa(fb,Y,"LocalSearch");fb.Gp=10;fb.J0=1;fb.Ym=100;fb.FF=2E3;fb.NF=1E5; z.extend(fb.prototype,{search:function(a,b){this.Ra.push({method:"search",arguments:[a,b]})},Fm:function(a,b,c){this.Ra.push({method:"searchInBounds",arguments:[a,b,c]})},kp:function(a,b,c,e){this.Ra.push({method:"searchNearby",arguments:[a,b,c,e]})},Qe:function(){delete this.Ma;delete this.Le;delete this.ma;delete this.ya;this.pb=-1;this.Xa();this.m.pa.Oa&&(this.m.pa.Oa.innerHTML="")},jm:u(),sC:function(){this.m.pa.kt=p},ZB:function(){this.m.pa.kt=t},np:function(a){this.m.yk="number"==typeof a&& !isNaN(a)?1>a?fb.Gp:a>fb.Ym?fb.Gp:a:fb.Gp},lf:function(){return this.m.yk},toString:da("LocalSearch")});var ce=fb.prototype;V(ce,{clearResults:ce.Qe,setPageCapacity:ce.np,getPageCapacity:ce.lf,gotoPage:ce.jm,searchNearby:ce.kp,searchInBounds:ce.Fm,search:ce.search,enableFirstResultSelection:ce.sC,disableFirstResultSelection:ce.ZB});function de(a,b){Y.call(this,a,b)}z.wa(de,Y,"BaseRoute");z.extend(de.prototype,{Qe:u()});function ee(a,b){Y.call(this,a,b);b=b||{};this.wt(b.policy);this.nN(b.intercityPolicy);this.vN(b.transitTypePolicy);this.np(b.pageCapacity);this.Gb=Ud;this.Mp=Ld;this.Ba=[];this.pb=-1;this.m.vn=b.enableTraffic||t;this.Ra=[];var c=this;K.load("route",function(){c.Rd()})}ee.Ym=100;ee.FO=[0,1,0,0,0,0,0,0,2,0,0,0,1,1,1];ee.GO=[0,3,4,0,0,0,5];z.wa(ee,de,"TransitRoute"); z.extend(ee.prototype,{wt:function(a){this.m.he=0<=a&&5>=a?a:0},nN:function(a){this.m.om=0<=a&&2>=a?a:0},vN:function(a){this.m.Om=0<=a&&2>=a?a:0},Tz:function(a,b){this.Ra.push({method:"_internalSearch",arguments:[a,b]})},search:function(a,b){this.Ra.push({method:"search",arguments:[a,b]})},np:function(a){if("string"===typeof a&&(a=parseInt(a,10),isNaN(a))){this.m.yk=ee.Ym;return}this.m.yk="number"!==typeof a?ee.Ym:1<=a&&a<=ee.Ym?Math.round(a):ee.Ym},toString:da("TransitRoute"),z1:function(a){return a.replace(/\(.*\)/, "")}});var fe=ee.prototype;V(fe,{_internalSearch:fe.Tz});function ge(a,b){Y.call(this,a,b);this.Ba=[];this.pb=-1;this.Ra=[];var c=this,e=this.m.pa;1!==e.Bs&&2!==e.Bs&&(e.Bs=1);this.Cu=this.m.pa.Xb?p:t;K.load("route",function(){c.Rd()});this.CD&&this.CD()}ge.UO=" \u73af\u5c9b \u65e0\u5c5e\u6027\u9053\u8def \u4e3b\u8def \u9ad8\u901f\u8fde\u63a5\u8def \u4ea4\u53c9\u70b9\u5185\u8def\u6bb5 \u8fde\u63a5\u9053\u8def \u505c\u8f66\u573a\u5185\u90e8\u9053\u8def \u670d\u52a1\u533a\u5185\u90e8\u9053\u8def \u6865 \u6b65\u884c\u8857 \u8f85\u8def \u531d\u9053 \u5168\u5c01\u95ed\u9053\u8def \u672a\u5b9a\u4e49\u4ea4\u901a\u533a\u57df POI\u8fde\u63a5\u8def \u96a7\u9053 \u6b65\u884c\u9053 \u516c\u4ea4\u4e13\u7528\u9053 \u63d0\u524d\u53f3\u8f6c\u9053".split(" "); z.wa(ge,de,"DWRoute");z.extend(ge.prototype,{search:function(a,b,c){this.Ra.push({method:"search",arguments:[a,b,c]})}});function he(a,b){ge.call(this,a,b);b=b||{};this.m.vn=b.enableTraffic||t;this.wt(b.policy);this.Gb=Vd;this.Mp=Rd}z.wa(he,ge,"DrivingRoute");he.prototype.wt=function(a){this.m.he=0<=a&&5>=a?a:0};function ie(a,b){ge.call(this,a,b);this.Gb=Wd;this.Mp=Qd;this.Cu=t}z.wa(ie,ge,"WalkingRoute");function je(a,b){ge.call(this,a,b);this.Gb=Zd;this.Mp=Sd;this.Cu=t}z.wa(je,ge,"RidingRoute");function ke(a,b){z.lang.Ga.call(this);this.Qf=[];this.zk=[];this.m=b;this.mj=a;this.map=this.m.pa.map||q;this.gN=this.m.gN;this.Fb=q;this.dk=0;this.SE="";this.jf=1;this.zC="";this.fp=[0,0,0,0,0,0,0];this.TL=[];this.Gr=[1,1,1,1,1,1,1];this.QN=[1,1,1,1,1,1,1];this.gp=[0,0,0,0,0,0,0];this.Dm=[0,0,0,0,0,0,0];this.Kb=[{B:"",Dd:0,Pm:0,x:0,y:0,ra:-1},{B:"",Dd:0,Pm:0,x:0,y:0,ra:-1},{B:"",Dd:0,Pm:0,x:0,y:0,ra:-1},{B:"",Dd:0,Pm:0,x:0,y:0,ra:-1},{B:"",Dd:0,Pm:0,x:0,y:0,ra:-1},{B:"",Dd:0,Pm:0,x:0,y:0,ra:-1}, {B:"",Dd:0,Pm:0,x:0,y:0,ra:-1}];this.Rh=-1;this.Mt=[];this.dF=[];K.load("route",u())}z.lang.wa(ke,z.lang.Ga,"RouteAddr");var le=navigator.userAgent;/ipad|iphone|ipod|iph/i.test(le);var ne=/android/i.test(le);function oe(a){this.Ue=a||{}}z.extend(oe.prototype,{fN:function(a,b,c){var e=this;K.load("route",function(){e.Rd(a,b,c)})}});function pe(a){this.m={};z.extend(this.m,a);this.Ra=[];var b=this;K.load("othersearch",function(){b.Rd()})}z.wa(pe,z.lang.Ga,"Geocoder");z.extend(pe.prototype,{fm:function(a,b,c){this.Ra.push({method:"getPoint",arguments:[a,b,c]})},dm:function(a,b,c){this.Ra.push({method:"getLocation",arguments:[a,b,c]})},toString:da("Geocoder")});var qe=pe.prototype;V(qe,{getPoint:qe.fm,getLocation:qe.dm});function Geolocation(a){a=a||{};this.R={timeout:a.timeout||1E4,maximumAge:a.maximumAge||6E5,enableHighAccuracy:a.enableHighAccuracy||t,ti:a.SDKLocation||t};this.ne=[];var b=this;K.load("othersearch",function(){for(var a=0,e;e=b.ne[a];a++)b[e.method].apply(b,e.arguments)})} z.extend(Geolocation.prototype,{getCurrentPosition:function(a,b){this.ne.push({method:"getCurrentPosition",arguments:arguments})},getStatus:function(){return Nd},enableSDKLocation:function(){I()&&(this.R.ti=p)},disableSDKLocation:function(){this.R.ti=t}});function re(a){a=a||{};a.pa=a.renderOptions||{};this.m={pa:{map:a.pa.map||q}};this.Ra=[];var b=this;K.load("othersearch",function(){b.Rd()})}z.wa(re,z.lang.Ga,"LocalCity");z.extend(re.prototype,{get:function(a){this.Ra.push({method:"get",arguments:[a]})},toString:da("LocalCity")});function ve(){this.Ra=[];var a=this;K.load("othersearch",function(){a.Rd()})}z.wa(ve,z.lang.Ga,"Boundary");z.extend(ve.prototype,{get:function(a,b){this.Ra.push({method:"get",arguments:[a,b]})},toString:da("Boundary")});function we(a,b){Y.call(this,a,b);this.RO=Xd;this.TO=$d;this.QO=Yd;this.SO=ae;this.Ra=[];var c=this;K.load("buslinesearch",function(){c.Rd()})}we.Ru=H.sa+"iw_plus.gif";we.MR=H.sa+"iw_minus.gif";we.DT=H.sa+"stop_icon.png";z.wa(we,Y); z.extend(we.prototype,{getBusList:function(a){this.Ra.push({method:"getBusList",arguments:[a]})},getBusLine:function(a){this.Ra.push({method:"getBusLine",arguments:[a]})},setGetBusListCompleteCallback:function(a){this.m.tM=a||u()},setGetBusLineCompleteCallback:function(a){this.m.sM=a||u()},setBusListHtmlSetCallback:function(a){this.m.qM=a||u()},setBusLineHtmlSetCallback:function(a){this.m.pM=a||u()},setPolylinesSetCallback:function(a){this.m.eE=a||u()}});function xe(a){Y.call(this,a);a=a||{};this.$a={input:a.input||q,sB:a.baseDom||q,types:a.types||[],Zs:a.onSearchComplete||u()};this.zd.src=a.location||"\u5168\u56fd";this.Qi="";this.jg=q;this.mH="";this.Gi();Ta(Ka);var b=this;K.load("autocomplete",function(){b.Rd()})}z.wa(xe,Y,"Autocomplete");z.extend(xe.prototype,{Gi:u(),show:u(),aa:u(),IE:function(a){this.$a.types=a},Im:function(a){this.zd.src=a},search:ba("Qi"),Tx:ba("mH"),xt:function(a){this.$a.Zs=a}});var Wa;function Ra(a,b){function c(){f.m.visible?("inter"===f.Je&&f.m.haveBreakId&&f.m.indoorExitControl===p?z.U.show(f.Mz):z.U.aa(f.Mz),this.m.closeControl&&this.xf&&this.M&&this.M.Ta()===this.P?z.U.show(f.xf):z.U.aa(f.xf),this.m.forceCloseControl&&z.U.show(f.xf)):(z.U.aa(f.xf),z.U.aa(f.Mz))}this.P="string"==typeof a?z.da(a):a;this.ea=ye++;this.m={enableScrollWheelZoom:p,panoramaRenderer:"flash",swfSrc:D.Zh("main_domain_nocdn","res/swf/")+"APILoader.swf",visible:p,indoorExitControl:p,indoorFloorControl:t, linksControl:p,clickOnRoad:p,navigationControl:p,closeControl:p,indoorSceneSwitchControl:p,albumsControl:t,albumsControlOptions:{},copyrightControlOptions:{},forceCloseControl:t,haveBreakId:t};var b=b||{},e;for(e in b)this.m[e]=b[e];b.closeControl===p&&(this.m.forceCloseControl=p);b.useWebGL===t&&Qa(t);this.Ha={heading:0,pitch:0};this.Cn=[];this.Mb=this.bb=q;this.Sj=this.yq();this.Ba=[];this.Lc=1;this.Je=this.kS=this.Zk="";this.Ie={};this.Jf=q;this.Og=[];this.Qq=[];"cvsRender"==this.Sj||Qa()?(this.Kj= 90,this.Mj=-90):"cssRender"==this.Sj&&(this.Kj=45,this.Mj=-45);this.Uq=t;var f=this;this.Dn=function(){this.Sj==="flashRender"?K.load("panoramaflash",function(){f.Gi()},p):K.load("panorama",function(){f.kb()},p);b.kf=="api"?Ta(Ga):Ta(Ha);this.Dn=u()};this.m.XR!==p&&(this.Dn(),D.Tp("cus.fire","count","z_loadpanoramacount"));this.OS(this.P);this.addEventListener("id_changed",function(){Ta(Fa,{from:b.kf})});this.dP();this.addEventListener("indoorexit_options_changed",c);this.addEventListener("scene_type_changed", c);this.addEventListener("onclose_options_changed",c);this.addEventListener("onvisible_changed",c)}var ze=4,Ae=1,ye=0;z.lang.wa(Ra,z.lang.Ga,"Panorama"); z.extend(Ra.prototype,{dP:function(){var a=this,b=this.xf=O("div");b.className="pano_close";b.style.cssText="z-index: 1201;display: none";b.title="\u9000\u51fa\u5168\u666f";b.onclick=function(){a.aa()};this.P.appendChild(b);var c=this.Mz=O("a");c.className="pano_pc_indoor_exit";c.style.cssText="z-index: 1201;display: none";c.innerHTML='<span style="float:right;margin-right:12px;">\u51fa\u53e3</span>';c.title="\u9000\u51fa\u5ba4\u5185\u666f";c.onclick=function(){a.zo()};this.P.appendChild(c);window.ActiveXObject&& !document.addEventListener&&(b.style.backgroundColor="rgb(37,37,37)",c.style.backgroundColor="rgb(37,37,37)")},zo:u(),OS:function(a){var b,c;b=a.style;c=Ya(a).position;"absolute"!=c&&"relative"!=c&&(b.position="relative",b.zIndex=0);if("absolute"===c||"relative"===c)if(a=Ya(a).zIndex,!a||"auto"===a)b.zIndex=0},TW:x("Cn"),Zb:x("bb"),tX:x("Av"),uN:x("Av"),ka:x("Mb"),Ia:x("Ha"),ja:x("Lc"),$i:x("Zk"),j3:function(){return this.u1||[]},e3:x("kS"),ws:x("Je"),Wx:function(a){a!==this.Je&&(this.Je=a,this.dispatchEvent(new Q("onscene_type_changed")))}, Cc:function(a,b,c){"object"===typeof b&&(c=b,b=l);a!=this.bb&&(this.jl=this.bb,this.kl=this.Mb,this.bb=a,this.Je=b||"street",this.Mb=q,c&&c.pov&&this.qd(c.pov))},ua:function(a){a.Yb(this.Mb)||(this.jl=this.bb,this.kl=this.Mb,this.Mb=a,this.bb=q)},qd:function(a){a&&(this.Ha=a,a=this.Ha.pitch,a>this.Kj?a=this.Kj:a<this.Mj&&(a=this.Mj),this.Uq=p,this.Ha.pitch=a)},f_:function(a,b){this.Mj=0<=a?0:a;this.Kj=0>=b?0:b},Qc:function(a){a!=this.Lc&&(a>ze&&(a=ze),a<Ae&&(a=Ae),a!=this.Lc&&(this.Lc=a),"cssRender"=== this.Sj&&this.qd(this.Ha))},OA:function(){if(this.M)for(var a=this.M.Qw(),b=0;b<a.length;b++)(a[b]instanceof W||a[b]instanceof uc)&&a[b].point&&this.Ba.push(a[b])},FE:ba("M"),vt:function(a){this.Jf=a||"none"},Ek:function(a){for(var b in a){if("object"==typeof a[b])for(var c in a[b])this.m[b][c]=a[b][c];else this.m[b]=a[b];a.closeControl===p&&(this.m.forceCloseControl=p);a.closeControl===t&&(this.m.forceCloseControl=t);switch(b){case "linksControl":this.dispatchEvent(new Q("onlinks_visible_changed")); break;case "clickOnRoad":this.dispatchEvent(new Q("onclickonroad_changed"));break;case "navigationControl":this.dispatchEvent(new Q("onnavigation_visible_changed"));break;case "indoorSceneSwitchControl":this.dispatchEvent(new Q("onindoor_default_switch_mode_changed"));break;case "albumsControl":this.dispatchEvent(new Q("onalbums_visible_changed"));break;case "albumsControlOptions":this.dispatchEvent(new Q("onalbums_options_changed"));break;case "copyrightControlOptions":this.dispatchEvent(new Q("oncopyright_options_changed")); break;case "closeControl":this.dispatchEvent(new Q("onclose_options_changed"));break;case "indoorExitControl":this.dispatchEvent(new Q("onindoorexit_options_changed"));break;case "indoorFloorControl":this.dispatchEvent(new Q("onindoorfloor_options_changed"))}}},uk:function(){this.sl.style.visibility="hidden"},$x:function(){this.sl.style.visibility="visible"},aW:function(){this.m.enableScrollWheelZoom=p},CV:function(){this.m.enableScrollWheelZoom=t},show:function(){this.m.visible=p},aa:function(){this.m.visible= t},yq:function(){return Xa()&&!I()&&"javascript"!=this.m.panoramaRenderer?"flashRender":!I()&&Pb()?"cvsRender":"cssRender"},Pa:function(a){this.Ie[a.kd]=a},Ub:function(a){delete this.Ie[a]},qD:function(){return this.m.visible},$g:function(){return new P(this.P.clientWidth,this.P.clientHeight)},Ta:x("P"),uK:function(){var a=D.Zh("baidumap","?"),b=this.Zb();if(b){var b={panotype:this.ws(),heading:this.Ia().heading,pitch:this.Ia().pitch,pid:b,panoid:b,from:"api"},c;for(c in b)a+=c+"="+b[c]+"&"}return a.slice(0, -1)},Zw:function(){this.Ek({copyrightControlOptions:{logoVisible:t}})},ME:function(){this.Ek({copyrightControlOptions:{logoVisible:p}})},kB:function(a){function b(a,b){return function(){a.Qq.push({eM:b,dM:arguments})}}for(var c=a.getPanoMethodList(),e="",f=0,g=c.length;f<g;f++)e=c[f],this[e]=b(this,e);this.Og.push(a)},qE:function(a){for(var b=this.Og.length;b--;)this.Og[b]===a&&this.Og.splice(b,1)},EE:u()});var Be=Ra.prototype; V(Be,{setId:Be.Cc,setPosition:Be.ua,setPov:Be.qd,setZoom:Be.Qc,setOptions:Be.Ek,getId:Be.Zb,getPosition:Be.ka,getPov:Be.Ia,getZoom:Be.ja,getLinks:Be.TW,getBaiduMapUrl:Be.uK,hideMapLogo:Be.Zw,showMapLogo:Be.ME,enableDoubleClickZoom:Be.u2,disableDoubleClickZoom:Be.l2,enableScrollWheelZoom:Be.aW,disableScrollWheelZoom:Be.CV,show:Be.show,hide:Be.aa,addPlugin:Be.kB,removePlugin:Be.qE,getVisible:Be.qD,addOverlay:Be.Pa,removeOverlay:Be.Ub,getSceneType:Be.ws,setPanoramaPOIType:Be.vt,exitInter:Be.zo,setInteractiveState:Be.EE}); V(window,{BMAP_PANORAMA_POI_HOTEL:"hotel",BMAP_PANORAMA_POI_CATERING:"catering",BMAP_PANORAMA_POI_MOVIE:"movie",BMAP_PANORAMA_POI_TRANSIT:"transit",BMAP_PANORAMA_POI_INDOOR_SCENE:"indoor_scene",BMAP_PANORAMA_POI_NONE:"none",BMAP_PANORAMA_INDOOR_SCENE:"inter",BMAP_PANORAMA_STREET_SCENE:"street"});function Ce(){z.lang.Ga.call(this);this.kd="PanoramaOverlay_"+this.ea;this.W=q;this.Sa=p}z.lang.wa(Ce,z.lang.Ga,"PanoramaOverlayBase");z.extend(Ce.prototype,{f3:x("kd"),xa:function(){aa("initialize\u65b9\u6cd5\u672a\u5b9e\u73b0")},remove:function(){aa("remove\u65b9\u6cd5\u672a\u5b9e\u73b0")},If:function(){aa("_setOverlayProperty\u65b9\u6cd5\u672a\u5b9e\u73b0")}});function De(a,b){Ce.call(this);var c={position:q,altitude:2,displayDistance:p},b=b||{},e;for(e in b)c[e]=b[e];this.Mb=c.position;this.zj=a;this.Up=c.altitude;this.pQ=c.displayDistance;this.WE=c.color;this.hL=c.hoverColor;this.backgroundColor=c.backgroundColor;this.hJ=c.backgroundHoverColor;this.borderColor=c.borderColor;this.lJ=c.borderHoverColor;this.fontSize=c.fontSize;this.padding=c.padding;this.wD=c.imageUrl;this.size=c.size;this.we=c.image;this.width=c.width;this.height=c.height;this.NX=c.imageData; this.borderWidth=c.borderWidth}z.lang.wa(De,Ce,"PanoramaLabel"); z.extend(De.prototype,{K2:x("borderWidth"),getImageData:x("NX"),im:x("WE"),Z2:x("hL"),G2:x("backgroundColor"),H2:x("hJ"),I2:x("borderColor"),J2:x("lJ"),X2:x("fontSize"),g3:x("padding"),a3:x("wD"),Eb:x("size"),Kw:x("we"),ua:function(a){this.Mb=a;this.If("position",a)},ka:x("Mb"),cd:function(a){this.zj=a;this.If("content",a)},lk:x("zj"),yE:function(a){this.Up=a;this.If("altitude",a)},Do:x("Up"),Ia:function(){var a=this.ka(),b=q,c=q;this.W&&(c=this.W.ka());if(a&&c)if(a.Yb(c))b=this.W.Ia();else{b={}; b.heading=Ee(a.lng-c.lng,a.lat-c.lat)||0;var a=b,c=this.Do(),e=this.xn();a.pitch=Math.round(180*(Math.atan(c/e)/Math.PI))||0}return b},xn:function(){var a=0,b,c;this.W&&(b=this.W.ka(),(c=this.ka())&&!c.Yb(b)&&(a=S.mk(b,c)));return a},aa:function(){aa("hide\u65b9\u6cd5\u672a\u5b9e\u73b0")},show:function(){aa("show\u65b9\u6cd5\u672a\u5b9e\u73b0")},If:u()});var Fe=De.prototype; V(Fe,{setPosition:Fe.ua,getPosition:Fe.ka,setContent:Fe.cd,getContent:Fe.lk,setAltitude:Fe.yE,getAltitude:Fe.Do,getPov:Fe.Ia,show:Fe.show,hide:Fe.aa});function Ge(a,b){Ce.call(this);var c={icon:"",title:"",panoInfo:q,altitude:2},b=b||{},e;for(e in b)c[e]=b[e];this.Mb=a;this.jH=c.icon;this.BI=c.title;this.Up=c.altitude;this.BS=c.panoInfo;this.Ha={heading:0,pitch:0}}z.lang.wa(Ge,Ce,"PanoramaMarker"); z.extend(Ge.prototype,{ua:function(a){this.Mb=a;this.If("position",a)},ka:x("Mb"),Dc:function(a){this.BI=a;this.If("title",a)},Ko:x("BI"),Vb:function(a){this.jH=icon;this.If("icon",a)},Fo:x("jH"),yE:function(a){this.Up=a;this.If("altitude",a)},Do:x("Up"),fD:x("BS"),Ia:function(){var a=q;if(this.W){var a=this.W.ka(),b=this.ka(),a=Ee(b.lng-a.lng,b.lat-a.lat);isNaN(a)&&(a=0);a={heading:a,pitch:0}}else a=this.Ha;return a},If:u()});var He=Ge.prototype; V(He,{setPosition:He.ua,getPosition:He.ka,setTitle:He.Dc,getTitle:He.Ko,setAltitude:He.yE,getAltitude:He.Do,getPanoInfo:He.fD,getIcon:He.Fo,setIcon:He.Vb,getPov:He.Ia});function Ee(a,b){var c=0;if(0!==a&&0!==b){var c=180*(Math.atan(a/b)/Math.PI),e=0;0<a&&0>b&&(e=90);0>a&&0>b&&(e=180);0>a&&0<b&&(e=270);c=(c+90)%90+e}else 0===a?c=0>b?180:0:0===b&&(c=0<a?90:270);return Math.round(c)} function Qa(a){if("boolean"===typeof Ie)return Ie;if(a===t||!window.WebGLRenderingContext)return Ie=t;if(z.platform.jj){a=0;try{a=navigator.userAgent.split("Android ")[1].charAt(0)}catch(b){}if(5>a)return Ie=t}var a=document.createElement("canvas"),c=q;try{c=a.getContext("webgl")}catch(e){Ie=t}return Ie=c===q?t:p}var Ie;function Je(){if("boolean"===typeof Ke)return Ke;Ke=p;if(z.platform.FD)return p;var a=navigator.userAgent;return-1<a.indexOf("Chrome")||-1<a.indexOf("SAMSUNG-GT-I9508")?p:Ke=t}var Ke;function ec(a,b){this.W=a||q;var c=this;c.W&&c.ga();K.load("pservice",function(){c.JP()});"api"==(b||{}).kf?Ta(Ia):Ta(Ja);this.xd={getPanoramaById:[],getPanoramaByLocation:[],getVisiblePOIs:[],getRecommendPanosById:[],getPanoramaVersions:[],checkPanoSupportByCityCode:[],getPanoramaByPOIId:[],getCopyrightProviders:[]}}D.xm(function(a){"flashRender"!==a.yq()&&new ec(a,{kf:"api"})}); z.extend(ec.prototype,{ga:function(){function a(a){if(a){if(a.id!=b.Av){b.uN(a.id);b.ia=a;Je()||b.dispatchEvent(new Q("onthumbnail_complete"));b.bb!=q&&(b.kl=b._position);for(var c in a)if(a.hasOwnProperty(c))switch(b["_"+c]=a[c],c){case "position":b.Mb=a[c];break;case "id":b.bb=a[c];break;case "links":b.Cn=a[c];break;case "zoom":b.Lc=a[c]}if(b.kl){var g=b.kl,i=b._position;c=g.lat;var k=i.lat,m=U(k-c),g=U(i.lng-g.lng);c=Math.sin(m/2)*Math.sin(m/2)+Math.cos(U(c))*Math.cos(U(k))*Math.sin(g/2)*Math.sin(g/ 2);b.zG=6371E3*2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}c=new Q("ondataload");c.data=a;b.dispatchEvent(c);b.dispatchEvent(new Q("onposition_changed"));b.dispatchEvent(new Q("onlinks_changed"));b.dispatchEvent(new Q("oncopyright_changed"),{copyright:a.copyright});a.Pl&&b.m.closeControl?z.U.show(b.IQ):z.U.aa(b.IQ)}}else b.bb=b.jl,b.Mb=b.kl,b.dispatchEvent(new Q("onnoresult"))}var b=this.W,c=this;b.addEventListener("id_changed",function(){c.Io(b.Zb(),a)});b.addEventListener("iid_changed",function(){c.Pg(ec.Uk+ "qt=idata&iid="+b.Iz+"&fn=",function(b){if(b&&b.result&&0==b.result.error){var b=b.content[0].interinfo,f={};f.Pl=b.BreakID;for(var g=b.Defaultfloor,i=q,k=0;k<b.Floors.length;k++)if(b.Floors[k].Floor==g){i=b.Floors[k];break}f.id=i.StartID||i.Points[0].PID;c.Io(f.id,a,f)}})});b.addEventListener("position_changed_inner",function(){c.dj(b.ka(),a)})},Io:function(a,b){this.xd.getPanoramaById.push(arguments)},dj:function(a,b,c){this.xd.getPanoramaByLocation.push(arguments)},rD:function(a,b,c,e){this.xd.getVisiblePOIs.push(arguments)}, Tw:function(a,b){this.xd.getRecommendPanosById.push(arguments)},Sw:function(a){this.xd.getPanoramaVersions.push(arguments)},xB:function(a,b){this.xd.checkPanoSupportByCityCode.push(arguments)},Rw:function(a,b){this.xd.getPanoramaByPOIId.push(arguments)},yK:function(a){this.xd.getCopyrightProviders.push(arguments)}});var Le=ec.prototype;V(Le,{getPanoramaById:Le.Io,getPanoramaByLocation:Le.dj,getPanoramaByPOIId:Le.Rw});function dc(a){Mc.call(this);"api"==(a||{}).kf?Ta(Ca):Ta(Da)}dc.TF=D.Zh("pano","tile/");dc.prototype=new Mc;dc.prototype.getTilesUrl=function(a,b){var c=dc.TF[(a.x+a.y)%dc.TF.length]+"?udt=20150114&qt=tile&styles=pl&x="+a.x+"&y="+a.y+"&z="+b;z.fa.na&&6>=z.fa.na&&(c+="&color_dep=32");return c};dc.prototype.Ns=da(p);Me.Vd=new S;function Me(){}z.extend(Me,{DV:function(a,b,c){c=z.lang.Nc(c);b={data:b};"position_changed"==a&&(b.data=Me.Vd.pj(new R(b.data.mercatorX,b.data.mercatorY)));c.dispatchEvent(new Q("on"+a),b)}});var Ne=Me;V(Ne,{dispatchFlashEvent:Ne.DV});var Oe={IO:50};Oe.gu=D.Zh("pano")[0];Oe.eu={width:220,height:60}; z.extend(Oe,{qL:function(a,b,c,e){if(!b||!c||!c.lngLat||!c.panoInstance)e();else{this.In===l&&(this.In=new ec(q,{kf:"api"}));var f=this;this.In.xB(b,function(b){b?f.In.dj(c.lngLat,Oe.IO,function(b){if(b&&b.id){var g=b.id,m=b.ih,b=b.jh,n=ec.Vd.ug(c.lngLat),o=f.oR(n,{x:m,y:b}),m=f.JK(g,o,0,Oe.eu.width,Oe.eu.height);a.content=f.pR(a.content,m,c.titleTip,c.beforeDomId);a.addEventListener("open",function(){ja.V(z.Ec("infoWndPano"),"click",function(){c.panoInstance.Cc(g);c.panoInstance.show();c.panoInstance.qd({heading:o, pitch:0})})})}e()}):e()})}},pR:function(a,b,c,e){var c=c||"",f;!e||!a.split(e)[0]?(e=a,a=""):(e=a.split(e)[0],f=e.lastIndexOf("<"),e=a.substring(0,f),a=a.substring(f));f=[];var g=Oe.eu.width,i=Oe.eu.height;f.push(e);f.push("<div id='infoWndPano' class='panoInfoBox' style='height:"+i+"px;width:"+g+"px; margin-top: -19px;'>");f.push("<img class='pano_thumnail_img' width='"+g+"' height='"+i+"' border='0' alt='"+c+"\u5916\u666f' title='"+c+"\u5916\u666f' src='"+b+"' onerror='Pano.PanoEntranceUtil.thumbnailNotFound(this, "+ g+", "+i+");' />");f.push("<div class='panoInfoBoxTitleBg' style='width:"+g+"px;'></div><a href='javascript:void(0)' class='panoInfoBoxTitleContent' >\u8fdb\u5165\u5168\u666f&gt;&gt;</a>");f.push("</div>");f.push(a);return f.join("")},oR:function(a,b){var c=90-180*Math.atan2(a.y-b.y,a.x-b.x)/Math.PI;0>c&&(c+=360);return c},JK:function(a,b,c,e,f){var g={panoId:a,panoHeading:b||0,panoPitch:c||0,width:e,height:f};return(Oe.gu+"?qt=pr3d&fovy=75&quality=80&panoid={panoId}&heading={panoHeading}&pitch={panoPitch}&width={width}&height={height}").replace(/\{(.*?)\}/g, function(a,b){return g[b]})}});var Pe=document,Qe=Math,Re=Pe.createElement("div").style,Se;a:{for(var Te=["t","webkitT","MozT","msT","OT"],Ue,Ve=0,We=Te.length;Ve<We;Ve++)if(Ue=Te[Ve]+"ransform",Ue in Re){Se=Te[Ve].substr(0,Te[Ve].length-1);break a}Se=t} var Xe=Se?"-"+Se.toLowerCase()+"-":"",Ze=Ye("transform"),$e=Ye("transitionProperty"),af=Ye("transitionDuration"),bf=Ye("transformOrigin"),cf=Ye("transitionTimingFunction"),df=Ye("transitionDelay"),ne=/android/gi.test(navigator.appVersion),ef=/iphone|ipad/gi.test(navigator.appVersion),ff=/hp-tablet/gi.test(navigator.appVersion),gf=Ye("perspective")in Re,hf="ontouchstart"in window&&!ff,jf=Se!==t,kf=Ye("transition")in Re,lf="onorientationchange"in window?"orientationchange":"resize",mf=hf?"touchstart": "mousedown",nf=hf?"touchmove":"mousemove",of=hf?"touchend":"mouseup",pf=hf?"touchcancel":"mouseup",qf=Se===t?t:{"":"transitionend",webkit:"webkitTransitionEnd",Moz:"transitionend",O:"otransitionend",ms:"MSTransitionEnd"}[Se],rf=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){return setTimeout(a,1)},sf=window.cancelRequestAnimationFrame||window.M5||window.webkitCancelRequestAnimationFrame|| window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout,tf=gf?" translateZ(0)":""; function uf(a,b){var c=this,e;c.Tm="object"==typeof a?a:Pe.getElementById(a);c.Tm.style.overflow="hidden";c.Pb=c.Tm.children[0];c.options={Oo:p,Qm:p,x:0,y:0,ko:p,xU:t,tx:p,TD:p,Nk:p,qi:t,O_:0,bw:t,Ww:p,$h:p,ri:p,FC:ne,$w:ef,iW:ef&&gf,vE:"",zoom:t,Pk:1,Cp:4,FV:2,nO:"scroll",Et:t,dy:1,wM:q,oM:function(a){a.preventDefault()},zM:q,nM:q,yM:q,mM:q,zx:q,AM:q,rM:q,ap:q,BM:q,$o:q};for(e in b)c.options[e]=b[e];c.x=c.options.x;c.y=c.options.y;c.options.Nk=jf&&c.options.Nk;c.options.$h=c.options.Oo&&c.options.$h; c.options.ri=c.options.Qm&&c.options.ri;c.options.zoom=c.options.Nk&&c.options.zoom;c.options.qi=kf&&c.options.qi;c.options.zoom&&ne&&(tf="");c.Pb.style[$e]=c.options.Nk?Xe+"transform":"top left";c.Pb.style[af]="0";c.Pb.style[bf]="0 0";c.options.qi&&(c.Pb.style[cf]="cubic-bezier(0.33,0.66,0.66,1)");c.options.Nk?c.Pb.style[Ze]="translate("+c.x+"px,"+c.y+"px)"+tf:c.Pb.style.cssText+=";position:absolute;top:"+c.y+"px;left:"+c.x+"px";c.options.qi&&(c.options.FC=p);c.refresh();c.ga(lf,window);c.ga(mf); !hf&&"none"!=c.options.nO&&(c.ga("DOMMouseScroll"),c.ga("mousewheel"));c.options.bw&&(c.LU=setInterval(function(){c.HP()},500));this.options.Ww&&(Event.prototype.stopImmediatePropagation||(document.body.removeEventListener=function(a,b,c){var e=Node.prototype.removeEventListener;a==="click"?e.call(document.body,a,b.gL||b,c):e.call(document.body,a,b,c)},document.body.addEventListener=function(a,b,c){var e=Node.prototype.addEventListener;a==="click"?e.call(document.body,a,b.gL||(b.gL=function(a){a.pZ|| b(a)}),c):e.call(document.body,a,b,c)}),c.ga("click",document.body,p))} uf.prototype={enabled:p,x:0,y:0,qj:[],scale:1,NB:0,OB:0,Ve:[],pf:[],rB:q,my:0,handleEvent:function(a){switch(a.type){case mf:if(!hf&&0!==a.button)break;this.tv(a);break;case nf:this.mS(a);break;case of:case pf:this.Du(a);break;case lf:this.HA();break;case "DOMMouseScroll":case "mousewheel":this.QT(a);break;case qf:this.MT(a);break;case "click":this.RP(a)}},HP:function(){!this.hh&&(!this.Qk&&!(this.Ml||this.Sx==this.Pb.offsetWidth*this.scale&&this.jp==this.Pb.offsetHeight*this.scale))&&this.refresh()}, kv:function(a){var b;this[a+"Scrollbar"]?(this[a+"ScrollbarWrapper"]||(b=Pe.createElement("div"),this.options.vE?b.className=this.options.vE+a.toUpperCase():b.style.cssText="position:absolute;z-index:100;"+("h"==a?"height:7px;bottom:1px;left:2px;right:"+(this.ri?"7":"2")+"px":"width:7px;bottom:"+(this.$h?"7":"2")+"px;top:2px;right:1px"),b.style.cssText+=";pointer-events:none;"+Xe+"transition-property:opacity;"+Xe+"transition-duration:"+(this.options.iW?"350ms":"0")+";overflow:hidden;opacity:"+(this.options.$w? "0":"1"),this.Tm.appendChild(b),this[a+"ScrollbarWrapper"]=b,b=Pe.createElement("div"),this.options.vE||(b.style.cssText="position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);"+Xe+"background-clip:padding-box;"+Xe+"box-sizing:border-box;"+("h"==a?"height:100%":"width:100%")+";"+Xe+"border-radius:3px;border-radius:3px"),b.style.cssText+=";pointer-events:none;"+Xe+"transition-property:"+Xe+"transform;"+Xe+"transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);"+ Xe+"transition-duration:0;"+Xe+"transform: translate(0,0)"+tf,this.options.qi&&(b.style.cssText+=";"+Xe+"transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)"),this[a+"ScrollbarWrapper"].appendChild(b),this[a+"ScrollbarIndicator"]=b),"h"==a?(this.cL=this.dL.clientWidth,this.EX=Qe.max(Qe.round(this.cL*this.cL/this.Sx),8),this.DX.style.width=this.EX+"px"):(this.fO=this.gO.clientHeight,this.i0=Qe.max(Qe.round(this.fO*this.fO/this.jp),8),this.h0.style.height=this.i0+"px"),this.IA(a,p)):this[a+"ScrollbarWrapper"]&& (jf&&(this[a+"ScrollbarIndicator"].style[Ze]=""),this[a+"ScrollbarWrapper"].parentNode.removeChild(this[a+"ScrollbarWrapper"]),this[a+"ScrollbarWrapper"]=q,this[a+"ScrollbarIndicator"]=q)},HA:function(){var a=this;setTimeout(function(){a.refresh()},ne?200:0)},Tq:function(a,b){this.Qk||(a=this.Oo?a:0,b=this.Qm?b:0,this.options.Nk?this.Pb.style[Ze]="translate("+a+"px,"+b+"px) scale("+this.scale+")"+tf:(a=Qe.round(a),b=Qe.round(b),this.Pb.style.left=a+"px",this.Pb.style.top=b+"px"),this.x=a,this.y=b, this.IA("h"),this.IA("v"))},IA:function(a,b){var c="h"==a?this.x:this.y;this[a+"Scrollbar"]&&(c*=this[a+"ScrollbarProp"],0>c?(this.options.FC||(c=this[a+"ScrollbarIndicatorSize"]+Qe.round(3*c),8>c&&(c=8),this[a+"ScrollbarIndicator"].style["h"==a?"width":"height"]=c+"px"),c=0):c>this[a+"ScrollbarMaxScroll"]&&(this.options.FC?c=this[a+"ScrollbarMaxScroll"]:(c=this[a+"ScrollbarIndicatorSize"]-Qe.round(3*(c-this[a+"ScrollbarMaxScroll"])),8>c&&(c=8),this[a+"ScrollbarIndicator"].style["h"==a?"width":"height"]= c+"px",c=this[a+"ScrollbarMaxScroll"]+(this[a+"ScrollbarIndicatorSize"]-c))),this[a+"ScrollbarWrapper"].style[df]="0",this[a+"ScrollbarWrapper"].style.opacity=b&&this.options.$w?"0":"1",this[a+"ScrollbarIndicator"].style[Ze]="translate("+("h"==a?c+"px,0)":"0,"+c+"px)")+tf)},RP:function(a){if(a.JQ===p)return this.gB=a.target,this.Cw=Date.now(),p;if(this.gB&&this.Cw){if(600<Date.now()-this.Cw)return this.Cw=this.gB=q,p}else{for(var b=a.target;b!=this.Pb&&b!=document.body;)b=b.parentNode;if(b==document.body)return p}for(b= a.target;1!=b.nodeType;)b=b.parentNode;b=b.tagName.toLowerCase();if("select"!=b&&"input"!=b&&"textarea"!=b)return a.stopImmediatePropagation?a.stopImmediatePropagation():a.pZ=p,a.stopPropagation(),a.preventDefault(),this.Cw=this.gB=q,t},tv:function(a){var b=hf?a.touches[0]:a,c,e;if(this.enabled){this.options.oM&&this.options.oM.call(this,a);(this.options.qi||this.options.zoom)&&this.DI(0);this.Qk=this.Ml=this.hh=t;this.WB=this.VB=this.Mv=this.Lv=this.bC=this.aC=0;this.options.zoom&&(hf&&1<a.touches.length)&& (e=Qe.abs(a.touches[0].pageX-a.touches[1].pageX),c=Qe.abs(a.touches[0].pageY-a.touches[1].pageY),this.Q_=Qe.sqrt(e*e+c*c),this.Bx=Qe.abs(a.touches[0].pageX+a.touches[1].pageX-2*this.oF)/2-this.x,this.Cx=Qe.abs(a.touches[0].pageY+a.touches[1].pageY-2*this.pF)/2-this.y,this.options.ap&&this.options.ap.call(this,a));if(this.options.tx&&(this.options.Nk?(c=getComputedStyle(this.Pb,q)[Ze].replace(/[^0-9\-.,]/g,"").split(","),e=+(c[12]||c[4]),c=+(c[13]||c[5])):(e=+getComputedStyle(this.Pb,q).left.replace(/[^0-9-]/g, ""),c=+getComputedStyle(this.Pb,q).top.replace(/[^0-9-]/g,"")),e!=this.x||c!=this.y))this.options.qi?this.Zd(qf):sf(this.rB),this.qj=[],this.Tq(e,c),this.options.zx&&this.options.zx.call(this);this.Nv=this.x;this.Ov=this.y;this.Ht=this.x;this.It=this.y;this.ih=b.pageX;this.jh=b.pageY;this.startTime=a.timeStamp||Date.now();this.options.zM&&this.options.zM.call(this,a);this.ga(nf,window);this.ga(of,window);this.ga(pf,window)}},mS:function(a){var b=hf?a.touches[0]:a,c=b.pageX-this.ih,e=b.pageY-this.jh, f=this.x+c,g=this.y+e,i=a.timeStamp||Date.now();this.options.nM&&this.options.nM.call(this,a);if(this.options.zoom&&hf&&1<a.touches.length)f=Qe.abs(a.touches[0].pageX-a.touches[1].pageX),g=Qe.abs(a.touches[0].pageY-a.touches[1].pageY),this.P_=Qe.sqrt(f*f+g*g),this.Qk=p,b=1/this.Q_*this.P_*this.scale,b<this.options.Pk?b=0.5*this.options.Pk*Math.pow(2,b/this.options.Pk):b>this.options.Cp&&(b=2*this.options.Cp*Math.pow(0.5,this.options.Cp/b)),this.Uo=b/this.scale,f=this.Bx-this.Bx*this.Uo+this.x,g=this.Cx- this.Cx*this.Uo+this.y,this.Pb.style[Ze]="translate("+f+"px,"+g+"px) scale("+b+")"+tf,this.options.BM&&this.options.BM.call(this,a);else{this.ih=b.pageX;this.jh=b.pageY;if(0<f||f<this.ge)f=this.options.ko?this.x+c/2:0<=f||0<=this.ge?0:this.ge;if(g>this.nf||g<this.od)g=this.options.ko?this.y+e/2:g>=this.nf||0<=this.od?this.nf:this.od;this.aC+=c;this.bC+=e;this.Lv=Qe.abs(this.aC);this.Mv=Qe.abs(this.bC);6>this.Lv&&6>this.Mv||(this.options.TD&&(this.Lv>this.Mv+5?(g=this.y,e=0):this.Mv>this.Lv+5&&(f= this.x,c=0)),this.hh=p,this.Tq(f,g),this.VB=0<c?-1:0>c?1:0,this.WB=0<e?-1:0>e?1:0,300<i-this.startTime&&(this.startTime=i,this.Ht=this.x,this.It=this.y),this.options.yM&&this.options.yM.call(this,a))}},Du:function(a){if(!(hf&&0!==a.touches.length)){var b=this,c=hf?a.changedTouches[0]:a,e,f,g={Fa:0,time:0},i={Fa:0,time:0},k=(a.timeStamp||Date.now())-b.startTime;e=b.x;f=b.y;b.Zd(nf,window);b.Zd(of,window);b.Zd(pf,window);b.options.mM&&b.options.mM.call(b,a);if(b.Qk)e=b.scale*b.Uo,e=Math.max(b.options.Pk, e),e=Math.min(b.options.Cp,e),b.Uo=e/b.scale,b.scale=e,b.x=b.Bx-b.Bx*b.Uo+b.x,b.y=b.Cx-b.Cx*b.Uo+b.y,b.Pb.style[af]="200ms",b.Pb.style[Ze]="translate("+b.x+"px,"+b.y+"px) scale("+b.scale+")"+tf,b.Qk=t,b.refresh(),b.options.$o&&b.options.$o.call(b,a);else{if(b.hh){if(300>k&&b.options.tx){g=e?b.zH(e-b.Ht,k,-b.x,b.Sx-b.Vt+b.x,b.options.ko?b.Vt:0):g;i=f?b.zH(f-b.It,k,-b.y,0>b.od?b.jp-b.Um+b.y-b.nf:0,b.options.ko?b.Um:0):i;e=b.x+g.Fa;f=b.y+i.Fa;if(0<b.x&&0<e||b.x<b.ge&&e<b.ge)g={Fa:0,time:0};if(b.y>b.nf&& f>b.nf||b.y<b.od&&f<b.od)i={Fa:0,time:0}}g.Fa||i.Fa?(c=Qe.max(Qe.max(g.time,i.time),10),b.options.Et&&(g=e-b.Nv,i=f-b.Ov,Qe.abs(g)<b.options.dy&&Qe.abs(i)<b.options.dy?b.scrollTo(b.Nv,b.Ov,200):(g=b.tI(e,f),e=g.x,f=g.y,c=Qe.max(g.time,c))),b.scrollTo(Qe.round(e),Qe.round(f),c)):b.options.Et?(g=e-b.Nv,i=f-b.Ov,Qe.abs(g)<b.options.dy&&Qe.abs(i)<b.options.dy?b.scrollTo(b.Nv,b.Ov,200):(g=b.tI(b.x,b.y),(g.x!=b.x||g.y!=b.y)&&b.scrollTo(g.x,g.y,g.time))):b.Kn(200)}else{if(hf)if(b.QJ&&b.options.zoom)clearTimeout(b.QJ), b.QJ=q,b.options.ap&&b.options.ap.call(b,a),b.zoom(b.ih,b.jh,1==b.scale?b.options.FV:1),b.options.$o&&setTimeout(function(){b.options.$o.call(b,a)},200);else if(this.options.Ww){for(e=c.target;1!=e.nodeType;)e=e.parentNode;f=e.tagName.toLowerCase();"select"!=f&&"input"!=f&&"textarea"!=f?(f=Pe.createEvent("MouseEvents"),f.initMouseEvent("click",p,p,a.view,1,c.screenX,c.screenY,c.clientX,c.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,q),f.JQ=p,e.dispatchEvent(f)):e.focus()}b.Kn(400)}b.options.AM&& b.options.AM.call(b,a)}}},Kn:function(a){var b=0<=this.x?0:this.x<this.ge?this.ge:this.x,c=this.y>=this.nf||0<this.od?this.nf:this.y<this.od?this.od:this.y;if(b==this.x&&c==this.y){if(this.hh&&(this.hh=t,this.options.zx&&this.options.zx.call(this)),this.$h&&this.options.$w&&("webkit"==Se&&(this.dL.style[df]="300ms"),this.dL.style.opacity="0"),this.ri&&this.options.$w)"webkit"==Se&&(this.gO.style[df]="300ms"),this.gO.style.opacity="0"}else this.scrollTo(b,c,a||0)},QT:function(a){var b=this,c,e;if("wheelDeltaX"in a)c=a.wheelDeltaX/12,e=a.wheelDeltaY/12;else if("wheelDelta"in a)c=e=a.wheelDelta/12;else if("detail"in a)c=e=3*-a.detail;else return;if("zoom"==b.options.nO){if(e=b.scale*Math.pow(2,1/3*(e?e/Math.abs(e):0)),e<b.options.Pk&&(e=b.options.Pk),e>b.options.Cp&&(e=b.options.Cp),e!=b.scale)!b.my&&b.options.ap&&b.options.ap.call(b,a),b.my++,b.zoom(a.pageX,a.pageY,e,400),setTimeout(function(){b.my--;!b.my&&b.options.$o&&b.options.$o.call(b,a)},400)}else c=b.x+c,e=b.y+e,0<c?c=0:c<b.ge&&(c=b.ge),e>b.nf?e=b.nf: e<b.od&&(e=b.od),0>b.od&&b.scrollTo(c,e,0)},MT:function(a){a.target==this.Pb&&(this.Zd(qf),this.UA())},UA:function(){var a=this,b=a.x,c=a.y,e=Date.now(),f,g,i;a.Ml||(a.qj.length?(f=a.qj.shift(),f.x==b&&f.y==c&&(f.time=0),a.Ml=p,a.hh=p,a.options.qi)?(a.DI(f.time),a.Tq(f.x,f.y),a.Ml=t,f.time?a.ga(qf):a.Kn(0)):(i=function(){var k=Date.now(),m;if(k>=e+f.time){a.Tq(f.x,f.y);a.Ml=t;a.options.QY&&a.options.QY.call(a);a.UA()}else{k=(k-e)/f.time-1;g=Qe.sqrt(1-k*k);k=(f.x-b)*g+b;m=(f.y-c)*g+c;a.Tq(k,m);if(a.Ml)a.rB= rf(i)}},i()):a.Kn(400))},DI:function(a){a+="ms";this.Pb.style[af]=a;this.$h&&(this.DX.style[af]=a);this.ri&&(this.h0.style[af]=a)},zH:function(a,b,c,e,f){var b=Qe.abs(a)/b,g=b*b/0.0012;0<a&&g>c?(c+=f/(6/(6.0E-4*(g/b))),b=b*c/g,g=c):0>a&&g>e&&(e+=f/(6/(6.0E-4*(g/b))),b=b*e/g,g=e);return{Fa:g*(0>a?-1:1),time:Qe.round(b/6.0E-4)}},Oj:function(a){for(var b=-a.offsetLeft,c=-a.offsetTop;a=a.offsetParent;)b-=a.offsetLeft,c-=a.offsetTop;a!=this.Tm&&(b*=this.scale,c*=this.scale);return{left:b,top:c}},tI:function(a, b){var c,e,f;f=this.Ve.length-1;c=0;for(e=this.Ve.length;c<e;c++)if(a>=this.Ve[c]){f=c;break}f==this.NB&&(0<f&&0>this.VB)&&f--;a=this.Ve[f];e=(e=Qe.abs(a-this.Ve[this.NB]))?500*(Qe.abs(this.x-a)/e):0;this.NB=f;f=this.pf.length-1;for(c=0;c<f;c++)if(b>=this.pf[c]){f=c;break}f==this.OB&&(0<f&&0>this.WB)&&f--;b=this.pf[f];c=(c=Qe.abs(b-this.pf[this.OB]))?500*(Qe.abs(this.y-b)/c):0;this.OB=f;f=Qe.round(Qe.max(e,c))||200;return{x:a,y:b,time:f}},ga:function(a,b,c){(b||this.Pb).addEventListener(a,this,!!c)}, Zd:function(a,b,c){(b||this.Pb).removeEventListener(a,this,!!c)},TB:ha(2),refresh:function(){var a,b,c,e=0;b=0;this.scale<this.options.Pk&&(this.scale=this.options.Pk);this.Vt=this.Tm.clientWidth||1;this.Um=this.Tm.clientHeight||1;this.nf=-this.options.O_||0;this.Sx=Qe.round(this.Pb.offsetWidth*this.scale);this.jp=Qe.round((this.Pb.offsetHeight+this.nf)*this.scale);this.ge=this.Vt-this.Sx;this.od=this.Um-this.jp+this.nf;this.WB=this.VB=0;this.options.wM&&this.options.wM.call(this);this.Oo=this.options.Oo&& 0>this.ge;this.Qm=this.options.Qm&&(!this.options.xU&&!this.Oo||this.jp>this.Um);this.$h=this.Oo&&this.options.$h;this.ri=this.Qm&&this.options.ri&&this.jp>this.Um;a=this.Oj(this.Tm);this.oF=-a.left;this.pF=-a.top;if("string"==typeof this.options.Et){this.Ve=[];this.pf=[];c=this.Pb.querySelectorAll(this.options.Et);a=0;for(b=c.length;a<b;a++)e=this.Oj(c[a]),e.left+=this.oF,e.top+=this.pF,this.Ve[a]=e.left<this.ge?this.ge:e.left*this.scale,this.pf[a]=e.top<this.od?this.od:e.top*this.scale}else if(this.options.Et){for(this.Ve= [];e>=this.ge;)this.Ve[b]=e,e-=this.Vt,b++;this.ge%this.Vt&&(this.Ve[this.Ve.length]=this.ge-this.Ve[this.Ve.length-1]+this.Ve[this.Ve.length-1]);b=e=0;for(this.pf=[];e>=this.od;)this.pf[b]=e,e-=this.Um,b++;this.od%this.Um&&(this.pf[this.pf.length]=this.od-this.pf[this.pf.length-1]+this.pf[this.pf.length-1])}this.kv("h");this.kv("v");this.Qk||(this.Pb.style[af]="0",this.Kn(400))},scrollTo:function(a,b,c,e){var f=a;this.stop();f.length||(f=[{x:a,y:b,time:c,sZ:e}]);a=0;for(b=f.length;a<b;a++)f[a].sZ&& (f[a].x=this.x-f[a].x,f[a].y=this.y-f[a].y),this.qj.push({x:f[a].x,y:f[a].y,time:f[a].time||0});this.UA()},disable:function(){this.stop();this.Kn(0);this.enabled=t;this.Zd(nf,window);this.Zd(of,window);this.Zd(pf,window)},enable:function(){this.enabled=p},stop:function(){this.options.qi?this.Zd(qf):sf(this.rB);this.qj=[];this.Ml=this.hh=t},zoom:function(a,b,c,e){var f=c/this.scale;this.options.Nk&&(this.Qk=p,e=e===l?200:e,a=a-this.oF-this.x,b=b-this.pF-this.y,this.x=a-a*f+this.x,this.y=b-b*f+this.y, this.scale=c,this.refresh(),this.x=0<this.x?0:this.x<this.ge?this.ge:this.x,this.y=this.y>this.nf?this.nf:this.y<this.od?this.od:this.y,this.Pb.style[af]=e+"ms",this.Pb.style[Ze]="translate("+this.x+"px,"+this.y+"px) scale("+c+")"+tf,this.Qk=t)}};function Ye(a){if(""===Se)return a;a=a.charAt(0).toUpperCase()+a.substr(1);return Se+a}Re=q;function vf(a){this.m={anchor:Yb,offset:new P(0,0),maxWidth:"100%",imageHeight:80};var a=a||{},b;for(b in a)this.m[b]=a[b];this.Al=new ec(q,{kf:"api"});this.Qj=[];this.W=q;this.cg={height:this.m.imageHeight,width:this.m.imageHeight*wf};this.Rc=this.JA=this.Pl=this.Yc=q}var xf=[0,1,2,2,2,2,2,2,2,3,3,3,3,4,5,5,5,6,6,7,8,8,8,9,10],yf="\u5176\u4ed6 \u6b63\u95e8 \u623f\u578b \u8bbe\u65bd \u6b63\u95e8 \u9910\u996e\u8bbe\u65bd \u5176\u4ed6\u8bbe\u65bd \u6b63\u95e8 \u8bbe\u65bd \u89c2\u5f71\u5385 \u5176\u4ed6\u8bbe\u65bd".split(" "); D.xm(function(a){var b=q;a.addEventListener("position_changed",function(){a.m.visible&&a.m.albumsControl===p&&(b?b.Nx(a.Zb()):(b=new vf(a.m.albumsControlOptions),b.xa(a)))});a.addEventListener("albums_visible_changed",function(){a.m.albumsControl===p?(b?b.Nx(a.Zb()):(b=new vf(a.m.albumsControlOptions),b.xa(a)),b.show()):b.aa()});a.addEventListener("albums_options_changed",function(){b&&b.Ek(a.m.albumsControlOptions)});a.addEventListener("visible_changed",function(){b&&(a.qD()?a.m.albumsControl=== p&&(b.P.style.visibility="visible"):b.P.style.visibility="hidden")})});var wf=1.8;I()&&(wf=1); z.extend(vf.prototype,{Ek:function(a){for(var b in a)this.m[b]=a[b];a=this.m.imageHeight+"px";this.uc(this.m.anchor);this.P.style.width=isNaN(Number(this.m.maxWidth))===p?this.m.maxWidth:this.m.maxWidth+"px";this.P.style.height=a;this.Vj.style.height=a;this.Jh.style.height=a;this.cg={height:this.m.imageHeight,width:this.m.imageHeight*wf};this.Uj.style.height=this.cg.height-6+"px";this.Uj.style.width=this.cg.width-6+"px";this.Nx(this.W.Zb(),p)},xa:function(a){this.W=a;this.Fr();this.pP();this.VX(); this.Nx(a.Zb())},Fr:function(){var a=this.m.imageHeight+"px";this.P=O("div");var b=this.P.style;b.cssText="background:rgb(37,37,37);background:rgba(37,37,37,0.9);";b.position="absolute";b.zIndex="2000";b.width=isNaN(Number(this.m.maxWidth))===p?this.m.maxWidth:this.m.maxWidth+"px";b.padding="8px 0";b.visibility="hidden";b.height=a;this.Vj=O("div");b=this.Vj.style;b.position="absolute";b.overflow="hidden";b.width="100%";b.height=a;this.Jh=O("div");b=this.Jh.style;b.height=a;this.Vj.appendChild(this.Jh); this.P.appendChild(this.Vj);this.W.P.appendChild(this.P);this.Uj=O("div",{"class":"pano_photo_item_seleted"});this.Uj.style.height=this.cg.height-6+"px";this.Uj.style.width=this.cg.width-6+"px";this.uc(this.m.anchor)},UG:function(a){for(var b=this.Qj,c=b.length-1;0<=c;c--)if(b[c].panoId==a)return c;return-1},Nx:function(a,b){if(b||!this.Qj[this.Yc]||!(this.Qj[this.Yc].panoId==a&&3!==this.Qj[this.Yc].recoType)){var c=this,e=this.UG(a);!b&&-1!==e&&this.Qj[e]&&3!==this.Qj[e].recoType?this.mp(e):this.iX(function(a){for(var b= {},e,k,m=t,n=[],o=0,s=a.length;o<s;o++)e=a[o].catlog,k=a[o].floor,l!==e&&(""===e&&l!==k?(m=p,b[k]||(b[k]=[]),b[k].push(a[o])):(b[xf[e]]||(b[xf[e]]=[]),b[xf[e]].push(a[o])));for(var v in b)m?n.push({data:v+"F",index:v}):n.push({data:yf[v],index:v});c.nG=b;c.Ei=n;c.xl(a);0==a.length?c.aa():c.show()})}},lV:function(){if(!this.Bi){var a=this.WW(this.Ei),b=O("div");b.style.cssText=["width:"+134*this.Ei.length+"px;","overflow:hidden;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;"].join(""); b.innerHTML=a;a=O("div");a.appendChild(b);a.style.cssText="position:absolute;top:-25px;background:rgb(37,37,37);background:rgba(37,37,37,0.9);border-bottom:1px solid #4e596a;width:100%;line-height:25px;height:25px;overflow:scroll;outline:0";new uf(a,{ko:t,tx:p,$h:t,ri:t,Qm:t,TD:p,bw:p,Ww:p});this.P.appendChild(a);for(var c=this,e=b.getElementsByTagName("span"),f=0,g=e.length;f<g;f++)b=e[f],z.V(b,"click",function(){if(this.getAttribute("dataindex")){c.xl(c.nG[this.getAttribute("dataindex")]);for(var a= 0,b=e.length;a<b;a++)e[a].style.color="#FFFFFF";this.style.color="#3383FF"}});this.Bi=a}},iV:function(){if(this.Bi)a=this.wK(this.Ei),this.FP.innerHTML=a;else{var a=this.wK(this.Ei),b=O("ul"),c=this;b.style.cssText="list-style: none;padding:0px;margin:0px;display:block;width:60px;position:absolute;top:7px";b.innerHTML=a;z.V(b,"click",function(a){if(a=(a.srcElement||a.target).getAttribute("dataindex")){c.xl(c.nG[a]);for(var e=b.getElementsByTagName("li"),f=0,g=e.length;f<g;f++)e[f].childNodes[0].getAttribute("dataindex")=== a?z.U.eb(e[f],"pano_catlogLiActive"):z.U.tc(e[f],"pano_catlogLiActive")}});var a=O("div"),e=O("a"),f=O("span"),g=O("a"),i=O("span"),k=["background:url("+H.sa+"panorama/catlog_icon.png) no-repeat;","display:block;width:10px;height:7px;margin:0 auto;"].join("");f.style.cssText=k+"background-position:-18px 0;";e.style.cssText="background:#1C1C1C;display:block;position:absolute;width:58px;";i.style.cssText=k+"background-position:0 0;";g.style.cssText="background:#1C1C1C;display:block;position:absolute;width:58px;"; g.style.top=this.m.imageHeight-7+"px";a.style.cssText="position:absolute;top:0px;left:0px;width:60px;";e.appendChild(f);g.appendChild(i);z.V(e,"mouseover",function(){var a=parseInt(b.style.top,10);7!==a&&(f.style.backgroundPosition="-27px 0");new vb({Hc:60,dc:wb.Yr,duration:300,za:function(c){b.style.top=a+(7-a)*c+"px"}})});z.V(e,"mouseout",function(){f.style.backgroundPosition="-18px 0"});z.V(g,"mouseover",function(){var a=parseInt(b.style.top,10),e=c.m.imageHeight-14;if(!(parseInt(b.offsetHeight, 10)<e)){var f=e-parseInt(b.offsetHeight,10)+7;f!==a&&(i.style.backgroundPosition="-9px 0");new vb({Hc:60,dc:wb.Yr,duration:300,za:function(c){b.style.top=a+(f-a)*c+"px"}})}});z.V(g,"mouseout",function(){i.style.backgroundPosition="0 0"});a.appendChild(e);a.appendChild(g);e=O("div");e.style.cssText=["position:absolute;z-index:2001;left:20px;","height:"+this.m.imageHeight+"px;","width:62px;overflow:hidden;background:rgb(37,37,37);background:rgba(37,37,37,0.9);"].join("");e.appendChild(b);e.appendChild(a); this.Bi=e;this.FP=b;this.P.appendChild(e)}},jV:function(){if(this.Ei&&!(0>=this.Ei.length)){var a=O("div");a.innerHTML=this.mz;a.style.cssText="position:absolute;background:#252525";this.P.appendChild(a);this.bs=a;this.Rc.eg.style.left=this.cg.width+8+"px";this.Bi&&(this.Bi.style.left=parseInt(this.Bi.style.left,10)+this.cg.width+8+"px");var b=this;z.V(a,"click",function(){b.W.Cc(b.eW)})}},xl:function(a){this.Qj=a;this.m.showCatalog&&(0<this.Ei.length?(Xa()?this.iV():this.lV(),this.Rc.offsetLeft= 60):(this.bs&&(this.P.removeChild(this.bs),this.bs=q,this.Rc.eg.style.left="0px"),this.Bi&&(this.P.removeChild(this.Bi),this.Bi=q),this.Rc.offsetLeft=0));var b=this.PW(a);Xa()&&(this.Ei&&0<this.Ei.length&&this.m.showExit&&this.mz)&&(this.Rc.offsetLeft+=this.cg.width+8,this.bs?this.bs.innerHTML=this.mz:this.jV());this.Jh.innerHTML=b;this.Jh.style.width=(this.cg.width+8)*a.length+8+"px";a=this.P.offsetWidth;b=this.Jh.offsetWidth;this.Rc.is&&(b+=this.Rc.is());b<a-2*this.Rc.ui-this.Rc.offsetLeft?this.P.style.width= b+this.Rc.offsetLeft+"px":(this.P.style.width=isNaN(Number(this.m.maxWidth))===p?this.m.maxWidth:this.m.maxWidth+"px",b<this.P.offsetWidth-2*this.Rc.ui-this.Rc.offsetLeft&&(this.P.style.width=b+this.Rc.offsetLeft+"px"));this.Rc.refresh();this.JA=this.Jh.children;this.Jh.appendChild(this.Uj);this.Uj.style.left="-100000px";a=this.UG(this.W.Zb(),this.y1);-1!==a&&this.mp(a)},WW:function(a){for(var b="",c,e=0,f=a.length;e<f;e++)c='<div style="color:white;opacity:0.5;margin:0 35px;float:left;text-align: center"><span  dataIndex="'+ a[e].index+'">'+a[e].data+"</span></div>",b+=c;return b},wK:function(a){for(var b="",c,e=0,f=a.length;e<f;e++)c='<li class="pano_catlogLi"><span style="display:block;width:100%;" dataIndex="'+a[e].index+'">'+a[e].data+"</span></li>",b+=c;return b},PW:function(a){for(var b,c,e,f,g=[],i=this.cg.height,k=this.cg.width,m=0;m<a.length;m++)b=a[m],recoType=b.recoType,e=b.panoId,f=b.name,c=b.heading,b=b.pitch,c=Oe.JK(e,c,b,198,108),b='<a href="javascript:void(0);" class="pano_photo_item" data-index="'+m+ '"><img style="width:'+(k-2)+"px;height:"+(i-2)+'px;" data-index="'+m+'" name="'+f+'" src="'+c+'" alt="'+f+'"/><span class="pano_photo_decs" data-index="'+m+'" style="width:'+k+"px;font-size:"+Math.floor(i/6)+"px; line-height:"+Math.floor(i/6)+'px;"><em class="pano_poi_'+recoType+'"></em>'+f+"</span></a>",3===recoType?Xa()?(this.mz=b,this.eW=e,a.splice(m,1),m--):(b='<a href="javascript:void(0);" class="pano_photo_item" data-index="'+m+'"><img style="width:'+(k-2)+"px;height:"+(i-2)+'px;" data-index="'+ m+'" name="'+f+'" src="'+c+'" alt="'+f+'"/><div style="background:rgba(37,37,37,0.5);position:absolute;top:0px;left:0px;width:100%;height:100%;text-align: center;line-height:'+this.m.imageHeight+'px;" data-index="'+m+'"><img src="'+H.sa+'panorama/photoexit.png" style="border:none;vertical-align:middle;" data-index="'+m+'" alt=""/></div></a>',g.push(b)):g.push(b);return g.join("")},iX:function(a){var b=this,c=this.W.Zb();c&&this.Al.Tw(c,function(e){b.W.Zb()===c&&a(e)})},uc:function(a){if(!Za(a)||isNaN(a)|| a<Wb||3<a)a=this.defaultAnchor;var b=this.P,c=this.m.offset.width,e=this.m.offset.height;b.style.left=b.style.top=b.style.right=b.style.bottom="auto";switch(a){case Wb:b.style.top=e+"px";b.style.left=c+"px";break;case Xb:b.style.top=e+"px";b.style.right=c+"px";break;case Yb:b.style.bottom=e+"px";b.style.left=c+"px";break;case 3:b.style.bottom=e+"px",b.style.right=c+"px"}},pP:function(){this.nP()},nP:function(){var a=this;z.V(this.P,"touchstart",function(a){a.stopPropagation()});z.V(this.Vj,"click", function(b){if((b=(b.srcElement||b.target).getAttribute("data-index"))&&b!=a.Yc)a.mp(b),a.W.Cc(a.Qj[b].panoId)});z.V(this.Jh,"mouseover",function(b){b=(b.srcElement||b.target).getAttribute("data-index");b!==q&&a.zJ(b,p)});this.W.addEventListener("size_changed",function(){isNaN(Number(a.m.maxWidth))&&a.Ek({maxWidth:a.m.maxWidth})})},mp:function(a){this.Uj.style.left=this.JA[a].offsetLeft+8+"px";this.Uj.setAttribute("data-index",this.JA[a].getAttribute("data-index"));this.Yc=a;this.zJ(a)},zJ:function(a, b){var c=this.cg.width+8,e=0;this.Rc.is&&(e=this.Rc.is()/2);var f=this.Vj.offsetWidth-2*e,g=this.Jh.offsetLeft||this.Rc.x,g=g-e,i=-a*c;i>g&&this.Rc.scrollTo(i+e);c=i-c;g-=f;c<g&&(!b||b&&8<i-g)&&this.Rc.scrollTo(c+f+e)},VX:function(){this.Rc=I()?new uf(this.Vj,{ko:t,tx:p,$h:t,ri:t,Qm:t,TD:p,bw:p,Ww:p}):new zf(this.Vj)},aa:function(){this.P.style.visibility="hidden"},show:function(){this.P.style.visibility="visible"}}); function zf(a){this.P=a;this.Rg=a.children[0];this.jr=q;this.ui=20;this.offsetLeft=0;this.xa()} zf.prototype={xa:function(){this.Rg.style.position="relative";this.refresh();this.Fr();this.tB()},refresh:function(){this.Gn=this.P.offsetWidth-this.is();this.gA=-(this.Rg.offsetWidth-this.Gn-this.ui);this.Wu=this.ui+this.offsetLeft;this.Rg.style.left=this.Wu+"px";this.Rg.children[0]&&(this.jr=this.Rg.children[0].offsetWidth);this.eg&&(this.eg.children[0].style.marginTop=this.$q.children[0].style.marginTop=this.eg.offsetHeight/2-this.eg.children[0].offsetHeight/2+"px")},is:function(){return 2*this.ui}, Fr:function(){this.lv=O("div");this.lv.innerHTML='<a class="pano_photo_arrow_l" style="background:rgb(37,37,37);background:rgba(37,37,37,0.9);" href="javascript:void(0)" title="\u4e0a\u4e00\u9875"><span class="pano_arrow_l"></span></a><a class="pano_photo_arrow_r" style="background:rgb(37,37,37);background:rgba(37,37,37,0.9);" href="javascript:void(0)" title="\u4e0b\u4e00\u9875"><span class="pano_arrow_r"></span></a>';this.eg=this.lv.children[0];this.$q=this.lv.children[1];this.P.appendChild(this.lv); this.eg.children[0].style.marginTop=this.$q.children[0].style.marginTop=this.eg.offsetHeight/2-this.eg.children[0].offsetHeight/2+"px"},tB:function(){var a=this;z.V(this.eg,"click",function(){a.scrollTo(a.Rg.offsetLeft+a.Gn)});z.V(this.$q,"click",function(){a.scrollTo(a.Rg.offsetLeft-a.Gn)})},NT:function(){z.U.tc(this.eg,"pano_arrow_disable");z.U.tc(this.$q,"pano_arrow_disable");var a=this.Rg.offsetLeft;a>=this.Wu&&z.U.eb(this.eg,"pano_arrow_disable");a-this.Gn<=this.gA&&z.U.eb(this.$q,"pano_arrow_disable")}, scrollTo:function(a){a=a<this.Rg.offsetLeft?Math.ceil((a-this.ui-this.Gn)/this.jr)*this.jr+this.Gn+this.ui-8:Math.ceil((a-this.ui)/this.jr)*this.jr+this.ui;a<this.gA?a=this.gA:a>this.Wu&&(a=this.Wu);var b=this.Rg.offsetLeft,c=this;new vb({Hc:60,dc:wb.Yr,duration:300,za:function(e){c.Rg.style.left=b+(a-b)*e+"px"},finish:function(){c.NT()}})}};D.Map=Oa;D.Hotspot=kb;D.MapType=Dd;D.Point=J;D.Pixel=R;D.Size=P;D.Bounds=hb;D.TileLayer=Mc;D.Projection=jc;D.MercatorProjection=S;D.PerspectiveProjection=jb;D.Copyright=function(a,b,c){this.id=a;this.fb=b;this.content=c};D.Overlay=mc;D.Label=uc;D.GroundOverlay=vc;D.PointCollection=zc;D.Marker=W;D.CanvasLayer=Cc;D.Icon=qc;D.IconSequence=sc;D.Symbol=rc;D.Polyline=Gc;D.Polygon=Fc;D.InfoWindow=tc;D.Circle=Hc;D.Control=Ub;D.NavigationControl=lb;D.GeolocationControl=Zb;D.OverviewMapControl=nb; D.CopyrightControl=$b;D.ScaleControl=mb;D.MapTypeControl=ob;D.CityListControl=ac;D.PanoramaControl=cc;D.TrafficLayer=Uc;D.CustomLayer=pb;D.ContextMenu=fc;D.MenuItem=ic;D.LocalSearch=fb;D.TransitRoute=ee;D.DrivingRoute=he;D.WalkingRoute=ie;D.RidingRoute=je;D.Autocomplete=xe;D.RouteSearch=oe;D.Geocoder=pe;D.LocalCity=re;D.Geolocation=Geolocation;D.Convertor=lc;D.BusLineSearch=we;D.Boundary=ve;D.Panorama=Ra;D.PanoramaLabel=De;D.PanoramaService=ec;D.PanoramaCoverageLayer=dc;D.PanoramaFlashInterface=Me;function V(a,b){for(var c in b)a[c]=b[c]}V(window,{BMap:D,_jsload2:function(a,b){ja.ey.jY&&ja.ey.set(a,b);K.KU(a,b)},BMAP_API_VERSION:"2.0"});var Af=Oa.prototype; V(Af,{getBounds:Af.te,getCenter:Af.Db,getMapType:Af.va,getSize:Af.Eb,setSize:Af.Be,getViewport:Af.ys,getZoom:Af.ja,centerAndZoom:Af.Ed,panTo:Af.ki,panBy:Af.xg,setCenter:Af.qf,setCurrentCity:Af.CE,setMapType:Af.Ag,setViewport:Af.oh,setZoom:Af.Qc,highResolutionEnabled:Af.bx,zoomTo:Af.Cg,zoomIn:Af.qF,zoomOut:Af.rF,addHotspot:Af.iB,removeHotspot:Af.uZ,clearHotspots:Af.gw,checkResize:Af.NU,addControl:Af.vr,removeControl:Af.UM,getContainer:Af.Ta,addContextMenu:Af.$n,removeContextMenu:Af.dp,addOverlay:Af.Pa, removeOverlay:Af.Ub,clearOverlays:Af.wJ,openInfoWindow:Af.ad,closeInfoWindow:Af.Xc,pointToOverlayPixel:Af.We,overlayPixelToPoint:Af.DM,getInfoWindow:Af.bh,getOverlays:Af.Qw,getPanes:function(){return{floatPane:this.Xd.GC,markerMouseTarget:this.Xd.WD,floatShadow:this.Xd.nK,labelPane:this.Xd.PD,markerPane:this.Xd.bM,markerShadow:this.Xd.cM,mapPane:this.Xd.Ss,vertexPane:this.Xd.jO}},addTileLayer:Af.Ne,removeTileLayer:Af.Vf,pixelToPoint:Af.Ib,pointToPixel:Af.Tb,setFeatureStyle:Af.e5,selectBaseElement:Af.X4, setMapStyle:Af.ot,enable3DBuilding:Af.vo,disable3DBuilding:Af.zV,getPanorama:Af.ss,initIndoorLayer:Af.WX,setNormalMapDisplay:Af.Ux,setMapStyleV2:Af.$Z,setBMapCopyrightOffset:Af.BE,getVectorContainer:Af.xX});var Bf=Dd.prototype;V(Bf,{getTileLayer:Bf.rX,getMinZoom:Bf.aj,getMaxZoom:Bf.Yh,getProjection:Bf.qk,getTextColor:Bf.im,getTips:Bf.xs});V(window,{BMAP_NORMAL_MAP:Pa,BMAP_PERSPECTIVE_MAP:Sa,BMAP_SATELLITE_MAP:ab,BMAP_HYBRID_MAP:Va});var Cf=S.prototype;V(Cf,{lngLatToPoint:Cf.ug,pointToLngLat:Cf.pj}); var Df=jb.prototype;V(Df,{lngLatToPoint:Df.ug,pointToLngLat:Df.pj});var Ef=hb.prototype;V(Ef,{equals:Ef.Yb,containsPoint:Ef.Dr,containsBounds:Ef.ZU,intersects:Ef.Gs,extend:Ef.extend,getCenter:Ef.Db,isEmpty:Ef.lj,getSouthWest:Ef.Te,getNorthEast:Ef.Nf,toSpan:Ef.aF});var Ff=mc.prototype;V(Ff,{isVisible:Ff.Oc,show:Ff.show,hide:Ff.aa});mc.getZIndex=mc.sk;var Gf=ib.prototype; V(Gf,{openInfoWindow:Gf.ad,closeInfoWindow:Gf.Xc,enableMassClear:Gf.Yi,disableMassClear:Gf.BV,show:Gf.show,hide:Gf.aa,getMap:Gf.Mw,addContextMenu:Gf.$n,removeContextMenu:Gf.dp});var Hf=W.prototype;V(Hf,{setIcon:Hf.Vb,getIcon:Hf.Fo,setPosition:Hf.ua,getPosition:Hf.ka,setOffset:Hf.Ld,getOffset:Hf.cj,getLabel:Hf.$C,setLabel:Hf.Hm,setTitle:Hf.Dc,setTop:Hf.oi,enableDragging:Hf.Xb,disableDragging:Hf.YB,setZIndex:Hf.sp,getMap:Hf.Mw,setAnimation:Hf.Gm,setShadow:Hf.Xx,hide:Hf.aa,setRotation:Hf.op,getRotation:Hf.NK}); V(window,{BMAP_ANIMATION_DROP:1,BMAP_ANIMATION_BOUNCE:2});var If=uc.prototype;V(If,{setStyle:If.Md,setStyles:If.ni,setContent:If.cd,setPosition:If.ua,getPosition:If.ka,setOffset:If.Ld,getOffset:If.cj,setTitle:If.Dc,setZIndex:If.sp,getMap:If.Mw,getContent:If.lk});var Jf=qc.prototype;V(Jf,{setImageUrl:Jf.kN,setSize:Jf.Be,setAnchor:Jf.uc,setImageOffset:Jf.nt,setImageSize:Jf.UZ,setInfoWindowAnchor:Jf.XZ,setPrintImageUrl:Jf.i_});var Kf=tc.prototype; V(Kf,{redraw:Kf.ie,setTitle:Kf.Dc,setContent:Kf.cd,getContent:Kf.lk,getPosition:Kf.ka,enableMaximize:Kf.Zg,disableMaximize:Kf.xw,isOpen:Kf.Za,setMaxContent:Kf.ut,maximize:Kf.sx,enableAutoPan:Kf.Zr});var Lf=oc.prototype; V(Lf,{getPath:Lf.Se,setPath:Lf.je,setPositionAt:Lf.Jm,getStrokeColor:Lf.oX,setStrokeWeight:Lf.rp,getStrokeWeight:Lf.QK,setStrokeOpacity:Lf.pp,getStrokeOpacity:Lf.pX,setFillOpacity:Lf.mt,getFillOpacity:Lf.JW,setStrokeStyle:Lf.qp,getStrokeStyle:Lf.PK,getFillColor:Lf.IW,getBounds:Lf.te,enableEditing:Lf.hf,disableEditing:Lf.AV,getEditing:Lf.FW,getGeodesicPath:Lf.LW});var Mf=Hc.prototype;V(Mf,{setCenter:Mf.qf,getCenter:Mf.Db,getRadius:Mf.LK,setRadius:Mf.rf});var Nf=Fc.prototype; V(Nf,{getPath:Nf.Se,setPath:Nf.je,setPositionAt:Nf.Jm});var Of=kb.prototype;V(Of,{getPosition:Of.ka,setPosition:Of.ua,getText:Of.kD,setText:Of.yt});J.prototype.equals=J.prototype.Yb;R.prototype.equals=R.prototype.Yb;P.prototype.equals=P.prototype.Yb;V(window,{BMAP_ANCHOR_TOP_LEFT:Wb,BMAP_ANCHOR_TOP_RIGHT:Xb,BMAP_ANCHOR_BOTTOM_LEFT:Yb,BMAP_ANCHOR_BOTTOM_RIGHT:3});var Pf=Ub.prototype;V(Pf,{setAnchor:Pf.uc,getAnchor:Pf.NC,setOffset:Pf.Ld,getOffset:Pf.cj,show:Pf.show,hide:Pf.aa,isVisible:Pf.Oc,toString:Pf.toString}); var Qf=lb.prototype;V(Qf,{getType:Qf.Mo,setType:Qf.Km});V(window,{BMAP_NAVIGATION_CONTROL_LARGE:0,BMAP_NAVIGATION_CONTROL_SMALL:1,BMAP_NAVIGATION_CONTROL_PAN:2,BMAP_NAVIGATION_CONTROL_ZOOM:3});var Rf=nb.prototype;V(Rf,{changeView:Rf.qe,setSize:Rf.Be,getSize:Rf.Eb});var Sf=mb.prototype;V(Sf,{getUnit:Sf.wX,setUnit:Sf.JE});V(window,{BMAP_UNIT_METRIC:"metric",BMAP_UNIT_IMPERIAL:"us"});var Tf=$b.prototype;V(Tf,{addCopyright:Tf.Rv,removeCopyright:Tf.pE,getCopyright:Tf.bm,getCopyrightCollection:Tf.UC}); V(window,{BMAP_MAPTYPE_CONTROL_HORIZONTAL:bc,BMAP_MAPTYPE_CONTROL_DROPDOWN:1,BMAP_MAPTYPE_CONTROL_MAP:2});var Uf=Mc.prototype;V(Uf,{getMapType:Uf.va,getCopyright:Uf.bm,isTransparentPng:Uf.Ns});var Vf=fc.prototype;V(Vf,{addItem:Vf.Sv,addSeparator:Vf.lB,removeSeparator:Vf.rE});var Wf=ic.prototype;V(Wf,{setText:Wf.yt});var Xf=Y.prototype; V(Xf,{getStatus:Xf.gm,setSearchCompleteCallback:Xf.xt,getPageCapacity:Xf.lf,setPageCapacity:Xf.np,setLocation:Xf.Im,disableFirstResultSelection:Xf.ZB,enableFirstResultSelection:Xf.sC,gotoPage:Xf.jm,searchNearby:Xf.kp,searchInBounds:Xf.Fm,search:Xf.search});V(window,{BMAP_STATUS_SUCCESS:0,BMAP_STATUS_CITY_LIST:1,BMAP_STATUS_UNKNOWN_LOCATION:Nd,BMAP_STATUS_UNKNOWN_ROUTE:3,BMAP_STATUS_INVALID_KEY:4,BMAP_STATUS_INVALID_REQUEST:5,BMAP_STATUS_PERMISSION_DENIED:Od,BMAP_STATUS_SERVICE_UNAVAILABLE:7,BMAP_STATUS_TIMEOUT:Pd}); V(window,{BMAP_POI_TYPE_NORMAL:0,BMAP_POI_TYPE_BUSSTOP:1,BMAP_POI_TYPE_BUSLINE:2,BMAP_POI_TYPE_SUBSTOP:3,BMAP_POI_TYPE_SUBLINE:4});V(window,{BMAP_TRANSIT_POLICY_RECOMMEND:0,BMAP_TRANSIT_POLICY_LEAST_TIME:4,BMAP_TRANSIT_POLICY_LEAST_TRANSFER:1,BMAP_TRANSIT_POLICY_LEAST_WALKING:2,BMAP_TRANSIT_POLICY_AVOID_SUBWAYS:3,BMAP_TRANSIT_POLICY_FIRST_SUBWAYS:5,BMAP_LINE_TYPE_BUS:0,BMAP_LINE_TYPE_SUBWAY:1,BMAP_LINE_TYPE_FERRY:2,BMAP_LINE_TYPE_TRAIN:3,BMAP_LINE_TYPE_AIRPLANE:4,BMAP_LINE_TYPE_COACH:5}); V(window,{BMAP_TRANSIT_TYPE_POLICY_TRAIN:0,BMAP_TRANSIT_TYPE_POLICY_AIRPLANE:1,BMAP_TRANSIT_TYPE_POLICY_COACH:2});V(window,{BMAP_INTERCITY_POLICY_LEAST_TIME:0,BMAP_INTERCITY_POLICY_EARLY_START:1,BMAP_INTERCITY_POLICY_CHEAP_PRICE:2});V(window,{BMAP_TRANSIT_TYPE_IN_CITY:0,BMAP_TRANSIT_TYPE_CROSS_CITY:1});V(window,{BMAP_TRANSIT_PLAN_TYPE_ROUTE:0,BMAP_TRANSIT_PLAN_TYPE_LINE:1});var Yf=de.prototype;V(Yf,{clearResults:Yf.Qe});fe=ee.prototype; V(fe,{setPolicy:fe.wt,toString:fe.toString,setPageCapacity:fe.np,setIntercityPolicy:fe.nN,setTransitTypePolicy:fe.vN});V(window,{BMAP_DRIVING_POLICY_DEFAULT:0,BMAP_DRIVING_POLICY_AVOID_HIGHWAYS:3,BMAP_DRIVING_POLICY_AVOID_CONGESTION:5,BMAP_DRIVING_POLICY_FIRST_HIGHWAYS:4});V(window,{BMAP_MODE_DRIVING:"driving",BMAP_MODE_TRANSIT:"transit",BMAP_MODE_WALKING:"walking",BMAP_MODE_NAVIGATION:"navigation"});var Zf=oe.prototype;V(Zf,{routeCall:Zf.fN});V(window,{BMAP_HIGHLIGHT_STEP:1,BMAP_HIGHLIGHT_ROUTE:2}); V(window,{BMAP_ROUTE_TYPE_DRIVING:Rd,BMAP_ROUTE_TYPE_WALKING:Qd,BMAP_ROUTE_TYPE_RIDING:Sd});V(window,{BMAP_ROUTE_STATUS_NORMAL:Td,BMAP_ROUTE_STATUS_EMPTY:1,BMAP_ROUTE_STATUS_ADDRESS:2});var $f=he.prototype;V($f,{setPolicy:$f.wt});var ag=xe.prototype;V(ag,{show:ag.show,hide:ag.aa,setTypes:ag.IE,setLocation:ag.Im,search:ag.search,setInputValue:ag.Tx});V(pb.prototype,{});var cg=ve.prototype;V(cg,{get:cg.get});V(dc.prototype,{});V(window,{BMAP_POINT_DENSITY_HIGH:200,BMAP_POINT_DENSITY_MEDIUM:Xc,BMAP_POINT_DENSITY_LOW:50}); V(window,{BMAP_POINT_SHAPE_STAR:1,BMAP_POINT_SHAPE_WATERDROP:2,BMAP_POINT_SHAPE_CIRCLE:wc,BMAP_POINT_SHAPE_SQUARE:4,BMAP_POINT_SHAPE_RHOMBUS:5});V(window,{BMAP_POINT_SIZE_TINY:1,BMAP_POINT_SIZE_SMALLER:2,BMAP_POINT_SIZE_SMALL:3,BMAP_POINT_SIZE_NORMAL:xc,BMAP_POINT_SIZE_BIG:5,BMAP_POINT_SIZE_BIGGER:6,BMAP_POINT_SIZE_HUGE:7}); V(window,{BMap_Symbol_SHAPE_CAMERA:11,BMap_Symbol_SHAPE_WARNING:12,BMap_Symbol_SHAPE_SMILE:13,BMap_Symbol_SHAPE_CLOCK:14,BMap_Symbol_SHAPE_POINT:9,BMap_Symbol_SHAPE_PLANE:10,BMap_Symbol_SHAPE_CIRCLE:1,BMap_Symbol_SHAPE_RECTANGLE:2,BMap_Symbol_SHAPE_RHOMBUS:3,BMap_Symbol_SHAPE_STAR:4,BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW:5,BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW:6,BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW:7,BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW:8});V(window,{BMAP_CONTEXT_MENU_ICON_ZOOMIN:gc,BMAP_CONTEXT_MENU_ICON_ZOOMOUT:hc}); V(window,{BMAP_SYS_DRAWER:Na,BMAP_SVG_DRAWER:1,BMAP_VML_DRAWER:2,BMAP_CANVAS_DRAWER:3,BMAP_SVG_DRAWER_FIRST:4});D.fU();D.m0(); })() 