(function(c,b,ea){function M(f){for(var b=1,c=f.length;b<arguments.length;b++)f[c++]=arguments[b];return f.length}function A(){for(var f={},b="hash host hostname href pathname port protocol search".split(" "),p=b.length,t=p;t--;)f[b[t]]="";try{for(var r=c.location,t=p;t--;){var B=b[t];f[B]=""+r[B]}}catch(z){P&&(f=P)}return f}function Ib(f){return f?(""+f).replace(/^\s+/,"").replace(/\s+$/,""):""}function Oa(){return-1!=A().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)}function Da(){return"MetrikaPlayer"==
c.name}function kb(){var f=b.documentElement,c=b.doctype,p=f.attributes,t="",r="",B="",r=f.outerHTML;if(!r){for(r=0;r<p.length;r++){var z=p[r];z&&(t+=" "+z.name+'="'+(z.value||"")+'"')}r="<html"+t+">"+f.innerHTML+"</html>"}c&&(B="<!DOCTYPE "+c.name+(c.publicId?' PUBLIC "'+c.publicId+'"':"")+(c.systemId?' "'+c.systemId+'"':"")+">\n");return B+r}function lb(f){var b=[],c;for(c in f)f.hasOwnProperty(c)&&(b[b.length]=c+"="+encodeURIComponent(f[c]));return b.join("&")}function Ea(f){for(var b=f.length,
c=0,t=255,r=255;b;){var B=21<b?21:b,b=b-B;do{var z="string"==typeof f?f.charCodeAt(c):f[c];c++;if(255<z)var y=z>>8,z=z&255,z=z^y;t+=z;r+=t}while(--B);t=(t&255)+(t>>8);r=(r&255)+(r>>8)}f=(t&255)+(t>>8)<<8|(r&255)+(r>>8);return 65535==f?0:f}function W(f,c,p,t){var r="";p&&(r=new Date,r.setTime(r.getTime()+6E4*p),r=";expires="+r.toGMTString());b.cookie=f+"="+encodeURIComponent(c)+r+";path="+(t||"/")}function ta(f){return b.cookie.match(RegExp("(?:^|;\\s*)"+f+"=([^;]*)"))?decodeURIComponent(RegExp.$1):
null}function mb(){W("_metrika_enabled","1",60);var b=!!ta("_metrika_enabled");W("_metrika_enabled","",-1);return b}function Fa(){var f=b.documentElement;return"CSS1Compat"==b.compatMode?f:b.body||f}function Pa(){var b=Fa();return[b.clientWidth,b.clientHeight]}function Ga(){var b=Fa(),c=Pa();return[Math.max(b.scrollWidth,c[0]),Math.max(b.scrollHeight,c[1])]}function Qa(){return[c.pageXOffset||b.documentElement&&b.documentElement.scrollLeft||b.body&&b.body.scrollLeft||0,c.pageYOffset||b.documentElement&&
b.documentElement.scrollTop||b.body&&b.body.scrollTop||0]}function Ra(f){if(!f.ownerDocument||"PARAM"==f.tagName||f==b.body||f==b.documentElement)return[0,0];if(f.getBoundingClientRect)return f=f.getBoundingClientRect(),[Math.round(f.left+Q[0]),Math.round(f.top+Q[1])];for(var c=0,p=0;f;)c+=f.offsetLeft,p+=f.offsetTop,f=f.offsetParent;return[c,p]}function U(f,c){return f==b.documentElement?null:c?f.tagName.toLowerCase()===c?f:U(f.parentNode,c):f==b.body?b.documentElement:f.parentNode}function Sa(b,
c){var p=[];if(b)for(var t=b.childNodes,r=0,B=t.length;r<B;r++){var z=t[r];"INPUT"==z.nodeName&&z.type&&"hidden"==z.type.toLocaleLowerCase()||c&&z.nodeName!=c||M(p,z)}return p}function Ha(f){var c=Ra(f);f=f==b.body||f==b.documentElement?Ga():[f.offsetWidth,f.offsetHeight];return[c[0],c[1],f[0],f[1]]}function Ia(b){var c="";b=b.childNodes;for(var p=0,t=b.length;p<t;p++)3==b[p].nodeType&&(c+=b[p].nodeValue);return Ea(c.replace(/[\u0000-\u0020]+/g,""))}function Ta(b){var c="",p="className width height align title alt name".split(" ");
"IMG"==b.tagName&&(c+=b.src.toLowerCase());"A"==b.tagName&&(c+=b.href.toLowerCase());for(var t=0;t<p.length;t++)b.getAttribute&&(c+=String(b.getAttribute(p[t])||"").toLowerCase());return Ea(c.replace(/[\u0000-\u0020]+/g,""))}function Ua(c){for(var sa=b.getElementsByTagName("form"),p=0,t=sa.length;p<t;p++)if(sa[p]==c)return p;return-1}function nb(b,c){return RegExp("(?:^|\\s)"+c+"(?:\\s|$)").test(b.className)}function Va(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 X(b,c,p,t){R[R.length]=[p,p];b.addEventListener?b.addEventListener(c,p,!!t):b.attachEvent&&b.attachEvent("on"+c,p)}function Ja(b,c,p,t){for(var r=0;r<R.length;r++)if(R[r]&&R[r][0]==p){var B=R[r][1];delete R[r];break}B&&(b.removeEventListener?b.removeEventListener(c,B,!!t):b.detachEvent&&b.detachEvent("on"+c,B))}function ua(b){try{delete c[b]}catch(A){c[b]=ea}}
function $(c){var A=b.createElement("script");A.type="text/javascript";A.async=!0;A.src=c;try{var p=b.getElementsByTagName("html")[0];b.getElementsByTagName("head")[0]||p.appendChild(b.createElement("head"));var t=b.getElementsByTagName("head")[0];t.insertBefore(A,t.firstChild)}catch(r){}}function va(){if(top!=c&&parent==top&&c.postMessage&&!Ya.Metrika_visorPlayerOn){Ya.Metrika_visorPlayerOn=!0;var f=b.createElement("div");f.innerHTML='<iframe name="RemoteIframe" allowtransparency="true" style="position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"></iframe>';
var A=f.firstChild;setTimeout(function(){var c=b.body||b.documentElement;c.insertBefore(A,c.firstChild);try{var f=A.contentWindow.document}catch(r){}f&&(f.open(),f.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>'),
f.close())},500)}}function ob(f,sa,p,t,r,B){function z(pb){return function(){try{return pb.apply(this,arguments)}catch(a){var b=pb&&pb.name||"";(new Image).src="//an.yandex.ru/jserr/"+f+"?"+lb({"cnt-class":100+sa,errmsg:a.name+": "+a.message+", line: "+(a.number||a.lineNumber)+", func: "+b})}}}function y(a,b,v){var d=z(function(a){return v(a||c.event)});aa[aa.length]=[a,b,v,d];a.addEventListener?a.addEventListener(b,d,!0):a.attachEvent&&a.attachEvent("on"+b,d)}function w(a,b,v){for(var d=0;d<aa.length;d++)if(aa[d]&&
aa[d][0]==a&&aa[d][1]==b&&aa[d][2]==v){var c=aa[d][3];delete aa[d];break}c&&(a.removeEventListener?a.removeEventListener(b,c,!0):a.detachEvent&&a.detachEvent("on"+b,c))}function P(a){var b=Fa();return[a.pageX||a.clientX+Q[0]-(b.clientLeft||0)||0,a.pageY||a.clientY+Q[1]-(b.clientTop||0)||0]}function F(a){return a.target||a.srcElement}function R(a){return(a.shiftKey?Jb:0)|(a.ctrlKey?qb:0)|(a.altKey?Kb:0)|(a.metaKey?Ub:0)|(a.ctrlKey||a.altKey?Wa:0)}function T(a){var b=(new Date).getTime();a&&b<a&&(rb+=
a-b+N);c.setTimeout(z(function(){T(b)}),N)}function O(){var a=(new Date).getTime()+rb;a<sb&&(a=sb+N/2);return sb=a}function L(){return Math.round((O()-Vb)/Wb)}function ba(a,b){b=Math.max(0,Math.min(b,65535));M(a,b>>8,b&255)}function D(a,b){M(a,b&255)}function h(a,b){for(b=Math.max(0,b|0);127<b;)M(a,b&127|128),b>>=7;M(a,b)}function W(a,b){255<b.length&&(b=b.substr(0,255));M(a,b.length);for(var v=0;v<b.length;v++)ba(a,b.charCodeAt(v))}function X(a,b){h(a,b.length);for(var v=0;v<b.length;v++)h(a,b.charCodeAt(v))}
function ka(a){if(!a.nodeName)return a[J]=-1,null;var b=+a[J];if(!isFinite(b)||0>=b)return null;var v=Gb,d=0,c=U(a),e=c&&c[J]?c[J]:0;0>e&&(e=0);var l=a.nodeName.toUpperCase(),g=Xb[l];g||(v|=ob);var f;a:{f=Sa(U(a),a.nodeName);for(var m=0;m<f.length;m++)if(f[m]==a){f=m;break a}f=0}f||(v|=Eb);m=Ha(a);(c=c?Ha(c):null)&&(m[0]==c[0]&&m[1]==c[1]&&m[2]==c[2]&&m[3]==c[3])&&(v|=Lb);Xa[b].pos=m[0]+"x"+m[1];Xa[b].size=m[2]+"x"+m[3];a.id&&"string"==typeof a.id&&(v|=Mb);(c=Ia(a))&&(v|=Fb);var s=Ta(a);s&&(d|=Hb);
var n;a:{n=Sa(U(a),a.tagName);for(var q=0;q<n.length;q++)if((!n[q].id||"string"!=typeof n[q].id)&&Ta(n[q])==s&&Ia(n[q])==c){n=!0;break a}n=!1}if(n)var v=v|Nb,u=Ea((a.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,""));n=[];D(n,fa);h(n,b);D(n,v);h(n,e);g?D(n,g):W(n,l);f&&h(n,f);v&Lb||(h(n,m[0]),h(n,m[1]),h(n,m[2]),h(n,m[3]));v&Mb&&W(n,a.id);c&&ba(n,c);v&Nb&&ba(n,u);D(n,d);s&&ba(n,s);return n}function ea(a,b,v,c,d,e){for(;v&&(!v.offsetWidth||!v.offsetHeight);)v=U(v);if(!v)return null;var l=v[J];
if(!l||0>l)return null;var m={mousemove:E,click:gb,dblclick:hb,mousedown:u,mouseup:fb,touch:Yb}[b];if(!m)return null;var n=Ra(v);v=[];D(v,m);h(v,a);h(v,l);h(v,Math.max(0,c[0]-n[0]));h(v,Math.max(0,c[1]-n[1]));/^mouse(up|down)|click$/.test(b)&&(a=d||e,D(v,2>a?ib:a==(d?2:4)?mb:jb));return v}function pa(a,b){var v=[];D(v,G);h(v,a);h(v,b[0]);h(v,b[1]);return v}function qa(a,b,v){var c=[];v=v[J];if(!v||0>v)return null;D(c,tb);h(c,a);h(c,b[0]);h(c,b[1]);h(c,v);return c}function ra(a,b,c){var d=[];D(d,$);
h(d,a);h(d,b[0]);h(d,b[1]);h(d,c[0]);h(d,c[1]);return d}function Z(a,b,c,d){var e=[];D(e,n);h(e,a);ba(e,b);D(e,c);a=d[J];if(!a||0>a)a=0;h(e,a);return e}function ta(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=[];D(e,va);h(e,a);X(e,c);X(e,d);return e}function za(a){var b=[];D(b,ua);h(b,a);return b}function Aa(a){var b=[];D(b,Zb);h(b,a);return b}function Ba(a){var b=[];D(b,$b);h(b,a);return b}
function Ca(a,b){var c=[];D(c,H);h(c,a);h(c,b[J]);return c}function Za(a,b){var c=[];D(c,ac);h(c,a);h(c,b[J]);return c}function Da(a,b,c){var d=[];D(d,Oa);h(d,a);h(d,b[J]);W(d,String(c));return d}function Ja(a,b){var c=b[J];if(0<c){var d=[],e=Ha(b),l=Xa[c],m=e[0]+"x"+e[1],n=e[2]+"x"+e[3];m!=l.pos&&(l.pos=m,D(d,s),h(d,a),h(d,c),h(d,e[0]),h(d,e[1]));n!=l.size&&(l.size=n,D(d,q),h(d,a),h(d,c),h(d,e[2]),h(d,e[3]));if(d.length)return d}return null}function Na(a){var b=a[J];if(!b||(0>b||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName))||
!a.form||nb(a.form,"-metrika-noform"))return null;var c=Ua(a.form);if(0>c)return null;var d;d="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 d)return null;for(var e=-1,l=a.form.elements,m=l.length,n=0,f=0;n<m;n++)if(l[n].name==a.name){if(l[n]==a){e=f;break}f++}if(0>e)return null;l=[];D(l,C);h(l,b);h(l,c);h(l,d);X(l,a.name||"");h(l,e);return l}function ub(a,b){var c=Ua(b);if(0>c)return null;for(var d=b.elements,
e=d.length,l=[],m=0;m<e;m++)if(!Va(d[m])){var n=d[m][J];n&&0<n&&M(l,n)}d=[];D(d,x);h(d,a);h(d,c);h(d,l.length);for(c=0;c<l.length;c++)h(d,l[c]);return d}function Ka(){var a=[];D(a,bc);return a}function $a(a){clearTimeout(Ob);for(var b=(new Date).getTime()+m;ab.length&&(a||+(new Date).getTime()<b);){var e=ab.shift();if(e=e[0].apply(c,e[1])){var l=e;6500<wa.length+l.length&&d();for(var e=wa,n=0,f=e.length;n<l.length;n++)e[f++]=l[n];bb||(bb=c.setTimeout(z(d),cc))}}!0===a&&d(!0);ab.length&&(Ob=c.setTimeout(z($a),
g))}function k(a,b,d){M(ab,[a,b]);$a(d)}function K(a){if(a[J])k(Ja,[L(),a]);else{var b=U(a);b&&K(b);a[J]=vb;Xa[vb]={};vb++;k(ka,[a]);k(Na,[a])}}function V(a){var b=F(a),d,c,e=0;if(b&&"SCROLLBAR"!=b.nodeName){if(b&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b.tagName))if(b[J])K(b);else if(d=U(b,"form"))for(d=d.elements,c=d.length;e<c;e++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(d[e].tagName)&&!d[e][J]&&K(d[e]);else K(b);else K(b);k(ea,[L(),a.type,b,P(a),a.which,a.button])}}function cb(a){V(a);var d,e;c.getSelection?
(a=c.getSelection(),d=a.toString(),e=a.anchorNode):b.selection&&b.selection.createRange&&(a=b.selection.createRange(),d=a.text,e=a.parentElement());for(;e&&1!=e.nodeType;)e=e.parentNode;e&&"INPUT"==e.tagName&&"password"==e.type||(e&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(e.className)||d==wb)||(wb=d,k(ta,[L(),d]))}function Y(a){var b=O(),d=b-Pb;if(!(d<Qb)){var c=P(a),e=xb[0]-c[0],l=xb[1]-c[1],e=e*e+l*l;0>=e||(16>e&&100>d||20>d&&256>e)||(Pb=b,xb=c,V(a))}}function ga(){Q=Qa();var a=O();a-Rb<Qb||10>Math.abs(Q[0]-
yb[0])&&10>Math.abs(Q[1]-yb[1])||(Rb=a,yb=Q,k(pa,[L(),Q]))}function xa(a){a=F(a);var d=Math.random(),c=[a.scrollLeft,a.scrollTop];if(a.localId){if(d=zb[a.localId],!d||10>Math.abs(c[0]-d[0])&&10>Math.abs(c[1]-d[1]))return}else{for(;zb[d];)d=Math.random();a.localId=d}zb[a.localId]=c;a!==b&&(K(a),k(qa,[L(),c,a]))}function ca(){k(ra,[L(),Pa(),Ga()])}function la(a){k(Ka,[],!0);d(!0);if("beforeunload"==a.type)for(a=+new Date+50;+new Date<a;);}function La(a,b,d){a=F(a);"INPUT"==a.tagName&&"password"==a.type||
/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||(K(a),k(Z,[L(),b,d,a]))}function I(a){var b=a.keyCode,d=R(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)||d&Wa)19==b&&(d&~Wa)==qb&&(b=144),La(a,b,d|Wa),Ab=!1,c.setTimeout(z(function(){Ab=!0}),1),67==b&&(d&qb&&!(d&Kb||d&Jb))&&ma()}function ya(a){Ab&&(!Bb&&0!==a.which)&&(La(a,a.charCode||a.keyCode,R(a)),Bb=!0,
c.setTimeout(z(function(){Bb=!1}),1))}function ma(){Cb||(Cb=!0,wb&&k(za,[L()]),c.setTimeout(z(function(){Cb=!1}),1))}function ha(){Ma||(Ma=!0,k(Aa,[L()]))}function ia(){Ma&&(Ma=!1,k(Ba,[L()]))}function na(a){(!Ma||a&&!a.fromElement)&&ha()}function ja(a){a&&!a.toElement&&ia()}function oa(a){a=F(a);var b,d,c=0;if(a&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[J])K(a);else if(b=U(a,"form"))for(b=b.elements,d=b.length;c<d;c++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[c].tagName)&&!b[c][J]&&K(b[c]);
else K(a);k(Ca,[L(),a])}}function S(a){(a=F(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(K(a),k(Za,[L(),a]))}function a(a){a=F(a);if(!("INPUT"==a.tagName&&"password"==a.type||a&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||!a||!/^INPUT|SELECT|TEXTAREA$/.test(a.tagName))){var b=/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;K(a);k(Da,[L(),a,b])}}function l(a){a=F(a);if(!nb(a,"-metrika-noform")&&"FORM"==a.nodeName){for(var b=a.elements,d=0;d<b.length;d++)Va(b[d])||K(b[d]);k(ub,
[L(),a],!0)}}function e(a){ga();if(a.touches&&a.touches.length){var b=F(a);if(b){K(b);for(var d=0;d<a.touches.length;d++)k(ea,[L(),"touch",b,[a.touches[d].pageX,a.touches[d].pageY],0,0])}}}function d(a){clearTimeout(bb);bb=0;if(wa.length){a={rn:Math.round(1E5*Math.random()),"wv-type":0,"cnt-class":sa,"page-url":A().href,wmode:0,"wv-hit":t,"wv-part":dc++,"wv-check":Ea(wa),"browser-info":["z",Db,"i",db].join(":")};for(var b=wa,d=b.length,c=[],e=d-d%3,l,n=0;n<e;n+=3)l=(b[n]<<16)+(b[n+1]<<8)+b[n+2],M(c,
da[l>>18&63],da[l>>12&63],da[l>>6&63],da[l&63]);switch(d-e){case 1:l=b[e]<<4;M(c,da[l>>6&63],da[l&63],"__");break;case 2:l=(b[e]<<10)+(b[e+1]<<2),M(c,da[l>>12&63],da[l>>6&63],da[l&63],"_")}b={"wv-data":c.join("")};r.send("visor","webvisor",a,b);wa.length=0}}var m=100,g=200,cc=15E3,N=20,Wb=50,Qb=10,fa=1,E=2,G=3,tb=16,u=4,n=5,C=7,s=9,q=10,x=11,Yb=12,bc=13,Zb=14,$b=15,H=17,ac=18,Oa=19,ua=27,$=28,va=29,fb=30,gb=32,hb=33,ib=1,jb=2,mb=4,Nb=1,ob=2,Eb=4,Lb=8,Fb=16,Mb=32,Gb=64,Hb=2,Kb=1,Jb=2,qb=4,Ub=8,Wa=
16,Xb={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=[],rb=0;T(0);var sb=0,ab=[],Ob,vb=1,Pb=0,xb=[0,0],Rb=0,yb=[0,0],zb={},Ab=!0,Bb=!1,wb="",Cb=!1,Ma=!0,da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*-".split(""),wa=[],bb,dc=1,Vb=O(),J="metrikaId_"+Math.random(),Xa={},eb=":submit"+Math.random();
if("MetrikaPlayer"!=c.name){y(b,"mousemove",Y);y(b,"click",V);y(b,"dblclick",V);y(b,"mousedown",V);y(b,"mouseup",cb);y(c,"scroll",ga);y(c,"beforeunload",la);Sb||y(c,"unload",la);y(c,"resize",ca);y(b,"keydown",I);y(b,"keypress",ya);y(b,"copy",ma);y(b,"touchmove",e);y(b,"touchstart",e);b.attachEvent&&!c.opera?(y(b,"focusin",na),y(b,"focusout",ja)):(y(c,"focus",ha),y(c,"blur",ia),y(b,"blur",ia));b.addEventListener?(b.addEventListener("scroll",xa,!0),b.addEventListener("focus",oa,!0),b.addEventListener("blur",
S,!0),b.addEventListener("change",a,!0),b.addEventListener("submit",l,!0)):b.attachEvent&&(y(b,"focusin",oa),y(b,"focusout",S),function(){for(var d=b.getElementsByTagName("form"),c=0;c<d.length;c++){for(var e=d[c].getElementsByTagName("*"),n=0;n<e.length;n++)/^INPUT|SELECT|TEXTAREA$/.test(e[n].tagName)&&y(e[n],"change",a);y(d[c],"submit",l)}}());(function(){var a=b.getElementsByTagName("form");if(a.length)for(var d=0;d<a.length;d++)a[d][eb]=a[d].submit,a[d].submit=function(){l({target:this});return this[eb]()}})();
"0:0"!=Q.join(":")&&ga();ca();var Tb=function(a,d){if(a){var c={"wv-type":1,"cnt-class":sa,"page-url":A().href,"wv-hit":t,"browser-info":["z",Db,"i",db,"pct",d||""].join(":")};b.all&&(a=a.replace(/\r\n/g,"\n"));var e;e=a;e=e.replace(/\r\n/g,"\n");for(var l=[],n=String.fromCharCode,m=0,f=e.length;m<f;m++){var g=e.charCodeAt(m);128>g?l.push(n(g)):(127<g&&2048>g?l.push(n(g>>6|192)):(l.push(n(g>>12|224)),l.push(n(g>>6&63|128))),l.push(n(g&63|128)))}e=l.join("");for(var l=[],s,q,u,g=0,k=e.length;g<k;)s=
e.charCodeAt(g++),n=e.charCodeAt(g++),m=e.charCodeAt(g++),f=s>>2,s=(s&3)<<4|n>>4,q=(n&15)<<2|m>>6,u=m&63,isNaN(n)?q=u=64:isNaN(m)&&(u=64),l.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(s)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(q)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(u));e={"wv-data":l.join("")};r.sendMultipart("webvisor",
c,e,3)}};B.uploadPage=function(a){if("function"==typeof c.toStaticHTML&&-1<c.toStaticHTML.toString().indexOf("NoScript"))return!1;var d=b.documentElement;if(d&&19E4<(""+d.innerHTML).length)return!1;var e=c.XMLHttpRequest?new c.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),l=(""+(b.characterSet||b.charset||"")).toLowerCase(),d="text/html"+(l?";charset="+l:"");if("html"==a)return a=RegExp("<script [^>]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>","gi"),Tb(kb().replace(a,""),d),!0;e&&(e.open("get",
A().href,!0),e.onreadystatechange=function(){4==e.readyState&&Tb(e.responseText,e.getResponseHeader("content-type"))},e.overrideMimeType&&l&&e.overrideMimeType(d),e.send(null));return!0}}return{stop:function(){w(b,"mousemove",Y);w(b,"click",V);w(b,"dblclick",V);w(b,"mousedown",V);w(b,"mouseup",cb);w(c,"scroll",ga);w(c,"beforeunload",la);w(c,"unload",la);w(c,"resize",ca);w(b,"keydown",I);w(b,"keypress",ya);w(b,"copy",ma);w(b,"touchmove",e);w(b,"touchstart",e);w(b,"focusin",na);w(b,"focusout",ja);w(c,
"focus",ha);w(c,"blur",ia);w(b,"blur",ia);b.removeEventListener?(b.removeEventListener("scroll",xa,!0),b.removeEventListener("focus",oa,!0),b.removeEventListener("blur",S,!0),b.removeEventListener("change",a,!0),b.removeEventListener("submit",l,!0)):b.detachEvent&&(w(b,"focusin",oa),w(b,"focusout",S),function(){for(var d=b.getElementsByTagName("form"),c=0;c<d.length;c++){for(var e=d[c].getElementsByTagName("*"),n=0;n<e.length;n++)/^INPUT|SELECT|TEXTAREA$/.test(e[n].tagName)&&w(e[n],"change",a);w(d[c],
"submit",l)}}());(function(){for(var a=b.getElementsByTagName("form"),d=0;d<a.length;d++)a[d][eb]&&(a[d].submit=a[d][eb])})()},uploadPages:function(a,d){function e(){w(b,"DOMContentLoaded",e);w(c,"load",e);for(var l=a.split(/\n/),n=A().href,m=/regexp:/,g=0;g<l.length;g++){var f=l[g];if(f)if(m.test(f)){if(f=Ib(f.replace(m,"")),RegExp(f).test(n)){B.uploadPage(d);break}}else if(-1!==n.indexOf(f)){B.uploadPage(d);break}}}"complete"==b.readyState?e():(y(b,"DOMContentLoaded",e),y(c,"load",e))}}}var Eb=
!1,Sb=-1===(""+c.navigator.userAgent).toLowerCase().search(/webkit/)&&-1!==(""+c.navigator.userAgent).toLowerCase().search(/gecko/),Q=Qa(),R=[];c.Ya=c.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.counters=Ya._metrika.counters||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};var Fb=!1,P=A(),Db,db,ka=c.navigator,pa=c.screen,za="https:"==P.protocol?"https:":"http:",Gb="$Rev: 1825 $".match(/(\d+)/)[1],qa="object"==typeof b.all,fb=64,ra=qa?512:2048,gb=qa?512:2048,hb=qa?100:400,Aa="noindex",Ba=50,ib=
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"),Hb=+new Date,jb="_ym_visorc",Na,Ca;c.Ya.Metrika=function(f,F,p,t){function r(a,b){b=b||256;if(!a)return"";a.length>b&&(a=a.substr(0,b));return(c.encodeURIComponent||
c.escape)(a).replace(/\+/g,"%2B")}function B(a){function b(a){return a?a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):""}if(a===ea)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'"'+b(a)+'"';case Array:for(var e=[],d=0,c=a.length;d<c;d++)e[e.length]=B(a[d]);return"["+e.join(",")+"]";case Object:e="{";d=0;for(c in a)if(a.hasOwnProperty(c)){var f=a[c];f!==ea&&(e+=(d?",":"")+'"'+b(c)+'":'+B(f),
d++)}return e+"}";default:return"null"}}function z(a){return Math.floor(Math.random()*("number"==typeof a?a:1E6))}function y(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 w(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 Q(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 R(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}function T(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 U(a,b){var e=b.target,d=!1;if(!b.hostname)return!1;e&&"_self"!=e&&"_top"!=e&&"_parent"!=e||(d=!0);(e=a.shiftKey||a.ctrlKey||a.altKey)||a.modifiers&&c.Event&&(e=a.modifiers&c.Event.CONTROL_MASK||a.modifiers&c.Event.SHIFT_MASK||a.modifiers&c.Event.ALT_MASK);return d&&!e}function O(a,b,c,d,m){function f(a,b){k[k.length]=a;k[k.length]=b}m=m||{};c="undefined"!=typeof c?c:ca;var k=
[];m.ar&&!m.onlyData&&(c=D(c),a=D(a));f("page-ref",r(c,ra));f("page-url",r(a,ra));f("browser-info",Z(b,m));Oa()?f("ut",Aa):"undefined"!=typeof m.ut&&f("ut",r(""+m.ut,fb));d&&f("site-info",r(B(d),gb));m.saveRef&&(ca=c);a=ba(V,k);Da()||((new Image).src=a,h(a),m.isDelay&&y(m.delay));return a}function L(a,l,e,d,m,g,k){function N(a,b){p[p.length]=a;p[p.length]=b}m=m||{};e="undefined"!=typeof e?e:ca;var p=[];m.ar&&!m.onlyData&&(e=D(e),a=D(a));if(!Da()){var t="_ymjsp"+("--"==f?"":z()),fa=b.createElement("script");
c[t]=function(a){try{delete c[t]}catch(b){c[t]=ea}k(a);fa.parentNode&&fa.parentNode.removeChild(fa)};N("wmode",5);N("callback",t);N("page-ref",r(e,ra));N("page-url",r(a,ra));a=Z(l,m);g&&(a=["vc",g,a].join(":"));N("browser-info",a);Oa()?N("ut",Aa):"undefined"!=typeof m.ut&&N("ut",r(""+m.ut,fb));d&&N("site-info",r(B(d),gb));m.saveRef&&(ca=e);d=ba(V,p);fa.type="text/javascript";fa.src=d;m=b.getElementsByTagName("head")[0];m.insertBefore(fa,m.firstChild);h(d)}}function ba(a,b){for(var c=["rn",z(),"cnt-class",
p].concat(b),d=[],m=0;m<c.length;m+=2){var g=c[m+1];g&&(d[d.length]=c[m]+"="+g)}return xa+a+f+"?"+d.join("&")}function D(a){var b=A(),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 h(a){"function"==typeof c.ymLog&&
c.ymLog(a)}function Z(a,l){function e(a,b){a&&b&&(f[f.length]=[a,b].join(":"))}function d(a){e(a,l[a]?"1":"")}l=l||{};var f=[],g=-1*(new Date).getTimezoneOffset(),h=Fa();db||(db=h,Db=g);e("j",ka.javaEnabled()?"1":"");pa&&e("s",pa.width+"x"+pa.height+"x"+(pa.colorDepth||pa.pixelDepth));null===ya&&(ya=ua());e("f",ya);null===ma&&(ma=va());e("l",ma||"");l.pa||e("w",Ha()+"x"+Pa());e("z",g);e("i",h);e("en",(""+(b.characterSet||b.charset||"")).toLowerCase());e("v",Gb);e("c",ka.cookieEnabled?"1":"");qa&&
b.documentMode&&(null===ha&&(ha=Function("return /*@cc_on @_jscript_version @*/;")()),ha&&e("jv",ha));e("la",(ka&&(ka.language||ka.browserLanguage)||"").toLowerCase());e("ex","prerender"==b.webkitVisibilityState?"pre1":"");S&&e("wh","1");h="ar ln dl ad nb pa".split(" ");for(g=0;g<h.length;g++)d(h[g]);h=["va","vt","sn","sa","he"];l.nb&&h.push("cl");for(g=0;g<h.length;g++){var N=h[g];e(N,l[N])}e("hid",K);e("ds",Qa());k._firstPaint||(k._firstPaint=Ra(),e("fp",k._firstPaint));if(k._webvisor){c.name||
(c.name=Math.round(65535*Math.random()));if(g=+c.name)0>g&&(g*=-1),g%=65535;e("wn",g||Ea(c.name));try{c.history&&e("hl",String(c.history.length))}catch(p){}}g="undefined"==typeof a?(g=$())?r(g,hb):"":r(a,hb);e("t",g);return f.join(":")}function ua(){var a=null,b=null,e,d=c.navigator;if("undefined"!=typeof d.plugins&&"object"==typeof d.plugins["Shockwave Flash"])a=d.plugins["Shockwave Flash"].description,!a||"undefined"!=typeof d.mimeTypes&&d.mimeTypes["application/x-shockwave-flash"]&&!d.mimeTypes["application/x-shockwave-flash"].enabledPlugin||
(b=a.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,"."));else if("undefined"!=typeof c.ActiveXObject)try{(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))&&(a=e.GetVariable("$version"))&&(b=a.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,""))}catch(f){}return b}function $(){var a=b.title;"string"!=typeof a&&(a=(a=b.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function va(){var a=null;if(c.ActiveXObject)try{var b=new ActiveXObject("AgControl.AgControl"),
e=function(a,b,d,c){for(;a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3]);)b[d]+=c;b[d]-=c},d=[1,0,0,0];e(b,d,0,1);e(b,d,1,1);e(b,d,2,1E4);e(b,d,2,1E3);e(b,d,2,100);e(b,d,2,10);e(b,d,2,1);e(b,d,3,1);a=d.join(".")}catch(f){}else if(b=ka.plugins["Silverlight Plug-In"])a=b.description;return a}function Fa(){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 Ha(){var a=-1;
b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientWidth:b.body&&(a=b.body.clientWidth);return a}function Pa(){var a=-1;b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientHeight:b.body&&(a=b.body.clientHeight);return a}function Ga(){var a=c.performance||c.webkitPerformance,b=[];if(a=a&&a.timing){var e=a.navigationStart;e&&(b=[a.domainLookupEnd-a.domainLookupStart,a.connectEnd-a.connectStart,a.responseStart-a.requestStart,a.responseEnd-a.responseStart,a.fetchStart-
e,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-e:null),b.push(a.loadEventStart?a.loadEventStart-e:null),b.push(a.loadEventStart&&a.loadEventEnd?a.loadEventEnd-a.loadEventStart:null))}return b}function Qa(){var a=[],b=k._lastPerformanceTiming,c=Ga();if(b)for(var d=
0,f=b.length;d<f;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 Ra(){var a;if("object"==typeof c.chrome&&c.chrome.loadTimes){if(a=c.chrome.loadTimes(),a.requestTime&&a.firstPaintTime)return~~(1E3*(a.firstPaintTime-a.requestTime))}else if(c.performance&&c.performance.timing&&(a=c.performance.timing,a.navigationStart&&a.msFirstPaint))return a.msFirstPaint-a.navigationStart;return null}function Sa(a){var c=b.referrer||"";if(RegExp("^https?://"+
P.host+"/").test(c))return!1;for(var e=a.patterns,d=0;d<e.length;d++)if(c.match(RegExp(e[d],"i"))){var f=a.params||[];if(f.length)for(var g=decodeURIComponent((RegExp.$1||"").replace(/\+/g,"%20")),k=0;k<f.length;k++){if(g==decodeURIComponent(f[k]))return!0}else return!0}return!1}function Ia(a){var c=!1;if(a&&"string"!=typeof a&&a.length)for(var e=0;e<a.length;e++){var d=a[e].selector,f=a[e].text,g=d.charAt(0),d=d.slice(1);if("#"==g){if(g=b.getElementById(d))c=!0,g.innerHTML=f}else if("."==g){g=d;
d=(d=void 0)||b;if(d.getElementsByClassName)g=d.getElementsByClassName(g);else{for(var d=d.getElementsByTagName("*"),k=[],h=0;h<d.length;h++)nb(d[h],g)&&k.push(d[h]);g=k}for(d=0;d<g.length;d++)c=!0,g[d].innerHTML=f}}return c}function Ta(){var a=!1;if(Ya._metrika.hitParam[Y]){if(1!=p||Ya._metrika.counters[Y])return!1;a=!0}Ya._metrika.counters[Y]=k;Ya._metrika.hitParam[Y]=1;k._webvisor=!t&&(I&&I.webvisor||Eb||Fb);k._directCampaign=I&&I.directCampaign;I&&I.trackHash&&k.trackHash(!0);if(!t&&!a){k.replacePhones();
var l=ta(jb);"b"!=l&&"w"!=l&&(l="");mb()||(l="b");Na=+new Date;L(P.href,$(),b.referrer,F,{ut:ga,he:I?~~I.httpError:0,ad:1==p&&c.Ya&&c.Ya.Direct?!0:!1,saveRef:!0},l,function(a){Ca||(Ca=+new Date);a=a||{};var d=a.webvisor||{},m=[];if(na){var g=+d.recp;if(!isFinite(g)||0>g||1<g)l="w";l||(l=K%1E4/1E4<g?"w":"b");W(jb,l,30);"w"==l?(M(m,"visor"),g=d.arch_type,(d=d.urls)&&g&&na.uploadPages(d,g)):na.stop()}ia.init(m);d=a.mp2;m=f;a=k;W("_ym_mp2_substs_"+m,"",-1);if(d){g="_ym_mp2_track_"+m;b:{var h=d.conditions;
if(h&&h.length)for(var r=0;r<h.length;r++){var p;if("ref"==h[r].type)p=Sa(h[r]);else if(p="adv"==h[r].type){var t=h[r],A=Ya._metrika.counter._directCampaign,E=t.ServiceNamePattern,G=t.RefererPattern;p=A?t.direct_orders:t.direct_camp;var tb=b.referrer,u=P.search,u=u&&u.replace(/^\?/,""),n={};if(u)for(var u=u.split("&"),C=0;C<u.length;C++){var s=u[C].split("=");n[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}u=void 0;c:{s=P.search;C=P.hash;s=s&&s.replace(/^\?/,"");C=C&&C.replace(/^#/,"");u="";
if(s)for(var s=s.split("&"),q=0;q<s.length;q++){var x=s[q].split("=");"_openstat"==x[0]&&(u=x[1])}C&&0==C.indexOf("_openstat=")&&(u=C.slice(10));if(u){C=void 0;if(-1<u.indexOf(";"))C=decodeURIComponent(u);else d:{for(;u.length%4;)u+="=";var y=void 0,z=void 0,w=void 0,w=s=C=z=y=void 0,q=0,x="";do{y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(u.charAt(q++));z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(u.charAt(q++));C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(u.charAt(q++));
s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(u.charAt(q++));if(0>y||0>z||0>C||0>s){C=null;break d}w=y<<18|z<<12|C<<6|s;y=w>>16&255;z=w>>8&255;w&=255;x=64==C?x+String.fromCharCode(y):64==s?x+String.fromCharCode(y,z):x+String.fromCharCode(y,z,w)}while(q<u.length);u=x;C="";for(q=c1=c2=s=0;s<u.length;)q=u.charCodeAt(s),128>q?(C+=String.fromCharCode(q),s++):191<q&&224>q?(c2=u.charCodeAt(s+1),C+=String.fromCharCode((q&31)<<6|c2&63),s+=2):(c2=u.charCodeAt(s+1),c3=u.charCodeAt(s+
2),C+=String.fromCharCode((q&15)<<12|(c2&63)<<6|c3&63),s+=3)}u=C}if(u&&(u=u.split(";"),4==u.length)){u={service:u[0],campaign:u[1],ad:u[2],source:u[3]};break c}u=null}C={};s=["source","medium","campaign","term","content"];for(q=0;q<s.length;q++)n["utm_"+s[q]]&&(C[s[q]]=n["utm_"+s[q]]);q=A?"direct.yandex.ru":u&&u.service||C.source;s=!1;if(!s&&E&&E.length)for(x=0;x<E.length;x++)if(RegExp(E[x]).test(q)){s=!0;break}if(!s&&G&&G.length)for(E=0;E<G.length;E++)if(RegExp(G[E]).test(tb)){s=!0;break}!s&&(t.google_adwords&&
n.gclid)&&(s=!0);if(s&&(p&&p.length)&&(s=!1,t=A||u&&u.campaign||C&&C.campaign))for(A=0;A<p.length;A++)if(p[A]==t){s=!0;break}p=s}if(p){h[r].track_id&&W(g,h[r].track_id,43200);break b}}}(g=ta(g))&&d.substs&&(d=d.substs[g])&&(W("_ym_mp2_substs_"+m,B(d)),m=Ia(d),a.params("__ym",m?"mp_trackid":"mp_trackid_bad",g))}X(c,"load",k.replacePhones);k._inited=!0})}Ua();I&&(I.enableAll?k.enableAll():(I.clickmap&&k.clickmap(I.clickmap),I.trackLinks&&k.trackLinks(I.trackLinks),I.accurateTrackBounce&&k.accurateTrackBounce(I.accurateTrackBounce),
I.ad&&ad()));k._webvisor&&(na=new ob(f,p,I,K,ia,k))}function Za(a){var b={delay:Ba};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?Ba:a.delay;break;case "boolean":b.on=a;break;default:return}k._trackLinks=b}function Ua(){Za(!1);X(b,"click",function(a){k._trackLinks.on&&Va(a)})}function Va(a){function b(a){var d=Ib(c.innerHTML?c.innerHTML.toString().replace(/<\/?[^>]+>/gi,""):"");O(f,f==d?"":d,A().href,null,a)}var c=Q(a);if(c){var d=!1,f=""+c.href,
g=f?f.split(/\?/)[0]:"";if(ib.test(g)||ib.test(f)||w(f,ja)||w(g,ja))d=!0;var h=c.className,g=h&&-1!=h.search(/ym-disable-tracklink/)?!0:!1,h=h&&-1!=h.search(/ym-external-link/)?!0:!1;g||(a={ln:!0,dl:d,isDelay:U(a,c),delay:k._trackLinks.delay},h?b(a):R(A().hostname,c.hostname)?d&&(a.ln=!1,b(a)):f&&-1!=f.search(/^ *javascript:/i)||(a.ut=Aa,b(a)))}}function kb(a,f){function e(){if(!E){t&&clearTimeout(t);var b=f,c;c=k?p:p+ +new Date-r;b-=c;0>b&&(b=0);t=setTimeout(function(){E=!0;m(!1);a()},b)}}function d(){h||
(g=!0,k=!1,h=!0,e())}function m(a){for(var b=0;b<y.length;b+=3)a?X(y[b],y[b+1],y[b+2]):Ja(y[b],y[b+1],y[b+2])}var g=!1,h=!1,k=!0,p=0,r=+new Date,t=null,E=!1,y=[c,"blur",function(){k=g=h=!0;p+=+new Date-r;r=+new Date;e()},c,"focus",function(){g||h||(p=0);r=+new Date;g=h=!0;k=!1;e()},b,"click",d,b,"mousemove",d,b,"keydown",d,b,"scroll",d];m(!0);e()}function ub(a){function b(){var a=A().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 m(){var f=b();f!==c&&(a(),c=f);oa=setTimeout(m,200)})()}function Ka(a){La=ca=la;O(A().href,$(),La,null,{ut:ga,ad:1==p&&c.Ya&&c.Ya.Direct?!0:!1,wh:!0,saveRef:!0});la=A().href}function $a(a){function f(){var a=b.documentElement;return Math.max(a.scrollWidth,b.body.scrollWidth,a.clientWidth)}function e(a){function d(a){a=a.getBoundingClientRect();var e=b.body,f=b.documentElement,n=a.left+(c.pageXOffset||f.scrollLeft||e.scrollLeft)-(f.clientLeft||e.clientLeft||0);return{top:Math.round(a.top+
(c.pageYOffset||f.scrollTop||e.scrollTop)-(f.clientTop||e.clientTop||0)),left:Math.round(n)}}return a.getBoundingClientRect?d(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 d(a){return a.toString().toUpperCase()}function m(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 k(a){for(var b=d(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 p=this,t=0,z=null,w="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,G=String.fromCharCode,D={},u=0;u<w.length;u++)D[w[u]]=G(E),G(E),E++;this.handler=function(a){var u=b.getElementsByTagName("body")[0];if(!c.ymDisabledClickmap&&!m(u)){if(p._prefs.hasQuota){if(!p._prefs.quota)return;p._prefs.quota--}var s=a.target||a.srcElement;3==s.nodeType&&(s=s.parentNode);var u=d(s.nodeName),q=g(a),x;a.which||a.button===ea||(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"==u)if(x=s.offsetHeight,x=!(0===s.offsetWidth&&0===x||s.style&&"none"===
s.style.display)){b:{for(x=s;x.parentNode;){if(m(x)){x=!0;break b}x=x.parentNode}x=!1}if(x=!x){b:{x=p._prefs.ignoreTags;for(var E=0;E<x.length;E++)if(d(x[E])==d(u)){x=!0;break b}x=!1}x=!x&&p._prefs.filter(s,u)}}if(x){u=+new Date;s={dom:s,x:q.x,y:q.y,time:u};if((q=50<u-t)&&!(q=!p._prefs.ignoreSameClicks)){if(q=z){x=Math.abs(q.x-s.x);var E=Math.abs(q.y-s.y),w=s.time-q.time,q=q.dom==s.dom&&2>x&&2>E&&1E3>w?!0:!1}else q=!1;q=!q}if(q&&!Da()){x=g(a);q=x.x;x=x.y;var w=a.target||a.srcElement,G=p._prefs,B=
e(w),H="",E=A().href;switch(G.mode){case "fixed":H="0";k(w)&&(H+="u");break;case "centered":H="1";B=Math.floor(f()/2);q=q>B?q-B+32768:q;k(w)&&(H+="u");break;default:H=d(w.nodeName);H="BODY"==H||"HTML"==H?f():w.offsetWidth;G=d(w.nodeName);"BODY"==G||"HTML"==G?(G=b.documentElement,G=Math.max(G.scrollHeight,b.body.scrollHeight,G.clientHeight)):G=w.offsetHeight;H||(H=1);G||(G=1);q=Math.floor(65535*(q-B.left)/H);x=Math.floor(65535*(x-B.top)/G);for(B="";w.parentNode&&"BODY"!=d(w.nodeName)&&"HTML"!=d(w.nodeName);){B+=
D[w.nodeName]||"*";b:{for(var H=w.parentNode,F=G=0;F<H.childNodes.length;F++)if(w.nodeName==H.childNodes[F].nodeName){if(w==H.childNodes[F]){H=G;break b}G++}H=0}B+=H||"";w=w.parentNode}H=r(B,128)}S||(E=E?E.replace(/\#.*$/,""):E);"function"==typeof p._prefs.urlFilter&&(E=p._prefs.urlFilter(E));q=ba(cb,["page-url",r(E,ra),"pointer-click","x:"+q+":y:"+x+":t:"+Math.floor(Math.floor(+new Date-Hb)/100)+":p:"+H]);(new Image).src=q;h(q);if(q=a.target||a.srcElement){3==q.nodeType&&(q=q.parentNode);for(x=d(q.nodeName);q.parentNode&&
q.parentNode.nodeName&&("A"!=x&&"AREA"!=x||!q.href);)q=q.parentNode,x=d(q.nodeName);q=q.href?q:!1}else q=!1;q&&U(a,q)&&y(p._prefs.delay)}t=u;z=s}}};this.setPrefs=function(a){function b(a,c){return!0}this._prefs="undefined"==typeof a||!1===a||!0===a?{filter:b,ignoreTags:[],mode:"",delay:Ba,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||b,ignoreTags:a.ignoreTags||[],mode:a.mode||"",delay:"undefined"==typeof a.delay?Ba: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||X(b,"click",this.handler,!0);this._start=!0};this.stop=function(){this._start&&Ja(b,"click",this.handler,!0);this._start=!1};this.start(a)}var k=this,K=Math.round(1073741824*Math.random()),V="//mc.yandex.ru/watch/",
cb="//mc.yandex.ru/clmap/",Y,ga="",xa=za,ca=P.href,la=P.href,La="",I;Ya._metrika.counter||(Ya._metrika.counter=k);"object"==typeof f&&(I=f,t=f.defer,ga=f.ut,p=f.type,F=f.params,xa=f.onlyHttps?"https:":za,f=f.id);f=f||0;p=p||0;Y=f+":"+p;if(Ya._metrika.counters[Y])return Ya._metrika.counters[Y];var ya=null,ma=null,ha=null,ia=new function(a,f,e){function d(a,b,d){if(h)m(h,g(a,b,0),d,"application/x-www-form-urlencoded");else{if("XMLHttpRequest"in c){var e=new XMLHttpRequest;if("withCredentials"in e){var f=
d?"POST":"GET";a=g(a,b,"POST"==f?1:0);e.open(f,a,!0);e.withCredentials=!0;"POST"!=f||Sb||e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");e.send("POST"==f?lb(d):null);return}}for(f in d)d.hasOwnProperty(f)&&(b[f]=d[f]);(new Image).src=g(a,b,0)}}function m(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 l in c)c.hasOwnProperty(l)&&M(b,'<textarea name="',l,'"></textarea>');M(b,"</form>");f.innerHTML=b.join("");a.body.appendChild(f);l=f.getElementsByTagName("form")[0];for(var g in c)c.hasOwnProperty(g)&&(l[g].value=c[g]);l.submit();setTimeout(function(){a.body.removeChild(f)},1E4)}function g(b,c,d){c["browser-info"]=["ct",d,c["browser-info"]].join(":");return a+"//"+f+"/"+b+"/"+e+"?"+lb(c)}function k(){if(c.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();
a.write("<html><body></body></html>");a.close();return a}return null}try{var h=k()}catch(p){}var r="",t=[];return{send:function(a,b,c,e){a?r?-1<r.indexOf("|"+a+"|")&&d(b,c,e):M(t,arguments):d(b,c,e)},sendMultipart:function(a,c,d,e){m(h||b,g(a,c,e),d,"multipart/form-data")},init:function(a){r="|"+a.join("|")+"|";for(a=0;a<t.length;a++)-1<r.indexOf("|"+t[a][0]+"|")&&d(t[a][1],t[a][2],t[a][3]);t.length=0}}}(xa,"mc.yandex.ru",f),na;k.replacePhones=function(){try{var a=ta("_ym_mp2_substs_"+f);if(a){var b=
(new Function("return "+a))();b&&Ia(b)}}catch(c){}};k.reachGoal=function(a,c){var e=a?"goal://"+A().hostname+"/"+a:A().href,d=$(),f=a?A().href:b.referrer;O(e,d,f,c,{ar:!0,isDelay:a?!0:!1,delay:100});return!0};k.trackLinks=Za;k.hit=function(a,b,c,d,f){a&&O(a,b,c,d,{ut:f,ar:!0,saveRef:!0})};k.params=function(a){if(a){var b=arguments.length;if(1<b){for(var c={},d=c,f=0;f<b-1;f++){var g=""+arguments[f];d[g]={};f<b-2&&(d=d[g])}d[g]=arguments[b-1];a=c}O(A().href,"","",a,{ar:!0,pa:!0,onlyData:!0})}};k.file=
function(a,b,c,d){a&&O(a,"",A().href,d,{ar:!0,ln:!0,dl:!0})};k.extLink=function(a,b,c,d){a&&O(a,"",A().href,d,{ar:!0,ln:!0,ut:Aa})};k.notBounce=function(){var a=0;Na&&Ca&&(a=Ca-Na);O(A().href,"","",null,{cl:a,ar:!0,nb:!0,onlyData:!0})};var ja=[];k.addFileExtension=function(a){"string"==typeof a?ja.push(a):ja=ja.concat(a)};k.clickmap=function(a){k._clickmap?k._clickmap.updateStatus(a):k._clickmap=new $a(a)};k.accurateTrackBounce=function(a){var c=function(){k.notBounce()};k._isAccurateTrackBounce||
(k._isAccurateTrackBounce=!0,T(b.referrer,A().href)||("number"!=typeof a&&(a=15E3),qa?setTimeout(c,a):kb(c,a)))};var oa=null,S=!1;k.trackHash=function(a){!1===a?S&&("onhashchange"in c?Ja(c,"hashchange",Ka):clearInterval(oa),S=!1):S||("onhashchange"in c?X(c,"hashchange",Ka):ub(Ka),S=!0);k._trackHash=S};k.video=function(a,b,c,d){var f=["end","play","pause","seek"];if(a&&c){a:{for(var g=0,h=f.length;g<h;g+=1)if(a===f[g]){f=g;break a}f=-1}-1!==f&&O(c,d||"","",null,{ar:!0,va:a,vt:~~b})}};k.social=function(a,
b,c){a&&b&&O(c||A().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=y;k.uploadPage=function(){};k._performanceTiming=Ga;f&&Ta()};c.ya_cid&&new Ya.Metrika(c.ya_cid,c.ya_params,c.ya_class);c.ya_cid&&!c.ya_hit&&(c.ya_hit=function(b,c){Ya._metrika.counter&&Ya._metrika.counter.reachGoal(b,c)});var F=c.yandex_metrika_callback,T=c.yandex_metrika_callbacks;"function"==typeof F&&F();if("object"==typeof T)for(F=0;F<T.length;F++){var Z=
T[F];Z&&(T[F]=null,Z())}ua("yandex_metrika_callback");ua("yandex_metrika_callbacks");T=["link","click","scroll","res"];for(F=0;F<T.length;F++)if(Z=T[F]+"map",-1!=P.href.search("ym_playback="+Z)){$(za+"//metrika.yandex.ru/js/"+Z+"/_loader.js");break}c.Ya.Metrika.informer=function(b){var c=!!Ya.Metrika._informer;Ya.Metrika._informer=b;c||$(za+"//mc.yandex.ru/metrika/informer.js")};"complete"==b.readyState?va():X(c,"load",va)})(this,this.document);
