var BM=BM||{};BM.config={B:{timeout:1e3,delay:750,maxUrlLength:300,sendlimit:20},S:{distance:20},N:{maxUrlLength:300},E:{buffer:30,timeout:5e3,maxUrlLength:300},C:{distance:50}},BM=BM||{},BM.rules={".b_scopebar":[-1,-1,0],".b_scopebar ul":[-1,-1,1],"#b_results":[-1,-1,1],".b_hList":[-1,-1,1],".b_flex":[-1,-1,1],".b_flex span":[-1,-1,0],"img,div[data-src]":[-1,-1,0],"#root":[-1,-1,1],".suggestion":[-1,-1,0],"#topResult":[-1,-1,0],".groupHeader":[-1,-1,0]},function(n){function bt(){var n,h;if(!document.querySelector||!document.querySelectorAll){nt({FN:"init",S:"QuerySelector"});return}y={},e=[],l=document.documentElement,b=document.body,it=1,ft=0,et=0,o=[],s=0,f=!1;var c="innerWidth"in window?window.innerWidth:l.clientWidth,w="innerHeight"in window?window.innerHeight:l.clientHeight,k=window.pageXOffset||l.scrollLeft,p=window.pageYOffset||l.scrollTop;wt=a(window,"devicePixelRatio")?window.devicePixelRatio:-1,n={t:r(),x:k,y:p,w:c,h:w,dw:b.clientWidth,dh:b.clientHeight,d:wt},h=Math.floor(Math.random()*1e4).toString(36),i={P:{C:0,N:0,I:h,S:"T",M:t,T:0,K:t},V:[n],L:[]},v={V:tt(n),L:[]},ii(),sj_be(window,"beforeunload",u,!1),sj_evt.bind("unload",u),sj_evt.bind("BMU",u)}function yt(n,i){var u,f,r;if(n.querySelectorAll)for(u in vt){var e=vt[u],s=e[0],o=e[1];for(u+=!e[2]?t:" >*",f=n.querySelectorAll(u),r=0;rs&&(ot(),et=sb_st(ht,i),s=r)}function nt(n){var e={T:"CI.BoxModelError",FID:"CI",Name:lt,P:i&&"P"in i?p(i.P):t,TS:r()},u,f;for(u in n)e[u]=n[u];f=p(e),ct(f)}function ot(){s>0&&(sb_ct(et),s=0)}function ht(n){var u,t;if(!f){nt({FN:"send",S:o.join(h[1])});return}(it<=fi||n)&&(i.P.S=o.join(h[1]),i.P.M=ri(),u=r(),wi(),i.P.T=r(),i.P.N=it++,i.P.C+=r()-u,t=vi(i),i.P.C=0,ct(t),o=[],s=0)}function wi(){for(var e=k(),u=r(),t,i,n=0;nEvent.ClientInst<\/T>"+_G.IG+"<\/IG>"+i+"<\/TS>","]]]\]>")+"]]\]><\/D><\/E>",u=""+f+"<\/Events>"+i+"<\/STS><\/ClientInstRequest>",t=sj_gx();t.open("POST",r,!0),t.setRequestHeader("Content-Type","text/xml"),t.send(u)}sj_evt.fire("BM",n)}function p(n){var r=t,f,i;for(f in n)if(i=n[f],i!==t){var o=typeof i=="number",u='"',e=o||i.indexOf("{")===0?t:u;r+=u+f+u+":"+e+i+e+","}return"{"+(r.length>0?r.substr(0,r.length-1):t)+"}"}function ai(n){return n.tagName+(n.id?"#"+n.id:n.className?"."+n.className:t)}function vi(n){function v(n,i){function p(n){return n.replace(ei,encodeURIComponent)}var y=!0,o=[],f,u,e,c,s,l,a;if(i=i||1,!("_c"in n)||i<=1){for(f in n)if(u=n[f],c=f.charCodeAt(0)>=65&&f.charCodeAt(0)<=90,c&&o.push(f),f.indexOf("_")===0)continue;else typeof u=="number"?(e=parseInt(u).toString(36),o.push(e),b(e)):typeof u=="string"?(e=p(u),o.push(e),b(e)):u==null?o.push(t):typeof u=="object"&&(s=v(u,i+1,f),(s&&s.length>0||c)&&o.push(s),y=!1);y&&(n._c=!0)}return l=h[i],a=o.join(w+l+w),a}function b(n){n.length>2&&(n in g&&d(e,n)===-1?e.push(n):g[n]=1)}var tt=r(),g={},a={T:"CI.BoxModel",FID:"CI",Name:lt,P:t},f={},s,k,u,o,nt,c,l;for(u in n)u!=="P"&&(s=v(n[u]),s&&s.length>0&&(f[u]=s.split(w)));k=e.slice(ft).join(h[1]),ft=e.length,i.P.K=k;for(u in f){for(o=0;o=0&&(f[u][o]=w+c.toString(36));l=f[u].join(t),u in y&&y[u]===l||(a[u]=y[u]=l)}return i.P.C+=r()-tt,a.P=p(i.P),p(a)}function d(n,t){for(var i=0;i=0?t:r.k),u=n;try{if(n.offsetParent)do r.x+=n.offsetLeft,r.y+=n.offsetTop;while(n=n.offsetParent)}catch(e){r.x=null,r.y=null}while(u!==b&&(u=u.parentElement))r.z++;return r}function ti(n){try{if(a(n,"src")&&n.src.indexOf("data")!==0)return n.src?n.src:t}catch(i){}return t}function r(){return pt?kt(performance.now()):new Date-window.si_ST}function at(){return pt?kt(performance.now()+performance.timing.navigationStart):+new Date}function a(n,t){return typeof n[t]!="undefined"}function kt(n){return n<-1?-1:parseInt(n)}function ii(){var n=r();f=!0,yt(document,n),rt("load"),g("T",!1,ci),i.P.C+=r()-n}function u(){sj_ue(window,"beforeunload",u),sj_evt.unbind("unload",u),sj_evt.unbind("BMR",u),g("U",!0),f=!1,rt("unload")}function rt(n){for(var t=0;tf*f}function s(i){for(var e,f=t.length,s=n.viewport(),u,r=0;r1){var u=r[1]?"visible":"hidden";i[t].push({t:n.time(),s:u,o:"cortana"}),n.snapshot(t,!1)}}function e(){var u=document.documentElement,o=n.viewport(),e="innerWidth"in window?window.innerWidth:u.clientWidth,f="innerHeight"in window?window.innerHeight:u.clientHeight;i.V.push(n.delta(o,{t:n.time(),w:e,h:f})),i[t].push({t:n.time(),s:"peekexpand",o:"cortana"}),n.snapshot(t,!1)}function s(){}function o(){sj_ue(document,"visibilitychange",u),sj_ue(window,"beforeunload",r),sj_evt.unbind("unload",r),sj_evt.unbind("peekexpand",e),sj_evt.unbind("BMU",r)}var t="PS",f="visibilityState",i;n.register({id:t,check:h,load:c,compute:s,unload:o})}(BM),function(n){function h(){return typeof window.MutationObserver!="undefined"}function c(n){s=n;var t=new MutationObserver(o);t&&t.observe(document.body,{childList:!0,subtree:!0})}function o(f){var h,c,e,s,o,a,l;if(t!==null){for(h=[],c=n.time(),e=0;e0&&(i=h,n.snapshot(r))}}function u(n){var r=n.offsetWidth>=20||n.offsetHeight>=20,t=i.indexOf(n.parentNode)>=0;return r&&!t}function f(){}function e(){t&&t.disconnect(),t=null,i=[]}var r="M",i=[],t,s;n.register({id:r,check:h,load:c,compute:f,unload:e})}(BM),function(n){function g(){return!0}function d(n){n[u]=[],l=n}function k(i){for(var tt=n.viewport().w,g=n.layout(),b,d,nt,v=0;v=0?tt-l-c.offsetWidth:l,l>=0&&!e(f.x,l)&&(p=f.k.length===0?s(c):p,i[u].push({t:n.time(),l:f.i,e:"X",v:Math.abs(f.x-l),m:p})),k>=0&&!e(f.y,k)&&(p=f.k.length===0?s(c):p,i[u].push({t:n.time(),l:f.i,e:"Y",v:Math.abs(f.y-k),m:p})),c.tagName!=="IMG"||!w||f.i in t||(b=n.exists(c,b)?c[b]:!0,d=n.exists(c,a)?c[a]>1:!0,b?d||(t[f.i]={_e:c,_s:w,_d:!0,_b:!1},h(v,w)):(t[f.i]={_e:c,_s:w,_d:!1,_b:!0},o(c,!0))),c.tagName!=="DIV"||!c.hasAttribute("data-src")||f.i in t||(w=c.getAttribute("data-src"),nt=c.style.backgroundImage,nt||(t[f.i]={_e:c,_s:w,_d:!1,_b:!1},o(c,!1))))}}function o(n,t){t&&(sj_be(n,"load",r),sj_be(n,"error",r)),i||(i=sb_st(c,nt))}function r(n){var i=window.event||n,t=sj_et(n);return c(i.type,t)}function c(u,f){var c=0,e,o,s;for(e in t)if(!t[e]._d&&(!f||t[e]._e===f)&&(o=t[e]._e,s=o.tagName==="IMG"?!o[w]||u&&u==="error":!o.style.backgroundImage,t[e]._b&&(sj_ue(o,"load",r),sj_ue(o,"error",r)),s&&(h(e,t[e]._s),c++),t[e]._d=!0,f))return;c>0&&n.snapshot("E"),i=0}function h(t,i){l[u].push({t:n.time(),l:t,e:"S",v:404,m:i.substr(0,p)})}function s(n){var t=n.querySelector("a");return t&&t.href?t.href.substr(0,p):y}function e(n,t){return n>=t-v&&n<=t+v}function b(){var u,n;for(u in t)n=t[u],n._b&&!n._d&&(sj_ue(n._e,"load",r),sj_ue(n._e,"error",r));i&&(sb_ct(i),i=0),t={}}var u="E",y="",w="complete",a="naturalWidth",f=n.config[u],v=f.buffer,p=f.maxUrlLength,nt=f.timeout,i=0,t={},l;n.register({id:u,check:g,load:d,compute:k,unload:b})}(BM),function(n){function p(){return _w.performance&&performance.now&&performance.getEntries}function v(n){n[t]=[],f[t]=[]}function c(i){var e,l,k,y,p,d;if(t in f){var ut=i[t],h=f[t],ot=performance.timing,it=performance.getEntries();for(e=0;e=0&&(o=c.startTime);var rt=u(c.startTime-o),ft=u(c.duration),tt=null,g=n.layout();for(p=0;p0?t.substr(0,h):n.substr(0,h),f.length>0&&(c=f.indexOf("event."))>0&&(l=f.indexOf("&data"))>0?(t=f.substr(c,l-c).replace("event.",e),t==="clientinst"&&(o=y.exec(f.replace(/%22/g,'"')),o!=null&&o.length>1&&(t=o[1]))):t.indexOf("rms/")===0&&(u=t.split(i))&&u.length>1?t=u[1].replace("rms%20answers%20",e).replace(".source",e):(u=t.split(i))&&u.length>=2&&(t=u[u.length-2]+i+u[u.length-1]),[s,t,a]}function u(n){return n<-1?-1:parseInt(n)}function l(){}var t="N",b="B",s=0,o=0,w=0,h=n.config[t].maxUrlLength,r=document.createElement("A"),e="",i="/",y=/"name":"(.*?)"/,f={};n.register({id:t,check:p,load:v,compute:c,unload:l})}(BM),function(n){function v(){return!0}function y(n){n[t]=[],a=n,u=document.documentElement,i=[],r={},e(sj_be,f)}function e(n,t){for(var r,i=0;is*s}function c(u){var s=i.length,o,e,f;if(s>0){for(o=(t in r)?r[t]:null,e=0;e