var BM=BM||{};BM.config={B:{timeout:1e3,delay:750,maxUrlLength:300,sendlimit:20},V:{distance:20},N:{maxUrlLength:300},E:{buffer:30,timeout:5e3,maxUrlLength:300},C:{distance:50}},function(n){function ut(){if(!document.querySelector||!document.querySelectorAll){a({FN:"init",S:"QuerySelector"});return}w={};e=[];it=1;tt=0;nt=0;o=[];s=0;h=!1;var n=Math.floor(Math.random()*1e4).toString(36);t={P:{C:0,N:0,I:n,S:oi,M:i,T:0,K:i,F:0}};dt()}function yt(n,t){var r={};for(var i in n)i.indexOf("_")!==0&&(i in t&&(n[i]!==t[i]||i==="i")?(r[i]=t[i],n[i]=t[i]):r[i]=null);return r}function pt(n){var i={};for(var t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i}function b(n,t,i){if(!h){a({FN:"snapshot",S:n});return}i=i||ri;t=t||!1;var r=y()+i;k(o,n)===-1&&o.push(n);t?(ft(),et(t)):r>s&&(ft(),nt=sb_st(et,i),s=r)}function a(n){var f={T:"CI.BoxModelError",FID:"CI",Name:lt,SV:at,P:t&&"P"in t?v(t.P):i,TS:r(),ST:l},u,e;for(u in n)f[u]=n[u];e=v(f);ot(e)}function ft(){s>0&&(sb_ct(nt),s=0)}function et(n){var i,u;if(!h){a({FN:"send",S:o.join(c[1])});return}(it<=fi||n)&&(t.P.S=o.join(c[1]),t.P.F=n?1:0,t.P.M=gt(),i=r(),wt(),t.P.T=r(),t.P.N=it++,t.P.C+=r()-i,u=bt(t),t.P.C=0,ot(u),o=[],s=0)}function wt(){h&&d("compute")}function ot(n){if(st(window,"Log2")&&Log2.LogEvent&&JSON)Log2.LogEvent("ClientInst",JSON.parse(n),null,null,null,null,null,null);else{var i=y(),r="Event.ClientInst<\/T>"+_G.IG+"<\/IG>"+i+"<\/TS>","]]]\]>")+"]]\]><\/D><\/E>",u=""+r+"<\/Events>"+i+"<\/STS><\/ClientInstRequest>",t=sj_gx();t.open("POST","/fd/ls/lsp.aspx",!0);t.setRequestHeader("Content-Type","text/xml");t.send(u)}sj_evt.fire("BM",n)}function v(n){var r=i,u,t;for(u in n)if(t=n[u],t!==i){var o=typeof t=="number",f='"',e=o||t.indexOf("{")===0?i:f;r+=f+u+f+":"+e+t+e+","}return"{"+(r.length>0?r.substr(0,r.length-1):i)+"}"}function bt(n){function y(n,t){function v(n){return n.replace(ei,encodeURIComponent)}var h=!0,f=[],u,r,e,s,o,l,a;if(t=t||1,!("_c"in n)||t<=1){for(u in n)if(r=n[u],s=u.charCodeAt(0)>=65&&u.charCodeAt(0)<=90,s&&f.push(u),u.indexOf("_")===0)continue;else typeof r=="number"?(e=parseInt(r).toString(36),f.push(e),b(e)):typeof r=="string"?(e=v(r),f.push(e),b(e)):r==null?f.push(i):typeof r=="object"&&(o=y(r,t+1,u),(o&&o.length>0||s)&&f.push(o),h=!1);h&&(n._c=!0)}return l=c[t],a=f.join(p+l+p),a}function b(n){n.length>2&&(n in d&&k(e,n)===-1?e.push(n):d[n]=1)}var it=r(),d={},h={T:"CI.BoxModel",FID:"CI",Name:lt,SV:at,P:i},f={},s,g,u,o,nt,l,a;for(u in n)u!=="P"&&(s=y(n[u]),s&&s.length>0&&(f[u]=s.split(p)));g=e.slice(tt).join(c[1]);tt=e.length;t.P.K=g;for(u in f){if(u!=="M")for(o=0;o=0&&(f[u][o]=p+l.toString(36));a=f[u].join(i);u in w&&w[u]===a||(h[u]=w[u]=a)}return t.P.C+=r()-it,h.P=v(t.P),v(h)}function k(n,t){for(var i=0;i0?e:-1;var ut="innerWidth"in window?window.innerWidth:r.clientWidth,ft="innerHeight"in window?window.innerHeight:r.clientHeight,et=window.pageXOffset||r.scrollLeft,ot=window.pageYOffset||r.scrollTop,st=s in document?document[s]:c;for(o=n.exists(window,"devicePixelRatio")?window.devicePixelRatio:-1,nt={t:n.time(),x:et,y:ot,w:ut,h:ft,dw:h.clientWidth,dh:h.clientHeight,d:o,s:e,v:st,e:c},k=n.dequeue("V"),k.push({t:nt.t,i:nt}),it=0;it1){if(f=r[1]?"visible":"hidden",r.length>2)switch(r[2]){case 0:f="apphidden";break;case 1:f="appvisible";break;case 2:f="webvisible"}e=n.clone(i[t]);e.t=n.time();e.v=f;e.e="cortana";u.push(e);n.snapshot(t,f==="hidden")}}function p(){var f=n.clone(i[t]);f.t=n.time();f.w="innerWidth"in window?window.innerWidth:r.clientWidth;f.h="innerHeight"in window?window.innerHeight:r.clientHeight;f.v="peekexpand";f.e="cortana";u.push(f);n.snapshot(t)}function w(n,t){var i=n.x-t.x,r=n.y-t.y;return Math.sqrt(i*i+r*r)}function g(r){for(var f,o,s=u.length,e=0;eit)&&(e===0?n.metric(1,f.t):l+=w(f,o),r[t].push(n.delta(i[t],f)),o=f);n.metric(8,parseInt(l));u=[]}function nt(){sj_ue(window,"scroll",a);sj_ue(window,"resize",v);sj_ue(window,"pageshow",f);sj_ue(window,"pagehide",f);s in document&&(sj_ue(document,"visibilitychange",f),sj_evt.unbind("visibility",y),sj_evt.unbind("peekexpand",p));u=[]}var t="V",o,e,h,tt="",c="default",s="visibilityState",i,u=[],it=n.config[t].distance,r,rt,l,ut=n.extend({id:t,load:b,compute:g,unload:nt});ut&&(n.viewport=k)}(BM),function(n){function v(r){r[t]=[];f=r;l=document.body;i={};i[t]=[];u=n.dequeue("L");o(document,n.time());u=[]}function y(){return i[t]}function o(n,t){var i,f,u;if(n.querySelectorAll)for(i in a){var e=a[i],o=e[0],h=e[1];for(i+=e[2]?" >*":r,f=n.querySelectorAll(i),u=0;u0}function h(n){while(n&&n.hasAttribute&&n!==document.body){if(n.hasAttribute("data-bm"))return parseInt(n.getAttribute("data-bm"));n=n.parentElement}return null}function w(n,r,u,f){var h,e;if(n){for(h=i[t],e=0;e=0?(o=h(t),e.k=o&&o=0?r:e.k);s=t;try{if(t.offsetParent)do e.x+=t.offsetLeft,e.y+=t.offsetTop;while(t=t.offsetParent)}catch(a){e.x=null;e.y=null}while(s!==l&&(s=s.parentElement))e.z++;return e}function k(t){try{if(n.exists(t,"src")&&t.src.indexOf("data:")!==0)return t.src?t.src:r}catch(i){}return r}function d(){for(var r,f,o=i[t],s=n.time(),u=0;u0&&(r=h,n.snapshot(i))}}function s(n){var t=n.offsetWidth>=20||n.offsetHeight>=20,i=r.indexOf(n.parentNode)>=0;return t&&!i}function h(){}function c(){t&&t.disconnect();t=null;r=[]}var i="MT",r=[],t,u,l;n.register({id:i,check:f,load:e,compute:h,unload:c})}(BM),function(n){function k(){return!0}function d(n){n[r]=[];b=n;s=0;e=0}function g(i){for(var k,g,c,tt,rt=n.viewport().w,it=n.layout(),b=0;b=0?rt-p-u.offsetWidth:p,p>=0&&!v(o.x,p)&&(w=o.k.length===0?a(u):w,i[r].push({t:n.time(),l:o.i,e:"X",v:Math.abs(o.x-p),m:w}),e++),d>=0&&!v(o.y,d)&&(w=o.k.length===0?a(u):w,i[r].push({t:n.time(),l:o.i,e:"Y",v:Math.abs(o.y-d),m:w}),e++),u.tagName!=="IMG"||o.i in t||(c=nt(u),c&&(k=n.exists(u,k)?u[k]:!0,g=n.exists(u,y)?u[y]>0:!0,k?g||(t[o.i]={_e:u,_s:c,_d:!0,_b:!1},l(b,c)):(t[o.i]={_e:u,_s:c,_d:!1,_b:!0},h(u,!0)))),u.tagName!=="DIV"||!u.hasAttribute("data-src")||o.i in t||(c=u.getAttribute("data-src"),tt=u.style.backgroundImage,tt||(t[o.i]={_e:u,_s:c,_d:!1,_b:!1},h(u,!1))))}n.metric(5,e);n.metric(6,s)}function nt(t){try{if(n.exists(t,"src"))return t.src?t.src:f}catch(i){}return f}function h(n,t){t&&(sj_be(n,"load",i),sj_be(n,"error",i));u||(u=sb_st(c,rt))}function i(n){var t=window.event||n,i=sj_et(n);return c(t.type,i)}function c(r,f){var s=0,e,o,h;for(e in t)if(!t[e]._d&&(!f||t[e]._e===f)&&(o=t[e]._e,h=o.tagName==="IMG"?!o[it]||r&&r==="error":!o.style.backgroundImage,t[e]._b&&(sj_ue(o,"load",i),sj_ue(o,"error",i)),h&&(l(e,t[e]._s),s++),t[e]._d=!0,f))return;s>0&&n.snapshot("E");u=0}function l(t,i){b[r].push({t:n.time(),l:t,e:"S",v:404,m:i.substr(0,w)});s++}function a(n){var t=n.querySelector("a");return t&&t.href?t.href.substr(0,w):f}function v(n,t){return n>=t-p&&n<=t+p}function tt(){var r,n;for(r in t)n=t[r],n._b&&!n._d&&(sj_ue(n._e,"load",i),sj_ue(n._e,"error",i));u&&(sb_ct(u),u=0);t={}}var r="E",f="",it="complete",y="naturalWidth",o=n.config[r],p=o.buffer,w=o.maxUrlLength,rt=o.timeout,u=0,s,e,t={},b;n.register({id:r,check:k,load:d,compute:g,unload:tt})}(BM),function(n){function p(){return _w.performance&&performance.now&&performance.getEntries}function w(t){t[r]=[];l[r]=[];e=performance.timing.loadEventEnd-performance.timing.navigationStart;h=n.viewport();c=0;k()}function b(u){var k,tt,g,v,nt,it;if(r in l){var ct=u[r],p=l[r],kt=performance.timing,ut=performance.getEntries();for(v=0;v=0&&(i=s.startTime,e=s.duration),v=0;v=0||w[1]===o){ft=!1;break}ft&&c++;var et=t(s.startTime,i),lt=f(s.duration),at=t(s.connectStart,i),vt=s.secureConnectionStart===0?0:t(s.secureConnectionStart,i),yt=t(s.connectEnd,i),pt=t(s.requestStart,i),wt=t(s.responseStart,i),bt=t(s.responseEnd,i),ot=null,st=n.layout();for(nt=0;nt=0?f.substr(0,y):f,t=t.indexOf(s)===0?t.substr(1):t,r=u.search.toLowerCase(),c=a.length>0?t.substr(0,v):n.substr(0,v),r.length>0&&(h=r.indexOf("event."))>0&&(l=r.indexOf("&data"))>0?(t=r.substr(h,l-h).replace("event.",o),t==="clientinst"&&(e=tt.exec(r.replace(/%22/g,'"')),e!=null&&e.length>1&&(t=e[1]))):t.indexOf("rms/")===0&&(i=t.split(s))&&i.length>1?t=i[1].replace("rms%20answers%20",o).replace(".source",o):(i=t.split(s))&&i.length>=2&&(t=i[i.length-2]+s+i[i.length-1]),[f,a,t,c]}function t(n,t){return n&&n>0?f(n-t):-1}function f(n){return n<-1?-1:parseInt(n)}function g(){}var r="N",a=0,i=0,e,h,c,v=n.config[r].maxUrlLength,u=document.createElement("A"),o="",s="/",nt=":",tt=/"name":"(.*?)"/,l={},y=[location.hostname,"live.com","virtualearth.net","bing.net","msedge.net","skype.com","microsofttranslator.com","footprintdns.com","testanalytics.net","footprintpredict.com"];n.register({id:r,check:p,load:w,compute:b,unload:g})}(BM),function(n){function v(){return!0}function y(n){i=1;n[t]=[];g=n;h=document.documentElement;r=[];s=0;f={};c(sj_be,o);p();i=2}function c(n,t){for(var f,r,i,o=0;o=0;i--)u[i]===r&&u.splice(i,1)}function p(){for(var i,r=n.dequeue("EVT"),t=0;t0?f.touches[0]:null,s=f.pointerType||f.type.indexOf("touch")==0&&"touch"||"mouse",c={_e:f.target,t:e||n.time(),l:null,e:f.type,p:s,b:n.exists(f,"button")?f.button:null,x:f.pageX||f.clientX&&f.clientX+h.scrollLeft||o&&o.pageX,y:f.pageY||f.clientY&&f.clientY+h.scrollTop||o&&o.pageY,s:n.exists(f,"buttons")?f.buttons:null};return r.push(c),i===2||i===1?n.snapshot(t):a||(n.error({FN:"enqueue",S:"C",ET:f.type,EVTS:u.join("+")}),a=!0),!0}function l(n,t){var i=n.x-t.x,r=n.y-t.y;return Math.sqrt(i*i+r*r)}function b(i){var h=r.length,e,o,u;if(h>0){for(e=(t in f)?f[t]:null,o=0;od)&&(u.l=n.match(u._e),e===null?(n.metric(1,u.t),e=f[t]=n.clone(u),i[t].push(u)):(s+=l(u,e),i[t].push(n.delta(e,u))));r=[]}n.metric(9,parseInt(s))}function k(){i=3;c(sj_ue,o);i=4}var t="C",r=[],f={},d=n.config[t].distance,e=["click","mousedown","mouseup","mousemove","touchstart","touchend","touchmove"],s,h,g,a=!1,i=0,u=[];n.register({id:t,check:v,load:y,compute:b,unload:k})}(BM),function(n){function e(){return!0}function o(n){n[t]=[];f=n;r(sj_be,i);s()}function r(n,t){for(var r,i=0;i0&&location.href.indexOf("&rdr=1")===-1&&location.href.indexOf("?")>0?(h=location.href+"&rdr=1"+(_G&&_G.IG?"&rdrig="+_G.IG:""),typeof sj_lc!="undefined"?window.sj_lc(h):location.href=h):(c=document.getElementById("b_content"),c&&(c.style.visibility="visible")))}function u(n,t){for(var i,r=0;r0&&r(t[0].i,t[0].t)}function r(f,e){if(i){f=f||_w.event;var s=""+Math.round((new Date).getTime()/1e3);o[t].push({t:e||n.time(),e:f.type,s:s});sj_cook.set("_SS","HV",s,!1,"/");i=!1;u(sj_ue,r);n.metric(10,1);n.snapshot(t)}return!0}function a(){}function v(){i&&(u(sj_ue,r),i=!1)}var t="BD",e=["click","mousedown","mouseup","touchstart","touchend","mousemove","touchmove","scroll","keydown","resize"],o,i=!1,f=n.config[t],s=f&&f.basic?f.basic:!1;n.register({id:t,check:h,load:c,compute:a,unload:v})}(BM)