2025-03-22 00:49:46 +01:00

11 lines
196 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

self.AMP_CONFIG={"v":"012410292120000","type":"production","allow-doc-opt-in":["amp-next-page"],"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*/;
(()=>{var t,i=class{constructor(){this.j=new e}abort(){if(!this.j.C&&(this.j.C=!0,this.j.N)){const t={"type":"abort","bubbles":!1,"cancelable":!1,"target":this.j,"currentTarget":this.j};this.j.N(t)}}get signal(){return this.j}},e=class{constructor(){this.C=!1,this.N=null}get aborted(){return this.C}get onabort(){return this.N}set onabort(t){this.N=t}};function s(){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 o(t){const i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;const{message:e,stack:s}=t,n=new Error(e);for(const i in t)n[i]=t[i];return n.stack=s,n}function h(t){let i=null,e="";for(const t of arguments)t instanceof Error&&!i?i=o(t):(e&&(e+=" "),e+=t);return i?e&&(i.message=e+": "+i.message):i=new Error(e),i}function l(t){var i,e;null===(i=(e=self).__AMP_REPORT_ERROR)||void 0===i||i.call(e,t)}function a(t){const i=h.apply(null,arguments);setTimeout((()=>{throw l(i),i}))}function u(t){const i=h.apply(null,arguments);return i.expected=!0,i}var{hasOwnProperty:c,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 c.call(t,i)}function g(t,i,e){return i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function _(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);i&&(s=s.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,s)}return e}function A(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?_(Object(e),!0).forEach((function(i){g(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function v(t){return t?Array.prototype.slice.call(t):[]}var{isArray:P}=Array;function y(t){return P(t)?t:[t]}function b(t,i){const e=[];let s=0;for(let n=0;n<t.length;n++){const r=t[n];i(r,n,t)?e.push(r):(s<n&&(t[s]=r),s++)}return s<t.length&&(t.length=s),e}function E(t,i){const e=t.indexOf(i);return-1!=e&&(t.splice(e,1),!0)}function T(t){return"string"==typeof t}function R(t){return 1==(null==t?void 0:t.nodeType)}function M(t){return"number"==typeof t&&isFinite(t)}var w="",I="";function x(t){return R(t)?t.tagName.toLowerCase()+(t.id?`#${t.id}`:""):t}function V(t){return t.indexOf(w)>=0}function S(t,i,e="Assertion failed",s){var n,r;if(i)return i;t&&-1==e.indexOf(t)&&(e+=t);let o=3;const h=e.split("%s");let l=h.shift();const a=[l];for(;h.length;){const t=arguments[o++],i=h.shift();l+=x(t)+i,a.push(t,i.trim())}const u=new Error(l);throw u.messageArray=b(a,(t=>""!==t)),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,u),u}function O(t,i,e,s,n){return P(n)?t(e,n.concat([i])):t(e,`${n||s}: %s`,i),i}function k(t,i,e,s,n,r,o,h,l,a,u){return t}function C(t,i){return t}function L(t,i){return t}function N(t,i){return t}function D(t,i,e,s,n,r,o,h,l,a,u){return S(w,t,i,e,s,n,r,o,h,l,a,u)}function U(t){return JSON.parse(t)}function $(t,i){try{return U(t)}catch(t){return null==i||i(t),null}}function F(t){const i=new Uint8Array(t.length);for(let e=0;e<t.length;e++){const s=t.charCodeAt(e);k(s<=255),i[e]=s}return i}function z(t,i){let{crypto:e}=t;const s=new Uint8Array(i);return e.getRandomValues(s),s}function H(t,i,e){let s=0,n=null;function r(r){n=null,s=t.setTimeout(o,e),i.apply(null,r)}function o(){s=0,n&&r(n)}return function(...t){s?n=t:r(t)}}function B(t,i,e){let s=0,n=0,r=null;function o(){s=0;const h=e-(t.Date.now()-n);var l;h>0?s=t.setTimeout(o,h):(l=r,r=null,i.apply(null,l))}return function(...i){n=t.Date.now(),r=i,s||(s=t.setTimeout(o,e))}}var j=["javascript:","data:","vbscript:"],G=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function q(t,i=""){try{return decodeURIComponent(t)}catch(t){return i}}function W(t){const i=p();if(!t)return i;let e;for(;e=G.exec(t);){const t=q(e[1],e[1]),s=e[2]?q(e[2].replace(/\+/g," "),e[2]):"";i[t]=s}return i}function K(t){const{location:i}=t||self;return W(i.originalHash||i.hash)}var Y=t=>self.AMP_CONFIG?self.AMP_CONFIG[t]:null,Q=("string"==typeof Y("cdnProxyRegex")?new RegExp(Y("cdnProxyRegex")):Y("cdnProxyRegex"))||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function X(t){if(!self.document||!self.document.head)return null;if(self.location&&Q.test(self.location.origin))return null;const i=self.document.head.querySelector(`meta[name="${t}"]`);return i&&i.getAttribute("content")||null}var J=Y("thirdPartyUrl")||"https://3p.ampproject.net",Z=Y("thirdPartyFrameHost")||"ampproject.net",tt=("string"==typeof Y("thirdPartyFrameRegex")?new RegExp(Y("thirdPartyFrameRegex")):Y("thirdPartyFrameRegex"))||/^d-\d+\.ampproject\.net$/,it=Y("cdnUrl")||X("runtime-host")||"https://cdn.ampproject.org",et=/^https?:\/\/localhost(:\d+)?$/,st=Y("errorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",nt=Y("betaErrorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",rt=Y("localDev")||!1,ot=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],ht=Y("geoApiUrl")||X("amp-geo-api"),lt="";function at(t){const i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:ct(t,K(t)),esm:!0,test:!1,rtvVersion:ut(t),ssrReady:!1}}(i)}function ut(t){var i;return lt||(lt=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"012410292120000"),lt}function ct(t,i){const e=i||K(t);return["1","actions","amp","amp4ads","amp4email"].includes(e.development)||!!t.AMP_DEV_MODE}var dt=()=>{},ft=void 0;function pt(t){ft=t}var mt=(t,i)=>i.reduce(((t,i)=>`${t}&s[]=${gt(i)}`),`https://log.amp.dev/?v=012410292120000&id=${encodeURIComponent(t)}`),gt=t=>encodeURIComponent(String(x(t))),_t=t=>parseInt(K(t).log,10);self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var At=self.__AMP_LOG,vt=null;function Pt(t,i){if(!vt)throw new Error("failed to call initLogConstructor");return new vt(self,t,i)}function yt(t){return At.user||(At.user=bt(w)),function(t,i){return i&&i.ownerDocument.defaultView!=t}(At.user.win,t)?At.userForEmbed||(At.userForEmbed=bt(I)):At.user}function bt(t){return Pt(((t,i)=>i||t>=1?4:2),t)}function Et(){return At.dev||(At.dev=Pt((t=>t>=3?4:t>=2?3:0)))}function Tt(t,i,e,s,n,r,o,h,l,a,u){return t}function Rt(t,i,e,s,n,r,o,h,l,a,u){return yt().assert(t,i,e,s,n,r,o,h,l,a,u)}function Mt(t){return(t.ownerDocument||t).defaultView}function wt(t,i){return t.replace(/^|,/g,`$&${i} `)}function It(t){return CSS.escape(t)}function xt(t){k(/^[\w-]+$/.test(t))}function Vt(t,i){return t.querySelector(wt(i,":scope"))}function St(t,i){return t.closest(i)}function Ot(t,i){for(let e=t.lastElementChild;e;e=e.previousElementSibling)if(i(e))return e;return null}function kt(t,i){return xt(i),Vt(t,`> [${i}]`)}function Ct(t){return!!function(t){let i;return T(t)?i=t:R(t)&&(i=t.tagName),!!i&&i.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(C(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var Lt={bubbles:!0,cancelable:!0};function Nt(t,i,e){if(i(t))e();else{const s=new(Mt(t).MutationObserver)((()=>{i(t)&&(s.disconnect(),e())}));s.observe(t,{childList:!0})}}function Dt(t){return new Promise((i=>function(t,i){Nt(t.documentElement,(()=>!!t.body),i)}(t,i)))}function Ut(t){var i;null===(i=t.parentElement)||void 0===i||i.removeChild(t)}function $t(t,i,e){return function(t,i){for(const e in i)t.setAttribute(e,i[e]);return t}(t.createElement(i),e)}function Ft(t){const i=t.isConnected;if(void 0!==i)return i;let e=t;for(;e=zt(e),e.host;)e=e.host;return e.nodeType===Node.DOCUMENT_NODE}function zt(t){if(Node.prototype.getRootNode)return t.getRootNode();let i;for(i=t;i.parentNode&&(!(e=i)||"I-AMPHTML-SHADOW-ROOT"!=e.tagName&&(11!=e.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(e)));i=i.parentNode);var e;return i}function Ht(t,i){let e=t;do{if(e.nextSibling)return!0}while((e=e.parentNode)&&e!=i);return!1}function Bt(t){try{t.focus()}catch(t){}}function jt(t){return t.parent&&t.parent!=t}function Gt(t,i,e,s){const n=e||{};k(t.ownerDocument);const{bubbles:r,cancelable:o}=s||Lt,h=new MessageEvent(i,{data:n,bubbles:r,cancelable:o});t.dispatchEvent(h)}function qt(t,i){return i!==t&&t.contains(i)}function Wt(t){return t.hasAttribute("i-amphtml-ssr")}function Kt(t,i){const e=t.head.querySelector("script[nonce]");if(e){const t=e.nonce||e.getAttribute("nonce");i.setAttribute("nonce",null!=t?t:"")}}function Yt(t,i,e,s){return{left:t,top:i,width:e,height:s,bottom:i+s,right:t+e,x:t,y:i}}function Qt(t){return Yt(Number(t.left),Number(t.top),Number(t.width),Number(t.height))}function Xt(t,i,e){return 0==i&&0==e||0==t.width&&0==t.height?t:Yt(t.left+i,t.top+e,t.width,t.height)}function Jt(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 Zt=class t{constructor(i,e){this.$=i,this.U=A({root:null,rootMargin:"0px 0px 0px 0px"},e),this.L=[],this.F=null,t._upgraders.push(this.G.bind(this))}get root(){return this.F?this.F.root:this.U.root||null}get rootMargin(){return this.F?this.F.rootMargin:this.U.rootMargin}get thresholds(){return this.F?this.F.thresholds:[].concat(this.U.threshold||0)}disconnect(){this.F?this.F.disconnect():this.L.length=0}takeRecords(){return this.F?this.F.takeRecords():[]}observe(t){this.F?this.F.observe(t):-1==this.L.indexOf(t)&&this.L.push(t)}unobserve(t){if(this.F)this.F.unobserve(t);else{const i=this.L.indexOf(t);-1!=i&&this.L.splice(i,1)}}G(t){const i=new t(this.$,this.U);this.F=i;for(const t of this.L)i.observe(t);this.L.length=0}};Zt._upgraders=[];var{hasOwnProperty:ti}=Object.prototype;function ii(t){return!t.ResizeObserver||!!t.ResizeObserver._stub}var ei,si=class t{constructor(i){this.$=i,this.L=[],this.F=null,t._upgraders.push(this.G.bind(this))}disconnect(){this.F?this.F.disconnect():this.L.length=0}observe(t){this.F?this.F.observe(t):-1==this.L.indexOf(t)&&this.L.push(t)}unobserve(t){if(this.F)this.F.unobserve(t);else{const i=this.L.indexOf(t);-1!=i&&this.L.splice(i,1)}}G(t){const i=new t(this.$);this.F=i;for(const t of this.L)i.observe(t);this.L.length=0}};si._upgraders=[],self.document&&(Jt(ei=self)&&function(t){if(!t.IntersectionObserver)return t.IntersectionObserver=Zt,void(t.IntersectionObserver._stub=Zt);const i=t.IntersectionObserver;t.IntersectionObserver=function(t,i){return function(e,s){var n;return 9===(null==s||null===(n=s.root)||void 0===n?void 0:n.nodeType)?new i(e,s):new t(e,s)}}(t.IntersectionObserver,Zt),t.IntersectionObserver._stub=Zt,t.IntersectionObserver._native=i}(ei),function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get(){return this.intersectionRatio>0}})}(ei),function(t){ii(t)&&function(t){t.ResizeObserver||(t.ResizeObserver=si,t.ResizeObserver._stub=si)}(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:e}))}(self));var ni="cls",ri="clstu",oi="cls-1",hi="pc",li="inp",ai=["amp-mustache"],ui=/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org(\/.*)?$/;function ci(t){if(!t)return null;const i=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),e=i?i[2]:void 0,s=i?i[3]:void 0;return e&&s?{extensionId:e,extensionVersion:s}:null}function di(t,i,e){const s=t.document.createElement("script");s.async=!0,pi(i)?e="":s.setAttribute(ai.indexOf(i)>=0?"custom-template":"custom-element",i),s.setAttribute("data-script",i),s.setAttribute("i-amphtml-inserted",""),s.setAttribute("type","module"),Kt(t.document,s),s.setAttribute("crossorigin","anonymous");const n=function(t,i,e,s){return`${it}/rtv/${at().rtvVersion}/v0/${i}${e?"-"+e:""}.mjs`}(t.location,i,e);let r={createScriptURL:function(t){return ui.test(t)||"fonts.googleapis.com"===new URL(t).host?t:""}};return self.trustedTypes&&self.trustedTypes.createPolicy&&(r=self.trustedTypes.createPolicy("extension-script#createExtensionScript",r)),s.src=r.createScriptURL(n),s}function fi(t,i,e,s,n=!0){const r=":not([i-amphtml-loaded-new-version])"+(n?"":":not([i-amphtml-inserted])"),o=t.document.head.querySelectorAll(`script[src*="/${i}-"]${r}`),h=[];for(let t=0;t<o.length;t++){const n=o[t],r=ci(n.src);if(!r)continue;const{extensionId:l,extensionVersion:a}=r;l==i&&(pi(i)||a==e||"latest"==a&&s)&&h.push(n)}return h}function pi(t){return t.startsWith("_")}function mi(t,i,e,s){Ii(t=Ei(t),t,i,e),s&&wi(t,i)}function gi(t,i,e,s){const n=Ri(t),r=Mi(n);Ii(r,n,i,e),s&&wi(r,i)}function _i(t,i){return wi(t=Ei(t),i)}function Ai(t,i){return Ci(t=Ei(t),i)?wi(t,i):null}function vi(t,i){return wi(Mi(Ri(t)),i)}function Pi(t,i){const e=Mi(Ri(t));return Ci(e,i)?wi(e,i):null}function yi(t,i){return xi(Mi(t),i)}function bi(t,i){return Vi(Mi(t),i)}function Ei(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function Ti(t,i){const e=(t.ownerDocument||t).defaultView,s=i||Ei(e);if(e&&e!=s&&Ei(e)==s)try{return e.frameElement}catch(t){}return null}function Ri(t){return t.nodeType?function(t){return _i(t,"ampdoc")}(Mt(t)).getAmpDoc(t):t}function Mi(t){const i=Ri(t);return i.isSingleDoc()?i.win:i}function wi(t,i){Tt(Ci(t,i));const e=Si(t)[i];return e.obj||(Tt(e.ctor),Tt(e.context),e.obj=new e.ctor(e.context),Tt(e.obj),e.context=null,e.resolve&&e.resolve(e.obj)),e.obj}function Ii(t,i,e,s,n,r){const o=Si(t);let h=o[e];h||(h=o[e]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:r||!1}),!n&&h.ctor||(h.ctor=s,h.context=i,h.sharedInstance=r||!1,h.resolve&&wi(t,e))}function xi(t,i){const e=Vi(t,i);if(e)return e;const s=Si(t);return s[i]=Li(),s[i].promise}function Vi(t,i){const e=Si(t)[i];return e?e.promise?e.promise:(wi(t,i),e.promise=Promise.resolve(e.obj)):null}function Si(t){let i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}function Oi(t){return"function"==typeof t.dispose}function ki(t,i){if(Oi(i))try{(function(t){return Tt(Oi(t)),t})(i).dispose()}catch(i){Et().error("SERVICE","failed to dispose service",t,i)}}function Ci(t,i){const e=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!e||!e.ctor)}function Li(){const t=new n,{promise:i,reject:e,resolve:s}=t;return i.catch((()=>{})),{obj:null,promise:i,resolve:s,reject:e,context:null,ctor:null}}function Ni(t,i,e,s){return Di(t,i,e,s).then((t=>function(t,i,e){return Rt(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,e,e,e)}(t,i,e)))}function Di(t,i,e,s){const n=bi(t,i);if(n)return n;const r=Ri(t);return r.whenExtensionsKnown().then((()=>{const t=r.getExtensionVersion(e);return t?_i(r.win,"extensions").waitForExtension(e,t):null})).then((e=>e?s?bi(t,i):yi(t,i):null))}var Ui,$i=t=>Di(t,"access","amp-access"),Fi=t=>Di(t,"subscriptions","amp-subscriptions"),zi=t=>Pi(t,"action"),Hi=t=>Ni(t,"activity","amp-analytics"),Bi=t=>Ri(t),ji=t=>_i(t,"ampdoc"),Gi=t=>function(t,i,e){const s=Pi(t,i);return s?Promise.resolve(s):Di(t,i,"amp-bind")}(t,"bind"),qi=t=>yi(t,"cid"),Wi=t=>vi(t,"documentInfo").get(),Ki=t=>_i(t,"extensions"),Yi=t=>vi(t,"history"),Qi=t=>vi(t,"mutator"),Xi=t=>_i(t,"performance"),Ji=t=>_i(t,"platform"),Zi=t=>_i(t,"preconnect"),te=t=>vi(t,"resources"),ie=t=>function(t,i){return wi(t,"timer")}(t),ee=t=>Pi(t,"url-replace"),se=t=>Di(t,"geo","amp-geo",!0),ne=t=>Pi(t,"url"),re=t=>vi(t,"viewer"),oe=t=>_i(t,"vsync"),he=t=>vi(t,"viewport"),le="prerender",ae="preview",ue="visible",ce="hidden",de="paused",fe="inactive",pe=class{constructor(){this.Vt=null}add(t){return this.Vt||(this.Vt=[]),this.Vt.push(t),()=>{this.remove(t)}}remove(t){this.Vt&&E(this.Vt,t)}removeAll(){this.Vt&&(this.Vt.length=0)}fire(t){if(this.Vt)for(const i of this.Vt.slice())i(t)}getHandlerCount(){var t,i;return null!==(t=null===(i=this.Vt)||void 0===i?void 0:i.length)&&void 0!==t?t:0}},me=class{constructor(){this.Nt=p(),this.Ht=null}get(t){const i=this.Nt[t];return null==i?null:i}whenSignal(t){var i;let e=null===(i=this.Ht)||void 0===i?void 0:i[t];if(!e){const i=this.Nt[t];e=null!=i?{promise:"number"==typeof i?Promise.resolve(i):Promise.reject(i)}:new n,this.Ht||(this.Ht=p()),this.Ht[t]=e}return e.promise}signal(t,i){var e;if(null!=this.Nt[t])return;const s=null!=i?i:Date.now();this.Nt[t]=s;const n=null===(e=this.Ht)||void 0===e?void 0:e[t];null!=n&&n.resolve&&(n.resolve(s),n.resolve=void 0,n.reject=void 0)}rejectSignal(t,i){var e;if(null!=this.Nt[t])return;this.Nt[t]=i;const s=null===(e=this.Ht)||void 0===e?void 0:e[t];null!=s&&s.reject&&(s.reject(i),s.promise.catch((()=>{})),s.resolve=void 0,s.reject=void 0)}reset(t){var i;this.Nt[t]&&delete this.Nt[t];const e=null===(i=this.Ht)||void 0===i?void 0:i[t];e&&!e.resolve&&delete this.Ht[t]}},ge="building",_e="mounting",Ae="loading",ve="complete",Pe="error";function ye(t){return t.readyState!=Ae&&"uninitialized"!=t.readyState}function be(t){return t.readyState==ve}function Ee(t,i){Te(t,ye,i)}function Te(t,i,e){let s=i(t);if(s)e(t);else{const n=()=>{i(t)&&(s||(s=!0,e(t)),t.removeEventListener("readystatechange",n))};t.addEventListener("readystatechange",n)}}function Re(t){return new Promise((i=>{Ee(t,i)}))}function Me(t){return new Promise((i=>{Te(t,be,i)}))}var we=["Webkit","webkit","Moz","moz","ms","O","o"],Ie={"getPropertyPriority":()=>"","getPropertyValue":()=>""};function xe(t){const i=t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()));return we.some((t=>i.startsWith(t+"-")))?`-${i}`:i}function Ve(t,i,e){if(i.startsWith("--"))return i;Ui||(Ui=p());let s=Ui[i];if(!s||e){if(s=i,void 0===t[i]){const e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),n=function(t,i){for(let e=0;e<we.length;e++){const s=we[e]+i;if(void 0!==t[s])return s}return""}(t,e);void 0!==t[n]&&(s=n)}e||(Ui[i]=s)}return s}function Se(t,i){const{style:e}=t;for(const t in i)e.setProperty(xe(Ve(e,t)),String(i[t]),"important")}function Oe(t,i,e,s,n){const r=Ve(t.style,i,n);if(!r)return;const o=s?e+s:e;t.style.setProperty(xe(r),o)}function ke(t,i){for(const e in i)Oe(t,e,i[e])}function Ce(t,i){void 0===i&&(i=t.hasAttribute("hidden")),i?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function Le(t){return`${t}px`}function Ne(t,i){return"number"==typeof t?i(t):t}function De(t,i){return t.getComputedStyle(i)||Ie}function Ue(t,i){for(let e=0;e<i.length;e++)Oe(t,i[e],null)}function $e(t){const i=t[Ve(t,"visibilityState",!0)];if(i)return i;const e=Ve(t,"hidden",!0);return e in t&&t[e]?ce:ue}function Fe(t,i){if(!t.addEventListener)return;const e=He(t);e&&t.addEventListener(e,i)}function ze(t,i){if(!t.removeEventListener)return;const e=He(t);e&&t.removeEventListener(e,i)}function He(t){const i=Ve(t,"hidden",!0),e=i.indexOf("Hidden");return-1!=e?i.substring(0,e)+"Visibilitychange":"visibilitychange"}var Be=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}},je="__AMP__",Ge="-ampdoc-ext-known",qe="-ampdoc-first-visible",We="-ampdoc-next-visible",Ke="-ampdoc-first-previewed",Ye=class{constructor(t,i,e){this.win=t,this.Gt=p(),this.qt=i,this.Kt=e&&e.signals||new me,this.Yt=e&&e.params||p(),this.Qt=null,this.Xt={};const s=this.Yt.visibilityState;var n;Tt(!s||"prerender"===(n=s)||"preview"===n||"visible"===n||"hidden"===n||"paused"===n||"inactive"===n),this.Zt=e&&e.visibilityState||s||null,this.D=null,this.ti=new pe,this.ii=null,this.si=[];const r=this.ei.bind(this);this.qt&&this.si.push(this.qt.onVisibilityChanged(r)),Fe(this.win.document,r),this.si.push((()=>ze(this.win.document,r))),this.ei()}dispose(){(function(t){const i=Si(t);for(const t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;const e=i[t];e.sharedInstance||(e.obj?ki(t,e.obj):e.promise&&e.promise.then((i=>ki(t,i))))}})(this),this.si.forEach((t=>t()))}isSingleDoc(){return Tt(null)}getParent(){return this.qt}signals(){return this.Kt}getParam(t){const i=this.Yt[t];return null==i?null:i}getMeta(){return this.Qt||(this.Qt=p(),this.win.document.head.querySelectorAll("meta[name]").forEach((t=>{const i=t.getAttribute("name"),e=t.getAttribute("content");i&&null!==e&&void 0===this.Qt[i]&&(this.Qt[i]=e)}))),p(this.Qt)}getMetaByName(t){if(!t)return null;const i=this.getMeta()[t];return void 0!==i?i:null}setMetaByName(t,i){Tt(null)}declaresExtension(t,i){const e=this.Xt[t];return!(!e||i&&e!==i)}declareExtension(t,i){Tt(!this.Xt[t]||this.Xt[t]===i),this.Xt[t]=i}getExtensionVersion(t){return this.Xt[t]||null}setExtensionsKnown(){this.Kt.signal(Ge)}whenExtensionsKnown(){return this.Kt.whenSignal(Ge)}getRootNode(){return Tt(null)}getHeadNode(){}isBodyAvailable(){return Tt(!1)}getBody(){return Tt(null)}waitForBodyOpen(){return Tt(null)}isReady(){return Tt(null)}whenReady(){return Tt(null)}getUrl(){return Tt(null)}getElementById(t){return this.getRootNode().getElementById(t)}contains(t){return this.getRootNode().contains(t)}overrideVisibilityState(t){this.Zt!=t&&(this.Zt=t,this.ei())}ei(){const t=$e(this.win.document);let i,e=ue;for(let t=this.qt;t;t=t.getParent())if(t.getVisibilityState()!=ue){e=t.getVisibilityState();break}const s=this.Zt||ue;if(i=s==ue&&e==ue&&t==ue?ue:t==ce&&s==de?t:s==de||s==fe?s:e==de||e==fe?e:s==ae||t==ae||e==ae?ae:s==le||t==le||e==le?le:ce,this.D!=i){if(i==ue){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.ii=i,this.Kt.signal(qe,i),this.Kt.signal(We,i)}else this.Kt.reset(We);i==ae&&this.Kt.signal(Ke),this.D=i,this.ti.fire()}}whenFirstPreviewedOrVisible(){return Promise.race([this.whenFirstPreviewed(),this.whenFirstVisible()])}whenFirstPreviewed(){return this.Kt.whenSignal(Ke).then((()=>{}))}whenFirstVisible(){return this.Kt.whenSignal(qe).then((()=>{}))}whenNextVisible(){return this.Kt.whenSignal(We).then((()=>{}))}getFirstVisibleTime(){return this.Kt.get(qe)}getLastVisibleTime(){return this.ii}getVisibilityState(){return Tt(this.D)}isPreview(){return this.D==ae}isVisible(){return this.D==ue}hasBeenVisible(){return null!=this.getLastVisibleTime()}onVisibilityChanged(t){return this.ti.add(t)}registerSingleton(t){return!this.Gt[t]&&(this.Gt[t]=!0,!0)}},Qe=class extends Ye{constructor(t,i){super(t,null,i),this.ni=this.win.document.body?Promise.resolve(this.win.document.body):Dt(this.win.document).then((()=>this.getBody())),this.ri=Re(this.win.document)}isSingleDoc(){return!0}getRootNode(){return this.win.document}getUrl(){return Be.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.ni}isReady(){return ye(this.win.document)}whenReady(){return this.ri}},Xe=class extends Ye{constructor(t,i,e,s){super(t,null,s),this.hi=i,this.oi=e,this.ui=null;const r=new n;this.ni=r.promise,this.li=r.resolve,this.ci=!1;const o=new n;this.ri=o.promise,this.ai=o.resolve}isSingleDoc(){return!1}getRootNode(){return this.oi}getUrl(){return this.hi}getHeadNode(){return this.oi}isBodyAvailable(){return!!this.ui}getBody(){return this.ui}setBody(t){Tt(!this.ui),this.ui=t,this.li(t),this.li=void 0}waitForBodyOpen(){return this.ni}isReady(){return this.ci}setReady(){Tt(!this.ci),this.ci=!0,this.ai(),this.ai=void 0}whenReady(){return this.ri}getMeta(){return p(this.Qt)}setMetaByName(t,i){Tt(t),this.Qt||(this.Qt=p()),this.Qt[t]=i}},Je=class extends Ye{constructor(t,i,e,s){super(t,e,s),this.hi=i,this.ni=this.win.document.body?Promise.resolve(this.win.document.body):Dt(this.win.document).then((()=>this.getBody())),this.ci=!1;const r=new n;this.ri=r.promise,this.ai=r.resolve}isSingleDoc(){return!1}getRootNode(){return this.win.document}getUrl(){return this.hi}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.ni}isReady(){return this.ci}whenReady(){return this.ri}setReady(){Tt(!this.ci),this.ci=!0,this.ai(),this.ai=void 0}};function Ze(t,i){const e=p();return i?Object.assign(e,i):(t.name&&0==t.name.indexOf(je)&&Object.assign(e,W(t.name.substring(je.length))),t.location&&t.location.hash&&Object.assign(e,W(t.location.hash))),e}var ts="nodisplay",is="fixed",es="fixed-height",ss="responsive",ns="container",rs="fill",os="flex-item",hs="fluid",ls="intrinsic",as=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function us(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 cs(t){return"i-amphtml-layout-"+t}function ds(t){return t==is||t==es||t==ss||t==rs||t==os||t==hs||t==ls}function fs(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 ps(t){!function(t){D(/^\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 D(i,"Failed to read units from %s",t),i[0]}function ms(t){const i=parseFloat(t);return M(i)?i:void 0}function gs(t,i){t.classList.add("i-amphtml-fill-content"),i&&t.classList.add("i-amphtml-replaced-content")}function _s(t,i,e,s){const n=y(t);for(const t of n){const n=i.getAttribute(t);null!==n?e.setAttribute(t,n):s&&e.removeAttribute(t)}}var As,vs="amp:attached",Ps="amp:load-start",ys="amp:load-end",bs="ready-upgrade",Es="upgraded",Ts="built",Rs="mounted",Ms="load-start",ws="render-start",Is="load-end",xs="unload";function Vs(t,i){return[{query:t.matchMedia(i),value:"1"},{query:null,value:""}]}function Ss(t,i){return i.split(",").map((i=>{if(0==(i=i.replace(/\s+/g," ").trim()).length)return;let e,s,n;if(")"==i.charAt(i.length-1)){let t=1;for(n=i.length-2;n>=0;n--){const e=i.charAt(n);if("("==e?t--:")"==e&&t++,0==t)break}const e=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>=e)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?(e=i.substring(0,n+1).trim(),s=i.substring(n+1).trim()):(s=i,e=void 0),s?{query:e?t.matchMedia(e):null,value:s}:null})).filter(Boolean)}function Os(t,i,e){for(let s=0;s<t.length;s++){const{query:n}=t[s];n&&(void 0!==n.onchange?n.onchange=e?i:null:e?n.addListener(i):n.removeListener(i))}}function ks(t){const i=t.ownerDocument||t;return As&&As.ownerDocument===i||(As=i.createElement("div")),Cs}function Cs(t){return function(t,i){if(k(1===i.length),k(Array.isArray(i)||m(i,"raw")),self.trustedTypes&&self.trustedTypes.createPolicy){const e=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return i[0]}});t.innerHTML=e.createHTML("ignored")}else t.innerHTML=i[0];const e=t.firstElementChild;return k(e),k(!e.nextElementSibling),t.removeChild(e),e}(As,t)}var Ls=['<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>'],Ns={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function Ds(t){const i=t.getAttribute("layout"),e=t.getAttribute("width"),s=t.getAttribute("height"),n=t.getAttribute("sizes"),r=t.getAttribute("heights"),o=i?us(i):null;D(void 0!==o,'Invalid "layout" value: %s, %s',i,t);const h=e&&"auto"!=e?fs(e):e;D(void 0!==h,'Invalid "width" value: %s, %s',e,t);const l=s&&"fluid"!=s?fs(s):s;let a,u,c;if(D(void 0!==l,'Invalid "height" value: %s, %s',s,t),o&&o!=is&&o!=es||h&&l||(d=(d=t.tagName).toUpperCase(),void 0===Ns[d]))a=h,u=l;else{const i=function(t){const i=t.tagName.toUpperCase();if(k(void 0!==Ns[i]),!Ns[i]){const e=t.ownerDocument,s=i.replace(/^AMP\-/,""),n=e.createElement(s);n.controls=!0,ke(n,{position:"absolute",visibility:"hidden"}),e.body.appendChild(n),Ns[i]={width:(n.offsetWidth||1)+"px",height:(n.offsetHeight||1)+"px"},e.body.removeChild(n)}return Ns[i]}(t);a=h||o==es?h:i.width,u=l||i.height}var d;return c=o||(a||u?"fluid"==u?hs:!u||a&&"auto"!=a?u&&a&&(n||r)?ss:is:es:ns),c!=is&&c!=es&&c!=ss&&c!=ls||D(u,'The "height" attribute is missing: %s',t),c==es&&D(!a||"auto"==a,'The "width" attribute must be missing or "auto": %s',t),c!=is&&c!=ss&&c!=ls||D(a&&"auto"!=a,'The "width" attribute must be present and not "auto": %s',t),c==ss||c==ls?D(ps(a)==ps(u),'Length units should be the same for "width" and "height": %s, %s, %s',e,s,t):D(null===r,'"heights" attribute must be missing: %s',t),{layout:c,width:a,height:u}}var Us,$s="amp-experiment-toggles",Fs="__AMP__EXPERIMENT_TOGGLES";function zs(t,i){return!!Bs(t)[i]}function Hs(t,i,e,s){const n=zs(t,i),r=null!=e?e:!n;if(r!=n&&(Bs(t)[i]=r,!s)){const e=js(t);e[i]=r,function(t,i){const e=[];for(const t in i)e.push((!1===i[t]?"-":"")+t);try{var s;null===(s=t.localStorage)||void 0===s||s.setItem($s,e.join(","))}catch(t){yt().error("EXPERIMENTS","Failed to save experiments to localStorage.")}}(t,e)}return r}function Bs(t){var i,e,s,n,r;if(t[Fs])return t[Fs];t[Fs]=p();const o=t[Fs];k(o);const h=A(A({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(e=t.AMP_EXP)&&void 0!==e?e:U((null===(s=t.__AMP_EXP)||void 0===s?void 0:s.textContent)||"{}"));for(const t in h){const i=h[t];"number"==typeof i&&i>=0&&i<=1&&(o[t]=Math.random()<i)}const l=null===(n=t.AMP_CONFIG)||void 0===n?void 0:n["allow-doc-opt-in"];if(P(l)&&l.length){const i=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(i){var a;const t=(null===(a=i.getAttribute("content"))||void 0===a?void 0:a.split(","))||[];for(const i of t)l.includes(i)&&(o[i]=!0)}}Object.assign(o,js(t));const u=null===(r=t.AMP_CONFIG)||void 0===r?void 0:r["allow-url-opt-in"];if(P(u)&&u.length){const i=W(t.location.originalHash||t.location.hash);for(const t of u){const e=i[`e-${t}`];"1"==e&&(o[t]=!0),"0"==e&&(o[t]=!1)}}return o}function js(t){var i;let e="";try{var s;"localStorage"in t&&(e=null!==(s=t.localStorage.getItem($s))&&void 0!==s?s:"")}catch(t){}const n=(null===(i=e)||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 Gs(t,i,e,s){let n=t,r=e,o=t=>{try{return r(t)}catch(t){var i,e;throw null===(i=(e=self).__AMP_REPORT_ERROR)||void 0===i||i.call(e,t),t}};const h=function(){if(void 0!==Us)return Us;Us=!1;try{const t={get capture(){return Us=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return Us}(),l=!(null==s||!s.capture);return n.addEventListener(i,o,h?s:l),()=>{null==n||n.removeEventListener(i,o,h?s:l),r=null,n=null,o=null}}var qs="Failed to load:";function Ws(t,i,e,s){const n={detail:e};return Object.assign(n,s),new t.CustomEvent(i,n)}function Ks(t,i,e,s){return Gs(t,i,e,s)}function Ys(t){return t.data}function Qs(t,i,e,s){let n=e;const r=Gs(t,i,(t=>{try{n(t)}finally{n=null,r()}}),s);return r}function Xs(t){let i,e;if(function(t){return!!(t.complete||"complete"==t.readyState||Js(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);const s=Js(t);return s&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise(((n,r)=>{if(i=s?Qs(t,"loadedmetadata",n,{capture:!0}):Qs(t,"load",n),!t.tagName)return;let o=t;if(s&&!t.hasAttribute("src")&&(o=Ot(t,(t=>"SOURCE"===t.tagName)),!o))return r(new Error("Media has no source."));e=Qs(o,"error",r)})).then((()=>(e&&e(),t)),(()=>{i&&i(),function(t){Js(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);let i=t;throw i&&i.src&&(i=i.src),yt().createError(qs,i)}(t)}))}function Js(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var Zs={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]","variant":"amp-experiment"};function tn(t){const i=t.document;return Tt(i.body),Object.keys(Zs).filter((t=>i.querySelector(Zs[t])))}function en(t,i,e,s,n){const r=t.getHeadNode(),o=function(t,i,e,s){let n=t.__AMP_CSS_SM;n||(n=t.__AMP_CSS_SM=p());const r=!e&&s&&"amp-custom"!=s&&"amp-keyframes"!=s,o=e?"amp-runtime":r?`amp-extension=${s}`:null;if(o){const e=sn(t,n,o);if(e)return"STYLE"==e.tagName&&e.textContent!==i&&(e.textContent=i),e}const h=(t.ownerDocument||t).createElement("style");h.textContent=i;let l=null;return e?h.setAttribute("amp-runtime",""):r?(h.setAttribute("amp-extension",s||""),l=sn(t,n,"amp-runtime")):(s&&h.setAttribute(s,""),l=t.lastChild),function(t,i,e=null){if(!e)return void function(t,i){t.insertBefore(i,t.firstChild)}(t,i);const s=e.nextSibling;t.insertBefore(i,s)}(t,h,l),o&&(n[o]=h),h}(r,function(t,i){const e=t.__AMP_CSS_TR;return e?e(i):i}(r,i),s||!1,n||null);if(e){const i=t.getRootNode();if(hn(i,o))return e(o),o;const s=setInterval((()=>{hn(i,o)&&(clearInterval(s),e(o))}),4)}return o}function sn(t,i,e){if(i[e])return i[e];const s=t.querySelector(`style[${e}], link[${e}]`);return s?(i[e]=s,s):null}var nn=!1;function rn(t){Tt(t.defaultView),nn||(nn=!0,on(t))}function on(t){ke(t.body,{opacity:1,visibility:"visible","animation":"none"})}function hn(t,i){const e=t.styleSheets;for(let t=0;t<e.length;t++)if(e[t].ownerNode==i)return!0;return!1}var ln,an=new Set(["c","v","a","ad"]),un="__amp_source_origin",cn=t=>"string"==typeof t?dn(t):t;function dn(t,i){return ln||(ln=self.document.createElement("a")),fn(ln,t)}function fn(t,i,e){return t.href="",new URL(i,t.href)}function pn(t,i,e){if(!i)return t;const s=t.split("#",2),n=s[0].split("?",2);let r=n[0]+(n[1]?e?`?${i}&${n[1]}`:`?${n[1]}&${i}`:`?${i}`);return r+=s[1]?`#${s[1]}`:"",r}function mn(t,i){return`${encodeURIComponent(t)}=${encodeURIComponent(i)}`}function gn(t,i){return pn(t,_n(i))}function _n(t){const i=[];for(const e in t){let s=t[e];if(null!=s){s=y(s);for(let t=0;t<s.length;t++)i.push(mn(e,s[t]))}}return i.join("&")}function An(t){return"https:"==(t=cn(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||function(t,i){const e=t.length-i.length;return e>=0&&t.indexOf(i,e)==e}(t.hostname,".localhost")}function vn(t,i,e="source"){return Rt(null!=t,"%s %s must be available",i,e),Rt(An(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,e,t),t}function Pn(t){const i=t.indexOf("#");return-1==i?t:t.substring(0,i)}function yn(t){return Q.test(cn(t).origin)}function bn(t){return!(t&&j.includes(cn(t).protocol))}function En(t){const{hash:i,origin:e,pathname:s,search:n}=dn(t);return e+s+Tn(n)+i}function Tn(t){return function(t,i){if(!t||"?"==t)return"";const e=new RegExp("[?&](amp_(js[^&=]*|gsa|r|kit)|usqp)\\b[^&]*","g"),s=t.replace(e,"").replace(/^[?&]/,"");return s?"?"+s:""}(t)}function Rn(t){if(!yn(t=cn(t)))return t.href;const i=t.pathname.split("/"),e=i[1];Rt(an.has(e),"Unknown path prefix in url %s",t.href);const s=i[2],n="s"==s?"https://"+decodeURIComponent(i[3]):"http://"+decodeURIComponent(s);return Rt(n.indexOf(".")>0,"Expected a . in origin %s",n),i.splice(1,"s"==s?3:2),n+i.join("/")+Tn(t.search)+(t.hash||"")}function Mn(t){return dn(Rn(t)).origin}function wn(t,i){return i=cn(i),new URL(t,i.href).toString()}function In(t,i){return xn(i),function(t,i,e,s){return pn(t,mn("__amp_source_origin",e),void 0)}(i,0,Mn(t.location.href))}function xn(t){const i=W(dn(t).search);Rt(!(un in i),"Source origin is not allowed in %s",t)}var Vn="CANCELLED",Sn="BLOCK_BY_CONSENT",On=self.__AMP_ERRORS||[];self.__AMP_ERRORS=On;var kn=function(t){return(kn=function(t){const i=function(t){let i=0;return()=>{let t=Math.pow(1.5,i++);return t+=function(t,i){let e=t*(i=i||.3)*Math.random();return Math.random()>.5&&(e*=-1),e}(t),1e3*t}}();return t=>setTimeout(t,i())}())(t)};function Cn(t,i){try{let e;if(t)if(void 0!==t.message)t=o(t),e=!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=function(t,i){for(let i=0;i<t.length;i++)if(null==(e=t[i])?void 0:e.tagName)return i;var e;return-1}(t.messageArray);i>-1&&(t.associatedElement=t.messageArray[i])}const s=i||t.associatedElement;if(s&&s.classList&&s.classList.add("i-amphtml-error"),self.console&&(V(t.message)||!t.expected)){const i=console.error||console.log;t.messageArray?i.apply(console,t.messageArray):s?i.call(console,t.message,s):i.call(console,t.message)}s&&s.dispatchCustomEventForTesting&&s.dispatchCustomEventForTesting("amp:error",t.message),Dn.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Ln(){return new Error(Vn)}function Nn(t){return!!t&&("string"==typeof t?t.startsWith(Sn):"string"==typeof t.message&&t.message.startsWith(Sn))}function Dn(t,i,e,n,r){!this||!this.document||r&&r.expected||rn(this.document);let o=!1;try{o=function(t){if(!t.document)return!1;const i=t.document.querySelectorAll("script[src]");for(let t=0;t<i.length;t++)if(!yn(i[t].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(o&&Math.random()<.99)return;const h=function(t,i,e,s,n,r){t=function(t,i){return i&&(t=i.message?i.message:String(i)),t||(t="Unknown error"),t}(t,n);let o=!(!n||!n.expected);if(/_reported_/.test(t))return;if(t==Vn)return;const h=!(self&&self.window),l=Math.random();if((function(t){return-1!=t.indexOf(qs)}(t)||"Script error."==t||h)&&(o=!0,l<.9999))return;const a=V(t);if(a&&l<.99)return;const u=Object.create(null);u.v=at().rtvVersion,u.noAmp=r?"1":"0",u.m=t.replace(w,""),u.a=a?"1":"0",u.ex=o?"1":"0",u.dw=h?"1":"0";let c="1p";var d,f;if(c="esm",u.esm="1",u.rt="esm",u.cdn=it,u.ca=null!==(f=self.AMP_CONFIG)&&void 0!==f&&f.canary?"1":"0",u.bt=(null===(d=self.AMP_CONFIG)||void 0===d?void 0:d.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(u.or=self.location.ancestorOrigins[0]),self.viewerState&&(u.vs=self.viewerState),self.parent&&self.parent!=self&&(u.iem="1"),self.AMP&&self.AMP.viewer){const t=self.AMP.viewer.getResolvedViewerUrl(),i=self.AMP.viewer.maybeGetMessagingOrigin();t&&(u.rvu=t),i&&(u.mso=i)}const p=[],m=self[Fs]||null;for(const t in m){const i=m[t];p.push(`${t}=${i?"1":"0"}`)}var g,_,A;return u.exps=p.join(","),n?(u.el=(null===(g=n.associatedElement)||void 0===g?void 0:g.tagName)||"u",n.args&&(u.args=JSON.stringify(n.args)),a||n.ignoreStack||!n.stack||(u.s=n.stack),n.message&&(n.message+=" _reported_")):(u.f=i||"",u.l=e||"",u.c=s||""),u.r=self.document?self.document.referrer:"",u.ae=On.join(","),u.fr=self.location.originalHash||self.location.hash,"production"===u.bt&&(u.pt="1"),A=t,(_=On).length>=25&&_.splice(0,_.length-25+1),_.push(A),u}(t,i,e,n,r,o);h&&kn((()=>{try{return function(t,i){return i.pt&&Math.random()<.9?s():function(t,i){const e=ji(t);if(!e.isSingleDoc())return Promise.resolve(!1);const s=e.getSingleDoc();if(!s.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);const n=re(s);return n.hasCapability("errorReporter")?n.isTrustedViewer().then((t=>{return!!t&&(n.sendMessage("error",{"m":(e=i).m,"a":e.a,"s":e.s,"el":e.el,"ex":e.ex,"v":e.v,"pt":e.pt}),!0);var e})):Promise.resolve(!1)}(t,i).then((t=>{if(!t){const t=new XMLHttpRequest;t.open("POST",Math.random()<.1?nt:st,!0),t.send(JSON.stringify(i))}}))}(this,h).catch((()=>{}))}catch(t){}}))}var Un="Resource",$n=class t{static forElement(i){return Tt(t.forElementOptional(i))}static forElementOptional(t){return t.__AMP__RESOURCE}static setOwner(i,e){Tt(e.contains(i)),t.forElementOptional(i)&&t.forElementOptional(i).updateOwner(e),i.__AMP__OWNER=e;const s=i.getElementsByClassName("i-amphtml-element");for(let i=0;i<s.length;i++){const e=s[i];t.forElementOptional(e)&&t.forElementOptional(e).updateOwner(void 0)}}constructor(t,i,e){i.__AMP__RESOURCE=this,this.di=t,this.element=i,this.debugid=i.tagName.toLowerCase()+"#"+t,this.hostWin=i.ownerDocument.defaultView,this.fi=e,this.pi=i.hasAttribute("placeholder"),this.mi=!1,this._i=void 0,this.Ai=i.isBuilt()?1:0,0==this.Ai&&i.isBuilding()&&this.build(),this.gi=-1,this.Pi=0,this.vi=null,this.Ei=null,this.Ti=!1,this.Ri=Yt(-1e4,-1e4,0,0),this.Ii=null,this.Mi=!1,this.yi=null,this.wi=null,this.bi=void 0;const s=new n;this.Vi=s.promise,this.Si=s.resolve,this.xi=!1}getId(){return this.di}updateOwner(t){this._i=t}getOwner(){if(void 0===this._i){for(let t=this.element;t;t=t.parentElement)if(t.__AMP__OWNER){this._i=t.__AMP__OWNER;break}void 0===this._i&&(this._i=null)}return this._i}hasOwner(){return!!this.getOwner()}getLayoutPriority(){return-1!=this.gi?this.gi:this.element.getLayoutPriority()}updateLayoutPriority(t){this.gi=t}getState(){return this.Ai}isBuilt(){return this.element.isBuilt()}isBuilding(){return this.mi}whenBuilt(){return this.element.signals().whenSignal("res-built")}build(){return this.mi||!this.element.isUpgraded()?null:(this.mi=!0,this.element.buildInternal().then((()=>{this.mi=!1,this.Ai=1,this.element.signals().signal("res-built")}),(t=>{throw this.maybeReportErrorOnBuildFailure(t),this.mi=!1,this.element.signals().rejectSignal("res-built",t),t})))}maybeReportErrorOnBuildFailure(t){Nn(t)||Et().error(Un,"failed to build:",this.debugid,t)}changeSize(t,i,e){this.element.applySize(t,i,e),this.requestMeasure()}overflowCallback(t,i,e,s){t&&(this.bi={height:i,width:e,margins:s}),this.element.overflowCallback(t,i,e,s)}resetPendingChangeSize(){this.bi=void 0}getPendingChangeSize(){return this.bi}getUpgradeDelayMs(){return this.element.getUpgradeDelayMs()}measure(){if(this.pi&&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.Ai=1);this.Mi=!1;const t=this.Ri;this.Oi();const i=this.Ri,e=(n=i,!((s=t).width==n.width&&s.height===n.height));var s,n;(1==this.Ai||t.top!=i.top||e)&&this.element.isUpgraded()&&(1==this.Ai?this.Ai=2:4!=this.Ai&&5!=this.Ai||!this.element.isRelayoutNeeded()||(this.Ai=2)),this.hasBeenMeasured()||(this.Ii=i),this.element.updateLayoutBox(i,e)}ensureMeasured(){return this.hasBeenMeasured()?s():oe(this.hostWin).measure((()=>this.measure()))}Oi(){const t=he(this.element);this.Ri=t.getLayoutRect(this.element);let i=!1;if(t.supportsPositionFixed()&&this.isDisplayed()){const{win:e}=this.fi.getAmpdoc(),{body:s}=e.document;for(let n=this.element;n&&n!=s;n=n.offsetParent){if(n.isAlwaysFixed&&n.isAlwaysFixed()){i=!0;break}if(t.isDeclaredFixed(n)&&"fixed"==De(e,n).position){i=!0;break}}}this.Ti=i,i&&(this.Ri=Xt(this.Ri,-t.getScrollLeft(),-t.getScrollTop()))}completeCollapse(){Ce(this.element,!1),this.Ri=Yt(this.Ri.left,this.Ri.top,0,0),this.Ti=!1,this.element.updateLayoutBox(this.getLayoutBox());const t=this.getOwner();t&&t.collapsedCallback(this.element)}completeExpand(){Ce(this.element,!0),this.requestMeasure()}isMeasureRequested(){return this.Mi}hasBeenMeasured(){return!!this.Ii}requestMeasure(){this.Mi=!0}getLayoutSize(){return function(t){const{height:i,width:e}=t;return{width:e,height:i}}(this.Ri)}getLayoutBox(){if(!this.Ti)return this.Ri;const t=he(this.element);return Xt(this.Ri,t.getScrollLeft(),t.getScrollTop())}getInitialLayoutBox(){return this.Ii||this.Ri}isDisplayed(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;const t=this.element.getLayout()==hs,i=this.getLayoutBox(),e=i.height>0&&i.width>0;return t||e}isFixed(){return this.Ti}overlaps(t){return e=t,(i=this.getLayoutBox()).top<=e.bottom&&e.top<=i.bottom&&i.left<=e.right&&e.left<=i.right;var i,e}prerenderAllowed(){return this.element.prerenderAllowed()}previewAllowed(){return this.element.previewAllowed()}isBuildRenderBlocking(){return this.element.isBuildRenderBlocking()}whenWithinViewport(t){if(Tt(!1!==t),!this.isLayoutPending()||!0===t)return s();const i=t,e=String(i);return this.yi&&this.yi[e]?this.yi[e].promise:this.isWithinViewportRatio(i)?s():(this.yi=this.yi||{},this.yi[e]=new n,this.yi[e].promise)}Ci(){if(!this.yi)return;const t=this.getDistanceViewportRatio();for(const i in this.yi)this.isWithinViewportRatio(parseFloat(i),t)&&(this.yi[i].resolve(),delete this.yi[i])}getDistanceViewportRatio(){const t=he(this.element).getRect(),i=this.getLayoutBox(),e=this.fi.getScrollDirection();let s=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==e&&(s=2);else{if(!(t.top>i.bottom))return{distance:!0};n=t.top-i.bottom,1==e&&(s=2)}return{distance:n,scrollPenalty:s,viewportHeight:t.height}}isWithinViewportRatio(t,i){if("boolean"==typeof t)return t;const{distance:e,scrollPenalty:s,viewportHeight:n}=i||this.getDistanceViewportRatio();return"boolean"==typeof e?e:e<n*t/s}renderOutsideViewport(){return this.Ci(),this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())}idleRenderOutsideViewport(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())}layoutScheduled(t){this.Ai=3,this.element.layoutScheduleTime=t}layoutCanceled(){this.Ai=this.hasBeenMeasured()?2:1}startLayout(){if(this.wi)return this.wi;if(4==this.Ai)return s();if(5==this.Ai)return Promise.reject(this.Ei);if(Tt(0!=this.Ai),Tt(this.isDisplayed()),3!=this.Ai){const t=Et().createExpectedError("startLayout called but not LAYOUT_SCHEDULED","currently: ",this.Ai);return Cn(t,this.element),Promise.reject(t)}if(this.Pi>0&&!this.element.isRelayoutNeeded())return this.Ai=4,s();this.Pi++,this.Ai=3,this.vi=new AbortController;const{signal:t}=this.vi,i=new Promise(((i,e)=>{oe(this.hostWin).mutate((()=>{let s;try{s=this.element.layoutCallback(t)}catch(t){e(t)}Promise.resolve(s).then(i,e)})),t.onabort=()=>e(Ln())})).then((()=>this.ki(!0,t)),(i=>this.ki(!1,t,i)));return this.wi=i}ki(t,i,e){if(this.vi=null,i.aborted){const t=Et().createError("layoutComplete race");throw t.associatedElement=this.element,Et().expectedError(Un,t),Ln()}if(this.Si&&(this.Si(),this.Si=null),this.wi=null,this.Ai=t?4:5,this.Ei=e,!t)return Promise.reject(e)}isLayoutPending(){return 4!=this.Ai&&5!=this.Ai}loadedOnce(){return this.element.R1()?this.element.whenLoaded():this.Vi}isInViewport(){return this.xi&&this.Ci(),this.xi}setInViewport(t){this.xi=t}unlayout(){0!=this.Ai&&1!=this.Ai&&2!=this.Ai&&(this.vi&&(this.vi.abort(),this.vi=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.Ai=1,this.Pi=0,this.wi=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)}},Fn="ready-scan",zn="scheduler",Hn="250% 31.25%";function Bn(t){return gi(t,zn,class{constructor(t){this.Ni=t;const{win:i}=t;this.Di=new i.IntersectionObserver((t=>this.Li(t)),{root:jt(i)?i.document:null,rootMargin:Hn}),this.Ui=new Map,this.$i=new Map,this.Fi=[],this.Bi=!1,t.whenReady().then((()=>this.Hi())),this.ji=t.onVisibilityChanged((()=>this.zi()))}dispose(){this.Di.disconnect(),this.$i.clear(),this.ji&&(this.ji(),this.ji=null)}scheduleAsap(t){this.$i.set(t,{asap:!0,isIntersecting:!1}),this.Gi(t)}schedule(t){this.$i.has(t)||(t.deferredMount()?(this.$i.set(t,{asap:!1,isIntersecting:!1}),this.Di.observe(t),this.Ui.size>0&&this.Ui.forEach(((i,e)=>{qt(e,t)&&i.observe(t)}))):this.$i.set(t,{asap:!1,isIntersecting:!0}),this.Gi(t))}unschedule(t){this.$i.has(t)&&(this.$i.delete(t),this.Di.unobserve(t),this.Ui.size>0&&this.Ui.forEach((i=>{i.unobserve(t)})),this.Fi&&(E(this.Fi,t),this.Hi()))}setContainer(t,i){if(this.Ui.has(t))return;const{win:e}=this.Ni,s=new e.IntersectionObserver((t=>this.Li(t)),{root:i||t,rootMargin:Hn});this.Ui.set(t,s),this.$i.forEach((({asap:i},e)=>{!i&&qt(t,e)&&s.observe(e)}))}removeContainer(t){const i=this.Ui.get(t);i&&(i.disconnect(),this.Ui.delete(t))}qi(){if(this.Ni.isReady()&&!this.Bi){this.Bi=!0;const{win:t}=this.Ni;t.setTimeout((()=>{this.Ni.signals().signal(Fn)}),50)}}zi(){const t=this.Ni.getVisibilityState();t!=ue&&t!=ce&&t!=le&&t!=ae||this.$i.forEach(((t,i)=>this.Wi(i)))}Gi(t){const i=this.Fi;i?(i.includes(t)||i.push(t),this.Hi()):this.Wi(t)}Hi(){const t=this.Ni.isReady(),i=this.Fi;if(i)for(let e=0;e<i.length;e++){const s=i[e];(t||Ht(s,this.Ni.getRootNode()))&&(i.splice(e--,1),this.Wi(s))}t&&(this.Fi=null,this.qi())}Li(t){for(let i=0;i<t.length;i++){const{isIntersecting:e,target:s}=t[i],n=s,r=this.$i.get(n);if(!r)continue;const o=e||r.isIntersecting;o!==r.isIntersecting&&this.$i.set(n,{asap:r.asap,isIntersecting:o}),o&&this.Wi(n)}}Wi(t){const i=this.Fi,e=!(i&&i.includes(t)),{asap:s,isIntersecting:n}=this.$i.get(t)||{asap:!1,isIntersecting:!1},r=this.Ni.getVisibilityState();if(!e||!s&&!n||!(r==ue||r==ce||r==le&&t.prerenderAllowed()||r==ae&&t.previewAllowed()))return;this.unschedule(t);const{win:o}=this.Ni;(s||t.getBuildPriority()<=0?o.setTimeout:o.requestIdleCallback||o.setTimeout)((()=>t.mountInternal()))}}),vi(t,zn)}var jn=class{constructor(){this.Ki=[]}peek(){const t=this.length;return t?this.Ki[t-1].item:null}enqueue(t,i){if(isNaN(i))throw new Error("Priority must not be NaN.");const e=this.Yi(i);this.Ki.splice(e,0,{item:t,priority:i})}Yi(t){let i=-1,e=0,s=this.length;for(;e<=s&&(i=Math.floor((e+s)/2),i!==this.length);)if(this.Ki[i].priority<t)e=i+1;else{if(!(i>0&&this.Ki[i-1].priority>=t))break;s=i-1}return i}forEach(t){let i=this.length;for(;i--;)t(this.Ki[i].item)}dequeue(){const t=this.Ki.pop();return t?t.item:null}get length(){return this.Ki.length}},Gn=/nochunking=1/.test(self.location.hash),qn=!1,Wn=s();function Kn(t,i,e){if(Gn)return void Wn.then(i);const s=(gi(n=t.documentElement||t,"chunk",Jn),vi(n,"chunk"));var n;s.runForStartup(i),e&&s.runForStartup((()=>{s.Ji=!0}))}var Yn="not_run",Qn=class{constructor(t){this.state=Yn,this.Qi=t}Xi(t){if("run"!=this.state){this.state="run";try{this.Qi(t)}catch(t){throw this.Zi(t),t}}}ts(){return this.Qi.displayName||this.Qi.name}Zi(t){}ss(){return!1}es(){return!1}},Xn=class extends Qn{constructor(t,i,e){super(t),this.ns=e}Zi(t){rn(self.document)}ss(){return this.rs()}es(){return this.ns.hs}rs(){return this.ns.ampdoc.isVisible()}},Jn=class{constructor(t){var i;this.ampdoc=t,this.i=t.win,this.os=new jn,this.us=this.ls.bind(this),this.cs=0,this.ds=!(!this.i.navigator.scheduling||!this.i.navigator.scheduling.isInputPending),this.fs=!1,this.Ji=this.i.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.i.addEventListener("message",(t=>{"amp-macro-task"==Ys(t)&&this.ls(null)})),this.hs=!1,(i=t,yi(i,"viewer")).then((()=>{this.hs=!0})),t.onVisibilityChanged((()=>{t.isVisible()&&this.ps()}))}run(t,i){const e=new Qn(t);this._s(e,i)}runForStartup(t){const i=new Xn(t,this.i,this);this._s(i,Number.POSITIVE_INFINITY)}_s(t,i){this.os.enqueue(t,i),this.ps()}As(t){let i=this.os.peek();for(;i&&i.state!==Yn;)this.os.dequeue(),i=this.os.peek();return i&&t&&this.os.dequeue(),i}ls(t){const i=this.As(!0);if(!i)return this.fs=!1,this.cs=0,!1;let e;try{e=Date.now(),i.Xi(t)}finally{Wn.then().then().then().then().then().then().then().then().then((()=>{this.fs=!1,this.cs+=Date.now()-e,this.ps()}))}return!0}gs(t){if(!qn&&this.Ji&&(this.ds?this.i.navigator.scheduling.isInputPending():this.cs>5))return this.cs=0,void this.Ps();Wn.then((()=>{this.us(t)}))}ps(){if(this.fs)return;const t=this.As();return t?t.ss()?(this.fs=!0,void this.gs(null)):void(t.es()&&this.i.requestIdleCallback?function(t,i,e,s){const n=Date.now();t.requestIdleCallback((function i(e){if(e.timeRemaining()<15){const r=2e3-(Date.now()-n);r<=0||e.didTimeout?s(e):t.requestIdleCallback(i,{timeout:r})}else s(e)}),{timeout:2e3})}(this.i,0,0,this.us):this.Ps()):void 0}Ps(){this.i.postMessage("amp-macro-task","*")}},Zn="activate",tr=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=Mt(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 oe(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==ts}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 s()}firstLayoutCompleted(){this.togglePlaceholder(!1)}pauseCallback(){}resumeCallback(){}unlayoutCallback(){return!1}unlayoutOnPause(){return!1}reconstructWhenReparented(){return!0}loadPromise(t){return Xs(t)}registerAction(t,i,e=2){ir(this),this.actionMap_[t]={handler:i,minTrust:e}}registerDefaultAction(t,i="activate",e=2){Tt(!this.defaultActionAlias_),this.registerAction(i,t,e),this.defaultActionAlias_=i}executeAction(t,i){let{method:e}=t;e===Zn&&(e=this.defaultActionAlias_||e),ir(this);const s=this.actionMap_[e],{tagName:n}=this.element;Rt(s,`Method not found: ${e} in ${n}`);const{handler:r,minTrust:o}=s;if(t.satisfiesTrust(o))return r(t)}forwardEvents(t,i){const e=(P(t)?t:[t]).map((t=>Ks(i,t,(i=>{Gt(this.element,t,Ys(i)||{})}))));return()=>e.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 he(this.getAmpDoc())}getIntersectionElementLayoutBox(){return this.getLayoutBox()}collapse(){Qi(this.getAmpDoc()).collapseElement(this.element)}attemptCollapse(){return Qi(this.getAmpDoc()).attemptCollapse(this.element)}forceChangeHeight(t){Qi(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)}attemptChangeHeight(t){return Qi(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)}attemptChangeSize(t,i,e){return Qi(this.getAmpDoc()).requestChangeSize(this.element,t,i,void 0,e)}measureElement(t){return Qi(this.getAmpDoc()).measureElement(t)}mutateElement(t,i){return this.measureMutateElement(null,t,i)}measureMutateElement(t,i,e){return Qi(this.getAmpDoc()).measureMutateElement(e||this.element,t,i)}mutateElementSkipRemeasure(t){return Qi(this.getAmpDoc()).mutateElement(this.element,t,!0)}collapsedCallback(t){}expand(){Qi(this.getAmpDoc()).expandElement(this.element)}mutatedAttributesCallback(t){}onLayoutMeasure(){}user(){return yt(this.element)}getApi(){return this}};function ir(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var er=class extends tr{},sr="amp-",nr="send-positions",rr="position";function or(t){try{return!!t.location.href&&(t.test||!0)}catch(t){return!1}}var hr,lr=Date.now(),ar={bubbles:!1},ur=()=>!0,cr=[],dr=new Set;function fr(t){return"placeholder"in t}function pr(t){Tt(!t.Ns)}var mr=new WeakMap;function gr(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function _r(t,i,e){const s=gr(t);if(s[i]){if(s[i]!=e){Rt(s[i]==er,"%s is already registered. The script tag for %s is likely included twice in the page.",i,i),s[i]=e;for(let s=0;s<cr.length;s++){const n=cr[s];n.tagName.toLowerCase()==i&&n.ownerDocument.defaultView==t&&(Ar(n,e),cr.splice(s--,1))}}}else br(t,i,e)}function Ar(t,i){try{t.upgrade(i)}catch(i){Cn(i,t)}}function vr(t){(function(t){if(!t)return[];const i=t.querySelectorAll("script[custom-element],script[custom-template]"),e=[];for(let t=0;t<i.length;t++){const s=i[t],n=s.getAttribute("custom-element")||s.getAttribute("custom-template"),r=ci(s.src);n&&r&&e.push({script:s,extensionId:n,extensionVersion:r.extensionVersion})}return e})(t.getHeadNode()).forEach((({extensionId:i,extensionVersion:e,script:s})=>{t.declareExtension(i,e),s.addEventListener("error",(()=>function(t){dr.add(t||"*");for(const i of cr)null!=t&&i.tagName.toLowerCase()!==t||i.markUnresolved()}(i))),Pr(t.win,i)})),t.isBodyAvailable()&&t.setExtensionsKnown()}function Pr(t,i){gr(t)[i]||br(t,i,er)}function yr(t,i,e){br(i,e,gr(t)[e]||er)}function br(t,i,e){gr(t)[i]=e;const s=function(t,i){const e=function(t,i){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;const e=t.HTMLElement;return t.__AMP_BASE_CE_CLASS=class extends e{constructor(){super(),this.createdCallback()}createdCallback(){this.vs=!1,this.Es=!1,this.Ts=null,this.Rs=!1,this.Is=null,this.Ms=null,this.ys="upgrading",this.everAttached=!1,this.Ni=null,this.fi=null,this.ws=ts,this.Pi=0,this.bs=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this.Vs=void 0,this.layoutScheduleTime=void 0;const i=this;let e=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.Ss=e===er?null:e||null,this.Ss||cr.push(this),this.xs=null,this.Os=1,this.Cs=0,this.ks=void 0,this.Ns=void 0,this.Kt=new me,this.Ss&&this.Kt.signal(bs);const s=Ai(t,"performance");this.Ds=s&&s.isPerformanceTrackingOn(),this.Ls=null,i.__AMP_UPG_RES&&(i.__AMP_UPG_RES(i),delete i.__AMP_UPG_RES,delete i.__AMP_UPG_PRM)}get readyState(){return this.ys}signals(){return this.Kt}getAmpDoc(){return Tt(this.Ni),this.Ni}getResources(){return Tt(this.fi),this.fi}isUpgraded(){return 2==this.Os}whenUpgraded(){return this.Kt.whenSignal(Es)}upgrade(t){this.Ns||1==this.Os&&(this.Ss=t,this.Kt.signal(bs),this.everAttached&&this.Us())}markUnresolved(){this.Ss||this.classList.add("amp-unresolved","i-amphtml-unresolved")}getUpgradeDelayMs(){return this.Cs}$s(i,e){this.xs=i,this.Cs=t.Date.now()-e,this.Os=2,this.setReadyStateInternal(ge),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Fs(),this.dispatchCustomEventForTesting(vs),this.R1()||this.getResources().upgraded(this),this.Kt.signal(Es)}Fs(){this.ws!=ts&&this.xs&&!this.xs.isLayoutSupported(this.ws)&&(Rt(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."),Rt(!1,`Layout not supported: ${this.ws}`))}getBuildPriority(){return this.Ss?this.Ss.getBuildPriority(this):3}getLayoutPriority(){return this.xs?this.xs.getLayoutPriority():3}getDefaultActionAlias(){return Tt(this.isUpgraded()),this.xs.getDefaultActionAlias()}isBuilding(){return!!this.Ts}isBuilt(){return this.vs}whenBuilt(){return this.Kt.whenSignal(Ts)}buildInternal(){if(pr(this),Tt(this.Ss),this.Ts)return this.Ts;this.setReadyStateInternal(ge);const t=this.Bs();this.Hs();const i=t.then((()=>{const t=this.js(),i=t?null:this.zs();if(t||i)return Di(this,"consentPolicyManager","amp-consent").then((e=>!e||(t?e.whenPolicyUnblock(t):e.whenPurposesUnblock(i)))).then((t=>{if(!t)throw new Error(Sn)}))})).then((()=>Tt(this.xs).buildCallback()));return this.Ts=i.then((()=>{if(this.vs=!0,this.classList.add("i-amphtml-built"),this.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),this.Kt.signal(Ts),this.R1()?this.setReadyStateInternal(this.ys!=ge?this.ys:_e):(this.setReadyStateInternal(Ae),this.preconnect(!1)),this.Es&&this.Gs(),this.ks&&ie(Mt(this)).delay(this.qs.bind(this),1),!this.getPlaceholder()){const t=this.createPlaceholder();t&&this.appendChild(t)}}),(t=>{throw this.Kt.rejectSignal(Ts,t),this.R1()&&this.setReadyStateInternal(Pe,t),Nn(t)||Cn(t,this),t}))}build(){return this.Ts?this.Ts:this.Kt.whenSignal(bs).then((()=>(this.R1()&&Bn(this.getAmpDoc()).scheduleAsap(this),this.whenBuilt())))}mountInternal(){if(this.Is)return this.Is;this.Ms=this.Ms||new AbortController;const{signal:t}=this.Ms;return this.Is=this.buildInternal().then((()=>{if(Tt(this.R1()),t.aborted)return;this.setReadyStateInternal(this.ys!=_e?this.ys:this.Ss.usesLoading(this)?Ae:_e),this.Rs=!0;const i=this.xs.mountCallback(t);return!!i&&i.then(ur)})).then((i=>{if(this.Ms=null,t.aborted)throw Ln();this.Kt.signal(Rs),this.Ss.usesLoading(this)&&!i||this.setReadyStateInternal(ve)})).catch((t=>{var i;throw this.Ms=null,(i=t)&&("string"==typeof i?i.startsWith(Vn):"string"==typeof i.message&&i.message.startsWith(Vn))?this.Is=null:(this.Kt.rejectSignal(Rs,t),this.setReadyStateInternal(Pe,t)),t}))}mount(){if(this.Is)return this.Is;this.Ms=this.Ms||new AbortController;const{signal:t}=this.Ms;return this.Kt.whenSignal(bs).then((()=>{if(!this.R1())return this.whenBuilt();if(t.aborted)throw Ln();return Bn(this.getAmpDoc()).scheduleAsap(this),this.whenMounted()}))}unmount(){this.Es&&this.pause(),this.R1()?(this.Ms&&(this.Ms.abort(),this.Ms=null),Bn(this.getAmpDoc()).unschedule(this),this.Rs&&this.xs.unmountCallback(),this.Rs=!1,this.Is=null,this.Ws(),this.Es&&this.Us(!0)):this.Ks()}whenMounted(){return this.Kt.whenSignal(Rs)}whenLoaded(){return this.Kt.whenSignal(Is)}ensureLoaded(t){return this.mount().then((()=>{if(this.R1())return this.Ss.usesLoading(this)&&this.xs.ensureLoaded(),this.whenLoaded();const i=this.Ys();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){Bn(this.getAmpDoc()).setContainer(this,t)}removeAsContainerInternal(){Bn(this.getAmpDoc()).removeContainer(this)}setReadyStateInternal(t,i){if(t!==this.ys&&(this.ys=t,this.R1()))switch(t){case Ae:return this.Kt.signal(Ms),this.Kt.reset(xs),this.Kt.reset(Is),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(Ps);case ve:return this.Kt.signal(Ms),this.Kt.signal(Is),this.Kt.reset(xs),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),Gt(this,"load",null,ar),void this.dispatchCustomEventForTesting(ys);case Pe:return this.Kt.rejectSignal(Is,i),this.toggleLoading(!1),void Gt(this,"error",i,ar)}}preconnect(t){Tt(this.isUpgraded()),t?this.xs.preconnectCallback(t):Kn(this.getAmpDoc(),(()=>{this.ownerDocument&&this.ownerDocument.defaultView&&this.xs.preconnectCallback(t)}))}R1(){return!!this.Ss&&this.Ss.R1()}deferredMount(){return!!this.Ss&&this.Ss.deferredMount(this)}isAlwaysFixed(){return!!this.xs&&this.xs.isAlwaysFixed()}updateLayoutBox(t,i=!1){this.isBuilt()&&this.onMeasure(i)}onMeasure(){Tt(this.isBuilt());try{this.xs.onLayoutMeasure()}catch(t){Cn(t,this)}}Hs(){var t;return void 0!==this.sizerElement||this.ws!==ss&&this.ws!==ls||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null}Js(t){if(this.ws!==ss)if(this.ws!==ls);else{const i=t.querySelector(".i-amphtml-intrinsic-sizer");if(!i)return;i.setAttribute("src","")}else Oe(t,"paddingTop","0")}Qs(){const t=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),i=!!this.Ls,e=this.ownerDocument.defaultView;t!=i&&e&&(t?(this.Ls=new class{constructor(t,i){this.i=t,this.$=i,this.Xs={},this.Zs=null}start(){this.Zs=this.Xs,this.Xs={}}resolveMatchQuery(t){return"1"===this.te(t,Vs,"1")}resolveListQuery(t){return this.te(t,Ss,"")}complete(){for(const t in this.Zs)t in this.Xs||Os(this.Zs[t],this.$,!1);this.Zs=null}dispose(){for(const t in this.Xs)Os(this.Xs[t],this.$,!1);this.Xs={}}te(t,i,e){if(!t.trim())return e;let s=this.Xs[t];return s||(k(this.Zs),s=this.Zs[t]),s||(s=i(this.i,t),Os(s,this.$,!0)),this.Xs[t]=s,function(t){for(let i=0;i<t.length;i++){const{query:e,value:s}=t[i];if(!e||e.matches)return s}return""}(s)}}(e,(()=>this.ie())),this.ie()):this.se())}se(){this.Ls&&(this.Ls.dispose(),this.Ls=null)}ie(){const t=this.Ls;if(!t)return;t.start();const i=this.getAttribute("media")||null,e=!i||t.resolveMatchQuery(i);this.classList.toggle("i-amphtml-hidden-by-media-query",!e);const s=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");s&&Oe(this,"width",t.resolveListQuery(s));const n=this.ws===ss?this.getAttribute("heights"):null;if(n){const i=this.Hs();i&&Oe(i,"paddingTop",t.resolveListQuery(n))}t.complete(),this.Ys().requestMeasure()}applySize(t,i,e){const s=this.Hs();s&&(this.sizerElement=null,this.Js(s),this.ee((()=>{s&&Ut(s)}))),void 0!==t&&Oe(this,"height",t,"px"),void 0!==i&&Oe(this,"width",i,"px"),e&&(null!=e.top&&Oe(this,"marginTop",e.top,"px"),null!=e.right&&Oe(this,"marginRight",e.right,"px"),null!=e.bottom&&Oe(this,"marginBottom",e.bottom,"px"),null!=e.left&&Oe(this,"marginLeft",e.left,"px")),this.ne()&&this.re(),Gt(this,"amp:size-changed")}connectedCallback(){if(function(){if(void 0===hr){const t=self.document.createElement("template");hr="content"in t}return hr}()||void 0!==this.Ns||(this.Ns=!!St(this,"template")),!this.Ns&&!this.Es&&Ft(this)){if(this.Es=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this.Ni){const t=Mt(this),e=ji(t).getAmpDoc(this);this.Ni=e,i(e,this,this.Ss)}if(this.fi||(this.fi=te(this.Ni)),this.getResources().add(this),this.everAttached){const t=this.reconstructWhenReparented();t&&this.Ws(),this.isUpgraded()&&(t&&!this.R1()&&this.getResources().upgraded(this),this.Gs(),this.dispatchCustomEventForTesting(vs)),this.Ss&&this.R1()&&this.Us()}else{this.everAttached=!0;try{this.ws=function(t){const i=t.getAttribute("i-amphtml-layout");if(i){const s=us(i);var e;return k(s),s!=ss&&s!=ls||!t.firstElementChild?s==ts&&Ce(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(e=t.sizerElement)||void 0===e||e.setAttribute("slot","i-amphtml-svc")),s}const{height:s,layout:n,width:r}=Ds(t);if(t.classList.add(cs(n)),ds(n)&&t.classList.add("i-amphtml-layout-size-defined"),n==ts)Ce(t,!1);else if(n==is)ke(t,{width:L(r),height:L(s)});else if(n==es)Oe(t,"height",L(s));else if(n==ss){const i=t.ownerDocument.createElement("i-amphtml-sizer");i.setAttribute("slot","i-amphtml-svc");const e=ms(s),n=ms(r);N(e),N(n),ke(i,{paddingTop:e/n*100+"%"}),t.insertBefore(i,t.firstChild),t.sizerElement=i}else if(n==ls){const i=ks(t)(Ls),e=i.firstElementChild;C(e),e.setAttribute("src",`data:image/svg+xml;charset=utf-8,<svg height="${s}" width="${r}" xmlns="http://www.w3.org/2000/svg" version="1.1"/>`),t.insertBefore(i,t.firstChild),t.sizerElement=i}else n==rs||n==ns||(n==os?(r&&Oe(t,"width",r),s&&Oe(t,"height",s)):n==hs&&(t.classList.add("i-amphtml-layout-awaiting-size"),r&&Oe(t,"width",r),Oe(t,"height",0)));return t.setAttribute("i-amphtml-layout",n),n}(this),this.Qs()}catch(t){Cn(t,this)}this.Ss?this.Us():(dr.has("*")||dr.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}}ne(){return this.classList.contains("i-amphtml-layout-awaiting-size")}re(){this.classList.remove("i-amphtml-layout-awaiting-size")}Us(t){if(this.R1()){if(!this.Is)if(Bn(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Ts)this.setReadyStateInternal(this.Ss&&this.Ss.usesLoading(this)?Ae:_e);else if(this.setReadyStateInternal(ge),!t){const t=this.Ss.getPreconnects(this);if(t&&t.length>0){const i=this.getAmpDoc();Kn(i,(()=>{const{win:e}=i;if(!e)return;const s=Zi(e);t.forEach((t=>s.url(i,t,!1)))}))}}}else this.he()}he(){if(this.Ns)return;if(1!=this.Os)return;const i=new(Tt(this.Ss))(this);this.Os=4;const e=t.Date.now(),s=i.upgradeCallback();if(s){if("function"==typeof s.then)return s.then((t=>{this.$s(t||i,e)})).catch((t=>{this.Os=3,a(t)}));this.$s(s,e)}else this.$s(i,e)}disconnectedCallback(){this.disconnect(!1)}Gs(){this.vs&&this.xs.attachedCallback()}disconnect(t){!this.Ns&&this.Es&&(!t&&Ft(this)||(t&&this.classList.remove("i-amphtml-element"),this.Es=!1,this.getResources().remove(this),this.xs&&this.xs.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.se()))}dispatchCustomEventForTesting(t,i){}prerenderAllowed(){return!this.hasAttribute("noprerender")&&!!this.Ss&&this.Ss.prerenderAllowed(this)}previewAllowed(){return!!this.Ss&&this.Ss.previewAllowed(this)}isBuildRenderBlocking(){return!!this.xs&&this.xs.isBuildRenderBlocking()}createPlaceholder(){return this.xs?this.xs.createPlaceholderCallback():null}createLoaderLogo(){return this.Ss?this.Ss.createLoaderLogoCallback(this):{}}renderOutsideViewport(){return!!this.xs&&this.xs.renderOutsideViewport()}idleRenderOutsideViewport(){return!!this.xs&&this.xs.idleRenderOutsideViewport()}getLayoutBox(){return this.Ys().getLayoutBox()}getLayoutSize(){return this.Ys().getLayoutSize()}getOwner(){return this.Ys().getOwner()}getIntersectionChangeEntry(){const t=this.xs?this.xs.getIntersectionElementLayoutBox():this.getLayoutBox(),i=this.getOwner(),e=he(this.getAmpDoc()).getRect();return function(t,i,e){const s=function(t){let i=-1/0,e=1/0,s=-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),e=Math.min(e,r.left+r.width),s=Math.max(s,r.top),n=Math.min(n,r.top+r.height),e<i||n<s))return null}return e==1/0?null:Yt(i,s,e-i,n-s)}(t,i,e)||Yt(0,0,0,0);return function(t,i,e,s){let n=t,r=i;return i&&(e=Xt(e,-i.left,-i.top),n=Xt(n,-i.left,-i.top),r=Xt(r,-i.left,-i.top)),{time:"undefined"!=typeof performance&&performance.now?performance.now():Date.now()-lr,rootBounds:r,boundingClientRect:n,intersectionRect:e,intersectionRatio:s}}(t,e,s,function(t,i){const e=t.width*t.height,s=i.width*i.height;return 0===s?0:e/s}(s,t))}(t,i&&i.getLayoutBox(),e)}Ys(){return this.getResources().getResourceForElement(this)}getResourceId(){return this.Ys().getId()}isRelayoutNeeded(){return!!this.xs&&this.xs.isRelayoutNeeded()}getImpl(t=!0){return(t?this.build():this.Bs()).then((()=>this.xs))}Bs(){return this.Kt.whenSignal(bs).then((()=>(this.he(),this.whenUpgraded())))}getApi(){return this.getImpl().then((t=>t.getApi()))}getLayout(){return this.ws}layoutCallback(t){if(pr(this),Tt(this.isBuilt()),t.aborted)return Promise.reject(Ln());this.dispatchCustomEventForTesting(Ps);const i=0==this.Pi;this.Kt.reset(xs),i&&this.Kt.signal(Ms),this.toggleLoading(!0);const e=r((()=>this.xs.layoutCallback()));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),e.then((()=>{if(t.aborted)throw Ln();i&&this.Kt.signal(Is),this.setReadyStateInternal(ve),this.Pi++,this.toggleLoading(!1),this.bs||(this.xs.firstLayoutCompleted(),this.bs=!0,this.dispatchCustomEventForTesting(ys))}),(e=>{if(t.aborted)throw Ln();throw i&&this.Kt.rejectSignal(Is,e),this.setReadyStateInternal(Pe,e),this.Pi++,this.toggleLoading(!1),e}))}pause(){this.isBuilt()&&(this.xs.pauseCallback(),!this.R1()&&this.xs.unlayoutOnPause()&&this.Ks())}resume(){this.isBuilt()&&this.xs.resumeCallback()}unlayoutCallback(){if(pr(this),!this.isBuilt())return!1;this.Kt.signal(xs);const t=this.xs.unlayoutCallback();return t&&this.Ws(),this.dispatchCustomEventForTesting("amp:unload"),t}Ks(){this.Ys().unlayout(),this.Es&&this.fi&&this.fi.schedulePass()}Ws(){this.Pi=0,this.bs=!1,this.Kt.reset(Rs),this.Kt.reset(ws),this.Kt.reset(Ms),this.Kt.reset(Is),this.Kt.reset("ini-load")}reconstructWhenReparented(){return!!this.xs&&this.xs.reconstructWhenReparented()}collapse(){this.xs&&this.xs.collapse()}collapsedCallback(t){this.xs&&this.xs.collapsedCallback(t)}expand(){this.xs&&this.xs.expand()}mutatedAttributesCallback(t){this.xs?this.xs.mutatedAttributesCallback(t):this.R1()&&Bn(this).scheduleAsap(this)}enqueAction(t){pr(this),this.isBuilt()?this.oe(t,!1):(void 0===this.ks&&(this.ks=[]),Tt(this.ks).push(t),this.build())}qs(){if(!this.ks)return;const t=Tt(this.ks);this.ks=null,t.forEach((t=>{this.oe(t,!0)}))}oe(t,i){try{this.xs.executeAction(t,i)}catch(i){a("Action execution failed:",i,t.node.tagName,t.method)}}js(){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?Tt(this.xs).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 Ot(this,(t=>t.hasAttribute("placeholder")&&!fr(t)))}togglePlaceholder(t){if(pr(this),t){const t=this.getPlaceholder();t&&t.classList.remove("amp-hidden")}else{const t=(xt("placeholder"),this.querySelectorAll(wt("> [placeholder]",":scope")));for(let i=0;i<t.length;i++)fr(t[i])||t[i].classList.add("amp-hidden")}}getFallback(){return kt(this,"fallback")}toggleFallback(t){pr(this);const i=this.Ys().getState();if((this.R1()||!t||0!=i&&1!=i&&2!=i)&&(this.classList.toggle("amp-notsupported",t),1==t)){const t=this.getFallback();t&&(e=this.getAmpDoc(),vi(e,"owners")).scheduleLayout(this,t)}var e}renderStarted(){this.Kt.signal(ws),this.togglePlaceholder(!1),this.toggleLoading(!1)}ue(t){const i=this.Pi>0||this.Kt.get(ws);return!(this.ws==ts||this.hasAttribute("noloading")||i&&!t||!function(t){const i=t.tagName.toUpperCase();return"AMP-AD"===(e=i)||"AMP-ANIM"===e||"AMP-EMBED"===e||"AMP-FACEBOOK"===e||"AMP-FACEBOOK-COMMENTS"===e||"AMP-FACEBOOK-PAGE"===e||"AMP-GOOGLE-DOCUMENT-EMBED"===e||"AMP-IFRAME"===e||"AMP-IMG"===e||"AMP-INSTAGRAM"===e||"AMP-LIST"===e||"AMP-PINTEREST"===e||"AMP-PLAYBUZZ"===e||"AMP-RENDER"===e||"AMP-TIKTOK"===e||"AMP-TWITTER"===e||function(t){return"AMP-VIDEO"!=t&&as.test(t)}(i);var e}(this)||Ct(this))}toggleLoading(t,i=!1){if(!this.ownerDocument||!this.ownerDocument.defaultView)return;const e=Pi(this.getAmpDoc(),"loadingIndicator");e&&((t=t&&this.ue(i))?e.track(this):e.untrack(this))}getOverflowElement(){return void 0===this.Vs&&(this.Vs=kt(this,"overflow"),this.Vs&&(this.Vs.hasAttribute("tabindex")||this.Vs.setAttribute("tabindex","0"),this.Vs.hasAttribute("role")||this.Vs.setAttribute("role","button"))),this.Vs}overflowCallback(t,i,e){this.getOverflowElement(),this.Vs?(this.Vs.classList.toggle("amp-visible",t),this.Vs.onclick=t?()=>{const t=Qi(this.getAmpDoc());t.forceChangeSize(this,i,e),t.mutateElement(this,(()=>{this.overflowCallback(!1,i,e)}))}:null):t&&this.warnOnMissingOverflow}ee(t,i,e=!1){this.Ni?Qi(this.getAmpDoc()).mutateElement(i||this,t,e):t()}},t.__AMP_BASE_CE_CLASS}(t,i);class s extends e{adoptedCallback(){Object.getPrototypeOf(this)!==n&&Object.setPrototypeOf(this,n)}}const n=s.prototype;return s}(t,Er);t.customElements.define(i,s)}function Er(t,i,e){mr.has(t)||(mr.set(t,!0),vr(t));const s=i.localName;e||t.declaresExtension(s)||Ki(t.win).installExtensionForDoc(t,s,"0.1")}var Tr="amp-img",Rr=["alt","aria-describedby","aria-label","aria-labelledby","crossorigin","referrerpolicy","title","importance","sizes","srcset","src"],Mr=class t extends tr{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 e=t.getAttribute("srcset");if(e){const t=/\S+/.exec(e);if(t)return[t[0]]}return null}constructor(t){super(t),this.le=!0,this.ce=null,this.ae=null,this.de=null,this.fe=0}mutatedAttributesCallback(i){if(this.ce){const e=Rr.filter((t=>void 0!==i[t]));i.src&&!i.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),e.push("srcset"),this.user().warn(Tr,"Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element)),_s(e,this.element,this.ce,!0),this.propagateDataset(this.ce),t.R1()&&!this.ce.complete&&this.setReadyState(Ae)}}preconnectCallback(t){const i=this.element.getAttribute("src");if(i)Zi(this.win).url(this.getAmpDoc(),i,t);else{const i=this.element.getAttribute("srcset");if(!i)return;const e=/\S+/.exec(i);e&&Zi(this.win).url(this.getAmpDoc(),e[0],t)}}isLayoutSupported(t){return ds(t)}pe(){if(this.ce)return this.ce;this.le=!this.element.hasAttribute("fallback");const t=Wt(this.element);var i,e;return t&&(this.ce=Vt(this.element,"> img:not([placeholder])")),this.ce=this.ce||new Image,this.ce.setAttribute("decoding","async"),this.element.id&&this.ce.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(Tr,"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.me(!0),_s(Rr,this.element,this.ce),this.propagateDataset(this.ce),gs(this.ce,!0),i=this.element,e=this.ce,i.hasAttribute("object-fit")&&Oe(e,"object-fit",i.getAttribute("object-fit")),i.hasAttribute("object-position")&&Oe(e,"object-position",i.getAttribute("object-position")),t||this.element.appendChild(this.ce),this.ce}me(t){if(!this.ce)return;if(this.element.hasAttribute("i-amphtml-ssr"))return;if(this.element.hasAttribute("sizes")||this.ce.hasAttribute("sizes"))return;const i=this.element.getAttribute("srcset");if(!i||/[0-9]+x(?:,|$)/.test(i))return;const{width:e}=this.element.getLayoutSize();if(!this._e(e))return;const s=this.getViewport().getWidth(),n=`(max-width: ${s}px) ${e}px, `;let r=e+"px";if(this.getLayout()!==is){const t=Math.round(100*e/s);r=Math.max(t,100)+"vw"}const o=n+r;t?this.ce.setAttribute("sizes",o):this.mutateElement((()=>{this.ce.setAttribute("sizes",o)})),this.fe=e}_e(t){return!this.ce.hasAttribute("sizes")||t>this.fe}reconstructWhenReparented(){return!1}mountCallback(){const t=!!this.ce,i=this.pe();t||(Ks(i,"load",(()=>{this.setReadyState(ve),this.firstLayoutCompleted(),this.Ae()})),Ks(i,"error",(t=>{this.setReadyState(Pe,t),this.ge()}))),i.complete?(this.setReadyState(ve),this.firstLayoutCompleted(),this.Ae()):this.setReadyState(Ae)}unmountCallback(){const t=this.ce;t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ut(t),this.ce=null)}ensureLoaded(){this.ce.loading="eager"}layoutCallback(){this.pe();const t=this.ce;this.ae=Ks(t,"load",(()=>this.Ae())),this.de=Ks(t,"error",(()=>this.ge()));const{width:i}=this.element.getLayoutSize();return i<=0?s():this.loadPromise(t)}unlayoutCallback(){if(t.R1())return;this.de&&(this.de(),this.de=null),this.ae&&(this.ae(),this.ae=null);const i=this.ce;return i&&!i.complete&&(i.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ut(i),this.ce=null),!0}firstLayoutCompleted(){const t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?Se(t,{"opacity":0}):this.togglePlaceholder(!1)}Ae(){!this.le&&this.ce.classList.contains("i-amphtml-ghost")&&(this.ce.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))}ge(){this.le&&(this.ce.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this.le=!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])}},wr=class extends tr{static prerenderAllowed(){return!0}isLayoutSupported(t){return t==ns||ds(t)}buildCallback(){!function(t){if(Wt(t))return;const i=function(t){var i;return us(null!==(i=t.getAttribute("layout"))&&void 0!==i?i:"")||Ds(t).layout}(t);if(i==ns)return;const e=t.ownerDocument.createElement("div");gs(e),function(t){return function(t,i){const e=[];for(let i=t.firstChild;i;i=i.nextSibling)!Ct(i)&&e.push(i);return e}(t)}(t).forEach((t=>{e.appendChild(t)})),t.appendChild(e)}(this.element)}};function Ir(t,i,e=!1,s,n){const r=new(Be.getImage(t));e&&(r.referrerPolicy="no-referrer");let o=0;var h;return null!=s&&((null===(h=t.document.featurePolicy)||void 0===h?void 0:h.allowedFeatures().includes("attribution-reporting"))?(o=6,s=xr(t,o,n)(s),r.attributionSrc=s):o=5),i=xr(t,o,n)(i),r.src=i,r}function xr(t,i,e){const s={"ATTRIBUTION_REPORTING_STATUS":()=>i},n=ee(e||t.document),r={"ATTRIBUTION_REPORTING_STATUS":!0};return t=>n.expandUrlSync(t,s,r)}var Vr="amp-pixel",Sr=class extends tr{constructor(t){super(t),this.Pe=null}isLayoutSupported(t){return!0}buildCallback(){this.element.setAttribute("aria-hidden","true"),this.ve=this.element.getAttribute("referrerpolicy"),this.ve&&Rt("no-referrer"==this.ve,`${Vr}: invalid "referrerpolicy" value "${this.ve}". Only "no-referrer" is supported`),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")||this.getAmpDoc().whenFirstVisible().then(this.Ee.bind(this))}Ee(){if(this.Pe)return Et().error(Vr,"duplicate pixel"),this.Pe;this.Pe=ie(this.win).promise(1).then((()=>{const t=this.element.getAttribute("src");if(t)return ee(this.element).expandUrlAsync(this.Te(t)).then((t=>{if(this.win)return function(t,i,e,s,n){return e&&"no-referrer"!==e&&yt().error("pixel","Unsupported referrerPolicy: %s",e),"no-referrer"===e?function(t,i,e,s){if("referrerPolicy"in Image.prototype)return Ir(t,i,!0,e,s);{const e=$t(t.document,"iframe",{"src":"about:blank","style":"display:none"});return e.onload=()=>{Ir(e.contentWindow,i,void 0,void 0,s)},t.document.body.appendChild(e),e}}(t,i,s,n):Ir(t,i,!1,s,n)}(this.win,t,this.ve,this.element.getAttribute("attributionsrc"),this.element)}))}))}Te(t){return Rt(/^(https\:\/\/|\/\/)/i.test(t),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+t),t}},Or=class{constructor(t,i,e){this.Re=ie(t),this.Ie=i,this.Me=e||0,this.ye=-1,this.we=0,this.be=!1,this.Ve=()=>{this.Se()}}isPending(){return-1!=this.ye}schedule(t){let i=t||this.Me;this.be&&i<10&&(i=10);const e=Date.now()+i;return(!this.isPending()||e-this.we<-10)&&(this.cancel(),this.we=e,this.ye=this.Re.delay(this.Ve,i),!0)}Se(){this.ye=-1,this.we=0,this.be=!0,this.Ie(),this.be=!1}cancel(){this.isPending()&&(this.Re.cancel(this.ye),this.ye=-1)}};function kr(t){return function(t,i){const e=i.documentElement;return["⚡4email","amp4email"].some((t=>e.hasAttribute(t)))}(0,t)}var Cr="Action",Lr="__AMP_ACTION_MAP__"+Math.random(),Nr="__AMP_ACTION_QUEUE__",Dr="__AMP_ACTION_HANDLER__",Ur={"form":["submit","clear"]},$r=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Fr={"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},zr=class{constructor(t,i,e,s,n,r,o,h="?",l=null,a=Math.random()){this.node=t,this.method=i,this.args=e,this.source=s,this.caller=n,this.event=r,this.trust=o,this.actionEventType=h,this.tagOrTarget=l||t.tagName,this.sequenceId=a}satisfiesTrust(t){if(!M(this.trust))return Et().error(Cr,`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 k(2===t),"default"}}(this.trust);return yt().error(Cr,`"${this.actionEventType}" event with "${t}" trust is not allowed to invoke "${this.tagOrTarget.toLowerCase()}.${this.method}".`),!1}return!0}};function Hr(t){return"amp-"===t.substring(0,4)}var Br=class{constructor(t){this.detail=null,function(t,i){const e=i||p();for(const i in t){const s=t[i];e[i]="function"==typeof s?jr:t[i]}}(t,this)}};function jr(){Tt(null)}function Gr(t,i){const e=Wr.bind(null,t,i),s=Kr.bind(null,t,i);let n=null;const r=new Xr(t);let o,h;do{if(o=r.next(),o.type==Yr.EOF||o.type==Yr.SEPARATOR&&";"==o.value);else if(o.type==Yr.LITERAL||o.type==Yr.ID){const i=o.value;s(r.next(),[Yr.SEPARATOR],":");const l=[];do{const n=s(r.next(),[Yr.LITERAL,Yr.ID]).value;let o=Zn,a=null;h=r.peek(),h.type==Yr.SEPARATOR&&"."==h.value&&(r.next(),o=s(r.next(),[Yr.LITERAL,Yr.ID]).value||o,h=r.peek(),h.type==Yr.SEPARATOR&&"("==h.value&&(r.next(),a=qr(r,s,e))),l.push({event:i,target:n,method:o,args:a,str:t}),h=r.peek()}while(h.type==Yr.SEPARATOR&&","==h.value&&r.next());n||(n=p()),n[i]=l}else e(!1,`; unexpected token [${o.value||""}]`)}while(o.type!=Yr.EOF);return n}function qr(t,i,e){let s,n=t.peek(),r=null;if(n.type==Yr.OBJECT){r=p();const{value:e}=t.next();r.__AMP_OBJECT_STRING__=e,i(t.next(),[Yr.SEPARATOR],")")}else do{s=t.next();const{type:h,value:l}=s;if(h!=Yr.SEPARATOR||","!=l&&")"!=l)if(h==Yr.LITERAL||h==Yr.ID){i(t.next(),[Yr.SEPARATOR],"="),s=i(t.next(!0),[Yr.LITERAL,Yr.ID]);const h=[s];if(s.type==Yr.ID)for(n=t.peek();n.type==Yr.SEPARATOR&&"."==n.value;n=t.peek())t.next(),s=i(t.next(!1),[Yr.ID]),h.push(s);const a=0==(o=h).length?null:1==o.length?o[0].value:{expression:o.map((t=>t.value)).join(".")};r||(r=p()),r[l]=a,n=t.peek(),e(n.type==Yr.SEPARATOR&&(","==n.value||")"==n.value),"Expected either [,] or [)]")}else e(!1,`; unexpected token [${s.value||""}]`)}while(s.type!=Yr.SEPARATOR||")"!=s.value);var o;return r}function Wr(t,i,e,s){return Rt(e,"Invalid action definition in %s: [%s] %s",i,t,s||"")}function Kr(t,i,e,s,n){return void 0!==n?Wr(t,i,s.includes(e.type)&&e.value==n,`; expected [${n}]`):Wr(t,i,s.includes(e.type)),e}var Yr={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},Qr=" \t\n\r\f\v \u2028\u2029",Xr=class{constructor(t){this.xe=t,this.Oe=-1}next(t){const i=this.Ce(t||!1);return this.Oe=i.index,i}peek(t){return this.Ce(t||!1)}Ce(t){let i=this.Oe+1;if(i>=this.xe.length)return{type:Yr.EOF,index:this.Oe};let e=this.xe.charAt(i);if(-1!=Qr.indexOf(e)){for(i++;i<this.xe.length&&-1!=Qr.indexOf(this.xe.charAt(i));i++);if(i>=this.xe.length)return{type:Yr.EOF,index:i};e=this.xe.charAt(i)}if(t&&(Jr(e)||"."==e&&i+1<this.xe.length&&Jr(this.xe[i+1]))){let t="."==e,s=i+1;for(;s<this.xe.length;s++){const i=this.xe.charAt(s);if("."!=i){if(!Jr(i))break}else t=!0}const n=this.xe.substring(i,s),r=t?parseFloat(n):parseInt(n,10);return i=s-1,{type:Yr.LITERAL,value:r,index:i}}if(-1!=";:.()=,|!".indexOf(e))return{type:Yr.SEPARATOR,value:e,index:i};if(-1!="\"'".indexOf(e)){let t=-1;for(let s=i+1;s<this.xe.length;s++)if(this.xe.charAt(s)==e){t=s;break}if(-1==t)return{type:Yr.INVALID,index:i};const s=this.xe.substring(i+1,t);return i=t,{type:Yr.LITERAL,value:s,index:i}}if("{"==e){let t=1,e=-1;for(let s=i+1;s<this.xe.length;s++){const i=this.xe[s];if("{"==i?t++:"}"==i&&t--,t<=0){e=s;break}}if(-1==e)return{type:Yr.INVALID,index:i};const s=this.xe.substring(i,e+1);return i=e,{type:Yr.OBJECT,value:s,index:i}}let s=i+1;for(;s<this.xe.length&&-1==" \t\n\r\f\v \u2028\u2029;:.()=,|!\"'{}".indexOf(this.xe.charAt(s));s++);const n=this.xe.substring(i,s);if(i=s-1,t&&("true"==n||"false"==n)){const t="true"==n;return{type:Yr.LITERAL,value:t,index:i}}return Jr(n.charAt(0))?{type:Yr.LITERAL,value:n,index:i}:{type:Yr.ID,value:n,index:i}}};function Jr(t){return t>="0"&&t<="9"}function Zr(t){return!!t&&"function"==typeof t.getFormData}var to=["GET","POST"],io=[P,f];function eo(t,i){const e=A({},i);if(Zr(i.body)){const t=i.body;e.headers["Content-Type"]="multipart/form-data;charset=utf-8",e.body=function(t){const i=[];for(let e=t.next();!e.done;e=t.next())i.push(e.value);return i}(t.entries())}return{input:t,init:e}}function so(t,i){const e=t||{},s=e.credentials;return k(void 0===s||"include"==s||"omit"==s),e.method=void 0===(n=e.method)?"GET":(n=n.toUpperCase(),k(to.includes(n)),n),e.headers=e.headers||{},i&&(e.headers.Accept=i),k(null!==e.body),e;var n}function no(t){return new Promise((i=>{if(t.ok)return i(t);const{status:e}=t,s=yt().createError(`HTTP error ${e}`);throw s.retriable=function(t){return 415==t||t>=500&&t<600}(e),s.response=t,s}))}var ro=class{constructor(t){this.win=t;const i=ji(t);this.ke=i.isSingleDoc()?i.getSingleDoc():null}Ne(t,i){return function(t,i,e,n){if(!i)return s();const r=n.prerenderSafe?s():i.whenFirstVisible(),o=re(i),h=yn(e),l=o.hasCapability("xhrInterceptor"),a=n.bypassInterceptorForDev&&!1;return h||!l||a?r:i.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?r.then((()=>o.isTrustedViewer())).then((i=>{if(!i&&!zs(t,"untrusted-xhr-interception"))return;const s={"originalRequest":eo(e,n)};return o.sendMessageAwaitResponse("xhr",s).then((t=>function(t,i){if(D(f(t),"Object expected: %s",t),"document"!=i)return new Response(t.body,t.init);const e=p(),s={status:200,statusText:"OK",getResponseHeader:t=>e[String(t).toLowerCase()]||null};if(t.init){const i=t.init;P(i.headers)&&i.headers.forEach((t=>{const i=t[0],s=t[1];e[String(i).toLowerCase()]=String(s)})),i.status&&(s.status=parseInt(i.status,10)),i.statusText&&(s.statusText=String(i.statusText))}return new Response(t.body?String(t.body):"",s)}(t,n.responseType)))})):r}(this.win,this.ke,t,i).then((t=>{if(t)return t;if(Zr(i.body)){const t=i.body;i.body=t.getFormData()}return this.win.fetch.apply(null,arguments)}))}De(t,i={}){return t=function(t,i,e){return k("string"==typeof i),!1!==e.ampCors&&(i=In(t,i)),i}(this.win,t,i),i=function(t,i,e){e=e||{};const s=function(t){return t.origin||dn(t.location.href).origin}(t);return s==dn(i).origin&&(e.headers=e.headers||{},e.headers["AMP-Same-Origin"]="true"),e}(this.win,t,i),this.Ne(t,i).then((t=>t),(i=>{const e=dn(t).origin;throw yt().createExpectedError("XHR",`Failed fetching (${e}/...):`,i&&i.message)}))}fetchJson(t,i){return this.fetch(t,function(t){const i=so(t,"application/json");if("POST"==i.method&&!Zr(i.body)){k(io.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?_n(i.body):JSON.stringify(i.body)}return i}(i))}fetchText(t,i){return this.fetch(t,so(i,"text/plain"))}xssiJson(t,i){return i?t.text().then((t=>t.startsWith(i)?U(t.slice(i.length)):U(t))):t.json()}fetch(t,i){const e=so(i);return this.De(t,e).then((t=>no(t)))}sendSignal(t,i){return this.De(t,i).then((t=>no(t)))}getCorsUrl(t,i){return In(t,i)}},oo=class extends ro{constructor(t){super(t),this.Le=p()}fetch(t,i){const e=i&&i.headers&&i.headers.Accept||"",s=!i||!i.method||"GET"===i.method,n=this.Ue(t,e),r=!!this.Le[n];if(s&&r)return this.Le[n].then((t=>t.clone()));const o=super.fetch(t,i);return s&&(this.Le[n]=o.then((t=>(delete this.Le[n],t.clone())),(t=>{throw delete this.Le[n],t}))),o}Ue(t,i){return Pn(wn(t,Mn(this.win.location)))+i}},ho={"+":"-","/":"_","=":"."};function lo(t){const i=function(t){const i=new Array(t.length);for(let e=0;e<t.length;e++)i[e]=String.fromCharCode(t[e]);return i.join("")}(t);return btoa(i).replace(/[+/=]/g,(t=>ho[t]))}var ao="Crypto";var uo=["prefetch","preload","preconnect","dns-prefetch"],co={attributes:!0,attributeFilter:["hidden"],subtree:!0};function fo(t){try{return t.state}catch(t){return null}}var po="History",mo="AMP.History";function go(t){const i=re(t);let e;return i.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?e=new class{constructor(t,i){this.win=t,this.Fe=i,this.Be=0,this.He=null,this.je=this.Fe.onMessage("historyPopped",(t=>this.ze(t)))}replaceStateForTarget(t){Tt("#"==t[0]),this.win.location.replace(t)}cleanup(){this.je()}setOnStateUpdated(t){this.He=t}Ge(t,i,e){return this.qe(t)?t:i}qe(t){return!!t&&void 0!==t.stackIndex}push(t){const i=A({"stackIndex":this.Be+1},t||{}),e="pushHistory";return this.Fe.sendMessageAwaitResponse(e,i).then((t=>{const s=i,n=this.Ge(t,s,e);return this.We(n),n}))}pop(t){if(t>this.Be)return this.get();const i={"stackIndex":this.Be},e="popHistory";return this.Fe.sendMessageAwaitResponse(e,i).then((t=>{const i={"stackIndex":this.Be-1},s=this.Ge(t,i,e);return this.We(s),s}))}replace(t){if(t&&t.url){if(!this.Fe.hasCapability("fullReplaceHistory")){const t={"stackIndex":this.Be};return Promise.resolve(t)}const i=t.url.replace(/#.*/,"");t.url=i}const i=A({"stackIndex":this.Be},t||{}),e="replaceHistory";return this.Fe.sendMessageAwaitResponse(e,i,!0).then((t=>{const s=i,n=this.Ge(t,s,e);return this.We(n),n}))}get(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.Be,title:""})}ze(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.qe(t)&&this.We(t)}We(t){const{stackIndex:i}=t;this.Be!=i&&(this.Be=i,this.He&&this.He(t))}getFragment(){return this.Fe.hasCapability("fragment")?this.Fe.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.Fe.hasCapability("fragment")?this.Fe.sendMessageAwaitResponse("replaceHistory",{"fragment":t},!0):s()}}(t.win,i):(mi(t.win,"global-history-binding",class{constructor(t){this.win=t,this.Re=ie(t);const{history:i}=this.win;this.Ke=i.length-1;const e=fo(i);let s,n;e&&void 0!==e[mo]&&(this.Ke=Math.min(e[mo],this.Ke)),this.Be=this.Ke,this.Ye,this.He=null,this.Je="state"in i,this.Qe=this.Xe(this.Be),i.pushState&&i.replaceState?(this.Ze=i.originalPushState||i.pushState.bind(i),this.tn=i.originalReplaceState||i.replaceState.bind(i),s=(t,i,e)=>{this.Qe=t;try{this.Ze(t,i,e||null)}catch(t){Et().error(po,"pushState failed: "+t.message)}},n=(t,i,e)=>{this.Qe=t;try{void 0!==e?this.tn(t,i,e):this.tn(t,i)}catch(t){Et().error(po,"replaceState failed: "+t.message)}},i.originalPushState||(i.originalPushState=this.Ze),i.originalReplaceState||(i.originalReplaceState=this.tn)):(s=(t,i,e)=>{this.Qe=t},n=(t,i,e)=>{this.Qe=t}),this.sn=s,this.en=n;try{this.en(this.Xe(this.Be,!0))}catch(t){Et().error(po,"Initial replaceState failed: "+t.message)}i.pushState=this.nn.bind(this),i.replaceState=this.rn.bind(this),this.hn=t=>{t.state,this.on()},this.win.addEventListener("popstate",this.hn)}cleanup(){this.Ze&&(this.win.history.pushState=this.Ze),this.tn&&(this.win.history.replaceState=this.tn),this.win.removeEventListener("popstate",this.hn)}Xe(t,i){const e=p(i?this.un():void 0);return e[mo]=t,e}setOnStateUpdated(t){this.He=t}push(t){return this.ln((()=>{const i=this.cn(this.un(),t||{});return this.nn(i,void 0,i.fragment?"#"+i.fragment:void 0),r((()=>this.cn(i,{stackIndex:this.Be})))}))}pop(t){return t=Math.max(t,this.Ke),this.ln((()=>this.an(this.Be-t+1))).then((t=>this.cn(this.un(),{stackIndex:t})))}replace(t={}){return this.ln((()=>{const i=this.cn(this.un(),t||{}),e=(i.url||"").replace(/#.*/,""),s=i.fragment?"#"+i.fragment:"";return this.rn(i,i.title,e||s?e+s:void 0),r((()=>this.cn(i,{stackIndex:this.Be})))}))}get(){return r((()=>this.cn(this.un(),{stackIndex:this.Be})))}backTo(t){return t=Math.max(t,this.Ke),this.ln((()=>this.an(this.Be-t)))}on(){let t=this.un();const i=t?t[mo]:void 0;let e=this.Be;const s=this.Ye;this.Ye=void 0,e>this.win.history.length-2&&(e=this.win.history.length-2,this.We(this.cn(t,{stackIndex:e}))),null==i?e+=1:e=i<this.win.history.length?i:this.win.history.length-1,t||(t={}),t[mo]=e,this.en(t,void 0,void 0),e!=this.Be&&this.We(this.cn(t,{stackIndex:e})),e<this.Ke&&(this.Ke=e),s&&s.resolve()}un(){return this.Je?fo(this.win.history):this.Qe}dn(){Tt(!this.Ye)}ln(t){return this.Ye?this.Ye.promise.then(t,t):t()}fn(){this.dn();const t=new n,{reject:i,resolve:e}=t,s=this.Re.timeoutPromise(500,t.promise);return this.Ye={promise:s,resolve:e,reject:i},s}an(t){if(this.dn(),t<=0)return Promise.resolve(this.Be);this.Qe=this.Xe(this.Be-t);const i=this.fn();return this.win.history.go(-t),i.then((()=>Promise.resolve(this.Be)))}nn(t,i,e){this.dn(),t||(t={});let s=this.Be+1;t[mo]=s,this.sn(t,i,e),s!=this.win.history.length-1&&(s=this.win.history.length-1,t[mo]=s,this.en(t));const n=this.cn(t,{stackIndex:s});this.We(n)}replaceStateForTarget(t){Tt("#"==t[0]),this.ln((()=>{this.win.removeEventListener("popstate",this.hn);try{this.win.location.replace(t)}finally{this.win.addEventListener("popstate",this.hn)}return this.rn(),s()}))}rn(t,i,e){this.dn(),t||(t={});const s=Math.min(this.Be,this.win.history.length-1);t[mo]=s,this.en(t,i,e);const n=this.cn(t,{stackIndex:s});this.We(n)}We(t){this.dn(),t.stackIndex=Math.min(t.stackIndex,this.win.history.length-1),this.Be!=t.stackIndex&&(this.Be=t.stackIndex,this.He&&this.He(t))}getFragment(){let{hash:t}=this.win.location;return t=t.substr(1),Promise.resolve(t)}updateFragment(t){return this.replace({fragment:t})}cn(t,i){const e=A(A({},t&&t.data||{}),i.data||{});return A(A(A({},t||{}),i),{},{data:e})}}),e=_i(t.win,"global-history-binding")),new class{constructor(t,i){this.Ni=t,this.Re=ie(t.win),this.pn=i,this.Be=0,this.mn=[],this.Ki=[],this.pn.setOnStateUpdated(this.He.bind(this))}cleanup(){this.pn.cleanup()}push(t,i){return this._n((()=>this.pn.push(i).then((i=>(this.He(i),t&&(this.mn[i.stackIndex]=t),i.stackIndex)))),"push")}pop(t){return this._n((()=>this.pn.pop(t).then((t=>{this.He(t)}))),"pop")}replace(t){return this._n((()=>this.pn.replace(t)),"replace")}get(){return this._n((()=>this.pn.get()),"get")}goBack(t){return this._n((()=>this.Be<=0&&!t?s():this.pn.pop(this.Be).then((t=>{this.He(t)}))),"goBack")}replaceStateForTarget(t){Tt("#"==t[0]);const i=this.Ni.win.location.hash;return this.push((()=>{this.Ni.win.location.replace(i||"#")})).then((()=>{this.pn.replaceStateForTarget(t)}))}getFragment(){return this.pn.getFragment()}updateFragment(t){return"#"==t[0]&&(t=t.substr(1)),this.pn.updateFragment(t)}He(t){this.Be=t.stackIndex,this.An(t)}An(t){if(this.Be>=this.mn.length-1)return;const i=[];for(let t=this.mn.length-1;t>this.Be;t--)this.mn[t]&&(i.push(this.mn[t]),this.mn[t]=void 0);if(this.mn.splice(this.Be+1),i.length>0)for(let e=0;e<i.length;e++)this.Re.delay((()=>i[e](t)),1)}_n(t,i){const e=new n,{promise:s,reject:r,resolve:o}=e,h=new Error("history trace for "+i+": ");return this.Ki.push({callback:t,resolve:o,reject:r,trace:h}),1==this.Ki.length&&this.gn(),s}gn(){if(0==this.Ki.length)return;const t=this.Ki[0];let i;try{i=t.callback()}catch(t){i=Promise.reject(t)}i.then((i=>{t.resolve(i)}),(i=>{Et().error(po,"failed to execute a task:",i),t.trace&&(t.trace.message+=i,Et().error(po,t.trace)),t.reject(i)})).then((()=>{this.Ki.splice(0,1),this.gn()}))}}(t,e)}var _o=null,Ao=["gclid","gclsrc"];function vo(){return Rt(_o,"E#19457 trackImpressionPromise")}function Po(t,i,e,s){let n;try{n=t.open(i,e,s)}catch(t){Et().error("DOM","Failed to open url on target: ",e,t)}var r,o;return!n&&"_top"!=e&&("number"!=typeof o&&(o=0),o+"noopener".length>(r=s||"").length||-1===r.indexOf("noopener",o))&&(n=t.open(i,"_top")),n}var yo="navigation",bo="click",Eo="contextmenu",To=["_top","_blank"],Ro="data-a4a-orig-href",Mo=class{constructor(t){this.ampdoc=t,this.Mc=t.getRootNode(),this.Uu=he(this.ampdoc),this.Fe=re(this.ampdoc),this.vn=Yi(this.ampdoc),this.Or=Ji(this.ampdoc.win),this.yc=this.Or.isIos()&&this.Or.isSafari(),this.$o=jt(this.ampdoc.win)&&this.Fe.isOvertakeHistory(),this.wc=this.Mc!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.bc="inabox"==at(this.ampdoc.win).runtime,this.Vc=this.Mc.nodeType==Node.DOCUMENT_NODE?this.Mc.documentElement:this.Mc,this.Sc=this.xc.bind(this),this.Mc.addEventListener(bo,this.Sc),this.Mc.addEventListener(Eo,this.Sc),this.Oc=!1,function(t){return t.whenReady().then((()=>!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")))}(this.ampdoc).then((t=>{this.Oc=t})),this.su=!1,this.Cc=!1,Promise.all([this.Fe.isTrustedViewer(),this.Fe.getViewerOrigin()]).then((t=>{var i;this.su=t[0],this.Cc=(i=t[1],et.test(cn(i).origin))})),this.kc=null,this.Nc=new jn,this.Dc=new jn}static installAnchorClickInterceptor(t,i){i.document.documentElement.addEventListener("click",wo.bind(null,t),!0)}cleanup(){this.Sc&&(this.Mc.removeEventListener(bo,this.Sc),this.Mc.removeEventListener(Eo,this.Sc))}openWindow(t,i,e,s){let n="";!this.Or.isIos()&&this.Or.isChrome()||s||(n+="noopener");const r=Po(t,i,e,n);r&&!s&&(r.opener=null)}navigateTo(t,i,e,s={}){const{opener:n=!1,target:r="_top"}=s;i=this.Lc(i);const o=ne(this.Vc);if(!o.isProtocolValid(i))return void yt().error(yo,"Cannot navigate to invalid protocol: "+i);Rt(To.includes(r),`Target '${r}' not supported.`);const h=o.getSourceUrl(t.location);i=o.resolveRelativeUrl(i,h),"_blank"!=r?e&&(this.kc||(this.kc=this.Uc()),this.kc.includes(e)&&this.navigateToAmpUrl(i,e))||(t.top.location.href=i):this.openWindow(t,i,r,n)}navigateToAmpUrl(t,i){return!!this.Fe.hasCapability("a2a")&&(this.Fe.sendMessage("a2aNavigate",{"url":t,"requestedBy":i}),!0)}Uc(){const t=this.Mc.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((t=>t.trim())):[]}xc(t){if(t.defaultPrevented)return;const i=St(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");i&&i.href&&(t.type==bo?this.$c(i,t):t.type==Eo&&this.Fc(i,t))}$c(t,i){this.Bc(t);let e=this.Hc(t.href);if(this.jc(i,t,e))return;if(this.zc(i,t,e))return;const s=this.Gc();Io(e)!=Io(s)&&(this.qc(t,i),e=this.Hc(t.href)),this.Wc(i,t,e,s)}Fc(t,i){this.Bc(t),this.qc(t,i)}qc(t,i){this.Nc.forEach((e=>{e(t,i)}))}Lc(t){return this.Dc.forEach((i=>{t=i(t)})),t}Bc(t){let i=null;this.Oc&&!this.wc&&(i=function(t,i){const e=W(dn(Be.getLocation(t).href).search),s=[];for(let t=0;t<Ao.length;t++){const i=Ao[t];void 0!==e[i]&&s.push(i)}const n=i.getAttribute("data-amp-addparams");let{href:r}=i;n&&(r=gn(r,W(n)));const o=W(dn(r).search);for(let t=s.length-1;t>=0;t--)void 0!==o[s[t]]&&s.splice(t,1);return function(t){let i="";for(let e=0;e<t.length;e++){const s=t[e];i+=0==e?`${s}=QUERY_PARAM(${s})`:`&${s}=QUERY_PARAM(${s})`}return i}(s)}(this.ampdoc.win,t)),ee(t).maybeExpandLink(t,i)}zc(t,i,e){if(!this.$o)return!1;const s=Mt(i),n=i.href,{protocol:r}=e;if("ftp:"==r)return Po(s,n,"_blank"),t.preventDefault(),!0;const o=/^(https?|mailto):$/.test(r);return!(!this.yc||o||(Po(s,n,"_top"),t.preventDefault(),0))}jc(t,i,e){return!(!i.hasAttribute("rel")||!i.getAttribute("rel").split(" ").map((t=>t.trim())).includes("amphtml")||!this.navigateToAmpUrl(e.href,"<a rel=amphtml>")||(t.preventDefault(),0))}Wc(t,i,e,s){const n=Io(e),r=Io(s);if(e.hash&&n==r)this.Kc(t,e,s);else{let e=(i.getAttribute("target")||"").toLowerCase();(this.wc||this.bc)&&"_top"!=e&&"_blank"!=e&&(e="_blank",i.setAttribute("target",e));const{win:r}=this.ampdoc,o=Ji(r),h=re(i);s.search&&o.isSafari()&&o.getMajorVersion()>=13&&h.isProxyOrigin()&&h.isEmbedded()&&this.Yc(r,s,e),this.viewerInterceptsNavigation(n,"intercept_click")&&t.preventDefault()}}Yc(t,i,e){const s=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,"",s):Et().error(yo,"Unexpected iframe URL change:",i,n)};"_blank"===e?t.setTimeout(r,0):t.addEventListener("pageshow",(function i(e){e.persisted&&(r(),t.removeEventListener("pageshow",i))}))}Kc(t,i,e){if(t.preventDefault(),this.wc)return;const s=i.hash.slice(1);let n=null;if(s){const t=It(s);n=this.Mc.getElementById(s)||this.Mc.querySelector(`a[name="${t}"]`)}i.hash!=e.hash?this.vn.replaceStateForTarget(i.hash).then((()=>{this.Jc(n,s)})):this.Jc(n,s)}registerAnchorMutator(t,i){this.Nc.enqueue(t,i)}registerNavigateToMutator(t,i){this.Dc.enqueue(t,i)}Jc(t,i){t&&(this.Uu.scrollIntoView(t),ie(this.ampdoc.win).delay((()=>this.Uu.scrollIntoView(t)),1))}Hc(t){return ne(this.Vc).parse(t)}Gc(){return this.Hc("")}viewerInterceptsNavigation(t,i){const e=this.Fe.hasCapability("interceptNavigation"),s=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!e||!s||!this.su&&!this.Cc||(this.Fe.sendMessage("navigateTo",{"url":t,"requestedBy":i}),0))}};function wo(t,i){const e=St(i.target,"A");if(!e||!e.href)return;const s=e.getAttribute(Ro)||e.getAttribute("href");if(!s)return;const n={"CLICK_X":()=>i.pageX,"CLICK_Y":()=>i.pageY},r=ee(e).expandUrlSync(s,n,{"CLICK_X":!0,"CLICK_Y":!0});r!=s&&(e.getAttribute(Ro)||e.setAttribute(Ro,s),e.setAttribute("href",r))}function Io(t){return`${t.origin}${t.pathname}${t.search}`}function xo(t){return P(t)?t:[t]}function Vo(t){mi(t,"platform",class{constructor(t){this._h=t.navigator,this.i=t}isAndroid(){return/Android/i.test(this._h.userAgent)}isIos(){return/iPhone|iPad|iPod/i.test(this._h.userAgent)}isSafari(){return/Safari/i.test(this._h.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()}isChrome(){return/Chrome|CriOS/i.test(this._h.userAgent)&&!this.isEdge()&&!this.isOpera()}isFirefox(){return/Firefox|FxiOS/i.test(this._h.userAgent)&&!this.isEdge()}isOpera(){return/OPR\/|Opera|OPiOS/i.test(this._h.userAgent)}isEdge(){return/Edge/i.test(this._h.userAgent)}isWebKit(){return/WebKit/i.test(this._h.userAgent)&&!this.isEdge()}isWindows(){return/Windows/i.test(this._h.userAgent)}isStandalone(){return this.isIos()&&this._h.standalone||this.isChrome()&&this.i.matchMedia("(display-mode: standalone)").matches}isBot(){return/bot/i.test(this._h.userAgent)}getMajorVersion(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:this.Ah(/\sVersion\/(\d+)/,1):this.isChrome()?this.Ah(/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?this.Ah(/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?this.Ah(/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?this.Ah(/Edge\/(\d+)/,1):0}Ah(t,i){if(!this._h.userAgent)return 0;const e=this._h.userAgent.match(t);return!e||i>=e.length?0:parseInt(e[i],10)}getIosVersionString(){var t,i,e;return this.isIos()&&(null===(t=this._h.userAgent)||void 0===t||null===(i=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===i||null===(e=i[1])||void 0===e?void 0:e.replace(/_/g,"."))||""}getIosMajorVersion(){const t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])}})}function So(t){return t.queryCommandSupported("copy")}function Oo(t){return t.hasAttribute("hidden")}var ko="STANDARD-ACTIONS",Co=/^i-amphtml-/;var Lo="__AMP_IMPL_",No=()=>{};function Do(t){mi(t,"timer",class{constructor(t){this.win=t,this.Bn=this.win.Promise.resolve(),this.Hn=0,this.jn={},this.zn=Date.now()}timeSinceStart(){return Date.now()-this.zn}delay(t,i){if(!i){const i="p"+this.Hn++;return this.Bn.then((()=>{this.jn[i]?delete this.jn[i]:t()})).catch(Cn),i}return this.win.setTimeout((()=>{try{t()}catch(t){throw Cn(t),t}}),i)}cancel(t){"string"!=typeof t?this.win.clearTimeout(t):this.jn[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,e){let s;const n=new this.win.Promise(((i,n)=>{if(s=this.delay((()=>{n(yt().createError(e||"timeout"))}),t),-1==s)throw new Error("Failed to schedule timer.")}));if(!i)return n;const r=()=>{this.cancel(s)};return i.then(r,r),this.win.Promise.race([n,i])}poll(t,i){return new this.win.Promise((e=>{const s=this.win.setInterval((()=>{i()&&(this.win.clearInterval(s),e())}),t)}))}})}var Uo="Expander",$o=class{constructor(t,i,e,s,n,r){this.Gn=t,this.qn=i,this.Wn=e,this.Kn=s,this.Yn=n,this.Jn=!r}expand(t){if(!t.length)return this.Kn?t:Promise.resolve(t);const i=this.Gn.getExpr(this.qn,this.Yn),e=this.Qn(t,i);return e.length?this.Xn(t,e):this.Kn?t:Promise.resolve(t)}getMacroNames(t){const i=this.Gn.getExpr(this.qn,this.Yn);return t.match(i)||[]}Qn(t,i){const e=[];return t.replace(i,((t,i,s)=>{const{length:n}=t,r={start:s,stop:n+s-1,name:i,length:n};e.push(r)})),e}Xn(t,i){const e=[];let s=0,n=0,r=i[n],o=0,h=!1;const l=u=>{let c="",d=[];const f=[];for(;s<t.length&&n<=i.length;){const a=c.trim();if(r&&s===r.start){let h;a&&d.push(o?(p=c).trimStart?p.trimStart():(p+"_").trim().slice(0,-1):c),h=this.qn&&m(this.qn,r.name)?{name:r.name,prioritized:this.qn[r.name],encode:u}:A(A({},this.Gn.get(r.name)),{},{name:r.name,encode:u}),s=r.stop+1,r=i[++n],"("===t[s]?(s++,o++,e.push(h),d.push(l(!1))):d.push(this.Zn(h)),c=""}else if("`"===t[s])h?(h=!1,c.length&&d.push(c)):(h=!0,a&&d.push(a)),c="",s++;else if(o&&","===t[s]&&!h)a&&d.push(a),f.push(d),d=[],","===t[s+1]&&(f.push([""]),s++),c="",s++;else{if(o&&")"===t[s]&&!h){s++,o--;const t=e.pop();return a&&d.push(a),f.push(d),this.Zn(t,f)}c+=t[s],s++}s===t.length&&c.length&&d.push(c)}var p;return this.Kn?d.join(""):Promise.all(d).then((t=>t.join(""))).catch((t=>(a(t),"")))};return l(this.Jn)}Zn(t,i){const{encode:e,name:s}=t;let n;if(null!=t.prioritized?n=t.prioritized:this.Kn&&null!=t.sync?n=t.sync:this.Kn?(yt().error(Uo,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.Kn){const t=this.tr(n,s,i);return e?encodeURIComponent(t):t}return this.ir(n,s,i).then((t=>e?encodeURIComponent(t):t))}ir(t,i,e){let s;try{if("function"==typeof t){const i=t;s=e?this.sr(e).then((t=>i.apply(null,t))):r(i)}else s=Promise.resolve(t);return s.then((t=>{let s;return this.er(i,t,e),s=null==t?"":t,s})).catch((t=>(a(t),this.er(i,"",e),Promise.resolve(""))))}catch(t){return a(t),this.er(i,"",e),Promise.resolve("")}}sr(t){return Promise.all(t.map((t=>Promise.all(t).then((t=>t.join(""))))))}tr(t,i,e){try{let s,n=t;return"function"==typeof t&&(n=t.apply(null,this.nr(e))),n&&"function"==typeof n.then?(yt().error(Uo,"ignoring async macro resolution"),s=""):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(this.er(i,n,e),s=n.toString()):(this.er(i,"",e),s=""),s}catch(t){return a(t),this.er(i,"",e),""}}nr(t){return t?t.map((t=>t.join(""))):t}er(t,i,e){if(!this.Wn)return;let s="";e&&(s=`(${e.filter((t=>""!==t)).join(",")})`),this.Wn[`${t}${s}`]=i||""}},Fo={"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 zo(t,i,e){const n=Fo[i]||3,r=e?Fo[e]||3:n,o=Math.max(n,r);let h;if(1===o)h=s();else if(2===o)h=Me(t.document);else if(3===o)h=Xs(t);else if(4===o){const i=ie(t);h=Xs(t).then((()=>i.promise(1)))}return Tt(h),h.then((()=>Ho(t,i,e)))}function Ho(t,i,e){const s=t.performance&&t.performance.timing;if(!s||0==s.navigationStart)return;const n=void 0===e?s[i]:s[e]-s[i];return!M(n)||n<0?void 0:n}function Bo(t,i){const e=t.performance&&t.performance.navigation;if(e&&void 0!==e[i])return e[i]}var jo="UrlReplacements";function Go(t){return()=>(new Date)[t]()}function qo(t,i){return()=>t[i]}function Wo(t,i){return i?(Rt("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"}function Ko(t,i){Tt(t);try{void 0!==t(i)&&Et().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",t.toString())}catch(t){return a(t),!1}return!0}function Yo(t){if(t.defaultPrevented)return;const i=t.target;if(!i||"FORM"!=i.tagName)return;let e;e=i.classList.contains("i-amphtml-form")?!i.hasAttribute("amp-novalidate"):!i.hasAttribute("novalidate"),e&&i.checkValidity&&!i.checkValidity()&&t.preventDefault();const s=i.elements;for(let t=0;t<s.length;t++)Rt(!s[t].name||s[t].name!=un,"Illegal input name, %s found: %s",un,s[t]);const n=i.getAttribute("action"),r=i.getAttribute("action-xhr"),o=(i.getAttribute("method")||"GET").toUpperCase();if(r&&(vn(r,i,"action-xhr"),Rt(!yn(r),"form action-xhr should not be on AMP CDN: %s",i),xn(r)),n&&(vn(n,i,"action"),Rt(!yn(n),"form action should not be on AMP CDN: %s",i),xn(n)),"GET"==o)Rt(r||n,"form action-xhr or action attribute is required for method=GET: %s",i);else if("POST"==o){if(n){const t="form";yt().error(t,"action attribute is invalid for method=POST: %s",i)}r||(t.preventDefault(),Rt(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",i))}const h=i.getAttribute("target");h?Rt("_blank"==h||"_top"==h,"form target=%s is invalid can only be _blank or _top: %s",h,i):i.setAttribute("target","_top"),r&&(t.preventDefault(),t.stopImmediatePropagation(),zi(i).execute(i,"submit",null,i,i,t,3))}var Qo=["<link rel=preload referrerpolicy=origin>"],Xo=18e4,Jo=null;function Zo(t){var i;(function(t){mi(t,"crypto",class{constructor(t){this.i=t;let i=null,e=!1;t.crypto&&(t.crypto.subtle?i=t.crypto.subtle:t.crypto.webkitSubtle&&(i=t.crypto.webkitSubtle,e=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=i,this.fh=e,this.ph=null}sha384(t){if("string"==typeof t&&(t=F(t)),!this.subtle||this.ph)return(this.ph||this.mh()).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&&yt().error(ao,"SubtleCrypto failed, fallback to closure lib.",i),this.mh().then((()=>this.sha384(t))))))}catch(i){return Et().error(ao,"SubtleCrypto failed, fallback to closure lib.",i),this.mh().then((()=>this.sha384(t)))}}sha384Base64(t){return this.sha384(t).then((t=>lo(t)))}uniform(t){return this.sha384(t).then((t=>{let i=0;for(let e=2;e>=0;e--)i=(i+t[e])/256;return i}))}mh(){return this.ph?this.ph:this.ph=Ki(this.i).preloadExtension("amp-crypto-polyfill").then((()=>_i(this.i,"crypto-polyfill")))}isPkcsAvailable(){return Boolean(this.subtle)&&!1!==this.i.isSecureContext}importPkcsKey(t){Tt(this.isPkcsAvailable());const i=this.fh?(e=JSON.stringify(t),"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):F(unescape(encodeURIComponent(e)))):t;var e;return this.subtle.importKey("jwk",i,this.pkcsAlgo,!0,["verify"])}verifyPkcs(t,i,e){return Tt(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,i,e)}})})(t),mi(t,"batched-xhr",oo),Vo(t),Do(t),Do(i=t),mi(i,"vsync",class{constructor(t){this.win=t,this.gh=ji(this.win),this.Ph=this.Eh(),this.os=[],this.Th=[],this.Rh=[],this.Ih=[],this.ye=!1,this.Mh=null,this.yh=null,this.wh=this.bh.bind(this),this.Vh=new Or(this.win,this.wh,16),this.Sh=new Or(this.win,this.wh,40),this.xh=this.Oh.bind(this),this.gh.isSingleDoc()?this.gh.getSingleDoc().onVisibilityChanged(this.xh):Fe(this.win.document,this.xh)}dispose(){ze(this.win.document,this.xh)}Oh(){this.ye&&this.Ch()}run(t,i){this.os.push(t),this.Rh.push(i||void 0),this.ps()}runPromise(t,i){if(this.run(t,i),this.Mh)return this.Mh;const e=new n;return this.yh=e.resolve,this.Mh=e.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.kh(Tt(t))}kh(t){if($e(this.win.document)!=ue)return!1;if(this.gh.isSingleDoc())return this.gh.getSingleDoc().isVisible();if(t){const i=this.gh.getAmpDocIfAvailable(t);return!i||i.isVisible()}return!0}runAnim(t,i,e){return!!this.kh(t)&&(this.run(i,e),!0)}createAnimTask(t,i){return e=>this.runAnim(t,i,e)}runAnimMutateSeries(t,i,e){return this.kh(t)?new Promise(((s,n)=>{const r=Date.now();let o=0;const h=this.createAnimTask(t,{mutate:t=>{const l=Date.now()-r;i(l,l-o,t)?e&&l>e?n(new Error("timeout")):(o=l,h(t)):s()}});h({})})):Promise.reject(Ln())}ps(){this.ye||(this.ye=!0,this.Ch())}Ch(){this.kh()?(this.Ph(this.wh),this.Sh.schedule()):this.Vh.schedule()}bh(){this.Sh.cancel(),this.ye=!1;const{yh:t,Rh:i,os:e}=this;this.yh=null,this.Mh=null,this.os=this.Th,this.Rh=this.Ih;for(let t=0;t<e.length;t++)e[t].measure&&(Ko(e[t].measure,i[t])||(e[t].mutate=void 0));for(let t=0;t<e.length;t++)e[t].mutate&&Ko(e[t].mutate,i[t]);this.Th=e,this.Ih=i,this.Th.length=0,this.Ih.length=0,t&&t()}Eh(){const t=this.win.requestAnimationFrame||this.win.webkitRequestAnimationFrame;if(t)return t.bind(this.win);let i=0;return t=>{const e=Date.now(),s=Math.max(0,16-(e-i));i=e+s,this.win.setTimeout(t,s)}}}),function(t){mi(t,"xhr",ro)}(t),function(t){mi(t,"input",class{constructor(t){this.win=t,this.Nh=this.Dh.bind(this),this.Lh=this.Uh.bind(this),this.$h=null,this.Fh=null,this.Bh=null,this.Hh="ontouchstart"in t||void 0!==t.navigator.maxTouchPoints&&t.navigator.maxTouchPoints>0||void 0!==t.DocumentTouch,this.jh=!1,this.win.document.addEventListener("keydown",this.Nh),this.win.document.addEventListener("mousedown",this.Lh),this.zh=!0,this.Gh=0,this.qh=new pe,this.Wh=new pe,this.Kh=new pe,this.Hh&&(this.zh=!this.Hh,this.$h=this.Yh.bind(this),Qs(t.document,"mousemove",this.$h))}setupInputModeClasses(t){this.onTouchDetected((i=>{this.Jh(t,"amp-mode-touch",i)}),!0),this.onMouseDetected((i=>{this.Jh(t,"amp-mode-mouse",i)}),!0),this.onKeyboardStateChanged((i=>{this.Jh(t,"amp-mode-keyboard-active",i)}),!0)}isTouchDetected(){return this.Hh}onTouchDetected(t,i){return i&&t(this.isTouchDetected()),this.qh.add(t)}isMouseDetected(){return this.zh}onMouseDetected(t,i){return i&&t(this.isMouseDetected()),this.Wh.add(t)}isKeyboardActive(){return this.jh}onKeyboardStateChanged(t,i){return i&&t(this.isKeyboardActive()),this.Kh.add(t)}Jh(t,i,e){t.waitForBodyOpen().then((t=>{oe(this.win).mutate((()=>{t.classList.toggle(i,e)}))}))}Dh(t){if(this.jh)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.jh=!0,this.Kh.fire(!0))}Uh(){this.jh&&(this.jh=!1,this.Kh.fire(!1))}Yh(t){if(t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents)return void this.Qh();let i;this.Bh||(this.Bh=this.Xh.bind(this),this.Fh=this.Qh.bind(this));const e=function(t,i,e,s){let n;const r=new Promise((i=>{n=Qs(t,"click",i,void 0)}));return r.then(n,n),s&&s(n),r}(this.win.document,0,0,(t=>{i=t}));return ie(this.win).timeoutPromise(300,e).then(this.Fh,(()=>{i&&i(),this.Bh()}))}Xh(){this.zh=!0,this.Wh.fire(!0)}Qh(){this.Gh++,this.Gh<=3&&Qs(this.win.document,"mousemove",this.$h)}})}(t),function(t){mi(t,"preconnect",class{constructor(t){this.Zh=t.document,this.io=t.document.head,this.so={},this.eo={},this.Or=Ji(t),this.so[dn(t.location.href).origin]=!0,this.no=function(t){if(!Jo){const i=t.document.createElement("link"),e=i.relList;if(i.as="invalid-value",!e||!e.supports)return{};Jo={preconnect:e.supports("preconnect"),preload:e.supports("preload"),onlyValidAs:"invalid-value"!=i.as}}return Jo}(t),this.Re=ie(t)}url(t,i,e){t.whenFirstVisible().then((()=>{this.hi(t,i,e)}))}hi(t,i,e){if(!this.ro(i))return;const{origin:s}=dn(i),n=Date.now(),r=this.so[s];if(r&&n<r)return void(e&&(this.so[s]=n+Xo));const o=e?Xo:1e4;let h;this.so[s]=n+o,this.no.preconnect||(h=this.Zh.createElement("link"),h.setAttribute("rel","dns-prefetch"),h.setAttribute("href",s),this.io.appendChild(h));const l=this.Zh.createElement("link");l.setAttribute("rel","preconnect"),l.setAttribute("href",s),l.setAttribute("referrerpolicy","origin"),this.io.appendChild(l),this.Re.delay((()=>{h&&h.parentNode&&h.parentNode.removeChild(h),l.parentNode&&l.parentNode.removeChild(l)}),1e4),this.ho(t,s)}preload(t,i,e){this.ro(i)&&(this.eo[i]||(this.eo[i]=!0,this.url(t,i,!0),this.no.preload&&("document"==e&&this.Or.isSafari()||t.whenFirstVisible().then((()=>{this.oo(i)})))))}oo(t){const i=ks(this.Zh)(Qo);i.setAttribute("href",t),this.no.onlyValidAs?i.as="fetch":i.as="",this.io.appendChild(i)}ro(t){return!(!t.startsWith("https:")&&!t.startsWith("http:"))}ho(t,i){if(this.no.preconnect||!this.Or.isSafari()&&!this.Or.isIos())return;const e=Date.now();this.so[i]=e+Xo;const s=i+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(e-e%Xo),n=new XMLHttpRequest;n.open("HEAD",s,!0),n.withCredentials=!0,n.send()}})}(t)}var th=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function ih(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:e}=i;return"IMG"===e||"AMP-IMG"===e?1:"VIDEO"===e||"AMP-VIDEO"===e?2:"AMP-CAROUSEL"===e?8:"AMP-BASE-CAROUSEL"===e?16:"AMP-AD"===e?4:!e.startsWith("AMP-")&&i.textContent?32:0}function eh(t){or(t.top)||mi(t,"iframeMessagingClient",sh.bind(null,t),!0)}function sh(t){const i=new class{constructor(t,i){this.i=t,this.rf=at().rtvVersion||null,this.sf=i||null,this.if=null,this.ff=1,this.uf=p(),this.cf()}getData(t,i,e){const s=t+"-result",n=this.ff++,r=this.registerCallback(s,(t=>{t.messageId===n&&(r(),e(t.content))})),o={};o.payload=i,o.messageId=n,this.sendMessage(t,o)}makeRequest(t,i,e){const s=this.registerCallback(i,e);return this.sendMessage(t),s}requestOnce(t,i,e){const s=this.registerCallback(i,(t=>{s(),e(t)}));return this.sendMessage(t),s}registerCallback(t,i){return this.af(t).add(i)}sendMessage(t,i){const e=function(t,i,e={},s=null){const n=e;return n.type=t,n.sentinel=i,sr+(s||"")+JSON.stringify(n)}(t,this.if,i,this.rf);if(this.sf)this.fu(this.sf,e);else for(let t=0,i=this.i;t<10&&i!=this.i.top;t++)i=i.parent,this.fu(i,e),t++}fu(t,i){this.hf(t)?this.lf(t,i):t.postMessage(i,"*")}lf(t,i){t.postMessage(i,{"targetOrigin":"*","includeUserActivation":!0})}cf(){Gs(this.i,"message",(t=>{if(this.sf&&t.source!=this.sf)return;const i=function(t){if(!function(t){return"string"==typeof t&&t.startsWith(sr)&&-1!=t.indexOf("{")}(t))return null;L(t);const i=t.indexOf("{");return k(-1!=i),$(t.substr(i),(i=>{a(new Error(`MESSAGING: Failed to parse message: ${t}\n${i.message}`))}))}(Ys(t));i&&i.sentinel==this.if&&(i.origin=t.origin,this.sf||(this.sf=t.source),this.pf(i.type,i))}),void 0)}setSentinel(t){this.if=t}af(t){return t in this.uf||(this.uf[t]=new pe),this.uf[t]}pf(t,i){t in this.uf&&this.uf[t].fire(i)}hf(t){return 1==t.postMessage.length}}(t),e=$(t.name);let s=null;return e&&e._context&&(s=e._context.sentinel),i.setSentinel(s||function(t){return String(t.Math.random()).substr(2)}(t)),i}function nh(t,i,e){t.requestAnimationFrame((()=>{i.measure&&i.measure(e),i.mutate&&i.mutate(e)}))}function rh(t){const i=new class{constructor(t){this.win=t,this.Rr=new pe,this.Ir=new pe;const i=t.innerWidth,e=t.innerHeight;this.Tt=Yt(0,0,i,e),this.hd=Yt(0,e+1,i,e),this.ad=function(t){return Ai(t,"iframeMessagingClient")}(t),this.Ed=null,this.Td=H(this.win,(()=>{this.Rr.fire()}),100),this.Vd=or(this.win.top),this.Sd=this.Vd?function(t){return t.ampInaboxPositionObserver=t.ampInaboxPositionObserver||new class{constructor(t){this.i=t,this.xt=null,this.It=function(t){const i=t.document;return i.scrollingElement?i.scrollingElement:i.body&&(e=t.navigator.userAgent,/WebKit/i.test(e)&&!/Edge/i.test(e))?i.body:i.documentElement;var e}(this.i),this.Tt=null}observe(t,i){if(!this.xt){this.xt=new pe;const t=H(this.i,(()=>{this.$t(),this.xt.fire()}),100);this.$t(),this.i.addEventListener("scroll",t,!0),this.i.addEventListener("resize",t,!0)}return i(this.St(t)),this.xt.add((()=>{i(this.St(t))}))}$t(){this.Tt=this.getViewportRect()}St(t){return{"viewportRect":this.Tt,"targetRect":this.getTargetRect(t)}}getViewportRect(){const{It:t,i:i}=this,e=t.scrollLeft||i.pageXOffset,s=t.scrollTop||i.pageYOffset;return Yt(Math.round(e),Math.round(s),i.innerWidth,i.innerHeight)}getTargetRect(t){let i=Qt(t.getBoundingClientRect());for(let e=0,s=t.ownerDocument.defaultView;e<10&&s&&s!=this.i&&s!=this.i.top;e++,s=s.parent){const t=Qt(s.frameElement.getBoundingClientRect());i=Xt(i,t.left,t.top)}return i}}(t),t.ampInaboxPositionObserver}(this.win.top):null,this.Od=this.Vd?function(t){return t.ampInaboxFrameOverlayManager=t.ampInaboxFrameOverlayManager||new class{constructor(t){this.i=t,this.Ct=!1,this.Ut=!1,this.zt=null,this.kt()}kt(){this.i.addEventListener("resize",(()=>this.onWindowResize()))}onWindowResize(){this.Ct&&(this.Ut=!0)}expandFrame(t,i){!function(t,i,e){nh(t,{measure(e){e.viewportSize={width:t.innerWidth,height:t.innerHeight},e.rect=Qt(i.getBoundingClientRect())},mutate(s){const{height:n,width:r}=s.viewportSize,o=Yt(0,0,r,n);var h;!function(t,i,e,s){const n=Le(e.width/2-i.width/2-i.left),r=Le(e.height/2-i.height/2-i.top);var o,h;ke(t,{"position":"fixed","top":Le(i.top),"right":Le(e.width-(i.left+i.width)),"left":Le(i.left),"bottom":Le(e.height-(i.top+i.height)),"height":Le(i.height),"width":Le(i.width),"transition":"transform 150ms ease","transform":(o=n,h=r,null==h?`translate(${Ne(o,Le)})`:`translate(${Ne(o,Le)}, ${Ne(h,Le)})`),"margin":0})}(i,s.rect,s.viewportSize),Se(i,{"pointer-events":"none"}),h=()=>{nh(t,{mutate(){Ue(i,["pointer-events"]),function(t){ke(t,{"position":"fixed","z-index":1e3,"left":0,"right":0,"top":0,"bottom":0,"width":"100vw","height":"100vh","transition":null,"transform":null,"margin":0,"border":0})}(i),e(s.rect,o)}})},setTimeout(h,200)}},{})}(this.i,t,((t,e)=>{this.Ct=!0,this.Ut=!1,this.zt=t,i(e)}))}collapseFrame(t,i){!function(t,i,e,s){nh(t,{mutate(){!function(t){Ue(t,["position","z-index","left","right","top","bottom","width","height","margin","border"])}(i),e(),nh(t,{measure(){s(Qt(i.getBoundingClientRect()))}})}})}(this.i,t,(()=>{this.Ct=!1,this.Ut||i(this.zt)}),(t=>{this.zt=t,this.Ut&&i(this.zt)}))}}(t),t.ampInaboxFrameOverlayManager}(this.win.top):null,this.Ld=null}connect(){return this.Vd?this.Nd():this.Dd()}Dd(){return this.ad.makeRequest(nr,rr,(t=>{this.$d(t.viewportRect,t.targetRect)})),s()}Nd(){return(t=this.win.document.documentElement,yi(t,"resources")).then((()=>{this.Ld=this.Ld||this.Sd.observe(this.win.frameElement||this.getScrollingElement(),(t=>{this.$d(t.viewportRect,t.targetRect)}))}));var t}$d(t,i){const e=this.Tt;this.Tt=t,this.Fd(i),hh(this.Tt,e)&&this.Ir.fire(),oh(this.Tt,e)&&this.Td()}getLayoutRect(t){const i=t.getBoundingClientRect(),{left:e,top:s}=i;return Yt(Math.round(e+this.hd.left),Math.round(s+this.hd.top),Math.round(i.width),Math.round(i.height))}onScroll(t){this.Rr.add(t)}onResize(t){this.Ir.add(t)}getSize(){return{width:this.Tt.width,height:this.Tt.height}}getScrollTop(){return this.Tt.top}getScrollLeft(){return this.Tt.left}getScrollingElement(){return this.getBodyElement()}getScrollingElementScrollsLikeViewport(){return!0}supportsPositionFixed(){return!1}Fd(t){if(!t)return;const i=Xt(t,this.Tt.left,this.Tt.top);var e,s;(oh(e=i,s=this.hd)||hh(e,s))&&(this.hd=i,this.Hd())}getChildResources(){return te(this.win.document.documentElement).get()}Hd(){this.getChildResources().forEach((t=>t.measure()))}updateLightboxMode(t){return t?this.Bd():this.Gd()}getRootClientRectAsync(){return this.Vd?this.Nd().then((()=>this.Sd.getTargetRect(this.win.frameElement||this.getScrollingElement()))):(this.Ed||(this.Ed=new Promise((t=>{this.ad.requestOnce(nr,rr,(i=>{this.Ed=null,k(i.targetRect),t(i.targetRect)}))}))),this.Ed)}Bd(){return this.qd().then((()=>this.Wd()))}Gd(){return this.Kd().then((()=>this.Yd()))}qd(){return function(t,i){return oe(t).runPromise({measure:i=>{i.width=t.innerWidth,i.height=t.innerHeight},mutate:t=>{Se(i,{"background":"transparent","left":"50%","top":"50%","right":"auto","bottom":"auto","position":"absolute","height":Le(t.height),"width":Le(t.width),"margin-top":Le(-t.height/2),"margin-left":Le(-t.width/2)})}},{})}(this.win,this.getBodyElement())}Yd(){return function(t,i){return oe(t).mutatePromise((()=>{Ue(i,["position","left","top","right","bottom","width","height","margin-left","margin-top"])}))}(this.win,this.getBodyElement())}Wd(){return new Promise(((t,i)=>{if(this.Vd){const e=this.win.frameElement;e?this.Od.expandFrame(e,(i=>{this.Fd(i),t()})):i("Request to open lightbox failed; frame does not exist.")}else this.ad.requestOnce("full-overlay-frame","full-overlay-frame-response",(e=>{e.success?(this.Fd(e.boxRect),t()):i("Request to open lightbox rejected by host document")}))}))}Kd(){return new Promise(((t,i)=>{if(this.Vd){const e=this.win.frameElement;e?this.Od.collapseFrame(e,(i=>{this.Fd(i),t()})):i("Request to open lightbox failed; frame does not exist.")}else this.ad.requestOnce("cancel-full-overlay-frame","cancel-full-overlay-frame-response",(i=>{this.Fd(i.boxRect),t()}))}))}getBodyElement(){return C(this.win.document.body)}disconnect(){this.Ld&&(this.Ld(),this.Ld=null)}getScrollWidth(){return this.getScrollingElement().offsetWidth}getScrollHeight(){return this.getScrollingElement().offsetHeight}getContentHeight(){return this.getScrollHeight()}updatePaddingTop(){}hideViewerHeader(){}showViewerHeader(){}disableScroll(){}resetScroll(){}ensureReadyForElements(){}setScrollTop(){}contentHeightChanged(){}getBorderTop(){return 0}requiresFixedLayerTransfer(){return!1}overrideGlobalScrollTo(){return!1}}(t.win);gi(t,"viewport",(function(){return new class{constructor(t,i){const{win:e}=t;this.ampdoc=t,this.pn=i,this.Nr=null,this.jr=new pe,this.Rr=new pe,this.Ir=new pe,this.pn.onScroll(this.Jr.bind(this)),this.pn.onResize(this.Qr.bind(this)),this.Zr=!1,this.ampdoc.onVisibilityChanged(this.th.bind(this)),this.th(),this.Qd=this.dispose.bind(this),e.addEventListener("pagehide",this.Qd);const s=e.document.documentElement;s.classList.add("i-amphtml-singledoc"),s.classList.add("i-amphtml-standalone"),jt(e)&&s.classList.add("i-amphtml-iframed")}dispose(){this.pn.disconnect(),this.ampdoc.win.removeEventListener("pagehide",this.Qd)}ensureReadyForElements(){}getPaddingTop(){return 0}getScrollTop(){return this.pn.getScrollTop()}getScrollLeft(){return this.pn.getScrollLeft()}setScrollTop(t){}updatePaddingBottom(t){}getSize(){return this.pn.getSize()}getHeight(){return this.getSize().height}getWidth(){return this.getSize().width}getScrollWidth(){return this.pn.getScrollWidth()}getScrollHeight(){return this.pn.getScrollHeight()}getContentHeight(){return this.pn.getContentHeight()}contentHeightChanged(){}getRect(){if(null==this.Nr){const t=this.getSize();this.Nr=Yt(this.getScrollLeft(),this.getScrollTop(),t.width,t.height)}return this.Nr}getLayoutRect(t){return this.pn.getLayoutRect(t)}getClientRectAsync(t){const i=t.getBoundingClientRect();return this.pn.getRootClientRectAsync().then((t=>t?Xt(i,t.left,t.top):Qt(i)))}supportsPositionFixed(){return!1}isDeclaredFixed(t){return!1}scrollIntoView(t){return s()}animateScrollIntoView(t,i,e,n){return s()}animateScrollWithinParent(t,i,e,n,r){return s()}getScrollingElement(){return this.pn.getScrollingElement()}onChanged(t){return this.jr.add(t)}onScroll(t){return this.Rr.add(t)}onResize(t){return this.Ir.add(t)}enterLightboxMode(t,i){return this.enterOverlayMode(),this.pn.updateLightboxMode(!0)}leaveLightboxMode(t){return this.leaveOverlayMode(),this.pn.updateLightboxMode(!1)}enterOverlayMode(){this.disableTouchZoom(),this.disableScroll()}leaveOverlayMode(){this.resetScroll(),this.restoreOriginalTouchZoom()}disableScroll(){}resetScroll(){}resetTouchZoom(){}disableTouchZoom(){return!1}restoreOriginalTouchZoom(){return!1}updateFixedLayer(){return s()}addToFixedLayer(t,i){return s()}removeFromFixedLayer(t){}createFixedLayer(t){}ah(){const t=this.getSize(),i=this.getScrollTop(),e=this.getScrollLeft();this.jr.fire({relayoutAll:!1,top:i,left:e,width:t.width,height:t.height,velocity:0})}Jr(){this.Nr=null,this.pn.getScrollTop()<0||(this.ah(),this.Rr.fire())}Qr(){this.Nr=null;const t=this.getSize();this.ah(),this.Ir.fire({relayoutAll:!1,width:t.width,height:t.height})}th(){const t=this.ampdoc.isVisible();t!=this.Zr&&(this.Zr=t,t?(this.pn.connect(),this.Qr()):this.pn.disconnect())}}(t,i)}),!0)}function oh(t,i){return t.left!=i.left||t.top!=i.top}function hh(t,i){return t.width!=i.width||t.height!=i.height}function lh(t){eh(t.win),function(t){gi(t,"url",class{constructor(t){const i=t.getRootNode(),e=i.ownerDocument||i;this.uo=e.createElement("a"),this.lo=null}parse(t,i){return fn(this.uo,t)}co(t){return"string"!=typeof t?t:this.parse(t)}isProtocolValid(t){return bn(t)}getSourceOrigin(t){return Mn(this.co(t))}getSourceUrl(t){return Rn(this.co(t))}resolveRelativeUrl(t,i){return wn(t,this.co(i))}assertHttpsUrl(t,i,e="source"){return vn(t,i,e)}assertAbsoluteHttpOrHttpsUrl(t){return function(t){return Rt(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),dn(t).href}(t)}isProxyOrigin(t){return yn(this.co(t))}isSecure(t){return An(this.co(t))}getWinOrigin(t){return t.origin||this.co(t.location.href).origin}getCdnUrlOnOrigin(t){if(yn(t))return t;const{hash:i,host:e,pathname:s,search:n}=this.co(t),r=encodeURIComponent(e);return`${it}/c/${r}${s}${n}${i}`}},!0)}(t),function(t){gi(t,"templates",class{constructor(t){this.Ni=t,this.ao={},this.do={}}whenReady(t){return this.fo(t).then(No)}setHtmlForTemplate(t,i){return this.fo(t).then((t=>this.po(t,i)))}renderTemplate(t,i){return this.fo(t).then((t=>this.mo(t,i)))}renderTemplateAsString(t,i){return this.fo(t).then((t=>t.renderAsString(i)))}getTemplateRenderer(t){return this.fo(t).then((t=>({renderAsString:i=>t.renderAsString(i)})))}renderTemplateArray(t,i){return 0==i.length?Promise.resolve([]):this.fo(t).then((t=>i.map((i=>this.mo(t,i)))))}findAndRenderTemplate(t,i,e){return this.renderTemplate(this.findTemplate(t,e),i)}findAndSetHtmlForTemplate(t,i,e){return this.setHtmlForTemplate(this.findTemplate(t,e),i)}findAndRenderTemplateArray(t,i,e){return this.renderTemplateArray(this.findTemplate(t,e),i)}hasTemplate(t,i){return!!this.maybeFindTemplate(t,i)}findTemplate(t,i){const e=this.maybeFindTemplate(t,i);Rt(e,"Template not found for %s",t);const s=e.tagName;return Rt("TEMPLATE"==s||"SCRIPT"==s&&"text/plain"===e.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag'),e}maybeFindTemplate(t,i){const e=t.getAttribute("template");return e?zt(t).getElementById(e):i?Vt(t,i):t.querySelector('template[type], script[type="text/plain"]')}fo(t){const i=t[Lo];if(i)return Promise.resolve(i);let e="";const{tagName:s}=t;"TEMPLATE"==s?e=t.getAttribute("type"):"SCRIPT"==s&&(e=t.getAttribute("template")),Rt(e,"Type must be specified: %s",t);let n=t.__AMP_WAIT_;return n||(n=this._o(t,e).then((i=>{const e=i,s=t[Lo]=new e(t,this.Ni.win);return delete t.__AMP_WAIT_,s})),t.__AMP_WAIT_=n,n)}_o(t,i){if(this.ao[i])return this.ao[i];const e=new n,{promise:s,resolve:r}=e;return this.ao[i]=s,this.do[i]=r,s}Ao(t,i){if(this.ao[t]){const e=this.do[t];Rt(e,"Duplicate template type: %s",t),delete this.do[t],e(i)}else this.ao[t]=Promise.resolve(i)}mo(t,i){return t.render(i)}po(t,i){return t.setHtml(i)}})}(t),gi(t,"documentInfo",class{constructor(t){this.Ni=t,this.Po=null,this.vo=null}get(){if(this.Po)return this.Po;const t=this.Ni,i=Rn(t.getUrl()),e=t.getRootNode();let s=e&&e.AMP&&e.AMP.canonicalUrl;if(!s){const t=e.querySelector("link[rel=canonical]");s=t?dn(t.href).href:i}const n=function(t){return String(Math.floor(1e4*t.Math.random()))}(t.win),o=function(t){const i=p();if(t.head){const e=t.head.querySelectorAll("link[rel]");for(let t=0;t<e.length;t++){const s=e[t],{href:n}=s,r=s.getAttribute("rel");r&&n&&r.split(/\s+/).forEach((t=>{if(-1!=uo.indexOf(t))return;let e=i[t];e?(P(e)||(e=i[t]=[e]),e.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),l=function(t){if(!t.isSingleDoc()||"a"!=(i=t.win.location.href,yn(i=cn(i))?i.pathname.split("/",2)[1]:null))return null;var i;const e=W(dn(t.win.location.href).search).amp_r;return void 0===e?null:W(e)}(t);return this.Po={get sourceUrl(){return Rn(t.getUrl())},canonicalUrl:s,pageViewId:n,get pageViewId64(){return this.vo||(this.vo=function(t){const i=function(t){return z(t,16)||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}(t);if("string"==typeof i)return(e=t,_i(e,"crypto")).sha384Base64(i);var e;{const t=i;return r((()=>lo(t).replace(/\.+$/,"")))}}(t.win)),this.vo},linkRels:o,viewport:h,replaceParams:l}}}),function(t){gi(t,"cid",class{get(){return Promise.resolve(null)}optOut(){}})}(t),function(t){gi(t,"viewer",class{constructor(t){this.Ni=t}getAmpDoc(){return this.Ni}getParam(t){return this.Ni.getParam(t)}hasCapability(){return!1}isEmbedded(){return!1}isWebviewEmbedded(){return!1}isCctEmbedded(){return!1}isProxyOrigin(){return!1}maybeUpdateFragmentForCct(){}isRuntimeOn(){return!0}toggleRuntime(){}onRuntimeState(){return()=>{}}isOvertakeHistory(){return!1}getResolvedViewerUrl(){return this.Ni.win.location.href}maybeGetMessagingOrigin(){return null}getUnconfirmedReferrerUrl(){return this.Ni.win.document.referrer}getReferrerUrl(){return Promise.resolve(this.getUnconfirmedReferrerUrl())}isTrustedViewer(){return Promise.resolve(!1)}getViewerOrigin(){return Promise.resolve("")}onMessage(){return()=>{}}onMessageRespond(){return()=>{}}receiveMessage(){}setMessageDeliverer(){}maybeGetMessageDeliverer(){return null}sendMessage(){}sendMessageAwaitResponse(){return s()}broadcast(){return Promise.resolve(!1)}onBroadcast(){return()=>{}}whenMessagingReady(){return null}replaceUrl(){}},!0)}(t),rh(t),function(t){gi(t,"hidden-observer",class{constructor(t){this.pu=t.getRootNode();const i=this.pu.ownerDocument||this.pu;this.i=Tt(i.defaultView),this.mu=null,this._u=null}add(t){this.Au();const i=this._u.add(t);return()=>{i(),0===this._u.getHandlerCount()&&this.dispose()}}Au(){if(this.mu)return;this._u=new pe;const t=new this.i.MutationObserver((t=>{t&&this._u.fire(t)}));this.mu=t,t.observe(this.pu,co)}dispose(){this.mu&&(this.mu.disconnect(),this._u.removeAll(),this.mu=null,this._u=null)}})}(t),function(t){gi(t,"history",go)}(t),function(t){gi(t,"resources",class{constructor(t){this.Ni=t,this.win=t.win,this.fi=[],this.Pu=0,this.Se=new Or(this.win,this.Xd.bind(this),70),this.Jd=new pe,this.Gu=new n,this.Zd=null,(t=>_i(this.win,"input"))().setupInputModeClasses(t),"inabox"!=at(this.win).runtime&&t.onVisibilityChanged((()=>{switch(t.getVisibilityState()){case de:this.fi.forEach((t=>t.pause()));break;case ue:this.fi.forEach((t=>t.resume())),this.schedulePass()}})),this.Du=[],this.Ru=!1,this.Ni.whenReady().then((()=>{this.Ru=!0,this.Xu(),this.schedulePass(1)}))}dispose(){this.fi.forEach((t=>t.unload())),this.fi.length=0,this.Zd&&(this.Zd.disconnect(),this.Zd=null)}get(){return this.fi.slice(0)}getAmpdoc(){return this.Ni}getResourceForElement(t){return $n.forElement(t)}getResourceForElementOptional(t){return $n.forElementOptional(t)}getScrollDirection(){return 1}add(t){const i=new $n(++this.Pu,t,this);this.fi.push(i)}upgraded(t){const i=$n.forElement(t);this.Du.push(i),this.Xu()}remove(t){const i=$n.forElementOptional(t);if(!i)return;this.Zd&&this.Zd.unobserve(t);const e=this.fi.indexOf(i);-1!==e&&this.fi.splice(e,1)}scheduleLayoutOrPreload(t){this.Se.schedule()}schedulePass(t){return this.Se.schedule(t)}updateOrEnqueueMutateTask(t,i){}schedulePassVsync(){}onNextPass(t){this.Jd.add(t)}ampInitComplete(){}updateLayoutPriority(t,i){}setRelayoutTop(t){}maybeHeightChanged(){}whenFirstPass(){return this.Gu.promise}Xd(){const t=Date.now();this.fi.forEach((t=>{t.isLayoutPending()&&!t.element.R1()&&t.measure()})),this.fi.forEach((i=>{!i.element.R1()&&2===i.getState()&&i.isDisplayed()&&(i.layoutScheduled(t),i.startLayout())})),this.Ni.signals().signal(Fn),this.Jd.fire(),this.Gu.resolve()}Xu(){for(let t=this.Du.length-1;t>=0;t--){const i=this.Du[t];(this.Ru||Ht(i.element,this.Ni.getRootNode()))&&(this.Du.splice(t,1),(i.build()||s()).then((()=>this.schedulePass())))}}})}(t),function(t){gi(t,"owners",class{constructor(t){this.fi=te(t)}setOwner(t,i){$n.setOwner(t,i)}schedulePreload(t,i){this.El(this.fi.getResourceForElement(t),!1,xo(i))}scheduleLayout(t,i){this.El(this.fi.getResourceForElement(t),!0,xo(i))}schedulePause(t,i){const e=this.fi.getResourceForElement(t);i=xo(i),this.Tl(e,i,(t=>{t.pause()}))}scheduleResume(t,i){const e=this.fi.getResourceForElement(t);i=xo(i),this.Tl(e,i,(t=>{t.resume()}))}scheduleUnlayout(t,i){const e=this.fi.getResourceForElement(t);i=xo(i),this.Tl(e,i,(t=>{t.unlayout()}))}requireLayout(t,i){const e=[];return this.Rl(t,(t=>{e.push(t.element.ensureLoaded())})),Promise.all(e)}Tl(t,i,e){for(const s of i)Tt(t.element.contains(s)),this.Rl(s,e)}Rl(t,i){if(t.classList.contains("i-amphtml-element")){i(this.fi.getResourceForElement(t));const e=t.getPlaceholder();e&&this.Rl(e,i)}else{const e=t.getElementsByClassName("i-amphtml-element"),s=[];for(let t=0;t<e.length;t++){const n=e[t];let r=!1;for(let t=0;t<s.length;t++)if(s[t].contains(n)){r=!0;break}r||(s.push(n),i(this.fi.getResourceForElement(n)))}}}El(t,i,e){this.Tl(t,e,(i=>{i.element.ensureLoaded(t.getLayoutPriority())}))}})}(t),function(t){gi(t,"mutator",class{constructor(t){this.fi=te(t),this.ar=oe(t.win)}forceChangeSize(t,i,e,s,n){this.requestChangeSize(t,i,e,n).then((()=>{s&&s()}))}requestChangeSize(t,i,e,s){return this.mutateElement(t,(()=>{this.fi.getResourceForElement(t).changeSize(i,e,s)}))}expandElement(t){this.fi.getResourceForElement(t).completeExpand(),this.fi.schedulePass()}attemptCollapse(t){return this.mutateElement(t,(()=>{this.fi.getResourceForElement(t).completeCollapse()}))}collapseElement(t){this.fi.getResourceForElement(t).completeCollapse(),this.fi.schedulePass()}measureElement(t){return this.ar.measurePromise(t)}mutateElement(t,i){return this.measureMutateElement(t,null,i)}measureMutateElement(t,i,e){return this.ar.runPromise({measure:()=>{i&&i()},mutate:()=>{e(),this.fi.schedulePass()}})}})}(t),function(t){gi(t,"url-replace",(function(t){return new class{constructor(t,i){this.ampdoc=t,this.Gn=i}expandStringSync(t,i,e){return new $o(this.Gn,i,void 0,!0,e,!0).expand(t)}expandStringAsync(t,i,e){return new $o(this.Gn,i,void 0,void 0,e,!0).expand(t)}expandUrlSync(t,i,e){return this.Vl(t,new $o(this.Gn,i,void 0,!0,e).expand(t))}expandUrlAsync(t,i,e,s){return new $o(this.Gn,i,void 0,void 0,e,s).expand(t).then((i=>this.Vl(t,i)))}expandInputValueAsync(t){return this.Sl(t,!1)}expandInputValueSync(t){return this.Sl(t,!0)}Sl(t,i){Tt("INPUT"==t.tagName&&"hidden"==(t.getAttribute("type")||"").toLowerCase());const e=this.xl(t);if(!e)return i?t.value:Promise.resolve(t.value);void 0===t["amp-original-value"]&&(t["amp-original-value"]=t.value);const s=new $o(this.Gn,void 0,void 0,i,e).expand(t["amp-original-value"]||t.value);return i?t.value=s:s.then((i=>(t.value=i,i)))}xl(t,i){const e=t.getAttribute("data-amp-replace");if(!e)return;const s={};return e.trim().split(/\s+/).forEach((t=>{i&&!m(i,t)||(s[t]=!0)})),s}Ol(t){const i=Wi(this.ampdoc);if(t.origin==dn(i.canonicalUrl).origin||t.origin==dn(i.sourceUrl).origin)return!0;const e=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin");if(e){const i=e.trim().split(/\s+/);for(let e=0;e<i.length;e++)if(t.origin==dn(i[e]).origin)return!0}return!1}maybeExpandLink(t,i){Tt("A"==t.tagName);const e=t;let s=e.getAttribute("data-amp-addparams")||"";const n=this.xl(e,{"CLIENT_ID":!0,"QUERY_PARAM":!0,"PAGE_VIEW_ID":!0,"PAGE_VIEW_ID_64":!0,"NAV_TIMING":!0});if(!n&&!s&&!i)return;let r=e["amp-original-href"]||e.getAttribute("href");const o=dn(r);null==e["amp-original-href"]&&(e["amp-original-href"]=r);const h=this.Ol(o);if(s&&(s=h?this.Cl(s,n):s,r=gn(r,W(s))),!h)return e.href=r;if(i){if(!n||!n.QUERY_PARAM){const t={"QUERY_PARAM":!0};i=this.expandUrlSync(i,void 0,t)}r=gn(r,W(i))}return r=this.Cl(r,n),e.href=r}Cl(t,i){return i?this.expandUrlSync(t,void 0,i):t}collectVars(t,i){const e=Object.create(null);return new $o(this.Gn,i,e).expand(t).then((()=>e))}collectDisallowedVarsSync(t){const i=t.getAttribute("src"),e=new $o(this.Gn).getMacroNames(i),s=this.xl(t);return s?e.filter((t=>!s[t])):e}Vl(t,i){return dn(i).protocol!=dn(t).protocol?(yt().error(jo,"Illegal replacement of the protocol: ",t),t):(Rt(bn(i),"The replacement url has invalid protocol: %s",i),i)}getVariableSource(){return this.Gn}}(t,new class extends class{constructor(t){this.ampdoc=t,this.kl=Object.create(null),this.Nl=!1,this.Dl()}pe(){this.initialize(),this.Nl=!0}initialize(){}get(t){return this.Nl||this.pe(),this.kl[t]}set(t,i){return Tt(-1==t.indexOf("RETURN")),this.kl[t]=this.kl[t]||{sync:void 0,async:void 0},this.kl[t].sync=i,this}setAsync(t,i){return Tt(-1==t.indexOf("RETURN")),this.kl[t]=this.kl[t]||{sync:void 0,async:void 0},this.kl[t].async=i,this}setBoth(t,i,e){return this.set(t,i).setAsync(t,e)}getExpr(t,i){this.Nl||this.pe();const e=A(A({},this.kl),t);return this.Ll(Object.keys(e),i)}Ll(t,i){if(this.Dl()&&(t=t.filter((t=>this.Dl().includes(t)))),i&&(t=t.filter((t=>i[t]))),0===t.length)return/_^/g;t.sort(((t,i)=>i.length-t.length));const e=t.map((t=>"$"===t[0]?"\\"+t:t)).join("|");return new RegExp("\\$?("+e+")","g")}Dl(){return this.Ul?this.Ul:this.ampdoc.isSingleDoc()&&kr(this.ampdoc.getRootNode())?(this.Ul=[""],this.Ul):void 0}}{constructor(t){super(t),this.$l=null,this.Fl={}}Bl(t,i,e){return this.setBoth(t,(()=>Ho(this.ampdoc.win,i,e)),(()=>zo(this.ampdoc.win,i,e)))}initialize(){const{win:t}=this.ampdoc,i=this.ampdoc.getHeadNode(),e=he(this.ampdoc);se(this.ampdoc).then((t=>{this.$l=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.Hl().canonicalUrl)),this.set("CANONICAL_HOST",(()=>dn(this.Hl().canonicalUrl).host)),this.set("CANONICAL_HOSTNAME",(()=>dn(this.Hl().canonicalUrl).hostname)),this.set("CANONICAL_PATH",(()=>dn(this.Hl().canonicalUrl).pathname)),this.setAsync("DOCUMENT_REFERRER",(()=>re(this.ampdoc).getReferrerUrl())),this.setAsync("EXTERNAL_REFERRER",(()=>re(this.ampdoc).getReferrerUrl().then((i=>i?dn(Rn(i)).hostname===Be.getHostname(t)?null:i:null)))),this.set("TITLE",(()=>{const i=t.document;return i.originalTitle||i.title})),this.set("AMPDOC_URL",(()=>Pn(this.jl(t.location.href)))),this.set("AMPDOC_HOST",(()=>{const i=dn(t.location.href);return i&&i.host})),this.set("AMPDOC_HOSTNAME",(()=>{const i=dn(t.location.href);return i&&i.hostname}));const r=()=>{const t=this.Hl();return Pn(this.jl(t.sourceUrl))};this.setBoth("SOURCE_URL",(()=>r()),(()=>vo().then((()=>r())))),this.set("SOURCE_HOST",(()=>dn(this.Hl().sourceUrl).host)),this.set("SOURCE_HOSTNAME",(()=>dn(this.Hl().sourceUrl).hostname)),this.set("SOURCE_PATH",(()=>dn(this.Hl().sourceUrl).pathname)),this.set("PAGE_VIEW_ID",(()=>this.Hl().pageViewId)),this.setAsync("PAGE_VIEW_ID_64",(()=>this.Hl().pageViewId64)),this.setBoth("QUERY_PARAM",((t,i="")=>this.zl(t,i)),((t,i="")=>vo().then((()=>this.zl(t,i))))),this.set("FRAGMENT_PARAM",((t,i="")=>this.Gl(t,i)));let o=null;this.setBoth("CLIENT_ID",(t=>o?o[t]:null),((t,e,n,r)=>{Rt(t,"The first argument to CLIENT_ID, the fallback Cookie name, is required");let h=s();return e&&(h=(t=>Ni(t,"userNotificationManager","amp-user-notification"))(i).then((t=>t.get(e)))),qi(this.ampdoc).then((i=>(r="true"==r,i.get({scope:t,createCookieIfNotPresent:!0,cookieName:n||void 0,disableBackup:r},h)))).then((i=>(o||(o=Object.create(null)),i&&"_ga"==(n||t)&&("string"==typeof i?i=i.replace(/^(GA1|1)\.[\d-]+\./,""):Et().error(jo,"non-string cid, what is it?",Object.keys(i))),o[t]=i,i)))})),this.setAsync("VARIANT",(t=>this.ql((i=>{const e=i[t];return Rt(void 0!==e,"The value passed to VARIANT() is not a valid experiment in <amp-experiment>:"+t),null===e?"none":e}),"VARIANT"))),this.setAsync("VARIANTS",(()=>this.ql((t=>{const i=[];for(const e in t){const s=t[e];i.push(e+"."+(s||"none"))}return i.join("!")}),"VARIANTS"))),this.setBoth("AMP_GEO",(t=>Wo(this.$l,t)),(t=>this.Wl((i=>Wo(i,t)),"AMP_GEO"))),this.set("TIMESTAMP",Go("getTime")),this.set("TIMESTAMP_ISO",Go("toISOString")),this.set("TIMEZONE",Go("getTimezoneOffset")),this.set("SCROLL_HEIGHT",(()=>e.getScrollHeight())),this.set("SCROLL_WIDTH",(()=>e.getScrollWidth())),this.set("VIEWPORT_HEIGHT",(()=>e.getHeight())),this.set("VIEWPORT_WIDTH",(()=>e.getWidth()));const{screen:h}=t;this.set("SCREEN_WIDTH",qo(h,"width")),this.set("SCREEN_HEIGHT",qo(h,"height")),this.set("AVAILABLE_SCREEN_HEIGHT",qo(h,"availHeight")),this.set("AVAILABLE_SCREEN_WIDTH",qo(h,"availWidth")),this.set("SCREEN_COLOR_DEPTH",qo(h,"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.Fl[t])&&void 0!==i?i:""}),(i=>this.Kl(i,t))),this.Bl("PAGE_LOAD_TIME","navigationStart","loadEventStart"),this.Bl("DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd"),this.Bl("TCP_CONNECT_TIME","connectStart","connectEnd"),this.Bl("SERVER_RESPONSE_TIME","requestStart","responseStart"),this.Bl("PAGE_DOWNLOAD_TIME","responseStart","responseEnd"),this.Bl("REDIRECT_TIME","navigationStart","fetchStart"),this.Bl("DOM_INTERACTIVE_TIME","navigationStart","domInteractive"),this.Bl("CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart"),this.setAsync("ACCESS_READER_ID",(()=>this.Yl((t=>t.getAccessReaderId()),"ACCESS_READER_ID"))),this.setAsync("AUTHDATA",(t=>(Rt(t,"The first argument to AUTHDATA, the field, is required"),this.Yl((i=>i.getAuthdataField(t)),"AUTHDATA")))),this.setAsync("VIEWER",(()=>re(this.ampdoc).getViewerOrigin().then((t=>null==t?"":t)))),this.setAsync("TOTAL_ENGAGED_TIME",(()=>Hi(i).then((t=>t.getTotalEngagedTime())))),this.setAsync("INCREMENTAL_ENGAGED_TIME",((t,e)=>Hi(i).then((i=>i.getIncrementalEngagedTime(t,"false"!==e))))),this.set("NAV_TIMING",((i,e)=>(Rt(i,"The first argument to NAV_TIMING, the start attribute name, is required"),Ho(t,i,e)))),this.setAsync("NAV_TIMING",((i,e)=>(Rt(i,"The first argument to NAV_TIMING, the start attribute name, is required"),zo(t,i,e)))),this.set("NAV_TYPE",(()=>Bo(t,"type"))),this.set("NAV_REDIRECT_COUNT",(()=>Bo(t,"redirectCount"))),this.set("AMP_VERSION",(()=>"2410292120000")),this.set("BACKGROUND_STATE",(()=>this.ampdoc.isVisible()?"0":"1")),this.setAsync("VIDEO_STATE",((t,i)=>{return(e=this.ampdoc,vi(e,"video-manager")).getVideoStateProperty(t,i);var e})),this.setAsync("AMP_STATE",(t=>{const i=this.ampdoc.getRootNode(),e=i.documentElement||i;return Gi(e).then((i=>i&&i.getStateValue(t)||""))}))}jl(t){const{replaceParams:i}=this.Hl();return i?function(t,i){const e=W(dn(t).search),s={},n=Object.keys(i);for(let t=0;t<n.length;t++)m(e,n[t])||(s[n[t]]=i[n[t]]);return gn(t,s)}(En(t),i):t}Hl(){return Wi(this.ampdoc)}Yl(t,i){const e=this.ampdoc.getHeadNode();return Promise.all([$i(e),Fi(e)]).then((e=>{const s=e[0],n=e[1],r=s||n;return r?s&&n?t(n)||t(s):t(r):(yt().error(jo,"Access or subsciptions service is not installed to access: ",i),null)}))}zl(t,i){Rt(t,"The first argument to QUERY_PARAM, the query string param is required");const e=W(dn(En(this.ampdoc.win.location.href)).search),{replaceParams:s}=this.Hl();return void 0!==e[t]?e[t]:s&&void 0!==s[t]?s[t]:i}Gl(t,i){Rt(t,"The first argument to FRAGMENT_PARAM, the fragment string param is required"),Rt("string"==typeof t,"param should be a string");const e=K(this.ampdoc.win);return void 0===e[t]?i:e[t]}ql(t,i){return(e=this.ampdoc.getHeadNode(),Di(e,"variant","amp-experiment",!0)).then((t=>(Rt(t,"To use variable %s, amp-experiment should be configured",i),t.getVariants()))).then((i=>t(i)));var e}Wl(t,i){return null!==this.$l?t(this.$l):se(this.ampdoc.getHeadNode()).then((e=>(Rt(e,"To use variable %s, amp-geo should be configured",i),this.$l=e,t(e))))}Kl(t,i){return t in this.Fl?Promise.resolve(this.Fl[t]):(null===(e=i.navigator)||void 0===e||null===(s=e.userAgentData)||void 0===s||null===(n=s.getHighEntropyValues([t]))||void 0===n?void 0:n.then((i=>{const e="object"!=typeof i[t]?i[t]:JSON.stringify(i[t]);return this.Fl[t]=e,e})))||Promise.resolve("");var e,s,n}}(t))}))}(t),function(t){gi(t,"action",class{constructor(t,i){this.ampdoc=t,this.pu=i||t.getRootNode(),this.Jl=this.ampdoc.isSingleDoc()&&kr(this.pu),this.Yn=this.Jl?$r:null,this.Ql=p(),this.Xl=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.pu.addEventListener("click",(i=>{if(!i.defaultPrevented){const e=i.target;this.trigger(e,t,i,3)}})),this.pu.addEventListener("keydown",(i=>{const{key:e,target:s}=i,n=s;if("Enter"==e||" "==e){const e=n.getAttribute("role"),s=e&&m(Fr,e.toLowerCase());!i.defaultPrevented&&s&&this.trigger(n,t,i,3)&&i.preventDefault()}}));else if("submit"==t)this.pu.addEventListener(t,(i=>{const e=i.target;this.trigger(e,t,i,3)}));else if("change"==t)this.pu.addEventListener(t,(i=>{const e=i.target;this.Zl(i),this.trigger(e,t,i,3)}));else if("input-debounced"==t){const i=B(this.ampdoc.win,(i=>{const e=i.target;this.trigger(e,t,i,3)}),300);this.pu.addEventListener("input",(t=>{const e=new Br(t);this.Zl(e),i(e)}))}else if("input-throttled"==t){const i=H(this.ampdoc.win,(i=>{const e=i.target;this.trigger(e,t,i,3)}),100);this.pu.addEventListener("input",(t=>{const e=new Br(t);this.Zl(e),i(e)}))}else"valid"!=t&&"invalid"!=t||this.pu.addEventListener(t,(i=>{const e=i.target;this.trigger(e,t,i,3)}))}addGlobalTarget(t,i){this.Ql[t]=i}addGlobalMethodHandler(t,i,e=2){this.Xl[t]={handler:i,minTrust:e}}trigger(t,i,e,s,n){return this.tc(t,i,e,s,n)}execute(t,i,e,s,n,r,o){const h=new zr(t,i,e,s,n,r,o);this.ic(h)}installActionHandler(t,i){if(Tt(Hr(t.getAttribute("id")||"")||t.tagName.toLowerCase()in Ur),t[Dr])return void Et().error(Cr,`Action handler already installed for ${t}`);t[Dr]=i;const e=t[Nr];P(e)&&ie(Mt(t)).delay((()=>{e.forEach((t=>{try{i(t)}catch(i){Et().error(Cr,"Action execution failed:",t,i)}})),t[Nr].length=0}),1)}hasAction(t,i,e){return!!this.sc(t,i,e)}hasResolvableAction(t,i,e){const s=this.sc(t,i,e);return!!s&&s.actionInfos.some((t=>{const{target:i}=t;return!!this.ec(i)}))}hasResolvableActionForTarget(t,i,e,s){const n=this.sc(t,i,s);return!!n&&n.actionInfos.some((t=>{const{target:i}=t;return this.ec(i)==e}))}ec(t){return this.Ql[t]?this.pu:this.pu.getElementById(t)}setAllowlist(t){Tt(t.every((t=>t.tagOrTarget&&t.method))),this.Yn=t}addToAllowlist(t,i,e){e&&e.includes("email")!==this.Jl||(this.Yn||(this.Yn=[]),P(i)||(i=[i]),i.forEach((i=>{this.Yn.some((e=>e.tagOrTarget==t&&e.method==i))||this.Yn.push({tagOrTarget:t,method:i})})))}tc(t,i,e,s,n){const r=this.sc(t,i);if(!r)return!1;const o=Math.random();let h=null;return r.actionInfos.forEach((l=>{const{args:a,method:u,str:c,target:d}=l,f=function(t,i,e){if(!t)return t;const s=e||{};if(i){const t=function(t){return t.detail}(i);t&&(s.event=t)}const n=p();return Object.keys(t).forEach((i=>{let e=t[i];if("object"==typeof e&&e.expression){const t=e.expression,i=function(t,i){if("."==i)return t;const e=i.split(".");let s=t;for(const t of e){if(!(t&&s&&void 0!==s[t]&&"object"==typeof s&&m(s,t))){s=void 0;break}s=s[t]}return s}(s,t);e=void 0===i?null:i}s[e]?n[i]=s[e]:n[i]=e})),n}(a,e,n),g=()=>{const n=this.ec(d);if(!n)return void this.nc(`Target "${d}" not found for action [${c}].`);const h=new zr(n,u,f,t,r.node,e,s,i,n.tagName||d,o);return this.ic(h)};h=h?h.then(g):g()})),r.actionInfos.length>=1}nc(t,i){if(i){const e=yt().createError(`[Action] ${t}`);throw Cn(e,i),e}yt().error(Cr,t)}ic(t){const{method:i,tagOrTarget:e}=t;if(this.Yn&&!function(t,i){let{method:e}=t;const{node:s,tagOrTarget:n}=t;e===Zn&&"function"==typeof s.getDefaultActionAlias&&(e=s.getDefaultActionAlias());const r=e.toLowerCase(),o=n.toLowerCase();return i.some((t=>(t.tagOrTarget.toLowerCase()===o||"*"===t.tagOrTarget)&&t.method.toLowerCase()===r))}(t,this.Yn))return this.nc(`"${e}.${i}" is not allowlisted ${JSON.stringify(this.Yn)}.`),null;const s=this.Ql[e];if(s)return s(t);const n=t.node,r=this.Xl[i];if(r&&t.satisfiesTrust(r.minTrust))return r.handler(t);const o=n.tagName.toLowerCase();if(Hr(o))return n.enqueAction?n.enqueAction(t):this.nc(`Unrecognized AMP element "${o}".`,n),null;const h=Ur[o];if(Hr(n.getAttribute("id")||"")||h&&h.indexOf(i)>-1){const i=n[Dr];return i?i(t):(n[Nr]=n[Nr]||[],n[Nr].push(t)),null}return this.nc(`Target (${e}) doesn't support "${i}" action.`,t.caller),null}sc(t,i,e){let s=t;for(;s;){if(e&&s==e)return null;const t=this.rc(s,i);if(t&&!(n=s).disabled&&(":disabled",!n.matches(":disabled")))return{node:s,actionInfos:Tt(t)};s=s.parentElement}var n;return null}rc(t,i){const e=this.hc(t,i);return e&&e[i]||null}hc(t,i){let e=t[Lr];return void 0===e&&(e=null,t.hasAttribute("on")?(e=Gr(t.getAttribute("on"),t),t[Lr]=e):t.hasAttribute("execute")&&(e=Gr(`${i}:${t.getAttribute("execute")}`,t),t[Lr]=e)),e}setActions(t,i){t.setAttribute("on",i),delete t[Lr]}Zl(t){const i=p(),{target:e}=t;if(void 0!==e.value&&(i.value=e.value),"INPUT"==e.tagName&&(i.valueAsNumber=Number(e.value)),void 0!==e.checked&&(i.checked=e.checked),void 0===e.min&&void 0===e.max||(i.min=e.min,i.max=e.max),e.files&&(i.files=v(e.files).map((t=>({"name":t.name,"size":t.size,"type":t.type})))),Object.keys(i).length>0)try{t.detail=i}catch(t){}}},!0)}(t),function(t){gi(t,"standard-actions",class{constructor(t){this.ampdoc=t;const i=t.getHeadNode();this.oc=Qi(t),this.Uu=he(t),this.uc(zi(i)),this.lc()}uc(t){t.addGlobalTarget("AMP",this.cc.bind(this)),t.addGlobalMethodHandler("hide",this.ac.bind(this)),t.addGlobalMethodHandler("show",this.dc.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.fc.bind(this)),t.addGlobalMethodHandler("scrollTo",this.mc.bind(this)),t.addGlobalMethodHandler("focus",this._c.bind(this)),t.addGlobalMethodHandler("toggleClass",this.Ac.bind(this)),t.addGlobalMethodHandler("copy",this.gc.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.Pc.bind(this))}lc(){this.vc()&&this.ampdoc.waitForBodyOpen().then((t=>{const i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(i)}))}vc(){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}cc(t){if(!t.satisfiesTrust(2))return null;const{args:i,method:e,node:s}=t,n=Mt(s);switch(e){case"pushState":case"setState":const e=s.nodeType===Node.DOCUMENT_NODE?s.documentElement:s;return Gi(e).then((i=>(Rt(i,"AMP-BIND is not installed."),i.invoke(t))));case"navigateTo":return this.Ec(t);case"closeOrNavigateTo":return this.Tc(t);case"scrollTo":return Rt(i.id,"AMP.scrollTo must provide element ID"),t.node=Ri(s).getElementById(i.id),this.mc(t);case"goBack":return Yi(this.ampdoc).goBack(!(!i||!0!==i.navigate)),null;case"print":return n.print(),null;case"copy":return this.gc(t);case"optoutOfCid":return qi(this.ampdoc).then((t=>t.optOut())).catch((t=>{Et().error(ko,"Failed to opt out of CID",t)}));case"toggleTheme":return this.Rc(),null}throw yt().createError("Unknown AMP action ",e)}gc(t){const{args:i,node:e}=t,s=Mt(e),n="copy-error";let r;if("AMP"===t.tagOrTarget)r=i.text.trim();else{var o;const i=C(t.node);r=(null!==(o=i.value)&&void 0!==o?o:i.textContent).trim()}const h=function(t,i,e){const n=Ws(s,`${t}`,{data:{type:i}});zi(e.caller).trigger(e.caller,t,n,3)};var l,a,u;null!==(a=(l=s.document).defaultView)&&void 0!==a&&null!==(u=a.navigator)&&void 0!==u&&u.clipboard||So(l)?function(t,i,e,s){var n;null!==(n=t.navigator)&&void 0!==n&&n.clipboard?t.navigator.clipboard.writeText(i).then(e,s):So(t.document)&&function(t,i){var e;let s=!1;const n=t.document,r=n.createElement("textarea");ke(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===(e=t.getSelection())||void 0===e||e.removeAllRanges(),r.focus(),r.setSelectionRange(0,i.length);try{s=n.execCommand("copy")}catch(t){}return Ut(r),s}(t,i)?e():s()}(s,r,(()=>{h("copy-success","success",t)}),(()=>{h(n,"error",t)})):h(n,"unsupported",t)}Ec(t){const{args:i,caller:e,method:n,node:r}=t,o=Mt(r);let h=s();return e.tagName.startsWith("AMP-")&&(h=e.getImpl().then((t=>{"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),h.then((()=>{var t;(t=this.ampdoc,vi(t,"navigation")).navigateTo(o,i.url,`AMP.${n}`,{target:i.target,opener:i.opener})}),(t=>{yt().error(ko,t)}))}Rc(){this.ampdoc.waitForBodyOpen().then((t=>{try{const i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";this.vc()?(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){}}))}Tc(t){const{node:i}=t,e=Mt(i),n=e.parent!=e;let r=!1;return e.opener&&this.ampdoc.isSingleDoc()&&!n&&(e.close(),r=e.closed),r?s():this.Ec(t)}mc(t){const i=t.node,{args:e}=t;let s=e&&e.position,n=e&&e.duration;return s&&!["top","bottom","center"].includes(s)&&(s=void 0),M(n)||(n=void 0),this.Uu.animateScrollIntoView(i,s,n)}_c(t){return Bt(t.node),null}ac(t){const i=t.node;if(i.classList.contains("i-amphtml-element")){const t=i;this.oc.mutateElement(t,(()=>t.collapse()),!0)}else this.oc.mutateElement(i,(()=>Ce(i,!1)));return null}dc(t){const{node:i}=t,e=i,s=Mt(e);if(e.classList.contains(cs(ts)))return null;this.oc.measureElement((()=>{"none"==De(s,e).display&&Oo(e)}));const n=(r=e).hasAttribute("autofocus")?r:r.querySelector("[autofocus]");var r;return n&&Ji(s).isIos()?(this.Ic(e,n),this.oc.mutateElement(e,(()=>{}))):this.oc.mutateElement(e,(()=>{this.Ic(e,n)})),null}Ic(t,i){t.classList.contains("i-amphtml-element")?t.expand():Ce(t,!0),i&&Bt(i)}fc(t){return Oo(t.node)?this.dc(t):this.ac(t)}Ac(t){const i=t.node,{args:e}=t,s=yt().assertString(e.class,"Argument 'class' must be a string.");return Co.test(s)||this.oc.mutateElement(i,(()=>{if(void 0!==e.force){const t=yt().assertBoolean(e.force,"Optional argument 'force' must be a boolean.");i.classList.toggle(s,t)}else i.classList.toggle(s)})),null}Pc(t){const i=t.node,{args:e}=t;return this.oc.mutateElement(i,(()=>{if(void 0!==(null==e?void 0:e.force)){const t=yt().assertBoolean(e.force,"Optional argument 'force' must be a boolean.");i.checked=t}else!0===i.checked?i.checked=!1:i.checked=!0})),null}},!0)}(t),function(t,i){var e,s;e=t,s=new Error("Un-supported service: "+i),function(t,i,e){const s=Si(t),n=s[i];n?n.reject&&n.reject(e):(s[i]=Li(),s[i].reject(e))}(Mi(Ri(e)),"storage",s)}(t,"storage"),function(t){gi(t,yo,Mo,!0)}(t),function(t){t.whenExtensionsKnown().then((()=>{t.declaresExtension("amp-form")&&t.getRootNode().addEventListener("submit",Yo,!0)}))}(t)}var ah,uh,ch="none",dh="v0";function fh(t){return void 0===ah&&(i=t||Element,ah=i.prototype.attachShadow?"v1":i.prototype.createShadowRoot?dh:ch),ah;var i}function ph(t,i,e){var s="";return t&&Array.prototype.forEach.call(t,(function(t){if(t.selectorText&&t.style&&void 0!==t.style.cssText)s+=function(t,i,e){var s=[];return t.split(",").forEach((function(t){t=t.trim(),e&&(t=e(t)),function(t,i){var e=function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+_h,"m")}(i);return!t.match(e)}(t,i)&&(t=function(t,i){return function(t,i){return t.match(vh)?(t=t.replace(Ah,i)).replace(vh,i+" "):i+" "+t}(t,i)}(t,i)),s.push(t)})),s.join(", ")}(t.selectorText,i,e)+" {\n\t",s+=function(t){var i=t.style.cssText;t.style.content&&!t.style.content.match(/['"]+|attr/)&&(i=i.replace(/content:[^;]*;/g,"content: '"+t.style.content+"';"));var e=t.style;for(var s in e)"initial"===e[s]&&(i+=s+": initial; ");return i}(t)+"\n}\n\n";else if(t.type===CSSRule.MEDIA_RULE)s+="@media "+t.media.mediaText+" {\n",s+=ph(t.cssRules,i),s+="\n}\n\n";else try{t.cssText&&(s+=t.cssText+"\n\n")}catch(t){}})),s}var mh="-shadowcsshost",gh=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",_h=(new RegExp("("+mh+gh,"gim"),new RegExp("(-shadowcsscontext"+gh,"gim"),"([>\\s~+[.,{:][\\s\\S]*)?$"),Ah=mh+"-no-combinator",vh=new RegExp(mh,"gim"),Ph=(new RegExp("-shadowcsscontext","gim"),/[^\.\-\_0-9a-zA-Z]/),yh=/[^\-\_0-9a-zA-Z]/;function bh(t){const i=Mt(t),e=t.shadowRoot||t.__AMP_SHADOW_ROOT;if(e){if(self.trustedTypes&&self.trustedTypes.createPolicy){const t=self.trustedTypes.createPolicy("shadow-embed#createShadowRoot",{createHTML:function(t){return""}});e.innerHTML=t.createHTML("")}else e.innerHTML="";return e}let s;const n=fh();if("v1"==n?(s=t.attachShadow({mode:"open"}),s.styleSheets||Object.defineProperty(s,"styleSheets",{get:function(){const t=[];return s.childNodes.forEach((i=>{"STYLE"===i.tagName&&t.push(i.sheet)})),t}})):s=n==dh?t.createShadowRoot():function(t){const i=t.ownerDocument;t.classList.add("i-amphtml-shadow-host-polyfill");const e=i.createElement("style");e.textContent=".i-amphtml-shadow-host-polyfill>:not(i-amphtml-shadow-root){display:none!important}",t.appendChild(e);const s=i.createElement("i-amphtml-shadow-root");return t.appendChild(s),t.__AMP_SHADOW_ROOT=s,Object.defineProperty(t,"shadowRoot",{enumerable:!0,configurable:!0,value:s}),s.host=t,s.getElementById=function(t){const i=It(t);return s.querySelector(`#${i}`)},Object.defineProperty(s,"styleSheets",{get:()=>i.styleSheets?v(i.styleSheets).filter((t=>s.contains(t.ownerNode))):[]}),s}(t),!function(){if(void 0!==uh)return uh;if(fh()==ch)uh=!1;else{const i=fh()===dh?self.document.createElement("div").createShadowRoot():self.document.createElement("div").attachShadow({mode:"open"});t=ShadowRoot,uh=!!t&&-1!=t.toString().indexOf("[native code]")&&i instanceof ShadowRoot}var t;return uh}()){const t=`i-amphtml-sd-${i.Math.floor(1e4*i.Math.random())}`;s.id=t,s.host.classList.add(t),r=t=>function(t,i){return function(t,i){const e=Tt(t.id),s=t.ownerDocument;let n=null;try{n=Rh(s.implementation.createHTMLDocument(""),i)}catch(t){}if(!n)try{n=Rh(s,i)}catch(t){}return n?ph(n,`.${e}`,Eh):i}(t,i)}(s,t),s.__AMP_CSS_TR=r}var r;return s}function Eh(t){return t.replace(/(html|body)/g,Th)}function Th(t,i,e,s){const n=s.charAt(e-1),r=s.charAt(e+t.length);return n&&!Ph.test(n)||r&&!yh.test(r)?t:"amp-"+t}function Rh(t,i){const e=t.createElement("style");e.textContent=i;try{return(t.head||t.documentElement).appendChild(e),e.sheet?e.sheet.cssRules:null}finally{e.parentNode&&e.parentNode.removeChild(e)}}function Mh(t,i,e){const s=self.document.createElement("style");s.textContent=e;const n=bh(t);return n.appendChild(s),n.appendChild(i),t}var wh="amp4ads-vars-",Ih=["cta-accent-color","cta-accent-element","cta-image","theme"];function xh(t){const i=t.document;if(!i.fonts||!i.fonts.values)return;const e=i.fonts.values();let s;for(;s=e.next();){const t=s.value;if(!t)return;"loading"==t.status&&"display"in t&&"auto"==t.display&&(t.display="swap")}}var Vh,Sh=["amp-ad","amp-embed","amp-video"],Oh="extensions",kh="latest",Ch="__AMP_EXT_LDR";function Lh(t){Sh.forEach((i=>{Pr(t,i)}))}function Nh(){return{}}function Dh(t,i){return`${t}:${i}`}vt=class{constructor(t,i,e=""){this.win=t,this.J=i,this.W=this.X(),this.B=e,this.Z=null,this.K=function(t){let i=!1,e=null,s=t;return(...t)=>(i||(e=s.apply(self,t),i=!0,s=null),e)}((()=>{t.fetch(`${it}/rtv/012410292120000/log-messages.simple.json`).then((t=>t.json()),dt).then((t=>{t&&(this.Z=t)}))})),this.Y=this.assert.bind(this)}X(){var t;const{win:i}=this;return null!==(t=i.console)&&void 0!==t&&t.log&&0!=_t(i)?this.tt():0}tt(t){return this.J(_t(t),!1)}et(t,i,e){var s,n;if(i>(null!==(s=ft)&&void 0!==s?s:this.W))return!1;const r=this.win.console,o=null!==(n={1:r.error,3:r.info,2:r.warn}[i])&&void 0!==n?n:r.log,h=this.nt(e),l=`[${t}]`;return T(h[0])?h[0]=l+" "+h[0]:h.unshift(l),o.apply(r,h),!0}fine(t,...i){this.et(t,4,i)}info(t,...i){this.et(t,3,i)}warn(t,...i){this.et(t,2,i)}error(t,...i){if(!this.et(t,1,i)){var e,s;const n=this.createError.apply(this,i);n.name=t||n.name,null===(e=(s=self).__AMP_REPORT_ERROR)||void 0===e||e.call(s,n)}}expectedError(t,...i){var e,s;this.et(t,1,i)||null===(e=(s=self).__AMP_REPORT_ERROR)||void 0===e||e.call(s,this.createExpectedError.apply(this,i))}createError(t){return this.ot(h.apply(null,arguments))}createExpectedError(t){return this.ot(u.apply(null,arguments))}ot(t){return t=o(t),this.B?t.message?-1==t.message.indexOf(this.B)&&(t.message+=this.B):t.message=this.B:V(t.message)&&(t.message=t.message.replace(w,"")),t}nt(t){return P(t[0])?this.rt(t[0]):t}rt(t){var i;const e=t.shift();return null!==(i=this.Z)&&void 0!==i&&i[e]?[this.Z[e]].concat(t):[`More info at ${mt(e,t)}`]}assert(t,i,e){return P(i)?this.assert.apply(this,[t].concat(this.rt(i))):S.apply(null,[this.B].concat(Array.prototype.slice.call(arguments)))}assertElement(t,i){return function(t,i,e){return O(t,i,R(i),"Element expected",e)}(this.Y,t,i)}assertString(t,i){return function(t,i,e){return O(t,i,T(i),"String expected",e)}(this.Y,t,i)}assertNumber(t,i){return function(t,i,e){return O(t,i,"number"==typeof i,"Number expected",e)}(this.Y,t,i)}assertArray(t,i){return function(t,i,e){return O(t,i,P(i),"Array expected",e)}(this.Y,t,i)}assertBoolean(t,i){return function(t,i,e){return O(t,i,!!i===i,"Boolean expected",e)}(this.Y,t,i)}},Et(),yt(),Vh=function(t,i,e){Cn(i,e),i&&t&&V(i.message)&&!(i.message.indexOf(I)>=0)&&function(t,i){if(ji(i).isSingleDoc()){const e={"errorName":t.name,"errorMessage":t.message};!function(t,i,e={},s=!0){var n;(n=t,Di(n,"amp-analytics-instrumentation","amp-analytics")).then((n=>{n&&n.triggerEventForTarget(t,i,e,s)}))}(function(t){const i=ji(t).getSingleDoc().getRootNode();return i.documentElement||i.body||i}(i),"user-error",e,!1)}}(i,t)}.bind(null,self),self.__AMP_REPORT_ERROR=Vh;var Uh,$h="runtime";function Fh(t,i){if(t.__AMP_TAG)return s();t.__AMP_TAG=!0;const e=t.AMP||[];mi(t,"extensions",class{constructor(t){this.win=t,this.gh=ji(t),this.sa={},this.ea=null,this.na=null,this.ra=null}registerExtension(t,i,e,s,n){var r;const o=e?this.sa[Dh(t,kh)]:null,h=this.ha(t,i,null===(r=null==o?void 0:o.auto)||void 0===r||r);if(h.latest=e,!h.loaded){e&&(this.sa[Dh(t,kh)]=h);try{var l,a;this.ea=t,this.na=i,this.ra=e,s(n,n._),h.loaded=!0,null===(l=h.resolve)||void 0===l||l.call(h,h.extension),null==o||null===(a=o.resolve)||void 0===a||a.call(o,h.extension)}catch(t){var u,c;throw h.error=t,null===(u=h.reject)||void 0===u||u.call(h,t),null==o||null===(c=o.reject)||void 0===c||c.call(o,t),t}finally{this.ea=null,this.na=null,this.ra=null}}}waitForExtension(t,i){const e=this.oa(this.ha(t,i));return ie(this.win).timeoutPromise(16e3,e).catch((i=>{if(!i.message.includes("timeout"))throw i;return yt().error(Oh,`Waited over 16s to load extension ${t}.`),e}))}preloadExtension(t,i="0.1"){"amp-embed"==t&&(t="amp-ad");const e=this.ha(t,i);return this.ua(t,i,e),this.oa(e)}installExtensionForDoc(t,i,e="0.1"){const s=t.getRootNode();let n=s[Ch];return n||(n=s[Ch]=p()),n[i]?n[i]:(t.declareExtension(i,e),Pr(t.win,i),n[i]=this.preloadExtension(i,e).then((()=>this.installExtensionInDoc(t,i,e))))}reloadExtension(t,i,e){const s=fi(this.win,t,i,e,!1),n=this.sa[Dh(t,i)];return n&&(Tt(!n.loaded&&!n.error),n.scriptPresent=!1),s.forEach((i=>i.setAttribute("i-amphtml-loaded-new-version",t))),this.preloadExtension(t,i)}importUnwrapped(t,i,e="0.1",s=!0){const n=fi(t,i,e,s);let r,o=n.length>0?n[0]:null;return o?r=o.__AMP_SCR_LOADED:(o=di(this.win,i,e),r=o.__AMP_SCR_LOADED=new Promise(((t,i)=>{o.onload=t,o.onerror=i})),t.document.head.appendChild(o)),r}loadElementClass(t,i="0.1"){return this.preloadExtension(t,i).then((i=>Tt(i.elements[t]).implementationClass))}addElement(t,i,e){this.la(t).extension.elements[t]={implementationClass:i,css:e},this.addDocFactory((s=>{this.ca(s,t,i,e)}))}addTemplate(t,i){this.addDocFactory((e=>{!function(t,i,e){vi(t,"templates").Ao(i,e)}(e,t,i)}))}ca(t,i,e,s){s?en(t,s,(()=>{this.aa(t.win,i,e)}),!1,i):this.aa(t.win,i,e)}aa(t,i,e){(function(t,i,e){const s=function(t,i){if(i.requiresShadowDom()&&!t.Element.prototype.attachShadow)return Ki(t).importUnwrapped(t,"amp-shadow-dom-polyfill")}(t,e);s?s.then((()=>_r(t,i,e))):_r(t,i,e)})(t,i,e),mi(t,i,Nh)}addService(t,i){this.la(t).extension.services.push({serviceName:t,serviceClass:i}),this.addDocFactory((e=>{gi(e,t,i,!0)}))}addDocFactory(t,i){const e=this.la(i);if(e.docFactories.push(t),this.ea&&this.gh.isSingleDoc()){const i=this.gh.getAmpDoc(this.win.document),s=this.ea,n=this.na,r=this.ra||!1;(i.declaresExtension(s,n)||r&&i.declaresExtension(s,kh)||e.auto)&&t(i)}}preinstallEmbed(t,i){const e=this.win,s=t.win;!function(t,i){yr(t,i,"amp-img"),yr(t,i,"amp-pixel")}(e,s),Lh(s),i.forEach((({extensionId:i,extensionVersion:e})=>{t.declareExtension(i,e),Sh.includes(i)||Pr(s,i)}))}installExtensionsInDoc(t,i){return Promise.all(i.map((({extensionId:i,extensionVersion:e})=>this.installExtensionInDoc(t,i,e))))}installExtensionInDoc(t,i,e="0.1"){return t.declareExtension(i,e),this.oa(this.ha(i,e)).then((()=>{this.ha(i,e).docFactories.forEach((e=>{try{e(t)}catch(t){a("Doc factory failed: ",t,i)}}))}))}ha(t,i,e){const s=Dh(t,i);let n=this.sa[s];return n||(n={version:i,latest:i==kh,extension:{elements:{},services:[]},auto:e||!1,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},this.sa[s]=n),n}la(t){return this.ea||Et().error(Oh,"unknown extension for ",t),this.ha(this.ea||"_UNKNOWN_",this.na||"")}oa(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}ua(t,i,e){if(this.da(t,i,e)){const s=di(this.win,t,i);this.win.document.head.appendChild(s),e.scriptPresent=!0}}da(t,i,e){if(e.loaded||e.error)return!1;if(void 0===e.scriptPresent){const s=fi(this.win,t,i,e.latest);e.scriptPresent=s.length>0}return!e.scriptPresent}});const r=Ki(t);Zo(t),Lh(t),t.AMP={win:t,"_":t.AMP?t.AMP._:void 0},t.AMP.config={urls:{thirdParty:J,thirdPartyFrameHost:Z,thirdPartyFrameRegex:tt,cdn:it,cdnProxyRegex:Q,localhostRegex:et,errorReporting:st,betaErrorReporting:nt,localDev:rt,trustedViewerHosts:ot,geoApi:ht}},t.AMP.addGlobalConsentListener=function(){},t.AMP.addGranularConsentListener=function(){},t.AMP.BaseElement=tr,t.AMP.registerElement=r.addElement.bind(r),t.AMP.registerTemplate=r.addTemplate.bind(r),t.AMP.registerServiceForDoc=r.addService.bind(r),t.AMP.isExperimentOn=zs.bind(null,t),t.AMP.toggleExperiment=Hs.bind(null,t),t.AMP.setLogLevel=pt.bind(null),t.AMP.setTickFunction=(t,i)=>{};const o=i(t,r);function h(i){!function(t,i,e){"function"==typeof i||"high"==i.p?s().then(e):(e.displayName=i.n,Kn(t.document,e))}(t,i,(()=>{o.then((()=>{"function"==typeof i?i(t.AMP,t.AMP.fa):r.registerExtension(i.n,i.ev,i.l,i.f,t.AMP)}))}))}for(let i=0;i<e.length;i++){const s=e[i];if(zh(t,s))e.splice(i--,1);else if("function"==typeof s||"high"==s.p){try{h(s)}catch(t){Et().error($h,"Extension failed: ",t,s.n)}e.splice(i--,1)}}!function(t,i){t.document.body&&!function(t){return tn(t).length>0}(t)?ie(t).delay(i,1):i()}(t,(()=>{t.AMP.push=function(i){zh(t,i)||h(i)};for(let i=0;i<e.length;i++){const s=e[i];if(!zh(t,s))try{h(s)}catch(t){Et().error($h,"Extension failed: ",t,s.n)}}e.length=0})),t.AMP.push||(t.AMP.push=e.push.bind(e)),Ji(t).isIos()&&Oe(t.document.documentElement,"cursor","pointer");const l=Ki(t);return ii(t)&&l.preloadExtension("amp-resize-observer-polyfill"),Jt(t)&&l.preloadExtension("amp-intersection-observer-polyfill"),o}function zh(t,i){if("function"==typeof i)return!1;if(!i.m)return!0;const{v:e}=i;return"2410292120000"!=e&&(Ki(t).reloadExtension(i.n,i.ev,i.l),!0)}at(self).runtime="inabox",at(self).a4aId=function(t){const i=self.document.head.querySelector('meta[name="amp4ads-id"]');return i?i.getAttribute("content"):null}();try{!function(t){t.onerror=Dn,t.addEventListener("unhandledrejection",(t=>{!t.reason||t.reason.message!==Vn&&t.reason.message!==Sn&&"AbortError"!==t.reason.message?Cn(t.reason||new Error("rejected promise "+t)):t.preventDefault()}))}(self),function(t,i,e){mi(t,"ampdoc",(function(){return new class{constructor(t,i,e){this.win=t,this.ta=null,i&&(this.ta=new Qe(t,{params:Ze(t,e)}),t.document.__AMPDOC=this.ta)}isSingleDoc(){return!!this.ta}getSingleDoc(){return Tt(this.ta)}ia(t){return t.everAttached&&"function"==typeof t.getAmpDoc?t.getAmpDoc():null}getAmpDocIfAvailable(t){let i=t;for(;i;){const e=this.ia(t);if(e)return e;const s=zt(i);if(!s)break;const n=s.__AMPDOC;if(n)return n;i=s.host?s.host:Ti(s,this.win)}return null}getAmpDoc(t){const i=this.getAmpDocIfAvailable(t);if(!i)throw Et().createError("No ampdoc found for",t);return i}installShadowDoc(t,i,e){Tt(!i.__AMPDOC);const s=new Xe(this.win,t,i,e);return i.__AMPDOC=s,s}installFieDoc(t,i,e){const s=i.document;Tt(!s.__AMPDOC);const n=Tt(i.frameElement),r=new Je(i,t,this.getAmpDoc(n),e);return s.__AMPDOC=r,r}}(t,!0,void 0)}))}(self),Uh=ji(self)}catch(t){throw rn(self.document),t}qn=!0,Kn(self.document,(function(){const t=Uh.getAmpDoc(self.document);Vo(self),mi(self,"performance",class{constructor(t){this.win=t,this.Vm=lo(z(t,16)),this.Sm=[],this.Om=t.performance.timeOrigin||t.performance.timing.navigationStart,this.Ni=null,this.Fe=null,this.fi=null,this.km=null,this.Cm=!1,this.Lm=!1,this.Nm=p(),this.Dm=void 0,this.Um=new me,this.$m=0,this.Fm=[],this.zm=0;const i=this.win.PerformanceObserver&&this.win.PerformanceObserver.supportedEntryTypes||[];if(i.includes("paint")||this.Um.rejectSignal("fcp",Et().createExpectedError("First Contentful Paint not supported")),this.Hm=i.includes("layout-shift"),!this.Hm){const t=Et().createExpectedError("Cumulative Layout Shift not supported");this.Um.rejectSignal(ni,t),this.Um.rejectSignal(oi,t)}this.Bm=i.includes("first-input"),this.Bm||this.Um.rejectSignal("fid",Et().createExpectedError("First Input Delay not supported")),this.jm=i.includes("largest-contentful-paint"),this.jm||this.Um.rejectSignal("lcp",Et().createExpectedError("Largest Contentful Paint not supported")),this.Gm=i.includes("navigation"),this.qm=i.includes("event")&&zs(t,"interaction-to-next-paint"),this.qm||this.Um.rejectSignal(li,Et().createExpectedError("Interaction to next paint not supported")),this.Wm=this.Wm.bind(this),this.addEnabledExperiment("rtv-"+at(this.win).rtvVersion),Re(t.document).then((()=>{this.tick("dr"),this.flush()})),Me(t.document).then((()=>this.Km())),Me(t.document).then((()=>this.Ym(40))),this.Qm(),this.Xm=!1,this.Jm=B(t,(()=>{this.Zm()}),6e3)}coreServicesAvailable(){const{documentElement:t}=this.win.document;this.Ni=Bi(t),this.Fe=re(t),this.fi=te(t),this.km=Wi(this.Ni),this.Lm=this.Fe.isEmbedded()&&"1"===this.Fe.getParam("csi"),this.Ni.onVisibilityChanged(this.flush.bind(this)),this.tg();const i=this.Fe.whenMessagingReady();return this.Ni.whenFirstVisible().then((()=>{this.tick("ofv"),this.flush()})),(this.jm||this.Hm)&&this.Ni.onVisibilityChanged(this.Wm),i?i.then((()=>{this.tickDelta("msr",this.win.performance.now()),this.tick("timeOrigin",void 0,this.Om);const t=this.Ni.getMetaByName("amp-usqp");return t&&t.split(",").forEach((t=>{this.addEnabledExperiment("ssr-"+t)})),this.ig()})).then((()=>{this.Cm=!0,this.eg(),this.flush()})):s()}ig(){return(t=ji(this.win).getSingleDoc(),t.waitForBodyOpen().then((()=>{const i=t.getBody(),e=(s=i,n=()=>!!i.firstElementChild,new Promise((t=>{Nt(s,n,t)})));var s,n;return ie(t.win).timeoutPromise(2e3,e).then((()=>"AMP-STORY"===i.firstElementChild.tagName),(()=>!1))}))).then((t=>{t&&this.addEnabledExperiment("story")}));var t}Km(){this.tick("ol"),this.flush()}Qm(){if("inabox"===at(this.win).runtime)return;let t=!1,i=!1,e=!1,s=!1;const n=n=>{if("first-paint"!=n.name||t)if("first-contentful-paint"!=n.name||i)if("first-input"!==n.entryType||e)"layout-shift"===n.entryType?n.hadRecentInput||(this.sg(n),this.zm+=n.value):"largest-contentful-paint"===n.entryType?this.ng(n):"navigation"!=n.entryType||s?"event"==n.entryType&&n.interactionId&&this.Ym(n.duration):(["domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","loadEventEnd","loadEventStart","requestStart","responseStart"].forEach((t=>this.tick(t,n[t]))),s=!0);else{const t=n.processingStart-n.startTime;this.tickDelta("fid",t),e=!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.Bm&&this.rg(n,{type:"first-input",buffered:!0}),this.Hm&&this.rg(n,{type:"layout-shift",buffered:!0}),this.jm&&this.rg(n,{type:"largest-contentful-paint",buffered:!0}),this.Gm&&this.rg(n,{type:"navigation",buffered:!0}),this.qm&&this.rg(n,{type:"event",durationThreshold:40,buffered:!0}),r.length>0&&this.rg(n,{entryTypes:r})}rg(t,i){try{new this.win.PerformanceObserver((i=>{i.getEntries().forEach(t),this.flush()})).observe(i)}catch(t){}}og(){const t=this.Ni.getVisibilityState();return t===fe||t===ce}Wm(){this.og()&&(this.hg(),this.Zm())}lg(){if(!this.Xm){this.Xm=!0;const{win:t}=this,i=parseInt(De(t,t.document.body).getPropertyValue("--google-font-exp"),10);i>=0&&this.addEnabledExperiment(`google-font-exp=${i}`)}}hg(){this.Hm&&(this.lg(),this.ag())}sg(t){if(!this.Ni)return;if(this.og())return;const i=this.Fm;if(i.length>0){const e=i[0],s=i[i.length-1];if(t.startTime-s.startTime<1e3&&t.startTime-e.startTime<5e3)return void i.push(t);this.Zm()}i.push(t),this.Jm()}Zm(){const t=this.Fm,i=this.Um.get(ni);let e=0,s=0;for(const i of t){if(i.sources)for(const t of i.sources)e|=ih(t.node);s+=i.value}t.length=0,this.lg(),(null==i||s>i)&&(this.Um.reset(ni),this.Um.reset(ri),this.tickDelta(ni,s),this.tickDelta(ri,e),this.flush())}Ym(t){if(!this.Ni)return;const i=this.Um.get(li);(null==i||t>i)&&(this.tickDelta(li,t-(null!=i?i:0)),this.flush())}ag(){0===this.$m?(this.tickDelta(oi,this.zm),this.flush(),this.$m=1):1===this.$m&&(this.tickDelta("cls-2",this.zm),this.flush(),this.$m=2)}ng(t){const{element:i,startTime:e}=t,s=ih(i);this.tickDelta("lcpt",s),this.tickDelta("lcp",e),this.tickSinceVisible("lcpv",e),this.flush()}tg(){const t=!this.Ni.hasBeenVisible();let i=-1;this.Ni.whenFirstVisible().then((()=>{i=this.win.performance.now(),this.mark("visible")})),this.ug().then((()=>{if(t){const t=i>-1?this.win.performance.now()-i:0;this.Ni.whenFirstVisible().then((()=>{this.tickDelta(hi,t)})),this.cg(t),this.mark(hi)}else this.tick(hi),this.cg(this.win.performance.now()-i);this.flush()}))}ug(){return this.fi.whenFirstPass().then((()=>{const{documentElement:t}=this.win.document,i=he(t).getSize();return Yt(0,0,i.width,i.height),e=t,this.win,function(t,i){const e=Bi(t);return e.signals().whenSignal(Fn).then((()=>{const t=te(e).get().filter((t=>!(!t.prerenderAllowed()||th.includes(t.element.tagName)))).map((t=>t.element));return 0===t.length?Promise.resolve([]):new Promise((i=>{const{win:s}=e,n=new s.IntersectionObserver((t=>{n.disconnect();const e=[];for(let i=0;i<t.length;i++){const{isIntersecting:s,target:n}=t[i];s&&e.push(n)}i(e)}),{root:jt(s)?s.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())))))}))}(e);var e}))}tick(t,i,e){Tt(null==i||null==e);const s={"label":t};let n;null!=i?s.delta=n=Math.max(i,0):null!=e?s.value=e:(this.mark(t),n=this.win.performance.now(),s.value=this.Om+n),this.win.dispatchEvent(Ws(this.win,"perf",{label:t,delta:n})),this.Cm&&this.Lm?this.Fe.sendMessage("tick",s):this.dg(s),this.Um.signal(t,n)}mark(t){var i,e;null===(i=(e=this.win.performance).mark)||void 0===i||i.call(e,t)}tickDelta(t,i){this.tick(t,i)}tickSinceVisible(t,i){var e,s;const n=null==i?this.win.performance.now():i,r=this.Om+n,o=null!==(e=this.Fe)&&void 0!==e&&e.isEmbedded()?null===(s=this.Ni)||void 0===s?void 0:s.getFirstVisibleTime():this.Om,h=o?Math.max(r-o,0):0;this.tickDelta(t,h)}flush(){this.Cm&&this.Lm&&(null==this.Dm&&(this.Dm=Object.keys(this.Nm).join(",")),this.Fe.sendMessage("sendCsi",{"ampexp":this.Dm,"canonicalUrl":this.km.canonicalUrl,"eventid":this.Vm},!0))}addEnabledExperiment(t){this.Nm[t]=!0,this.Dm=void 0}dg(t){this.Sm.length>=50&&this.Sm.shift(),this.Sm.push(t)}eg(){this.Fe&&(this.Lm?(this.Sm.forEach((t=>{this.Fe.sendMessage("tick",t)})),this.Sm.length=0):this.Sm.length=0)}cg(t){this.Fe&&this.Fe.sendMessage("prerenderComplete",{"value":t},!0)}isPerformanceTrackingOn(){return this.Lm}getMetric(t){return this.Um.whenSignal(t)}});const i=Xi(self);i.tick("is"),self.document.documentElement.classList.add("i-amphtml-inabox"),en(t,"[hidden]{display:none!important}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important;pointer-events:none}[layout=nodisplay]:not(.i-amphtml-element){display:none!important}.i-amphtml-layout-fixed,[layout=fixed][width][height]:not(.i-amphtml-layout-fixed){display:inline-block;position:relative}.i-amphtml-layout-responsive,[layout=responsive][width][height]:not(.i-amphtml-layout-responsive),[width][height][heights]:not([layout]):not(.i-amphtml-layout-responsive),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic,[layout=intrinsic][width][height]:not(.i-amphtml-layout-intrinsic){display:inline-block;position:relative;max-width:100%}.i-amphtml-layout-intrinsic .i-amphtml-sizer{max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,[layout=container],[layout=fixed-height][height]:not(.i-amphtml-layout-fixed-height){display:block;position:relative}.i-amphtml-layout-fill,.i-amphtml-layout-fill.i-amphtml-notbuilt,[layout=fill]:not(.i-amphtml-layout-fill),body noscript>*{display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}body noscript>*{position:absolute!important;width:100%;height:100%;z-index:2}body noscript{display:inline!important}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-ms-flex:1 1 auto;flex:1 1 auto}.i-amphtml-layout-fluid{position:relative}.i-amphtml-layout-size-defined{overflow:hidden!important}.i-amphtml-layout-awaiting-size{position:absolute!important;top:auto!important;bottom:auto!important}i-amphtml-sizer{display:block!important}@supports (aspect-ratio:1/1){i-amphtml-sizer.i-amphtml-disable-ar{display:none!important}}.i-amphtml-blurry-placeholder,.i-amphtml-fill-content{display:block;height:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%;width:0;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-replaced-content,.i-amphtml-screen-reader{padding:0!important;border:none!important}.i-amphtml-screen-reader{position:fixed!important;top:0px!important;left:0px!important;width:4px!important;height:4px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:8px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:12px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:16px!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[layout]:not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*,[layout]:not([layout=container]):not(.i-amphtml-element)>*,[width][height][heights]:not([layout]):not(.i-amphtml-element)>*,[width][height][sizes]:not([layout]):not(.i-amphtml-element)>*{display:none}amp-img:not(.i-amphtml-element)[i-amphtml-ssr]>img.i-amphtml-fill-content{display:block}.i-amphtml-notbuilt:not(.i-amphtml-layout-container),[layout]:not([layout=container]):not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){color:transparent!important;line-height:0!important}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder],[width][height][heights]:not([layout]):not(.i-amphtml-element)>[placeholder],[width][height][sizes]:not([layout]):not(.i-amphtml-element)>[placeholder]{display:block;line-height:normal}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback],.i-amphtml-layout-container>[placeholder].amp-hidden,.i-amphtml-layout-container>[placeholder].hidden{display:none}.i-amphtml-layout-size-defined>[fallback],.i-amphtml-layout-size-defined>[placeholder]{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1}amp-img[i-amphtml-ssr]:not(.i-amphtml-element)>[placeholder]{z-index:auto}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none!important}.i-amphtml-element-error{background:red!important;color:#fff!important;position:relative!important}.i-amphtml-element-error:before{content:attr(error-message)}i-amp-scroll-container,i-amphtml-scroll-container{position:absolute;top:0;left:0;right:0;bottom:0;display:block}i-amp-scroll-container.amp-active,i-amphtml-scroll-container.amp-active{overflow:auto;-webkit-overflow-scrolling:touch}.i-amphtml-loading-container{display:block!important;pointer-events:none;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden;display:initial;line-height:normal}.i-amphtml-layout-size-defined>[overflow]{position:absolute}.i-amphtml-element>[overflow].amp-visible{visibility:visible}template{display:none!important}.amp-border-box,.amp-border-box *,.amp-border-box :after,.amp-border-box :before{box-sizing:border-box}amp-pixel{display:none!important}amp-analytics,amp-auto-ads,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-story{visibility:hidden!important}html.i-amphtml-fie>amp-analytics{position:initial!important}[visible-when-invalid]:not(.visible),form [submit-error],form [submit-success],form [submitting]{display:none}amp-accordion{display:block!important}@media (min-width:1px){:where(amp-accordion>section)>:first-child{margin:0;background-color:#efefef;padding-right:20px;border:1px solid #dfdfdf}:where(amp-accordion>section)>:last-child{margin:0}}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}amp-accordion,amp-accordion>section{margin:0}amp-accordion:not(.i-amphtml-built)>section>:last-child{display:none!important}amp-accordion:not(.i-amphtml-built)>section[expanded]>:last-child{display:block!important}\n/*# sourceURL=/css/ampshared.css*/html.i-amphtml-inabox{width:100%!important;height:100%!important}",(()=>{Kn(self.document,(function(){Zo(self),function(t){Ee(t.document,(()=>function(t){let i=1500;const e=t.performance;e&&e.timing&&e.timing.navigationStart&&(i=Date.now()-e.timing.navigationStart);const s=Math.max(1,2100-i);t.setTimeout((()=>{xh(t);const{styleSheets:i}=t.document;if(!i)return;const e=t.document.querySelectorAll(`link[rel~="stylesheet"]:not([href^="https://translate.googleapis.com/translate_static/css/"]):not([href^="${It(it)}"])`),n=[];for(let t=0;t<e.length;t++){const s=e[t];let r=!1;for(let t=0;t<i.length;t++)if(i[t].ownerNode==s){r=!0;break}r||n.push(s)}for(let i=0;i<n.length;i++){const e=n[i],r=e.media||"all";e.media="print",e.onload=()=>{e.media=r,xh(t)},e.setAttribute("i-amphtml-timeout",s),e.parentNode.insertBefore(e,e.nextSibling)}}),s)}(t)))}(self),lh(t),i.coreServicesAvailable(),_o=s(),function(t){const{win:i}=t,e=t.getRootNode();var s,n,r,o;(s=t,n=i,r=he(t).getLayoutRect(e.documentElement||e.body||e),function(t,i,e){return t.signals().whenSignal(Fn).then((()=>{const e=[];return te(t).get().forEach((t=>{t.hasBeenMeasured()||t.hostWin!=i||t.hasOwner()||e.push(t.ensureMeasured())})),Promise.all(e)})).then((()=>te(t).get().filter((t=>t.hostWin==i&&!t.hasOwner()&&t.hasBeenMeasured()&&(t=>!(!t.isDisplayed()||!t.overlaps(r)&&!t.isFixed()||o&&!t.prerenderAllowed()))(t)))))}(Bi(s),n).then((t=>{const i=[];return t.forEach((t=>{th.includes(t.element.tagName)||i.push(t.loadedOnce())})),Promise.all(i)}))).then((()=>{i.dispatchEvent(Ws(i,"amp-ini-load",null,{bubbles:!0})),i.parent&&i.parent.postMessage("amp-ini-load","*")}))}(t)})),Kn(self.document,(function(){!function(t){!function(t){br(t,Tr,Mr)}(t),function(t){br(t,Vr,Sr)}(t),function(t){br(t,"amp-layout",wr)}(t)}(self)})),Kn(self.document,(function(){Fh(self,(t=>(function(t){const{documentElement:i}=t.document,e=ji(t).getSingleDoc();t.AMP.ampdoc=e;const s=re(i);t.AMP.viewer=s;const n=he(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),Dt(t.document).then((()=>{vr(t.AMP.ampdoc)})))))})),Kn(self.document,(function(){vr(t)})),Kn(self.document,(function(){Mo.installAnchorClickInterceptor(t,self),function(t){const{win:i}=t,e=i.document,s=function(t){const i=p();return t.forEach((t=>{const{content:e,name:s}=t;if(s.startsWith("amp-cta-")){const t=s.split("amp-")[1];i[t]=e}else if(s.startsWith(wh)){const t=s.split(wh)[1];i[t]=e}})),i}(function(t){return t.querySelectorAll("meta[name]")}(e));if(!(n=s)["cta-type"]||!n["cta-url"])return;var n;en(t,".i-amphtml-story-ad-link-root{all:initial!important;color:initial!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;-ms-flex-align:center!important;align-items:center!important}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-shared.css*/amp-story-cta-layer{display:block!important;position:absolute!important;top:80%!important;right:0!important;bottom:0!important;left:0!important;margin:0!important;z-index:2147483642!important}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-inabox.css*/",(()=>{})),function(t,i,e){const s=t.document;try{const n=i["attribution-url"],r=i["attribution-icon"];if(!n||!r)return null;vn(n,e,"amp-story-auto-ads attribution url"),vn(r,e,"amp-story-auto-ads attribution icon");const o=$t(s,"div",{"role":"button","class":"i-amphtml-attribution-host"}),h=$t(s,"img",{"class":"i-amphtml-story-ad-attribution","src":r});h.addEventListener("click",(i=>function(t,i){Po(t,i,"_blank")}(t,n))),Mh(o,h,".i-amphtml-story-ad-attribution{position:absolute;bottom:0!important;left:0!important;max-height:15px!important;z-index:4!important}.i-amphtml-story-ad-fullbleed.i-amphtml-story-ad-attribution{bottom:12.5vh!important;left:50%!important;transform:translateX(-22.5vh)!important}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-attribution.css*/"),e.appendChild(o)}catch(t){return null}}(i,s,e.body);const r=new class{constructor(t){this.oc=Qi(t),this.Cf=t.win.document,this.fg=this.Cf.createElement("div"),this.oc.mutateElement(this.fg,(()=>{this.Cf.body.appendChild(this.fg),ke(this.fg,{position:"absolute",top:0,left:0,zIndex:1,visibility:"hidden","font-weight":"bold","letter-spacing":"0.2px"})}))}fit(t,i,e){let s=!1;return this.oc.mutateElement(i,(()=>{this.fg.textContent=e;const n=function(t,i,e,s,n){for(let i=14;i>=12;i--){Oe(t,"fontSize",Le(i));const s=t.offsetHeight,n=t.offsetWidth;if(s<32&&n<e)return i}return 11}(this.fg,0,this.pg(t));n>=12&&(this.mg(i,n),s=!0)})).then((()=>s))}pg(t){return t.offsetWidth-84}mg(t,i){Oe(t,"fontSize",Le(i))}}(t),o=e.createElement("div");(function(t,i,e,s){const n=s["cta-url"],r=s["cta-type"],o=$t(t,"a",{"class":"i-amphtml-story-ad-link","target":"_blank","href":n});return i.fit(e,o,r).then((i=>{if(!i)return null;if(o.href=n,o.textContent=r,"https:"!==o.protocol&&"http:"!==o.protocol)return null;const h=function(t,i){return t.__AMP_EXPERIMENT_BRANCHES?t.__AMP_EXPERIMENT_BRANCHES["story-ad-auto-advance"]:null}(t.defaultView);return"31067118"==h||"31067119"==h?function(t,i,e){const s=t.createElement("amp-story-page-outlink");s.setAttribute("layout","nodisplay");const n=$t(t,"a",{"class":"i-amphtml-story-ad-link","target":"_top","href":i["cta-url"]});n.textContent=i["cta-type"],s.appendChild(n);for(const t of Ih)i[t]&&s.setAttribute(t,i[t]);return Ki(Mt(t)).installExtensionForDoc(Ri(t),"amp-story-page-attachment","0.1"),s.className="i-amphtml-story-page-outlink-container",e.appendChild(s),n}(t,s,e):function(t,i,e){const s=i.createElement("amp-story-cta-layer");s.className="i-amphtml-cta-container";const n=$t(i,"div",{"class":"i-amphtml-story-ad-link-root","role":"button"});return Mh(n,t,".i-amphtml-story-ad-link{background-color:#fff!important;border-radius:20px!important;box-sizing:border-box!important;bottom:32px!important;box-shadow:0px 2px 12px rgba(0,0,0,.16)!important;color:#4285f4!important;font-family:Roboto,sans-serif!important;font-weight:700!important;height:36px!important;letter-spacing:0.2px!important;line-height:36px!important;overflow:hidden!important;opacity:0;padding:0 10px!important;position:absolute!important;text-align:center!important;text-decoration:none!important;min-width:120px!important;max-width:calc(100vw - 64px)}[cta-active].i-amphtml-story-ad-link{animation-delay:100ms!important;animation-duration:300ms!important;animation-timing-function:cubic-bezier(0.4,0,0.2,1)!important;animation-fill-mode:forwards!important;animation-name:ad-cta!important}@keyframes ad-cta{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-cta-button.css*/"),s.appendChild(n),e.appendChild(s),t}(o,t,e)}))})(e,r,o,s).then((t=>t&&t.setAttribute("cta-active",""))),e.body.appendChild(o),i.parent&&i.parent.postMessage("amp-story-ad-load","*")}(t),function(t){const i=t.location.href;if(i.startsWith("about:"))return;let e=!1;const s=K(t);ct(t,s)&&(e="0"!==s.validate),e&&function(t,i){const e=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:""}});e.src=t.createScriptURL(i)}else e.src=i;Kt(t,e);const s=Xs(e).then((()=>{t.head.removeChild(e)}),(()=>{}));return t.head.appendChild(e),s}(t.document,`${it}/v0/validator_wasm.js`).then((()=>{amp.validator.validateUrlAndLog(i,t.document)}))}(self),function(t){Tt(t.defaultView);const i=t.defaultView;Dt(t).then((()=>function(t){const i=tn(t).map((i=>{const e=function(t,i){return xi(t,i)}(t,i).then((t=>t&&function(t){return"function"==typeof t.whenReady}(t)?t.whenReady().then((()=>t)):t));return ie(t).timeoutPromise(3e3,e,`Render timeout waiting for service ${i} to be ready.`)}));return Promise.all(i)}(i))).catch((t=>(a(t),[]))).then((e=>{nn=!0,t.body.getBoundingClientRect(),on(t),Ri(t).signals().signal(ws),e.length>0&&te(t.documentElement).schedulePass(1,!0);try{const t=Xi(i);t.tick("mbv"),t.flush()}catch(t){}}))}(self.document)}),!0),Kn(self.document,(function(){i.tick("e_is"),te(t).ampInitComplete(),i.flush()}))}),!0,"amp-runtime")})),self.console&&(console.info||console.log).call(console,"Powered by AMP ⚡ HTML Version 2410292120000",self.location.href),self.document.documentElement.setAttribute("amp-version","2410292120000")})();
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
/**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/
//# sourceMappingURL=amp4ads-v0.mjs.map