0 1 min 2 mths


Yahoo Search – Web Search4,a=(15&e)>6,T=63&o,isNaN(e)?a=T=64:isNaN(o)&&(T=64),c=c+L.ULT.BASE64_STR.charAt(t)+L.ULT.BASE64_STR.charAt(n)+L.ULT.BASE64_STR.charAt(a)+L.ULT.BASE64_STR.charAt(T),a=T=o=””,ie.maxLen?”
“:””,r=a.length+E.length>e.maxLen?”
“:””,l=t.length+d.length+a.length+e.sepThreshold>e.maxLen?””:’ • ‘,c=”+a+””,p=b&&1vs{3}{4}’,league_l_tmpl:'{0}{2} – {3}{5} {6} {7}’,league_f_tmpl:'{0}{2} – {3}{5} {6}’,liveIconClass:”sa-ico-live”,maxLen:60,sepThreshold:10}}function Rt(t){var e,s,i,n,a,o,r,l=this.config,c=t.d,t=t.fd;c&&”weather”==c.subdn&&t&&!t.subtitle&&(c=t.img_url||””,e=t.condition,s=t.degree,i=t.high_temp&&”• H:”+t.high_temp+”°”,n=t.low_temp&&”L:”+t.low_temp+”°”,a=t.loc&&”• “+t.loc,o=t.warning?”:””,r=this.app.format,l.enableHL?t.title=r(l.tmpl_hl,[c,s,o,e,i,n,a]):t.title=r(l.tmpl,[c,s,e,a]))}function At(){this.config={enableHL:!1,tmpl:’{1} {2} {3}’,tmpl_hl:’{1} {2} {3} {4} {5} {6}’}}function Lt(t,e){var s,i=t.li,n=this.config,a=this.createElem,o=n.ctn,r=a(n.placeholder,”span”),e=e.fd&&e.fd.imageUrl,l=i;o&&(l=a(o)),e&&((s=a(n.thumbnail,”img”)).src=e,s.className+=” sa-hidden”,s.onload=function(t){k.removeClass(s,”sa-hidden”),n.showIconOnImgLoad||(r.className+=” sa-hidden”)},t.img=l.appendChild(s),n.richClass)&&(i.className+=” “+n.richClass),l.appendChild(r),l!==i&&i.appendChild(l)}function Ft(){this.config={thumbnail:{css:”sa-img-left”},placeholder:{css:”sa-img-icon”}}}function Nt(t){var e=this,s=e.config,i=(f=e.app).view,n=i.elems,a=n.sbInput,o=0,r=0,l=s.offset,c=s.delta,p=f.getElemStyleValue;if(a.value.length>s.minQuery&&t&&t.r&&t.r.length&&(o=t.sqpos)){for(var h=””,d=t.r,u=0;uh.length?d[u].k:h;var f=f.config,m=e.createElem,g=m(f.sa,”div”),y=m(f.saList,”ul”),v=(f.boldTag,[h,t.q.substr(0,o)]);for(g.className+=” “+s.css,g.style.position=”absolute”,g.style.left=”-9999px”,n.saTray.appendChild(g).appendChild(y),u=0;ua.clientWidth-c){o=0;break}}else r=E+l}g.outerHTML=””}e.sqpos=o,e.toleft=r}function Ot(t){var e=this.sqpos;e&&(t.k=t.k.substr(e),t.q=t.q.substr(e))}function Bt(t){var t=t.parentNode,e=this,s=e.sqpos,i=e.toleft,n=e.config,a=e.app.view.elems.sbForm,o=n.formCSS;s?(t.className+=” “+n.css,t.style.left=i+”px”,t.style.position=”absolute”,k.addClass(a,o)):Ht.call(e)}function Ht(){k.removeClass(this.app.view.elems.sbForm,this.config.formCSS)}function Pt(){this.config={css:”sa-subtray”,formCSS:”sf-subtray”,offset:5,delta:0,minQuery:0}}function qt(t,e){var s=e.m,i=this.idxs;””!==e.q||s in i||(i[s]=t.idx)}function Mt(t){var e,s=this,i=s.config,n=s.idxs,a=i.grps,o=s.createElem;for(e in n){var r,l=a[“m”+e],c=(p=a[e])&&p.text||l&&l.text,p=p&&p.css||l&&l.css;c&&((l=o(i.hdr,”div”)).appendChild(o(i.icon,”span”)),r=l.appendChild(o(i.title,”span”)),l.className+=p?” “+p:””,r.textContent=c,t.insertBefore(l,s.app.view.items[n[e]].li))}s.idxs={}}function Ut(){this.config={hdr:{css:”sa-grp-hdr”},icon:{css:”sa-grp-hdr-icon”},title:{css:”sa-grp-hdr-title”},grps:{m13:{text:”Recent Searches”,css:”history”},m9:{text:”Trending Now”,css:”trending”}}}}function Dt(){this.selectedIndex=-1}function Qt(){function o(){var t=l.selectedIndex;0<=t&&h[t]&&(k.removeClass(h[t].li,c.css),l.app.notify(y))}function r(t){k.addClass(t,c.css),l.app.notify(e)}var l=this,c=l.config,p=l.app.view,h=p.items,d=(t=p.elems).sbInput,n=t.saTray,t=k.ieVer,u=!1;k.ae(n,"mouseover",function(t){for(var e=t.target||t.srcElement;e&&e!=n;){var s=k.get(e,"pos"),i=s?p.items[s]:{};if(i&&e===i.li){o(),l.selectedIndex=s,r(e);break}e=e.parentNode}}),k.ae(n,"mouseout",function(t){o()}),k.ae(d,"keydown",function(t){var e=t.keyCode,s=l.selectedIndex;switch(e){case 38:case 40:if(h.length){o();for(var i,n=h.length;40==e?s<0||n-1<=s?s=0:s++:s<=0?s=n-1:s--,!(i=h[s]).li.parentNode;);l.selectedIndex=s,p.assistItem=i,d.value=i.data.k,r(i.li),k.stopPropagation(t),u=!0}break;case 9:case 39:if(9!=e||!c.useDefaultTab){var a=d.value.length;if(d.selectionEnd==a&&d.selectionStart==a){if(!h.length)return;(0<=s||d.value!==h[0].data.k)&&(d.value=(0<=s?h[s]:h[0]).data.k,p.show(),k.stopPropagation(t))}else 9==e&&(d.selectionEnd=d.selectionStart=d.value.length,k.stopPropagation(t))}}}),t&&(8===t&&k.ae(d,"propertychange",function(t){"value"===t.propertyName&&!0!==u&&p.show(),u=!1}),9===t)&&(l.onSelctionChange=function(t){S.activeElement===d&&p.show()})}function Vt(){var t=k.ieVer;t&&9===t&&!this.ie9_attached&&(k.ae(S,"selectionchange",this.onSelctionChange),this.ie9_attached=!0)}function Gt(){var t=k.ieVer;t&&9===t&&this.ie9_attached&&(k.de(S,"selectionchange",this.onSelctionChange),this.ie9_attached=!1)}function zt(){this.config={css:"highlight",useDefaultTab:!1}}function Yt(){var s=this,i=this.app.view;k.ae(S,"keydown",function(t){var e=S.activeElement;e&&e.tagName&&("input"===e.tagName.toLowerCase()||"textarea"===e.tagName.toLowerCase())||(e=i.elems.sbInput,27===t.keyCode&&e.value.length?(k.select(e,0,e.value.length),k.stopPropagation(t),i.show()):t.keyCode<=40||t.ctrlKey||t.metaKey||(s.config.emptyFirst?e.value="":(e.value=k.trim(e.value),""!==e.value&&(e.value+=" ")),k.setFocus(e)))})}function Kt(){}function Wt(t,e,s){var i,n=this.config,a=n.log,o=this.app,r=o.view.elems.sbInput,l=s.li,c=s.idx;e===s.edit&&13==s.data.m&&(e={query:s.data.k,action:"del",sa:1},s=o.config.shBE,k.merge(e,s.params),s=s.host+k.buildUrl(s.base,e),(i=new XMLHttpRequest).open("GET",s,!0),i.withCredentials=!0,i.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.placeholder||(i.onreadystatechange=function(){var t=i.status;(4==i.readyState&&200<=t&&t<300||304===t||1223===t)&&o.model.removeAt(c)}),i.send(null),n.placeholder&&((e=this.createElem(n.placeholder,"div")).innerHTML=n.placeholder.html,l.parentNode.replaceChild(e,l)),k.setFocus(r),t(),a)&&(a.pos=c+1,o.control.beacon("tapRmv",r,a))}function Zt(){this.config={placeholder:{css:"sa-sh-ph",html:'This search was removed Manage history’},log:{sec:”search”,slk:”clear history”,rspns:”upd”,t2:”search”,t4:”clear history”}}}function jt(){function t(t){t.keyCode&&27!==t.keyCode&&13!=t.keyCode||(k.stopPropagation(t),a.value=””,k.setFocus(a),i.show(),s.control.beacon(“tapClr”,o,e.config.log))}var e=this,s=e.app,i=s.view,n=i.elems,a=n.sbInput,o=n.sbClear;o&&(k.ae(o,”click”,t),k.ae(o,”keydown”,t))}function Xt(){this.config={log:{_r:2,actn:”clk”,pos:1,sec:”search”,slk:”clearsearch”,t1:”hdr”,t2:”search”,t3:”clear”,t4:”clearsearch”}}}function Jt(){this.config={css:{namespace:”sa-feedback”},text:{report:”Report inappropriate predictions”,which:”Which predictions were inappropriate?”,predict:”The predictions selected above are:”,send:”Send”,cancel:”Cancel”,reasons:[{VULGAR:”Sexually explicit, vulgar or profane”},{CHILD:”Harmful to children”},{HATE:”Hateful towards groups”},{SENSITIVE:”Sensitive or disparaging for individuals”},{SUICIDE:”Promoting suicide or self-harm”},{TERROR:”Promoting terrorism or violent extremism”},{VIOLENCE:”Violent or gory”},{HARMFUL:”About dangerous or harmful activities”},{OTHER:”Other”}],legal:’Go to the Help page for the Yahoo Search auto-complete policy.’,thank:”Thank you for your feedback”,improve:”Your responses help to improve the search experience.”,done:”Done”},log:{sec:”search”,slk:”assist-report”,rspns:”upd”,ltxt:!0}}}r.SA=(i=[],t.prototype={jsonp:function(t){var e=S.getElementsByTagName(“head”)[0],s=S.createElement(“script”);k.set(s,”type”,”text/javascript”),k.set(s,”src”,t),e.appendChild(s),k.ae(s,”load”,function(){e.removeChild(s)})},xhr:function(t,e){var s=new XMLHttpRequest;s.open(“GET”,t),s.setRequestHeader(“Content-type”,”application/x-www-form-urlencoded”),s.onreadystatechange=function(){var t=s.status;(4==s.readyState&&200<=t&&t<300||304===t||1223===t)&&e(JSON.parse(s.response))},s.send(null)},createElem:D,getElemStyleValue:function(t,e){return C.getComputedStyle?C.getComputedStyle(t).getPropertyValue(e):t.currentStyle?(e=e.replace(/-([a-z]){1}/g,function(t,e){return e.toUpperCase()}),t.currentStyle[e]):""},format:function(t,s){if(t)return t.replace(/{(d+)}/g,function(t,e){return s&&void 0!==s[e]?s[e]:""}).trim()},on:function(t,e,s){var i;t&&e&&((i=this.listeners)[t]||(i[t]=[]),i[t].push({thisArg:s||this,fn:e}))},notify:function(t,s){var e=this.listeners;if(!e[t])return!1;e[t].forEach(function(t){var e=t.thisArg;(t=t.fn)&&t.apply&&1!=e.config.disable&&t.apply(e,s||[])})},init:function(t){var e,s,i,n,a=this,o=a.config,r=o.plugins={};for(n in a.view=e=new c.viewClass,a.model=s=new c.modelClass,a.control=i=new c.controlClass,h){var l=new h[n];r[n]=l.config=l.config||{},l.createElem=D,l.init(a)}"object"==typeof t&&k.merge(o,t),a.ready=e.init(a)&&s.init(a)&&i.init(a)}},n=t,c={ver:"assistjs-v1.0.219-searchfe_desktop_feedback",apps:i,plugs:h,add:function(t,e){h[t]=e},msg:{BEFORE_GET_ASSIST:l,BEFORE_DISPLAY_DATA:s,BEFORE_INIT_VIEW:d,AFTER_INIT_VIEW:u,BEFORE_PARSE_DATA:T,BEFORE_UPDATE_ASSIST:w,AFTER_UPDATE_LIST:I,AFTER_CREATE_ITEM:f,BEFORE_SHOW_SA:a,AFTER_RESET_VIEW:o,AFTER_HIDE_VIEW:m,AFTER_INIT_CONTROLLER:x,CLICK_ASSIST:R,BEFORE_QUERY_ASSIST:A,BEFORE_KEY_SUBMIT:L,BEFORE_BUTTON_SUBMIT:F,BEFORE_SUBMIT_QUERY:N,BEFORE_SB_FOCUS:O,AFTER_SB_FOCUS:B,BEFORE_SB_BLUR:H,AFTER_SB_BLUR:P,BEFORE_BEACON:g,AFTER_SET_YLC:q,AFTER_RESET_CONTROLLER:M,AFTER_ITEM_HIGHLIGHT:e,AFTER_ITEM_RESET_HIGHLIGHT:y},markers:{GOSSIP_MARKER_SEARCH_HISTORY:13,GOSSIP_MARKER_TRENDING:v,GOSSIP_MARKER_PEOPLE_ALSO_SEARCH_FOR:U,GOSSIP_MARKER_RELATED_STOCKS:73},init:function(t){var e,s=k.ieVer;return!(s&&s<8||((e=new n(this.initConfig?this.initConfig():{})).init(t),!e.ready))&&(e.config.customEvent&&8===s&&(S.documentElement.assistSelection=null),e.idx=i.length,i.push(e),void(!this.latency&&C.performance&&"function"==typeof C.performance.now&&(this.latency=C.performance.now())))}}),c.controlClass=(b="ylcAssist",E="ylcKey",_="ylcBtn",Q.prototype={init:function(s){function n(t){u.pqstr="",u.pqstrl=0,u.pos=0;var e=c.sbForm.fr2,s=c.sbInput.value,i=o.data;switch(u.query=encodeURIComponent(s),u.qstrl=s.length,u.t_stmp=k.ts(),u.gprid=i.l&&i.l.gprid?i.l.gprid:"",u.n_sugg=i.r?i.r.length:0,e&&(u.fr2=e.value),r.assistItem&&(u.pos=r.assistItem.idx+1),t){case b:var n=r.lastInput;k.merge(u,l[b]),u.pqstr=n,u.pqstrl=n.length;break;case E:k.merge(u,l[E]);break;default:k.merge(u,l[_])}y(q),m.lastActn=u.t4}function a(t){var e=c.sbInput.value;!(e=c.mustHaveInput?c.mustHaveInput.value:e)||""===e||void 0!==e.trim&&""===e.trim()||(y(N),t?k.fireEvent(p,t,{data:r.assistItem}):h.submit(),setTimeout(function(){v()},400))}var o,r,l,c,p,h,t,d,u,e,i,f,m=this,g=k.ieVer,y=function(t,e){s.notify(t,e)},v=function(){p.blur(),r.reset(),y(M)};return m.model=o=s.model,m.view=r=s.view,m.config=l=s.config,m.customEvent=d=l.customEvent||{},m.lastActn="",m.ylc=u={},k.merge(u,l.ylc),c=r.elems,p=c.sbInput,h=c.sbForm,t=c.sbSubmit,(!g||9<=g)&&k.ae(p,"input",function(){r.show()}),k.ae(p,"focus",function(t){y(O),l.sbScrollTop&&(S.body.scrollTop=0),y(B)}),k.ae(p,"blur",function(t){t.relatedTarget&&h.contains&&h.contains(t.relatedTarget)||(y(H),y(P))}),k.ae(p,"click",function(){r.triggered||r.show()}),k.ae(p,"keydown",function(t){switch(m.lastActn="key_"+t.keyCode,t.keyCode){case 13:t.preventDefault(),y(L),n(E),a(d.customKeyBoard);break;case 27:p.blur(),r.hide(),k.stopPropagation(t)}}),t?k.ae(t,"click",function(t){t.preventDefault(),y(F),n(_),a(d.customBtn)}):k.ae(h,"submit",function(){y(F),n(_),y(N),setTimeout(function(){v()},400)}),"ontouchstart"in C&&(f=function(t,e){return(/touch/.test(t.type)?(t.originalEvent||t).changedTouches[0]:t)["page"+e]},k.ae(S,"touchstart",function(t){r.shown&&(e=f(t,"X"),i=f(t,"Y"))}),k.ae(S,"touchend",function(t){r.shown&&(5<=Math.abs(f(t,"X")-e)||5<=Math.abs(f(t,"Y")-i))&&t.preventDefault()})),k.ae(S,"click",function(t){if(r.shown){for(var e=t.target||t.srcElement,s=!1;e;){if(e===h||e===c.saTray)return;var i=(i=k.get(e,"pos"))?r.items[i]:{};if(y(R,[function(){s=!0},e,i]),s)return;if(e===i.li)return p.value=i.data.k,r.assistItem=i,y(A),n(b),void a(d.customSelection);if((e=e.parentNode)===S)break}l.hideOnOutsideClick&&r.hide()}}),y(x),!0},beacon:function(t,e,s){var i,n,a,o;s&&(i=(o=this).customEvent,n=o.config,o.model.app.notify(g,[s]),a="sa_rt"in s?{rt:s.sa_rt,q:s.cqry,la:o.lastActn,n:s.nitems,s:s._S}:{},o.lastActn=s.t4,i[t]?k.fireEvent(e,i[t],s):r.ULT?(e=(o=r.ULT).BEACON,n.saBeacon&&(o.BEACON=location.protocol+"//"+k.buildUrl(n.saBeacon,a)),o.beacon_click(s),o.BEACON=e):"function"==typeof r.SaBeacon&&r.SaBeacon(s))}},Q),c.modelClass=(V.prototype={init:function(t){var e=this;return e.app=t,e.view=t.view,e.config=t.config,e.cbIdx=0,e.data={},!0},fetch:function(){var e=this,t=e.app,s="sacb"+e.cbIdx++,i={pq:(i=e.view).origQuery,command:i.elems.sbInput.value,t_stmp:k.ts()},n=e.config.saBE,a=t.cb;if(e.config.xhr||(i.callback="YAHOO.SA.apps["+t.idx+"].cb."+s),k.merge(i,n.params),!e.config.xhr){for(var o in a)a.hasOwnProperty(o)&&(a[o]=function(){});a[s]=function(t){e.read(t||{}),a[s]=function(){}}}t.notify(l,[i]),e.getAssist(n,i)},getAssistFromUrl:function(t,e){var s=this;s.config.xhr?s.app.xhr(t,function(t){e.command==(t=t||{}).q&&s.read(t||{})}):s.app.jsonp(t)},getAssist:function(t,e){this.getAssistFromUrl(t.host+k.buildUrl(t.base,e),e)},read:function(t){this.data=t,this.display()},removeAt:function(t){this.data.r.splice(t,1),this.display()},removeItems:function(t){for(var e=this.data,s=e.r.length-1;0<=s;s--)e.r[s].m==t&&e.r.splice(s,1);this.display()},display:function(){var t=this.data;this.app.notify(s,[t]),this.view.dropdown(t)}},V),c.viewClass=(G.prototype={init:function(t){var e,s,i,n,a,o,r=this,l=(r.app=t,r.model=t.model,r.config=e=t.config,r.elems=s={},r.items=[],r.assistItem=null,t.notify(d),e.elems);for(o in l)s[o]||(s[o]=S.getElementById(l[o]));return i=s.sbInput,a=s.saTray,!!((n=s.sbForm)&&i&&a)&&(r.origQuery=r.lastInput=i.value,k.set(i,"role","combobox"),k.set(i,"aria-autocomplete","both"),k.set(i,"aria-expanded","false"),r.origAction=n.action,(!(a=i.autofocus)&&e.autofocus||a&&i.value.length)&&k.setFocus(i),t.notify(u),k.ae(C,"load",function(){S.body.dir&&"rtl"==S.body.dir&&(e.saAria.style.left="",e.saAria.style.right="-9999px"),s.saAria=S.body.appendChild(t.createElem(e.saAria,"div"))}),!0)},dropdown:function(t){var e=this,s=e.config,i=e.app,n=t&&t.r?t.r.length:0,a=S.body,o=e.elems,r=o.sbInput,l=o.saAria,c=o.saTray,p=((o=o.sbForm)||{}).parentElement,h=e.app.createElem,d=s.noQueryClass,u=s.typingClass,f=s.noResultClass,m=h(s.sa,"div"),g=h(s.saList,"ul");if(k.addClass([a,p],u),""==t.q?s.addNoQueryClsToBody?k.addClass(a,d):k.addClass(c,d):k.removeClass([c,a],d),e.shown=!0,e.clearAssist(),n){m.appendChild(g),i.notify(T,[t]);for(var y=0;y

  • Source