qqmap.js 121 KB
define("mk7/qqmap",[],function(){"use strict";function yh(t,e){var n;return jf?n=Vf(t).__events_:(t.__events_||(t.__events_={}),n=t.__events_),n[e]||(n[e]={}),n[e]}function Vf(t){var e;return t&&t.__oid_&&(e=D.eventObjects[t.__oid_]),!e&&t&&(t.__oid_=++pj,e={__events_:{}},D.eventObjects[t.__oid_]=e),e}function Md(t,e){var n,i={};if(jf?(n=Vf(t))&&(i=n.__events_):i=t.__events_||{},e)n=i[e]||{};else for(e in n={},i)qj(n,i[e]);return n}function rj(t){return function(){var e=t.handler;return t.bindHandler=function(n){if((n=n||window.event)&&!n.target)try{n.target=n.srcElement}catch(i){}var r=e.apply(t.instance,[n]);return(!n||"click"!=n.type||!(n=n.srcElement)||"A"!=n.tagName||"javascript:void(0)"!=n.href)&&r}}()}function sj(t){t.returnValue=!0}function Wf(t,e,n){return function(){for(var i=[e,t],r=arguments.length,o=0;o<r;++o)i.push(arguments[o]);D.trigger.apply(this,i),n&&sj.apply(null,arguments)}}function tj(t,e){return function(){var n=Array.prototype.slice.call(arguments,0);n.push(this),e.apply(t,n)}}function ac(t,e,n,i){this.instance=t,this.eventName=e,this.handler=n,this.bindHandler=null,this.browser=i,this.id=++uj,yh(t,e)[this.id]=this,jf&&"tagName"in t&&(D.listeners[this.id]=this)}function Xf(t){this.grids=t}function vj(t,e){for(var n="https:"==window.location.protocol?"https://":"http://",i=1;i<t.length;i++){var r=t[i];if(r)switch(i){case 1:r[0]&&!sc(r[0])&&(t[i][0]=n+r[0]),r[2]&&!sc(r[2])&&(t[i][2]=n+r[2]);break;case 3:r[1]&&!sc(r[1])&&(t[i][1]=n+r[1]),r[2]&&!sc(r[2])&&(t[i][2]=n+r[2]);break;case 4:t[i]=ie(r,n);break;case 5:for(var o=0;o<r.length;o++){var s=r[o];s&&(7===o?(t[i][o][0]=ie(s[0],n),t[i][o][5]=ie(s[5],n)):t[i][o][1]=ie(s[1],n))}break;case 6:r[0]&&!sc(r[0])&&(t[i][0]=n+r[0]),r[1]&&!sc(r[1])&&(t[i][1]=n+r[1])}}zh[0]=t,Ah[1]=e}function sc(t){return t&&(0===t.indexOf("http://")||0===t.indexOf("https://"))}function ie(t,e){for(var n=0;n<t.length;n++)t[n]&&!sc(t[n])&&(t[n]=e+t[n]);return t}function wj(){for(var t=0;t<ic.length;t++)if(ic[t]===this){ic.splice(t,1);break}}function Bh(t){for(var e=xj,n=0;Ec[n]&&(e-=Ec[n][2],0<=e);)n++;0==n?Ec.length&&Ec.shift():(e=Ec.splice(0,n),0<e.length&&yj(e,t),0<Ec.length&&Bh(t))}function yj(t,e){var n=[Ch];n.push("logid="+(e?2:1)),zj(t,function(t){n.push(t[0]+"="+t[1])});var i=n.join("&");Aj(i)}function Bj(t,e){if(Cj(t)){for(var n in t)if(t.hasOwnProperty(n)){var i=t[n]+"";Ec.push([n,i,n.length+i+2])}}else Dj(e)||(e+=""),Ec.push([t,e,t.length+e.length+2])}function lf(t){Dh.trigger(Yf,"submit",Bj,t),Bh(t)}function Eh(t,e){-180==t&&180!=e&&(t=180),-180==e&&180!=t&&(e=180),this.minX=t,this.maxX=e}function Fh(t,e){this.minY=t,this.maxY=e}function Gh(){"complete"==nb.readyState&&(nb.detachEvent("onreadystatechange",Gh),la.fireReady())}function Hh(){nb.removeEventListener("DOMContentLoaded",Hh,!1),la.fireReady()}function Ej(t,e){var n=document.getElementsByTagName("head")[0],i='<script src="'+t+'" '+Nd+'="this.ownerDocument.z = 1"></script>',r=je.createElement("iframe");r.style.display="none",n.appendChild(r);var o=r.contentDocument;r.onload=function(){1!=o.z&&e&&e(),r.onload=null,n.removeChild(this)};try{o.write(i),o.close()}catch(s){}n=null}function Fj(t,e,n,i,r){var o=je.createElement("script");fd.push({name:t,sender:o}),o.setAttribute("type","text/javascript"),o.setAttribute("charset",r||"GBK"),o.async=!0;var s=null,a=!1;o[Nd]=function(){Gj.test(this.readyState)&&(ke(t),s?n&&n(s):a||i&&i())},gd[t]=function(t){s=t},o.onerror=function(){a=!0,i&&i(),ke(t)},r=["output=jsonp","pf=jsapi","ref=jsapi","cb="+Hj+"."+t],Ih&&r.unshift("key="+Ih),r=e+(-1===e.indexOf("?")?"?":"&")+r.join("&"),o.src=r,Ij&&Ej(e,function(){o.onerror()}),e=document.getElementsByTagName("head")[0],e.insertBefore(o,e.firstChild),e=null}function ke(t){if(t){for(var e=0,n=fd.length,i=null;e<n;e++)if(fd[e].name===t){i=fd.splice(e,1)[0];break}i&&(e=i.sender,e.clearAttributes&&e.clearAttributes(),e[Nd]=e.onerror=null,e.parentNode&&e.parentNode.removeChild(e)),gd[t]&&delete gd[t]}}function jc(t,e,n,i,r,o){this.latLng=t,this.pixel=e,this.cursorPixel=o||e,this.type=n,this.target=i,this.__event__=r}function Fc(t){return t.__o_accessors_||(t.__o_accessors_={})}function yb(t,e){var n=Gc(e);t[n]?t[n]():t.changed(e);var n=Gc(e.toLowerCase()),i=new Jj((void 0),(void 0),n,t,(void 0));le.trigger(t,n,i)}function Kj(t,e,n,i,r){Fc(t)[e]={target:n,targetKey:i},r||yb(t,e)}function hd(t){return t.__o_bindings_||(t.__o_bindings_={}),t.__o_bindings_}function Gc(t){return Jh[t]||(Jh[t]=t+"_changed")}function k(){}function Kh(t,e){for(var n={},i=0,r=t.length;i<r;i+=2){var o=t[i+1];Lj(o)&&e?n[t[i]]=Kh(o,e):n[t[i]]=o}return n}function Mj(t){return"object"==typeof t&&t?(t.__sm_id||(t.__sm_id=++Nj),""+t.__sm_id):""+t}function me(t){this.hash=t||Mj,this.items={},this.length=0}function Oj(t){return function(){return this.get(t)}}function Pj(t,e){return e?function(n){e(n)||Qj(t,n),this.set(t,n)}:function(e){this.set(t,e)}}function De(){}function Od(){}function Q(t,e){this.x=t,this.y=e}function F(t,e,n){t=Number(t),e=Number(e),n||(t=Rj(t,-Lh,Lh),e=Sj(e,-180,180)),this.lat=t,this.lng=e}function Rb(t){this.elems=t||[],this.set("length",this.elems.length)}function ob(t,e){if(t&&!e&&(e=t),t){var n=Mh(t.getLat(),-90,90),i=Mh(e.getLat(),-90,90);this.lat=new Ee(n,i),n=t.getLng(),i=e.getLng(),360<=i-n?this.lng=new ne((-180),180):(n=Zf(n,-180,180),i=Zf(i,-180,180),this.lng=new ne(n,i))}else this.lat=new Ee(1,(-1)),this.lng=new ne(180,(-180))}function Da(t,e){Sb(t)&&(t=document.getElementById(t));var n=this;e=e||{},Tj(e.mapTypeId)&&(e.mapTypeId="roadmap"),e.noClear&&Uj(t),n.container=t,n.mapTypes=new Vj,n.mapStyles=new Wj,n.overlays=new Xj,n.overlayMapTypes=new $f,n.V=new Yj,n.tileVersion=!1,n.createImpl=!1,n.constructImpl=!1;var i=n.controls=[];Zj(ak,function(t){i[t]=new $f}),bk(this,e,Pd),n.options=e;var r=this.center.getLat(),o=this.center.getLng();ck.set(r+","+o+","+this.zoom),dk(1,0),ek(function(){n.createImpl&&!n.tileVersion&&!n.constructImpl&&(n.mapControl(n).construct(e),n.constructImpl=!0),n.createImpl&&!n.tileVersion&&n.constructImpl&&n.mapControl(n).updateDataVersion(),n.tileVersion=!0}),P.$require("map",function(t){n.tileVersion&&!n.constructImpl&&(t(n).construct(e),n.constructImpl=!0),n.mapControl=t,n.createImpl=!0},0)}function Hc(t){return function(){var e=[].slice.call(arguments);e.splice(0,0,this.V,t);var n=this;P.$require("map",function(t){n.constructImpl||(n.constructImpl=!0,t(n).construct(n.options)),Nh.trigger.apply(Nh,e)},0)}}function Ic(t){t&&this.setValues(t)}function Lb(t,e,n,i){this.red=t,this.green=e,this.blue=n,this.alpha=0<=parseInt(i)?i:1}function fk(t){var e=null;return gk(t)?e=t:hk(t)&&(e=new Qd,ik(t,function(t){e.push(t)})),e}function Xc(t){t=jk(t,["fillColor",new Jc(38,145,234,.2),"strokeColor",new Jc(38,145,234,1),"strokeWeight",2,"strokeDashStyle","solid","zIndex",0,"cursor","pointer","clickable",!0,"simplify",!0,"visible",!0]),this.set("path",new Qd),this.setValues(t),P.$require("poly",kk(this),1)}function ag(t){t.filled=!1,Oh.call(this,t)}function Ph(t){t.filled=!0,Qh.call(this,t)}function Fe(t){t=lk(t,["map",null,"center",null,"radius",0,"bounds",null,"fillColor",new bc(38,145,234,.2),"strokeColor",new bc(38,145,234,1),"strokeWeight",4,"strokeDashStyle","solid","zIndex",0,"cursor","pointer","clickable",!0,"simplify",!0,"visible",!0]),this.setValues(t),P.$require("poly",mk(this),2)}function bg(t){t=t||{},t.delay=t.delay||0,t.duration=t.duration||0,this.setValues(t),this.status=-1}function Ge(t){var e=this;nk&&P.$require("eb",function(n){new n(e,t)}),ok&&(document.body.addEventListener?P.$require("ea",function(n){new n(e,t)}):P.$require("ec",function(n){new n(e,t)})),this.start()}function Yc(t){t=pk(t||{},{complete:null,error:null,map:null,panel:null}),this.setOptions(t)}function cg(t){t=qk(t,["markers",new rk,"map",null,"zoomOnClick",!0,"gridSize",60,"averageCenter",!1,"maxZoom",18,"minimumClusterSize",2],!0),this.setValues(t),sk(this)(tk)}function Rd(t){t=uk(t,["icon",null,"shadow",null,"shape",null,"decoration",null,"cursor","pointer","title","","animation",null,"clickable",!0,"draggable",!1,"visible",!0,"flat",!1,"zIndex",0,"useDefaults",!0,"height",0,"position",null,"autoRotation",!1,"rotation",0]),this.setValues(t),P.$require("marker",vk(this))}function id(t,e){Rh(t)&&(t=document.getElementById(t));var n=this;e=e||{},n.container=t;var i=this.controls=[];wk(xk,function(t){i[t]=new yk}),zk(this,e,Ak),n._labels=new Bk,n.V=new Ck,Dk(0,1),P.$require("pano",function(t){t(n)},0)}function dg(t){return function(){var e=[].slice.call(arguments);e.splice(0,0,this.V,t),P.$require("pano",function(){eg.trigger.apply(eg,e)},0)}}function tc(t){t&&this.setValues(t)}function uc(){P.$require("layers",Ek,1)}function Sh(t,e,n){Tb.send(t,e,n)}function mf(){}function vc(t){t=Fk(t,{complete:null,error:null,location:"全国",policy:Gk.REAL_TRAFFIC}),this.setOptions(t),P.$require("sv",Hk(this),6)}function jd(t){t=Ik(t,{complete:null,error:null,location:"全国",policy:Jk.LEAST_TIME}),this.setOptions(t),P.$require("sv",Kk(this),5)}function pb(t){t=Lk(t,{complete:null,error:null}),this.setOptions(t),P.$require("sv",Mk(this),4)}function Sd(t){t=Nk(t,{complete:null,error:null}),this.setOptions(t),P.$require("sv",Ok(this),3)}function nf(t){var e=this;Pk.addListenerOnce(this,"dosend_changed",function(){P.$require("sv",Qk(e),2)}),Th.call(e,t)}function of(t){var e=this;Rk.addListenerOnce(this,"dosend_changed",function(){P.$require("sv",Sk(e),1)}),fg.call(e,t)}function kd(t){t=Tk(t||{},{location:null,pageIndex:0,pageCapacity:10});var e=this;Uk.addListenerOnce(this,"dosend_changed",function(){P.$require("sv",Vk(e),0)}),gg.call(this,t)}function ld(){P.$require("layers",Wk,0)}function ma(t,e,n,i){this.width=t,this.height=e}function Uh(t){this.opts=t=Xk(t,["style",Yk.DEFAULT,"index",0]),t.map&&(this.map=t.map,this.setOptions(t))}function hg(t){this.opts=t=Zk(t,["style",He.DEFAULT,"index",0,"margin",new $k(1,2),"zoomTips",{17:"街",11:"市",8:"省",4:"国"}]),t.map&&(this.map=t.map,this.setOptions(t))}function ig(t){var e=t.map;if(e){var n={};al(bl,function(e){n[e]=t[e]}),e.setOptions({mapTypeControl:!0,mapTypeControlOptions:n})}}function wc(){this.views=[],this.count=0,this.renderNum=15,this.anim=new cl({duration:500}),this.isRun=!1}function Ta(t,e){this._model=t,this._renderTimer=e||0,t&&(this._fdrawListener=kc.addListener(this,"forceredraw",this.forcedraw,this),this.forwardEvents(["forceredraw"]))}function jg(t,e,n,i){var r=new kg,o=!1,s={};xc(e,function(e){r[e]=t.get(e),s[e]=1});var a=function(t,e){return i?i(t,e):function(){var e=!0;return xc(t,function(t){if(!t)return e=!1}),e}()};r.changed=function(t){if(!(o||t&&!s[t])){var i=[];xc(e,function(t){i.push(r.get(t))}),a(i,e)&&(o=!0,delete r.changed,r.unbindAll(e),n())}},r.bindsTo(e,t)}function md(t){this.a={},this.setOptions(t)}function Vh(t){if(t)for(var e=t.childNodes,n=0,i=e.length;n<i;n++)t.removeChild(e[n])}function Ie(t){t=dl(t,["map",null,"imageUrl",null,"bounds",null,"visible",!0,"clickable",!0,"zIndex",0,"opacity",1,"cursor","pointer"]),this.setValues(t),P.$require("poly",el(this),0)}function pf(t){t=fl(t,["map",null,"position",null,"content",null,"visible",!0,"title",null,"zIndex",null,"offset",null,"style",null,"clickable",!0]),this.setValues(t),P.$require("label",gl(this))}function Je(t){t=hl(t,["visible",!1,"content","","maxWidth",760,"maxHeight",840,"minWidth",80,"minHeight",30,"zIndex",0,"noScroll",!1,"disableAutoPan",!1,"position",null]),this.setValues(t),lg.call(this,t),P.$require("infowin",il(this))}function Wh(t){Xh.call(this,t||{})}function Yh(t){mg.call(this,t||{})}function nd(t){Zh.call(this,t||{})}function qf(t){$h.apply(this,arguments)}function Td(t){ng.call(this,t)}function rf(t){t=jl({alt:"",name:"",maxZoom:null,minZoom:null,radius:0,tileSize:null,opacity:1,errorUrl:null,alpha:!1,poiLayer:!1},t||{},!0),this.tileSize=t.tileSize,this.name=t.name,this.alt=t.alt,this.minZoom=t.minZoom,this.maxZoom=t.maxZoom,this.copyrights=t.copyrights;var e=new kl,n=new ll(e);this.getTile=Kc(n.getTile,n),this.releaseTile=Kc(n.releaseTile,n),this.stop=Kc(n.stop,n),this.poiLayer=t.poiLayer;var i=Kc(t.getTileUrl,t);this.set("opacity",t.opacity);var r=this;P.$require("map",function(n){new n(e,[{func:i,type:1,alpha:!!t.alpha}],null,t).bindTo("opacity",r)},1)}function od(t){this.markerCluster=t,this.map=t.get("map"),this.icon=new ml,this.markers=[];var e=this;e.clickListener=og.addListener(this.icon,"click",function(){e.markerCluster&&e.markerCluster.doClusterClick(e)})}function sf(t){this.markers=t.get("markers"),this.clusters=[],pg.call(this,t),this.bindTo("map",t),t.clusterView=this}function nl(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(ol+t[n]+".js");if(pl){for(t=[],n=Math.ceil(e.length/qg);n--;)t.push(ql+e.splice(0,qg).join(","));return t}for(n=0,i=e.length;n<i;n++)e[n]=rl+e[n];return e}function sl(t,e){return t?function(){--t||e()}:void e()}function tl(){try{jb.forIn(function(t,e){var n=e.match(RegExp(rg+"([0-9a-z]*)_"));n&&(n=n[1])&&n!=ul&&jb.set(e,null)})}catch(t){}}function ai(t){if(!Ke[t]){Ke[t]=!0;for(var e=lc[t],n=e.length;n--;)ai(e[n]);tf.push(t),Le||(Le=setTimeout(vl,0))}}function wl(t){var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src",t),e.setAttribute("charset","utf-8"),document.getElementsByTagName("head")[0].appendChild(e)}function xl(t){var e=[];if(jb.support())for(var n=0;n<t.length;n++){var i=t[n],r=rg+Me.split(/\./).join("")+"_"+i;(r=jb.get(r))?bi(i,r):e.push(i)}else e=t;return e}function vl(){Le=0;var t=tf;tf=[],t.sort(function(t,e){return t<=e});for(var t=xl(t),t=nl(t),e=t.length;e--;)wl(t[e])}function yh(t,e){var n;return jf?n=Vf(t).__events_:(t.__events_||(t.__events_={}),n=t.__events_),n[e]||(n[e]={}),n[e]}function Vf(t){var e;return t&&t.__oid_&&(e=D.eventObjects[t.__oid_]),!e&&t&&(t.__oid_=++pj,e={__events_:{}},D.eventObjects[t.__oid_]=e),e}function Md(t,e){var n,i={};if(jf?(n=Vf(t))&&(i=n.__events_):i=t.__events_||{},e)n=i[e]||{};else for(e in n={},i)qj(n,i[e]);return n}function rj(t){return function(){var e=t.handler;return t.bindHandler=function(n){if((n=n||window.event)&&!n.target)try{n.target=n.srcElement}catch(i){}var r=e.apply(t.instance,[n]);return(!n||"click"!=n.type||!(n=n.srcElement)||"A"!=n.tagName||"javascript:void(0)"!=n.href)&&r}}()}function sj(t){t.returnValue=!0}function Wf(t,e,n){return function(){for(var i=[e,t],r=arguments.length,o=0;o<r;++o)i.push(arguments[o]);D.trigger.apply(this,i),n&&sj.apply(null,arguments)}}function tj(t,e){return function(){var n=Array.prototype.slice.call(arguments,0);n.push(this),e.apply(t,n)}}function ac(t,e,n,i){this.instance=t,this.eventName=e,this.handler=n,this.bindHandler=null,this.browser=i,this.id=++uj,yh(t,e)[this.id]=this,jf&&"tagName"in t&&(D.listeners[this.id]=this)}function Xf(t){this.grids=t}function vj(t,e){for(var n="https:"==window.location.protocol?"https://":"http://",i=1;i<t.length;i++){var r=t[i];if(r)switch(i){case 1:r[0]&&!sc(r[0])&&(t[i][0]=n+r[0]),r[2]&&!sc(r[2])&&(t[i][2]=n+r[2]);break;case 3:r[1]&&!sc(r[1])&&(t[i][1]=n+r[1]),r[2]&&!sc(r[2])&&(t[i][2]=n+r[2]);break;case 4:t[i]=ie(r,n);break;case 5:for(var o=0;o<r.length;o++){var s=r[o];s&&(7===o?(t[i][o][0]=ie(s[0],n),t[i][o][5]=ie(s[5],n)):t[i][o][1]=ie(s[1],n))}break;case 6:r[0]&&!sc(r[0])&&(t[i][0]=n+r[0]),r[1]&&!sc(r[1])&&(t[i][1]=n+r[1])}}zh[0]=t,Ah[1]=e}function sc(t){return t&&(0===t.indexOf("http://")||0===t.indexOf("https://"))}function ie(t,e){for(var n=0;n<t.length;n++)t[n]&&!sc(t[n])&&(t[n]=e+t[n]);return t}function wj(){for(var t=0;t<ic.length;t++)if(ic[t]===this){ic.splice(t,1);break}}function Bh(t){for(var e=xj,n=0;Ec[n]&&(e-=Ec[n][2],0<=e);)n++;0==n?Ec.length&&Ec.shift():(e=Ec.splice(0,n),0<e.length&&yj(e,t),0<Ec.length&&Bh(t))}function yj(t,e){var n=[Ch];n.push("logid="+(e?2:1)),zj(t,function(t){n.push(t[0]+"="+t[1])});var i=n.join("&");Aj(i)}function Bj(t,e){if(Cj(t)){for(var n in t)if(t.hasOwnProperty(n)){var i=t[n]+"";Ec.push([n,i,n.length+i+2])}}else Dj(e)||(e+=""),Ec.push([t,e,t.length+e.length+2])}function lf(t){Dh.trigger(Yf,"submit",Bj,t),Bh(t)}function Eh(t,e){-180==t&&180!=e&&(t=180),-180==e&&180!=t&&(e=180),this.minX=t,this.maxX=e}function Fh(t,e){this.minY=t,this.maxY=e}function Gh(){"complete"==nb.readyState&&(nb.detachEvent("onreadystatechange",Gh),la.fireReady())}function Hh(){nb.removeEventListener("DOMContentLoaded",Hh,!1),la.fireReady()}function Ej(t,e){var n=document.getElementsByTagName("head")[0],i='<script src="'+t+'" '+Nd+'="this.ownerDocument.z = 1"></script>',r=je.createElement("iframe");r.style.display="none",n.appendChild(r);var o=r.contentDocument;r.onload=function(){1!=o.z&&e&&e(),r.onload=null,n.removeChild(this)};try{o.write(i),o.close()}catch(s){}n=null}function Fj(t,e,n,i,r){var o=je.createElement("script");fd.push({name:t,sender:o}),o.setAttribute("type","text/javascript"),o.setAttribute("charset",r||"GBK"),o.async=!0;var s=null,a=!1;o[Nd]=function(){Gj.test(this.readyState)&&(ke(t),s?n&&n(s):a||i&&i())},gd[t]=function(t){s=t},o.onerror=function(){a=!0,i&&i(),ke(t)},r=["output=jsonp","pf=jsapi","ref=jsapi","cb="+Hj+"."+t],Ih&&r.unshift("key="+Ih),r=e+(-1===e.indexOf("?")?"?":"&")+r.join("&"),o.src=r,Ij&&Ej(e,function(){o.onerror()}),e=document.getElementsByTagName("head")[0],e.insertBefore(o,e.firstChild),e=null}function ke(t){if(t){for(var e=0,n=fd.length,i=null;e<n;e++)if(fd[e].name===t){i=fd.splice(e,1)[0];break}i&&(e=i.sender,e.clearAttributes&&e.clearAttributes(),e[Nd]=e.onerror=null,e.parentNode&&e.parentNode.removeChild(e)),gd[t]&&delete gd[t]}}function jc(t,e,n,i,r,o){this.latLng=t,this.pixel=e,this.cursorPixel=o||e,this.type=n,this.target=i,this.__event__=r}function Fc(t){return t.__o_accessors_||(t.__o_accessors_={})}function yb(t,e){var n=Gc(e);t[n]?t[n]():t.changed(e);var n=Gc(e.toLowerCase()),i=new Jj((void 0),(void 0),n,t,(void 0));le.trigger(t,n,i)}function Kj(t,e,n,i,r){Fc(t)[e]={target:n,targetKey:i},r||yb(t,e)}function hd(t){return t.__o_bindings_||(t.__o_bindings_={}),t.__o_bindings_}function Gc(t){return Jh[t]||(Jh[t]=t+"_changed")}function k(){}function Kh(t,e){for(var n={},i=0,r=t.length;i<r;i+=2){var o=t[i+1];Lj(o)&&e?n[t[i]]=Kh(o,e):n[t[i]]=o}return n}function Mj(t){return"object"==typeof t&&t?(t.__sm_id||(t.__sm_id=++Nj),""+t.__sm_id):""+t}function me(t){this.hash=t||Mj,this.items={},this.length=0}function Oj(t){return function(){return this.get(t)}}function Pj(t,e){return e?function(n){e(n)||Qj(t,n),this.set(t,n)}:function(e){this.set(t,e)}}function De(){}function Od(){}function Q(t,e){this.x=t,this.y=e}function F(t,e,n){t=Number(t),e=Number(e),n||(t=Rj(t,-Lh,Lh),e=Sj(e,-180,180)),this.lat=t,this.lng=e}function Rb(t){this.elems=t||[],this.set("length",this.elems.length)}function ob(t,e){if(t&&!e&&(e=t),t){var n=Mh(t.getLat(),-90,90),i=Mh(e.getLat(),-90,90);this.lat=new Ee(n,i),n=t.getLng(),i=e.getLng(),360<=i-n?this.lng=new ne((-180),180):(n=Zf(n,-180,180),i=Zf(i,-180,180),this.lng=new ne(n,i))}else this.lat=new Ee(1,(-1)),this.lng=new ne(180,(-180))}function Da(t,e){Sb(t)&&(t=document.getElementById(t));var n=this;e=e||{},Tj(e.mapTypeId)&&(e.mapTypeId="roadmap"),e.noClear&&Uj(t),n.container=t,n.mapTypes=new Vj,n.mapStyles=new Wj,n.overlays=new Xj,n.overlayMapTypes=new $f,n.V=new Yj,n.tileVersion=!1,n.createImpl=!1,n.constructImpl=!1;var i=n.controls=[];Zj(ak,function(t){i[t]=new $f}),bk(this,e,Pd),n.options=e;var r=this.center.getLat(),o=this.center.getLng();ck.set(r+","+o+","+this.zoom),dk(1,0),ek(function(){n.createImpl&&!n.tileVersion&&!n.constructImpl&&(n.mapControl(n).construct(e),n.constructImpl=!0),n.createImpl&&!n.tileVersion&&n.constructImpl&&n.mapControl(n).updateDataVersion(),n.tileVersion=!0}),P.$require("map",function(t){n.tileVersion&&!n.constructImpl&&(t(n).construct(e),n.constructImpl=!0),n.mapControl=t,n.createImpl=!0},0)}function Hc(t){return function(){var e=[].slice.call(arguments);e.splice(0,0,this.V,t);var n=this;P.$require("map",function(t){n.constructImpl||(n.constructImpl=!0,t(n).construct(n.options)),Nh.trigger.apply(Nh,e)},0)}}function Ic(t){t&&this.setValues(t)}function Lb(t,e,n,i){this.red=t,this.green=e,this.blue=n,this.alpha=0<=parseInt(i)?i:1}function fk(t){var e=null;return gk(t)?e=t:hk(t)&&(e=new Qd,ik(t,function(t){e.push(t)})),e}function Xc(t){t=jk(t,["fillColor",new Jc(38,145,234,.2),"strokeColor",new Jc(38,145,234,1),"strokeWeight",2,"strokeDashStyle","solid","zIndex",0,"cursor","pointer","clickable",!0,"simplify",!0,"visible",!0]),this.set("path",new Qd),this.setValues(t),P.$require("poly",kk(this),1)}function ag(t){t.filled=!1,Oh.call(this,t)}function Ph(t){t.filled=!0,Qh.call(this,t)}function Fe(t){t=lk(t,["map",null,"center",null,"radius",0,"bounds",null,"fillColor",new bc(38,145,234,.2),"strokeColor",new bc(38,145,234,1),"strokeWeight",4,"strokeDashStyle","solid","zIndex",0,"cursor","pointer","clickable",!0,"simplify",!0,"visible",!0]),this.setValues(t),P.$require("poly",mk(this),2)}function bg(t){t=t||{},t.delay=t.delay||0,t.duration=t.duration||0,this.setValues(t),this.status=-1}function Ge(t){var e=this;nk&&P.$require("eb",function(n){new n(e,t)}),ok&&(document.body.addEventListener?P.$require("ea",function(n){new n(e,t)}):P.$require("ec",function(n){new n(e,t)})),this.start()}function Yc(t){t=pk(t||{},{complete:null,error:null,map:null,panel:null}),this.setOptions(t)}function cg(t){t=qk(t,["markers",new rk,"map",null,"zoomOnClick",!0,"gridSize",60,"averageCenter",!1,"maxZoom",18,"minimumClusterSize",2],!0),this.setValues(t),sk(this)(tk)}function Rd(t){t=uk(t,["icon",null,"shadow",null,"shape",null,"decoration",null,"cursor","pointer","title","","animation",null,"clickable",!0,"draggable",!1,"visible",!0,"flat",!1,"zIndex",0,"useDefaults",!0,"height",0,"position",null,"autoRotation",!1,"rotation",0]),this.setValues(t),P.$require("marker",vk(this))}function id(t,e){Rh(t)&&(t=document.getElementById(t));var n=this;e=e||{},n.container=t;var i=this.controls=[];wk(xk,function(t){i[t]=new yk}),zk(this,e,Ak),n._labels=new Bk,n.V=new Ck,Dk(0,1),P.$require("pano",function(t){t(n)},0)}function dg(t){return function(){var e=[].slice.call(arguments);e.splice(0,0,this.V,t),P.$require("pano",function(){eg.trigger.apply(eg,e)},0)}}function tc(t){t&&this.setValues(t)}function uc(){P.$require("layers",Ek,1)}function Sh(t,e,n){Tb.send(t,e,n)}function mf(){}function vc(t){t=Fk(t,{complete:null,error:null,location:"全国",policy:Gk.REAL_TRAFFIC}),this.setOptions(t),P.$require("sv",Hk(this),6)}function jd(t){t=Ik(t,{complete:null,error:null,location:"全国",policy:Jk.LEAST_TIME}),this.setOptions(t),P.$require("sv",Kk(this),5)}function pb(t){t=Lk(t,{complete:null,error:null}),this.setOptions(t),P.$require("sv",Mk(this),4)}function Sd(t){t=Nk(t,{complete:null,error:null}),this.setOptions(t),P.$require("sv",Ok(this),3)}function nf(t){var e=this;Pk.addListenerOnce(this,"dosend_changed",function(){P.$require("sv",Qk(e),2)}),Th.call(e,t)}function of(t){var e=this;Rk.addListenerOnce(this,"dosend_changed",function(){P.$require("sv",Sk(e),1)}),fg.call(e,t)}function kd(t){t=Tk(t||{},{location:null,pageIndex:0,pageCapacity:10});var e=this;Uk.addListenerOnce(this,"dosend_changed",function(){P.$require("sv",Vk(e),0)}),gg.call(this,t)}function ld(){P.$require("layers",Wk,0)}function ma(t,e,n,i){this.width=t,this.height=e}function Uh(t){this.opts=t=Xk(t,["style",Yk.DEFAULT,"index",0]),t.map&&(this.map=t.map,this.setOptions(t))}function hg(t){this.opts=t=Zk(t,["style",He.DEFAULT,"index",0,"margin",new $k(1,2),"zoomTips",{17:"街",11:"市",8:"省",4:"国"}]),t.map&&(this.map=t.map,this.setOptions(t))}function ig(t){var e=t.map;if(e){var n={};al(bl,function(e){n[e]=t[e]}),e.setOptions({mapTypeControl:!0,mapTypeControlOptions:n})}}function wc(){this.views=[],this.count=0,this.renderNum=15,this.anim=new cl({duration:500}),this.isRun=!1}function Ta(t,e){this._model=t,this._renderTimer=e||0,t&&(this._fdrawListener=kc.addListener(this,"forceredraw",this.forcedraw,this),this.forwardEvents(["forceredraw"]))}function jg(t,e,n,i){var r=new kg,o=!1,s={};xc(e,function(e){r[e]=t.get(e),s[e]=1});var a=function(t,e){return i?i(t,e):function(){var e=!0;return xc(t,function(t){if(!t)return e=!1}),e}()};r.changed=function(t){if(!(o||t&&!s[t])){var i=[];xc(e,function(t){i.push(r.get(t))}),a(i,e)&&(o=!0,delete r.changed,r.unbindAll(e),n())}},r.bindsTo(e,t)}function md(t){this.a={},this.setOptions(t)}function Vh(t){if(t)for(var e=t.childNodes,n=0,i=e.length;n<i;n++)t.removeChild(e[n])}function Ie(t){t=dl(t,["map",null,"imageUrl",null,"bounds",null,"visible",!0,"clickable",!0,"zIndex",0,"opacity",1,"cursor","pointer"]),this.setValues(t),P.$require("poly",el(this),0)}function pf(t){t=fl(t,["map",null,"position",null,"content",null,"visible",!0,"title",null,"zIndex",null,"offset",null,"style",null,"clickable",!0]),this.setValues(t),P.$require("label",gl(this))}function Je(t){t=hl(t,["visible",!1,"content","","maxWidth",760,"maxHeight",840,"minWidth",80,"minHeight",30,"zIndex",0,"noScroll",!1,"disableAutoPan",!1,"position",null]),this.setValues(t),lg.call(this,t),P.$require("infowin",il(this))}function Wh(t){Xh.call(this,t||{})}function Yh(t){mg.call(this,t||{})}function nd(t){Zh.call(this,t||{})}function qf(t){$h.apply(this,arguments)}function Td(t){ng.call(this,t)}function rf(t){t=jl({alt:"",name:"",maxZoom:null,minZoom:null,radius:0,tileSize:null,opacity:1,errorUrl:null,alpha:!1,poiLayer:!1},t||{},!0),this.tileSize=t.tileSize,this.name=t.name,this.alt=t.alt,this.minZoom=t.minZoom,this.maxZoom=t.maxZoom,this.copyrights=t.copyrights;var e=new kl,n=new ll(e);this.getTile=Kc(n.getTile,n),this.releaseTile=Kc(n.releaseTile,n),this.stop=Kc(n.stop,n),this.poiLayer=t.poiLayer;var i=Kc(t.getTileUrl,t);this.set("opacity",t.opacity);var r=this;P.$require("map",function(n){new n(e,[{func:i,type:1,alpha:!!t.alpha}],null,t).bindTo("opacity",r)},1)}function od(t){this.markerCluster=t,this.map=t.get("map"),this.icon=new ml,this.markers=[];var e=this;e.clickListener=og.addListener(this.icon,"click",function(){e.markerCluster&&e.markerCluster.doClusterClick(e)})}function sf(t){this.markers=t.get("markers"),this.clusters=[],pg.call(this,t),this.bindTo("map",t),t.clusterView=this}function nl(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(ol+t[n]+".js");if(pl){for(t=[],n=Math.ceil(e.length/qg);n--;)t.push(ql+e.splice(0,qg).join(","));return t}for(n=0,i=e.length;n<i;n++)e[n]=rl+e[n];return e}function sl(t,e){return t?function(){--t||e()}:void e()}function tl(){try{jb.forIn(function(t,e){var n=e.match(RegExp(rg+"([0-9a-z]*)_"));n&&(n=n[1])&&n!=ul&&jb.set(e,null)})}catch(t){}}function ai(t){if(!Ke[t]){Ke[t]=!0;for(var e=lc[t],n=e.length;n--;)ai(e[n]);tf.push(t),Le||(Le=setTimeout(vl,0))}}function wl(t){var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src",t),e.setAttribute("charset","utf-8"),document.getElementsByTagName("head")[0].appendChild(e)}function xl(t){var e=[];if(jb.support())for(var n=0;n<t.length;n++){var i=t[n],r=rg+Me.split(/\./).join("")+"_"+i;(r=jb.get(r))?bi(i,r):e.push(i)}else e=t;return e}function vl(){Le=0;var t=tf;tf=[],t.sort(function(t,e){return t<=e});for(var t=xl(t),t=nl(t),e=t.length;e--;)wl(t[e])}var yl=function(t){t=t||window.event,t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()},pd=function(t){t=t||window.event,t.returnValue=!1,t.preventDefault&&t.preventDefault()},uf=function(t){return pd(t),yl(t),!1},zl=Object.prototype.hasOwnProperty,sg=function(t,e){return zl.call(t,e)},tg=function(t){for(var e in t)if(sg(t,e))return!1;return!0},ci=function(t,e,n){var i=[],r=t.length;for(n=n||r,e=e||0;e<n;e++)i.push(t[e]);return i},aa=function(t,e){for(var n in t)if(sg(t,n)&&!1===e(t[n],n))return!1},mc=function(t,e){var n=t.style;0<=parseFloat(e)&&1>parseFloat(e)?(n.filter="alpha(opacity="+100*e+")",n.opacity=e):1==parseFloat(e)&&(n.filter="",n.opacity="")},di={},vf=function(t){return di[t]||(di[t]=t.substr(0,1).toUpperCase()+t.substr(1))},U=function(t){return"[object Function]"==Object.prototype.toString.call(t)},oe=function(t,e){return e=e||document.createElement("div"),t="on"+t,e.setAttribute(t,"return;"),U(e[t])||t in document.documentElement},zb=navigator.userAgent,qa=/msie (\d+\.\d+)/i.test(zb)?document.documentMode||+RegExp.$1:0,ug=function(t){return!(!t||!t.nodeName||1!=t.nodeType)},Ne=function(t){return ug(t)||t==window||t==document},cb=function(t,e,n){for(var i in e)!e.hasOwnProperty(i)||!n&&t.hasOwnProperty(i)||(t[i]=e[i]);return t},M=function(t,e){if(2<arguments.length){var n=ci(arguments,2);return function(){return t.apply(e||this,0<arguments.length?n.concat(ci(arguments)):n)}}return function(){return t.apply(e||this,arguments)}},qj=cb,jf=qa,D={listeners:{},eventObjects:{}},pj=0;D.addListener=function(t,e,n,i){return Ne(t)?D.addDomListener(t,e,n,i):new ac(t,e,n,0)},D.exist=function(t,e){var n=Md(t,e);return n&&!tg(n)},D.removeListener=function(t){t.remove()},D.clearListeners=function(t,e){aa(Md(t,e),function(t,e){t&&t.remove()})},D.clearInstanceListeners=function(t){aa(Md(t),function(t,e){t&&t.remove()})},D.trigger=function(t,e){if(D.exist(t,e)){var n=ci(arguments,2),i=Md(t,e);aa(i,function(t){t&&t.handler.apply(t.instance,n)})}else if(Ne(t)&&oe(e,t))if(t.fireEvent)try{t.fireEvent("on"+e)}catch(r){}else t.dispatchEvent&&(i=document.createEvent("Events"),i.initEvent(e,!0,!0),t.dispatchEvent(i))},D.addDomListener=function(t,e,n,i){var r=0;return t.addEventListener?(r=i?4:1,t.addEventListener(e,n,i),n=new ac(t,e,n,r)):t.attachEvent?(n=new ac(t,e,n,i?3:2),t.attachEvent("on"+e,rj(n)),i&&t.setCapture&&t.setCapture()):(t["on"+e]=n,n=new ac(t,e,n,5)),n},D.addDomListenerOnce=function(t,e,n,i){var r=D.addDomListener(t,e,function(){return r.remove(),n.apply(this,arguments)},i);return r},D.bindDom=function(t,e,n,i){return n=tj(i,n),D.addDomListener(t,e,n)},D.bind=function(t,e,n,i,r){return r?D.addListenerOnce(t,e,M(n,i)):D.addListener(t,e,M(n,i))},D.addListenerOnce=function(t,e,n){var i=D.addListener(t,e,function(){return i.remove(),n.apply(this,arguments)});return i},D.forward=function(t,e,n){return D.addListener(t,e,Wf(e,n))},D.forwardDom=function(t,e,n,i){return D.addDomListener(t,e,Wf(e,n,!i))},D.unload=function(){var t=D.listeners;aa(t,function(t){t&&t.remove()}),D.listeners={},(t=window.CollectGarbage)&&t()};var uj=0;ac.prototype.remove=function(){var t=this.instance,e=this.eventName;if(t){switch(this.browser){case 1:t.removeEventListener(e,this.handler,!1);break;case 4:t.removeEventListener(e,this.handler,!0);break;case 2:t.detachEvent("on"+e,this.bindHandler);break;case 3:t.detachEvent("on"+e,this.bindHandler),t.releaseCapture&&t.releaseCapture();break;case 5:t["on"+e]=null}delete yh(t,e)[this.id],t.__events_&&(tg(t.__events_[e])&&delete t.__events_[e],tg(t.__events_)&&delete t.__events_),this.bindHandler=this.handler=this.instance=null,delete D.listeners[this.id]}};var d=D;Xf.prototype.getTile=function(t,e,n,i,r){return n=n.createElement("div"),t={element:n,coord:t,zoom:e,instance:r},i&&(i=i.parentNode.createElement("div"),t.poiElement=i),n.data=t,this.grids.insert(t),n},Xf.prototype.releaseTile=function(t){var e=t.data;this.grids.remove(e),aa(e,function(t,n){delete e[n]}),t.data=null},Xf.prototype.stop=function(t){d.trigger(t.data,"stop",t.data)};var Ah=[6378136.49,-1],zh=[null,Ah],vg=window.qq&&qq.maps&&qq.maps.__load;vg&&vg(vj);var ei=zh,wg=ei[1],yc=wg[0],V=function(t){return t*(Math.PI/180)},Al=function(t,e){for(var n=[t];n.length;){var i=n.shift();for(e(i),i=i.firstChild;i;i=i.nextSibling)1==i.nodeType&&n.push(i)}},xg=function(t){Al(t,function(t){d.clearInstanceListeners(t)})},da=function(){return new Date},qd=function(){return+da()},Oa=ei[0],Ea=function(t){return"[object Object]"===Object.prototype.toString.apply(t)},R=function(t){return"[object String]"==Object.prototype.toString.call(t)},ic=[],Bl=function(t){var e=new Image;e.onload=e.onerror=e.onabort=wj,ic.push(e),e.src=t+("&random="+(+da()).toString(36))},h=function(t,e){for(var n=0,i=t.length;n<i;++n)if(!1===e(t[n],n))return!1},Oe=Oa[0][0],Dh=d,Dj=R,Cj=Ea,zj=h,Aj=Bl,Ch=Oa[3][2]+"?appid=jsapi&v="+Oe,xj=1024-Ch.length-16,Yf={},Ec=[];Yf.submit=lf,Dh.addDomListener(window,"beforeunload",function(){lf(!0)}),setInterval(lf,5e3);
var yg=Yf,rd=new Function,sd=[],Cl=d.addListener(yg,"submit",function(t){if(0<sd.length){var e=sd.join("|");t("m",e),sd.length=0,d.removeListener(Cl),fi.set=rd}}),fi={set:function(t){sd.push(t)}},ck=fi,ta=[0,0],Dl=d.addListener(yg,"submit",function(t){if(0!=ta[0]||0!=ta[1]){var e=ta.join(",");t("mp",e),ta[0]=0,ta[1]=0,d.removeListener(Dl),gi.set=rd}}),gi={set:function(t,e){0!=t&&ta[0]++,0!=e&&ta[1]++}},El=gi,Fl=function(t,e){var n=V(t.getLat())-V(e.getLat()),i=V(t.getLng())-V(e.getLng()),n=Math.sin(n/2)*Math.sin(n/2)+Math.cos(V(e.getLat()))*Math.cos(V(t.getLat()))*Math.sin(i/2)*Math.sin(i/2),n=2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n));return yc*n},wf=function(t,e,n){return t>=e&&t<=n?t:((t-e)%(n-e)+(n-e))%(n-e)+e},td=Eh.prototype;td.isEmpty=function(){return 360==this.minX-this.maxX},td.intersects=function(t){var e=this.minX,n=this.maxX;return!this.isEmpty()&&!t.isEmpty()&&(e>n?t.minX>t.maxX||t.minX<=n||t.maxX>=e:t.minX>t.maxX?t.minX<=n||t.maxX>=e:t.minX<=n&&t.maxX>=e)},td.contains=function(t){-180==t&&(t=180);var e=this.minX,n=this.maxX;return this.minX>this.maxX?(t>=e||t<=n)&&!this.isEmpty():t>=e&&t<=n},td.extend=function(t){this.contains(t)||(this.isEmpty()?this.minX=this.maxX=t:this.distance(t,this.minX)<this.distance(this.maxX,t)?this.minX=t:this.maxX=t)},td.equals=function(t){return this.isEmpty()?t.isEmpty():1e-9>=Math.abs(t.minX-this.minX)%360+Math.abs(t.maxX-this.maxX)%360},td.center=function(){var t=(this.minX+this.maxX)/2;return this.minX>this.maxX&&(t=wf(t,-180,180)),t},td.distance=function(t,e){var n=e-t;return 0<=n?n:e+180-(t-180)};var cc=Fh.prototype;cc.isEmpty=function(){return this.minY>this.maxY},cc.intersects=function(t){var e=this.minY,n=this.maxY;return e<=t.minY?t.minY<=n&&t.minY<=t.maxY:e<=t.maxY&&e<=n},cc.contains=function(t){return t>=this.minY&&t<=this.maxY},cc.extend=function(t){this.isEmpty()?this.maxY=this.minY=t:t<this.minY?this.minY=t:t>this.maxY&&(this.maxY=t)},cc.equals=function(t){return this.isEmpty()?t.isEmpty():1e-9>=Math.abs(t.minY-this.minY)+Math.abs(this.maxY-t.maxY)},cc.center=function(){return(this.maxY+this.minY)/2};var Lc=function(t,e,n){return t<e?e:t>n?n:t},xf=Oa[0][1],gn=6===qa||7===qa||8===qa,H=Oa[5],Gl=Oa[4][7],hb=navigator.userAgent.toLowerCase(),zg="opera msie chrome applewebkit firefox mozilla".split(" "),Ag="x11 macintosh windows android iphone ipad".split(" "),Fb=0,Gb,Mc,bb,Ub=0,ud,Bg;for(Gb=zg.length;Fb<Gb;Fb++)if(Mc=zg[Fb],-1!=hb.indexOf(Mc)&&(Ub=Fb+1,bb=RegExp(Mc+"[ /]?([0-9]+(.[0-9]+)?)").exec(hb))){ud=parseFloat(bb[1]);break}for(6==Ub&&((bb=/^mozilla\/.*gecko\/.*(minefield|shiretoko)[ \/]?([0-9]+(.[0-9]+)?)/.exec(hb))&&(Ub=5,ud=parseFloat(bb[2])),(bb=/trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(hb))&&(Ub=2,ud=parseFloat(bb[1]))),1==Ub&&(bb=/^opera\/9.[89].*version\/?([0-9]+(.[0-9]+)?)/.exec(hb))&&(ud=parseFloat(bb[1])),Fb=0,Gb=Ag.length;Fb<Gb;Fb++)if(Mc=Ag[Fb],-1!=hb.indexOf(Mc)){Bg=Fb+1;break}var yf=[Ub,ud,Bg],T=yf[2],Cg=/opera(\/| )(\d+(\.\d+)?)(.+?(version\/(\d+(\.\d+)?)))?/i.test(zb)?+(RegExp.$6||RegExp.$2):0,A=function(t){return null===t},la=[],nb=document;la.isReady=!1,la._used=!1,la.ready=function(t){la.initReady(),la.isReady?t():la.push(t)},la.initReady=function(){if(!la._used){if(la._used=!0,"complete"===nb.readyState||"interactive"===nb.readyState)return la.fireReady();if(0<qa&&9>qa){nb.attachEvent("onreadystatechange",Gh);var t=function(){if(!la.isReady){var e=new Image;try{e.doScroll()}catch(n){return void setTimeout(t,64)}la.fireReady()}};t()}else nb.addEventListener("DOMContentLoaded",Hh,!1)}},la.fireReady=function(){if(!la.isReady){if(!nb.body)return setTimeout(la.fireReady,16);if(la.isReady=!0,la.length)for(var t,e=0;t=la[e];e++)t()}};var Dg=la.ready,hi=window.qq||(window.qq={}),zf=hi.maps||(hi.maps={}),Pe=function(t,e){return null!==e?(zf[t]=e,["qq","maps",t]):void(null===zf[t]||delete zf[t])},Ih=xf,je=window.document,Gj=/loaded|complete|undefined/i,Nd=je.dispatchEvent?"onload":"onreadystatechange",Ij=0<Cg,gd={},Hj=Pe("_svcb"+T,gd).join("."),fd=[],Hl=0,Tb={send:function(t,e,n,i){return t||(t="cb"+(new Date).getTime().toString(36)+(Hl++).toString(36)),Dg(function(){ke(t),Fj(t,e,n,i)}),t},cancel:ke};jc.prototype.stop=function(){this.__event__&&uf(this.__event__)};var ja=function(t){return"[object Array]"==Object.prototype.toString.call(t)},f=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},le=d,Jj=jc,Il=function(t){if(Object.keys)return Object.keys(t);var e=[];return aa(t,function(t,n){e.push(n)}),e},ii={},dc={},Jh={},Pa=k.prototype;Pa.get=function(t){var e=Fc(this)[t];if(e){t=e.targetKey;var e=e.target,n=ii[t]||(ii[t]="get"+vf(t));return e[n]?e[n]():e.get(t)}return this[t]},Pa.set=function(t,e){var n=Fc(this);if(n.hasOwnProperty(t)){var i=n[t],n=i.targetKey,i=i.target,r=dc[n]||(dc[n]="set"+vf(n));i[r]?i[r](e):i.set(n,e)}else this[t]=e,yb(this,t)},Pa.notify=function(t){var e=Fc(this);e.hasOwnProperty(t)?(t=e[t],t.target.notify(t.targetKey)):yb(this,t)},Pa.setValues=function(t){for(var e in t){var n=t[e],i=dc[e]||(dc[e]="set"+vf(e));this[i]?this[i](n):this.set(e,n)}},Pa.setOptions=Pa.setValues,Pa.changed=function(t){return function(){}},Pa.bindTo=function(t,e,n,i){n=n||t;var r=this;r.unbind(t,!0),hd(r)[t]=le.addListener(e,Gc(n.toLowerCase()),function(){yb(r,t)}),Kj(r,t,e,n,i)},Pa.bindsTo=function(t,e,n,i){t=ja(t)?t:Il(t),n=n||[];for(var r=0,o=t.length;r<o;r++)this.bindTo(t[r],e,n[r]||null,i)},Pa.unbind=function(t,e){var n=hd(this)[t];n&&(delete hd(this)[t],le.removeListener(n),n=e&&this.get(t),delete Fc(this)[t],e?this[t]=n:yb(this,t))},Pa.unbindAll=function(t){t||(t=[],aa(hd(this),function(e,n){t.push(n)}));var e=this;h(t,function(t){e.unbind(t)})};var Yj=k,Ud=function(t,e){for(var n;n=t.firstChild;)!e&&3!==n.nodeType&&xg(n),t.removeChild(n)},Jl=Tb,Kl=Oa[2][4],Vd=[Oa[2][2],Oa[2][3]],Ll=Oa[2][0],Ml=Oa[2][1],Lj=ja,hn=Kh,Vb=function(t){return"undefined"==typeof t},zc=function(t,e){throw Error("Invalid value or type for property <"+(t+("> :"+e)))},Eg=function(t,e){El.set(t,e)},Fg=function(t,e,n){var i={};n&&aa(n,function(t,e){i[e]=t}),e&&aa(e,function(t,e){i[e]=t}),t.setValues(i)},Nj=0,Qe=me.prototype;Qe.insert=function(t){var e=this.items,n=this.hash(t);e[n]||(++this.length,e[n]=t,d.trigger(this,"insert",t))},Qe.remove=function(t){var e=this.items,n=this.hash(t);e[n]&&(--this.length,delete e[n],d.trigger(this,"remove",t))},Qe.contains=function(t){return!!this.items[this.hash(t)]},Qe.forEach=function(t){var e,n=this.items;for(e in n)n.hasOwnProperty(e)&&t.call(this,n[e])};var p=function(){var t=arguments,e=t.length;return function(){for(var n=0;n<e;++n)if(t[n].apply(this,arguments))return!0;return!1}},v=function(t){return"[object Number]"==Object.prototype.toString.call(t)&&isFinite(t)},ea=function(t){return"boolean"==typeof t},E=function(t){return function(e){return e instanceof t}},ec=function(t,e,n){return e=hn(e,!n),cb(e,t,!0)},Wb=function(t){return function(e){new e(t)}},Qj=zc,ua=function(t,e){for(var n=0,i=e&&e.length;n<i;n+=2){var r=e[n],o=e[n+1];t["get"+vf(r)]=Oj(r),o&&(t["set"+vf(r)]=Pj(r,o))}},vd={TOP_LEFT:1,TOP_CENTER:2,TOP:2,TOP_RIGHT:3,LEFT_CENTER:4,LEFT_TOP:5,LEFT:5,LEFT_BOTTOM:6,RIGHT_TOP:7,RIGHT:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM:11,BOTTOM_RIGHT:12,CENTER:13};f(De,k),De.prototype.set=function(t,e){return null!=e&&(!e||!e.regionStyles||!Ea(e.regionStyles)||!e.labelStyles||!Ea(e.labelStyles)||!e.lineStyles||!Ea(e.lineStyles)||!e.pointStyles||!Ea(e.pointStyles)||!e.arrowStyles||!Ea(e.arrowStyles)||!e.bgColor||!R(e.bgColor)||!e.stylesId||!R(e.stylesId))&&console.warn("实现qq.maps.mapStyles所需的值不符合要求,请重新传入参数尝试"),k.prototype.set.apply(this,arguments)};var Wa={DEFAULT:"DEFAULT",TILE_BLACK:"TILE_BLACK",DARK:"DARK",TNIT:"TNIT",LIGHT:"LIGHT"};f(Od,k),Od.prototype.set=function(t,e){if(!(null==e||e&&e.tileSize&&v(e.maxZoom)&&e.tileSize.width&&e.tileSize.height))throw Error("实现 qq.maps.MapType 所需的值");return k.prototype.set.apply(this,arguments)};var Gg={DEFAULT:"default",CENTER:"center"},wd={ROADMAP:"roadmap",HYBRID:"hybrid",SATELLITE:"satellite",INDOORMAP:"indoormap"},qb=Q.prototype;qb.getX=function(){return this.x},qb.getY=function(){return this.y},qb.toString=function(){return this.x+", "+this.y},qb.equals=function(t){return!!t&&(t.x==this.x&&t.y==this.y)},qb.distanceTo=function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},qb.minus=function(t){return new Q(this.x-t.x,this.y-t.y)},qb.plus=function(t){return new Q(this.x+t.x,this.y+t.y)},qb.divide=function(t){return new Q(this.x/t,this.y/t)},qb.multiply=function(t){return new Q(this.x*t,this.y*t)},qb.clone=function(){return new Q(this.x,this.y)};var Sj=wf,Rj=Lc,ji=function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n},Lh=85.051128,Mb=F.prototype;Mb.toString=function(){return this.lat+", "+this.lng},Mb.equals=function(t){return!!t&&(1e-10>=Math.abs(this.lat-t.lat)&&1e-10>=Math.abs(this.lng-t.lng))},Mb.getLat=function(){return this.lat},Mb.getLng=function(){return this.lng},Mb.toUrlValue=function(t){return t=t||6,ji(this.lng,t)+","+ji(this.lat,t)},Mb.clone=function(){return new F(this.lat,this.lng,(!0))},Mb.distanceTo=function(t){return Fl(this,t)},Mb.subtract=function(t){return new F(this.lat-t.lat,this.lng-t.lng)};var ki=Math.PI/180,li=180/Math.PI;Mb.toMercator=function(){var t=[6378137*this.lng*ki,6378137*Math.log(Math.tan(.25*Math.PI+.5*this.lat*ki))];return 20037508.342789244<t[0]&&(t[0]=20037508.342789244),-20037508.342789244>t[0]&&(t[0]=-20037508.342789244),20037508.342789244<t[1]&&(t[1]=20037508.342789244),-20037508.342789244>t[1]&&(t[1]=-20037508.342789244),new Q(t[0],t[1])},F.fromMercator=function(t){return new F((.5*Math.PI-2*Math.atan(Math.exp(-t.y/6378137)))*li,t.x*li/6378137)},f(Rb,k);var rb=Rb.prototype;rb.getAt=function(t){return this.elems[t]},rb.forEach=function(t){for(var e=0,n=this.get("length");e<n&&!1!==t(this.elems[e],e);++e);},rb.setAt=function(t,e){var n=this.elems[t],i=this.elems.length;if(t<i)this.elems[t]=e,d.trigger(this,"set_at",t,n);else{for(n=i;n<t;++n)this.insertAt(n,void 0);this.insertAt(t,e)}},rb.insertAt=function(t,e){this.elems.splice(t,0,e),this.set("length",this.elems.length),d.trigger(this,"insert_at",e,t)},rb.removeAt=function(t){var e=this.get("length");if(e>t){var n=this.elems[t];return this.elems.splice(t,1),this.set("length",e-1),d.trigger(this,"remove_at",n,t),n}},rb.push=function(t){return this.insertAt(this.elems.length,t),this.elems.length},rb.pop=function(){return this.removeAt(this.elems.length-1)},rb.exists=function(t){if(t)for(var e=0;e<this.elems.length;e++)if(t==this.elems[e])return!0;return!1},rb.remove=function(t){for(var e=0;e<this.elems.length;e++)if(t==this.elems[e])return this.removeAt(e)},rb.clear=function(){for(var t=this.elems.length;t--;)this.removeAt(0)},rb.getArray=function(){return this.elems},ua(rb,["length",0]);var Zf=wf,Mh=Lc,Ee=Fh,ne=Eh,sb=ob.prototype;sb.isEmpty=function(){return this.lat.isEmpty()||this.lng.isEmpty()},sb.getSouthWest=function(){return new F(this.lat.minY,this.lng.minX,(!0))},sb.getNorthEast=function(){return new F(this.lat.maxY,this.lng.maxX,(!0))},sb.getCenter=function(){return new F(this.lat.center(),this.lng.center())},sb.intersects=function(t){return this.lat.intersects(t.lat)&&this.lng.intersects(t.lng)},sb.contains=function(t){var e,n=this.getSouthWest,i=this.getNorthEast;return t instanceof ob?(e=t.getSouthWest(),t=t.getNorthEast(),e.lat>=n.lat&&t.lat<=i.lat&&e.lng>=n.lng&&t.lng<=i.lng):this.lat.contains(t.getLat())&&this.lng.contains(t.getLng())},sb.extend=function(t){if(this.isEmpty()){var e=t.getLat();t=t.getLng(),this.lat=new Ee(e,e),this.lng=new ne(t,t)}else this.lat.extend(t.getLat()),this.lng.extend(t.getLng());return this},sb.union=function(t){if(!t.isEmpty())return this.extend(t.getNorthEast()),this.extend(t.getSouthWest()),this},sb.equals=function(t){return!!t&&(this.lat.equals(t.lat)&&this.lng.equals(t.lng))},sb.clone=function(){return new ob(this.getSouthWest(),this.getNorthEast())},sb.toString=function(){return this.getSouthWest()+", "+this.getNorthEast()},sb.toUrlValue=function(){return this.getSouthWest().toUrlValue()+","+this.getNorthEast().toUrlValue()};var $f=Rb,Af=F,Xj=me,ek=function(t){var e=window.setTimeout(t,1e3);Jl.send(null,Gl,function(n){n&&n.info&&0===n.error&&(n=n.info,H[0]&&n["1d"]&&(H[0][6]=n["1d"],H[3][6]=n["1d"]),H[1]&&n["2d"]&&(H[1][6]=n["2d"]),H[7]&&n.vt&&(H[7][4]=n.vt),H[2]&&n.sat&&(H[2][6]=n.sat)),t(),clearTimeout(e)},t)},ak=vd,Vj=Od,Wj=De,Zj=aa,Uj=Ud,Tj=Vb,Sb=R,Af=F,Nh=d,bk=Fg,dk=Eg,Pd={mapTypeId:wd.ROADMAP,mapStyleId:Wa.DEFAULT,maxZoom:Ml,minZoom:Ll,disableDefaultUI:!1,boundary:null,autoResize:!0,resizeKeepCenter:!0,mapZoomType:Gg.DEFAULT};Vd[0]&&Vd[1]&&(Pd.center=new Af(Vd[0],Vd[1]),Pd.zoom=Kl),f(Da,k);var tb=Da.prototype;ua(Da.prototype,["projection",null,"bounds",null,"boundary",p(E(ob),A),"center",E(Af),"zoom",v,"mapTypeId",Sb,"mapStyleId",Sb]),tb._=function(){return this.V},tb.getContainer=function(){return this.container},tb.panBy=Hc("panby"),tb.panTo=Hc("panto"),tb.flyTo=Hc("fly_to"),tb.zoomBy=function(t){var e=this.getZoom();v(e)&&this.setZoom(e+t)},tb.zoomTo=function(t){this.setZoom(t)},tb.fitBounds=Hc("fitbounds"),tb.panToBounds=Hc("pantolatlngbounds"),f(Ic,k),Ic.prototype.map_changed=function(){var t=this;P.$require("oy",function(e){e(t)})},ua(Ic.prototype,["map",p(E(Da),A),"panes",null,"projection",null]),Lb.fromHex=function(t,e){"#"===t.substring(0,1)&&(t=t.substr(1));var n=3===t.length?1:2,i=t.substr(0,n),r=t.substr(n,n),o=t.substr(2*n,n);return 1===n&&(i+=i,r+=r,o+=o),i=parseInt(i,16),r=parseInt(r,16),o=parseInt(o,16),new Lb(i,r,o,e||1)};var fc=Lb.prototype;fc.toRGB=function(){return"rgb("+[this.red,this.green,this.blue].join()+")"},fc.toRGBA=function(){return"rgba("+[this.red,this.green,this.blue,this.alpha].join()+")"},fc.toHex=function(){return"#"+(16777216+(this.red<<16)+(this.green<<8)+this.blue).toString(16).slice(1).toUpperCase()},fc.toInt=function(){return this.red<<16|this.green<<8|this.blue},fc.toString=function(){return this.toRGBA()},fc.clone=function(){return new Lb(this.red,this.green,this.blue,this.alpha)};var kk=Wb,Qd=Rb,jk=ec,ik=h,hk=ja,gk=E(Qd),Jc=Lb;f(Xc,Ic),Xc.prototype.getPath=function(){return this.get("path")},Xc.prototype.setPath=function(t){this.set("path",fk(t)||new Qd)},Xc.prototype.getBounds=function(){var t=this.getPath(),e=null;if(t&&t.getLength()){var n=[],i=[];t.forEach(function(t){n.push(t.getLng()),i.push(t.getLat())});var r=Math.min.apply(Math,n),o=Math.min.apply(Math,i),t=Math.max.apply(Math,n),e=Math.max.apply(Math,i),r=new F(o,r),t=new F(e,t),e=new ob(r,t)}return e},ua(Xc.prototype,["map",p(E(Da),A),"visible",ea,"simplify",ea,"clickable",ea,"editable",ea,"cursor",R,"zIndex",v,"geodesic",ea,"strokeDashStyle",p(R,A),"strokeColor",p(E(Jc),R,A),"strokeWeight",p(v),"fillColor",p(E(Jc),R,A)]);var Oh=Xc;f(ag,Oh);var Qh=Xc;f(Ph,Qh);var lk=ec,bc=Lb,mk=Wb;f(Fe,Ic),ua(Fe.prototype,["map",p(E(Da),A),"visible",ea,"center",p(E(F),A),"radius",p(v,A),"cursor",p(R,A),"zIndex",p(v,A),"fillColor",p(E(bc),R,A),"strokeColor",p(E(bc),R,A),"strokeWeight",v,"strokeDashStyle",p(R,A)]);var Nl=/-./g,Ol=function(t){return t.charAt(1).toUpperCase()},mi={};mi["float"]=qa?"styleFloat":"cssFloat";var Pl=function(t,e){return e=e||{},function(n){return sg(e,n)?e[n]:e[n]=t(n)}}(function(t){return t.replace(Nl,Ol)},mi),L=function(t,e,n){t.style[Pl(e)]=n},Wd=5==T||6==T,xd=yf[1],Ua=yf[0],Nb=function(){var t=oe,e=Ua,n=xd,i=Wd,i=4==e&&i,n=4==e&&4==T&&534<=n,r=3==e&&4==T,o=2==e&&0<navigator.msMaxTouchPoints,e=2==e&&0<navigator.maxTouchPoints,t=1!=T&&2!=T&&(t("touchstart")&&t("touchmove")&&t("touchend"));return!!(i||n||r||o||e||t)}(),Hg=1==T||2==T||3==T||!!window.navigator.msPointerEnabled||!Nb,Ql=/android\s(\d+\.\d)/i.test(zb)?+RegExp.$1:0,jn=/iPhone\sOS\s(\d[_\d]*)/i.test(zb)?+parseFloat(RegExp.$1.replace(/_/g,".")):0,kn=/iPad.*OS\s(\d[_\d]*)/i.test(zb)?+parseFloat(RegExp.$1.replace(/_/g,".")):0,Rl="ontouchstart"in window||kn||jn||Ql,Sl=/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(zb)&&!/chrome/i.test(zb)?+(RegExp.$1||RegExp.$2):0,Re=function(t,e,n){var i=t.length;for(n=n||0,0>n&&(n+=i);n<i;n++)if(t[n]===e)return n;return-1},Bf={anims:[],timer:null,add:function(t){t._startTime=+da(),-1===Re(this.anims,t)&&this.anims.push(t),null===this.timer&&(this.timer=setInterval(this.nextFrame,16))},remove:function(t){var e=this.anims;h(this.anims,function(n,i){if(t===n)return delete t._startTime,e.splice(i,1),!1}),0===e.length&&(clearInterval(this.timer),this.timer=null)},nextFrame:function(){var t=+da(),e=[],n=null;h(Bf.anims.concat(),function(i){if(i._startTime){e.push(i),n=+da();var r=t-i._startTime,o=!1;r>=i.duration&&(r=i.duration,o=!0),i.set("current",r),i.onEnterFrame(r),o?i.stop():i.status||(i.status=1),i._frameDuration=+da()-n}});var i=+da()-t;h(e,function(t){t._startTime&&(t.onExitFrame(t._frameDuration,i),delete t._frameDuration)})}};f(bg,k);var Ab=bg.prototype;Ab.start=function(){function t(){e.onStart(),e.status=0,Bf.add(e),delete e._delayTimer}this.stop(!0);var e=this;this.delay?e._delayTimer=window.setTimeout(t,e.delay):t()},Ab.stop=function(t){this._delayTimer&&(window.clearTimeout(this._delayTimer),delete this._delayTimer),Bf.remove(this),this.status=-1,t||this.onEnd()},Ab.getStatus=function(){return this.status},Ab.onStart=function(){},Ab.onEnterFrame=function(){},Ab.onExitFrame=function(){},Ab.onEnd=function(){};var Ig=function(t){if(t=t||window.event,qa)t=[t.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),t.clientY+(document.documentElement.scrollTop||document.body.scrollTop)];else if(t.touches){var e=null;0<t.targetTouches.length?e=t.targetTouches[0]:0<t.changedTouches.length&&(e=t.changedTouches[0]),t=[e.pageX,e.pageY]}else t=[t.pageX,t.pageY];return t},pe=function(t){if(null===t.parentNode||"none"==t.style.display)return[0,0,0,0];var e=null,n=0,i=0,r=t.offsetWidth,o=t.offsetHeight;if(t.getBoundingClientRect&&!Rl)e=t.getBoundingClientRect(),t=Math.max(document.documentElement.scrollTop,document.body.scrollTop),n=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),n=e.left+n,i=e.top+t;else{if(document.getBoxObjectFor)e=document.getBoxObjectFor(t),n=t.style.borderLeftWidth?parseInt(t.style.borderLeftWidth):0,i=t.style.borderTopWidth?parseInt(t.style.borderTopWidth):0,n=e.x-n,i=e.y-i;else{if(n=t.offsetLeft,i=t.offsetTop,e=t.offsetParent,e!=t)for(;e;)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;(Cg||Sl&&"absolute"==t.style.position)&&(n-=document.body.offsetLeft,i-=document.body.offsetTop)}for(e=t.parentNode?t.parentNode:null;e&&"BODY"!=e.tagName&&"HTML"!=e.tagName;)n-=e.scrollLeft,i-=e.scrollTop,e=e.parentNode?e.parentNode:null}return[n,i,r,o]},ok=Hg,nk=Nb;f(Ge,k);var kb=Ge.prototype;kb.start=function(){this.set("tracking",!0)},kb.stop=function(){this.set("tracking",!1)},kb.addListener=function(t,e){return d.addListener(this,t,e)},kb.removeListener=function(t){return d.removeListener(t)},kb.clearAllListener=function(){d.clearInstanceListeners(this)};var B=function(t,e,n,i,r){return t=document.createElement(t||"div"),i&&(t.style.cssText=i),void 0!=n&&L(t,"z-index",n),e&&!r&&e.appendChild(t),t},lb={Copyright:{prefix:"©"+new Date(Oa[3][0]).getFullYear()+" Tencent",sno:"GS(2016)930号",dataPrefix:"Data©",imagePrefix:"Imagery©",home:"到腾讯地图查看此区域"},Key:{invalid:"开发者密钥验证失败"},PhoneTime:"拍摄日期",MapType:{ROADMAP:{name:"地图",alt:"显示街道地图"},SATELLITE:{name:"卫星",alt:"显示卫星地图"},HYBRID:{name:"混合",alt:"显示带有街道名称的卫星地图"},TRAFFIC:{name:"路况",alt:"显示实时路况"}},Navigation:{zoomIn:"放大",zoomOut:"缩小",left:"向左平移",right:"向右平移",up:"向上平移",down:"向下平移",ruler:"单击缩放",slide:"拖动缩放",zoomTips:{17:"街",11:"市",8:"省",4:"国"}},Scale:{m:"米",km:"公里",mile:"英里",feet:"英尺"},Time:{msec:"毫秒",sec:"秒",min:"分钟",hour:"小时"},Transfer:["乘坐","经过","站","到达","终点"],Direction:"东 东北 北 西北 西 西南 南 东南".split(" ")},yd=function(){var t=navigator.systemLanguage||navigator.language,t=t.toLowerCase().split("-")[0];switch(t){case"zh":return lb;default:return lb}}(),Ob={POI:"poi",SYN:"syn",POI_SYN:"poi_syn",RN:"rn",BUSLS:"busls",BUS:"bus",DT:"dt",DTS:"dts",GEOC:"geoc",RGEOC:"rgeoc",GC:"gc",CC:"cc",NAV:"snsnav",WALK:"walk",POS:"pos",SG:"sg",TAXFEE:"taxfee"},pk=cb;f(Yc,k);var Cf=Yc.prototype;Cf.send=function(){this.set("doSend",!0)},Cf.cancel=function(){this.set("doSend",!1)},Cf.clear=function(){this.set("doClear",!0)},ua(Yc.prototype,["complete",p(U,A),"error",p(U,A),"map",p(E(Da),A),"panel",p(ug,R,A)]);var zd=function(t){var e=[];return aa(t,function(t,n){e.push(n+"="+encodeURIComponent(t))}),e.join("&")},Jg=function(t,e,n,i,r,o){return{id:t,latlng:e||null,heading:n||0,pitch:i||0,zoom:r||1,description:o||""}},Tl=function(t){return t/111319.49077777778},ni=function(t){return 114.59155902616465*Math.atan(Math.exp(.017453292519943295*(t/111319.49077777778)))-90},Ul=Oa[4][3],Vl=Oa[4][2],Ck=k,Xd=Oa[4][0],Yd=function(t){return t/(Math.PI/180)},Xa={CIRCLE:"circle",MARKER:"marker",POLYGON:"polygon",POLYLINE:"polyline",RECTANGLE:"rectangle"},sk=Wb,qk=ec,rk=Rb;f(cg,k),ua(cg.prototype,["gridSize",v,"minimumClusterSize",v,"maxZoom",v,"zoomOnClick",ea,"averageCenter",ea,"styles",ja,"map",p(E(Da),A)]);var Wl=function(t,e){this.coords=t,this.type=e},qe=function(t,e){this.content=t,this.offset=e||new Q(0,0)},re=function(t,e,n,i,r,o){this.url=t,this.size=e||r,this.origin=n||new Q(0,0),this.anchor=i,this.scaledSize=r,this.shadowAngle=o||0},vk=Wb,uk=ec;f(Rd,Ic),Rd.prototype.changed=function(t){this.viewModel&&"constructed"!==t&&("icon"==t||"shadow"==t||"shape"==t||"cross"==t||"useDefaults"==t?this.viewModel.styleChange(t):"animation"==t?this.viewModel.animationChange(t):"height"==t?(this.viewModel.set(t,this.get(t)),this.viewModel.animationChange(t)):this.viewModel.set(t,this.get(t)))},ua(Rd.prototype,["position",p(E(F),A),"title",p(v,R,A),"icon",p(E(re),R,A),"shadow",p(E(re),A),"shape",p(E(Wl),A),"decoration",p(E(qe),A),"cursor",p(R,A),"clickable",ea,"animation",p(v,R,A),"draggable",ea,"visible",ea,"flat",ea,"zIndex",v,"height",v,"map",p(E(Da),A),"rotation",v,"autoRotation",ea]);var yk=Rb,Bk=me,xk=vd,eg=d,zk=Fg,Rh=R,wk=aa,Dk=Eg,Ak={pano:null,position:null,zoom:1,scrollwheel:!0,visible:!0,disableDefaultUI:!1,autoResize:!0};f(id,k);var Se=id.prototype;Se._=function(){return this.V},ua(id.prototype,["position",null,"planeInfo",null,"pano",p(Rh,A),"pov",Ea,"zoom",function(t){return!(!v(t)||1>t||4<t)},"visible",ea]),Se.startAutoPlay=dg("startAutoPlay"),Se.stopAutoPlay=dg("stopAutoPlay"),f(tc,k),tc.prototype.panorama_changed=function(){var t=this;P.$require("pano",function(e){e(t)},1)},ua(tc.prototype,["position",p(E(F),A),"panorama",p(E(id),A),"content",R,"altitude",v,"visible",ea]);var Ek=rd;f(uc,k),uc.prototype.map_changed=function(){var t=this;P.$require("layers",function(e){e(t)},1)},ua(uc.prototype,["map",p(E(Da),A)]),mf.prototype.checkBounds=function(t,e){var n={has_sv:1,bound:t.toUrlValue()},n=Ul+"?"+zd(n);Sh(null,n,function(t){e(t.detail.has_sv||0)})},mf.prototype.getPano=function(t,e,n){Sh("",Vl+"?lat="+t.lat+"&lng="+t.lng+"&r="+(e||500),function(t){if(t.detail.svid){var e=t.detail.road_name||"";"NA"===e&&(e=""),t=new Jg(t.detail.svid,new F(ni(t.detail.y),t.detail.x/111319.49077777778),null,null,null,e),t.svid=t.id,n(t)}else n(null)})};var Xl={NORMAL:0,BUS_STATION:1,SUBWAY_STATION:2,BUS_LINE:3,DISTRICT:4},oi={BUS:"BUS",SUBWAY:"SUBWAY",WALK:"WALK"},Yl={LEAST_TIME:0,LEAST_TRANSFER:1,LEAST_WALKING:2,MOST_ONE:3,NO_SUBWAY:4},Zl={LEAST_TIME:0,AVOID_HIGHWAYS:1,LEAST_DISTANCE:2,REAL_TRAFFIC:3,PREDICT_TRAFFIC:4},Fk=cb,Hk=Wb,Gk=Zl;f(vc,Yc);var pi=vc.prototype;pi.search=function(t,e){var n=p(R,E(F),Ea);n(t)&&n(e)?(this.set("start",t),this.set("end",e),this.send()):n(t)?zc("end",e):zc("start",t)},ua(vc.prototype,["complete",p(U,A),"error",p(U,A),"location",R,"policy",v]),pi.setPolicy=function(t,e){this.set("policy",t),this.set("time",e)};var Ik=cb,Kk=Wb,Jk=Yl;f(jd,Yc),jd.prototype.search=function(t,e){var n=p(R,E(F),Ea);n(t)&&n(e)?(this.set("start",t),this.set("end",e),this.send()):n(t)?zc("end",e):zc("start",t)},ua(jd.prototype,["complete",p(U,A),"error",p(U,A),"location",R,"policy",v]);var Lk=cb,Mk=Wb;f(pb,Yc),pb.prototype.searchById=function(t){this.set("info",t),this.send()},ua(pb.prototype,["complete",p(U,A),"error",p(U,A)]);var Nk=cb,Ok=Wb;f(Sd,Yc),Sd.prototype.searchById=function(t){this.set("info",t),this.send()},ua(Sd.prototype,["complete",p(U,A),"error",p(U,A)]);var Qk=Wb,Th=Yc,Pk=d;f(nf,Th);var nc=nf.prototype;nc.searchLocalCity=function(){this.set("mode",0),this.set("info",null),this.send()},nc.searchCityByName=function(t){this.set("mode",1),this.set("info",t),this.send()},nc.searchCityByLatLng=function(t){this.set("mode",2),this.set("info",t),this.send()},nc.searchCityByIP=function(t){this.set("mode",3),this.set("info",t),this.send()},nc.searchCityByAreaCode=function(t){this.set("mode",4),this.set("info",t),this.send()};var Sk=Wb,fg=Yc,Rk=d;f(of,fg);var qi=of.prototype;qi.getAddress=function(t){this.set("qt",Ob.RGEOC),this.set("info",t),this.send()},qi.getLocation=function(t){this.set("qt",Ob.GEOC),this.set("info",t),this.send()};var gg=Yc,Uk=d,Vk=Wb,Tk=cb;f(kd,gg);var Kg=kd.prototype;Kg.search=function(t){this.set("keyword",t),t=Ob.POI,2===this.get("mode")&&(t=Ob.BUSLS),this.set("qt",t),this.send()},Kg.searchInBounds=function(t,e){this.set("qt",Ob.POI_SYN),this.set("keyword",t),this.set("region",e),this.send()},Kg.searchNearBy=function(t,e,n,i){this.set("qt",Ob.RN),this.set("keyword",t),this.set("region",[e,n]),this.set("sortType",i||0),this.send()},ua(kd.prototype,["complete",p(U,A),"error",p(U,A),"pageIndex",v,"pageCapacity",v,"location",p(R,A)]);var oa={ERROR:"ERROR",NO_RESULTS:"NO_RESULTS",INVALID_REQUEST:"INVALID_REQUEST",UNKNOWN_ERROR:"UNKNOWN_ERROR"},Hb={POI_LIST:"POI_LIST",CITY_LIST:"CITY_LIST",AREA_INFO:"AREA_INFO",GEO_INFO:"GEO_INFO",STATION_INFO:"STATION_INFO",LINE_INFO:"LINE_INFO",TRANSFER_INFO:"TRANSFER_INFO",DRIVING_INFO:"DRIVING_INFO",MULTI_DESTINATION:"MULTI_DESTINATION",AUTOCOMPLETE_PREDICTION:"AUTOCOMPLETE_PREDICTION"},Wk=rd;f(ld,k),ld.prototype.map_changed=function(){var t=this;P.$require("layers",function(e){e(t)},0)},ua(ld.prototype,["map",p(E(Da),A)]);var $l={DEFAULT:0},Ib=ma.prototype;Ib.getWidth=function(){return this.width},Ib.getHeight=function(){return this.height},Ib.toString=function(){return this.width+", "+this.height},Ib.equals=function(t){return!!t&&(t.width==this.width&&t.height==this.height)},Ib.clone=function(){return new ma(this.width,this.height)};var Xk=ec,Yk=$l,ri=Uh.prototype;ri.setMap=function(t){this.map&&(this.map.setOptions({scaleControl:!1}),this.map=void 0),t&&(this.map=t,this.setOptions(t.get("scaleControlOptions")))},ri.setOptions=function(t){t=t||{},this.map.setOptions({scaleControl:!0,scaleControlOptions:{position:t.align||t.position}})};var se={DEFAULT:0,LARGE:1,SMALL:2},Lg={DEFAULT:0,SMALL:1,ZOOM_PAN:2},$k=ma,Zk=ec,He=Lg,Mg=hg.prototype;Mg.setMap=function(t){this.map&&(this.map.setOptions({zoomControl:!1,panControl:!1}),this.map=void 0),t&&(this.map=t,this.setOptions(this.opts))},Mg.setOptions=function(t){switch(t=t||{},t.style){case He.SMALL:this.map.setOptions({zoomControl:!0,zoomControlOptions:{position:t.position||t.align,style:se.SMALL,zoomTips:t.zoomTips},panControl:!1});break;case He.ZOOM_PAN:this.map.setOptions({zoomControl:!0,zoomControlOptions:{style:se.SMALL,position:t.position||t.align,zoomTips:t.zoomTips},panControl:!0,panControlOptions:{position:t.position||t.align}});break;default:this.map.setOptions({zoomControl:!0,zoomControlOptions:{style:se.DEFAULT,position:t.position||t.align,zoomTips:t.zoomTips},panControl:!0,panControlOptions:{position:t.position||t.align}})}};var al=h,bl=["position","style","mapTypeIds","align"];f(ig,k);var kg=k,kc=d,xc=h,cl=bg;wc.prototype.add=function(t){t.mvcRN||(t.mvcRN=++this.count,this.views.push(t),!this.isRun&&0<this.count&&this.start())},wc.prototype.renderOne=function(t){delete t.mvcRN,t.draw()},wc.prototype.renderViews=function(){for(var t=null,e=this.views;t=e.shift();)t.mvcRN&&this.renderOne(t);this.count=0},wc.prototype.start=function(){this.isRun=!0;var t=this,e=this.anim,n=this.views;e.onEnterFrame=function(){n[0]?t.renderViews():t.stop()},e.onEnd=function(){t.isRun&&e.start()},e.delay=10,e.start()},wc.prototype.stop=function(){this.isRun=!1;var t=this.anim;delete t.onEnd,t.stop()};var si=new wc;f(Ta,kg);var wa=Ta.prototype;wa.redraw=function(t){t?this.forcedraw():si.add(this)},wa.forcedraw=function(){si.renderOne(this)},wa.draw=function(){},wa.dispose=function(){kc.removeListener(this._fdrawListener)},wa.triggerEvents=function(t,e,n){var i=this._model;if(i){if(Ne(e))for(var r=new Ge(e),o=this,s=0,a=t.length;s<a;s++)r.addListener(t[s],function(t,e){return function(n){var i=o.getMouseContainerPixel(n),r=o.getMouseEventLatLng(n,i);n=new jc(r,i,e,t,n),kc.trigger(t,e,n)}}(i,t[s]));if(null==e||e==i){for(e=new jc,r=0,s=n.length;r<s;r+=2)e[n[r]]=n[r+1];e.target=i,e.type=t,kc.trigger(i,t,e)}}},wa.triggerMapsEvent=function(t,e){var n=null,i=null,r=this._model;r&&(e&&(n=this.getMouseContainerPixel(e),i=this.getMouseEventLatLng(e,n)),n=new jc(i,n,t,r,e),kc.trigger(r,t,n))},wa.triggerCustomEvent=function(t,e,n){n=n||{};var i=null,r=this._model;if(r){if(e){var o=r.get("map")||r;o&&(o=o.get("mapCanvasProjection"))&&(i=o.fromLatLngToContainerPixel(e))}var s=new jc(e,i,t,r,null,n.cursorPixel);n&&aa(n,function(t,e){s[e]=t}),kc.trigger(r,t,s)}},wa.forwardEvents=function(t){var e=this._model;if(e){e._eventTaget||(e._eventTaget={});for(var n=0,i=t.length;n<i;n++)kc.forward(e._eventTaget,t[n],this)}},wa.getMouseEventLatLng=function(t,e){var n=this._model;if(n&&(n=n.get("map")||n))return e=e||this.getMouseContainerPixel(t),(n=n.get("mapCanvasProjection"))&&n.fromContainerPixelToLatLng(e,!0)},wa.getMouseEventPoint=function(t){var e=this._model;if(e&&(e=e.get("map")||e))return t=this.getMouseContainerPixel(t),e.get("mapCanvasProjection").fromContainerPixelToPoint(t)},wa.getMouseContainerPixel=function(t){var e=this._model;if(e)return e=e.get("map")||e,e=e.get("mapContainer")||e.getContainer(),e=pe(e),t=Ig(t),new Q(t[0]-e[0],t[1]-e[1])},wa.getModel=function(){return this._model},wa.keysReady=function(t,e,n){jg(this,t,e,function(t,e){var i=!0;return xc(t,function(t,r){if(!(n&&ea(n(t,e[r]))?0:null!==t&&!Vb(t)))return i=!1}),i})},wa.keysUnReady=function(t,e,n){jg(this,t,e,function(t,e){var i=!1;return xc(t,function(t,r){var o;if(n&&ea(o=n(t,e[r]))?o:null===t||Vb(t))return i=!0,!1}),i})},f(md,Ta);var Ng=md.prototype;Ng.changed=function(t){this.a[t]=!0,this.redraw()},Ng.draw=function(){var t=this.get("map"),e=this.get("content"),n=this.get("visible"),i=this.a,r=this.l;if(this.a={},t&&e&&!1!==n){var o=this.get("align")||vd.TOP_CENTER;if((n=this.e)||(n=this.e=B("div")),i.map||i.align){var s=this.e;r&&s&&r.remove(s),r=this.l=t.controls[o],r.push(n)}i.content&&(Vh(n),R(e)?n.innerHTML=e:n.appendChild(e)),i.margin&&(t=this.get("margin")||new ma(0,0),n.style.margin=[t.getWidth()+"px",t.getHeight()+"px",t.getWidth()+"px",t.getHeight()+"px"].join(" ")),n&&d.trigger(n,"resize")}else t=this.e,r&&t&&r.remove(t),Vh(this.e)},ua(md.prototype,["map",p(E(Da),A),"content",p(R,ug),"align",v,"margin",E(ma),"zIndex",v,"visible",ea]);var dl=ec,el=Wb;f(Ie,Ic),ua(Ie.prototype,["map",p(E(Da),A),"imageUrl",p(R,A),"bounds",p(E(ob),A),"visible",ea,"clickable",ea,"cursor",R,"zIndex",p(v,A),"opacity",p(v,A)]);var fl=ec,gl=Wb;f(pf,Ic),ua(pf.prototype,["map",p(E(Da),A),"position",p(E(F),A),"content",p(R,A),"title",p(R,A),"visible",ea,"zIndex",p(v,A),"offset",p(E(ma),A),"style",p(Ea,R,A),"clickable",ea]);var hl=ec,il=Wb,lg=Ic;f(Je,lg),ua(Je.prototype,["map",p(A,E(Da)),"position",p(A,E(F),E(k)),"content",p(R,ug,A),"zIndex",v]),Je.prototype.open=function(){this.set("visible",!0),this.get("disableAutoPan")||this.notify("autoPan")},Je.prototype.close=function(){this.set("visible",!1)},Je.prototype.notifyResize=function(){this.notify("resize")};var Xh=Fe;f(Wh,Xh),Wh.prototype.getBounds=function(){var t=this.get("center"),e=this.get("radius"),n=null;if(t)if(0>=e)n=new ob(t.clone(),t.clone());else var i=t.getLat(),r=e/6378137,o=180*r/Math.PI,e=i+o,n=i-o,i=Math.cos(i*Math.PI/180),o=360*Math.asin(r/2/i)/Math.PI,i=t.getLng()+o,t=t.getLng()-o,n=new ob(new F(n,t),new F(e,i));
return n};var mg=Ph;f(Yh,mg);var Zh=ag;f(nd,Zh);var $h=cg;f(qf,$h);var oc=qf.prototype;oc.addMarker=function(t){this.clusterView.addMarker(t)},oc.removeMarker=function(t){var e=this.get("markers");e&&(e.remove(t),this.clusterView.removeMarker(t))},oc.addMarkers=function(t){var e=this.get("markers");h(t,function(t){e.push(t)}),this.clusterView.redraw()},oc.removeMarkers=function(t){var e=this.get("markers");h(t,function(t){e.remove(t)}),this.clusterView.removeMarkers(t)},oc.clearMarkers=function(){var t=this.get("markers");this.clusterView.removeMarkers(t.elems.slice()),t.clear()},oc.getMarkers=function(){return this.get("markers")},oc.getClustersCount=function(){return this.clusterView.getClusterCount()},oc.updateView=function(){return this.clusterView.reloadView()};var am={BOUNCE:1,DROP:2,UP:3,DOWN:4},ng=Rd;f(Td,ng);var Ad=Td.prototype;Ad.moveTo=function(t,e,n){this.viewModel.moveTo(t,e,n)},Ad.moveAlong=function(t,e,n){this.viewModel.moveAlong(t,e,n)},Ad.stopMove=function(){this.viewModel.stopMove()},Ad.pauseMove=function(){this.viewModel.pauseMove()},Ad.resumeMove=function(){this.viewModel.resumeMove()};var kl=me,ll=Xf,jl=cb,Kc=M;f(rf,k),ua(rf.prototype,["opacity",p(v,A)]);var bm=function(t){var e;return function(){return t&&(e=t(),t=null),e}},ln=Oa[3][1],Te=function(){return window.devicePixelRatio||screen.deviceXDPI&&screen.deviceXDPI/96||1},ti=bm(function(){var t=document.createElement("canvas");return t.width=16,t.height=16,!(!t||!t.getContext)}),Df=ln,Df=Df+"?appid=jsapi&logid=0&v=",ui=wg[1],vi=Oa[6][2],ml=Td,og=d;f(od,k);var pc=od.prototype;pc.remove=function(){this.icon.set("map",null),this.markers.length=0,og.removeListener(this.clickListener),delete this.markers,delete this.icon,delete this.markerCluster,delete this.clickListener},pc.addMarker=function(t){this.isMarkerAlreadyAdded(t)||(this.markers.push(t),this.updateCenter(t.get("position")),this.redraw())},pc.redraw=function(){var t=this,e=this.markerCluster.get("minimumClusterSize")||1,n=this.markers,i=this.map,r=n.length>=e;h(n,function(e){e.isClustered=r,t.markerCluster.setMarkerDisplay(e,!r)}),this.updateIcon(),this.icon.set("map",r?i:null),this.icon.set("position",r?this.center:null)},pc.updateCenter=function(t){var e=this.get("center");if(e){if(this.markerCluster.get("averageCenter")){var n=this.markers.length;this.set("center",new F((e.lat*(n-1)+t.lat)/n,(e.lng*(n-1)+t.lng)/n))}}else this.set("center",t)},pc.updateIcon=function(){var t=this.markerCluster.getStyles(),e=t.length,n=this.markerCluster.getCalculator(this.markers,e),i=Math.max(0,n.index-1),i=Math.min(e-1,i),e=t[i],t=e.icon,e=e.text,n=e.content.replace(/\{(\w+)\}/g,n.text),n=new qe(n,e.offset);this.icon.set("decoration",n),this.icon.set("icon",t)},pc.isMarkerAlreadyAdded=function(t){return-1!==Re(this.markers,t)},pc.getMarkers=function(){return this.markers},pc.getBounds=function(){var t=this.get("center");if(!t)return null;var e={},n=new ob(t,t);return h(this.markers,function(t){n.extend(t.get("position"))}),e.info=n.lat.maxY==n.lat.minY&&n.lng.maxY==n.lng.minY?-1:0,e.bounds=n,e};var w={};w.event=d,w.MVCObject=k,w.MVCArray=Rb,w.LatLng=F,w.LatLngBounds=ob,w.Size=ma,w.Point=Q,w.Color=Lb,w.Map=Da,w.MapTypeId=wd,w.MapZoomType=Gg,w.MapTypeRegistry=Od,w.MapStyleId=Wa,w.MapStyleRegistry=De,w.ImageMapType=rf,w.Overlay=Ic,w.Marker=Td,w.MarkerImage=re,w.MarkerShape=Wl,w.MarkerAnimation=am,w.MarkerDecoration=qe,w.Cluster=od,w.MarkerCluster=qf,w.Polyline=nd,w.Polygon=Yh,w.Circle=Wh,w.InfoWindow=Je,w.Label=pf,w.GroundOverlay=Ie,w.ControlPosition=vd,w.Control=md,w.ALIGN={TOP_LEFT:5,TOP:2,TOP_RIGHT:3,LEFT:4,CENTER:13,RIGHT:8,BOTTOM_LEFT:10,BOTTOM:11,BOTTOM_RIGHT:12,isTop:function(t){return 3>t},isMiddle:function(t){return 2<t&&6>t},isBottom:function(t){return 5<t},isLeft:function(t){return 0==t%3},isCenter:function(t){return 1==t%3},isRight:function(t){return 2==t%3}},w.MapTypeControl=ig,w.NavigationControl=hg,w.NavigationControlStyle=Lg,w.ZoomControlStyle=se,w.ScaleControl=Uh,w.ScaleControlStyle=$l,w.TrafficLayer=ld,w.ServiceResultType=Hb,w.ServiceErrorType=oa,w.SearchService=kd,w.Geocoder=of,w.CityService=nf,w.StationService=Sd,w.LineService=pb,w.TransferService=jd,w.DrivingService=vc,w.DrivingPolicy=Zl,w.TransferPolicy=Yl,w.TransferActionType=oi,w.PoiType=Xl,w.Panorama=id,w.PanoramaService=mf,w.PanoramaLayer=uc,w.PanoramaLabel=tc;var cm=function(t){t=Df+Oe+"&c="+(ti?1:0)+"&d="+Te()+"&sl="+t,window.Object&&Object.defineProperty&&(t+="&es5=1"),Bl(t)};aa(w,function(t,e){Pe(e,t)});var dm=new Date;Dg(function(){if(ui&&cm(dm-ui),vi){var a="window."+vi;setTimeout(function(){eval('"use strict";'+a+"()")},0)}"undefined"!=typeof navigator&&-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&d.addDomListener(window,"unload",d.unload)});var Xb=Oa[1][2],pg=Ta,Og=Q,Qo=ma,Ro=re,So=qe,To=Xb,Uo=d,Vo=M,qc=h;f(sf,pg);var X=sf.prototype;X.map_changed=function(){this.ready&&this.destroy(),this.get("map")&&this.construct()};var wi="gridSize minimumClusterSize maxZoom zoomOnClick averageCenter styles".split(" ");X.construct=function(){this.ready=!0;var t=this.getModel();this.bindsTo(wi,t),this.addEvents()},X.destroy=function(){this.ready=!1,this.unbinds(wi),this.removeEvents()},X.changed=function(t){("gridSize"===t||"maxZoom"===t||"minimumClusterSize"===t)&&this.reloadView()},X.averageCenter_changed=function(){this.reloadView()},X.calculator_changed=function(){qc(this.clusters,function(t){t.updateIcon()})},X.styles_changed=function(){qc(this.clusters,function(t){t.updateIcon()})},X.reloadView=function(){if(this.ready){var t=this.clusters.slice();this.clusters.length=0,this.resetViewport(),t[0]&&window.setTimeout(function(){qc(t,function(t){t.remove()})},50),this.redraw()}},X.addEvents=function(){function t(t,n,r){i.push(Uo.addListener(t,n,Vo(r,e)))}var e=this,n=e.get("map"),i=e._evts=[],r=null;t(n,"zoom_changed",function(){var t=n.get("zoom");r!==t&&(r=t,this.resetViewport())}),t(n,"idle",e.redraw)},X.removeEvents=function(){var t=this._evts;t&&(qc(t,function(t){t.remove()}),delete this._evts)},X.addMarker=function(t){this.markers.push(t),this.redraw()},X.removeMarker=function(t){this.setMarkerDisplay(t,!0),this.markers.remove(t),t.setMap(null),t.isAdded&&delete t.isAdded,this.reloadView()},X.removeMarkers=function(t){var e=this;qc(t,function(t){t.isAdded&&delete t.isAdded,e.markers.remove(t),t.setMap(null)}),this.reloadView()},X.setMarkerDisplay=function(t,e){if(e){var n=this.get("map");n&&t.set("map",n)}else t.set("map",null)},X.doClusterClick=function(t){this.triggerCustomEvent("clusterclick",t.center,{markers:t.markers});var e=this.get("map");e&&this.get("zoomOnClick")&&(t=t.getBounds())&&!(-1==t.info&&e.getZoom()==e.maxZoom)&&e.fitBounds(t.bounds)},X.isMarkerInMapDisplay=function(t){return t.get("map")===this.get("map")&&t.get("visible")&&t.get("position")},X.getClusterCount=function(){var t=this.get("minimumClusterSize"),e=0;return qc(this.clusters,function(n){n.getMarkers().length>=t&&e++}),e},X.draw=function(){if(this.ready){var t=this,e=t.get("map"),n=e.get("zoom"),i=t.get("maxZoom");if(i&&n>i)t.markers.forEach(function(e){t.setMarkerDisplay(e,!0)});else if(e=e.getBounds()){var r=t.getExtendedBounds(e);t.markers.forEach(function(e){!e.isAdded&&t.isMarkerInBounds(e,r)&&(t.addToClosestCluster(e),e.isAdded=!0)})}}},X.resetViewport=function(){qc(this.clusters,function(t){t.remove()}),this.markers.forEach(function(t){t.isAdded=!1,t.isClustered=!1}),this.clusters.length=0},X.addToClosestCluster=function(t){var e=4e4,n=null,i=this,r=t.get("position"),o=i.clusters;return qc(o,function(t){var o=t.get("center");o&&(o=i.distanceBetweenPoints(o,r),o<e&&(e=o,n=t))}),n&&this.isMarkerInClusterBounds(n,t)?n.addMarker(t):(n=new od(this),n.addMarker(t),o.push(n)),n},X.isMarkerInClusterBounds=function(t,e){var n=t.get("center");return this.getExtendedBounds(new ob(n,n)).contains(e.get("position"))},X.isMarkerInBounds=function(t,e){return e.contains(t.get("position"))},X.getExtendedBounds=function(t){var e=this.get("map").get("mapCanvasProjection"),n=parseInt(this.get("gridSize"))||60,i=t.getNorthEast(),r=t.getSouthWest(),i=e.fromLatLngToDivPixel(i);return i.x+=n,i.y-=n,r=e.fromLatLngToDivPixel(r),r.x-=n,r.y+=n,n=e.fromDivPixelToLatLng(i),e=e.fromDivPixelToLatLng(r),t.extend(n),t.extend(e),t},X.distanceBetweenPoints=function(t,e){if(!t||!e)return 0;var n=Math.PI,i=(e.getLat()-t.getLat())*n/180,r=(e.getLng()-t.getLng())*n/180,n=Math.sin(i/2)*Math.sin(i/2)+Math.cos(t.getLat()*n/180)*Math.cos(e.getLat()*n/180)*Math.sin(r/2)*Math.sin(r/2);return 12742*Math.atan2(Math.sqrt(n),Math.sqrt(1-n))},X.getCalculator=function(t,e){var n=this.get("calculator");if(n)return n(t,e);for(var n=0,i=t.length,r=i;0!==r;)r=parseInt(r/10,10),n++;return n=Math.min(n,e),{text:i,index:n}},X.getStyles=function(){return this.get("styles")||this.getModel().set("styles",Wo()),this.get("styles")};var Wo=function(){function t(){var t=To+"default/imgs/markercluster/m",e=[];return qc([53,56,66,78,90],function(n,i){e.push({icon:new Ro(t+(i+1)+".png",new Qo(n,n),new Og(0,0),new Og(n/2,n/2)),text:new So("{num}")})}),e}var e=null;return function(){return e||(e=t())}}(),tk=sf,Ya=window.localStorage,Xo=Ya&&Ya.setItem&&Ya.getItem,ol=Oa[1][1],Pg=Oa[1][0],Me=Oe,pl=Oa[1][3],jb={set:function(t,e){try{null!=e?Ya.setItem(t,e):Ya.removeItem(t)}catch(n){return null}},get:function(t){try{return Ya.getItem(t)}catch(e){return null}},forIn:function(t){try{for(var e in Ya)t(Ya[e],e)}catch(n){}},support:function(){return Xo}},lc={main:[],common:["main"],ea:["common"],ec:["common"],map:["common"],c0:["map"],c1:["c0"],c3:["c0","common"],pc:["c0"],c2:["map"],c4:["map"],oy:["map","common"],layers:["map"],marker:["map"],infowin:["map"],label:["map","common"],poly:["map"],pe:["poly"],sv:["map"],autocomplete:["sv"],drawingimpl:["map"],dmimpl:["map"],pano:["common"],c5:["common"],eb:["main"],place:["main"],geometry:["main"],drawing:["main"],convertor:["main"]},ql=Pg+"c/=/",rl=Pg,qg=5,xi={},gc={},Ef={},Bb;for(Bb in lc)if(lc.hasOwnProperty(Bb)){var te=lc[Bb];te[0]&&(xi[te[0]]=!0),Ef[Bb]=[],gc[Bb]=gc[Bb]||[];for(var Qg=te.length;Qg--;){var Rg=te[Qg];gc[Rg]?gc[Rg].push(Bb):gc[Rg]=[Bb]}}var rc={},ue={},Sg,rg="QMAPI_",ul=Me.split(/\./).join(""),Tg={},bi=function(t,e){if(!rc.hasOwnProperty(t)){var n=lc[t],i=gc[t],r=sl(n.length,function(){var n=e;Sg=t,xi[t]&&(n+=";(0,function(){return eval(arguments[0])})"),n=ue[lc[t][0]](n),ue[t]||(ue[t]=n),rc.hasOwnProperty(t)||(rc[t]=void 0);for(var n=Ef[t],r=0,o=n.length;r<o;r++)n[r](rc[t]);for(n=i.length;n--;)r=i[n],Tg[r]&&Tg[r]()});Tg[t]=r;for(var o=n.length;o--;)rc.hasOwnProperty(n[o])&&r();jb.support()&&(n=rg+Me.split(/\./).join("")+"_"+t,!jb.get(n)&&e&&jb.set(n,e))}};window.__cjsload=bi;var Ke={},tf=[],Le;jb.support()&&tl();var P={$require:function(t,e,n){rc.hasOwnProperty(t)?(t=rc[t],e(void 0===n?t:t[n])):(ai(t),Ef[t].push(void 0===n?e:function(t){e(t[n])}))},$initMain:function(t,e){ue[t]=e,Ke[t]=!0,rc[t]=void 0},$setExports:function(t){rc[Sg]=t}};P.$initMain("main",function(){return eval(arguments[0])}),P.$setExports(Tb);var yl=function(t){t=t||window.event,t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()},pd=function(t){t=t||window.event,t.returnValue=!1,t.preventDefault&&t.preventDefault()},uf=function(t){return pd(t),yl(t),!1},zl=Object.prototype.hasOwnProperty,sg=function(t,e){return zl.call(t,e)},tg=function(t){for(var e in t)if(sg(t,e))return!1;return!0},ci=function(t,e,n){var i=[],r=t.length;for(n=n||r,e=e||0;e<n;e++)i.push(t[e]);return i},aa=function(t,e){for(var n in t)if(sg(t,n)&&!1===e(t[n],n))return!1},mc=function(t,e){var n=t.style;0<=parseFloat(e)&&1>parseFloat(e)?(n.filter="alpha(opacity="+100*e+")",n.opacity=e):1==parseFloat(e)&&(n.filter="",n.opacity="")},di={},vf=function(t){return di[t]||(di[t]=t.substr(0,1).toUpperCase()+t.substr(1))},U=function(t){return"[object Function]"==Object.prototype.toString.call(t)},oe=function(t,e){return e=e||document.createElement("div"),t="on"+t,e.setAttribute(t,"return;"),U(e[t])||t in document.documentElement},zb=navigator.userAgent,qa=/msie (\d+\.\d+)/i.test(zb)?document.documentMode||+RegExp.$1:0,ug=function(t){return!(!t||!t.nodeName||1!=t.nodeType)},Ne=function(t){return ug(t)||t==window||t==document},cb=function(t,e,n){for(var i in e)!e.hasOwnProperty(i)||!n&&t.hasOwnProperty(i)||(t[i]=e[i]);return t},M=function(t,e){if(2<arguments.length){var n=ci(arguments,2);return function(){return t.apply(e||this,0<arguments.length?n.concat(ci(arguments)):n)}}return function(){return t.apply(e||this,arguments)}},qj=cb,jf=qa,D={listeners:{},eventObjects:{}},pj=0;D.addListener=function(t,e,n,i){return Ne(t)?D.addDomListener(t,e,n,i):new ac(t,e,n,0)},D.exist=function(t,e){var n=Md(t,e);return n&&!tg(n)},D.removeListener=function(t){t.remove()},D.clearListeners=function(t,e){aa(Md(t,e),function(t,e){t&&t.remove()})},D.clearInstanceListeners=function(t){aa(Md(t),function(t,e){t&&t.remove()})},D.trigger=function(t,e){if(D.exist(t,e)){var n=ci(arguments,2),i=Md(t,e);aa(i,function(t){t&&t.handler.apply(t.instance,n)})}else if(Ne(t)&&oe(e,t))if(t.fireEvent)try{t.fireEvent("on"+e)}catch(r){}else t.dispatchEvent&&(i=document.createEvent("Events"),i.initEvent(e,!0,!0),t.dispatchEvent(i))},D.addDomListener=function(t,e,n,i){var r=0;return t.addEventListener?(r=i?4:1,t.addEventListener(e,n,i),n=new ac(t,e,n,r)):t.attachEvent?(n=new ac(t,e,n,i?3:2),t.attachEvent("on"+e,rj(n)),i&&t.setCapture&&t.setCapture()):(t["on"+e]=n,n=new ac(t,e,n,5)),n},D.addDomListenerOnce=function(t,e,n,i){var r=D.addDomListener(t,e,function(){return r.remove(),n.apply(this,arguments)},i);return r},D.bindDom=function(t,e,n,i){return n=tj(i,n),D.addDomListener(t,e,n)},D.bind=function(t,e,n,i,r){return r?D.addListenerOnce(t,e,M(n,i)):D.addListener(t,e,M(n,i))},D.addListenerOnce=function(t,e,n){var i=D.addListener(t,e,function(){return i.remove(),n.apply(this,arguments)});return i},D.forward=function(t,e,n){return D.addListener(t,e,Wf(e,n))},D.forwardDom=function(t,e,n,i){return D.addDomListener(t,e,Wf(e,n,!i))},D.unload=function(){var t=D.listeners;aa(t,function(t){t&&t.remove()}),D.listeners={},(t=window.CollectGarbage)&&t()};var uj=0;ac.prototype.remove=function(){var t=this.instance,e=this.eventName;if(t){switch(this.browser){case 1:t.removeEventListener(e,this.handler,!1);break;case 4:t.removeEventListener(e,this.handler,!0);break;case 2:t.detachEvent("on"+e,this.bindHandler);break;case 3:t.detachEvent("on"+e,this.bindHandler),t.releaseCapture&&t.releaseCapture();break;case 5:t["on"+e]=null}delete yh(t,e)[this.id],t.__events_&&(tg(t.__events_[e])&&delete t.__events_[e],tg(t.__events_)&&delete t.__events_),this.bindHandler=this.handler=this.instance=null,delete D.listeners[this.id]}};var d=D;Xf.prototype.getTile=function(t,e,n,i,r){return n=n.createElement("div"),t={element:n,coord:t,zoom:e,instance:r},i&&(i=i.parentNode.createElement("div"),t.poiElement=i),n.data=t,this.grids.insert(t),n},Xf.prototype.releaseTile=function(t){var e=t.data;this.grids.remove(e),aa(e,function(t,n){delete e[n]}),t.data=null},Xf.prototype.stop=function(t){d.trigger(t.data,"stop",t.data)};var Ah=[6378136.49,-1],zh=[null,Ah],vg=window.qq&&qq.maps&&qq.maps.__load;vg&&vg(vj);var ei=zh,wg=ei[1],yc=wg[0],V=function(t){return t*(Math.PI/180)},Al=function(t,e){for(var n=[t];n.length;){var i=n.shift();for(e(i),i=i.firstChild;i;i=i.nextSibling)1==i.nodeType&&n.push(i)}},xg=function(t){Al(t,function(t){d.clearInstanceListeners(t)})},da=function(){return new Date},qd=function(){return+da()},Oa=ei[0],Ea=function(t){return"[object Object]"===Object.prototype.toString.apply(t)},R=function(t){return"[object String]"==Object.prototype.toString.call(t)},ic=[],Bl=function(t){var e=new Image;e.onload=e.onerror=e.onabort=wj,ic.push(e),e.src=t+("&random="+(+da()).toString(36))},h=function(t,e){for(var n=0,i=t.length;n<i;++n)if(!1===e(t[n],n))return!1},Oe=Oa[0][0],Dh=d,Dj=R,Cj=Ea,zj=h,Aj=Bl,Ch=Oa[3][2]+"?appid=jsapi&v="+Oe,xj=1024-Ch.length-16,Yf={},Ec=[];Yf.submit=lf,Dh.addDomListener(window,"beforeunload",function(){lf(!0)}),setInterval(lf,5e3);var yg=Yf,rd=new Function,sd=[],Cl=d.addListener(yg,"submit",function(t){if(0<sd.length){var e=sd.join("|");t("m",e),sd.length=0,d.removeListener(Cl),fi.set=rd}}),fi={set:function(t){sd.push(t)}},ck=fi,ta=[0,0],Dl=d.addListener(yg,"submit",function(t){if(0!=ta[0]||0!=ta[1]){var e=ta.join(",");t("mp",e),ta[0]=0,ta[1]=0,d.removeListener(Dl),gi.set=rd}}),gi={set:function(t,e){0!=t&&ta[0]++,0!=e&&ta[1]++}},El=gi,Fl=function(t,e){var n=V(t.getLat())-V(e.getLat()),i=V(t.getLng())-V(e.getLng()),n=Math.sin(n/2)*Math.sin(n/2)+Math.cos(V(e.getLat()))*Math.cos(V(t.getLat()))*Math.sin(i/2)*Math.sin(i/2),n=2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n));return yc*n},wf=function(t,e,n){return t>=e&&t<=n?t:((t-e)%(n-e)+(n-e))%(n-e)+e},td=Eh.prototype;td.isEmpty=function(){return 360==this.minX-this.maxX},td.intersects=function(t){var e=this.minX,n=this.maxX;return!this.isEmpty()&&!t.isEmpty()&&(e>n?t.minX>t.maxX||t.minX<=n||t.maxX>=e:t.minX>t.maxX?t.minX<=n||t.maxX>=e:t.minX<=n&&t.maxX>=e)},td.contains=function(t){-180==t&&(t=180);var e=this.minX,n=this.maxX;return this.minX>this.maxX?(t>=e||t<=n)&&!this.isEmpty():t>=e&&t<=n},td.extend=function(t){this.contains(t)||(this.isEmpty()?this.minX=this.maxX=t:this.distance(t,this.minX)<this.distance(this.maxX,t)?this.minX=t:this.maxX=t)},td.equals=function(t){return this.isEmpty()?t.isEmpty():1e-9>=Math.abs(t.minX-this.minX)%360+Math.abs(t.maxX-this.maxX)%360},td.center=function(){var t=(this.minX+this.maxX)/2;return this.minX>this.maxX&&(t=wf(t,-180,180)),t},td.distance=function(t,e){var n=e-t;return 0<=n?n:e+180-(t-180)};var cc=Fh.prototype;cc.isEmpty=function(){return this.minY>this.maxY},cc.intersects=function(t){var e=this.minY,n=this.maxY;return e<=t.minY?t.minY<=n&&t.minY<=t.maxY:e<=t.maxY&&e<=n},cc.contains=function(t){return t>=this.minY&&t<=this.maxY},cc.extend=function(t){this.isEmpty()?this.maxY=this.minY=t:t<this.minY?this.minY=t:t>this.maxY&&(this.maxY=t)},cc.equals=function(t){return this.isEmpty()?t.isEmpty():1e-9>=Math.abs(t.minY-this.minY)+Math.abs(this.maxY-t.maxY)},cc.center=function(){return(this.maxY+this.minY)/2};var Lc=function(t,e,n){return t<e?e:t>n?n:t},xf=Oa[0][1],gn=6===qa||7===qa||8===qa,H=Oa[5],Gl=Oa[4][7],hb=navigator.userAgent.toLowerCase(),zg="opera msie chrome applewebkit firefox mozilla".split(" "),Ag="x11 macintosh windows android iphone ipad".split(" "),Fb=0,Gb,Mc,bb,Ub=0,ud,Bg;for(Gb=zg.length;Fb<Gb;Fb++)if(Mc=zg[Fb],-1!=hb.indexOf(Mc)&&(Ub=Fb+1,bb=RegExp(Mc+"[ /]?([0-9]+(.[0-9]+)?)").exec(hb))){ud=parseFloat(bb[1]);break}for(6==Ub&&((bb=/^mozilla\/.*gecko\/.*(minefield|shiretoko)[ \/]?([0-9]+(.[0-9]+)?)/.exec(hb))&&(Ub=5,ud=parseFloat(bb[2])),(bb=/trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(hb))&&(Ub=2,ud=parseFloat(bb[1]))),1==Ub&&(bb=/^opera\/9.[89].*version\/?([0-9]+(.[0-9]+)?)/.exec(hb))&&(ud=parseFloat(bb[1])),Fb=0,Gb=Ag.length;Fb<Gb;Fb++)if(Mc=Ag[Fb],-1!=hb.indexOf(Mc)){Bg=Fb+1;break}var yf=[Ub,ud,Bg],T=yf[2],Cg=/opera(\/| )(\d+(\.\d+)?)(.+?(version\/(\d+(\.\d+)?)))?/i.test(zb)?+(RegExp.$6||RegExp.$2):0,A=function(t){return null===t},la=[],nb=document;la.isReady=!1,la._used=!1,la.ready=function(t){la.initReady(),la.isReady?t():la.push(t)},la.initReady=function(){if(!la._used){if(la._used=!0,"complete"===nb.readyState||"interactive"===nb.readyState)return la.fireReady();if(0<qa&&9>qa){nb.attachEvent("onreadystatechange",Gh);var t=function(){if(!la.isReady){var e=new Image;try{e.doScroll()}catch(n){return void setTimeout(t,64)}la.fireReady()}};t()}else nb.addEventListener("DOMContentLoaded",Hh,!1)}},la.fireReady=function(){if(!la.isReady){if(!nb.body)return setTimeout(la.fireReady,16);if(la.isReady=!0,la.length)for(var t,e=0;t=la[e];e++)t()}};var Dg=la.ready,hi=window.qq||(window.qq={}),zf=hi.maps||(hi.maps={}),Pe=function(t,e){return null!==e?(zf[t]=e,["qq","maps",t]):void(null===zf[t]||delete zf[t])},Ih=xf,je=window.document,Gj=/loaded|complete|undefined/i,Nd=je.dispatchEvent?"onload":"onreadystatechange",Ij=0<Cg,gd={},Hj=Pe("_svcb"+T,gd).join("."),fd=[],Hl=0,Tb={send:function(t,e,n,i){return t||(t="cb"+(new Date).getTime().toString(36)+(Hl++).toString(36)),Dg(function(){ke(t),Fj(t,e,n,i)}),t},cancel:ke};jc.prototype.stop=function(){this.__event__&&uf(this.__event__)};var ja=function(t){return"[object Array]"==Object.prototype.toString.call(t)},f=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},le=d,Jj=jc,Il=function(t){if(Object.keys)return Object.keys(t);var e=[];return aa(t,function(t,n){e.push(n)}),e},ii={},dc={},Jh={},Pa=k.prototype;Pa.get=function(t){var e=Fc(this)[t];if(e){t=e.targetKey;var e=e.target,n=ii[t]||(ii[t]="get"+vf(t));return e[n]?e[n]():e.get(t)}return this[t]},Pa.set=function(t,e){var n=Fc(this);if(n.hasOwnProperty(t)){var i=n[t],n=i.targetKey,i=i.target,r=dc[n]||(dc[n]="set"+vf(n));i[r]?i[r](e):i.set(n,e)}else this[t]=e,yb(this,t)},Pa.notify=function(t){var e=Fc(this);e.hasOwnProperty(t)?(t=e[t],t.target.notify(t.targetKey)):yb(this,t)},Pa.setValues=function(t){for(var e in t){var n=t[e],i=dc[e]||(dc[e]="set"+vf(e));this[i]?this[i](n):this.set(e,n)}},Pa.setOptions=Pa.setValues,Pa.changed=function(t){return function(){}},Pa.bindTo=function(t,e,n,i){n=n||t;var r=this;r.unbind(t,!0),hd(r)[t]=le.addListener(e,Gc(n.toLowerCase()),function(){yb(r,t)}),Kj(r,t,e,n,i)},Pa.bindsTo=function(t,e,n,i){t=ja(t)?t:Il(t),n=n||[];for(var r=0,o=t.length;r<o;r++)this.bindTo(t[r],e,n[r]||null,i)},Pa.unbind=function(t,e){var n=hd(this)[t];n&&(delete hd(this)[t],le.removeListener(n),n=e&&this.get(t),delete Fc(this)[t],e?this[t]=n:yb(this,t))},Pa.unbindAll=function(t){t||(t=[],aa(hd(this),function(e,n){t.push(n)}));var e=this;h(t,function(t){e.unbind(t)})};var Yj=k,Ud=function(t,e){for(var n;n=t.firstChild;)!e&&3!==n.nodeType&&xg(n),t.removeChild(n)},Jl=Tb,Kl=Oa[2][4],Vd=[Oa[2][2],Oa[2][3]],Ll=Oa[2][0],Ml=Oa[2][1],Lj=ja,hn=Kh,Vb=function(t){return"undefined"==typeof t},zc=function(t,e){throw Error("Invalid value or type for property <"+(t+("> :"+e)))},Eg=function(t,e){El.set(t,e)},Fg=function(t,e,n){var i={};n&&aa(n,function(t,e){i[e]=t}),e&&aa(e,function(t,e){i[e]=t}),t.setValues(i)},Nj=0,Qe=me.prototype;Qe.insert=function(t){var e=this.items,n=this.hash(t);e[n]||(++this.length,e[n]=t,d.trigger(this,"insert",t))},Qe.remove=function(t){var e=this.items,n=this.hash(t);e[n]&&(--this.length,delete e[n],d.trigger(this,"remove",t))},Qe.contains=function(t){return!!this.items[this.hash(t)]},Qe.forEach=function(t){var e,n=this.items;for(e in n)n.hasOwnProperty(e)&&t.call(this,n[e])};var p=function(){var t=arguments,e=t.length;return function(){for(var n=0;n<e;++n)if(t[n].apply(this,arguments))return!0;return!1}},v=function(t){return"[object Number]"==Object.prototype.toString.call(t)&&isFinite(t)},ea=function(t){return"boolean"==typeof t},E=function(t){return function(e){return e instanceof t}},ec=function(t,e,n){return e=hn(e,!n),cb(e,t,!0)},Wb=function(t){return function(e){new e(t)}},Qj=zc,ua=function(t,e){for(var n=0,i=e&&e.length;n<i;n+=2){var r=e[n],o=e[n+1];t["get"+vf(r)]=Oj(r),o&&(t["set"+vf(r)]=Pj(r,o))}},vd={TOP_LEFT:1,TOP_CENTER:2,TOP:2,TOP_RIGHT:3,LEFT_CENTER:4,LEFT_TOP:5,LEFT:5,LEFT_BOTTOM:6,RIGHT_TOP:7,RIGHT:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM:11,BOTTOM_RIGHT:12,CENTER:13};f(De,k),De.prototype.set=function(t,e){return null!=e&&(!e||!e.regionStyles||!Ea(e.regionStyles)||!e.labelStyles||!Ea(e.labelStyles)||!e.lineStyles||!Ea(e.lineStyles)||!e.pointStyles||!Ea(e.pointStyles)||!e.arrowStyles||!Ea(e.arrowStyles)||!e.bgColor||!R(e.bgColor)||!e.stylesId||!R(e.stylesId))&&console.warn("实现qq.maps.mapStyles所需的值不符合要求,请重新传入参数尝试"),k.prototype.set.apply(this,arguments)};var Wa={DEFAULT:"DEFAULT",TILE_BLACK:"TILE_BLACK",DARK:"DARK",TNIT:"TNIT",LIGHT:"LIGHT"};f(Od,k),Od.prototype.set=function(t,e){if(!(null==e||e&&e.tileSize&&v(e.maxZoom)&&e.tileSize.width&&e.tileSize.height))throw Error("实现 qq.maps.MapType 所需的值");return k.prototype.set.apply(this,arguments)};var Gg={DEFAULT:"default",CENTER:"center"},wd={ROADMAP:"roadmap",HYBRID:"hybrid",SATELLITE:"satellite",INDOORMAP:"indoormap"},qb=Q.prototype;qb.getX=function(){return this.x},qb.getY=function(){return this.y},qb.toString=function(){return this.x+", "+this.y},qb.equals=function(t){return!!t&&(t.x==this.x&&t.y==this.y)},qb.distanceTo=function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},qb.minus=function(t){return new Q(this.x-t.x,this.y-t.y)},qb.plus=function(t){return new Q(this.x+t.x,this.y+t.y)},qb.divide=function(t){return new Q(this.x/t,this.y/t)},qb.multiply=function(t){return new Q(this.x*t,this.y*t)},qb.clone=function(){return new Q(this.x,this.y)};var Sj=wf,Rj=Lc,ji=function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n},Lh=85.051128,Mb=F.prototype;Mb.toString=function(){return this.lat+", "+this.lng},Mb.equals=function(t){return!!t&&(1e-10>=Math.abs(this.lat-t.lat)&&1e-10>=Math.abs(this.lng-t.lng))},Mb.getLat=function(){return this.lat},Mb.getLng=function(){return this.lng},Mb.toUrlValue=function(t){return t=t||6,ji(this.lng,t)+","+ji(this.lat,t)},Mb.clone=function(){return new F(this.lat,this.lng,(!0))},Mb.distanceTo=function(t){return Fl(this,t)},Mb.subtract=function(t){return new F(this.lat-t.lat,this.lng-t.lng)};var ki=Math.PI/180,li=180/Math.PI;Mb.toMercator=function(){var t=[6378137*this.lng*ki,6378137*Math.log(Math.tan(.25*Math.PI+.5*this.lat*ki))];return 20037508.342789244<t[0]&&(t[0]=20037508.342789244),-20037508.342789244>t[0]&&(t[0]=-20037508.342789244),20037508.342789244<t[1]&&(t[1]=20037508.342789244),-20037508.342789244>t[1]&&(t[1]=-20037508.342789244),new Q(t[0],t[1])},F.fromMercator=function(t){return new F((.5*Math.PI-2*Math.atan(Math.exp(-t.y/6378137)))*li,t.x*li/6378137)},f(Rb,k);var rb=Rb.prototype;rb.getAt=function(t){return this.elems[t]},rb.forEach=function(t){for(var e=0,n=this.get("length");e<n&&!1!==t(this.elems[e],e);++e);},rb.setAt=function(t,e){var n=this.elems[t],i=this.elems.length;if(t<i)this.elems[t]=e,d.trigger(this,"set_at",t,n);else{for(n=i;n<t;++n)this.insertAt(n,void 0);this.insertAt(t,e)}},rb.insertAt=function(t,e){this.elems.splice(t,0,e),this.set("length",this.elems.length),d.trigger(this,"insert_at",e,t)},rb.removeAt=function(t){var e=this.get("length");if(e>t){var n=this.elems[t];return this.elems.splice(t,1),this.set("length",e-1),d.trigger(this,"remove_at",n,t),n}},rb.push=function(t){return this.insertAt(this.elems.length,t),this.elems.length},rb.pop=function(){return this.removeAt(this.elems.length-1)},rb.exists=function(t){if(t)for(var e=0;e<this.elems.length;e++)if(t==this.elems[e])return!0;return!1},rb.remove=function(t){for(var e=0;e<this.elems.length;e++)if(t==this.elems[e])return this.removeAt(e)},rb.clear=function(){for(var t=this.elems.length;t--;)this.removeAt(0)},rb.getArray=function(){return this.elems},ua(rb,["length",0]);var Zf=wf,Mh=Lc,Ee=Fh,ne=Eh,sb=ob.prototype;sb.isEmpty=function(){return this.lat.isEmpty()||this.lng.isEmpty()},sb.getSouthWest=function(){return new F(this.lat.minY,this.lng.minX,(!0))},sb.getNorthEast=function(){return new F(this.lat.maxY,this.lng.maxX,(!0))},sb.getCenter=function(){return new F(this.lat.center(),this.lng.center())},sb.intersects=function(t){return this.lat.intersects(t.lat)&&this.lng.intersects(t.lng)},sb.contains=function(t){var e,n=this.getSouthWest,i=this.getNorthEast;return t instanceof ob?(e=t.getSouthWest(),t=t.getNorthEast(),e.lat>=n.lat&&t.lat<=i.lat&&e.lng>=n.lng&&t.lng<=i.lng):this.lat.contains(t.getLat())&&this.lng.contains(t.getLng())},sb.extend=function(t){if(this.isEmpty()){var e=t.getLat();t=t.getLng(),this.lat=new Ee(e,e),this.lng=new ne(t,t)}else this.lat.extend(t.getLat()),this.lng.extend(t.getLng());return this},sb.union=function(t){if(!t.isEmpty())return this.extend(t.getNorthEast()),this.extend(t.getSouthWest()),this},sb.equals=function(t){return!!t&&(this.lat.equals(t.lat)&&this.lng.equals(t.lng))},sb.clone=function(){return new ob(this.getSouthWest(),this.getNorthEast())},sb.toString=function(){return this.getSouthWest()+", "+this.getNorthEast()},sb.toUrlValue=function(){return this.getSouthWest().toUrlValue()+","+this.getNorthEast().toUrlValue()};var $f=Rb,Af=F,Xj=me,ek=function(t){var e=window.setTimeout(t,1e3);Jl.send(null,Gl,function(n){n&&n.info&&0===n.error&&(n=n.info,H[0]&&n["1d"]&&(H[0][6]=n["1d"],H[3][6]=n["1d"]),H[1]&&n["2d"]&&(H[1][6]=n["2d"]),H[7]&&n.vt&&(H[7][4]=n.vt),H[2]&&n.sat&&(H[2][6]=n.sat)),t(),clearTimeout(e)},t)},ak=vd,Vj=Od,Wj=De,Zj=aa,Uj=Ud,Tj=Vb,Sb=R,Af=F,Nh=d,bk=Fg,dk=Eg,Pd={mapTypeId:wd.ROADMAP,mapStyleId:Wa.DEFAULT,maxZoom:Ml,minZoom:Ll,disableDefaultUI:!1,boundary:null,autoResize:!0,resizeKeepCenter:!0,mapZoomType:Gg.DEFAULT};Vd[0]&&Vd[1]&&(Pd.center=new Af(Vd[0],Vd[1]),Pd.zoom=Kl),f(Da,k);var tb=Da.prototype;ua(Da.prototype,["projection",null,"bounds",null,"boundary",p(E(ob),A),"center",E(Af),"zoom",v,"mapTypeId",Sb,"mapStyleId",Sb]),tb._=function(){return this.V},tb.getContainer=function(){return this.container},tb.panBy=Hc("panby"),tb.panTo=Hc("panto"),tb.flyTo=Hc("fly_to"),tb.zoomBy=function(t){var e=this.getZoom();v(e)&&this.setZoom(e+t)},tb.zoomTo=function(t){this.setZoom(t)},tb.fitBounds=Hc("fitbounds"),tb.panToBounds=Hc("pantolatlngbounds"),f(Ic,k),Ic.prototype.map_changed=function(){var t=this;P.$require("oy",function(e){e(t)})},ua(Ic.prototype,["map",p(E(Da),A),"panes",null,"projection",null]),Lb.fromHex=function(t,e){"#"===t.substring(0,1)&&(t=t.substr(1));var n=3===t.length?1:2,i=t.substr(0,n),r=t.substr(n,n),o=t.substr(2*n,n);return 1===n&&(i+=i,r+=r,o+=o),i=parseInt(i,16),r=parseInt(r,16),o=parseInt(o,16),new Lb(i,r,o,e||1)};var fc=Lb.prototype;fc.toRGB=function(){return"rgb("+[this.red,this.green,this.blue].join()+")"},fc.toRGBA=function(){return"rgba("+[this.red,this.green,this.blue,this.alpha].join()+")"},fc.toHex=function(){return"#"+(16777216+(this.red<<16)+(this.green<<8)+this.blue).toString(16).slice(1).toUpperCase()},fc.toInt=function(){return this.red<<16|this.green<<8|this.blue},fc.toString=function(){return this.toRGBA()},fc.clone=function(){return new Lb(this.red,this.green,this.blue,this.alpha)};var kk=Wb,Qd=Rb,jk=ec,ik=h,hk=ja,gk=E(Qd),Jc=Lb;f(Xc,Ic),Xc.prototype.getPath=function(){return this.get("path")},Xc.prototype.setPath=function(t){this.set("path",fk(t)||new Qd)},Xc.prototype.getBounds=function(){var t=this.getPath(),e=null;if(t&&t.getLength()){var n=[],i=[];t.forEach(function(t){n.push(t.getLng()),i.push(t.getLat())});var r=Math.min.apply(Math,n),o=Math.min.apply(Math,i),t=Math.max.apply(Math,n),e=Math.max.apply(Math,i),r=new F(o,r),t=new F(e,t),e=new ob(r,t)}return e},ua(Xc.prototype,["map",p(E(Da),A),"visible",ea,"simplify",ea,"clickable",ea,"editable",ea,"cursor",R,"zIndex",v,"geodesic",ea,"strokeDashStyle",p(R,A),"strokeColor",p(E(Jc),R,A),"strokeWeight",p(v),"fillColor",p(E(Jc),R,A)]);var Oh=Xc;f(ag,Oh);var Qh=Xc;f(Ph,Qh);var lk=ec,bc=Lb,mk=Wb;f(Fe,Ic),ua(Fe.prototype,["map",p(E(Da),A),"visible",ea,"center",p(E(F),A),"radius",p(v,A),"cursor",p(R,A),"zIndex",p(v,A),"fillColor",p(E(bc),R,A),"strokeColor",p(E(bc),R,A),"strokeWeight",v,"strokeDashStyle",p(R,A)]);var Nl=/-./g,Ol=function(t){return t.charAt(1).toUpperCase()},mi={};mi["float"]=qa?"styleFloat":"cssFloat";var Pl=function(t,e){return e=e||{},function(n){return sg(e,n)?e[n]:e[n]=t(n)}}(function(t){return t.replace(Nl,Ol)},mi),L=function(t,e,n){t.style[Pl(e)]=n},Wd=5==T||6==T,xd=yf[1],Ua=yf[0],Nb=function(){var t=oe,e=Ua,n=xd,i=Wd,i=4==e&&i,n=4==e&&4==T&&534<=n,r=3==e&&4==T,o=2==e&&0<navigator.msMaxTouchPoints,e=2==e&&0<navigator.maxTouchPoints,t=1!=T&&2!=T&&(t("touchstart")&&t("touchmove")&&t("touchend"));return!!(i||n||r||o||e||t)}(),Hg=1==T||2==T||3==T||!!window.navigator.msPointerEnabled||!Nb,Ql=/android\s(\d+\.\d)/i.test(zb)?+RegExp.$1:0,jn=/iPhone\sOS\s(\d[_\d]*)/i.test(zb)?+parseFloat(RegExp.$1.replace(/_/g,".")):0,kn=/iPad.*OS\s(\d[_\d]*)/i.test(zb)?+parseFloat(RegExp.$1.replace(/_/g,".")):0,Rl="ontouchstart"in window||kn||jn||Ql,Sl=/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(zb)&&!/chrome/i.test(zb)?+(RegExp.$1||RegExp.$2):0,Re=function(t,e,n){var i=t.length;
for(n=n||0,0>n&&(n+=i);n<i;n++)if(t[n]===e)return n;return-1},Bf={anims:[],timer:null,add:function(t){t._startTime=+da(),-1===Re(this.anims,t)&&this.anims.push(t),null===this.timer&&(this.timer=setInterval(this.nextFrame,16))},remove:function(t){var e=this.anims;h(this.anims,function(n,i){if(t===n)return delete t._startTime,e.splice(i,1),!1}),0===e.length&&(clearInterval(this.timer),this.timer=null)},nextFrame:function(){var t=+da(),e=[],n=null;h(Bf.anims.concat(),function(i){if(i._startTime){e.push(i),n=+da();var r=t-i._startTime,o=!1;r>=i.duration&&(r=i.duration,o=!0),i.set("current",r),i.onEnterFrame(r),o?i.stop():i.status||(i.status=1),i._frameDuration=+da()-n}});var i=+da()-t;h(e,function(t){t._startTime&&(t.onExitFrame(t._frameDuration,i),delete t._frameDuration)})}};f(bg,k);var Ab=bg.prototype;Ab.start=function(){function t(){e.onStart(),e.status=0,Bf.add(e),delete e._delayTimer}this.stop(!0);var e=this;this.delay?e._delayTimer=window.setTimeout(t,e.delay):t()},Ab.stop=function(t){this._delayTimer&&(window.clearTimeout(this._delayTimer),delete this._delayTimer),Bf.remove(this),this.status=-1,t||this.onEnd()},Ab.getStatus=function(){return this.status},Ab.onStart=function(){},Ab.onEnterFrame=function(){},Ab.onExitFrame=function(){},Ab.onEnd=function(){};var Ig=function(t){if(t=t||window.event,qa)t=[t.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),t.clientY+(document.documentElement.scrollTop||document.body.scrollTop)];else if(t.touches){var e=null;0<t.targetTouches.length?e=t.targetTouches[0]:0<t.changedTouches.length&&(e=t.changedTouches[0]),t=[e.pageX,e.pageY]}else t=[t.pageX,t.pageY];return t},pe=function(t){if(null===t.parentNode||"none"==t.style.display)return[0,0,0,0];var e=null,n=0,i=0,r=t.offsetWidth,o=t.offsetHeight;if(t.getBoundingClientRect&&!Rl)e=t.getBoundingClientRect(),t=Math.max(document.documentElement.scrollTop,document.body.scrollTop),n=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),n=e.left+n,i=e.top+t;else{if(document.getBoxObjectFor)e=document.getBoxObjectFor(t),n=t.style.borderLeftWidth?parseInt(t.style.borderLeftWidth):0,i=t.style.borderTopWidth?parseInt(t.style.borderTopWidth):0,n=e.x-n,i=e.y-i;else{if(n=t.offsetLeft,i=t.offsetTop,e=t.offsetParent,e!=t)for(;e;)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;(Cg||Sl&&"absolute"==t.style.position)&&(n-=document.body.offsetLeft,i-=document.body.offsetTop)}for(e=t.parentNode?t.parentNode:null;e&&"BODY"!=e.tagName&&"HTML"!=e.tagName;)n-=e.scrollLeft,i-=e.scrollTop,e=e.parentNode?e.parentNode:null}return[n,i,r,o]},ok=Hg,nk=Nb;f(Ge,k);var kb=Ge.prototype;kb.start=function(){this.set("tracking",!0)},kb.stop=function(){this.set("tracking",!1)},kb.addListener=function(t,e){return d.addListener(this,t,e)},kb.removeListener=function(t){return d.removeListener(t)},kb.clearAllListener=function(){d.clearInstanceListeners(this)};var B=function(t,e,n,i,r){return t=document.createElement(t||"div"),i&&(t.style.cssText=i),void 0!=n&&L(t,"z-index",n),e&&!r&&e.appendChild(t),t},lb={Copyright:{prefix:"©"+new Date(Oa[3][0]).getFullYear()+" Tencent",sno:"GS(2016)930号",dataPrefix:"Data©",imagePrefix:"Imagery©",home:"到腾讯地图查看此区域"},Key:{invalid:"开发者密钥验证失败"},PhoneTime:"拍摄日期",MapType:{ROADMAP:{name:"地图",alt:"显示街道地图"},SATELLITE:{name:"卫星",alt:"显示卫星地图"},HYBRID:{name:"混合",alt:"显示带有街道名称的卫星地图"},TRAFFIC:{name:"路况",alt:"显示实时路况"}},Navigation:{zoomIn:"放大",zoomOut:"缩小",left:"向左平移",right:"向右平移",up:"向上平移",down:"向下平移",ruler:"单击缩放",slide:"拖动缩放",zoomTips:{17:"街",11:"市",8:"省",4:"国"}},Scale:{m:"米",km:"公里",mile:"英里",feet:"英尺"},Time:{msec:"毫秒",sec:"秒",min:"分钟",hour:"小时"},Transfer:["乘坐","经过","站","到达","终点"],Direction:"东 东北 北 西北 西 西南 南 东南".split(" ")},yd=function(){var t=navigator.systemLanguage||navigator.language,t=t.toLowerCase().split("-")[0];switch(t){case"zh":return lb;default:return lb}}(),Ob={POI:"poi",SYN:"syn",POI_SYN:"poi_syn",RN:"rn",BUSLS:"busls",BUS:"bus",DT:"dt",DTS:"dts",GEOC:"geoc",RGEOC:"rgeoc",GC:"gc",CC:"cc",NAV:"snsnav",WALK:"walk",POS:"pos",SG:"sg",TAXFEE:"taxfee"},pk=cb;f(Yc,k);var Cf=Yc.prototype;Cf.send=function(){this.set("doSend",!0)},Cf.cancel=function(){this.set("doSend",!1)},Cf.clear=function(){this.set("doClear",!0)},ua(Yc.prototype,["complete",p(U,A),"error",p(U,A),"map",p(E(Da),A),"panel",p(ug,R,A)]);var zd=function(t){var e=[];return aa(t,function(t,n){e.push(n+"="+encodeURIComponent(t))}),e.join("&")},Jg=function(t,e,n,i,r,o){return{id:t,latlng:e||null,heading:n||0,pitch:i||0,zoom:r||1,description:o||""}},Tl=function(t){return t/111319.49077777778},ni=function(t){return 114.59155902616465*Math.atan(Math.exp(.017453292519943295*(t/111319.49077777778)))-90},Ul=Oa[4][3],Vl=Oa[4][2],Ck=k,Xd=Oa[4][0],Yd=function(t){return t/(Math.PI/180)},Xa={CIRCLE:"circle",MARKER:"marker",POLYGON:"polygon",POLYLINE:"polyline",RECTANGLE:"rectangle"},sk=Wb,qk=ec,rk=Rb;f(cg,k),ua(cg.prototype,["gridSize",v,"minimumClusterSize",v,"maxZoom",v,"zoomOnClick",ea,"averageCenter",ea,"styles",ja,"map",p(E(Da),A)]);var Wl=function(t,e){this.coords=t,this.type=e},qe=function(t,e){this.content=t,this.offset=e||new Q(0,0)},re=function(t,e,n,i,r,o){this.url=t,this.size=e||r,this.origin=n||new Q(0,0),this.anchor=i,this.scaledSize=r,this.shadowAngle=o||0},vk=Wb,uk=ec;f(Rd,Ic),Rd.prototype.changed=function(t){this.viewModel&&"constructed"!==t&&("icon"==t||"shadow"==t||"shape"==t||"cross"==t||"useDefaults"==t?this.viewModel.styleChange(t):"animation"==t?this.viewModel.animationChange(t):"height"==t?(this.viewModel.set(t,this.get(t)),this.viewModel.animationChange(t)):this.viewModel.set(t,this.get(t)))},ua(Rd.prototype,["position",p(E(F),A),"title",p(v,R,A),"icon",p(E(re),R,A),"shadow",p(E(re),A),"shape",p(E(Wl),A),"decoration",p(E(qe),A),"cursor",p(R,A),"clickable",ea,"animation",p(v,R,A),"draggable",ea,"visible",ea,"flat",ea,"zIndex",v,"height",v,"map",p(E(Da),A),"rotation",v,"autoRotation",ea]);var yk=Rb,Bk=me,xk=vd,eg=d,zk=Fg,Rh=R,wk=aa,Dk=Eg,Ak={pano:null,position:null,zoom:1,scrollwheel:!0,visible:!0,disableDefaultUI:!1,autoResize:!0};f(id,k);var Se=id.prototype;Se._=function(){return this.V},ua(id.prototype,["position",null,"planeInfo",null,"pano",p(Rh,A),"pov",Ea,"zoom",function(t){return!(!v(t)||1>t||4<t)},"visible",ea]),Se.startAutoPlay=dg("startAutoPlay"),Se.stopAutoPlay=dg("stopAutoPlay"),f(tc,k),tc.prototype.panorama_changed=function(){var t=this;P.$require("pano",function(e){e(t)},1)},ua(tc.prototype,["position",p(E(F),A),"panorama",p(E(id),A),"content",R,"altitude",v,"visible",ea]);var Ek=rd;f(uc,k),uc.prototype.map_changed=function(){var t=this;P.$require("layers",function(e){e(t)},1)},ua(uc.prototype,["map",p(E(Da),A)]),mf.prototype.checkBounds=function(t,e){var n={has_sv:1,bound:t.toUrlValue()},n=Ul+"?"+zd(n);Sh(null,n,function(t){e(t.detail.has_sv||0)})},mf.prototype.getPano=function(t,e,n){Sh("",Vl+"?lat="+t.lat+"&lng="+t.lng+"&r="+(e||500),function(t){if(t.detail.svid){var e=t.detail.road_name||"";"NA"===e&&(e=""),t=new Jg(t.detail.svid,new F(ni(t.detail.y),t.detail.x/111319.49077777778),null,null,null,e),t.svid=t.id,n(t)}else n(null)})};var Xl={NORMAL:0,BUS_STATION:1,SUBWAY_STATION:2,BUS_LINE:3,DISTRICT:4},oi={BUS:"BUS",SUBWAY:"SUBWAY",WALK:"WALK"},Yl={LEAST_TIME:0,LEAST_TRANSFER:1,LEAST_WALKING:2,MOST_ONE:3,NO_SUBWAY:4},Zl={LEAST_TIME:0,AVOID_HIGHWAYS:1,LEAST_DISTANCE:2,REAL_TRAFFIC:3,PREDICT_TRAFFIC:4},Fk=cb,Hk=Wb,Gk=Zl;f(vc,Yc);var pi=vc.prototype;pi.search=function(t,e){var n=p(R,E(F),Ea);n(t)&&n(e)?(this.set("start",t),this.set("end",e),this.send()):n(t)?zc("end",e):zc("start",t)},ua(vc.prototype,["complete",p(U,A),"error",p(U,A),"location",R,"policy",v]),pi.setPolicy=function(t,e){this.set("policy",t),this.set("time",e)};var Ik=cb,Kk=Wb,Jk=Yl;f(jd,Yc),jd.prototype.search=function(t,e){var n=p(R,E(F),Ea);n(t)&&n(e)?(this.set("start",t),this.set("end",e),this.send()):n(t)?zc("end",e):zc("start",t)},ua(jd.prototype,["complete",p(U,A),"error",p(U,A),"location",R,"policy",v]);var Lk=cb,Mk=Wb;f(pb,Yc),pb.prototype.searchById=function(t){this.set("info",t),this.send()},ua(pb.prototype,["complete",p(U,A),"error",p(U,A)]);var Nk=cb,Ok=Wb;f(Sd,Yc),Sd.prototype.searchById=function(t){this.set("info",t),this.send()},ua(Sd.prototype,["complete",p(U,A),"error",p(U,A)]);var Qk=Wb,Th=Yc,Pk=d;f(nf,Th);var nc=nf.prototype;nc.searchLocalCity=function(){this.set("mode",0),this.set("info",null),this.send()},nc.searchCityByName=function(t){this.set("mode",1),this.set("info",t),this.send()},nc.searchCityByLatLng=function(t){this.set("mode",2),this.set("info",t),this.send()},nc.searchCityByIP=function(t){this.set("mode",3),this.set("info",t),this.send()},nc.searchCityByAreaCode=function(t){this.set("mode",4),this.set("info",t),this.send()};var Sk=Wb,fg=Yc,Rk=d;f(of,fg);var qi=of.prototype;qi.getAddress=function(t){this.set("qt",Ob.RGEOC),this.set("info",t),this.send()},qi.getLocation=function(t){this.set("qt",Ob.GEOC),this.set("info",t),this.send()};var gg=Yc,Uk=d,Vk=Wb,Tk=cb;f(kd,gg);var Kg=kd.prototype;Kg.search=function(t){this.set("keyword",t),t=Ob.POI,2===this.get("mode")&&(t=Ob.BUSLS),this.set("qt",t),this.send()},Kg.searchInBounds=function(t,e){this.set("qt",Ob.POI_SYN),this.set("keyword",t),this.set("region",e),this.send()},Kg.searchNearBy=function(t,e,n,i){this.set("qt",Ob.RN),this.set("keyword",t),this.set("region",[e,n]),this.set("sortType",i||0),this.send()},ua(kd.prototype,["complete",p(U,A),"error",p(U,A),"pageIndex",v,"pageCapacity",v,"location",p(R,A)]);var oa={ERROR:"ERROR",NO_RESULTS:"NO_RESULTS",INVALID_REQUEST:"INVALID_REQUEST",UNKNOWN_ERROR:"UNKNOWN_ERROR"},Hb={POI_LIST:"POI_LIST",CITY_LIST:"CITY_LIST",AREA_INFO:"AREA_INFO",GEO_INFO:"GEO_INFO",STATION_INFO:"STATION_INFO",LINE_INFO:"LINE_INFO",TRANSFER_INFO:"TRANSFER_INFO",DRIVING_INFO:"DRIVING_INFO",MULTI_DESTINATION:"MULTI_DESTINATION",AUTOCOMPLETE_PREDICTION:"AUTOCOMPLETE_PREDICTION"},Wk=rd;f(ld,k),ld.prototype.map_changed=function(){var t=this;P.$require("layers",function(e){e(t)},0)},ua(ld.prototype,["map",p(E(Da),A)]);var $l={DEFAULT:0},Ib=ma.prototype;Ib.getWidth=function(){return this.width},Ib.getHeight=function(){return this.height},Ib.toString=function(){return this.width+", "+this.height},Ib.equals=function(t){return!!t&&(t.width==this.width&&t.height==this.height)},Ib.clone=function(){return new ma(this.width,this.height)};var Xk=ec,Yk=$l,ri=Uh.prototype;ri.setMap=function(t){this.map&&(this.map.setOptions({scaleControl:!1}),this.map=void 0),t&&(this.map=t,this.setOptions(t.get("scaleControlOptions")))},ri.setOptions=function(t){t=t||{},this.map.setOptions({scaleControl:!0,scaleControlOptions:{position:t.align||t.position}})};var se={DEFAULT:0,LARGE:1,SMALL:2},Lg={DEFAULT:0,SMALL:1,ZOOM_PAN:2},$k=ma,Zk=ec,He=Lg,Mg=hg.prototype;Mg.setMap=function(t){this.map&&(this.map.setOptions({zoomControl:!1,panControl:!1}),this.map=void 0),t&&(this.map=t,this.setOptions(this.opts))},Mg.setOptions=function(t){switch(t=t||{},t.style){case He.SMALL:this.map.setOptions({zoomControl:!0,zoomControlOptions:{position:t.position||t.align,style:se.SMALL,zoomTips:t.zoomTips},panControl:!1});break;case He.ZOOM_PAN:this.map.setOptions({zoomControl:!0,zoomControlOptions:{style:se.SMALL,position:t.position||t.align,zoomTips:t.zoomTips},panControl:!0,panControlOptions:{position:t.position||t.align}});break;default:this.map.setOptions({zoomControl:!0,zoomControlOptions:{style:se.DEFAULT,position:t.position||t.align,zoomTips:t.zoomTips},panControl:!0,panControlOptions:{position:t.position||t.align}})}};var al=h,bl=["position","style","mapTypeIds","align"];f(ig,k);var kg=k,kc=d,xc=h,cl=bg;wc.prototype.add=function(t){t.mvcRN||(t.mvcRN=++this.count,this.views.push(t),!this.isRun&&0<this.count&&this.start())},wc.prototype.renderOne=function(t){delete t.mvcRN,t.draw()},wc.prototype.renderViews=function(){for(var t=null,e=this.views;t=e.shift();)t.mvcRN&&this.renderOne(t);this.count=0},wc.prototype.start=function(){this.isRun=!0;var t=this,e=this.anim,n=this.views;e.onEnterFrame=function(){n[0]?t.renderViews():t.stop()},e.onEnd=function(){t.isRun&&e.start()},e.delay=10,e.start()},wc.prototype.stop=function(){this.isRun=!1;var t=this.anim;delete t.onEnd,t.stop()};var si=new wc;f(Ta,kg);var wa=Ta.prototype;wa.redraw=function(t){t?this.forcedraw():si.add(this)},wa.forcedraw=function(){si.renderOne(this)},wa.draw=function(){},wa.dispose=function(){kc.removeListener(this._fdrawListener)},wa.triggerEvents=function(t,e,n){var i=this._model;if(i){if(Ne(e))for(var r=new Ge(e),o=this,s=0,a=t.length;s<a;s++)r.addListener(t[s],function(t,e){return function(n){var i=o.getMouseContainerPixel(n),r=o.getMouseEventLatLng(n,i);n=new jc(r,i,e,t,n),kc.trigger(t,e,n)}}(i,t[s]));if(null==e||e==i){for(e=new jc,r=0,s=n.length;r<s;r+=2)e[n[r]]=n[r+1];e.target=i,e.type=t,kc.trigger(i,t,e)}}},wa.triggerMapsEvent=function(t,e){var n=null,i=null,r=this._model;r&&(e&&(n=this.getMouseContainerPixel(e),i=this.getMouseEventLatLng(e,n)),n=new jc(i,n,t,r,e),kc.trigger(r,t,n))},wa.triggerCustomEvent=function(t,e,n){n=n||{};var i=null,r=this._model;if(r){if(e){var o=r.get("map")||r;o&&(o=o.get("mapCanvasProjection"))&&(i=o.fromLatLngToContainerPixel(e))}var s=new jc(e,i,t,r,null,n.cursorPixel);n&&aa(n,function(t,e){s[e]=t}),kc.trigger(r,t,s)}},wa.forwardEvents=function(t){var e=this._model;if(e){e._eventTaget||(e._eventTaget={});for(var n=0,i=t.length;n<i;n++)kc.forward(e._eventTaget,t[n],this)}},wa.getMouseEventLatLng=function(t,e){var n=this._model;if(n&&(n=n.get("map")||n))return e=e||this.getMouseContainerPixel(t),(n=n.get("mapCanvasProjection"))&&n.fromContainerPixelToLatLng(e,!0)},wa.getMouseEventPoint=function(t){var e=this._model;if(e&&(e=e.get("map")||e))return t=this.getMouseContainerPixel(t),e.get("mapCanvasProjection").fromContainerPixelToPoint(t)},wa.getMouseContainerPixel=function(t){var e=this._model;if(e)return e=e.get("map")||e,e=e.get("mapContainer")||e.getContainer(),e=pe(e),t=Ig(t),new Q(t[0]-e[0],t[1]-e[1])},wa.getModel=function(){return this._model},wa.keysReady=function(t,e,n){jg(this,t,e,function(t,e){var i=!0;return xc(t,function(t,r){if(!(n&&ea(n(t,e[r]))?0:null!==t&&!Vb(t)))return i=!1}),i})},wa.keysUnReady=function(t,e,n){jg(this,t,e,function(t,e){var i=!1;return xc(t,function(t,r){var o;if(n&&ea(o=n(t,e[r]))?o:null===t||Vb(t))return i=!0,!1}),i})},f(md,Ta);var Ng=md.prototype;Ng.changed=function(t){this.a[t]=!0,this.redraw()},Ng.draw=function(){var t=this.get("map"),e=this.get("content"),n=this.get("visible"),i=this.a,r=this.l;if(this.a={},t&&e&&!1!==n){var o=this.get("align")||vd.TOP_CENTER;if((n=this.e)||(n=this.e=B("div")),i.map||i.align){var s=this.e;r&&s&&r.remove(s),r=this.l=t.controls[o],r.push(n)}i.content&&(Vh(n),R(e)?n.innerHTML=e:n.appendChild(e)),i.margin&&(t=this.get("margin")||new ma(0,0),n.style.margin=[t.getWidth()+"px",t.getHeight()+"px",t.getWidth()+"px",t.getHeight()+"px"].join(" ")),n&&d.trigger(n,"resize")}else t=this.e,r&&t&&r.remove(t),Vh(this.e)},ua(md.prototype,["map",p(E(Da),A),"content",p(R,ug),"align",v,"margin",E(ma),"zIndex",v,"visible",ea]);var dl=ec,el=Wb;f(Ie,Ic),ua(Ie.prototype,["map",p(E(Da),A),"imageUrl",p(R,A),"bounds",p(E(ob),A),"visible",ea,"clickable",ea,"cursor",R,"zIndex",p(v,A),"opacity",p(v,A)]);var fl=ec,gl=Wb;f(pf,Ic),ua(pf.prototype,["map",p(E(Da),A),"position",p(E(F),A),"content",p(R,A),"title",p(R,A),"visible",ea,"zIndex",p(v,A),"offset",p(E(ma),A),"style",p(Ea,R,A),"clickable",ea]);var hl=ec,il=Wb,lg=Ic;f(Je,lg),ua(Je.prototype,["map",p(A,E(Da)),"position",p(A,E(F),E(k)),"content",p(R,ug,A),"zIndex",v]),Je.prototype.open=function(){this.set("visible",!0),this.get("disableAutoPan")||this.notify("autoPan")},Je.prototype.close=function(){this.set("visible",!1)},Je.prototype.notifyResize=function(){this.notify("resize")};var Xh=Fe;f(Wh,Xh),Wh.prototype.getBounds=function(){var t=this.get("center"),e=this.get("radius"),n=null;if(t)if(0>=e)n=new ob(t.clone(),t.clone());else var i=t.getLat(),r=e/6378137,o=180*r/Math.PI,e=i+o,n=i-o,i=Math.cos(i*Math.PI/180),o=360*Math.asin(r/2/i)/Math.PI,i=t.getLng()+o,t=t.getLng()-o,n=new ob(new F(n,t),new F(e,i));return n};var mg=Ph;f(Yh,mg);var Zh=ag;f(nd,Zh);var $h=cg;f(qf,$h);var oc=qf.prototype;oc.addMarker=function(t){this.clusterView.addMarker(t)},oc.removeMarker=function(t){var e=this.get("markers");e&&(e.remove(t),this.clusterView.removeMarker(t))},oc.addMarkers=function(t){var e=this.get("markers");h(t,function(t){e.push(t)}),this.clusterView.redraw()},oc.removeMarkers=function(t){var e=this.get("markers");h(t,function(t){e.remove(t)}),this.clusterView.removeMarkers(t)},oc.clearMarkers=function(){var t=this.get("markers");this.clusterView.removeMarkers(t.elems.slice()),t.clear()},oc.getMarkers=function(){return this.get("markers")},oc.getClustersCount=function(){return this.clusterView.getClusterCount()},oc.updateView=function(){return this.clusterView.reloadView()};var am={BOUNCE:1,DROP:2,UP:3,DOWN:4},ng=Rd;f(Td,ng);var Ad=Td.prototype;Ad.moveTo=function(t,e,n){this.viewModel.moveTo(t,e,n)},Ad.moveAlong=function(t,e,n){this.viewModel.moveAlong(t,e,n)},Ad.stopMove=function(){this.viewModel.stopMove()},Ad.pauseMove=function(){this.viewModel.pauseMove()},Ad.resumeMove=function(){this.viewModel.resumeMove()};var kl=me,ll=Xf,jl=cb,Kc=M;f(rf,k),ua(rf.prototype,["opacity",p(v,A)]);var bm=function(t){var e;return function(){return t&&(e=t(),t=null),e}},ln=Oa[3][1],Te=function(){return window.devicePixelRatio||screen.deviceXDPI&&screen.deviceXDPI/96||1},ti=bm(function(){var t=document.createElement("canvas");return t.width=16,t.height=16,!(!t||!t.getContext)}),Df=ln,Df=Df+"?appid=jsapi&logid=0&v=",ui=wg[1],vi=Oa[6][2],ml=Td,og=d;f(od,k);var pc=od.prototype;pc.remove=function(){this.icon.set("map",null),this.markers.length=0,og.removeListener(this.clickListener),delete this.markers,delete this.icon,delete this.markerCluster,delete this.clickListener},pc.addMarker=function(t){this.isMarkerAlreadyAdded(t)||(this.markers.push(t),this.updateCenter(t.get("position")),this.redraw())},pc.redraw=function(){var t=this,e=this.markerCluster.get("minimumClusterSize")||1,n=this.markers,i=this.map,r=n.length>=e;h(n,function(e){e.isClustered=r,t.markerCluster.setMarkerDisplay(e,!r)}),this.updateIcon(),this.icon.set("map",r?i:null),this.icon.set("position",r?this.center:null)},pc.updateCenter=function(t){var e=this.get("center");if(e){if(this.markerCluster.get("averageCenter")){var n=this.markers.length;this.set("center",new F((e.lat*(n-1)+t.lat)/n,(e.lng*(n-1)+t.lng)/n))}}else this.set("center",t)},pc.updateIcon=function(){var t=this.markerCluster.getStyles(),e=t.length,n=this.markerCluster.getCalculator(this.markers,e),i=Math.max(0,n.index-1),i=Math.min(e-1,i),e=t[i],t=e.icon,e=e.text,n=e.content.replace(/\{(\w+)\}/g,n.text),n=new qe(n,e.offset);this.icon.set("decoration",n),this.icon.set("icon",t)},pc.isMarkerAlreadyAdded=function(t){return-1!==Re(this.markers,t)},pc.getMarkers=function(){return this.markers},pc.getBounds=function(){var t=this.get("center");if(!t)return null;var e={},n=new ob(t,t);return h(this.markers,function(t){n.extend(t.get("position"))}),e.info=n.lat.maxY==n.lat.minY&&n.lng.maxY==n.lng.minY?-1:0,e.bounds=n,e};var w={};w.event=d,w.MVCObject=k,w.MVCArray=Rb,w.LatLng=F,w.LatLngBounds=ob,w.Size=ma,w.Point=Q,w.Color=Lb,w.Map=Da,w.MapTypeId=wd,w.MapZoomType=Gg,w.MapTypeRegistry=Od,w.MapStyleId=Wa,w.MapStyleRegistry=De,w.ImageMapType=rf,w.Overlay=Ic,w.Marker=Td,w.MarkerImage=re,w.MarkerShape=Wl,w.MarkerAnimation=am,w.MarkerDecoration=qe,w.Cluster=od,w.MarkerCluster=qf,w.Polyline=nd,w.Polygon=Yh,w.Circle=Wh,w.InfoWindow=Je,w.Label=pf,w.GroundOverlay=Ie,w.ControlPosition=vd,w.Control=md,w.ALIGN={TOP_LEFT:5,TOP:2,TOP_RIGHT:3,LEFT:4,CENTER:13,RIGHT:8,BOTTOM_LEFT:10,BOTTOM:11,BOTTOM_RIGHT:12,isTop:function(t){return 3>t},isMiddle:function(t){return 2<t&&6>t},isBottom:function(t){return 5<t},isLeft:function(t){return 0==t%3},isCenter:function(t){return 1==t%3},isRight:function(t){return 2==t%3}},w.MapTypeControl=ig,w.NavigationControl=hg,w.NavigationControlStyle=Lg,w.ZoomControlStyle=se,w.ScaleControl=Uh,w.ScaleControlStyle=$l,w.TrafficLayer=ld,w.ServiceResultType=Hb,w.ServiceErrorType=oa,w.SearchService=kd,w.Geocoder=of,w.CityService=nf,w.StationService=Sd,w.LineService=pb,w.TransferService=jd,w.DrivingService=vc,w.DrivingPolicy=Zl,w.TransferPolicy=Yl,w.TransferActionType=oi,w.PoiType=Xl,w.Panorama=id,w.PanoramaService=mf,w.PanoramaLayer=uc,w.PanoramaLabel=tc;var cm=function(t){t=Df+Oe+"&c="+(ti?1:0)+"&d="+Te()+"&sl="+t,window.Object&&Object.defineProperty&&(t+="&es5=1"),Bl(t)};aa(w,function(t,e){Pe(e,t)});var dm=new Date;Dg(function(){if(ui&&cm(dm-ui),vi){var a="window."+vi;setTimeout(function(){eval('"use strict";'+a+"()")},0)}"undefined"!=typeof navigator&&-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&d.addDomListener(window,"unload",d.unload)});var Xb=Oa[1][2],pg=Ta,Og=Q,Qo=ma,Ro=re,So=qe,To=Xb,Uo=d,Vo=M,qc=h;f(sf,pg);var X=sf.prototype;X.map_changed=function(){this.ready&&this.destroy(),this.get("map")&&this.construct()};var wi="gridSize minimumClusterSize maxZoom zoomOnClick averageCenter styles".split(" ");X.construct=function(){this.ready=!0;var t=this.getModel();this.bindsTo(wi,t),this.addEvents()},X.destroy=function(){this.ready=!1,this.unbinds(wi),this.removeEvents()},X.changed=function(t){("gridSize"===t||"maxZoom"===t||"minimumClusterSize"===t)&&this.reloadView()},X.averageCenter_changed=function(){this.reloadView()},X.calculator_changed=function(){qc(this.clusters,function(t){t.updateIcon()})},X.styles_changed=function(){qc(this.clusters,function(t){t.updateIcon()})},X.reloadView=function(){if(this.ready){var t=this.clusters.slice();this.clusters.length=0,this.resetViewport(),t[0]&&window.setTimeout(function(){qc(t,function(t){t.remove()})},50),this.redraw()}},X.addEvents=function(){function t(t,n,r){i.push(Uo.addListener(t,n,Vo(r,e)))}var e=this,n=e.get("map"),i=e._evts=[],r=null;t(n,"zoom_changed",function(){var t=n.get("zoom");r!==t&&(r=t,this.resetViewport())}),t(n,"idle",e.redraw)},X.removeEvents=function(){var t=this._evts;t&&(qc(t,function(t){t.remove()}),delete this._evts)},X.addMarker=function(t){this.markers.push(t),this.redraw()},X.removeMarker=function(t){this.setMarkerDisplay(t,!0),this.markers.remove(t),t.setMap(null),t.isAdded&&delete t.isAdded,this.reloadView()},X.removeMarkers=function(t){var e=this;qc(t,function(t){t.isAdded&&delete t.isAdded,e.markers.remove(t),t.setMap(null)}),this.reloadView()},X.setMarkerDisplay=function(t,e){if(e){var n=this.get("map");n&&t.set("map",n)}else t.set("map",null)},X.doClusterClick=function(t){this.triggerCustomEvent("clusterclick",t.center,{markers:t.markers});var e=this.get("map");e&&this.get("zoomOnClick")&&(t=t.getBounds())&&!(-1==t.info&&e.getZoom()==e.maxZoom)&&e.fitBounds(t.bounds)},X.isMarkerInMapDisplay=function(t){return t.get("map")===this.get("map")&&t.get("visible")&&t.get("position")},X.getClusterCount=function(){var t=this.get("minimumClusterSize"),e=0;return qc(this.clusters,function(n){n.getMarkers().length>=t&&e++}),e},X.draw=function(){if(this.ready){var t=this,e=t.get("map"),n=e.get("zoom"),i=t.get("maxZoom");if(i&&n>i)t.markers.forEach(function(e){t.setMarkerDisplay(e,!0)});else if(e=e.getBounds()){var r=t.getExtendedBounds(e);t.markers.forEach(function(e){!e.isAdded&&t.isMarkerInBounds(e,r)&&(t.addToClosestCluster(e),e.isAdded=!0)})}}},X.resetViewport=function(){qc(this.clusters,function(t){t.remove()}),this.markers.forEach(function(t){t.isAdded=!1,t.isClustered=!1}),this.clusters.length=0},X.addToClosestCluster=function(t){var e=4e4,n=null,i=this,r=t.get("position"),o=i.clusters;return qc(o,function(t){var o=t.get("center");o&&(o=i.distanceBetweenPoints(o,r),o<e&&(e=o,n=t))}),n&&this.isMarkerInClusterBounds(n,t)?n.addMarker(t):(n=new od(this),n.addMarker(t),o.push(n)),n},X.isMarkerInClusterBounds=function(t,e){var n=t.get("center");return this.getExtendedBounds(new ob(n,n)).contains(e.get("position"))},X.isMarkerInBounds=function(t,e){return e.contains(t.get("position"))},X.getExtendedBounds=function(t){var e=this.get("map").get("mapCanvasProjection"),n=parseInt(this.get("gridSize"))||60,i=t.getNorthEast(),r=t.getSouthWest(),i=e.fromLatLngToDivPixel(i);return i.x+=n,i.y-=n,r=e.fromLatLngToDivPixel(r),r.x-=n,r.y+=n,n=e.fromDivPixelToLatLng(i),e=e.fromDivPixelToLatLng(r),t.extend(n),t.extend(e),t},X.distanceBetweenPoints=function(t,e){if(!t||!e)return 0;var n=Math.PI,i=(e.getLat()-t.getLat())*n/180,r=(e.getLng()-t.getLng())*n/180,n=Math.sin(i/2)*Math.sin(i/2)+Math.cos(t.getLat()*n/180)*Math.cos(e.getLat()*n/180)*Math.sin(r/2)*Math.sin(r/2);return 12742*Math.atan2(Math.sqrt(n),Math.sqrt(1-n))},X.getCalculator=function(t,e){var n=this.get("calculator");if(n)return n(t,e);for(var n=0,i=t.length,r=i;0!==r;)r=parseInt(r/10,10),n++;return n=Math.min(n,e),{text:i,index:n}},X.getStyles=function(){return this.get("styles")||this.getModel().set("styles",Wo()),this.get("styles")};var Wo=function(){function t(){var t=To+"default/imgs/markercluster/m",e=[];return qc([53,56,66,78,90],function(n,i){e.push({icon:new Ro(t+(i+1)+".png",new Qo(n,n),new Og(0,0),new Og(n/2,n/2)),text:new So("{num}")})}),e}var e=null;return function(){return e||(e=t())}}(),tk=sf,Ya=window.localStorage,Xo=Ya&&Ya.setItem&&Ya.getItem,ol=Oa[1][1],Pg=Oa[1][0],Me=Oe,pl=Oa[1][3],jb={set:function(t,e){try{null!=e?Ya.setItem(t,e):Ya.removeItem(t)}catch(n){return null}},get:function(t){try{return Ya.getItem(t)}catch(e){return null}},forIn:function(t){try{for(var e in Ya)t(Ya[e],e)}catch(n){}},support:function(){return Xo}},lc={main:[],common:["main"],ea:["common"],ec:["common"],map:["common"],c0:["map"],c1:["c0"],c3:["c0","common"],pc:["c0"],c2:["map"],c4:["map"],oy:["map","common"],layers:["map"],marker:["map"],infowin:["map"],label:["map","common"],poly:["map"],pe:["poly"],sv:["map"],autocomplete:["sv"],drawingimpl:["map"],dmimpl:["map"],pano:["common"],c5:["common"],eb:["main"],place:["main"],geometry:["main"],drawing:["main"],convertor:["main"]},ql=Pg+"c/=/",rl=Pg,qg=5,xi={},gc={},Ef={},Bb;for(Bb in lc)if(lc.hasOwnProperty(Bb)){var te=lc[Bb];te[0]&&(xi[te[0]]=!0),Ef[Bb]=[],gc[Bb]=gc[Bb]||[];for(var Qg=te.length;Qg--;){var Rg=te[Qg];gc[Rg]?gc[Rg].push(Bb):gc[Rg]=[Bb]}}var rc={},ue={},Sg,rg="QMAPI_",ul=Me.split(/\./).join(""),Tg={},bi=function(t,e){if(!rc.hasOwnProperty(t)){var n=lc[t],i=gc[t],r=sl(n.length,function(){var n=e;Sg=t,xi[t]&&(n+=";(0,function(){return eval(arguments[0])})"),n=ue[lc[t][0]](n),ue[t]||(ue[t]=n),rc.hasOwnProperty(t)||(rc[t]=void 0);for(var n=Ef[t],r=0,o=n.length;r<o;r++)n[r](rc[t]);for(n=i.length;n--;)r=i[n],Tg[r]&&Tg[r]()});Tg[t]=r;for(var o=n.length;o--;)rc.hasOwnProperty(n[o])&&r();jb.support()&&(n=rg+Me.split(/\./).join("")+"_"+t,!jb.get(n)&&e&&jb.set(n,e))}};window.__cjsload=bi;var Ke={},tf=[],Le;jb.support()&&tl();var P={$require:function(t,e,n){rc.hasOwnProperty(t)?(t=rc[t],e(void 0===n?t:t[n])):(ai(t),Ef[t].push(void 0===n?e:function(t){e(t[n])}))},$initMain:function(t,e){ue[t]=e,Ke[t]=!0,rc[t]=void 0},$setExports:function(t){rc[Sg]=t}};return P.$initMain("main",function(){return eval(arguments[0])}),P.$setExports(Tb),window.qq});