(function(d,b,ia){function L(e){for(var b=1,d=e.length;b<arguments.length;b++)e[d++]=arguments[b];return e.length}function G(){for(var e={},b="hash host hostname href pathname port protocol search".split(" "),p=b.length,q=p;q--;)e[b[q]]="";try{for(var r=d.location,q=p;q--;){var A=b[q];e[A]=""+r[A]}}catch(B){M&&(e=M)}return e}function Jb(e){return e?(""+e).replace(/^\s+/,"").replace(/\s+$/,""):""}function Ta(){return-1!=G().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)}function Fa(){return"MetrikaPlayer"==
d.name}function ja(e){return Math.floor(Math.random()*("number"==typeof e?e:1073741824))}function nb(){var e=b.documentElement,d=b.doctype,p=e.attributes,q="",r="",A="",r=e.outerHTML;if(!r){for(r=0;r<p.length;r++){var B=p[r];B&&(q+=" "+B.name+'="'+(B.value||"")+'"')}r="<html"+q+">"+e.innerHTML+"</html>"}d&&(A="<!DOCTYPE "+d.name+(d.publicId?' PUBLIC "'+d.publicId+'"':"")+(d.systemId?' "'+d.systemId+'"':"")+">\n");return A+r}function ob(e){var b=[],d;for(d in e)e.hasOwnProperty(d)&&(b[b.length]=d+
"="+encodeURIComponent(e[d]));return b.join("&")}function Ga(e){for(var b=e.length,d=0,q=255,r=255;b;){var A=21<b?21:b,b=b-A;do{var B="string"==typeof e?e.charCodeAt(d):e[d];d++;if(255<B)var v=B>>8,B=B&255,B=B^v;q+=B;r+=q}while(--A);q=(q&255)+(q>>8);r=(r&255)+(r>>8)}e=(q&255)+(q>>8)<<8|(r&255)+(r>>8);return 65535==e?0:e}function U(e,d,p,q){e=e+"="+encodeURIComponent(d);p&&(d=new Date,d.setTime(d.getTime()+6E4*p),e+=";expires="+d.toGMTString());q&&(e+=";domain="+q);b.cookie=e+";path=/"}function ua(e){return b.cookie.match(RegExp("(?:^|;\\s*)"+
e+"=([^;]*)"))?decodeURIComponent(RegExp.$1):null}function pb(){U("_metrika_enabled","1",60);var e=!!ua("_metrika_enabled");U("_metrika_enabled","",-1,void 0);return e}function va(){var e=b.documentElement;return"CSS1Compat"==b.compatMode?e:b.body||e}function Ua(){var e=va();return[e.clientWidth,e.clientHeight]}function Va(){var e=va(),b=Ua();return[Math.max(e.scrollWidth,b[0]),Math.max(e.scrollHeight,b[1])]}function Ha(){return[d.pageXOffset||b.documentElement&&b.documentElement.scrollLeft||b.body&&
b.body.scrollLeft||0,d.pageYOffset||b.documentElement&&b.documentElement.scrollTop||b.body&&b.body.scrollTop||0]}function Wa(e){if(!e.ownerDocument||"PARAM"==e.tagName||e==b.body||e==b.documentElement)return[0,0];if(e.getBoundingClientRect)return e=e.getBoundingClientRect(),[Math.round(e.left+O[0]),Math.round(e.top+O[1])];for(var d=0,p=0;e;)d+=e.offsetLeft,p+=e.offsetTop,e=e.offsetParent;return[d,p]}function V(e,d){return e==b.documentElement?null:d?e.tagName.toLowerCase()===d?e:V(e.parentNode,d):
e==b.body?b.documentElement:e.parentNode}function Xa(e,b){var d=[];if(e)for(var q=e.childNodes,r=0,A=q.length;r<A;r++){var B=q[r];"INPUT"==B.nodeName&&B.type&&"hidden"==B.type.toLocaleLowerCase()||b&&B.nodeName!=b||L(d,B)}return d}function Ia(e){var d=Wa(e);e=e==b.body||e==b.documentElement?Va():[e.offsetWidth,e.offsetHeight];return[d[0],d[1],e[0],e[1]]}function Za(e){var b="";e=e.childNodes;for(var d=0,q=e.length;d<q;d++)3==e[d].nodeType&&(b+=e[d].nodeValue);return Ga(b.replace(/[\u0000-\u0020]+/g,
""))}function Ja(b){var d="",p="width height align title alt name".split(" ");"IMG"==b.tagName&&(d+=b.src.toLowerCase());"A"==b.tagName&&(d+=b.href.toLowerCase());for(var d=d+String(b.className||"").toLowerCase(),q=0;q<p.length;q++)b.getAttribute&&(d+=String(b.getAttribute(p[q])||"").toLowerCase());return Ga(d.replace(/[\u0000-\u0020]+/g,""))}function $a(d){for(var z=b.getElementsByTagName("form"),p=0,q=z.length;p<q;p++)if(z[p]==d)return p;return-1}function Ka(b,d){return RegExp("(?:^|\\s)"+d+"(?:\\s|$)").test(b.className)}
function ab(b){return"INPUT"==b.nodeName&&"submit"!=b.type&&"image"!=b.type&&"hidden"!=b.type?"radio"==b.type||"checkbox"==b.type?!b.checked:!b.value:"TEXTAREA"==b.nodeName?!b.value:"SELECT"==b.nodeName?0>b.selectedIndex:!0}function fa(b,d,p,q){Q[Q.length]=[p,p];b.addEventListener?b.addEventListener(d,p,!!q):b.attachEvent&&b.attachEvent("on"+d,p)}function La(b,d,p,q){for(var r=0;r<Q.length;r++)if(Q[r]&&Q[r][0]==p){var A=Q[r][1];delete Q[r];break}A&&(b.removeEventListener?b.removeEventListener(d,A,
!!q):b.detachEvent&&b.detachEvent("on"+d,A))}function wa(b){try{delete d[b]}catch(z){d[b]=ia}}function xa(d){var z=b.createElement("script");z.type="text/javascript";z.async=!0;z.src=d;try{var p=b.getElementsByTagName("html")[0];b.getElementsByTagName("head")[0]||p.appendChild(b.createElement("head"));var q=b.getElementsByTagName("head")[0];q.insertBefore(z,q.firstChild)}catch(r){}}function ya(){if(top!=d&&parent==top&&d.postMessage&&!Ya.Metrika_visorPlayerOn){Ya.Metrika_visorPlayerOn=!0;var e=b.createElement("div");
e.innerHTML='<iframe name="RemoteIframe" allowtransparency="true" style="position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"></iframe>';var z=e.firstChild;setTimeout(function(){var d=b.body||b.documentElement;d.insertBefore(z,d.firstChild);try{var e=z.contentWindow.document}catch(r){}e&&(e.open(),e.write('<!doctype html><html><head><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7,IE=edge" /></head><body><script type="text/javascript">var newversion = true;try {if (top.postMessage) {window.onmessage = function(evt) {evt = evt || window.event;try {var message = new Function("return " + evt.data)();} catch (e) {return;}if (/(^|\\.)yandex\\.(ru|com|ua|kz|by|com\\.tr)(:\\d{4})?$/.test(evt.origin) && message.name == "script" && message.data) {var head = document.getElementsByTagName("head")[0];var base = document.createElement("base");base.href = message.data;head.appendChild(base);var script = document.createElement("script");script.src = message.data;head.appendChild(script);if (navigator.userAgent.indexOf("Firefox/3.6.") > -1) {parent.removeEventListener("message", window.onmessage, false);}window.onmessage = null;}};if (navigator.userAgent.indexOf("Firefox/3.6.") > -1) {parent.addEventListener("message", window.onmessage, false);}top.postMessage(\'{"name":"ping"}\', "*");}} catch (e) {}\x3c/script></body></html>'),
e.close())},500)}}function qb(e,z,p,q,r,A){function B(a){return function(){try{return a.apply(this,arguments)}catch(w){var b=a&&a.name||"",c=w.stack?", stack: "+w.stack:"";(new Image).src="//an.yandex.ru/jserr/"+e+"?"+ob({"cnt-class":100+z,errmsg:w.name+": "+w.message+", line: "+(w.number||w.lineNumber)+", func: "+b+c})}}}function v(a,w,b){var c=B(function(a){return b(a||d.event)});aa[aa.length]=[a,w,b,c];a.addEventListener?a.addEventListener(w,c,!0):a.attachEvent&&a.attachEvent("on"+w,c)}function u(a,
w,b){for(var c=0;c<aa.length;c++)if(aa[c]&&aa[c][0]==a&&aa[c][1]==w&&aa[c][2]==b){var d=aa[c][3];delete aa[c];break}d&&(a.removeEventListener?a.removeEventListener(w,d,!0):a.detachEvent&&a.detachEvent("on"+w,d))}function M(a){var w=va();return[a.pageX||a.clientX+O[0]-(w.clientLeft||0)||0,a.pageY||a.clientY+O[1]-(w.clientTop||0)||0]}function H(a){return a.target||a.srcElement}function Q(a){return(a.shiftKey?Kb:0)|(a.ctrlKey?rb:0)|(a.altKey?Lb:0)|(a.metaKey?Ib:0)|(a.ctrlKey||a.altKey?bb:0)}function P(a){var w=
(new Date).getTime();a&&w<a&&(sb+=a-w+l);d.setTimeout(B(function(){P(w)}),l)}function N(){var a=(new Date).getTime()+sb;a<tb&&(a=tb+l/2);return tb=a}function J(){return Math.round((N()-Ub)/Ma)}function W(a,w){w=Math.max(0,Math.min(w,65535));L(a,w>>8,w&255)}function C(a,w){L(a,w&255)}function m(a,w){for(w=Math.max(0,w|0);127<w;)L(a,w&127|128),w>>=7;L(a,w)}function U(a,w){255<w.length&&(w=w.substr(0,255));L(a,w.length);for(var b=0;b<w.length;b++)W(a,w.charCodeAt(b))}function ga(a,w){m(a,w.length);for(var b=
0;b<w.length;b++)m(a,w.charCodeAt(b))}function fa(a){if(!a.nodeName)return a[K]=-1,null;var b=+a[K];if(!isFinite(b)||0>=b)return null;var c=Gb,d=0,f=V(a),h=f&&f[K]?f[K]:0;0>h&&(h=0);var e=a.nodeName.toUpperCase(),g=Vb[e];g||(c|=pb);var s;a:{s=Xa(V(a),a.nodeName);for(var t=0;t<s.length;t++)if(s[t]==a){s=t;break a}s=0}s||(c|=qb);t=Ia(a);(f=f?Ia(f):null)&&t[0]==f[0]&&t[1]==f[1]&&t[2]==f[2]&&t[3]==f[3]&&(c|=Mb);cb[b].pos=t[0]+"x"+t[1];cb[b].size=t[2]+"x"+t[3];a.id&&"string"==typeof a.id&&(c|=Nb);(f=Za(a))&&
(c|=Fb);var n=Ja(a);n&&(d|=Hb);var l;a:{l=Xa(V(a),a.tagName);for(var k=0;k<l.length;k++)if((!l[k].id||"string"!=typeof l[k].id)&&Ja(l[k])==n&&Za(l[k])==f){l=!0;break a}l=!1}if(l)var c=c|Ob,Ma=Ga((a.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,""));l=[];C(l,Wb);m(l,b);C(l,c);m(l,h);g?C(l,g):U(l,e);s&&m(l,s);c&Mb||(m(l,t[0]),m(l,t[1]),m(l,t[2]),m(l,t[3]));c&Nb&&U(l,a.id);f&&W(l,f);c&Ob&&W(l,Ma);C(l,d);n&&W(l,n);return l}function da(a,b,c,f,d,h){for(;c&&(!c.offsetWidth||!c.offsetHeight);)c=V(c);
if(!c)return null;var e=c[K];if(!e||0>e)return null;var g={mousemove:ha,click:ib,dblclick:jb,mousedown:ba,mouseup:ya,touch:x}[b];if(!g)return null;var s=Wa(c);c=[];C(c,g);m(c,a);m(c,e);m(c,Math.max(0,f[0]-s[0]));m(c,Math.max(0,f[1]-s[1]));/^mouse(up|down)|click$/.test(b)&&(a=d||h,C(c,2>a?kb:a==(d?2:4)?mb:lb));return c}function ia(a,c){var b=[];C(b,E);m(b,a);m(b,c[0]);m(b,c[1]);return b}function ja(a,c,b){var f=[];b=b[K];if(!b||0>b)return null;C(f,y);m(f,a);m(f,c[0]);m(f,c[1]);m(f,b);return f}function qa(a,
c,b){var f=[];C(f,wa);m(f,a);m(f,c[0]);m(f,c[1]);m(f,b[0]);m(f,b[1]);return f}function ra(a,c,b,f){var d=[];C(d,ub);m(d,a);W(d,c);C(d,b);a=f[K];if(!a||0>a)a=0;m(d,a);return d}function sa(a,c){var b,f;0==c.length?f=b="":100>=c.length?(b=c,f=""):200>=c.length?(b=c.substr(0,100),f=c.substr(100)):(b=c.substr(0,97),f=c.substr(c.length-97));var d=[];C(d,xa);m(d,a);ga(d,b);ga(d,f);return d}function ta(a){var c=[];C(c,Ta);m(c,a);return c}function ea(a){var c=[];C(c,Xb);m(c,a);return c}function ua(a){var c=
[];C(c,Yb);m(c,a);return c}function Ca(a,c){var b=[];C(b,Zb);m(b,a);m(b,c[K]);return b}function Da(a,c){var b=[];C(b,F);m(b,a);m(b,c[K]);return b}function Ea(a,c,b){var f=[];C(f,$b);m(f,a);m(f,c[K]);U(f,String(b));return f}function Fa(a,c){var b=c[K];if(0<b){var f=[],d=Ia(c),h=cb[b],e=d[0]+"x"+d[1],g=d[2]+"x"+d[3];e!=h.pos&&(h.pos=e,C(f,ka),m(f,a),m(f,b),m(f,d[0]),m(f,d[1]));g!=h.size&&(h.size=g,C(f,X),m(f,a),m(f,b),m(f,d[2]),m(f,d[3]));if(f.length)return f}return null}function La(a){var c=a[K];if(!c||
0>c||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||Ka(a.form,"-metrika-noform"))return null;var b=$a(a.form);if(0>b)return null;var f;f="INPUT"==a.nodeName?{text:0,password:2,radio:3,checkbox:4,file:6,image:7}[a.type]:{SELECT:1,TEXTAREA:5}[a.nodeName];if("number"!=typeof f)return null;for(var d=-1,h=a.form.elements,e=h.length,g=0,s=0;g<e;g++)if(h[g].name==a.name){if(h[g]==a){d=s;break}s++}if(0>d)return null;h=[];C(h,t);m(h,c);m(h,b);m(h,f);ga(h,a.name||"");m(h,d);return h}function Sa(a,c){var b=
$a(c);if(0>b)return null;for(var f=c.elements,d=f.length,h=[],e=0;e<d;e++)if(!ab(f[e])){var g=f[e][K];g&&0<g&&L(h,g)}f=[];C(f,n);m(f,a);m(f,b);m(f,h.length);for(b=0;b<h.length;b++)m(f,h[b]);return f}function vb(){var a=[];C(a,ac);return a}function za(a){clearTimeout(Pb);for(var b=(new Date).getTime()+h;db.length&&(a||+(new Date).getTime()<b);){var f=db.shift();if(f=f[0].apply(d,f[1])){var e=f;6500<Aa.length+e.length&&c();for(var f=Aa,t=0,l=f.length;t<e.length;t++)f[l++]=e[t];eb||(eb=d.setTimeout(B(c),
g))}}!0===a&&c(!0);db.length&&(Pb=d.setTimeout(B(za),s))}function I(a,c,b){L(db,[a,c]);za(b)}function k(a){if(a[K])I(Fa,[J(),a]);else{var c=V(a);c&&k(c);a[K]=wb;cb[wb]={};wb++;I(fa,[a]);I(La,[a])}}function R(a){var c=H(a),b,f,d=0;if(c&&"SCROLLBAR"!=c.nodeName){if(c&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c.tagName))if(c[K])k(c);else if(b=V(c,"form"))for(b=b.elements,f=b.length;d<f;d++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[d].tagName)&&!b[d][K]&&k(b[d]);else k(c);else k(c);I(da,[J(),a.type,c,M(a),
a.which,a.button])}}function Na(a){R(a);var c,f;d.getSelection?(a=d.getSelection(),c=a.toString(),f=a.anchorNode):b.selection&&b.selection.createRange&&(a=b.selection.createRange(),c=a.text,f=a.parentElement());for(;f&&1!=f.nodeType;)f=f.parentNode;f&&"INPUT"==f.tagName&&"password"==f.type||f&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(f.className)||c==xb||(xb=c,I(sa,[J(),c]))}function fb(a){var c=N(),b=c-Qb;if(!(b<Rb)){var f=M(a),d=yb[0]-f[0],h=yb[1]-f[1],d=d*d+h*h;0>=d||16>d&&100>b||20>b&&256>d||(Qb=
c,yb=f,R(a))}}function S(){O=Ha();var a=N();a-Sb<Rb||10>Math.abs(O[0]-zb[0])&&10>Math.abs(O[1]-zb[1])||(Sb=a,zb=O,I(ia,[J(),O]))}function Ba(a){a=H(a);var c=Math.random(),f=[a.scrollLeft,a.scrollTop];if(a.localId){if(c=Ab[a.localId],!c||10>Math.abs(f[0]-c[0])&&10>Math.abs(f[1]-c[1]))return}else{for(;Ab[c];)c=Math.random();a.localId=c}Ab[a.localId]=f;a!==b&&(k(a),I(ja,[J(),f,a]))}function la(){I(qa,[J(),Ua(),Va()])}function Y(a){I(vb,[],!0);c(!0);if("beforeunload"==a.type)for(a=+new Date+50;+new Date<
a;);}function Oa(a,c,b){a=H(a);"INPUT"==a.tagName&&"password"==a.type||/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||(k(a),I(ra,[J(),c,b,a]))}function Pa(a){var c=a.keyCode,b=Q(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}[c]||112<=c&&123>=c||96<=c&&105>=c||b&bb)19==c&&(b&~bb)==rb&&(c=144),Oa(a,c,b|bb),Bb=!1,d.setTimeout(B(function(){Bb=!0}),1),67==c&&b&rb&&!(b&Lb||b&Kb)&&ma()}function D(a){Bb&&
!Cb&&0!==a.which&&(Oa(a,a.charCode||a.keyCode,Q(a)),Cb=!0,d.setTimeout(B(function(){Cb=!1}),1))}function ma(){Db||(Db=!0,xb&&I(ta,[J()]),d.setTimeout(B(function(){Db=!1}),1))}function na(){Qa||(Qa=!0,I(ea,[J()]))}function Z(){Qa&&(Qa=!1,I(ua,[J()]))}function Ra(a){(!Qa||a&&!a.fromElement)&&na()}function oa(a){a&&!a.toElement&&Z()}function $(a){a=H(a);var c,b,f=0;if(a&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[K])k(a);else if(c=V(a,"form"))for(c=c.elements,b=c.length;f<b;f++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c[f].tagName)&&
!c[f][K]&&k(c[f]);else k(a);I(Ca,[J(),a])}}function pa(a){(a=H(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(k(a),I(Da,[J(),a]))}function T(a){a=H(a);if(!("INPUT"==a.tagName&&"password"==a.type||a&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className))&&a&&/^INPUT|SELECT|TEXTAREA$/.test(a.tagName)){var c=/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;k(a);I(Ea,[J(),a,c])}}function a(a){a=H(a);if(!Ka(a,"-metrika-noform")&&"FORM"==a.nodeName){for(var c=a.elements,b=0;b<c.length;b++)ab(c[b])||
k(c[b]);I(Sa,[J(),a],!0)}}function f(a){S();if(a.touches&&a.touches.length){var c=H(a);if(c){k(c);for(var b=0;b<a.touches.length;b++)I(da,[J(),"touch",c,[a.touches[b].pageX,a.touches[b].pageY],0,0])}}}function c(a){clearTimeout(eb);eb=0;if(Aa.length){a={rn:Math.round(1E5*Math.random()),"wv-type":0,"cnt-class":z,"page-url":G().href,wmode:0,"wv-hit":q,"wv-part":bc++,"wv-check":Ga(Aa),"browser-info":["z",Eb,"i",gb].join(":")};for(var c=Aa,b=c.length,f=[],d=b-b%3,h,e=0;e<d;e+=3)h=(c[e]<<16)+(c[e+1]<<
8)+c[e+2],L(f,ca[h>>18&63],ca[h>>12&63],ca[h>>6&63],ca[h&63]);switch(b-d){case 1:h=c[d]<<4;L(f,ca[h>>6&63],ca[h&63],"__");break;case 2:h=(c[d]<<10)+(c[d+1]<<2),L(f,ca[h>>12&63],ca[h>>6&63],ca[h&63],"_")}c={"wv-data":f.join("")};r.send("visor","webvisor",a,c);Aa.length=0}}var h=100,s=200,g=15E3,l=20,Ma=50,Rb=10,Wb=1,ha=2,E=3,y=16,ba=4,ub=5,t=7,ka=9,X=10,n=11,x=12,ac=13,Xb=14,Yb=15,Zb=17,F=18,$b=19,Ta=27,wa=28,xa=29,ya=30,ib=32,jb=33,kb=1,lb=2,mb=4,Ob=1,pb=2,qb=4,Mb=8,Fb=16,Nb=32,Gb=64,Hb=2,Lb=1,Kb=
2,rb=4,Ib=8,bb=16,Vb={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},aa=[],sb=0;P(0);var tb=0,db=[],Pb,wb=1,Qb=0,yb=[0,0],Sb=0,zb=[0,0],Ab={},Bb=!0,Cb=!1,xb="",Db=!1,Qa=!0,ca="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*-".split(""),Aa=[],eb,bc=1,Ub=N(),K="metrikaId_"+Math.random(),cb={},hb=
":submit"+Math.random();if("MetrikaPlayer"!=d.name){v(b,"mousemove",fb);v(b,"click",R);v(b,"dblclick",R);v(b,"mousedown",R);v(b,"mouseup",Na);v(d,"scroll",S);v(d,"beforeunload",Y);cc||v(d,"unload",Y);v(d,"resize",la);v(b,"keydown",Pa);v(b,"keypress",D);v(b,"copy",ma);v(b,"touchmove",f);v(b,"touchstart",f);b.attachEvent&&!d.opera?(v(b,"focusin",Ra),v(b,"focusout",oa)):(v(d,"focus",na),v(d,"blur",Z),v(b,"blur",Z));b.addEventListener?(b.addEventListener("scroll",Ba,!0),b.addEventListener("focus",$,!0),
b.addEventListener("blur",pa,!0),b.addEventListener("change",T,!0),b.addEventListener("submit",a,!0)):b.attachEvent&&(v(b,"focusin",$),v(b,"focusout",pa),function(){for(var c=b.getElementsByTagName("form"),f=0;f<c.length;f++){for(var d=c[f].getElementsByTagName("*"),h=0;h<d.length;h++)/^INPUT|SELECT|TEXTAREA$/.test(d[h].tagName)&&v(d[h],"change",T);v(c[f],"submit",a)}}());(function(){var c=b.getElementsByTagName("form");if(c.length)for(var f=0;f<c.length;f++)c[f][hb]=c[f].submit,c[f].submit=function(){a({target:this});
return this[hb]()}})();"0:0"!=O.join(":")&&S();la();var Tb=function(a,c){if(a){var f={"wv-type":1,"cnt-class":z,"page-url":G().href,"wv-hit":q,"browser-info":["z",Eb,"i",gb,"pct",c||""].join(":")};b.all&&(a=a.replace(/\r\n/g,"\n"));var d;d=a;d=d.replace(/\r\n/g,"\n");for(var h=[],e=String.fromCharCode,g=0,s=d.length;g<s;g++){var t=d.charCodeAt(g);128>t?h.push(e(t)):(127<t&&2048>t?h.push(e(t>>6|192)):(h.push(e(t>>12|224)),h.push(e(t>>6&63|128))),h.push(e(t&63|128)))}d=h.join("");for(var h=[],l,n,k,
t=0,Ma=d.length;t<Ma;)l=d.charCodeAt(t++),e=d.charCodeAt(t++),g=d.charCodeAt(t++),s=l>>2,l=(l&3)<<4|e>>4,n=(e&15)<<2|g>>6,k=g&63,isNaN(e)?n=k=64:isNaN(g)&&(k=64),h.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(s)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(l)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(n)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(k));d={"wv-data":h.join("")};
r.sendMultipart("webvisor",f,d,3)}};A.uploadPage=function(a){if("function"==typeof d.toStaticHTML&&-1<d.toStaticHTML.toString().indexOf("NoScript"))return!1;var c=b.documentElement;if(c&&19E4<(""+c.innerHTML).length)return!1;var f=d.XMLHttpRequest?new d.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),h=(""+(b.characterSet||b.charset||"")).toLowerCase(),c="text/html"+(h?";charset="+h:"");if("html"==a)return a=RegExp("<script [^>]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>","gi"),Tb(nb().replace(a,
""),c),!0;f&&(f.open("get",G().href,!0),f.onreadystatechange=function(){4==f.readyState&&Tb(f.responseText,f.getResponseHeader("content-type"))},f.overrideMimeType&&h&&f.overrideMimeType(c),f.send(null));return!0}}return{stop:function(){u(b,"mousemove",fb);u(b,"click",R);u(b,"dblclick",R);u(b,"mousedown",R);u(b,"mouseup",Na);u(d,"scroll",S);u(d,"beforeunload",Y);u(d,"unload",Y);u(d,"resize",la);u(b,"keydown",Pa);u(b,"keypress",D);u(b,"copy",ma);u(b,"touchmove",f);u(b,"touchstart",f);u(b,"focusin",
Ra);u(b,"focusout",oa);u(d,"focus",na);u(d,"blur",Z);u(b,"blur",Z);b.removeEventListener?(b.removeEventListener("scroll",Ba,!0),b.removeEventListener("focus",$,!0),b.removeEventListener("blur",pa,!0),b.removeEventListener("change",T,!0),b.removeEventListener("submit",a,!0)):b.detachEvent&&(u(b,"focusin",$),u(b,"focusout",pa),function(){for(var c=b.getElementsByTagName("form"),f=0;f<c.length;f++){for(var d=c[f].getElementsByTagName("*"),h=0;h<d.length;h++)/^INPUT|SELECT|TEXTAREA$/.test(d[h].tagName)&&
u(d[h],"change",T);u(c[f],"submit",a)}}());(function(){for(var a=b.getElementsByTagName("form"),c=0;c<a.length;c++)a[c][hb]&&(a[c].submit=a[c][hb])})()},uploadPages:function(a,c){function f(){u(b,"DOMContentLoaded",f);u(d,"load",f);for(var h=a.split(/\n/),e=G().href,g=/regexp:/,s=0;s<h.length;s++){var t=h[s];if(t)if(g.test(t)){if(t=Jb(t.replace(g,"")),RegExp(t).test(e)){A.uploadPage(c);break}}else if(-1!==e.indexOf(t)){A.uploadPage(c);break}}}"complete"==b.readyState?f():(v(b,"DOMContentLoaded",f),
v(d,"load",f))}}}var Fb=!1,cc=-1===(""+d.navigator.userAgent).toLowerCase().search(/webkit/)&&-1!==(""+d.navigator.userAgent).toLowerCase().search(/gecko/),O=Ha(),Q=[];d.Ya=d.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.counters=Ya._metrika.counters||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};var Gb=!1,M=G(),Eb,gb,da=d.navigator,qa=d.screen,ra="https:"==M.protocol?"https:":"http:",Hb="$Rev: 1825 $".match(/(\d+)/)[1],sa="object"==typeof b.all,ib=64,ta=sa?512:2048,jb=sa?512:2048,kb=sa?100:400,
Ca="noindex",Da=50,lb=RegExp("\\.(3gp|7z|aac|ac3|acs|ai|avi|ape|apk|asf|bmp|bz2|cab|cdr|crc32|css|csv|cue|divx|dmg|djvu?|doc(x|m|b)?|emf|eps|exe|flac?|flv|iso|swf|gif|t?gz|jpe?g?|js|m3u8?|m4a|mp(3|4|e?g?)|m4v|md5|mkv|mov|msi|ods|og(g|m|v)|pdf|phps|png|ppt(x|m|b)?|psd|rar|rss|rtf|sea|sfv|sit|sha1|svg|tar|tif?f|torrent|ts|txt|vob|wave?|wma|wmv|wmf|webm|xls(x|m|b)?|xpi|g?zip)$","i"),Ib=+new Date,mb="_ym_visorc",Sa,Ea;d.Ya.Metrika=function(e,z,p,q){function r(a,f){f=f||256;if(!a)return"";a.length>f&&
(a=a.substr(0,f));return(d.encodeURIComponent||d.escape)(a).replace(/\+/g,"%2B")}function A(a){function f(a){return a?a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):""}if(a===ia)return"";if(null===a)return"null";switch(a.constructor){case Boolean:return a.toString();case Number:return isFinite(a)?a.toString():"null";case String:return'"'+f(a)+'"';case Array:for(var c=[],b=0,d=a.length;b<d;b++)c[c.length]=A(a[b]);return"["+c.join(",")+"]";case Object:c="{";b=0;for(d in a)if(a.hasOwnProperty(d)){var e=
a[d];e!==ia&&(c+=(b?",":"")+'"'+f(d)+'":'+A(e),b++)}return c+"}";default:return"null"}}function B(a){for(var b=+new Date,c=1;0<c;c++)if(0==c%1E3){var d=+new Date;if(b>d)break;if(d-b>a)break}}function v(a,b){if(!a||!b)return!1;for(var c=[],d=0;d<b.length;d++)c.push(b[d].replace(/\^/g,"\\^").replace(/\$/g,"\\$").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\|/g,"\\|").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\?/g,"\\?").replace(/\*/g,"\\*").replace(/\+/g,"\\+").replace(/\{/g,
"\\{").replace(/\}/g,"\\}"));return RegExp("\\.("+c.join("|")+")$","i").test(a)}function u(a){a=a.target||a.srcElement;if(!a)return!1;3==a.nodeType&&(a=a.parentNode);for(var b=a.nodeName.toString().toLowerCase();a.parentNode&&a.parentNode.nodeName&&("a"!=b&&"area"!=b||!a.href);)a=a.parentNode,b=a.nodeName.toString().toLowerCase();return a.href?a:!1}function H(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}function N(a,b){function c(a){a=a.split(":");a=a[1]||"";a=a.replace(/^\/*/,
"").replace(/^www\./,"");return a.split("/")[0]}return a&&b?c(a)==c(b)?!0:!1:a||b?!1:!0}function O(a,b){var c=b.target,h=!1;if(!b.hostname)return!1;c&&"_self"!=c&&"_top"!=c&&"_parent"!=c||(h=!0);(c=a.shiftKey||a.ctrlKey||a.altKey)||a.modifiers&&d.Event&&(c=a.modifiers&d.Event.CONTROL_MASK||a.modifiers&d.Event.SHIFT_MASK||a.modifiers&d.Event.ALT_MASK);return h&&!c}function P(a,b,c,d,e){function g(a,c){l[l.length]=a;l[l.length]=c}e=e||{};c="undefined"!=typeof c?c:Y;var l=[];e.ar&&!e.onlyData&&(c=W(c),
a=W(a));g("page-ref",r(c,ta));g("page-url",r(a,ta));g("browser-info",m(b,e));Ta()?g("ut",Ca):"undefined"!=typeof e.ut&&g("ut",r(""+e.ut,ib));d&&g("site-info",r(A(d),jb));e.saveRef&&(Y=c);a=J(Na,l);Fa()||((new Image).src=a,C(a),e.isDelay&&B(e.delay));return a}function Q(a,f,c,h,s,g,l){function k(a,c){q[q.length]=a;q[q.length]=c}s=s||{};c="undefined"!=typeof c?c:Y;var q=[];s.ar&&!s.onlyData&&(c=W(c),a=W(a));if(!Fa()){var p="_ymjsp"+("--"==e?"":ja()),ha=b.createElement("script");d[p]=function(a){try{delete d[p]}catch(c){d[p]=
ia}l(a);ha.parentNode&&ha.parentNode.removeChild(ha)};k("wmode",5);k("callback",p);k("page-ref",r(c,ta));k("page-url",r(a,ta));a=m(f,s);g&&(a=["vc",g,a].join(":"));k("browser-info",a);Ta()?k("ut",Ca):"undefined"!=typeof s.ut&&k("ut",r(""+s.ut,ib));h&&k("site-info",r(A(h),jb));s.saveRef&&(Y=c);h=J(Na,q);ha.type="text/javascript";ha.src=h;s=b.getElementsByTagName("head")[0];s.insertBefore(ha,s.firstChild);C(h)}}function J(a,b){for(var c=["cnt-class",p].concat(b),d=[],s=0;s<c.length;s+=2){var g=c[s+
1];g&&(d[d.length]=c[s]+"="+g)}return la+a+e+"?"+d.join("&")}function W(a){var b=G(),c=b.host,b=b.href;if(!a)return b;if(-1!=a.search(/^\w+:\/\//))return a;var d=a.charAt(0);if("?"==d)return d=b.search(/\?/),-1==d?b+a:b.substr(0,d)+a;if("#"==d)return d=b.search(/#/),-1==d?b+a:b.substr(0,d)+a;if("/"==d){if(d=b.search(c),-1!=d)return b.substr(0,d+c.length)+a}else return c=b.split("/"),c[c.length-1]=a,c.join("/");return a}function C(a){"function"==typeof d.ymLog&&d.ymLog(a)}function m(a,f){function c(a,
c){a&&c&&(e[e.length]=[a,c].join(":"))}function h(a){c(a,f[a]?"1":"")}f=f||{};var e=[],g=-1*(new Date).getTimezoneOffset(),l=wa();gb||(gb=l,Eb=g);c("j",da.javaEnabled()?"1":"");qa&&c("s",qa.width+"x"+qa.height+"x"+(qa.colorDepth||qa.pixelDepth));null===ma&&(ma=V());c("f",ma);null===na&&(na=ea());c("l",na||"");f.pa||c("w",xa()+"x"+ya());c("z",g);c("i",l);c("en",(""+(b.characterSet||b.charset||"")).toLowerCase());c("v",Hb);c("c",da.cookieEnabled?"1":"");sa&&b.documentMode&&(null===Z&&(Z=Function("return /*@cc_on @_jscript_version @*/;")()),
Z&&c("jv",Z));c("la",(da&&(da.language||da.browserLanguage)||"").toLowerCase());c("ex","prerender"==b.webkitVisibilityState?"pre1":"");T&&c("wh","1");l="ar ln dl ad nb pa".split(" ");for(g=0;g<l.length;g++)h(l[g]);l=["va","vt","sn","sa","he"];f.nb&&l.push("cl");for(g=0;g<l.length;g++){var m=l[g];c(m,f[m])}c("rn",ja());c("hid",R);c("ds",Ia());k._firstPaint||(k._firstPaint=Ua(),c("fp",k._firstPaint));if(k._webvisor){d.name||(d.name=Math.round(65535*Math.random()));if(g=+d.name)0>g&&(g*=-1),g%=65535;
c("wn",g||Ga(d.name));try{d.history&&c("hl",String(d.history.length))}catch(q){}}g="undefined"==typeof a?(g=ga())?r(g,kb):"":r(a,kb);c("t",g);return e.join(":")}function V(){var a=null,b=null,c,h=d.navigator;if("undefined"!=typeof h.plugins&&"object"==typeof h.plugins["Shockwave Flash"])a=h.plugins["Shockwave Flash"].description,!a||"undefined"!=typeof h.mimeTypes&&h.mimeTypes["application/x-shockwave-flash"]&&!h.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(b=a.replace(/([a-zA-Z]|\s)+/,
"").replace(/(\s+r|\s+b[0-9]+)/,"."));else if("undefined"!=typeof d.ActiveXObject)try{(c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))&&(a=c.GetVariable("$version"))&&(b=a.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,""))}catch(e){}return b}function ga(){var a=b.title;"string"!=typeof a&&(a=(a=b.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function ea(){var a=null;if(d.ActiveXObject)try{var b=new ActiveXObject("AgControl.AgControl"),c=function(a,c,b,d){for(;a.isVersionSupported(c[0]+
"."+c[1]+"."+c[2]+"."+c[3]);)c[b]+=d;c[b]-=d},h=[1,0,0,0];c(b,h,0,1);c(b,h,1,1);c(b,h,2,1E4);c(b,h,2,1E3);c(b,h,2,100);c(b,h,2,10);c(b,h,2,1);c(b,h,3,1);a=h.join(".")}catch(e){}else if(b=da.plugins["Silverlight Plug-In"])a=b.description;return a}function wa(){for(var a=new Date,a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],b="",c=0;c<a.length;c++)b+=10>a[c]?"0"+a[c]:a[c];return b}function xa(){var a=-1;b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientWidth:
b.body&&(a=b.body.clientWidth);return a}function ya(){var a=-1;b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientHeight:b.body&&(a=b.body.clientHeight);return a}function va(){var a=d.performance||d.webkitPerformance,b=[];if(a=a&&a.timing){var c=a.navigationStart;if(c)for(b=[a.domainLookupEnd-a.domainLookupStart,a.connectEnd-a.connectStart,a.responseStart-a.requestStart,a.responseEnd-a.responseStart,a.fetchStart-c,a.redirectEnd-a.redirectStart,a.redirectCount],b.push(a.domInteractive&&
a.domLoading?a.domInteractive-a.domLoading:null),b.push(a.domContentLoadedEventStart&&a.domContentLoadedEventEnd?a.domContentLoadedEventEnd-a.domContentLoadedEventStart:null),b.push(a.domComplete?a.domComplete-c:null),b.push(a.loadEventStart?a.loadEventStart-c:null),b.push(a.loadEventStart&&a.loadEventEnd?a.loadEventEnd-a.loadEventStart:null),b.push(a.domContentLoadedEventStart?a.domContentLoadedEventStart-c:null),a=0;a<b.length;a++)c=b[a],null!==c&&(0>c||36E5<c)&&(b[a]=null)}return b}function Ia(){var a=
[],b=k._lastPerformanceTiming,c=va();if(b)for(var d=0,e=b.length;d<e;d++)null===c[d]?a.push(c[d]):a.push(b[d]===c[d]?"":c[d]);else a=c;k._lastPerformanceTiming=c;return a.join(",")}function Ua(){var a;if("object"==typeof d.chrome&&d.chrome.loadTimes){if(a=d.chrome.loadTimes(),a.requestTime&&a.firstPaintTime)return~~(1E3*(a.firstPaintTime-a.requestTime))}else if(d.performance&&d.performance.timing&&(a=d.performance.timing,a.navigationStart&&a.msFirstPaint))return a.msFirstPaint-a.navigationStart;return null}
function Va(a){var d=b.referrer||"";if(RegExp("^https?://"+M.host+"/").test(d))return!1;for(var c=a.patterns,e=0;e<c.length;e++)if(d.match(RegExp(c[e],"i"))){var s=a.params||[];if(s.length)for(var g=decodeURIComponent((RegExp.$1||"").replace(/\+/g,"%20")),l=0;l<s.length;l++){if(g==decodeURIComponent(s[l]))return!0}else return!0}return!1}function Ha(a){var d=!1;if(a&&"string"!=typeof a&&a.length)for(var c=0;c<a.length;c++){var e=a[c].selector,s=a[c].text,g=e.charAt(0),e=e.slice(1);if("#"==g){if(g=
b.getElementById(e))d=!0,g.innerHTML=s}else if("."==g){g=e;e=(e=void 0)||b;if(e.getElementsByClassName)g=e.getElementsByClassName(g);else{for(var e=e.getElementsByTagName("*"),l=[],k=0;k<e.length;k++)Ka(e[k],g)&&l.push(e[k]);g=l}for(e=0;e<g.length;e++)d=!0,g[e].innerHTML=s}}return d}function Wa(a,b){a=a&&a.replace(/^\?/,"");b=b&&b.replace(/^#/,"");var c="";if(a)for(var d=a.split("&"),e=0;e<d.length;e++){var g=d[e].split("=");"_openstat"==g[0]&&(c=g[1])}b&&0==b.indexOf("_openstat=")&&(c=b.slice(10));
c&&(c=-1<c.indexOf(";")?decodeURIComponent(c):Xa(c.replace(/[-*_]/g,function(a){return{"*":"+","-":"/",_:"="}[a]||a})));return c&&(c=c.split(";"),4==c.length)?{service:c[0],campaign:c[1],ad:c[2],source:c[3]}:null}function Xa(a){for(;a.length%4;)a+="=";var b,c,d,e,g,l=0,k="";do{b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));
g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));if(0>b||0>c||0>e||0>g)return null;d=b<<18|c<<12|e<<6|g;b=d>>16&255;c=d>>8&255;d&=255;k=64==e?k+String.fromCharCode(b):64==g?k+String.fromCharCode(b,c):k+String.fromCharCode(b,c,d)}while(l<a.length);a=k;e="";for(l=c1=c2=g=0;g<a.length;)l=a.charCodeAt(g),128>l?(e+=String.fromCharCode(l),g++):191<l&&224>l?(c2=a.charCodeAt(g+1),e+=String.fromCharCode((l&31)<<6|c2&63),g+=2):(c2=a.charCodeAt(g+1),c3=a.charCodeAt(g+
2),e+=String.fromCharCode((l&15)<<12|(c2&63)<<6|c3&63),g+=3);return e}function Za(){var a=!1;if(Ya._metrika.hitParam[S]){if(1!=p||Ya._metrika.counters[S])return!1;a=!0}Ya._metrika.counters[S]=k;Ya._metrika.hitParam[S]=1;k._webvisor=!q&&(D&&D.webvisor||Fb||Gb);k._directCampaign=D&&D.directCampaign;D&&D.trackHash&&k.trackHash(!0);if(!q&&!a){k.replacePhones();var f=ua(mb);"b"!=f&&"w"!=f&&(f="");pb()||(f="b");Sa=+new Date;Q(M.href,ga(),b.referrer,z,{ut:Ba,he:D?~~D.httpError:0,ad:1==p&&d.Ya&&d.Ya.Direct?
!0:!1,saveRef:!0},f,function(a){Ea||(Ea=+new Date);a=a||{};var h=a.webvisor||{},s=[];if(oa){var g=+h.recp;if(!isFinite(g)||0>g||1<g)f="w";f||(f=R%1E4/1E4<g?"w":"b");U(mb,f,30);"w"==f?(L(s,"visor"),g=h.arch_type,(h=h.urls)&&g&&oa.uploadPages(h,g)):oa.stop()}Ra.init(s);g=a.mp2;s=e;a=k;h="."+M.host.replace(/^www\./,"");U("_ym_mp2_substs_"+s,"",-1,h);if(g){var l="_ym_mp2_track_"+s;b:{var m=g.conditions;if(m&&m.length)for(var q=0;q<m.length;q++){var r;if("ref"==m[q].type)r=Va(m[q]);else if(r="adv"==m[q].type){var p=
m[q],E=Ya._metrika.counter._directCampaign,y=p.ServiceNamePattern,ba=p.RefererPattern;r=E?p.direct_orders:p.direct_camp;var ub=b.referrer,t=M.search,t=t&&t.replace(/^\?/,""),ka={};if(t)for(var t=t.split("&"),X=0;X<t.length;X++){var n=t[X].split("=");ka[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}for(var t=Wa(M.search,M.hash),X={},n=["source","medium","campaign","term","content"],x=0;x<n.length;x++)ka["utm_"+n[x]]&&(X[n[x]]=ka["utm_"+n[x]]);x=E?"direct.yandex.ru":t&&t.service||X.source;n=!1;
if(!n&&y&&y.length)for(var B=0;B<y.length;B++)if(RegExp(y[B],"i").test(x)){n=!0;break}if(!n&&ba&&ba.length)for(y=0;y<ba.length;y++)if(RegExp(ba[y],"i").test(ub)){n=!0;break}!n&&p.google_adwords&&ka.gclid&&(n=!0);!n&&p.yandex_direct&&ka.yclid&&(n=!0);if(n&&r&&r.length&&(n=!1,p=E||t&&t.campaign||X&&X.campaign))for(E=0;E<r.length;E++)if(r[E]==p){n=!0;break}r=n}if(r){m[q].track_id&&U(l,m[q].track_id,43200,h);break b}}}(l=ua(l))&&g.substs&&(g=g.substs[l])&&(U("_ym_mp2_substs_"+s,A(g),0,h),s=Ha(g),a.params("__ym",
s?"mp_trackid":"mp_trackid_bad",l))}fa(d,"load",k.replacePhones);k._inited=!0})}$a();D&&(D.enableAll?k.enableAll():(D.clickmap&&k.clickmap(D.clickmap),D.trackLinks&&k.trackLinks(D.trackLinks),D.accurateTrackBounce&&k.accurateTrackBounce(D.accurateTrackBounce),D.ad&&ad()));k._webvisor&&(oa=new qb(e,p,D,R,Ra,k))}function Ja(a){var b={delay:Da};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?Da:a.delay;break;case "boolean":b.on=a;break;default:return}k._trackLinks=
b}function $a(){Ja(!1);fa(b,"click",function(a){k._trackLinks.on&&ab(a)})}function ab(a){function b(a){var d=Jb(c.innerHTML?c.innerHTML.toString().replace(/<\/?[^>]+>/gi,""):"");P(e,e==d?"":d,G().href,null,a)}var c=u(a);if(c){var d=!1,e=""+c.href,g=e?e.split(/\?/)[0]:"";if(lb.test(g)||lb.test(e)||v(e,$)||v(g,$))d=!0;var l=Ka(c,"ym-disable-tracklink"),g=Ka(c,"ym-external-link");l||(a={ln:!0,dl:d,isDelay:O(a,c),delay:k._trackLinks.delay},g?b(a):H(G().hostname,c.hostname)?d&&(a.ln=!1,b(a)):e&&-1!=e.search(/^ *javascript:/i)||
(a.ut=Ca,b(a)))}}function nb(a,e){function c(){if(!E){p&&clearTimeout(p);var b=e,c;c=m?q:q+ +new Date-r;b-=c;0>b&&(b=0);p=setTimeout(function(){E=!0;k(!1);a()},b)}}function h(){l||(g=!0,m=!1,l=!0,c())}function k(a){for(var b=0;b<y.length;b+=3)a?fa(y[b],y[b+1],y[b+2]):La(y[b],y[b+1],y[b+2])}var g=!1,l=!1,m=!0,q=0,r=+new Date,p=null,E=!1,y=[d,"blur",function(){m=g=l=!0;q+=+new Date-r;r=+new Date;c()},d,"focus",function(){g||l||(q=0);r=+new Date;g=l=!0;m=!1;c()},b,"click",h,b,"mousemove",h,b,"keydown",
h,b,"scroll",h];k(!0);c()}function vb(a){function b(){var a=G().hash.split("#")[1];if("undefined"==typeof a)return!1;var c=a.indexOf("?");0<c&&(a=a.substring(0,c));return a}var c=b();(function s(){var d=b();d!==c&&(a(),c=d);pa=setTimeout(s,200)})()}function za(a){Pa=Y=Oa;P(G().href,ga(),Pa,null,{ut:Ba,ad:1==p&&d.Ya&&d.Ya.Direct?!0:!1,wh:!0,saveRef:!0});Oa=G().href}function I(a){function e(){var a=b.documentElement;return Math.max(a.scrollWidth,b.body.scrollWidth,a.clientWidth)}function c(a){function c(a){a=
a.getBoundingClientRect();var e=b.body,f=b.documentElement,h=a.left+(d.pageXOffset||f.scrollLeft||e.scrollLeft)-(f.clientLeft||e.clientLeft||0);return{top:Math.round(a.top+(d.pageYOffset||f.scrollTop||e.scrollTop)-(f.clientTop||e.clientTop||0)),left:Math.round(h)}}return a.getBoundingClientRect?c(a):function(a){for(var b=0,c=0;a;)b+=parseInt(a.offsetTop),c+=parseInt(a.offsetLeft),a=a.offsetParent;return{top:b,left:c}}(a)}function h(a){return a.toString().toUpperCase()}function k(a){return a&&(a=""+
a.className)&&-1!=a.search(/ym-clickmap-ignore/)?!0:!1}function g(a){if(null==a.pageX&&null!=a.clientX){var c=b.documentElement,d=b.body;a.pageX=a.clientX+(c&&c.scrollLeft||d&&d.scrollLeft||0)-(c.clientLeft||0);a.pageY=a.clientY+(c&&c.scrollTop||d&&d.scrollTop||0)-(c.clientTop||0)}return{x:a.pageX,y:a.pageY}}function l(a){for(var b=h(a.nodeName);a.parentNode&&"BODY"!=b&&"HTML"!=b;){if("A"==b||"INPUT"==b||"TEXTAREA"==b)return!0;a=a.parentNode;b=a.nodeName}return!1}for(var m=this,q=0,p=null,v="A B BIG BODY BUTTON DD DIV DL DT EM FIELDSET FORM H1 H2 H3 H4 H5 H6 HR I IMG INPUT LI OL P PRE SELECT SMALL SPAN STRONG SUB SUP TABLE TBODY TD TEXTAREA TFOOT TH THEAD TR U UL ABBR AREA BLOCKQUOTE CAPTION CENTER CITE CODE CANVAS DFN EMBED FONT INS KBD LEGEND LABEL MAP OBJECT Q S SAMP STRIKE TT ARTICLE AUDIO ASIDE FOOTER HEADER MENU METER NAV PROGRESS SECTION TIME VIDEO NOINDEX NOBR".split(" "),
E=59,y=String.fromCharCode,ba={},u=0;u<v.length;u++)ba[v[u]]=y(E),y(E),E++;this.handler=function(a){var E=b.getElementsByTagName("body")[0];if(!d.ymDisabledClickmap&&!k(E)){if(m._prefs.hasQuota){if(!m._prefs.quota)return;m._prefs.quota--}var y=a.target||a.srcElement;3==y.nodeType&&(y=y.parentNode);var E=h(y.nodeName),n=g(a),x;a.which||a.button===ia||(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);x=a.which;if(x=2!=x&&3!=x||"A"==E)if(x=y.offsetHeight,x=!(0===y.offsetWidth&&0===x||y.style&&"none"===
y.style.display)){b:{for(x=y;x.parentNode;){if(k(x)){x=!0;break b}x=x.parentNode}x=!1}if(x=!x){b:{x=m._prefs.ignoreTags;for(var v=0;v<x.length;v++)if(h(x[v])==h(E)){x=!0;break b}x=!1}x=!x&&m._prefs.filter(y,E)}}if(x){E=+new Date;y={dom:y,x:n.x,y:n.y,time:E};if((n=50<E-q)&&!(n=!m._prefs.ignoreSameClicks)){if(n=p){x=Math.abs(n.x-y.x);var v=Math.abs(n.y-y.y),u=y.time-n.time,n=n.dom==y.dom&&2>x&&2>v&&1E3>u?!0:!1}else n=!1;n=!n}if(n&&!Fa()){x=g(a);n=x.x;x=x.y;var u=a.target||a.srcElement,z=m._prefs,A=
c(u),F="",v=G().href;switch(z.mode){case "fixed":F="0";l(u)&&(F+="u");break;case "centered":F="1";A=Math.floor(e()/2);n=n>A?n-A+32768:n;l(u)&&(F+="u");break;default:F=h(u.nodeName);F="BODY"==F||"HTML"==F?e():u.offsetWidth;z=h(u.nodeName);"BODY"==z||"HTML"==z?(z=b.documentElement,z=Math.max(z.scrollHeight,b.body.scrollHeight,z.clientHeight)):z=u.offsetHeight;F||(F=1);z||(z=1);n=Math.floor(65535*(n-A.left)/F);x=Math.floor(65535*(x-A.top)/z);for(A="";u.parentNode&&"BODY"!=h(u.nodeName)&&"HTML"!=h(u.nodeName);){A+=
ba[u.nodeName]||"*";b:{for(var F=u.parentNode,D=z=0;D<F.childNodes.length;D++)if(u.nodeName==F.childNodes[D].nodeName){if(u==F.childNodes[D]){F=z;break b}z++}F=0}A+=F||"";u=u.parentNode}F=r(A,128)}T||(v=v?v.replace(/\#.*$/,""):v);"function"==typeof m._prefs.urlFilter&&(v=m._prefs.urlFilter(v));n=J(fb,["page-url",r(v,ta),"pointer-click",["rn",ja(),"x",n,"y",x,"t",Math.floor(Math.floor(+new Date-Ib)/100),"p",F].join(":")]);(new Image).src=n;C(n);if(n=a.target||a.srcElement){3==n.nodeType&&(n=n.parentNode);
for(x=h(n.nodeName);n.parentNode&&n.parentNode.nodeName&&("A"!=x&&"AREA"!=x||!n.href);)n=n.parentNode,x=h(n.nodeName);n=n.href?n:!1}else n=!1;n&&O(a,n)&&B(m._prefs.delay)}q=E;p=y}}};this.setPrefs=function(a){function b(a,c){return!0}this._prefs="undefined"==typeof a||!1===a||!0===a?{filter:b,ignoreTags:[],mode:"",delay:Da,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||b,ignoreTags:a.ignoreTags||[],mode:a.mode||"",delay:"undefined"==typeof a.delay?Da:a.delay,quota:a.quota||0,hasQuota:!!a.quota,
ignoreSameClicks:"undefined"==typeof a.ignoreSameClicks?!0:!1,urlFilter:a.urlFilter}};this.updateStatus=function(a){switch(typeof a){case "undefined":this.start(!0);break;case "boolean":a?this.start(a):this.stop();break;case "object":this.start(a)}};this._start=!1;this.start=function(a){this.setPrefs(a);this._start||fa(b,"click",this.handler,!0);this._start=!0};this.stop=function(){this._start&&La(b,"click",this.handler,!0);this._start=!1};this.start(a)}var k=this,R=Math.round(1073741824*Math.random()),
Na="//mc.yandex.ru/watch/",fb="//mc.yandex.ru/clmap/",S,Ba="",la=ra,Y=M.href,Oa=M.href,Pa="",D;Ya._metrika.counter||(Ya._metrika.counter=k);"object"==typeof e&&(D=e,q=e.defer,Ba=e.ut,p=e.type,z=e.params,la=e.onlyHttps?"https:":ra,e=e.id);e=e||0;p=p||0;S=e+":"+p;if(Ya._metrika.counters[S])return Ya._metrika.counters[S];var ma=null,na=null,Z=null,Ra=new function(a,e,c){function h(a,b,c){if(m)k(m,g(a,b,0),c,"application/x-www-form-urlencoded");else{if("XMLHttpRequest"in d){var e=new XMLHttpRequest;if("withCredentials"in
e){var f=c?"POST":"GET";a=g(a,b,"POST"==f?1:0);e.open(f,a,!0);e.withCredentials=!0;"POST"==f&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");e.send("POST"==f?ob(c):null);return}}for(f in c)c.hasOwnProperty(f)&&(b[f]=c[f]);(new Image).src=g(a,b,0)}}function k(a,b,c,d){var e="ifr"+Math.round(1E10*Math.random()),f=a.createElement("div");f.style.position="absolute";f.style.left="-99999px";f.style.top="-99999px";b=['<iframe name="',e,'"></iframe>','<form action="',b,'" method="post" target="',
e,'" enctype="',d,'">'];for(var h in c)c.hasOwnProperty(h)&&L(b,'<textarea name="',h,'"></textarea>');L(b,"</form>");f.innerHTML=b.join("");a.body.appendChild(f);h=f.getElementsByTagName("form")[0];for(var g in c)c.hasOwnProperty(g)&&(h[g].value=c[g]);h.submit();setTimeout(function(){a.body.removeChild(f)},1E4)}function g(b,d,h){d["browser-info"]=["ct",h,d["browser-info"]].join(":");return a+"//"+e+"/"+b+"/"+c+"?"+ob(d)}function l(){if(d.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();
a.write("<html><body></body></html>");a.close();return a}return null}try{var m=l()}catch(q){}var r="",p=[];return{send:function(a,b,c,d){a?r?-1<r.indexOf("|"+a+"|")&&h(b,c,d):L(p,arguments):h(b,c,d)},sendMultipart:function(a,c,d,e){k(m||b,g(a,c,e),d,"multipart/form-data")},init:function(a){r="|"+a.join("|")+"|";for(a=0;a<p.length;a++)-1<r.indexOf("|"+p[a][0]+"|")&&h(p[a][1],p[a][2],p[a][3]);p.length=0}}}(la,"mc.yandex.ru",e),oa;k.replacePhones=function(){try{var a=ua("_ym_mp2_substs_"+e);if(a){var b=
(new Function("return "+a))();b&&Ha(b)}}catch(c){}};k.reachGoal=function(a,d){var c=a?"goal://"+G().hostname+"/"+a:G().href,e=ga(),k=a?G().href:b.referrer;P(c,e,k,d,{ar:!0,isDelay:a?!0:!1,delay:100});return!0};k.trackLinks=Ja;k.hit=function(a,b,c,d,e){a&&P(a,b,c,d,{ut:e,ar:!0,saveRef:!0})};k.params=function(a){if(a){var b=arguments.length;if(1<b){for(var c={},d=c,e=0;e<b-1;e++){var g=""+arguments[e];d[g]={};e<b-2&&(d=d[g])}d[g]=arguments[b-1];a=c}P(G().href,"","",a,{ar:!0,pa:!0,onlyData:!0})}};k.file=
function(a,b,c,d){a&&P(a,"",G().href,d,{ar:!0,ln:!0,dl:!0})};k.extLink=function(a,b,c,d){a&&P(a,"",G().href,d,{ar:!0,ln:!0,ut:Ca})};k.notBounce=function(){var a=0;Sa&&Ea&&(a=Ea-Sa);P(G().href,"","",null,{cl:a,ar:!0,nb:!0,onlyData:!0})};var $=[];k.addFileExtension=function(a){"string"==typeof a?$.push(a):$=$.concat(a)};k.clickmap=function(a){k._clickmap?k._clickmap.updateStatus(a):k._clickmap=new I(a)};k.accurateTrackBounce=function(a){var d=function(){k.notBounce()};k._isAccurateTrackBounce||(k._isAccurateTrackBounce=
!0,N(b.referrer,G().href)||("number"!=typeof a&&(a=15E3),sa?setTimeout(d,a):nb(d,a)))};var pa=null,T=!1;k.trackHash=function(a){!1===a?T&&("onhashchange"in d?La(d,"hashchange",za):clearInterval(pa),T=!1):T||("onhashchange"in d?fa(d,"hashchange",za):vb(za),T=!0);k._trackHash=T};k.video=function(a,b,c,d){var e=["end","play","pause","seek"];if(a&&c){a:{for(var g=0,k=e.length;g<k;g+=1)if(a===e[g]){e=g;break a}e=-1}-1!==e&&P(c,d||"","",null,{ar:!0,va:a,vt:~~b})}};k.social=function(a,b,c){a&&b&&P(c||G().href,
"","",null,{ar:!0,sn:r(a,64),sa:r(b,64)})};k.enableAll=function(){k.trackLinks(!0);k.clickmap(!0);k.accurateTrackBounce()};k.pause=B;k.uploadPage=function(){};k._performanceTiming=va;e&&Za()};d.ya_cid&&new Ya.Metrika(d.ya_cid,d.ya_params,d.ya_class);d.ya_cid&&!d.ya_hit&&(d.ya_hit=function(b,d){Ya._metrika.counter&&Ya._metrika.counter.reachGoal(b,d)});var H=d.yandex_metrika_callback,N=d.yandex_metrika_callbacks;"function"==typeof H&&H();if("object"==typeof N)for(H=0;H<N.length;H++){var ea=N[H];ea&&
(N[H]=null,ea())}wa("yandex_metrika_callback");wa("yandex_metrika_callbacks");N=["link","click","scroll","res"];for(H=0;H<N.length;H++)if(ea=N[H]+"map",-1!=M.href.search("ym_playback="+ea)){xa(ra+"//metrika.yandex.ru/js/"+ea+"/_loader.js");break}d.Ya.Metrika.informer=function(b){var d=!!Ya.Metrika._informer;Ya.Metrika._informer=b;d||xa(ra+"//mc.yandex.ru/metrika/informer.js")};"complete"==b.readyState?ya():fa(d,"load",ya);(function(){var e=function(){var d=b.getElementsByTagName("body")[0],e=b.createElement("iframe");
e.src="http://awaps.yandex.ru/0/2153/0.htm?ad=165746&pl=93829&rnd="+ja();e.setAttribute("style","position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden");d.appendChild(e);setTimeout(function(){d.removeChild(e)},1E4)},z=function(){d.removeEventListener("load",z,!1);e()},p=d.performance;ja(1E4)||Ya._metrika.isAd||(Ya._metrika.isAd=!0,"http:"==ra&&"object"==typeof p&&d.addEventListener&&(p.timing&&p.timing.loadEventStart?e():d.addEventListener("load",z,!1)))})()})(this,
this.document);
