(self.AMP=self.AMP||[]).push({n:"amp-analytics",v:"1903070012530",f:(function(AMP,_){
var g,aa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ba;if("function"==typeof Object.setPrototypeOf)ba=Object.setPrototypeOf;else{var ca;a:{var da={a:!0},ea={};try{ea.__proto__=da;ca=ea.a;break a}catch(a){}ca=!1}ba=ca?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var fa=ba;
function n(a,b){a.prototype=aa(b.prototype);a.prototype.constructor=a;if(fa)fa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.gd=b.prototype}(function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a})(this);function ga(){var a,b;this.promise=new Promise(function(c,d){a=c;b=d});this.resolve=a;this.reject=b}function ha(a){return new Promise(function(b){b(a())})};function ja(a,b){b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(c){return b}};var ka=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function la(a){var b=Object.create(null);if(!a)return b;for(var c;c=ka.exec(a);){var d=ja(c[1],c[1]),e=c[2]?ja(c[2],c[2]):"";b[d]=e}return b};var ma="";
function na(a){var b=a||self;if(b.AMP_MODE)var c=b.AMP_MODE;else{c=b;var d=self.AMP_CONFIG||{},e=!!d.test||!1,f=la(c.location.originalHash||c.location.hash);d=d.spt;var h=la(c.location.search);ma||(ma=c.AMP_CONFIG&&c.AMP_CONFIG.v?c.AMP_CONFIG.v:"011903070012530");c=b.AMP_MODE={localDev:!1,development:!("1"!=f.development&&!c.AMP_DEV_MODE),examiner:"2"==f.development,filter:f.filter,geoOverride:f["amp-geo"],minified:!0,lite:void 0!=h.amp_lite,test:e,log:f.log,version:"1903070012530",rtvVersion:ma,
singlePassType:d}}return c};var oa=Object.prototype.toString;function q(a){return"[object Object]"===oa.call(a)}function u(a){return"number"===typeof a&&isFinite(a)}function pa(a){var b=qa,c;for(c in b)if(b[c]===a)return!0;return!1};function ra(a){for(var b=null,c="",d=0;d<arguments.length;d++){var e=arguments[d];if(e instanceof Error&&!b){b=void 0;var f=Object.getOwnPropertyDescriptor(e,"message");if(f&&f.writable)b=e;else{f=e.stack;var h=Error(e.message);for(b in e)h[b]=e[b];h.stack=f;b=h}}else c&&(c+=" "),c+=e}b?c&&(b.message=c+": "+b.message):b=Error(c);return b}function sa(a){var b=ra.apply(null,arguments);setTimeout(function(){self.reportError(b);throw b;})}self.log=self.log||{user:null,dev:null,userForEmbed:null};
var ta=self.log;function v(){if(!ta.user)throw Error("failed to call initLogConstructor");return ta.user}function w(){if(ta.dev)return ta.dev;throw Error("failed to call initLogConstructor");}function x(a,b,c,d,e,f){return v().assert(a,b,c,d,e,f,void 0,void 0,void 0,void 0,void 0)};function ua(a,b){var c,d=a.ownerDocument.defaultView,e=d!=(d.__AMP_TOP||d);if(e){if(va(d,b)){var f=y(d,b);if(f)return f}if(!c)return null}a=z(a);a=A(a);return va(a,b)?y(a,b):null}function wa(a,b,c){var d,e=a=a.__AMP_TOP||a,f=a,h=xa(e),k=h[b];k||(k=h[b]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null});k.ctor||k.obj||(k.ctor=c,k.context=f,k.resolve&&y(e,b));d&&y(a,b)}function B(a,b){a=a.__AMP_TOP||a;return y(a,b)}function C(a,b){var c=z(a);c=A(c);return y(c,b)}
function ya(a,b){return za(A(a),b)}function Aa(a,b){var c=(a.ownerDocument||a).defaultView;if(a=c&&c!=b)a=c,a=(a.__AMP_TOP||a)==b;if(a)try{return c.frameElement}catch(d){}return null}function z(a){return a.nodeType?B((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function A(a){a=z(a);return a.isSingleDoc()?a.win:a}function y(a,b){va(a,b);var c=xa(a);a=c[b];a.obj||(a.obj=new a.ctor(a.context),a.ctor=null,a.context=null,a.resolve&&a.resolve(a.obj));return a.obj}
function Ba(a,b){var c=za(a,b);if(c)return c;a=xa(a);a[b]=Da();return a[b].promise}function za(a,b){var c=xa(a)[b];if(c){if(c.promise)return c.promise;y(a,b);return c.promise=Promise.resolve(c.obj)}return null}function xa(a){var b=a.services;b||(b=a.services={});return b}function va(a,b){a=a.services&&a.services[b];return!(!a||!a.ctor&&!a.obj)}
function Da(){var a=new ga,b=a,c=b.promise,d=b.resolve;b=b.reject;c.catch(function(){});return{obj:null,promise:c,resolve:d,reject:b,context:null,ctor:null}};/*
 https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
var D;function Ea(a){try{var b=a.ownerDocument,c=b.createElement("div"),d=b.createElement("div");c.appendChild(d);return c.querySelector(":scope div")===d}catch(e){return!1}};var Fa=Object.prototype.hasOwnProperty;function Ga(){var a,b=Object.create(null);a&&Object.assign(b,a);return b}function E(a){return a||{}}function F(a,b){return Fa.call(a,b)}
function Ha(a,b){var c=void 0===c?10:c;var d=[],e=[];e.push({t:a,s:b,d:0});for(a={};0<e.length;){b=e.shift();a.t=b.t;a.s=b.s;a.d=b.d;if(d.includes(a.s))throw Error("Source object has a circular reference.");d.push(a.s);a.t!==a.s&&(a.d>c?Object.assign(a.t,a.s):(Object.keys(a.s).forEach(function(a){return function(b){var c=a.s[b];if(F(a.t,b)){var d=a.t[b];if(q(c)&&q(d)){e.push({t:d,s:c,d:a.d+1});return}}a.t[b]=c}}(a)),a={s:a.s,t:a.t,d:a.d}))}};function Ia(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function Ja(a,b){return b.length>a.length?!1:0==a.lastIndexOf(b,0)}function Ka(a,b){for(var c=5,d=c||1,e={},f=0;f<d&&(e.matches=0,a=a.replace(/\${([^}]*)}/g,function(a){return function(c,d){a.matches++;return b(d)}}(e)),e.matches);e={matches:e.matches},f++);return a};function La(a,b,c){a=a.createElement(b);for(var d in c)a.setAttribute(d,c[d]);return a}function Ma(a,b){for(var c;a&&a!==c;a=a.parentElement)if(b(a))return a;return null}function Na(a,b){return a.closest?a.closest(b):Ma(a,function(a){return Oa(a,b)})}function Oa(a,b){var c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return c?c.call(a,b):!1}
function Pa(a,b){var c="i-amphtml-scoped";a.classList.add(c);var d=b.replace(/^|,/g,"$&."+c+" "),e=a.querySelectorAll(d);a.classList.remove(c);return e}function Qa(a){var b=void 0,c=Ra,d=b||function(a){return a},e=a.dataset;a={};var f=c?c:/^param(.+)/,h;for(h in e){var k=h.match(f);k&&(a[d(k[1][0].toLowerCase()+k[1].substr(1))]=e[h])}return a};function Sa(a){return Ta(a,"userNotificationManager","amp-user-notification",void 0).then(function(a){return x(a,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.","userNotificationManager","amp-user-notification","amp-user-notification","amp-user-notification")})}
function Ta(a,b,c,d){var e=ya(a,b);if(e)return e;var f=z(a);return f.whenBodyAvailable().then(function(){var a=f.win;var b=f.win.document.head;if(b){var d=[];b=b.querySelectorAll("script[custom-element]");for(var e=0;e<b.length;e++)d.push(b[e].getAttribute("custom-element"))}else d=[];a=d.includes(c)?B(a,"extensions").waitForExtension(a,c):Promise.resolve();return a}).then(function(){if(d)var e=ya(a,b);else e=f.win,e=e.ampExtendedElements&&e.ampExtendedElements[c]?Ba(A(a),b):null;return e})};function G(a){return ua(a,"url-replace")}function H(a){return C(a,"viewer")}function J(a){return C(a,"viewport")};var Ua;function Va(a,b,c){var d=void 0,e=a,f=c;var h=function(a){try{return f(a)}catch(p){throw self.reportError(p),p;}};var k=Wa(),m=!1;d&&(m=d.capture);e.addEventListener(b,h,k?d:m);return function(){e&&e.removeEventListener(b,h,k?d:m);h=e=f=null}}function Wa(){if(void 0!==Ua)return Ua;Ua=!1;try{var a={get capture(){Ua=!0}};self.addEventListener("test-options",null,a);self.removeEventListener("test-options",null,a)}catch(b){}return Ua};function Xa(a,b,c){return Va(a,b,c)}function Ya(a,b,c){var d=c,e=Va(a,b,function(a){try{d(a)}finally{d=null,e()}});return e}
function Za(a){var b,c;if(a.complete||"complete"==a.readyState||a.document&&"complete"==a.document.readyState)return Promise.resolve(a);var d=new Promise(function(d,f){var e=a.tagName;b="AUDIO"===e||"VIDEO"===e?Ya(a,"loadstart",d):Ya(a,"load",d);e&&(c=Ya(a,"error",f))});return d.then(function(){c&&c();return a},function(){b&&b();var c=a;c&&c.src&&(c=c.src);throw v().createError("Failed to load:",c);})};function $a(a,b){var c=0;"active"===a.type&&(c=5);return Math.min(b-a.time,c)}function ab(){this.Gb=0;this.aa=void 0}ab.prototype.push=function(a){this.aa||(this.aa=a);this.aa.time<a.time&&(this.Gb+=$a(this.aa,a.time),this.aa=a)};ab.prototype.getTotalEngagedTime=function(a){var b=0;void 0!==this.aa&&(b=this.Gb+$a(this.aa,a));return b};var bb=["mousedown","mouseup","mousemove","keydown","keyup"];
function cb(a){this.ampdoc=a;this.rc=this.Zc.bind(this);this.Nb=this.rb.bind(this);this.pc=this.Ic.bind(this);this.Ga={};this.Ha=[];this.Va=this.Ua=!1;this.Kb=new ab;this.B=H(this.ampdoc);this.w=J(this.ampdoc);this.B.whenFirstVisible().then(this.Yc.bind(this))}g=cb.prototype;g.Yc=function(){this.T=Date.now();this.rb();for(var a=0;a<bb.length;a++)this.Ha.push(Xa(this.ampdoc.getRootNode(),bb[a],this.Nb));this.Ha.push(this.B.onVisibilityChanged(this.pc));this.w.onScroll(this.Nb)};
function db(a){var b=Date.now()-a.T;return 0<b?b:0}g.Zc=function(){this.Va=this.Ua=!1};g.rb=function(){this.Ua||(this.Ua=!0,this.Va=!1,eb(this,"active"))};function eb(a,b){var c=db(a),d=Math.floor(c/1E3),e=1E3-c%1E3;setTimeout(a.rc,e);a.Kb.push({type:b,time:d})}g.Ic=function(){this.B.isVisible()?this.rb():this.Va||(this.Va=!0,this.Ua=!1,eb(this,"inactive"))};g.Hb=function(){for(var a=0;a<this.Ha.length;a++){var b=this.Ha[a];"function"===typeof b&&b()}this.Ha=[]};g.fd=function(){this.Hb()};
g.getTotalEngagedTime=function(){var a=Math.floor(db(this)/1E3);return this.Kb.getTotalEngagedTime(a)};g.getIncrementalEngagedTime=function(a,b){b=void 0===b?!0:b;if(!F(this.Ga,a))return b&&(this.Ga[a]=this.getTotalEngagedTime()),this.getTotalEngagedTime();var c=this.Ga[a];if(!1===b)return this.getTotalEngagedTime()-c;this.Ga[a]=this.getTotalEngagedTime();return this.Ga[a]-c};var K={"default":{transport:{beacon:!0,xhrpost:!0,image:!0},vars:{accessReaderId:"ACCESS_READER_ID",adNavTiming:"AD_NAV_TIMING",adNavType:"AD_NAV_TYPE",adRedirectCount:"AD_NAV_REDIRECT_COUNT",ampdocHost:"AMPDOC_HOST",ampdocHostname:"AMPDOC_HOSTNAME",ampdocUrl:"AMPDOC_URL",ampGeo:"AMP_GEO",ampState:"AMP_STATE",ampVersion:"AMP_VERSION",ancestorOrigin:"ANCESTOR_ORIGIN",authdata:"AUTHDATA",availableScreenHeight:"AVAILABLE_SCREEN_HEIGHT",availableScreenWidth:"AVAILABLE_SCREEN_WIDTH",backgroundState:"BACKGROUND_STATE",
browserLanguage:"BROWSER_LANGUAGE",canonicalHost:"CANONICAL_HOST",canonicalHostname:"CANONICAL_HOSTNAME",canonicalPath:"CANONICAL_PATH",canonicalUrl:"CANONICAL_URL",clientId:"CLIENT_ID",consentState:"CONSENT_STATE",contentLoadTime:"CONTENT_LOAD_TIME",counter:"COUNTER",documentCharset:"DOCUMENT_CHARSET",documentReferrer:"DOCUMENT_REFERRER",domainLookupTime:"DOMAIN_LOOKUP_TIME",domInteractiveTime:"DOM_INTERACTIVE_TIME",externalReferrer:"EXTERNAL_REFERRER",firstContentfulPaint:"FIRST_CONTENTFUL_PAINT",
firstViewportReady:"FIRST_VIEWPORT_READY",fragmentParam:"FRAGMENT_PARAM",makeBodyVisible:"MAKE_BODY_VISIBLE",htmlAttr:"HTML_ATTR",incrementalEngagedTime:"INCREMENTAL_ENGAGED_TIME",navRedirectCount:"NAV_REDIRECT_COUNT",navTiming:"NAV_TIMING",navType:"NAV_TYPE",pageDownloadTime:"PAGE_DOWNLOAD_TIME",pageLoadTime:"PAGE_LOAD_TIME",pageViewId:"PAGE_VIEW_ID",queryParam:"QUERY_PARAM",random:"RANDOM",redirectTime:"REDIRECT_TIME",resourceTiming:"RESOURCE_TIMING",screenColorDepth:"SCREEN_COLOR_DEPTH",screenHeight:"SCREEN_HEIGHT",
screenWidth:"SCREEN_WIDTH",scrollHeight:"SCROLL_HEIGHT",scrollLeft:"SCROLL_LEFT",scrollTop:"SCROLL_TOP",scrollWidth:"SCROLL_WIDTH",serverResponseTime:"SERVER_RESPONSE_TIME",sourceUrl:"SOURCE_URL",sourceHost:"SOURCE_HOST",sourceHostname:"SOURCE_HOSTNAME",sourcePath:"SOURCE_PATH",tcpConnectTime:"TCP_CONNECT_TIME",timestamp:"TIMESTAMP",timezone:"TIMEZONE",timezoneCode:"TIMEZONE_CODE",title:"TITLE",totalEngagedTime:"TOTAL_ENGAGED_TIME",userAgent:"USER_AGENT",viewer:"VIEWER",viewportHeight:"VIEWPORT_HEIGHT",
viewportWidth:"VIEWPORT_WIDTH"}},acquialift:{vars:{decisionApiUrl:"us-east-1-decisionapi.lift.acquia.com",accountId:"xxxxxxxx",siteId:"xxxxxxxx"},transport:{beacon:!0,xhrpost:!0,image:!1},requests:{base:"https://${decisionApiUrl}/capture?account_id=${accountId}&site_id=${siteId}",basicCapture:"${base}&ident=${clientId(tc_ptid)}&identsrc=amp&es=Amp&url=${canonicalUrl}&rurl=${documentReferrer}&cttl=${title}",pageview:"${basicCapture}&en=Content View",click:"${basicCapture}&en=Click-Through"},triggers:{defaultPageview:{on:"visible",
request:"pageview"}}},adobeanalytics:{transport:{xhrpost:!1,beacon:!1,image:!0},vars:{pageName:"TITLE",host:"",reportSuites:"",linkType:"o",linkUrl:"",linkName:""},requests:{requestPath:"/b/ss/${reportSuites}/0/amp-1.0/s${random}",basePrefix:"vid=z${clientId(adobe_amp_id)}&ndh=0&ce=${documentCharset}&pageName=${pageName}&g=${ampdocUrl}&r=${documentReferrer}&bh=${availableScreenHeight}&bw=${availableScreenWidth}&c=${screenColorDepth}&j=amp&s=${screenWidth}x${screenHeight}",pageview:"https://${host}${requestPath}?${basePrefix}",
click:"https://${host}${requestPath}?${basePrefix}&pe=lnk_${linkType}&pev1=${linkUrl}&pev2=${linkName}"}},adobeanalytics_nativeConfig:{triggers:{pageLoad:{on:"visible",request:"iframeMessage"}}},afsanalytics:{vars:{server:"www",websiteid:"xxxxxxxx",event:"click",clicklabel:"clicked from AMP page"},transport:{beacon:!1,xhrpost:!1,image:!0},requests:{host:"//${server}.afsanalytics.com",base:"${host}/cgi_bin/",pageview:"${base}connect.cgi?usr=${websiteid}Pauto&js=1&amp=1&title=${title}&url=${canonicalUrl}&refer=${documentReferrer}&resolution=${screenWidth}x${screenHeight}&color=${screenColorDepth}&Tips=${random}",
click:"${base}click.cgi?usr=${websiteid}&event=${event}&exit=${clicklabel}"},triggers:{defaultPageview:{on:"visible",request:"pageview"}}},alexametrics:{requests:{base:"https://${ampAtrkHost}/atrk.gif?account=${atrk_acct}&domain=${domain}",pageview:"${base}&jsv=amp-${ampVersion}&frame_height=${viewportHeight}&frame_width=${viewportWidth}&title=${title}&time=${timestamp}&time_zone_offset=${timezone}&screen_params=${screenWidth}x${screenHeight}x${screenColorDepth}&ref_url=${documentReferrer}&host_url=${sourceUrl}&random_number=${random}&user_cookie=${clientId(__auc)}&user_cookie_flag=0&user_lang=${browserLanguage}&amp_doc_url=${ampdocUrl}"},
vars:{atrk_acct:"",domain:"",ampAtrkHost:"certify-amp.alexametrics.com"},triggers:{trackPageview:{on:"visible",request:"pageview"}},transport:{xhrpost:!1,beacon:!1,image:!0}},amplitude:{transport:{beacon:!0,xhrpost:!0,useBody:!0,image:!1},vars:{deviceId:"CLIENT_ID(amplitude_amp_id)"},requests:{host:"https://api.amplitude.com",event:{baseUrl:"${host}/amp/event"}},extraUrlParams:{api_key:"${apiKey}",device_id:"${deviceId}",library:"amp/${ampVersion}",time:"${timestamp}",language:"${browserLanguage}",
user_agent:"${userAgent}"},linkers:{amplitude:{ids:{amplitude_amp_id:"${deviceId}"},proxyOnly:!1}},cookies:{amplitude_amp_id:{value:"LINKER_PARAM(amplitude, amplitude_amp_id)"}}},atinternet:{transport:{beacon:!1,xhrpost:!1,image:!0},vars:{pixelPath:"hit.xiti",domain:".xiti.com"},requests:{base:"https://${log}${domain}/${pixelPath}?s=${site}&ts=${timestamp}&r=${screenWidth}x${screenHeight}x${screenColorDepth}&re=${availableScreenWidth}x${availableScreenHeight}",suffix:"&medium=amp&${extraUrlParams}&ref=${documentReferrer}",
pageview:"${base}&p=${title}&s2=${level2}${suffix}",click:"${base}&pclick=${title}&s2click=${level2}&p=${label}&s2=${level2Click}&type=click&click=${type}${suffix}"}},baiduanalytics:{requests:{host:"https://hm.baidu.com",base:"${host}/hm.gif?si=${token}&nv=0&st=4&v=pixel-1.0&rnd=${timestamp}",pageview:"${base}&et=0",event:"${base}&ep=${category}*${action}*${label}*${value}&et=4&api=8_0"},transport:{beacon:!1,xhrpost:!1,image:!0}},bg:{},burt:{vars:{trackingKey:"ignore",category:"",subCategory:""},
requests:{host:"//${trackingKey}.c.richmetrics.com/",base:"${host}imglog?e=${trackingKey}&pi=${trackingKey}|${pageViewId}|${canonicalPath}|${clientId(burt-amp-user-id)}&ui=${clientId(burt-amp-user-id)}&v=amp&ts=${timestamp}&sn=${requestCount}&",pageview:"${base}type=page&ca=${category}&sc=${subCategory}&ln=${browserLanguage}&lr=${documentReferrer}&eu=${sourceUrl}&tz=${timezone}&pd=${scrollWidth}x${scrollHeight}&sd=${screenWidth}x${screenHeight}&wd=${availableScreenWidth}x${availableScreenHeight}&ws=${scrollLeft}x${scrollTop}",
pageping:"${base}type=pageping"},triggers:{pageview:{on:"visible",request:"pageview"},pageping:{on:"timer",timerSpec:{interval:15,maxTimerLength:1200},request:"pageping"}},transport:{beacon:!1,xhrpost:!1,image:!0}},byside:{vars:{webcareZone:"webcare",webcareId:"",channel:"",fid:"",lang:"pt"},requests:{host:"//${webcareZone}.byside.com/",base:"${host}BWA${webcareId}/amp/",pageview:"${base}pixel.php",event:"${base}signal.php?event_id=${eventId}&event_label=${eventLabel}&fields=${fields}"},extraUrlParams:{webcare_id:"${webcareId}",
bwch:"${channel}",lang:"${lang}",fid:"${fid}",bwit:"A",tuid:"${clientId(byside_webcare_tuid)}",suid:"",puid:"${pageViewId}p${timestamp}",referrer:"${documentReferrer}",page:"${sourceUrl}",amppage:"${ampdocUrl}",bwpt:"${title}",bres:"${viewportWidth}x${viewportHeight}",res:"${screenWidth}x${screenHeight}",v:"v20171116a",ampv:"${ampVersion}",viewer:"${viewer}",ua:"${userAgent}",r:"${random}"},triggers:{pageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},chartbeat:{requests:{host:"https://ping.chartbeat.net",
basePrefix:"/ping?h=${domain}&p=${canonicalPath}&u=${clientId(_cb)}&d=${canonicalHost}&g=${uid}&g0=${sections}&g1=${authors}&g2=${zone}&g3=${sponsorName}&g4=${contentType}&c=120&x=${scrollTop}&y=${scrollHeight}&j=${decayTime}&R=1&W=0&I=0&E=${totalEngagedTime}&r=${documentReferrer}&t=${pageViewId}${clientId(_cb)}&b=${pageLoadTime}&i=${title}&T=${timestamp}&tz=${timezone}&C=2",baseSuffix:"&_",interval:"${host}${basePrefix}${baseSuffix}",anchorClick:"${host}${basePrefix}${baseSuffix}"},triggers:{trackInterval:{on:"timer",
timerSpec:{interval:15,maxTimerLength:7200},request:"interval",vars:{decayTime:30}},trackAnchorClick:{on:"click",selector:"a",request:"anchorClick",vars:{decayTime:30}}},transport:{beacon:!1,xhrpost:!1,image:!0}},clicky:{vars:{site_id:""},requests:{base:"https://in.getclicky.com/in.php?site_id=${site_id}",baseSuffix:"&mime=${contentType}&x=${random}",pageview:"${base}&res=${screenWidth}x${screenHeight}&lang=${browserLanguage}&secure=1&type=pageview&href=${canonicalPath}&title=${title}${baseSuffix}",
interval:"${base}&type=ping${baseSuffix}"},triggers:{defaultPageview:{on:"visible",request:"pageview"},interval:{on:"timer",timerSpec:{interval:60,maxTimerLength:600},request:"interval"}},transport:{beacon:!1,xhrpost:!1,image:!0}},colanalytics:{requests:{host:"https://ase.clmbtech.com",base:"${host}/message",pageview:"${base}?cid=${id}&val_101=${id}&val_101=${canonicalPath}&ch=${canonicalHost}&uuid=${uid}&au=${authors}&zo=${zone}&sn=${sponsorName}&ct=${contentType}&st=${scrollTop}&sh=${scrollHeight}&dct=${decayTime}&tet=${totalEngagedTime}&dr=${documentReferrer}&plt=${pageLoadTime}&val_108=${title}&val_120=3"},
triggers:{defaultPageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},comscore:{vars:{c2:"1000001"},requests:{host:"https://sb.scorecardresearch.com",base:"${host}/b?",pageview:"${base}c1=2&c2=${c2}&cs_pv=${pageViewId}&c12=${clientId(comScore)}&rn=${random}&c8=${title}&c7=${canonicalUrl}&c9=${documentReferrer}&cs_c7amp=${ampdocUrl}"},triggers:{defaultPageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},cxense:{requests:{host:"https://scomcluster.cxense.com",
base:"${host}/Repo/rep.gif",pageview:"${base}?ver=1&typ=pgv&sid=${siteId}&ckp=${clientId(cX_P)}&loc=${sourceUrl}&rnd=${random}&ref=${documentReferrer}&ltm=${timestamp}&wsz=${screenWidth}x${screenHeight}&bln=${browserLanguage}&chs=${documentCharset}&col=${screenColorDepth}&tzo=${timezone}&cp_cx_channel=amp"},triggers:{defaultPageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},dynatrace:{requests:{endpoint:"${protocol}://${tenant}${separator}${environment}:${port}/ampbf/${tenantpath}",
pageview:"${endpoint}?type=js&flavor=amp&v=1&a=1%7C1%7C_load_%7C_load_%7C-%7C${navTiming(navigationStart)}%7C${navTiming(domContentLoadedEventEnd)}%7C0%2C2%7C2%7C_onload_%7C_load_%7C-%7C${navTiming(domContentLoadedEventStart)}%7C${navTiming(domContentLoadedEventEnd)}%7C0&fId=${pageViewId}&vID=${clientId(rxVisitor)}&url=${sourceUrl}&title=${title}&sw=${screenWidth}&sh=${screenHeight}&w=${viewportWidth}&h=${viewportHeight}&nt=a${navType}b${navTiming(navigationStart)}c${navTiming(navigationStart,redirectStart)}d${navTiming(navigationStart,redirectEnd)}e${navTiming(navigationStart,fetchStart)}f${navTiming(navigationStart,domainLookupStart)}g${navTiming(navigationStart,domainLookupEnd)}h${navTiming(navigationStart,connectStart)}i${navTiming(navigationStart,connectEnd)}j${navTiming(navigationStart,secureConnectionStart)}k${navTiming(navigationStart,requestStart)}l${navTiming(navigationStart,responseStart)}m${navTiming(navigationStart,responseEnd)}n${navTiming(navigationStart,domLoading)}o${navTiming(navigationStart,domInteractive)}p${navTiming(navigationStart,domContentLoadedEventStart)}q${navTiming(navigationStart,domContentLoadedEventEnd)}r${navTiming(navigationStart,domComplete)}s${navTiming(navigationStart,loadEventStart)}t${navTiming(navigationStart,loadEventEnd)}&app=${app}&time=${timestamp}"},
triggers:{trackPageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0},vars:{app:"ampapp",protocol:"https",tenant:"",environment:"live.dynatrace.com",port:"443",separator:"."}},epica:{transport:{beacon:!1,xhrpost:!1,image:!0},vars:{anonymousId:"CLIENT_ID(epica_amp_id)"},requests:{host:"https://cat.poder.io/api/v1/pixel",base:"?writeKey=${writeKey}&context.library.name=amp&anonymousId=${anonymousId}&context.locale=${browserLanguage}&context.page.path=${canonicalPath}&context.page.url=${canonicalUrl}&context.page.referrer=${documentReferrer}&context.page.title=${title}&context.screen.width=${screenWidth}&context.screen.height=${screenHeight}",
page:"${host}/page${base}&name=${name}",track:"${host}/track${base}&event=${event}"},triggers:{page:{on:"visible",request:"page"}}},euleriananalytics:{vars:{analyticsHost:"",documentLocation:"SOURCE_URL"},requests:{base:"https://${analyticsHost}",basePrefix:"-/${random}?euid-amp=${clientId(etuix)}&url=${documentLocation}&",pageview:"${base}/col2/${basePrefix}rf=${externalReferrer}&urlp=${pagePath}&ss=${screenWidth}x${screenHeight}&sd=${screenColorDepth}",action:"${base}/action/${basePrefix}eact=${actionCode}&actr=${actionRef}",
user:"${base}/uparam/${basePrefix}euk${userParamKey}=${userParamVal}",contextflag:"${base}/cflag2/${basePrefix}ecf0k=${cflagKey}&ecf0v=${cflagVal}"},transport:{beacon:!1,xhrpost:!1,image:!0}},facebookpixel:{vars:{pixelId:"PIXEL-ID"},requests:{host:"https://www.facebook.com",base:"${host}/tr?noscript=1",pageview:"${base}&ev=PageView&id=${pixelId}",event:"${base}&ev=${eventName}&id=${pixelId}&cd[content_name]=${content_name}",eventViewContent:"${base}&ev=ViewContent&id=${pixelId}&cd[value]=${value}&cd[currency]=${currency}&cd[content_name]=${content_name}&cd[content_type]=${content_type}&cd[content_ids]=${content_ids}",
eventSearch:"${base}&ev=Search&id=${pixelId}&cd[value]=${value}&cd[currency]=${currency}&cd[content_category]=${content_category}&cd[content_ids]=${content_ids}&cd[search_string]=${search_string}",eventAddToCart:"${base}&ev=AddToCart&id=${pixelId}&cd[value]=${value}&cd[currency]=${currency}&cd[content_name]=${content_name}&cd[content_type]=${content_type}&cd[content_ids]=${content_ids}",eventAddToWishlist:"${base}&ev=AddToWishlist&id=${pixelId}&cd[value]=${value}&cd[currency]=${currency}&cd[content_name]=${content_name}&cd[content_category]=${content_category}&cd[content_ids]=${content_ids}",
eventInitiateCheckout:"${base}&ev=InitiateCheckout&id=${pixelId}&cd[value]=${value}&cd[currency]=${currency}&cd[content_name]=${content_name}&cd[content_category]=${content_category}&cd[num_items]=${num_items}&cd[content_ids]=${content_ids}",eventAddPaymentInfo:"${base}&ev=AddPaymentInfo&id=${pixelId}&cd[value]=${value}&cd[currency]=${currency}&cd[content_category]=${content_category}&cd[content_ids]=${content_ids}",eventPurchase:"${base}&ev=Purchase&id=${pixelId}&cd[value]=${value}&cd[currency]=${currency}&cd[content_name]=${content_name}&cd[content_type]=${content_type}&cd[content_ids]=${content_ids}&cd[num_items]=${num_items}",
eventLead:"${base}&ev=Lead&id=${pixelId}&cd[value]=${value}&cd[currency]=${currency}&cd[content_name]=${content_name}&cd[content_category]=${content_category}",eventCompleteRegistration:"${base}&ev=CompleteRegistration&id=${pixelId}&cd[value]=${value}&cd[currency]=${currency}&cd[content_name]=${content_name}&cd[status]=${status}"},triggers:{trackPageview:{on:"visible",request:"pageview"}}},gemius:{vars:{dnt:"0"},requests:{base:"https://${prefix}.hit.gemius.pl/_${timestamp}/redot.gif?l=91&id=${identifier}&screen=${screenWidth}x${screenHeight}&window=${viewportWidth}x${viewportHeight}&fr=1&href=${sourceUrl}&ref=${documentReferrer}&extra=gemamp%3D1%7Campid%3D${clientId(gemius)}%7C${extraparams}&nc=${dnt}",
pageview:"${base}&et=view&hsrc=1",event:"${base}&et=action&hsrc=3"},triggers:{defaultPageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},googleadwords:{requests:{conversion_prefix:"https://www.googleadservices.com/pagead/conversion/",remarketing_prefix:"https://googleads.g.doubleclick.net/pagead/viewthroughconversion/",common_params:"${googleConversionId}/?cv=amp2&label=${googleConversionLabel}&random=${random}&url=${sourceUrl}&ref=${documentReferrer}&fst=${pageViewId}&num=${counter(googleadwords)}&fmt=3&async=1&u_h=${screenHeight}&u_w=${screenWidth}&u_ah=${availableScreenHeight}&u_aw=${availableScreenWidth}&u_cd=${screenColorDepth}&u_tz=${timezone}&tiba=${title}&guid=ON&script=0",
conversion_params:"value=${googleConversionValue}&currency_code=${googleConversionCurrency}&bg=${googleConversionColor}&hl=${googleConversionLanguage}",conversion:"${conversion_prefix}${common_params}&${conversion_params}",remarketing:"${remarketing_prefix}${common_params}"},transport:{beacon:!1,xhrpost:!1,image:!0}},googleanalytics:{vars:{eventValue:"0",documentLocation:"SOURCE_URL",clientId:"CLIENT_ID(AMP_ECID_GOOGLE,,_ga)",dataSource:"AMP",anonymizeIP:"aip",errorParam:"${errorName}-${errorMessage}"},
requests:{host:"https://www.google-analytics.com",basePrefix:"v=1&_v=a1&ds=${dataSource}&${anonymizeIP}&_s=${requestCount}&dt=${title}&sr=${screenWidth}x${screenHeight}&_utmht=${timestamp}&cid=${clientId}&tid=${account}&dl=${documentLocation}&dr=${externalReferrer}&sd=${screenColorDepth}&ul=${browserLanguage}&de=${documentCharset}",baseSuffix:"&a=${pageViewId}&z=${random}",pageview:"${host}/r/collect?${basePrefix}&t=pageview&jid=${random}&_r=1${baseSuffix}",event:"${host}/collect?${basePrefix}&t=event&jid=&ec=${eventCategory}&ea=${eventAction}&el=${eventLabel}&ev=${eventValue}${baseSuffix}",
social:"${host}/collect?${basePrefix}&t=social&jid=&sa=${socialAction}&sn=${socialNetwork}&st=${socialTarget}${baseSuffix}",timing:"${host}/collect?${basePrefix}&t=${timingRequestType}&jid=&plt=${pageLoadTime}&dns=${domainLookupTime}&tcp=${tcpConnectTime}&rrt=${redirectTime}&srt=${serverResponseTime}&pdt=${pageDownloadTime}&clt=${contentLoadTime}&dit=${domInteractiveTime}${baseSuffix}",error:"${host}/collect?${basePrefix}&t=exception&exd=${errorParam}${baseSuffix}"},triggers:{performanceTiming:{on:"visible",
request:"timing",sampleSpec:{sampleOn:"${clientId}",threshold:1},vars:{timingRequestType:"timing"}},adwordsTiming:{on:"visible",request:"timing",enabled:"${queryParam(gclid)}",vars:{timingRequestType:"adtiming"}}},extraUrlParamsReplaceMap:{dimension:"cd",metric:"cm"},optout:"_gaUserPrefs.ioo",linkers:{_gl:{ids:{_ga:"${clientId}"}}},cookies:{_ga:{value:"LINKER_PARAM(_gl, _ga)"}}},gtag:{configRewriter:{url:"https://www.googletagmanager.com/gtag/amp",varGroups:{dns:{dr:"DOCUMENT_REFERRER",dl:"SOURCE_URL"},
conversion:{gclsrc:"QUERY_PARAM(gclsrc)",hasGcl:"$IF(QUERY_PARAM(gclid), 1, 0)",hasDcl:"$IF(QUERY_PARAM(dclid), 1, 0)",enabled:!0}}},vars:{eventValue:"0",clientId:"CLIENT_ID(AMP_ECID_GOOGLE,,_ga)",dataSource:"AMP",anonymizeIP:"aip",errorParam:"${errorName}-${errorMessage}"},requests:{uaHost:"https://www.google-analytics.com",uaBasePrefix:"v=1&_v=a1&ds=${dataSource}&${anonymizeIP}&_s=${requestCount}&dt=${title}&sr=${screenWidth}x${screenHeight}&cid=${clientId}&tid=${trackingId}&dl=${sourceUrl}&dr=${externalReferrer}&sd=${screenColorDepth}&ul=${browserLanguage}&de=${documentCharset}",
uaBaseSuffix:"&a=${pageViewId}&z=${random}",uaPageviewCommon:"&t=pageview&jid=${random}&gjid=${random}&_r=1",uaPageview:"${uaHost}/r/collect?${uaBasePrefix}${uaPageviewCommon}${uaBaseSuffix}",uaPageviewNpa:"${uaHost}/collect?${uaBasePrefix}${uaPageviewCommon}${uaBaseSuffix}",uaEvent:"${uaHost}/collect?${uaBasePrefix}&t=event&jid=${uaBaseSuffix}",uaTiming:"${uaHost}/collect?${uaBasePrefix}&jid=&plt=${pageLoadTime}&dns=${domainLookupTime}&tcp=${tcpConnectTime}&rrt=${redirectTime}&srt=${serverResponseTime}&pdt=${pageDownloadTime}&clt=${contentLoadTime}&dit=${domInteractiveTime}${uaBaseSuffix}",
uaError:"${uaHost}/collect?${uaBasePrefix}&t=exception&exd=${errorParam}${uaBaseSuffix}",awConversionPrefix:"https://www.googleadservices.com/pagead/conversion/",awRemarketingPrefix:"https://googleads.g.doubleclick.net/pagead/viewthroughconversion/",awCommonParams:"${conversionId}/?cv=amp3&label=${conversionLabel}&random=${random}&url=${sourceUrl}&ref=${documentReferrer}&fst=${pageViewId}&num=${counter(googleadwords)}&fmt=3&async=1&u_h=${screenHeight}&u_w=${screenWidth}&u_ah=${availableScreenHeight}&u_aw=${availableScreenWidth}&u_cd=${screenColorDepth}&u_tz=${timezone}&tiba=${title}&guid=ON&script=0",
awConversion:"${awConversionPrefix}${awCommonParams}",awRemarketing:"${awRemarketingPrefix}${awCommonParams}",flBase:"https://ad.doubleclick.net/activity;src=${flSrc};type=${flType};cat=${flCat}",dnsBase:"https://ad.doubleclick.net/ddm/clk/"},transport:{beacon:!1,xhrpost:!1,image:!0}},ibeatanalytics:{requests:{host:"https://ibeat.indiatimes.com",base:"https://ibeat.indiatimes.com/iBeat/pageTrendlogAmp.html",pageview:"${base}?&h=${h}&d=${h}&url=${url}&k=${key}&ts=${time}&ch=${channel}&sid=${uid}&at=${agentType}&ref=${documentReferrer}&aid=${aid}&loc=1&ct=1&cat=${cat}&scat=${scat}&ac=1&tg=${tags}&ctids=${catIds}&pts=${pagePublishTime}&auth=${author}&pos=${position}&iBeatField=${ibeatFields}&cid=${clientId(MSCSAuthDetails)}"},
triggers:{defaultPageview:{on:"visible",request:"pageview"}}},infonline:{vars:{sv:"ke",ap:"1"},transport:{beacon:!1,xhrpost:!1,image:!0},requests:{pageview:"${url}?st=${st}&sv=${sv}&ap=${ap}&co=${co}&cp=${cp}&ps=${ps}&host=${canonicalHost}&path=${canonicalPath}"},triggers:{pageview:{on:"visible",request:"pageview"}}},iplabel:{requests:{collectorUrl:"m.col.ip-label.net",endpoint:"https://${collectorUrl}/coll/",onload:"${endpoint}?T=${trackerId}&m=2502|${navTiming(navigationStart)}|2508|${navTiming(domainLookupStart)}|2509|${navTiming(domainLookupEnd)}|2510|${navTiming(connectStart)}|2512|${navTiming(connectEnd)}|2514|${navTiming(responseStart)}|2515|${navTiming(responseEnd)}|2517|${navTiming(domInteractive)}|2520|${navTiming(loadEventStart)}&ts=${timestamp}&ua=${userAgent}&d=${ipldim}&i=${clientip}&d[1]=${customdim}&d[2]=${business}&d[3]=${abtesting}&d[4]=${infrastructure}&d[5]=${customer}&u=${urlgroup}&w=${availableScreenWidth}&h=${availableScreenHeight}&r=${documentReferrer}&l=${browserLanguage}"},
triggers:{trackPageview:{on:"visible",request:"onload"}},transport:{beacon:!0,xhrpost:!0,image:{suppressWarnings:!0}},vars:{trackerId:"notrackerID",customdim:"",business:"",abtesting:"",infrastructure:"",customer:"",clientip:"",urlgroup:""}},keen:{requests:{base:"https://api.keen.io/3.0/projects/${projectId}/events",pageview:"${base}/pageviews?api_key=${writeKey}",click:"${base}/clicks?api_key=${writeKey}",custom:"${base}/${collection}?api_key=${writeKey}"},triggers:{trackPageview:{on:"visible",request:"pageview"}},
extraUrlParams:{amp:!0,ampdocHostname:"${ampdocHostname}",ampdocUrl:"${ampdocUrl}",ampVersion:"${ampVersion}",backgroundState:"${backgroundState}",backgroundedAtStart:"${backgroundedAtStart}",browserLanguage:"${browserLanguage}",canonicalHost:"${canonicalHost}",canonicalHostname:"${canonicalHostname}",canonicalPath:"${canonicalPath}",canonicalUrl:"${canonicalUrl}",clientId:"CLIENT_ID(cid)",contentLoadTime:"${contentLoadTime}",documentReferrer:"${documentReferrer}",domainLookupTime:"${domainLookupTime}",
domInteractiveTime:"${domInteractiveTime}",externalReferrer:"${externalReferrer}",incrementalEngagedTime:"${incrementalEngagedTime}",pageDownloadTime:"${pageDownloadTime}",pageLoadTime:"${pageLoadTime}",screenHeight:"${screenHeight}",screenWidth:"${screenWidth}",screenColorDepth:"${screenColorDepth}",scrollHeight:"${scrollHeight}",scrollWidth:"${scrollWidth}",scrollTop:"${scrollTop}",scrollLeft:"${scrollLeft}",serverResponseTime:"${serverResponseTime}",timestamp:"${timestamp}",timezone:"${timezone}",
title:"${title}",totalEngagedTime:"${totalEngagedTime}",totalTime:"${totalTime}",userAgent:"${userAgent}",viewportHeight:"${viewportHeight}",viewportWidth:"${viewportWidth}"},transport:{beacon:!0,xhrpost:!0,img:!1,useBody:!0}},krux:{requests:{beaconHost:"https://beacon.krxd.net",timing:"t_navigation_type=0&t_dns=${domainLookupTime}&t_tcp=${tcpConnectTime}&t_http_request=${serverResponseTime}&t_http_response=${pageDownloadTime}&t_content_ready=${contentLoadTime}&t_window_load=${pageLoadTime}&t_redirect=${redirectTime}",
common:"source=amp&confid=${confid}&_kpid=${pubid}&_kcp_s=${site}&_kcp_sc=${section}&_kcp_ssc=${subsection}&_kcp_d=${canonicalHost}&_kpref_=${documentReferrer}&_kua_kx_amp_client_id=${clientId(_kuid_)}&_kua_kx_lang=${browserLanguage}&_kua_kx_tech_browser_language=${browserLanguage}&_kua_kx_tz=${timezone}",pageview:"${beaconHost}/pixel.gif?${common}&${timing}",event:"${beaconHost}/event.gif?${common}&${timing}&pageview=false"},transport:{beacon:!1,xhrpost:!1,image:!0},extraUrlParamsReplaceMap:{"user.":"_kua_",
"page.":"_kpa_"}},linkpulse:{vars:{id:"",pageUrl:"CANONICAL_URL",title:"TITLE",section:"",channel:"amp",type:"",host:"pp.lp4.io",empty:""},requests:{base:"https://${host}",pageview:"${base}/p?i=${id}&r=${documentReferrer}&p=${pageUrl}&s=${section}&t=${type}&c=${channel}&mt=${title}&_t=amp&_r=${random}",pageload:"${base}/pl?i=${id}&ct=${domInteractiveTime}&rt=${pageDownloadTime}&pt=${pageLoadTime}&p=${pageUrl}&c=${channel}&t=${type}&s=${section}&_t=amp&_r=${random}",ping:"${base}/u?i=${id}&u=${clientId(_lp4_u)}&p=${pageUrl}&uActive=true&isPing=yes&c=${channel}&t=${type}&s=${section}&_t=amp&_r=${random}"},
triggers:{pageview:{on:"visible",request:"pageview"},pageload:{on:"visible",request:"pageload"},ping:{on:"timer",timerSpec:{interval:30,maxTimerLength:7200},request:"ping"}},transport:{beacon:!1,xhrpost:!1,image:!0}},lotame:{requests:{pageview:"https://bcp.crwdcntrl.net/amp?c=${account}&pv=y"},triggers:{"track pageview":{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},marinsoftware:{requests:{base:"https://tracker.marinsm.com/tp",baseParams:"cid=${trackerId}&ampVersion=${ampVersion}&ds=AMP&ref=${externalReferrer}&page=${sourceUrl}&uuid=${clientId(marin_amp_id)}&rnd=${random}",
pageView:"${base}?${baseParams}&act=1",conversion:"${base}?${baseParams}&act=2&trans=UTM:I|${orderId}|${marinConversionType}|${productName}|${category}|${price}|${quantity}"},transport:{beacon:!0,xhrpost:!1,image:!0}},mediametrie:{requests:{host:"https://prof.estat.com/m/web",pageview:"${host}/${serial}?c=${level1}&dom=${ampdocUrl}&enc=${documentCharset}&l3=${level3}&l4=${level4}&n=${random}&p=${level2}&r=${documentReferrer}&sch=${screenHeight}&scw=${screenWidth}&tn=amp&v=1&vh=${availableScreenHeight}&vw=${availableScreenWidth}"},
triggers:{trackPageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},mediarithmics:{vars:{domain:"events.mediarithmics.com",url:"SOURCE_URL",event_name:"$page_view",referrer:"DOCUMENT_REFERRER"},requests:{host:"https://${domain}",pageview:"${host}/v1/visits/pixel?$site_token=${site_token}&$url=${url}&$ev=${event_name}&$referrer=${referrer}"},triggers:{trackPageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},mediator:{requests:{host:"//collector.mediator.media/script/${mediator_id}/amp/",
renderstart:"${host}init/?url=${canonicalUrl}",prefix:"${host}register/?url=${canonicalUrl}&ref=${documentReferrer}&",suffix:"vh=${viewportHeight}&sh=${scrollHeight}&st=${scrollTop}",pageview:"${prefix}e=v",timer:"${prefix}e=t&${suffix}",s0:"${prefix}e=s0",s1:"${prefix}e=s1",s2:"${prefix}e=s2",s3:"${prefix}e=s3"},vars:{mediator_id:""},triggers:{renderStart:{on:"render-start",request:"renderstart"},trackPageview:{on:"visible",request:"pageview"},scrollPing0:{on:"scroll",scrollSpec:{verticalBoundaries:[5]},
request:"s0"},scrollPing1:{on:"scroll",scrollSpec:{verticalBoundaries:[35]},request:"s1"},scrollPing2:{on:"scroll",scrollSpec:{verticalBoundaries:[65]},request:"s2"},scrollPing3:{on:"scroll",scrollSpec:{verticalBoundaries:[95]},request:"s3"},pageTimer:{on:"timer",timerSpec:{interval:5,maxTimerLength:600,immediate:!1},request:"timer"}}},metrika:{transport:{beacon:!0,xhrpost:!0,image:!1},requests:{pageview:"${_watch}?browser-info=${_brInfo}&${_siteInfo}&${_suffix}",notBounce:"${_watch}?browser-info=ar%3A1%3Anb%3A1%3A${_brInfo}&${_suffix}",
externalLink:"${_watch}?browser-info=ln%3A1%3A${_brInfo}&${_suffix}",reachGoal:"${_watch}?browser-info=ar%3A1%3A${_brInfo}&${_siteInfo}&${_goalSuffix}",_domain:"https://mc.yandex.ru",_watch:"${_domain}/watch/${counterId}",_suffix:"page-url=${sourceUrl}&page-ref=${documentReferrer}",_goalSuffix:"page-url=goal%3A%2F%2F${sourceHost}%2F${goalId}&page-ref=${sourceUrl}",_techInfo:"amp%3A1%3Az%3A${timezone}%3Ai%3A${timestamp}%3Arn%3A${random}%3Ala%3A${browserLanguage}%3Aen%3A${documentCharset}%3Arqn%3A${requestCount}%3As%3A${screenWidth}x${screenHeight}x${screenColorDepth}%3Aw%3A${availableScreenWidth}x${availableScreenHeight}%3Ads%3A${_timings}%3Auid%3A${clientId(_ym_uid)}%3Apvid%3A${pageViewId}",
_timings:"${domainLookupTime}%2C${tcpConnectTime}%2C${serverResponseTime}%2C${pageDownloadTime}%2C${redirectTime}%2C${navTiming(redirectStart,redirectEnd)}%2C${navRedirectCount}%2C${navTiming(domLoading,domInteractive)}%2C${navTiming(domContentLoadedEventStart,domContentLoadedEventEnd)}%2C${navTiming(navigationStart,domComplete)}%2C${pageLoadTime}%2C${navTiming(loadEventStart,loadEventEnd)}%2C${contentLoadTime}",_brInfo:"${_techInfo}%3A${_title}",_title:"t%3A${title}",_siteInfo:"site-info=${yaParams}"},
triggers:{pageview:{on:"visible",request:"pageview"}}},moat:{vars:{element:":root"},requests:{load:JSON.stringify({type:"load",pcode:"${pcode}",l0t:"${l0t}",acctType:"${acctType}",adType:"${adType}",qs:"${qs}",element:{src:"${htmlAttr(img,src,width)}",viewer:"${viewer}"},document:{AMPDocumentHostname:"${ampdocHostname}",AMPDocumentURL:"${ampdocUrl}",canonicalHost:"${canonicalHost}",canonicalHostname:"${canonicalHostname}",canonicalPath:"${canonicalPath}",canonicalURL:"${canonicalUrl}",documentCharset:"${documentCharset}",
documentReferrer:"${documentReferrer}",externalReferrer:"${externalReferrer}",sourceURL:"${sourceUrl}",sourceHost:"${sourceHost}",sourceHostname:"${sourceHostname}",sourcePath:"${sourcePath}",title:"${title}",viewer:"${viewer}"},device:{availableScreenHeight:"${availableScreenHeight}",availableScreenWidth:"${availableScreenWidth}",browserLanguage:"${browserLanguage}",screenColorDepth:"${screenColorDepth}",screenHeight:"${screenHeight}",screenWidth:"${screenWidth}",scrollHeight:"${scrollHeight}",scrollWidth:"${scrollWidth}",
scrollLeft:"${scrollLeft}",scrollTop:"${scrollTop}",timezone:"${timezone}",userAgent:"${userAgent}",viewportHeight:"${viewportHeight}",viewportWidth:"${viewportWidth}"},requestCount:"${requestCount}",timeStamp:"${timestamp}"}),unload:JSON.stringify({type:"unload",pcode:"${pcode}",l0t:"${l0t}",requestCount:"${requestCount}",timeStamp:"${timestamp}"}),click:JSON.stringify({type:"click",pcode:"${pcode}",l0t:"${l0t}",requestCount:"${requestCount}",timeStamp:"${timestamp}"}),viewability:JSON.stringify({type:"viewability",
pcode:"${pcode}",l0t:"${l0t}",backgroundState:"${backgroundState}",intersectionRect:"${intersectionRect}",intersectionRatio:"${intersectionRatio}",maxVisiblePercentage:"${maxVisiblePercentage}",minVisiblePercentage:"${minVisiblePercentage}",x:"${elementX}",y:"${elementY}",height:"${elementHeight}",width:"${elementWidth}",viewportHeight:"${viewportHeight}",viewportWidth:"${viewportWidth}",opacity:"${opacity}",timeStamp:"${timestamp}",requestCount:"${requestCount}"}),iframe:JSON.stringify({type:"iframe",
pcode:"${pcode}",height:"${elementHeight}",width:"${elementWidth}",x:"${elementX}",y:"${elementY}",requestCount:"${requestCount}"})},triggers:{load:{on:"ini-load",request:"load"},unload:{on:"ad-refresh",selector:"${element}",request:"unload"},click:{on:"click",selector:"${element}",request:"click"},viewability:{on:"visible",selector:"${element}",request:"viewability",visibilitySpec:{repeat:!0,visiblePercentageThresholds:[[0,0],[0,5],[5,10],[10,15],[15,20],[20,25],[25,30],[30,35],[35,40],[40,45],[45,
50],[50,55],[55,60],[60,65],[65,70],[70,75],[75,80],[80,85],[85,90],[90,95],[95,100],[100,100]]}},iframe:{on:"visible",selector:":root",request:"iframe",visibilitySpec:{repeat:!0,visiblePercentageThresholds:[[0,0]]}}}},mobify:{vars:{projectSlug:"mobify-project-id",templateName:"page-type"},requests:{_host:"https://engagement-collector.mobify.net",_dimensions:"%22platform%22%3a%22AMP%22%2c%22client_id%22%3a%22${clientId(sandy-client-id)}%22%2c%22title%22%3a%22${title}%22%2c%22location%22%3a%22${sourceUrl}%22%2c%22page%22%3a%22${sourcePath}%22%2c%22src_location%22%3a%22${ampdocUrl}%22%2c%22referrer%22%3a%22${documentReferrer}%22%2c%22templateName%22%3a%22${templateName}%22",
_basePrefix:"${_host}/s.gif?slug=${projectSlug}&timestamp_local=${timestamp}&channel=web&dimensions=%7b${_dimensions}%7d",ampstart:"${_basePrefix}&data=%7b%22category%22%3a%22timing%22%2c%22action%22%3a%22ampStart%22%2c%22value%22%3a${navTiming(navigationStart,domLoading)}%7d",pageview:"${_basePrefix}&data=%7b%22action%22%3a%22pageview%22%7d",pageload:"${_basePrefix}&data=%7b%22category%22%3a%22timing%22%2c%22action%22%3a%22load%22%2c%22value%22%3a${pageLoadTime}%7d",pagedcl:"${_basePrefix}&data=%7b%22category%22%3a%22timing%22%2c%22action%22%3a%22DOMContentLoaded%22%2c%22value%22%3a${contentLoadTime}%7d"},
triggers:{triggerName:{on:"visible",request:["ampstart","pageload","pagedcl"]},pageview:{on:"ini-load",request:"pageview"}},transport:{beacon:!0,xhrpost:!1,image:!0}},mparticle:{vars:{eventType:"Unknown",debug:!1,amp_clientId:"CLIENT_ID(mparticle_amp_id)"},requests:{host:"https://pixels.mparticle.com",endpointPath:"/v1/${apiKey}/Pixel",baseParams:"et=${eventType}&amp_id=${amp_clientId}&attrs_k=${eventAttributes_Keys}&attrs_v=${eventAttributes_Values}&ua_k=${userAttributes_Keys}&ua_v=${userAttributes_Values}&ui_t=${userIdentities_Types}&ui_v=${userIdentities_Values}&flags_k=${customFlags_Keys}&flags_v=${customFlags_Values}&ct=${timestamp}&dbg=${debug}&lc=${location}&av=${appVersion}",
pageview:"${host}${endpointPath}?dt=ScreenView&n=${pageName}&hn=${ampdocUrl}&ttl=${title}&path=${canonicalPath}&${baseParams}",event:"${host}${endpointPath}?dt=AppEvent&n=${eventName}&${baseParams}"},transport:{beacon:!1,xhrpost:!1,image:!0}},mpulse:{requests:{onvisible:"https://${beacon_url}?h.d=${h.d}&h.key=${h.key}&h.t=${h.t}&h.cr=${h.cr}&rt.start=navigation&rt.si=${clientId(amp_mpulse)}&rt.ss=${timestamp}&rt.end=${timestamp}&t_resp=${navTiming(navigationStart,responseStart)}&t_page=${navTiming(responseStart,loadEventStart)}&t_done=${navTiming(navigationStart,loadEventStart)}&nt_nav_type=${navType}&nt_red_cnt=${navRedirectCount}&nt_nav_st=${navTiming(navigationStart)}&nt_red_st=${navTiming(redirectStart)}&nt_red_end=${navTiming(redirectEnd)}&nt_fet_st=${navTiming(fetchStart)}&nt_dns_st=${navTiming(domainLookupStart)}&nt_dns_end=${navTiming(domainLookupEnd)}&nt_con_st=${navTiming(connectStart)}&nt_ssl_st=${navTiming(secureConnectionStart)}&nt_con_end=${navTiming(connectEnd)}&nt_req_st=${navTiming(requestStart)}&nt_res_st=${navTiming(responseStart)}&nt_unload_st=${navTiming(unloadEventStart)}&nt_unload_end=${navTiming(unloadEventEnd)}&nt_domloading=${navTiming(domLoading)}&nt_res_end=${navTiming(responseEnd)}&nt_domint=${navTiming(domInteractive)}&nt_domcontloaded_st=${navTiming(domContentLoadedEventStart)}&nt_domcontloaded_end=${navTiming(domContentLoadedEventEnd)}&nt_domcomp=${navTiming(domComplete)}&nt_load_st=${navTiming(loadEventStart)}&nt_load_end=${navTiming(loadEventEnd)}&v=1&http.initiator=amp&u=${sourceUrl}&amp.u=${ampdocUrl}&r2=${documentReferrer}&scr.xy=${screenWidth}x${screenHeight}"},
triggers:{onvisible:{on:"visible",request:"onvisible"}},transport:{beacon:!1,xhrpost:!1,image:!0},extraUrlParamsReplaceMap:{ab_test:"h.ab",page_group:"h.pg","custom_dimension.":"cdim.","custom_metric.":"cmet."}},newrelic:{requests:{pageview:"https://${beacon}/amp?appId=${appId}&licenseKey=${licenseKey}&ampUrl=${ampdocUrl}&canonicalUrl=${canonicalUrl}&timeToDomContentLoadedEventEnd=${navTiming(domContentLoadedEventEnd)}&timeToDomInteractive=${navTiming(domInteractive)}&timeToDomComplete=${navTiming(domComplete)}&timeToDomLoading=${navTiming(domLoading)}&timeToResponseStart=${navTiming(responseStart)}&timeToResponseEnd=${navTiming(responseEnd)}&timeToLoadEventStart=${navTiming(loadEventStart)}&timeToLoadEventEnd=${navTiming(loadEventEnd)}&timeToConnectStart=${navTiming(connectStart)}&timeToConnectEnd=${navTiming(connectEnd)}&timeToFetchStart=${navTiming(fetchStart)}&timeToRequestStart=${navTiming(requestStart)}&timeToUnloadEventStart=${navTiming(unloadEventStart)}&timeToUnloadEventEnd=${navTiming(unloadEventEnd)}&timeToDomainLookupStart=${navTiming(domainLookupStart)}&timeToDomainLookupEnd=${navTiming(domainLookupEnd)}&timeToRedirectStart=${navTiming(redirectStart)}&timeToRedirectEnd=${navTiming(redirectEnd)}&timeToSecureConnection=${navTiming(secureConnectionStart)}&timestamp=${timestamp}&ampVersion=${ampVersion}&pageLoadTime=${pageLoadTime}"},
vars:{beacon:"bam.nr-data.net",appId:[],licenseKey:""},triggers:{trackPageview:{on:"ini-load",request:"pageview"}}},nielsen:{vars:{sessionId:"CLIENT_ID(imrworldwide)",prefix:""},requests:{session:"https://${prefix}uaid-linkage.imrworldwide.com/cgi-bin/gn?prd=session&c13=asid,P${apid}&sessionId=${sessionId}_${pageViewId}&pingtype=4&enc=false&c61=createtm,${timestamp}&rnd=${random}",cloudapi:"https://${prefix}cloudapi.imrworldwide.com/nmapi/v2/${apid}/${sessionId}_${pageViewId}/a?b=%7B%22devInfo%22%3A%7B%22devId%22%3A%22${sessionId}_${pageViewId}%22%2C%22apn%22%3A%22${apn}%22%2C%22apv%22%3A%22${apv}%22%2C%22apid%22%3A%22${apid}%22%7D%2C%22metadata%22%3A%7B%22static%22%3A%7B%22type%22%3A%22static%22%2C%22section%22%3A%22${section}%22%2C%22assetid%22%3A%22${pageViewId}%22%2C%22segA%22%3A%22${segA}%22%2C%22segB%22%3A%22${segB}%22%2C%22segC%22%3A%22${segC}%22%2C%22adModel%22%3A%220%22%2C%22dataSrc%22%3A%22cms%22%7D%2C%22content%22%3A%7B%7D%2C%22ad%22%3A%7B%7D%7D%2C%22event%22%3A%22playhead%22%2C%22position%22%3A%22${timestamp}%22%2C%22data%22%3A%7B%22hidden%22%3A%22${backgroundState}%22%2C%22blur%22%3A%22${backgroundState}%22%2C%22position%22%3A%22${timestamp}%22%7D%2C%22type%22%3A%22static%22%2C%22utc%22%3A%22${timestamp}%22%2C%22index%22%3A%22${requestCount}%22%7D"},
triggers:{visible:{on:"visible",request:["session","cloudapi"]},hidden:{on:"hidden",request:"cloudapi"},duration:{on:"timer",timerSpec:{interval:10,maxTimerLength:86400,immediate:!1},request:"cloudapi"}},transport:{beacon:!1,xhrpost:!1,image:!0,referrerPolicy:"no-referrer"}},"nielsen-marketing-cloud":{transport:{beacon:!1,xhrpost:!1,image:!0},vars:{pubId:"",siteId:""},requests:{host:"loadeu.exelator.com",pathPrefix:"load/",trackurl:"https://${host}/${pathPrefix}?p=${pubId}&g=${siteId}&j=0"},triggers:{defaultPageview:{on:"visible",
request:"trackurl"}}},oewa:{transport:{beacon:!1,xhrpost:!1,image:!0},requests:{pageview:"${url}?s=${s}&amp=1&cp=${cp}&host=${canonicalHost}&path=${canonicalPath}"},triggers:{pageview:{on:"visible",request:"pageview"}}},oewadirect:{transport:{beacon:!1,xhrpost:!1,image:!0},requests:{pageview:"https://${s}.oewabox.at/j0=,,,r=${canonicalUrl};+,amp=1+cp=${cp}+ssl=1+hn=${canonicalHost};;;?lt=${pageViewId}&x=${screenWidth}x${screenHeight}x24&c=CLIENT_ID(oewa)"},triggers:{pageview:{on:"visible",request:"pageview"}}},
oracleInfinityAnalytics:{transport:{beacon:!1,xhrpost:!1,image:!0},requests:{host:"https://dc.oracleinfinity.io/${guid}/dcs.gif?",baseUrl:"dcssip=${dcssip}&dcsuri=${dcsuri}",baseRef:"&dcsref=${documentReferrer}",baseEs:"&WT.es=${sourceHost}${sourcePath}",baseTi:"&WT.ti=${ti}&dcsdat=${timestamp}",basePrefix:"${baseUrl}${baseTi}${baseRef}${baseEs}",screenBs:"&WT.bs=${availableScreenWidth}x${availableScreenHeight}",screenSr:"&WT.sr=${screenWidth}x${screenHeight}",screenDc:"&WT.cd=${screenColorDepth}",
screenMeasures:"${screenBs}${screenSr}${screenDc}",browserUl:"&WT.ul=${browserLanguage}",browserLe:"&WT.le=${documentCharset}",browserMeasures:"${browserUl}${browserLe}&WT.js=Yes",sessCof:"&WT.co_f=${clientId(WT_AMP)}",sessVer:"&ora.tv_amp=1.0.0&ora.amp_ver=${ampVersion}",sessionization:"${sessCof}${sessVer}&dcscfg=3",baseP1:"${host}${basePrefix}",baseP2:"${screenMeasures}${browserMeasures}${sessionization}",baseDl:"&WT.dl=${dl}",pageview:"${baseP1}${baseP2}${baseDl}",event:"${baseP1}${baseP2}${baseDl}",
dlPdf:'a[href$=".pdf"]',dlXls:',a[href$=".xls"]',dlPpt:',a[href$=".ppt"]',dlZip:',a[href$=".zip"]',dlTxt:',a[href$=".txt"]',dlRtf:',a[href$=".rtf"]',dlXml:',a[href$=".xml"]',downLoad:"${dlPdf}${dlXls}${dlPpt}${dlZip}${dlTxt}${dlRtf}${dlXml}"},vars:{dcssip:"${sourceHost}",dcsuri:"${sourcePath}",dl:"0",ti:"${title}"},triggers:{trackPageview:{on:"visible",request:"pageview"},trackAnchorClicks:{on:"click",selector:"a",request:"event",vars:{dl:"99",ti:"Link Click"}}},trackDownloadClicks:{on:"click",selector:"${downLoad}",
request:"event",vars:{dl:"20",ti:"Download Click"}}},parsely:{requests:{host:"https://srv.pixel.parsely.com",basePrefix:"${host}/plogger/?rand=${timestamp}&idsite=${apikey}&url=${ampdocUrl}&urlref=${documentReferrer}&screen=${screenWidth}x${screenHeight}%7C${availableScreenWidth}x${availableScreenHeight}%7C${screenColorDepth}&title=${title}&date=${timestamp}&ampid=${clientId(_parsely_visitor)}",pageview:'${basePrefix}&action=pageview&metadata={"canonical_url":"${canonicalUrl}"}',heartbeat:"${basePrefix}&action=heartbeat&tt=${totalEngagedTime}&inc=${incrementalEngagedTime(parsely-js)}"},
triggers:{defaultPageview:{on:"visible",request:"pageview"},defaultHeartbeat:{on:"timer",enabled:"${incrementalEngagedTime(parsely-js,false)}",timerSpec:{interval:10,maxTimerLength:7200},request:"heartbeat"}},transport:{beacon:!1,xhrpost:!1,image:!0}},piStats:{requests:{host:"https://events.pi-stats.com",basePrefix:"${host}/eventsamp/?e=PageLoad&pid=${property}&url=${ampdocUrl}&cnt=${cntId}&lang=${language}&ref=${documentReferrer}&id=${clientId(piStatsDEVICEID)}&ua=${userAgent}&ctype=web&blang=${browserLanguage}&v=2.0&dist=Javascript",
pageview:"${basePrefix}&eventtype=pageview"},triggers:{defaultPageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},permutive:{vars:{identity:"${clientId(_ga)}"},requests:{track:"https://${namespace}.amp.permutive.com/track?k=${key}&i=${identity}&it=amp",pageview:"${track}&e=Pageview&_ep_isp_info=%24ip_isp_info&_ep_geo_info=%24ip_geo_info",engagement:"${track}&e=PageviewEngagement&_ep_engaged_time=5",completion:"${track}&e=PageviewEngagement&_ep_completion=0.25"},
triggers:{trackPageview:{on:"visible",request:"pageview"},trackEngagement:{on:"visible",timerSpec:{interval:5,maxTimerLength:600,immediate:!1},request:"engagement"},trackCompletion:{on:"scroll",scrollSpec:{verticalBoundaries:[25,50,75,100]},request:"completion"}},transport:{beacon:!1,xhrpost:!1,image:!0},extraUrlParams:{"properties.client.type":"amp","properties.client.title":"${title}","properties.client.domain":"${canonicalHost}","properties.client.url":"${canonicalUrl}","properties.client.referrer":"${documentReferrer}",
"properties.client.user_agent":"${userAgent}"},extraUrlParamsReplaceMap:{"properties.":"_ep_"}},piano:{requests:{host:"https://api-v3.tinypass.com",basePrefix:"/api/v3",baseSuffix:"&pageview_id=${pageViewId}&rand=${random}&amp_client_id=${clientId}&aid=${aid}",pageview:"${host}${basePrefix}/page/track?url=${canonicalUrl}&referer=${documentReferrer}&content_created=${contentCreated}&content_author=${contentAuthor}&content_section=${contentSection}&timezone_offset=${timezone}&tags=${tags}&amp_url=${ampdocUrl}&screen=${screenWidth}x${screenHeight}${baseSuffix}"}},
pinpoll:{requests:{pageview:"${protocol}://${host}/${version}?url=${sourceUrl}&sourceHost=${sourceHost}&sourceHostname=${sourceHostname}&sourcePath=${sourcePath}&canonicalUrl=${canonicalUrl}&platform=AMP&title=${title}&referrer=${documentReferrer}&screenHeight=${screenHeight}&screenWidth=${screenWidth}&screenColorDepth=${screenColorDepth}&ua=${userAgent}&clientId=${clientId(pinpoll)}"},triggers:{pageview:{on:"visible",request:"pageview"}},vars:{version:"v1",protocol:"https",host:"pa.pinpoll.com"}},
pressboard:{vars:{mediaId:"",campaignId:"",storyRequestId:"",geoNameId:"",country:"",region:"",city:"",dbInstance:"",timeZoneOffset:"",clientId:"CLIENT_ID(_pressboardmedia)"},requests:{host:"https://adserver.pressboard.ca",common_params:"&amp=1&url=${canonicalUrl}&referrer=${documentReferrer}&ts=${timestamp}&ua=${userAgent}&rand=${random}&uid=${clientId}&mid=${mediaId}&cid=${campaignId}&sid=${storyRequestId}&geoid=${geoNameId}&cn=${country}&rg=${region}&ct=${city}&dbi=${dbInstance}&tz=${timeZoneOffset}",
conversion_params:"&hbt=${requestCount}&pvid=${pageViewId}&asurl=${sourceUrl}&ash=${scrollHeight}&asnh=${screenHeight}&aasnh=${availableScreenHeight}&avh=${viewportHeight}&ast=${scrollTop}&atet=${totalEngagedTime}",conversion:"${host}/track/attention-amp?${common_params}${conversion_params}"},triggers:{pageTimer:{on:"timer",timerSpec:{interval:1,startSpec:{on:"visible"},stopSpec:{on:"hidden"}},request:"conversion"}},transport:{beacon:!1,xhrpost:!1,image:!0}},quantcast:{vars:{labels:""},requests:{host:"https://pixel.quantserve.com/pixel",
pageview:"${host};r=${random};a=${pcode};labels=${labels};fpan=;fpa=${clientId(__qca)};ns=0;ce=1;cm=;je=0;sr=${screenWidth}x${screenHeight}x${screenColorDepth};enc=n;et=${timestamp};ref=${documentReferrer};url=${canonicalUrl}"},triggers:{defaultPageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},retargetly:{requests:{host:"https://api.retargetly.com",page:"${host}/api?id=${accountId}&src=${sourceId}&url=${sourceUrl}&n=${title}&ref=${documentReferrer}&ua=${userAgent}&random=${random}&bl=${browserLanguage}&source=amp"},
transport:{beacon:!1,xhrpost:!1,image:!0},triggers:{trackPageview:{on:"visible",request:"page"}}},rakam:{vars:{deviceId:"CLIENT_ID(rakam_device_id)"},requests:{base:"?api.api_key=${writeKey}&prop._platform=amp&prop._device_id=${deviceId}&prop.locale=${browserLanguage}&prop.path=${canonicalPath}&prop.url=${canonicalUrl}&prop.color_depth=${screenColorDepth}&prop._referrer=${documentReferrer}&prop.title=${title}&prop.timezone=${timezone}&prop._time=${timestamp}&prop.resolution=${screenWidth} \u00d7 ${screenHeight}",
pageview:"https://${apiEndpoint}/event/pixel${base}&collection=${pageViewName}",custom:"https://${apiEndpoint}/event/pixel${base}&collection=${collection}"}},reppublika:{requests:{host:"https://t5.mindtake.com",basePrefix:"/tag/cid/",baseSuffix:"Service=${service}&Category=${category}&Url=${sourceUrl}&Device=${device}&uid=${random}",pageview:"${host}${basePrefix}${code}/track.gif?${baseSuffix}"},transport:{beacon:!1,xhrpost:!1,image:!0}},segment:{transport:{beacon:!1,xhrpost:!1,image:!0},vars:{anonymousId:"CLIENT_ID(AMP_ECID_GOOGLE,,_ga)"},
requests:{host:"https://api.segment.io/v1/pixel",base:"?writeKey=${writeKey}&context.library.name=amp&anonymousId=${anonymousId}&context.locale=${browserLanguage}&context.page.path=${canonicalPath}&context.page.url=${canonicalUrl}&context.page.referrer=${documentReferrer}&context.page.title=${title}&context.screen.width=${screenWidth}&context.screen.height=${screenHeight}",page:"${host}/page${base}&name=${name}",track:"${host}/track${base}&event=${event}"},triggers:{page:{on:"visible",request:"page"}},
linkers:{segment:{ids:{s_amp_id:"${anonymousId}"},proxyOnly:!1}},cookies:{_ga:{value:"LINKER_PARAM(segment, s_amp_id)"}}},shinystat:{transport:{beacon:!1,xhrpost:!1,image:!0},requests:{base:"https://amp.shinystat.com/cgi-bin/shinyamp.cgi",commpar:"AMP=1&RM=${random}&USER=${account}&PAG=${page}&HR=${sourceUrl}&REFER=${documentReferrer}&RES=${screenWidth}X${screenHeight}&COLOR=${screenColorDepth}&CID=${clientId(AMP_CID)}&PAGID=${pageViewId}&TITL=${title}&RQC=${requestCount}",pagepar:"&VIE=${viewer}&PLT=${pageLoadTime}",
eventpar:"&SSXL=1",linkpar:"&LINK=${outboundLink}",pageview:"${base}?${commpar}${pagepar}",event:"${base}?${commpar}${eventpar}",link:"${base}?${commpar}${linkpar}"},triggers:{pageview:{on:"visible",request:"pageview"}}},simplereach:{vars:{pid:"",published_at:"",authors:[],channels:[],tags:[]},requests:{host:"https://edge.simplereach.com",baseParams:"amp=true&pid=${pid}&title=${title}&url=${canonicalUrl}&date=${published_at}&authors=${authors}&channels=${categories}&tags=${tags}&referrer=${documentReferrer}&page_url=${sourceUrl}&user_id=${clientId(sr_amp_id)}&domain=${canonicalHost}&article_id=${article_id}&ignore_metadata=${ignore_metadata}",
visible:"${host}/n?${baseParams}",timer:"${host}/t?${baseParams}&t=5000&e=5000"},triggers:{visible:{on:"visible",request:"visible"},timer:{on:"timer",timerSpec:{interval:5,maxTimerLength:1200},request:"timer"}}},snowplow:{vars:{duid:"CLIENT_ID(_sp_id)"},requests:{aaVersion:"amp-0.2",basePrefix:"https://${collectorHost}/i?url=${canonicalUrl}&page=${title}&res=${screenWidth}x${screenHeight}&stm=${timestamp}&tz=${timezone}&aid=${appId}&p=web&tv=${aaVersion}&cd=${screenColorDepth}&cs=${documentCharset}&duid=${duid}&lang=${browserLanguage}&refr=${documentReferrer}&stm=${timezone}&vp=${viewportWidth}x${viewportHeight}",
pageView:"${basePrefix}&e=pv",structEvent:"${basePrefix}&e=se&se_ca=${structEventCategory}&se_ac=${structEventAction}&se_la=${structEventLabel}&se_pr=${structEventProperty}&se_va=${structEventValue}"},transport:{beacon:!1,xhrpost:!1,image:!0}},teaanalytics:{vars:{userUniqueId:"${clientId(__tea_sdk__user_unique_id)}",debug:0},requests:{domain:"https://${channel}/v1/amp",commonParams:"user.user_unique_id=${userUniqueId}&header.app_id=${app_id}&header.language=${browserLanguage}&header.screen_height=${screenHeight}&header.screen_width=${screenWidth}&header.resolution=${screenHeight}x${screenWidth}&header.tz_offset=${timezone}&header.tz_name=${timezoneCode}&header.referrer=${documentReferrer}&header.custom.user_agent=${userAgent}&event.local_time_ms=${timestamp}&event.params._staging_flag=${debug}&verbose=${debug}",
base:"${domain}?${commonParams}&rnd=${random}",pageview:"${base}&event=predefine_pageview&event.params.url=${sourceUrl}&event.params.url_path=${sourcePath}&event.params.title=${title}",event:"${base}"}},tealiumcollect:{transport:{beacon:!1,xhrpost:!1,image:!0},vars:{account:"TEALIUM_ACCOUNT",profile:"TEALIUM_PROFILE",datasource:"TEALIUM_DATASOURCE",visitor_id:"CLIENT_ID(AMP_ECID_GOOGLE,,_ga)"},requests:{host:"https://collect.tealiumiq.com",base:"${host}/event?${tealium}&${dom1}&${dom2}&${datetime}&tealium_event=${tealium_event}&amp_version=${ampVersion}&amp_request_count=${requestCount}",
tealium:"tealium_account=${account}&tealium_profile=${profile}&tealium_datasource=${datasource}&tealium_visitor_id=${visitor_id}",dom1:"url=${sourceUrl}&ampdoc_url=${ampdocUrl}&domain=${sourceHost}&pathname=${sourcePath}&amp_hostname=${ampdocHostname}&canonical_hostname=${canonicalHostname}",dom2:"title=${title}&viewport_width=${availableScreenWidth}&viewport_height=${availableScreenHeight}",datetime:"timestamp=${timestamp}&tz=${timezone}&lang=${browserLanguage}",pageview:"${base}&referrer=${documentReferrer}&screen_size=${screenWidth}x${screenHeight}&content_load_ms=${contentLoadTime}&page_view_id=${pageViewId}",
event:"${base}&scroll_y=${scrollTop}&scroll_x=${scrollLeft}"},triggers:{defaultPageview:{on:"visible",request:"pageview",vars:{tealium_event:"screen_view"}}}},top100:{vars:{pid:"",rid:"PAGE_VIEW_ID",ruid:"CLIENT_ID(ruid)",version:"1.0.0"},requests:{host:"https://kraken.rambler.ru",base:"${host}/cnt/?pid=${pid}&rid=${rid}&v=${version}&rn=${random}&ruid=${ruid}&ct=amp",pageview:"${base}&et=pv${_pageData}${_screenData}",_screenData:"&sr=${screenWidth}x${screenHeight}&cd=${screenColorDepth}-bit&bs=${scrollWidth}x${scrollHeight}",
_pageData:"&pt=${title}&rf=${documentReferrer}&en=${documentCharset}&la=${browserLanguage}&tz=${timezone}"},triggers:{trackPageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},topmailru:{transport:{beacon:!1,xhrpost:!1,image:!0},vars:{url:"${sourceUrl}",referrer:"${documentReferrer}"},requests:{pageView:"${_domain}/counter?${_basicMessage};title=${title}",reachGoal:"${_domain}/tracker?${_basicMessage};title=${title};e=RG%3A${value}%2F${goal}",sendEvent:"${_domain}/tracker?${_basicMessage};e=CE%3A${value}%2F${category}%3B${action}%3B${label}",
_domain:"https://top-fwz1.mail.ru",_basicMessage:"js=13;id=${id};u=${url};r=${referrer};s=${screenWidth}*${screenHeight};vp=${viewportWidth}*${viewportHeight};st=${start};gender=${gender};age=${age};pid=${pid};userid=${userid};device=${device};params=${params};_=${random}"},triggers:{pageView:{on:"visible",request:"pageView"}}},treasuredata:{vars:{host:"in.treasuredata.com",writeKey:"",database:"",table:"events"},requests:{base:"https://${host}/postback/v3/event/${database}",baseParams:"td_write_key=${writeKey}&td_global_id=td_global_id&td_client_id=CLIENT_ID(_td)&td_charset=DOCUMENT_CHARSET&td_language=BROWSER_LANGUAGE&td_color=SCREEN_COLOR_DEPTH&td_screen=${screenWidth}x${scrollHeight}&td_viewport=${availableScreenWidth}x${availableScreenHeight}&td_title=TITLE&td_url=SOURCE_URL&td_user_agent=USER_AGENT&td_host=SOURCE_HOST&td_path=SOURCE_PATH&td_referrer=DOCUMENT_REFERRER&td_ip=td_ip",
pageview:"${base}/${table}?${baseParams}",event:"${base}/${table}?${baseParams}"}},umenganalytics:{vars:{siteid:"",initial_view_time:"",eventName:"",eventProps:""},requests:{base:"https://b.cnzz.com/utrack?&_siteid=${siteid}&_distinct_id=${clientId(umeng_amp_id)}&_t=${timestamp}&_s=google&_b=web&_r=${externalReferrer}&_h=${screenHeight}&_w=${screenWidth}&_ivt=${initial_view_time}",pageview:"${base}&_ename=$w_page_view&_eprops=${eventProps}",event:"${base}&_ename=${eventName}&_eprops=${eventProps}"},
triggers:{defaultPageview:{on:"visible",request:"pageview"}},transport:{beacon:!1,xhrpost:!1,image:!0}},upscore:{requests:{host:"https://hit-pool.upscore.com/amp?",basePrefix:"u_id=${clientId(upscore)}&hit_id=${pageViewId}&scTop=${scrollTop}&scHeight=${scrollHeight}&vHeight=${viewportHeight}&domain=${domain}&load=${domInteractiveTime}&timespent=${totalEngagedTime}",initialHit:"author=${author}&creator=${creator}&o_id=${object_id}&o_type=${object_type}&pubdate=${pubdate}&ref=${documentReferrer}&section=${section}&url=${ampdocUrl}&agent=${userAgent}&location=${ampGeo(ISOCountry)}",
finalbeat:"${host}${basePrefix}&type=final",heartbeat:"${host}${basePrefix}&type=pulse",pageview:"${host}${basePrefix}&${initialHit}&type=init"},triggers:{initHit:{on:"visible",request:"pageview"},pulse:{on:"timer",timerSpec:{interval:10,immediate:!1,stopSpec:{on:"hidden"}},request:"heartbeat"},"final":{on:"hidden",visibilitySpec:{totalTimeMin:5E3},request:"finalbeat"}},transport:{beacon:!0,xhrpost:!0,image:!1}},webtrekk:{requests:{trackURL:"https://${trackDomain}/${trackId}/wt",parameterPrefix:"?p=432,${contentId},1,${screenWidth}x${screenHeight},${screenColorDepth},1,${timestamp},${documentReferrer},${viewportWidth}x${viewportHeight},0&tz=${timezone}&eid=${clientId(amp-wt3-eid)}&la=${browserLanguage}",
parameterSuffix:"&pu=${sourceUrl}",pageParameter:"&cp1=${pageParameter1}&cp2=${pageParameter2}&cp3=${pageParameter3}&cp4=${pageParameter4}&cp5=${pageParameter5}&cp6=${pageParameter6}&cp7=${pageParameter7}&cp8=${pageParameter8}&cp9=${pageParameter9}&cp10=${pageParameter10}",pageCategories:"&cg1=${pageCategory1}&cg2=${pageCategory2}&cg3=${pageCategory3}&cg4=${pageCategory4}&cg5=${pageCategory5}&cg6=${pageCategory6}&cg7=${pageCategory7}&cg8=${pageCategory8}&cg9=${pageCategory9}&cg10=${pageCategory10}",
pageview:"${trackURL}${parameterPrefix}${pageParameter}${pageCategories}${parameterSuffix}",actionParameter:"&ck1=${actionParameter1}&ck2=${actionParameter2}&ck3=${actionParameter3}&ck4=${actionParameter4}&ck5=${actionParameter5}",event:"${trackURL}${parameterPrefix}&ct=${actionName}${actionParameter}${parameterSuffix}"},transport:{beacon:!1,xhrpost:!1,image:!0}},webtrekk_v2:{vars:{actionName:"webtrekk_ignore",contentId:"${title}",mediaName:"${id}",everId:"${clientId(amp-wt3-eid)}"},requests:{trackURL:"https://${trackDomain}/${trackId}/wt",
basePrefix:"?p=440,${contentId},1,${screenWidth}x${screenHeight},${screenColorDepth},1,",baseSuffix:",${documentReferrer},${viewportWidth}x${viewportHeight},0&tz=${timezone}&eid=${everId}&la=${browserLanguage}",parameterPrefix:"${basePrefix}${timestamp}${baseSuffix}",parameterSuffix:"&pu=${sourceUrl}&eor=1",pageview:"${trackURL}${parameterPrefix}&${extraUrlParams}&cp570=${pageLoadTime}${parameterSuffix}",event:"${trackURL}${parameterPrefix}&ct=${actionName}&${extraUrlParams}${parameterSuffix}",scroll:"${trackURL}${parameterPrefix}&ct=${actionName}&ck540=${verticalScrollBoundary}${parameterSuffix}",
mediaPrefix:"${trackURL}${basePrefix}${baseSuffix}&mi=${mediaName}",mediaSuffix:"&mt1=${currentTime}&mt2=${duration}&${extraUrlParams}${parameterSuffix}&x=${playedTotal}",mediaPlay:"${mediaPrefix}&mk=play${mediaSuffix}",mediaPause:"${mediaPrefix}&mk=pause${mediaSuffix}",mediaPosition:"${mediaPrefix}&mk=pos${mediaSuffix}",mediaEnded:"${mediaPrefix}&mk=eof${mediaSuffix}"},extraUrlParamsReplaceMap:{pageParameter:"cp",contentGroup:"cg",actionParameter:"ck",sessionParameter:"cs",ecommerceParameter:"cb",
urmCategory:"uc",campaignParameter:"cc",mediaCategory:"mg"},transport:{beacon:!1,xhrpost:!1,image:!0}}};K.infonline.triggers.pageview.iframePing=!0;K.adobeanalytics_nativeConfig.triggers.pageLoad.iframePing=!0;K.oewa.triggers.pageview.iframePing=!0;var fb={bg:"https://tpc.googlesyndication.com/b4a/b4a-runner.html",moat:"https://z.moatads.com/ampanalytics093284/iframe.html"},gb;for(gb in fb)F(fb,gb)&&(K[gb].transport=Object.assign({},K[gb].transport,{iframe:fb[gb]}));function hb(){var a=100;this.uc=a;this.jb=this.Fb=0;this.Ma=Object.create(null)}hb.prototype.has=function(a){return!!this.Ma[a]};hb.prototype.get=function(a){var b=this.Ma[a];if(b)return b.access=++this.jb,b.payload};hb.prototype.put=function(a,b){this.has(a)||this.Fb++;this.Ma[a]={payload:b,access:this.jb};if(!(this.Fb<=this.uc)){w().warn("lru-cache","Trimming LRU cache");a=this.Ma;var c=this.jb+1,d;for(d in a){var e=a[d].access;if(e<c){c=e;var f=d}}void 0!==f&&(delete a[f],this.Fb--)}};var L=self.AMP_CONFIG||{},ib={thirdParty:L.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:L.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:("string"==typeof L.thirdPartyFrameRegex?new RegExp(L.thirdPartyFrameRegex):L.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdn:L.cdnUrl||"https://cdn.ampproject.org",cdnProxyRegex:("string"==typeof L.cdnProxyRegex?new RegExp(L.cdnProxyRegex):L.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,
errorReporting:L.errorReportingUrl||"https://amp-error-reporting.appspot.com/r",localDev:L.localDev||!1};E({c:!0,v:!0,a:!0,ad:!0,action:!0});var jb,kb;
function M(a){var b;jb||(jb=self.document.createElement("a"),kb=self.UrlCache||(self.UrlCache=new hb));var c=b?null:kb,d=jb;if(c&&c.has(a))a=c.get(a);else{d.href=a;d.protocol||(d.href=d.href);var e={href:d.href,protocol:d.protocol,host:d.host,hostname:d.hostname,port:"0"==d.port?"":d.port,pathname:d.pathname,search:d.search,hash:d.hash,origin:null};"/"!==e.pathname[0]&&(e.pathname="/"+e.pathname);if("http:"==e.protocol&&80==e.port||"https:"==e.protocol&&443==e.port)e.port="",e.host=e.hostname;e.origin=
d.origin&&"null"!=d.origin?d.origin:"data:"!=e.protocol&&e.host?e.protocol+"//"+e.host:e.href;c&&c.put(a,e);a=e}return a}function lb(a,b,c){if(!b)return a;var d=a.split("#",2),e=d[0].split("?",2),f=e[0]+(e[1]?c?"?"+b+"&"+e[1]:"?"+e[1]+"&"+b:"?"+b);return f+=d[1]?"#"+d[1]:""}
function mb(a){var b=[],c;for(c in a){var d=a[c];if(null!=d)if(Array.isArray(d))for(var e=0;e<d.length;e++){var f=d[e];b.push(encodeURIComponent(c)+"="+encodeURIComponent(f))}else e=d,b.push(encodeURIComponent(c)+"="+encodeURIComponent(e))}return b.join("&")}
function nb(a,b){var c=void 0===c?"source":c;x(null!=a,"%s %s must be available",b,c);var d=a;a=d;"string"==typeof a&&(a=M(a));a="https:"==a.protocol||"localhost"==a.hostname||Ia(a.hostname,".localhost");x(a||/^(\/\/)/.test(d),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',b,c,d)}function ob(a){"string"==typeof a&&(a=M(a));return ib.cdnProxyRegex.test(a.origin)};function pb(a,b){try{return JSON.parse(a)}catch(c){b&&b(c)}};function qb(a){return"undefined"!==typeof TextEncoder?(new TextEncoder("utf-8")).encode(a):rb(unescape(encodeURIComponent(a)))}function rb(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var d=a.charCodeAt(c);b[c]=d}return b}function sb(a){for(var b=Array(a.length),c=0;c<a.length;c++)b[c]=String.fromCharCode(a[c]);return b.join("")};var tb={"-":"+",_:"/",".":"="},ub={"+":"-","/":"_","=":"."};function vb(a){var b=atob(a.replace(/[-_.]/g,function(a){return tb[a]}));return rb(b)}function wb(a){a=sb(a);return btoa(a).replace(/[+/=]/g,function(a){return ub[a]})}function xb(a){a=qb(a);return wb(a)};function yb(a){var b=void 0===b?"default":b;return Ta(a,"consentPolicyManager","amp-consent").then(function(a){return a?a.whenPolicyResolved(b):null})};var zb=/^(?:([^\s]*)(\([^)]*\))|[^]+)$/,Ab={1:"sufficient",2:"insufficient",3:"not_required",4:"unknown"};function N(a,b,c){this.vars=a;this.iterations=void 0===b?2:b;this.noEncode=!!c;this.freezeVars={}}N.prototype.freezeVar=function(a){this.freezeVars[a]=!0};N.prototype.getVar=function(a){a=this.vars[a];null==a&&(a="");return a};
function Bb(a,b,c){b=Number(b);var d=a.length;x(u(b),"Start index "+b+"in substr macro should be a number");c&&(d=Number(c),x(u(d),"Length "+d+" in substr macro should be a number"));return a.substr(b,d)}function Cb(a,b){return a&&a.length?a:v().assertString(b)}function Db(a,b,c){b||v().warn("amp-analytics/variables","REPLACE macro must have two or more arguments");c||(c="");var d=new RegExp(b,"g");return a.replace(d,c)}
function Eb(a){this.l=a;this.ya={};this.ya.$DEFAULT=Cb;this.ya.$SUBSTR=Bb;O(this,"$TRIM",function(a){return a.trim()});O(this,"$TOLOWERCASE",function(a){return a.toLowerCase()});O(this,"$TOUPPERCASE",function(a){return a.toUpperCase()});O(this,"$NOT",function(a){return String(!a)});O(this,"$BASE64",function(a){return xb(a)});O(this,"$HASH",this.Kc.bind(this));O(this,"$IF",function(a,c,d){return a?c:d});this.ya.$REPLACE=Db}Eb.prototype.getMacros=function(){return this.ya};
function O(a,b,c){a.ya[b]=c}Eb.prototype.expandTemplate=function(a,b){return ha(this.expandTemplateSync.bind(this,a,b))};
Eb.prototype.expandTemplateSync=function(a,b){var c=this;return a.replace(/\${([^}]*)}/g,function(a,e){if(0>b.iterations)return v().error("amp-analytics/variables","Maximum depth reached while expanding variables. Please ensure that the variables are not recursive."),a;if(!e)return"";var d=Fb(e);e=d.name;d=d.argList;if(b.freezeVars[e])return a;a=b.getVar(e);"string"==typeof a&&(a=c.expandTemplateSync(a,new N(b.vars,b.iterations-1,!0)));b.noEncode||(a=Gb(a));a&&(a+=d);return a})};
Eb.prototype.Kc=function(a){return B(this.l,"crypto").sha384Base64(a)};function Gb(a){if(null==a)return"";if(Array.isArray(a))return a.map(Gb).join(",");var b=Fb(String(a)),c=b.argList;return encodeURIComponent(b.name)+c}function Fb(a){if(!a)return{name:"",argList:""};var b=a.match(zb);x(b,"Variable with invalid format found: "+a);return{name:b[1]||b[0],argList:b[2]||""}}function P(a){return B(a,"amp-analytics-variables")}function Hb(a){return yb(a).then(function(a){return a?Ab[a]:null})};function Ib(a){this.j=a;this.l=null;this.Ab=K;this.h={};this.oa={};this.R=!1}g=Ib.prototype;g.loadConfig=function(){var a=this;this.l=this.j.ownerDocument.defaultView;this.R=this.j.hasAttribute("sandbox");return Jb(this).then(this.Uc.bind(this)).then(function(){return a.h})};
function Jb(a){var b=a.j.getAttribute("config");if(!b||a.R)return Promise.resolve();nb(b,a.j);var c=a.A(),d={requireAmpResponseSourceOrigin:!1};a.j.hasAttribute("data-credentials")&&(d.credentials=a.j.getAttribute("data-credentials"));return G(a.j).expandUrlAsync(b).then(function(c){b=c;return B(a.l,"xhr").fetchJson(b,d)}).then(function(a){return a.json()}).then(function(b){a.oa=b},function(a){v().error(c,"Error loading remote config: ",b,a)})}
g.Uc=function(){var a=(Kb(this).configRewriter||{}).url,b=E({}),c=this.getInlineConfigNoInline(),d=c,e=this.j.getAttribute("type");this.Ab[e]&&(d.transport||this.oa.transport)&&(e=this.A(),v().error(e,"Inline or remote config should not overwrite vendor transport settings"));d.transport&&d.transport.iframe&&(v().error("amp-analytics/config","Inline configs are not allowed to specify transport iframe"),d.transport.iframe=void 0);this.oa.transport&&this.oa.transport.iframe&&(v().error("amp-analytics/config",
"Remote configs are not allowed to specify transport iframe"),this.oa.transport.iframe=void 0);Q(c,b);Q(this.oa,b);return!a||this.R?(this.h=Lb(this,b),Promise.resolve()):Mb(this,b,a)};
function Mb(a,b,c){nb(c,a.j);var d=a.A();return Nb(a,b).then(function(){var e={method:"POST",body:b,requireAmpResponseSourceOrigin:!1};a.j.hasAttribute("data-credentials")&&(e.credentials=a.j.getAttribute("data-credentials"));return G(a.j).expandUrlAsync(c).then(function(b){return B(a.l,"xhr").fetchJson(b,e)}).then(function(a){return a.json()}).then(function(b){a.h=Lb(a,b)},function(a){v().error(d,"Error rewriting configuration: ",c,a)})})}
function Nb(a,b){var c=b.configRewriter,d=c&&c.varGroups,e=(Kb(a).configRewriter||{}).varGroups;if(!d&&!e)return Promise.resolve();if(d&&!e){var f=a.A();v().warn(f,"This analytics provider does not currently support varGroups");return Promise.resolve()}b.configRewriter=b.configRewriter||{};var h=b.configRewriter;h.vars=E({});var k=[],m=d||{};Ha(m,e);Object.keys(m).forEach(function(b){var c=m[b];if(c.enabled){var d=a.shallowExpandObject(a.j,c).then(function(a){delete a.enabled;Object.assign(h.vars,
a)});k.push(d)}});return Promise.all(k).then(function(){if(!Object.keys(h.vars).length)return delete b.configRewriter;d&&delete h.varGroups})}function Lb(a,b){var c=E({vars:{requestCount:0}}),d=a.Ab["default"]||{};Q(Ob(d),c);Q(Ob(Kb(a)),c,!0);Q(Ob(b),c,!0);return c}function Kb(a){var b=a.j.getAttribute("type");return a.Ab[b]||{}}
g.getInlineConfigNoInline=function(){if(this.j.CONFIG)return this.j.CONFIG;var a={},b=this.A();try{var c=this.j.children;if(1==c.length){var d=this.j;/^[\w-]+$/.test("script");var e=(void 0!==D?D:D=Ea(d))?d.querySelectorAll("> script".replace(/^|,/g,"$&:scope ")):Pa(d,"> script");if(1!==e.length)throw Error("Found "+e.length+" <script> children. Expected 1.");var f=e[0];if("SCRIPT"!=f.tagName||!f.hasAttribute("type")||"APPLICATION/JSON"!=f.getAttribute("type").toUpperCase())throw Error('<script> child must have type="application/json"');
try{a=JSON.parse(f.textContent)}catch(h){throw Error("Failed to parse <script> contents. Is it valid JSON?");}}else 1<c.length&&v().error(b,"The tag should contain only one <script> child.")}catch(h){v().error(b,h.message)}return a};g.A=function(){return"AmpAnalytics "+(this.j.getAttribute("id")||"<unknown id>")};
g.shallowExpandObject=function(a,b){var c=this,d={},e=[],f=[];Object.keys(b).forEach(function(d){e.push(d);var h=G(a).expandStringAsync(b[d],P(c.l).getMacros());f.push(h)});return Promise.all(f).then(function(a){e.forEach(function(b,c){return d[b]=a[c]});return d})};
function Q(a,b,c){if(null===b||void 0===b)b={};x(c||!a||!a.optout||"_gaUserPrefs.ioo"==a.optout,"optout property is only available to vendor config.");for(var d in a)x(c||"iframePing"!=d,"iframePing config is only available to vendor config."),F(a,d)&&(Array.isArray(a[d])?(Array.isArray(b[d])||(b[d]=[]),b[d]=Q(a[d],b[d],c)):q(a[d])?(q(b[d])||(b[d]={}),b[d]=Q(a[d],b[d],c)):b[d]=a[d]);return b}
function Ob(a){if(!a.requests)return a;for(var b in a.requests)if(F(a.requests,b)){var c=a.requests;var d=a.requests[b];d=q(d)?d:{baseUrl:d};c[b]=d}return a};function R(){this.D=null}g=R.prototype;g.add=function(a){var b=this;this.D||(this.D=[]);this.D.push(a);return function(){b.remove(a)}};g.remove=function(a){this.D&&(a=this.D.indexOf(a),-1<a&&this.D.splice(a,1))};g.removeAll=function(){this.D&&(this.D.length=0)};g.fire=function(a){if(this.D)for(var b=this.D,c=0;c<b.length;c++)(0,b[c])(a)};g.getHandlerCount=function(){return this.D?this.D.length:0};var Pb={ENDED:"video-ended",PAUSE:"video-pause",PLAY:"video-play",SESSION:"video-session",SESSION_VISIBLE:"video-session-visible",SECONDS_PLAYED:"video-seconds-played",CUSTOM:"video-hosted-custom",PERCENTAGE_PLAYED:"video-percentage-played"};var Ra=/^vars(.+)/;function Qb(){}
var qa={VISIBLE:"visible",CLICK:"click",TIMER:"timer",SCROLL:"scroll",HIDDEN:"hidden"},S=["ampdoc","embed"],W=Object.freeze({click:{name:"click",allowedFor:S.concat(["timer"]),klass:function(a){return new Rb(a)}},scroll:{name:"scroll",allowedFor:S.concat(["timer"]),klass:function(a){return new Sb(a)}},custom:{name:"custom",allowedFor:S.concat(["timer"]),klass:function(a){return new T(a)}},"render-start":{name:"render-start",allowedFor:S.concat(["timer","visible"]),klass:function(a){return new U(a)}},
"ini-load":{name:"ini-load",allowedFor:S.concat(["timer","visible"]),klass:function(a){return new V(a)}},timer:{name:"timer",allowedFor:S,klass:function(a){return new Tb(a)}},visible:{name:"visible",allowedFor:S.concat(["timer"]),klass:function(a){return new Ub(a)}},hidden:{name:"visible",allowedFor:S.concat(["timer"]),klass:function(a){return new Ub(a)}},video:{name:"video",allowedFor:S.concat(["timer"]),klass:function(a){return new Vb(a)}}});
function Wb(a){return Ja(a,"video")?"video":W[a]||pa(a)?F(W,a)?W[a].name:a:"custom"}function Xb(a){var b={};Object.keys(W).forEach(function(c){F(W,c)&&-1!=W[c].allowedFor.indexOf(a)&&(b[c]=W[c].klass)},this);return b}function X(a,b,c){this.target=a;this.type=b;this.vars=c||{}}function Y(a){this.root=a}Y.prototype.dispose=function(){};Y.prototype.add=function(){};function T(a){this.root=a;var b=this;this.na={};this.M={};this.ca={};setTimeout(function(){b.M=void 0},1E4)}n(T,Y);
T.prototype.dispose=function(){this.ca=this.M=void 0;for(var a in this.na)this.na[a].removeAll()};
T.prototype.add=function(a,b,c,d){var e=this,f=c.selector;f||(f=":root");var h=c.selectionMethod||null,k=this.root.getElement(a,f,h),m=Ja(b,"sandbox-"),l=m?this.ca&&this.ca[b]:this.M&&this.M[b];if(l){var p=l.length;k.then(function(a){setTimeout(function(){for(var c=0;c<p;c++){var f=l[c];a.contains(f.target)&&d(f)}m&&(e.ca[b]=void 0)},1)})}var r=this.na[b];r||(r=new R,this.na[b]=r);return this.na[b].add(function(a){k.then(function(b){b.contains(a.target)&&d(a)})})};
T.prototype.trigger=function(a){var b=a.type,c=Ja(b,"sandbox-"),d=this.na[b];if(d&&(d.fire(a),c))return;c?(this.ca[b]=this.ca[b]||[],this.ca[b].push(a)):this.M&&(this.M[b]=this.M[b]||[],this.M[b].push(a))};function Rb(a){this.root=a;this.Na=new R;this.Ob=this.Na.fire.bind(this.Na);this.root.getRoot().addEventListener("click",this.Ob)}n(Rb,Y);Rb.prototype.dispose=function(){this.root.getRoot().removeEventListener("click",this.Ob);this.Na.removeAll()};
Rb.prototype.add=function(a,b,c,d){b=x(c.selector,"Missing required selector on click trigger");c=c.selectionMethod||null;return this.Na.add(this.root.createSelectiveListener(this.Dc.bind(this,d),a.parentElement||a,b,c))};Rb.prototype.Dc=function(a,b){var c=Qa(b);a(new X(b,"click",c))};function Sb(a){this.ba=this.root=a;this.ta=null}n(Sb,Y);Sb.prototype.dispose=function(){null!==this.ta&&(this.ba.getScrollManager().removeScrollHandler(this.ta),this.ta=null)};
Sb.prototype.add=function(a,b,c,d){if(!c.scrollSpec)return v().error("amp-analytics/events","Missing scrollSpec on scroll trigger."),Qb;if(!Array.isArray(c.scrollSpec.verticalBoundaries)&&!Array.isArray(c.scrollSpec.horizontalBoundaries))return v().error("amp-analytics/events","Boundaries are required for the scroll trigger to work."),Qb;var e=Yb(c.scrollSpec.verticalBoundaries),f=Yb(c.scrollSpec.horizontalBoundaries);this.ta=this.Xc.bind(this,e,f,d);return this.ba.getScrollManager().addScrollHandler(this.ta)};
Sb.prototype.Xc=function(a,b,c,d){Zb(this,a,100*(d.top+d.height)/d.scrollHeight,"verticalScrollBoundary",c);Zb(this,b,100*(d.left+d.width)/d.scrollWidth,"horizontalScrollBoundary",c)};function Yb(a){var b=E({});if(!a||!Array.isArray(a))return b;for(var c=0;c<a.length;c++){var d=a[c];if("number"!==typeof d||!isFinite(d)){v().error("amp-analytics/events","Scroll trigger boundaries must be finite.");break}d=Math.min(5*Math.round(d/5),100);b[d]=!1}return b}
function Zb(a,b,c,d,e){if(c)for(var f in b)if(F(b,f)){var h=parseInt(f,10);h>c||b[h]||(b[h]=!0,h={},h[d]=f,e(new X(a.ba.getRootElement(),"scroll",h)))}}function U(a){this.root=a}n(U,Y);U.prototype.dispose=function(){};
U.prototype.add=function(a,b,c,d){var e=this,f=c.selector||":root";if(":root"==f||":host"==f){var h=this.root.getRootElement();var k=this.getRootSignal(b)}else k=this.root.getAmpElement(a.parentElement||a,f,c.selectionMethod).then(function(a){h=a;return e.getElementSignal(b,h)});k.then(function(){d(new X(h,b))});return Qb};U.prototype.getRootSignal=function(a){return this.root.signals().whenSignal(a)};
U.prototype.getElementSignal=function(a,b){return"function"!=typeof b.signals?Promise.resolve():b.signals().whenSignal(a)};function V(a){this.root=a}n(V,Y);V.prototype.dispose=function(){};
V.prototype.add=function(a,b,c,d){var e=this,f=c.selector||":root";if(":root"==f||":host"==f){var h=this.root.getRootElement();a=this.getRootSignal()}else a=this.root.getAmpElement(a.parentElement||a,f,c.selectionMethod).then(function(a){h=a;return e.getElementSignal("ini-load",h)});a.then(function(){d(new X(h,b))});return Qb};V.prototype.getRootSignal=function(){return this.root.whenIniLoaded()};
V.prototype.getElementSignal=function(a,b){if("function"!=typeof b.signals)return Promise.resolve();var c=b.signals();return Promise.race([c.whenSignal("ini-load"),c.whenSignal("load-end")])};
function $b(a,b,c){this.Wa=void 0;x("interval"in a,"Timer interval specification required");this.Yb=Number(a.interval)||0;x(.5<=this.Yb,"Bad timer interval specification");this.bc="maxTimerLength"in a?Number(a.maxTimerLength):7200;x(0<this.bc,"Bad maxTimerLength specification");this.Oc="maxTimerLength"in a;this.tc="immediate"in a?!!a.immediate:!0;this.ea=this.V=this.tb=null;this.Fa=b||null;this.fb=c||null;this.Xa=this.T=void 0}g=$b.prototype;
g.init=function(a){this.Fa?this.Fa&&(this.V=this.Fa()):a()};g.dispose=function(){this.ea&&(this.ea(),this.ea=null);this.V&&(this.V(),this.V=null)};g.isRunning=function(){return!!this.Wa};
g.startIntervalInWindow=function(a,b,c){if(!this.isRunning()&&(this.T=Date.now(),this.Xa=void 0,this.tb=b,this.Wa=a.setInterval(function(){b()},1E3*this.Yb),(!this.fb||this.fb&&this.Oc)&&a.setTimeout(function(){c()},1E3*this.bc),this.V&&(this.V(),this.V=null),this.tc&&b(),this.fb))try{this.ea=this.fb()}catch(d){throw this.dispose(),d;}};g.gb=function(a){this.isRunning()&&(this.tb(),this.tb=null,a.clearInterval(this.Wa),this.Xa=this.Wa=void 0,this.ea&&(this.ea(),this.ea=null),this.Fa&&(this.V=this.Fa()))};
g.getTimerVars=function(){var a=0;this.isRunning()&&(a=this.T?Date.now()-(this.Xa||this.T):0,this.Xa=Date.now());return E({timerDuration:a,timerStart:this.T||0})};function Tb(a){this.root=a;this.o={};this.bd=1}n(Tb,Y);g=Tb.prototype;g.getTrackedTimerKeys=function(){return Object.keys(this.o)};g.dispose=function(){var a=this;this.getTrackedTimerKeys().forEach(function(b){a.Bb(b)})};
g.add=function(a,b,c,d){var e=this;c=c.timerSpec;x(c&&"object"==typeof c,"Bad timer specification");var f="startSpec"in c?c.startSpec:null;x(!f||"object"==typeof f,"Bad timer start specification");var h="stopSpec"in c?c.stopSpec:null;x(!f&&!h||"object"==typeof h,"Bad timer stop specification");var k=++this.bd;if(f){var m=ac(this,f);x(m,"Cannot track timer start");var l=m.add.bind(m,a,f.on,f,this.Ub.bind(this,k,b,d))}if(h){var p=ac(this,h);x(p,"Cannot track timer stop");var r=p.add.bind(p,a,h.on,h,
this.Ub.bind(this,k,b,d))}var t=new $b(c,l,r);this.o[k]=t;t.init(this.jc.bind(this,k,b,d));return function(){e.Bb(k)}};function ac(a,b){b=v().assertString(b.on);var c=Wb(b);return a.root.getTrackerForWhitelist(c,Xb("timer"))}g.Ub=function(a,b,c){var d=this.o[a];d&&(d.isRunning()?this.gb(a):this.jc(a,b,c))};g.jc=function(a,b,c){var d=this;this.o[a].startIntervalInWindow(this.root.ampdoc.win,function(){var e=new X(d.root.getRootElement(),b,d.o[a].getTimerVars());c(e)},this.Bb.bind(this,a))};g.gb=function(a){this.o[a].gb(this.root.ampdoc.win)};
g.Bb=function(a){this.o[a]&&(this.gb(a),this.o[a].dispose(),delete this.o[a])};function Vb(a){this.root=a;var b=this;this.eb=new R;this.ob=this.eb.fire.bind(this.eb);Object.keys(Pb).forEach(function(a){b.root.getRoot().addEventListener(Pb[a],b.ob)})}n(Vb,Y);Vb.prototype.dispose=function(){var a=this,b=this.root.getRoot();Object.keys(Pb).forEach(function(c){b.removeEventListener(Pb[c],a.ob)});this.eb=this.ob=null};
Vb.prototype.add=function(a,b,c,d){var e=c.videoSpec||{},f=this.root.getElement(a,c.selector||e.selector,c.selectionMethod||null),h=e["end-session-when-invisible"],k=e["exclude-autoplay"],m=e.interval,l=e.percentages,p=c.on,r=5,t=0,I=0;return this.eb.add(function(a){var b=a.type,c="video-session-visible"===b,e=c?"video-session":b,ia=a.data;if(e===p)if("video-seconds-played"!==e||m){if("video-seconds-played"===e&&(t++,0!==t%m))return;if("video-percentage-played"===e){if(!l){v().error("amp-analytics/events",
"video-percentage-played requires percentages spec.");return}for(b=0;b<l.length;b++){var cc=l[b];if(0>=cc||0!=cc%r){v().error("amp-analytics/events","Percentages must be set in increments of %s with non-zero values",r);return}}var ld=ia.normalizedPercentage,Ca=parseInt(ld,10);u(Ca);if(I==Ca||0>l.indexOf(Ca))return;I=Ca}if(!c||h)if(!k||"playing_auto"!==ia.state){var md=a.target;f.then(function(a){a.contains(md)&&d(new X(a,e,ia))})}}else v().error("amp-analytics/events","video-seconds-played requires interval spec with non-zero value")})};
function Ub(a){this.root=a;this.mc={}}n(Ub,Y);g=Ub.prototype;g.dispose=function(){};
g.add=function(a,b,c,d){var e=this,f=c.visibilitySpec||{},h=c.selector||f.selector,k=f.waitFor,m=f.reportWhen,l=null;m&&x(!f.repeat,"reportWhen and repeat are mutually exclusive.");"hidden"==b&&(m&&v().error("amp-analytics/events",'ReportWhen should not be defined when eventType is "hidden"'),m="documentHidden");var p=this.root.isUsingHostAPI().then(function(a){if(a){var b=m;x(!h||":root"==h||":host"==h,"Element %s that is not root is not supported with host API",h);x("documentExit"!==b,"reportWhen : documentExit is not supported with host API")}return e.root.getVisibilityManager()});
"documentHidden"==m?l=this.wc.bind(this):"documentExit"==m?l=this.vc.bind(this):x(!m,'reportWhen value "%s" not supported.',m);var r=h&&":root"!=h&&":host"!=h?this.root.getAmpElement(a.parentElement||a,h,c.selectionMethod||f.selectionMethod).then(function(a){return p.then(function(c){return c.listenElement(a,f,e.getReadyPromise(k,h,a),l,e.cc.bind(e,b,d,a))},function(){})}):p.then(function(a){return a.listenRoot(f,e.getReadyPromise(k,h),l,e.cc.bind(e,b,d,e.root.getRootElement()))},function(){});return function(){r.then(function(a){a()})}};
g.wc=function(){var a=this.root.getViewer();return a.isVisible()?new Promise(function(b){a.onVisibilityChanged(function(){a.isVisible()||b()})}):Promise.resolve()};g.vc=function(){var a=new ga,b=this.root.ampdoc.win,c,d;b.addEventListener("unload",c=function(){b.removeEventListener("unload",c);a.resolve()});b.addEventListener("pagehide",d=function(){b.removeEventListener("pagehide",d);a.resolve()});return a.promise};
g.getReadyPromise=function(a,b,c){if(!a)if(b)a="ini-load";else return null;var d=Xb("visible");x("none"==a||void 0!==d[a],"waitFor value %s not supported",a);var e=this.mc[a]||this.root.getTrackerForWhitelist(a,d);if(e)this.mc[a]=e;else return null;return c?e.getElementSignal(a,c):e.getRootSignal(a)};g.cc=function(a,b,c,d){var e=Qa(c),f;for(f in e)d[f]=e[f];b(new X(c,a,d))};function bc(a,b,c,d){return{left:a,top:b,width:c,height:d,bottom:b+d,right:a+c,x:a,y:b}}function dc(a){for(var b=-Infinity,c=Infinity,d=-Infinity,e=Infinity,f=0;f<arguments.length;f++){var h=arguments[f];if(h&&(b=Math.max(b,h.left),c=Math.min(c,h.left+h.width),d=Math.max(d,h.top),e=Math.min(e,h.top+h.height),c<b||e<d))return null}return Infinity==c?null:bc(b,d,c-b,e-d)}function ec(a,b,c){return 0==b&&0==c||0==a.width&&0==a.height?a:bc(a.left+b,a.top+c,a.width,a.height)};function fc(a){var b=!1;void 0===b&&(b=a.hasAttribute("hidden"));b?a.removeAttribute("hidden"):a.setAttribute("hidden","")};var gc=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function hc(a,b,c){return C(a,"resources").getResourcesInRect(b,c).then(function(a){var b=[];a.forEach(function(a){gc.includes(a.element.tagName)||b.push(a.loadedOnce())});return Promise.all(b)})}function ic(a){return a.classList.contains("i-amphtml-fie")||!!Na(a,".i-amphtml-fie")};var jc=null;var kc=/^[a-zA-Z0-9\-_.]+$/;function lc(a){var b=mc(a);if(""===b)return"";var c=nc(b);return["1",c,b].join("*")}
function nc(a,b){var c=window,d=[window.navigator.userAgent,(new Date).getTimezoneOffset(),c.navigator.userLanguage||c.navigator.language].join("*"),e=Math.floor(Date.now()/6E4)-(b||0);a=[d,e,a].join("*");if(!jc){c=Array(256);for(var f=0;256>f;f++){for(var h=f,k=0;8>k;k++)h=h&1?h>>>1^3988292384:h>>>1;c[f]=h}jc=c}a=qb(a);c=4294967295;for(f=0;f<a.length;f++)c=c>>>8^jc[(c^a[f])&255];return((c^-1)>>>0).toString(36)}
function mc(a){return a?Object.keys(a).filter(function(a){var b=kc.test(a);b||v().error("amp-analytics/linker","Invalid linker key: "+a);return b}).map(function(b){return b+"*"+xb(String(a[b]))}).join("*"):""};function oc(a){this.l=a;this.ja={}}
oc.prototype.get=function(a,b){if(!a||!b)return v().error("amp-analytics/linker-reader","LINKER_PARAM requires two params, name and id"),null;if(!F(this.ja,a)){var c=this.ja;var d=M(this.l.location.href);var e=la(d.search);if(F(e,a)){e=e[a];if(this.l.history.replaceState){var f;f=(f=d.search)&&"?"!=f?(f=f.replace(new RegExp("[?&]"+a+"=[^&]*","g"),"").replace(/^[?&]/,""))?"?"+f:"":"";this.l.history.replaceState(null,"",d.origin+d.pathname+f+(d.hash||""))}d=e.split("*");f=0==d.length%2;4>d.length||
!f?(v().error("amp-analytics/linker","Invalid linker_param value "+e),e=null):(e=Number(d.shift()),1!==e?(v().error("amp-analytics/linker","Invalid version number "+e),e=null):e={checksum:d.shift(),serializedIds:d.join("*")});if(e){d=e.serializedIds;c:{e=e.checksum;for(f=0;1>=f;f++)if(nc(d,f)==e){e=!0;break c}e=!1}if(e)for(e={},d=d.split("*"),f=0;f<d.length;f+=2){var h=d[f];if(kc.test(h)){var k=vb(String(d[f+1]));"undefined"!==typeof TextDecoder?k=(new TextDecoder("utf-8")).decode(k):(k=sb(new Uint8Array(k.buffer||
k)),k=decodeURIComponent(escape(k)));e[h]=k}else v().error("amp-analytics/linker","Invalid linker key "+h+", value ignored")}else v().error("amp-analytics/linker","LINKER_PARAM value checksum not valid"),e=null}else e=null}else e=null;c[a]=e}return this.ja[a]&&this.ja[a][b]?(c=this.ja[a][b],delete this.ja[a][b],c):null};var pc={QUERY_PARAM:!0,LINKER_PARAM:!0},qc={referrerDomains:!0,enabled:!0,cookiePath:!0,cookieMaxAge:!0,cookieSecure:!0,cookieDomain:!0};function rc(a,b,c){this.l=a;this.j=b;this.hb=G(b);this.Nc=B(a,"amp-analyitcs-linker-reader");this.Jb=null;this.h=c;this.Mb={}}rc.prototype.write=function(){this.Jb||(this.Jb=sc(this));return this.Jb};
function sc(a){if(ic(a.j)||ob(a.l.location)||"inabox"==na(a.l).runtime||!F(a.h,"cookies"))return Promise.resolve();if(!q(a.h.cookies))return v().error("amp-analytics/cookie-writer","cookies config must be an object"),Promise.resolve();tc(a);var b=a.h.cookies;if(!1===b.enabled)return Promise.resolve();for(var c=Object.keys(b),d=[],e=0;e<c.length;e++){var f=c[e],h=b[f];uc(f,h)&&d.push(vc(a,f,h.value))}return Promise.all(d)}
function uc(a,b){if(qc[a])return!1;if(!q(b))return v().error("amp-analytics/cookie-writer","cookieValue must be configured in an object"),!1;if(!F(b,"value"))return v().error("amp-analytics/cookie-writer","value is required in the cookieValue object"),!1;a=b.value;var c=Fb(a).name;return pc[c]?!0:(v().error("amp-analytics/cookie-writer","cookie value "+a+" not supported. Only QUERY_PARAM and LINKER_PARAM is supported"),!1)}
function vc(a,b,c){return a.hb.expandStringAsync(c,a.Mb,pc).then(function(c){if(c){var d=Date.now()+31536E6;var f=a.l,h=d;if(ob(f.location.href))throw Error("Should never attempt to set cookie on proxy origin: "+b);var k=M(f.location.href).hostname.toLowerCase(),m=M(ib.cdn).hostname.toLowerCase();if(k==m||Ia(k,"."+m))throw Error("Should never attempt to set cookie on proxy origin. (in depth check): "+b);c=encodeURIComponent(b)+"="+encodeURIComponent(c)+"; path=/; expires="+(new Date(h)).toUTCString();
try{f.document.cookie=c}catch(l){}}}).catch(function(a){v().error("amp-analytics/cookie-writer","Error expanding cookie string",a)})}function tc(a){a.Mb.LINKER_PARAM=function(b,c){return a.Nc.get(b,c)}};function wc(a){this.w=J(a);this.ga=null;this.pa=new R}wc.prototype.dispose=function(){this.pa.removeAll();this.ga&&(this.ga(),this.ga=null)};wc.prototype.removeScrollHandler=function(a){this.pa.remove(a);0>=this.pa.getHandlerCount()&&this.ga&&(this.ga(),this.ga=null)};
wc.prototype.addScrollHandler=function(a){var b=this.w.getSize(),c={top:this.w.getScrollTop(),left:this.w.getScrollLeft(),width:b.width,height:b.height,scrollWidth:this.w.getScrollWidth(),scrollHeight:this.w.getScrollHeight()};a(c);0===this.pa.getHandlerCount()&&(this.ga=this.w.onChanged(this.Qc.bind(this)));return this.pa.add(a)};wc.prototype.Qc=function(a){a={top:a.top,left:a.left,width:a.width,height:a.height,scrollWidth:this.w.getScrollWidth(),scrollHeight:this.w.getScrollHeight()};this.pa.fire(a)};function xc(a,b){var c,d=this;this.kc=B(a,"timer");this.Jc=b;this.zc=c||0;this.Da=-1;this.zb=0;this.Eb=!1;this.qc=function(){d.Da=-1;d.zb=0;d.Eb=!0;d.Jc();d.Eb=!1}}xc.prototype.isPending=function(){return-1!=this.Da};xc.prototype.schedule=function(a){var b=a||this.zc;this.Eb&&10>b&&(b=10);var c=Date.now()+b;return!this.isPending()||-10>c-this.zb?(this.cancel(),this.zb=c,this.Da=this.kc.delay(this.qc,b),!0):!1};xc.prototype.cancel=function(){this.isPending()&&(this.kc.cancel(this.Da),this.Da=-1)};function yc(a){if(!zc(a))return null;var b=a.indexOf("{");try{return JSON.parse(a.substr(b))}catch(c){return w().error("MESSAGING","Failed to parse message: "+a,c),null}}function zc(a){return"string"==typeof a&&0==a.indexOf("amp-")&&-1!=a.indexOf("{")};function Ac(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var f=a[e];b(f,e,a)?c.push(f):(d<e&&(a[d]=f),d++)}d<a.length&&(a.length=d)}function Bc(a,b){for(var c=0;c<a.length;c++)if(b(a[c],c,a))return c;return-1};function Cc(a,b,c){var d=a.listeningFors;!d&&c&&(d=a.listeningFors=Object.create(null));a=d||null;if(!a)return a;var e=a[b];!e&&c&&(e=a[b]=[]);return e||null}function Dc(a,b,c){var d=c?b.getAttribute("data-amp-3p-sentinel"):"amp";a=Cc(a,d,!0);for(d=0;d<a.length;d++){var e=a[d];if(e.frame===b){var f=e;break}}f||(f={frame:b,events:Object.create(null)},a.push(f));return f.events}
function Ec(a){for(var b=E({sentinel:"unlisten"}),c=a.length-1;0<=c;c--){var d=a[c];if(!d.frame.contentWindow){a.splice(c,1);var e=d.events,f;for(f in e)e[f].splice(0,Infinity).forEach(function(a){a(b)})}}}
function Fc(a){if(!a.listeningFors){var b=function(b){if(b.data){var c=Gc(b.data);if(c&&c.sentinel){var e=b.source;var f=Cc(a,c.sentinel);if(f){for(var h,k=0;k<f.length;k++){var m=f[k],l=m.frame.contentWindow;if(l){var p;if(!(p=e==l))b:{for(p=e;p&&p!=p.parent;p=p.parent)if(p==l){p=!0;break b}p=!1}if(p){h=m;break}}else setTimeout(Ec,0,f)}e=h?h.events:null}else e=f;var r=e;if(r){var t=r[c.type];if(t)for(t=t.slice(),e=0;e<t.length;e++)(0,t[e])(c,b.source,b.origin)}}}};a.addEventListener("message",b)}}
function Hc(a,b,c,d){function e(c,e,f){if("amp"==c.sentinel){if(e!=a.contentWindow)return;var k="null"==f&&h;if(m!=f&&!k)return}if(d||e==a.contentWindow)"unlisten"==c.sentinel?p():b(c,e,f)}var f="send-iframe-transport-events",h,k=a.ownerDocument.defaultView;Fc(k);c=Dc(k,a,c);var m=M(a.src).origin,l=c[f]||(c[f]=[]),p;l.push(e);return p=function(){if(e){var a=l.indexOf(e);-1<a&&l.splice(a,1);b=l=e=null}}}
function Ic(a,b,c,d,e){if(a.contentWindow)for(d.type=c,d.sentinel=e?a.getAttribute("data-amp-3p-sentinel"):"amp",a=d,e&&(a="amp-"+JSON.stringify(d)),d=0;d<b.length;d++)e=b[d],e.win.postMessage(a,e.origin)}function Gc(a){"string"==typeof a&&(a="{"==a.charAt(0)?pb(a,function(a){w().warn("IFRAME-HELPER","Postmessage could not be parsed. Is it in a valid JSON format?",a)})||null:zc(a)?yc(a):null);return a}
function Jc(a,b){var c=!0,d=this;this.Vb=a;this.ub=c;this.va=[];this.Hb=Hc(this.Vb,function(a,c,h){d.va.some(function(a){return a.win==c})||d.va.push({win:c,origin:h});b(a,c,h)},this.ub,this.ub)}Jc.prototype.send=function(a,b){Ac(this.va,function(a){return!a.win.parent});Ic(this.Vb,this.va,a,b,this.ub)};Jc.prototype.destroy=function(){this.Hb();this.va.length=0};var Kc=[0,.05,.1,.15,.2,.25,.3,.35,.4,.45,.5,.55,.6,.65,.7,.75,.8,.85,.9,.95,1],Lc=Date.now();function Mc(a){return"IntersectionObserver"in a&&"IntersectionObserverEntry"in a&&"intersectionRatio"in a.IntersectionObserverEntry.prototype}function Nc(a){var b={threshold:Kc};this.Pb=a;var c=b&&b.threshold;c=c?Array.isArray(c)?c:[c]:[0];for(a=0;a<c.length;a++)u(c[a]);this.$c=c.sort();this.xb=null;this.$b=void 0;this.J=[];this.ma=this.la=null}g=Nc.prototype;g.disconnect=function(){this.J.length=0;Oc(this)};
g.observe=function(a){for(var b=0;b<this.J.length;b++)if(this.J[b].element===a){w().warn("INTERSECTION-OBSERVER","should observe same element once");return}var c={element:a,currentThresholdSlot:0};this.xb&&(b=Pc(this,c,this.xb,this.$b))&&this.Pb([b]);b=z(a);b.win.MutationObserver&&!this.la&&(this.ma=new xc(b.win,this.Hc.bind(this,a)),this.la=new b.win.MutationObserver(this.Gc.bind(this)),this.la.observe(b.win.document,{attributes:!0,attributeFilter:["hidden"],subtree:!0}));this.J.push(c)};
g.unobserve=function(a){for(var b=0;b<this.J.length;b++)if(this.J[b].element===a){this.J.splice(b,1);0>=this.J.length&&Oc(this);return}w().warn("INTERSECTION-OBSERVER","unobserve non-observed element")};g.tick=function(a,b){b&&(a=ec(a,-b.left,-b.top),b=ec(b,-b.left,-b.top));this.xb=a;this.$b=b;for(var c=[],d=0;d<this.J.length;d++){var e=Pc(this,this.J[d],a,b);e&&c.push(e)}c.length&&this.Pb(c)};
function Pc(a,b,c,d){var e=b.element,f=e.getLayoutBox(),h=e.getOwner(),k=h&&h.getLayoutBox(),m=dc(f,k,c,d)||bc(0,0,0,0),l=m;h=f;l=l.width*l.height;h=h.width*h.height;h=0===h?0:l/h;a=a.$c;l=0;var p=a.length;if(0==h)a=0;else{for(var r=(l+p)/2|0;l<r;)h<a[r]?p=r:l=r,r=(l+p)/2|0;a=p}var t=a;if(t==b.currentThresholdSlot)return null;b.currentThresholdSlot=t;b=d?null:c;c=m;d=f;if(a=b)c=ec(c,-b.left,-b.top),d=ec(d,-b.left,-b.top),a=ec(a,-b.left,-b.top);var I={time:"undefined"!==typeof performance&&performance.now?
performance.now():Date.now()-Lc,rootBounds:a,boundingClientRect:d,intersectionRect:c,intersectionRatio:h,target:e};return I}g.Gc=function(){this.ma.isPending()||this.ma.schedule(16)};g.Hc=function(a){var b=this,c=J(a);C(a,"resources").onNextPass(function(){b.tick(c.getRect())})};function Oc(a){a.la&&a.la.disconnect();a.la=null;a.ma&&a.ma.cancel();a.ma=null};function Qc(a,b){var c=this;this.sc=b;this.I=E({visiblePercentageMin:Number(a.visiblePercentageMin)/100||0,visiblePercentageMax:Number(a.visiblePercentageMax)/100||1,totalTimeMin:Number(a.totalTimeMin)||0,totalTimeMax:Number(a.totalTimeMax)||Infinity,continuousTimeMin:Number(a.continuousTimeMin)||0,continuousTimeMax:Number(a.continuousTimeMax)||Infinity});"0"===String(a.visiblePercentageMax).trim()&&(this.I.visiblePercentageMax=0);this.Lc=void 0!==a.reportWhen;this.gc=!0===a.repeat;this.$=new R;a=
new ga;this.Pa=a.promise;this.ia=a.resolve;this.Pa.then(function(){c.$.fire()});this.fa=[];this.xc=Date.now();this.Cb=this.ec=!0;this.F=this.Oa=null;this.qb=this.ka=!1;this.wa=this.Za=this.za=this.yb=this.Ya=this.Sa=this.vb=this.Ra=this.L=this.S=this.N=0;this.Ib=!1;this.cb=null}g=Qc.prototype;
g.ab=function(){var a=this,b=new ga;this.Pa=b.promise;this.ia=b.resolve;this.Pa.then(function(){a.$.fire()});this.cb=null;this.ka=this.qb=!1;this.wa=this.Za=this.za=this.Ya=this.vb=this.Ra=this.Sa=this.L=this.S=this.N=0;this.Ib=!1};g.maybeDispose=function(){this.gc||this.dispose()};g.dispose=function(){this.F&&(clearTimeout(this.F),this.F=null);this.cb&&(clearTimeout(this.cb),this.cb=null);this.fa.forEach(function(a){a()});this.fa.length=0;this.ia=null;this.$&&(this.$.removeAll(),this.$=null)};
g.unsubscribe=function(a){this.fa.push(a)};g.onTriggerEvent=function(a){this.$&&this.$.add(a);this.Pa&&!this.ia&&a()};g.setReady=function(a){this.ec=a;this.update()};g.setReportReady=function(a){this.Cb=!1;this.Oa=a};g.update=function(){Rc(this,this.ec?this.sc():0)};
g.getState=function(a){return E({firstSeenTime:Sc(this.Ra,a),lastSeenTime:Sc(this.vb,a),lastVisibleTime:Sc(this.Ya,a),firstVisibleTime:Sc(this.Sa,a),maxContinuousVisibleTime:this.S,totalVisibleTime:this.L,loadTimeVisibility:100*this.yb||0,minVisiblePercentage:100*this.za,maxVisiblePercentage:100*this.Za})};
function Rc(a,b){if(a.Ib)Tc(a,b)||a.ab();else if(a.ia){var c=Uc(a,b)||a.Lc;if(c)if(a.F&&(clearTimeout(a.F),a.F=null),a.Cb)a.ia(),a.ia=null,a.gc&&(a.Ib=!0,a.N=0);else{if(a.Oa){var d=a.Oa();a.Oa=null;d.then(function(){a.Cb=!0;a.update()})}}else if(a.ka&&!a.F){var e=Vc(a);0<e&&(a.F=setTimeout(function(){a.F=null;a.update()},e))}else!a.ka&&a.F&&(clearTimeout(a.F),a.F=null)}}
function Tc(a,b){return 1==a.I.visiblePercentageMin?1==b:0==a.I.visiblePercentageMax?0==b:b>a.I.visiblePercentageMin&&b<=a.I.visiblePercentageMax}
function Uc(a,b){var c=Date.now();0<b&&(a.Ra=a.Ra||c,a.vb=c,!a.yb&&300>c-a.xc&&(a.yb=b));var d=a.ka,e=a.wa?c-a.wa:0;a.ka=Tc(a,b);a.ka?(a.qb=!0,d?(a.L+=e,a.N+=e,a.S=Math.max(a.S,a.N)):a.Sa=a.Sa||c,a.wa=c,a.za=0<a.za?Math.min(a.za,b):b,a.Za=Math.max(a.Za,b),a.Ya=c):d&&(a.S=Math.max(a.S,a.N+e),a.wa=0,a.L+=e,a.N=0,a.Ya=c);return a.qb&&a.L>=a.I.totalTimeMin&&a.L<=a.I.totalTimeMax&&a.S>=a.I.continuousTimeMin&&a.S<=a.I.continuousTimeMax}
function Vc(a){var b=Math.max(a.I.continuousTimeMin-a.N,0),c=Math.max(a.I.totalTimeMin-a.L,0),d=Math.max(b,c);return Math.min(d,b||Infinity,c||Infinity)}function Sc(a,b){return a>=b?a-b:0};function Wc(a){var b=a.parentElement,c=[];if(b){var d=b;c.push(d);for(var e=0;50>e;e++)if((b=d.parentNode||d.parentElement)&&1==b.nodeType)d=b,c.push(d);else if(b&&9==b.nodeType)if((b=d.ownerDocument.defaultView.frameElement)&&1==b.nodeType)d=b,c.push(d);else break;else break}var f=c;f.push(a);var h=1;for(a=0;a<f.length;a++){if(c=f[a])if(c=window.getComputedStyle(c)||Ga(),b=c.opacity,"hidden"===c.visibility)var k=0;else c=""===b?1:parseFloat(b),k=isNaN(c)?1:c;else k=1;k<h&&(h=k);if(0===h)break}return h}
;var Xc=1;function Yc(a){var b=a.__AMP_VIS_ID;b||(b=++Xc,a.__AMP_VIS_ID=b);return b}function Z(a,b){this.parent=a;this.ampdoc=b;this.Wc=C(b,"resources");this.Db=0;this.Z=[];this.C=null;this.fa=[];this.parent&&(a=this.parent,a.C||(a.C=[]),a.C.push(this))}function Zc(a,b){a.C&&(b=a.C.indexOf(b),-1!=b&&a.C.splice(b,1))}g=Z.prototype;
g.dispose=function(){this.setRootVisibility(0);for(var a=this.Z.length-1;0<=a;a--)this.Z[a].dispose();this.fa.forEach(function(a){a()});this.fa.length=0;this.parent&&Zc(this.parent,this);if(this.C)for(a=0;a<this.C.length;a++)this.C[a].dispose()};g.unsubscribe=function(a){this.fa.push(a)};g.getStartTime=function(){};g.isBackgrounded=function(){};g.isBackgroundedAtStart=function(){};g.getRootMinOpacity=function(){};g.getRootLayoutBox=function(){};
g.getRootVisibility=function(){return this.parent?0<this.parent.getRootVisibility()?this.Db:0:this.Db};g.setRootVisibility=function(a){this.Db=a;$c(this);if(this.C)for(a=0;a<this.C.length;a++)$c(this.C[a])};function $c(a){for(var b=0;b<a.Z.length;b++)a.Z[b].update()}g.listenRoot=function(a,b,c,d){var e=this.getRootVisibility.bind(this);return ad(this,e,a,b,c,d)};g.listenElement=function(a,b,c,d,e){var f=this.getElementVisibility.bind(this,a);return ad(this,f,b,c,d,e,a)};
function ad(a,b,c,d,e,f,h){if(c.visiblePercentageThresholds&&void 0==c.visiblePercentageMin&&void 0==c.visiblePercentageMax){var k=[],m=c.visiblePercentageThresholds;if(!m||!Array.isArray(m))return v().error("amp-analytics/visibility-manager","invalid visiblePercentageThresholds"),function(){};for(var l=0;l<m.length;l++){var p=m[l];if(Array.isArray(p)&&2==p.length)if(u(p[0])&&u(p[1])){var r=Number(p[0]),t=Number(p[1]);if(0>r||100<t||r>t||r==t&&100!=r&&0!=t)v().error("amp-analytics/visibility-manager",
"visiblePercentageThresholds entry invalid min/max value");else{var I=c;I.visiblePercentageMin=r;I.visiblePercentageMax=t;var ia=new Qc(I,b);k.push(bd(a,ia,d,e,f,h))}}else v().error("amp-analytics/visibility-manager","visiblePercentageThresholds entry is not valid number");else v().error("amp-analytics/visibility-manager","visiblePercentageThresholds entry length is not 2")}return function(){k.forEach(function(a){return a()})}}var kd=new Qc(c,b);return bd(a,kd,d,e,f,h)}
function bd(a,b,c,d,e,f){d&&b.setReportReady(d);c&&(b.setReady(!1),c.then(function(){b.setReady(!0)}));b.onTriggerEvent(function(){var c=a.getStartTime(),d=b.getState(c);d.backgrounded=a.isBackgrounded()?1:0;d.backgroundedAtStart=a.isBackgroundedAtStart()?1:0;d.totalTime=Date.now()-c;if(f){d.opacity=Wc(f);var m=a.Wc.getResourceForElementOptional(f);var l=m?m.getLayoutBox():J(a.ampdoc).getLayoutRect(f);var p=a.getElementVisibility(f);c=a.getElementIntersectionRect(f);Object.assign(d,E({intersectionRatio:p,
intersectionRect:JSON.stringify(c)}))}else d.opacity=a.getRootMinOpacity(),d.intersectionRatio=a.getRootVisibility(),l=a.getRootLayoutBox();b.maybeDispose();l&&Object.assign(d,E({elementX:l.left,elementY:l.top,elementWidth:l.width,elementHeight:l.height}));e(d)});a.Z.push(b);b.unsubscribe(function(){var c=a.Z.indexOf(b);-1!=c&&a.Z.splice(c,1)});f&&b.unsubscribe(a.observe(f,function(){return b.update()}));b.update();return function(){b.dispose()}}g.observe=function(){};g.getElementVisibility=function(){};
g.getElementIntersectionRect=function(){};
function cd(a){Z.call(this,null,a);var b=this;this.B=H(a);this.w=J(a);this.Lb=!this.B.isVisible();this.sa=this.isBackgrounded();this.da=Ga();this.Y=null;if("inabox"==na(this.ampdoc.win).runtime){a=this.ampdoc.getRootNode();var c=a.documentElement||a.body||a;this.unsubscribe(this.observe(c,this.setRootVisibility.bind(this)))}else this.setRootVisibility(this.B.isVisible()?1:0),this.unsubscribe(this.B.onVisibilityChanged(function(){var a=b.B.isVisible();a||(b.Lb=!0);b.setRootVisibility(a?1:0)}))}
n(cd,Z);g=cd.prototype;g.dispose=function(){Z.prototype.dispose.call(this);this.Y&&(this.Y.disconnect(),this.Y=null)};g.getStartTime=function(){return this.B.getFirstVisibleTime()};g.isBackgrounded=function(){return this.Lb};g.isBackgroundedAtStart=function(){return this.sa};g.getRootMinOpacity=function(){var a=this.ampdoc.getRootNode();return Wc(a.documentElement||a.body||a)};g.getRootLayoutBox=function(){var a=this.ampdoc.getRootNode();return this.w.getLayoutRect(a.documentElement||a.body||a)};
g.observe=function(a,b){var c=this;dd(this,a);var d=Yc(a),e=this.da[d];e?0<e.intersectionRatio&&b(e.intersectionRatio):(e={element:a,intersectionRatio:0,intersectionRect:null,listeners:[]},this.da[d]=e);e.listeners.push(b);this.Y||(this.Y=ed(this));this.Y.observe(a);return function(){var e=c.da[d];if(e){var h=e.listeners.indexOf(b);-1!=h&&e.listeners.splice(h,1);0==e.listeners.length&&(c.Y.unobserve(a),delete c.da[d])}}};
g.getElementVisibility=function(a){if(0==this.getRootVisibility())return 0;a=Yc(a);return(a=this.da[a])&&a.intersectionRatio||0};g.getElementIntersectionRect=function(a){if(0>=this.getElementVisibility(a))return null;a=Yc(a);return(a=this.da[a])?a.intersectionRect:null};
function ed(a){function b(){d.tick(a.w.getRect())}var c=a.ampdoc.win;if(Mc(c))return new c.IntersectionObserver(a.dc.bind(a),{threshold:Kc});var d=new Nc(a.dc.bind(a));a.unsubscribe(a.w.onScroll(b));a.unsubscribe(a.w.onChanged(b));setTimeout(b);return d}function dd(a,b){Mc(a.ampdoc.win)||"function"==typeof b.getLayoutBox||(b.getLayoutBox=function(){return a.w.getLayoutRect(b)},b.getOwner=function(){return null})}
g.dc=function(a){var b=this;a.forEach(function(a){var c=a.intersectionRect;c=bc(Number(c.left),Number(c.top),Number(c.width),Number(c.height));var e=a.intersectionRatio;e=Math.min(Math.max(e,0),1);a=Yc(a.target);if(a=b.da[a])for(a.intersectionRatio=e,a.intersectionRect=c,c=0;c<a.listeners.length;c++)a.listeners[c](e)})};function fd(a,b){Z.call(this,a,a.ampdoc);this.embed=b;this.sa=this.parent.isBackgrounded();this.unsubscribe(this.parent.observe(b.host,this.setRootVisibility.bind(this)))}n(fd,Z);
g=fd.prototype;g.getStartTime=function(){return this.embed.getStartTime()};g.isBackgrounded=function(){return this.parent.isBackgrounded()};g.isBackgroundedAtStart=function(){return this.sa};g.getRootMinOpacity=function(){return Wc(this.embed.iframe)};g.getRootLayoutBox=function(){var a=this.embed.iframe;return J(this.ampdoc).getLayoutRect(a)};g.observe=function(a,b){return this.parent.observe(a,b)};g.getElementVisibility=function(a){return 0==this.getRootVisibility()?0:this.parent.getElementVisibility(a)};
g.getElementIntersectionRect=function(a){return 0==this.getRootVisibility()?null:this.parent.getElementIntersectionRect(a)};function gd(a,b){Z.call(this,null,a);this.B=H(a);this.ed=b;this.sa=!this.B.isVisible();this.Xb=null;this.Sb=!1;this.ed.onVisibilityChange(this.Rc.bind(this))}n(gd,Z);g=gd.prototype;g.dispose=function(){Z.prototype.dispose.call(this);this.Sb=!0};g.getStartTime=function(){return this.B.getFirstVisibleTime()};g.isBackgrounded=function(){return!this.B.isVisible()};g.isBackgroundedAtStart=function(){return this.sa};
g.getRootMinOpacity=function(){var a=this.ampdoc.getRootNode();return Wc(a.documentElement||a.body||a)};g.listenElement=function(){return function(){}};g.getRootLayoutBox=function(){return this.Xb};g.Rc=function(a){if(!this.Sb){var b=a.visibleRatio;b=Math.min(Math.max(0,b),1);this.setRootVisibility(b);this.Xb=a.visibleRect}};g.observe=function(){return function(){}};g.getElementVisibility=function(){return 0};
g.getElementIntersectionRect=function(){w().error("amp-analytics/visibility-manager","element level visibility not supported, getElementIntersectionRect should not be called in VisibilityManager for mApp");return E({})};function hd(a,b){this.ampdoc=a;this.parent=b;this.o=Ga();this.sb=this.Ia=this.Ea=this.Ja=null}g=hd.prototype;g.isUsingHostAPI=function(){var a=this;if(this.Ia)return this.Ia;z(this.ampdoc).getHeadNode().querySelector("script[host-service]")?this.Ia=Ba(A(this.ampdoc),"host-visibility").then(function(b){a.sb=b;return!0}).catch(function(a){if(a.fallback)return!1;throw v().createError("Host Visibility Service Error");}):this.Ia=Promise.resolve(!1);return this.Ia};
g.dispose=function(){for(var a in this.o)this.o[a].dispose(),delete this.o[a];this.Ja&&this.Ja.dispose();this.Ea&&this.Ea.dispose()};g.getType=function(){};g.getRoot=function(){};g.getViewer=function(){return H(this.ampdoc)};g.getRootElement=function(){var a=this.getRoot();return a.documentElement||a.body||a};g.getHostElement=function(){};g.signals=function(){};g.contains=function(a){return this.getRoot().contains(a)};g.getElementById=function(){};
g.getTrackerForWhitelist=function(a,b){var c=b[a];return c?this.getTracker(a,c):null};g.getTracker=function(a,b){var c=this.o[a];c||(c=new b(this),this.o[a]=c);return c};g.getTrackerOptional=function(a){return this.o[a]||null};
g.getElement=function(a,b,c){var d=this;c=void 0===c?null:c;return":root"==b?ha(function(){return d.getRootElement()}):":host"==b?new Promise(function(a){a(v().assertElement(d.getHostElement(),'Element "'+b+'" not found'))}):this.ampdoc.whenReady().then(function(){var e=null;try{if("scope"==c)if(void 0!==D?D:D=Ea(a))var f=a.querySelector(b.replace(/^|,/g,"$&:scope "));else{var h=Pa(a,b);f=void 0===h[0]?null:h[0]}else f="closest"==c?Na(a,b):d.getRoot().querySelector(b);var k=f}catch(m){x(!1,"Invalid query selector "+
b)}k&&d.contains(k)&&(e=k);return v().assertElement(e,'Element "'+b+'" not found')})};g.getAmpElement=function(a,b,c){return this.getElement(a,b,c).then(function(a){x(a.classList.contains("i-amphtml-element"),'Element "%s" is required to be an AMP element',b);return a})};
g.createSelectiveListener=function(a,b,c,d){var e=this;d=void 0===d?null:d;return function(f){if(":host"!=c)for(var h=e.getRootElement(),k="*"==c,m=":root"==c,l=f.target;l&&e.contains(l)&&("scope"!=d||m||b.contains(l));){if("closest"!=d||l.contains(b)){var p;if(!(p=k||m&&l==h)){var r=c;try{p=Oa(l,r)}catch(t){v().error("amp-analytics/analytics-root","Bad query selector.",r,t),p=!1}}if(p){a(l,f);break}}l=l.parentElement}}};g.whenIniLoaded=function(){};
g.getVisibilityManager=function(){this.Ja||(this.Ja=this.createVisibilityManager());return this.Ja};g.createVisibilityManager=function(){};g.getScrollManager=function(){this.Ea||(this.Ea=new wc(this.ampdoc));return this.Ea};function id(a){hd.call(this,a,null)}n(id,hd);g=id.prototype;g.getType=function(){return"ampdoc"};g.getRoot=function(){return this.ampdoc.getRootNode()};g.getHostElement=function(){return null};g.signals=function(){return this.ampdoc.signals()};g.getElementById=function(a){return this.ampdoc.getElementById(a)};
g.whenIniLoaded=function(){var a=J(this.ampdoc);"inabox"==na(this.ampdoc.win).runtime?a=a.getLayoutRect(this.getRootElement()):(a=a.getSize(),a=bc(0,0,a.width,a.height));return hc(this.ampdoc,this.ampdoc.win,a)};g.createVisibilityManager=function(){return this.sb?(fetch("http://localhost:8000/visiblityManagerForMAPP"),new gd(this.ampdoc,this.sb)):new cd(this.ampdoc)};function jd(a,b,c){hd.call(this,a,c);this.embed=b}n(jd,hd);g=jd.prototype;g.getType=function(){return"embed"};g.getRoot=function(){return this.embed.win.document};
g.getHostElement=function(){return this.embed.iframe};g.signals=function(){return this.embed.signals()};g.getElementById=function(a){return this.embed.win.document.getElementById(a)};g.whenIniLoaded=function(){return this.embed.whenIniLoaded()};g.createVisibilityManager=function(){return new fd(this.parent.getVisibilityManager(),this.embed)};function nd(a,b){this.ba=a;this.oc=b;this.ac=[]}nd.prototype.dispose=function(){this.ac.forEach(function(a){a()})};nd.prototype.addTrigger=function(a,b){var c=a.on,d=Wb(c),e=Xb(this.ba.getType());d=this.ba.getTrackerForWhitelist(d,e);x(!!d,'Trigger type "%s" is not allowed in the %s',c,this.ba.getType());a=d.add(this.oc,c,a,b);this.ac.push(a)};function od(a){this.ampdoc=a;this.lb=new id(this.ampdoc)}od.prototype.dispose=function(){this.lb.dispose()};od.prototype.getAnalyticsRoot=function(a){return pd(this,a)};od.prototype.createAnalyticsGroup=function(a){var b=pd(this,a);return new nd(b,a)};od.prototype.triggerEventForTarget=function(a,b,c){b=new X(a,b,c);pd(this,a).getTracker("custom",T).trigger(b)};
function pd(a,b){var c=Aa(b,a.ampdoc.win);if(c&&(b=c.__AMP_EMBED__)){var d=b;return qd(b,function(){return new jd(a.ampdoc,d,a.lb)})}return a.lb}function qd(a,b){var c=a.__AMP_AN_ROOT;c||(c=b(),a.__AMP_AN_ROOT=c);return c}function rd(a){return Ba(A(a),"amp-analytics-instrumentation")};function sd(a,b,c,d){this.K=a;this.h=b.linkers;this.cd=b.vars||{};this.G=c;this.j=d;this.kb=[];this.bb={};this.ib=ua(this.j,"url");this.Ac=Ba(A(a),"form-submit-service");this.Ta=null}g=sd.prototype;
g.init=function(){var a=this;if(q(this.h)){this.h=td(this,this.h);this.kb=Object.keys(this.h).map(function(b){var c=a.h[b].ids,e=Object.keys(c),f=e.map(function(b){var d=new N(a.cd,void 0,!0);return a.Qa(c[b],d)});return Promise.all(f).then(function(c){var d={};c.forEach(function(a,b){a&&(d[e[b]]=a)});a.bb[b]=d})});if(this.kb.length){var b=C(this.K,"navigation");b.registerAnchorMutator(this.Cc.bind(this),2)}ud(this);return Promise.all(this.kb)}};g.dispose=function(){this.Ta&&this.Ta()};
function td(a,b){var c={},d={enabled:vd(a)&&wd(a)},e=Object.keys(b).filter(function(a){var c=b[a],e=q(c);e||(d[a]=c);return e}),f=a.ib.isProxyOrigin(a.K.win.location);e.forEach(function(a){var e=Object.assign({},d,b[a]);if(!0!==e.enabled)v().info("amp-analytics/linker-manager","linker config for %s is not enabled and will be ignored.",a);else if(f||!1===e.proxyOnly)e.ids?c[a]=e:v().error("amp-analytics/linker-manager",'"ids" is a required field for use of "linkers".')});return c}
g.Qa=function(a,b){var c=this;return P(this.K.win).expandTemplate(a,b).then(function(a){return G(c.j).expandUrlAsync(a)})};function vd(a){var b=a.K.win.document.head.querySelector('meta[name="amp-google-client-id-api"][content="googleanalytics"]');if(!b||b.hasAttribute("i-amphtml-linker-created")||"googleanalytics"!==a.G)return!1;b.setAttribute("i-amphtml-linker-created","");return!0}function wd(a){var b=B(a.K.win,"platform");return b.isSafari()&&12<=b.getMajorVersion()}
g.Cc=function(a,b){if(a.href&&"click"===b.type){var c=this.h,d;for(d in c)if(this.bb[d]){b=a;var e=d,f=b.href;if(xd(this,b.hostname,e,c[d].destinationDomains)){var h=lc(this.bb[e]);if(h){var k={};k[e]=h;e=M(f);e=la(e.search);h=E({});for(var m=Object.keys(k),l=0;l<m.length;l++)F(e,m[l])||(h[m[l]]=k[m[l]]);f=lb(f,mb(h));b.href=f}}}}};
function xd(a,b,c,d){if(d&&!Array.isArray(d))return v().warn("amp-analytics/linker-manager","%s destinationDomains must be an array.",c),!1;if(d){for(a=0;a<d.length;a++){c=d[a];var e;!(e=c===b)&&(e=-1!==c.indexOf("*"))&&(e=b,c=c.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),e=(new RegExp("^"+c+"$")).test(e));if(e)return!0}return!1}var f=a.K.win.location.hostname;if(f===b)return!1;d=C(a.K,"documentInfo").get();var h=d.sourceUrl;d=d.canonicalUrl;c=a.ib.parse(h).hostname;var k=a.ib.parse(d).hostname;
(d=yd(c)===yd(b))||(d=yd(k)===yd(b));return d?!0:!1}function ud(a){a.Ta||a.Ac.then(function(b){a.Ta=b.beforeSubmit(a.Fc.bind(a))})}
g.Fc=function(a){var b=a.form,c=a.actionXhrMutator,d;for(d in this.h){a=this.h[d].destinationDomains;var e=b.getAttribute("action-xhr")||b.getAttribute("action");e=this.ib.parse(e).hostname;if(xd(this,e,d,a)){var f=b;a=d;if(e=this.bb[a]){e=lc(e);var h=f.getAttribute("action-xhr");h?(f=h,a=encodeURIComponent(a)+"="+encodeURIComponent(e),a=lb(f,a,void 0),c(a)):(a=E({type:"hidden",name:a,value:e}),a=La(f.ownerDocument,"input",a),f.appendChild(a))}}}};
function yd(a){return a.replace(/^(?:www\.|m\.|amp\.)+/,"")};function zd(){}zd.prototype.generateRequest=function(a,b,c){return(c=void 0===c?!1:c)?{url:a.replace("${extraUrlParams}",""),payload:JSON.stringify(b.extraUrlParams)}:{url:Ad(a,[b])}};zd.prototype.generateBatchRequest=function(a,b,c){return(void 0===c?0:c)?{url:a.replace("${extraUrlParams}",""),payload:JSON.stringify(b.map(function(a){return a.extraUrlParams}))}:{url:Ad(a,b)}};var Bd={"default":new zd};
function Ad(a,b){var c=b.map(function(a){return mb(a.extraUrlParams)}).filter(function(a){return!!a}).join("&"),d;return d=0<=a.indexOf("${extraUrlParams}")?a.replace("${extraUrlParams}",c):lb(a,c)};var Cd={RANDOM:!0,CANONICAL_URL:!0,CANONICAL_HOST:!0,CANONICAL_HOSTNAME:!0,CANONICAL_PATH:!0,AMPDOC_URL:!0,AMPDOC_HOST:!0,AMPDOC_HOSTNAME:!0,SOURCE_URL:!0,SOURCE_HOST:!0,SOURCE_HOSTNAME:!0,SOURCE_PATH:!0,TIMESTAMP:!0,TIMEZONE:!0,TIMEZONE_CODE:!0,VIEWPORT_HEIGHT:!0,VIEWPORT_WIDTH:!0,SCREEN_WIDTH:!0,SCREEN_HEIGHT:!0,AVAILABLE_SCREEN_HEIGHT:!0,AVAILABLE_SCREEN_WIDTH:!0,SCREEN_COLOR_DEPTH:!0,DOCUMENT_CHARSET:!0,BROWSER_LANGUAGE:!0,AMP_VERSION:!0,BACKGROUND_STATE:!0,USER_AGENT:!0,FIRST_CONTENTFUL_PAINT:!0,
FIRST_VIEWPORT_READY:!0,MAKE_BODY_VISIBLE:!0};function Dd(a){return new Promise(function(b){setTimeout(function(){return b(a())})})}
function Ed(a){return q(a.resources)?a.encoding&&a.encoding.entry&&a.encoding.delim?2>a.encoding.base||36<a.encoding.base?(v().warn("ANALYTICS","resource timing variables only supports bases between 2 and 36"),!1):null!=a.responseAfter&&"number"!=typeof a.responseAfter?(v().warn("ANALYTICS",'resourceTimingSpec["responseAfter"] must be a number'),!1):!0:(v().warn("ANALYTICS","resourceTimingSpec is missing or has incomplete encoding options"),!1):(v().warn("ANALYTICS",'resourceTimingSpec missing "resources" field'),
!1)}function Fd(a,b){var c=M(a.name);for(a=0;a<b.length;++a){var d=b[a],e=d.hostPattern;d=d.resources;if(e.test(c.host)){var f=Bc(d,function(a){return a.pathPattern.test(c.pathname)&&a.queryPattern.test(c.search)});if(-1!=f)return d[f].name}}return null}
function Gd(a){var b={},c;for(c in a){var d=a[c].host||"",e={name:c,pathPattern:new RegExp(a[c].path||""),queryPattern:new RegExp(a[c].query||"")};b[d]?b[d].resources.push(e):b[d]={hostPattern:new RegExp(d),resources:[e]}}var f=[],h;for(h in b)f.push(b[h]);return f}function Hd(a,b){var c=Gd(b),d=[];a.forEach(function(a){var b=Fd(a,c);b&&d.push({entry:a,name:b})});return d}
function Id(a,b,c){function d(a,b){b=void 0===b?0:b;return Math.round(a-b).toString(f.base||10)}var e=b.resources,f=b.encoding,h=P(c);a=Hd(a,e).map(function(a){var b=a.entry;a={key:a.name,startTime:d(b.startTime),redirectTime:d(b.redirectEnd,b.redirectStart),domainLookupTime:d(b.domainLookupEnd,b.domainLookupStart),tcpConnectTime:d(b.connectEnd,b.connectStart),serverResponseTime:d(b.responseStart,b.requestStart),networkTransferTime:d(b.responseEnd,b.responseStart),transferSize:d(b.transferSize||0),
encodedBodySize:d(b.encodedBodySize||0),decodedBodySize:d(b.decodedBodySize||0),duration:d(b.duration),initiatorType:b.initiatorType};return new N(a,1)}).map(function(a){return h.expandTemplate(f.entry,a)});return Promise.all(a).then(function(a){return a.join(f.delim)})}
function Jd(a,b){if(b.done||!a.performance||!a.performance.now||!a.performance.getEntriesByType||!Ed(b))return b.done=!0,Promise.resolve("");var c=a.performance.getEntriesByType("resource");150<=c.length&&(b.done=!0);var d=b.responseAfter||0;b.responseAfter=Math.max(d,a.performance.now());c=c.filter(function(a){return a.startTime+a.duration>=d});return c.length?Dd(function(){return Id(c,b,a)}):Promise.resolve("")}function Kd(a,b,c){return b&&Date.now()<c+6E4?Jd(a,b):Promise.resolve("")};function Ld(a,b,c,d,e){this.j=a;this.K=a.getAmpDoc();this.win=this.K.win;this.baseUrl=b.baseUrl;this.m=b.batchInterval;this.ic=Number(b.reportWindow)||null;this.mb=null;this.qa=P(this.win);this.hb=G(a);this.La=this.Ka=null;this.nb=[];this.Tc=c;this.U=d;this.nc=e?Cd:void 0;this.$a=this.W=null;this.hc=!0;this.wb=null;this.Ba=0;this.T=Date.now();Md(this);if(this.m){this.m=Array.isArray(this.m)?this.m:[this.m];for(a=0;a<this.m.length;a++)b=this.m[a],x(u(b),"Invalid batchInterval value: %s",this.m),b=
1E3*Number(b),x(200<=b,"Invalid batchInterval value: %s, interval value must be greater than %s ms.",this.m,200),this.m[a]=b;this.mb=0;Nd(this)}}
Ld.prototype.send=function(a,b,c){var d=this,e=!0===b.important;if(this.hc||e){this.Ba++;this.wb=b;var f=this.qa.getMacros();f.RESOURCE_TIMING=Kd(this.win,b.resourceTimingSpec,this.T);f.CONSENT_STATE=Hb(this.j);this.Ka||(c.freezeVar("extraUrlParams"),this.La=this.qa.expandTemplate(this.baseUrl,c),this.Ka=this.La.then(function(a){return d.hb.expandUrlAsync(a,f,d.nc)}));var h=Object.assign({},a,b.extraUrlParams),k=this.win.Date.now(),m=Od(this.qa,this.hb,h,c,f,this.nc).then(function(a){return E({trigger:b.on,
timestamp:k,extraUrlParams:a})});this.nb.push(m);0==this.Ba||!e&&this.m||Pd(this)}};Ld.prototype.dispose=function(){this.ab();this.W&&(this.win.clearTimeout(this.W),this.W=null);this.$a&&(this.win.clearTimeout(this.$a),this.$a=null)};
function Pd(a){var b=a.La,c=a.Ka,d=a.nb,e=a.wb;a.ab();b.then(function(b){a.Tc.url(b,!0);Promise.all([c,Promise.all(d)]).then(function(b){var c=b[0];b=b[1];0!==b.length&&(e.iframePing?(x("visible"==e.on,"iframePing is only available on page view requests."),a.U.sendRequestUsingIframe(c,b[0])):a.U.sendRequest(c,b,!!a.m))})})}Ld.prototype.ab=function(){this.Ba=0;this.La=this.Ka=null;this.nb=[];this.wb=null};
function Md(a){a.ic&&(a.$a=a.win.setTimeout(function(){0!=a.Ba&&Pd(a);a.hc=!1;a.W&&(a.win.clearTimeout(a.W),a.W=null)},1E3*a.ic))}function Nd(a){var b=a.mb<a.m.length?a.m[a.mb++]:a.m[a.m.length-1];a.W=a.win.setTimeout(function(){0!=a.Ba&&Pd(a);Nd(a)},b)}
function Qd(a,b,c,d,e,f){var h=P(a.win),k=G(f),m=h.getMacros();e.freezeVar("extraUrlParams");var l=h.expandTemplate(b,e).then(function(a){return k.expandStringAsync(a,m)});return 0>b.indexOf("${extraUrlParams}")?l:l.then(function(a){var b=Object.assign({},c,d.extraUrlParams);return Od(h,k,b,e,m).then(function(b){return Ad(a,[E({extraUrlParams:b})])})})}
function Od(a,b,c,d,e,f){function h(c,d){var l=c[d];if("string"===typeof l){var p=a.expandTemplate(l,m).then(function(a){return b.expandStringAsync(a,e,f)}).then(function(a){return c[d]=a});k.push(p)}else Array.isArray(l)?l.forEach(function(a,b){return h(l,b)}):q(l)&&null!==l&&Object.keys(l).forEach(function(a){return h(l,a)})}var k=[],m=new N(d.vars,d.iterations,!0);Object.keys(c).forEach(function(a){return h(c,a)});return Promise.all(k).then(function(){return c})};function Rd(a){var b=this;this.Bc=a;this.Zb=!1;this.Aa=[];this.Sc=new Jc(this.Bc,function(){b.setIsReady()})}Rd.prototype.isReady=function(){return this.Zb};Rd.prototype.setIsReady=function(){this.Zb=!0;Sd(this)};Rd.prototype.queueSize=function(){return this.Aa.length};Rd.prototype.enqueue=function(a){this.Aa.push(a);100<=this.queueSize()&&(w().warn("amp-analytics/iframe-transport-message-queue","Exceeded maximum size of queue for: "+a.creativeId),this.Aa.shift());Sd(this)};
function Sd(a){a.isReady()&&a.queueSize()&&(a.Sc.send("iframe-transport-events",{events:a.Aa}),a.Aa=[])};function Td(a){return!!a.PerformanceObserver&&!!a.TaskAttributionTiming&&"containerName"in a.TaskAttributionTiming.prototype};function Ud(){return ib.thirdParty+"/1903070012530/iframe-transport-client-v0.js"}function Vd(a,b,c,d){this.ra=a;this.G=b;this.Rb=d;this.Tb=c.iframe;this.Pc=0;this.processCrossDomainIframe()}g=Vd.prototype;g.detach=function(){var a=this.ra.document,b=this.G,c=Wd[b];--c.usageCount||(a.body.removeChild(c.frame),delete Wd[b],Xd[b]&&(Xd[b].disconnect(),Xd[b]=null))};
g.processCrossDomainIframe=function(){if(F(Wd,this.G)){var a=Wd[this.G];++a.usageCount}else a=this.createCrossDomainIframe(),this.ra.document.body.appendChild(a.frame),Yd(this)};g.createCrossDomainIframe=function(){var a=String(++Zd),b=JSON.stringify({scriptSrc:Ud(),sentinel:a,type:this.G}),c=La(this.ra.document,"iframe",{sandbox:"allow-scripts allow-same-origin",name:b,"data-amp-3p-sentinel":a});c.sentinel=a;fc(c);c.src=this.Tb;a={frame:c,usageCount:1,queue:new Rd(c)};return Wd[this.G]=a};
function Yd(a){Td(a.ra)&&(Xd[a.G]=new a.ra.PerformanceObserver(function(b){b&&b.getEntries().forEach(function(b){b&&"longtask"==b.entryType&&"cross-origin-descendant"==b.name&&b.attribution&&b.attribution.forEach(function(b){a.Tb==b.containerSrc&&0==++a.Pc%5&&v().error("amp-analytics/iframe-transport",'Long Task: Vendor: "'+a.G+'"')})})}),Xd[a.G].observe({entryTypes:["longtask"]}))}g.sendRequest=function(a){Wd[this.G].queue.enqueue({creativeId:this.Rb,message:a})};g.getCreativeId=function(){return this.Rb};
g.getType=function(){return this.G};var Wd={},Zd=0,Xd={};function $d(a,b,c){c&&"no-referrer"!==c&&v().error("pixel","Unsupported referrerPolicy: %s",c);if("no-referrer"===c)if("referrerPolicy"in Image.prototype)a=ae(a,b,!0);else{var d=La(a.document,"iframe",E({src:"about:blank",style:"display:none"}));a.document.body.appendChild(d);ae(d.contentWindow,b);a=d}else a=ae(a,b);return a}function ae(a,b,c){c=void 0===c?!1:c;a=new a.Image;c&&(a.referrerPolicy="no-referrer");a.src=b;return a};function be(a,b){try{var c=Aa(a,b).parentElement;if("AMP-AD"==c.nodeName)return String(c.getResourceId())}catch(d){}return null};function ce(a,b){b=void 0===b?{}:b;this.l=a;this.H=b;this.fc=this.H.referrerPolicy;"no-referrer"===this.fc&&(this.H.beacon=!1,this.H.xhrpost=!1);this.lc=!!this.H.useBody;this.X=null;this.P="inabox"==na(a).runtime}
ce.prototype.sendRequest=function(a,b,c){function d(d){d=c?e.generateBatchRequest(a,b,d):e.generateRequest(a,b[0],d);nb(d.url,"amp-analytics request");var f=d.url,h=M(f);h=la(h.search);x(!("__amp_source_origin"in h),"Source origin is not allowed in %s",f);return d}if(a&&0!==b.length){var e=Bd["default"],f=de(d);if(this.H.iframe)this.X?this.X.sendRequest(f(!1).url):w().error("amp-analytics/transport","iframe transport was inadvertently deleted");else if(!this.H.beacon||!ee(this.l,f(this.lc)))if(!this.H.xhrpost||
!fe(this.l,f(this.lc))){var h=this.H.image;if(h){var k="object"==typeof h&&h.suppressWarnings;ge(this.l,f(!1),k,this.fc)}else v().warn("amp-analytics/transport","Failed to send request",a,this.H)}}else w().info("amp-analytics/transport","Empty request not sent: ",a)};
ce.prototype.maybeInitIframeTransport=function(a,b,c){if(this.H.iframe&&!this.X){c&&c.preload(Ud(),"script");var d=b.getAttribute("type"),e=this.P?"1":v().assertString(be(b,a.__AMP_TOP||a),"No friendly amp-ad ancestor element was found for amp-analytics tag with iframe transport.");this.X=new Vd(a,d,this.H,e)}};ce.prototype.deleteIframeTransport=function(){this.X&&(this.X.detach(),this.X=null)};
ce.prototype.sendRequestUsingIframe=function(a,b){var c=this;if(a=Ad(a,[b])){nb(a,"amp-analytics request");x(M(a).origin!=M(this.l.location.href).origin,"Origin of iframe request must not be equal to the document origin. See https://github.com/ampproject/ amphtml/blob/master/spec/amp-iframe-origin-policy.md for details.");var d=this.l.document.createElement("iframe");fc(d);d.onload=d.onerror=function(){B(c.l,"timer").delay(function(){d.parentElement&&d.parentElement.removeChild(d)},5E3)};d.setAttribute("amp-analytics",
"");d.setAttribute("sandbox","allow-scripts allow-same-origin");d.src=a;this.l.document.body.appendChild(d)}else v().error("amp-analytics/transport","Request not sent. Contents empty.")};function ge(a,b,c,d){a=$d(a,b.url,d);Za(a).then(function(){}).catch(function(){c||v().warn("amp-analytics/transport","Response unparseable or failed to send image request",b.url)})}
function ee(a,b){a=a.navigator.sendBeacon?a.navigator.sendBeacon.bind(a.navigator):void 0;var c=a;return c?c(b.url,b.payload||""):!1}function fe(a,b){a=a.XMLHttpRequest;if(!a)return!1;var c=new a;if(!("withCredentials"in c))return!1;c.open("POST",b.url,!0);c.withCredentials=!0;c.setRequestHeader("Content-Type","text/plain");c.onreadystatechange=function(){};c.send(b.payload||"");return!0}function de(a){var b={};return function(c){var d=String(c);void 0===b[d]&&(b[d]=a(c));return b[d]}};var he=["visible","hidden"];function ie(a){a=AMP.BaseElement.call(this,a)||this;a.Qb=Promise.resolve();a.pb=null;a.R=!1;a.Ca={};a.h={};a.Wb=null;a.ha=null;a.qa=P(a.win);a.yc=B(a.win,"crypto");a.O=null;a.U=null;a.P="inabox"==na(a.win).runtime;a.xa=null;return a}n(ie,AMP.BaseElement);g=ie.prototype;g.getLayoutPriority=function(){return this.P?0:1};g.isAlwaysFixed=function(){return!ic(this.element)};g.isLayoutSupported=function(){return!0};
g.buildCallback=function(){var a=this;this.R=this.element.hasAttribute("sandbox");this.element.setAttribute("aria-hidden","true");this.pb=this.element.getAttribute("data-consent-notification-id");null!=this.pb&&(this.Qb=Sa(this.element).then(function(b){return b.get(a.pb)}));"immediate"==this.element.getAttribute("trigger")&&je(this)};g.layoutCallback=function(){return je(this)};
g.detachedCallback=function(){this.ha&&(this.ha.dispose(),this.ha=null);this.xa&&(this.xa.dispose(),this.xa=null);for(var a=0;a<this.Ca.length;a++)this.Ca[a].dispose(),delete this.Ca[a]};g.resumeCallback=function(){var a=this;this.O&&this.O.then(function(){a.U.maybeInitIframeTransport(a.getAmpDoc().win,a.element)})};g.unlayoutCallback=function(){var a=this;if(H(this.getAmpDoc()).isVisible())return!1;this.O&&this.O.then(function(){a.U.deleteIframeTransport()});return AMP.BaseElement.prototype.unlayoutCallback.call(this)};
function je(a){if(a.O)return a.O;fc(a.element);a.O=H(a.getAmpDoc()).whenFirstVisible().then(function(){return B(a.win,"timer").promise(1)}).then(function(){return a.Qb}).then(function(){return B(a.win,"ampdoc")}).then(function(b){return b.getAmpDoc(a.element,{closestAmpDoc:!0})}).then(rd).then(function(b){a.Wb=b;return(new Ib(a.element)).loadConfig()}).then(function(b){a.h=b;return(new rc(a.win,a.element,a.h)).write()}).then(function(){a.U=new ce(a.win,a.h.transport||{})}).then(a.Vc.bind(a)).then(a.Mc.bind(a));
return a.O}
g.Vc=function(){var a=this;if(ke(this))return this.A(),Promise.resolve();le(this);if(!this.h.triggers){var b=this.A();this.user().error(b,"No triggers were found in the config. No analytics data will be sent.");return Promise.resolve()}me(this,this.h.extraUrlParams,this.h.extraUrlParamsReplaceMap);this.ha=this.Wb.createAnalyticsGroup(this.element);this.U.maybeInitIframeTransport(this.getAmpDoc().win,this.element,this.preconnect);b=[];var c={},d;for(d in this.h.triggers){if(F(this.h.triggers,d)){c.trigger=
this.h.triggers[d];c.expansionOptions=ne(this,E({}),c.trigger,void 0,!0);var e=this.A();if(!c.trigger){this.user().error(e,"Trigger should be an object: ",d);continue}var f=c.trigger.request||c.trigger.parentPostMessage&&this.P;if(!c.trigger.on||!f){var h=this.P?'/"parentPostMessage"':"";this.user().error(e,'"on" and "request"'+h+" attributes are required for data to be collected.");continue}if(this.R){var k=c.trigger.on;if(pa(k)&&!he.includes(k)){this.user().error(e,k+" is not supported for amp-analytics in scope");
continue}}me(this,c.trigger.extraUrlParams,this.h.extraUrlParamsReplaceMap);b.push(oe(this,c.trigger).then(function(b){return function(c){if(c)if(a.R)a.element.parentElement&&(b.trigger.selector=a.element.parentElement.tagName,b.trigger.selectionMethod="closest",pe(a,b.trigger));else{if(b.trigger.selector)return a.qa.expandTemplate(b.trigger.selector,b.expansionOptions).then(function(c){b.trigger.selector=c;pe(a,b.trigger)});pe(a,b.trigger)}}}(c)))}c={trigger:c.trigger,expansionOptions:c.expansionOptions}}return Promise.all(b)};
g.preload=function(a,b){this.preconnect.preload(a,b)};function pe(a,b){if(a.ha)try{a.ha.addTrigger(b,a.Ec.bind(a,b))}catch(c){a=a.A(),sa(a,'Failed to process trigger "'+b.on+'"',c)}}function me(a,b,c){if(b&&c){var d=0,e;for(e in c){if(16<++d){b=a.A();a.user().error(b,"More than 16 extraUrlParamsReplaceMap rules aren't allowed; Skipping the rest");break}for(var f in b){var h=f.replace(e,c[e]);if(f!=h){var k=b[f];delete b[f];b[h]=k}}}}}
function ke(a){if(!a.h.optout)return!1;var b=a.h.optout.split(".");a=a.win;for(var c=0;c<b.length;c++){if(!a)return!1;a=a[b[c]]}return a()}
function le(a){if(!a.h.requests){if(!a.P){var b=a.A();a.user().error(b,"No request strings defined. Analytics data will not be sent from this page.")}}else if(a.h.requests){for(var c in a.h.requests)F(a.h.requests,c)&&!a.h.requests[c].baseUrl&&(a.user().error("amp-analytics","request must have a baseUrl"),delete a.h.requests[c]);for(var d in a.h.requests)a.h.requests[d].baseUrl=Ka(a.h.requests[d].baseUrl,function(b){var c=a.h.requests[b];return c&&c.baseUrl||"${"+b+"}"});c={};for(b in a.h.requests)F(a.h.requests,
b)&&(c[b]=new Ld(a.element,a.h.requests[b],a.preconnect,a.U,a.R));a.Ca=c}}g.Mc=function(){var a=this.element.getAttribute("type");this.xa=new sd(this.getAmpDoc(),this.h,a,this.element);this.xa.init()};g.Ec=function(a,b){for(var c=Array.isArray(a.request)?a.request:[a.request],d=0;d<c.length;d++){var e=c[d];qe(this,e,a,b)}};
function qe(a,b,c,d){if(!a.element.ownerDocument.defaultView){var e=a.A();w().warn(e,"request against destroyed embed: ",c.on)}var f=a.Ca[b],h=a.P&&c.parentPostMessage;if(void 0!=b&&!f&&(b=a.A(),a.user().error(b,"Ignoring request for event. Request string not found: ",c.request),!h))return;re(a,c,d).then(function(b){if(b){if(f){a.h.vars.requestCount++;var e=ne(a,d,c);f.send(a.h.extraUrlParams,c,e)}se(a,c,d)}})}
function se(a,b,c){var d=b.parentPostMessage;d&&a.P&&(c=ne(a,c,b),Qd(a.getAmpDoc(),d,a.h.extraUrlParams,b,c,a.element).then(function(b){var c=a.win;c.parent&&c.parent!=c&&a.win.parent.postMessage(b,"*")}))}
function oe(a,b){var c=b.sampleSpec,d=Promise.resolve(!0),e=a.A();if(!c)return d;var f=c.sampleOn;if(!f)return a.user().error(e,"Invalid sampleOn value."),d;var h=parseFloat(c.threshold);if(0<=h&&100>=h)return b=ne(a,E({}),b),a.Qa(f,b).then(function(b){return a.yc.uniform(b)}).then(function(a){return 100*a<h});v().error(e,"Invalid threshold for sampling.");return d}
function re(a,b,c){c=ne(a,c,b);var d=te(a,a.h.enabled,c),e=te(a,b.enabled,c);return Promise.all([d,e]).then(function(a){return a[0]&&a[1]})}function te(a,b,c){return void 0===b?Promise.resolve(!0):"boolean"===typeof b?Promise.resolve(b):a.Qa(b,c).then(function(a){return""!==a&&"0"!==a&&"false"!==a&&"null"!==a&&"NaN"!==a&&"undefined"!==a})}g.Qa=function(a,b){var c=this;return this.qa.expandTemplate(a,b).then(function(a){return G(c.element).expandUrlAsync(a)})};
g.A=function(){return"AmpAnalytics "+(this.element.getAttribute("id")||"<unknown id>")};function ne(a,b,c,d,e){var f={};Q(a.h.vars,f);Q(c.vars,f);Q(b.vars,f);return new N(f,d,e)}(function(a){a.registerServiceForDoc("amp-analytics-instrumentation",od);a.registerServiceForDoc("activity",cb);wa(a.win,"amp-analytics-variables",Eb);wa(a.win,"amp-analyitcs-linker-reader",oc);a.registerElement("amp-analytics",ie)})(self.AMP);
})});
//# sourceMappingURL=amp-analytics-0.1.js.map

