You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8618 lines
294 KiB
JavaScript

window.TILE_VERSION = {
"ditu": {
"normal": {
"version": "088",
"updateDate": "20180118"
},
"satellite": {
"version": "009",
"updateDate": "20180118"
},
"normalTraffic": {
"version": "081",
"updateDate": "20180118"
},
"satelliteTraffic": {
"version": "083",
"updateDate": "20180118"
},
"mapJS": {
"version": "104",
"updateDate": "20180118"
},
"satelliteStreet": {
"version": "083",
"updateDate": "20180118"
},
"panoClick": {
"version": "1033",
"updateDate": "20180122"
},
"panoUdt": {
"version": "20180122",
"updateDate": "20180122"
},
"panoSwfAPI": {
"version": "20150123",
"updateDate": "20150123"
},
"panoSwfPlace": {
"version": "20141112",
"updateDate": "20141112"
},
"earthVector": {
"version": "001",
"updateDate": "20180118"
}
},
"webapp": {
"high_normal": {
"version": "001",
"updateDate": "20180118"
},
"lower_normal": {
"version": "002",
"updateDate": "20180118"
}
},
"api_for_mobile": {
"vector": {
"version": "002",
"updateDate": "20180118"
},
"vectorIcon": {
"version": "002",
"updateDate": "20180118"
}
}
};
window.BMAP_AUTHENTIC_KEY = "yEzsq3DGfYdUhhfDgkw5BmQyTxZUtNVu"; (function() {
function aa(a) {
throw a;
}
var j = void 0,
o = !0,
p = null,
q = !1;
function s() {
return function() {}
}
function ba(a) {
return function(b) {
this[a] = b
}
}
function u(a) {
return function() {
return this[a]
}
}
function ca(a) {
return function() {
return a
}
}
var da, ga = [];
function ha(a) {
return function() {
return ga[a].apply(this, arguments)
}
}
function ia(a, b) {
return ga[a] = b
}
var ja, x = ja = x || {
version: "1.3.4"
};
x.ba = "$BAIDU$";
window[x.ba] = window[x.ba] || {};
x.object = x.object || {};
x.extend = x.object.extend = function(a, b) {
for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]);
return a
};
x.D = x.D || {};
x.D.$ = function(a) {
return "string" == typeof a || a instanceof String ? document.getElementById(a) : a && a.nodeName && (1 == a.nodeType || 9 == a.nodeType) ? a: p
};
x.$ = x.Dc = x.D.$;
x.D.U = function(a) {
a = x.D.$(a);
if (a === p) return a;
a.style.display = "none";
return a
};
x.U = x.D.U;
x.lang = x.lang || {};
x.lang.tg = function(a) {
return "[object String]" == Object.prototype.toString.call(a)
};
x.tg = x.lang.tg;
x.D.Pj = function(a) {
return x.lang.tg(a) ? document.getElementById(a) : a
};
x.Pj = x.D.Pj;
x.D.getElementsByClassName = function(a, b) {
var c;
if (a.getElementsByClassName) c = a.getElementsByClassName(b);
else {
var d = a;
d == p && (d = document);
c = [];
var d = d.getElementsByTagName("*"),
e = d.length,
f = RegExp("(^|\\s)" + b + "(\\s|$)"),
g,
i;
for (i = g = 0; g < e; g++) f.test(d[g].className) && (c[i] = d[g], i++)
}
return c
};
x.getElementsByClassName = x.D.getElementsByClassName;
x.D.contains = function(a, b) {
var c = x.D.Pj,
a = c(a),
b = c(b);
return a.contains ? a != b && a.contains(b) : !!(a.compareDocumentPosition(b) & 16)
};
x.da = x.da || {};
/msie (\d+\.\d)/i.test(navigator.userAgent) && (x.da.la = x.la = document.documentMode || +RegExp.$1);
var ka = {
cellpadding: "cellPadding",
cellspacing: "cellSpacing",
colspan: "colSpan",
rowspan: "rowSpan",
valign: "vAlign",
usemap: "useMap",
frameborder: "frameBorder"
};
8 > x.da.la ? (ka["for"] = "htmlFor", ka["class"] = "className") : (ka.htmlFor = "for", ka.className = "class");
x.D.BG = ka;
x.D.nF = function(a, b, c) {
a = x.D.$(a);
if (a === p) return a;
if ("style" == b) a.style.cssText = c;
else {
b = x.D.BG[b] || b;
a.setAttribute(b, c)
}
return a
};
x.nF = x.D.nF;
x.D.oF = function(a, b) {
a = x.D.$(a);
if (a === p) return a;
for (var c in b) x.D.nF(a, c, b[c]);
return a
};
x.oF = x.D.oF;
x.Rk = x.Rk || {}; (function() {
var a = RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)", "g");
x.Rk.trim = function(b) {
return ("" + b).replace(a, "")
}
})();
x.trim = x.Rk.trim;
x.Rk.To = function(a, b) {
var a = "" + a,
c = Array.prototype.slice.call(arguments, 1),
d = Object.prototype.toString;
if (c.length) {
c = c.length == 1 ? b !== p && /\[object Array\]|\[object Object\]/.test(d.call(b)) ? b: c: c;
return a.replace(/#\{(.+?)\}/g,
function(a, b) {
var g = c[b];
"[object Function]" == d.call(g) && (g = g(b));
return "undefined" == typeof g ? "": g
})
}
return a
};
x.To = x.Rk.To;
x.D.Sb = function(a, b) {
a = x.D.$(a);
if (a === p) return a;
for (var c = a.className.split(/\s+/), d = b.split(/\s+/), e, f = d.length, g, i = 0; i < f; ++i) {
g = 0;
for (e = c.length; g < e; ++g) if (c[g] == d[i]) {
c.splice(g, 1);
break
}
}
a.className = c.join(" ");
return a
};
x.Sb = x.D.Sb;
x.D.Jx = function(a, b, c) {
a = x.D.$(a);
if (a === p) return a;
var d;
if (a.insertAdjacentHTML) a.insertAdjacentHTML(b, c);
else {
d = a.ownerDocument.createRange();
b = b.toUpperCase();
if (b == "AFTERBEGIN" || b == "BEFOREEND") {
d.selectNodeContents(a);
d.collapse(b == "AFTERBEGIN")
} else {
b = b == "BEFOREBEGIN";
d[b ? "setStartBefore": "setEndAfter"](a);
d.collapse(b)
}
d.insertNode(d.createContextualFragment(c))
}
return a
};
x.Jx = x.D.Jx;
x.D.show = function(a) {
a = x.D.$(a);
if (a === p) return a;
a.style.display = "";
return a
};
x.show = x.D.show;
x.D.FD = function(a) {
a = x.D.$(a);
return a === p ? a: a.nodeType == 9 ? a: a.ownerDocument || a.document
};
x.D.Ua = function(a, b) {
a = x.D.$(a);
if (a === p) return a;
for (var c = b.split(/\s+/), d = a.className, e = " " + d + " ", f = 0, g = c.length; f < g; f++) e.indexOf(" " + c[f] + " ") < 0 && (d = d + (" " + c[f]));
a.className = d;
return a
};
x.Ua = x.D.Ua;
x.D.DB = x.D.DB || {};
x.D.Ll = x.D.Ll || [];
x.D.Ll.filter = function(a, b, c) {
for (var d = 0,
e = x.D.Ll,
f; f = e[d]; d++) if (f = f[c]) b = f(a, b);
return b
};
x.Rk.sO = function(a) {
return a.indexOf("-") < 0 && a.indexOf("_") < 0 ? a: a.replace(/[-_][^-_]/g,
function(a) {
return a.charAt(1).toUpperCase()
})
};
x.D.E_ = function(a) {
x.D.bt(a, "expand") ? x.D.Sb(a, "expand") : x.D.Ua(a, "expand")
};
x.D.bt = function(a) {
if (arguments.length <= 0 || typeof a === "function") return this;
if (this.size() <= 0) return q;
var a = a.replace(/^\s+/g, "").replace(/\s+$/g, "").replace(/\s+/g, " "),
b = a.split(" "),
c;
x.forEach(this,
function(a) {
for (var a = a.className,
e = 0; e < b.length; e++) if (!~ (" " + a + " ").indexOf(" " + b[e] + " ")) {
c = q;
return
}
c !== q && (c = o)
});
return c
};
x.D.sj = function(a, b) {
var c = x.D,
a = c.$(a);
if (a === p) return a;
var b = x.Rk.sO(b),
d = a.style[b];
if (!d) var e = c.DB[b],
d = a.currentStyle || (x.da.la ? a.style: getComputedStyle(a, p)),
d = e && e.get ? e.get(a, d) : d[e || b];
if (e = c.Ll) d = e.filter(b, d, "get");
return d
};
x.sj = x.D.sj;
/opera\/(\d+\.\d)/i.test(navigator.userAgent) && (x.da.opera = +RegExp.$1);
x.da.lM = /webkit/i.test(navigator.userAgent);
x.da.mY = /gecko/i.test(navigator.userAgent) && !/like gecko/i.test(navigator.userAgent);
x.da.rE = "CSS1Compat" == document.compatMode;
x.D.ha = function(a) {
a = x.D.$(a);
if (a === p) return a;
var b = x.D.FD(a),
c = x.da,
d = x.D.sj;
c.mY > 0 && b.getBoxObjectFor && d(a, "position");
var e = {
left: 0,
top: 0
},
f;
if (a == (c.la && !c.rE ? b.body: b.documentElement)) return e;
if (a.getBoundingClientRect) {
a = a.getBoundingClientRect();
e.left = Math.floor(a.left) + Math.max(b.documentElement.scrollLeft, b.body.scrollLeft);
e.top = Math.floor(a.top) + Math.max(b.documentElement.scrollTop, b.body.scrollTop);
e.left = e.left - b.documentElement.clientLeft;
e.top = e.top - b.documentElement.clientTop;
a = b.body;
b = parseInt(d(a, "borderLeftWidth"));
d = parseInt(d(a, "borderTopWidth"));
if (c.la && !c.rE) {
e.left = e.left - (isNaN(b) ? 2 : b);
e.top = e.top - (isNaN(d) ? 2 : d)
}
} else {
f = a;
do {
e.left = e.left + f.offsetLeft;
e.top = e.top + f.offsetTop;
if (c.lM > 0 && d(f, "position") == "fixed") {
e.left = e.left + b.body.scrollLeft;
e.top = e.top + b.body.scrollTop;
break
}
f = f.offsetParent
} while ( f && f != a );
if (c.opera > 0 || c.lM > 0 && d(a, "position") == "absolute") e.top = e.top - b.body.offsetTop;
for (f = a.offsetParent; f && f != b.body;) {
e.left = e.left - f.scrollLeft;
if (!c.opera || f.tagName != "TR") e.top = e.top - f.scrollTop;
f = f.offsetParent
}
}
return e
};
/firefox\/(\d+\.\d)/i.test(navigator.userAgent) && (x.da.nf = +RegExp.$1);
/BIDUBrowser/i.test(navigator.userAgent) && (x.da.v1 = o);
var la = navigator.userAgent;
/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(la) && !/chrome/i.test(la) && (x.da.hF = +(RegExp.$1 || RegExp.$2));
/chrome\/(\d+\.\d)/i.test(navigator.userAgent) && (x.da.dC = +RegExp.$1);
x.kc = x.kc || {};
x.kc.Gb = function(a, b) {
var c, d, e = a.length;
if ("function" == typeof b) for (d = 0; d < e; d++) {
c = a[d];
c = b.call(a, c, d);
if (c === q) break
}
return a
};
x.Gb = x.kc.Gb;
x.lang.ba = function() {
return "TANGRAM__" + (window[x.ba]._counter++).toString(36)
};
window[x.ba]._counter = window[x.ba]._counter || 1;
window[x.ba]._instances = window[x.ba]._instances || {};
x.lang.lt = function(a) {
return "[object Function]" == Object.prototype.toString.call(a)
};
x.lang.Ca = function(a) {
this.ba = a || x.lang.ba();
window[x.ba]._instances[this.ba] = this
};
window[x.ba]._instances = window[x.ba]._instances || {};
x.lang.Ca.prototype.gi = ha(0);
x.lang.Ca.prototype.toString = function() {
return "[object " + (this.xQ || "Object") + "]"
};
x.lang.Yy = function(a, b) {
this.type = a;
this.returnValue = o;
this.target = b || p;
this.currentTarget = p
};
x.lang.Ca.prototype.addEventListener = function(a, b, c) {
if (x.lang.lt(b)) { ! b.bl && (b.bl = {}); ! this.Gi && (this.Gi = {});
var d = this.Gi,
e;
if (typeof c == "string" && c) { / [ ^ \w\ - ] / .test(c) && aa("nonstandard key:" + c);
e = b.Bx = c
}
a.indexOf("on") != 0 && (a = "on" + a);
typeof d[a] != "object" && (d[a] = {});
typeof b.bl[a] != "object" && (b.bl[a] = {});
e = e || x.lang.ba();
b.bl[a].Bx = e;
d[a][e] = b
}
};
x.lang.Ca.prototype.removeEventListener = function(a, b) {
a.indexOf("on") != 0 && (a = "on" + a);
if (x.lang.lt(b)) {
if (!b.bl || !b.bl[a]) return;
b = b.bl[a].Bx
} else if (!x.lang.tg(b)) return; ! this.Gi && (this.Gi = {});
var c = this.Gi;
c[a] && c[a][b] && delete c[a][b]
};
x.lang.Ca.prototype.dispatchEvent = function(a, b) {
x.lang.tg(a) && (a = new x.lang.Yy(a)); ! this.Gi && (this.Gi = {});
var b = b || {},
c;
for (c in b) a[c] = b[c];
var d = this.Gi,
e = a.type;
a.target = a.target || this;
a.currentTarget = this;
e.indexOf("on") != 0 && (e = "on" + e);
x.lang.lt(this[e]) && this[e].apply(this, arguments);
if (typeof d[e] == "object") for (c in d[e]) d[e][c].apply(this, arguments);
return a.returnValue
};
x.lang.ua = function(a, b, c) {
var d, e, f = a.prototype;
e = new Function;
e.prototype = b.prototype;
e = a.prototype = new e;
for (d in f) e[d] = f[d];
a.prototype.constructor = a;
a.v_ = b.prototype;
if ("string" == typeof c) e.xQ = c
};
x.ua = x.lang.ua;
x.lang.Kc = function(a) {
return window[x.ba]._instances[a] || p
};
x.platform = x.platform || {};
x.platform.eM = /macintosh/i.test(navigator.userAgent);
x.platform.i3 = /MicroMessenger/i.test(navigator.userAgent);
x.platform.mM = /windows/i.test(navigator.userAgent);
x.platform.uY = /x11/i.test(navigator.userAgent);
x.platform.Im = /android/i.test(navigator.userAgent);
/android (\d+\.\d)/i.test(navigator.userAgent) && (x.platform.PJ = x.PJ = RegExp.$1);
x.platform.oY = /ipad/i.test(navigator.userAgent);
x.platform.nE = /iphone/i.test(navigator.userAgent);
function ma(a, b) {
a.domEvent = b = window.event || b;
a.clientX = b.clientX || b.pageX;
a.clientY = b.clientY || b.pageY;
a.offsetX = b.offsetX || b.layerX;
a.offsetY = b.offsetY || b.layerY;
a.screenX = b.screenX;
a.screenY = b.screenY;
a.ctrlKey = b.ctrlKey || b.metaKey;
a.shiftKey = b.shiftKey;
a.altKey = b.altKey;
if (b.touches) {
a.touches = [];
for (var c = 0; c < b.touches.length; c++) a.touches.push({
clientX: b.touches[c].clientX,
clientY: b.touches[c].clientY,
screenX: b.touches[c].screenX,
screenY: b.touches[c].screenY,
pageX: b.touches[c].pageX,
pageY: b.touches[c].pageY,
target: b.touches[c].target,
identifier: b.touches[c].identifier
})
}
if (b.changedTouches) {
a.changedTouches = [];
for (c = 0; c < b.changedTouches.length; c++) a.changedTouches.push({
clientX: b.changedTouches[c].clientX,
clientY: b.changedTouches[c].clientY,
screenX: b.changedTouches[c].screenX,
screenY: b.changedTouches[c].screenY,
pageX: b.changedTouches[c].pageX,
pageY: b.changedTouches[c].pageY,
target: b.changedTouches[c].target,
identifier: b.changedTouches[c].identifier
})
}
if (b.targetTouches) {
a.targetTouches = [];
for (c = 0; c < b.targetTouches.length; c++) a.targetTouches.push({
clientX: b.targetTouches[c].clientX,
clientY: b.targetTouches[c].clientY,
screenX: b.targetTouches[c].screenX,
screenY: b.targetTouches[c].screenY,
pageX: b.targetTouches[c].pageX,
pageY: b.targetTouches[c].pageY,
target: b.targetTouches[c].target,
identifier: b.targetTouches[c].identifier
})
}
a.rotation = b.rotation;
a.scale = b.scale;
return a
}
x.lang.Tw = function(a) {
var b = window[x.ba];
b.IS && delete b.IS[a]
};
x.event = {};
x.M = x.event.M = function(a, b, c) {
if (! (a = x.$(a))) return a;
b = b.replace(/^on/, "");
a.addEventListener ? a.addEventListener(b, c, q) : a.attachEvent && a.attachEvent("on" + b, c);
return a
};
x.bd = x.event.bd = function(a, b, c) {
if (! (a = x.$(a))) return a;
b = b.replace(/^on/, "");
a.removeEventListener ? a.removeEventListener(b, c, q) : a.detachEvent && a.detachEvent("on" + b, c);
return a
};
x.D.bt = function(a, b) {
if (!a || !a.className || typeof a.className != "string") return q;
var c = -1;
try {
c = a.className == b || a.className.search(RegExp("(\\s|^)" + b + "(\\s|$)"))
} catch(d) {
return q
}
return c > -1
};
x.TK = function() {
function a(a) {
document.addEventListener && (this.element = a, this.WK = this.yk ? "touchstart": "mousedown", this.nD = this.yk ? "touchmove": "mousemove", this.mD = this.yk ? "touchend": "mouseup", this.ph = q, this.gu = this.fu = 0, this.element.addEventListener(this.WK, this, q), ja.M(this.element, "mousedown", s()), this.handleEvent(p))
}
a.prototype = {
yk: "ontouchstart" in window || "createTouch" in document,
start: function(a) {
na(a);
this.ph = q;
this.fu = this.yk ? a.touches[0].clientX: a.clientX;
this.gu = this.yk ? a.touches[0].clientY: a.clientY;
this.element.addEventListener(this.nD, this, q);
this.element.addEventListener(this.mD, this, q)
},
move: function(a) {
oa(a);
var c = this.yk ? a.touches[0].clientY: a.clientY;
if (10 < Math.abs((this.yk ? a.touches[0].clientX: a.clientX) - this.fu) || 10 < Math.abs(c - this.gu)) this.ph = o
},
end: function(a) {
oa(a);
this.ph || (a = document.createEvent("Event"), a.initEvent("tap", q, o), this.element.dispatchEvent(a));
this.element.removeEventListener(this.nD, this, q);
this.element.removeEventListener(this.mD, this, q)
},
handleEvent: function(a) {
if (a) switch (a.type) {
case this.WK:
this.start(a);
break;
case this.nD:
this.move(a);
break;
case this.mD:
this.end(a)
}
}
};
return function(b) {
return new a(b)
}
} ();
var z = window.BMap || {};
z.version = "2.0";
z.HU = 0.34 > Math.random();
0 <= z.version.indexOf("#") && (z.version = "2.0");
z.Dr = [];
z.Ue = function(a) {
this.Dr.push(a)
};
z.tr = [];
z.Um = function(a) {
this.tr.push(a)
};
z.VU = z.apiLoad ||
function() {
z.version && z.version >= 1.5 && pa(z.wc + "?qt=verify&ak=" + qa,
function(a) {
if (a && a.error !== 0) {
if (typeof map !== "undefined") {
map.Na().innerHTML = "";
map.Gi = {}
}
z = p;
var b = "\u767e\u5ea6\u672a\u6388\u6743\u4f7f\u7528\u5730\u56feAPI\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u60a8\u63d0\u4f9b\u7684\u5bc6\u94a5\u4e0d\u662f\u6709\u6548\u7684\u767e\u5ea6LBS\u5f00\u653e\u5e73\u53f0\u5bc6\u94a5\uff0c\u6216\u6b64\u5bc6\u94a5\u672a\u5bf9\u672c\u5e94\u7528\u7684\u767e\u5ea6\u5730\u56feJavaScriptAPI\u6388\u6743\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002";
switch (a.error) {
case 101:
b = "\u5f00\u53d1\u8005\u7981\u7528\u4e86\u8be5ak\u7684jsapi\u670d\u52a1\u6743\u9650\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002";
break;
case 102:
b = "\u5f00\u53d1\u8005Referer\u4e0d\u6b63\u786e\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002"
}
alert(b)
}
})
};
var qa = window.BMAP_AUTHENTIC_KEY;
window.BMAP_AUTHENTIC_KEY = p;
var ra = window.BMap_loadScriptTime,
sa = (new Date).getTime(),
ta = p,
ua = o,
va = 5042,
wa = 5002,
xa = 5003,
ya = "load_mapclick",
za = 5038,
Ba = 5041,
Ca = 5047,
Da = 5036,
Fa = 5039,
Ga = 5037,
Ha = 5040,
Ia = 5011,
Ja = 7E3;
var Ka = 0;
function La(a, b) {
if (a = x.$(a)) {
var c = this;
x.lang.Ca.call(c);
b = b || {};
c.K = {
jC: 200,
Yb: o,
$w: q,
fD: o,
Qo: o,
Ro: b.enableWheelZoom || q,
RK: o,
hD: o,
Hs: o,
Gs: o,
mm: o,
Oo: b.enable3DBuilding || q,
Gc: 25,
n0: 240,
JU: 450,
Xb: E.Xb,
Fd: E.Fd,
Mx: !!b.Mx,
gc: Math.round(b.minZoom) || 1,
$b: Math.round(b.maxZoom) || 19,
Ib: b.mapType || Ma,
Z3: q,
NK: b.drawer || Ka,
Zw: o,
Xw: 500,
vW: b.enableHighResolution !== q,
lj: b.enableMapClick !== q,
devicePixelRatio: b.devicePixelRatio || window.devicePixelRatio || 1,
SF: 99,
ue: b.mapStyle || p,
CY: b.logoControl === q ? q: o,
bV: [],
zw: b.beforeClickIcon || p
};
c.K.ue && (this.dY(c.K.ue.controls), this.ZL(c.K.ue.geotableId));
c.K.ue && c.K.ue.styleId && c.S2(c.K.ue.styleId);
c.K.em = {
dark: {
backColor: "#2D2D2D",
textColor: "#bfbfbf",
iconUrl: "dicons"
},
normal: {
backColor: "#F3F1EC",
textColor: "#c61b1b",
iconUrl: "icons"
},
light: {
backColor: "#EBF8FC",
textColor: "#017fb4",
iconUrl: "licons"
}
};
b.enableAutoResize && (c.K.Gs = b.enableAutoResize);
b.enableStreetEntrance === q && (c.K.mm = b.enableStreetEntrance);
b.enableDeepZoom === q && (c.K.RK = b.enableDeepZoom);
var d = c.K.bV;
if (G()) for (var e = 0,
f = d.length; e < f; e++) if (x.da[d[e]]) {
c.K.devicePixelRatio = 1;
break
}
d = -1 < navigator.userAgent.toLowerCase().indexOf("android");
e = -1 < navigator.userAgent.toLowerCase().indexOf("mqqbrowser");
if ( - 1 < navigator.userAgent.toLowerCase().indexOf("UCBrowser") || d && e) c.K.SF = 99;
c.Va = a;
c.wB(a);
a.unselectable = "on";
a.innerHTML = "";
a.appendChild(c.va());
b.size && this.ye(b.size);
d = c.Bb();
c.width = d.width;
c.height = d.height;
c.offsetX = 0;
c.offsetY = 0;
c.platform = a.firstChild;
c.ve = c.platform.firstChild;
c.ve.style.width = c.width + "px";
c.ve.style.height = c.height + "px";
c.Vd = {};
c.gf = new H(0, 0);
c.mc = new H(0, 0);
c.Oa = 3;
c.Lc = 0;
c.BC = p;
c.AC = p;
c.Wb = "";
c.Fw = "";
c.Oh = {};
c.Oh.custom = {};
c.Ta = 0;
b.useWebGL === q && Na(q);
c.P = new Oa(a, {
Pf: "api",
NS: o
});
c.P.U();
c.P.sF(c);
b = b || {};
d = c.Ib = c.K.Ib;
c.xe = d.dp();
d === Pa && Ra(wa);
d === Sa && Ra(xa);
d = c.K;
d.KO = Math.round(b.minZoom);
d.JO = Math.round(b.maxZoom);
c.Uu();
c.R = {
Hc: q,
lc: 0,
ut: 0,
qM: 0,
m3: 0,
aC: q,
$E: -1,
Pe: []
};
c.platform.style.cursor = c.K.Xb;
for (e = 0; e < z.Dr.length; e++) z.Dr[e](c);
c.R.$E = e;
c.ca();
I.load("map",
function() {
c.yb()
});
c.K.lj && (setTimeout(function() {
Ra(ya)
},
1E3), I.load("mapclick",
function() {
window.MPC_Mgr = window.MPC_Mgr || {};
window.MPC_Mgr[c.ba] = new Ta(c)
},
o));
Va() && I.load("oppc",
function() {
c.qz()
});
G() && I.load("opmb",
function() {
c.qz()
});
a = p;
c.KB = []
}
}
x.lang.ua(La, x.lang.Ca, "Map");
x.extend(La.prototype, {
va: function() {
var a = M("div"),
b = a.style;
b.overflow = "visible";
b.position = "absolute";
b.zIndex = "0";
b.top = b.left = "0px";
var b = M("div", {
"class": "BMap_mask"
}),
c = b.style;
c.position = "absolute";
c.top = c.left = "0px";
c.zIndex = "9";
c.overflow = "hidden";
c.WebkitUserSelect = "none";
a.appendChild(b);
return a
},
wB: function(a) {
var b = a.style;
b.overflow = "hidden";
"absolute" !== Wa(a).position && (b.position = "relative", b.zIndex = 0);
b.backgroundColor = "#F3F1EC";
b.color = "#000";
b.textAlign = "left"
},
ca: function() {
var a = this;
a.to = function() {
var b = a.Bb();
if (a.width !== b.width || a.height !== b.height) {
var c = new N(a.width, a.height),
d = new O("onbeforeresize");
d.size = c;
a.dispatchEvent(d);
a.hk((b.width - a.width) / 2, (b.height - a.height) / 2);
a.ve.style.width = (a.width = b.width) + "px";
a.ve.style.height = (a.height = b.height) + "px";
c = new O("onresize");
c.size = b;
a.dispatchEvent(c)
}
};
a.K.Gs && (a.R.Xl = setInterval(a.to, 80))
},
hk: function(a, b, c, d) {
var e = this.pa().Bc(this.fa()),
f = this.xe,
g = o;
c && H.dM(c) && (this.gf = new H(c.lng, c.lat), g = q);
if (c = c && d ? f.Lm(c, this.Wb) : this.mc) if (this.mc = new H(c.lng + a * e, c.lat - b * e), (a = f.oh(this.mc, this.Wb)) && g) this.gf = a
},
Dg: function(a, b) {
if (Xa(a) && (this.Uu(), this.dispatchEvent(new O("onzoomstart")), a = this.Wn(a).zoom, a !== this.Oa)) {
this.Lc = this.Oa;
this.Oa = a;
var c;
b ? c = b: this.hh() && (c = this.hh().ha());
c && (c = this.bc(c, this.Lc), this.hk(this.width / 2 - c.x, this.height / 2 - c.y, this.wb(c, this.Lc), o));
this.dispatchEvent(new O("onzoomstartcode"))
}
},
Nc: function(a) {
this.Dg(a)
},
WF: function(a) {
this.Dg(this.Oa + 1, a)
},
XF: function(a) {
this.Dg(this.Oa - 1, a)
},
ui: function(a) {
a instanceof H && (this.mc = this.xe.Lm(a, this.Wb), this.gf = H.dM(a) ? new H(a.lng, a.lat) : this.xe.oh(this.mc, this.Wb))
},
xg: function(a, b) {
a = Math.round(a) || 0;
b = Math.round(b) || 0;
this.hk( - a, -b)
},
ow: function(a) {
a && Ya(a.Ee) && (a.Ee(this), this.dispatchEvent(new O("onaddcontrol", a)))
},
AN: function(a) {
a && Ya(a.remove) && (a.remove(), this.dispatchEvent(new O("onremovecontrol", a)))
},
wo: function(a) {
a && Ya(a.ra) && (a.ra(this), this.dispatchEvent(new O("onaddcontextmenu", a)))
},
Cp: function(a) {
a && Ya(a.remove) && (this.dispatchEvent(new O("onremovecontextmenu", a)), a.remove())
},
Ja: function(a) {
a && Ya(a.Ee) && (a.Ee(this), this.dispatchEvent(new O("onaddoverlay", a)))
},
Tb: function(a) {
a && Ya(a.remove) && (a.remove(), this.dispatchEvent(new O("onremoveoverlay", a)))
},
iK: function() {
this.dispatchEvent(new O("onclearoverlays"))
},
Wg: function(a) {
a && this.dispatchEvent(new O("onaddtilelayer", a))
},
xh: function(a) {
a && this.dispatchEvent(new O("onremovetilelayer", a))
},
Ag: function(a) {
if (this.Ib !== a) {
var b = new O("onsetmaptype");
b.Q3 = this.Ib;
this.Ib = this.K.Ib = a;
this.xe = this.Ib.dp();
this.hk(0, 0, this.Ka(), o);
this.Uu();
var c = this.Wn(this.fa()).zoom;
this.Dg(c);
this.dispatchEvent(b);
b = new O("onmaptypechange");
b.Oa = c;
b.Ib = a;
this.dispatchEvent(b); (a === Za || a === Sa) && Ra(xa)
}
},
Wf: function(a) {
var b = this;
if (a instanceof H) b.ui(a, {
noAnimation: o
});
else if ($a(a)) if (b.Ib === Pa) {
var c = E.fC[a];
c && (pt = c.m, b.Wf(pt))
} else {
var d = this.IH();
d.vF(function(c) {
0 === d.wm() && 2 === d.Fa.result.type && (b.Wf(c.wk(0).point), Pa.sk(a) && b.pF(a))
});
d.search(a, {
log: "center"
})
}
},
Dd: function(a, b) {
"[object Undefined]" !== Object.prototype.toString.call(b) && (b = parseInt(b));
z.Dn("cus.fire", "time", {
z_loadscripttime: sa - ra
});
var c = this;
if ($a(a)) if (c.Ib === Pa) {
var d = E.fC[a];
d && (pt = d.m, c.Dd(pt, b))
} else {
var e = c.IH();
e.vF(function(d) {
if (0 === e.wm() && (2 === e.Fa.result.type || 11 === e.Fa.result.type)) {
var d = d.wk(0).point,
f = b || P.dx(e.Fa.content.level, c);
c.Dd(d, f);
Pa.sk(a) && c.pF(a)
}
});
e.search(a, {
log: "center"
})
} else if (a instanceof H && b) {
b = c.Wn(b).zoom;
c.Lc = c.Oa || b;
c.Oa = b;
d = c.gf;
c.gf = new H(a.lng, a.lat);
c.mc = c.xe.Lm(c.gf, c.Wb);
c.BC = c.BC || c.Oa;
c.AC = c.AC || c.gf;
var f = new O("onload"),
g = new O("onloadcode");
f.point = new H(a.lng, a.lat);
f.pixel = c.bc(c.gf, c.Oa);
f.zoom = b;
c.loaded || (c.loaded = o, c.dispatchEvent(f), ta || (ta = ab()));
c.dispatchEvent(g);
f = new O("onmoveend");
f.kH = "centerAndZoom";
d.nb(c.gf) || c.dispatchEvent(f);
c.dispatchEvent(new O("onmoveend"));
c.Lc !== c.Oa && (d = new O("onzoomend"), d.kH = "centerAndZoom", c.dispatchEvent(d));
c.K.Oo && c.Oo()
}
},
IH: function() {
this.R.AM || (this.R.AM = new bb(1));
return this.R.AM
},
reset: function() {
this.Dd(this.AC, this.BC, o)
},
enableDragging: function() {
this.K.Yb = o
},
disableDragging: function() {
this.K.Yb = q
},
enableInertialDragging: function() {
this.K.Zw = o
},
disableInertialDragging: function() {
this.K.Zw = q
},
enableScrollWheelZoom: function() {
this.K.Ro = o
},
disableScrollWheelZoom: function() {
this.K.Ro = q
},
enableContinuousZoom: function() {
this.K.Qo = o
},
disableContinuousZoom: function() {
this.K.Qo = q
},
enableDoubleClickZoom: function() {
this.K.fD = o
},
disableDoubleClickZoom: function() {
this.K.fD = q
},
enableKeyboard: function() {
this.K.$w = o
},
disableKeyboard: function() {
this.K.$w = q
},
enablePinchToZoom: function() {
this.K.Hs = o
},
disablePinchToZoom: function() {
this.K.Hs = q
},
enableAutoResize: function() {
this.K.Gs = o;
this.to();
this.R.Xl || (this.R.Xl = setInterval(this.to, 80))
},
disableAutoResize: function() {
this.K.Gs = q;
this.R.Xl && (clearInterval(this.R.Xl), this.R.Xl = p)
},
Oo: function() {
this.K.Oo = o;
this.Ln || (this.Ln = new cb({
$K: o
}), this.Wg(this.Ln))
},
fW: function() {
this.K.Oo = q;
this.Ln && (this.xh(this.Ln), this.Ln = p, delete this.Ln)
},
Bb: function() {
return this.os && this.os instanceof N ? new N(this.os.width, this.os.height) : new N(this.Va.clientWidth, this.Va.clientHeight)
},
ye: function(a) {
a && a instanceof N ? (this.os = a, this.Va.style.width = a.width + "px", this.Va.style.height = a.height + "px") : this.os = p
},
Ka: u("gf"),
fa: u("Oa"),
wV: function() {
this.to()
},
Wn: function(a) {
var b = this.K.gc,
c = this.K.$b,
d = q,
a = Math.round(a);
a < b && (d = o, a = b);
a > c && (d = o, a = c);
return {
zoom: a,
oD: d
}
},
Na: u("Va"),
bc: function(a, b) {
b = b || this.fa();
return this.xe.bc(a, b, this.mc, this.Bb(), this.Wb)
},
wb: function(a, b) {
b = b || this.fa();
return this.xe.wb(a, b, this.mc, this.Bb(), this.Wb)
},
Te: function(a, b) {
if (a) {
var c = this.bc(new H(a.lng, a.lat), b);
c.x -= this.offsetX;
c.y -= this.offsetY;
return c
}
},
oN: function(a, b) {
if (a) {
var c = new Q(a.x, a.y);
c.x += this.offsetX;
c.y += this.offsetY;
return this.wb(c, b)
}
},
pointToPixelFor3D: function(a, b) {
var c = map.Wb;
this.Ib === Pa && c && db.oK(a, this, b)
},
K3: function(a, b) {
var c = map.Wb;
this.Ib === Pa && c && db.nK(a, this, b)
},
L3: function(a, b) {
var c = this,
d = map.Wb;
c.Ib === Pa && d && db.oK(a, c,
function(a) {
a.x -= c.offsetX;
a.y -= c.offsetY;
b && b(a)
})
},
I3: function(a, b) {
var c = map.Wb;
this.Ib === Pa && c && (a.x += this.offsetX, a.y += this.offsetY, db.nK(a, this, b))
},
Hd: function(a) {
if (!this.Lx()) return new eb;
var b = a || {},
a = b.margins || [0, 0, 0, 0],
c = b.zoom || p,
b = this.wb({
x: a[3],
y: this.height - a[2]
},
c),
a = this.wb({
x: this.width - a[1],
y: a[0]
},
c);
return new eb(b, a)
},
Lx: function() {
return !! this.loaded
},
PR: function(a, b) {
for (var c = this.pa(), d = b.margins || [10, 10, 10, 10], e = b.zoomFactor || 0, f = d[1] + d[3], d = d[0] + d[2], g = c.Zo(), i = c = c.sm(); i >= g; i--) {
var k = this.pa().Bc(i);
if (a.KF().lng / k < this.width - f && a.KF().lat / k < this.height - d) break
}
i += e;
i < g && (i = g);
i > c && (i = c);
return i
},
at: function(a, b) {
var c = {
center: this.Ka(),
zoom: this.fa()
};
if (!a || !a instanceof eb && 0 === a.length || a instanceof eb && a.xj()) return c;
var d = [];
a instanceof eb ? (d.push(a.of()), d.push(a.se())) : d = a.slice(0);
for (var b = b || {},
e = [], f = 0, g = d.length; f < g; f++) e.push(this.xe.Lm(d[f], this.Wb));
d = new eb;
for (f = e.length - 1; 0 <= f; f--) d.extend(e[f]);
if (d.xj()) return c;
c = d.Ka();
e = this.PR(d, b);
b.margins && (d = b.margins, f = (d[1] - d[3]) / 2, d = (d[0] - d[2]) / 2, g = this.pa().Bc(e), b.offset && (f = b.offset.width, d = b.offset.height), c.lng += g * f, c.lat += g * d);
c = this.xe.oh(c, this.Wb);
return {
center: c,
zoom: e
}
},
Ah: function(a, b) {
var c;
c = a && a.center ? a: this.at(a, b);
var b = b || {},
d = b.delay || 200;
if (c.zoom === this.Oa && b.enableAnimation !== q) {
var e = this;
setTimeout(function() {
e.ui(c.center, {
duration: 210
})
},
d)
} else this.Dd(c.center, c.zoom)
},
Rf: u("Vd"),
hh: function() {
return this.R.ob && this.R.ob.Wa() ? this.R.ob: p
},
getDistance: function(a, b) {
if (a && b) {
if (a.nb(b)) return 0;
var c = 0,
c = R.Xo(a, b);
if (c === p || c === j) c = 0;
return c
}
},
ux: function() {
var a = [],
b = this.wa,
c = this.Be;
if (b) for (var d in b) b[d] instanceof fb && a.push(b[d]);
if (c) {
d = 0;
for (b = c.length; d < b; d++) a.push(c[d])
}
return a
},
pa: u("Ib"),
qz: function() {
for (var a = this.R.$E; a < z.Dr.length; a++) z.Dr[a](this);
this.R.$E = a
},
pF: function(a) {
this.Wb = Pa.sk(a);
this.Fw = Pa.lL(this.Wb);
this.Ib === Pa && this.xe instanceof gb && (this.xe.ej = this.Wb)
},
setDefaultCursor: function(a) {
this.K.Xb = a;
this.platform && (this.platform.style.cursor = this.K.Xb)
},
getDefaultCursor: function() {
return this.K.Xb
},
setDraggingCursor: function(a) {
this.K.Fd = a
},
getDraggingCursor: function() {
return this.K.Fd
},
Gx: function() {
return this.K.vW && 1.5 <= this.K.devicePixelRatio
},
rw: function(a, b) {
b ? this.Oh[b] || (this.Oh[b] = {}) : b = "custom";
a.tag = b;
a instanceof hb && (this.Oh[b][a.ba] = a, a.ra(this));
var c = this;
I.load("hotspot",
function() {
c.qz()
},
o)
},
oZ: function(a, b) {
b || (b = "custom");
this.Oh[b][a.ba] && delete this.Oh[b][a.ba]
},
cm: function(a) {
a || (a = "custom");
this.Oh[a] = {}
},
Uu: function() {
var a = this.Ib.Zo(),
b = this.Ib.sm(),
c = this.K;
c.gc = c.KO || a;
c.$b = c.JO || b;
c.gc < a && (c.gc = a);
c.$b > b && (c.$b = b)
},
setMinZoom: function(a) {
a = Math.round(a);
a > this.K.$b && (a = this.K.$b);
this.K.KO = a;
this.rJ()
},
setMaxZoom: function(a) {
a = Math.round(a);
a < this.K.gc && (a = this.K.gc);
this.K.JO = a;
this.rJ()
},
rJ: function() {
this.Uu();
var a = this.K;
this.Oa < a.gc ? this.Nc(a.gc) : this.Oa > a.$b && this.Nc(a.$b);
var b = new O("onzoomspanchange");
b.gc = a.gc;
b.$b = a.$b;
this.dispatchEvent(b)
},
U2: u("KB"),
getKey: function() {
return qa
},
St: function(a) {
var b = this;
window.MPC_Mgr && window.MPC_Mgr[b.ba] && window.MPC_Mgr[b.ba].close();
b.K.lj = q;
z.Dn("cus.fire", "count", "z_setmapstylecount");
if (a) {
b = this;
a.styleJson && (a.styleStr = b.s_(a.styleJson));
G() && x.da.hF ? setTimeout(function() {
b.K.ue = a;
b.dispatchEvent(new O("onsetcustomstyles", a))
},
50) : (this.K.ue = a, this.dispatchEvent(new O("onsetcustomstyles", a)), this.ZL(b.K.ue.geotableId));
var c = {
style: a.style
};
a.features && 0 < a.features.length && (c.features = o);
a.styleJson && 0 < a.styleJson.length && (c.styleJson = o);
Ra(5050, c);
a.style && (c = b.K.em[a.style] ? b.K.em[a.style].backColor: b.K.em.normal.backColor) && (this.Na().style.backgroundColor = c)
}
},
dY: function(a) {
this.controls || (this.controls = {
navigationControl: new ib,
scaleControl: new jb,
overviewMapControl: new kb,
mapTypeControl: new lb
});
var b = this,
c;
for (c in this.controls) b.AN(b.controls[c]);
a = a || [];
x.kc.Gb(a,
function(a) {
b.ow(b.controls[a])
})
},
ZL: function(a) {
a ? this.ls && this.ls.Af === a || (this.xh(this.ls), this.ls = new mb({
geotableId: a
}), this.Wg(this.ls)) : this.xh(this.ls)
},
Vb: function() {
var a = this.fa() >= this.K.SF && this.pa() === Ma && 18 >= this.fa(),
b = q;
try {
document.createElement("canvas").getContext("2d"),
b = o
} catch(c) {
b = q
}
return a && b
},
getCurrentCity: function() {
return {
name: this.Yg,
code: this.$r
}
},
tm: function() {
this.P.ao();
return this.P
},
setPanorama: function(a) {
this.P = a;
this.P.sF(this)
},
s_: function(a) {
for (var b = {
featureType: "t",
elementType: "e",
visibility: "v",
color: "c",
lightness: "l",
saturation: "s",
weight: "w",
zoom: "z",
hue: "h"
},
c = {
all: "all",
geometry: "g",
"geometry.fill": "g.f",
"geometry.stroke": "g.s",
labels: "l",
"labels.text.fill": "l.t.f",
"labels.text.stroke": "l.t.s",
"lables.text": "l.t",
"labels.icon": "l.i"
},
d = [], e = 0, f; f = a[e]; e++) {
var g = f.stylers;
delete f.stylers;
x.extend(f, g);
var g = [],
i;
for (i in b) if (f[i]) if ("elementType" === i) g.push(b[i] + ":" + c[f[i]]);
else {
switch (f[i]) {
case "poilabel":
f[i] = "poi";
break;
case "districtlabel":
f[i] = "label"
}
g.push(b[i] + ":" + f[i])
}
2 < g.length && d.push(g.join("|"))
}
return d.join(",")
}
});
function Ra(a, b) {
if (a) {
var b = b || {},
c = "",
d;
for (d in b) c = c + "&" + d + "=" + encodeURIComponent(b[d]);
var e = function(a) {
a && (nb = o, setTimeout(function() {
ob.src = z.wc + "images/blank.gif?" + a.src
},
50))
},
f = function() {
var a = pb.shift();
a && e(a)
};
d = (1E8 * Math.random()).toFixed(0);
nb ? pb.push({
src: "product=jsapi&sub_product=jsapi&v=" + z.version + "&sub_product_v=" + z.version + "&t=" + d + "&code=" + a + "&da_src=" + a + c
}) : e({
src: "product=jsapi&sub_product=jsapi&v=" + z.version + "&sub_product_v=" + z.version + "&t=" + d + "&code=" + a + "&da_src=" + a + c
});
qb || (x.M(ob, "load",
function() {
nb = q;
f()
}), x.M(ob, "error",
function() {
nb = q;
f()
}), qb = o)
}
}
var nb, qb, pb = [],
ob = new Image;
Ra(5E3, {
device_pixel_ratio: window.devicePixelRatio,
platform: navigator.platform
});
z.TL = {
TILE_BASE_URLS: ["gss0.bdstatic.com/5bwHcj7lABFU8t_jkk_Z1zRvfdw6buu", "gss0.bdstatic.com/5bwHcj7lABFV8t_jkk_Z1zRvfdw6buu", "gss0.bdstatic.com/5bwHcj7lABFS8t_jkk_Z1zRvfdw6buu", "gss0.bdstatic.com/5bwHcj7lABFT8t_jkk_Z1zRvfdw6buu", "gss0.bdstatic.com/5bwHcj7lABFY8t_jkk_Z1zRvfdw6buu"],
TILE_ONLINE_URLS: ["gss0.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv", "gss0.bdstatic.com/8bo_dTSlRMgBo1vgoIiO_jowehsv", "gss0.bdstatic.com/8bo_dTSlRcgBo1vgoIiO_jowehsv", "gss0.bdstatic.com/8bo_dTSlRsgBo1vgoIiO_jowehsv", "gss0.bdstatic.com/8bo_dTSlQ1gBo1vgoIiO_jowehsv"],
TIlE_PERSPECT_URLS: ["gss0.bdstatic.com/-OR1cTe9KgQFm2e88IuM_a", "gss0.bdstatic.com/-ON1cTe9KgQFm2e88IuM_a", "gss0.bdstatic.com/-OZ1cTe9KgQFm2e88IuM_a", "gss0.bdstatic.com/-OV1cTe9KgQFm2e88IuM_a"],
geolocControl: "gsp0.baidu.com/8LkJsjOpB1gCo2Kml5_Y_D3",
TILES_YUN_HOST: ["gsp0.baidu.com/-eR1bSahKgkFkRGko9WTAnF6hhy", "gsp0.baidu.com/-eN1bSahKgkFkRGko9WTAnF6hhy", "gsp0.baidu.com/-eZ1bSahKgkFkRGko9WTAnF6hhy", "gsp0.baidu.com/-eV1bSahKgkFkRGko9WTAnF6hhy"],
traffic: "gsp0.baidu.com/7_AZsjOpB1gCo2Kml5_Y_DAcsMJiwa",
iw_pano: "gss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_",
message: "gsp0.baidu.com/7vo0bSba2gU2pMbgoY3K",
baidumap: "gsp0.baidu.com/80MWsjip0QIZ8tyhnq",
wuxian: "gsp0.baidu.com/6a1OdTeaKgQFm2e88IuM_a",
pano: ["gss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_", "gss0.bdstatic.com/5LUZemfa_QUU8t7mm9GUKT-xh_", "gss0.bdstatic.com/5LUZemja_QUU8t7mm9GUKT-xh_"],
main_domain_nocdn: {
baidu: "gsp0.baidu.com/9_Q4sjOpB1gCo2Kml5_Y_D3",
other: "api.map.baidu.com"
},
main_domain_cdn: {
baidu: ["gss0.bdstatic.com/9_Q4vHSd2RZ3otebn9fN2DJv", "gss0.baidu.com/9_Q4vXSd2RZ3otebn9fN2DJv", "gss0.bdstatic.com/9_Q4vnSd2RZ3otebn9fN2DJv"],
other: ["api.map.baidu.com"],
webmap: ["gss0.baidu.com/6b1IcTe9R1gBo1vgoIiO_jowehsv"]
},
map_click: "gsp0.baidu.com/80MWbzKh2wt3n2qy8IqW0jdnxx1xbK",
vector_traffic: "gss0.bdstatic.com/8aZ1cTe9KgQIm2_p8IuM_a"
};
z.YX = {
TILE_BASE_URLS: ["shangetu0.map.bdimg.com", "shangetu1.map.bdimg.com", "shangetu2.map.bdimg.com", "shangetu3.map.bdimg.com", "shangetu4.map.bdimg.com"],
TILE_ONLINE_URLS: ["online0.map.bdimg.com", "online1.map.bdimg.com", "online2.map.bdimg.com", "online3.map.bdimg.com", "online4.map.bdimg.com"],
TIlE_PERSPECT_URLS: ["d0.map.baidu.com", "d1.map.baidu.com", "d2.map.baidu.com", "d3.map.baidu.com"],
geolocControl: "loc.map.baidu.com",
TILES_YUN_HOST: ["g0.api.map.baidu.com", "g1.api.map.baidu.com", "g2.api.map.baidu.com", "g3.api.map.baidu.com"],
traffic: "its.map.baidu.com:8002",
iw_pano: "pcsv0.map.bdimg.com",
message: "j.map.baidu.com",
baidumap: "map.baidu.com",
wuxian: "wuxian.baidu.com",
pano: ["pcsv0.map.bdimg.com", "pcsv1.map.bdimg.com", "pcsv2.map.bdimg.com"],
main_domain_nocdn: {
baidu: "api.map.baidu.com"
},
main_domain_cdn: {
baidu: ["api0.map.bdimg.com", "api1.map.bdimg.com", "api2.map.bdimg.com"],
webmap: ["webmap0.map.bdimg.com"]
},
map_click: "mapclick.map.baidu.com",
vector_traffic: "or.map.bdimg.com"
};
z.V_ = {
"0": {
proto: "http://",
domain: z.YX
},
1 : {
proto: "https://",
domain: z.TL
},
2 : {
proto: "https://",
domain: z.TL
}
};
z.Oy = window.HOST_TYPE || "0";
z.url = z.V_[z.Oy];
z.up = z.url.proto + z.url.domain.baidumap + "/";
z.wc = z.url.proto + ("2" == z.Oy ? z.url.domain.main_domain_nocdn.other: z.url.domain.main_domain_nocdn.baidu) + "/";
z.ma = z.url.proto + ("2" == z.Oy ? z.url.domain.main_domain_cdn.other[0] : z.url.domain.main_domain_cdn.baidu[0]) + "/";
z.cj = z.url.proto + z.url.domain.main_domain_cdn.webmap[0] + "/";
z.cj ="";
z.sg = function(a, b) {
var c, d, b = b || "";
switch (a) {
case "main_domain_nocdn":
c = z.wc + b;
break;
case "main_domain_cdn":
c = z.ma + b;
break;
default:
d = z.url.domain[a],
"[object Array]" == Object.prototype.toString.call(d) ? (c = [], x.kc.Gb(d,
function(a, d) {
c[d] = z.url.proto + a + "/" + b
})) : c = z.url.proto + z.url.domain[a] + "/" + b
}
return c
};
function rb(a) {
var b = {
duration: 1E3,
Gc: 30,
Ko: 0,
jc: sb.yM,
Dt: s()
};
this.Zf = [];
if (a) for (var c in a) b[c] = a[c];
this.k = b;
if (Xa(b.Ko)) {
var d = this;
setTimeout(function() {
d.start()
},
b.Ko)
} else b.Ko != tb && this.start()
}
var tb = "INFINITE";
rb.prototype.start = function() {
this.Mu = ab();
this.Wz = this.Mu + this.k.duration;
ub(this)
};
rb.prototype.add = function(a) {
this.Zf.push(a)
};
function ub(a) {
var b = ab();
b >= a.Wz ? (Ya(a.k.va) && a.k.va(a.k.jc(1)), Ya(a.k.finish) && a.k.finish(), 0 < a.Zf.length && (b = a.Zf[0], b.Zf = [].concat(a.Zf.slice(1)), b.start())) : (a.vy = a.k.jc((b - a.Mu) / a.k.duration), Ya(a.k.va) && a.k.va(a.vy), a.EF || (a.Ur = setTimeout(function() {
ub(a)
},
1E3 / a.k.Gc)))
}
rb.prototype.stop = function(a) {
this.EF = o;
for (var b = 0; b < this.Zf.length; b++) this.Zf[b].stop(),
this.Zf[b] = p;
this.Zf.length = 0;
this.Ur && (clearTimeout(this.Ur), this.Ur = p);
this.k.Dt(this.vy);
a && (this.Wz = this.Mu, ub(this))
};
rb.prototype.cancel = ha(1);
var sb = {
yM: function(a) {
return a
},
reverse: function(a) {
return 1 - a
},
aD: function(a) {
return a * a
},
$C: function(a) {
return Math.pow(a, 3)
},
Es: function(a) {
return - (a * (a - 2))
},
PK: function(a) {
return Math.pow(a - 1, 3) + 1
},
OK: function(a) {
return 0.5 > a ? 2 * a * a: -2 * (a - 2) * a - 1
},
W1: function(a) {
return 0.5 > a ? 4 * Math.pow(a, 3) : 4 * Math.pow(a - 1, 3) + 1
},
X1: function(a) {
return (1 - Math.cos(Math.PI * a)) / 2
}
};
sb["ease-in"] = sb.aD;
sb["ease-out"] = sb.Es;
var E = {
$F: 34,
aG: 21,
bG: new N(21, 32),
aP: new N(10, 32),
$O: new N(24, 36),
ZO: new N(12, 36),
YF: new N(13, 1),
qa: z.ma + "images/",
d3: "http://api0.map.bdimg.com/images/",
ZF: z.ma + "images/markers_new.png",
XO: 24,
YO: 73,
fC: {
"\u5317\u4eac": {
ky: "bj",
m: new H(116.403874, 39.914889)
},
"\u4e0a\u6d77": {
ky: "sh",
m: new H(121.487899, 31.249162)
},
"\u6df1\u5733": {
ky: "sz",
m: new H(114.025974, 22.546054)
},
"\u5e7f\u5dde": {
ky: "gz",
m: new H(113.30765, 23.120049)
}
},
fontFamily: "arial,sans-serif"
};
x.da.nf ? (x.extend(E, {
DK: "url(" + E.qa + "ruler.cur),crosshair",
Xb: "-moz-grab",
Fd: "-moz-grabbing"
}), x.platform.mM && (E.fontFamily = "arial,simsun,sans-serif")) : x.da.dC || x.da.hF ? x.extend(E, {
DK: "url(" + E.qa + "ruler.cur) 2 6,crosshair",
Xb: "url(" + E.qa + "openhand.cur) 8 8,default",
Fd: "url(" + E.qa + "closedhand.cur) 8 8,move"
}) : x.extend(E, {
DK: "url(" + E.qa + "ruler.cur),crosshair",
Xb: "url(" + E.qa + "openhand.cur),default",
Fd: "url(" + E.qa + "closedhand.cur),move"
});
function vb(a, b) {
var c = a.style;
c.left = b[0] + "px";
c.top = b[1] + "px"
}
function wb(a) {
0 < x.da.la ? a.unselectable = "on": a.style.MozUserSelect = "none"
}
function xb(a) {
return a && a.parentNode && 11 !== a.parentNode.nodeType
}
function yb(a, b) {
x.D.Jx(a, "beforeEnd", b);
return a.lastChild
}
function zb(a) {
for (var b = {
left: 0,
top: 0
}; a && a.offsetParent;) b.left += a.offsetLeft,
b.top += a.offsetTop,
a = a.offsetParent;
return b
}
function na(a) {
a = window.event || a;
a.stopPropagation ? a.stopPropagation() : a.cancelBubble = o
}
function Ab(a) {
a = window.event || a;
a.preventDefault ? a.preventDefault() : a.returnValue = q;
return q
}
function oa(a) {
na(a);
return Ab(a)
}
function Bb() {
var a = document.documentElement,
b = document.body;
return a && (a.scrollTop || a.scrollLeft) ? [a.scrollTop, a.scrollLeft] : b ? [b.scrollTop, b.scrollLeft] : [0, 0]
}
function Cb(a, b) {
if (a && b) return Math.round(Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2)))
}
function Db(a, b) {
var c = [],
b = b ||
function(a) {
return a
},
d;
for (d in a) c.push(d + "=" + b(a[d]));
return c.join("&")
}
function M(a, b, c) {
var d = document.createElement(a);
c && (d = document.createElementNS(c, a));
return x.D.oF(d, b || {})
}
function Wa(a) {
if (a.currentStyle) return a.currentStyle;
if (a.ownerDocument && a.ownerDocument.defaultView) return a.ownerDocument.defaultView.getComputedStyle(a, p)
}
function Ya(a) {
return "function" === typeof a
}
function Xa(a) {
return "number" === typeof a
}
function $a(a) {
return "string" == typeof a
}
function Eb(a) {
return "undefined" != typeof a
}
function Gb(a) {
return "object" == typeof a
}
var Hb = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
function Ib(a) {
var b = "",
c, d, e = "",
f, g = "",
i = 0;
f = /[^A-Za-z0-9\+\/\=]/g;
if (!a || f.exec(a)) return a;
a = a.replace(/[^A-Za-z0-9\+\/\=]/g, "");
do c = Hb.indexOf(a.charAt(i++)),
d = Hb.indexOf(a.charAt(i++)),
f = Hb.indexOf(a.charAt(i++)),
g = Hb.indexOf(a.charAt(i++)),
c = c << 2 | d >> 4,
d = (d & 15) << 4 | f >> 2,
e = (f & 3) << 6 | g,
b += String.fromCharCode(c),
64 != f && (b += String.fromCharCode(d)),
64 != g && (b += String.fromCharCode(e));
while (i < a.length);
return b
}
var O = x.lang.Yy;
function G() {
return ! (!x.platform.nE && !x.platform.oY && !x.platform.Im)
}
function Va() {
return ! (!x.platform.mM && !x.platform.eM && !x.platform.uY)
}
function ab() {
return (new Date).getTime()
}
function Jb() {
var a = document.body.appendChild(M("div"));
a.innerHTML = '<v:shape id="vml_tester1" adj="1" />';
var b = a.firstChild;
if (!b.style) return q;
b.style.behavior = "url(#default#VML)";
b = b ? "object" === typeof b.adj: o;
a.parentNode.removeChild(a);
return b
}
function Kb() {
return !! document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape", "1.1")
}
function Nb() {
return !! M("canvas").getContext
}
function Ob(a) {
return a * Math.PI / 180
}
z.BY = function() {
var a = o,
b = o,
c = o,
d = o,
e = 0,
f = 0,
g = 0,
i = 0;
return {
IQ: function() {
e += 1;
a && (a = q, setTimeout(function() {
Ra(5054, {
pic: e
});
a = o;
e = 0
},
1E4))
},
H0: function() {
f += 1;
b && (b = q, setTimeout(function() {
Ra(5055, {
move: f
});
b = o;
f = 0
},
1E4))
},
J0: function() {
g += 1;
c && (c = q, setTimeout(function() {
Ra(5056, {
zoom: g
});
c = o;
g = 0
},
1E4))
},
I0: function(a) {
i += a;
d && (d = q, setTimeout(function() {
Ra(5057, {
tile: i
});
d = o;
i = 0
},
5E3))
}
}
} ();
z.gq = {
nG: "#83a1ff",
iq: "#808080"
};
function Pb(a, b, c) {
b.Om || (b.Om = [], b.handle = {});
b.Om.push({
filter: c,
nm: a
});
b.addEventListener || (b.addEventListener = function(a, c) {
b.attachEvent("on" + a, c)
});
b.handle.click || (b.addEventListener("click",
function(a) {
for (var c = a.target || a.srcElement; c != b;) {
Qb(b.Om,
function(b, g) {
RegExp(g.filter).test(c.getAttribute("filter")) && g.nm.call(c, a, c.getAttribute("filter"))
});
c = c.parentNode
}
},
q), b.handle.click = o)
}
function Qb(a, b) {
for (var c = 0,
d = a.length; c < d; c++) b(c, a[c])
}
void
function(a, b, c) {
void
function(a, b, c) {
function g(a) {
if (!a.Jo) {
for (var c = o,
d = [], f = a.sZ, i = 0; f && i < f.length; i++) {
var k = f[i],
l = ea[k] = ea[k] || {};
if (l.Jo || l == a) d.push(l.Kc);
else {
c = q;
if (!l.ZV && (k = (Ea.get("alias") || {})[k] || k + ".js", !J[k])) {
J[k] = o;
var m = b.createElement("script"),
n = b.getElementsByTagName("script")[0];
m.async = o;
m.src = k;
n.parentNode.insertBefore(m, n)
}
l.Py = l.Py || {};
l.Py[a.name] = a
}
}
if (c) {
a.Jo = o;
a.vK && (a.Kc = a.vK.apply(a, d));
for (var t in a.Py) g(a.Py[t])
}
}
}
function i(a) {
return (a || new Date) - D
}
function k(a, b, c) {
if (a) {
"string" == typeof a && (c = b, b = a, a = L);
try {
a == L ? (K[b] = K[b] || [], K[b].unshift(c)) : a.addEventListener ? a.addEventListener(b, c, q) : a.attachEvent && a.attachEvent("on" + b, c)
} catch(d) {}
}
}
function l(a, b, c) {
if (a) {
"string" == typeof a && (c = b, b = a, a = L);
try {
if (a == L) {
var d = K[b];
if (d) for (var e = d.length; e--;) d[e] === c && d.splice(e, 1)
} else a.removeEventListener ? a.removeEventListener(b, c, q) : a.detachEvent && a.detachEvent("on" + b, c)
} catch(f) {}
}
}
function m(a) {
var b = K[a],
c = 0;
if (b) {
for (var d = [], e = arguments, f = 1; f < e.length; f++) d.push(e[f]);
for (f = b.length; f--;) b[f].apply(this, d) && c++;
return c
}
}
function n(a, b) {
if (a && b) {
var c = new Image(1, 1),
d = [],
e = "img_" + +new Date,
f;
for (f in b) b[f] && d.push(f + "=" + encodeURIComponent(b[f]));
L[e] = c;
c.onload = c.onerror = function() {
L[e] = c = c.onload = c.onerror = p;
delete L[e]
};
c.src = a + "?" + d.join("&")
}
}
function t() {
var a = arguments,
b = a[0];
if (this.uK || /^(on|un|set|get|create)$/.test(b)) {
for (var b = w.prototype[b], c = [], d = 1, e = a.length; d < e; d++) c.push(a[d]);
"function" == typeof b && b.apply(this, c)
} else this.UJ.push(a)
}
function v(a, b) {
var c = {},
d;
for (d in a) a.hasOwnProperty(d) && (c[d] = a[d]);
for (d in b) b.hasOwnProperty(d) && (c[d] = b[d]);
return c
}
function w(a) {
this.name = a;
this.Ks = {
protocolParameter: {
postUrl: p,
protocolParameter: p
}
};
this.UJ = [];
this.alog = L
}
function y(a) {
a = a || "default";
if ("*" == a) {
var a = [],
b;
for (b in W) a.push(W[b]);
return a
} (b = W[a]) || (b = W[a] = new w(a));
return b
}
var C = c.alog;
if (!C || !C.Jo) {
var A = b.all && a.attachEvent,
D = C && C.wE || +new Date,
B = a.p3 || ( + new Date).toString(36) + Math.random().toString(36).substr(2, 3),
F = 0,
J = {},
L = function(a) {
var b = arguments,
c, d, e, f;
if ("define" == a || "require" == a) {
for (d = 1; d < b.length; d++) switch (typeof b[d]) {
case "string":
c = b[d];
break;
case "object":
e = b[d];
break;
case "function":
f = b[d]
}
"require" == a && (c && !e && (e = [c]), c = p);
c = !c ? "#" + F++:c;
d = ea[c] = ea[c] || {};
d.Jo || (d.name = c, d.sZ = e, d.vK = f, "define" == a && (d.ZV = o), g(d))
} else "function" == typeof a ? a(L) : ("" + a).replace(/^(?:([\w$_]+)\.)?(\w+)$/,
function(a, c, d) {
b[0] = d;
t.apply(L.NF(c), b)
})
},
K = {},
W = {},
ea = {
q1: {
name: "alog",
Jo: o,
Kc: L
}
};
w.prototype.start = w.prototype.create = function(a) {
if (!this.uK) {
"object" == typeof a && this.set(a);
this.uK = new Date;
for (this.Ls("create", this); a = this.UJ.shift();) t.apply(this, a)
}
};
w.prototype.send = function(a, b) {
var c = v({
ts: i().toString(36),
t: a,
sid: B
},
this.Ks);
if ("object" == typeof b) c = v(c, b);
else {
var d = arguments;
switch (a) {
case "pageview":
d[1] && (c.page = d[1]);
d[2] && (c.title = d[2]);
break;
case "event":
d[1] && (c.eventCategory = d[1]);
d[2] && (c.eventAction = d[2]);
d[3] && (c.eventLabel = d[3]);
d[4] && (c.eventValue = d[4]);
break;
case "timing":
d[1] && (c.timingCategory = d[1]);
d[2] && (c.timingVar = d[2]);
d[3] && (c.timingValue = d[3]);
d[4] && (c.timingLabel = d[4]);
break;
case "exception":
d[1] && (c.exDescription = d[1]);
d[2] && (c.exFatal = d[2]);
break;
default:
return
}
}
this.Ls("send", c);
var e;
if (d = this.Ks.protocolParameter) {
var f = {};
for (e in c) d[e] !== p && (f[d[e] || e] = c[e]);
e = f
} else e = c;
n(this.Ks.postUrl, e)
};
w.prototype.set = function(a, b) {
if ("string" == typeof a)"protocolParameter" == a && (b = v({
postUrl: p,
protocolParameter: p
},
b)),
this.Ks[a] = b;
else if ("object" == typeof a) for (var c in a) this.set(c, a[c])
};
w.prototype.get = function(a, b) {
var c = this.Ks[a];
"function" == typeof b && b(c);
return c
};
w.prototype.Ls = function(a, b) {
return L.Ls(this.name + "." + a, b)
};
w.prototype.M = function(a, b) {
L.M(this.name + "." + a, b)
};
w.prototype.bd = function(a, b) {
L.bd(this.name + "." + a, b)
};
L.name = "alog";
L.cO = B;
L.Jo = o;
L.timestamp = i;
L.bd = l;
L.M = k;
L.Ls = m;
L.NF = y;
L("init");
var fa = w.prototype;
S(fa, {
start: fa.start,
create: fa.create,
send: fa.send,
set: fa.set,
get: fa.get,
on: fa.M,
un: fa.bd,
fire: fa.Ls
});
var Ea = y();
Ea.set("protocolParameter", {
p1: p
});
if (C) {
fa = [].concat(C.ub || [], C.Ym || []);
C.ub = C.Ym = p;
for (var Ua in L) L.hasOwnProperty(Ua) && (C[Ua] = L[Ua]);
L.ub = L.Ym = {
push: function(a) {
L.apply(L, a)
}
};
for (C = 0; C < fa.length; C++) L.apply(L, fa[C])
}
c.alog = L;
A && k(b, "mouseup",
function(a) {
a = a.target || a.srcElement;
1 == a.nodeType && /^ajavascript:/i.test(a.tagName + a.href)
});
var Qa = q;
a.onerror = function(a, b, d, e) {
var g = o; ! b && /^script error/i.test(a) && (Qa ? g = q: Qa = o);
g && c.alog("exception.send", "exception", {
At: a,
vE: b,
wt: d,
bs: e
});
return q
};
c.alog("exception.on", "catch",
function(a) {
c.alog("exception.send", "exception", {
At: a.At,
vE: a.path,
wt: a.wt,
method: a.method,
bL: "catch"
})
})
}
} (a, b, c);
void
function(a, b, c) {
var g = "18_1";
G() && (g = "18_2");
var i = "http://static.tieba.baidu.com";
"https:" === a.location.protocol && (i = "https://gsp0.baidu.com/5aAHeD3nKhI2p27j8IqW0jdnxx1xbK");
var k = Math.random,
i = i + "/tb/pms/img/st.gif",
l = {
yh: "0.1"
},
m = {
yh: "0.1"
},
n = {
yh: "0.1"
},
t = {
yh: "0"
};
if (l && l.yh && k() < l.yh) {
var v = c.alog.NF("monkey"),
w,
l = a.screen,
y = b.referrer;
v.set("ver", 5);
v.set("pid", 241);
l && v.set("px", l.width + "*" + l.height);
v.set("ref", y);
c.alog("monkey.on", "create",
function() {
w = c.alog.timestamp;
v.set("protocolParameter", {
reports: p
})
});
c.alog("monkey.on", "send",
function(a) {
"pageview" == a.t && (a.cmd = "open");
a.now && (a.ts = w(a.now).toString(36), a.now = "")
});
c.alog("monkey.create", {
page: g,
pid: "241",
p: "18",
dv: 6,
postUrl: i,
reports: {
refer: 1
}
});
c.alog("monkey.send", "pageview", {
now: +new Date
})
}
if (m && m.yh && k() < m.yh) {
var C = q;
a.onerror = function(a, b, d, e) {
var g = o; ! b && /^script error/i.test(a) && (C ? g = q: C = o);
g && c.alog("exception.send", "exception", {
At: a,
vE: b,
wt: d,
bs: e
});
return q
};
c.alog("exception.on", "catch",
function(a) {
c.alog("exception.send", "exception", {
At: a.At,
vE: a.path,
wt: a.wt,
method: a.method,
bL: "catch"
})
});
c.alog("exception.create", {
postUrl: i,
dv: 7,
page: g,
pid: "170",
p: "18"
})
}
n && (n.yh && k() < n.yh) && (c.alog("cus.on", "time",
function(a) {
var b = {},
d = q,
e;
if ("[object Object]" === a.toString()) {
for (var g in a)"page" == g ? b.page = a[g] : (e = parseInt(a[g]), 0 < e && /^z_/.test(g) && (d = o, b[g] = e));
d && c.alog("cus.send", "time", b)
}
}), c.alog("cus.on", "count",
function(a) {
var b = {},
d = q;
"string" === typeof a && (a = [a]);
if (a instanceof Array) for (var e = 0; e < a.length; e++) / ^z_ / .test(a[e]) ? (d = o, b[a[e]] = 1) : /^page:/.test(a[e]) && (b.page = a[e].substring(5));
d && c.alog("cus.send", "count", b)
}), c.alog("cus.create", {
dv: 3,
postUrl: i,
page: g,
p: "18"
}));
if (t && t.yh && k() < t.yh) {
var A = ["Moz", "O", "ms", "Webkit"],
D = ["-webkit-", "-moz-", "-o-", "-ms-"],
B = function() {
return typeof b.createElement !== "function" ? b.createElement(arguments[0]) : b.createElement.apply(b, arguments)
},
F = B("dpFeatureTest").style,
J = function(a) {
return L(a, j, j)
},
L = function(a, b, c) {
var d = a.charAt(0).toUpperCase() + a.slice(1),
e = (a + " " + A.join(d + " ") + d).split(" ");
if (typeof b === "string" || typeof b === "undefined") return K(e, b);
e = (a + " " + A.join(d + " ") + d).split(" ");
a: {
var a = e,
f;
for (f in a) if (a[f] in b) {
if (c === q) {
b = a[f];
break a
}
f = b[a[f]];
b = typeof f === "function" ? fnBind(f, c || b) : f;
break a
}
b = q
}
return b
},
K = function(a, b) {
var c, d, e;
d = a.length;
for (c = 0; c < d; c++) {
e = a[c];~ ("" + e).indexOf("-") && (e = W(e));
if (F[e] !== j) return b == "pfx" ? e: o
}
return q
},
W = function(a) {
return a.replace(/([a-z])-([a-z])/g,
function(a, b, c) {
return b + c.toUpperCase()
}).replace(/^-/, "")
},
ea = function(a, b, c) {
if (a.indexOf("@") === 0) return atRule(a);
a.indexOf("-") != -1 && (a = W(a));
return ! b ? L(a, "pfx") : L(a, b, c)
},
fa = function() {
var a = B("canvas");
return ! (!a.getContext || !a.getContext("2d"))
},
Ea = function() {
var a = B("div");
return "draggable" in a || "ondragstart" in a && "ondrop" in a
},
Ua = function() {
try {
localStorage.setItem("localStorage", "localStorage");
localStorage.removeItem("localStorage");
return o
} catch(a) {
return q
}
},
Qa = function() {
return "content" in b.createElement("template")
},
Aa = function() {
return "createShadowRoot" in b.createElement("a")
},
mc = function() {
return "registerElement" in b
},
qe = function() {
return "import" in b.createElement("link")
},
nf = function() {
return "getItems" in b
},
fd = function() {
return "EventSource" in window
},
Lb = function(a, b) {
var c = new Image;
c.onload = function() {
b(a, c.width > 0 && c.height > 0)
};
c.onerror = function() {
b(a, q)
};
c.src = "data:image/webp;base64," + {
s3: "UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",
r3: "UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",
alpha: "UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",
jk: "UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"
} [a]
},
nc = function(a, b) {
return Mb.ii["WebP-" + a] = b
},
re = function() {
return "openDatabase" in a
},
se = function() {
return "performance" in a && "timing" in a.performance
},
Nc = function() {
return "performance" in a && "mark" in a.performance
},
gd = function() {
return ! (!Array.prototype || !Array.prototype.every || !Array.prototype.filter || !Array.prototype.forEach || !Array.prototype.indexOf || !Array.prototype.lastIndexOf || !Array.prototype.map || !Array.prototype.some || !Array.prototype.reduce || !Array.prototype.reduceRight || !Array.isArray)
},
te = function() {
return "Promise" in a && "cast" in a.jq && "resolve" in a.jq && "reject" in a.jq && "all" in a.jq && "race" in a.jq &&
function() {
var b;
new a.jq(function(a) {
b = a
});
return typeof b === "function"
} ()
},
hd = function() {
var b = !!a.u0,
c = a.XMLHttpRequest && "withCredentials" in new XMLHttpRequest;
return !! a.x0 && b && c
},
of = function() {
return "geolocation" in navigator
},
ue = function() {
var b = B("canvas"),
c = "probablySupportsContext" in b ? "probablySupportsContext": "supportsContext";
return c in b ? b[c]("webgl") || b[c]("experimental-webgl") : "WebGLRenderingContext" in a
},
gi = function() {
return !! b.createElementNS && !!b.createElementNS("http://www.w3.org/2000/svg", "svg").I1
},
hi = function() {
return !! a.E0
},
ii = function() {
return "WebSocket" in a && a.B0.r0 === 2
},
ji = function() {
return !! b.createElement("video").canPlayType
},
ki = function() {
return !! b.createElement("audio").canPlayType
},
li = function() {
return !! (a.history && "pushState" in a.history)
},
mi = function() {
return ! (!a.s0 || !a.t0)
},
ni = function() {
return "postMessage" in window
},
oi = function() {
return !! a.webkitNotifications || "Notification" in a && "permission" in a.tP && "requestPermission" in a.tP
},
pi = function() {
for (var b = ["webkit", "moz", "o", "ms"], c = a.requestAnimationFrame, e = 0; e < b.length && !c; ++e) c = a[b[e] + "RequestAnimationFrame"];
return !! c
},
qi = function() {
return "JSON" in a && "parse" in JSON && "stringify" in JSON
},
ri = function() {
return ! (!ea("exitFullscreen", b, q) && !ea("cancelFullScreen", b, q))
},
si = function() {
return !! ea("Intl", a)
},
ti = function() {
return J("flexBasis")
},
ui = function() {
return !! J("perspective")
},
vi = function() {
return J("shapeOutside")
},
wi = function() {
var a = B("div");
a.style.cssText = D.join("filter:blur(2px); ");
return !! a.style.length && (b.documentMode === j || b.documentMode > 9)
},
xi = function() {
return "XMLHttpRequest" in a && "withCredentials" in new XMLHttpRequest
},
yi = function() {
return B("progress").max !== j
},
zi = function() {
return B("meter").max !== j
},
Ai = function() {
return "sendBeacon" in navigator
},
Bi = function() {
return J("borderRadius")
},
Ci = function() {
return J("boxShadow")
},
Di = function() {
var a = B("div").style;
a.cssText = D.join("opacity:.55;");
return /^0.55$/.test(a.opacity)
},
Ei = function() {
return K(["textShadow"], j)
},
Fi = function() {
return J("animationName")
},
Gi = function() {
return J("transition")
},
Hi = function() {
return navigator.userAgent.indexOf("Android 2.") === -1 && J("transform")
},
Mb = {
ii: {},
oa: function(a, b, c) {
this.ii[a] = b.apply(this, [].slice.call(arguments, 2))
},
Cd: function(a, b) {
a.apply(this, [].slice.call(arguments, 1))
},
zZ: function() {
this.oa("bdrs", Bi);
this.oa("bxsd", Ci);
this.oa("opat", Di);
this.oa("txsd", Ei);
this.oa("anim", Fi);
this.oa("trsi", Gi);
this.oa("trfm", Hi);
this.oa("flex", ti);
this.oa("3dtr", ui);
this.oa("shpe", vi);
this.oa("fltr", wi);
this.oa("cavs", fa);
this.oa("dgdp", Ea);
this.oa("locs", Ua);
this.oa("wctem", Qa);
this.oa("wcsdd", Aa);
this.oa("wccse", mc);
this.oa("wchti", qe);
this.Cd(Lb, "lossy", nc);
this.Cd(Lb, "lossless", nc);
this.Cd(Lb, "alpha", nc);
this.Cd(Lb, "animation", nc);
this.oa("wsql", re);
this.oa("natm", se);
this.oa("ustm", Nc);
this.oa("arra", gd);
this.oa("prms", te);
this.oa("xhr2", hd);
this.oa("wbgl", ue);
this.oa("geol", of);
this.oa("svg", gi);
this.oa("work", hi);
this.oa("wbsk", ii);
this.oa("vido", ji);
this.oa("audo", ki);
this.oa("hsty", li);
this.oa("file", mi);
this.oa("psmg", ni);
this.oa("wknf", oi);
this.oa("rqaf", pi);
this.oa("json", qi);
this.oa("flsc", ri);
this.oa("i18n", si);
this.oa("cors", xi);
this.oa("prog", yi);
this.oa("metr", zi);
this.oa("becn", Ai);
this.oa("mcrd", nf);
this.oa("esrc", fd)
}
},
v = c.alog.NF("feature");
v.M("commit",
function() {
Mb.zZ();
var a = setInterval(function() {
if ("WebP-lossy" in Mb.ii && "WebP-lossless" in Mb.ii && "WebP-alpha" in Mb.ii && "WebP-animation" in Mb.ii) {
for (var b in Mb.ii) Mb.ii[b] = Mb.ii[b] ? "y": "n";
v.send("feature", Mb.ii);
clearInterval(a)
}
},
500)
});
c.alog("feature.create", {
T1: 4,
M3: i,
page: g,
ub: "18"
});
c.alog("feature.fire", "commit")
}
} (a, b, c)
} (window, document, z);
z.Dn = z.alog || s();
z.alog("cus.fire", "count", "z_loadscriptcount");
"https:" === location.protocol && z.alog("cus.fire", "count", "z_httpscount");
function Rb(a) {
var b = window.TILE_VERSION,
c = "20170927";
b && b.ditu && (b = b.ditu, b[a] && b[a].updateDate && (c = b[a].updateDate));
return c
};
function pa(a, b) {
if (/^http/.test(a))//这里判断一下,如果是调用外部资源就退出去好了
return;
if (b) {
var c = (1E5 * Math.random()).toFixed(0);
z._rd["_cbk" + c] = function(a) {
b && b(a);
delete z._rd["_cbk" + c]
};
a += "&callback=BMap._rd._cbk" + c
}
var d = M("script", {
type: "text/javascript"
});
d.charset = "utf-8";
d.src = a;
d.addEventListener ? d.addEventListener("load",
function(a) {
a = a.target;
a.parentNode.removeChild(a)
},
q) : d.attachEvent && d.attachEvent("onreadystatechange",
function() {
var a = window.event.srcElement;
a && ("loaded" == a.readyState || "complete" == a.readyState) && a.parentNode.removeChild(a)
});
setTimeout(function() {
document.getElementsByTagName("head")[0].appendChild(d);
d = p
},
1)
};
var Sb = {
map: "qvwhpw",
common: "rd34ye",
style: "hfbhis",
tile: "tr4mlq",
vectordrawlib: "guegnq",
newvectordrawlib: "e4h3yl",
groundoverlay: "kvmrds",
pointcollection: "pczsro",
marker: "04aunc",
symbol: "p0dpaw",
canvablepath: "wg4qgt",
vmlcontext: "isqbn2",
markeranimation: "nsuuqd",
poly: "nwg3f2",
draw: "yysqkl",
drawbysvg: "e5myin",
drawbyvml: "m3iedr",
drawbycanvas: "gwa2k4",
infowindow: "vlgzcy",
oppc: "qjt21z",
opmb: "rv5sii",
menu: "xxsskz",
control: "wfaub5",
navictrl: "z13gqu",
geoctrl: "wuuqk1",
copyrightctrl: "0wvo4s",
citylistcontrol: "bl5zau",
scommon: "tiybiy",
local: "tn1a0j",
route: "0lyh3b",
othersearch: "wy5iwg",
mapclick: "lv2ewy",
buslinesearch: "zlh2ql",
hotspot: "wodq2u",
autocomplete: "5eyd2y",
coordtrans: "bkfpql",
coordtransutils: "g1iarv",
convertor: "pjdycr",
clayer: "241cvr",
pservice: "rt3uza",
pcommon: "jcjego",
panorama: "wztjcf",
panoramaflash: "banqbn",
vector: "2n0w13"
};
x.Jy = function() {
function a(a) {
return d && !!c[b + a + "_" + Sb[a]]
}
var b = "BMap_",
c = window.localStorage,
d = "localStorage" in window && c !== p && c !== j;
return {
qY: d,
set: function(a, f) {
if (d) {
for (var g = b + a + "_",
i = c.length,
k; i--;) k = c.key(i),
-1 < k.indexOf(g) && c.removeItem(k);
try {
c.setItem(b + a + "_" + Sb[a], f)
} catch(l) {
c.clear()
}
}
},
get: function(e) {
return d && a(e) ? c.getItem(b + e + "_" + Sb[e]) : q
},
eK: a
}
} ();
function I() {}
x.object.extend(I, {
Fj: {
oG: -1,
HP: 0,
aq: 1
},
pL: function() {
var a = "canvablepath",
b = z.HU ? "newvectordrawlib": "vectordrawlib";
if (!G() || !Nb()) Kb() || (Jb() ? a = "vmlcontext": Nb());
return {
tile: [b, "style"],
control: [],
marker: ["symbol"],
symbol: ["canvablepath", "common"],
canvablepath: "canvablepath" === a ? [] : [a],
vmlcontext: [],
style: [],
poly: ["marker", "drawbycanvas", "drawbysvg", "drawbyvml"],
drawbysvg: ["draw"],
drawbyvml: ["draw"],
drawbycanvas: ["draw"],
infowindow: ["common", "marker"],
menu: [],
oppc: [],
opmb: [],
scommon: [],
local: ["scommon"],
route: ["scommon"],
othersearch: ["scommon"],
autocomplete: ["scommon"],
citylistcontrol: ["autocomplete"],
mapclick: ["scommon"],
buslinesearch: ["route"],
hotspot: [],
coordtransutils: ["coordtrans"],
convertor: [],
clayer: ["tile"],
pservice: [],
pcommon: ["style", "pservice"],
panorama: ["pcommon"],
panoramaflash: ["pcommon"]
}
},
P3: {},
hG: {
YP: z.ma + "getmodules?v=2.0&t=20140707",
yU: 5E3
},
CC: q,
Pd: {
sl: {},
Fn: [],
Sv: []
},
load: function(a, b, c) {
var d = this.ib(a);
if (d.Bd == this.Fj.aq) c && b();
else {
if (d.Bd == this.Fj.oG) {
this.kK(a);
this.xN(a);
var e = this;
e.CC == q && (e.CC = o, setTimeout(function() {
for (var a = [], b = 0, c = e.Pd.Fn.length; b < c; b++) {
var d = e.Pd.Fn[b],
l = "";
ja.Jy.eK(d) ? l = ja.Jy.get(d) : (l = "", a.push(d + "_" + Sb[d]));
e.Pd.Sv.push({
RM: d,
JE: l
})
}
e.CC = q;
e.Pd.Fn.length = 0;
//0 == a.length ? e.VK() : pa(e.hG.YP + "&mod=" + a.join(","))
//0 == a.length ? e.UK() : Qb(e.gG.XP + "&mod=" + a.join(","))
console.log(a); //这里很重要!帮助我们找到我们需要加载的模块!
0 == a.length ? e.VK() : pa("js/getmodules.js")
},
1));
d.Bd = this.Fj.HP
}
d.Qu.push(b)
}
},
kK: function(a) {
if (a && this.pL()[a]) for (var a = this.pL()[a], b = 0; b < a.length; b++) this.kK(a[b]),
this.Pd.sl[a[b]] || this.xN(a[b])
},
xN: function(a) {
for (var b = 0; b < this.Pd.Fn.length; b++) if (this.Pd.Fn[b] == a) return;
this.Pd.Fn.push(a)
},
yZ: function(a, b) {
var c = this.ib(a);
try {
eval(b)
} catch(d) {
return
}
c.Bd = this.Fj.aq;
for (var e = 0,
f = c.Qu.length; e < f; e++) c.Qu[e]();
c.Qu.length = 0
},
eK: function(a, b) {
var c = this;
c.timeout = setTimeout(function() {
c.Pd.sl[a].Bd != c.Fj.aq ? (c.remove(a), c.load(a, b)) : clearTimeout(c.timeout)
},
c.hG.yU)
},
ib: function(a) {
this.Pd.sl[a] || (this.Pd.sl[a] = {},
this.Pd.sl[a].Bd = this.Fj.oG, this.Pd.sl[a].Qu = []);
return this.Pd.sl[a]
},
remove: function(a) {
delete this.ib(a)
},
tV: function(a, b) {
for (var c = this.Pd.Sv,
d = o,
e = 0,
f = c.length; e < f; e++)"" == c[e].JE && (c[e].RM == a ? c[e].JE = b: d = q);
d && this.VK()
},
VK: function() {
for (var a = this.Pd.Sv,
b = 0,
c = a.length; b < c; b++) this.yZ(a[b].RM, a[b].JE);
this.Pd.Sv.length = 0
}
});
function Q(a, b) {
this.x = a || 0;
this.y = b || 0;
this.x = this.x;
this.y = this.y
}
Q.prototype.nb = function(a) {
return a && a.x == this.x && a.y == this.y
};
function N(a, b) {
this.width = a || 0;
this.height = b || 0
}
N.prototype.nb = function(a) {
return a && this.width == a.width && this.height == a.height
};
function hb(a, b) {
a && (this.Lb = a, this.ba = "spot" + hb.ba++, b = b || {},
this.Tg = b.text || "", this.yv = b.offsets ? b.offsets.slice(0) : [5, 5, 5, 5], this.tJ = b.userData || p, this.Qh = b.minZoom || p, this.Ff = b.maxZoom || p)
}
hb.ba = 0;
x.extend(hb.prototype, {
ra: function(a) {
this.Qh == p && (this.Qh = a.K.gc);
this.Ff == p && (this.Ff = a.K.$b)
},
ta: function(a) {
a instanceof H && (this.Lb = a)
},
ha: u("Lb"),
Wt: ba("Tg"),
VD: u("Tg"),
setUserData: ba("tJ"),
getUserData: u("tJ")
});
function Tb() {
this.C = p;
this.Mb = "control";
this.Qa = this.YJ = o
}
x.lang.ua(Tb, x.lang.Ca, "Control");
x.extend(Tb.prototype, {
initialize: function(a) {
this.C = a;
if (this.B) return a.Va.appendChild(this.B),
this.B
},
Ee: function(a) { ! this.B && (this.initialize && Ya(this.initialize)) && (this.B = this.initialize(a));
this.k = this.k || {
zg: q
};
this.wB();
this.Lr();
this.B && (this.B.kr = this)
},
wB: function() {
var a = this.B;
if (a) {
var b = a.style;
b.position = "absolute";
b.zIndex = this.vz || "10";
b.MozUserSelect = "none";
b.WebkitTextSizeAdjust = "none";
this.k.zg || x.D.Ua(a, "BMap_noprint");
G() || x.M(a, "contextmenu", oa)
}
},
remove: function() {
this.C = p;
this.B && (this.B.parentNode && this.B.parentNode.removeChild(this.B), this.B = this.B.kr = p)
},
Aa: function() {
this.B = yb(this.C.Va, "<div unselectable='on'></div>");
this.Qa == q && x.D.U(this.B);
return this.B
},
Lr: function() {
this.qc(this.k.anchor)
},
qc: function(a) {
if (this.r1 || !Xa(a) || isNaN(a) || a < Ub || 3 < a) a = this.defaultAnchor;
this.k = this.k || {
zg: q
};
this.k.za = this.k.za || this.defaultOffset;
var b = this.k.anchor;
this.k.anchor = a;
if (this.B) {
var c = this.B,
d = this.k.za.width,
e = this.k.za.height;
c.style.left = c.style.top = c.style.right = c.style.bottom = "auto";
switch (a) {
case Ub:
c.style.top = e + "px";
c.style.left = d + "px";
break;
case Vb:
c.style.top = e + "px";
c.style.right = d + "px";
break;
case Wb:
c.style.bottom = e + "px";
c.style.left = d + "px";
break;
case 3:
c.style.bottom = e + "px",
c.style.right = d + "px"
}
c = ["TL", "TR", "BL", "BR"];
x.D.Sb(this.B, "anchor" + c[b]);
x.D.Ua(this.B, "anchor" + c[a])
}
},
xD: function() {
return this.k.anchor
},
getContainer: u("B"),
Ve: function(a) {
a instanceof N && (this.k = this.k || {
zg: q
},
this.k.za = new N(a.width, a.height), this.B && this.qc(this.k.anchor))
},
Qf: function() {
return this.k.za
},
Id: u("B"),
show: function() {
this.Qa != o && (this.Qa = o, this.B && x.D.show(this.B))
},
U: function() {
this.Qa != q && (this.Qa = q, this.B && x.D.U(this.B))
},
isPrintable: function() {
return !! this.k.zg
},
kh: function() {
return ! this.B && !this.C ? q: !!this.Qa
}
});
var Ub = 0,
Vb = 1,
Wb = 2;
function ib(a) {
Tb.call(this);
a = a || {};
this.k = {
zg: q,
AF: a.showZoomInfo || o,
anchor: a.anchor,
za: a.offset,
type: a.type,
uW: a.enableGeolocation || q
};
this.defaultAnchor = G() ? 3 : Ub;
this.defaultOffset = new N(10, 10);
this.qc(a.anchor);
this.jn(a.type);
this.Ae()
}
x.lang.ua(ib, Tb, "NavigationControl");
x.extend(ib.prototype, {
initialize: function(a) {
this.C = a;
return this.B
},
jn: function(a) {
this.k.type = Xa(a) && 0 <= a && 3 >= a ? a: 0
},
hp: function() {
return this.k.type
},
Ae: function() {
var a = this;
I.load("navictrl",
function() {
a.xf()
})
}
});
function Xb(a) {
Tb.call(this);
a = a || {};
this.k = {
anchor: a.anchor || Wb,
za: a.offset || new N(10, 30),
i_: a.showAddressBar !== q,
Z1: a.enableAutoLocation || q,
FM: a.locationIcon || p
};
var b = this;
this.vz = 1200;
b.X_ = [];
this.le = [];
I.load("geoctrl",
function() { (function d() {
if (0 !== b.le.length) {
var a = b.le.shift();
b[a.method].apply(b, a.arguments);
d()
}
})();
b.XP()
});
Ra(Ja)
}
x.lang.ua(Xb, Tb, "GeolocationControl");
x.extend(Xb.prototype, {
location: function() {
this.le.push({
method: "location",
arguments: arguments
})
},
getAddressComponent: ca(p)
});
function Yb(a) {
Tb.call(this);
a = a || {};
this.k = {
zg: q,
anchor: a.anchor,
za: a.offset
};
this.dc = [];
this.defaultAnchor = Wb;
this.defaultOffset = new N(5, 2);
this.qc(a.anchor);
this.YJ = q;
this.Ae()
}
x.lang.ua(Yb, Tb, "CopyrightControl");
x.object.extend(Yb.prototype, {
initialize: function(a) {
this.C = a;
return this.B
},
qw: function(a) {
if (a && Xa(a.id) && !isNaN(a.id)) {
var b = {
bounds: p,
content: ""
},
c;
for (c in a) b[c] = a[c];
if (a = this.pm(a.id)) for (var d in b) a[d] = b[d];
else this.dc.push(b)
}
},
pm: function(a) {
for (var b = 0,
c = this.dc.length; b < c; b++) if (this.dc[b].id == a) return this.dc[b]
},
ED: u("dc"),
aF: function(a) {
for (var b = 0,
c = this.dc.length; b < c; b++) this.dc[b].id == a && (r = this.dc.splice(b, 1), b--, c = this.dc.length)
},
Ae: function() {
var a = this;
I.load("copyrightctrl",
function() {
a.xf()
})
}
});
function kb(a) {
Tb.call(this);
a = a || {};
this.k = {
zg: q,
size: a.size || new N(150, 150),
padding: 5,
Wa: a.isOpen === o ? o: q,
l0: 4,
za: a.offset,
anchor: a.anchor
};
this.defaultAnchor = 3;
this.defaultOffset = new N(0, 0);
this.zq = this.Aq = 13;
this.qc(a.anchor);
this.ye(this.k.size);
this.Ae()
}
x.lang.ua(kb, Tb, "OverviewMapControl");
x.extend(kb.prototype, {
initialize: function(a) {
this.C = a;
return this.B
},
qc: function(a) {
Tb.prototype.qc.call(this, a)
},
ne: function() {
this.ne.ko = o;
this.k.Wa = !this.k.Wa;
this.B || (this.ne.ko = q)
},
ye: function(a) {
a instanceof N || (a = new N(150, 150));
a.width = 0 < a.width ? a.width: 150;
a.height = 0 < a.height ? a.height: 150;
this.k.size = a
},
Bb: function() {
return this.k.size
},
Wa: function() {
return this.k.Wa
},
Ae: function() {
var a = this;
I.load("control",
function() {
a.xf()
})
}
});
function Zb(a) {
Tb.call(this);
a = a || {};
this.defaultAnchor = Ub;
this.qV = a.canCheckSize === q ? q: o;
this.ej = "";
this.defaultOffset = new N(10, 10);
this.onChangeBefore = [];
this.onChangeAfter = [];
this.onChangeSuccess = [];
this.k = {
zg: q,
za: a.offset || this.defaultOffset,
anchor: a.anchor || this.defaultAnchor,
expand: !!a.expand
};
a.onChangeBefore && Ya(a.onChangeBefore) && this.onChangeBefore.push(a.onChangeBefore);
a.onChangeAfter && Ya(a.onChangeAfter) && this.onChangeAfter.push(a.onChangeAfter);
a.onChangeSuccess && Ya(a.onChangeSuccess) && this.onChangeSuccess.push(a.onChangeSuccess);
this.qc(a.anchor);
this.Ae()
}
x.lang.ua(Zb, Tb, "CityListControl");
x.object.extend(Zb.prototype, {
initialize: function(a) {
this.C = a;
return this.B
},
Ae: function() {
var a = this;
I.load("citylistcontrol",
function() {
a.xf()
},
o)
}
});
function jb(a) {
Tb.call(this);
a = a || {};
this.k = {
zg: q,
color: "black",
cd: "metric",
za: a.offset
};
this.defaultAnchor = Wb;
this.defaultOffset = new N(81, 18);
this.qc(a.anchor);
this.Zh = {
metric: {
name: "metric",
mK: 1,
YL: 1E3,
DO: "\u7c73",
EO: "\u516c\u91cc"
},
us: {
name: "us",
mK: 3.2808,
YL: 5280,
DO: "\u82f1\u5c3a",
EO: "\u82f1\u91cc"
}
};
this.Zh[this.k.cd] || (this.k.cd = "metric");
this.SI = p;
this.rI = {};
this.Ae()
}
x.lang.ua(jb, Tb, "ScaleControl");
x.object.extend(jb.prototype, {
initialize: function(a) {
this.C = a;
return this.B
},
Jk: function(a) {
this.k.color = a + ""
},
q2: function() {
return this.k.color
},
xF: function(a) {
this.k.cd = this.Zh[a] && this.Zh[a].name || this.k.cd
},
NX: function() {
return this.k.cd
},
Ae: function() {
var a = this;
I.load("control",
function() {
a.xf()
})
}
});
var $b = 0;
function lb(a) {
Tb.call(this);
a = a || {};
this.defaultAnchor = Vb;
this.defaultOffset = new N(10, 10);
this.k = {
zg: q,
nh: [Ma, Za, Sa, Pa],
YV: ["B_DIMENSIONAL_MAP", "B_SATELLITE_MAP", "B_NORMAL_MAP"],
type: a.type || $b,
za: a.offset || this.defaultOffset,
yW: o
};
this.qc(a.anchor);
"[object Array]" == Object.prototype.toString.call(a.mapTypes) && (this.k.nh = a.mapTypes.slice(0));
this.Ae()
}
x.lang.ua(lb, Tb, "MapTypeControl");
x.object.extend(lb.prototype, {
initialize: function(a) {
this.C = a;
return this.B
},
Ky: function(a) {
this.C.Zn = a
},
Ae: function() {
var a = this;
I.load("control",
function() {
a.xf()
},
o)
}
});
function ac(a) {
Tb.call(this);
a = a || {};
this.k = {
zg: q,
za: a.offset,
anchor: a.anchor
};
this.Qi = q;
this.Wv = p;
this.AI = new bc({
Pf: "api"
});
this.BI = new cc(p, {
Pf: "api"
});
this.defaultAnchor = Vb;
this.defaultOffset = new N(10, 10);
this.qc(a.anchor);
this.Ae();
Ra(va)
}
x.lang.ua(ac, Tb, "PanoramaControl");
x.extend(ac.prototype, {
initialize: function(a) {
this.C = a;
return this.B
},
Ae: function() {
var a = this;
I.load("control",
function() {
a.xf()
})
}
});
function dc(a) {
x.lang.Ca.call(this);
this.k = {
Va: p,
cursor: "default"
};
this.k = x.extend(this.k, a);
this.Mb = "contextmenu";
this.C = p;
this.ya = [];
this.If = [];
this.Ce = [];
this.Rw = this.is = p;
this.Ph = q;
var b = this;
I.load("menu",
function() {
b.yb()
})
}
x.lang.ua(dc, x.lang.Ca, "ContextMenu");
x.object.extend(dc.prototype, {
ra: function(a, b) {
this.C = a;
this.xl = b || p
},
remove: function() {
this.C = this.xl = p
},
sw: function(a) {
if (a && !("menuitem" != a.Mb || "" == a.Tg || 0 >= a.Zi)) {
for (var b = 0,
c = this.ya.length; b < c; b++) if (this.ya[b] === a) return;
this.ya.push(a);
this.If.push(a)
}
},
removeItem: function(a) {
if (a && "menuitem" == a.Mb) {
for (var b = 0,
c = this.ya.length; b < c; b++) this.ya[b] === a && (this.ya[b].remove(), this.ya.splice(b, 1), c--);
b = 0;
for (c = this.If.length; b < c; b++) this.If[b] === a && (this.If[b].remove(), this.If.splice(b, 1), c--)
}
},
QB: function() {
this.ya.push({
Mb: "divider",
Nj: this.Ce.length
});
this.Ce.push({
D: p
})
},
cF: function(a) {
if (this.Ce[a]) {
for (var b = 0,
c = this.ya.length; b < c; b++) this.ya[b] && ("divider" == this.ya[b].Mb && this.ya[b].Nj == a) && (this.ya.splice(b, 1), c--),
this.ya[b] && ("divider" == this.ya[b].Mb && this.ya[b].Nj > a) && this.ya[b].Nj--;
this.Ce.splice(a, 1)
}
},
Id: u("B"),
show: function() {
this.Ph != o && (this.Ph = o)
},
U: function() {
this.Ph != q && (this.Ph = q)
},
OZ: function(a) {
a && (this.k.cursor = a)
},
getItem: function(a) {
return this.If[a]
}
});
var ec = E.qa + "menu_zoom_in.png",
fc = E.qa + "menu_zoom_out.png";
function gc(a, b, c) {
if (a && Ya(b)) {
x.lang.Ca.call(this);
this.k = {
width: 100,
id: "",
Em: ""
};
c = c || {};
this.k.width = 1 * c.width ? c.width: 100;
this.k.id = c.id ? c.id: "";
this.k.Em = c.iconUrl ? c.iconUrl: "";
this.Tg = a + "";
this.yz = b;
this.C = p;
this.Mb = "menuitem";
this.Sr = this.nv = this.B = this.Hh = p;
this.Lh = o;
var d = this;
I.load("menu",
function() {
d.yb()
})
}
}
x.lang.ua(gc, x.lang.Ca, "MenuItem");
x.object.extend(gc.prototype, {
ra: function(a, b) {
this.C = a;
this.Hh = b
},
remove: function() {
this.C = this.Hh = p
},
Wt: function(a) {
a && (this.Tg = a + "")
},
Ub: function(a) {
a && (this.k.Em = a)
},
Id: u("B"),
enable: function() {
this.Lh = o
},
disable: function() {
this.Lh = q
}
});
function eb(a, b) {
a && !b && (b = a);
this.Ge = this.Fe = this.Le = this.Ke = this.Ml = this.vl = p;
a && (this.Ml = new H(a.lng, a.lat), this.vl = new H(b.lng, b.lat), this.Le = a.lng, this.Ke = a.lat, this.Ge = b.lng, this.Fe = b.lat)
}
x.object.extend(eb.prototype, {
xj: function() {
return ! this.Ml || !this.vl
},
nb: function(a) {
return ! (a instanceof eb) || this.xj() ? q: this.se().nb(a.se()) && this.of().nb(a.of())
},
se: u("Ml"),
of: u("vl"),
HV: function(a) {
return ! (a instanceof eb) || this.xj() || a.xj() ? q: a.Le > this.Le && a.Ge < this.Ge && a.Ke > this.Ke && a.Fe < this.Fe
},
Ka: function() {
return this.xj() ? p: new H((this.Le + this.Ge) / 2, (this.Ke + this.Fe) / 2)
},
it: function(a) {
if (! (a instanceof eb) || Math.max(a.Le, a.Ge) < Math.min(this.Le, this.Ge) || Math.min(a.Le, a.Ge) > Math.max(this.Le, this.Ge) || Math.max(a.Ke, a.Fe) < Math.min(this.Ke, this.Fe) || Math.min(a.Ke, a.Fe) > Math.max(this.Ke, this.Fe)) return p;
var b = Math.max(this.Le, a.Le),
c = Math.min(this.Ge, a.Ge),
d = Math.max(this.Ke, a.Ke),
a = Math.min(this.Fe, a.Fe);
return new eb(new H(b, d), new H(c, a))
},
ds: function(a) {
return ! (a instanceof H) || this.xj() ? q: a.lng >= this.Le && a.lng <= this.Ge && a.lat >= this.Ke && a.lat <= this.Fe
},
extend: function(a) {
if (a instanceof H) {
var b = a.lng,
a = a.lat;
this.Ml || (this.Ml = new H(0, 0));
this.vl || (this.vl = new H(0, 0));
if (!this.Le || this.Le > b) this.Ml.lng = this.Le = b;
if (!this.Ge || this.Ge < b) this.vl.lng = this.Ge = b;
if (!this.Ke || this.Ke > a) this.Ml.lat = this.Ke = a;
if (!this.Fe || this.Fe < a) this.vl.lat = this.Fe = a
}
},
KF: function() {
return this.xj() ? new H(0, 0) : new H(Math.abs(this.Ge - this.Le), Math.abs(this.Fe - this.Ke))
}
});
function H(a, b) {
isNaN(a) && (a = Ib(a), a = isNaN(a) ? 0 : a);
$a(a) && (a = parseFloat(a));
isNaN(b) && (b = Ib(b), b = isNaN(b) ? 0 : b);
$a(b) && (b = parseFloat(b));
this.lng = a;
this.lat = b
}
H.dM = function(a) {
return a && 180 >= a.lng && -180 <= a.lng && 74 >= a.lat && -74 <= a.lat
};
H.prototype.nb = function(a) {
return a && this.lat == a.lat && this.lng == a.lng
};
function hc() {}
hc.prototype.lh = function() {
aa("lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0")
};
hc.prototype.zj = function() {
aa("pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0")
};
function ic() {};
var db = {
oK: function(a, b, c) {
I.load("coordtransutils",
function() {
db.$U(a, b, c)
},
o)
},
nK: function(a, b, c) {
I.load("coordtransutils",
function() {
db.ZU(a, b, c)
},
o)
}
};
function jc() {
this.Pa = [];
var a = this;
I.load("convertor",
function() {
a.VP()
})
}
x.ua(jc, x.lang.Ca, "Convertor");
x.extend(jc.prototype, {
translate: function(a, b, c, d) {
this.Pa.push({
method: "translate",
arguments: [a, b, c, d]
})
}
});
S(jc.prototype, {
translate: jc.prototype.translate
});
function R() {}
R.prototype = new hc;
x.extend(R, {
kP: 6370996.81,
sG: [1.289059486E7, 8362377.87, 5591021, 3481989.83, 1678043.12, 0],
Du: [75, 60, 45, 30, 15, 0],
qP: [[1.410526172116255E-8, 8.98305509648872E-6, -1.9939833816331, 200.9824383106796, -187.2403703815547, 91.6087516669843, -23.38765649603339, 2.57121317296198, -0.03801003308653, 1.73379812E7], [ - 7.435856389565537E-9, 8.983055097726239E-6, -0.78625201886289, 96.32687599759846, -1.85204757529826, -59.36935905485877, 47.40033549296737, -16.50741931063887, 2.28786674699375, 1.026014486E7], [ - 3.030883460898826E-8, 8.98305509983578E-6, 0.30071316287616, 59.74293618442277, 7.357984074871, -25.38371002664745, 13.45380521110908, -3.29883767235584, 0.32710905363475, 6856817.37], [ - 1.981981304930552E-8, 8.983055099779535E-6, 0.03278182852591, 40.31678527705744, 0.65659298677277, -4.44255534477492, 0.85341911805263, 0.12923347998204, -0.04625736007561, 4482777.06], [3.09191371068437E-9, 8.983055096812155E-6, 6.995724062E-5, 23.10934304144901, -2.3663490511E-4, -0.6321817810242, -0.00663494467273, 0.03430082397953, -0.00466043876332, 2555164.4], [2.890871144776878E-9, 8.983055095805407E-6, -3.068298E-8, 7.47137025468032, -3.53937994E-6, -0.02145144861037, -1.234426596E-5, 1.0322952773E-4, -3.23890364E-6, 826088.5]],
pG: [[ - 0.0015702102444, 111320.7020616939, 1704480524535203, -10338987376042340, 26112667856603880, -35149669176653700, 26595700718403920, -10725012454188240, 1800819912950474, 82.5], [8.277824516172526E-4, 111320.7020463578, 6.477955746671607E8, -4.082003173641316E9, 1.077490566351142E10, -1.517187553151559E10, 1.205306533862167E10, -5.124939663577472E9, 9.133119359512032E8, 67.5], [0.00337398766765, 111320.7020202162, 4481351.045890365, -2.339375119931662E7, 7.968221547186455E7, -1.159649932797253E8, 9.723671115602145E7, -4.366194633752821E7, 8477230.501135234, 52.5], [0.00220636496208, 111320.7020209128, 51751.86112841131, 3796837.749470245, 992013.7397791013, -1221952.21711287, 1340652.697009075, -620943.6990984312, 144416.9293806241, 37.5], [ - 3.441963504368392E-4, 111320.7020576856, 278.2353980772752, 2485758.690035394, 6070.750963243378, 54821.18345352118, 9540.606633304236, -2710.55326746645, 1405.483844121726, 22.5], [ - 3.218135878613132E-4, 111320.7020701615, 0.00369383431289, 823725.6402795718, 0.46104986909093, 2351.343141331292, 1.58060784298199, 8.77738589078284, 0.37238884252424, 7.45]],
v2: function(a, b) {
if (!a || !b) return 0;
var c, d, a = this.Ab(a);
if (!a) return 0;
c = this.Sk(a.lng);
d = this.Sk(a.lat);
b = this.Ab(b);
return ! b ? 0 : this.Re(c, this.Sk(b.lng), d, this.Sk(b.lat))
},
Xo: function(a, b) {
if (!a || !b) return 0;
a.lng = this.ND(a.lng, -180, 180);
a.lat = this.RD(a.lat, -74, 74);
b.lng = this.ND(b.lng, -180, 180);
b.lat = this.RD(b.lat, -74, 74);
return this.Re(this.Sk(a.lng), this.Sk(b.lng), this.Sk(a.lat), this.Sk(b.lat))
},
Ab: function(a) {
if (a === p || a === j) return new H(0, 0);
var b, c;
b = new H(Math.abs(a.lng), Math.abs(a.lat));
for (var d = 0; d < this.sG.length; d++) if (b.lat >= this.sG[d]) {
c = this.qP[d];
break
}
a = this.pK(a, c);
return a = new H(a.lng.toFixed(6), a.lat.toFixed(6))
},
zb: function(a) {
if (a === p || a === j || 180 < a.lng || -180 > a.lng || 90 < a.lat || -90 > a.lat) return new H(0, 0);
var b, c;
a.lng = this.ND(a.lng, -180, 180);
a.lat = this.RD(a.lat, -74, 74);
b = new H(a.lng, a.lat);
for (var d = 0; d < this.Du.length; d++) if (b.lat >= this.Du[d]) {
c = this.pG[d];
break
}
if (!c) for (d = 0; d < this.Du.length; d++) if (b.lat <= -this.Du[d]) {
c = this.pG[d];
break
}
a = this.pK(a, c);
return a = new H(a.lng.toFixed(2), a.lat.toFixed(2))
},
pK: function(a, b) {
if (a && b) {
var c = b[0] + b[1] * Math.abs(a.lng),
d = Math.abs(a.lat) / b[9],
d = b[2] + b[3] * d + b[4] * d * d + b[5] * d * d * d + b[6] * d * d * d * d + b[7] * d * d * d * d * d + b[8] * d * d * d * d * d * d,
c = c * (0 > a.lng ? -1 : 1),
d = d * (0 > a.lat ? -1 : 1);
return new H(c, d)
}
},
Re: function(a, b, c, d) {
return this.kP * Math.acos(Math.sin(c) * Math.sin(d) + Math.cos(c) * Math.cos(d) * Math.cos(b - a))
},
Sk: function(a) {
return Math.PI * a / 180
},
u4: function(a) {
return 180 * a / Math.PI
},
RD: function(a, b, c) {
b != p && (a = Math.max(a, b));
c != p && (a = Math.min(a, c));
return a
},
ND: function(a, b, c) {
for (; a > c;) a -= c - b;
for (; a < b;) a += c - b;
return a
}
});
x.extend(R.prototype, {
Lm: function(a) {
return R.zb(a)
},
lh: function(a) {
a = R.zb(a);
return new Q(a.lng, a.lat)
},
oh: function(a) {
return R.Ab(a)
},
zj: function(a) {
a = new H(a.x, a.y);
return R.Ab(a)
},
bc: function(a, b, c, d, e) {
if (a) return a = this.Lm(a, e),
b = this.Bc(b),
new Q(Math.round((a.lng - c.lng) / b + d.width / 2), Math.round((c.lat - a.lat) / b + d.height / 2))
},
wb: function(a, b, c, d, e) {
if (a) return b = this.Bc(b),
this.oh(new H(c.lng + b * (a.x - d.width / 2), c.lat - b * (a.y - d.height / 2)), e)
},
Bc: function(a) {
return Math.pow(2, 18 - a)
}
});
function gb() {
this.ej = "bj"
}
gb.prototype = new R;
x.extend(gb.prototype, {
Lm: function(a, b) {
return this.FQ(b, R.zb(a))
},
oh: function(a, b) {
return R.Ab(this.GQ(b, a))
},
lngLatToPointFor3D: function(a, b) {
var c = this,
d = R.zb(a);
I.load("coordtrans",
function() {
var a = ic.PD(c.ej || "bj", d),
a = new Q(a.x, a.y);
b && b(a)
},
o)
},
pointToLngLatFor3D: function(a, b) {
var c = this,
d = new H(a.x, a.y);
I.load("coordtrans",
function() {
var a = ic.OD(c.ej || "bj", d),
a = new H(a.lng, a.lat),
a = R.Ab(a);
b && b(a)
},
o)
},
FQ: function(a, b) {
if (I.ib("coordtrans").Bd == I.Fj.aq) {
var c = ic.PD(a || "bj", b);
return new H(c.x, c.y)
}
I.load("coordtrans", s());
return new H(0, 0)
},
GQ: function(a, b) {
if (I.ib("coordtrans").Bd == I.Fj.aq) {
var c = ic.OD(a || "bj", b);
return new H(c.lng, c.lat)
}
I.load("coordtrans", s());
return new H(0, 0)
},
Bc: function(a) {
return Math.pow(2, 20 - a)
}
});
function kc() {
this.Mb = "overlay"
}
x.lang.ua(kc, x.lang.Ca, "Overlay");
kc.Am = function(a) {
a *= 1;
return ! a ? 0 : -1E5 * a << 1
};
x.extend(kc.prototype, {
Ee: function(a) {
if (!this.V && Ya(this.initialize) && (this.V = this.initialize(a))) this.V.style.WebkitUserSelect = "none";
this.draw()
},
initialize: function() {
aa("initialize\u65b9\u6cd5\u672a\u5b9e\u73b0")
},
draw: function() {
aa("draw\u65b9\u6cd5\u672a\u5b9e\u73b0")
},
remove: function() {
this.V && this.V.parentNode && this.V.parentNode.removeChild(this.V);
this.V = p;
this.dispatchEvent(new O("onremove"))
},
U: function() {
this.V && x.D.U(this.V)
},
show: function() {
this.V && x.D.show(this.V)
},
kh: function() {
return ! this.V || "none" == this.V.style.display || "hidden" == this.V.style.visibility ? q: o
}
});
z.Ue(function(a) {
function b(a, b) {
var c = M("div"),
g = c.style;
g.position = "absolute";
g.top = g.left = g.width = g.height = "0";
g.zIndex = b;
a.appendChild(c);
return c
}
var c = a.R;
c.od = a.od = b(a.platform, 200);
a.Vd.rD = b(c.od, 800);
a.Vd.FE = b(c.od, 700);
a.Vd.cL = b(c.od, 600);
a.Vd.xE = b(c.od, 500);
a.Vd.JM = b(c.od, 400);
a.Vd.KM = b(c.od, 300);
a.Vd.QO = b(c.od, 201);
a.Vd.xt = b(c.od, 200)
});
function fb() {
x.lang.Ca.call(this);
kc.call(this);
this.map = p;
this.Qa = o;
this.Cb = p;
this.fH = 0
}
x.lang.ua(fb, kc, "OverlayInternal");
x.extend(fb.prototype, {
initialize: function(a) {
this.map = a;
x.lang.Ca.call(this, this.ba);
return p
},
ox: u("map"),
draw: s(),
Hj: s(),
remove: function() {
this.map = p;
x.lang.Tw(this.ba);
kc.prototype.remove.call(this)
},
U: function() {
this.Qa !== q && (this.Qa = q)
},
show: function() {
this.Qa !== o && (this.Qa = o)
},
kh: function() {
return ! this.V ? q: !!this.Qa
},
Na: u("V"),
PN: function(a) {
var a = a || {},
b;
for (b in a) this.z[b] = a[b]
},
Xt: ba("zIndex"),
mj: function() {
this.z.mj = o
},
hW: function() {
this.z.mj = q
},
wo: ba("hg"),
Cp: function() {
this.hg = p
}
});
function lc() {
this.map = p;
this.wa = {};
this.Be = []
}
z.Ue(function(a) {
var b = new lc;
b.map = a;
a.wa = b.wa;
a.Be = b.Be;
a.addEventListener("load",
function(a) {
b.draw(a)
});
a.addEventListener("moveend",
function(a) {
b.draw(a)
});
x.da.la && 8 > x.da.la || "BackCompat" === document.compatMode ? a.addEventListener("zoomend",
function(a) {
setTimeout(function() {
b.draw(a)
},
20)
}) : a.addEventListener("zoomend",
function(a) {
b.draw(a)
});
a.addEventListener("maptypechange",
function(a) {
b.draw(a)
});
a.addEventListener("addoverlay",
function(a) {
a = a.target;
if (a instanceof fb) b.wa[a.ba] || (b.wa[a.ba] = a);
else {
for (var d = q,
e = 0,
f = b.Be.length; e < f; e++) if (b.Be[e] === a) {
d = o;
break
}
d || b.Be.push(a)
}
});
a.addEventListener("removeoverlay",
function(a) {
a = a.target;
if (a instanceof fb) delete b.wa[a.ba];
else for (var d = 0,
e = b.Be.length; d < e; d++) if (b.Be[d] === a) {
b.Be.splice(d, 1);
break
}
});
a.addEventListener("clearoverlays",
function() {
this.Wc();
for (var a in b.wa) b.wa[a].z.mj && (b.wa[a].remove(), delete b.wa[a]);
a = 0;
for (var d = b.Be.length; a < d; a++) b.Be[a].enableMassClear !== q && (b.Be[a].remove(), b.Be[a] = p, b.Be.splice(a, 1), a--, d--)
});
a.addEventListener("infowindowopen",
function() {
var a = this.Cb;
a && (x.D.U(a.yc), x.D.U(a.cc))
});
a.addEventListener("movestart",
function() {
this.hh() && this.hh().YI()
});
a.addEventListener("moveend",
function() {
this.hh() && this.hh().NI()
})
});
lc.prototype.draw = function(a) {
if (z.fq) {
var b = z.fq.Rs(this.map);
"canvas" === b.Mb && b.canvas && b.AQ(b.canvas.getContext("2d"))
}
for (var c in this.wa) this.wa[c].draw(a);
x.kc.Gb(this.Be,
function(a) {
a.draw()
});
this.map.R.ob && this.map.R.ob.ta();
z.fq && b.uF()
};
function oc(a) {
fb.call(this);
a = a || {};
this.z = {
strokeColor: a.strokeColor || "#3a6bdb",
nc: a.strokeWeight || 5,
rd: a.strokeOpacity || 0.65,
strokeStyle: a.strokeStyle || "solid",
mj: a.enableMassClear === q ? q: o,
vk: p,
um: p,
lf: a.enableEditing === o ? o: q,
SM: 5,
W_: q,
hf: a.enableClicking === q ? q: o,
ni: a.icons && 0 < a.icons.length ? a.icons: p
};
0 >= this.z.nc && (this.z.nc = 5);
if (0 > this.z.rd || 1 < this.z.rd) this.z.rd = 0.65;
if (0 > this.z.qg || 1 < this.z.qg) this.z.qg = 0.65;
"solid" != this.z.strokeStyle && "dashed" != this.z.strokeStyle && (this.z.strokeStyle = "solid");
this.V = p;
this.Nu = new eb(0, 0);
this.ef = [];
this.oc = [];
this.Ra = {}
}
x.lang.ua(oc, fb, "Graph");
oc.jx = function(a) {
var b = [];
if (!a) return b;
$a(a) && x.kc.Gb(a.split(";"),
function(a) {
a = a.split(",");
b.push(new H(a[0], a[1]))
});
"[object Array]" == Object.prototype.toString.apply(a) && 0 < a.length && (b = a);
return b
};
oc.PE = [0.09, 0.0050, 1.0E-4, 1.0E-5];
x.extend(oc.prototype, {
initialize: function(a) {
this.map = a;
return p
},
draw: s(),
Kr: function(a) {
this.ef.length = 0;
this.ia = oc.jx(a).slice(0);
this.Eh()
},
he: function(a) {
this.Kr(a)
},
Eh: function() {
if (this.ia) {
var a = this;
a.Nu = new eb;
x.kc.Gb(this.ia,
function(b) {
a.Nu.extend(b)
})
}
},
qe: u("ia"),
hn: function(a, b) {
b && this.ia[a] && (this.ef.length = 0, this.ia[a] = new H(b.lng, b.lat), this.Eh())
},
setStrokeColor: function(a) {
this.z.strokeColor = a
},
EX: function() {
return this.z.strokeColor
},
Rp: function(a) {
0 < a && (this.z.nc = a)
},
DL: function() {
return this.z.nc
},
Pp: function(a) {
a == j || (1 < a || 0 > a) || (this.z.rd = a)
},
FX: function() {
return this.z.rd
},
Qt: function(a) {
1 < a || 0 > a || (this.z.qg = a)
},
bX: function() {
return this.z.qg
},
Qp: function(a) {
"solid" != a && "dashed" != a || (this.z.strokeStyle = a)
},
CL: function() {
return this.z.strokeStyle
},
setFillColor: function(a) {
this.z.fillColor = a || ""
},
aX: function() {
return this.z.fillColor
},
Hd: u("Nu"),
remove: function() {
this.map && this.map.removeEventListener("onmousemove", this.kv);
fb.prototype.remove.call(this);
this.ef.length = 0
},
lf: function() {
if (! (2 > this.ia.length)) {
this.z.lf = o;
var a = this;
I.load("poly",
function() {
a.Sl()
},
o)
}
},
gW: function() {
this.z.lf = q;
var a = this;
I.load("poly",
function() {
a.mk()
},
o)
},
YW: function() {
return this.z.lf
}
});
function pc(a) {
fb.call(this);
this.V = this.map = p;
this.z = {
width: 0,
height: 0,
za: new N(0, 0),
opacity: 1,
background: "transparent",
Rx: 1,
wM: "#000",
zY: "solid",
point: p
};
this.PN(a);
this.point = this.z.point
}
x.lang.ua(pc, fb, "Division");
x.extend(pc.prototype, {
Hj: function() {
var a = this.z,
b = this.content,
c = ['<div class="BMap_Division" style="position:absolute;'];
c.push("width:" + a.width + "px;display:block;");
c.push("overflow:hidden;");
"none" != a.borderColor && c.push("border:" + a.Rx + "px " + a.zY + " " + a.wM + ";");
c.push("opacity:" + a.opacity + "; filter:(opacity=" + 100 * a.opacity + ")");
c.push("background:" + a.background + ";");
c.push('z-index:60;">');
c.push(b);
c.push("</div>");
this.V = yb(this.map.Rf().FE, c.join(""))
},
initialize: function(a) {
this.map = a;
this.Hj();
this.V && x.M(this.V, G() ? "touchstart": "mousedown",
function(a) {
na(a)
});
return this.V
},
draw: function() {
var a = this.map.Te(this.z.point);
this.z.za = new N( - Math.round(this.z.width / 2) - Math.round(this.z.Rx), -Math.round(this.z.height / 2) - Math.round(this.z.Rx));
this.V.style.left = a.x + this.z.za.width + "px";
this.V.style.top = a.y + this.z.za.height + "px"
},
ha: function() {
return this.z.point
},
V0: function() {
return this.map.bc(this.ha())
},
ta: function(a) {
this.z.point = a;
this.draw()
},
PZ: function(a, b) {
this.z.width = Math.round(a);
this.z.height = Math.round(b);
this.V && (this.V.style.width = this.z.width + "px", this.V.style.height = this.z.height + "px", this.draw())
}
});
function qc(a, b, c) {
a && b && (this.imageUrl = a, this.size = b, a = new N(Math.floor(b.width / 2), Math.floor(b.height / 2)), c = c || {},
a = c.anchor || a, b = c.imageOffset || new N(0, 0), this.imageSize = c.imageSize, this.anchor = a, this.imageOffset = b, this.infoWindowAnchor = c.infoWindowAnchor || this.anchor, this.printImageUrl = c.printImageUrl || "")
}
x.extend(qc.prototype, {
QN: function(a) {
a && (this.imageUrl = a)
},
e_: function(a) {
a && (this.printImageUrl = a)
},
ye: function(a) {
a && (this.size = new N(a.width, a.height))
},
qc: function(a) {
a && (this.anchor = new N(a.width, a.height))
},
Rt: function(a) {
a && (this.imageOffset = new N(a.width, a.height))
},
VZ: function(a) {
a && (this.infoWindowAnchor = new N(a.width, a.height))
},
SZ: function(a) {
a && (this.imageSize = new N(a.width, a.height))
},
toString: ca("Icon")
});
function rc(a, b) {
if (a) {
b = b || {};
this.style = {
anchor: b.anchor || new N(0, 0),
fillColor: b.fillColor || "#000",
qg: b.fillOpacity || 0,
scale: b.scale || 1,
rotation: b.rotation || 0,
strokeColor: b.strokeColor || "#000",
rd: b.strokeOpacity || 1,
nc: b.strokeWeight
};
this.Mb = "number" === typeof a ? a: "UserDefined";
this.Hi = this.style.anchor;
this.qr = new N(0, 0);
this.anchor = p;
this.jB = a;
var c = this;
I.load("symbol",
function() {
c.Kn()
},
o)
}
}
x.extend(rc.prototype, {
setPath: ba("jB"),
setAnchor: function(a) {
this.Hi = this.style.anchor = a
},
setRotation: function(a) {
this.style.rotation = a
},
setScale: function(a) {
this.style.scale = a
},
setStrokeWeight: function(a) {
this.style.nc = a
},
setStrokeColor: function(a) {
a = x.cs.qC(a, this.style.rd);
this.style.strokeColor = a
},
setStrokeOpacity: function(a) {
this.style.rd = a
},
setFillOpacity: function(a) {
this.style.qg = a
},
setFillColor: function(a) {
this.style.fillColor = a
}
});
function sc(a, b, c, d) {
a && (this.Dv = {},
this.aL = d ? !!d: q, this.Uc = [], this.w_ = a instanceof rc ? a: p, this.GI = b === j ? o: !!(b.indexOf("%") + 1), this.Zj = isNaN(parseFloat(b)) ? 1 : this.GI ? parseFloat(b) / 100 : parseFloat(b), this.HI = !!(c.indexOf("%") + 1), this.repeat = c != j ? this.HI ? parseFloat(c) / 100 : parseFloat(c) : 0)
};
function tc(a, b) {
x.lang.Ca.call(this);
this.content = a;
this.map = p;
b = b || {};
this.z = {
width: b.width || 0,
height: b.height || 0,
maxWidth: b.maxWidth || 730,
za: b.offset || new N(0, 0),
title: b.title || "",
GE: b.maxContent || "",
ah: b.enableMaximize || q,
Fs: b.enableAutoPan === q ? q: o,
dD: b.enableCloseOnClick === q ? q: o,
margin: b.margin || [10, 10, 40, 10],
lC: b.collisions || [[10, 10], [10, 10], [10, 10], [10, 10]],
ZX: q,
UY: b.onClosing || ca(o),
SK: q,
iD: b.enableParano === o ? o: q,
message: b.message,
kD: b.enableSearchTool === o ? o: q,
Cx: b.headerContent || "",
eD: b.enableContentScroll || q
};
if (0 != this.z.width && (220 > this.z.width && (this.z.width = 220), 730 < this.z.width)) this.z.width = 730;
if (0 != this.z.height && (60 > this.z.height && (this.z.height = 60), 650 < this.z.height)) this.z.height = 650;
if (0 != this.z.maxWidth && (220 > this.z.maxWidth && (this.z.maxWidth = 220), 730 < this.z.maxWidth)) this.z.maxWidth = 730;
this.be = q;
this.Di = E.qa;
this.ab = p;
var c = this;
I.load("infowindow",
function() {
c.yb()
})
}
x.lang.ua(tc, x.lang.Ca, "InfoWindow");
x.extend(tc.prototype, {
setWidth: function(a) { ! a && 0 != a || (isNaN(a) || 0 > a) || (0 != a && (220 > a && (a = 220), 730 < a && (a = 730)), this.z.width = a)
},
setHeight: function(a) { ! a && 0 != a || (isNaN(a) || 0 > a) || (0 != a && (60 > a && (a = 60), 650 < a && (a = 650)), this.z.height = a)
},
TN: function(a) { ! a && 0 != a || (isNaN(a) || 0 > a) || (0 != a && (220 > a && (a = 220), 730 < a && (a = 730)), this.z.maxWidth = a)
},
Cc: function(a) {
this.z.title = a
},
getTitle: function() {
return this.z.title
},
ad: ba("content"),
tk: u("content"),
Tt: function(a) {
this.z.GE = a + ""
},
ge: s(),
Fs: function() {
this.z.Fs = o
},
disableAutoPan: function() {
this.z.Fs = q
},
enableCloseOnClick: function() {
this.z.dD = o
},
disableCloseOnClick: function() {
this.z.dD = q
},
ah: function() {
this.z.ah = o
},
Ww: function() {
this.z.ah = q
},
show: function() {
this.Qa = o
},
U: function() {
this.Qa = q
},
close: function() {
this.U()
},
Vx: function() {
this.be = o
},
restore: function() {
this.be = q
},
kh: function() {
return this.Wa()
},
Wa: ca(q),
ha: function() {
if (this.ab && this.ab.ha) return this.ab.ha()
},
Qf: function() {
return this.z.za
}
});
La.prototype.Nb = function(a, b) {
if (a instanceof tc && b instanceof H) {
var c = this.R;
c.Nm ? c.Nm.ta(b) : (c.Nm = new T(b, {
icon: new qc(E.qa + "blank.gif", {
width: 1,
height: 1
}),
offset: new N(0, 0),
clickable: q
}), c.Nm.DR = 1);
this.Ja(c.Nm);
c.Nm.Nb(a)
}
};
La.prototype.Wc = function() {
var a = this.R.ob || this.R.ml;
a && a.ab && a.ab.Wc()
};
fb.prototype.Nb = function(a) {
this.map && (this.map.Wc(), a.Qa = o, this.map.R.ml = a, a.ab = this, x.lang.Ca.call(a, a.ba))
};
fb.prototype.Wc = function() {
this.map && this.map.R.ml && (this.map.R.ml.Qa = q, x.lang.Tw(this.map.R.ml.ba), this.map.R.ml = p)
};
function uc(a, b) {
fb.call(this);
this.content = a;
this.V = this.map = p;
b = b || {};
this.z = {
width: 0,
za: b.offset || new N(0, 0),
Up: {
backgroundColor: "#fff",
border: "1px solid #f00",
padding: "1px",
whiteSpace: "nowrap",
font: "12px " + E.fontFamily,
zIndex: "80",
MozUserSelect: "none"
},
position: b.position || p,
mj: b.enableMassClear === q ? q: o,
hf: o
};
0 > this.z.width && (this.z.width = 0);
Eb(b.enableClicking) && (this.z.hf = b.enableClicking);
this.point = this.z.position;
var c = this;
I.load("marker",
function() {
c.yb()
})
}
x.lang.ua(uc, fb, "Label");
x.extend(uc.prototype, {
ha: function() {
return this.sv ? this.sv.ha() : this.point
},
ta: function(a) {
a instanceof H && !this.px() && (this.point = this.z.position = new H(a.lng, a.lat))
},
ad: ba("content"),
tF: function(a) {
0 <= a && 1 >= a && (this.z.opacity = a)
},
Ve: function(a) {
a instanceof N && (this.z.za = new N(a.width, a.height))
},
Qf: function() {
return this.z.za
},
Ld: function(a) {
a = a || {};
this.z.Up = x.extend(this.z.Up, a)
},
xi: function(a) {
return this.Ld(a)
},
Cc: function(a) {
this.z.title = a || ""
},
getTitle: function() {
return this.z.title
},
SN: function(a) {
this.point = (this.sv = a) ? this.z.position = a.ha() : this.z.position = p
},
px: function() {
return this.sv || p
},
tk: u("content")
});
function vc(a, b) {
if (0 !== arguments.length) {
fb.apply(this, arguments);
b = b || {};
this.z = {
hb: a,
opacity: b.opacity || 1,
Gm: b.Gm || "",
vs: b.displayOnMinLevel || 1,
mj: b.enableMassClear === q ? q: o,
ss: b.displayOnMaxLevel || 19,
q_: b.stretch || q
};
var c = this;
I.load("groundoverlay",
function() {
c.yb()
})
}
}
x.lang.ua(vc, fb, "GroundOverlay");
x.extend(vc.prototype, {
setBounds: function(a) {
this.z.hb = a
},
getBounds: function() {
return this.z.hb
},
setOpacity: function(a) {
this.z.opacity = a
},
getOpacity: function() {
return this.z.opacity
},
setImageURL: function(a) {
this.z.Gm = a
},
getImageURL: function() {
return this.z.Gm
},
setDisplayOnMinLevel: function(a) {
this.z.vs = a
},
getDisplayOnMinLevel: function() {
return this.z.vs
},
setDisplayOnMaxLevel: function(a) {
this.z.ss = a
},
getDisplayOnMaxLevel: function() {
return this.z.ss
}
});
var wc = 3,
xc = 4;
function yc() {
var a = document.createElement("canvas");
return ! (!a.getContext || !a.getContext("2d"))
}
function zc(a, b) {
var c = this;
yc() && (a === j && aa(Error("\u6ca1\u6709\u4f20\u5165points\u6570\u636e")), "[object Array]" !== Object.prototype.toString.call(a) && aa(Error("points\u6570\u636e\u4e0d\u662f\u6570\u7ec4")), b = b || {},
fb.apply(c, arguments), c.ea = {
ia: a
},
c.z = {
shape: b.shape || wc,
size: b.size || xc,
color: b.color || "#fa937e",
mj: o
},
this.gB = [], this.le = [], I.load("pointcollection",
function() {
for (var a = 0,
b; b = c.gB[a]; a++) c[b.method].apply(c, b.arguments);
for (a = 0; b = c.le[a]; a++) c[b.method].apply(c, b.arguments)
}))
}
x.lang.ua(zc, fb, "PointCollection");
x.extend(zc.prototype, {
initialize: function(a) {
this.gB && this.gB.push({
method: "initialize",
arguments: arguments
})
},
setPoints: function(a) {
this.le && this.le.push({
method: "setPoints",
arguments: arguments
})
},
setStyles: function(a) {
this.le && this.le.push({
method: "setStyles",
arguments: arguments
})
},
clear: function() {
this.le && this.le.push({
method: "clear",
arguments: arguments
})
},
remove: function() {
this.le && this.le.push({
method: "remove",
arguments: arguments
})
}
});
var Ac = new qc(E.qa + "marker_red_sprite.png", new N(19, 25), {
anchor: new N(10, 25),
infoWindowAnchor: new N(10, 0)
}),
Bc = new qc(E.qa + "marker_red_sprite.png", new N(20, 11), {
anchor: new N(6, 11),
imageOffset: new N( - 19, -13)
});
function T(a, b) {
fb.call(this);
b = b || {};
this.point = a;
this.vq = this.map = p;
this.z = {
za: b.offset || new N(0, 0),
uj: b.icon || Ac,
Mk: Bc,
title: b.title || "",
label: p,
XJ: b.baseZIndex || 0,
hf: o,
O4: q,
sE: q,
mj: b.enableMassClear === q ? q: o,
Yb: q,
zN: b.raiseOnDrag === o ? o: q,
GN: q,
Fd: b.draggingCursor || E.Fd,
rotation: b.rotation || 0
};
b.icon && !b.shadow && (this.z.Mk = p);
b.enableDragging && (this.z.Yb = b.enableDragging);
Eb(b.enableClicking) && (this.z.hf = b.enableClicking);
var c = this;
I.load("marker",
function() {
c.yb()
})
}
T.Iu = kc.Am( - 90) + 1E6;
T.lG = T.Iu + 1E6;
x.lang.ua(T, fb, "Marker");
x.extend(T.prototype, {
Ub: function(a) {
if (a instanceof qc || a instanceof rc) this.z.uj = a
},
Yo: function() {
return this.z.uj
},
Ay: function(a) {
a instanceof qc && (this.z.Mk = a)
},
getShadow: function() {
return this.z.Mk
},
fn: function(a) {
this.z.label = a || p
},
LD: function() {
return this.z.label
},
Yb: function() {
this.z.Yb = o
},
JC: function() {
this.z.Yb = q
},
ha: u("point"),
ta: function(a) {
a instanceof H && (this.point = new H(a.lng, a.lat))
},
yi: function(a, b) {
this.z.sE = !!a;
a && (this.HG = b || 0)
},
Cc: function(a) {
this.z.title = a + ""
},
getTitle: function() {
return this.z.title
},
Ve: function(a) {
a instanceof N && (this.z.za = a)
},
Qf: function() {
return this.z.za
},
dn: ba("vq"),
Op: function(a) {
this.z.rotation = a
},
AL: function() {
return this.z.rotation
}
});
function Cc(a, b) {
oc.call(this, b);
b = b || {};
this.z.qg = b.fillOpacity ? b.fillOpacity: 0.65;
this.z.fillColor = "" == b.fillColor ? "": b.fillColor ? b.fillColor: "#fff";
this.he(a);
var c = this;
I.load("poly",
function() {
c.yb()
})
}
x.lang.ua(Cc, oc, "Polygon");
x.extend(Cc.prototype, {
he: function(a, b) {
this.so = oc.jx(a).slice(0);
var c = oc.jx(a).slice(0);
1 < c.length && c.push(new H(c[0].lng, c[0].lat));
oc.prototype.he.call(this, c, b)
},
hn: function(a, b) {
this.so[a] && (this.so[a] = new H(b.lng, b.lat), this.ia[a] = new H(b.lng, b.lat), 0 == a && !this.ia[0].nb(this.ia[this.ia.length - 1]) && (this.ia[this.ia.length - 1] = new H(b.lng, b.lat)), this.Eh())
},
qe: function() {
var a = this.so;
0 == a.length && (a = this.ia);
return a
}
});
function Dc(a, b) {
oc.call(this, b);
this.Kr(a);
var c = this;
I.load("poly",
function() {
c.yb()
})
}
x.lang.ua(Dc, oc, "Polyline");
function Ec(a, b, c) {
this.point = a;
this.xa = Math.abs(b);
Cc.call(this, [], c)
}
Ec.PE = [0.01, 1.0E-4, 1.0E-5, 4.0E-6];
x.lang.ua(Ec, Cc, "Circle");
x.extend(Ec.prototype, {
initialize: function(a) {
this.map = a;
this.ia = this.gv(this.point, this.xa);
this.Eh();
return p
},
Ka: u("point"),
Wf: function(a) {
a && (this.point = a)
},
yL: u("xa"),
vf: function(a) {
this.xa = Math.abs(a)
},
gv: function(a, b) {
if (!a || !b || !this.map) return [];
for (var c = [], d = b / 6378800, e = Math.PI / 180 * a.lat, f = Math.PI / 180 * a.lng, g = 0; 360 > g; g += 9) {
var i = Math.PI / 180 * g,
k = Math.asin(Math.sin(e) * Math.cos(d) + Math.cos(e) * Math.sin(d) * Math.cos(i)),
i = new H(((f - Math.atan2(Math.sin(i) * Math.sin(d) * Math.cos(e), Math.cos(d) - Math.sin(e) * Math.sin(k)) + Math.PI) % (2 * Math.PI) - Math.PI) * (180 / Math.PI), k * (180 / Math.PI));
c.push(i)
}
d = c[0];
c.push(new H(d.lng, d.lat));
return c
}
});
var Fc = {};
function Gc(a) {
this.map = a;
this.Mm = [];
this.Xf = [];
this.Cg = [];
this.mV = 300;
this.ZE = 0;
this.vg = {};
this.dj = {};
this.qh = 0;
this.mE = o;
this.xK = {};
this.bo = this.Nn(1);
this.ld = this.Nn(2);
this.wl = this.Nn(3);
a.platform.appendChild(this.bo);
a.platform.appendChild(this.ld);
a.platform.appendChild(this.wl);
var b = 256 * Math.pow(2, 15),
c = 3 * b,
a = R.zb(new H(180, 0)).lng,
c = c - a,
b = -3 * b,
d = R.zb(new H( - 180, 0)).lng;
this.jI = a;
this.kI = d;
this.NA = c + (d - b);
this.lI = a - d
}
z.Ue(function(a) {
var b = new Gc(a);
b.ra();
a.cb = b
});
x.extend(Gc.prototype, {
ra: function() {
var a = this,
b = a.map;
b.addEventListener("loadcode",
function() {
a.Sx()
});
b.addEventListener("addtilelayer",
function(b) {
a.Wg(b)
});
b.addEventListener("removetilelayer",
function(b) {
a.xh(b)
});
b.addEventListener("setmaptype",
function(b) {
a.Ag(b)
});
b.addEventListener("zoomstartcode",
function(b) {
a.Jc(b)
});
b.addEventListener("setcustomstyles",
function(b) {
a.St(b.target);
a.Uf(o)
})
},
Sx: function() {
var a = this;
if (x.da.la) try {
document.execCommand("BackgroundImageCache", q, o)
} catch(b) {}
this.loaded || a.Ix();
a.Uf();
this.loaded || (this.loaded = o, I.load("tile",
function() {
a.WP()
}))
},
Ix: function() {
for (var a = this.map.pa().lr, b = 0; b < a.length; b++) {
var c = new Hc;
x.extend(c, a[b]);
this.Mm.push(c);
c.ra(this.map, this.bo)
}
this.St()
},
Nn: function(a) {
var b = M("div");
b.style.position = "absolute";
b.style.overflow = "visible";
b.style.left = b.style.top = "0";
b.style.zIndex = a;
return b
},
yf: function() {
this.qh--;
var a = this;
this.mE && (this.map.dispatchEvent(new O("onfirsttileloaded")), this.mE = q);
0 == this.qh && (this.Li && (clearTimeout(this.Li), this.Li = p), this.Li = setTimeout(function() {
if (a.qh == 0) {
a.map.dispatchEvent(new O("ontilesloaded"));
a.mE = o
}
a.Li = p
},
80))
},
WD: function(a, b) {
return "TILE-" + b.ba + "-" + a[0] + "-" + a[1] + "-" + a[2]
},
Fx: function(a) {
var b = a.Hb;
b && xb(b) && b.parentNode.removeChild(b);
delete this.vg[a.name];
a.loaded || (Ic(a), a.Hb = p, a.Pm = p)
},
zm: function(a, b, c) {
var d = this.map,
e = d.pa(),
f = d.Oa,
g = d.mc,
i = e.Bc(f),
k = this.nL(),
l = k[0],
m = k[1],
n = k[2],
t = k[3],
v = k[4],
c = "undefined" != typeof c ? c: 0,
e = e.k.Pb,
k = d.ba.replace(/^TANGRAM_/, "");
for (this.Qc ? this.Qc.length = 0 : this.Qc = []; l < n; l++) for (var w = m; w < t; w++) {
var y = l,
C = w;
this.Qc.push([y, C]);
y = k + "_" + b + "_" + y + "_" + C + "_" + f;
this.xK[y] = y
}
this.Qc.sort(function(a) {
return function(b, c) {
return 0.4 * Math.abs(b[0] - a[0]) + 0.6 * Math.abs(b[1] - a[1]) - (0.4 * Math.abs(c[0] - a[0]) + 0.6 * Math.abs(c[1] - a[1]))
}
} ([v[0] - 1, v[1] - 1]));
g = [Math.round( - g.lng / i), Math.round(g.lat / i)];
l = -d.offsetY + d.height / 2;
a.style.left = -d.offsetX + d.width / 2 + "px";
a.style.top = l + "px";
this.Me ? this.Me.length = 0 : this.Me = [];
l = 0;
for (d = a.childNodes.length; l < d; l++) w = a.childNodes[l],
w.hr = q,
this.Me.push(w);
if (l = this.Sm) for (var A in l) delete l[A];
else this.Sm = {};
this.Ne ? this.Ne.length = 0 : this.Ne = [];
l = 0;
for (d = this.Qc.length; l < d; l++) {
A = this.Qc[l][0];
i = this.Qc[l][1];
w = 0;
for (m = this.Me.length; w < m; w++) if (n = this.Me[w], n.id == k + "_" + b + "_" + A + "_" + i + "_" + f) {
n.hr = o;
this.Sm[n.id] = n;
break
}
}
l = 0;
for (d = this.Me.length; l < d; l++) n = this.Me[l],
n.hr || this.Ne.push(n);
this.nn = [];
w = (e + c) * this.map.K.devicePixelRatio;
l = 0;
for (d = this.Qc.length; l < d; l++) A = this.Qc[l][0],
i = this.Qc[l][1],
t = A * e + g[0] - c / 2,
v = ( - 1 - i) * e + g[1] - c / 2,
y = k + "_" + b + "_" + A + "_" + i + "_" + f,
m = this.Sm[y],
n = p,
m ? (n = m.style, n.left = t + "px", n.top = v + "px", m.Ze || this.nn.push([A, i, m])) : (0 < this.Ne.length ? (m = this.Ne.shift(), m.getContext("2d").clearRect( - c / 2, -c / 2, w, w), n = m.style) : (m = document.createElement("canvas"), n = m.style, n.position = "absolute", n.width = e + c + "px", n.height = e + c + "px", this.Nx() && (n.WebkitTransform = "scale(1.001)"), m.setAttribute("width", w), m.setAttribute("height", w), a.appendChild(m)), m.id = y, n.left = t + "px", n.top = v + "px", -1 < y.indexOf("bg") && (t = "#F3F1EC", this.map.K.Bo && (t = this.map.K.Bo), n.background = t ? t: ""), this.nn.push([A, i, m])),
m.style.visibility = "";
l = 0;
for (d = this.Ne.length; l < d; l++) this.Ne[l].style.visibility = "hidden";
return this.nn
},
Nx: function() {
return /M040/i.test(navigator.userAgent)
},
nL: function() {
var a = this.map,
b = a.pa(),
c = b.aE(a.Oa),
d = a.mc,
e = Math.ceil(d.lng / c),
f = Math.ceil(d.lat / c),
b = b.k.Pb,
c = [e, f, (d.lng - e * c) / c * b, (d.lat - f * c) / c * b];
return [c[0] - Math.ceil((a.width / 2 - c[2]) / b), c[1] - Math.ceil((a.height / 2 - c[3]) / b), c[0] + Math.ceil((a.width / 2 + c[2]) / b), c[1] + Math.ceil((a.height / 2 + c[3]) / b), c]
},
l_: function(a, b, c, d) {
var e = this;
e.C1 = b;
var f = this.map.pa(),
g = e.WD(a, c),
i = f.k.Pb,
b = [a[0] * i + b[0], ( - 1 - a[1]) * i + b[1]],
k = this.vg[g];
if (this.map.pa() !== Za && this.map.pa() !== Sa) {
var l = this.Aw(a[0], a[2]).offsetX;
b[0] += l;
b.Z0 = l
}
k && k.Hb ? (vb(k.Hb, b), d && (d = new Q(a[0], a[1]), f = this.map.K.ue ? this.map.K.ue.style: "normal", d = c.getTilesUrl(d, a[2], f), k.loaded = q, Jc(k, d)), k.loaded ? this.yf() : Kc(k,
function() {
e.yf()
})) : (k = this.dj[g]) && k.Hb ? (c.Qb.insertBefore(k.Hb, c.Qb.lastChild), this.vg[g] = k, vb(k.Hb, b), d && (d = new Q(a[0], a[1]), f = this.map.K.ue ? this.map.K.ue.style: "normal", d = c.getTilesUrl(d, a[2], f), k.loaded = q, Jc(k, d)), k.loaded ? this.yf() : Kc(k,
function() {
e.yf()
})) : (k = i * Math.pow(2, f.sm() - a[2]), new H(a[0] * k, a[1] * k), d = new Q(a[0], a[1]), f = this.map.K.ue ? this.map.K.ue.style: "normal", d = c.getTilesUrl(d, a[2], f), k = new Lc(this, d, b, a, c), Kc(k,
function() {
e.yf()
}), k.ao(), this.vg[g] = k)
},
yf: function() {
this.qh--;
var a = this;
0 == this.qh && (this.Li && (clearTimeout(this.Li), this.Li = p), this.Li = setTimeout(function() {
if (a.qh == 0) {
a.map.dispatchEvent(new O("ontilesloaded"));
if (ua) {
if (ra && sa && ta) {
var b = ab(),
c = a.map.Bb();
setTimeout(function() {
Ra(5030, {
load_script_time: sa - ra,
load_tiles_time: b - ta,
map_width: c.width,
map_height: c.height,
map_size: c.width * c.height
})
},
1E4);
z.Dn("cus.fire", "time", {
z_imgfirstloaded: b - ta
})
}
ua = q
}
}
a.Li = p
},
80))
},
WD: function(a, b) {
return this.map.pa() === Pa ? "TILE-" + b.ba + "-" + this.map.Fw + "-" + a[0] + "-" + a[1] + "-" + a[2] : "TILE-" + b.ba + "-" + a[0] + "-" + a[1] + "-" + a[2]
},
Fx: function(a) {
var b = a.Hb;
b && (Mc(b), xb(b) && b.parentNode.removeChild(b));
delete this.vg[a.name];
a.loaded || (Mc(b), Ic(a), a.Hb = p, a.Pm = p)
},
Aw: function(a, b) {
for (var c = 0,
d = 6 * Math.pow(2, b - 3), e = d / 2 - 1, f = -d / 2; a > e;) a -= d,
c -= this.NA;
for (; a < f;) a += d,
c += this.NA;
c = Math.round(c / Math.pow(2, 18 - b));
return {
offsetX: c,
bs: a
}
},
oV: function(a) {
for (var b = a.lng; b > this.jI;) b -= this.lI;
for (; b < this.kI;) b += this.lI;
a.lng = b;
return a
},
pV: function(a, b) {
for (var c = 256 * Math.pow(2, 18 - b), d = Math.floor(this.jI / c), e = Math.floor(this.kI / c), c = Math.floor(this.NA / c), f = [], g = 0; g < a.length; g++) {
var i = a[g],
k = i[0],
i = i[1];
if (k >= d) {
var k = k + c,
l = "id_" + k + "_" + i + "_" + b;
a[l] || (a[l] = o, f.push([k, i]))
} else k <= e && (k -= c, l = "id_" + k + "_" + i + "_" + b, a[l] || (a[l] = o, f.push([k, i])))
}
for (g = 0; g < f.length; g++) a.push(f[g]);
return a
},
Uf: function(a) {
var b = this;
if (b.map.pa() == Pa) I.load("coordtrans",
function() {
b.map.Wb || (b.map.Wb = Pa.sk(b.map.Yg), b.map.Fw = Pa.lL(b.map.Wb));
b.nI()
},
o);
else {
if (a && a) for (var c in this.dj) delete this.dj[c];
b.nI(a)
}
},
nI: function(a) {
var b = this.Mm.concat(this.Xf),
c = b.length,
d = this.map,
e = d.pa(),
f = d.mc;
this.map.pa() !== Za && this.map.pa() !== Sa && (f = this.oV(f));
for (var g = 0; g < c; g++) {
var i = b[g];
if (i.gc && d.Oa < i.gc) break;
if (i.yw) {
var k = this.Qb = i.Qb;
if (a) {
var l = k;
if (l && l.childNodes) for (var m = l.childNodes.length,
n = m - 1; 0 <= n; n--) m = l.childNodes[n],
l.removeChild(m),
m = p
}
if (this.map.Vb()) {
this.ld.style.display = "block";
k.style.display = "none";
this.map.dispatchEvent(new O("vectorchanged"), {
isvector: o
});
continue
} else k.style.display = "block",
this.ld.style.display = "none",
this.map.dispatchEvent(new O("vectorchanged"), {
isvector: q
})
}
if (!i.aI && !(i.pp && !this.map.Vb() || i.kM && this.map.Vb())) {
d = this.map;
e = d.pa();
k = e.dp();
m = d.Oa;
f = d.mc;
e == Pa && f.nb(new H(0, 0)) && (f = d.mc = k.Lm(d.gf, d.Wb));
var t = e.Bc(m),
k = e.aE(m),
l = Math.ceil(f.lng / k),
v = Math.ceil(f.lat / k),
w = e.k.Pb,
k = [l, v, (f.lng - l * k) / k * w, (f.lat - v * k) / k * w],
n = k[0] - Math.ceil((d.width / 2 - k[2]) / w),
l = k[1] - Math.ceil((d.height / 2 - k[3]) / w),
v = k[0] + Math.ceil((d.width / 2 + k[2]) / w),
y = 0;
e === Pa && 15 == d.fa() && (y = 1);
e = k[1] + Math.ceil((d.height / 2 + k[3]) / w) + y;
this.SJ = new H(f.lng, f.lat);
var C = this.vg,
w = -this.SJ.lng / t,
y = this.SJ.lat / t,
t = [Math.ceil(w), Math.ceil(y)],
f = d.fa(),
A;
for (A in C) {
var D = C[A],
B = D.info; (B[2] != f || B[2] == f && (n > B[0] || v <= B[0] || l > B[1] || e <= B[1])) && this.Fx(D)
}
C = -d.offsetX + d.width / 2;
D = -d.offsetY + d.height / 2;
i.Qb && (i.Qb.style.left = Math.ceil(w + C) - t[0] + "px", i.Qb.style.top = Math.ceil(y + D) - t[1] + "px", i.Qb.style.WebkitTransform = "translate3d(0,0,0)");
w = [];
for (d.KB = []; n < v; n++) for (y = l; y < e; y++) w.push([n, y]),
d.KB.push({
x: n,
y: y
});
this.map.pa() !== Za && this.map.pa() !== Sa && (w = this.pV(w, m));
w.sort(function(a) {
return function(b, c) {
return 0.4 * Math.abs(b[0] - a[0]) + 0.6 * Math.abs(b[1] - a[1]) - (0.4 * Math.abs(c[0] - a[0]) + 0.6 * Math.abs(c[1] - a[1]))
}
} ([k[0] - 1, k[1] - 1]));
m = w.length;
this.qh += m;
for (n = 0; n < m; n++) this.l_([w[n][0], w[n][1], f], t, i, a)
}
}
},
Wg: function(a) {
var b = this,
c = a.target,
a = b.map.Vb();
if (c instanceof cb) a && !c.Hm && (c.ra(this.map, this.ld), c.Hm = o);
else if (c.Ch && this.map.Wg(c.Ch), c.pp) {
for (a = 0; a < b.Cg.length; a++) if (b.Cg[a] == c) return;
I.load("vector",
function() {
c.ra(b.map, b.ld);
b.Cg.push(c)
},
o)
} else {
for (a = 0; a < b.Xf.length; a++) if (b.Xf[a] == c) return;
c.ra(this.map, this.wl);
b.Xf.push(c)
}
},
xh: function(a) {
var a = a.target,
b = this.map.Vb();
if (a instanceof cb) b && a.Hm && (a.remove(), a.Hm = q);
else {
a.Ch && this.map.xh(a.Ch);
if (a.pp) for (var b = 0,
c = this.Cg.length; b < c; b++) a == this.Cg[b] && this.Cg.splice(b, 1);
else {
b = 0;
for (c = this.Xf.length; b < c; b++) a == this.Xf[b] && this.Xf.splice(b, 1)
}
a.remove()
}
},
Ag: function() {
for (var a = this.Mm,
b = 0,
c = a.length; b < c; b++) a[b].remove();
delete this.Qb;
this.Mm = [];
this.dj = this.vg = {};
this.Ix();
this.Uf()
},
Jc: function() {
var a = this;
a.td && x.D.U(a.td);
setTimeout(function() {
a.Uf();
a.map.dispatchEvent(new O("onzoomend"))
},
10)
},
E4: s(),
St: function(a) {
var b = this.map.pa();
if (!this.map.Vb() && (a ? this.map.K.t_ = a: a = this.map.K.t_, a)) for (var c = p,
c = "2" == z.Oy ? [z.url.proto + z.url.domain.main_domain_cdn.other[0] + "/"] : [z.url.proto + z.url.domain.main_domain_cdn.baidu[0] + "/", z.url.proto + z.url.domain.main_domain_cdn.baidu[1] + "/", z.url.proto + z.url.domain.main_domain_cdn.baidu[2] + "/"], d = 0, e; e = this.Mm[d]; d++) if (e.g_ == o) {
b.k.$b = 18;
e.getTilesUrl = function(b, d) {
var e = b.x,
e = this.map.cb.Aw(e, d).bs,
k = b.y,
l = Rb("normal"),
m = 1;
this.map.Gx() && (m = 2);
l = "customimage/tile?&x=" + e + "&y=" + k + "&z=" + d + "&udt=" + l + "&scale=" + m + "&ak=" + qa;
l = a.styleStr ? l + ("&styles=" + encodeURIComponent(a.styleStr)) : l + ("&customid=" + a.style);
return c[Math.abs(e + k) % c.length] + l
};
break
}
}
});
function Lc(a, b, c, d, e) {
this.Pm = a;
this.position = c;
this.Su = [];
this.name = a.WD(d, e);
this.info = d;
this.qJ = e.ot();
d = M("img");
wb(d);
d.eL = q;
var f = d.style,
a = a.map.pa();
f.position = "absolute";
f.border = "none";
f.width = a.k.Pb + "px";
f.height = a.k.Pb + "px";
f.left = c[0] + "px";
f.top = c[1] + "px";
f.maxWidth = "none";
this.Hb = d;
this.src = b;
Oc && (this.Hb.style.opacity = 0);
var g = this;
this.Hb.onload = function() {
z.BY.IQ();
g.loaded = o;
if (g.Pm) {
var a = g.Pm,
b = a.dj;
if (!b[g.name]) {
a.ZE++;
b[g.name] = g
}
if (g.Hb && !xb(g.Hb) && e.Qb) {
e.Qb.appendChild(g.Hb);
if (x.da.la <= 6 && x.da.la > 0 && g.qJ) g.Hb.style.cssText = g.Hb.style.cssText + (';filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + g.src + '",sizingMethod=scale);')
}
var c = a.ZE - a.mV,
d;
for (d in b) {
if (c <= 0) break;
if (!a.vg[d]) {
b[d].Pm = p;
var f = b[d].Hb;
if (f && f.parentNode) {
f.parentNode.removeChild(f);
Mc(f)
}
f = p;
b[d].Hb = p;
delete b[d];
a.ZE--;
c--
}
}
Oc && new rb({
Gc: 20,
duration: 200,
va: function(a) {
if (g.Hb && g.Hb.style) g.Hb.style.opacity = a * 1
},
finish: function() {
g.Hb && g.Hb.style && delete g.Hb.style.opacity
}
});
Ic(g)
}
};
this.Hb.onerror = function() {
Ic(g);
if (g.Pm) {
var a = g.Pm.map.pa();
if (a.k.lD) {
g.error = o;
g.Hb.src = a.k.lD;
g.Hb && !xb(g.Hb) && e.Qb.appendChild(g.Hb)
}
}
};
d = p
}
function Kc(a, b) {
a.Su.push(b)
}
Lc.prototype.ao = function() {
this.Hb.src = 0 < x.da.la && 6 >= x.da.la && this.qJ ? E.qa + "blank.gif": "" !== this.src && this.Hb.src == this.src ? this.src + "&t = " + Date.now() : this.src
};
function Ic(a) {
for (var b = 0; b < a.Su.length; b++) a.Su[b]();
a.Su.length = 0
}
function Mc(a) {
if (a) {
a.onload = a.onerror = p;
var b = a.attributes,
c, d, e;
if (b) {
d = b.length;
for (c = 0; c < d; c += 1) e = b[c].name,
Ya(a[e]) && (a[e] = p)
}
if (b = a.children) {
d = b.length;
for (c = 0; c < d; c += 1) Mc(a.children[c])
}
}
}
function Jc(a, b) {
a.src = b;
a.ao()
}
var Oc = !x.da.la || 8 < x.da.la;
function Hc(a) {
this.rh = a || {};
this.JV = this.rh.copyright || p;
this.S_ = this.rh.transparentPng || q;
this.yw = this.rh.baseLayer || q;
this.zIndex = this.rh.zIndex || 0;
this.ba = Hc.wS++
}
Hc.wS = 0;
x.lang.ua(Hc, x.lang.Ca, "TileLayer");
x.extend(Hc.prototype, {
ra: function(a, b) {
this.yw && (this.zIndex = -100);
this.map = a;
if (!this.Qb) {
var c = M("div"),
d = c.style;
d.position = "absolute";
d.overflow = "visible";
d.zIndex = this.zIndex;
d.left = Math.ceil( - a.offsetX + a.width / 2) + "px";
d.top = Math.ceil( - a.offsetY + a.height / 2) + "px";
b.appendChild(c);
this.Qb = c
}
},
remove: function() {
this.Qb && this.Qb.parentNode && (this.Qb.innerHTML = "", this.Qb.parentNode.removeChild(this.Qb));
delete this.Qb
},
ot: u("S_"),
getTilesUrl: function(a, b) {
if (this.map.pa() !== Za && this.map.pa() !== Sa) var c = this.map.cb.Aw(a.x, b).bs;
var d = "";
this.rh.tileUrlTemplate && (d = this.rh.tileUrlTemplate.replace(/\{X\}/, c), d = d.replace(/\{Y\}/, a.y), d = d.replace(/\{Z\}/, b));
return d
},
pm: u("JV"),
pa: function() {
return this.Ib || Ma
}
});
function Pc(a, b) {
Gb(a) ? b = a || {}: (b = b || {},
b.databoxId = a);
this.k = {
yK: b.databoxId,
dh: b.geotableId,
Ym: b.q || "",
iu: b.tags || "",
filter: b.filter || "",
Hy: b.sortby || "",
r_: b.styleId || "",
Tl: b.ak || qa,
vw: b.age || 36E5,
zIndex: 11,
xY: "VectorCloudLayer",
Ak: b.hotspotName || "vector_md_" + (1E5 * Math.random()).toFixed(0),
UU: "LBS\u4e91\u9ebb\u70b9\u5c42"
};
this.pp = o;
Hc.call(this, this.k);
this.bW = z.wc + "geosearch/detail/";
this.cW = z.wc + "geosearch/v2/detail/";
this.kp = {}
}
x.ua(Pc, Hc, "VectorCloudLayer");
function Qc(a) {
a = a || {};
this.k = x.extend(a, {
zIndex: 1,
xY: "VectorTrafficLayer",
UU: "\u77e2\u91cf\u8def\u51b5\u5c42"
});
this.pp = o;
Hc.call(this, this.k);
this.O_ = z.url.proto + z.url.domain.vector_traffic + "/gvd/?qt=lgvd&styles=pl&layers=tf";
this.Fb = {
"0": [2, 1354709503, 2, 2, 0, [], 0, 0],
1 : [2, 1354709503, 3, 2, 0, [], 0, 0],
10 : [2, -231722753, 2, 2, 0, [], 0, 0],
11 : [2, -231722753, 3, 2, 0, [], 0, 0],
12 : [2, -231722753, 4, 2, 0, [], 0, 0],
13 : [2, -231722753, 5, 2, 0, [], 0, 0],
14 : [2, -231722753, 6, 2, 0, [], 0, 0],
15 : [2, -1, 4, 0, 0, [], 0, 0],
16 : [2, -1, 5.5, 0, 0, [], 0, 0],
17 : [2, -1, 7, 0, 0, [], 0, 0],
18 : [2, -1, 8.5, 0, 0, [], 0, 0],
19 : [2, -1, 10, 0, 0, [], 0, 0],
2 : [2, 1354709503, 4, 2, 0, [], 0, 0],
3 : [2, 1354709503, 5, 2, 0, [], 0, 0],
4 : [2, 1354709503, 6, 2, 0, [], 0, 0],
5 : [2, -6350337, 2, 2, 0, [], 0, 0],
6 : [2, -6350337, 3, 2, 0, [], 0, 0],
7 : [2, -6350337, 4, 2, 0, [], 0, 0],
8 : [2, -6350337, 5, 2, 0, [], 0, 0],
9 : [2, -6350337, 6, 2, 0, [], 0, 0]
}
}
x.ua(Qc, Hc, "VectorTrafficLayer");
function cb(a) {
this.nV = [z.url.proto + z.url.domain.TILE_ONLINE_URLS[1] + "/gvd/?", z.url.proto + z.url.domain.TILE_ONLINE_URLS[2] + "/gvd/?", z.url.proto + z.url.domain.TILE_ONLINE_URLS[3] + "/gvd/?", z.url.proto + z.url.domain.TILE_ONLINE_URLS[4] + "/gvd/?"];
this.k = {
$K: q
};
for (var b in a) this.k[b] = a[b];
this.Yh = this.Ih = this.Xa = this.B = this.C = p;
this.pM = 0;
var c = this;
I.load("vector",
function() {
c.Ae()
})
}
x.extend(cb.prototype, {
ra: function(a, b) {
this.C = a;
this.B = b
},
remove: function() {
this.B = this.C = p
}
});
function Rc(a) {
Hc.call(this, a);
this.k = a || {};
this.kM = o;
if (this.k.predictDate) {
if (1 > this.k.predictDate.weekday || 7 < this.k.predictDate.weekday) this.k.predictDate = 1;
if (0 > this.k.predictDate.hour || 23 < this.k.predictDate.hour) this.k.predictDate.hour = 0
}
this.xU = z.url.proto + z.url.domain.traffic + "/traffic/"
}
Rc.prototype = new Hc;
Rc.prototype.ra = function(a, b) {
Hc.prototype.ra.call(this, a, b);
this.C = a
};
Rc.prototype.ot = ca(o);
Rc.prototype.getTilesUrl = function(a, b) {
var c = "";
this.k.predictDate ? c = "HistoryService?day=" + (this.k.predictDate.weekday - 1) + "&hour=" + this.k.predictDate.hour + "&t=" + (new Date).getTime() + "&": (c = "TrafficTileService?time=" + (new Date).getTime() + "&", c += "label=web2D&v=016&");
var c = this.xU + c + "level=" + b + "&x=" + a.x + "&y=" + a.y,
d = 1;
this.C.Gx() && (d = 2);
return (c + "&scaler=" + d).replace(/-(\d+)/gi, "M$1")
};
var Sc = [z.url.proto + z.url.domain.TILES_YUN_HOST[0] + "/georender/gss", z.url.proto + z.url.domain.TILES_YUN_HOST[1] + "/georender/gss", z.url.proto + z.url.domain.TILES_YUN_HOST[2] + "/georender/gss", z.url.proto + z.url.domain.TILES_YUN_HOST[3] + "/georender/gss"],
Tc = z.url.proto + z.url.domain.main_domain_nocdn.baidu + "/style/poi/rangestyle",
Uc = 100;
function mb(a, b) {
Hc.call(this);
var c = this;
this.kM = o;
var d = q;
try {
document.createElement("canvas").getContext("2d"),
d = o
} catch(e) {
d = q
}
d && (this.Ch = new Pc(a, b), this.Ch.HF = this);
Gb(a) ? b = a || {}: (c.Qn = a, b = b || {});
b.geotableId && (c.Af = b.geotableId);
b.databoxId && (c.Qn = b.databoxId);
d = z.wc + "geosearch";
c.pc = {
uN: b.pointDensity || Uc,
WX: d + "/detail/",
XX: d + "/v2/detail/",
vw: b.age || 36E5,
Ym: b.q || "",
B_: "png",
b3: [5, 5, 5, 5],
wY: {
backgroundColor: "#FFFFD5",
borderColor: "#808080"
},
Tl: b.ak || qa,
iu: b.tags || "",
filter: b.filter || "",
Hy: b.sortby || "",
Ak: b.hotspotName || "tile_md_" + (1E5 * Math.random()).toFixed(0),
QF: o
};
I.load("clayer",
function() {
c.Qd()
})
}
mb.prototype = new Hc;
mb.prototype.ra = function(a, b) {
Hc.prototype.ra.call(this, a, b);
this.C = a
};
mb.prototype.getTilesUrl = function(a, b) {
var c = a.x,
d = a.y,
e = this.pc,
c = Sc[Math.abs(c + d) % Sc.length] + "/image?grids=" + c + "_" + d + "_" + b + "&q=" + e.Ym + "&tags=" + e.iu + "&filter=" + e.filter + "&sortby=" + e.Hy + "&ak=" + this.pc.Tl + "&age=" + e.vw + "&page_size=" + e.uN + "&format=" + e.B_;
e.QF || (e = (1E5 * Math.random()).toFixed(0), c += "&timeStamp=" + e);
this.Af ? c += "&geotable_id=" + this.Af: this.Qn && (c += "&databox_id=" + this.Qn);
return c
};
mb.prototype.enableUseCache = function() {
this.pc.QF = o
};
mb.prototype.disableUseCache = function() {
this.pc.QF = q
};
mb.VT = /^point\(|\)$/ig;
mb.WT = /\s+/;
mb.YT = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
function Vc(a, b, c) {
this.cf = a;
this.lr = b instanceof Hc ? [b] : b.slice(0);
c = c || {};
this.k = {
C_: c.tips || "",
yE: "",
gc: c.minZoom || 3,
$b: c.maxZoom || 18,
a3: c.minZoom || 3,
Z2: c.maxZoom || 18,
Pb: 256,
FF: c.textColor || "black",
lD: c.errorImageUrl || "",
xe: c.projection || new R
};
1 <= this.lr.length && (this.lr[0].yw = o);
x.extend(this.k, c)
}
x.extend(Vc.prototype, {
getName: u("cf"),
$s: function() {
return this.k.C_
},
F2: function() {
return this.k.yE
},
JX: function() {
return this.lr[0]
},
T2: u("lr"),
KX: function() {
return this.k.Pb
},
Zo: function() {
return this.k.gc
},
sm: function() {
return this.k.$b
},
setMaxZoom: function(a) {
this.k.$b = a
},
ym: function() {
return this.k.FF
},
dp: function() {
return this.k.xe
},
w2: function() {
return this.k.lD
},
KX: function() {
return this.k.Pb
},
Bc: function(a) {
return Math.pow(2, 18 - a)
},
aE: function(a) {
return this.Bc(a) * this.k.Pb
}
});
var Wc = [z.url.proto + z.url.domain.TILE_BASE_URLS[0] + "/it/", z.url.proto + z.url.domain.TILE_BASE_URLS[1] + "/it/", z.url.proto + z.url.domain.TILE_BASE_URLS[2] + "/it/", z.url.proto + z.url.domain.TILE_BASE_URLS[3] + "/it/", z.url.proto + z.url.domain.TILE_BASE_URLS[4] + "/it/"],
Xc = [z.url.proto + z.url.domain.TILE_ONLINE_URLS[0] + "/tile/", z.url.proto + z.url.domain.TILE_ONLINE_URLS[1] + "/tile/", z.url.proto + z.url.domain.TILE_ONLINE_URLS[2] + "/tile/", z.url.proto + z.url.domain.TILE_ONLINE_URLS[3] + "/tile/", z.url.proto + z.url.domain.TILE_ONLINE_URLS[4] + "/tile/"],
Yc = {
dark: "dl",
light: "ll",
normal: "pl"
},
Zc = new Hc;
Zc.g_ = o;
Zc.getTilesUrl = function(a, b, c) {
var d = a.x,
a = a.y,
e = Rb("normal"),
f = 1,
c = Yc[c];
this.map.Gx() && (f = 2);
d = this.map.cb.Aw(d, b).bs;
return (Xc[Math.abs(d + a) % Xc.length] + "?qt=tile&x=" + (d + "").replace(/-/gi, "M") + "&y=" + (a + "").replace(/-/gi, "M") + "&z=" + b + "&styles=" + c + "&scaler=" + f + (6 == x.da.la ? "&color_dep=32&colors=50": "") + "&udt=" + e).replace(/-(\d+)/gi, "M$1")
};
var Ma = new Vc("\u5730\u56fe", Zc, {
tips: "\u663e\u793a\u666e\u901a\u5730\u56fe",
maxZoom: 19
}),
$c = new Hc;
$c.pO = [z.url.proto + z.url.domain.TIlE_PERSPECT_URLS[0] + "/resource/mappic/", z.url.proto + z.url.domain.TIlE_PERSPECT_URLS[1] + "/resource/mappic/", z.url.proto + z.url.domain.TIlE_PERSPECT_URLS[2] + "/resource/mappic/", z.url.proto + z.url.domain.TIlE_PERSPECT_URLS[3] + "/resource/mappic/"];
$c.getTilesUrl = function(a, b) {
var c = a.x,
d = a.y,
e = 256 * Math.pow(2, 20 - b),
d = Math.round((9998336 - e * d) / e) - 1;
return url = this.pO[Math.abs(c + d) % this.pO.length] + this.map.Wb + "/" + this.map.Fw + "/3/lv" + (21 - b) + "/" + c + "," + d + ".jpg"
};
var Pa = new Vc("\u4e09\u7ef4", $c, {
tips: "\u663e\u793a\u4e09\u7ef4\u5730\u56fe",
minZoom: 15,
maxZoom: 20,
textColor: "white",
projection: new gb
});
Pa.Bc = function(a) {
return Math.pow(2, 20 - a)
};
Pa.sk = function(a) {
if (!a) return "";
var b = E.fC,
c;
for (c in b) if ( - 1 < a.search(c)) return b[c].ky;
return ""
};
Pa.lL = function(a) {
return {
bj: 2,
gz: 1,
sz: 14,
sh: 4
} [a]
};
var ad = new Hc({
yw: o
});
ad.getTilesUrl = function(a, b) {
var c = a.x,
d = a.y;
return (Wc[Math.abs(c + d) % Wc.length] + "u=x=" + c + ";y=" + d + ";z=" + b + ";v=009;type=sate&fm=46&udt=" + Rb("satellite")).replace(/-(\d+)/gi, "M$1")
};
var Za = new Vc("\u536b\u661f", ad, {
tips: "\u663e\u793a\u536b\u661f\u5f71\u50cf",
minZoom: 1,
maxZoom: 19,
textColor: "white"
}),
bd = new Hc({
transparentPng: o
});
bd.getTilesUrl = function(a, b) {
var c = a.x,
d = a.y,
e = Rb("satelliteStreet");
return (Xc[Math.abs(c + d) % Xc.length] + "?qt=tile&x=" + (c + "").replace(/-/gi, "M") + "&y=" + (d + "").replace(/-/gi, "M") + "&z=" + b + "&styles=sl" + (6 == x.da.la ? "&color_dep=32&colors=50": "") + "&udt=" + e).replace(/-(\d+)/gi, "M$1")
};
var Sa = new Vc("\u6df7\u5408", [ad, bd], {
tips: "\u663e\u793a\u5e26\u6709\u8857\u9053\u7684\u536b\u661f\u5f71\u50cf",
labelText: "\u8def\u7f51",
minZoom: 1,
maxZoom: 19,
textColor: "white"
});
var cd = 1,
U = {};
window.o0 = U;
function V(a, b) {
x.lang.Ca.call(this);
this.yd = {};
this.gn(a);
b = b || {};
b.ka = b.renderOptions || {};
this.k = {
ka: {
Ha: b.ka.panel || p,
map: b.ka.map || p,
Xg: b.ka.autoViewport || o,
Nt: b.ka.selectFirstResult,
dt: b.ka.highlightMode,
Yb: b.ka.enableDragging || q
},
dy: b.onSearchComplete || s(),
gN: b.onMarkersSet || s(),
fN: b.onInfoHtmlSet || s(),
iN: b.onResultsHtmlSet || s(),
eN: b.onGetBusListComplete || s(),
dN: b.onGetBusLineComplete || s(),
bN: b.onBusListHtmlSet || s(),
aN: b.onBusLineHtmlSet || s(),
ME: b.onPolylinesSet || s(),
Dp: b.reqFrom || ""
};
this.k.ka.Xg = "undefined" != typeof b && "undefined" != typeof b.renderOptions && "undefined" != typeof b.renderOptions.autoViewport ? b.renderOptions.autoViewport: o;
this.k.ka.Ha = x.Dc(this.k.ka.Ha)
}
x.ua(V, x.lang.Ca);
x.extend(V.prototype, {
getResults: function() {
return this.Fc ? this.Ii: this.ja
},
enableAutoViewport: function() {
this.k.ka.Xg = o
},
disableAutoViewport: function() {
this.k.ka.Xg = q
},
gn: function(a) {
a && (this.yd.src = a)
},
vF: function(a) {
this.k.dy = a || s()
},
setMarkersSetCallback: function(a) {
this.k.gN = a || s()
},
setPolylinesSetCallback: function(a) {
this.k.ME = a || s()
},
setInfoHtmlSetCallback: function(a) {
this.k.fN = a || s()
},
setResultsHtmlSetCallback: function(a) {
this.k.iN = a || s()
},
wm: u("Bd")
});
var dd = {
uG: z.wc,
bb: function(a, b, c, d, e) {
this.lZ(b);
var f = (1E5 * Math.random()).toFixed(0);
z._rd["_cbk" + f] = function(b) {
b.result && b.result.error && 202 === b.result.error ? alert("\u8be5AK\u56e0\u4e3a\u6076\u610f\u884c\u4e3a\u5df2\u7ecf\u88ab\u7ba1\u7406\u5458\u5c01\u7981\uff01") : (c = c || {},
a && a(b, c), delete z._rd["_cbk" + f])
};
d = d || "";
b = c && c.HO ? Db(b, encodeURI) : Db(b, encodeURIComponent);
this.uG = c && c.Is ? c.FN ? c.FN: z.up: z.wc;
d = this.uG + d + "?" + b + "&ie=utf-8&oue=1&fromproduct=jsapi";
e || (d += "&res=api");
d = d + ("&callback=BMap._rd._cbk" + f) + ("&ak=" + qa);
pa(d)
},
lZ: function(a) {
if (a.qt) {
var b = "";
switch (a.qt) {
case "bt":
b = "z_qt|bt";
break;
case "nav":
b = "z_qt|nav";
break;
case "walk":
b = "z_qt|walk";
break;
case "bse":
b = "z_qt|bse";
break;
case "nse":
b = "z_qt|nse";
break;
case "drag":
b = "z_qt|drag";
break;
case "s":
b = "z_qt|s";
break;
case "ext":
b = "z_qt|ext";
break;
case "gc":
b = "z_qt|gc";
break;
case "rgc":
b = "z_qt|rgc";
break;
case "bl":
b = "z_qt|bl";
break;
case "bsl":
b = "z_qt|bsl";
break;
case "con":
b = "z_qt|con";
break;
case "bd":
b = "z_qt|bd";
break;
case "nb":
b = "z_qt|nb";
break;
case "bda":
b = "z_qt|bda";
break;
case "sa":
b = "z_qt|sa";
break;
case "nba":
b = "z_qt|nba";
break;
case "dec":
b = "z_qt|dec"
}
"" !== b && z.alog("cus.fire", "count", b)
}
}
};
window.A0 = dd;
z._rd = {};
var P = {};
window.z0 = P;
P.BN = function(a) {
a = a.replace(/<\/?[^>]*>/g, "");
return a = a.replace(/[ | ]* /g, " ")
};
P.bZ = function(a) {
return a.replace(/([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*),([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*)(,)/g, "$1,$2;")
};
P.cZ = function(a, b) {
return a.replace(RegExp("(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){" + b + "}", "ig"), "$1")
};
var ed = 2,
id = 3,
jd = 0,
kd = "bt",
ld = "nav",
md = "walk",
nd = "bl",
od = "bsl",
pd = 14,
qd = 15,
rd = 18,
sd = 20,
td = 31;
z.I = window.Instance = x.lang.Kc;
function ud(a, b, c) {
x.lang.Ca.call(this);
if (a) {
this.Va = "object" == typeof a ? a: x.Dc(a);
this.page = 1;
this.Jd = 100;
this.TJ = "pg";
this.Vf = 4;
this.aK = b;
this.update = o;
a = {
page: 1,
We: 100,
Jd: 100,
Vf: 4,
TJ: "pg",
update: o
};
c || (c = a);
for (var d in c)"undefined" != typeof c[d] && (this[d] = c[d]);
this.va()
}
}
x.extend(ud.prototype, {
va: function() {
this.ra()
},
ra: function() {
this.vV();
this.Va.innerHTML = this.RV()
},
vV: function() {
isNaN(parseInt(this.page)) && (this.page = 1);
isNaN(parseInt(this.Jd)) && (this.Jd = 1);
1 > this.page && (this.page = 1);
1 > this.Jd && (this.Jd = 1);
this.page > this.Jd && (this.page = this.Jd);
this.page = parseInt(this.page);
this.Jd = parseInt(this.Jd)
},
K2: function() {
location.search.match(RegExp("[?&]?" + this.TJ + "=([^&]*)[&$]?", "gi"));
this.page = RegExp.$1
},
RV: function() {
var a = [],
b = this.page - 1,
c = this.page + 1;
a.push('<p style="margin:0;padding:0;white-space:nowrap">');
if (! (1 > b)) {
if (this.page >= this.Vf) {
var d;
a.push('<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp1}">\u9996\u9875</a></span>'.replace("{temp1}", "BMap.I('" + this.ba + "').toPage(1);"))
}
a.push('<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp2}">\u4e0a\u4e00\u9875</a></span>'.replace("{temp2}", "BMap.I('" + this.ba + "').toPage(" + b + ");"))
}
if (this.page < this.Vf) d = 0 == this.page % this.Vf ? this.page - this.Vf - 1 : this.page - this.page % this.Vf + 1,
b = d + this.Vf - 1;
else {
d = Math.floor(this.Vf / 2);
var e = this.Vf % 2 - 1,
b = this.Jd > this.page + d ? this.page + d: this.Jd;
d = this.page - d - e
}
this.page > this.Jd - this.Vf && this.page >= this.Vf && (d = this.Jd - this.Vf + 1, b = this.Jd);
for (e = d; e <= b; e++) 0 < e && (e == this.page ? a.push('<span style="margin-right:3px">' + e + "</span>") : 1 <= e && e <= this.Jd && (d = '<span><a style="color:#7777cc;margin-right:3px" href="javascript:void(0)" onclick="{temp3}">[' + e + "]</a></span>", a.push(d.replace("{temp3}", "BMap.I('" + this.ba + "').toPage(" + e + ");"))));
c > this.Jd || a.push('<span><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp4}">\u4e0b\u4e00\u9875</a></span>'.replace("{temp4}", "BMap.I('" + this.ba + "').toPage(" + c + ");"));
a.push("</p>");
return a.join("")
},
toPage: function(a) {
a = a ? a: 1;
"function" == typeof this.aK && (this.aK(a), this.page = a);
this.update && this.va()
}
});
function bb(a, b) {
V.call(this, a, b);
b = b || {};
b.renderOptions = b.renderOptions || {};
this.Np(b.pageCapacity);
"undefined" != typeof b.renderOptions.selectFirstResult && !b.renderOptions.selectFirstResult ? this.KC() : this.gD();
this.wa = [];
this.wf = [];
this.kb = -1;
this.Pa = [];
var c = this;
I.load("local",
function() {
c.Bz()
},
o)
}
x.ua(bb, V, "LocalSearch");
bb.cq = 10;
bb.w0 = 1;
bb.Cn = 100;
bb.kG = 2E3;
bb.rG = 1E5;
x.extend(bb.prototype, {
search: function(a, b) {
this.Pa.push({
method: "search",
arguments: [a, b]
})
},
bn: function(a, b, c) {
this.Pa.push({
method: "searchInBounds",
arguments: [a, b, c]
})
},
Jp: function(a, b, c, d) {
this.Pa.push({
method: "searchNearby",
arguments: [a, b, c, d]
})
},
Oe: function() {
delete this.Fa;
delete this.Bd;
delete this.ja;
delete this.ga;
this.kb = -1;
this.sb();
this.k.ka.Ha && (this.k.ka.Ha.innerHTML = "")
},
Bm: s(),
gD: function() {
this.k.ka.Nt = o
},
KC: function() {
this.k.ka.Nt = q
},
Np: function(a) {
this.k.Ek = "number" == typeof a && !isNaN(a) ? 1 > a ? bb.cq: a > bb.Cn ? bb.cq: a: bb.cq
},
pf: function() {
return this.k.Ek
},
toString: ca("LocalSearch")
});
var vd = bb.prototype;
S(vd, {
clearResults: vd.Oe,
setPageCapacity: vd.Np,
getPageCapacity: vd.pf,
gotoPage: vd.Bm,
searchNearby: vd.Jp,
searchInBounds: vd.bn,
search: vd.search,
enableFirstResultSelection: vd.gD,
disableFirstResultSelection: vd.KC
});
function wd(a, b) {
V.call(this, a, b)
}
x.ua(wd, V, "BaseRoute");
x.extend(wd.prototype, {
Oe: s()
});
function xd(a, b) {
V.call(this, a, b);
b = b || {};
this.Vt(b.policy);
this.Np(b.pageCapacity);
this.ud = kd;
this.Eu = pd;
this.Fu = cd;
this.wa = [];
this.kb = -1;
this.k.ed = b.enableTraffic || q;
this.Pa = [];
var c = this;
I.load("route",
function() {
c.Qd()
})
}
xd.Cn = 100;
xd.mP = [0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 1, 1];
x.ua(xd, wd, "TransitRoute");
x.extend(xd.prototype, {
Vt: function(a) {
this.k.$c = 0 <= a && 4 >= a ? a: 0
},
BA: function(a, b) {
this.Pa.push({
method: "_internalSearch",
arguments: [a, b]
})
},
search: function(a, b) {
this.Pa.push({
method: "search",
arguments: [a, b]
})
},
Np: function(a) {
if ("string" === typeof a && (a = parseInt(a, 10), isNaN(a))) {
this.k.Ek = xd.Cn;
return
}
this.k.Ek = "number" !== typeof a ? xd.Cn: 1 <= a && a <= xd.Cn ? Math.round(a) : xd.Cn
},
toString: ca("TransitRoute"),
jU: function(a) {
return a.replace(/\(.*\)/, "")
}
});
var yd = xd.prototype;
S(yd, {
_internalSearch: yd.BA
});
function zd(a, b) {
V.call(this, a, b);
this.wa = [];
this.kb = -1;
this.Pa = [];
var c = this,
d = this.k.ka;
1 !== d.dt && 2 !== d.dt && (d.dt = 1);
this.Vz = this.k.ka.Yb ? o: q;
I.load("route",
function() {
c.Qd()
});
this.jE && this.jE()
}
zd.AP = " \u73af\u5c9b \u65e0\u5c5e\u6027\u9053\u8def \u4e3b\u8def \u9ad8\u901f\u8fde\u63a5\u8def \u4ea4\u53c9\u70b9\u5185\u8def\u6bb5 \u8fde\u63a5\u9053\u8def \u505c\u8f66\u573a\u5185\u90e8\u9053\u8def \u670d\u52a1\u533a\u5185\u90e8\u9053\u8def \u6865 \u6b65\u884c\u8857 \u8f85\u8def \u531d\u9053 \u5168\u5c01\u95ed\u9053\u8def \u672a\u5b9a\u4e49\u4ea4\u901a\u533a\u57df POI\u8fde\u63a5\u8def \u96a7\u9053 \u6b65\u884c\u9053 \u516c\u4ea4\u4e13\u7528\u9053 \u63d0\u524d\u53f3\u8f6c\u9053".split(" ");
x.ua(zd, wd, "DWRoute");
x.extend(zd.prototype, {
search: function(a, b, c) {
this.Pa.push({
method: "search",
arguments: [a, b, c]
})
}
});
function Ad(a, b) {
zd.call(this, a, b);
b = b || {};
this.k.ed = b.enableTraffic || q;
this.Vt(b.policy);
this.ud = ld;
this.Eu = sd;
this.Fu = id
}
x.ua(Ad, zd, "DrivingRoute");
Ad.prototype.Vt = function(a) {
this.k.$c = 0 <= a && 2 >= a ? a: 0
};
function Bd(a, b) {
zd.call(this, a, b);
this.ud = md;
this.Eu = td;
this.Fu = ed;
this.Vz = q
}
x.ua(Bd, zd, "WalkingRoute");
function Cd(a, b) {
x.lang.Ca.call(this);
this.Tf = [];
this.Vm = [];
this.k = b;
this.fc = a;
this.map = this.k.ka.map || p;
this.uy = this.k.uy;
this.Cb = p;
this.fj = 0;
this.Iy = "";
this.ae = 1;
this.ax = "";
this.Ep = [0, 0, 0, 0, 0, 0, 0];
this.BE = [];
this.hs = [1, 1, 1, 1, 1, 1, 1];
this.xO = [1, 1, 1, 1, 1, 1, 1];
this.Lt = [0, 0, 0, 0, 0, 0, 0];
this.Fp = [0, 0, 0, 0, 0, 0, 0];
this.Ma = [{
o: "",
Cd: 0,
tn: 0,
x: 0,
y: 0,
oa: -1
},
{
o: "",
Cd: 0,
tn: 0,
x: 0,
y: 0,
oa: -1
},
{
o: "",
Cd: 0,
tn: 0,
x: 0,
y: 0,
oa: -1
},
{
o: "",
Cd: 0,
tn: 0,
x: 0,
y: 0,
oa: -1
},
{
o: "",
Cd: 0,
tn: 0,
x: 0,
y: 0,
oa: -1
},
{
o: "",
Cd: 0,
tn: 0,
x: 0,
y: 0,
oa: -1
},
{
o: "",
Cd: 0,
tn: 0,
x: 0,
y: 0,
oa: -1
}];
this.fi = -1;
this.ku = [];
this.lu = [];
I.load("route", s())
}
x.lang.ua(Cd, x.lang.Ca, "RouteAddr");
var Dd = navigator.userAgent;
/ipad|iphone|ipod|iph/i.test(Dd);
var Ed = /android/i.test(Dd);
function Fd(a) {
this.rh = a || {}
}
x.extend(Fd.prototype, {
LN: function(a, b, c) {
var d = this;
I.load("route",
function() {
d.Qd(a, b, c)
})
}
});
function Gd(a) {
this.k = {};
x.extend(this.k, a);
this.Pa = [];
var b = this;
I.load("othersearch",
function() {
b.Qd()
})
}
x.ua(Gd, x.lang.Ca, "Geocoder");
x.extend(Gd.prototype, {
vm: function(a, b, c) {
this.Pa.push({
method: "getPoint",
arguments: [a, b, c]
})
},
rm: function(a, b, c) {
this.Pa.push({
method: "getLocation",
arguments: [a, b, c]
})
},
toString: ca("Geocoder")
});
var Hd = Gd.prototype;
S(Hd, {
getPoint: Hd.vm,
getLocation: Hd.rm
});
function Geolocation(a) {
a = a || {};
this.K = {
timeout: a.timeout || 1E4,
maximumAge: a.maximumAge || 6E5,
$k: q
};
this.le = [];
var b = this;
I.load("othersearch",
function() {
for (var a = 0,
d; d = b.le[a]; a++) b[d.method].apply(b, d.arguments)
})
}
x.extend(Geolocation.prototype, {
getCurrentPosition: function(a, b) {
this.le.push({
method: "getCurrentPosition",
arguments: arguments
})
},
getStatus: ca(2),
enableSDKLocation: function() {
G() && (this.K.$k = o)
},
disableSDKLocation: function() {
this.K.$k = q
}
});
function Id(a) {
a = a || {};
a.ka = a.renderOptions || {};
this.k = {
ka: {
map: a.ka.map || p
}
};
this.Pa = [];
var b = this;
I.load("othersearch",
function() {
b.Qd()
})
}
x.ua(Id, x.lang.Ca, "LocalCity");
x.extend(Id.prototype, {
get: function(a) {
this.Pa.push({
method: "get",
arguments: [a]
})
},
toString: ca("LocalCity")
});
function Jd() {
this.Pa = [];
var a = this;
I.load("othersearch",
function() {
a.Qd()
})
}
x.ua(Jd, x.lang.Ca, "Boundary");
x.extend(Jd.prototype, {
get: function(a, b) {
this.Pa.push({
method: "get",
arguments: [a, b]
})
},
toString: ca("Boundary")
});
function Kd(a, b) {
V.call(this, a, b);
this.xP = nd;
this.zP = qd;
this.wP = od;
this.yP = rd;
this.Pa = [];
var c = this;
I.load("buslinesearch",
function() {
c.Qd()
})
}
Kd.ov = E.qa + "iw_plus.gif";
Kd.CS = E.qa + "iw_minus.gif";
Kd.tU = E.qa + "stop_icon.png";
x.ua(Kd, V);
x.extend(Kd.prototype, {
getBusList: function(a) {
this.Pa.push({
method: "getBusList",
arguments: [a]
})
},
getBusLine: function(a) {
this.Pa.push({
method: "getBusLine",
arguments: [a]
})
},
setGetBusListCompleteCallback: function(a) {
this.k.eN = a || s()
},
setGetBusLineCompleteCallback: function(a) {
this.k.dN = a || s()
},
setBusListHtmlSetCallback: function(a) {
this.k.bN = a || s()
},
setBusLineHtmlSetCallback: function(a) {
this.k.aN = a || s()
},
setPolylinesSetCallback: function(a) {
this.k.ME = a || s()
}
});
function Ld(a) {
V.call(this, a);
a = a || {};
this.pc = {
input: a.input || p,
VB: a.baseDom || p,
types: a.types || [],
dy: a.onSearchComplete || s()
};
this.yd.src = a.location || "\u5168\u56fd";
this.$i = "";
this.mg = p;
this.XH = "";
this.Pi();
Ra(Ia);
var b = this;
I.load("autocomplete",
function() {
b.Qd()
})
}
x.ua(Ld, V, "Autocomplete");
x.extend(Ld.prototype, {
Pi: s(),
show: s(),
U: s(),
wF: function(a) {
this.pc.types = a
},
gn: function(a) {
this.yd.src = a
},
search: ba("$i"),
xy: ba("XH")
});
var Ta;
function Oa(a, b) {
function c() {
e.k.visible ? ("inter" === e.Ie && e.k.haveBreakId && e.k.indoorExitControl === o ? x.D.show(e.uA) : x.D.U(e.uA), this.k.closeControl && this.zf && this.C && this.C.Na() === this.B ? x.D.show(e.zf) : x.D.U(e.zf), this.k.forceCloseControl && x.D.show(e.zf)) : (x.D.U(e.zf), x.D.U(e.uA))
}
this.B = "string" == typeof a ? x.$(a) : a;
this.ba = Md++;
this.k = {
enableScrollWheelZoom: o,
panoramaRenderer: "flash",
swfSrc: z.sg("main_domain_nocdn", "res/swf/") + "APILoader.swf",
visible: o,
indoorExitControl: o,
indoorFloorControl: q,
linksControl: o,
clickOnRoad: o,
navigationControl: o,
closeControl: o,
indoorSceneSwitchControl: o,
albumsControl: q,
albumsControlOptions: {},
copyrightControlOptions: {},
forceCloseControl: q,
haveBreakId: q
};
var b = b || {},
d;
for (d in b) this.k[d] = b[d];
b.closeControl === o && (this.k.forceCloseControl = o);
b.useWebGL === q && Na(q);
this.Da = {
heading: 0,
pitch: 0
};
this.$n = [];
this.Lb = this.Ya = p;
this.ck = this.$q();
this.wa = [];
this.Jc = 1;
this.Ie = this.$S = this.el = "";
this.He = {};
this.Mf = p;
this.Pg = [];
this.wr = [];
"cvsRender" == this.ck || Na() ? (this.Vj = 90, this.Xj = -90) : "cssRender" == this.ck && (this.Vj = 45, this.Xj = -45);
this.Ar = q;
var e = this;
this.ao = function() {
this.ck === "flashRender" ? I.load("panoramaflash",
function() {
e.Pi()
},
o) : I.load("panorama",
function() {
e.yb()
},
o);
b.Pf == "api" ? Ra(Da) : Ra(Fa);
this.ao = s()
};
this.k.NS !== o && (this.ao(), z.Dn("cus.fire", "count", "z_loadpanoramacount"));
this.DT(this.B);
this.addEventListener("id_changed",
function() {
Ra(Ca, {
from: b.Pf
})
});
this.RP();
this.addEventListener("indoorexit_options_changed", c);
this.addEventListener("scene_type_changed", c);
this.addEventListener("onclose_options_changed", c);
this.addEventListener("onvisible_changed", c)
}
var Nd = 4,
Od = 1,
Md = 0;
x.lang.ua(Oa, x.lang.Ca, "Panorama");
x.extend(Oa.prototype, {
RP: function() {
var a = this,
b = this.zf = M("div");
b.className = "pano_close";
b.style.cssText = "z-index: 1201;display: none";
b.title = "\u9000\u51fa\u5168\u666f";
b.onclick = function() {
a.U()
};
this.B.appendChild(b);
var c = this.uA = M("a");
c.className = "pano_pc_indoor_exit";
c.style.cssText = "z-index: 1201;display: none";
c.innerHTML = '<span style="float:right;margin-right:12px;">\u51fa\u53e3</span>';
c.title = "\u9000\u51fa\u5ba4\u5185\u666f";
c.onclick = function() {
a.So()
};
this.B.appendChild(c);
window.ActiveXObject && !document.addEventListener && (b.style.backgroundColor = "rgb(37,37,37)", c.style.backgroundColor = "rgb(37,37,37)")
},
So: s(),
DT: function(a) {
var b, c;
b = a.style;
c = Wa(a).position;
"absolute" != c && "relative" != c && (b.position = "relative", b.zIndex = 0);
if ("absolute" === c || "relative" === c) if (a = Wa(a).zIndex, !a || "auto" === a) b.zIndex = 0
},
jX: u("$n"),
Zb: u("Ya"),
LX: u("Xv"),
$N: u("Xv"),
ha: u("Lb"),
Ea: u("Da"),
fa: u("Jc"),
fh: u("el"),
M2: function() {
return this.d1 || []
},
H2: u("$S"),
Zs: u("Ie"),
zy: function(a) {
a !== this.Ie && (this.Ie = a, this.dispatchEvent(new O("onscene_type_changed")))
},
rc: function(a, b, c) {
"object" === typeof b && (c = b, b = j);
a != this.Ya && (this.pl = this.Ya, this.ql = this.Lb, this.Ya = a, this.Ie = b || "street", this.Lb = p, c && c.pov && this.Mc(c.pov))
},
ta: function(a) {
a.nb(this.Lb) || (this.pl = this.Ya, this.ql = this.Lb, this.Lb = a, this.Ya = p)
},
Mc: function(a) {
a && (this.Da = a, a = this.Da.pitch, a > this.Vj ? a = this.Vj: a < this.Xj && (a = this.Xj), this.Ar = o, this.Da.pitch = a)
},
b_: function(a, b) {
this.Xj = 0 <= a ? 0 : a;
this.Vj = 0 >= b ? 0 : b
},
Nc: function(a) {
a != this.Jc && (a > Nd && (a = Nd), a < Od && (a = Od), a != this.Jc && (this.Jc = a), "cssRender" === this.ck && this.Mc(this.Da))
},
uB: function() {
if (this.C) for (var a = this.C.ux(), b = 0; b < a.length; b++)(a[b] instanceof T || a[b] instanceof uc) && a[b].point && this.wa.push(a[b])
},
sF: ba("C"),
Ut: function(a) {
this.Mf = a || "none"
},
Kk: function(a) {
for (var b in a) {
if ("object" == typeof a[b]) for (var c in a[b]) this.k[b][c] = a[b][c];
else this.k[b] = a[b];
a.closeControl === o && (this.k.forceCloseControl = o);
a.closeControl === q && (this.k.forceCloseControl = q);
switch (b) {
case "linksControl":
this.dispatchEvent(new O("onlinks_visible_changed"));
break;
case "clickOnRoad":
this.dispatchEvent(new O("onclickonroad_changed"));
break;
case "navigationControl":
this.dispatchEvent(new O("onnavigation_visible_changed"));
break;
case "indoorSceneSwitchControl":
this.dispatchEvent(new O("onindoor_default_switch_mode_changed"));
break;
case "albumsControl":
this.dispatchEvent(new O("onalbums_visible_changed"));
break;
case "albumsControlOptions":
this.dispatchEvent(new O("onalbums_options_changed"));
break;
case "copyrightControlOptions":
this.dispatchEvent(new O("oncopyright_options_changed"));
break;
case "closeControl":
this.dispatchEvent(new O("onclose_options_changed"));
break;
case "indoorExitControl":
this.dispatchEvent(new O("onindoorexit_options_changed"));
break;
case "indoorFloorControl":
this.dispatchEvent(new O("onindoorfloor_options_changed"))
}
}
},
zk: function() {
this.yl.style.visibility = "hidden"
},
Dy: function() {
this.yl.style.visibility = "visible"
},
xW: function() {
this.k.enableScrollWheelZoom = o
},
iW: function() {
this.k.enableScrollWheelZoom = q
},
show: function() {
this.k.visible = o
},
U: function() {
this.k.visible = q
},
$q: function() {
return Va() && !G() && "javascript" !== this.k.panoramaRenderer ? "flashRender": !G() && Nb() ? "cvsRender": "cssRender"
},
Ja: function(a) {
this.He[a.hd] = a
},
Tb: function(a) {
delete this.He[a]
},
ZD: function() {
return this.k.visible
},
eh: function() {
return new N(this.B.clientWidth, this.B.clientHeight)
},
Na: u("B"),
hL: function() {
var a = z.sg("baidumap", "?"),
b = this.Zb();
if (b) {
var b = {
panotype: this.Zs(),
heading: this.Ea().heading,
pitch: this.Ea().pitch,
pid: b,
panoid: b,
from: "api"
},
c;
for (c in b) a += c + "=" + b[c] + "&"
}
return a.slice(0, -1)
},
Dx: function() {
this.Kk({
copyrightControlOptions: {
logoVisible: q
}
})
},
zF: function() {
this.Kk({
copyrightControlOptions: {
logoVisible: o
}
})
},
PB: function(a) {
function b(a, b) {
return function() {
a.wr.push({
OM: b,
NM: arguments
})
}
}
for (var c = a.getPanoMethodList(), d = "", e = 0, f = c.length; e < f; e++) d = c[e],
this[d] = b(this, d);
this.Pg.push(a)
},
bF: function(a) {
for (var b = this.Pg.length; b--;) this.Pg[b] === a && this.Pg.splice(b, 1)
},
rF: s()
});
var Pd = Oa.prototype;
S(Pd, {
setId: Pd.rc,
setPosition: Pd.ta,
setPov: Pd.Mc,
setZoom: Pd.Nc,
setOptions: Pd.Kk,
getId: Pd.Zb,
getPosition: Pd.ha,
getPov: Pd.Ea,
getZoom: Pd.fa,
getLinks: Pd.jX,
getBaiduMapUrl: Pd.hL,
hideMapLogo: Pd.Dx,
showMapLogo: Pd.zF,
enableDoubleClickZoom: Pd.b2,
disableDoubleClickZoom: Pd.P1,
enableScrollWheelZoom: Pd.xW,
disableScrollWheelZoom: Pd.iW,
show: Pd.show,
hide: Pd.U,
addPlugin: Pd.PB,
removePlugin: Pd.bF,
getVisible: Pd.ZD,
addOverlay: Pd.Ja,
removeOverlay: Pd.Tb,
getSceneType: Pd.Zs,
setPanoramaPOIType: Pd.Ut,
exitInter: Pd.So,
setInteractiveState: Pd.rF
});
S(window, {
BMAP_PANORAMA_POI_HOTEL: "hotel",
BMAP_PANORAMA_POI_CATERING: "catering",
BMAP_PANORAMA_POI_MOVIE: "movie",
BMAP_PANORAMA_POI_TRANSIT: "transit",
BMAP_PANORAMA_POI_INDOOR_SCENE: "indoor_scene",
BMAP_PANORAMA_POI_NONE: "none",
BMAP_PANORAMA_INDOOR_SCENE: "inter",
BMAP_PANORAMA_STREET_SCENE: "street"
});
function Qd() {
x.lang.Ca.call(this);
this.hd = "PanoramaOverlay_" + this.ba;
this.P = p;
this.Qa = o
}
x.lang.ua(Qd, x.lang.Ca, "PanoramaOverlayBase");
x.extend(Qd.prototype, {
I2: u("hd"),
ra: function() {
aa("initialize\u65b9\u6cd5\u672a\u5b9e\u73b0")
},
remove: function() {
aa("remove\u65b9\u6cd5\u672a\u5b9e\u73b0")
},
Lf: function() {
aa("_setOverlayProperty\u65b9\u6cd5\u672a\u5b9e\u73b0")
}
});
function Rd(a, b) {
Qd.call(this);
var c = {
position: p,
altitude: 2,
displayDistance: o
},
b = b || {},
d;
for (d in b) c[d] = b[d];
this.Lb = c.position;
this.Lj = a;
this.uq = c.altitude;
this.cR = c.displayDistance;
this.FF = c.color;
this.RL = c.hoverColor;
this.backgroundColor = c.backgroundColor;
this.VJ = c.backgroundHoverColor;
this.borderColor = c.borderColor;
this.ZJ = c.borderHoverColor;
this.fontSize = c.fontSize;
this.padding = c.padding;
this.eE = c.imageUrl;
this.size = c.size;
this.te = c.image;
this.width = c.width;
this.height = c.height;
this.$X = c.imageData;
this.borderWidth = c.borderWidth
}
x.lang.ua(Rd, Qd, "PanoramaLabel");
x.extend(Rd.prototype, {
n2: u("borderWidth"),
getImageData: u("$X"),
ym: u("FF"),
B2: u("RL"),
j2: u("backgroundColor"),
k2: u("VJ"),
l2: u("borderColor"),
m2: u("ZJ"),
y2: u("fontSize"),
J2: u("padding"),
C2: u("eE"),
Bb: u("size"),
kx: u("te"),
ta: function(a) {
this.Lb = a;
this.Lf("position", a)
},
ha: u("Lb"),
ad: function(a) {
this.Lj = a;
this.Lf("content", a)
},
tk: u("Lj"),
mF: function(a) {
this.uq = a;
this.Lf("altitude", a)
},
Vo: u("uq"),
Ea: function() {
var a = this.ha(),
b = p,
c = p;
this.P && (c = this.P.ha());
if (a && c) if (a.nb(c)) b = this.P.Ea();
else {
b = {};
b.heading = Sd(a.lng - c.lng, a.lat - c.lat) || 0;
var a = b,
c = this.Vo(),
d = this.Vn();
a.pitch = Math.round(180 * (Math.atan(c / d) / Math.PI)) || 0
}
return b
},
Vn: function() {
var a = 0,
b, c;
this.P && (b = this.P.ha(), (c = this.ha()) && !c.nb(b) && (a = R.Xo(b, c)));
return a
},
U: function() {
aa("hide\u65b9\u6cd5\u672a\u5b9e\u73b0")
},
show: function() {
aa("show\u65b9\u6cd5\u672a\u5b9e\u73b0")
},
Lf: s()
});
var Td = Rd.prototype;
S(Td, {
setPosition: Td.ta,
getPosition: Td.ha,
setContent: Td.ad,
getContent: Td.tk,
setAltitude: Td.mF,
getAltitude: Td.Vo,
getPov: Td.Ea,
show: Td.show,
hide: Td.U
});
function Ud(a, b) {
Qd.call(this);
var c = {
icon: "",
title: "",
panoInfo: p,
altitude: 2
},
b = b || {},
d;
for (d in b) c[d] = b[d];
this.Lb = a;
this.SH = c.icon;
this.oJ = c.title;
this.uq = c.altitude;
this.qT = c.panoInfo;
this.Da = {
heading: 0,
pitch: 0
}
}
x.lang.ua(Ud, Qd, "PanoramaMarker");
x.extend(Ud.prototype, {
ta: function(a) {
this.Lb = a;
this.Lf("position", a)
},
ha: u("Lb"),
Cc: function(a) {
this.oJ = a;
this.Lf("title", a)
},
fp: u("oJ"),
Ub: function(a) {
this.SH = icon;
this.Lf("icon", a)
},
Yo: u("SH"),
mF: function(a) {
this.uq = a;
this.Lf("altitude", a)
},
Vo: u("uq"),
QD: u("qT"),
Ea: function() {
var a = p;
if (this.P) {
var a = this.P.ha(),
b = this.ha(),
a = Sd(b.lng - a.lng, b.lat - a.lat);
isNaN(a) && (a = 0);
a = {
heading: a,
pitch: 0
}
} else a = this.Da;
return a
},
Lf: s()
});
var Vd = Ud.prototype;
S(Vd, {
setPosition: Vd.ta,
getPosition: Vd.ha,
setTitle: Vd.Cc,
getTitle: Vd.fp,
setAltitude: Vd.mF,
getAltitude: Vd.Vo,
getPanoInfo: Vd.QD,
getIcon: Vd.Yo,
setIcon: Vd.Ub,
getPov: Vd.Ea
});
function Sd(a, b) {
var c = 0;
if (0 !== a && 0 !== b) {
var c = 180 * (Math.atan(a / b) / Math.PI),
d = 0;
0 < a && 0 > b && (d = 90);
0 > a && 0 > b && (d = 180);
0 > a && 0 < b && (d = 270);
c = (c + 90) % 90 + d
} else 0 === a ? c = 0 > b ? 180 : 0 : 0 === b && (c = 0 < a ? 90 : 270);
return Math.round(c)
}
function Na(a) {
if ("boolean" === typeof Wd) return Wd;
if (a === q || !window.WebGLRenderingContext || x.platform.Im && -1 == navigator.userAgent.indexOf("Android 5")) return Wd = q;
var a = document.createElement("canvas"),
b = p;
try {
b = a.getContext("webgl")
} catch(c) {
Wd = q
}
return Wd = b === p ? q: o
}
var Wd;
function Xd() {
if ("boolean" === typeof Yd) return Yd;
Yd = o;
if (x.platform.nE) return o;
var a = navigator.userAgent;
return - 1 < a.indexOf("Chrome") || -1 < a.indexOf("SAMSUNG-GT-I9508") ? o: Yd = q
}
var Yd;
function cc(a, b) {
this.P = a || p;
var c = this;
c.P && c.ca();
I.load("pservice",
function() {
c.vQ()
});
"api" == (b || {}).Pf ? Ra(Ga) : Ra(Ha);
this.vd = {
getPanoramaById: [],
getPanoramaByLocation: [],
getVisiblePOIs: [],
getRecommendPanosById: [],
getPanoramaVersions: [],
checkPanoSupportByCityCode: [],
getPanoramaByPOIId: [],
getCopyrightProviders: []
}
}
z.Um(function(a) {
"flashRender" !== a.$q() && new cc(a, {
Pf: "api"
})
});
x.extend(cc.prototype, {
ca: function() {
function a(a) {
if (a) {
if (a.id != b.Xv) {
b.$N(a.id);
b.ea = a;
Xd() || b.dispatchEvent(new O("onthumbnail_complete"));
b.Ya != p && (b.ql = b._position);
for (var c in a) if (a.hasOwnProperty(c)) switch (b["_" + c] = a[c], c) {
case "position":
b.Lb = a[c];
break;
case "id":
b.Ya = a[c];
break;
case "links":
b.$n = a[c];
break;
case "zoom":
b.Jc = a[c]
}
if (b.ql) {
var f = b.ql,
g = b._position;
c = f.lat;
var i = g.lat,
k = Ob(i - c),
f = Ob(g.lng - f.lng);
c = Math.sin(k / 2) * Math.sin(k / 2) + Math.cos(Ob(c)) * Math.cos(Ob(i)) * Math.sin(f / 2) * Math.sin(f / 2);
b.gH = 6371E3 * 2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c))
}
c = new O("ondataload");
c.data = a;
b.dispatchEvent(c);
b.dispatchEvent(new O("onposition_changed"));
b.dispatchEvent(new O("onlinks_changed"));
b.dispatchEvent(new O("oncopyright_changed"), {
copyright: a.copyright
});
a.am && b.k.closeControl ? x.D.show(b.yR) : x.D.U(b.yR)
}
} else b.Ya = b.pl,
b.Lb = b.ql,
b.dispatchEvent(new O("onnoresult"))
}
var b = this.P,
c = this;
b.addEventListener("id_changed",
function() {
c.bp(b.Zb(), a)
});
b.addEventListener("iid_changed",
function() {
c.Qg(cc.al + "qt=idata&iid=" + b.qA + "&fn=",
function(b) {
if (b && b.result && 0 == b.result.error) {
var b = b.content[0].interinfo,
e = {};
e.am = b.BreakID;
for (var f = b.Defaultfloor,
g = p,
i = 0; i < b.Floors.length; i++) if (b.Floors[i].Floor == f) {
g = b.Floors[i];
break
}
e.id = g.StartID || g.Points[0].PID;
c.bp(e.id, a, e)
}
})
});
b.addEventListener("position_changed_inner",
function() {
c.pj(b.ha(), a)
})
},
bp: function(a, b) {
this.vd.getPanoramaById.push(arguments)
},
pj: function(a, b, c) {
this.vd.getPanoramaByLocation.push(arguments)
},
$D: function(a, b, c, d) {
this.vd.getVisiblePOIs.push(arguments)
},
xx: function(a, b) {
this.vd.getRecommendPanosById.push(arguments)
},
wx: function(a) {
this.vd.getPanoramaVersions.push(arguments)
},
cC: function(a, b) {
this.vd.checkPanoSupportByCityCode.push(arguments)
},
vx: function(a, b) {
this.vd.getPanoramaByPOIId.push(arguments)
},
mL: function(a) {
this.vd.getCopyrightProviders.push(arguments)
}
});
var Zd = cc.prototype;
S(Zd, {
getPanoramaById: Zd.bp,
getPanoramaByLocation: Zd.pj,
getPanoramaByPOIId: Zd.vx
});
function bc(a) {
Hc.call(this);
"api" == (a || {}).Pf ? Ra(za) : Ra(Ba)
}
bc.yG = z.sg("pano", "tile/");
bc.prototype = new Hc;
bc.prototype.getTilesUrl = function(a, b) {
var c = bc.yG[(a.x + a.y) % bc.yG.length] + "?udt=20150114&qt=tile&styles=pl&x=" + a.x + "&y=" + a.y + "&z=" + b;
x.da.la && 6 >= x.da.la && (c += "&color_dep=32");
return c
};
bc.prototype.ot = ca(o);
$d.Ud = new R;
function $d() {}
x.extend($d, {
jW: function(a, b, c) {
c = x.lang.Kc(c);
b = {
data: b
};
"position_changed" == a && (b.data = $d.Ud.zj(new Q(b.data.mercatorX, b.data.mercatorY)));
c.dispatchEvent(new O("on" + a), b)
}
});
var ae = $d;
S(ae, {
dispatchFlashEvent: ae.jW
});
var be = {
oP: 50
};
be.Gu = z.sg("pano")[0];
be.Cu = {
width: 220,
height: 60
};
x.extend(be, {
mp: function(a, b, c, d) {
if (!b || !c || !c.lngLat || !c.panoInstance) d();
else {
this.ho === j && (this.ho = new cc(p, {
Pf: "api"
}));
var e = this;
this.ho.cC(b,
function(b) {
b ? e.ho.pj(c.lngLat, be.oP,
function(b) {
if (b && b.id) {
var f = b.id,
k = b.th,
b = b.uh,
l = cc.Ud.lh(c.lngLat),
m = e.dS(l, {
x: k,
y: b
}),
k = e.wL(f, m, 0, be.Cu.width, be.Cu.height);
a.content = e.eS(a.content, k, c.titleTip, c.beforeDomId);
a.addEventListener("open",
function() {
ja.M(x.Dc("infoWndPano"), "click",
function() {
c.panoInstance.rc(f);
c.panoInstance.show();
c.panoInstance.Mc({
heading: m,
pitch: 0
})
})
})
}
d()
}) : d()
})
}
},
eS: function(a, b, c, d) {
var c = c || "",
e; ! d || !a.split(d)[0] ? (d = a, a = "") : (d = a.split(d)[0], e = d.lastIndexOf("<"), d = a.substring(0, e), a = a.substring(e));
e = [];
var f = be.Cu.width,
g = be.Cu.height;
e.push(d);
e.push("<div id='infoWndPano' class='panoInfoBox' style='height:" + g + "px;width:" + f + "px; margin-top: -19px;'>");
e.push("<img class='pano_thumnail_img' width='" + f + "' height='" + g + "' border='0' alt='" + c + "\u5916\u666f' title='" + c + "\u5916\u666f' src='" + b + "' onerror='Pano.PanoEntranceUtil.thumbnailNotFound(this, " + f + ", " + g + ");' />");
e.push("<div class='panoInfoBoxTitleBg' style='width:" + f + "px;'></div><a href='javascript:void(0)' class='panoInfoBoxTitleContent' >\u8fdb\u5165\u5168\u666f&gt;&gt;</a>");
e.push("</div>");
e.push(a);
return e.join("")
},
dS: function(a, b) {
var c = 90 - 180 * Math.atan2(a.y - b.y, a.x - b.x) / Math.PI;
0 > c && (c += 360);
return c
},
wL: function(a, b, c, d, e) {
var f = {
panoId: a,
panoHeading: b || 0,
panoPitch: c || 0,
width: d,
height: e
};
return (be.Gu + "?qt=pr3d&fovy=75&quality=80&panoid={panoId}&heading={panoHeading}&pitch={panoPitch}&width={width}&height={height}").replace(/\{(.*?)\}/g,
function(a, b) {
return f[b]
})
}
});
var ce = document,
de = Math,
ee = ce.createElement("div").style,
fe;
a: {
for (var ge = ["t", "webkitT", "MozT", "msT", "OT"], he, ie = 0, je = ge.length; ie < je; ie++) if (he = ge[ie] + "ransform", he in ee) {
fe = ge[ie].substr(0, ge[ie].length - 1);
break a
}
fe = q
}
var ke = fe ? "-" + fe.toLowerCase() + "-": "",
ne = le("transform"),
oe = le("transitionProperty"),
pe = le("transitionDuration"),
ve = le("transformOrigin"),
we = le("transitionTimingFunction"),
xe = le("transitionDelay"),
Ed = /android/gi.test(navigator.appVersion),
ye = /iphone|ipad/gi.test(navigator.appVersion),
ze = /hp-tablet/gi.test(navigator.appVersion),
Ae = le("perspective") in ee,
Be = "ontouchstart" in window && !ze,
Ce = fe !== q,
De = le("transition") in ee,
Ee = "onorientationchange" in window ? "orientationchange": "resize",
Fe = Be ? "touchstart": "mousedown",
Ge = Be ? "touchmove": "mousemove",
He = Be ? "touchend": "mouseup",
Ie = Be ? "touchcancel": "mouseup",
Je = fe === q ? q: {
"": "transitionend",
webkit: "webkitTransitionEnd",
Moz: "transitionend",
O: "otransitionend",
ms: "MSTransitionEnd"
} [fe],
Ke = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame ||
function(a) {
return setTimeout(a, 1)
},
Le = window.cancelRequestAnimationFrame || window.L4 || window.webkitCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || clearTimeout,
Me = Ae ? " translateZ(0)": "";
function Ne(a, b) {
var c = this,
d;
c.xn = "object" == typeof a ? a: ce.getElementById(a);
c.xn.style.overflow = "hidden";
c.Ob = c.xn.children[0];
c.options = {
jp: o,
vn: o,
x: 0,
y: 0,
Do: o,
jV: q,
Wx: o,
CE: o,
Tk: o,
Ai: q,
F_: 0,
Ew: q,
Ax: o,
mi: o,
Bi: o,
qD: Ed,
Ex: ye,
EW: ye && Ae,
jF: "",
zoom: q,
Vk: 1,
Zp: 4,
lW: 2,
UO: "scroll",
cu: q,
Gy: 1,
hN: p,
$M: function(a) {
a.preventDefault()
},
kN: p,
ZM: p,
jN: p,
YM: p,
by: p,
lN: p,
cN: p,
yp: p,
mN: p,
xp: p
};
for (d in b) c.options[d] = b[d];
c.x = c.options.x;
c.y = c.options.y;
c.options.Tk = Ce && c.options.Tk;
c.options.mi = c.options.jp && c.options.mi;
c.options.Bi = c.options.vn && c.options.Bi;
c.options.zoom = c.options.Tk && c.options.zoom;
c.options.Ai = De && c.options.Ai;
c.options.zoom && Ed && (Me = "");
c.Ob.style[oe] = c.options.Tk ? ke + "transform": "top left";
c.Ob.style[pe] = "0";
c.Ob.style[ve] = "0 0";
c.options.Ai && (c.Ob.style[we] = "cubic-bezier(0.33,0.66,0.66,1)");
c.options.Tk ? c.Ob.style[ne] = "translate(" + c.x + "px," + c.y + "px)" + Me: c.Ob.style.cssText += ";position:absolute;top:" + c.y + "px;left:" + c.x + "px";
c.options.Ai && (c.options.qD = o);
c.refresh();
c.ca(Ee, window);
c.ca(Fe); ! Be && "none" != c.options.UO && (c.ca("DOMMouseScroll"), c.ca("mousewheel"));
c.options.Ew && (c.uV = setInterval(function() {
c.sQ()
},
500));
this.options.Ax && (Event.prototype.stopImmediatePropagation || (document.body.removeEventListener = function(a, b, c) {
var d = Node.prototype.removeEventListener;
a === "click" ? d.call(document.body, a, b.PL || b, c) : d.call(document.body, a, b, c)
},
document.body.addEventListener = function(a, b, c) {
var d = Node.prototype.addEventListener;
a === "click" ? d.call(document.body, a, b.PL || (b.PL = function(a) {
a.kZ || b(a)
}), c) : d.call(document.body, a, b, c)
}), c.ca("click", document.body, o))
}
Ne.prototype = {
enabled: o,
x: 0,
y: 0,
Aj: [],
scale: 1,
xC: 0,
yC: 0,
Se: [],
uf: [],
UB: p,
Qy: 0,
handleEvent: function(a) {
switch (a.type) {
case Fe:
if (!Be && 0 !== a.button) break;
this.Qv(a);
break;
case Ge:
this.bT(a);
break;
case He:
case Ie:
this.bv(a);
break;
case Ee:
this.nB();
break;
case "DOMMouseScroll":
case "mousewheel":
this.FU(a);
break;
case Je:
this.BU(a);
break;
case "click":
this.DQ(a)
}
},
sQ: function() { ! this.ph && (!this.Wk && !(this.Wl || this.wy == this.Ob.offsetWidth * this.scale && this.Ip == this.Ob.offsetHeight * this.scale)) && this.refresh()
},
Hv: function(a) {
var b;
this[a + "Scrollbar"] ? (this[a + "ScrollbarWrapper"] || (b = ce.createElement("div"), this.options.jF ? b.className = this.options.jF + a.toUpperCase() : b.style.cssText = "position:absolute;z-index:100;" + ("h" == a ? "height:7px;bottom:1px;left:2px;right:" + (this.Bi ? "7": "2") + "px": "width:7px;bottom:" + (this.mi ? "7": "2") + "px;top:2px;right:1px"), b.style.cssText += ";pointer-events:none;" + ke + "transition-property:opacity;" + ke + "transition-duration:" + (this.options.EW ? "350ms": "0") + ";overflow:hidden;opacity:" + (this.options.Ex ? "0": "1"), this.xn.appendChild(b), this[a + "ScrollbarWrapper"] = b, b = ce.createElement("div"), this.options.jF || (b.style.cssText = "position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);" + ke + "background-clip:padding-box;" + ke + "box-sizing:border-box;" + ("h" == a ? "height:100%": "width:100%") + ";" + ke + "border-radius:3px;border-radius:3px"), b.style.cssText += ";pointer-events:none;" + ke + "transition-property:" + ke + "transform;" + ke + "transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);" + ke + "transition-duration:0;" + ke + "transform: translate(0,0)" + Me, this.options.Ai && (b.style.cssText += ";" + ke + "transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)"), this[a + "ScrollbarWrapper"].appendChild(b), this[a + "ScrollbarIndicator"] = b), "h" == a ? (this.ML = this.NL.clientWidth, this.TX = de.max(de.round(this.ML * this.ML / this.wy), 8), this.SX.style.width = this.TX + "px") : (this.LO = this.MO.clientHeight, this.$_ = de.max(de.round(this.LO * this.LO / this.Ip), 8), this.Z_.style.height = this.$_ + "px"), this.oB(a, o)) : this[a + "ScrollbarWrapper"] && (Ce && (this[a + "ScrollbarIndicator"].style[ne] = ""), this[a + "ScrollbarWrapper"].parentNode.removeChild(this[a + "ScrollbarWrapper"]), this[a + "ScrollbarWrapper"] = p, this[a + "ScrollbarIndicator"] = p)
},
nB: function() {
var a = this;
setTimeout(function() {
a.refresh()
},
Ed ? 200 : 0)
},
zr: function(a, b) {
this.Wk || (a = this.jp ? a: 0, b = this.vn ? b: 0, this.options.Tk ? this.Ob.style[ne] = "translate(" + a + "px," + b + "px) scale(" + this.scale + ")" + Me: (a = de.round(a), b = de.round(b), this.Ob.style.left = a + "px", this.Ob.style.top = b + "px"), this.x = a, this.y = b, this.oB("h"), this.oB("v"))
},
oB: function(a, b) {
var c = "h" == a ? this.x: this.y;
this[a + "Scrollbar"] && (c *= this[a + "ScrollbarProp"], 0 > c ? (this.options.qD || (c = this[a + "ScrollbarIndicatorSize"] + de.round(3 * c), 8 > c && (c = 8), this[a + "ScrollbarIndicator"].style["h" == a ? "width": "height"] = c + "px"), c = 0) : c > this[a + "ScrollbarMaxScroll"] && (this.options.qD ? c = this[a + "ScrollbarMaxScroll"] : (c = this[a + "ScrollbarIndicatorSize"] - de.round(3 * (c - this[a + "ScrollbarMaxScroll"])), 8 > c && (c = 8), this[a + "ScrollbarIndicator"].style["h" == a ? "width": "height"] = c + "px", c = this[a + "ScrollbarMaxScroll"] + (this[a + "ScrollbarIndicatorSize"] - c))), this[a + "ScrollbarWrapper"].style[xe] = "0", this[a + "ScrollbarWrapper"].style.opacity = b && this.options.Ex ? "0": "1", this[a + "ScrollbarIndicator"].style[ne] = "translate(" + ("h" == a ? c + "px,0)": "0," + c + "px)") + Me)
},
DQ: function(a) {
if (a.zR === o) return this.MB = a.target,
this.bx = Date.now(),
o;
if (this.MB && this.bx) {
if (600 < Date.now() - this.bx) return this.bx = this.MB = p,
o
} else {
for (var b = a.target; b != this.Ob && b != document.body;) b = b.parentNode;
if (b == document.body) return o
}
for (b = a.target; 1 != b.nodeType;) b = b.parentNode;
b = b.tagName.toLowerCase();
if ("select" != b && "input" != b && "textarea" != b) return a.stopImmediatePropagation ? a.stopImmediatePropagation() : a.kZ = o,
a.stopPropagation(),
a.preventDefault(),
this.bx = this.MB = p,
q
},
Qv: function(a) {
var b = Be ? a.touches[0] : a,
c,
d;
if (this.enabled) {
this.options.$M && this.options.$M.call(this, a); (this.options.Ai || this.options.zoom) && this.pJ(0);
this.Wk = this.Wl = this.ph = q;
this.HC = this.GC = this.jw = this.hw = this.NC = this.MC = 0;
this.options.zoom && (Be && 1 < a.touches.length) && (d = de.abs(a.touches[0].pageX - a.touches[1].pageX), c = de.abs(a.touches[0].pageY - a.touches[1].pageY), this.H_ = de.sqrt(d * d + c * c), this.ey = de.abs(a.touches[0].pageX + a.touches[1].pageX - 2 * this.UF) / 2 - this.x, this.fy = de.abs(a.touches[0].pageY + a.touches[1].pageY - 2 * this.VF) / 2 - this.y, this.options.yp && this.options.yp.call(this, a));
if (this.options.Wx && (this.options.Tk ? (c = getComputedStyle(this.Ob, p)[ne].replace(/[^0-9\-.,]/g, "").split(","), d = +(c[12] || c[4]), c = +(c[13] || c[5])) : (d = +getComputedStyle(this.Ob, p).left.replace(/[^0-9-]/g, ""), c = +getComputedStyle(this.Ob, p).top.replace(/[^0-9-]/g, "")), d != this.x || c != this.y)) this.options.Ai ? this.Wd(Je) : Le(this.UB),
this.Aj = [],
this.zr(d, c),
this.options.by && this.options.by.call(this);
this.kw = this.x;
this.lw = this.y;
this.fu = this.x;
this.gu = this.y;
this.th = b.pageX;
this.uh = b.pageY;
this.startTime = a.timeStamp || Date.now();
this.options.kN && this.options.kN.call(this, a);
this.ca(Ge, window);
this.ca(He, window);
this.ca(Ie, window)
}
},
bT: function(a) {
var b = Be ? a.touches[0] : a,
c = b.pageX - this.th,
d = b.pageY - this.uh,
e = this.x + c,
f = this.y + d,
g = a.timeStamp || Date.now();
this.options.ZM && this.options.ZM.call(this, a);
if (this.options.zoom && Be && 1 < a.touches.length) e = de.abs(a.touches[0].pageX - a.touches[1].pageX),
f = de.abs(a.touches[0].pageY - a.touches[1].pageY),
this.G_ = de.sqrt(e * e + f * f),
this.Wk = o,
b = 1 / this.H_ * this.G_ * this.scale,
b < this.options.Vk ? b = 0.5 * this.options.Vk * Math.pow(2, b / this.options.Vk) : b > this.options.Zp && (b = 2 * this.options.Zp * Math.pow(0.5, this.options.Zp / b)),
this.rp = b / this.scale,
e = this.ey - this.ey * this.rp + this.x,
f = this.fy - this.fy * this.rp + this.y,
this.Ob.style[ne] = "translate(" + e + "px," + f + "px) scale(" + b + ")" + Me,
this.options.mN && this.options.mN.call(this, a);
else {
this.th = b.pageX;
this.uh = b.pageY;
if (0 < e || e < this.fe) e = this.options.Do ? this.x + c / 2 : 0 <= e || 0 <= this.fe ? 0 : this.fe;
if (f > this.rf || f < this.nd) f = this.options.Do ? this.y + d / 2 : f >= this.rf || 0 <= this.nd ? this.rf: this.nd;
this.MC += c;
this.NC += d;
this.hw = de.abs(this.MC);
this.jw = de.abs(this.NC);
6 > this.hw && 6 > this.jw || (this.options.CE && (this.hw > this.jw + 5 ? (f = this.y, d = 0) : this.jw > this.hw + 5 && (e = this.x, c = 0)), this.ph = o, this.zr(e, f), this.GC = 0 < c ? -1 : 0 > c ? 1 : 0, this.HC = 0 < d ? -1 : 0 > d ? 1 : 0, 300 < g - this.startTime && (this.startTime = g, this.fu = this.x, this.gu = this.y), this.options.jN && this.options.jN.call(this, a))
}
},
bv: function(a) {
if (! (Be && 0 !== a.touches.length)) {
var b = this,
c = Be ? a.changedTouches[0] : a,
d,
e,
f = {
Ba: 0,
time: 0
},
g = {
Ba: 0,
time: 0
},
i = (a.timeStamp || Date.now()) - b.startTime;
d = b.x;
e = b.y;
b.Wd(Ge, window);
b.Wd(He, window);
b.Wd(Ie, window);
b.options.YM && b.options.YM.call(b, a);
if (b.Wk) d = b.scale * b.rp,
d = Math.max(b.options.Vk, d),
d = Math.min(b.options.Zp, d),
b.rp = d / b.scale,
b.scale = d,
b.x = b.ey - b.ey * b.rp + b.x,
b.y = b.fy - b.fy * b.rp + b.y,
b.Ob.style[pe] = "200ms",
b.Ob.style[ne] = "translate(" + b.x + "px," + b.y + "px) scale(" + b.scale + ")" + Me,
b.Wk = q,
b.refresh(),
b.options.xp && b.options.xp.call(b, a);
else {
if (b.ph) {
if (300 > i && b.options.Wx) {
f = d ? b.mI(d - b.fu, i, -b.x, b.wy - b.uu + b.x, b.options.Do ? b.uu: 0) : f;
g = e ? b.mI(e - b.gu, i, -b.y, 0 > b.nd ? b.Ip - b.yn + b.y - b.rf: 0, b.options.Do ? b.yn: 0) : g;
d = b.x + f.Ba;
e = b.y + g.Ba;
if (0 < b.x && 0 < d || b.x < b.fe && d < b.fe) f = {
Ba: 0,
time: 0
};
if (b.y > b.rf && e > b.rf || b.y < b.nd && e < b.nd) g = {
Ba: 0,
time: 0
}
}
f.Ba || g.Ba ? (c = de.max(de.max(f.time, g.time), 10), b.options.cu && (f = d - b.kw, g = e - b.lw, de.abs(f) < b.options.Gy && de.abs(g) < b.options.Gy ? b.scrollTo(b.kw, b.lw, 200) : (f = b.gJ(d, e), d = f.x, e = f.y, c = de.max(f.time, c))), b.scrollTo(de.round(d), de.round(e), c)) : b.options.cu ? (f = d - b.kw, g = e - b.lw, de.abs(f) < b.options.Gy && de.abs(g) < b.options.Gy ? b.scrollTo(b.kw, b.lw, 200) : (f = b.gJ(b.x, b.y), (f.x != b.x || f.y != b.y) && b.scrollTo(f.x, f.y, f.time))) : b.jo(200)
} else {
if (Be) if (b.FK && b.options.zoom) clearTimeout(b.FK),
b.FK = p,
b.options.yp && b.options.yp.call(b, a),
b.zoom(b.th, b.uh, 1 == b.scale ? b.options.lW: 1),
b.options.xp && setTimeout(function() {
b.options.xp.call(b, a)
},
200);
else if (this.options.Ax) {
for (d = c.target; 1 != d.nodeType;) d = d.parentNode;
e = d.tagName.toLowerCase();
"select" != e && "input" != e && "textarea" != e ? (e = ce.createEvent("MouseEvents"), e.initMouseEvent("click", o, o, a.view, 1, c.screenX, c.screenY, c.clientX, c.clientY, a.ctrlKey, a.altKey, a.shiftKey, a.metaKey, 0, p), e.zR = o, d.dispatchEvent(e)) : d.focus()
}
b.jo(400)
}
b.options.lN && b.options.lN.call(b, a)
}
}
},
jo: function(a) {
var b = 0 <= this.x ? 0 : this.x < this.fe ? this.fe: this.x,
c = this.y >= this.rf || 0 < this.nd ? this.rf: this.y < this.nd ? this.nd: this.y;
if (b == this.x && c == this.y) {
if (this.ph && (this.ph = q, this.options.by && this.options.by.call(this)), this.mi && this.options.Ex && ("webkit" == fe && (this.NL.style[xe] = "300ms"), this.NL.style.opacity = "0"), this.Bi && this.options.Ex)"webkit" == fe && (this.MO.style[xe] = "300ms"),
this.MO.style.opacity = "0"
} else this.scrollTo(b, c, a || 0)
},
FU: function(a) {
var b = this,
c, d;
if ("wheelDeltaX" in a) c = a.wheelDeltaX / 12,
d = a.wheelDeltaY / 12;
else if ("wheelDelta" in a) c = d = a.wheelDelta / 12;
else if ("detail" in a) c = d = 3 * -a.detail;
else return;
if ("zoom" == b.options.UO) {
if (d = b.scale * Math.pow(2, 1 / 3 * (d ? d / Math.abs(d) : 0)), d < b.options.Vk && (d = b.options.Vk), d > b.options.Zp && (d = b.options.Zp), d != b.scale) ! b.Qy && b.options.yp && b.options.yp.call(b, a),
b.Qy++,
b.zoom(a.pageX, a.pageY, d, 400),
setTimeout(function() {
b.Qy--; ! b.Qy && b.options.xp && b.options.xp.call(b, a)
},
400)
} else c = b.x + c,
d = b.y + d,
0 < c ? c = 0 : c < b.fe && (c = b.fe),
d > b.rf ? d = b.rf: d < b.nd && (d = b.nd),
0 > b.nd && b.scrollTo(c, d, 0)
},
BU: function(a) {
a.target == this.Ob && (this.Wd(Je), this.AB())
},
AB: function() {
var a = this,
b = a.x,
c = a.y,
d = Date.now(),
e,
f,
g;
a.Wl || (a.Aj.length ? (e = a.Aj.shift(), e.x == b && e.y == c && (e.time = 0), a.Wl = o, a.ph = o, a.options.Ai) ? (a.pJ(e.time), a.zr(e.x, e.y), a.Wl = q, e.time ? a.ca(Je) : a.jo(0)) : (g = function() {
var i = Date.now(),
k;
if (i >= d + e.time) {
a.zr(e.x, e.y);
a.Wl = q;
a.options.TY && a.options.TY.call(a);
a.AB()
} else {
i = (i - d) / e.time - 1;
f = de.sqrt(1 - i * i);
i = (e.x - b) * f + b;
k = (e.y - c) * f + c;
a.zr(i, k);
if (a.Wl) a.UB = Ke(g)
}
},
g()) : a.jo(400))
},
pJ: function(a) {
a += "ms";
this.Ob.style[pe] = a;
this.mi && (this.SX.style[pe] = a);
this.Bi && (this.Z_.style[pe] = a)
},
mI: function(a, b, c, d, e) {
var b = de.abs(a) / b,
f = b * b / 0.0012;
0 < a && f > c ? (c += e / (6 / (6.0E-4 * (f / b))), b = b * c / f, f = c) : 0 > a && f > d && (d += e / (6 / (6.0E-4 * (f / b))), b = b * d / f, f = d);
return {
Ba: f * (0 > a ? -1 : 1),
time: de.round(b / 6.0E-4)
}
},
Zj: function(a) {
for (var b = -a.offsetLeft,
c = -a.offsetTop; a = a.offsetParent;) b -= a.offsetLeft,
c -= a.offsetTop;
a != this.xn && (b *= this.scale, c *= this.scale);
return {
left: b,
top: c
}
},
gJ: function(a, b) {
var c, d, e;
e = this.Se.length - 1;
c = 0;
for (d = this.Se.length; c < d; c++) if (a >= this.Se[c]) {
e = c;
break
}
e == this.xC && (0 < e && 0 > this.GC) && e--;
a = this.Se[e];
d = (d = de.abs(a - this.Se[this.xC])) ? 500 * (de.abs(this.x - a) / d) : 0;
this.xC = e;
e = this.uf.length - 1;
for (c = 0; c < e; c++) if (b >= this.uf[c]) {
e = c;
break
}
e == this.yC && (0 < e && 0 > this.HC) && e--;
b = this.uf[e];
c = (c = de.abs(b - this.uf[this.yC])) ? 500 * (de.abs(this.y - b) / c) : 0;
this.yC = e;
e = de.round(de.max(d, c)) || 200;
return {
x: a,
y: b,
time: e
}
},
ca: function(a, b, c) { (b || this.Ob).addEventListener(a, this, !!c)
},
Wd: function(a, b, c) { (b || this.Ob).removeEventListener(a, this, !!c)
},
DC: ha(2),
refresh: function() {
var a, b, c, d = 0;
b = 0;
this.scale < this.options.Vk && (this.scale = this.options.Vk);
this.uu = this.xn.clientWidth || 1;
this.yn = this.xn.clientHeight || 1;
this.rf = -this.options.F_ || 0;
this.wy = de.round(this.Ob.offsetWidth * this.scale);
this.Ip = de.round((this.Ob.offsetHeight + this.rf) * this.scale);
this.fe = this.uu - this.wy;
this.nd = this.yn - this.Ip + this.rf;
this.HC = this.GC = 0;
this.options.hN && this.options.hN.call(this);
this.jp = this.options.jp && 0 > this.fe;
this.vn = this.options.vn && (!this.options.jV && !this.jp || this.Ip > this.yn);
this.mi = this.jp && this.options.mi;
this.Bi = this.vn && this.options.Bi && this.Ip > this.yn;
a = this.Zj(this.xn);
this.UF = -a.left;
this.VF = -a.top;
if ("string" == typeof this.options.cu) {
this.Se = [];
this.uf = [];
c = this.Ob.querySelectorAll(this.options.cu);
a = 0;
for (b = c.length; a < b; a++) d = this.Zj(c[a]),
d.left += this.UF,
d.top += this.VF,
this.Se[a] = d.left < this.fe ? this.fe: d.left * this.scale,
this.uf[a] = d.top < this.nd ? this.nd: d.top * this.scale
} else if (this.options.cu) {
for (this.Se = []; d >= this.fe;) this.Se[b] = d,
d -= this.uu,
b++;
this.fe % this.uu && (this.Se[this.Se.length] = this.fe - this.Se[this.Se.length - 1] + this.Se[this.Se.length - 1]);
b = d = 0;
for (this.uf = []; d >= this.nd;) this.uf[b] = d,
d -= this.yn,
b++;
this.nd % this.yn && (this.uf[this.uf.length] = this.nd - this.uf[this.uf.length - 1] + this.uf[this.uf.length - 1])
}
this.Hv("h");
this.Hv("v");
this.Wk || (this.Ob.style[pe] = "0", this.jo(400))
},
scrollTo: function(a, b, c, d) {
var e = a;
this.stop();
e.length || (e = [{
x: a,
y: b,
time: c,
mZ: d
}]);
a = 0;
for (b = e.length; a < b; a++) e[a].mZ && (e[a].x = this.x - e[a].x, e[a].y = this.y - e[a].y),
this.Aj.push({
x: e[a].x,
y: e[a].y,
time: e[a].time || 0
});
this.AB()
},
disable: function() {
this.stop();
this.jo(0);
this.enabled = q;
this.Wd(Ge, window);
this.Wd(He, window);
this.Wd(Ie, window)
},
enable: function() {
this.enabled = o
},
stop: function() {
this.options.Ai ? this.Wd(Je) : Le(this.UB);
this.Aj = [];
this.Wl = this.ph = q
},
zoom: function(a, b, c, d) {
var e = c / this.scale;
this.options.Tk && (this.Wk = o, d = d === j ? 200 : d, a = a - this.UF - this.x, b = b - this.VF - this.y, this.x = a - a * e + this.x, this.y = b - b * e + this.y, this.scale = c, this.refresh(), this.x = 0 < this.x ? 0 : this.x < this.fe ? this.fe: this.x, this.y = this.y > this.rf ? this.rf: this.y < this.nd ? this.nd: this.y, this.Ob.style[pe] = d + "ms", this.Ob.style[ne] = "translate(" + this.x + "px," + this.y + "px) scale(" + c + ")" + Me, this.Wk = q)
}
};
function le(a) {
if ("" === fe) return a;
a = a.charAt(0).toUpperCase() + a.substr(1);
return fe + a
}
ee = p;
function Oe(a) {
this.k = {
anchor: Wb,
offset: new N(0, 0),
maxWidth: "100%",
imageHeight: 80
};
var a = a || {},
b;
for (b in a) this.k[b] = a[b];
this.Il = new cc(p, {
Pf: "api"
});
this.$j = [];
this.P = p;
this.eg = {
height: this.k.imageHeight,
width: this.k.imageHeight * Pe
};
this.Oc = this.pB = this.am = this.Xc = p
}
var Qe = [0, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 5, 5, 5, 6, 6, 7, 8, 8, 8, 9, 10],
Re = "\u5176\u4ed6 \u6b63\u95e8 \u623f\u578b \u8bbe\u65bd \u6b63\u95e8 \u9910\u996e\u8bbe\u65bd \u5176\u4ed6\u8bbe\u65bd \u6b63\u95e8 \u8bbe\u65bd \u89c2\u5f71\u5385 \u5176\u4ed6\u8bbe\u65bd".split(" ");
z.Um(function(a) {
var b = p;
a.addEventListener("position_changed",
function() {
a.k.visible && a.k.albumsControl === o && (b ? b.oy(a.Zb()) : (b = new Oe(a.k.albumsControlOptions), b.ra(a)))
});
a.addEventListener("albums_visible_changed",
function() {
a.k.albumsControl === o ? (b ? b.oy(a.Zb()) : (b = new Oe(a.k.albumsControlOptions), b.ra(a)), b.show()) : b.U()
});
a.addEventListener("albums_options_changed",
function() {
b && b.Kk(a.k.albumsControlOptions)
});
a.addEventListener("visible_changed",
function() {
b && (a.ZD() ? a.k.albumsControl === o && (b.B.style.visibility = "visible") : b.B.style.visibility = "hidden")
})
});
var Pe = 1.8;
G() && (Pe = 1);
x.extend(Oe.prototype, {
Kk: function(a) {
for (var b in a) this.k[b] = a[b];
a = this.k.imageHeight + "px";
this.qc(this.k.anchor);
this.B.style.width = isNaN(Number(this.k.maxWidth)) === o ? this.k.maxWidth: this.k.maxWidth + "px";
this.B.style.height = a;
this.fk.style.height = a;
this.Wh.style.height = a;
this.eg = {
height: this.k.imageHeight,
width: this.k.imageHeight * Pe
};
this.ek.style.height = this.eg.height - 6 + "px";
this.ek.style.width = this.eg.width - 6 + "px";
this.oy(this.P.Zb(), o)
},
ra: function(a) {
this.P = a;
this.fs();
this.bQ();
this.gY();
this.oy(a.Zb())
},
fs: function() {
var a = this.k.imageHeight + "px";
this.B = M("div");
var b = this.B.style;
b.cssText = "background:rgb(37,37,37);background:rgba(37,37,37,0.9);";
b.position = "absolute";
b.zIndex = "2000";
b.width = isNaN(Number(this.k.maxWidth)) === o ? this.k.maxWidth: this.k.maxWidth + "px";
b.padding = "8px 0";
b.visibility = "hidden";
b.height = a;
this.fk = M("div");
b = this.fk.style;
b.position = "absolute";
b.overflow = "hidden";
b.width = "100%";
b.height = a;
this.Wh = M("div");
b = this.Wh.style;
b.height = a;
this.fk.appendChild(this.Wh);
this.B.appendChild(this.fk);
this.P.B.appendChild(this.B);
this.ek = M("div", {
"class": "pano_photo_item_seleted"
});
this.ek.style.height = this.eg.height - 6 + "px";
this.ek.style.width = this.eg.width - 6 + "px";
this.qc(this.k.anchor)
},
DH: function(a) {
for (var b = this.$j,
c = b.length - 1; 0 <= c; c--) if (b[c].panoId == a) return c;
return - 1
},
oy: function(a, b) {
if (b || !this.$j[this.Xc] || !(this.$j[this.Xc].panoId == a && 3 !== this.$j[this.Xc].recoType)) {
var c = this,
d = this.DH(a); ! b && -1 !== d && this.$j[d] && 3 !== this.$j[d].recoType ? this.Mp(d) : this.yX(function(a) {
for (var b = {},
d, i, k = q,
l = [], m = 0, n = a.length; m < n; m++) d = a[m].catlog,
i = a[m].floor,
j !== d && ("" === d && j !== i ? (k = o, b[i] || (b[i] = []), b[i].push(a[m])) : (b[Qe[d]] || (b[Qe[d]] = []), b[Qe[d]].push(a[m])));
for (var t in b) k ? l.push({
data: t + "F",
index: t
}) : l.push({
data: Re[t],
index: t
});
c.UG = b;
c.Ni = l;
c.El(a);
0 == a.length ? c.U() : c.show()
})
}
},
SV: function() {
if (!this.Ki) {
var a = this.mX(this.Ni),
b = M("div");
b.style.cssText = ["width:" + 134 * this.Ni.length + "px;", "overflow:hidden;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;"].join("");
b.innerHTML = a;
a = M("div");
a.appendChild(b);
a.style.cssText = "position:absolute;top:-25px;background:rgb(37,37,37);background:rgba(37,37,37,0.9);border-bottom:1px solid #4e596a;width:100%;line-height:25px;height:25px;overflow:scroll;outline:0";
new Ne(a, {
Do: q,
Wx: o,
mi: q,
Bi: q,
vn: q,
CE: o,
Ew: o,
Ax: o
});
this.B.appendChild(a);
for (var c = this,
d = b.getElementsByTagName("span"), e = 0, f = d.length; e < f; e++) b = d[e],
x.M(b, "click",
function() {
if (this.getAttribute("dataindex")) {
c.El(c.UG[this.getAttribute("dataindex")]);
for (var a = 0,
b = d.length; a < b; a++) d[a].style.color = "#FFFFFF";
this.style.color = "#3383FF"
}
});
this.Ki = a
}
},
PV: function() {
if (this.Ki) a = this.kL(this.Ni),
this.rQ.innerHTML = a;
else {
var a = this.kL(this.Ni),
b = M("ul"),
c = this;
b.style.cssText = "list-style: none;padding:0px;margin:0px;display:block;width:60px;position:absolute;top:7px";
b.innerHTML = a;
x.M(b, "click",
function(a) {
if (a = (a.srcElement || a.target).getAttribute("dataindex")) {
c.El(c.UG[a]);
for (var d = b.getElementsByTagName("li"), e = 0, f = d.length; e < f; e++) d[e].childNodes[0].getAttribute("dataindex") === a ? x.D.Ua(d[e], "pano_catlogLiActive") : x.D.Sb(d[e], "pano_catlogLiActive")
}
});
var a = M("div"),
d = M("a"),
e = M("span"),
f = M("a"),
g = M("span"),
i = ["background:url(" + E.qa + "panorama/catlog_icon.png) no-repeat;", "display:block;width:10px;height:7px;margin:0 auto;"].join("");
e.style.cssText = i + "background-position:-18px 0;";
d.style.cssText = "background:#1C1C1C;display:block;position:absolute;width:58px;";
g.style.cssText = i + "background-position:0 0;";
f.style.cssText = "background:#1C1C1C;display:block;position:absolute;width:58px;";
f.style.top = this.k.imageHeight - 7 + "px";
a.style.cssText = "position:absolute;top:0px;left:0px;width:60px;";
d.appendChild(e);
f.appendChild(g);
x.M(d, "mouseover",
function() {
var a = parseInt(b.style.top, 10);
7 !== a && (e.style.backgroundPosition = "-27px 0");
new rb({
Gc: 60,
jc: sb.Es,
duration: 300,
va: function(c) {
b.style.top = a + (7 - a) * c + "px"
}
})
});
x.M(d, "mouseout",
function() {
e.style.backgroundPosition = "-18px 0"
});
x.M(f, "mouseover",
function() {
var a = parseInt(b.style.top, 10),
d = c.k.imageHeight - 14;
if (! (parseInt(b.offsetHeight, 10) < d)) {
var e = d - parseInt(b.offsetHeight, 10) + 7;
e !== a && (g.style.backgroundPosition = "-9px 0");
new rb({
Gc: 60,
jc: sb.Es,
duration: 300,
va: function(c) {
b.style.top = a + (e - a) * c + "px"
}
})
}
});
x.M(f, "mouseout",
function() {
g.style.backgroundPosition = "0 0"
});
a.appendChild(d);
a.appendChild(f);
d = M("div");
d.style.cssText = ["position:absolute;z-index:2001;left:20px;", "height:" + this.k.imageHeight + "px;", "width:62px;overflow:hidden;background:rgb(37,37,37);background:rgba(37,37,37,0.9);"].join("");
d.appendChild(b);
d.appendChild(a);
this.Ki = d;
this.rQ = b;
this.B.appendChild(d)
}
},
QV: function() {
if (this.Ni && !(0 >= this.Ni.length)) {
var a = M("div");
a.innerHTML = this.Xz;
a.style.cssText = "position:absolute;background:#252525";
this.B.appendChild(a);
this.Js = a;
this.Oc.fg.style.left = this.eg.width + 8 + "px";
this.Ki && (this.Ki.style.left = parseInt(this.Ki.style.left, 10) + this.eg.width + 8 + "px");
var b = this;
x.M(a, "click",
function() {
b.P.rc(b.AW)
})
}
},
El: function(a) {
this.$j = a;
this.k.showCatalog && (0 < this.Ni.length ? (Va() ? this.PV() : this.SV(), this.Oc.offsetLeft = 60) : (this.Js && (this.B.removeChild(this.Js), this.Js = p, this.Oc.fg.style.left = "0px"), this.Ki && (this.B.removeChild(this.Ki), this.Ki = p), this.Oc.offsetLeft = 0));
var b = this.gX(a);
Va() && (this.Ni && 0 < this.Ni.length && this.k.showExit && this.Xz) && (this.Oc.offsetLeft += this.eg.width + 8, this.Js ? this.Js.innerHTML = this.Xz: this.QV());
this.Wh.innerHTML = b;
this.Wh.style.width = (this.eg.width + 8) * a.length + 8 + "px";
a = this.B.offsetWidth;
b = this.Wh.offsetWidth;
this.Oc.Qs && (b += this.Oc.Qs());
b < a - 2 * this.Oc.Ei - this.Oc.offsetLeft ? this.B.style.width = b + this.Oc.offsetLeft + "px": (this.B.style.width = isNaN(Number(this.k.maxWidth)) === o ? this.k.maxWidth: this.k.maxWidth + "px", b < this.B.offsetWidth - 2 * this.Oc.Ei - this.Oc.offsetLeft && (this.B.style.width = b + this.Oc.offsetLeft + "px"));
this.Oc.refresh();
this.pB = this.Wh.children;
this.Wh.appendChild(this.ek);
this.ek.style.left = "-100000px";
a = this.DH(this.P.Zb(), this.h1); - 1 !== a && this.Mp(a)
},
mX: function(a) {
for (var b = "",
c, d = 0,
e = a.length; d < e; d++) c = '<div style="color:white;opacity:0.5;margin:0 35px;float:left;text-align: center"><span dataIndex="' + a[d].index + '">' + a[d].data + "</span></div>",
b += c;
return b
},
kL: function(a) {
for (var b = "",
c, d = 0,
e = a.length; d < e; d++) c = '<li class="pano_catlogLi"><span style="display:block;width:100%;" dataIndex="' + a[d].index + '">' + a[d].data + "</span></li>",
b += c;
return b
},
gX: function(a) {
for (var b, c, d, e, f = [], g = this.eg.height, i = this.eg.width, k = 0; k < a.length; k++) b = a[k],
recoType = b.recoType,
d = b.panoId,
e = b.name,
c = b.heading,
b = b.pitch,
c = be.wL(d, c, b, 198, 108),
b = '<a href="javascript:void(0);" class="pano_photo_item" data-index="' + k + '"><img style="width:' + (i - 2) + "px;height:" + (g - 2) + 'px;" data-index="' + k + '" name="' + e + '" src="' + c + '" alt="' + e + '"/><span class="pano_photo_decs" data-index="' + k + '" style="width:' + i + "px;font-size:" + Math.floor(g / 6) + "px; line-height:" + Math.floor(g / 6) + 'px;"><em class="pano_poi_' + recoType + '"></em>' + e + "</span></a>",
3 === recoType ? Va() ? (this.Xz = b, this.AW = d, a.splice(k, 1), k--) : (b = '<a href="javascript:void(0);" class="pano_photo_item" data-index="' + k + '"><img style="width:' + (i - 2) + "px;height:" + (g - 2) + 'px;" data-index="' + k + '" name="' + e + '" src="' + c + '" alt="' + e + '"/><div style="background:rgba(37,37,37,0.5);position:absolute;top:0px;left:0px;width:100%;height:100%;text-align: center;line-height:' + this.k.imageHeight + 'px;" data-index="' + k + '"><img src="' + E.qa + 'panorama/photoexit.png" style="border:none;vertical-align:middle;" data-index="' + k + '" alt=""/></div></a>', f.push(b)) : f.push(b);
return f.join("")
},
yX: function(a) {
var b = this,
c = this.P.Zb();
c && this.Il.xx(c,
function(d) {
b.P.Zb() === c && a(d)
})
},
qc: function(a) {
if (!Xa(a) || isNaN(a) || a < Ub || 3 < a) a = this.defaultAnchor;
var b = this.B,
c = this.k.offset.width,
d = this.k.offset.height;
b.style.left = b.style.top = b.style.right = b.style.bottom = "auto";
switch (a) {
case Ub:
b.style.top = d + "px";
b.style.left = c + "px";
break;
case Vb:
b.style.top = d + "px";
b.style.right = c + "px";
break;
case Wb:
b.style.bottom = d + "px";
b.style.left = c + "px";
break;
case 3:
b.style.bottom = d + "px",
b.style.right = c + "px"
}
},
bQ: function() {
this.$P()
},
$P: function() {
var a = this;
x.M(this.B, "touchstart",
function(a) {
a.stopPropagation()
});
x.M(this.fk, "click",
function(b) {
if ((b = (b.srcElement || b.target).getAttribute("data-index")) && b != a.Xc) a.Mp(b),
a.P.rc(a.$j[b].panoId)
});
x.M(this.Wh, "mouseover",
function(b) {
b = (b.srcElement || b.target).getAttribute("data-index");
b !== p && a.lK(b, o)
});
this.P.addEventListener("size_changed",
function() {
isNaN(Number(a.k.maxWidth)) && a.Kk({
maxWidth: a.k.maxWidth
})
})
},
Mp: function(a) {
this.ek.style.left = this.pB[a].offsetLeft + 8 + "px";
this.ek.setAttribute("data-index", this.pB[a].getAttribute("data-index"));
this.Xc = a;
this.lK(a)
},
lK: function(a, b) {
var c = this.eg.width + 8,
d = 0;
this.Oc.Qs && (d = this.Oc.Qs() / 2);
var e = this.fk.offsetWidth - 2 * d,
f = this.Wh.offsetLeft || this.Oc.x,
f = f - d,
g = -a * c;
g > f && this.Oc.scrollTo(g + d);
c = g - c;
f -= e;
c < f && (!b || b && 8 < g - f) && this.Oc.scrollTo(c + e + d)
},
gY: function() {
this.Oc = G() ? new Ne(this.fk, {
Do: q,
Wx: o,
mi: q,
Bi: q,
vn: q,
CE: o,
Ew: o,
Ax: o
}) : new Se(this.fk)
},
U: function() {
this.B.style.visibility = "hidden"
},
show: function() {
this.B.style.visibility = "visible"
}
});
function Se(a) {
this.B = a;
this.Sg = a.children[0];
this.Nr = p;
this.Ei = 20;
this.offsetLeft = 0;
this.ra()
}
Se.prototype = {
ra: function() {
this.Sg.style.position = "relative";
this.refresh();
this.fs();
this.Zl()
},
refresh: function() {
this.eo = this.B.offsetWidth - this.Qs();
this.PA = -(this.Sg.offsetWidth - this.eo - this.Ei);
this.tv = this.Ei + this.offsetLeft;
this.Sg.style.left = this.tv + "px";
this.Sg.children[0] && (this.Nr = this.Sg.children[0].offsetWidth);
this.fg && (this.fg.children[0].style.marginTop = this.Fr.children[0].style.marginTop = this.fg.offsetHeight / 2 - this.fg.children[0].offsetHeight / 2 + "px")
},
Qs: function() {
return 2 * this.Ei
},
fs: function() {
this.Iv = M("div");
this.Iv.innerHTML = '<a class="pano_photo_arrow_l" style="background:rgb(37,37,37);background:rgba(37,37,37,0.9);" href="javascript:void(0)" title="\u4e0a\u4e00\u9875"><span class="pano_arrow_l"></span></a><a class="pano_photo_arrow_r" style="background:rgb(37,37,37);background:rgba(37,37,37,0.9);" href="javascript:void(0)" title="\u4e0b\u4e00\u9875"><span class="pano_arrow_r"></span></a>';
this.fg = this.Iv.children[0];
this.Fr = this.Iv.children[1];
this.B.appendChild(this.Iv);
this.fg.children[0].style.marginTop = this.Fr.children[0].style.marginTop = this.fg.offsetHeight / 2 - this.fg.children[0].offsetHeight / 2 + "px"
},
Zl: function() {
var a = this;
x.M(this.fg, "click",
function() {
a.scrollTo(a.Sg.offsetLeft + a.eo)
});
x.M(this.Fr, "click",
function() {
a.scrollTo(a.Sg.offsetLeft - a.eo)
})
},
CU: function() {
x.D.Sb(this.fg, "pano_arrow_disable");
x.D.Sb(this.Fr, "pano_arrow_disable");
var a = this.Sg.offsetLeft;
a >= this.tv && x.D.Ua(this.fg, "pano_arrow_disable");
a - this.eo <= this.PA && x.D.Ua(this.Fr, "pano_arrow_disable")
},
scrollTo: function(a) {
a = a < this.Sg.offsetLeft ? Math.ceil((a - this.Ei - this.eo) / this.Nr) * this.Nr + this.eo + this.Ei - 8 : Math.ceil((a - this.Ei) / this.Nr) * this.Nr + this.Ei;
a < this.PA ? a = this.PA: a > this.tv && (a = this.tv);
var b = this.Sg.offsetLeft,
c = this;
new rb({
Gc: 60,
jc: sb.Es,
duration: 300,
va: function(d) {
c.Sg.style.left = b + (a - b) * d + "px"
},
finish: function() {
c.CU()
}
})
}
};
z.Map = La;
z.Hotspot = hb;
z.MapType = Vc;
z.Point = H;
z.Pixel = Q;
z.Size = N;
z.Bounds = eb;
z.TileLayer = Hc;
z.Projection = hc;
z.MercatorProjection = R;
z.PerspectiveProjection = gb;
z.Copyright = function(a, b, c) {
this.id = a;
this.hb = b;
this.content = c
};
z.Overlay = kc;
z.Label = uc;
z.GroundOverlay = vc;
z.PointCollection = zc;
z.Marker = T;
z.Icon = qc;
z.IconSequence = sc;
z.Symbol = rc;
z.Polyline = Dc;
z.Polygon = Cc;
z.InfoWindow = tc;
z.Circle = Ec;
z.Control = Tb;
z.NavigationControl = ib;
z.GeolocationControl = Xb;
z.OverviewMapControl = kb;
z.CopyrightControl = Yb;
z.ScaleControl = jb;
z.MapTypeControl = lb;
z.CityListControl = Zb;
z.PanoramaControl = ac;
z.TrafficLayer = Rc;
z.CustomLayer = mb;
z.ContextMenu = dc;
z.MenuItem = gc;
z.LocalSearch = bb;
z.TransitRoute = xd;
z.DrivingRoute = Ad;
z.WalkingRoute = Bd;
z.Autocomplete = Ld;
z.RouteSearch = Fd;
z.Geocoder = Gd;
z.LocalCity = Id;
z.Geolocation = Geolocation;
z.Convertor = jc;
z.BusLineSearch = Kd;
z.Boundary = Jd;
z.VectorCloudLayer = Pc;
z.VectorTrafficLayer = Qc;
z.Panorama = Oa;
z.PanoramaLabel = Rd;
z.PanoramaService = cc;
z.PanoramaCoverageLayer = bc;
z.PanoramaFlashInterface = $d;
function S(a, b) {
for (var c in b) a[c] = b[c]
}
S(window, {
BMap: z,
_jsload2: function(a, b) {
ja.Jy.qY && ja.Jy.set(a, b);
I.tV(a, b)
},
BMAP_API_VERSION: "2.0"
});
var X = La.prototype;
S(X, {
getBounds: X.Hd,
getCenter: X.Ka,
getMapType: X.pa,
getSize: X.Bb,
setSize: X.ye,
getViewport: X.at,
getZoom: X.fa,
centerAndZoom: X.Dd,
panTo: X.ui,
panBy: X.xg,
setCenter: X.Wf,
setCurrentCity: X.pF,
setMapType: X.Ag,
setViewport: X.Ah,
setZoom: X.Nc,
highResolutionEnabled: X.Gx,
zoomTo: X.Dg,
zoomIn: X.WF,
zoomOut: X.XF,
addHotspot: X.rw,
removeHotspot: X.oZ,
clearHotspots: X.cm,
checkResize: X.wV,
addControl: X.ow,
removeControl: X.AN,
getContainer: X.Na,
addContextMenu: X.wo,
removeContextMenu: X.Cp,
addOverlay: X.Ja,
removeOverlay: X.Tb,
clearOverlays: X.iK,
openInfoWindow: X.Nb,
closeInfoWindow: X.Wc,
pointToOverlayPixel: X.Te,
overlayPixelToPoint: X.oN,
getInfoWindow: X.hh,
getOverlays: X.ux,
getPanes: function() {
return {
floatPane: this.Vd.rD,
markerMouseTarget: this.Vd.FE,
floatShadow: this.Vd.cL,
labelPane: this.Vd.xE,
markerPane: this.Vd.JM,
markerShadow: this.Vd.KM,
mapPane: this.Vd.xt,
vertexPane: this.Vd.QO
}
},
addTileLayer: X.Wg,
removeTileLayer: X.xh,
pixelToPoint: X.wb,
pointToPixel: X.bc,
setFeatureStyle: X.Lp,
selectBaseElement: X.d4,
setMapStyle: X.St,
enable3DBuilding: X.Oo,
disable3DBuilding: X.fW,
getPanorama: X.tm
});
var Te = Vc.prototype;
S(Te, {
getTileLayer: Te.JX,
getMinZoom: Te.Zo,
getMaxZoom: Te.sm,
getProjection: Te.dp,
getTextColor: Te.ym,
getTips: Te.$s
});
S(window, {
BMAP_NORMAL_MAP: Ma,
BMAP_PERSPECTIVE_MAP: Pa,
BMAP_SATELLITE_MAP: Za,
BMAP_HYBRID_MAP: Sa
});
var Ue = R.prototype;
S(Ue, {
lngLatToPoint: Ue.lh,
pointToLngLat: Ue.zj
});
var Ve = gb.prototype;
S(Ve, {
lngLatToPoint: Ve.lh,
pointToLngLat: Ve.zj
});
var We = eb.prototype;
S(We, {
equals: We.nb,
containsPoint: We.ds,
containsBounds: We.HV,
intersects: We.it,
extend: We.extend,
getCenter: We.Ka,
isEmpty: We.xj,
getSouthWest: We.se,
getNorthEast: We.of,
toSpan: We.KF
});
var Xe = kc.prototype;
S(Xe, {
isVisible: Xe.kh,
show: Xe.show,
hide: Xe.U
});
kc.getZIndex = kc.Am;
var Ye = fb.prototype;
S(Ye, {
openInfoWindow: Ye.Nb,
closeInfoWindow: Ye.Wc,
enableMassClear: Ye.mj,
disableMassClear: Ye.hW,
show: Ye.show,
hide: Ye.U,
getMap: Ye.ox,
addContextMenu: Ye.wo,
removeContextMenu: Ye.Cp
});
var Ze = T.prototype;
S(Ze, {
setIcon: Ze.Ub,
getIcon: Ze.Yo,
setPosition: Ze.ta,
getPosition: Ze.ha,
setOffset: Ze.Ve,
getOffset: Ze.Qf,
getLabel: Ze.LD,
setLabel: Ze.fn,
setTitle: Ze.Cc,
setTop: Ze.yi,
enableDragging: Ze.Yb,
disableDragging: Ze.JC,
setZIndex: Ze.Xt,
getMap: Ze.ox,
setAnimation: Ze.dn,
setShadow: Ze.Ay,
hide: Ze.U,
setRotation: Ze.Op,
getRotation: Ze.AL
});
S(window, {
BMAP_ANIMATION_DROP: 1,
BMAP_ANIMATION_BOUNCE: 2
});
var $e = uc.prototype;
S($e, {
setStyle: $e.Ld,
setStyles: $e.xi,
setContent: $e.ad,
setPosition: $e.ta,
getPosition: $e.ha,
setOffset: $e.Ve,
getOffset: $e.Qf,
setTitle: $e.Cc,
setZIndex: $e.Xt,
getMap: $e.ox,
getContent: $e.tk
});
var af = qc.prototype;
S(af, {
setImageUrl: af.QN,
setSize: af.ye,
setAnchor: af.qc,
setImageOffset: af.Rt,
setImageSize: af.SZ,
setInfoWindowAnchor: af.VZ,
setPrintImageUrl: af.e_
});
var bf = tc.prototype;
S(bf, {
redraw: bf.ge,
setTitle: bf.Cc,
setContent: bf.ad,
getContent: bf.tk,
getPosition: bf.ha,
enableMaximize: bf.ah,
disableMaximize: bf.Ww,
isOpen: bf.Wa,
setMaxContent: bf.Tt,
maximize: bf.Vx,
enableAutoPan: bf.Fs
});
var cf = oc.prototype;
S(cf, {
getPath: cf.qe,
setPath: cf.he,
setPositionAt: cf.hn,
getStrokeColor: cf.EX,
setStrokeWeight: cf.Rp,
getStrokeWeight: cf.DL,
setStrokeOpacity: cf.Pp,
getStrokeOpacity: cf.FX,
setFillOpacity: cf.Qt,
getFillOpacity: cf.bX,
setStrokeStyle: cf.Qp,
getStrokeStyle: cf.CL,
getFillColor: cf.aX,
getBounds: cf.Hd,
enableEditing: cf.lf,
disableEditing: cf.gW,
getEditing: cf.YW
});
var df = Ec.prototype;
S(df, {
setCenter: df.Wf,
getCenter: df.Ka,
getRadius: df.yL,
setRadius: df.vf
});
var ef = Cc.prototype;
S(ef, {
getPath: ef.qe,
setPath: ef.he,
setPositionAt: ef.hn
});
var ff = hb.prototype;
S(ff, {
getPosition: ff.ha,
setPosition: ff.ta,
getText: ff.VD,
setText: ff.Wt
});
H.prototype.equals = H.prototype.nb;
Q.prototype.equals = Q.prototype.nb;
N.prototype.equals = N.prototype.nb;
S(window, {
BMAP_ANCHOR_TOP_LEFT: Ub,
BMAP_ANCHOR_TOP_RIGHT: Vb,
BMAP_ANCHOR_BOTTOM_LEFT: Wb,
BMAP_ANCHOR_BOTTOM_RIGHT: 3
});
var gf = Tb.prototype;
S(gf, {
setAnchor: gf.qc,
getAnchor: gf.xD,
setOffset: gf.Ve,
getOffset: gf.Qf,
show: gf.show,
hide: gf.U,
isVisible: gf.kh,
toString: gf.toString
});
var hf = ib.prototype;
S(hf, {
getType: hf.hp,
setType: hf.jn
});
S(window, {
BMAP_NAVIGATION_CONTROL_LARGE: 0,
BMAP_NAVIGATION_CONTROL_SMALL: 1,
BMAP_NAVIGATION_CONTROL_PAN: 2,
BMAP_NAVIGATION_CONTROL_ZOOM: 3
});
var jf = kb.prototype;
S(jf, {
changeView: jf.ne,
setSize: jf.ye,
getSize: jf.Bb
});
var kf = jb.prototype;
S(kf, {
getUnit: kf.NX,
setUnit: kf.xF
});
S(window, {
BMAP_UNIT_METRIC: "metric",
BMAP_UNIT_IMPERIAL: "us"
});
var lf = Yb.prototype;
S(lf, {
addCopyright: lf.qw,
removeCopyright: lf.aF,
getCopyright: lf.pm,
getCopyrightCollection: lf.ED
});
S(window, {
BMAP_MAPTYPE_CONTROL_HORIZONTAL: $b,
BMAP_MAPTYPE_CONTROL_DROPDOWN: 1,
BMAP_MAPTYPE_CONTROL_MAP: 2
});
var mf = Hc.prototype;
S(mf, {
getMapType: mf.pa,
getCopyright: mf.pm,
isTransparentPng: mf.ot
});
var pf = dc.prototype;
S(pf, {
addItem: pf.sw,
addSeparator: pf.QB,
removeSeparator: pf.cF
});
var qf = gc.prototype;
S(qf, {
setText: qf.Wt
});
var rf = V.prototype;
S(rf, {
getStatus: rf.wm,
setSearchCompleteCallback: rf.vF,
getPageCapacity: rf.pf,
setPageCapacity: rf.Np,
setLocation: rf.gn,
disableFirstResultSelection: rf.KC,
enableFirstResultSelection: rf.gD,
gotoPage: rf.Bm,
searchNearby: rf.Jp,
searchInBounds: rf.bn,
search: rf.search
});
S(window, {
BMAP_STATUS_SUCCESS: 0,
BMAP_STATUS_CITY_LIST: 1,
BMAP_STATUS_UNKNOWN_LOCATION: 2,
BMAP_STATUS_UNKNOWN_ROUTE: 3,
BMAP_STATUS_INVALID_KEY: 4,
BMAP_STATUS_INVALID_REQUEST: 5,
BMAP_STATUS_PERMISSION_DENIED: 6,
BMAP_STATUS_SERVICE_UNAVAILABLE: 7,
BMAP_STATUS_TIMEOUT: 8
});
S(window, {
BMAP_POI_TYPE_NORMAL: 0,
BMAP_POI_TYPE_BUSSTOP: 1,
BMAP_POI_TYPE_BUSLINE: 2,
BMAP_POI_TYPE_SUBSTOP: 3,
BMAP_POI_TYPE_SUBLINE: 4
});
S(window, {
BMAP_TRANSIT_POLICY_LEAST_TIME: 0,
BMAP_TRANSIT_POLICY_LEAST_TRANSFER: 2,
BMAP_TRANSIT_POLICY_LEAST_WALKING: 3,
BMAP_TRANSIT_POLICY_AVOID_SUBWAYS: 4,
BMAP_LINE_TYPE_BUS: 0,
BMAP_LINE_TYPE_SUBWAY: 1,
BMAP_LINE_TYPE_FERRY: 2
});
var sf = wd.prototype;
S(sf, {
clearResults: sf.Oe
});
yd = xd.prototype;
S(yd, {
setPolicy: yd.Vt,
toString: yd.toString,
setPageCapacity: yd.Np
});
S(window, {
BMAP_DRIVING_POLICY_LEAST_TIME: 0,
BMAP_DRIVING_POLICY_LEAST_DISTANCE: 1,
BMAP_DRIVING_POLICY_AVOID_HIGHWAYS: 2
});
S(window, {
BMAP_MODE_DRIVING: "driving",
BMAP_MODE_TRANSIT: "transit",
BMAP_MODE_WALKING: "walking",
BMAP_MODE_NAVIGATION: "navigation"
});
var tf = Fd.prototype;
S(tf, {
routeCall: tf.LN
});
S(window, {
BMAP_HIGHLIGHT_STEP: 1,
BMAP_HIGHLIGHT_ROUTE: 2
});
S(window, {
BMAP_ROUTE_TYPE_DRIVING: id,
BMAP_ROUTE_TYPE_WALKING: ed
});
S(window, {
BMAP_ROUTE_STATUS_NORMAL: jd,
BMAP_ROUTE_STATUS_EMPTY: 1,
BMAP_ROUTE_STATUS_ADDRESS: 2
});
var uf = Ad.prototype;
S(uf, {
setPolicy: uf.Vt
});
var vf = Ld.prototype;
S(vf, {
show: vf.show,
hide: vf.U,
setTypes: vf.wF,
setLocation: vf.gn,
search: vf.search,
setInputValue: vf.xy
});
S(mb.prototype, {});
var wf = Jd.prototype;
S(wf, {
get: wf.get
});
S(bc.prototype, {});
S(cb.prototype, {});
S(window, {
BMAP_POINT_DENSITY_HIGH: 200,
BMAP_POINT_DENSITY_MEDIUM: Uc,
BMAP_POINT_DENSITY_LOW: 50
});
S(window, {
BMAP_POINT_SHAPE_STAR: 1,
BMAP_POINT_SHAPE_WATERDROP: 2,
BMAP_POINT_SHAPE_CIRCLE: wc,
BMAP_POINT_SHAPE_SQUARE: 4,
BMAP_POINT_SHAPE_RHOMBUS: 5
});
S(window, {
BMAP_POINT_SIZE_TINY: 1,
BMAP_POINT_SIZE_SMALLER: 2,
BMAP_POINT_SIZE_SMALL: 3,
BMAP_POINT_SIZE_NORMAL: xc,
BMAP_POINT_SIZE_BIG: 5,
BMAP_POINT_SIZE_BIGGER: 6,
BMAP_POINT_SIZE_HUGE: 7
});
S(window, {
BMap_Symbol_SHAPE_CAMERA: 11,
BMap_Symbol_SHAPE_WARNING: 12,
BMap_Symbol_SHAPE_SMILE: 13,
BMap_Symbol_SHAPE_CLOCK: 14,
BMap_Symbol_SHAPE_POINT: 9,
BMap_Symbol_SHAPE_PLANE: 10,
BMap_Symbol_SHAPE_CIRCLE: 1,
BMap_Symbol_SHAPE_RECTANGLE: 2,
BMap_Symbol_SHAPE_RHOMBUS: 3,
BMap_Symbol_SHAPE_STAR: 4,
BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW: 5,
BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW: 6,
BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW: 7,
BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW: 8
});
S(window, {
BMAP_CONTEXT_MENU_ICON_ZOOMIN: ec,
BMAP_CONTEXT_MENU_ICON_ZOOMOUT: fc
});
S(window, {
BMAP_SYS_DRAWER: Ka,
BMAP_SVG_DRAWER: 1,
BMAP_VML_DRAWER: 2,
BMAP_CANVAS_DRAWER: 3,
BMAP_SVG_DRAWER_FIRST: 4
});
z.VU();
})()