/**/_jsload2&&_jsload2('autocomplete', 'A.lang.Ja.prototype.gi=ia(0,function(){delete window[A.da]._instances[this.da];for(var a in this)A.lang.wt(this[a])||delete this[a]});A.U.getComputedStyle=function(a,b){var a=A.U.Zj(a),c=A.U.DD(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,q))?c[b]||c.getPropertyValue(b):""};A.U.remove=function(a){var a=A.U.Zj(a),b=a.parentNode;b&&b.removeChild(a)};A.lang.isArray=function(a){return"[object Array]"==Object.prototype.toString.call(a)}; A.event=A.event||{};A.event.stopPropagation=function(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=p};A.event.preventDefault=function(a){a.preventDefault?a.preventDefault():a.returnValue=t};A.event.stop=function(a){var b=A.event;b.stopPropagation(a);b.preventDefault(a)};A.oc.indexOf=function(a,b,c){var e=a.length,c=c|0;for(0>c&&(c=Math.max(0,e+c));c",r6:"
#{2}
", z0:\'
\\u5173\\u95ed
\',y0:\'#{0}
\',B0:\'#{1}\',VX:function(){return A.hp(this.A0, this.Zb(),this.Us(),this.da)},Ba:function(a,b){var c,a=A.fa(a);this.aC=b;!this.li()&&a&&(this.g0=a.id?a.id:a.id=this.Zb("input"),c=this.b_(),c.style.display="none",c.innerHTML=this.VX(),this.dispatchEvent("onload"))},DA:function(){var a=this.li();return a&&"none"!=a.style.display},Dj:function(a){var b=this.sm,a={data:{item:(b&&"number"==typeof a&&"undefined"!=typeof b[a]?b[a].value:a)==a?{value:a,content:a}:b[a],index:a}};this.dispatchEvent("onbeforepick",a)&&this.dispatchEvent("onpick",a)},show:function(a, b,c){var a=0,e=b.length;this.zk=[];this.bd=-1;if(0==e&&!c)this.aa();else{for(this.sm=[];ae.width&&(e.width=0)),b.height))e.height=parseFloat(b.height)-c(a,"paddingTop")-c(a,"paddingBottom")-c(a,"borderTopWidth")-c(a,"borderBottomWidth"),0>e.height&&(e.height=0);return A.U.Ci(a,e)}; (function(){var a=A.Sb.im.uK=u();a.Yy=t;a.qq;a.mG;a.nG;a.kP=function(){if(this.qq)this.lP(),A.Td(this.qq,"display","block");else{var a=this.KV||{},c=this.mG=a.cb||this.li(),e=a.opacity||"0",a=a.color||"",f=this.qq=document.createElement("iframe"),g=this.nG=document.createElement("div");0n+m?-s-(e.width||0):0;i.top+=i.topo+k?-v-(e.height||0):0;break;case "fix":i.left=Math.max(0-parseFloat(A.U.Dg(b,"marginLeft"))||0,Math.min(i.left,A.page.WD()-s-w.left));i.top=Math.max(0-parseFloat(A.U.Dg(b,"marginTop"))||0,Math.min(i.top,A.page.VD()- v-w.top));break;case "verge":var y=-1m-w.left?B-s:y;i.top+=i.top+z+v-o>k-w.top?C-v:z}A.U.va(b,i);!g&&(k!=A.page.VD()||m!=A.page.WD())&&this._positionByCoordinate(b,e,{},p);g||this.dispatchEvent("onpositionupdate")}; b.PP=function(a,b,f){("undefined"==typeof b||!b)&&A.event.V(A.U.gY(a),"resize",A.Rs.bind.apply(this,["_positionByCoordinate",this].concat([].slice.call(f))));this._positionByCoordinate.apply(this,f)}})(); A.Sb.Ki.extend({TZ:p,VW:p,hY:function(){var a=this;return function(){a.Dw(p)}},Dw:function(a){var b=this.Fm(),c=this.aC,e=this.li();if(this.DA()||!a)c&&(b=c),a=A.U.ma(b),b={top:a.top+b.offsetHeight-1,left:a.left,width:b.offsetWidth},b="function"==typeof this.view?this.view(b):b,this.va([b.left,b.top],q,{xZ:p}),A.U.H_(e,b.width)}}); A.Sb.Ki.df(function(a){a.$0=a.hY();a.addEventListener("onload",function(){a.Dw();a.VW&&(a.WW=setInterval(function(){var b=a.li(),c=a.Fm();0!=b.offsetWidth&&(c&&c.offsetWidth!=b.offsetWidth)&&(a.Dw(),b.style.display="block")},100));a.V(window,"resize",a.$0)});a.addEventListener("onshow",function(){a.Dw()});a.addEventListener("ondispose",function(){clearInterval(a.WW)})}); A.Sb.Ki.df(function(a){function b(){setTimeout(function(){var b=a.Fm();f=b===q?"":b.value},20)}var c,e="",f,g,i=t,k=t;a.addEventListener("onload",function(){c=this.Fm();b();a.V(window,"onload",b);a.h0=a.YX();a.V(c,"keydown",a.h0);c.setAttribute("autocomplete","off");a.vV=setInterval(function(){if(!k){A.fa(c)==q&&a.gi();var b=c.value;b==e&&""!=b&&b!=f&&b!=g?0==a.bF&&(a.bF=setTimeout(function(){a.dispatchEvent("onneeddata",b)},100)):(clearTimeout(a.bF),a.bF=0,""==b&&""!=e&&(g="",a.aa()),e=b,b!=g&&(a.Zw= b),f!=c.value&&(f=""))}},10);a.V(c,"beforedeactivate",a.WU)});a.addEventListener("onitemclick",function(){k=t;a.Zw=e=a.RD()});a.addEventListener("onpick",function(a){i&&c.blur();c.value=g=a.data.item.value;i&&c.focus()});a.addEventListener("onmousedownitem",function(){k=i=p;setTimeout(function(){i=k=t},500)});a.addEventListener("ondispose",function(){clearInterval(a.vV)})}); A.Sb.Ki.extend({WU:function(){return function(){mousedownView&&(window.event.cancelBubble=p,window.event.returnValue=t)}},YX:function(){var a=this;return function(b){var c=t,b=b||window.event;switch(b.keyCode){case 9:case 27:a.aa();break;case 13:A.event.stop(b);a.confirm(-1==a.bd?a.Fm().value:a.zk[a.bd],"keyboard");break;case 38:c=p;case 40:A.event.stop(b);b=c;if(a.DA()){var c=a.zk,e=a.bd;if(0!=c.length){if(b)switch(e){case -1:e=c.length-1;a.Dj(c[e]);a.jt(c[e]);break;case 0:e=-1;a.Dj(a.Zw);a.jC(); break;default:e--,a.Dj(c[e]),a.jt(c[e])}else switch(e){case -1:e=0;a.Dj(c[e]);a.jt(c[e]);break;case c.length-1:e=-1;a.Dj(a.Zw);a.jC();break;default:e++,a.Dj(c[e]),a.jt(c[e])}a.bd=e}}else a.dispatchEvent("onneeddata",a.RD());break;default:a.bd=-1}}},Zw:""});ja.x6=p;var kj=t,lj=D.td+"res/20/bmap_autocomplete.css",mj={ALL:"0",CITY:"1"}; A.extend(hf.prototype,{Dd:function(){this.Vi()},Vi:function(){this.tl=-1;this.Ka=q;this.kw=[];this.bH=0;this.ka=this.lv();this.fb.input&&(this.nS(),this.KT(),this.Ay(this.WH));var a=q;this.gj&&(a={method:"search"},a.arguments=[this.gj]);this.PH();this.wH(a)},KT:function(){var a=this,b=new A.Sb.Ki({getData:function(b){a.VI(b)},onhide:function(){a.tl=-1;""===a.sg.RD()&&(a.gj="",a.ka=a.lv())},onhighlight:function(b){if(a.Ka){var e={},f={},f={index:b.data.index,value:a.Ka.Nm[b.data.index].value},e={index:a.tl, value:0<=a.tl?a.Ka.Nm[a.tl].value:{}},g=new P("onhighlight");g.fromitem=g.r3=e;g.toitem=g.m6=f;a.dispatchEvent(g);a.tl=b.data.index}},onbeforepick:function(b){if(a.Ka&&"number"===typeof b.data.index){var e=a.Ka.Nm[b.data.index].value;b.data.item.content=b.data.item.value=e.province+e.city+e.district+e.street+e.business}},onconfirm:function(b){if(a.Ka){Ta(5012);var e={};"number"===typeof b.data.index&&(e={index:b.data.index,value:a.Ka.Nm[b.data.index].value},b=new P("onconfirm"),b.item=b.item=e,a.dispatchEvent(b))}}}); b.Ba(A.fa(this.fb.input),A.fa(this.fb.aC));this.sg=b},show:function(){this.sg&&(this.sg.li().style.display="block")},aa:function(){this.sg&&this.sg.aa();this.tl=-1},gi:function(){this.sg&&this.sg.gi();A.lang.Ja.prototype.gi.call(this)},tF:function(a){this.fb.types=a||[];this.PH()},fn:function(a,b){this.md.src=a;this.wH(b)},search:function(a){this.VI(a)},Ay:function(a){this.sg&&this.sg.Dj(a)},VI:function(a){var b=this,c=(1E5*Math.random()).toFixed(0);D._rd["_cbk"+c]=function(a){A.fa(b.fb.input)!== q&&b.MR(a);delete D._rd["_cbk"+c]};var e=D.url.proto+D.url.domain.baidumap+"/su?wd="+encodeURIComponent(a)+"&callback=BMap._rd._cbk"+c+"&cid="+b.bH+"&type="+b.kw+"&t="+(new Date).getTime()+"&from=jsapi";b.gj=a;b.tl=-1;b.ka=this.lv();Ta(5010,{tp:b.kw,wd:encodeURIComponent(a)});D.alog("cus.fire","count","z_sug");qa(e)},MR:function(a){a&&a.q&&(this.gj=a.q);this.iU(this.zR(a));this.ka=this.lv(this.Ka);this.fb.Mt(this.ka)},zR:function(a){var b=[],c=a.s,e={};e.Ab=a.q||"";e.count=a.s.length||0;e.status= 0>a.e?7:0;e.Nm=[];var f=0,g=c.length;for(J()&&6a.data.length&&b.aa()}},XR:function(a,b){switch(b.toString()){case "1":return this.YR(a);default:return this.ZR(a)}},ZR:function(a){var a=a.split("$"),b=this.gj,c=RegExp(b,"g"),e=""+b+"",f={province:"",city:a[0],district:a[1],street:a[2],streetNumber:"",business:a[3]},g= "";7<=a.length&&(f.city=a[5]||f.city,f.district=a[6]||f.city,a[0]=a[5],a[1]=a[6]);for(var i=3;0<=i;i--)if(g=a[i]+g,-1\'+k+"");break}if(!k)for(i=3;0<=i;i--)k+=a[i];return{value:{value:f},YL:g}},YR:function(a){var b=a.split("$"),c=this.gj,a={province:b[0],city:b[1],district:"",street:"",streetNumber:"",business:""},b=(b[0]+b[1]).replace(RegExp(c,"g"),""+c+"");return{value:{value:a}, YL:b}},PH:function(){var a=this.fb.types,b=[];if(A.Eg(a))b.push(mj[a.toUpperCase()]);else if(A.lang.isArray(a))for(var c=0,e=a.length;c