(function(d,c,ma){function N(a,b){return function(){try{return a.apply(this,arguments)}catch(g){var c=["cp: "+b,g.name+": "+g.message,"debug: "+Ja,"code: "+$a,"stack: "+g.stack],d=new Image,l="//an.yandex.ru/jserr/"+counterId+"?",f,c={"cnt-class":100+counterType,errmsg:c.join("; ").replace(/\r?\n/g,"\\n")},p=[];for(f in c)c.hasOwnProperty(f)&&(p[p.length]=f+"="+encodeURIComponent(c[f]).replace(/\+/g,"%2B"));f=p.join("&");d.src=l+f}}}function V(a,b,g){return d.setTimeout(N(a,g||"setTimeout"),b)}function O(a){for(var b=
1,g=a.length;b<arguments.length;b++)a[g++]=arguments[b];return a.length}function na(a){return"[object Array]"==Object.prototype.toString.call(a)}function oa(a,b,g){var c,d,l=0;for(c in a)if(a.hasOwnProperty(c)&&(d=g?b.call(g,a[c],c,a,l):b(a[c],c,a,l),l++,!1===d))break;return this}function D(){for(var a={},b="hash host hostname href pathname port protocol search".split(" "),g=b.length,c=g;c--;)a[b[c]]="";try{for(var k=d.location,c=g;c--;){var l=b[c];a[l]=""+k[l]}}catch(f){G&&(a=G)}return a}function zb(a){return a?
(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function E(){return+new Date}function wa(a){return Math.floor(Math.random()*("number"==typeof a?a:1073741824))}function Ob(){var a=c.documentElement,b=c.doctype,g=a.attributes,r="",d="",l="",d=a.outerHTML;if(!d){for(d=0;d<g.length;d++){var f=g[d];f&&(r+=" "+f.name+'="'+(f.value||"")+'"')}d="<html"+r+">"+a.innerHTML+"</html>"}b&&(l="<!DOCTYPE "+b.name+(b.publicId?' PUBLIC "'+b.publicId+'"':"")+(b.systemId?' "'+b.systemId+'"':"")+">\n");return l+d}function ab(a){for(var b=
a.length,g=0,c=255,d=255;b;){var l=21<b?21:b,b=b-l;do{var f="string"==typeof a?a.charCodeAt(g):a[g];g++;if(255<f)var p=f>>8,f=f&255,f=f^p;c+=f;d+=c}while(--l);c=(c&255)+(c>>8);d=(d&255)+(d>>8)}a=(c&255)+(c>>8)<<8|(d&255)+(d>>8);return 65535==a?0:a}function bb(a){for(var b=E(),g=1;0<g;g++)if(0==g%1E3){var c=E();if(b>c)break;if(c-b>a)break}}function Ka(a){return-1!==(""+d.navigator.userAgent).toLowerCase().search(a)}function pa(a,b,g,d){/[^a-z0-9.-]/.test(d)&&(d=null);a=a+"="+encodeURIComponent(b);
g&&(b=new Date,b.setTime(b.getTime()+6E4*g),a+=";expires="+b.toGMTString());d&&(a+=";domain="+d);c.cookie=a+";path=/"}function xa(a){return c.cookie.match(RegExp("(?:^|;\\s*)"+a+"=([^;]*)"))?decodeURIComponent(RegExp.$1):null}function kb(){pa("_metrika_enabled","1",60);var a=!!xa("_metrika_enabled");pa("_metrika_enabled","",-1,void 0);return a}function La(){var a=c.documentElement;return"CSS1Compat"==c.compatMode?a:c.body||a}function Ab(){var a=La();return[a.clientWidth,a.clientHeight]}function Bb(){var a=
La(),b=Ab();return[Math.max(a.scrollWidth,b[0]),Math.max(a.scrollHeight,b[1])]}function Cb(){return[d.pageXOffset||c.documentElement&&c.documentElement.scrollLeft||c.body&&c.body.scrollLeft||0,d.pageYOffset||c.documentElement&&c.documentElement.scrollTop||c.body&&c.body.scrollTop||0]}function Db(a){if(!a.ownerDocument||"PARAM"==a.tagName||a==c.body||a==c.documentElement)return[0,0];if(a.getBoundingClientRect)return a=a.getBoundingClientRect(),[Math.round(a.left+P[0]),Math.round(a.top+P[1])];for(var b=
0,g=0;a;)b+=a.offsetLeft,g+=a.offsetTop,a=a.offsetParent;return[b,g]}function $(a,b){return a==c.documentElement?null:b?a.tagName.toLowerCase()===b?a:$(a.parentNode,b):a==c.body?c.documentElement:a.parentNode}function Eb(a,b){var g=[];if(a)for(var c=a.childNodes,d=0,l=c.length;d<l;d++){var f=c[d];"INPUT"==f.nodeName&&f.type&&"hidden"==f.type.toLocaleLowerCase()||b&&f.nodeName!=b||O(g,f)}return g}function lb(a){var b=Db(a);a=a==c.body||a==c.documentElement?Bb():[a.offsetWidth,a.offsetHeight];return[b[0],
b[1],a[0],a[1]]}function Fb(a){var b="";a=a.childNodes;for(var c=0,d=a.length;c<d;c++)a[c]&&3==a[c].nodeType&&(b+=a[c].nodeValue);return ab(b.replace(/[\u0000-\u0020]+/g,""))}function Gb(a){var b="",c="width height align title alt name".split(" ");"IMG"==a.tagName&&(b+=a.src.toLowerCase());"A"==a.tagName&&(b+=a.href.toLowerCase());for(var b=b+String(a.className||"").toLowerCase(),d=0;d<c.length;d++)a.getAttribute&&(b+=String(a.getAttribute(c[d])||"").toLowerCase());return ab(b.replace(/[\u0000-\u0020]+/g,
""))}function Hb(a){for(var b=c.getElementsByTagName("form"),g=0,d=b.length;g<d;g++)if(b[g]==a)return g;return-1}function qa(a,b){return RegExp("(?:^|\\s)"+b+"(?:\\s|$)").test(a.className)}function Ib(a){return"INPUT"==a.nodeName&&"submit"!=a.type&&"image"!=a.type&&"hidden"!=a.type?"radio"==a.type||"checkbox"==a.type?!a.checked:!a.value:"TEXTAREA"==a.nodeName?!a.value:"SELECT"==a.nodeName?0>a.selectedIndex:!0}function S(a,b,c,d){W[W.length]=[c,c];a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&
a.attachEvent("on"+b,c)}function Ma(a,b,c,d){for(var k=0;k<W.length;k++)if(W[k]&&W[k][0]==c){var l=W[k][1];delete W[k];break}l&&(a.removeEventListener?a.removeEventListener(b,l,!!d):a.detachEvent&&a.detachEvent("on"+b,l))}function ra(a){try{delete d[a]}catch(b){d[a]=ma}}function ya(a){var b=c.createElement("script");b.type="text/javascript";b.async=!0;b.src=a;try{var g=c.getElementsByTagName("html")[0];c.getElementsByTagName("head")[0]||g.appendChild(c.createElement("head"));var d=c.getElementsByTagName("head")[0];
d.insertBefore(b,d.firstChild)}catch(k){}}function ha(){if(top!=d&&parent==top&&d.postMessage&&!Ya.Metrika_visorPlayerOn){Ya.Metrika_visorPlayerOn=!0;var a=c.createElement("div");a.innerHTML='<iframe name="RemoteIframe" allowtransparency="true" style="position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"></iframe>';var b=a.firstChild;V(function(){function a(b,c,d,g,r){try{d.postMessage&&(b.onmessage=function(a){a=a||b.event;try{var d=JSON.parse(a.data)}catch(k){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(a.origin)&&
d&&"script"==d.name&&d.data){a=g.getElementsByTagName("head")[0];var l=g.createElement("base");l.href=d.data;a.appendChild(l);l=g.createElement("script");l.src=d.data;a.appendChild(l);-1<r.userAgent.indexOf("Firefox/3.6.")&&c.removeEventListener("message",b.onmessage,!1);b.onmessage=null}},-1<r.userAgent.indexOf("Firefox/3.6.")&&c.addEventListener("message",b.onmessage,!1),d.postMessage('{"name":"ping"}',"*"))}catch(k){}}var d=c.body||c.documentElement;d.insertBefore(b,d.firstChild);try{var k=b.contentWindow.document}catch(l){}k&&
(k.open(),k.write('<!doctype html><html><head><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7,IE=edge" /></head><body><script type="text/javascript">('+a.toString()+")(window, parent, top, document, navigator);\x3c/script></body></html>"),k.close())},500)}}function Pb(a,b,g,r,k,l){function f(a,e,b){var c=N(function(a){return b(a||d.event)},e);da[da.length]=[a,e,b,c];a.addEventListener?a.addEventListener(e,c,!0):a.attachEvent&&a.attachEvent("on"+e,c)}function p(a,e,b){for(var c=0;c<da.length;c++)if(da[c]&&
da[c][0]==a&&da[c][1]==e&&da[c][2]==b){var m=da[c][3];delete da[c];break}m&&(a.removeEventListener?a.removeEventListener(e,m,!0):a.detachEvent&&a.detachEvent("on"+e,m))}function q(a){var e=La();return[a.pageX||a.clientX+P[0]-(e.clientLeft||0)||0,a.pageY||a.clientY+P[1]-(e.clientTop||0)||0]}function E(a){return a.target||a.srcElement}function G(a){return(a.shiftKey?Za:0)|(a.ctrlKey?mb:0)|(a.altKey?Wa:0)|(a.metaKey?Ja:0)|(a.ctrlKey||a.altKey?db:0)}function K(a){var e=(new Date).getTime();a&&e<a&&(nb+=
a-e+ob);V(function(){K(e)},ob)}function cb(){var a=(new Date).getTime()+nb;a<pb&&(a=pb+ob/2);return pb=a}function L(){return Math.round((cb()-kb)/Qb)}function M(a,e){e=Math.max(0,Math.min(e,65535));O(a,e>>8,e&255)}function u(a,e){O(a,e&255)}function n(a,e){for(e=Math.max(0,e|0);127<e;)O(a,e&127|128),e>>=7;O(a,e)}function S(a,e){255<e.length&&(e=e.substr(0,255));O(a,e.length);for(var b=0;b<e.length;b++)M(a,e.charCodeAt(b))}function R(a,e){n(a,e.length);for(var b=0;b<e.length;b++)n(a,e.charCodeAt(b))}
function Z(a,e,b,c,m,h){for(;b&&(!b.offsetWidth||!b.offsetHeight);)b=$(b);if(!b)return null;var d=b[I];if(!d||0>d)return null;var A={mousemove:v,click:Ma,dblclick:Ua,mousedown:Q,mouseup:na,touch:Rb}[e];if(!A)return null;var g=Db(b);b=[];u(b,A);n(b,a);n(b,d);n(b,Math.max(0,c[0]-g[0]));n(b,Math.max(0,c[1]-g[1]));/^mouse(up|down)|click$/.test(e)&&(a=m||h,u(b,2>a?ta:a==(m?2:4)?Xa:Va));return b}function W(a,e,b,c){e=e[I];if(!e||0>e)return null;var m=[];u(m,Ka);n(m,a);n(m,e);n(m,b[0]);n(m,b[1]);u(m,0);
u(m,0);u(m,c);return m}function ga(a,e){var b=[];u(b,za);n(b,a);n(b,e[0]);n(b,e[1]);return b}function sa(a,e,b){var c=[];b=b[I];if(!b||0>b)return null;u(c,qb);n(c,a);n(c,e[0]);n(c,e[1]);n(c,b);return c}function ka(a,e,b){var c=[];u(c,Ha);n(c,a);n(c,e[0]);n(c,e[1]);n(c,b[0]);n(c,b[1]);return c}function ba(a,e,b,c){var m=[];u(m,w);n(m,a);M(m,e);u(m,b);a=c[I];if(!a||0>a)a=0;n(m,a);return m}function ma(a,e){var b,c;0==e.length?c=b="":100>=e.length?(b=e,c=""):200>=e.length?(b=e.substr(0,100),c=e.substr(100)):
(b=e.substr(0,97),c=e.substr(e.length-97));var m=[];u(m,Ia);n(m,a);R(m,b);R(m,c);return m}function pa(a){var e=[];u(e,Ga);n(e,a);return e}function fa(a){var e=[];u(e,Sb);n(e,a);return e}function ca(a){var e=[];u(e,xa);n(e,a);return e}function ua(a,e){var b=[];u(b,Ca);n(b,a);n(b,e[I]);return b}function va(a,e){var b=[];u(b,Da);n(b,a);n(b,e[I]);return b}function wa(a,e,b){var c=[];u(c,Fa);n(c,a);n(c,e[I]);S(c,String(b));return c}function t(a){var e=a[I];if(!e||0>e||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||
!a.form||qa(a.form,"-metrika-noform"))return null;var b=Hb(a.form);if(0>b)return null;var c;c="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 c)return null;for(var m=-1,d=a.form.elements,h=d.length,A=0,g=0;A<h;A++)if(d[A].name==a.name){if(d[A]==a){m=g;break}g++}if(0>m)return null;d=[];u(d,aa);n(d,e);
n(d,b);n(d,c);R(d,a.name||"");n(d,m);return d}function Na(a,e){var b=Hb(e);if(0>b)return null;for(var c=e.elements,m=c.length,d=[],A=0;A<m;A++)if(!Ib(c[A])){var h=c[A][I];h&&0<h&&O(d,h)}c=[];u(c,Tb);n(c,a);n(c,b);n(c,d.length);for(b=0;b<d.length;b++)n(c,d[b]);return c}function ea(){var a=[];u(a,H);return a}function x(a,e,b){a=a.apply(d,e);Oa.append(a,b)}function J(a){if(a[I])a:{var e=L(),b=a[I];if(0<b){var c=[];a=lb(a);var m=eb[b],d=a[0]+"x"+a[1],A=a[2]+"x"+a[3];d!=m.pos&&(m.pos=d,u(c,y),n(c,e),n(c,
b),n(c,a[0]),n(c,a[1]));A!=m.size&&(m.size=A,u(c,C),n(c,e),n(c,b),n(c,a[2]),n(c,a[3]));if(c.length){a=c;break a}}a=null}else{(b=$(a))&&J(b);a[I]=rb;eb[rb]={};rb++;if(a.nodeName)if(b=+a[I],!isFinite(b)||0>=b)e=null;else{var c=Ea,m=0,h=$(a),d=h&&h[I]?h[I]:0;0>d&&(d=0);var A=a.nodeName.toUpperCase(),g=oa[A];g||(c|=$a);var f;b:{f=Eb($(a),a.nodeName);for(var B=0;B<f.length;B++)if(f[B]==a){f=B;break b}f=0}f||(c|=bb);B=lb(a);(h=h?lb(h):null)&&B[0]==h[0]&&B[1]==h[1]&&B[2]==h[2]&&B[3]==h[3]&&(c|=ra);eb[b].pos=
B[0]+"x"+B[1];eb[b].size=B[2]+"x"+B[3];a.id&&"string"==typeof a.id&&(c|=ha);(h=Fb(a))&&(c|=ya);var s=Gb(a);s&&(m|=jb);var v;b:{v=Eb($(a),a.tagName);for(var U=0;U<v.length;U++)if((!v[U].id||"string"!=typeof v[U].id)&&Gb(v[U])==s&&Fb(v[U])==h){v=!0;break b}v=!1}v&&(c|=la,e=ab((a.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,"")));v=[];u(v,Ub);n(v,b);u(v,c);n(v,d);g?u(v,g):S(v,A);f&&n(v,f);c&ra||(n(v,B[0]),n(v,B[1]),n(v,B[2]),n(v,B[3]));c&ha&&S(v,a.id);h&&M(v,h);c&la&&M(v,e);u(v,m);s&&M(v,s);e=
v}else a[I]=-1,e=null;Oa.append(e,void 0);a=t(a)}Oa.append(a,void 0)}function X(a){var e=E(a),b,c,m=0;if(e&&"SCROLLBAR"!=e.nodeName){if(e&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(e.tagName))if(e[I])J(e);else if(b=$(e,"form"))for(b=b.elements,c=b.length;m<c;m++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[m].tagName)&&!b[m][I]&&J(b[m]);else J(e);else J(e);x(Z,[L(),a.type,e,q(a),a.which,a.button])}}function Pa(a){X(a);var e,b;d.getSelection?(a=d.getSelection(),e=a.toString(),b=a.anchorNode):c.selection&&c.selection.createRange&&
(a=c.selection.createRange(),e=a.text,b=a.parentElement());for(;b&&1!=b.nodeType;)b=b.parentNode;b&&"INPUT"==b.tagName&&"password"==b.type||b&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(b.className)||e==sb||(sb=e,x(ma,[L(),e]))}function F(a){var e=cb(),b=e-Jb;if(!(b<Kb)){var c=q(a),m=tb[0]-c[0],d=tb[1]-c[1],m=m*m+d*d;0>=m||16>m&&100>b||20>b&&256>m||(Jb=e,tb=c,X(a))}}function z(){P=Cb();var a=cb();a-Lb<Kb||10>Math.abs(P[0]-ub[0])&&10>Math.abs(P[1]-ub[1])||(Lb=a,ub=P,x(ga,[L(),P]))}function Qa(a){a=E(a);
var e=Math.random(),b=[a.scrollLeft,a.scrollTop];if(a.localId){if(e=vb[a.localId],!e||10>Math.abs(b[0]-e[0])&&10>Math.abs(b[1]-e[1]))return}else{for(;vb[e];)e=Math.random();a.localId=e}vb[a.localId]=b;a!==c&&(J(a),x(sa,[L(),b,a]))}function Ra(){x(ka,[L(),Ab(),Bb()])}function Aa(a){x(ea,[],!0);try{if("beforeunload"==a.type)for(var e=+new Date+50;+new Date<e;);}catch(b){}}function T(a,e,b){a=E(a);"INPUT"==a.tagName&&"password"==a.type||/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||(J(a),x(ba,
[L(),e,b,a]))}function ia(a){var e=a.keyCode,b=G(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}[e]||112<=e&&123>=e||96<=e&&105>=e||b&db)19==e&&(b&~db)==mb&&(e=144),T(a,e,b|db),wb=!1,V(function(){wb=!0},1),67==e&&b&mb&&!(b&Wa||b&Za)&&Ba()}function ja(a){wb&&!xb&&0!==a.which&&(T(a,a.charCode||a.keyCode,G(a)),xb=!0,V(function(){xb=!1},1))}function Ba(){yb||(yb=!0,sb&&x(pa,[L()]),V(function(){yb=!1},
1))}function Y(){Sa||(Sa=!0,x(fa,[L()]))}function e(){Sa&&(Sa=!1,x(ca,[L()]))}function m(a){(!Sa||a&&!a.fromElement)&&Y()}function A(a){a&&!a.toElement&&e()}function h(a){a=E(a);var e,b,c=0;if(a&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[I])J(a);else if(e=$(a,"form"))for(e=e.elements,b=e.length;c<b;c++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(e[c].tagName)&&!e[c][I]&&J(e[c]);else J(a);x(ua,[L(),a])}}function U(a){(a=E(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(J(a),x(va,[L(),
a]))}function B(a){a=E(a);if(!("INPUT"==a.tagName&&"password"==a.type||a&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className))&&a&&/^INPUT|SELECT|TEXTAREA$/.test(a.tagName)){var e=/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;J(a);x(wa,[L(),a,e])}}function s(a){a=E(a);if(!qa(a,"-metrika-noform")&&"FORM"==a.nodeName){for(var e=a.elements,b=0;b<e.length;b++)Ib(e[b])||J(e[b]);x(Na,[L(),a],!0)}}function fb(a){z();if(a.touches&&a.touches.length){var e=E(a);if(e){J(e);for(var b=0;b<a.touches.length;b++)x(Z,
[L(),"touch",e,[a.touches[b].pageX,a.touches[b].pageY],0,0])}}}function gb(a){var e=E(a);if(e){var b;"wheel"==a.type?b=0<a.deltaY?1:0>a.deltaY?2:0:"mousewheel"==a.type&&(b=0<a.wheelDelta?2:0>a.wheelDelta?1:0);b&&(J(e),x(W,[L(),e,q(a),b]))}}var Oa=new Mb({protocol:a,counterId:b,counterType:g,meta:{url:D().href,hitId:k,timezone:hb,timestamp:Ta}}),ob=20,Qb=50,Kb=10,Ub=1,v=2,za=3,qb=16,Q=4,w=5,aa=7,y=9,C=10,Tb=11,Rb=12,H=13,Sb=14,xa=15,Ca=17,Da=18,Fa=19,Ga=27,Ha=28,Ia=29,na=30,Ka=31,Ma=32,Ua=33,ta=1,
Va=2,Xa=4,la=1,$a=2,bb=4,ra=8,ya=16,ha=32,Ea=64,jb=2,Wa=1,Za=2,mb=4,Ja=8,db=16,oa={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},da=[],nb=0;K(0);var pb=0,rb=1,Jb=0,tb=[0,0],Lb=0,ub=[0,0],vb={},wb=!0,xb=!1,sb="",yb=!1,Sa=!0,kb=cb(),I="metrikaId_"+Math.random(),eb={},ib=":submit"+Math.random();"MetrikaPlayer"!=d.name&&
(f(c,"mousemove",F),f(c,"click",X),f(c,"dblclick",X),f(c,"mousedown",X),f(c,"mouseup",Pa),f(d,"scroll",z),"onmousewheel"in c?f(c,"mousewheel",gb):f(c,"wheel",gb),f(d,"beforeunload",Aa),Nb||f(d,"unload",Aa),f(d,"resize",Ra),f(c,"keydown",ia),f(c,"keypress",ja),f(c,"copy",Ba),f(c,"touchmove",fb),f(c,"touchstart",fb),c.attachEvent&&!d.opera?(f(c,"focusin",m),f(c,"focusout",A)):(f(d,"focus",Y),f(d,"blur",e),f(c,"blur",e)),c.addEventListener?(c.addEventListener("scroll",Qa,!0),c.addEventListener("focus",
h,!0),c.addEventListener("blur",U,!0),c.addEventListener("change",B,!0),c.addEventListener("submit",s,!0)):c.attachEvent&&(f(c,"focusin",h),f(c,"focusout",U),function(){for(var a=c.getElementsByTagName("form"),e=0;e<a.length;e++){for(var b=a[e].getElementsByTagName("*"),m=0;m<b.length;m++)/^INPUT|SELECT|TEXTAREA$/.test(b[m].tagName)&&f(b[m],"change",B);f(a[e],"submit",s)}}()),function(){var a=c.getElementsByTagName("form");if(a.length)for(var e=0;e<a.length;e++)a[e][ib]=a[e].submit,a[e].submit=function(){s({target:this});
return this[ib]()}}(),"0:0"!=P.join(":")&&z(),Ra(),l.uploadPage=function(e){if("function"==typeof d.toStaticHTML&&-1<d.toStaticHTML.toString().indexOf("NoScript"))return!1;var m=c.documentElement;if(m&&19E4<(""+m.innerHTML).length)return!1;var h=d.XMLHttpRequest?new d.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),A=(""+(c.characterSet||c.charset||"")).toLowerCase(),m="text/html"+(A?";charset="+A:""),v=new Vb({protocol:a,counterId:b,counterType:g});if("html"==e)return e=RegExp("<script [^>]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>",
"gi"),v.sendContent(Ob().replace(e,""),m,k,hb,Ta),!0;h&&(h.open("get",D().href,!0),h.onreadystatechange=function(){4==h.readyState&&v.sendContent(h.responseText,h.getResponseHeader("content-type"),k,hb,Ta)},h.overrideMimeType&&A&&h.overrideMimeType(m),h.send(null));return!0});return{start:function(){Oa.activate()},stop:function(){Oa.clear();p(c,"mousemove",F);p(c,"click",X);p(c,"dblclick",X);p(c,"mousedown",X);p(c,"mouseup",Pa);p(c,"mousewheel",gb);p(c,"wheel",gb);p(d,"scroll",z);p(d,"beforeunload",
Aa);p(d,"unload",Aa);p(d,"resize",Ra);p(c,"keydown",ia);p(c,"keypress",ja);p(c,"copy",Ba);p(c,"touchmove",fb);p(c,"touchstart",fb);p(c,"focusin",m);p(c,"focusout",A);p(d,"focus",Y);p(d,"blur",e);p(c,"blur",e);c.removeEventListener?(c.removeEventListener("scroll",Qa,!0),c.removeEventListener("focus",h,!0),c.removeEventListener("blur",U,!0),c.removeEventListener("change",B,!0),c.removeEventListener("submit",s,!0)):c.detachEvent&&(p(c,"focusin",h),p(c,"focusout",U),function(){for(var a=c.getElementsByTagName("form"),
e=0;e<a.length;e++){for(var b=a[e].getElementsByTagName("*"),m=0;m<b.length;m++)/^INPUT|SELECT|TEXTAREA$/.test(b[m].tagName)&&p(b[m],"change",B);p(a[e],"submit",s)}}());(function(){for(var a=c.getElementsByTagName("form"),e=0;e<a.length;e++)a[e][ib]&&(a[e].submit=a[e][ib])})()},uploadPages:function(a,e){function b(){p(c,"DOMContentLoaded",b);p(d,"load",b);for(var m=a.split(/\n/),h=D().href,A=/regexp:/,g=0;g<m.length;g++){var v=m[g];if(v)if(A.test(v)){if(v=zb(v.replace(A,"")),RegExp(v).test(h)){l.uploadPage(e);
break}}else if(-1!==h.indexOf(v)){l.uploadPage(e);break}}}"complete"==c.readyState?b():(f(c,"DOMContentLoaded",b),f(d,"load",b))}}}var Wb=!0,Ja="",Nb=!Ka(/webkit/)&&Ka(/gecko/),P=Cb(),W=[],Ua=null,q={mixin:function(a){for(var b=1;b<arguments.length;b++)if(arguments[b]){for(var c in arguments[b])arguments[b].hasOwnProperty(c)&&(a[c]=arguments[b][c]);arguments[b].hasOwnProperty("toString")&&(a.toString=arguments[b].toString)}return a}},R=function(a){a=a||{};q.mixin(this,a);this._initComponent()};R.prototype._initComponent=
function(){};R.inherit=function(a){a=a||{};var b="function"==typeof this?this:Object;a.hasOwnProperty("constructor")||(a.constructor=function(){b.apply(this,arguments)});var c=function(){};c.prototype=b.prototype;a.constructor.prototype=new c;q.mixin(a.constructor.prototype,a);a.constructor.prototype.constructor=a.constructor;a.constructor.superclass=b.prototype;a.constructor.inherit=R.inherit;return a.constructor};var ka=R.inherit({counterId:"",_initComponent:function(){ka.superclass._initComponent.apply(this,
arguments);this._buffer={};this._ls=null;try{this._ls=d.localStorage}catch(a){}},set:function(a,b){if(this.isEnabled())try{!b||b&&na(b)&&!b.length?this.remove(a):this._ls.setItem(this._getLsKey(a),JSON.stringify(b))}catch(c){}},get:function(a){if(this.isEnabled())try{return JSON.parse(this._ls.getItem(this._getLsKey(a)))}catch(b){}return null},remove:function(a){if(this.isEnabled())try{this._ls.removeItem(this._getLsKey(a))}catch(b){}},isEnabled:function(){return this._ls&&d.JSON&&"object"==typeof this._ls&&
"object"==typeof d.JSON},_getLsKey:function(a){return"_ym"+this.counterId+"_"+a}}),Ca=R.inherit({counterId:"",onlyCurrentDomain:!1,skipPrefix:!1,_initComponent:function(){Ca.superclass._initComponent.apply(this,arguments);this._domain=this.onlyCurrentDomain?"":"."+G.host.split(".").slice(-2).join(".")},create:function(a,b,d){a=[this._prepareName(a)+"="+encodeURIComponent(b)];d&&(b=new Date,b.setTime(b.getTime()+6E4*d),a.push("expires="+b.toGMTString()));this._domain&&a.push("domain="+this._domain);
a.push("path=/");c.cookie=a.join(";")},read:function(a){return c.cookie.match(RegExp("(?:^|;\\s*)"+this._prepareName(a)+"=([^;]*)"))?decodeURIComponent(RegExp.$1):null},erase:function(a){this.create(a,"",-1)},_prepareName:function(a){return(this.skipPrefix?"":"_ym_")+a+(this.counterId?"_"+this.counterId:"")}});Ca.isEnabled=function(){var a=new Ca;a.create("metrika_enabled","1",60);var b=!!a.read("metrika_enabled");a.erase("metrika_enabled");return b};q.forEachKey=function(a,b,c){for(var d in a)a.hasOwnProperty(d)&&
b.call(c,d,a[d],a)};q.inArray=function(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return!0;return!1};var K=R.inherit({transports:[],postParams:[],send:function(a,b,c,d){c=c||function(){};var k={},l={};q.forEachKey(b,function(a,b){q.inArray(this.postParams,a)?l[a]=b:k[a]=b},this);for(b=0;b<this.transports.length;b++)if((new this.transports[b]).request(a,k,l,c,d))return!0;return!1}}),ta={};q.isArray=function(a){return"[object Array]"==Object.prototype.toString.call(a)};ta.stringify=function(a){var b=
[],c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(q.isArray(d))for(var k=0;k<d.length;k++)b.push(encodeURIComponent(c)+"="+encodeURIComponent(String(d[k])));else b.push(encodeURIComponent(c)+"="+encodeURIComponent(String(d)))}return b.join("&")};var Da=R.inherit({_buildUrl:function(a,b){return a+(-1<a.indexOf("?")?"&":"?")+ta.stringify(b)}}),M=Da.inherit({request:function(a,b,c,r,k){if("[object Opera]"=={}.toString.call(d.opera)){var l=d.opera.version();if("string"==typeof l&&"12"==l.split(".")[0]&&
/[^a-z0-9.:-]/.test(G.host))return!1}if("XMLHttpRequest"in d){var f=new XMLHttpRequest;if("withCredentials"in f)return f.open("POST",this._buildUrl(a,b),!0),f.withCredentials=!0,f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),f.send(ta.stringify(c)),N(function(){4==f.readyState?200==f.status&&r.call(k):V(arguments.callee,50,"TransportXHR.request")},"TransportXHR.request")(),!0}return!1}});q.random=function(a,b){2>arguments.length&&(a=0);1>arguments.length&&(b=1073741824);return Math.floor(Math.random()*
(b-a))+a};var fa=Da.inherit({enctype:"application/x-www-form-urlencoded",htmlfileOnly:!1,_initComponent:function(){fa.superclass._initComponent.apply(this,arguments);"_htmlfile"in fa.prototype||(fa.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:c)},request:function(a,b,c,d,k){var l=this._doc;if(!l)return!1;var f="ifr"+q.random(),p=l.createElement("div");p.style.position="absolute";p.style.left="-99999px";p.style.top="-99999px";var E=['<iframe name="',
f,'"></iframe>','<form action="',this._buildUrl(a,b),'" method="post" target="',f,'" enctype="',this.enctype,'">'];q.forEachKey(c,function(a){O(E,'<textarea name="',a,'"></textarea>')});O(E,"</form>");p.innerHTML=E.join("");l.body.appendChild(p);var D=p.getElementsByTagName("form")[0],G=p.getElementsByTagName("iframe")[0];q.forEachKey(c,function(a,b){D[a].value=b});G.onload=N(function(){G.onload=null;d.call(k)},"TransportForm.request.1");D.submit();V(function(){l.body.removeChild(p)},1E4,"TransportForm.request.2");
return!0},_createHtmlfile:function(){try{if(d.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();a.write("<html><body></body></html>");a.close();return a}}catch(b){}return null}}),ba=fa.inherit({htmlfileOnly:!0}),Xb=Da.inherit({request:function(a,b,c,d,k){var l=new Image;l.onload=N(function(){d.call(k)},"TransportImage.request");l.src=this._buildUrl(a,q.mixin({},b,c));return!0}});q.mergeArrays=function(a){for(var b=1;b<arguments.length;b++)if(q.isArray(arguments[b]))for(var c=0;c<arguments[b].length;c++)a[a.length]=
arguments[b][c]};var Z=K.inherit({protocol:"",host:"mc.yandex.ru",resource:"",counterId:"",counterType:0,retry:!1,transports:[M,ba,Xb],_initComponent:function(){Z.superclass._initComponent.apply(this,arguments);this.retry&&(this._storage=new ka)},send:function(a,b,c,d){if(this.retry&&this._storage.isEnabled()){b.rqnl=b.rqnl||0;b.rqnl++;for(var k=this._storage.get("retryReqs")||{},l=0;k[l];)l++;k[l]={protocol:this.protocol,host:this.host,resource:this.resource,counterId:this.counterId,postParams:this.postParams,
params:a,browserInfo:b,time:+new Date};this._storage.set("retryReqs",k)}var k=[this.protocol,"//",this.host,"/"+this.resource+"/"+this.counterId].join(""),f=[];b&&(q.forEachKey(b,function(a,b){"t"!=a&&q.mergeArrays(f,[a,b])}),b.t&&q.mergeArrays(f,["t",b.t]));f.length&&(a["browser-info"]=f.join(":"));this.counterType&&(a["cnt-class"]=this.counterType);return Z.superclass.send.call(this,k,a,function(){if(this.retry&&this._storage.isEnabled()){var a=this._storage.get("retryReqs")||{};delete a[l];this._storage.set("retryReqs",
a)}c&&c.apply(d,arguments)},this)}});Z.retransmit=function(){var a=new ka,b=a.get("retryReqs")||{};a.remove("retryReqs");q.forEachKey(b,function(a,b){b.time&&b.time+864E5>+new Date&&(new Z({protocol:b.protocol,host:b.host,resource:b.resource,counterId:b.counterId,postParams:b.postParams||[],retry:!0})).send(b.params,b.browserInfo)})};var ca={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",tail:"+/=",tailSafe:"*-_",encode:function(a,b){for(var c=(ca.abc+(b?ca.tailSafe:ca.tail)).split(""),
d=a.length,k=[],l=d-d%3,f,p=0;p<l;p+=3)f=(a[p]<<16)+(a[p+1]<<8)+a[p+2],O(k,c[f>>18&63],c[f>>12&63],c[f>>6&63],c[f&63]);switch(d-l){case 1:f=a[l]<<4;O(k,c[f>>6&63],c[f&63],c[64],c[64]);break;case 2:f=(a[l]<<10)+(a[l+1]<<2),O(k,c[f>>12&63],c[f>>6&63],c[f&63],c[64])}return k.join("")}},Yb={encode:function(a){for(var b=[],c=0,d=a.length;c<d;c++){var k=a.charCodeAt(c);128>k?b.push(k):(127<k&&2048>k?b.push(k>>6|192):(b.push(k>>12|224),b.push(k>>6&63|128)),b.push(k&63|128))}return b}},Vb=Z.inherit({resource:"webvisor",
transports:[M,fa],postParams:["wv-data"],sendContent:function(a,b,c,d,k,l,f){if(!a)return!1;-1<a.indexOf("\r")&&(a=a.replace(/\r\n/g,"\n"));a={"wv-type":1,"page-url":D().href,"wv-hit":c,"wv-data":ca.encode(Yb.encode(a))};return this.send(a,{z:d,i:k,pct:b||""},l,f)}});q.defer=function(a,b,c,d,k){return V(function(){a.apply(c,d||[])},b,k)};var Ea=R.inherit({maxBufferSize:255,flushTimeout:1E4,active:!0,meta:null,onFlush:function(){},onFlushCtx:null,_initComponent:function(){Ea.superclass._initComponent.apply(this,
arguments);this._data=[];this._packetNumber=0;this._flushTID=null},append:function(a,b){q.mergeArrays(this._data,a);this.active&&((b||this._data.length>=this.maxBufferSize)&&this._flush(),this._flushTID||(this._flushTID=q.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},_flush:function(){this.onFlush.call(this.onFlushCtx||this,this._data,this.meta,this._packetNumber);
this._packetNumber++;this.clear()}});q.fletcher=function(a){for(var b=a.length,c=0,d=255,k=255;b;){var l=21<b?21:b,b=b-l;do{var f="string"==typeof a?a.charCodeAt(c):a[c];c++;if(255<f)var p=f>>8,f=f&255,f=f^p;d+=f;k+=d}while(--l);d=(d&255)+(d>>8);k=(k&255)+(k>>8)}a=(d&255)+(d>>8)<<8|(k&255)+(k>>8);return 65535==a?0:a};var Zb=Z.inherit({resource:"webvisor",retry:!0,postParams:["wv-data"],sendPacket:function(a,b,c,d,k,l,f,p){if(!a||!a.length)return!1;a={rn:q.random(),"page-url":b,wmode:0,"wv-type":0,
"wv-hit":c,"wv-part":d+1,"wv-check":q.fletcher(a),"wv-data":ca.encode(a,!0)};return this.send(a,{z:k,i:l},f,p)}}),Mb=Ea.inherit({protocol:"",counterId:"",counterType:"",meta:null,maxBufferSize:7500,flushTimeout:3E4,active:!1,_initComponent:function(){Mb.superclass._initComponent.apply(this,arguments);this._sender=new Zb({protocol:this.protocol,counterId:this.counterId,counterType:this.counterType})},onFlush:function(a,b,c){this._sender.sendPacket(a,b.url,b.hitId,c,b.timezone,b.timestamp)}});d.Ya=
d.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.counters=Ya._metrika.counters||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};var $b=!1,G=D(),hb,Ta,ua=d.navigator,va=d.screen,ga="https:"==G.protocol?"https:":"http:",$a=471,Fa="object"==typeof c.all,Va=Fa?512:2048,ac=Fa?512:2048,jb=Fa?100:400,Ga="noindex",Ha=50,Wa=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"),bc=E(),cc="_ym_visorc",Xa,Ia,dc="//mc.yandex.ru/clmap/";d.Ya.Metrika=function(a,b,g,r){function k(a,b){b=b||256;if(!a)return"";a.length>b&&(a=a.substr(0,b));return(d.encodeURIComponent||d.escape)(a).replace(/\+/g,"%2B")}function l(a){function b(a){return a?a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):""}if(a===ma)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 c=
[],d=0,f=a.length;d<f;d++)c[c.length]=l(a[d]);return"["+c.join(",")+"]";case Object:c="{";d=0;for(f in a)if(a.hasOwnProperty(f)){var B=a[f];B!==ma&&(c+=(d?",":"")+'"'+b(f)+'":'+l(B),d++)}return c+"}";default:return"null"}}function f(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 p(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 K(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}function M(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 R(e,b,A){function h(a,e){a&&e&&(A?B[a]=e:B[B.length]=[a,e].join(":"))}function f(a){h(a,
b[a]?"1":"")}b=b||{};var B=A?{}:[],s=-1*(new Date).getTimezoneOffset(),g=L();Ta||(Ta=g,hb=s);h("j",ua.javaEnabled()?"1":"");va&&h("s",va.width+"x"+va.height+"x"+(va.colorDepth||va.pixelDepth));h("f",z.getFlashVersion());h("l",z.getSilverlightVersion()||"");b.pa||h("w",W()+"x"+u());h("z",s);h("i",g);h("en",(""+(c.characterSet||c.charset||"")).toLowerCase());h("v",$a);h("c",ua.cookieEnabled?"1":"");h("jv",z.getJScriptVersion());h("la",z.getLanguage());h("ex","prerender"==c.webkitVisibilityState?"pre1":
"");Y&&h("wh","1");g="ar ln dl ad nb pa".split(" ");for(s=0;s<g.length;s++)f(g[s]);g=["va","vt","sn","sa","he"];b.nb&&g.push("cl");for(s=0;s<g.length;s++){var k=g[s];h(k,b[k])}b.reqNum&&(s=new ka({counterId:a}),s.isEnabled()&&((g=s.get("reqNum"))?g++:g=1,s.set("reqNum",g),(g=s.get("reqNum"))&&h("rqn",g)));h("rn",wa());h("hid",Na);h("ds",$());t._firstPaint||(t._firstPaint=ba(),h("fp",t._firstPaint));if(t._webvisor){d.name||(d.name=Math.round(65535*Math.random()));if(s=+d.name)0>s&&(s*=-1),s%=65535;
h("wn",s||ab(d.name));try{d.history&&h("hl",String(d.history.length))}catch(l){}}e="undefined"==typeof e?(e=P())?q.trim(e,jb):"":q.trim(e,jb);h("t",e);return A?B:B.join(":")}function P(){var a=c.title;"string"!=typeof a&&(a=(a=c.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function L(){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 W(){var a=-1;c.documentElement&&
"CSS1Compat"==c.compatMode?a=c.documentElement.clientWidth:c.body&&(a=c.body.clientWidth);return a}function u(){var a=-1;c.documentElement&&"CSS1Compat"==c.compatMode?a=c.documentElement.clientHeight:c.body&&(a=c.body.clientHeight);return a}function n(){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 $(){var a=[],b=t._lastPerformanceTiming,c=n();if(b)for(var d=0,g=b.length;d<g;d++)null===c[d]?a.push(c[d]):a.push(b[d]===c[d]?"":c[d]);else a=c;t._lastPerformanceTiming=c;return a.join(",")}function ba(){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 fa(a){var b=c.referrer||"";if(RegExp("^https?://"+G.host+"/").test(b))return!1;for(var d=a.patterns,h=0;h<d.length;h++)if(b.match(RegExp(d[h],"i"))){var g=a.params||[];if(g.length)for(var B=sa((RegExp.$1||"").replace(/\+/g,"%20")),f=0;f<g.length;f++){if(B==sa(g[f]))return!0}else return!0}return!1}function ca(a){var b=!1;if(a&&"string"!=typeof a&&a.length)for(var d=0;d<a.length;d++){var h=a[d].selector,g=a[d].text,f=h.charAt(0),
h=h.slice(1);if("#"==f){if(f=c.getElementById(h))b=!0,f.innerHTML=g}else if("."==f){f=h;h=(h=void 0)||c;if(h.getElementsByClassName)f=h.getElementsByClassName(f);else{for(var h=h.getElementsByTagName("*"),s=[],k=0;k<h.length;k++)qa(h[k],f)&&s.push(h[k]);f=s}for(h=0;h<f.length;h++)b=!0,f[h].innerHTML=g}}return b}function la(a,b){a=a&&a.replace(/^\?/,"");b=b&&b.replace(/^#/,"");var c="";if(a)for(var d=a.split("&"),f=0;f<d.length;f++){var g=d[f].split("=");"_openstat"==g[0]&&(c=g[1])}b&&0==b.indexOf("_openstat=")&&
(c=b.slice(10));c&&(c=-1<c.indexOf(";")?sa(c):na(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 sa(a){try{return decodeURIComponent(a)}catch(b){return""}}function na(a){for(;a.length%4;)a+="=";var b,c,d,f,g,s=0,k="";do{b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(s++));c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(s++));
f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(s++));g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(s++));if(0>b||0>c||0>f||0>g)return null;d=b<<18|c<<12|f<<6|g;b=d>>16&255;c=d>>8&255;d&=255;k=64==f?k+String.fromCharCode(b):64==g?k+String.fromCharCode(b,c):k+String.fromCharCode(b,c,d)}while(s<a.length);a=k;f="";for(s=c1=c2=g=0;g<a.length;)s=a.charCodeAt(g),128>s?(f+=String.fromCharCode(s),g++):191<s&&224>s?(c2=a.charCodeAt(g+
1),f+=String.fromCharCode((s&31)<<6|c2&63),g+=2):(c2=a.charCodeAt(g+1),c3=a.charCodeAt(g+2),f+=String.fromCharCode((s&15)<<12|(c2&63)<<6|c3&63),g+=3);return f}function ra(){var e=!1;if(Ya._metrika.hitParam[ea]){if(1!=g||Ya._metrika.counters[ea])return!1;e=!0}Ya._metrika.counters[ea]=t;Ya._metrika.hitParam[ea]=1;t._webvisor=!r&&(F&&F.webvisor||Wb||$b);t._directCampaign=F&&F.directCampaign;F&&F.trackHash&&t.trackHash(!0);if(!r&&!e){t.replacePhones();var m=new Ca({counterId:a}),f=m.read("visorc")||xa(cc);
"b"!=f&&"w"!=f&&(f="");if(!kb()||Ka("opera mini"))f="b";Xa=E();var e=new Aa({protocol:ga,counterType:g,counterId:a}),h={ut:x,he:F?~~F.httpError:0,ad:1==g&&d.Ya&&d.Ya.Direct?!0:!1,saveRef:!0};e.sendHit(G.href,P(),c.referrer,b,h,f,function(b){Ia||(Ia=E());b=b||{};var e=b.webvisor||{};if(ia){var h=+e.recp;if(!isFinite(h)||0>h||1<h)f="w";f||(f=Na%1E4/1E4<h?"w":"b");m.create("visorc",f,30);"w"==f?(ia.start(),h=e.arch_type,(e=e.urls)&&h&&ia.uploadPages(e,h)):ia.stop()}var g=b.mp2,e=a;b=t;h="."+G.host.replace(/^www\./,
"");pa("_ym_mp2_substs_"+e,"",-1,h);if(g){var k="_ym_mp2_track_"+e;b:{var n=g.conditions;if(n&&n.length)for(var p=0;p<n.length;p++){var q;if("ref"==n[p].type)q=fa(n[p]);else if(q="adv"==n[p].type){var r=n[p],u=Ya._metrika.counter._directCampaign,v=r.ServiceNamePattern,za=r.RefererPattern;q=u?r.direct_orders:r.direct_camp;var qb=c.referrer,Q=G.search,Q=Q&&Q.replace(/^\?/,""),w={};if(Q)for(var Q=Q.split("&"),aa=0;aa<Q.length;aa++){var y=Q[aa].split("=");w[sa(y[0])]=sa(y[1])}for(var Q=la(G.search,G.hash),
aa={},y=["source","medium","campaign","term","content"],C=0;C<y.length;C++)w["utm_"+y[C]]&&(aa[y[C]]=w["utm_"+y[C]]);C=u?"direct.yandex.ru":Q&&Q.service||aa.source;y=!1;if(!y&&v&&v.length)for(var D=0;D<v.length;D++)if(RegExp(v[D],"i").test(C)){y=!0;break}if(!y&&za&&za.length)for(v=0;v<za.length;v++)if(RegExp(za[v],"i").test(qb)){y=!0;break}!y&&r.google_adwords&&w.gclid&&(y=!0);!y&&r.yandex_direct&&w.yclid&&(y=!0);if(y&&q&&q.length&&(y=!1,r=u||Q&&Q.campaign||aa&&aa.campaign))for(u=0;u<q.length;u++)if(q[u]==
r){y=!0;break}q=y}if(q){n[p].track_id&&pa(k,n[p].track_id,43200,h);break b}}}(k=xa(k))&&g.substs&&(g=g.substs[k])&&(pa("_ym_mp2_substs_"+e,l(g),0,h),e=ca(g),b.params("__ym",e?"mp_trackid":"mp_trackid_bad",k))}S(d,"load",t.replacePhones);t._inited=!0})}ta();F&&(F.enableAll?t.enableAll():(F.clickmap&&t.clickmap(F.clickmap),F.trackLinks&&t.trackLinks(F.trackLinks),F.accurateTrackBounce&&t.accurateTrackBounce(F.accurateTrackBounce),F.ad&&ad()));t._webvisor&&(ia=new Pb(ga,a,g,F,Na,t))}function ha(a){var b=
{delay:Ha};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?Ha:a.delay;break;case "boolean":b.on=a;break;default:return}t._trackLinks=b}function ta(){ha(!1);S(c,"click",function(a){t._trackLinks.on&&ya(a)})}function ya(a){var b=p(a);if(b){var c=!1,d=""+b.href,g=d?d.split(/\?/)[0]:"",k=function(a){var c=zb(b.innerHTML?b.innerHTML.toString().replace(/<\/?[^>]+>/gi,""):"");T.sendClickLink(d,d==c?"":c,a)},s=function(){return O(a,b)?t._trackLinks.delay:
0};if(Wa.test(g)||Wa.test(d)||f(d,ja)||f(g,ja))c=!0;var l=qa(b,"ym-disable-tracklink"),g=qa(b,"ym-external-link");l||(l={ln:!0,dl:c},g?(l.delay=s(),k(l)):K(D().hostname,b.hostname)?c&&(l.ln=!1,l.delay=s(),k(l)):d&&-1!=d.search(/^ *(data|javascript):/i)||(l.ut=Ga,l.delay=s(),k(l)))}}function Ea(a,b){function f(){if(!u){r&&clearTimeout(r);var c=b,d;d=p?t:t+E()-q;c-=d;0>c&&(c=0);r=V(function(){u=!0;s(!1);a()},c)}}function h(){p=l=n=!0;t+=E()-q;q=E();f()}function g(){l||n||(t=0);q=E();l=n=!0;p=!1;f()}
function k(){n||(l=!0,p=!1,n=!0,f())}function s(a){for(var b=0;b<v.length;b+=3)a?S(v[b],v[b+1],v[b+2]):Ma(v[b],v[b+1],v[b+2])}var l=!1,n=!1,p=!0,t=0,q=E(),r=null,u=!1;if(Fa)V(a,b);else{var v=[d,"blur",h,d,"focus",g,c,"click",k,c,"mousemove",k,c,"keydown",k,c,"scroll",k];s(!0);f()}}function Ja(a){function b(){var a=D().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 U(){var d=b();d!==c&&(a(),c=d);Ba=V(U,200)})()}function oa(a){Pa=
lastReferrer=X;a={ut:x,ad:1==g&&d.Ya&&d.Ya.Direct?!0:!1,wh:!0,saveRef:!0};T.sendAjaxHit(D().href,P(),Pa,a);X=D().href}function La(b){function f(){var a=c.documentElement;return Math.max(a.scrollWidth,c.body.scrollWidth,a.clientWidth)}function A(a){function b(a){a=a.getBoundingClientRect();var e=c.body,f=c.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?b(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 l(a){if(null==a.pageX&&null!=a.clientX){var b=c.documentElement,e=c.body;a.pageX=a.clientX+(b&&b.scrollLeft||e&&e.scrollLeft||0)-(b.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||e&&e.scrollTop||0)-(b.clientTop||0)}return{x:a.pageX,y:a.pageY}}function n(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 s=this,p=0,t=null,q="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(" "),
r=59,u=String.fromCharCode,F={},x=0;x<q.length;x++)F[q[x]]=u(r),u(r),r++;this.handler=function(b){var e=c.getElementsByTagName("body")[0];if(!d.ymDisabledClickmap&&!qa(e,"ym-clickmap-ignore")){if(s._prefs.hasQuota){if(!s._prefs.quota)return;s._prefs.quota--}var q=b.target||b.srcElement;3==q.nodeType&&(q=q.parentNode);var e=h(q.nodeName),r=l(b),w;b.which||b.button===ma||(b.which=b.button&1?1:b.button&2?3:b.button&4?2:0);w=b.which;if(w=2!=w&&3!=w||"A"==e)if(w=q.offsetHeight,w=!(0===q.offsetWidth&&0===
w||q.style&&"none"===q.style.display)){b:{for(w=q;w.parentNode;){if(qa(w,"ym-clickmap-ignore")){w=!0;break b}w=w.parentNode}w=!1}if(w=!w){b:{w=s._prefs.ignoreTags;for(var u=0;u<w.length;u++)if(h(w[u])==h(e)){w=!0;break b}w=!1}w=!w&&s._prefs.filter(q,e)}}if(w){e=E();q={dom:q,x:r.x,y:r.y,time:e};if((r=50<e-p)&&!(r=!s._prefs.ignoreSameClicks)){if(r=t){w=Math.abs(r.x-q.x);var u=Math.abs(r.y-q.y),y=q.time-r.time,r=r.dom==q.dom&&2>w&&2>u&&1E3>y?!0:!1}else r=!1;r=!r}if(r&&"MetrikaPlayer"!=d.name){if(r=b.target||
b.srcElement){3==r.nodeType&&(r=r.parentNode);for(w=h(r.nodeName);r.parentNode&&r.parentNode.nodeName&&("A"!=w&&"AREA"!=w||!r.href);)r=r.parentNode,w=h(r.nodeName);w=r.href?r:!1}else w=!1;r=!1;w&&O(b,w)&&!K(D().hostname,w.hostname)&&(r=!0);w=Za;var y=l(b),u=y.x,y=y.y,C=b.target||b.srcElement,x=s._prefs,z=A(C),H="";b=D().href;switch(x.mode){case "fixed":H="0";n(C)&&(H+="u");break;case "centered":H="1";z=Math.floor(f()/2);u=u>z?u-z+32768:u;n(C)&&(H+="u");break;default:H=h(C.nodeName);H="BODY"==H||"HTML"==
H?f():C.offsetWidth;x=h(C.nodeName);"BODY"==x||"HTML"==x?(x=c.documentElement,x=Math.max(x.scrollHeight,c.body.scrollHeight,x.clientHeight)):x=C.offsetHeight;H||(H=1);x||(x=1);u=Math.floor(65535*(u-z.left)/H);y=Math.floor(65535*(y-z.top)/x);for(z="";C.parentNode&&"BODY"!=h(C.nodeName)&&"HTML"!=h(C.nodeName);){z+=F[C.nodeName]||"*";b:{for(var H=C.parentNode,G=x=0;G<H.childNodes.length;G++)if(C.nodeName==H.childNodes[G].nodeName){if(C==H.childNodes[G]){H=x;break b}x++}H=0}z+=H||"";C=C.parentNode}H=
k(z,128)}y=["rn",wa(),"x",u,"y",y,"t",Math.floor(Math.floor(E()-bc)/100),"p",H];Y?y=y.concat("wh","1"):b=b?b.replace(/\#.*$/,""):b;"function"==typeof s._prefs.urlFilter&&(b=s._prefs.urlFilter(b));u=dc;b=["page-url",k(b,Va),"pointer-click",y.join(":")];b=["cnt-class",g].concat(b);y=[];for(C=0;C<b.length;C+=2)(z=b[C+1])&&(y[y.length]=b[C]+"="+z);b=J+u+a+"?"+y.join("&");w(b,r?s._prefs.delay:0)}p=e;t=q}}};this.setPrefs=function(a){function b(a,c){return!0}this._prefs="undefined"==typeof a||!1===a||!0===
a?{filter:b,ignoreTags:[],mode:"",delay:Ha,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||b,ignoreTags:a.ignoreTags||[],mode:a.mode||"",delay:"undefined"==typeof a.delay?Ha: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||S(c,"click",this.handler,!0);this._start=!0};this.stop=function(){this._start&&Ma(c,"click",this.handler,!0);this._start=!1};this.start(b)}var t=this,Na=Math.round(1073741824*Math.random()),ea,x="",J=ga,X=Ua=G.href,Pa="",F;Ya._metrika.counter||(Ya._metrika.counter=t);"object"==typeof a&&(F=a,r=a.defer,x=a.ut,g=a.type,b=a.params,J=a.onlyHttps?"https:":ga,a=a.id);a=a||0;g=g||0;ea=a+":"+g;if(Ya._metrika.counters[ea])return Ya._metrika.counters[ea];q.trim=function(a,
b){a=String(a).replace(/^\s+|\s+$/g,"");b&&a.length>b&&(a=a.substr(0,b));return a};var z={_jScriptVersion:0,getJScriptVersion:function(){z._jScriptVersion||(z._jScriptVersion=(new Function("return /*@cc_on @_jscript_version @*/;"))());return z._jScriptVersion},_silverlightVersion:"",getSilverlightVersion:function(){if(!z._silverlightVersion)if(d.ActiveXObject)try{var a=new ActiveXObject("AgControl.AgControl"),b=function(a,b,c,e){for(;a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3]);)b[c]+=e;
b[c]-=e},c=[1,0,0,0];b(a,c,0,1);b(a,c,1,1);b(a,c,2,1E4);b(a,c,2,1E3);b(a,c,2,100);b(a,c,2,10);b(a,c,2,1);b(a,c,3,1);z._silverlightVersion=c.join(".")}catch(f){}else if(a=ua.plugins["Silverlight Plug-In"])z._silverlightVersion=a.description;return z._silverlightVersion},_flashVersion:0,getFlashVersion:function(){if(!z._flashVersion){var a=d.navigator;if("undefined"!=typeof a.plugins&&"object"==typeof a.plugins["Shockwave Flash"]){var b=a.plugins["Shockwave Flash"].description;b&&(a=a.mimeTypes,"undefined"==
typeof a||!a["application/x-shockwave-flash"]||a["application/x-shockwave-flash"].enabledPlugin)&&(z._flashVersion=b.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,"."))}else if("undefined"!=typeof d.ActiveXObject)try{if(b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var c=b.GetVariable("$version");c&&(z._flashVersion=c.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,""))}}catch(f){}}return z._flashVersion},getLanguage:function(){return(d.navigator&&(ua.language||ua.browserLanguage)||
"").toLowerCase()}},Qa=Z.inherit({trimParams:!1,resource:"watch",retry:!0,postParams:["site-info"],sendHit:function(a,b,c,d,f){this._hitExt(a,b,c,d,{ut:f,ar:!0,saveRef:!0})},sendAjaxHit:function(a,b,c,d){this._hitExt(a,b,c,null,d)},sendParams:function(a){this._hitExt(D().href,"","",a,{ar:!0,pa:!0,onlyData:!0})},sendGoal:function(a,b){if(!/[\/&=?#]/.test(a)){var d=a?"goal://"+D().hostname+"/"+encodeURIComponent(a):D().href,f=P(),g=a?D().href:c.referrer;this._hitExt(d,f,g,b,{ar:!0})}},sendClickLink:function(a,
b,c){this._hitExt(a,b,D().href,null,c)},sendExtLink:function(a,b,c,d){this._hitExt(a,"",D().href,d,{ar:!0,ln:!0,ut:Ga})},sendFileUpload:function(a,b,c,d){this._hitExt(a,"",D().href,d,{ar:!0,ln:!0,dl:!0})},sendNotBounce:function(a){this._hitExt(D().href,"","",null,{cl:a,ar:!0,nb:!0,onlyData:!0})},sendVideoAction:function(a,b,c,d){this._hitExt(c,d||"","",null,{ar:!0,va:a,vt:+b})},sendSocialClick:function(a,b,c){this._hitExt(c||D().href,"","",null,{ar:!0,sn:q.trim(a,64),sa:q.trim(b,64)})},_hitExt:function(a,
b,c,f,g,k,r,n){g=g||{};k=k||{};if("MetrikaPlayer"!=d.name){c="undefined"!=typeof c?c:Ua;var p={};g.ar&&!g.onlyData&&(c=this._prepareHitUrl(c),a=this._prepareHitUrl(a));g.reqNum=!0;var t=q.trim(c,Va);t&&(p["page-ref"]=t);(a=q.trim(a,Va))&&(p["page-url"]=a);-1!=D().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)?Ga&&(p.ut=Ga):"undefined"!=typeof g.ut&&(a=q.trim(g.ut,64))&&(p.ut=a);f&&(f=l(f),this.trimParams&&(f=q.trim(f,ac)),f&&(p["site-info"]=f));g.saveRef&&(Ua=c);q.mixin(k,
R(b,g,!0));this.send(p,k,r,n)}},_prepareHitUrl:function(a){var b=D(),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}}),Ra=Da.inherit({request:function(a,b,f,g,k){var l="_ymjsp"+q.random(),r=c.createElement("script");
d[l]=N(function(a){try{delete d[l]}catch(b){d[l]=ma}g.call(k,a);r.parentNode&&r.parentNode.removeChild(r)},"transport.script");r.type="text/javascript";r.src=this._buildUrl(a,q.mixin({wmode:5,callback:l},b,f));a=c.getElementsByTagName("head")[0];a.insertBefore(r,a.firstChild);return!0}}),Aa=Qa.inherit({transports:[Ra],retry:!1,trimParams:!0,sendHit:function(a,b,c,d,f,g,k,l){this._hitExt(a,b,c,d,f,g?{vc:g}:null,k,l)}});d.postMessage&&d.addEventListener&&S(d,"message",function(a){if(a.data)try{var b=
"string"==typeof a.data?JSON.parse(a.data):a.data;"object"==typeof b&&"ym_counters"==b.name&&a.source.postMessage({name:"ym_counters",data:d.Ya.Metrika.counters()},"*")}catch(c){}},!1);Z.retransmit();var T=new Qa({protocol:J,counterType:g,counterId:a}),ia;t.replacePhones=N(function(){try{var b=xa("_ym_mp2_substs_"+a);if(b){var c=(new Function("return "+b))();c&&ca(c)}}catch(d){}},"counter.replacePhones");t.reachGoal=N(function(a,b){T.sendGoal(a,b);return!0},"counter.reachGoal");t.trackLinks=N(ha,
"counter.trackLinks");t.hit=N(function(a,b,c,d,f){a&&T.sendHit(a,b,c,d,f)},"counter.hit");t.params=N(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}T.sendParams(a)}},"counter.params");t.file=N(function(a,b,c,d){a&&T.sendFileUpload(a,b,c,d)},"counter.file");t.extLink=N(function(a,b,c,d){a&&T.sendExtLink(a,b,c,d)},"counter.extLink");t.notBounce=N(function(){var a=0;Xa&&Ia&&(a=Ia-Xa);T.sendNotBounce(a)},
"counter.notBounce");var ja=[];t.addFileExtension=function(a){"string"==typeof a?ja.push(a):ja=ja.concat(a)};t.clickmap=function(a){t._clickmap?t._clickmap.updateStatus(a):t._clickmap=new La(a)};t.accurateTrackBounce=function(b){"number"!=typeof b&&(b=15E3);if(!t._isAccurateTrackBounce){t._isAccurateTrackBounce=!0;var d=new ka({counterId:a}),f=d.get("lastHit");d.set("lastHit",+new Date);((d=d.get("lastHit"))&&(!f||f<d-18E5)||!M(c.referrer,D().href)||0.1>Math.random())&&Ea(function(){t.notBounce()},
b)}};var Ba=null,Y=!1;t.trackHash=function(a){!1===a?Y&&("onhashchange"in d?Ma(d,"hashchange",oa):clearInterval(Ba),Y=!1):Y||("onhashchange"in d?S(d,"hashchange",oa):Ja(oa),Y=!0);t._trackHash=Y};t.video=N(function(a,b,c,d){var f=["end","play","pause","seek"];if(a&&c){a:{for(var g=0,k=f.length;g<k;g+=1)if(a===f[g]){f=g;break a}f=-1}-1!==f&&T.sendVideoAction(a,b,c,d)}},"counter.video");t.social=N(function(a,b,c){a&&b&&T.sendSocialClick(a,b,c)},"counter.social");t.enableAll=function(){t.trackLinks(!0);
t.clickmap(!0);t.accurateTrackBounce()};t.pause=bb;t.uploadPage=function(){};t._performanceTiming=n;a&&ra()};d.Ya.Metrika.counters=function(){var a=[];oa(d.Ya._metrika.counters,function(b,c){var r=c.split(":");a.push({id:+r[0],type:+r[1],accurateTrackBounce:b._isAccurateTrackBounce,clickmap:b._clickmap&&b._clickmap._start,oldCode:!!d.ya_cid,trackHash:!!b._trackHash,trackLinks:b._trackLinks&&b._trackLinks.on,webvisor:!!b._webvisor})});return a};var Za=function(a,b){var c=/(&|\?)browser-info=rqnl:(\d+):/;
a=a.match(c)?a.replace(c,"$1browser-info=rqnl:"+(+RegExp.$2+1)+":"):a.replace(/(&|\?)browser-info=/,"$1browser-info=rqnl:1:");c=new Image;la.add(a,b);c.onload=function(){la.deleteHit(a)};c.src=a;"function"==typeof d.ymLog&&d.ymLog(a)},la=function(){var a=new ka;return{init:function(){this.send();this._events()},_events:function(){var a=this,c=function(){a._wasEnd||(a._wasEnd=!0,a._onEnd())};S(d,"beforeunload",c);Nb||S(d,"unload",c)},_onEnd:function(){var b=[],c=0;this._update(b);for(var d=0;d<b.length;d++)b[d].delay>
c&&(c=b[d].delay);c&&bb(c);a.set("defer",b)},get:function(){return a.get("defer")},add:function(b,c){var d=[{url:b,delay:c,time:E()}];this._update(d);a.set("defer",d)},deleteHit:function(b){var c=[];this._update(c,b);a.set("defer",c)},_update:function(a,c){var d=this.get(),k=E();if(d&&na(d)&&d.length)for(var l=0;l<d.length;l++){var f=d[l];f.url&&f.url!=c&&f.time>k-4E3&&a.push(f)}return a},send:function(){var a=this.get(),c=E();if(a){if(na(a)&&a.length)for(var d=0;d<a.length&&10>d;d++){var k=a[d];
k&&k.url&&k.time>c-36E5&&this._isCorrectUrl(k.url)&&Za(k.url)}this.clear()}},_isCorrectUrl:function(a){return 0===a.replace(/^https?:/,"").indexOf("//mc.yandex.ru/")},clear:function(){a.remove("defer")}}}();la.init();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(a,b){Ya._metrika.counter&&Ya._metrika.counter.reachGoal(a,b)});K=d.yandex_metrika_callback;M=d.yandex_metrika_callbacks;"function"==typeof K&&K();if("object"==typeof M)for(K=0;K<M.length;K++)if(ba=
M[K])M[K]=null,ba();ra("yandex_metrika_callback");ra("yandex_metrika_callbacks");M=["link","click","scroll","res"];for(K=0;K<M.length;K++)if(ba=M[K]+"map",-1!=G.href.search("ym_playback="+ba)){ya(ga+"//metrika.yandex.ru/js/"+ba+"/_loader.js");break}d.Ya.Metrika.informer=function(a){var b=!!Ya.Metrika._informer;Ya.Metrika._informer=a;b||ya(ga+"//mc.yandex.ru/metrika/informer.js")};"complete"==c.readyState?ha():S(d,"load",ha);(function(){var a=function(){var a=c.getElementsByTagName("body")[0],b=c.createElement("iframe");
b.src="http://awaps.yandex.ru/0/2153/0.htm?ad=165746&pl=93829&rnd="+wa();b.setAttribute("style","position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden");a.appendChild(b);V(function(){a.removeChild(b)},1E4)},b=function(){d.removeEventListener("load",b,!1);a()},g=d.performance;wa(200)||Ya._metrika.isAd||(Ya._metrika.isAd=!0,"http:"==ga&&"object"==typeof g&&d.addEventListener&&(g.timing&&g.timing.loadEventStart?a():d.addEventListener("load",b,!1)))})()})(this,this.document);
