!function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t){!function(){"use strict";try{if(void 0===e)var e={};if(e.defaults={trackingHost:"tt.onthe.io",projectId:"27517",projectSignature:"66b2e6f2ee9bf1cd07926eda2eb3d100",projectCodeId:"LHn8KBueZhRi",projectCodeVersion:"3",projectUniquesBySuperdomain:"0",projectVisitsBySuperdomain:"0",projectVisitsDuration:"15",projectVideosWithoutMarkup:"",holdingHash:"706883b06a062c21e41007de559bebc8",holdingId:"27277",excludeReferrersByDomain:""},void 0===e)e={};if(e.doubleLoadingDetector=function(e,t){var i={init:function(){var i,n=e.getElementsByTagName("script"),r=0;for(i=0;i<n.length;i++)-1!==(n[i].getAttribute("src")||"").indexOf("io.js/"+t.projectCodeId)&&n[i].attributes.hasOwnProperty("data-io-loaded")&&r++;if(r)return!0;for(i=0;i<n.length;i++)-1!==(n[i].getAttribute("src")||"").indexOf("io.js/"+t.projectCodeId)&&n[i].setAttribute("data-io-loaded","")}};return i}(document,e.defaults),void 0===e)e={};if(e.helpers=function(e,t,i){var n={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(t){var i=e.location.pathname;this.setIntervalSafe(e,function(){e.location.pathname!==i&&(i=e.location.pathname,t())},100)},bindOnElementInsertion:function(i,n,r){r||(r=t);var a=r.querySelectorAll(i);a=e.Array.prototype.slice.call(a),this.setIntervalSafe(e,function(){var t,o=r.querySelectorAll(i);for(t=0;t<o.length;t++)-1===e.Array.prototype.indexOf.call(a,o[t])&&(a.push(o[t]),n(o[t]))},1e3)},sendGetRequest:function(t){"function"==typeof e.XMLHttpRequest?this.getRemoteContent(t):(new Image).src=t},getRemoteContent:function(t,i){i||(i=function(){});var n=new e.XMLHttpRequest;n.onreadystatechange=function(){this.readyState===e.XMLHttpRequest.DONE&&(200===this.status?i(this.responseText):i(void 0))},n.open("GET",t,!0),n.send()},getEnumerableKeys:function(e){var t,i=[];for(t in e)e.hasOwnProperty(t)&&i.push(t);return i},getDeepPropertySafe:function(e,t){for(var i=0;i<t.length;i++)e=e[t[i]];return e}};return n.getDeepPropertySafe=function(e,t){var i;try{for(i=0;i<t.length;i++)e=e[t[i]];return e}catch(e){return}},n.parseJSONSafe=function(t){try{return e.JSON.parse(t)}catch(e){return}},n.parseURL=function(e){var i=t.createElement("a");i.href=e;var n={hash:i.hash,hostname:i.hostname,hostnameNaked:i.hostname.split(".").length>2?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};return"/"!==n.pathname.charAt(0)&&(n.pathname="/"+n.pathname),n},n.messageWindow=function(e,t){e.postMessage(JSON.stringify(t),"*")},n.messageFrameWindow=function(e,t){this.messageWindow(e.contentWindow,t)},n.createObject=function(t){if("function"==typeof e.Object.create)return e.Object.create(t);function i(){}return i.prototype=t,new i},n.cloneObjectShallow=function(t){return e.JSON.parse(e.JSON.stringify(t))},n.identifyArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},n.setIntervalSafe=function(e,t,i){return e.setInterval(function(){try{t.apply(null,arguments)}catch(e){this.trackErrorMetric(e)}}.bind(this),i)},n.addEventListenerSafe=function(e,t,i){var n=function(){try{i.apply(null,arguments)}catch(e){this.trackErrorMetric(e)}}.bind(this);return e.addEventListener(t,n),n},n.trackErrorMetric=function(i,n){n=n||"error_script";var r={title:"string"==typeof i?i:i.message+"\n\n"+i.stack,href:e.location.href,url:e.location.pathname,page:t.title,domain:e.location.hostname,user_agent:e.navigator.userAgent,referrer_uri:t.referrer};this.sendMetric(n,r)},n.getMetricParamString=function(t,n){(n=this.cloneObjectShallow(n)).cdn_version=i.projectCodeVersion;var r=[];for(var a in n)""!==n[a]&&n.hasOwnProperty(a)&&r.push(a+":"+this.encodeURIonce(n[a]));var o=t+"["+r.join()+"]";return o=o.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(e.parseInt(arguments[1],16))}),"/?k[]="+i.projectId+":"+o},n.deferMetricToSendInBatch=function(t,n,r){if(this.identifyArray(this.deferMetricToSendInBatch.metrics)||(this.deferMetricToSendInBatch.metrics=[]),this.deferMetricToSendInBatch.metrics.push(this.getMetricParamString(t,n)),!this.deferMetricToSendInBatch.intervalIsSet){this.deferMetricToSendInBatch.intervalIsSet=!0;var a=this.setIntervalSafe(e,function(){if(0===this.deferMetricToSendInBatch.metrics.length)return this.deferMetricToSendInBatch.intervalIsSet=!1,void e.clearInterval(a);for(var t="";this.deferMetricToSendInBatch.metrics.length&&(t+this.deferMetricToSendInBatch.metrics[0]).length<1900;)t+="&"+this.deferMetricToSendInBatch.metrics.shift();var n="https://"+i.trackingHost+"/"+t+"&s="+i.projectSignature+(r?"&__io="+this.getUserId():"")+"&"+Date.now();this.sendGetRequest(n)}.bind(this),1e3)}},n.sendMetric=function(e,t,n,r){var a="https://"+i.trackingHost+this.getMetricParamString(e,t)+"&s="+i.projectSignature+(n?"&_v="+n:"")+(r?"&__io="+this.getUserId():"")+"&"+Date.now();this.sendGetRequest(a)},n.hashFnv32a=function(e,t,i){var n,r,a=void 0===i?2166136261:i;for(n=0,r=e.length;n<r;n++)a^=e.charCodeAt(n),a+=(a<<1)+(a<<4)+(a<<7)+(a<<8)+(a<<24);return t?("0000000"+(a>>>0).toString(16)).substr(-8):a>>>0},n.getStorageStatus=function(){try{return e.sessionStorage.setItem("test","1"),e.sessionStorage.removeItem("test"),!0}catch(e){return!1}},n.setPreviousURI=function(t){if(this.getStorageStatus()){var i=this.parseJSONSafe(e.sessionStorage.getItem("__io_nav_state"))||{};e.sessionStorage.setItem("__io_nav_state",JSON.stringify({current:t,previous:i.current}))}},n.getPreviousURI=function(){if(this.getStorageStatus()){var t=this.parseJSONSafe(e.sessionStorage.getItem("__io_nav_state"))||{};return t.previous&&t.previous!==t.current?t.previous:void 0}},n.getPreviousPageTitle=function(){if(this.getStorageStatus()){var i,n,r=t.title;if(i=e.sessionStorage.getItem("__io_previous_page_title"),n=e.sessionStorage.getItem("__io_previous_page_title_bak"),i===r){if(n)return n}else if(e.sessionStorage.setItem("__io_previous_page_title",r),i)return e.sessionStorage.setItem("__io_previous_page_title_bak",i),i}},n.getSearchParam=function(t,i){var n=(i?this.parseURL(i).search:e.location.search).match("[?&]"+t+"=([^(&?)]*)");return n?n[n.length-1]:""},n.getCookieValue=function(e){var i=t.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return i?this.decodeURIrecursively(i[i.length-1]):""},n.setCookie=function(e,i,n,r,a,o){var s=new Date;s.setYear(s.getFullYear()+1),s=s.toUTCString(),n||(n=s),r||(r="/"),i&&(i=encodeURIComponent(i));var c=e+"="+(i||"")+"; expires="+n+"; path="+r+(a?"; domain="+a:"")+(o?"; secure":"");t.cookie=c},n.deleteCookie=function(e,t,i){this.setCookie(e,null,"Thu, 01 Jan 1970 00:00:01 GMT",t,i)},n.getDepth=function(){var t=new Date((new Date).getTime()+9e5).toUTCString(),i=this.hashFnv32a(e.location.pathname),n=this.getCookieValue("__io_d");if(!n||2!==n.split("_").length)return this.setCookie("__io_d","1_"+i,t),1;var r=n.split("_")[1],a=e.parseInt(n.split("_")[0],10);if(i==r)return a||1;var o=(a||0)+1;return this.setCookie("__io_d",o+"_"+i,t),o},n.getUserId=function(){var e=this.getCookieValue("__io");return e||(e=Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"."+Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"_"+Date.now()),this.setCookie("__io",e),e},n.getReferrerCurrentExternal=function(n){if(!(n=n||t.referrer))return null;var r=this.parseURL(n).hostnameNaked,a=this.parseURL(e.location.hostname).hostnameNaked;return-1!==n.indexOf(i.excludeReferrersByDomain)?null:r===a?null:r},n.getReferrerCurrentFromParams=function(t){t=t||e.location.href;var i=this.getSearchParam("io_source",t),n=this.getSearchParam("io_utm_social",t),r="?f"===this.parseURL(t).search?"facebook_group":null,a=this.getSearchParam("utm_source",t),o=this.getSearchParam("source",t);return i||n||r||a||o},n.getReferrer=function(t,i){var n=this.getReferrerCurrentFromParams(i)||this.getReferrerCurrentExternal(t),r="."+this.parseURL(e.location.hostname).hostnameNaked;return n?(this.setCookie("__io_r",n,null,null,r),n):this.getCookieValue("__io_r")},n.getReferrerFirst=function(t){var i=this.getCookieValue("__io_first_source"),n=this.getReferrer(t),r="."+this.parseURL(e.location.hostname).hostnameNaked;return!i&&n?(this.setCookie("__io_first_source",n,null,null,r),n):i},n.getDeviceName=function(){var t=e.navigator.userAgent||"undefined",i="desktop",n=/Android|webOS|iPhone|PlayBook|iPad|iPod|IEMobile|BlackBerry|Mobile|Opera Mini/i.test(t),r=/Tablet|PlayBook|iPad/i.test(t)||/Android/i.test(t)&&!/Mobile/i.test(t)&&!/Opera Mini/i.test(t),a=/Android/i.test(t),o=/iPhone|iPad|iPod/i.test(t);return n&&(r?(i="tablet",i+=a?" (Android)":o?" (iOS)":" (Other)"):(i="smart",i+=a?" (Android)":o?" (iOS)":" (Other)")),i},n.getBrowserNameAndVersion=function(){var t,i,n=e.navigator.userAgent,r="";switch(!0){case-1!==(t=n.indexOf("OPR/")):r=n.substring(t+4);break;case-1!==(t=n.indexOf("Opera"))&&-1!==(t=n.indexOf("Version")):r=n.substring(t+8);break;case-1!==(t=n.indexOf("Opera")):r=n.substring(t+6);break;case-1!==(t=n.indexOf("MSIE")):r=n.substring(t+5);break;case-1!==(t=n.indexOf("Chrome")):r=n.substring(t+7);break;case-1!==(t=n.indexOf("Safari"))&&-1!==(t=n.indexOf("Version")):r=n.substring(t+8);break;case-1!==(t=n.indexOf("Safari")):r=n.substring(t+7);break;case-1!==(t=n.indexOf("Firefox")):r=n.substring(t+8);break;case-1!==n.indexOf("Trident")&&-1!==(t=n.indexOf("rv:")):r=n.substring(t+3).split(")")[0];break;case(t=n.lastIndexOf(" ")+1)<(t=n.lastIndexOf("/")):r=n.substring(t+1)}return r=r.split(";")[0].split(" ")[0],i=(i=e.parseInt(r,10))||"(unknown version)",this.getBrowserName()+" "+i},n.getUserLifeTime=function(){var e=t.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"},n.getUserLifeTimeNumber=function(){var e=t.cookie.match(/__io_lv=([^;]+)/);return e?(e=e[1],e=Math.round((+Date.now()-e)/864e5)):"0"},n.getUserType=function(){var e="";if(-1==t.cookie.indexOf("__io=")){(n=new Date).setYear(n.getFullYear()+1);var i=Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"."+Math.floor(68719476736*(1+Math.random())).toString(16).substring(1);t.cookie="__io="+i+"_"+ +Date.now()+"; expires="+n.toUTCString()+"; path=/"}else{(n=new Date).setYear(n.getFullYear()+1),t.cookie="__io="+(void 0!==this.getCookieValue("__io")?this.getCookieValue("__io")+"; expires="+n.toUTCString()+"; path=/":"")}if(-1==t.cookie.indexOf("__io_lv="))e="new",(n=new Date).setYear(n.getFullYear()+1),t.cookie="__io_lv="+ +Date.now()+"; expires="+n.toUTCString()+"; path=/";else if(0==this.getUserLifeTime())e="new";else{var n,r=1*this.getUserLifeTimeNumber();e=r>30?"new":r>7?"returned":"constant",(n=new Date).setYear(n.getFullYear()+1),t.cookie="__io_lv="+ +Date.now()+"; expires="+n.toUTCString()+"; path=/"}return e},n.getBrowserName=function(){var i,n="",r=!!e.opr&&!!e.opr.addons||!!e.opera,a="undefined"!=typeof InstallTrigger,o=/constructor/i.test(e.HTMLElement)||"[object SafariRemoteNotification]"===(!e.safari||void 0!==e.safari&&e.safari.pushNotification).toString()||"Apple Computer, Inc."===e.navigator.vendor,s=!!t.documentMode,c=[{name:"Opera",isCurrent:r},{name:"Firefox",isCurrent:a},{name:"Safari",isCurrent:o},{name:"IE",isCurrent:s},{name:"Edge",isCurrent:!s&&!!e.StyleMedia},{name:"Chrome",isCurrent:!!e.chrome&&!!e.chrome.webstore},{name:"Opera Mini",isCurrent:"[object OperaMini]"===Object.prototype.toString.call(e.operamini)}];for(i=0;i<c.length;i++)c[i].isCurrent&&(n?n+=" ("+c[i].name+")":n=c[i].name);return n||"Other"},n.getReferenceTimeFromWordsCount=function(t){return Math.round(e.parseInt(t,10)/(190/60))},n.getTextFromElement=function(e){var t,i,n="",r=["SCRIPT","STYLE","NOSCRIPT","VIDEO"];for(i=0;i<e.childNodes.length;i++)t=e.childNodes[i],-1===r.indexOf(t.nodeName)&&(1===t.nodeType?n+=this.getTextFromElement(t):3===t.nodeType&&(n+=t.nodeValue));return n},n.getReferenceTimeFromBlock=function(e){var i,n;if(i=t.querySelector(e))return n=this.getTextFromElement(i).trim().split(/\s+/).length,this.getReferenceTimeFromWordsCount(n)},n.getSortedSemver=function(t){return t.sort(function(t,i){var n,r,a=/(\.0+)+$/,o=t.replace(a,"").split("."),s=i.replace(a,"").split("."),c=Math.min(o.length,s.length);for(n=0;n<c;n++)if(r=e.parseInt(o[n],10)-e.parseInt(s[n],10))return r;return o.length-s.length})},n.injectScriptBySrc=function(e,i){var n=t.getElementsByTagName("script")[0],r=t.createElement("script");r.id=i,r.async=!0,r.src=e,n.parentNode.insertBefore(r,n)},n.loadComponentAsync=function(e){try{e.init()}catch(e){this.trackErrorMetric(e)}},n}(window,document,e.defaults),void 0===e)e={};if(e.configParser=function(e,t,i){var n={appendDefaultSlices:function(t,n){e.navigator.userAgent&&(t.user_agent=e.navigator.userAgent);var r=i.getPreviousURI();if(r&&(t.pr=r),i.decodeURIrecursively(t.url)!==i.decodeURIrecursively(e.location.pathname)&&(t.url_real=e.location.pathname),t.device=i.getDeviceName(),t.browser_version=i.getBrowserNameAndVersion(),t.browser=i.getBrowserName(),t.referrer=i.getReferrer(null,n),t.first_source=i.getReferrerFirst(),t.depth=i.getDepth(),t.user_type=i.getUserType(),!t.reference_time){var a=i.getReferenceTimeFromBlock('[data-io-article-url="'+n+'"]');a&&(t.reference_time=a)}t.user_id=i.getUserId()},transformSliceValue:function(e){return String(e).trim()},transformSliceValuePlural:function(e){var t,i,n=[];for(t=0;t<e.length;t++)(i=this.transformSliceValue(e[t]))&&-1===n.indexOf(i)&&n.push(i);return n.join("|")},getSlicesFromPageDescriptor:function(e){var t,n,r,a={};for(t in e)if(e.hasOwnProperty(t)&&(n=e[t])&&(n=i.identifyArray(n)?this.transformSliceValuePlural(n):this.transformSliceValue(n)))switch(t){case"page_url":a.url||(r=i.parseURL(n),a.domain=r.hostname,a.url=r.pathname);break;case"page_url_canonical":if("main"===e.page_type)break;r=i.parseURL(n),a.domain=r.hostname,a.url=r.pathname+r.search;break;case"page_title":a.page=n;break;case"page_type":"article"!==n||a.author||(a.author="No Author"),"main"===n&&(a.url="/");break;case"page_language":a.language=n;break;case"article_authors":"article"===e.page_type&&(a.author=n);break;case"article_categories":a.category=n;break;case"article_subcategories":a.sub_category=n;break;case"article_type":a.type_article=n;break;case"article_word_count":a.reference_time=i.getReferenceTimeFromWordsCount(n);break;case"article_publication_date":a.pub_date=n;break;default:a[t]=n}return a},getLatestConfig:function(){if("[object Object]"===String(e._io_config)){var t=i.getSortedSemver(i.getEnumerableKeys(e._io_config)).pop();return e._io_config[t]}}},r={init:function(e){return this.data=e,this},testForRequiredFields:function(){if(r.errorTrackedOnce)return!0;var e,t=[],n=["page_url","page_title","page_type"];for(e=0;e<n.length;e++)this.data[n[e]]||t.push(n[e]);return 0!==t.length?(i.trackErrorMetric("Configuration properties are missing: "+t.join(", "),"error_config"),r.errorTrackedOnce=!0,t):void 0},getSlices:function(){var e=n.getSlicesFromPageDescriptor(this.data);return n.appendDefaultSlices(e,this.data.page_url,e.url),e},getPageType:function(){return String(this.data.page_type).trim()}};return n.PageDescriptor=r,n.getPageDescriptor=function(t){var n=this.getLatestConfig();if(n){var a,o,s=t?i.parseURL(t).pathname:e.location.pathname;"/"!==(s=i.decodeURIrecursively(s)).slice(-1)&&(s+="/");for(var c=n.length;c--;)if((a=n[c]).page_url&&(o=i.parseURL(a.page_url).pathname,"/"!==(o=i.decodeURIrecursively(o)).slice(-1)&&(o+="/"),o===s))return i.createObject(r).init(a)}},n.bindOnPageDescriptorAppearance=function(t,n,r){r||(r=["main","article","default"]);var a=i.setIntervalSafe(e,function(){var i=this.getPageDescriptor(t);i&&-1!==r.indexOf(i.getPageType())&&(i.testForRequiredFields()||(e.clearInterval(a),n(i)))}.bind(this),100)},n}(window,document,e.helpers),void 0===e)e={};if(e.uniqueTracker=function(e,t,i,n){var r={init:function(){n.bindOnPageDescriptorAppearance(e.location.href,function(n){var r="__io_unique_"+t.projectId,a=document.cookie.match(new RegExp(r+"=([^;]+)"));if(-1==document.cookie.indexOf(r+"=")||a&&a[1]&&a[1]!=(new Date).getDate()){var o=new Date((new Date).setYear((new Date).getFullYear()+1)).toUTCString(),s=r+"="+(new Date).getDate()+"; expires="+o+"; path=/";e.parseInt(t.projectUniquesBySuperdomain,10)&&(s+=";domain=."+e.location.hostname.replace(/^www\./,"")),document.cookie=s,i.sendMetric("uniques_instantly",n.getSlices())}})}};return r}(window,e.defaults,e.helpers,e.configParser),void 0===e)e={};if(e.holdingUniqueTracker=function(e,t,i){var n={setStateCookie:function(i){var n=i+"=1; expires="+new Date((new Date).setHours(24,0,0,0)).toUTCString()+"; path=/";e.parseInt(t.projectUniquesBySuperdomain,10)&&(n+=";domain=."+e.location.hostname.replace(/^www\./,"")),document.cookie=n},sendHoldingMetric:function(e){var n="https://"+t.trackingHost+"/?k[]="+t.holdingId+":uniques_holding&s="+t.projectSignature+"&__io="+(e||i.getUserId())+"&"+Date.now();i.sendGetRequest(n)},init:function(){if(t.holdingHash&&t.holdingId&&-1===document.cookie.indexOf("__io_uh")&&(this.setStateCookie("__io_uh"),!document.getElementById("io-holdingjs"))){var n="https://"+t.trackingHost+"/uniques/?current="+(new Date).getDate()+"&holding="+t.holdingHash+"&hash_user="+i.getUserId()+"&"+Date.now();i.injectScriptBySrc(n,"io-holdingjs");var r=i.setIntervalSafe(e,function(){if(void 0!==e._io_uniques_holing_params){if(e.clearInterval(r),"track"===e._io_uniques_holing_params)return this.sendHoldingMetric();var i=e._io_uniques_holing_params.match(new RegExp("(?:^|; )"+("io_uid"+t.holdingHash).replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")),n=e._io_uniques_holing_params.match(new RegExp("(?:^|; )"+"io_user_hash".replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));(i&&i[1]&&i[1]!=(new Date).getDate()||!i)&&this.sendHoldingMetric(n[1])}}.bind(this),250)}}};return n}(window,e.defaults,e.helpers),void 0===e)e={};if(e.visitTracker=function(e,t,i,n){var r={init:function(){var r="__io_visit_"+i.projectId;n.bindOnPageDescriptorAppearance(e.location.href,function(n){if(-1===document.cookie.indexOf(r)){var a=e.parseInt(i.projectVisitsDuration,10),o=r+"=1; expires="+new Date((new Date).getTime()+60*a*1e3).toUTCString()+";  path=/";e.parseInt(i.projectVisitsBySuperdomain,10)&&(o+=";domain=."+e.location.hostname.replace(/^www\./,"")),document.cookie=o,t.sendMetric("visits_instantly",n.getSlices(),null,!0)}})}};return r}(window,e.helpers,e.defaults,e.configParser),void 0===e)e={};if(e.viewTracker=function(e,t,i){var n={listenForConfigAndPageMatchOnce:function(){i.bindOnPageDescriptorAppearance(e.location.href,function(e){var i=e.getSlices();t.sendMetric("pageviews",i)}.bind(this))},listenForPageChnages:function(){t.bindOnUrlChange(this.listenForConfigAndPageMatchOnce.bind(this))},init:function(){this.listenForConfigAndPageMatchOnce(),this.listenForPageChnages()}};return n}(window,e.helpers,e.configParser),void 0===e)e={};if(e.readabilityTracker=function(e,t,i,n){var r={getScrollPercent:function(){var t=this.element.getBoundingClientRect().bottom-this.element.getBoundingClientRect().top;if(!t)return 0;var i=(e.innerHeight-this.element.getBoundingClientRect().bottom)/t,n=i>0?0:i<-1?-1:i;return n=100-Math.abs(Math.floor(100*n)),Math.abs(n)},sendMetric:function(e){n.bindOnPageDescriptorAppearance(this.url,function(t){i.sendMetric(e,t.getSlices())})},tryToTrackReadabilityAndUnbind25:function(){this.getScrollPercent()<=25||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind25),this.sendMetric("read_top"))},tryToTrackReadabilityAndUnbind50:function(){this.getScrollPercent()<=50||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind50),this.sendMetric("read_middle"))},tryToTrackReadabilityAndUnbind75:function(){this.getScrollPercent()<=75||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind75),this.sendMetric("read_bottom"))},tryToTrackReadabilityAndUnbind95:function(){this.getScrollPercent()<=95||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind95),this.sendMetric("read_finished"))},bindEvents:function(){this.boundHandles={},this.boundHandles.tryToTrackReadabilityAndUnbind25=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind25.bind(this)),this.boundHandles.tryToTrackReadabilityAndUnbind50=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind50.bind(this)),this.boundHandles.tryToTrackReadabilityAndUnbind75=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind75.bind(this)),this.boundHandles.tryToTrackReadabilityAndUnbind95=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind95.bind(this))},init:function(e){this.element=e,this.url=e.getAttribute("data-io-article-url"),this.bindEvents()}},a={trackExistingArticles:function(){var e,n,a=t.querySelectorAll("[data-io-article-url]");for(e=0;e<a.length;e++)(n=i.createObject(r)).init(a[e]),this.instances.push(n)},listenForNewArticles:function(){i.bindOnElementInsertion("[data-io-article-url]",function(e){var t=i.createObject(r);t.init(e),this.instances.push(t)}.bind(this))},init:function(){this.instances=this.instances||[],this.trackExistingArticles(),this.listenForNewArticles()}};return{init:function(){a.init()},ArticleReadabilityTracker:a,ArticleToRead:r}}(window,document,e.helpers,e.configParser),void 0===e)e={};if(e.timeTracker=function(e,t,i,n){var r={init:function(){i.setIntervalSafe(e,function(){("function"!=typeof t.hasFocus||t.hasFocus())&&(t.hidden||n.bindOnPageDescriptorAppearance(e.location.href,function(e){var t=e.getSlices();t.url&&i.sendMetric("time",{url:t.url})}))},1e4)}};return r}(window,document,e.helpers,e.configParser),void 0===e)e={};if(e.videoTracker=function(e,t,i,n,r){var a={getSlicesForEmbed:function(){var r,a,o=e.cloneObjectShallow(this.slices);if(n.appendDefaultSlices(o),r=t.referrer){var s=r;s=e.decodeURIrecursively(s),s=e.parseURL(s),o.domain=s.hostname,o.url=s.pathname,o.page=s.hostname+s.pathname}else o.domain=i.location.hostname,o.url=i.location.pathname,o.page=i.top===i?"Direct Page Open":"Other Embed Methods";try{a=i.top.document.referrer}catch(e){}return a&&(o.referrer=e.getReferrer(a)),o},getSlicesForDefault:function(t){var i,n=e.cloneObjectShallow(t);for(i in this.slices)this.slices.hasOwnProperty(i)&&(n[i]=this.slices[i]);return n},sendMetricWithMergedSlices:function(t){n.bindOnPageDescriptorAppearance(this.instantiationUrl,function(i){var n,r;"video-embed"===i.page_type?r=(n=this.getSlicesForEmbed()).project_id||null:(n=this.getSlicesForDefault(i.getSlices()),r=null),e.sendMetric(t,n,null,null,r)}.bind(this),["main","article","default","video-embed"])},trackView:function(){this.sendMetricWithMergedSlices("video_view")},trackStart:function(){this.sendMetricWithMergedSlices("video_started")},trackFinish:function(){this.sendMetricWithMergedSlices("video_watch_finished")},trackLeave:function(){this.slices.time_int&&this.sendMetricWithMergedSlices("video_left")},setSliceVideoId:function(t){var i=e.parseURL(t);this.slices.video_id=i.hostname+i.pathname},instantiate:function(e){this.element=e,this.slices={title:t.title,type:"default",reference_time:0,time_int:0},this.instantiationUrl=i.location.href,this.setSliceVideoId(i.location.href)}},o=e.createObject(a);o.instantiateFrame=function(e){this.instantiate(e),this.element.src&&this.setSliceVideoId(this.element.src)};var s={trackExistingVideos:function(){var t,i,n=this.containerElement.querySelectorAll(this.elementSelector);for(t=0;t<n.length;t++)(i=e.createObject(this.instancePrototype)).elementSelector=this.elementSelector,i.init(n[t]),this.instances.push(i)},listenForNewVideos:function(){e.bindOnElementInsertion(this.elementSelector,function(t){var i=e.createObject(this.instancePrototype);i.elementSelector=this.elementSelector,i.init(t),this.instances.push(i)}.bind(this),this.containerElement)},initializeStructure:function(e,i,n){this.instancePrototype=i,this.elementSelector=e,this.containerElement=n||t,this.instances=this.instances||[]},startTracking:function(){this.trackExistingVideos(),this.listenForNewVideos()}},c=e.createObject(a);c.bindEvents=function(){this.boundHandles={},this.boundHandles.trackStartAndUnbind=e.addEventListenerSafe(this.element,"play",this.trackStartAndUnbind.bind(this)),this.boundHandles.trackFinishAndUnbind=e.addEventListenerSafe(this.element,"ended",this.trackFinishAndUnbind.bind(this)),this.boundHandles.trackLeaveAndUnbind=e.addEventListenerSafe(i,"beforeunload",this.trackLeaveAndUnbind.bind(this))},c.trackStartAndUnbind=function(){this.element.removeEventListener("play",this.boundHandles.trackStartAndUnbind),this.setSlicesTime(),this.trackStart()},c.trackFinishAndUnbind=function(){this.setSlicesTime(),this.trackFinish(),this.trackLeave(),this.element.removeEventListener("ended",this.boundHandles.trackFinishAndUnbind),i.removeEventListener("beforeunload",this.boundHandles.trackLeaveAndUnbind)},c.trackLeaveAndUnbind=function(){this.setSlicesTime(),this.trackLeave(),i.removeEventListener("beforeunload",this.boundHandles.trackLeaveAndUnbind)},c.setSlicesIfJwPlayer=function(){if("function"==typeof jwplayer&&"function"==typeof jwplayer().getContainer&&"function"==typeof jwplayer().getContainer().querySelector&&jwplayer().getContainer().querySelector(this.elementSelector)==this.element){this.slices.type="jwplayer";var t="string"!=typeof jwplayer.version||jwplayer.version[0]>6,i=e.getDeepPropertySafe(jwplayer(),["config","image"]);if(t){this.setSlicesTime=function(){this.slices.reference_time=e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","duration"])||0,this.slices.time_int=e.getDeepPropertySafe(jwplayer().getConfig(),["position"])||0};var n=e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","mediaid"])||e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","sources","0","file"]);n&&(this.slices.video_id=n),i=e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","images","0"])||e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","image"])||e.getDeepPropertySafe(jwplayer().getConfig(),["image"]);var r=e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","title"]);r&&(this.slices.title=r)}i&&(this.slices.image=i.split("//").pop())}},c.setSlicesTime=function(){this.slices.reference_time=this.element.readyState?this.element.duration:0,this.slices.time_int=this.element.readyState?this.element.currentTime:0},c.findAndSetSliceURL=function(){var e=(this.element.getElementsByTagName("source")[0]||{}).src||this.element.src;e&&(0===e.indexOf("blob:")&&(e=e.substring(5)),this.setSliceVideoId(e))},c.setImage=function(){var e=this.element.poster;e&&(this.slices.image=e.split("://").pop())},c.setTitle=function(){var e=this.element.getAttribute("data-io-video-title");e&&(this.slices.title=e)},c.init=function(e){this.instantiate(e),this.slices.type="html5",this.findAndSetSliceURL(),this.setSlicesTime(),this.setImage(),this.setTitle(),this.setSlicesIfJwPlayer(),this.trackView(),this.bindEvents()};var l=e.createObject(s);l.trackExistingVideos=function(t){this.usedElements||(this.usedElements=[]);var i,n,r,a=t||this.containerElement.querySelectorAll(this.elementSelector),o=[];for(n=0;n<a.length;n++){for(i=a[n];i&&"VIDEO"!==i.nodeName;)i=i.parentElement;"VIDEO"===i.nodeName&&-1===o.indexOf(i)&&o.push(i)}for(n=0;n<o.length;n++)-1===this.usedElements.indexOf(o[n])&&(this.usedElements.push(o[n]),(r=e.createObject(this.instancePrototype)).elementSelector=this.elementSelector,r.init(o[n]),this.instances.push(r))},l.listenForNewVideos=function(){e.bindOnElementInsertion(this.elementSelector,function(e){this.trackExistingVideos([e])}.bind(this),this.containerElement)},l.setVideoSelector=function(){var e;e=r.projectVideosWithoutMarkup?"video[src], video source":"video[data-io-video-title][src], video[data-io-video-title] source",this.selector=e},l.prepare=function(){this.setVideoSelector(),this.initializeStructure(this.selector,c)},l.start=function(){this.startTracking()};var d=e.createObject(o);d.prepareFrameElement=function(){var t=-1!==this.element.src.indexOf("enablejsapi=1"),n=-1!==this.element.src.indexOf("origin=");if(t&&n&&this.element.dispatchEvent(new Event("ioVideoFrameIsReady")),e.addEventListenerSafe(this.element,"load",function(){this.element.dispatchEvent(new Event("ioVideoFrameIsReady"))}.bind(this)),!t||!n){var r=e.parseURL(this.element.src),a=r.protocol+"//"+r.host+r.pathname+(r.search?r.search:"?")+(t?"":"&enablejsapi=1")+(n?"":"&origin="+e.encodeURIonce(i.location.origin))+(r.hash?"#"+r.hash:"");this.element.src=a}},d.requestMessages=function(){e.messageFrameWindow(this.element,{event:"listening",id:this.getPlayerId(),channel:"widget"})},d.processMessages=function(t){if(-1!==t.origin.indexOf("//www.youtube.com")){var n=e.parseJSONSafe(t.data)||{},r=n.info||{},a=e.getDeepPropertySafe(n,["info","videoData","video_id"]),o=n.id||a,s=e.getDeepPropertySafe(n,["info","videoData","title"]);o==this.getPlayerId()&&(r.duration&&(this.slices.reference_time=r.duration),r.currentTime&&(this.slices.time_int=r.currentTime),s&&(this.slices.title=s),a&&(this.slices.video_id=a,this.slices.image="img.youtube.com/vi/"+a+"/0.jpg"),this.slices.title&&this.slices.video_id&&(this.state.viewed||(this.state.viewed=!0,this.trackView()),this.state.started||1!=r.playerState||(this.state.started=!0,this.trackStart()),!this.state.finished&&r.currentTime&&i.parseInt(r.currentTime,10)==i.parseInt(this.slices.reference_time,10)&&(this.state.finished=!0,this.trackFinish(),this.trackLeave(),i.removeEventListener("beforeunload",this.boundHandles.trackLeave),i.removeEventListener("message",this.boundHandles.processMessages))))}},d.bindEvents=function(){this.boundHandles={},this.boundHandles.requestMessages=e.addEventListenerSafe(this.element,"ioVideoFrameIsReady",this.requestMessages.bind(this)),this.boundHandles.processMessages=e.addEventListenerSafe(i,"message",this.processMessages.bind(this)),this.boundHandles.trackLeave=e.addEventListenerSafe(i,"beforeunload",this.trackLeave.bind(this))},d.getPlayerId=function(){var t=(this.element.src.match(/^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|\&v(?:i)?=)|(?:list=))([^#\&\?]*).*/)||[])[1],i=e.getSearchParam("widgetid",this.element.src),n=this.element.id?(this.element.id.match(/widget([0-9]+)$/)||[])[1]-1:null;return i||n||t},d.init=function(e){this.instantiateFrame(e),this.state={started:!1,finished:!1,viewed:!1},this.slices.type="youtube",this.slices.title="",this.bindEvents(),this.prepareFrameElement()};var u=e.createObject(s);u.prepare=function(){this.initializeStructure('iframe[src*="//www.youtube.com/embed"]',d)},u.start=function(){this.startTracking()};var h=e.createObject(o);h.requestMessages=function(){e.messageFrameWindow(this.element,{method:"getVideoTitle"}),e.messageFrameWindow(this.element,{method:"getDuration"}),e.messageFrameWindow(this.element,{method:"addEventListener",value:"playProgress"}),this.element.removeEventListener("ioVideoFrameIsReady",this.boundHandles.requestMessages)},h.prepareFrameElement=function(){if(-1!=this.element.src.indexOf("player_id="))return this.element.dispatchEvent(new Event("ioVideoFrameIsReady")),void(this.playerId=this.element.src.split("player_id=")[1].split("&")[0].split("#")[0]);e.addEventListenerSafe(this.element,"load",function(){this.element.dispatchEvent(new Event("ioVideoFrameIsReady"))}.bind(this));var t=this.element.src.split("?")[0].split("#")[0],i=this.element.src.split("?")[1];this.playerId=Math.floor(1e10*Math.random()),this.element.src=t+"?player_id="+this.playerId+(i?"&"+i:"")},h.processMessages=function(t){if(-1!=t.origin.indexOf("//player.vimeo.com")){var n=e.parseJSONSafe(t.data);n&&n.player_id==this.playerId&&("getVideoTitle"===n.method&&n.value&&(this.slices.title=n.value),"getDuration"===n.method&&n.value&&(this.slices.reference_time=n.value),!this.state.viewed&&this.slices.reference_time&&(this.state.viewed=!0,this.trackView()),"playProgress"===n.event&&n.data&&(this.slices.reference_time=n.data.duration||0,this.slices.time_int=n.data.seconds||0,this.state.started||(this.state.started=!0,this.trackStart()),this.state.finished||n.data.duration!==n.data.seconds||(this.state.finished=!0,this.trackFinish(),this.trackLeave(),i.removeEventListener("message",this.boundHandles.processMessages),i.removeEventListener("beforeunload",this.boundHandles.trackLeave))))}},h.bindEvents=function(){this.boundHandles={},this.boundHandles.requestMessages=e.addEventListenerSafe(this.element,"ioVideoFrameIsReady",this.requestMessages.bind(this)),this.boundHandles.processMessages=e.addEventListenerSafe(i,"message",this.processMessages.bind(this)),this.boundHandles.trackLeave=e.addEventListenerSafe(i,"beforeunload",this.trackLeave.bind(this))},h.setId=function(){var t=e.decodeURIrecursively(this.element.src).match(/\/video\/(\d+)/);t&&(this.vimeoId=t.pop())},h.init=function(e){this.instantiateFrame(e),this.setId(),this.vimeoId&&(this.slices.type="vimeo",this.slices.image="i.vimeocdn.com/video/"+this.vimeoId+"_480.jpg",this.state={started:!1,finished:!1,viewed:!1},this.bindEvents(),this.prepareFrameElement())};var f=e.createObject(s);return f.prepare=function(){this.initializeStructure('iframe[src*="//player.vimeo.com/video"]',h)},f.start=function(){this.startTracking()},{YoutubeVideoInstance:d,VimeoVideoInstance:h,GenericVideoInstance:a,HTML5VideoInstance:c,TrackerForHTML5Videos:l,TrackerForYoutubeVideos:u,TrackerForVimeoVideos:f,prepare:function(){this.TrackerForHTML5Videos.prepare(),this.TrackerForYoutubeVideos.prepare(),this.TrackerForVimeoVideos.prepare()},start:function(){this.TrackerForHTML5Videos.start(),this.TrackerForYoutubeVideos.start(),this.TrackerForVimeoVideos.start()},init:function(){this.prepare(),this.start()}}}(e.helpers,document,window,e.configParser,e.defaults),void 0===e)e={};if(e.widgetLoader=function(e,t,i,n,r){var a={reload:function(){this.clearDOM(),this.insertIntoDOM(),n.bindOnPageDescriptorAppearance(e.location.href,function(e){_io_widget.configSlices=e.getSlices(),_io_widget.configArticleBlockUrl=e.data.page_url,_io_widget.start()}.bind(this))},clearDOM:function(){for(var e=t.querySelectorAll('div[data-io-id="_io_widget_element"], script[data-io-id="_io_widget_element"]'),i=0;i<e.length;i++)e[i].remove()},insertIntoDOM:function(){var e=t.createElement("div"),i=t.createElement("script");i.type="text/javascript",i.text=this.data.widget.js,e.style.position="static",i.id="_io_widget_element_div",i.dataset.ioId=e.dataset.ioId="_io_widget_element",e.innerHTML=this.data.widget.html,t.body.appendChild(e),t.body.appendChild(i)},startWidget:function(e){this.clearDOM(),this.insertIntoDOM(),_io_widget.configSlices=e.getSlices(),_io_widget.configArticleBlockUrl=e.data.page_url,_io_widget.start(this.data.widget.type,this.data.widget.overall)},load:function(i,n,a){e._io_widget={id:n,hash:i};var o=new XMLHttpRequest,s=-1==t.cookie.indexOf("_io_widget_debug")?"https://widget.onthe.io":"https://dev_widget.onthe.io",c={id:n,hash:i,title:t.title,force_type:"main_new",path:e.location.pathname+e.location.search};o.open("POST",s,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var i=JSON.parse(o.responseText);if(!i)return;this.data=i;var n=r.setIntervalSafe(e,function(){t.body&&(e.clearInterval(n),this.startWidget(a))}.bind(this),1e3)}}.bind(this);var l="";for(var d in c)l+=d+"="+encodeURIComponent(c[d])+"&";o.send(l)},init:function(){var a=(e.location.hash.match(/^#client-widget-([a-z0-9_]{32})$/i)||[]).pop(),o=(t.cookie.match(/_io_widget=([a-z0-9_]{32})/i)||[]).pop(),s=a||o;if(s){var c=new Date((new Date).setYear((new Date).getFullYear()+1)).toUTCString(),l=e.location.hostname.replace(/^www\./i,""),d=e.location.pathname;if(t.cookie="_io_widget="+s+"; expires="+c+"; domain="+l+"; path="+d,a){var u=e.location.protocol+"//"+e.location.hostname+e.location.pathname+e.location.search;history.pushState("",t.title,u)}n.bindOnPageDescriptorAppearance(e.location.href,function(e){this.load(s,i.projectId,e)}.bind(this)),r.bindOnUrlChange(this.reload.bind(this))}}};return a}(window,document,e.defaults,e.configParser,e.helpers),void 0===e)e={};if(e.instantArticlesTracker=function(e,t){var i={trackPageviews:function(){var i=t.parseURL(e.ia_document.shareURL);t.sendMetric("pageviews_instant",{url:i.pathname,domain:i.hostname,depth:1,referrer:"fb_ia",device:"smart (Other)",user_id:t.getUserId()})},trackTime:function(){t.setIntervalSafe(e,function(){t.sendMetric("time",{url:t.parseURL(e.ia_document.shareURL).pathname})},1e4)},init:function(){if(e.ia_document)return this.trackPageviews(),!0}};return i}(window,e.helpers),void 0===e)e={};if(e.ctrTracker=function(e,t,i){var n={listenForClicks:function(e,t,n,r){i.addEventListenerSafe(t,"click",function(){-1===n.indexOf(JSON.stringify(e.slices_object))&&(n.push(e.slices),-1!=r.indexOf(JSON.stringify(e.slices_object))&&i.sendMetric("io_block_click",e.slices_object))})},startTracking:function(){function n(e,t){for(var i=e.parentElement,n=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length;--i>=0&&t.item(i)!==this;);return i>-1};i;){if(n.call(i,t))return i;i=i.parentElement}return null}function r(r){var a=n(r,"[data-vr-zone]"),o=(n(r,"[data-section-name]"),n(r,"[data-vr-title]")),s=o?(o.getAttribute("data-vr-title")||"").replace(",","").trim():"";if(-1!==s.indexOf("????"))return!1;if(s||(s=r.textContent.replace(/\s+/g," ").trim().replace(",","").replace(":","").slice(0,60).trim()+"..."),"..."===s)return!1;var c={block_pos:r?(r.getAttribute("data-vr-contentbox")||"").trim():"",block_zon:a?(a.getAttribute("data-vr-zone")||"").trim():"",block_url:r.pathname,block_domain:r.hostname,block_global_pos:r.getAttribute("data-vr-global-position").trim(),block_title:s,url:e.location.pathname,page:t.title,domain:e.location.hostname,device:i.getDeviceName()};return{slices_object:c,zone:c.block_zon}}var a=t.querySelectorAll('[data-vr-zone] [data-vr-contentbox]:not([data-vr-contentbox=""]) a:not([href="#"]):not([href="/"]):not(.io-ignore), [data-vr-zone] a[data-vr-contentbox]:not([data-vr-contentbox=""]):not([href="#"]):not([href="/"]):not(.io-ignore), a[data-vr-zone][data-vr-contentbox]:not([data-vr-contentbox=""]):not([href="#"]):not([href="/"]):not(.io-ignore)');if(a){!function(e){var i;if(null===t.querySelector("[data-vr-global-position]"))for(i=0;i<e.length;i++)e[i].setAttribute("data-vr-global-position",i+1)}(a);var o,s,c,l,d=[],u=[],h=[],f=[],p=!1;for(o=0;o<a.length;o++)0!==(c=(s=a[o]).getBoundingClientRect().top)&&(l=r(s))&&(h.push({slices_object:l.slices_object,top:c-e.innerHeight,track_zon:l.zone}),this.listenForClicks(l,s,u,d));v();var g=location.pathname,m=i.setIntervalSafe(e,function(){g===location.pathname?v():clearInterval(m)},150)}function v(){for(var e in h)h[e].top<=-t.body.getBoundingClientRect().top&&(-1===d.indexOf(h[e].slices_object)&&(d.push(JSON.stringify(h[e].slices_object)),i.deferMetricToSendInBatch("io_block_view",h[e].slices_object)),-1===f.indexOf(h[e].track_zon)&&(f.push(h[e].track_zon),i.deferMetricToSendInBatch("io_block_view_sum",h[e].slices_object)),p||(p=!0,i.deferMetricToSendInBatch("io_block_view_all",h[e].slices_object)),delete h[e])}},init:function(){if(t.querySelectorAll("[data-vr-zone]").length)this.startTracking();else{var e=!1;i.bindOnElementInsertion("[data-vr-zone]",function(){e||(e=!0,this.startTracking())}.bind(this))}}};return n}(window,document,e.helpers),void 0===e)e={};if(e.onClickViewTracker=function(e,t,i,n){var r={bindOneElement:function(t){i.addEventListenerSafe(t,"click",function(){n.bindOnPageDescriptorAppearance(e.location.href,function(e){i.sendMetric("pageviews",e.getSlices())})})},bindExistingElemets:function(i){var n=t.querySelectorAll(i);n=e.Array.prototype.slice.call(n);for(var r=0;r<n.length;r++)this.bindOneElement(n[r])},listenForNewElements:function(e){i.bindOnElementInsertion(e,function(e){this.bindOneElement(e)}.bind(this))},init:function(){"undefined"!=typeof customCode_onClickViewSelector&&(this.bindExistingElemets(customCode_onClickViewSelector),this.listenForNewElements(customCode_onClickViewSelector))}};return r}(window,document,e.helpers,e.configParser),void 0===e)e={};if(e.subscriptionsTracker=function(e,t,i){var n={defaultBlockSelector:".io-subscription-block",defaultButtonsSelector:".io-subscription-button",alreadyViewed:!1,isScrolledIntoView:function(t){var i=t.getBoundingClientRect(),n=i.top,r=i.bottom;return n>=0&&r<=e.innerHeight},waitForSubscriptionBlockView:function(e){var i=document.querySelector(this.defaultBlockSelector);if(!i)return!1;n.isScrolledIntoView(i)&&!this.alreadyViewed&&(this.alreadyViewed=!0,t.sendMetric("subscription_button_view",e.getSlices()))},init:function(){i.bindOnPageDescriptorAppearance(e.location.href,function(e){t.addEventListenerSafe(document,"scroll",function(){n.waitForSubscriptionBlockView(e)}),t.bindOnElementInsertion(n.defaultButtonsSelector,function(i){t.addEventListenerSafe(i,"click",function(){t.sendMetric("subscription_button_click",e.getSlices());var i=e.getSlices().first_source?e.getSlices().first_source:e.getSlices().referrer,n=location.host.replace("www.","").replace("m.",""),r=new Date((new Date).setHours(720,0,0,0)).toUTCString();t.setCookie("__io_subscription_source",i,r,"/",n),t.setCookie("__io_subscription_url",e.getSlices().url,r,"/",n)})});var i=document.querySelectorAll(n.defaultButtonsSelector);if(0==i.length)return!1;for(var r=0;r<i.length;r++){var a=i[r];t.addEventListenerSafe(a,"click",function(){t.sendMetric("subscription_button_click",e.getSlices());var i=e.getSlices().first_source?e.getSlices().first_source:e.getSlices().referrer,n=location.host.replace("www.","").replace("m.",""),r=new Date((new Date).setHours(720,0,0,0)).toUTCString();t.setCookie("__io_subscription_source",i,r,"/",n),t.setCookie("__io_subscription_url",e.getSlices().url,r,"/",n)})}})}};return n}(window,e.helpers,e.configParser),void 0===e)e={};if(e.previousPageWatcher=function(e,t,i){var n={listenForConfigAndPageMatchOnce:function(){i.bindOnPageDescriptorAppearance(e.location.href,function(e){var i=e.getSlices();t.setPreviousURI(i.url)}.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,i?(this.listenForConfigAndPageMatchOnce(),this.listenForPageChnages()):(t.setPreviousURI(e.location.pathname),t.bindOnUrlChange(function(){t.setPreviousURI(e.location.pathname)})))}};return n}(window,e.helpers,e.configParser),e.doubleLoadingDetector.init())return;if(e.instantArticlesTracker.init())return;e.helpers.loadComponentAsync(e.previousPageWatcher),e.helpers.loadComponentAsync(e.uniqueTracker),e.helpers.loadComponentAsync(e.holdingUniqueTracker),e.helpers.loadComponentAsync(e.visitTracker),e.helpers.loadComponentAsync(e.viewTracker),e.helpers.loadComponentAsync(e.readabilityTracker),e.helpers.loadComponentAsync(e.timeTracker),e.helpers.loadComponentAsync(e.videoTracker),e.helpers.loadComponentAsync(e.ctrTracker),e.helpers.loadComponentAsync(e.widgetLoader),e.helpers.loadComponentAsync(e.onClickViewTracker),e.helpers.loadComponentAsync(e.subscriptionsTracker)}catch(t){try{e.helpers.trackErrorMetric(t)}catch(e){}}}()}]);