!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="https://yastatic.net/pcode-bundles/",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e,t){t.isTurbo=(0,g.isAdfoxPageTurbo)(e,t.isTurbo),t.useXhr=(0,m.isXhr)(t),t.startRenderTime=Date.now();var n=new j(e,t);return V.push(n),n}function o(e){var t=r(U,e);return t.initialize(),t}function i(e,t,n){var o=r(U,e);return E(U,function(){var r=P(e),i=F(U,r.container,function(){t?l(o,t,n):o.initialize()},!0);o.cbManager.addCallback(h.CallbackNames.ON_DESTROY,i)}),o}function s(e,t,n){var o=r(U,e);return l(o,t,n),o}function a(e){try{e()}catch(e){U.console&&U.console.error(e)}}function u(e,t){if(d(),"string"==typeof e)for(var n=function(n){V[n].getContainerId()===e&&a(function(){return V[n].reload(t)})},r=0;r0;)this.callbacks.shift()()},e}()},function(e,t){"use strict";t.__esModule=!0,t.win=window,t.ns=t.win.Ya||(t.win.Ya={})},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(5),i=n(8),s=n(9);!function(e){e.COMMON="adfoxAsyncParams",e.SCROLL="adfoxAsyncParamsScroll",e.ADAPTIVE="adfoxAsyncParamsAdaptive"}(r=t.ASYNC_PARAMS||(t.ASYNC_PARAMS={}));var a=function(e,t,n){var r=e[t],s=[];return o.isArray(r)&&i.forEach(r,function(t){try{n.call(e,t)}catch(e){s.push(e)}}),e[t]={push:n},s};t.initAsyncAdfox=function(e,t){var n=t.create,o=t.createScroll,u=t.createAdaptive,c=s.reduce([{key:r.COMMON,cb:n},{key:r.SCROLL,cb:function(t){return o.apply(e,t)}},{key:r.ADAPTIVE,cb:function(t){return u.apply(e,t)}}],function(t,n){var r=n.key,o=n.cb;return t.concat(a(e,r,o))},[]);i.forEach(c,function(e){throw e})}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(6),o=r.getNativeMethod(Array,"isArray"),i={};t.isArray=Boolean(o)?function(e){return o.call(Array,e)}:function(e){return"[object Array]"===i.toString.call(i,e)}},function(e,t,n){"use strict";function r(e,t){var n=e[t];if(!o.checkNativeCode(n)){var r=n;try{delete e[t];var i=e[t];"function"==typeof i&&(n=i),e[t]=r}catch(e){}}return n}t.__esModule=!0;var o=n(7);t.getNativeMethod=r},function(e,t){"use strict";function n(e){if(!e||!e.toString)return!1;var t=e.toString();return/\[native code\]/.test(t)||/\/\* source code not available \*\//.test(t)}t.__esModule=!0,t.checkNativeCode=n},function(e,t){"use strict";t.__esModule=!0,t.forEach=function(e,t,n){for(var r=0;r0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};t.__esModule=!0;var o=n(13),i=n(10),s=n(18),a=n(19),u=n(20),c=function(e){var t=o.parsedLocationQueryString["xhr-experiment-winner"],n=r(u.filter(e,function(e){var n=e.name;return n===t}),1),i=n[0];return i?i.value:a.choose(e)},d=[{name:"xhr",percent:1,value:{isXhr:!0,isControl:!1}},{name:"control",percent:0,value:{isXhr:!1,isControl:!0}},{name:"common",percent:0,value:{isXhr:!1,isControl:!1}}],l=i.isAdfoxPageTurbo(window);Boolean(s.ns.xhrExperiment)||(s.ns.xhrExperiment=c(d));var f=[255389],p=Boolean(s.ns.isXhr)||Boolean(o.parsedLocationQueryString.xhr);t.isXhr=function(e){var t=e.useXhr,n=e.ownerId,r=Boolean(s.ns.xhrExperiment&&s.ns.xhrExperiment.isXhr),o=!n||f.indexOf(n)===-1,i=l||p||t||r;return o&&i}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(14),o=r.parseUrlUsingCache(window.location.href),i=o.hash.substr(1)||o.search;t.parsedLocationQueryString=r.parseQueryString(i)},function(e,t,n){(function(e){"use strict";function r(e){_.href=e;var t=_.pathname||"";"/"!==t.charAt(0)&&(t="/"+t);var n=(_.search||"")+(_.hash||""),r=e.lastIndexOf(n),o=r===-1?e:e.slice(0,r);return{originalPath:o,href:_.href,protocol:_.protocol,host:_.host,hostname:_.hostname,port:_.port,pathname:t,search:_.search,hash:_.hash}}function o(e,t){if(void 0===t&&(t=!1),t){var n=e.originalPath,r="/"===e.pathname&&"/"!==n[n.length-1];return""+e.originalPath+(r?"/":"")+e.search+e.hash}var o="443"===e.port||"80"===e.port?e.hostname:e.host;return e.protocol+"//"+o+e.pathname+e.search+e.hash}function i(e){for(var t={},n=e.replace(/^\?+/,""),r=n.split("&"),o=0;o1?t.pop():""}var f=function(){return f=e||function(e){for(var t,n=1,r=arguments.length;n3&&void 0!==arguments[3]&&arguments[3];e.addEventListener?e.addEventListener(t,n,!!a.isSupportPassiveEvents&&r):e.attachEvent("on"+t,n)}function o(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function i(e,t,n,i){return r(e,t,n,i),function(){o(e,t,n)}}function s(e){e.stopPropagation?(e.stopPropagation(),e.preventDefault()):(e.returnValue=!1,e.cancelBubble=!0)}var a=n(36);e.exports={addEvent:r,on:i,removeEvent:o,stop:s}},function(e,t,n){"use strict";function r(){var e=document.createElement("div");return e.innerHTML="","http://www.w3.org/2000/svg"===("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)}function o(){var e=document.createElement("canvas");return Boolean(e&&e.getContext&&e.getContext("2d"))}function i(){var e=document.createElement("video");return Boolean(e&&e.canPlayType&&e.canPlayType("video/mp4"))}function s(e){var t=d.match(new RegExp(e+"/([\\d.]+)"));return t&&t[1]||"0"}function a(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}function u(){var e=navigator.appVersion.match(/OS (\d+)_/);return e&&(e=parseInt(e[1],10)),h&&e||-1}var c=n(37),d=(navigator||{}).userAgent||"",l=(navigator||{}).platform||"",f="undefined"!=typeof window.ontouchstart,p=c(),h=/iP(hone|od|ad)/.test(l);e.exports={isAMP:Boolean(window.ampSeen),isSafeframe:Boolean(window.$sf&&window.$sf.ext),chromeVersion:s("Chrome"),firefoxVersion:s("Firefox"),ieVer:p,IS_DESKTOP:!f&&screen.width>=1024&&screen.height>=728,IS_IE8:8===p,isChrome:/Chrome/gi.test(d),isEdge:/Edge/gi.test(d),isOperaMini:/Opera Mini/gi.test(d),isFirefox:/Firefox/gi.test(d),isIe:Boolean(p),isIEMobile:/IEMobile|Nokia|Lumia/gi.test(d),isSupportCanvas:o(),isSupportMP4Video:i(),isSupportPassiveEvents:a(),isSVGSupported:r(),isTouch:f,isWebkit:/WebKit/gi.test(d),isWin:/Windows NT/gi.test(l),isYaBro:/YaBrowser/gi.test(d),isIOS:h,operaVersion:s("Opera"),safariVersion:s("Safari"),yaBroVersion:s("YaBrowser"),iOSVersion:u()}},function(e,t){var n=function(e){e||(e=window);var t=e.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);var r=t.indexOf("Trident/");if(r>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var i=t.indexOf("Edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)};e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,n,r){var i={},s=i[r.bundleName]={},a=n.message;return s[a]=t(n,{params:r.adParams,userAgent:navigator.userAgent,viewport:[e.screen.width,e.screen.height].join("x"),date:String(new Date),href:location.href}),"undefined"!=typeof JSON&&(s[a]=JSON.stringify(s[a])),o(i)}function o(e){var t={},n=t[u]={};return n[c]=e,t}function i(e,t,n,r,o){var i=void 0;if(e&&"string"!=typeof e){if(e.type&&e.target)try{t=e.target.src}catch(e){}i=[];var s=void 0;for(s in e)i.push(s+": "+e[s]);i=i.join(","),e="Error object. Look at details"}return{message:e||d,file:t,line:n,column:r?r:"",stack:o&&o.stack?o.stack:o?o:"",details:i}}function s(e){var t=e.error;return{message:t&&t.message||e.message||d,file:e.filename,line:e.lineno,column:e.colno,stack:t&&t.stack||""}}var a=n(39),u=a.loaderVersion,c=a.bundleVersion,d="Unrecognized script error";e.exports={createErrorReport:r,createReport:o,processWindowError:i,processErrorEvent:s}}).call(t,n(15))},function(e,t,n){"use strict";function r(e,t){void 0===t&&(t=a);for(var n=0,r=[0],o=0;o-1&&"object"===("undefined"==typeof e?"undefined":s(e))&&u===e.version&&(i=n?d:c)}),{bundleName:o,packetVersion:i}}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var a=Math.random(),u={loader:1050,legacyBundle:1050,bundles:[[.5,1048],[.5,1047]],freezeBundles:[{bannerType:"media-banner_theme",bannerVersion:1,packetVersion:282,legacyPacketVersion:282},{bannerType:"media-banner_theme",bannerVersion:2,packetVersion:557,legacyPacketVersion:557}]},c=n(40),d=n(43),l=!c.hasAtoB()||!c.hasObjectCreate()||!d.hasObjectDefineProperty;t.choose=r,t.getPacketVersionAndBundleName=i,t.loaderVersion=u.loader,t.bundleVersion=o(u.bundles)},function(e,t,n){"use strict";var r=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};t.__esModule=!0;var o=n(41),i=n(42),s=n(29);t.hasObjectCreate=function(e){void 0===e&&(e=window);var t=e.Object;return Boolean(t.create)},t.hasAtoB=function(e){return void 0===e&&(e=window),Boolean(e.atob)},t.hasES5ArrayMethods=function(e){void 0===e&&(e=window);var t=e.Array,n=t.prototype;return Boolean(n&&n.every&&n.filter&&n.forEach&&n.indexOf&&n.lastIndexOf&&n.map&&n.some&&n.reduce&&n.reduceRight&&t.isArray)},t.hasES5FunctionMethods=function(e){void 0===e&&(e=window);var t=e.Function,n=t.prototype;return Boolean(n&&n.bind)},t.hasES5ObjectMethods=function(e){void 0===e&&(e=window);var t=e.Object;return Boolean(t.keys&&t.create&&t.getPrototypeOf&&t.getOwnPropertyNames&&t.isSealed&&t.isFrozen&&t.isExtensible&&t.getOwnPropertyDescriptor&&t.defineProperty&&t.defineProperties&&t.seal&&t.freeze&&t.preventExtensions)},t.hasES5StringMethods=function(e){void 0===e&&(e=window);var t=e.String;return Boolean(t.prototype&&t.prototype.trim)},t.isES5Supported=function(e){return void 0===e&&(e=window),Boolean(s.getHasObjectDefineProperty(e)&&t.hasObjectCreate(e)&&t.hasAtoB(e)&&t.hasES5ArrayMethods(e)&&t.hasES5FunctionMethods(e)&&t.hasES5ObjectMethods(e)&&t.hasES5StringMethods(e))};var a=function(e,t){void 0===t&&(t=window);var n,s,a=o.getTestDiv(t);try{for(var u=r(i.cssPrefixes),c=u.next();!c.done;c=u.next()){var d=c.value;if(a.style.cssText="display: "+d+e,a.style.length>0)return!0}}catch(e){n={error:e}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(n)throw n.error}}return!1};t.isFlexboxCurrentSupported=function(e){return void 0===e&&(e=window),a("flex",e)},t.isFlexbox2011Supported=function(e){return void 0===e&&(e=window),a("flexbox",e)},t.isFlexbox2009Supported=function(e){return void 0===e&&(e=window),a("box",e)}},function(e,t){"use strict";t.__esModule=!0;var n;t.getTestDiv=function(e){return void 0===e&&(e=window),n||(n=e.document.createElement("div")),n},"boolean"==typeof __test__&&__test__===!0&&(t.getTestDiv.__RESET_TEST_DIV_=function(){n=void 0})},function(e,t){"use strict";t.__esModule=!0,t.prefixes=["","webkit","moz","o","ms"],t.cssPrefixes=["","-webkit-","-ms-","-moz-","-o-"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(29);t.hasObjectDefineProperty=r.getHasObjectDefineProperty()},function(e,t){"use strict";var n=4294967295;e.exports=function(){return Math.floor(Math.random()*n)+1}},function(e,t,n){(function(t){"use strict";function r(e){this._win=e,this._banners=[],this._stateDesktop="desktop",this._stateTablet="tablet",this._statePhone="phone",this._initResizeEvents()}var o=n(46),i=n(35);r.prototype={constructor:r,addBanner:function(e,n,r){var o=this,i={adaptiveOptions:t(this._getDefaultBannerAdaptiveOptions(),r||{}),adInstance:e,isVisible:!1,state:null,states:n};this._banners.push(i),this._checkBannerState(i);var s=function(){return o.removeBanner(i.adInstance.getContainerId())};return s},removeBanner:function(e){for(var t=0;tr.tabletWidth?this._stateDesktop:n<=r.tabletWidth&&n>r.phoneWidth?this._stateTablet:this._statePhone,i!==e.state&&(e.state=i,this._toggleBannerState(e))},_initResizeEvents:function(){var e=this;i.addEvent(this._win,"resize",function(){return e._checkState()})},_toggleBannerState:function(e){for(var t=!1,n=0;n0&&(r.params[d.substr(0,l)]=decodeURIComponent(d.substr(l+1)))}return!(!a.length||!r.ownerId)&&r}var o=void 0;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=e.document;return function(){if(c(t)){var o=r.documentElement.clientWidth,s=r.documentElement.clientHeight,a=i.elementOffset(t),u=i.pageOffset(e);u.top+s>=a.top&&u.left+o>=a.left&&n()}}}function o(e,t,n,o){function i(){s.removeEvent(e,"scroll",l),s.removeEvent(e,"resize",l)}function c(){o&&i(),n()}var d=r(e,t,c),l=a.throttle(d,u);return s.addEvent(e,"scroll",l,{passive:!0}),s.addEvent(e,"resize",l,{passive:!0}),l(),i}var i=n(52),s=n(35),a=n(53),u=300,c=function(e){return Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)};e.exports=o},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return"string"==typeof t&&(e[p]=t),e[p]||""}function o(e,t){return e.querySelector(t)}function i(e){var t=e.document,n=t.baseURI;if("undefined"==typeof n){var r=o(t,"base");n=r?r.href:t.URL}return n}function s(e,t){for(var n=void 0,r=null;e&&1===e.nodeType;){if(n=e.getAttribute(t)){r=e;break}e=e.parentNode}return{element:r,value:n}}function a(e){if(e.currentScript)return e.currentScript;var t=e.getElementsByTagName("script");return t[t.length-1]}function u(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,o=n.defaultView||n.parentWindow;return{top:t.top+(o.pageYOffset||r.scrollTop)-(r.clientTop||0),left:t.left+(o.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}}function c(e){var t=e.document,n="undefined"!=typeof e.pageXOffset,r="CSS1Compat"===(t.compatMode||"");return{left:n?e.pageXOffset:r?t.documentElement.scrollLeft:t.body.scrollLeft,top:n?e.pageYOffset:r?t.documentElement.scrollTop:t.body.scrollTop}}function d(e){for(;e.firstChild;)e.removeChild(e.firstChild)}var l=n(36),f=l.IS_IE8,p=f?"innerText":"textContent",h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,n=e.event,r=n.pageX,o=n.pageY,i=n.clientX,s=n.clientY,a="undefined"==typeof r?i:r,c="undefined"==typeof o?s:o,d=u(t),l=d.left,f=d.top,p={x:a-l,y:c-f},h=p.x,v=p.y;return{width:t.clientWidth,height:t.clientHeight,x:h,y:v}};e.exports={text:r,getBaseURI:i,pageOffset:c,elementOffset:u,elementByTag:o,closestElementWithAttr:s,getCurrentScript:a,getCursorPositionOnElement:h,removeChildren:d}},function(e,t){"use strict";function n(e,t,n){var r=void 0,o=void 0,i=void 0;return function(){o=arguments,i=!0,n=n||null,r||function s(){i?(e.apply(n,o),i=!1,r=setTimeout(s,t)):r=null}()}}e.exports={throttle:n}},function(e,t,n){"use strict";var r=n(2),o=n(55),i=n(58),s=n(90),a=n(18),u=n(91),c=n(77),d=n(3),l=n(92),f=n(93),p=n(94),h=n(47),v=n(96),_=p({__constructor:function(e,t){this._isInitalized=!1,this._isHidden=!1,this._ad=null,this._win=e,this._bannerOptions=t,this._isFirstRender=!0,this._isBidRequested=!1,this.cbManager=new r.AdfoxProxyCallbacksManager,this._headerBidding=d.ns.headerBidding,this._useHB=Boolean(this._headerBidding),this.headerBiddingTimeoutId=null,this.bannerId=(0,c.generateHexString)(10)},getContainerId:function(){var e=this._bannerOptions;return e.containerId||e.element&&e.element.id},initialize:function(){var e=this;o.renderPerfomanceManager.logRenderLabel(this.bannerId,o.BlockRenderSteps.ProxyInitialization),this._useHB=this._useHB||this._isIdRegisteredInHB(this._bannerOptions.containerId);var t=this._useHB&&!this._headerBidding;this._isInitalized||this._isBidRequested||t?this._deferMethod(function(){e._headerBidding=d.ns.headerBidding,e.initialize()}):this._initAd()},destroyWithoutCallbackInvocation:function(){this.destroy(!1)},destroy:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t&&this.cbManager.callCallbacksOnceByName(r.CallbackNames.ON_DESTROY),this._isInitalized?this._destroyAd():this._deferMethod(function(){return e.destroy(t)})},reload:function(e){ var t=this;this._isInitalized&&!this._isHidden?(e&&e.bid&&(this._bannerOptions.bid=e.bid),this._destroyAd(),this._initAd()):this._deferMethod(function(){return t.reload()})},hide:function(){var e=this;this._isInitalized?(this._isHidden=!0,this._ad.hide()):this._deferMethod(function(){return e.hide()})},show:function(){var e=this;this._isInitalized?(this._isHidden=!1,this._ad.show()):this._deferMethod(function(){return e.show()})},_deferMethod:function(e){var t=(0,a.addAdfoxNamespace)(this._win);t.hbCallbacks=t.hbCallbacks||[];var n=this._headerBidding&&this._headerBidding.managerForAdfox&&this._headerBidding.managerForAdfox.isReady();!this._useHB||!this._isBidRequested&&n||t.hbCallbacks.push(e)},_initAd:function(){this._headerBidding?(o.renderPerfomanceManager.setBlockData(this.bannerId,{isHB:!0}),this._createBidAd()):(o.renderPerfomanceManager.setBlockData(this.bannerId,{isHB:!1}),this._createAd())},_createBidAd:function(){var e=this,t=!1;this.headerBiddingTimeoutId||(this.headerBiddingTimeoutId=setTimeout(function(){t=!0,e._handleHeaderBiddingTimeout()},this._getHeaderBiddingTimeout())),this._isBidRequested||(this._isFirstRender||(this._isBidRequested=!0,this._headerBidding.managerForAdfox.requestBidForContainer(this._bannerOptions.containerId)),this._getBids(function(n){t||(e._isBidRequested=!1,e._clearHeaderBiddingTimeout(),e._createAd(n))}))},_createAd:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._isFirstRender=!1,this._isInitalized=!0;var r=h(this._bannerOptions);if(o.renderPerfomanceManager.setBlockData(this.bannerId,{ownerId:this._bannerOptions.ownerId,params:this._bannerOptions.params}),n){var i;r.bid=r.bid||[],(i=r.bid).push.apply(i,t)}else r.bid=[];var s=r.onDestroy;r.onDestroy=function(){e.destroyWithoutCallbackInvocation(),s&&s()},r.bannerId=this.bannerId,this._ad=new v(this._win,r),this._ad.render()},_destroyAd:function(){this._clearHeaderBiddingTimeout(),this._ad&&(this._ad.show(),this._ad.destroy(),this._ad=null),this._isInitalized=!1,this._isHidden=!1},_getBids:function(e){return this._headerBidding.managerForAdfox.getBidsForAdfoxByContainerId(this._bannerOptions.containerId,e)},_isIdRegisteredInHB:function(e){var t=this._win.YaHeaderBiddingSettings&&this._win.YaHeaderBiddingSettings.adUnits||this._headerBidding&&this._headerBidding.managerForAdfox&&this._headerBidding.managerForAdfox.getAdunits();return(0,l.isString)(e)&&t&&(0,f.some)(t,function(t){var n=t.code;return n===e})},_getHeaderBiddingTimeout:function(){var e=void 0;try{e=2*d.ns.headerBidding.managerForAdfox.getRequestTimeout()}catch(e){}return e&&isFinite(e)||(e=s.DEFAULT_TIMEOUT),e=Math.max(e,s.DEFAULT_TIMEOUT),2*e},_clearHeaderBiddingTimeout:function(){this.headerBiddingTimeoutId&&(clearTimeout(this.headerBiddingTimeoutId),this.headerBiddingTimeoutId=null)},_handleHeaderBiddingTimeout:function(){(0,i.logError)(i.HeaderBiddingErrors.notLoaded),(0,u.consoleWarn)("Adfox HeaderBidding failed"),this._isBidRequested=!1,this._createAd([],!1)}});e.exports=_},function(e,t,n){"use strict";var r=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();t.__esModule=!0;var o,i,s,a,u=n(56),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(u.RenderPerfomanceManager);!function(e){e.ProxyInitialization="010",e.AdCreated="020",e.AdStartedRender="030",e.AdfoxRequestSent="040",e.AdfoxRequestLoaded="050",e.AdTypeChosen="060",e.BundleLoaded="070",e.BundleRendered="080",e.OldRendered="080",e.HBRendered="080"}(a=t.BlockRenderSteps||(t.BlockRenderSteps={})),t.renderPerfomanceManager=new c({initSteps:(o={},o[a.ProxyInitialization]=1,o[a.AdCreated]=1,o[a.AdStartedRender]=1,o[a.AdfoxRequestSent]=1,o),dataSteps:(i={},i[a.AdfoxRequestLoaded]=1,i),renderSteps:(s={},s[a.AdTypeChosen]=1,s[a.BundleLoaded]=1,s[a.BundleRendered]=1,s[a.OldRendered]=1,s[a.HBRendered]=1,s)})},function(e,t,n){(function(e){"use strict";var r=function(){return r=e||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};t.__esModule=!0;var i=n(61),s=n(62),a=n(67),u=n(69),c=n(71),d=n(77),l=n(78),f=n(81),p=n(17),h=n(82),v=n(57),_=n(83),g=n(14),m=n(85),y=n(86),b=n(87),w=n(88),S=n(63);t.SEPARATE_SIGN="_",t.CREATE_TAGS_FOR_STATS_DEFAULT=function(e){var n,o=e.eventType,i=e.eventName,s=e.value,a=e.values,u={};return p.forOwn(a,function(e,n){u[""+o+t.SEPARATE_SIGN+i+t.SEPARATE_SIGN+n]=e}),r((n={},n[""+o+t.SEPARATE_SIGN+i]=s,n),u)};var E=/^\w(\-|:|\s|\.|\w){1,20}$/,x=/^\w(\-|:|\s|\.|\w){0,70}$/,C=/^\w(\-|:|\s|\.|\w){1,70}$/,T=function(){function e(e){var t=this;this.rootFields={},this.labels={},this.event=function(e){var n=e.name,r=e.data,o=e.labels,i=e.probability;t.push({eventType:w.StatsEventType.event,eventName:n,data:r,additionalStatsLabels:o,probability:i})},this.error=function(e){var n=e.error,r=e.labels,o=e.probability,i=new s.CustomError(n);t.push({eventName:String(i.code),eventType:w.StatsEventType.error,data:i,additionalStatsLabels:r,probability:o})},this.value=function(e){var n=e.name,r=e.value,o=e.data,i=e.labels,s=e.probability;t.push({eventName:n,value:r,eventType:w.StatsEventType.value,data:o,additionalStatsLabels:i,probability:s})},this.values=function(e){var n=e.name,r=e.values,o=e.data,i=e.labels,s=e.probability;t.push({eventName:n,eventType:w.StatsEventType.values,data:o,additionalStatsLabels:i,probability:s,values:r})},this.warning=function(e){var n=e.name,r=e.message,o=e.probability;"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(r),t.push({eventName:n,eventType:w.StatsEventType.warning,data:{message:r},probability:o})},this.getParams=function(){return r({},t.params)},this.setRootFields=function(e){h.getObjectEntries(e).forEach(function(e){var n=o(e,2),r=n[0],i=n[1];void 0===i?delete t.rootFields[r]:t.rootFields[r]=i})},this.setLabels=function(e){h.getObjectEntries(e).forEach(function(e){var n=o(e,2),r=n[0],i=n[1];void 0===i?delete t.labels[r]:t.labels[r]=i})},this.eventToStats=function(e,n,r){t.push({eventType:w.StatsEventType.event,eventName:e,data:n,additionalStatsLabels:r})},this.errorToStats=function(e,n){var r=new s.CustomError(e);t.push({eventName:String(r.code),eventType:w.StatsEventType.error,data:r,additionalStatsLabels:n})},this.deprecated=function(e,n){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(n),t.push({eventName:e,eventType:w.StatsEventType.deprecated,data:{message:n}})},this.valueToStats=function(e,n,r,o){t.push({eventName:e,value:n,eventType:w.StatsEventType.value,data:r,additionalStatsLabels:o})},this.params=r({},e,{sid:e.sid||d.generateHexString(y.DEFAULT_SID_LENGTH)})}return e.prototype.push=function(e){var n,o=e.eventName,i=e.eventType,s=e.data,a=void 0===s?{}:s,u=e.additionalStatsLabels,c=e.value,d=void 0===c?1:c,l=e.probability,p=void 0===l?1:l,h=e.values,v=void 0===h?{}:h;if(_.portion(p)){var m=this.params,y=m.service,w=m.version,E={service:y,version:w,data:a,eventName:o,eventType:i,additionalStatsLabels:u,value:d,values:v};try{f.request({url:g.addParamsToUrl(b.PCODE_LOGS_URL,r((n={},n[y]=w,n[i]=o,n),u)),data:S(this.createFullStatsObject(E)),method:"POST",onBeforeSend:this.params.onBeforeSend})}catch(e){t.stats.errorToStats(e,{service:y}),"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Cannot send stats data ["+JSON.stringify({service:y,version:w,eventType:i,eventName:o})+"]")}}},e.prototype.createFullStatsObject=function(e){var n=e.service,d=e.version,f=e.eventName,p=e.eventType,_=e.data,g=e.additionalStatsLabels,m=e.value,y=this.params.createTagsFunction||t.CREATE_TAGS_FOR_STATS_DEFAULT,b=y(e),w=r({},this.labels,g,{version:this.params.version}),S={service:n,tags:b,labels:w};v.getObjectKeys(b).forEach(function(e){if(!C.test(e))throw new s.CustomError({code:i.CommonError.STATS_SENSOR_NAME_ERROR,details:{service:n,sensorName:e}})}),h.getObjectEntries(w).forEach(function(e){var t=o(e,2),r=t[0],a=t[1];if(!E.test(r))throw new s.CustomError({code:i.CommonError.STATS_LABEL_KEY_ERROR,details:{service:n,labelKey:r}});if(!x.test(a))throw new s.CustomError({code:i.CommonError.STATS_LABEL_VALUE_ERROR,details:{service:n,labelValue:a}})});var T=u.getTopLocationData(document),O=T.location,M=T.referrer;return r({},this.rootFields,S,{timestamp:Date.now(),eventType:p,eventName:f,data:_,sid:this.params.sid,version:d,location:c.getWindowLocation(window),topLocation:O,referrer:window.document.referrer,topReferrer:M,userAgent:window.navigator.userAgent,currentScriptSrc:a.CURRENT_SCRIPT_SRC,secureIFrame:l.isInSecureIFrame,value:m})},e}();t.Stats=T,t.stats=new T({service:m.COMMON_LOCAL_STATS_SERVICE_NAME,version:"0",sid:d.generateHexString(y.DEFAULT_SID_LENGTH)})}).call(t,n(15))},function(e,t){"use strict";t.__esModule=!0;var n;!function(e){e.LOAD_SCRIPT_ERROR="LOAD_SCRIPT_ERROR",e.STATS_SENSOR_NAME_ERROR="STATS_SENSOR_NAME_ERROR",e.STATS_LABEL_KEY_ERROR="STATS_LABEL_KEY_ERROR",e.STATS_LABEL_VALUE_ERROR="STATS_LABEL_VALUE_ERROR"}(n=t.CommonError||(t.CommonError={}))},function(e,t,n){"use strict";function r(e){var t=e.url,n=e.line,r=e.col,o=e.fileName,i=e.columnNumber,s=e.lineNumber;return(t||o||"?")+":"+(n||s||"?")+":"+(r||i||"?")}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();t.__esModule=!0;var s=n(63),a=n(64),u=n(65),c=n(66),d=function(e){function t(n,i){void 0===i&&(i={});var d=this,l="object"===("undefined"==typeof n?"undefined":o(n))?n:{message:String(n||u.DEFAULT_ERROR.message)};d=e.call(this)||this,c(d,t.prototype),d.message=i.message||l.message||u.DEFAULT_ERROR.message,d.code=i.code||l.code||l.id||u.DEFAULT_ERROR.code,d.isFatal=Boolean(a.getFirstDefined([i.isFatal,l.isFatal,u.DEFAULT_ERROR.isFatal])),d.details=i.details||l.details||u.DEFAULT_ERROR.details;var f=i.stack||l.stack||r(l);return f!==u.DEFAULT_ERROR.stack?d.stack=f:d.stack||(d.stack=u.DEFAULT_ERROR.stack),d.toString=function(){return s(d.toJSON())},d.toJSON=function(){return{message:d.message,code:d.code,isFatal:d.isFatal,details:d.details,stack:f}},d}return i(t,e),t}(Error);t.CustomError=d},function(e,t){function n(e,t,n,o){return JSON.stringify(e,r(t,o),n)}function r(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(o,i){if(n.length>0){var s=n.indexOf(this);~s?n.splice(s+1):n.push(this),~s?r.splice(s,1/0,o):r.push(o),~n.indexOf(i)&&(i=t.call(this,o,i))}else n.push(i);return null==e?i:e.call(this,o,i)}}t=e.exports=n,t.getSerialize=r},function(e,t,n){"use strict";function r(e){var t=o(i.filter(e,function(e){return void 0!==e}),1),n=t[0];return n}var o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};t.__esModule=!0;var i=n(20);t.getFirstDefined=r},function(e,t){"use strict";t.__esModule=!0,t.DEFAULT_ERROR={message:"DEFAULT_ERROR_MESSAGE",code:0,details:"",stack:"?:?:?",isFatal:!0}},function(e,t){function n(e,t){return e.__proto__=t,e}function r(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e}e.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?n:r)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(68),o=r.getCurrentScript();t.CURRENT_SCRIPT_SRC=o?o.src:""},function(e,t){"use strict";function n(e,t){void 0===e&&(e=document);var n=e.currentScript;if(n)return n;for(var r=e.getElementsByTagName("script"),o=[],i=0;i-1}},function(e,t){"use strict";function n(e){for(var t="",n=0;n0&&isFinite(R)&&(B=window.setTimeout(function(){L(new Error("Request timeout, "+n))},R));var L=function(t){if(I.onerror=null,I.onreadystatechange=null,void 0!==B){clearTimeout(B);try{I.abort()}catch(e){}}M>0?(b(t),r(o({},e,{retries:M-1}))):_(t,I)};I.onerror=L,I.onreadystatechange=function(){if(4===I.readyState){var e=I.status;S(e)?(clearTimeout(B),m(I)):L(new Error("Invalid request status "+e+", "+n))}},h(I,e);try{I.send(d)}catch(e){L(e)}}var o=function(){return o=e||function(e){for(var t,n=1,r=arguments.length;ni,a=s?t:n;return"function"==typeof a&&a(),s}t.__esModule=!0;var o=n(84);t.portion=r},function(e,t){"use strict";t.__esModule=!0,t.RANDOM=Math.random()},function(e,t){"use strict";t.__esModule=!0,t.COMMON_LOCAL_STATS_SERVICE_NAME="CommonPcode"},function(e,t){"use strict";t.__esModule=!0,t.DEFAULT_SID_LENGTH=64},function(e,t){"use strict";t.__esModule=!0,t.PCODE_LOGS_URL="https://an.yandex.ru/jstracer"},function(e,t){"use strict";t.__esModule=!0;var n;!function(e){e.event="event",e.error="error",e.deprecated="deprecated",e.warning="warning",e.value="value",e.values="values"}(n=t.StatsEventType||(t.StatsEventType={}))},function(e,t){"use strict";t.__esModule=!0,t.EVENT_RENDER_PERFOMANCE="block_render",t.EVENT_NETWORK_PERFOMANCE="performance"},function(e,t){"use strict";t.__esModule=!0,t.DEFAULT_TIMEOUT=300},function(e,t,n){"use strict";t.__esModule=!0;var r=!1;t.consoleLog=function(e,t){return void 0===t&&(t=""),r&&console.log("MESSAGE: "+e,t)},t.consoleWarn=function(e,t){return void 0===t&&(t=""),r&&console.warn("WARNING: "+e,t)}},function(e,t){"use strict";function n(e){return"string"==typeof e}t.__esModule=!0,t.isString=n},function(e,t){"use strict";t.__esModule=!0,t.some=function(e,t){for(var n=0;n-1)?t[r]=o:t[r]=function(n,r){var o=e[n]?e[n]:"__constructor"===n?t.__self.__parent:m,i=function(){var e=this.__base;this.__base=i.__base;var t=r.apply(this,arguments);return this.__base=e,t};return i.__base=o,i}(r,o))}function a(e,t){for(var n,r=1;n=e[r++];)t?g(n)?u.self(t,n.prototype,n):u.self(t,n):t=g(n)?u(e[0],n.prototype,n):u(e[0],n);return t||e[0]}function u(){var e=arguments,t=_(e[0]),n=t||g(e[0]),r=n?t?a(e[0]):e[0]:d,o=e[n?1:0]||{},i=e[n?2:1],u=o.__constructor||n&&r.prototype&&r.prototype.__constructor?function(){return this.__constructor.apply(this,arguments)}:n?function(){return r.apply(this,arguments)}:function(){};if(!n)return u.prototype=o,u.prototype.__self=u.prototype.constructor=u,h(u,i);h(u,r),u.__parent=r;var c=r.prototype,l=u.prototype=f(c);return l.__self=l.constructor=u,o&&s(c,l,o),i&&s(r,u,i),u}var c=function(){return"_"}.toString().indexOf("_")>-1,d=function(){},l=Object.prototype.hasOwnProperty,f=Object.create||function(e){var t=function(){};return t.prototype=e,new t},p=Object.keys||function(e){var t=[];for(var n in e)l.call(e,n)&&t.push(n);return t},h=function(e,t){for(var n in t)l.call(t,n)&&(e[n]=t[n]);return e},v=Object.prototype.toString,_=Array.isArray||function(e){return"[object Array]"===v.call(e)},g=function(e){return"[object Function]"===v.call(e)},m=function(){},y=!0,b={toString:""};for(var w in b)b.hasOwnProperty(w)&&(y=!1);var S=y?["toString","valueOf"]:null;u.self=function(){var e=arguments,t=_(e[0]),n=t?a(e[0],e[0][0]):e[0],r=e[1],o=e[2],i=n.prototype;return r&&s(i,i,r),o&&s(n,n,o),n};var E=!0;e.exports=u,E=!1,"object"==typeof modules&&"function"==typeof modules.define&&(modules.define("inherit",function(e){e(u)}),E=!1),r=function(e,t,n){n.exports=u}.call(t,n,t,e),!(void 0!==r&&(e.exports=r)),E=!1,E&&(o.inherit=u)}(this)},function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n;this._isDestroyed=!1,this._isTurbo=(0,T.isAdfoxPageTurbo)(window),this._useXhr=t.useXhr,this._win=e,this._doc=e.document,this._loc=e.location,this._params=t.params,this._clickMacro=t.clickMacro,this._domain=t.customDomain||te,this._ownerId=t.ownerId,this._data=t.data,this._containerId=t.containerId,this._pr=R.ns.pr,this._pr1=U(),this._dt=new Date,this._bid=t.bid,this._useProtectMode=!(0,O.isInSafeframe)(this._win)&&(t.useProtectMode||this._isTurbo),this._container=t.container,this._cspNonce=t.cspNonce,this._bannerId=t.bannerId,this._startRenderTime=t.startRenderTime,this._lastBannerName;var r=this._useXhr&&R.ns&&R.ns.xhrExperiment&&R.ns.xhrExperiment.isXhr,o=!this._useXhr&&R.ns&&R.ns.xhrExperiment&&R.ns.xhrExperiment.isControl,i=o||r;this._xhrExperimentLabel=o?"prepareCode":r?"xhr":"default";var s=(0,S.getDirectLoadingExp)();this.testtag=new a.AdfoxTesttag((n={},n[a.Bits.isXhr]=Number(r),n[a.Bits.isPrepareCode]=Number(!this._useXhr),n[a.Bits.isXhrExperiment]=Number(i),n[a.Bits.isForcedDirectLoadingExperiment]=Number(s.isExp),n[a.Bits.isForcedDirectLoadingOn]=Number(s.isLoadingTurnedOn),n)),this._callbacks={onDestroy:t.onDestroy,onError:t.onError,onLoad:t.onLoad,onRender:t.onRender,onStub:t.onStub},u.renderPerfomanceManager.logRenderLabel(this._bannerId,u.BlockRenderSteps.AdCreated)}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=n(97),a=n(98),u=n(55),c=n(14),d=n(105),l=n(114),f=n(116),p=n(161),h=r(p),v=n(171),_=n(174),g=r(_),m=n(186),y=n(187),b=r(y),w=n(33),S=n(221),E=n(222),x=n(145),C=n(3),T=n(10),O=n(175),M=n(227),A=n(48),R=n(18),k=n(13),I=n(93),B=n(229),L=n(230),P=n(36),N=P.isAMP,D=n(231),F=D.encode,j=D.decode,U=n(44),V=n(232),H=n(39),q=H.loaderVersion,W=H.bundleVersion,z=n(233),X=n(226)(R.ns),Y=null,G=null,$=null,K=null,J="xhr",Q="jsonp",Z="iframe",ee=2048,te="ads.adfox.ru",ne=204,re=[/avito/],oe=15e3,ie=1e3,se=k.parsedLocationQueryString.mcodever,ae=0,ue=function(){return ae++},ce=function(){return(new Date).getTime()},de=function(){return se||W};o.prototype={constructor:o,render:function(){u.renderPerfomanceManager.logRenderLabel(this._bannerId,u.BlockRenderSteps.AdStartedRender),this._data?(u.renderPerfomanceManager.stopLoggingTime(this._bannerId),this._processResponseData(this._data),this._data=null):this._initRequest(),u.renderPerfomanceManager.logRenderLabel(this._bannerId,u.BlockRenderSteps.AdfoxRequestSent)},destroy:function(){this._isDestroyed||(this._isDestroyed=!0,this._transport&&this._transport.destroy(),this._destroyBundle(),this._clean(),this._triggerCallback("onDestroy"))},hide:function(){this._bundle&&this._bundle.hide()},show:function(){this._bundle&&this._bundle.show()},_initRequest:function(e){e=e||this._getPrepareUrl(),this._useXhr?this._initXHRequest(e):(u.renderPerfomanceManager.stopLoggingTime(this._bannerId),this._initOldBanner({pr1:this._pr1,prepareCodeUrl:e}))},_initXHRequest:function(e){var t=this;this._transport=new b.default(this._win,{},{error:function(e){t._cleanAfterGoogle(),t._logError({name:s.AdfoxErrors.xhr,labels:{requestType:t._xhrExperimentLabel}}),t._logErrorToMonitoring("xhr"),t._triggerCallback("onError",e)},success:function(e){u.renderPerfomanceManager.logRenderLabel(t._bannerId,u.BlockRenderSteps.AdfoxRequestLoaded),t._logEvent({name:s.AdfoxEvents.requestParsed,labels:{requestType:t._xhrExperimentLabel}}),t._transport=null,t._logTransportLoadingToMonitoring(J),t._processResponseData(e)}}),this._transport.sendRequestWithUrl(e),this._logEvent(s.AdfoxEvents.requested,{requestType:this._xhrExperimentLabel}),this._logRequestToMonitoring(J)},_initJSONPRequest:function(e){var t=this,n=Y(),r=this._win.Ya,o=!1,a=null,l=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t._cleanAfterGoogle(),r[n]&&(r[n]=G),t._logError(s.AdfoxErrors.jsonp,{requestType:Q}),t._logErrorToMonitoring(Q),t._triggerCallback("onError",{type:"JSONPRequest",reason:e,exception:o})},f=setTimeout(function(){return l("Script execution timeout")},oe);r[n]=function(e){if(o=!0,t._win.clearTimeout(f),"string"==typeof e)try{e=JSON.parse(e)}catch(e){return void l("Parse error",e)}else if("object"!==("undefined"==typeof e?"undefined":i(e)))return void l("Incorrect data type");a&&K(a),u.renderPerfomanceManager.logRenderLabel(t._bannerId,u.BlockRenderSteps.AdfoxRequestLoaded),t._logEvent(s.AdfoxEvents.requestParsed,{requestType:Q}),t._logTransportLoadingToMonitoring(Q),t._processResponseData(e)},(0,d.isEncoded)(e)&&(e=(0,d.decode)(e)),e=(0,c.addParamToUrl)(e,"callback","Ya["+n+"]"),e=(0,d.encode)(e),a=document.createElement("script"),a.charset="utf-8",a.src=e,a.onerror=function(){return l("Script loading error")},a.onload=function(){o||(t._win.clearTimeout(f),f=setTimeout(function(){return l("Script loading timeout")},ie))},$(this._win).appendChild(a),this._logEvent(s.AdfoxEvents.requested,{requestType:Q}),this._logRequestToMonitoring(Q)},_initOldBanner:function(e){var t=this,n=void 0===e.prepareCodeUrl,r="banner.old."+(n?"js":"transport");this._cleanAfterGoogle(),this._bundleStartTime=ce(),this._oldBundleStartTime=ce(),this._bundle=new h.default(this._win,e,{onRender:function(){n&&(u.renderPerfomanceManager.logRenderLabel(t._bannerId,u.BlockRenderSteps.OldRendered),(0,f.sendRenderData)(t._bannerId)),t._logEvent({name:s.AdfoxEvents.bundleRendered,labels:{bundleName:r,requestType:t._xhrExperimentLabel}}),t._logRenderToMonitoring("banner.old"),t._triggerCallback("onRender")},onError:function(e){t._logError({name:s.AdfoxErrors.unknown,labels:{bundleName:r,requestType:t._xhrExperimentLabel}}),t._logErrorToMonitoring("banner.old"),t._triggerCallback("onError",e)},onLoad:function(){t._logEvent({name:s.AdfoxEvents.bundleLoaded,labels:{bundleName:r,requestType:t._xhrExperimentLabel}}),t._logTransportLoadingToMonitoring(Z)},onLoadAnotherBundle:function(e){t._logEvent({name:s.AdfoxEvents.requestSucceeded,labels:{bundleName:r,requestType:t._xhrExperimentLabel}}),t._destroyBundle(),t._processResponseData(e)}}),this._bundle.renderTo(this._container),this._logEvent(s.AdfoxEvents.requested,{requestType:this._xhrExperimentLabel}),this._logRequestToMonitoring(Z)},_resetBanner:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return t._initRequest(e.prepareCodeUrl)};this._destroyBundle(),e.options&&(this._pr1=U(),this._ownerId=e.options.ownerId||this._ownerId,this._params=e.options.params||this._params,this._domain=e.options.customDomain||te),n()},_destroyBundle:function(){this._bundle&&(this._bundle.destroy(),this._bundle=null)},_getAdContainer:function(e){return this._adContainer||(this._adContainer=this._doc.createElement("div"),this._adContainer.id="AdFox_banner_"+e),this._adContainer},_getDefaultParams:function(){var e=this,t=this._win.context,n=N?t.sourceUrl:this._doc.referrer,r=N?t.sourceUrl:this._loc,o=new v.LayoutConfig(this._container);o.set("req_no",ue());var i=(0,I.some)(re,function(t){return t.test(e._win.location.hostname)}),s={dl:r,date:(0,B.toISOString)(this._dt),pd:this._dt.getDate(),pdh:this._win.screen.height,pdw:this._win.screen.width,pr1:this._pr1,pr:this._pr,prr:n,pv:this._dt.getHours(),pw:this._dt.getDay(),ylv:"0."+q,ybv:"0."+de(),extid_loader:F((0,w.getCookie)(this._doc,"_ym_uid")||""),extid_tag_loader:this._win.location.hostname,ytt:this.testtag.toString(),"is-turbo":Number(this._isTurbo),"skip-token":V(),"ad-session-id":(0,x.getSessionId)(),"layout-config":String(o),"enable-flat-highlight":1};return i&&(s["ss-skip-token-length"]=20,s["allow-repeat-ads"]=0),s},_addGrab:function(e){return(0,c.addParamToUrl)(e,"grab",z(ee-e.length))},_addBidsToUrl:function(e){var t=(0,L.tryStringify)(this._bid)||"";return(0,c.addParamToUrl)(e,"bids",F(t))},_getPrepareUrl:function(){var e=void 0;e=this._useXhr?"getBulk/v2":"prepareCode";var n="/"+this._ownerId+"/"+e,r="http:"===this._loc.protocol?"http:":"https:",o=t(this._getDefaultParams(),this._params),i=r+"//"+this._domain+n;if(o.pk)try{o.pk=decodeURIComponent(o.pk)}catch(e){}return this._bid&&(i=this._addBidsToUrl(i)),i=(0,c.addParamsToUrl)(i,o)+"&utf8=✓",i=this._addGrab(i)},_processResponseData:function(e){(0,f.sendNetworkInfo)(),e.data?this._parseDataInResponse(e.data):e.errors?this._parseErrorsInResponse(e.errors):this._onStub(); },_removeAdContainer:function(){this._adContainer.parentNode.removeChild(this._adContainer),this._adContainer=null},_parseDataInResponse:function(e){if(e.length)for(var t=0;t").join("<\\/script>")},_loadOldBanner:function(e,t,n){this._useProtectMode?this._initSandboxLoader(e):this._initOldBanner({pr1:n||this._pr1,prepareCodeData:this._decodeOldBannerContent(t)})},_initSandboxLoader:function(e){var n=this;this._safeContainer=new g.default(this._win,t({},e,{cspNonce:this._cspNonce,isXhr:this._useXhr}),{onError:function(){return n._callOnError()},onRender:function(){return n._callOnRender()},onDestroy:function(){return n.destroy()},onStub:function(){return n._onStub()}}),this._safeContainer.renderTo(this._container)},_callOnRender:function(){this._bundle&&this._bundle.callOnRender?this._bundle.callOnRender():this._triggerCallback("onRender")},_callOnError:function(){this._bundle&&this._bundle.callOnError?this._bundle.callOnError():this._triggerCallback("onError",{message:"Custom error",type:"adfoxBackend"})},_runBundle:function(e,n){var r=this,o=this._getScriptSrcFromBundleName(e);this._logEvent({name:s.AdfoxEvents.bundleStarted,labels:{bundleName:e}}),X(o,function(o){u.renderPerfomanceManager.logRenderLabel(r._bannerId,u.BlockRenderSteps.BundleLoaded),(0,f.sendNetworkInfo)(),r._bundleStartTime=ce(),r._logEvent({name:s.AdfoxEvents.bundleLoaded,labels:{bundleName:e}}),r._bundle=new o(r._win,n,{onRender:function(){u.renderPerfomanceManager.logRenderLabel(r._bannerId,u.BlockRenderSteps.BundleRendered),r._logEvent({name:s.AdfoxEvents.bundleRendered,labels:{bundleName:e}}),(0,f.sendRenderData)(r._bannerId),r._trackEvent("onRender",e)},onError:function(t){r._logError({name:s.AdfoxErrors.unknown,labels:{bundleName:e}}),r._trackEvent("onError",e,t)},onReset:function(t){(0,f.sendNetworkInfo)(),r._logEvent({name:s.AdfoxEvents.bundleReset,labels:{bundleName:e}}),r._trackEvent("onReset",e),r._resetBanner(t)},onDestroy:function(){r._logEvent({name:s.AdfoxEvents.bundleDestroyed,labels:{bundleName:e}}),r.destroy()},onLogEvent:function(n){var o=n.name,i=n.labels,s=void 0===i?{}:i,a=n.data,u=n.probability;return r._logEvent({name:o,labels:t({},s,{bundleName:e}),data:a,probability:u})},onLogError:function(n){var o=n.name,i=n.labels,s=void 0===i?{}:i,a=n.probability;return r._logError({name:o,labels:t({},s,{bundleName:e}),probability:a})}}),r._bundle.renderTo(r._container)})},_getScriptSrcFromBundleName:function(e){return(0,E.getScriptSrcFromBundleName)(e,de())},_triggerCallback:function(e){if(this._callbacks[e]){var t=Array.prototype.slice.call(arguments,1);return this._callbacks[e].apply(this._win,t)}},_processBundleParams:function(e,t){return this._clickMacro&&(e.clickMacro=this._clickMacro),this._useProtectMode&&(e.useProtectMode=!0),this._cspNonce&&(e.cspNonce=this._cspNonce),e.useXhr=this._useXhr,e.ownerId=this._ownerId,e.startRenderTime=this._startRenderTime,e},_trackEvent:function(e,t,n){(0,l.pushToAdfoxLogs)(e,{bundleName:t,renderTime:ce()-this._bundleStartTime,ownerId:this._ownerId,message:n&&n.message||""}),"onRender"===e&&this._logRenderToMonitoring(t),"onError"===e&&this._logErrorToMonitoring(t),this._triggerCallback(e,n)},_logRenderToMonitoring:function(e){var t,n=ce()-this._bundleStartTime,r=(0,l.getTagNameFromTime)(n);(0,l.pushToAdfoxMonitor)((t={render_count:1},t["render_"+r]=1,t["render_bundleName_"+e]=1,t["render_bundleTime_"+e+"_"+r]=1,t))},_logErrorToMonitoring:function(e){var t;(0,l.pushToAdfoxMonitor)((t={error_count:1},t["error_bundle_"+e]=1,t))},_logTransportLoadingToMonitoring:function(e){var t,n=ce()-this._oldBundleStartTime;(0,l.pushToAdfoxMonitor)((t={load_count:1},t["load_"+e+"_count"]=1,t["load_transport_count_"+e]=1,t["load_"+e+"_"+(0,l.getTagNameFromTime)(n)]=1,t))},_logRequestToMonitoring:function(e){var t;(0,l.pushToAdfoxMonitor)((t={request_count:1},t["request_"+e+"_count"]=1,t))},_logEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.name,r=e.labels,o=e.value,i=e.data,a=void 0===i?{}:i,u=e.probability;a=t({ownerId:this._ownerId,params:this._params},a),r=this._prepareLabels(r),void 0===o?(0,s.logEvent)({name:n,labels:r,data:a,probability:u}):(0,s.logValue)({name:n,labels:r,data:a,value:o,probability:u})},_logError:function(e){var t=e.name,n=e.labels,r=e.probability;(0,s.logError)({message:t,labels:this._prepareLabels(n),probability:r})},_prepareLabels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t({},e,{bundleVersion:String(de())})},_clean:function(){this._container.innerHTML=""},_isBundleGoogle:function(e){return"banner.adx"===e||"banner.dfp"===e},_cleanAfterGoogle:function(){this._isBundleGoogle(this._lastBannerName)&&this._clean()},_onStub:function(){this._cleanAfterGoogle(),this._triggerCallback("onStub")}},e.exports=(0,M.manageLastBanner)(o)}).call(t,n(15))},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(59);!function(e){e.requested="requested",e.requestSucceeded="requestSucceeded",e.requestParsed="requestParsed",e.bundleStarted="bundleStarted",e.bundleLoaded="bundleLoaded",e.bundleRendered="bundleRendered",e.bundleReset="bundleReset",e.bundleDestroyed="bundleDestroyed"}(r=t.AdfoxEvents||(t.AdfoxEvents={}));var i;!function(e){e.unknown="unknown",e.xhr="xhr",e.jsonp="jsonp"}(i=t.AdfoxErrors||(t.AdfoxErrors={}));var s=o.createLogger({service:"adfox",probability:.01});t.logEvent=s.logEvent,t.logError=s.logError,t.logValue=s.logValue,t.logValues=s.logValues,t.errorToStats=s.errorToStats},function(e,t,n){"use strict";var r=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();t.__esModule=!0;var o,i=n(99),s=n(104),a=function(){return window.top!==window.self};!function(e){e.marker="marker",e.isXhr="isXhr",e.isIframe="isIframe",e.plugin="plugin",e.isPrepareCode="isPrepareCode",e.isXhrExperiment="isXhrExperiment",e.isForcedDirectLoadingExperiment="isForcedDirectLoadingExperiment",e.isForcedDirectLoadingOn="isForcedDirectLoadingOn"}(o=t.Bits||(t.Bits={}));var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getTemplate=function(){return[[4,o.marker],[1,o.isXhr],[1,o.isPrepareCode],[5,null],[1,o.isXhrExperiment],[4,null],[1,o.isIframe],[2,null],[1,o.isForcedDirectLoadingExperiment],[1,o.isForcedDirectLoadingOn],[28,null],[1,o.plugin]]},t.prototype.defaults=function(){var e;return e={},e[o.marker]=s.PRODUCT_MARKERS.ADFOX,e[o.isIframe]=Number(a()),e[o.plugin]=Number(!1),e},t}(i.AbstractTesttag);t.AdfoxTesttag=u},function(e,t,n){(function(e){"use strict";function r(e,t){return a.map(e,function(e){var n=i(e,2),r=n[0],o=n[1];return[r,o&&t[o]||null]})}var o=function(){return o=e||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};t.__esModule=!0;var s=n(8),a=n(48),u=n(100),c=n(102),d=function(){function e(e){void 0===e&&(e={}),this.props={},this.setProps(o({},this.defaults(),e))}return e.sliceBits=function(e,t,n){return u.sliceBits(e,t,n)},e.prototype.defaults=function(){return{}},e.prototype.toString=function(){return this.serialize().toString()},e.prototype.setProps=function(e){var t=this;return c(e)&&s.forEach(this.getTemplate(),function(n){var r=i(n,2),o=r[1];o&&e.hasOwnProperty(o)&&(t.props[o]=e[o])},this),this},e.prototype.getProps=function(){return o({},this.props)},e.prototype.clone=function(){var e=this.constructor;return new e(this.props)},e.prototype.serialize=function(){var e=r(this.getTemplate(),this.props);return u.joinBits(e)},e.prototype.slice=function(t,n){return e.sliceBits(this.serialize(),t,n)},e}();t.AbstractTesttag=d}).call(t,n(15))},function(e,t,n){"use strict";function r(e){var t,n,r=[];try{for(var i=c(e),s=i.next();!s.done;s=i.next()){var u=d(s.value,2),l=u[0],f=u[1],p=o(f,l);r.push(p)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return a(r.reverse().join(""))}function o(e,t){var n=i(e,t).toString(2);return s(n,t)}function i(e,t){return Number(e)&Math.pow(2,t)-1}function s(e,t){return l.padLeft(e,t,"0")}function a(e){if(e.length>53)throw new Error("bitUtils.toDecimal: больше 53 бит не поддерживается из-за ограниченной точности, но передана строка длиной "+e.length+" бит.");return parseInt(e,2)}function u(e,t,n){var r=t+n,o=s(e.toString(2),r),i=o.substr(-r,n);return parseInt(i,2)}var c=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}},d=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};t.__esModule=!0;var l=n(101);t.joinBits=r,t.sliceBits=u},function(e,t){"use strict";function n(e,t,n){void 0===n&&(n=" ");var r=t-e.length;if(r>0){for(var o=n;o.lengthr?o.substr(0,r):o;return i+e}return e}t.__esModule=!0,t.padLeft=n},function(e,t,n){"use strict";e.exports=n(103).isObject},function(e,t){"use strict";function n(e){var t="undefined"==typeof e?"undefined":r(e);return Boolean(e)&&("object"===t||"function"===t)}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0,t.isObject=n},function(e,t){"use strict";t.__esModule=!0,t.PRODUCT_MARKERS={DIRECT:1,RTB:2,PERFORMANCE:3,DISTRIBUTION:4,ADFOX:5,LONG_SESSION:15}},function(e,t,n){"use strict";function r(e){if(v.serverEncodeEnabled(p.config.fn))return p.config.fn.decodeUrl(e,f.base64);var t,n=e.slice(-1);return t=g.trailingSlash&&"/"===n?e.slice(0,-1).split(g.seed)[1]:e.split(g.seed)[1],t=f.base64.addEquals(t.replace(/\//g,"")),h.decode(t)}function o(e){return v.serverEncodeEnabled(p.config.fn)?p.config.fn.isEncodedUrl(e):(""!==g.urlPrefix||""!==g.seed)&&(0===e.indexOf(g.urlPrefix)&&e.indexOf(g.seed)!==-1)}function i(e){if(v.serverEncodeEnabled(p.config.fn))return p.config.fn.encodeUrl(e,f.base64);if(_[e])return _[e];var t=a(e),n=t.replace(/\//g,"").length,r=g.urlPrefix+c(n,9)+g.seed,o=s(e),i=r+t+o;return _[e]=i,i}function s(e){return g.trailingSlash?"/":""}function a(e){var t=h.encode(e);return u(t)}function u(e){var t=7,n=e.match(/.{1,7}/g);if(null===n)return e;for(var r=0;r>2,a=(3&r)<<4|o>>4,u=(15&o)<<2|i>>6,c=63&i;isNaN(o)?u=c=64:isNaN(i)&&(c=64),t=t+d.charAt(s)+d.charAt(a)+d.charAt(u)+d.charAt(c)}return t}function o(e,t){e=e.replace(/\r\n/g,"\n");for(var n="",r=0;r127&&o<2048?(i=String.fromCharCode(o>>6|192),i+=String.fromCharCode(63&o|128)):(i=String.fromCharCode(o>>12|224),i+=String.fromCharCode(o>>6&63|128),i+=String.fromCharCode(63&o|128)),n.length+i.length>t)break;n+=i}return n}function i(e){var t=s(e);return a(t)}function s(e){var t=[],n=0;for(e=e.replace(/[^A-Za-z0-9\-_=]/g,"");n>4,u=(15&o)<<4|i>>2,c=(3&i)<<6|s;t.push(String.fromCharCode(a)),64!==i&&t.push(String.fromCharCode(u)),64!==s&&t.push(String.fromCharCode(c))}return t.join("")}function a(e){for(var t=[],n=0;n191&&r<224){var o=e.charCodeAt(n+1);t.push(String.fromCharCode((31&r)<<6|63&o)),n+=2}else{var o=e.charCodeAt(n+1),i=e.charCodeAt(n+2);t.push(String.fromCharCode((15&r)<<12|(63&o)<<6|63&i)),n+=3}}return t.join("")}function u(e){return e.replace(/=+$/,"")}function c(e){for(;e.length%4!==0;)e+="=";return e}t.__esModule=!0;var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";t.encode=n,t.encodeUInt8String=r,t.decode=i,t.decodeUInt8String=s,t.utf8Decode=a,t.cropEquals=u,t.addEquals=c},function(e,t,n){"use strict";function r(){return"string"==typeof i}t.__esModule=!0;var o=n(111),i="__ADB_CONFIG__",s={pid:"",encode:{key:"",seed:"",urlPrefix:"",trailingSlash:!1},replaceClasses:[],detect:{links:[],custom:[],iframes:[]},cookieDomain:{type:o.AdblockCookieDomainType.list},cookieMatching:{publisherTag:"",publisherKey:"",types:[o.AdblockCookieMatchingType.scrumble,o.AdblockCookieMatchingType.image,o.AdblockCookieMatchingType.refresh],type:o.AdblockCookieMatchingType.all,redirectUrl:["//an.yand","ex.ru/map","uid/"].join(""),imageUrl:"/static/img/logo.gif/",cryptedUidUrl:"https://http-check-headers.yandex.ru",cryptedUidCookie:"crookie",cryptedUidTTL:336},cookieTTL:336,extuidCookies:[],debug:!1,force:!1,disableShadow:!1,treeProtection:{enabled:!1}};t.config=r()?s:i},function(e,t){"use strict";t.__esModule=!0;var n;!function(e){e[e.current=0]="current",e[e.children=1]="children",e[e.list=2]="list"}(n=t.AdblockCookieDomainType||(t.AdblockCookieDomainType={}));var r;!function(e){e[e.doNotMatch=0]="doNotMatch",e[e.image=1]="image",e[e.refresh=2]="refresh",e[e.all=3]="all",e[e.scrumble=4]="scrumble"}(r=t.AdblockCookieMatchingType||(t.AdblockCookieMatchingType={}))},function(e,t,n){"use strict";function r(){if(null===c){var e=a.addEquals(u.config.encode.key);c=a.decodeUInt8String(e)}return c}function o(e,t){for(var n=[],o=0;o10000"}function o(e,t){u&&a.pushToLogs({AdFox:{event:e,data:t,versionLoader:s.loaderVersion,versionBundle:s.bundleVersion,timestamp:Number(new Date),referrer:document.referrer,location:window.location.toString(),userAgent:navigator.userAgent}})}function i(e){u&&a.pushToLogs({service:"adfox",timestamp:Math.round(Number(new Date)/1e3),tags:e})}t.__esModule=!0;var s=n(39),a=n(115),u=Math.random()<.01;t.getTagNameFromTime=r,t.pushToAdfoxLogs=o,t.pushToAdfoxMonitor=i},function(e,t){"use strict";function n(e){var t=new XMLHttpRequest;t.open("POST",r,!0),t.send(JSON.stringify(e))}t.__esModule=!0;var r="https://an.yandex.ru/jstracer";t.pushToLogs=n},function(e,t,n){"use strict";function r(e){var t=s.renderPerfomanceManager.getInfo(e);t&&a.logValues({name:c.EVENT_RENDER_PERFOMANCE,values:t.timing,data:t.data,labels:l})}function o(){var e=i.networkPerfomaceManager.getNewEntries();e&&a.logValues({name:c.EVENT_NETWORK_PERFOMANCE,values:e,data:{adSessionId:d.getSessionId()},labels:l})}t.__esModule=!0;var i=n(117),s=n(55),a=n(97),u=n(120),c=n(89),d=n(145),l={browser:u.getBrowserName(),device:u.getDeviceName()};t.sendRenderData=r,t.sendNetworkInfo=o},function(e,t,n){"use strict";t.__esModule=!0;var r=n(118),o=[{prefix:"LOADER",re:/\/pcode\/adfox\/loader\.js$/i},{prefix:"HB",re:/\/pcode\/adfox\/header-bidding\.js$/i},{prefix:"BUNDLE",re:/\/pcode-bundles.*\/banner_.*\/banner_.*\.js$/i},{prefix:"ADXSTUB",re:/\/pcode\/adfox\/adfox-adx-stub\.js$/i},{prefix:"BULK",re:/ads\.adfox\.ru\/.*\/getBulk\/v2.*$/i},{prefix:"PREP",re:/ads\.adfox\.ru\/.*\/prepareCode.*$/i},{prefix:"CODETEST",re:/ads\.adfox\.ru\/.*\/getCodeTest.*$/i}];t.networkPerfomaceManager=new r.NetworkPerfomanceManager(o)},function(e,t,n){(function(e){"use strict";var r=function(){return r=e||function(e){for(var t,n=1,r=arguments.length;n0&&e>0?Math.round(e-t):0},l=function(){function e(e,t){void 0===t&&(t=window),this.prefixes=e,this.cache=[],this.windows=[],this.registerWin(t)}return e.prototype.registerWin=function(e){this.windows.push(e)},e.prototype.getNewEntries=function(){var e=this,t=this.getPerformanceEntries(),n={};return s.forEach(t,function(t){if(t&&a.indexOf(e.cache,t)===-1){e.cache.push(t);var o=e.getPrefix(t.name);n=r({},n,e.getNetworkObject(t,o))}}),Object.keys(n).length?n:null},e.prototype.getPerformanceEntries=function(){var e=this,t=[];return s.forEach(this.windows,function(e){try{t=t.concat(e.performance.getEntries())}catch(e){}}),i.filter(t,function(t){return c.isObject(t)&&u.some(e.prefixes,function(e){return e.re.test(t.name)})})},e.prototype.getPrefix=function(e){var t="";return s.forEach(this.prefixes,function(n){n.re.test(e)&&(t=n.prefix)}),t},e.prototype.getNetworkObject=function(e,t){var n={},r=d(e.domainLookupStart,e.startTime);r&&(n[t+"_"+o.Wait]=r);var i=d(e.domainLookupEnd,e.domainLookupStart);i&&(n[t+"_"+o.DNS]=i);var s=d(e.connectEnd,e.connectStart);s&&(n[t+"_"+o.TCP]=s);var a=d(e.connectEnd,e.secureConnectionStart);a&&(n[t+"_"+o.SSL]=a);var u=d(e.responseStart,e.requestStart);u&&(n[t+"_"+o.TTFB]=u);var c=d(e.responseEnd,e.responseStart);return c&&(n[t+"_"+o.Response]=c),n},e}();t.NetworkPerfomanceManager=l}).call(t,n(15))},function(e,t){"use strict";t.__esModule=!0,t.indexOf=function(e,t,r,o){void 0===r&&(r=0),void 0===o&&(o=n);for(var i=r;i0,t.isIEQuirks=C.getIsIEQuirks(T),t.isEdge=t.ieVersion&&t.ieVersion>11||!1,t.isSafari=_.getIsSafari(T),t.safariVersion=w.getSafariVersion(T),t.isFirefox=c.isFirefox(T),t.isChrome=u.getIsChrome(T),t.isYaBrowser=b.getIsYaBrowser(T),t.isUCBrowser=m.isUCBrowser(T),t.isIOS=l.getIsIOS(T),t.iOSVersion=s.getIOSVersion(T),t.isAndroid=a.getIfIsAndroid(T),t.androidVersion=o.getAndroidVersion(T),t.isWindowsPhone=y.isWindowsPhone(T),t.isMobile=f.isMobile(T),t.isPhone=v.isPhone(T),t.isHDPIScreen=d.isHDPIScreen(T),t.flashVer=[0,0,0];var O=n(139);t.testProperty=O.testProperty;var M=n(144);t.getBrowserName=M.getBrowserName,t.getDeviceName=r,t.support={cssFlex:S.isCssFlexSupported,cssTransform:S.isCssTransformSupported,cssTransition:S.isCssTransitionSupported,cssFilterBlur:S.isCssFilterBlurSupported,touch:g.isTouchDevice(T),postMessage:x.getIsPostMessageSupported(T),longUrls:E.getIsLongUrlSupported(T)}},function(e,t){"use strict";function n(e){void 0===e&&(e=window);var t=e.navigator.userAgent,n=t.indexOf("Android");return n===-1?-1:parseFloat(t.slice(n+8))}t.__esModule=!0,t.getAndroidVersion=n},function(e,t,n){"use strict";t.__esModule=!0;var r=n(37);t.getInternetExplorerVersion=function(e){void 0===e&&(e=window);var t=r(e);return"boolean"==typeof t?-1:t}},function(e,t,n){"use strict";function r(e){if(void 0===e&&(e=window),o.getIsIOS(e)&&e.navigator){var t=e.navigator.platform;if(t&&/iP(hone|od|ad)/.test(t)){var n=e.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);if(n)return parseInt(n[1],10)}}return-1}t.__esModule=!0;var o=n(124);t.getIOSVersion=r},function(e,t,n){"use strict";function r(e){void 0===e&&(e=window);var t=e.navigator.userAgent.toLowerCase();return/ipad|iphone|ipod/.test(t)&&!e.MSStream&&!o.isUCBrowser(e)}t.__esModule=!0;var o=n(125);t.getIsIOS=r},function(e,t){"use strict";t.__esModule=!0,t.isUCBrowser=function(e){return void 0===e&&(e=window),e.navigator.userAgent.indexOf("UCBrowser")>-1}},function(e,t,n){"use strict";function r(e){void 0===e&&(e=window);var t=e.navigator.userAgent,n=void 0===t?"":t;return/Linux.*?Android/.test(n)&&!o.isUCBrowser(e)||/com\.yandex\.mobile\.metrica\.ads\.sdk.*?Android/.test(n)}t.__esModule=!0;var o=n(125);t.getIfIsAndroid=r},function(e,t,n){"use strict";t.__esModule=!0;var r=n(128);t.getIsChrome=function(e){return void 0===e&&(e=window),/Chrome/.test(e.navigator.userAgent)&&/Google Inc/.test(e.navigator.vendor)&&!r.getIsYaBrowser(e)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(75);t.getIsYaBrowser=function(e){return void 0===e&&(e=window),/YaBrowser/.test(r.getUserAgent(e))}},function(e,t){"use strict";t.__esModule=!0,t.isFirefox=function(e){return void 0===e&&(e=window),/firefox/.test(e.navigator.userAgent.toLowerCase())}},function(e,t){"use strict";t.__esModule=!0,t.isHDPIScreen=function(e){void 0===e&&(e=window);var t=e.devicePixelRatio||e.screen.deviceXDPI&&e.screen.deviceXDPI/e.screen.logicalXDPI||1;return t>1}},function(e,t){"use strict";t.__esModule=!0,t.isMobile=function(e){return void 0===e&&(e=window),/Mobi|Android/i.test(e.navigator.userAgent)}},function(e,t){"use strict";t.__esModule=!0,t.isOpera=function(e){return void 0===e&&(e=window),e.navigator.userAgent.indexOf("Opera")>-1||e.navigator.userAgent.indexOf("OPR")>-1}},function(e,t){"use strict";t.__esModule=!0,t.isOperaMini=function(e){return void 0===e&&(e=window),e.navigator.userAgent.indexOf("Opera Mini")>-1}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(126),o=n(124);t.isPhone=function(e){void 0===e&&(e=window);var t=e.navigator.userAgent.toLowerCase();return o.getIsIOS(e)&&t.indexOf("iphone")>-1||r.getIfIsAndroid(e)&&t.indexOf("mobile")>-1}},function(e,t){"use strict";function n(e){void 0===e&&(e=window);var t=e,n=t.DocumentTouch,r=t.navigator,o=t.document;return"ontouchstart"in e||n&&o instanceof n||r.maxTouchPoints>0||r.msMaxTouchPoints>0}t.__esModule=!0,t.isTouchDevice=n},function(e,t){"use strict";t.__esModule=!0,t.isWindowsPhone=function(e){return void 0===e&&(e=window),/Windows Phone/i.test(e.navigator.userAgent)}},function(e,t,n){"use strict";function r(e){if(void 0===e&&(e=window),o.isSafari&&e.navigator&&e.navigator.userAgent){var t=e.navigator.userAgent.match(/version\/(\d+)/i);if(t){var n=Number(t[1]);if(n)return n}}return-1}t.__esModule=!0;var o=n(73);t.getSafariVersion=r},function(e,t,n){"use strict";t.__esModule=!0;var r=n(139);t.isCssFlexSupported=r.testProperty("flex"),t.isCssTransformSupported=r.testProperty("transform"),t.isCssTransitionSupported=r.testProperty("transition"),t.isCssFilterBlurSupported=r.testProperty("filter:blur(2px)")},function(e,t,n){"use strict";var r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};t.__esModule=!0;var o=n(42);t.testProperty=function(e,t){if(void 0===t&&(t=o.cssPrefixes),!e)return!1;var n=r(e.split(":"),2),i=n[0],s=n[1];if(s||(s="none"),window.CSS&&window.CSS.supports){for(var a=0;a0&&(5===e.document.documentMode||10!==n&&t.getIsQuirks(e))}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(75);t.getBrowserName=function(e){void 0===e&&(e=window);var t=r.getUserAgent(e),n=t.match(/(opera|chrome|safari|firefox|ucbrowser|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(n[1]))return"MSIE";if("Chrome"===n[1]){var o=t.match(/\b(OPR|Edge|YaBrowser)\/(\d+)/);if(null!==o)return o[1].replace("OPR","Opera")}return n[1]}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(146),o=n(147),i=n(155),s=n(157),a=n(159),u=n(160);t.getSessionId=r.once(function(){return u.getSession(a.generateSessionId,i.getWindowStorage("common"),o.getCrossFrameStorage("common"),s.configureMetrika)})},function(e,t){"use strict";function n(e){var t=function(){var n=e.apply(this,arguments);return t=function(){return n},n};return function(){return t.apply(this,arguments)}}t.__esModule=!0,t.once=n},function(e,t,n){"use strict";t.__esModule=!0;var r=n(146),o=n(148),i=n(149),s=n(154),a=r.once(function(){return i.getCrossFrameDataSource(self,"Ya.pcodeCrossFrameData",function(){return new s.ObjectStorage({})})});t.getCrossFrameStorage=function(e){return o.getOrCreateItem(a(),e,function(){return new s.ObjectStorage({})})}},function(e,t){"use strict";t.__esModule=!0,t.getOrCreateItem=function(e,t,n){var r=e.getItem(t);return r||(r=n(t),e.setItem(t,r)),r}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(150),o=n(151),i=n(152),s=n(153),a=n(24);t.getCrossFrameDataSource=function(e,t,n){var u;return r.traverseBreadth([e.top],function(e){if(u=a.callSafe(function(){return i.get(e,t)}),!u)return a.callSafe(function(){return o.listToArray(e.frames)})||[]}),u||(u=n()),s.set(e,t,u),u}},function(e,t){"use strict";var n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},r=function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};t.__esModule=!0;var o=n(102);t.get=function(e,t){var n,i;try{for(var s=r(t.split(".")),a=s.next();!a.done;a=s.next()){var u=a.value;if(!o(e)){e=void 0;break}e=e[u]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return e}},function(e,t,n){"use strict";var r=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};t.__esModule=!0;var o=n(102);t.set=function(e,t,n){var i,s;if(!o(e))return e;var a=e,u=t.split("."),c=u.pop();try{for(var d=r(u),l=d.next();!l.done;l=d.next()){var f=l.value,p=e[f];e=o(p)?p:e[f]={}}}catch(e){i={error:e}}finally{try{l&&!l.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}return e[c]=n,a}},function(e,t){"use strict";t.__esModule=!0;var n=function(){function e(e){this.obj=e}return e.prototype.getItem=function(e){return this.obj[e]},e.prototype.setItem=function(e,t){this.obj[e]=t},e}();t.ObjectStorage=n},function(e,t,n){"use strict";t.__esModule=!0;var r=n(146),o=n(148),i=n(154),s=n(156),a=r.once(function(){ return s.getWindowDataSource(self,"Ya.pcodeWindowData",function(){return new i.ObjectStorage({})})});t.getWindowStorage=function(e){return o.getOrCreateItem(a(),e,function(){return new i.ObjectStorage({})})}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(152),o=n(153);t.getWindowDataSource=function(e,t,n){var i=r.get(e,t);return i||(i=n(),o.set(e,t,i)),i}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(24),o=n(158);t.metrikaAdSessionLabel="adSessionID",t.configureMetrika=r.protect("sessionId::configureMetrika",function(e,n){var r;o.pushMetrikaEvent(e,(r={},r[t.metrikaAdSessionLabel]=n,r))})},function(e,t,n){(function(e){"use strict";var r=function(){return r=e||function(e){for(var t,n=1,r=arguments.length;n'),r.write(t),r.write(n)},_addSandboxEventListener:function(){var e=this,t=this._sandbox.contentWindow;this._errorListener=function(t){e._triggerCallback("error",{type:"userScriptError",message:t.message||"Script error in frame"})},s(t,"error",this._errorListener),t.onPrepareCodeError=function(){e._triggerCallback("error",{type:"adfoxBackend",message:"Can't load AdFox prepare code"})},t.onPrepareCodeLoad=function(){a(t,"error",e._errorListener),e._triggerCallback("load")},t.loadAdFoxBundle=function(t){e._triggerCallback("loadAdFoxBundle",t)}},_getReadyCode:function(){return""},_getPrepareCode:function(){return this._prepareCodeData?'":''},_beforeDestroy:function(){if(this._sandbox){var e=this._sandbox.contentWindow;e&&"function"==typeof e.adfoxRemoveBanner&&e.adfoxRemoveBanner()}},_removeSandbox:function(){this._sandbox&&(this._closeSandboxDocument(),this._sandbox.parentNode&&this._sandbox.parentNode.removeChild(this._sandbox),this._sandbox=null)},_closeSandboxDocument:function(){this._isSandboxOpen&&(this._sandbox.contentDocument&&this._sandbox.contentDocument.close(),this._isSandboxOpen=!1)}},e.exports=r},function(e,t,n){"use strict";t.__esModule=!0;var r=n(36),o=n(34);t.onSandboxReady=function(e,t){r.isFirefox?o.onDocumentReady(e.contentWindow,t):t()}},function(e,t,n){"use strict";function r(e){var t=e.createElement("iframe");return t.scrolling="no",t.style.cssText="min-height:100%;height:1px;min-width:100%;width:1px;",t.setAttribute("marginwidth",0),t.setAttribute("marginheight",0),t.setAttribute("frameborder",0),t}function o(e,t,n){function r(){if(i.length){var e=i.shift();e(r)}}for(var o=[],i=[],s=void 0,a=/((.|\n)*?)<\/script>/g,d=/src=("|')(.*)("|')/;s=a.exec(n);){var l={text:s[2]},f=d.exec(s[1]);f&&f[2]&&(l.src=f[2]),o.push(l)}for(var p=function(t){var n=o[t];if(n.src)i.push(function(t){c(e,n.src,t)});else{var r=e.document.createElement("script");r.type="text/javascript",r.text=n.text,i.push(function(t){e.document.body.appendChild(r),t()})}},h=0;h':"";n=""+v+""+n+""}t.write(n),t.close(),r()}function i(e,t){e.write(t),e.close()}function s(e,t,n){u.isIe&&u.ieVer<=9?o(e,t,n):i(t,n)}function a(e,t){var n=e.contentWindow,r=function(){return clearInterval(o)},o=setInterval(function(){n!==e.contentWindow&&(r(),t())},d);return r}var u=n(36),c=n(170).loadScript,d=150;e.exports={createSandbox:r,initMovementChecking:a,write:s}},function(e,t,n){"use strict";function r(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.document,i="script",a=o.createElement(i),u=s(o,i)||o.body||o.documentElement;a.src=t;for(var c in r)r.hasOwnProperty(c)&&a.setAttribute(c,r[c]);if("function"==typeof n&&(a.onload=a.onreadystatechange=function(){this.readyState&&"complete"!==this.readyState&&"loaded"!==this.readyState||(a.onload=a.onreadystatechange=null,n())}),u&&u.parentNode)u.parentNode.insertBefore(a,u);else{if(!u||!u.appendChild)throw new Error("loadScript: there is no node to append script");u.appendChild(a)}}function o(e,t,n){var r=e.document,o="script",i=r.createElement(o),a=s(r,o)||r.body;i.text=t,a.parentNode.insertBefore(i,a),"function"==typeof n&&n()}var i=n(52),s=i.elementByTag;e.exports={loadScript:r,executeScript:o}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(172),o=n(173),i=n(46),s=.5,a=function(e){return Math.max(0,Math.round(e))},u=function(e){return Math.round(e)},c=function(){function e(e){this.MIN_VISIBLE_AREA=s,this.config={},this.element=e,this.winSize=i.getWindowSize(),this.set("win_width",a(this.winSize.width)),this.set("win_height",a(this.winSize.height)),this.size=r.getBoundingClientRect(this.element),this.setLayout(),this.setVisible()}return e.prototype.set=function(e,t){this.config[e]=t},e.prototype.toString=function(){return JSON.stringify(this.config)},e.prototype.setLayout=function(){var e=o.getWindowScroll();this.set("width",a(this.size.width)),this.set("height",a(this.size.height)),this.set("left",u(this.size.left+e.left)),this.set("top",u(this.size.top+e.top))},e.prototype.setVisible=function(){var e=this.size,t=e.width,n=e.height,r=e.top,o=e.left,i=e.right,s=e.bottom,a=1,u=Math.max(Math.min(this.size.right,this.winSize.width)-Math.max(this.size.left,0),0),c=Math.max(Math.min(this.size.bottom,this.winSize.height)-Math.max(this.size.top,0),0);t?a*=u/t:(this.size.left<0||this.size.right>this.winSize.width)&&(a=0),n?a*=c/n:(this.size.top<0||this.size.bottom>this.winSize.height)&&(a=0),this.set("visible",a>=this.MIN_VISIBLE_AREA?1:0),0===t&&0===n&&0===r&&0===o&&0===i&&0===s?this.isFirstScreen=!0:this.isFirstScreen=this.config.top'+('");return t({},this._getSize(),{nonce:this._cspNonce,html:o,supports:{"exp-push":!0}})},_afterRender:function(){var e=this,t=function(t){return e._onMessage(t)};(0,s.addEvent)(this._win,"message",t)},_onMessage:function(e){e.data==="sfc-"+this._id+"-error"&&this._triggerCallback("onError"),e.data==="sfc-"+this._id+"-destroy"&&this._triggerCallback("onDestroy"),e.data==="sfc-"+this._id+"-render"&&this._triggerCallback("onRender"),e.data==="sfc-"+this._id+"-stub"&&this._triggerCallback("onStub")},_triggerCallback:function(e){if(this._callbacks[e]){var t=Array.prototype.slice.call(arguments,1);return this._callbacks[e].apply(this._win,t)}}},e.exports=o}).call(t,n(15))},function(e,t,n){"use strict";function r(){var e=S?b:y,t=""+["https://yastatic",".net/safeframe-bundles/0.41/"].join("")+e;return S?h.encode(t):t}function o(e){e.yaSafeFrameCallbacksStorage=e.yaSafeFrameCallbacksStorage||{};var t=e.yaSafeFrameCallbacksStorage,n=function(e,n,r){t[e]&&t[e].onError(e,r)},r=function(e,n,r){t[e]&&t[e].onRender(e,r)},o=function(n,r,o){t[n]&&t[n].onAction(r,o),"nuke"===r&&l(e,n)};return new e.$sf.host.Config({auto:!1,onFailure:n,onEndPosRender:r,onPosMsg:o})}function i(e,t,n,r){t.id=r;var o=n.html,i=n.width,s=n.height,a=n.basePath,u=n.nonce,c={nonce:u,w:i,h:s,dest:S?t:r,protected:n.protected,sandbox:n.sandbox,basePath:a},d={id:r,html:o,conf:c};n.supports&&(d.conf.supports=n.supports),e.$sf.host.render(d)}function s(e,t){return t||e.id||"sf-"+(Math.floor(Math.random()*g)+1)}function a(e){e.isLoadingSafeframeStarted||(e.isLoadingSafeframeStarted=!0,v.loadCustomScript(e,r(),_.noop,!S))}function u(e){var t=e[m]||[];return e[m]=t,t}function c(e,t,n,r,c,d){void 0===r&&(r=_.noop),void 0===c&&(c=_.noop),void 0===d&&(d=_.noop),a(e);var l=u(e),f=n.id instanceof Element?"":n.id,p=s(t,f);l.push(function(){e.yaSafeFrameCallbacksStorage=e.yaSafeFrameCallbacksStorage||{},e.yaSafeFrameCallbacksStorage[p]={onError:r,onRender:c,onAction:d},o(e),i(e,t,n,p)})}function d(e,t){a(e);var n=u(e);n.push(function(){l(e,t),e.$sf.host.nuke(t)})}function l(e,t){var n=e.yaSafeFrameCallbacksStorage;delete n[t]}function f(e){return Boolean(e.$sf&&e.$sf.ext)}function p(e,t){if(f(e)){var n=e.$sf.ext.geom(),r=n.self.w+n.exp.r,o=n.self.h+n.exp.b,i=r>t.width?t.width-n.self.w:n.exp.r,s=o>t.height?t.height-n.self.h:n.exp.b;e.$sf.ext.expand({t:0,l:0,r:i,b:s})}}t.__esModule=!0;var h=n(105),v=n(176),_=n(30),g=4294967295,m="yaSafeFrameAsyncCallbacks",y="host.js",b="host_adb.js",w=window;w.yaSafeFrameCallbacksStorage=w.yaSafeFrameCallbacksStorage||{};var S=h.isEncoded("https://yastatic.net/safeframe/1-1-0/");t.getSafeframeLoaderURL=r,t.initSafeframe=c,t.nukeSafeframe=d,t.isInSafeframe=f,t.updateSafeframeSize=p},function(e,t,n){"use strict";function r(e){return a.loadScript(e).then(function(){return{}})}function o(e,t,n,r){void 0===r&&(r=!0);var o=e.document.createElement("script");o.type="text/javascript",o.async=!0,n&&(o.onload=function(){o.onload=function(){},n()}),r&&o.setAttribute("crossorigin","anonymous"),o.src=t,s.getHead(e).appendChild(o)}function i(e,t,n){var r=e.document,o="script",i=r.createElement(o);i.text=t,s.getHead(e).appendChild(i),n()}t.__esModule=!0;var s=n(177),a=n(178);t.CHARSET_UTF_8="utf-8",t.loadScript=r,t.loadCustomScript=o,t.executeScript=i},function(e,t){"use strict";function n(e){var t=e.document,n=t.getElementsByTagName("head")[0];return n||(n=t.createElement("head"),t.documentElement.appendChild(n)),n}t.__esModule=!0,t.getHead=n},function(e,t,n){(function(e){"use strict";function r(e){return new o(function(t,n){s.loadScript(i({},e,{onLoad:t,onError:n}))})}var o="undefined"==typeof Promise?n(179).Promise:Promise,i=function(){return i=e||function(e){for(var t,n=1,r=arguments.length;n1)for(var n=1;n0?(g(t),r(o({},e,{retries:v-1}))):C(t),a.removeNodeFromParent(O)};O.type="text/javascript",O.async=p,O.onload=M,O.onerror=A,O.src=t,O.charset=l,w(O),i.getHead(T).appendChild(O)}var o=function(){return o=e||function(e){for(var t,n=1,r=arguments.length;n0&&(this.timer=setTimeout(function(){e.onTimeout(),e.abort()},t))},e.prototype.clearTimeout=function(){this.timer&&clearTimeout(this.timer)},e.prototype.setCallbacks=function(){var e=this,t=function(t){return e.onError(t&&t.message||"Error!"); };this.xr.onerror=t,this.xr.ontimeout=t},e.prototype.onLoad=function(e){this.clearTimeout(),this.params.onload&&this.params.onload(e)},e.prototype.onTimeout=function(){this.isTimeouted=!0,this.params.ontimeout&&this.params.ontimeout()},e.prototype.onError=function(e,t){this.isTimeouted||(this.clearTimeout(),this.params.onerror&&this.params.onerror({message:e,code:t,xr:this.xr}))},e.prototype.send=function(){this.setTimeout(),this.xr.send(this.params.data)},e.prototype.abort=function(){this.xr&&this.xr.abort()},e}(),h=function(e){function t(t,n){var r=e.call(this,t,n)||this,o=u.getNativeXhr({onWindowCreation:function(e){return d.networkPerfomaceManager.registerWin(e)}});return r.xr=new o,r.open(),r}return i(t,e),t.prototype.setCallbacks=function(){var t=this;e.prototype.setCallbacks.call(this);var n=this.xr;n.onreadystatechange=function(){4===n.readyState&&(n.status===l||n.status===f?t.onLoad(n.response):t.onError(n.statusText,n.status))}},t.prototype.setSettings=function(){e.prototype.setSettings.call(this),this.addHeaders(),this.xr.withCredentials=this.params.withCredentials},t.prototype.abort=function(){4!==this.xr.readyState&&e.prototype.abort.call(this)},t.prototype.addHeaders=function(){var e=this,t=this.params.headers;t&&c.forOwn(t,function(t,n){return e.xr.setRequestHeader(n,t)})},t}(p),v=function(e){function t(t,n){var r=e.call(this,a.replaceToPageProtocol(t),n)||this;return r.xr=new window.XDomainRequest,r.open(),r}return i(t,e),t.prototype.setCallbacks=function(){var t=this;e.prototype.setCallbacks.call(this),this.xr.onload=function(){return t.onLoad(t.xr.responseText)}},t.prototype.send=function(){var t=this;setTimeout(function(){return e.prototype.send.call(t)},0)},t}(p);t.request=r},function(e,t){"use strict";t.__esModule=!0;var n="http:",r="https:";t.isHttps=window.location.protocol===r,t.getProtocol=function(){return t.isHttps?r:n},t.replaceProtocolToHTTP=function(e){return e.replace(r,n)},t.replaceProtocolToHTTPS=function(e){return e.replace(n,r)},t.replaceToPageProtocol=function(e){return t.isHttps?t.replaceProtocolToHTTPS(e):t.replaceProtocolToHTTP(e)}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(7),i=n(57),s=n(20),a=n(191),u=n(192).setStyle,c=n(25),d=window;t.isXhrNative=function(e){var t=new e,n=t.__proto__||Object.getPrototypeOf(t),r=s.filter(i.getObjectKeys(n),function(e){return"function"==typeof t[e]});return a.every(r,function(e){return o.checkNativeCode(t[e])})},t.getNativeXhr=function(e){var n=(void 0===e?{}:e).onWindowCreation,o=d.XMLHttpRequest&&t.isXhrNative(d.XMLHttpRequest),i=Boolean(document.body);return o||!i?d.XMLHttpRequest:(r||(r=document.createElement("iframe"),u(r,{overflow:"hidden",display:"none",position:"absolute",left:"-9999px",top:"-9999px",width:"1px",height:"1px"})),r.contentWindow||(document.body.appendChild(r),c.isFunction(n)&&r.contentWindow&&n(r.contentWindow)),r.contentWindow.XMLHttpRequest)}},function(e,t){"use strict";t.__esModule=!0,t.every=function(e,t){for(var n=0;n0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},f=function(){for(var e=[],t=0;t=t&&e<=n}},function(e,t){"use strict";e.exports=function(e,t,n){function r(){e.call(n)}var o,i=0;return function(){var e=new Date,n=e-i;return clearTimeout(o),n>>0?"px":"",e.style.setProperty?e.style.setProperty(t,n,o):e.style.cssText+=";"+t+":"+n+(o?"!"+o:"")}}t.__esModule=!0;var o=n(17),i=n(103),s=new RegExp(["box-flex","box-flex-group","column-count","fill-opacity","flex","flex-grow","flex-positive","flex-shrink","flex-negative","font-weight","line-height","opacity","order","z-index","zoom"].join("|"),"i");t.setStyle=function(e,t,n,s){i.isObject(t)?(s=Boolean(n),o.forOwn(t,function(t,n){r(e,n,t,s)})):r(e,t,n,s)}},function(e,t){"use strict";function n(e,t){e.innerHTML=t}t.__esModule=!0,t.innerHtml=n},function(e,t,n){"use strict";t.__esModule=!0;var r=n(217);t.parseJSON=function(e){var t=r.getNativeJSON();return t.parse(e)}},function(e,t,n){"use strict";function r(e){if(void 0===e&&(e=window),void 0!==o)return o;if(e.JSON&&a.checkNativeCode(e.JSON.stringify)&&a.checkNativeCode(e.JSON.parse))return e.JSON;var t=i.createHiddenFriendlyIFrame(document.body);return o=t.contentWindow.JSON,s.removeIframe(o),o}t.__esModule=!0;var o,i=n(218),s=n(220),a=n(7);t.getNativeJSON=r},function(e,t,n){"use strict";function r(e){var t=o.createFriendlyIFrame(e);return t.width="0",t.height="0",t.style.position="absolute",t}t.__esModule=!0;var o=n(219);t.createHiddenFriendlyIFrame=r},function(e,t){"use strict";function n(e){var t=e.ownerDocument.createElement("iframe");t.scrolling="no",t.setAttribute("allowfullscreen",""),t.style.display="block",e.appendChild(t);var n=t.contentDocument;return n.open(),n.close(),n.body.style.margin="0",t.style.borderWidth="0",t}t.__esModule=!0,t.createFriendlyIFrame=n},function(e,t,n){"use strict";function r(e){e.src="",o.removeNodeFromParent(e)}t.__esModule=!0;var o=n(183);t.removeIframe=r},function(e,t,n){"use strict";t.__esModule=!0;var r=n(19),o=n(18),i=n(39),s=n(222),a=n(226)(o.ns),u=/avito/.test(window.location.hostname),c={isLoadingTurnedOn:!1,isExp:!1},d=c;u&&(d=o.ns.forcedDirectLoadingExp||r.choose([{percent:.05,value:{isLoadingTurnedOn:!1,isExp:!0}},{percent:.05,value:{isLoadingTurnedOn:!0,isExp:!0}},{percent:.9,value:c}])),d.isLoadingTurnedOn&&!o.ns.forcedDirectLoadingExp&&a(s.getScriptSrcFromBundleName("banner.direct",i.bundleVersion),function(){}),o.ns.forcedDirectLoadingExp={isLoadingTurnedOn:d.isLoadingTurnedOn,isExp:d.isExp},t.getDirectLoadingExp=function(){return d}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(223),o=n(224),i=(n(105),n(225));t.getScriptSrcFromBundleName=function(e,t){e=e.replace(/\./g,"_");var n=r.default(o.RE_LOADER_REL_ADFOX),s=i(t,n)+e+"/"+e+".js";return s}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(14);t.default=function(e){for(var t="",n=document.getElementsByTagName("script"),o=0;o2&&void 0!==arguments[2]?arguments[2]:i(),o=arguments[3];"string"==typeof e&&"string"==typeof t&&r(e.replace(t,n),o)}var a={};e.exports={report:r,awReport:o,reportRandom:s,randomSeed:i}},function(e,t){"use strict";t.__esModule=!0;var n=function(e,t){var n=e.toString();return"0000".substr(0,t-n.length)+n},r=function(e){var t=-e.getTimezoneOffset(),r=n(Math.floor(Math.abs(t)/60),2),o=n(Math.abs(t)%60,2),i=t>=0?"+":"-";return""+i+r+":"+o};t.toISOString=function(e){var t=e.getFullYear(),o=n(e.getMonth()+1,2),i=n(e.getDate(),2),s=n(e.getHours(),2),a=n(e.getMinutes(),2),u=n(e.getSeconds(),2),c=n(e.getMilliseconds(),3),d=r(e);return t+"-"+o+"-"+i+"T"+s+":"+a+":"+u+"."+c+d}},function(e,t){"use strict";function n(e){var t;try{t=JSON.stringify(e)}catch(e){}return t}t.__esModule=!0,t.tryStringify=n},function(e,t,n){"use strict";t.__esModule=!0;var r=n(109);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})})},function(e,t,n){"use strict";function r(){var e=window,t="";return i&&e.context.master.Ya&&e.context.master.Ya.getSkipToken?t=e.context.master.Ya.getSkipToken():e.Ya&&e.Ya.Context&&e.Ya.Context.AdvManager&&e.Ya.Context.AdvManager.getSkipToken&&(t=e.Ya.Context.AdvManager.getSkipToken()),t}var o=n(36),i=o.isAMP;e.exports=r},function(e,t,n){"use strict";function r(){return window}function o(e){return e.location.host}function i(e,t){var n=r(),i=n.document;if(t){var a=o(i);if((" "+c+" ").indexOf(" "+a+" ")>-1)return t}var d=s(e,i);if("t\n"===d&&n.top!==n.self)try{d=s(e,n.parent.document)}catch(e){}return(0,u.encode)(d,e)}function s(e,t){var n=[],r=0;n.push("t"+(t.title||"")),r+=n[0].length;for(var o,i,s,u=1;u<4&&r0;){e=n.pop();var r=e.nodeType;if(3!==r){if(e.childNodes&&e.childNodes.length>0)for(var o=e.childNodes,i=o.length,s=i-1;s>=0;s--){var a=o[s];n.push(a)}}else t+=e.nodeValue+" "}return t.replace(/\s+/g," ")}var u=n(109),c="yandex.ru yandex.com yandex.ua yandex.by yandex.kz yandex.com.tr";e.exports=i},function(e,t,n){"use strict";function r(e){this._counterId=e,this._yaCounterNs="yaCounter"+e,this._isInited=!1}var o="yandex_metrika_callbacks",i=["addFileExtension","extLink","file","hit","notBounce","params","userParams","setUserID","getClientID","reachGoal","replacePhones"],s={},a=n(170).loadScript;window.Ya&&window.Ya.Metrika||a(window,"https://mc.yandex.ru/metrika/watch.js",function(){var e=void 0;for(e in s)s.hasOwnProperty(e)&&(s[e]._isInited||s[e]._initCounter())}),r.prototype._initCounter=function(){return this._isInited||(window[this._yaCounterNs]=new window.Ya.Metrika({id:this._counterId}),this._isInited=!0),window[this._yaCounterNs]},r.prototype._apply=function(e,t){window[this._yaCounterNs][e].apply(window[this._yaCounterNs],t)},r.prototype._createAndApply=function(e,t){this._initCounter(),this._apply(e,t)};for(var u=function(e){var t=i[e];r.prototype[t]=function(){for(var e=this,n=arguments.length,r=Array(n),i=0;i