function addEV(e,t,n){window.attachEvent?e.attachEvent("on"+t,n):window.addEventListener&&e.addEventListener(t,n,!1)}function _aMC(e){for(var t=e,n=-1;t=t.parentNode;)if(n=parseInt(t.getAttribute("id")),n>0)return n}function al_c(e){for(;"TABLE"!=e.tagName;)e=e.parentNode;return e.getAttribute("id")}function al_c2(e,t){for(;t--;)for(;"TABLE"!=(e=e.parentNode).tagName;);return e.getAttribute("id")}function c(e){var t=e.p1;if(!("alop"!=e.fm||"rsv_xpath"in e||t&&"6677"==G(t).getAttribute("srcid")))return!0; !t||"p5"in e||(e.p5=t);var n=window.document.location.href,i="",o="",r="",a=window["BD_PS_C"+(new Date).getTime()]=new Image;for(v in e){switch(v){case"title":o=e[v].replace(/<[^<>]+>/g,""),o&&o.length>100&&(o=o.substring(0,100)),o=encodeURIComponent(o);break;case"mu":case"url":o=escape(e[v]);break;default:o=e[v]}i+="&"+v+"="+o}if(!("mu"in e))try{"p2"in e&&G(e.p1).getAttribute("mu")&&"pl"!=e.fm&&(r="&mu="+escape(G(e.p1).getAttribute("mu")))}catch(s){}if(window.bds&&bds.comm){var c=bds.comm.ubsurl+"?q="+bds.comm.queryEnc+i+r+"&rsv_sid="+bds.comm.sid+"&cid="+bds.comm.cid+"&qid="+bds.comm.queryId+"&t="+(new Date).getTime(); if(bds.comm.inter&&(c=c+"&rsv_inter="+bds.comm.inter),bds.comm.seinfo&&bds.comm.seinfo.rsv_pstg&&(c=c+"&rsv_pstg="+bds.comm.seinfo.rsv_pstg),bds.comm.cftime&&0!=bds.comm.cftime&&(c=c+"&rsv_cftime="+bds.comm.cftime),c+=bds.comm.resultPage?"&rsv_iorr=1":"&rsv_iorr=0",bds.comm.tn&&(c=c+"&rsv_tn="+bds.comm.tn),bds.comm.indexSid&&(c+="&rsv_isid="+bds.comm.indexSid),bds.comm.lastVoiceQuery&&(c+="&rsv_lavo="+encodeURIComponent(bds.comm.lastVoiceQuery)),Cookie.get("ispeed")&&(c+="&rsv_ispeed="+Cookie.get("ispeed")),/ssl_sample/.test(location.href)){var d=location.href.match(/ssl_sample=[^=&]+/i); c+="&rsv_"+d[0]}if(/ssl_s=/.test(location.href)){var d=location.href.match(/ssl_s=[^=&]+/i);c+="&rsv_"+d[0]}c+="&rsv_ssl="+("https:"===location.protocol?1:0),c+="&path="+encodeURIComponent(n),c+="&rsv_did="+(bds.comm.did?bds.comm.did:""),a.src=c}return!0}function TagQ(e,t){return t.getElementsByTagName(e)}function h(e){e.style.behavior="url(#default#homepage)",e.setHomePage(bds.comm.domain);var t=window["BD_PS_C"+(new Date).getTime()]=new Image;t.src=bds.comm.ubsurl+"?fm=hp&tn="+bds.comm.tn+"&t="+(new Date).getTime() }function G(e){return document.getElementById(e)}function ns_c_pj(e,t){var n=encodeURIComponent(window.document.location.href),i="",o="",r="",a=bds&&bds.comm&&bds.comm.did?bds.comm.did:"";wd=bds.comm.queryEnc,nsclickDomain=bds&&bds.util&&bds.util.domain?bds.util.domain.get("http://nsclick.baidu.com"):"http://nsclick.baidu.com",img=window["BD_PS_C"+(new Date).getTime()]=new Image,src="";for(v in e){switch(v){case"title":o=encodeURIComponent(e[v].replace(/<[^<>]+>/g,""));break;case"url":o=encodeURIComponent(e[v]); break;default:o=e[v]}i+=v+"="+o+"&"}if(r="&mu="+n,src=nsclickDomain+"/v.gif?pid=201&"+(t||"")+i+"path="+n+"&wd="+wd+"&rsv_sid="+(bds.comm.ishome&&bds.comm.indexSid?bds.comm.indexSid:bds.comm.sid)+"&rsv_did="+a+"&t="+(new Date).getTime(),"undefined"!=typeof Cookie&&"undefined"!=typeof Cookie.get)Cookie.get("H_PS_SKIN")&&"0"!=Cookie.get("H_PS_SKIN")&&(src+="&rsv_skin=1");else{var s="";try{s=parseInt(document.cookie.match(new RegExp("(^| )H_PS_SKIN=([^;]*)(;|$)"))[2])}catch(c){}s&&"0"!=s&&(src+="&rsv_skin=1") }return img.src=src,!0}function ns_c(e,t){return t===!0?ns_c_pj(e,"pj=www&rsv_sample=1&"):ns_c_pj(e,"pj=www&")}function escapeHTML(e){return e.replace(/&/g,"&").replace(//g,">").replace(/ /g," ").replace(/"/g,""").replace(/'/g,"'")}function initPreload(e){function t(){Cookie.set("ISSW","1",null,null,new Date((new Date).getTime()+3e5))}function n(e,t){t=t||3,Cookie.set("ISWR",e,null,null,new Date((new Date).getTime()+1e3*t))}function i(e){e&&"string"==typeof e&&(e=$.parseJSON(e)),e&&e.length&&$.each(e,function(e,t){if(0===t.indexOf(yt.protocol)){var n=new Image; n.src=t}})}function o(e){return $.trim(e).replace(/\s+/g," ")}function r(e){if("string"==typeof e){var t,n=0;for(t=0;t-1?(i=e.split("?"),o=i[1]):o=e,t=o.indexOf("&")>-1?o.split("&"):new Array(o);for(var a=0;a-1?t[a]:t[a]+"=",n=t[a].split("="),r[n[0]]=decodeURIComponent(n[1].replace(/\+/g," "))}catch(s){}return r}function s(e){function t(e){if(document.all)$("style[data-for='result']").get(0).styleSheet.cssText+=e; else{var t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(e)),t.setAttribute("data-for","result"),document.getElementsByTagName("HEAD")[0].appendChild(t)}}function n(){Z.css({filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=95)",opacity:.95}),et||(t(".slowmsg{z-index:301;background-color:#fff;border:1px solid #f0f0f0;position:fixed;_position:absolute;top:144px;left:212px;height:95px;width:360px;box-shadow:0 0 5px rgba(0,0,0,0.05)}.slowmsg .ball{width:40px;margin:41px auto 0;position:relative;}.slowmsg .b{left:20px;position:absolute;width:10px;height:10px;-moz-border-radius: 50%;-webkit-border-radius: 50%;border-radius: 50%;}.pc-fresh-wrapper .slowmsg{top:min(30%,200px);left:50%;transform:translateX(-50%) translateY(-50%);}"),et=$('
'),et.find(".b").each(function(e,t){var n=[[0,40],[20,20],[40,0]][e],i=["rgb(55,137,250)","rgb(99,99,99)","rgb(235,67,70)"],o=0; $(t).css({"background-color":i[e]}),function r(){return tt?($(t).animate({left:n[o%2]},{duration:800,easing:"swing",progress:function(n,r){r>=.5&&$(t).css({"background-color":i[(o+e)%3]})},complete:function(){r()}}),void o++):void setTimeout(r,400)}()})),et.appendTo(yn),ns_c({pj_name:"loading_msg"})}function i(){var e,t=(new Date).getTime();Cookie.set("rsv_jmp_slow",t),Cookie.set("WWW_ST",t,null,null,new Date(t+3e4)),e=yt.href+(yt.href.indexOf("?")>0?"&":"?")+"rsv_jmp=slow",yt.replace(e)}if(!rt){var o=112,e=$.extend({top:o,"z-index":300},e),r=$(window).height(); Z||(Z=$("
")),Z.css({filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)",opacity:.3,position:"absolute",background:"#fff","z-index":e["z-index"],top:e.top+"px",left:"0"}),rt=!0,Z.width(yn.width()),Z.height(Math.max(r,yn.height())-e.top),Z.appendTo(yn),$(window).scrollTop(),tt=setTimeout(n,3e3),it=setTimeout(i,7e3),ot=function(){tt&&(clearTimeout(tt),tt=setTimeout(n,3e3)),it&&(clearTimeout(it),it=setTimeout(i,7e3))}}}function d(){Z&&rt&&(rt=!1,Z.remove(),et&&et.remove(),tt&&(clearTimeout(tt),tt=!1),nt&&nt.remove(),it&&(clearTimeout(it),it=!1)) }function u(e,t,n){n||(n=0);var i=e.length;for(0>n&&(n=i+n);i>n;n++)if(e[n]===t)return n;return-1}function l(e,t,n){var i=t.find("script:not([src])"),o=0,r=$.globalEval;$.globalEval=function(e){window.currentScriptElem=i[o],o++;try{r.apply($,arguments)}catch(t){window.console&&console.error&&(console.error(e),console.error(t))}},"insertBefore"==n?t.insertBefore(e):"insertAfter"==n?t.insertAfter(e):e.append(t),window.currentScriptElem=void 0,$.globalEval=r}function p(e){try{e()}catch(t){window.console&&console.error&&console.error(t),at(t.toString()) }}function h(e,t){function n(e){if("object"==typeof e){var t={};for(s in e)e.hasOwnProperty(s)&&(t[s]=e[s])}else t=e;return t}if(!h.__init){h.__init=!0;var i=["wd","pn","nojc","cl","cq","srcid","gpc","tfflag","si","sl_lang","rsv_srlang","rqlang","close_loc_per"],o=["wd","cl","ct","tn","rn","ie","f","lm","si","gpc","tfflag","usm","z","ch","sts","vit","dsp","trh","trb","tre","la","lo","st","nojc","haobd","rtt","bsst","gvideo","__eis","__eist","oq","fenlei","sid","rsv_idx","rsv_stat","rsv_bp","rqlang"],r=["w","word"]; h.prototype.clone=function(e){var t=new h(n(this.params));if("object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&u(o,i)>=0&&t.p(i,e[i]);return t},h.prototype.h=function(e){this.header_params=this.header_params||{};for(var t in e)this.header_params[t]=e[t];return this},h.prototype.buildHeaders=function(e){e&&this.setHeader(e);var t={};for(var n in this.header_params)if("object"==typeof this.header_params[n]){var i=[];for(var o in this.header_params[n]){var r=this.header_params[n][o];r instanceof Array&&(r=r.join("|")),i.push(o+"="+r) }t[n]=i.join("&")}else t[n]=this.header_params[n];return t},h.prototype.buildSearchUrl=function(e){return yt.protocol+"//"+yt.host+yt.pathname+yt.search+"#"+this.buildQueryString(e)},h.prototype.buildSyncSearchUrl=function(e){return yt.protocol+"//"+yt.host+"/s?"+this.buildQueryString(e)},h.prototype.buildQueryString=function(e){var t=n(this.params);if("object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);var o="";t.wd=$.limitWd(t.wd);for(param in t)param&&t.hasOwnProperty(param)&&""!==t[param]&&(o+=param+"="+encodeURIComponent(t[param]).replace(/'/g,"%27")+"&"); return o.substr(0,o.length-1)},h.prototype.equals=function(e){if(!e||!e.p)return!1;for(var t=0;t=0&&(e="wd"),void 0===t?this.params[e]:(this.params[e]=t,this)},h.prototype.hashCode=function(){var e=[];if(!this.p("wd"))return"";for(var t=0;tw.st&&w.net-w.st-y.cus_srv>0?w.net-w.st-y.cus_srv:1,y.cus_tti2=w.dom>w.st?w.dom-w.st:1,y.cus_frdom=w.dom-w.pt,y.cus_fs=w.fs>w.st?w.fs-w.st:y.cus_tti2,y.cus_frext=y.cus_fs-y.cus_tti2}function o(e){var t="";for(var n in e)n&&e.hasOwnProperty(n)&&""!==e[n]&&(t+="&"+n+"="+encodeURIComponent(e[n]));return t}function r(e){var e=[];for(var t in k)e.push(k[t]); var n=S=$.when.apply($,e);S.always(function(){n===S&&p()})}function a(){var e=Array.apply(null,arguments);if(!(!e.length>0))for(var t=0;t.51&&.52>e;T=T||bds.comm.bfe_sample;var a=T&&e>.6&&.9>e;if(e>.51&&.52>e||t.test(bds.comm.sid)&&e>0&&.2>e||bds.comm.intrSid||a){t.test(bds.comm.sid)&&(r?n("issam",2):n("issam",1)),a&&(n("issam",3),n("bfesam",bds.comm.bfe_sample)),i(),m(C),g(C),n("srvInfo",f()),n("sysv",navigator.appMinorVersion),s(),x.fire();var c="//www.baidu.com/nocache/fesplg/s.gif?log_type=sp",d="";d+=o(b)+o(y);var u=c+d,l=new Image,p="_LOG_"+(new Date).getTime(); l.onload=function(){delete window[p]},window[p]=l,l.src=u}}function h(e){C=e,e.find("img").one("load",function(){var e=$(this).offset(),i=e.top,o=e.left,r="";if(I>i&&i>0){t("fs");var a=w.fs-w.dom;_.push(i+"_"+o+"_"+a),r=$(this).attr("data-src")||/^http/.test($(this).attr("src"))?$(this).attr("data-src")||$(this).attr("src"):"base64",n("ic_lis",r)}})}function f(){var e,t,n=$.parseJSON(bds.comm.speedInfo),i=[];for(var o in n){if(e=n[o],t=e.ModuleId+"_"+e.TimeCost+"_"+e.TimeSelf+"_"+e.Idc,e.hasOwnProperty("SubProcess"))for(var r in e.SubProcess)t+=","+e.SubProcess[r].ProcessId+"_"+e.SubProcess[r].TimeCost+"_"+e.SubProcess[r].isHitCache+"_"+e.SubProcess[r].Idc; i.push(t)}return encodeURIComponent(i.join("|"))}function m(e){for(var t=0,i=e.find("img"),o=e.find("#content_left").find("img"),r=0,a=0,s=0;sa&&a>0&&t++;n("cus_ic",i.length),n("cus_extic",t),n("cus_extlic",r),n("cus_icl",o.length),n("cus_icr",e.find("#content_right").find("img").length),n("img_info",_.join(",")),n("psize",e.html().length)}function g(e){var t={},i=[],o=e.find("#content_left,#con-ar").children("*[tpl]"),r="";if(o.length>0)for(var a=0;a0&&n("tplp",i.join("|"))}function v(e){x.add(e)}var b={product_id:45,page_id:317,page_type:0},y={},w={st:0,pt:0,net:0,dom:0,fs:0},_=[],x=$.Callbacks(),k={},S=null,C=null,T=null,I=600;return u(),{trigger:d,mark:t,setParam:n,onSendlog:v,bindImgLoad:h,destroy:c,init:l}}function m(e,t){if(bds.comm.smartSearchBox||bds.comm.searchBoxNew){g();var n=$("#main-wrapper");n.length&&n.on("smartInputRerender",g)}else $.when(fn).done(function(e){t(e)})}function g(){var e=$("#main-wrapper #chat-input-main #chat-textarea"); e.data("sugInputBound")||(e.on("inputChange",y),e.on("selectSug",function(e,t,n,i){w(e,n,i,t)}),e.data("sugInputBound",1))}function v(){var e=navigator.userAgent.toLowerCase(),t=e.includes("firefox")&&!e.includes("seamonkey"),n="Win32"==navigator.platform||"Windows"==navigator.platform;return t&&n}function b(){function e(){if(bds.comm.ishome&&bds.comm.supportis&&!$.trim(qt.val())){var n=new h({pn:"",wd:""});Q(n);var i=$("
请按“回车”键发起检索
").insertBefore(".s_form");$(window).one("swap_begin",function(){i.remove() }),t.off("compositionstart",e)}}if(v()){var t=$("#kw");t.on("compositionstart",e)}}function y(e,t){var n,i;if(n||(n=qt.val()),N(""),K(),clearTimeout(pn),clearTimeout(Tn),0==pageState&&window.__disable_index_predict||xt||St||ln.isSlow())return void(e&&e.setMaxNum&&e.setMaxNum(10));e&&e.setMaxNum&&e.setMaxNum(vt);var o=new h({pn:"",wd:t.value});if(bds&&bds.comm&&bds.comm.logFlagSug&&1===bds.comm.logFlagSug&&o.p("rsv_slog","ipt_change"),0==pageState&&bds.comm.supportis&&$.trim(qt.val())){Q(o);var r=$("
请按“回车”键发起检索
").insertBefore(".s_form"); $(window).one("swap_begin",function(){r.remove()})}if(rn)return void(rn=!1);if(window.__restart_confirm_timeout&&M(),un="input",zt=(new Date).getTime(),i&&(clearTimeout(i),i=!1),""==$.trim(t.value))return void A();if(on=t.checkStore(),!/^[a-zA-Z0-9~!@#$%^&*()_+=-]$/.test(t.value)){var a=qt.val(),s=t.imt.getLog();s.length>0&&s[s.length-1].type.indexOf("link")>-1&&o.p("_sglink","1");var c=t.imt.diffLog();c&&c.length>1&&(c=c.slice(-15).join("."),o.h({is_params:{imes:encodeURIComponent(c)}})),!window.__disable_is2&&n.length>a.length&&0===n.indexOf(a)?i=setTimeout(function(){F({env:o,use_cache:!0,force:!1,pstg:5,shouldShow:bds.comm.supportis}),i=!1 },250):F({env:o,use_cache:!0,force:!1,pstg:5,shouldShow:bds.comm.supportis})}n=a}function w(e,t,n,i){if(N(""),clearTimeout(pn),!(0==pageState&&window.__disable_index_predict||xt||St||ln.isSlow()))if(-1==t){sn&&e&&e.setVisibleSug&&e.setVisibleSug(sn.real_wd);var o=new h({pn:"",wd:i.value});bds&&bds.comm&&bds.comm.logFlagSug&&1===bds.comm.logFlagSug&&o.p("rsv_slog","sug_select"),F({env:o,use_cache:!0,force:!1,shouldShow:bds.comm.supportis,pstg:3})}else{e&&e.setVisibleSug&&e.setVisibleSug(),N("");var o=new h({pn:"",wd:n}); bds&&bds.comm&&bds.comm.logFlagSug&&1===bds.comm.logFlagSug&&o.p("rsv_slog","sug_select");var r=i.stopRefresh?!1:bds.comm.supportis;F({env:o,force:!1,use_cache:!0,no_predict:!0,shouldShow:r,pstg:3})}}function _(e,t){var n=getCursortPosition(this);(9==t.keyCode||39==t.keyCode&&n==(this.value&&this.value.length))&&bds.comm.supportis&&sn&&Ft.text()&&(t.preventDefault(),sn.real_wd!=this.value&&(qt.val(sn.real_wd),e.check()),e.show(),N(""),U(sn,dn,22)({tipConfirm:!0}))}function x(e){qt.keydown(function(t){_(e,t) }),e.on("start",function(){un="focus"}),$(window).on("blur",function(){e.hide()}),$(document).on("mouseup",function(t){return 2==t.isTrigger||3==t.isTrigger?!1:void($(t.target).is(".quickdelete")||$(t.target).is(".quickdelete-wrap")||$(t.target).is("#kw")||$(t.target).is("#main-ipt")||$(t.target).is(".bdsug-store-del")||e.hide())}),e.on("inputChange",function(t,n){y(e,n)}),e.on("selectSug",function(t,n,i,o){w(e,i,o,n)}),e.on("render",function(){sn&&e.setVisibleSug(sn.real_wd)}),e.on("dataReady",function(e,t){var n=t&&t.queryValue&&t.dataCached&&t.dataCached[t.queryValue]; if(n&&n.gl)for(var i in n.gl)if(1*n.gl[i]>0){var o=new h({pn:"",wd:n.s[i]});F({env:o,force:!1,use_cache:!0,no_predict:!0,shouldShow:!1,pstg:7})}}),0==pageState&&e.start()}function k(e,t){e&&(t=$.extend(e.log,t))}function S(){if(bds.comm.seinfo){bds.comm.seinfo.rsv_pre=encodeURIComponent(C()),bds.comm.seinfo.rsv_reh=reh_rec(),bds.comm.seinfo.rsv_scr=scr_rec();var e=null;if(bds&&bds.comm&&bds.comm.personalData)try{"string"==typeof bds.comm.personalData&&(bds.comm.personalData=$.parseJSON(bds.comm.personalData)),e=bds.comm.personalData?bds.comm.personalData.fullSkinName&&bds.comm.personalData.fullSkinName.value:null }catch(t){e=null}if(e&&(bds.comm.seinfo.rsv_skin=e),bds.comm.seinfo.rsv_psid=$.getCookie("BIDUPSID"),bds.comm.seinfo.rsv_pstm=$.getCookie("PSTM"),bds.comm.seinfo.rsv_idc=function(){var e=bds.comm.speedInfo||[];try{e=$.parseJSON(e)}catch(t){e=[]}for(var n=0,i=e.length;i>n;n++)if(9540==e[n].ModuleId)return e[n].Idc||"";return""}(),c(bds.comm.seinfo),"ON"===bds.comm._se_click_track_flag){var n=new Image,i="//www.baidu.com/s?wd="+bds.comm.queryEnc+"&qid="+bds.comm.queryId+"<s=91";n.src=i}}}function C(){return Yt.length }function T(e){$(document).delegate("a","mousedown",function(){return function(){var t=$(this);E(t,e)}}())}function I(){return/Safari/gi.test(navigator.userAgent)&&!/Chrome/gi.test(navigator.userAgent)}function E(e,t){var n,i=t.prefix,o=e.attr("href");if(i&&o&&0==o.indexOf(i)&&(o=o.substring(i.length)),!i&&o){var r=o.match(/^http:\/\/[^\/]+/);if(!r)return;i=r[0],o=o.replace(/^http:\/\/[^\/]+/,"")}if(o&&(n=o.match(/^\/*(link|baidu.php)\?(.*)$/),n=o.match(t.regex)),!(n&&n[2]&&n[2].match(/&(wd|word)=/))){if(o&&n){t.convertTable&&t.convertTable[n[1]]&&(n[1]=t.convertTable[n[1]]); var a=_t.getLinkParams(o);a&&("https:"===yt.protocol&&/Chrome|Safari/.test(navigator.userAgent)&&(i=i.replace(/^http:\/\/www\.baidu\.com/,"https://www.baidu.com")),o=i+"/"+n[1]+"?"+n[2]+"&"+a,e.attr("href",i+"/"+n[1]+"?"+n[2]+"&"+a),e.click(function(){window.PDC_ASYNC.setLinkData("click_t",(new Date).getTime()),window.PDC_ASYNC.setLinkData("linkpreload",$(this).attr("linkpreload"))}))}return o}}function N(e){if(!window.__disable_is2||$.trim(e)!=$.trim(qt.val())){if(wn||!bds.comm.supportis)return void(Ft&&Ft.html("")); if(0!=pageState&&!window.__disable_kw_tip)if(Ft||(Ft=$('
').insertBefore(qt),Ft.parent().click(function(e){var t=qt.get(0);if(e.target===t)return!0;t.focus();var n=t.value.length;if(document.selection){var i=t.createTextRange();i.moveStart("character",n),i.collapse(),i.select()}else"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(t.selectionStart=t.selectionEnd=n);return!1}),Ft.get(0).onselectstart=function(){return!1 }),Ft.text(e),""!=e){var t=qt.textWidth();Ft.css({opacity:0,"margin-left":t+20+"px","max-width":Ft.parent().width()-t-14+"px"}).text(e),window.__disable_is2&&Ft.css("z-index",1),Ft.show()}else Ft.hide()}}function O(){wn=!1}function A(){wn=!0,sn&&sn.real_wd&&$.trim(qt.val())?(N(sn.real_wd),L(sn)):(N(""),L())}function L(e){var t=o(qt.val());e&&t==e.real_wd&&$("#super_se_tip").remove()}function j(e){try{if(bds.comm.shouldInputConstant=0,e&&e.html){var t=e.html.find('[tpl="app/chat-input"]'),n=$('[tpl="chat-input"]'); !t.length&&bds.comm.smartSearchBox?($("#chat-input-main").trigger("asyncHandler"),bds.comm.shouldInputConstant=1):bds.comm.supportis&&0===n.length&&(bds.comm.shouldInputConstant=1,$("#chat-input-main").trigger("asyncHandler"))}}catch(i){console.error(i)}}function R(e,t){var n=(new Date).getTime();if(t.force||k(t,{utime:(new Date).getTime()-Zt}),!t||!t.loaded)return!1;"string"==typeof t.html&&(t.html=$(t.html)),j(t),$(t).trigger("swap_begin"),p(function(){t.pdc.mark("pt"),$(window).trigger("swap_begin",[t,e]); var n=ln&&ln.getData();n&&(setTimeout(function(){t.pdc.setParam("ispeed",ln.monitor(n))},3e3),t.pdc.setParam("upm",n.join(",")))}),p(function(){t.base64.restart();try{if(!t.base64_loaded){var e=$.parseJSON(t.html.find("#img_list").text());t.base64.loadImg(e.right,e.left)}}catch(n){}t.base64.end()});var i=[$(window).scrollLeft(),$(window).scrollTop()];Kt.hide(),oldEnv=an,an=e,dn=sn,sn=t,bds.comm.cur_disp_query=e.p("wd"),P(),bds&&bds.se&&bds.se.certification&&bds.se.certification.data&&(bds.se.certification.data=[]),0==pageState&&Q(e),p(function(){At() }),bds.clearReady(),Kt.empty();var o=t.html;if(ut.use_cache_repeatedly&&(o=o.clone()),$("#content_style").remove(),p(function(){var e=o.find("#head_style").children("#content_style");e&&e.length?e.children().removeAttr("data-for").appendTo("head"):o.find("#head_style").children().removeAttr("data-for").appendTo("head")}),p(function(){$.globalEval(o.find("#head_script").html())}),bds.comm&&bds.comm.jsversion&&"006"!=bds.comm.jsversion){var r=an.buildSyncSearchUrl({jmp:"jsver",_vr:Math.random()});return void yt.replace(r) }bds.comm.bottomColor?(Kt.addClass("container_through_bottom"),Kt.css("background","rgb("+bds.comm.bottomColor+")")):(Kt.removeClass("container_through_bottom"),Kt.css("background","")),p(function(){o.find("#content_script script").each(function(e,t){$.globalEval($(t).html())})}),p(function(){var e=o.find('[tpl="app/head-tab"]'),t=e.prev(),n=$("#s_tab"),i=$('[tpl="app/head-tab"]'),r=i.length>0?i:n.length>0?n:null,a=r&&r.prev(),s=a&&!!a.attr("data-vue-ssr-id"),c=e.length>0;r&&r.remove(),c&&(!s&&t.insertBefore(Kt),e.insertBefore(Kt)) });var a=!1;!function(){var e=o.find("#con-at"),n=$("#con-at"),i=n.children().children();if(i.size())if(e.children().size()){var r=e.children().children();i.attr("cq")!=r.attr("cq")||i.attr("srcid")!=r.attr("srcid")||t.force&&oldEnv&&oldEnv.equals(an)||!an.p("cq")||!an.p("srcid")||1==an.p("_trf")?(n.remove(),$(window).trigger("top_result_removed"),l(Kt,e,"insertBefore")):a=!0}else n.remove(),$(window).trigger("top_result_removed");else e.children().size()&&l(Kt,e,"insertBefore")}(),function(){var e=o.find("#top-ad"),t=$("#top-ad"),n=t.children(),i=$("#s_tab"),r=!!e.children().size(); n.size()&&t.remove(),r&&l(i,e,"insertAfter")}(),p(function(){var e=o.find('[tpl="app/search-tag"]'),t=e.prev(),n=$('[tpl="app/search-tag"]'),i=n&&n.prev(),r=i&&!!i.attr("data-vue-ssr-id"),a=e.length>0;n&&n.remove(),a&&(!r&&t.insertBefore(Kt),e.insertBefore(Kt))}),p(function(){var e=o.find('[tpl="app/chat-input"]'),t=$('[tpl="app/chat-input"]'),n=$('[tpl="chat-input"]');n.length?(e.insertBefore(n),e.hide(),t&&t.remove(),n.on("asyncChangeInputDom",function(){n&&n.remove(),e.show();var t=$("#main-wrapper"); t.length&&t.trigger("smartInputRerender")})):t.length&&(!e.length||bds.comm.supportis?$("#chat-input-main").trigger("asyncHandler"):(e.insertBefore(t),t&&t.remove()))});var s=o.find("#container");if(t.pdc.bindImgLoad(s),l(Kt,s),!$("#footer").size()){var c=o.find("#footer").children().not(".foot-async-script");l(Kt,c)}bds&&bds.comm&&bds.comm.templateName==bds.comm.resTemplateName?bds.comm.seinfo&&(bds.comm.seinfo.rsv_tpfail=0):bds.comm.seinfo&&(bds.comm.seinfo.rsv_tpfail=1),0!=pageState&&bds&&bds.util&&bds.util.setContainerWidth&&bds.util.setContainerWidth(); var u=e.p(e.p("base_query")?"base_query":"wd");document.title=u+"_百度搜索",Kt.show(),d(),k(t,{domtime:(new Date).getTime()-n}),k(t,{waittime:(new Date).getTime()-zt}),t.pdc.mark("dom"),p(function(){var e=(new Date).getTime();o&&$.globalEval(o.find("#jsMerge").html()),k(t,{jsmergetime:(new Date).getTime()-e})}),p(function(){var e=o.find("[data-for=result-data]");l(Kt,e)}),$(window).trigger("swap_dom_ready",[t,e]),window.__lazy_foot_js?setTimeout(function(){D(e,t,n)},0):D(e,t,n),a?window.scrollTo(i[0],i[1]):window.scrollTo(0,0),$(window).trigger("scroll"),swap_wait=!1 }function D(e,t,n){var i;if(n||(n=0),t&&(i=t.html),p(function(){Pt.get(0).f.value=8}),p(function(){var e=(new Date).getTime();t&&t.base64&&(t.base64.setDomLoad("left"),t.base64.setDomLoad("right")),k(t,{base64time:(new Date).getTime()-e})}),$("#search").find("form").submit(function(){var e=qt;qt=$(this).find("[name='wd']");var t=q.call(this);return qt=e,t}),p(function(){var e=(new Date).getTime();bds.doReady(),k(t,{bdstime:(new Date).getTime()-e})}),p(function(){var e=(new Date).getTime();i&&$.globalEval(i.find("#ecomScript").html()),k(t,{ecomtime:(new Date).getTime()-e}) }),p(function(){var e=(new Date).getTime();bds.se.tools&&(Vt&&clearTimeout(Vt),Vt=setTimeout(function(){bds.se.tools()},600)),bds&&bds.se&&bds.se.certification&&bds.se.certification.build&&(Gt&&clearTimeout(Gt),Gt=setTimeout(function(){$(".certification").size()>0&&bds.se.certification.build.init()},1e3)),bds&&bds.se&&bds.se.safeTip&&(Wt&&clearTimeout(Wt),Wt=setTimeout(function(){$(".unsafe_ico_new").size()>0&&bds.se.safeTip.init()},1200)),k(t,{tiptime:(new Date).getTime()-e})}),p(function(){var e=(new Date).getTime(); window.initResultClickLog(),k(t,{clicktime:(new Date).getTime()-e})}),p(function(){k(t,{rtime:(new Date).getTime()-n,used:1}),bds.comm.seinfo&&t&&(bds.comm.seinfo.rsv_pstg=t.type)}),p(function(){$(window).trigger("swap_end",[t,e]),V(),Zt=(new Date).getTime(),t&&t.pdc&&(t.pdc.mark("js"),t.pdc.trigger("swap_end"))}),i){var o=i.find(".foot-async-script"),r=$(".foot-async-script"),a=r.children();if($("body"),a.size()&&r.remove(),o.children().size()){var s=document.createElement("div");s.setAttribute("class","foot-async-script"),o.children().each(function(e,t){var n=document.createElement("script"); n.src=t.src,n.defer=!0,s.appendChild(n)}),document.body.appendChild(s)}}}function P(){p(function(){$.each(bds.comm.tips,function(e,t){t&&t.destroy&&t.destroy()}),$("#c-tips-container").empty(),bds.comm.tips=[]}),p(function(){window.app&&window.app.dispose&&window.app.dispose()}),p(function(){bds.comm.resolveUnloadHandler()}),bds&&bds.se&&bds.se.certification&&bds.se.certification.data&&(bds.se.certification.data=[]),bds&&bds.se&&bds.se.userAction&&bds.se.userAction.destroy()}function M(){Jt&&Qt&&(clearTimeout(Jt),Jt=setTimeout(Qt,gt)) }function U(e,t,n){return function(t){var i=$.extend({},t);if(e&&!e.confirm){bds.comm.cur_query=e.real_wd,!bds.comm.supportis&&e&&(n=e.pstg||0),e.confirm=!0,Jt=!1,Qt=null;var o={};o.is_referer=wt,o.is_xhr="1";var r=new h(a(_t.getQueryString()),!0);e.env.equals(r)||e.env.clone({wd:e.prw}).equals(r)||(bds.comm.inputUpgrade?_t.setUrl(e.env,"replaceUrl"):_t.setUrl(e.env)),wt=yt.protocol+"//"+yt.host+yt.pathname+yt.search,e.seq?e.seq++:e.seq=1,e.pdc&&(20!=n&&bds.comm.supportis&&e.pdc.mark("st"),e.pdc&&e.pdc.setParam&&e.pdc.setParam("cus_pstg",n),e.force&&e.pdc.setParam("f4s",1),e.pdc.trigger("confirm"),window.PRE_CONN.startTimer()),p(function(){$(window).trigger("confirm",[e,n]) });var s="/s?ie=utf-8&csq="+e.seq+"&pstg="+n+(i.tipConfirm?"&_cktip=1":"")+"&mod=2"+(bds.comm.supportis?"&isbd=1":"")+"&cqid="+e.qid+"&istc="+((new Date).getTime()-e.startTime)+"&ver="+bds.comm.baiduis_verify+"&chk="+e.chk+"&isid="+Rt+"&"+e.env.buildQueryString()+(e.force?"&f4s=1":"")+("function"==typeof bn?"&_ck="+bn(e.env.p("wd")):"")+(bds.comm.SyncSample?"&SyncSample="+bds.comm.SyncSample:"");if(bds.comm.indexSid&&(/9998_/.test(bds.comm.indexSid)&&"https:"===yt.protocol&&(bds.comm.indexSid=bds.comm.indexSid.replace("9998","8499")),s+="&rsv_isid="+bds.comm.indexSid),e.no_predict&&(s+="&isnop="+(1>=Ot?0:1)),e&&e.pstg&&(s+="&isctg="+e.pstg),Ot=0,m(dt,function(t){if(en&&t.getRsvStatus)try{s+="&rsv_stat="+t.getRsvStatus(e.env.p("wd")) }catch(n){}t.getStat("rsv_sug6")&&(s+="&rsv_sug6="+t.getStat("rsv_sug6"),bds.comm.seinfo&&(bds.comm.seinfo.rsv_sug6=t.getStat("rsv_sug6"))),t.getStat("rsv_sug7")&&(s+="&rsv_sug7="+t.getStat("rsv_sug7")),t.getStat("rsv_sug9")&&(s+="&rsv_sug9="+t.getStat("rsv_sug9")),t.getStat("rsv_bp")&&(s+="&rsv_bp="+t.getStat("rsv_bp"))}),bds.comm.searchNum||(bds.comm.searchNum=bds.comm.resultPage?1:0),bds.comm.searchNum++,s+="&rsv_sn="+bds.comm.searchNum,$.ajax({headers:o,url:s}).done(function(e){var t="";bds.comm.search_tool&&bds.comm.search_tool.actualResultLang&&(t=bds.comm.search_tool.actualResultLang),$('#form input[name="rqlang"]').val(t||"cn"),$('#form input[name="rsv_bp"]').val(1),$(e) }).fail(function(){}),bds.comm.seinfo){bds.comm.seinfo.rsv_prw=encodeURIComponent(qt.val()),bds.comm.seinfo.rsv_pstg=n,bds.comm.seinfo.rsv_svoice=window.__supportvoice?"1":"0",e.cftime+=1,bds.comm.cftime=e.cftime+"";var c=e.env.p("rsv_bak");c&&(bds.comm.seinfo.rsv_bak=c)}bds.comm.confirmQuery=bds.comm.query,bds.comm.confirmQid=bds.comm.qid,S(),Rt=e.qid,m(dt,function(e){20==n?e.updateInitData():22==n||bds.comm.supportis||n>=0&&5>=n&&e.updateInitData(),e.clearStat()}),window.cfpromise.resolve()}}}function q(e){if(!_t.support())return!0; if(kn)return!1;if(kn=!0,qt.blur(),N(""),$(this).attr("target"))return!0;xn=!0,_n=setTimeout(function(){xn=!1},1e3);try{var t=$("#kw").attr("placeholder")||$(".kw-placeholder").text();if(!$.trim(qt.val())&&!t)return yt.href="/",!1;var n,i=new h,o=$(this).serializeArray();for(n=0;n0&&(n.pstg=t.pstg),n.force&&n.pdc.mark("st"),n.base64=isbase64(n.pdc),Yt.push(n.log),$t++,Ot++,G(n,!0)}}function B(){var e=[];return on&&(e=$.map(on.slice(0,2),function(e){return e.value})),e.join(" ")}function H(e){t(),yt.replace(e.buildSyncSearchUrl()) }function z(e,t){t?(St=!0,Cn&&(clearTimeout(Cn),Cn=!1),Cn=setTimeout(function(){St=Ct},e)):(xt=!0,Sn&&(clearTimeout(Sn),Sn=!1),Sn=setTimeout(function(){xt=kt},e))}function W(e){return e.replace(/[&<>"']/g,function(e){return In[e]})}function G(e,t){var a,s,c=e.env,d={};d.is_referer=sn&&sn.env?sn.env.buildSyncSearchUrl():cn.replace(/\#.*$/,""),$.extend(d,c.buildHeaders()),d.is_xhr="1",window.bds&&bds.comm&&bds.comm.cur_query?c.p("bs",bds.comm.cur_query):c.p("bs",""),window.bds&&bds.comm&&bds.comm.cur_disp_query&&(d.is_pbs=encodeURIComponent(bds.comm.cur_disp_query)); var u=e.no_predict||!bds.comm.supportis?1:11,l=e.pstg;if(!(1==u&&1==l||11==u&&3==l||11==u&&6==l||1==u&&4==l)){var p="ie=utf-8"+(bds.comm.newindex?"&newi=1":"")+(Lt.sid?"&sid="+encodeURIComponent(Lt.sid):"")+(Lt.tnp?"&tnp="+encodeURIComponent(Lt.tnp):"")+"&mod="+(e.no_predict||!bds.comm.supportis?"1":"11")+(bds.comm.supportis?"&isbd=1":"")+"&isid="+Rt+"&"+c.buildQueryString()+"&rsv_sid="+bds.comm.indexSid+"&_ss=1&clist="+encodeURIComponent(bt.getCacheList())+"&hsug="+encodeURIComponent(B())+(e.force?"&f4s=1":"")+"&csor="+getCursortPosition(qt.get(0))+(bds.comm.SyncSample?"&SyncSample="+bds.comm.SyncSample:""); e.pstg&&(p+="&pstg="+e.pstg);var h="/s?"+p;if(h+="&_cr1="+r(h),!e.no_predict)for(s=bt.find(function(e){return e.loaded||e.no_predict?void 0:!0}),a=0;a0))){if(e.force&&e.shouldShow){var f=!1,m=(new Date).getTime();if(s=bt.find(function(t){var n=c.equals(t.env);return t.loaded||t.no_predict||!n||t===e||(t.shouldShow=!1),!t.loaded&&t.no_predict&&t.force&&n&&t!==e&&(t.shouldShow=t.shouldShow||e.shouldShow,t.startTime&&m-t.startTime<2e3&&(f=!0),window.__sam_backup_request||(f=!0)),t.loaded||n?void t.pdc.mark("st"):!0 }),f)return;for(a=0;a")>10)return void(e.force?(n(11),H(c)):bt.deleteCache(e)); k(e,{ntime:(new Date).getTime()-e.startTime,res:1});var s,d="",u=r.indexOf(d);if(-1!=u){s=$(r.substr(0,u)),e.html=r.substr(u+d.length),window.__dom_pre_parse&&"1"==s.find("#__need_parse_dom").html()&&(e.html=$(e.html));try{var l=$.parseJSON(s.find("#img_list").text());e.base64.loadImg(l.right,l.left),e.base64_loaded=!0}catch(p){}try{i(s.find("#limg_list").text())}catch(p){}}else if(t){var h=r.replace(/"(prefix|query)":"((?:\\.|[^"\\])*)"/g,function(e,t,n){var i=W(n);return'"'+t+'":"'+i+'"' });s=e.html=$(h)}else s=e.html=$(r);var f=parseInt(s.find("#__status").eq(0).html()),m=parseInt(s.find("#__switchtime").eq(0).html()),g=parseInt(s.find("#__redirect").eq(0).html()),v={};try{v=$.parseJSON(s.find("#__sugPreInfo:eq(0)").html()||"{}")||{}}catch(p){}e.real_wd=s.find("#__real_wd").eq(0).text(),e.real_wd_org=s.find("#__real_wd_org").eq(0).text(),e.real_wd_nosynx=s.find("#__real_wd_nosynx").eq(0).text(),e.env&&e.env.p("nojc")&&e.real_wd_nosynx&&(e.real_wd=e.real_wd_nosynx);var b=!1;(c.p("wd")==o(qt.val())||e.force)&&e.shouldShow&&(b=!0),e.real_wd&&(e.prw=c.p("wd"),c.p("wd",e.real_wd)); var y=s.find("#__queryId").html(),w=s.find("#__querySign").html();e.querySign=w,k(e,{stat:f?f:0}),bds.comm.isDebug&&$("#isDebugInfo").html(s.find("#__isDebugInfo").html()),y&&(e.qid=y);var _=s.find("#__chk").html();if(e.chk=_?_:0,!r||!y&&!m&&!g&&!f||!w&&e.force)return e.force?(c.p("__eis",1),c.p("__eist",r?r.length:0),c.p("real_wd",e.real_wd),n(13),void H(c)):void bt.deleteCache(e);if(m>0&&z(1e3*m,!e.no_predict),-11==f){var x=bt.getCacheBySign(w);if(!x)return F({env:e.env.clone({wd:e.real_wd}),force:e.force,use_cache:!1,no_predict:!0}),void bt.deleteCache(e); x.force=e.force,O(),N(x.real_wd),L(x),bt.deleteCache(e),e=x,sn&&e.real_wd==sn.real_wd||(b=!0)}else{if(0>f){if(1==g&&e.force)return k(e,{redirect:1}),n(14),void H(c);if(A(),-12==f&&v&&v.wait_time>0){var S=e.env.clone();pn=setTimeout(function(){F({env:S,force:!1,use_cache:!0,no_predict:!0,shouldShow:!1,pstg:6})},v.wait_time)}return void bt.deleteCache(e)}if(f>0)return void bt.deleteCache(e)}for(var C=bt.find(function(t){return!t.loaded&&t!==e&&t.no_predict&&c.equals(t.env)?(t.shouldShow&&(b=!0),t.force&&(e.force=!0,e.no_predict=!0),!0):void 0 }),T=0;T"}),g.parts(function(e,t){v(e,t,g)}),g.fail(function(t,i){e.force&&e.shouldShow&&"abort"!=i&&e.env&&(n(12),yt.replace(e.env.buildSyncSearchUrl()+"&rsv_jmp=fail")),bt.deleteCache(e) }),e.xhr=g,bt.addCache(e)}}}function V(){Yt=[],$t=0,xn=!1,clearTimeout(_n)}function J(){window.index_off&&window.index_off(),Ut[0]!==Mt[0]&&Ut.val(""),qt=Mt,pageState=1,bds.comm.ishome=0,bds.comm.cur_query=bds.comm.query,an=new h,sn={env:an,real_wd:bds.comm.query,force:!0,confirm:!0},m(dt,function(e,t,n){return function(){var e=n?n:nn;e.start()}}()),$(window).trigger("index_off"),bds.util.setContainerWidth(),p(function(){$(window).trigger("swap_dom_ready")}),window.__lazy_foot_js?setTimeout(function(){D() },0):D()}function Q(e){if(bds.comm.smartSearchBox){var t=$("#wrapper");if(t.hasClass("smart_input_superman")){t.addClass("smart_input_wrapper"),t.removeClass("smart_input_superman"),t.removeClass("smart_input_height_superman");var n=$("#chat-input-main");n.length&&n.trigger("homepredict")}}if(window.index_off&&window.index_off(),Ut.get(0)!==Mt.get(0)&&(Ut.val(""),Mt.val(e.p("wd"))),qt=Mt,pageState=1,bds.comm.ishome=0,isHitSampling("close_predict_1")){$("#wrapper.wrapper_new").addClass("predict_result_page"); var i=navigator&&navigator.userAgent?navigator.userAgent:"",o=document&&document.cookie?document.cookie:"",r=!!(i.match(/(msie [2-8])/i)||i.match(/windows.*safari/i)&&!i.match(/chrome/i)||i.match(/(linux.*firefox)/i)||i.match(/Chrome\/29/i)||i.match(/mac os x.*firefox/i)||o.match(/\bISSW=1/));bds.comm.supportis=!r}m(dt,function(t,n,i){n!==i&&(n.stop(),i.hide(),i.setKey(e.p("wd")),i.start())}),bds.util.setContainerWidth(),$(window).trigger("index_off",e)}function K(){En=!1,Nn=!1,On=[],clearTimeout(An),An=!1 }function Y(e){En||(En={x:e.pageX,y:e.pageY}),$n={x:e.pageX,y:e.pageY},Nn||En.x==e.pageX||En.y==e.pageY||(Nn=!0,On=[En],X())}function X(){On.push($n);var e=On.length;if(Math.pow($n.x-En.x,2)+Math.pow($n.y-En.y,2)>=Math.pow(Nt,2)||e*Et>=It){var t=en,n=bds.comm.supportis?1:2;if(n&&t&&t.data()&&t.data()[0]&&t.visible()){var i=(new h).clone({wd:t.data()[0].value});F({env:i,force:!1,no_predict:!0,use_cache:!0,shouldShow:!1,pstg:1}),n--}if(n&&t&&t.data()&&t.data()[1]&&t.visible()){var i=(new h).clone({wd:t.data()[1].value}); F({env:i,force:!1,no_predict:!0,use_cache:!0,shouldShow:!1,pstg:1}),n--}if(!bds.comm.supportis&&n&&$.trim(qt.val())&&(!sn||sn.env.p("wd")!=$.trim(qt.val()))){var i=(new h).clone({wd:$.trim(qt.val())});F({env:i,force:!1,no_predict:!0,use_cache:!0,shouldShow:!1,pstg:1}),n--}}else An=setTimeout(function(){X()},Et)}document.write=document.writeln=function(){},bds&&bds.comm&&"clearissw"==bds.comm.query&&Cookie.clear("ISSW"),function(){var e=$.Deferred();bds.comm.registerUnloadHandler=function(t){e.done(t) },bds.comm.resolveUnloadHandler=function(){e.resolve(),e=$.Deferred()}}(),window.b_rec=function(e){var t;if(e)t=navigator.userAgent;else try{t=window.external&&window.external.twGetRunPath?window.external.twGetRunPath():""}catch(n){t=""}return t=t.replace(/:/,"~").replace(/\t/,"`")},window.scr_rec=function(){var e="";try{e+=[document.body.clientWidth,document.body.clientHeight,window.screenTop,window.screenLeft,window.screen.height,window.screen.width].join("_")}catch(t){}return e},window.reh_rec=function(){var e=[],t=[]; try{$("#content_left").children(".result,.result-op").each(function(t,n){e.push($(n).height())})}catch(n){}try{$("#con-ar").children(".result,.result-op").each(function(e,n){t.push($(n).height())})}catch(n){}return e.join("_")+"|"+t.join("_")},window.hash=function(e,t){return e?e&&!t&&an?an.p(e):void(e&&t&&an&&(an.p(e,t),yt.href=an.buildSearchUrl())):void 0};var Z,et,tt,nt,it,ot,rt=!1;!function(){var e=$.globalEval;$.globalEval=function(){var t=(new Date).getTime();try{e.apply($,arguments)}catch(n){}(new Date).getTime()-t>500 }}(),bds.comm.isDebug&&($('').appendTo("head"),$('
').appendTo("#wrapper"),$(window).on("swap_end",function(e,t){if(t){var n=$("#isDebugInfo");n.size()||(n=$('
').appendTo("#debug")),n.html(t.html.find("#__isDebugInfo").html());var i="";for(var o in t.log)t.log.hasOwnProperty(o)&&(i+=""); i+="
"+o+""+encodeURIComponent(t.log[o])+"
",$("#debug").html(i)}}));var at=function(){var e;return function(t){bds.comm.isDebug&&alert(t),bds&&bds.comm&&bds.comm.js_error_monitor&&(e=new Image,e.src=bds.comm.js_error_monitor+"?"+$.param({url:yt.href,time:bds.comm.serverTime,explore:navigator.userAgent,info:t,info_type:1}))}}();if(window.setSugKey=function(e){qt&&e&&(nn&&nn.setKey?nn.setKey(e):qt.val(e))},window.getCursortPosition=function(e){var t=0;try{if(document.selection){var n=document.selection.createRange(),i=0;e&&e.value&&(i=e.value.length),n.moveStart("character",-i),t=n.text.length }else(e.selectionStart||"0"==e.selectionStart)&&(t=e.selectionStart)}catch(o){t=e.value.length}return t},bds.comm.flagTranslateResult&&($("#wrapper_wrapper").delegate(".result","mouseenter",function(){$(".c-fanyi",$(this)).show()}),$("#wrapper_wrapper").delegate(".result","mouseleave",function(){$(".c-fanyi",$(this)).hide()}),$("#wrapper_wrapper").delegate(".result .c-fanyi","click",function(){var e=$(this).closest(".result"),t=$("h3 a:first",e),n=$(".c-abstract:first",e),i=$(".c-fanyi-abstract",e).val(0).html(),o=$(".c-fanyi-title",e).val(0).html(); $(".c-fanyi-abstract",e).val(0).html(n.html()),$(".c-fanyi-title",e).val(0).html(t.html()),t.html(o),n.html(i)})),bds&&bds.comm&&bds.comm.indexSid){var st=(""+bds.comm.indexSid).split("_");$.inArray("28883",st)>=0&&(window.__disable_preload=1,window.__disable_predict=1)}if(bds&&bds.comm&&bds.comm.sid){var ct=(""+bds.comm.sid).split("_");$.inArray("28883",ct)>=0&&(window.__disable_preload=1,window.__disable_predict=1)}var dt=0,ut={use_cache_repeatedly:!0,index_form:"#form",kw:"#kw",new_kw:"#main-ipt",new_wrapper:"#main-input-wrapper",result_form:"#form"},lt=bds&&bds.comm,pt=$("#searchTag")&&$("#searchTag").length>0||!1,ht=lt&<.baseQuery; e&&$.extend(ut,e);var ft=15,mt=6e4,gt=window.__confirm_timeout?window.__confirm_timeout:1e4,vt=10,bt=function(){function e(e){"object"==typeof e&&null!=e&&(e.xhr&&e.xhr.abort&&e.xhr.abort(),e.base64&&e.base64.destroy(),e.pdc&&e.pdc.destroy(),e.backspace_preload_timeout_id&&clearTimeout(e.backspace_preload_timeout_id),delete e.xhr,delete e.html)}var t=[];return{find:function(e){return $.grep(t,e)},getCacheList:function(){var e=$.map(t,function(e){return e&&(new Date).getTime()-e.startTime>mt?!1:e.querySign });return e=$.grep(e,function(e){return!!e}),e.join(" ")},hasCache:function(e,n){function i(e){var i,o;return(o=e.p("wd"))?($.grep(t,function(t){return n.loaded&&!t.loaded?!1:void(e.equals(t.real_wd?t.env.clone({wd:t.real_wd}):t.env)&&(i=t))}),i?i:null):!1}n||(n={});var o=i(e);return o&&(new Date).getTime()-o.startTime>mt&&(this.deleteCache(o),o=null),o},shouldShow:function(e){if(e.force)return!0;if(!e.shouldShow&&!e.force&&e.no_predict)return!1;var t=o(qt.val());return!t||sn&&e.env.equals(sn.env)?!1:0==e.env.p("wd").indexOf(t)?!0:0==e.real_wd.indexOf(t)?!0:!1 },getCacheBySign:function(e){var n=!1;return $.each(t,function(t,i){n||!i.loaded||i.querySign!=e||i.env.p("pn")&&0!=i.env.p("pn")||(n=i)}),n},addCache:function(n){if(-1==u(t,n)&&!n.env.p("srcid")&&!n.env.p("cq"))for(t.unshift(n);t.length>ft;)e(t.pop())},deleteCache:function(n){e(n),t=$.grep(t,function(e){return e!==n})},deleteCacheByEnv:function(){t=$.grep(t,function(t){var n=t.env.equals(t.env);return n&&e(t),!n})},clearCache:function(){t=$.grep(t,function(t,n){return n!==sn?(e(n),!1):!0}),t=[]}} }(),yt=document.location,wt=yt.protocol+"//"+yt.host+yt.pathname+yt.search,_t={onurlchange:function(){}};!function(){function e(){var e=yt.href.match(/#+(.*)$/);return e?e[1].replace(/\+/g,"%2B"):""}function n(){var e=yt.href.match(/\?([^#]+)/);return e?e[1].replace(/\?/g,"&"):""}function i(e,t){var n="";if("1"===window._thirdLinkSpeed&&(n="&qid="+bds.comm.queryId),window._bdlksmp>0&&(n="&bdlksmp="+window._bdlksmp),"1"===window._eclipse&&/^\/link\?/.test(t))return"wd=&eqid="+bds.comm.eqid+o(["pn","rn","ie"],e)+n; var i=new h(a(e));return i.p("wd")?i.buildQueryString().replace(/&rsv[^=]*=[^&]*/g,"").replace(/[^a-zA-Z0-9]url=/g,"")+n:void 0}function o(e,t){var n="",i=a(t);for(var o in e)i.hasOwnProperty(o)&&(n+="&"+encodeURIComponent(i[o]));return n}function r(e){var t=new h(a(_t.getQueryString()),!0);t.hashCode()?0==pageState&&Q(t):0!=pageState?yt.replace(yt.pathname+yt.search.replace(/([?&])isidx=[^&*]&?/,"$1")):yt.search!=yt.search.replace(/([?&])isidx=[^&*]&?/,"$1")&&yt.replace(yt.pathname+yt.search.replace(/([?&])isidx=[^&*]&?/,"$1")),_t.onurlchange(t,e) }var s="onhashchange"in window,c="onpopstate"in window;window.__disable_popstate&&(c=!1);var u=yt.pathname.length>1?yt.pathname:"/s";(navigator.userAgent.match(/MSIE (6|7)/)||document.documentMode<8)&&(s=!1,c=!1),ut.disable_popstate&&(c=!1),s||c||t();var l=function(){var t="";return function(n,i){i&&(t=i.buildQueryString(),yt.hash=t),(n||t!=e())&&(r(n),t=e())}}();_t.setUrl=function(e,t){c?p(!1,e,t):s&&l(!1,e)};var p=function(){var e=n();return function(t,i,o){i&&(e=i.buildQueryString(),"replaceUrl"===o?window.history.replaceState(i,"",i.buildSyncSearchUrl()):window.history.pushState(i,"",i.buildSyncSearchUrl())),t||e!=n()?(r(t),e=n()):d() }}();_t.getQueryString=function(){return c?n():/wd=/.test(e())?e():n()},_t.init=function(){c?!function(){var t=yt.href,n=!1;$(window).on("swap_begin",function(){n=!0}),$(window).bind("popstate",function(){(n||!t||t!=yt.href)&&p(),t=null}),$(window).bind("hashchange",function(){var t=e();/wd=/.test(t)&&yt.replace(u+"?"+t)})}():s&&($(window).bind("hashchange",function(){l()}),$(function(){l()}));var t=e();/wd=/.test(t)&&(c?(window.history.replaceState(null,"",u+"?"+t),p()):s?l():yt.replace(u+"?"+t)) },_t.support=function(){return(c||s)&&1!=Cookie.get("ISSW")&&!window.__disable_preload},_t.getLinkParams=function(t){if(!c){var o=e();return""==o&&(o=n()),i(o,t)}if("https:"===yt.protocol||"1"===window._eclipse){var r=n();return r||(r=e()),i(r,t)}return!1},_t.clickResultLink=function(e,t,n){return c?(window.history.pushState(null,"",new h(n,!0).buildSyncSearchUrl()),p(),!1):void e.attr("href",t.buildSearchUrl(n)).attr("target","_self")},_t.submit=function(e,t){setTimeout(function(){if(bds.comm.ishome&&bds.comm.kuangRec){var n=bds.comm.kuangRec; n&&n.query===e.p("wd")&&(e.p("rsv_dl",n.sa),delete bds.comm.kuangRec)}return bds.comm.ishome&&(isHitSampling("close_predict_3")||isHitSampling("PC_AI_SEARCH_BOX_EXP")&&(!bds.comm.supportis||bds.comm.ishome))?void(yt.href=e.buildSyncSearchUrl()):void(c?(window.history.pushState(e,"",e.buildSyncSearchUrl()),p(t)):s?(yt.href=e.buildSearchUrl(),l(t)):yt.href=e.buildSyncSearchUrl())},0)},window.changeUrl=function(e){var t=new h(a(e));_t.submit(t,!0)}}(),_t.onurlchange=function(e,t){if(zt=(new Date).getTime(),pt&&(e.p("base_query")||ht)){var n=e.p("base_query")||e.p("wd"); bds.comm.smartSearchBox||bds.comm.searchBoxNew||$.when(fn).done(function(e){e.setKey(n),e.hide()}),Bt.length>0&&Bt.text(e.p("wd")||e.p("base_query")),qt.val(n)}else m(dt,function(t){t.setKey(e.p("wd")),t.hide()}),Bt.length>0&&(Bt.text(e.p("wd")),Bt.trigger("blur")),qt.val(e.p("wd"));N("");var i=!0;t&&sn&&sn.env&&sn.env.equals(e)&&(i=!1),F({env:e,force:!0,use_cache:i,no_predict:!0})};var xt=ut.disable?ut.disable:!1;window.__disable_preload&&(xt=!0);var kt=xt,St=!1;window.__disable_predict&&(St=!0); var Ct=St,Tt=bds.comm.switchAddMask?bds.comm.switchAddMask:!1;Tt||(Tt=window.__switch_add_mask?window.__switch_add_mask:!1),Tt=!0;var It=(bds.comm.preloadMouseMoveDistance?bds.comm.preloadMouseMoveDistance:5,300),Et=50,Nt=80,$t=0,Ot=0,At=function(){},Lt=a(yt.search);_t.support()||(!function(){function e(){yt.hash&&yt.hash.match(/[^a-zA-Z0-9](wd|word)=/)&&yt.replace("//www.baidu.com/s?"+yt.href.match(/#(.*)$/)[1])}yt.hash.match(/[^a-zA-Z0-9](wd|word)=/)?(yt.replace("//www.baidu.com/s?"+yt.href.match(/#(.*)$/)[1]),function(){throw new Error("redirect to sync") }()):(document.getElementById("wrapper").style.display="block","onhashchange"in window?window.onhashchange=e:setInterval(e,200))}(),kt=xt=!0);for(var jt=Cookie.get("BAIDUID","nobdid").split(":")[0],Rt=jt.substr(0,6)+jt.substr(jt.length-5,5)+parseInt(99999*Math.random());Rt.length<16;)Rt+="0";Rt=encodeURIComponent(Rt);var Dt,Pt,Mt,Ut,qt,Ft,Bt,Ht;Mt=Ut=qt=$(ut.kw),Bt=$(ut.new_kw),Ht=$(ut.new_wrapper);var zt,Wt,Gt,Vt,Jt,Qt,Kt=$("#wrapper_wrapper"),Yt=[];window.__async_strategy,Dt=$(ut.index_form),"_blank"==Dt.attr("target")&&(window.__disable_index_predict=!0,kt=xt=!0); var Xt=Dt.serializeArray();Pt=$(ut.result_form);var Zt=(new Date).getTime();window.pageState=0;var en,tn,nn,on,rn,an=null,sn=null,cn=document.location.href,dn=!1,un="focus";!function(){window.PDC_ASYNC={setParam:function(e,t){sn&&sn.pdc&&sn.pdc.setParam(e,t)},setLinkData:function(t,n){e[t]=n},sendLinkLog:function(){var t="//www.baidu.com/nocache/fesplg/s.gif?log_type=linksp",n="";n+="&link_t="+((new Date).getTime()-e.click_t)+"&query="+bds.comm.queryEnc+"&qid="+bds.comm.queryId+"&linkpreload="+e.linkpreload; var i=Math.random();if(.01>i){var o=new Image,r="LINK_IMG_"+new Date;window[r]=o,o.onload=function(){delete window[r]},o.src=t+n}}};var e=(window.PDC_ASYNC.log={},{});window.bds&&(bds.pdc=window.PDC_ASYNC)}();var ln=function(e){function t(){if(c=1,n(),1==c){var t=new Date,o=!1,r=function(){var n=new Date,u=n-t-e,l=i();0>u&&(u=0),l||o||(a[s]=u,s=(s+1)%20),o=l,1==c&&(t=n,d=setTimeout(r,e))};d=setTimeout(r,e)}}function n(){window.clearTimeout(d)}function i(){var e=["webkit","moz","ms","o"];if("hidden"in document)return document.hidden; for(var t=0;t1e3||t>150?(c=s?parseInt(s):0,c>=a-i&&a>c&&(u=1,Cookie.set("ispeed",2,document.domain,"/",d)),o>c&&(c=c+i>o?o:c+i,Cookie.set("ispeed_lsm",c,document.domain,"/",d))):(s&&parseInt(s)>a&&(r=5),s&&parseInt(s)>=r&&(parseInt(s)<=a+r&&parseInt(s)>a&&(u=2,Cookie.set("ispeed",1,document.domain,"/",d)),c=parseInt(s)-r,Cookie.set("ispeed_lsm",c,document.domain,"/",d))),u }catch(h){}return 0}function r(){return Cookie.get("ispeed")&&1==UPS.get("isSwitch")&&2==parseInt(Cookie.get("ispeed"))?!0:!1}var a=[],s=0,c=0,d=!1,e=e||250;return{start:t,stop:function(){window.clearTimeout(d),c=0},getData:function(){return a.slice(s).concat(a.slice(0,s))},isSlow:r,monitor:o}}();bds.comm.supportis&&1==UPS.get("isSwitch")&&ln.start();var pn;if("1"===dt){var hn=$.ajax({dataType:"script",cache:!0,url:1===bds.comm.logFlagSug?"http://pss.bdstatic.com/r/www/cache/static/sug/js/bdsug_async_sam_sug_ab025f7.js":"http://pss.bdstatic.com/r/www/cache/static/sug/js/bdsug_async_e9fd2d5.js"}); hn.done(function(){en=tn=nn=bds.se.sug({maxNum:10,withoutRich:bds.comm.supportis,withoutZhixin:!0,form:Pt[0],ipt:qt[0],cbname:"bdsugresultcb",submission:q})})}else if(!bds.comm.smartSearchBox&&!bds.comm.searchBoxNew)var fn=function(){var e=$.Deferred();return require(["@baidu/search-sug"],function(t){en=tn=nn=t({bds:bds,maxNum:10,withoutRich:bds.comm.supportis,withoutZhixin:!0,form:Pt[0],ipt:qt[0],newIpt:Bt[0],newWrapper:Ht[0],cbname:"bdsugresultcb",submission:q}),e.resolve(en)}),e.promise()}();b(),m(dt,x),bds.util.tempHideSug=function(){m(dt,function(){nn.hide() })};var mn,gn,vn,bn;!function(){var e,t=-1,n=0,i=-1,o=-1,a=-1,s=-1,c=0;mn=function(t){if(t){a=t.pageX,s=t.pageY,e=t.target;var r=$(t.target);"submit"==r.attr("type")&&(c=1);var d=r.offset();i=a-d.left,o=s-d.top,n=(new Date).getTime()}},gn=function(i){i&&i.target==e&&(t=(new Date).getTime()-n)},bn=function(e){bds&&bds.comm&&bds.comm.query&&(e=bds.comm.query);var n=c+"."+t+"."+i+"."+o+"."+a+"."+s;return n=r(n+e)+"."+n},vn=function(){t=-1,n=0,i=-1,o=-1,a=-1,s=-1,c=0},$(window).on("confirm",function(){setTimeout(vn,0) })}(),$(function(){$("#head").delegate(".index_tab_top>a,.index_tab_bottom>a,#u1>a,#u>a","mousedown",function(){return $(this).attr("name")?ns_c({fm:"behs",tab:$(this).attr("name"),query:"",un:encodeURIComponent(bds.comm.user||"")}):void 0})}),$(document).delegate("a","mousedown",function(){U(sn,dn,22)()}),I()&&$(document).on("click",".result-op a, .result a",function(){$(this).addClass("card-visited")}),T({prefix:"http://www.baidu.com",regex:/^\/*(link)\?(.*)$/}),T({prefix:"//www.baidu.com",regex:/^\/*(link)\?(.*)$/}),T({prefix:"http://www.baidu.com",convertTable:{"aladdin.php":"aladdin.php","siva.php":"siva.php","adrc.php":"adrc.php","zhixin.php":"zhixin.php"},regex:/^\/*(aladdin\.php|siva\.php|adrc\.php|zhixin\.php)\?(.*)$/}),"www.baidu.com"!=yt.host&&T({prefix:"",convertTable:{"aladdin.php":"aladdin.php","siva.php":"siva.php","adrc.php":"adrc.php","zhixin.php":"zhixin.php"},regex:/^\/*(aladdin\.php|siva\.php|adrc\.php|zhixin\.php)\?(.*)$/}),T({prefix:"http://bzclk.baidu.com",regex:/^\/*(adrc\.php)\?(.*)$/}),T({prefix:"https://sp0.baidu.com/9q9JcDHa2gU2pMbgoY3K",regex:/^\/*(adrc\.php)\?(.*)$/}),"https:"==yt.protocol&&bds.comm.ishome&&!/Chrome/.test(navigator.userAgent)&&$(document).delegate("a","mousedown",function(){var e=$(this),t=e.attr("href"),n={"http://v.baidu.com":"/?fr=bd"}; n&&n.hasOwnProperty(t)&&e.attr("href",t+n[t])}),$(document).delegate("a","mousedown",function(){var e=$(this),t=e.attr("href"),n=new Image,i="//www.baidu.com/nocache/fesplg/s.gif?log_type=hm",o=Math.random();if(.01>o&&!/www\.baidu\.com\//.test(t)&&/^http/.test(t)){var r=i+"&c_url="+encodeURIComponent(t),n=new Image,a="_LOG_"+(new Date).getTime();n.onload=function(){delete window[a]},window[a]=n,n.src=r}}),_t.support()&&$(document).delegate("a","click",function(){var e=yt.protocol+"//"+yt.host;return function(){var t=$(this); if(!(t.attr("target")&&"_self"!=t.attr("target")||t.attr("sync")&&"true"==t.attr("sync"))){var n=$.trim(t.attr("href"));if(n&&0==n.indexOf(e)&&(n=n.substring(e.length)),n&&(matched=n.match(/^\/*s\?(.*)/)),n&&matched){var i=a(matched[0]);if(i.pn||(i.pn=""),u(["baidurt","baiduwb","baidufir","SE_baiduxueshu_c1gjeupa"],i.tn)<0){var o=t.parents("#con-at");o.size()>0&&s({top:o.offset().top+o.height()});var r=_t.clickResultLink(t,an,i)}return r}}}}()),$(document).delegate("a","mousedown",function(e){mn(e) }),$(document).delegate("a","mouseup",function(e){gn(e)}),$(document).delegate("#su,#su1","mouseup",function(e){gn(e)}),$(document).delegate("#su,#su1","mousedown",function(e){mn(e)}),!function(){var e;window._bdlkc>=1&&($(document).delegate(".c-container","mouseenter",function(){return function(){var t=$(this),n=300;2==window._bdlkc&&(n=100),e=setTimeout(function(){var e=t.find(".t>a"),n=E(e,{prefix:"http://www.baidu.com",regex:/^\/*(link)\?(.*)$/}),i=t.attr("mu")||t.find(".f13 .g").text(),o=/^(http[s]?:\/\/)?([^\/]+)(.*)/,r=i.match(o); n&&n.match(yt.protocol)&&/www\.baidu\.com\/link/.test(n)&&!/bdlkc=1/.test(n)&&(r[2]&&(i="http://"+r[2],t.append('')),$.ajax({url:n+"&bdlkc=1",type:"GET",contentType:"text/html",success:function(){e.attr("linkpreload","1")}}),e.attr("href",n+"&bdlkc=1"))},300)}}()),$(document).delegate(".c-container","mouseleave",function(){return function(){clearTimeout(e)}}()))}();var yn=$("body");document.title,!function(e){var t;e.fn.textWidth=function(){t||(t=e('
').appendTo("body").find("span")),t.html(escapeHTML(e(this).val())); var n=t.width();return n}}(jQuery);var wn=!1;$(window).on("swap_dom_ready",function(e,t){var n="";!t||!t.real_wd||t.no_predict&&6!=t.pstg||(n=t.real_wd),N(n),L(t)}),$(window).on("swap_end",function(e,t){t&&(window.cfpromise=new $.Deferred,Jt&&(clearTimeout(Jt),Jt=!1,Qt=null),t.confirm=!1,t.force?U(t,dn,20)():(Qt=U(t,dn,21),Jt=setTimeout(Qt,gt)))}),$(window).on("indexOff",function(e,t){m(dt,function(){N(t.p("wd"))})}),_t.support()&&"_blank"!=Dt.attr("target")&&m(dt,function(e){e.setMaxNum(vt)});var _n,xn=!1,kn=!1; Pt.mousedown(function(){kn=!1}).delegate("a,input","focus",function(){kn=!1}),Ht.on("mousedown",function(){kn=!1}),Bt.on("focuse",function(){kn=!1}),$("#main-wrapper").on("mousedown",function(){kn=!1}).delegate("textarea","focus",function(){kn=!1}),$(".ai-input").on("mousedown",function(){kn=!1}).delegate("textarea","focus",function(){kn=!1}),window.form_submit=q;var Sn,Cn,Tn,In={"&":"&","<":"<",">":">",'"':""","'":"'"};$(window).on("swap_end",function(e,t){m(dt,function(e){var t=bds&&bds.comm&&bds.comm.sampleval; e.setCurrentSugSample(t)}),t||(bds.comm.confirmQuery=bds.comm.query,bds.comm.confirmQid=bds.comm.qid,S()),Tn=setTimeout(function(){0==$("#content_left,.result,.content_none").length&&n(15,86400)},1e4)}),_t.init(),$(function(){var e=$("script").last(),t=$("head");At=function(){e.nextAll().not("[data-for]").not("#passport-login-pop").remove(),t.find("*").not("[data-for]").not("meta").not("title").not("script[async]").not('link[href*="passport"]').not('link[rel*="icon"]').not('link[rel*="shortcut icon"]').remove() }}),bds.comm.resultPage&&J(),Kt.delegate("#page strong+a,#page a.n","mouseover",function(){F({env:new h(a($(this).attr("href"))),force:!1,use_cache:!0,no_predict:!0,shouldShow:!1,pstg:4})});var En,Nn,$n,On,An;m(dt,function(){$(document).mousemove(Y)}),$("#u .back_org").click(function(){var e=new Date;e.setTime((new Date).getTime()+110376e7),Cookie.set("ORIGIN",2,document.domain,"/",e),an?yt.replace(an.buildSyncSearchUrl({_r:Math.random()})):yt.href="/"}),"1"===bds.comm.isUserLogin&&Lt.kgq_encodeid&&(define("modules/mkt/qa",["require","exports"],function(e,t){"use strict"; function n(t){try{bds.amd.addPaths({"mkt/qa-sdk":"https://psstatic.cdn.bcebos.com/operation/index_1751265849000"});var n=document.createElement("div");n.id="qa-sdk-container",window.__MKT_QA_PC_SDK_CONTAINER=n,document.body.appendChild(n),e(["mkt/qa-sdk"],function(e){new e(n,t)})}catch(i){console.error(i)}}t.__esModule=!0,t.init=void 0,t.init=n}),require(["modules/mkt/qa"],function(e){e.init({isLogin:"1"===bds.comm.isUserLogin,login:bds.se.login,urlParams:Lt})})),qt.bind("paste",function(){if(!(window.__disable_index_predict&&0==pageState||xt||St)){var e=this,t=this.value; rn=!0,setTimeout(function(){e.value&&e.value!=t&&F({env:(new h).clone({wd:$.trim(e.value)}),force:!1,use_cache:!0,no_predict:!0,shouldShow:bds.comm.supportis,pstg:2})},0)}})}function addEV(e,t,n){window.attachEvent?e.attachEvent("on"+t,n):window.addEventListener&&e.addEventListener(t,n,!1)}function user_c(e){var t="",n="",i="",o="",r=encodeURIComponent(window.document.location.href),a=window["BD_PS_C"+(new Date).getTime()]=new Image,s=bds&&bds.util&&bds.util.domain?bds.util.domain.get("http://nsclick.baidu.com"):"http://nsclick.baidu.com"; for(v in e){switch(v){case"title":i=encodeURIComponent(e[v].replace(/<[^<>]+>/g,""));break;case"url":i=encodeURIComponent(e[v]);break;default:i=e[v]}t+=v+"="+i+"&"}return o="&mu="+r,a.src=s+"/v.gif?pid=201&pj=psuser&"+t+"path="+r+"&wd="+n+"&t="+(new Date).getTime(),!0}function initPassV3(){var e=bds.comm.passnew?3:2,t=bds.comm.sampleval&&-1!==bds.comm.sampleval.indexOf("login_prize_log"),n=t?{sid:"login_prize_log"}:{};bds.se.passv3=passport.pop.init({loginVersion:"v5",composeTemplate:1,apiOpt:{logParams:n,loginType:1,product:"mn",u:window.document.location.href,safeFlag:0,qrcode:e,staticPage:location.protocol+"//www.baidu.com/cache/user/html/v3Jump.html",sms:5},cache:!1,tangram:!0,authsite:["qzone","tsina","weixin"],authsiteCfg:{act:"implicit",display:"popup",jumpUrl:location.protocol+"//www.baidu.com/cache/user/html/xd.html",onBindSuccess:function(e,t){var n=decodeURIComponent(t.passport_uname||t.displayname); return bds.se.login.success(n),!1}},onLoginSuccess:function(e){e.returnValue=!1;var t=e.rsp.data.userName||e.rsp.data.mail||e.rsp.data.phoneNumber;bds.se.login.success(t)},onHide:function(){bds.se.login.setSubpro(""),bds.se.login.setMakeText("")}}),bds.se.passv3.setCallback&&bds.se.passv3.setCallback({onLoginSuccess:function(e){e.returnValue=!1;var t=e.rsp.data.userName||e.rsp.data.mail||e.rsp.data.phoneNumber;bds.se.login.success(t)},onHide:function(){bds.se.login.setSubpro(""),bds.se.login.setMakeText("") }})}function isp_hijack(e){var t,n,i,o=document.getElementById("wrapper"),r=!1;bds.comm.query||(r=!0),1==e.stat&&(t=document.createElement("div"),t.innerHTML='
百度提示您:
我们发现当前您可能受到异常广告弹窗的影响,通常这是受第三方恶意劫持导致。使用 防恶意广告专版杀毒软件,可有效改善您的上网体验,免受恶意广告的困扰。
',r?o.insertBefore(t,o.children[0]):(o.style.position="relative",document.getElementById("u").style.top=0,t.style.margin="-6px 0 8px 0",document.body.insertBefore(t,o)),n=document.getElementById("isp-close-btn"),i=n.parentNode.getElementsByTagName("a")[0],n.onclick=function(){r?o.removeChild(t):(document.body.removeChild(t),o.style.position="",document.getElementById("u").style.top="4px") },n.onmousedown=function(){ns_c({fm:"behs",tab:"tj_notice",cont:"jcbro",action:"close",area:"topbar"})},i.onmousedown=function(){ns_c({fm:"behs",tab:"tj_notice",cont:"jcbro",action:"click",area:"topbar"})},ns_c({fm:"behs",tab:"tj_notice",cont:"jcbro",action:"show",area:"topbar"}))}function getfeedbackData(e){return e.getAttribute("data-tools")||e.getAttribute("data-feedback")||"{}"}function isbase64(e){function t(){d={left:$.Deferred(),right:$.Deferred()}}function n(e,t){l++;var e=e||[],t=t||[];if(e=$.grep(e,function(e){return u.right.hasOwnProperty(e)?!1:(u.right[e]=!1,!0) }),t=$.grep(t,function(e){return u.left.hasOwnProperty(e)?!1:(u.left[e]=!1,!0)}),e.length>0&&e.length>12){var n=Math.round(e.length/2),i=[],o=[];$.each(e,function(e,t){n>e?i.push(t):o.push(t)})}}function i(){var e=h.concat(d.left,d.right),t=p=$.when.apply($,e);p.always(function(){+new Date,t===p&&(2==r.b64Exp&&m("left"),m("right"))})}function o(e,t){try{e.onerror=function(){w(this)},c.push({obj:e,loaded:!1}),e.onload=function(){for(var e=0;e9?e:"0"+e};return("number"==typeof e||"string"==typeof e)&&(e=new Date(e)),[e.getFullYear(),n(e.getMonth()+1),n(e.getDate())].join(t||"")}function baseChangeUrl(e){bds.comm.search_tool.st&&bds.comm.search_tool.et&&bds.comm.search_tool.stftype&&e.indexOf("&gpc=")<0&&(e+="&gpc="+encodeURIComponent("stf="+bds.comm.search_tool.st+","+bds.comm.search_tool.et+"|stftype="+bds.comm.search_tool.stftype)),bds.comm.search_tool.si&&e.indexOf("&si=")<0&&(e+="&si="+encodeURIComponent(bds.comm.search_tool.si)+"&ct=2097152"),bds.comm.search_tool.sl_lang&&e.indexOf("&sl_lang=")<0&&(e+="&rsv_srlang="+encodeURIComponent(bds.comm.search_tool.sl_lang),e+="&sl_lang="+encodeURIComponent(bds.comm.search_tool.sl_lang),e+="&rsv_rq="+encodeURIComponent(bds.comm.search_tool.sl_lang)),changeUrl(e) }function langChangeUrl(e,t,n){ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI(n),rsv_advTool_lang:t}),baseChangeUrl("wd="+encodeURIComponent($("#kw").val())+"&"+e+"="+encodeURIComponent(t)+"&rsv_srlang="+encodeURIComponent(t)+"&rsv_rq="+encodeURIComponent(t))}function advChangeUrl(e,t,n,i){if(-1!=t.indexOf("="))var o=1;else var o=0;ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI(n),rsv_advTool_time:i,rsv_advTool_stet:t.substr(4).replace(",","_")}),baseChangeUrl("wd="+encodeURIComponent($("#kw").val())+"&"+e+"="+encodeURIComponent(t)+"&tfflag="+o) }function fileChangeUrl(e,t,n){ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI(t),rsv_advTool_ft:n}),baseChangeUrl("wd="+encodeURIComponent(queryReplace("filetype",e)))}function queryReplace(e,t){if(!e||"filetype"!=e&&"site"!=e)return i;var n=new RegExp("("+e+"):[^\\s]*[ ]?"),i=$("#kw").val();return" "==t||null==t?i.replace(n,""):i.match(n)?i.replace(n,"$1:"+t+" "):e+":"+t+" "+i}function extChangeUrl(e){e?(ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("精确匹配"),rsv_advTool_ext:1}),baseChangeUrl('wd="'+encodeURIComponent($("#kw").val())+'"')):(ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("智能匹配"),rsv_advTool_ext:0}),baseChangeUrl("wd="+encodeURIComponent($("#kw").val().replace(/^\"(.*)\"$/,"$1")))) }!function(){function getUA(){var e,t={},n=navigator.userAgent.toLowerCase();return t.mac=navigator.platform.toUpperCase().indexOf("MAC")>=0,(e=n.match(/rv:([\d.]+)\) like gecko/))?t.ie=e[1]:(e=n.match(/(msie\s|trident.*rv:)([\w.]+)/))?t.ie=e[2]:(e=n.match(/firefox\/([\d.]+)/))?t.firefox=e[1]:(e=n.match(/chrome\/([\d.]+)/))?t.chrome=e[1]:(e=n.match(/opera.([\d.]+)/))?t.opera=e[1]:(e=n.match(/version\/([\d.]+).*safari/))?t.safari=e[1]:0,t}function getDefaultQueryHis(){try{return JSON.parse(localStorage.getItem("index_ls_default_query")) }catch(e){return{}}}function detectPlaceholder(e){var t="[object OperaMini]"===Object.prototype.toString.call(window.operamini);return e.ie?!1:"placeholder"in document.createElement("input")&&!t}function createPlaceHolder(e,t,n){if(t)e.attr("placeholder",n);else{var i="
"+n+"
";e.before(i),$(".kw-placeholder").on("click",function(t){e.focus(),t.target=e.get(0),e.trigger(t)}),$(document).ready(function(){$(".kw-placeholder").toggleClass("placeholders-hidden",e.val().length>0) }),e.on("keydown keyup cut paste setValue input",checkInputValue)}}function checkInputValue(){var e=$input.val();setTimeout(function(){var t=$input.val();(t!==e||t.length>0)&&$(".kw-placeholder").toggleClass("placeholders-hidden",t.length>0)},0)}function removePlaceHolder(e,t){t?e.removeAttr("placeholder"):$(".kw-placeholder").remove()}function testLocalStorage(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}}function getShowCount(e,t){var n=0;return t&&t.query&&t.query===e&&t.count&&(n=t.count),n }function recordDefaultQuery(e,t){var n={query:e,time:(new Date).getTime(),count:1};t&&t.query&&e===t.query&&t.count&&(n.count=t.count+1),setTimeout(function(){try{localStorage.removeItem("index_ls_default_query"),localStorage.setItem("index_ls_default_query",JSON.stringify(n))}catch(e){return!1}},0)}function jsonPolyfill(){var json={parse:function(sJSON){return eval("("+sJSON+")")},stringify:function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=Array.isArray||function(t){return"[object Array]"===e.call(t) },i={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},o=function(e){return i[e]||"\\u"+(e.charCodeAt(0)+65536).toString(16).substr(1)},r=/[\\"\u0000-\u001F\u2028\u2029]/g;return function a(i){if(null==i)return"null";if("number"==typeof i)return isFinite(i)?i.toString():"null";if("boolean"==typeof i)return i.toString();if("object"==typeof i){if("function"==typeof i.toJSON)return a(i.toJSON());if(n(i)){for(var s="[",c=0;c9&&(defaultQuery=""),defaultQuery){var UA=getUA(),isPlaceHolderSupported=detectPlaceholder(UA); createPlaceHolder($input,isPlaceHolderSupported,defaultQuery,UA),isSupportLocalStorage&&recordDefaultQuery(defaultQuery,defaultQueryHis),$(window).one("index_off",function(){removePlaceHolder($input,isPlaceHolderSupported),bds.comm.dpquery=""})}}();var bds=window.bds||{},domain="";domain=bds.comm.staticUrl?bds.comm.staticUrl:"http://pss.bdstatic.com/r/www/cache/static",bds.amd={keys:{},addPaths:function(e){"object"==typeof e&&(require.config({paths:e}),$.extend(bds.amd.keys,e))},deletePath:function(e){var t="string"==typeof e?[e]:e; for(var n in t)t.hasOwnProperty(n)&&delete bds.amd.keys[n]},addConfig:function(e){if("object"==typeof e){require.config(e);for(var t in e)if(e.hasOwnProperty(t)){bds.amd[t]||(bds.amd[t]={});for(var n in e[t])e[t].hasOwnProperty(n)&&e[t][n]&&(bds.amd[t][n]=e[t][n])}}},getPath:function(e){return e&&"string"==typeof e?bds.amd.keys[e]||bds.amd.paths[e]||"":void 0},getBundle:function(e){if(e&&"string"==typeof e){var t=bds.amd.bundles,n="",i="";if(t&&"object"==typeof t)for(var o in t)if(t.hasOwnProperty(o)&&t[o].indexOf(e)>-1){n=o,i=bds.amd.getPath(o); break}return{name:n,path:i}}},exist:function(e){return e&&"undefined"!=typeof bds.amd.keys[e]?!0:!1}},function(){var e="https://pss.bdstatic.com/",t=bds.util&&bds.util.domain?bds.util.domain.get("http://ecmb.bdimg.com"):"http://ecmb.bdimg.com";require.config({baseUrl:e+"/r/www/cache/biz",packages:[{name:"ecma",location:t+"/public01"},{name:"ecmb",location:t+"/public01"}],paths:{aladdin:e+"/r/www/aladdin",ui:e+"/r/www/cache/amd/ui","ui/config":e+"/r/www/cache/amd/ui/Control","ui/lib":e+"/r/www/cache/amd/ui/Control","ui/Control":e+"/r/www/cache/amd/ui/Control"},urlArgs:{"ui/ImgZoomHover":"20141104","ui/ImgZoomHover1":"20141104","ui/ImgZoomHover2":"20141104","ui/ImgZoomHover3":"20141104"}}) }(),bds.amd.addConfig({bundles:{"@baidu/ala-util":["@baidu/ala-util","@baidu/ala-util/env","@baidu/ala-util/es6-promise","@baidu/ala-util/fetch-jsonp","@baidu/ala-util/fetch","@baidu/ala-util/index","@baidu/ala-util/lodash","@baidu/ala-util/ala","@baidu/ala-util/update","@baidu/ala-util/san-component"]}}),bds.amd.addPaths({Atom:domain+"/bundles/atom_4f5a64f","voice/js/voice":domain+"/voice/js/voice_675fe03","voice/js/newVoice":domain+"/voice/js/newVoice_/static/voice/js/newVoice.js","plugins/swfobject":domain+"/plugins/swfobject_0178953","soutu/js/tu":domain+"/soutu/js/tu_15b7782","lib/get_ua":domain+"/lib/get_ua_5600c75","lib/get_zoom":domain+"/lib/get_zoom_40318e9","plugins/bzPopper":domain+"/plugins/bzPopper_d8249c4","plugins/zoom_prompt":domain+"/plugins/zoom_prompt_d72a9cd","plugins/pcToWise":domain+"/plugins/pcToWise_946ec60","plugins/qrcodegen":domain+"/plugins/qrcodegen_3297c28","plugins/feedback_suggest":domain+"/plugins/feedback_suggest_f73e42e","plugins/compatible_ipad_input":domain+"/plugins/compatible_ipad_input_6f6bbc9","webb/instance":domain+"/webb/instance_5d88cac","atom-logger":domain+"/webb/atom-logger_098581c","tipbox/js/tipbox":domain+"/tipbox/js/tipbox_27b9c5e","dep/echarts/echarts.min":domain+"/dep/echarts/echarts.min_e3a96a1","nu-instant-search":domain+"/home/js/nu_instant_search_58e7228","plugins/cardLog":domain+"/plugins/card_log_04f872e"}),bds.amd.addPaths({"@baidu/aging-tools-pc":domain+"/amd_modules/@baidu/aging-tools-pc_63487d8","@baidu/ai-search-box-entry":domain+"/amd_modules/@baidu/ai-search-box-entry_0f830bb","@baidu/ala-util":domain+"/amd_modules/@baidu/ala-util_aed6724","@baidu/antifraud-defense":domain+"/amd_modules/@baidu/antifraud-defense_b36b38d","@baidu/atom-web-runtime":domain+"/amd_modules/@baidu/atom-web-runtime_f8cc03e","@baidu/better-scroll":domain+"/amd_modules/@baidu/better-scroll_3ca1fd1","@baidu/Boxjs-amd":domain+"/amd_modules/@baidu/Boxjs-amd_0edb14c","@baidu/Boxjs-search":domain+"/amd_modules/@baidu/Boxjs-search_9aa906f","@baidu/boxx":domain+"/amd_modules/@baidu/boxx_e2ff8e6","@baidu/chat-stream":domain+"/amd_modules/@baidu/chat-stream_d4d38a2","@baidu/clickstream-sdk":domain+"/amd_modules/@baidu/clickstream-sdk_93c422e","@baidu/clickstream":domain+"/amd_modules/@baidu/clickstream_2ee5f60","@baidu/codeCover":domain+"/amd_modules/@baidu/codeCover_0cc56ac","@baidu/guarantee-popper":domain+"/amd_modules/@baidu/guarantee-popper_b82f233","@baidu/haokan-art-player":domain+"/amd_modules/@baidu/haokan-art-player_dfaf9be","@baidu/jssdk":domain+"/amd_modules/@baidu/jssdk_ae6f7f9","@baidu/lego-utils":domain+"/amd_modules/@baidu/lego-utils_154b297","@baidu/markdown":domain+"/amd_modules/@baidu/markdown_e6be90c","@baidu/marklang":domain+"/amd_modules/@baidu/marklang_3cec5fc","@baidu/mcp-sdk":domain+"/amd_modules/@baidu/mcp-sdk_1767764","@baidu/pc-grid":domain+"/amd_modules/@baidu/pc-grid_cfa8648","@baidu/pc-tts-player":domain+"/amd_modules/@baidu/pc-tts-player_4205f55","@baidu/pmd":domain+"/amd_modules/@baidu/pmd_9fac2fd","@baidu/prefetch-app-data":domain+"/amd_modules/@baidu/prefetch-app-data_3352c9f","@baidu/pst-log":domain+"/amd_modules/@baidu/pst-log_8c0dfbd","@baidu/qeditor":domain+"/amd_modules/@baidu/qeditor_00616ee","@baidu/search-api":domain+"/amd_modules/@baidu/search-api_434fe09","@baidu/search-sug":domain+"/amd_modules/@baidu/search-sug_ba8b54c","@baidu/ubc-report-sdk":domain+"/amd_modules/@baidu/ubc-report-sdk_3f99502","@baidu/utils":domain+"/amd_modules/@baidu/utils_6480efe","@baidu/web-animations-js":domain+"/amd_modules/@baidu/web-animations-js_6166288","@baidu/webb":domain+"/amd_modules/@baidu/webb_e562791","@baidu/webSecurity":domain+"/amd_modules/@baidu/webSecurity_3bdece9","@baidu/wuji-utils":domain+"/amd_modules/@baidu/wuji-utils_ba76685","@baidu/xbox-comment-pc":domain+"/amd_modules/@baidu/xbox-comment-pc_2a0443e","@baidu/xbox-dynamic-publisher":domain+"/amd_modules/@baidu/xbox-dynamic-publisher_3136823","@baiducloud/sdk":domain+"/amd_modules/@baiducloud/sdk_63e90de","@searchfe/assert":domain+"/amd_modules/@searchfe/assert_8f1a1ad","@searchfe/inject-js":domain+"/amd_modules/@searchfe/inject-js_6c69b93","@searchfe/polyfills":domain+"/amd_modules/@searchfe/polyfills_a805e63","@searchfe/promise":domain+"/amd_modules/@searchfe/promise_33d6467","@searchfe/reflect-metadata":domain+"/amd_modules/@searchfe/reflect-metadata_008bee6","@searchfe/underscore":domain+"/amd_modules/@searchfe/underscore_2e8707e","@searchfe/user-agent":domain+"/amd_modules/@searchfe/user-agent_1bcd8a2","blueimp-md5":domain+"/amd_modules/blueimp-md5_b128512","image-compress-browser":domain+"/amd_modules/image-compress-browser_d822a99","json-mirror-compiler":domain+"/amd_modules/json-mirror-compiler_3ef1b23","lottie-web":domain+"/amd_modules/lottie-web_56e3144","marked-katex-extension":domain+"/amd_modules/marked-katex-extension_ec8e85e",marked:domain+"/amd_modules/marked_b115d00","promise-polyfill":domain+"/amd_modules/promise-polyfill_eb6da34",san:domain+"/amd_modules/san_8639737","spy-client":domain+"/amd_modules/spy-client_2c0b7b8",tslib:domain+"/amd_modules/tslib_58c3c7f","versions-compare":domain+"/amd_modules/versions-compare_a4b1c27","whatwg-fetch":domain+"/amd_modules/whatwg-fetch_435bd8d"}),bds.amd.addPaths({san:domain+"/amd_modules/san/dist/san_42e36b5","@baidu/ala-util":domain+"/bundles/ala-util_92a51a6","@baidu/webb":domain+"/amd_modules/@baidu/webb/webb2.min_d6de647","@baidu/module-version":domain+"/amd_modules/@baidu/module-version/index_/static/amd_modules/@baidu/module-version/index.js"}),bds.amd.addPaths({"@baidu/ala-util/env":domain+"/amd_modules/@baidu/ala-util/env_0528e0d","@baidu/ala-util/es6-promise":domain+"/amd_modules/@baidu/ala-util/es6-promise_5db0418","@baidu/ala-util/fetch":domain+"/amd_modules/@baidu/ala-util/fetch_b79917d","@baidu/ala-util/fetch-jsonp":domain+"/amd_modules/@baidu/ala-util/fetch-jsonp_2e624b8","@baidu/ala-util/index":domain+"/amd_modules/@baidu/ala-util/index_db18aa7","@baidu/ala-util/lodash":domain+"/amd_modules/@baidu/ala-util/lodash_e153b58","@baidu/ala-util/ala":domain+"/amd_modules/@baidu/ala-util/ala_f02ef51","@baidu/ala-util/update":domain+"/amd_modules/@baidu/ala-util/update_ef12fed","@baidu/ala-util/na/utils":domain+"/amd_modules/@baidu/ala-util/na/utils_d9b4619","@baidu/ala-util/na/naConfig":domain+"/amd_modules/@baidu/ala-util/na/naConfig_ba69773","@baidu/ala-util/md5":domain+"/amd_modules/@baidu/ala-util/md5_b17d496","@baidu/atom-web-runtime/dist/atom.min":domain+"/amd_modules/@baidu/atom-web-runtime/dist/atom.min_960c107","@baidu/better-scroll/better-scroll":domain+"/amd_modules/@baidu/better-scroll/better-scroll_f35e74a","@baidu/pmd/dist/pmd":domain+"/amd_modules/@baidu/pmd/dist/pmd_abc3d9e","@baidu/search-sug/sug/index":domain+"/amd_modules/@baidu/search-sug/sug/index_fb34162","@baidu/web-animations-js/web-animations.min":domain+"/amd_modules/@baidu/web-animations-js/web-animations.min_5987b41","@baidu/webb/webb2.min":domain+"/amd_modules/@baidu/webb/webb2.min_d6de647","@searchfe/assert/index":domain+"/amd_modules/@searchfe/assert/index_93ef523","@searchfe/promise/src/promise":domain+"/amd_modules/@searchfe/promise/src/promise_c5de809","@searchfe/promise/src/set-immediate":domain+"/amd_modules/@searchfe/promise/src/set-immediate_099c916","@searchfe/user-agent/src/index":domain+"/amd_modules/@searchfe/user-agent/src/index_/static/amd_modules/@searchfe/user-agent/src/index.js","promise-polyfill":domain+"/amd_modules/promise-polyfill/dist/promise_df3edea","versions-compare/src/index":domain+"/amd_modules/versions-compare/src/index_bf82f5e","versions-compare/src/util":domain+"/amd_modules/versions-compare/src/util_294470f","@baidu/ubc-report-sdk/dist/ubc-web-sdk.umd.min":domain+"/amd_modules/@baidu/ubc-report-sdk/dist/ubc-web-sdk.umd.min_3d5d153","blueimp-md5":domain+"/amd_modules/blueimp-md5_b128512","@baidu/ai-search-box-entry":domain+"/amd_modules/@baidu/ai-search-box-entry/dist/js/index_fb6bebb","@baidu/search-api":domain+"/amd_modules/@baidu/search-api/dist/index.pc_6472af6","image-compress-browser":domain+"/amd_modules/image-compress-browser/dist/compressImage_0783587",marked:domain+"/amd_modules/marked/lib/marked.umd_0d85239","marked-katex-extension":domain+"/amd_modules/marked-katex-extension/lib/index.umd_0287df0","lottie-web":domain+"/amd_modules/lottie-web/build/player/lottie_ad9c879","@baidu/chat-stream":domain+"/amd_modules/@baidu/chat-stream_d4d38a2","@baidu/markdown":domain+"/amd_modules/@baidu/markdown_e6be90c","@baidu/marklang":domain+"/amd_modules/@baidu/marklang_3cec5fc","@baiducloud/sdk/dist/baidubce-sdk.bundle.min":domain+"/amd_modules/@baiducloud/sdk/dist/baidubce-sdk.bundle.min_6a49476","@baidu/qeditor":domain+"/amd_modules/@baidu/qeditor/dist/index.umd_e05e353","@baidu/guarantee-popper":domain+"/amd_modules/@baidu/guarantee-popper_b82f233"}),bds&&bds.comm&&(bds.comm.did=function(){for(var e="",t=0;32>t;t++)e+=Math.floor(16*Math.random()).toString(16); return e}(),bds.comm.isAsync=function(){var e="onhashchange"in window,t="onpopstate"in window;return(t||e)&&1!=Cookie.get("ISSW")&&!window.__disable_preload}()),jQuery&&jQuery.extend({stringify:function(e){function t(e){return/["\\\x00-\x1f]/.test(e)&&(e=e.replace(/["\\\x00-\x1f]/g,function(e){var t=o[e];return t?t:(t=e.charCodeAt(),"\\u00"+Math.floor(t/16).toString(16)+(t%16).toString(16))})),'"'+e+'"'}function n(e){var t,n,i,o=["["],r=e.length;for(n=0;r>n;n++)switch(i=e[n],typeof i){case"undefined":case"function":case"unknown":break; default:t&&o.push(","),o.push($.stringify(i)),t=1}return o.push("]"),o.join("")}if("JSON"in window)return JSON.stringify(e);var i=typeof e;if("object"!=i||null===e)return"string"==i&&(e='"'+e+'"'),String(e);var o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};switch(typeof e){case"undefined":return"undefined";case"number":return isFinite(e)?String(e):"null";case"string":return t(e);case"boolean":return String(e);default:if(null===e)return"null";if("[object Array]"===Object.prototype.toString.call(e))return n(e); var r,a,s=["{"],c=$.stringify;for(var d in e)if(Object.prototype.hasOwnProperty.call(e,d))switch(a=e[d],typeof a){case"undefined":case"unknown":case"function":break;default:r&&s.push(","),r=1,s.push(c(d)+":"+c(a))}return s.push("}"),s.join("")}},format:function(e,t){e=String(e);var n=Array.prototype.slice.call(arguments,1),i=Object.prototype.toString;return n.length?(n=1==n.length&&null!==t&&/\[object Array\]|\[object Object\]/.test(i.call(t))?t:n,e.replace(/#\{(.+?)\}/g,function(e,t){var o=n[t]; return"[object Function]"==i.call(o)&&(o=o(t)),"undefined"==typeof o?"":o})):e},subByte:function(e,t,n){var i=[],o=e.split("");n=n||"…";for(var r=0,a=o.length;a>r;r++)o[r].charCodeAt(0)>255&&i.push("*"),i.push(o[r]);return t&&t>0&&i.length>t?o=i.join("").substring(0,t-1).replace(/\*/g,"")+n:e},getByteLength:function(e){for(var t=[],n=e.split(""),i=0,o=n.length;o>i;i++)n[i].charCodeAt(0)>255&&t.push("*"),t.push(n[i]);return t.length},_isValidKey:function(e){return new RegExp('^[^\\x00-\\x20\\x7f\\(\\)<>@,;:\\\\\\"\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+$').test(e) },setCookie:function(e,t,n){if(t=encodeURIComponent(t),jQuery._isValidKey(e)){n=n||{};var i=n.expires;"number"==typeof n.expires&&(i=new Date,i.setTime(i.getTime()+n.expires)),document.cookie=e+"="+t+(n.path?"; path="+n.path:"")+(i?"; expires="+i.toGMTString():"")+(n.domain?"; domain="+n.domain:"")+(n.secure?"; secure":"")}},getCookie:function(e){var t="";if(jQuery._isValidKey(e)){var n=new RegExp("(^| )"+e+"=([^;]*)(;|$)"),i=n.exec(document.cookie);if(i&&(t=i[2]||null,"string"==typeof t))return t=decodeURIComponent(t) }return null},removeCookie:function(e,t){t=t||{},t.expires=new Date(0),jQuery.setCookie(e,"",t)},limitWd:function(e,t){if(""===e)return"";e+="";var n=e.split(""),i=n.length,o=0,r=t||255;if(i<=parseInt(r/2))return e;for(var a=0;i>a;a++){if(o+=n[a].charCodeAt(0)>255?2:1,o===r)return n=e.substring(0,a+1);if(o>r)return n=e.substring(0,a)}return e}}),$(window).on("resize",function(){"pageState"in window&&0!=pageState&&(bds.util.setContainerWidth(),bds.event.trigger("se.window_resize"))}),bds.util.addStyle=function(e){var t=-1!==navigator.userAgent.indexOf("MSIE")&&!window.opera; if(t){var n=document.createStyleSheet();n.cssText=e}else{var i=document.createElement("style");i.type="text/css",i.appendChild(document.createTextNode(e)),document.getElementsByTagName("HEAD")[0].appendChild(i)}},bds.util.getContentRightHeight=function(){return $("#content_right").get(0)?$("#content_right").get(0).offsetHeight:0},bds.util.getContentLeftHeight=function(){return $("#content_left").get(0)?$("#content_left").get(0).offsetHeight:0},window.A||(window.bds=window.bds||{},bds.util=bds.util||{},bds.util.getWinWidth=function(){return window.document.documentElement.clientWidth },bds.util.setContainerWidth=function(){var e=G("container"),t=G("wrapper"),n=function(e,t){t.className=t.className.replace(e,"")},i=function(e,t){t.className=(t.className+" "+e).replace(/^\s+/g,"")},o=function(e,t){return e.test(t.className)},r=1217;bds.util.getWinWidth()1)if(a)e(s.shift(),function(){s.length>0&&e(s,a) });else for(;s.length;)e(s.shift());else{if(r=s[0],"jquery"===r&&window.jQuery)return!o.ui.jquery&&(o.ui.jquery=window.jQuery),void(a&&a());var c=r.replace(/\./g,"/"),d=r.replace(/^[\s\S]*\./,""),u=o.uiPrefix+c+"/"+d;0==c.search("style/")?t(u+".css",a):(u+=".js",p.hasOwnProperty(r)?"function"==typeof p[r]?u=p[r](r,u):"string"==typeof p[r]&&(u=p[r]):p.hasOwnProperty("*")&&(u=p["*"](r,u)),a?i(u,a):n(u))}}function t(e,t){if(t=t||l,e in r)return void t();var n=c.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=e,n.setAttribute("data-for","A.ui"),d.appendChild(n),r[e]=1,t() }function n(e){return u?void i(e,l):void(e in r||(c.write("'),r[e]=1))}function i(e,t){if(t=t||l,e in r)return void t();if(e in a)return void s[e].push(t);a[e]=1;var n=s[e]=[t],i=c.createElement("script");i.type="text/javascript",f&&(i.charset="gb2312"),i.onload=i.onreadystatechange=function(){if(!this.readyState||"loaded"===this.readyState||"complete"===this.readyState){for(;n.length;)n.shift()();delete a[e],r[e]=1,i.onload=i.onreadystatechange=null }},i.src=e,i.setAttribute("data-for","A.ui"),d.insertBefore(i,d.firstChild)}var o=window.A,r={},a={},s={},c=document,d=c.getElementsByTagName("head")[0],u=!1,l=(o.baidu,function(){}),p={"*":function(e,t){return t+"?v=20170208"},scrollbarv:function(e,t){return t+"?v=20170208"},likeshare4:function(e,t){return t+"?v=20170208"},mboxsingleton:function(e,t){return t+"?v=20170208"},sms:function(e,t){return t+"?v=20170208"},tab:function(e,t){return t+"?v=20170208"},tabs:function(e,t){return t+"?v=20170208" },musicplayer:function(e,t){return t+"?v=20170208"},slider:function(e,t){return t+"?v=20170208"},suggestion:function(e,t){return t+"?v=20170208"},tabs5:function(e,t){return t+"?v=20170208"},tabx:function(e,t){return t+"?v=20170208"},dropdown1:function(e,t){return t+"?v=20170208"},dropdown21:function(e,t){return t+"?v=20170208"},advert:function(e,t){return t+"?v=20170208"},advert2:function(e,t){return t+"?v=20170208"},honourCard:function(e,t){return t+"?v=20170208"},honourCard3:function(e,t){return t+"?v=20170208" },honourCard4:function(){return"http://pss.bdstatic.com/r/www/cache/static/aladdin-ui/honourCard4/honourCard4_ee085ad.js"},share:function(e,t){return t+"?v=20170208"},qHotCity:function(e,t){return t+"?v=20170208"},mapapi:function(e,t){return t+"?v=20170208"},qunarfilters:function(e,t){return t+"?v=20170208"},renderIframe3:function(e,t){return t+"?v=20170208"},share2:function(e,t){return t+"?v=20170208"},ALD_feedback:function(e,t){return t+"?v=20170208"},addtohome:function(e,t){return t+"?v=20170208" },addtohome2:function(e,t){return t+"?v=20170208"},gpsApi:function(e,t){return t+"?v=20170208"},simGps:function(e,t){return t+"?v=20170208"}};$(document).ready(function(){u=!0}),o.addDisposeHandler({obj:o,fn:function(){for(var e in s)if(s.hasOwnProperty(e))for(var t=s[e];t.length;)t.pop()}});var h=["honourCard4"],f=!0;e.cache=r,o.uicss=function(e,n){t(n?e:o.uiPrefix+e)},o.uijs=function(e,t){i(o.uiPrefix+e,t)},o.uijsPathMap=function(e){$.extend(p,e)},o.use=e,o.ui=o.ui||{},o.addCssText=function(e){var t="opui-style-tag-id",n="data-for",i="A.ui",o=document.getElementById(t); o||(o=document.createElement("style"),o.setAttribute("type","text/css"),o.setAttribute(n,i),o.id=t,document.getElementsByTagName("head")[0].appendChild(o));try{var r=document.createTextNode(e);o.appendChild(r)}catch(a){o.styleSheet&&(o.styleSheet.cssText+=e)}},$(window).on("swap_end",function(){var e=/MSIE\s?6/.test(window.navigator.userAgent),t=function(e,t,n){$(e).each(function(e,i){var o=$(i),r=new Image,a=o.attr("src");r.onload=function(){var e=t,i=n,a=this.width,s=this.height,c=a/s/(e/i);c>1?(a=a>e?e:"auto",s="auto"):(s=s>i?i:"auto",a="auto"),o.css({height:s,width:a}),r.onload=null,r=null },r.src=a})};e&&t("img.result-left-img",98,121),$(".c-feedback").bind("click",function(){var e=this;o.use("ALD_feedback",function(){bds.qa.fb_ALD.plugintitle="意见反馈";var t,n,i="right",r=$(e);r.parents("#content_left").length?(i="left",n=r.parents(".result-op"),t=n.attr("srcid")):r.parents("#content_right").length&&(n=r.parents("#con-ar"));var a={query:bds.comm.query,srcid:t,target:n,username:bds.comm.username,flag:i},s=o.ui.ALD_feedback(a);$(".fb_email_block").length&&$(".fb_email_block")[0].remove(),o.addDisposeHandler({obj:s,fn:s.dispose}) })})})}(),$(window).on("swap_begin",function(){A.dispose(),A.__reset(),A.__clearDispose()}),$(window).on("swap_dom_ready",function(){bds.ready(A.__runAla),bds.doReady()}),bds.event=new function(){function e(e,t){if("function"==typeof t||t instanceof Function){var n=o(e);r[n.name]=r[n.name]||[],r[n.name].push({prod:n.prod,callback:t})}}function t(e,t){for(var n=o(e),a=r[n.name]||[],s=0;sc;c++){var u=a[c]; try{i(u.prod,n.prod)&&u.callback.call(this,s)}catch(l){}}}function i(e,t){return new RegExp("^"+e.replace(/\./g,"\\.").replace(/\*/g,".+")+"$").test(t)}function o(e){var t=e.match(/(.+)\.(.+)/);return t&&t[2]?{prod:t[1],name:t[2]}:{}}var r={};this.on=e,this.off=t,this.trigger=n,this.events=r},bds.se.link=function(){function e(e,t){var n="/s?",i={tn:bds.comm.tn},o="wd="+encodeURIComponent(e);t&&(i=$.extend(i,t));for(var r in i)i.hasOwnProperty(r)&&(o+="&"+r+"="+encodeURIComponent(i[r]));return n+o }return{getSearchUrl:e}}(),!function(){function e(e){for(var t in e)for(var n=e[t],i=0;in?(e.removeClass("s_down"),i&&(e.removeClass("peak-down"),e.headGradient.show())):(e.addClass("s_down"),i&&(e.addClass("peak-down"),e.headGradient.hide())))},0),n>e.originTop&&bds.util.tempHideSug()},this.time||0)},e.prototype.getDownPos=function(){var e=document.querySelector(".c-onlyshow-toppic"); this.DOWN_POS=e?.88*e.offsetHeight:0},e.prototype.updated=function(){this.getDownPos(),this.originTop=window.pageYOffset||document.documentElement.scrollTop,this.time=this.peakStyle.get("isHit")?0:50};var t,s,c;return e=n.__decorate([i.injectable,n.__param(0,i.inject(o.DOCUMENT_TOKEN)),n.__param(1,i.inject(r.PeakStyle)),n.__param(2,i.inject(a.HeadGradient)),n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof Document&&Document)?t:Object,"function"==typeof(s="undefined"!=typeof r.PeakStyle&&r.PeakStyle)?s:Object,"function"==typeof(c="undefined"!=typeof a.HeadGradient&&a.HeadGradient)?c:Object])],e) }();t.IsuiHeadFixed=s}),define("modules/right-fixed/right-fixed.service",["require","exports","tslib","@baidu/search-api","@searchfe/inject-js"],function(e,t,n,i,o){"use strict";t.__esModule=!0,t.RightFixed=void 0;var r=function(){function e(e){this.query=e,this.criticalHeight=0;var t=$("#head").height();this.headHeight=t?t+16:86,this.data=null;var n=this.query.get("topicPn");n&&this.init()}e.prototype.init=function(){this.data=this.getScrollData(),this.criticalHeight=this.data.criticalHeight,this.scrollStatus(),this.scrollFunc=this.scrollStatus.bind(this,"scroll"),window.addEventListener("scroll",this.scrollFunc) },e.prototype.getScrollData=function(){var e=$(".content_right_inner"),t=this.getScrollTop(),n=$("#foot").height()||0,i=$("#page").height()||0,o=n+i+this.headHeight+32,r=e[0]?e[0].getBoundingClientRect().top:0,a=r+t-this.headHeight;return{right:e,bodyTop:t,frameHeight:o,criticalHeight:a}},e.prototype.scrollStatus=function(e){var t=this.data,n=t.right,i=this.getDocHeight(),o=e?this.getScrollTop():t.bodyTop,r=t.right.height()-50,a=$(".result-op[tpl=search_topic_publisher]").height()||0,s=$(window).height()||0; !e&&100>a&&(r+=176),o>this.criticalHeight&&s-this.headHeight>r&&i-o-t.frameHeight>r?(n.addClass("right-fixed"),e&&n.css({bottom:"",top:""})):i-o-t.frameHeight<=r?(e||n.addClass("right-fixed"),n.attr("style")||n.css({bottom:88,top:"auto"})):e&&n.removeClass("right-fixed")},e.prototype.getDocHeight=function(){return document.documentElement.offsetHeight||document.body.offsetHeight||0},e.prototype.getScrollTop=function(){return document.documentElement.scrollTop||document.body.scrollTop||0},e.prototype.destroy=function(){this.scrollFunc&&window.removeEventListener("scroll",this.scrollFunc) };var t;return e=n.__decorate([o.injectable,n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof i.Query&&i.Query)?t:Object])],e)}();t.RightFixed=r}),define("modules/right-ceiling/right-ceiling.service",["require","exports","tslib","@baidu/search-api","@searchfe/inject-js"],function(e,t,n,i,o){"use strict";t.__esModule=!0,t.RightCeiling=void 0;var r=function(){function e(e,t){this.TAG_OFFSET=118,this.NO_TAG_OFFSET=28,this.MIN_FIXED_HEIGHT=26,this.SCROLL_Y_OFFSET=42,this.WINDOW_MARGIN=8,this.AI_ACCOMPANIES_CEILING_HEIGHT=55,this.HAS_TAG_HEIGHT=148,this.NO_TAG_HEIGHT=98,this.query=e,this.sampleServ=t,this.observer=null; var n=$("#head").height(),i=$("#page").height()||0,o=$("#foot").height()||0;this.headHeight=n||70,this.bottomHeight=i+o+30,this.screenHeight=screen.height,this.wrapHeight=$("#content_right").height()||0,this.fixedHeight=0,this.adFixedHeight=0,this.isNoFixed=!1;var r=$("#searchTag");this.tagHeight=r.length>0?r.outerHeight()||0:0,this.hasTag=this.tagHeight>0,this.fixedClass=this.hasTag?"right-ceiling-has-tag":"right-ceiling",this.adLength=$("#con-right-bottom").children().length,this.pcAIAccompaniesCeiling=bds.comm.pcAIAccompaniesCeiling,this.fixedClassTop=this.hasTag?this.HAS_TAG_HEIGHT:this.NO_TAG_HEIGHT,this.hasAIAccompaniesCard=$('#content_right [tpl="ai_accompanies"]').length>0; var a=this.query.get("topicPn");a||this.init()}e.prototype.init=function(){this.setScrollData(),this.scrollFunc=this.scrollFixed.bind(this),this.resizeFunc=this.onResize.bind(this),$(window).on("scroll",this.scrollFunc),$(window).on("resize",this.resizeFunc),this.observeContentRightChanges()},e.prototype.observeContentRightChanges=function(){var e=$("#content_right").get(0);if(window.ResizeObserver){var t=new window.ResizeObserver(this.resizeObserverCb.bind(this));null===t||void 0===t?void 0:t.observe(e) }else{var n={attributes:!0,childList:!0,subtree:!0},i=new window.MutationObserver(this.mutationObserverCb.bind(this));null===i||void 0===i?void 0:i.observe(e,n)}},e.prototype.onResize=function(){var e=this;this.screenHeight=screen.height,this.setScrollData();var t=$("#con-ceiling-wrapper");this.isNoFixed&&t.hasClass(this.fixedClass)&&(t.removeClass(this.fixedClass),t.css("transform",""),setTimeout(function(){e.setScrollData()},50))},e.prototype.resizeObserverCb=function(){var e=$("#con-ceiling-wrapper"),t=$("#fb_baidu_right_dialog").height()||0; if(!t){var n=$("#content_right").height()||0;return e.hasClass(this.fixedClass)?void(n+=e.height()||0):void(this.wrapHeight!==n&&(this.setScrollData(),this.wrapHeight=n))}},e.prototype.mutationObserverCb=function(e){var t=$("#con-ceiling-wrapper"),n=$("#fb_baidu_right_dialog").height()||0;if(!n)for(var i=0,o=e;i-1||a.indexOf("c-icon")>-1;if("childList"===r.type&&!s){var c=$("#content_right").height()||0;if(t.hasClass(this.fixedClass))return void(c+=t.height()||0); this.wrapHeight!==c&&(this.setScrollData(),this.wrapHeight=c)}}},e.prototype.setScrollData=function(){var e,t=this.getOffsetTop(),n=$(window).scrollTop()||0,i=n>0,o=i?this.SCROLL_Y_OFFSET:0,r=this.hasTag?this.TAG_OFFSET-o:this.NO_TAG_OFFSET;this.fixedHeight=Math.max(t-this.headHeight-r,this.MIN_FIXED_HEIGHT);var a=(null===(e=$("#con-right-bottom").offset())||void 0===e?void 0:e.top)||0,s=$("#con-right-bottom").height()||0;this.adFixedHeight=a+s-this.headHeight;var c=$("#con-ceiling-wrapper").children().outerHeight(!0)||0,d=$(window).height()||0,u=d<=this.headHeight+this.tagHeight+this.bottomHeight+c+this.WINDOW_MARGIN; this.isNoFixed=u},e.prototype.getOffsetTop=function(){var e;return(null===(e=$("#con-ceiling-wrapper").offset())||void 0===e?void 0:e.top)||0},e.prototype.scrollFixed=function(){var e=this;if(!this.isNoFixed){var t=this.fixedClass,n=$(window).scrollTop()||0,i=$(window).scrollLeft()||0,o=$("#con-ceiling-wrapper"),r=$("#con-right-bottom").height()||0,a=o.hasClass(t),s=this.adLength&&r?this.adFixedHeight:this.fixedHeight;this.pcAIAccompaniesCeiling>0&&this.hasAIAccompaniesCard&&(s-=this.AI_ACCOMPANIES_CEILING_HEIGHT); var c=n>=s;c&&!a&&(o.addClass(t),this.pcAIAccompaniesCeiling>0&&this.hasAIAccompaniesCard&&o.css("top",this.AI_ACCOMPANIES_CEILING_HEIGHT+this.fixedClassTop+"px"));var d=this.hasTag&&this.fixedHeight===this.MIN_FIXED_HEIGHT,u=(d&&0>=n||!d&&!c)&&a;u&&(o.removeClass(t),o.css("transform",""),this.pcAIAccompaniesCeiling>0&&this.hasAIAccompaniesCard&&o.css("top",""),setTimeout(function(){e.setScrollData()},50)),c&&o.css("transform","translateX("+-i+"px)")}},e.prototype.destroy=function(){this.scrollFunc&&$(window).off("scroll",this.scrollFunc),this.resizeFunc&&$(window).off("resize",this.resizeFunc),this.observer&&this.observer.disconnect() };var t,r;return e=n.__decorate([o.injectable,n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof i.Query&&i.Query)?t:Object,"function"==typeof(r="undefined"!=typeof i.Sample&&i.Sample)?r:Object])],e)}();t.RightCeiling=r}),define("modules/right-ai-accompanies-ceiling/right-ceiling.service",["require","exports","tslib","@baidu/search-api","@searchfe/inject-js"],function(e,t,n,i,o){"use strict";t.__esModule=!0,t.RightAIAccompaniesCeiling=void 0;var r=function(){function e(e,t){this.TAG_OFFSET=118,this.NO_TAG_OFFSET=28,this.MIN_FIXED_HEIGHT=26,this.SCROLL_Y_OFFSET=42,this.WINDOW_MARGIN=8,this.TPL_NAME="ai_accompanies",this.PSEUDO_CLASS="right-ceiling-with-pseudo",this.FIXED_DIFF_HEIGHT=14,this.query=e,this.sampleServ=t,this.observer=null,this.fixedBox=null,this.aiAccompaniesCard=null,this.fixedBoxHeight=0; var n=$("#head").height(),i=$("#page").height()||0,o=$("#foot").height()||0;this.headHeight=n||70,this.bottomHeight=i+o+30,this.screenHeight=screen.height,this.wrapHeight=$("#content_right").height()||0,this.fixedHeight=0,this.adFixedHeight=0,this.isNoFixed=!1,this.offsetTop=0;var r=$("#searchTag");this.tagHeight=r.length>0?r.outerHeight()||0:0,this.hasTag=this.tagHeight>0,this.fixedClass=this.hasTag?"right-ai-accompanies-ceiling-has-tag":"right-ai-accompanies-ceiling",this.aiAccompaniesContainer=null,this.adLength=$("#con-right-bottom").children().length,this.pcAIAccompaniesCeiling=bds.comm.pcAIAccompaniesCeiling; var a=this.query.get("topicPn");a||this.init()}e.prototype.init=function(){var e=this.returnAIAccompanies();this.pcAIAccompaniesCeiling>0&&e&&(this.aiAccompaniesCard=e,this.observeAICard(),this.setScrollData(),this.scrollFunc=this.scrollFixed.bind(this),this.resizeFunc=this.onResize.bind(this),$(window).on("scroll",this.scrollFunc),$(window).on("resize",this.resizeFunc),this.observeContentRightChanges())},e.prototype.observeAICard=function(){this.aiAccompaniesContainer=this.aiAccompaniesCard.find("#ai-accompanies-container"),this.aiAccompaniesCard.on("aiAccompaniesFinish",this.handleAIEvent.bind(this)),this.fixedBox=this.aiAccompaniesCard.find("#ai-accompanies-btn-fixed-container") },e.prototype.handleAIEvent=function(){var e=this;setTimeout(function(){e.setScrollData(),e.scrollFixed()},20)},e.prototype.returnAIAccompanies=function(){var e=$('#content_right [tpl="'+this.TPL_NAME+'"]');return e.length>0?e:null},e.prototype.observeContentRightChanges=function(){var e=$("#content_right").get(0);if(window.ResizeObserver){var t=new window.ResizeObserver(this.resizeObserverCb.bind(this));null===t||void 0===t?void 0:t.observe(e)}else{var n={attributes:!0,childList:!0,subtree:!0},i=new window.MutationObserver(this.mutationObserverCb.bind(this)); null===i||void 0===i?void 0:i.observe(e,n)}},e.prototype.getCardWidth=function(){var e;return null===(e=this.aiAccompaniesCard)||void 0===e?void 0:e.width()},e.prototype.onResize=function(){var e=this;this.screenHeight=screen.height;var t=this.fixedBox.hasClass(this.fixedClass);if(t){var n=this.fixedBox.innerHeight()||0;if(this.fixedBoxHeight!==n){this.fixedBoxHeight=n;var i=this.fixedBox.next('[data-placeholder="true"]');i.length>0&&i.css("height",n+"px")}}this.setScrollData(),this.fixedBox.css("width",this.getCardWidth()),this.isNoFixed&&t&&(this.fixedBox.removeClass(this.fixedClass),this.removeClassCb(this.fixedBox),setTimeout(function(){e.setScrollData() },50))},e.prototype.resizeObserverCb=function(){var e=$("#fb_baidu_right_dialog").height()||0;if(!e){var t=$("#content_right").height()||0;return this.fixedBox.hasClass(this.fixedClass)?void(t+=this.fixedBox.height()||0):void(this.wrapHeight!==t&&(this.setScrollData(),this.wrapHeight=t))}},e.prototype.mutationObserverCb=function(e){var t=$("#fb_baidu_right_dialog").height()||0;if(!t)for(var n=0,i=e;n-1||r.indexOf("c-icon")>-1; if("childList"===o.type&&!a){var s=$("#content_right").height()||0;if(this.fixedBox.hasClass(this.fixedClass))return void(s+=this.fixedBox.height()||0);this.wrapHeight!==s&&(this.setScrollData(),this.wrapHeight=s)}}},e.prototype.setScrollData=function(){this.fixedBox.hasClass(this.fixedClass)||(this.offsetTop=this.getOffsetTop());var e=$(window).scrollTop()||0,t=e>0,n=t?this.SCROLL_Y_OFFSET:0,i=this.hasTag?this.TAG_OFFSET-n:this.NO_TAG_OFFSET;this.fixedHeight=Math.max(this.offsetTop-this.headHeight-i+this.FIXED_DIFF_HEIGHT,this.MIN_FIXED_HEIGHT); var o=this.fixedBox.outerHeight(!0)||0,r=$(window).height()||0,a=r<=this.headHeight+this.tagHeight+this.bottomHeight+o+this.WINDOW_MARGIN;this.isNoFixed=a},e.prototype.getOffsetTop=function(){var e;return(null===(e=this.fixedBox.offset())||void 0===e?void 0:e.top)||0},e.prototype.addClassCb=function(e){var t=this;requestAnimationFrame(function(){t.aiAccompaniesContainer.trigger("aiAccompaniesCeiling")}),e.addClass(this.PSEUDO_CLASS).css({"z-index":1,"background-color":"#fff"})},e.prototype.removeClassCb=function(e){e.removeClass(this.PSEUDO_CLASS).css({"z-index":"","background-color":"",transform:""}),this.aiAccompaniesContainer.trigger("aiAccompaniesCancelCeiling") },e.prototype.scrollFixed=function(){var e,t=this;if(!this.isNoFixed){var n=this.fixedClass,i=$(window).scrollTop()||0,o=$(window).scrollLeft()||0,r=$("#con-right-bottom").height()||0,a=(null===(e=$("#con-right-bottom").offset())||void 0===e?void 0:e.top)||0,s=this.fixedBox.hasClass(n),c=this.adLength&&r,d=c?a+r-this.headHeight:this.fixedHeight,u=i>=d;u&&!s&&(c?setTimeout(function(){t.fixedBox.addClass(n).css("width",t.getCardWidth())},20):this.fixedBox.addClass(n).css("width",this.getCardWidth()),this.addClassCb(this.fixedBox)); var l=this.hasTag&&this.fixedHeight===this.MIN_FIXED_HEIGHT,p=(l&&0>=i||!l&&!u)&&s;p&&(this.fixedBox.removeClass(n),this.removeClassCb(this.fixedBox),setTimeout(function(){t.setScrollData()},50)),u&&this.fixedBox.css("transform","translateX("+-o+"px)")}},e.prototype.destroy=function(){this.scrollFunc&&$(window).off("scroll",this.scrollFunc),this.resizeFunc&&$(window).off("resize",this.resizeFunc),this.observer&&this.observer.disconnect(),this.aiAccompaniesContainer&&($(this.aiAccompaniesContainer).off("aiAccompaniesFinish"),this.aiAccompaniesContainer=null) };var t,r;return e=n.__decorate([o.injectable,n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof i.Query&&i.Query)?t:Object,"function"==typeof(r="undefined"!=typeof i.Sample&&i.Sample)?r:Object])],e)}();t.RightAIAccompaniesCeiling=r}),define("modules/search-tag-fixed/search-tag-fixed.service",["require","exports","tslib","@searchfe/inject-js","cosmic/toast"],function(e,t,n,i,o){"use strict";t.__esModule=!0,t.SearchTagFixed=void 0,o=n.__importDefault(o);var r=function(){function e(){this.searchTag=$("#searchTag"),o["default"].baseTop=120,this.searchTag.length<0||(this.searchTag.length>0&&(o["default"].baseTop=150),this.headWrap=$("#head"),this.scroll(),this.scrollFunc=this.throttle(this.scroll.bind(this),50),window.addEventListener?window.addEventListener("scroll",this.scrollFunc):window.attachEvent("scroll",this.scrollFunc)) }return e.prototype.scroll=function(){var e=this.searchTag,t=this.headWrap,n=document.documentElement.scrollTop||document.body.scrollTop;n>26?(null===e||void 0===e?void 0:e.addClass("tag-fixed"),null===t||void 0===t?void 0:t.addClass("no-box-shadow")):0>=n&&(null===e||void 0===e?void 0:e.removeClass("tag-fixed"),setTimeout(function(){null===t||void 0===t?void 0:t.removeClass("no-box-shadow")},100))},e.prototype.throttle=function(e,t){var n,i,o=this,r=0,a=0,s=function(){a=+new Date,r=0,e.call(n,i) },c=function(){for(var c=[],d=0;d=l||l>t?(r&&(clearTimeout(r),r=0),a=u,e.call(n,c)):r||(r=window.setTimeout(s,l))};return c},e.prototype.destroy=function(){var e=this;this.scrollFunc&&(window.removeEventListener?window.removeEventListener("scroll",function(){return e.scrollFunc}):window.detachEvent("scroll",this.scrollFunc))},e=n.__decorate([i.injectable,n.__metadata("design:paramtypes",[])],e)}();t.SearchTagFixed=r}),define("modules/outline-safari/outline-safari.service",["require","exports","tslib","@searchfe/inject-js","@baidu/search-api"],function(e,t,n,i,o){"use strict"; t.__esModule=!0,t.OutlineSafari=void 0;var r="data-tabindex-click",a="no-outline-while-click",s=function(e){var t=/chrome\/([\d.]+)/,n=t.exec(e);if(n){var i=parseInt(n[1].split(".")[0],10);return 90>=i}return!1},c=function(e){return/safari/.test(e)&&!/chrome/.test(e)&&!/chromium/.test(e)},d=function(){function e(e,t){var n=this;this.hasHidden=!1,this.visiableChangeTimeout=0;var i=t.userAgent.toLocaleLowerCase();(c(i)||s(i))&&(e.addEventListener("focus",function(e){return n.focus(e)},!0),e.addEventListener("blur",function(e){return n.blur(e) },!0),e.addEventListener("mousedown",function(e){return n.mouseDown(e)},!0),e.addEventListener("visibilitychange",function(){return n.visibilityChange()},!0))}e.prototype.blur=function(e){var t=e.target;t.hasAttribute("tabindex")&&(t.hasAttribute(r)||this.hasHidden)&&(t.classList.contains(a)&&t.classList.remove(a),t.removeAttribute(r))},e.prototype.focus=function(e){var t=e.target;t.hasAttribute("tabindex")&&(t.hasAttribute(r)||this.hasHidden)&&(t.classList.contains(a)||t.classList.add(a))},e.prototype.mouseDown=function(e){if(e.composedPath){var t=e.composedPath().filter(function(e){return e.hasAttribute&&e.hasAttribute("tabindex") });t.forEach(function(e){return e.setAttribute(r,"")})}},e.prototype.visibilityChange=function(){var e=this;"hidden"===document.visibilityState?this.hasHidden=!0:(window.clearTimeout(this.visiableChangeTimeout),this.visiableChangeTimeout=window.setTimeout(function(){e.hasHidden=!1},700))};var t,d;return e=n.__decorate([i.injectable,n.__param(0,i.inject(o.DOCUMENT_TOKEN)),n.__param(1,i.inject(o.NAVIGATOR_TOKEN)),n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof Document&&Document)?t:Object,"function"==typeof(d="undefined"!=typeof Navigator&&Navigator)?d:Object])],e) }();t.OutlineSafari=d}),define("modules/abblock-log/abblock.service",["require","exports","tslib","@searchfe/inject-js","modules/monitor/log-send"],function(e,t,n,i,o){"use strict";t.__esModule=!0,t.AbBlockLog=void 0;var r=function(){function e(){this.allInfo=[],this.whiteList={recommend_list:1,se_com_default:1},this.sendLog()}return e.prototype.getInfo=function(e){var t=this,n=$(e+" > div"),i=n.filter(function(e,t){return t.className.indexOf("c-container")>-1||""===t.className&&""===t.id}),o=""; switch(e){case"#content_left":case".c-group-wrapper":o="left";break;case"#top-ad":case"#con-at":o="top"}var r=document.location.href;i.each(function(e,n){if("none"===$(n).css("display")||n.clientHeight<50){var i=$(n),a=i.attr("tpl"),s=a&&t.whiteList.hasOwnProperty(a);if(s)return;var c={pageUrl:r,pos:o,msg:"",type:"ab"};if(a)c.msg=a,c.type="card",c.order=n.id;else{var d=$(i.children("div").get(0)).attr("data-placeid");c.msg=null!==d&&void 0!==d?d:""+e}t.allInfo.push(c)}})},e.prototype.sendLog=function(){this.getInfo("#content_left"),this.getInfo("#top-ad"),this.getInfo("#con-at"),this.getInfo(".c-group-wrapper"); var e={group:"abblock",info:this.allInfo};this.allInfo.length>0&&o.send(e,"et_comm")},e=n.__decorate([i.injectable,n.__metadata("design:paramtypes",[])],e)}();t.AbBlockLog=r}),define("modules/event/event",["require","exports","@baidu/search-api"],function(e,t,n){"use strict";t.__esModule=!0,t["default"]=n.event}),define("modules/spy-cache/spy-cache.service",["require","exports","tslib","@searchfe/inject-js","spy-client/dist/spy-local-cache","@baidu/search-api","modules/monitor/log-send"],function(e,t,n,i,o,r,a){"use strict"; t.__esModule=!0,t.SpyCacheService=void 0,o=n.__importDefault(o);var s=function(){function e(e){var n=this;this.query=e;try{localStorage.removeItem("SpyLocalCache")}catch(i){}this.spyCache=new o["default"]({maxRecordLen:150,onFlush:t.getFlushFun(),storage:"localstorage",costTime:t.costTime,key:"pcSpyLocalCache",compress:"no"}),window.onbeforeunload=function(){n.spyCache.save()}}t=e,e.getFlushFun=function(){function e(e){var t=bds.comm.ishome?"1_79":"1_87",n="https://sp1.baidu.com/5b1ZeDe5KgQFm2e88IuM_a/mwb2.gif?pid="+t+"&type=except&group=localcache",i=JSON.stringify({pid:t,type:"except",group:"localcache",ts:Date.now(),lid:e[0].qid,info:{msg:"webb sdk localcache",pageUrl:location.href,log:JSON.stringify(e)}}); navigator.sendBeacon&&navigator.sendBeacon(n,i)||$.ajax({method:"POST",contentType:"application/json; charset=utf-8",dataType:"json",xhrFields:{withCredentials:!0},url:n,data:i})}var t=function(t){console.log("flushed list",t),t.length&&e(t)};return t},e.costTime=function(e){a.send({info:{time:e},group:"lsCost",dim:{}},"pf_comm")},e.prototype.sendLog=function(e){var t=this.query.get("qid")||bds.comm.qid||bds.comm.queryId;this.spyCache.addLog(n.__assign(n.__assign({},e),{url:window.location.href,lid:t})) };var t,s;return e=t=n.__decorate([i.injectable,n.__metadata("design:paramtypes",["function"==typeof(s="undefined"!=typeof r.Query&&r.Query)?s:Object])],e)}();t.SpyCacheService=s}),define("modules/perf-log/perf-log.service",["require","exports","tslib","@searchfe/inject-js","@baidu/search-api","modules/async-cache/async-cache-item.service"],function(e,t,n,i,o,r){"use strict";t.__esModule=!0,t.PerfLog=void 0;var a=function(){function e(e,t,n,i,o){var r=/msie [6-8]\b/.test(o.userAgent.toLowerCase()); r||(this.wwwWebb=n.getInstance("1_87"),this.query=e,this.sendFsLog(t,i),this.sendAsyncLog(t))}e.prototype.sendFsLog=function(e,t){var n;if(e&&e.log?n=e.log.waittime:t&&(n=t.resultEnd),n){var i=this.query.get("qid");this.wwwWebb.updateOption({lid:i});var o={fsTime:n};"1"===this.query.get("alwaysMonitor")&&(o.alwaysMonitor=1),this.wwwWebb.sendPfLog(o,{env:"pc"},{group:"fs"})}},e.prototype.sendAsyncLog=function(e){if(e&&e.log){var t=this.query.get("qid");this.wwwWebb.updateOption({lid:t});var n=e.log,i={cusReq:1===n.frcache?1:n.ntime,req:n.ntime,domTime:n.domtime,waitTime:n.waittime}; this.wwwWebb.sendPfLog(i,{env:"pc"},{group:"async"})}};var t,a,s,c;return e=n.__decorate([i.injectable,n.__param(3,i.inject(o.PERF_SYNC_DATA_TOKEN)),n.__param(4,i.inject(o.NAVIGATOR_TOKEN)),n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof o.Query&&o.Query)?t:Object,"function"==typeof(a="undefined"!=typeof r.AsyncCacheItem&&r.AsyncCacheItem)?a:Object,"function"==typeof(s="undefined"!=typeof o.WebbInstance&&o.WebbInstance)?s:Object,Object,"function"==typeof(c="undefined"!=typeof Navigator&&Navigator)?c:Object])],e) }();t.PerfLog=a}),define("modules/perf-sync-log/perf-sync-log.service",["require","exports","tslib","@searchfe/inject-js","@baidu/search-api","modules/spy-cache/spy-cache.service"],function(e,t,n,i,o,r){"use strict";t.__esModule=!0,t.PerfSyncLog=void 0;var a=function(){function e(e,t,n,i,o,r){var a=/msie [6-8]\b/.test(r.userAgent.toLowerCase());a||(this.wwwWebb=t.getInstance("1_87"),this.query=e,this.spyCache=n,bds.comm.ishome?this.sendHomeLog(i):this.sendSyncLog(i,o))}t=e,e.prototype.getPerfData=function(e){var t={},n=e.timing; if(t.req=n.responseStart-n.requestStart,t.resp=n.responseEnd-n.responseStart,t.tcp=n.connectEnd-n.connectStart,t.dns=n.domainLookupEnd-n.domainLookupStart,t.redirect=n.redirectEnd-n.redirectStart,t.domLoading=n.domLoading-n.navigationStart,t.domReady=n.domContentLoadedEventStart-n.navigationStart,t.domTime=n.domContentLoadedEventStart-n.domLoading,t.load=n.loadEventEnd-n.navigationStart,t.unload=n.unloadEventEnd-n.unloadEventStart,e.memory){var i=e.memory;t.usedJSHeapSize=i.usedJSHeapSize/1024,t.usedJSHeapRate=i.usedJSHeapSize/i.totalJSHeapSize*100 }if(e.getEntriesByType){var o=e.getEntriesByType("navigation");o&&o[0]&&(t.pageSizeGzip=o[0].encodedBodySize/1024,t.pageSize=o[0].decodedBodySize/1024)}return"1"===this.query.get("alwaysMonitor")&&(t.alwaysMonitor=1),t},e.getPerfTiming=function(e){var t=e.timing;return{ns:t.navigationStart,fs:t.fetchStart,cs:t.connectStart,rs:t.requestStart,us:t.unloadEventStart,ss:t.secureConnectionStart,ds:t.domContentLoadedEventStart,dc:t.domComplete,ls:t.loadEventStart}},e.prototype.sendHomeLog=function(e){var n=Object.assign({},this.getPerfData(e),{white:window.__perf_white_screen,first:window.__perf_first_screen,feed:window.__perf_feed_ready,searchbox:window.__perf_searchbox_ready,ready:window.__perf_dom_ready}),i={perfT:t.getPerfTiming(e)}; this.spyCache.sendLog({group:"perf",from:"index",ts:(new Date).getTime(),info:n,ext:i,type:"pf_comm"})},e.prototype.sendSyncLog=function(e,n){if(e&&e.now&&e.timing){var i=n;if(i){var o=this.query.get("qid");this.wwwWebb.updateOption({lid:o}),i=Object.assign(i,this.getPerfData(e));var r={perfT:t.getPerfTiming(e)};this.spyCache.sendLog({group:"perf",from:"result",ts:(new Date).getTime(),info:i,ext:r,type:"pf_comm"}),this.wwwWebb.sendPfLog(i,{env:"pc"},{group:"sync",ext:r})}}};var t,a,s,c,d,u;return e=t=n.__decorate([i.injectable,n.__param(3,i.inject(o.PERFORMANCE_TOKEN)),n.__param(4,i.inject(o.PERF_SYNC_DATA_TOKEN)),n.__param(5,i.inject(o.NAVIGATOR_TOKEN)),n.__metadata("design:paramtypes",["function"==typeof(a="undefined"!=typeof o.Query&&o.Query)?a:Object,"function"==typeof(s="undefined"!=typeof o.WebbInstance&&o.WebbInstance)?s:Object,"function"==typeof(c="undefined"!=typeof r.SpyCacheService&&r.SpyCacheService)?c:Object,"function"==typeof(d="undefined"!=typeof Performance&&Performance)?d:Object,Object,"function"==typeof(u="undefined"!=typeof Navigator&&Navigator)?u:Object])],e) }();t.PerfSyncLog=a}),define("modules/molecule/molecule.service",["require","exports","tslib","@searchfe/inject-js","@baidu/ala-util/ala","san","@baidu/search-api"],function(e,t,n,i,o,r,a){"use strict";t.__esModule=!0,t.MoleculeService=void 0,o=n.__importDefault(o),r=n.__importDefault(r);var s=function(){function e(e,t){this.moleList=[],this.moleModIds=[],this.require=t,e.addProvider(a.SanOption,a.SanOptionProvider);var n=Array.prototype.slice.call($(".result-op[m-name],.result-molecule[m-name],.result[m-name]")); this.execute(n,e)}e.prototype.shouldHydrate=function(e){var t=e&&-1!==e.indexOf("molecules/app/chat-input");return bds.comm.shouldInputConstant&&t?!1:!0},e.prototype.execute=function(e,t){var s=this;e.forEach(function(e){var c=$(e),d=c.attr("m-name"),u=c.attr("m-path"),l=c.children().get(0);if(d&&u&&l&&s.shouldHydrate(d)){var p={};p[d]=u,bds.amd.addPaths(p),s.moleModIds.push(d),s.require([d],function(e){return n.__awaiter(s,void 0,void 0,function(){var s,c,u,p,h=this;return n.__generator(this,function(){return e["default"]&&("render-only"===e["default"].ssr?(o["default"].hydrateCardInfo.set({env:"pc",inject:function(e){return h.inject(t,e) }}),r["default"].hydrateComponent(e["default"],{el:l})):(a.SanOptionProvider.setElement(l),s=e["default"],s.prototype.__inject=function(e){return h.inject(t,e)},c=i.getDependencies(s),u=[],c.forEach(function(e){u.push(t.create(e))}),c.length||u.push({el:l}),p=new(s.bind.apply(s,n.__spreadArrays([void 0],u))),this.moleList.push(p),this.checkSmartInputReplace(d))),[2]})})})}})},e.prototype.checkSmartInputReplace=function(e){if(-1!==e.indexOf("molecules/app/chat-input")){var t=$('[tpl="chat-input"]'); !t.length||document.activeElement&&"chat-textarea"===document.activeElement.id||t.trigger("asyncChangeInputDom")}},e.prototype.inject=function(e,t){return t?e.create.call(e,t):void 0},e.prototype.clearModule=function(){for(var e=this.moleModIds.length,t=/(aladdin-san|mirror-san)\//,n=[],i="",o=0;e>o;o++)i=this.moleModIds[o],t.test(i)&&n.push(i);"function"==typeof this.require.clearModule&&this.require.clearModule(n),this.moleModIds=[]},e.prototype.destroy=function(){try{this.moleList.forEach(function(e){e.detached&&e.detached() })}catch(e){console.error(e)}this.moleList=[],this.clearModule()};var t,s;return e=n.__decorate([i.injectable,n.__param(0,i.inject("RESULT_DI")),n.__param(1,i.inject(a.REQUIRE_TOKEN)),n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof i.Container&&i.Container)?t:Object,"function"==typeof(s="undefined"!=typeof a.Require&&a.Require)?s:Object])],e)}();t.MoleculeService=s}),define("modules/perf-resource-log/perf-resource-log.service",["require","exports","tslib","@searchfe/inject-js","@baidu/search-api","modules/spy-cache/spy-cache.service","modules/monitor/log-send"],function(e,t,n,i,o,r,a){"use strict"; t.__esModule=!0,t.PerfResourceLog=void 0;var s;!function(e){e[e.ttf=0]="ttf",e[e.eot=1]="eot",e[e.woff=2]="woff",e[e.woff2=3]="woff2"}(s||(s={}));var c;!function(e){e[e["/wb.gif"]=0]="/wb.gif",e[e["/w.gif"]=1]="/w.gif",e[e["/v.gif"]=2]="/v.gif",e[e["/mwb.gif"]=3]="/mwb.gif",e[e["/mwb2.gif"]=4]="/mwb2.gif",e[e["/tc"]=5]="/tc",e[e["/webb.gif"]=6]="/webb.gif",e[e["/tj.gif"]=7]="/tj.gif",e[e["/wbcj.gif"]=8]="/wbcj.gif"}(c||(c={}));var d=153600,u=function(){function e(e,t,n,i){this.webb=t,this.query=e,this.jsList=[],this.cssList=[],this.imgList=[],this.fontList=[],this.xhrList=[],this.bigImgList=[],this.imgHostInfo={},this.httpResList=[],this.slowResData=[],this.spyCache=n; try{this.sendLog(i)}catch(o){}this.saveCache()}t=e,e.prototype.saveCache=function(){var e=this.slowResData;e.length>0&&this.spyCache.sendLog({group:"resLoadSlow",from:bds.comm.ishome?"index":"result",ts:(new Date).getTime(),info:e,type:"et_comm"})},e.prototype.getUrlObj=function(e){var t=/(https?:)?\/\/([^\/]*)(\/[^?]*)/.exec(e);if(!t)return{};var n=t[3],i=n.split(".").pop(),o="/"+n.split("/").pop(),r={pathname:n,host:t[2],lastpathname:o,ext:i};return r},e.prototype.sendLog=function(e){if(e&&e.getEntriesByType){var n=e.getEntriesByType("navigation"),i=e.getEntriesByType("resource"); if(n&&n[0]&&i){var o;o=this.webb.getInstance(bds.comm.ishome?"1_79":"1_87");var r=this.query.get("qid")||bds.comm.qid||bds.comm.queryId;o.updateOption({lid:r}),this.setResourceMetrics(i);var a=this.getPageSizeMetrics(n[0]),s=this.getResourceSizeMetrics();if(a&&s){var c=Object.assign(a,s);"1"===this.query.get("alwaysMonitor")&&(c.alwaysMonitor=1),o.sendPfLog(c,{},{group:"resource"}),this.sendIdleLog(o),this.sendHttpLog()}this.sendImgHostInfo(o),this.sendAllResourceLoadTime(),t.sendLsInfo()}}},e.shouldSend=function(e){var t=document.cookie.indexOf("webbtest=1")>-1; return t||Math.random()=t;t+=500)localStorage.setItem("test",new Array(1024*t+1).join("a")) }catch(n){localStorage.removeItem("test"),localStorage.setItem("size",(e+t-500).toString())}}return localStorage.getItem("size")},e.getLsLen=function(){var e=0,n=0,i=0;for(var o in localStorage)localStorage.hasOwnProperty(o)&&(o.indexOf("SpyLocalCache")>-1&&(i+=t.getBytesCount(localStorage[o])+t.getBytesCount(o)),n=t.getBytesCount(localStorage[o])+t.getBytesCount(o),e+=n);return{totalLen:(e/1024).toFixed(2),spyLen:(i/1024).toFixed(2)}},e.getBytesCount=function(e,t){void 0===t&&(t="");var n=0,i=0,o=t.toLowerCase(); if("utf-16"===o||"utf16"===o)for(var r=0,a=e.length;a>r;r++)n+=2;else for(var r=0,a=e.length;a>r;r++)i=e.charCodeAt(r),n+=127>=i?1:2047>=i?2:3;return n},e.getTplName=function(e){for(var t="";e&&1===e.nodeType&&e!==e.parentNode;){var n=e.className.split(/\s+/);if(-1!==n.indexOf("result-op")||-1!==n.indexOf("result")){t=e.getAttribute("tpl");break}if(-1!==n.indexOf("EC_result")){t="ec";break}if(e===document.body)break;e=e.parentNode}return t},e.getPathTo=function(e){var n;if(""!==e.id)return'id("'+e.id+'")'; if(e===document.body)return e.tagName;for(var i=0,o=(null===(n=null===e||void 0===e?void 0:e.parentNode)||void 0===n?void 0:n.childNodes)?e.parentNode.childNodes:[],r=0;rn;n++)switch(e[n].initiatorType){case"script":this.addScript(e[n]); break;case"css":this.addCss(e[n]);break;case"img":this.addImg(e[n]);break;case"link":this.addLink(e[n]);break;case"xmlhttprequest":this.addXhr(e[n])}},e.prototype.collectHttpResInHttps=function(e){var t=this.getUrlObj(e.name).lastpathname;"https:"===location.protocol&&e.name.startsWith("http://")&&!c.hasOwnProperty(t)&&this.httpResList.push(e)},e.prototype.sendHttpLog=function(){if(this.httpResList.length){var e=[];try{this.httpResList.forEach(function(n){var i=n.name,o=document.querySelector('img[src="'+i+'"]'),r=o?t.getPathTo(o):"",a=""; o&&!bds.comm.ishome&&(a=t.getTplName(o)),e.push({msg:i,tplName:a,xpath:r})}),a.send({info:e,group:"httpRes",dim:{}},"et_comm")}catch(n){}}},e.prototype.getResourceSizeMetrics=function(){return n.__assign(n.__assign(n.__assign(n.__assign(n.__assign(n.__assign({},this.getNumAndSize("js")),this.getNumAndSize("css")),this.getNumAndSize("img")),this.getNumAndSize("bigImg")),this.getNumAndSize("font")),this.getNumAndSize("xhr"))},e.prototype.shouldSendLog=function(e){return void 0===e.decodedBodySize||void 0===e.transferSize?!1:!0 },e.prototype.addScript=function(e){var t=this.getUrlObj(e.name).ext;"js"===t&&this.jsList.push(e)},e.prototype.addCss=function(e){var t=this.getUrlObj(e.name).ext;t&&s.hasOwnProperty(t)?this.fontList.push(e):this.addImg(e)},e.prototype.addLink=function(e){var t=this.getUrlObj(e.name).ext;"css"===t?this.cssList.push(e):"js"===t&&this.jsList.push(e)},e.prototype.addImg=function(e){this.collectHttpResInHttps(e);var t=this.getUrlObj(e.name).lastpathname;c.hasOwnProperty(t)||(this.imgList.push(e),this.setImgHostInfo(e),e.decodedBodySize&&e.decodedBodySize>d&&this.bigImgList.push(e)) },e.prototype.addXhr=function(e){var t=this.getUrlObj(e.name).ext;"gif"===t?this.addImg(e):"js"===t?this.jsList.push(e):this.xhrList.push(e)},e.prototype.getNumAndSize=function(e){var t={},n=e+"Num",i=e+"Size",o=e+"TransferSize",r=e+"CacheRate",a=e+"Duration";t[n]=0,t[i]=0,t[o]=0;var s=0;if(this[e+"List"].forEach(function(e){t[n]++,t[i]+=(e.decodedBodySize||0)/1024,t[o]+=(e.transferSize||0)/1024,s+=e.duration}),t[a]=t[n]>0?s/t[n]:0,t[i]){var c=t[i]-t[o];t[r]=c>=0?100*c/t[i]:0}for(var d=0,u=Object.keys(t);d=1e3)switch(i.getTimeRange(t)){case"1_1.6s":o["1_1.6s"].push(e);break;case"1.6_2s":o["1.6_2s"].push(e);break;case"2_5s":o["2_5s"].push(e);break;case"5s":o["5s"].push(e)}});var r=function(n){if(Object.prototype.hasOwnProperty.call(o,n)){var r=o[n];r.forEach(function(o){var s=o.name,c="image"===e&&document.querySelector('img[src="'+s+'"]'),d=c?t.getPathTo(c):"",u={info:{msg:s,connectT:o.connectEnd-o.connectStart,domainLookupT:o.domainLookupEnd-o.domainLookupStart,duration:o.duration,requestT:o.responseStart-o.requestStart,responseT:o.responseEnd-o.responseStart,startT:o.startTime,waitingT:o.domainLookupStart-o.startTime,connectEnd:o.connectEnd,requestStart:o.requestStart,fetchStart:o.fetchStart,slowLen:r.length,xpath:d},dim:{host:i.getUrlHost(s),range:n,type:e},group:"resLoadSlow"}; a.send(u,"et_comm"),i.slowResData.push({info:u.info,type:e,time:performance.timeOrigin+o.startTime})})}};for(var s in o)r(s)},e.prototype.sendImgHostInfo=function(e){var t=this;Object.keys(this.imgHostInfo).forEach(function(n){var i=t.imgHostInfo[n],o=i.duration;i.duration=o/i.num,"1"===t.query.get("alwaysMonitor")&&(i.alwaysMonitor=1),e.sendPfLog(i,{host:n},{group:"imgHostInfo"})})},e.prototype.getTimeRange=function(e){return e>=1e3&&1600>e?"1_1.6s":e>=1600&&2e3>e?"1.6_2s":e>=2e3&&5e3>e?"2_5s":"5s" },e.prototype.getUrlHost=function(e){var t=this.getUrlObj(e).host;return t?/\.baidu|bcebos|bdstatic|baidubce|bdimg\.com/.test(t)?t:"other":location.host};var t,u,l,p,h;return e=t=n.__decorate([i.injectable,n.__param(3,i.inject(o.PERFORMANCE_TOKEN)),n.__metadata("design:paramtypes",["function"==typeof(u="undefined"!=typeof o.Query&&o.Query)?u:Object,"function"==typeof(l="undefined"!=typeof o.WebbInstance&&o.WebbInstance)?l:Object,"function"==typeof(p="undefined"!=typeof r.SpyCacheService&&r.SpyCacheService)?p:Object,"function"==typeof(h="undefined"!=typeof Performance&&Performance)?h:Object])],e) }();t.PerfResourceLog=u}),define("modules/head-gradient/head-gradient.service",["require","exports","tslib","@searchfe/inject-js","@baidu/search-api","modules/peak-style/peak-style.service"],function(e,t,n,i,o,r){"use strict";t.__esModule=!0,t.HeadGradient=void 0;var a=function(){function e(e,t,n){var i=this;this._styleText="",this.useStyle=!0,this.styleTpl={direction:"bottom",distance:[15,32,50,70]},this.node=e.getElementById("head"),this.peakStyle=n;var r=t.userAgent.match(/MSIE[^;]+;/)||[],a=parseInt(r[0]?r[0].replace(/(MSIE|;)/g,""):"10",10); this.canIWork=a>=10,o.event.on("pz.headgradient",function(e){var t=e.data,n=t.target,o=t.defer;i.peakStyle.get("isHit")&&i.gradientAnimate(n,o)})}e.prototype.styleText=function(){return this._styleText},e.prototype.setStyleText=function(e){this.canIWork&&(this._styleText=e,this.node.style.background=this.useStyle?this.styleText():"")},e.prototype.dataToStyle=function(e){var t=this.styleTpl,n=t.direction,i=t.distance,o=e.map(function(e,t){return"rgba("+e.map(function(e,t){return 3===t?e:Math.round(e) }).join(", ")+") "+(i[t]?i[t]+"px":"")});return"linear-gradient(to "+n+", "+o.join(", ")+")"},e.prototype.styleToData=function(e){var t=e.match(/rgba\([^\)]+/g)||[];return t.map(function(e){var t=e.replace("rgba(","").split(",");return t.map(function(e){return parseFloat(e)})})},e.prototype.initStyle=function(e){var t=e.split(",").map(function(e){return parseInt(e,10)});return[1,.85,.6,0,0].map(function(e){return n.__spreadArrays(t,[e])})},e.prototype.gradientAnimate=function(e,t){var n=this;if(this.canIWork){var i,o=this.styleToData(this.styleText()),r=o.map(function(t,n){var i=e[n]||t; return t.map(function(e,t){return(i[t]||0===i[t]?i[t]:e)-e})}),a=0,s=0,c=function(e){void 0===e&&(e=0);var d=i?e-i:0;a+=d,i=e;var u=t&&t>d?d/t:1;s+=u,o=o.map(function(e,t){return e.map(function(e,n){return e+r[t][n]*u})}),n.setStyleText(n.dataToStyle(o)),t>a&&1>s&&window.requestAnimationFrame&&window.requestAnimationFrame(c)};c()}},e.prototype.updated=function(){var e=this.peakStyle.get("isHit"),t=this.peakStyle.get("color"),n=e&&t?this.dataToStyle(this.initStyle(t)):"";this.setStyleText(n)},e.prototype.show=function(){this.useStyle=!0,this.setStyleText(this.styleText()) },e.prototype.hide=function(){this.useStyle=!1,this.setStyleText(this.styleText())};var t,a,s;return e=n.__decorate([i.injectable,n.__param(0,i.inject(o.DOCUMENT_TOKEN)),n.__param(1,i.inject(o.NAVIGATOR_TOKEN)),n.__param(2,i.inject(r.PeakStyle)),n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof Document&&Document)?t:Object,"function"==typeof(a="undefined"!=typeof Navigator&&Navigator)?a:Object,"function"==typeof(s="undefined"!=typeof r.PeakStyle&&r.PeakStyle)?s:Object])],e) }();t.HeadGradient=a}),define("modules/peak-style/peak-style.service",["require","exports","tslib","@searchfe/inject-js","modules/json-data/json-data"],function(e,t,n,i,o){"use strict";t.__esModule=!0,t.PeakStyle=void 0;var r=function(){function e(){this.data={}}return e.prototype.updated=function(){this.data=o.extractData("peak-style-data")},e.prototype.get=function(e){return this.data[e]},e=n.__decorate([i.injectable,n.__metadata("design:paramtypes",[])],e)}();t.PeakStyle=r}),define("modules/select-search/select-search.service",["require","exports","tslib","@searchfe/inject-js","@baidu/search-api","modules/page-log/ubc-log"],function(e,t,n,i,o,r){"use strict"; t.__esModule=!0,t.SelectSearch=void 0;var a=function(){function e(e,t){var n=this;n.document=e,n.logServe=t,n.selectTips=void 0,$("#wrapper").on("mousedown",function(){n.hideNode()}),$("#content_left").on("mouseup",function(e){n.mouseupAction(e)}),$("#content_right").on("mouseup",function(e){n.mouseupAction(e)})}e.prototype.escapeHtml=function(e){return e.replace(//g,">")},e.prototype.mouseupAction=function(e){try{var t=this.getSelectionContent(),n=t.selectedText,i=t.rangePos,o=this.calculateStr(n); 76>=o&&this.selectSearchShow(n,i,e.target)}catch(r){console.error(r)}},e.prototype.calculateStr=function(e){for(var t=e.length,n=0,i=0;t>i;i++){var o=e.charAt(i);if(n=null!==o.match(/[^\x00-\xff]/gi)?n+2:n+1,n>76)break}return n},e.prototype.getSelectionContent=function(){var e={},t=window.getSelection(),n={},i="";return t&&0!==t.rangeCount&&(e=t.getRangeAt(0),n=e&&e.getBoundingClientRect(),i=t.toString()),{rangePos:n,selectedText:i}},e.prototype.selectSearchShow=function(e,t,n){var i=this,o=this; if(e&&e.length>0&&58923!==e.charCodeAt(0)){var r=document.body.scrollTop||document.documentElement.scrollTop;if($(".selected-search-box").length)$(".selected-search-box span").text(e),$(".selected-search-box a").attr("href","//www.baidu.com/s?rsv_dl=selectedsearch&wd="+encodeURIComponent(e));else{var a=$('\n '); $("#wrapper_wrapper").append(a)}var s=$(".selected-search-box"),c=t.top+r-10-32,d=document.body.scrollLeft||document.documentElement.scrollLeft,u="LEFT",l=document.getElementById("content_left"),p=l&&l.getBoundingClientRect().left||0;if(t.height<25&&t.right-p<555)d+=t.left;else{var h=s.outerWidth()||0;d+=t.right-h+3,u="RIGHT"}s.css({display:"block",top:c,left:d}),s.on("mousedown",function(e){e.stopPropagation()}),s.off("click").on("click",function(t){t.stopPropagation(),i.sendSelectLog("click",u,e) }),this.selectTips=s,this.sendLog(n,e,u)}},e.prototype.sendLog=function(e,t,n){this.sendSelectLog("show",n,t);for(var i=e;"BODY"!==i.tagName&&!i.getAttribute("tpl")&&i.parentElement;){var o=i.parentElement;i=o}var r={fm:"behs",txt_l:t.length,action_name:"selectSearchShow",r_index:i&&i.id?i.id:""};this.logServe&&this.logServe.send(r)},e.prototype.hideNode=function(){var e=$(".selected-search-box");e.length&&e.hide(),this.selectTips=void 0},e.prototype.destroy=function(){var e=$(".selected-search-box"); e.length&&e.remove(),this.selectTips=void 0},e.prototype.sendSelectLog=function(e,t,n){r.sendUbcLog(19052,e,"choose_text_pop",{area:t,content:n})};var t,a;return e=n.__decorate([n.__param(0,i.inject(o.DOCUMENT_TOKEN)),n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof Document&&Document)?t:Object,"function"==typeof(a="undefined"!=typeof o.Log&&o.Log)?a:Object])],e)}();t.SelectSearch=a}),define("modules/aging-tools/aging-tools.service",["require","exports","tslib","@searchfe/inject-js","modules/json-data/json-data","@baidu/search-api"],function(e,t,n,i,o,r){"use strict"; t.__esModule=!0,t.AgingTools=void 0;var a={on:function(e,t){r.event.on(e,t)},fire:function(e,t){r.event.trigger(e,t)},off:function(e,t){r.event.off(e,t)}},s=function(){return!0},c=function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,n)},d=function(){function e(e,t,n){this.document=e,this.data={},this.require=t,this.log=n,this.hasAging=!1}e.prototype.addPageDescrib=function(){if(!this.document.querySelector("#aging-total-page")){var e="欢迎进入 百度一下,你就知道,盲人用户进入读屏幕模式请按快捷键Ctrl加Alt加R;阅读详细操作说明请按快捷键Ctrl加Alt加问号键。",t=this.document.createElement("a"); t.setAttribute("id","aging-total-page"),t.setAttribute("role","pagedescription"),t.setAttribute("aria-label",e),t.setAttribute("tabindex","0"),t.setAttribute("href","javascript:void(0)"),this.document.body.insertBefore(t,document.body.firstChild)}},e.prototype.loadAriaScript=function(e){var t=this;if(this.document.querySelector("#ariascripts"))return void(e&&e());var n=(new Date).getTime(),i="https://www.baidu.com/wza/aria.js?appid=c890648bf4dd00d05eb9751dd0548c30",o=this.document.createElement("script"); o.src=i,o.id="ariascripts",o.setAttribute("charset","utf-8");var r=function(){t.log.send({new_aria_script_load:JSON.stringify({isLoad:1,cost:(new Date).getTime()-n})}),e&&e()},a=function(){t.log.send({new_aria_script_load:JSON.stringify({isLoad:0,cost:(new Date).getTime()-n})})};c(o,"load",r),c(o,"error",a),c(window,"error",this.errLog.bind(this));var s=document.querySelector("#aging-tools-wrapper");(s||this.document.body).appendChild(o);var d=document.querySelector("#aging-total-page");d&&document.body.removeChild(d) },e.prototype.errLog=function(e){var t=e.message,n=e.colno,i=e.lineno,o=e.filename;/\.baidu\.com\/wza\//g.test(o)&&this.log.send({new_aria_script_error:JSON.stringify({filename:o,lineno:i,colno:n,message:t})})},e.prototype.attachSelfService=function(e){var t=this,n=this,i={rootDom:"#wrapper",scaleDom:["#wrapper"],entry:$(".aging-entry"),from:"result",newType:"1",bigTextDom:$("#wrapper"),disableVoice:this.data.disableVoice,logService:function(e){n.log.send({clickType:e})},event:a};this.require(["@baidu/aging-tools-pc"],function(n){var o=n["default"]; t.tool=new o({data:i}),t.tool.attach(e),t.hasAging=!0})},e.prototype.updated=function(){var e=this;if(this.data=o.extractData("aging-data"),!bds.comm.ishome&&!this.hasAging){var t=document.querySelector("#aging-tools-wrapper");if(t||(t=this.document.createElement("div"),t.id="aging-tools-wrapper",this.document.body.insertBefore(t,$("#wrapper")[0])),!this.data.disableVoice&&s()){if(!document.querySelector("#aging-tools-pc")){var n=this.document.createElement("div");n.id="aging-tools-pc",t.appendChild(n) }var i=!1;try{var r="ariaStatus",d=document.cookie.match(new RegExp("(^| )"+r+"=([^;]*)(;|$)"));i=d?"true"===decodeURIComponent(d[2]):!1}catch(u){}return i?this.loadAriaScript():this.addPageDescrib(),c(window,"keyup",function(t){t.code&&"backquote"===t.code.toLocaleLowerCase()&&t.altKey&&t.ctrlKey&&e.loadAriaScript(function(){var e=window.aria,t=e&&e.status()||!1;t&&e?e.end():e&&(a.fire("aging-tools.close","new_aria_not_close"),e.start()),a.fire("tts.close","new_aria_not_close")})}),a.on("aging-tools.close",function(e){(!e||"new_aria_not_close"!==e.data)&&window.aria&&window.aria.end() }),a.on("tts.close",function(e){(!e||"new_aria_not_close"!==e.data)&&window.aria&&window.aria.end()}),void(this.hasAging=!0)}this.attachSelfService(t)}};var t,d,u;return e=n.__decorate([i.injectable,n.__param(0,i.inject(r.DOCUMENT_TOKEN)),n.__param(1,i.inject(r.REQUIRE_TOKEN)),n.__param(2,i.inject(r.Log)),n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof Document&&Document)?t:Object,"function"==typeof(d="undefined"!=typeof r.Require&&r.Require)?d:Object,"function"==typeof(u="undefined"!=typeof r.Log&&r.Log)?u:Object])],e) }();t.AgingTools=d}),define("modules/urlencode-check/urlencode-check.service",["require","exports","tslib","@searchfe/inject-js","@baidu/webSecurity","modules/monitor/log-send"],function(e,t,n,i,o,r){"use strict";t.__esModule=!0,t.UrlEncodeCheck=void 0,o=n.__importDefault(o);var a=[{selector:".result-op",attributeName:"tpl"},{selector:".result",attributeName:"tpl"},{selector:".result-molecule",attributeName:"tpl"},{selector:"#head",attributeName:""},{selector:".s_tab",attributeName:""}],s=function(){function e(){this.init() }t=e,e.getCardInfo=function(e){for(var t=0;t0},e.prototype.showTipBox=function(){return n.__awaiter(this,void 0,void 0,function(){var e,t,i,o,r=this; return n.__generator(this,function(){if(e=this.invokeService.getOneInvokeInfo(8),t=parseInt(localStorage.getItem("mcpTipBoxShowTime")||"0",10),(new Date).getTime()>t&&this.invokeService.hitMcp(8)&&e&&e.ext)try{i=JSON.parse(e.ext),o=+i.waitTime||3,setTimeout(function(){r.isInteract()||r.tipbox.showTipBox(i)},1e3*o)}catch(n){}return[2]})})},e.prototype.showBanner=function(){var e=document.querySelector(".bds-lead-ipad"),t=this.invokeService.getOneInvokeInfo(10);if(e&&t&&t.ext)try{var n=JSON.parse(t.ext); this.tipbox.showBanner(n)}catch(i){}},e.prototype.getTipbox=function(){return n.__awaiter(this,void 0,void 0,function(){var e=this;return n.__generator(this,function(){return this.tipbox?[2,Promise.resolve()]:[2,new Promise(function(t){e.require(["tipbox/js/tipbox"],function(n){e.tipbox=n,t("")})})]})})};var t,r,a,s;return e=n.__decorate([i.injectable,n.__param(3,i.inject(o.REQUIRE_TOKEN)),n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof o.MCPInvokeService&&o.MCPInvokeService)?t:Object,"function"==typeof(r="undefined"!=typeof o.Query&&o.Query)?r:Object,"function"==typeof(a="undefined"!=typeof o.Sample&&o.Sample)?a:Object,"function"==typeof(s="undefined"!=typeof o.Require&&o.Require)?s:Object])],e) }();t.IncreaseService=r}),define("modules/utils/utils.service",["require","exports","tslib","@searchfe/inject-js"],function(e,t,n,i){"use strict";t.__esModule=!0,t.UtilsService=void 0;var o=function(){function e(){this.ua=navigator.userAgent}return e.prototype.isIPad=function(){var e=this.ua;return/macintosh|mac os x/i.test(e)&&window.screen.height>window.screen.width&&!e.match(/(iPhone\sOS)\s([\d_]+)/)||e.match(/(iPad).*OS\s([\d_]+)/)},e.prototype.isIE=function(){var e=this.ua;return/(MSIE \d+)|Trident\/\d+/.test(e) },e=n.__decorate([i.injectable,n.__metadata("design:paramtypes",[])],e)}();t.UtilsService=o}),define("modules/quit-dialog/quit-dialog.service",["require","exports","tslib","@searchfe/inject-js","@baidu/search-api"],function(e,t,n,i,o){"use strict";t.__esModule=!0,t.QuitDialog=void 0;var r=function(){function e(e){this.log=e,this.renderDOM(),this.bindEvent()}e.prototype.renderDOM=function(){var e='\n
\n
\n \n
\n '; $("body").append(e)},e.prototype.bindEvent=function(){var e=this,t=$(".search-quit-dialog-wrap"),n=$(".search-quit-dialog-wrap .dialog-close"),i=$(".search-quit-dialog-wrap .exit"),o=$(".search-quit-dialog-wrap .confirm");n.on("click",function(){t.hide(),e.log.send({rsv_ct:"5",rsv_cst:"2"})}),i.on("click",function(){t.hide(),e.log.send({rsv_ct:"5",rsv_cst:"3"}),location.href="http://passport.baidu.com/?logout&tpl=mn&u="}),o.on("click",function(){t.hide(),e.log.send({rsv_ct:"5",rsv_cst:"4"})})};var t; return e=n.__decorate([i.injectable,n.__param(0,i.inject(o.Log)),n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof o.Log&&o.Log)?t:Object])],e)}();t.QuitDialog=r}),define("modules/shortcut-key/shortcut-key.service",["require","exports","tslib","@searchfe/inject-js","@baidu/search-api"],function(e,t,n,i,o){"use strict";t.__esModule=!0,t.ShortcutKey=void 0;var r=function(){function e(e){navigator.userAgent.indexOf("iPad")>-1||(this.log=e,this.toastDuration=5e3,this.isShowToast=!0,this.punctuationKey=[8,106,107,109,110,186,187,188,189,190,192,219,220,221,222],this.searchToastDom=$(".search-keyboard-toast"),this.bindEvent()) }e.prototype.bindEvent=function(){var e=this;document.addEventListener("keydown",function(t){var n,i,o,r=t.keyCode,a=t.ctrlKey||t.metaKey,s=e.searchToastDom;if(!(a||t.altKey||t.shiftKey||(s&&s.length>0&&"none"===s[0].style.display&&(e.isShowToast=!0),e.currentHasFocus()||e.hasMask())))if(e.isContentEditKey(r))e.showToast();else if(e.isShortcutKey(r)){t.preventDefault(),e.hideToast(!0);var c=$("#kw"),d=null===(n=c.val())||void 0===n?void 0:n.toString().length;c.click(),null===(o=(i=c[0]).setSelectionRange)||void 0===o?void 0:o.call(i,d,d),c.focus(),e.log.send({rsv_ct:"7",rsv_cst:"2"}) }}),document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e.hideToast(!0)}),$("#kw").focus(function(){e.hideToast(!0),e.isShowToast=!0}),$(".right-icon").on("click",function(){e.hideToast(!0),e.isShowToast=!0})},e.prototype.currentHasFocus=function(){var e,t=$("input"),n=$("textarea"),i=!1;t.each(function(){return this===document.activeElement?(i=!0,!1):!0}),i||n.each(function(){return this===document.activeElement?(i=!0,!1):!0});var o=$(".soutu-layer");return o.length>0&&"none"!==(null===(e=o[0])||void 0===e?void 0:e.style.display)&&(i=!0),i },e.prototype.showToast=function(){var e=this;this.isShowToast&&(this.searchToastDom&&this.searchToastDom.fadeIn(300),this.log.send({rsv_ct:"7",rsv_cst:"1"})),this.isShowToast=!1,this.keyTimer&&clearTimeout(this.keyTimer),this.toastTimer&&clearTimeout(this.toastTimer),this.keyTimer=setTimeout(function(){e.toastTimer=setTimeout(function(){e.hideToast(),e.isShowToast=!0},e.toastDuration)},500)},e.prototype.hideToast=function(e){void 0===e&&(e=!1),e?this.searchToastDom&&this.searchToastDom.hide():this.searchToastDom&&this.searchToastDom.fadeOut(300) },e.prototype.hasMask=function(){var e,t=this.handleCurrentMaskIsShow(".search-quit-dialog-wrap",!0);if(t)return!0;if($(".pop-mask").length>0&&"none"!==(null===(e=$(".pop-mask")[0])||void 0===e?void 0:e.style.display))return!0;var n=this.handleCurrentMaskIsShow("#_voice_mask");if(n)return!0;var i=this.handleCurrentMaskIsShow(".bdlayer-shadow");if(i)return!0;var o=this.handleCurrentMaskIsShow(".fb-mask");if(o)return!0;var r=this.handleCurrentMaskIsShow(".fb-baidu-wizard");return r?!0:!1},e.prototype.handleCurrentMaskIsShow=function(e,t){var n; return void 0===t&&(t=!1),t?"block"===(null===(n=$(e)[0])||void 0===n?void 0:n.style.display):$(e)[0]},e.prototype.isContentEditKey=function(e){var t=navigator.userAgent;return(t.includes("Opera")||t.includes("Firefox"))&&59===e?!0:this.punctuationKey.includes(e)||this.isNumberKey(e)||this.isLetterKey(e)?!0:!1},e.prototype.isNumberKey=function(e){return e>=48&&57>=e||e>=96&&105>=e},e.prototype.isLetterKey=function(e){return e>=65&&90>=e},e.prototype.isShortcutKey=function(e){return 191===e||111===e };var t;return e=n.__decorate([i.injectable,n.__param(0,i.inject(o.Log)),n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof o.Log&&o.Log)?t:Object])],e)}();t.ShortcutKey=r}),define("modules/monitor/screen-log.service",["require","exports","tslib","modules/monitor/log-send"],function(e,t,n,i){"use strict";t.__esModule=!0,t.ScreenLog=void 0;var o=window.screen,r=o.width,a=o.height,s=o.availHeight,c=o.availWidth,d=window.innerHeight,u=window.innerWidth,l=window.outerWidth,p=window.outerHeight,h=document.body,f=h.clientWidth,m=h.clientHeight,g=function(){function e(){this.sendLog() }return e.prototype.isFullScreen=function(){return!!(document.fullscreen||document.webkitIsFullScreen||document.fullscreenElement||document.webkitFullScreenElement||document.mozFullScreenElement)},e.prototype.isMaximize=function(){return p===s&&l===c},e.prototype.sendLog=function(){var e={innerHeight:d,innerWidth:u,outerHeight:p,outerWidth:l,clientHeight:m,clientWidth:f,screenWidth:r,screenHeight:a,screenAvailHeight:s,screenAvailWidth:c,isMaximize:this.isMaximize(),isFullScreen:this.isFullScreen()}; i.send({group:"screenDist",info:n.__assign({},e),dim:{}},"dist")},e}();t.ScreenLog=g}),define("modules/hint-codecover/index",["require","exports","tslib","@searchfe/inject-js","@baidu/webb","@baidu/search-api"],function(e,t,n,i,o,r){"use strict";t.__esModule=!0,t.HintCodeCover=void 0,o=n.__importDefault(o);var a=function(){function e(e){this.queryServ=e,this.init()}e.prototype.init=function(){var e={pid:"19_103",lid:this.queryServ.get("lid"),et_comm:{sample:.5,sampleType:"eachreq"}},t=[],n="hint-code-cover"; if($("[data-"+n+"]").each(function(e,i){t.push($(i).data(n))}),t.length){var i=new o["default"](e);i.send("et_comm",{msg:"20_1",url:window.location.href,result:t.join("_")},{},{},{group:"codeCoverage"})}};var t;return e=n.__decorate([i.injectable,n.__metadata("design:paramtypes",["function"==typeof(t="undefined"!=typeof r.Query&&r.Query)?t:Object])],e)}();t.HintCodeCover=a}),define("modules/extra-plugin-monitor/index",["require","exports","tslib","@searchfe/inject-js"],function(e,t,n,i){"use strict"; t.__esModule=!0,t.ExtraPluginMonitor=void 0;var o=function(){function e(){this.timer=0,this.init()}return e.prototype.init=function(){var e=this;this.rightcardClick=this.rightcardClick.bind(this),this.deepcardClick=this.deepcardClick.bind(this),this.floatcardClick=this.floatcardClick.bind(this),$(window).on("swap_end",function(){e.syncEnter()}),this.syncEnter()},e.prototype.sendLog=function(e,t){void 0===t&&(t={}),this.spySend({type:"count",group:"db-stat",info:e,extra:t})},e.prototype.rightcardClick=function(){this.sendLog({rightcard_click:1}) },e.prototype.deepcardClick=function(){this.sendLog({deepcard_click:1})},e.prototype.floatcardClick=function(){this.sendLog({floatcard_click:1})},e.prototype.existAndHandle=function(e,t,n){if(t){var i=t.getBoundingClientRect();if(i.height&&i.width){var o={};o[e+"_disp"]=1,this.sendLog(o)}t.removeEventListener("click",n),t.addEventListener("click",n)}},e.prototype.syncEnter=function(){var e=this;try{clearTimeout(this.timer),this.timer=setTimeout(function(){var t,n,i=atob("ZG91YmFvLWFpLXNlYXJjaC1lbmdpbmU="),o=atob("ZG91YmFvLWFpLWRlZXAtc2VhcmNoLWFzc2lzdGFudA=="),r=atob("Zmxvdy1haS1hc3Npc3RhbnQ="),a=document.querySelector("[id*="+i+"]"),s=document.querySelector("[id*="+o+"]"),c=null===(t=null===s||void 0===s?void 0:s.shadowRoot)||void 0===t?void 0:t.querySelector("[class*=entryContainer-]"),d=null===c||void 0===c?void 0:c.querySelector('button[class*="samantha-button"]'),u=document.querySelector("[aria-label="+r+"]"); c&&(c.style="display: block");var l=null===(n=null===u||void 0===u?void 0:u.shadowRoot)||void 0===n?void 0:n.querySelector("[class*=floatBtnWrapper-]");e.existAndHandle("rightcard",a,e.rightcardClick),e.existAndHandle("deepcard",d,e.deepcardClick),e.existAndHandle("floatcard",l,e.floatcardClick)},2e3)}catch(t){console.error(t)}},e.prototype.spySend=function(e){var t,n="https://sp1.baidu.com/5b1ZeDe5KgQFm2e88IuM_a/mwb2.gif?",i=["pid=1_87","lid="+(null===(t=null===bds||void 0===bds?void 0:bds.comm)||void 0===t?void 0:t.qid),"ts="+Date.now(),"type="+e.type,"group="+e.group,"info="+encodeURIComponent(JSON.stringify(e.info)),"dim="+encodeURIComponent(JSON.stringify(e.dim||{})),"extra="+encodeURIComponent(JSON.stringify(e.extra))].join("&"),o=n+i; navigator.sendBeacon&&navigator.sendBeacon(o)||((new Image).src=o)},e=n.__decorate([i.injectable,n.__metadata("design:paramtypes",[])],e)}();t.ExtraPluginMonitor=o}),define("modules/extra-plugin-monitor/block-monitor",["require","exports","tslib","modules/monitor/log-send"],function(e,t,n,i){"use strict";t.__esModule=!0;var o=function(){function e(){this.monitorNodes=new Set,this.checkInterval=1e3,this.visibilityCheckTimer=null,this.nodeGroups={brandAd:{selectors:["#tenon-",".tenon_pc_material",".tenon_pc_comp_content_container",".tenon_pc_comp_title",".tenon_pc_comp_tlink","[render-comp-id]","[comp-index]"],attributes:["render-comp-id","comp-index","comp-version","data-title1","data-fm","data-click"]},ecResult:{selectors:[".EC_result",".fc-",'[data-click*="p1="]'],attributes:["data-placeid","data-cmatchid","data-ecimtimesign"]},searchResult:{selectors:[".result-op.c-container"],attributes:["srcid","tpl","id"]},rs:{selectors:['[tpl="app/rs"]'],attributes:[]},inputArea:{selectors:["#kw"],attributes:[]}} }return e.prototype.init=function(){return n.__awaiter(this,void 0,void 0,function(){var e;return n.__generator(this,function(t){switch(t.label){case 0:this.scanAdNodes(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,new Promise(function(e){return setTimeout(e,3e3)})];case 2:return t.sent(),this.checkAdNodesStatus(),[3,4];case 3:return e=t.sent(),console.error("广告节点检测发生错误:",e),this.checkAdNodesStatus(),[3,4];case 4:return[2]}})})},e.prototype.scanAdNodes=function(){var e=this;Object.entries(this.nodeGroups).forEach(function(t){var i=t[0],o=t[1]; o.selectors.forEach(function(t){try{var r=document.querySelectorAll(t);r.forEach(function(r){e.recordAdNode(r,t,n.__assign(n.__assign({},o),{name:i}))})}catch(a){console.warn('选择器 "'+t+'" 执行失败:',a)}})})},e.prototype.recordAdNode=function(e,t,n){var i=Array.from(this.monitorNodes).find(function(t){return t.node===e});i||this.monitorNodes.add({node:e,path:this.getNodePath(e),group:n.name,selector:t,originalStyle:this.captureNodeStyle(e),attributes:this.getGroupAttributes(e,n),timestamp:(new Date).toISOString()}) },e.prototype.getGroupAttributes=function(e,t){var n={};return t.attributes.forEach(function(t){e.hasAttribute(t)&&(n[t]=e.getAttribute(t)||"")}),n},e.prototype.checkAdNodesStatus=function(){var e=this,t={};this.monitorNodes.forEach(function(e){t[e.group]||(t[e.group]=[]),t[e.group].push(e)}),Object.entries(t).forEach(function(t){var n=t[0],i=t[1];e.checkGroupNodes(n,i)})},e.prototype.checkGroupNodes=function(e,t){return n.__awaiter(this,void 0,void 0,function(){var e,o,r,a,s=this;return n.__generator(this,function(c){switch(c.label){case 0:return e=[],o=[],t.forEach(function(t){var i=t.node; if(!document.contains(i))return e.push(n.__assign(n.__assign({},t),{node:i})),void s.monitorNodes["delete"](t);var r=s.captureNodeStyle(i);if(s.isNodeHidden(i,r)){var a=s.detectStyleChanges(t.originalStyle,r);Object.keys(a).length>0&&o.push(n.__assign(n.__assign({},t),{hiddenReason:a,node:i}))}}),o.length>0?[4,this.waitForAdBlockPlugins()]:[3,2];case 1:r=c.sent(),o.forEach(function(e){i.send({type:"except",group:"blockMonitor",info:{msg:"hidden-"+e.selector,path:e.path,selector:e.selector,attributes:JSON.stringify(e.attributes),adBlockDetection:JSON.stringify(r)}}) }),c.label=2;case 2:return e.length>0?[4,this.waitForAdBlockPlugins()]:[3,4];case 3:a=c.sent(),e.forEach(function(e){i.send({type:"except",group:"blockMonitor",info:{msg:"deleted-"+e.selector,path:e.path,selector:e.selector,attributes:JSON.stringify(e.attributes),adBlockDetection:JSON.stringify(a)}})}),c.label=4;case 4:return[2]}})})},e.prototype.captureNodeStyle=function(e){var t=window.getComputedStyle(e);return{display:t.display,visibility:t.visibility,opacity:t.opacity,position:t.position,zIndex:t.zIndex,height:t.height,width:t.width,overflow:t.overflow,clip:t.clip,transform:t.transform} },e.prototype.isNodeHidden=function(e,t){return"none"===t.display||"hidden"===t.visibility||"0"===t.opacity||"0px"===t.height||"0px"===t.width||"absolute"===t.position&&"rect(0px, 0px, 0px, 0px)"===t.clip||"fixed"===t.position&&"translateX(-10000px)"===t.transform||e.hasAttribute("hidden")||e.style.cssText.includes("display: none")||e.style.cssText.includes("visibility: hidden")},e.prototype.detectStyleChanges=function(e,t){for(var n={},i=0,o=Object.entries(e);i ")},e.prototype.waitForAdBlockPlugins=function(){return n.__awaiter(this,void 0,Promise,function(){var e=this;return n.__generator(this,function(){return[2,new Promise(function(t){var i=setTimeout(function(){t(!1)},2e3),o={"bait-element":function(){return n.__awaiter(e,void 0,void 0,function(){var e,t; return n.__generator(this,function(){return e=document.createElement("div"),e.innerHTML=" ",e.className="adsbox",document.body.appendChild(e),t=0===e.offsetHeight,document.body.removeChild(e),[2,t]})})},"injected-vars":function(){return n.__awaiter(e,void 0,void 0,function(){return n.__generator(this,function(){return[2,"google_ad_status"in window||"adsbygoogle"in window||"adblock"in window||"AdBlocker"in window]})})},"script-block":function(){return n.__awaiter(e,void 0,void 0,function(){return n.__generator(this,function(){return[2,new Promise(function(e){var t=document.createElement("script"); t.src="https://cpro.baidustatic.com/cpro/ui/c.js",t.onerror=function(){return e(!0)},t.onload=function(){return e(!1)},document.head.appendChild(t),setTimeout(function(){document.head.removeChild(t),e(!0)},100)})]})})},"css-rules":function(){return n.__awaiter(e,void 0,void 0,function(){var e,t,i;return n.__generator(this,function(){return e=document.createElement("div"),e.className="pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links ad-text adSense adBlock",e.style.position="absolute",e.style.left="-999em",document.body.appendChild(e),t=window.getComputedStyle(e),i="none"===t.display||"hidden"===t.visibility||"0"===t.opacity||null===e.offsetParent,document.body.removeChild(e),[2,i] })})}};Promise.all(Object.entries(o).map(function(t){var i=t[0],o=t[1];return n.__awaiter(e,void 0,void 0,function(){var e,t;return n.__generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,o()];case 1:return e=n.sent(),[2,{method:i,result:e,error:null}];case 2:return t=n.sent(),console.warn("AdBlock 检测方法 "+i+" 执行失败:",t),[2,{method:i,result:!1,error:t.message}];case 3:return[2]}})})})).then(function(e){clearTimeout(i);var n={timestamp:(new Date).toISOString(),results:e,hasAdBlock:e.some(function(e){return e.result===!0 }),effectiveMethods:e.filter(function(e){return e.result===!0}).map(function(e){return e.method})};t(n)})})]})})},e.prototype.destroy=function(){this.visibilityCheckTimer&&(clearInterval(this.visibilityCheckTimer),this.visibilityCheckTimer=null),this.monitorNodes.clear()},e}(),r=null;$(window).on("swap_dom_ready",function(){try{r=new o,r.init()}catch(e){console.error(e)}}),$(window).on("swap_begin",function(){r&&r.destroy(),r=null})}),define("modules/extra-plugin-monitor/dom-monitor",["require","exports","tslib","modules/monitor/log-send"],function(e,t,n,i){"use strict"; t.__esModule=!0;var o=JSON.parse(window.atob("WyJxaWhvb2FpLWFzc2lzdGFudC1yb290Iiwic2lkZXItc2VhcmNoLWVuaGFuY2UiLCJtcGEtcm9vdHNjLXZpZGVvLWdhdGhlcmVyIiwibXBhLXJvb3RzYy1pbWFnZS1nYXRoZXJlciIsIm1wYS1yb290c2Mtbm90aWZpY2F0aW9uLW1hbmFnZXIiLCJtcGEtcm9vdHNjLXNpZGUtZnVuY3Rpb24tcGFuZWwiLCJzaW1TZWFyY2hGcmFtZSIsImRzZHNkOTltbW1qajc3NjAwMTEiLCJfaW5mb2Zsb3dfc3VtbWFyeSIsIldQUy1BSS1PQ1Itd3BzLWFpLW9jciIsIldQUy1BSS1UUkFOU0xBVE9SLXdwcy1haS10cmFuc2xhdG9yIiwiYzRnLXNlYXJjaC1lbmhhbmNlIiwiYzRnLWNvbnRlbnQtcm9vdCIsIktJTUktV0VCLUVYVEVOU0lPTi0iLCJUT05HWUktV0VCLUVYVEVOU0lPTi0iLCJtb25pY2Etc2VhcmNoLWVuaGFuY2UiLCJtb25pY2EtY29udGVudC1yb290IiwiYWktYXNzaXN0LXJvb3QiLCJhaUFzc2lzdFJvb3QiLCJuaWNhU2VhcmNoQ29udGFpbmVyIiwibW96YXRhLWNhcmQtY29udGFpbmVyIiwiZG91YmFvLWFpLXNlYXJjaC1lbmdpbmUtYXNzaXN0YW50IiwiZG91YmFvLWFpLXRyYW5zbGF0ZS1pbWFnZS1hc3Npc3RhbnQiLCJkZXNrdG9wX2FpX3NlYXJjaCIsImRvdWJhby1haS1za2lsbC1hc3Npc3RhbnQtIiwiRE9VQkFPLUFJLUNTVUktIiwibWV0YXNvYWktc3VwcmVtZS1yb290LS1zZWFyY2giLCJXRUJDSEFUR1BULUNVU1RPTS1FTEVNRU5ULSIsIllELUlNQUdFLU9DUi0iLCJhaXRvcGlhLXNlYXJjaCIsImFnYWRfYWRfc3RhdGljIl0=")),r=function(){function e(){this.allowedLeafNodes={classNames:["result-op","s_tab_inner","s-isindex-wrap","result-molecule"],ids:["searchTag","s_top_wrap","s-top-left","ul","s_wrap","bottom_layer","bottom_space","homepage_tts_player","s_lm_wrap","s_wrap","leaf-id2"]},this.asyncAllowedNodes=["#wrapper-wrapper .new-pmd","#content_left .result","#wrapper .bdlayer","#wrapper .bdlayer-shadow","#u .usermenu","#u .bdpfmenu","#u .bdnuarrow",'#con-right-bottom [id*="_canvas"] .layout',".new-pmd","#container","#content_bottom","script","style",".ec-d20-recomm-wrap-nobg","#homepage_tts_player"],this.observer=null,this.homeObserver=null,this.blockNums={},this.indexNodesQueue=[],this.handleingQueque=!1 }return e.prototype.startMonitor=function(){var e=document.getElementById("wrapper");this.nodeTree=this.buildNodeTree(e),this.observer=new MutationObserver(this.handleMutations.bind(this)),this.startObserving()},e.prototype.shouldFilterElement=function(e){var t,n;if("none"===(null===(t=e.style)||void 0===t?void 0:t.display)||"inline"===(null===(n=e.style)||void 0===n?void 0:n.display))return!0;var i=["a","abbr","acronym","b","bdo","big","br","button","cite","code","dfn","em","i","img","input","kbd","label","map","object","q","samp","script","select","small","span","strong","sub","sup","textarea","time","tt","var"]; if(i.includes(e.tagName.toLowerCase()))return!0;var o=["hidden","hide","d-none","display-none","none","invisible"],r=["inline"];return o.some(function(t){return e.classList.contains(t)})||r.some(function(t){return e.classList.contains(t)})},e.prototype.isNodeAllowedByAsync=function(e){return this.asyncAllowedNodes.some(function(t){return e.matches(t)})},e.prototype.isLeafNode=function(e){var t=this.allowedLeafNodes.classNames.some(function(t){return e.classList.contains(t)}),n=this.allowedLeafNodes.ids.includes(e.id); return t||n},e.prototype.buildNodeTree=function(e){var t=this,n={tagName:e.tagName,id:e.id||null,className:e.className||null,children:[],node:e};if(this.isLeafNode(e))return n;var i=new Set;return e.childNodes.forEach(function(e){if(e.nodeType===Node.ELEMENT_NODE&&"script"!==e.nodeName.toLowerCase()&&"style"!==e.nodeName.toLowerCase()&&"form"!==e.nodeName.toLowerCase()&&"a"!==e.nodeName.toLowerCase()&&!t.shouldFilterElement(e)){var o=e.nodeName.toLowerCase()+"-"+e.id+"-"+e.className;if(!i.has(o)){i.add(o); var r=t.buildNodeTree(e);n.children.push(r)}}}),n},e.prototype.isNodeValid=function(e){var t=e.parentElement;if(!t)return!0;if(this.isNodeAllowedByAsync(e))return!0;if(e.parentNode===document.body&&e.shadowRoot)return!1;var n=function(e,t){if(e.node===t)return e;for(var i=0,o=e.children;i ")},e.prototype.handleMutations=function(e){var t=this;e.forEach(function(e){"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).forEach(function(e){if(e.nodeType===Node.ELEMENT_NODE){var n=t.isNodeValid(e); n||t.report(e)}})})},e.prototype.startObserving=function(){this.observer&&this.observer.observe(document.body,{childList:!0,subtree:!0})},e.prototype.blockEle=function(e,t){var n,i,r,a,s,c=bds.comm.sampleval&&-1!==(null===(n=bds.comm.sampleval)||void 0===n?void 0:n.indexOf("pcsearch_dom_not_block"));if(!c&&e.id){var d=o.find(function(t){return e.id.includes(t)});if(d&&e.style&&!(this.blockNums[e.id]>10)){this.blockNums[e.id]||(this.blockNums[e.id]=0),this.blockNums[e.id]++;var u=document.createElement("style"); u.type="text/css",document.head.appendChild(u);var l="position: absolute !important; left: -9999px !important;";(null===(i=null===t||void 0===t?void 0:t.includes)||void 0===i?void 0:i.call(t,"content_right"))||(l+="display: none !important;"),(null===(a=(r=e.id).includes)||void 0===a?void 0:a.call(r,"doubao-ai-skill-assistant-"))&&(l+="display: none !important"),null===(s=null===u||void 0===u?void 0:u.sheet)||void 0===s?void 0:s.insertRule("body #"+e.id+" { "+l+" }",0)}}},e.prototype.report=function(e){var t,o,r,a,s,c,d,u=(null===(r=null===(o=null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelector("div"))||void 0===o?void 0:o.outerHTML)||void 0===r?void 0:r.substr(0,200))||null,l={tagName:e.tagName,id:e.id,className:e.className,attributes:this.getNodeAttributes(e),parentInfo:{tagName:null===(a=e.parentElement)||void 0===a?void 0:a.tagName,id:null===(s=e.parentElement)||void 0===s?void 0:s.id,className:null===(c=e.parentElement)||void 0===c?void 0:c.className,attributes:this.getNodeAttributes(e.parentElement)},html:null===(d=e.innerHTML)||void 0===d?void 0:d.substr(0,200),shadowHtml:u,path:this.getNodePath(e)}; this.blockEle(e,l.path),i.send({type:"except",group:"domMonitor",info:n.__assign(n.__assign({},l),{attributes:JSON.stringify(l.attributes),parentInfo:JSON.stringify(l.parentInfo),msg:l.tagName+"-"+l.id}),dim:{home:bds.comm.ishome}})},e.prototype.startHomeMonitor=function(){this.homeObserver=new MutationObserver(this.handleHomeMutations.bind(this)),this.homeObserver.observe(document.body,{childList:!0,subtree:!0})},e.prototype.handleQueque=function(){var e=this;if(!this.handleingQueque){var t=this.indexNodesQueue.slice(); this.indexNodesQueue=[],0!==t.length&&(this.handleingQueque=!0,setTimeout(function(){for(var n=0,i=t;n0&&Array.from(e.addedNodes).forEach(function(e){if(e.nodeType===Node.ELEMENT_NODE){var n=e.children[0]||e;t.indexNodesQueue.push(n),t.handleQueque()}})})},e.prototype.stopHomeMonitor=function(){this.homeObserver&&this.homeObserver.disconnect(),this.homeObserver=null },e.prototype.destroy=function(){this.observer&&this.observer.disconnect(),this.nodeTree=null,this.observer=null,this.blockNums={}},e}(),a=null;$(window).on("swap_dom_ready",function(){try{a=new r,a.startMonitor()}catch(e){console.error(e)}}),$(window).on("swap_begin",function(){a&&a.destroy(),a=null});var s=null;if(bds.comm.ishome){try{s=new r,s.startHomeMonitor()}catch(c){console.error(c)}$(window).on("index_off",function(){s&&s.stopHomeMonitor(),s=null})}}),bds&&bds.util&&(bds.util.sendCVLog=function(e,t,n){try{require(["@baidu/search-api"],function(i){var o=new i.CodeCover; o.send(e,t,n)})}catch(i){console.warn("SEND CODECOVER FAILED, "+i)}}),!function(A){function clickDebug(){}function getCheckCode(e,t){var n,i=/\?url\=([^\.]+)\./,o=/link\?url\=([^\&]+)/;if(n=o.exec(e)||i.exec(e)){var r=n[1]&&n[1].length?n[1].length:0;return t+r}return t}function bindP5(){var item,index=(bds.comm.pageNum-1)*bds.comm.pageSize+1,leftItems=contentLeft&&contentLeft.children||[],rightItems=contentRight&&contentRight.children||[],topItems=contentTop&&contentTop.children||[],isResult=function(e){return 1===e.nodeType&&e.className?/result-molecule/.test(e.className)?!1:/\bresult(\-op)?\b/.test(e.className):!1 },isFrame=function(e){return 1==e.nodeType&&e.className&&/\bc\-frame\b/.test(e.className)},setClickData=function(wrap,data){var sData=wrap.getAttribute("data-click")||"{}";try{var oData=eval("("+sData+")");sData=$.stringify($.extend(oData,data)),wrap.setAttribute("data-click",sData)}catch(e){clickDebug(e)}},bindP5ClickData=function(e,t){for(var n=0,i=e.length;i>n;n++)if(item=e[n],isResult(item))setClickData(item,{p5:index++,area:t});else if(isFrame(item))try{for(var o=item.children[0].children,r=0,a=o.length;a>r;r++){var s=o[r]; isResult(s)&&setClickData(s,{p5:index++,area:t})}}catch(c){clickDebug(c)}index=(bds.comm.pageNum-1)*bds.comm.pageSize+1};bindP5ClickData(leftItems,"LEFT"),bindP5ClickData(rightItems,"RIGHT"),bindP5ClickData(topItems,"TOP")}function getXPath(e,t,n){if(n=n||[],t=t||document,e===t)return n;if(e.parentNode!==t&&(n=getXPath(e.parentNode,t,n)),e.previousSibling){var i=1,o=e.previousSibling;do 1==o.nodeType&&o.nodeName==e.nodeName&&i++,o=o.previousSibling;while(o)}if(1==e.nodeType){var r=e.nodeName.toLowerCase()+(i>1?i:""); r&&e.getAttribute("data-module")&&(r+="("+e.getAttribute("data-module")+")"),n.push(r)}return n}function isSeNormal(e){var t=["se_com_default","se_st_robots","se_st_com_abstract","se_com_irregular_gallery","www_struct"];return t.indexOf(e.attr("tpl"))>-1}function bindLogEvent(){$body=$("body"),$body.on("mouseover",".result",function(e){var e=window.event||e;isSeNormal($(this))&&(mouseoverNum++,mouseoverTime=(new Date).getTime(),firstMouseoverPoint.flag&&(firstMouseoverPoint={flag:!1,x:e.screenX,y:e.screenY})) }),$body.on("mousedown",function(e){var e=window.event||e,t=e.srcElement||e.target,n=$(t);try{for(var i,o,r=n;r.length&&!(r.hasClass("result")||r.hasClass("result-op")||r.hasClass("xpath-log"));)r=r.parent();if(!r.length)return;r.hasClass("result-op")?i="alop":r.hasClass("result")&&(i="as"),o=r.get(0);var a=getXPath(t,o);check(a,t,o)&&log(a,t,o,i,e)}catch(e){clickDebug(e)}})}function getType(e,t,n){fixPcTypeNode(t,n);for(var i=t,o=Object.getOwnPropertyNames(LOG_CLASS).map(function(e){return LOG_CLASS[e] }),r=o.length,a=C_LOG_CLASS,s=a.length,c=e.join(" "),d=0;i!==n;){for(d=0;r>d;d++)if($(i).hasClass("OP_LOG_"+o[d]))return o[d].toLowerCase();for(d=0;s>d;d++)if($(i).hasClass("c-"+a[d]))return a[d];i=i.parentNode}return/\bh3\d*\b/.test(c)?"title":/\ba\d*\b/.test(c)?/\bimg\d*\b/.test(c)?"img":"link":/\b(input|select|button|textarea|datalist)\d*\b/.test(c)?"input":/\blabel\d*\b/.test(c)&&t.getElementsByTagName("input").length>0?"input":""}function fixPcTypeNode(e,t){for(var n=null,i="",o="";e!==t&&null===n;)i=$(e).attr("class")||"",i.replace(new RegExp(".*("+wiseClassPrefix+"\\w+).*"),function(e,t){o=t }),o&&(n=e),e=e.parentNode;var r=i.replace(o,""),a="",s="";if(o&&i!==o){switch(a=o.replace(wiseClassPrefix,"")){case WISE_LOG_CLASS.TAB:s=LOG_CLASS.BTN;break;case WISE_LOG_CLASS.BTN:s=LOG_CLASS.BTN;break;case WISE_LOG_CLASS.SF:s=LOG_CLASS.LINK;break;case WISE_LOG_CLASS.MSC:s=LOG_CLASS.BTN;break;case WISE_LOG_CLASS.VD:s=LOG_CLASS.BTN;break;case WISE_LOG_CLASS.OTHER:s=LOG_CLASS.OTHERS;break;default:s=LOG_CLASS.OTHERS}$(n).attr("class",r+" "+classPrefix+s)}}function check(e,t,n){return A.LOGTOOL?(A.LOGTOOL.call(t,e,t,n),!1):!0 }function log(e,t,n,i,o){if(null==t.getAttribute("data-nolog")){var r=getType(e,t,n);if(!r)return!1;if("title"==r&&!/\ba\d*\b/.test(e))return!1;var a="http://nourl.ubs.baidu.com",s=n.getAttribute("mu")||a;if(s==a){var c=n.getElementsByTagName("h3");if(c&&c[0]){var d=c[0].getElementsByTagName("a");s=d&&d[0]?d[0].href:s}}var u,l=e.length,p=t,h=n.getAttribute("srcid"),f="",m=1==t.nodeType?t.tagName.toLowerCase():"";if("input"==r)if(/input|textarea/.test(m))f=t.value,t.type&&"password"==t.type.toLowerCase()&&(f=""); else if(/select|datalist/.test(m)){if(t.children.length>0){var g=t.selectedIndex||0;f=t.children[g>-1?g:0].innerHTML}}else f=t.innerHTML||t.value||"";else if("img"==m&&(f=t.title),!f)for(;l>0;){if(l--,/^a\d*\b/.test(e[l])){if(u=p.href,f=p.innerHTML,null!=p.getAttribute("data-nolog"))return;break}if(p.className&&/OP_LOG_/.test(p.className)){f=p.innerHTML;break}p=p.parentNode}f=$.trim(f),u&&"#"!==u.slice(-1)&&/^http/.test(u)||(u=s);var v={rsv_xpath:e.join("-")+"("+r+")",title:f,url:u,rsv_height:n.offsetHeight,rsv_width:n.offsetWidth,rsv_tpl:n.getAttribute("tpl")},b={url:1,title:1}; n.id&&n.id.match(/^\d+$/)&&(v.p1=n.id),h&&(v.rsv_srcid=h);var y,w,_;p=t;do{if(null!=p.getAttribute("data-nolog"))return;if(y=p.getAttribute("data-click")||p.getAttribute("data-click-info"))try{y=new Function("return "+y)();for(w in y)"fm"==w&&null===y.fm&&(_=!0),y.hasOwnProperty(w)&&("undefined"==typeof v[w]||b[w])&&(v[w]=y[w])}catch(o){clickDebug(o)}p=p.parentNode}while(p&&p!==n.parentNode);for(var x in v)null===v[x]&&delete v[x];if("title"==r?"mu"in v&&delete v.mu:v.mu||(v.mu=s),_)"fm"in v&&delete v.fm; else if("input"==r&&(v.fm="beha",v.url=a),v.fm||(v.fm=i),!v.fm)return;var k=(new Date).getTime(),S=mouseoverNum,C=o.screenX,T=firstMouseoverPoint.y,I=k-mouseoverTime;if(isSeNormal($(n))){v.ck1=S,v.ck3=C,v.ck4=o.screenY,v.ck5=firstMouseoverPoint.x,v.ck6=T,v.ck7=I;var E=S+C+T+I;v.ck0=getCheckCode(v.url,E)}var E=S+C+T+I;v.ala_anti="ck0@"+getCheckCode(v.url,E)+",ck1@"+S+",ck3@"+C+",ck6@"+T+",ck7@"+I,window.c(v)}}var baidu=window.baidu,classPrefix="OP_LOG_",wiseClassPrefix="WA_LOG_",LOG_CLASS={TITLE:"TITLE",LINK:"LINK",IMG:"IMG",BTN:"BTN",INPUT:"INPUT",OTHERS:"OTHERS"},WISE_LOG_CLASS={TAB:"TAB",BTN:"BTN",SF:"SF",MSC:"MSC",VD:"VD",OTHER:"OTHER"},C_LOG_CLASS=["btn"],mouseoverNum=0,firstMouseoverPoint={flag:!0,x:0,y:0},mouseoverTime=0,contentLeft,contentRight,contentTop,area; window.initResultClickLog=function(){if(contentLeft=$("#content_left").get(0),contentRight=$("#con-ar").get(0),contentTop=$("#con-at").get(0),A.has){var e,t=$(".result-op").get();$.each(t,function(t,n){(e=n.getAttribute("srcid"))&&A.ids.push([n.id,e])})}bindP5()},$(document).ready(function(){bindLogEvent()})}(window.bds.aladdin);for(ai in al_arr)al_arr[ai]();$(document).ready(function(){var e;$(document).on("click",".t>a,.op-se-listen-recommend",function(t){t=window.event||t;var n=$("#wrapper_wrapper"),i=$(this).closest(".c-container"),o=i.length?i.find(".c-recommend").eq(0):[],r=i.length?i.find(".wnor-fanli-wrap"):[]; !t.ctrlKey&&(o.length&&"none"===o.css("display")||r.length&&"none"===r.css("display"))&&(e=setTimeout(function(){n.find(".c-recommend").hide(),o.show(),n.find(".wnor-fanli-wrap").hide(),r.show()},150))}),$(window).on("swap_begin",function(){this.clearTimeout(e)})}),window.onunload=function(){},bds.se.openime=function(e){window.bdime?openIme.set("py",!0):$.ajax({cache:!0,dataType:"script",url:"http://pss.bdstatic.com/r/www/cache/static/plugins/ime_6aff449.js",success:function(){e&&openIme.set("py",!0) }})},bds&&bds.comm&&!bds.comm.containerSize&&(bds.comm.containerSize="s"),bds.util.setContainerWidth=function(){var e=$("#container"),t=$("#wrapper"),n=bds.util.getWinWidth(),i=bds.comm.containerSize,o=1217;if(o>n)e.removeClass("container_l container_xl").addClass("container_s"),t.removeClass("wrapper_l").addClass("wrapper_s"),bds.comm.containerSize="s";else{if(!(n>=o))return;e.removeClass("container_s container_xl").addClass("container_l"),t.removeClass("wrapper_s").addClass("wrapper_l"),bds.comm.containerSize="l" }i!=bds.comm.containerSize&&$(window).trigger("container_resize",bds.comm.containerSize)},bds.util.setFootStyle=function(){this.init(),this.bindEvent()},$.extend(bds.util.setFootStyle.prototype,{ie6:bds.comm.upn&&"msie"===bds.comm.upn.browser&&6==bds.comm.upn.ie,init:function(){var e=$("#foot");if(e.addClass("foot_fixed_bottom"),this.ie6){var t=$(window).height()+$(window).scrollTop()-e.outerHeight(!0);e.css("top",t+"px")}},setFixedIe6:function(){var e=$("#foot"),t=$(window).height()+$(window).scrollTop()-e.outerHeight(!0); e.css("top",t+"px")},bindEvent:function(){var e=this;e.ie6&&$(window).on("resize.setFootStyle, scroll.setFootStyle",function(){e.setFixedIe6()})}});var bds=bds||{};bds.se=bds.se||{},bds.se.tip=bds.se.tip||{},bds.comm.tipZIndex=220,bds.comm.tips=[],bds.se.tip=function(e){this.init=function(){this.op={target:e.target||{},mode:e.mode||"over",title:e.title||null,content:e.content||null,uncontrolled:e.uncontrolled?!0:!1,arrow:{has:1,offset:10,r:!1,c:!1},close:e.close||0,align:e.align||"left",offset:{x:10,y:20},arrowSize:16},e.arrow&&(this.op.arrow.has=0==e.arrow.has?0:1,this.op.arrow.offset=e.arrow.offset>=0?e.arrow.offset:10,this.op.arrow.r=e.arrow.r,this.op.arrow.c=e.arrow.c,e.arrow.excursion&&(this.op.arrow.excursion=e.arrow.excursion)),e.offset&&(this.op.offset.x=e.offset.x||0==e.offset.x?e.offset.x:10,this.op.offset.y=e.offset.y||0==e.offset.y?e.offset.y:20),this.ext=e.ext||{},this.dom=$("
",{"class":e.wrapClass?e.wrapClass:"c-tip-con"}),this.visible=!1,this.rendered=!1,this.isAuto="auto"===this.op.align?!0:!1,this.bindEvent() },this.render=function(){this.op.close&&this.enableCloseIcon(),this.op.title&&this.setTitle(this.op.title),this.op.content&&this.setContent(this.op.content),this.op.arrow.has&&this.enableArrow(),$("#c-tips-container").append(this.dom)},this.bindEvent=function(){if(this.delay={overIcon:null,outIcon:null,overDom:null,outDom:null},"over"==this.op.mode){var e=this;$(e.op.target).on("mouseenter",function(){window.clearTimeout(e.delay.outIcon),window.clearTimeout(e.delay.outDom),e.delay.overIcon=setTimeout(function(){e.show() },200)}),e.dom.on("mouseenter",function(){window.clearTimeout(e.delay.outIcon),window.clearTimeout(e.delay.outDom),e.delay.overDom=setTimeout(function(){e.show()},200)}),$(e.op.target).on("mouseleave",function(){window.clearTimeout(e.delay.overIcon),window.clearTimeout(e.delay.overDom),e.delay.outIcon=setTimeout(function(){e.hide()},200)}),e.dom.on("mouseleave",function(){window.clearTimeout(e.delay.overIcon),window.clearTimeout(e.delay.overDom),e.delay.outIcon=setTimeout(function(){e.hide()},200) })}else if("none"==this.op.mode){var e=this;e.show()}},this.enableArrow=function(){if(this.op.arrow.r)var e=$("
",{"class":"c-tip-arrow"}).html("").appendTo(this.dom);else if(this.op.arrow.c)var e=$("
",{"class":"c-tip-arrow"}).html("").appendTo(this.dom);else var e=$("
",{"class":"c-tip-arrow"}).html("").appendTo(this.dom);this.arrow=e},this.enableCloseIcon=function(){var e=this,t=""; t="";var n=$("
",{"class":"c-tip-close"}).html(t).appendTo(this.dom).click(function(){e.hide()});this.close=n},this.setTitle=function(e){if(e.nodeType)var t=$("

",{"class":"c-tip-title"}).append(e).appendTo(this.dom);else var t=$("

",{"class":"c-tip-title"}).html(e).appendTo(this.dom);this.title=t},this.setContent=function(e){var t=$("
").html(e).appendTo(this.dom);this.content=t},this.setArrow=function(e){if(e&&e.offset>=0&&(this.op.arrow.offset=e.offset),this.op.arrow.has&&this.arrow)switch(this.op.align){case"left":this.arrow.css({left:this.op.arrow.offset+"px"}); break;case"right":this.arrow.css({right:this.op.arrow.offset+16+"px"})}},this.setOffset=function(e){switch(e&&(this.op.offset.x=e.x||0==e.x?e.x:this.op.offset.x,this.op.offset.y=e.y||0==e.y?e.y:this.op.offset.y),this.op.align){case"left":var t=$(this.getTarget()).offset();this.getDom().css({top:t.top+this.op.offset.y+"px",left:t.left-this.op.offset.x+"px"});break;case"right":var t=$(this.getTarget()).offset();this.getDom().css({top:t.top+this.op.offset.y+"px",left:t.left+this.op.offset.x+$(this.getTarget()).width()-this.getDom().width()+"px"}) }},this.autoOffset=function(){var e,t={w:this.dom.outerWidth(),h:this.dom.outerHeight()},n=$(this.getTarget()),i=n.offset(),o={w:n.outerWidth(),h:n.outerHeight()},r=$(window),a=r.scrollTop(),s={w:r.width(),h:r.height()},c={left:0,top:0},d={};s.h+a-o.h-i.top>t.h?(c.top=o.h+i.top+this.op.arrowSize/2,this.arrow&&this.arrow.removeClass("c-tip-arrow-down")):i.top-a>t.h?(c.top=i.top-t.h-this.op.arrowSize/2,this.arrow&&this.arrow.addClass("c-tip-arrow-down")):(c.top=o.h+i.top+this.op.arrowSize/2,this.arrow&&this.arrow.removeClass("c-tip-arrow-down")),e=i.left+o.w/2-this.op.arrow.offset-this.op.arrowSize/2,c.left=e,c.left>0&&c.left+t.w>s.w?(c.left=i.left+o.w/2-t.w+this.op.arrow.offset+this.op.arrowSize/2,d.right=this.op.arrow.offset+this.op.arrowSize,d.left="auto",c.left<0&&(c.left=e,d.left=this.op.arrow.offset,d.right="auto")):(d.left=this.op.arrow.offset,d.right="auto"),this.dom.css(c); var u=this.op.arrow.excursion&&this.op.arrow.excursion.x?this.op.arrow.excursion.x:0;d.left=this.op.arrow.offset+u,this.arrow&&this.arrow.css(d)},this.enable=function(){},this.disable=function(){},this.destroy=function(){},this.show=function(){this.visible||(this.onShow(),this.rendered||(bds.comm.tips.push(this),this.render(),this.rendered=!0),this.isAuto?this.autoOffset():(this.setOffset(),this.setArrow()),this.dom.css({"z-index":bds.comm.tipZIndex}),bds.comm.tipZIndex++,this.dom.css({display:"block"}),this.visible=!0) },this.hide=function(){this.visible&&(this.dom.css({display:"none"}),this.onHide(),this.visible=!1)},this.onShow=e.onShow||function(){},this.onHide=e.onHide||function(){},this.getTarget=function(){return this.op.target},this.getDom=function(){return this.dom},this.init()},bds.event.trigger("se.api_tip_ready"),$(document).mousedown(function(e){e=e||window.event;for(var t=e.target||e.srcElement;t&&t.tagName&&t!=document.body&&"html"!=t.tagName.toLowerCase()&&(!t.className||!t.className.indexOf||-1===t.className.indexOf("c-tip-con"));)t=t.parentNode; t&&t.className&&t.className.indexOf&&-1===t.className.indexOf("c-tip-con")&&$(bds.comm.tips).each(function(){this.op.uncontrolled||this.op.close&&this.hide()})});var sethfPos=sethfPos||0;!function(){function e(e){if(e){var t=e.parentNode;t&&(t.style.marginBottom="20px",t.style.marginTop="2px")}}var t="//www.baidu.com/",n=-1!=navigator.userAgent.indexOf("MSIE")&&!window.opera,i=(100*Math.random(),"百度一下,你就知道"),o="";if(window.fa=function(e){try{window.sidebar?window.sidebar.addPanel(i,t,""):window.opera&&window.print?(e.setAttribute("rel","sidebar"),e.setAttribute("href",t),e.setAttribute("title",i),e.click()):window.external.AddFavorite(t,i) }catch(n){}},n)try{var r=/se /gi.test(navigator.userAgent),a=/AppleWebKit/gi.test(navigator.userAgent)&&/theworld/gi.test(navigator.userAgent),s=/theworld/gi.test(navigator.userAgent),c=/360se/gi.test(navigator.userAgent),d=/360chrome/gi.test(navigator.userAgent),u=/greenbrowser/gi.test(navigator.userAgent),l=/qqbrowser/gi.test(navigator.userAgent),p=/tencenttraveler/gi.test(navigator.userAgent),h=/maxthon/gi.test(navigator.userAgent),f=/krbrowser/gi.test(navigator.userAgent),m=!1;try{m=+external.twGetVersion(external.twGetSecurityID(window)).replace(/\./g,"")>1013 }catch(g){}if(r||m||a||s||c||d||u||l||p||h||f){var v=document.getElementById(sethfPos?"set_f":"setf");v&&sethfPos&&(e(v),o="favorites")}else{var b=document.getElementById(sethfPos?"set_f":"setf");b&&sethfPos&&(e(b),o="home"),b.setAttribute("onClick","h(this)"),b.setAttribute("onmousedown","return ns_c({'fm':'behs','tab':'homepage','pos':0})"),b.href="/",b.target="_self",b.id="seth"}}catch(g){}else{var v=document.getElementById(sethfPos?"set_f":"setf");sethfPos&&(e(v),o="favorites")}o&&sethfPos&&ns_c({fm:"sethf_show",tab:o}) }(),bds.se.loginCallbackFunc=null,bds.se.login=function(){var e="",t=!1,n="",i=function(e){var t=e||bds.comm.user;t&&$("#lb").replaceWith(''+escapeHTML(bds.comm.username)+'')},o=function(i){t?(bds.se.passv3.setSubpro(e),bds.se.passv3.setMakeText(n),bds.se.loginCallbackFunc=i||function(){window.document.location.reload(!0)},bds.se.passv3.show()):$.getScript(location.protocol+"//passport.baidu.com/passApi/js/uni_login_wrapper.js?cdnversion="+(new Date).getTime(),function(){initPassV3(),t=!0,bds.se.passv3.setSubpro(e),bds.se.passv3.setMakeText(n),bds.se.loginCallbackFunc=i||function(){window.document.location.reload(!0) },bds.se.passv3.show()})},r=function(e){if(bds.comm){bds.comm.user=e,bds.comm.username=e,window.bdUser=e,bds.se.passv3.hide(),bds.se.loginCallbackFunc.call(window,1,e);for(var t=0;t6?t+1:t;window.console.log("无畏是青春的态度,热AI是时代的脉搏。\n各位新同学正以无畏的姿态奔赴通用人工智能的星辰大海!\n作为引领AI时代浪潮的主力军,广阔舞台,待你大展身手。\n乘风破浪,勇往直前,未来百度将与你一起,创造无限可能!\n"),window.console.log("%c百度"+i+"校园招聘简历投递:https://talent.baidu.com/jobs/list","color:red")}}catch(o){}}();var bds=bds||{};bds.se=bds.se||{},bds.se.tool=bds.se.tool||{},bds.comm.host={bfe:"//www.baidu.com/tools",favo:bds.util.domain&&bds.util.domain.get?bds.util.domain.get("http://i.baidu.com"):"http://i.baidu.com",share:bds.util.domain&&bds.util.domain.get?bds.util.domain.get("http://bdimg.share.baidu.com/static/api/js/custom/resultshare.js"):"http://bdimg.share.baidu.com/static/api/js/custom/resultshare.js",report:"http://jubao.baidu.com",koubei:"http://koubei.baidu.com"}; var feedbackSelector=".c-tools, .cosc-feedback",feedbackIconSelector=".c-icon, .cos-icon";bds.se.tool=function(item){this.init=function(){this.render()},this.render=function(){var ops=eval("("+getfeedbackData(item)+")"),toolsDom=$("
",{"class":"c-tip-menu"}),toolsList=$("