self.AMP_CONFIG={"pump-early-frame":1,"chunked-amp":1,"amp-ad-ff-adx-ady":0.01,"swg-gpay-api":1,"canary":0,"amp-story-v1":1,"hidden-mutation-observer":1,"fix-inconsistent-responsive-height-selection":0,"a4aProfilingRate":0.01,"allow-url-opt-in":["pump-early-frame"],"version-locking":1,"amp-auto-ads-adsense-holdout":0.1,"amp-list-init-from-state":1,"as-use-attr-for-format":0.01,"adsense-ad-size-optimization":0.01,"blurry-placeholder":1,"amp-playbuzz":1,"flexAdSlots":0.05,"amp-action-macro":1,"amp-accordion-display-locking":0.01,"fixed-elements-in-lightbox":1,"amp-access-iframe":1,"amp-nested-menu":1,"amp-mega-menu":1,"doubleclickSraExp":0.01,"swg-gpay-native":1,"allow-doc-opt-in":["amp-next-page","inabox-viewport-friendly","analytics-chunks"],"amp-sidebar-swipe-to-dismiss":1,"doubleclickSraReportExcludedBlock":0.1,"ampdoc-closest":1,"amp-story-responsive-units":1,"ios-fixed-no-transfer":0,"layoutbox-invalidate-on-scroll":1,"amp-consent-restrict-fullscreen":1,"random-subdomain-for-safeframe":0.02,"v":"012005012256000","type":"production"};/*AMP_CONFIG*/(function(){var f,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.Wf=b.prototype}
function ha(a){for(var b=["object"==typeof globalThis&&globalThis,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,a],c=0;c<b.length;++c){var d=b[c];if(d&&d.Math==Math)return d}return function(){throw Error("Cannot find global object");}()}var ia=ha(this);function ja(a,b){b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(c){return b}};var ka=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function r(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].replace(/\+/g," "),c[2]):"";b[d]=e}return b};var la="";
function u(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,g=r(c.location.originalHash||c.location.hash);d=d.spt;var h=r(c.location.search);la||(la=c.AMP_CONFIG&&c.AMP_CONFIG.v?c.AMP_CONFIG.v:"012005012256000");c={localDev:!1,development:!!(0<=["1","actions","amp","amp4ads","amp4email"].indexOf(g.development)||c.AMP_DEV_MODE),examiner:"2"==g.development,esm:!1,geoOverride:g["amp-geo"],minified:!0,lite:void 0!=h.amp_lite,test:e,log:g.log,version:"2005012256000",
rtvVersion:la,singlePassType:d};c=b.__AMP_MODE=c}return c};function ma(a,b){var c=b||0,d=this.length;for(b=0<=c?c:Math.max(d+c,0);b<d;b++){var e=this[b];if(e===a||a!==a&&e!==e)return!0}return!1};var na;function v(){return na?na:na=Promise.resolve(void 0)};var oa=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,pa="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "),qa={childList:!0,subtree:!0};function ra(a,b){if(!oa.test(b)||pa.includes(b))throw new a('invalid custom element name "'+b+'"');}function sa(a){setTimeout(function(){self.__AMP_REPORT_ERROR(a);throw a;})}function ta(a,b){this.h=a;this.Qb=b;this.ne=Object.create(null)}
ta.prototype.define=function(a,b,c){this.Qb.define(a,b,c);var d=this.ne,e=d[a];e&&(e.resolve(),delete d[a])};ta.prototype.get=function(a){var b=this.Qb.getByName(a);if(b)return b.ctor};ta.prototype.whenDefined=function(a){var b=this.h,c=b.Promise;ra(b.SyntaxError,a);if(this.Qb.getByName(a))return v();b=this.ne;var d=b[a];if(d)return d.promise;var e,g=new c(function(a){return e=a});b[a]={promise:g,resolve:e};return g};ta.prototype.upgrade=function(a){this.Qb.upgrade(a)};
function ua(a){this.h=a;this.qc=Object.create(null);this.oa="";this.T=this.pc=null;this.bd=[a.document]}f=ua.prototype;f.current=function(){var a=this.pc;this.pc=null;return a};f.getByName=function(a){var b=this.qc[a];if(b)return b};f.getByConstructor=function(a){var b=this.qc,c;for(c in b){var d=b[c];if(d.ctor===a)return d}};
f.define=function(a,b,c){var d=this,e=this.h,g=e.Error;e=e.SyntaxError;if(c)throw new g("Extending native custom elements is not supported");ra(e,a);if(this.getByName(a)||this.getByConstructor(b))throw new g('duplicate definition "'+a+'"');this.qc[a]={name:a,ctor:b};va(this,a);this.bd.forEach(function(b){d.upgrade(b,a)})};f.upgrade=function(a,b){var c=!!b,d=wa(a,b||this.oa);for(a=0;a<d.length;a++){var e=d[a];c?xa(this,e):this.upgradeSelf(e)}};
f.upgradeSelf=function(a){var b=this.getByName(a.localName);b&&ya(this,a,b)};function wa(a,b){return b&&a.querySelectorAll?a.querySelectorAll(b):[]}function ya(a,b,c){c=c.ctor;if(!(b instanceof c)){a.pc=b;try{var d=new c;if(d!==b)throw new a.h.Error("Constructor illegally returned a different instance.");}catch(e){sa(e)}}}function xa(a,b){var c=a.getByName(b.localName);if(c&&(ya(a,b,c),b.connectedCallback))try{b.connectedCallback()}catch(d){sa(d)}}
function va(a,b){if(a.oa)a.oa+=","+b;else{a.oa=b;var c=new a.h.MutationObserver(function(b){b&&za(a,b)});a.T=c;a.bd.forEach(function(a){c.observe(a,qa)});Aa(a.h,a)}}f.observe=function(a){this.bd.push(a);this.T&&this.T.observe(a,qa)};f.sync=function(){this.T&&za(this,this.T.takeRecords())};
function za(a,b){for(var c=0;c<b.length;c++){var d=b[c];if(d){var e=d,g=e.addedNodes,h=e.removedNodes;for(e=0;e<g.length;e++){var k=g[e],l=wa(k,a.oa);xa(a,k);for(k=0;k<l.length;k++)xa(a,l[k])}for(e=0;e<h.length;e++){k=h[e];var m=wa(k,a.oa);if(k.disconnectedCallback)try{k.disconnectedCallback()}catch(p){sa(p)}for(k=0;k<m.length;k++){var q=m[k];if(q.disconnectedCallback)try{q.disconnectedCallback()}catch(p){sa(p)}}}}}}
function Aa(a,b){var c=a.document,d=a.Document.prototype,e=a.Element.prototype,g=a.Node.prototype,h=d,k=h.createElement,l=h.importNode;h=g;var m=h.appendChild,q=h.cloneNode,p=h.insertBefore,t=h.removeChild,J=h.replaceChild;d.createElement=function(a){var c=b.getByName(a);return c?new c.ctor:k.apply(this,arguments)};d.importNode=function(){var a=l.apply(this,arguments);a&&this===c&&(b.upgradeSelf(a),b.upgrade(a));return a};g.appendChild=function(){var a=m.apply(this,arguments);b.sync();return a};g.insertBefore=
function(){var a=p.apply(this,arguments);b.sync();return a};g.removeChild=function(){var a=t.apply(this,arguments);b.sync();return a};g.replaceChild=function(){var a=J.apply(this,arguments);b.sync();return a};g.cloneNode=function(){var a=q.apply(this,arguments);a.ownerDocument===c&&(b.upgradeSelf(a),b.upgrade(a));return a};var w=e,A=Object.getOwnPropertyDescriptor(w,"innerHTML");A||(w=Object.getPrototypeOf(a.HTMLElement.prototype),A=Object.getOwnPropertyDescriptor(w,"innerHTML"));var D=A.set;A.set=
function(a){D.call(this,a);b.upgrade(this)};Object.defineProperty(w,"innerHTML",A)}
function Ba(){function a(){var a=this.constructor,b=h.current();b||(b=h.getByConstructor(a),b=g.call(e,b.name));Ca(b,a.prototype);return b}var b=Da,c=b.Element,d=b.HTMLElement,e=b.document,g=e.createElement,h=new ua(b),k=new ta(b,h);Object.defineProperty(b,"customElements",{enumerable:!0,configurable:!0,value:k});c=c.prototype;var l=c.attachShadow,m=c.createShadowRoot;l&&(c.attachShadow=function(a){var b=l.apply(this,arguments);h.observe(b);return b},c.attachShadow.toString=function(){return l.toString()});
m&&(c.createShadowRoot=function(){var a=m.apply(this,arguments);h.observe(a);return a},c.createShadowRoot.toString=function(){return m.toString()});Ea(d,a);b.HTMLElement=a;a.call||(a.apply=b.Function.apply,a.bind=b.Function.bind,a.call=b.Function.call)}function Fa(){function a(){return d.construct(c,[],this.constructor)}var b=Da,c=b.HTMLElement,d=b.Reflect;Ea(c,a);b.HTMLElement=a}function Ea(a,b){b.prototype=Object.create(a.prototype,{constructor:{configurable:!0,writable:!0,value:b}});Ca(b,a)}
function Ca(a,b){if(Object.setPrototypeOf)Object.setPrototypeOf(a,b);else if({__proto__:{test:!0}}.test)a.__proto__=b;else for(;null!==b&&!Object.isPrototypeOf.call(b,a);){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d];if(!Object.hasOwnProperty.call(a,e)){var g=Object.getOwnPropertyDescriptor(b,e);Object.defineProperty(a,e,g)}}b=Object.getPrototypeOf(b)}};function Ga(a,b){var c=void 0===b?this.contains(a):!b;if(c)return this.remove(a),!1;this.add(a);return!0}function Ha(){var a=self;if(/Trident|MSIE|IEMobile/i.test(a.navigator.userAgent)&&a.DOMTokenList){a.Object.defineProperty(a.DOMTokenList.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:Ga});var b=a.DOMTokenList.prototype.add;a.DOMTokenList.prototype.add=function(){for(var a=0;a<arguments.length;a++)b.call(this,arguments[a])}}};function Ia(a){return a==this||this.documentElement.contains(a)};var Ja=Object.prototype.toString;function x(a){return Array.isArray(a)}function Ka(a){return"[object Object]"===Ja.call(a)}function Ma(a){return"number"===typeof a&&isFinite(a)};function Na(a){var b=!1,c=null,d=a;return function(a){for(var e=[],h=0;h<arguments.length;++h)e[h-0]=arguments[h];b||(c=d.apply(self,e),b=!0,d=null);return c}};var y=self.AMP_CONFIG||{},Oa=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Pa(a){if(!self.document||!self.document.head||self.location&&Oa.test(self.location.origin))return null;var b=self.document.head.querySelector('meta[name="'+a+'"]');return b&&b.getAttribute("content")||null}
var Qa={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdn:y.cdnUrl||Pa("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Oa,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||
"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||Pa("amp-geo-api")},Ra={urls:Qa};function Sa(){}function Ta(a){return 0<=a.indexOf("\u200b\u200b\u200b")}var Ua=void 0;function Va(a){Ua=a}function Wa(a,b){return b.reduce(function(a,b){return a+"&s[]="+encodeURIComponent(String(Ya(b)))},"https://log.amp.dev/?v=012005012256000&id="+encodeURIComponent(a))}
function Za(a,b,c){var d=this;c=void 0===c?"":c;this.win=u().test&&a.__AMP_TEST_IFRAME?a.parent:a;this.qf=b;this.rf=this.win.console&&this.win.console.log&&"0"!=u().log?u().test&&this.win.ENABLE_LOG?4:u().localDev&&!u().log?3:this.qf({localDev:u(void 0).localDev,development:u(void 0).development,esm:!1,filter:u(void 0).filter,minified:u(void 0).minified,lite:u(void 0).lite,test:u(void 0).test,log:u(void 0).log,version:u(void 0).version,rtvVersion:u(void 0).rtvVersion,singlePassType:u(void 0).singlePassType}):
0;this.Wb=c;this.Hb=null;this.Ve=Na(function(){a.fetch(Qa.cdn+"/rtv/012005012256000/log-messages.simple.json").then(function(a){return a.json()},Sa).then(function(a){a&&(d.Hb=a)})})}function $a(a){return void 0!==Ua?Ua:a.rf}
function ab(a,b,c,d){if(0!=$a(a)){var e=a.win.console.log;"ERROR"==c?e=a.win.console.error||e:"INFO"==c?e=a.win.console.info||e:"WARN"==c&&(e=a.win.console.warn||e);c=d;c=x(c[0])?bb(a,c[0]):c;b="["+b+"]";"string"===typeof c[0]?c[0]=b+" "+c[0]:c.unshift(b);e.apply(a.win.console,c)}}f=Za.prototype;f.isEnabled=function(){return 0!=$a(this)};f.fine=function(a,b){4<=$a(this)&&ab(this,a,"FINE",Array.prototype.slice.call(arguments,1))};
f.info=function(a,b){3<=$a(this)&&ab(this,a,"INFO",Array.prototype.slice.call(arguments,1))};f.warn=function(a,b){2<=$a(this)&&ab(this,a,"WARN",Array.prototype.slice.call(arguments,1))};f.ga=function(a,b){if(1<=$a(this))ab(this,a,"ERROR",Array.prototype.slice.call(arguments,1));else{var c=cb.apply(null,Array.prototype.slice.call(arguments,1));db(this,c);return c}};f.error=function(a,b){var c=this.ga.apply(this,arguments);c&&(c.name=a||c.name,self.__AMP_REPORT_ERROR(c))};
f.expectedError=function(a,b){var c=this.ga.apply(this,arguments);c&&(c.expected=!0,self.__AMP_REPORT_ERROR(c))};f.createError=function(a){var b=cb.apply(null,arguments);db(this,b);return b};f.createExpectedError=function(a){var b=cb.apply(null,arguments);db(this,b);b.expected=!0;return b};
f.assert=function(a,b,c){var d;if(x(b))return this.assert.apply(this,[a].concat(bb(this,b)));if(!a){var e=(b||"Assertion failed").split("%s"),g=e.shift(),h=g,k=[],l=2;for(""!=g&&k.push(g);0<e.length;){var m=e.shift(),q=arguments[l++];q&&q.tagName&&(d=q);k.push(q);g=m.trim();""!=g&&k.push(g);h+=Ya(q)+m}l=Error(h);l.fromAssert=!0;l.associatedElement=d;l.messageArray=k;db(this,l);self.__AMP_REPORT_ERROR(l);throw l;}return a};
f.assertElement=function(a,b){eb(this,a,a&&1==a.nodeType,"Element expected",b);return a};f.assertString=function(a,b){eb(this,a,"string"==typeof a,"String expected",b);return a};f.assertNumber=function(a,b){eb(this,a,"number"==typeof a,"Number expected",b);return a};f.assertArray=function(a,b){eb(this,a,x(a),"Array expected",b);return a};f.assertBoolean=function(a,b){eb(this,a,!!a===a,"Boolean expected",b);return a};
f.assertEnumValue=function(a,b,c){a:{for(var d in a)if(a[d]===b){a=!0;break a}a=!1}if(a)return b;this.assert(!1,'Unknown %s value: "%s"',c||"enum",b)};function db(a,b){b=fb(b);a.Wb?b.message?-1==b.message.indexOf(a.Wb)&&(b.message+=a.Wb):b.message=a.Wb:Ta(b.message)&&(b.message=b.message.replace("\u200b\u200b\u200b",""))}function bb(a,b){var c=b.shift();u(a.win).development&&a.Ve();return a.Hb&&c in a.Hb?[a.Hb[c]].concat(b):["More info at "+Wa(c,b)]}
function eb(a,b,c,d,e){x(e)?a.assert(c,e.concat(b)):a.assert(c,(e||d)+": %s",b)}function Ya(a){return a&&1==a.nodeType?a.tagName.toLowerCase()+(a.id?"#"+a.id:""):a}function fb(a){var b=Object.getOwnPropertyDescriptor(a,"message");if(b&&b.writable)return a;var c=a.stack,d=Error(a.message),e;for(e in a)d[e]=a[e];d.stack=c;return d}
function cb(a){for(var b=null,c="",d=0;d<arguments.length;d++){var e=arguments[d];e instanceof Error&&!b?b=fb(e):(c&&(c+=" "),c+=e)}b?c&&(b.message=c+": "+b.message):b=Error(c);return b}function gb(a){var b=cb.apply(null,arguments);setTimeout(function(){self.__AMP_REPORT_ERROR(b);throw b;})}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var hb=self.__AMP_LOG,ib=null;
function z(a){hb.user||(hb.user=jb("\u200b\u200b\u200b"));var b=hb.user.win;return a&&a.ownerDocument.defaultView!=b?hb.userForEmbed?hb.userForEmbed:hb.userForEmbed=jb("\u200b\u200b\u200b\u200b"):hb.user}function jb(a){if(!ib)throw Error("failed to call initLogConstructor");return new ib(self,function(a){var b=parseInt(a.log,10);return a.development||1<=b?4:2},a)}
function C(){if(hb.dev)return hb.dev;if(!ib)throw Error("failed to call initLogConstructor");return hb.dev=new ib(self,function(a){a=parseInt(a.log,10);return 3<=a?4:2<=a?3:0})}function E(a,b,c,d,e,g){return z().assert(a,b,c,d,e,g,void 0,void 0,void 0,void 0,void 0)};var kb=Object.prototype.hasOwnProperty;function F(a){var b=Object.create(null);a&&Object.assign(b,a);return b}function G(a){return a||{}};function H(){var a,b;this.promise=new Promise(function(c,d){a=c;b=d});this.resolve=a;this.reject=b}function lb(a){return new Promise(function(b){b(a())})};/*
 https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
var mb=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function nb(a,b,c,d,e){return e?e:b?"\ufffd":d?a.slice(0,-1)+"\\"+a.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+a};var ob;function pb(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}};function K(a,b){return b.length>a.length?!1:0==a.lastIndexOf(b,0)}function qb(a){return a.trimStart?a.trimStart():(a+"_").trim().slice(0,-1)};function rb(a,b,c){if(b(a))c();else{var d=a.ownerDocument.defaultView;if(d.MutationObserver){var e=new d.MutationObserver(function(){b(a)&&(e.disconnect(),c())});e.observe(a,{childList:!0})}else var g=d.setInterval(function(){b(a)&&(d.clearInterval(g),c())},5)}}function sb(a,b){return new Promise(function(c){rb(a,b,c)})}function tb(a,b){rb(a.documentElement,function(){return!!a.body},b)}function ub(a){return new Promise(function(b){return tb(a,b)})}
function vb(a){a.parentElement&&a.parentElement.removeChild(a)}function wb(a){var b=G({src:"about:blank",style:"display:none"});a=a.createElement("iframe");for(var c in b)a.setAttribute(c,b[c]);return a}function xb(a){var b=a.isConnected;if(void 0!==b)return b;do if(a=yb(a),a.host)a=a.host;else break;while(1);return a.nodeType===Node.DOCUMENT_NODE}function yb(a){if(Node.prototype.getRootNode)return a.getRootNode()||a;for(;a.parentNode&&!zb(a);a=a.parentNode);return a}
function zb(a){return a?"I-AMPHTML-SHADOW-ROOT"==a.tagName?!0:11==a.nodeType&&"[object ShadowRoot]"===Object.prototype.toString.call(a):!1}function Ab(a,b){for(var c;a&&a!==c;a=a.parentElement)if(b(a))return a;return null}function Bb(a,b){for(;a;a=a.parentNode)if(b(a))return a;return null}function Cb(a,b){return a.closest?a.closest(b):Ab(a,function(a){return Db(a,b)})}function Eb(a,b){var c=[];for(a=a.firstElementChild;a;a=a.nextElementSibling)b(a)&&c.push(a);return c}
function Fb(a,b){for(a=a.lastElementChild;a;a=a.previousElementSibling)if(b(a))return a;return null}function Gb(a,b){var c=[];for(a=a.firstChild;a;a=a.nextSibling)b(a)&&c.push(a);return c}function Hb(a,b){/^[\w-]+$/.test(b);return Ib(a,"> ["+b+"]")}function Db(a,b){var c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return c?c.call(a,b):!1}
function Jb(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 Ib(a,b){if(void 0!==ob?ob:ob=pb(a))return a.querySelector(b.replace(/^|,/g,"$&:scope "));var c=Jb(a,b);return void 0===c[0]?null:c[0]}function Kb(a,b){for(var c=a.length,d=0;d<c;d++)b(a[d],d)}
function Lb(a,b,c,d){try{var e=a.open(b,c,d)}catch(h){C().error("DOM","Failed to open url on target: ",c,h)}if(!(c=e||"_top"==c)){c=d||"";var g;"number"!==typeof g&&(g=0);c=g+8>c.length?!1:-1!==c.indexOf("noopener",g)}c||(e=a.open(b,"_top"));return e}function Mb(a){try{a.focus()}catch(b){}}function Nb(a){return a.parent&&a.parent!=a};function Ob(a){return JSON.parse(a)};function Pb(a){return"undefined"!==typeof TextEncoder?(new TextEncoder("utf-8")).encode(a):Qb(unescape(encodeURIComponent(a)))}function Qb(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 Rb(a){for(var b=Array(a.length),c=0;c<a.length;c++)b[c]=String.fromCharCode(a[c]);return b.join("")};var Sb={document:1,text:2},Tb=["GET","POST"];
function Ub(a,b){b=void 0===b?{}:b;return new Promise(function(c,d){var e=Vb(b.method||"GET"),g=Wb(e,a);"include"==b.credentials&&(g.withCredentials=!0);b.responseType in Sb&&(g.responseType=b.responseType);b.headers&&Object.keys(b.headers).forEach(function(a){g.setRequestHeader(a,b.headers[a])});g.onreadystatechange=function(){2>g.readyState||(100>g.status||599<g.status?(g.onreadystatechange=null,d(z().createExpectedError("Unknown HTTP status "+g.status))):4==g.readyState&&c(new Xb(g)))};g.onerror=
function(){d(z().createExpectedError("Network failure"))};g.onabort=function(){d(z().createExpectedError("Request aborted"))};"POST"==e?g.send(b.body):g.send()})}function Wb(a,b){var c=new XMLHttpRequest;if("withCredentials"in c)c.open(a,b,!0);else throw C().createExpectedError("CORS is not supported");return c}
function Xb(a){this.sa=a;this.status=this.sa.status;this.statusText=this.sa.statusText;this.ok=200<=this.status&&300>this.status;this.headers=new Yb(a);this.bodyUsed=!1;this.body=null;this.url=a.responseURL}Xb.prototype.clone=function(){return new Xb(this.sa)};function Zb(a){a.bodyUsed=!0;return Promise.resolve(a.sa.responseText)}Xb.prototype.text=function(){return Zb(this)};Xb.prototype.json=function(){return Zb(this).then(Ob)};Xb.prototype.arrayBuffer=function(){return Zb(this).then(Pb)};
function Vb(a){if(void 0===a)return"GET";a=a.toUpperCase();Tb.includes(a);return a}function Yb(a){this.sa=a}Yb.prototype.get=function(a){return this.sa.getResponseHeader(a)};Yb.prototype.has=function(a){return null!=this.sa.getResponseHeader(a)};
function $b(a,b){b=void 0===b?{}:b;var c=F();a=Object.assign({},{status:200,statusText:"OK",responseText:a?String(a):"",getResponseHeader:function(a){var b=String(a).toLowerCase();return kb.call(c,b)?c[b]:null}},b);a.status=void 0===b.status?200:parseInt(b.status,10);if(x(b.headers))b.headers.forEach(function(a){var b=a[1];c[String(a[0]).toLowerCase()]=String(b)});else if(Ka(b.headers))for(var d in b.headers)c[String(d).toLowerCase()]=String(b.headers[d]);b.statusText&&(a.statusText=String(b.statusText));
Xb.call(this,a)}n($b,Xb);function L(a,b,c,d){return{left:a,top:b,width:c,height:d,bottom:b+d,right:a+c,x:a,y:b}}function ac(a){return L(Number(a.left),Number(a.top),Number(a.width),Number(a.height))}function bc(a){for(var b=-Infinity,c=Infinity,d=-Infinity,e=Infinity,g=0;g<arguments.length;g++){var h=arguments[g];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:L(b,d,c-b,e-d)}
function dc(a,b,c){return 0==b&&0==c||0==a.width&&0==a.height?a:L(a.left+b,a.top+c,a.width,a.height)};var ec;function fc(){return xb(this)?ec.call(this):L(0,0,0,0)}function gc(){var a=hc;if(!a.document)return!1;try{var b=a.document.createElement("div");return 0!==b.getBoundingClientRect().top}catch(c){return!0}};function ic(){var a=100;this.Qe=a;this.hc=this.gd=0;this.ta=Object.create(null)}ic.prototype.has=function(a){return!!this.ta[a]};ic.prototype.get=function(a){var b=this.ta[a];if(b)return b.access=++this.hc,b.payload};ic.prototype.put=function(a,b){this.has(a)||this.gd++;this.ta[a]={payload:b,access:this.hc};if(!(this.gd<=this.Qe)){C().warn("lru-cache","Trimming LRU cache");a=this.ta;var c=this.hc+1,d;for(d in a){var e=a[d].access;if(e<c){c=e;var g=d}}void 0!==g&&(delete a[g],this.gd--)}};var jc=G({c:!0,v:!0,a:!0,ad:!0,action:!0}),kc,lc,mc=/[?&]amp_js[^&]*/,nc=/[?&]amp_gsa[^&]*/,oc=/[?&]amp_r[^&]*/,pc=/[?&]amp_kit[^&]*/,qc=/[?&]usqp[^&]*/,rc=["javascript:","data:","vbscript:"];function M(a,b){kc||(kc=self.document.createElement("a"),lc=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new ic));return sc(kc,a,b?null:lc)}
function sc(a,b,c){if(c&&c.has(b))return c.get(b);a.href=b;a.protocol||(a.href=a.href);var d={href:a.href,protocol:a.protocol,host:a.host,hostname:a.hostname,port:"0"==a.port?"":a.port,pathname:a.pathname,search:a.search,hash:a.hash,origin:null};"/"!==d.pathname[0]&&(d.pathname="/"+d.pathname);if("http:"==d.protocol&&80==d.port||"https:"==d.protocol&&443==d.port)d.port="",d.host=d.hostname;var e=a.origin&&"null"!=a.origin?a.origin:"data:"!=d.protocol&&d.host?d.protocol+"//"+d.host:d.href;d.origin=
e;var g=u().test&&Object.freeze?Object.freeze(d):d;c&&c.put(b,g);return g}function tc(a,b,c){if(!b)return a;var d=a.split("#",2),e=d[0].split("?",2),g=e[0]+(e[1]?c?"?"+b+"&"+e[1]:"?"+e[1]+"&"+b:"?"+b);return g+=d[1]?"#"+d[1]:""}function uc(a,b){return tc(a,vc(b))}
function vc(a){var b=[],c;for(c in a){var d=a[c];if(null!=d)if(x(d))for(var e=0;e<d.length;e++){var g=d[e];b.push(encodeURIComponent(c)+"="+encodeURIComponent(g))}else b.push(encodeURIComponent(c)+"="+encodeURIComponent(d))}return b.join("&")}function wc(a){"string"==typeof a&&(a=M(a));var b;(b="https:"==a.protocol||"localhost"==a.hostname||"127.0.0.1"==a.hostname)||(a=a.hostname,b=a.length-10,b=0<=b&&a.indexOf(".localhost",b)==b);return b}
function xc(a,b,c){c=void 0===c?"source":c;E(null!=a,"%s %s must be available",b,c);var d=a;E(wc(d)||/^(\/\/)/.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);return d}function yc(a){var b=a.indexOf("#");return-1==b?a:a.substring(0,b)}function zc(a){"string"==typeof a&&(a=M(a));return Qa.cdnProxyRegex.test(a.origin)}function Ac(a){if(!a)return!0;"string"==typeof a&&(a=M(a));return!rc.includes(a.protocol)}
function Bc(a){var b=M(a),c=Cc(b.search);return b.origin+b.pathname+c+b.hash}function Cc(a){if(!a||"?"==a)return"";var b=a.replace(mc,"").replace(nc,"").replace(oc,"").replace(pc,"").replace(qc,"").replace(/^[?&]/,"");return b?"?"+b:""}
function Dc(a){"string"==typeof a&&(a=M(a));if(!zc(a))return a.href;var b=a.pathname.split("/");E(jc[b[1]],"Unknown path prefix in url %s",a.href);var c=b[2],d="s"==c?"https://"+decodeURIComponent(b[3]):"http://"+decodeURIComponent(c);E(0<d.indexOf("."),"Expected a . in origin %s",d);b.splice(1,"s"==c?3:2);return d+b.join("/")+Cc(a.search)+(a.hash||"")}
function Ec(a,b){Fc(b);var c=M(Dc(a.location.href)).origin;a=encodeURIComponent("__amp_source_origin")+"="+encodeURIComponent(c);return tc(b,a,void 0)}function Fc(a){var b=M(a),c=r(b.search);E(!("__amp_source_origin"in c),"Source origin is not allowed in %s",a)};function N(a,b){var c=Gc(a);return!!c[b]}
function Hc(a,b,c,d){var e=N(a,b),g=!(void 0!==c?!c:e);if(g!=e&&(Gc(a)[b]=g,!d)){var h=Ic(a);h[b]=g;var k=h,l=[],m;for(m in k)l.push((!1===k[m]?"-":"")+m);try{"localStorage"in a&&a.localStorage.setItem("amp-experiment-toggles",l.join(","))}catch(q){z().error("EXPERIMENTS","Failed to save experiments to localStorage.")}u().test||z().warn("EXPERIMENTS",'"%s" experiment %s for the domain "%s". See: https://amp.dev/documentation/guides-and-tutorials/learn/experimental',b,g?"enabled":"disabled",a.location.hostname)}return g}
function Gc(a){if(a.__AMP__EXPERIMENT_TOGGLES)return a.__AMP__EXPERIMENT_TOGGLES;a.__AMP__EXPERIMENT_TOGGLES=Object.create(null);var b=a.__AMP__EXPERIMENT_TOGGLES;if(a.AMP_CONFIG)for(var c in a.AMP_CONFIG){var d=a.AMP_CONFIG[c];"number"===typeof d&&0<=d&&1>=d&&(b[c]=Math.random()<d)}if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-doc-opt-in"])&&0<a.AMP_CONFIG["allow-doc-opt-in"].length){var e=a.AMP_CONFIG["allow-doc-opt-in"],g=a.document.head.querySelector('meta[name="amp-experiments-opt-in"]');
if(g){var h=g.getAttribute("content").split(",");for(c=0;c<h.length;c++)-1!=e.indexOf(h[c])&&(b[h[c]]=!0)}}Object.assign(b,Ic(a));if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-url-opt-in"])&&0<a.AMP_CONFIG["allow-url-opt-in"].length){c=a.AMP_CONFIG["allow-url-opt-in"];a=r(a.location.originalHash||a.location.hash);for(var k=0;k<c.length;k++){var l=a["e-"+c[k]];"1"==l&&(b[c[k]]=!0);"0"==l&&(b[c[k]]=!1)}}return b}
function Ic(a){var b="";try{"localStorage"in a&&(b=a.localStorage.getItem("amp-experiment-toggles"))}catch(e){C().warn("EXPERIMENTS","Failed to retrieve experiments from localStorage.")}var c=b?b.split(/\s*,\s*/g):[];a=Object.create(null);for(var d=0;d<c.length;d++)0!=c[d].length&&("-"==c[d][0]?a[c[d].substr(1)]=!1:a[c[d]]=!0);return a};var Jc={},Kc=(Jc["ampdoc-fie"]={isTrafficEligible:function(){return!0},branches:[["21065001"],["21065002"]]},Jc);
function Lc(a){if(!N(a,"ampdoc-fie"))return!1;a.__AMP_EXPERIMENT_BRANCHES=a.__AMP_EXPERIMENT_BRANCHES||{};for(var b in Kc)if(kb.call(Kc,b)&&!kb.call(a.__AMP_EXPERIMENT_BRANCHES,b))if(!Kc[b].isTrafficEligible||!Kc[b].isTrafficEligible(a))a.__AMP_EXPERIMENT_BRANCHES[b]=null;else if(!a.__AMP_EXPERIMENT_BRANCHES[b]&&N(a,b)){var c=Kc[b].branches;a.__AMP_EXPERIMENT_BRANCHES[b]=c[Math.floor(Math.random()*c.length)]||null}return"21065002"===(a.__AMP_EXPERIMENT_BRANCHES?a.__AMP_EXPERIMENT_BRANCHES["ampdoc-fie"]:
null)};function Mc(a,b){var c=a.ownerDocument.defaultView,d=Nc(c),e=c!=d,g=Lc(d);e&&!g?b=Oc(c,b)?Pc(c,b):null:(a=Qc(a),a=Rc(a),b=Oc(a,b)?Pc(a,b):null);return b}function Sc(a,b,c){var d=Nc(a);Oc(a,b);if(Lc(d)){var e=Qc(a.document);Tc(Rc(e),e,b,function(){return c},!0)}else Tc(a,a,b,function(){return c}),Pc(a,b)}function O(a,b,c,d){a=Nc(a);Tc(a,a,b,c);d&&Pc(a,b)}function P(a,b,c,d){var e=Qc(a),g=Rc(e);Tc(g,e,b,c);d&&Pc(g,b)}function Q(a,b){a=Nc(a);return Pc(a,b)}
function Uc(a,b){a=Nc(a);return Oc(a,b)?Pc(a,b):null}function R(a,b){var c=Qc(a);c=Rc(c);return Pc(c,b)}function Vc(a,b){return Wc(Rc(a),b)}function Nc(a){return a.__AMP_TOP||(a.__AMP_TOP=a)}function Xc(a,b){var c=(a.ownerDocument||a).defaultView;a=b||Nc(c);if(c&&c!=a&&Nc(c)==a)try{return c.frameElement}catch(d){}return null}function Qc(a){return a.nodeType?Q((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function Rc(a){a=Qc(a);return a.isSingleDoc()?a.win:a}
function Pc(a,b){Oc(a,b);var c=Yc(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 Tc(a,b,c,d,e){var g=Yc(a),h=g[c];h||(h=g[c]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null});if(e||!h.ctor&&!h.obj)h.ctor=d,h.context=b,h.resolve&&Pc(a,c)}function Zc(a,b){var c=Wc(a,b);if(c)return c;a=Yc(a);a[b]=$c();return a[b].promise}
function Wc(a,b){var c=Yc(a)[b];if(c){if(c.promise)return c.promise;Pc(a,b);return c.promise=Promise.resolve(c.obj)}return null}function Yc(a){var b=a.__AMP_SERVICES;b||(b=a.__AMP_SERVICES={});return b}function Oc(a,b){a=a.__AMP_SERVICES&&a.__AMP_SERVICES[b];return!(!a||!a.ctor&&!a.obj)}function $c(){var a=new H,b=a.promise,c=a.resolve;a=a.reject;b.catch(function(){});return{obj:null,promise:b,resolve:c,reject:a,context:null,ctor:null}};function ad(a){var b=Wc(a,"share-tracking");return b?b:bd(a,"share-tracking","amp-share-tracking",!0)}function cd(a,b,c){return dd(a,b,c,void 0).then(function(a){return E(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.",b,c,c,c)})}
function dd(a,b,c,d){var e=Vc(a,b);if(e)return e;var g=Qc(a);return g.waitForBodyOpen().then(function(){return ed(g.win,c,g.win.document.head)}).then(function(){if(d)var e=Vc(a,b);else e=g.win,e=e.__AMP_EXTENDED_ELEMENTS&&e.__AMP_EXTENDED_ELEMENTS[c]?Zc(Rc(a),b):null;return e})}function fd(a){var b=Mc(a,"bind");if(b)return Promise.resolve(b);b=a.ownerDocument.defaultView;var c=Nc(b);return b!==c?bd(b,"bind","amp-bind"):dd(a,"bind","amp-bind")}
function gd(a){if(!a)return[];for(var b={},c=a.querySelectorAll("script[custom-element],script[custom-template]"),d=0;d<c.length;d++){var e=c[d];e=e.getAttribute("custom-element")||e.getAttribute("custom-template");b[e]=!0}return Object.keys(b)}function hd(a){var b="amp-form";return a.waitForBodyOpen().then(function(){var c=a.getHeadNode(),d=b;return gd(c).includes(d)})}function ed(a,b,c){if(!gd(c).includes(b))return v();var d=Q(a,"extensions");return d.waitForExtension(a,b)}
function bd(a,b,c,d){return ub(a.document).then(function(){return ed(a,c,a.document.head)}).then(function(){return d?Wc(a,b):a.__AMP_EXTENDED_ELEMENTS&&a.__AMP_EXTENDED_ELEMENTS[c]?Zc(a,b):null})};function id(a){return Q(a,"ampdoc")}function jd(a){return Q(a,"extensions")}function S(a){return R(a,"mutator")}function kd(a){return Q(a,"platform")}function ld(a){return R(a,"resources")}function U(a){return Q(a,"timer")}function md(a){return R(a,"viewer")}function nd(a){return Q(a,"vsync")}function od(a){return R(a,"viewport")};function pd(a,b){this.Pe=a;this.Va=Object.assign({},{root:null,rootMargin:"0px 0px 0px 0px"},b);if((a=this.Va.root)&&1!==a.nodeType)throw Error("root must be an Element");this.ma=[];this.J=null;pd._upgraders.push(this.Uf.bind(this))}f=pd.prototype;f.disconnect=function(){this.J?this.J.disconnect():this.ma.length=0};f.takeRecords=function(){return this.J?this.J.takeRecords():[]};f.observe=function(a){this.J?this.J.observe(a):-1==this.ma.indexOf(a)&&this.ma.push(a)};
f.unobserve=function(a){this.J?this.J.unobserve(a):(a=this.ma.indexOf(a),-1!=a&&this.ma.splice(a,1))};f.Uf=function(a){var b=new a(this.Pe,this.Va);this.J=b;this.ma.forEach(function(a){return b.observe(a)});this.ma=null};
ia.Object.defineProperties(pd.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this.J?this.J.root:this.Va.root||null}},rootMargin:{configurable:!0,enumerable:!0,get:function(){return this.J?this.J.rootMargin:this.Va.rootMargin}},thresholds:{configurable:!0,enumerable:!0,get:function(){return this.J?this.J.thresholds:[].concat(this.Va.threshold||0)}}});pd._upgraders=[];function qd(){var a=rd;!a.IntersectionObserverEntry||"isIntersecting"in a.IntersectionObserverEntry.prototype||Object.defineProperty(a.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get:function(){return 0<this.intersectionRatio}})};function sd(a){return(a=Number(a))?0<a?1:-1:a};var td=Object.prototype.hasOwnProperty;function ud(a,b){if(null==a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var g in e)td.call(e,g)&&(c[g]=e[g])}return c};function zd(a){return Object.keys(a).map(function(b){return a[b]})};function Ad(a){if(!(this instanceof Ad))throw new TypeError("Constructor Promise requires `new`");if(!Bd(a))throw new TypeError("Must pass resolver function");this._state=Cd;this._value=[];this._isChainEnd=!0;Dd(this,Ed(this,Fd),Ed(this,Gd),{then:a})}Ad.prototype.then=function(a,b){a=Bd(a)?a:void 0;b=Bd(b)?b:void 0;if(a||b)this._isChainEnd=!1;return this._state(this._value,a,b)};Ad.prototype.catch=function(a){return this.then(void 0,a)};
function Hd(a){var b=this;return a===Object(a)&&a instanceof this?a:new b(function(b){b(a)})}function Id(a){return new this(function(b,c){c(a)})}function Jd(a){var b=this;return new b(function(c,d){var e=a.length,g=Array(e);if(0===e)return c(g);Kd(a,function(a,k){b.resolve(a).then(function(a){g[k]=a;0===--e&&c(g)},d)})})}function Ld(a){var b=this;return new b(function(c,d){for(var e=0;e<a.length;e++)b.resolve(a[e]).then(c,d)})}
function Fd(a,b,c,d){if(!b)return d&&(b=d.promise,b._state=Fd,b._value=a),this;d||(d=new Md(this.constructor));Nd(Od(d,b,a));return d.promise}function Gd(a,b,c,d){if(!c)return d&&(b=d.promise,b._state=Gd,b._value=a),this;d||(d=new Md(this.constructor));Nd(Od(d,c,a));return d.promise}function Cd(a,b,c,d){if(!d){if(!b&&!c)return this;d=new Md(this.constructor)}a.push({deferred:d,onFulfilled:b||d.resolve,onRejected:c||d.reject});return d.promise}
function Md(a){var b=this;this.promise=new a(function(a,d){b.resolve=a;b.reject=d});return b}function Pd(a,b,c,d){var e=a._value;a._state=b;a._value=c;d&&b===Cd&&d._state(c,void 0,void 0,{promise:a,resolve:void 0,reject:void 0});for(var g=0;g<e.length;g++){var h=e[g];a._state(c,h.onFulfilled,h.onRejected,h.deferred)}e.length=0;b===Gd&&a._isChainEnd&&setTimeout(function(){if(a._isChainEnd)throw c;},0)}function Ed(a,b){return function(c){Pd(a,b,c)}}function Qd(){}
function Bd(a){return"function"===typeof a}function Kd(a,b){for(var c=0;c<a.length;c++)b(a[c],c)}function Od(a,b,c){var d=a.promise,e=a.resolve,g=a.reject;return function(){try{var a=b(c);Dd(d,e,g,a,a)}catch(k){g(k)}}}
var Nd=function(){function a(){for(var a=0;a<e;a++){var b=d[a];d[a]=null;b()}e=0}function b(a){0===e&&c();d[e++]=a}if("undefined"!==typeof window&&window.postMessage){window.addEventListener("message",a);var c=function(){window.postMessage("macro-task","*")}}else c=function(){setTimeout(a,0)};var d=Array(16),e=0;return b}();
function Dd(a,b,c,d,e){var g=c,h;try{if(d===a)throw new TypeError("Cannot fulfill promise with itself");var k=d===Object(d);if(k&&d instanceof a.constructor)Pd(a,d._state,d._value,d);else if(k&&(h=d.then)&&Bd(h)){var l=function(d){l=g=Qd;Dd(a,b,c,d,d)};g=function(a){l=g=Qd;c(a)};h.call(e,function(a){l(a)},function(a){g(a)})}else b(d)}catch(m){g(m)}};(function(a){a.fetch||(Object.defineProperty(a,"fetch",{value:Ub,writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(a,"Response",{value:$b,writable:!0,enumerable:!1,configurable:!0}))})(self);(function(a){a.Math.sign||a.Object.defineProperty(a.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:sd})})(self);(function(a){a.Object.assign||a.Object.defineProperty(a.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:ud})})(self);
(function(a){a.Object.values||a.Object.defineProperty(a.Object,"values",{configurable:!0,writable:!0,value:zd})})(self);(function(a){a.Promise||(a.Promise=Ad,Ad.default&&(a.Promise=Ad.default),a.Promise.resolve=Hd,a.Promise.reject=Id,a.Promise.all=Jd,a.Promise.race=Ld)})(self);(function(a){a.Array.prototype.includes||a.Object.defineProperty(Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:ma})})(self);
if(self.document){Ha();var Rd=self,Sd=Rd.HTMLDocument||Rd.Document;Sd&&!Sd.prototype.contains&&Rd.Object.defineProperty(Sd.prototype,"contains",{enumerable:!1,configurable:!0,writable:!0,value:Ia});var hc=self;gc()&&(ec=Element.prototype.getBoundingClientRect,hc.Object.defineProperty(hc.Element.prototype,"getBoundingClientRect",{value:fc}));var Td=function(){},Da=self,Ud=Da.document,Vd,Wd=Da.customElements;Vd=!!(Wd&&Wd.define&&Wd.get&&Wd.whenDefined);var Xd;if(!(Xd=!Ud)){var Yd;if(Yd=Vd)Yd=-1===Da.HTMLElement.toString().indexOf("[native code]");
Xd=Yd}if(!Xd){var Zd=!0,$d=!1;if(Td&&Vd)try{var ae=Da.Reflect,be=Object.create(Td.prototype);Function.call.call(Td,be);$d=!(!ae||!ae.construct)}catch(a){Zd=!1}$d?Fa():Zd&&Ba()}if(u().localDev||u().test){var rd=self;rd.IntersectionObserver||(rd.IntersectionObserver=pd);qd()}};var ce=null,de=["gclid","gclsrc"];function ee(){return E(ce,"E#19457 trackImpressionPromise")}function fe(a){return a.whenReady().then(function(){return!!a.getBody().querySelector("amp-analytics[type=googleanalytics]")})};function ge(){this.H=[]}ge.prototype.peek=function(){var a=this.H.length;return a?this.H[a-1].item:null};ge.prototype.enqueue=function(a,b){if(isNaN(b))throw Error("Priority must not be NaN.");for(var c=b,d=-1,e=0,g=this.H.length;e<=g;){d=Math.floor((e+g)/2);if(d===this.H.length)break;if(this.H[d].priority<c)e=d+1;else if(0<d&&this.H[d-1].priority>=c)g=d-1;else break}this.H.splice(d,0,{item:a,priority:b})};ge.prototype.forEach=function(a){for(var b=this.H.length;b--;)a(this.H[b].item)};
ge.prototype.dequeue=function(){return this.H.length?this.H.pop().item:null};ia.Object.defineProperties(ge.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.H.length}}});var he=["_top","_blank"];
function ie(a,b){var c=this;this.ampdoc=a;this.W=b||a.getRootNode();this.bc=od(this.ampdoc);this.A=md(this.ampdoc);this.ef=R(this.ampdoc,"history");this.V=kd(this.ampdoc.win);this.mf=this.V.isIos()&&this.V.isSafari();this.kf=Nb(this.ampdoc.win)&&this.A.isOvertakeHistory();this.Ab=this.W!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent();this.lf="inabox"==u(this.ampdoc.win).runtime;this.se=this.W.nodeType==Node.DOCUMENT_NODE?this.W.documentElement:this.W;this.Ja=this.cf.bind(this);this.W.addEventListener("click",
this.Ja);this.W.addEventListener("contextmenu",this.Ja);this.sd=!1;fe(this.ampdoc).then(function(a){c.sd=a});this.Yd=this.Zd=!1;Promise.all([this.A.isTrustedViewer(),this.A.getViewerOrigin()]).then(function(a){c.Zd=a[0];a=a[1];"string"==typeof a&&(a=M(a));a=Qa.localhostRegex.test(a.origin);c.Yd=a});this.fc=null;this.rd=new ge;this.ke=new ge}ie.installInEmbedWindow=function(a,b){Sc(a,"navigation",new ie(b,a.document))};f=ie.prototype;
f.cleanup=function(){this.Ja&&(this.W.removeEventListener("click",this.Ja),this.W.removeEventListener("contextmenu",this.Ja))};f.openWindow=function(a,b,c,d){var e="";!this.V.isIos()&&this.V.isChrome()||d||(e+="noopener");var g=Lb(a,b,c,e);g&&!d&&(g.opener=null)};
f.navigateTo=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.target?"_top":e.target;e=void 0===e.opener?!1:e.opener;b=je(this,b);var g=Mc(this.se,"url");if(g.isProtocolValid(b))if(E(he.includes(d),"Target '"+d+"' not supported."),b=g.getSourceUrl(b),"_blank"==d)this.openWindow(a,b,d,e);else{if(c&&(this.fc||(this.fc=ke(this)),this.fc.includes(c)&&this.navigateToAmpUrl(b,c)))return;a.top.location.href=b}else z().error("navigation","Cannot navigate to invalid protocol: "+b)};
f.navigateToAmpUrl=function(a,b){return this.A.hasCapability("a2a")?(this.A.sendMessage("a2aNavigate",G({url:a,requestedBy:b})),!0):!1};function ke(a){return(a=a.W.querySelector('meta[name="amp-to-amp-navigation"]'))&&a.hasAttribute("content")?a.getAttribute("content").split(",").map(function(a){return a.trim()}):[]}
f.cf=function(a){if(!a.defaultPrevented){var b=Cb(a.__AMP_CUSTOM_LINKER_TARGET__||a.target,"A");if(b&&b.href)if("click"==a.type){le(this,b);var c=me(this,b.href),d;if(d=!ne(this,a,b,c)){if(this.kf){d=b.ownerDocument.defaultView;var e=b.href,g=c.protocol;"ftp:"==g?(Lb(d,e,"_blank"),a.preventDefault(),d=!0):(g=/^(https?|mailto):$/.test(g),this.mf&&!g?(Lb(d,e,"_top"),a.preventDefault(),d=!0):d=!1)}else d=!1;d=!d}if(d)if(d=u().test&&!this.Ab?this.ampdoc.win.location.href:"",d=me(this,d),oe(c)!=oe(d)&&
(pe(this,b,a),c=me(this,b.href)),e=c,c=oe(e),g=oe(d),e.hash&&c==g)qe(this,a,e,d);else{e=(b.getAttribute("target")||"").toLowerCase();(this.Ab||this.lf)&&"_top"!=e&&"_blank"!=e&&(e="_blank",b.setAttribute("target",e));g=this.ampdoc.win;var h=kd(g);b=md(b);d.search&&h.isSafari()&&13<=h.getMajorVersion()&&b.isProxyOrigin()&&b.isEmbedded()&&re(g,d,e);this.viewerInterceptsNavigation(c,"intercept_click")&&a.preventDefault()}}else"contextmenu"==a.type&&(le(this,b),pe(this,b,a))}};
function pe(a,b,c){a.rd.forEach(function(a){a(b,c)})}function je(a,b){a.ke.forEach(function(a){b=a(b)});return b}
function le(a,b){var c=null;if(a.sd&&!a.Ab){a=M(a.ampdoc.win.location.href);var d=r(a.search);a=[];for(var e=0;e<de.length;e++){var g=de[e];"undefined"!==typeof d[g]&&a.push(g)}d=b.getAttribute("data-amp-addparams");e=b.href;d&&(e=uc(e,r(d)));d=M(e);d=r(d.search);for(e=a.length-1;0<=e;e--)"undefined"!==typeof d[a[e]]&&a.splice(e,1);d="";for(e=0;e<a.length;e++)g=a[e],d+=0==e?g+"=QUERY_PARAM("+g+")":"&"+g+"=QUERY_PARAM("+g+")";c=d}var h=Mc(b,"url-replace");h.maybeExpandLink(b,c)}
function ne(a,b,c,d){if(!c.hasAttribute("rel"))return!1;var e=c.getAttribute("rel").split(" ").map(function(a){return a.trim()});return e.includes("amphtml")?a.navigateToAmpUrl(d.href,"<a rel=amphtml>")?(b.preventDefault(),!0):!1:!1}
function re(a,b,c){function d(){var b=a.location.href;b==g?(C().info("navigation","Restored iframe URL with query string:",e),a.history.replaceState(null,"",e)):C().error("navigation","Unexpected iframe URL change:",b,g)}C().info("navigation","Removing iframe query string before navigation:",b.search);var e=b.href,g=""+b.origin+b.pathname+b.hash;a.history.replaceState(null,"",g);"_blank"===c?a.setTimeout(d,0):a.addEventListener("pageshow",function l(b){b.persisted&&(d(),a.removeEventListener("pageshow",
l))})}function qe(a,b,c,d){if(kd(a.ampdoc.win).isIe()){var e=c.hash.substring(1),g=a.ampdoc.getElementById(e);g&&(/^(?:a|select|input|button|textarea)$/i.test(g.tagName)||(g.tabIndex=-1),Mb(g))}b.preventDefault();if(!a.Ab){var h=c.hash.slice(1),k=null;if(h){var l=String(h).replace(mb,nb);k=a.W.getElementById(h)||a.W.querySelector('a[name="'+l+'"]')}c.hash!=d.hash?a.ef.replaceStateForTarget(c.hash).then(function(){se(a,k,h)}):se(a,k,h)}}f.registerAnchorMutator=function(a,b){this.rd.enqueue(a,b)};
f.registerNavigateToMutator=function(a,b){this.ke.enqueue(a,b)};function se(a,b,c){b?(a.bc.scrollIntoView(b),U(a.ampdoc.win).delay(function(){return a.bc.scrollIntoView(b)},1)):C().warn("navigation","failed to find element with id="+c+" or a[name="+c+"]")}function me(a,b){return Mc(a.se,"url").parse(b)}
f.viewerInterceptsNavigation=function(a,b){var c=this.A.hasCapability("interceptNavigation"),d=this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");if(!c||!d||!this.Zd&&!this.Yd)return!1;this.A.sendMessage("navigateTo",G({url:a,requestedBy:b}));return!0};
function te(a,b){if((a=Cb(b.target,"A"))&&a.href){var c=a.getAttribute("data-a4a-orig-href")||a.getAttribute("href");if(c){var d={CLICK_X:function(){return b.pageX},CLICK_Y:function(){return b.pageY}},e=Mc(a,"url-replace").expandUrlSync(c,d,void 0,{CLICK_X:!0,CLICK_Y:!0});e!=c&&(a.getAttribute("data-a4a-orig-href")||a.setAttribute("data-a4a-orig-href",c),a.setAttribute("href",e))}}}function oe(a){return""+a.origin+a.pathname+a.search};var ue;function ve(a){a=a.ownerDocument||a;ue&&ue.ownerDocument===a||(ue=a.createElement("div"));return we}function we(a){var b=ue;b.innerHTML=a[0];a=b.firstElementChild;b.removeChild(a);return a};var xe,ye="Webkit webkit Moz moz ms O o".split(" ");function ze(a,b,c){if(K(b,"--"))return b;xe||(xe=F());var d=xe[b];if(!d||c){d=b;if(void 0===a[b]){var e=b.charAt(0).toUpperCase()+b.slice(1);a:{for(var g=0;g<ye.length;g++){var h=ye[g]+e;if(void 0!==a[h]){e=h;break a}}e=""}var k=e;void 0!==a[k]&&(d=k)}c||(xe[b]=d)}return d}function Ae(a,b){a=a.style;for(var c in b)a.setProperty(ze(a,c),b[c].toString(),"important")}
function V(a,b,c,d){if(b=ze(a.style,b,void 0)){var e=d?c+d:c;K(b,"--")?a.style.setProperty(b,e):a.style[b]=e}}function Be(a,b){for(var c in b)V(a,c,b[c])}function Ce(a,b){void 0===b&&(b=a.hasAttribute("hidden"));b?a.removeAttribute("hidden"):a.setAttribute("hidden","")}function De(a,b){for(var c=0;c<b.length;c++)V(a,b[c],null)};var Ee=['<i-amphtml-sizer class=i-amphtml-sizer><img alt="" role=presentation aria-hidden=true class=i-amphtml-intrinsic-sizer></i-amphtml-sizer>'],Fe={NODISPLAY:"nodisplay",FIXED:"fixed",FIXED_HEIGHT:"fixed-height",RESPONSIVE:"responsive",CONTAINER:"container",FILL:"fill",FLEX_ITEM:"flex-item",FLUID:"fluid",INTRINSIC:"intrinsic"},Ge={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}},He={"AMP-AD":!0,
"AMP-ANIM":!0,"AMP-EMBED":!0,"AMP-FACEBOOK":!0,"AMP-FACEBOOK-COMMENTS":!0,"AMP-FACEBOOK-PAGE":!0,"AMP-GOOGLE-DOCUMENT-EMBED":!0,"AMP-IFRAME":!0,"AMP-IMG":!0,"AMP-INSTAGRAM":!0,"AMP-LIST":!0,"AMP-PINTEREST":!0,"AMP-PLAYBUZZ":!0,"AMP-TWITTER":!0},Ie=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function Je(a){for(var b in Fe)if(Fe[b]==a)return Fe[b]}
function Ke(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a}function Le(a){if("number"==typeof a)return a+"px";if(a&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(a))return/^\d+(\.\d+)?$/.test(a)?a+"px":a}function Me(a){E(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(a),"Invalid length value: %s",a);return a}
function Ne(a){E(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|%)$/.test(a),"Invalid length or percent value: %s",a);return a}function Oe(a){Me(a);var b=E(a.match(/[a-z]+/i),"Failed to read units from %s",a);return b[0]}function Pe(a){a=parseFloat(a);return Ma(a)?a:void 0};var Qe;function Re(a,b,c,d){var e=a,g=c;var h=function(a){try{return g(a)}catch(q){throw self.__AMP_REPORT_ERROR(q),q;}};var k=Se(),l=!1;d&&(l=d.capture);e.addEventListener(b,h,k?d:l);return function(){e&&e.removeEventListener(b,h,k?d:l);h=e=g=null}}function Se(){if(void 0!==Qe)return Qe;Qe=!1;try{var a={get capture(){Qe=!0}};self.addEventListener("test-options",null,a);self.removeEventListener("test-options",null,a)}catch(b){}return Qe};function Te(a){var b={detail:null};Object.assign(b,{bubbles:!0});if("function"==typeof a.CustomEvent)return new a.CustomEvent("amp-ini-load",b);a=a.document.createEvent("CustomEvent");a.initCustomEvent("amp-ini-load",!!b.bubbles,!!b.cancelable,null);return a}function Ue(a,b,c){return Re(a,b,c,void 0)}function Ve(a,b,c,d){var e=c,g=Re(a,b,function(a){try{e(a)}finally{e=null,g()}},d);return g}function We(a,b){var c,d=new Promise(function(b){c=Ve(a,"click",b,void 0)});d.then(c,c);b&&b(c);return d}
function Xe(a){return!!(a.complete||"complete"==a.readyState||Ye(a)&&0<a.readyState||a.document&&"complete"==a.document.readyState)}
function Ze(a){var b,c;if(Xe(a))return Promise.resolve(a);var d=Ye(a);if(d&&a.__AMP_MEDIA_LOAD_FAILURE_SRC===a.currentSrc)return Promise.reject(a);var e=new Promise(function(e,h){b=d?Ve(a,"loadedmetadata",e,{capture:!0}):Ve(a,"load",e);if(a.tagName){var g=a;if(d&&!a.hasAttribute("src")&&(g=Fb(a,function(a){return"SOURCE"===a.tagName}),!g))return h(Error("Media has no source."));c=Ve(g,"error",h)}});return e.then(function(){c&&c();return a},function(){b&&b();Ye(a)&&(a.__AMP_MEDIA_LOAD_FAILURE_SRC=
a.currentSrc||!0);var c=a;c&&c.src&&(c=c.src);throw z().createError("Failed to load:",c);})}function Ye(a){return"AUDIO"===a.tagName||"VIDEO"===a.tagName};function $e(a){this.element=a;this.layout_="nodisplay";this.inViewport_=!1;this.win=a.ownerDocument.defaultView;this.defaultActionAlias_=this.actionMap_=null}f=$e.prototype;f.signals=function(){return this.element.signals()};f.getDefaultActionAlias=function(){return this.defaultActionAlias_};f.getLayoutPriority=function(){return 0};f.updateLayoutPriority=function(a){this.element.getResources().updateLayoutPriority(this.element,a)};f.getLayout=function(){return this.layout_};f.getLayoutBox=function(){return this.element.getLayoutBox()};
f.getPageLayoutBox=function(){return this.element.getPageLayoutBox()};f.getWin=function(){return this.win};f.getAmpDoc=function(){return this.element.getAmpDoc()};f.getVsync=function(){return nd(this.win)};f.getConsentPolicy=function(){var a=null;this.element.hasAttribute("data-block-on-consent")&&(a=this.element.getAttribute("data-block-on-consent")||"default");return a};f.isLayoutSupported=function(a){return"nodisplay"==a};f.isAlwaysFixed=function(){return!1};f.isInViewport=function(){return this.inViewport_};
f.upgradeCallback=function(){return null};f.createdCallback=function(){};f.firstAttachedCallback=function(){};f.buildCallback=function(){};f.preconnectCallback=function(){};f.detachedCallback=function(){};f.prerenderAllowed=function(){return!1};f.isBuildRenderBlocking=function(){return!1};f.createPlaceholderCallback=function(){return null};f.createLoaderLogoCallback=function(){return{}};f.renderOutsideViewport=function(){return"inabox"==u(this.win).runtime||3};f.idleRenderOutsideViewport=function(){return!1};
f.isRelayoutNeeded=function(){return!1};f.layoutCallback=function(){return v()};f.firstLayoutCompleted=function(){this.togglePlaceholder(!1)};f.viewportCallback=function(){};f.pauseCallback=function(){};f.resumeCallback=function(){};f.unlayoutCallback=function(){return!1};f.unlayoutOnPause=function(){return!1};f.reconstructWhenReparented=function(){return!0};f.loadPromise=function(a){return Ze(a)};function af(a){a.actionMap_||(a.actionMap_=a.win.Object.create(null))}
f.registerAction=function(a,b,c){c=void 0===c?2:c;af(this);this.actionMap_[a]={handler:b,minTrust:c}};f.registerDefaultAction=function(a,b,c){b=void 0===b?"activate":b;this.registerAction(b,a,void 0===c?2:c);this.defaultActionAlias_=b};f.executeAction=function(a){var b=a.method;"activate"===b&&(b=this.defaultActionAlias_||b);af(this);var c=this.actionMap_[b];E(c,"Method not found: "+b+" in "+this.element.tagName);b=c.handler;if(a.satisfiesTrust(c.minTrust))return b(a)};
f.propagateAttributes=function(a,b,c){a=x(a)?a:[a];for(var d=0;d<a.length;d++){var e=a[d],g=this.element.getAttribute(e);null!==g?b.setAttribute(e,g):c&&b.removeAttribute(e)}};f.propagateDataset=function(a){for(var b in a.dataset)b in this.element.dataset||delete a.dataset[b];for(var c in this.element.dataset)a.dataset[c]!==this.element.dataset[c]&&(a.dataset[c]=this.element.dataset[c])};
f.forwardEvents=function(a,b){var c=this,d=(x(a)?a:[a]).map(function(a){return Ue(b,a,function(b){c.element.dispatchCustomEvent(a,b.data||{})})});return function(){return d.forEach(function(a){return a()})}};f.getPlaceholder=function(){return this.element.getPlaceholder()};f.togglePlaceholder=function(a){this.element.togglePlaceholder(a)};f.getFallback=function(){return this.element.getFallback()};f.toggleFallback=function(a){this.element.toggleFallback(a)};f.toggleLoading=function(a){this.element.toggleLoading(a)};
f.isLoadingReused=function(){return!1};f.getOverflowElement=function(){return this.element.getOverflowElement()};f.renderStarted=function(){this.element.renderStarted()};f.getRealChildNodes=function(){return this.element.getRealChildNodes()};f.getRealChildren=function(){return this.element.getRealChildren()};f.applyFillContent=function(a,b){a.classList.add("i-amphtml-fill-content");b&&a.classList.add("i-amphtml-replaced-content")};f.getViewport=function(){return od(this.getAmpDoc())};
f.getIntersectionElementLayoutBox=function(){return this.getLayoutBox()};f.collapse=function(){S(this.getAmpDoc()).collapseElement(this.element)};f.attemptCollapse=function(){return S(this.getAmpDoc()).attemptCollapse(this.element)};f.forceChangeHeight=function(a){S(this.getAmpDoc()).forceChangeSize(this.element,a,void 0)};f.attemptChangeHeight=function(a){return S(this.getAmpDoc()).requestChangeSize(this.element,a,void 0)};
f.attemptChangeSize=function(a,b,c){return S(this.getAmpDoc()).requestChangeSize(this.element,a,b,void 0,c)};f.measureElement=function(a){return S(this.getAmpDoc()).measureElement(a)};f.mutateElement=function(a,b){return this.measureMutateElement(null,a,b)};f.measureMutateElement=function(a,b,c){return S(this.getAmpDoc()).measureMutateElement(c||this.element,a,b)};f.mutateElementSkipRemeasure=function(a){return S(this.getAmpDoc()).mutateElement(this.element,a,!0)};f.collapsedCallback=function(){};
f.expand=function(){S(this.getAmpDoc()).expandElement(this.element)};f.expandedCallback=function(){};f.mutatedAttributesCallback=function(){};f.onLayoutMeasure=function(){};f.onMeasureChanged=function(){};f.user=function(){return z(this.element)};function bf(a,b){this.element=a;this.win=a.ownerDocument.defaultView||b;this.A=md(this.element);this.compileCallback()}f=bf.prototype;f.compileCallback=function(){};f.setHtml=function(){throw Error("Not implemented");};f.render=function(){throw Error("Not implemented");};f.unwrap=function(a){for(var b=null,c=a.firstChild;null!=c;c=c.nextSibling)if(3==c.nodeType){if(c.textContent.trim()){b=null;break}}else if(8!=c.nodeType)if(1==c.nodeType)if(b){b=null;break}else b=c;else b=null;return b||a};
f.viewerCanRenderTemplates=function(){return this.A.hasCapability("viewerRenderTemplate")};function cf(a){this.h=a;this.jb={};this.jd={}}f=cf.prototype;f.setHtmlForTemplate=function(a,b){return df(this,a).then(function(a){return a.setHtml(b)})};f.renderTemplate=function(a,b){return df(this,a).then(function(a){return a.render(b)})};f.renderTemplateArray=function(a,b){return 0==b.length?Promise.resolve([]):df(this,a).then(function(a){return b.map(function(b){return a.render(b)})})};
f.findAndRenderTemplate=function(a,b,c){return this.renderTemplate(this.findTemplate(a,c),b)};f.findAndSetHtmlForTemplate=function(a,b,c){return this.setHtmlForTemplate(this.findTemplate(a,c),b)};f.findAndRenderTemplateArray=function(a,b,c){return this.renderTemplateArray(this.findTemplate(a,c),b)};f.hasTemplate=function(a,b){return!!this.maybeFindTemplate(a,b)};
f.findTemplate=function(a,b){b=this.maybeFindTemplate(a,b);E(b,"Template not found for %s",a);var c=b.tagName;E("TEMPLATE"==c||"SCRIPT"==c&&"text/plain"===b.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag');return b};f.maybeFindTemplate=function(a,b){var c=a.getAttribute("template");return c?yb(a).getElementById(c):b?Ib(a,b):a.querySelector('template, script[type="text/plain"]')};
function df(a,b){var c=b.__AMP_IMPL_;if(c)return Promise.resolve(c);c="";var d=b.tagName;"TEMPLATE"==d?c=b.getAttribute("type"):"SCRIPT"==d&&(c=b.getAttribute("template"));E(c,"Type must be specified: %s",b);if(d=b.__AMP_WAIT_)return d;d=ef(a,c).then(function(c){var d=b.__AMP_IMPL_=new c(b,a.h);delete b.__AMP_WAIT_;return d});return b.__AMP_WAIT_=d}function ef(a,b){if(a.jb[b])return a.jb[b];var c=new H,d=c.promise;c=c.resolve;a.jb[b]=d;a.jd[b]=c;return d};var ff={PRERENDER:"prerender",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"};/*

 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
 Use of this source code is governed by a BSD-style
 license that can be found in the LICENSE file or at
 https://developers.google.com/open-source/licenses/bsd */
var gf;function hf(){var a;if(void 0===gf){var b=a||Element;gf=b.prototype.attachShadow?"v1":b.prototype.createShadowRoot?"v0":"none"}return gf};var jf={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]",variant:"amp-experiment","amp-story-render":"amp-story[standalone]"};function kf(a){var b=lf(a).map(function(b){var c=Zc(a,b).then(function(a){return a&&mf(a)?a.whenReady().then(function(){return a}):a});return U(a).timeoutPromise(3E3,c,"Render timeout waiting for service "+b+" to be ready.")});return Promise.all(b)}function mf(a){var b=a;return"function"==typeof b.whenReady}
function lf(a){var b=a.document;return Object.keys(jf).filter(function(a){return b.querySelector(jf[a])})};function nf(a,b,c,d,e){var g=a.getHeadNode(),h=of(g,pf(g,b),d||!1,e||null);if(c){var k=a.getRootNode();if(qf(k,h))c(h);else var l=setInterval(function(){qf(k,h)&&(clearInterval(l),c(h))},4)}}
function of(a,b,c,d){var e=a.__AMP_CSS_SM;e||(e=a.__AMP_CSS_SM=F());var g=!c&&d&&"amp-custom"!=d&&"amp-keyframes"!=d,h=c?"amp-runtime":g?"amp-extension="+d:null;if(h){var k=rf(a,e,h);if(k)return k.textContent!==b&&(k.textContent=b),k}var l=(a.ownerDocument||a).createElement("style");l.textContent=b;var m=null;c?l.setAttribute("amp-runtime",""):g?(l.setAttribute("amp-extension",d||""),m=rf(a,e,"amp-runtime")):(d&&l.setAttribute(d,""),m=a.lastChild);b=m;(b=void 0===b?null:b)?a.insertBefore(l,b.nextSibling):
a.insertBefore(l,a.firstChild);h&&(e[h]=l);return l}function rf(a,b,c){return b[c]?b[c]:(a=a.querySelector("style["+c+"]"))?b[c]=a:null}function pf(a,b){return(a=a.__AMP_CSS_TR)?a(b):b}var sf=!1;
function tf(){var a=self.document,b=a.defaultView;ub(a).then(function(){return kf(b)}).catch(function(a){gb(a);return[]}).then(function(c){sf=!0;uf(a);Qc(a).signals().signal("render-start");if(0<c.length){var d=ld(a.documentElement);d.schedulePass(1,!0)}try{var e=Q(b,"performance");e.tick("mbv");e.flush()}catch(g){}})}function vf(a){sf||(sf=!0,uf(a))}function uf(a){Be(a.body,{opacity:1,visibility:"visible",animation:"none"})}
function qf(a,b){var c=a.styleSheets;for(a=0;a<c.length;a++){var d=c[a];if(d.ownerNode==b)return!0}return!1};var wf={composed:!1};function xf(a){return"none"!=hf()&&Node.prototype.getRootNode?a.getRootNode(wf):Bb(a,function(a){return zb(a)})};var yf="[hidden]{display:none!important}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important}[layout=nodisplay]:not(.i-amphtml-element){display:none!important}.i-amphtml-layout-fixed,[layout=fixed][width][height]:not(.i-amphtml-layout-fixed){display:inline-block;position:relative}.i-amphtml-layout-responsive,[layout=responsive][width][height]:not(.i-amphtml-layout-responsive),[width][height][sizes]:not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic{display:inline-block;position:relative;max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,[layout=container],[layout=fixed-height][height]{display:block;position:relative}.i-amphtml-layout-fill,[layout=fill]:not(.i-amphtml-layout-fill){display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-ms-flex:1 1 auto;flex:1 1 auto}.i-amphtml-layout-fluid{position:relative}.i-amphtml-layout-size-defined{overflow:hidden!important}.i-amphtml-layout-awaiting-size{position:absolute!important;top:auto!important;bottom:auto!important}i-amphtml-sizer{display:block!important}.i-amphtml-blurry-placeholder,.i-amphtml-fill-content{display:block;height:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%;width:0;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-layout-intrinsic .i-amphtml-sizer{max-width:100%}.i-amphtml-replaced-content,.i-amphtml-screen-reader{padding:0!important;border:none!important}.i-amphtml-screen-reader{position:fixed!important;top:0px!important;left:0px!important;width:4px!important;height:4px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:8px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:12px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:16px!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[layout]:not(.i-amphtml-element){position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*,[layout]:not([layout=container]):not(.i-amphtml-element)>*{display:none}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder]{display:block}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback],.i-amphtml-layout-container>[placeholder].amp-hidden,.i-amphtml-layout-container>[placeholder].hidden{display:none}.i-amphtml-layout-size-defined>[fallback],.i-amphtml-layout-size-defined>[placeholder]{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none!important}.i-amphtml-element-error{background:red!important;color:#fff!important;position:relative!important}.i-amphtml-element-error:before{content:attr(error-message)}i-amp-scroll-container,i-amphtml-scroll-container{position:absolute;top:0;left:0;right:0;bottom:0;display:block}i-amp-scroll-container.amp-active,i-amphtml-scroll-container.amp-active{overflow:auto;-webkit-overflow-scrolling:touch}.i-amphtml-loading-container{display:block!important;pointer-events:none;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden;display:initial}.i-amphtml-element>[overflow].amp-visible{visibility:visible}template{display:none!important}.amp-border-box,.amp-border-box *,.amp-border-box :after,.amp-border-box :before{box-sizing:border-box}amp-pixel{display:none!important}amp-analytics,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}html.i-amphtml-fie>amp-analytics{position:initial!important}[visible-when-invalid]:not(.visible),form [submit-error],form [submit-success],form [submitting]{display:none}amp-accordion{display:block!important}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}amp-accordion,amp-accordion>section{margin:0}amp-accordion>section>:last-child{display:none!important}amp-accordion>section[expanded]>:last-child{display:block!important}\n/*# sourceURL=/css/ampshared.css*/";function zf(a,b){function c(c){h=null;g=a.setTimeout(d,e);b.apply(null,c)}function d(){g=0;h&&c(h)}var e=100,g=0,h=null;return function(a){for(var b=[],d=0;d<arguments.length;++d)b[d-0]=arguments[d];g?h=b:c(b)}}function Af(a,b){function c(){d=0;var h=300-(a.Date.now()-e);if(0<h)d=a.setTimeout(c,h);else{var k=g;g=null;b.apply(null,k)}}var d=0,e=0,g=null;return function(b){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];e=a.Date.now();g=h;d||(d=a.setTimeout(c,300))}};function Bf(){var a=1.5,b=Cf(a);return function(a){return setTimeout(a,b())}}function Cf(a){var b=a||2,c=0;return function(){var a=Math.pow(b,c++);var e=a*(e||.3)*Math.random();.5<Math.random()&&(e*=-1);a+=e;return 1E3*a}};function Df(a,b){dd(a,"amp-analytics-instrumentation","amp-analytics").then(function(c){c&&c.triggerEventForTarget(a,"user-error",b)})};var Ef=self.__AMP_ERRORS||[];self.__AMP_ERRORS=Ef;function Ff(a){Ff=Bf();return Ff(a)}function Gf(a){try{return JSON.stringify(a)}catch(b){return String(a)}}var Hf;
function If(a,b){try{if(a)if(void 0!==a.message){a=fb(a);var c=!0}else{var d=a;a=Error(Gf(d));a.origError=d}else a=Error("Unknown error");c||!u().localDev||u().test||setTimeout(function(){var b=Error("_reported_ Error reported incorrectly: "+a);throw b;});if(a.reported)return a;a.reported=!0;var e=b||a.associatedElement;e&&e.classList&&(e.classList.add("i-amphtml-error"),u().development&&(e.classList.add("i-amphtml-element-error"),e.setAttribute("error-message",a.message)));if(self.console){var g=
console.error||console.log;a.messageArray?g.apply(console,a.messageArray):e?g.call(console,a.message,e):u().minified?g.call(console,a.message):g.call(console,a.stack)}e&&e.fa&&e.fa("amp:error",a.message);Jf.call(void 0,void 0,void 0,void 0,void 0,a)}catch(h){setTimeout(function(){throw h;})}return a}function Kf(a){return a?"string"==typeof a?K(a,"BLOCK_BY_CONSENT"):"string"==typeof a.message?K(a.message,"BLOCK_BY_CONSENT"):!1:!1}
function Lf(){var a=self;a.onerror=Jf;a.addEventListener("unhandledrejection",function(a){!a.reason||"CANCELLED"!==a.reason.message&&"BLOCK_BY_CONSENT"!==a.reason.message&&"AbortError"!==a.reason.message?If(a.reason||Error("rejected promise "+a)):a.preventDefault()})}
function Jf(a,b,c,d,e){var g=this;this&&this.document&&vf(this.document);if(!(u().localDev||u().development||u().test)){var h=!1;try{h=Mf()}catch(l){}if(!(h&&.01<Math.random())){var k=Nf(a,b,c,d,e,h);k&&Ff(function(){try{return Of(g,k).catch(function(){})}catch(l){}})}}}function Of(a,b){return Pf(a,b).then(function(a){if(!a){var c=new XMLHttpRequest;c.open("POST",.1>Math.random()?Qa.betaErrorReporting:Qa.errorReporting,!0);c.send(JSON.stringify(b))}})}
function Pf(a,b){a=id(a);if(!a.isSingleDoc())return Promise.resolve(!1);var c=a.getSingleDoc(),d=c.getRootNode().documentElement;if(!d.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);var e=md(c);return e.hasCapability("errorReporter")?e.isTrustedViewer().then(function(a){if(!a)return!1;e.sendMessage("error",G({m:b.m,a:b.a,s:b.s,el:b.el,ex:b.ex,v:b.v,jse:b.jse}));return!0}):Promise.resolve(!1)}
function Nf(a,b,c,d,e,g){var h=a;e&&(h=e.message?e.message:String(e));h||(h="Unknown error");a=h;var k=!(!e||!e.expected);if(!/_reported_/.test(a)&&"CANCELLED"!=a){var l=!(self&&self.window),m=Math.random();if(-1!=a.indexOf("Failed to load:")||"Script error."==a||l)if(k=!0,.001<m)return;var q=Ta(a);if(!(q&&.1<m)){h=Object.create(null);h.v=u().rtvVersion;h.noAmp=g?"1":"0";h.m=a.replace("\u200b\u200b\u200b","");h.a=q?"1":"0";h.ex=k?"1":"0";h.dw=l?"1":"0";var p="1p";self.context&&self.context.location?
(h["3p"]="1",p="3p"):u().runtime&&(p=u().runtime);u().singlePassType&&(h.spt=u().singlePassType);h.rt=p;"inabox"===p&&(h.adid=u().a4aId);g=self;h.ca=g.AMP_CONFIG&&g.AMP_CONFIG.canary?"1":"0";g=self;h.bt=g.AMP_CONFIG&&g.AMP_CONFIG.type?g.AMP_CONFIG.type:"unknown";self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(h.or=self.location.ancestorOrigins[0]);self.viewerState&&(h.vs=self.viewerState);self.parent&&self.parent!=self&&(h.iem="1");if(self.AMP&&self.AMP.viewer){var t=self.AMP.viewer.getResolvedViewerUrl(),
J=self.AMP.viewer.maybeGetMessagingOrigin();t&&(h.rvu=t);J&&(h.mso=J)}Hf||(Hf=Qf());h.jse=Hf;var w=[];g=self.__AMP__EXPERIMENT_TOGGLES||null;for(var A in g)w.push(A+"="+(g[A]?"1":"0"));h.exps=w.join(",");e?(h.el=e.associatedElement?e.associatedElement.tagName:"u",e.args&&(h.args=JSON.stringify(e.args)),q||e.ignoreStack||!e.stack||(h.s=e.stack),e.message&&(e.message+=" _reported_")):(h.f=b||"",h.l=c||"",h.c=d||"");h.r=self.document?self.document.referrer:"";h.ae=Ef.join(",");h.fr=self.location.originalHash||
self.location.hash;b=a;25<=Ef.length&&Ef.splice(0,Ef.length-25+1);Ef.push(b);return h}}}function Mf(){var a=self;if(!a.document)return!1;a=a.document.querySelectorAll("script[src]");for(var b=0;b<a.length;b++)if(!zc(a[b].src.toLowerCase()))return!0;return!1}
function Qf(){function a(){}a.prototype.t=function(){throw Error("message");};var b=new a;try{b.t()}catch(d){b=d.stack;if(K(b,"t@"))return"Safari";if(-1<b.indexOf(".prototype.t@"))return"Firefox";var c=b.split("\n").pop();if(/\bat .* \(/i.test(c))return"IE";if(K(b,"Error: message"))return"Chrome"}return"unknown"};var Rf="__AMP_ACTION_MAP__"+Math.random(),Sf={form:["submit","clear"]},Tf={button:!0,checkbox:!0,link:!0,listbox:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,option:!0,radio:!0,scrollbar:!0,slider:!0,spinbutton:!0,"switch":!0,tab:!0,treeitem:!0};
function Uf(a,b,c,d,e,g,h,k,l,m){k=void 0===k?"?":k;l=void 0===l?null:l;m=void 0===m?Math.random():m;this.node=a;this.method=b;this.args=c;this.source=d;this.caller=e;this.event=g;this.trust=h;this.actionEventType=k;this.tagOrTarget=l||a.tagName;this.sequenceId=m}
Uf.prototype.satisfiesTrust=function(a){if(!Ma(this.trust))return C().error("Action","Invalid trust for '"+this.method+"': "+this.trust),!1;if(this.trust<a){a:switch(this.trust){case 1:var b="low";break a;case 3:b="high";break a;default:b="default"}z().error("Action",'"'+this.actionEventType+'" event with "'+b+'" trust is not allowed to invoke "'+(this.tagOrTarget.toLowerCase()+"."+this.method+'".'));return!1}return!0};
function Vf(a,b){this.ampdoc=a;this.L=b||a.getRootNode();this.ra=Wf(this);this.vc=F();this.Rd=F();this.addEvent("tap");this.addEvent("submit");this.addEvent("change");this.addEvent("input-debounced");this.addEvent("input-throttled");this.addEvent("valid");this.addEvent("invalid")}Vf.installInEmbedWindow=function(a,b){Sc(a,"action",new Vf(b,a.document))};f=Vf.prototype;
f.addEvent=function(a){var b=this;if("tap"==a)this.L.addEventListener("click",function(c){c.defaultPrevented||b.trigger(c.target,a,c,3)}),this.L.addEventListener("keydown",function(c){var d=c.key,e=c.target;if("Enter"==d||" "==d){var k=e.getAttribute("role");if(d=k)d=k.toLowerCase(),d=kb.call(Tf,d);var l=d;if(!c.defaultPrevented&&l){var m=b.trigger(e,a,c,3);m&&c.preventDefault()}}});else if("submit"==a)this.L.addEventListener(a,function(c){b.trigger(c.target,a,c,3)});else if("change"==a)this.L.addEventListener(a,
function(c){var d=c.target;Xf(c);b.trigger(d,a,c,3)});else if("input-debounced"==a){var c=Af(this.ampdoc.win,function(c){b.trigger(c.target,a,c,3)});this.L.addEventListener("input",function(a){var b=new Yf(a);Xf(b);c(b)})}else if("input-throttled"==a){var d=zf(this.ampdoc.win,function(c){b.trigger(c.target,a,c,3)});this.L.addEventListener("input",function(a){a=new Yf(a);Xf(a);d(a)})}else"valid"!=a&&"invalid"!=a||this.L.addEventListener(a,function(c){b.trigger(c.target,a,c,3)})};
f.addGlobalTarget=function(a,b){this.vc[a]=b};f.addGlobalMethodHandler=function(a,b,c){this.Rd[a]={handler:b,minTrust:void 0===c?2:c}};f.trigger=function(a,b,c,d,e){return Zf(this,a,b,c,d,e)};f.execute=function(a,b,c,d,e,g,h){a=new Uf(a,b,c,d,e,g,h);$f(this,a)};
f.installActionHandler=function(a,b){var c=a.getAttribute("id")||"";"amp-"===c.substring(0,4)||a.tagName.toLowerCase();if(a.__AMP_ACTION_HANDLER__)C().error("Action","Action handler already installed for "+a);else{a.__AMP_ACTION_HANDLER__=b;var d=a.__AMP_ACTION_QUEUE__;x(d)&&U(a.ownerDocument.defaultView).delay(function(){d.forEach(function(a){try{b(a)}catch(g){C().error("Action","Action execution failed:",a,g)}});a.__AMP_ACTION_QUEUE__.length=0},1)}};f.hasAction=function(a,b,c){return!!ag(a,b,c)};
f.hasResolvableAction=function(a,b,c){var d=this,e=ag(a,b,c);return e?e.actionInfos.some(function(a){return!!bg(d,a.target)}):!1};f.hasResolvableActionForTarget=function(a,b,c,d){var e=this;return(a=ag(a,b,d))?a.actionInfos.some(function(a){return bg(e,a.target)==c}):!1};function bg(a,b){return a.vc[b]?a.L:a.L.getElementById(b)}f.setWhitelist=function(a){this.ra=a};f.addToWhitelist=function(a,b){this.ra||(this.ra=[]);this.ra.push({tagOrTarget:a,method:b})};
function Zf(a,b,c,d,e,g){var h=ag(b,c);if(!h)return!1;var k=Math.random(),l=null;h.actionInfos.forEach(function(m){function q(){var g=bg(a,p);if(g)return g=new Uf(g,t,w,b,h.node,d,e,c,g.tagName||p,k),$f(a,g);a.ga('Target "'+p+'" not found for action ['+J+"].")}var p=m.target,t=m.method,J=m.str,w=cg(m.args,d,g);l=l?l.then(q):q()});return 1<=h.actionInfos.length}f.ga=function(a,b){if(b)throw a=z().createError("[Action] "+a),If(a,b),a;z().error("Action",a)};
function $f(a,b){var c=b.method,d=b.tagOrTarget;if(a.ra&&!dg(b,a.ra))return a.ga('"'+d+"."+c+'" is not whitelisted '+JSON.stringify(a.ra)+"."),null;var e=a.vc[d];if(e)return e(b);var g=b.node,h=a.Rd[c];if(h&&b.satisfiesTrust(h.minTrust))return h.handler(b);var k=g.tagName.toLowerCase();if("amp-"===k.substring(0,4))return g.enqueAction?g.enqueAction(b):a.ga('Unrecognized AMP element "'+k+'".',g),null;var l=Sf[k];if("amp-"===(g.getAttribute("id")||"").substring(0,4)||l&&-1<l.indexOf(c))return(a=g.__AMP_ACTION_HANDLER__)?
a(b):(g.__AMP_ACTION_QUEUE__=g.__AMP_ACTION_QUEUE__||[],g.__AMP_ACTION_QUEUE__.push(b)),null;a.ga("Target ("+d+") doesn't support \""+c+'" action.',b.caller);return null}
function ag(a,b,c){for(;a&&(!c||a!=c);){var d=b;var e=a;var g=d,h=e[Rf];void 0===h&&(h=null,e.hasAttribute("on")?(g=e.getAttribute("on"),h=eg(g,e),e[Rf]=h):e.hasAttribute("execute")&&(h=e.getAttribute("execute"),h=eg(g+":"+h,e),e[Rf]=h));var k=(e=h)?e[d]||null:null;if(k&&!a.disabled&&!Db(a,":disabled"))return{node:a,actionInfos:k};a=a.parentElement}return null}f.setActions=function(a,b){a.setAttribute("on",b);delete a[Rf]};
function Wf(a){var b=a.ampdoc.getMetaByName("amp-action-whitelist");return null===b?null:b.split(",").filter(function(a){return a}).map(function(b){var c=b.split(".");if(2>c.length)a.ga("Invalid action whitelist entry: "+b+".");else return b=c[0].trim(),c=c[1].trim(),{tagOrTarget:b,method:c}}).filter(function(a){return a})}
function Xf(a){var b=F(),c=a.target;void 0!==c.value&&(b.value=c.value);"INPUT"==c.tagName&&(b.valueAsNumber=Number(c.value));void 0!==c.checked&&(b.checked=c.checked);if(void 0!==c.min||void 0!==c.max)b.min=c.min,b.max=c.max;0<Object.keys(b).length&&(a.detail=b)}
function dg(a,b){var c=a.method,d=a.node;a=a.tagOrTarget;"activate"===c&&"function"==typeof d.getDefaultActionAlias&&(c=d.getDefaultActionAlias());var e=c.toLowerCase(),g=a.toLowerCase();return b.some(function(a){return a.tagOrTarget.toLowerCase()!==g&&"*"!==a.tagOrTarget||a.method.toLowerCase()!==e?!1:!0})}function Yf(a){this.detail=null;var b=this||F(),c;for(c in a)b[c]="function"===typeof a[c]?gg:a[c]}function gg(){}
function eg(a,b){var c=hg.bind(null,a,b),d=ig.bind(null,a,b);b=null;var e=new jg(a);do{var g=e.next();if(g.type!=kg&&(g.type!=W||";"!=g.value))if(g.type==lg||g.type==mg){var h=g.value;d(e.next(),[W],":");var k=[];do{var l=d(e.next(),[lg,mg]).value,m="activate",q=null;var p=e.peek();if(p.type==W&&"."==p.value&&(e.next(),m=d(e.next(),[lg,mg]).value||m,p=e.peek(),p.type==W&&"("==p.value)){e.next();q=e;var t=d,J=c,w=q.peek(),A=null;if(w.type==ng){A=F();var D=q.next().value;A.__AMP_OBJECT_STRING__=D;t(q.next(),
[W],")")}else{do{var Z=D=q.next();w=Z.type;Z=Z.value;if(w!=W||","!=Z&&")"!=Z)if(w==lg||w==mg){t(q.next(),[W],"=");D=t(q.next(!0),[lg,mg]);var La=[D];if(D.type==mg)for(w=q.peek();w.type==W&&"."==w.value;w=q.peek())q.next(),D=t(q.next(!1),[mg]),La.push(D);w=og(La);A||(A=F());A[Z]=w;w=q.peek();J(w.type==W&&(","==w.value||")"==w.value),"Expected either [,] or [)]")}else J(!1,"; unexpected token ["+(D.value||"")+"]")}while(D.type!=W||")"!=D.value)}q=A}k.push({event:h,target:l,method:m,args:q&&u().test&&
Object.freeze?Object.freeze(q):q,str:a});p=e.peek()}while(p.type==W&&","==p.value&&e.next());b||(b=F());b[h]=k}else c(!1,"; unexpected token ["+(g.value||"")+"]")}while(g.type!=kg);return b}function og(a){return 0==a.length?null:1==a.length?a[0].value:{expression:a.map(function(a){return a.value}).join(".")}}
function cg(a,b,c){if(!a)return a;var d=c||G({});b&&(b=b.detail)&&(d.event=b);var e=F();Object.keys(a).forEach(function(b){var c=a[b];if("object"==typeof c&&c.expression){c=c.expression;if("."==c)c=d;else{c=c.split(".");for(var g=d,l=0;l<c.length;l++){var m=c[l];if(m&&g&&void 0!==g[m]&&(null==g||"object"!=typeof g?0:Object.prototype.hasOwnProperty.call(g,m)))g=g[m];else{g=void 0;break}}c=g}var q=c;c=void 0===q?null:q}e[b]=d[c]?d[c]:c});return e}
function hg(a,b,c,d){return E(c,"Invalid action definition in %s: [%s] %s",b,a,d||"")}function ig(a,b,c,d,e){void 0!==e?hg(a,b,d.includes(c.type)&&c.value==e,"; expected ["+e+"]"):hg(a,b,d.includes(c.type));return c}var kg=1,W=2,lg=3,mg=4,ng=5;function jg(a){this.G=a;this.Ac=-1}jg.prototype.next=function(a){var b=pg(this,a||!1);this.Ac=b.index;return b};jg.prototype.peek=function(a){return pg(this,a||!1)};
function pg(a,b){var c=a.Ac+1;if(c>=a.G.length)return{type:kg,index:a.Ac};var d=a.G.charAt(c);if(-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(d)){for(c++;c<a.G.length&&-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(a.G.charAt(c));c++);if(c>=a.G.length)return{type:kg,index:c};d=a.G.charAt(c)}if(b&&(qg(d)||"."==d&&c+1<a.G.length&&qg(a.G[c+1]))){for(var e="."==d,g=c+1;g<a.G.length;g++){var h=a.G.charAt(g);if("."==h)e=!0;else if(!qg(h))break}a=a.G.substring(c,g);a=e?parseFloat(a):parseInt(a,10);c=g-1;return{type:lg,
value:a,index:c}}if(-1!=";:.()=,|!".indexOf(d))return{type:W,value:d,index:c};if(-1!="\"'".indexOf(d)){g=-1;for(var k=c+1;k<a.G.length;k++)if(a.G.charAt(k)==d){g=k;break}if(-1==g)return{type:0,index:c};a=a.G.substring(c+1,g);c=g;return{type:lg,value:a,index:c}}if("{"==d){var l=1;g=-1;for(d=c+1;d<a.G.length;d++){var m=a.G[d];"{"==m?l++:"}"==m&&l--;if(0>=l){g=d;break}}if(-1==g)return{type:0,index:c};a=a.G.substring(c,g+1);c=g;return{type:ng,value:a,index:c}}for(g=c+1;g<a.G.length&&-1==" \t\n\r\f\x0B\u00a0\u2028\u2029;:.()=,|!\"'{}".indexOf(a.G.charAt(g));g++);
a=a.G.substring(c,g);c=g-1;return!b||"true"!=a&&"false"!=a?qg(a.charAt(0))?{type:lg,value:a,index:c}:{type:mg,value:a,index:c}:{type:lg,value:"true"==a,index:c}}function qg(a){return"0"<=a&&"9">=a};function rg(a){return!!a&&"function"==typeof a.getFormData};var sg=["GET","POST"],tg=[x,Ka];function ug(a,b){var c=Object.assign({},b);if(rg(b.body)){var d=b.body;c.headers["Content-Type"]="multipart/form-data;charset=utf-8";b=d.entries();for(var e=[],g=b.next();!g.done;g=b.next())e.push(g.value);c.body=e}return{input:a,init:c}}
function vg(a,b){E(Ka(a),"Object expected: %s",a);var c="document"==b;if(!c)return new Response(a.body,a.init);var d=F(),e={status:200,statusText:"OK",getResponseHeader:function(a){return d[String(a).toLowerCase()]||null}};if(a.init){var g=a.init;x(g.headers)&&g.headers.forEach(function(a){var b=a[1];d[String(a[0]).toLowerCase()]=String(b)});g.status&&(e.status=parseInt(g.status,10));g.statusText&&(e.statusText=String(g.statusText))}return new Response(a.body?String(a.body):"",e)}
function wg(a,b,c,d){if(!b)return v();var e=d.prerenderSafe?v():b.whenFirstVisible(),g=md(b),h=zc(c),k=g.hasCapability("xhrInterceptor"),l=d.bypassInterceptorForDev&&u(a).localDev;return h||!k||l||!b.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?e:e.then(function(){return g.isTrustedViewer()}).then(function(b){if(b||u(a).localDev||N(a,"untrusted-xhr-interception")){var e=G({originalRequest:ug(c,d)});return g.sendMessageAwaitResponse("xhr",e).then(function(a){return vg(a,d.responseType)})}})}
function xg(a,b,c){!1!==c.ampCors&&(b=Ec(a,b));return b}function yg(a,b){a=a||{};var c=a.method;void 0===c?c="GET":(c=c.toUpperCase(),sg.includes(c));a.method=c;a.headers=a.headers||G({});b&&(a.headers.Accept=b);return a}function zg(a,b,c){c=c||{};var d=a.origin||M(a.location.href).origin;a=M(b).origin;d==a&&(c.headers=c.headers||{},c.headers["AMP-Same-Origin"]="true");return c}
function Ag(a){var b=yg(a,"application/json");if("POST"==b.method&&!rg(b.body)){tg.some(function(a){return a(b.body)});b.headers["Content-Type"]=b.headers["Content-Type"]||"text/plain;charset=utf-8";var c=b.headers["Content-Type"];b.body="application/x-www-form-urlencoded"===c?vc(b.body):JSON.stringify(b.body)}return b}function Bg(a){return new Promise(function(b){if(a.ok)return b(a);b=a.status;var c=z().createError("HTTP error "+b);c.retriable=415==b||500<=b&&600>b;c.response=a;throw c;})};function Cg(a){this.win=a;a=id(a);this.Je=a.isSingleDoc()?a.getSingleDoc():null}f=Cg.prototype;f.We=function(a,b){var c=arguments,d=this;return wg(this.win,this.Je,a,b).then(function(a){if(a)return a;if(rg(b.body)){var e=b.body;b.body=e.getFormData()}return d.win.fetch.apply(null,c)})};
function Dg(a,b,c){c=void 0===c?{}:c;b=xg(a.win,b,c);c=zg(a.win,b,c);return a.We(b,c).then(function(a){return a},function(a){var c=M(b).origin;throw z().createExpectedError("XHR","Failed fetching ("+c+"/...):",a&&a.message);})}f.fetchJson=function(a,b){return this.fetch(a,Ag(b))};f.fetchText=function(a,b){return this.fetch(a,yg(b,"text/plain"))};
f.xssiJson=function(a,b){return b?a.text().then(function(a){return K(a,b)?Ob(a.slice(b.length)):(z().warn("XHR",'Failed to strip missing prefix "'+b+'" in fetch response.'),Ob(a))}):a.json()};f.fetch=function(a,b){b=yg(b);return Dg(this,a,b).then(function(a){return Bg(a)})};f.sendSignal=function(a,b){return Dg(this,a,b).then(function(a){return Bg(a)})};f.getCorsUrl=function(a,b){return Ec(a,b)};function Eg(a){Cg.call(this,a);this.Ma=F()}n(Eg,Cg);Eg.prototype.fetch=function(a,b){var c=this,d=b&&b.headers&&b.headers.Accept||"",e=!b||!b.method||"GET"===b.method,g=Fg(this,a,d),h=!!this.Ma[g];if(e&&h)return this.Ma[g].then(function(a){return a.clone()});var k=Cg.prototype.fetch.call(this,a,b);e&&(this.Ma[g]=k.then(function(a){delete c.Ma[g];return a.clone()},function(a){delete c.Ma[g];throw a;}));return k};
function Fg(a,b,c){a=M(Dc(a.win.location)).origin;"string"==typeof a&&(a=M(a));if("function"==typeof URL)b=(new URL(b,a.href)).toString();else{"string"==typeof a&&(a=M(a));b=b.replace(/\\/g,"/");var d=M(b);b=K(b.toLowerCase(),d.protocol)?d.href:K(b,"//")?a.protocol+b:K(b,"/")?a.origin+b:a.origin+a.pathname.replace(/\/[^/]*$/,"/")+b}var e=b;return yc(e)+c};var Gg={"+":"-","/":"_","=":"."};function Hg(a){a=Rb(a);return btoa(a).replace(/[+/=]/g,function(a){return Gg[a]})};function Ig(a){var b;if((b=a.crypto||a.msCrypto)&&b.getRandomValues){var c=new Uint8Array(16);b.getRandomValues(c);b=c}else b=null;return b?b:String(a.location.href+Date.now()+a.Math.random()+a.screen.width+a.screen.height)}function Jg(a){var b=Ig(a);if("string"==typeof b)return Q(a,"crypto").sha384Base64(b);var c=b;return lb(function(){return Hg(c).replace(/\.+$/,"")})};function Kg(a){this.h=a;var b=null,c=!1;a.crypto&&(a.crypto.subtle?b=a.crypto.subtle:a.crypto.webkitSubtle&&(b=a.crypto.webkitSubtle,c=!0));this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};this.subtle=b;this.nf=c;this.Za=null}f=Kg.prototype;
f.sha384=function(a){var b=this;"string"===typeof a&&(a=Qb(a));if(!this.subtle||this.Za)return(this.Za||Lg(this)).then(function(b){return b(a)});try{return this.subtle.digest({name:"SHA-384"},a).then(function(a){return new Uint8Array(a)},function(c){c.message&&0>c.message.indexOf("secure origin")&&z().error("Crypto","SubtleCrypto failed, fallback to closure lib.",c);return Lg(b).then(function(){return b.sha384(a)})})}catch(c){return C().error("Crypto","SubtleCrypto failed, fallback to closure lib.",
c),Lg(this).then(function(){return b.sha384(a)})}};f.sha384Base64=function(a){return this.sha384(a).then(function(a){return Hg(a)})};f.uniform=function(a){return this.sha384(a).then(function(a){for(var b=0,d=2;0<=d;d--)b=(b+a[d])/256;return b})};function Lg(a){return a.Za?a.Za:a.Za=jd(a.h).preloadExtension("amp-crypto-polyfill").then(function(){return Q(a.h,"crypto-polyfill")})}f.isPkcsAvailable=function(){return!!this.subtle&&!1!==this.h.isSecureContext};
f.importPkcsKey=function(a){this.isPkcsAvailable();var b=this.nf?Pb(JSON.stringify(a)):a;return this.subtle.importKey("jwk",b,this.pkcsAlgo,!0,["verify"])};f.verifyPkcs=function(a,b,c){this.isPkcsAvailable();return this.subtle.verify(this.pkcsAlgo,a,b,c)};var Mg=["prefetch","preload","preconnect","dns-prefetch"];function Ng(a){this.w=a;this.Xc=this.Bc=null}
Ng.prototype.get=function(){if(this.Bc)return this.Bc;var a=this.w,b=a.getUrl(),c=Dc(b),d=a.getRootNode();b=d&&d.AMP&&d.AMP.canonicalUrl;if(!b){var e=d.querySelector("link[rel=canonical]");b=e?M(e.href).href:c}var g=String(Math.floor(1E4*a.win.Math.random())),h=Og(a.win.document);d=Pg(a.win.document);var k=Qg(a);return this.Bc={get sourceUrl(){return Dc(a.getUrl())},canonicalUrl:b,pageViewId:g,get pageViewId64(){this.Xc||(this.Xc=Jg(a.win));return this.Xc},linkRels:h,viewport:d,replaceParams:k}};
function Og(a){var b=F();if(a.head){a=a.head.querySelectorAll("link[rel]");for(var c={},d=0;d<a.length;c={Fa:c.Fa},d++){var e=a[d];c.Fa=e.href;var g=e.getAttribute("rel");g&&c.Fa&&g.split(/\s+/).forEach(function(a){return function(c){if(-1==Mg.indexOf(c)){var d=b[c];d?(x(d)||(d=b[c]=[d]),d.push(a.Fa)):b[c]=a.Fa}}}(c))}}return b}function Pg(a){var b=a.head.querySelector('meta[name="viewport"]');return b?b.getAttribute("content"):null}
function Qg(a){var b;(b=!a.isSingleDoc())||(b=a.win.location.href,"string"==typeof b&&(b=M(b)),b="a"!=(zc(b)?b.pathname.split("/",2)[1]:null));if(b)return null;a=M(a.win.location.href);var c=r(a.search).amp_r;return void 0===c?null:r(c)};function Rg(a){hd(a).then(function(b){b&&a.getRootNode().addEventListener("submit",Sg,!0)})}
function Sg(a){if(!a.defaultPrevented){var b=a.target;if(b&&"FORM"==b.tagName){var c=b.classList.contains("i-amphtml-form"),d;(d=c?!b.hasAttribute("amp-novalidate"):!b.hasAttribute("novalidate"))&&b.checkValidity&&!b.checkValidity()&&a.preventDefault();for(var e=b.elements,g=0;g<e.length;g++)E(!e[g].name||"__amp_source_origin"!=e[g].name,"Illegal input name, %s found: %s","__amp_source_origin",e[g]);g=b.getAttribute("action");var h=b.getAttribute("action-xhr"),k=(b.getAttribute("method")||"GET").toUpperCase();
h&&(xc(h,b,"action-xhr"),E(!zc(h),"form action-xhr should not be on AMP CDN: %s",b),Fc(h));g&&(xc(g,b,"action"),E(!zc(g),"form action should not be on AMP CDN: %s",b),Fc(g));if("GET"==k)E(h||g,"form action-xhr or action attribute is required for method=GET: %s",b);else if("POST"==k){if(g){var l="form";z().error(l,"action attribute is invalid for method=POST: %s",b)}h||(a.preventDefault(),E(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",b))}(g=b.getAttribute("target"))?
E("_blank"==g||"_top"==g,"form target=%s is invalid can only be _blank or _top: %s",g,b):b.setAttribute("target","_top");h&&(a.preventDefault(),a.stopImmediatePropagation(),Mc(b,"action").execute(b,"submit",null,b,b,a,3))}}};function X(){this.M=null}f=X.prototype;f.add=function(a){var b=this;this.M||(this.M=[]);this.M.push(a);return function(){b.remove(a)}};f.remove=function(a){this.M&&(a=this.M.indexOf(a),-1<a&&this.M.splice(a,1))};f.removeAll=function(){this.M&&(this.M.length=0)};f.fire=function(a){if(this.M)for(var b=this.M,c=0;c<b.length;c++)(0,b[c])(a)};f.getHandlerCount=function(){return this.M?this.M.length:0};var Tg={attributes:!0,attributeFilter:["hidden"],subtree:!0};function Ug(a,b){this.L=b||a.getRootNode();this.h=(this.L.ownerDocument||this.L).defaultView;this.za=this.T=null}Ug.installInEmbedWindow=function(a,b){Sc(a,"hidden-observer",new Ug(b,a.document))};Ug.prototype.add=function(a){var b=this;Vg(this);var c=this.za.add(a);return function(){c();0===b.za.getHandlerCount()&&b.dispose()}};
function Vg(a){if(!a.T){a.za=new X;var b=new a.h.MutationObserver(function(b){b&&a.za.fire(b)});a.T=b;b.observe(a.L,Tg)}}Ug.prototype.dispose=function(){this.T&&(this.T.disconnect(),this.za.removeAll(),this.za=this.T=null)};function Wg(a){try{return a.state}catch(b){return null}};function Xg(a,b){this.w=a;this.ka=U(a.win);this.B=b;this.o=0;this.pa=[];this.H=[];this.B.setOnStateUpdated(this.O.bind(this))}f=Xg.prototype;f.cleanup=function(){this.B.cleanup()};f.push=function(a,b){var c=this;return Yg(this,function(){return c.B.push(b).then(function(b){c.O(b);a&&(c.pa[b.stackIndex]=a);return b.stackIndex})},"push")};f.pop=function(a){var b=this;return Yg(this,function(){return b.B.pop(a).then(function(a){b.O(a)})},"pop")};
f.replace=function(a){var b=this;return Yg(this,function(){return b.B.replace(a)},"replace")};f.get=function(){var a=this;return Yg(this,function(){return a.B.get()},"get")};f.goBack=function(){var a=this;return Yg(this,function(){return 0>=a.o?v():a.B.pop(a.o).then(function(b){a.O(b)})},"goBack")};f.replaceStateForTarget=function(a){var b=this,c=this.w.win.location.hash;return this.push(function(){b.w.win.location.replace(c||"#")}).then(function(){b.B.replaceStateForTarget(a)})};f.getFragment=function(){return this.B.getFragment()};
f.updateFragment=function(a){"#"==a[0]&&(a=a.substr(1));return this.B.updateFragment(a)};f.O=function(a){this.o=a.stackIndex;Zg(this,a)};function Zg(a,b){if(!(a.o>=a.pa.length-1)){for(var c=[],d=a.pa.length-1;d>a.o;d--)a.pa[d]&&(c.push(a.pa[d]),a.pa[d]=void 0);a.pa.splice(a.o+1);if(0<c.length)for(d={Ga:0};d.Ga<c.length;d={Ga:d.Ga},d.Ga++)a.ka.delay(function(a){return function(){return c[a.Ga](b)}}(d),1)}}
function Yg(a,b,c){var d=new H,e=d.promise,g=Error("history trace for "+c+": ");a.H.push({callback:b,resolve:d.resolve,reject:d.reject,trace:g});1==a.H.length&&$g(a);return e}function $g(a){if(0!=a.H.length){var b=a.H[0];try{var c=b.callback()}catch(d){c=Promise.reject(d)}c.then(function(a){b.resolve(a)},function(a){C().error("History","failed to execute a task:",a);b.trace&&(b.trace.message+=a,C().error("History",b.trace));b.reject(a)}).then(function(){a.H.splice(0,1);$g(a)})}}
function ah(a){var b=this;this.win=a;this.ka=U(a);a=this.win.history;this.qa=a.length-1;var c=Wg(a);c&&void 0!==c["AMP.History"]&&(this.qa=Math.min(c["AMP.History"],this.qa));this.o=this.qa;this.O=null;this.Pf="state"in a;this.Da=bh(this,this.o);if(a.pushState&&a.replaceState){this.Jb=a.originalPushState||a.pushState.bind(a);this.Wa=a.originalReplaceState||a.replaceState.bind(a);var d=function(a,c,d){b.Da=a;b.Jb(a,c,d||null)};var e=function(a,c,d){b.Da=a;void 0!==d?b.Wa(a,c,d):b.Wa(a,c)};a.originalPushState||
(a.originalPushState=this.Jb);a.originalReplaceState||(a.originalReplaceState=this.Wa)}else d=function(a){b.Da=a},e=function(a){b.Da=a};this.Bf=d;this.Rb=e;try{this.Rb(bh(this,this.o,!0))}catch(g){C().error("History","Initial replaceState failed: "+g.message)}a.pushState=this.Wd.bind(this);a.replaceState=this.zc.bind(this);this.Nb=function(){var a=ch(b),c=a?a["AMP.History"]:void 0,d=b.o,e=b.dc;b.dc=void 0;d>b.win.history.length-2&&(d=b.win.history.length-2,b.da(dh(a,{stackIndex:d})));d=void 0==c?
d+1:c<b.win.history.length?c:b.win.history.length-1;a||(a={});a["AMP.History"]=d;b.Rb(a,void 0,void 0);d!=b.o&&b.da(dh(a,{stackIndex:d}));d<b.qa&&(b.qa=d);e&&e.resolve()};this.win.addEventListener("popstate",this.Nb)}f=ah.prototype;f.cleanup=function(){this.Jb&&(this.win.history.pushState=this.Jb);this.Wa&&(this.win.history.replaceState=this.Wa);this.win.removeEventListener("popstate",this.Nb)};function bh(a,b,c){a=F(c?ch(a):void 0);a["AMP.History"]=b;return a}
f.setOnStateUpdated=function(a){this.O=a};f.push=function(a){var b=this;return eh(this,function(){var c=dh(ch(b),a||{});b.Wd(c,void 0,c.fragment?"#"+c.fragment:void 0);return lb(function(){return dh(c,{stackIndex:b.o})})})};f.pop=function(a){var b=this;a=Math.max(a,this.qa);return eh(this,function(){return fh(b,b.o-a+1)}).then(function(a){return dh(ch(b),{stackIndex:a})})};
f.replace=function(a){var b=this;a=void 0===a?{}:a;return eh(this,function(){var c=dh(ch(b),a||{}),d=(c.url||"").replace(/#.*/,""),e=c.fragment?"#"+c.fragment:"";b.zc(c,c.title,d||e?d+e:void 0);return lb(function(){return dh(c,{stackIndex:b.o})})})};f.get=function(){var a=this;return lb(function(){return dh(ch(a),{stackIndex:a.o})})};f.backTo=function(a){var b=this;a=Math.max(a,this.qa);return eh(this,function(){return fh(b,b.o-a)})};function ch(a){return a.Pf?Wg(a.win.history):a.Da}
function eh(a,b){return a.dc?a.dc.promise.then(b,b):b()}function gh(a){var b=new H,c=b.resolve,d=b.reject;b=a.ka.timeoutPromise(500,b.promise);a.dc={promise:b,resolve:c,reject:d};return b}function fh(a,b){if(0>=b)return Promise.resolve(a.o);a.Da=bh(a,a.o-b);var c=gh(a);a.win.history.go(-b);return c.then(function(){return Promise.resolve(a.o)})}
f.Wd=function(a,b,c){a||(a={});var d=this.o+1;a["AMP.History"]=d;this.Bf(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.Rb(a));a=dh(a,{stackIndex:d});this.da(a)};f.replaceStateForTarget=function(a){var b=this;eh(this,function(){b.win.removeEventListener("popstate",b.Nb);try{b.win.location.replace(a)}finally{b.win.addEventListener("popstate",b.Nb)}b.zc();return v()})};
f.zc=function(a,b,c){a||(a={});var d=Math.min(this.o,this.win.history.length-1);a["AMP.History"]=d;this.Rb(a,b,c);a=dh(a,{stackIndex:d});this.da(a)};f.da=function(a){a.stackIndex=Math.min(a.stackIndex,this.win.history.length-1);this.o!=a.stackIndex&&(this.o=a.stackIndex,this.O&&this.O(a))};f.getFragment=function(){var a=this.win.location.hash;a=a.substr(1);return Promise.resolve(a)};f.updateFragment=function(a){return this.replace({fragment:a})};
function dh(a,b){var c=Object.assign({},a&&a.data||{},b.data||{});return Object.assign({},a||{},b,{data:c})}function hh(a,b){var c=this;this.win=a;this.A=b;this.o=0;this.O=null;this.Tf=this.A.onMessage("historyPopped",function(a){void 0!==a.newStackIndex&&(a.stackIndex=a.newStackIndex);ih(a)?c.da(a):C().warn("History",'Ignored unexpected "historyPopped" data:',a)})}f=hh.prototype;f.replaceStateForTarget=function(a){this.win.location.replace(a)};f.cleanup=function(){this.Tf()};
f.setOnStateUpdated=function(a){this.O=a};function jh(a,b,c){if(ih(a))return a;C().warn("History",'Ignored unexpected "%s" data:',c,a);return b}function ih(a){return!!a&&void 0!==a.stackIndex}f.push=function(a){var b=this,c=Object.assign({},{stackIndex:this.o+1},a||{}),d="pushHistory";return this.A.sendMessageAwaitResponse(d,c).then(function(a){a=jh(a,c,d);b.da(a);return a})};
f.pop=function(a){var b=this;if(a>this.o)return this.get();a=G({stackIndex:this.o});var c="popHistory";return this.A.sendMessageAwaitResponse(c,a).then(function(a){var d=G({stackIndex:b.o-1});a=jh(a,d,c);b.da(a);return a})};
f.replace=function(a){var b=this;if(a&&a.url){if(!this.A.hasCapability("fullReplaceHistory")){var c=G({stackIndex:this.o});return Promise.resolve(c)}var d=a.url.replace(/#.*/,"");a.url=d}var e=Object.assign({},{stackIndex:this.o},a||{});return this.A.sendMessageAwaitResponse("replaceHistory",e,!0).then(function(a){a=jh(a,e,"replaceHistory");b.da(a);return a})};f.get=function(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.o,title:""})};
f.da=function(a){var b=a.stackIndex;this.o!=b&&(this.o=b,this.O&&this.O(a))};f.getFragment=function(){return this.A.hasCapability("fragment")?this.A.sendMessageAwaitResponse("getFragment",void 0,!0).then(function(a){if(!a)return"";"#"==a[0]&&(a=a.substr(1));return a}):Promise.resolve("")};f.updateFragment=function(a){return this.A.hasCapability("fragment")?this.A.sendMessageAwaitResponse("replaceHistory",G({fragment:a}),!0):v()};
function kh(a){var b=md(a);b.isOvertakeHistory()||u(a.win).test||a.win.__AMP_TEST_IFRAME?b=new hh(a.win,b):(O(a.win,"global-history-binding",ah),b=Q(a.win,"global-history-binding"));return new Xg(a,b)};function lh(a){if(!a.hasAttribute("src")&&0=="srcset"in a){var b=a.getAttribute("srcset"),c=/\S+/.exec(b);if(null!=c){var d=c[0];a.setAttribute("src",d)}}};var mh=[];function nh(a){$e.call(this,a);mh.push(this)}n(nh,$e);nh.prototype.getLayoutPriority=function(){return 0};nh.prototype.isLayoutSupported=function(){return!0};nh.prototype.reconstructWhenReparented=function(){return!1};var oh={0:"cld",2:"adld"};function ph(a,b){this.h=a;this.Mb=Uc(a,"performance");this.vb=this.ub=null;this.Jd=!1;this.Kc=oh[b]}ph.prototype.enterViewport=function(){this.Kc&&!this.ub&&(this.ub=this.h.Date.now(),qh(this))};ph.prototype.startLayout=function(){this.Kc&&!this.vb&&(this.vb=this.h.Date.now(),qh(this))};function qh(a){if(a.Mb&&a.Mb.isPerformanceTrackingOn()&&!a.Jd&&a.ub&&a.vb){var b=a.h.Math.max(a.vb-a.ub,0);a.Mb.tickDelta(a.Kc,b);a.Mb.throttledFlush();a.Jd=!0}};function rh(a,b,c){b.__AMP__RESOURCE=this;this.ff=a;this.element=b;this.debugid=b.tagName.toLowerCase()+"#"+a;this.hostWin=b.ownerDocument.defaultView;this.j=c;this.pf=b.hasAttribute("placeholder");this.Oa=!1;this.Aa=void 0;this.F=b.isBuilt()?1:0;0==this.F&&b.isBuilding()&&this.build();this.$c=-1;this.S=0;this.be=null;this.Bb=!1;this.N=L(-1E4,-1E4,0,0);this.Cc=null;this.Hc=!1;this.xa=this.X=null;this.Zc=void 0;this.ee=!1;a=new H;this.sf=a.promise;this.Oc=a.resolve;this.gf=c.isIntersectionExperimentOn();
this.$a=null}function sh(a){return a.__AMP__RESOURCE}f=rh.prototype;f.getId=function(){return this.ff};f.updateOwner=function(a){this.Aa=a};f.getOwner=function(){if(void 0===this.Aa){for(var a=this.element;a;a=a.parentElement)if(a.__AMP__OWNER){this.Aa=a.__AMP__OWNER;break}void 0===this.Aa&&(this.Aa=null)}return this.Aa};f.hasOwner=function(){return!!this.getOwner()};f.getLayoutPriority=function(){return-1!=this.$c?this.$c:this.element.getLayoutPriority()};
f.updateLayoutPriority=function(a){this.$c=a};f.getState=function(){return this.F};f.isBuilt=function(){return this.element.isBuilt()};f.isBuilding=function(){return this.Oa};f.whenBuilt=function(){return this.element.signals().whenSignal("res-built")};
f.build=function(){var a=this;if(this.Oa||!this.element.isUpgraded())return null;this.Oa=!0;return this.element.build().then(function(){a.Oa=!1;a.F=a.gf?a.hasBeenMeasured()?2:1:1;a.element.signals().signal("res-built")},function(b){a.maybeReportErrorOnBuildFailure(b);a.Oa=!1;a.element.signals().rejectSignal("res-built",b);throw b;})};f.maybeReportErrorOnBuildFailure=function(a){Kf(a)||C().error("Resource","failed to build:",this.debugid,a)};f.applySizesAndMediaQuery=function(){this.element.applySizesAndMediaQuery()};
f.changeSize=function(a,b,c){this.element.applySize(a,b,c);this.requestMeasure()};f.overflowCallback=function(a,b,c,d){a&&(this.Zc={height:b,width:c,margins:d});this.element.overflowCallback(a,b,c,d)};f.resetPendingChangeSize=function(){this.Zc=void 0};f.getPendingChangeSize=function(){return this.Zc};f.getUpgradeDelayMs=function(){return this.element.getUpgradeDelayMs()};f.premeasure=function(a){this.$a=a};
f.measure=function(a){a=void 0===a?!1:a;if(!(this.pf&&this.element.parentElement&&K(this.element.parentElement.tagName,"AMP-"))||"__AMP__RESOURCE"in this.element.parentElement)if(this.element.ownerDocument&&this.element.ownerDocument.defaultView){this.Hc=!1;var b=this.N;a?(th(this,this.$a),this.$a=null):th(this);var c=this.N,d=b,e=c,g=!(d.width==e.width&&d.height===e.height);1!=this.F&&b.top==c.top&&!g||!this.element.isUpgraded()||0==this.F||1!=this.F&&!this.element.isRelayoutNeeded()||(this.F=2);
this.hasBeenMeasured()||(this.Cc=c);this.element.updateLayoutBox(c,g)}else this.F=1};function th(a,b){var c=od(a.element);a.N=c.getLayoutRect(a.element,b);var d=!1;if(c.supportsPositionFixed()&&a.isDisplayed())for(var e=a.j.getAmpdoc().win,g=e.document.body,h=a.element;h&&h!=g;h=h.offsetParent){if(h.isAlwaysFixed&&h.isAlwaysFixed()){d=!0;break}if(c.isDeclaredFixed(h)&&"fixed"==(e.getComputedStyle(h)||F()).position){d=!0;break}}if(a.Bb=d)a.N=dc(a.N,-c.getScrollLeft(),-c.getScrollTop())}
f.completeCollapse=function(){Ce(this.element,!1);this.N=L(this.N.left,this.N.top,0,0);this.Bb=!1;this.element.updateLayoutBox(this.getLayoutBox());var a=this.getOwner();a&&a.collapsedCallback(this.element)};f.completeExpand=function(){Ce(this.element,!0);this.requestMeasure()};f.isMeasureRequested=function(){return this.Hc};f.hasBeenMeasured=function(){return!!this.Cc};f.hasBeenPremeasured=function(){return!!this.$a};f.requestMeasure=function(){this.Hc=!0};
f.getLayoutBox=function(){if(!this.Bb)return this.N;var a=od(this.element);return dc(this.N,a.getScrollLeft(),a.getScrollTop())};f.getPageLayoutBox=function(){return this.N};f.getPageLayoutBoxAsync=function(){var a=this;return this.hasBeenMeasured()?lb(function(){return a.getPageLayoutBox()}):nd(this.hostWin).measurePromise(function(){a.measure();return a.getPageLayoutBox()})};f.getInitialLayoutBox=function(){return this.Cc||this.N};
f.isDisplayed=function(a){a=void 0===a?!1:a;var b="fluid"==this.element.getLayout(),c=a?this.$a:this.getLayoutBox(),d=0<c.height&&0<c.width;return(b||d)&&!!this.element.ownerDocument&&!!this.element.ownerDocument.defaultView};f.isFixed=function(){return this.Bb};f.overlaps=function(a){var b=this.getLayoutBox();return b.top<=a.bottom&&a.top<=b.bottom&&b.left<=a.right&&a.left<=b.right};f.prerenderAllowed=function(){return this.element.prerenderAllowed()};f.isBuildRenderBlocking=function(){return this.element.isBuildRenderBlocking()};
f.whenWithinViewport=function(a){if(!this.isLayoutPending()||!0===a)return v();var b=a;a=String(b);if(this.X&&this.X[a])return this.X[a].promise;if(this.isWithinViewportRatio(b))return v();this.X=this.X||{};this.X[a]=new H;return this.X[a].promise};function uh(a){if(a.X){var b=a.getDistanceViewportRatio(),c;for(c in a.X)a.isWithinViewportRatio(parseFloat(c),b)&&(a.X[c].resolve(),delete a.X[c])}}
f.getDistanceViewportRatio=function(){var a=od(this.element).getRect(),b=this.getLayoutBox(),c=this.j.getScrollDirection(),d=1,e=0;if(a.right<b.left||a.left>b.right)return{distance:!1};if(a.bottom<b.top)e=b.top-a.bottom,-1==c&&(d=2);else if(a.top>b.bottom)e=a.top-b.bottom,1==c&&(d=2);else return{distance:!0};return{distance:e,scrollPenalty:d,viewportHeight:a.height}};
f.isWithinViewportRatio=function(a,b){if("boolean"===typeof a)return a;var c=b||this.getDistanceViewportRatio(),d=c.distance,e=c.viewportHeight;return"boolean"==typeof d?d:d<e*a/c.scrollPenalty};f.renderOutsideViewport=function(){uh(this);return this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())};f.idleRenderOutsideViewport=function(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())};
f.layoutScheduled=function(a){this.F=3;this.element.layoutScheduleTime=a};f.layoutCanceled=function(){this.F=this.hasBeenMeasured()?2:1};
f.startLayout=function(){var a=this;if(this.xa)return this.xa;if(4==this.F)return v();if(5==this.F)return Promise.reject(this.be);this.isDisplayed();if(0<this.S&&!this.element.isRelayoutNeeded())return this.F=4,v();this.S++;this.F=3;return this.xa=(new Promise(function(b,c){nd(a.hostWin).mutate(function(){try{b(a.element.layoutCallback())}catch(d){c(d)}})})).then(function(){return vh(a,!0)},function(b){return vh(a,!1,b)})};
function vh(a,b,c){a.Oc&&(a.Oc(),a.Oc=null);a.xa=null;a.ee=!0;a.F=b?4:5;a.be=c;if(!b)return Promise.reject(c)}f.isLayoutPending=function(){return 4!=this.F&&5!=this.F};f.loadedOnce=function(){return this.sf};f.hasLoadedOnce=function(){return this.ee};f.isInViewport=function(){var a=this.element.isInViewport();a&&uh(this);return a};f.setInViewport=function(a){this.element.viewportCallback(a)};
f.unlayout=function(){0!=this.F&&1!=this.F&&(this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.F=1,this.S=0,this.xa=null))};f.getTaskId=function(a){return this.debugid+"#"+a};f.pause=function(){this.element.pauseCallback();this.element.unlayoutOnPause()&&this.unlayout()};f.pauseOnRemove=function(){this.element.pauseCallback()};f.resume=function(){this.element.resumeCallback()};f.unload=function(){this.pause();this.unlayout()};
f.disconnect=function(){delete this.element.__AMP__RESOURCE;this.element.disconnect(!0)};function wh(){this.ia=F();this.P=null}f=wh.prototype;f.get=function(a){a=this.ia[a];return null==a?null:a};f.whenSignal=function(a){var b=this.P&&this.P[a];if(!b){var c=this.ia[a];null!=c?b={promise:"number"==typeof c?Promise.resolve(c):Promise.reject(c)}:(c=new H,b={promise:c.promise,resolve:c.resolve,reject:c.reject});this.P||(this.P=F());this.P[a]=b}return b.promise};
f.signal=function(a,b){if(null==this.ia[a]){var c=b||Date.now();this.ia[a]=c;(a=this.P&&this.P[a])&&a.resolve&&(a.resolve(c),a.resolve=void 0,a.reject=void 0)}};f.rejectSignal=function(a,b){null==this.ia[a]&&(this.ia[a]=b,(a=this.P&&this.P[a])&&a.reject&&(a.reject(b),a.resolve=void 0,a.reject=void 0))};f.reset=function(a){this.ia[a]&&delete this.ia[a];var b=this.P&&this.P[a];b&&!b.resolve&&delete this.P[a]};function xh(a,b){return jd(a.win).installExtensionForDoc(a,"amp-loader").then(function(){return cd(b,"loader","amp-loader")})}function yh(a,b,c,d,e){e=void 0===e?a.win.Date.now():e;var g=b.ownerDocument.createElement("div");xh(a,b).then(function(h){var k=a.win.Date.now()-e;h.initializeLoader(b,g,k,c,d)});return g};function zh(a,b,c){var d=this;this.ka=U(a);this.df=b;this.Re=c||0;this.$=-1;this.Vc=0;this.cd=!1;this.Oe=function(){d.Lb()}}zh.prototype.isPending=function(){return-1!=this.$};zh.prototype.schedule=function(a){a=a||this.Re;this.cd&&10>a&&(a=10);var b=Date.now()+a;return!this.isPending()||-10>b-this.Vc?(this.cancel(),this.Vc=b,this.$=this.ka.delay(this.Oe,a),!0):!1};zh.prototype.Lb=function(){this.$=-1;this.Vc=0;this.cd=!0;this.df();this.cd=!1};
zh.prototype.cancel=function(){this.isPending()&&(this.ka.cancel(this.$),this.$=-1)};function Ah(a,b){Re(a,"message",b,void 0)};function Bh(a){try{return!!a.location.href&&(a.test||!0)}catch(b){return!1}};var Ch=Date.now();function Dh(a,b){var c=a.split(",");E(0<c.length,"sizes has to have at least one size");var d=[];c.forEach(function(a){a=a.replace(/\s+/g," ").trim();if(0!=a.length){var c=a.charAt(a.length-1),e,k=!1;if(")"==c){k=!0;var l=1;for(e=a.length-2;0<=e;e--){var m=a.charAt(e);"("==m?l--:")"==m&&l++;if(0==l)break}var q=e-1;if(0<e)for(e--;0<=e&&(m=a.charAt(e),"%"==m||"-"==m||"_"==m||"a"<=m&&"z">=m||"A"<=m&&"Z">=m||"0"<=m&&"9">=m);e--);E(e<q,'Invalid CSS function in "%s"',a)}else for(e=a.length-2;0<=e&&(m=a.charAt(e),
"%"==m||"."==m||"a"<=m&&"z">=m||"A"<=m&&"Z">=m||"0"<=m&&"9">=m);e--);if(0<=e){var p=a.substring(0,e+1).trim();var t=a.substring(e+1).trim()}else t=a,p=void 0;d.push({mediaQuery:p,size:k?t:b?Ne(t):Me(t)})}});return new Eh(d)}
function Eh(a){E(0<a.length,"SizeList must have at least one option");this.Lf=a;for(var b=0;b<a.length;b++){var c=a[b];b<a.length-1?E(c.mediaQuery,"All options except for the last must have a media condition"):E(!c.mediaQuery,"The last option must not have a media condition")}}Eh.prototype.select=function(a){for(var b=this.Lf,c=b.length-1,d=0;d<c;d++){var e=b[d];if(a.matchMedia(e.mediaQuery).matches)return e.size}return b[c].size};var Fh=/nochunking=1/.test(self.location.hash),Gh=!1,Hh=v();function Ih(a){P(a,"chunk",Jh);return R(a,"chunk")}function Kh(a,b,c){if(Fh)Hh.then(b);else{var d=Ih(a.documentElement||a);d.runForStartup(b);c&&d.runForStartup(function(){d.xd=!0})}}function Lh(a){this.state="not_run";this.uc=a}function Mh(a,b){if("run"!=a.state){a.state="run";try{a.uc(b)}catch(c){throw a.le(),c;}}}Lh.prototype.Vf=function(){return this.uc.displayName||this.uc.name};Lh.prototype.le=function(){};Lh.prototype.Xd=function(){return!1};
Lh.prototype.De=function(){return!1};function Nh(a,b,c){Lh.call(this,a);this.Fd=c}n(Nh,Lh);Nh.prototype.le=function(){vf(self.document)};Nh.prototype.Xd=function(){return this.Fd.ampdoc.isVisible()};Nh.prototype.De=function(){return this.Fd.Hd};
function Jh(a){var b=this;this.ampdoc=a;this.h=a.win;this.aa=new ge;this.Ad=this.Ld.bind(this);this.Ka=0;this.Tb=!1;this.xd=this.h.document.documentElement.hasAttribute("i-amphtml-no-boilerplate");this.h.addEventListener("message",function(a){"amp-macro-task"==a.data&&b.Ld(null)});this.Hd=!1;Zc(Rc(a),"viewer").then(function(){b.Hd=!0});a.onVisibilityChanged(function(){a.isVisible()&&b.Ba()})}Jh.prototype.run=function(a,b){a=new Lh(a);this.aa.enqueue(a,b);this.Ba()};
Jh.prototype.runForStartup=function(a){a=new Nh(a,this.h,this);this.aa.enqueue(a,Number.POSITIVE_INFINITY);this.Ba()};function Oh(a,b){for(var c=a.aa.peek();c&&"not_run"!==c.state;)a.aa.dequeue(),c=a.aa.peek();c&&b&&a.aa.dequeue();return c}Jh.prototype.Ld=function(a){var b=this,c=Oh(this,!0);if(!c)return this.Tb=!1,this.Ka=0,!1;try{var d=Date.now();Mh(c,a)}finally{Hh.then().then().then().then().then().then().then().then().then(function(){b.Tb=!1;b.Ka+=Date.now()-d;b.Ba()})}return!0};
function Ph(a){!Gh&&a.xd&&5<a.Ka?(a.Ka=0,Qh(a)):Hh.then(function(){a.Ad(null)})}Jh.prototype.Ba=function(){if(!this.Tb){var a=Oh(this);a&&(a.Xd()?(this.Tb=!0,Ph(this)):a.De()&&this.h.requestIdleCallback?Rh(this.h,this.Ad):Qh(this))}};function Qh(a){a.h.postMessage("amp-macro-task","*")}function Rh(a,b){function c(g){if(g.timeRemaining()<d){var h=2E3-(Date.now()-e);0>=h||g.didTimeout?b(g):a.requestIdleCallback(c,{timeout:h})}else b(g)}var d=15,e=Date.now();a.requestIdleCallback(c,{timeout:2E3})};var Sh=['<div class="i-amphtml-loading-container i-amphtml-fill-content amp-hidden"></div>'],Th;function Uh(a){function b(){return c.call(this)||this}var c=Vh(a);n(b,c);return b}
function Vh(a){function b(){var a=c.call(this)||this;a.createdCallback();return a}if(a.__AMP_BASE_CE_CLASS)return a.__AMP_BASE_CE_CLASS;var c=a.HTMLElement;n(b,c);b.prototype.createdCallback=function(){this.zb=this.Dd=!1;this.rb=null;this.readyState="loading";this.everAttached=!1;this.j=this.w=null;this.layout_="nodisplay";this.de=this.Cb=-1;this.S=0;this.Ya=this.Qa=this.Fc=!1;this.wb=this.Vb=this.Gb=void 0;this.warnOnMissingOverflow=!0;this.Db=this.Pc=this.sizerElement=void 0;this.Qc=this.na=null;
this.layoutScheduleTime=this.U=void 0;var b=this,c=a.__AMP_EXTENDED_ELEMENTS&&a.__AMP_EXTENDED_ELEMENTS[this.localName];u().test&&b.implementationClassForTesting&&(c=b.implementationClassForTesting);this.implementation_=new c(this);this.Ea=1;this.Be=0;this.Pa=this.la=void 0;this.D=new wh;var g=Uc(a,"performance");this.oe=g&&g.isPerformanceTrackingOn();this.Nc=null;b.__AMP_UPG_RES&&(b.__AMP_UPG_RES(b),delete b.__AMP_UPG_RES,delete b.__AMP_UPG_PRM)};b.prototype.signals=function(){return this.D};b.prototype.getAmpDoc=
function(){return this.w};b.prototype.getResources=function(){return this.j};b.prototype.isUpgraded=function(){return 2==this.Ea};b.prototype.whenUpgraded=function(){return this.D.whenSignal("upgraded")};b.prototype.upgrade=function(a){this.Pa||1!=this.Ea||(this.implementation_=new a(this),this.everAttached&&this.ye())};b.prototype.getUpgradeDelayMs=function(){return this.Be};b.prototype.oc=function(b,c){this.Be=a.Date.now()-c;this.Ea=2;this.implementation_=b;this.classList.remove("amp-unresolved");
this.classList.remove("i-amphtml-unresolved");this.implementation_.createdCallback();this.Le();this.implementation_.layout_=this.layout_;this.implementation_.firstAttachedCallback();this.fa("amp:attached");this.getResources().upgraded(this);this.D.signal("upgraded")};b.prototype.Le=function(){"nodisplay"==this.layout_||this.implementation_.isLayoutSupported(this.layout_)||(E(this.getAttribute("layout"),"The element did not specify a layout attribute. Check https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/control_layout and the respective element documentation for details."),
E(!1,"Layout not supported: "+this.layout_))};b.prototype.isBuilt=function(){return this.Dd};b.prototype.whenBuilt=function(){return this.D.whenSignal("built")};b.prototype.getLayoutPriority=function(){this.isUpgraded();return this.implementation_.getLayoutPriority()};b.prototype.getLayoutWidth=function(){return this.Cb};b.prototype.getDefaultActionAlias=function(){this.isUpgraded();return this.implementation_.getDefaultActionAlias()};b.prototype.isBuilding=function(){return!!this.rb};b.prototype.build=
function(){var a=this;this.isUpgraded();return this.rb?this.rb:this.rb=(new Promise(function(b,c){var d=a.Ye();d?dd(a,"consentPolicyManager","amp-consent").then(function(a){return a?a.whenPolicyUnblock(d):!0}).then(function(d){d?b(a.implementation_.buildCallback()):c(Error("BLOCK_BY_CONSENT"))}):b(a.implementation_.buildCallback())})).then(function(){a.preconnect(!1);a.Dd=!0;a.classList.remove("i-amphtml-notbuilt");a.classList.remove("amp-notbuilt");a.D.signal("built");a.Qa&&a.ze(!0);a.la&&U(a.ownerDocument.defaultView).delay(a.Se.bind(a),
1);if(!a.getPlaceholder()){var b=a.createPlaceholder();b&&a.appendChild(b)}},function(b){a.D.rejectSignal("built",b);Kf(b)||If(b,a);throw b;})};b.prototype.preconnect=function(a){var b=this;a?this.implementation_.preconnectCallback(a):Kh(this.getAmpDoc(),function(){var c=b.tagName;b.ownerDocument?b.ownerDocument.defaultView?b.implementation_.preconnectCallback(a):C().error(c,"preconnect without defaultView"):C().error(c,"preconnect without ownerDocument")})};b.prototype.isAlwaysFixed=function(){return this.implementation_.isAlwaysFixed()};
b.prototype.updateLayoutBox=function(a,b){this.Cb=a.width;this.de=a.height;if(this.isBuilt())try{if(this.implementation_.onLayoutMeasure(),b)this.implementation_.onMeasureChanged()}catch(g){If(g,this)}};b.prototype.Qd=function(){void 0!==this.sizerElement||"responsive"!==this.layout_&&"intrinsic"!==this.layout_||(this.sizerElement=this.querySelector("i-amphtml-sizer"));return this.sizerElement||null};b.prototype.Df=function(a){if("responsive"===this.layout_)V(a,"paddingTop","0");else if("intrinsic"===
this.layout_){var b=a.querySelector(".i-amphtml-intrinsic-sizer");b&&b.setAttribute("src","")}};b.prototype.applySizesAndMediaQuery=function(){void 0===this.Gb&&(this.Gb=this.getAttribute("media")||null);if(this.Gb){var a=this.ownerDocument.defaultView;this.classList.toggle("i-amphtml-hidden-by-media-query",!a.matchMedia(this.Gb).matches)}if(void 0===this.Vb){var b=this.getAttribute("sizes"),c=this.hasAttribute("disable-inline-width");this.Vb=!c&&b?Dh(b):null}this.Vb&&V(this,"width",this.Vb.select(this.ownerDocument.defaultView));
void 0===this.wb&&"responsive"===this.layout_&&(this.wb=(b=this.getAttribute("heights"))?Dh(b,!0):null);this.wb&&(b=this.Qd())&&V(b,"paddingTop",this.wb.select(this.ownerDocument.defaultView))};b.prototype.applySize=function(a,b,c){var d=this.Qd();d&&(this.sizerElement=null,this.Df(d),this.Rc(function(){d&&vb(d)}));void 0!==a&&V(this,"height",a,"px");void 0!==b&&V(this,"width",b,"px");c&&(null!=c.top&&V(this,"marginTop",c.top,"px"),null!=c.right&&V(this,"marginRight",c.right,"px"),null!=c.bottom&&
V(this,"marginBottom",c.bottom,"px"),null!=c.left&&V(this,"marginLeft",c.left,"px"));this.jf()&&this.Kf();this.dispatchCustomEvent("amp:size-changed")};b.prototype.connectedCallback=function(){void 0===Th&&(Th="content"in self.document.createElement("template"));Th||void 0!==this.Pa||(this.Pa=!!Cb(this,"template"));if(!this.Pa&&!this.zb&&xb(this)){this.zb=!0;this.everAttached||(this.classList.add("i-amphtml-element"),this.classList.add("i-amphtml-notbuilt"),this.classList.add("amp-notbuilt"));if(!this.w){var a=
this.ownerDocument.defaultView,b=id(a).getAmpDoc(this);this.w=b;var c=this.tagName.toLowerCase();this.implementation_ instanceof nh&&!b.declaresExtension(c)&&jd(a).installExtensionForDoc(b,c)}this.j||(this.j=ld(this.w));this.getResources().add(this);if(this.everAttached){var h=this.reconstructWhenReparented();h&&this.qe();this.isUpgraded()&&(h&&this.getResources().upgraded(this),this.fa("amp:attached"))}else{this.everAttached=!0;try{var k=this.getAttribute("i-amphtml-layout");if(k){var l=Je(k);"responsive"!=
l&&"intrinsic"!=l||!this.firstElementChild?"nodisplay"==l&&(Ce(this,!1),this.style.display=""):this.sizerElement=this.querySelector("i-amphtml-sizer")||void 0;var m=l}else{var q=this.getAttribute("layout"),p=this.getAttribute("width"),t=this.getAttribute("height"),J=this.getAttribute("sizes"),w=this.getAttribute("heights"),A=q?Je(q):null;E(void 0!==A,'Invalid "layout" value: %s, %s',q,this);var D=p&&"auto"!=p?Le(p):p;E(void 0!==D,'Invalid "width" value: %s, %s',p,this);var Z=t&&"fluid"!=t?Le(t):t;
E(void 0!==Z,'Invalid "height" value: %s, %s',t,this);var La;if(!(La=A&&"fixed"!=A&&"fixed-height"!=A||D&&Z)){var vd=this.tagName;vd=vd.toUpperCase();La=void 0===Ge[vd]}if(La){var I=D;var T=Z}else{var cc=this.tagName.toUpperCase();if(!Ge[cc]){var wd=this.ownerDocument,ak=cc.replace(/^AMP\-/,""),Xa=wd.createElement(ak);Xa.controls=!0;Be(Xa,{position:"absolute",visibility:"hidden"});wd.body.appendChild(Xa);Ge[cc]={width:(Xa.offsetWidth||1)+"px",height:(Xa.offsetHeight||1)+"px"};wd.body.removeChild(Xa)}var fg=
Ge[cc];I=D||"fixed-height"==A?D:fg.width;T=Z||fg.height}var B=A?A:I||T?"fluid"==T?"fluid":!T||I&&"auto"!=I?T&&I&&(J||w)?"responsive":"fixed":"fixed-height":"container";"fixed"!=B&&"fixed-height"!=B&&"responsive"!=B&&"intrinsic"!=B||E(T,'The "height" attribute is missing: %s',this);"fixed-height"==B&&E(!I||"auto"==I,'The "width" attribute must be missing or "auto": %s',this);"fixed"!=B&&"responsive"!=B&&"intrinsic"!=B||E(I&&"auto"!=I,'The "width" attribute must be present and not "auto": %s',this);
"responsive"==B||"intrinsic"==B?E(Oe(I)==Oe(T),'Length units should be the same for "width" and "height": %s, %s, %s',p,t,this):E(null===w,'"heights" attribute must be missing: %s',this);this.classList.add("i-amphtml-layout-"+B);Ke(B)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==B)Ce(this,!1),this.style.display="";else if("fixed"==B)Be(this,{width:I,height:T});else if("fixed-height"==B)V(this,"height",T);else if("responsive"==B){var xd=this.ownerDocument.createElement("i-amphtml-sizer");
Be(xd,{paddingTop:Pe(T)/Pe(I)*100+"%"});this.insertBefore(xd,this.firstChild);this.sizerElement=xd}else if("intrinsic"==B){var yd=ve(this)(Ee);yd.firstElementChild.setAttribute("src",'data:image/svg+xml;charset=utf-8,<svg height="'+T+'" width="'+I+'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>');this.insertBefore(yd,this.firstChild);this.sizerElement=yd}else"fill"!=B&&"container"!=B&&("flex-item"==B?(I&&V(this,"width",I),T&&V(this,"height",T)):"fluid"==B&&(this.classList.add("i-amphtml-layout-awaiting-size"),
I&&V(this,"width",I),V(this,"height",0)));this.setAttribute("i-amphtml-layout",B);m=B}this.layout_=m}catch(bk){If(bk,this)}this.implementation_ instanceof nh||this.ye();this.isUpgraded()||(this.classList.add("amp-unresolved"),this.classList.add("i-amphtml-unresolved"),this.fa("amp:stubbed"));this.getResources().isIntersectionExperimentOn()&&this.applySizesAndMediaQuery()}}};b.prototype.jf=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")};b.prototype.Kf=function(){this.classList.remove("i-amphtml-layout-awaiting-size")};
b.prototype.attachedCallback=function(){this.connectedCallback()};b.prototype.ye=function(){var b=this,c=this.implementation_;if(1==this.Ea){this.Ea=4;var g=a.Date.now(),h=c.upgradeCallback();h?"function"==typeof h.then?h.then(function(a){b.oc(a||c,g)}).catch(function(a){b.Ea=3;gb(a)}):this.oc(h,g):this.oc(c,g)}};b.prototype.disconnectedCallback=function(){this.disconnect(!1)};b.prototype.detachedCallback=function(){this.disconnectedCallback()};b.prototype.disconnect=function(a){this.Pa||!this.zb||
!a&&xb(this)||(a&&this.classList.remove("i-amphtml-element"),this.zb=!1,this.getResources().remove(this),this.implementation_.detachedCallback())};b.prototype.dispatchCustomEvent=function(a,b){b=b||{};var c=this.ownerDocument.createEvent("Event");c.data=b;c.initEvent(a,!0,!0);this.dispatchEvent(c)};b.prototype.fa=function(a,b){u().test&&this.dispatchCustomEvent(a,b)};b.prototype.prerenderAllowed=function(){return this.implementation_.prerenderAllowed()};b.prototype.isBuildRenderBlocking=function(){return this.implementation_.isBuildRenderBlocking()};
b.prototype.createPlaceholder=function(){return this.implementation_.createPlaceholderCallback()};b.prototype.createLoaderLogo=function(){return this.implementation_.createLoaderLogoCallback()};b.prototype.renderOutsideViewport=function(){return this.implementation_.renderOutsideViewport()};b.prototype.idleRenderOutsideViewport=function(){return this.implementation_.idleRenderOutsideViewport()};b.prototype.getLayoutBox=function(){return this.Na().getLayoutBox()};b.prototype.getPageLayoutBox=function(){return this.Na().getPageLayoutBox()};
b.prototype.getOwner=function(){return this.Na().getOwner()};b.prototype.getIntersectionChangeEntry=function(){var a=this.implementation_.getIntersectionElementLayoutBox(),b=this.getOwner(),c=this.implementation_.getViewport().getRect(),h=b&&b.getLayoutBox(),k=bc(a,h,c)||L(0,0,0,0);b=k.width*k.height;var l=a.width*a.height;b=0===l?0:b/l;if(l=c)k=dc(k,-c.left,-c.top),a=dc(a,-c.left,-c.top),l=dc(l,-c.left,-c.top);return{time:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()-
Ch,rootBounds:l,boundingClientRect:a,intersectionRect:k,intersectionRatio:b}};b.prototype.Na=function(){return this.getResources().getResourceForElement(this)};b.prototype.getResourceId=function(){return this.Na().getId()};b.prototype.isRelayoutNeeded=function(){return this.implementation_.isRelayoutNeeded()};b.prototype.getImpl=function(a){var b=this,c=(a=void 0===a?!0:a)?this.whenBuilt():this.whenUpgraded();return c.then(function(){return b.implementation_})};b.prototype.getLayout=function(){return this.layout_};
b.prototype.layoutCallback=function(){var a=this;this.isBuilt();this.fa("amp:load-start");var b=0==this.S;this.D.reset("unload");b&&this.D.signal("load-start");this.oe&&this.Pd().startLayout();var c=lb(function(){return a.implementation_.layoutCallback()});this.preconnect(!0);this.classList.add("i-amphtml-layout");return c.then(function(){b&&a.D.signal("load-end");a.readyState="complete";a.S++;a.toggleLoading(!1,{cleanup:!0});a.Fc||(a.implementation_.firstLayoutCompleted(),a.Fc=!0,a.fa("amp:load-end"))},
function(c){b&&a.D.rejectSignal("load-end",c);a.S++;a.toggleLoading(!1,{cleanup:!0});throw c;})};b.prototype.isInViewport=function(){return this.Qa};b.prototype.viewportCallback=function(b){var c=this;if(b!=this.Qa&&this.ownerDocument&&this.ownerDocument.defaultView){this.Qa=b;if(0==this.S)if(b){var d=a.Date.now();U(this.ownerDocument.defaultView).delay(function(){c.Qa&&c.ownerDocument&&c.ownerDocument.defaultView&&0===c.S&&c.toggleLoading(!0,{startTime:d})},100)}else this.toggleLoading(!1);this.isBuilt()&&
this.ze(b)}};b.prototype.ze=function(a){this.implementation_.inViewport_=a;this.implementation_.viewportCallback(a);a&&this.oe&&this.Pd().enterViewport()};b.prototype.isPaused=function(){return this.Ya};b.prototype.pauseCallback=function(){this.Ya||(this.Ya=!0,this.viewportCallback(!1),this.isBuilt()&&this.implementation_.pauseCallback())};b.prototype.resumeCallback=function(){this.Ya&&(this.Ya=!1,this.isBuilt()&&this.implementation_.resumeCallback())};b.prototype.unlayoutCallback=function(){if(!this.isBuilt())return!1;
this.D.signal("unload");var a=this.implementation_.unlayoutCallback();a&&this.qe();this.fa("amp:unload");return a};b.prototype.qe=function(){this.S=0;this.Fc=!1;this.D.reset("render-start");this.D.reset("load-start");this.D.reset("load-end");this.D.reset("ini-load")};b.prototype.unlayoutOnPause=function(){return this.implementation_.unlayoutOnPause()};b.prototype.reconstructWhenReparented=function(){return this.implementation_.reconstructWhenReparented()};b.prototype.collapse=function(){this.implementation_.collapse()};
b.prototype.collapsedCallback=function(a){this.implementation_.collapsedCallback(a)};b.prototype.expand=function(){this.implementation_.expand()};b.prototype.expandedCallback=function(a){this.implementation_.expandedCallback(a)};b.prototype.mutatedAttributesCallback=function(a){this.implementation_.mutatedAttributesCallback(a)};b.prototype.enqueAction=function(a){this.isBuilt()?this.Md(a,!1):(void 0===this.la&&(this.la=[]),this.la.push(a))};b.prototype.Se=function(){var a=this;if(this.la){var b=this.la;
this.la=null;b.forEach(function(b){a.Md(b,!0)})}};b.prototype.Md=function(a,b){try{this.implementation_.executeAction(a,b)}catch(g){gb("Action execution failed:",g,a.node.tagName,a.method)}};b.prototype.Ye=function(){var a=this.getAttribute("data-block-on-consent");if(null===a)if((a=this.getAmpDoc().getMetaByName("amp-consent-blocking"))?(a=a.toUpperCase().replace(/\s+/g,""),a=a.split(",").includes(this.tagName)):a=!1,a)a="default",this.setAttribute("data-block-on-consent",a);else return null;return""==
a||"default"==a?this.implementation_.getConsentPolicy():a};b.prototype.getRealChildNodes=function(){return Gb(this,function(a){return!Wh(a)})};b.prototype.getRealChildren=function(){return Eb(this,function(a){return!Wh(a)})};b.prototype.getPlaceholder=function(){return Fb(this,function(a){return a.hasAttribute("placeholder")&&!("placeholder"in a)})};b.prototype.togglePlaceholder=function(a){if(a){var b=this.getPlaceholder();b&&b.classList.remove("amp-hidden")}else{/^[\w-]+$/.test("placeholder");var c=
(void 0!==ob?ob:ob=pb(this))?this.querySelectorAll("> [placeholder]".replace(/^|,/g,"$&:scope ")):Jb(this,"> [placeholder]");for(b=0;b<c.length;b++)"placeholder"in c[b]||c[b].classList.add("amp-hidden")}};b.prototype.getFallback=function(){return Hb(this,"fallback")};b.prototype.toggleFallback=function(a){var b=this.Na().getState();if(!a||0!=b&&1!=b&&2!=b)if(this.classList.toggle("amp-notsupported",a),1==a){var c=this.getFallback();c&&R(this.getAmpDoc(),"owners").scheduleLayout(this,c)}};b.prototype.renderStarted=
function(){this.D.signal("render-start");this.togglePlaceholder(!1);this.toggleLoading(!1)};b.prototype.Gc=function(){if(this.isInA4A())return!1;void 0===this.Pc&&(this.Pc=this.hasAttribute("noloading"));var a=0<this.S||this.D.get("render-start"),b;(b=this.Pc||a&&!this.implementation_.isLoadingReused()||0>=this.Cb)||(b=this.tagName.toUpperCase(),b=!(He[b]||("AMP-VIDEO"==b?0:Ie.test(b))));return b||Wh(this)||!Ke(this.layout_)?!1:!0};b.prototype.isInA4A=function(){return this.w&&this.w.win!=this.ownerDocument.defaultView||
"inabox"==u().runtime};b.prototype.Af=function(a){if(this.Gc()&&!this.na){var b=ve(this.ownerDocument)(Sh),c=yh(this.getAmpDoc(),this,this.Cb,this.de,a);b.appendChild(c);this.appendChild(b);this.na=b;this.Qc=c}};b.prototype.toggleLoading=function(a,b){var c=this,d=b&&b.cleanup,e=b&&b.startTime;if(a!==this.Db||b)if((this.Db=a)||this.na)a&&!this.Gc()?this.Db=!1:this.Rc(function(){var a=c.Db;a&&!c.Gc()&&(a=!1);a&&c.Af(e);if(c.na&&(c.na.classList.toggle("amp-hidden",!a),c.Qc.classList.toggle("amp-active",
a),!a&&d&&!c.implementation_.isLoadingReused())){var b=c.na;c.na=null;c.Qc=null;c.Rc(function(){vb(b)},void 0,!0)}},void 0,!0)};b.prototype.Pd=function(){this.Nc||(this.Nc=new ph(this.ownerDocument.defaultView,this.getLayoutPriority()));return this.Nc};b.prototype.getOverflowElement=function(){void 0===this.U&&(this.U=Hb(this,"overflow"))&&(this.U.hasAttribute("tabindex")||this.U.setAttribute("tabindex","0"),this.U.hasAttribute("role")||this.U.setAttribute("role","button"));return this.U};b.prototype.overflowCallback=
function(a,b,c){var d=this;this.getOverflowElement();this.U?(this.U.classList.toggle("amp-visible",a),this.U.onclick=a?function(){var a=S(d.getAmpDoc());a.forceChangeSize(d,b,c);a.mutateElement(d,function(){d.overflowCallback(!1,b,c)})}:null):a&&this.warnOnMissingOverflow&&z().warn("CustomElement","Cannot resize element and overflow is not available",this)};b.prototype.Rc=function(a,b,c){c=void 0===c?!1:c;this.w?S(this.getAmpDoc()).mutateElement(b||this,a,c):a()};a.__AMP_BASE_CE_CLASS=b;return a.__AMP_BASE_CE_CLASS}
function Wh(a){var b="string"==typeof a?a:a.tagName;return b&&K(b.toLowerCase(),"i-")||a.tagName&&(a.hasAttribute("placeholder")||a.hasAttribute("fallback")||a.hasAttribute("overflow"))?!0:!1};function Xh(a){a.__AMP_EXTENDED_ELEMENTS||(a.__AMP_EXTENDED_ELEMENTS={});return a.__AMP_EXTENDED_ELEMENTS}function Yh(a,b){try{a.upgrade(b)}catch(c){If(c,a)}}function Zh(a){gd(a.getHeadNode()).forEach(function(b){a.declareExtension(b);$h(a.win,b)})}function $h(a,b){Xh(a)[b]||ai(a,b,nh)}function ai(a,b,c){Xh(a)[b]=c;var d=Uh(a);a.customElements.define(b,d)};var bi="alt aria-describedby aria-label aria-labelledby referrerpolicy sizes src srcset title".split(" ");function ci(a){$e.call(this,a);this.pe=this.ob=!0;this.Zb=this.$b=this.C=null;this.ue=0}n(ci,$e);f=ci.prototype;
f.mutatedAttributesCallback=function(a){if(this.C){var b=bi.filter(function(b){return void 0!==a[b]});a.src&&!a.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),b.push("srcset"),this.user().warn("amp-img","Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element));this.propagateAttributes(b,this.C,!0);this.propagateDataset(this.C);lh(this.C)}};f.onMeasureChanged=function(){di(this,!1)};
f.preconnectCallback=function(a){var b=this.element.getAttribute("src");b?Q(this.win,"preconnect").url(this.getAmpDoc(),b,a):(b=this.element.getAttribute("srcset"))&&(b=/\S+/.exec(b))&&Q(this.win,"preconnect").url(this.getAmpDoc(),b[0],a)};f.firstAttachedCallback=function(){this.element.hasAttribute("noprerender")&&(this.pe=!1)};f.isLayoutSupported=function(a){return Ke(a)};
f.yb=function(){if(!this.C){this.ob=!this.element.hasAttribute("fallback");this.element.hasAttribute("i-amphtml-ssr")&&(this.C=this.element.querySelector("img"));this.C=this.C||new Image;this.C.setAttribute("decoding","async");this.element.id&&this.C.setAttribute("amp-img-id",this.element.id);"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error("amp-img","Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying <img> element."));
di(this,!0);this.propagateAttributes(bi,this.C);this.propagateDataset(this.C);lh(this.C);this.applyFillContent(this.C,!0);var a=this.element,b=this.C;a.hasAttribute("object-fit")&&V(b,"object-fit",a.getAttribute("object-fit"));a.hasAttribute("object-position")&&V(b,"object-position",a.getAttribute("object-position"));this.element.appendChild(this.C)}};
function di(a,b){if(a.C&&!a.element.getAttribute("sizes")){var c=a.element.getAttribute("srcset");if(c&&!/[0-9]+x(?:,|$)/.test(c)&&(c=a.element.getLayoutWidth(),ei(a,c))){var d=a.getViewport().getWidth(),e="(max-width: "+d+"px) "+c+"px, ",g=c+"px";"fixed"!==a.getLayout()&&(g=Math.max(Math.round(100*c/d),100)+"vw");var h=e+g;b?a.C.setAttribute("sizes",h):a.mutateElement(function(){a.C.setAttribute("sizes",h)});a.ue=c}}}function ei(a,b){return a.C.hasAttribute("sizes")?b>a.ue:!0}
f.prerenderAllowed=function(){return this.pe};f.reconstructWhenReparented=function(){return!1};f.layoutCallback=function(){var a=this;this.yb();var b=this.C;this.$b=Ue(b,"load",function(){return fi(a)});this.Zb=Ue(b,"error",function(){return gi(a)});return 0>=this.element.getLayoutWidth()?v():this.loadPromise(b)};
f.unlayoutCallback=function(){this.Zb&&(this.Zb(),this.Zb=null);this.$b&&(this.$b(),this.$b=null);var a=this.C;a&&!a.complete&&(a.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",vb(a),this.C=null);return!0};f.firstLayoutCompleted=function(){var a=this.getPlaceholder();a&&a.classList.contains("i-amphtml-blurry-placeholder")&&N(this.win,"blurry-placeholder")?Ae(a,{opacity:0}):this.togglePlaceholder(!1)};
function fi(a){!a.ob&&a.C.classList.contains("i-amphtml-ghost")&&a.getVsync().mutate(function(){a.C.classList.remove("i-amphtml-ghost");a.toggleFallback(!1)})}function gi(a){a.ob&&(a.getVsync().mutate(function(){a.C.classList.add("i-amphtml-ghost");a.toggleFallback(!0);a.togglePlaceholder(!1)}),a.ob=!1)};function hi(a){this.win=a;this.Me=this.vf.bind(this);this.Ne=this.wf.bind(this);this.jc=this.Bd=this.kc=null;this.xc="ontouchstart"in a||void 0!==a.navigator.maxTouchPoints&&0<a.navigator.maxTouchPoints||void 0!==a.DocumentTouch;this.Sa=!1;this.win.document.addEventListener("keydown",this.Me);this.win.document.addEventListener("mousedown",this.Ne);this.wc=!0;this.ie=0;this.Rf=new X;this.je=new X;this.Jc=new X;this.xc&&(this.wc=!this.xc,this.kc=this.xf.bind(this),Ve(a.document,"mousemove",this.kc))}
f=hi.prototype;f.setupInputModeClasses=function(a){var b=this;this.onTouchDetected(function(c){ii(b,a,"amp-mode-touch",c)},!0);this.onMouseDetected(function(c){ii(b,a,"amp-mode-mouse",c)},!0);this.onKeyboardStateChanged(function(c){ii(b,a,"amp-mode-keyboard-active",c)},!0)};f.isTouchDetected=function(){return this.xc};f.onTouchDetected=function(a,b){b&&a(this.isTouchDetected());return this.Rf.add(a)};f.isMouseDetected=function(){return this.wc};
f.onMouseDetected=function(a,b){b&&a(this.isMouseDetected());return this.je.add(a)};f.isKeyboardActive=function(){return this.Sa};f.onKeyboardStateChanged=function(a,b){b&&a(this.isKeyboardActive());return this.Jc.add(a)};function ii(a,b,c,d){b.waitForBodyOpen().then(function(b){var e=nd(a.win);e.mutate(function(){b.classList.toggle(c,d)})})}
f.vf=function(a){this.Sa||a.defaultPrevented||(a=a.target,a&&("INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"OPTION"==a.tagName||a.hasAttribute("contenteditable")))||(this.Sa=!0,this.Jc.fire(!0))};f.wf=function(){this.Sa&&(this.Sa=!1,this.Jc.fire(!1))};
f.xf=function(a){var b=this;if(a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents)this.he();else{this.jc||(this.jc=this.tf.bind(this),this.Bd=this.he.bind(this));var c,d=We(this.win.document,function(a){c=a});return U(this.win).timeoutPromise(300,d).then(this.Bd,function(){c&&c();b.jc()})}};f.tf=function(){this.wc=!0;this.je.fire(!0)};f.he=function(){this.ie++;3>=this.ie&&Ve(this.win.document,"mousemove",this.kc)};function ji(){$e.apply(this,arguments)}n(ji,$e);ji.prototype.isLayoutSupported=function(a){return"container"==a||Ke(a)};ji.prototype.buildCallback=function(){if("container"!=this.getLayout()){var a=this.win.document.createElement("div");this.applyFillContent(a);this.getRealChildNodes().forEach(function(b){a.appendChild(b)});this.element.appendChild(a)}};ji.prototype.prerenderAllowed=function(){return!0};function ki(a){return x(a)?a:[a]}function li(a){this.j=ld(a)}f=li.prototype;f.setOwner=function(a,b){b.contains(a);sh(a)&&sh(a).updateOwner(b);a.__AMP__OWNER=b;a=a.getElementsByClassName("i-amphtml-element");for(b=0;b<a.length;b++){var c=a[b];sh(c)&&sh(c).updateOwner(void 0)}};f.schedulePreload=function(a,b){mi(this,this.j.getResourceForElement(a),!1,ki(b))};f.scheduleLayout=function(a,b){mi(this,this.j.getResourceForElement(a),!0,ki(b))};
f.schedulePause=function(a,b){var c=this.j.getResourceForElement(a);b=ki(b);ni(this,c,b,function(a){a.pause()})};f.scheduleResume=function(a,b){a=this.j.getResourceForElement(a);b=ki(b);ni(this,a,b,function(a){a.resume()})};f.scheduleUnlayout=function(a,b){a=this.j.getResourceForElement(a);b=ki(b);ni(this,a,b,function(a){a.unlayout()})};f.updateInViewport=function(a,b,c){oi(this,this.j.getResourceForElement(a),ki(b),c)};
f.requireLayout=function(a,b){var c=this,d=[];pi(this,a,function(a){4!=a.getState()&&(3!=a.getState()?d.push(a.whenBuilt().then(function(){a.measure();if(a.isDisplayed())return c.j.scheduleLayoutOrPreload(a,!0,b,!0),a.loadedOnce()})):a.isDisplayed()&&d.push(a.loadedOnce()))});return Promise.all(d)};function ni(a,b,c,d){c.forEach(function(c){b.element.contains(c);pi(a,c,d)})}
function pi(a,b,c){if(b.classList.contains("i-amphtml-element"))c(a.j.getResourceForElement(b)),(b=b.getPlaceholder())&&pi(a,b,c);else{b=b.getElementsByClassName("i-amphtml-element");for(var d=[],e=0;e<b.length;e++){for(var g=b[e],h=!1,k=0;k<d.length;k++)if(d[k].contains(g)){h=!0;break}h||(d.push(g),c(a.j.getResourceForElement(g)))}}}function mi(a,b,c,d){ni(a,b,d,function(d){0===d.getState()?d.whenBuilt().then(function(){qi(a,d,!c,b.getLayoutPriority())}):qi(a,d,!c,b.getLayoutPriority())})}
function qi(a,b,c,d){b.measure();2===b.getState()&&b.isDisplayed()&&a.j.scheduleLayoutOrPreload(b,!c,d)}function oi(a,b,c,d){var e=b.isInViewport()&&d;ni(a,b,c,function(a){a.setInViewport(e)})};function ri(a,b){if("referrerPolicy"in Image.prototype)return si(a,b,!0);var c=wb(a.document);c.onload=function(){si(c.contentWindow,b)};a.document.body.appendChild(c);return c}function si(a,b,c){c=void 0===c?!1:c;a=new a.Image;c&&(a.referrerPolicy="no-referrer");a.src=b;return a};function ti(a){$e.call(this,a);this.ld=null}n(ti,$e);ti.prototype.isLayoutSupported=function(){return!0};ti.prototype.buildCallback=function(){this.element.setAttribute("aria-hidden","true");(this.Pb=this.element.getAttribute("referrerpolicy"))&&E("no-referrer"==this.Pb,'amp-pixel: invalid "referrerpolicy" value "'+this.Pb+'". Only "no-referrer" is supported');this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")?C().info("amp-pixel","inabox img already present"):this.getAmpDoc().whenFirstVisible().then(this.Sf.bind(this))};
ti.prototype.Sf=function(){var a=this;if(this.ld)return C().error("amp-pixel","duplicate pixel"),this.ld;this.ld=U(this.win).promise(1).then(function(){var b=a.element.getAttribute("src");if(b)return Mc(a.element,"url-replace").expandUrlAsync(ui(b)).then(function(b){if(a.win){var c=a.win,e=a.Pb;e&&"no-referrer"!==e&&z().error("pixel","Unsupported referrerPolicy: %s",e);var g="no-referrer"===e?ri(c,b):si(c,b);C().info("amp-pixel","pixel triggered: ",b);return g}})})};
function ui(a){E(/^(https:\/\/|\/\/)/i.test(a),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+a);return a};function vi(a){this.I=a.navigator;this.h=a}f=vi.prototype;f.isAndroid=function(){return/Android/i.test(this.I.userAgent)};f.isIos=function(){return/iPhone|iPad|iPod/i.test(this.I.userAgent)};f.isSafari=function(){return/Safari/i.test(this.I.userAgent)&&!this.isChrome()&&!this.isIe()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()};f.isChrome=function(){return/Chrome|CriOS/i.test(this.I.userAgent)&&!this.isEdge()&&!this.isOpera()};
f.isFirefox=function(){return/Firefox|FxiOS/i.test(this.I.userAgent)&&!this.isEdge()};f.isOpera=function(){return/OPR\/|Opera|OPiOS/i.test(this.I.userAgent)};f.isIe=function(){return/Trident|MSIE|IEMobile/i.test(this.I.userAgent)};f.isEdge=function(){return/Edge/i.test(this.I.userAgent)};f.isWebKit=function(){return/WebKit/i.test(this.I.userAgent)&&!this.isEdge()};f.isWindows=function(){return/Windows/i.test(this.I.userAgent)};
f.isStandalone=function(){return this.isIos()&&this.I.standalone||this.isChrome()&&this.h.matchMedia("(display-mode: standalone)").matches};f.isBot=function(){return/bot/i.test(this.I.userAgent)};
f.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:wi(this,/\sVersion\/(\d+)/,1):this.isChrome()?wi(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?wi(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?wi(this,/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isIe()?wi(this,/MSIE\s(\d+)/,1):this.isEdge()?wi(this,/Edge\/(\d+)/,1):0};function wi(a,b,c){if(!a.I.userAgent)return 0;a=a.I.userAgent.match(b);return!a||c>=a.length?0:parseInt(a[c],10)}
f.getIosVersionString=function(){if(!this.I.userAgent||!this.isIos())return"";var a=this.I.userAgent.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/);return a?a=a[1].replace(/_/g,"."):""};f.getIosMajorVersion=function(){var a=this.getIosVersionString();return""==a?null:Number(a.split(".")[0])};function xi(a){return"loading"!=a.readyState&&"uninitialized"!=a.readyState}function yi(a){return"complete"==a.readyState}function zi(a,b){Ai(a,xi,b)}function Ai(a,b,c){var d=b(a);if(d)c(a);else{var e=function(){b(a)&&(d||(d=!0,c(a)),a.removeEventListener("readystatechange",e))};a.addEventListener("readystatechange",e)}}function Bi(a){return new Promise(function(b){zi(a,b)})}function Ci(a){return new Promise(function(b){Ai(a,yi,b)})};var Di=["<link rel=preload referrerpolicy=origin>"],Ei=null;function Fi(a){this.rc=a.document;this.yc=a.document.head;this.Xa={};this.Ce={};this.V=kd(a);this.Xa[M(a.location.href).origin]=!0;a:{if(!Ei){var b=a.document.createElement("link");var c=b.relList;b.as="invalid-value";if(!c||!c.supports){b={};break a}Ei={preconnect:c.supports("preconnect"),preload:c.supports("preload"),onlyValidAs:"invalid-value"!=b.as}}b=Ei}this.tb=b;this.ka=U(a)}
Fi.prototype.url=function(a,b,c){var d=this;a.whenFirstVisible().then(function(){d.mb(a,b,c)})};
Fi.prototype.mb=function(a,b,c){if(Gi(b)){a=M(b).origin;b=Date.now();var d=this.Xa[a];if(d&&b<d)c&&(this.Xa[a]=b+18E4);else{this.Xa[a]=b+(c?18E4:1E4);if(!this.tb.preconnect){var e=this.rc.createElement("link");e.setAttribute("rel","dns-prefetch");e.setAttribute("href",a);this.yc.appendChild(e)}var g=this.rc.createElement("link");g.setAttribute("rel","preconnect");g.setAttribute("href",a);g.setAttribute("referrerpolicy","origin");this.yc.appendChild(g);this.ka.delay(function(){e&&e.parentNode&&e.parentNode.removeChild(e);
g.parentNode&&g.parentNode.removeChild(g)},1E4);Hi(this,a)}}};Fi.prototype.preload=function(a,b,c){var d=this;Gi(b)&&!this.Ce[b]&&(this.Ce[b]=!0,this.url(a,b,!0),this.tb.preload&&("document"==c&&this.V.isSafari()||a.whenFirstVisible().then(function(){var a=ve(d.rc)(Di);a.setAttribute("href",b);a.as=d.tb.onlyValidAs?"fetch":"";d.yc.appendChild(a)})))};function Gi(a){return K(a,"https:")||K(a,"http:")?!0:!1}
function Hi(a,b){if(!a.tb.preconnect&&(a.V.isSafari()||a.V.isIos())){var c=Date.now();a.Xa[b]=c+18E4;var d=c-c%18E4;a=new XMLHttpRequest;a.open("HEAD",b+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+d,!0);a.withCredentials=!0;a.send()}};var Ii=/^i-amphtml-/;
function Ji(a,b){this.ampdoc=a;b=b?b.document.documentElement:a.getHeadNode();this.ya=S(a);this.bc=od(a);a=Mc(b,"action");a.addGlobalTarget("AMP",this.Ze.bind(this));a.addGlobalMethodHandler("hide",this.Sd.bind(this));a.addGlobalMethodHandler("show",this.Ud.bind(this));a.addGlobalMethodHandler("toggleVisibility",this.bf.bind(this));a.addGlobalMethodHandler("scrollTo",this.Td.bind(this));a.addGlobalMethodHandler("focus",this.$e.bind(this));a.addGlobalMethodHandler("toggleClass",this.af.bind(this))}
Ji.installInEmbedWindow=function(a,b){Sc(a,"standard-actions",new Ji(b,a))};f=Ji.prototype;
f.Ze=function(a){if(!a.satisfiesTrust(2))return null;var b=a.node,c=a.method,d=a.args,e=(b.ownerDocument||b).defaultView;switch(c){case "pushState":case "setState":return fd(b.nodeType===Node.DOCUMENT_NODE?b.documentElement:b).then(function(b){E(b,"AMP-BIND is not installed.");return b.invoke(a)});case "navigateTo":return Ki(this,a);case "closeOrNavigateTo":return Li(this,a);case "scrollTo":return E(d.id,"AMP.scrollTo must provide element ID"),a.node=Qc(b).getElementById(d.id),this.Td(a);case "goBack":return R(this.ampdoc,
"history").goBack(),null;case "print":return e.print(),null;case "optoutOfCid":return Zc(Rc(this.ampdoc),"cid").then(function(a){return a.optOut()}).catch(function(a){C().error("STANDARD-ACTIONS","Failed to opt out of CID",a)})}throw z().createError("Unknown AMP action ",c);};
function Ki(a,b){var c=b.node,d=b.caller,e=b.method,g=b.args,h=(c.ownerDocument||c).defaultView;b=v();K(d.tagName,"AMP-")&&(b=d.getImpl().then(function(a){"function"==typeof a.throwIfCannotNavigate&&a.throwIfCannotNavigate()}));return b.then(function(){R(a.ampdoc,"navigation").navigateTo(h,g.url,"AMP."+e,{target:g.target,opener:g.opener})},function(a){z().error("STANDARD-ACTIONS",a.message)})}
function Li(a,b){var c=b.node;c=(c.ownerDocument||c).defaultView;var d=c.parent!=c,e=c.opener&&a.ampdoc.isSingleDoc()&&!d,g=!1;e&&(c.close(),g=c.closed);return g?v():Ki(a,b)}f.Td=function(a){var b=a.node,c=(a=a.args)&&a.position,d=a&&a.duration;c&&!["top","bottom","center"].includes(c)&&(c=void 0);Ma(d)||(d=void 0);return this.bc.animateScrollIntoView(b,c,d)};f.$e=function(a){Mb(a.node);return null};
f.Sd=function(a){var b=a.node;b.classList.contains("i-amphtml-element")?this.ya.mutateElement(b,function(){return b.collapse()},!0):this.ya.mutateElement(b,function(){return Ce(b,!1)});return null};
f.Ud=function(a){var b=a.node,c=b.ownerDocument.defaultView;if(b.classList.contains("i-amphtml-layout-nodisplay"))return z().warn("STANDARD-ACTIONS","Elements with layout=nodisplay cannot be dynamically shown.",b),null;this.ya.measureElement(function(){"none"!=(c.getComputedStyle(b)||F()).display||b.hasAttribute("hidden")||z().warn("STANDARD-ACTIONS",'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',b)});var d=b.hasAttribute("autofocus")?
b:b.querySelector("[autofocus]");d&&kd(c).isIos()?(Mi(b,d),this.ya.mutateElement(b,function(){})):this.ya.mutateElement(b,function(){Mi(b,d)});return null};function Mi(a,b){a.classList.contains("i-amphtml-element")?a.expand():Ce(a,!0);b&&Mb(b)}f.bf=function(a){return a.node.hasAttribute("hidden")?this.Ud(a):this.Sd(a)};
f.af=function(a){var b=a.node,c=a.args,d=z().assertString(c["class"],"Argument 'class' must be a string.");if(Ii.test(d))return null;this.ya.mutateElement(b,function(){if(void 0!==c.force){var a=z().assertBoolean(c.force,"Optional argument 'force' must be a boolean.");b.classList.toggle(d,a)}else b.classList.toggle(d)});return null};var Ni;function Oi(a){this.win=a;this.Ef=this.win.Promise.resolve();this.Qf=0;this.nc={};this.Mf=Date.now()}f=Oi.prototype;f.timeSinceStart=function(){return Date.now()-this.Mf};f.delay=function(a,b){var c=this;if(!b){var d="p"+this.Qf++;this.Ef.then(function(){c.nc[d]?delete c.nc[d]:a()}).catch(If);return d}b=this.win.setTimeout(function(){try{a()}catch(e){throw If(e),e;}},b);u().test&&(Ni||(Ni=[]),Ni.push(b));return b};f.cancel=function(a){"string"==typeof a?this.nc[a]=!0:this.win.clearTimeout(a)};
f.promise=function(a){var b=this;return new this.win.Promise(function(c){var d=b.delay(c,a);if(-1==d)throw Error("Failed to schedule timer.");})};f.timeoutPromise=function(a,b,c){function d(){e.cancel(g)}var e=this,g,h=new this.win.Promise(function(b,d){g=e.delay(function(){d(z().createError(c||"timeout"))},a);if(-1==g)throw Error("Failed to schedule timer.");});if(!b)return h;b.then(d,d);return this.win.Promise.race([h,b])};
f.poll=function(a,b){var c=this;return new this.win.Promise(function(d){var e=c.win.setInterval(function(){b()&&(c.win.clearInterval(e),d())},a)})};function Pi(a,b){a=b||a.getRootNode();this.Ke=(a.ownerDocument||a).createElement("a");this.ta=new ic}Pi.installInEmbedWindow=function(a,b){Sc(a,"url",new Pi(b,a.document))};f=Pi.prototype;f.parse=function(a,b){return sc(this.Ke,a,b?null:this.ta)};function Qi(a,b){return"string"!==typeof b?b:a.parse(b)}f.isProtocolValid=function(a){return Ac(a)};f.getSourceOrigin=function(a){return M(Dc(Qi(this,a))).origin};f.getSourceUrl=function(a){return Dc(Qi(this,a))};
f.assertHttpsUrl=function(a,b,c){return xc(a,b,void 0===c?"source":c)};f.assertAbsoluteHttpOrHttpsUrl=function(a){E(/^https?:/i.test(a),'URL must start with "http://" or "https://". Invalid value: %s',a);return M(a).href};f.isProxyOrigin=function(a){return zc(Qi(this,a))};f.isSecure=function(a){return wc(Qi(this,a))};f.getWinOrigin=function(a){return a.origin||Qi(this,a.location.href).origin};
f.getCdnUrlOnOrigin=function(a){if(zc(a))return a;var b=Qi(this,a),c=b.host,d=b.hash,e=b.pathname;b=b.search;var g=encodeURIComponent(c);return Qa.cdn+"/c/"+g+e+b+d};var Ri={navigationStart:1,redirectStart:1,redirectEnd:1,fetchStart:1,domainLookupStart:1,domainLookupEnd:1,connectStart:1,secureConnectionStart:1,connectEnd:1,requestStart:1,responseStart:1,responseEnd:1,domLoading:2,domInteractive:2,domContentLoaded:2,domComplete:2,loadEventStart:3,loadEventEnd:4};
function Si(a,b,c){var d=Ri[b]||3,e=c?Ri[c]||3:d,g=Math.max(d,e);if(1===g)var h=v();else if(2===g)h=Ci(a.document);else if(3===g)h=Ze(a);else if(4===g){var k=U(a);h=Ze(a).then(function(){return k.promise(1)})}return h.then(function(){return Ti(a,b,c)})}function Ti(a,b,c){var d=a.performance&&a.performance.timing;if(d&&0!=d.navigationStart){var e=void 0===c?d[b]:d[c]-d[b];if(Ma(e)&&!(0>e))return e}}function Ui(a,b){var c=a.performance&&a.performance.navigation;if(c&&void 0!==c[b])return c[b]}
function Vi(a){this.ampdoc=a;this.ja=Object.create(null);this.Dc=!1;Wi(this)}f=Vi.prototype;f.yb=function(){this.initialize();this.Dc=!0};f.initialize=function(){};f.get=function(a){this.Dc||this.yb();return this.ja[a]};f.set=function(a,b){a.indexOf("RETURN");this.ja[a]=this.ja[a]||{sync:void 0,async:void 0};this.ja[a].sync=b;return this};f.setAsync=function(a,b){a.indexOf("RETURN");this.ja[a]=this.ja[a]||{sync:void 0,async:void 0};this.ja[a].async=b;return this};
f.setBoth=function(a,b,c){return this.set(a,b).setAsync(a,c)};f.getExpr=function(a,b){this.Dc||this.yb();var c=Object.assign({},this.ja,a);return Xi(this,Object.keys(c),b)};function Xi(a,b,c){Wi(a)&&(b=b.filter(function(b){return Wi(a).includes(b)}));c&&(b=b.filter(function(a){return c[a]}));if(0===b.length){var d=/_^/g;return d}b.sort(function(a,b){return b.length-a.length});var e="\\$?("+b.map(function(a){return"$"===a[0]?"\\"+a:a}).join("|")+")";return new RegExp(e,"g")}
function Wi(a){if(a.od)return a.od;var b=a.ampdoc.getMetaByName("amp-allowed-url-macros");if(null===b)return null;a.od=b.split(",").map(function(a){return a.trim()});return a.od};function Yi(a,b,c,d,e,g){this.R=a;this.Ha=b;this.Gd=c;this.Ca=d;this.He=e;this.Ue=!g}Yi.prototype.expand=function(a){if(!a.length)return this.Ca?a:Promise.resolve(a);var b=this.R.getExpr(this.Ha,this.He);b=Zi(a,b);return b.length?$i(this,a,b):this.Ca?a:Promise.resolve(a)};Yi.prototype.getMacroNames=function(a){var b=this.R.getExpr(this.Ha,this.He);return(a=a.match(b))?a:[]};
function Zi(a,b){var c=[];a.replace(b,function(a,b,g){a=a.length;var d=a+g-1;c.push({start:g,stop:d,name:b,length:a})});return c}
function $i(a,b,c){function d(q){for(var p="",t=[],J=[];g<b.length&&h<=c.length;){var w=p.trim();if(k&&g===k.start)w&&t.push(l?qb(p):p),p=void 0,p=a.Ha&&kb.call(a.Ha,k.name)?{name:k.name,prioritized:a.Ha[k.name],encode:q}:Object.assign({},a.R.get(k.name),{name:k.name,encode:q}),g=k.stop+1,k=c[++h],"("===b[g]?(g++,l++,e.push(p),t.push(d(!1))):t.push(aj(a,p)),p="";else{if("`"===b[g])m?(m=!1,p.length&&t.push(p)):(m=!0,w&&t.push(w)),p="";else if(l&&","===b[g]&&!m)w&&t.push(w),J.push(t),t=[],","===b[g+
1]&&(J.push([""]),g++),p="";else{if(l&&")"===b[g]&&!m)return g++,l--,p=e.pop(),w&&t.push(w),J.push(t),aj(a,p,J);p+=b[g]}g++}g===b.length&&p.length&&t.push(p)}return a.Ca?t.join(""):Promise.all(t).then(function(a){return a.join("")}).catch(function(a){gb(a);return""})}var e=[],g=0,h=0,k=c[h],l=0,m=!1;return d(a.Ue)}
function aj(a,b,c){var d=b,e=d.encode;d=d.name;if(void 0!=b.prioritized)var g=b.prioritized;else a.Ca&&void 0!=b.sync?g=b.sync:a.Ca?(z().error("Expander","ignoring async replacement key: ",b.name),g=""):g=b.async||b.sync;return a.Ca?(a=bj(a,g,d,c),e?encodeURIComponent(a):a):cj(a,g,d,c).then(function(a){return e?encodeURIComponent(a):a})}
function cj(a,b,c,d){try{var e="function"===typeof b?d?dj(d).then(function(a){return b.apply(null,a)}):lb(b):Promise.resolve(b);return e.then(function(b){ej(a,c,b,d);return null==b?"":b}).catch(function(b){gb(b);ej(a,c,"",d);return Promise.resolve("")})}catch(g){return gb(g),ej(a,c,"",d),Promise.resolve("")}}function dj(a){return Promise.all(a.map(function(a){return Promise.all(a).then(function(a){return a.join("")})}))}
function bj(a,b,c,d){try{var e=b;"function"===typeof b&&(e=b.apply(null,fj(d)));if(e&&e.then){z().error("Expander","ignoring async macro resolution");var g=""}else"string"===typeof e||"number"===typeof e||"boolean"===typeof e?(ej(a,c,e,d),g=e.toString()):(ej(a,c,"",d),g="");return g}catch(h){return gb(h),ej(a,c,"",d),""}}function fj(a){return a?a.map(function(a){return a.join("")}):a}
function ej(a,b,c,d){if(a.Gd){var e="";if(d){var g=d.filter(function(a){return""!==a}).join(",");e="("+g+")"}a.Gd[""+b+e]=c||""}};function gj(a){return function(){return(new Date)[a]()}}function hj(a,b){return function(){return a[b]}}function ij(a){Vi.call(this,a);this.fd=null}n(ij,Vi);function jj(a,b,c,d){a.setBoth(b,function(){return Ti(a.ampdoc.win,c,d)},function(){return Si(a.ampdoc.win,c,d)})}
ij.prototype.initialize=function(){function a(){var a=Y(b);return yc(kj(b,a.sourceUrl))}var b=this,c=this.ampdoc.win,d=this.ampdoc.getHeadNode(),e=od(this.ampdoc);this.set("RANDOM",function(){return Math.random()});var g=Object.create(null);this.set("COUNTER",function(a){return g[a]=(g[a]|0)+1});this.set("CANONICAL_URL",function(){return Y(b).canonicalUrl});this.set("CANONICAL_HOST",function(){return M(Y(b).canonicalUrl).host});this.set("CANONICAL_HOSTNAME",function(){return M(Y(b).canonicalUrl).hostname});
this.set("CANONICAL_PATH",function(){return M(Y(b).canonicalUrl).pathname});this.setAsync("DOCUMENT_REFERRER",function(){return md(b.ampdoc).getReferrerUrl()});this.setAsync("EXTERNAL_REFERRER",function(){return md(b.ampdoc).getReferrerUrl().then(function(a){if(!a)return null;var b=M(Dc(a)).hostname,d=c.location.hostname;return b===d?null:a})});this.set("TITLE",function(){var a=c.document;return a.originalTitle||a.title});this.set("AMPDOC_URL",function(){return yc(kj(b,c.location.href))});this.set("AMPDOC_HOST",
function(){var a=M(c.location.href);return a&&a.host});this.set("AMPDOC_HOSTNAME",function(){var a=M(c.location.href);return a&&a.hostname});this.setBoth("SOURCE_URL",function(){return a()},function(){return ee().then(function(){return a()})});this.set("SOURCE_HOST",function(){return M(Y(b).sourceUrl).host});this.set("SOURCE_HOSTNAME",function(){return M(Y(b).sourceUrl).hostname});this.set("SOURCE_PATH",function(){return M(Y(b).sourceUrl).pathname});this.set("PAGE_VIEW_ID",function(){return Y(b).pageViewId});
this.setAsync("PAGE_VIEW_ID_64",function(){return Y(b).pageViewId64});this.setBoth("QUERY_PARAM",function(a,c){return lj(b,a,void 0===c?"":c)},function(a,c){c=void 0===c?"":c;return ee().then(function(){return lj(b,a,c)})});this.set("FRAGMENT_PARAM",function(a,c){c=void 0===c?"":c;E(a,"The first argument to FRAGMENT_PARAM, the fragment string param is required");E("string"==typeof a,"param should be a string");var d=r(b.ampdoc.win.location.originalHash);return void 0===d[a]?c:d[a]});var h=null;this.setBoth("CLIENT_ID",
function(a){return h?h[a]:null},function(a,c,e){E(a,"The first argument to CLIENT_ID, the fallback Cookie name, is required");var g=v();c&&(g=cd(d,"userNotificationManager","amp-user-notification").then(function(a){return a.get(c)}));return Zc(Rc(b.ampdoc),"cid").then(function(b){return b.get({scope:a,createCookieIfNotPresent:!0,cookieName:e},g)}).then(function(b){h||(h=Object.create(null));var c=e||a;b&&"_ga"==c&&("string"===typeof b?b=b.replace(/^(GA1|1)\.[\d-]+\./,""):C().error("UrlReplacements",
"non-string cid, what is it?",Object.keys(b)));return h[a]=b})});this.setAsync("VARIANT",function(a){return mj(b,function(b){var c=b[a];E(void 0!==c,"The value passed to VARIANT() is not a valid experiment in <amp-experiment>:"+a);return null===c?"none":c},"VARIANT")});this.setAsync("VARIANTS",function(){return mj(b,function(a){var b=[],c;for(c in a)b.push(c+"."+(a[c]||"none"));return b.join("!")},"VARIANTS")});this.setAsync("AMP_GEO",function(a){return nj(b,function(b){return a?(E("ISOCountry"===
a,"The value passed to AMP_GEO() is not valid name:"+a),b[a]||"unknown"):b.matchedISOCountryGroups.join(",")})});this.setAsync("SHARE_TRACKING_INCOMING",function(){return oj(b,function(a){return a.incomingFragment},"SHARE_TRACKING_INCOMING")});this.setAsync("SHARE_TRACKING_OUTGOING",function(){return oj(b,function(a){return a.outgoingFragment},"SHARE_TRACKING_OUTGOING")});this.set("TIMESTAMP",gj("getTime"));this.set("TIMESTAMP_ISO",gj("toISOString"));this.set("TIMEZONE",gj("getTimezoneOffset"));this.set("SCROLL_HEIGHT",
function(){return e.getScrollHeight()});this.set("SCROLL_WIDTH",function(){return e.getScrollWidth()});this.set("VIEWPORT_HEIGHT",function(){return e.getHeight()});this.set("VIEWPORT_WIDTH",function(){return e.getWidth()});var k=c.screen;this.set("SCREEN_WIDTH",hj(k,"width"));this.set("SCREEN_HEIGHT",hj(k,"height"));this.set("AVAILABLE_SCREEN_HEIGHT",hj(k,"availHeight"));this.set("AVAILABLE_SCREEN_WIDTH",hj(k,"availWidth"));this.set("SCREEN_COLOR_DEPTH",hj(k,"colorDepth"));this.set("DOCUMENT_CHARSET",
function(){var a=c.document;return a.characterSet||a.charset});this.set("BROWSER_LANGUAGE",function(){var a=c.navigator;return(a.language||a.userLanguage||a.browserLanguage||"").toLowerCase()});this.set("USER_AGENT",function(){return c.navigator.userAgent});jj(this,"PAGE_LOAD_TIME","navigationStart","loadEventStart");jj(this,"DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd");jj(this,"TCP_CONNECT_TIME","connectStart","connectEnd");jj(this,"SERVER_RESPONSE_TIME","requestStart","responseStart");
jj(this,"PAGE_DOWNLOAD_TIME","responseStart","responseEnd");jj(this,"REDIRECT_TIME","navigationStart","fetchStart");jj(this,"DOM_INTERACTIVE_TIME","navigationStart","domInteractive");jj(this,"CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart");this.setAsync("ACCESS_READER_ID",function(){return pj(b,function(a){return a.getAccessReaderId()},"ACCESS_READER_ID")});this.setAsync("AUTHDATA",function(a){E(a,"The first argument to AUTHDATA, the field, is required");return pj(b,function(b){return b.getAuthdataField(a)},
"AUTHDATA")});this.setAsync("VIEWER",function(){return md(b.ampdoc).getViewerOrigin().then(function(a){return void 0==a?"":a})});this.setAsync("TOTAL_ENGAGED_TIME",function(){return cd(d,"activity","amp-analytics").then(function(a){return a.getTotalEngagedTime()})});this.setAsync("INCREMENTAL_ENGAGED_TIME",function(a,b){return cd(d,"activity","amp-analytics").then(function(c){return c.getIncrementalEngagedTime(a,"false"!==b)})});this.set("NAV_TIMING",function(a,b){E(a,"The first argument to NAV_TIMING, the start attribute name, is required");
return Ti(c,a,b)});this.setAsync("NAV_TIMING",function(a,b){E(a,"The first argument to NAV_TIMING, the start attribute name, is required");return Si(c,a,b)});this.set("NAV_TYPE",function(){return Ui(c,"type")});this.set("NAV_REDIRECT_COUNT",function(){return Ui(c,"redirectCount")});this.set("AMP_VERSION",function(){return"2005012256000"});this.set("BACKGROUND_STATE",function(){return b.ampdoc.isVisible()?"0":"1"});this.setAsync("VIDEO_STATE",function(a,c){return R(b.ampdoc,"video-manager").getVideoStateProperty(a,
c)});this.setAsync("AMP_STATE",function(a){var c=b.ampdoc.getRootNode();return fd(c.documentElement||c).then(function(b){return b?b.getStateValue(a)||"":""})})};function kj(a,b){if(a=Y(a).replaceParams){var c=Bc(b),d=M(c);d=r(d.search);for(var e=G({}),g=Object.keys(a),h=0;h<g.length;h++)kb.call(d,g[h])||(e[g[h]]=a[g[h]]);a=uc(c,e)}else a=b;return a}function Y(a){return R(a.ampdoc,"documentInfo").get()}
function pj(a,b,c){a=a.ampdoc.getHeadNode();return Promise.all([dd(a,"access","amp-access"),dd(a,"subscriptions","amp-subscriptions")]).then(function(a){a=a[0]||a[1];return a?b(a):(z().error("UrlReplacements","Access or subsciptions service is not installed to access: ",c),null)})}
function lj(a,b,c){E(b,"The first argument to QUERY_PARAM, the query string param is required");var d=M(Bc(a.ampdoc.win.location.href));d=r(d.search);a=Y(a).replaceParams;return"undefined"!==typeof d[b]?d[b]:a&&"undefined"!==typeof a[b]?a[b]:c}function mj(a,b,c){return dd(a.ampdoc.getHeadNode(),"variant","amp-experiment",!0).then(function(a){E(a,"To use variable %s, amp-experiment should be configured",c);return a.getVariants()}).then(function(a){return b(a)})}
function nj(a,b){a=a.ampdoc.getHeadNode();return dd(a,"geo","amp-geo",!0).then(function(a){E(a,"To use variable %s, amp-geo should be configured","AMP_GEO");return b(a)})}function oj(a,b,c){a.fd||(a.fd=ad(a.ampdoc.win));return a.fd.then(function(a){E(a,"To use variable %s, amp-share-tracking should be configured",c);return b(a)})}function qj(a,b){this.ampdoc=a;this.R=b}f=qj.prototype;f.expandStringSync=function(a,b,c,d){return(new Yi(this.R,b,c,!0,d,!0)).expand(a)};
f.expandStringAsync=function(a,b,c){return(new Yi(this.R,b,void 0,void 0,c,!0)).expand(a)};f.expandUrlSync=function(a,b,c,d){return rj(a,(new Yi(this.R,b,c,!0,d)).expand(a))};f.expandUrlAsync=function(a,b,c,d){return(new Yi(this.R,b,void 0,void 0,c,d)).expand(a).then(function(b){return rj(a,b)})};f.expandInputValueAsync=function(a){return sj(this,a,!1)};f.expandInputValueSync=function(a){return sj(this,a,!0)};
function sj(a,b,c){"INPUT"==b.tagName&&(b.getAttribute("type")||"").toLowerCase();var d=tj(b);if(!d)return c?b.value:Promise.resolve(b.value);void 0===b["amp-original-value"]&&(b["amp-original-value"]=b.value);a=(new Yi(a.R,void 0,void 0,c,d)).expand(b["amp-original-value"]||b.value);return c?b.value=a:a.then(function(a){return b.value=a})}
function tj(a,b){if(a=a.getAttribute("data-amp-replace")){var c={};a.trim().split(/\s+/).forEach(function(a){!b||kb.call(b,a)?c[a]=!0:z().warn("URL","Ignoring unsupported replacement",a)});return c}}
f.maybeExpandLink=function(a,b){var c={CLIENT_ID:!0,QUERY_PARAM:!0,PAGE_VIEW_ID:!0,PAGE_VIEW_ID_64:!0,NAV_TIMING:!0},d=a.getAttribute("data-amp-addparams")||"",e=tj(a,c);if(e||d||b){var g=a["amp-original-href"]||a.getAttribute("href"),h=M(g);null==a["amp-original-href"]&&(a["amp-original-href"]=g);a:{var k=R(this.ampdoc,"documentInfo").get();if(h.origin==M(k.canonicalUrl).origin||h.origin==M(k.sourceUrl).origin)h=!0;else{if(k=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin")){k=k.trim().split(/\s+/);
for(var l=0;l<k.length;l++)if(h.origin==M(k[l]).origin){h=!0;break a}}h=!1}}var m=h;d&&(d=m?uj(this,d,e):d,g=uc(g,r(d)));if(!m)return e&&z().warn("URL","Ignoring link replacement %s because the link does not go to the document's source, canonical, or whitelisted origin.",g),a.href=g;if(b){if(!e||!e.QUERY_PARAM){var q={QUERY_PARAM:!0};b=this.expandUrlSync(b,void 0,void 0,q)}g=uc(g,r(b))}g=uj(this,g,e);return a.href=g}};function uj(a,b,c){return c?a.expandUrlSync(b,void 0,void 0,c):b}
f.collectVars=function(a,b){var c=Object.create(null);return(new Yi(this.R,b,c)).expand(a).then(function(){return c})};f.collectUnwhitelistedVarsSync=function(a){var b=a.getAttribute("src"),c=(new Yi(this.R)).getMacroNames(b),d=tj(a);return d?c.filter(function(a){return!d[a]}):c};function rj(a,b){var c=M(b,!0).protocol,d=M(a,!0).protocol;if(c!=d)return z().error("UrlReplacements","Illegal replacement of the protocol: ",a),a;E(Ac(b),"The replacement url has invalid protocol: %s",b);return b}
f.getVariableSource=function(){return this.R};function vj(a){P(a,"url-replace",function(a){return new qj(a,new ij(a))})};function wj(a,b,c){var d=new xj(a,b,c);d.solveYValueFromXValue.bind(d)}function xj(a,b,c){var d=1,e=1;this.y0=this.x0=0;this.x1=a;this.y1=b;this.x2=c;this.y2=1;this.x3=d;this.y3=e}f=xj.prototype;f.solveYValueFromXValue=function(a){return this.getPointY(this.solvePositionFromXValue(a))};
f.solvePositionFromXValue=function(a){var b=1E-6,c=(a-this.x0)/(this.x3-this.x0);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,g=0,h=0;8>h;h++){g=this.getPointX(c);var k=(this.getPointX(c+b)-g)/b;if(Math.abs(g-a)<b)return c;if(Math.abs(k)<b)break;else g<a?d=c:e=c,c-=(g-a)/k}for(h=0;Math.abs(g-a)>b&&8>h;h++)g<a?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),g=this.getPointX(c);return c};
f.getPointX=function(a){if(0==a)return this.x0;if(1==a)return this.x3;var b=this.lerp(this.x0,this.x1,a),c=this.lerp(this.x1,this.x2,a),d=this.lerp(this.x2,this.x3,a);b=this.lerp(b,c,a);c=this.lerp(c,d,a);return this.lerp(b,c,a)};f.getPointY=function(a){if(0==a)return this.y0;if(1==a)return this.y3;var b=this.lerp(this.y0,this.y1,a),c=this.lerp(this.y1,this.y2,a),d=this.lerp(this.y2,this.y3,a);b=this.lerp(b,c,a);c=this.lerp(c,d,a);return this.lerp(b,c,a)};f.lerp=function(a,b,c){return a+c*(b-a)};
wj(.25,.1,.25);wj(.42,0,1);wj(0,0,.58);wj(.42,0,.58);var yj=["<div class=i-amphtml-jank-meter></div>"];function zj(a){this.h=a;this.Fb=this.Eb=this.kb=this.pb=0;this.gb=null;this.ba=Uc(a,"performance");this.Ta=this.vd=this.wd=null;Aj(this)}zj.prototype.onScheduled=function(){Bj(this)&&null==this.gb&&(this.gb=this.h.Date.now())};
zj.prototype.onRun=function(){if(Bj(this)&&null!=this.gb){var a=this.h.Date.now()-this.gb;this.gb=null;this.kb++;16<a&&(this.pb++,C().info("JANK","Paint latency: "+a+"ms"));if(this.ba&&200==this.kb){var b=this.h.Math.floor((this.kb-this.pb)/this.kb*100);this.ba.tickDelta("gfp",b);this.ba.tickDelta("bf",this.pb);this.Ta&&(this.ba.tickDelta("lts",this.Fb),this.ba.tickDelta("ltc",this.Eb),this.Ta.disconnect(),this.Ta=null);var c=0;this.wd&&null!=this.vd&&(c=this.h.Math.max(0,this.h.Math.floor(100*this.wd.level-
this.vd)),this.ba.tickDelta("bd",c));this.ba.flush();if(N(this.h,"jank-meter")){var d=c,e=this.h.document,g=ve(e)(yj);g.textContent="bf:"+this.pb+", lts: "+this.Fb+", ltc:"+(this.Eb+", bd:"+d);e.body.appendChild(g)}}}};function Bj(a){return N(a.h,"jank-meter")||a.ba&&a.ba.isPerformanceTrackingOn()&&200>a.kb}
function Aj(a){Bj(a)&&Cj(a.h)&&(a.Ta=new a.h.PerformanceObserver(function(b){for(var c=b.getEntries(),d=0;d<c.length;d++)if("longtask"==c[d].entryType){var e=a.h.Math.floor(c[d].duration/50);"cross-origin-descendant"==c[d].name?(a.Eb+=e,z().info("LONGTASK","from child frame "+c[d].duration+"ms")):(a.Fb+=e,C().info("LONGTASK","from self frame "+c[d].duration+"ms"))}}),a.Ta.observe({entryTypes:["longtask"]}))}
function Cj(a){return!!a.PerformanceObserver&&!!a.TaskAttributionTiming&&"containerName"in a.TaskAttributionTiming.prototype};function Dj(a){var b=ze(a,"visibilityState",!0);if(a[b])return a[b];var c=ze(a,"hidden",!0);return a[c]?a[c]?"hidden":"visible":"visible"}function Ej(a,b){if(a.addEventListener){var c=Fj(a);c&&a.addEventListener(c,b)}}function Gj(a,b){if(a.removeEventListener){var c=Fj(a);c&&a.removeEventListener(c,b)}}function Fj(a){a=ze(a,"hidden",!0);var b=a.indexOf("Hidden");return-1!=b?a.substring(0,b)+"Visibilitychange":"visibilitychange"};function Hj(a){this.win=a;this.ea=id(this.win);this.Cf=Ij(this);this.aa=[];this.Uc=[];this.hd=[];this.Tc=[];this.$=!1;this.Sc=this.Ib=null;this.mc=this.Hf.bind(this);this.hf=new zh(this.win,this.mc,16);this.ud=new zh(this.win,this.mc,40);this.lc=this.zf.bind(this);if(this.ea.isSingleDoc())this.ea.getSingleDoc().onVisibilityChanged(this.lc);else Ej(this.win.document,this.lc);this.$d=new zj(this.win)}f=Hj.prototype;f.dispose=function(){Gj(this.win.document,this.lc)};f.zf=function(){this.$&&Jj(this)};
f.run=function(a,b){this.aa.push(a);this.hd.push(b||void 0);this.Ba()};f.runPromise=function(a,b){this.run(a,b);if(this.Ib)return this.Ib;a=new H;this.Sc=a.resolve;return this.Ib=a.promise};f.createTask=function(a){var b=this;return function(c){b.run(a,c)}};f.mutate=function(a){this.run({measure:void 0,mutate:a})};f.mutatePromise=function(a){return this.runPromise({measure:void 0,mutate:a})};f.measure=function(a){this.run({measure:a,mutate:void 0})};f.measurePromise=function(a){var b=this;return new Promise(function(c){b.measure(function(){c(a())})})};
f.canAnimate=function(a){return Kj(this,a)};function Kj(a,b){return"visible"!=Dj(a.win.document)?!1:a.ea.isSingleDoc()?a.ea.getSingleDoc().isVisible():b?(a=a.ea.getAmpDocIfAvailable(b),!a||a.isVisible()):!0}f.runAnim=function(a,b,c){if(!Kj(this,a))return C().warn("VSYNC","Did not schedule a vsync request, because document was invisible"),!1;this.run(b,c);return!0};f.createAnimTask=function(a,b){var c=this;return function(d){return c.runAnim(a,b,d)}};
f.runAnimMutateSeries=function(a,b,c){var d=this;return Kj(this,a)?new Promise(function(e,g){var h=Date.now(),k=0,l=d.createAnimTask(a,{mutate:function(a){var d=Date.now()-h;b(d,d-k,a)?c&&d>c?g(Error("timeout")):(k=d,l(a)):e()}});l({})}):Promise.reject(Error("CANCELLED"))};f.Ba=function(){this.$||(this.$=!0,this.$d.onScheduled(),Jj(this))};function Jj(a){Kj(a)?(a.Cf(a.mc),a.ud.schedule()):a.hf.schedule()}
f.Hf=function(){this.ud.cancel();this.$=!1;this.$d.onRun();var a=this.aa,b=this.hd,c=this.Sc;this.Ib=this.Sc=null;this.aa=this.Uc;this.hd=this.Tc;for(var d=0;d<a.length;d++)a[d].measure&&!Lj(a[d].measure,b[d])&&(a[d].mutate=void 0);for(d=0;d<a.length;d++)a[d].mutate&&Lj(a[d].mutate,b[d]);this.Uc=a;this.Tc=b;this.Uc.length=0;this.Tc.length=0;c&&c()};
function Ij(a){var b=a.win.requestAnimationFrame||a.win.webkitRequestAnimationFrame;if(b)return b.bind(a.win);var c=0;return function(b){var d=Date.now(),g=Math.max(0,16-(d-c));c=d+g;a.win.setTimeout(b,g)}}function Lj(a,b){try{var c=a(b);void 0!==c&&C().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",a.toString())}catch(d){return gb(d),!1}return!0};function Mj(a){O(a,"crypto",Kg);O(a,"batched-xhr",Eg);O(a,"platform",vi);O(a,"templates",cf);O(a,"timer",Oi);O(a,"timer",Oi);O(a,"vsync",Hj);O(a,"xhr",Cg);O(a,"input",hi);O(a,"preconnect",Fi)};function Nj(a){var b=a.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)$/i);return{extensionId:b?b[2]:void 0,extensionVersion:b?b[3]:void 0}};var Oj=["amp-ad","amp-embed","amp-video"],Pj=["amp-mustache"];function Qj(a){this.win=a;this.ea=id(a);this.sc={};this.ua=null}f=Qj.prototype;f.registerExtension=function(a,b,c){var d=Rj(this,a,!0);try{this.ua=a;b(c,c._);if((u(this.win).localDev||u(this.win).test)&&Object.freeze){var e=d.extension;e.elements=Object.freeze(e.elements);d.extension=Object.freeze(e)}d.loaded=!0;d.resolve&&d.resolve(d.extension)}catch(g){throw d.error=g,d.reject&&d.reject(g),g;}finally{this.ua=null}};
f.waitForExtension=function(a,b,c){return U(a).timeoutPromise(c||16E3,Sj(Rj(this,b,!1)),"Render timeout waiting for extension "+b+" to be load.")};
f.preloadExtension=function(a,b){"amp-embed"==a&&(a="amp-ad");var c=Rj(this,a,!1);if(c.loaded||c.error)var d=!1;else void 0===c.scriptPresent&&(d=Tj(this,a),c.scriptPresent=!!d),d=!c.scriptPresent;if(d){d=b;b=this.win.document.createElement("script");b.async=!0;K(a,"_")?d="":b.setAttribute(0<=Pj.indexOf(a)?"custom-template":"custom-element",a);b.setAttribute("data-script",a);b.setAttribute("i-amphtml-inserted","");var e=this.win.document.head.querySelector("script[nonce]");e&&b.setAttribute("nonce",
e.getAttribute("nonce"));b.setAttribute("crossorigin","anonymous");e=this.win.location;u(this.win).test&&this.win.testLocation&&(e=this.win.testLocation);var g=e,h=u(this.win).localDev;e=u().esm?".mjs":".js";h?(h=g.protocol+"//"+g.host,"about:"==g.protocol&&(h=""),g=h+"/dist"):g=Qa.cdn;h=u().rtvVersion;null==d&&(d="0.1");b.src=g+"/rtv/"+h+"/v0/"+a+(d?"-"+d:"")+e;this.win.document.head.appendChild(b);c.scriptPresent=!0}return Sj(c)};
f.installExtensionForDoc=function(a,b,c){var d=this,e=a.getRootNode(),g=e.__AMP_EXT_LDR;g||(g=e.__AMP_EXT_LDR=F());if(g[b])return g[b];$h(a.win,b);return g[b]=this.preloadExtension(b,c).then(function(){return d.installExtensionInDoc(a,b)})};f.reloadExtension=function(a){var b=Tj(this,a,!1),c=this.sc[a];c&&(c.scriptPresent=!1);b.setAttribute("i-amphtml-loaded-new-version",a);var d=Nj(b.src);return this.preloadExtension(a,d.extensionVersion)};
function Tj(a,b,c){c=void 0===c?!0:c;var d=":not([i-amphtml-loaded-new-version])"+(c?"":":not([i-amphtml-inserted])");a=a.win.document.head.querySelectorAll('script[src*="/'+b+'-"]'+d);for(var e=0;e<a.length;e++){var g=a[e];if(Nj(g.src).extensionId===b)return g}return null}f.loadElementClass=function(a){return this.preloadExtension(a).then(function(b){return b.elements[a].implementationClass})};
f.addElement=function(a,b,c){Uj(this,a).extension.elements[a]={implementationClass:b,css:c};this.addDocFactory(function(d){Vj(d,a,b,c)})};function Vj(a,b,c,d){d?nf(a,d,function(){Wj(a.win,b,c)},!1,b):Wj(a.win,b,c)}
function Wj(a,b,c){var d=Xh(a);if(!d[b])ai(a,b,c);else if(d[b]!=c)for(E(d[b]==nh,"%s is already registered. The script tag for %s is likely included twice in the page.",b,b),d[b]=c,d=0;d<mh.length;d++){var e=mh[d].element;e.tagName.toLowerCase()==b&&e.ownerDocument.defaultView==a&&(Yh(e,c),mh.splice(d--,1))}O(a,b,Xj)}f.addService=function(a,b){Uj(this).extension.services.push({serviceName:a,serviceClass:b});this.addDocFactory(function(c){P(c,a,b,!0)})};
f.addDocFactory=function(a,b){var c=Uj(this,b);c.docFactories.push(a);if(this.ua&&this.ea.isSingleDoc()){var d=this.ea.getAmpDoc(this.win.document);(d.declaresExtension(this.ua)||c.auto)&&a(d)}};f.installExtensionsInDoc=function(a,b){var c=this,d=[];b.forEach(function(b){d.push(c.installExtensionInDoc(a,b))});return Promise.all(d)};
f.installExtensionInDoc=function(a,b){var c=Rj(this,b,!1);return Sj(c).then(function(){a.declareExtension(b);c.docFactories.forEach(function(c){try{c(a)}catch(e){gb("Doc factory failed: ",e,b)}})})};function Rj(a,b,c){var d=a.sc[b];d||(d={extension:{elements:{},services:[]},auto:c,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},a.sc[b]=d);return d}
function Uj(a,b){a.ua||u(a.win).test||C().error("extensions","unknown extension for ",b);return Rj(a,a.ua||"_UNKNOWN_",!0)}function Sj(a){if(!a.promise)if(a.loaded)a.promise=Promise.resolve(a.extension);else if(a.error)a.promise=Promise.reject(a.error);else{var b=new H;a.promise=b.promise;a.resolve=b.resolve;a.reject=b.reject}return a.promise}function Yj(a){Oj.forEach(function(b){$h(a,b)})}function Xj(){return{}};(function(){ib=Za;C();z()})();(function(a){self.__AMP_REPORT_ERROR=a})(function(a,b,c){If(b,c);b&&a&&Ta(b.message)&&!(0<=b.message.indexOf("\u200b\u200b\u200b\u200b"))&&id(a).isSingleDoc()&&(b=G({errorName:b.name,errorMessage:b.message}),a=id(a).getSingleDoc().getRootNode(),Df(a.documentElement||a.body||a,b))}.bind(null,self));
function Zj(a){function b(a){function b(){g.then(function(){"function"==typeof a?a(c.AMP,c.AMP._):e.registerExtension(a.n,a.f,c.AMP)})}"function"!=typeof a&&a.i?ck(e,a).then(function(){return dk(c,a,b)}):dk(c,a,b)}var c=self;if(c.__AMP_TAG)v();else{c.__AMP_TAG=!0;var d=c.AMP||[];O(c,"extensions",Qj);var e=jd(c);Mj(c);Yj(c);c.AMP={win:c,_:c.AMP?c.AMP._:void 0};u().minified||(c.AMP.extension=function(a,b,d){d(c.AMP)});c.AMP.config=Ra;c.AMP.BaseElement=$e;c.AMP.BaseTemplate=bf;c.AMP.registerElement=
e.addElement.bind(e);c.AMP.registerTemplate=function(a,b){var d=Q(c,"templates");if(d.jb[a]){var e=d.jd[a];E(e,"Duplicate template type: %s",a);delete d.jd[a];e(b)}else d.jb[a]=Promise.resolve(b)};c.AMP.registerServiceForDoc=e.addService.bind(e);c.AMP.isExperimentOn=N.bind(null,c);c.AMP.toggleExperiment=Hc.bind(null,c);c.AMP.setLogLevel=Va.bind(null);c.AMP.setTickFunction=function(){};var g=a(c,e);for(a=0;a<d.length;a++){var h=d[a];if(ek(c,h))d.splice(a--,1);else if("function"==typeof h||"high"==
h.p){try{b(h)}catch(k){C().error("runtime","Extension failed: ",k,h.n)}d.splice(a--,1)}}fk(c,function(){c.AMP.push=function(a){ek(c,a)||b(a)};for(var a=0;a<d.length;a++){var e=d[a];if(!ek(c,e))try{b(e)}catch(m){C().error("runtime","Extension failed: ",m,e.n)}}d.length=0});c.AMP.push||(c.AMP.push=d.push.bind(d));kd(c).isIos()&&V(c.document.documentElement,"cursor","pointer");if(u().localDev||u().test)c.IntersectionObserver&&c.IntersectionObserver!==pd&&c.IntersectionObserverEntry||jd(c).preloadExtension("amp-intersection-observer-polyfill")}}
function ck(a,b){if(Array.isArray(b.i))return b=b.i.map(function(b){return a.preloadExtension(b)}),Promise.all(b);if("string"==typeof b.i)return a.preloadExtension(b.i);C().error("RUNTIME","dependency is neither an array or a string",b.i);return v()}function dk(a,b,c){"function"==typeof b||"high"==b.p?v().then(c):(c.displayName=b.n,Kh(a.document,c))}function gk(){Zj(function(a){hk(a);return ub(a.document).then(function(){Zh(a.AMP.ampdoc)})})}
function hk(a){var b=a.document.documentElement,c=id(a).getSingleDoc();a.AMP.ampdoc=c;c=md(b);a.AMP.viewer=c;u().development&&(a.AMP.toggleRuntime=c.toggleRuntime.bind(c),a.AMP.resources=ld(b));b=od(b);a.AMP.viewport={};a.AMP.viewport.getScrollLeft=b.getScrollLeft.bind(b);a.AMP.viewport.getScrollWidth=b.getScrollWidth.bind(b);a.AMP.viewport.getWidth=b.getWidth.bind(b)}
function ek(a,b){if(!N(a,"version-locking")||"function"==typeof b||"2005012256000"==b.v)return!1;jd(a).reloadExtension(b.n);return!0}function fk(a,b){N(a,"pump-early-frame")?a.document.body?0<lf(a).length?b():U(a).delay(b,1):b():b()};function ik(){var a=self;zi(a.document,function(){return jk(a)})}
function jk(a){var b=0,c=a.performance;c&&c.timing&&c.timing.responseStart&&(b=Date.now()-c.timing.responseStart);var d=Math.max(1,250-b);a.setTimeout(function(){kk(a);var b=a.document.styleSheets;if(b){for(var c=a.document.querySelectorAll('link[rel~="stylesheet"]:not([href^="'+String(Qa.cdn).replace(mb,nb)+'"])'),h=[],k=0;k<c.length;k++){for(var l=c[k],m=!1,q=0;q<b.length;q++)if(b[q].ownerNode==l){m=!0;break}m||h.push(l)}k={};for(l=0;l<h.length;k={Y:k.Y,ec:k.ec},l++)k.Y=h[l],k.ec=k.Y.media||"all",
k.Y.media="print",k.Y.onload=function(b){return function(){b.Y.media=b.ec;kk(a)}}(k),k.Y.setAttribute("i-amphtml-timeout",d),k.Y.parentNode.insertBefore(k.Y,k.Y.nextSibling)}},d)}function kk(a){a=a.document;if(a.fonts&&a.fonts.values)for(var b=a.fonts.values();a=b.next();){var c=a.value;if(!c)break;"loading"==c.status&&"display"in c&&"auto"==c.display&&(c.display="swap")}};var lk=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function mk(a,b,c,d){a=Qc(a);return nk(a,b,function(a){return!a.isDisplayed()||!a.overlaps(c)&&!a.isFixed()||d&&!a.prerenderAllowed()?!1:!0}).then(function(a){var b=[];a.forEach(function(a){lk.includes(a.element.tagName)||b.push(a.loadedOnce())});return Promise.all(b)})}
function nk(a,b,c){return a.signals().whenSignal("ready-scan").then(function(){var c=[];ld(a).get().forEach(function(a){a.hasBeenMeasured()||a.hostWin!=b||a.hasOwner()||c.push(a.getPageLayoutBoxAsync())});return Promise.all(c)}).then(function(){return ld(a).get().filter(function(a){return a.hostWin==b&&!a.hasOwner()&&a.hasBeenMeasured()&&c(a)})})};function ok(a){var b=a.win,c=a.getRootNode();mk(a,b,od(a).getLayoutRect(c.documentElement||c.body||c)).then(function(){b.dispatchEvent(Te(b));b.parent&&b.parent.postMessage("amp-ini-load","*")})};function pk(a){var b;this.h=a;this.Gf=u().rtvVersion||null;this.va=b||null;this.ed=null;this.uf=1;this.Ua=F();qk(this)}f=pk.prototype;f.getData=function(a,b,c){var d=this.uf++,e=this.registerCallback(a+"-result",function(a){a.messageId===d&&(e(),c(a.content))}),g={};g.payload=b;g.messageId=d;this.sendMessage(a,g)};f.makeRequest=function(a,b,c){b=this.registerCallback(b,c);this.sendMessage(a);return b};
f.requestOnce=function(a,b,c){var d=this.registerCallback(b,function(a){d();c(a)});this.sendMessage(a);return d};f.registerCallback=function(a,b){var c=a;c in this.Ua||(this.Ua[c]=new X);return this.Ua[c].add(b)};
f.sendMessage=function(a,b){var c=this.ed,d=b,e=this.Gf;d=void 0===d?{}:d;d.type=a;d.sentinel=c;var g="amp-"+((void 0===e?null:e)||"")+JSON.stringify(d);if(this.va)a=this.va,c=g,1==a.postMessage.length?rk(a,c):a.postMessage(c,"*");else for(a=0,c=this.h;10>a&&c!=this.h.top;a++)e=c=c.parent,d=g,1==e.postMessage.length?rk(e,d):e.postMessage(d,"*"),a++};function rk(a,b){a.postMessage(b,G({targetOrigin:"*",includeUserActivation:!0}))}
function qk(a){Ah(a.h,function(b){if(!a.va||b.source==a.va){var c=b.data;if("string"==typeof c&&0==c.indexOf("amp-")&&-1!=c.indexOf("{")){var d=c.indexOf("{");try{var e=Ob(c.substr(d))}catch(g){C().error("MESSAGING","Failed to parse message: "+c,g),e=null}}else e=null;e&&e.sentinel==a.ed&&(e.origin=b.origin,a.va||(a.va=b.source),b=e.type,b in a.Ua&&a.Ua[b].fire(e))}})}f.setSentinel=function(a){this.ed=a};function sk(a){var b=new pk(a);try{var c=Ob(a.name)}catch(e){c=null}var d=c;c=null;d&&d._context&&(c=d._context.sentinel);b.setSentinel(c||String(a.Math.random()).substr(2));return b};function tk(){}tk.prototype.get=function(){return Promise.resolve(null)};tk.prototype.optOut=function(){};function uk(a){this.j=ld(a);this.Ge=nd(a.win)}f=uk.prototype;f.forceChangeSize=function(a,b,c,d,e){this.requestChangeSize(a,b,c,e).then(function(){d&&d()})};f.requestChangeSize=function(a,b,c,d){var e=this;return this.mutateElement(a,function(){e.j.getResourceForElement(a).changeSize(b,c,d)})};f.expandElement=function(a){var b=this.j.getResourceForElement(a);b.completeExpand();(b=b.getOwner())&&b.expandedCallback(a);this.j.schedulePass()};
f.attemptCollapse=function(a){var b=this;return this.mutateElement(a,function(){b.j.getResourceForElement(a).completeCollapse()})};f.collapseElement=function(a){this.j.getResourceForElement(a).completeCollapse();this.j.schedulePass()};f.measureElement=function(a){return this.Ge.measurePromise(a)};f.mutateElement=function(a,b){return this.measureMutateElement(a,null,b)};f.measureMutateElement=function(a,b,c){var d=this;return this.Ge.runPromise({measure:function(){b&&b()},mutate:function(){c();d.j.schedulePass()}})};var vk=["AMP-CAROUSEL"];function wk(a){var b=a.target,c=a.isIntersecting;b.viewportCallback&&b.viewportCallback(c)}function xk(a){this.w=a;this.win=a.win;this.j=[];this.Ff=0;this.Lb=new zh(this.win,this.Te.bind(this),70);this.me=new X;this.Nd=new H;this.ha=null;Q(this.win,"input").setupInputModeClasses(a)}f=xk.prototype;f.dispose=function(){this.ha&&(this.ha.disconnect(),this.ha=null)};f.get=function(){return this.j.slice(0)};f.getAmpdoc=function(){return this.w};f.getResourceForElement=function(a){return sh(a)};
f.getResourceForElementOptional=function(a){return sh(a)};f.getScrollDirection=function(){return 1};f.add=function(a){var b=new rh(++this.Ff,a,this);this.j.push(b);vk.includes(a.tagName)&&(b=yk(this))&&b.observe(a)};f.upgraded=function(a){a=sh(a);this.w.whenReady().then(a.build.bind(a)).then(this.schedulePass.bind(this))};f.remove=function(a){var b=sh(a);b&&(this.ha&&this.ha.unobserve(a),a=this.j.indexOf(b),-1!==a&&this.j.splice(a,1))};f.scheduleLayoutOrPreload=function(){this.Lb.schedule()};
f.schedulePass=function(a){return this.Lb.schedule(a)};f.updateOrEnqueueMutateTask=function(){};f.schedulePassVsync=function(){};f.onNextPass=function(a){this.me.add(a)};f.ampInitComplete=function(){};f.updateLayoutPriority=function(){};f.setRelayoutTop=function(){};f.maybeHeightChanged=function(){};f.whenFirstPass=function(){return this.Nd.promise};f.isIntersectionExperimentOn=function(){return!1};
f.Te=function(){this.j.forEach(function(a){a.isLayoutPending()&&a.measure()});this.j.forEach(function(a){2===a.getState()&&a.isDisplayed()&&a.startLayout()});this.w.signals().signal("ready-scan");this.me.fire();this.Nd.resolve()};function yk(a){var b=a.win.IntersectionObserver;if(!b)return null;null===a.ha&&(a.ha=new b(function(a){return a.forEach(wk)}));return a.ha};function zk(a){this.w=a}f=zk.prototype;f.getAmpDoc=function(){return this.w};f.getParam=function(a){return this.w.getParam(a)};f.hasCapability=function(){return!1};f.isEmbedded=function(){return!1};f.isWebviewEmbedded=function(){return!1};f.isCctEmbedded=function(){return!1};f.isProxyOrigin=function(){return!1};f.maybeUpdateFragmentForCct=function(){};f.isRuntimeOn=function(){return!0};f.toggleRuntime=function(){};f.onRuntimeState=function(){return function(){}};f.isOvertakeHistory=function(){return!1};
f.getPrerenderSize=function(){return 0};f.getResolvedViewerUrl=function(){return this.w.win.location.href};f.maybeGetMessagingOrigin=function(){return null};f.getUnconfirmedReferrerUrl=function(){return this.w.win.document.referrer};f.getReferrerUrl=function(){return Promise.resolve(this.getUnconfirmedReferrerUrl())};f.isTrustedViewer=function(){return Promise.resolve(!1)};f.getViewerOrigin=function(){return Promise.resolve("")};f.onMessage=function(){return function(){}};f.onMessageRespond=function(){return function(){}};
f.receiveMessage=function(){};f.setMessageDeliverer=function(){};f.sendMessage=function(){};f.sendMessageAwaitResponse=function(){return v()};f.broadcast=function(){return Promise.resolve(!1)};f.onBroadcast=function(){return function(){}};f.whenMessagingReady=function(){return null};f.replaceUrl=function(){};function Ak(a,b,c){var d=150,e=c.width/2-b.width/2-b.left+"px",g=c.height/2-b.height/2-b.top+"px",h=b.top+"px",k=c.width-(b.left+b.width)+"px",l=b.left+"px";c=c.height-(b.top+b.height)+"px";var m=b.height+"px",q=b.width+"px";var p=e;var t=g;"number"==typeof p&&(p+="px");void 0===t?p="translate("+p+")":("number"==typeof t&&(t+="px"),p="translate("+p+", "+t+")");Be(a,{position:"fixed",top:h,right:k,left:l,bottom:c,height:m,width:q,transition:"transform "+d+"ms ease",transform:p,margin:0})};function Bk(a,b,c){a.requestAnimationFrame(function(){b.measure&&b.measure(c);b.mutate&&b.mutate(c)})}function Ck(a){var b=200;setTimeout(a,b)};function Dk(a,b,c){Bk(a,{measure:function(c){c.viewportSize={width:a.innerWidth,height:a.innerHeight};c.rect=ac(b.getBoundingClientRect())},mutate:function(d){var e=d.viewportSize,g=L(0,0,e.width,e.height);Ak(b,d.rect,d.viewportSize);Ae(b,{"pointer-events":"none"});Ck(function(){Bk(a,{mutate:function(){De(b,["pointer-events"]);Be(b,{position:"fixed","z-index":1E3,left:0,right:0,top:0,bottom:0,width:"100vw",height:"100vh",transition:null,transform:null,margin:0,border:0});c(d.rect,g)}})})}},{})}
function Ek(a,b,c,d){Bk(a,{mutate:function(){De(b,"position z-index left right top bottom width height margin border".split(" "));c();Bk(a,{measure:function(){d(ac(b.getBoundingClientRect()))}})}})};function Fk(a){this.h=a;this.ac=this.Ec=!1;this.sb=null;Gk(this)}function Gk(a){a.h.addEventListener("resize",function(){return a.onWindowResize()})}Fk.prototype.onWindowResize=function(){this.Ec&&(this.ac=!0)};Fk.prototype.expandFrame=function(a,b){var c=this;Dk(this.h,a,function(a,e){c.Ec=!0;c.ac=!1;c.sb=a;b(e)})};Fk.prototype.collapseFrame=function(a,b){var c=this;Ek(this.h,a,function(){c.Ec=!1;c.ac||b(c.sb)},function(a){c.sb=a;c.ac&&b(c.sb)})};
function Hk(a){a.ampInaboxFrameOverlayManager=a.ampInaboxFrameOverlayManager||new Fk(a);return a.ampInaboxFrameOverlayManager};function Ik(a){this.h=a;this.Ob=null;var b=this.h;a=b.document;if(a.scrollingElement)a=a.scrollingElement;else{var c;if(c=a.body)b=b.navigator.userAgent,c=/WebKit/i.test(b)&&!/Edge/i.test(b);a=c?a.body:a.documentElement}this.Jf=a;this.K=null}
Ik.prototype.observe=function(a,b){var c=this;if(!this.Ob){this.Ob=new X;var d=zf(this.h,function(){c.K=c.getViewportRect();c.Ob.fire()});this.K=this.getViewportRect();this.h.addEventListener("scroll",d,!0);this.h.addEventListener("resize",d,!0)}b({viewportRect:this.K,targetRect:this.getTargetRect(a)});return this.Ob.add(function(){b({viewportRect:c.K,targetRect:c.getTargetRect(a)})})};
Ik.prototype.getViewportRect=function(){var a=this.Jf,b=this.h;return L(Math.round(a.scrollLeft||b.pageXOffset),Math.round(a.scrollTop||b.pageYOffset),b.innerWidth,b.innerHeight)};Ik.prototype.getTargetRect=function(a){for(var b=ac(a.getBoundingClientRect()),c=0,d=a.ownerDocument.defaultView;10>c&&d&&d!=this.h&&d!=this.h.top;c++,d=d.parent){var e=ac(d.frameElement.getBoundingClientRect());b=dc(b,e.left,e.top)}return b};
function Jk(a){a.ampInaboxPositionObserver=a.ampInaboxPositionObserver||new Ik(a);return a.ampInaboxPositionObserver};function Kk(a,b){return nd(a).runPromise({measure:function(b){b.width=a.innerWidth;b.height=a.innerHeight},mutate:function(a){Ae(b,{background:"transparent",left:"50%",top:"50%",right:"auto",bottom:"auto",position:"absolute",height:a.height+"px",width:a.width+"px","margin-top":-a.height/2+"px","margin-left":-a.width/2+"px"})}},{})}function Lk(a,b){return nd(a).mutatePromise(function(){De(b,"position left top right bottom width height margin-left margin-top".split(" "))})}
function Mk(a,b){var c=a.win;this.ampdoc=a;this.B=b;this.eb=null;this.Ed=new X;this.hb=new X;this.fb=new X;this.B.onScroll(this.If.bind(this));this.B.onResize(this.re.bind(this));this.Fe=!1;this.ampdoc.onVisibilityChanged(this.Ae.bind(this));this.Ae();this.zd=this.dispose.bind(this);c.addEventListener("pagehide",this.zd);var d=c.document.documentElement;d.classList.add("i-amphtml-singledoc");d.classList.add("i-amphtml-standalone");Nb(c)&&d.classList.add("i-amphtml-iframed")}f=Mk.prototype;
f.dispose=function(){this.B.disconnect();this.ampdoc.win.removeEventListener("pagehide",this.zd)};f.ensureReadyForElements=function(){};f.getPaddingTop=function(){return 0};f.getScrollTop=function(){return this.B.getScrollTop()};f.getScrollLeft=function(){return this.B.getScrollLeft()};f.setScrollTop=function(){};f.updatePaddingBottom=function(){};f.getSize=function(){return this.B.getSize()};f.getHeight=function(){return this.getSize().height};f.getWidth=function(){return this.getSize().width};
f.getScrollWidth=function(){return this.B.getScrollWidth()};f.getScrollHeight=function(){return this.B.getScrollHeight()};f.getContentHeight=function(){return this.B.getContentHeight()};f.contentHeightChanged=function(){};f.getRect=function(){if(null==this.eb){var a=this.getSize();this.eb=L(this.getScrollLeft(),this.getScrollTop(),a.width,a.height)}return this.eb};f.getLayoutRect=function(a){return this.B.getLayoutRect(a)};
f.getClientRectAsync=function(a){var b=a.getBoundingClientRect();return this.B.getRootClientRectAsync().then(function(a){return a?dc(b,a.left,a.top):ac(b)})};f.supportsPositionFixed=function(){return!1};f.isDeclaredFixed=function(){return!1};f.scrollIntoView=function(){return v()};f.animateScrollIntoView=function(){return v()};f.animateScrollWithinParent=function(){return v()};f.getScrollingElement=function(){return this.B.getScrollingElement()};f.onChanged=function(a){return this.Ed.add(a)};
f.onScroll=function(a){return this.hb.add(a)};f.onResize=function(a){return this.fb.add(a)};f.enterLightboxMode=function(){this.enterOverlayMode();return this.B.updateLightboxMode(!0)};f.leaveLightboxMode=function(){this.leaveOverlayMode();return this.B.updateLightboxMode(!1)};f.enterOverlayMode=function(){this.disableTouchZoom();this.disableScroll()};f.leaveOverlayMode=function(){this.resetScroll();this.restoreOriginalTouchZoom()};f.disableScroll=function(){};f.resetScroll=function(){};
f.resetTouchZoom=function(){};f.disableTouchZoom=function(){return!1};f.restoreOriginalTouchZoom=function(){return!1};f.updateFixedLayer=function(){};f.addToFixedLayer=function(){return v()};f.removeFromFixedLayer=function(){};function Nk(a){var b=a.getSize(),c=a.getScrollTop(),d=a.getScrollLeft();a.Ed.fire({relayoutAll:!1,top:c,left:d,width:b.width,height:b.height,velocity:0})}f.If=function(){this.eb=null;0>this.B.getScrollTop()||(Nk(this),this.hb.fire())};
f.re=function(){this.eb=null;var a=this.getSize();Nk(this);this.fb.fire({relayoutAll:!1,width:a.width,height:a.height})};f.Ae=function(){var a=this.ampdoc.isVisible();a!=this.Fe&&((this.Fe=a)?(this.B.connect(),this.re()):this.B.disconnect())};
function Ok(a){var b=this;this.win=a;this.hb=new X;this.fb=new X;var c=a.innerWidth,d=a.innerHeight;this.K=L(0,0,c,d);this.qb=L(0,d+1,c,d);this.xb=Uc(a,"iframeMessagingClient");this.Sb=null;this.Xe=zf(this.win,function(){b.hb.fire()});this.xe=(this.wa=N(this.win,"inabox-viewport-friendly")&&Bh(this.win.top))?Jk(this.win.top):null;this.we=this.wa?Hk(this.win.top):null;this.lb=null}f=Ok.prototype;f.connect=function(){return this.wa?Pk(this):Qk(this)};
function Qk(a){a.xb.makeRequest("send-positions","position",function(b){Rk(a,b.viewportRect,b.targetRect)});return v()}function Pk(a){return Zc(Rc(a.win.document.documentElement),"resources").then(function(){a.lb=a.lb||a.xe.observe(a.win.frameElement||a.getScrollingElement(),function(b){Rk(a,b.viewportRect,b.targetRect)})})}function Rk(a,b,c){var d=a.K;a.K=b;Sk(a,c);b=a.K;c=d;b.width==c.width&&b.height==c.height||a.fb.fire();b=a.K;c=d;b.left==c.left&&b.top==c.top||a.Xe()}
f.getLayoutRect=function(a){a=a.getBoundingClientRect();return L(Math.round(a.left+this.qb.left),Math.round(a.top+this.qb.top),Math.round(a.width),Math.round(a.height))};f.onScroll=function(a){this.hb.add(a)};f.onResize=function(a){this.fb.add(a)};f.getSize=function(){return{width:this.K.width,height:this.K.height}};f.getScrollTop=function(){return this.K.top};f.getScrollLeft=function(){return this.K.left};f.getScrollingElement=function(){return this.getBodyElement()};
f.getScrollingElementScrollsLikeViewport=function(){return!0};f.supportsPositionFixed=function(){return!1};function Sk(a,b){if(b){var c=dc(b,a.K.left,a.K.top),d=c,e=a.qb;if(d.left!=e.left||d.top!=e.top||d.width!=e.width||d.height!=e.height)a.qb=c,Tk(a)}}f.getChildResources=function(){return ld(this.win.document.documentElement).get()};function Tk(a){a.getChildResources().forEach(function(a){return a.measure()})}f.updateLightboxMode=function(a){return a?Uk(this):Vk(this)};
f.getRootClientRectAsync=function(){var a=this;if(this.wa)return Pk(this).then(function(){return a.xe.getTargetRect(a.win.frameElement||a.getScrollingElement())});this.Sb||(this.Sb=new Promise(function(b){a.xb.requestOnce("send-positions","position",function(c){a.Sb=null;b(c.targetRect)})}));return this.Sb};function Uk(a){return Kk(a.win,a.getBodyElement()).then(function(){return Wk(a)})}function Vk(a){return Xk(a).then(function(){return Lk(a.win,a.getBodyElement())})}
function Wk(a){return new Promise(function(b,c){if(a.wa){var d=a.win.frameElement;d?a.we.expandFrame(d,function(c){Sk(a,c);b()}):c("Request to open lightbox failed; frame does not exist.")}else a.xb.requestOnce("full-overlay-frame","full-overlay-frame-response",function(d){d.success?(Sk(a,d.boxRect),b()):c("Request to open lightbox rejected by host document")})})}
function Xk(a){return new Promise(function(b,c){if(a.wa){var d=a.win.frameElement;d?a.we.collapseFrame(d,function(c){Sk(a,c);b()}):c("Request to open lightbox failed; frame does not exist.")}else a.xb.requestOnce("cancel-full-overlay-frame","cancel-full-overlay-frame-response",function(c){Sk(a,c.boxRect);b()})})}f.getBodyElement=function(){return this.win.document.body};f.disconnect=function(){this.lb&&(this.lb(),this.lb=null)};f.getScrollWidth=function(){return this.getScrollingElement().offsetWidth};
f.getScrollHeight=function(){return this.getScrollingElement().offsetHeight};f.getContentHeight=function(){return this.getScrollHeight()};f.updatePaddingTop=function(){};f.hideViewerHeader=function(){};f.showViewerHeader=function(){};f.disableScroll=function(){};f.resetScroll=function(){};f.ensureReadyForElements=function(){};f.setScrollTop=function(){};f.contentHeightChanged=function(){};f.getBorderTop=function(){return 0};f.requiresFixedLayerTransfer=function(){return!1};
f.overrideGlobalScrollTo=function(){return!1};function Yk(a){var b=new Ok(a.win);P(a,"viewport",function(){return new Mk(a,b)},!0)};function Zk(a){var b=!0;this.win=a;this.ib=null;if(b){var c=F();a.name&&0==a.name.indexOf("__AMP__")&&Object.assign(c,r(a.name.substring(7)));a.location&&a.location.hash&&Object.assign(c,r(a.location.hash));this.ib=new $k(a,{params:c});a.document.__AMPDOC=this.ib}this.Ie=Lc(a);this.ge=!b}f=Zk.prototype;f.isSingleDoc=function(){return!!this.ib};f.getSingleDoc=function(){return this.ib};
f.getAmpDocIfAvailable=function(a){if(this.Ie){for(var b=a;b;){var c=a.everAttached&&"function"===typeof a.getAmpDoc?a.getAmpDoc():null;if(c)return c;b=yb(b);if(!b)break;var d=b.__AMPDOC;if(d)return d;b=b.host?b.host:Xc(b,this.win)}return null}for(b=a;b;){if(d=a.everAttached&&"function"===typeof a.getAmpDoc?a.getAmpDoc():null)return d;if(d=Xc(b,this.win))b=d;else{if(!this.ge)break;b=9==b.nodeType?b:xf(b);if(!b)break;if(d=b.__AMPDOC)return d;b=b.host}}return this.ib};
f.getAmpDoc=function(a){var b=this.getAmpDocIfAvailable(a);if(!b)throw C().createError("No ampdoc found for",a);return b};f.installShadowDoc=function(a,b,c){this.ge=!0;a=new al(this.win,a,b,c);return b.__AMPDOC=a};f.installFieDoc=function(a,b,c){var d=b.document;a=new bl(b,a,this.getAmpDoc(b.frameElement),c);return d.__AMPDOC=a};
function cl(a,b,c){var d=this;this.win=a;this.Vd=!1;this.Kb=b;this.D=c&&c.signals||new wh;this.Yc=c&&c.params||F();this.Z=null;this.Id=[];this.pd=c&&c.visibilityState||this.Yc.visibilityState&&C().assertEnumValue(ff,this.Yc.visibilityState,"VisibilityState")||null;this.cc=null;this.Ee=new X;this.ce=null;this.md=[];var e=this.nd.bind(this);this.Kb&&this.md.push(this.Kb.onVisibilityChanged(e));Ej(this.win.document,e);this.md.push(function(){return Gj(d.win.document,e)});this.nd()}f=cl.prototype;
f.dispose=function(){this.md.forEach(function(a){return a()})};f.isSingleDoc=function(){return null};f.getParent=function(){return this.Kb};f.getWin=function(){return this.win};f.signals=function(){return this.D};f.getParam=function(a){a=this.Yc[a];return null==a?null:a};
f.getMeta=function(){var a=this;if(this.Z)return F(this.Z);this.Z=F();var b=this.win.document.head.querySelectorAll("meta[name]");Kb(b,function(b){var c=b.getAttribute("name");b=b.getAttribute("content");c&&null!==b&&void 0===a.Z[c]&&(a.Z[c]=b)});return F(this.Z)};f.getMetaByName=function(a){if(!a)return null;a=this.getMeta()[a];return void 0!==a?a:null};f.setMetaByName=function(){};f.declaresExtension=function(a){return-1!=this.Id.indexOf(a)};
f.declareExtension=function(a){this.declaresExtension(a)||this.Id.push(a)};f.getRootNode=function(){return null};f.getHeadNode=function(){};f.isBodyAvailable=function(){return!1};f.getBody=function(){return null};f.waitForBodyOpen=function(){return null};f.isReady=function(){return null};f.whenReady=function(){return null};f.getUrl=function(){return null};f.getElementById=function(a){return this.getRootNode().getElementById(a)};f.contains=function(a){return this.getRootNode().contains(a)};
f.overrideVisibilityState=function(a){this.pd!=a&&(this.pd=a,this.nd())};
f.nd=function(){for(var a=Dj(this.win.document),b="visible",c=this.Kb;c;c=c.getParent())if("visible"!=c.getVisibilityState()){b=c.getVisibilityState();break}var d=this.pd||"visible";c="visible"==d&&"visible"==b&&"visible"==a?"visible":"hidden"==a&&"paused"==d?a:"paused"==d||"inactive"==d?d:"paused"==b||"inactive"==b?b:"prerender"==d||"prerender"==a||"prerender"==b?"prerender":"hidden";this.cc!=c&&(this.cc=c,"visible"==c?(this.ce=Date.now(),this.D.signal("-ampdoc-first-visible"),this.D.signal("-ampdoc-next-visible")):
this.D.reset("-ampdoc-next-visible"),this.Ee.fire())};f.whenFirstVisible=function(){return this.D.whenSignal("-ampdoc-first-visible").then(function(){})};f.whenNextVisible=function(){return this.D.whenSignal("-ampdoc-next-visible").then(function(){})};f.getFirstVisibleTime=function(){return this.D.get("-ampdoc-first-visible")};f.getLastVisibleTime=function(){return this.ce};f.getVisibilityState=function(){return this.cc};f.isVisible=function(){return"visible"==this.cc};
f.hasBeenVisible=function(){return null!=this.getLastVisibleTime()};f.onVisibilityChanged=function(a){return this.Ee.add(a)};f.registerTrackingIframe=function(){return this.Vd?!1:this.Vd=!0};function $k(a,b){cl.call(this,a,null,b);var c=this;this.Ia=this.win.document.body?Promise.resolve(this.win.document.body):ub(this.win.document).then(function(){return c.getBody()});this.ab=Bi(this.win.document)}n($k,cl);f=$k.prototype;f.isSingleDoc=function(){return!0};f.getRootNode=function(){return this.win.document};
f.getUrl=function(){return this.win.location.href};f.getHeadNode=function(){return this.win.document.head};f.isBodyAvailable=function(){return!!this.win.document.body};f.getBody=function(){return this.win.document.body};f.waitForBodyOpen=function(){return this.Ia};f.isReady=function(){return xi(this.win.document)};f.whenReady=function(){return this.ab};
function al(a,b,c,d){cl.call(this,a,null,d);this.mb=b;this.te=c;this.ic=null;var e=new H;this.Ia=e.promise;this.yd=e.resolve;this.cb=!1;var g=new H;this.ab=g.promise;this.bb=g.resolve}n(al,cl);f=al.prototype;f.isSingleDoc=function(){return!1};f.getRootNode=function(){return this.te};f.getUrl=function(){return this.mb};f.getHeadNode=function(){return this.te};f.isBodyAvailable=function(){return!!this.ic};f.getBody=function(){return this.ic};f.setBody=function(a){this.ic=a;this.yd(a);this.yd=void 0};
f.waitForBodyOpen=function(){return this.Ia};f.isReady=function(){return this.cb};f.setReady=function(){this.cb=!0;this.bb();this.bb=void 0};f.whenReady=function(){return this.ab};f.getMeta=function(){return F(this.Z)};f.setMetaByName=function(a,b){this.Z||(this.Z=F());this.Z[a]=b};
function bl(a,b,c,d){cl.call(this,a,c,d);var e=this;this.mb=b;this.Ia=this.win.document.body?Promise.resolve(this.win.document.body):ub(this.win.document).then(function(){return e.getBody()});this.cb=!1;a=new H;this.ab=a.promise;this.bb=a.resolve}n(bl,cl);f=bl.prototype;f.isSingleDoc=function(){return!1};f.getRootNode=function(){return this.win.document};f.getUrl=function(){return this.mb};f.getHeadNode=function(){return this.win.document.head};f.isBodyAvailable=function(){return!!this.win.document.body};
f.getBody=function(){return this.win.document.body};f.waitForBodyOpen=function(){return this.Ia};f.isReady=function(){return this.cb};f.whenReady=function(){return this.ab};f.setReady=function(){this.cb=!0;this.bb();this.bb=void 0};function dl(){var a=self;O(a,"ampdoc",function(){return new Zk(a)})};function el(a){return a.waitForBodyOpen().then(function(){var b=a.getBody(),c=sb(b,function(){return!!b.firstElementChild});return U(a.win).timeoutPromise(2E3,c).then(function(){return"AMP-STORY"===b.firstElementChild.tagName},function(){return!1})})};function fl(a){var b=this;this.win=a;this.La=[];this.kd=a.performance.timeOrigin||a.performance.timing.navigationStart;this.j=this.A=this.w=null;this.Ra=this.Ic=!1;this.Kd=F();this.qd="";this.tc=new H;this.Od=new H;this.fe=new H;this.V=kd(this.win);this.V.isChrome()||this.V.isOpera()||this.tc.resolve(null);this.nb=this.Ub=0;var c=this.win.PerformanceObserver&&this.win.PerformanceObserver.supportedEntryTypes||[];this.Yb=c.includes("layout-shift");this.Nf=c.includes("first-input");this.Xb=c.includes("largest-contentful-paint");
this.Of=c.includes("navigation");this.Mc=this.Lc=null;this.Cd=this.yf.bind(this);this.Wc=this.Wc.bind(this);this.addEnabledExperiment("rtv-"+u(this.win).rtvVersion);Bi(a.document).then(function(){b.tick("dr");b.flush()});Ci(a.document).then(function(){b.tick("ol");if(!b.win.PerformancePaintTiming&&b.win.chrome&&"function"==typeof b.win.chrome.loadTimes){var a=1E3*b.win.chrome.loadTimes().firstPaintTime-b.win.performance.timing.navigationStart;1>=a||b.tickDelta("fp",a)}b.flush()});gl(this);hl(this)}
f=fl.prototype;
f.coreServicesAvailable=function(){var a=this,b=this.win.document.documentElement;this.w=Qc(b);this.A=md(b);this.j=ld(b);this.Ra=this.A.isEmbedded()&&"1"===this.A.getParam("csi");this.w.onVisibilityChanged(this.flush.bind(this));il(this);var c=this.A.whenMessagingReady();this.w.whenFirstVisible().then(function(){a.tick("ofv");a.flush()});var d=this.Xb||this.Yb;d&&(this.win.addEventListener("visibilitychange",this.Cd,{capture:!0}),this.w.onVisibilityChanged(this.Wc));return c?c.then(function(){a.tickDelta("msr",a.win.performance.now());
a.tick("timeOrigin",void 0,a.kd);return jl(a)}).then(function(){a.Ic=!0;kl(a);a.flush()}):v()};function jl(a){var b=id(a.win).getSingleDoc();return el(b).then(function(b){b&&a.addEnabledExperiment("story")})}
function gl(a){if("inabox"!==u(a.win).runtime){var b=!1,c=!1,d=!1,e=!1,g=function(g){"first-paint"!=g.name||b?"first-contentful-paint"!=g.name||c?"first-input"!==g.entryType||d?"layout-shift"===g.entryType?g.hadRecentInput||(a.nb+=g.value):"largest-contentful-paint"===g.entryType?(g.loadTime&&(a.Lc=g.loadTime),g.renderTime&&(a.Mc=g.renderTime)):"navigation"!=g.entryType||e||("domComplete domContentLoadedEventEnd domContentLoadedEventStart domInteractive loadEventEnd loadEventStart requestStart responseStart".split(" ").forEach(function(b){return a.tick(b,
g[b])}),e=!0):(a.tickDelta("fid",g.processingStart-g.startTime),d=!0):(a.tickDelta("fcp",g.startTime+g.duration),c=!0):(a.tickDelta("fp",g.startTime+g.duration),b=!0)},h=[];a.win.PerformancePaintTiming&&(a.win.performance.getEntriesByType("paint").forEach(g),h.push("paint"));if(a.Nf){var k=ll(a,g);k.observe({type:"first-input",buffered:!0})}if(a.Yb){var l=ll(a,g);l.observe({type:"layout-shift",buffered:!0})}if(a.Xb){var m=ll(a,g);m.observe({type:"largest-contentful-paint",buffered:!0})}if(a.Of){var q=
ll(a,g);q.observe({type:"navigation",buffered:!0})}if(0!==h.length){var p=ll(a,g);try{p.observe({entryTypes:h})}catch(t){C().warn(t)}}}}function ll(a,b){return new a.win.PerformanceObserver(function(c){c.getEntries().forEach(b);a.flush()})}function hl(a){if(a.win.perfMetrics&&a.win.perfMetrics.onFirstInputDelay)a.win.perfMetrics.onFirstInputDelay(function(b){a.tickDelta("fid-polyfill",b);a.flush()})}f.yf=function(){"hidden"===this.win.document.visibilityState&&(this.Yb&&ml(this),this.Xb&&nl(this))};
f.Wc=function(){"inactive"===this.w.getVisibilityState()&&(this.Yb&&ml(this),this.Xb&&nl(this))};function ml(a){0===a.Ub?(a.tickDelta("cls",a.nb),a.flush(),a.Ub=1):1===a.Ub&&(a.tickDelta("cls-2",a.nb),a.flush(),a.Ub=2,a.win.removeEventListener("visibilitychange",a.Cd,{capture:!0}))}function nl(a){null!==a.Lc&&a.tickDelta("lcpl",a.Lc);null!==a.Mc&&a.tickDelta("lcpr",a.Mc);a.flush()}
function il(a){var b=!a.w.hasBeenVisible(),c=-1;a.w.whenFirstVisible().then(function(){c=a.win.performance.now();a.mark("visible")});ol(a).then(function(){if(b){var d=-1<c?a.win.performance.now()-c:0;a.w.whenFirstVisible().then(function(){a.tickDelta("pc",d)});pl(a,d);a.mark("pc")}else a.tick("pc"),pl(a,a.win.performance.now()-c);a.flush()})}
function ol(a){return a.j.whenFirstPass().then(function(){var b=a.win.document.documentElement,c=od(b).getSize();c=L(0,0,c.width,c.height);return mk(b,a.win,c,!0)})}
f.tick=function(a,b,c){var d=G({label:a}),e;void 0!=b?d.delta=e=Math.max(b,0):void 0!=c?d.value=c:(this.mark(a),e=this.win.performance.now(),d.value=this.kd+e);this.Ic&&this.Ra?this.A.sendMessage("tick",d):(50<=this.La.length&&this.La.shift(),this.La.push(d));switch(a){case "fcp":this.tc.resolve(e);break;case "pc":this.Od.resolve(e);break;case "mbv":this.fe.resolve(e)}};f.mark=function(a){this.win.performance&&this.win.performance.mark&&1==arguments.length&&this.win.performance.mark(a)};
f.tickDelta=function(a,b){this.tick(a,b)};f.tickSinceVisible=function(a){var b=this.kd+this.win.performance.now(),c=this.w?this.w.getFirstVisibleTime():0;this.tickDelta(a,c?Math.max(b-c,0):0)};f.flush=function(){this.Ic&&this.Ra&&this.A.sendMessage("sendCsi",G({ampexp:this.qd}),!0)};f.throttledFlush=function(){this.ve||(this.ve=zf(this.win,this.flush.bind(this)));this.ve()};f.addEnabledExperiment=function(a){this.Kd[a]=!0;this.qd=Object.keys(this.Kd).join(",")};
function kl(a){a.A&&(a.Ra&&a.La.forEach(function(b){a.A.sendMessage("tick",b)}),a.La.length=0)}function pl(a,b){a.A&&a.A.sendMessage("prerenderComplete",G({value:b}),!0)}f.isPerformanceTrackingOn=function(){return this.Ra};f.getFirstContentfulPaint=function(){return this.tc.promise};f.getMakeBodyVisible=function(){return this.fe.promise};f.getFirstViewportReady=function(){return this.Od.promise};function ql(){var a=self,b=a.location.href;if(!K(b,"about:")){var c=!1;u().development&&(c="0"!==r(a.location.originalHash||a.location.hash).validate);c?rl(a.document,Qa.cdn+"/v0/validator.js").then(function(){amp.validator.validateUrlAndLog(b,a.document)}):u().examiner&&rl(a.document,Qa.cdn+"/examiner.js")}}
function rl(a,b){var c=a.createElement("script");c.src=b;(b=a.head.querySelector("script[nonce]"))&&c.setAttribute("nonce",b.getAttribute("nonce"));b=Ze(c).then(function(){a.head.removeChild(c)},function(){});a.head.appendChild(c);return b};u(self).runtime="inabox";u(self).a4aId=function(a){var b=a.document.head.querySelector('meta[name="amp4ads-id"]');return b?b.getAttribute("content"):null}(self);var sl;try{Lf(),dl(),sl=id(self)}catch(a){throw vf(self.document),a;}(function(){Gh=!0})();
Kh(self.document,function(){var a=sl.getAmpDoc(self.document);O(self,"platform",vi);O(self,"performance",fl);var b=Q(self,"performance");b.tick("is");self.document.documentElement.classList.add("i-amphtml-inabox");nf(a,yf+"html.i-amphtml-inabox{width:100%!important;height:100%!important}",function(){Kh(self.document,function(){Mj(self);ik();var c=a.win;N(c,"inabox-viewport-friendly")&&Bh(c.top)||O(c,"iframeMessagingClient",sk.bind(null,c),!0);P(a,"url",Pi,!0);P(a,"documentInfo",Ng);P(a,"cid",tk);
P(a,"viewer",zk,!0);Yk(a);P(a,"hidden-observer",Ug);P(a,"history",kh);P(a,"resources",xk);P(a,"owners",li);P(a,"mutator",uk);vj(a);P(a,"action",Vf,!0);P(a,"standard-actions",Ji,!0);c=Error("Un-supported service: storage");var d=Qc(a);d=Rc(d);d=Yc(d);var e=d.storage;e?e.reject&&e.reject(c):(d.storage=$c(),d.storage.reject(c));P(a,"navigation",ie,!0);Rg(a);b.coreServicesAvailable();ce=v();ok(a)});Kh(self.document,function(){var a=self;ai(a,"amp-img",ci);ai(a,"amp-pixel",ti);ai(a,"amp-layout",ji)});
Kh(self.document,function(){gk()});Kh(self.document,function(){Zh(a)});Kh(self.document,function(){self.document.documentElement.addEventListener("click",te.bind(null,a),!0);ql();tf()},!0);Kh(self.document,function(){b.tick("e_is");ld(a).ampInitComplete();b.flush()})},!0,"amp-runtime")});self.console&&(console.info||console.log).call(console,"Powered by AMP \u26a1 HTML \u2013 Version 2005012256000",self.location.href);self.document.documentElement.setAttribute("amp-version","2005012256000");})();

//# sourceMappingURL=amp4ads-v0.js.map
