window._bd_share_main.F.module("base/tangram",function(e,t){var n,r=n=function(){var e,t=e=t||function(e,n){return t.dom?t.dom(e,n):null};t.version="2.0.2.5",t.guid="$BAIDU$",t.key="tangram_guid";var n=window[t.guid]=window[t.guid]||{};return(n.versions||(n.versions=[])).push(t.version),t.check=t.check||function(){},t.lang=t.lang||{},t.forEach=function(e,t,n){var r,i,s;if(typeof t=="function"&&e){i=typeof e.length=="number"?e.length:e.byteLength;if(typeof i=="number"){if(Object.prototype.toString.call(e)==="[object Function]")return e;for(r=0;r<i;r++)s=e[r],s===undefined&&(s=e.charAt&&e.charAt(r)),t.call(n||null,s,r,e)}else if(typeof e=="number")for(r=0;r<e;r++)t.call(n||null,r,r,r);else if(typeof e=="object")for(r in e)e.hasOwnProperty(r)&&t.call(n||null,e[r],r,e)}return e},t.type=function(){var e={},n=[,"HTMLElement","Attribute","Text",,,,,"Comment","Document",,"DocumentFragment"],r="Array Boolean Date Error Function Number RegExp String",i={object:1,"function":"1"},s=e.toString;return t.forEach(r.split(" "),function(n){e["[object "+n+"]"]=n.toLowerCase(),t["is"+n]=function(e){return t.type(e)==n.toLowerCase()}}),function(t){var r=typeof t;return i[r]?t==null?"null":t._type_||e[s.call(t)]||n[t.nodeType]||(t==t.window?"Window":"")||"object":r}}(),t.isDate=function(e){return t.type(e)=="date"&&e.toString()!="Invalid Date"&&!isNaN(e)},t.isElement=function(e){return t.type(e)=="HTMLElement"},t.isEnumerable=function(e){return e!=null&&(typeof e=="object"||~Object.prototype.toString.call(e).indexOf("NodeList"))&&(typeof e.length=="number"||typeof e.byteLength=="number"||typeof e[0]!="undefined")},t.isNumber=function(e){return t.type(e)=="number"&&isFinite(e)},t.isPlainObject=function(e){var n,r=Object.prototype.hasOwnProperty;if(t.type(e)!="object")return!1;if(e.constructor&&!r.call(e,"constructor")&&!r.call(e.constructor.prototype,"isPrototypeOf"))return!1;for(n in e);return n===undefined||r.call(e,n)},t.isObject=function(e){return typeof e=="function"||typeof e=="object"&&e!=null},t.extend=function(e,n){var r,i,s,o,u,a=1,f=arguments.length,l=e||{},c,h;t.isBoolean(e)&&(a=2)&&(l=n||{}),!t.isObject(l)&&(l={});for(;a<f;a++){i=arguments[a];if(t.isObject(i))for(s in i){o=l[s],u=i[s];if(o===u)continue;t.isBoolean(e)&&e&&u&&(t.isPlainObject(u)||(c=t.isArray(u)))?(c?(c=!1,h=o&&t.isArray(o)?o:[]):h=o&&t.isPlainObject(o)?o:{},l[s]=t.extend(e,h,u)):u!==undefined&&(l[s]=u)}}return l},t.createChain=function(e,n,r){var i=e=="dom"?"$DOM":"$"+e.charAt(0).toUpperCase()+e.substr(1),s=Array.prototype.slice,o=t[e];return o?o:(o=t[e]=n||function(n){return t.extend(n,t[e].fn)},o.extend=function(n){var r;for(r in n)(function(n){n!="splice"&&(o[n]=function(){var r=arguments[0];e=="dom"&&t.type(r)=="string"&&(r="#"+r);var i=o(r),u=i[n].apply(i,s.call(arguments,1));return t.type(u)=="$DOM"?u.get(0):u})})(r);return t.extend(t[e].fn,n)},t[e][i]=t[e][i]||r||function(){},o.fn=t[e][i].prototype,o)},t.overwrite=function(e,t,n){for(var r=t.length-1;r>-1;r--)e.prototype[t[r]]=n(t[r]);return e},t.object=t.object||{},t.object.isPlain=t.isPlainObject,t.createChain("string",function(e){var n=t.type(e),r=new String(~"string|number".indexOf(n)?e:n),i=String.prototype;return t.forEach(t.string.$String.prototype,function(e,t){i[t]||(r[t]=e)}),r}),t.string.extend({trim:function(){var e=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)","g");return function(){return this.replace(e,"")}}()}),t.createChain("array",function(e){var n=t.array.$Array.prototype,r=Array.prototype,i;t.type(e)!="array"&&(e=[]);for(i in n)e[i]=n[i];return e}),t.overwrite(t.array.$Array,"concat slice".split(" "),function(e){return function(){return t.array(Array.prototype[e].apply(this,arguments))}}),t.array.extend({indexOf:function(e,n){t.check(".+(,number)?","baidu.array.indexOf");var r=this.length;(n|=0)<0&&(n=Math.max(0,r+n));for(;n<r;n++)if(n in this&&this[n]===e)return n;return-1}}),t.createChain("Callbacks",function(e){var n=e;return t.type(e)==="string"&&(n={},t.forEach(e.split(/\s/),function(e){n[e]=!0})),new t.Callbacks.$Callbacks(n)},function(e){var n=t.extend({},e||{}),r=[],i=[],s=0,o,u,a,f,l=function(e,t){var u,l;if(!i||!r)return;o=n.memory&&e,a=!0,i.push(e);if(f)return;f=!0;while(u=i.shift())for(s=t||0;l=r[s];s++)if(l.apply(u[0],u[1])===!1&&n.stopOnFalse){o=!1;break}f=!1,n.once&&(r=[])},c={add:function(){if(!r)return this;var e=r&&r.length;return function i(e){var s=e.length,o,u;for(var a=0,u;a<s;a++){if(!(u=e[a]))continue;o=t.type(u),o==="function"?(!n.unique||!c.has(u))&&r.push(u):u&&u.length&&o!=="string"&&i(u)}}(arguments),!f&&o&&l(o,e),this},remove:function(){if(!r)return this;var e;return t.forEach(arguments,function(n){while((e=t.array(r).indexOf(n))>-1)r.splice(e,1),f&&e<s&&s--}),this},has:function(e){return t.array(r).indexOf(e)>-1},empty:function(){return r=[],this},disable:function(){return r=i=o=undefined,this},disabled:function(){return!r},lock:function(){return u=!0,!o&&c.disable(),this},fired:function(){return a},fireWith:function(e,t){return a&&n.once||u?this:(t=t||[],t=[e,t.slice?t.slice():t],l(t),this)},fire:function(){return c.fireWith(this,arguments),this}};return c}),t.createChain("Deferred",function(e){return new t.Deferred.$Deferred(e)},function(e){var n=this,r="pending",i=[["resolve","done",t.Callbacks("once memory"),"resolved"],["reject","fail",t.Callbacks("once memory"),"rejected"],["notify","progress",t.Callbacks("memory")]],s={state:function(){return r},always:function(){return n.done(arguments).fail(arguments),this},then:function(){var e=arguments;return t.Deferred(function(r){t.forEach(i,function(i,s){var o=i[0],u=e[s];n[i[1]](t.type(u)==="function"?function(){var e=u.apply(this,arguments);e&&t.type(e.promise)==="function"?e.promise().done(r.resolve).fail(r.reject).progress(r.notify):r[o+"With"](this===n?r:this,[e])}:r[o])})}).promise()},promise:function(e){return e!=null?t.extend(e,s):s}};s.pipe=s.then,t.forEach(i,function(e,t){var o=e[2],u=e[3];s[e[1]]=o.add,u&&o.add(function(){r=u},i[t^1][2].disable,i[2][2].lock),n[e[0]]=o.fire,n[e[0]+"With"]=o.fireWith}),s.promise(n),e&&e.call(n,n)}),t.when=t.when||function(e){function f(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?arguments:r,n===o?s.notifyWith(t,n):--i||s.resolveWith(t,n)}}var n=arguments,r=arguments.length,i=r!==1||e&&t.type(e.promise)==="function"?r:0,s=i===1?e:t.Deferred(),o,u,a;if(r>1){o=new Array(r),u=new Array(r),a=new Array(r);for(var l=0;l<r;l++)n[l]&&t.type(n[l].promise)==="function"?n[l].promise().done(f(l,a,n)).fail(s.reject).progress(f(l,u,o)):--i}return!i&&s.resolveWith(a,n),s.promise()},t.global=t.global||function(){var e=t._global_=window[t.guid],n=e._=e._||{};return function(e,t,r){return typeof t!="undefined"?(r||(t=typeof n[e]=="undefined"?t:n[e]),n[e]=t):e&&typeof n[e]=="undefined"&&(n[e]={}),n[e]}}(),t.browser=t.browser||function(){var e=navigator.userAgent,n={isStrict:document.compatMode=="CSS1Compat",isGecko:/gecko/i.test(e)&&!/like gecko/i.test(e),isWebkit:/webkit/i.test(e)};try{/(\d+\.\d+)/.test(external.max_version)&&(n.maxthon=+RegExp.$1)}catch(r){}switch(!0){case/msie (\d+\.\d+)/i.test(e):n.ie=document.documentMode||+RegExp.$1;break;case/chrome\/(\d+\.\d+)/i.test(e):n.chrome=+RegExp.$1;break;case/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(e)&&!/chrome/i.test(e):n.safari=+(RegExp.$1||RegExp.$2);break;case/firefox\/(\d+\.\d+)/i.test(e):n.firefox=+RegExp.$1;break;case/opera(?:\/| )(\d+(?:\.\d+)?)(.+?(version\/(\d+(?:\.\d+)?)))?/i.test(e):n.opera=+(RegExp.$4||RegExp.$1)}return t.extend(t,n),n}(),t.id=function(){var e=t.global("_maps_id"),n=t.key;return window[t.guid]._counter=window[t.guid]._counter||1,function(r,i){var s,o=t.isString(r),u=t.isObject(r),a=u?r[n]:o?r:"";if(t.isString(i))switch(i){case"get":return u?a:e[a];case"remove":case"delete":if(s=e[a])t.isElement(s)&&t.browser.ie<8?s.removeAttribute(n):delete s[n],delete e[a];return a;default:return o?((s=e[a])&&delete e[a],s&&(e[s[n]=i]=s)):u&&(a&&delete e[a],e[r[n]=i]=r),i}return u?(!a&&(e[r[n]=a=t.id()]=r),a):o