(function(g,h,X){function r(a,b){return function(){try{return a.apply(this,arguments)}catch(c){sa(c,b)}}}function sa(a,b){var c;if(.01>Math.random())try{(new R).log("jserrs",Y,a.message,b,D.href,"","string"==typeof a.stack&&a.stack.replace(/\n/g,"\\n"))}catch(d){c=["cp: "+b,a.name+": "+a.message,"debug: ","code: "+Y,"stack: "+a.stack],(new Image).src="//an.yandex.ru/jserr/101500?cnt-class=100&errmsg="+encodeURIComponent(c.join("; ").replace(/\r?\n/g,"\\n"))}}function hb(a,b,c){return g.setTimeout(r(a,
c||"setTimeout"),b)}function x(){for(var a={},b="hash host hostname href pathname port protocol search".split(" "),c=b.length,d=c,e,f;d--;)a[b[d]]="";try{for(e=g.location,d=c;d--;)f=b[d],a[f]=""+e[f]}catch(q){D&&(a=D)}return a}function ta(a){return a?(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function La(){return-1!=x().hostname.search(/(?:^|\.)(?:ya|yandex)\.(?:\w+|com\.\w+)$/)}function la(a){return-1!==(""+g.navigator.userAgent).toLowerCase().search(a)}function Ma(a){return ta(a&&a.innerHTML&&
a.innerHTML.replace(/<\/?[^>]+>/gi,""))}function Na(a,b){var c,d;if(!a||!b)return!1;c=[];for(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(new RegExp("\\.("+c.join("|")+")$","i")).test(a)}function ib(a){a=a.target||a.srcElement;var b;if(!a)return!1;
3==a.nodeType&&(a=a.parentNode);for(b=a&&a.nodeName&&a.nodeName.toString().toLowerCase();a&&a.parentNode&&a.parentNode.nodeName&&("a"!=b&&"area"!=b||!a.href);)b=(a=a.parentNode)&&a.nodeName&&a.nodeName.toString().toLowerCase();return a.href?a:!1}function jb(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")}function kb(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):a||b?!1:!0}function Oa(){var a=
g.performance||g.webkitPerformance,b,c=[];if(a=a&&a.timing)if(b=a.navigationStart)for(c=[a.domainLookupEnd-a.domainLookupStart,a.connectEnd-a.connectStart,a.responseStart-a.requestStart,a.responseEnd-a.responseStart,a.fetchStart-b,a.redirectEnd-a.redirectStart,a.redirectCount],c.push(a.domInteractive&&a.domLoading?a.domInteractive-a.domLoading:null),c.push(a.domContentLoadedEventStart&&a.domContentLoadedEventEnd?a.domContentLoadedEventEnd-a.domContentLoadedEventStart:null),c.push(a.domComplete?a.domComplete-
b:null),c.push(a.loadEventStart?a.loadEventStart-b:null),c.push(a.loadEventStart&&a.loadEventEnd?a.loadEventEnd-a.loadEventStart:null),c.push(a.domContentLoadedEventStart?a.domContentLoadedEventStart-b:null),a=0;a<c.length;a++)b=c[a],null!==b&&(0>b||36E5<b)&&(c[a]=null);return c}function lb(a){var b=[],c=a._lastPerformanceTiming,d=Oa(),e,f;if(c)for(e=0,f=c.length;e<f;e++)null===d[e]?b.push(d[e]):b.push(c[e]===d[e]?"":d[e]);else b=d;a._lastPerformanceTiming=d;return b.join(",")}function mb(){var a;
if("object"==typeof g.chrome&&g.chrome.loadTimes){if(a=g.chrome.loadTimes(),a.requestTime&&a.firstPaintTime)return~~(1E3*(a.firstPaintTime-a.requestTime))}else if(g.performance&&g.performance.timing&&(a=g.performance.timing,a.navigationStart&&a.msFirstPaint))return a.msFirstPaint-a.navigationStart;return null}function nb(a){var b=h.referrer||"",c,d,e,l,g;if((new RegExp("^https?://"+D.host+"/")).test(b))return!1;c=a.patterns;for(l=0;l<c.length;l++)if(d=new RegExp(c[l],"i"),b.match(d))if(d=a.params||
[],d.length)for(e=f.safeDecodeURIComponent((RegExp.$1||"").replace(/\+/g,"%20")),g=0;g<d.length;g++){if(e==f.safeDecodeURIComponent(d[g]))return!0}else return!0;return!1}function Pa(a,b){var c=!1,d,e,f,g;if(a&&"string"!=typeof a&&a.length)for(g=0;g<a.length;g++)if(d=a[g].selector,e=a[g].text,f=d.charAt(0),d=d.slice(1),"#"==f){if(f=h.getElementById(d))c=!0,b&&S.unshift([f,f.innerHTML]),f.innerHTML=e}else if("."==f)for(f=m.getElementsByClassName(d),d=0;d<f.length;d++){var c=!0,k=f[d],J=e;b&&S.unshift([k,
k.innerHTML]);k.innerHTML=J}return c}function Qa(){var a;for(a=0;a<S.length;a++)S[a][0].innerHTML=S[a][1]}function ob(a,b){var c,d,e="",l,g,h;a=a&&a.replace(/^\?/,"");b=b&&b.replace(/^#/,"")||"";if(a)for(d=a.split("&"),c=0;c<d.length;c++)h=d[c].split("="),"_openstat"===h[0]&&(e=h[1]);l=b.split("?");for(c=0;c<l.length;c++)for(g=l[c].split("&"),d=0;d<g.length;d++)h=g[d].split("="),"_openstat"===h[0]&&(e=h[1]);e&&(e=-1<e.indexOf(";")?f.safeDecodeURIComponent(e):ca.decode(I.decode(e.replace(/[-*_]/g,
function(a){return{"*":"+","-":"/",_:"="}[a]||a}))));return e&&(c=e.split(";"),4==c.length)?{service:c[0],campaign:c[1],ad:c[2],source:c[3]}:null}function Ra(a){try{delete g[a]}catch(b){g[a]=X}}function pb(a,b,c,d,e){function l(a){var b=(new Date).getTime();a&&b<a&&(U+=a-b+20);f.setTimeout(function(){l(b)},20,"timeCorrector")}function q(){var a=(new Date).getTime()+U;a<O&&(a=O+10);return O=a}function H(){return Math.round((q()-xa)/50)}function J(a,b){b=Math.max(0,Math.min(b,65535));f.mergeArrays(a,
[b>>8,b&255])}function t(a,b){f.mergeArrays(a,[b&255])}function n(a,b){for(b=Math.max(0,b|0);127<b;)f.mergeArrays(a,[b&127|128]),b>>=7;f.mergeArrays(a,[b])}function p(a,b){255<b.length&&(b=b.substr(0,255));f.mergeArrays(a,[b.length]);for(var c=0;c<b.length;c++)J(a,b.charCodeAt(c))}function w(a,b){n(a,b.length);for(var c=0;c<b.length;c++)n(a,b.charCodeAt(c))}function D(a,b,c,d,e,f){for(var y;c&&(y=m.getElementSize(c))&&(!y[0]||!y[1]);)c=m.getElementParent(c);if(!c)return null;y=c[E];if(!y||0>y)return null;
var Sa={mousemove:2,click:32,dblclick:33,mousedown:4,mouseup:30,touch:12}[b];if(!Sa)return null;var l=m.getElementXY(c);c=[];t(c,Sa);n(c,a);n(c,y);n(c,Math.max(0,d[0]-l[0]));n(c,Math.max(0,d[1]-l[1]));/^mouse(up|down)|click$/.test(b)&&(a=e||f,t(c,2>a?1:a==(e?2:4)?4:2));return c}function G(a,b,c,d){b=b[E];if(!b||0>b)return null;var e=[];t(e,31);n(e,a);n(e,b);n(e,c[0]);n(e,c[1]);t(e,0);t(e,0);t(e,d);return e}function K(a,b){var c=[];t(c,3);n(c,a);n(c,b[0]);n(c,b[1]);return c}function da(a,b,c){var d=
[];c=c[E];if(!c||0>c)return null;t(d,16);n(d,a);n(d,b[0]);n(d,b[1]);n(d,c);return d}function P(a,b,c){var d=[];t(d,28);n(d,a);n(d,b[0]);n(d,b[1]);n(d,c[0]);n(d,c[1]);return d}function I(a,b,c,d){var e=[];t(e,5);n(e,a);J(e,b);t(e,c);a=d[E];if(!a||0>a)a=0;n(e,a);return e}function V(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=[];t(e,29);n(e,a);w(e,c);w(e,d);return e}function A(a){var b=[];
t(b,27);n(b,a);return b}function Q(a){var b=[];t(b,14);n(b,a);return b}function X(a){var b=[];t(b,15);n(b,a);return b}function T(a,b){var c=[];t(c,17);n(c,a);n(c,b[E]);return c}function L(a,b){var c=[];t(c,18);n(c,a);n(c,b[E]);return c}function ma(a,b,c){var d=[];t(d,19);n(d,a);n(d,b[E]);p(d,String(c));return d}function ga(a){var b=a[E];if(!b||0>b||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||fa(a.form))return null;var c=m.getFormNumber(a.form);if(0>c)return null;var d;d="INPUT"==a.nodeName?
{text:0,color:0,date:0,datetime:0,"datetime-local":0,email:0,number:0,range:0,search:0,tel:0,time:0,url:0,month:0,week:0,password:2,radio:3,checkbox:4,file:6,image:7}[a.type]:{SELECT:1,TEXTAREA:5}[a.nodeName];if("number"!=typeof d)return null;for(var e=-1,y=a.form.elements,f=y.length,l=0,g=0;l<f;l++)if(y[l].name==a.name){if(y[l]==a){e=g;break}g++}if(0>e)return null;y=[];t(y,7);n(y,b);n(y,c);n(y,d);w(y,a.name||"");n(y,e);return y}function ha(a,b){var c=m.getFormNumber(b);if(0>c)return null;for(var d=
b.elements,e=d.length,y=[],l=0;l<e;l++)if(!m.isEmptyField(d[l])){var g=d[l][E];g&&0<g&&f.mergeArrays(y,[g])}d=[];t(d,11);n(d,a);n(d,c);n(d,y.length);for(c=0;c<y.length;c++)n(d,y[c]);return d}function ja(){var a=[];t(a,13);return a}function z(a,b,c){a=a.apply(g,b);qa.append(a,c)}function F(a){if(a[E])a:{var b=H(),c=a[E];if(0<c){var d=[];a=m.getElementRegion(a);var e=ya[c],f=a[0]+"x"+a[1],y=a[2]+"x"+a[3];f!=e.pos&&(e.pos=f,t(d,9),n(d,b),n(d,c),n(d,a[0]),n(d,a[1]));y!=e.size&&(e.size=y,t(d,10),n(d,b),
n(d,c),n(d,a[2]),n(d,a[3]));if(d.length){a=d;break a}}a=null}else{(c=m.getElementParent(a))&&F(c);a[E]=R;ya[R]={};R++;if(a.nodeName)if(c=+a[E],!isFinite(c)||0>=c)b=null;else{var d=64,e=0,l=m.getElementParent(a),f=l&&l[E]?l[E]:0;0>f&&(f=0);var y=a.nodeName.toUpperCase(),g=na[y];g||(d|=2);var h=m.getElementNeighborPosition(a);h||(d|=4);var q=m.getElementRegion(a);(l=l?m.getElementRegion(l):null)&&q[0]==l[0]&&q[1]==l[1]&&q[2]==l[2]&&q[3]==l[3]&&(d|=8);ya[c].pos=q[0]+"x"+q[1];ya[c].size=q[2]+"x"+q[3];
a.id&&"string"==typeof a.id&&(d|=32);(l=m.calcTextChecksum(a))&&(d|=16);var v=m.calcAttribChecksum(a);v&&(e|=2);var u;b:{u=m.getElementChildren(m.getElementParent(a),a.tagName);for(var k=0;k<u.length;k++)if((!u[k].id||"string"!=typeof u[k].id)&&m.calcAttribChecksum(u[k])==v&&m.calcTextChecksum(u[k])==l){u=!0;break b}u=!1}u&&(d|=1,b=m.calcChildrenChecksum(a));u=[];t(u,1);n(u,c);t(u,d);n(u,f);g?t(u,g):p(u,y);h&&n(u,h);d&8||(n(u,q[0]),n(u,q[1]),n(u,q[2]),n(u,q[3]));d&32&&p(u,a.id);l&&J(u,l);d&1&&J(u,
b);t(u,e);v&&J(u,v);b=u}else a[E]=-1,b=null;qa.append(b,void 0);a=ga(a)}qa.append(a,void 0)}function ea(a,b){var c=a&&m.classNameExists(a,"(ym-disable-keys|-metrika-nokeys)");b&&a&&(c=c||!!m.getElementsByClassName("(ym-disable-keys|-metrika-nokeys)",a).length);return c}function fa(a){return a&&m.classNameExists(a,"(ym-disable-submit|-metrika-noform)")}function ra(a){var b=B.getTarget(a);if(b&&"SCROLLBAR"!=b.nodeName){if(/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b.tagName))if(b[E])F(b);else{var c=b.form;
if(c)for(var c=c.elements,d=c.length,e=0;e<d;e++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c[e].tagName)&&!c[e][E]&&F(c[e]);else F(b)}else F(b);z(D,[H(),a.type,b,B.getPos(a),a.which,a.button])}}function u(a){ra(a);a:{var b,c;if(g.getSelection){try{var d=g.getSelection()}catch(rb){break a}b=d.toString();c=d.anchorNode}else h.selection&&h.selection.createRange&&(a=h.selection.createRange(),b=a.text,c=a.parentElement());if("string"==typeof b){try{for(;c&&1!=c.nodeType;)c=c.parentNode}catch(rb){break a}c&&
Ga(c)||ea(c,!0)||b==oa||(oa=b,z(V,[H(),b]))}}}function v(a){var b=q(),c=b-Y;if(!(10>c)){var d=B.getPos(a),e=ia[0]-d[0],f=ia[1]-d[1],e=e*e+f*f;0>=e||16>e&&100>c||20>c&&256>e||(Y=b,ia=d,ra(a))}}function M(){var a=m.getDocumentScroll(),b=q();10>b-pa||10>Math.abs(a[0]-ka[0])&&10>Math.abs(a[1]-ka[1])||(pa=b,ka=a,z(K,[H(),a]))}function N(a){if(a=B.getTarget(a)){var b=Math.random(),c=[a.scrollLeft,a.scrollTop];if(a.localId){if(b=la[a.localId],!b||10>Math.abs(c[0]-b[0])&&10>Math.abs(c[1]-b[1]))return}else{for(;la[b];)b=
Math.random();a.localId=b}la[a.localId]=c;a!==h&&(F(a),z(da,[H(),c,a]))}}function Z(){z(P,[H(),m.getViewportSize(),m.getDocumentSize()])}function C(){z(ja,[],!0)}function Ta(a){return(a.shiftKey?2:0)|(a.ctrlKey?4:0)|(a.altKey?1:0)|(a.metaKey?8:0)|(a.ctrlKey||a.altKey?16:0)}function Ga(a){return"INPUT"==a.tagName?"password"==a.type||a.name&&ca.test(a.name)||a.id&&ca.test(a.id):!1}function Ua(a,b,c){!(a=B.getTarget(a))||Ga(a)||ea(a)||(F(a),z(I,[H(),b,c,a]))}function Va(a){var b=a.keyCode,c=Ta(a);if({3:1,
8:1,9:1,13:1,16:1,17:1,18:1,19:1,20:1,27:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,40:1,45:1,46:1,91:1,92:1,93:1,106:1,110:1,111:1,144:1,145:1}[b]||112<=b&&123>=b||96<=b&&105>=b||c&16)19==b&&4==(c&-17)&&(b=144),Ua(a,b,c|16),aa=!1,f.setTimeout(function(){aa=!0},1),!(67==b&&c&4)||c&1||c&2||Ha()}function Wa(a){aa&&!ba&&0!==a.which&&(Ua(a,a.charCode||a.keyCode,Ta(a)),ba=!0,f.setTimeout(function(){ba=!1},1))}function Ha(){W||(W=!0,oa&&z(A,[H()]),f.setTimeout(function(){W=!1},1))}function Ia(){ua||(ua=!0,z(Q,
[H()]))}function va(){ua&&(ua=!1,z(X,[H()]))}function Xa(a){(!ua||a&&!a.fromElement)&&Ia()}function Za(a){a&&!a.toElement&&va()}function za(a){if((a=B.getTarget(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[E])F(a);else{var b=a.form;if(b)for(var b=b.elements,c=b.length,d=0;d<c;d++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[d].tagName)&&!b[d][E]&&F(b[d]);else F(a)}z(T,[H(),a])}}function Aa(a){(a=B.getTarget(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(F(a),z(L,[H(),a]))}function Ba(a){if((a=
B.getTarget(a))&&!Ga(a)&&!ea(a)&&/^INPUT|SELECT|TEXTAREA$/.test(a.tagName)){var b=/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;F(a);z(ma,[H(),a,b])}}function wa(a){if((a=B.getTarget(a))&&!fa(a)&&"FORM"==a.nodeName){for(var b=a.elements,c=0;c<b.length;c++)m.isEmptyField(b[c])||F(b[c]);z(ha,[H(),a],!0)}}function S(a){M();if(a.touches&&a.touches.length){var b=B.getTarget(a);if(b&&b!=h){F(b);for(var c=0;c<a.touches.length;c++)z(D,[H(),"touch",b,[a.touches[c].pageX,a.touches[c].pageY],0,0])}}}function Ca(a){var b=
B.getTarget(a);if(b){var c;"wheel"==a.type?c=0<a.deltaY?1:0>a.deltaY?2:0:"mousewheel"==a.type&&(c=0<a.wheelDelta?2:0>a.wheelDelta?1:0);c&&(F(b),z(G,[H(),b,B.getPos(a),c]))}}function $a(a){(a=B.getTarget(a))&&"BODY"==a.tagName&&qa.append([],!0)}var qa=new ab({protocol:a,counterId:b,counterType:c,meta:{url:x().href,hitId:d,timezone:Da,timestamp:Ea}}),na={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},U=0,O=0;l(0);var R=1,Y=0,ia=[0,0],pa=0,ka=[0,0],la={},ca=/^(password|passwd|pswd)$/,aa=!0,ba=!1,oa="",W=!1,ua=!0,xa=q(),E="metrikaId_"+Math.random(),ya={},Fa=":submit"+Math.random();if(!f.isMetrikaPlayer()){k.on(h,"mousemove",v);k.on(h,"click,dblclick,mousedown",ra);k.on(h,"mouseup",u);k.on(g,"scroll",M);if("onmousewheel"in h)k.on(h,"mousewheel",Ca);else k.on(h,"wheel",Ca);k.on(g,"beforeunload",C);if(!sb)k.on(g,
"unload",C);k.on(g,"resize",Z);k.on(h,"keydown",Va);k.on(h,"keypress",Wa);k.on(h,"copy",Ha);k.on(h,"touchmove,touchstart",S);if(h.body)k.on(h,"mouseleave",$a);h.attachEvent&&!g.opera?(k.on(h,"focusin",Xa),k.on(h,"focusout",Za)):(k.on(g,"focus",Ia),k.on(g,"blur",va),k.on(h,"blur",va));h.addEventListener?(k.on(h,"scroll",N),k.on(h,"focus",za),k.on(h,"blur",Aa),k.on(h,"change",Ba),k.on(h,"submit",wa)):h.attachEvent&&(k.on(h,"focusin",za),k.on(h,"focusout",Aa),function(){for(var a=h.getElementsByTagName("form"),
b=0;b<a.length;b++){for(var c=a[b].getElementsByTagName("*"),d=0;d<c.length;d++)if(/^INPUT|SELECT|TEXTAREA$/.test(c[d].tagName))k.on(c[d],"change",Ba);k.on(a[b],"submit",wa)}}());(function(){var a=h.getElementsByTagName("form");if(a.length)for(var b=0;b<a.length;b++){var c=a[b].submit;if("function"==typeof c||"object"==typeof c&&/^\s*function submit\(\)/.test(String(c)))a[b][Fa]=c,a[b].submit=function(){wa({target:this});return this[Fa]()}}})();"0:0"!=m.getDocumentScroll().join(":")&&M();Z();e.uploadPage=
r(function(e){if("function"==typeof g.toStaticHTML&&-1<g.toStaticHTML.toString().indexOf("NoScript"))return!1;var f=h.documentElement;if(f&&19E4<(""+f.innerHTML).length)return!1;var l=g.XMLHttpRequest?new g.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),u=m.getDocumentCharset(),q="text/html"+(u?";charset="+u:""),v=new tb({protocol:a,counterId:b,counterType:c});if("html"==e)return e=RegExp("<script [^>]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>","gi"),v.sendContent(m.getDocumentHTML().replace(e,
""),q,d,Da,Ea),!0;l&&(l.open("get",x().href,!0),l.onreadystatechange=r(function(){if(4==l.readyState){var a=l.getResponseHeader("content-type")||"";u&&-1===a.indexOf("charset=")&&(a=q);v.sendContent(l.responseText,a,d,Da,Ea)}},"updatePage.1"),l.overrideMimeType&&u&&l.overrideMimeType(q),l.send(null));return!0},"uploadPage")}return{start:function(){qa.activate()},stop:function(){qa.clear();k.un(h,"mousemove",v);k.un(h,"click,dblclick,mousedown",ra);k.un(h,"mouseup",u);k.un(h,"mousewheel",Ca);k.un(h,
"wheel",Ca);k.un(g,"scroll",M);k.un(g,"beforeunload",C);k.un(g,"unload",C);k.un(g,"resize",Z);k.un(h,"keydown",Va);k.un(h,"keypress",Wa);k.un(h,"copy",Ha);k.un(h,"touchmove",S);k.un(h,"touchstart",S);h.body&&k.un(h,"mouseleave",$a);k.un(h,"focusin",Xa);k.un(h,"focusout",Za);k.un(g,"focus",Ia);k.un(g,"blur",va);k.un(h,"blur",va);h.removeEventListener?(k.un(h,"scroll",N),k.un(h,"focus",za),k.un(h,"blur",Aa),k.un(h,"change",Ba),k.un(h,"submit",wa)):h.detachEvent&&(k.un(h,"focusin",za),k.un(h,"focusout",
Aa),function(){for(var a=h.getElementsByTagName("form"),b=0;b<a.length;b++){for(var c=a[b].getElementsByTagName("*"),d=0;d<c.length;d++)/^INPUT|SELECT|TEXTAREA$/.test(c[d].tagName)&&k.un(c[d],"change",Ba);k.un(a[b],"submit",wa)}}());(function(){for(var a=h.getElementsByTagName("form"),b=0;b<a.length;b++)a[b][Fa]&&(a[b].submit=a[b][Fa])})()},uploadPages:function(a,b){function c(){k.un(h,"DOMContentLoaded",c);k.un(g,"load",c);for(var d=a.split(/\n/),f=x().href,l=/regexp:/,u=0;u<d.length;u++){var q=
d[u];if(q)if(l.test(q)){q=ta(q.replace(l,""));try{var v=new RegExp(q)}catch(Hb){}if(v&&v.test(f)){e.uploadPage(b);break}}else if(-1!==f.indexOf(q)){e.uploadPage(b);break}}}"complete"==h.readyState?c():(k.on(h,"DOMContentLoaded",c),k.on(g,"load",c))}}}var sb=!la(/webkit/)&&la(/gecko/),m={getDocumentCharset:function(){return(""+(h.characterSet||h.charset||"")).toLowerCase()},getDocumentHTML:function(){var a,b="";a=h.documentElement;var c=a.outerHTML,d,e,f;if(c)a=c;else{c=a.attributes;d="";for(e=0;e<
c.length;e++)(f=c[e])&&(d+=" "+f.name+'="'+(f.value||"")+'"');a="<html"+d+">"+a.innerHTML+"</html>"}if(c=h.doctype)b=c.publicId?' PUBLIC "'+c.publicId+'"':"",d=c.systemId?' "'+c.systemId+'"':"",b="<!DOCTYPE "+c.name+b+d+">\n";return b+a},getRootElement:function(){var a=h.documentElement;return"CSS1Compat"==h.compatMode?a:h.body||a},getViewportSize:function(){var a=m.getRootElement();return[a.clientWidth,a.clientHeight]},getDocumentSize:function(){var a=m.getRootElement(),b=m.getViewportSize();return[Math.max(a.scrollWidth,
b[0]),Math.max(a.scrollHeight,b[1])]},getDocumentScroll:function(){return[g.pageXOffset||h.documentElement&&h.documentElement.scrollLeft||h.body&&h.body.scrollLeft||0,g.pageYOffset||h.documentElement&&h.documentElement.scrollTop||h.body&&h.body.scrollTop||0]},getElementXY:function(a){var b,c;if(!a||!a.ownerDocument||"PARAM"==a.tagName||a==h.body||a==h.documentElement)return[0,0];if(a.getBoundingClientRect)return a=a.getBoundingClientRect(),b=m.getDocumentScroll(),[Math.round(a.left+b[0]),Math.round(a.top+
b[1])];for(c=b=0;a;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return[b,c]},getElementParent:function(a){var b;if(!a||a==h.documentElement)return null;if(a==h.body)return h.documentElement;b=null;try{b=a.parentNode}catch(c){}return b}},f={isArray:function(a){return"function"==typeof Array.isArray?Array.isArray(a):"[object Array]"==Object.prototype.toString.call(a)},mergeArrays:function(a){var b,c,d=arguments.length,e;for(b=1;b<d;b++)if(e=arguments[b],f.isArray(e)||e&&"[object Arguments]"===e.toString())for(c=
0;c<e.length;c++)a[a.length]=e[c];return a}};m.getElementChildren=function(a,b){var c=[],d,e,l,g,h;if(a&&(d=a.childNodes))for(g=0,h=d.length;g<h;g++)e=d[g],(l="INPUT"==e.nodeName&&e.type&&"hidden"==e.type.toLocaleLowerCase())||b&&e.nodeName!=b||f.mergeArrays(c,[e]);return c};m.getElementNeighborPosition=function(a){var b=m.getElementParent(a),c,d,e,f;if(b)for(e=0,b=b.childNodes,d=a&&a.nodeName,f=0;f<b.length;f++)if(c=b[f]&&b[f].nodeName,d==c){if(a==b[f])return e;e++}return 0};m.getElementSize=function(a){var b;
return a==h.body||a==h.documentElement?m.getDocumentSize():(b=a.getBoundingClientRect&&a.getBoundingClientRect())?[b.width,b.height]:[a.offsetWidth,a.offsetHeight]};m.getElementRegion=function(a){var b=m.getElementXY(a);a=m.getElementSize(a);return[b[0],b[1],a[0],a[1]]};f.fletcher=function(a){for(var b=a.length,c=0,d=255,e=255,f,g,h;b;){f=21<b?21:b;b-=f;do g="string"==typeof a?a.charCodeAt(c):a[c],c++,255<g&&(h=g>>8,g&=255,g^=h),d+=g,e+=d;while(--f);d=(d&255)+(d>>8);e=(e&255)+(e>>8)}a=(d&255)+(d>>
8)<<8|(e&255)+(e>>8);return 65535==a?0:a};m.calcTextChecksum=function(a){var b="";a=a.childNodes;var c,d;c=0;for(d=a.length;c<d;c++)a[c]&&3==a[c].nodeType&&(b+=a[c].nodeValue);return f.fletcher(b.replace(/[\u0000-\u0020]+/g,""))};m.calcAttribChecksum=function(a){var b="",c="width height align title alt name".split(" "),d;"IMG"==a.tagName&&(b+=a.src.toLowerCase());"A"==a.tagName&&(b+=a.href.toLowerCase());b+=String(a.className||"").toLowerCase();for(d=0;d<c.length;d++)a.getAttribute&&(b+=String(a.getAttribute(c[d])||
"").toLowerCase());return f.fletcher(b.replace(/[\u0000-\u0020]+/g,""))};m.calcChildrenChecksum=function(a){return f.fletcher((a.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,""))};m.getFormNumber=function(a){var b=h.getElementsByTagName("form"),c,d;c=0;for(d=b.length;c<d;c++)if(b[c]==a)return c;return-1};m.classNameExists=function(a,b){try{return(new RegExp("(?:^|\\s)"+b+"(?:\\s|$)")).test(a.className)}catch(c){return!1}};m.isEmptyField=function(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};m.getElementsByClassName=function(a,b){var c,d,e;b=b||h;c=b.getElementsByTagName("*");d=[];for(e=0;e<c.length;e++)m.classNameExists(c[e],a)&&d.push(c[e]);return d};m.getDocumentTitle=function(){var a=h.title;"string"!=typeof a&&(a=(a=h.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a};f.mixin=function(a){var b,c;for(b=
1;b<arguments.length;b++)if(arguments[b]){for(c in arguments[b])arguments[b].hasOwnProperty(c)&&(a[c]=arguments[b][c]);arguments[b].hasOwnProperty("toString")&&(a.toString=arguments[b].toString)}return a};f.getNativeFunction=function(a,b){var c;b=b||g;return(c=b.constructor&&b.constructor.prototype&&b.constructor.prototype[a]||b[a])&&"apply"in c?function(){return c.apply(b,arguments)}:function(){}};m.loadScript=function(a,b){b=b||g;var c=f.mixin({type:"text/javascript",charset:"utf-8",async:!0},a),
d=b.document,e=f.getNativeFunction("createElement",d),l=e("script"),h,k;if(!l)return!1;l.type=c.type;l.charset=c.charset;l.src=c.src;c.async&&(l.async=!0);try{return h=d.getElementsByTagName("head")[0],h||(k=d.getElementsByTagName("html")[0],k.appendChild(e("head"))),h.insertBefore(l,h.firstChild),l}catch(J){return!1}};m.removeNode=function(a){var b=a&&a.parentNode;b&&b.removeChild(a)};var G=function(a){a=a||{};f.mixin(this,a);this._initComponent()};G.prototype._initComponent=function(){};G.inherit=
function(a){var b,c;a=a||{};b="function"==typeof this?this:Object;a.hasOwnProperty("constructor")||(a.constructor=function(){b.apply(this,arguments)});c=function(){};c.prototype=b.prototype;a.constructor.prototype=new c;f.mixin(a.constructor.prototype,a);a.constructor.prototype.constructor=a.constructor;a.constructor.superclass=b.prototype;a.constructor.inherit=G.inherit;return a.constructor};var ha={stringify:function(a){var b=[],c,d,e;for(c in a)if(a.hasOwnProperty(c))if(d=a[c],f.isArray(d))for(e=
0;e<d.length;e++)b.push(encodeURIComponent(c)+"="+encodeURIComponent(String(d[e])));else b.push(encodeURIComponent(c)+"="+encodeURIComponent(String(d)));return b.join("&")}};f.forEachKey=function(a,b,c){for(var d in a)a.hasOwnProperty(d)&&b.call(c,d,a[d],a)};f.inArray=function(a,b){var c;for(c=0;c<a.length;c++)if(a[c]==b)return!0;return!1};var T=G.inherit({postParams:[],_buildUrl:function(a,b){return a+(-1<a.indexOf("?")?"&":"?")+ha.stringify(b)},_splitParams:function(a){var b={},c={};f.forEachKey(a,
function(a,e){f.inArray(this.postParams,a)?c[a]=e:b[a]=e},this);return{get:b,post:c}}}),aa=T.inherit({id:"XHR",method:"POST",withCredentials:!0,request:function(a,b,c,d){var e,f;if(/[^a-z0-9.:-]/.test(D.host)&&g.opera&&"function"==typeof g.opera.version&&(e=g.opera.version(),"string"==typeof e&&"12"==e.split(".")[0]))return c.call(d,!1);if(g.XMLHttpRequest&&(f=new XMLHttpRequest,"withCredentials"in f)){b=this._splitParams(b);a=this._buildUrl(a,b.get);try{f.open(this.method,a,!0)}catch(q){return c.call(d,
!1)}f.withCredentials=this.withCredentials;this._setHeaders(f);f.send(this._preparePostParams(b));f.onreadystatechange=function(){4==f.readyState&&c.call(d,200==f.status,f.responseText)};return}c.call(d,!1)},setMethod:function(a){this.method=a},_preparePostParams:function(a){return ha.stringify(a.post)},_setHeaders:function(a){a.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}}),ub=aa.inherit({id:"RawBodyXHR",postParams:["body"],_setHeaders:function(){},_preparePostParams:function(a){return a.post.body||
""}}),na={stringify:function(a){try{return JSON.stringify(a)}catch(b){return"null"}}};f.toJSON=function(a){var b,c,d;if(a===X)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'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"';case Array:b=[];c=0;for(d=a.length;c<d;c++)b[b.length]=f.toJSON(a[c]);return"["+b.join(",")+"]";case Object:b=[];for(c in a)a.hasOwnProperty(c)&&
a[c]!==X&&(b[b.length]=f.toJSON(c)+":"+f.toJSON(a[c]));return"{"+b.join(",")+"}";default:na.stringify(a)}};var P=G.inherit({counterId:"",_initComponent:function(){P.superclass._initComponent.apply(this,arguments);this._ls=null;try{this._ls=g.localStorage}catch(a){}},set:function(a,b){if(this.isEnabled())try{!b||b&&f.isArray(b)&&!b.length?this.remove(a):this._ls.setItem(this._getLsKey(a),f.toJSON(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&&g.JSON&&"object"==typeof this._ls&&"object"==typeof g.JSON},getStorageId:function(){var a=this.get("lsid");a||(a=Math.round(Math.random()*new Date),this.set("lsid",a));return a},clearStorageId:function(){this.remove("lsid")},_getLsKey:function(a){return"_ym"+this.counterId+"_"+a}});f.arrayFilter=function(a,b,c){var d=[],e;for(e=0;e<a.length;e++)b.call(c,a[e],e,a)&&d.push(a[e]);
return d};f.arrayIndexOf=function(a,b){var c;for(c=0;c<a.length;c++)if(a[c]===b)return c;return-1};f.arrDiff=function(a,b){return f.arrayFilter(a,function(a){return-1===f.arrayIndexOf(b,a)})};var p={getLanguage:function(){return(g.navigator?w.language||w.userLanguage||w.browserLanguage||w.systemLanguage:"").toLowerCase()}};na.parse=function(a){try{return JSON.parse(a)}catch(b){return null}};f.getTld=function(){var a;this._tld||(a=D.hostname.split("."),this._tld=a[a.length-1]);return this._tld};var vb=
G.inherit({transports:[],postParams:[],dontSendRequests:!1,send:function(a,b,c,d){c=c||function(){};this.dontSendRequests?c.call(d):function l(f){var g;if(f<this.transports.length)try{g=new this.transports[f]({postParams:this.postParams}),g.request(a,b,function(a,b,g){a?c.call(d,b,g):l.call(this,f+1)},this)}catch(J){sa(J,"send by "+(g&&g.id)),l.call(this,f+1)}}.call(this,0)}});T.inherit({id:"beacon",request:function(a,b,c,d){"function"==typeof w.sendBeacon?(b=this._splitParams(b),c.call(d,w.sendBeacon(this._buildUrl(a,
b.get),ha.stringify(b.post)))):c.call(d,!1)}});f.random=function(a,b){2>arguments.length&&(b=a,a=0);1>arguments.length&&(b=1073741824);return Math.floor(Math.random()*(b-a))+a};f.setTimeout=function(a,b,c){return f.getNativeFunction("setTimeout")(r(a,c||"setTimeout"),b)};var U=T.inherit({id:"form",enctype:"application/x-www-form-urlencoded",htmlfileOnly:!1,_initComponent:function(){U.superclass._initComponent.apply(this,arguments);"_htmlfile"in U.prototype||(U.prototype._htmlfile=this._createHtmlfile());
this._doc=this._htmlfile||(this.htmlfileOnly?null:h)},request:function(a,b,c,d){var e=this._doc,g,h,k,m;if(!e)return c.call(d,!1);b=this._splitParams(b);g="ifr"+f.random();h=e.createElement("div");h.style.position="absolute";h.style.left="-99999px";h.style.top="-99999px";k=['<iframe name="',g,'"></iframe>','<form action="',this._buildUrl(a,b.get),'" method="post" target="',g,'" enctype="',this.enctype,'">'];f.forEachKey(b.post,function(a){f.mergeArrays(k,['<input type="hidden" autocomplete="off" autocorrect="off"',
' autocapitalize="off" spellcheck="false" name="',a,'"/>'])});f.mergeArrays(k,["</form>"]);h.innerHTML=k.join("");e.body.appendChild(h);m=h.getElementsByTagName("form")[0];f.forEachKey(b.post,function(a,b){m[a].value=b});m.submit();f.setTimeout(function(){e.body.removeChild(h)},1E4,"TransportForm.request.2");return c.call(d,!0)},_createHtmlfile:function(){var a;try{if(g.ActiveXObject)return a=new ActiveXObject("htmlfile"),a.open(),a.write("<html><body></body></html>"),a.close(),a}catch(b){}return null}}),
wb=U.inherit({id:"htmlfile",htmlfileOnly:!0}),ba=T.inherit({id:"img",request:function(a,b,c,d){a=this._buildUrl(a,b);b=h.createElement("img");c=c||function(){};b.onload=r(function(){c.call(d,!0)},"TransportImage.request");b.onerror=r(function(){c.call(d,!1)},"TransportImage.request");b.src=a}}),V=G.inherit({counterId:"",onlyCurrentDomain:!1,skipPrefix:!1,_initComponent:function(){var a,b;V.superclass._initComponent.apply(this,arguments);this._domain=null;if(!this.onlyCurrentDomain)for(a=D.host.split("."),
b=2;;)if(b<=a.length){if(this._domain="."+a.slice(-b).join("."),b++,this.isEnabled())break}else{this._domain=null;break}},create:function(a,b,c){a=[this._prepareName(a)+"="+encodeURIComponent(b)];c&&(b=new Date,b.setTime(b.getTime()+6E4*c),a.push("expires="+b.toGMTString()));this._domain&&a.push("domain="+this._domain);a.push("path=/");try{h.cookie=a.join(";")}catch(d){}},read:function(a){var b;try{b=h.cookie}catch(c){}return b&&b.match(new RegExp("(?:^|;\\s*)"+this._prepareName(a)+"=([^;]*)"))?decodeURIComponent(RegExp.$1):
null},erase:function(a){this.create(a,"",-1)},isEnabled:function(){var a;this.create("metrika_enabled","1",60);a=!!this.read("metrika_enabled");this.erase("metrika_enabled");return a},_prepareName:function(a){return(this.skipPrefix?"":"_ym_")+a+(this.counterId?"_"+this.counterId:"")}});V.isEnabled=function(){return(new V({onlyCurrentDomain:!0})).isEnabled()};f.defer=function(a,b,c,d,e){return f.setTimeout(function(){a.apply(c,d||[])},b,e)};var K=vb.inherit({protocol:"",host:"mc.yandex.ru",resource:"",
counterId:"",counterType:0,retry:!1,transports:[aa,ba,wb],_initComponent:function(){K.superclass._initComponent.apply(this,arguments);this.retry&&(this._storage=new P)},send:function(a,b,c,d){var e=this._registerRequest(a,b);this._sendSavedRequest(e,a,b,c,d)},_sendSavedRequest:function(a,b,c,d,e){var l=g.Ya._metrika.firstReqStatus,h,k;if("process"==l)g.Ya._metrika.firstReqCallbacks=f.mergeArrays(g.Ya._metrika.firstReqCallbacks||[],[[this,arguments]]);else return l||(g.Ya._metrika.firstReqStatus="process"),
l={},this.counterType&&(l["cnt-class"]=this.counterType),f.mixin(l,b),c.st=Math.round((new Date).getTime()/1E3),c.u=K._userID,h=[this.protocol,"//",this.host,"/"+this.resource+"/"+this.counterId].join(""),k=[],c&&(f.forEachKey(c,function(a,b){"t"!=a&&f.mergeArrays(k,[a,b])}),c.t&&f.mergeArrays(k,["t",c.t])),k.length&&(l["browser-info"]=k.join(":")),K.superclass.send.call(this,h,l,function(){var b,c;g.Ya._metrika.firstReqStatus="complete";this._unregisterRequest(a);b=g.Ya._metrika.firstReqCallbacks;
g.Ya._metrika.firstReqCallbacks=null;if(b)for(c=0;c<b.length;c++)b[c][0]._sendSavedRequest.apply(b[c][0],b[c][1]);d&&d.apply(e,arguments)},this)},_isRetryEnabled:function(){return this.retry&&this._storage&&this._storage.isEnabled()},_registerRequest:function(a,b){var c,d;if(this._isRetryEnabled()){b.rqnl=b.rqnl||0;b.rqnl++;c=this._storage.get("retryReqs")||{};for(d=1;c[d];)d++;c[d]={protocol:this.protocol,host:this.host,resource:this.resource,counterId:this.counterId,counterType:this.counterType,
postParams:this.postParams,params:a,browserInfo:b,ghid:Ya._globalMetrikaHitId,time:+new Date};this._storage.set("retryReqs",c);return d}},_unregisterRequest:function(a){var b;a&&this._isRetryEnabled()&&(b=this._storage.get("retryReqs")||{},b[a]&&(delete b[a],this._storage.set("retryReqs",b)))}});K.initCookie=function(){var a=new V,b=a.read("uid");b||(b=Math.round((new Date).getTime()/1E3),b=b+""+f.random(),a.create("uid",b,1036800));K._userID=b};K.retransmit=function(){var a=new P,b=a.get("retryReqs")||
{},c;a.remove("retryReqs");f.forEachKey(b,function(a,b){g.Ya._metrika.firstReqStatus||(g.Ya._metrika.firstReqStatus="complete");b.ghid&&b.ghid!=Ya._globalMetrikaHitId&&b.time&&b.time+864E5>+new Date&&2>=b.browserInfo.rqnl&&(c=new K({protocol:b.protocol,host:b.host,resource:b.resource,counterId:b.counterId,counterType:b.counterType,postParams:b.postParams||[],retry:!0}),c.send(b.params,b.browserInfo))})};f.trim=function(a,b){a=String(a).replace(/^\s+|\s+$/g,"");b&&a.length>b&&(a=a.substr(0,b));return a};
f.isFunction=function(a){return"function"===typeof a};f.isString=function(a){return"[object String]"==Object.prototype.toString.call(a)};f._playerRegexp=/^.+\.mtproxy\.yandex\.net$/;f.isMetrikaPlayer=function(){return"MetrikaPlayer"==g.name||this._playerRegexp.test(g.location.hostname)};p._silverlightVersion="";p.getSilverlightVersion=function(){var a,b,c,d;if(!p._silverlightVersion)if(g.ActiveXObject)try{c=new ActiveXObject("AgControl.AgControl"),a=function(a,c,d,f){for(;b(a,c);)c[d]+=f;c[d]-=f},
b=function(a,b){return a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3])},d=[1,0,0,0],a(c,d,0,1),a(c,d,1,1),a(c,d,2,1E4),a(c,d,2,1E3),a(c,d,2,100),a(c,d,2,10),a(c,d,2,1),a(c,d,3,1),p._silverlightVersion=d.join(".")}catch(e){}else if(a=g.navigator,a=a.plugins&&a.plugins["Silverlight Plug-In"])p._silverlightVersion=a.description;return p._silverlightVersion||""};p._flashVersion=0;p.getFlashVersion=function(){var a,b,c;if(!p._flashVersion)if(a=g.navigator,"undefined"!=typeof a.plugins&&"object"==
typeof a.plugins["Shockwave Flash"]){if(b=a.plugins["Shockwave Flash"],c=b.version,(b=b.description)||c)if(a=a.mimeTypes,"undefined"==typeof a||!a["application/x-shockwave-flash"]||a["application/x-shockwave-flash"].enabledPlugin)c?p._flashVersion=c:b&&(p._flashVersion=b.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,"."))}else if("undefined"!=typeof g.ActiveXObject)try{if(c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),b=c.GetVariable("$version"))p._flashVersion=b.split(" ")[1].replace(/,/g,
".").replace(/[^.\d]/g,"")}catch(d){}return p._flashVersion};p.getJavaEnabled=function(){try{return w.javaEnabled()}catch(a){return!1}};f.fnv32a=function(a){var b=2166136261,c,d;c=0;for(d=a.length;c<d;++c)b^=a.charCodeAt(c),b+=(b<<1)+(b<<4)+(b<<7)+(b<<8)+(b<<24);return b>>>0};p.getFingerPrint=function(){var a=[],b,c;if(w.plugins&&w.plugins.length)for(c=0;c<w.plugins.length;c++)b=w.plugins[c],f.mergeArrays(a,[b.name,b.version,b.description,b.filename]);if(w.mimeTypes&&w.mimeTypes.length)for(c=0;c<
w.mimeTypes.length;c++)b=w.mimeTypes[c],f.mergeArrays(a,[b.type,b.description,b.suffixes]);return f.fnv32a(a.join(";"))+"01"};p.getNotificationPermission=function(){var a;try{a=Notification.permission}catch(b){}switch(a){case "denied":return 1;case "granted":return 2}};p.isIframe=function(){try{return g.top!=g.self}catch(a){return!1}};p._nMap={other:"0",none:"1",unknown:"2",wifi:"3",ethernet:"4",bluetooth:"5",cellular:"6",wimax:"7",mixed:"8"};p.netType=function(){var a=(w.connection||{type:""}).type;
return p._nMap[a]||a};p.isSafari=function(){try{return w.vendor&&-1<w.vendor.indexOf("Apple")&&w.userAgent&&!w.userAgent.match("CriOS")}catch(a){}return!1};var xb={url:"https://mc.yandex.ru/metrika/",_value:null,_storage:null,getVal:function(){var a;if(null!==this._value&&this._value!==X)return this._value;this._storage||(this._storage=new V);if(a=this._storage.read("isad"))return this._set(a),this._value;this._getReqStatus()||this._send();return null},_set:function(a){var b=null;"1"==a?b="1":"2"==
a&&(b="2");this._value=b},_send:function(){var a=h.createElement("img"),b=this;a.onload=function(){b._saveReq(!1);m.removeNode(this)};a.onerror=function(){b._saveReq(!0);m.removeNode(this)};this._setReqStatus("process");a.src=this.url+String.fromCharCode(97,100,118,101,114,116,46,103,105,102);p.isSafari()&&(a.style.position="absolute",a.style.visibility="hidden",a.style.width="0px",a.style.height="0px",m.getRootElement().appendChild(a))},_saveReq:function(a){this._value=a=a?"1":"2";this._setReqStatus("complete");
this._storage.create("isad",a,1200)},_setReqStatus:function(a){try{g.Ya._metrika.adStatus=a}catch(b){}},_getReqStatus:function(){try{return g.Ya._metrika.adStatus}catch(a){return"complete"}}},ia=K.inherit({hitId:0,trackHash:!1,trimParams:!1,webvisor:!1,counter:null,counterNum:0,resource:"watch",retry:!0,postParams:["site-info"],countersNoTitle:"22836271 1143050 29626870 9928105 26128362 29850769".split(" "),fake:!1,sendTitle:!0,_initComponent:function(){ia.superclass._initComponent.apply(this,arguments);
this._trackHash=this.trackHash;"0"===""+this.counterType&&(this.sendTitle=-1===f.arrayIndexOf(this.countersNoTitle,""+this.counterId))},setTrackHash:function(a){this._trackHash=a},sendHit:function(a){this._hitExt({url:a.url,title:a.title,referrer:a.referrer,vParams:a.vParams,modes:{ar:!0,saveRef:!0,pv:!0},callback:a.callback,ctx:a.ctx})},sendExperiments:function(a){this._hitExt({url:x().href,title:"",referrer:"",modes:{ex:!0,ar:!0},experiments:a.experiments,callback:a.callback,ctx:a.ctx})},sendPrerenderHit:function(a){this._hitExt({url:a.url,
title:a.title,referrer:a.referrer,modes:{ar:!0,pq:!0}})},sendAjaxHit:function(a){this._hitExt({url:a.url,title:a.title,referrer:a.referrer,modes:a.modes})},sendParams:function(a,b,c){this._hitExt({url:x().href,title:"",referrer:"",vParams:a,modes:{ar:!0,pa:!0,onlyData:!0},callback:b,ctx:c})},sendGoal:function(a,b){var c,d,e;/[\/&=?#]/.test(a)||(c=a?"goal://"+x().hostname+"/"+encodeURIComponent(a):x().href,d=m.getDocumentTitle(),e=a?x().href:h.referrer,this._hitExt({url:c,title:d,referrer:e,vParams:b.vParams,
modes:{ar:!0},callback:b.callback,ctx:b.ctx}))},sendClickLink:function(a){this._hitExt({url:a.url,title:a.title,referrer:x().href,modes:a.modes})},sendExtLink:function(a){this._hitExt({url:a.url,title:a.title||"",referrer:x().href,vParams:a.vParams,modes:{ar:!0,ln:!0,ut:oa},callback:a.callback,ctx:a.ctx})},sendFileUpload:function(a){this._hitExt({url:a.url,title:a.title||"",referrer:x().href,vParams:a.vParams,modes:{ar:!0,ln:!0,dl:!0},callback:a.callback,ctx:a.ctx})},sendNotBounce:function(a,b){this._hitExt({url:x().href,
title:"",referrer:"",modes:{cl:a,ar:!0,nb:!0,onlyData:!0},callback:b.callback,ctx:b.ctx})},_hitExt:function(a){function b(a,b){b&&(k[a]=b)}var c,d,e,g,h,k,m;f.isMetrikaPlayer()||(c=a.modes||{},d=a.browserInfo||{},g="undefined"!=typeof a.referrer?a.referrer:pa.lastReferrer,h=a.url||"",k={},c.ar&&!c.onlyData&&(g=null===g||""===g?"":this._prepareHitUrl(g),h=this._prepareHitUrl(a.url)),b("page-ref",f.trim(g,W)),b("page-url",f.trim(h,W)),La()?b("ut",oa):"undefined"!=typeof c.ut&&b("ut",f.trim(c.ut,yb)),
b("exp",a.experiments),a.vParams&&(h=f.toJSON(a.vParams),this.trimParams&&h.length>zb?m=!0:b("site-info",h)),c.saveRef&&(pa.lastReferrer=g),this.fake||(e=this._getTechInfo(a.title,c,this.counterId,a.ts,a.tz,this._trackHash,this.hitId,this.webvisor,this.counter)),f.mixin(d,e),this.send(k,d,function(){m&&this.counter.params(a.vParams);a.userParams&&this.counter.userParams(a.userParams);f.isFunction(a.callback)&&a.callback.apply(a.ctx,arguments)},this))},_prepareHitUrl:function(a){var b=x(),c=b.host,
b=b.href,d;if(!f.isString(a))return b;if(-1!=a.search(/^\w+:\/\//))return a;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},_getTechInfo:function(a,b,c,d,e,h,k,H,J){function l(a,b){a&&b&&(r[a]=b)}function q(a){b[a]&&l(a,"1")}var r={},x;b=b||{};d=d||Q.getTimestamp();e=e||Q.getTimezone();
l("j",p.getJavaEnabled()?"1":"");l("nt",p.netType());O&&l("s",O.width+"x"+O.height+"x"+(O.colorDepth||O.pixelDepth));g.devicePixelRatio&&l("sk",g.devicePixelRatio);p.isIframe()&&l("ifr","1");l("adb",xb.getVal());l("f",p.getFlashVersion());l("l",p.getSilverlightVersion());l("fpr",p.getFingerPrint());l("cn",this.counterNum);b.pa||(x=m.getViewportSize(),l("w",x[0]+"x"+x[1]));l("z",e);l("i",d);l("et",Math.round((new Date).getTime()/1E3));l("en",m.getDocumentCharset());l("v",Y);l("c",w.cookieEnabled?"1":
"");l("la",p.getLanguage());l("ntf",p.getNotificationPermission());h&&l("wh","1");e="ar ln dl ad nb pa pq pv ex".split(" ");for(d=0;d<e.length;d++)q(e[d]);e=["va","vt","sn","sa","he"];b.nb&&e.push("cl");for(d=0;d<e.length;d++)h=e[d],l(h,b[h]);e=new P({counterId:c});e.isEnabled()&&(c=e.getStorageId(),(d=e.get("reqNum"))?d++:d=1,e.set("reqNum",d),e.get("reqNum")==d?(l("ls",c),l("rqn",d)):(e.remove("reqNum"),e.clearStorageId(),1<d&&(l("ls",c),l("rqn",0))));l("rn",f.random());l("hid",k);l("ds",lb(J));
J._firstPaint||(J._firstPaint=mb(),l("fp",J._firstPaint));if(H){g.name||(g.name=Math.round(65535*Math.random()));if(k=+g.name)0>k&&(k*=-1),k%=65535;l("wn",k||f.fletcher(g.name));try{g.history&&l("hl",String(g.history.length))}catch(qb){}}k="";this.sendTitle&&(k=this._getTitle(a));l("t",k);return r},_getTitle:function(a){a="undefined"==typeof a?(a=m.getDocumentTitle())?f.trim(a,bb):"":f.trim(a,bb);return a}}),T=T.inherit({id:"script",request:function(a,b,c,d){var e,l=f.getNativeFunction("createElement",
h)("script");if(!l)return c.call(d,!1),!1;e="_ymjsp"+f.random();g[e]=r(function(){try{delete g[e]}catch(q){g[e]=X}c.apply(d,f.mergeArrays([!0],arguments));l.parentNode&&l.parentNode.removeChild(l)},"transport.script");l.type="text/javascript";l.src=this._buildUrl(a,f.mixin({wmode:5,callback:e},b));a=h.getElementsByTagName("head")[0];a||(a=h.createElement("head"),h.documentElement.appendChild(a));a.insertBefore(l,a.firstChild);return!0}}),ca={encode:function(a){var b=[],c,d,e;c=0;for(e=a.length;c<
e;c++)d=a.charCodeAt(c),128>d?b.push(d):(127<d&&2048>d?b.push(d>>6|192):(b.push(d>>12|224),b.push(d>>6&63|128)),b.push(d&63|128));return b},decode:function(a){for(var b="",c=0,d,e,f;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(e=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|e&63),c+=2):(e=a.charCodeAt(c+1),f=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(e&63)<<6|f&63),c+=3);return b}},I={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
tail:"+/=",tailSafe:"*-_",encode:function(a,b){var c=(I.abc+(b?I.tailSafe:I.tail)).split(""),d=a.length,e=[],g=d-d%3,h,k;for(k=0;k<g;k+=3)h=(a[k]<<16)+(a[k+1]<<8)+a[k+2],f.mergeArrays(e,[c[h>>18&63],c[h>>12&63],c[h>>6&63],c[h&63]]);switch(d-g){case 1:h=a[g]<<4;f.mergeArrays(e,[c[h>>6&63],c[h&63],c[64],c[64]]);break;case 2:h=(a[g]<<10)+(a[g+1]<<2),f.mergeArrays(e,[c[h>>12&63],c[h>>6&63],c[h&63],c[64]])}return e.join("")},decode:function(a,b){for(var c=I.abc+(b?I.tailSafe:I.tail),d=0,e="",f,g,h,k,m;a.length%
4;)a+="=";do{f=c.indexOf(a.charAt(d++));g=c.indexOf(a.charAt(d++));k=c.indexOf(a.charAt(d++));m=c.indexOf(a.charAt(d++));if(0>f||0>g||0>k||0>m)return null;h=f<<18|g<<12|k<<6|m;f=h>>16&255;g=h>>8&255;h&=255;e=64==k?e+String.fromCharCode(f):64==m?e+String.fromCharCode(f,g):e+String.fromCharCode(f,g,h)}while(d<a.length);return e}},xa=ia.inherit({transports:[T],trimParams:!0,_initComponent:function(){xa.superclass._initComponent.apply(this,arguments);this._ilStorage=new P({counterId:this.counterId})},
sendHit:function(a){var b={},c=this._ilStorage.get("il");a.visitColor&&(b.vc=a.visitColor);a.hasPrerender&&(b.pr=1);c&&(this._ilStorage.remove("il"),b.ilt=I.encode(ca.encode(f.trim(c,cb))));this._hitExt({url:a.url,title:a.title,referrer:a.referrer,vParams:a.vParams,userParams:a.userParams,experiments:a.experiments,modes:a.modes,browserInfo:b,ts:a.ts,tz:a.tz,callback:a.callback,ctx:a.ctx})}}),Ab=G.inherit({cid:3,cnt:0,_initComponent:function(){this._storage=new P},hit:function(a){var b=this,c=this._storage.get("wasSynced");
c&&c.time+864E5>+new Date||g.Ya._metrika.fakeHit?a():(g.Ya._metrika.fakeHit=!0,this._getSender().sendHit({callback:function(){b._storage.set("wasSynced",{time:+new Date});a()}}))},_getSender:function(){this._sender||(this._sender=new xa({protocol:"https:",counterType:this.cnt,counterId:this.cid,sendTitle:!1,dontSendRequests:this.dontSendRequests,fake:!0}));return this._sender}}),Bb=G.inherit({baseUrl:"https://mc.yandex.",baseTld:"ru",syncTlds:["ua","by","kz","com.tr"],langToDomain:{uk:"ua",be:"by",
tr:"com.tr",kk:"kz"},sync:function(a){var b=this,c=this._need();!this._is()&&c?(this._setStatus(!0),La()?this._getCn().hit(function(){b._sync(c,a)}):a(function(){b._sync(c)})):a()},_is:function(){try{return!!g.Ya._metrika.startSync}catch(a){return!1}},_setStatus:function(a){try{g.Ya._metrika.startSync=a}catch(b){}},_need:function(){var a=this._getDomainByLang(),b=this._getTld(),c,d=[];-1!=f.arrayIndexOf(this.syncTlds,a)&&d.push(a);-1!=f.arrayIndexOf(this.syncTlds,b)&&-1==f.arrayIndexOf(d,b)&&d.push(b);
c=this._getLs().get("synced")||{};d=f.arrayFilter(d,function(a){return(c[a]||1)+864E5<+new Date});return d.length&&d||!1},_sync:function(a,b){var c,d,e=this;a.length?(d=new ub({method:"GET"}),b=b||function(){},d.request(this.baseUrl+this.baseTld+"/sync_cookie_get",null,function(g,h){var k,l,m,q=0,p=0,r;if(g){k=na.parse(h);try{l=k.sync_token,r=k.sync_ok}catch(qb){return b(),!1}d.setMethod("POST");c=f.arrDiff(a,r);if(q=c.length)for(m=e._getLs(),k=0;k<c.length;k++)(function(a){d.request(e.baseUrl+a+
"/sync_cookie_decide",{body:l},function(c,f){c?d.request(e.baseUrl+e.baseTld+"/sync_cookie_decide_ok",{body:f},function(c){p++;q===p&&b();c&&(c=m.get("synced")||{},c[a]=+new Date,m.set("synced",c))}):(p++,q===p&&b())})})(c[k]);else b()}else b()})):b()},_getCn:function(){this._cn||(this._cn=new Ab({fake:!0,dontSendRequests:this.dontSendRequests}));return this._cn},_getLs:function(){this._ls||(this._ls=new P);return this._ls},_getTld:function(){var a=f.getTld();return{tr:"com.tr","\u0443\u043a\u0440":"ua",
"xn--j1amh":"ua","\u0431\u0435\u043b":"by","xn--90ais":"by"}[a]||a},_getDomainByLang:function(){var a;if(!g.navigator)return"ru";try{a=w.languages?w.languages[0]:p.getLanguage()}catch(b){}a=(a||"").toLowerCase().split("-")[0];return this.langToDomain[a]||"ru"}}),B={getPos:function(a){var b=m.getRootElement(),c=m.getDocumentScroll();return[a.pageX||a.clientX+c[0]-(b.clientLeft||0)||0,a.pageY||a.clientY+c[1]-(b.clientTop||0)||0]},getTarget:function(a){var b=null;try{(b=a.target||a.srcElement)&&!b.ownerDocument&&
b.documentElement&&(b=b.documentElement)}catch(c){}return b},getMouseButton:function(a){return a.which||a.button==X?a.which:a.button&1?1:a.button&2?3:a.button&4?2:0},prevent:function(a){a=a||g.event;a.preventDefault?a.preventDefault():a.returnValue=!1}};B.dispatchCustomEvent=r(function(a,b){var c;b=b||h;if(c=f.getNativeFunction("createEvent",h)("Event"))c.initEvent(a,!1,!1),f.getNativeFunction("dispatchEvent",b)(c)},"evt.dispatch");f.isEqual=function(a,b){var c=!0;f.forEachKey(a,function(a,e){b.hasOwnProperty(a)&&
b[a]===e||(c=!1)});if(!c)return c;f.forEachKey(b,function(b,e){a.hasOwnProperty(b)&&a[b]===e||(c=!1)});return c};var k=G.inherit({_initComponent:function(){k.superclass._initComponent.apply(this,arguments);this._listeners=[]},on:function(a,b,c,d,e){e=k._getOpts(e);b=b.split(",");var f=b.length,h=this._listeners,m,p,t;for(t=0;t<f;t++)m=b[t],p=r(function(a){c.call(d||this,a||g.event)},"on"+m),h[h.length]=[a,m,c,d,e,p],a.addEventListener?a.addEventListener(m,p,k._prepOpts(e)):a.attachEvent&&a.attachEvent("on"+
m,p)},un:function(a,b,c,d,e){e=k._getOpts(e);var g=this._listeners,h=g.length,m,p;for(m=0;m<h;m++)if(p=g[m],p[0]==a&&p[1]==b&&p[2]==c&&p[3]==d&&f.isEqual(p[4],e)){g.splice(m,1);this._removeListener(a,b,p[5],e);break}},unAll:function(){var a=this._listeners,b=a.length,c,d;for(d=0;d<b;d++)c=a[d],this._removeListener(c[0],c[1],c[5],c[4]);a.length=0},_removeListener:function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,k._prepOpts(d)):a.detachEvent&&a.detachEvent("on"+b,c)}});k.supportsPassive=
function(){var a;if(k._supportsPassive!==X)return k._supportsPassive;k._supportsPassive=!1;try{a=Object.defineProperty({},"passive",{get:function(){k._supportsPassive=!0}}),g.addEventListener("test",null,a)}catch(b){}return k._supportsPassive};k._getOpts=function(a){return f.mixin({capture:!0,passive:!0},a||{})};k._prepOpts=function(a){return k.supportsPassive()?a:!!a.capture};k.on=function(){k._instance||(k._instance=new k);k._instance.on.apply(k._instance,arguments)};k.un=function(){k._instance&&
k._instance.un.apply(k._instance,arguments)};k.ready=function(a){var b=g.performance,c;"object"==typeof b&&b.timing&&b.timing.domContentLoadedEventStart?a():(c=function(){k.un(h,"DOMContentLoaded",c);k.un(g,"load",c);a()},k.on(h,"DOMContentLoaded",c),k.on(g,"load",c))};var pa={lastReferrer:null},tb=K.inherit({resource:"webvisor",transports:[aa,U],postParams:["wv-data"],sendContent:function(a,b,c,d,e,f,g){if(!a)return!1;-1<a.indexOf("\r")&&(a=a.replace(/\r\n/g,"\n"));a={"wv-type":1,"page-url":x().href,
"wv-hit":c,"wv-data":I.encode(ca.encode(a))};return 245E3<a["wv-data"].length?!1:this.send(a,{z:d,i:e,pct:b||""},f,g)}});f.throttle=function(a,b,c,d){var e,g,h;return function(){g=arguments;h=this;e||function(){e=null;g&&(a.apply(c||h,g),g=null,e=f.setTimeout(arguments.callee,b,d))}()}};var db=G.inherit({storage:null,storageKey:"dataBuffer",maxBufferSize:255,flushTimeout:1E4,active:!0,meta:null,onFlush:function(){},onFlushCtx:null,bufferExpireTime:864E5,_initComponent:function(){var a;db.superclass._initComponent.apply(this,
arguments);this._data=[];this._packetNumber=0;this._flushTID=null;this._saveToStorageThrottled=f.throttle(this._saveToStorage,300,this,"DataBuffer._saveToStorage");this.storage&&((a=this.storage.get(this.storageKey))&&a.data&&a.meta&&a.time&&a.time+this.bufferExpireTime>+new Date&&this.onFlush.call(this.onFlushCtx||this,a.data,a.meta,a.pnum),this.clear())},append:function(a,b){f.mergeArrays(this._data,a);this._saveToStorageThrottled();this.active&&((b||this._data.length>=this.maxBufferSize)&&this._flush(),
this._flushTID||(this._flushTID=f.defer(this._flush,this.flushTimeout,this,[],"DataBuffer._flush")))},activate:function(){this.active||(this.active=!0,this.append([]))},clear:function(){this._data.length=0;this._flushTID=null;this.storage&&this.storage.remove(this.storageKey)},_flush:function(){this.onFlush.call(this.onFlushCtx||this,this._data,this.meta,this._packetNumber);this._packetNumber++;this.clear()},_saveToStorage:function(){this.storage&&this._data.length&&this.storage.set(this.storageKey,
{data:this._data,meta:this.meta,pnum:this._packetNumber,time:+new Date})}});f.array2Props=function(a){var b=a.length,c={},d=c,e,f;for(e=0;e<b-1;e++)f=a[e],d[f]={},e<b-2&&(d=d[f]);d[f]=a[b-1];return c};var R=G.inherit({sampling:1,counterId:26302566,_initComponent:function(){R.superclass._initComponent.apply(this,arguments);this._sender=new ia({protocol:"https:",counterId:this.counterId,retry:!1,counter:{}})},log:function(){this.logParams(f.array2Props(arguments))},logParams:function(a){Math.random()<
this.sampling&&this._sender.sendHit({url:D.href,title:"",referrer:"",vParams:a})}}),Cb=K.inherit({resource:"webvisor",retry:!0,postParams:["wv-data"],sendPacket:function(a,b,c,d,e,h,k,m){var l,q;if(!a||!a.length)return!1;l=I.encode(a,!0);0==l.indexOf("AAAAAAAAADw")&&g.Error&&(q=Error(),"string"==typeof q.stack&&(new R({sampling:.1})).log("bad visor packet 5",1));a={rn:f.random(),"page-url":b,wmode:0,"wv-type":0,"wv-hit":c,"wv-part":d+1,"wv-check":f.fletcher(a),"wv-data":l};return this.send(a,{z:e,
i:h},k,m)}}),ab=db.inherit({protocol:"",counterId:"",counterType:"",meta:null,maxBufferSize:7500,flushTimeout:3E4,storageKey:"visorbuff",active:!1,_initComponent:function(){this.storage=new P({counterId:this.counterId});this._sender=new Cb({protocol:this.protocol,counterId:this.counterId,counterType:this.counterType});ab.superclass._initComponent.apply(this,arguments)},onFlush:function(a,b,c){this._sender.sendPacket(a,b.url,b.hitId,c,b.timezone,b.timestamp)}});f.isObject=function(a){try{return a&&
null!==a&&"[object Object]"==Object.prototype.toString.call(a)}catch(b){return!1}};f.isNumber=function(a){return isFinite(a)&&!isNaN(a)&&"[object Number]"==Object.prototype.toString.call(a)};f.clearTimeout=function(a){return f.getNativeFunction("clearTimeout")(a)};f._urlParser=null;f.parseUrl=function(a){if(!this._urlParser)try{this._urlParser=h.createElement("a")}catch(b){}return this._urlParser?(this._urlParser.href=a,{protocol:this._urlParser.protocol,host:this._urlParser.host,port:this._urlParser.port,
hostname:this._urlParser.hostname,hash:this._urlParser.hash,search:this._urlParser.search,query:this._urlParser.search.replace(/^\?/,""),pathname:this._urlParser.pathname||"/",path:(this._urlParser.pathname||"/")+this._urlParser.search,href:this._urlParser.href}):{}};p.isIE=function(){return h&&!h.addEventListener||!1};var ja={};ja._cookie=new V({onlyCurrentDomain:!0});ja.log=r(function(){var a=-1<D.href.indexOf("_ym_debug=1")||g._ym_debug;a&&this._cookie.create("debug","1");g.console&&console.log&&
(a||"1"===this._cookie.read("debug"))&&console.log.apply(console,arguments)},"DebugConsole.log");var Db=K.inherit({resource:"clmap",retry:!0,transports:[ba],sendClick:function(a,b,c,d){this.send({"page-url":a,"pointer-click":b},{},c,d)}}),Eb=G.inherit({filter:null,ignoreTags:[],quota:0,isTrackHash:!1,protocol:"",counterId:0,counterType:0,startTime:0,dontSendRequests:!1,MAX_LEN_PATH:128,TIMEOUT_CLICK:50,TIMEOUT_SAME_CLICKS:1E3,DELTA_SAME_CLICKS:2,tags:"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 MAIN".split(" "),
_initComponent:function(){var a,b,c;this._lastClick=null;this.hasQuota=!!this.quota;this._quota=this.quota;this._ignoreTags=[];if(this.ignoreTags)for(a=0;a<this.ignoreTags.length;a++)this.ignoreTags[a]&&f.mergeArrays(this._ignoreTags,[String(this.ignoreTags[a]).toUpperCase()]);this._cacheTags={};a=59;b=String.fromCharCode;for(c=0;c<this.tags.length;c++)this._cacheTags[this.tags[c]]=b(a),b(a),a++;this._sender=new Db({dontSendRequests:this.dontSendRequests,protocol:this.protocol,counterId:this.counterId,
counterType:this.counterType});this._start=!1;this.start()},destroy:function(){this.stop()},start:function(){if(!this._start)k.on(h,"click",this._handler,this);this._start=!0},stop:function(){this._start&&k.un(h,"click",this._handler,this);this._start=!1},setTrackHash:function(a){this.isTrackHash=a},_isIgnore:function(a){return m.classNameExists(a,"(ym-disable-clickmap|ym-clickmap-ignore)")},_handler:function(a){a={el:B.getTarget(a),pos:B.getPos(a),button:B.getMouseButton(a),time:+new Date};var b,
c;this._isTrackingClick(a)&&(b=m.getElementSize(a.el),c=m.getElementXY(a.el),b=["rn",f.random(),"x",Math.floor(65535*(a.pos[0]-c[0])/(b[0]||1)),"y",Math.floor(65535*(a.pos[1]-c[1])/(b[1]||1)),"t",Math.floor((a.time-this.startTime)/100),"p",this._getElPath(a.el)],c=x().href,this.isTrackHash?f.mergeArrays(b,["wh","1"]):c=c.split("#")[0],this._sender.sendClick(f.trim(c,W),b.join(":")),this._lastClick=a)},_isTrackingClick:function(a){var b,c,d;if(g.ymDisabledClickmap||f.isMetrikaPlayer()||!a.el)return!1;
b=a.el.tagName;if((2==a.button||3==a.button)&&"A"!=b||this.filter&&!this.filter(a.el,b))return!1;for(c=0;c<this._ignoreTags.length;c++)if(this._ignoreTags[c]==b)return!1;for(b=a.el;b;){if(this._isIgnore(b))return!1;b=b.parentNode}if(this._lastClick){if(a.time-this._lastClick.time<this.TIMEOUT_CLICK)return!1;b=Math.abs(this._lastClick.pos[0]-a.pos[0]);c=Math.abs(this._lastClick.pos[1]-a.pos[1]);d=a.time-this._lastClick.time;if(this._lastClick.el==a.el&&b<this.DELTA_SAME_CLICKS&&c<this.DELTA_SAME_CLICKS&&
d<this.TIMEOUT_SAME_CLICKS)return!1}if(this.hasQuota){if(!this._quota)return!1;this._quota--}return!0},_getElPath:function(a){for(var b="";a&&a.parentNode&&"BODY"!=a.tagName&&"HTML"!=a.tagName;)b+=this._cacheTags[a.tagName]||"*",b+=m.getElementNeighborPosition(a)||"",a=a.parentNode;return f.trim(b,this.MAX_LEN_PATH)}}),eb=G.inherit({_initComponent:function(){eb.superclass._initComponent.apply(this,arguments);this._executedMsgs={};k.on(g,"message",this._onMessage,this)},_buildRemoteIframe:function(a){var b=
f.getNativeFunction("createElement",h)("div"),c=h.body||h.documentElement,d;b.innerHTML='<iframe name="RemoteIframe" allowtransparency="true" style="position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"></iframe>';d=b.firstChild;d.onload=function(){m.loadScript({src:a},d.contentWindow)};g._ym__remoteIframeEl=d;b.createShadowRoot||b.webkitCreateShadowRoot?(c.appendChild(b),b.removeChild(d),c=b.createShadowRoot?b.createShadowRoot():b.webkitCreateShadowRoot(),c.appendChild(d),g._ym__remoteIframeContainer=
b):(c.appendChild(d),g._ym__remoteIframeContainer=d)},_isAllowedLang:function(a){return-1!==f.arrayIndexOf(["ru","uk","en","tr"],a)},_isAllowedOrigin:function(a){return/^http:\/\/(.+\.)?webvisor\.com\/?$/.test(a)},_isAllowedStatic:function(a){return/^https?:\/\/(((.+\.)?dev\.webvisor\.com)|(yastatic\.net))(\/.*)?$/.test(a)},_onMessage:function(a){var b;try{b=a.origin}catch(c){}b&&this._isAllowedOrigin(b)&&(b=na.parse(a.data))&&"appendremote"===b.action&&this._isAllowedStatic(b.domain)&&this._isAllowedLang(b.lang)&&
!this._executedMsgs[b.id]&&(this._executedMsgs[b.id]=!0,g._ym__postMessageEvent=a,g._ym__inpageMode=b.inpageMode,g._ym__initMessage=b.initMessage,this._buildRemoteIframe(b.domain+"/cdn/inpage-remote/inpage-remote."+b.lang+".js"))}}),Q={};f.pad=function(a){return(10>a?"0":"")+a};Q.getTimestamp=function(){var a=new Date,a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],b="",c;for(c=0;c<a.length;c++)b+=f.pad(a[c]);return b};Q.getTimezone=function(){return-(new Date).getTimezoneOffset()};
f.bind=function(a,b){return function(){return a.apply(b||this,arguments)}};var fb=G.inherit({counter:null,prefsEcommerce:null,dataLayerName:"dataLayer",allowedEvents:["add","delete","remove","purchase","detail"],_initComponent:function(){var a="customArr";fb.superclass._initComponent.apply(this,arguments);this._overridePush(this.prefsEcommerce)||(f.isString(this.prefsEcommerce)&&(this.dataLayerName=this.prefsEcommerce),a=this.dataLayerName,this._tryTimeout=f.bind(this._tryTimeout,this),this._tryTimeout());
this.counter._ecommerce=a},_overridePush:function(a){var b,c;return a&&"function"==typeof a.push?(b=this,b._send(a),c=a.push,a.push=function(){b._send([].slice.call(arguments,0));c.apply(this,arguments)},!0):!1},_tryTimeout:function(){this._overridePush(g[this.dataLayerName])||f.setTimeout(this._tryTimeout,1E3,"dlObserver")},_send:function(a){var b=[],c=this.allowedEvents,d,e,g,h,k;d=0;for(k=a.length;d<k;d++)(e=a[d])&&e.ecommerce&&(g={},h=!1,f.forEachKey(e.ecommerce,function(a,b){0<=f.arrayIndexOf(c,
a)&&(h=!0,g[a]=b)}),h&&b.push(g));b.length&&this.counter.params({__ym:{ecommerce:b}})}}),Ja={_url:"https://mc.yandex.ru/user_storage_set?",init:function(a){this._params=a||{}},save:function(a,b){this._getReq().request(this._url+ha.stringify({key:a,value:f.toJSON(b)}));this._getLs().set(a,b)},get:function(a){return{remote:this._params[a],local:this._getLs().get(a)}},getNum:function(a){a=this.get(a);return Math.max(+a.remote||0,+a.local||0)},_getLs:function(){this._ls||(this._ls=new P);return this._ls},
_getReq:function(){this._req||(this._req=new ba);return this._req}};Q.getMinutes=function(){return Math.floor(+new Date/1E3/60)};var Fb={match:function(){this.enabled()&&k.ready(function(){var a=f.getNativeFunction("createElement",h)("iframe");a.onload=function(){Ja.save("cm",Q.getMinutes());m.removeNode(a)};a.setAttribute("style","position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden");a.src="https://mc.yandex.ru/metrika/watch_match.html";h.documentElement.appendChild(a)})},
enabled:function(){return 1440<Q.getMinutes()-Ja.getNum("cm")&&"tr"==f.getTld()}};f.safeDecodeURIComponent=function(a){try{return decodeURIComponent(a)}catch(b){return""}};ha.parse=function(a,b){var c={},d,e,g,h;a=a&&a.replace(/^\?/,"")||"";if(a.length)for(d=a.split("&"),h=0;h<d.length;h++)d[h]&&(e=d[h].split("="),e[0]&&(g=f.safeDecodeURIComponent(e[0]),e=f.safeDecodeURIComponent((e[1]||"").replace(/\+/g,"%20")),b&&g in c?f.isArray(c[g])?c[g].push(e):c[g]=[c[g],e]:c[g]=e));return c};var S=[],D=x(),
Da=Q.getTimezone(),Ea=Q.getTimestamp(),w=g.navigator,O=g.screen,Y="751",yb=64,W=p.isIE()?512:2048,zb=p.isIE()?512:2048,bb=p.isIE()?100:400,cb=100,oa="noindex",gb=/\.(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)|psd|rar|rss|rtf|sea|sfv|sit|sha1|svg|tar|tif?f|torrent|ts|txt|vob|wave?|wma|wmv|wmf|webm|ppt(x|m|b)?|xls(x|m|b)?|pdf|phps|png|xpi|g?zip)$/i,
Gb=+new Date,Ka,ka,fa;g.Ya=g.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.counters=Ya._metrika.counters||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};Ya._metrika.counterNum=Ya._metrika.counterNum||0;Ya._metrika.hitId=Ya._metrika.hitId||f.random();Ya._globalMetrikaHitId=f.random();Ya._metrika.v=Y;fa=!!Ya._metrika.oo;g.Ya.Metrika=function(a,b,c,d){var e=this;return r(function(){function l(u){var v=!1,l,N,n;if(Ya._metrika.hitParam[da]){if(1!=c||Ya._metrika.counters[da])return!1;v=!0}Ya._metrika.counters[da]=
e;Ya._metrika.hitParam[da]=1;e._webvisor=!d&&(A&&A.webvisor||!1);e._directCampaign=A&&A.directCampaign;A&&A.trackHash&&S(!0);if(!d&&!v){e.replacePhones();l=new V({counterId:a});N=l.read("visorc");"b"!=N&&"w"!=N&&(N="");if(!l.isEnabled()||la("opera mini"))N="b";v=new Bb({dontSendRequests:fa});n=function(d){var v=new xa({protocol:"https:",counterType:c,counterId:a,trackHash:z,hitId:ea,webvisor:e._webvisor,counter:e,dontSendRequests:fa,counterNum:W}),M={ut:R,he:A?~~A.httpError:0,ad:1==c&&g.Ya&&g.Ya.Direct,
pv:!0,saveRef:!0};Ka=+new Date;v.sendHit({url:D.href,title:m.getDocumentTitle(),referrer:h.referrer,vParams:b,userParams:Y,experiments:U,modes:M,visitColor:N,hasPrerender:u,ts:Ea,tz:Da,callback:function(c,u){var v,m;Ja.init(u);Fb.match();ja.log("PageView. Counter ",a,". URL: ",D.href,". Referrer: "+h.referrer,". Params: ",b);ka||(ka=+new Date);c=c||{};m=c.webvisor||{};if(ma){v=+m.recp;if(!isFinite(v)||0>v||1<v)N="w";N||(N=ea%1E4/1E4<v?"w":"b");l.create("visorc",N,30);"w"==N?(ma.start(),v=m.arch_type,
(m=m.urls)&&v&&"none"!=v&&ma.uploadPages(m,v)):ma.stop()}m=c.mp2;l.erase("mp2_substs");if(m){b:{v=m.conditions;var M;if(v&&v.length)for(M=0;M<v.length;M++){var n;n=v[M];if("ref"==n.type)n=nb(n);else if("adv"==n.type){var p,q,t,r,C;p=n;r=Ya._metrika.counter._directCampaign;q=p.ServiceNamePattern;var Z=p.RefererPattern;n=r?p.direct_orders:p.direct_camp;var w=h.referrer,x=ha.parse(D.search),z=ob(D.search,D.hash),A={};t=["source","medium","campaign","term","content"];for(C=0;C<t.length;C++)x["utm_"+t[C]]&&
(A[t[C]]=x["utm_"+t[C]]);var B=r?"direct.yandex.ru":z&&z.service||A.source;C=!1;if(!C&&q&&q.length)for(t=0;t<q.length;t++)if((new RegExp(q[t],"i")).test(B)){C=!0;break}if(!C&&!p.yandex_direct&&Z&&Z.length)for(q=0;q<Z.length;q++)if((new RegExp(Z[q],"i")).test(w)){C=!0;break}!C&&p.google_adwords&&x.gclid&&(C=!0);if(C&&n&&n.length&&(C=!1,r=r||z&&z.campaign||A&&A.campaign))for(p=0;p<n.length;p++)if(n[p]==r){C=!0;break}n=C}else n=!1;if(n){v[M].track_id&&l.create("mp2_track",v[M].track_id,43200);break b}}}v=
l.read("mp2_track");m=m.substs&&m.substs[v];v&&m?(l.create("mp2_substs",f.toJSON(m)),m=Pa(m),e.params("__ym",m?"mp_trackid":"mp_trackid_bad",v)):Qa()}else Qa();k.on(g,"load",e.replacePhones,e);e._inited=!0;d&&d()}})};v.sync(n)}w();A&&(A.enableAll?(q(!0),t(!0),I()):(A.clickmap&&t(A.clickmap),A.trackLinks&&q(A.trackLinks),A.accurateTrackBounce&&I(A.accurateTrackBounce)),(A.ecommerce||A.useDataLayer)&&new fb({counter:e,prefsEcommerce:A.ecommerce}),A.triggerEvent&&hb(function(){B.dispatchCustomEvent("yacounter"+
a+"inited")},0));e._webvisor&&!fa&&(ma=new pb("https:",a,c,ea,e))}function q(a){var b={};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;break;case "boolean":b.on=a;break;default:return}e._trackLinks=b}function w(){q(!1);k.on(h,"click",function(a){e._trackLinks&&e._trackLinks.on&&G(a)})}function G(a){var b=ib(a),c,d,e,g;if(b){a=!1;d=(c=""+b.href)?c.split(/\?/)[0]:"";e=function(a){var d=Ma(b);L.sendClickLink({url:c,title:c==d?"":d,modes:a})};if(gb.test(d)||gb.test(c)||Na(c,ga)||
Na(d,ga))a=!0;g=m.classNameExists(b,"ym-disable-tracklink");d=m.classNameExists(b,"ym-external-link");g||(g={ln:!0,dl:a},d?e(g):(d=b.hostname||f.parseUrl(b.href).hostname||"",jb(x().hostname,d)?a?(g.ln=!1,e(g)):(a=Ma(b))&&a!=c&&sa.set("il",f.trim(a,cb)):c&&-1!=c.search(/^ *(data|javascript):/i)||(g.ut=oa,e(g))))}}function t(b){"undefined"==typeof b&&(b=!0);!0===b&&(b={});e._clickmap&&e._clickmap.destroy();b&&(e._clickmap=new Eb({dontSendRequests:fa,filter:b.filter,ignoreTags:b.ignoreTags,quota:b.quota,
isTrackHash:b.isTrackHash,protocol:"https:",counterId:a,counterType:c,startTime:Gb}))}function n(a,b){function c(){var c;t||(q&&f.clearTimeout(q),c=u?m:m+ +new Date-n,c=b-c,0>c&&(c=0),q=f.setTimeout(function(){t=!0;e(!1);a()},c,"trackUserTime"))}function d(){v||(l=!0,u=!1,v=!0,c())}function e(a){var b;for(b=0;b<r.length;b+=3)if(a)k.on(r[b],r[b+1],r[b+2]);else k.un(r[b],r[b+1],r[b+2])}var l=!1,v=!1,u=!0,m=0,n=+new Date,q=null,t=!1,r;p.isIE()?f.setTimeout(a,b,"trackUserTime"):(r=[g,"blur",function(){u=
l=v=!0;m+=+new Date-n;n=+new Date;c()},g,"focus",function(){l||v||(m=0);n=+new Date;l=v=!0;u=!1;c()},h,"click",d,h,"mousemove",d,h,"keydown",d,h,"scroll",d],e(!0),c())}function I(b){var c,d;"number"!=typeof b&&(b=15E3);e._isAccurateTrackBounce||(e._isAccurateTrackBounce=!0,c=new P({counterId:a}),d=c.get("lastHit"),c.set("lastHit",+new Date),((c=c.get("lastHit"))&&(!d||d<c-18E5)||!kb(h.referrer,x().href)||.1>Math.random())&&n(function(){e.notBounce()},b))}function Q(a){var b=function(){var a=x().hash.split("#")[1],
b;if("undefined"==typeof a)return!1;b=a.indexOf("?");0<b&&(a=a.substring(0,b));return a},c;c=b();(function Z(){var d=b();d!==c&&(a(),c=d);ta=f.setTimeout(Z,200,"trackHash")})()}function S(a){if(!1===a)z&&("onhashchange"in g?k.un(g,"hashchange",T):f.clearTimeout(ta),z=!1);else if(a=T,!z){if("onhashchange"in g)k.on(g,"hashchange",a);else Q(a);z=!0}L.setTrackHash(z);e._trackHash=z}function T(){var a={ut:R,ad:1==c&&g.Ya&&g.Ya.Direct,wh:!0,saveRef:!0,pv:!0};aa=pa.lastReferrer=ba;L.sendAjaxHit({url:x().href,
title:m.getDocumentTitle(),referrer:aa,modes:a});ba=x().href}function O(a,b,c){a=ra.parseValidate(a,b);b=[];a&&(b.push(a),c=c||{},f.isFunction(c.callback)&&(b.push(c.callback),c.ctx&&b.push(c.ctx)));b.length&&e.params.apply(e,b)}var da,R="",U,Y,A,aa="",ba=pa.lastReferrer=D.href,W,L,ma,ga,ca,sa,z,F,ea;Ya._metrika.counter||(Ya._metrika.counter=e);"object"==typeof a&&(A=a,d=a.defer,R=a.ut,c=a.type,b=a.params,Y=a.userParams,U=A.experiments,a=a.id);a=a||0;/^\d+$/.test(a)||(a=0);c=c||0;da=a+":"+c;if(Ya._metrika.counters[da])return Ya._metrika.counters[da];
ea=Ya._metrika.hitId;Ya._metrika.counterNum++;W=Ya._metrika.counterNum;K.initCookie();K.retransmit();L=new ia({protocol:"https:",counterType:c,counterId:a,hitId:ea,counter:e,dontSendRequests:fa,counterNum:W});e.replacePhones=r(function(){var b,c;try{(b=(new V({counterId:a})).read("mp2_substs"))&&(c=na.parse(b))&&Pa(c,!0)}catch(M){}return e},"counter.replacePhones");e.reachGoal=r(function(b,c,d,f){2<=arguments.length&&"function"===typeof c&&(f=d,d=c,c=X);ja.log("Reach goal. Counter: "+a+". Goal id: "+
b+". Params: ",c);L.sendGoal(b,{vParams:c,callback:d,ctx:f});return e},"counter.reachGoal");e.trackLinks=r(function(a){q(a);return e},"counter.trackLinks");sa=new P({counterId:a});e.hit=r(function(b,c,d,g,h,k){b&&(f.isObject(c)&&(d=c.referer,g=c.params,h=c.callback,k=c.ctx,c=c.title),ja.log("PageView. Counter "+a,". URL: "+b,". Referrer: "+d,". Params: ",g),L.sendHit({url:b,title:c,referrer:d,vParams:g,callback:h,ctx:k}));return e},"counter.hit");e.params=r(function(b){var c=arguments.length,d=c,
g,h,k=[].slice.call(arguments,0);b&&(1<arguments.length&&(f.isFunction(arguments[c-1])?(g=arguments[c-1],d=c-1):f.isFunction(arguments[c-2])&&(g=arguments[c-2],h=arguments[c-1],d=c-2),k=[].slice.call(k,0,d),1<k.length&&(k=[f.array2Props(k)])),ja.log("User params. Counter "+a+". Params: ",k[0]),L.sendParams(k[0],g,h));return e},"counter.params");e.file=r(function(a,b){a&&(b=b||{},L.sendFileUpload({url:a,title:b.title,vParams:b.params,callback:b.callback,ctx:b.ctx}));return e},"counter.file");e.extLink=
r(function(a,b){a&&(b=b||{},L.sendExtLink({url:a,title:b.title,vParams:b.params,callback:b.callback,ctx:b.ctx}));return e},"counter.extLink");e.notBounce=r(function(a){var b=0;a=a||{};Ka&&ka&&(b=ka-Ka);L.sendNotBounce(b,{callback:a.callback,ctx:a.ctx});return e},"counter.notBounce");ga=[];e.addFileExtension=function(a){"string"==typeof a?ga.push(a):ga=ga.concat(a);return e};e.clickmap=function(a){t(a);return e};e.accurateTrackBounce=function(a){I(a);return e};var ta=null;z=!1;e.trackHash=function(a){S(a);
return e};f.arrayEvery=function(a,b,c){var d;for(d=0;d<a.length;d++)if(!b.call(c,a[d],d,a))return!1;return!0};var ra={requiredEcommerceFields:["currency","goods"],parseValidate:function(a,b){var c=this.validate(a,b),d;if(!c.isValid)return console&&console.log(c.message),!1;c={};c[a]={};b.currency&&(c.currencyCode=b.currency);b.goods&&(c[a].products=b.goods);for(d in b)b.hasOwnProperty(d)&&-1===f.arrayIndexOf(this.requiredEcommerceFields,d)&&(c[a].actionField||(c[a].actionField={}),c[a].actionField[d]=
b[d]);return{__ym:{ecommerce:[c]}}},validate:function(a,b){var c=!1,d="";if(f.isObject(b))switch(a){case "detail":case "add":case "remove":f.isArray(b.goods)&&b.goods.length?(c=f.arrayEvery(b.goods,function(a){return f.isObject(a)&&(f.isString(a.id)||f.isNumber(a.id)||f.isString(a.name)||f.isString(a.name))}))||(d="All items in 'goods' should be objects and contain 'id' or 'name' field"):d="Ecommerce data should contain 'goods' non-empty array";break;case "purchase":f.isNumber(b.id)||f.isString(b.id)?
c=!0:d="Purchase object should contain string or number 'id' field"}else d="Ecommerce data should be an object";return{isValid:c,message:d}}};e.ecommerceDetail=r(function(a,b){O("detail",a,b);return e},"ecommerce.detail");e.ecommerceAdd=r(function(a,b){O("add",a,b);return e},"ecommerce.add");e.ecommerceRemove=r(function(a,b){O("remove",a,b);return e},"ecommerce.remove");e.ecommercePurchase=r(function(a,b){O("purchase",a,b);return e},"ecommerce.purchase");e.userParams=r(function(a,b,c){f.isObject(a)&&
e.params({__ymu:a},b||function(){},c);return e},"uparams");e.experiments=r(function(a,b,c){L.sendExperiments({callback:b,ctx:c,experiments:a});return e},"exps");e.id=e.setUserID=r(function(a,b,c){(f.isString(a)||f.isNumber(a))&&e.params({__ym:{user_id:a}},b||function(){},c);return e},"id");ca=new V;e.getClientID=r(function(){return ca.read("uid")},"guid");e.enableAll=function(){q(!0);t(!0);I();return e};e.uploadPage=function(){};e._performanceTiming=Oa;a&&("prerender"==h.webkitVisibilityState?(L.sendPrerenderHit({url:D.href,
title:m.getDocumentTitle(),referrer:h.referrer}),F=function(){"prerender"!=h.webkitVisibilityState&&(k.un(h,"webkitvisibilitychange",F),l(!0))},k.on(h,"webkitvisibilitychange",F)):l(!1))},"init")()};(function(){if(g.performance&&"function"===typeof performance.getEntries){var a={2343947156:1,1996539654:1,2065498185:1,823651274:1,12282461:1,1555719328:1,1417229093:1,138396985:1},b=performance.getEntries(),c={},d,e,h,k;for(k=0;k<b.length;k++)d=b[k],e=d.name.replace(/^https?:\/\//,"").split("?")[0],
h=f.fnv32a(e),a[h]&&!c[e]&&0<d.duration&&(c[e]={dns:Math.round(d.domainLookupEnd-d.domainLookupStart),tcp:Math.round(d.connectEnd-d.connectStart),duration:Math.round(d.duration),response:Math.round(d.responseEnd-d.requestStart),pages:D.href});(new R({sampling:.001})).logParams({timings8:c})}})();g.Ya._metrika.remoteCtrlInited||(g.Ya._metrika.remoteCtrlInited=!0,new eb);g.Ya.Metrika.counters=function(){var a=[];f.forEachKey(g.Ya._metrika.counters,function(b,c){var d=b.split(":");a.push({id:+d[0],type:+d[1],
accurateTrackBounce:c._isAccurateTrackBounce,clickmap:c._clickmap&&c._clickmap._start,oldCode:!!g.ya_cid,trackHash:!!c._trackHash,trackLinks:c._trackLinks&&c._trackLinks.on,webvisor:!!c._webvisor})});return a};g.ya_cid&&new Ya.Metrika(g.ya_cid,g.ya_params,g.ya_class);g.ya_cid&&!g.ya_hit&&(g.ya_hit=function(a,b){Ya._metrika.counter&&Ya._metrika.counter.reachGoal(a,b)});(function(){var a=g.yandex_metrika_callback,b=g.yandex_metrika_callbacks,c;"function"==typeof a&&a();if("object"==typeof b)for(a=0;a<
b.length;a++)if(c=b[a])b[a]=null,c();Ra("yandex_metrika_callback");Ra("yandex_metrika_callbacks")})();g.Ya.Metrika.informer=function(a){var b=!!Ya.Metrika._informer;Ya.Metrika._informer=a;b||m.loadScript({src:"https://informer.yandex.ru/metrika/informer.js"})};k.on(h,"click",r(function(a){var b=B.getTarget(a),c,d;b&&"ym-advanced-informer"==b.className&&(c=b.getAttribute("data-lang"),d=b.getAttribute("data-cid"),Ya.Metrika.informer({i:b,id:+d,lang:c}),B.prevent(a))},"adv-inf"),null,{passive:!1})})(this,
this.document);
