/*! Copyright 2014 Baidu Inc. All Rights Reserved. */;(function(){var m=void 0,n=!0,q=null,t=!1;function u(a){return function(){return a}}var w=["search!"],ea=3,fa="BAIDU_DUP_replacement",ga="http://dup.baidustatic.com/painter/",B=document,D={},ha=0,ia=1,F=2,G=3,H=4,ja=5;function ka(a){var b=la(a),d=b[0],b=b[1];this.id=a;this.name=b;this.uri=I(b);this.Ba=!b;this.status=ha;d&&b&&(this.Ha=J(L(d+"!"))||{load:function(){}});this.v=[]}

var R=window.BAIDU_DUP_require||function(a,b,d){M(a,function(){for(var c=[],d=0;d<a.length;d++)c[d]=J(L(a[d]));Q(b)&&b.apply(window,c)},d)};

function M(a,b,d){var c=a.length;if(0===c)b();else for(var h=c,e=0;e<c;e++)(function(a){function g(){if(a.status<F)c();else{for(var g=a.v,e=[],b=0;b<g.length;b++){var p=g[b];p&&L(p).status<G&&e.push(p)}0===e.length?c():M(e,c,d)}}function c(){a&&a.status<G&&(a.status=G);0===--h&&b()}var e=a.Ha;e&&(e.normalize&&(a.name=e.normalize(a.name,I)),e.name2url&&(a.uri=e.name2url(a.name)));a.status<F?e&&Q(e.load)?e.load(a.name,R,function(g){S(a.id,[],function(){return g});c()}):ma(a,g,d):g()})(L(a[e]))}

var T={},U={},V={};function ma(a,b,d){a.status=ia;V[a.id]?b():U[a.id]?T[a.id].push(b):(U[a.id]=n,T[a.id]=[b],d?(b=a.uri,a=B.createElement("script"),a.charset="utf-8",a.async=n,a.src=b,b=B.getElementsByTagName("head")[0]||B.body,b.insertBefore(a,b.firstChild)):B.write('<script charset="utf-8" src="'+a.uri+'"><\/script>'))}var S=window.BAIDU_DUP_define||function(a,b,d){var c=L(a);c.status<F&&(c.v=b,c.factory=d,c.status=c.Ba?G:F);if(U[a]){delete U[a];V[a]=n;b=T[a];for(delete T[a];a=b.shift();)a()}};

function J(a){if(!a)return q;if(a.status>=H)return a.V;if(a.status<G&&a.V===m)return q;a.status=H;for(var b=[],d=0;d<a.v.length;d++)b[d]=J(L(a.v[d]));var c=d=a.factory;Q(d)&&(c=d.apply(window,b));a.status=ja;return a.V=c}function I(a){return/^https?:\/\//.test(a)?a:ga+a+".js"}function L(a){return D[a]||(D[a]=new ka(a))}function la(a){var b,d=a?a.indexOf("!"):-1;-1<d&&(b=a.slice(0,d),a=a.slice(d+1,a.length));return[b,a]}function Q(a){return"[object Function]"===Object.prototype.toString.call(a)}

S("util/lang",[],function(){function a(a){for(var c={},b="Array Boolean Date Error Function Number RegExp String".split(" "),e=0,i=b.length;e<i;e++)c["[object "+b[e]+"]"]=b[e].toLowerCase();return a==q?"null":c[Object.prototype.toString.call(a)]||"object"}var b=Object.prototype.hasOwnProperty;return{A:b,a:a,getAttribute:function(a,c){for(var b=a,e=c.split(".");e.length;){if(b===m||b===q)return;b=b[e.shift()]}return b},fa:function(d){if("object"!==a(d))return"";var c=[],h;for(h in d)b.call(d,h)&&c.push(h+

"="+encodeURIComponent(d[h]));return c.join("&")},j:function(b){var c=[];switch(a(b)){case "object":c=Array.prototype.slice.call(b);break;case "array":c=b;break;case "number":case "string":c.push(b)}return c},unique:function(a){for(var c=[],b={},e=a.length,i=0;i<e;i++){var g=a[i];b[g]||(c[c.length]=g,b[g]=n)}return c},removeItem:function(a,c){for(var b=[].slice.call(a),e=b.length-1;0<=e;e--)b[e]===c&&b.splice(e,1);return b},ca:function(){}}});

S("util/browser",["util/lang"],function(a){var b={},d=navigator.userAgent,c=window.RegExp;/msie (\d+\.\d)/i.test(d)&&(b.o=document.documentMode||+c.$1);/opera\/(\d+\.\d)/i.test(d)&&(b.opera=+c.$1);/firefox\/(\d+\.\d)/i.test(d)&&(b.Sa=+c.$1);/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(d)&&!/chrome/i.test(d)&&(b.cb=+(c.$1||c.$2));if(/chrome\/(\d+\.\d)/i.test(d)){b.la=+c.$1;var h;try{h="scoped"in document.createElement("style")}catch(e){h=t}h&&(b.Ma=n)}try{/(\d+\.\d)/.test(a.getAttribute(window,

"external.max_version"))&&(b.Ya=+c.$1)}catch(i){}a="Android iPad iPhone Linux Macintosh Windows".split(" ");c="";for(h=0;h<a.length&&!(c=a[h],d.match(RegExp(c.toLowerCase(),"i")));h++);b.platform=c;return b});

S("util/dom",["util/lang"],function(a){function b(a){try{if(a&&"object"===typeof a&&a.document&&"setInterval"in a)return n}catch(c){}return t}function d(a,c){c=2===arguments.length?c:a.parent;return a!=c||!b(a)}function c(a,c){for(var c=2===arguments.length?c:a.parent,g=0;10>g++&&d(a,c);){var b;try{b=!!a.parent.location.toString()}catch(k){b=t}if(!b)return n;a=a.parent}return 10<=g}function h(a){return 9===a.nodeType?a:a.ownerDocument||a.document}return{c:function(c,b){return"string"===a.a(c)&&0<

c.length?(b||window).document.getElementById(c):c.nodeName&&(1===c.nodeType||9===c.nodeType)?c:q},Da:b,p:d,B:c,ra:h,z:function(a){a=h(a);return a.parentWindow||a.defaultView||q},h:function(a){a=b(a)?a.document:h(a);return"CSS1Compat"===a.compatMode?a.documentElement:a.body},I:function(b,i){1===arguments.length&&"number"===a.a(arguments[0])&&(i=arguments[0],b=m);for(var i=i||10,g=window,j=0;j++<i&&d(g)&&!c(g)&&(!b||!b(g));)g=g.parent;return g}}});

S("util/style",["util/lang","util/dom","util/browser"],function(a,b,d){function c(a,c){if(!a)return"";var e="",e=-1<c.indexOf("-")?c.replace(/[-][^-]{1}/g,function(a){return a.charAt(1).toUpperCase()}):c.replace(/[A-Z]{1}/g,function(a){return"-"+a.charAt(0).toLowerCase()}),f=b.z(a);if(f&&f.getComputedStyle){if(f=f.getComputedStyle(a,q))return f.getPropertyValue(c)||f.getPropertyValue(e)}else if(a.currentStyle)return f=a.currentStyle,f[c]||f[e];return""}function h(a){var j={top:0,left:0};if(a===b.h(a))return j;

var e=b.ra(a),f=e.body,e=e.documentElement;a.getBoundingClientRect&&(a=a.getBoundingClientRect(),j.left=Math.floor(a.left)+Math.max(e.scrollLeft,f.scrollLeft),j.top=Math.floor(a.top)+Math.max(e.scrollTop,f.scrollTop),j.left-=e.clientLeft,j.top-=e.clientTop,a=c(f,"borderLeftWidth"),f=c(f,"borderTopWidth"),a=parseInt(a,10),f=parseInt(f,10),j.left-=isNaN(a)?2:a,j.top-=isNaN(f)?2:f);return j}function e(a,b){var e=c(a,"margin"+b).toString().toLowerCase().replace("px","").replace("auto","0");return parseInt(e,

10)||0}function i(c){for(var j=b.z(c),e=100;c&&c.tagName;){var f=100;if(d.o){if(5<d.o)try{f=parseInt(a.getAttribute(c,"filters.alpha.opacity"),10)||100}catch(i){}e=e>f?f:e}else{try{f=100*(j.getComputedStyle(c,q).opacity||1)}catch(o){}e*=f/100}c=c.parentNode}return 0===e?0:e||100}return{Wa:c,Va:h,n:function(a){var c=b.c(a);if(!c)return t;a=h(c);c=b.z(c);if(!c)return a;for(var e=0;c!==c.parent&&10>e++&&!b.B(c)&&c.frameElement;){var f=h(c.frameElement);a.left+=f.left;a.top+=f.top;c=c.parent}return a},

Ta:e,K:function(a,c){var d=b.c(a),f=d.offsetWidth;c&&(f+=e(d,"Left")+e(d,"Right"));return f},J:function(a,c){var d=b.c(a),f=d.offsetHeight;c&&(f+=e(d,"Top")+e(d,"Bottom"));return f},Ua:i,ta:function(a){for(var c=b.c(a),a=b.z(c),c=i(c),e=0;10>e++&&b.p(a)&&!b.B(a);){var f=a.frameElement?i(a.frameElement):100,c=c*(f/100);a=a.parent}return c},aa:function(a){try{var c=b.h(a||window).scrollWidth;if(c||0===c)return c}catch(e){}return-1},$:function(a){try{var c=b.h(a||window).scrollHeight;if(c||0===c)return c}catch(e){}return-1},

m:function(a){try{var c=b.h(a||window).clientWidth;if(c||0===c)return c}catch(e){}return-1},l:function(a){try{var c=b.h(a||window).clientHeight;if(c||0===c)return c}catch(e){}return-1},xa:function(a){var c=b.h(a);return a.pageYOffset||c.scrollTop},wa:function(a){var c=b.h(a);return a.pageXOffset||c.scrollLeft}}});

S("util/url",["util/dom"],function(a){return{Z:function(a,d,c){a=a.match(RegExp("(\\?|&|#)"+d+"=([^&#]*)(&|#)?"));d="";a&&(d=a[2]);c&&(d=decodeURIComponent(d));return d},L:function(b){var b=a.I(b),d="";a.p(b)&&(d=b.document.referrer);return d=d||b.location.href}}});

S("util/event",["util/dom"],function(a){return{bind:function(b,d,c){if(b=a.Da(b)?b:a.c(b))if(b.addEventListener)b.addEventListener(d,c,t);else if(b.attachEvent)b.attachEvent("on"+d,c);else{var h=b["on"+d];b["on"+d]=function(){h&&h.apply(this,arguments);c.apply(this,arguments)}}return b}}});

S("util/cookie",["util/lang"],function(a){return{get:function(a,d){var c=RegExp("(^| )"+a+"=([^;]*)(;|$)").exec(document.cookie);return c?d?decodeURIComponent(c[2]):c[2]:""},set:function(b,d,c,h){var e=c.expires;"number"===a.a(e)&&(e=new Date,e.setTime(+e+c.expires));document.cookie=b+"="+(h?encodeURIComponent(d):d)+(c.path?"; path="+c.path:"")+(e?"; expires="+e.toGMTString():"")+(c.domain?"; domain="+c.domain:"")}}});

S("util/data",["util/lang","util/dom"],function(a,b){function d(c,b,f){var f=f?g:e,d;if("string"===a.a(c)){for(c=c.split(".");c.length;)d=c.shift(),f[d]=c.length?f[d]!==m?f[d]:{}:b,f=f[d];d=b}return d}function c(c,b){var f=b?g:e,d;"string"===a.a(c)&&(d=a.getAttribute(f,c));return d}function h(a,b,e){if(!a||!b)return t;var g=c(a)||{};switch(e){case "+1":e=g[b]||0;g[b]=++e;break;default:g[b]=parseInt(e,10)}d(a,g);return g[b]}var e={},i=b.I(),g=i.BAIDU_DUP_info||(i.BAIDU_DUP_info={});return{k:function(a,

c){var b=window;return b[a]?b[a]:b[a]=c},Y:function(a){var c=window,b=c[a];c[a]=m;return b},q:d,d:c,ea:function(c,b){var d=b?g:e;switch(a.a(c)){case "string":for(var i=c.split(".");i.length;){var o=i.shift();if(i.length&&d[o]!==m)d=d[o];else return delete d[o],n}}return t},R:function(a,c){return h(a,c,"+1")},$a:function(a,c,b){return h(a,c,b)},count:h,qa:function(a,b){return!a||!b?t:(c(a)||{})[b]||0},La:function(a,b){if(!a||!b)return t;var e=c("pageConfig")||{};e[a]=b;d("pageConfig",e);return n},

pa:function(a){return!a?t:(c("pageConfig")||{})[a]}}});

S("util/storage",[],function(){function a(a,b,e){if(d)try{d.setItem(a,e?encodeURIComponent(b):b)}catch(i){}}function b(a,b){if(d){var e=d.getItem(a);return b&&e?decodeURIComponent(e):e}return q}var d=window.localStorage;return{ka:function(){var c=t;try{d.removeItem("BAIDU_DUP_storage_available"),a("BAIDU_DUP_storage_available","1"),b("BAIDU_DUP_storage_available")&&(c=n),d.removeItem("BAIDU_DUP_storage_available")}catch(h){}return c},setItem:a,getItem:b,ia:function(c,h,e){if(d){h=e?encodeURIComponent(h):

h;e=b(c)||"";try{a(c,e+((e&&"|")+h))}catch(i){}}},ha:function(c,h,e){if(d)if(h=e?encodeURIComponent(h):h,e=b(c)||"",e=e.replace(RegExp(h+"\\|?","g"),"").replace(/\|$/,""))try{a(c,e)}catch(i){}else d.removeItem(c)}}});

S("util/log",["util/lang","util/event","util/storage"],function(a,b,d){function c(a,c){var b=new Image,d="BAIDU_DUP_log_"+Math.floor(2147483648*Math.random()).toString(36);window[d]=b;b.onload=b.onerror=b.onabort=function(){b.onload=b.onerror=b.onabort=q;b=window[d]=q;c&&c(h,a,n)};b.src=a}var h="BAIDU_DUP_log_storage";return{Xa:c,ab:function(){var a=d.getItem(h);if(a)for(var a=a.split("|"),b=0,g=a.length;b<g;b++)c(decodeURIComponent(a[b]),d.ha)},F:function(e){var e="object"===a.a(e)?e:{},i=e.url||

"http://cbjslog.baidu.com/log",g=e.option||"now",e=a.fa(e.data||{}),i=i+((0<=i.indexOf("?")?"&":"?")+e+(e?"&":"")+"rdm="+ +new Date);switch(g){case "now":c(i);break;case "block":break;default:d.ia(h,i,n),b.bind(window,"unload",function(){c(i,d.ha)})}}}});S("util","util/lang,util/dom,util/style,util/url,util/event,util/cookie,util/data,util/storage,util/log,util/browser".split(","),function(a,b,d,c,h,e,i,g,j,k){return{lang:a,b:b,style:d,url:c,event:h,cookie:e,data:i,fb:g,log:j,U:k}});

S("biz",["util"],function(a){function b(c,b){var d=/^[0-9a-zA-Z]+$/;return!c||!d.test(c)||!b?[]:b="array"===a.lang.a(b)?b:Array.prototype.slice.call(arguments,1)}function d(b,d,g){if(!d||!d.length)return t;var g=g||{Q:t,ba:t,da:t},j=g.ba?a.data.d(c):{},k=g.Q?h:c,j=g.da?{}:a.data.d(k)||j,g={},f;for(f in j)a.lang.A.call(j,f)&&(g[f]="array"===a.lang.a(j[f])?j[f].slice():j[f]);var j=g[b]||[],l=d.length;for(f=0;f<l;f++){var o=d[f];"string"===typeof o&&(o=encodeURIComponent(o),100>=o.length&&(j[j.length]=

o))}if(!j.length)return t;g[b]=a.lang.unique(j);a.data.q(k,g);return n}var c="bizOrientations",h="bizUrgentOrientations";return{T:function(a,c){var g=b.apply(this,arguments);return d(a,g)},ja:function(a,c){var g=b.apply(this,arguments);return d(a,g,{Q:n,ba:n})},Oa:function(a,c){var g=b.apply(this,arguments);return d(a,g,{Q:n,da:n})},ua:function(b){var b=Math.max(0,Math.min(b||500,500)),d=[],g=a.data.d(h)||a.data.d(c)||{};if("object"===a.lang.a(g))for(var j in g)a.lang.A.call(g,j)&&(d[d.length]=j+

"="+g[j].join(","));a.data.q(h,m);d.sort(function(a,c){return a.length-c.length});g="";j=d.length;for(var k=0;k<j&&!(g.length+d[k].length>=b);k++)g+=(k?"&":"")+d[k];return g}}});

S("preview",["biz","util"],function(a,b){function d(){function a(c){var d=b.url.Z;return d(h,"baidu_clb_preview_"+c)||d(h,"baidu_dup_preview_"+c)}var h=b.url.L(),e=a("sid"),i=a("mid"),g=a("vc"),j=+a("ts"),k=q;3E4>=+new Date-j&&(k={ga:e,Fa:i,Pa:g});d=function(){return k};return k}return{ya:function(a){var b=[],e=d();e&&a==e.ga&&(b.push("mid="+e.Fa),b.push("sid="+e.Pa));return b.join("&")},d:function(){return d()},Ca:function(a){var d=t;a?/cpro_template=/gi.test(a)&&(b.data.q("#unionPreviewSwitch",

n),d=n):d=!!b.data.d("#unionPreviewSwitch");return d},za:function(){var a=b.data.d("#unionPreviewData");return a?"prev="+encodeURIComponent(a)+"&pt=union":""},eb:function(a){b.data.q("#unionPreviewData",a)},Ra:function(){b.data.ea("#unionPreviewSwitch");b.data.ea("#unionPreviewData")}}});

S("slot",["util"],function(a){function b(){for(var a={response:{},holder:"",stack:[],errors:[],status:{}},c=j.length-1;0<=c;c--)a.status[j[c]]=0;return a}function d(a,c){var b=t;"fillAsync"===c&&(b=n);l[a]&&-1!==l[a].stack.join(" ").toLowerCase().indexOf("async")&&(b=n);return b}function c(a,c){if(!a)return"";var b=o+a;c&&(b+="_"+c);return b}function h(a,c,b){if(!a||!c)return t;b===m&&(b=+new Date);return l[a]?(l[a].status[c]=b,n):t}function e(a,c){i(a,"errors",c)}function i(c,b,d){c&&b&&d&&(c=l[c])&&

"array"===a.lang.a(c[b])&&c[b].push(d)}function g(a){return!a?l:l[a]||t}var j="add,create,request,response,render,finish".split(","),k=[],f={},l={},o="BAIDU_DUP_wrapper_";return{add:function(){var c={ids:[],preloadIds:[]},d=a.lang.j(arguments);if(!d.length)return c;for(var d=d.join(",").split(","),e=[],o=[],j=d.length,i=0;i<j;i++){var r=d[i];if(f.hasOwnProperty(r)){var s=r+"_"+f[r],v=g(s).stack||[];if("preload"===v[v.length-1]){c.preloadIds.push(s);continue}f[r]+=1}else f[r]=0;r=r+"_"+f[r];l[r]=new b;

h(r,"add");o.push(r);e.push(r)}k=k.concat(o);c.ids=e;return c},create:function(b,o,g){if(!b||!o)return t;var f=c(b),j=n;if(a.b.c(f))return l[b].holder=f,j;if(d(b,o)){g=g||"";l[b].holder=g;g=a.b.c(g);try{g&&(g.innerHTML='<div id="'+f+'"></div>',l[b].holder=f)}catch(i){e(b,"Failed to insert wrapper"),j=t}}else if(document.write('<div id="'+f+'"></div>'),!a.b.c(f))try{var k=document.getElementsByTagName("script"),s=k[k.length-1];if(s){var v=s.parentNode;if(v){var W=document.createElement("div");W.id=

c(b,"b");v.insertBefore(W,s)}}}catch(oa){e(b,"Failed to create backup wrapper")}h(b,"create");return j},na:d,sa:function(a){return d(a)?"async":"sync"},X:function(b){return!b?"":(b=a.b.c(l[b].holder)||a.b.c(c(b))||a.b.c(c(b,"b")))&&b.id||""},w:g,P:function(a,c){if(!a||!c)return t;return l[a]?(l[a].response=c,h(a,"response"),n):t},r:h,i:e,G:function(a,c){i(a,"stack",c)},H:function(c){c=a.lang.j(c);if(!c.length)return t;var b=[],d={},e;for(e=0;e<k.length;e++)d[k[e]]=e+1;for(e=0;e<c.length;e++){var o=

d[""+c[e]];o===m&&(o=0);b.push(o)}return b},n:function(b){b=a.lang.j(b);if(!b.length)return["-1x-1"];for(var d=[],o=0;o<b.length;o++){var g=b[o],f;try{var j=a.b.c(c(g))||a.b.c(c(g,"b"));if(j){var i=a.style.n(j);i&&(f=[i.top,i.left])}}catch(h){e(g,"Unable to get ps")}f=f?f:[-1,-1];d.push(f.join("x"))}return d}}});

S("api",["slot","util"],function(a,b){return{getDai:a.H,getSlots:a.w,getFillType:a.sa,getFillWrapperId:a.X,setStatus:a.r,addErrorItem:a.i,addStackItem:a.G,bind:b.event.bind,getType:b.lang.a,sendLog:b.log.F,putInfo:b.data.q,getInfo:b.data.d,defineOnce:b.data.k,addCount:b.data.R,getCount:b.data.qa,getConfig:b.data.pa}});

S("param",["slot","preview","biz","util"],function(a,b,d,c){function h(a,c){for(var c=c||0,b=[],d=0,e=a.length;d<e;d++)b.push(a[d].split("_")[c]);return b.join(",")}function e(a){a=a||window.document.domain;0===a.indexOf("www.")&&(a=a.substr(4));"."===a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));var c=a.match(RegExp("([a-z0-9][a-z0-9\\-]*?\\.(?:com|cn|net|org|gov|info|la|cc|co|jp|us|hk|tv|me|biz|in|be|io|tk|cm|li|ru|ws|hn|fm|tw|ma|in|vn|name|mx|gd|im)(?:\\.(?:cn|jp|tw|ru|th))?)$","i"));return c?

c[0]:a}var i=window,g=i.document,j=i.screen,k=i.navigator,f=+new Date,l=[{key:"di",value:function(a){return h(a.id)}},{key:"dcb",value:u("BAIDU_DUP_define")},{key:"dtm",value:u("BAIDU_DUP2_SETJSONADSLOT")},{key:"dbv",value:function(){var a=c.U;return a.Ma?"1":a.la?"2":"0"}},{key:"dci",value:function(c){for(var b="-1",d={fill:"0",fillOnePiece:"1",fillAsync:"2",preload:"3"},e=0;e<c.id.length;e++){var g=a.w(c.id[e]);if(g){var g=g.stack,f=g.length;if(1<=f){b=d[g[f-1]];break}}}return b}},{key:"dri",value:function(a){return h(a.id,

1)}},{key:"dis",value:function(){var a=0;c.b.p(i)&&(a+=1);c.b.B(i,i.top)&&(a+=2);var b=c.style.m(),d=c.style.l();if(40>b||10>d)a+=4;return a}},{key:"dai",value:function(c){return a.H(c.id).join(",")}},{key:"dds",value:function(){var a=c.data.d("dds");return c.lang.fa(a)}},{key:"drs",value:function(){var a={uninitialized:0,loading:1,loaded:2,interactive:3,complete:4};try{return a[g.readyState]}catch(c){return-1}}},{key:"dvi",value:u("7o")},{key:"ltu",s:n,value:function(){var a=c.url.L(function(a){var b=

c.style.m(a),a=c.style.l(a);return 400<b&&120<a?n:t});0<a.indexOf("cpro_prev")&&(a=a.slice(0,a.indexOf("?")));return a}},{key:"liu",s:n,value:function(){return c.b.p(i)?g.URL:""}},{key:"ltr",s:n,value:function(){var a=c.b.I(),b="";try{b=a.opener?a.opener.document.location.href:""}catch(d){}return b||a.document.referrer}},{key:"lcr",s:n,value:function(){var a=g.referrer,b=a.replace(/^https?:\/\//,""),b=b.split("/")[0],b=b.split(":")[0],b=e(b),d=e(),f=c.cookie.get("BAIDU_DUP_lcr");if(f&&d===b)return f;

return d!==b?(c.cookie.set("BAIDU_DUP_lcr",a,{domain:d}),a):""}},{key:"ps",value:function(c){return a.n(c.id).join(",")}},{key:"psr",value:function(){return[j.width,j.height].join("x")}},{key:"par",value:function(){return[j.availWidth,j.availHeight].join("x")}},{key:"pcs",value:function(){return[c.style.m(),c.style.l()].join("x")}},{key:"pss",value:function(){return[c.style.aa(),c.style.$()].join("x")}},{key:"pis",value:function(){return(c.b.p(i)?[c.style.m(),c.style.l()]:[-1,-1]).join("x")}},{key:"cfv",

value:function(){var a=0;if(k.plugins&&k.mimeTypes.length){var c=k.plugins["Shockwave Flash"];c&&c.description&&(a=c.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")+".0")}else if(i.ActiveXObject&&!i.opera)for(c=10;2<=c;c--)try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);b&&(a=b.GetVariable("$version").replace(/WIN/g,"").replace(/,/g,"."))}catch(d){}return parseInt(a,10)}},{key:"ccd",value:function(){return j.colorDepth||0}},{key:"chi",value:function(){return i.history.length||

0}},{key:"cja",value:function(){return k.javaEnabled().toString()}},{key:"cpl",value:function(){return k.plugins.length||0}},{key:"cmi",value:function(){return k.mimeTypes.length||0}},{key:"cce",value:function(){return k.cookieEnabled||0}},{key:"col",value:function(){return(k.language||k.browserLanguage||k.systemLanguage).replace(/[^a-zA-Z0-9\-]/g,"")}},{key:"cec",value:function(){return(g.characterSet?g.characterSet:g.charset)||""}},{key:"cdo",value:function(){var a=window.orientation;a===m&&(a=

-1);return a}},{key:"tsr",value:function(){var a=0,c=+new Date;f&&(a=c-f);return a}},{key:"tlm",value:function(){return Date.parse(g.lastModified)/1E3}},{key:"tcn",value:function(){return Math.round(+new Date/1E3)}},{key:"tpr",value:function(a){var a=a&&a.max_age?a.max_age:24E4,c=(new Date).getTime(),b,d;try{b=!!window.top.location.toString()}catch(e){b=t}d=b?window.top:window;(b=d.BAIDU_DUP2_pageFirstRequestTime)?c-b>=a&&(b=d.BAIDU_DUP2_pageFirstRequestTime=c):b=d.BAIDU_DUP2_pageFirstRequestTime=

c;return b||""}},{key:"_preview",value:function(a){return b.ya(h(a.id))}},{key:"dpt",value:function(){var a="none";b.Ca()&&(a="union");return a}},{key:"coa",s:n,value:function(a){var b=a.id,b=b[0].split("_")[0],a={},d=t,e=c.data.d("#novaOpenApi");if(e&&b&&e[b]){var d=n,b=e[b],g;for(g in b)g&&b.hasOwnProperty(g)&&"undefined"!==typeof b[g]&&(a[g]=encodeURIComponent(b[g]).toString())}d&&(a.c01=1);g="";for(var f in a)f&&a.hasOwnProperty(f)&&"undefined"!==typeof a[f]&&(g+="&"+f+"="+a[f]);return g=g.slice(1)}},

{key:"_unionpreview",value:function(){return b.za()}},{key:"baidu_id",value:u("")},{key:"_orientation",value:function(){return d.ua()}}];return{get:function(a,c){for(var b=[],d=0,e=l.length;d<e;d++){var g;try{var f=l[d],j=f.key,i=f.s,h=f.value,h="function"===typeof h?h(a):h,h=i?encodeURIComponent(h):h;if(c&&c===j)return h;g=j&&0!==j.indexOf("_")?j+"="+h:h}catch(k){g=encodeURIComponent(k.toString()),g=g.slice(0,100)}g&&b.push(g)}b=b.join("&");return b.slice(0,2048)}}});

S("request",["param","slot","util"],function(a,b,d){S("request!",[],{name2url:function(c){return"http://cb.baidu.com/ecom?"+a.get({id:c.split(",")})}});S("batch!",[],{name2url:function(c){return"http://cb.baidu.com/ecom?"+a.get({id:c.split(",")})}});return{send:function(a,h,e){if(!a||!h||e===m)return t;var i=[];if("array"!==d.lang.a(a))b.r(a,"request"),i=["request!"+a];else{for(i=0;i<a.length;i++)b.r(a[i],"request");i=1===a.length?["request!"+a[0]]:["batch!"+a.join(",")]}R(i,h,e);return n}}});

S("control",["slot","request","preview","util"],function(a,b,d,c){function h(b,d,e){var f=d.deps,h=d.data,i=a.X(b);e&&!i?a.i(b,"HolderNotFound"):f&&(0>f[0].indexOf("clb/")&&a.r(b,"finish"),R(f,function(d){if("object"===c.lang.a(h)){h.id=b;if(d.hasOwnProperty("validate"))try{var e=d.validate(h);e!==n&&c.log.F({data:{type:e||"ResponseError",errorPainter:f[0],id:b,slotType:h._stype,materialType:h._isMlt,html:!!h._html}})}catch(j){a.i(b,"validateException")}if(d.hasOwnProperty("render"))try{a.r(b,"render"),

d.render(h,i)}catch(k){a.i(b,"RenderException")}else a.i(b,"RenderNotFound")}else a.i(b,"ResponseFormatError")},e))}function e(c,d,e){if(!c)return t;var e=e||"",f=a.add(c),c=f.ids[0]||f.preloadIds[0];if(!c)return t;var i=a.na(c,d);a.G(c,d);a.create(c,d,e);f.ids.length?b.send(c,function(b){a.P(c,b);h(c,b,i)},i):f.preloadIds.length&&(d=a.w(c).response,h(c,d,i));return n}function i(b){for(var c=0,d=b+"_"+c;0!==a.H([d])[0];){var e=a.w(d);if((e=e&&e.response)&&0===e.deps[0].indexOf("clb/")){var h=e.data,

e=h._isMlt;(0===e&&""!==h._html||e===t&&h._fxp)&&a.r(d,"finish",0)}d=b+"_"+ ++c}if(b!==m&&(b=(c=window.BAIDU_CLB_SLOTS_MAP)&&c[b],b!==m&&(e=b._isMlt,0===e&&""!==b._html||e===t&&b._fxp)))b._done=t}window.BAIDU_CLB_prepareMoveSlot=i;return{fill:function(a){return e(a,"fill")},oa:function(a,b){return e(a,"fillAsync",b)},Ia:function(){function e(d){b.send(d,function(b){if("array"===c.lang.a(b)){if(b&&b.length===d.length)for(var e=0;e<d.length;e++)a.P(d[e],b[e])}else"object"===c.lang.a(b)&&b&&1===d.length&&

a.P(d[0],b)},t)}var h=c.lang.j(arguments),h=c.lang.unique(h),i=d.d();if(i)for(var f=0,l=h.length;f<l;f++)h[f]==i.ga&&(h.splice(f,1),f--);for(h=a.add(h).ids;h.length;){i=h.splice(0,16);for(f=0;f<i.length;f++)a.G(i[f],"preload");e(i)}},Ja:i}});

S("global",["control","biz","util","preview"],function(a,b,d){function c(a){a=a.split(".");return j[a[0]]+a[1]}function h(){var a=g.BAIDU_DUP;if(!("object"===d.lang.a(a)&&a.push)){if("array"===d.lang.a(a)&&a.length)for(var b=0;b<a.length;b++)e(a[b]);g.BAIDU_DUP=m;d.data.k("BAIDU_DUP",{push:e});d.data.k("BAIDU_DUP_proxy",function(a){if(a)return function(){try{return e([a].concat(d.lang.j(arguments)))}catch(b){0<ea--&&d.log.F({data:{type:"ExecuteException",errorName:a,args:d.lang.j(arguments).join("|"),

isQuirksMode:"CSS1Compat"!==document.compatMode,documentMode:document.documentMode||"",readyState:document.readyState||"",message:b.message}})}}});for(b in f)b&&d.lang.A.call(f,b)&&d.data.k(b,g.BAIDU_DUP_proxy(b));i()}}function e(a){if("array"!==d.lang.a(a))return t;var b=a.shift();d.data.R("apiCount",b);return(b=f[b]||l[b]||t)&&b.apply(q,a)}function i(){function a(b){for(var c=0,d=w.length;c<d;c++)if(0===b.indexOf(w[c]))return n;return t}d.data.k("BAIDU_DUP_require",function(b){for(var c=0,d=b.length;c<

d;c++)if(a(b[c]))return;R.apply(q,arguments)});d.data.k("BAIDU_DUP_define",function(b,c){for(var d=0,e=c.length;d<e;d++)if(a(c[d]))return;S.apply(q,arguments)})}var g=window,j={clb:"BAIDU_CLB_",dan:"BAIDU_DAN_",nova:"cpro"},k=[{f:["clb.fillSlot","clb.singleFillSlot","clb.fillSlotWithSize"],g:["fill"],e:a.fill},{f:["clb.fillSlotAsync"],g:["fillAsync"],e:a.oa},{f:["clb.preloadSlots"],g:["preload"],e:a.Ia},{f:["clb.prepareMoveSlot"],g:["prepareMove"],e:a.Ja},{f:["clb.addOrientation"],g:["addOrientation"],

e:b.T},{f:["clb.addOrientationOnce"],g:["addOrientationOnce"],e:b.ja},{f:["clb.setOrientationOnce"],g:["setOrientationOnce"],e:b.Oa},{f:["clb.setConfig"],g:["putConfig"],e:d.data.La},{f:["clb.addSlot","clb.enableAllSlots","clb.SETHTMLSLOT"],g:[],e:d.lang.ca}],k=function(a){for(var b={},d={},e=0;e<a.length;e++){for(var f=a[e],g=f.f,h=f.g,f=f.e;g.length;)b[c(g.shift())]=f;for(;h.length;)d[h.shift()]=f}return{Ga:b,Ka:d}}(k),f=k.Ga,l=k.Ka;return{Aa:function(){var e=d.data.Y(c("clb.ORIENTATIONS"));if(e)for(var f in e)Object.prototype.hasOwnProperty.call(e,

f)&&b.T(f,e[f]);a.fill(d.data.Y(c("clb.SLOT_ID")));h()}}});S("logService",["util/lang","util/event"],function(a,b){b.bind(window,"load",function(){R(["detect"],a.ca,n)})});

S("fingerprint",["util/storage","util/event","util/browser","util/data","param"],function(a,b,d,c,h){var e=window,i=t;d.o?6<=d.o&&(i=n):a.ka()&&(i=n);i&&(c.d("isFPLoaded",n)===n?i=t:c.q("isFPLoaded",n,n));i&&b.bind(e,"load",function(){var a=e.document,b=a.body,c="http://pos.baidu.com/wh/o.htm?ltr="+h.get({},"ltr"),d=a.createElement("div");d.id="BAIDU_DUP_fp_wrapper";d.style.position="absolute";d.style.left="-1px";d.style.bottom="-1px";d.style.zIndex=0;d.style.width=0;d.style.height=0;d.style.overflow=

"hidden";d.style.visibility="hidden";d.style.display="none";a=a.createElement("iframe");a.id="BAIDU_DUP_fp_iframe";a.src=c;a.style.width=0;a.style.height=0;a.style.visibility="hidden";a.style.display="none";try{d.insertBefore(a,d.firstChild),b&&b.insertBefore(d,b.firstChild)}catch(i){}})});S("replacement",["util"],function(a){function b(){var d=a.url.L(),c=a.url.Z(d,fa,n);b=function(){return c};return c}return{va:function(){return b()}}});

R(["replacement"],function(a){(a=a.va())?R([a]):(R(["global"],function(a){a.Aa()}),R(["logService"]),R(["fingerprint"]))});

window.BAIDU_DUP_define&&window.BAIDU_DUP_define("detect",["api"],function(a){function b(b){b.url="";b.host=window.location.hostname;b.from="DUP";a.sendLog({data:b,Za:"now"})}try{setTimeout(function(){var c=a.getSlots(),d;for(d in c){var e=c[d],i=e.response,g=t;if("object"!==a.getType(i))g=n;else{var g=n,j;for(j in i)if(Object.prototype.hasOwnProperty.call(i,j)){g=t;break}}var k=e.status,e=e.stack;g?b({type:"preload"===e[0]?"preloadFail":"loadFail",id:d}):!k.render&&!k.finish&&b({type:"renderFail",

id:d,error:"preload"===e[0]?"PreloadNotFilled":"NotFilled",empty:!(!i.data||!i.data._html)})}},0)}catch(d){}});

window.BAIDU_DUP_define&&window.BAIDU_DUP_define("viewWatch",["util","param"],function(a,b){function d(){var b=+new Date,d=500;A===j&&N&&(d=b-N);N=b;for(var e in p)if(o.call(p,e)){A===i&&(A=g);var f=p[e];f.u&&(f.N+=d);f.D&&(f.M+=d);f.O=b-f.timestamp;if(A===j)K&&(f.t+=b-f.C);else if(72E5<=f.O)c(t);else{var h=f=m,k=m;for(k in p)if(o.call(p,k)){var r=p[k];if(K){var x=a.b.c(r.Qa);if(!x)break;try{var X=l.m(s),Y=l.l(s),v=l.n(x),Z=l.xa(s),$=l.wa(s),y=l.K(x),z=l.J(x),C=v.top-Z+0.35*z,E=v.left-$+0.35*y;r.u=

0<C&&C<Y&&0<E&&E<X;var na=y*z,aa=l.n(x),O=aa.top-Z,P=aa.left-$,ba=l.K(x),ca=l.J(x),da=x=0,x=0>O?Math.max(O+ca,0):Math.min(ca,Math.max(Y-O,0)),da=0>P?Math.max(P+ba,0):Math.min(ba,Math.max(X-P,0));f=da;h=x;r.D=h*f>0.5*na}catch(pa){r.u=t,r.D=t}}else r.u=t,r.D=t}}}}function c(b){clearInterval(E);var c=document.domain.toLowerCase();if(!(-1<c.indexOf("autohome.com.cn")||-1<c.indexOf("sina.com.cn")||-1<c.indexOf("pconline.com.cn")||-1<c.indexOf("pcauto.com.cn")||-1<c.indexOf("pclady.com.cn")||-1<c.indexOf("pcgames.com.cn")||

-1<c.indexOf("pcbaby.com.cn")||-1<c.indexOf("pchouse.com.cn")||-1<c.indexOf("xcar.com.cn")))if(A!==g)A=j;else{A=j;d();var c=t,e;for(e in p)if(e&&p.hasOwnProperty(e)&&p[e]){var f=p[e];"block"===f.Ea&&(c=n);f.total=C;a.log.F({url:h(f)})}if(b&&c)if(b=+new Date,k.o)for(c=b+200;c>+new Date;);else{e=1E5;for(c=0;c<e;c++);c=+new Date;e=Math.min(200*e/(c-b),1E7);for(c=0;c<e;c++);}}}function h(a){var c="tu="+a.id,d="word="+b.get(m,"ltu"),f="if="+b.get(m,"dis"),g="aw="+a.width,h="ah="+a.height,i="dt="+Math.round(e/

1E3),j="pt="+a.O,k=new Date(a.timestamp),l="yyyyMMddhhmmssS",o={"M+":k.getMonth()+1,"d+":k.getDate(),"h+":0===k.getHours()%12?12:k.getHours()%12,"H+":k.getHours(),"m+":k.getMinutes(),"s+":k.getSeconds(),"q+":Math.floor((k.getMonth()+3)/3),S:k.getMilliseconds()},p={"0":"\u65e5",1:"\u4e00",2:"\u4e8c",3:"\u4e09",4:"\u56db",5:"\u4e94",6:"\u516d"},s=/(y+)/,y=l.match(s);y&&(l=l.replace(s,(k.getFullYear()+"").substr(4-y[0].length)));s=/(E+)/;if(y=l.match(s))y=y[0].length,l=l.replace(s,(1<y?2<y?"\u661f\u671f":

"\u5468":"")+p[k.getDay()+""]);for(var z in o)o.hasOwnProperty(z)&&(k=RegExp("("+z+")"),(p=l.match(k))&&(l=l.replace(k,1===p[0].length?o[z]:("00"+o[z]).substr((""+o[z]).length))));c=[c,d,f,g,h,i,j,"ps="+l,"it="+a.N,"vs="+(a.u?1:0),"vt="+a.M,"ft="+a.t,"op="+a.opacity,"csp="+r,"bcl="+a.ma,"pof="+a.Na,"top="+a.top,"left="+a.left,"fs=1","total="+a.total];for(d=0;2>d&&v.length;)f=v.pop(),c.push("lvu"+d+"="+f.url),c.push("lvt"+d+"="+f.time),d++;return a.url+(a.W?a.W+"&":"")+c.join("&")}var e=+new Date,

i=1,g=2,j=3,k=a.U,f=a.event.bind,l=a.style,o=a.lang.A,p=[],C=0,E=0,A=i,K=n,N=0,r=[1E4<screen.availWidth?0:screen.availWidth,1E4<screen.availHeight?0:screen.availHeight].join(),s=window;a.b.p(window)&&!a.b.B(window)&&(s=window.top);E=setInterval(d,500);(function(){function a(){var b=+new Date,c;for(c in p)if(o.call(p,c)){var d=p[c];d.t+=b-d.C;d.C=b}K=t}function b(){var a=+new Date,c;for(c in p)o.call(p,c)&&(p[c].C=a);K=n}k.o?(f(document,"focusin",b),f(document,"focusout",a)):(f(window,"focus",b),f(window,

"blur",a))})();(function(){function a(b){if(b=(b.target||b.srcElement).href)v.push({url:encodeURIComponent(b),time:+new Date}),10<v.length&&v.shift()}f(document,"click",a);s!=window&&f(s.document,"click",a)})();f(window,"beforeunload",c);var v=[];return{register:function(b){var c=+new Date,d=b.id,e=b.wrapperId,f=b.url||"http://eclick.baidu.com/a.js?",g=b.logType||"storage",b=b.extra||"";if(e&&!p[e]){var h=a.b.c(e);if(h){var i=l.n(h);p[e]={id:d,Qa:e,url:f,Ea:g,W:b,timestamp:c,N:0,u:t,M:0,D:t,O:0,t:0,

C:c,top:i.top,left:i.left,bb:r,opacity:l.ta(h),ma:[l.m(),l.l()].join(),Na:[l.aa(),l.$()].join(),width:l.K(h),height:l.J(h)};C++}}},getWatchCount:function(){return C}}});})();

