var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); self.AMP_CONFIG={"v":"012303151529000","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};/*AMP_CONFIG*/self.AMP_EXP={"flexible-bitrate":0.1,"amp-story-first-page-max-bitrate":0.3,"story-disable-animations-first-page":1,"story-load-first-page-only":1,"story-load-inactive-outside-viewport":1,"story-ad-page-outlink":0.02,"amp-geo-ssr":1,"story-remote-localization":1,"amp-story-subscriptions":1,"attribution-reporting":0.04};/*AMP_EXP*/; self,self.AMP=self.AMP||[];try{AMP._=AMP._||{},self.AMP&&!Array.isArray(self.AMP)||function(){function t(t,i){for(var n=0;n=0?n:Math.max(r+n,0);et.length)&&(i=t.length);for(var n=0,r=new Array(i);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(){return n||(n=Promise.resolve(void 0))}var a=function(){var t=this;this.promise=new Promise((function(i,n){t.resolve=i,t.reject=n}))};function c(t){return new Promise((function(i){i(t())}))}function f(t){var i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;var n=t.message,r=t.stack,e=new Error(n);for(var s in t)e[s]=t[s];return e.stack=r,e}function l(t){for(var i,n=null,r="",e=o(arguments,!0);!(i=e()).done;){var s=i.value;s instanceof Error&&!n?n=f(s):(r&&(r+=" "),r+=s)}return n?r&&(n.message=r+": "+n.message):n=new Error(r),n}function v(t){var i,n;null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t)}function d(t){var i=l.apply(null,arguments);setTimeout((function(){throw v(i),i}))}function m(t){var i=l.apply(null,arguments);return i.expected=!0,i}function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g=Object.prototype,b=g.hasOwnProperty,y=g.toString;function w(t){return"[object Object]"===y.call(t)}function A(t){var i=Object.create(null);return t&&Object.assign(i,t),i}function x(t,i){return b.call(t,i)}function E(t){var i=A();for(var n in t)if(x(t,n)){var r=t[n];i[n]=w(r)?E(r):r}return i}var P=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,O=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],I={"childList":!0,"subtree":!0};function M(t,i){if(!P.test(i)||O.includes(i))throw new t('invalid custom element name "'.concat(i,'"'))}var T=function(){function t(t,i){this.t=t,this.rt=i,this.it=A()}var i=t.prototype;return i.define=function(t,i,n){this.rt.define(t,i,n);var r=this.it,e=r[t];e&&(e.resolve(),delete r[t])},i.get=function(t){var i=this.rt.getByName(t);if(i)return i.ctor},i.whenDefined=function(t){var i=this.t;if(i.Promise,M(i.SyntaxError,t),this.rt.getByName(t))return h();var n=this.it,r=n[t];return r||(r=new a,n[t]=r),r.promise},i.upgrade=function(t){this.rt.upgrade(t)},t}(),S=function(){function t(t){this.t=t,this.ot=A(),this.ut="",this.st=null,this.ct=null,this.ft=[t.document]}var i=t.prototype;return i.current=function(){var t=this.st;return this.st=null,t},i.getByName=function(t){var i=this.ot[t];if(i)return i},i.getByConstructor=function(t){var i=this.ot;for(var n in i){var r=i[n];if(r.ctor===t)return r}},i.define=function(t,i,n){var r=this.t,e=r.Error,s=r.SyntaxError;if(n)throw new e("Extending native custom elements is not supported");if(M(s,t),this.getByName(t)||this.getByConstructor(i))throw new e('duplicate definition "'.concat(t,'"'));this.ot[t]={name:t,ctor:i},this.lt(t);for(var u,h=o(this.ft,!0);!(u=h()).done;){var a=u.value;this.upgrade(a,t)}},i.upgrade=function(t,i){for(var n,r=!!i,e=i||this.ut,s=o(this.ht(t,e),!0);!(n=s()).done;){var u=n.value;r?this.vt(u):this.upgradeSelf(u)}},i.upgradeSelf=function(t){var i=this.getByName(t.localName);i&&this.dt(t,i)},i.ht=function(t,i){return i&&t.querySelectorAll?t.querySelectorAll(i):[]},i.dt=function(t,i){var n=i.ctor;if(!(t instanceof n)){this.st=t;try{if(new n!==t)throw new this.t.Error("Constructor illegally returned a different instance.")}catch(t){d(t)}}},i.vt=function(t){var i=this.getByName(t.localName);if(i&&(t=t,this.dt(t,i),t.connectedCallback))try{t.connectedCallback()}catch(t){d(t)}},i.bt=function(t){if((t=t).disconnectedCallback)try{t.disconnectedCallback()}catch(t){d(t)}},i.lt=function(t){var i=this;if(this.ut)this.ut+=",".concat(t);else{this.ut=t;var n=new this.t.MutationObserver((function(t){t&&i.gt(t)}));this.ct=n;for(var r,e=o(this.ft,!0);!(r=e()).done;){var s=r.value;n.observe(s,I)}!function(t,i){var n,r=t.Document,e=t.Element,s=t.Node,u=t.document,o=r.prototype,h=e.prototype,a=s.prototype,c=o.createElement,f=o.importNode,l=a.appendChild,v=a.cloneNode,d=a.insertBefore,m=a.removeChild,p=a.replaceChild;o.createElement=function(t){var n=i.getByName(t);return n?new n.ctor:c.apply(this,arguments)},o.importNode=function(){var t=f.apply(this,arguments);return t&&this===u&&(i.upgradeSelf(t),i.upgrade(t)),t},a.appendChild=function(){var t=l.apply(this,arguments);return i.sync(),t},a.insertBefore=function(){var t=d.apply(this,arguments);return i.sync(),t},a.removeChild=function(){var t=m.apply(this,arguments);return i.sync(),t},a.replaceChild=function(){var t=p.apply(this,arguments);return i.sync(),t},a.cloneNode=function(){var t=v.apply(this,arguments);return t.ownerDocument===u&&(i.upgradeSelf(t),i.upgrade(t)),t};var g=h,b=Object.getOwnPropertyDescriptor(g,"innerHTML");if(b||(g=Object.getPrototypeOf(t.HTMLElement.prototype),b=Object.getOwnPropertyDescriptor(g,"innerHTML")),null!==(n=b)&&void 0!==n&&n.configurable){var y=b.set;b.set=function(t){y.call(this,t),i.upgrade(this)},Object.defineProperty(g,"innerHTML",b)}}(this.t,this)}},i.observe=function(t){this.ft.push(t),this.ct&&this.ct.observe(t,I)},i.sync=function(){this.ct&&this.gt(this.ct.takeRecords())},i.gt=function(t){for(var i,n=o(t,!0);!(i=n()).done;){var r=i.value;if(r){for(var e,s=r.addedNodes,u=r.removedNodes,h=o(s,!0);!(e=h()).done;){var a=e.value,c=this.ht(a,this.ut);this.vt(a);for(var f,l=o(c,!0);!(f=l()).done;){var v=f.value;this.vt(v)}}for(var d,m=o(u,!0);!(d=m()).done;){var p=d.value,g=this.ht(p,this.ut);this.bt(p);for(var b,y=o(g,!0);!(b=y()).done;){var w=b.value;this.bt(w)}}}}},t}();function R(t,i){i.prototype=Object.create(t.prototype,{constructor:{configurable:!0,writable:!0,value:i}}),_(i,t)}function _(t,i){Object.setPrototypeOf?Object.setPrototypeOf(t,i):{__proto__:{"test":!0}}.test?t.__proto__=i:function(t,i){for(var n=i;null!==n&&!Object.isPrototypeOf.call(n,t);){for(var r,e=o(Object.getOwnPropertyNames(n),!0);!(r=e()).done;){var s=r.value;if(!Object.hasOwnProperty.call(t,s)){var u=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(t,s,u)}}n=Object.getPrototypeOf(n)}}(t,i)}function k(t){return t==this||this.documentElement.contains(t)}function C(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function N(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,r)}return n}function D(t){for(var i=1;i=0&&t.indexOf(i,n)==n}function Y(t){return"string"==typeof t}function K(t){return 1==(null==t?void 0:t.nodeType)}function J(t){return"number"==typeof t&&isFinite(t)}var X="​​​",Q="​​​​";function Z(t){return K(t)?(t=t).tagName.toLowerCase()+(t.id?"#".concat(t.id):""):t}function tt(t){return t.indexOf(X)>=0}function it(t){return t.replace(X,"")}function nt(t,i){var n,r,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(i)return i;t&&-1==e.indexOf(t)&&(e+=t);for(var s=3,u=e.split("%s"),o=u.shift(),h=[o];u.length;){var a=arguments[s++],c=u.shift();o+=Z(a)+c,h.push(a,c.trim())}var f=new Error(o);throw f.messageArray=q(h,(function(t){return""!==t})),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,f),f}function rt(t,i,n,r,e){return V(e)?t(n,e.concat([i])):t(n,"".concat(e||r,": %s"),i),i}function et(t,i,n,r,e,s,u,o,h,a,c){return t}function st(t,i){return t}function ut(t,i){return t}function ot(t,i){return t}function ht(t,i,n,r,e,s,u,o,h,a,c){return nt(X,t,i,n,r,e,s,u,o,h,a,c)}function at(t){return JSON.parse(t)}function ct(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):ft(unescape(encodeURIComponent(t)))}function ft(t){for(var i=new Uint8Array(t.length),n=0;n0?r=t.setTimeout(u,h):(o=s,s=null,i.apply(null,o))}return function(){e=t.Date.now();for(var i=arguments.length,o=new Array(i),h=0;h1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return i}}function yt(t){var i,n=A();if(!t)return n;for(;i=gt.exec(t);){var r=bt(i[1],i[1]),e=i[2]?bt(i[2].replace(/\+/g," "),i[2]):"";n[r]=e}return n}function wt(t){var i=(t||self).location;return yt(i.originalHash||i.hash)}var At=function(t){return self.AMP_CONFIG?self.AMP_CONFIG[t]:null},xt=("string"==typeof At("cdnProxyRegex")?new RegExp(At("cdnProxyRegex")):At("cdnProxyRegex"))||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Et(t){if(!self.document||!self.document.head)return null;if(self.location&&xt.test(self.location.origin))return null;var i=self.document.head.querySelector('meta[name="'.concat(t,'"]'));return i&&i.getAttribute("content")||null}var Pt=At("thirdPartyUrl")||"https://web.archive.org/web/20230401161550/https://3p.ampproject.net",Ot=At("thirdPartyFrameHost")||"ampproject.net",It=("string"==typeof At("thirdPartyFrameRegex")?new RegExp(At("thirdPartyFrameRegex")):At("thirdPartyFrameRegex"))||/^d-\d+\.ampproject\.net$/,Mt=At("cdnUrl")||Et("runtime-host")||"https://web.archive.org/web/20230401161550/https://cdn.ampproject.org",Tt=/^https?:\/\/localhost(:\d+)?$/,St=At("errorReportingUrl")||"https://web.archive.org/web/20230401161550/https://us-central1-amp-error-reporting.cloudfunctions.net/r",Rt=At("betaErrorReportingUrl")||"https://web.archive.org/web/20230401161550/https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",_t=At("localDev")||!1,kt=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],Ct=At("geoApiUrl")||Et("amp-geo-api"),Nt="";function Dt(t){var i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:Ut(t,wt(t)),esm:!1,test:!1,rtvVersion:jt(t),ssrReady:!1}}(i)}function jt(t){var i;return Nt||(Nt=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"01".concat("2303151529000")),Nt}function Ut(t,i){var n=i||wt(t);return["1","actions","amp","amp4ads","amp4email"].includes(n.development)||!!t.AMP_DEV_MODE}var Lt=function(){},zt=void 0;function Ht(t){zt=t}var Gt=function(){return"01".concat("2303151529000")},Vt=function(t,i){return i.reduce((function(t,i){return"".concat(t,"&s[]=").concat(qt(i))}),"https://web.archive.org/web/20230401161550/https://log.amp.dev/?v=".concat(Gt(),"&id=").concat(encodeURIComponent(t)))},Ft=function(){return"".concat(Mt,"/rtv/").concat(Gt(),"/log-messages.simple.json")},qt=function(t){return encodeURIComponent(String(Z(t)))},Bt=function(t){return parseInt(wt(t).log,10)},$t=function(){function t(t,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this.win=t,this.wt=i,this.yt=this.jt(),this.Ot=r,this.xt=null,this.At=vt((function(){t.fetch(Ft()).then((function(t){return t.json()}),Lt).then((function(t){t&&(n.xt=t)}))})),this.St=this.assert.bind(this)}var i=t.prototype;return i.jt=function(){var t,i=this.win;return null!==(t=i.console)&&void 0!==t&&t.log&&0!=Bt(i)?this.Et():0},i.Et=function(t){return this.wt(Bt(t),Dt().development)},i.Mt=function(t,i,n){var r,e,s;if(i>(null!==(r=zt)&&void 0!==r?r:this.yt))return!1;var u=this.win.console,o=null!==(e=(s={},C(s,1,u.error),C(s,3,u.info),C(s,2,u.warn),s)[i])&&void 0!==e?e:u.log,h=this.Pt(n),a="[".concat(t,"]");return Y(h[0])?h[0]=a+" "+h[0]:h.unshift(a),o.apply(u,h),!0},i.fine=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r1?i-1:0),r=1;r1?i-1:0),r=1;r1?i-1:0),r=1;r1?i-1:0),r=1;r=1?4:2}),t)}function Qt(){return Wt.dev||(Wt.dev=Kt((function(t){return t>=3?4:t>=2?3:0})))}function Zt(t,i,n,r,e,s,u,o,h,a,c){return t}function ti(t,i,n,r,e,s,u,o,h,a,c){return Jt().assert(t,i,n,r,e,s,u,o,h,a,c)}var ii=["GET","POST"];function ni(t,i){var n=new XMLHttpRequest;if(!("withCredentials"in n))throw Qt().createExpectedError("CORS is not supported");return n.open(t,i,!0),n}var ri=function(){function t(t){this.Rt=t,this.status=this.Rt.status,this.statusText=this.Rt.statusText,this.ok=this.status>=200&&this.status<300,this.headers=new si(t),this.bodyUsed=!1,this.body=null,this.url=t.responseURL}var i=t.prototype;return i.clone=function(){return et(!this.bodyUsed),new t(this.Rt)},i.Tt=function(){return et(!this.bodyUsed),this.bodyUsed=!0,Promise.resolve(this.Rt.responseText)},i.text=function(){return this.Tt()},i.json=function(){return this.Tt().then(at)},i.arrayBuffer=function(){return this.Tt().then(ct)},t}();function ei(t){return void 0===t?"GET":(t=t.toUpperCase(),et(ii.includes(t)),t)}var si=function(){function t(t){this.Rt=t}var i=t.prototype;return i.get=function(t){return this.Rt.getResponseHeader(t)},i.has=function(t){return null!=this.Rt.getResponseHeader(t)},t}(),ui=function(t){U(n,t);var i=H(n);function n(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=A(),e=D({status:200,statusText:"OK",responseText:t?String(t):"",getResponseHeader:function(t){var i=String(t).toLowerCase();return x(r,i)?r[i]:null}},n);if(e.status=void 0===n.status?200:parseInt(n.status,10),V(n.headers))n.headers.forEach((function(t){var i=t[0],n=t[1];r[String(i).toLowerCase()]=String(n)}));else if(w(n.headers))for(var s in n.headers)r[String(s).toLowerCase()]=String(n.headers[s]);return n.statusText&&(e.statusText=String(n.statusText)),i.call(this,e)}return n}(ri);function oi(t){return(t.ownerDocument||t).defaultView}var hi,ai=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function ci(t,i,n,r,e){return e||(i?"�":r?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function fi(t){return void 0!==hi?hi:hi=function(t){try{var i=t.ownerDocument,n=i.createElement("div"),r=i.createElement("div");return n.appendChild(r),n.querySelector(":scope div")===r}catch(t){return!1}}(t)}function li(t,i){return t.replace(/^|,/g,"$&".concat(i," "))}function vi(t){return String(t).replace(ai,ci)}function di(t){et(/^[\w-]+$/.test(t))}function mi(t,i){var n=t.classList,r="i-amphtml-scoped";n.add(r);var e=li(i,".".concat(r)),s=t.querySelectorAll(e);return n.remove(r),s}function pi(t,i){if(fi(t))return t.querySelector(li(i,":scope"));var n=mi(t,i)[0];return void 0===n?null:n}function gi(t,i){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!n&&n.call(t,i)}function bi(t,i,n){var r;for(r=t;r&&r!==n;r=r.parentElement)if(i(r))return r;return null}function yi(t,i){return t.closest?t.closest(i):bi(t,(function(t){return gi(t,i)}))}function wi(t,i){for(var n=t.lastElementChild;n;n=n.previousElementSibling)if(i(n))return n;return null}function Ai(t,i){return di(i),pi(t,"> [".concat(i,"]"))}function xi(t){return Y(i=t)?n=i:K(i)&&(n=i.tagName),!(!n||!n.toLowerCase().startsWith("i-"))||t.nodeType===Node.ELEMENT_NODE&&(st(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"));var i,n}var Ei,Pi={bubbles:!0,cancelable:!0};function Oi(t,i,n){if(i(t))n();else{var r=oi(t);if(r.MutationObserver){var e=new r.MutationObserver((function(){i(t)&&(e.disconnect(),n())}));e.observe(t,{childList:!0})}else var s=r.setInterval((function(){i(t)&&(r.clearInterval(s),n())}),5)}}function Ii(t,i){Oi(t.documentElement,(function(){return!!t.body}),i)}function Mi(t){return new Promise((function(i){return Ii(t,i)}))}function Ti(t){var i;null===(i=t.parentElement)||void 0===i||i.removeChild(t)}function Si(t,i){t.insertBefore(i,t.firstChild)}function Ri(t){var i=t.isConnected;if(void 0!==i)return i;for(var n=t;(n=_i(n)).host;)n=n.host;return n.nodeType===Node.DOCUMENT_NODE}function _i(t){if(Node.prototype.getRootNode)return t.getRootNode();var i,n;for(i=t;i.parentNode&&(!(n=i)||"I-AMPHTML-SHADOW-ROOT"!=n.tagName&&(11!=n.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(n)));i=i.parentNode);return i}function ki(t,i){var n=t;do{if(n.nextSibling)return!0}while((n=n.parentNode)&&n!=i);return!1}function Ci(t){try{t.focus()}catch(t){}}function Ni(t){return t.parent&&t.parent!=t}function Di(t,i,n,r){var e=n||{};et(t.ownerDocument);var s=t.ownerDocument.createEvent("Event");s.data=e;var u=r||Pi,o=u.bubbles,h=u.cancelable;s.initEvent(i,o,h),t.dispatchEvent(s)}function ji(t,i){return i!==t&&t.contains(i)}function Ui(t){return t.hasAttribute("i-amphtml-ssr")}function Li(t,i){var n=t.head.querySelector("script[nonce]");if(n){var r=n.nonce||n.getAttribute("nonce");i.setAttribute("nonce",null!=r?r:"")}}function zi(t,i,n,r){return{left:t,top:i,width:n,height:r,bottom:i+r,right:t+n,x:t,y:i}}function Hi(t,i,n){return zi(t.left-t.width*i,t.top-t.height*n,t.width*(1+2*i),t.height*(1+2*n))}function Gi(t,i,n){return 0==i&&0==n||0==t.width&&0==t.height?t:zi(t.left+i,t.top+n,t.width,t.height)}function Vi(){return Ri(this)?Ei.call(this):zi(0,0,0,0)}function Fi(t){return!t.IntersectionObserver||!t.IntersectionObserverEntry||!!t.IntersectionObserver._stub||!function(t){try{return new t.IntersectionObserver((function(){}),{root:t.document}),!0}catch(t){return!1}}(t)||function(t){return/apple/i.test(t.navigator.vendor)}(t)}var qi=function(){function t(i,n){this.Ct=i,this._t=D({root:null,rootMargin:"0px 0px 0px 0px"},n),this.Nt=[],this.Dt=null,t._upgraders.push(this.Ut.bind(this))}var n=t.prototype;return n.disconnect=function(){this.Dt?this.Dt.disconnect():this.Nt.length=0},n.takeRecords=function(){return this.Dt?this.Dt.takeRecords():[]},n.observe=function(t){this.Dt?this.Dt.observe(t):-1==this.Nt.indexOf(t)&&this.Nt.push(t)},n.unobserve=function(t){if(this.Dt)this.Dt.unobserve(t);else{var i=this.Nt.indexOf(t);-1!=i&&this.Nt.splice(i,1)}},n.Ut=function(t){var i=new t(this.Ct,this._t);this.Dt=i;for(var n,r=o(this.Nt,!0);!(n=r()).done;){var e=n.value;i.observe(e)}this.Nt.length=0},i(t,[{key:"root",get:function(){return this.Dt?this.Dt.root:this._t.root||null}},{key:"rootMargin",get:function(){return this.Dt?this.Dt.rootMargin:this._t.rootMargin}},{key:"thresholds",get:function(){return this.Dt?this.Dt.thresholds:[].concat(this._t.threshold||0)}}]),t}();function Bi(t){return(t=Number(t))?t>0?1:-1:t}qi._upgraders=[];var $i=Object.prototype.hasOwnProperty;function Wi(t,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r0?0|i:0;return this.substr(n,t.length)===t}Xi._upgraders=[],(Ji=self).fetch||(Object.defineProperty(Ji,"fetch",{value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){var e=ei(i.method||"GET"),s=ni(e,t);"include"==i.credentials&&(s.withCredentials=!0),"document"!==i.responseType&&"text"!==i.responseType||(s.responseType=i.responseType),i.headers&&Object.keys(i.headers).forEach((function(t){s.setRequestHeader(t,i.headers[t])})),s.onreadystatechange=function(){if(!(s.readyState<2))return s.status<100||s.status>599?(s.onreadystatechange=null,void r(Jt().createExpectedError("Unknown HTTP status ".concat(s.status)))):void(4==s.readyState&&n(new ri(s)))},s.onerror=function(){r(Jt().createExpectedError("Network failure"))},s.onabort=function(){r(Jt().createExpectedError("Request aborted"))},"POST"==e?s.send(i.body):s.send()}))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(Ji,"Response",{value:ui,writable:!0,enumerable:!1,configurable:!0})),function(t){t.Math.sign||t.Object.defineProperty(t.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:Bi})}(self),function(t){t.Object.assign||t.Object.defineProperty(t.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:Wi})}(self),function(t){t.Object.values||t.Object.defineProperty(t.Object,"values",{configurable:!0,writable:!0,value:Yi})}(self),function(t){t.Array.prototype.includes||t.Object.defineProperty(t.Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:s})}(self),function(t){var i=t.Map,n=new i;if(n.set(0,0)!==n){var r=n.set;t.Object.defineProperty(i.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(){return r.apply(this,arguments),this}})}}(self),function(t){var i=t.WeakMap,n=new i;if(n.set({},0)!==n){var r=n.set;t.Object.defineProperty(i.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(){return r.apply(this,arguments),this}})}}(self),function(t){var i=t.Set,n=new i([1]);if(n.size<1&&(t.Set=function(t){var n=new i;if(t)for(var r=G(t),e=0;e0}})}(t)}(self),function(t){Ki(t)&&function(t){t.ResizeObserver||(t.ResizeObserver=Xi,t.ResizeObserver._stub=Xi)}(t)}(self),function(t){t.AbortController||(Object.defineProperty(t,"AbortController",{configurable:!0,enumerable:!1,writable:!0,value:r}),Object.defineProperty(t,"AbortSignal",{configurable:!0,enumerable:!1,writable:!0,value:e}))}(self));var Zi="cls",tn="clstu",nn="cls-1",rn="pc",en="building",sn="mounting",un="loading",on="complete",hn="error";function an(t){return t.readyState!=un&&"uninitialized"!=t.readyState}function cn(t){return t.readyState==on}function fn(t,i){ln(t,an,i)}function ln(t,i,n){var r=i(t);r?n(t):t.addEventListener("readystatechange",(function e(){i(t)&&(r||(r=!0,n(t)),t.removeEventListener("readystatechange",e))}))}function vn(t){return new Promise((function(i){fn(t,i)}))}function dn(t){return new Promise((function(i){ln(t,cn,i)}))}var mn=["amp-mustache"],pn="latest";function gn(t){if(!t)return null;var i=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),n=i?i[2]:void 0,r=i?i[3]:void 0;return n&&r?{extensionId:n,extensionVersion:r}:null}function bn(t,i,n){var r=t.document.createElement("script");r.async=!0,wn(i)?n="":r.setAttribute(mn.indexOf(i)>=0?"custom-template":"custom-element",i),r.setAttribute("data-script",i),r.setAttribute("i-amphtml-inserted",""),Li(t.document,r),r.setAttribute("crossorigin","anonymous");var e=function(t,i,n,r){var e=Mt,s=Dt().rtvVersion,u=n?"-"+n:"";return"".concat(e,"/rtv/").concat(s,"/v0/").concat(i).concat(u).concat(".js")}(t.location,i,n);return r.src=e,r}function yn(t,i,n,r){for(var e=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=":not([i-amphtml-loaded-new-version])"+(e?"":":not([i-amphtml-inserted])"),u=t.document.head.querySelectorAll('script[src*="/'.concat(i,'-"]').concat(s)),o=[],h=0;h=0;e--){var u=i.charAt(e);if("("==u?s--:")"==u&&s++,0==s)break}var o=e-1;if(e>0)for(e--;e>=0;e--){var h=i.charAt(e);if(!("%"==h||"-"==h||"_"==h||h>="a"&&h<="z"||h>="A"&&h<="Z"||h>="0"&&h<="9"))break}if(e>=o)return null}else for(e=i.length-2;e>=0;e--){var a=i.charAt(e);if(!("%"==a||"."==a||a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"))break}return e>=0?(n=i.substring(0,e+1).trim(),r=i.substring(e+1).trim()):(r=i,n=void 0),r?{query:n?t.matchMedia(n):null,value:r}:null}})).filter(Boolean)}function _e(t,i,n){for(var r=0;r'],De={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function je(t){var i=t.getAttribute("layout"),n=t.getAttribute("width"),r=t.getAttribute("height"),e=t.getAttribute("sizes"),s=t.getAttribute("heights"),u=i?he(i):null;ht(void 0!==u,'Invalid "layout" value: %s, %s',i,t);var o=n&&"auto"!=n?fe(n):n;ht(void 0!==o,'Invalid "width" value: %s, %s',n,t);var h,a,c,f,l=r&&"fluid"!=r?fe(r):r;if(ht(void 0!==l,'Invalid "height" value: %s, %s',r,t),u&&u!=Zr&&u!=te||o&&l||(f=(f=t.tagName).toUpperCase(),void 0===De[f]))h=o,a=l;else{var v=function(t){var i=t.tagName.toUpperCase();if(et(void 0!==De[i]),!De[i]){var n=t.ownerDocument,r=i.replace(/^AMP\-/,""),e=n.createElement(r);e.controls=!0,_r(e,{position:"absolute",visibility:"hidden"}),n.body.appendChild(e),De[i]={width:(e.offsetWidth||1)+"px",height:(e.offsetHeight||1)+"px"},n.body.removeChild(e)}return De[i]}(t);h=o||u==te?o:v.width,a=l||v.height}return(c=u||(h||a?"fluid"==a?se:!a||h&&"auto"!=h?a&&h&&(e||s)?ie:Zr:te:ne))!=Zr&&c!=te&&c!=ie&&c!=ue||ht(a,'The "height" attribute is missing: %s',t),c==te&&ht(!h||"auto"==h,'The "width" attribute must be missing or "auto": %s',t),c!=Zr&&c!=ie&&c!=ue||ht(h&&"auto"!=h,'The "width" attribute must be present and not "auto": %s',t),c==ie||c==ue?ht(le(h)==le(a),'Length units should be the same for "width" and "height": %s, %s, %s',n,r,t):ht(null===s,'"heights" attribute must be missing: %s',t),{layout:c,width:h,height:a}}var Ue,Le="EXPERIMENTS",ze="amp-experiment-toggles",He="__AMP__EXPERIMENT_TOGGLES";function Ge(t,i){return!!Fe(t)[i]}function Ve(t,i,n,r){var e=Ge(t,i),s=null!=n?n:!e;if(s!=e&&(Fe(t)[i]=s,!r)){var u=qe(t);u[i]=s,function(t,i){var n=[];for(var r in i)n.push((!1===i[r]?"-":"")+r);try{var e;null===(e=t.localStorage)||void 0===e||e.setItem(ze,n.join(","))}catch(t){Jt().error(Le,"Failed to save experiments to localStorage.")}}(t,u),Jt().warn(Le,'"%s" experiment %s for the domain "%s". See: https://amp.dev/documentation/guides-and-tutorials/learn/experimental',i,s?"enabled":"disabled",t.location.hostname)}return s}function Fe(t){var i,n,r,e,s;if(t[He])return t[He];t[He]=A();var u=t[He];et(u);var h=D(D({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(n=t.AMP_EXP)&&void 0!==n?n:at((null===(r=t.__AMP_EXP)||void 0===r?void 0:r.textContent)||"{}"));for(var a in h){var c=h[a];"number"==typeof c&&c>=0&&c<=1&&(u[a]=Math.random()0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);var r=Qe(t);return r&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise((function(e,s){if(i=r?Je(t,"loadedmetadata",e,{capture:!0}):Je(t,"load",e),t.tagName){var u=t;if(r&&!t.hasAttribute("src")&&!(u=wi(t,(function(t){return"SOURCE"===t.tagName}))))return s(new Error("Media has no source."));n=Je(u,"error",s)}})).then((function(){return n&&n(),t}),(function(){i&&i(),function(t){Qe(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);var i=t;throw i&&i.src&&(i=i.src),Jt().createError($e,i)}(t)}))}function Qe(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var Ze={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]","variant":"amp-experiment"};function ts(t){var i=t.document;return Zt(i.body),Object.keys(Ze).filter((function(t){return i.querySelector(Ze[t])}))}function is(t,i,n,r,e){var s=t.getHeadNode(),u=function(t,i,n,r){var e=t.__AMP_CSS_SM;e||(e=t.__AMP_CSS_SM=A());var s=!n&&r&&"amp-custom"!=r&&"amp-keyframes"!=r,u=n?"amp-runtime":s?"amp-extension=".concat(r):null;if(u){var o=ns(t,e,u);if(o)return"STYLE"==o.tagName&&o.textContent!==i&&(o.textContent=i),o}var h=(t.ownerDocument||t).createElement("style");h.textContent=i;var a=null;return n?h.setAttribute("amp-runtime",""):s?(h.setAttribute("amp-extension",r||""),a=ns(t,e,"amp-runtime")):(r&&h.setAttribute(r,""),a=t.lastChild),function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(n){var r=n.nextSibling;t.insertBefore(i,r)}else Si(t,i)}(t,h,a),u&&(e[u]=h),h}(s,function(t,i){var n=t.__AMP_CSS_TR;return n?n(i):i}(s,i),r||!1,e||null);if(n){var o=t.getRootNode();if(us(o,u))return n(u),u;var h=setInterval((function(){us(o,u)&&(clearInterval(h),n(u))}),4)}return u}function ns(t,i,n){if(i[n])return i[n];var r=t.querySelector("style[".concat(n,"], link[").concat(n,"]"));return r?(i[n]=r,r):null}var rs=!1;function es(t){Zt(t.defaultView),rs||(rs=!0,ss(t))}function ss(t){_r(t.body,{opacity:1,visibility:"visible","animation":"none"})}function us(t,i){for(var n=t.styleSheets,r=0;r2&&void 0!==arguments[2]?arguments[2]:"source";return ti(null!=t,"%s %s must be available",i,n),ti(ys(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,n,t),t}function As(t){var i=t.indexOf("#");return-1==i?t:t.substring(0,i)}function xs(t){return xt.test(ls(t).origin)}function Es(t){return!(t&&pt.includes(ls(t).protocol))}function Ps(t){var i=vs(t),n=i.hash;return i.origin+i.pathname+Os(i.search)+n}function Os(t){return function(t,i){if(!t||"?"==t)return"";var n=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),r=t.replace(n,"").replace(/^[?&]/,"");return r?"?"+r:""}(t)}function Is(t){if(!xs(t=ls(t)))return t.href;var i=t.pathname.split("/"),n=i[1];ti(cs.has(n),"Unknown path prefix in url %s",t.href);var r=i[2],e="s"==r?"https://"+decodeURIComponent(i[3]):"http://"+decodeURIComponent(r);return ti(e.indexOf(".")>0,"Expected a . in origin %s",e),i.splice(1,"s"==r?3:2),e+i.join("/")+Os(t.search)+(t.hash||"")}function Ms(t){return vs(Is(t)).origin}function Ts(t,i){return i=ls(i),"function"==typeof URL?new URL(t,i.href).toString():function(t,i){i=ls(i);var n=vs(t=t.replace(/\\/g,"/"));return t.toLowerCase().startsWith(n.protocol)?n.href:t.startsWith("//")?i.protocol+t:t.startsWith("/")?i.origin+t:i.origin+i.pathname.replace(/\/[^/]*$/,"/")+t}(t,i)}function Ss(t,i){return Rs(i),function(t,i,n,r){return ms(t,ps("__amp_source_origin",n),void 0)}(i,0,Ms(t.location.href))}function Rs(t){var i=yt(vs(t).search);ti(!(fs in i),"Source origin is not allowed in %s",t)}var _s="CANCELLED",ks="BLOCK_BY_CONSENT",Cs=self.__AMP_ERRORS||[];self.__AMP_ERRORS=Cs;var Ns=function(t){return(i=0,n=function(){var t=Math.pow(1.5,i++);return 1e3*(t+function(t,i){var n=t*(i=i||.3)*Math.random();return Math.random()>.5&&(n*=-1),n}(t))},Ns=function(t){return setTimeout(t,n())})(t);var i,n};function Ds(t,i){try{if(t)if(void 0!==t.message)t=f(t);else{var n=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(i){return String(t)}}(n))).origError=n}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){var r=B(t.messageArray,(function(t){return null==t?void 0:t.tagName}));r>-1&&(t.associatedElement=t.messageArray[r])}var e=i||t.associatedElement;if(e&&e.classList&&(e.classList.add("i-amphtml-error"),Dt().development&&(e.classList.add("i-amphtml-element-error"),e.setAttribute("error-message",t.message))),self.console&&(tt(t.message)||!t.expected)){var s=console.error||console.log;t.messageArray?s.apply(console,t.messageArray):e?s.call(console,t.message,e):s.call(console,t.message)}e&&e.dispatchCustomEventForTesting&&e.dispatchCustomEventForTesting("amp:error",t.message),Ls.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function js(){return new Error(_s)}function Us(t){return!!t&&("string"==typeof t?t.startsWith(ks):"string"==typeof t.message&&t.message.startsWith(ks))}function Ls(t,i,n,r,e){var s=this;if(!this||!this.document||e&&e.expected||es(this.document),!Dt().development){var u=!1;try{u=function(t){if(!t.document)return!1;for(var i=t.document.querySelectorAll("script[src]"),n=0;n.01)){var o=function(t,i,n,r,e,s){t=function(t,i){return i&&(t=i.message?i.message:String(i)),t||(t="Unknown error"),t}(t,e);var u,o,h=!(!e||!e.expected);if(!/_reported_/.test(t)&&t!=_s){var a=!(self&&self.window),c=Math.random();if(!((function(t){return-1!=t.indexOf($e)}(t)||"Script error."==t||a)&&(h=!0,c>.001))){var f=tt(t);if(!(f&&c>.1)){var l=Object.create(null);l.v=Dt().rtvVersion,l.noAmp=s?"1":"0",l.m=t.replace(X,""),l.a=f?"1":"0",l.ex=h?"1":"0",l.dw=a?"1":"0";var v="1p";if(self.context&&self.context.location?(l["3p"]="1",v="3p"):Dt().runtime&&(v=Dt().runtime),l.rt=v,"inabox"===v&&(l.adid=Dt().a4aId),l.ca=null!==(o=self.AMP_CONFIG)&&void 0!==o&&o.canary?"1":"0",l.bt=(null===(u=self.AMP_CONFIG)||void 0===u?void 0:u.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(l.or=self.location.ancestorOrigins[0]),self.viewerState&&(l.vs=self.viewerState),self.parent&&self.parent!=self&&(l.iem="1"),self.AMP&&self.AMP.viewer){var d=self.AMP.viewer.getResolvedViewerUrl(),m=self.AMP.viewer.maybeGetMessagingOrigin();d&&(l.rvu=d),m&&(l.mso=m)}var p,g,b,y=[],w=self[He]||null;for(var A in w){var x=w[A];y.push("".concat(A,"=").concat(x?"1":"0"))}return l.exps=y.join(","),e?(l.el=(null===(p=e.associatedElement)||void 0===p?void 0:p.tagName)||"u",e.args&&(l.args=JSON.stringify(e.args)),f||e.ignoreStack||!e.stack||(l.s=e.stack),e.message&&(e.message+=" _reported_")):(l.f=i||"",l.l=n||"",l.c=r||""),l.r=self.document?self.document.referrer:"",l.ae=Cs.join(","),l.fr=self.location.originalHash||self.location.hash,"production"===l.bt&&(l.pt="1"),b=t,(g=Cs).length>=25&&g.splice(0,g.length-25+1),g.push(b),l}}}}(t,i,n,r,e,u);o&&Ns((function(){try{return function(t,i){return i.pt&&Math.random()<.9?h():function(t,i){var n=Yn(t);if(!n.isSingleDoc())return Promise.resolve(!1);var r=n.getSingleDoc();if(!r.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);var e=vr(r);return e.hasCapability("errorReporter")?e.isTrustedViewer().then((function(t){return!!t&&(e.sendMessage("error",{"m":(n=i).m,"a":n.a,"s":n.s,"el":n.el,"ex":n.ex,"v":n.v,"pt":n.pt}),!0);var n})):Promise.resolve(!1)}(t,i).then((function(t){if(!t){var n=new XMLHttpRequest;n.open("POST",Math.random()<.1?Rt:St,!0),n.send(JSON.stringify(i))}}))}(s,o).catch((function(){}))}catch(t){}}))}}}var zs="Resource",Hs=function(){function t(t,i,n){i.__AMP__RESOURCE=this,this.yo=t,this.element=i,this.debugid=i.tagName.toLowerCase()+"#"+t,this.hostWin=i.ownerDocument.defaultView,this.wo=n,this.Ao=i.hasAttribute("placeholder"),this.xo=!1,this.Eo=void 0,this.Oo=i.isBuilt()?1:0,0==this.Oo&&i.isBuilding()&&this.build(),this.Po=-1,this.To=0,this.Io=null,this.Mo=null,this.So=!1,this.ko=zi(-1e4,-1e4,0,0),this._o=null,this.Ro=!1,this.No=null,this.Co=null,this.Do=void 0;var r=new a;this.jo=r.promise,this.zo=r.resolve,this.Uo=!1}t.forElement=function(i){return Zt(t.forElementOptional(i))},t.forElementOptional=function(t){return t.__AMP__RESOURCE},t.setOwner=function(i,n){Zt(n.contains(i)),t.forElementOptional(i)&&t.forElementOptional(i).updateOwner(n),i.__AMP__OWNER=n;for(var r=i.getElementsByClassName("i-amphtml-element"),e=0;e0&&i.width>0;return t||n},i.isFixed=function(){return this.So},i.overlaps=function(t){return n=t,(i=this.getLayoutBox()).top<=n.bottom&&n.top<=i.bottom&&i.left<=n.right&&n.left<=i.right;var i,n},i.prerenderAllowed=function(){return this.element.prerenderAllowed()},i.previewAllowed=function(){return this.element.previewAllowed()},i.isBuildRenderBlocking=function(){return this.element.isBuildRenderBlocking()},i.whenWithinViewport=function(t){if(Zt(!1!==t),!this.isLayoutPending()||!0===t)return h();var i=t,n=String(i);return this.No&&this.No[n]?this.No[n].promise:this.isWithinViewportRatio(i)?h():(this.No=this.No||{},this.No[n]=new a,this.No[n].promise)},i.Ho=function(){if(this.No){var t=this.getDistanceViewportRatio();for(var i in this.No)this.isWithinViewportRatio(parseFloat(i),t)&&(this.No[i].resolve(),delete this.No[i])}},i.getDistanceViewportRatio=function(){var t=mr(this.element).getRect(),i=this.getLayoutBox(),n=this.wo.getScrollDirection(),r=1,e=0;if(t.righti.right)return{distance:!1};if(t.bottomi.bottom))return{distance:!0};e=t.top-i.bottom,1==n&&(r=2)}return{distance:e,scrollPenalty:r,viewportHeight:t.height}},i.isWithinViewportRatio=function(t,i){if("boolean"==typeof t)return t;var n=i||this.getDistanceViewportRatio(),r=n.distance,e=n.scrollPenalty,s=n.viewportHeight;return"boolean"==typeof r?r:r0&&!this.element.isRelayoutNeeded())return Qt().fine(zs,"layout canceled since it wasn't requested:",this.debugid,this.Oo),this.Oo=4,h();Qt().fine(zs,"start layout:",this.debugid,"count:",this.To),this.To++,this.Oo=3,this.Io=new AbortController;var n=this.Io.signal,r=new Promise((function(i,r){dr(t.hostWin).mutate((function(){var e;try{e=t.element.layoutCallback(n)}catch(t){r(t)}Promise.resolve(e).then(i,r)})),n.onabort=function(){return r(js())}})).then((function(){return t.Go(!0,n)}),(function(i){return t.Go(!1,n,i)}));return this.Co=r},i.Go=function(t,i,n){if(this.Io=null,i.aborted){var r=Qt().createError("layoutComplete race");throw r.associatedElement=this.element,Qt().expectedError(zs,r),js()}if(this.zo&&(this.zo(),this.zo=null),this.Co=null,this.Oo=t?4:5,this.Mo=n,!t)return Qt().fine(zs,"loading failed:",this.debugid,n),Promise.reject(n);Qt().fine(zs,"layout complete:",this.debugid)},i.isLayoutPending=function(){return 4!=this.Oo&&5!=this.Oo},i.loadedOnce=function(){return this.element.R1()?this.element.whenLoaded():this.jo},i.isInViewport=function(){return this.Uo&&this.Ho(),this.Uo},i.setInViewport=function(t){this.Uo=t},i.unlayout=function(){0!=this.Oo&&1!=this.Oo&&2!=this.Oo&&(this.Io&&(this.Io.abort(),this.Io=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.Oo=1,this.To=0,this.Co=null))},i.getTaskId=function(t){return this.debugid+"#"+t},i.pause=function(){this.element.pause()},i.pauseOnRemove=function(){this.element.pause()},i.resume=function(){this.element.resume()},i.unload=function(){this.element.unmount()},i.disconnect=function(){delete this.element.__AMP__RESOURCE,this.element.disconnect(!0)},t}(),Gs="ready-scan",Vs="scheduler",Fs="250% 31.25%",qs=function(){function t(t){var i=this;this.Vo=t;var n=t.win;this.Fo=new n.IntersectionObserver((function(t){return i.Bo(t)}),{root:Ni(n)?n.document:null,rootMargin:Fs}),this.qo=new Map,this.Wo=new Map,this.$o=[],this.Ko=!1,t.whenReady().then((function(){return i.Yo()})),this.Jo=t.onVisibilityChanged((function(){return i.Xo()}))}var i=t.prototype;return i.dispose=function(){this.Fo.disconnect(),this.Wo.clear(),this.Jo&&(this.Jo(),this.Jo=null)},i.scheduleAsap=function(t){this.Wo.set(t,{asap:!0,isIntersecting:!1}),this.Qo(t)},i.schedule=function(t){this.Wo.has(t)||(t.deferredMount()?(this.Wo.set(t,{asap:!1,isIntersecting:!1}),this.Fo.observe(t),this.qo.size>0&&this.qo.forEach((function(i,n){ji(n,t)&&i.observe(t)}))):this.Wo.set(t,{asap:!1,isIntersecting:!0}),this.Qo(t))},i.unschedule=function(t){this.Wo.has(t)&&(this.Wo.delete(t),this.Fo.unobserve(t),this.qo.size>0&&this.qo.forEach((function(i){i.unobserve(t)})),this.$o&&($(this.$o,t),this.Yo()))},i.setContainer=function(t,i){var n=this;if(!this.qo.has(t)){var r=new this.Vo.win.IntersectionObserver((function(t){return n.Bo(t)}),{root:i||t,rootMargin:Fs});this.qo.set(t,r),this.Wo.forEach((function(i,n){!i.asap&&ji(t,n)&&r.observe(n)}))}},i.removeContainer=function(t){var i=this.qo.get(t);i&&(i.disconnect(),this.qo.delete(t))},i.Zo=function(){var t=this;this.Vo.isReady()&&!this.Ko&&(this.Ko=!0,this.Vo.win.setTimeout((function(){t.Vo.signals().signal(Gs)}),50))},i.Xo=function(){var t=this,i=this.Vo.getVisibilityState();i!=yr&&i!=wr&&i!=gr&&i!=br||this.Wo.forEach((function(i,n){return t.tu(n)}))},i.Qo=function(t){var i=this.$o;i?(i.includes(t)||i.push(t),this.Yo()):this.tu(t)},i.Yo=function(){var t=this.Vo.isReady(),i=this.$o;if(i)for(var n=0;n0&&this.iu[i-1].priority>=t))break;r=i-1}return i},n.forEach=function(t){for(var i=this.length;i--;)t(this.iu[i].item)},n.dequeue=function(){var t=this.iu.pop();return t?t.item:null},i(t,[{key:"length",get:function(){return this.iu.length}}]),t}(),Ws="CHUNK",Ys=/nochunking=1/.test(self.location.hash),Ks=h();function Js(t){return xn(t,"chunk",nu),Pn(t,"chunk")}function Xs(t,i,n){if(Ys)Ks.then(i);else{var r=Js(t.documentElement||t);r.runForStartup(i),n&&r.runForStartup((function(){r.ru=!0}))}}function Qs(t,i,n){Ys?Ks.then(i):Js(t).run(i,n)}var Zs="not_run",tu=function(){function t(t){this.state=Zs,this.eu=t}var i=t.prototype;return i.su=function(t){if("run"!=this.state){this.state="run";try{this.eu(t)}catch(t){throw this.ou(t),t}}},i.uu=function(){return this.eu.displayName||this.eu.name},i.ou=function(t){},i.hu=function(){return!1},i.au=function(){return!1},t}(),iu=function(t){U(n,t);var i=H(n);function n(t,n,r){var e;return(e=i.call(this,t)).cu=r,e}var r=n.prototype;return r.ou=function(t){es(self.document)},r.hu=function(){return this.fu()},r.au=function(){return this.cu.lu},r.fu=function(){return this.cu.ampdoc.isVisible()},n}(tu),nu=function(){function t(t){var i,n=this;this.ampdoc=t,this.t=t.win,this.vu=new $s,this.du=this.mu.bind(this),this.pu=0,this.bu=!(!this.t.navigator.scheduling||!this.t.navigator.scheduling.isInputPending),this.gu=!1,this.ru=this.t.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.t.addEventListener("message",(function(t){"amp-macro-task"==Ke(t)&&n.mu(null)})),this.lu=!1,(i=t,In(i,"viewer")).then((function(){n.lu=!0})),t.onVisibilityChanged((function(){t.isVisible()&&n.yu()}))}var i=t.prototype;return i.run=function(t,i){var n=new tu(t);this.wu(n,i)},i.runForStartup=function(t){var i=new iu(t,this.t,this);this.wu(i,Number.POSITIVE_INFINITY)},i.wu=function(t,i){this.vu.enqueue(t,i),this.yu()},i.Au=function(t){for(var i=this.vu.peek();i&&i.state!==Zs;)this.vu.dequeue(),i=this.vu.peek();return i&&t&&this.vu.dequeue(),i},i.mu=function(t){var i,n=this,r=this.Au(!0);if(!r)return this.gu=!1,this.pu=0,!1;try{i=Date.now(),r.su(t)}finally{Ks.then().then().then().then().then().then().then().then().then((function(){n.gu=!1,n.pu+=Date.now()-i,Qt().fine(Ws,r.uu(),"Chunk duration",Date.now()-i,n.pu),n.yu()}))}return!0},i.xu=function(t){var i=this;if(this.ru&&(this.bu?this.t.navigator.scheduling.isInputPending():this.pu>5))return this.pu=0,void this.Eu();Ks.then((function(){i.du(t)}))},i.yu=function(){if(!this.gu){var t=this.Au();if(t)return t.hu()?(this.gu=!0,void this.xu(null)):void(t.au()&&this.t.requestIdleCallback?function(t,i,n,r){var e=Date.now();t.requestIdleCallback((function i(s){if(s.timeRemaining()<15){var u=n-(Date.now()-e);u<=0||s.didTimeout?(Qt().fine(Ws,"Timed out",n,s.didTimeout),r(s)):(Qt().fine(Ws,"Rescheduling with",u,s.timeRemaining()),t.requestIdleCallback(i,{timeout:u}))}else Qt().fine(Ws,"Running idle callback with ",15),r(s)}),{timeout:n})}(this.t,0,2e3,this.du):this.Eu())}},i.Eu=function(){this.t.postMessage("amp-macro-task","*")},t}(),ru="activate",eu=function(){function t(t){this.element=t,this.win=oi(t),this.actionMap_=null,this.defaultActionAlias_=null}t.R1=function(){return!1},t.deferredMount=function(t){return!0},t.prerenderAllowed=function(t){return!1},t.previewAllowed=function(t){return this.prerenderAllowed(t)},t.usesLoading=function(t){return!1},t.createLoaderLogoCallback=function(t){return{}},t.getBuildPriority=function(t){return 0},t.getPreconnects=function(t){return null},t.requiresShadowDom=function(){return!1};var i=t.prototype;return i.signals=function(){return this.element.signals()},i.getDefaultActionAlias=function(){return this.defaultActionAlias_},i.getLayoutPriority=function(){return 0},i.updateLayoutPriority=function(t){this.element.getResources().updateLayoutPriority(this.element,t)},i.getLayout=function(){return this.element.getLayout()},i.getLayoutBox=function(){return this.element.getLayoutBox()},i.getLayoutSize=function(){return this.element.getLayoutSize()},i.getAmpDoc=function(){return this.element.getAmpDoc()},i.getVsync=function(){return dr(this.win)},i.getConsentPolicy=function(){var t=null;return this.element.hasAttribute("data-block-on-consent")&&(t=this.element.getAttribute("data-block-on-consent")||"default"),t},i.isLayoutSupported=function(t){return t==Qr},i.isAlwaysFixed=function(){return!1},i.upgradeCallback=function(){return null},i.buildCallback=function(){},i.preconnectCallback=function(t){},i.attachedCallback=function(){},i.detachedCallback=function(){},i.setAsContainer=function(t){this.element.setAsContainerInternal(t)},i.removeAsContainer=function(){this.element.removeAsContainerInternal()},i.isBuildRenderBlocking=function(){return!1},i.createPlaceholderCallback=function(){return null},i.renderOutsideViewport=function(){return"inabox"==Dt(this.win).runtime||3},i.idleRenderOutsideViewport=function(){return!1},i.ensureLoaded=function(){},i.setReadyState=function(t,i){this.element.setReadyStateInternal(t,i)},i.mountCallback=function(t){},i.unmountCallback=function(){},i.isRelayoutNeeded=function(){return!1},i.layoutCallback=function(){return h()},i.firstLayoutCompleted=function(){this.togglePlaceholder(!1)},i.pauseCallback=function(){},i.resumeCallback=function(){},i.unlayoutCallback=function(){return!1},i.unlayoutOnPause=function(){return!1},i.reconstructWhenReparented=function(){return!0},i.loadPromise=function(t){return Xe(t)},i.registerAction=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;su(this),this.actionMap_[t]={handler:i,minTrust:n}},i.registerDefaultAction=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ru,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;Zt(!this.defaultActionAlias_),this.registerAction(i,t,n),this.defaultActionAlias_=i},i.executeAction=function(t,i){var n=t.method;n===ru&&(n=this.defaultActionAlias_||n),su(this);var r=this.actionMap_[n],e=this.element.tagName;ti(r,"Method not found: ".concat(n," in ").concat(e));var s=r.handler,u=r.minTrust;if(t.satisfiesTrust(u))return s(t)},i.forwardEvents=function(t,i){var n=this,r=(V(t)?t:[t]).map((function(t){return Ye(i,t,(function(i){Di(n.element,t,Ke(i)||{})}))}));return function(){return r.forEach((function(t){return t()}))}},i.getPlaceholder=function(){return this.element.getPlaceholder()},i.togglePlaceholder=function(t){this.element.togglePlaceholder(t)},i.getFallback=function(){return this.element.getFallback()},i.toggleFallback=function(t){this.element.toggleFallback(t)},i.toggleLoading=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.element.toggleLoading(t,i)},i.getOverflowElement=function(){return this.element.getOverflowElement()},i.renderStarted=function(){this.element.renderStarted()},i.getViewport=function(){return mr(this.getAmpDoc())},i.getIntersectionElementLayoutBox=function(){return this.getLayoutBox()},i.collapse=function(){rr(this.getAmpDoc()).collapseElement(this.element)},i.attemptCollapse=function(){return rr(this.getAmpDoc()).attemptCollapse(this.element)},i.forceChangeHeight=function(t){rr(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)},i.attemptChangeHeight=function(t){return rr(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)},i.attemptChangeSize=function(t,i,n){return rr(this.getAmpDoc()).requestChangeSize(this.element,t,i,void 0,n)},i.measureElement=function(t){return rr(this.getAmpDoc()).measureElement(t)},i.mutateElement=function(t,i){return this.measureMutateElement(null,t,i)},i.measureMutateElement=function(t,i,n){return rr(this.getAmpDoc()).measureMutateElement(n||this.element,t,i)},i.mutateElementSkipRemeasure=function(t){return rr(this.getAmpDoc()).mutateElement(this.element,t,!0)},i.collapsedCallback=function(t){},i.expand=function(){rr(this.getAmpDoc()).expandElement(this.element)},i.mutatedAttributesCallback=function(t){},i.onLayoutMeasure=function(){},i.user=function(){return Jt(this.element)},i.getApi=function(){return this},t}();function su(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var uu,ou=function(t){U(n,t);var i=H(n);function n(){return i.apply(this,arguments)}return n}(eu),hu=Date.now(),au={bubbles:!1},cu=function(){return!0},fu=[],lu=new Set;function vu(t,n){var r=function(t,n){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;var r=function(r){U(s,r);var e=H(s);function s(){var t;return(t=e.call(this)).createdCallback(),t}var u=s.prototype;return u.createdCallback=function(){this.Ou=!1,this.ln=!1,this.Pu=null,this.Yn=!1,this.Tu=null,this.Iu=null,this.Mu="upgrading",this.everAttached=!1,this.Vo=null,this.wo=null,this.Su=Qr,this.To=0,this.ku=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this._u=void 0,this.layoutScheduleTime=void 0;var i=this,n=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.Ru=n===ou?null:n||null,this.Ru||fu.push(this),this.Nu=null,this.Cu=1,this.Du=0,this.ju=void 0,this.zu=void 0,this.no=new Pr,this.Ru&&this.no.signal(we);var r=function(t,i){return zn(t=Tn(t),i)?kn(t,i):null}(t,"performance");this.Uu=r&&r.isPerformanceTrackingOn(),this.Vt=null,i.__AMP_UPG_RES&&(i.__AMP_UPG_RES(i),delete i.__AMP_UPG_RES,delete i.__AMP_UPG_PRM)},u.signals=function(){return this.no},u.getAmpDoc=function(){return Zt(this.Vo),this.Vo},u.getResources=function(){return Zt(this.wo),this.wo},u.isUpgraded=function(){return 2==this.Cu},u.whenUpgraded=function(){return this.no.whenSignal(Ae)},u.upgrade=function(t){this.zu||1==this.Cu&&(this.Ru=t,this.no.signal(we),this.everAttached&&this.Lu())},u.markUnresolved=function(){this.Ru||this.classList.add("amp-unresolved","i-amphtml-unresolved")},u.getUpgradeDelayMs=function(){return this.Du},u.Hu=function(i,n){this.Nu=i,this.Du=t.Date.now()-n,this.Cu=2,this.setReadyStateInternal(en),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Gu(),this.dispatchCustomEventForTesting(ge),this.R1()||this.getResources().upgraded(this),this.no.signal(Ae)},u.Gu=function(){this.Su!=Qr&&this.Nu&&!this.Nu.isLayoutSupported(this.Su)&&(ti(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."),ti(!1,"Layout not supported: ".concat(this.Su)))},u.getBuildPriority=function(){return this.Ru?this.Ru.getBuildPriority(this):3},u.getLayoutPriority=function(){return this.Nu?this.Nu.getLayoutPriority():3},u.getDefaultActionAlias=function(){return Zt(this.isUpgraded()),this.Nu.getDefaultActionAlias()},u.isBuilding=function(){return!!this.Pu},u.isBuilt=function(){return this.Ou},u.whenBuilt=function(){return this.no.whenSignal(xe)},u.buildInternal=function(){var t=this;if(mu(this),Zt(this.Ru),this.Pu)return this.Pu;this.setReadyStateInternal(en);var i=this.Vu();this.Fu();var n=i.then((function(){var i,n=t.Bu(),r=n?null:t.qu();if(n||r)return(i=t,Gn(i,"consentPolicyManager","amp-consent")).then((function(t){return!t||(n?t.whenPolicyUnblock(n):t.whenPurposesUnblock(r))})).then((function(t){if(!t)throw new Error(ks)}))})).then((function(){return Zt(t.Nu).buildCallback()}));return this.Pu=n.then((function(){if(t.Ou=!0,t.classList.add("i-amphtml-built"),t.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),t.no.signal(xe),t.R1()?t.setReadyStateInternal(t.Mu!=en?t.Mu:sn):(t.setReadyStateInternal(un),t.preconnect(!1)),t.ln&&t.ur(),t.ju&&ar(oi(t)).delay(t.Wu.bind(t),1),!t.getPlaceholder()){var i=t.createPlaceholder();i&&t.appendChild(i)}}),(function(i){throw t.no.rejectSignal(xe,i),t.R1()&&t.setReadyStateInternal(hn,i),Us(i)||Ds(i,t),i}))},u.build=function(){var t=this;return this.Pu?this.Pu:this.no.whenSignal(we).then((function(){return t.R1()&&Bs(t.getAmpDoc()).scheduleAsap(t),t.whenBuilt()}))},u.mountInternal=function(){var t=this;if(this.Tu)return this.Tu;this.Iu=this.Iu||new AbortController;var i=this.Iu.signal;return this.Tu=this.buildInternal().then((function(){if(Zt(t.R1()),!i.aborted){t.setReadyStateInternal(t.Mu!=sn?t.Mu:t.Ru.usesLoading(t)?un:sn),t.Yn=!0;var n=t.Nu.mountCallback(i);return!!n&&n.then(cu)}})).then((function(n){if(t.Iu=null,i.aborted)throw js();t.no.signal(Ee),t.Ru.usesLoading(t)&&!n||t.setReadyStateInternal(on)})).catch((function(i){var n;throw t.Iu=null,(n=i)&&("string"==typeof n?n.startsWith(_s):"string"==typeof n.message&&n.message.startsWith(_s))?t.Tu=null:(t.no.rejectSignal(Ee,i),t.setReadyStateInternal(hn,i)),i}))},u.mount=function(){var t=this;if(this.Tu)return this.Tu;this.Iu=this.Iu||new AbortController;var i=this.Iu.signal;return this.no.whenSignal(we).then((function(){if(!t.R1())return t.whenBuilt();if(i.aborted)throw js();return Bs(t.getAmpDoc()).scheduleAsap(t),t.whenMounted()}))},u.unmount=function(){this.ln&&this.pause(),this.R1()?(this.Iu&&(this.Iu.abort(),this.Iu=null),Bs(this.getAmpDoc()).unschedule(this),this.Yn&&this.Nu.unmountCallback(),this.Yn=!1,this.Tu=null,this.$u(),this.ln&&this.Lu(!0)):this.Ku()},u.whenMounted=function(){return this.no.whenSignal(Ee)},u.whenLoaded=function(){return this.no.whenSignal(Ie)},u.ensureLoaded=function(t){var i=this;return this.mount().then((function(){if(i.R1())return i.Ru.usesLoading(i)&&i.Nu.ensureLoaded(),i.whenLoaded();var n=i.Yu();return n.whenBuilt().then((function(){if(4!=n.getState()&&((3!=n.getState()||n.isMeasureRequested())&&n.measure(),n.isDisplayed()))return i.getResources().scheduleLayoutOrPreload(n,!0,t,!0),i.whenLoaded()}))}))},u.setAsContainerInternal=function(t){Bs(this.getAmpDoc()).setContainer(this,t)},u.removeAsContainerInternal=function(){Bs(this.getAmpDoc()).removeContainer(this)},u.setReadyStateInternal=function(t,i){if(t!==this.Mu&&(this.Mu=t,this.R1()))switch(t){case un:return this.no.signal(Pe),this.no.reset(Me),this.no.reset(Ie),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(be);case on:return this.no.signal(Pe),this.no.signal(Ie),this.no.reset(Me),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),Di(this,"load",null,au),void this.dispatchCustomEventForTesting(ye);case hn:return this.no.rejectSignal(Ie,i),this.toggleLoading(!1),void Di(this,"error",i,au)}},u.preconnect=function(t){var i=this;Zt(this.isUpgraded()),t?this.Nu.preconnectCallback(t):Xs(this.getAmpDoc(),(function(){i.ownerDocument&&i.ownerDocument.defaultView&&i.Nu.preconnectCallback(t)}))},u.R1=function(){return!!this.Ru&&this.Ru.R1()},u.deferredMount=function(){return!!this.Ru&&this.Ru.deferredMount(this)},u.isAlwaysFixed=function(){return!!this.Nu&&this.Nu.isAlwaysFixed()},u.updateLayoutBox=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isBuilt()&&this.onMeasure(i)},u.onMeasure=function(){Zt(this.isBuilt());try{this.Nu.onLayoutMeasure()}catch(t){Ds(t,this)}},u.Fu=function(){var t;return void 0!==this.sizerElement||this.Su!==ie&&this.Su!==ue||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null},u.Ju=function(t){if(this.Su!==ie)if(this.Su!==ue);else{var i=t.querySelector(".i-amphtml-intrinsic-sizer");if(!i)return;i.setAttribute("src","")}else Rr(t,"paddingTop","0")},u.Xu=function(){var t=this,i=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),n=!!this.Vt,r=this.ownerDocument.defaultView;i!=n&&r&&(i?(this.Vt=new Te(r,(function(){return t.Qu()})),this.Qu()):this.Zu())},u.Zu=function(){this.Vt&&(this.Vt.dispose(),this.Vt=null)},u.Qu=function(){var t=this.Vt;if(t){t.start();var i=this.getAttribute("media")||null,n=!i||t.resolveMatchQuery(i);this.classList.toggle("i-amphtml-hidden-by-media-query",!n);var r=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");r&&Rr(this,"width",t.resolveListQuery(r));var e=this.Su===ie?this.getAttribute("heights"):null;if(e){var s=this.Fu();s&&Rr(s,"paddingTop",t.resolveListQuery(e))}t.complete(),this.Yu().requestMeasure()}},u.applySize=function(t,i,n){var r=this.Fu();r&&(this.sizerElement=null,this.Ju(r),this.th((function(){r&&Ti(r)}))),void 0!==t&&Rr(this,"height",t,"px"),void 0!==i&&Rr(this,"width",i,"px"),n&&(null!=n.top&&Rr(this,"marginTop",n.top,"px"),null!=n.right&&Rr(this,"marginRight",n.right,"px"),null!=n.bottom&&Rr(this,"marginBottom",n.bottom,"px"),null!=n.left&&Rr(this,"marginLeft",n.left,"px")),this.ih()&&this.nh(),Di(this,"amp:size-changed")},u.connectedCallback=function(){if(function(){if(void 0===uu){var t=self.document.createElement("template");uu="content"in t}return uu}()||void 0!==this.zu||(this.zu=!!yi(this,"template")),!this.zu&&!this.ln&&Ri(this)){if(this.ln=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this.Vo){var t=oi(this),i=Yn(t).getAmpDoc(this);this.Vo=i,n(i,this,this.Ru)}if(this.wo||(this.wo=or(this.Vo)),this.getResources().add(this),this.everAttached){var r=this.reconstructWhenReparented();r&&this.$u(),this.isUpgraded()&&(r&&!this.R1()&&this.getResources().upgraded(this),this.ur(),this.dispatchCustomEventForTesting(ge)),this.Ru&&this.R1()&&this.Lu()}else{this.everAttached=!0;try{this.Su=function(t){var i=t.getAttribute("i-amphtml-layout");if(i){var n,r=he(i);return et(r),r!=ie&&r!=ue||!t.firstElementChild?r==Qr&&kr(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(n=t.sizerElement)||void 0===n||n.setAttribute("slot","i-amphtml-svc")),r}var e=je(t),s=e.height,u=e.layout,o=e.width;if(t.classList.add(ae(u)),ce(u)&&t.classList.add("i-amphtml-layout-size-defined"),u==Qr)kr(t,!1);else if(u==Zr)_r(t,{width:ut(o),height:ut(s)});else if(u==te)Rr(t,"height",ut(s));else if(u==ie){var h=t.ownerDocument.createElement("i-amphtml-sizer");h.setAttribute("slot","i-amphtml-svc");var a=ve(s),c=ve(o);ot(a),ot(c),_r(h,{paddingTop:a/c*100+"%"}),t.insertBefore(h,t.firstChild),t.sizerElement=h}else if(u==ue){var f=ke(t)(Ne),l=f.firstElementChild;st(l),l.setAttribute("src",'data:image/svg+xml;charset=utf-8,')),t.insertBefore(f,t.firstChild),t.sizerElement=f}else u==re||u==ne||(u==ee?(o&&Rr(t,"width",o),s&&Rr(t,"height",s)):u==se&&(t.classList.add("i-amphtml-layout-awaiting-size"),o&&Rr(t,"width",o),Rr(t,"height",0)));return t.setAttribute("i-amphtml-layout",u),u}(this),this.Xu()}catch(t){Ds(t,this)}this.Ru?this.Lu():(lu.has("*")||lu.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}},u.ih=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")},u.nh=function(){this.classList.remove("i-amphtml-layout-awaiting-size")},u.Lu=function(t){if(this.R1()){if(!this.Tu)if(Bs(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Pu)this.setReadyStateInternal(this.Ru&&this.Ru.usesLoading(this)?un:sn);else if(this.setReadyStateInternal(en),!t){var i=this.Ru.getPreconnects(this);if(i&&i.length>0){var n=this.getAmpDoc();Xs(n,(function(){var t=n.win;if(t){var r=ur(t);i.forEach((function(t){return r.url(n,t,!1)}))}}))}}}else this.rh()},u.rh=function(){var i=this;if(!this.zu&&1==this.Cu){var n=new(Zt(this.Ru))(this);this.Cu=4;var r=t.Date.now(),e=n.upgradeCallback();if(e){if("function"==typeof e.then)return e.then((function(t){i.Hu(t||n,r)})).catch((function(t){i.Cu=3,d(t)}));this.Hu(e,r)}else this.Hu(n,r)}},u.disconnectedCallback=function(){this.disconnect(!1)},u.ur=function(){this.Ou&&this.Nu.attachedCallback()},u.disconnect=function(t){!this.zu&&this.ln&&(!t&&Ri(this)||(t&&this.classList.remove("i-amphtml-element"),this.ln=!1,this.getResources().remove(this),this.Nu&&this.Nu.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.Zu()))},u.dispatchCustomEventForTesting=function(t,i){},u.prerenderAllowed=function(){return!this.hasAttribute("noprerender")&&!!this.Ru&&this.Ru.prerenderAllowed(this)},u.previewAllowed=function(){return!!this.Ru&&this.Ru.previewAllowed(this)},u.isBuildRenderBlocking=function(){return!!this.Nu&&this.Nu.isBuildRenderBlocking()},u.createPlaceholder=function(){return this.Nu?this.Nu.createPlaceholderCallback():null},u.createLoaderLogo=function(){return this.Ru?this.Ru.createLoaderLogoCallback(this):{}},u.renderOutsideViewport=function(){return!!this.Nu&&this.Nu.renderOutsideViewport()},u.idleRenderOutsideViewport=function(){return!!this.Nu&&this.Nu.idleRenderOutsideViewport()},u.getLayoutBox=function(){return this.Yu().getLayoutBox()},u.getLayoutSize=function(){return this.Yu().getLayoutSize()},u.getOwner=function(){return this.Yu().getOwner()},u.getIntersectionChangeEntry=function(){var t=this.Nu?this.Nu.getIntersectionElementLayoutBox():this.getLayoutBox(),i=this.getOwner(),n=mr(this.getAmpDoc()).getRect();return function(t,i,n){var r,e,s,u,o=function(t){for(var i=-1/0,n=1/0,r=-1/0,e=1/0,s=0;s0&&void 0!==arguments[0]&&!arguments[0]?this.Vu():this.build()).then((function(){return t.Nu}))},u.Vu=function(){var t=this;return this.no.whenSignal(we).then((function(){return t.rh(),t.whenUpgraded()}))},u.getApi=function(){return this.getImpl().then((function(t){return t.getApi()}))},u.getLayout=function(){return this.Su},u.layoutCallback=function(t){var i=this;if(mu(this),Zt(this.isBuilt()),t.aborted)return Promise.reject(js());this.dispatchCustomEventForTesting(be);var n=0==this.To;this.no.reset(Me),n&&this.no.signal(Pe),this.toggleLoading(!0);var r=c((function(){return i.Nu.layoutCallback()}));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),r.then((function(){if(t.aborted)throw js();n&&i.no.signal(Ie),i.setReadyStateInternal(on),i.To++,i.toggleLoading(!1),i.ku||(i.Nu.firstLayoutCompleted(),i.ku=!0,i.dispatchCustomEventForTesting(ye))}),(function(r){if(t.aborted)throw js();throw n&&i.no.rejectSignal(Ie,r),i.setReadyStateInternal(hn,r),i.To++,i.toggleLoading(!1),r}))},u.pause=function(){this.isBuilt()&&(this.Nu.pauseCallback(),!this.R1()&&this.Nu.unlayoutOnPause()&&this.Ku())},u.resume=function(){this.isBuilt()&&this.Nu.resumeCallback()},u.unlayoutCallback=function(){if(mu(this),!this.isBuilt())return!1;this.no.signal(Me);var t=this.Nu.unlayoutCallback();return t&&this.$u(),this.dispatchCustomEventForTesting("amp:unload"),t},u.Ku=function(){this.Yu().unlayout(),this.ln&&this.wo&&this.wo.schedulePass()},u.$u=function(){this.To=0,this.ku=!1,this.no.reset(Ee),this.no.reset(Oe),this.no.reset(Pe),this.no.reset(Ie),this.no.reset("ini-load")},u.reconstructWhenReparented=function(){return!!this.Nu&&this.Nu.reconstructWhenReparented()},u.collapse=function(){this.Nu&&this.Nu.collapse()},u.collapsedCallback=function(t){this.Nu&&this.Nu.collapsedCallback(t)},u.expand=function(){this.Nu&&this.Nu.expand()},u.mutatedAttributesCallback=function(t){this.Nu?this.Nu.mutatedAttributesCallback(t):this.R1()&&Bs(this).scheduleAsap(this)},u.enqueAction=function(t){mu(this),this.isBuilt()?this.eh(t,!1):(void 0===this.ju&&(this.ju=[]),Zt(this.ju).push(t),this.build())},u.Wu=function(){var t=this;if(this.ju){var i=Zt(this.ju);this.ju=null,i.forEach((function(i){t.eh(i,!0)}))}},u.eh=function(t,i){try{this.Nu.executeAction(t,i)}catch(i){d("Action execution failed:",i,t.node.tagName,t.method)}},u.Bu=function(){var t,i,n=this.getAttribute("data-block-on-consent");if(null===n){if(!(i=(t=this).getAmpDoc().getMetaByName("amp-consent-blocking"))||!(i=i.toUpperCase().replace(/\s+/g,"")).split(",").includes(t.tagName))return null;n="default",this.setAttribute("data-block-on-consent",n)}return""==n||"default"==n?Zt(this.Nu).getConsentPolicy():n},u.qu=function(){var t,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(",")},u.getPlaceholder=function(){return wi(this,(function(t){return t.hasAttribute("placeholder")&&!du(t)}))},u.togglePlaceholder=function(t){if(mu(this),t){var i=this.getPlaceholder();i&&i.classList.remove("amp-hidden")}else for(var n=(this,e=void 0,void 0,di("placeholder"),e=this,s="> [".concat("placeholder","]"),fi(e)?e.querySelectorAll(li(s,":scope")):mi(e,s)),r=0;r0||this.no.get(Oe);return!(this.Su==Qr||this.hasAttribute("noloading")||r&&!t||(this,n=this.tagName.toUpperCase(),"AMP-AD"!==(i=n)&&"AMP-ANIM"!==i&&"AMP-EMBED"!==i&&"AMP-FACEBOOK"!==i&&"AMP-FACEBOOK-COMMENTS"!==i&&"AMP-FACEBOOK-PAGE"!==i&&"AMP-GOOGLE-DOCUMENT-EMBED"!==i&&"AMP-IFRAME"!==i&&"AMP-IMG"!==i&&"AMP-INSTAGRAM"!==i&&"AMP-LIST"!==i&&"AMP-PINTEREST"!==i&&"AMP-PLAYBUZZ"!==i&&"AMP-RENDER"!==i&&"AMP-TIKTOK"!==i&&"AMP-TWITTER"!==i&&!function(t){return"AMP-VIDEO"!=t&&oe.test(t)}(n))||xi(this))},u.toggleLoading=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ownerDocument&&this.ownerDocument.defaultView){var n=nr(this.getAmpDoc());n&&((t=t&&this.sh(i))?n.track(this):n.untrack(this))}},u.getOverflowElement=function(){return void 0===this._u&&(this._u=Ai(this,"overflow"),this._u&&(this._u.hasAttribute("tabindex")||this._u.setAttribute("tabindex","0"),this._u.hasAttribute("role")||this._u.setAttribute("role","button"))),this._u},u.overflowCallback=function(t,i,n){var r=this;this.getOverflowElement(),this._u?(this._u.classList.toggle("amp-visible",t),this._u.onclick=t?function(){var t=rr(r.getAmpDoc());t.forceChangeSize(r,i,n),t.mutateElement(r,(function(){r.overflowCallback(!1,i,n)}))}:null):t&&this.warnOnMissingOverflow&&Jt().warn("CustomElement","Cannot resize element and overflow is not available",this)},u.th=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.Vo?rr(this.getAmpDoc()).mutateElement(i||this,t,n):t()},i(s,[{key:"readyState",get:function(){return this.Mu}}]),s}(t.HTMLElement);return t.__AMP_BASE_CE_CLASS=r,t.__AMP_BASE_CE_CLASS}(t,n),e=function(t){U(n,t);var i=H(n);function n(){return i.apply(this,arguments)}return n.prototype.adoptedCallback=function(){Object.getPrototypeOf(this)!==s&&Object.setPrototypeOf(this,s)},n}(r),s=e.prototype;return e}function du(t){return"placeholder"in t}function mu(t){Zt(!t.zu)}function pu(t){lu.add(t||"*");for(var i,n=o(fu,!0);!(i=n()).done;){var r=i.value;null!=t&&r.tagName.toLowerCase()!==t||r.markUnresolved()}}var gu=new WeakMap;function bu(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function yu(t,i,n){var r=bu(t);if(r[i]){if(r[i]!=n){ti(r[i]==ou,"%s is already registered. The script tag for %s is likely included twice in the page.",i,i),r[i]=n;for(var e=0;e img:not([placeholder])")),this.uh=this.uh||new Image,this.uh.setAttribute("decoding","async"),this.element.id&&this.uh.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(Iu,"Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying element.")),this.dh(!0),me(Mu,this.element,this.uh),this.propagateDataset(this.uh),Xr(this.uh),de(this.uh,!0),t=this.element,i=this.uh,t.hasAttribute("object-fit")&&Rr(i,"object-fit",t.getAttribute("object-fit")),t.hasAttribute("object-position")&&Rr(i,"object-position",t.getAttribute("object-position")),n||this.element.appendChild(this.uh),this.uh},r.dh=function(t){var i=this;if(this.uh&&!this.element.hasAttribute("i-amphtml-ssr")&&!this.element.hasAttribute("sizes")&&!this.uh.hasAttribute("sizes")){var n=this.element.getAttribute("srcset");if(n&&!/[0-9]+x(?:,|$)/.test(n)){var r=this.element.getLayoutSize().width;if(this.mh(r)){var e=this.getViewport().getWidth(),s="(max-width: ".concat(e,"px) ").concat(r,"px, "),u=r+"px";if(this.getLayout()!==Zr){var o=Math.round(100*r/e);u=Math.max(o,100)+"vw"}var h=s+u;t?this.uh.setAttribute("sizes",h):this.mutateElement((function(){i.uh.setAttribute("sizes",h)})),this.fh=r}}}},r.mh=function(t){return!this.uh.hasAttribute("sizes")||t>this.fh},r.reconstructWhenReparented=function(){return!1},r.mountCallback=function(){var t=this,i=!!this.uh,n=this.lh();i||(Ye(n,"load",(function(){t.setReadyState(on),t.firstLayoutCompleted(),t.ph()})),Ye(n,"error",(function(i){t.setReadyState(hn,i),t.bh()}))),n.complete?(this.setReadyState(on),this.firstLayoutCompleted(),this.ph()):this.setReadyState(un)},r.unmountCallback=function(){var t=this.uh;t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ti(t),this.uh=null)},r.ensureLoaded=function(){this.uh.loading="eager"},r.layoutCallback=function(){var t=this;this.lh();var i=this.uh;return this.hh=Ye(i,"load",(function(){return t.ph()})),this.ah=Ye(i,"error",(function(){return t.bh()})),this.element.getLayoutSize().width<=0?h():this.loadPromise(i)},r.unlayoutCallback=function(){if(!n.R1()){this.ah&&(this.ah(),this.ah=null),this.hh&&(this.hh(),this.hh=null);var t=this.uh;return t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ti(t),this.uh=null),!0}},r.firstLayoutCompleted=function(){var t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?Sr(t,{"opacity":0}):this.togglePlaceholder(!1)},r.ph=function(){!this.oh&&this.uh.classList.contains("i-amphtml-ghost")&&(this.uh.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))},r.bh=function(){this.oh&&(this.uh.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this.oh=!1)},r.propagateDataset=function(t){for(var i in t.dataset)i in this.element.dataset||delete t.dataset[i];for(var n in this.element.dataset)n.startsWith("ampBind")&&"ampBind"!==n||t.dataset[n]!==this.element.dataset[n]&&(t.dataset[n]=this.element.dataset[n])},n}(eu),Su=function(t){U(n,t);var i=H(n);function n(){return i.apply(this,arguments)}n.prerenderAllowed=function(){return!0};var r=n.prototype;return r.isLayoutSupported=function(t){return t==ne||ce(t)},r.buildCallback=function(){!function(t){if(!Ui(t)){var i=function(t){var i;return he(null!==(i=t.getAttribute("layout"))&&void 0!==i?i:"")||je(t).layout}(t);if(i!=ne){var n=t.ownerDocument.createElement("div");de(n),function(t){return function(t,i){for(var n=[],r=t.firstChild;r;r=r.nextSibling)!xi(r)&&n.push(r);return n}(t)}(t).forEach((function(t){n.appendChild(t)})),t.appendChild(n)}}}(this.element)},n}(eu);function Ru(t){var i;return null===(i=t.featurePolicy)||void 0===i?void 0:i.allowedFeatures().includes("attribution-reporting")}function _u(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,e=zr.getImage(t),s=new e;return n&&(s.referrerPolicy="no-referrer"),s.src=i,Ru(t.document)&&(s.attributionsrc=r),s}var ku="amp-pixel",Cu=function(t){U(n,t);var i=H(n);function n(t){var n;return(n=i.call(this,t)).gh=null,n}var r=n.prototype;return r.isLayoutSupported=function(t){return!0},r.buildCallback=function(){this.element.setAttribute("aria-hidden","true"),this.yh=this.element.getAttribute("referrerpolicy"),this.yh&&ti("no-referrer"==this.yh,"".concat(ku,': invalid "referrerpolicy" value "').concat(this.yh,'".')+' Only "no-referrer" is supported'),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")?Qt().info(ku,"inabox img already present"):this.getAmpDoc().whenFirstVisible().then(this.wh.bind(this))},r.wh=function(){var t=this;if(this.gh)return Qt().error(ku,"duplicate pixel"),this.gh;this.gh=ar(this.win).promise(1).then((function(){var i=t.element.getAttribute("src");if(i)return cr(t.element).expandUrlAsync(t.Ah(i)).then((function(i){if(t.win){var n=function(t,i,n,r){return n&&"no-referrer"!==n&&Jt().error("pixel","Unsupported referrerPolicy: %s",n),"no-referrer"===n?function(t,i,n){if("referrerPolicy"in Image.prototype)return _u(t,i,!0,n);var r,e=(r={"src":"about:blank","style":"display:none"},function(t,i){for(var n in i)t.setAttribute(n,i[n]);return t}(t.document.createElement("iframe"),r));return e.onload=function(){_u(e.contentWindow,i)},t.document.body.appendChild(e),e}(t,i,r):_u(t,i,!1,r)}(t.win,i,t.yh,t.element.getAttribute("attributionsrc"));return Qt().info(ku,"pixel triggered: ",i),n}}))}))},r.Ah=function(t){return ti(/^(https\:\/\/|\/\/)/i.test(t),'The src attribute must start with "https://" or "//". Invalid value: '+t),t},n}(eu),Nu=function(){function t(t,i,n){var r=this;this.xh=ar(t),this.Eh=i,this.Oh=n||0,this.Ph=-1,this.Th=0,this.kn=!1,this.Ih=function(){r.Mh()}}var i=t.prototype;return i.isPending=function(){return-1!=this.Ph},i.schedule=function(t){var i=t||this.Oh;this.kn&&i<10&&(i=10);var n=Date.now()+i;return(!this.isPending()||n-this.Th<-10)&&(this.cancel(),this.Th=n,this.Ph=this.xh.delay(this.Ih,i),!0)},i.Mh=function(){this.Ph=-1,this.Th=0,this.kn=!0,this.Eh(),this.kn=!1},i.cancel=function(){this.isPending()&&(this.xh.cancel(this.Ph),this.Ph=-1)},t}();function Du(t,i){var n=i.documentElement;return t.some((function(t){return n.hasAttribute(t)}))}function ju(t){return Du(["⚡4email","amp4email"],t)}function Uu(t){return Du(["⚡","amp"],t)}var Lu="Action",zu="__AMP_ACTION_MAP__"+Math.random(),Hu="__AMP_ACTION_QUEUE__",Gu="__AMP_ACTION_HANDLER__",Vu={"form":["submit","clear"]},Fu=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],qu={"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},Bu=function(){function t(t,i,n,r,e,s,u){var o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"?",h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,a=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Math.random();this.node=t,this.method=i,this.args=n,this.source=r,this.caller=e,this.event=s,this.trust=u,this.actionEventType=o,this.tagOrTarget=h||t.tagName,this.sequenceId=a}return t.prototype.satisfiesTrust=function(t){if(!J(this.trust))return Qt().error(Lu,"Invalid trust for '".concat(this.method,"': ").concat(this.trust)),!1;if(this.trust2&&void 0!==arguments[2]?arguments[2]:2;this.Nh[t]={handler:i,minTrust:n}},i.trigger=function(t,i,n,r,e){return this.Dh(t,i,n,r,e)},i.execute=function(t,i,n,r,e,s,u){var o=new Bu(t,i,n,r,e,s,u);this.jh(o)},i.installActionHandler=function(t,i){if(Zt(Wu(t.getAttribute("id")||"")||t.tagName.toLowerCase()in Vu),t[Gu])Qt().error(Lu,"Action handler already installed for ".concat(t));else{t[Gu]=i;var n=t[Hu];V(n)&&ar(oi(t)).delay((function(){n.forEach((function(t){try{i(t)}catch(i){Qt().error(Lu,"Action execution failed:",t,i)}})),t[Hu].length=0}),1)}},i.hasAction=function(t,i,n){return!!this.zh(t,i,n)},i.hasResolvableAction=function(t,i,n){var r=this,e=this.zh(t,i,n);return!!e&&e.actionInfos.some((function(t){var i=t.target;return!!r.Uh(i)}))},i.hasResolvableActionForTarget=function(t,i,n,r){var e=this,s=this.zh(t,i,r);return!!s&&s.actionInfos.some((function(t){var i=t.target;return e.Uh(i)==n}))},i.Uh=function(t){return this.Rh[t]?this.Sh:this.Sh.getElementById(t)},i.setAllowlist=function(t){Zt(t.every((function(t){return t.tagOrTarget&&t.method}))),this._h=t},i.addToAllowlist=function(t,i,n){var r=this;n&&n.includes("email")!==this.kh||(this._h||(this._h=[]),V(i)||(i=[i]),i.forEach((function(i){r._h.some((function(n){return n.tagOrTarget==t&&n.method==i}))||r._h.push({tagOrTarget:t,method:i})})))},i.Dh=function(t,i,n,r,e){var s=this,u=this.zh(t,i);if(!u)return!1;var h=Math.random(),a=null;return u.actionInfos.forEach((function(c){var f=c.args,l=c.method,v=c.str,d=c.target,m=function(t,i,n){if(!t)return t;var r=n||{};if(i){var e=function(t){return t.detail}(i);e&&(r.event=e)}var s=A();return Object.keys(t).forEach((function(i){var n=t[i];if("object"==p(n)&&n.expression){var e=n.expression,u=function(t,i){if("."==i)return t;for(var n,r=t,e=o(i.split("."),!0);!(n=e()).done;){var s=n.value;if(!(s&&r&&void 0!==r[s]&&"object"==p(r)&&x(r,s))){r=void 0;break}r=r[s]}return r}(r,e);n=void 0===u?null:u}r[n]?s[i]=r[n]:s[i]=n})),s}(f,n,e),g=function(){var e=s.Uh(d);if(e){var o=new Bu(e,l,m,t,u.node,n,r,i,e.tagName||d,h);return s.jh(o)}s.Lh('Target "'.concat(d,'" not found for action [').concat(v,"]."))};a=a?a.then(g):g()})),u.actionInfos.length>=1},i.Lh=function(t,i){if(i){var n=Jt().createError("[".concat(Lu,"] ").concat(t));throw Ds(n,i),n}Jt().error(Lu,t)},i.jh=function(t){var i=t.method,n=t.tagOrTarget;if(this._h&&!function(t,i){var n=t.method,r=t.node,e=t.tagOrTarget;n===ru&&"function"==typeof r.getDefaultActionAlias&&(n=r.getDefaultActionAlias());var s=n.toLowerCase(),u=e.toLowerCase();return i.some((function(t){return(t.tagOrTarget.toLowerCase()===u||"*"===t.tagOrTarget)&&t.method.toLowerCase()===s}))}(t,this._h))return this.Lh('"'.concat(n,".").concat(i,'" is not allowlisted ').concat(JSON.stringify(this._h),".")),null;var r=this.Rh[n];if(r)return r(t);var e=t.node,s=this.Nh[i];if(s&&t.satisfiesTrust(s.minTrust))return s.handler(t);var u=e.tagName.toLowerCase();if(Wu(u))return e.enqueAction?e.enqueAction(t):this.Lh('Unrecognized AMP element "'.concat(u,'".'),e),null;var o=Vu[u];if(Wu(e.getAttribute("id")||"")||o&&o.indexOf(i)>-1){var h=e[Gu];return h?h(t):(e[Hu]=e[Hu]||[],e[Hu].push(t)),null}return this.Lh("Target (".concat(n,") doesn't support \"").concat(i,'" action.'),t.caller),null},i.zh=function(t,i,n){for(var r,e=t;e;){if(n&&e==n)return null;var s=this.Hh(e,i);if(s&&!(r=e).disabled&&!gi(r,":disabled"))return{node:e,actionInfos:Zt(s)};e=e.parentElement}return null},i.Hh=function(t,i){var n=this.Gh(t,i);return n&&n[i]||null},i.Gh=function(t,i){var n=t[zu];if(void 0===n)if(n=null,t.hasAttribute("on"))n=Ju(t.getAttribute("on"),t),t[zu]=n;else if(t.hasAttribute("execute")){var r=t.getAttribute("execute");n=Ju("".concat(i,":").concat(r),t),t[zu]=n}return n},i.setActions=function(t,i){t.setAttribute("on",i),delete t[zu]},i.Ch=function(t){var i=A(),n=t.target;if(void 0!==n.value&&(i.value=n.value),"INPUT"==n.tagName&&(i.valueAsNumber=Number(n.value)),void 0!==n.checked&&(i.checked=n.checked),void 0===n.min&&void 0===n.max||(i.min=n.min,i.max=n.max),n.files&&(i.files=G(n.files).map((function(t){return{"name":t.name,"size":t.size,"type":t.type}}))),Object.keys(i).length>0)try{t.detail=i}catch(t){}},t}();function Wu(t){return"amp-"===t.substring(0,4)}var Yu=function(t){this.detail=null,function(t,i){var n=i||A();for(var r in t){var e=t[r];n[r]="function"==typeof e?Ku:t[r]}}(t,this)};function Ku(){Zt(null)}function Ju(t,i){var n,r,e=Qu.bind(null,t,i),s=Zu.bind(null,t,i),u=null,o=new no(t);do{if((n=o.next()).type==to.EOF||n.type==to.SEPARATOR&&";"==n.value);else if(n.type==to.LITERAL||n.type==to.ID){var h=n.value;s(o.next(),[to.SEPARATOR],":");var a=[];do{var c=s(o.next(),[to.LITERAL,to.ID]).value,f=ru,l=null;(r=o.peek()).type==to.SEPARATOR&&"."==r.value&&(o.next(),f=s(o.next(),[to.LITERAL,to.ID]).value||f,(r=o.peek()).type==to.SEPARATOR&&"("==r.value&&(o.next(),l=Xu(o,s,e))),a.push({event:h,target:c,method:f,args:l,str:t}),r=o.peek()}while(r.type==to.SEPARATOR&&","==r.value&&o.next());u||(u=A()),u[h]=a}else e(!1,"; unexpected token [".concat(n.value||"","]"))}while(n.type!=to.EOF);return u}function Xu(t,i,n){var r,e,s=t.peek(),u=null;if(s.type==to.OBJECT){u=A();var o=t.next().value;u.__AMP_OBJECT_STRING__=o,i(t.next(),[to.SEPARATOR],")")}else do{var h=r=t.next(),a=h.type,c=h.value;if(a!=to.SEPARATOR||","!=c&&")"!=c)if(a==to.LITERAL||a==to.ID){i(t.next(),[to.SEPARATOR],"=");var f=[r=i(t.next(!0),[to.LITERAL,to.ID])];if(r.type==to.ID)for(s=t.peek();s.type==to.SEPARATOR&&"."==s.value;s=t.peek())t.next(),r=i(t.next(!1),[to.ID]),f.push(r);var l=0==(e=f).length?null:1==e.length?e[0].value:{expression:e.map((function(t){return t.value})).join(".")};u||(u=A()),u[c]=l,n((s=t.peek()).type==to.SEPARATOR&&(","==s.value||")"==s.value),"Expected either [,] or [)]")}else n(!1,"; unexpected token [".concat(r.value||"","]"))}while(r.type!=to.SEPARATOR||")"!=r.value);return u}function Qu(t,i,n,r){return ti(n,"Invalid action definition in %s: [%s] %s",i,t,r||"")}function Zu(t,i,n,r,e){return void 0!==e?Qu(t,i,r.includes(n.type)&&n.value==e,"; expected [".concat(e,"]")):Qu(t,i,r.includes(n.type)),n}var to={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},io=" \t\n\r\f\v \u2028\u2029",no=function(){function t(t){this.Vh=t,this.Fh=-1}var i=t.prototype;return i.next=function(t){var i=this.ls(t||!1);return this.Fh=i.index,i},i.peek=function(t){return this.ls(t||!1)},i.ls=function(t){var i=this.Fh+1;if(i>=this.Vh.length)return{type:to.EOF,index:this.Fh};var n=this.Vh.charAt(i);if(-1!=io.indexOf(n)){for(i++;i=this.Vh.length)return{type:to.EOF,index:i};n=this.Vh.charAt(i)}if(t&&(ro(n)||"."==n&&i+1="0"&&t<="9"}function eo(t){return!!t&&"function"==typeof t.getFormData}var so=["GET","POST"],uo=[V,w];function oo(t,i){var n=D({},i);if(eo(i.body)){var r=i.body;n.headers["Content-Type"]="multipart/form-data;charset=utf-8",n.body=function(t){for(var i=[],n=t.next();!n.done;n=t.next())i.push(n.value);return i}(r.entries())}return{input:t,init:n}}function ho(t,i,n,r){if(!i)return h();var e=r.prerenderSafe?h():i.whenFirstVisible(),s=vr(i),u=xs(n),o=s.hasCapability("xhrInterceptor"),a=r.bypassInterceptorForDev&&!1;return u||!o||a?e:i.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?e.then((function(){return s.isTrustedViewer()})).then((function(i){if(i||Ge(t,"untrusted-xhr-interception")){var e={"originalRequest":oo(n,r)};return s.sendMessageAwaitResponse("xhr",e).then((function(t){return function(t,i){if(ht(w(t),"Object expected: %s",t),"document"!=i)return new Response(t.body,t.init);var n=A(),r={status:200,statusText:"OK",getResponseHeader:function(t){return n[String(t).toLowerCase()]||null}};if(t.init){var e=t.init;V(e.headers)&&e.headers.forEach((function(t){var i=t[0],r=t[1];n[String(i).toLowerCase()]=String(r)})),e.status&&(r.status=parseInt(e.status,10)),e.statusText&&(r.statusText=String(e.statusText))}return new Response(t.body?String(t.body):"",r)}(t,r.responseType)}))}})):e}function ao(t,i,n){return et("string"==typeof i),!1!==n.ampCors&&(i=Ss(t,i)),i}function co(t,i){var n,r=t||{},e=r.credentials;return et(void 0===e||"include"==e||"omit"==e),r.method=void 0===(n=r.method)?"GET":(n=n.toUpperCase(),et(so.includes(n)),n),r.headers=r.headers||{},i&&(r.headers.Accept=i),et(null!==r.body),r}function fo(t,i,n){n=n||{};var r=function(t){return t.origin||vs(t.location.href).origin}(t);return r==vs(i).origin&&(n.headers=n.headers||{},n.headers["AMP-Same-Origin"]="true"),n}function lo(t){return new Promise((function(i){if(t.ok)return i(t);var n=t.status,r=Jt().createError("HTTP error ".concat(n));throw r.retriable=function(t){return 415==t||t>=500&&t<600}(n),r.response=t,r}))}var vo=function(){function t(t){this.win=t;var i=Yn(t);this.Bh=i.isSingleDoc()?i.getSingleDoc():null}var i=t.prototype;return i.qh=function(t,i){var n=arguments,r=this;return ho(this.win,this.Bh,t,i).then((function(t){if(t)return t;if(eo(i.body)){var e=i.body;i.body=e.getFormData()}return r.win.fetch.apply(null,n)}))},i.Wh=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=ao(this.win,t,i),i=fo(this.win,t,i),this.qh(t,i).then((function(t){return t}),(function(i){var n=vs(t).origin;throw Jt().createExpectedError("XHR","Failed fetching (".concat(n,"/...):"),i&&i.message)}))},i.fetchJson=function(t,i){return this.fetch(t,function(t){var i=co(t,"application/json");if("POST"==i.method&&!eo(i.body)){et(uo.some((function(t){return t(i.body)}))),i.headers["Content-Type"]=i.headers["Content-Type"]||"text/plain;charset=utf-8";var n=i.headers["Content-Type"];i.body="application/x-www-form-urlencoded"===n?bs(i.body):JSON.stringify(i.body)}return i}(i))},i.fetchText=function(t,i){return this.fetch(t,co(i,"text/plain"))},i.xssiJson=function(t,i){return i?t.text().then((function(t){return t.startsWith(i)?at(t.slice(i.length)):(Jt().warn("XHR",'Failed to strip missing prefix "'.concat(i,'" in fetch response.')),at(t))})):t.json()},i.fetch=function(t,i){var n=co(i);return this.Wh(t,n).then((function(t){return lo(t)}))},i.sendSignal=function(t,i){return this.Wh(t,i).then((function(t){return lo(t)}))},i.getCorsUrl=function(t,i){return Ss(t,i)},t}(),mo=function(t){U(n,t);var i=H(n);function n(t){var n;return(n=i.call(this,t)).$h=A(),n}var r=n.prototype;return r.fetch=function(i,n){var r=this,e=n&&n.headers&&n.headers.Accept||"",s=!n||!n.method||"GET"===n.method,u=this.Kh(i,e),o=!!this.$h[u];if(s&&o)return this.$h[u].then((function(t){return t.clone()}));var h=t.prototype.fetch.call(this,i,n);return s&&(this.$h[u]=h.then((function(t){return delete r.$h[u],t.clone()}),(function(t){throw delete r.$h[u],t}))),h},r.Kh=function(t,i){return As(Ts(t,Ms(this.win.location)))+i},n}(vo),po={"+":"-","/":"_","=":"."};function go(t){var i=function(t){for(var i=new Array(t.length),n=0;n1&&void 0!==arguments[1])||arguments[1],r={"publisherOrigin":Ms(this.Vo.win.location)},e="fetchCidTimeout";return this.xh.timeoutPromise(3e4,pr(this.Vo.win).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:r}),e).then((function(t){return t.json().then((function(t){if(t.optOut)return null;var r=t.publisherClientId;if(!r&&n&&t.alternateUrl){var e="".concat(t.alternateUrl,"?key=").concat(bo);return i.Xh(e,!1)}return r}))})).catch((function(t){return t&&t.response?t.response.json().then((function(t){Qt().error(yo,JSON.stringify(t))})):t&&t.message==e?Qt().expectedError(yo,t):Qt().error(yo,t),null}))},i.Qh=function(t,i){var n=t+";"+i;return Qn(this.Vo.win).sha384Base64(n).then((function(t){return"amp-"+t}))},t}(),Ao="-test-amp-cookie-tmp";function xo(t,i){var n=function(t){try{return t.document.cookie}catch(t){return""}}(t);if(!n)return null;for(var r=n.split(";"),e=0;e4&&void 0!==arguments[4]?arguments[4]:{};Io(t,e,i);var s=void 0;e.domain?s=e.domain:e.highestAvailableDomain&&(s=Po(t)),Oo(t,i,n,r,s,e.sameSite,e.secure)}function Po(t){var i=t.document.head&&t.document.head.querySelector("meta[name='amp-cookie-scope']");if(i){var n=i.getAttribute("content")||"",r=Ms(t.location.href);return W(r,"."+n)?n:r.split("://")[1]}if(!xs(t.location.href))for(var e=t.location.hostname.split("."),s=e[e.length-1],u=function(t){for(var i=Ao;xo(t,i);)i=Ao+0;return i}(t),o=e.length-2;o>=0;o--)if(s=e[o]+"."+s,Oo(t,u,"delete",Date.now()+1e3,s),"delete"==xo(t,u))return Oo(t,u,"delete",Date.now()-1e3,s),s;return null}function Oo(t,i,n,r,e,s,u){"ampproject.org"==e&&(n="delete",r=0);var o=encodeURIComponent(i)+"="+encodeURIComponent(n)+"; path=/"+(e?"; domain="+e:"")+"; expires="+new Date(r).toUTCString()+function(t,i){return i?"; SameSite=".concat(i):""}(0,s)+(u?"; Secure":"");try{t.document.cookie=o}catch(t){}}function Io(t,i,n){if(i.allowOnProxyOrigin)ti(!i.highestAvailableDomain,"Could not support highestAvailable Domain on proxy origin, specify domain explicitly");else{ti(!xs(t.location.href),"Should never attempt to set cookie on proxy origin: ".concat(n));var r=vs(t.location.href).hostname.toLowerCase(),e=vs(Mt).hostname.toLowerCase();ti(!(r==e||W(r,"."+e)),"Should never attempt to set cookie on proxy origin. (in depth check): "+n)}}var Mo="GoogleCidApi",To="AMP_TOKEN",So="$RETRIEVING",Ro="$OPT_OUT",_o="$NOT_FOUND",ko=3e4,Co=31536e6,No=function(){function t(t){this.t=t.win,this.xh=ar(this.t),this.Zh={};var i=Zn(t).canonicalUrl;this.ta=i?vs(i).origin:null}var i=t.prototype;return i.getScopedCid=function(t,i){var n,r=this;return this.Zh[i]?this.Zh[i]:this.Zh[i]=this.xh.poll(200,(function(){return(n=xo(r.t,To))!==So})).then((function(){if(n===Ro)return Ro;if((n!==_o||!r.ia())&&r.na(n))return null;n&&!r.na(n)||r.ra(So,ko);var e="https://web.archive.org/web/20230401161550/https://ampcid.google.com/v1/publisher:getClientId?key="+t;return r.Xh(e,i,n).then((function(e){var s=r.R(e);if(!s&&e.alternateUrl){var u="".concat(e.alternateUrl,"?key=").concat(t);return r.Xh(u,i,n).then(r.R.bind(r))}return s})).catch((function(t){return r.ra("$ERROR",ko),t&&t.response?t.response.json().then((function(t){Qt().error(Mo,JSON.stringify(t))})):Qt().error(Mo,t),null}))}))},i.Xh=function(t,i,n){var r={"originScope":i,"canonicalOrigin":this.ta};return n&&(r.securityToken=n),this.xh.timeoutPromise(ko,pr(this.t).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:r}).then((function(t){return t.json()})))},i.R=function(t){return t.optOut?(this.ra(Ro,Co),Ro):t.clientId?(this.ra(t.securityToken,Co),t.clientId):(t.alternateUrl||this.ra(_o,36e5),null)},i.ra=function(t,i){t&&Eo(this.t,To,t,this.ea(i),{highestAvailableDomain:!0})},i.ea=function(t){return this.t.Date.now()+t},i.ia=function(){return xs(zr.getDocumentReferrer(this.t))},i.na=function(t){return t&&"$"===t[0]},t}(),Do=function(){function t(t){this.Vo=t,this.Yh=vr(this.Vo);var i=Zn(this.Vo).canonicalUrl;this.ta=i?vs(i).origin:null}var i=t.prototype;return i.isSupported=function(){return this.Yh.hasCapability("cid")?this.Yh.isTrustedViewer():Promise.resolve(!1)},i.getScopedCid=function(t,i){var n={"scope":i,"clientIdApi":!!t,"canonicalOrigin":this.ta};return t&&(n.apiKey=t),this.Yh.sendMessageAwaitResponse("cid",n)},t}(),jo=31536e6,Uo=/^[a-zA-Z0-9-_.]+$/,Lo="amp-cid-optout",zo="amp-google-client-id-api",Ho={"googleanalytics":"AMP_ECID_GOOGLE"},Go={"googleanalytics":"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"},Vo=function(){function t(t){this.ampdoc=t,this.sa=null,this.oa=Object.create(null),this.ua=new wo(t),this.ha=new Do(t),this.aa=new No(t),this.ca=null}var i=t.prototype;return i.get=function(t,i,n){var r=this;return ti(Uo.test(t.scope)&&Uo.test(t.cookieName),"The CID scope and cookie name must only use the characters [a-zA-Z0-9-_.]+\nInstead found: %s",t.scope),i.then((function(){return r.ampdoc.whenFirstVisible()})).then((function(){return t=r.ampdoc,hr(t).then((function(t){return t.get(Lo).then((function(t){return!!t}))})).catch((function(){return!1}));var t})).then((function(e){if(e)return"";var s=r.fa(t,n||i);return ar(r.ampdoc.win).timeoutPromise(1e4,s,'Getting cid for "'.concat(t.scope,'" timed out')).catch((function(t){d(t)}))}))},i.optOut=function(){return t=this.ampdoc,vr(t).sendMessage("cidOptOut",{}),hr(t).then((function(t){return t.set(Lo,!0)}));var t},i.fa=function(t,i){var n=this,r=t.scope,e=vs(this.ampdoc.win.location.href);if(!xs(e)){var s=this.la(r);return s?this.aa.getScopedCid(s,r).then((function(e){if(e==Ro)return null;if(e){var s=t.cookieName||r;return Fo(n.ampdoc.win,s,e),e}return $o(n,t,i)})):$o(this,t,i)}return this.ha.isSupported().then((function(t){if(t){var s=n.la(r);return n.ha.getScopedCid(s,r)}return n.ua.isSupported()&&n.la(r)?n.ua.getScopedCid(r).then((function(t){return t||n.va(i,r,e)})):n.va(i,r,e)}))},i.va=function(t,i,n){var r=this;return function(t,i){if(t.sa)return t.sa;var n=t.ampdoc.win;return t.sa=function(t){var i,n=t.win;try{i=n.localStorage.getItem("amp-cid")}catch(t){}var r=Promise.resolve(i);return!i&&Ni(n)&&(r=Wo(t)),r.then((function(t){if(!t)return null;var i=at(t);return{time:i.time,cid:i.cid}}))}(t.ampdoc).then((function(r){var e,s,u,o=!1;return!r||(s=r.time,u=Date.now(),s+jo0){var n=i.split("="),r=n[0].trim();t[r]=n[1].trim()}else{var e=i,s=Ho[e];s?t[s]=Go[e]:Jt().warn("CID","Unsupported client for Google CID API: ".concat(e,".")+'Please remove or correct meta[name="'.concat(zo,'"]'))}})),t},t}();function Fo(t,i,n){Eo(t,i,n,Date.now()+jo,{highestAvailableDomain:!0})}function qo(t,i,n){hr(t).then((function(t){if(!t.isViewerStorage()){var r=Bo(i);t.setNonBoolean(r,n)}}))}function Bo(t){return"amp-cid:"+t}function $o(t,i,n){var r=t.ampdoc,e=r.win,s=i.disableBackup,u=i.scope,o=i.cookieName||u;return function(t,i){var n=t.ampdoc,r=n.win,e=i.disableBackup,s=i.scope,u=i.cookieName||s,o=xo(r,u);return o?Promise.resolve(o):e?Promise.resolve(null):hr(n).then((function(t){var i=Bo(u);return t.get(i,jo)})).then((function(t){return t&&"string"==typeof t?t:null}))}(t,i).then((function(h){if(!h&&!i.createCookieIfNotPresent)return Promise.resolve(null);if(h)return/^amp-/.test(h)&&(Fo(e,o,h),s||qo(r,o,h)),Promise.resolve(h);if(t.oa[u])return t.oa[u];var a=Jo(e).then((function(t){return"amp-"+t}));return Promise.all([a,n]).then((function(t){var i=t[0];xo(e,o)||(Fo(e,o,i),s||qo(r,o,i))})),t.oa[u]=a}))}function Wo(t,i){var n=vr(t);return n.isTrustedViewer().then((function(t){if(t)return Qt().expectedError("CID","Viewer does not provide cap=cid"),n.sendMessageAwaitResponse("cid",i).then((function(t){return t&&!function(t,i){try{return at(t)}catch(t){return null}}(t)?(Qt().expectedError("CID","invalid cid format"),JSON.stringify({"time":Date.now(),"cid":t})):t}))}))}function Yo(t){return JSON.stringify({"time":Date.now(),"cid":t})}function Ko(t){return lt(t,16)||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}function Jo(t){var i=Ko(t);if("string"==typeof i)return Qn(t).sha384Base64(i);var n=i;return c((function(){return go(n).replace(/\.+$/,"")}))}var Xo="Crypto",Qo=function(){function t(t){this.t=t;var i=null,n=!1;t.crypto&&(t.crypto.subtle?i=t.crypto.subtle:t.crypto.webkitSubtle&&(i=t.crypto.webkitSubtle,n=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=i,this.ma=n,this.pa=null}var i=t.prototype;return i.sha384=function(t){var i=this;if("string"==typeof t&&(t=ft(t)),!this.subtle||this.pa)return(this.pa||this.ba()).then((function(i){return i(t)}));try{return this.subtle.digest({name:"SHA-384"},t).then((function(t){return new Uint8Array(t)}),(function(n){return n.message&&n.message.indexOf("secure origin")<0&&Jt().error(Xo,"SubtleCrypto failed, fallback to closure lib.",n),i.ba().then((function(){return i.sha384(t)}))}))}catch(n){return Qt().error(Xo,"SubtleCrypto failed, fallback to closure lib.",n),this.ba().then((function(){return i.sha384(t)}))}},i.sha384Base64=function(t){return this.sha384(t).then((function(t){return go(t)}))},i.uniform=function(t){return this.sha384(t).then((function(t){for(var i=0,n=2;n>=0;n--)i=(i+t[n])/256;return i}))},i.ba=function(){var t=this;return this.pa?this.pa:this.pa=tr(this.t).preloadExtension("amp-crypto-polyfill").then((function(){return En(t.t,"crypto-polyfill")}))},i.isPkcsAvailable=function(){return Boolean(this.subtle)&&!1!==this.t.isSecureContext},i.importPkcsKey=function(t){Zt(this.isPkcsAvailable());var i=this.ma?ct(JSON.stringify(t)):t;return this.subtle.importKey("jwk",i,this.pkcsAlgo,!0,["verify"])},i.verifyPkcs=function(t,i,n){return Zt(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,i,n)},t}(),Zo=["prefetch","preload","preconnect","dns-prefetch"],th=function(){function t(t){this.Vo=t,this.ga=null,this.ya=null}return t.prototype.get=function(){if(this.ga)return this.ga;var t=this.Vo,i=Is(t.getUrl()),n=t.getRootNode(),r=n&&n.AMP&&n.AMP.canonicalUrl;if(!r){var e=n.querySelector("link[rel=canonical]");r=e?vs(e.href).href:i}var s,u=function(t){return String(Math.floor(1e4*t.Math.random()))}(t.win),o=function(t){var i=A();if(t.head)for(var n=t.head.querySelectorAll("link[rel]"),r=function(t){var r=n[t],e=r.href,s=r.getAttribute("rel");if(!s||!e)return"continue";s.split(/\s+/).forEach((function(t){if(-1==Zo.indexOf(t)){var n=i[t];n?(V(n)||(n=i[t]=[n]),n.push(e)):i[t]=e}}))},e=0;e=this.Oa.length-1)){for(var n=[],r=this.Oa.length-1;r>this.Ea;r--)this.Oa[r]&&(n.push(this.Oa[r]),this.Oa[r]=void 0);if(this.Oa.splice(this.Ea+1),n.length>0)for(var e=function(r){i.xh.delay((function(){return n[r](t)}),1)},s=0;s0&&void 0!==arguments[0]?arguments[0]:{};return this.Fa((function(){var n=t.Ba(t.Va(),i||{}),r=(n.url||"").replace(/#.*/,""),e=n.fragment?"#"+n.fragment:"";return t.La(n,n.title,r||e?r+e:void 0),c((function(){return t.Ba(n,{stackIndex:t.Ea})}))}))},i.get=function(){var t=this;return c((function(){return t.Ba(t.Va(),{stackIndex:t.Ea})}))},i.backTo=function(t){var i=this;return t=Math.max(t,this.Sa),this.Fa((function(){return i.qa(i.Ea-t)}))},i.Ga=function(){var t=this.Va();Qt().fine(eh,"history event: "+this.win.history.length+", "+JSON.stringify(t));var i=t?t[sh]:void 0,n=this.Ea,r=this.ka;this.ka=void 0,n>this.win.history.length-2&&(n=this.win.history.length-2,this.Wa(this.Ba(t,{stackIndex:n}))),null==i?n+=1:n=i "+t.stackIndex),this.Ea=t.stackIndex,this.Pa&&this.Pa(t))},i.getFragment=function(){var t=this.win.location.hash;return t=t.substr(1),Promise.resolve(t)},i.updateFragment=function(t){return this.replace({fragment:t})},i.Ba=function(t,i){var n=D(D({},t&&t.data||{}),i.data||{});return D(D(D({},t||{}),i),{},{data:n})},t}(),hh=function(){function t(t,i){var n=this;this.win=t,this.Yh=i,this.Ea=0,this.Pa=null,this.Ya=this.Yh.onMessage("historyPopped",(function(t){return n.Ja(t)}))}var i=t.prototype;return i.replaceStateForTarget=function(t){Zt("#"==t[0]),this.win.location.replace(t)},i.cleanup=function(){this.Ya()},i.setOnStateUpdated=function(t){this.Pa=t},i.Xa=function(t,i,n){return this.Qa(t)?t:(Qt().warn(eh,'Ignored unexpected "%s" data:',n,t),i)},i.Qa=function(t){return!!t&&void 0!==t.stackIndex},i.push=function(t){var i=this,n=D({"stackIndex":this.Ea+1},t||{}),r="pushHistory";return this.Yh.sendMessageAwaitResponse(r,n).then((function(t){var e=n,s=i.Xa(t,e,r);return i.Wa(s),s}))},i.pop=function(t){var i=this;if(t>this.Ea)return this.get();var n={"stackIndex":this.Ea},r="popHistory";return this.Yh.sendMessageAwaitResponse(r,n).then((function(t){var n={"stackIndex":i.Ea-1},e=i.Xa(t,n,r);return i.Wa(e),e}))},i.replace=function(t){var i=this;if(t&&t.url){if(!this.Yh.hasCapability("fullReplaceHistory")){var n={"stackIndex":this.Ea};return Promise.resolve(n)}var r=t.url.replace(/#.*/,"");t.url=r}var e=D({"stackIndex":this.Ea},t||{}),s="replaceHistory";return this.Yh.sendMessageAwaitResponse(s,e,!0).then((function(t){var n=e,r=i.Xa(t,n,s);return i.Wa(r),r}))},i.get=function(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.Ea,title:""})},i.Ja=function(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.Qa(t)?this.Wa(t):Qt().warn(eh,'Ignored unexpected "historyPopped" data:',t)},i.Wa=function(t){var i=t.stackIndex;this.Ea!=i&&(Qt().fine(eh,"stackIndex: ".concat(this.Ea," -> ").concat(i)),this.Ea=i,this.Pa&&this.Pa(t))},i.getFragment=function(){return this.Yh.hasCapability("fragment")?this.Yh.sendMessageAwaitResponse("getFragment",void 0,!0).then((function(t){if(!t)return"";var i=t;return"#"==i[0]&&(i=i.substr(1)),i})):Promise.resolve("")},i.updateFragment=function(t){return this.Yh.hasCapability("fragment")?this.Yh.sendMessageAwaitResponse("replaceHistory",{"fragment":t},!0):h()},t}();function ah(t){var i,n=vr(t);return n.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?i=new hh(t.win,n):(An(t.win,"global-history-binding",oh),i=En(t.win,"global-history-binding")),new uh(t,i)}function ch(t,i){return tr(t.win).installExtensionForDoc(t,"amp-loader").then((function(){return function(t){return Hn(t,"loader","amp-loader")}(i)}))}new WeakMap,new WeakMap;var fh=['
'],lh=function(){function t(t){this.Vo=t;var i=t.win,n=this.Za.bind(this);this.tc=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.needsRootBounds,e=n.rootMargin,s=n.threshold,u=Ni(i)&&(r||e)?i.document:void 0;return new i.IntersectionObserver(t,{threshold:s,root:u,rootMargin:e})}((function(t){return t.forEach(n)}),i),this.ic=new WeakMap}var i=t.prototype;return i.dispose=function(){this.tc.disconnect()},i.track=function(t){this.tc.observe(t)},i.untrack=function(t){this.tc.unobserve(t),this.An(t)},i.Za=function(t){var i=t.boundingClientRect,n=t.isIntersecting,r=t.target,e=i.height,s=i.width,u=r,o=n&&s>20&&e>20,h=this.ic.get(u);o!==(h&&h.shown||!1)&&(o&&!h&&(h=this.nc(u,s,e),this.ic.set(u,h)),h&&(h.shown=o,h.container.classList.toggle("amp-hidden",!o),h.loader.classList.toggle("amp-active",o)))},i.nc=function(t,i,n){var r=Date.now(),e=function(t,i,n,r){var e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.win.Date.now(),s=i.ownerDocument.createElement("div");return ch(t,i).then((function(u){var o=t.win.Date.now()-e;u.initializeLoader(i,s,o,n,r)})),s}(this.Vo,t,i,n,r),s=ke(this.Vo.win.document)(fh);return s.appendChild(e),t.appendChild(s),{shown:!1,loader:e,container:s}},i.An=function(t){var i=this.ic.get(t);i&&(this.ic.delete(t),Ti(i.container))},t}(),vh=function(){function t(t,i){var n=this;this.win=t,this.rc=i,this.ec=[],this.sc=new Er,this.oc=function(t){K(t.target)&&n.uc(t.target)},this.hc=function(i){ar(t).delay((function(){n.win.document.activeElement&&n.uc(n.win.document.activeElement)}),500)},this.win.document.addEventListener("focus",this.oc,!0),this.win.addEventListener("blur",this.hc)}var i=t.prototype;return i.An=function(){this.win.document.removeEventListener("focus",this.oc,!0),this.win.removeEventListener("blur",this.hc)},i.onFocus=function(t){return this.sc.add(t)},i.uc=function(t){var i=Date.now();0==this.ec.length||this.ec[this.ec.length-1].el!=t?this.ec.push({el:t,time:i}):this.ec[this.ec.length-1].time=i,this.purgeBefore(i-this.rc),this.sc.fire(t)},i.getLast=function(){return 0==this.ec.length?null:this.ec[this.ec.length-1].el},i.purgeBefore=function(t){for(var i=this.ec.length-1,n=0;n=t){i=n-1;break}-1!=i&&this.ec.splice(0,i+1)},i.hasDescendantsOf=function(t){this.win.document.activeElement&&this.uc(this.win.document.activeElement);for(var i=0;i3&&void 0!==arguments[3]&&arguments[3],s=function(){var i=r.ac.getLayoutRect(t);return 0!=i.width&&0!=i.height?i.top:-1},u=-1;return this.cc.runPromise({measure:function(){i&&i(),e||(u=s())},mutate:function(){if(n(),!e){t.classList.contains("i-amphtml-element")&&Hs.forElement(t).requestMeasure();for(var i=t.getElementsByClassName("i-amphtml-element"),o=0;o(s=r||"").length||-1===s.indexOf("noopener",u))&&(e=t.open(i,"_top")),e}var Ah="navigation",xh="click",Eh="contextmenu",Ph=["_top","_blank"],Oh="data-a4a-orig-href",Ih=function(){function t(t){var i=this;this.ampdoc=t,this.gc=t.getRootNode(),this.ac=mr(this.ampdoc),this.Yh=vr(this.ampdoc),this.ec=ir(this.ampdoc),this.yc=sr(this.ampdoc.win),this.wc=this.yc.isIos()&&this.yc.isSafari(),this.Ac=Ni(this.ampdoc.win)&&this.Yh.isOvertakeHistory(),this.xc=this.gc!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.Ec="inabox"==Dt(this.ampdoc.win).runtime,this.Oc=this.gc.nodeType==Node.DOCUMENT_NODE?this.gc.documentElement:this.gc,this.Pc=this.Tc.bind(this),this.gc.addEventListener(xh,this.Pc),this.gc.addEventListener(Eh,this.Pc),this.Ic=!1,function(t){return t.whenReady().then((function(){return!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")}))}(this.ampdoc).then((function(t){i.Ic=t})),this.Mc=!1,this.Sc=!1,Promise.all([this.Yh.isTrustedViewer(),this.Yh.getViewerOrigin()]).then((function(t){var n;i.Mc=t[0],i.Sc=(n=t[1],Tt.test(ls(n).origin))})),this.kc=null,this._c=new $s,this.Rc=new $s}t.installAnchorClickInterceptor=function(t,i){i.document.documentElement.addEventListener("click",Mh.bind(null,t),!0)};var i=t.prototype;return i.cleanup=function(){this.Pc&&(this.gc.removeEventListener(xh,this.Pc),this.gc.removeEventListener(Eh,this.Pc))},i.openWindow=function(t,i,n,r){var e="";!this.yc.isIos()&&this.yc.isChrome()||r||(e+="noopener");var s=wh(t,i,n,e);s&&!r&&(s.opener=null)},i.navigateTo=function(t,i,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},e=r.opener,s=void 0!==e&&e,u=r.target,o=void 0===u?"_top":u;i=this.Nc(i);var h=lr(this.Oc);if(h.isProtocolValid(i)){ti(Ph.includes(o),"Target '".concat(o,"' not supported."));var a=h.getSourceUrl(t.location);i=h.resolveRelativeUrl(i,a),"_blank"!=o?n&&(this.kc||(this.kc=this.Cc()),this.kc.includes(n)&&this.navigateToAmpUrl(i,n))||(t.top.location.href=i):this.openWindow(t,i,o,s)}else Jt().error(Ah,"Cannot navigate to invalid protocol: "+i)},i.navigateToAmpUrl=function(t,i){return!!this.Yh.hasCapability("a2a")&&(this.Yh.sendMessage("a2aNavigate",{"url":t,"requestedBy":i}),!0)},i.Cc=function(){var t=this.gc.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((function(t){return t.trim()})):[]},i.Tc=function(t){if(!t.defaultPrevented){var i=yi(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");i&&i.href&&(t.type==xh?this.Dc(i,t):t.type==Eh&&this.jc(i,t))}},i.Dc=function(t,i){this.zc(t);var n=this.Uc(t.href);if(!this.Lc(i,t,n)&&!this.Hc(i,t,n)){var r=this.Gc();Th(n)!=Th(r)&&(this.Vc(t,i),n=this.Uc(t.href)),this.Fc(i,t,n,r)}},i.jc=function(t,i){this.zc(t),this.Vc(t,i)},i.Vc=function(t,i){this._c.forEach((function(n){n(t,i)}))},i.Nc=function(t){return this.Rc.forEach((function(i){t=i(t)})),t},i.zc=function(t){var i=null;this.Ic&&!this.xc&&(i=function(t,i){for(var n=yt(vs(zr.getLocation(t).href).search),r=[],e=0;e=0;a--)void 0!==h[r[a]]&&r.splice(a,1);return function(t){for(var i="",n=0;n")||(t.preventDefault(),0))},i.Fc=function(t,i,n,r){var e=Th(n),s=Th(r);if(n.hash&&e==s)this.Bc(t,n,r);else{var u=(i.getAttribute("target")||"").toLowerCase();(this.xc||this.Ec)&&"_top"!=u&&"_blank"!=u&&(u="_blank",i.setAttribute("target",u));var o=this.ampdoc.win,h=sr(o),a=vr(i);r.search&&h.isSafari()&&h.getMajorVersion()>=13&&a.isProxyOrigin()&&a.isEmbedded()&&this.qc(o,r,u),this.viewerInterceptsNavigation(e,"intercept_click")&&t.preventDefault()}},i.qc=function(t,i,n){Qt().info(Ah,"Removing iframe query string before navigation:",i.search);var r=i.href,e="".concat(i.origin).concat(i.pathname).concat(i.hash);t.history.replaceState(null,"",e);var s=function(){var i=t.location.href;i==e?(Qt().info(Ah,"Restored iframe URL with query string:",r),t.history.replaceState(null,"",r)):Qt().error(Ah,"Unexpected iframe URL change:",i,e)};"_blank"===n?t.setTimeout(s,0):t.addEventListener("pageshow",(function i(n){n.persisted&&(s(),t.removeEventListener("pageshow",i))}))},i.Bc=function(t,i,n){var r=this;if(t.preventDefault(),!this.xc){var e=i.hash.slice(1),s=null;if(e){var u=vi(e);s=this.gc.getElementById(e)||this.gc.querySelector('a[name="'.concat(u,'"]'))}i.hash!=n.hash?this.ec.replaceStateForTarget(i.hash).then((function(){r.Wc(s,e)})):this.Wc(s,e)}},i.registerAnchorMutator=function(t,i){this._c.enqueue(t,i)},i.registerNavigateToMutator=function(t,i){this.Rc.enqueue(t,i)},i.Wc=function(t,i){var n=this;t?(this.ac.scrollIntoView(t),ar(this.ampdoc.win).delay((function(){return n.ac.scrollIntoView(t)}),1)):Qt().warn(Ah,"failed to find element with id=".concat(i," or a[name=").concat(i,"]"))},i.Uc=function(t){return lr(this.Oc).parse(t)},i.Gc=function(){return this.Uc("")},i.viewerInterceptsNavigation=function(t,i){var n=this.Yh.hasCapability("interceptNavigation"),r=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!n||!r||!this.Mc&&!this.Sc||(this.Yh.sendMessage("navigateTo",{"url":t,"requestedBy":i}),0))},t}();function Mh(t,i){var n=yi(i.target,"A");if(n&&n.href){var r=n.getAttribute(Oh)||n.getAttribute("href");if(r){var e={"CLICK_X":function(){return i.pageX},"CLICK_Y":function(){return i.pageY}},s=cr(n).expandUrlSync(r,e,{"CLICK_X":!0,"CLICK_Y":!0});s!=r&&(n.getAttribute(Oh)||n.setAttribute(Oh,r),n.setAttribute("href",s))}}}function Th(t){return"".concat(t.origin).concat(t.pathname).concat(t.search)}function Sh(t){return V(t)?t:[t]}var Rh=function(){function t(t){this.wo=or(t)}var i=t.prototype;return i.setOwner=function(t,i){Hs.setOwner(t,i)},i.schedulePreload=function(t,i){this.$c(this.wo.getResourceForElement(t),!1,Sh(i))},i.scheduleLayout=function(t,i){this.$c(this.wo.getResourceForElement(t),!0,Sh(i))},i.schedulePause=function(t,i){var n=this.wo.getResourceForElement(t);i=Sh(i),this.Kc(n,i,(function(t){t.pause()}))},i.scheduleResume=function(t,i){var n=this.wo.getResourceForElement(t);i=Sh(i),this.Kc(n,i,(function(t){t.resume()}))},i.scheduleUnlayout=function(t,i){var n=this.wo.getResourceForElement(t);i=Sh(i),this.Kc(n,i,(function(t){t.unlayout()}))},i.requireLayout=function(t,i){var n=[];return this.Yc(t,(function(t){n.push(t.element.ensureLoaded())})),Promise.all(n)},i.Kc=function(t,i,n){for(var r,e=o(i,!0);!(r=e()).done;){var s=r.value;Zt(t.element.contains(s)),this.Yc(s,n)}},i.Yc=function(t,i){if(t.classList.contains("i-amphtml-element")){i(this.wo.getResourceForElement(t));var n=t.getPlaceholder();n&&this.Yc(n,i)}else for(var r=t.getElementsByClassName("i-amphtml-element"),e=[],s=0;s=n.length?0:parseInt(n[i],10)},i.getIosVersionString=function(){var t,i,n;return this.isIos()&&(null===(t=this.Jc.userAgent)||void 0===t||null===(i=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===i||null===(n=i[1])||void 0===n?void 0:n.replace(/_/g,"."))||""},i.getIosMajorVersion=function(){var t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])},t}();function kh(t){An(t,"platform",_h)}var Ch=function(){function t(t){this.Oo=t,this.Qc=A()}var i=t.prototype;return i.addTransition=function(t,i,n){var r=this.Zc(t,i);et(!this.Qc[r]),this.Qc[r]=n},i.setState=function(t){var i=this.Oo;this.Oo=t;var n=this.Zc(i,t),r=this.Qc[n];null==r||r()},i.Zc=function(t,i){return"".concat(t,"|").concat(i)},t}(),Nh=function(){function t(){this.vu=[],this.tf={},this.if=0,this.nf=0}var i=t.prototype;return i.getSize=function(){return this.vu.length},i.getLastEnqueueTime=function(){return this.if},i.getLastDequeueTime=function(){return this.nf},i.getTaskById=function(t){return this.tf[t]||null},i.enqueue=function(t){Zt(!this.tf[t.id]),this.vu.push(t),this.tf[t.id]=t,this.if=Date.now()},i.dequeue=function(t){var i=this.tf[t.id];return!!this.removeAtIndex(t,this.vu.indexOf(i))&&(this.nf=Date.now(),!0)},i.peek=function(t){for(var i=1e6,n=null,r=0;r1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.rf||this.ef;if(r){var e=this.ampdoc.getVisibilityState(),s=e==gr&&!t.prerenderAllowed(),u=e==br&&!t.previewAllowed();s||u||(this.ff?this.Hf(t,n):t.isBuilt()||t.isBuilding()||i&&this.Of.includes(t)||(this.Of.push(t),this.zf()))}},i.zf=function(){if(!this.Pf)try{this.Pf=!0,this.Gf()}finally{this.Pf=!1}},i.Gf=function(){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if(!n&&!this.Uf()&&!t.isBuildRenderBlocking())return null;var r=t.build();return r?(Qt().fine(Dh,"build resource:",t.debugid),this.hf++,this.af++,r.then((function(){return i.schedulePass()}),(function(n){if(i.Vf(t),!Us(n))throw n}))):null},i.remove=function(t){var i=Hs.forElementOptional(t);i&&this.Vf(i)},i.Vf=function(t){var i=this.wo.indexOf(t);-1!=i&&this.wo.splice(i,1),t.isBuilt()&&t.pauseOnRemove(),3===t.getState()&&t.layoutCanceled(),this.Ff(t,!0),Qt().fine(Dh,"resource removed:",t.debugid)},i.upgraded=function(t){var i=Hs.forElement(t);this.Lf(i),Qt().fine(Dh,"resource upgraded:",i.debugid)},i.updateLayoutPriority=function(t,i){var n=Hs.forElement(t);n.updateLayoutPriority(i),this.iu.forEach((function(t){t.resource==n&&(t.priority=i)})),this.schedulePass()},i.schedulePass=function(t){return this.Mh.schedule(t)},i.updateOrEnqueueMutateTask=function(t,i){for(var n=null,r=0;r0},i.$f=function(){var t=this,i=this.win.Date.now(),n=this.ac.getRect(),r=n.height/10,e=n.height/10,s=Math.abs(this.gf)<.01&&i-this.bf>500||i-this.bf>1e3;if(this.Ef.length>0){Qt().fine(Dh,"change size requests:",this.Ef.length);var u=this.Ef;this.Ef=[];for(var o=-1,h=[],a=0,c=function(i){var c=u[i],f=c,l=f.event,v=f.resource,d=v.getLayoutBox(),m=0,p=0,g=0,b=0,y=d.bottom,w=d.top,A=void 0;if(c.marginChange){A=c.marginChange.newMargins;var x=c.marginChange.currentMargins;null!=A.top&&(m=A.top-x.top),null!=A.bottom&&(p=A.bottom-x.bottom),null!=A.left&&(g=A.left-x.left),null!=A.right&&(b=A.right-x.right),m&&(w=d.top-x.top),p&&(y=d.bottom+x.bottom)}var E=c.newHeight-d.height,P=c.newWidth-d.width,O=!1;if(0==E&&0==m&&0==p&&0==P&&0==g&&0==b);else if(c.force||!t.cf)O=!0;else if(t.fc.hasDescendantsOf(v.element)||l&&l.userActivation&&l.userActivation.hasBeenActive)O=!0;else if(w>=n.bottom-e||0==m&&d.bottom+Math.min(E,0)>=n.bottom-e)O=!0;else{if(n.top>1&&y<=n.top+r)return E<0&&n.top+a<-E||(s?(a+=E,h.push(c)):t.Ef.push(c)),"continue";t.Kf(v,d)?O=!0:E<0||m<0||p<0||(c.newHeight==d.height?t.cc.run({measure:function(t){t.resize=!1;var i=v.element.parentElement;if(i){for(var n=i.getLayoutSize&&i.getLayoutSize().width||i.offsetWidth,r=P,e=0;en)return;t.resize=!0}},mutate:function(t){t.resize&&c.resource.changeSize(c.newHeight,c.newWidth,A),c.resource.overflowCallback(!t.resize,c.newHeight,c.newWidth,A)}},{}):c.resource.overflowCallback(!0,c.newHeight,c.newWidth,A))}O&&(d.top>=0&&(o=-1==o?d.top:Math.min(o,d.top)),c.resource.changeSize(c.newHeight,c.newWidth,A),c.resource.overflowCallback(!1,c.newHeight,c.newWidth,A),t.Mf=!0),c.callback&&c.callback(O)},f=0;f0&&this.cc.run({measure:function(i){i.scrollHeight=t.ac.getScrollHeight(),i.scrollTop=t.ac.getScrollTop()},mutate:function(i){var n=-1;h.forEach((function(t){var i=t.resource.getLayoutBox();n=-1==n?i.top:Math.min(n,i.top),t.resource.changeSize(t.newHeight,t.newWidth,t.marginChange?t.marginChange.newMargins:void 0),t.callback&&t.callback(!0)})),-1!=n&&t.setRelayoutTop(n);var r=t.ac.getScrollHeight();r!=i.scrollHeight&&t.ac.setScrollTop(i.scrollTop+(r-i.scrollHeight)),t.Mf=!0}},{})}},i.Kf=function(t,i,n){var r=this.ac.getContentHeight(),e=Math.max(.85*r,r-1e3),s=i||t.getLayoutBox(),u=n||t.getInitialLayoutBox();return s.bottom>=e||u.bottom>=e},i.Yf=function(t){var i=t.isDisplayed();return t.measure(),!(i&&!t.isDisplayed())},i.Jf=function(t){var i=this;t.length&&this.cc.mutate((function(){t.forEach((function(t){t.unload(),i.Ff(t)})),Qt().fine(Dh,"unload:",t)}))},i.Xf=function(){var t=this.win.Date.now(),i=this.kf,n=this.mf,r=this.pf;this.mf=!1,this.pf=-1;for(var e,s=0,u=0,o=0;o0||u>0||n||-1!=r||i.length>0)for(var a=0;a=r;if(!f)for(var l=0;l0&&void 0!==arguments[0]?arguments[0]:Date.now(),i=this.wf.getLastDequeueTime();return 0==this.wf.getSize()&&0==this.iu.getSize()&&t>i+5e3&&i>0},i.Zf=function(){for(var t=this.win.Date.now(),i=-1,n=this.iu.peek(this.Af);n&&(i=this.tl(n),Qt().fine(Dh,"peek from queue:",n.id,"sched at",n.scheduleTime,"score",this.Af(n),"timeout",i),!(i>16));){this.iu.dequeue(n);var r=this.wf.getTaskById(n.id);if(r){var e=this.il.bind(this,n);r.promise.then(e,e)}else{var s=n.resource;s.measure(),this.nl(s,n.forceOutsideViewport)?(n.promise=n.callback(),n.startTime=t,Qt().fine(Dh,"exec:",n.id,"at",n.startTime),this.wf.enqueue(n),n.promise.then(this.rl.bind(this,n,!0),this.rl.bind(this,n,!1)).catch(Ds)):(Qt().fine(Dh,"cancelled",n.id),s.layoutCanceled())}n=this.iu.peek(this.Af),i=-1}if(Qt().fine(Dh,"queue size:",this.iu.getSize(),"exec size:",this.wf.getSize()),i>=0)return i;var u=2*(t-this.wf.getLastDequeueTime());return Math.max(Math.min(3e4,u),5e3)},i.xf=function(t){var i=this.ac.getRect(),n=t.resource.getLayoutBox(),r=Math.floor((n.top-i.top)/i.height);return Math.sign(r)!=this.getScrollDirection()&&(r*=2),r=Math.abs(r),10*t.priority+r},i.tl=function(t){var i=this.win.Date.now();if(0==this.wf.getSize()){if(-1===this.df)return 0;var n=1e3*t.priority;return Math.max(n-(i-this.df),0)}var r=0;return this.wf.forEach((function(n){var e=Math.max(1e3*(t.priority-n.priority),0);r=Math.max(r,e-(i-n.startTime))})),r},i.il=function(t){this.iu.getTaskById(t.id)||this.iu.enqueue(t)},i.rl=function(t,i,n){if(this.wf.dequeue(t),this.schedulePass(1e3),!i)return Qt().info(Dh,"task failed:",t.id,t.resource.debugid,n),Promise.reject(n)},i.nl=function(t,i){if(0==t.getState()||!t.isDisplayed())return!1;var n=this.ampdoc.getVisibilityState(),r=n==gr&&t.prerenderAllowed(),e=n==br&&t.previewAllowed();return!!(this.cf||r||e)&&!!(i||t.isInViewport()||t.renderOutsideViewport()||t.idleRenderOutsideViewport())},i.scheduleLayoutOrPreload=function(t,i,n,r){if(!t.element.R1()){var e=0!=t.getState(),s=t.isDisplayed();e&&s||Zt(!1);var u=r||!1;this.nl(t,u)&&(i?this.yu(t,"L",0,n||0,u,t.startLayout.bind(t)):this.yu(t,"P",2,n||0,u,t.startLayout.bind(t)))}},i.yu=function(t,i,n,r,e,s){var u=t.getTaskId(i),o={id:u,resource:t,priority:Math.max(t.getLayoutPriority(),r)+n,forceOutsideViewport:e,callback:s,scheduleTime:this.win.Date.now(),startTime:0,promise:null};Qt().fine(Dh,"schedule:",o.id,"at",o.scheduleTime);var h=this.iu.getTaskById(u);(!h||o.priority0&&t.width>0){i.Wf()&&i.$f(),i.Xf();var n=i.Zf();i.Wf()&&(n=Math.min(n,500)),i.cf?i.schedulePass(n)?Qt().fine(Dh,"next pass:",n):Qt().fine(Dh,"pass already scheduled"):Qt().fine(Dh,"document is not visible: no scheduling"),i._f.resolve()}},a=function(){},c=function(){i.wo.forEach((function(t){return t.pause()}))},f=function(){i.wo.forEach((function(t){t.unload(),i.Ff(t)})),i.sl()},l=function(){i.wo.forEach((function(t){return t.resume()})),h()};t.addTransition(s,s,h),t.addTransition(s,u,h),t.addTransition(s,o,h),t.addTransition(s,n,h),t.addTransition(s,r,h),t.addTransition(s,e,h),t.addTransition(u,u,h),t.addTransition(u,o,h),t.addTransition(u,n,h),t.addTransition(u,r,h),t.addTransition(u,e,h),t.addTransition(o,o,h),t.addTransition(o,n,h),t.addTransition(o,r,f),t.addTransition(o,e,c),t.addTransition(n,o,h),t.addTransition(n,n,h),t.addTransition(n,r,f),t.addTransition(n,e,c),t.addTransition(r,o,l),t.addTransition(r,n,l),t.addTransition(r,r,a),t.addTransition(r,e,h),t.addTransition(e,o,l),t.addTransition(e,n,h),t.addTransition(e,r,f),t.addTransition(e,e,a)},i.sl=function(){try{this.win.getSelection().removeAllRanges()}catch(t){}},i.Ff=function(t,i){if(1!=t.getState()&&2!=t.getState()||(this.iu.purge((function(i){return i.resource==t})),this.wf.purge((function(i){return i.resource==t})),q(this.Ef,(function(i){return i.resource===t}))),0==t.getState()&&i&&this.Of){var n=this.Of.indexOf(t);-1!=n&&this.Of.splice(n,1)}},i.jf=function(t){var i=t.target;if(i.nodeType===Node.ELEMENT_NODE&&i!==this.ac.getScrollingElement()){var n=i;this.kf.includes(n)||(this.kf.push(n),this.schedulePass(70))}},t}();function Uh(t){return t.queryCommandSupported("copy")}function Lh(t){return t.hasAttribute("hidden")}var zh="STANDARD-ACTIONS",Hh=/^i-amphtml-/,Gh=function(){function t(t){this.ampdoc=t;var i=t.getHeadNode();this.ol=rr(t),this.ac=mr(t),this.ul(Bn(i)),this.hl()}var i=t.prototype;return i.ul=function(t){t.addGlobalTarget("AMP",this.al.bind(this)),t.addGlobalMethodHandler("hide",this.cl.bind(this)),t.addGlobalMethodHandler("show",this.fl.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.ll.bind(this)),t.addGlobalMethodHandler("scrollTo",this.vl.bind(this)),t.addGlobalMethodHandler("focus",this.dl.bind(this)),t.addGlobalMethodHandler("toggleClass",this.ml.bind(this)),t.addGlobalMethodHandler("copy",this.pl.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.bl.bind(this))},i.hl=function(){this.gl()&&this.ampdoc.waitForBodyOpen().then((function(t){var i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(i)}))},i.gl=function(){var t,i;try{var n=this.ampdoc.win.localStorage.getItem("amp-dark-mode");if(n)return"yes"===n}catch(t){}return null===(t=(i=this.ampdoc.win).matchMedia)||void 0===t?void 0:t.call(i,"(prefers-color-scheme: dark)").matches},i.al=function(t){if(!t.satisfiesTrust(2))return null;var i=t.args,n=t.method,r=t.node,e=oi(r);switch(n){case"pushState":case"setState":var s=r.nodeType===Node.DOCUMENT_NODE?r.documentElement:r;return Jn(s).then((function(i){return ti(i,"AMP-BIND is not installed."),i.invoke(t)}));case"navigateTo":return this.yl(t);case"closeOrNavigateTo":return this.wl(t);case"scrollTo":return ti(i.id,"AMP.scrollTo must provide element ID"),t.node=Rn(r).getElementById(i.id),this.vl(t);case"goBack":return ir(this.ampdoc).goBack(!(!i||!0!==i.navigate)),null;case"print":return e.print(),null;case"copy":return this.pl(t);case"optoutOfCid":return Xn(this.ampdoc).then((function(t){return t.optOut()})).catch((function(t){Qt().error(zh,"Failed to opt out of CID",t)}));case"toggleTheme":return this.Al(),null}throw Jt().createError("Unknown AMP action ",n)},i.pl=function(t){var i,n=t.args,r=oi(t.node),e="copy-error";if("AMP"===t.tagOrTarget)i=n.text.trim();else{var s,u=st(t.node);i=(null!==(s=u.value)&&void 0!==s?s:u.textContent).trim()}var o,h,a,c=function(t,i,n){var e={data:{type:i}},s=We(r,"".concat(t),e);Bn(n.caller).trigger(n.caller,t,s,3)};null!==(h=(o=r.document).defaultView)&&void 0!==h&&null!==(a=h.navigator)&&void 0!==a&&a.clipboard||Uh(o)?function(t,i,n,r){var e;null!==(e=t.navigator)&&void 0!==e&&e.clipboard?t.navigator.clipboard.writeText(i).then(n,r):Uh(t.document)&&function(t,i){var n,r=!1,e=t.document,s=e.createElement("textarea");_r(s,{"position":"fixed","top":0,"left":0,"width":"50px","height":"50px","padding":0,"border":"none","outline":"none","background":"transparent"}),s.value=i,s.readOnly=!0,s.contentEditable="true",e.body.appendChild(s),null===(n=t.getSelection())||void 0===n||n.removeAllRanges(),s.focus(),s.setSelectionRange(0,i.length);try{r=e.execCommand("copy")}catch(t){}return Ti(s),r}(t,i)?n():r()}(r,i,(function(){c("copy-success","success",t)}),(function(){c(e,"error",t)})):c(e,"unsupported",t)},i.yl=function(t){var i=this,n=t.args,r=t.caller,e=t.method,s=oi(t.node),u=h();return r.tagName.startsWith("AMP-")&&(u=r.getImpl().then((function(t){"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),u.then((function(){var t;(t=i.ampdoc,Pn(t,"navigation")).navigateTo(s,n.url,"AMP.".concat(e),{target:n.target,opener:n.opener})}),(function(t){Jt().error(zh,t)}))},i.Al=function(){var t=this;this.ampdoc.waitForBodyOpen().then((function(i){try{var n=i.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.gl()?(i.classList.remove(n),t.ampdoc.win.localStorage.setItem("amp-dark-mode","no")):(i.classList.add(n),t.ampdoc.win.localStorage.setItem("amp-dark-mode","yes"))}catch(t){}}))},i.wl=function(t){var i=oi(t.node),n=i.parent!=i,r=!1;return i.opener&&this.ampdoc.isSingleDoc()&&!n&&(i.close(),r=i.closed),r?h():this.yl(t)},i.vl=function(t){var i=t.node,n=t.args,r=n&&n.position,e=n&&n.duration;return r&&!["top","bottom","center"].includes(r)&&(r=void 0),J(e)||(e=void 0),this.ac.animateScrollIntoView(i,r,e)},i.dl=function(t){return Ci(t.node),null},i.cl=function(t){var i=t.node;if(i.classList.contains("i-amphtml-element")){var n=i;this.ol.mutateElement(n,(function(){return n.collapse()}),!0)}else this.ol.mutateElement(i,(function(){return kr(i,!1)}));return null},i.fl=function(t){var i=this,n=t.node,r=oi(n);if(n.classList.contains(ae(Qr)))return Jt().warn(zh,"Elements with layout=nodisplay cannot be dynamically shown.",n),null;this.ol.measureElement((function(){"none"!=Nr(r,n).display||Lh(n)||Jt().warn(zh,'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',n)}));var e,s=(e=n).hasAttribute("autofocus")?e:e.querySelector("[autofocus]");return s&&sr(r).isIos()?(this.xl(n,s),this.ol.mutateElement(n,(function(){}))):this.ol.mutateElement(n,(function(){i.xl(n,s)})),null},i.xl=function(t,i){t.classList.contains("i-amphtml-element")?t.expand():kr(t,!0),i&&Ci(i)},i.ll=function(t){return Lh(t.node)?this.fl(t):this.cl(t)},i.ml=function(t){var i=t.node,n=t.args,r=Jt().assertString(n.class,"Argument 'class' must be a string.");return Hh.test(r)||this.ol.mutateElement(i,(function(){if(void 0!==n.force){var t=Jt().assertBoolean(n.force,"Optional argument 'force' must be a boolean.");i.classList.toggle(r,t)}else i.classList.toggle(r)})),null},i.bl=function(t){var i=t.node,n=t.args;return this.ol.mutateElement(i,(function(){if(void 0!==(null==n?void 0:n.force)){var t=Jt().assertBoolean(n.force,"Optional argument 'force' must be a boolean.");i.checked=t}else!0===i.checked?i.checked=!1:i.checked=!0})),null},t}(),Vh="Storage",Fh=function(){function t(t,i,n){this.ampdoc=t,this.Yh=i,this.xa=n,this.El=n instanceof $h,this.i=Ms(this.ampdoc.win.location),this.Ol=null}var i=t.prototype;return i.Pl=function(){return this.Tl(),this},i.get=function(t,i){return this.Il().then((function(n){return n.get(t,i)}))},i.set=function(t,i,n){return Zt("boolean"==typeof i),this.setNonBoolean(t,i,n)},i.setNonBoolean=function(t,i,n){return this.Ml((function(r){return r.set(t,i,n)}))},i.remove=function(t){return this.Ml((function(i){return i.remove(t)}))},i.isViewerStorage=function(){return this.El},i.Il=function(){return this.Ol||(this.Ol=this.xa.loadBlob(this.i).then((function(t){return t?at(atob(t)):{}})).catch((function(t){return Qt().expectedError(Vh,"Failed to load store: ",t),{}})).then((function(t){return new qh(t)}))),this.Ol},i.Ml=function(t){var i=this;return this.Il().then((function(n){t(n);var r=btoa(JSON.stringify(n.obj));return i.xa.saveBlob(i.i,r)})).then(this.Sl.bind(this))},i.Tl=function(){var t=this;this.Yh.onBroadcast((function(i){"amp-storage-reset"==i.type&&i.origin==t.i&&(Qt().fine(Vh,"Received reset message"),t.Ol=null)}))},i.Sl=function(){Qt().fine(Vh,"Broadcasted reset message"),this.Yh.broadcast({"type":"amp-storage-reset","origin":this.i})},t}(),qh=function(){function t(t,i){this.obj=E(t),this.kl=i||8,this._l=this.obj.vv||Object.create(null),this.obj.vv||(this.obj.vv=this._l)}var i=t.prototype;return i.get=function(t,i){var n=this._l[t],r=n?n.t:void 0,e=!i||null==r||r+i>Date.now();return n&&e?n.v:void 0},i.set=function(t,i,n){if(Zt("__proto__"!=t&&"prototype"!=t),void 0!==this._l[t]){var r=this._l[t],e=Date.now();n&&(e=r.t),r.v=i,r.t=e}else this._l[t]={"v":i,"t":Date.now()};var s=Object.keys(this._l);if(s.length>this.kl){for(var u=1/0,o=null,h=0;h or