self.AMP_CONFIG={"v":"012107302322001","type":"production","allow-doc-opt-in":["amp-next-page"],"allow-url-opt-in":[],"canary":0,"a4aProfilingRate":0.01,"adsense-ad-size-optimization":1,"doubleclickSraExp":0.01,"doubleclickSraReportExcludedBlock":0.1,"flexAdSlots":0.05,"flexible-bitrate":0.1,"ios-fixed-no-transfer":0,"layout-aspect-ratio-css":0,"disable-a4a-non-sd":1,"tcf-post-message-proxy-api":1,"amp-consent-granular-consent":1,"amp-cid-backup":1,"story-ad-placements":0.01,"story-disable-animations-first-page":0.1,"story-load-first-page-only":0.1,"amp-story-page-attachment-ui-v2":1,"amp-sticky-ad-to-amp-ad":0,"esm":1};/*AMP_CONFIG*/self.AMP_EXP={"flexible-bitrate":0.1,"amp-story-desktop-one-panel":1,"story-disable-animations-first-page":0.5,"story-load-inactive-outside-viewport":0.5};/*AMP_EXP*/; var global=self;self.AMP=self.AMP||[];try{(function(_){if(self.AMP&&!Array.isArray(self.AMP))return;"use strict";class aa{constructor(){this.Ya=new ba}abort(){this.Ya.Bd||(this.Ya.Bd=!0,this.Ya.nc&&this.Ya.nc({type:"abort",bubbles:!1,cancelable:!1,target:this.Ya,currentTarget:this.Ya}))}get signal(){return this.Ya}}class ba{constructor(){this.Bd=!1;this.nc=null}get aborted(){return this.Bd}get onabort(){return this.nc}set onabort(a){this.nc=a}}let da;function u(){return da?da:da=Promise.resolve(void 0)}class v{constructor(){this.promise=new Promise(((a,b)=>{this.resolve=a;this.reject=b}))}}function ea(a){return new Promise((b=>{b(a())}))}function fa(a){let b=Object.getOwnPropertyDescriptor(a,"message");if(null!==b&&void 0!==b&&b.writable)return a;let c=a.stack,d=Error(a.message);for(let e in a)d[e]=a[e];d.stack=c;return d}function ha(a){let b=null,c="";for(let d of arguments)d instanceof Error&&!b?b=fa(d):(c&&(c+=" "),c+=d);b?c&&(b.message=c+": "+b.message):b=Error(c);return b}function w(a){let b=ha.apply(null,arguments);setTimeout((()=>{var c,d;null===(c=(d=self).__AMP_REPORT_ERROR)||void 0===c?void 0:c.call(d,b);throw b}))}let ia=Object.prototype.hasOwnProperty,ja=Object.prototype.toString;function ka(a){return"[object Object]"===ja.call(a)}function x(a){let b=Object.create(null);a&&Object.assign(b,a);return b}function z(a){return a||{}}function la(a){let b=x();for(let c in a){if(!ia.call(a,c))continue;let d=a[c];b[c]=ka(d)?la(d):d}return b}let ma=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,na="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "),oa={childList:!0,subtree:!0};function pa(a,b){if(!ma.test(b)||na.includes(b))throw new a(`invalid custom element name "${b}"`)}class qa{constructor(a,b){this.F=a;this.wc=b;this.Af=x()}define(a,b,c){this.wc.define(a,b,c);let d=this.Af,e=d[a];e&&(e.resolve(),delete d[a])}get(a){let b=this.wc.getByName(a);if(b)return b.ctor}whenDefined(a){pa(this.F.SyntaxError,a);if(this.wc.getByName(a))return u();let b=this.Af;let c=b[a];c||(c=new v,b[a]=c);return c.promise}upgrade(a){this.wc.upgrade(a)}}function ra(a,b){if(a.Va)a.Va+=`,${b}`;else{a.Va=b;var c=new a.F.MutationObserver((d=>{d&&sa(a,d)}));a.ga=c;for(let d of a.be)c.observe(d,oa);ta(a.F,a)}}function ua(a,b){return b&&a.querySelectorAll?a.querySelectorAll(b):[]}function va(a,b){let c=a.getByName(b.localName);if(c&&(wa(a,b,c),b.connectedCallback))try{b.connectedCallback()}catch(d){w(d)}}function wa(a,b,c){c=c.ctor;if(!(b instanceof c)){a.gd=b;try{if(new c!==b)throw new a.F.Error("Constructor illegally returned a different instance.")}catch(d){w(d)}}}function sa(a,b){for(let c of b){if(!c)continue;let d=c.addedNodes,e=c.removedNodes;for(let f of d){let g=ua(f,a.Va);va(a,f);for(let h of g)va(a,h)}for(let f of e){let g=ua(f,a.Va);if(f.disconnectedCallback)try{f.disconnectedCallback()}catch(h){w(h)}for(let h of g)if(h.disconnectedCallback)try{h.disconnectedCallback()}catch(k){w(k)}}}}class xa{constructor(a){this.F=a;this.jd=x();this.Va="";this.ga=this.gd=null;this.be=[a.document]}current(){let a=this.gd;this.gd=null;return a}getByName(a){let b=this.jd[a];if(b)return b}getByConstructor(a){let b=this.jd;for(let c in b){let d=b[c];if(d.ctor===a)return d}}define(a,b,c){let d=this.F.Error,e=this.F.SyntaxError;if(c)throw new d("Extending native custom elements is not supported");pa(e,a);if(this.getByName(a)||this.getByConstructor(b))throw new d(`duplicate definition "${a}"`);this.jd[a]={name:a,ctor:b};ra(this,a);for(let f of this.be)this.upgrade(f,a)}upgrade(a,b){let c=!!b,d=ua(a,b||this.Va);for(let e of d)c?va(this,e):this.upgradeSelf(e)}upgradeSelf(a){let b=this.getByName(a.localName);b&&wa(this,a,b)}observe(a){this.be.push(a);this.ga&&this.ga.observe(a,oa)}sync(){this.ga&&sa(this,this.ga.takeRecords())}}function ta(a,b){var c;let d=a.document,e=a.Document.prototype,f=a.Element.prototype,g=a.Node.prototype,h=e.createElement,k=e.importNode,l=g.appendChild,m=g.cloneNode,n=g.insertBefore,p=g.removeChild,r=g.replaceChild;e.createElement=function(y){let P=b.getByName(y);return P?new P.ctor:h.apply(this,arguments)};e.importNode=function(){let y=k.apply(this,arguments);y&&this===d&&(b.upgradeSelf(y),b.upgrade(y));return y};g.appendChild=function(){let y=l.apply(this,arguments);b.sync();return y};g.insertBefore=function(){let y=n.apply(this,arguments);b.sync();return y};g.removeChild=function(){let y=p.apply(this,arguments);b.sync();return y};g.replaceChild=function(){let y=r.apply(this,arguments);b.sync();return y};g.cloneNode=function(){let y=m.apply(this,arguments);y.ownerDocument===d&&(b.upgradeSelf(y),b.upgrade(y));return y};let t=f,q=Object.getOwnPropertyDescriptor(t,"innerHTML");q||(t=Object.getPrototypeOf(a.HTMLElement.prototype),q=Object.getOwnPropertyDescriptor(t,"innerHTML"));if(null!==(c=q)&&void 0!==c&&c.configurable){let y=q.set;q.set=function(P){y.call(this,P);b.upgrade(this)};Object.defineProperty(t,"innerHTML",q)}}function ya(){function a(){let m=this.constructor;var n=g.current();n||(n=g.getByConstructor(m),n=f.call(e,n.name));Object.setPrototypeOf(n,m.prototype);return n}var b=za,c=b.Element;let d=b.HTMLElement,e=b.document,f=e.createElement,g=new xa(b),h=new qa(b,g);Object.defineProperty(b,"customElements",{enumerable:!0,configurable:!0,value:h});c=c.prototype;let k=c.attachShadow,l=c.createShadowRoot;k&&(c.attachShadow=function(m){let n=k.apply(this,arguments);g.observe(n);return n},c.attachShadow.toString=function(){return k.toString()});l&&(c.createShadowRoot=function(){let m=l.apply(this,arguments);g.observe(m);return m},c.createShadowRoot.toString=function(){return l.toString()});Aa(d,a);b.HTMLElementOrig=b.HTMLElement;b.HTMLElement=a;a.call||(a.apply=b.Function.apply,a.bind=b.Function.bind,a.call=b.Function.call)}function Ba(){function a(){return d.construct(c,[],this.constructor)}var b=za;let c=b.HTMLElement,d=b.Reflect;Aa(c,a);b.HTMLElementOrig=b.HTMLElement;b.HTMLElement=a}function Aa(a,b){b.prototype=Object.create(a.prototype,{constructor:{configurable:!0,writable:!0,value:b}});Object.setPrototypeOf(b,a)}function Ca(a,b,c){b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c;return a}Ca["default"]=Ca;Ca.__esModule=!0;function A(a){for(var b=1;b""!==m));null===(e=(f=self).__AMP_REPORT_ERROR)||void 0===e?void 0:e.call(f,c);throw c}function Qa(a,b,c,d,e){B(e)?a(c,e.concat([b])):a(c,`${e||d}: %s`,b);return b}function Ra(a,b,c,d,e){return Pa("​​​",a,b,c,d,e,void 0,void 0,void 0,void 0,void 0,void 0)}function Sa(a){let b=new Uint8Array(a.length);for(let c=0;c{b||(c=d.apply(self,e),b=!0,d=null);return c}}function ab(a,b,c){function d(h){g=null;f=a.setTimeout(e,c);b.apply(null,h)}function e(){f=0;g&&d(g)}let f=0,g=null;return function(...h){f?g=h:d(h)}}function bb(a,b){function c(){d=0;let g=300-(a.Date.now()-e);if(0{};let jb;function kb(a){jb=a}let lb=(a,b)=>b.reduce(((c,d)=>`${c}&s[]=${encodeURIComponent(String(Na(d)))}`),`https://log.amp.dev/?v=${`01${cb()}`}&id=${encodeURIComponent(a)}`);function mb(a,b,c,d){if((void 0!==jb?jb:a.rf){a.fetch(`${D.cdn}/rtv/${`01${cb()}`}/log-messages.simple.json`).then((d=>d.json()),ib).then((d=>{d&&(this.kc=d)}))}));this.rb=this.assert.bind(this)}isEnabled(){return 0!=(void 0!==jb?jb:this.rf)}fine(a,...b){mb(this,a,4,b)}info(a,...b){mb(this,a,3,b)}warn(a,...b){mb(this,a,2,b)}Sa(a,...b){if(!mb(this,a,1,b))return this.createError.apply(this,b)}error(a,b){let c=this.Sa.apply(this,arguments);c&&(c.name=a||c.name,self.__AMP_REPORT_ERROR(c))}expectedError(a,b){let c=this.Sa.apply(this,arguments);c&&(c.expected=!0,self.__AMP_REPORT_ERROR(c))}createError(a){let b=ha.apply(null,arguments);ob(this,b);return b}createExpectedError(a){let b=ha.apply(null,arguments);ob(this,b);b.expected=!0;return b}assert(a,b,c){return B(b)?this.assert.apply(this,[a].concat(nb(this,b))):Pa.apply(null,[this.Ub].concat(Array.prototype.slice.call(arguments)))}assertElement(a,b){return Qa(this.rb,a,La(a),"Element expected",b)}assertString(a,b){return Qa(this.rb,a,"string"==typeof a,"String expected",b)}assertNumber(a,b){return Qa(this.rb,a,"number"==typeof a,"Number expected",b)}assertArray(a,b){return Qa(this.rb,a,B(a),"Array expected",b)}assertBoolean(a,b){return Qa(this.rb,a,!!a===a,"Boolean expected",b)}}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};let rb=self.__AMP_LOG;let sb=null;function F(a){rb.user||(rb.user=tb("​​​"));var b=rb.user.win;return a&&a.ownerDocument.defaultView!=b?rb.userForEmbed?rb.userForEmbed:rb.userForEmbed=tb("​​​​"):rb.user}function tb(a){if(!sb)throw Error("failed to call initLogConstructor");return new sb(self,((b,c)=>c||1<=b?4:2),a)}function G(){if(rb.dev)return rb.dev;if(!sb)throw Error("failed to call initLogConstructor");return rb.dev=new sb(self,(a=>3<=a?4:2<=a?3:0))}function H(a,b,c,d,e,f){return F().assert(a,b,c,d,e,f,void 0,void 0,void 0,void 0,void 0)} /* https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ function ub(a){return a.replace(/^|,/g,"$&:scope ")}function vb(a,b){let c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return c?c.call(a,b):!1}function wb(a,b){for(;a&&void 0!==a;a=a.parentElement)if(b(a))return a;return null}function xb(a,b){return a.closest?a.closest(b):wb(a,(c=>vb(c,b)))}function yb(a,b){for(a=a.lastElementChild;a;a=a.previousElementSibling)if(b(a))return a;return null}function zb(a,b){let c=[];for(a=a.firstChild;a;a=a.nextSibling)b(a)&&c.push(a);return c}function Ab(a,b){/^[\w-]+$/.test(b);return a.querySelector(ub(`> [${b}]`))}function Bb(a){return zb(a,(b=>!Cb(b)))}function Cb(a){let b;"string"==typeof a?b=a:a.nodeType===Node.ELEMENT_NODE&&(b=a.tagName);return b&&b.toLowerCase().startsWith("i-")?!0:a.nodeType!==Node.ELEMENT_NODE?!1:a.hasAttribute("placeholder")||a.hasAttribute("fallback")||a.hasAttribute("overflow")}let Db={bubbles:!0,cancelable:!0};function Eb(a,b,c){if(b(a))c();else{var d=new a.ownerDocument.defaultView.MutationObserver((()=>{b(a)&&(d.disconnect(),c())}));d.observe(a,{childList:!0})}}function Fb(a,b){return new Promise((c=>{Eb(a,b,c)}))}function Gb(a,b){Eb(a.documentElement,(()=>!!a.body),b)}function Hb(a){return new Promise((b=>Gb(a,b)))}function Ib(a){var b;null===(b=a.parentElement)||void 0===b?void 0:b.removeChild(a)}function Jb(a,b,c=null){c?a.insertBefore(b,c.nextSibling):a.insertBefore(b,a.firstChild)}function Kb(a){var b=z({src:"about:blank",style:"display:none"});a=a.createElement("iframe");for(let c in b)a.setAttribute(c,b[c]);return a}function Lb(a){let b=a.isConnected;if(void 0!==b)return b;do{if(a=Mb(a),a.host)a=a.host;else break}while(1);return a.nodeType===Node.DOCUMENT_NODE}function Mb(a){if(Node.prototype.getRootNode)return a.getRootNode()||a;for(;a.parentNode&&(!a||"I-AMPHTML-SHADOW-ROOT"!=a.tagName&&(11!=a.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(a)));a=a.parentNode);return a}function Nb(a,b){let c=a;do{if(c.nextSibling)return!0}while((c=c.parentNode)&&c!=b);return!1}function Ob(a,b){let c=a.length;for(let d=0;d{}),{root:a.document}),!0}catch(b){return!1}}class Xb{constructor(a,b){this.Ra=a;this.oc=A({root:null,rootMargin:"0px 0px 0px 0px"},b);this.T=[];this.M=null;Xb._upgraders.push(this.me.bind(this))}get root(){return this.M?this.M.root:this.oc.root||null}get rootMargin(){return this.M?this.M.rootMargin:this.oc.rootMargin}get thresholds(){return this.M?this.M.thresholds:[].concat(this.oc.threshold||0)}disconnect(){this.M?this.M.disconnect():this.T.length=0}takeRecords(){return this.M?this.M.takeRecords():[]}observe(a){this.M?this.M.observe(a):-1==this.T.indexOf(a)&&this.T.push(a)}unobserve(a){this.M?this.M.unobserve(a):(a=this.T.indexOf(a),-1!=a&&this.T.splice(a,1))}me(a){let b=new a(this.Ra,this.oc);this.M=b;for(let c of this.T)b.observe(c);this.T.length=0}}Xb._upgraders=[];function Yb(){var a=Zb;!a.IntersectionObserverEntry||"isIntersecting"in a.IntersectionObserverEntry.prototype||Object.defineProperty(a.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get(){return 0=b)e=c-1;else break}this.K.splice(c,0,{item:a,priority:b})}forEach(a){let b=this.length;for(;b--;)a(this.K[b].item)}dequeue(){return this.length?this.K.pop().item:null}get length(){return this.K.length}}let kc;function lc(a,b,c,d){let e=a,f=c,g=l=>{try{return f(l)}catch(p){var m,n;null===(m=(n=self).__AMP_REPORT_ERROR)||void 0===m?void 0:m.call(n,p);throw p}};let h=mc(),k=!(null===d||void 0===d||!d.capture);e.addEventListener(b,g,h?d:k);return()=>{var l;null===(l=e)||void 0===l?void 0:l.removeEventListener(b,g,h?d:k);g=e=f=null}}function mc(){if(void 0!==kc)return kc;kc=!1;try{let a={get capture(){kc=!0}};self.addEventListener("test-options",null,a);self.removeEventListener("test-options",null,a)}catch(a){}return kc}function nc(a,b,c,d){return lc(a,b,c,d)}function oc(a,b,c,d){let e=c;let f=lc(a,b,(g=>{try{e(g)}finally{e=null,f()}}),d);return f}function pc(a,b){let c;let d=new Promise((e=>{c=oc(a,"click",e,void 0)}));d.then(c,c);b&&b(c);return d}function qc(a){return!!(a.complete||"complete"==a.readyState||rc(a)&&0{b=d?oc(a,"loadedmetadata",e,{capture:!0}):oc(a,"load",e);if(a.tagName){var g=a;if(d&&!a.hasAttribute("src")&&(g=yb(a,(h=>"SOURCE"===h.tagName)),!g))return f(Error("Media has no source."));c=oc(g,"error",f)}})).then((()=>{c&&c();return a}),(()=>{b&&b();rc(a)&&(a.__AMP_MEDIA_LOAD_FAILURE_SRC=a.currentSrc||!0);let e=a;e&&e.src&&(e=e.src);throw F().createError("Failed to load:",e)}))}function rc(a){return"AUDIO"===a.tagName||"VIDEO"===a.tagName}function K(a,b,c){a=tc(a);uc(a,a,b,c)}function L(a,b,c,d){let e=vc(a),f=wc(e);uc(f,e,b,c);d&&xc(f,b)}function M(a,b){a=tc(a);return xc(a,b)}function N(a){return xc(a,"timer")}function O(a,b){var c=vc(a);c=wc(c);return xc(c,b)}function yc(a,b){a=vc(a);a=wc(a);return zc(a,b)?xc(a,b):null}function Ac(a,b){return Bc(wc(a),b)}function Cc(a,b){return Dc(wc(a),b)}function tc(a){return a.__AMP_TOP||(a.__AMP_TOP=a)}function Ec(a,b){a=(a.ownerDocument||a).defaultView;let c=b||tc(a);if(a&&a!=c&&tc(a)==c)try{return a.frameElement}catch(d){}return null}function vc(a){return a.nodeType?M((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function wc(a){a=vc(a);return a.isSingleDoc()?a.win:a}function xc(a,b){zc(a,b);a=Fc(a)[b];a.obj||(a.obj=new a.ctor(a.context),a.context=null,a.resolve&&a.resolve(a.obj));return a.obj}function uc(a,b,c,d){let e=Fc(a);let f=e[c];f||(f=e[c]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:!1});f.ctor||(f.ctor=d,f.context=b,f.sharedInstance=!1,f.resolve&&xc(a,c))}function Bc(a,b){let c=Dc(a,b);if(c)return c;a=Fc(a);a[b]=Gc();return a[b].promise}function Dc(a,b){let c=Fc(a)[b];if(c){if(c.promise)return c.promise;xc(a,b);return c.promise=Promise.resolve(c.obj)}return null}function Fc(a){let b=a.__AMP_SERVICES;b||(b=a.__AMP_SERVICES={});return b}function Hc(a){a=Fc(a);for(let b in a){if(!Object.prototype.hasOwnProperty.call(a,b))continue;let c=a[b];c.sharedInstance||(c.obj?Ic(b,c.obj):c.promise&&c.promise.then((d=>Ic(b,d))))}}function Ic(a,b){if("function"==typeof b.dispose)try{b.dispose()}catch(c){G().error("SERVICE","failed to dispose service",a,c)}}function zc(a,b){a=a.__AMP_SERVICES&&a.__AMP_SERVICES[b];return!(!a||!a.ctor)}function Gc(){var a=new v;let b=a.promise,c=a.reject;a=a.resolve;b.catch((()=>{}));return{obj:null,promise:b,resolve:a,reject:c,context:null,ctor:null}}let Jc=["amp-mustache"];function Kc(a){if(!a)return null;var b=a.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)$/i);let c=b?b[2]:void 0;b=b?b[3]:void 0;return c&&b?{extensionId:c,extensionVersion:b}:null}function Lc(a,b,c){let d=a.document.createElement("script");d.async=!0;b.startsWith("_")?c="":d.setAttribute(0<=Jc.indexOf(b)?"custom-template":"custom-element",b);d.setAttribute("data-script",b);d.setAttribute("i-amphtml-inserted","");gb().esm&&d.setAttribute("type","module");let e=a.document.head.querySelector("script[nonce]");e&&d.setAttribute("nonce",e.getAttribute("nonce"));d.setAttribute("crossorigin","anonymous");a=c;c=gb().esm?".mjs":".js";var f=D.cdn;let g=gb().rtvVersion;d.src=`${f}/rtv/${g}/v0/${b}${a?"-"+a:""}${c}`;return d}function Mc(a,b,c,d,e=!0){a=a.document.head.querySelectorAll(`script[src*="/${b}-"]${":not([i-amphtml-loaded-new-version])"+(e?"":":not([i-amphtml-inserted])")}`);let f=[];for(let g=0;gH(d,"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 Pc(a,b,c,d){let e=Cc(a,b);if(e)return e;let f=vc(a);return f.whenExtensionsKnown().then((()=>{let g=f.getExtensionVersion(c);return g?M(f.win,"extensions").waitForExtension(c,g):null})).then((g=>g?d?Cc(a,b):Ac(a,b):null))}function Qc(a){let b=yc(a,"bind");return b?Promise.resolve(b):Pc(a,"bind","amp-bind")}function Rc(a){return M(a,"ampdoc")}function Sc(a){return M(a,"extensions")}function Tc(a){return O(a,"documentInfo").get()}function Q(a){return O(a,"mutator")}function S(a){return M(a,"platform")}function Uc(a){return M(a,"preconnect")}function Vc(a){return O(a,"resources")}function T(a){return O(a,"viewer")}function Wc(a){return M(a,"vsync")}function U(a){return O(a,"viewport")}let Xc;let Yc="Webkit webkit Moz moz ms O o".split(" "),Zc={getPropertyPriority:()=>"",getPropertyValue:()=>""};function $c(a,b,c){if(b.startsWith("--"))return b;Xc||(Xc=x());let d=Xc[b];if(!d||c){d=b;if(void 0===a[b]){var e=b.charAt(0).toUpperCase()+b.slice(1);a:{for(let g=0;g{let d=Bc(a,c).then((e=>e&&"function"==typeof e.whenReady?e.whenReady().then((()=>e)):e));return N(a).timeoutPromise(3e3,d,`Render timeout waiting for service ${c} to be ready.`)}));return Promise.all(b)}function fd(a){let b=a.document;return Object.keys(dd).filter((c=>b.querySelector(dd[c])))}function gd(a,b,c,d){let e=a.getHeadNode(),f=hd(e,id(e,b),d||null);if(c){let h=a.getRootNode();if(jd(h,f))c(f);else var g=setInterval((()=>{jd(h,f)&&(clearInterval(g),c(f))}),4)}}function hd(a,b,c){let d=a.__AMP_CSS_SM;d||(d=a.__AMP_CSS_SM=x());let e=c&&"amp-custom"!=c&&"amp-keyframes"!=c,f=e?`amp-extension=${c}`:null;if(f){let k=kd(a,d,f);if(k)return k.textContent!==b&&(k.textContent=b),k}let g=(a.ownerDocument||a).createElement("style");g.textContent=b;let h=null;e?(g.setAttribute("amp-extension",c||""),h=kd(a,d,"amp-runtime")):(c&&g.setAttribute(c,""),h=a.lastChild);Jb(a,g,h);f&&(d[f]=g);return g}function kd(a,b,c){return b[c]?b[c]:(a=a.querySelector(`style[${c}]`))?b[c]=a:null}function id(a,b){return(a=a.__AMP_CSS_TR)?a(b):b}let ld=!1;function md(){var a=self.document;let b=a.defaultView;Hb(a).then((()=>ed(b))).catch((c=>{w(c);return[]})).then((c=>{ld=!0;a.body.getBoundingClientRect();nd(a);vc(a).signals().signal("render-start");0{d.xe=!0}))}}function vd(a,b){pd?qd.then(b):sd(a).run(b,10)}function wd(a,b){if("run"!=a.state){a.state="run";try{a.od(b)}catch(c){throw a.yf(),c}}}class xd{constructor(a){this.state="not_run";this.od=a}Bh(){return this.od.displayName||this.od.name}yf(){}jf(){return!1}Vf(){return!1}}class yd extends xd{constructor(a,b){super(a);this.Oe=b}yf(){od(self.document)}jf(){return this.Oe.ampdoc.isVisible()}Vf(){return this.Oe.Se}}function zd(a,b){let c=a.N.peek();for(;c&&"not_run"!==c.state;)a.N.dequeue(),c=a.N.peek();c&&b&&a.N.dequeue();return c}function Ad(a){a.F.postMessage("amp-macro-task","*")}function Bd(a){a.xe&&(a.oh?a.F.navigator.scheduling.isInputPending():5{a.ze(null)}))}class td{constructor(a){this.ampdoc=a;this.F=a.win;this.N=new jc;this.ze=this.Ye.bind(this);this.xb=0;this.oh=!(!this.F.navigator.scheduling||!this.F.navigator.scheduling.isInputPending);this.Bc=!1;this.xe=this.F.document.documentElement.hasAttribute("i-amphtml-no-boilerplate");this.F.addEventListener("message",(b=>{"amp-macro-task"==b.data&&this.Ye(null)}));this.Se=!1;Ac(a,"viewer").then((()=>{this.Se=!0}));a.onVisibilityChanged((()=>{a.isVisible()&&this.wa()}))}run(a,b){a=new xd(a);this.N.enqueue(a,b);this.wa()}runForStartup(a){a=new yd(a,this);this.N.enqueue(a,Number.POSITIVE_INFINITY);this.wa()}Ye(a){let b=zd(this,!0);if(!b)return this.Bc=!1,this.xb=0,!1;let c;try{c=Date.now(),wd(b,a)}finally{qd.then().then().then().then().then().then().then().then().then((()=>{this.Bc=!1;this.xb+=Date.now()-c;this.wa()}))}return!0}wa(){if(!this.Bc){var a=zd(this);a&&(a.jf()?(this.Bc=!0,Bd(this)):a.Vf()&&this.F.requestIdleCallback?Cd(this.F,this.ze):Ad(this))}}}function Cd(a,b){function c(e){if(15>e.timeRemaining()){let f=2e3-(Date.now()-d);0>=f||e.didTimeout?b(e):a.requestIdleCallback(c,{timeout:f})}else b(e)}let d=Date.now();a.requestIdleCallback(c,{timeout:2e3})}function Dd(a,b){let c=b.documentElement;return a.some((d=>c.hasAttribute(d)))}function Ed(a){return a.waitForBodyOpen().then((()=>{let b=a.getBody(),c=Fb(b,(()=>!!b.firstElementChild));return N(a.win).timeoutPromise(2e3,c).then((()=>"AMP-STORY"===b.firstElementChild.tagName),(()=>!1))}))}function Fd(a){let b=a.win;Dd(["⚡","amp"],b.document)&&a.isSingleDoc()&&vd(a,(()=>{Ed(a).then((c=>{c||Sc(b).installExtensionForDoc(a,"amp-auto-lightbox")}))}))}function Gd(a,b={}){Pc(a,"amp-analytics-instrumentation","amp-analytics").then((c=>{c&&c.triggerEventForTarget(a,"user-error",b,!1)}))}function Hd(){let a=Id();return b=>setTimeout(b,a())}function Id(){let a=0;return()=>{let b=Math.pow(1.5,a++);var c=b*(c||.3)*Math.random();.5=n&&(g[m]=Math.random()"string"==typeof a?W(a):a;function W(a){Od||(Od=self.document.createElement("a"));return Rd(Od,a)}function Rd(a,b){a.href="";return new URL(b,a.href)}function Sd(a,b,c){if(!b)return a;let d=a.split("#",2),e=d[0].split("?",2);let f=e[0]+(e[1]?c?`?${b}&${e[1]}`:`?${e[1]}&${b}`:`?${b}`);return f+=d[1]?`#${d[1]}`:""}function Td(a,b){return`${encodeURIComponent(a)}=${encodeURIComponent(b)}`}function Ud(a,b){return Sd(a,Vd(b))}function Vd(a){let b=[];for(let c in a){let d=a[c];if(null!=d){d=Fa(d);for(let e=0;enull===e||void 0===e?void 0:e.tagName));-1{!b.reason||"CANCELLED"!==b.reason.message&&"BLOCK_BY_CONSENT"!==b.reason.message&&"AbortError"!==b.reason.message?ie(b.reason||Error("rejected promise "+b)):b.preventDefault()}))}function je(a,b,c,d,e){!this||!this.document||e&&e.expected||od(this.document);let f=!1;try{f=ne()}catch(h){}if(!(f&&.01{try{return pe(this,g).catch((()=>{}))}catch(h){}}))}}function pe(a,b){return b.pt&&.9>Math.random()?u():qe(a,b).then((c=>{if(!c){let d=new XMLHttpRequest;d.open("POST",.1>Math.random()?D.betaErrorReporting:D.errorReporting,!0);d.send(JSON.stringify(b))}}))}function qe(a,b){a=Rc(a);if(!a.isSingleDoc())return Promise.resolve(!1);let c=a.getSingleDoc();if(!c.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);let d=T(c);return d.hasCapability("errorReporter")?d.isTrustedViewer().then((e=>{if(!e)return!1;d.sendMessage("error",z({m:b.m,a:b.a,s:b.s,el:b.el,ex:b.ex,v:b.v,pt:b.pt}));return!0})):Promise.resolve(!1)}function oe(a,b,c,d,e,f){var g=a;e&&(g=e.message?e.message:String(e));g||(g="Unknown error");a=g;let h=!(!e||!e.expected);if(!/_reported_/.test(a)&&"CANCELLED"!=a){var k=!(self&&self.window),l=Math.random();if(-1!=a.indexOf("Failed to load:")||"Script error."==a||k)if(h=!0,.001{b(a)&&(d||(d=!0,c(a)),a.removeEventListener("readystatechange",e))};a.addEventListener("readystatechange",e)}}function ve(a){return new Promise((b=>{te(a,b)}))}function we(a){return new Promise((b=>{ue(a,se,b)}))}function xe(){var a=self;te(a.document,(()=>ye(a)))}function ye(a){let b=1500;let c=a.performance;c&&c.timing&&c.timing.navigationStart&&(b=Date.now()-c.timing.navigationStart);let d=Math.max(1,2100-b);a.setTimeout((()=>{ze(a);let e=a.document.styleSheets;if(e){var f=a.document.querySelectorAll(`link[rel~="stylesheet"]:not([href^="${CSS.escape(D.cdn)}"])`),g=[];for(var h=0;h{k.media=l;ze(a)};k.setAttribute("i-amphtml-timeout",d);k.parentNode.insertBefore(k,k.nextSibling)}}}),d)}function ze(a){a=a.document;if(a.fonts&&a.fonts.values)for(var b=a.fonts.values();a=b.next();){let c=a.value;if(!c)break;"loading"==c.status&&"display"in c&&"auto"==c.display&&(c.display="swap")}}let Ae=null;let Be=["gclid","gclsrc"],Ce=[/^t.co$/];function De(){return H(Ae,"E#19457 trackImpressionPromise")}function Ee(){var a=self,b=new v;let c=b.promise,d=b.resolve;Ae=N(a).timeoutPromise(8e3,c,"TrackImpressionPromise timeout").catch((()=>{}));b=T(a.document.documentElement);let e=b.isTrustedViewer(),f=b.getReferrerUrl().then((g=>Fe(g)));Promise.all([e,f]).then((g=>{let h=g[1];if(g[0]||h||Jd(a,"alp")){var k=Ge(a),l=He(a);Promise.all([k,l]).then((()=>{d()}),(()=>{}))}else d()}))}function Ge(a){let b=T(a.document.documentElement);return b.getParam("replaceUrl")?b.hasCapability("replaceUrl")?b.sendMessageAwaitResponse("getReplaceUrl",void 0).then((c=>{c&&"object"==typeof c&&b.replaceUrl(c.replaceUrl||null)}),(()=>{})):(b.replaceUrl(b.getParam("replaceUrl")||null),u()):u()}function Fe(a){let b=W(a);return"https:"!=b.protocol?!1:Ce.some((c=>c.test(b.hostname)))}function He(a){let b=vc(a.document.documentElement),c=T(b).getParam("click");if(!c||0!=c.indexOf("https://"))return u();a.location.hash&&(a.location.hash="");return b.whenFirstVisible().then((()=>Ie(a,c))).then((d=>{if(d){var e=d.location;(d=d.tracking_url||e)&&!X(d)&&((new Image).src=d);if(e&&a.history.replaceState){d=T(a.document.documentElement);var f=a.location.href;e=W(e);e=E(e.search);e=Ud(f,e);a.history.propertyIsEnumerable(null,"",e);d.maybeUpdateFragmentForCct()}}})).catch((()=>{}))}function Ie(a,b){return M(a,"xhr").fetchJson(b,{credentials:"include"}).then((c=>204==c.status?null:c.json()))}function Je(a){return a.whenReady().then((()=>!!a.getBody().querySelector("amp-analytics[type=googleanalytics]")))}let Ke;function Le(a){a=a.ownerDocument||a;Ke&&Ke.ownerDocument===a||(Ke=a.createElement("div"));return Me}function Me(a){var b=Ke;b.innerHTML=a[0];a=b.firstElementChild;b.removeChild(a);return a}let Ne=[""];let Oe=null;function Pe(a){return a.startsWith("https:")||a.startsWith("http:")?!0:!1}function Qe(a,b){if(!a.cc.preconnect&&(a.pa.isSafari()||a.pa.isIos())){var c=Date.now();a.Mb[b]=c+18e4;a=new XMLHttpRequest;a.open("HEAD",b+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(c-c%18e4),!0);a.withCredentials=!0;a.send()}}class Re{constructor(a){this.kd=a.document;this.ud=a.document.head;this.Mb={};this.Uf={};this.pa=S(a);this.Mb[W(a.location.href).origin]=!0;a:{if(!Oe){var b=a.document.createElement("link");let c=b.relList;b.as="invalid-value";if(!c||!c.supports){b={};break a}Oe={preconnect:c.supports("preconnect"),preload:c.supports("preload"),onlyValidAs:"invalid-value"!=b.as}}b=Oe}this.cc=b;this.R=N(a)}url(a,b,c){a.whenFirstVisible().then((()=>{this.Xb(a,b,c)}))}Xb(a,b,c){if(Pe(b)){({origin:a}=W(b));var d=Date.now(),e=this.Mb[a];if(e&&d{f&&f.parentNode&&f.parentNode.removeChild(f);g.parentNode&&g.parentNode.removeChild(g)}),1e4);Qe(this,a)}}}preload(a,b,c){Pe(b)&&!this.Uf[b]&&(this.Uf[b]=!0,this.url(a,b,!0),this.cc.preload&&("document"==c&&this.pa.isSafari()||a.whenFirstVisible().then((()=>{let d=Le(this.kd)(Ne);d.setAttribute("href",b);d.as=this.cc.onlyValidAs?"fetch":"";this.ud.appendChild(d)}))))}}function Se(){var a=self.document;we(a).then((()=>{var b=a.defaultView;if(b){b=Uc(b);let c=Tc(a.documentElement),d=vc(a);b.url(d,c.sourceUrl);b.url(d,c.canonicalUrl)}}))}function Te(a){a.Jc=!1;a.fe=0;a.Da.removeEventListener("touchmove",a.Ee,!0);a.Da.removeEventListener("touchend",a.De,!0);a.Da.removeEventListener("touchcancel",a.Ce,!0)}class Ue{constructor(a,b){this.Da=a;this.J=b;this.Jc=!1;this.fe=0;this.Fe=this.Wg.bind(this);this.Ee=this.Vg.bind(this);this.De=this.Ug.bind(this);this.Ce=this.Tg.bind(this);this.Da.addEventListener("touchstart",this.Fe,!0)}cleanup(){Te(this);this.Da.removeEventListener("touchstart",this.Fe,!0)}Wg(a){this.Jc||!a.touches||1!=a.touches.length||0nc(b,d,(e=>{Pb(this.element,d,e.data||{})}))));return()=>c.forEach((d=>d()))}getPlaceholder(){return this.element.getPlaceholder()}togglePlaceholder(a){this.element.togglePlaceholder(a)}getFallback(){return this.element.getFallback()}toggleFallback(a){this.element.toggleFallback(a)}toggleLoading(a,b=!1){this.element.toggleLoading(a,b)}getOverflowElement(){return this.element.getOverflowElement()}renderStarted(){this.element.renderStarted()}getViewport(){return U(this.getAmpDoc())}getIntersectionElementLayoutBox(){return this.getLayoutBox()}collapse(){Q(this.getAmpDoc()).collapseElement(this.element)}attemptCollapse(){return Q(this.getAmpDoc()).attemptCollapse(this.element)}forceChangeHeight(a){Q(this.getAmpDoc()).forceChangeSize(this.element,a,void 0)}attemptChangeHeight(a){return Q(this.getAmpDoc()).requestChangeSize(this.element,a,void 0)}attemptChangeSize(a,b,c){return Q(this.getAmpDoc()).requestChangeSize(this.element,a,b,void 0,c)}measureElement(a){return Q(this.getAmpDoc()).measureElement(a)}mutateElement(a,b){return this.measureMutateElement(null,a,b)}measureMutateElement(a,b,c){return Q(this.getAmpDoc()).measureMutateElement(c||this.element,a,b)}mutateElementSkipRemeasure(a){return Q(this.getAmpDoc()).mutateElement(this.element,a,!0)}collapsedCallback(){}expand(){Q(this.getAmpDoc()).expandElement(this.element)}mutatedAttributesCallback(){}onLayoutMeasure(){}user(){return F(this.element)}getApi(){return this}}function ef(a){a.actionMap_||(a.actionMap_=a.win.Object.create(null))} /* 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 */ function ff(a,b,c,d){let e=Fa(a);for(let f of e)a=b.getAttribute(f),null!==a?c.setAttribute(f,a):d&&c.removeAttribute(f)}class gf{constructor(){this.Ha=x();this.Ka=null}get(a){a=this.Ha[a];return null==a?null:a}whenSignal(a){var b;let c=null===(b=this.Ka)||void 0===b?void 0:b[a];c||(b=this.Ha[a],c=null!=b?{promise:"number"==typeof b?Promise.resolve(b):Promise.reject(b)}:new v,this.Ka||(this.Ka=x()),this.Ka[a]=c);return c.promise}signal(a,b){var c;if(null==this.Ha[a]){var d=null!==b&&void 0!==b?b:Date.now();this.Ha[a]=d;a=null===(c=this.Ka)||void 0===c?void 0:c[a];null!==a&&void 0!==a&&a.resolve&&(a.resolve(d),a.resolve=void 0,a.reject=void 0)}}rejectSignal(a,b){var c;null==this.Ha[a]&&(this.Ha[a]=b,a=null===(c=this.Ka)||void 0===c?void 0:c[a],null!==a&&void 0!==a&&a.reject&&(a.reject(b),a.promise.catch((()=>{})),a.resolve=void 0,a.reject=void 0))}reset(a){var b;this.Ha[a]&&delete this.Ha[a];let c=null===(b=this.Ka)||void 0===b?void 0:b[a];c&&!c.resolve&&delete this.Ka[a]}}class hf{constructor(a,b){this.F=a;this.Ra=b;this.Ea={};this.Ob=null}start(){this.Ob=this.Ea;this.Ea={}}resolveMatchQuery(a){return"1"===this.zc(a,jf,"1")}resolveListQuery(a){return this.zc(a,kf,"")}complete(){for(let a in this.Ob)a in this.Ea||lf(this.Ob[a],this.Ra,!1);this.Ob=null}dispose(){for(let a in this.Ea)lf(this.Ea[a],this.Ra,!1);this.Ea={}}zc(a,b,c){if(!a.trim())return c;var d=this.Ea[a]||this.Ob[a];d||(d=b(this.F,a),lf(d,this.Ra,!0));this.Ea[a]=d;a:{for(a=0;a{c=c.replace(/\s+/g," ").trim();if(0!=c.length){var d;if(")"==c.charAt(c.length-1)){let f=1;for(d=c.length-2;0<=d;d--){var e=c.charAt(d);"("==e?f--:")"==e&&f++;if(0==f)break}let g=d-1;if(0=e||"A"<=e&&"Z">=e||"0"<=e&&"9">=e);d--);if(d>=g)return null}else for(d=c.length-2;0<=d&&(e=c.charAt(d),"%"==e||"."==e||"a"<=e&&"z">=e||"A"<=e&&"Z">=e||"0"<=e&&"9">=e);d--);0<=d?(e=c.substring(0,d+1).trim(),c=c.substring(d+1).trim()):e=void 0;return c?{query:e?a.matchMedia(e):null,value:c}:null}})).filter(Boolean)}function lf(a,b,c){for(let d=0;d{this.Eb=!1;this.H=1;this.element.signals().signal("res-built")}),(a=>{this.maybeReportErrorOnBuildFailure(a);this.Eb=!1;this.element.signals().rejectSignal("res-built",a);throw a}))}maybeReportErrorOnBuildFailure(a){le(a)||G().error("Resource","failed to build:",this.debugid,a)}changeSize(a,b,c){this.element.applySize(a,b,c);this.requestMeasure()}overflowCallback(a,b,c,d){a&&(this.Xd={height:b,width:c,margins:d});this.element.overflowCallback(a,b,c,d)}resetPendingChangeSize(){this.Xd=void 0}getPendingChangeSize(){return this.Xd}getUpgradeDelayMs(){return this.element.getUpgradeDelayMs()}measure(){if(!(this.Hg&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-"))||"__AMP__RESOURCE"in this.element.parentElement)if(this.element.ownerDocument&&this.element.ownerDocument.defaultView){this.Hd=!1;var a=this.Y;let d=U(this.element);this.Y=d.getLayoutRect(this.element);let e=!1;if(d.supportsPositionFixed()&&this.isDisplayed()){let{win:f}=this.o.getAmpdoc(),g=f.document.body;for(let h=this.element;h&&h!=g;h=h.offsetParent){if(h.isAlwaysFixed&&h.isAlwaysFixed()){e=!0;break}if(d.isDeclaredFixed(h)&&"fixed"==(f.getComputedStyle(h)||Zc).position){e=!0;break}}}if(this.ec=e)this.Y=Sb(this.Y,-d.getScrollLeft(),-d.getScrollTop());var b=this.Y,c=!(a.width==b.width&&a.height===b.height);(1==this.H||a.top!=b.top||c)&&this.element.isUpgraded()&&(1==this.H?this.H=2:4!=this.H&&5!=this.H||!this.element.isRelayoutNeeded()||(this.H=2));this.hasBeenMeasured()||(this.yd=b);this.element.updateLayoutBox(b,c)}else this.H=1}ensureMeasured(){return this.hasBeenMeasured()?u():Wc(this.hostWin).measure((()=>this.measure()))}completeCollapse(){cd(this.element,!1);this.Y=J(this.Y.left,this.Y.top,0,0);this.ec=!1;this.element.updateLayoutBox(this.getLayoutBox());let a=this.getOwner();a&&a.collapsedCallback(this.element)}completeExpand(){cd(this.element,!0);this.requestMeasure()}isMeasureRequested(){return this.Hd}hasBeenMeasured(){return!!this.yd}requestMeasure(){this.Hd=!0}getLayoutSize(){var a=this.Y;return{width:a.width,height:a.height}}getLayoutBox(){if(!this.ec)return this.Y;let a=U(this.element);return Sb(this.Y,a.getScrollLeft(),a.getScrollTop())}getInitialLayoutBox(){return this.yd||this.Y}isDisplayed(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;let a="fluid"==this.element.getLayout(),b=this.getLayoutBox(),c=0b.right)return{distance:!1};if(a.bottomb.bottom)e=a.top-b.bottom,1==c&&(d=2);else return{distance:!0};return{distance:e,scrollPenalty:d,viewportHeight:a.height}}isWithinViewportRatio(a,b){if("boolean"===typeof a)return a;let{distance:c,scrollPenalty:d,viewportHeight:e}=b||this.getDistanceViewportRatio();return"boolean"==typeof c?c:c{Wc(this.hostWin).mutate((()=>{let d;try{d=this.element.layoutCallback(a)}catch(e){c(e)}Promise.resolve(d).then(b,c)}));a.onabort=()=>c(ke())})).then((()=>of(this,!0,a)),(b=>of(this,!1,a,b)))}isLayoutPending(){return 4!=this.H&&5!=this.H}loadedOnce(){return this.element.R1()?this.element.whenLoaded():this.Lg}isInViewport(){this.Fd&&nf(this);return this.Fd}setInViewport(a){this.Fd=a}unlayout(){0!=this.H&&1!=this.H&&2!=this.H&&(this.ab&&(this.ab.abort(),this.ab=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.H=1,this.ua=0,this.Jb=null))}getTaskId(a){return this.debugid+"#"+a}pause(){this.element.pause()}pauseOnRemove(){this.element.pause()}resume(){this.element.resume()}unload(){this.element.unmount()}disconnect(){delete this.element.__AMP__RESOURCE;this.element.disconnect(!0)}}function qf(a,b){for(let c=0;crf(a,d)))}function vf(a,b){let c=a.lb;c?(c.includes(b)||c.push(b),sf(a)):rf(a,b)}function tf(a){a.B.isReady()&&!a.Ff&&(a.Ff=!0,a.B.win.setTimeout((()=>{a.B.signals().signal("ready-scan")}),50))}function rf(a,b){var c=a.lb;c=!(c&&c.includes(b));let{asap:d,isIntersecting:e}=a.aa.get(b)||{asap:!1,isIntersecting:!1},f=a.B.getVisibilityState();c&&(d||e)&&("visible"==f||"hidden"==f||"prerender"==f&&b.prerenderAllowed())&&(a.unschedule(b),a=a.B.win,(d||0>=b.getBuildPriority()?a.setTimeout:a.requestIdleCallback||a.setTimeout)((()=>b.mountInternal())))}class wf{constructor(a){this.B=a;let b=a.win;this.Sd=new b.IntersectionObserver((c=>qf(this,c)),{root:I(b)?b.document:null,rootMargin:"250% 31.25%"});this.Ca=new Map;this.aa=new Map;this.lb=[];this.Ff=!1;a.whenReady().then((()=>sf(this)));this.qe=a.onVisibilityChanged((()=>uf(this)))}dispose(){this.Sd.disconnect();this.aa.clear();this.qe&&(this.qe(),this.qe=null)}scheduleAsap(a){this.aa.set(a,{asap:!0,isIntersecting:!1});vf(this,a)}schedule(a){this.aa.has(a)||(a.deferredMount()?(this.aa.set(a,{asap:!1,isIntersecting:!1}),this.Sd.observe(a),0{a!==c&&c.contains(a)&&b.observe(a)}))):this.aa.set(a,{asap:!1,isIntersecting:!0}),vf(this,a))}unschedule(a){this.aa.has(a)&&(this.aa.delete(a),this.Sd.unobserve(a),0{b.unobserve(a)})),this.lb&&(Ia(this.lb,a),sf(this)))}setContainer(a,b){if(!this.Ca.has(a)){var c=new this.B.win.IntersectionObserver((d=>qf(this,d)),{root:b||a,rootMargin:"250% 31.25%"});this.Ca.set(a,c);this.aa.forEach((({asap:d},e)=>{!d&&e!==a&&a.contains(e)&&c.observe(e)}))}}removeContainer(a){let b=this.Ca.get(a);b&&(b.disconnect(),this.Ca.delete(a))}}function xf(a){L(a,"scheduler",wf);return O(a,"scheduler")}let yf=[''];let zf=null;let Af={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function Bf(a){let b=a.getAttribute("i-amphtml-layout");return b?Ye(b):Cf(a).layout}function Cf(a){let b=a.getAttribute("layout"),c=a.getAttribute("width"),d=a.getAttribute("height"),e=a.getAttribute("sizes"),f=a.getAttribute("heights"),g=b?Ye(b):null;Ra(void 0!==g,'Invalid "layout" value: %s, %s',b,a);let h=c&&"auto"!=c?$e(c):c;Ra(void 0!==h,'Invalid "width" value: %s, %s',c,a);let k=d&&"fluid"!=d?$e(d):d;Ra(void 0!==k,'Invalid "height" value: %s, %s',d,a);var l;(l=g&&"fixed"!=g&&"fixed-height"!=g||h&&k)||(l=a.tagName,l=l.toUpperCase(),l=void 0===Af[l]);if(l){l=h;var m=k}else{l=a.tagName.toUpperCase();if(!Af[l]){m=a.ownerDocument;var n=l.replace(/^AMP\-/,"");n=m.createElement(n);n.controls=!0;bd(n,{position:"absolute",visibility:"hidden"});m.body.appendChild(n);Af[l]={width:(n.offsetWidth||1)+"px",height:(n.offsetHeight||1)+"px"};m.body.removeChild(n)}m=Af[l];l=h||"fixed-height"==g?h:m.width;m=k||m.height}n=g?g:l||m?"fluid"==m?"fluid":!m||l&&"auto"!=l?m&&l&&(e||f)?"responsive":"fixed":"fixed-height":"container";"fixed"!=n&&"fixed-height"!=n&&"responsive"!=n&&"intrinsic"!=n||Ra(m,'The "height" attribute is missing: %s',a);"fixed-height"==n&&Ra(!l||"auto"==l,'The "width" attribute must be missing or "auto": %s',a);"fixed"!=n&&"responsive"!=n&&"intrinsic"!=n||Ra(l&&"auto"!=l,'The "width" attribute must be present and not "auto": %s',a);"responsive"==n||"intrinsic"==n?Ra(af(l)==af(m),'Length units should be the same for "width" and "height": %s, %s, %s',c,d,a):Ra(null===f,'"heights" attribute must be missing: %s',a);return{layout:n,width:l,height:m}}let Df=Date.now();let Ef={bubbles:!1},Ff=()=>!0;let Gf;let Hf=[];function If(a){let b=Jf(a);class c extends b{adoptedCallback(){Object.getPrototypeOf(this)!==d&&Object.setPrototypeOf(this,d)}}let d=c.prototype;return c}function Jf(a){var b=Kf;if(a.__AMP_BASE_CE_CLASS)return a.__AMP_BASE_CE_CLASS;let c=a.HTMLElement;class d extends c{constructor(){super();this.createdCallback()}createdCallback(){this.Ga=this.$c=!1;this.Qa=null;this.Nd=!1;this.fa=this.Ja=null;this.Wa="upgrading";this.everAttached=!1;this.o=this.B=null;this.ea="nodisplay";this.ua=0;this.Ed=!1;this.warnOnMissingOverflow=!0;this.layoutScheduleTime=this.ha=this.sizerElement=void 0;var e=a.__AMP_EXTENDED_ELEMENTS&&a.__AMP_EXTENDED_ELEMENTS[this.localName];(this.L=e===mf?null:e||null)||Hf.push(this);this.A=null;this.ob=1;this.Tf=0;this.cb=this.Pa=void 0;this.C=new gf;this.L&&this.C.signal("ready-upgrade");e=a;e=tc(e);this.Ch=(e=zc(e,"performance")?xc(e,"performance"):null)&&e.isPerformanceTrackingOn();this.fb=null;this.__AMP_UPG_RES&&(this.__AMP_UPG_RES(this),delete this.__AMP_UPG_RES,delete this.__AMP_UPG_PRM)}get readyState(){return this.Wa}signals(){return this.C}getAmpDoc(){return this.B}getResources(){return this.o}isUpgraded(){return 2==this.ob}whenUpgraded(){return this.C.whenSignal("upgraded")}upgrade(e){this.cb||1!=this.ob||(this.L=e,this.C.signal("ready-upgrade"),this.everAttached&&this.Nc())}getUpgradeDelayMs(){return this.Tf}ed(e,f){this.A=e;this.Tf=a.Date.now()-f;this.ob=2;this.setReadyStateInternal("building");this.classList.remove("amp-unresolved");this.classList.remove("i-amphtml-unresolved");this.ag();this.ma("amp:attached");this.R1()||this.getResources().upgraded(this);this.C.signal("upgraded")}ag(){"nodisplay"!=this.ea&&this.A&&!this.A.isLayoutSupported(this.ea)&&(H(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."),H(!1,`Layout not supported: ${this.ea}`))}getBuildPriority(){return this.L?this.L.getBuildPriority(this):3}getLayoutPriority(){return this.A?this.A.getLayoutPriority():3}getDefaultActionAlias(){this.isUpgraded();return this.A.getDefaultActionAlias()}isBuilding(){return!!this.Qa}isBuilt(){return this.$c}whenBuilt(){return this.C.whenSignal("built")}buildInternal(){if(this.Qa)return this.Qa;this.setReadyStateInternal("building");return this.Qa=this.Te().then((()=>{let e=this.og(),f=Jd(a,"amp-consent-granular-consent"),g=f&&!e?this.pg():null;if(e||f&&g)return Pc(this,"consentPolicyManager","amp-consent").then((h=>h?e?h.whenPolicyUnblock(e):h.whenPurposesUnblock(g):!0)).then((h=>{if(!h)throw Error("BLOCK_BY_CONSENT")}))})).then((()=>this.A.buildCallback())).then((()=>{this.$c=!0;this.classList.add("i-amphtml-built");this.classList.remove("i-amphtml-notbuilt");this.classList.remove("amp-notbuilt");this.C.signal("built");this.R1()?this.setReadyStateInternal("building"!=this.Wa?this.Wa:"mounting"):(this.setReadyStateInternal("loading"),this.preconnect(!1));this.Ga&&this.Re();this.Pa&&N(this.ownerDocument.defaultView).delay(this.ig.bind(this),1);if(!this.getPlaceholder()){let e=this.createPlaceholder();e&&this.appendChild(e)}}),(e=>{this.C.rejectSignal("built",e);this.R1()&&this.setReadyStateInternal("error",e);le(e)||ie(e,this);throw e}))}build(){return this.Qa?this.Qa:this.C.whenSignal("ready-upgrade").then((()=>{this.R1()&&xf(this.getAmpDoc()).scheduleAsap(this);return this.whenBuilt()}))}mountInternal(){if(this.Ja)return this.Ja;this.fa=this.fa||new AbortController;let e=this.fa.signal;return this.Ja=this.buildInternal().then((()=>{this.R1();if(!e.aborted){this.setReadyStateInternal("mounting"!=this.Wa?this.Wa:this.L.usesLoading(this)?"loading":"mounting");this.Nd=!0;var f=this.A.mountCallback(e);return f?f.then(Ff):!1}})).then((f=>{this.fa=null;if(e.aborted)throw ke();this.C.signal("mounted");this.L.usesLoading(this)&&!f||this.setReadyStateInternal("complete")})).catch((f=>{this.fa=null;f&&("string"==typeof f?f.startsWith("CANCELLED"):"string"==typeof f.message&&f.message.startsWith("CANCELLED"))?this.Ja=null:(this.C.rejectSignal("mounted",f),this.setReadyStateInternal("error",f));throw f}))}mount(){if(this.Ja)return this.Ja;this.fa=this.fa||new AbortController;let e=this.fa.signal;return this.C.whenSignal("ready-upgrade").then((()=>{if(!this.R1())return this.whenBuilt();if(e.aborted)throw ke();xf(this.getAmpDoc()).scheduleAsap(this);return this.whenMounted()}))}unmount(){this.Ga&&this.pause();this.R1()?(this.fa&&(this.fa.abort(),this.fa=null),xf(this.getAmpDoc()).unschedule(this),this.Nd&&this.A.unmountCallback(),this.Nd=!1,this.Ja=null,this.$d(),this.Ga&&this.Nc(!0)):this.Rf()}whenMounted(){return this.C.whenSignal("mounted")}whenLoaded(){return this.C.whenSignal("load-end")}ensureLoaded(e){return this.mount().then((()=>{if(this.R1())return this.L.usesLoading(this)&&this.A.ensureLoaded(),this.whenLoaded();let f=this.Fa();return f.whenBuilt().then((()=>{if(4!=f.getState()&&((3!=f.getState()||f.isMeasureRequested())&&f.measure(),f.isDisplayed()))return this.getResources().scheduleLayoutOrPreload(f,!0,e,!0),this.whenLoaded()}))}))}setAsContainerInternal(e){xf(this.getAmpDoc()).setContainer(this,e)}removeAsContainerInternal(){xf(this.getAmpDoc()).removeContainer(this)}setReadyStateInternal(e,f){if(e!==this.Wa&&(this.Wa=e,this.R1()))switch(e){case"loading":this.C.signal("load-start");this.C.reset("unload");this.C.reset("load-end");this.classList.add("i-amphtml-layout");this.toggleLoading(!0);this.ma("amp:load-start");break;case"complete":this.C.signal("load-start");this.C.signal("load-end");this.C.reset("unload");this.classList.add("i-amphtml-layout");this.toggleLoading(!1);Pb(this,"load",null,Ef);this.ma("amp:load-end");break;case"error":this.C.rejectSignal("load-end",f),this.toggleLoading(!1),Pb(this,"error",f,Ef)}}preconnect(e){this.isUpgraded();e?this.A.preconnectCallback(e):ud(this.getAmpDoc(),(()=>{this.ownerDocument&&this.ownerDocument.defaultView&&this.A.preconnectCallback(e)}))}R1(){return this.L?this.L.R1():!1}deferredMount(){return this.L?this.L.deferredMount(this):!1}isAlwaysFixed(){return this.A?this.A.isAlwaysFixed():!1}updateLayoutBox(e,f=!1){if(this.isBuilt())this.onMeasure(f)}onMeasure(){this.isBuilt();try{this.A.onLayoutMeasure()}catch(e){ie(e,this)}}af(){void 0!==this.sizerElement||"responsive"!==this.ea&&"intrinsic"!==this.ea||(this.sizerElement=this.querySelector("i-amphtml-sizer"));return this.sizerElement||null}fh(e){if("responsive"===this.ea)V(e,"paddingTop","0");else if("intrinsic"===this.ea){let f=e.querySelector(".i-amphtml-intrinsic-sizer");f&&f.setAttribute("src","")}}zg(){let e=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),f=this.ownerDocument.defaultView;e!=!!this.fb&&f&&(e?(this.fb=new hf(f,(()=>this.ve())),this.ve()):this.Ve())}Ve(){this.fb&&(this.fb.dispose(),this.fb=null)}ve(){let e=this.fb;if(e){e.start();var f=this.getAttribute("media")||null,g=f?e.resolveMatchQuery(f):!0;this.classList.toggle("i-amphtml-hidden-by-media-query",!g);var h=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");h&&V(this,"width",e.resolveListQuery(h));if(h="responsive"===this.ea?this.getAttribute("heights"):null){let k=this.af();k&&V(k,"paddingTop",e.resolveListQuery(h))}e.complete();this.Fa().requestMeasure()}}applySize(e,f,g){let h=this.af();h&&(this.sizerElement=null,this.fh(h),this.Pg((()=>{h&&Ib(h)})));void 0!==e&&V(this,"height",e,"px");void 0!==f&&V(this,"width",f,"px");g&&(null!=g.top&&V(this,"marginTop",g.top,"px"),null!=g.right&&V(this,"marginRight",g.right,"px"),null!=g.bottom&&V(this,"marginBottom",g.bottom,"px"),null!=g.left&&V(this,"marginLeft",g.left,"px"));this.Bg()&&this.mh();Pb(this,"amp:size-changed")}connectedCallback(){void 0===Gf&&(Gf="content"in self.document.createElement("template"));Gf||void 0!==this.cb||(this.cb=!!xb(this,"template"));if(!this.cb&&!this.Ga&&Lb(this)){this.Ga=!0;this.everAttached||(this.classList.add("i-amphtml-element"),this.classList.add("i-amphtml-notbuilt"),this.classList.add("amp-notbuilt"));if(!this.B){let l=Rc(this.ownerDocument.defaultView).getAmpDoc(this);this.B=l;b(l,this,this.L)}this.o||(this.o=Vc(this.B));this.getResources().add(this);if(this.everAttached){let l=this.reconstructWhenReparented();l&&this.$d();this.isUpgraded()&&(l&&!this.R1()&&this.getResources().upgraded(this),this.Re(),this.ma("amp:attached"));this.L&&this.R1()&&this.Nc()}else{this.everAttached=!0;try{{S(this.ownerDocument.defaultView).isIe();let l=this.getAttribute("i-amphtml-layout");if(l){let m=Ye(l);"responsive"!=m&&"intrinsic"!=m||!this.firstElementChild?"nodisplay"==m&&(cd(this,!1),this.style.display=""):(this.sizerElement=this.querySelector("i-amphtml-sizer")||void 0)&&this.sizerElement.setAttribute("slot","i-amphtml-svc");var e=m}else{var{height:f,layout:g,width:h}=Cf(this);this.classList.add("i-amphtml-layout-"+g);Ze(g)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==g)cd(this,!1),this.style.display="";else if("fixed"==g)bd(this,{width:h,height:f});else if("fixed-height"==g)V(this,"height",f);else if("responsive"==g){var k=this.ownerDocument.defaultView;null==zf&&(zf=Jd(k,"layout-aspect-ratio-css")&&k.CSS&&k.CSS.supports&&k.CSS.supports("aspect-ratio: 1/1")||!1);if(zf)V(this,"aspect-ratio",`${bf(h)}/${bf(f)}`);else{let m=this.ownerDocument.createElement("i-amphtml-sizer");m.setAttribute("slot","i-amphtml-svc");bd(m,{paddingTop:bf(f)/bf(h)*100+"%"});this.insertBefore(m,this.firstChild);this.sizerElement=m}}else if("intrinsic"==g){let m=Le(this)(yf);m.firstElementChild.setAttribute("src",`data:image/svg+xml;charset=utf-8,`);this.insertBefore(m,this.firstChild);this.sizerElement=m}else"fill"!=g&&"container"!=g&&("flex-item"==g?(h&&V(this,"width",h),f&&V(this,"height",f)):"fluid"==g&&(this.classList.add("i-amphtml-layout-awaiting-size"),h&&V(this,"width",h),V(this,"height",0)));this.setAttribute("i-amphtml-layout",g);e=g}}this.ea=e;this.zg()}catch(l){ie(l,this)}this.L&&this.Nc();this.isUpgraded()||(this.classList.add("amp-unresolved"),this.classList.add("i-amphtml-unresolved"),this.ma("amp:stubbed"))}this.toggleLoading(!0)}}Bg(){return this.classList.contains("i-amphtml-layout-awaiting-size")}mh(){this.classList.remove("i-amphtml-layout-awaiting-size")}Nc(e){if(!this.R1())this.Qf();else if(!this.Ja)if(xf(this.getAmpDoc()).schedule(this),this.Qa)this.setReadyStateInternal(this.L&&this.L.usesLoading(this)?"loading":"mounting");else if(this.setReadyStateInternal("building"),!e){let f=this.L.getPreconnects(this);if(f&&0{let h=g.win;if(h){var k=Uc(h);f.forEach((l=>k.url(g,l,!1)))}}))}}}Qf(){if(!this.cb&&1==this.ob){var e=new this.L(this);this.ob=4;var f=a.Date.now(),g=e.upgradeCallback();g?"function"==typeof g.then?g.then((h=>{this.ed(h||e,f)})).catch((h=>{this.ob=3;w(h)})):this.ed(g,f):this.ed(e,f)}}disconnectedCallback(){this.disconnect(!1)}Re(){this.$c&&this.A.attachedCallback()}disconnect(e){this.cb||!this.Ga||!e&&Lb(this)||(e&&this.classList.remove("i-amphtml-element"),this.Ga=!1,this.getResources().remove(this),this.A&&this.A.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.Ve())}ma(){}prerenderAllowed(){return this.hasAttribute("noprerender")?!1:this.L?this.L.prerenderAllowed(this):!1}isBuildRenderBlocking(){return this.A?this.A.isBuildRenderBlocking():!1}createPlaceholder(){return this.A?this.A.createPlaceholderCallback():null}createLoaderLogo(){return this.L?this.L.createLoaderLogoCallback(this):{}}renderOutsideViewport(){return this.A?this.A.renderOutsideViewport():!1}idleRenderOutsideViewport(){return this.A?this.A.idleRenderOutsideViewport():!1}getLayoutBox(){return this.Fa().getLayoutBox()}getLayoutSize(){return this.Fa().getLayoutSize()}getOwner(){return this.Fa().getOwner()}getIntersectionChangeEntry(){var e=this.A?this.A.getIntersectionElementLayoutBox():this.getLayoutBox(),f=this.getOwner();let g=U(this.getAmpDoc()).getRect(),h=f&&f.getLayoutBox();f=Qb(e,h,g)||J(0,0,0,0);var k=f.width*f.height,l=e.width*e.height;k=0===l?0:k/l;if(l=g)f=Sb(f,-g.left,-g.top),e=Sb(e,-g.left,-g.top),l=Sb(l,-g.left,-g.top);return{time:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()-Df,rootBounds:l,boundingClientRect:e,intersectionRect:f,intersectionRatio:k}}Fa(){return this.getResources().getResourceForElement(this)}getResourceId(){return this.Fa().getId()}isRelayoutNeeded(){return this.A?this.A.isRelayoutNeeded():!1}getImpl(e=!0){return(e?this.build():this.Te()).then((()=>this.A))}Te(){return this.C.whenSignal("ready-upgrade").then((()=>{this.Qf();return this.whenUpgraded()}))}getApi(){return this.getImpl().then((e=>e.getApi()))}getLayout(){return this.ea}layoutCallback(e){this.isBuilt();if(e.aborted)return Promise.reject(ke());this.ma("amp:load-start");let f=0==this.ua;this.C.reset("unload");f&&this.C.signal("load-start");this.toggleLoading(!0);let g=ea((()=>this.A.layoutCallback()));this.preconnect(!0);this.classList.add("i-amphtml-layout");return g.then((()=>{if(e.aborted)throw ke();f&&this.C.signal("load-end");this.setReadyStateInternal("complete");this.ua++;this.toggleLoading(!1);this.Ed||(this.A.firstLayoutCompleted(),this.Ed=!0,this.ma("amp:load-end"))}),(h=>{if(e.aborted)throw ke();f&&this.C.rejectSignal("load-end",h);this.setReadyStateInternal("error",h);this.ua++;this.toggleLoading(!1);throw h}))}pause(){this.isBuilt()&&(this.A.pauseCallback(),!this.R1()&&this.A.unlayoutOnPause()&&this.Rf())}resume(){this.isBuilt()&&this.A.resumeCallback()}unlayoutCallback(){if(!this.isBuilt())return!1;this.C.signal("unload");let e=this.A.unlayoutCallback();e&&this.$d();this.ma("amp:unload");return e}Rf(){this.Fa().unlayout();this.Ga&&this.o&&this.o.schedulePass()}$d(){this.ua=0;this.Ed=!1;this.C.reset("mounted");this.C.reset("render-start");this.C.reset("load-start");this.C.reset("load-end");this.C.reset("ini-load")}reconstructWhenReparented(){return this.A?this.A.reconstructWhenReparented():!1}collapse(){this.A&&this.A.collapse()}collapsedCallback(e){this.A&&this.A.collapsedCallback(e)}expand(){this.A&&this.A.expand()}mutatedAttributesCallback(e){this.A&&this.A.mutatedAttributesCallback(e)}enqueAction(e){this.isBuilt()?this.Ze(e,!1):(void 0===this.Pa&&(this.Pa=[]),this.Pa.push(e),this.build())}ig(){if(this.Pa){var e=this.Pa;this.Pa=null;e.forEach((f=>{this.Ze(f,!0)}))}}Ze(e,f){try{this.A.executeAction(e,f)}catch(g){w("Action execution failed:",g,e.node.tagName,e.method)}}og(){var e=this.getAttribute("data-block-on-consent");if(null===e)if((e=this.getAmpDoc().getMetaByName("amp-consent-blocking"))?(e=e.toUpperCase().replace(/\s+/g,""),e=e.split(",").includes(this.tagName)):e=!1,e)e="default",this.setAttribute("data-block-on-consent",e);else return null;return""==e||"default"==e?this.A.getConsentPolicy():e}pg(){var e;let f=this.getAttribute("data-block-on-consent-purposes")||null;return null===f||void 0===f?void 0:null===(e=f.replace(/\s+/g,""))||void 0===e?void 0:e.split(",")}getPlaceholder(){return yb(this,(e=>e.hasAttribute("placeholder")&&!("placeholder"in e)))}togglePlaceholder(e){if(e)(e=this.getPlaceholder())&&e.classList.remove("amp-hidden");else{/^[\w-]+$/.test("placeholder");e=this.querySelectorAll(ub("> [placeholder]"));for(let f=0;f{let h=Q(this.getAmpDoc());h.forceChangeSize(this,f,g);h.mutateElement(this,(()=>{this.overflowCallback(!1,f,g)}))}:null)}Pg(e){this.B?Q(this.getAmpDoc()).mutateElement(this,e,!1):e()}}a.__AMP_BASE_CE_CLASS=d;return a.__AMP_BASE_CE_CLASS}let Lf=new WeakMap;function Mf(a){a.__AMP_EXTENDED_ELEMENTS||(a.__AMP_EXTENDED_ELEMENTS={});return a.__AMP_EXTENDED_ELEMENTS}function Nf(a,b,c){let d=Of(a,c);d?d.then((()=>Pf(a,b,c))):Pf(a,b,c)}function Pf(a,b,c){let d=Mf(a);if(!d[b])Qf(a,b,c);else if(d[b]!=c){H(d[b]==mf,"%s is already registered. The script tag for %s is likely included twice in the page.",b,b);d[b]=c;for(let f=0;f{a.declareExtension(b,c);Sf(a.win,b)}));a.isBodyAvailable()&&a.setExtensionsKnown()}function Sf(a,b){Mf(a)[b]||Qf(a,b,mf)}function Qf(a,b,c){Mf(a)[b]=c;let d=If(a);a.customElements.define(b,d)}function Kf(a,b,c){Lf.has(a)||(Lf.set(a,!0),Rf(a));b=b.localName;c||a.declaresExtension(b)||Sc(a.win).installExtensionForDoc(a,b,"0.1")}let Tf="alt aria-describedby aria-label aria-labelledby crossorigin referrerpolicy title sizes srcset src".split(" ");function Uf(a){!a.Zb&&a.G.classList.contains("i-amphtml-ghost")&&(a.G.classList.remove("i-amphtml-ghost"),a.toggleFallback(!1))}function Vf(a){a.Zb&&(a.G.classList.add("i-amphtml-ghost"),a.toggleFallback(!0),a.togglePlaceholder(!1),a.Zb=!1)}class Wf extends df{static R1(){return!1}static prerenderAllowed(){return!0}static usesLoading(){return!0}static getPreconnects(a){let b=a.getAttribute("src");if(b)return[b];if(a=a.getAttribute("srcset"))if(a=/\S+/.exec(a))return[a[0]];return null}constructor(a){super(a);this.Zb=!0;this.Lc=this.Mc=this.G=null;this.Kf=0}mutatedAttributesCallback(a){if(this.G){let b=Tf.filter((c=>void 0!==a[c]));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));ff(b,this.element,this.G,!0);this.propagateDataset(this.G);Wf.R1()&&!this.G.complete&&this.setReadyState("loading")}}preconnectCallback(a){var b=this.element.getAttribute("src");b?Uc(this.win).url(this.getAmpDoc(),b,a):(b=this.element.getAttribute("srcset"))&&(b=/\S+/.exec(b))&&Uc(this.win).url(this.getAmpDoc(),b[0],a)}isLayoutSupported(a){return Ze(a)}Db(){if(this.G)return this.G;this.Zb=!this.element.hasAttribute("fallback");let a=this.element.hasAttribute("i-amphtml-ssr");a&&(this.G=this.element.querySelector(ub("> img:not([placeholder])")));this.G=this.G||new Image;this.G.setAttribute("decoding","async");this.element.id&&this.G.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 element."));if(this.G&&!this.element.hasAttribute("i-amphtml-ssr")&&!this.element.hasAttribute("sizes")&&!this.G.hasAttribute("sizes")){var b=this.element.getAttribute("srcset");if(b&&!/[0-9]+x(?:,|$)/.test(b)&&(({width:b}=this.element.getLayoutSize()),this.G.hasAttribute("sizes")?b>this.Kf:1)){var c=this.getViewport().getWidth(),d=`(max-width: ${c}px) ${b}px, `,e=b+"px";"fixed"!==this.getLayout()&&(e=Math.max(Math.round(100*b/c),100)+"vw");this.G.setAttribute("sizes",d+e);this.Kf=b}}ff(Tf,this.element,this.G);this.propagateDataset(this.G);cf(this.G,!0);b=this.element;c=this.G;b.hasAttribute("object-fit")&&V(c,"object-fit",b.getAttribute("object-fit"));b.hasAttribute("object-position")&&V(c,"object-position",b.getAttribute("object-position"));a||this.element.appendChild(this.G);return this.G}reconstructWhenReparented(){return!1}mountCallback(){let a=!!this.G,b=this.Db();a||(nc(b,"load",(()=>{this.setReadyState("complete");this.firstLayoutCompleted();Uf(this)})),nc(b,"error",(c=>{this.setReadyState("error",c);Vf(this)})));b.complete?(this.setReadyState("complete"),this.firstLayoutCompleted(),Uf(this)):this.setReadyState("loading")}unmountCallback(){let a=this.G;a&&!a.complete&&(a.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ib(a),this.G=null)}ensureLoaded(){this.G.loading="eager"}layoutCallback(){this.Db();let a=this.G;this.Mc=nc(a,"load",(()=>Uf(this)));this.Lc=nc(a,"error",(()=>Vf(this)));let{width:b}=this.element.getLayoutSize();return 0>=b?u():this.loadPromise(a)}unlayoutCallback(){if(!Wf.R1()){this.Lc&&(this.Lc(),this.Lc=null);this.Mc&&(this.Mc(),this.Mc=null);var a=this.G;a&&!a.complete&&(a.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ib(a),this.G=null);return!0}}firstLayoutCompleted(){let a=this.getPlaceholder();a&&a.classList.contains("i-amphtml-blurry-placeholder")?ad(a,{opacity:0}):this.togglePlaceholder(!1)}propagateDataset(a){for(let b in a.dataset)b in this.element.dataset||delete a.dataset[b];for(let b in this.element.dataset)b.startsWith("ampBind")&&"ampBind"!==b||a.dataset[b]!==this.element.dataset[b]&&(a.dataset[b]=this.element.dataset[b])}}class Xf extends df{static prerenderAllowed(){return!0}isLayoutSupported(a){return"container"==a||Ze(a)}buildCallback(){Yf(this.element)}}function Yf(a){if("container"!=Bf(a)){var b=a.ownerDocument.createElement("div");cf(b);Bb(a).forEach((c=>{b.appendChild(c)}));a.appendChild(b)}}function Zf(a,b){if("referrerPolicy"in Image.prototype)return $f(a,b,!0);let c=Kb(a.document);c.onload=()=>{$f(c.contentWindow,b)};a.document.body.appendChild(c);return c}function $f(a,b,c=!1){a=new a.Image;c&&(a.referrerPolicy="no-referrer");a.src=b;return a}function dg(a){H(/^(https:\/\/|\/\/)/i.test(a),'The src attribute must start with "https://" or "//". Invalid value: '+a);return a}class eg extends df{constructor(a){super(a);this.je=null}isLayoutSupported(){return!0}buildCallback(){this.element.setAttribute("aria-hidden","true");(this.vc=this.element.getAttribute("referrerpolicy"))&&H("no-referrer"==this.vc,`amp-pixel: invalid "referrerpolicy" value "${this.vc}". Only "no-referrer" is supported`);this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")||this.getAmpDoc().whenFirstVisible().then(this.uh.bind(this))}uh(){if(this.je)return G().error("amp-pixel","duplicate pixel"),this.je;this.je=N(this.win).promise(1).then((()=>{let a=this.element.getAttribute("src");if(a)return yc(this.element,"url-replace").expandUrlAsync(dg(a)).then((b=>{if(this.win){var c=this.win,d=this.vc;d&&"no-referrer"!==d&&F().error("pixel","Unsupported referrerPolicy: %s",d);return"no-referrer"===d?Zf(c,b):$f(c,b)}}))}))}}class Z{constructor(){this.na=null}add(a){this.na||(this.na=[]);this.na.push(a);return()=>{this.remove(a)}}remove(a){this.na&&Ia(this.na,a)}removeAll(){this.na&&(this.na.length=0)}fire(a){if(this.na)for(let b of this.na)b(a)}getHandlerCount(){var a,b;return null!==(a=null===(b=this.na)||void 0===b?void 0:b.length)&&void 0!==a?a:0}}class fg{constructor(a,b,c){this.R=N(a);this.wg=b;this.hg=c||0;this.ra=-1;this.Rd=0;this.Xa=!1;this.dg=()=>{this.tc()}}isPending(){return-1!=this.ra}schedule(a){let b=a||this.hg;this.Xa&&10>b&&(b=10);let c=Date.now()+b;return!this.isPending()||-10>c-this.Rd?(this.cancel(),this.Rd=c,this.ra=this.R.delay(this.dg,b),!0):!1}tc(){this.ra=-1;this.Rd=0;this.Xa=!0;this.wg();this.Xa=!1}cancel(){this.isPending()&&(this.R.cancel(this.ra),this.ra=-1)}}let gg="__AMP_ACTION_MAP__"+Math.random(),hg={form:["submit","clear"]},ig=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleVisibility"}],jg={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};class kg{constructor(a,b,c,d,e,f,g,h="?",k=null,l=Math.random()){this.node=a;this.method=b;this.args=c;this.source=d;this.caller=e;this.event=f;this.trust=g;this.actionEventType=h;this.tagOrTarget=k||a.tagName;this.sequenceId=l}satisfiesTrust(a){if(!Ma(this.trust))return G().error("Action",`Invalid trust for '${this.method}': ${this.trust}`),!1;if(this.trust({name:d.name,size:d.size,type:d.type}))));if(0{let m=l.method,n=l.str,p=l.target,r=og(l.args,d,f),t=()=>{var q=pg(a,p);if(q)return q=new kg(q,m,r,b,g.node,d,e,c,q.tagName||p,h),qg(a,q);a.Sa(`Target "${p}" not found for action [${n}].`)};k=k?k.then(t):t()}));return 1<=g.actionInfos.length}function qg(a,b){let c=b.method,d=b.tagOrTarget;if(a.da&&!rg(b,a.da))return a.Sa(`"${d}.${c}" is not allowlisted ${JSON.stringify(a.da)}.`),null;let e=a.qd[d];if(e)return e(b);let f=b.node,g=a.bf[c];if(g&&b.satisfiesTrust(g.minTrust))return g.handler(b);let h=f.tagName.toLowerCase();if("amp-"===h.substring(0,4))return f.enqueAction?f.enqueAction(b):a.Sa(`Unrecognized AMP element "${h}".`,f),null;let k=hg[h];if("amp-"===(f.getAttribute("id")||"").substring(0,4)||k&&-1{b.defaultPrevented||this.trigger(b.target,a,b,3)})),this.V.addEventListener("keydown",(b=>{var c=b.key;let d=b.target;if("Enter"==c||" "==c){let e=d.getAttribute("role");if(c=e)c=e.toLowerCase(),c=ia.call(jg,c);let f=c;!b.defaultPrevented&&f&&this.trigger(d,a,b,3)&&b.preventDefault()}}));else if("submit"==a)this.V.addEventListener(a,(b=>{this.trigger(b.target,a,b,3)}));else if("change"==a)this.V.addEventListener(a,(b=>{let c=b.target;lg(b);this.trigger(c,a,b,3)}));else if("input-debounced"==a){let b=bb(this.ampdoc.win,(c=>{this.trigger(c.target,a,c,3)}));this.V.addEventListener("input",(c=>{let d=new ug(c);lg(d);b(d)}))}else if("input-throttled"==a){let b=ab(this.ampdoc.win,(c=>{this.trigger(c.target,a,c,3)}),100);this.V.addEventListener("input",(c=>{c=new ug(c);lg(c);b(c)}))}else"valid"!=a&&"invalid"!=a||this.V.addEventListener(a,(b=>{this.trigger(b.target,a,b,3)}))}addGlobalTarget(a,b){this.qd[a]=b}addGlobalMethodHandler(a,b,c=2){this.bf[a]={handler:b,minTrust:c}}trigger(a,b,c,d,e){return mg(this,a,b,c,d,e)}execute(a,b,c,d,e,f,g){a=new kg(a,b,c,d,e,f,g);qg(this,a)}installActionHandler(a,b){"amp-"===(a.getAttribute("id")||"").substring(0,4)||a.tagName.toLowerCase();if(a.__AMP_ACTION_HANDLER__)G().error("Action",`Action handler already installed for ${a}`);else{a.__AMP_ACTION_HANDLER__=b;var c=a.__AMP_ACTION_QUEUE__;B(c)&&N(a.ownerDocument.defaultView).delay((()=>{c.forEach((d=>{try{b(d)}catch(e){G().error("Action","Action execution failed:",d,e)}}));a.__AMP_ACTION_QUEUE__.length=0}),1)}}hasAction(a,b,c){return!!ng(a,b,c)}hasResolvableAction(a,b,c){return(a=ng(a,b,c))?a.actionInfos.some((d=>!!pg(this,d.target))):!1}hasResolvableActionForTarget(a,b,c,d){return(a=ng(a,b,d))?a.actionInfos.some((e=>pg(this,e.target)==c)):!1}setAllowlist(a){a.every((b=>b.tagOrTarget&&b.method));this.da=a}addToAllowlist(a,b,c){c&&c.includes("email")!==this.kf||(this.da||(this.da=[]),B(b)||(b=[b]),b.forEach((d=>{this.da.some((e=>e.tagOrTarget==a&&e.method==d))||this.da.push({tagOrTarget:a,method:d})})))}Sa(a,b){if(b)throw a=F().createError(`[Action] ${a}`),ie(a,b),a;F().error("Action",a)}setActions(a,b){a.setAttribute("on",b);delete a[gg]}}function rg(a,b){let{method:c}=a;let d=a.node;a=a.tagOrTarget;"activate"===c&&"function"==typeof d.getDefaultActionAlias&&(c=d.getDefaultActionAlias());let e=c.toLowerCase(),f=a.toLowerCase();return b.some((g=>g.tagOrTarget.toLowerCase()!==f&&"*"!==g.tagOrTarget||g.method.toLowerCase()!==e?!1:!0))}class ug{constructor(a){this.detail=null;let b=this||x();for(let c in a)b[c]="function"===typeof a[c]?vg:a[c]}}function vg(){}function sg(a,b){let c=wg.bind(null,a,b),d=xg.bind(null,a,b);b=null;let e=new yg(a);let f,g;do{if(f=e.next(),f.type!=zg&&(f.type!=Ag||";"!=f.value))if(f.type==Bg||f.type==Cg){let n=f.value;d(e.next(),[Ag],":");let p=[];do{let r=d(e.next(),[Bg,Cg]).value;let t="activate";var h=null;g=e.peek();if(g.type==Ag&&"."==g.value&&(e.next(),t=d(e.next(),[Bg,Cg]).value||t,g=e.peek(),g.type==Ag&&"("==g.value)){e.next();let q;h=e;var k=d,l=c,m=h.peek();let y=null;if(m.type==Dg)y=x(),({value:l}=h.next()),y.__AMP_OBJECT_STRING__=l,k(h.next(),[Ag],")");else do{q=h.next();m=q.type;let P=q.value;if(m!=Ag||","!=P&&")"!=P)if(m==Bg||m==Cg){k(h.next(),[Ag],"=");q=k(h.next(!0),[Bg,Cg]);let qb=[q];if(q.type==Cg)for(m=h.peek();m.type==Ag&&"."==m.value;m=h.peek())h.next(),q=k(h.next(!1),[Cg]),qb.push(q);m=Eg(qb);y||(y=x());y[P]=m;m=h.peek();l(m.type==Ag&&(","==m.value||")"==m.value),"Expected either [,] or [)]")}else l(!1,`; unexpected token [${q.value||""}]`)}while(q.type!=Ag||")"!=q.value);h=y}p.push({event:n,target:r,method:t,args:h,str:a});g=e.peek()}while(g.type==Ag&&","==g.value&&e.next());b||(b=x());b[n]=p}else c(!1,`; unexpected token [${f.value||""}]`)}while(f.type!=zg);return b}function Eg(a){return 0==a.length?null:1==a.length?a[0].value:{expression:a.map((b=>b.value)).join(".")}}function og(a,b,c){if(!a)return a;let d=c||z({});b&&(b=b.detail)&&(d.event=b);let e=x();Object.keys(a).forEach((f=>{var g=a[f];if("object"==typeof g&&g.expression){g=g.expression;if("."==g)var h=d;else{g=g.split(".");var k=d;for(h of g)if(h&&k&&void 0!==k[h]&&"object"==typeof k&&ia.call(k,h))k=k[h];else{k=void 0;break}h=k}let l=h;g=void 0===l?null:l}e[f]=d[g]?d[g]:g}));return e}function wg(a,b,c,d){return H(c,"Invalid action definition in %s: [%s] %s",b,a,d||"")}function xg(a,b,c,d,e){void 0!==e?wg(a,b,d.includes(c.type)&&c.value==e,`; expected [${e}]`):wg(a,b,d.includes(c.type));return c}var zg=1,Ag=2,Bg=3,Cg=4,Dg=5;function Fg(a,b){let c=a.wd+1;if(c>=a.O.length)return{type:zg,index:a.wd};var d=a.O.charAt(c);if(-1!=" \t\n\r\f\v \u2028\u2029".indexOf(d)){for(c++;c=a.O.length)return{type:zg,index:c};d=a.O.charAt(c)}if(b&&(Gg(d)||"."==d&&c+1=e){f=d;break}}if(-1==f)return{type:0,index:c};a=a.O.substring(c,f+1);c=f;return{type:Dg,value:a,index:c}}for(d=c+1;d=a}function Hg(a){return!!a&&"function"==typeof a.getFormData}let Ig=["GET","POST"],Jg=[B,ka];function Kg(a,b){let c=A({},b);if(Hg(b.body)){let d=b.body;c.headers["Content-Type"]="multipart/form-data;charset=utf-8";b=d.entries();let e=[];for(let f=b.next();!f.done;f=b.next())e.push(f.value);c.body=e}return{input:a,init:c}}function Lg(a,b){Ra(ka(a),"Object expected: %s",a);if("document"!=b)return new Response(a.body,a.init);let c=x(),d={status:200,statusText:"OK",getResponseHeader(e){return c[String(e).toLowerCase()]||null}};if(a.init){let e=a.init;B(e.headers)&&e.headers.forEach((f=>{let g=f[1];c[String(f[0]).toLowerCase()]=String(g)}));e.status&&(d.status=parseInt(e.status,10));e.statusText&&(d.statusText=String(e.statusText))}return new Response(a.body?String(a.body):"",d)}function Mg(a,b,c,d){if(!b)return u();let e=d.prerenderSafe?u():b.whenFirstVisible(),f=T(b),g=X(c),h=f.hasCapability("xhrInterceptor"),k=d.bypassInterceptorForDev&&!1;return g||!h||k||!b.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?e:e.then((()=>f.isTrustedViewer())).then((l=>{if(l||Jd(a,"untrusted-xhr-interception")){var m=z({originalRequest:Kg(c,d)});return f.sendMessageAwaitResponse("xhr",m).then((n=>Lg(n,d.responseType)))}}))}function Ng(a,b,c){!1!==c.ampCors&&(b=de(a,b));return b}function Og(a,b){a=a||{};var c=a.method;void 0===c?c="GET":(c=c.toUpperCase(),Ig.includes(c));a.method=c;a.headers=a.headers||z({});b&&(a.headers.Accept=b);return a}function Pg(a,b,c){c=c||{};let d=a.origin||W(a.location.href).origin;a=W(b).origin;d==a&&(c.headers=c.headers||{},c.headers["AMP-Same-Origin"]="true");return c}function Qg(a){let b=Og(a,"application/json");"POST"!=b.method||Hg(b.body)||(Jg.some((c=>c(b.body))),b.headers["Content-Type"]=b.headers["Content-Type"]||"text/plain;charset=utf-8",b.body="application/x-www-form-urlencoded"===b.headers["Content-Type"]?Vd(b.body):JSON.stringify(b.body));return b}function Rg(a){return new Promise((b=>{if(a.ok)return b(a);b=a.status;let c=F().createError(`HTTP error ${b}`);c.retriable=415==b||500<=b&&600>b;c.response=a;throw c}))}function Sg(a,b,c={}){b=Ng(a.win,b,c);c=Pg(a.win,b,c);return a.mg(b,c).then((d=>d),(d=>{let e=W(b).origin;throw F().createExpectedError("XHR",`Failed fetching (${e}/...):`,d&&d.message)}))}class Tg{constructor(a){this.win=a;a=Rc(a);this.Zf=a.isSingleDoc()?a.getSingleDoc():null}mg(a,b){return Mg(this.win,this.Zf,a,b).then((c=>{if(c)return c;Hg(b.body)&&(b.body=b.body.getFormData());return this.win.fetch.apply(null,arguments)}))}fetchJson(a,b){return this.fetch(a,Qg(b))}fetchText(a,b){return this.fetch(a,Og(b,"text/plain"))}xssiJson(a,b){return b?a.text().then((c=>c.startsWith(b)?JSON.parse(c.slice(b.length)):JSON.parse(c))):a.json()}fetch(a,b){b=Og(b);return Sg(this,a,b).then((c=>Rg(c)))}sendSignal(a,b){return Sg(this,a,b).then((c=>Rg(c)))}getCorsUrl(a,b){return de(a,b)}}function Ug(a,b,c){let d=ce(b,be(a.win.location));return Yd(d)+c}class Vg extends Tg{constructor(a){super(a);this.Bb=x()}fetch(a,b){let c=!b||!b.method||"GET"===b.method,d=Ug(this,a,b&&b.headers&&b.headers.Accept||""),e=!!this.Bb[d];if(c&&e)return this.Bb[d].then((g=>g.clone()));let f=super.fetch(a,b);c&&(this.Bb[d]=f.then((g=>{delete this.Bb[d];return g.clone()}),(g=>{delete this.Bb[d];throw g})));return f}}let Wg={"+":"-","/":"_","=":"."};function Xg(a){a=Ta(a);return btoa(a).replace(/[+/=]/g,(b=>Wg[b]))}function Yg(a,b,c){b=b+";"+c;return M(a.B.win,"crypto").sha384Base64(b).then((d=>"amp-"+d))}class Zg{constructor(a){this.B=a;this.h=T(this.B);this.Zd=null;this.R=N(this.B.win)}isSupported(){return this.h.isCctEmbedded()&&this.h.isProxyOrigin()}getScopedCid(a){if(!this.h.isCctEmbedded())return Promise.resolve(null);this.Zd||(this.Zd=this.Ab("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc"));return this.Zd.then((b=>b?Yg(this,b,a):null))}Ab(a,b=!0){let c=z({publisherOrigin:be(this.B.win.location)});return this.R.timeoutPromise(3e4,M(this.B.win,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:c}),"fetchCidTimeout").then((d=>d.json().then((e=>{if(e.optOut)return null;let f=e.publisherClientId;return!f&&b&&e.alternateUrl?this.Ab(`${e.alternateUrl}?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc`,!1):f})))).catch((d=>{d&&d.response?d.response.json().then((e=>{G().error("CacheCidApi",JSON.stringify(e))})):d&&"fetchCidTimeout"==d.message?G().expectedError("CacheCidApi",d):G().error("CacheCidApi",d);return null}))}}function $g(a,b){try{var c=a.document.cookie}catch(f){c=""}let d=c;if(!d)return null;let e=d.split(";");for(a=0;a{c=$g(this.F,"AMP_TOKEN");return"$RETRIEVING"!==c})).then((()=>{if("$OPT_OUT"===c)return"$OPT_OUT";if(("$NOT_FOUND"!==c||!X(this.F.document.referrer))&&c&&"$"===c[0])return null;c&&(!c||"$"!==c[0])||ch(this,"$RETRIEVING",3e4);return this.Ab("https://ampcid.google.com/v1/publisher:getClientId?key="+a,b,c).then((d=>{let e=this.ef(d);return!e&&d.alternateUrl?this.Ab(`${d.alternateUrl}?key=${a}`,b,c).then(this.ef.bind(this)):e})).catch((d=>{ch(this,"$ERROR",3e4);d&&d.response?d.response.json().then((e=>{G().error("GoogleCidApi",JSON.stringify(e))})):G().error("GoogleCidApi",d);return null}))}))}Ab(a,b,c){b=z({originScope:b,canonicalOrigin:this.bd});c&&(b.securityToken=c);return this.R.timeoutPromise(3e4,M(this.F,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:b}).then((d=>d.json())))}ef(a){if(a.optOut)return ch(this,"$OPT_OUT",31536e6),"$OPT_OUT";if(a.clientId)return ch(this,a.securityToken,31536e6),a.clientId;if(a.alternateUrl)return null;ch(this,"$NOT_FOUND",36e5);return null}}class eh{constructor(a){this.B=a;this.h=T(this.B);({canonicalUrl:a}=Tc(this.B));this.bd=a?W(a).origin:null}isSupported(){return this.h.hasCapability("cid")?this.h.isTrustedViewer():Promise.resolve(!1)}getScopedCid(a,b){b=z({scope:b,clientIdApi:!!a,canonicalOrigin:this.bd});a&&(b.apiKey=a);return this.h.sendMessageAwaitResponse("cid",b)}}let fh=/^[a-zA-Z0-9-_.]+$/,gh={googleanalytics:"AMP_ECID_GOOGLE"},hh={googleanalytics:"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function ih(a,b,c){let d=b.scope,e=W(a.ampdoc.win.location.href);if(!X(e)){let f=jh(a,d);return f?a.gg.getScopedCid(f,d).then((g=>"$OPT_OUT"==g?null:g?(kh(a.ampdoc.win,b.cookieName||d,g),g):lh(a,b,c))):lh(a,b,c)}return a.Wf.isSupported().then((f=>{if(f){let g=jh(a,d);return a.Wf.getScopedCid(g,d)}return a.Ke.isSupported()&&jh(a,d)?a.Ke.getScopedCid(d).then((g=>g?g:mh(a,c,d,e))):mh(a,c,d,e)}))}function jh(a,b){a.Tc||(a.Tc=nh(a));return a.Tc[b]}function mh(a,b,c,d){return oh(a,b).then((e=>{var f=M(a.ampdoc.win,"crypto"),g=f.sha384Base64;H(X(d),"Expected proxy origin %s",d.origin);var h=be(d);return g.call(f,e+h+c)}))}function nh(a){let b={},c=a.ampdoc.getMetaByName("amp-google-client-id-api");c&&c.split(",").forEach((d=>{d=d.trim();if(0this.ampdoc.whenFirstVisible())).then((()=>qh(this.ampdoc))).then((d=>{if(d)return"";let e=ih(this,a,c||b);return N(this.ampdoc.win).timeoutPromise(1e4,e,`Getting cid for "${a.scope}" timed out`).catch((f=>{w(f)}))}))}optOut(){return rh(this.ampdoc)}}function rh(a){T(a).sendMessage("cidOptOut",{});return Ac(a,"storage").then((b=>b.set("amp-cid-optout",!0)))}function qh(a){return Ac(a,"storage").then((b=>b.get("amp-cid-optout").then((c=>!!c)))).catch((()=>!1))}function kh(a,b,c){let d=Date.now()+31536e6;ah(a,b,c,d)}function sh(a,b,c){Ac(a,"storage").then((d=>{d.isViewerStorage()||d.setNonBoolean("amp-cid:"+b,c)}))}function th(a,b){let c=a.ampdoc,d=a.isBackupCidExpOn,e=b.disableBackup;a=b.scope;let f=b.cookieName||a,g=$g(c.win,f);return g?Promise.resolve(g):d&&!e?Ac(c,"storage").then((h=>h.get("amp-cid:"+f,31536e6))).then((h=>h&&"string"==typeof h?h:null)):Promise.resolve(null)}function lh(a,b,c){let d=a.ampdoc,e=a.isBackupCidExpOn,f=d.win,g=b.disableBackup,h=b.scope,k=b.cookieName||h;return th(a,b).then((l=>{if(!l&&!b.createCookieIfNotPresent)return Promise.resolve(null);if(l)return/^amp-/.test(l)&&(kh(f,k,l),e&&!g&&sh(d,k,l)),Promise.resolve(l);if(a.md[h])return a.md[h];let m=uh(f).then((n=>"amp-"+n));Promise.all([m,c]).then((n=>{let p=n[0];$g(f,k)||(kh(f,k,p),e&&!g&&sh(d,k,p))}));return a.md[h]=m}))}function oh(a,b){if(a.Uc)return a.Uc;let c=a.ampdoc.win;return a.Uc=vh(a.ampdoc).then((d=>{let f,e=!1;d&&!wh(d)?(f=Promise.resolve(d.cid),xh(d)&&(e=!0)):(f=M(c,"crypto").sha384Base64(yh(c)),e=!0);e&&f.then((g=>{zh(a.ampdoc,b,g)}));return f}))}function zh(a,b,c){let d=a.win;I(d)?Ah(a,Bh(c)):b.then((()=>{try{d.localStorage.setItem("amp-cid",Bh(c))}catch(e){}}))}function Ah(a,b){let c=T(a);return c.isTrustedViewer().then((d=>{if(d)return G().expectedError("CID","Viewer does not provide cap=cid"),c.sendMessageAwaitResponse("cid",b).then((e=>{var f;if(f=e){try{var g=JSON.parse(e)}catch(h){void 0,g=null}f=!g}return f?(G().expectedError("CID","invalid cid format"),JSON.stringify(z({time:Date.now(),cid:e}))):e}))}))}function Bh(a){return JSON.stringify(z({time:Date.now(),cid:a}))}function vh(a){let b=a.win;let c;try{c=b.localStorage.getItem("amp-cid")}catch(e){}let d=Promise.resolve(c);!c&&I(b)&&(d=Ah(a));return d.then((e=>{if(!e)return null;e=JSON.parse(e);return{time:e.time,cid:e.cid}}))}function wh(a){let b=a.time,c=Date.now();return b+31536e6Xg(b).replace(/\.+$/,"")))}function Ch(a){return a.Nb?a.Nb:a.Nb=Sc(a.F).preloadExtension("amp-crypto-polyfill").then((()=>M(a.F,"crypto-polyfill")))}class Dh{constructor(a){this.F=a;let 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.Fg=c;this.Nb=null}sha384(a){"string"===typeof a&&(a=Sa(a));if(!this.subtle||this.Nb)return(this.Nb||Ch(this)).then((b=>b(a)));try{return this.subtle.digest({name:"SHA-384"},a).then((b=>new Uint8Array(b)),(b=>{b.message&&0>b.message.indexOf("secure origin")&&F().error("Crypto","SubtleCrypto failed, fallback to closure lib.",b);return Ch(this).then((()=>this.sha384(a)))}))}catch(b){return G().error("Crypto","SubtleCrypto failed, fallback to closure lib.",b),Ch(this).then((()=>this.sha384(a)))}}sha384Base64(a){return this.sha384(a).then((b=>Xg(b)))}uniform(a){return this.sha384(a).then((b=>{let c=0;for(let d=2;0<=d;d--)c=(c+b[d])/256;return c}))}isPkcsAvailable(){return!!this.subtle&&!1!==this.F.isSecureContext}importPkcsKey(a){this.isPkcsAvailable();if(this.Fg){var b=JSON.stringify(a);b="undefined"!==typeof TextEncoder?new TextEncoder("utf-8").encode(b):Sa(unescape(encodeURIComponent(b)))}else b=a;return this.subtle.importKey("jwk",b,this.pkcsAlgo,!0,["verify"])}verifyPkcs(a,b,c){this.isPkcsAvailable();return this.subtle.verify(this.pkcsAlgo,a,b,c)}}let Eh=["prefetch","preload","preconnect","dns-prefetch"];class Fh{constructor(a){this.B=a;this.Wd=this.xd=null}get(){if(this.xd)return this.xd;let a=this.B;var b=a.getUrl();let c=ae(b);var d=a.getRootNode();b=d&&d.AMP&&d.AMP.canonicalUrl;if(!b){let h=d.querySelector("link[rel=canonical]");b=h?W(h.href).href:c}let e=String(Math.floor(1e4*a.win.Math.random())),f=Gh(a.win.document);d=Hh(a.win.document);let g=Ih(a);return this.xd={get sourceUrl(){return ae(a.getUrl())},canonicalUrl:b,pageViewId:e,get pageViewId64(){this.Wd||(this.Wd=uh(a.win));return this.Wd},linkRels:f,viewport:d,replaceParams:g}}}function Gh(a){let b=x();if(a.head){a=a.head.querySelectorAll("link[rel]");for(let c=0;c{if(-1==Eh.indexOf(g)){var h=b[g];h?(B(h)||(h=b[g]=[h]),h.push(e)):b[g]=e}}))}}return b}function Hh(a){let b=a.head.querySelector('meta[name="viewport"]');return b?b.getAttribute("content"):null}function Ih(a){var b;(b=!a.isSingleDoc())||(b=a.win.location.href,b=Qd(b),b="a"!=(X(b)?b.pathname.split("/",2)[1]:null));if(b)return null;a=W(a.win.location.href);let c=E(a.search).amp_r;return void 0===c?null:E(c)}let Jh={attributes:!0,attributeFilter:["hidden"],subtree:!0};function Kh(a){if(!a.ga){a.jb=new Z;var b=new a.F.MutationObserver((c=>{c&&a.jb.fire(c)}));a.ga=b;b.observe(a.V,Jh)}}class Lh{constructor(a){this.V=a.getRootNode();this.F=(this.V.ownerDocument||this.V).defaultView;this.jb=this.ga=null}add(a){Kh(this);let b=this.jb.add(a);return()=>{b();0===this.jb.getHandlerCount()&&this.dispose()}}dispose(){this.ga&&(this.ga.disconnect(),this.jb.removeAll(),this.jb=this.ga=null)}}function Mh(a){try{return a.state}catch(b){return null}}function Nh(a,b,c){let d=new v,e=d.promise;a.K.push({callback:b,resolve:d.resolve,reject:d.reject,trace:Error("history trace for "+c+": ")});1==a.K.length&&Oh(a);return e}function Ph(a,b){if(!(a.D>=a.Za.length-1)){var c=[];for(let d=a.Za.length-1;d>a.D;d--)a.Za[d]&&(c.push(a.Za[d]),a.Za[d]=void 0);a.Za.splice(a.D+1);if(0c[d](b)),1)}}function Oh(a){if(0!=a.K.length){var b=a.K[0];try{var c=b.callback()}catch(d){c=Promise.reject(d)}c.then((d=>{b.resolve(d)}),(d=>{G().error("History","failed to execute a task:",d);b.trace&&(b.trace.message+=d,G().error("History",b.trace));b.reject(d)})).then((()=>{a.K.splice(0,1);Oh(a)}))}}class Qh{constructor(a,b){this.B=a;this.R=N(a.win);this.j=b;this.D=0;this.Za=[];this.K=[];this.j.setOnStateUpdated(this.Z.bind(this))}cleanup(){this.j.cleanup()}push(a,b){return Nh(this,(()=>this.j.push(b).then((c=>{this.Z(c);a&&(this.Za[c.stackIndex]=a);return c.stackIndex}))),"push")}pop(a){return Nh(this,(()=>this.j.pop(a).then((b=>{this.Z(b)}))),"pop")}replace(a){return Nh(this,(()=>this.j.replace(a)),"replace")}get(){return Nh(this,(()=>this.j.get()),"get")}goBack(a){return Nh(this,(()=>0>=this.D&&!a?u():this.j.pop(this.D).then((b=>{this.Z(b)}))),"goBack")}replaceStateForTarget(a){let b=this.B.win.location.hash;return this.push((()=>{this.B.win.location.replace(b||"#")})).then((()=>{this.j.replaceStateForTarget(a)}))}getFragment(){return this.j.getFragment()}updateFragment(a){"#"==a[0]&&(a=a.substr(1));return this.j.updateFragment(a)}Z(a){this.D=a.stackIndex;Ph(this,a)}}function Rh(a,b,c){a=x(c?Sh(a):void 0);a["AMP.History"]=b;return a}function Sh(a){return a.qh?Mh(a.win.history):a.nb}function Th(a,b){return a.Pc?a.Pc.promise.then(b,b):b()}function Uh(a,b){let c=A(A({},a&&a.data||{}),b.data||{});return A(A(A({},a||{}),b),{},{data:c})}function Vh(a,b){if(0>=b)return Promise.resolve(a.D);a.nb=Rh(a,a.D-b);let c=Wh(a);a.win.history.go(-b);return c.then((()=>Promise.resolve(a.D)))}function Wh(a){var b=new v;let c=b.reject,d=b.resolve;b=a.R.timeoutPromise(500,b.promise);a.Pc={promise:b,resolve:d,reject:c};return b}class Xh{constructor(a){this.win=a;this.R=N(a);a=this.win.history;this.$a=a.length-1;let b=Mh(a);b&&void 0!==b["AMP.History"]&&(this.$a=Math.min(b["AMP.History"],this.$a));this.D=this.$a;this.Z=null;this.qh="state"in a;this.nb=Rh(this,this.D);let c,d;a.pushState&&a.replaceState?(this.pc=a.originalPushState||a.pushState.bind(a),this.Lb=a.originalReplaceState||a.replaceState.bind(a),c=(e,f,g)=>{this.nb=e;this.pc(e,f,g||null)},d=(e,f,g)=>{this.nb=e;void 0!==g?this.Lb(e,f,g):this.Lb(e,f)},a.originalPushState||(a.originalPushState=this.pc),a.originalReplaceState||(a.originalReplaceState=this.Lb)):(c=e=>{this.nb=e},d=e=>{this.nb=e});this.Zg=c;this.yc=d;try{this.yc(Rh(this,this.D,!0))}catch(e){G().error("History","Initial replaceState failed: "+e.message)}a.pushState=this.hf.bind(this);a.replaceState=this.vd.bind(this);this.uc=()=>{let e=Sh(this);let f=e?e["AMP.History"]:void 0;let g=this.D;let h=this.Pc;this.Pc=void 0;g>this.win.history.length-2&&(g=this.win.history.length-2,this.za(Uh(e,{stackIndex:g})));g=void 0==f?g+1:f{let b=Uh(Sh(this),a||{});this.hf(b,void 0,b.fragment?"#"+b.fragment:void 0);return ea((()=>Uh(b,{stackIndex:this.D})))}))}pop(a){a=Math.max(a,this.$a);return Th(this,(()=>Vh(this,this.D-a+1))).then((b=>Uh(Sh(this),{stackIndex:b})))}replace(a={}){return Th(this,(()=>{let b=Uh(Sh(this),a||{}),c=(b.url||"").replace(/#.*/,""),d=b.fragment?"#"+b.fragment:"";this.vd(b,b.title,c||d?c+d:void 0);return ea((()=>Uh(b,{stackIndex:this.D})))}))}get(){return ea((()=>Uh(Sh(this),{stackIndex:this.D})))}backTo(a){a=Math.max(a,this.$a);return Th(this,(()=>Vh(this,this.D-a)))}hf(a,b,c){a||(a={});let d=this.D+1;a["AMP.History"]=d;this.Zg(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.yc(a));a=Uh(a,{stackIndex:d});this.za(a)}replaceStateForTarget(a){Th(this,(()=>{this.win.removeEventListener("popstate",this.uc);try{this.win.location.replace(a)}finally{this.win.addEventListener("popstate",this.uc)}this.vd();return u()}))}vd(a,b,c){a||(a={});let d=Math.min(this.D,this.win.history.length-1);a["AMP.History"]=d;this.yc(a,b,c);a=Uh(a,{stackIndex:d});this.za(a)}za(a){a.stackIndex=Math.min(a.stackIndex,this.win.history.length-1);this.D!=a.stackIndex&&(this.D=a.stackIndex,this.Z&&this.Z(a))}getFragment(){let{hash:a}=this.win.location;a=a.substr(1);return Promise.resolve(a)}updateFragment(a){return this.replace({fragment:a})}}function Yh(a){return!!a&&void 0!==a.stackIndex}class Zh{constructor(a,b){this.win=a;this.h=b;this.D=0;this.Z=null;this.vh=this.h.onMessage("historyPopped",(c=>{void 0!==c.newStackIndex&&(c.stackIndex=c.newStackIndex);Yh(c)&&this.za(c)}))}replaceStateForTarget(a){this.win.location.replace(a)}cleanup(){this.vh()}setOnStateUpdated(a){this.Z=a}push(a){let b=A({stackIndex:this.D+1},a||{});return this.h.sendMessageAwaitResponse("pushHistory",b).then((c=>{c=Yh(c)?c:b;this.za(c);return c}))}pop(a){if(a>this.D)return this.get();a=z({stackIndex:this.D});return this.h.sendMessageAwaitResponse("popHistory",a).then((b=>{let c=z({stackIndex:this.D-1});b=Yh(b)?b:c;this.za(b);return b}))}replace(a){if(a&&a.url){if(!this.h.hasCapability("fullReplaceHistory")){let d=z({stackIndex:this.D});return Promise.resolve(d)}let c=a.url.replace(/#.*/,"");a.url=c}let b=A({stackIndex:this.D},a||{});return this.h.sendMessageAwaitResponse("replaceHistory",b,!0).then((c=>{c=Yh(c)?c:b;this.za(c);return c}))}get(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.D,title:""})}za(a){let b=a.stackIndex;this.D!=b&&(this.D=b,this.Z&&this.Z(a))}getFragment(){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("getFragment",void 0,!0).then((a=>{if(!a)return"";"#"==a[0]&&(a=a.substr(1));return a})):Promise.resolve("")}updateFragment(a){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("replaceHistory",z({fragment:a}),!0):u()}}function $h(a){var b=T(a);b.isOvertakeHistory()||a.win.__AMP_TEST_IFRAME?b=new Zh(a.win,b):(K(a.win,"global-history-binding",Xh),b=M(a.win,"global-history-binding"));return new Qh(a,b)}function ai(a,b){var c={};let d=c.needsRootBounds,e=c.threshold;c=I(b)&&d?b.document:void 0;return new b.IntersectionObserver(a,{threshold:e,root:c})}new WeakMap;new WeakMap;function bi(a,b){return Sc(a.win).installExtensionForDoc(a,"amp-loader").then((()=>Oc(b,"loader","amp-loader")))}function ci(a,b,c,d,e=a.win.Date.now()){let f=b.ownerDocument.createElement("div");bi(a,b).then((g=>{let h=a.win.Date.now()-e;g.initializeLoader(b,f,h,c,d)}));return f}let di=['
'];class ei{constructor(a){this.B=a;a=a.win;let b=this.yg.bind(this);this.Ad=ai((c=>c.forEach(b)),a);this.Oa=new WeakMap}dispose(){this.Ad.disconnect()}track(a){this.Ad.observe(a)}untrack(a){this.Ad.unobserve(a);this.Pe(a)}yg(a){var b=a.boundingClientRect,c=b.height,d=b.width;b=a.target;a=a.isIntersecting&&20{La(b.target)&&fi(this,b.target)};this.Le=()=>{N(a).delay((()=>{this.win.document.activeElement&&fi(this,this.win.document.activeElement)}),500)};this.win.document.addEventListener("focus",this.Me,!0);this.win.addEventListener("blur",this.Le)}Pe(){this.win.document.removeEventListener("focus",this.Me,!0);this.win.removeEventListener("blur",this.Le)}onFocus(a){return this.wf.add(a)}getLast(){return 0==this.P.length?null:this.P[this.P.length-1].el}purgeBefore(a){let b=this.P.length-1;for(let c=0;c=a){b=c-1;break}-1!=b&&this.P.splice(0,b+1)}hasDescendantsOf(a){this.win.document.activeElement&&fi(this,this.win.document.activeElement);for(let b=0;b!!Y(e)));if(c){b=Y(c);var d=b.getPendingChangeSize();void 0!==d&&ii(a,b,d.height,d.width,d.margins,void 0,!0)}}function ii(a,b,c,d,e,f,g,h){b.hasBeenMeasured()&&!e?ji(a,b,c,d,void 0,f,g,h):a.I.measure((()=>{b.hasBeenMeasured()||b.measure();if(e){var k=a.win.getComputedStyle(b.element)||Zc;k={top:parseInt(k.marginTop,10)||0,right:parseInt(k.marginRight,10)||0,bottom:parseInt(k.marginBottom,10)||0,left:parseInt(k.marginLeft,10)||0};k={newMargins:e,currentMargins:k}}else k=void 0;ji(a,b,c,d,k,f,g,h)}))}function ki(a,b,c,d,e=!1){let f=()=>{let h=a.J.getLayoutRect(b);return 0!=h.width&&0!=h.height?h.top:-1};let g=-1;return a.I.runPromise({measure:()=>{c&&c();e||(g=f())},mutate:()=>{d();if(!e){b.classList.contains("i-amphtml-element")&&Y(b).requestMeasure();var h=b.getElementsByClassName("i-amphtml-element");for(let k=0;k{let k=f();-1!=k&&k!=g&&(a.o.setRelayoutTop(k),a.o.schedulePass(70));a.o.maybeHeightChanged()}))}}})}function ji(a,b,c,d,e,f,g,h){b.resetPendingChangeSize();let k=b.getLayoutSize();var l;if(!(l=void 0!==c&&c!=k.height||void 0!==d&&d!=k.width)&&(l=void 0!==e)){l=e.currentMargins;var m=e.newMargins;l=void 0!==m.top&&m.top!=l.top||void 0!==m.right&&m.right!=l.right||void 0!==m.bottom&&m.bottom!=l.bottom||void 0!==m.left&&m.left!=l.left}l?(a.o.updateOrEnqueueMutateTask(b,{resource:b,newHeight:c,newWidth:d,marginChange:e,event:f,force:g,callback:h}),a.o.schedulePassVsync()):(void 0===c&&void 0===d&&void 0===e&&G().error("Mutator","attempting to change size with undefined dimensions",b.debugid),h&&h(!0))}class li{constructor(a){this.ampdoc=a;this.win=a.win;this.o=Vc(a);this.J=U(this.ampdoc);this.I=Wc(this.win);this.Rc=new gi(this.win);this.Rc.onFocus((b=>{hi(this,b)}))}forceChangeSize(a,b,c,d,e){ii(this,Y(a),b,c,e,void 0,!0,d)}requestChangeSize(a,b,c,d,e){return new Promise(((f,g)=>{ii(this,Y(a),b,c,d,e,!1,(h=>{h?f():g(Error("changeSize attempt denied"))}))}))}expandElement(a){Y(a).completeExpand();this.o.schedulePass(70)}attemptCollapse(a){return new Promise(((b,c)=>{ii(this,Y(a),0,0,void 0,void 0,!1,(d=>{d?(Y(a).completeCollapse(),b()):c(G().createExpectedError("collapse attempt denied"))}))}))}collapseElement(a){let b=this.J.getLayoutRect(a);0!=b.width&&0!=b.height&&(Jd(this.win,"dirty-collapse-element")?this.dirtyElement(a):this.o.setRelayoutTop(b.top));Y(a).completeCollapse();this.o.schedulePass(70)}measureElement(a){return this.I.measurePromise(a)}mutateElement(a,b,c){return ki(this,a,null,b,c)}measureMutateElement(a,b,c){return ki(this,a,b,c)}dirtyElement(a){let b=!1;a.classList.contains("i-amphtml-element")?(a=Y(a),this.o.setRelayoutTop(a.getLayoutBox().top)):b=!0;this.o.schedulePass(70,b)}}function mi(a,b,c,d){let e;try{e=a.open(b,c,d)}catch(g){G().error("DOM","Failed to open url on target: ",c,g)}if(!(c=e||"_top"==c)){c=d||"";var f;"number"!==typeof f&&(f=0);c=f+8>c.length?!1:-1!==c.indexOf("noopener",f)}c||(e=a.open(b,"_top"));return e}let ni=["_top","_blank"];function oi(a,b){a.vf.forEach((c=>{b=c(b)}));return b}function pi(a){return(a=a.ja.querySelector('meta[name="amp-to-amp-navigation"]'))&&a.hasAttribute("content")?a.getAttribute("content").split(",").map((b=>b.trim())):[]}function qi(a,b){let c=null;if(a.ue&&!a.Dd){a=W(a.ampdoc.win.location.href);var d=E(a.search);a=[];for(var e=0;ee.trim())).includes("amphtml")?a.navigateToAmpUrl(d.href,"")?(b.preventDefault(),!0):!1:!1}function ti(a,b,c){a.te.forEach((d=>{d(b,c)}))}function ui(a,b,c,d){b.preventDefault();if(!a.Dd){b=c.hash.slice(1);var e=null;if(b){let f=CSS.escape(b);e=a.ja.getElementById(b)||a.ja.querySelector(`a[name="${f}"]`)}c.hash!=d.hash?a.P.replaceStateForTarget(c.hash).then((()=>{vi(a,e)})):vi(a,e)}}function wi(a,b,c){let d=b.href,e=`${b.origin}${b.pathname}${b.hash}`;a.history.propertyIsEnumerable(null,"",e);let f=()=>{let g=a.location.href;g==e?a.history.propertyIsEnumerable(null,"",d):G().error("navigation","Unexpected iframe URL change:",g,e)};"_blank"===c?a.setTimeout(f,0):a.addEventListener("pageshow",(function k(h){h.persisted&&(f(),a.removeEventListener("pageshow",k))}))}function vi(a,b){b&&(a.J.scrollIntoView(b),N(a.ampdoc.win).delay((()=>a.J.scrollIntoView(b)),1))}class xi{constructor(a){this.ampdoc=a;this.ja=a.getRootNode();this.J=U(this.ampdoc);this.h=T(this.ampdoc);this.P=O(this.ampdoc,"history");this.pa=S(this.ampdoc.win);this.Eg=this.pa.isIos()&&this.pa.isSafari();this.Gb=I(this.ampdoc.win)&&this.h.isOvertakeHistory();this.Dd=this.ja!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent();this.Dg="inabox"==gb(this.ampdoc.win).runtime;this.Gf=this.ja.nodeType==Node.DOCUMENT_NODE?this.ja.documentElement:this.ja;this.sb=this.vg.bind(this);this.ja.addEventListener("click",this.sb);this.ja.addEventListener("contextmenu",this.sb);this.ue=!1;Je(this.ampdoc).then((b=>{this.ue=b}));this.lf=this.eb=!1;Promise.all([this.h.isTrustedViewer(),this.h.getViewerOrigin()]).then((b=>{this.eb=b[0];this.lf=D.localhostRegex.test(Qd(b[1]).origin)}));this.Qc=null;this.te=new jc;this.vf=new jc}cleanup(){this.sb&&(this.ja.removeEventListener("click",this.sb),this.ja.removeEventListener("contextmenu",this.sb))}openWindow(a,b,c,d){let e="";!this.pa.isIos()&&this.pa.isChrome()||d||(e+="noopener");let f=mi(a,b,c,e);f&&!d&&(f.opener=null)}navigateTo(a,b,c,d={}){let{opener:e=!1,target:f="_top"}=d;b=oi(this,b);let g=yc(this.Gf,"url");if(g.isProtocolValid(b))if(H(ni.includes(f),`Target '${f}' not supported.`),d=g.getSourceUrl(a.location),b=g.resolveRelativeUrl(b,d),"_blank"==f)this.openWindow(a,b,f,e);else{if(c&&(this.Qc||(this.Qc=pi(this)),this.Qc.includes(c)&&this.navigateToAmpUrl(b,c)))return;a.top.location.href=b}else F().error("navigation","Cannot navigate to invalid protocol: "+b)}navigateToAmpUrl(a,b){return this.h.hasCapability("a2a")?(this.h.sendMessage("a2aNavigate",z({url:a,requestedBy:b})),!0):!1}vg(a){if(!a.defaultPrevented){var b=xb(a.__AMP_CUSTOM_LINKER_TARGET__||a.target,"A");if(b&&b.href)if("click"==a.type){qi(this,b);var d,c=ri(this,b.href);if(d=!si(this,a,b,c)){if(this.Gb){d=b.ownerDocument.defaultView;var e=b.href,f=c.protocol;"ftp:"==f?(mi(d,e,"_blank"),a.preventDefault(),d=!0):(f=/^(https?|mailto):$/.test(f),this.Eg&&!f?(mi(d,e,"_top"),a.preventDefault(),d=!0):d=!1)}else d=!1;d=!d}if(d)if(d=ri(this,""),yi(c)!=yi(d)&&(ti(this,b,a),c=ri(this,b.href)),e=c,c=yi(e),f=yi(d),e.hash&&c==f)ui(this,a,e,d);else{e=(b.getAttribute("target")||"").toLowerCase();(this.Dd||this.Dg)&&"_top"!=e&&"_blank"!=e&&(e="_blank",b.setAttribute("target",e));f=this.ampdoc.win;let g=S(f);b=T(b);d.search&&g.isSafari()&&13<=g.getMajorVersion()&&b.isProxyOrigin()&&b.isEmbedded()&&wi(f,d,e);this.viewerInterceptsNavigation(c,"intercept_click")&&a.preventDefault()}}else"contextmenu"==a.type&&(qi(this,b),ti(this,b,a))}}registerAnchorMutator(a,b){this.te.enqueue(a,b)}registerNavigateToMutator(a,b){this.vf.enqueue(a,b)}viewerInterceptsNavigation(a,b){let c=this.h.hasCapability("interceptNavigation"),d=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");if(!c||!d||!this.eb&&!this.lf)return!1;this.h.sendMessage("navigateTo",z({url:a,requestedBy:b}));return!0}}function yi(a){return`${a.origin}${a.pathname}${a.search}`}function zi(a){return B(a)?a:[a]}function Ai(a,b,c){Bi(a,b,c,(d=>{d.element.ensureLoaded(b.getLayoutPriority())}))}function Bi(a,b,c,d){for(let e of c)b.element.contains(e),Ci(a,e,d)}function Ci(a,b,c){if(b.classList.contains("i-amphtml-element"))c(a.o.getResourceForElement(b)),(b=b.getPlaceholder())&&Ci(a,b,c);else{b=b.getElementsByClassName("i-amphtml-element");let d=[];for(let e=0;e{d.pause()}))}scheduleResume(a,b){a=this.o.getResourceForElement(a);b=zi(b);Bi(this,a,b,(c=>{c.resume()}))}scheduleUnlayout(a,b){a=this.o.getResourceForElement(a);b=zi(b);Bi(this,a,b,(c=>{c.unlayout()}))}requireLayout(a){let b=[];Ci(this,a,(c=>{b.push(c.element.ensureLoaded())}));return Promise.all(b)}}function Ei(a,b,c){if(!a.U.userAgent)return 0;a=a.U.userAgent.match(b);return!a||c>=a.length?0:parseInt(a[c],10)}class Fi{constructor(a){this.U=a.navigator;this.F=a}isAndroid(){return/Android/i.test(this.U.userAgent)}isIos(){return/iPhone|iPad|iPod/i.test(this.U.userAgent)}isSafari(){return/Safari/i.test(this.U.userAgent)&&!this.isChrome()&&!this.isIe()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()}isChrome(){return/Chrome|CriOS/i.test(this.U.userAgent)&&!this.isEdge()&&!this.isOpera()}isFirefox(){return/Firefox|FxiOS/i.test(this.U.userAgent)&&!this.isEdge()}isOpera(){return/OPR\/|Opera|OPiOS/i.test(this.U.userAgent)}isIe(){return!1}isEdge(){return/Edge/i.test(this.U.userAgent)}isWebKit(){return/WebKit/i.test(this.U.userAgent)&&!this.isEdge()}isWindows(){return/Windows/i.test(this.U.userAgent)}isStandalone(){return this.isIos()&&this.U.standalone||this.isChrome()&&this.F.matchMedia("(display-mode: standalone)").matches}isBot(){return/bot/i.test(this.U.userAgent)}getMajorVersion(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:Ei(this,/\sVersion\/(\d+)/,1):this.isChrome()?Ei(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?Ei(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?Ei(this,/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isIe()?Ei(this,/MSIE\s(\d+)/,1):this.isEdge()?Ei(this,/Edge\/(\d+)/,1):0}getIosVersionString(){if(!this.U.userAgent||!this.isIos())return"";let a=this.U.userAgent.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/);return a?a=a[1].replace(/_/g,"."):""}getIosMajorVersion(){let a=this.getIosVersionString();return""==a?null:Number(a.split(".")[0])}}class Gi{constructor(a){this.H=a;this.Pf=x()}addTransition(a,b,c){this.Pf[`${a}|${b}`]=c}setState(a){let b=this.H;this.H=a;a=this.Pf[`${b}|${a}`];null===a||void 0===a?void 0:a()}}class Hi{constructor(){this.N=[];this.Vb={};this.mf=this.nf=0}getSize(){return this.N.length}getLastEnqueueTime(){return this.nf}getLastDequeueTime(){return this.mf}getTaskById(a){return this.Vb[a]||null}enqueue(a){this.N.push(a);this.Vb[a.id]=a;this.nf=Date.now()}dequeue(a){if(!this.removeAtIndex(a,this.N.indexOf(this.Vb[a.id])))return!1;this.mf=Date.now();return!0}peek(a){let b=1e6,c=null;for(let d=0;d{var h=a.J.getSize();if(0=m;if(!r)for(t=0;th;q++)k=a.o[q],2==k.getState()&&!k.hasOwner()&&!k.element.R1()&&k.isDisplayed()&&k.idleRenderOutsideViewport()&&(a.scheduleLayoutOrPreload(k,!1),h++);for(q=0;qh;q++)k=a.o[q],2!=k.getState()||k.hasOwner()||k.element.R1()||!k.isDisplayed()||(a.scheduleLayoutOrPreload(k,!1),h++)}h=a.win.Date.now();k=-1;for(q=a.K.peek(a.Be);q;){k=Ni(a,q);if(16{},e=()=>{a.o.forEach((h=>h.pause()))},f=()=>{a.o.forEach((h=>{h.unload();Pi(a,h)}));try{a.win.getSelection().removeAllRanges()}catch(h){}},g=()=>{a.o.forEach((h=>h.resume()));c()};b.addTransition("prerender","prerender",c);b.addTransition("prerender","visible",c);b.addTransition("prerender","hidden",c);b.addTransition("prerender","inactive",c);b.addTransition("prerender","paused",c);b.addTransition("visible","visible",c);b.addTransition("visible","hidden",c);b.addTransition("visible","inactive",f);b.addTransition("visible","paused",e);b.addTransition("hidden","visible",c);b.addTransition("hidden","hidden",c);b.addTransition("hidden","inactive",f);b.addTransition("hidden","paused",e);b.addTransition("inactive","visible",g);b.addTransition("inactive","hidden",g);b.addTransition("inactive","inactive",d);b.addTransition("inactive","paused",c);b.addTransition("paused","visible",g);b.addTransition("paused","hidden",c);b.addTransition("paused","inactive",f);b.addTransition("paused","paused",d)}function Qi(a){a.ampdoc.whenReady().then((()=>{a.wb=!0;a.Ie();a.va=null;M(a.win,"input").setupInputModeClasses(a.ampdoc)}))}function Ri(a,b,c=!1){if(c||20>a.He||a.ampdoc.hasBeenVisible()||b.isBuildRenderBlocking())if(c=b.build())a.He++,a.Je++,c.then((()=>a.schedulePass()),(d=>{Si(a,b);if(!le(d))throw d}))}function Ki(a,b,c=!1,d=!1){if(a.ta||a.Cg)if("prerender"!=a.ampdoc.getVisibilityState()||b.prerenderAllowed())a.wb?Ri(a,b,d):b.isBuilt()||b.isBuilding()||c&&a.va.includes(b)||(a.va.push(b),a.Ie())}function Si(a,b){let c=a.o.indexOf(b);-1!=c&&a.o.splice(c,1);b.isBuilt()&&b.pauseOnRemove();3===b.getState()&&b.layoutCanceled();Pi(a,b,!0)}function Pi(a,b,c){if(1==b.getState()||2==b.getState())a.K.purge((d=>d.resource==b)),a.sa.purge((d=>d.resource==b)),Ga(a.ia,(d=>d.resource===b));if(0==b.getState()&&c&&a.va){let d=a.va.indexOf(b);-1!=d&&a.va.splice(d,1)}}function Ti(a,b,c){let d=a.J.getContentHeight();a=Math.max(.85*d,d-1e3);let e=c||b.getLayoutBox(),f=b.getInitialLayoutBox();return e.bottom>=a||f.bottom>=a}function Ji(a){var b=a.win.Date.now();let c=a.J.getRect(),d=c.height/10,e=c.height/10,f=.01>Math.abs(a.Kd)&&500=c.bottom-e||0==t&&r.bottom+Math.min(Wa,0)>=c.bottom-e)Xa=!0;else if(1Wa&&c.top+l<-Wa)continue;f?(l+=Wa,k.push(m)):a.ia.push(m);continue}else Ti(a,p,r)?Xa=!0:0>Wa||0>t||0>q||(m.newHeight==r.height?a.I.run({measure:ca=>{ca.resize=!1;let Ya=p.element.parentElement;if(Ya){var jk=Ya.getLayoutSize&&Ya.getLayoutSize().width||Ya.offsetWidth,cg=bg;for(let rd=0;rdjk)return;ca.resize=!0}},mutate:ca=>{ca.resize&&m.resource.changeSize(m.newHeight,m.newWidth,R);m.resource.overflowCallback(!ca.resize,m.newHeight,m.newWidth,R)}},{}):m.resource.overflowCallback(!0,m.newHeight,m.newWidth,R));Xa&&(0<=r.top&&(h=-1==h?r.top:Math.min(h,r.top)),m.resource.changeSize(m.newHeight,m.newWidth,R),m.resource.overflowCallback(!1,m.newHeight,m.newWidth,R),a.Ta=!0);m.callback&&m.callback(Xa)}-1!=h&&a.setRelayoutTop(h);0{m.scrollHeight=a.J.getScrollHeight();m.scrollTop=a.J.getScrollTop()},mutate:m=>{let n=-1;k.forEach((r=>{let t=r.resource.getLayoutBox();n=-1==n?t.top:Math.min(n,t.top);r.resource.changeSize(r.newHeight,r.newWidth,r.marginChange?r.marginChange.newMargins:void 0);r.callback&&r.callback(!0)}));-1!=n&&a.setRelayoutTop(n);let p=a.J.getScrollHeight();p!=m.scrollHeight&&a.J.setScrollTop(m.scrollTop+(p-m.scrollHeight));a.Ta=!0}},{})}}function Li(a,b){b.length&&a.I.mutate((()=>{b.forEach((c=>{c.unload();Pi(a,c)}))}))}function Mi(a,b=Date.now()){let c=a.sa.getLastDequeueTime();return 0==a.sa.getSize()&&0==a.K.getSize()&&b>c+5e3&&0{d=Math.max(d,Math.max(1e3*(b.priority-e.priority),0)-(c-e.startTime))}));return d}function Oi(a,b,c){return 0!=b.getState()&&b.isDisplayed()&&(a.ka||"prerender"==a.ampdoc.getVisibilityState()&&b.prerenderAllowed())&&(c||b.isInViewport()||b.renderOutsideViewport()||b.idleRenderOutsideViewport())?!0:!1}class Ui{constructor(a){this.ampdoc=a;this.win=a.win;this.h=T(a);this.ta=this.h.isRuntimeOn();this.Cg=!1;this.hh=0;this.o=[];this.Je=this.He=this.se=0;this.ka=this.ampdoc.isVisible();this.wb=!1;this.nd=!0;this.Sc=!1;this.dc=-1;this.xc=!0;this.Tb=-1;this.Kd=this.ic=0;this.tc=new fg(this.win,(()=>this.doPass()));this.dh=new fg(this.win,(()=>{this.xc=!0;this.schedulePass()}));this.sa=new Hi;this.K=new Hi;this.Be=this.fg.bind(this);this.ia=[];this.va=[];this.Cd=!1;this.J=U(this.ampdoc);this.I=Wc(this.win);this.Rc=new gi(this.win);this.re=!1;this.ac=0;this.Ta=!1;this.sc=[];this.ld=[];this.$e=new v;this.Yf=new Gi(this.ampdoc.getVisibilityState());this.J.onChanged((b=>{this.ic=this.win.Date.now();this.Kd=b.velocity;b.relayoutAll&&(this.Ta=this.xc=!0);this.schedulePass()}));this.J.onScroll((()=>{this.ic=this.win.Date.now()}));this.ampdoc.onVisibilityChanged((()=>{-1==this.dc&&this.ampdoc.isVisible()&&(this.dc=this.win.Date.now());this.schedulePass()}));this.h.onRuntimeState((b=>{this.ta=b;this.schedulePass(1)}));ud(this.ampdoc,(()=>{Ii(this,this.Yf);this.schedulePass(0)}));Qi(this);this.Ic=ab(this.win,(b=>{b=b.target;b.nodeType!==Node.ELEMENT_NODE||b===this.J.getScrollingElement()||this.ld.includes(b)||(this.ld.push(b),this.schedulePass(70))}),250);nc(this.win.document,"scroll",this.Ic,{capture:!0,passive:!0})}get(){return this.o.slice(0)}getAmpdoc(){return this.ampdoc}getResourceForElement(a){return Y(a)}getResourceForElementOptional(a){return Y(a)}getScrollDirection(){return Math.sign(this.Kd)||1}add(a){this.se++;1==this.se&&this.J.ensureReadyForElements();let b=Y(a);b&&0!=b.getState()&&!a.reconstructWhenReparented()?b.requestMeasure():b=new pf(++this.hh,a,this);this.o.push(b);this.dh.schedule(1e3)}Ie(){if(!this.Cd)try{this.Cd=!0;for(let a=0;a{d.resource==c&&(d.priority=b)}));this.schedulePass()}schedulePass(a){return this.tc.schedule(a)}updateOrEnqueueMutateTask(a,b){let c=null;for(let d=0;dthis.doPass())))}ampInitComplete(){this.Sc=!0;this.schedulePass()}setRelayoutTop(a){this.Tb=-1==this.Tb?a:Math.min(a,this.Tb)}maybeHeightChanged(){this.Ta=!0}onNextPass(a){this.sc.push(a)}doPass(){if(this.ta){this.ka=this.ampdoc.isVisible();this.Je=0;if(this.wb&&this.nd&&this.Sc){var a;this.nd=!1;let b=this.win.document,c=Tc(this.ampdoc);this.h.sendMessage("documentLoaded",z({title:b.title,sourceUrl:ae(this.ampdoc.getUrl()),isStory:"AMP-STORY"===(null===(a=b.body.firstElementChild)||void 0===a?void 0:a.tagName),serverLayout:b.documentElement.hasAttribute("i-amphtml-element"),linkRels:c.linkRels,metaTags:{viewport:c.viewport},viewport:c.viewport}),!0);this.ac=this.J.getContentHeight();this.h.sendMessage("documentHeight",z({height:this.ac}),!0)}!this.nd&&this.ng&&this.o.every((b=>b.getState()!=pf.NOT_BUILT||b.element.R1()))&&(this.ng=!1,this.Ta=!0);this.J.getSize();this.tc.cancel();this.re=!1;this.Yf.setState(this.ampdoc.getVisibilityState());this.wb&&this.Sc&&!this.ampdoc.signals().get("ready-scan")&&this.ampdoc.signals().signal("ready-scan");this.Ta&&(this.Ta=!1,this.I.measure((()=>{let b=this.J.getContentHeight();b!=this.ac&&(this.h.sendMessage("documentHeight",z({height:b}),!0),this.ac=b,this.J.contentHeightChanged())})));for(a=0;a{"function"==typeof g.throwIfCannotNavigate&&g.throwIfCannotNavigate()})));return b.then((()=>{O(a.ampdoc,"navigation").navigateTo(f,c.url,`AMP.${e}`,{target:c.target,opener:c.opener})}),(g=>{F().error("STANDARD-ACTIONS",g)}))}function Zi(a,b){let c=Yi(b.node),d=c.parent!=c;let e=!1;c.opener&&a.ampdoc.isSingleDoc()&&!d&&(c.close(),e=c.closed);return e?u():Xi(a,b)}function $i(a,b){a.classList.contains("i-amphtml-element")?a.expand():cd(a,!0);if(b)try{b.focus()}catch(c){}}class aj{constructor(a){this.ampdoc=a;let b=a.getHeadNode();this.ib=Q(a);this.J=U(a);a=yc(b,"action");a.addGlobalTarget("AMP",this.qg.bind(this));a.addGlobalMethodHandler("hide",this.df.bind(this));a.addGlobalMethodHandler("show",this.gf.bind(this));a.addGlobalMethodHandler("toggleVisibility",this.ug.bind(this));a.addGlobalMethodHandler("scrollTo",this.ff.bind(this));a.addGlobalMethodHandler("focus",this.rg.bind(this));a.addGlobalMethodHandler("toggleClass",this.tg.bind(this))}qg(a){if(!a.satisfiesTrust(2))return null;let b=a.args,c=a.method,d=a.node,e=Yi(d);switch(c){case"pushState":case"setState":return Qc(d.nodeType===Node.DOCUMENT_NODE?d.documentElement:d).then((f=>{H(f,"AMP-BIND is not installed.");return f.invoke(a)}));case"navigateTo":return Xi(this,a);case"closeOrNavigateTo":return Zi(this,a);case"scrollTo":return H(b.id,"AMP.scrollTo must provide element ID"),a.node=vc(d).getElementById(b.id),this.ff(a);case"goBack":return O(this.ampdoc,"history").goBack(!(!b||!0!==b.navigate)),null;case"print":return e.print(),null;case"optoutOfCid":return Ac(this.ampdoc,"cid").then((f=>f.optOut())).catch((f=>{G().error("STANDARD-ACTIONS","Failed to opt out of CID",f)}))}throw F().createError("Unknown AMP action ",c)}ff(a){let b=a.node;let 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.J.animateScrollIntoView(b,c,d)}rg(a){try{a.node.focus()}catch(b){}return null}df(a){let b=a.node;b.classList.contains("i-amphtml-element")?this.ib.mutateElement(b,(()=>b.collapse()),!0):this.ib.mutateElement(b,(()=>cd(b,!1)));return null}gf(a){let b=a.node,c=b.ownerDocument.defaultView;if(b.classList.contains("i-amphtml-layout-nodisplay"))return null;this.ib.measureElement((()=>{"none"==(c.getComputedStyle(b)||Zc).display&&b.hasAttribute("hidden")}));let d=Vi(b);d&&S(c).isIos()?($i(b,d),this.ib.mutateElement(b,(()=>{}))):this.ib.mutateElement(b,(()=>{$i(b,d)}));return null}ug(a){return a.node.hasAttribute("hidden")?this.gf(a):this.df(a)}tg(a){let b=a.node,c=a.args,d=F().assertString(c["class"],"Argument 'class' must be a string.");if(Wi.test(d))return null;this.ib.mutateElement(b,(()=>{if(void 0!==c.force){let e=F().assertBoolean(c.force,"Optional argument 'force' must be a boolean.");b.classList.toggle(d,e)}else b.classList.toggle(d)}));return null}}function Yi(a){return(a.ownerDocument||a).defaultView}function bj(a){a.h.onBroadcast((b=>{"amp-storage-reset"==b.type&&b.origin==a.qc&&(a.Fc=null)}))}function cj(a){a.Fc||(a.Fc=a.j.loadBlob(a.qc).then((b=>b?JSON.parse(atob(b)):{})).catch((b=>{G().expectedError("Storage","Failed to load store: ",b);return{}})).then((b=>new dj(b))));return a.Fc}function ej(a,b){return cj(a).then((c=>{b(c);c=btoa(JSON.stringify(c.obj));return a.j.saveBlob(a.qc,c)})).then(a.eg.bind(a))}class fj{constructor(a,b,c){this.ampdoc=a;this.h=b;this.j=c;this.Jg=c instanceof gj;this.qc=be(this.ampdoc.win.location);this.Fc=null}get(a,b){return cj(this).then((c=>c.get(a,b)))}set(a,b,c){return this.setNonBoolean(a,b,c)}setNonBoolean(a,b,c){return ej(this,(d=>d.set(a,b,c)))}remove(a){return ej(this,(b=>b.remove(a)))}isViewerStorage(){return this.Jg}eg(){this.h.broadcast({type:"amp-storage-reset",origin:this.qc})}}class dj{constructor(a){this.obj=la(a);this.Mg=8;this.Aa=this.obj.vv||Object.create(null);this.obj.vv||(this.obj.vv=this.Aa)}get(a,b){let c=(a=this.Aa[a])?a.t:void 0,d=b&&void 0!=c?c+b>Date.now():!0;return a&&d?a.v:void 0}set(a,b,c){if(void 0!==this.Aa[a]){a=this.Aa[a];let d=Date.now();c&&(d=a.t);a.v=b;a.t=d}else this.Aa[a]=z({v:b,t:Date.now()});b=Object.keys(this.Aa);if(b.length>this.Mg){let d=1/0,e=null;for(c=0;c{this.Gd?b(this.win.localStorage.getItem(`amp-store:${a}`)):b(null)}))}saveBlob(a,b){return new Promise((c=>{this.Gd&&this.win.localStorage.setItem(`amp-store:${a}`,b);c()}))}}class gj{constructor(a){this.h=a}loadBlob(a){return this.h.sendMessageAwaitResponse("loadStore",z({origin:a})).then((b=>b.blob))}saveBlob(a,b){return this.h.sendMessageAwaitResponse("saveStore",z({origin:a,blob:b})).catch((c=>{throw G().createExpectedError("Storage","Failed to save store: ",c)}))}}function ij(a){L(a,"storage",(function(){var b=T(a);let c=parseInt(b.getParam("storage"),10)?new gj(b):new hj(a.win);b=new fj(a,b,c);bj(b);return b}),!0)}let jj=()=>{};function kj(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"));H(c,"Type must be specified: %s",b);if(d=b.__AMP_WAIT_)return d;d=lj(a,c).then((e=>{let f=b.__AMP_IMPL_=new e(b,a.B.win);delete b.__AMP_WAIT_;return f}));return b.__AMP_WAIT_=d}function lj(a,b){if(a.Wb[b])return a.Wb[b];var c=new v;let d=c.promise;c=c.resolve;a.Wb[b]=d;a.he[b]=c;return d}class mj{constructor(a){this.B=a;this.Wb={};this.he={}}whenReady(a){return kj(this,a).then(jj)}setHtmlForTemplate(a,b){return kj(this,a).then((c=>c.setHtml(b)))}renderTemplate(a,b){return kj(this,a).then((c=>c.render(b)))}renderTemplateAsString(a,b){return kj(this,a).then((c=>c.renderAsString(b)))}renderTemplateArray(a,b){return 0==b.length?Promise.resolve([]):kj(this,a).then((c=>b.map((d=>c.render(d)))))}findAndRenderTemplate(a,b,c){return this.renderTemplate(this.findTemplate(a,c),b)}findAndSetHtmlForTemplate(a,b,c){return this.setHtmlForTemplate(this.findTemplate(a,c),b)}findAndRenderTemplateArray(a,b,c){return this.renderTemplateArray(this.findTemplate(a,c),b)}hasTemplate(a,b){return!!this.maybeFindTemplate(a,b)}findTemplate(a,b){b=this.maybeFindTemplate(a,b);H(b,"Template not found for %s",a);let c=b.tagName;H("TEMPLATE"==c||"SCRIPT"==c&&"text/plain"===b.getAttribute("type"),'Template must be defined in a