(function(h,f,ca){function q(a,b){return function(){try{return a.apply(this,arguments)}catch(c){na(c,b)}}}function na(a,b){if(.01>Math.random())try{(new Q).log("jserrs",V,a.message,b,A.href,O,"string"==typeof a.stack&&a.stack.replace(/\n/g,"\\n"))}catch(e){var c=["cp: "+b,a.name+": "+a.message,"debug: "+O,"code: "+V,"stack: "+a.stack];(new Image).src="//an.yandex.ru/jserr/101500?cnt-class=100&errmsg="+encodeURIComponent(c.join("; ").replace(/\r?\n/g,"\\n"))}}function B(){for(var a={},b="hash host hostname href pathname port protocol search".split(" "), c=b.length,e=c;e--;)a[b[e]]="";try{for(var d=h.location,e=c;e--;){var g=b[e];a[g]=""+d[g]}}catch(f){A&&(a=A)}return a}function Ga(a){return a?(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function ha(a){return-1!==(""+h.navigator.userAgent).toLowerCase().search(a)}function qa(a,b){if(!a||!b)return!1;for(var c=[],e=0;ec||36E5b||0>c||0>d||0>g)return null;e=b<<18|c<<12|d<<6|g;b=e>>16&255;c=e>>8&255;e&=255;f=64==d?f+String.fromCharCode(b):64==g?f+String.fromCharCode(b,c):f+String.fromCharCode(b,c,e)}while(hh?(d+=String.fromCharCode(h),g++):191h?(f=a.charCodeAt(g+ 1),d+=String.fromCharCode((h&31)<<6|f&63),g+=2):(f=a.charCodeAt(g+1),b=a.charCodeAt(g+2),d+=String.fromCharCode((h&15)<<12|(f&63)<<6|b&63),g+=3);return d}function Ka(a){try{delete h[a]}catch(b){h[a]=ca}}function La(a){var b=f.createElement("script");b.type="text/javascript";b.async=!0;b.src=a;try{var c=f.getElementsByTagName("html")[0];f.getElementsByTagName("head")[0]||c.appendChild(f.createElement("head"));var e=f.getElementsByTagName("head")[0];e.insertBefore(b,e.firstChild)}catch(d){}}function hb(a, b,c,e,d,W){function t(a){var b=(new Date).getTime();a&&b>8,b&255])}function y(a,b){g.mergeArrays(a,[b&255])}function m(a,b){for(b=Math.max(0,b|0);127>=7;g.mergeArrays(a,[b])}function w(a,b){255h)return null;var f={mousemove:2,click:32,dblclick:33,mousedown:4,mouseup:30,touch:12}[b];if(!f)return null;var n=l.getElementXY(c);c=[];y(c,f);m(c,a);m(c,h);m(c,Math.max(0,d[0]-n[0]));m(c,Math.max(0,d[1]-n[1])); /^mouse(up|down)|click$/.test(b)&&(a=e||g,y(c,2>a?1:a==(e?2:4)?4:2));return c}function E(a,b,c,d){b=b[C];if(!b||0>b)return null;var e=[];y(e,31);m(e,a);m(e,b);m(e,c[0]);m(e,c[1]);y(e,0);y(e,0);y(e,d);return e}function I(a,b){var c=[];y(c,3);m(c,a);m(c,b[0]);m(c,b[1]);return c}function H(a,b,c){var d=[];c=c[C];if(!c||0>c)return null;y(d,16);m(d,a);m(d,b[0]);m(d,b[1]);m(d,c);return d}function N(a,b,c){var d=[];y(d,28);m(d,a);m(d,b[0]);m(d,b[1]);m(d,c[0]);m(d,c[1]);return d}function K(a,b,c,d){var e= [];y(e,5);m(e,a);p(e,b);y(e,c);a=d[C];if(!a||0>a)a=0;m(e,a);return e}function z(a,b){var c,d;0==b.length?d=c="":100>=b.length?(c=b,d=""):200>=b.length?(c=b.substr(0,100),d=b.substr(100)):(c=b.substr(0,97),d=b.substr(b.length-97));var e=[];y(e,29);m(e,a);v(e,c);v(e,d);return e}function J(a){var b=[];y(b,27);m(b,a);return b}function Y(a){var b=[];y(b,14);m(b,a);return b}function T(a){var b=[];y(b,15);m(b,a);return b}function ib(a,b){var c=[];y(c,17);m(c,a);m(c,b[C]);return c}function jb(a,b){var c= [];y(c,18);m(c,a);m(c,b[C]);return c}function ca(a,b,c){var d=[];y(d,19);m(d,a);m(d,b[C]);w(d,String(c));return d}function X(a){var b=a[C];if(!b||0>b||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||D(a.form))return null;var c=l.getFormNumber(a.form);if(0>c)return null;var d;d="INPUT"==a.nodeName?{text:0,color:0,date:0,datetime:0,"datetime-local":0,email:0,number:0,range:0,search:0,tel:0,time:0,url:0,month:0,week:0,password:2,radio:3,checkbox:4,file:6,image:7}[a.type]:{SELECT:1,TEXTAREA:5}[a.nodeName]; if("number"!=typeof d)return null;for(var e=-1,g=a.form.elements,h=g.length,f=0,n=0;fe)return null;g=[];y(g,7);m(g,b);m(g,c);m(g,d);v(g,a.name||"");m(g,e);return g}function ea(a,b){var c=l.getFormNumber(b);if(0>c)return null;for(var d=b.elements,e=d.length,h=[],f=0;f=c)b=null;else{var d=64,e=0,f=l.getElementParent(a), g=f&&f[C]?f[C]:0;0>g&&(g=0);var h=a.nodeName.toUpperCase(),r=la[h];r||(d|=2);var W=l.getElementNeighborPosition(a);W||(d|=4);var t=l.getElementRegion(a);(f=f?l.getElementRegion(f):null)&&t[0]==f[0]&&t[1]==f[1]&&t[2]==f[2]&&t[3]==f[3]&&(d|=8);sa[c].pos=t[0]+"x"+t[1];sa[c].size=t[2]+"x"+t[3];a.id&&"string"==typeof a.id&&(d|=32);(f=l.calcTextChecksum(a))&&(d|=16);var k=l.calcAttribChecksum(a);k&&(e|=2);var u;b:{u=l.getElementChildren(l.getElementParent(a),a.tagName);for(var D=0;Dc)){var d=G.getPos(a),e=ia[0]-d[0],g=ia[1]-d[1],e=e*e+g*g;0>=e||16>e&&100>c||20>c&&256>e||(Z=b,ia=d,L(a))}}function ta(){var a=l.getDocumentScroll(),b=ra();10>b-ma|| 10>Math.abs(a[0]-ja[0])&&10>Math.abs(a[1]-ja[1])||(ma=b,ja=a,r(I,[x(),a]))}function Oa(a){a=G.getTarget(a);var b=Math.random(),c=[a.scrollLeft,a.scrollTop];if(a.localId){if(b=ba[a.localId],!b||10>Math.abs(c[0]-b[0])&&10>Math.abs(c[1]-b[1]))return}else{for(;ba[b];)b=Math.random();a.localId=b}ba[a.localId]=c;a!==f&&(n(a),r(H,[x(),c,a]))}function Aa(){r(N,[x(),l.getViewportSize(),l.getDocumentSize()])}function ua(){r(P,[],!0)}function Pa(a){return(a.shiftKey?2:0)|(a.ctrlKey?4:0)|(a.altKey?1:0)|(a.metaKey? 8:0)|(a.ctrlKey||a.altKey?16:0)}function ya(a){return"INPUT"==a.tagName?"password"==a.type||a.name&&na.test(a.name)||a.id&&na.test(a.id):!1}function Qa(a,b,c){a=G.getTarget(a);ya(a)||u(a)||(n(a),r(K,[x(),b,c,a]))}function Ra(a){var b=a.keyCode,c=Pa(a);if({3:1,8:1,9:1,13:1,16:1,17:1,18:1,19:1,20:1,27:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,40:1,45:1,46:1,91:1,92:1,93:1,106:1,110:1,111:1,144:1,145:1}[b]||112<=b&&123>=b||96<=b&&105>=b||c&16)19==b&&4==(c&-17)&&(b=144),Qa(a,b,c|16),Ba=!1,g.setTimeout(function(){Ba= !0},1),!(67==b&&c&4)||c&1||c&2||Ca()}function Sa(a){Ba&&!Da&&0!==a.which&&(Qa(a,a.charCode||a.keyCode,Pa(a)),Da=!0,g.setTimeout(function(){Da=!1},1))}function Ca(){Ea||(Ea=!0,za&&r(J,[x()]),g.setTimeout(function(){Ea=!1},1))}function Fa(){oa||(oa=!0,r(Y,[x()]))}function pa(){oa&&(oa=!1,r(T,[x()]))}function aa(a){(!oa||a&&!a.fromElement)&&Fa()}function da(a){a&&!a.toElement&&pa()}function R(a){if((a=G.getTarget(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[C])n(a);else{var b=a.form;if(b)for(var b= b.elements,c=b.length,d=0;da.deltaY?2:0:"mousewheel"==a.type&&(c=0a.wheelDelta?1:0);c&&(n(b),r(E,[x(),b,G.getPos(a),c]))}}function Q(a){(a=G.getTarget(a))&&"BODY"==a.tagName&&ka.append([], !0)}var ka=new Ta({protocol:a,counterId:b,counterType:c,meta:{url:B().href,hitId:d,timezone:va,timestamp:wa}}),la={A:1,ABBR:2,ACRONYM:3,ADDRESS:4,APPLET:5,AREA:6,B:7,BASE:8,BASEFONT:9,BDO:10,BIG:11,BLOCKQUOTE:12,BODY:13,BR:14,BUTTON:15,CAPTION:16,CENTER:17,CITE:18,CODE:19,COL:20,COLGROUP:21,DD:22,DEL:23,DFN:24,DIR:25,DIV:26,DL:27,DT:28,EM:29,FIELDSET:30,FONT:31,FORM:32,FRAME:33,FRAMESET:34,H1:35,H2:36,H3:37,H4:38,H5:39,H6:40,HEAD:41,HR:42,HTML:43,I:44,IFRAME:45,IMG:46,INPUT:47,INS:48,ISINDEX:49,KBD:50, LABEL:51,LEGEND:52,LI:53,LINK:54,MAP:55,MENU:56,META:57,NOFRAMES:58,NOSCRIPT:59,OBJECT:60,OL:61,OPTGROUP:62,OPTION:63,P:64,PARAM:65,PRE:66,Q:67,S:68,SAMP:69,SCRIPT:70,SELECT:71,SMALL:72,SPAN:73,STRIKE:74,STRONG:75,STYLE:76,SUB:77,SUP:78,TABLE:79,TBODY:80,TD:81,TEXTAREA:82,TFOOT:83,TH:84,THEAD:85,TITLE:86,TR:87,TT:88,U:89,UL:90,VAR:91,NOINDEX:100},ga=0;t(0);var V=0,ha=1,Z=0,ia=[0,0],ma=0,ja=[0,0],ba={},na=/^(password|passwd|pswd)$/,Ba=!0,Da=!1,za="",Ea=!1,oa=!0,qa=ra(),C="metrikaId_"+Math.random(), sa={},xa=":submit"+Math.random();if("MetrikaPlayer"!=h.name){k.on(f,"mousemove",Na);k.on(f,"click,dblclick,mousedown",L);k.on(f,"mouseup",Ma);k.on(h,"scroll",ta);if("onmousewheel"in f)k.on(f,"mousewheel",U);else k.on(f,"wheel",U);k.on(h,"beforeunload",ua);if(!kb)k.on(h,"unload",ua);k.on(h,"resize",Aa);k.on(f,"keydown",Ra);k.on(f,"keypress",Sa);k.on(f,"copy",Ca);k.on(f,"touchmove,touchstart",fa);if(f.body)k.on(f,"mouseleave",Q);f.attachEvent&&!h.opera?(k.on(f,"focusin",aa),k.on(f,"focusout",da)):(k.on(h, "focus",Fa),k.on(h,"blur",pa),k.on(f,"blur",pa));f.addEventListener?(k.on(f,"scroll",Oa),k.on(f,"focus",R),k.on(f,"blur",S),k.on(f,"change",M),k.on(f,"submit",F)):f.attachEvent&&(k.on(f,"focusin",R),k.on(f,"focusout",S),function(){for(var a=f.getElementsByTagName("form"),b=0;b]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>","gi"),u.sendContent(l.getDocumentHTML().replace(e,""),t,d,va,wa),!0;n&&(n.open("get",B().href,!0),n.onreadystatechange=q(function(){if(4==n.readyState){var a=n.getResponseHeader("content-type")||"";r&&-1===a.indexOf("charset=")&&(a=t);u.sendContent(n.responseText,a,d,va,wa)}},"updatePage.1"),n.overrideMimeType&& r&&n.overrideMimeType(t),n.send(null));return!0},"uploadPage")}return{start:function(){ka.activate()},stop:function(){ka.clear();k.un(f,"mousemove",Na);k.un(f,"click,dblclick,mousedown",L);k.un(f,"mouseup",Ma);k.un(f,"mousewheel,wheel",U);k.un(h,"scroll",ta);k.un(h,"beforeunload",ua);k.un(h,"unload",ua);k.un(h,"resize",Aa);k.un(f,"keydown",Ra);k.un(f,"keypress",Sa);k.un(f,"copy",Ca);k.un(f,"touchmove,touchstart",fa);f.body&&k.un(f,"mouseleave",Q);k.un(f,"focusin",aa);k.un(f,"focusout",da);k.un(h, "focus",Fa);k.un(h,"blur",pa);k.un(f,"blur",pa);f.removeEventListener?(k.un(f,"scroll",Oa),k.un(f,"focus",R),k.un(f,"blur",S),k.un(f,"change",M),k.un(f,"submit",F)):f.detachEvent&&(k.un(f,"focusin",R),k.un(f,"focusout",S),function(){for(var a=f.getElementsByTagName("form"),b=0;b"+a.innerHTML+""}(c=f.doctype)&&(b="\n");return b+a},getRootElement:function(){var a=f.documentElement; return"CSS1Compat"==f.compatMode?a:f.body||a},getViewportSize:function(){var a=l.getRootElement();return[a.clientWidth,a.clientHeight]},getDocumentSize:function(){var a=l.getRootElement(),b=l.getViewportSize();return[Math.max(a.scrollWidth,b[0]),Math.max(a.scrollHeight,b[1])]},getDocumentScroll:function(){return[h.pageXOffset||f.documentElement&&f.documentElement.scrollLeft||f.body&&f.body.scrollLeft||0,h.pageYOffset||f.documentElement&&f.documentElement.scrollTop||f.body&&f.body.scrollTop||0]},getElementXY:function(a){if(!a.ownerDocument|| "PARAM"==a.tagName||a==f.body||a==f.documentElement)return[0,0];if(a.getBoundingClientRect){a=a.getBoundingClientRect();var b=l.getDocumentScroll();return[Math.round(a.left+b[0]),Math.round(a.top+b[1])]}for(var c=b=0;a;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return[b,c]},getElementParent:function(a){return a==f.documentElement?null:a==f.body?f.documentElement:a.parentNode}},g={isArray:function(a){return"function"==typeof Array.isArray?Array.isArray(a):"[object Array]"==Object.prototype.toString.call(a)}, mergeArrays:function(a){for(var b=1;b>8,h=h&255,h=h^f;e+=h;d+= e}while(--g);e=(e&255)+(e>>8);d=(d&255)+(d>>8)}a=(e&255)+(e>>8)<<8|(d&255)+(d>>8);return 65535==a?0:a};l.calcTextChecksum=function(a){var b="";a=a.childNodes;for(var c=0,e=a.length;c]*>|[\u0000-\u0020])/g,""))};l.getFormNumber=function(a){for(var b=f.getElementsByTagName("form"),c=0,e=b.length;ca.selectedIndex:!0};l.getElementsByClassName=function(a,b){b=b||f;for(var c=b.getElementsByTagName("*"),e=[],d=0;darguments.length?!0:!!d;for(var g=b.split(","),f=0;farguments.length?!0:!!d;for(var g=b.split(","),h=0;harguments.length&&(b=a,a=0);1>arguments.length&& (b=1073741824);return Math.floor(Math.random()*(b-a))+a};var S=E.inherit({id:"form",enctype:"application/x-www-form-urlencoded",htmlfileOnly:!1,_initComponent:function(){S.superclass._initComponent.apply(this,arguments);"_htmlfile"in S.prototype||(S.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:f)},request:function(a,b,c,e){var d=this._doc;if(!d)return c.call(e,!1);b=this._splitParams(b);var f="ifr"+g.random(),h=d.createElement("div");h.style.position= "absolute";h.style.left="-99999px";h.style.top="-99999px";var k=['','
'];g.forEachKey(b.post,function(a){g.mergeArrays(k,[''])});g.mergeArrays(k,["
"]);h.innerHTML=k.join("");d.body.appendChild(h);var l=h.getElementsByTagName("form")[0];g.forEachKey(b.post, function(a,b){l[a].value=b});l.submit();g.setTimeout(function(){d.body.removeChild(h)},1E4,"TransportForm.request.2");return c.call(e,!0)},_createHtmlfile:function(){try{if(h.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();a.write("");a.close();return a}}catch(b){}return null}}),M=S.inherit({id:"htmlfile",htmlfileOnly:!0}),K=E.inherit({id:"img",request:function(a,b,c,e){a=this._buildUrl(a,b);b=f.createElement("img");b.onload=q(function(){c.call(e,!0)},"TransportImage.request"); b.onerror=q(function(){c.call(e,!1)},"TransportImage.request");b.src=a}});g.defer=function(a,b,c,e,d){return g.setTimeout(function(){a.apply(c,e||[])},b,d)};var N=v.inherit({protocol:"",host:"mc.yandex.ru",resource:"",counterId:"",counterType:0,retry:!1,transports:[J,K,M],_initComponent:function(){N.superclass._initComponent.apply(this,arguments);this.retry&&(this._storage=new ea)},send:function(a,b,c,e){var d=this._registerRequest(a,b);this._sendSavedRequest(d,a,b,c,e)},_sendSavedRequest:function(a, b,c,e,d){var f=h.Ya._metrika.firstReqStatus;if("process"==f)h.Ya._metrika.firstReqCallbacks=g.mergeArrays(h.Ya._metrika.firstReqCallbacks||[],[[this,arguments]]);else{f||(h.Ya._metrika.firstReqStatus="process");f={};this.counterType&&(f["cnt-class"]=this.counterType);g.mixin(f,b);c.st=Math.round((new Date).getTime()/1E3);c.u=N._userID;var k=[this.protocol,"//",this.host,"/"+this.resource+"/"+this.counterId].join(""),l=[];c&&(g.forEachKey(c,function(a,b){"t"!=a&&g.mergeArrays(l,[a,b])}),c.t&&g.mergeArrays(l, ["t",c.t]));l.length&&(f["browser-info"]=l.join(":"));return N.superclass.send.call(this,k,f,function(){h.Ya._metrika.firstReqStatus="complete";this._unregisterRequest(a);var b=h.Ya._metrika.firstReqCallbacks;h.Ya._metrika.firstReqCallbacks=null;if(b)for(var c=0;c+new Date&&2>=b.browserInfo.rqnl&&(new N({protocol:b.protocol,host:b.host,resource:b.resource,counterId:b.counterId, counterType:b.counterType,postParams:b.postParams||[],retry:!0})).send(b.params,b.browserInfo)})};var F={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",tail:"+/=",tailSafe:"*-_",encode:function(a,b){for(var c=(F.abc+(b?F.tailSafe:F.tail)).split(""),e=a.length,d=[],f=e-e%3,h,k=0;k>18&63],c[h>>12&63],c[h>>6&63],c[h&63]]);switch(e-f){case 1:h=a[f]<<4;g.mergeArrays(d,[c[h>>6&63],c[h&63],c[64],c[64]]);break;case 2:h=(a[f]<< 10)+(a[f+1]<<2),g.mergeArrays(d,[c[h>>12&63],c[h>>6&63],c[h&63],c[64]])}return d.join("")}},mb={encode:function(a){for(var b=[],c=0,e=a.length;cd?b.push(d):(127d?b.push(d>>6|192):(b.push(d>>12|224),b.push(d>>6&63|128)),b.push(d&63|128))}return b}},lb=N.inherit({resource:"webvisor",transports:[J,S],postParams:["wv-data"],sendContent:function(a,b,c,e,d,g,h){if(!a)return!1;-1+new Date&&this.onFlush.call(this.onFlushCtx||this,a.data,a.meta,a.pnum);this.clear()}},append:function(a,b){g.mergeArrays(this._data,a);this._saveToStorageThrottled();this.active&&((b||this._data.length>=this.maxBufferSize)&& this._flush(),this._flushTID||(this._flushTID=g.defer(this._flush,this.flushTimeout,this,[],"DataBuffer._flush")))},activate:function(){this.active||(this.active=!0,this.append([]))},clear:function(){this._data.length=0;this._flushTID=null;this.storage&&this.storage.remove(this.storageKey)},_flush:function(){this.onFlush.call(this.onFlushCtx||this,this._data,this.meta,this._packetNumber);this._packetNumber++;this.clear()},_saveToStorage:function(){this.storage&&this._data.length&&this.storage.set(this.storageKey, {data:this._data,meta:this.meta,pnum:this._packetNumber,time:+new Date})}});g.trim=function(a,b){a=String(a).replace(/^\s+|\s+$/g,"");b&&a.length>b&&(a=a.substr(0,b));return a};g.isString=function(a){return"[object String]"==Object.prototype.toString.call(a)};g.arrayIndexOf=function(a,b){for(var c=0;c>>0};w.getFingerPrint=function(){var a=[];if(I.plugins&&I.plugins.length)for(var b=0;bob)var l=!0;else b("site-info",f);c.saveRef&&(la=d);g.mixin(e,this._getTechInfo(a.title,c,this.counterId,a.ts,a.tz,this._trackHash,this.hitId,this.webvisor,this.counter));this.send(k,e,function(){l&&(new fa({protocol:this.protocol,counterType:this.counterType, counterId:this.counterId,hitId:this.hitId,trackHash:this.trackHash,webvisor:this.webvisor,counterNum:this.counterNum,counter:this.counter})).sendParams(a.userParams);g.isFunction(a.callback)&&a.callback.apply(a.ctx,arguments)},this)}},_prepareHitUrl:function(a){var b=B(),c=b.host,b=b.href,e;if(!g.isString(a))return b;if(-1!=a.search(/^\w+:\/\//))return a;e=a.charAt(0);if("?"==e)return e=b.search(/\?/),-1==e?b+a:b.substr(0,e)+a;if("#"==e)return e=b.search(/#/),-1==e?b+a:b.substr(0,e)+a;if("/"==e){if(e= b.search(c),-1!=e)return b.substr(0,e+c.length)+a}else return c=b.split("/"),c[c.length-1]=a,c.join("/");return a},_getTechInfo:function(a,b,c,e,d,f,k,v,x){function p(a,b){a&&b&&(m[a]=b)}function y(a){b[a]&&p(a,"1")}b=b||{};var m={};e=e||P.getTimestamp();d=d||P.getTimezone();p("j",w.getJavaEnabled()?"1":"");U&&p("s",U.width+"x"+U.height+"x"+(U.colorDepth||U.pixelDepth));h.devicePixelRatio&&p("sk",h.devicePixelRatio);p("f",w.getFlashVersion());p("l",w.getSilverlightVersion());p("fpr",w.getFingerPrint()); p("cn",this.counterNum);if(!b.pa){var q=l.getViewportSize();p("w",q[0]+"x"+q[1])}p("z",d);p("i",e);p("et",Math.round((new Date).getTime()/1E3));p("en",l.getDocumentCharset());p("v",V);p("c",I.cookieEnabled?"1":"");p("jv",w.getJScriptVersion());p("la",w.getLanguage());p("ntf",w.getNotificationPermission());f&&p("wh","1");d="ar ln dl ad nb pa pq".split(" ");for(e=0;ek&&(k*=-1),k%=65535;p("wn",k||g.fletcher(h.name));try{h.history&&p("hl",String(h.history.length))}catch(A){}}k="";this.sendTitle&&(k=this._getTitle(a)); p("t",k);return m},_getTitle:function(a){var b="";b="undefined"==typeof a?(b=l.getDocumentTitle())?g.trim(b,Va):"":g.trim(a,Va);return b}});g.array2Props=function(a){for(var b=a.length,c={},e=c,d=0;d=w.getJScriptVersion()};var aa={};aa._cookie=new Y({onlyCurrentDomain:!0});aa.log=q(function(){var a=-1a?"0":"")+a};P.getTimestamp=function(){for(var a=new Date,a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],b="",c=0;cn||1]+>/gi,""));T.sendClickLink({url:c,title:c==d?"":d,modes:a})};if(Za.test(d)||Za.test(c)||qa(c,Q)||qa(d,Q))a=!0;var f=l.classNameExists(b,"ym-disable-tracklink"),d=l.classNameExists(b,"ym-external-link");f||(f={ln:!0,dl:a},d?e(f):(d=b.hostname||g.parseUrl(b.href).hostname||"",ab(B().hostname,d)?a&&(f.ln=!1,e(f)):c&&-1!=c.search(/^ *(data|javascript):/i)||(f.ut=ia,e(f))))}}function p(b){"undefined"== typeof b&&(b=!0);!0===b&&(b={});d._clickmap&&d._clickmap.destroy();b&&(d._clickmap=new rb({filter:b.filter,ignoreTags:b.ignoreTags,quota:b.quota,isTrackHash:b.isTrackHash,protocol:"https:",counterId:a,counterType:c,startTime:tb}))}function y(a,b){function c(){if(!z){y&&g.clearTimeout(y);var d;d=t?v:v+ +new Date-x;d=b-d;0>d&&(d=0);y=g.setTimeout(function(){z=!0;m(!1);a()},d,"trackUserTime")}}function d(){t=p=q=!0;v+=+new Date-x;x=+new Date;c()}function e(){p||q||(v=0);x=+new Date;p=q=!0;t=!1;c()}function l(){q|| (p=!0,t=!1,q=!0,c())}function m(a){for(var b=0;bMath.random())&&y(function(){d.notBounce()},b)}}function I(a){function b(){var a=B().hash.split("#")[1];if("undefined"==typeof a)return!1;var c=a.indexOf("?");0