(function(e){function n(n){for(var i,r,s=n[0],c=n[1],u=n[2],d=0,g=[];d0){var o=0;for(var r in a+="?",t){var s=t[r];a+=r+"="+s,o++,o>16)+(n>>16)+(t>>16);return i<<16|65535&t},bitRotateLeft:function(e,n){return e<>>32-n},md5cmn:function(e,n,t,i,a,o){return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(n,e),this.safeAdd(i,o)),a),t)},md5ff:function(e,n,t,i,a,o,r){return this.md5cmn(n&t|~n&i,e,n,a,o,r)},md5gg:function(e,n,t,i,a,o,r){return this.md5cmn(n&i|t&~i,e,n,a,o,r)},md5hh:function(e,n,t,i,a,o,r){return this.md5cmn(n^t^i,e,n,a,o,r)},md5ii:function(e,n,t,i,a,o,r){return this.md5cmn(t^(n|~i),e,n,a,o,r)},binlMD5:function(e,n){var t,i,a,o,r;e[n>>5]|=128<>>9<<4)]=n;var s=1732584193,c=-271733879,u=-1732584194,d=271733878;for(t=0;t>5]>>>n%32&255);return t},rstr2binl:function(e){var n,t=[];for(t[(e.length>>2)-1]=void 0,n=0;n>5]|=(255&e.charCodeAt(n/8))<16&&(a=this.binlMD5(a,8*e.length)),t=0;t<16;t+=1)o[t]=909522486^a[t],r[t]=1549556828^a[t];return i=this.binlMD5(o.concat(this.rstr2binl(n)),512+8*n.length),this.binl2rstr(this.binlMD5(r.concat(i),640))},rstr2hex:function(e){var n,t,i="0123456789abcdef",a="";for(t=0;t>>4&15)+i.charAt(15&n);return a},str2rstrUTF8:function(e){return unescape(encodeURIComponent(e))},rawMD5:function(e){return this.rstrMD5(this.str2rstrUTF8(e))},hexMD5:function(e){return this.rstr2hex(this.rawMD5(e))},rawHMACMD5:function(e,n){return this.rstrHMACMD5(this.str2rstrUTF8(e),str2rstrUTF8(n))},hexHMACMD5:function(e,n){return this.rstr2hex(this.rawHMACMD5(e,n))},md5:function(e,n,t){return n?t?this.rawHMACMD5(n,e):this.hexHMACMD5(n,e):t?this.rawMD5(e):this.hexMD5(e)},getSig:function(e,n,t,i){var a=null,o=[];return Object.keys(e).sort().forEach((function(n){o.push(n+"="+e[n])})),"search"==t&&(a="/ws/place/v1/search?"+o.join("&")+n),"suggest"==t&&(a="/ws/place/v1/suggestion?"+o.join("&")+n),"reverseGeocoder"==t&&(a="/ws/geocoder/v1/?"+o.join("&")+n),"geocoder"==t&&(a="/ws/geocoder/v1/?"+o.join("&")+n),"getCityList"==t&&(a="/ws/district/v1/list?"+o.join("&")+n),"getDistrictByCityId"==t&&(a="/ws/district/v1/getchildren?"+o.join("&")+n),"calculateDistance"==t&&(a="/ws/distance/v1/?"+o.join("&")+n),"direction"==t&&(a="/ws/direction/v1/"+i+"?"+o.join("&")+n),a=this.md5(a),a},location2query:function(e){if("string"==typeof e)return e;for(var n="",t=0;t>16)+(n>>16)+(t>>16);return i<<16|65535&t}function i(e,n){return e<>>32-n}function a(e,n,a,o,r,s){return t(i(t(t(n,e),t(o,s)),r),a)}function o(e,n,t,i,o,r,s){return a(n&t|~n&i,e,n,o,r,s)}function r(e,n,t,i,o,r,s){return a(n&i|t&~i,e,n,o,r,s)}function s(e,n,t,i,o,r,s){return a(n^t^i,e,n,o,r,s)}function c(e,n,t,i,o,r,s){return a(t^(n|~i),e,n,o,r,s)}function u(e){for(var n=1732584193,i=-271733879,a=-1732584194,u=271733878,d=0;d>2]>>i%4*8+4&15)+n.charAt(e[i>>2]>>i%4*8&15);return t}function l(e){for(var n=1+(e.length+8>>6),t=new Array(16*n),i=0;i<16*n;i++)t[i]=0;for(i=0;i>2]|=(255&e.charCodeAt(i))<>2]|=128<