self.AMP_CONFIG={"v":"012601162341000","type":"production","allow-doc-opt-in":["amp-next-page","story-ad-allow-fullbleed"],"allow-url-opt-in":[],"canary":0,"a4aProfilingRate":0.01,"doubleclickSraExp":0.01,"doubleclickSraReportExcludedBlock":0.1,"flexAdSlots":0.05,"flexible-bitrate":0.1,"ios-fixed-no-transfer":0,"story-ad-placements":0.01,"story-disable-animations-first-page":1,"story-load-inactive-outside-viewport":1,"amp-sticky-ad-to-amp-ad-v4":0,"story-video-cache-apply-audio":0,"amp-story-subscriptions":1,"interaction-to-next-paint":1,"esm":1};/*AMP_CONFIG*/;
self,self.AMP=self.AMP||[];try{AMP._=AMP._||{},self.AMP&&!Array.isArray(self.AMP)||(()=>{var t,i=class{constructor(){this.yt=new s}abort(){if(!this.yt.Ot&&(this.yt.Ot=!0,this.yt.jt)){const t={"type":"abort","bubbles":!1,"cancelable":!1,"target":this.yt,"currentTarget":this.yt};this.yt.jt(t)}}get signal(){return this.yt}},s=class{constructor(){this.Ot=!1,this.jt=null}get aborted(){return this.Ot}get onabort(){return this.jt}set onabort(t){this.jt=t}};function e(){return t||(t=Promise.resolve(void 0))}var n=class{constructor(){this.promise=new Promise(((t,i)=>{this.resolve=t,this.reject=i}))}};function r(t){return new Promise((i=>{i(t())}))}function h(t){const i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;const{message:s,stack:e}=t,n=new Error(s);for(const i in t)n[i]=t[i];return n.stack=e,n}function o(t){let i=null,s="";for(const t of arguments)t instanceof Error&&!i?i=h(t):(s&&(s+=" "),s+=t);return i?s&&(i.message=s+": "+i.message):i=new Error(s),i}function u(t){var i,s;null===(i=(s=self).__AMP_REPORT_ERROR)||void 0===i||i.call(s,t)}function l(t){const i=o.apply(null,arguments);setTimeout((()=>{throw u(i),i}))}function c(t){const i=o.apply(null,arguments);return i.expected=!0,i}var{hasOwnProperty:a,toString:d}=Object.prototype;function f(t){return"[object Object]"===d.call(t)}function p(t){const i=Object.create(null);return t&&Object.assign(i,t),i}function m(t,i){return a.call(t,i)}function _(t){const i=p();for(const s in t){if(!m(t,s))continue;const e=t[s];i[s]=f(e)?_(e):e}return i}function A(t,i,s){return i in t?Object.defineProperty(t,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[i]=s,t}function P(t,i){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),s.push.apply(s,e)}return s}function g(t){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?P(Object(s),!0).forEach((function(i){A(t,i,s[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):P(Object(s)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))}))}return t}var{isArray:v}=Array;function E(t){return v(t)?t:[t]}function T(t,i){const s=[];let e=0;for(let n=0;n<t.length;n++){const r=t[n];i(r,n,t)?s.push(r):(e<n&&(t[e]=r),e++)}return e<t.length&&(t.length=e),s}function I(t,i){for(let s=0;s<t.length;s++)if(i(t[s],s,t))return s;return-1}function M(t,i){const s=t.indexOf(i);return-1!=s&&(t.splice(s,1),!0)}function R(t,i){const s=t.length-i.length;return s>=0&&t.indexOf(i,s)==s}function y(t){return"string"==typeof t}function b(t){return 1==(null==t?void 0:t.nodeType)}function w(t){return"number"==typeof t&&isFinite(t)}var V="​​​",S="​​​​";function x(t){return b(t)?t.tagName.toLowerCase()+(t.id?`#${t.id}`:""):t}function O(t){return t.indexOf(V)>=0}function C(t){return t.replace(V,"")}function k(t,i,s="Assertion failed",e){var n,r;if(i)return i;t&&-1==s.indexOf(t)&&(s+=t);let h=3;const o=s.split("%s");let u=o.shift();const l=[u];for(;o.length;){const t=arguments[h++],i=o.shift();u+=x(t)+i,l.push(t,i.trim())}const c=new Error(u);throw c.messageArray=T(l,(t=>""!==t)),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,c),c}function N(t,i,s,e,n){return v(n)?t(s,n.concat([i])):t(s,`${n||e}: %s`,i),i}function D(t,i,s,e,n,r,h,o,u,l,c){return t}function L(t,i){return t}function U(t,i){return t}function $(t,i){return t}function F(t,i,s,e,n,r,h,o,u,l,c){return k(V,t,i,s,e,n,r,h,o,u,l,c)}function B(t){return JSON.parse(t)}function H(t){const i=new Uint8Array(t.length);for(let s=0;s<t.length;s++){const e=t.charCodeAt(s);D(e<=255),i[s]=e}return i}function j(t,i){let{crypto:s}=t;const e=new Uint8Array(i);return s.getRandomValues(e),e}function z(t,i,s){let e=0,n=null;function r(r){n=null,e=t.setTimeout(h,s),i.apply(null,r)}function h(){e=0,n&&r(n)}return function(...t){e?n=t:r(t)}}function G(t,i,s){let e=0,n=0,r=null;function h(){e=0;const o=s-(t.Date.now()-n);var u;o>0?e=t.setTimeout(h,o):(u=r,r=null,i.apply(null,u))}return function(...i){n=t.Date.now(),r=i,e||(e=t.setTimeout(h,s))}}var q=["javascript:","data:","vbscript:"],W=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function K(t,i=""){try{return decodeURIComponent(t)}catch(t){return i}}function Y(t){const i=p();if(!t)return i;let s;for(;s=W.exec(t);){const t=K(s[1],s[1]),e=s[2]?K(s[2].replace(/\+/g," "),s[2]):"";i[t]=e}return i}function Q(t){const{location:i}=t||self;return Y(i.originalHash||i.hash)}var J=t=>self.AMP_CONFIG?self.AMP_CONFIG[t]:null,X=("string"==typeof J("cdnProxyRegex")?new RegExp(J("cdnProxyRegex")):J("cdnProxyRegex"))||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Z(t){if(!self.document||!self.document.head)return null;if(self.location&&X.test(self.location.origin))return null;const i=self.document.head.querySelector(`meta[name="${t}"]`);return i&&i.getAttribute("content")||null}var tt=J("thirdPartyUrl")||"https://3p.ampproject.net",it=J("thirdPartyFrameHost")||"ampproject.net",st=("string"==typeof J("thirdPartyFrameRegex")?new RegExp(J("thirdPartyFrameRegex")):J("thirdPartyFrameRegex"))||/^d-\d+\.ampproject\.net$/,et=J("cdnUrl")||Z("runtime-host")||"https://cdn.ampproject.org",nt=/^https?:\/\/localhost(:\d+)?$/,rt=J("errorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",ht=J("betaErrorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",ot=J("localDev")||!1,ut=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],lt=J("geoApiUrl")||Z("amp-geo-api"),ct="";function at(t){const i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:ft(t,Q(t)),esm:!0,test:!1,rtvVersion:dt(t),ssrReady:!1}}(i)}function dt(t){var i;return ct||(ct=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"012601162341000"),ct}function ft(t,i){const s=i||Q(t);return["1","actions","amp","amp4ads","amp4email"].includes(s.development)||!!t.AMP_DEV_MODE}var pt=()=>{},mt=void 0;function _t(t){mt=t}var At=(t,i)=>i.reduce(((t,i)=>`${t}&s[]=${Pt(i)}`),`https://log.amp.dev/?v=012601162341000&id=${encodeURIComponent(t)}`),Pt=t=>encodeURIComponent(String(x(t))),gt=t=>parseInt(Q(t).log,10);self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var vt=self.__AMP_LOG,Et=null;function Tt(t,i){if(!Et)throw new Error("failed to call initLogConstructor");return new Et(self,t,i)}function It(t){return vt.user||(vt.user=Mt(V)),function(t,i){return i&&i.ownerDocument.defaultView!=t}(vt.user.win,t)?vt.userForEmbed||(vt.userForEmbed=Mt(S)):vt.user}function Mt(t){return Tt(((t,i)=>i||t>=1?4:2),t)}function Rt(){return vt.dev||(vt.dev=Tt((t=>t>=3?4:t>=2?3:0)))}function yt(t,i,s,e,n,r,h,o,u,l,c){return t}function bt(t,i,s,e,n,r,h,o,u,l,c){return It().assert(t,i,s,e,n,r,h,o,u,l,c)}function wt(t){return(t.ownerDocument||t).defaultView}function Vt(t,i){return t.replace(/^|,/g,`$&${i} `)}function St(t){return CSS.escape(t)}function xt(t){D(/^[\w-]+$/.test(t))}function Ot(t,i){return t.querySelector(Vt(i,":scope"))}function Ct(t,i){return t.closest(i)}function kt(t,i){for(let s=t.lastElementChild;s;s=s.previousElementSibling)if(i(s))return s;return null}function Nt(t,i){return xt(i),Ot(t,`> [${i}]`)}function Dt(t){return!!function(t){let i;return y(t)?i=t:b(t)&&(i=t.tagName),!!i&&i.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(L(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var Lt={bubbles:!0,cancelable:!0};function Ut(t,i,s){if(i(t))s();else{const e=new(wt(t).MutationObserver)((()=>{i(t)&&(e.disconnect(),s())}));e.observe(t,{childList:!0})}}function $t(t,i){Ut(t.documentElement,(()=>!!t.body),i)}function Ft(t){return new Promise((i=>$t(t,i)))}function Bt(t){var i;null===(i=t.parentElement)||void 0===i||i.removeChild(t)}function Ht(t){const i=t.isConnected;if(void 0!==i)return i;let s=t;for(;s=jt(s),s.host;)s=s.host;return s.nodeType===Node.DOCUMENT_NODE}function jt(t){if(Node.prototype.getRootNode)return t.getRootNode();let i;for(i=t;i.parentNode&&(!(s=i)||"I-AMPHTML-SHADOW-ROOT"!=s.tagName&&(11!=s.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(s)));i=i.parentNode);var s;return i}function zt(t,i){let s=t;do{if(s.nextSibling)return!0}while((s=s.parentNode)&&s!=i);return!1}function Gt(t){try{t.focus()}catch(t){}}function qt(t){return t.parent&&t.parent!=t}function Wt(t,i,s,e){const n=s||{};D(t.ownerDocument);const{bubbles:r,cancelable:h}=e||Lt,o=new MessageEvent(i,{data:n,bubbles:r,cancelable:h});t.dispatchEvent(o)}function Kt(t,i){return i!==t&&t.contains(i)}function Yt(t){return t.hasAttribute("i-amphtml-ssr")}function Qt(t,i){const s=t.head.querySelector("script[nonce]");if(s){const t=s.nonce||s.getAttribute("nonce");i.setAttribute("nonce",null!=t?t:"")}}function Jt(t,i,s,e){return{left:t,top:i,width:s,height:e,bottom:i+e,right:t+s,x:t,y:i}}function Xt(t,i,s){return Jt(t.left-t.width*i,t.top-t.height*s,t.width*(1+2*i),t.height*(1+2*s))}function Zt(t,i,s){return 0==i&&0==s||0==t.width&&0==t.height?t:Jt(t.left+i,t.top+s,t.width,t.height)}function ti(t){return!t.IntersectionObserver||!t.IntersectionObserverEntry||!!t.IntersectionObserver._stub||!function(t){try{return new t.IntersectionObserver((()=>{}),{root:t.document}),!0}catch(t){return!1}}(t)||function(t){return/apple/i.test(t.navigator.vendor)}(t)}var ii=class t{constructor(i,s){this.xt=i,this.Tt=g({root:null,rootMargin:"0px 0px 0px 0px"},s),this.St=[],this.kt=null,t._upgraders.push(this.Vt.bind(this))}get root(){return this.kt?this.kt.root:this.Tt.root||null}get rootMargin(){return this.kt?this.kt.rootMargin:this.Tt.rootMargin}get thresholds(){return this.kt?this.kt.thresholds:[].concat(this.Tt.threshold||0)}disconnect(){this.kt?this.kt.disconnect():this.St.length=0}takeRecords(){return this.kt?this.kt.takeRecords():[]}observe(t){this.kt?this.kt.observe(t):-1==this.St.indexOf(t)&&this.St.push(t)}unobserve(t){if(this.kt)this.kt.unobserve(t);else{const i=this.St.indexOf(t);-1!=i&&this.St.splice(i,1)}}Vt(t){const i=new t(this.xt,this.Tt);this.kt=i;for(const t of this.St)i.observe(t);this.St.length=0}};ii._upgraders=[];var{hasOwnProperty:si}=Object.prototype;function ei(t){return!t.ResizeObserver||!!t.ResizeObserver._stub}var ni,ri=class t{constructor(i){this.xt=i,this.St=[],this.kt=null,t._upgraders.push(this.Vt.bind(this))}disconnect(){this.kt?this.kt.disconnect():this.St.length=0}observe(t){this.kt?this.kt.observe(t):-1==this.St.indexOf(t)&&this.St.push(t)}unobserve(t){if(this.kt)this.kt.unobserve(t);else{const i=this.St.indexOf(t);-1!=i&&this.St.splice(i,1)}}Vt(t){const i=new t(this.xt);this.kt=i;for(const t of this.St)i.observe(t);this.St.length=0}};ri._upgraders=[],self.document&&(ti(ni=self)&&function(t){if(!t.IntersectionObserver)return t.IntersectionObserver=ii,void(t.IntersectionObserver._stub=ii);const i=t.IntersectionObserver;t.IntersectionObserver=function(t,i){return function(s,e){var n;return 9===(null==e||null===(n=e.root)||void 0===n?void 0:n.nodeType)?new i(s,e):new t(s,e)}}(t.IntersectionObserver,ii),t.IntersectionObserver._stub=ii,t.IntersectionObserver._native=i}(ni),function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get(){return this.intersectionRatio>0}})}(ni),function(t){ei(t)&&function(t){t.ResizeObserver||(t.ResizeObserver=ri,t.ResizeObserver._stub=ri)}(t)}(self),function(t){t.AbortController||(Object.defineProperty(t,"AbortController",{configurable:!0,enumerable:!1,writable:!0,value:i}),Object.defineProperty(t,"AbortSignal",{configurable:!0,enumerable:!1,writable:!0,value:s}))}(self));var hi="cls",oi="clstu",ui="cls-1",li="pc",ci="inp",ai="building",di="mounting",fi="loading",pi="complete",mi="error";function _i(t){return t.readyState!=fi&&"uninitialized"!=t.readyState}function Ai(t){return t.readyState==pi}function Pi(t,i){gi(t,_i,i)}function gi(t,i,s){let e=i(t);if(e)s(t);else{const n=()=>{i(t)&&(e||(e=!0,s(t)),t.removeEventListener("readystatechange",n))};t.addEventListener("readystatechange",n)}}function vi(t){return new Promise((i=>{Pi(t,i)}))}function Ei(t){return new Promise((i=>{gi(t,Ai,i)}))}var Ti=["amp-mustache"],Ii=/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org(\/.*)?$/;function Mi(t){if(!t)return null;const i=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),s=i?i[2]:void 0,e=i?i[3]:void 0;return s&&e?{extensionId:s,extensionVersion:e}:null}function Ri(t,i,s){const e=t.document.createElement("script");e.async=!0,bi(i)?s="":e.setAttribute(Ti.indexOf(i)>=0?"custom-template":"custom-element",i),e.setAttribute("data-script",i),e.setAttribute("i-amphtml-inserted",""),e.setAttribute("type","module"),Qt(t.document,e),e.setAttribute("crossorigin","anonymous");const n=function(t,i,s,e){return`${et}/rtv/${at().rtvVersion}/v0/${i}${s?"-"+s:""}.mjs`}(t.location,i,s);let r={createScriptURL:function(t){return Ii.test(t)||"fonts.googleapis.com"===new URL(t).host?t:""}};return self.trustedTypes&&self.trustedTypes.createPolicy&&(r=self.trustedTypes.createPolicy("extension-script#createExtensionScript",r)),e.src=r.createScriptURL(n),e}function yi(t,i,s,e,n=!0){const r=":not([i-amphtml-loaded-new-version])"+(n?"":":not([i-amphtml-inserted])"),h=t.document.head.querySelectorAll(`script[src*="/${i}-"]${r}`),o=[];for(let t=0;t<h.length;t++){const n=h[t],r=Mi(n.src);if(!r)continue;const{extensionId:u,extensionVersion:l}=r;u==i&&(bi(i)||l==s||"latest"==l&&e)&&o.push(n)}return o}function bi(t){return t.startsWith("_")}function wi(t,i,s,e){Fi(t=Ni(t),t,i,s),e&&$i(t,i)}function Vi(t,i,s,e){const n=Li(t),r=Ui(n);Fi(r,n,i,s),e&&$i(r,i)}function Si(t,i){return $i(t=Ni(t),i)}function xi(t,i){return $i(Ui(Li(t)),i)}function Oi(t,i){const s=Ui(Li(t));return qi(s,i)?$i(s,i):null}function Ci(t,i){return Bi(Ui(t),i)}function ki(t,i){return Hi(Ui(t),i)}function Ni(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function Di(t,i){const s=(t.ownerDocument||t).defaultView,e=i||Ni(s);if(s&&s!=e&&Ni(s)==e)try{return s.frameElement}catch(t){}return null}function Li(t){return t.nodeType?function(t){return Si(t,"ampdoc")}(wt(t)).getAmpDoc(t):t}function Ui(t){const i=Li(t);return i.isSingleDoc()?i.win:i}function $i(t,i){yt(qi(t,i));const s=ji(t)[i];return s.obj||(yt(s.ctor),yt(s.context),s.obj=new s.ctor(s.context),yt(s.obj),s.context=null,s.resolve&&s.resolve(s.obj)),s.obj}function Fi(t,i,s,e,n,r){const h=ji(t);let o=h[s];o||(o=h[s]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:r||!1}),!n&&o.ctor||(o.ctor=e,o.context=i,o.sharedInstance=r||!1,o.resolve&&$i(t,s))}function Bi(t,i){const s=Hi(t,i);if(s)return s;const e=ji(t);return e[i]=function(){const t=new n,{promise:i,reject:s,resolve:e}=t;return i.catch((()=>{})),{obj:null,promise:i,resolve:e,reject:s,context:null,ctor:null}}(),e[i].promise}function Hi(t,i){const s=ji(t)[i];return s?s.promise?s.promise:($i(t,i),s.promise=Promise.resolve(s.obj)):null}function ji(t){let i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}function zi(t){return"function"==typeof t.dispose}function Gi(t,i){if(zi(i))try{(function(t){return yt(zi(t)),t})(i).dispose()}catch(i){Rt().error("SERVICE","failed to dispose service",t,i)}}function qi(t,i){const s=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!s||!s.ctor)}function Wi(t,i,s,e){return Ki(t,i,s,e).then((t=>function(t,i,s){return bt(t,"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.",i,s,s,s)}(t,i,s)))}function Ki(t,i,s,e){const n=ki(t,i);if(n)return n;const r=Li(t);return r.whenExtensionsKnown().then((()=>{const t=r.getExtensionVersion(s);return t?Si(r.win,"extensions").waitForExtension(s,t):null})).then((s=>s?e?ki(t,i):Ci(t,i):null))}var Yi,Qi=t=>Ki(t,"access","amp-access"),Ji=t=>Ki(t,"subscriptions","amp-subscriptions"),Xi=t=>Oi(t,"action"),Zi=t=>Wi(t,"activity","amp-analytics"),ts=t=>Li(t),is=t=>Si(t,"ampdoc"),ss=t=>function(t,i,s){const e=Oi(t,i);return e?Promise.resolve(e):Ki(t,i,"amp-bind")}(t,"bind"),es=t=>Ci(t,"cid"),ns=t=>Si(t,"crypto"),rs=t=>xi(t,"documentInfo").get(),hs=t=>Si(t,"extensions"),os=t=>xi(t,"history"),us=t=>xi(t,"mutator"),ls=t=>Si(t,"performance"),cs=t=>Si(t,"platform"),as=t=>Si(t,"preconnect"),ds=t=>xi(t,"resources"),fs=t=>Ci(t,"storage"),ps=t=>function(t,i){return $i(t,"timer")}(t),ms=t=>Oi(t,"url-replace"),_s=t=>Ki(t,"geo","amp-geo",!0),As=t=>Oi(t,"url"),Ps=t=>xi(t,"viewer"),gs=t=>Si(t,"vsync"),vs=t=>xi(t,"viewport"),Es=t=>Si(t,"xhr"),Ts={PRERENDER:"prerender",PREVIEW:"preview",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"},Is=class{constructor(){this.ut=null}add(t){return this.ut||(this.ut=[]),this.ut.push(t),()=>{this.remove(t)}}remove(t){this.ut&&M(this.ut,t)}removeAll(){this.ut&&(this.ut.length=0)}fire(t){if(this.ut)for(const i of this.ut.slice())i(t)}getHandlerCount(){var t,i;return null!==(t=null===(i=this.ut)||void 0===i?void 0:i.length)&&void 0!==t?t:0}},Ms=class{constructor(){this.ti=p(),this.ii=null}get(t){const i=this.ti[t];return null==i?null:i}whenSignal(t){var i;let s=null===(i=this.ii)||void 0===i?void 0:i[t];if(!s){const i=this.ti[t];s=null!=i?{promise:"number"==typeof i?Promise.resolve(i):Promise.reject(i)}:new n,this.ii||(this.ii=p()),this.ii[t]=s}return s.promise}signal(t,i){var s;if(null!=this.ti[t])return;const e=null!=i?i:Date.now();this.ti[t]=e;const n=null===(s=this.ii)||void 0===s?void 0:s[t];null!=n&&n.resolve&&(n.resolve(e),n.resolve=void 0,n.reject=void 0)}rejectSignal(t,i){var s;if(null!=this.ti[t])return;this.ti[t]=i;const e=null===(s=this.ii)||void 0===s?void 0:s[t];null!=e&&e.reject&&(e.reject(i),e.promise.catch((()=>{})),e.resolve=void 0,e.reject=void 0)}reset(t){var i;this.ti[t]&&delete this.ti[t];const s=null===(i=this.ii)||void 0===i?void 0:i[t];s&&!s.resolve&&delete this.ii[t]}},Rs=["Webkit","webkit","Moz","moz","ms","O","o"],ys={"getPropertyPriority":()=>"","getPropertyValue":()=>""};function bs(t){const i=t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()));return Rs.some((t=>i.startsWith(t+"-")))?`-${i}`:i}function ws(t,i,s){if(i.startsWith("--"))return i;Yi||(Yi=p());let e=Yi[i];if(!e||s){if(e=i,void 0===t[i]){const s=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),n=function(t,i){for(let s=0;s<Rs.length;s++){const e=Rs[s]+i;if(void 0!==t[e])return e}return""}(t,s);void 0!==t[n]&&(e=n)}s||(Yi[i]=e)}return e}function Vs(t,i){const{style:s}=t;for(const t in i)s.setProperty(bs(ws(s,t)),String(i[t]),"important")}function Ss(t,i,s,e,n){const r=ws(t.style,i,n);if(!r)return;const h=e?s+e:s;t.style.setProperty(bs(r),h)}function xs(t,i){for(const s in i)Ss(t,s,i[s])}function Os(t,i){void 0===i&&(i=t.hasAttribute("hidden")),i?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function Cs(t){return`${t}px`}function ks(t,i){return t.getComputedStyle(i)||ys}function Ns(t){const i=t[ws(t,"visibilityState",!0)];if(i)return i;const s=ws(t,"hidden",!0);return s in t&&t[s]?Ts.HIDDEN:Ts.VISIBLE}function Ds(t,i){if(!t.addEventListener)return;const s=Us(t);s&&t.addEventListener(s,i)}function Ls(t,i){if(!t.removeEventListener)return;const s=Us(t);s&&t.removeEventListener(s,i)}function Us(t){const i=ws(t,"hidden",!0),s=i.indexOf("Hidden");return-1!=s?i.substring(0,s)+"Visibilitychange":"visibilitychange"}var $s=class{static getTop(t){return t.top}static getLocation(t){return t.location}static getDocumentReferrer(t){return t.document.referrer}static getHostname(t){return t.location.hostname}static getUserAgent(t){return t.navigator.userAgent}static getUserLanguage(t){return t.navigator.userLanguage||t.navigator.language}static getDevicePixelRatio(){return self.devicePixelRatio||1}static getSendBeacon(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)}static getXMLHttpRequest(t){return t.XMLHttpRequest}static getImage(t){return t.Image}},Fs="__AMP__",Bs="-ampdoc-ext-known",Hs="-ampdoc-first-visible",js="-ampdoc-next-visible",zs="-ampdoc-first-previewed",Gs=class{constructor(t,i,s){this.win=t,this.si=p(),this.ei=i,this.ni=s&&s.signals||new Ms,this.ri=s&&s.params||p(),this.hi=null,this.oi={};const e=this.ri.visibilityState;var n;yt(!e||"prerender"===(n=e)||"preview"===n||"visible"===n||"hidden"===n||"paused"===n||"inactive"===n),this.ui=s&&s.visibilityState||e||null,this.D=null,this.li=new Is,this.ci=null,this.ai=[];const r=this.di.bind(this);this.ei&&this.ai.push(this.ei.onVisibilityChanged(r)),Ds(this.win.document,r),this.ai.push((()=>Ls(this.win.document,r))),this.di()}dispose(){(function(t){const i=ji(t);for(const t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;const s=i[t];s.sharedInstance||(s.obj?Gi(t,s.obj):s.promise&&s.promise.then((i=>Gi(t,i))))}})(this),this.ai.forEach((t=>t()))}isSingleDoc(){return yt(null)}getParent(){return this.ei}signals(){return this.ni}getParam(t){const i=this.ri[t];return null==i?null:i}getMeta(){return this.hi||(this.hi=p(),this.win.document.head.querySelectorAll("meta[name]").forEach((t=>{const i=t.getAttribute("name"),s=t.getAttribute("content");i&&null!==s&&void 0===this.hi[i]&&(this.hi[i]=s)}))),p(this.hi)}getMetaByName(t){if(!t)return null;const i=this.getMeta()[t];return void 0!==i?i:null}setMetaByName(t,i){yt(null)}declaresExtension(t,i){const s=this.oi[t];return!(!s||i&&s!==i)}declareExtension(t,i){yt(!this.oi[t]||this.oi[t]===i),this.oi[t]=i}getExtensionVersion(t){return this.oi[t]||null}setExtensionsKnown(){this.ni.signal(Bs)}whenExtensionsKnown(){return this.ni.whenSignal(Bs)}getRootNode(){return yt(null)}getHeadNode(){}isBodyAvailable(){return yt(!1)}getBody(){return yt(null)}waitForBodyOpen(){return yt(null)}isReady(){return yt(null)}whenReady(){return yt(null)}getUrl(){return yt(null)}getElementById(t){return this.getRootNode().getElementById(t)}contains(t){return this.getRootNode().contains(t)}overrideVisibilityState(t){this.ui!=t&&(this.ui=t,this.di())}di(){const t=Ns(this.win.document);let i,s=Ts.VISIBLE;for(let t=this.ei;t;t=t.getParent())if(t.getVisibilityState()!=Ts.VISIBLE){s=t.getVisibilityState();break}const e=this.ui||Ts.VISIBLE;if(i=e==Ts.VISIBLE&&s==Ts.VISIBLE&&t==Ts.VISIBLE?Ts.VISIBLE:t==Ts.HIDDEN&&e==Ts.PAUSED?t:e==Ts.PAUSED||e==Ts.INACTIVE?e:s==Ts.PAUSED||s==Ts.INACTIVE?s:e==Ts.PREVIEW||t==Ts.PREVIEW||s==Ts.PREVIEW?Ts.PREVIEW:e==Ts.PRERENDER||t==Ts.PRERENDER||s==Ts.PRERENDER?Ts.PRERENDER:Ts.HIDDEN,this.D!=i){if(i==Ts.VISIBLE){var n;const{performance:t}=this.win;let i=Math.floor(null!==(n=t.timeOrigin)&&void 0!==n?n:t.timing.navigationStart);null!=this.D&&(i+=Math.floor(t.now())),this.ci=i,this.ni.signal(Hs,i),this.ni.signal(js,i)}else this.ni.reset(js);i==Ts.PREVIEW&&this.ni.signal(zs),this.D=i,this.li.fire()}}whenFirstPreviewedOrVisible(){return Promise.race([this.whenFirstPreviewed(),this.whenFirstVisible()])}whenFirstPreviewed(){return this.ni.whenSignal(zs).then((()=>{}))}whenFirstVisible(){return this.ni.whenSignal(Hs).then((()=>{}))}whenNextVisible(){return this.ni.whenSignal(js).then((()=>{}))}getFirstVisibleTime(){return this.ni.get(Hs)}getLastVisibleTime(){return this.ci}getVisibilityState(){return yt(this.D)}isPreview(){return this.D==Ts.PREVIEW}isVisible(){return this.D==Ts.VISIBLE}hasBeenVisible(){return null!=this.getLastVisibleTime()}onVisibilityChanged(t){return this.li.add(t)}registerSingleton(t){return!this.si[t]&&(this.si[t]=!0,!0)}},qs=class extends Gs{constructor(t,i){super(t,null,i),this.fi=this.win.document.body?Promise.resolve(this.win.document.body):Ft(this.win.document).then((()=>this.getBody())),this.pi=vi(this.win.document)}isSingleDoc(){return!0}getRootNode(){return this.win.document}getUrl(){return $s.getLocation(this.win).href}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.fi}isReady(){return _i(this.win.document)}whenReady(){return this.pi}},Ws=class extends Gs{constructor(t,i,s,e){super(t,null,e),this.mi=i,this._i=s,this.Ai=null;const r=new n;this.fi=r.promise,this.gi=r.resolve,this.Pi=!1;const h=new n;this.pi=h.promise,this.vi=h.resolve}isSingleDoc(){return!1}getRootNode(){return this._i}getUrl(){return this.mi}getHeadNode(){return this._i}isBodyAvailable(){return!!this.Ai}getBody(){return this.Ai}setBody(t){yt(!this.Ai),this.Ai=t,this.gi(t),this.gi=void 0}waitForBodyOpen(){return this.fi}isReady(){return this.Pi}setReady(){yt(!this.Pi),this.Pi=!0,this.vi(),this.vi=void 0}whenReady(){return this.pi}getMeta(){return p(this.hi)}setMetaByName(t,i){yt(t),this.hi||(this.hi=p()),this.hi[t]=i}},Ks=class extends Gs{constructor(t,i,s,e){super(t,s,e),this.mi=i,this.fi=this.win.document.body?Promise.resolve(this.win.document.body):Ft(this.win.document).then((()=>this.getBody())),this.Pi=!1;const r=new n;this.pi=r.promise,this.vi=r.resolve}isSingleDoc(){return!1}getRootNode(){return this.win.document}getUrl(){return this.mi}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.fi}isReady(){return this.Pi}whenReady(){return this.pi}setReady(){yt(!this.Pi),this.Pi=!0,this.vi(),this.vi=void 0}};function Ys(t,i){const s=p();return i?Object.assign(s,i):(t.name&&0==t.name.indexOf(Fs)&&Object.assign(s,Y(t.name.substring(Fs.length))),t.location&&t.location.hash&&Object.assign(s,Y(t.location.hash))),s}var Qs="nodisplay",Js="fixed",Xs="fixed-height",Zs="responsive",te="container",ie="fill",se="flex-item",ee="fluid",ne="intrinsic",re=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function he(t){if("nodisplay"===(i=t)||"fixed"===i||"fixed-height"===i||"responsive"===i||"container"===i||"fill"===i||"flex-item"===i||"fluid"===i||"intrinsic"===i)return t;var i}function oe(t){return"i-amphtml-layout-"+t}function ue(t){return t==Js||t==Xs||t==Zs||t==ie||t==se||t==ee||t==ne}function le(t){return"number"==typeof t?t+"px":t&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(t)?/^\d+(\.\d+)?$/.test(t)?t+"px":t:void 0}function ce(t){!function(t){F(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(null!=t?t:""),"Invalid length value: %s",t)}(t);const i=/[a-z]+/i.exec(null!=t?t:"");return F(i,"Failed to read units from %s",t),i[0]}function ae(t){const i=parseFloat(t);return w(i)?i:void 0}function de(t,i){t.classList.add("i-amphtml-fill-content"),i&&t.classList.add("i-amphtml-replaced-content")}function fe(t,i,s,e){const n=E(t);for(const t of n){const n=i.getAttribute(t);null!==n?s.setAttribute(t,n):e&&s.removeAttribute(t)}}var pe,me="amp:attached",_e="amp:load-start",Ae="amp:load-end",Pe="ready-upgrade",ge="upgraded",ve="built",Ee="mounted",Te="load-start",Ie="render-start",Me="load-end",Re="unload";function ye(t,i){return[{query:t.matchMedia(i),value:"1"},{query:null,value:""}]}function be(t,i){return i.split(",").map((i=>{if(0==(i=i.replace(/\s+/g," ").trim()).length)return;let s,e,n;if(")"==i.charAt(i.length-1)){let t=1;for(n=i.length-2;n>=0;n--){const s=i.charAt(n);if("("==s?t--:")"==s&&t++,0==t)break}const s=n-1;if(n>0)for(n--;n>=0;n--){const t=i.charAt(n);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(n>=s)return null}else for(n=i.length-2;n>=0;n--){const t=i.charAt(n);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return n>=0?(s=i.substring(0,n+1).trim(),e=i.substring(n+1).trim()):(e=i,s=void 0),e?{query:s?t.matchMedia(s):null,value:e}:null})).filter(Boolean)}function we(t,i,s){for(let e=0;e<t.length;e++){const{query:n}=t[e];n&&(void 0!==n.onchange?n.onchange=s?i:null:s?n.addListener(i):n.removeListener(i))}}function Ve(t){const i=t.ownerDocument||t;return pe&&pe.ownerDocument===i||(pe=i.createElement("div")),Se}function Se(t){return function(t,i){if(D(1===i.length),D(Array.isArray(i)||m(i,"raw")),self.trustedTypes&&self.trustedTypes.createPolicy){const s=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return i[0]}});t.innerHTML=s.createHTML("ignored")}else t.innerHTML=i[0];const s=t.firstElementChild;return D(s),D(!s.nextElementSibling),t.removeChild(s),s}(pe,t)}var xe=['<i-amphtml-sizer class=i-amphtml-sizer slot=i-amphtml-svc><img alt="" role=presentation aria-hidden=true class=i-amphtml-intrinsic-sizer></i-amphtml-sizer>'],Oe={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function Ce(t){const i=t.getAttribute("layout"),s=t.getAttribute("width"),e=t.getAttribute("height"),n=t.getAttribute("sizes"),r=t.getAttribute("heights"),h=i?he(i):null;F(void 0!==h,'Invalid "layout" value: %s, %s',i,t);const o=s&&"auto"!=s?le(s):s;F(void 0!==o,'Invalid "width" value: %s, %s',s,t);const u=e&&"fluid"!=e?le(e):e;let l,c,a;if(F(void 0!==u,'Invalid "height" value: %s, %s',e,t),h&&h!=Js&&h!=Xs||o&&u||(d=(d=t.tagName).toUpperCase(),void 0===Oe[d]))l=o,c=u;else{const i=function(t){const i=t.tagName.toUpperCase();if(D(void 0!==Oe[i]),!Oe[i]){const s=t.ownerDocument,e=i.replace(/^AMP\-/,""),n=s.createElement(e);n.controls=!0,xs(n,{position:"absolute",visibility:"hidden"}),s.body.appendChild(n),Oe[i]={width:(n.offsetWidth||1)+"px",height:(n.offsetHeight||1)+"px"},s.body.removeChild(n)}return Oe[i]}(t);l=o||h==Xs?o:i.width,c=u||i.height}var d;return a=h||(l||c?"fluid"==c?ee:!c||l&&"auto"!=l?c&&l&&(n||r)?Zs:Js:Xs:te),a!=Js&&a!=Xs&&a!=Zs&&a!=ne||F(c,'The "height" attribute is missing: %s',t),a==Xs&&F(!l||"auto"==l,'The "width" attribute must be missing or "auto": %s',t),a!=Js&&a!=Zs&&a!=ne||F(l&&"auto"!=l,'The "width" attribute must be present and not "auto": %s',t),a==Zs||a==ne?F(ce(l)==ce(c),'Length units should be the same for "width" and "height": %s, %s, %s',s,e,t):F(null===r,'"heights" attribute must be missing: %s',t),{layout:a,width:l,height:c}}var ke,Ne="amp-experiment-toggles",De="__AMP__EXPERIMENT_TOGGLES";function Le(t,i){return!!$e(t)[i]}function Ue(t,i,s,e){const n=Le(t,i),r=null!=s?s:!n;if(r!=n&&($e(t)[i]=r,!e)){const s=Fe(t);s[i]=r,function(t,i){const s=[];for(const t in i)s.push((!1===i[t]?"-":"")+t);try{var e;null===(e=t.localStorage)||void 0===e||e.setItem(Ne,s.join(","))}catch(t){It().error("EXPERIMENTS","Failed to save experiments to localStorage.")}}(t,s)}return r}function $e(t){var i,s,e,n,r;if(t[De])return t[De];t[De]=p();const h=t[De];D(h);const o=g(g({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(s=t.AMP_EXP)&&void 0!==s?s:B((null===(e=t.__AMP_EXP)||void 0===e?void 0:e.textContent)||"{}"));for(const t in o){const i=o[t];"number"==typeof i&&i>=0&&i<=1&&(h[t]=Math.random()<i)}const u=null===(n=t.AMP_CONFIG)||void 0===n?void 0:n["allow-doc-opt-in"];if(v(u)&&u.length){const i=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(i){var l;const t=(null===(l=i.getAttribute("content"))||void 0===l?void 0:l.split(","))||[];for(const i of t)u.includes(i)&&(h[i]=!0)}}Object.assign(h,Fe(t));const c=null===(r=t.AMP_CONFIG)||void 0===r?void 0:r["allow-url-opt-in"];if(v(c)&&c.length){const i=Y(t.location.originalHash||t.location.hash);for(const t of c){const s=i[`e-${t}`];"1"==s&&(h[t]=!0),"0"==s&&(h[t]=!1)}}return h}function Fe(t){var i;let s="";try{var e;"localStorage"in t&&(s=null!==(e=t.localStorage.getItem(Ne))&&void 0!==e?e:"")}catch(t){}const n=(null===(i=s)||void 0===i?void 0:i.split(/\s*,\s*/g))||[],r=p();for(const t of n)t&&("-"==t[0]?r[t.substr(1)]=!1:r[t]=!0);return r}function Be(t,i,s,e){let n=t,r=s,h=t=>{try{return r(t)}catch(t){var i,s;throw null===(i=(s=self).__AMP_REPORT_ERROR)||void 0===i||i.call(s,t),t}};const o=function(){if(void 0!==ke)return ke;ke=!1;try{const t={get capture(){return ke=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return ke}(),u=!(null==e||!e.capture);return n.addEventListener(i,h,o?e:u),()=>{null==n||n.removeEventListener(i,h,o?e:u),r=null,n=null,h=null}}var He="Failed to load:";function je(t,i,s,e){const n={detail:s};return Object.assign(n,e),new t.CustomEvent(i,n)}function ze(t,i,s,e){return Be(t,i,s,e)}function Ge(t){return t.data}function qe(t,i,s,e){let n=s;const r=Be(t,i,(t=>{try{n(t)}finally{n=null,r()}}),e);return r}function We(t){let i,s;if(function(t){return!!(t.complete||"complete"==t.readyState||Ke(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);const e=Ke(t);return e&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise(((n,r)=>{if(i=e?qe(t,"loadedmetadata",n,{capture:!0}):qe(t,"load",n),!t.tagName)return;let h=t;if(e&&!t.hasAttribute("src")&&(h=kt(t,(t=>"SOURCE"===t.tagName)),!h))return r(new Error("Media has no source."));s=qe(h,"error",r)})).then((()=>(s&&s(),t)),(()=>{i&&i(),function(t){Ke(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);let i=t;throw i&&i.src&&(i=i.src),It().createError(He,i)}(t)}))}function Ke(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var Ye={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]","variant":"amp-experiment"};function Qe(t){const i=t.document;return yt(i.body),Object.keys(Ye).filter((t=>i.querySelector(Ye[t])))}function Je(t,i,s){if(i[s])return i[s];const e=t.querySelector(`style[${s}], link[${s}]`);return e?(i[s]=e,e):null}var Xe=!1;function Ze(t){yt(t.defaultView),Xe||(Xe=!0,tn(t))}function tn(t){xs(t.body,{opacity:1,visibility:"visible","animation":"none"})}function sn(t,i){const s=t.styleSheets;for(let t=0;t<s.length;t++)if(s[t].ownerNode==i)return!0;return!1}var en,nn=new Set(["c","v","a","ad"]),rn="__amp_source_origin",hn=t=>"string"==typeof t?on(t):t;function on(t,i){return en||(en=self.document.createElement("a")),un(en,t)}function un(t,i,s){return t.href="",new URL(i,t.href)}function ln(t,i,s){if(!i)return t;const e=t.split("#",2),n=e[0].split("?",2);let r=n[0]+(n[1]?s?`?${i}&${n[1]}`:`?${n[1]}&${i}`:`?${i}`);return r+=e[1]?`#${e[1]}`:"",r}function cn(t,i){return`${encodeURIComponent(t)}=${encodeURIComponent(i)}`}function an(t,i){return ln(t,dn(i))}function dn(t){const i=[];for(const s in t){let e=t[s];if(null!=e){e=E(e);for(let t=0;t<e.length;t++)i.push(cn(s,e[t]))}}return i.join("&")}function fn(t){return"https:"==(t=hn(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||R(t.hostname,".localhost")}function pn(t,i,s="source"){return bt(null!=t,"%s %s must be available",i,s),bt(fn(t)||/^\/\//.test(t),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',i,s,t),t}function mn(t){const i=t.indexOf("#");return-1==i?t:t.substring(0,i)}function _n(t){return X.test(hn(t).origin)}function An(t){return!(t&&q.includes(hn(t).protocol))}function Pn(t){const{hash:i,origin:s,pathname:e,search:n}=on(t);return s+e+gn(n)+i}function gn(t){return function(t,i){if(!t||"?"==t)return"";const s=new RegExp("[?&](amp_(js[^&=]*|gsa|r|kit)|usqp)\\b[^&]*","g"),e=t.replace(s,"").replace(/^[?&]/,"");return e?"?"+e:""}(t)}function vn(t){if(!_n(t=hn(t)))return t.href;const i=t.pathname.split("/"),s=i[1];bt(nn.has(s),"Unknown path prefix in url %s",t.href);const e=i[2],n="s"==e?"https://"+decodeURIComponent(i[3]):"http://"+decodeURIComponent(e);return bt(n.indexOf(".")>0,"Expected a . in origin %s",n),i.splice(1,"s"==e?3:2),n+i.join("/")+gn(t.search)+(t.hash||"")}function En(t){return on(vn(t)).origin}function Tn(t,i){return i=hn(i),new URL(t,i.href).toString()}function In(t,i){return Mn(i),function(t,i,s,e){return ln(t,cn("__amp_source_origin",s),void 0)}(i,0,En(t.location.href))}function Mn(t){const i=Y(on(t).search);bt(!(rn in i),"Source origin is not allowed in %s",t)}var Rn="CANCELLED",yn="BLOCK_BY_CONSENT",bn=self.__AMP_ERRORS||[];self.__AMP_ERRORS=bn;var wn=function(t){return(wn=function(t){const i=function(t){let i=0;return()=>{let t=Math.pow(1.5,i++);return t+=function(t,i){let s=t*(i=i||.3)*Math.random();return Math.random()>.5&&(s*=-1),s}(t),1e3*t}}();return t=>setTimeout(t,i())}())(t)};function Vn(t,i){try{let s;if(t)if(void 0!==t.message)t=h(t),s=!0;else{const i=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(i){return String(t)}}(i))).origError=i}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){const i=I(t.messageArray,(t=>null==t?void 0:t.tagName));i>-1&&(t.associatedElement=t.messageArray[i])}const e=i||t.associatedElement;if(e&&e.classList&&e.classList.add("i-amphtml-error"),self.console&&(O(t.message)||!t.expected)){const i=console.error||console.log;t.messageArray?i.apply(console,t.messageArray):e?i.call(console,t.message,e):i.call(console,t.message)}e&&e.dispatchCustomEventForTesting&&e.dispatchCustomEventForTesting("amp:error",t.message),On.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Sn(){return new Error(Rn)}function xn(t){return!!t&&("string"==typeof t?t.startsWith(yn):"string"==typeof t.message&&t.message.startsWith(yn))}function On(t,i,s,n,r){!this||!this.document||r&&r.expected||Ze(this.document);let h=!1;try{h=function(t){if(!t.document)return!1;const i=t.document.querySelectorAll("script[src]");for(let t=0;t<i.length;t++)if(!_n(i[t].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(h&&Math.random()<.99)return;const o=function(t,i,s,e,n,r){t=function(t,i){return i&&(t=i.message?i.message:String(i)),t||(t="Unknown error"),t}(t,n);let h=!(!n||!n.expected);if(/_reported_/.test(t))return;if(t==Rn)return;const o=!(self&&self.window),u=Math.random();if((function(t){return-1!=t.indexOf(He)}(t)||"Script error."==t||o)&&(h=!0,u<.9999))return;const l=O(t);if(l&&u<.99)return;const c=Object.create(null);c.v=at().rtvVersion,c.noAmp=r?"1":"0",c.m=t.replace(V,""),c.a=l?"1":"0",c.ex=h?"1":"0",c.dw=o?"1":"0";let a="1p";if(a="esm",c.esm="1",c.rt="esm",c.cdn=et,c.ca=null!==(f=self.AMP_CONFIG)&&void 0!==f&&f.canary?"1":"0",c.bt=(null===(d=self.AMP_CONFIG)||void 0===d?void 0:d.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(c.or=self.location.ancestorOrigins[0]),self.viewerState&&(c.vs=self.viewerState),self.parent&&self.parent!=self&&(c.iem="1"),self.AMP&&self.AMP.viewer){const t=self.AMP.viewer.getResolvedViewerUrl(),i=self.AMP.viewer.maybeGetMessagingOrigin();t&&(c.rvu=t),i&&(c.mso=i)}var d,f;const p=[],m=self[De]||null;for(const t in m){const i=m[t];p.push(`${t}=${i?"1":"0"}`)}var _,A,P;return c.exps=p.join(","),n?(c.el=(null===(_=n.associatedElement)||void 0===_?void 0:_.tagName)||"u",n.args&&(c.args=JSON.stringify(n.args)),l||n.ignoreStack||!n.stack||(c.s=n.stack),n.message&&(n.message+=" _reported_")):(c.f=i||"",c.l=s||"",c.c=e||""),c.r=self.document?self.document.referrer:"",c.ae=bn.join(","),c.fr=self.location.originalHash||self.location.hash,"production"===c.bt&&(c.pt="1"),P=t,(A=bn).length>=25&&A.splice(0,A.length-25+1),A.push(P),c}(t,i,s,n,r,h);o&&wn((()=>{try{return function(t,i){return i.pt&&Math.random()<.9?e():function(t,i){const s=is(t);if(!s.isSingleDoc())return Promise.resolve(!1);const e=s.getSingleDoc();if(!e.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);const n=Ps(e);return n.hasCapability("errorReporter")?n.isTrustedViewer().then((t=>{return!!t&&(n.sendMessage("error",{"m":(s=i).m,"a":s.a,"s":s.s,"el":s.el,"ex":s.ex,"v":s.v,"pt":s.pt}),!0);var s})):Promise.resolve(!1)}(t,i).then((t=>{if(!t){const t=new XMLHttpRequest;t.open("POST",Math.random()<.1?ht:rt,!0),t.send(JSON.stringify(i))}}))}(this,o).catch((()=>{}))}catch(t){}}))}var Cn="Resource",kn=class t{static forElement(i){return yt(t.forElementOptional(i))}static forElementOptional(t){return t.__AMP__RESOURCE}static setOwner(i,s){yt(s.contains(i)),t.forElementOptional(i)&&t.forElementOptional(i).updateOwner(s),i.__AMP__OWNER=s;const e=i.getElementsByClassName("i-amphtml-element");for(let i=0;i<e.length;i++){const s=e[i];t.forElementOptional(s)&&t.forElementOptional(s).updateOwner(void 0)}}constructor(t,i,s){i.__AMP__RESOURCE=this,this.Ei=t,this.element=i,this.debugid=i.tagName.toLowerCase()+"#"+t,this.hostWin=i.ownerDocument.defaultView,this.Ti=s,this.Ri=i.hasAttribute("placeholder"),this.Ii=!1,this.Mi=void 0,this.yi=i.isBuilt()?1:0,0==this.yi&&i.isBuilding()&&this.build(),this.wi=-1,this.bi=0,this.Vi=null,this.Si=null,this.xi=!1,this.Oi=Jt(-1e4,-1e4,0,0),this.Ci=null,this.ki=!1,this.Ni=null,this.Di=null,this.Li=void 0;const e=new n;this.Ui=e.promise,this.$i=e.resolve,this.Fi=!1}getId(){return this.Ei}updateOwner(t){this.Mi=t}getOwner(){if(void 0===this.Mi){for(let t=this.element;t;t=t.parentElement)if(t.__AMP__OWNER){this.Mi=t.__AMP__OWNER;break}void 0===this.Mi&&(this.Mi=null)}return this.Mi}hasOwner(){return!!this.getOwner()}getLayoutPriority(){return-1!=this.wi?this.wi:this.element.getLayoutPriority()}updateLayoutPriority(t){this.wi=t}getState(){return this.yi}isBuilt(){return this.element.isBuilt()}isBuilding(){return this.Ii}whenBuilt(){return this.element.signals().whenSignal("res-built")}build(){return this.Ii||!this.element.isUpgraded()?null:(this.Ii=!0,this.element.buildInternal().then((()=>{this.Ii=!1,this.yi=1,this.element.signals().signal("res-built")}),(t=>{throw this.maybeReportErrorOnBuildFailure(t),this.Ii=!1,this.element.signals().rejectSignal("res-built",t),t})))}maybeReportErrorOnBuildFailure(t){xn(t)||Rt().error(Cn,"failed to build:",this.debugid,t)}changeSize(t,i,s){this.element.applySize(t,i,s),this.requestMeasure()}overflowCallback(t,i,s,e){t&&(this.Li={height:i,width:s,margins:e}),this.element.overflowCallback(t,i,s,e)}resetPendingChangeSize(){this.Li=void 0}getPendingChangeSize(){return this.Li}getUpgradeDelayMs(){return this.element.getUpgradeDelayMs()}measure(){if(this.Ri&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-")&&!("__AMP__RESOURCE"in this.element.parentElement))return;if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return void(this.yi=1);this.ki=!1;const t=this.Oi;this.Bi();const i=this.Oi,s=(n=i,!((e=t).width==n.width&&e.height===n.height));var e,n;(1==this.yi||t.top!=i.top||s)&&this.element.isUpgraded()&&(1==this.yi?this.yi=2:4!=this.yi&&5!=this.yi||!this.element.isRelayoutNeeded()||(this.yi=2)),this.hasBeenMeasured()||(this.Ci=i),this.element.updateLayoutBox(i,s)}ensureMeasured(){return this.hasBeenMeasured()?e():gs(this.hostWin).measure((()=>this.measure()))}Bi(){const t=vs(this.element);this.Oi=t.getLayoutRect(this.element);let i=!1;if(t.supportsPositionFixed()&&this.isDisplayed()){const{win:s}=this.Ti.getAmpdoc(),{body:e}=s.document;for(let n=this.element;n&&n!=e;n=n.offsetParent){if(n.isAlwaysFixed&&n.isAlwaysFixed()){i=!0;break}if(t.isDeclaredFixed(n)&&"fixed"==ks(s,n).position){i=!0;break}}}this.xi=i,i&&(this.Oi=Zt(this.Oi,-t.getScrollLeft(),-t.getScrollTop()))}completeCollapse(){Os(this.element,!1),this.Oi=Jt(this.Oi.left,this.Oi.top,0,0),this.xi=!1,this.element.updateLayoutBox(this.getLayoutBox());const t=this.getOwner();t&&t.collapsedCallback(this.element)}completeExpand(){Os(this.element,!0),this.requestMeasure()}isMeasureRequested(){return this.ki}hasBeenMeasured(){return!!this.Ci}requestMeasure(){this.ki=!0}getLayoutSize(){return function(t){const{height:i,width:s}=t;return{width:s,height:i}}(this.Oi)}getLayoutBox(){if(!this.xi)return this.Oi;const t=vs(this.element);return Zt(this.Oi,t.getScrollLeft(),t.getScrollTop())}getInitialLayoutBox(){return this.Ci||this.Oi}isDisplayed(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;const t=this.element.getLayout()==ee,i=this.getLayoutBox(),s=i.height>0&&i.width>0;return t||s}isFixed(){return this.xi}overlaps(t){return s=t,(i=this.getLayoutBox()).top<=s.bottom&&s.top<=i.bottom&&i.left<=s.right&&s.left<=i.right;var i,s}prerenderAllowed(){return this.element.prerenderAllowed()}previewAllowed(){return this.element.previewAllowed()}isBuildRenderBlocking(){return this.element.isBuildRenderBlocking()}whenWithinViewport(t){if(yt(!1!==t),!this.isLayoutPending()||!0===t)return e();const i=t,s=String(i);return this.Ni&&this.Ni[s]?this.Ni[s].promise:this.isWithinViewportRatio(i)?e():(this.Ni=this.Ni||{},this.Ni[s]=new n,this.Ni[s].promise)}Hi(){if(!this.Ni)return;const t=this.getDistanceViewportRatio();for(const i in this.Ni)this.isWithinViewportRatio(parseFloat(i),t)&&(this.Ni[i].resolve(),delete this.Ni[i])}getDistanceViewportRatio(){const t=vs(this.element).getRect(),i=this.getLayoutBox(),s=this.Ti.getScrollDirection();let e=1,n=0;if(t.right<i.left||t.left>i.right)return{distance:!1};if(t.bottom<i.top)n=i.top-t.bottom,-1==s&&(e=2);else{if(!(t.top>i.bottom))return{distance:!0};n=t.top-i.bottom,1==s&&(e=2)}return{distance:n,scrollPenalty:e,viewportHeight:t.height}}isWithinViewportRatio(t,i){if("boolean"==typeof t)return t;const{distance:s,scrollPenalty:e,viewportHeight:n}=i||this.getDistanceViewportRatio();return"boolean"==typeof s?s:s<n*t/e}renderOutsideViewport(){return this.Hi(),this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())}idleRenderOutsideViewport(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())}layoutScheduled(t){this.yi=3,this.element.layoutScheduleTime=t}layoutCanceled(){this.yi=this.hasBeenMeasured()?2:1}startLayout(){if(this.Di)return this.Di;if(4==this.yi)return e();if(5==this.yi)return Promise.reject(this.Si);if(yt(0!=this.yi),yt(this.isDisplayed()),3!=this.yi){const t=Rt().createExpectedError("startLayout called but not LAYOUT_SCHEDULED","currently: ",this.yi);return Vn(t,this.element),Promise.reject(t)}if(this.bi>0&&!this.element.isRelayoutNeeded())return this.yi=4,e();this.bi++,this.yi=3,this.Vi=new AbortController;const{signal:t}=this.Vi,i=new Promise(((i,s)=>{gs(this.hostWin).mutate((()=>{let e;try{e=this.element.layoutCallback(t)}catch(t){s(t)}Promise.resolve(e).then(i,s)})),t.onabort=()=>s(Sn())})).then((()=>this.ji(!0,t)),(i=>this.ji(!1,t,i)));return this.Di=i}ji(t,i,s){if(this.Vi=null,i.aborted){const t=Rt().createError("layoutComplete race");throw t.associatedElement=this.element,Rt().expectedError(Cn,t),Sn()}if(this.$i&&(this.$i(),this.$i=null),this.Di=null,this.yi=t?4:5,this.Si=s,!t)return Promise.reject(s)}isLayoutPending(){return 4!=this.yi&&5!=this.yi}loadedOnce(){return this.element.R1()?this.element.whenLoaded():this.Ui}isInViewport(){return this.Fi&&this.Hi(),this.Fi}setInViewport(t){this.Fi=t}unlayout(){0!=this.yi&&1!=this.yi&&2!=this.yi&&(this.Vi&&(this.Vi.abort(),this.Vi=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.yi=1,this.bi=0,this.Di=null))}getTaskId(t){return this.debugid+"#"+t}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)}},Nn="ready-scan",Dn="scheduler",Ln="250% 31.25%";function Un(t){return Vi(t,Dn,class{constructor(t){this.zi=t;const{win:i}=t;this.Gi=new i.IntersectionObserver((t=>this.qi(t)),{root:qt(i)?i.document:null,rootMargin:Ln}),this.Wi=new Map,this.Ki=new Map,this.Yi=[],this.Ji=!1,t.whenReady().then((()=>this.Qi())),this.Xi=t.onVisibilityChanged((()=>this.Zi()))}dispose(){this.Gi.disconnect(),this.Ki.clear(),this.Xi&&(this.Xi(),this.Xi=null)}scheduleAsap(t){this.Ki.set(t,{asap:!0,isIntersecting:!1}),this.ts(t)}schedule(t){this.Ki.has(t)||(t.deferredMount()?(this.Ki.set(t,{asap:!1,isIntersecting:!1}),this.Gi.observe(t),this.Wi.size>0&&this.Wi.forEach(((i,s)=>{Kt(s,t)&&i.observe(t)}))):this.Ki.set(t,{asap:!1,isIntersecting:!0}),this.ts(t))}unschedule(t){this.Ki.has(t)&&(this.Ki.delete(t),this.Gi.unobserve(t),this.Wi.size>0&&this.Wi.forEach((i=>{i.unobserve(t)})),this.Yi&&(M(this.Yi,t),this.Qi()))}setContainer(t,i){if(this.Wi.has(t))return;const{win:s}=this.zi,e=new s.IntersectionObserver((t=>this.qi(t)),{root:i||t,rootMargin:Ln});this.Wi.set(t,e),this.Ki.forEach((({asap:i},s)=>{!i&&Kt(t,s)&&e.observe(s)}))}removeContainer(t){const i=this.Wi.get(t);i&&(i.disconnect(),this.Wi.delete(t))}ss(){if(this.zi.isReady()&&!this.Ji){this.Ji=!0;const{win:t}=this.zi;t.setTimeout((()=>{this.zi.signals().signal(Nn)}),50)}}Zi(){const t=this.zi.getVisibilityState();t!=Ts.VISIBLE&&t!=Ts.HIDDEN&&t!=Ts.PRERENDER&&t!=Ts.PREVIEW||this.Ki.forEach(((t,i)=>this.es(i)))}ts(t){const i=this.Yi;i?(i.includes(t)||i.push(t),this.Qi()):this.es(t)}Qi(){const t=this.zi.isReady(),i=this.Yi;if(i)for(let s=0;s<i.length;s++){const e=i[s];(t||zt(e,this.zi.getRootNode()))&&(i.splice(s--,1),this.es(e))}t&&(this.Yi=null,this.ss())}qi(t){for(let i=0;i<t.length;i++){const{isIntersecting:s,target:e}=t[i],n=e,r=this.Ki.get(n);if(!r)continue;const h=s||r.isIntersecting;h!==r.isIntersecting&&this.Ki.set(n,{asap:r.asap,isIntersecting:h}),h&&this.es(n)}}es(t){const i=this.Yi,s=!(i&&i.includes(t)),{asap:e,isIntersecting:n}=this.Ki.get(t)||{asap:!1,isIntersecting:!1},r=this.zi.getVisibilityState();if(!s||!e&&!n||!(r==Ts.VISIBLE||r==Ts.HIDDEN||r==Ts.PRERENDER&&t.prerenderAllowed()||r==Ts.PREVIEW&&t.previewAllowed()))return;this.unschedule(t);const{win:h}=this.zi;(e||t.getBuildPriority()<=0?h.setTimeout:h.requestIdleCallback||h.setTimeout)((()=>t.mountInternal()))}}),xi(t,Dn)}var $n=class{constructor(){this.ns=[]}peek(){const t=this.length;return t?this.ns[t-1].item:null}enqueue(t,i){if(isNaN(i))throw new Error("Priority must not be NaN.");const s=this.rs(i);this.ns.splice(s,0,{item:t,priority:i})}rs(t){let i=-1,s=0,e=this.length;for(;s<=e&&(i=Math.floor((s+e)/2),i!==this.length);)if(this.ns[i].priority<t)s=i+1;else{if(!(i>0&&this.ns[i-1].priority>=t))break;e=i-1}return i}forEach(t){let i=this.length;for(;i--;)t(this.ns[i].item)}dequeue(){const t=this.ns.pop();return t?t.item:null}get length(){return this.ns.length}},Fn=/nochunking=1/.test(self.location.hash),Bn=e();function Hn(t){return Vi(t,"chunk",Kn),xi(t,"chunk")}function jn(t,i,s){if(Fn)return void Bn.then(i);const e=Hn(t.documentElement||t);e.runForStartup(i),s&&e.runForStartup((()=>{e.hs=!0}))}function zn(t,i,s){Fn?Bn.then(i):Hn(t).run(i,s)}var Gn="not_run",qn=class{constructor(t){this.state=Gn,this.os=t}us(t){if("run"!=this.state){this.state="run";try{this.os(t)}catch(t){throw this.ls(t),t}}}cs(){return this.os.displayName||this.os.name}ls(t){}ds(){return!1}fs(){return!1}},Wn=class extends qn{constructor(t,i,s){super(t),this.ps=s}ls(t){Ze(self.document)}ds(){return this._s()}fs(){return this.ps.As}_s(){return this.ps.ampdoc.isVisible()}},Kn=class{constructor(t){var i;this.ampdoc=t,this.i=t.win,this.gs=new $n,this.Ps=this.vs.bind(this),this.Es=0,this.Ts=!(!this.i.navigator.scheduling||!this.i.navigator.scheduling.isInputPending),this.Rs=!1,this.hs=this.i.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.i.addEventListener("message",(t=>{"amp-macro-task"==Ge(t)&&this.vs(null)})),this.As=!1,(i=t,Ci(i,"viewer")).then((()=>{this.As=!0})),t.onVisibilityChanged((()=>{t.isVisible()&&this.Is()}))}run(t,i){const s=new qn(t);this.Ms(s,i)}runForStartup(t){const i=new Wn(t,this.i,this);this.Ms(i,Number.POSITIVE_INFINITY)}Ms(t,i){this.gs.enqueue(t,i),this.Is()}ys(t){let i=this.gs.peek();for(;i&&i.state!==Gn;)this.gs.dequeue(),i=this.gs.peek();return i&&t&&this.gs.dequeue(),i}vs(t){const i=this.ys(!0);if(!i)return this.Rs=!1,this.Es=0,!1;let s;try{s=Date.now(),i.us(t)}finally{Bn.then().then().then().then().then().then().then().then().then((()=>{this.Rs=!1,this.Es+=Date.now()-s,this.Is()}))}return!0}ws(t){if(this.hs&&(this.Ts?this.i.navigator.scheduling.isInputPending():this.Es>5))return this.Es=0,void this.bs();Bn.then((()=>{this.Ps(t)}))}Is(){if(this.Rs)return;const t=this.ys();return t?t.ds()?(this.Rs=!0,void this.ws(null)):void(t.fs()&&this.i.requestIdleCallback?function(t,i,s,e){const n=Date.now();t.requestIdleCallback((function i(s){if(s.timeRemaining()<15){const r=2e3-(Date.now()-n);r<=0||s.didTimeout?e(s):t.requestIdleCallback(i,{timeout:r})}else e(s)}),{timeout:2e3})}(this.i,0,0,this.Ps):this.bs()):void 0}bs(){this.i.postMessage("amp-macro-task","*")}},Yn="activate",Qn=class{static R1(){return!1}static deferredMount(t){return!0}static prerenderAllowed(t){return!1}static previewAllowed(t){return this.prerenderAllowed(t)}static usesLoading(t){return!1}static createLoaderLogoCallback(t){return{}}static getBuildPriority(t){return 0}static getPreconnects(t){return null}static requiresShadowDom(){return!1}constructor(t){this.element=t,this.win=wt(t),this.actionMap_=null,this.defaultActionAlias_=null}signals(){return this.element.signals()}getDefaultActionAlias(){return this.defaultActionAlias_}getLayoutPriority(){return 0}updateLayoutPriority(t){this.element.getResources().updateLayoutPriority(this.element,t)}getLayout(){return this.element.getLayout()}getLayoutBox(){return this.element.getLayoutBox()}getLayoutSize(){return this.element.getLayoutSize()}getAmpDoc(){return this.element.getAmpDoc()}getVsync(){return gs(this.win)}getConsentPolicy(){let t=null;return this.element.hasAttribute("data-block-on-consent")&&(t=this.element.getAttribute("data-block-on-consent")||"default"),t}isLayoutSupported(t){return t==Qs}isAlwaysFixed(){return!1}upgradeCallback(){return null}buildCallback(){}preconnectCallback(t){}attachedCallback(){}detachedCallback(){}setAsContainer(t){this.element.setAsContainerInternal(t)}removeAsContainer(){this.element.removeAsContainerInternal()}isBuildRenderBlocking(){return!1}createPlaceholderCallback(){return null}renderOutsideViewport(){return"inabox"==at(this.win).runtime||3}idleRenderOutsideViewport(){return!1}ensureLoaded(){}setReadyState(t,i){this.element.setReadyStateInternal(t,i)}mountCallback(t){}unmountCallback(){}isRelayoutNeeded(){return!1}layoutCallback(){return e()}firstLayoutCompleted(){this.togglePlaceholder(!1)}pauseCallback(){}resumeCallback(){}unlayoutCallback(){return!1}unlayoutOnPause(){return!1}reconstructWhenReparented(){return!0}loadPromise(t){return We(t)}registerAction(t,i,s=2){Jn(this),this.actionMap_[t]={handler:i,minTrust:s}}registerDefaultAction(t,i="activate",s=2){yt(!this.defaultActionAlias_),this.registerAction(i,t,s),this.defaultActionAlias_=i}executeAction(t,i){let{method:s}=t;s===Yn&&(s=this.defaultActionAlias_||s),Jn(this);const e=this.actionMap_[s],{tagName:n}=this.element;bt(e,`Method not found: ${s} in ${n}`);const{handler:r,minTrust:h}=e;if(t.satisfiesTrust(h))return r(t)}forwardEvents(t,i){const s=(v(t)?t:[t]).map((t=>ze(i,t,(i=>{Wt(this.element,t,Ge(i)||{})}))));return()=>s.forEach((t=>t()))}getPlaceholder(){return this.element.getPlaceholder()}togglePlaceholder(t){this.element.togglePlaceholder(t)}getFallback(){return this.element.getFallback()}toggleFallback(t){this.element.toggleFallback(t)}toggleLoading(t,i=!1){this.element.toggleLoading(t,i)}getOverflowElement(){return this.element.getOverflowElement()}renderStarted(){this.element.renderStarted()}getViewport(){return vs(this.getAmpDoc())}getIntersectionElementLayoutBox(){return this.getLayoutBox()}collapse(){us(this.getAmpDoc()).collapseElement(this.element)}attemptCollapse(){return us(this.getAmpDoc()).attemptCollapse(this.element)}forceChangeHeight(t){us(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)}attemptChangeHeight(t){return us(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)}attemptChangeSize(t,i,s){return us(this.getAmpDoc()).requestChangeSize(this.element,t,i,void 0,s)}measureElement(t){return us(this.getAmpDoc()).measureElement(t)}mutateElement(t,i){return this.measureMutateElement(null,t,i)}measureMutateElement(t,i,s){return us(this.getAmpDoc()).measureMutateElement(s||this.element,t,i)}mutateElementSkipRemeasure(t){return us(this.getAmpDoc()).mutateElement(this.element,t,!0)}collapsedCallback(t){}expand(){us(this.getAmpDoc()).expandElement(this.element)}mutatedAttributesCallback(t){}onLayoutMeasure(){}user(){return It(this.element)}getApi(){return this}};function Jn(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var Xn,Zn=class extends Qn{},tr=Date.now(),ir={bubbles:!1},sr=()=>!0,er=[],nr=new Set;function rr(t,i){const s=function(t,i){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;const s=t.HTMLElement;return t.__AMP_BASE_CE_CLASS=class extends s{constructor(){super(),this.createdCallback()}createdCallback(){this.Vs=!1,this.Ss=!1,this.xs=null,this.Os=!1,this.Cs=null,this.ks=null,this.Ns="upgrading",this.everAttached=!1,this.zi=null,this.Ti=null,this.Ds=Qs,this.bi=0,this.Ls=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this.Us=void 0,this.layoutScheduleTime=void 0;const i=this;let s=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.$s=s===Zn?null:s||null,this.$s||er.push(this),this.Fs=null,this.Bs=1,this.Hs=0,this.js=void 0,this.zs=void 0,this.ni=new Ms,this.$s&&this.ni.signal(Pe);const e=function(t,i){return qi(t=Ni(t),i)?$i(t,i):null}(t,"performance");this.Gs=e&&e.isPerformanceTrackingOn(),this.qs=null,i.__AMP_UPG_RES&&(i.__AMP_UPG_RES(i),delete i.__AMP_UPG_RES,delete i.__AMP_UPG_PRM)}get readyState(){return this.Ns}signals(){return this.ni}getAmpDoc(){return yt(this.zi),this.zi}getResources(){return yt(this.Ti),this.Ti}isUpgraded(){return 2==this.Bs}whenUpgraded(){return this.ni.whenSignal(ge)}upgrade(t){this.zs||1==this.Bs&&(this.$s=t,this.ni.signal(Pe),this.everAttached&&this.Ws())}markUnresolved(){this.$s||this.classList.add("amp-unresolved","i-amphtml-unresolved")}getUpgradeDelayMs(){return this.Hs}Ks(i,s){this.Fs=i,this.Hs=t.Date.now()-s,this.Bs=2,this.setReadyStateInternal(ai),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Ys(),this.dispatchCustomEventForTesting(me),this.R1()||this.getResources().upgraded(this),this.ni.signal(ge)}Ys(){this.Ds!=Qs&&this.Fs&&!this.Fs.isLayoutSupported(this.Ds)&&(bt(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."),bt(!1,`Layout not supported: ${this.Ds}`))}getBuildPriority(){return this.$s?this.$s.getBuildPriority(this):3}getLayoutPriority(){return this.Fs?this.Fs.getLayoutPriority():3}getDefaultActionAlias(){return yt(this.isUpgraded()),this.Fs.getDefaultActionAlias()}isBuilding(){return!!this.xs}isBuilt(){return this.Vs}whenBuilt(){return this.ni.whenSignal(ve)}buildInternal(){if(or(this),yt(this.$s),this.xs)return this.xs;this.setReadyStateInternal(ai);const t=this.Js();this.Qs();const i=t.then((()=>{const t=this.Xs(),i=t?null:this.Zs();if(t||i)return(this,Ki(this,"consentPolicyManager","amp-consent")).then((s=>!s||(t?s.whenPolicyUnblock(t):s.whenPurposesUnblock(i)))).then((t=>{if(!t)throw new Error(yn)}))})).then((()=>yt(this.Fs).buildCallback()));return this.xs=i.then((()=>{if(this.Vs=!0,this.classList.add("i-amphtml-built"),this.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),this.ni.signal(ve),this.R1()?this.setReadyStateInternal(this.Ns!=ai?this.Ns:di):(this.setReadyStateInternal(fi),this.preconnect(!1)),this.Ss&&this.qt(),this.js&&ps(wt(this)).delay(this.Re.bind(this),1),!this.getPlaceholder()){const t=this.createPlaceholder();t&&this.appendChild(t)}}),(t=>{throw this.ni.rejectSignal(ve,t),this.R1()&&this.setReadyStateInternal(mi,t),xn(t)||Vn(t,this),t}))}build(){return this.xs?this.xs:this.ni.whenSignal(Pe).then((()=>(this.R1()&&Un(this.getAmpDoc()).scheduleAsap(this),this.whenBuilt())))}mountInternal(){if(this.Cs)return this.Cs;this.ks=this.ks||new AbortController;const{signal:t}=this.ks;return this.Cs=this.buildInternal().then((()=>{if(yt(this.R1()),t.aborted)return;this.setReadyStateInternal(this.Ns!=di?this.Ns:this.$s.usesLoading(this)?fi:di),this.Os=!0;const i=this.Fs.mountCallback(t);return!!i&&i.then(sr)})).then((i=>{if(this.ks=null,t.aborted)throw Sn();this.ni.signal(Ee),this.$s.usesLoading(this)&&!i||this.setReadyStateInternal(pi)})).catch((t=>{var i;throw this.ks=null,(i=t)&&("string"==typeof i?i.startsWith(Rn):"string"==typeof i.message&&i.message.startsWith(Rn))?this.Cs=null:(this.ni.rejectSignal(Ee,t),this.setReadyStateInternal(mi,t)),t}))}mount(){if(this.Cs)return this.Cs;this.ks=this.ks||new AbortController;const{signal:t}=this.ks;return this.ni.whenSignal(Pe).then((()=>{if(!this.R1())return this.whenBuilt();if(t.aborted)throw Sn();return Un(this.getAmpDoc()).scheduleAsap(this),this.whenMounted()}))}unmount(){this.Ss&&this.pause(),this.R1()?(this.ks&&(this.ks.abort(),this.ks=null),Un(this.getAmpDoc()).unschedule(this),this.Os&&this.Fs.unmountCallback(),this.Os=!1,this.Cs=null,this.Se(),this.Ss&&this.Ws(!0)):this.xe()}whenMounted(){return this.ni.whenSignal(Ee)}whenLoaded(){return this.ni.whenSignal(Me)}ensureLoaded(t){return this.mount().then((()=>{if(this.R1())return this.$s.usesLoading(this)&&this.Fs.ensureLoaded(),this.whenLoaded();const i=this.Ce();return i.whenBuilt().then((()=>{if(4!=i.getState()&&((3!=i.getState()||i.isMeasureRequested())&&i.measure(),i.isDisplayed()))return this.getResources().scheduleLayoutOrPreload(i,!0,t,!0),this.whenLoaded()}))}))}setAsContainerInternal(t){Un(this.getAmpDoc()).setContainer(this,t)}removeAsContainerInternal(){Un(this.getAmpDoc()).removeContainer(this)}setReadyStateInternal(t,i){if(t!==this.Ns&&(this.Ns=t,this.R1()))switch(t){case fi:return this.ni.signal(Te),this.ni.reset(Re),this.ni.reset(Me),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(_e);case pi:return this.ni.signal(Te),this.ni.signal(Me),this.ni.reset(Re),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),Wt(this,"load",null,ir),void this.dispatchCustomEventForTesting(Ae);case mi:return this.ni.rejectSignal(Me,i),this.toggleLoading(!1),void Wt(this,"error",i,ir)}}preconnect(t){yt(this.isUpgraded()),t?this.Fs.preconnectCallback(t):jn(this.getAmpDoc(),(()=>{this.ownerDocument&&this.ownerDocument.defaultView&&this.Fs.preconnectCallback(t)}))}R1(){return!!this.$s&&this.$s.R1()}deferredMount(){return!!this.$s&&this.$s.deferredMount(this)}isAlwaysFixed(){return!!this.Fs&&this.Fs.isAlwaysFixed()}updateLayoutBox(t,i=!1){this.isBuilt()&&this.onMeasure(i)}onMeasure(){yt(this.isBuilt());try{this.Fs.onLayoutMeasure()}catch(t){Vn(t,this)}}Qs(){var t;return void 0!==this.sizerElement||this.Ds!==Zs&&this.Ds!==ne||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null}ke(t){if(this.Ds!==Zs)if(this.Ds!==ne);else{const i=t.querySelector(".i-amphtml-intrinsic-sizer");if(!i)return;i.setAttribute("src","")}else Ss(t,"paddingTop","0")}Ne(){const t=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),i=!!this.qs,s=this.ownerDocument.defaultView;t!=i&&s&&(t?(this.qs=new class{constructor(t,i){this.i=t,this.xt=i,this.De={},this.Le=null}start(){this.Le=this.De,this.De={}}resolveMatchQuery(t){return"1"===this.Ue(t,ye,"1")}resolveListQuery(t){return this.Ue(t,be,"")}complete(){for(const t in this.Le)t in this.De||we(this.Le[t],this.xt,!1);this.Le=null}dispose(){for(const t in this.De)we(this.De[t],this.xt,!1);this.De={}}Ue(t,i,s){if(!t.trim())return s;let e=this.De[t];return e||(D(this.Le),e=this.Le[t]),e||(e=i(this.i,t),we(e,this.xt,!0)),this.De[t]=e,function(t){for(let i=0;i<t.length;i++){const{query:s,value:e}=t[i];if(!s||s.matches)return e}return""}(e)}}(s,(()=>this.$e())),this.$e()):this.Fe())}Fe(){this.qs&&(this.qs.dispose(),this.qs=null)}$e(){const t=this.qs;if(!t)return;t.start();const i=this.getAttribute("media")||null,s=!i||t.resolveMatchQuery(i);this.classList.toggle("i-amphtml-hidden-by-media-query",!s);const e=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");e&&Ss(this,"width",t.resolveListQuery(e));const n=this.Ds===Zs?this.getAttribute("heights"):null;if(n){const i=this.Qs();i&&Ss(i,"paddingTop",t.resolveListQuery(n))}t.complete(),this.Ce().requestMeasure()}applySize(t,i,s){const e=this.Qs();e&&(this.sizerElement=null,this.ke(e),this.Be((()=>{e&&Bt(e)}))),void 0!==t&&Ss(this,"height",t,"px"),void 0!==i&&Ss(this,"width",i,"px"),s&&(null!=s.top&&Ss(this,"marginTop",s.top,"px"),null!=s.right&&Ss(this,"marginRight",s.right,"px"),null!=s.bottom&&Ss(this,"marginBottom",s.bottom,"px"),null!=s.left&&Ss(this,"marginLeft",s.left,"px")),this.He()&&this.ze(),Wt(this,"amp:size-changed")}connectedCallback(){if(function(){if(void 0===Xn){const t=self.document.createElement("template");Xn="content"in t}return Xn}()||void 0!==this.zs||(this.zs=!!Ct(this,"template")),!this.zs&&!this.Ss&&Ht(this)){if(this.Ss=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this.zi){const t=wt(this),s=is(t).getAmpDoc(this);this.zi=s,i(s,this,this.$s)}if(this.Ti||(this.Ti=ds(this.zi)),this.getResources().add(this),this.everAttached){const t=this.reconstructWhenReparented();t&&this.Se(),this.isUpgraded()&&(t&&!this.R1()&&this.getResources().upgraded(this),this.qt(),this.dispatchCustomEventForTesting(me)),this.$s&&this.R1()&&this.Ws()}else{this.everAttached=!0;try{this.Ds=function(t){const i=t.getAttribute("i-amphtml-layout");if(i){const e=he(i);var s;return D(e),e!=Zs&&e!=ne||!t.firstElementChild?e==Qs&&Os(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(s=t.sizerElement)||void 0===s||s.setAttribute("slot","i-amphtml-svc")),e}const{height:e,layout:n,width:r}=Ce(t);if(t.classList.add(oe(n)),ue(n)&&t.classList.add("i-amphtml-layout-size-defined"),n==Qs)Os(t,!1);else if(n==Js)xs(t,{width:U(r),height:U(e)});else if(n==Xs)Ss(t,"height",U(e));else if(n==Zs){const i=t.ownerDocument.createElement("i-amphtml-sizer");i.setAttribute("slot","i-amphtml-svc");const s=ae(e),n=ae(r);$(s),$(n),xs(i,{paddingTop:s/n*100+"%"}),t.insertBefore(i,t.firstChild),t.sizerElement=i}else if(n==ne){const i=Ve(t)(xe),s=i.firstElementChild;L(s),s.setAttribute("src",`data:image/svg+xml;charset=utf-8,<svg height="${e}" width="${r}" xmlns="http://www.w3.org/2000/svg" version="1.1"/>`),t.insertBefore(i,t.firstChild),t.sizerElement=i}else n==ie||n==te||(n==se?(r&&Ss(t,"width",r),e&&Ss(t,"height",e)):n==ee&&(t.classList.add("i-amphtml-layout-awaiting-size"),r&&Ss(t,"width",r),Ss(t,"height",0)));return t.setAttribute("i-amphtml-layout",n),n}(this),this.Ne()}catch(t){Vn(t,this)}this.$s?this.Ws():(nr.has("*")||nr.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}}He(){return this.classList.contains("i-amphtml-layout-awaiting-size")}ze(){this.classList.remove("i-amphtml-layout-awaiting-size")}Ws(t){if(this.R1()){if(!this.Cs)if(Un(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.xs)this.setReadyStateInternal(this.$s&&this.$s.usesLoading(this)?fi:di);else if(this.setReadyStateInternal(ai),!t){const t=this.$s.getPreconnects(this);if(t&&t.length>0){const i=this.getAmpDoc();jn(i,(()=>{const{win:s}=i;if(!s)return;const e=as(s);t.forEach((t=>e.url(i,t,!1)))}))}}}else this.Ge()}Ge(){if(this.zs)return;if(1!=this.Bs)return;const i=new(yt(this.$s))(this);this.Bs=4;const s=t.Date.now(),e=i.upgradeCallback();if(e){if("function"==typeof e.then)return e.then((t=>{this.Ks(t||i,s)})).catch((t=>{this.Bs=3,l(t)}));this.Ks(e,s)}else this.Ks(i,s)}disconnectedCallback(){this.disconnect(!1)}qt(){this.Vs&&this.Fs.attachedCallback()}disconnect(t){!this.zs&&this.Ss&&(!t&&Ht(this)||(t&&this.classList.remove("i-amphtml-element"),this.Ss=!1,this.getResources().remove(this),this.Fs&&this.Fs.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.Fe()))}dispatchCustomEventForTesting(t,i){}prerenderAllowed(){return!this.hasAttribute("noprerender")&&!!this.$s&&this.$s.prerenderAllowed(this)}previewAllowed(){return!!this.$s&&this.$s.previewAllowed(this)}isBuildRenderBlocking(){return!!this.Fs&&this.Fs.isBuildRenderBlocking()}createPlaceholder(){return this.Fs?this.Fs.createPlaceholderCallback():null}createLoaderLogo(){return this.$s?this.$s.createLoaderLogoCallback(this):{}}renderOutsideViewport(){return!!this.Fs&&this.Fs.renderOutsideViewport()}idleRenderOutsideViewport(){return!!this.Fs&&this.Fs.idleRenderOutsideViewport()}getLayoutBox(){return this.Ce().getLayoutBox()}getLayoutSize(){return this.Ce().getLayoutSize()}getOwner(){return this.Ce().getOwner()}getIntersectionChangeEntry(){const t=this.Fs?this.Fs.getIntersectionElementLayoutBox():this.getLayoutBox(),i=this.getOwner(),s=vs(this.getAmpDoc()).getRect();return function(t,i,s){const e=function(t){let i=-1/0,s=1/0,e=-1/0,n=1/0;for(let t=0;t<arguments.length;t++){const r=arguments[t];if(r&&(i=Math.max(i,r.left),s=Math.min(s,r.left+r.width),e=Math.max(e,r.top),n=Math.min(n,r.top+r.height),s<i||n<e))return null}return s==1/0?null:Jt(i,e,s-i,n-e)}(t,i,s)||Jt(0,0,0,0);return function(t,i,s,e){let n=t,r=i;return i&&(s=Zt(s,-i.left,-i.top),n=Zt(n,-i.left,-i.top),r=Zt(r,-i.left,-i.top)),{time:"undefined"!=typeof performance&&performance.now?performance.now():Date.now()-tr,rootBounds:r,boundingClientRect:n,intersectionRect:s,intersectionRatio:e}}(t,s,e,function(t,i){const s=t.width*t.height,e=i.width*i.height;return 0===e?0:s/e}(e,t))}(t,i&&i.getLayoutBox(),s)}Ce(){return this.getResources().getResourceForElement(this)}getResourceId(){return this.Ce().getId()}isRelayoutNeeded(){return!!this.Fs&&this.Fs.isRelayoutNeeded()}getImpl(t=!0){return(t?this.build():this.Js()).then((()=>this.Fs))}Js(){return this.ni.whenSignal(Pe).then((()=>(this.Ge(),this.whenUpgraded())))}getApi(){return this.getImpl().then((t=>t.getApi()))}getLayout(){return this.Ds}layoutCallback(t){if(or(this),yt(this.isBuilt()),t.aborted)return Promise.reject(Sn());this.dispatchCustomEventForTesting(_e);const i=0==this.bi;this.ni.reset(Re),i&&this.ni.signal(Te),this.toggleLoading(!0);const s=r((()=>this.Fs.layoutCallback()));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),s.then((()=>{if(t.aborted)throw Sn();i&&this.ni.signal(Me),this.setReadyStateInternal(pi),this.bi++,this.toggleLoading(!1),this.Ls||(this.Fs.firstLayoutCompleted(),this.Ls=!0,this.dispatchCustomEventForTesting(Ae))}),(s=>{if(t.aborted)throw Sn();throw i&&this.ni.rejectSignal(Me,s),this.setReadyStateInternal(mi,s),this.bi++,this.toggleLoading(!1),s}))}pause(){this.isBuilt()&&(this.Fs.pauseCallback(),!this.R1()&&this.Fs.unlayoutOnPause()&&this.xe())}resume(){this.isBuilt()&&this.Fs.resumeCallback()}unlayoutCallback(){if(or(this),!this.isBuilt())return!1;this.ni.signal(Re);const t=this.Fs.unlayoutCallback();return t&&this.Se(),this.dispatchCustomEventForTesting("amp:unload"),t}xe(){this.Ce().unlayout(),this.Ss&&this.Ti&&this.Ti.schedulePass()}Se(){this.bi=0,this.Ls=!1,this.ni.reset(Ee),this.ni.reset(Ie),this.ni.reset(Te),this.ni.reset(Me),this.ni.reset("ini-load")}reconstructWhenReparented(){return!!this.Fs&&this.Fs.reconstructWhenReparented()}collapse(){this.Fs&&this.Fs.collapse()}collapsedCallback(t){this.Fs&&this.Fs.collapsedCallback(t)}expand(){this.Fs&&this.Fs.expand()}mutatedAttributesCallback(t){this.Fs?this.Fs.mutatedAttributesCallback(t):this.R1()&&Un(this).scheduleAsap(this)}enqueAction(t){or(this),this.isBuilt()?this.qe(t,!1):(void 0===this.js&&(this.js=[]),yt(this.js).push(t),this.build())}Re(){if(!this.js)return;const t=yt(this.js);this.js=null,t.forEach((t=>{this.qe(t,!0)}))}qe(t,i){try{this.Fs.executeAction(t,i)}catch(i){l("Action execution failed:",i,t.node.tagName,t.method)}}Xs(){let t=this.getAttribute("data-block-on-consent");if(null===t){if(!function(t){let i=t.getAmpDoc().getMetaByName("amp-consent-blocking");return!!i&&(i=i.toUpperCase().replace(/\s+/g,""),i.split(",").includes(t.tagName))}(this))return null;t="default",this.setAttribute("data-block-on-consent",t)}return""==t||"default"==t?yt(this.Fs).getConsentPolicy():t}Zs(){var t;const i=this.getAttribute("data-block-on-consent-purposes")||null;return null==i||null===(t=i.replace(/\s+/g,""))||void 0===t?void 0:t.split(",")}getPlaceholder(){return kt(this,(t=>t.hasAttribute("placeholder")&&!hr(t)))}togglePlaceholder(t){if(or(this),t){const t=this.getPlaceholder();t&&t.classList.remove("amp-hidden")}else{const t=(this,xt("placeholder"),"> [placeholder]",this.querySelectorAll(Vt("> [placeholder]",":scope")));for(let i=0;i<t.length;i++)hr(t[i])||t[i].classList.add("amp-hidden")}}getFallback(){return Nt(this,"fallback")}toggleFallback(t){or(this);const i=this.Ce().getState();if((this.R1()||!t||0!=i&&1!=i&&2!=i)&&(this.classList.toggle("amp-notsupported",t),1==t)){const t=this.getFallback();t&&(s=this.getAmpDoc(),xi(s,"owners")).scheduleLayout(this,t)}var s}renderStarted(){this.ni.signal(Ie),this.togglePlaceholder(!1),this.toggleLoading(!1)}We(t){const i=this.bi>0||this.ni.get(Ie);return!(this.Ds==Qs||this.hasAttribute("noloading")||i&&!t||!function(t){const i=t.tagName.toUpperCase();return"AMP-AD"===(s=i)||"AMP-ANIM"===s||"AMP-EMBED"===s||"AMP-FACEBOOK"===s||"AMP-FACEBOOK-COMMENTS"===s||"AMP-FACEBOOK-PAGE"===s||"AMP-GOOGLE-DOCUMENT-EMBED"===s||"AMP-IFRAME"===s||"AMP-IMG"===s||"AMP-INSTAGRAM"===s||"AMP-LIST"===s||"AMP-PINTEREST"===s||"AMP-PLAYBUZZ"===s||"AMP-RENDER"===s||"AMP-TIKTOK"===s||"AMP-TWITTER"===s||function(t){return"AMP-VIDEO"!=t&&re.test(t)}(i);var s}(this)||Dt(this))}toggleLoading(t,i=!1){if(!this.ownerDocument||!this.ownerDocument.defaultView)return;const s=Oi(this.getAmpDoc(),"loadingIndicator");s&&((t=t&&this.We(i))?s.track(this):s.untrack(this))}getOverflowElement(){return void 0===this.Us&&(this.Us=Nt(this,"overflow"),this.Us&&(this.Us.hasAttribute("tabindex")||this.Us.setAttribute("tabindex","0"),this.Us.hasAttribute("role")||this.Us.setAttribute("role","button"))),this.Us}overflowCallback(t,i,s){this.getOverflowElement(),this.Us?(this.Us.classList.toggle("amp-visible",t),this.Us.onclick=t?()=>{const t=us(this.getAmpDoc());t.forceChangeSize(this,i,s),t.mutateElement(this,(()=>{this.overflowCallback(!1,i,s)}))}:null):t&&this.warnOnMissingOverflow}Be(t,i,s=!1){this.zi?us(this.getAmpDoc()).mutateElement(i||this,t,s):t()}},t.__AMP_BASE_CE_CLASS}(t,i);class e extends s{adoptedCallback(){Object.getPrototypeOf(this)!==n&&Object.setPrototypeOf(this,n)}}const n=e.prototype;return e}function hr(t){return"placeholder"in t}function or(t){yt(!t.zs)}function ur(t){nr.add(t||"*");for(const i of er)null!=t&&i.tagName.toLowerCase()!==t||i.markUnresolved()}var lr=new WeakMap;function cr(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function ar(t,i,s){const e=cr(t);if(e[i]){if(e[i]!=s){bt(e[i]==Zn,"%s is already registered. The script tag for %s is likely included twice in the page.",i,i),e[i]=s;for(let e=0;e<er.length;e++){const n=er[e];n.tagName.toLowerCase()==i&&n.ownerDocument.defaultView==t&&(dr(n,s),er.splice(e--,1))}}}else _r(t,i,s)}function dr(t,i){try{t.upgrade(i)}catch(i){Vn(i,t)}}function fr(t){(function(t){if(!t)return[];const i=t.querySelectorAll("script[custom-element],script[custom-template]"),s=[];for(let t=0;t<i.length;t++){const e=i[t],n=e.getAttribute("custom-element")||e.getAttribute("custom-template"),r=Mi(e.src);n&&r&&s.push({script:e,extensionId:n,extensionVersion:r.extensionVersion})}return s})(t.getHeadNode()).forEach((({extensionId:i,extensionVersion:s,script:e})=>{t.declareExtension(i,s),e.addEventListener("error",(()=>ur(i))),pr(t.win,i)})),t.isBodyAvailable()&&t.setExtensionsKnown()}function pr(t,i){cr(t)[i]||_r(t,i,Zn)}function mr(t,i,s){_r(i,s,cr(t)[s]||Zn)}function _r(t,i,s){cr(t)[i]=s;const e=rr(t,Ar);t.customElements.define(i,e)}function Ar(t,i,s){lr.has(t)||(lr.set(t,!0),fr(t));const e=i.localName;s||t.declaresExtension(e)||hs(t.win).installExtensionForDoc(t,e,"0.1")}var Pr="amp-img",gr=["alt","aria-describedby","aria-label","aria-labelledby","crossorigin","referrerpolicy","title","importance","sizes","srcset","src"],vr=class t extends Qn{static R1(){return!1}static prerenderAllowed(){return!0}static usesLoading(){return!0}static getPreconnects(t){const i=t.getAttribute("src");if(i)return[i];const s=t.getAttribute("srcset");if(s){const t=/\S+/.exec(s);if(t)return[t[0]]}return null}constructor(t){super(t),this.Ke=!0,this.Ye=null,this.Je=null,this.Qe=null,this.Xe=0}mutatedAttributesCallback(i){if(this.Ye){const s=gr.filter((t=>void 0!==i[t]));i.src&&!i.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),s.push("srcset"),this.user().warn(Pr,"Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element)),fe(s,this.element,this.Ye,!0),this.propagateDataset(this.Ye),t.R1()&&!this.Ye.complete&&this.setReadyState(fi)}}preconnectCallback(t){const i=this.element.getAttribute("src");if(i)as(this.win).url(this.getAmpDoc(),i,t);else{const i=this.element.getAttribute("srcset");if(!i)return;const s=/\S+/.exec(i);s&&as(this.win).url(this.getAmpDoc(),s[0],t)}}isLayoutSupported(t){return ue(t)}Ze(){if(this.Ye)return this.Ye;this.Ke=!this.element.hasAttribute("fallback");const t=Yt(this.element);var i,s;return t&&(this.Ye=Ot(this.element,"> img:not([placeholder])")),this.Ye=this.Ye||new Image,this.Ye.setAttribute("decoding","async"),this.element.id&&this.Ye.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(Pr,"Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying <img> element.")),this.tn(!0),fe(gr,this.element,this.Ye),this.propagateDataset(this.Ye),de(this.Ye,!0),i=this.element,s=this.Ye,i.hasAttribute("object-fit")&&Ss(s,"object-fit",i.getAttribute("object-fit")),i.hasAttribute("object-position")&&Ss(s,"object-position",i.getAttribute("object-position")),t||this.element.appendChild(this.Ye),this.Ye}tn(t){if(!this.Ye)return;if(this.element.hasAttribute("i-amphtml-ssr"))return;if(this.element.hasAttribute("sizes")||this.Ye.hasAttribute("sizes"))return;const i=this.element.getAttribute("srcset");if(!i||/[0-9]+x(?:,|$)/.test(i))return;const{width:s}=this.element.getLayoutSize();if(!this.sn(s))return;const e=this.getViewport().getWidth(),n=`(max-width: ${e}px) ${s}px, `;let r=s+"px";if(this.getLayout()!==Js){const t=Math.round(100*s/e);r=Math.max(t,100)+"vw"}const h=n+r;t?this.Ye.setAttribute("sizes",h):this.mutateElement((()=>{this.Ye.setAttribute("sizes",h)})),this.Xe=s}sn(t){return!this.Ye.hasAttribute("sizes")||t>this.Xe}reconstructWhenReparented(){return!1}mountCallback(){const t=!!this.Ye,i=this.Ze();t||(ze(i,"load",(()=>{this.setReadyState(pi),this.firstLayoutCompleted(),this.en()})),ze(i,"error",(t=>{this.setReadyState(mi,t),this.nn()}))),i.complete?(this.setReadyState(pi),this.firstLayoutCompleted(),this.en()):this.setReadyState(fi)}unmountCallback(){const t=this.Ye;t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Bt(t),this.Ye=null)}ensureLoaded(){this.Ye.loading="eager"}layoutCallback(){this.Ze();const t=this.Ye;this.Je=ze(t,"load",(()=>this.en())),this.Qe=ze(t,"error",(()=>this.nn()));const{width:i}=this.element.getLayoutSize();return i<=0?e():this.loadPromise(t)}unlayoutCallback(){if(t.R1())return;this.Qe&&(this.Qe(),this.Qe=null),this.Je&&(this.Je(),this.Je=null);const i=this.Ye;return i&&!i.complete&&(i.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Bt(i),this.Ye=null),!0}firstLayoutCompleted(){const t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?Vs(t,{"opacity":0}):this.togglePlaceholder(!1)}en(){!this.Ke&&this.Ye.classList.contains("i-amphtml-ghost")&&(this.Ye.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))}nn(){this.Ke&&(this.Ye.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this.Ke=!1)}propagateDataset(t){for(const i in t.dataset)i in this.element.dataset||delete t.dataset[i];for(const i in this.element.dataset)i.startsWith("ampBind")&&"ampBind"!==i||t.dataset[i]!==this.element.dataset[i]&&(t.dataset[i]=this.element.dataset[i])}},Er=class extends Qn{static prerenderAllowed(){return!0}isLayoutSupported(t){return t==te||ue(t)}buildCallback(){!function(t){if(Yt(t))return;const i=function(t){var i;return he(null!==(i=t.getAttribute("layout"))&&void 0!==i?i:"")||Ce(t).layout}(t);if(i==te)return;const s=t.ownerDocument.createElement("div");de(s),function(t){return function(t,i){const s=[];for(let i=t.firstChild;i;i=i.nextSibling)!Dt(i)&&s.push(i);return s}(t)}(t).forEach((t=>{s.appendChild(t)})),t.appendChild(s)}(this.element)}};function Tr(t,i,s=!1,e,n){const r=new($s.getImage(t));s&&(r.referrerPolicy="no-referrer");let h=0;var o;return null!=e&&((null===(o=t.document.featurePolicy)||void 0===o?void 0:o.allowedFeatures().includes("attribution-reporting"))?(h=6,e=Ir(t,h,n)(e),r.attributionSrc=e):h=5),i=Ir(t,h,n)(i),r.src=i,r}function Ir(t,i,s){const e={"ATTRIBUTION_REPORTING_STATUS":()=>i},n=ms(s||t.document),r={"ATTRIBUTION_REPORTING_STATUS":!0};return t=>n.expandUrlSync(t,e,r)}var Mr="amp-pixel",Rr=class extends Qn{constructor(t){super(t),this.rn=null}isLayoutSupported(t){return!0}buildCallback(){this.element.setAttribute("aria-hidden","true"),this.hn=this.element.getAttribute("referrerpolicy"),this.hn&&bt("no-referrer"==this.hn,`${Mr}: invalid "referrerpolicy" value "${this.hn}". Only "no-referrer" is supported`),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")||this.getAmpDoc().whenFirstVisible().then(this.on.bind(this))}on(){if(this.rn)return Rt().error(Mr,"duplicate pixel"),this.rn;this.rn=ps(this.win).promise(1).then((()=>{const t=this.element.getAttribute("src");if(t)return ms(this.element).expandUrlAsync(this.un(t)).then((t=>{if(this.win)return function(t,i,s,e,n){return s&&"no-referrer"!==s&&It().error("pixel","Unsupported referrerPolicy: %s",s),"no-referrer"===s?function(t,i,s,e){if("referrerPolicy"in Image.prototype)return Tr(t,i,!0,s,e);{const s=(n={"src":"about:blank","style":"display:none"},function(t,i){for(const s in i)t.setAttribute(s,i[s]);return t}(t.document.createElement("iframe"),n));return s.onload=()=>{Tr(s.contentWindow,i,void 0,void 0,e)},t.document.body.appendChild(s),s}var n}(t,i,e,n):Tr(t,i,!1,e,n)}(this.win,t,this.hn,this.element.getAttribute("attributionsrc"),this.element)}))}))}un(t){return bt(/^(https\:\/\/|\/\/)/i.test(t),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+t),t}},yr=class{constructor(t,i,s){this.ln=ps(t),this.cn=i,this.an=s||0,this.dn=-1,this.fn=0,this.pn=!1,this.mn=()=>{this._n()}}isPending(){return-1!=this.dn}schedule(t){let i=t||this.an;this.pn&&i<10&&(i=10);const s=Date.now()+i;return(!this.isPending()||s-this.fn<-10)&&(this.cancel(),this.fn=s,this.dn=this.ln.delay(this.mn,i),!0)}_n(){this.dn=-1,this.fn=0,this.pn=!0,this.cn(),this.pn=!1}cancel(){this.isPending()&&(this.ln.cancel(this.dn),this.dn=-1)}};function br(t,i){const s=i.documentElement;return t.some((t=>s.hasAttribute(t)))}function wr(t){return br(["⚡4email","amp4email"],t)}function Vr(t){return br(["⚡","amp"],t)}var Sr="Action",xr="__AMP_ACTION_MAP__"+Math.random(),Or="__AMP_ACTION_QUEUE__",Cr="__AMP_ACTION_HANDLER__",kr={"form":["submit","clear"]},Nr=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Dr={"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},Lr=class{constructor(t,i,s,e,n,r,h,o="?",u=null,l=Math.random()){this.node=t,this.method=i,this.args=s,this.source=e,this.caller=n,this.event=r,this.trust=h,this.actionEventType=o,this.tagOrTarget=u||t.tagName,this.sequenceId=l}satisfiesTrust(t){if(!w(this.trust))return Rt().error(Sr,`Invalid trust for '${this.method}': ${this.trust}`),!1;if(this.trust<t){const t=function(t){switch(t){case 1:return"low";case 3:return"high";default:return D(2===t),"default"}}(this.trust);return It().error(Sr,`"${this.actionEventType}" event with "${t}" trust is not allowed to invoke "${this.tagOrTarget.toLowerCase()}.${this.method}".`),!1}return!0}};function Ur(t){return"amp-"===t.substring(0,4)}var $r=class{constructor(t){this.detail=null,function(t,i){const s=i||p();for(const i in t){const e=t[i];s[i]="function"==typeof e?Fr:t[i]}}(t,this)}};function Fr(){yt(null)}function Br(t,i){const s=jr.bind(null,t,i),e=zr.bind(null,t,i);let n=null;const r=new Wr(t);let h,o;do{if(h=r.next(),h.type==Gr.EOF||h.type==Gr.SEPARATOR&&";"==h.value);else if(h.type==Gr.LITERAL||h.type==Gr.ID){const i=h.value;e(r.next(),[Gr.SEPARATOR],":");const u=[];do{const n=e(r.next(),[Gr.LITERAL,Gr.ID]).value;let h=Yn,l=null;o=r.peek(),o.type==Gr.SEPARATOR&&"."==o.value&&(r.next(),h=e(r.next(),[Gr.LITERAL,Gr.ID]).value||h,o=r.peek(),o.type==Gr.SEPARATOR&&"("==o.value&&(r.next(),l=Hr(r,e,s))),u.push({event:i,target:n,method:h,args:l,str:t}),o=r.peek()}while(o.type==Gr.SEPARATOR&&","==o.value&&r.next());n||(n=p()),n[i]=u}else s(!1,`; unexpected token [${h.value||""}]`)}while(h.type!=Gr.EOF);return n}function Hr(t,i,s){let e,n=t.peek(),r=null;if(n.type==Gr.OBJECT){r=p();const{value:s}=t.next();r.__AMP_OBJECT_STRING__=s,i(t.next(),[Gr.SEPARATOR],")")}else do{e=t.next();const{type:o,value:u}=e;if(o!=Gr.SEPARATOR||","!=u&&")"!=u)if(o==Gr.LITERAL||o==Gr.ID){i(t.next(),[Gr.SEPARATOR],"="),e=i(t.next(!0),[Gr.LITERAL,Gr.ID]);const o=[e];if(e.type==Gr.ID)for(n=t.peek();n.type==Gr.SEPARATOR&&"."==n.value;n=t.peek())t.next(),e=i(t.next(!1),[Gr.ID]),o.push(e);const l=0==(h=o).length?null:1==h.length?h[0].value:{expression:h.map((t=>t.value)).join(".")};r||(r=p()),r[u]=l,n=t.peek(),s(n.type==Gr.SEPARATOR&&(","==n.value||")"==n.value),"Expected either [,] or [)]")}else s(!1,`; unexpected token [${e.value||""}]`)}while(e.type!=Gr.SEPARATOR||")"!=e.value);var h;return r}function jr(t,i,s,e){return bt(s,"Invalid action definition in %s: [%s] %s",i,t,e||"")}function zr(t,i,s,e,n){return void 0!==n?jr(t,i,e.includes(s.type)&&s.value==n,`; expected [${n}]`):jr(t,i,e.includes(s.type)),s}var Gr={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},qr=" \t\n\r\f\v \u2028\u2029",Wr=class{constructor(t){this.An=t,this.gn=-1}next(t){const i=this.Pn(t||!1);return this.gn=i.index,i}peek(t){return this.Pn(t||!1)}Pn(t){let i=this.gn+1;if(i>=this.An.length)return{type:Gr.EOF,index:this.gn};let s=this.An.charAt(i);if(-1!=qr.indexOf(s)){for(i++;i<this.An.length&&-1!=qr.indexOf(this.An.charAt(i));i++);if(i>=this.An.length)return{type:Gr.EOF,index:i};s=this.An.charAt(i)}if(t&&(Kr(s)||"."==s&&i+1<this.An.length&&Kr(this.An[i+1]))){let t="."==s,e=i+1;for(;e<this.An.length;e++){const i=this.An.charAt(e);if("."!=i){if(!Kr(i))break}else t=!0}const n=this.An.substring(i,e),r=t?parseFloat(n):parseInt(n,10);return i=e-1,{type:Gr.LITERAL,value:r,index:i}}if(-1!=";:.()=,|!".indexOf(s))return{type:Gr.SEPARATOR,value:s,index:i};if(-1!="\"'".indexOf(s)){let t=-1;for(let e=i+1;e<this.An.length;e++)if(this.An.charAt(e)==s){t=e;break}if(-1==t)return{type:Gr.INVALID,index:i};const e=this.An.substring(i+1,t);return i=t,{type:Gr.LITERAL,value:e,index:i}}if("{"==s){let t=1,s=-1;for(let e=i+1;e<this.An.length;e++){const i=this.An[e];if("{"==i?t++:"}"==i&&t--,t<=0){s=e;break}}if(-1==s)return{type:Gr.INVALID,index:i};const e=this.An.substring(i,s+1);return i=s,{type:Gr.OBJECT,value:e,index:i}}let e=i+1;for(;e<this.An.length&&-1==" \t\n\r\f\v \u2028\u2029;:.()=,|!\"'{}".indexOf(this.An.charAt(e));e++);const n=this.An.substring(i,e);if(i=e-1,t&&("true"==n||"false"==n)){const t="true"==n;return{type:Gr.LITERAL,value:t,index:i}}return Kr(n.charAt(0))?{type:Gr.LITERAL,value:n,index:i}:{type:Gr.ID,value:n,index:i}}};function Kr(t){return t>="0"&&t<="9"}function Yr(t){return!!t&&"function"==typeof t.getFormData}var Qr=["GET","POST"],Jr=[v,f];function Xr(t,i){const s=g({},i);if(Yr(i.body)){const t=i.body;s.headers["Content-Type"]="multipart/form-data;charset=utf-8",s.body=function(t){const i=[];for(let s=t.next();!s.done;s=t.next())i.push(s.value);return i}(t.entries())}return{input:t,init:s}}function Zr(t,i){const s=t||{},e=s.credentials;return D(void 0===e||"include"==e||"omit"==e),s.method=void 0===(n=s.method)?"GET":(n=n.toUpperCase(),D(Qr.includes(n)),n),s.headers=s.headers||{},i&&(s.headers.Accept=i),D(null!==s.body),s;var n}function th(t){return new Promise((i=>{if(t.ok)return i(t);const{status:s}=t,e=It().createError(`HTTP error ${s}`);throw e.retriable=function(t){return 415==t||t>=500&&t<600}(s),e.response=t,e}))}var ih=class{constructor(t){this.win=t;const i=is(t);this.vn=i.isSingleDoc()?i.getSingleDoc():null}En(t,i){return function(t,i,s,n){if(!i)return e();const r=n.prerenderSafe?e():i.whenFirstVisible(),h=Ps(i),o=_n(s),u=h.hasCapability("xhrInterceptor"),l=n.bypassInterceptorForDev&&!1;return o||!u||l?r:i.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?r.then((()=>h.isTrustedViewer())).then((i=>{if(!i&&!Le(t,"untrusted-xhr-interception"))return;const e={"originalRequest":Xr(s,n)};return h.sendMessageAwaitResponse("xhr",e).then((t=>function(t,i){if(F(f(t),"Object expected: %s",t),"document"!=i)return new Response(t.body,t.init);const s=p(),e={status:200,statusText:"OK",getResponseHeader:t=>s[String(t).toLowerCase()]||null};if(t.init){const i=t.init;v(i.headers)&&i.headers.forEach((t=>{const i=t[0],e=t[1];s[String(i).toLowerCase()]=String(e)})),i.status&&(e.status=parseInt(i.status,10)),i.statusText&&(e.statusText=String(i.statusText))}return new Response(t.body?String(t.body):"",e)}(t,n.responseType)))})):r}(this.win,this.vn,t,i).then((t=>{if(t)return t;if(Yr(i.body)){const t=i.body;i.body=t.getFormData()}return this.win.fetch.apply(null,arguments)}))}Tn(t,i={}){return t=function(t,i,s){return D("string"==typeof i),!1!==s.ampCors&&(i=In(t,i)),i}(this.win,t,i),i=function(t,i,s){s=s||{};const e=function(t){return t.origin||on(t.location.href).origin}(t);return e==on(i).origin&&(s.headers=s.headers||{},s.headers["AMP-Same-Origin"]="true"),s}(this.win,t,i),this.En(t,i).then((t=>t),(i=>{const s=on(t).origin;throw It().createExpectedError("XHR",`Failed fetching (${s}/...):`,i&&i.message)}))}fetchJson(t,i){return this.fetch(t,function(t){const i=Zr(t,"application/json");if("POST"==i.method&&!Yr(i.body)){D(Jr.some((t=>t(i.body)))),i.headers["Content-Type"]=i.headers["Content-Type"]||"text/plain;charset=utf-8";const t=i.headers["Content-Type"];i.body="application/x-www-form-urlencoded"===t?dn(i.body):JSON.stringify(i.body)}return i}(i))}fetchText(t,i){return this.fetch(t,Zr(i,"text/plain"))}xssiJson(t,i){return i?t.text().then((t=>t.startsWith(i)?B(t.slice(i.length)):B(t))):t.json()}fetch(t,i){const s=Zr(i);return this.Tn(t,s).then((t=>th(t)))}sendSignal(t,i){return this.Tn(t,i).then((t=>th(t)))}getCorsUrl(t,i){return In(t,i)}},sh=class extends ih{constructor(t){super(t),this.Rn=p()}fetch(t,i){const s=i&&i.headers&&i.headers.Accept||"",e=!i||!i.method||"GET"===i.method,n=this.In(t,s),r=!!this.Rn[n];if(e&&r)return this.Rn[n].then((t=>t.clone()));const h=super.fetch(t,i);return e&&(this.Rn[n]=h.then((t=>(delete this.Rn[n],t.clone())),(t=>{throw delete this.Rn[n],t}))),h}In(t,i){return mn(Tn(t,En(this.win.location)))+i}},eh={"+":"-","/":"_","=":"."};function nh(t){const i=function(t){const i=new Array(t.length);for(let s=0;s<t.length;s++)i[s]=String.fromCharCode(t[s]);return i.join("")}(t);return btoa(i).replace(/[+/=]/g,(t=>eh[t]))}var rh="AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc",hh="CacheCidApi",oh="-test-amp-cookie-tmp";function uh(t,i){const s=function(t){try{return t.document.cookie}catch(t){return""}}(t);if(!s)return null;const e=s.split(";");for(let t=0;t<e.length;t++){const s=e[t].trim(),n=s.indexOf("=");if(-1!=n&&K(s.substring(0,n).trim())==i){const t=s.substring(n+1).trim();return K(t,t)}}return null}function lh(t,i,s,e,n={}){let r;!function(t,i,s){if(i.allowOnProxyOrigin)return void bt(!i.highestAvailableDomain,"Could not support highestAvailable Domain on proxy origin, specify domain explicitly");bt(!_n(t.location.href),`Should never attempt to set cookie on proxy origin: ${s}`);const e=on(t.location.href).hostname.toLowerCase(),n=on(et).hostname.toLowerCase();bt(!(e==n||R(e,"."+n)),"Should never attempt to set cookie on proxy origin. (in depth check): "+s)}(t,n,i),n.domain?r=n.domain:n.highestAvailableDomain&&(r=function(t){const i=t.document.head&&t.document.head.querySelector("meta[name='amp-cookie-scope']");if(i){const s=i.getAttribute("content")||"",e=En(t.location.href);return R(e,"."+s)?s:e.split("://")[1]}if(!_n(t.location.href)){const i=t.location.hostname.split(".");let s=i[i.length-1];const e=function(t){let i=oh,s=0;for(;uh(t,i);)i=oh+s++;return i}(t);for(let n=i.length-2;n>=0;n--)if(s=i[n]+"."+s,ch(t,e,"delete",Date.now()+1e3,s),"delete"==uh(t,e))return ch(t,e,"delete",Date.now()-1e3,s),s}return null}(t)),ch(t,i,s,e,r,n.sameSite,n.secure)}function ch(t,i,s,e,n,r,h){"ampproject.org"==n&&(s="delete",e=0);const o=encodeURIComponent(i)+"="+encodeURIComponent(s)+"; path=/"+(n?"; domain="+n:"")+"; expires="+new Date(e).toUTCString()+function(t,i){return i?`; SameSite=${i}`:""}(0,r)+(h?"; Secure":"");try{t.document.cookie=o}catch(t){}}var ah="GoogleCidApi",dh="AMP_TOKEN",fh="$RETRIEVING",ph="$OPT_OUT",mh="$NOT_FOUND",_h=3e4,Ah=31536e6,Ph=31536e6,gh=/^[a-zA-Z0-9-_.]+$/,vh="amp-cid-optout",Eh={"googleanalytics":"AMP_ECID_GOOGLE"},Th={"googleanalytics":"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function Ih(t,i,s){lh(t,i,s,Date.now()+Ph,{highestAvailableDomain:!0})}function Mh(t,i,s){fs(t).then((t=>{if(!t.isViewerStorage()){const e=Rh(i);t.setNonBoolean(e,s)}}))}function Rh(t){return"amp-cid:"+t}function yh(t,i,s){const{ampdoc:e}=t,{win:n}=e,{disableBackup:r,scope:h}=i,o=i.cookieName||h;return function(t,i){const{ampdoc:s}=t,{win:e}=s,{disableBackup:n,scope:r}=i,h=i.cookieName||r,o=uh(e,h);return o?Promise.resolve(o):n?Promise.resolve(null):fs(s).then((t=>{const i=Rh(h);return t.get(i,Ph)})).then((t=>t&&"string"==typeof t?t:null))}(t,i).then((u=>{if(!u&&!i.createCookieIfNotPresent)return Promise.resolve(null);if(u)return/^amp-/.test(u)&&(Ih(n,o,u),r||Mh(e,o,u)),Promise.resolve(u);if(t.Mn[h])return t.Mn[h];const l=Sh(n).then((t=>"amp-"+t));return Promise.all([l,s]).then((t=>{const i=t[0];uh(n,o)||(Ih(n,o,i),r||Mh(e,o,i))})),t.Mn[h]=l}))}function bh(t,i){const s=Ps(t);return s.isTrustedViewer().then((t=>{if(t)return Rt().expectedError("CID","Viewer does not provide cap=cid"),s.sendMessageAwaitResponse("cid",i).then((t=>t&&!function(t,i){try{return B(t)}catch(t){return null}}(t)?(Rt().expectedError("CID","invalid cid format"),JSON.stringify({"time":Date.now(),"cid":t})):t))}))}function wh(t){return JSON.stringify({"time":Date.now(),"cid":t})}function Vh(t){return j(t,16)||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}function Sh(t){const i=Vh(t);if("string"==typeof i)return ns(t).sha384Base64(i);{const t=i;return r((()=>nh(t).replace(/\.+$/,"")))}}var xh="Crypto";var Oh=["prefetch","preload","preconnect","dns-prefetch"],Ch={attributes:!0,attributeFilter:["hidden"],subtree:!0};function kh(t){try{return t.state}catch(t){return null}}var Nh="History",Dh="AMP.History";function Lh(t){const i=Ps(t);let s;return i.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?s=new class{constructor(t,i){this.win=t,this.yn=i,this.wn=0,this.bn=null,this.Vn=this.yn.onMessage("historyPopped",(t=>this.Sn(t)))}replaceStateForTarget(t){yt("#"==t[0]),this.win.location.replace(t)}cleanup(){this.Vn()}setOnStateUpdated(t){this.bn=t}xn(t,i,s){return this.On(t)?t:i}On(t){return!!t&&void 0!==t.stackIndex}push(t){const i=g({"stackIndex":this.wn+1},t||{}),s="pushHistory";return this.yn.sendMessageAwaitResponse(s,i).then((t=>{const e=i,n=this.xn(t,e,s);return this.Cn(n),n}))}pop(t){if(t>this.wn)return this.get();const i={"stackIndex":this.wn},s="popHistory";return this.yn.sendMessageAwaitResponse(s,i).then((t=>{const i={"stackIndex":this.wn-1},e=this.xn(t,i,s);return this.Cn(e),e}))}replace(t){if(t&&t.url){if(!this.yn.hasCapability("fullReplaceHistory")){const t={"stackIndex":this.wn};return Promise.resolve(t)}const i=t.url.replace(/#.*/,"");t.url=i}const i=g({"stackIndex":this.wn},t||{}),s="replaceHistory";return this.yn.sendMessageAwaitResponse(s,i,!0).then((t=>{const e=i,n=this.xn(t,e,s);return this.Cn(n),n}))}get(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.wn,title:""})}Sn(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.On(t)&&this.Cn(t)}Cn(t){const{stackIndex:i}=t;this.wn!=i&&(this.wn=i,this.bn&&this.bn(t))}getFragment(){return this.yn.hasCapability("fragment")?this.yn.sendMessageAwaitResponse("getFragment",void 0,!0).then((t=>{if(!t)return"";let i=t;return"#"==i[0]&&(i=i.substr(1)),i})):Promise.resolve("")}updateFragment(t){return this.yn.hasCapability("fragment")?this.yn.sendMessageAwaitResponse("replaceHistory",{"fragment":t},!0):e()}}(t.win,i):(wi(t.win,"global-history-binding",class{constructor(t){this.win=t,this.ln=ps(t);const{history:i}=this.win;this.kn=i.length-1;const s=kh(i);let e,n;s&&void 0!==s[Dh]&&(this.kn=Math.min(s[Dh],this.kn)),this.wn=this.kn,this.Nn,this.bn=null,this.Dn="state"in i,this.Ln=this.Un(this.wn),i.pushState&&i.replaceState?(this.$n=i.originalPushState||i.pushState.bind(i),this.Fn=i.originalReplaceState||i.replaceState.bind(i),e=(t,i,s)=>{this.Ln=t;try{this.$n(t,i,s||null)}catch(t){Rt().error(Nh,"pushState failed: "+t.message)}},n=(t,i,s)=>{this.Ln=t;try{void 0!==s?this.Fn(t,i,s):this.Fn(t,i)}catch(t){Rt().error(Nh,"replaceState failed: "+t.message)}},i.originalPushState||(i.originalPushState=this.$n),i.originalReplaceState||(i.originalReplaceState=this.Fn)):(e=(t,i,s)=>{this.Ln=t},n=(t,i,s)=>{this.Ln=t}),this.Bn=e,this.Hn=n;try{this.Hn(this.Un(this.wn,!0))}catch(t){Rt().error(Nh,"Initial replaceState failed: "+t.message)}i.pushState=this.jn.bind(this),i.replaceState=this.zn.bind(this),this.Gn=t=>{t.state,this.qn()},this.win.addEventListener("popstate",this.Gn)}cleanup(){this.$n&&(this.win.history.pushState=this.$n),this.Fn&&(this.win.history.replaceState=this.Fn),this.win.removeEventListener("popstate",this.Gn)}Un(t,i){const s=p(i?this.Wn():void 0);return s[Dh]=t,s}setOnStateUpdated(t){this.bn=t}push(t){return this.Kn((()=>{const i=this.Yn(this.Wn(),t||{});return this.jn(i,void 0,i.fragment?"#"+i.fragment:void 0),r((()=>this.Yn(i,{stackIndex:this.wn})))}))}pop(t){return t=Math.max(t,this.kn),this.Kn((()=>this.Jn(this.wn-t+1))).then((t=>this.Yn(this.Wn(),{stackIndex:t})))}replace(t={}){return this.Kn((()=>{const i=this.Yn(this.Wn(),t||{}),s=(i.url||"").replace(/#.*/,""),e=i.fragment?"#"+i.fragment:"";return this.zn(i,i.title,s||e?s+e:void 0),r((()=>this.Yn(i,{stackIndex:this.wn})))}))}get(){return r((()=>this.Yn(this.Wn(),{stackIndex:this.wn})))}backTo(t){return t=Math.max(t,this.kn),this.Kn((()=>this.Jn(this.wn-t)))}qn(){let t=this.Wn();const i=t?t[Dh]:void 0;let s=this.wn;const e=this.Nn;this.Nn=void 0,s>this.win.history.length-2&&(s=this.win.history.length-2,this.Cn(this.Yn(t,{stackIndex:s}))),null==i?s+=1:s=i<this.win.history.length?i:this.win.history.length-1,t||(t={}),t[Dh]=s,this.Hn(t,void 0,void 0),s!=this.wn&&this.Cn(this.Yn(t,{stackIndex:s})),s<this.kn&&(this.kn=s),e&&e.resolve()}Wn(){return this.Dn?kh(this.win.history):this.Ln}Qn(){yt(!this.Nn)}Kn(t){return this.Nn?this.Nn.promise.then(t,t):t()}Xn(){this.Qn();const t=new n,{reject:i,resolve:s}=t,e=this.ln.timeoutPromise(500,t.promise);return this.Nn={promise:e,resolve:s,reject:i},e}Jn(t){if(this.Qn(),t<=0)return Promise.resolve(this.wn);this.Ln=this.Un(this.wn-t);const i=this.Xn();return this.win.history.go(-t),i.then((()=>Promise.resolve(this.wn)))}jn(t,i,s){this.Qn(),t||(t={});let e=this.wn+1;t[Dh]=e,this.Bn(t,i,s),e!=this.win.history.length-1&&(e=this.win.history.length-1,t[Dh]=e,this.Hn(t));const n=this.Yn(t,{stackIndex:e});this.Cn(n)}replaceStateForTarget(t){yt("#"==t[0]),this.Kn((()=>{this.win.removeEventListener("popstate",this.Gn);try{this.win.location.replace(t)}finally{this.win.addEventListener("popstate",this.Gn)}return this.zn(),e()}))}zn(t,i,s){this.Qn(),t||(t={});const e=Math.min(this.wn,this.win.history.length-1);t[Dh]=e,this.Hn(t,i,s);const n=this.Yn(t,{stackIndex:e});this.Cn(n)}Cn(t){this.Qn(),t.stackIndex=Math.min(t.stackIndex,this.win.history.length-1),this.wn!=t.stackIndex&&(this.wn=t.stackIndex,this.bn&&this.bn(t))}getFragment(){let{hash:t}=this.win.location;return t=t.substr(1),Promise.resolve(t)}updateFragment(t){return this.replace({fragment:t})}Yn(t,i){const s=g(g({},t&&t.data||{}),i.data||{});return g(g(g({},t||{}),i),{},{data:s})}}),s=Si(t.win,"global-history-binding")),new class{constructor(t,i){this.zi=t,this.ln=ps(t.win),this.Zn=i,this.wn=0,this.tr=[],this.ns=[],this.Zn.setOnStateUpdated(this.bn.bind(this))}cleanup(){this.Zn.cleanup()}push(t,i){return this.ir((()=>this.Zn.push(i).then((i=>(this.bn(i),t&&(this.tr[i.stackIndex]=t),i.stackIndex)))),"push")}pop(t){return this.ir((()=>this.Zn.pop(t).then((t=>{this.bn(t)}))),"pop")}replace(t){return this.ir((()=>this.Zn.replace(t)),"replace")}get(){return this.ir((()=>this.Zn.get()),"get")}goBack(t){return this.ir((()=>this.wn<=0&&!t?e():this.Zn.pop(this.wn).then((t=>{this.bn(t)}))),"goBack")}replaceStateForTarget(t){yt("#"==t[0]);const i=this.zi.win.location.hash;return this.push((()=>{this.zi.win.location.replace(i||"#")})).then((()=>{this.Zn.replaceStateForTarget(t)}))}getFragment(){return this.Zn.getFragment()}updateFragment(t){return"#"==t[0]&&(t=t.substr(1)),this.Zn.updateFragment(t)}bn(t){this.wn=t.stackIndex,this.sr(t)}sr(t){if(this.wn>=this.tr.length-1)return;const i=[];for(let t=this.tr.length-1;t>this.wn;t--)this.tr[t]&&(i.push(this.tr[t]),this.tr[t]=void 0);if(this.tr.splice(this.wn+1),i.length>0)for(let s=0;s<i.length;s++)this.ln.delay((()=>i[s](t)),1)}ir(t,i){const s=new n,{promise:e,reject:r,resolve:h}=s,o=new Error("history trace for "+i+": ");return this.ns.push({callback:t,resolve:h,reject:r,trace:o}),1==this.ns.length&&this.er(),e}er(){if(0==this.ns.length)return;const t=this.ns[0];let i;try{i=t.callback()}catch(t){i=Promise.reject(t)}i.then((i=>{t.resolve(i)}),(i=>{Rt().error(Nh,"failed to execute a task:",i),t.trace&&(t.trace.message+=i,Rt().error(Nh,t.trace)),t.reject(i)})).then((()=>{this.ns.splice(0,1),this.er()}))}}(t,s)}var Uh=['<div slot=i-amphtml-svc class="i-amphtml-svc i-amphtml-loading-container i-amphtml-fill-content amp-hidden"></div>'],$h=class{constructor(t,i){this.win=t,this.nr=i,this.rr=[],this.hr=new Is,this.ur=t=>{b(t.target)&&this.lr(t.target)},this.cr=i=>{ps(t).delay((()=>{this.win.document.activeElement&&this.lr(this.win.document.activeElement)}),500)},this.win.document.addEventListener("focus",this.ur,!0),this.win.addEventListener("blur",this.cr)}ar(){this.win.document.removeEventListener("focus",this.ur,!0),this.win.removeEventListener("blur",this.cr)}onFocus(t){return this.hr.add(t)}lr(t){const i=Date.now();0==this.rr.length||this.rr[this.rr.length-1].el!=t?this.rr.push({el:t,time:i}):this.rr[this.rr.length-1].time=i,this.purgeBefore(i-this.nr),this.hr.fire(t)}getLast(){return 0==this.rr.length?null:this.rr[this.rr.length-1].el}purgeBefore(t){let i=this.rr.length-1;for(let s=0;s<this.rr.length;s++)if(this.rr[s].time>=t){i=s-1;break}-1!=i&&this.rr.splice(0,i+1)}hasDescendantsOf(t){this.win.document.activeElement&&this.lr(this.win.document.activeElement);for(let i=0;i<this.rr.length;i++)if(t.contains(this.rr[i].el))return!0;return!1}},Fh=null,Bh=["gclid","gclsrc"],Hh=[/^t.co$/];function jh(){return bt(Fh,"E#19457 trackImpressionPromise")}function zh(t,i,s,e){let n;try{n=t.open(i,s,e)}catch(t){Rt().error("DOM","Failed to open url on target: ",s,t)}var r,h;return!n&&"_top"!=s&&("number"!=typeof h&&(h=0),h+"noopener".length>(r=e||"").length||-1===r.indexOf("noopener",h))&&(n=t.open(i,"_top")),n}var Gh="navigation",qh="click",Wh="contextmenu",Kh=["_top","_blank"],Yh="data-a4a-orig-href";function Qh(t,i){const s=Ct(i.target,"A");if(!s||!s.href)return;const e=s.getAttribute(Yh)||s.getAttribute("href");if(!e)return;const n={"CLICK_X":()=>i.pageX,"CLICK_Y":()=>i.pageY},r=ms(s).expandUrlSync(e,n,{"CLICK_X":!0,"CLICK_Y":!0});r!=e&&(s.getAttribute(Yh)||s.setAttribute(Yh,e),s.setAttribute("href",r))}function Jh(t){return`${t.origin}${t.pathname}${t.search}`}function Xh(t){return v(t)?t:[t]}function Zh(t){wi(t,"platform",class{constructor(t){this.no=t.navigator,this.i=t}isAndroid(){return/Android/i.test(this.no.userAgent)}isIos(){return/iPhone|iPad|iPod/i.test(this.no.userAgent)}isSafari(){return/Safari/i.test(this.no.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()}isChrome(){return/Chrome|CriOS/i.test(this.no.userAgent)&&!this.isEdge()&&!this.isOpera()}isFirefox(){return/Firefox|FxiOS/i.test(this.no.userAgent)&&!this.isEdge()}isOpera(){return/OPR\/|Opera|OPiOS/i.test(this.no.userAgent)}isEdge(){return/Edge/i.test(this.no.userAgent)}isWebKit(){return/WebKit/i.test(this.no.userAgent)&&!this.isEdge()}isWindows(){return/Windows/i.test(this.no.userAgent)}isStandalone(){return this.isIos()&&this.no.standalone||this.isChrome()&&this.i.matchMedia("(display-mode: standalone)").matches}isBot(){return/bot/i.test(this.no.userAgent)}getMajorVersion(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:this.ro(/\sVersion\/(\d+)/,1):this.isChrome()?this.ro(/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?this.ro(/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?this.ro(/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?this.ro(/Edge\/(\d+)/,1):0}ro(t,i){if(!this.no.userAgent)return 0;const s=this.no.userAgent.match(t);return!s||i>=s.length?0:parseInt(s[i],10)}getIosVersionString(){var t,i,s;return this.isIos()&&(null===(t=this.no.userAgent)||void 0===t||null===(i=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===i||null===(s=i[1])||void 0===s?void 0:s.replace(/_/g,"."))||""}getIosMajorVersion(){const t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])}})}var to=class{constructor(){this.gs=[],this.dr={},this.pr=0,this.mr=0}getSize(){return this.gs.length}getLastEnqueueTime(){return this.pr}getLastDequeueTime(){return this.mr}getTaskById(t){return this.dr[t]||null}enqueue(t){yt(!this.dr[t.id]),this.gs.push(t),this.dr[t.id]=t,this.pr=Date.now()}dequeue(t){const i=this.dr[t.id];return!!this.removeAtIndex(t,this.gs.indexOf(i))&&(this.mr=Date.now(),!0)}peek(t){let i=1e6,s=null;for(let e=0;e<this.gs.length;e++){const n=this.gs[e],r=t(n);r<i&&(i=r,s=n)}return s}forEach(t){this.gs.forEach(t)}removeAtIndex(t,i){const s=this.dr[t.id];return!(!s||this.gs[i]!=s||(this.gs.splice(i,1),delete this.dr[t.id],0))}purge(t){let i=this.gs.length;for(;i--;)t(this.gs[i])&&this.removeAtIndex(this.gs[i],i)}};function io(t){return t.queryCommandSupported("copy")}function so(t){return t.hasAttribute("hidden")}var eo="STANDARD-ACTIONS",no=/^i-amphtml-/;var ro="Storage",ho=class{constructor(t){this.yn=t}loadBlob(t){return this.yn.sendMessageAwaitResponse("loadStore",{"origin":t}).then((t=>t.blob))}saveBlob(t,i){return this.yn.sendMessageAwaitResponse("saveStore",{"origin":t,"blob":i}).catch((t=>{throw Rt().createExpectedError(ro,"Failed to save store: ",t)}))}};function oo(t){Vi(t,"storage",(function(){const i=Ps(t),s=parseInt(i.getParam("storage"),10)?new ho(i):new class{constructor(t){if(this.win=t,this._r=this.Ar(),!this._r){const t=new Error("localStorage not supported.");Rt().expectedError(ro,t)}}Ar(){try{return"localStorage"in this.win&&(this.win.localStorage.getItem("test"),!0)}catch(t){return!1}}gr(t){return`amp-store:${t}`}loadBlob(t){return new Promise((i=>{this._r?i(this.win.localStorage.getItem(this.gr(t))):i(null)}))}saveBlob(t,i){return new Promise((s=>{this._r?(this.win.localStorage.setItem(this.gr(t),i),s()):s()}))}}(t.win);return new class{constructor(t,i,s){this.ampdoc=t,this.yn=i,this.Zn=s,this.vr=s instanceof ho,this.h=En(this.ampdoc.win.location),this.Er=null}Pr(){return this.Tr(),this}get(t,i){return this.Rr().then((s=>s.get(t,i)))}set(t,i,s){return yt("boolean"==typeof i),this.setNonBoolean(t,i,s)}setNonBoolean(t,i,s){return this.Ir((e=>e.set(t,i,s)))}remove(t){return this.Ir((i=>i.remove(t)))}isViewerStorage(){return this.vr}Rr(){return this.Er||(this.Er=this.Zn.loadBlob(this.h).then((t=>t?B(atob(t)):{})).catch((t=>(Rt().expectedError(ro,"Failed to load store: ",t),{}))).then((t=>new class{constructor(t,i){this.obj=_(t),this.Mr=i||8,this.yr=this.obj.vv||Object.create(null),this.obj.vv||(this.obj.vv=this.yr)}get(t,i){const s=this.yr[t],e=s?s.t:void 0,n=!i||null==e||e+i>Date.now();return s&&n?s.v:void 0}set(t,i,s){if(yt("__proto__"!=t&&"prototype"!=t),void 0!==this.yr[t]){const e=this.yr[t];let n=Date.now();s&&(n=e.t),e.v=i,e.t=n}else this.yr[t]={"v":i,"t":Date.now()};const e=Object.keys(this.yr);if(e.length>this.Mr){let t=1/0,i=null;for(let s=0;s<e.length;s++){const n=this.yr[e[s]];n.t<t&&(i=e[s],t=n.t)}i&&delete this.yr[i]}}remove(t){delete this.yr[t]}}(t)))),this.Er}Ir(t){return this.Rr().then((i=>{t(i);const s=btoa(JSON.stringify(i.obj));return this.Zn.saveBlob(this.h,s)})).then(this.wr.bind(this))}Tr(){this.yn.onBroadcast((t=>{"amp-storage-reset"==t.type&&t.origin==this.h&&(this.Er=null)}))}wr(){this.yn.broadcast({"type":"amp-storage-reset","origin":this.h})}}(t,i,s).Pr()}),!0)}var uo="__AMP_IMPL_",lo=()=>{};function co(t){wi(t,"timer",class{constructor(t){this.win=t,this.br=this.win.Promise.resolve(),this.Vr=0,this.Sr={},this.Or=Date.now()}timeSinceStart(){return Date.now()-this.Or}delay(t,i){if(!i){const i="p"+this.Vr++;return this.br.then((()=>{this.Sr[i]?delete this.Sr[i]:t()})).catch(Vn),i}return this.win.setTimeout((()=>{try{t()}catch(t){throw Vn(t),t}}),i)}cancel(t){"string"!=typeof t?this.win.clearTimeout(t):this.Sr[t]=!0}promise(t){return new this.win.Promise((i=>{if(-1==this.delay(i,t))throw new Error("Failed to schedule timer.")}))}timeoutPromise(t,i,s){let e;const n=new this.win.Promise(((i,n)=>{if(e=this.delay((()=>{n(It().createError(s||"timeout"))}),t),-1==e)throw new Error("Failed to schedule timer.")}));if(!i)return n;const r=()=>{this.cancel(e)};return i.then(r,r),this.win.Promise.race([n,i])}poll(t,i){return new this.win.Promise((s=>{const e=this.win.setInterval((()=>{i()&&(this.win.clearInterval(e),s())}),t)}))}})}var ao="Expander",fo=class{constructor(t,i,s,e,n,r){this.Cr=t,this.kr=i,this.Nr=s,this.Dr=e,this.Lr=n,this.Ur=!r}expand(t){if(!t.length)return this.Dr?t:Promise.resolve(t);const i=this.Cr.getExpr(this.kr,this.Lr),s=this.$r(t,i);return s.length?this.Fr(t,s):this.Dr?t:Promise.resolve(t)}getMacroNames(t){const i=this.Cr.getExpr(this.kr,this.Lr);return t.match(i)||[]}$r(t,i){const s=[];return t.replace(i,((t,i,e)=>{const{length:n}=t,r={start:e,stop:n+e-1,name:i,length:n};s.push(r)})),s}Fr(t,i){const s=[];let e=0,n=0,r=i[n],h=0,o=!1;const u=c=>{let a="",d=[];const f=[];for(;e<t.length&&n<=i.length;){const l=a.trim();if(r&&e===r.start){let o;l&&d.push(h?(p=a).trimStart?p.trimStart():(p+"_").trim().slice(0,-1):a),o=this.kr&&m(this.kr,r.name)?{name:r.name,prioritized:this.kr[r.name],encode:c}:g(g({},this.Cr.get(r.name)),{},{name:r.name,encode:c}),e=r.stop+1,r=i[++n],"("===t[e]?(e++,h++,s.push(o),d.push(u(!1))):d.push(this.Br(o)),a=""}else if("`"===t[e])o?(o=!1,a.length&&d.push(a)):(o=!0,l&&d.push(l)),a="",e++;else if(h&&","===t[e]&&!o)l&&d.push(l),f.push(d),d=[],","===t[e+1]&&(f.push([""]),e++),a="",e++;else{if(h&&")"===t[e]&&!o){e++,h--;const t=s.pop();return l&&d.push(l),f.push(d),this.Br(t,f)}a+=t[e],e++}e===t.length&&a.length&&d.push(a)}var p;return this.Dr?d.join(""):Promise.all(d).then((t=>t.join(""))).catch((t=>(l(t),"")))};return u(this.Ur)}Br(t,i){const{encode:s,name:e}=t;let n;if(null!=t.prioritized?n=t.prioritized:this.Dr&&null!=t.sync?n=t.sync:this.Dr?(It().error(ao,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.Dr){const t=this.Hr(n,e,i);return s?encodeURIComponent(t):t}return this.jr(n,e,i).then((t=>s?encodeURIComponent(t):t))}jr(t,i,s){let e;try{if("function"==typeof t){const i=t;e=s?this.zr(s).then((t=>i.apply(null,t))):r(i)}else e=Promise.resolve(t);return e.then((t=>{let e;return this.Gr(i,t,s),e=null==t?"":t,e})).catch((t=>(l(t),this.Gr(i,"",s),Promise.resolve(""))))}catch(t){return l(t),this.Gr(i,"",s),Promise.resolve("")}}zr(t){return Promise.all(t.map((t=>Promise.all(t).then((t=>t.join(""))))))}Hr(t,i,s){try{let e,n=t;return"function"==typeof t&&(n=t.apply(null,this.qr(s))),n&&"function"==typeof n.then?(It().error(ao,"ignoring async macro resolution"),e=""):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(this.Gr(i,n,s),e=n.toString()):(this.Gr(i,"",s),e=""),e}catch(t){return l(t),this.Gr(i,"",s),""}}qr(t){return t?t.map((t=>t.join(""))):t}Gr(t,i,s){if(!this.Nr)return;let e="";s&&(e=`(${s.filter((t=>""!==t)).join(",")})`),this.Nr[`${t}${e}`]=i||""}},po={"navigationStart":1,"redirectStart":1,"redirectEnd":1,"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"secureConnectionStart":1,"connectEnd":1,"requestStart":1,"responseStart":1,"responseEnd":1,"domLoading":2,"domInteractive":2,"domContentLoaded":2,"domComplete":2,"loadEventStart":3,"loadEventEnd":4};function mo(t,i,s){const n=po[i]||3,r=s?po[s]||3:n,h=Math.max(n,r);let o;if(1===h)o=e();else if(2===h)o=Ei(t.document);else if(3===h)o=We(t);else if(4===h){const i=ps(t);o=We(t).then((()=>i.promise(1)))}return yt(o),o.then((()=>_o(t,i,s)))}function _o(t,i,s){const e=t.performance&&t.performance.timing;if(!e||0==e.navigationStart)return;const n=void 0===s?e[i]:e[s]-e[i];return!w(n)||n<0?void 0:n}function Ao(t,i){const s=t.performance&&t.performance.navigation;if(s&&void 0!==s[i])return s[i]}var Po="UrlReplacements";function go(t){return()=>(new Date)[t]()}function vo(t,i){return()=>t[i]}function Eo(t,i){return i?(bt("ISOCountry"===i,"The value passed to AMP_GEO() is not valid name:"+i),t&&t[i]||"unknown"):(null==t?void 0:t.matchedISOCountryGroups.join(","))||"unknown"}var To="Viewer",Io=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i;function Mo(t){let i;return t instanceof Error?((t=h(t)).message="No messaging channel: "+t.message,i=t):i=new Error("No messaging channel: "+t),i.message=C(i.message),i}var Ro=class t{static solveYValueFromXValue(i,s,e,n,r,h,o,u,l){return t.Wr(t.Kr(i,s,n,h,u),e,r,o,l)}static Kr(i,s,e,n,r){const h=1e-6;let o=(i-s)/(r-s);if(o<=0)return 0;if(o>=1)return 1;let u=0,l=1,c=0;for(let a=0;a<8;a++){c=t.Yr(o,s,e,n,r);const a=(t.Yr(o+h,s,e,n,r)-c)/h;if(Math.abs(c-i)<h)return o;if(Math.abs(a)<h)break;c<i?u=o:l=o,o-=(c-i)/a}for(let a=0;Math.abs(c-i)>h&&a<8;a++)c<i?(u=o,o=(o+l)/2):(l=o,o=(o+u)/2),c=t.Yr(o,s,e,n,r);return o}static Yr(i,s,e,n,r){if(0==i)return s;if(1==i)return r;let h=t.Jr(s,e,i),o=t.Jr(e,n,i);const u=t.Jr(n,r,i);return h=t.Jr(h,o,i),o=t.Jr(o,u,i),t.Jr(h,o,i)}static Wr(i,s,e,n,r){if(0==i)return s;if(1==i)return r;let h=t.Jr(s,e,i),o=t.Jr(e,n,i);const u=t.Jr(n,r,i);return h=t.Jr(h,o,i),o=t.Jr(o,u,i),t.Jr(h,o,i)}static Jr(t,i,s){return t+s*(i-t)}},yo={LINEAR:t=>t,EASE:t=>Ro.solveYValueFromXValue(t,0,0,.25,.1,.25,1,1,1),EASE_IN:t=>Ro.solveYValueFromXValue(t,0,0,.42,0,1,1,1,1),EASE_OUT:t=>Ro.solveYValueFromXValue(t,0,0,0,0,.58,1,1,1),EASE_IN_OUT:t=>Ro.solveYValueFromXValue(t,0,0,.42,0,.58,1,1,1)},bo={"linear":yo.LINEAR,"ease":yo.EASE,"ease-in":yo.EASE_IN,"ease-out":yo.EASE_OUT,"ease-in-out":yo.EASE_IN_OUT};function wo(t){if(!t)return null;if(y(t)){if(-1!=t.indexOf("cubic-bezier")){const r=t.match(/cubic-bezier\((.+)\)/);if(r){const t=r[1].split(",").map(parseFloat);if(4==t.length){for(let i=0;i<4;i++)if(isNaN(t[i]))return null;return i=t[0],s=t[1],e=t[2],n=t[3],t=>Ro.solveYValueFromXValue(t,0,0,i,s,e,n,1,1)}}return null}return bo[t]}var i,s,e,n;return t}var Vo="Animation",So=function(){},xo=class t{static animate(i,s,e,n){return new t(i).setCurve(n).add(0,s,1).start(e)}constructor(t,i){this.Qr=t,this.Xr=i||gs(self),this.Zr=null,this.th=[]}setCurve(t){return t&&(this.Zr=wo(t)),this}add(t,i,s,e){return this.th.push({delay:t,func:i,duration:s,curve:wo(e)}),this}start(t){return new Oo(this.Xr,this.Qr,this.th,this.Zr,t)}},Oo=class{constructor(t,i,s,e,r){this.Xr=t,this.Qr=i,this.th=[];for(let t=0;t<s.length;t++){const i=s[t];this.th.push({delay:i.delay,func:i.func,duration:i.duration,curve:i.curve||e,started:!1,completed:!1})}this.ih=r,this.Or=Date.now(),this.pn=!0,this.yi={};const h=new n;this.sh=h.promise,this.Ue=h.resolve,this.eh=h.reject,this.nh=this.Xr.createAnimTask(this.Qr,{mutate:this.rh.bind(this)}),this.Xr.canAnimate(this.Qr)?this.nh(this.yi):this.hh(!1,0)}then(t,i){return t||i?this.sh.then(t,i):this.sh}thenAlways(t){const i=t||So;return this.then(i,i)}halt(t){this.hh(!1,t||0)}hh(t,i){if(this.pn){if(this.pn=!1,0!=i){this.th.length>1&&this.th.sort(((t,i)=>t.delay+t.duration-(i.delay+i.duration)));try{if(i>0)for(let t=0;t<this.th.length;t++)this.th[t].func(1,!0);else for(let t=this.th.length-1;t>=0;t--)this.th[t].func(0,!1)}catch(i){Rt().error(Vo,"completion failed: "+i,i),t=!1}}t?this.Ue():this.eh()}}rh(t){if(!this.pn)return;const i=Date.now(),s=Math.min((i-this.Or)/this.ih,1);for(let t=0;t<this.th.length;t++){const i=this.th[t];!i.started&&s>=i.delay&&(i.started=!0)}for(let t=0;t<this.th.length;t++){const i=this.th[t];i.started&&!i.completed&&this.oh(i,s)}1==s?this.hh(!0,0):this.Xr.canAnimate(this.Qr)?this.nh(this.yi):this.hh(!1,0)}oh(t,i){let s,e;if(t.duration>0){if(s=Math.min((i-t.delay)/t.duration,1),e=s,t.curve&&1!=e)try{e=t.curve(s)}catch(t){return Rt().error(Vo,"step curve failed: "+t,t),void this.hh(!1,0)}}else s=1,e=1;1==s&&(t.completed=!0);try{t.func(e,t.completed)}catch(t){return Rt().error(Vo,"step mutate failed: "+t,t),void this.hh(!1,0)}}};function Co(t,i){let s;for(let e=i.lastElementChild;e;e=e.previousElementSibling)if(e.getBoundingClientRect().height>0){const i=ks(t,e);if("static"==i.position||"relative"==i.position){s=i;break}}return s?parseInt(s.marginBottom,10):0}function ko(t,i,s){return function(t,i,s){const e=parseInt(ks(t,i)[s],10);return isNaN(e)?0:e}(t,i===t.document.body?t.document.documentElement:i,s)}function No(t,i){return ko(t,i,"scrollPaddingTop")}function Do(t){const i=Ps(t),{win:s}=t;let n;return n=t.isSingleDoc()&&function(t,i){return cs(t).isIos()&&qt(t)&&i.isEmbedded()&&!i.hasCapability("iframeScroll")?Lo.NATURAL_IOS_EMBED:Lo.NATURAL}(s,i)==Lo.NATURAL_IOS_EMBED?new class{constructor(t){this.win=t,this.Xr=gs(t);const i=this.win.document,{documentElement:s}=i,e=s.className;s.classList.add("i-amphtml-ios-embed");const n=i.createElement("html");this.uh=n,n.id="i-amphtml-wrapper",n.className=e,this.lh=new Is,this.ah=new Is,this.dh=this.fh.bind(this),this.ph=()=>this.ah.fire(),this.mh=0,this._h=!1,$t(i,this.Ah.bind(this)),vi(i).then((()=>{s.classList.add("i-amphtml-ios-overscroll")}))}ensureReadyForElements(){this.Ah()}Ah(){if(this._h)return;this._h=!0;const t=this.win.document,i=t.body;t.documentElement.appendChild(this.uh),this.uh.appendChild(i),Object.defineProperty(t,"body",{get:()=>i}),this.fh()}connect(){this.win.addEventListener("resize",this.ph),this.uh.addEventListener("scroll",this.dh)}disconnect(){this.win.removeEventListener("resize",this.ph),this.uh.removeEventListener("scroll",this.dh)}getBorderTop(){return 1}requiresFixedLayerTransfer(){return!Le(this.win,"ios-fixed-no-transfer")||parseFloat(cs(this.win).getIosVersionString())<12.2}overrideGlobalScrollTo(){return!0}supportsPositionFixed(){return!0}onScroll(t){this.lh.add(t)}onResize(t){this.ah.add(t)}updatePaddingTop(t){this.mh=t,Vs(this.uh,{"padding-top":Cs(t)})}hideViewerHeader(t,i){t||this.updatePaddingTop(0)}showViewerHeader(t,i){t||this.updatePaddingTop(i)}disableScroll(){this.uh.classList.add("i-amphtml-scroll-disabled")}resetScroll(){this.uh.classList.remove("i-amphtml-scroll-disabled")}updateLightboxMode(t){return e()}getSize(){return{width:this.win.innerWidth,height:this.win.innerHeight}}getScrollTop(){return this.uh.scrollTop}getScrollLeft(){return 0}getScrollWidth(){return this.uh.scrollWidth}getScrollHeight(){return this.uh.scrollHeight}getContentHeight(){const t=this.win.document.body,{height:i}=t.getBoundingClientRect(),s=Co(this.win,t),e=ks(this.win,t);return parseInt(e.marginTop,10)+this.mh+i+s+parseInt(e.marginBottom,10)}contentHeightChanged(){}getLayoutRect(t,i,s){const e=t.getBoundingClientRect(),n=null!=s?s:this.getScrollTop(),r=null!=i?i:this.getScrollLeft();return Jt(Math.round(e.left+r),Math.round(e.top+n),Math.round(e.width),Math.round(e.height))}getRootClientRectAsync(){return Promise.resolve(null)}setScrollTop(t){this.uh.scrollTop=t||1}fh(t){0==this.uh.scrollTop&&(this.uh.scrollTop=1,t&&t.preventDefault()),t&&this.lh.fire()}getScrollingElement(){return this.uh}getScrollingElementScrollsLikeViewport(){return!1}}(s):new class{constructor(t){this.ampdoc=t,this.win=t.win,this.gh=cs(this.win),this.lh=new Is,this.ah=new Is,this.dh=this.Ph.bind(this),this.ph=()=>this.ah.fire()}Ph(){this.lh.fire()}connect(){this.win.addEventListener("scroll",this.dh),this.win.addEventListener("resize",this.ph)}disconnect(){this.win.removeEventListener("scroll",this.dh),this.win.removeEventListener("resize",this.ph)}ensureReadyForElements(){}getBorderTop(){return 0}requiresFixedLayerTransfer(){return!1}overrideGlobalScrollTo(){return!1}supportsPositionFixed(){return!0}onScroll(t){this.lh.add(t)}onResize(t){this.ah.add(t)}updatePaddingTop(t){Vs(this.win.document.documentElement,{"padding-top":Cs(t)})}hideViewerHeader(t,i){t||this.updatePaddingTop(0)}showViewerHeader(t,i){t||this.updatePaddingTop(i)}disableScroll(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")}resetScroll(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")}updateLightboxMode(t){return e()}getSize(){const t=this.win.innerWidth,i=this.win.innerHeight;if(t&&i)return{width:t,height:i};const s=this.win.document.documentElement;return{width:s.clientWidth,height:s.clientHeight}}getScrollTop(){const t=this.getScrollingElement().scrollTop||this.win.pageYOffset,{host:i}=this.ampdoc.getRootNode();return i?t-i.offsetTop:t}getScrollLeft(){return 0}getScrollWidth(){return this.getScrollingElement().scrollWidth}getScrollHeight(){return this.getScrollingElement().scrollHeight}getContentHeight(){const t=this.getScrollingElement(),i=t.getBoundingClientRect(),s=i.top+this.getScrollTop(),e=cs(this.win).isSafari()?Co(this.win,t):0,n=ks(this.win,t);return s+parseInt(n.marginTop,10)+i.height+e+parseInt(n.marginBottom,10)}contentHeightChanged(){}getLayoutRect(t,i,s){const e=t.getBoundingClientRect(),n=null!=s?s:this.getScrollTop(),r=null!=i?i:this.getScrollLeft();return Jt(Math.round(e.left+r),Math.round(e.top+n),Math.round(e.width),Math.round(e.height))}getRootClientRectAsync(){return Promise.resolve(null)}setScrollTop(t){this.getScrollingElement().scrollTop=t}getScrollingElement(){const t=this.win.document;return t.scrollingElement?t.scrollingElement:t.body&&this.gh.isWebKit()?t.body:t.documentElement}getScrollingElementScrollsLikeViewport(){return!0}}(t),new class{constructor(t,i,s){const{win:e}=t;this.ampdoc=t,this.Eh=this.ampdoc.win.document,this.Zn=i,this.yn=s,this.Th=null,this.Rh=null,this.Ih=null,this.Mh=!1,this.yh=null,this.mh=Number(s.getParam("paddingTop")||0),this.wh=0,this.ln=ps(e),this.Xr=gs(e),this.bh=!1,this.Vh=null,this.Sh=0,this.xh=new Is,this.lh=new Is,this.ah=new Is,this.Oh=void 0,this.Ch=void 0,this.kh=null,this.yn.onMessage("viewport",this.Nh.bind(this)),this.yn.onMessage("scroll",this.Dh.bind(this)),this.yn.onMessage("disableScroll",this.Lh.bind(this)),this.yn.isEmbedded()&&this.Zn.updatePaddingTop(this.mh),this.Zn.onScroll(this.Uh.bind(this)),this.Zn.onResize(this.$h.bind(this)),this.onScroll(this.Fh.bind(this)),this.Bh=!1,this.ampdoc.onVisibilityChanged(this.Hh.bind(this)),this.Hh();const n=this.Eh.documentElement;if(t.isSingleDoc()&&n.classList.add("i-amphtml-singledoc"),s.isEmbedded()?n.classList.add("i-amphtml-embedded"):n.classList.add("i-amphtml-standalone"),qt(e)&&n.classList.add("i-amphtml-iframed"),"1"===s.getParam("webview")&&n.classList.add("i-amphtml-webview"),qt(e)&&"scrollRestoration"in e.history&&(e.history.scrollRestoration="manual"),this.Zn.overrideGlobalScrollTo())try{Object.defineProperty(e,"scrollTo",{value:(t,i)=>this.setScrollTop(i)}),["pageYOffset","scrollY"].forEach((t=>{Object.defineProperty(e,t,{get:()=>this.getScrollTop()})}))}catch(t){}cs(e).isIos()&&qt(e)&&this.ampdoc.isSingleDoc()&&this.ampdoc.whenReady().then((()=>{e.scrollTo(-.1,0)}))}dispose(){this.Zn.disconnect()}ensureReadyForElements(){this.Zn.ensureReadyForElements()}Hh(){const t=this.ampdoc.isVisible();t!=this.Bh&&(this.Bh=t,t?(this.Zn.connect(),this.Rh&&this.$h(),this.Ih&&(this.Ih=null,this.getScrollTop())):this.Zn.disconnect())}getPaddingTop(){return this.mh}getScrollTop(){return null==this.Ih&&(this.Ih=this.Zn.getScrollTop()),this.Ih}getScrollLeft(){return null==this.yh&&(this.yh=this.Zn.getScrollLeft()),this.yh}setScrollTop(t){this.Ih=null,this.Zn.setScrollTop(t)}updatePaddingBottom(t){this.ampdoc.waitForBodyOpen().then((i=>{Ss(i,"borderBottom",`${t}px solid transparent`)}))}getSize(){if(this.Rh)return this.Rh;if(this.Rh=this.Zn.getSize(),0==this.Rh.width||0==this.Rh.height){const t=this.ampdoc.getVisibilityState();t!=Ts.PRERENDER&&t!=Ts.VISIBLE||Math.random()<.01&&Rt().error("Viewport","viewport has zero dimensions")}return this.Rh}getHeight(){return this.getSize().height}getWidth(){return this.getSize().width}getScrollWidth(){return this.Zn.getScrollWidth()}getScrollHeight(){return this.Zn.getScrollHeight()}getContentHeight(){return this.Zn.getContentHeight()}contentHeightChanged(){this.Zn.contentHeightChanged()}getRect(){if(null==this.Th){const t=this.getScrollTop(),i=this.getScrollLeft(),s=this.getSize();this.Th=Jt(i,t,s.width,s.height)}return this.Th}getLayoutRect(t){const i=this.getScrollLeft(),s=this.getScrollTop(),e=Di(t,this.ampdoc.win);if(e){const n=this.Zn.getLayoutRect(t,0,0),r=this.Zn.getLayoutRect(e,i,s);return Jt(Math.round(n.left+r.left),Math.round(n.top+r.top),Math.round(n.width),Math.round(n.height))}return this.Zn.getLayoutRect(t,i,s)}getClientRectAsync(t){const i=this.Xr.measurePromise((()=>t.getBoundingClientRect()));let s=this.Zn.getRootClientRectAsync();const e=Di(t,this.ampdoc.win);return e&&(s=this.Xr.measurePromise((()=>e.getBoundingClientRect()))),Promise.all([i,s]).then((t=>{const i=t[0],s=t[1];return s?Zt(i,s.left,s.top):(e=i,Jt(Number(e.left),Number(e.top),Number(e.width),Number(e.height)));var e}))}supportsPositionFixed(){return this.Zn.supportsPositionFixed()}isDeclaredFixed(t){return!!this.kh&&this.kh.isDeclaredFixed(t)}scrollIntoView(t){return this.jh(t).then((i=>this.zh(t,i)))}zh(t,i){const s=this.Zn.getLayoutRect(t).top,e=No(this.ampdoc.win,i);r((()=>Math.max(0,s-this.mh-e))).then((t=>this.Gh(i,t)))}animateScrollIntoView(t,i="top",s,e){return yt(!e||void 0!==s),this.jh(t).then((n=>this.animateScrollWithinParent(t,n,i,s,e)))}animateScrollWithinParent(t,i,s,e,n){yt(!n||void 0!==e);const r=this.Zn.getLayoutRect(t),{height:h}=this.qh(i)?this.getSize():this.getLayoutRect(i),{win:o}=this.ampdoc,u=No(o,i),l=function(t,i){return ko(t,i,"scrollPaddingBottom")}(o,i);let c=-u;return"bottom"===s?c=-h+l+r.height:"center"===s&&(c=-(h-u-l)/2+r.height/2),this.Wh(i).then((t=>{const s=r.top-this.mh+c,h=Math.max(0,s);if(h!=t)return this.Kh(i,t,h,e,n)}))}Kh(t,i,s,e,n="ease-in"){const r=void 0!==e?e:function(t,i,s=500){return Math.floor(function(t,i,s){return D(0<=s),Math.min(Math.max(t,0),s)}(.65*Math.abs(t-i),0,s))}(i,s),h=(o=i,u=s,t=>o+(u-o)*t);var o,u;return xo.animate(t,(i=>{this.Gh(t,h(i))}),r,n).thenAlways((()=>{this.Gh(t,s)}))}jh(t){return this.Xr.measurePromise((()=>Ct(t,".i-amphtml-scrollable")||this.Zn.getScrollingElement()))}Gh(t,i){this.qh(t)?this.Zn.setScrollTop(i):this.Xr.mutate((()=>{t.scrollTop=i}))}Wh(t){return this.qh(t)?r((()=>this.getScrollTop())):this.Xr.measurePromise((()=>t.scrollTop))}qh(t){return t==this.Zn.getScrollingElement()}getScrollingElement(){return this.Vh?this.Vh:this.Vh=this.Zn.getScrollingElement()}onChanged(t){return this.xh.add(t)}onScroll(t){return this.lh.add(t)}onResize(t){return this.ah.add(t)}enterLightboxMode(t,i){return this.yn.sendMessage("requestFullOverlay",{},!0),this.enterOverlayMode(),this.kh&&this.kh.enterLightbox(t,i),t&&this.maybeEnterFieLightboxMode(t),this.Zn.updateLightboxMode(!0)}leaveLightboxMode(t){return this.yn.sendMessage("cancelFullOverlay",{},!0),this.kh&&this.kh.leaveLightbox(),this.leaveOverlayMode(),t&&this.maybeLeaveFieLightboxMode(t),this.Zn.updateLightboxMode(!1)}isLightboxExperimentOn(){return Le(this.ampdoc.win,"amp-lightbox-a4a-proto")}maybeEnterFieLightboxMode(t){const i=this.Yh(t);i&&(yt(this.isLightboxExperimentOn()),i.enterFullOverlayMode())}maybeLeaveFieLightboxMode(t){const i=this.Yh(t);i&&yt(i).leaveFullOverlayMode()}Yh(t){const i=Di(t,this.ampdoc.win);return i&&i.__AMP_EMBED__}enterOverlayMode(){this.disableTouchZoom(),this.disableScroll()}leaveOverlayMode(){this.resetScroll(),this.restoreOriginalTouchZoom()}disableScroll(){const{win:t}=this.ampdoc,{documentElement:i}=t.document;let s;this.Xr.measure((()=>{const e=ks(t,i).marginRight,n=function(t){const{documentElement:i}=t.document;return t.innerWidth-i.clientWidth}(this.ampdoc.win);s=parseInt(e,10)+n})),this.Xr.mutate((()=>{Ss(i,"margin-right",s,"px"),this.Zn.disableScroll()}))}resetScroll(){const{win:t}=this.ampdoc,{documentElement:i}=t.document;this.Xr.mutate((()=>{Ss(i,"margin-right",""),this.Zn.resetScroll()}))}resetTouchZoom(){const t=this.ampdoc.win.innerHeight,i=this.Eh.documentElement.clientHeight;t&&i&&t===i||this.disableTouchZoom()&&this.ln.delay((()=>{this.restoreOriginalTouchZoom()}),50)}disableTouchZoom(){const t=this.Jh();if(!t)return!1;const i=function(t,i){const s=function(t){const i=Object.create(null);if(!t)return i;const s=t.split(/,|;/);for(let t=0;t<s.length;t++){const e=s[t].split("="),n=e[0].trim();let r=e[1];r=(r||"").trim(),n&&(i[n]=r)}return i}(t);let e=!1;for(const t in i)s[t]!==i[t]&&(e=!0,void 0!==i[t]?s[t]=i[t]:delete s[t]);return e?function(t){let i="";for(const s in t)i.length>0&&(i+=","),t[s]?i+=s+"="+t[s]:i+=s;return i}(s):t}(t.content,{"maximum-scale":"1","user-scalable":"no"});return this.Qh(i)}restoreOriginalTouchZoom(){return void 0!==this.Ch&&this.Qh(this.Ch)}updateFixedLayer(){return this.kh?this.kh.update():e()}addToFixedLayer(t,i){return this.kh?this.kh.addElement(t,i):e()}removeFromFixedLayer(t){this.kh&&this.kh.removeElement(t)}createFixedLayer(t){this.kh=new t(this.ampdoc,this.Xr,this.Zn.getBorderTop(),this.mh,this.Zn.requiresFixedLayerTransfer()),this.ampdoc.whenReady().then((()=>this.kh.setup()))}Qh(t){const i=this.Jh();return!(!i||i.content==t||(i.content=t,0))}Jh(){return qt(this.ampdoc.win)?null:(void 0===this.Oh&&(this.Oh=this.Eh.querySelector("meta[name=viewport]"),this.Oh&&(this.Ch=this.Oh.content)),this.Oh)}Dh(t){const i=t.scrollTop;this.setScrollTop(i)}Nh(t){const i=t.paddingTop,s=t.duration||0,e=t.curve,n=t.transient;if(null!=i&&i!=this.mh&&(this.wh=this.mh,this.mh=i,this.kh)){const t=this.kh.animateFixedElements(this.mh,this.wh,s,e,n);i<this.wh?this.Zn.hideViewerHeader(n,this.wh):t.then((()=>{this.Zn.showViewerHeader(n,i)}))}}Lh(t){t?this.disableScroll():this.resetScroll()}Xh(t,i){const s=this.getSize(),e=this.getScrollTop(),n=this.getScrollLeft();this.xh.fire({relayoutAll:t,top:e,left:n,width:s.width,height:s.height,velocity:i})}Uh(){this.Th=null,this.Sh++,this.yh=this.Zn.getScrollLeft();const t=this.Zn.getScrollTop();if(!(t<0)){if(this.Ih=t,!this.bh){this.bh=!0;const i=Date.now();this.ln.delay((()=>{this.Xr.measure((()=>{this.Zh(i,t)}))}),36)}this.lh.fire()}}Zh(t,i){this.Ih=this.Zn.getScrollTop();const s=this.Ih,e=Date.now();let n=0;e!=t&&(n=(s-i)/(e-t)),Math.abs(n)<.03?(this.Xh(!1,n),this.bh=!1):this.ln.delay((()=>this.Xr.measure(this.Zh.bind(this,e,s))),20)}Fh(){this.Mh||(this.Mh=!0,this.Xr.measure((()=>{this.Mh=!1,this.yn.sendMessage("scroll",{"scrollTop":this.getScrollTop()},!0)})))}$h(){this.Th=null;const t=this.Rh;this.Rh=null;const i=this.getSize();this.updateFixedLayer().then((()=>{const s=!t||t.width!=i.width;this.Xh(s,0),(s||t.height!=i.height)&&this.ah.fire({relayoutAll:s,width:i.width,height:i.height})}))}}(t,n,i)}var Lo={NATURAL:"natural",NATURAL_IOS_EMBED:"natural-ios-embed"};function Uo(t,i){yt(t);try{void 0!==t(i)&&Rt().error("VSYNC","callback returned a value but vsync cannot propagate it: %s",t.toString())}catch(t){return l(t),!1}return!0}function $o(t){if(t.defaultPrevented)return;const i=t.target;if(!i||"FORM"!=i.tagName)return;let s;s=i.classList.contains("i-amphtml-form")?!i.hasAttribute("amp-novalidate"):!i.hasAttribute("novalidate"),s&&i.checkValidity&&!i.checkValidity()&&t.preventDefault();const e=i.elements;for(let t=0;t<e.length;t++)bt(!e[t].name||e[t].name!=rn,"Illegal input name, %s found: %s",rn,e[t]);const n=i.getAttribute("action"),r=i.getAttribute("action-xhr"),h=(i.getAttribute("method")||"GET").toUpperCase();if(r&&(pn(r,i,"action-xhr"),bt(!_n(r),"form action-xhr should not be on AMP CDN: %s",i),Mn(r)),n&&(pn(n,i,"action"),bt(!_n(n),"form action should not be on AMP CDN: %s",i),Mn(n)),"GET"==h)bt(r||n,"form action-xhr or action attribute is required for method=GET: %s",i);else if("POST"==h){if(n){const t="form";It().error(t,"action attribute is invalid for method=POST: %s",i)}r||(t.preventDefault(),bt(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",i))}const o=i.getAttribute("target");o?bt("_blank"==o||"_top"==o,"form target=%s is invalid can only be _blank or _top: %s",o,i):i.setAttribute("target","_top"),r&&(t.preventDefault(),t.stopImmediatePropagation(),Xi(i).execute(i,"submit",null,i,i,t,3))}var Fo=["<link rel=preload referrerpolicy=origin>"],Bo=18e4,Ho=null;function jo(t){var i;(function(t){wi(t,"crypto",class{constructor(t){this.i=t;let i=null,s=!1;t.crypto&&(t.crypto.subtle?i=t.crypto.subtle:t.crypto.webkitSubtle&&(i=t.crypto.webkitSubtle,s=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=i,this.io=s,this.so=null}sha384(t){if("string"==typeof t&&(t=H(t)),!this.subtle||this.so)return(this.so||this.eo()).then((i=>i(t)));try{return this.subtle.digest({name:"SHA-384"},t).then((t=>new Uint8Array(t)),(i=>(i.message&&i.message.indexOf("secure origin")<0&&It().error(xh,"SubtleCrypto failed, fallback to closure lib.",i),this.eo().then((()=>this.sha384(t))))))}catch(i){return Rt().error(xh,"SubtleCrypto failed, fallback to closure lib.",i),this.eo().then((()=>this.sha384(t)))}}sha384Base64(t){return this.sha384(t).then((t=>nh(t)))}uniform(t){return this.sha384(t).then((t=>{let i=0;for(let s=2;s>=0;s--)i=(i+t[s])/256;return i}))}eo(){return this.so?this.so:this.so=hs(this.i).preloadExtension("amp-crypto-polyfill").then((()=>Si(this.i,"crypto-polyfill")))}isPkcsAvailable(){return Boolean(this.subtle)&&!1!==this.i.isSecureContext}importPkcsKey(t){yt(this.isPkcsAvailable());const i=this.io?(s=JSON.stringify(t),"undefined"!=typeof TextEncoder?(new TextEncoder).encode(s):H(unescape(encodeURIComponent(s)))):t;var s;return this.subtle.importKey("jwk",i,this.pkcsAlgo,!0,["verify"])}verifyPkcs(t,i,s){return yt(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,i,s)}})})(t),wi(t,"batched-xhr",sh),Zh(t),co(t),co(i=t),wi(i,"vsync",class{constructor(t){this.win=t,this.ho=is(this.win),this.oo=this.uo(),this.gs=[],this.lo=[],this.co=[],this.ao=[],this.dn=!1,this.do=null,this.fo=null,this.po=this.mo.bind(this),this._o=new yr(this.win,this.po,16),this.Ao=new yr(this.win,this.po,40),this.Po=this.vo.bind(this),this.ho.isSingleDoc()?this.ho.getSingleDoc().onVisibilityChanged(this.Po):Ds(this.win.document,this.Po)}dispose(){Ls(this.win.document,this.Po)}vo(){this.dn&&this.Eo()}run(t,i){this.gs.push(t),this.co.push(i||void 0),this.Is()}runPromise(t,i){if(this.run(t,i),this.do)return this.do;const s=new n;return this.fo=s.resolve,this.do=s.promise}createTask(t){return i=>{this.run(t,i)}}mutate(t){this.run({measure:void 0,mutate:t})}mutatePromise(t){return this.runPromise({measure:void 0,mutate:t})}measure(t){this.run({measure:t,mutate:void 0})}measurePromise(t){return new Promise((i=>{this.measure((()=>{i(t())}))}))}canAnimate(t){return this.To(yt(t))}To(t){if(Ns(this.win.document)!=Ts.VISIBLE)return!1;if(this.ho.isSingleDoc())return this.ho.getSingleDoc().isVisible();if(t){const i=this.ho.getAmpDocIfAvailable(t);return!i||i.isVisible()}return!0}runAnim(t,i,s){return!!this.To(t)&&(this.run(i,s),!0)}createAnimTask(t,i){return s=>this.runAnim(t,i,s)}runAnimMutateSeries(t,i,s){return this.To(t)?new Promise(((e,n)=>{const r=Date.now();let h=0;const o=this.createAnimTask(t,{mutate:t=>{const u=Date.now()-r;i(u,u-h,t)?s&&u>s?n(new Error("timeout")):(h=u,o(t)):e()}});o({})})):Promise.reject(Sn())}Is(){this.dn||(this.dn=!0,this.Eo())}Eo(){this.To()?(this.oo(this.po),this.Ao.schedule()):this._o.schedule()}mo(){this.Ao.cancel(),this.dn=!1;const{fo:t,co:i,gs:s}=this;this.fo=null,this.do=null,this.gs=this.lo,this.co=this.ao;for(let t=0;t<s.length;t++)s[t].measure&&(Uo(s[t].measure,i[t])||(s[t].mutate=void 0));for(let t=0;t<s.length;t++)s[t].mutate&&Uo(s[t].mutate,i[t]);this.lo=s,this.ao=i,this.lo.length=0,this.ao.length=0,t&&t()}uo(){const t=this.win.requestAnimationFrame||this.win.webkitRequestAnimationFrame;if(t)return t.bind(this.win);let i=0;return t=>{const s=Date.now(),e=Math.max(0,16-(s-i));i=s+e,this.win.setTimeout(t,e)}}}),function(t){wi(t,"xhr",ih)}(t),function(t){wi(t,"input",class{constructor(t){this.win=t,this.Ro=this.Io.bind(this),this.Mo=this.yo.bind(this),this.wo=null,this.bo=null,this.Vo=null,this.So="ontouchstart"in t||void 0!==t.navigator.maxTouchPoints&&t.navigator.maxTouchPoints>0||void 0!==t.DocumentTouch,this.xo=!1,this.win.document.addEventListener("keydown",this.Ro),this.win.document.addEventListener("mousedown",this.Mo),this.Oo=!0,this.Co=0,this.ko=new Is,this.No=new Is,this.Do=new Is,this.So&&(this.Oo=!this.So,this.wo=this.Lo.bind(this),qe(t.document,"mousemove",this.wo))}setupInputModeClasses(t){this.onTouchDetected((i=>{this.Uo(t,"amp-mode-touch",i)}),!0),this.onMouseDetected((i=>{this.Uo(t,"amp-mode-mouse",i)}),!0),this.onKeyboardStateChanged((i=>{this.Uo(t,"amp-mode-keyboard-active",i)}),!0)}isTouchDetected(){return this.So}onTouchDetected(t,i){return i&&t(this.isTouchDetected()),this.ko.add(t)}isMouseDetected(){return this.Oo}onMouseDetected(t,i){return i&&t(this.isMouseDetected()),this.No.add(t)}isKeyboardActive(){return this.xo}onKeyboardStateChanged(t,i){return i&&t(this.isKeyboardActive()),this.Do.add(t)}Uo(t,i,s){t.waitForBodyOpen().then((t=>{gs(this.win).mutate((()=>{t.classList.toggle(i,s)}))}))}Io(t){if(this.xo)return;if(t.defaultPrevented)return;const{target:i}=t;i&&("INPUT"==i.tagName||"TEXTAREA"==i.tagName||"SELECT"==i.tagName||"OPTION"==i.tagName||i.hasAttribute("contenteditable"))||(this.xo=!0,this.Do.fire(!0))}yo(){this.xo&&(this.xo=!1,this.Do.fire(!1))}Lo(t){if(t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents)return void this.$o();let i;this.Vo||(this.Vo=this.Fo.bind(this),this.bo=this.$o.bind(this));const s=function(t,i,s,e){let n;const r=new Promise((i=>{n=qe(t,"click",i,void 0)}));return r.then(n,n),e&&e(n),r}(this.win.document,0,0,(t=>{i=t}));return ps(this.win).timeoutPromise(300,s).then(this.bo,(()=>{i&&i(),this.Vo()}))}Fo(){this.Oo=!0,this.No.fire(!0)}$o(){this.Co++,this.Co<=3&&qe(this.win.document,"mousemove",this.wo)}})}(t),function(t){wi(t,"preconnect",class{constructor(t){this.Bo=t.document,this.Ho=t.document.head,this.jo={},this.zo={},this.gh=cs(t),this.jo[on(t.location.href).origin]=!0,this.Go=function(t){if(!Ho){const i=t.document.createElement("link"),s=i.relList;if(i.as="invalid-value",!s||!s.supports)return{};Ho={preconnect:s.supports("preconnect"),preload:s.supports("preload"),onlyValidAs:"invalid-value"!=i.as}}return Ho}(t),this.ln=ps(t)}url(t,i,s){t.whenFirstVisible().then((()=>{this.mi(t,i,s)}))}mi(t,i,s){if(!this.qo(i))return;const{origin:e}=on(i),n=Date.now(),r=this.jo[e];if(r&&n<r)return void(s&&(this.jo[e]=n+Bo));const h=s?Bo:1e4;let o;this.jo[e]=n+h,this.Go.preconnect||(o=this.Bo.createElement("link"),o.setAttribute("rel","dns-prefetch"),o.setAttribute("href",e),this.Ho.appendChild(o));const u=this.Bo.createElement("link");u.setAttribute("rel","preconnect"),u.setAttribute("href",e),u.setAttribute("referrerpolicy","origin"),this.Ho.appendChild(u),this.ln.delay((()=>{o&&o.parentNode&&o.parentNode.removeChild(o),u.parentNode&&u.parentNode.removeChild(u)}),1e4),this.Wo(t,e)}preload(t,i,s){this.qo(i)&&(this.zo[i]||(this.zo[i]=!0,this.url(t,i,!0),this.Go.preload&&("document"==s&&this.gh.isSafari()||t.whenFirstVisible().then((()=>{this.Ko(i)})))))}Ko(t){const i=Ve(this.Bo)(Fo);i.setAttribute("href",t),this.Go.onlyValidAs?i.as="fetch":i.as="",this.Ho.appendChild(i)}qo(t){return!(!t.startsWith("https:")&&!t.startsWith("http:"))}Wo(t,i){if(this.Go.preconnect||!this.gh.isSafari()&&!this.gh.isIos())return;const s=Date.now();this.jo[i]=s+Bo;const e=i+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(s-s%Bo),n=new XMLHttpRequest;n.open("HEAD",e,!0),n.withCredentials=!0,n.send()}})}(t)}function zo(t){yt(!t.getParent()),function(t,i){(function(t){Vi(t,"url",class{constructor(t){const i=t.getRootNode(),s=i.ownerDocument||i;this.Yo=s.createElement("a"),this.Jo=null}parse(t,i){return un(this.Yo,t)}Qo(t){return"string"!=typeof t?t:this.parse(t)}isProtocolValid(t){return An(t)}getSourceOrigin(t){return En(this.Qo(t))}getSourceUrl(t){return vn(this.Qo(t))}resolveRelativeUrl(t,i){return Tn(t,this.Qo(i))}assertHttpsUrl(t,i,s="source"){return pn(t,i,s)}assertAbsoluteHttpOrHttpsUrl(t){return function(t){return bt(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),on(t).href}(t)}isProxyOrigin(t){return _n(this.Qo(t))}isSecure(t){return fn(this.Qo(t))}getWinOrigin(t){return t.origin||this.Qo(t.location.href).origin}getCdnUrlOnOrigin(t){if(_n(t))return t;const{hash:i,host:s,pathname:e,search:n}=this.Qo(t),r=encodeURIComponent(s);return`${et}/c/${r}${e}${n}${i}`}},!0)})(t),function(t){Vi(t,"templates",class{constructor(t){this.zi=t,this.Xo={},this.Zo={}}whenReady(t){return this.tu(t).then(lo)}setHtmlForTemplate(t,i){return this.tu(t).then((t=>this.iu(t,i)))}renderTemplate(t,i){return this.tu(t).then((t=>this.su(t,i)))}renderTemplateAsString(t,i){return this.tu(t).then((t=>t.renderAsString(i)))}getTemplateRenderer(t){return this.tu(t).then((t=>({renderAsString:i=>t.renderAsString(i)})))}renderTemplateArray(t,i){return 0==i.length?Promise.resolve([]):this.tu(t).then((t=>i.map((i=>this.su(t,i)))))}findAndRenderTemplate(t,i,s){return this.renderTemplate(this.findTemplate(t,s),i)}findAndSetHtmlForTemplate(t,i,s){return this.setHtmlForTemplate(this.findTemplate(t,s),i)}findAndRenderTemplateArray(t,i,s){return this.renderTemplateArray(this.findTemplate(t,s),i)}hasTemplate(t,i){return!!this.maybeFindTemplate(t,i)}findTemplate(t,i){const s=this.maybeFindTemplate(t,i);bt(s,"Template not found for %s",t);const e=s.tagName;return bt("TEMPLATE"==e||"SCRIPT"==e&&"text/plain"===s.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag'),s}maybeFindTemplate(t,i){const s=t.getAttribute("template");return s?jt(t).getElementById(s):i?Ot(t,i):t.querySelector('template[type], script[type="text/plain"]')}tu(t){const i=t[uo];if(i)return Promise.resolve(i);let s="";const{tagName:e}=t;"TEMPLATE"==e?s=t.getAttribute("type"):"SCRIPT"==e&&(s=t.getAttribute("template")),bt(s,"Type must be specified: %s",t);let n=t.__AMP_WAIT_;return n||(n=this.eu(t,s).then((i=>{const s=i,e=t[uo]=new s(t,this.zi.win);return delete t.__AMP_WAIT_,e})),t.__AMP_WAIT_=n,n)}eu(t,i){if(this.Xo[i])return this.Xo[i];const s=new n,{promise:e,resolve:r}=s;return this.Xo[i]=e,this.Zo[i]=r,e}nu(t,i){if(this.Xo[t]){const s=this.Zo[t];bt(s,"Duplicate template type: %s",t),delete this.Zo[t],s(i)}else this.Xo[t]=Promise.resolve(i)}su(t,i){return t.render(i)}iu(t,i){return t.setHtml(i)}})}(t),Vi(t,"documentInfo",class{constructor(t){this.zi=t,this.ru=null,this.hu=null}get(){if(this.ru)return this.ru;const t=this.zi,i=vn(t.getUrl()),s=t.getRootNode();let e=s&&s.AMP&&s.AMP.canonicalUrl;if(!e){const t=s.querySelector("link[rel=canonical]");e=t?on(t.href).href:i}const n=function(t){return String(Math.floor(1e4*t.Math.random()))}(t.win),r=function(t){const i=p();if(t.head){const s=t.head.querySelectorAll("link[rel]");for(let t=0;t<s.length;t++){const e=s[t],{href:n}=e,r=e.getAttribute("rel");r&&n&&r.split(/\s+/).forEach((t=>{if(-1!=Oh.indexOf(t))return;let s=i[t];s?(v(s)||(s=i[t]=[s]),s.push(n)):i[t]=n}))}}return i}(t.win.document),h=function(t){const i=t.head.querySelector('meta[name="viewport"]');return i?i.getAttribute("content"):null}(t.win.document),o=function(t){if(!t.isSingleDoc()||"a"!=(i=t.win.location.href,_n(i=hn(i))?i.pathname.split("/",2)[1]:null))return null;var i;const s=Y(on(t.win.location.href).search).amp_r;return void 0===s?null:Y(s)}(t);return this.ru={get sourceUrl(){return vn(t.getUrl())},canonicalUrl:e,pageViewId:n,get pageViewId64(){return this.hu||(this.hu=Sh(t.win)),this.hu},linkRels:r,viewport:h,replaceParams:o}}}),function(t){Vi(t,"cid",class{constructor(t){this.ampdoc=t,this.ou=null,this.Mn=Object.create(null),this.uu=new class{constructor(t){this.zi=t,this.yn=Ps(this.zi),this.lu=null,this.ln=ps(this.zi.win)}isSupported(){return this.yn.isCctEmbedded()&&this.yn.isProxyOrigin()}getScopedCid(t){if(!this.yn.isCctEmbedded())return Promise.resolve(null);if(!this.lu){const t="https://ampcid.google.com/v1/cache:getClientId?key="+rh;this.lu=this.cu(t)}return this.lu.then((i=>i?this.au(i,t):null))}cu(t,i=!0){const s={"publisherOrigin":En(this.zi.win.location)},e="fetchCidTimeout";return this.ln.timeoutPromise(3e4,Es(this.zi.win).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:s}),e).then((t=>t.json().then((t=>{if(t.optOut)return null;const s=t.publisherClientId;if(!s&&i&&t.alternateUrl){const i=`${t.alternateUrl}?key=${rh}`;return this.cu(i,!1)}return s})))).catch((t=>(t&&t.response?t.response.json().then((t=>{Rt().error(hh,JSON.stringify(t))})):t&&t.message==e?Rt().expectedError(hh,t):Rt().error(hh,t),null)))}au(t,i){const s=t+";"+i;return ns(this.zi.win).sha384Base64(s).then((t=>"amp-"+t))}}(t),this.du=new class{constructor(t){this.zi=t,this.yn=Ps(this.zi);const{canonicalUrl:i}=rs(this.zi);this.fu=i?on(i).origin:null}isSupported(){return this.yn.hasCapability("cid")?this.yn.isTrustedViewer():Promise.resolve(!1)}getScopedCid(t,i){const s={"scope":i,"clientIdApi":!!t,"canonicalOrigin":this.fu};return t&&(s.apiKey=t),this.yn.sendMessageAwaitResponse("cid",s)}}(t),this.pu=new class{constructor(t){this.i=t.win,this.ln=ps(this.i),this.mu={};const{canonicalUrl:i}=rs(t);this.fu=i?on(i).origin:null}getScopedCid(t,i){if(this.mu[i])return this.mu[i];let s;return this.mu[i]=this.ln.poll(200,(()=>(s=uh(this.i,dh),s!==fh))).then((()=>{if(s===ph)return ph;if((s!==mh||!this._u())&&this.Au(s))return null;s&&!this.Au(s)||this.gu(fh,_h);const e="https://ampcid.google.com/v1/publisher:getClientId?key="+t;return this.cu(e,i,s).then((e=>{const n=this.v(e);if(!n&&e.alternateUrl){const n=`${e.alternateUrl}?key=${t}`;return this.cu(n,i,s).then(this.v.bind(this))}return n})).catch((t=>(this.gu("$ERROR",_h),t&&t.response?t.response.json().then((t=>{Rt().error(ah,JSON.stringify(t))})):Rt().error(ah,t),null)))}))}cu(t,i,s){const e={"originScope":i,"canonicalOrigin":this.fu};return s&&(e.securityToken=s),this.ln.timeoutPromise(_h,Es(this.i).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:e}).then((t=>t.json())))}v(t){return t.optOut?(this.gu(ph,Ah),ph):t.clientId?(this.gu(t.securityToken,Ah),t.clientId):(t.alternateUrl||this.gu(mh,36e5),null)}gu(t,i){t&&lh(this.i,dh,t,this.Pu(i),{highestAvailableDomain:!0})}Pu(t){return this.i.Date.now()+t}_u(){return _n($s.getDocumentReferrer(this.i))}Au(t){return t&&"$"===t[0]}}(t),this.vu=null}get(t,i,s){return bt(gh.test(t.scope)&&gh.test(t.cookieName),"The CID scope and cookie name must only use the characters [a-zA-Z0-9-_.]+\nInstead found: %s",t.scope),i.then((()=>this.ampdoc.whenFirstVisible())).then((()=>{return t=this.ampdoc,fs(t).then((t=>t.get(vh).then((t=>!!t)))).catch((()=>!1));var t})).then((e=>{if(e)return"";const n=this.Eu(t,s||i);return ps(this.ampdoc.win).timeoutPromise(1e4,n,`Getting cid for "${t.scope}" timed out`).catch((t=>{l(t)}))}))}optOut(){return t=this.ampdoc,Ps(t).sendMessage("cidOptOut",{}),fs(t).then((t=>t.set(vh,!0)));var t}Eu(t,i){const{scope:s}=t,e=on(this.ampdoc.win.location.href);if(!_n(e)){const e=this.Tu(s);return e?this.pu.getScopedCid(e,s).then((e=>{if(e==ph)return null;if(e){const i=t.cookieName||s;return Ih(this.ampdoc.win,i,e),e}return yh(this,t,i)})):yh(this,t,i)}return this.du.isSupported().then((t=>{if(t){const t=this.Tu(s);return this.du.getScopedCid(t,s)}return this.uu.isSupported()&&this.Tu(s)?this.uu.getScopedCid(s).then((t=>t||this.Ru(i,s,e))):this.Ru(i,s,e)}))}Ru(t,i,s){return function(t,i){if(t.ou)return t.ou;const{win:s}=t.ampdoc;return t.ou=function(t){const{win:i}=t;let s;try{s=i.localStorage.getItem("amp-cid")}catch(t){}let e=Promise.resolve(s);return!s&&qt(i)&&(e=bh(t)),e.then((t=>{if(!t)return null;const i=B(t);return{time:i.time,cid:i.cid}}))}(t.ampdoc).then((e=>{let n,r=!1;return e&&!function(t){const i=t.time,s=Date.now();return i+Ph<s}(e)?(n=Promise.resolve(e.cid),e.time+864e5<Date.now()&&(r=!0)):(n=ns(s).sha384Base64(Vh(s)),r=!0),r&&n.then((s=>{!function(t,i,s){const{win:e}=t;qt(e)?bh(t,wh(s)):i.then((()=>{try{e.localStorage.setItem("amp-cid",wh(s))}catch(t){}}))}(t.ampdoc,i,s)})),n}))}(this,t).then((t=>ns(this.ampdoc.win).sha384Base64(t+function(t){return bt(_n(t),"Expected proxy origin %s",t.origin),En(t)}(s)+i)))}Tu(t){return this.vu||(this.vu=this.Iu()),this.vu[t]}Iu(){const t={},i=this.ampdoc.getMetaByName("amp-google-client-id-api");return i&&i.split(",").forEach((i=>{if((i=i.trim()).indexOf("=")>0){const s=i.split("="),e=s[0].trim();t[e]=s[1].trim()}else{const s=i,e=Eh[s];e&&(t[e]=Th[s])}})),t}})}(t),function(t){Vi(t,"viewer",class{constructor(t){this.ampdoc=t,this.win=t.win,this.Mu=qt(this.win),this.yu=!0,this.wu=!1,this.bu=p(),this.Vu=p(),this.Su=new Is,this.xu=new Is,this.Ou=null,this.Cu=null,this.ku=[],this.Nu=p(),this.Du=p(),t.isSingleDoc()&&Object.assign(this.Du,Y(this.win.location.hash)),this.yu=!parseInt(t.getParam("off"),10),this.wu=!(!parseInt(t.getParam("history"),10)&&!this.wu),this.Lu=null,this.Uu=_n(on(this.ampdoc.win.location.href));const i=new n;this.$u=i.resolve,this.Fu=this.Bu(i.promise),this.Hu=null,this.ju=null;const s=t.getParam("referrer");if(this.zu=this.isEmbedded()&&null!=s&&!1!==this.Gu()?s:this.win.document.referrer,this.qu=new Promise((i=>{this.isEmbedded()&&null!=t.getParam("referrer")?this.isTrustedViewer().then((s=>{s?i(t.getParam("referrer")):(i(this.win.document.referrer),this.zu!=this.win.document.referrer&&(Rt().expectedError(To,"Untrusted viewer referrer override: "+this.zu+" at "+this.Cu),this.zu=this.win.document.referrer))})):i(this.win.document.referrer)})),this.Wu=mn(this.win.location.href||""),this.Ku=new Promise((i=>{const s=t.getParam("viewerUrl");this.isEmbedded()&&s?this.isTrustedViewer().then((t=>{t?this.Wu=yt(s):Rt().expectedError(To,"Untrusted viewer url override: "+s+" at "+this.Cu),i(this.Wu)})):i(this.Wu)})),this.Du.click){const t=mn(this.win.location.href);t!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.replaceState({},"",t),delete this.Du.click)}this.ampdoc.whenFirstVisible().then((()=>{this.maybeUpdateFragmentForCct()})),this.ampdoc.isSingleDoc()&&this.Yu()}Bu(t){if(!(this.Mu&&!this.win.__AMP_TEST_IFRAME&&(this.ampdoc.getParam("origin")||this.ampdoc.getParam("visibilityState")||-1!=this.win.location.search.indexOf("amp_js_v"))||this.isWebviewEmbedded()||this.isCctEmbedded())&&this.ampdoc.isSingleDoc())return null;const i="initMessagingChannel timeout";return ps(this.win).timeoutPromise(2e4,t,i).catch((t=>{let s=Mo(t);throw s&&R(s.message,i)&&(s=Rt().createExpectedError(s)),Vn(s),s}))}getAmpDoc(){return this.ampdoc}getParam(t){return this.ampdoc.getParam(t)}hasCapability(t){const i=this.ampdoc.getParam("cap");return!!i&&-1!=i.split(",").indexOf(t)}isEmbedded(){return!!this.Fu}isWebviewEmbedded(){return!this.Mu&&"1"==this.ampdoc.getParam("webview")}isCctEmbedded(){if(null!=this.Lu)return this.Lu;if(this.Lu=!1,!this.Mu){const t=Y(this.win.location.search);this.Lu="1"===t.amp_gsa&&(t.amp_js_v||"").startsWith("a")}return this.Lu}isProxyOrigin(){return this.Uu}maybeUpdateFragmentForCct(){if(!this.isCctEmbedded())return;if(!this.win.history.replaceState)return;const t=En(this.win.location.href),{canonicalUrl:i}=rs(this.ampdoc),s=En(i);this.Ju(t,s)&&(this.Du.ampshare=i,this.win.history.replaceState({},"","#"+dn(this.Du)))}Ju(t,i){const s=t=>t.split(".").length>2?t.replace(Io,"$1"):t;return s(t)==s(i)}isRuntimeOn(){return this.yu}toggleRuntime(){this.yu=!this.yu,this.Su.fire(this.yu)}onRuntimeState(t){return this.Su.add(t)}isOvertakeHistory(){return this.wu}getVisibilityState(){return this.ampdoc.getVisibilityState()}isVisible(){return this.ampdoc.isVisible()}hasBeenVisible(){return this.ampdoc.hasBeenVisible()}whenFirstVisible(){return this.ampdoc.whenFirstVisible()}whenNextVisible(){return this.ampdoc.whenNextVisible()}getFirstVisibleTime(){return this.ampdoc.getFirstVisibleTime()}getLastVisibleTime(){return this.ampdoc.getLastVisibleTime()}onVisibilityChanged(t){return this.ampdoc.onVisibilityChanged(t)}Qu(t){var i;t&&(yt("prerender"===(i=t)||"preview"===i||"visible"===i||"hidden"===i||"paused"===i||"inactive"===i),t===Ts.HIDDEN&&(t=null!=this.ampdoc.getLastVisibleTime()?Ts.INACTIVE:Ts.PRERENDER),this.ampdoc.overrideVisibilityState(t))}getResolvedViewerUrl(){return this.Wu}getViewerUrl(){return this.Ku}maybeGetMessagingOrigin(){return this.Cu}getUnconfirmedReferrerUrl(){return this.zu}getReferrerUrl(){return this.qu}isTrustedViewer(){if(!this.Hu){const t=this.Gu();this.Hu=void 0!==t?Promise.resolve(t):this.Fu.then((t=>!!t&&this.Xu(t)))}return this.Hu}Gu(){return!!this.isEmbedded()&&(!this.win.location.ancestorOrigins||this.isWebviewEmbedded()||this.isCctEmbedded()?void 0:this.win.location.ancestorOrigins.length>0&&this.Xu(this.win.location.ancestorOrigins[0]))}getViewerOrigin(){if(!this.ju){let t;this.isEmbedded()?this.win.location.ancestorOrigins&&this.win.location.ancestorOrigins.length>0&&(t=this.win.location.ancestorOrigins[0]):t="",this.ju=void 0!==t?Promise.resolve(t):ps(this.win).timeoutPromise(1e3,this.Fu).catch((()=>""))}return this.ju}Xu(t){const i=on(t),{protocol:s}=i;return"x-thread:"==s||"https:"==s&&ut.some((t=>t.test(i.hostname)))}onMessage(t,i){let s=this.bu[t];s||(s=new Is,this.bu[t]=s);const e=s.add(i);return this.Nu[t]&&(this.Nu[t].forEach((t=>{s.fire(t.data),t.deferred.resolve()})),this.Nu[t]=[]),e}onMessageRespond(t,i){return this.Vu[t]=i,this.Nu[t]&&(this.Nu[t].forEach((t=>{t.deferred.resolve(i(t.data))})),this.Nu[t]=[]),()=>{this.Vu[t]===i&&delete this.Vu[t]}}receiveMessage(t,i,s){if("visibilitychange"==t)return this.Qu(i.state),e();if("broadcast"==t)return this.xu.fire(i),e();const r=this.bu[t],h=this.Vu[t];if(!r&&!h){if(this.Nu[t]=this.Nu[t]||[],this.Nu[t].length>=50)return;const s=new n;return this.Nu[t].push({data:i,deferred:s}),s.promise}return r&&r.fire(i),h?h(i):r?e():void 0}setMessageDeliverer(t,i){if(this.Ou)throw new Error("message channel can only be initialized once");if(null==i)throw new Error("message channel must have an origin");if(this.Ou=t,this.Cu=i,this.$u(i),this.ku.length>0){const t=this.ku.slice(0);this.ku=[],t.forEach((t=>{const i=this.Ou(t.eventType,t.data,t.awaitResponse);t.awaitResponse&&t.responseResolver(i)}))}}maybeGetMessageDeliverer(){return this.Ou}sendMessage(t,i,s=!1){this.st(t,i,s,!1)}sendMessageAwaitResponse(t,i,s=!1){return this.st(t,i,s,!0)}st(t,i,s,h){if(this.Ou)return r((()=>this.Ou(t,i,h)));if(!this.Fu)return h?Promise.reject(Mo()):e();if(!s)return this.Fu.then((()=>this.Ou(t,i,h)));const o=I(this.ku,(i=>i.eventType==t));let u;if(-1!=o)u=this.ku.splice(o,1)[0],u.data=i,u.awaitResponse=u.awaitResponse||h;else{const s=new n,{promise:e,resolve:r}=s;u={eventType:t,data:i,awaitResponse:h,responsePromise:e,responseResolver:r}}return this.ku.push(u),u.responsePromise}broadcast(t){return this.Fu?this.st("broadcast",t,!1,!1).then((()=>!0),(()=>!1)):Promise.resolve(!1)}onBroadcast(t){return this.xu.add(t)}whenMessagingReady(){return this.Fu}replaceUrl(t){if(t&&this.ampdoc.isSingleDoc()&&this.win.history.replaceState)try{const i=on(this.win.location.href),s=on(mn(t)+this.win.location.hash);i.origin==s.origin&&En(i)==En(s)&&(this.win.history.replaceState({},"",s.href),this.win.location.originalHref=i.href)}catch(t){Rt().error(To,"replaceUrl failed",t)}}Yu(){if(this.ampdoc.getVisibilityState()==Ts.VISIBLE)return;const t=[],i=()=>t.forEach((t=>t())),s=()=>{this.Qu(Ts.VISIBLE),i(),Rt().expectedError(To,"Received user action in non-visible doc")},e={capture:!0,passive:!0};t.push(ze(this.win,"keydown",s,e),ze(this.win,"touchstart",s,e),ze(this.win,"mousedown",s,e)),this.whenFirstVisible().then(i)}},!0)}(t),function(t){Vi(t,"viewport",Do,!0)}(t),function(t){Vi(t,"hidden-observer",class{constructor(t){this.Zu=t.getRootNode();const i=this.Zu.ownerDocument||this.Zu;this.i=yt(i.defaultView),this.tl=null,this.il=null}add(t){this.sl();const i=this.il.add(t);return()=>{i(),0===this.il.getHandlerCount()&&this.dispose()}}sl(){if(this.tl)return;this.il=new Is;const t=new this.i.MutationObserver((t=>{t&&this.il.fire(t)}));this.tl=t,t.observe(this.Zu,Ch)}dispose(){this.tl&&(this.tl.disconnect(),this.il.removeAll(),this.tl=null,this.il=null)}})}(t),function(t){Vi(t,"history",Lh)}(t),function(t){Vi(t,"resources",class{constructor(t){this.ampdoc=t,this.win=t.win,this.yn=Ps(t),this.yu=this.yn.isRuntimeOn(),this.nl=!1,this.rl=0,this.Ti=[],this.hl=0,this.ol=0,this.ul=0,this.Bh=this.ampdoc.isVisible(),this.ll=!1,this.cl=!0,this.al=!1,this.dl=-1,this.fl=!0,this.pl=-1,this.ml=0,this._l=0,this._n=new yr(this.win,(()=>this.doPass())),this.Al=new yr(this.win,(()=>{this.fl=!0,this.schedulePass()})),this.gl=new to,this.ns=new to,this.Pl=this.vl.bind(this),this.El=[],this.Tl=[],this.Rl=!1,this.Il=vs(this.ampdoc),this.Xr=gs(this.win),this.Ml=new $h(this.win,6e4),this.yl=!1,this.wl=0,this.bl=!1,this.Vl=[],this.Sl=[],this.xl=new n,this.Ol=new class{constructor(t){this.yi=t,this.Cl=p()}addTransition(t,i,s){const e=this.kl(t,i);D(!this.Cl[e]),this.Cl[e]=s}setState(t){const i=this.yi;this.yi=t;const s=this.kl(i,t),e=this.Cl[s];null==e||e()}kl(t,i){return`${t}|${i}`}}(this.ampdoc.getVisibilityState()),this.Il.onChanged((t=>{this.ml=this.win.Date.now(),this._l=t.velocity,t.relayoutAll&&(this.fl=!0,this.bl=!0),this.schedulePass()})),this.Il.onScroll((()=>{this.ml=this.win.Date.now()})),this.ampdoc.onVisibilityChanged((()=>{-1==this.dl&&this.ampdoc.isVisible()&&(this.dl=this.win.Date.now()),this.schedulePass()})),this.yn.onRuntimeState((t=>{this.yu=t,this.schedulePass(1)})),jn(this.ampdoc,(()=>{this.Nl(this.Ol),this.schedulePass(0)})),this.Dl(),this.Zh=z(this.win,(t=>this.Ll(t)),250),ze(this.win.document,"scroll",this.Zh,{capture:!0,passive:!0})}Dl(){this.ampdoc.whenReady().then((()=>{this.ll=!0,this.Ul(),this.Tl=null,(t=>Si(t,"input"))(this.win).setupInputModeClasses(this.ampdoc)}))}get(){return this.Ti.slice(0)}getAmpdoc(){return this.ampdoc}getResourceForElement(t){return kn.forElement(t)}getResourceForElementOptional(t){return kn.forElementOptional(t)}getScrollDirection(){return Math.sign(this._l)||1}add(t){this.hl++,1==this.hl&&this.Il.ensureReadyForElements();let i=kn.forElementOptional(t);i&&0!=i.getState()&&!t.reconstructWhenReparented()?i.requestMeasure():i=new kn(++this.rl,t,this),this.Ti.push(i),this.Al.schedule(1e3)}$l(){return this.ol<20||this.ampdoc.getVisibilityState()==Ts.PREVIEW||this.ampdoc.hasBeenVisible()}Fl(t,i=!1,s=!1){if(!this.yu&&!this.nl)return;const e=this.ampdoc.getVisibilityState(),n=e==Ts.PRERENDER&&!t.prerenderAllowed(),r=e==Ts.PREVIEW&&!t.previewAllowed();n||r||(this.ll?this.Bl(t,s):t.isBuilt()||t.isBuilding()||i&&this.Tl.includes(t)||(this.Tl.push(t),this.Ul()))}Ul(){if(!this.Rl)try{this.Rl=!0,this.Hl()}finally{this.Rl=!1}}Hl(){for(let t=0;t<this.Tl.length;t++){const i=this.Tl[t];(this.ll||zt(i.element,this.ampdoc.getRootNode()))&&(this.Tl.splice(t--,1),this.Bl(i))}}Bl(t,i=!1){if(!i&&!this.$l()&&!t.isBuildRenderBlocking())return null;const s=t.build();return s?(this.ol++,this.ul++,s.then((()=>this.schedulePass()),(i=>{if(this.jl(t),!xn(i))throw i}))):null}remove(t){const i=kn.forElementOptional(t);i&&this.jl(i)}jl(t){const i=this.Ti.indexOf(t);-1!=i&&this.Ti.splice(i,1),t.isBuilt()&&t.pauseOnRemove(),3===t.getState()&&t.layoutCanceled(),this.zl(t,!0)}upgraded(t){const i=kn.forElement(t);this.Fl(i)}updateLayoutPriority(t,i){const s=kn.forElement(t);s.updateLayoutPriority(i),this.ns.forEach((t=>{t.resource==s&&(t.priority=i)})),this.schedulePass()}schedulePass(t){return this._n.schedule(t)}updateOrEnqueueMutateTask(t,i){let s=null;for(let i=0;i<this.El.length;i++)if(this.El[i].resource==t){s=this.El[i];break}s?(s.newHeight=i.newHeight,s.newWidth=i.newWidth,s.marginChange=i.marginChange,s.event=i.event,s.force=i.force||s.force,s.callback=i.callback):this.El.push(i)}schedulePassVsync(){this.yl||(this.yl=!0,this.Xr.mutate((()=>this.doPass())))}ampInitComplete(){this.al=!0,this.schedulePass()}setRelayoutTop(t){-1==this.pl?this.pl=t:this.pl=Math.min(t,this.pl)}maybeHeightChanged(){this.bl=!0}onNextPass(t){this.Vl.push(t)}doPass(){if(this.yu){if(this.Bh=this.ampdoc.isVisible(),this.ul=0,this.ll&&this.cl&&this.al){var t;this.cl=!1;const i=this.win.document,s=rs(this.ampdoc);this.yn.sendMessage("documentLoaded",{"title":i.title,"sourceUrl":vn(this.ampdoc.getUrl()),"isStory":"AMP-STORY"===(null===(t=i.body.firstElementChild)||void 0===t?void 0:t.tagName),"serverLayout":i.documentElement.hasAttribute("i-amphtml-element"),"linkRels":s.linkRels,"metaTags":{"viewport":s.viewport},"viewport":s.viewport},!0),this.wl=this.Il.getContentHeight(),this.yn.sendMessage("documentHeight",{"height":this.wl},!0)}!this.cl&&this.Gl&&this.Ti.every((t=>t.getState()!=kn.NOT_BUILT||t.element.R1()))&&(this.Gl=!1,this.bl=!0),this.Il.getSize(),this._n.cancel(),this.yl=!1,this.Ol.setState(this.ampdoc.getVisibilityState()),this.ql(),this.bl&&(this.bl=!1,this.Xr.measure((()=>{const t=this.Il.getContentHeight();t!=this.wl&&(this.yn.sendMessage("documentHeight",{"height":t},!0),this.wl=t,this.Il.contentHeightChanged())})));for(let t=0;t<this.Vl.length;t++)(0,this.Vl[t])();this.Vl.length=0}}ql(){this.ll&&this.al&&!this.ampdoc.signals().get(Nn)&&this.ampdoc.signals().signal(Nn)}Wl(){return this.El.length>0}Kl(){const t=this.win.Date.now(),i=this.Il.getRect(),s=i.height/10,e=i.height/10,n=Math.abs(this._l)<.01&&t-this.ml>500||t-this.ml>1e3;if(this.El.length>0){const t=this.El;this.El=[];let r=-1;const h=[];let o=0;for(let u=0;u<t.length;u++){const l=t[u],{event:c,resource:a}=l,d=a.getLayoutBox();let f,p=0,m=0,_=0,A=0,{bottom:P,top:g}=d;if(l.marginChange){f=l.marginChange.newMargins;const t=l.marginChange.currentMargins;null!=f.top&&(p=f.top-t.top),null!=f.bottom&&(m=f.bottom-t.bottom),null!=f.left&&(_=f.left-t.left),null!=f.right&&(A=f.right-t.right),p&&(g=d.top-t.top),m&&(P=d.bottom+t.bottom)}const v=l.newHeight-d.height,E=l.newWidth-d.width;let T=!1;if(0==v&&0==p&&0==m&&0==E&&0==_&&0==A);else if(l.force||!this.Bh)T=!0;else if(this.Ml.hasDescendantsOf(a.element)||c&&c.userActivation&&c.userActivation.hasBeenActive)T=!0;else if(g>=i.bottom-e||0==p&&d.bottom+Math.min(v,0)>=i.bottom-e)T=!0;else{if(i.top>1&&P<=i.top+s){if(v<0&&i.top+o<-v)continue;n?(o+=v,h.push(l)):this.El.push(l);continue}this.Yl(a,d)?T=!0:v<0||p<0||m<0||(l.newHeight==d.height?this.Xr.run({measure:t=>{t.resize=!1;const i=a.element.parentElement;if(!i)return;const s=i.getLayoutSize&&i.getLayoutSize().width||i.offsetWidth;let e=E;for(let t=0;t<i.childElementCount;t++)if(e+=i.children[t].offsetWidth,e>s)return;t.resize=!0},mutate:t=>{t.resize&&l.resource.changeSize(l.newHeight,l.newWidth,f),l.resource.overflowCallback(!t.resize,l.newHeight,l.newWidth,f)}},{}):l.resource.overflowCallback(!0,l.newHeight,l.newWidth,f))}T&&(d.top>=0&&(r=-1==r?d.top:Math.min(r,d.top)),l.resource.changeSize(l.newHeight,l.newWidth,f),l.resource.overflowCallback(!1,l.newHeight,l.newWidth,f),this.bl=!0),l.callback&&l.callback(T)}-1!=r&&this.setRelayoutTop(r),h.length>0&&this.Xr.run({measure:t=>{t.scrollHeight=this.Il.getScrollHeight(),t.scrollTop=this.Il.getScrollTop()},mutate:t=>{let i=-1;h.forEach((t=>{const s=t.resource.getLayoutBox();i=-1==i?s.top:Math.min(i,s.top),t.resource.changeSize(t.newHeight,t.newWidth,t.marginChange?t.marginChange.newMargins:void 0),t.callback&&t.callback(!0)})),-1!=i&&this.setRelayoutTop(i);const s=this.Il.getScrollHeight();s!=t.scrollHeight&&this.Il.setScrollTop(t.scrollTop+(s-t.scrollHeight)),this.bl=!0}},{})}}Yl(t,i,s){const e=this.Il.getContentHeight(),n=Math.max(.85*e,e-1e3),r=i||t.getLayoutBox(),h=s||t.getInitialLayoutBox();return r.bottom>=n||h.bottom>=n}Jl(t){const i=t.isDisplayed();return t.measure(),!(i&&!t.isDisplayed())}Ql(t){t.length&&this.Xr.mutate((()=>{t.forEach((t=>{t.unload(),this.zl(t)}))}))}Xl(){const t=this.win.Date.now(),{Sl:i,fl:s,pl:e}=this;this.fl=!1,this.pl=-1;let n,r=0,h=0;for(let t=0;t<this.Ti.length;t++){const i=this.Ti[t];0!=i.getState()||i.isBuilding()||i.element.R1()||this.Fl(i,!0),!s&&i.hasBeenMeasured()&&1!=i.getState()||r++,i.isMeasureRequested()&&h++}if(r>0||h>0||s||-1!=e||i.length>0)for(let t=0;t<this.Ti.length;t++){const r=this.Ti[t];if(r.hasOwner()&&!r.isMeasureRequested()||r.element.R1())continue;let h=s||1==r.getState()||!r.hasBeenMeasured()||r.isMeasureRequested()||-1!=e&&r.getLayoutBox().bottom>=e;if(!h)for(let t=0;t<i.length;t++)if(i[t].contains(r.element)){h=!0;break}h&&(this.Jl(r)||(n||(n=[]),n.push(r)))}i.length=0,n&&this.Ql(n);const o=this.Il.getRect();let u;u=this.Bh?Xt(o,.25,2):o;const l=this.Bh?Xt(o,.25,.25):o;for(let t=0;t<this.Ti.length;t++){const i=this.Ti[t];if(0==i.getState()||i.hasOwner()||i.element.R1())continue;const s=this.Bh&&i.isDisplayed()&&i.overlaps(l);i.setInViewport(s)}if(u)for(let t=0;t<this.Ti.length;t++){const i=this.Ti[t];i.isBuilt()||i.isBuilding()||i.hasOwner()||i.element.R1()||!i.hasBeenMeasured()||!i.isDisplayed()||!i.overlaps(u)||this.Fl(i,!0,!0),2!=i.getState()||i.hasOwner()||i.isDisplayed()&&i.overlaps(u)&&this.scheduleLayoutOrPreload(i,!0)}if(this.Bh&&this.Zl(t)){let t=0;for(let i=0;i<this.Ti.length&&t<4;i++){const s=this.Ti[i];2==s.getState()&&!s.hasOwner()&&!s.element.R1()&&s.isDisplayed()&&s.idleRenderOutsideViewport()&&(this.scheduleLayoutOrPreload(s,!1),t++)}for(let i=0;i<this.Ti.length&&t<4;i++){const s=this.Ti[i];2!=s.getState()||s.hasOwner()||s.element.R1()||!s.isDisplayed()||(this.scheduleLayoutOrPreload(s,!1),t++)}}}Zl(t=Date.now()){const i=this.gl.getLastDequeueTime();return 0==this.gl.getSize()&&0==this.ns.getSize()&&t>i+5e3&&i>0}tc(){const t=this.win.Date.now();let i=-1,s=this.ns.peek(this.Pl);for(;s&&(i=this.ic(s),!(i>16));){this.ns.dequeue(s);const e=this.gl.getTaskById(s.id);if(e){const t=this.sc.bind(this,s);e.promise.then(t,t)}else{const{resource:i}=s,e=!0;i.measure(),e&&this.ec(i,s.forceOutsideViewport)?(s.promise=s.callback(),s.startTime=t,this.gl.enqueue(s),s.promise.then(this.nc.bind(this,s,!0),this.nc.bind(this,s,!1)).catch(Vn)):i.layoutCanceled()}s=this.ns.peek(this.Pl),i=-1}if(i>=0)return i;let e=2*(t-this.gl.getLastDequeueTime());return e=Math.max(Math.min(3e4,e),5e3),e}vl(t){const i=this.Il.getRect(),s=t.resource.getLayoutBox();let e=Math.floor((s.top-i.top)/i.height);return Math.sign(e)!=this.getScrollDirection()&&(e*=2),e=Math.abs(e),10*t.priority+e}ic(t){const i=this.win.Date.now();if(0==this.gl.getSize()){if(-1===this.dl)return 0;const s=1e3*t.priority;return Math.max(s-(i-this.dl),0)}let s=0;return this.gl.forEach((e=>{const n=Math.max(1e3*(t.priority-e.priority),0);s=Math.max(s,n-(i-e.startTime))})),s}sc(t){this.ns.getTaskById(t.id)||this.ns.enqueue(t)}nc(t,i,s){if(this.gl.dequeue(t),this.schedulePass(1e3),!i)return Promise.reject(s)}ec(t,i){if(0==t.getState()||!t.isDisplayed())return!1;const s=this.ampdoc.getVisibilityState(),e=s==Ts.PRERENDER&&t.prerenderAllowed(),n=s==Ts.PREVIEW&&t.previewAllowed();return!!(this.Bh||e||n)&&!!(i||t.isInViewport()||t.renderOutsideViewport()||t.idleRenderOutsideViewport())}scheduleLayoutOrPreload(t,i,s,e){if(t.element.R1())return;const n=0!=t.getState(),r=t.isDisplayed();n&&r||yt(!1);const h=e||!1;this.ec(t,h)&&(i?this.Is(t,"L",0,s||0,h,t.startLayout.bind(t)):this.Is(t,"P",2,s||0,h,t.startLayout.bind(t)))}Is(t,i,s,e,n,r){const h=t.getTaskId(i),o={id:h,resource:t,priority:Math.max(t.getLayoutPriority(),e)+s,forceOutsideViewport:n,callback:r,scheduleTime:this.win.Date.now(),startTime:0,promise:null},u=this.ns.getTaskById(h);(!u||o.priority<u.priority)&&(u&&this.ns.dequeue(u),this.ns.enqueue(o),this.schedulePass(this.ic(o))),o.resource.layoutScheduled(o.scheduleTime)}whenFirstPass(){return this.xl.promise}Nl(t){const{HIDDEN:i,INACTIVE:s,PAUSED:e,PRERENDER:n,PREVIEW:r,VISIBLE:h}=Ts,o=()=>{const t=this.Il.getSize();if(t.height>0&&t.width>0){this.Wl()&&this.Kl(),this.Xl();let t=this.tc();this.Wl()&&(t=Math.min(t,500)),this.Bh&&this.schedulePass(t),this.xl.resolve()}},u=()=>{},l=()=>{this.Ti.forEach((t=>t.pause()))},c=()=>{this.Ti.forEach((t=>{t.unload(),this.zl(t)})),this.rc()},a=()=>{this.Ti.forEach((t=>t.resume())),o()};t.addTransition(n,n,o),t.addTransition(n,r,o),t.addTransition(n,h,o),t.addTransition(n,i,o),t.addTransition(n,s,o),t.addTransition(n,e,o),t.addTransition(r,r,o),t.addTransition(r,h,o),t.addTransition(r,i,o),t.addTransition(r,s,o),t.addTransition(r,e,o),t.addTransition(h,h,o),t.addTransition(h,i,o),t.addTransition(h,s,c),t.addTransition(h,e,l),t.addTransition(i,h,o),t.addTransition(i,i,o),t.addTransition(i,s,c),t.addTransition(i,e,l),t.addTransition(s,h,a),t.addTransition(s,i,a),t.addTransition(s,s,u),t.addTransition(s,e,o),t.addTransition(e,h,a),t.addTransition(e,i,o),t.addTransition(e,s,c),t.addTransition(e,e,u)}rc(){try{this.win.getSelection().removeAllRanges()}catch(t){}}zl(t,i){if(1!=t.getState()&&2!=t.getState()||(this.ns.purge((i=>i.resource==t)),this.gl.purge((i=>i.resource==t)),T(this.El,(i=>i.resource===t))),0==t.getState()&&i&&this.Tl){const i=this.Tl.indexOf(t);-1!=i&&this.Tl.splice(i,1)}}Ll(t){const{target:i}=t;if(i.nodeType!==Node.ELEMENT_NODE)return;if(i===this.Il.getScrollingElement())return;const s=i;this.Sl.includes(s)||(this.Sl.push(s),this.schedulePass(70))}})}(t),function(t){Vi(t,"owners",class{constructor(t){this.Ti=ds(t)}setOwner(t,i){kn.setOwner(t,i)}schedulePreload(t,i){this.hc(this.Ti.getResourceForElement(t),!1,Xh(i))}scheduleLayout(t,i){this.hc(this.Ti.getResourceForElement(t),!0,Xh(i))}schedulePause(t,i){const s=this.Ti.getResourceForElement(t);i=Xh(i),this.oc(s,i,(t=>{t.pause()}))}scheduleResume(t,i){const s=this.Ti.getResourceForElement(t);i=Xh(i),this.oc(s,i,(t=>{t.resume()}))}scheduleUnlayout(t,i){const s=this.Ti.getResourceForElement(t);i=Xh(i),this.oc(s,i,(t=>{t.unlayout()}))}requireLayout(t,i){const s=[];return this.uc(t,(t=>{s.push(t.element.ensureLoaded())})),Promise.all(s)}oc(t,i,s){for(const e of i)yt(t.element.contains(e)),this.uc(e,s)}uc(t,i){if(t.classList.contains("i-amphtml-element")){i(this.Ti.getResourceForElement(t));const s=t.getPlaceholder();s&&this.uc(s,i)}else{const s=t.getElementsByClassName("i-amphtml-element"),e=[];for(let t=0;t<s.length;t++){const n=s[t];let r=!1;for(let t=0;t<e.length;t++)if(e[t].contains(n)){r=!0;break}r||(e.push(n),i(this.Ti.getResourceForElement(n)))}}}hc(t,i,s){this.oc(t,s,(i=>{i.element.ensureLoaded(t.getLayoutPriority())}))}})}(t),function(t){Vi(t,"mutator",class{constructor(t){this.ampdoc=t,this.win=t.win,this.Ti=ds(t),this.Il=vs(this.ampdoc),this.Xr=gs(this.win),this.Ml=new $h(this.win,6e4),this.Ml.onFocus((t=>{this.lc(t)}))}forceChangeSize(t,i,s,e,n){this.cc(kn.forElement(t),i,s,n,void 0,!0,e)}requestChangeSize(t,i,s,e,n){return new Promise(((r,h)=>{this.cc(kn.forElement(t),i,s,e,n,!1,(t=>{t?r():h(new Error("changeSize attempt denied"))}))}))}expandElement(t){kn.forElement(t).completeExpand(),this.Ti.schedulePass(70)}attemptCollapse(t){return new Promise(((i,s)=>{this.cc(kn.forElement(t),0,0,void 0,void 0,!1,(e=>{e?(kn.forElement(t).completeCollapse(),i()):s(Rt().createExpectedError("collapse attempt denied"))}))}))}collapseElement(t){const i=this.Il.getLayoutRect(t);0!=i.width&&0!=i.height&&(Le(this.win,"dirty-collapse-element")?this.dirtyElement(t):this.Ti.setRelayoutTop(i.top)),kn.forElement(t).completeCollapse(),this.Ti.schedulePass(70)}measureElement(t){return this.Xr.measurePromise(t)}mutateElement(t,i,s){return this.ac(t,null,i,s)}measureMutateElement(t,i,s){return this.ac(t,i,s)}dc(t){const i=ks(this.win,t.element);return{top:parseInt(i.marginTop,10)||0,right:parseInt(i.marginRight,10)||0,bottom:parseInt(i.marginBottom,10)||0,left:parseInt(i.marginLeft,10)||0}}ac(t,i,s,e=!1){const n=()=>{const i=this.Il.getLayoutRect(t);return 0!=i.width&&0!=i.height?i.top:-1};let r=-1;return this.Xr.runPromise({measure:()=>{i&&i(),e||(r=n())},mutate:()=>{if(s(),e)return;t.classList.contains("i-amphtml-element")&&kn.forElement(t).requestMeasure();const i=t.getElementsByClassName("i-amphtml-element");for(let t=0;t<i.length;t++)kn.forElement(i[t]).requestMeasure();this.Ti.schedulePass(70),-1!=r&&this.Ti.setRelayoutTop(r),this.Xr.measure((()=>{const t=n();-1!=t&&t!=r&&(this.Ti.setRelayoutTop(t),this.Ti.schedulePass(70)),this.Ti.maybeHeightChanged()}))}})}dirtyElement(t){let i=!1;if(t.classList.contains("i-amphtml-element")){const i=kn.forElement(t);this.Ti.setRelayoutTop(i.getLayoutBox().top)}else i=!0;this.Ti.schedulePass(70,i)}lc(t){const i=function(t,i,s){let e;for(e=t;e&&undefined!==e;e=e.parentElement)if(i(e))return e;return null}(t,(t=>!!kn.forElementOptional(t)));if(!i)return;const s=kn.forElement(i),e=s.getPendingChangeSize();void 0!==e&&this.cc(s,e.height,e.width,e.margins,void 0,!0)}cc(t,i,s,e,n,r,h){t.hasBeenMeasured()&&!e?this.fc(t,i,s,void 0,n,r,h):this.Xr.measure((()=>{t.hasBeenMeasured()||t.measure();const o=e?{newMargins:e,currentMargins:this.dc(t)}:void 0;this.fc(t,i,s,o,n,r,h)}))}fc(t,i,s,e,n,r,h){t.resetPendingChangeSize();const o=t.getLayoutSize();if(!(void 0!==i&&i!=o.height||void 0!==s&&s!=o.width||void 0!==e&&(u=e.currentMargins,l=e.newMargins,void 0!==l.top&&l.top!=u.top||void 0!==l.right&&l.right!=u.right||void 0!==l.bottom&&l.bottom!=u.bottom||void 0!==l.left&&l.left!=u.left)))return void 0===i&&void 0===s&&void 0===e&&Rt().error("Mutator","attempting to change size with undefined dimensions",t.debugid),void(h&&h(!0));var u,l;this.Ti.updateOrEnqueueMutateTask(t,{resource:t,newHeight:i,newWidth:s,marginChange:e,event:n,force:r,callback:h}),this.Ti.schedulePassVsync()}})}(t),function(t){Vi(t,"url-replace",(function(t){return new class{constructor(t,i){this.ampdoc=t,this.Cr=i}expandStringSync(t,i,s){return new fo(this.Cr,i,void 0,!0,s,!0).expand(t)}expandStringAsync(t,i,s){return new fo(this.Cr,i,void 0,void 0,s,!0).expand(t)}expandUrlSync(t,i,s){return this.mc(t,new fo(this.Cr,i,void 0,!0,s).expand(t))}expandUrlAsync(t,i,s,e){return new fo(this.Cr,i,void 0,void 0,s,e).expand(t).then((i=>this.mc(t,i)))}expandInputValueAsync(t){return this._c(t,!1)}expandInputValueSync(t){return this._c(t,!0)}_c(t,i){yt("INPUT"==t.tagName&&"hidden"==(t.getAttribute("type")||"").toLowerCase());const s=this.Ac(t);if(!s)return i?t.value:Promise.resolve(t.value);void 0===t["amp-original-value"]&&(t["amp-original-value"]=t.value);const e=new fo(this.Cr,void 0,void 0,i,s).expand(t["amp-original-value"]||t.value);return i?t.value=e:e.then((i=>(t.value=i,i)))}Ac(t,i){const s=t.getAttribute("data-amp-replace");if(!s)return;const e={};return s.trim().split(/\s+/).forEach((t=>{i&&!m(i,t)||(e[t]=!0)})),e}Yt(t){const i=rs(this.ampdoc);if(t.origin==on(i.canonicalUrl).origin||t.origin==on(i.sourceUrl).origin)return!0;const s=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin");if(s){const i=s.trim().split(/\s+/);for(let s=0;s<i.length;s++)if(t.origin==on(i[s]).origin)return!0}return!1}maybeExpandLink(t,i){yt("A"==t.tagName);const s=t;let e=s.getAttribute("data-amp-addparams")||"";const n=this.Ac(s,{"CLIENT_ID":!0,"QUERY_PARAM":!0,"PAGE_VIEW_ID":!0,"PAGE_VIEW_ID_64":!0,"NAV_TIMING":!0});if(!n&&!e&&!i)return;let r=s["amp-original-href"]||s.getAttribute("href");const h=on(r);null==s["amp-original-href"]&&(s["amp-original-href"]=r);const o=this.Yt(h);if(e&&(e=o?this.gc(e,n):e,r=an(r,Y(e))),!o)return s.href=r;if(i){if(!n||!n.QUERY_PARAM){const t={"QUERY_PARAM":!0};i=this.expandUrlSync(i,void 0,t)}r=an(r,Y(i))}return r=this.gc(r,n),s.href=r}gc(t,i){return i?this.expandUrlSync(t,void 0,i):t}collectVars(t,i){const s=Object.create(null);return new fo(this.Cr,i,s).expand(t).then((()=>s))}collectDisallowedVarsSync(t){const i=t.getAttribute("src"),s=new fo(this.Cr).getMacroNames(i),e=this.Ac(t);return e?s.filter((t=>!e[t])):s}mc(t,i){return on(i).protocol!=on(t).protocol?(It().error(Po,"Illegal replacement of the protocol: ",t),t):(bt(An(i),"The replacement url has invalid protocol: %s",i),i)}getVariableSource(){return this.Cr}}(t,new class extends class{constructor(t){this.ampdoc=t,this.Pc=Object.create(null),this.vc=!1,this.Ec()}Ze(){this.initialize(),this.vc=!0}initialize(){}get(t){return this.vc||this.Ze(),this.Pc[t]}set(t,i){return yt(-1==t.indexOf("RETURN")),this.Pc[t]=this.Pc[t]||{sync:void 0,async:void 0},this.Pc[t].sync=i,this}setAsync(t,i){return yt(-1==t.indexOf("RETURN")),this.Pc[t]=this.Pc[t]||{sync:void 0,async:void 0},this.Pc[t].async=i,this}setBoth(t,i,s){return this.set(t,i).setAsync(t,s)}getExpr(t,i){this.vc||this.Ze();const s=g(g({},this.Pc),t);return this.Tc(Object.keys(s),i)}Tc(t,i){if(this.Ec()&&(t=t.filter((t=>this.Ec().includes(t)))),i&&(t=t.filter((t=>i[t]))),0===t.length)return/_^/g;t.sort(((t,i)=>i.length-t.length));const s=t.map((t=>"$"===t[0]?"\\"+t:t)).join("|");return new RegExp("\\$?("+s+")","g")}Ec(){return this.Rc?this.Rc:this.ampdoc.isSingleDoc()&&wr(this.ampdoc.getRootNode())?(this.Rc=[""],this.Rc):void 0}}{constructor(t){super(t),this.Ic=null,this.Mc={}}yc(t,i,s){return this.setBoth(t,(()=>_o(this.ampdoc.win,i,s)),(()=>mo(this.ampdoc.win,i,s)))}initialize(){const{win:t}=this.ampdoc,i=this.ampdoc.getHeadNode(),s=vs(this.ampdoc);_s(this.ampdoc).then((t=>{this.Ic=t})),this.set("RANDOM",(()=>Math.random()));const n=Object.create(null);this.set("COUNTER",(t=>n[t]=1+(0|n[t]))),this.set("CANONICAL_URL",(()=>this.wc().canonicalUrl)),this.set("CANONICAL_HOST",(()=>on(this.wc().canonicalUrl).host)),this.set("CANONICAL_HOSTNAME",(()=>on(this.wc().canonicalUrl).hostname)),this.set("CANONICAL_PATH",(()=>on(this.wc().canonicalUrl).pathname)),this.setAsync("DOCUMENT_REFERRER",(()=>Ps(this.ampdoc).getReferrerUrl())),this.setAsync("EXTERNAL_REFERRER",(()=>Ps(this.ampdoc).getReferrerUrl().then((i=>i?on(vn(i)).hostname===$s.getHostname(t)?null:i:null)))),this.set("TITLE",(()=>{const i=t.document;return i.originalTitle||i.title})),this.set("AMPDOC_URL",(()=>mn(this.bc(t.location.href)))),this.set("AMPDOC_HOST",(()=>{const i=on(t.location.href);return i&&i.host})),this.set("AMPDOC_HOSTNAME",(()=>{const i=on(t.location.href);return i&&i.hostname}));const r=()=>{const t=this.wc();return mn(this.bc(t.sourceUrl))};this.setBoth("SOURCE_URL",(()=>r()),(()=>jh().then((()=>r())))),this.set("SOURCE_HOST",(()=>on(this.wc().sourceUrl).host)),this.set("SOURCE_HOSTNAME",(()=>on(this.wc().sourceUrl).hostname)),this.set("SOURCE_PATH",(()=>on(this.wc().sourceUrl).pathname)),this.set("PAGE_VIEW_ID",(()=>this.wc().pageViewId)),this.setAsync("PAGE_VIEW_ID_64",(()=>this.wc().pageViewId64)),this.setBoth("QUERY_PARAM",((t,i="")=>this.Vc(t,i)),((t,i="")=>jh().then((()=>this.Vc(t,i))))),this.set("FRAGMENT_PARAM",((t,i="")=>this.Sc(t,i)));let h=null;this.setBoth("CLIENT_ID",(t=>h?h[t]:null),((t,s,n,r)=>{bt(t,"The first argument to CLIENT_ID, the fallback Cookie name, is required");let o=e();return s&&(o=(t=>Wi(t,"userNotificationManager","amp-user-notification"))(i).then((t=>t.get(s)))),es(this.ampdoc).then((i=>(r="true"==r,i.get({scope:t,createCookieIfNotPresent:!0,cookieName:n||void 0,disableBackup:r},o)))).then((i=>(h||(h=Object.create(null)),i&&"_ga"==(n||t)&&("string"==typeof i?i=i.replace(/^(GA1|1)\.[\d-]+\./,""):Rt().error(Po,"non-string cid, what is it?",Object.keys(i))),h[t]=i,i)))})),this.setAsync("VARIANT",(t=>this.xc((i=>{const s=i[t];return bt(void 0!==s,"The value passed to VARIANT() is not a valid experiment in <amp-experiment>:"+t),null===s?"none":s}),"VARIANT"))),this.setAsync("VARIANTS",(()=>this.xc((t=>{const i=[];for(const s in t){const e=t[s];i.push(s+"."+(e||"none"))}return i.join("!")}),"VARIANTS"))),this.setBoth("AMP_GEO",(t=>Eo(this.Ic,t)),(t=>this.Oc((i=>Eo(i,t)),"AMP_GEO"))),this.set("TIMESTAMP",go("getTime")),this.set("TIMESTAMP_ISO",go("toISOString")),this.set("TIMEZONE",go("getTimezoneOffset")),this.set("SCROLL_HEIGHT",(()=>s.getScrollHeight())),this.set("SCROLL_WIDTH",(()=>s.getScrollWidth())),this.set("VIEWPORT_HEIGHT",(()=>s.getHeight())),this.set("VIEWPORT_WIDTH",(()=>s.getWidth()));const{screen:o}=t;this.set("SCREEN_WIDTH",vo(o,"width")),this.set("SCREEN_HEIGHT",vo(o,"height")),this.set("AVAILABLE_SCREEN_HEIGHT",vo(o,"availHeight")),this.set("AVAILABLE_SCREEN_WIDTH",vo(o,"availWidth")),this.set("SCREEN_COLOR_DEPTH",vo(o,"colorDepth")),this.set("DOCUMENT_CHARSET",(()=>{const i=t.document;return i.characterSet||i.charset})),this.set("BROWSER_LANGUAGE",(()=>{const i=t.navigator;return(i.language||i.userLanguage||i.browserLanguage||"").toLowerCase()})),this.set("USER_AGENT",(()=>t.navigator.userAgent)),this.setBoth("UACH",(t=>{var i;return null!==(i=this.Mc[t])&&void 0!==i?i:""}),(i=>this.Cc(i,t))),this.yc("PAGE_LOAD_TIME","navigationStart","loadEventStart"),this.yc("DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd"),this.yc("TCP_CONNECT_TIME","connectStart","connectEnd"),this.yc("SERVER_RESPONSE_TIME","requestStart","responseStart"),this.yc("PAGE_DOWNLOAD_TIME","responseStart","responseEnd"),this.yc("REDIRECT_TIME","navigationStart","fetchStart"),this.yc("DOM_INTERACTIVE_TIME","navigationStart","domInteractive"),this.yc("CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart"),this.setAsync("ACCESS_READER_ID",(()=>this.kc((t=>t.getAccessReaderId()),"ACCESS_READER_ID"))),this.setAsync("AUTHDATA",(t=>(bt(t,"The first argument to AUTHDATA, the field, is required"),this.kc((i=>i.getAuthdataField(t)),"AUTHDATA")))),this.setAsync("VIEWER",(()=>Ps(this.ampdoc).getViewerOrigin().then((t=>null==t?"":t)))),this.setAsync("TOTAL_ENGAGED_TIME",(()=>Zi(i).then((t=>t.getTotalEngagedTime())))),this.setAsync("INCREMENTAL_ENGAGED_TIME",((t,s)=>Zi(i).then((i=>i.getIncrementalEngagedTime(t,"false"!==s))))),this.set("NAV_TIMING",((i,s)=>(bt(i,"The first argument to NAV_TIMING, the start attribute name, is required"),_o(t,i,s)))),this.setAsync("NAV_TIMING",((i,s)=>(bt(i,"The first argument to NAV_TIMING, the start attribute name, is required"),mo(t,i,s)))),this.set("NAV_TYPE",(()=>Ao(t,"type"))),this.set("NAV_REDIRECT_COUNT",(()=>Ao(t,"redirectCount"))),this.set("AMP_VERSION",(()=>"2601162341000")),this.set("BACKGROUND_STATE",(()=>this.ampdoc.isVisible()?"0":"1")),this.setAsync("VIDEO_STATE",((t,i)=>{return(s=this.ampdoc,xi(s,"video-manager")).getVideoStateProperty(t,i);var s})),this.setAsync("AMP_STATE",(t=>{const i=this.ampdoc.getRootNode(),s=i.documentElement||i;return ss(s).then((i=>i&&i.getStateValue(t)||""))}))}bc(t){const{replaceParams:i}=this.wc();return i?function(t,i){const s=Y(on(t).search),e={},n=Object.keys(i);for(let t=0;t<n.length;t++)m(s,n[t])||(e[n[t]]=i[n[t]]);return an(t,e)}(Pn(t),i):t}wc(){return rs(this.ampdoc)}kc(t,i){const s=this.ampdoc.getHeadNode();return Promise.all([Qi(s),Ji(s)]).then((s=>{const e=s[0],n=s[1],r=e||n;return r?e&&n?t(n)||t(e):t(r):(It().error(Po,"Access or subsciptions service is not installed to access: ",i),null)}))}Vc(t,i){bt(t,"The first argument to QUERY_PARAM, the query string param is required");const s=Y(on(Pn(this.ampdoc.win.location.href)).search),{replaceParams:e}=this.wc();return void 0!==s[t]?s[t]:e&&void 0!==e[t]?e[t]:i}Sc(t,i){bt(t,"The first argument to FRAGMENT_PARAM, the fragment string param is required"),bt("string"==typeof t,"param should be a string");const s=Q(this.ampdoc.win);return void 0===s[t]?i:s[t]}xc(t,i){return(s=this.ampdoc.getHeadNode(),Ki(s,"variant","amp-experiment",!0)).then((t=>(bt(t,"To use variable %s, amp-experiment should be configured",i),t.getVariants()))).then((i=>t(i)));var s}Oc(t,i){return null!==this.Ic?t(this.Ic):_s(this.ampdoc.getHeadNode()).then((s=>(bt(s,"To use variable %s, amp-geo should be configured",i),this.Ic=s,t(s))))}Cc(t,i){return t in this.Mc?Promise.resolve(this.Mc[t]):(null===(s=i.navigator)||void 0===s||null===(e=s.userAgentData)||void 0===e||null===(n=e.getHighEntropyValues([t]))||void 0===n?void 0:n.then((i=>{const s="object"!=typeof i[t]?i[t]:JSON.stringify(i[t]);return this.Mc[t]=s,s})))||Promise.resolve("");var s,e,n}}(t))}))}(t),function(t){Vi(t,"action",class{constructor(t,i){this.ampdoc=t,this.Zu=i||t.getRootNode(),this.Nc=this.ampdoc.isSingleDoc()&&wr(this.Zu),this.Lr=this.Nc?Nr:null,this.Dc=p(),this.Lc=p(),this.addEvent("tap"),this.addEvent("submit"),this.addEvent("change"),this.addEvent("input-debounced"),this.addEvent("input-throttled"),this.addEvent("valid"),this.addEvent("invalid")}addEvent(t){if("tap"==t)this.Zu.addEventListener("click",(i=>{if(!i.defaultPrevented){const s=i.target;this.trigger(s,t,i,3)}})),this.Zu.addEventListener("keydown",(i=>{const{key:s,target:e}=i,n=e;if("Enter"==s||" "==s){const s=n.getAttribute("role"),e=s&&m(Dr,s.toLowerCase());!i.defaultPrevented&&e&&this.trigger(n,t,i,3)&&i.preventDefault()}}));else if("submit"==t)this.Zu.addEventListener(t,(i=>{const s=i.target;this.trigger(s,t,i,3)}));else if("change"==t)this.Zu.addEventListener(t,(i=>{const s=i.target;this.Uc(i),this.trigger(s,t,i,3)}));else if("input-debounced"==t){const i=G(this.ampdoc.win,(i=>{const s=i.target;this.trigger(s,t,i,3)}),300);this.Zu.addEventListener("input",(t=>{const s=new $r(t);this.Uc(s),i(s)}))}else if("input-throttled"==t){const i=z(this.ampdoc.win,(i=>{const s=i.target;this.trigger(s,t,i,3)}),100);this.Zu.addEventListener("input",(t=>{const s=new $r(t);this.Uc(s),i(s)}))}else"valid"!=t&&"invalid"!=t||this.Zu.addEventListener(t,(i=>{const s=i.target;this.trigger(s,t,i,3)}))}addGlobalTarget(t,i){this.Dc[t]=i}addGlobalMethodHandler(t,i,s=2){this.Lc[t]={handler:i,minTrust:s}}trigger(t,i,s,e,n){return this.$c(t,i,s,e,n)}execute(t,i,s,e,n,r,h){const o=new Lr(t,i,s,e,n,r,h);this.Fc(o)}installActionHandler(t,i){if(yt(Ur(t.getAttribute("id")||"")||t.tagName.toLowerCase()in kr),t[Cr])return void Rt().error(Sr,`Action handler already installed for ${t}`);t[Cr]=i;const s=t[Or];v(s)&&ps(wt(t)).delay((()=>{s.forEach((t=>{try{i(t)}catch(i){Rt().error(Sr,"Action execution failed:",t,i)}})),t[Or].length=0}),1)}hasAction(t,i,s){return!!this.Bc(t,i,s)}hasResolvableAction(t,i,s){const e=this.Bc(t,i,s);return!!e&&e.actionInfos.some((t=>{const{target:i}=t;return!!this.Hc(i)}))}hasResolvableActionForTarget(t,i,s,e){const n=this.Bc(t,i,e);return!!n&&n.actionInfos.some((t=>{const{target:i}=t;return this.Hc(i)==s}))}Hc(t){return this.Dc[t]?this.Zu:this.Zu.getElementById(t)}setAllowlist(t){yt(t.every((t=>t.tagOrTarget&&t.method))),this.Lr=t}addToAllowlist(t,i,s){s&&s.includes("email")!==this.Nc||(this.Lr||(this.Lr=[]),v(i)||(i=[i]),i.forEach((i=>{this.Lr.some((s=>s.tagOrTarget==t&&s.method==i))||this.Lr.push({tagOrTarget:t,method:i})})))}$c(t,i,s,e,n){const r=this.Bc(t,i);if(!r)return!1;const h=Math.random();let o=null;return r.actionInfos.forEach((u=>{const{args:l,method:c,str:a,target:d}=u,f=function(t,i,s){if(!t)return t;const e=s||{};if(i){const t=function(t){return t.detail}(i);t&&(e.event=t)}const n=p();return Object.keys(t).forEach((i=>{let s=t[i];if("object"==typeof s&&s.expression){const t=s.expression,i=function(t,i){if("."==i)return t;const s=i.split(".");let e=t;for(const t of s){if(!(t&&e&&void 0!==e[t]&&"object"==typeof e&&m(e,t))){e=void 0;break}e=e[t]}return e}(e,t);s=void 0===i?null:i}e[s]?n[i]=e[s]:n[i]=s})),n}(l,s,n),_=()=>{const n=this.Hc(d);if(!n)return void this.jc(`Target "${d}" not found for action [${a}].`);const o=new Lr(n,c,f,t,r.node,s,e,i,n.tagName||d,h);return this.Fc(o)};o=o?o.then(_):_()})),r.actionInfos.length>=1}jc(t,i){if(i){const s=It().createError(`[Action] ${t}`);throw Vn(s,i),s}It().error(Sr,t)}Fc(t){const{method:i,tagOrTarget:s}=t;if(this.Lr&&!function(t,i){let{method:s}=t;const{node:e,tagOrTarget:n}=t;s===Yn&&"function"==typeof e.getDefaultActionAlias&&(s=e.getDefaultActionAlias());const r=s.toLowerCase(),h=n.toLowerCase();return i.some((t=>(t.tagOrTarget.toLowerCase()===h||"*"===t.tagOrTarget)&&t.method.toLowerCase()===r))}(t,this.Lr))return this.jc(`"${s}.${i}" is not allowlisted ${JSON.stringify(this.Lr)}.`),null;const e=this.Dc[s];if(e)return e(t);const n=t.node,r=this.Lc[i];if(r&&t.satisfiesTrust(r.minTrust))return r.handler(t);const h=n.tagName.toLowerCase();if(Ur(h))return n.enqueAction?n.enqueAction(t):this.jc(`Unrecognized AMP element "${h}".`,n),null;const o=kr[h];if(Ur(n.getAttribute("id")||"")||o&&o.indexOf(i)>-1){const i=n[Cr];return i?i(t):(n[Or]=n[Or]||[],n[Or].push(t)),null}return this.jc(`Target (${s}) doesn't support "${i}" action.`,t.caller),null}Bc(t,i,s){let e=t;for(;e;){if(s&&e==s)return null;const t=this.zc(e,i);if(t&&!(n=e).disabled&&!n.matches(":disabled"))return{node:e,actionInfos:yt(t)};e=e.parentElement}var n;return null}zc(t,i){const s=this.Gc(t,i);return s&&s[i]||null}Gc(t,i){let s=t[xr];return void 0===s&&(s=null,t.hasAttribute("on")?(s=Br(t.getAttribute("on"),t),t[xr]=s):t.hasAttribute("execute")&&(s=Br(`${i}:${t.getAttribute("execute")}`,t),t[xr]=s)),s}setActions(t,i){t.setAttribute("on",i),delete t[xr]}Uc(t){const i=p(),{target:s}=t;if(void 0!==s.value&&(i.value=s.value),"INPUT"==s.tagName&&(i.valueAsNumber=Number(s.value)),void 0!==s.checked&&(i.checked=s.checked),void 0===s.min&&void 0===s.max||(i.min=s.min,i.max=s.max),s.files&&(i.files=(e=s.files,e?Array.prototype.slice.call(e):[]).map((t=>({"name":t.name,"size":t.size,"type":t.type})))),Object.keys(i).length>0)try{t.detail=i}catch(t){}var e}},!0)}(t),function(t){Vi(t,"standard-actions",class{constructor(t){this.ampdoc=t;const i=t.getHeadNode();this.qc=us(t),this.Il=vs(t),this.Wc(Xi(i)),this.Kc()}Wc(t){t.addGlobalTarget("AMP",this.Yc.bind(this)),t.addGlobalMethodHandler("hide",this.Jc.bind(this)),t.addGlobalMethodHandler("show",this.Qc.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.Xc.bind(this)),t.addGlobalMethodHandler("scrollTo",this.Zc.bind(this)),t.addGlobalMethodHandler("focus",this.ta.bind(this)),t.addGlobalMethodHandler("toggleClass",this.ia.bind(this)),t.addGlobalMethodHandler("copy",this.sa.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.ea.bind(this))}Kc(){this.na()&&this.ampdoc.waitForBodyOpen().then((t=>{const i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(i)}))}na(){var t,i;try{const t=this.ampdoc.win.localStorage.getItem("amp-dark-mode");if(t)return"yes"===t}catch(t){}return null===(t=(i=this.ampdoc.win).matchMedia)||void 0===t?void 0:t.call(i,"(prefers-color-scheme: dark)").matches}Yc(t){if(!t.satisfiesTrust(2))return null;const{args:i,method:s,node:e}=t,n=wt(e);switch(s){case"pushState":case"setState":const s=e.nodeType===Node.DOCUMENT_NODE?e.documentElement:e;return ss(s).then((i=>(bt(i,"AMP-BIND is not installed."),i.invoke(t))));case"navigateTo":return this.ra(t);case"closeOrNavigateTo":return this.ha(t);case"scrollTo":return bt(i.id,"AMP.scrollTo must provide element ID"),t.node=Li(e).getElementById(i.id),this.Zc(t);case"goBack":return os(this.ampdoc).goBack(!(!i||!0!==i.navigate)),null;case"print":return n.print(),null;case"copy":return this.sa(t);case"optoutOfCid":return es(this.ampdoc).then((t=>t.optOut())).catch((t=>{Rt().error(eo,"Failed to opt out of CID",t)}));case"toggleTheme":return this.oa(),null}throw It().createError("Unknown AMP action ",s)}sa(t){const{args:i,node:s}=t,e=wt(s),n="copy-error";let r;if("AMP"===t.tagOrTarget)r=i.text.trim();else{var h;const i=L(t.node);r=(null!==(h=i.value)&&void 0!==h?h:i.textContent).trim()}const o=function(t,i,s){const n=je(e,`${t}`,{data:{type:i}});Xi(s.caller).trigger(s.caller,t,n,3)};var u,l,c;null!==(l=(u=e.document).defaultView)&&void 0!==l&&null!==(c=l.navigator)&&void 0!==c&&c.clipboard||io(u)?function(t,i,s,e){var n;null!==(n=t.navigator)&&void 0!==n&&n.clipboard?t.navigator.clipboard.writeText(i).then(s,e):io(t.document)&&function(t,i){var s;let e=!1;const n=t.document,r=n.createElement("textarea");xs(r,{"position":"fixed","top":0,"left":0,"width":"50px","height":"50px","padding":0,"border":"none","outline":"none","background":"transparent"}),r.value=i,r.readOnly=!0,r.contentEditable="true",n.body.appendChild(r),null===(s=t.getSelection())||void 0===s||s.removeAllRanges(),r.focus(),r.setSelectionRange(0,i.length);try{e=n.execCommand("copy")}catch(t){}return Bt(r),e}(t,i)?s():e()}(e,r,(()=>{o("copy-success","success",t)}),(()=>{o(n,"error",t)})):o(n,"unsupported",t)}ra(t){const{args:i,caller:s,method:n,node:r}=t,h=wt(r);let o=e();return s.tagName.startsWith("AMP-")&&(o=s.getImpl().then((t=>{"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),o.then((()=>{var t;(t=this.ampdoc,xi(t,"navigation")).navigateTo(h,i.url,`AMP.${n}`,{target:i.target,opener:i.opener})}),(t=>{It().error(eo,t)}))}oa(){this.ampdoc.waitForBodyOpen().then((t=>{try{const i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";this.na()?(t.classList.remove(i),this.ampdoc.win.localStorage.setItem("amp-dark-mode","no")):(t.classList.add(i),this.ampdoc.win.localStorage.setItem("amp-dark-mode","yes"))}catch(t){}}))}ha(t){const{node:i}=t,s=wt(i),n=s.parent!=s;let r=!1;return s.opener&&this.ampdoc.isSingleDoc()&&!n&&(s.close(),r=s.closed),r?e():this.ra(t)}Zc(t){const i=t.node,{args:s}=t;let e=s&&s.position,n=s&&s.duration;return e&&!["top","bottom","center"].includes(e)&&(e=void 0),w(n)||(n=void 0),this.Il.animateScrollIntoView(i,e,n)}ta(t){return Gt(t.node),null}Jc(t){const i=t.node;if(i.classList.contains("i-amphtml-element")){const t=i;this.qc.mutateElement(t,(()=>t.collapse()),!0)}else this.qc.mutateElement(i,(()=>Os(i,!1)));return null}Qc(t){const{node:i}=t,s=i,e=wt(s);if(s.classList.contains(oe(Qs)))return null;this.qc.measureElement((()=>{"none"==ks(e,s).display&&so(s)}));const n=(r=s).hasAttribute("autofocus")?r:r.querySelector("[autofocus]");var r;return n&&cs(e).isIos()?(this.ua(s,n),this.qc.mutateElement(s,(()=>{}))):this.qc.mutateElement(s,(()=>{this.ua(s,n)})),null}ua(t,i){t.classList.contains("i-amphtml-element")?t.expand():Os(t,!0),i&&Gt(i)}Xc(t){return so(t.node)?this.Qc(t):this.Jc(t)}ia(t){const i=t.node,{args:s}=t,e=It().assertString(s.class,"Argument 'class' must be a string.");return no.test(e)||this.qc.mutateElement(i,(()=>{if(void 0!==s.force){const t=It().assertBoolean(s.force,"Optional argument 'force' must be a boolean.");i.classList.toggle(e,t)}else i.classList.toggle(e)})),null}ea(t){const i=t.node,{args:s}=t;return this.qc.mutateElement(i,(()=>{if(void 0!==(null==s?void 0:s.force)){const t=It().assertBoolean(s.force,"Optional argument 'force' must be a boolean.");i.checked=t}else!0===i.checked?i.checked=!1:i.checked=!0})),null}},!0)}(t),oo(t),function(t){Vi(t,Gh,class{constructor(t){this.ampdoc=t,this.la=t.getRootNode(),this.Il=vs(this.ampdoc),this.yn=Ps(this.ampdoc),this.rr=os(this.ampdoc),this.gh=cs(this.ampdoc.win),this.ca=this.gh.isIos()&&this.gh.isSafari(),this.Mu=qt(this.ampdoc.win)&&this.yn.isOvertakeHistory(),this.aa=this.la!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.da="inabox"==at(this.ampdoc.win).runtime,this.fa=this.la.nodeType==Node.DOCUMENT_NODE?this.la.documentElement:this.la,this.pa=this.ma.bind(this),this.la.addEventListener(qh,this.pa),this.la.addEventListener(Wh,this.pa),this._a=!1,function(t){return t.whenReady().then((()=>!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")))}(this.ampdoc).then((t=>{this._a=t})),this.Hu=!1,this.Aa=!1,Promise.all([this.yn.isTrustedViewer(),this.yn.getViewerOrigin()]).then((t=>{var i;this.Hu=t[0],this.Aa=(i=t[1],nt.test(hn(i).origin))})),this.ga=null,this.Pa=new $n,this.va=new $n}static installAnchorClickInterceptor(t,i){i.document.documentElement.addEventListener("click",Qh.bind(null,t),!0)}cleanup(){this.pa&&(this.la.removeEventListener(qh,this.pa),this.la.removeEventListener(Wh,this.pa))}openWindow(t,i,s,e){let n="";!this.gh.isIos()&&this.gh.isChrome()||e||(n+="noopener");const r=zh(t,i,s,n);r&&!e&&(r.opener=null)}navigateTo(t,i,s,e={}){const{opener:n=!1,target:r="_top"}=e;i=this.Ea(i);const h=As(this.fa);if(!h.isProtocolValid(i))return void It().error(Gh,"Cannot navigate to invalid protocol: "+i);bt(Kh.includes(r),`Target '${r}' not supported.`);const o=h.getSourceUrl(t.location);i=h.resolveRelativeUrl(i,o),"_blank"!=r?s&&(this.ga||(this.ga=this.Ta()),this.ga.includes(s)&&this.navigateToAmpUrl(i,s))||(t.top.location.href=i):this.openWindow(t,i,r,n)}navigateToAmpUrl(t,i){return!!this.yn.hasCapability("a2a")&&(this.yn.sendMessage("a2aNavigate",{"url":t,"requestedBy":i}),!0)}Ta(){const t=this.la.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((t=>t.trim())):[]}ma(t){if(t.defaultPrevented)return;const i=Ct(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");i&&i.href&&(t.type==qh?this.Ra(i,t):t.type==Wh&&this.Ia(i,t))}Ra(t,i){this.Ma(t);let s=this.ya(t.href);if(this.wa(i,t,s))return;if(this.ba(i,t,s))return;const e=this.Va();Jh(s)!=Jh(e)&&(this.Sa(t,i),s=this.ya(t.href)),this.xa(i,t,s,e)}Ia(t,i){this.Ma(t),this.Sa(t,i)}Sa(t,i){this.Pa.forEach((s=>{s(t,i)}))}Ea(t){return this.va.forEach((i=>{t=i(t)})),t}Ma(t){let i=null;this._a&&!this.aa&&(i=function(t,i){const s=Y(on($s.getLocation(t).href).search),e=[];for(let t=0;t<Bh.length;t++){const i=Bh[t];void 0!==s[i]&&e.push(i)}const n=i.getAttribute("data-amp-addparams");let{href:r}=i;n&&(r=an(r,Y(n)));const h=Y(on(r).search);for(let t=e.length-1;t>=0;t--)void 0!==h[e[t]]&&e.splice(t,1);return function(t){let i="";for(let s=0;s<t.length;s++){const e=t[s];i+=0==s?`${e}=QUERY_PARAM(${e})`:`&${e}=QUERY_PARAM(${e})`}return i}(e)}(this.ampdoc.win,t)),ms(t).maybeExpandLink(t,i)}ba(t,i,s){if(!this.Mu)return!1;const e=wt(i),n=i.href,{protocol:r}=s;if("ftp:"==r)return zh(e,n,"_blank"),t.preventDefault(),!0;const h=/^(https?|mailto):$/.test(r);return!(!this.ca||h||(zh(e,n,"_top"),t.preventDefault(),0))}wa(t,i,s){return!(!i.hasAttribute("rel")||!i.getAttribute("rel").split(" ").map((t=>t.trim())).includes("amphtml")||!this.navigateToAmpUrl(s.href,"<a rel=amphtml>")||(t.preventDefault(),0))}xa(t,i,s,e){const n=Jh(s),r=Jh(e);if(s.hash&&n==r)this.Oa(t,s,e);else{let s=(i.getAttribute("target")||"").toLowerCase();(this.aa||this.da)&&"_top"!=s&&"_blank"!=s&&(s="_blank",i.setAttribute("target",s));const{win:r}=this.ampdoc,h=cs(r),o=Ps(i);e.search&&h.isSafari()&&h.getMajorVersion()>=13&&o.isProxyOrigin()&&o.isEmbedded()&&this.Ca(r,e,s),this.viewerInterceptsNavigation(n,"intercept_click")&&t.preventDefault()}}Ca(t,i,s){const e=i.href,n=`${i.origin}${i.pathname}${i.hash}`;t.history.replaceState(null,"",n);const r=()=>{const i=t.location.href;i==n?t.history.replaceState(null,"",e):Rt().error(Gh,"Unexpected iframe URL change:",i,n)};"_blank"===s?t.setTimeout(r,0):t.addEventListener("pageshow",(function i(s){s.persisted&&(r(),t.removeEventListener("pageshow",i))}))}Oa(t,i,s){if(t.preventDefault(),this.aa)return;const e=i.hash.slice(1);let n=null;if(e){const t=St(e);n=this.la.getElementById(e)||this.la.querySelector(`a[name="${t}"]`)}i.hash!=s.hash?this.rr.replaceStateForTarget(i.hash).then((()=>{this.ka(n,e)})):this.ka(n,e)}registerAnchorMutator(t,i){this.Pa.enqueue(t,i)}registerNavigateToMutator(t,i){this.va.enqueue(t,i)}ka(t,i){t&&(this.Il.scrollIntoView(t),ps(this.ampdoc.win).delay((()=>this.Il.scrollIntoView(t)),1))}ya(t){return As(this.fa).parse(t)}Va(){return this.ya("")}viewerInterceptsNavigation(t,i){const s=this.yn.hasCapability("interceptNavigation"),e=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!s||!e||!this.Hu&&!this.Aa||(this.yn.sendMessage("navigateTo",{"url":t,"requestedBy":i}),0))}},!0)}(t),function(t){t.whenExtensionsKnown().then((()=>{t.declaresExtension("amp-form")&&t.getRootNode().addEventListener("submit",$o,!0)}))}(t),Vi(t,"loadingIndicator",class{constructor(t){this.zi=t;const{win:i}=t,s=this.Na.bind(this);this.Da=function(t,i,s={}){const{needsRootBounds:e,rootMargin:n,threshold:r}=s,h=qt(i)&&(e||n)?i.document:void 0;return new i.IntersectionObserver(t,{threshold:r,root:h,rootMargin:n})}((t=>t.forEach(s)),i),this.co=new WeakMap}dispose(){this.Da.disconnect()}track(t){this.Da.observe(t)}untrack(t){this.Da.unobserve(t),this.ar(t)}Na(t){const{boundingClientRect:i,isIntersecting:s,target:e}=t,{height:n,width:r}=i,h=e,o=s&&r>20&&n>20;let u=this.co.get(h);o!==(u&&u.shown||!1)&&(o&&!u&&(u=this.La(h,r,n),this.co.set(h,u)),u&&(u.shown=o,u.container.classList.toggle("amp-hidden",!o),u.loader.classList.toggle("amp-active",o)))}La(t,i,s){const e=Date.now(),n=function(t,i,s,e,n=t.win.Date.now()){const r=i.ownerDocument.createElement("div");return function(t,i){return hs(t.win).installExtensionForDoc(t,"amp-loader").then((()=>(t=>Wi(t,"loader","amp-loader"))(i)))}(t,i).then((h=>{const o=t.win.Date.now()-n;h.initializeLoader(i,r,o,s,e)})),r}(this.zi,t,i,s,e),r=Ve(this.zi.win.document)(Uh);return r.appendChild(n),t.appendChild(r),{shown:!1,loader:n,container:r}}ar(t){const i=this.co.get(t);i&&(this.co.delete(t),Bt(i.container))}})}(t)}function Go(t){return t.waitForBodyOpen().then((()=>{const i=t.getBody(),s=(e=i,n=()=>!!i.firstElementChild,new Promise((t=>{Ut(e,n,t)})));var e,n;return ps(t.win).timeoutPromise(2e3,s).then((()=>"AMP-STORY"===i.firstElementChild.tagName),(()=>!1))}))}var qo=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function Wo(t){if(null==t)return 0;const i=function(t){let i=t;for(;null!=(t=t.parentNode);)t.nodeName.startsWith("AMP-")&&(i=t);return i}(t),{nodeName:s}=i;return"IMG"===s||"AMP-IMG"===s?1:"VIDEO"===s||"AMP-VIDEO"===s?2:"AMP-CAROUSEL"===s?8:"AMP-BASE-CAROUSEL"===s?16:"AMP-AD"===s?4:!s.startsWith("AMP-")&&i.textContent?32:0}function Ko(t){const i=t.document;if(!i.fonts||!i.fonts.values)return;const s=i.fonts.values();let e;for(;e=s.next();){const t=e.value;if(!t)return;"loading"==t.status&&"display"in t&&"auto"==t.display&&(t.display="swap")}}var Yo=["amp-ad","amp-embed","amp-video"],Qo="extensions",Jo="latest",Xo="__AMP_EXT_LDR";function Zo(t){Yo.forEach((i=>{pr(t,i)}))}function tu(){return{}}function iu(t,i){return`${t}:${i}`}var su,eu="-shadowcsshost",nu=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";new RegExp("("+eu+nu,"gim"),new RegExp("(-shadowcsscontext"+nu,"gim"),new RegExp(eu,"gim"),new RegExp("-shadowcsscontext","gim"),Et=class{constructor(t,i,s=""){this.win=t,this.$=i,this.U=this.j(),this.C=s,this.L=null,this.N=function(t){let i=!1,s=null,e=t;return(...t)=>(i||(s=e.apply(self,t),i=!0,e=null),s)}((()=>{t.fetch(`${et}/rtv/012601162341000/log-messages.simple.json`).then((t=>t.json()),pt).then((t=>{t&&(this.L=t)}))})),this.F=this.assert.bind(this)}j(){var t;const{win:i}=this;return null!==(t=i.console)&&void 0!==t&&t.log&&0!=gt(i)?this.J():0}J(t){return this.$(gt(t),!1)}B(t,i,s){var e,n;if(i>(null!==(e=mt)&&void 0!==e?e:this.U))return!1;const r=this.win.console,h=null!==(n={1:r.error,3:r.info,2:r.warn}[i])&&void 0!==n?n:r.log,o=this.W(s),u=`[${t}]`;return y(o[0])?o[0]=u+" "+o[0]:o.unshift(u),h.apply(r,o),!0}fine(t,...i){this.B(t,4,i)}info(t,...i){this.B(t,3,i)}warn(t,...i){this.B(t,2,i)}error(t,...i){if(!this.B(t,1,i)){var s,e;const n=this.createError.apply(this,i);n.name=t||n.name,null===(s=(e=self).__AMP_REPORT_ERROR)||void 0===s||s.call(e,n)}}expectedError(t,...i){var s,e;this.B(t,1,i)||null===(s=(e=self).__AMP_REPORT_ERROR)||void 0===s||s.call(e,this.createExpectedError.apply(this,i))}createError(t){return this.Z(o.apply(null,arguments))}createExpectedError(t){return this.Z(c.apply(null,arguments))}Z(t){return t=h(t),this.C?t.message?-1==t.message.indexOf(this.C)&&(t.message+=this.C):t.message=this.C:O(t.message)&&(t.message=C(t.message)),t}W(t){return v(t[0])?this.X(t[0]):t}X(t){var i;const s=t.shift();return null!==(i=this.L)&&void 0!==i&&i[s]?[this.L[s]].concat(t):[`More info at ${At(s,t)}`]}assert(t,i,s){return v(i)?this.assert.apply(this,[t].concat(this.X(i))):k.apply(null,[this.C].concat(Array.prototype.slice.call(arguments)))}assertElement(t,i){return function(t,i,s){return N(t,i,b(i),"Element expected",s)}(this.F,t,i)}assertString(t,i){return function(t,i,s){return N(t,i,y(i),"String expected",s)}(this.F,t,i)}assertNumber(t,i){return function(t,i,s){return N(t,i,"number"==typeof i,"Number expected",s)}(this.F,t,i)}assertArray(t,i){return function(t,i,s){return N(t,i,v(i),"Array expected",s)}(this.F,t,i)}assertBoolean(t,i){return function(t,i,s){return N(t,i,!!i===i,"Boolean expected",s)}(this.F,t,i)}},Rt(),It(),su=function(t,i,s){Vn(i,s),i&&t&&O(i.message)&&!(i.message.indexOf(S)>=0)&&function(t,i){if(is(i).isSingleDoc()){const s={"errorName":t.name,"errorMessage":t.message};!function(t,i,s={},e=!0){var n;(n=t,Ki(n,"amp-analytics-instrumentation","amp-analytics")).then((n=>{n&&n.triggerEventForTarget(t,i,s,e)}))}(function(t){const i=is(t).getSingleDoc().getRootNode();return i.documentElement||i.body||i}(i),"user-error",s,!1)}}(i,t)}.bind(null,self),self.__AMP_REPORT_ERROR=su;var ru,hu="runtime";function ou(t,i){if(t.__AMP_TAG)return e();t.__AMP_TAG=!0;const s=t.AMP||[];wi(t,"extensions",class{constructor(t){this.win=t,this.ho=is(t),this.Fa={},this.Ba=null,this.Ha=null,this.ja=null}registerExtension(t,i,s,e,n){var r;const h=s?this.Fa[iu(t,Jo)]:null,o=this.za(t,i,null===(r=null==h?void 0:h.auto)||void 0===r||r);if(o.latest=s,!o.loaded){s&&(this.Fa[iu(t,Jo)]=o);try{var u,l;this.Ba=t,this.Ha=i,this.ja=s,e(n,n._),o.loaded=!0,null===(u=o.resolve)||void 0===u||u.call(o,o.extension),null==h||null===(l=h.resolve)||void 0===l||l.call(h,o.extension)}catch(t){var c,a;throw o.error=t,null===(c=o.reject)||void 0===c||c.call(o,t),null==h||null===(a=h.reject)||void 0===a||a.call(h,t),t}finally{this.Ba=null,this.Ha=null,this.ja=null}}}waitForExtension(t,i){const s=this.Ga(this.za(t,i));return ps(this.win).timeoutPromise(16e3,s).catch((i=>{if(!i.message.includes("timeout"))throw i;return It().error(Qo,`Waited over 16s to load extension ${t}.`),s}))}preloadExtension(t,i="0.1"){"amp-embed"==t&&(t="amp-ad");const s=this.za(t,i);return this.qa(t,i,s),this.Ga(s)}installExtensionForDoc(t,i,s="0.1"){const e=t.getRootNode();let n=e[Xo];return n||(n=e[Xo]=p()),n[i]?n[i]:(t.declareExtension(i,s),pr(t.win,i),n[i]=this.preloadExtension(i,s).then((()=>this.installExtensionInDoc(t,i,s))))}reloadExtension(t,i,s){const e=yi(this.win,t,i,s,!1),n=this.Fa[iu(t,i)];return n&&(yt(!n.loaded&&!n.error),n.scriptPresent=!1),e.forEach((i=>i.setAttribute("i-amphtml-loaded-new-version",t))),this.preloadExtension(t,i)}importUnwrapped(t,i,s="0.1",e=!0){const n=yi(t,i,s,e);let r,h=n.length>0?n[0]:null;return h?r=h.__AMP_SCR_LOADED:(h=Ri(this.win,i,s),r=h.__AMP_SCR_LOADED=new Promise(((t,i)=>{h.onload=t,h.onerror=i})),t.document.head.appendChild(h)),r}loadElementClass(t,i="0.1"){return this.preloadExtension(t,i).then((i=>yt(i.elements[t]).implementationClass))}addElement(t,i,s){this.Wa(t).extension.elements[t]={implementationClass:i,css:s},this.addDocFactory((e=>{this.Ka(e,t,i,s)}))}addTemplate(t,i){this.addDocFactory((s=>{!function(t,i,s){xi(t,"templates").nu(i,s)}(s,t,i)}))}Ka(t,i,s,e){e?function(t,i,s,e,n){const r=t.getHeadNode(),h=function(t,i,s,e){let n=t.__AMP_CSS_SM;n||(n=t.__AMP_CSS_SM=p());const r=e&&"amp-custom"!=e&&"amp-keyframes"!=e,h=r?`amp-extension=${e}`:null;if(h){const s=Je(t,n,h);if(s)return"STYLE"==s.tagName&&s.textContent!==i&&(s.textContent=i),s}const o=(t.ownerDocument||t).createElement("style");o.textContent=i;let u=null;return r?(o.setAttribute("amp-extension",e||""),u=Je(t,n,"amp-runtime")):(e&&o.setAttribute(e,""),u=t.lastChild),function(t,i,s=null){if(!s)return void function(t,i){t.insertBefore(i,t.firstChild)}(t,i);const e=s.nextSibling;t.insertBefore(i,e)}(t,o,u),h&&(n[h]=o),o}(r,function(t,i){const s=t.__AMP_CSS_TR;return s?s(i):i}(r,i),0,n||null);if(s){const i=t.getRootNode();if(sn(i,h))return s(),h;const e=setInterval((()=>{sn(i,h)&&(clearInterval(e),s())}),4)}}(t,e,(()=>{this.Ya(t.win,i,s)}),0,i):this.Ya(t.win,i,s)}Ya(t,i,s){(function(t,i,s){const e=function(t,i){if(i.requiresShadowDom()&&!t.Element.prototype.attachShadow)return hs(t).importUnwrapped(t,"amp-shadow-dom-polyfill")}(t,s);e?e.then((()=>ar(t,i,s))):ar(t,i,s)})(t,i,s),wi(t,i,tu)}addService(t,i){this.Wa(t).extension.services.push({serviceName:t,serviceClass:i}),this.addDocFactory((s=>{Vi(s,t,i,!0)}))}addDocFactory(t,i){const s=this.Wa(i);if(s.docFactories.push(t),this.Ba&&this.ho.isSingleDoc()){const i=this.ho.getAmpDoc(this.win.document),e=this.Ba,n=this.Ha,r=this.ja||!1;(i.declaresExtension(e,n)||r&&i.declaresExtension(e,Jo)||s.auto)&&t(i)}}preinstallEmbed(t,i){const s=this.win,e=t.win;!function(t,i){mr(t,i,"amp-img"),mr(t,i,"amp-pixel")}(s,e),Zo(e),i.forEach((({extensionId:i,extensionVersion:s})=>{t.declareExtension(i,s),Yo.includes(i)||pr(e,i)}))}installExtensionsInDoc(t,i){return Promise.all(i.map((({extensionId:i,extensionVersion:s})=>this.installExtensionInDoc(t,i,s))))}installExtensionInDoc(t,i,s="0.1"){return t.declareExtension(i,s),this.Ga(this.za(i,s)).then((()=>{this.za(i,s).docFactories.forEach((s=>{try{s(t)}catch(t){l("Doc factory failed: ",t,i)}}))}))}za(t,i,s){const e=iu(t,i);let n=this.Fa[e];return n||(n={version:i,latest:i==Jo,extension:{elements:{},services:[]},auto:s||!1,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},this.Fa[e]=n),n}Wa(t){return this.Ba||Rt().error(Qo,"unknown extension for ",t),this.za(this.Ba||"_UNKNOWN_",this.Ha||"")}Ga(t){if(!t.promise)if(t.loaded)t.promise=Promise.resolve(t.extension);else if(t.error)t.promise=Promise.reject(t.error);else{const i=new n;t.promise=i.promise,t.resolve=i.resolve,t.reject=i.reject}return t.promise}qa(t,i,s){if(this.Ja(t,i,s)){const e=Ri(this.win,t,i);this.win.document.head.appendChild(e),s.scriptPresent=!0}}Ja(t,i,s){if(s.loaded||s.error)return!1;if(void 0===s.scriptPresent){const e=yi(this.win,t,i,s.latest);s.scriptPresent=e.length>0}return!s.scriptPresent}});const r=hs(t);jo(t),Zo(t),t.AMP={win:t,"_":t.AMP?t.AMP._:void 0},t.AMP.config={urls:{thirdParty:tt,thirdPartyFrameHost:it,thirdPartyFrameRegex:st,cdn:et,cdnProxyRegex:X,localhostRegex:nt,errorReporting:rt,betaErrorReporting:ht,localDev:ot,trustedViewerHosts:ut,geoApi:lt}},t.AMP.addGlobalConsentListener=function(){},t.AMP.addGranularConsentListener=function(){},t.AMP.BaseElement=Qn,t.AMP.registerElement=r.addElement.bind(r),t.AMP.registerTemplate=r.addTemplate.bind(r),t.AMP.registerServiceForDoc=r.addService.bind(r),t.AMP.isExperimentOn=Le.bind(null,t),t.AMP.toggleExperiment=Ue.bind(null,t),t.AMP.setLogLevel=_t.bind(null),t.AMP.setTickFunction=(t,i)=>{};const h=i(t,r);function o(i){!function(t,i,s){"function"==typeof i||"high"==i.p?e().then(s):(s.displayName=i.n,jn(t.document,s))}(t,i,(()=>{h.then((()=>{"function"==typeof i?i(t.AMP,t.AMP.Qa):r.registerExtension(i.n,i.ev,i.l,i.f,t.AMP)}))}))}for(let i=0;i<s.length;i++){const e=s[i];if(uu(t,e))s.splice(i--,1);else if("function"==typeof e||"high"==e.p){try{o(e)}catch(t){Rt().error(hu,"Extension failed: ",t,e.n)}s.splice(i--,1)}}!function(t,i){t.document.body&&!function(t){return Qe(t).length>0}(t)?ps(t).delay(i,1):i()}(t,(()=>{t.AMP.push=function(i){uu(t,i)||o(i)};for(let i=0;i<s.length;i++){const e=s[i];if(!uu(t,e))try{o(e)}catch(t){Rt().error(hu,"Extension failed: ",t,e.n)}}s.length=0})),t.AMP.push||(t.AMP.push=s.push.bind(s)),cs(t).isIos()&&Ss(t.document.documentElement,"cursor","pointer");const u=hs(t);return ei(t)&&u.preloadExtension("amp-resize-observer-polyfill"),ti(t)&&u.preloadExtension("amp-intersection-observer-polyfill"),h}function uu(t,i){if("function"==typeof i)return!1;if(!i.m)return!0;const{v:s}=i;return"2601162341000"!=s&&(hs(t).reloadExtension(i.n,i.ev,i.l),!0)}function lu(t,i){jn(self.document,(function(){jo(self),zo(t),i.coreServicesAvailable(),function(t){const i=new n,{promise:s,resolve:r}=i;Fh=ps(t).timeoutPromise(8e3,s,"TrackImpressionPromise timeout").catch((t=>{}));const h=Ps(t.document.documentElement),o=h.isTrustedViewer(),u=h.getReferrerUrl().then((t=>function(t){const i=on(t);return"https:"==i.protocol&&Hh.some((t=>t.test(i.hostname)))}(t)));Promise.all([o,u]).then((i=>{const s=i[0],n=i[1];if(!s&&!n&&!Le(t,"alp"))return void r();const h=function(t){const i=Ps(t.document.documentElement);return i.getParam("replaceUrl")?i.hasCapability("replaceUrl")?i.sendMessageAwaitResponse("getReplaceUrl",void 0).then((t=>{t&&"object"==typeof t&&i.replaceUrl(t.replaceUrl||null)}),(t=>{})):(i.replaceUrl(i.getParam("replaceUrl")||null),e()):e()}(t),o=function(t){const i=ts(t.document.documentElement),s=Ps(i).getParam("click");return s?0!=s.indexOf("https://")?e():($s.getLocation(t).hash&&($s.getLocation(t).hash=""),i.whenFirstVisible().then((()=>function(t,i){return Es(t).fetchJson(i,{credentials:"include"}).then((t=>204==t.status?null:t.json()))}(t,s))).then((i=>{!function(t,i){if(!i)return;const s=i.location,e=i.tracking_url||s;if(e&&!_n(e)&&((new Image).src=e),s){if(!t.history.replaceState)return;const i=Ps(t.document.documentElement),e=an($s.getLocation(t).href,Y(on(s).search));t.history.replaceState(null,"",e),i.maybeUpdateFragmentForCct()}}(t,i)})).catch((t=>{}))):e()}(t);Promise.all([h,o]).then((()=>{r()}),(()=>{}))}))}(self)})),jn(self.document,(function(){ou(self,(t=>(function(t){const{documentElement:i}=t.document,s=is(t).getSingleDoc();t.AMP.ampdoc=s;const e=Ps(i);t.AMP.viewer=e;const n=vs(i);t.AMP.viewport={},t.AMP.viewport.getScrollLeft=n.getScrollLeft.bind(n),t.AMP.viewport.getScrollWidth=n.getScrollWidth.bind(n),t.AMP.viewport.getWidth=n.getWidth.bind(n)}(t),function(t){t.AMP.installAmpdocServices=zo.bind(null);{const i=t.document.querySelector("style[amp-runtime]");t.AMP.combinedCss=i?i.textContent:""}}(t),Ft(t.document).then((()=>{fr(t.AMP.ampdoc)})))))})),jn(self.document,(function(){!function(t){!function(t){_r(t,Pr,vr)}(t),function(t){_r(t,Mr,Rr)}(t),function(t){_r(t,"amp-layout",Er)}(t)}(self)})),jn(self.document,(function(){fr(t),Ei(self.document).then((()=>ur()))})),jn(self.document,(function(){(function(t){const{documentElement:i}=t.document;"0"==Ps(i).getParam("p2r")&&cs(t).isChrome()&&new class{constructor(t,i){this._f=t,this.Il=i,this.t_=!1,this.i_=0,this.s_=this.yp.bind(this),this.e_=this._p.bind(this),this.n_=this.gp.bind(this),this.r_=this.h_.bind(this),this._f.addEventListener("touchstart",this.s_,!0)}cleanup(){this.o_(),this._f.removeEventListener("touchstart",this.s_,!0)}yp(t){this.t_||!t.touches||1!=t.touches.length||this.Il.getScrollTop()>0||this.u_(t.touches[0].clientY)}u_(t){this.t_=!0,this.i_=t,this._f.addEventListener("touchmove",this.e_,!0),this._f.addEventListener("touchend",this.n_,!0),this._f.addEventListener("touchcancel",this.r_,!0)}o_(){this.t_=!1,this.i_=0,this._f.removeEventListener("touchmove",this.e_,!0),this._f.removeEventListener("touchend",this.n_,!0),this._f.removeEventListener("touchcancel",this.r_,!0)}_p(t){if(!this.t_)return;const i=t.touches[0].clientY-this.i_;i>0&&t.preventDefault(),0!=i&&this.o_()}gp(t){this.o_()}h_(t){this.o_()}}(t.document,vs(i))})(self),function(t){const{win:i}=t;Vr(i.document)&&t.isSingleDoc()&&!i.document.documentElement.hasAttribute("data-amp-auto-lightbox-disable")&&zn(t,(()=>{Go(t).then((s=>{s||hs(i).installExtensionForDoc(t,"amp-auto-lightbox")}))}),10)}(t),function(t){const{win:i}=t;Vr(i.document)&&cs(t.win).isStandalone()&&zn(t,(()=>{hs(i).installExtensionForDoc(t,"amp-standalone").then((()=>Wi(t.getBody(),"standalone","amp-standalone"))).then((t=>t.initialize()))}),10)}(t),function(t){const i=t.location.href;if(i.startsWith("about:"))return;let s=!1;const e=Q(t);ft(t,e)&&(s="0"!==e.validate),s&&function(t,i){const s=t.createElement("script");if(self.trustedTypes&&self.trustedTypes.createPolicy){const t=self.trustedTypes.createPolicy("validator-integration#loadScript",{createScriptURL:function(t){return"https://cdn.ampproject.org/v0/validator_wasm.js"===t?t:""}});s.src=t.createScriptURL(i)}else s.src=i;Qt(t,s);const e=We(s).then((()=>{t.head.removeChild(s)}),(()=>{}));return t.head.appendChild(s),e}(t.document,`${et}/v0/validator_wasm.js`).then((()=>{amp.validator.validateUrlAndLog(i,t.document)}))}(self),function(t){yt(t.defaultView);const i=t.defaultView;Ft(t).then((()=>function(t){const i=Qe(t).map((i=>{const s=function(t,i){return Bi(t,i)}(t,i).then((t=>t&&function(t){return"function"==typeof t.whenReady}(t)?t.whenReady().then((()=>t)):t));return ps(t).timeoutPromise(3e3,s,`Render timeout waiting for service ${i} to be ready.`)}));return Promise.all(i)}(i))).catch((t=>(l(t),[]))).then((s=>{Xe=!0,t.body.getBoundingClientRect(),tn(t),Li(t).signals().signal(Ie),s.length>0&&ds(t.documentElement).schedulePass(1,!0);try{const t=ls(i);t.tick("mbv"),t.flush()}catch(t){}}))}(self.document),function(t){Ei(t).then((()=>{const i=t.defaultView;if(i){const s=as(i),e=rs(t.documentElement),n=ts(t);s.url(n,e.sourceUrl),s.url(n,e.canonicalUrl)}}))}(self.document)}),!0),jn(self.document,(function(){i.tick("e_is"),ds(t).ampInitComplete(),i.flush()}))}self.location&&(self.location.originalHash=self.location.hash);try{!function(t){t.onerror=On,t.addEventListener("unhandledrejection",(t=>{!t.reason||t.reason.message!==Rn&&t.reason.message!==yn&&"AbortError"!==t.reason.message?Vn(t.reason||new Error("rejected promise "+t)):t.preventDefault()}))}(self),function(t,i,s){wi(t,"ampdoc",(function(){return new class{constructor(t,i,s){this.win=t,this.Ua=null,i&&(this.Ua=new qs(t,{params:Ys(t,s)}),t.document.__AMPDOC=this.Ua)}isSingleDoc(){return!!this.Ua}getSingleDoc(){return yt(this.Ua)}$a(t){return t.everAttached&&"function"==typeof t.getAmpDoc?t.getAmpDoc():null}getAmpDocIfAvailable(t){let i=t;for(;i;){const s=this.$a(t);if(s)return s;const e=jt(i);if(!e)break;const n=e.__AMPDOC;if(n)return n;i=e.host?e.host:Di(e,this.win)}return null}getAmpDoc(t){const i=this.getAmpDocIfAvailable(t);if(!i)throw Rt().createError("No ampdoc found for",t);return i}installShadowDoc(t,i,s){yt(!i.__AMPDOC);const e=new Ws(this.win,t,i,s);return i.__AMPDOC=e,e}installFieDoc(t,i,s){const e=i.document;yt(!e.__AMPDOC);const n=yt(i.frameElement),r=new Ks(i,t,this.getAmpDoc(n),s);return e.__AMPDOC=r,r}}(t,!0,void 0)}))}(self),ru=is(self)}catch(t){throw Ze(self.document),t}jn(self.document,(function(){const t=ru.getAmpDoc(self.document);Zh(self),wi(self,"performance",class{constructor(t){this.win=t,this.Sm=nh(j(t,16)),this.Om=[],this.km=t.performance.timeOrigin||t.performance.timing.navigationStart,this.zi=null,this.yn=null,this.Ti=null,this.Cm=null,this.Lm=!1,this.Nm=!1,this.Dm=p(),this.Um=void 0,this.$m=new Ms,this.Fm=0,this.zm=[],this.Hm=0;const i=this.win.PerformanceObserver&&this.win.PerformanceObserver.supportedEntryTypes||[];if(i.includes("paint")||this.$m.rejectSignal("fcp",Rt().createExpectedError("First Contentful Paint not supported")),this.Bm=i.includes("layout-shift"),!this.Bm){const t=Rt().createExpectedError("Cumulative Layout Shift not supported");this.$m.rejectSignal(hi,t),this.$m.rejectSignal(ui,t)}this.jm=i.includes("first-input"),this.jm||this.$m.rejectSignal("fid",Rt().createExpectedError("First Input Delay not supported")),this.Gm=i.includes("largest-contentful-paint"),this.Gm||this.$m.rejectSignal("lcp",Rt().createExpectedError("Largest Contentful Paint not supported")),this.qm=i.includes("navigation"),this.Wm=i.includes("event")&&Le(t,"interaction-to-next-paint"),this.Wm||this.$m.rejectSignal(ci,Rt().createExpectedError("Interaction to next paint not supported")),this.Km=this.Km.bind(this),this.addEnabledExperiment("rtv-"+at(this.win).rtvVersion),vi(t.document).then((()=>{this.tick("dr"),this.flush()})),Ei(t.document).then((()=>this.Ym())),Ei(t.document).then((()=>this.Qm(40))),this.Xm(),this.Jm=!1,this.Zm=G(t,(()=>{this.tg()}),6e3)}coreServicesAvailable(){const{documentElement:t}=this.win.document;this.zi=ts(t),this.yn=Ps(t),this.Ti=ds(t),this.Cm=rs(this.zi),this.Nm=this.yn.isEmbedded()&&"1"===this.yn.getParam("csi"),this.zi.onVisibilityChanged(this.flush.bind(this)),this.ig();const i=this.yn.whenMessagingReady();return this.zi.whenFirstVisible().then((()=>{this.tick("ofv"),this.flush()})),(this.Gm||this.Bm)&&this.zi.onVisibilityChanged(this.Km),i?i.then((()=>{this.tickDelta("msr",this.win.performance.now()),this.tick("timeOrigin",void 0,this.km);const t=this.zi.getMetaByName("amp-usqp");return t&&t.split(",").forEach((t=>{this.addEnabledExperiment("ssr-"+t)})),this.eg()})).then((()=>{this.Lm=!0,this.sg(),this.flush()})):e()}eg(){return Go(is(this.win).getSingleDoc()).then((t=>{t&&this.addEnabledExperiment("story")}))}Ym(){this.tick("ol"),this.flush()}Xm(){if("inabox"===at(this.win).runtime)return;let t=!1,i=!1,s=!1,e=!1;const n=n=>{if("first-paint"!=n.name||t)if("first-contentful-paint"!=n.name||i)if("first-input"!==n.entryType||s)"layout-shift"===n.entryType?n.hadRecentInput||(this.ng(n),this.Hm+=n.value):"largest-contentful-paint"===n.entryType?this.rg(n):"navigation"!=n.entryType||e?"event"==n.entryType&&n.interactionId&&this.Qm(n.duration):(["domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","loadEventEnd","loadEventStart","requestStart","responseStart"].forEach((t=>this.tick(t,n[t]))),e=!0);else{const t=n.processingStart-n.startTime;this.tickDelta("fid",t),s=!0}else{const t=n.startTime+n.duration;this.tickDelta("fcp",t),this.tickSinceVisible("fcpv",t),i=!0}else this.tickDelta("fp",n.startTime+n.duration),t=!0},r=[];this.win.PerformancePaintTiming&&(this.win.performance.getEntriesByType("paint").forEach(n),r.push("paint")),this.jm&&this.og(n,{type:"first-input",buffered:!0}),this.Bm&&this.og(n,{type:"layout-shift",buffered:!0}),this.Gm&&this.og(n,{type:"largest-contentful-paint",buffered:!0}),this.qm&&this.og(n,{type:"navigation",buffered:!0}),this.Wm&&this.og(n,{type:"event",durationThreshold:40,buffered:!0}),r.length>0&&this.og(n,{entryTypes:r})}og(t,i){try{new this.win.PerformanceObserver((i=>{i.getEntries().forEach(t),this.flush()})).observe(i)}catch(t){}}hg(){const t=this.zi.getVisibilityState();return t===Ts.INACTIVE||t===Ts.HIDDEN}Km(){this.hg()&&(this.lg(),this.tg())}ag(){if(!this.Jm){this.Jm=!0;const{win:t}=this,i=parseInt(ks(t,t.document.body).getPropertyValue("--google-font-exp"),10);i>=0&&this.addEnabledExperiment(`google-font-exp=${i}`)}}lg(){this.Bm&&(this.ag(),this.ug())}ng(t){if(!this.zi)return;if(this.hg())return;const i=this.zm;if(i.length>0){const s=i[0],e=i[i.length-1];if(t.startTime-e.startTime<1e3&&t.startTime-s.startTime<5e3)return void i.push(t);this.tg()}i.push(t),this.Zm()}tg(){const t=this.zm,i=this.$m.get(hi);let s=0,e=0;for(const i of t){if(i.sources)for(const t of i.sources)s|=Wo(t.node);e+=i.value}t.length=0,this.ag(),(null==i||e>i)&&(this.$m.reset(hi),this.$m.reset(oi),this.tickDelta(hi,e),this.tickDelta(oi,s),this.flush())}Qm(t){if(!this.zi)return;const i=this.$m.get(ci);(null==i||t>i)&&(this.tickDelta(ci,t-(null!=i?i:0)),this.flush())}ug(){0===this.Fm?(this.tickDelta(ui,this.Hm),this.flush(),this.Fm=1):1===this.Fm&&(this.tickDelta("cls-2",this.Hm),this.flush(),this.Fm=2)}rg(t){const{element:i,startTime:s}=t,e=Wo(i);this.tickDelta("lcpt",e),this.tickDelta("lcp",s),this.tickSinceVisible("lcpv",s),this.flush()}ig(){const t=!this.zi.hasBeenVisible();let i=-1;this.zi.whenFirstVisible().then((()=>{i=this.win.performance.now(),this.mark("visible")})),this.cg().then((()=>{if(t){const t=i>-1?this.win.performance.now()-i:0;this.zi.whenFirstVisible().then((()=>{this.tickDelta(li,t)})),this.dg(t),this.mark(li)}else this.tick(li),this.dg(this.win.performance.now()-i);this.flush()}))}cg(){return this.Ti.whenFirstPass().then((()=>{const{documentElement:t}=this.win.document,i=vs(t).getSize();return Jt(0,0,i.width,i.height),s=t,this.win,function(t,i){const s=ts(t);return s.signals().whenSignal(Nn).then((()=>{const t=ds(s).get().filter((t=>!(!t.prerenderAllowed()||qo.includes(t.element.tagName)))).map((t=>t.element));return 0===t.length?Promise.resolve([]):new Promise((i=>{const{win:e}=s,n=new e.IntersectionObserver((t=>{n.disconnect();const s=[];for(let i=0;i<t.length;i++){const{isIntersecting:e,target:n}=t[i];e&&s.push(n)}i(s)}),{root:qt(e)?e.document:null,threshold:.01});for(let i=0;i<Math.min(t.length,100);i++)n.observe(t[i])})).then((t=>Promise.all(t.map((t=>t.whenLoaded())))))}))}(s);var s}))}tick(t,i,s){yt(null==i||null==s);const e={"label":t};let n;null!=i?e.delta=n=Math.max(i,0):null!=s?e.value=s:(this.mark(t),n=this.win.performance.now(),e.value=this.km+n),this.win.dispatchEvent(je(this.win,"perf",{label:t,delta:n})),this.Lm&&this.Nm?this.yn.sendMessage("tick",e):this.fg(e),this.$m.signal(t,n)}mark(t){var i,s;null===(i=(s=this.win.performance).mark)||void 0===i||i.call(s,t)}tickDelta(t,i){this.tick(t,i)}tickSinceVisible(t,i){var s,e;const n=null==i?this.win.performance.now():i,r=this.km+n,h=null!==(s=this.yn)&&void 0!==s&&s.isEmbedded()?null===(e=this.zi)||void 0===e?void 0:e.getFirstVisibleTime():this.km,o=h?Math.max(r-h,0):0;this.tickDelta(t,o)}flush(){this.Lm&&this.Nm&&(null==this.Um&&(this.Um=Object.keys(this.Dm).join(",")),this.yn.sendMessage("sendCsi",{"ampexp":this.Um,"canonicalUrl":this.Cm.canonicalUrl,"eventid":this.Sm},!0))}addEnabledExperiment(t){this.Dm[t]=!0,this.Um=void 0}fg(t){this.Om.length>=50&&this.Om.shift(),this.Om.push(t)}sg(){this.yn&&(this.Nm?(this.Om.forEach((t=>{this.yn.sendMessage("tick",t)})),this.Om.length=0):this.Om.length=0)}dg(t){this.yn&&this.yn.sendMessage("prerenderComplete",{"value":t},!0)}isPerformanceTrackingOn(){return this.Nm}getMetric(t){return this.$m.whenSignal(t)}});const i=ls(self);i.addEnabledExperiment("esm"),function(t){Pi(t.document,(()=>function(t){let i=1500;const s=t.performance;s&&s.timing&&s.timing.navigationStart&&(i=Date.now()-s.timing.navigationStart);const e=Math.max(1,2100-i);t.setTimeout((()=>{Ko(t);const{styleSheets:i}=t.document;if(!i)return;const s=t.document.querySelectorAll(`link[rel~="stylesheet"]:not([href^="https://translate.googleapis.com/translate_static/css/"]):not([href^="${St(et)}"])`),n=[];for(let t=0;t<s.length;t++){const e=s[t];let r=!1;for(let t=0;t<i.length;t++)if(i[t].ownerNode==e){r=!0;break}r||n.push(e)}for(let i=0;i<n.length;i++){const s=n[i],r=s.media||"all";s.media="print",s.onload=()=>{s.media=r,Ko(t)},s.setAttribute("i-amphtml-timeout",e),s.parentNode.insertBefore(s,s.nextSibling)}}),e)}(t)))}(self),i.tick("is"),lu(t,i)})),self.console&&(console.info||console.log).call(console,"Powered by AMP ⚡ HTML – Version 2601162341000",self.location.href),self.document.documentElement.setAttribute("amp-version","2601162341000")})()}catch(t){throw setTimeout((function(){var t=document.body.style;t.opacity=1,t.visibility="visible",t.animation="none",t.WebkitAnimation="none;"}),1e3),t}
//# sourceMappingURL=v0.mjs.map