(function() { try { window._mnHM = window._mnHM || {}; window._mnHM.serverUrl = "https://qsearch-a.akamaihd.net/log?logid=kfk&evtid=hm&"; window._mnHM.postServerUrl = "https://logpostback.media.net/log"; window._mnHM.forceHM = 0;!function(n,e){"use strict";function t(){function t(n,e){for(var t in e)e.hasOwnProperty(t)&&("def"===t?M.appendObj(e.def,H):(H[n]=H[n]||{},e[t]instanceof Array?(H[n][t]=H[n][t]||[],H[n][t]=H[n][t].concat(e[t])):e[t]instanceof Object&&(H[n][t]=H[n][t]||{},M.appendObj(e[t],H[n][t]))))}function o(){var n=encodeURIComponent(JSON.stringify(H));n.length>y&&(r(),i())}function r(t){function o(){return JSON.stringify(H)}function r(){return s+"d="+encodeURIComponent(o())}function a(){return g+encodeURIComponent(encodeURIComponent(o()))+p}if(!(u++>=m)){H.cid=n._mnHM.cid,1===u&&(H.init=1);var i=!1;t&&n.navigator.sendBeacon&&n._mnHM.postServerUrl?(H.flush=2,i=n.navigator.sendBeacon(n._mnHM.postServerUrl,a())):t||v===e||(v(r()),i=!0),i||(t&&(H.flush=3),M.sendDataUsingImg(r()))}}function i(){H={}}function h(){M.isObjectEmpty(H)||(r(),i(),c=a),setTimeout(h,c)}var H={};this.push=function(n,e,a){M.isSet(e)&&(o(),t(n,e)),a&&(f++,f===d&&(r(!0),i()))},this.register=function(){d++},M.addListener(l,"load",function(){setTimeout(h,c)})}function o(){if(M.validate(),l&&(l._mnHM=l._mnHM||{},l._mnHM.container===e)){var o,r=n._mnHM.loggingConfig;o=r==e||r.loggingPercentage==e?i:r.loggingPercentage,(n._mnHM.forceHM||Math.floor(100*Math.random())-1&&this.userAgent.indexOf("mobile")>-1&&this.deviceType.getId()!==o.getId()&&(this.deviceType=i),this.deviceType.getId()===a.getId()&&"ontouchstart"in e&&(this.deviceType=n))};r.deviceListPriority=[o,i,a,n],r.prototype.detectDeviceType=function(){for(var e=r.deviceListPriority,t=0;t0||A>=R){var e=X.getWireData();X.send(e),h()}setTimeout(f,M)}function l(e){if(A1||r.y<0||r.y>1?null:d(s)?(r.x=Math.round(1e5*r.x)/1e5,r.y=Math.round(1e5*r.y)/1e5,{xPath:s,x:r.x,y:r.y}):null}function w(e){var t=null;try{t=b(e)}catch(n){}return t}function E(){try{e.top!=e&&(e.location.href===e.top.location.href?(Y=e.top,Y._mnHM=Y._mnHM||{}):Y=!1),N=H.clientWidth||Y.innerWidth,F=u();var t=i;Y&&(t=Y._mnHM.hmStatus2),("d"===F&&(N<990||null===N)||"NA"===F||!d(L)||!d(D)||t!==i)&&(B=!1)}catch(n){B=!1,Y=!1}}function x(){W||(r(!1,Y.document,"mousemove",l,P,O),o(Y.document,"click",m),o(Y,"unload",p),f(),W=!0)}function T(){return Y.document.documentElement&&0!==Y.document.documentElement.clientHeight?Y.document.documentElement:Y.document.body}function k(){E(),Y&&B&&(Y._mnHM.hmStatus2=1,H=T(),Y._mnHM.container.register(),s(Y.document,x))}n=n||{};var N,D=n.requrl,L=n.cid,M=3e4,P=600,O=200,H={},I={},_={},A=0,S=0,C=15,R=5,j=4,B=!0,W=!1,F="NA",Y=e,U=function(){try{return Node.DOCUMENT_TYPE_NODE}catch(e){return 10}}(),q=function(){try{return Node.ELEMENT_NODE}catch(e){return 1}}(),K={article:"A",aside:"AS",blockquote:"BQ",button:"B",canvas:"C",center:"CE",code:"CO",dialog:"DI",div:"D",form:"F",footer:"FO",frame:"FR",header:"H",iframe:"IF",img:"I",input:"IN",label:"L",link:"LN",nav:"N",object:"O",option:"OP",pre:"P",section:"SC",select:"SE",span:"S",strong:"ST",table:"T",tbody:"TB",thead:"TH",textarea:"TA"},X={send:function(e,t){var n=Y._mnHM.container,i=n.constructor.Datatype;n.push(i.HM,e,t)},getDefaultParams:function(){return{cid:L,url:decodeURIComponent(D),t:F}},getWireData:function(){var e={def:X.getDefaultParams(),mc:[_]};return c()||0===A||(e.mm=[I]),e}};e._mnHM.logEnabled&&k()}(window,document,_mnHM);!function(e,t,n,i){"use strict";function o(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}function d(e){return e!==i&&""!==e&&null!==e}function s(e,t){/complete|interactive|loaded/.test(Z.document.readyState)?t.apply():e.addEventListener?e.addEventListener("DOMContentLoaded",t,!1):e.attachEvent&&e.attachEvent("onreadystatechange",function(){"complete"===e.readyState&&t.apply()})}function a(){var t=function(e,t,n){this.id=e,this.name=t,this.regexp=n};t.prototype.getName=function(){return this.name},t.prototype.getId=function(){return this.id},t.prototype.getRegexp=function(){return this.regexp};var n=new t("NA","UNKNOWN_DEVICE",new RegExp("")),i=new t("m","MOBILE",new RegExp("fennec/|mobile|phone|iphone|ipod|blackberry|playbook|bb10|android|palm|windows\\s+ce|s60;\\ssymbos|series\\s60|series40|samsung-gt-|sonyericsson|nokia|samsung\\sgt|nokia|maui\\sruntime|j2me/midp|brew|docomo/[\\d]+.[\\d]+|mi\\s3w\\smiui|maui\\swap\\sbrowser")),o=new t("t","TABLET",new RegExp("hudl ht7s3 build|kindle( |/)|ipad|tablet|playbook|smart\\stab|gt-n8000|gt-n8013|gt-p[\\d][\\d][\\d][\\d]|me371mg|nexus\\s(7|8|9|[\\d][\\d])\\sbuild/|sm-t[\\d][\\d][\\d]|\\ssgp[\\d][\\d][\\d] build/|touchpad build|venue7\\s[\\d][\\d][\\d][\\d]\\s|gt-n5100 build|lenovoa3300[-]hv|kfjwi\\sbuild/|shw-m\\d\\d\\d[a-z]\\sbuild/|smarttab10-|sony\\stablet\\s(s|p)\\s|huawei\\smediapad\\sbuild|thinkpad\\stablet\\s|vodafone\\ssmarttab|(kfapwa|kfapwi|kfarwi|kfaswi|kfjwa|kfjwi|kfot|kfsawa|kfsawi|kfsowi|kfthwa|kfthwi|kftt)\\sbuild|ideatab\\s|mediapad\\s[\\d]+\\slite\\sbuild|mid\\d\\d\\d\\d\\sbuild/")),d=new t("d","DESKTOP",new RegExp("windows|win([\\d][\\d]|nt)(\\s|;|[)])|windows\\snt\\s\\d[.]\\d|cros;|cros\\s|linux|os\\s+[x9]|solaris|bsd|x11|mac_powerpc|macintosh")),s=function(t){this.deviceType=n,t&&(this.userAgent=t.toLowerCase(),this.deviceType=this.detectDeviceType(),this.userAgent.indexOf("android")>-1&&this.userAgent.indexOf("mobile")>-1&&this.deviceType.getId()!==o.getId()&&(this.deviceType=i),this.deviceType.getId()===d.getId()&&"ontouchstart"in e&&(this.deviceType=n))};s.deviceListPriority=[o,i,d,n],s.prototype.detectDeviceType=function(){for(var e=s.deviceListPriority,t=0;t0){var e=$.getWireData();$.send(e),p()}setTimeout(r,z)}function m(){Y?g():L=(new Date).getTime(),Y=!1,setTimeout(m,P)}function l(){Y=!0}function f(){Y=!1}function h(){g();var e=$.getWireData();$.send(e,!0),p()}function p(){F.length=0}function g(){var e=v();"object"==typeof e&&null!==e&&0!=e.t&&F.push(e.s,e.v,e.t),L=(new Date).getTime()}function v(){var e=new Date,t=e.getTime()-L;if(c()){var n=I/N,i=W/N;return n<1&&i<1&&t>0&&t=0&&W>q&&tj&&F.length/3=10?(Te[e].currentState=et.viewed,Te[e].vLogged=ze,Te[e].mt=He):Te[e].mt!==He&&(Te[e].currentState=et.missedTime))}else Te[e].ma!==Ne&&i&&je&&(Te[e].currentState=et.missedArea);i&&(Te[e].os=Xe)}function w(e){for(var t in Te)Te.hasOwnProperty(t)&&b(t,e)}function y(e,t){De[e]=t}function E(e){return _e.hasOwnProperty(e)?_e[e]:qe.document.getElementById(e)}function T(){function e(){var e,n=nt.rpos(i);e=nt.getViewRatio(n,r),Te[o].xPath=t,Te[o].pos=i,Te[o].dim=r,Te[o].vRatio=e}var t,n,i,r;for(var o in Te)if(Te.hasOwnProperty(o)){if(n=E(o),!n)continue;r=nt.dim(n),i=nt.pos(n),t=P(n),e()}}function D(e,t,n,i,r,o,a){var u,c=nt.rpos(n);u=nt.getViewRatio(c,i),Te.hasOwnProperty(t)&&l(t),Te[t]={adp:r,xPath:e,channelId:o,counter:a,creationTime:(new Date).getTime(),pos:n,dim:i,vRatio:u,vLogged:0,ma:0,mt:0,os:0,of:0,vi:0,previousState:null,currentState:et.outOfFocus}}function S(e){for(;e&&e.nodeType===Qe&&"BODY"!==e.nodeName&&"HTML"!==e.nodeName;e=e.parentNode)if("fixed"===Z(e,"position"))return!0;return!1}function _(e,t,n){var i,r,o,a,u,c=0,d={};if(u=$(e),r=P(e),o=nt.pos(e),a=nt.dim(e),Te.hasOwnProperty(t)){if((new Date).getTime()-Te[t].creationTime<=be)return;c=Te[t].counter+1}i=s(r,n,u,c),S(e)&&(d.fixed=1),y(i,d),D(r,t,o,a,n,u,c)}function k(e){for(var t=0;t-1?e.split("/")[2]:e.split("/")[0]}function P(e){for(var t=[];e&&e.nodeType===Qe&&"BODY"!==e.nodeName&&"HTML"!==e.nodeName;e=e.parentNode){var n,i=0;for(n=e.previousSibling;n;n=n.previousSibling)n.nodeType!==Ze&&n.nodeName===e.nodeName&&++i;var r=e.nodeName.toLowerCase();r in $e&&(r=$e[r]);var o=i?i+1:"";t.splice(0,0,r+o)}return t.length?t.join("."):null}function Y(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function x(e){var t=O(e),n=k(t);return!M(t)&&n}function I(t){var n=!1;if(!(t&&t.parentElement&&t.parentElement.parentElement&&t.parentElement.parentElement.id))return n;e._mnHM.DFPAdsInfo=e._mnHM.DFPAdsInfo||{};var i=e._mnHM.DFPAdsInfo[t.parentElement.parentElement.id];return i&&(n="dfp:"+i.advertiserId),n}function N(e){var t=!1,n=j(e)[1];try{var i=e.contentDocument.body;""!==i.textContent&&n.mnetbidID&&(t="hb:"+n.mnetbidID)}catch(r){}return t}function H(e){function t(e){for(var t=e.getElementsByTagName("script"),n=0;n0&&e-Ce>=ye&&(T(),Ce=e,Be=0),setTimeout(B,ye)}function z(){Be>10&&(T(),Ce=(new Date).getTime(),Be=0)}function F(e){Be++,z();try{e.forEach(function(e){if("childList"===e.type){for(var t=[],n=0;n16){var t=e.indexOf("V")===-1?3:6;n.visitorID=e.substr(0,e.length-t)}return n.visitorID}function ue(){me=!!qe.atob}function ce(){var t=function(e,t,n){this.id=e,this.name=t,this.regexp=n};t.prototype.getName=function(){return this.name},t.prototype.getId=function(){return this.id},t.prototype.getRegexp=function(){return this.regexp};var n=new t("NA","UNKNOWN_DEVICE",new RegExp("")),i=new t("m","MOBILE",new RegExp("fennec/|mobile|phone|iphone|ipod|blackberry|playbook|bb10|android|palm|windows\\s+ce|s60;\\ssymbos|series\\s60|series40|samsung-gt-|sonyericsson|nokia|samsung\\sgt|nokia|maui\\sruntime|j2me/midp|brew|docomo/[\\d]+.[\\d]+|mi\\s3w\\smiui|maui\\swap\\sbrowser")),r=new t("t","TABLET",new RegExp("hudl ht7s3 build|kindle( |/)|ipad|tablet|playbook|smart\\stab|gt-n8000|gt-n8013|gt-p[\\d][\\d][\\d][\\d]|me371mg|nexus\\s(7|8|9|[\\d][\\d])\\sbuild/|sm-t[\\d][\\d][\\d]|\\ssgp[\\d][\\d][\\d] build/|touchpad build|venue7\\s[\\d][\\d][\\d][\\d]\\s|gt-n5100 build|lenovoa3300[-]hv|kfjwi\\sbuild/|shw-m\\d\\d\\d[a-z]\\sbuild/|smarttab10-|sony\\stablet\\s(s|p)\\s|huawei\\smediapad\\sbuild|thinkpad\\stablet\\s|vodafone\\ssmarttab|(kfapwa|kfapwi|kfarwi|kfaswi|kfjwa|kfjwi|kfot|kfsawa|kfsawi|kfsowi|kfthwa|kfthwi|kftt)\\sbuild|ideatab\\s|mediapad\\s[\\d]+\\slite\\sbuild|mid\\d\\d\\d\\d\\sbuild/")),o=new t("d","DESKTOP",new RegExp("windows|win([\\d][\\d]|nt)(\\s|;|[)])|windows\\snt\\s\\d[.]\\d|cros;|cros\\s|linux|os\\s+[x9]|solaris|bsd|x11|mac_powerpc|macintosh")),a=function(t){this.deviceType=n,t&&(this.userAgent=t.toLowerCase(),this.deviceType=this.detectDeviceType(),this.userAgent.indexOf("android")>-1&&this.userAgent.indexOf("mobile")>-1&&this.deviceType.getId()!==r.getId()&&(this.deviceType=i),this.deviceType.getId()===o.getId()&&"ontouchstart"in e&&(this.deviceType=n))};a.deviceListPriority=[r,i,o,n],a.prototype.detectDeviceType=function(){for(var e=a.deviceListPriority,t=0;t=0;n--){var i=this._scope[n];this._handlers[n].call(i,e)}},e}(),nt={pos:function(e){var t=e,n={X:0,Y:0};if(t.offsetParent)do n.X+=t.offsetLeft,n.Y+=t.offsetTop;while(t=t.offsetParent);return n},scroll:function(){var e=Fe.win.pageYOffset&&{X:Fe.win.pageXOffset,Y:Fe.win.pageYOffset}||{},t=Fe.dE&&{X:Fe.dE.scrollLeft,Y:Fe.dE.scrollTop}||{},n=Fe.dB&&{X:Fe.dB.scrollLeft,Y:Fe.dB.scrollTop}||{};return{X:Math.max(e.X||0,t.X||0,n.X||0),Y:Math.max(e.Y||0,t.Y||0,n.Y||0)}},rpos:function(e){var t={X:0,Y:0};return t.X=e.X-he.X,t.Y=e.Y-he.Y,t},setvpSize:function(){Re.X=Fe.win.innerWidth||Fe.dE&&Fe.dE.clientWidth||Fe.dB&&Fe.dB.clientWidth,Re.Y=Fe.win.innerHeight||Fe.dE&&Fe.dE.clientHeight||Fe.dB&&Fe.dB.clientHeight},dim:function(e){return{X:e.clientWidth,Y:e.clientHeight}},debounce:function(e,t,n,i){var r;return function(){var o=function(){r=null,n.call(e)},a=!r;clearTimeout(r),r=setTimeout(o,i),a&&t.call(e)}},getViewRatio:function(e,t){if(e.X+t.X>=0&&e.Y+t.Y>=0&&e.X<=Re.X&&e.Y<=Re.Y){var n={X:e.X+t.X>Re.X?Re.X:e.X+t.X,Y:e.Y+t.Y>Re.Y?Re.Y:e.Y+t.Y},i={x:e.X>=0?(Re.X-e.X)/t.X:n.X/t.X,y:e.Y>=0?(Re.Y-e.Y)/t.Y:n.Y/t.Y};if(i.x!==!1&&i.y!==!1)return i.x=0!==Math.floor(i.x)?100:Math.ceil(100*i.x),i.y=0!==Math.floor(i.y)?100:Math.ceil(100*i.y),i}return!1},isViewable:function(e){return e.x*e.y>=5e3}},it={send:function(e,t){if(!n.hmLoggingDisabled){var i=qe._mnHM.container,r=i.constructor.Datatype;i.push(r.ADT,e,t)}},getDefaultParams:function(){return{cid:we,url:decodeURIComponent(ve),hvsid:oe(),vid:ae(),t:Ie}},getWireData:function(){if(Ke){if(o(De))return null}else{var e=m();if(o(e)&&o(De))return null}var t={def:it.getDefaultParams()};return o(De)||(t.im=De),o(e)||(t["if"]=[e]),Ke=!1,t}},rt={enable:function(){ct.subscribe(this,this.updatePageState),ot.subscribe(this,this.updateScroll),at.subscribe(this,this.updateResize),ut.subscribe(this,this.updateMouseMove),ct.isPageHidden()===!1&&(je=!0)},updatePageState:function(e){if("visible"===e)je=!0,Ge=(new Date).getTime();else{var t=(new Date).getTime(),n=t-Ge;n>=100&&w(n)}},updateScroll:function(e){je=!0,w(e)},updateResize:function(e){w(e)},updateMouseMove:function(){je=!0},update:function(){if(!ct.isPageHidden()&&ct.isAPISupported()){var e=(new Date).getTime()-Ge;w(e),Ge=(new Date).getTime()}}},ot=function(){var e=new tt;return e.enable=function(){r(qe,"scroll",nt.debounce(this,e.onScrollStart,e.onScrollEnd,Le))},e.onScrollStart=function(){var e=(new Date).getTime(),t=e-Ge;this.notify(t)},e.onScrollEnd=function(){Ge=(new Date).getTime(),he=nt.scroll(),re()},e}(),at=function(){var e=new tt;return e.enable=function(){r(qe,"resize",nt.debounce(this,e.onResizeStart,e.onResizeEnd,Le))},e.onResizeStart=function(){var t=(new Date).getTime(),n=t-Ge;e.notify(n)},e.onResizeEnd=function(){Ge=(new Date).getTime(),nt.setvpSize(),T()},e}(),ut=function(){var e=new tt;return e.position=function(){},e.onmove=function(){return nt.debounce(e,e.notify,e.notify,Le)}(),e.enable=function(){r(qe,"mousemove",e.onmove)},e}(),ct=function(){var e=new tt;return e.onchange=function(t){var n="visible",i="hidden",r={focus:n,focusin:n,pageshow:n,blur:i,focusout:i,pagehide:i};t=t||qe.event;var o;o=t.type in r?r[t.type]:qe.document.hidden?i:n,e.notify(o)},e.isPageHidden=function(){var e="function"!=typeof qe.document.hasFocus||qe.document.hasFocus();return!e||qe.document.hidden||qe.document.msHidden||qe.document.webkitHidden},e.isAPISupported=function(){return"hidden"in qe.document||"mozHidden"in qe.document||"webkitHidden"in qe.document||"msHidden"in qe.document},e.enable=function(){var t="hidden",n=qe.document;t in n?n.addEventListener("visibilitychange",e.onchange):(t="mozHidden")in n?n.addEventListener("mozvisibilitychange",e.onchange):(t="webkitHidden")in n?n.addEventListener("webkitvisibilitychange",e.onchange):(t="msHidden")in n?n.addEventListener("msvisibilitychange",e.onchange):"onfocusin"in n?n.onfocusin=n.onfocusout=e.onchange:qe.onpageshow=qe.onpagehide=qe.onfocus=qe.onblur=e.onchange,n.hidden!==i&&e.onchange({type:n.hidden?"blur":"focus"})},e}();fe()}(window,document,_mnHM);!function(t,e,i,n){"use strict";function o(t,e,i,n){var o;return function(){var r=function(){o=null,i.call(t)},s=!o;clearTimeout(o),o=setTimeout(r,n),s&&e.call(t)}}function r(t,e,i){t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent&&t.attachEvent("on"+e,i)}function s(t){var e=Array.prototype.slice.call(arguments,1);return function(){var i=e.concat(Array.prototype.slice.call(arguments));return t.apply(this,i)}}function a(t){var e=z.getWireData();z.send(e,t),W.clear()}function c(){W._update_count>0&&a(),setTimeout(c,A)}function u(){k||(k=!0,a(!0))}function d(){var e=function(t,e,i){this.id=t,this.name=e,this.regexp=i};e.prototype.getName=function(){return this.name},e.prototype.getId=function(){return this.id},e.prototype.getRegexp=function(){return this.regexp};var i=new e("NA",V.unknown,new RegExp("")),n=new e("m",V.mobile,new RegExp("fennec/|mobile|phone|iphone|ipod|blackberry|playbook|bb10|android|palm|windows\\s+ce|s60;\\ssymbos|series\\s60|series40|samsung-gt-|sonyericsson|nokia|samsung\\sgt|nokia|maui\\sruntime|j2me/midp|brew|docomo/[\\d]+.[\\d]+|mi\\s3w\\smiui|maui\\swap\\sbrowser")),o=new e("t",V.tablet,new RegExp("hudl ht7s3 build|kindle( |/)|ipad|tablet|playbook|smart\\stab|gt-n8000|gt-n8013|gt-p[\\d][\\d][\\d][\\d]|me371mg|nexus\\s(7|8|9|[\\d][\\d])\\sbuild/|sm-t[\\d][\\d][\\d]|\\ssgp[\\d][\\d][\\d] build/|touchpad build|venue7\\s[\\d][\\d][\\d][\\d]\\s|gt-n5100 build|lenovoa3300[-]hv|kfjwi\\sbuild/|shw-m\\d\\d\\d[a-z]\\sbuild/|smarttab10-|sony\\stablet\\s(s|p)\\s|huawei\\smediapad\\sbuild|thinkpad\\stablet\\s|vodafone\\ssmarttab|(kfapwa|kfapwi|kfarwi|kfaswi|kfjwa|kfjwi|kfot|kfsawa|kfsawi|kfsowi|kfthwa|kfthwi|kftt)\\sbuild|ideatab\\s|mediapad\\s[\\d]+\\slite\\sbuild|mid\\d\\d\\d\\d\\sbuild/")),r=new e("d",V.desktop,new RegExp("windows|win([\\d][\\d]|nt)(\\s|;|[)])|windows\\snt\\s\\d[.]\\d|cros;|cros\\s|linux|os\\s+[x9]|solaris|bsd|x11|mac_powerpc|macintosh")),s=function(e){this.deviceType=i,e&&(this.userAgent=e.toLowerCase(),this.deviceType=this.detectDeviceType(),this.userAgent.indexOf("android")>-1&&this.userAgent.indexOf("mobile")>-1&&this.deviceType.getId()!==o.getId()&&(this.deviceType=n),this.deviceType.getId()===r.getId()&&"ontouchstart"in t&&(this.deviceType=i))};s.deviceListPriority=[o,n,r,i],s.prototype.detectDeviceType=function(){for(var t=s.deviceListPriority,e=0;e=0;i--){var n=this._scope[i];this._handlers[i].call(n,t)}},t}(),C={};C.isStringSet=function(t){return t!==n&&""!==t&&null!==t},C.getQueryParamString=function(t,e){return C.isStringSet(e)&&C.isStringSet(t)?"&"+t+"="+e:""},C.getQueryParamsFromObject=function(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=C.getQueryParamString(i,t[i]));return e},C.isObjectEmpty=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},C.onDOMLoad=function(t,e){/complete|interactive|loaded/.test(y.document.readyState)?e.apply():t.addEventListener?r(t,"DOMContentLoaded",e):t.attachEvent&&t.attachEvent("onreadystatechange",function(){"complete"===t.readyState&&e.apply()})};var z={send:function(t,e){var i=y._mnHM.container,n=i.constructor.Datatype;i.push(n.ALT,t,e)},getDefaultParams:function(){return{id:w}},getWireData:function(){var t={def:z.getDefaultParams()};return C.isObjectEmpty(W.getMetrics())||(t.m=W.getMetrics()),C.isObjectEmpty(W.getDimensions())||(t.d=W.getDimensions()),t}},F=function(){var t=new L;return t.onchange=function(e){var i={focus:I.visible,focusin:I.visible,pageshow:I.visible,blur:I.hidden,focusout:I.hidden,pagehide:I.hidden};e=e||y.event;var n;n=e.type in i?i[e.type]:y.document.hidden?I.hidden:I.visible,t.notify(n)},t.isPageHidden=function(){var t="function"!=typeof y.document.hasFocus||y.document.hasFocus();return!t||y.document.hidden||y.document.msHidden||y.document.webkitHidden},t.isAPISupported=function(){return"hidden"in y.document||"mozHidden"in y.document||"webkitHidden"in y.document||"msHidden"in y.document},t.enable=function(){var e="hidden",i=y.document;e in i?r(i,"visibilitychange",t.onchange):(e="mozHidden")in i?r(i,"mozvisibilitychange",t.onchange):(e="webkitHidden")in i?r(i,"webkitvisibilitychange",t.onchange):(e="msHidden")in i?r(i,"msvisibilitychange",t.onchange):"onfocusin"in i?i.onfocusin=i.onfocusout=t.onchange:y.onpageshow=y.onpagehide=y.onfocus=y.onblur=t.onchange,i.hidden!==n&&t.onchange({type:i.hidden?"blur":"focus"})},t}(),Y=function(){var t=new L;return t.position=function(){},t.onmove=function(){return o(t,t.notify,t.notify,x)}(),t.enable=function(){r(y,"mousemove",t.onmove)},t}(),U=function(){var t=new L;return t.viewPortHeight=0,t.setViewPortSize=function(){var e=y.document;"undefined"!=typeof y.innerWidth?t.viewPortHeight=y.innerHeight:"undefined"!=typeof e.documentElement&&"undefined"!=typeof e.documentElement.clientWidth&&0!==e.documentElement.clientWidth?t.viewPortHeight=e.documentElement.clientHeight:t.viewPortHeight=e.getElementsByTagName("body")[0].clientHeight},t.getViewPortHeight=function(){return t.viewPortHeight},t.handleResize=function(){t.setViewPortSize()},t.onresize=function(){return o(t,t.handleResize,t.handleResize,x)}(),t.enable=function(){t.setViewPortSize(),r(y,"resize",t.onresize)},t}(),j=function(){var t=new L;return t.currentScrollY=0,t.setScrollY=function(){var e="undefined"!=typeof y.pageYOffset;t.currentScrollY=e?y.pageYOffset:D.scrollTop},t.handleScroll=function(e){t.setScrollY(),t.notify(e)},t.onscroll=function(){return o(t,s(t.handleScroll,M.started),s(t.handleScroll,M.stopped),x)}(),t.getScrollY=function(){return this.currentScrollY},t.enable=function(){t.setScrollY(),r(y,"scroll",t.onscroll)},t}(),W=function(){var t={};return t._metrics={},t._dimensions={},t._update_count=0,t.clear=function(){this._metrics={},this._dimensions={},this._update_count=0},t.set=function(t,e){C.isStringSet(e)&&(this._metrics[t]=e,this._update_count++)},t.setDimensions=function(t){this._dimensions=t},t.get=function(t){return this._metrics[t]},t.getMetrics=function(){return this._metrics},t.getDimensions=function(){return this._dimensions},t}(),X={PageViewDuration:{totalTime:0,lastViewStartTime:new Date,oldPageState:I.visible,UPDATE_INTERVAL:1e3,enable:function(){F.isAPISupported()!==!1&&(F.subscribe(this,this.update),F.isPageHidden()&&(this.oldPageState=I.hidden),setTimeout(this.updateAndPush.bind(this),this.UPDATE_INTERVAL))},update:function(t){var e=!1;return this.oldPageState===I.visible&&(this.totalTime+=new Date-this.lastViewStartTime,e=!0),t===I.visible&&(this.lastViewStartTime=new Date),this.oldPageState=t,e},updateAndPush:function(){var t=F.isPageHidden()?I.hidden:I.visible;this.update(t)&&this.push(),setTimeout(this.updateAndPush.bind(this),this.UPDATE_INTERVAL)},push:function(){W.get(R.viewTime)!==this.totalTime&&W.set(R.viewTime,this.totalTime)}},InteractionDuration:{totalTime:0,activityStartTime:new Date,inactive:!0,timeout:0,UPDATE_INTERVAL:1e3,INACTIVE_AFTER_WAIT:1e3,enable:function(){Y.subscribe(this,this.setActive),j.subscribe(this,this.setActive),setTimeout(this.updateAndPush.bind(this),this.UPDATE_INTERVAL)},setActive:function(){F.isPageHidden()||(clearTimeout(this.timeout),this.inactive&&(this.inactive=!1,this.activityStartTime=new Date),this.timeout=setTimeout(this.setInactive.bind(this),this.INACTIVE_AFTER_WAIT))},setInactive:function(){this.inactive===!1&&(this.inactive=!0,this.totalTime+=new Date-this.activityStartTime),this.push()},updateAndPush:function(){this.inactive===!1&&(this.totalTime+=new Date-this.activityStartTime,this.activityStartTime=new Date,this.push()),setTimeout(this.updateAndPush.bind(this),this.UPDATE_INTERVAL)},push:function(){W.get(R.interactTime)!==this.totalTime&&W.set(R.interactTime,this.totalTime)}},Scrolled:{enable:function(){j.subscribe(this,this.update)},update:function(){this.push(1),j.unsubscribe(this.update)},push:function(t){t&&W.set(R.scrolled,t)}},MaxScrollDepth:{maxDepth:0,enable:function(){this.update(),j.subscribe(this,this.update)},update:function(){var t=this.getScrollDepth();t>this.maxDepth&&(this.maxDepth=t,this.push())},push:function(){W.get(R.maxScrollDepth)!==this.maxDepth&&W.set(R.maxScrollDepth,this.maxDepth)},getScrollDepth:function(){return Math.round(U.getViewPortHeight()+j.getScrollY())}},ScrollVelocity:{startTime:0,startPosition:0,totalTime:0,totalDistance:0,upScrollDistance:0,upScrollTime:0,downScrollDistance:0,downScrollTime:0,enable:function(){j.subscribe(this,this.update),this.startPosition=j.getScrollY()},update:function(t){if(t===M.started)this.startTime=new Date;else if(this.startTime){var e=j.getScrollY(),i=new Date-this.startTime,n=e-this.startPosition;this.totalDistance+=Math.abs(n),this.totalTime+=i,n<0?(this.upScrollDistance+=Math.abs(n),this.upScrollTime+=i):(this.downScrollDistance+=n,this.downScrollTime+=i),this.push(),this.startPosition=e}},push:function(){var t=(this.downScrollDistance/this.downScrollTime).toFixed(2),e=(this.upScrollDistance/this.upScrollTime).toFixed(2),i=(this.totalDistance/this.totalTime).toFixed(2);isNaN(Number(t))||t==1/0||W.set(R.downScrollVelocity,t),isNaN(Number(e))||e==1/0||W.set(R.upScrollVelocity,e),isNaN(Number(i))||i==1/0||W.set(R.scrollVelocity,i)}}};l.getBrowser=function(){try{if(t.opr&&t.opr.addons||t.opera||navigator.userAgent.indexOf(" OPR/")>=0)return H.opera;if("undefined"!=typeof InstallTrigger)return H.firefox;if(Object.prototype.toString.call(t.HTMLElement).indexOf("Constructor")>0)return H.safari;if(e.documentMode)return H.ie;if(t.StyleMedia)return H.edge;if(t.chrome&&t.chrome.webstore)return H.chrome;if(/firefox|FxiOS/i.test(navigator.userAgent))return H.firefox;if(/chrome|chromium|CriOS/i.test(navigator.userAgent))return H.chrome;if(/safari/i.test(navigator.userAgent))return H.safari;if(/OPR|Opera/.test(navigator.userAgent))return H.opera;if(/MSIE/.test(navigator.userAgent))return H.ie}catch(i){return H.unknown}},l.getDevice=function(){var t;try{t=d()}catch(e){t=V.unknown}return t},l.getOS=function(){var e;try{navigator.appVersion.indexOf("Win")!==-1&&(e=O.windows),navigator.appVersion.indexOf("Mac")!==-1&&(e=O.mac),navigator.appVersion.indexOf("X11")!==-1&&(e=O.unix),navigator.appVersion.indexOf("Linux")!==-1&&(e=O.linux),/android/i.test(navigator.userAgent)&&!t.MSStream&&(e=O.android),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!t.MSStream&&(e=O.ios)}catch(i){e=O.unknown}return e},l.getURL=function(){return decodeURIComponent(S)},l.getCID=function(){return T},l.getCountryCode=function(){return i.countryCode},l.getResolution=function(){if(screen.width&&screen.height){var t=Math.round(screen.width),e=Math.round(screen.height);return screen.deviceXDPI&&screen.logicalXDPI&&(t=Math.round(t*(screen.deviceXDPI/screen.logicalXDPI)),e=Math.round(e*(screen.deviceXDPI/screen.logicalXDPI))),t+"x"+e}return""},l.getVisitId=function(){return i.visitID===n&&(i.visitID=("000000"+(new Date).getTime()+("00"+Math.floor(Math.random()*(1<<30))).slice(-11)+(1e3+Math.floor(9e3*Math.random()))).slice(-32)),i.visitID},l.getRefererDomain=function(){var t=i.refererDomain;return C.isStringSet(t)||(t="noref"),t},v()}(window,document,_mnHM);} catch (err) { var errStacktrace; if (err.stack) {errStacktrace = err.stack;} else if (err.s) {errStacktrace = err.s;} else if (err.stacktrace) {errStacktrace = err.stacktrace;} else errStacktrace = 'No StackTrace'; // console.log('[HM Master] Error: ' + errStacktrace); } })();