(function(g,h,E){function v(a,b,c){return function(){try{return a.apply(this,arguments)}catch(d){c||xa(d,b)}}}function xa(a,b){var c;if(.01>Math.random())try{var d=a&&a.message||"";(c=-1>8,b&255])}function p(a,b){f.mergeArrays(a,[b&255])}function q(a,b){for(b=Math.max(0,b|0);127>=7;f.mergeArrays(a,[b])}function n(a,b){255M)return null;var m={mousemove:2,click:32,dblclick:33,mousedown:4,mouseup:30,touch:12}[b];if(!m)return null;var g=l.getElementXY(c);c=[];p(c,m);q(c,a);q(c,M);q(c,Math.max(0,d[0]-g[0]));q(c,Math.max(0,d[1]-g[1]));/^mouse(up|down)|click$/.test(b)&&(a=e||f,p(c,2>a?1:a==(e?2:4)?4:2));return c}function $a(a,b,c, d){b=b[K];if(!b||0>b)return null;var e=[];p(e,31);q(e,a);q(e,b);q(e,c[0]);q(e,c[1]);p(e,0);p(e,0);p(e,d);return e}function E(a,b){var c=[];p(c,3);q(c,a);q(c,b[0]);q(c,b[1]);return c}function G(a,b,c){var d=[];c=c[K];if(!c||0>c)return null;p(d,16);q(d,a);q(d,b[0]);q(d,b[1]);q(d,c);return d}function J(a,b,c){var d=[];p(d,28);q(d,a);q(d,b[0]);q(d,b[1]);q(d,c[0]);q(d,c[1]);return d}function ma(a,b,c,d,e){var f=[];p(f,38);q(f,a);R(f,b);p(f,c);a=d[K];if(!a||0>a)a=0;q(f,a);p(f,e?1:0);return f}function tb(a, b){var c;if(0==b.length)var d=c="";else 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=[];p(e,29);q(e,a);t(e,c);t(e,d);return e}function ua(a){var b=[];p(b,27);q(b,a);return b}function ub(a){var b=[];p(b,14);q(b,a);return b}function B(a){var b=[];p(b,15);q(b,a);return b}function P(a,b){var c=[];p(c,17);q(c,a);q(c,b[K]);return c}function sa(a,b){var c=[];p(c,18);q(c,a);q(c,b[K]);return c}function z(a,b,c,d){var e=[];p(e,39); q(e,a);q(e,b[K]);n(e,String(c));p(e,d?1:0);return e}function Q(a){var b=a[K];if(!b||0>b||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||aa(a.form))return null;var c=l.getFormNumber(a.form);if(0>c)return null;var 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,f=a.form.elements, M=f.length,m=0,g=0;me)return null;f=[];p(f,7);q(f,b);q(f,c);q(f,d);t(f,a.name||"");q(f,e);return f}function T(a,b){var c=l.getFormNumber(b);if(0>c)return null;for(var d=b.elements,e=d.length,M=[],m=0;m=c)b=null;else{d=64;e=0;var g=l.getElementParent(a);f=g&&g[K]?g[K]:0;0>f&&(f=0);m=a.nodeName.toUpperCase();var M= vb[m];M||(d|=2);var y=l.getElementNeighborPosition(a);y||(d|=4);var u=l.getElementRegion(a);(g=g?l.getElementRegion(g):null)&&u[0]==g[0]&&u[1]==g[1]&&u[2]==g[2]&&u[3]==g[3]&&(d|=8);Da[c].pos=u[0]+"x"+u[1];Da[c].size=u[2]+"x"+u[3];a.id&&"string"==typeof a.id&&(d|=32);(g=l.calcTextChecksum(a))&&(d|=16);var A=l.calcAttribChecksum(a);A&&(e|=2);b:{var h=l.getElementChildren(l.getElementParent(a),a.tagName);for(var k=0;kc)){var d=F.getPos(a),e=Ta[0]-d[0],f=Ta[1]-d[1];e=e*e+f*f;0>=e||16>e&&100>c||20>c&&256>e||(ab=b,Ta=d,W(a))}}function N(){var a=l.getDocumentScroll(),b=u();10>b-ra||10>Math.abs(a[0]-Z[0])&&10>Math.abs(a[1]- Z[1])||(ra=b,Z=a,C(E,[r(),a]))}function S(a){if(a=F.getTarget(a)){var b=Math.random(),c=[a.scrollLeft,a.scrollTop];if(a.localId){if(b=da[a.localId],!b||10>Math.abs(c[0]-b[0])&&10>Math.abs(c[1]-b[1]))return}else{for(;da[b];)b=Math.random();a.localId=b}da[a.localId]=c;a!==h&&(x(a),C(G,[r(),c,a]))}}function ha(){C(J,[r(),l.getViewportSize(),l.getDocumentSize()])}function ta(){C(Y,[],!0)}function ba(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 ea(a){return"INPUT"== a.tagName?"password"==a.type||a.name&&V.test(a.name)||a.id&&V.test(a.id):!1}function ka(a){if(!a)return{ignore:!0,forceRecord:!1,isPrivate:!1,privateFlag:!1,recordData:!0};var b="password"===a.type||V.test(a.name)||V.test(a.id),c=f.reduce(function(b,c){return b||Ea.generalRegex.test(a[c])},!1,["className","id","name"])||Ea.placeholderRegex.test(a.placeholder),d=Ea.forceRecordRegex.test(a.className);return{forceRecord:d,ignore:b,isPrivate:c,privateFlag:!d&&(c||b),recordData:d||!(c&&e.get("isEU")|| b)}}function U(a,b,c){a=F.getTarget(a);var d=ka(a);d.ignore||!d.forceRecord&&(d.isPrivate&&e.get("isEU")||fa(a))||(x(a),C(ma,[r(),b,c,a,d.privateFlag]))}function y(a){var b=a.keyCode,c=ba(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),U(a,b,c|16),na=!1,f.setTimeout(function(){na=!0},1,"wvl.keyDown"),!(67==b&&c&4)||c&1||c&2||L()}function A(a){na&& !oa&&0!==a.which&&(U(a,a.charCode||a.keyCode,ba(a)),oa=!0,f.setTimeout(function(){oa=!1},1,"vwl.keyPress"))}function L(){ia||(ia=!0,qa&&C(ua,[r()]),f.setTimeout(function(){ia=!1},1,"wvl.copy"))}function H(){ya||(ya=!0,C(ub,[r()]))}function O(){ya&&(ya=!1,C(B,[r()]))}function X(a){(!ya||a&&!a.fromElement)&&H()}function cb(a){a&&!a.toElement&&O()}function Fa(a){if((a=F.getTarget(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[K])x(a);else{var b=a.form;if(b){b=b.elements;for(var c=b.length, d=0;da.deltaY?2:0:"mousewheel"==a.type&&(c=0a.wheelDelta?1:0);c&&(x(b),C($a,[r(),b,F.getPos(a), c]))}}function db(a){(a=F.getTarget(a))&&"BODY"==a.tagName&&va.append([],!0)}var va=new Ja({protocol:a,globalConfig:e,counterId:b,counterType:c,meta:{url:D().href,hitId:d,timezone:Aa,timestamp:Ba}}),eb=l.getBody(),vb={A:1,ABBR:2,ACRONYM:3,ADDRESS:4,APPLET:5,AREA:6,B:7,BASE:8,BASEFONT:9,BDO:10,BIG:11,BLOCKQUOTE:12,BODY:13,BR:14,BUTTON:15,CAPTION:16,CENTER:17,CITE:18,CODE:19,COL:20,COLGROUP:21,DD:22,DEL:23,DFN:24,DIR:25,DIV:26,DL:27,DT:28,EM:29,FIELDSET:30,FONT:31,FORM:32,FRAME:33,FRAMESET:34,H1:35, H2:36,H3:37,H4:38,H5:39,H6:40,HEAD:41,HR:42,HTML:43,I:44,IFRAME:45,IMG:46,INPUT:47,INS:48,ISINDEX:49,KBD:50,LABEL:51,LEGEND:52,LI:53,LINK:54,MAP:55,MENU:56,META:57,NOFRAMES:58,NOSCRIPT:59,OBJECT:60,OL:61,OPTGROUP:62,OPTION:63,P:64,PARAM:65,PRE:66,Q:67,S:68,SAMP:69,SCRIPT:70,SELECT:71,SMALL:72,SPAN:73,STRIKE:74,STRONG:75,STYLE:76,SUB:77,SUP:78,TABLE:79,TBODY:80,TD:81,TEXTAREA:82,TFOOT:83,TH:84,THEAD:85,TITLE:86,TR:87,TT:88,U:89,UL:90,VAR:91,NOINDEX:100},Ea=function(){var a="first(-|\\.|_|\\s){0,2}name last(-|\\.|_|\\s){0,2}name zip postal phone address passport (bank|credit)(-|\\.|_|\\s){0,2}card card(-|\\.|_|\\s){0,2}number card(-|\\.|_|\\s){0,2}holder cvv card(-|\\.|_|\\s){0,2}exp card(-|\\.|_|\\s){0,2}name card.*month card.*year card.*month card.*year password email birth(-|\\.|_|\\s){0,2}(day|date) second(-|\\.|_|\\s){0,2}name third(-|\\.|_|\\s){0,2}name patronymic middle(-|\\.|_|\\s){0,2}name birth(-|\\.|_|\\s){0,2}place house street city flat state".split(" "); return{generalRegex:new RegExp("("+a.join("|")+")","i"),placeholderRegex:new RegExp("("+a.concat("\u0438\u043c\u044f;\u0444\u0430\u043c\u0438\u043b\u0438\u044f;\u043e\u0442\u0447\u0435\u0441\u0442\u0432\u043e;\u0438\u043d\u0434\u0435\u043a\u0441;\u0442\u0435\u043b\u0435\u0444\u043e\u043d;\u0430\u0434\u0440\u0435\u0441;\u043f\u0430\u0441\u043f\u043e\u0440\u0442;\u041d\u043e\u043c\u0435\u0440(-|\\.|_|\\s){0,2}\u043a\u0430\u0440\u0442\u044b;\u0434\u0430\u0442\u0430(-|\\.|_|\\s){0,2} \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f;\u0434\u043e\u043c;\u0443\u043b\u0438\u0446\u0430;\u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0430;\u0433\u043e\u0440\u043e\u0434;\u043e\u0431\u043b\u0430\u0441\u0442\u044c".split(";")).join("|")+ ")","i"),forceRecordRegex:/ym-record-keys/i,obfuscatedSymbol:String.fromCharCode(8226),obfuscatedKeyCode:88}}(),pa=0,Qa=0;m(0);var Ra=1,ab=0,Ta=[0,0],ra=0,Z=[0,0],da={},V=/^(password|passwd|pswd)$/,na=!0,oa=!1,qa="",ia=!1,ya=!0,ja=u(),K="metrikaId_"+Math.random(),Da={},Ka=":submit"+Math.random();if(!f.isMetrikaPlayer()){k.on(h,"mousemove",la);k.on(h,"click,dblclick,mousedown",W);k.on(h,"mouseup",ca);k.on(g,"scroll",N);if("onmousewheel"in h)k.on(h,"mousewheel",Ia);else k.on(h,"wheel",Ia);k.on(g,"beforeunload", ta);if(!wb)k.on(g,"unload",ta);k.on(g,"resize",ha);k.on(h,"keydown",y);k.on(h,"keypress",A);k.on(h,"copy",L);k.on(h,"touchmove,touchstart",Ua);if(eb)k.on(h,"mouseleave",db);h.attachEvent&&!g.opera?(k.on(h,"focusin",X),k.on(h,"focusout",cb)):(k.on(g,"focus",H),k.on(g,"blur",O),k.on(h,"blur",O));h.addEventListener?(k.on(h,"scroll",S),k.on(h,"focus",Fa),k.on(h,"blur",Ga),k.on(h,"change",Ha),k.on(h,"submit",za)):h.attachEvent&&(k.on(h,"focusin",Fa),k.on(h,"focusout",Ga),function(){for(var a=h.getElementsByTagName("form"), b=0;b]+>/gi,""))}function gb(a,b){var c;if(!a||!b)return!1;var d=[];for(c=0;cb||36E5a?"0":"")+a};w.getTimestamp=function(){var a=new Date;a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()];var b="",c;for(c=0;cw.getMs()&&this.onFlush.call(this.onFlushCtx||this,a.data,a.meta,a.pnum),this.clear())},getFlushSize:function(){return this._data.length},append:function(a,b){f.mergeArrays(this._data,a);this._saveToStorageThrottled();this.active&&((b||this.getFlushSize()>=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(){if(!this._data.length)return!1;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:w.getMs()})}}),t={storage:{},init:function(){var a=this;v(function(){g.Ya=g.Ya||{};g.Ya._metrika=g.Ya._metrika||{};a.storage=g.Ya._metrika},"",!0)();return this},setSafe:function(a,b){var c=this;v(function(){c.storage[a]===E&&(c.storage[a]=b)},"",!0)();return this},set:function(a,b){v(function(){g.Ya._metrika[a]=b},"",!0)();return this},get:function(a,b){return v(function(){var c=g.Ya._metrika[a];return c===E?b:c},"",!0)()}};f.async=function(a,b,c){if(g.postMessage){var d="__ym__promise"+Math.random()+ "_"+w.getMs();var e=function(c){c.data===d&&(c.stopPropagation&&c.stopPropagation(),a.call(b),k.un(g,"message",e,null,{passive:!1}))};k.on(g,"message",e,null,{passive:!1,name:"async"+c});g.postMessage(d,"*")}else f.setTimeout(function(){a.call(b)},0)};var ja=B.inherit({transports:[],globalConfig:t,postParams:[],isDisabled:function(){return this.globalConfig.get("oo")},send:function(a,b,c,d){var e=[a],g=this,h=c||function(){};g.isDisabled()?h.call(d):function p(a){if(a=e.length?c.blockNext()||p.call(this,a+1):c.request(e[m],b,function(a,b,c){a?h.call(d,b,c):f.async(function(){rb.call(g,m+1)})},this)}).call(this,0)}catch(qb){xa(qb,"send by "+(c&&c.id)),p.call(this,a+1)}}.call(this,0)}}),ca={};f.keys=function(a){var b,c=[];for(b in a)a.hasOwnProperty(b)&&c.push(b);return c};f.map=function(a,b){var c,d=[];for(c= 0;carguments.length&&(b=a,a=0);1>arguments.length&&(b=1073741824);return Math.floor(Math.random()*(b-a))+a};var ea=S.inherit({id:"form",index:2,enctype:"application/x-www-form-urlencoded",htmlfileOnly:!1,_initComponent:function(){ea.superclass._initComponent.apply(this,arguments);"_htmlfile"in ea.prototype||(ea.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:h)},request:function(a,b,c,d){var e=this._doc;if(!e)return c.call(d,!1);b=this._splitParams(b);var g="ifr"+f.random();var h=e.createElement("div");h.style.position="absolute";h.style.left="-99999px";h.style.top="-99999px";var r=['\x3ciframe name\x3d"',g,'"\x3e\x3c/iframe\x3e','\x3cform action\x3d"',this._buildUrl(a,b.get),'" method\x3d"post" target\x3d"',g,'" enctype\x3d"',this.enctype, '"\x3e'];f.forEachKey(b.post,function(a){f.mergeArrays(r,['\x3cinput type\x3d"hidden" autocomplete\x3d"off" autocorrect\x3d"off"',' autocapitalize\x3d"off" spellcheck\x3d"false" name\x3d"',a,'"/\x3e'])});f.mergeArrays(r,["\x3c/form\x3e"]);h.innerHTML=r.join("");e.body.appendChild(h);var k=h.getElementsByTagName("form")[0];f.forEachKey(b.post,function(a,b){k[a].value=b});k.submit();f.setTimeout(function(){e.body.removeChild(h)},1E4,"TransportForm.request.2");return c.call(d,!0,"tf.request")},_createHtmlfile:function(){try{if(g.ActiveXObject){var a= new ActiveXObject("htmlfile");a.open();a.write("\x3chtml\x3e\x3cbody\x3e\x3c/body\x3e\x3c/html\x3e");a.close();return a}}catch(b){}return null}}),Fb=ea.inherit({id:"htmlfile",index:3,htmlfileOnly:!0}),V=S.inherit({id:"img",index:4,request:function(a,b,c,d){a=this._buildUrl(a,b);var e=!1;b=h.createElement("img");c=c||function(){};b.onload=v(function(){e||(c.call(d,!0),e=!0)},"TransportImage.request");b.onerror=v(function(){e||(c.call(d,!1),e=!0)},"TransportImage.request");b.src=a;this.timeout&&f.setTimeout(function(){e|| (c.call(d,!1),e=!0)},this.timeout,"ti.request")}}),Y={stringify:function(a){try{return JSON.stringify(a)}catch(b){return"null"}}};f.toJSON=function(a){var b;if(a===E)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:var c=[];var d=0;for(b=a.length;de&&500=c.browserInfo.rqnl&&(d=new P({protocol:c.protocol,host:c.host,resource:c.resource,counterId:c.counterId,counterType:c.counterType,postParams:c.postParams||[],retry:!0}),d.send(c.params,c.browserInfo))})};f.fletcher=function(a){for(var b=a.length,c=0,d=255,e=255,f,g,h;b;){f=21>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}; Q.encode=function(a,b){var c=(Q.abc+(b?Q.tailSafe:Q.tail)).split(""),d=a.length,e=[],g=d-d%3,h;for(h=0;h>18&63],c[k>>12&63],c[k>>6&63],c[k&63]])}switch(d-g){case 1:k=a[g]<<4;f.mergeArrays(e,[c[k>>6&63],c[k&63],c[64],c[64]]);break;case 2:k=(a[g]<<10)+(a[g+1]<<2),f.mergeArrays(e,[c[k>>12&63],c[k>>6&63],c[k&63],c[64]])}return e.join("")};f.arrayEvery=function(a,b,c){var d;for(d=0;dparseInt(a,16)})};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.isNumber=function(a){return isFinite(a)&&!isNaN(a)&&"[object Number]"==Object.prototype.toString.call(a)};f.isString=function(a){return"[object String]"==Object.prototype.toString.call(a)}; f.arrayIndexOf=function(a,b){var c;for(c=0;c>>0};n.getFingerPrint=function(){var a=[],b;if(navigator.plugins&&navigator.plugins.length)for(b=0;be?b.push(e):(127e?b.push(e>>6|192):(b.push(e>>12|224),b.push(e>>6&63|128)),b.push(e&63|128))}return b},decode:function(a){for(var b="",c=0,d,e,f;cd?(b+=String.fromCharCode(d),c++):191d?(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}};Q.decode=function(a,b){for(var c=Q.abc+(b?Q.tailSafe:Q.tail),d=0,e="",f, g,h,k,l;a.length%4;)a+="\x3d";do{f=c.indexOf(a.charAt(d++));g=c.indexOf(a.charAt(d++));k=c.indexOf(a.charAt(d++));l=c.indexOf(a.charAt(d++));if(0>f||0>g||0>k||0>l)return null;h=f<<18|g<<12|k<<6|l;f=h>>16&255;g=h>>8&255;h&=255;e=64==k?e+String.fromCharCode(f):64==l?e+String.fromCharCode(f,g):e+String.fromCharCode(f,g,h)}while(dHb?g=!0:c("site-info",q));k.saveRef&&(oa.lastReferrer=p);this.fake||(d=this._getTechInfo(a.title,k,this.counterId,a.ts,a.tz,this._trackHash,this.hitId,this.webvisor,this.counter,a.nohit));f.mixin(l,d,h);this.send(n,l,function(){g&&this.counter.params(e);a.userParams&&this.counter.userParams(a.userParams);f.isFunction(a.callback)&&a.callback.apply(a.ctx,arguments)},this)}},_prepareHitUrl:function(a){var b= D(),c=b.host;b=b.href;if(!f.isString(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},_getTechInfo:function(a,b,c,d,e,h,k,r,R,p){function m(a,b,c){var d=""+b;a&&b&&(c||-1===d.indexOf(":"))&&(t[a]=d)}function u(a){b[a]&&m(a,"1")}var t= {};b=b||{};d=d||w.getTimestamp();e=e||w.getTimezone();m("j",n.getJavaEnabled()?"1":"");var v=n.isDesktop(this.globalConfig);v!==E&&m("dp",v?"1":"0");m("nt",n.netType());U&&m("s",U.width+"x"+U.height+"x"+(U.colorDepth||U.pixelDepth));g.devicePixelRatio&&m("sk",g.devicePixelRatio);n.isIframe()&&m("ifr","1");g.ia_document&&g.ia_document.shareURL&&g.ia_document.referrer&&m("iia","1");m("adb",ib.getVal());m("f",n.getFlashVersion());m("l",n.getSilverlightVersion());m("fpr",n.getFingerPrint());m("cn",this.counterNum); b.pa||(v=l.getViewportSize(),m("w",v[0]+"x"+v[1]));m("z",e);m("i",d);m("et",w.getSeconds());m("en",l.getDocumentCharset());m("v",this._getVersion());m("c",navigator.cookieEnabled?"1":"");m("la",n.getLanguage());m("ntf",n.getNotificationPermission());f.random(100)||m("np",Q.encode(na.encode(f.trim(n.getPlatform(),100))));h&&m("wh","1");e="ar ln dl cpf ad nb pa pq pv ex".split(" ");for(d=0;dk&&(k*=-1),k%=65535;m("wn",k||f.fletcher(g.name));try{g.history&&m("hl",String(g.history.length))}catch($a){}}k= "";this.sendTitle&&(k=this._getTitle(a));m("t",k,!0);return t},_getTitle:function(a){a="undefined"==typeof a?(a=l.getDocumentTitle())?f.trim(a,Na):"":f.trim(a,Na);return a}});f.array2Props=function(a){var b=a.length,c={},d=c,e;for(e=0;e]*>|[\u0000-\u0020])/g,""))};l.getFormNumber=function(a){var b=h.getElementsByTagName("form"),c;var d=0;for(c=b.length;da.selectedIndex:!0};l.calcTextChecksum=function(a){var b="";a=a.childNodes;var c;var d=0;for(c= a.length;db&&(a=a.substr(0,b));return(g.encodeURIComponent||g.escape)(a).replace(/\+/g,"%2B")};f.bind=function(a,b){var c=[].slice.call(arguments,2);return function(){return a.apply(b||this,c.concat([].slice.call(arguments,0)))}};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}):{}};f.safeDecodeURIComponent=function(a){try{return decodeURIComponent(a)}catch(b){return""}};f.isDev=function(){return!1};var wb=!ia(/webkit/)&&ia(/gecko/),jb=B.inherit({hid:0,tz:0,ts:0,counterId:0,counterType:0, url:"",protocol:"",enabled:!1,_initComponent:function(){if(this.isEnabled()){var a=this._getStorage();var b=a.read("visorc");"b"!==b&&"w"!==b&&(b="");if(!a.isEnabled()||ia("opera mini"))b="b";this._vc=b;"b"!==b&&(this._recorder=new pb(this.protocol,this.counterId,this.counterType,this.hid,this.globalConfig));jb.superclass._initComponent.apply(this,arguments)}},start:function(a){if(this.isEnabled()&&this._recorder){a=a||{};var b=+a.recp;if(!isFinite(b)||0>b||1w.getMs()?a(c):(this.globalConfig.set("fakeHit",function(a){d.push(a)}),this._getSender().sendHit({callback:function(e,g){c={time:w.getMs(),params:e,bkParams:g};b.globalConfig.set("isEU",e.eu);b._storage.set(b.KEY_NAME,c);b._cookie.create(b.KEY_NAME,Y.stringify(c),1728);a(c);f.arrayEvery(d,function(a){a(c);return 1})}}))},_getSender:function(){this._sender||(this._sender=new Xa({protocol:"https:",counterType:this.cnt,counterId:this.cid, sendTitle:!1,globalConfig:this.globalConfig,fake:!0}));return this._sender}}),lb=B.inherit({baseUrl:I.baseUrl,globalConfig:t,baseTld:"ru",_initComponent:function(){var a=this;lb.superclass._initComponent.apply(this,arguments);this.syncTlds=f.reduce(function(a,c){return c(a)},I.yandexWhiteListTld,[f.bind(f.filter,null,function(b){return b!==a.baseTld}),f.bind(f.reduce,null,function(a,c){a[c]=[c];return a},{})])},langToDomain:{ka:"ge",ro:"md",tg:"tj",tk:"tm",et:"ee",hy:"com.am",he:"co.li",ky:"kg",uk:"ua", be:"by",tr:"com.tr",kk:"kz"},sync:function(a){var b=this,c=this._need(),d=Ma();!this._is()&&c?(this._setStatus(!0),d?this._getCn().hit(function(){b._sync(c,a)}):a()):a();d&&this._addMda()},_addMda:function(){var a=new J({skipPrefix:!0}),b=new J,c=a.read("mda");"0"!==c&&"1"!==c&&a.create("mda","0",1036800);b.read("mda")&&b.erase("mda")},_is:function(){try{return!!this.globalConfig.get("startSync")}catch(a){return!1}},_setStatus:function(a){try{this.globalConfig.set("startSync",a)}catch(b){}},_need:function(){var a= this._getDomainByLang(),b=this._getTld(),c=[],d;(d=this.syncTlds[b])&&c.push.apply(c,d);d=this.syncTlds[a];a!==b&&d&&c.push.apply(c,d);var e=this._getLs().get("synced")||{};c=f.arrayFilter(c,function(a){return(e[a]||1)+1440=Math.random()&&a;c=n.isIOS()&&a;return n.isAndroid()&&a||c},_setStatus:function(a){try{this.globalConfig.set("dSync",a)}catch(b){}}},F={getPos:function(a){var b=l.getRootElement(),c=l.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{if(b=a.target||a.srcElement)!b.ownerDocument&&b.documentElement?b=b.documentElement:b.ownerDocument!==h&&(b=null)}catch(c){}return b},getMouseButton:function(a){return a.which||a.button==E?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}};F.dispatchCustomEvent=v(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");var oa={lastReferrer:null};n.isIE=function(){return h&&!h.addEventListener||!1};n.isChromePdf=function(){var a,b=navigator.plugins;if(b&&b.length)for(a=0;af?0:fg?0:gm?m:l>n?l:n)-n)*((p>r?r:p>q?p:q)-q)&&v.push({top:g,left:f,width:k,height:e,provider:d.provider})});return{page:{width:m,height:r},window:{top:a,left:b,width:g.innerWidth,height:g.innerHeight},ads:v}}},5:function(a,b,c){b.__esModule=!0;b.getParentFriendlyIFrames=function(a){for(var b=[];;)try{if(a=a.ownerDocument.defaultView.frameElement)b.push(a);else return b}catch(m){return b}}}, 6:function(a,b,c){function d(a){return h.listToArray(a.document.getElementsByTagName("iframe")).filter(function(a){if(g.isSafari)return!1;try{return a.contentWindow.document}catch(q){return!1}}).map(function(a){return a.contentWindow})}function e(a,b){var c={window:a,children:[],parent:b};c.children=d(a).map(function(a){return e(a,c)});return c}function f(a,b){b(a);a.children.forEach(function(a){return f(a,b)})}b.__esModule=!0;var g=c(7),h=c(0);b.getFrienlyWindowsTree=e;b.windowsTreeEach=f},7:function(a, b,c){b.__esModule=!0;a=c(8);b.isSafari=a.isSafari()},8:function(a,b,c){b.__esModule=!0;b.isSafari=function(){var a=navigator.userAgent.toLowerCase();return-1!==a.indexOf("safari")&&-1===a.indexOf("chrome")&&-1===a.indexOf("android")}},9:function(a,b,c){b.__esModule=!0;var d=c(0),e=c(1);b.getAdsInWindow=function(a,b){function c(a,b){b.forEach(function(b){n.push({provider:a,element:b})})}var f=b.isInIFrame,g=a.document.body,h=d.listToArray(g.querySelectorAll("img")),k=d.listToArray(g.querySelectorAll("iframe")), l=d.listToArray(g.querySelectorAll("script")),m=d.listToArray(g.querySelectorAll("div")),n=[],u=[],t=d.listToArray(g.querySelectorAll("yatag")),v=d.listToArray(g.querySelectorAll("yatag yatag"));c("yandex",t.filter(function(a){return-1===v.indexOf(a)}));c("adriver",k.filter(function(a){return(a=a.src)&&-1=b;b++){var g=f.arrayIndexOf(e,this.spliter);-1!==g?c.push(e.substring(0, g)):c.push(e);e=e.substring(g+1)}b=c.splice(1,3);if((d=d.data)&&d.type&&this.handlers[d.type]&&"0"===b[this.DIR_INDEX]){if(!d.toCounter||d.toCounter===this.counterId){try{a.source}catch(u){return}d.counterId&&this.checkFrame(a.source)&&(g=this.trigger(d.type,a,d),a.source.postMessage(this.genMessage(g,[b[0],b[1],d.counterId]).string,"*"))}}else b[this.DIR_INDEX]==this.counterId&&f.isArray(d)&&f.arrayEvery(d,function(a){return a.counterId&&a.hid})&&(a=this.pending[[b[0],b[1]].join(this.spliter)])&& a.apply(this,d)}}}),G=D(),Aa=w.getTimezone(),Ba=w.getTimestamp(),U=g.screen,Gb=64,wa=n.isIE()?512:2048,Hb=n.isIE()?512:2048,Na=n.isIE()?100:400,kb=100,Wa="noindex",ob=/\.(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, Qb=+new Date,Za,qa,Z=function(){return"1112"}();t.init().setSafe("counters",{}).setSafe("hitParam",{}).setSafe("counterNum",0).setSafe("dataLayer",[]).setSafe("hitId",f.random(1,1073741824)).setSafe("_globalMetrikaHitId",f.random()).setSafe("v",Z);g.Ya.Metrika=function(a,b,c,d){var e=this;return v(function(){function m(a){var b=h.referrer||"",c,d;if((new RegExp("^https?://"+G.host+"/")).test(b))return!1;var e=a.patterns;for(c=0;cc&&(c=0);q=f.setTimeout(function(){r=!0;e(!1);a()},c,"trackUserTime")}}function d(){A||(l=!0,y=!1,A=!0,c())}function e(a){var b;for(b=0;bMath.random())&&da(function(){e.notBounce()},b)}}function ia(a){var b=function(){var a=D().hash.split("#")[1];if("undefined"==typeof a)return!1;var b=a.indexOf("?"); 0=a))){a={1882689622:1,2318205080:1,3115871109:1,3604875100:1,339366994:1,2890452365:1,849340123:1,173872646:1, 2343947156:1,655012937:1,1996539654:1,2065498185:1,823651274:1,12282461:1,1555719328:1,1417229093:1,138396985:1};var b=performance.getEntries(),c={},d;for(d=0;d