!function(e){var t={};function o(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t){!function(){try{if(void 0===e)var e={};if(e.defaults={trackingHost:"tt.onthe.io",projectId:"41949",projectSignature:"40d67c0b572c270cf96c57c0d146e8e5",projectCodeId:"LoD6SGe8vMTb",projectCodeVersion:"212",projectUniquesBySuperdomain:"0",projectVisitsBySuperdomain:"0",projectVisitsDuration:"30",projectVideosWithoutMarkup:"1",holdingHash:"",holdingId:"",crawlerFilter:"0",projectMainDomain:"prom.ua",projectHeadlineTestingAudienceRatio:"0",setWidgetOnMainDomain:"0",conversionsWithSubdomains:"0"},void 0===e)e={};if(e.doubleLoadingDetector=function(e,t){var o={init:function(){if("object"!=typeof window.__io&&(window.__io={}),window.__io.startedTrackers||(window.__io.startedTrackers=[]),-1!==window.__io.startedTrackers.indexOf(t.projectCodeId))return!0;window.__io.startedTrackers.push(t.projectCodeId)}};return o}(document,e.defaults),void 0===e)e={};if(e.helpers=function(t,o,r){var i={decodeURIrecursively:function(e){try{for(;decodeURIComponent(e)!=e;)e=decodeURIComponent(e)}catch(e){}return e},encodeURIonce:function(e){return encodeURIComponent(this.decodeURIrecursively(e))},bindOnUrlChange:function(e){var o=t.location.pathname;this.setIntervalSafe(t,function(){t.location.pathname!==o&&(o=t.location.pathname,e())},100)},bindOnElementInsertion:function(e,r,i){i||(i=o);var n=i.querySelectorAll(e);return n=t.Array.prototype.slice.call(n),this.setIntervalSafe(t,function(){var o,a=i.querySelectorAll(e);for(o=0;o2?i.hostname.replace(/^www\./,""):i.hostname,host:i.host,href:i.href,origin:i.origin,pathname:i.pathname,port:i.port,protocol:i.protocol,search:i.search}}catch(o){r={hash:"",hostname:t.location.hostname,hostnameNaked:t.location.hostname.split(".").length>2?t.location.hostname.replace(/^www\./,""):t.location.hostname,host:t.location.host,href:t.location.protocol+"//"+t.location.host+("/"===e.charAt(0)?e:"/"+e),origin:t.location.origin,pathname:e,port:t.location.port,protocol:t.location.protocol,search:""}}return"/"!==r.pathname.charAt(0)&&(r.pathname="/"+r.pathname),r},i.getMainDomain=function(){for(var e=0,r=this.parseURL(t.location.hostname).hostnameNaked,i=r.split("."),n="__io_test"+(new Date).getTime();e=10)){this.trackErrorMetric.errorsCount++;var i={title:"string"==typeof e?e:e.message+"\n\n"+e.stack,href:t.location.href,url:t.location.pathname,domain:t.location.hostname,page:o.title,user_agent:t.navigator.userAgent,referrer_uri:o.referrer};this.sendMetric(r,i)}},i.getMetricParamString=function(e,o){(o=this.cloneObjectShallow(o)).cdn_version=r.projectCodeVersion;var i=[];for(var n in o)""!==o[n]&&o.hasOwnProperty(n)&&i.push(n+":"+this.encodeURIonce(o[n]));var a=e+"["+i.join()+"]";return a=a.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(t.parseInt(arguments[1],16))}),"/?k[]="+r.projectId+":"+a},i.deferMetricToSendInBatch=function(e,o){if(this.deferMetricToSendInBatch.queue||(this.deferMetricToSendInBatch.queue=[]),this.deferMetricToSendInBatch.queue.push(this.getMetricParamString(e,o)),!this.deferMetricToSendInBatch.isQueueActive)var i=this.setIntervalSafe(t,function(){if(0===this.deferMetricToSendInBatch.queue.length)return this.deferMetricToSendInBatch.isQueueActive=!1,void t.clearInterval(i);this.deferMetricToSendInBatch.isQueueActive=!0;var e="";do{e+="&"+this.deferMetricToSendInBatch.queue.shift()}while(this.deferMetricToSendInBatch.queue.length&&(e+this.deferMetricToSendInBatch.queue[0]).length<1900);var o="https://"+r.trackingHost+"/"+e+"&s="+r.projectSignature+"&"+Date.now();this.sendGetRequest(o)}.bind(this),1e3)},i.sendMetric=function(e,t,o,i){var n="https://"+r.trackingHost+this.getMetricParamString(e,t)+"&s="+r.projectSignature+(o?"&_v="+o:"")+(i?"&__io="+this.getUserId():"")+"&"+Date.now();this.sendGetRequest(n)},i.hashFnv32a=function(e,t,o){var r,i,n=void 0===o?2166136261:o;for(r=0,i=e.length;r>>0).toString(16)).substr(-8):n>>>0},i.getStorageStatusLocal=function(){try{var e="__io_test"+(new Date).getTime();return t.localStorage.setItem(e,"1"),t.localStorage.removeItem(e),!0}catch(e){return!1}},i.getStorageStatusSession=function(){try{var e="__io_test"+(new Date).getTime();return t.sessionStorage.setItem(e,"1"),t.sessionStorage.removeItem(e),!0}catch(e){return!1}},i.setPreviousURI=function(e,t){var o={},i=!(!r||!r.projectId)&&this.getCookieValue("__io_nav_state"+r.projectId),n=this.getMainDomain();i&&(o=this.parseJSONSafe(i)||{});var a=new Date((new Date).getTime()+9e5).toUTCString(),s=r&&r.projectId?r.projectId:"";this.setCookie("__io_nav_state"+s,JSON.stringify({current:e,currentDomain:t||"",previous:o.current,previousDomain:o.currentDomain?o.currentDomain:""}),a,"/","."+n)},i.getPreviousURI=function(){var e={},t=!(!r||!r.projectId)&&this.getCookieValue("__io_nav_state"+r.projectId);if(t&&(e=this.parseJSONSafe(t)||{}),e.previous&&e.previous!==e.current)return e.previous},i.getPreviousDomain=function(){var e={},t=!(!r||!r.projectId)&&this.getCookieValue("__io_nav_state"+r.projectId);if(t&&(e=this.parseJSONSafe(t)||{}),e.previous&&e.previous!==e.current&&e.previousDomain)return e.previousDomain},i.setStorageItem=function(e,o,r){r=r?t.encodeURIComponent(r):r;try{switch(e){case"local":t.localStorage.setItem(o,r);break;case"session":t.sessionStorage.setItem(o,r);break;default:throw new Error("IO -- invalid storage type specified")}return!0}catch(e){this.trackErrorMetric(e)}},i.getStorageItem=function(e,o){var r;switch(e){case"local":r=t.localStorage.getItem(o);break;case"session":r=t.sessionStorage.getItem(o)}try{return r?t.decodeURIComponent(r):r}catch(e){this.trackErrorMetric(e)}},i.getPreviousPageTitle=function(){if(this.getStorageStatusSession()){var e,t,r=o.title;if(e=this.getStorageItem("session","__io_previous_title_a"),t=this.getStorageItem("session","__io_previous_title_b"),e===r){if(t)return t}else if(this.setStorageItem("session","__io_previous_title_a",r),e)return this.setStorageItem("session","__io_previous_title_b",e),e}},i.getLastestHeadlineTestIds=function(){if(this.getStorageStatusSession()){var e=this.parseJSONSafe(t.sessionStorage.getItem("__io_headline_testing_latest"));if(e&&"object"==typeof e)return e.lifetime<0?(t.sessionStorage.removeItem("__io_headline_testing_latest"),e={}):e.previousPathname!==t.location.pathname&&(e.previousPathname=t.location.pathname,--e.lifetime,t.sessionStorage.setItem("__io_headline_testing_latest",JSON.stringify(e))),{blockId:e.blockId||void 0,headlineId:e.headlineId||void 0}}},i.getSearchParam=function(e,o){var r=(o?this.parseURL(o).search:t.location.search).match("[?&]"+e+"=([^(&?)]*)");return r?r[r.length-1]:""},i.getCookieValue=function(e){var t=o.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?this.decodeURIrecursively(t[t.length-1]):""},i.setCookie=function(e,t,r,i,n,a){var s=new Date;s.setFullYear(s.getFullYear()+1),s=s.toUTCString(),r||(r=s),i||(i="/"),void 0!==t&&(t=encodeURIComponent(t));var c=e+"="+(t||"")+"; expires="+r+"; path="+i+(n?"; domain="+n:"")+(a?"; secure":"");o.cookie=c},i.deleteCookie=function(e,o,r){r===t.location.hostname&&(r=null),this.setCookie(e,null,"Thu, 01 Jan 1970 00:00:01 GMT",o,r)},i.getDepth=function(){return this.getDepthCookie()},i.getDepthCookie=function(){var e=new Date((new Date).getTime()+9e5).toUTCString(),o=this.hashFnv32a(t.location.pathname),r=this.getCookieValue("__io_d");if(!r||2!==r.split("_").length)return this.setCookie("__io_d","1_"+o,e,"/","."+this.getMainDomain()),1;var i=r.split("_")[1],n=t.parseInt(r.split("_")[0],10);if(o==i)return n||1;var a=(n||0)+1;return this.setCookie("__io_d",a+"_"+o,e,"/",this.getMainDomain()),a},i.getDepthSession=function(){var e=this.hashFnv32a(t.location.pathname),o=t.sessionStorage.getItem("__io_d");if(!o||2!==o.split("_").length)return t.sessionStorage.setItem("__io_d","1_"+e),1;var r=o.split("_")[1],i=t.parseInt(o.split("_")[0],10);if(e==r)return i||1;var n=(i||0)+1;return t.sessionStorage.setItem("__io_d",n+"_"+e),n},i.getUserId=function(){var e=this.getCookieValue("__io")||this.getRandomHash();return t.parseInt(r.projectUniquesBySuperdomain,10)?(this.deleteCookie("__io","/",t.location.hostname),e=this.getCookieValue("__io")||this.getRandomHash(),this.setCookie("__io",e,!1,"/","."+this.getMainDomain())):this.setCookie("__io",e),e},i.getReferrerCurrentExternal=function(e){if(!(e=e||o.referrer))return null;var i=this.parseURL(e).hostnameNaked,n=this.parseURL(t.location.hostname).hostnameNaked,a=!1;return""!==r.projectMainDomain&&(a=-1!==i.indexOf(r.projectMainDomain)),a?null:i===n?null:i},i.getReferrerCurrentFromParams=function(e){e=e||t.location.href;var o=this.getSearchParam("io_source",e),r=this.getSearchParam("io_utm_social",e),i="?f"===this.parseURL(e).search?"facebook_group":null,n=this.getSearchParam("utm_referrer",e),a=this.getSearchParam("utm_source",e),s=this.getSearchParam("source",e);return o||r||i||n||a||s},i.getReferrer=function(e,t){var o=this.getReferrerCurrentFromParams(t)||this.getReferrerCurrentExternal(e);return o?(this.setCookie("__io_r",o),o):this.getCookieValue("__io_r")},i.getReferrerFirst=function(e){var t=this.getCookieValue("__io_first_source"),o=this.getReferrer(e);return!t&&o?(this.setCookie("__io_first_source",o),o):t},i.getDeviceName=function(){var e=t.navigator.userAgent||"undefined",o="desktop",r=/Android|webOS|iPhone|PlayBook|iPad|iPod|IEMobile|BlackBerry|Mobile|Opera Mini/i.test(e),i=/Tablet|PlayBook|iPad/i.test(e)||/Android/i.test(e)&&!/Mobile/i.test(e)&&!/Opera Mini/i.test(e),n=/Android/i.test(e),a=/iPhone|iPad|iPod/i.test(e);return r&&(i?(o="tablet",o+=n?" (Android)":a?" (iOS)":" (Other)"):(o="smart",o+=n?" (Android)":a?" (iOS)":" (Other)")),o},i.getBrowserNameAndVersion=function(){var e,o,r=t.navigator.userAgent,i="";switch(!0){case-1!==(e=r.indexOf("OPR/")):i=r.substring(e+4);break;case-1!==(e=r.indexOf("Opera"))&&-1!==(e=r.indexOf("Version")):i=r.substring(e+8);break;case-1!==(e=r.indexOf("Opera")):i=r.substring(e+6);break;case-1!==(e=r.indexOf("MSIE")):i=r.substring(e+5);break;case-1!==(e=r.indexOf("Chrome")):i=r.substring(e+7);break;case-1!==(e=r.indexOf("Safari"))&&-1!==(e=r.indexOf("Version")):i=r.substring(e+8);break;case-1!==(e=r.indexOf("Safari")):i=r.substring(e+7);break;case-1!==(e=r.indexOf("Firefox")):i=r.substring(e+8);break;case-1!==r.indexOf("Trident")&&-1!==(e=r.indexOf("rv:")):i=r.substring(e+3).split(")")[0];break;case(e=r.lastIndexOf(" ")+1)<(e=r.lastIndexOf("/")):i=r.substring(e+1)}return i=i.split(";")[0].split(" ")[0],o=(o=t.parseInt(i,10))||"(unknown version)",this.getBrowserName()+" "+o},i.getUserLifeTime=function(){var e=o.cookie.match(/__io=([^;]+)/);return e?(e=e[1].split("_")[1],(e=Math.round((+Date.now()-e)/864e5))<0&&(e=0),0==e?e="0":e<7?e+="d":e=e<30?Math.round(e/7)+"w":Math.round(e/30)+"m",e):"0"},i.getUserLifeTimeNumber=function(){var e=o.cookie.match(/__io_lv=([^;]+)/);return e?(e=e[1],e=Math.round((+Date.now()-e)/864e5)):"0"},i.getUserType=function(){var e="";if(-1==o.cookie.indexOf("__io_lv="))e="new",(t=new Date).setFullYear(t.getFullYear()+1),o.cookie="__io_lv="+ +Date.now()+"; expires="+t.toUTCString()+"; path=/";else if(0==this.getUserLifeTime())e="new";else{var t,r=1*this.getUserLifeTimeNumber();e=r>30?"new":r>7?"returned":"constant",(t=new Date).setFullYear(t.getFullYear()+1),o.cookie="__io_lv="+ +Date.now()+"; expires="+t.toUTCString()+"; path=/"}return e},i.getUserTypeByProject=function(){var e="",t="__io_ut_state"+r.projectId,i="",n=this.getStorageStatusSession();if(n&&(e=this.getStorageItem("session",t)),-1===o.cookie.indexOf("__io_lv"))i="new",(a=new Date).setFullYear(a.getFullYear()+1),o.cookie="__io_lv="+ +Date.now()+"; expires="+a.toUTCString()+"; path=/";else if(0==this.getUserLifeTime())i="new";else{var a,s=1*this.getUserLifeTimeNumber();i=s>30?"new":s>7?"returned":"constant",(a=new Date).setFullYear(a.getFullYear()+1),o.cookie="__io_lv="+ +Date.now()+"; expires="+a.toUTCString()+"; path=/"}return e||(n&&this.setStorageItem("session",t,i),i)},i.getBrowserName=function(){var e,r,i="[object OperaMini]"===Object.prototype.toString.call(t.operamini),n=!(i||(!t.opr||!t.opr.addons)&&!t.opera),a="undefined"!=typeof InstallTrigger,s=/constructor/i.test(t.HTMLElement)||"[object SafariRemoteNotification]"===Object.prototype.toString.call(this.getDeepPropertySafe(t,["safari","pushNotification"]))||"Apple Computer, Inc."===t.navigator.vendor,c=!!o.documentMode,u=[{name:"Opera",isCurrent:n},{name:"Firefox",isCurrent:a},{name:"Safari",isCurrent:s},{name:"IE",isCurrent:c},{name:"Edge",isCurrent:!c&&!!t.StyleMedia},{name:"Chrome",isCurrent:!(n||!t.chrome||!t.chrome.webstore&&!t.chrome.runtime)},{name:"Opera Mini",isCurrent:i}];for(r=0;r(new Date).getDate()&&(t=new Date((new Date).setHours(24,0,0,0)).toUTCString());var r=this.getCampaignResetStatus();return e&&!r?(this.setCookie("__io_session_id",e,t,"/",o),e):(e=this.getRandomHash(),this.setCookie("__io_session_id",e,t,"/",o),e)},i.setConversionsPageData=function(o){var r=this.getConversionsPageData(),i=JSON.stringify({previous:r.current||{},current:{url:o.url,domain:o.domain,category:o.category,author:o.author,pr:o.pr,depth:o.depth}});if(!this.getStorageStatusLocal()||t.parseInt(e.defaults.conversionsWithSubdomains,10)){var n=e.defaults.projectMainDomain||t.location.hostname;this.setCookie("__io_conversions_page",i,!1,"/",n)}else this.setStorageItem("local","__io_conversions_page",i)},i.getConversionsPageData=function(){var o={};return!this.getStorageStatusLocal()||t.parseInt(e.defaults.conversionsWithSubdomains,10)?this.parseJSONSafe(this.getCookieValue("__io_conversions_page"))||o:this.parseJSONSafe(this.getStorageItem("local","__io_conversions_page"))||o},i.injectScriptBySrc=function(e,t){var r=o.getElementsByTagName("script")[0],i=o.createElement("script");i.id=t,i.async=!0,i.src=e,r.parentNode.insertBefore(i,r)},i.loadComponentAsync=function(e){try{return e.init()}catch(e){this.trackErrorMetric(e)}},i}(window,document,e.defaults),void 0===e)e={};if(e.debugCodeLoader=function(e,t){var o={flagName:"_io_debug_tracking",init:function(){var o=t.getSearchParam(this.flagName),r=t.getCookieValue(this.flagName),i=o||r;if(i){var n={id:e.projectCodeId+"_"+i,uri:"https://"+i+"_cdn.onthe.io/io.js/"+e.projectCodeId};if(!document.getElementById(n.id))return t.injectScriptBySrc(n.uri,n.id),!0}}};return o}(e.defaults,e.helpers),void 0===e)e={};if(e.nextPageMetricQueueService=function(e,t,o){var r={};r.storageKey="__io_next_page_metrics"+o.projectId,r._getQueue=function(){return t.parseJSONSafe(e.localStorage.getItem(this.storageKey))||[]},r.insertUpdate=function(o,r,i){if(t.getStorageStatusLocal()&&i){var n,a,s=this._getQueue();for(n=0;n=o)return 0;var a=o-n;return i[e]=n+a,t.localStorage.setItem("__io_order_try",JSON.stringify(i)),a},saveBusketSendAction:function(e){if(r.getStorageStatusLocal()){t.localStorage.removeItem("__io_order_try"),t.localStorage.removeItem("__io_add_to_busket");var o=r.parseJSONSafe(t.localStorage.getItem("__io_order_complete"))||[];if(-1===o.indexOf(e))return o.push(e),t.localStorage.setItem("__io_order_complete",JSON.stringify(o)),!0}},addDefaultSlices:function(e){e.page=o.title;var t=r.getPreviousURI(),i=r.getPreviousPageTitle();t&&("/"===t?e.previous_page="Main Page":i&&(e.previous_page=i)),e.user_id=r.getUserId(),e.browser=r.getBrowserName(),e.referrer=r.getReferrer(),e.device=r.getDeviceName(),e.lifetime=r.getUserLifeTimeNumber(),e.user_type=r.getUserType();var n=this._io_moon_utm(e);for(var a in this._io_moon_send_visit(),n)n.hasOwnProperty(a)&&(e[a]||(e[a]=n[a]));!e.referrer&&e.source&&(e.referrer=e.source)},forceAddToBasket:function(e){var t=r.cloneObjectShallow(e.slices);t.count=this.getAvailableBasketItemsCount(r.hashFnv32a(e.slices.product_id+e.slices.coins_int),e.repeatCount),t.count&&this.parseAndSendEventAsMetric({event:"add_to_basket"},t)},parseAndSendEventAsMetric:function(e,t){var o,i,n,a,s={name:null,slices:{},repeatCount:1},c=["category","sub_category","sub_sub_category","extra_category"],u={order:"try_order_send",checkout:"basket_send",send_user_data:"user_data",search:"search_queries"};for(a in t)t.hasOwnProperty(a)&&(e.hasOwnProperty(a)||(e[a]=t[a]));for(o in e)if(e.hasOwnProperty(o)){if(i=e[o],r.identifyArray(i)){if(!i.join("").trim())continue}else if(("object"!=typeof i||null==i)&&!(i=String(i).trim()))continue;switch(o){case"count":s.repeatCount=i;break;case"product_url":s.slices.url=r.parseURL(i).pathname;break;case"categories":for(n=0;n0&&e.indexOf(location.hostname)<10;if(new RegExp("^(www.)?"+t.location.hostname.replace(/^www\./,"")).test(r.parseURL(e).hostname)&&(n=!0),""!==i.projectMainDomain&&new RegExp(i.projectMainDomain+"$").test(r.parseURL(e).hostname)&&(n=!0),n)return"direct";var a=r.getSearchParam("utm_source");"mail"==a?e="mail":a&&""==e&&(e=a);var s=r.getSearchParam("io_utm_social");if(s&&(e=s),location.search.indexOf("utm_referrer=https%3A%2F%2Fzen.yandex.com")>-1||location.search.indexOf("utm_referrer=https%3A%2F%2Fzen.yandex.ru")>-1||"zen.yandex.ru"===e)return"yandex_zen";if("?f"==location.search)return"facebook_group";var c=["liqpay","privatbank","PayParts","portmone","paymaster"];for(var u in c)if(e.indexOf(c[u])>-1)return"direct";return-1!==(e=e.replace("www.","")).indexOf("/")&&(e=e.split("/")[2]),-1!==(e=-1===(e=e.replace(/\.$/,"")).indexOf("plus.google.")?e.replace(/google\.[a-z]+(\.[a-z]+)?/,"google"):e.replace(/google(\.[a-z]+)?(\.[a-z]+)?/i,"google")).indexOf("plus.url.google")&&(e="google.plus"),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/([m|mobile|web|mbasic|touch]\.)?facebook\.com/,"facebook")).replace(/facebook/i,"facebook")).replace(/fb\.me/,"facebook")).replace(/^fb$/,"facebook")).replace(/(m\.)?vk\.com/,"vk.com")).replace(/vkontakte\.ru/,"vk.com")).replace(/^vk$/,"vk.com")).replace(/([a-z_]+).vk.com/,"vk.com")).replace(/^t\.co/,"twitter")).replace(/clck\.yandex\.ru/,"yandex.ru")).replace(/yandex\.[a-z]+(\.[a-z]+)?/,"yandex.ru")).replace(/m\.ok\.ru/,"ok.ru")).replace(/l\.facebook/,"facebook")).replace(/lfacebook/,"facebook")).replace(/mobifacebook/,"facebook")).replace(/wefacebook/,"facebook")).replace(/twitter.com/,"twitter")).replace(/com.google/,"google")).replace(/Google/,"google")).replace(/([a-z_]+).yahoo.com/,"yahoo.com")).replace(/([a-z_]+).bing.com/,"bing.com")).replace(/([a-z_]+).baidu.com/,"baidu.com")).replace(/m\.news\.yandex/,"news.yandex")).replace(/googleads\.g\.doubleclick\.net/,"doubleclick.net")).replace(/(.*)\.directadvert\.ru/,"directadvert.ru")).indexOf("news")&&-1!==e.indexOf("yandex")&&(e="news.yandex.ru"),e=(e=(e=e.replace(/duckduckgo\.com/i,"duckduckgo")).replace(/ecosia\.org/i,"ecosia")).replace(/[:,]/g,"_")}()},_io_moon_set_source:function(e,t,o){return e.source||(e.source=t&&"direct"==o?t:o),"direct"==e.source&&(e.io_source=e.io_utm=e.medium=e.campaign=e.term=e.content=""),e},_io_moon_set_visit_flag:function(){this._io_moon_setCookie("__io_visit_pageviews_flag",1)},_io_moon_reset_visit_flag:function(){r.deleteCookie("__io_visit_pageviews_flag")},_io_moon_one_visit_per_page:2,_io_moon_send_visit:function(){this._io_moon_one_visit_per_page>2?this._io_moon_reset_visit_flag():r.getCookieValue("__io_visit_pageviews_flag")&&(this._io_moon_reset_visit_flag(),this._io_moon_one_visit_per_page++,t._io_data.push({event:"visits_pageviews"}))},_io_moon_set_visit_expire:function(){var e=new Date((new Date).getTime()+864e5).toUTCString(),t=Date.now(),o="__io_visit_expire."+(new Date).getDate()+".day";this._io_moon_setCookie(o,t,e)},_io_moon_check_visit_expire:function(){var e=i.projectVisitsDuration||15,t="__io_visit_expire."+(new Date).getDate()+".day";if(!r.getCookieValue(t))return!1;var o=r.getCookieValue(t)?parseInt(r.getCookieValue(t),10):Date.now();return(Date.now()-o)/1e3/600)for(var o=0;o0&&(e.io_source="google|cpc",e.io_utm=t,e.medium||(e.medium="cpc"),e.source||(e.source="google")),e},_io_moon_reset_utm:function(e){var t=[];for(var o in e)e.hasOwnProperty(o)&&t.push(o+"}:{"+e[o]);this._io_moon_set_visit_expire(),this._io_moon_set_visit_flag(),this._io_moon_setCookie("__io_moon_utm_prom1",t.length>0?t.join("}*{"):"")},_io_moon_same_host:function(){return o.referrer.indexOf(location.hostname)>0&&o.referrer.indexOf(location.hostname)<10},transformEventHook:function(e){},init:function(){r.setIntervalSafe(t,function(){if(r.getDeepPropertySafe(t,["_io_data","length"])){var e=t._io_data.pop();this.transformEventHook(e),r.getDeepPropertySafe(e,["event"])&&this.parseAndSendEventAsMetric(e)}}.bind(this),10)}};return n}(window,document,e.helpers,e.defaults),void 0===e)e={};if(e.nonConfigViewTracker=function(e,t,o){var r={init:function(){o.identifyArray(e._io_data)||(e._io_data=[]),e._io_data.push({event:"pageviews"})}};return r}(window,document,e.helpers),void 0===e)e={};if(e.previousPageWatcher=function(e,t,o){var r={listenForConfigAndPageMatchOnce:function(){o.bindOnPageDescriptorAppearance(e.location.href,function(e){var o=e.getSlices();t.setPreviousURI(o.url,o.domain),"disabled"!==o.page_conversion&&t.setConversionsPageData(o)}.bind(this))},listenForPageChnages:function(){t.bindOnUrlChange(this.listenForConfigAndPageMatchOnce.bind(this))},init:function(){"object"!=typeof e.__io&&(e.__io={}),e.__io.isPreviousPageWatcherInitialized||(e.__io.isPreviousPageWatcherInitialized=!0,o?(this.listenForConfigAndPageMatchOnce(),this.listenForPageChnages()):(t.setPreviousURI(e.location.pathname,e.location.hostname),t.bindOnUrlChange(function(){t.setPreviousURI(e.location.pathname,e.location.hostname)})))}};return r}(window,e.helpers,e.configParser),e.helpers.loadComponentAsync(e.debugCodeLoader))return;try{if(function(e){e.defaults.trackingHost="ttt.onthe.io",e.nonConfigViewTracker.init=function(){},e.eventAPI.forceAddToBasket=function(){},e.defaults.projectMainDomain=null,e.nextPageMetricQueueService.clearBySending=function(){var t,o=this._getQueue();if(o)for(window.localStorage.removeItem(this.storageKey),t=0;t0)){t.previous_page="",t.url=e.helpers.parseURL(document.location.href).pathname,t.previous_url=e.helpers.getPreviousURI(),void 0===t.previous_url&&(t.previous_url=""),t.domain=e.helpers.parseURL(document.location.href).hostname,t.landing_url=r({});var o=e.helpers.getPreviousPromCustomerId();if(t.prom_customer_id&&t.prom_customer_id==o||(t.previous_url=""),t.categories&&n(t),t.is_prosale&&"yes"==t.is_prosale&&t.product_id&&"product_click"==t.event)try{window.sessionStorage.setItem("is_p"+t.product_id,1)}catch(e){}"product_view: view_on_site"==t.page_type&&(t.page_type="product_view_view_on_site");var a=e.eventAPI._io_moon_utm();if(a.source.includes("facebook")&&"cpc"===a.medium&&(t.source="criteo"),"fb"===a.source&&"cpc"===a.medium&&(t.source="criteo"),a.source.includes("instagram")&&"cpc"===a.medium&&(t.source="criteo"),"cpc"==a.medium&&a.source.indexOf("google")>=0&&(t.source="Adwords"),"cpc"==a.medium&&a.source.indexOf("Google")>=0&&(t.source="Adwords"),"cpc"==a.medium&&a.source.indexOf("yandex")>=0&&(t.source="Yandex Direct"),"cpc"==a.medium&&a.source.indexOf("Yandex")>=0&&(t.source="Yandex Direct"),a.source.indexOf("yabs.yandex.ru")>=0&&(t.source="Yandex Direct"),a.source.indexOf("criteo")>=0&&(t.source="criteo"),a.source.indexOf("doubleclick.net")>=0&&(t.source="Adwords"),a.source.toLowerCase().indexOf("nova.rambler.ru")>=0&&(t.source="rambler.ru"),e.defaults.projectMainDomain||(a.source.indexOf("tiu.ru")>=0&&(t.source="tiu.ru"),a.source.indexOf("prom.ua")>=0&&(t.source="prom.ua"),a.source.indexOf("satu.kz")>=0&&(t.source="satu.kz"),a.source.indexOf("bigl.ua")>=0&&(t.source="bigl.ua"),a.source.indexOf("deal.by")>=0&&(t.source="deal.by")),"add_to_basket"==t.event&&(t.val=t.count),t.prom_customer_id&&("pageviews"==t.event&&i(t,"pageviews_merchant"),"callback"==t.event&&i(t,"callback_merchant"),"contact_seller"==t.event&&i(t,"contact_seller_merchant"),"contact_now"==t.event&&i(t,"contact_now_merchant"),"open_seller_contact"==t.event&&i(t,"open_seller_contact_merchant")),void 0===t.cart){if("pageviews"==t.event){if(t.prom_customer_id){var s;try{s=window.sessionStorage.getItem("io_session_tracked."+t.prom_customer_id)}catch(e){}if(!s){window.addEventListener("message",function(e){if("_io_message"==e.data){try{sessionStorage.setItem("io_session_tracked."+t.prom_customer_id,1)}catch(e){}i(t,"visits_merchant")}});var c=document.createElement("iframe");c.style.display="none",c.src="https://cdn.onthe.io/ift_LoD6SGe8vMTb.html?";var u={prom_customer_id:t.prom_customer_id,origin:location.protocol+"//"+location.hostname+"/"};for(var _ in u)c.src+=_+"="+encodeURIComponent(u[_])+"&";document.body.appendChild(c)}}window.cached_slices_state=t;var l="__io_v_pv_"+(new Date).getDate()+"."+(new Date).getMonth()+"."+(e.helpers.getReferrer()||"");try{var d=e.helpers.getCookieValue(l)?"set":"no"}catch(e){d="error"}if(window._io_data.push({event:"debug_visits",client_id:t.client_id,user_agent:navigator.userAgent,cookie:l,cookie_set:d,uid:e.helpers.getCookieValue("__io")}),!e.helpers.getCookieValue(l)){var m={event:"visits"};for(var _ in t)"event"!=_&&(m[_]=t[_]);window._io_data.push(m);var g=new Date((new Date).getTime()+18e5).toUTCString(),p=e.eventAPI._io_moon_calc_domain_for_all_subdomains();e.helpers.setCookie(l,1,g,null,p)}}if("product_click"==t.event||"add_to_basket"==t.event){var h=e.helpers.cloneObjectShallow(t);t.event=null,e.eventAPI.addDefaultSlices(h),e.helpers.sendMetricPreventCancellation(h.event,h)}}else{for(var _=0;_-1)return"direct";var a=r.indexOf(location.hostname)>0&&r.indexOf(location.hostname)<10;if(new RegExp("^(www.)?"+window.location.hostname.replace(/^www\./,"")).test(e.helpers.parseURL(r).hostname)&&(a=!0),""!==e.defaults.projectMainDomain&&new RegExp(e.defaults.projectMainDomain+"$").test(e.helpers.parseURL(r).hostname)&&(a=!0),a||e.helpers.setCookie("__io_r3",r,null,null,o),a&&!t){var s=e.helpers.getCookieValue("__io_r3");if(!s)return"direct";r=s}return-1!==(r=r.replace("www.","")).indexOf("/")&&(r=r.split("/")[2]),-1!==(r=-1===(r=r.replace(/\.$/,"")).indexOf("plus.google.")?r.replace(/google\.[a-z]+(\.[a-z]+)?/,"google"):r.replace(/google(\.[a-z]+)?(\.[a-z]+)?/i,"google")).indexOf("plus.url.google")&&(r="google.plus"),-1!==(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r.replace(/([m|mobile|web|mbasic|touch]\.)?facebook\.com/,"facebook")).replace(/facebook/i,"facebook")).replace(/fb\.me/,"facebook")).replace(/^fb$/,"facebook")).replace(/(m\.)?vk\.com/,"vk.com")).replace(/vkontakte\.ru/,"vk.com")).replace(/^vk$/,"vk.com")).replace(/([a-z_]+).vk.com/,"vk.com")).replace(/^t\.co/,"twitter")).replace(/clck\.yandex\.ru/,"yandex.ru")).replace(/yandex\.[a-z]+(\.[a-z]+)?/,"yandex.ru")).replace(/m\.ok\.ru/,"ok.ru")).replace(/l\.facebook/,"facebook")).replace(/lfacebook/,"facebook")).replace(/mobifacebook/,"facebook")).replace(/wefacebook/,"facebook")).replace(/twitter.com/,"twitter")).replace(/com.google/,"google")).replace(/Google/,"google")).replace(/([a-z_]+).yahoo.com/,"yahoo.com")).replace(/([a-z_]+).bing.com/,"bing.com")).replace(/([a-z_]+).baidu.com/,"baidu.com")).replace(/m\.news\.yandex/,"news.yandex")).replace(/googleads\.g\.doubleclick\.net/,"doubleclick.net")).replace(/(.*)\.directadvert\.ru/,"directadvert.ru")).indexOf("news")&&-1!==r.indexOf("yandex")&&(r="news.yandex.ru"),r=(r=(r=r.replace(/duckduckgo\.com/i,"duckduckgo")).replace(/ecosia\.org/i,"ecosia")).replace(/[:,]/g,"_")}();return e.helpers.getCookieValue("__io_first_source")||e.helpers.setCookie("__io_first_source",r,null,null,o),r}}(e))return}catch(t){e.helpers.trackErrorMetric(t)}if(e.helpers.loadComponentAsync(e.doubleLoadingDetector))return;e.helpers.loadComponentAsync(e.previousPageWatcher),e.helpers.loadComponentAsync(e.nextPageMetricQueueService),e.helpers.loadComponentAsync(e.eventAPI),e.helpers.loadComponentAsync(e.nonConfigViewTracker)}catch(t){try{e.helpers.trackErrorMetric(t)}catch(e){}}}()}]);