@google-psat/cli 0.14.1 → 1.0.0-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- self.AMP_CONFIG={v:"012410292120000",type:"production","allow-doc-opt-in":["amp-next-page"],"allow-url-opt-in":[],canary:0,a4aProfilingRate:.01,doubleclickSraExp:.01,doubleclickSraReportExcludedBlock:.1,flexAdSlots:.05,"flexible-bitrate":.1,"ios-fixed-no-transfer":0,"story-ad-placements":.01,"story-disable-animations-first-page":1,"story-load-inactive-outside-viewport":1,"amp-sticky-ad-to-amp-ad-v4":0,"story-video-cache-apply-audio":0,"amp-story-subscriptions":1,"interaction-to-next-paint":1},self.AMP_EXP={"flexible-bitrate":.1,"amp-story-first-page-max-bitrate":.3,"story-disable-animations-first-page":1,"story-load-first-page-only":1,"story-load-inactive-outside-viewport":1,"story-ad-page-outlink":.02,"amp-geo-ssr":1,"story-remote-localization":1,"amp-story-subscriptions":1,"attribution-reporting":.04},self,self.AMP=self.AMP||[];try{AMP._=AMP._||{},self.AMP&&!Array.isArray(self.AMP)||function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function e(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}var n,i=function(){function t(){this.Rt=new r}return t.prototype.abort=function(){if(!this.Rt.Tt&&(this.Rt.Tt=!0,this.Rt.Mt)){var t={type:"abort",bubbles:!1,cancelable:!1,target:this.Rt,currentTarget:this.Rt};this.Rt.Mt(t)}},e(t,[{key:"signal",get:function(){return this.Rt}}]),t}(),r=function(){function t(){this.Tt=!1,this.Mt=null}return e(t,[{key:"aborted",get:function(){return this.Tt}},{key:"onabort",get:function(){return this.Mt},set:function(t){this.Mt=t}}]),t}();function o(t,e){for(var n=e||0,i=this.length,r=n>=0?n:Math.max(i+n,0);r<i;r++){var o=this[r];if(o===t||t!=t&&o!=o)return!0}return!1}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}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 u(){return n||(n=Promise.resolve(void 0))}var h=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))};function c(t){return new Promise((function(e){e(t())}))}function l(t){var e=Object.getOwnPropertyDescriptor(t,"message");if(null!=e&&e.writable)return t;var n=t.message,i=t.stack,r=new Error(n);for(var o in t)r[o]=t[o];return r.stack=i,r}function f(t){for(var e,n=null,i="",r=a(arguments,!0);!(e=r()).done;){var o=e.value;o instanceof Error&&!n?n=l(o):(i&&(i+=" "),i+=o)}return n?i&&(n.message=i+": "+n.message):n=new Error(i),n}function d(t){var e=f.apply(null,arguments);setTimeout((function(){throw function(t){var e,n;null===(e=(n=self).__AMP_REPORT_ERROR)||void 0===e||e.call(n,t)}(e),e}))}function m(t){var e=f.apply(null,arguments);return e.expected=!0,e}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 v=Object.prototype,g=v.hasOwnProperty,y=v.toString;function b(t){return"[object Object]"===y.call(t)}function w(t){var e=Object.create(null);return t&&Object.assign(e,t),e}function A(t,e){return g.call(t,e)}function E(t){var e=w();for(var n in t)if(A(t,n)){var i=t[n];e[n]=b(i)?E(i):i}return e}var S=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,T=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],P={childList:!0,subtree:!0};function O(t,e){if(!S.test(e)||T.includes(e))throw new t('invalid custom element name "'.concat(e,'"'))}var x=function(){function t(t,e){this.t=t,this.Pt=e,this.Ut=w()}var e=t.prototype;return e.define=function(t,e,n){this.Pt.define(t,e,n);var i=this.Ut,r=i[t];r&&(r.resolve(),delete i[t])},e.get=function(t){var e=this.Pt.getByName(t);if(e)return e.ctor},e.whenDefined=function(t){var e=this.t;if(e.Promise,O(e.SyntaxError,t),this.Pt.getByName(t))return u();var n=this.Ut,i=n[t];return i||(i=new h,n[t]=i),i.promise},e.upgrade=function(t){this.Pt.upgrade(t)},t}(),R=function(){function t(t){this.t=t,this.Lt=w(),this.Nt="",this._t=null,this.Ht=null,this.Dt=[t.document]}var e=t.prototype;return e.current=function(){var t=this._t;return this._t=null,t},e.getByName=function(t){var e=this.Lt[t];if(e)return e},e.getByConstructor=function(t){var e=this.Lt;for(var n in e){var i=e[n];if(i.ctor===t)return i}},e.define=function(t,e,n){var i=this.t,r=i.Error,o=i.SyntaxError;if(n)throw new r("Extending native custom elements is not supported");if(O(o,t),this.getByName(t)||this.getByConstructor(e))throw new r('duplicate definition "'.concat(t,'"'));this.Lt[t]={name:t,ctor:e},this.Bt(t);for(var s,u=a(this.Dt,!0);!(s=u()).done;){var h=s.value;this.upgrade(h,t)}},e.upgrade=function(t,e){for(var n,i=!!e,r=e||this.Nt,o=a(this.Ft(t,r),!0);!(n=o()).done;){var s=n.value;i?this.Jt(s):this.upgradeSelf(s)}},e.upgradeSelf=function(t){var e=this.getByName(t.localName);e&&this.Gt(t,e)},e.Ft=function(t,e){return e&&t.querySelectorAll?t.querySelectorAll(e):[]},e.Gt=function(t,e){var n=e.ctor;if(!(t instanceof n)){this._t=t;try{if(new n!==t)throw new this.t.Error("Constructor illegally returned a different instance.")}catch(t){d(t)}}},e.Jt=function(t){var e=this.getByName(t.localName);if(e&&(this.Gt(t,e),t.connectedCallback))try{t.connectedCallback()}catch(t){d(t)}},e.Wt=function(t){if(t.disconnectedCallback)try{t.disconnectedCallback()}catch(t){d(t)}},e.Bt=function(t){var e=this;if(this.Nt)this.Nt+=",".concat(t);else{this.Nt=t;var n=new this.t.MutationObserver((function(t){t&&e.Zt(t)}));this.Ht=n;for(var i,r=a(this.Dt,!0);!(i=r()).done;){var o=i.value;n.observe(o,P)}!function(t,e){var n,i=t.Document,r=t.Element,o=t.Node,s=t.document,a=i.prototype,u=r.prototype,h=o.prototype,c=a.createElement,l=a.importNode,f=h.appendChild,d=h.cloneNode,m=h.insertBefore,p=h.removeChild,v=h.replaceChild;a.createElement=function(t){var n=e.getByName(t);return n?new n.ctor:c.apply(this,arguments)},a.importNode=function(){var t=l.apply(this,arguments);return t&&this===s&&(e.upgradeSelf(t),e.upgrade(t)),t},h.appendChild=function(){var t=f.apply(this,arguments);return e.sync(),t},h.insertBefore=function(){var t=m.apply(this,arguments);return e.sync(),t},h.removeChild=function(){var t=p.apply(this,arguments);return e.sync(),t},h.replaceChild=function(){var t=v.apply(this,arguments);return e.sync(),t},h.cloneNode=function(){var t=d.apply(this,arguments);return t.ownerDocument===s&&(e.upgradeSelf(t),e.upgrade(t)),t};var g=u,y=Object.getOwnPropertyDescriptor(g,"innerHTML");if(y||(g=Object.getPrototypeOf(t.HTMLElement.prototype),y=Object.getOwnPropertyDescriptor(g,"innerHTML")),null!==(n=y)&&void 0!==n&&n.configurable){var b=y.set;y.set=function(t){b.call(this,t),e.upgrade(this)},Object.defineProperty(g,"innerHTML",y)}}(this.t,this)}},e.observe=function(t){this.Dt.push(t),this.Ht&&this.Ht.observe(t,P)},e.sync=function(){this.Ht&&this.Zt(this.Ht.takeRecords())},e.Zt=function(t){for(var e,n=a(t,!0);!(e=n()).done;){var i=e.value;if(i){for(var r,o=i.addedNodes,s=i.removedNodes,u=a(o,!0);!(r=u()).done;){var h=r.value,c=this.Ft(h,this.Nt);this.Jt(h);for(var l,f=a(c,!0);!(l=f()).done;){var d=l.value;this.Jt(d)}}for(var m,p=a(s,!0);!(m=p()).done;){var v=m.value,g=this.Ft(v,this.Nt);this.Wt(v);for(var y,b=a(g,!0);!(y=b()).done;){var w=y.value;this.Wt(w)}}}}},t}();function M(t,e){e.prototype=Object.create(t.prototype,{constructor:{configurable:!0,writable:!0,value:e}}),C(e,t)}function C(t,e){Object.setPrototypeOf?Object.setPrototypeOf(t,e):{__proto__:{test:!0}}.test?t.__proto__=e:function(t,e){for(var n=e;null!==n&&!Object.isPrototypeOf.call(n,t);){for(var i,r=a(Object.getOwnPropertyNames(n),!0);!(i=r()).done;){var o=i.value;if(!Object.hasOwnProperty.call(t,o)){var s=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,s)}}n=Object.getPrototypeOf(n)}}(t,e)}function _(t){return t==this||this.documentElement.contains(t)}function L(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function N(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=B(t);if(e){var r=B(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function U(t){return t?Array.prototype.slice.call(t):[]}var j=Array.isArray;function F(t){return j(t)?t:[t]}function q(t,e){for(var n=[],i=0,r=0;r<t.length;r++){var o=t[r];e(o,r,t)?n.push(o):(i<r&&(t[i]=o),i++)}return i<t.length&&(t.length=i),n}function H(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1}function z(t,e){var n=t.indexOf(e);return-1!=n&&(t.splice(n,1),!0)}function G(t,e){var n=t.length-e.length;return n>=0&&t.indexOf(e,n)==n}function W(t){return"string"==typeof t}function Y(t){return 1==(null==t?void 0:t.nodeType)}function K(t){return"number"==typeof t&&isFinite(t)}var J="​​​",X="​​​​";function $(t){return Y(t)?t.tagName.toLowerCase()+(t.id?"#".concat(t.id):""):t}function Q(t){return t.indexOf(J)>=0}function Z(t){return t.replace(J,"")}function tt(t,e){var n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(e)return e;t&&-1==r.indexOf(t)&&(r+=t);for(var o=3,s=r.split("%s"),a=s.shift(),u=[a];s.length;){var h=arguments[o++],c=s.shift();a+=$(h)+c,u.push(h,c.trim())}var l=new Error(a);throw l.messageArray=q(u,(function(t){return""!==t})),null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,l),l}function et(t,e,n,i,r){return j(r)?t(n,r.concat([e])):t(n,"".concat(r||i,": %s"),e),e}function nt(t,e,n,i,r,o,s,a,u,h,c){return t}function it(t,e){return t}function rt(t,e){return t}function ot(t,e){return t}function st(t,e,n,i,r,o,s,a,u,h,c){return tt(J,t,e,n,i,r,o,s,a,u,h,c)}function at(t){return JSON.parse(t)}function ut(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):ht(unescape(encodeURIComponent(t)))}function ht(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++){var i=t.charCodeAt(n);nt(i<=255),e[n]=i}return e}function ct(t,e){var n=t.crypto;if(!(n=n||t.msCrypto)||!n.getRandomValues)return null;var i=new Uint8Array(e);return n.getRandomValues(i),i}function lt(t,e,n){var i=0,r=null;function o(o){r=null,i=t.setTimeout(s,n),e.apply(null,o)}function s(){i=0,r&&o(r)}return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];i?r=e:o(e)}}function ft(t,e,n){var i=0,r=0,o=null;function s(){i=0;var a,u=n-(t.Date.now()-r);u>0?i=t.setTimeout(s,u):(a=o,o=null,e.apply(null,a))}return function(){r=t.Date.now();for(var e=arguments.length,a=new Array(e),u=0;u<e;u++)a[u]=arguments[u];o=a,i||(i=t.setTimeout(s,n))}}var dt=["javascript:","data:","vbscript:"],mt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function pt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return e}}function vt(t){var e,n=w();if(!t)return n;for(;e=mt.exec(t);){var i=pt(e[1],e[1]),r=e[2]?pt(e[2].replace(/\+/g," "),e[2]):"";n[i]=r}return n}function gt(t){var e=(t||self).location;return vt(e.originalHash||e.hash)}var yt=function(t){return self.AMP_CONFIG?self.AMP_CONFIG[t]:null},bt=("string"==typeof yt("cdnProxyRegex")?new RegExp(yt("cdnProxyRegex")):yt("cdnProxyRegex"))||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function wt(t){if(!self.document||!self.document.head)return null;if(self.location&&bt.test(self.location.origin))return null;var e=self.document.head.querySelector('meta[name="'.concat(t,'"]'));return e&&e.getAttribute("content")||null}var At=yt("thirdPartyUrl")||"https://3p.ampproject.net",Et=yt("thirdPartyFrameHost")||"ampproject.net",St=("string"==typeof yt("thirdPartyFrameRegex")?new RegExp(yt("thirdPartyFrameRegex")):yt("thirdPartyFrameRegex"))||/^d-\d+\.ampproject\.net$/,Tt=yt("cdnUrl")||wt("runtime-host")||"https://cdn.ampproject.org",Pt=/^https?:\/\/localhost(:\d+)?$/,Ot=yt("errorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",xt=yt("betaErrorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",Rt=yt("localDev")||!1,Mt=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],Ct=yt("geoApiUrl")||wt("amp-geo-api"),_t="";function Lt(t){var e=t||self;return e.__AMP_MODE?e.__AMP_MODE:e.__AMP_MODE=function(t){return{localDev:!1,development:kt(t,gt(t)),esm:!1,test:!1,rtvVersion:It(t),ssrReady:!1}}(e)}function It(t){var e;return _t||(_t=(null===(e=t.AMP_CONFIG)||void 0===e?void 0:e.v)||"01".concat("2410292120000")),_t}function kt(t,e){var n=e||gt(t);return["1","actions","amp","amp4ads","amp4email"].includes(n.development)||!!t.AMP_DEV_MODE}var Dt=function(){},Nt=void 0;function Bt(t){Nt=t}var Vt=function(){return"01".concat("2410292120000")},Ut=function(t,e){return e.reduce((function(t,e){return"".concat(t,"&s[]=").concat(jt(e))}),"https://log.amp.dev/?v=".concat(Vt(),"&id=").concat(encodeURIComponent(t)))},jt=function(t){return encodeURIComponent(String($(t)))},Ft=function(t){return parseInt(gt(t).log,10)},qt=function(){function t(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this.win=t,this.tt=e,this.nt=this.rt(),this.it=i,this.et=null,this.ft=function(t){var e=!1,n=null,i=t;return function(){if(!e){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];n=i.apply(self,r),e=!0,i=null}return n}}((function(){t.fetch("".concat(Tt,"/rtv/").concat(Vt(),"/log-messages.simple.json")).then((function(t){return t.json()}),Dt).then((function(t){t&&(n.et=t)}))})),this.ot=this.assert.bind(this)}var e=t.prototype;return e.rt=function(){var t,e=this.win;return null!==(t=e.console)&&void 0!==t&&t.log&&0!=Ft(e)?this.ut():0},e.ut=function(t){return this.tt(Ft(t),Lt().development)},e.st=function(t,e,n){var i,r,o;if(e>(null!==(i=Nt)&&void 0!==i?i:this.nt))return!1;var s=this.win.console,a=null!==(r=(o={},L(o,1,s.error),L(o,3,s.info),L(o,2,s.warn),o)[e])&&void 0!==r?r:s.log,u=this.ct(n),h="[".concat(t,"]");return W(u[0])?u[0]=h+" "+u[0]:u.unshift(h),a.apply(s,u),!0},e.fine=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.st(t,4,n)},e.info=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.st(t,3,n)},e.warn=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.st(t,2,n)},e.error=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(!this.st(t,1,n)){var r,o,s=this.createError.apply(this,n);s.name=t||s.name,null===(r=(o=self).__AMP_REPORT_ERROR)||void 0===r||r.call(o,s)}},e.expectedError=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r,o;this.st(t,1,n)||null===(r=(o=self).__AMP_REPORT_ERROR)||void 0===r||r.call(o,this.createExpectedError.apply(this,n))},e.createError=function(t){return this.ht(f.apply(null,arguments))},e.createExpectedError=function(t){return this.ht(m.apply(null,arguments))},e.ht=function(t){return t=l(t),this.it?t.message?-1==t.message.indexOf(this.it)&&(t.message+=this.it):t.message=this.it:Q(t.message)&&(t.message=Z(t.message)),t},e.ct=function(t){return j(t[0])?this.lt(t[0]):t},e.lt=function(t){var e,n=t.shift();return Lt(this.win).development&&this.ft(),null!==(e=this.et)&&void 0!==e&&e[n]?[this.et[n]].concat(t):["More info at ".concat(Ut(n,t))]},e.assert=function(t,e,n){return j(e)?this.assert.apply(this,[t].concat(this.lt(e))):tt.apply(null,[this.it].concat(Array.prototype.slice.call(arguments)))},e.assertElement=function(t,e){return function(t,e,n){return et(t,e,Y(e),"Element expected",n)}(this.ot,t,e)},e.assertString=function(t,e){return function(t,e,n){return et(t,e,W(e),"String expected",n)}(this.ot,t,e)},e.assertNumber=function(t,e){return function(t,e,n){return et(t,e,"number"==typeof e,"Number expected",n)}(this.ot,t,e)},e.assertArray=function(t,e){return function(t,e,n){return et(t,e,j(e),"Array expected",n)}(this.ot,t,e)},e.assertBoolean=function(t,e){return function(t,e,n){return et(t,e,!!e===e,"Boolean expected",n)}(this.ot,t,e)},t}();self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Ht=self.__AMP_LOG,zt=null;function Gt(t,e){if(!zt)throw new Error("failed to call initLogConstructor");return new zt(self,t,e)}function Wt(t){return Ht.user||(Ht.user=Yt(J)),function(t,e){return e&&e.ownerDocument.defaultView!=t}(Ht.user.win,t)?Ht.userForEmbed||(Ht.userForEmbed=Yt(X)):Ht.user}function Yt(t){return Gt((function(t,e){return e||t>=1?4:2}),t)}function Kt(){return Ht.dev||(Ht.dev=Gt((function(t){return t>=3?4:t>=2?3:0})))}function Jt(t,e,n,i,r,o,s,a,u,h,c){return t}function Xt(t,e,n,i,r,o,s,a,u,h,c){return Wt().assert(t,e,n,i,r,o,s,a,u,h,c)}var $t=["GET","POST"],Qt=function(){function t(t){this.$t=t,this.status=this.$t.status,this.statusText=this.$t.statusText,this.ok=this.status>=200&&this.status<300,this.headers=new Zt(t),this.bodyUsed=!1,this.body=null,this.url=t.responseURL}var e=t.prototype;return e.clone=function(){return nt(!this.bodyUsed),new t(this.$t)},e.Xt=function(){return nt(!this.bodyUsed),this.bodyUsed=!0,Promise.resolve(this.$t.responseText)},e.text=function(){return this.Xt()},e.json=function(){return this.Xt().then(at)},e.arrayBuffer=function(){return this.Xt().then(ut)},t}(),Zt=function(){function t(t){this.$t=t}var e=t.prototype;return e.get=function(t){return this.$t.getResponseHeader(t)},e.has=function(t){return null!=this.$t.getResponseHeader(t)},t}(),te=function(t){N(n,t);var e=V(n);function n(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=w(),r=k({status:200,statusText:"OK",responseText:t?String(t):"",getResponseHeader:function(t){var e=String(t).toLowerCase();return A(i,e)?i[e]:null}},n);if(r.status=void 0===n.status?200:parseInt(n.status,10),j(n.headers))n.headers.forEach((function(t){var e=t[0],n=t[1];i[String(e).toLowerCase()]=String(n)}));else if(b(n.headers))for(var o in n.headers)i[String(o).toLowerCase()]=String(n.headers[o]);return n.statusText&&(r.statusText=String(n.statusText)),e.call(this,r)}return n}(Qt);function ee(t){return(t.ownerDocument||t).defaultView}var ne,ie=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function re(t,e,n,i,r){return r||(e?"�":i?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function oe(t){return void 0!==ne?ne:ne=function(t){try{var e=t.ownerDocument,n=e.createElement("div"),i=e.createElement("div");return n.appendChild(i),n.querySelector(":scope div")===i}catch(t){return!1}}(t)}function se(t,e){return t.replace(/^|,/g,"$&".concat(e," "))}function ae(t){return String(t).replace(ie,re)}function ue(t){nt(/^[\w-]+$/.test(t))}function he(t,e){var n=t.classList,i="i-amphtml-scoped";n.add(i);var r=se(e,".".concat(i)),o=t.querySelectorAll(r);return n.remove(i),o}function ce(t,e){if(oe(t))return t.querySelector(se(e,":scope"));var n=he(t,e)[0];return void 0===n?null:n}function le(t,e){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!n&&n.call(t,e)}function fe(t,e,n){var i;for(i=t;i&&i!==n;i=i.parentElement)if(e(i))return i;return null}function de(t,e){return t.closest?t.closest(e):fe(t,(function(t){return le(t,e)}))}function me(t,e){for(var n=t.lastElementChild;n;n=n.previousElementSibling)if(e(n))return n;return null}function pe(t,e){return ue(e),ce(t,"> [".concat(e,"]"))}function ve(t){return W(e=t)?n=e:Y(e)&&(n=e.tagName),!(!n||!n.toLowerCase().startsWith("i-"))||t.nodeType===Node.ELEMENT_NODE&&(it(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"));var e,n}var ge,ye={bubbles:!0,cancelable:!0};function be(t,e,n){if(e(t))n();else{var i=ee(t);if(i.MutationObserver){var r=new i.MutationObserver((function(){e(t)&&(r.disconnect(),n())}));r.observe(t,{childList:!0})}else var o=i.setInterval((function(){e(t)&&(i.clearInterval(o),n())}),5)}}function we(t,e){be(t.documentElement,(function(){return!!t.body}),e)}function Ae(t){return new Promise((function(e){return we(t,e)}))}function Ee(t){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t)}function Se(t){var e=t.isConnected;if(void 0!==e)return e;for(var n=t;(n=Te(n)).host;)n=n.host;return n.nodeType===Node.DOCUMENT_NODE}function Te(t){if(Node.prototype.getRootNode)return t.getRootNode();var e,n;for(e=t;e.parentNode&&(!(n=e)||"I-AMPHTML-SHADOW-ROOT"!=n.tagName&&(11!=n.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(n)));e=e.parentNode);return e}function Pe(t,e){var n=t;do{if(n.nextSibling)return!0}while((n=n.parentNode)&&n!=e);return!1}function Oe(t){try{t.focus()}catch(t){}}function xe(t){return t.parent&&t.parent!=t}function Re(t,e,n,i){var r=n||{};nt(t.ownerDocument);var o=i||ye,s=o.bubbles,a=o.cancelable,u=new MessageEvent(e,{data:r,bubbles:s,cancelable:a});t.dispatchEvent(u)}function Me(t,e){return e!==t&&t.contains(e)}function Ce(t){return t.hasAttribute("i-amphtml-ssr")}function _e(t,e){var n=t.head.querySelector("script[nonce]");if(n){var i=n.nonce||n.getAttribute("nonce");e.setAttribute("nonce",null!=i?i:"")}}function Le(t,e,n,i){return{left:t,top:e,width:n,height:i,bottom:e+i,right:t+n,x:t,y:e}}function Ie(t,e,n){return Le(t.left-t.width*e,t.top-t.height*n,t.width*(1+2*e),t.height*(1+2*n))}function ke(t,e,n){return 0==e&&0==n||0==t.width&&0==t.height?t:Le(t.left+e,t.top+n,t.width,t.height)}function De(){return Se(this)?ge.call(this):Le(0,0,0,0)}function Ne(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 Be=function(){function t(e,n){this.Kt=e,this.Vt=k({root:null,rootMargin:"0px 0px 0px 0px"},n),this.Qt=[],this.Yt=null,t._upgraders.push(this.on.bind(this))}var n=t.prototype;return n.disconnect=function(){this.Yt?this.Yt.disconnect():this.Qt.length=0},n.takeRecords=function(){return this.Yt?this.Yt.takeRecords():[]},n.observe=function(t){this.Yt?this.Yt.observe(t):-1==this.Qt.indexOf(t)&&this.Qt.push(t)},n.unobserve=function(t){if(this.Yt)this.Yt.unobserve(t);else{var e=this.Qt.indexOf(t);-1!=e&&this.Qt.splice(e,1)}},n.on=function(t){var e=new t(this.Kt,this.Vt);this.Yt=e;for(var n,i=a(this.Qt,!0);!(n=i()).done;){var r=n.value;e.observe(r)}this.Qt.length=0},e(t,[{key:"root",get:function(){return this.Yt?this.Yt.root:this.Vt.root||null}},{key:"rootMargin",get:function(){return this.Yt?this.Yt.rootMargin:this.Vt.rootMargin}},{key:"thresholds",get:function(){return this.Yt?this.Yt.thresholds:[].concat(this.Vt.threshold||0)}}]),t}();function Ve(t){return(t=Number(t))?t>0?1:-1:t}Be._upgraders=[];var Ue=Object.prototype.hasOwnProperty;function je(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var o in r)Ue.call(r,o)&&(n[o]=r[o])}return n}function Fe(t){return Object.keys(t).map((function(e){return t[e]}))}function qe(t){return!t.ResizeObserver||!!t.ResizeObserver._stub}var He,ze=function(){function t(e){this.Kt=e,this.Qt=[],this.Yt=null,t._upgraders.push(this.on.bind(this))}var e=t.prototype;return e.disconnect=function(){this.Yt?this.Yt.disconnect():this.Qt.length=0},e.observe=function(t){this.Yt?this.Yt.observe(t):-1==this.Qt.indexOf(t)&&this.Qt.push(t)},e.unobserve=function(t){if(this.Yt)this.Yt.unobserve(t);else{var e=this.Qt.indexOf(t);-1!=e&&this.Qt.splice(e,1)}},e.on=function(t){var e=new t(this.Kt);this.Yt=e;for(var n,i=a(this.Qt,!0);!(n=i()).done;){var r=n.value;e.observe(r)}this.Qt.length=0},t}();function Ge(t,e){var n=e>0?0|e:0;return this.substr(n,t.length)===t}ze._upgraders=[],(He=self).fetch||(Object.defineProperty(He,"fetch",{value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){var r=function(t){return void 0===t?"GET":(t=t.toUpperCase(),nt($t.includes(t)),t)}(e.method||"GET"),o=function(t,e){var n=new XMLHttpRequest;if(!("withCredentials"in n))throw Kt().createExpectedError("CORS is not supported");return n.open(t,e,!0),n}(r,t);"include"==e.credentials&&(o.withCredentials=!0),"document"!==e.responseType&&"text"!==e.responseType||(o.responseType=e.responseType),e.headers&&Object.keys(e.headers).forEach((function(t){o.setRequestHeader(t,e.headers[t])})),o.onreadystatechange=function(){if(!(o.readyState<2))return o.status<100||o.status>599?(o.onreadystatechange=null,void i(Wt().createExpectedError("Unknown HTTP status ".concat(o.status)))):void(4==o.readyState&&n(new Qt(o)))},o.onerror=function(){i(Wt().createExpectedError("Network failure"))},o.onabort=function(){i(Wt().createExpectedError("Request aborted"))},"POST"==r?o.send(e.body):o.send()}))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(He,"Response",{value:te,writable:!0,enumerable:!1,configurable:!0})),function(t){t.Math.sign||t.Object.defineProperty(t.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:Ve})}(self),function(t){t.Object.assign||t.Object.defineProperty(t.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:je})}(self),function(t){t.Object.values||t.Object.defineProperty(t.Object,"values",{configurable:!0,writable:!0,value:Fe})}(self),function(t){t.Array.prototype.includes||t.Object.defineProperty(t.Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:o})}(self),function(t){var e=t.Map,n=new e;if(n.set(0,0)!==n){var i=n.set;t.Object.defineProperty(e.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(){return i.apply(this,arguments),this}})}}(self),function(t){var e=t.WeakMap,n=new e;if(n.set({},0)!==n){var i=n.set;t.Object.defineProperty(e.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(){return i.apply(this,arguments),this}})}}(self),function(t){var e=t.Set,n=new e([1]);if(n.size<1&&(t.Set=function(t){var n=new e;if(t)for(var i=U(t),r=0;r<i.length;r++)n.add(i[r]);return n}),n.add(0)!==n){var i=n.add;t.Object.defineProperty(e.prototype,"add",{enumerable:!1,configurable:!0,writable:!0,value:function(){return i.apply(this,arguments),this}})}}(self),function(t){t.String.prototype.startsWith||t.Object.defineProperty(t.String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:Ge})}(self),self.document&&(function(t){var e=t.HTMLDocument||t.Document;e&&!e.prototype.contains&&t.Object.defineProperty(e.prototype,"contains",{enumerable:!1,configurable:!0,writable:!0,value:_})}(self),function(t){(function(t){if(!t.document)return!1;try{return 0!==t.document.createElement("div").getBoundingClientRect().top}catch(t){return!0}})(t)&&(ge=Element.prototype.getBoundingClientRect,t.Object.defineProperty(t.Element.prototype,"getBoundingClientRect",{value:De}))}(self),function(t,e){var n=t.document,i=function(t){var e=t.customElements;return!!(e&&e.define&&e.get&&e.whenDefined)}(t);if(!(!n||i&&function(t){return-1===t.HTMLElement.toString().indexOf("[native code]")}(t))){var r=!0,o=!1;if(e&&i)try{var s=t.Reflect,a=Object.create(e.prototype);Function.call.call(e,a),o=!(null==s||!s.construct)}catch(t){r=!1}o?function(t){var e=t.HTMLElement,n=t.Reflect;function i(){var t=this.constructor;return n.construct(e,[],t)}M(e,i),t.HTMLElementOrig=t.HTMLElement,t.HTMLElement=i}(t):r&&function(t){var e=t.Element,n=t.HTMLElement,i=t.document,r=i.createElement,o=new R(t),s=new x(t,o);Object.defineProperty(t,"customElements",{enumerable:!0,configurable:!0,value:s});var a=e.prototype,u=a.attachShadow,h=a.createShadowRoot;function c(){var t=this.constructor,e=o.current();if(!e){var n=o.getByConstructor(t);e=r.call(i,n.name)}return C(e,t.prototype),e}u&&(a.attachShadow=function(t){var e=u.apply(this,arguments);return o.observe(e),e},a.attachShadow.toString=function(){return u.toString()}),h&&(a.createShadowRoot=function(){var t=h.apply(this,arguments);return o.observe(t),t},a.createShadowRoot.toString=function(){return h.toString()}),M(n,c),t.HTMLElementOrig=t.HTMLElement,t.HTMLElement=c,c.call||(c.apply=t.Function.apply,c.bind=t.Function.bind,c.call=t.Function.call)}(t)}}(self,(function(){})),function(t){Ne(t)&&function(t){if(!t.IntersectionObserver)return t.IntersectionObserver=Be,void(t.IntersectionObserver._stub=Be);var e=t.IntersectionObserver;t.IntersectionObserver=function(t,e){return function(n,i){var r;return 9===(null==i||null===(r=i.root)||void 0===r?void 0:r.nodeType)?new e(n,i):new t(n,i)}}(t.IntersectionObserver,Be),t.IntersectionObserver._stub=Be,t.IntersectionObserver._native=e}(t),function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get:function(){return this.intersectionRatio>0}})}(t)}(self),function(t){qe(t)&&function(t){t.ResizeObserver||(t.ResizeObserver=ze,t.ResizeObserver._stub=ze)}(t)}(self),function(t){t.AbortController||(Object.defineProperty(t,"AbortController",{configurable:!0,enumerable:!1,writable:!0,value:i}),Object.defineProperty(t,"AbortSignal",{configurable:!0,enumerable:!1,writable:!0,value:r}))}(self));var We="cls",Ye="clstu",Ke="cls-1",Je="pc",Xe="inp",$e="building",Qe="mounting",Ze="loading",tn="complete",en="error";function nn(t){return t.readyState!=Ze&&"uninitialized"!=t.readyState}function rn(t){return t.readyState==tn}function on(t,e){sn(t,nn,e)}function sn(t,e,n){var i=e(t);i?n(t):t.addEventListener("readystatechange",(function r(){e(t)&&(i||(i=!0,n(t)),t.removeEventListener("readystatechange",r))}))}function an(t){return new Promise((function(e){on(t,e)}))}function un(t){return new Promise((function(e){sn(t,rn,e)}))}var hn=["amp-mustache"],cn=/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org(\/.*)?$/;function ln(t){if(!t)return null;var e=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),n=e?e[2]:void 0,i=e?e[3]:void 0;return n&&i?{extensionId:n,extensionVersion:i}:null}function fn(t,e,n){var i=t.document.createElement("script");i.async=!0,mn(e)?n="":i.setAttribute(hn.indexOf(e)>=0?"custom-template":"custom-element",e),i.setAttribute("data-script",e),i.setAttribute("i-amphtml-inserted",""),_e(t.document,i),i.setAttribute("crossorigin","anonymous");var r=function(t,e,n){var i=Tt,r=Lt().rtvVersion,o=n?"-"+n:"";return"".concat(i,"/rtv/").concat(r,"/v0/").concat(e).concat(o).concat(".js")}(t.location,e,n),o={createScriptURL:function(t){return cn.test(t)||"fonts.googleapis.com"===new URL(t).host?t:""}};return self.trustedTypes&&self.trustedTypes.createPolicy&&(o=self.trustedTypes.createPolicy("extension-script#createExtensionScript",o)),i.src=o.createScriptURL(r),i}function dn(t,e,n,i){for(var r=":not([i-amphtml-loaded-new-version])"+(arguments.length>4&&void 0!==arguments[4]&&!arguments[4]?":not([i-amphtml-inserted])":""),o=t.document.head.querySelectorAll('script[src*="/'.concat(e,'-"]').concat(r)),s=[],a=0;a<o.length;a++){var u=o[a],h=ln(u.src);if(h){var c=h.extensionId,l=h.extensionVersion;c==e&&(mn(e)||l==n||"latest"==l&&i)&&s.push(u)}}return s}function mn(t){return t.startsWith("_")}function pn(t,e,n,i){xn(t=En(t),t,e,n),i&&On(t,e)}function vn(t,e,n,i){var r=Tn(t),o=Pn(r);xn(o,r,e,n),i&&On(o,e)}function gn(t,e){return On(t=En(t),e)}function yn(t,e){return On(Pn(Tn(t)),e)}function bn(t,e){var n=Pn(Tn(t));return In(n,e)?On(n,e):null}function wn(t,e){return Rn(Pn(t),e)}function An(t,e){return Mn(Pn(t),e)}function En(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function Sn(t,e){var n=(t.ownerDocument||t).defaultView,i=e||En(n);if(n&&n!=i&&En(n)==i)try{return n.frameElement}catch(t){}return null}function Tn(t){return t.nodeType?function(t){return gn(t,"ampdoc")}(ee(t)).getAmpDoc(t):t}function Pn(t){var e=Tn(t);return e.isSingleDoc()?e.win:e}function On(t,e){Jt(In(t,e));var n=Cn(t)[e];return n.obj||(Jt(n.ctor),Jt(n.context),n.obj=new n.ctor(n.context),Jt(n.obj),n.context=null,n.resolve&&n.resolve(n.obj)),n.obj}function xn(t,e,n,i,r,o){var s=Cn(t),a=s[n];a||(a=s[n]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:o||!1}),!r&&a.ctor||(a.ctor=i,a.context=e,a.sharedInstance=o||!1,a.resolve&&On(t,n))}function Rn(t,e){var n=Mn(t,e);if(n)return n;var i,r,o,s,a=Cn(t);return a[e]=(r=(i=new h).promise,o=i.reject,s=i.resolve,r.catch((function(){})),{obj:null,promise:r,resolve:s,reject:o,context:null,ctor:null}),a[e].promise}function Mn(t,e){var n=Cn(t)[e];return n?n.promise?n.promise:(On(t,e),n.promise=Promise.resolve(n.obj)):null}function Cn(t){var e=t.__AMP_SERVICES;return e||(e=t.__AMP_SERVICES={}),e}function _n(t){return"function"==typeof t.dispose}function Ln(t,e){if(_n(e))try{(function(t){return Jt(_n(t)),t})(e).dispose()}catch(e){Kt().error("SERVICE","failed to dispose service",t,e)}}function In(t,e){var n=t.__AMP_SERVICES&&t.__AMP_SERVICES[e];return!(!n||!n.ctor)}function kn(t,e,n,i){return Dn(t,e,n,i).then((function(t){return function(t,e,n){return Xt(t,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.",e,n,n,n)}(t,e,n)}))}function Dn(t,e,n,i){var r=An(t,e);if(r)return r;var o=Tn(t);return o.whenExtensionsKnown().then((function(){var t=o.getExtensionVersion(n);return t?gn(o.win,"extensions").waitForExtension(n,t):null})).then((function(n){return n?i?An(t,e):wn(t,e):null}))}var Nn,Bn=function(t){return Dn(t,"access","amp-access")},Vn=function(t){return Dn(t,"subscriptions","amp-subscriptions")},Un=function(t){return bn(t,"action")},jn=function(t){return kn(t,"activity","amp-analytics")},Fn=function(t){return Tn(t)},qn=function(t){return gn(t,"ampdoc")},Hn=function(t){return function(t,e){var n=bn(t,e);return n?Promise.resolve(n):Dn(t,e,"amp-bind")}(t,"bind")},zn=function(t){return wn(t,"cid")},Gn=function(t){return gn(t,"crypto")},Wn=function(t){return yn(t,"documentInfo").get()},Yn=function(t){return gn(t,"extensions")},Kn=function(t){return yn(t,"history")},Jn=function(t){return bn(t,"loadingIndicator")},Xn=function(t){return yn(t,"mutator")},$n=function(t){return gn(t,"performance")},Qn=function(t){return gn(t,"platform")},Zn=function(t){return gn(t,"preconnect")},ti=function(t){return yn(t,"resources")},ei=function(t){return wn(t,"storage")},ni=function(t){return function(t){return On(t,"timer")}(t)},ii=function(t){return bn(t,"url-replace")},ri=function(t){return Dn(t,"geo","amp-geo",!0)},oi=function(t){return bn(t,"url")},si=function(t){return yn(t,"viewer")},ai=function(t){return gn(t,"vsync")},ui=function(t){return yn(t,"viewport")},hi=function(t){return gn(t,"xhr")},ci="prerender",li="preview",fi="visible",di="hidden",mi="paused",pi="inactive",vi=function(){function t(){this.vt=null}var e=t.prototype;return e.add=function(t){var e=this;return this.vt||(this.vt=[]),this.vt.push(t),function(){e.remove(t)}},e.remove=function(t){this.vt&&z(this.vt,t)},e.removeAll=function(){this.vt&&(this.vt.length=0)},e.fire=function(t){if(this.vt)for(var e,n=a(this.vt.slice(),!0);!(e=n()).done;)(0,e.value)(t)},e.getHandlerCount=function(){var t,e;return null!==(t=null===(e=this.vt)||void 0===e?void 0:e.length)&&void 0!==t?t:0},t}(),gi=function(){function t(){this.ae=w(),this.we=null}var e=t.prototype;return e.get=function(t){var e=this.ae[t];return null==e?null:e},e.whenSignal=function(t){var e,n=null===(e=this.we)||void 0===e?void 0:e[t];if(!n){var i=this.ae[t];n=null!=i?{promise:"number"==typeof i?Promise.resolve(i):Promise.reject(i)}:new h,this.we||(this.we=w()),this.we[t]=n}return n.promise},e.signal=function(t,e){var n;if(null==this.ae[t]){var i=null!=e?e:Date.now();this.ae[t]=i;var r=null===(n=this.we)||void 0===n?void 0:n[t];null!=r&&r.resolve&&(r.resolve(i),r.resolve=void 0,r.reject=void 0)}},e.rejectSignal=function(t,e){var n;if(null==this.ae[t]){this.ae[t]=e;var i=null===(n=this.we)||void 0===n?void 0:n[t];null!=i&&i.reject&&(i.reject(e),i.promise.catch((function(){})),i.resolve=void 0,i.reject=void 0)}},e.reset=function(t){var e;this.ae[t]&&delete this.ae[t];var n=null===(e=this.we)||void 0===e?void 0:e[t];n&&!n.resolve&&delete this.we[t]},t}(),yi=["Webkit","webkit","Moz","moz","ms","O","o"],bi={getPropertyPriority:function(){return""},getPropertyValue:function(){return""}};function wi(t){var e=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return yi.some((function(t){return e.startsWith(t+"-")}))?"-".concat(e):e}function Ai(t,e,n){if(e.startsWith("--"))return e;Nn||(Nn=w());var i=Nn[e];if(!i||n){if(i=e,void 0===t[e]){var r=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(e),o=function(t,e){for(var n=0;n<yi.length;n++){var i=yi[n]+e;if(void 0!==t[i])return i}return""}(t,r);void 0!==t[o]&&(i=o)}n||(Nn[e]=i)}return i}function Ei(t,e){var n=t.style;for(var i in e)n.setProperty(wi(Ai(n,i)),String(e[i]),"important")}function Si(t,e,n,i,r){var o=Ai(t.style,e,r);if(o){var s=i?n+i:n;t.style.setProperty(wi(o),s)}}function Ti(t,e){for(var n in e)Si(t,n,e[n])}function Pi(t,e){void 0===e&&(e=t.hasAttribute("hidden")),e?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function Oi(t){return"".concat(t,"px")}function xi(t,e){return t.getComputedStyle(e)||bi}function Ri(t){var e=t[Ai(t,"visibilityState",!0)];if(e)return e;var n=Ai(t,"hidden",!0);return n in t&&t[n]?di:fi}function Mi(t,e){if(t.addEventListener){var n=_i(t);n&&t.addEventListener(n,e)}}function Ci(t,e){if(t.removeEventListener){var n=_i(t);n&&t.removeEventListener(n,e)}}function _i(t){var e=Ai(t,"hidden",!0),n=e.indexOf("Hidden");return-1!=n?e.substring(0,n)+"Visibilitychange":"visibilitychange"}var Li=function(){function t(){}return t.getTop=function(t){return t.top},t.getLocation=function(t){return t.location},t.getDocumentReferrer=function(t){return t.document.referrer},t.getHostname=function(t){return t.location.hostname},t.getUserAgent=function(t){return t.navigator.userAgent},t.getUserLanguage=function(t){return t.navigator.userLanguage||t.navigator.language},t.getDevicePixelRatio=function(){return self.devicePixelRatio||1},t.getSendBeacon=function(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)},t.getXMLHttpRequest=function(t){return t.XMLHttpRequest},t.getImage=function(t){return t.Image},t}(),Ii="-ampdoc-ext-known",ki="-ampdoc-first-visible",Di="-ampdoc-next-visible",Ni="-ampdoc-first-previewed",Bi=function(){function t(t,e,n){this.win=t,this.Ae=null,e&&(this.Ae=new Ui(t,{params:qi(t,n)}),t.document.__AMPDOC=this.Ae)}var e=t.prototype;return e.isSingleDoc=function(){return!!this.Ae},e.getSingleDoc=function(){return Jt(this.Ae)},e.xe=function(t){return t.everAttached&&"function"==typeof t.getAmpDoc?t.getAmpDoc():null},e.getAmpDocIfAvailable=function(t){for(var e=t;e;){var n=this.xe(t);if(n)return n;var i=Te(e);if(!i)break;var r=i.__AMPDOC;if(r)return r;e=i.host?i.host:Sn(i,this.win)}return null},e.getAmpDoc=function(t){var e=this.getAmpDocIfAvailable(t);if(!e)throw Kt().createError("No ampdoc found for",t);return e},e.installShadowDoc=function(t,e,n){Jt(!e.__AMPDOC);var i=new ji(this.win,t,e,n);return e.__AMPDOC=i,i},e.installFieDoc=function(t,e,n){var i=e.document;Jt(!i.__AMPDOC);var r=Jt(e.frameElement),o=new Fi(e,t,this.getAmpDoc(r),n);return i.__AMPDOC=o,o},t}(),Vi=function(){function t(t,e,n){var i=this;this.win=t,this.Ee=w(),this.Pe=e,this.Te=n&&n.signals||new gi,this.Oe=n&&n.params||w(),this.Ie=null,this.Re={};var r,o=this.Oe.visibilityState;Jt(!o||"prerender"===(r=o)||"preview"===r||"visible"===r||"hidden"===r||"paused"===r||"inactive"===r),this.Se=n&&n.visibilityState||o||null,this.J=null,this._e=new vi,this.Me=null,this.ke=[];var s=this.Yi.bind(this);this.Pe&&this.ke.push(this.Pe.onVisibilityChanged(s)),Mi(this.win.document,s),this.ke.push((function(){return Ci(i.win.document,s)})),this.Yi()}var e=t.prototype;return e.dispose=function(){(function(t){var e=Cn(t),n=function(t){if(!Object.prototype.hasOwnProperty.call(e,t))return"continue";var n=e[t];if(n.sharedInstance)return"continue";n.obj?Ln(t,n.obj):n.promise&&n.promise.then((function(e){return Ln(t,e)}))};for(var i in e)n(i)})(this),this.ke.forEach((function(t){return t()}))},e.isSingleDoc=function(){return Jt(null)},e.getParent=function(){return this.Pe},e.signals=function(){return this.Te},e.getParam=function(t){var e=this.Oe[t];return null==e?null:e},e.getMeta=function(){var t=this;return this.Ie||(this.Ie=w(),this.win.document.head.querySelectorAll("meta[name]").forEach((function(e){var n=e.getAttribute("name"),i=e.getAttribute("content");n&&null!==i&&void 0===t.Ie[n]&&(t.Ie[n]=i)}))),w(this.Ie)},e.getMetaByName=function(t){if(!t)return null;var e=this.getMeta()[t];return void 0!==e?e:null},e.setMetaByName=function(t,e){Jt(null)},e.declaresExtension=function(t,e){var n=this.Re[t];return!(!n||e&&n!==e)},e.declareExtension=function(t,e){Jt(!this.Re[t]||this.Re[t]===e),this.Re[t]=e},e.getExtensionVersion=function(t){return this.Re[t]||null},e.setExtensionsKnown=function(){this.Te.signal(Ii)},e.whenExtensionsKnown=function(){return this.Te.whenSignal(Ii)},e.getRootNode=function(){return Jt(null)},e.getHeadNode=function(){},e.isBodyAvailable=function(){return Jt(!1)},e.getBody=function(){return Jt(null)},e.waitForBodyOpen=function(){return Jt(null)},e.isReady=function(){return Jt(null)},e.whenReady=function(){return Jt(null)},e.getUrl=function(){return Jt(null)},e.getElementById=function(t){return this.getRootNode().getElementById(t)},e.contains=function(t){return this.getRootNode().contains(t)},e.overrideVisibilityState=function(t){this.Se!=t&&(this.Se=t,this.Yi())},e.Yi=function(){for(var t,e=Ri(this.win.document),n=fi,i=this.Pe;i;i=i.getParent())if(i.getVisibilityState()!=fi){n=i.getVisibilityState();break}var r=this.Se||fi;if(t=r==fi&&n==fi&&e==fi?fi:e==di&&r==mi?e:r==mi||r==pi?r:n==mi||n==pi?n:r==li||e==li||n==li?li:r==ci||e==ci||n==ci?ci:di,this.J!=t){if(t==fi){var o,s=this.win.performance,a=Math.floor(null!==(o=s.timeOrigin)&&void 0!==o?o:s.timing.navigationStart);null!=this.J&&(a+=Math.floor(s.now())),this.Me=a,this.Te.signal(ki,a),this.Te.signal(Di,a)}else this.Te.reset(Di);t==li&&this.Te.signal(Ni),this.J=t,this._e.fire()}},e.whenFirstPreviewedOrVisible=function(){return Promise.race([this.whenFirstPreviewed(),this.whenFirstVisible()])},e.whenFirstPreviewed=function(){return this.Te.whenSignal(Ni).then((function(){}))},e.whenFirstVisible=function(){return this.Te.whenSignal(ki).then((function(){}))},e.whenNextVisible=function(){return this.Te.whenSignal(Di).then((function(){}))},e.getFirstVisibleTime=function(){return this.Te.get(ki)},e.getLastVisibleTime=function(){return this.Me},e.getVisibilityState=function(){return Jt(this.J)},e.isPreview=function(){return this.J==li},e.isVisible=function(){return this.J==fi},e.hasBeenVisible=function(){return null!=this.getLastVisibleTime()},e.onVisibilityChanged=function(t){return this._e.add(t)},e.registerSingleton=function(t){return!this.Ee[t]&&(this.Ee[t]=!0,!0)},t}(),Ui=function(t){N(n,t);var e=V(n);function n(t,n){var i;return(i=e.call(this,t,null,n)).Ce=i.win.document.body?Promise.resolve(i.win.document.body):Ae(i.win.document).then((function(){return i.getBody()})),i.Ne=an(i.win.document),i}var i=n.prototype;return i.isSingleDoc=function(){return!0},i.getRootNode=function(){return this.win.document},i.getUrl=function(){return Li.getLocation(this.win).href},i.getHeadNode=function(){return this.win.document.head},i.isBodyAvailable=function(){return!!this.win.document.body},i.getBody=function(){return this.win.document.body},i.waitForBodyOpen=function(){return this.Ce},i.isReady=function(){return nn(this.win.document)},i.whenReady=function(){return this.Ne},n}(Vi),ji=function(t){N(n,t);var e=V(n);function n(t,n,i,r){var o;(o=e.call(this,t,null,r)).je=n,o.De=i,o.Le=null;var s=new h;o.Ce=s.promise,o.Ue=s.resolve,o.ze=!1;var a=new h;return o.Ne=a.promise,o.He=a.resolve,o}var i=n.prototype;return i.isSingleDoc=function(){return!1},i.getRootNode=function(){return this.De},i.getUrl=function(){return this.je},i.getHeadNode=function(){return this.De},i.isBodyAvailable=function(){return!!this.Le},i.getBody=function(){return this.Le},i.setBody=function(t){Jt(!this.Le),this.Le=t,this.Ue(t),this.Ue=void 0},i.waitForBodyOpen=function(){return this.Ce},i.isReady=function(){return this.ze},i.setReady=function(){Jt(!this.ze),this.ze=!0,this.He(),this.He=void 0},i.whenReady=function(){return this.Ne},i.getMeta=function(){return w(this.Ie)},i.setMetaByName=function(t,e){Jt(t),this.Ie||(this.Ie=w()),this.Ie[t]=e},n}(Vi),Fi=function(t){N(n,t);var e=V(n);function n(t,n,i,r){var o;(o=e.call(this,t,i,r)).je=n,o.Ce=o.win.document.body?Promise.resolve(o.win.document.body):Ae(o.win.document).then((function(){return o.getBody()})),o.ze=!1;var s=new h;return o.Ne=s.promise,o.He=s.resolve,o}var i=n.prototype;return i.isSingleDoc=function(){return!1},i.getRootNode=function(){return this.win.document},i.getUrl=function(){return this.je},i.getHeadNode=function(){return this.win.document.head},i.isBodyAvailable=function(){return!!this.win.document.body},i.getBody=function(){return this.win.document.body},i.waitForBodyOpen=function(){return this.Ce},i.isReady=function(){return this.ze},i.whenReady=function(){return this.Ne},i.setReady=function(){Jt(!this.ze),this.ze=!0,this.He(),this.He=void 0},n}(Vi);function qi(t,e){var n=w();return e?Object.assign(n,e):(t.name&&0==t.name.indexOf("__AMP__")&&Object.assign(n,vt(t.name.substring(7))),t.location&&t.location.hash&&Object.assign(n,vt(t.location.hash))),n}function Hi(t){if(!t.hasAttribute("src")&&"srcset"in t==0){var e=t.getAttribute("srcset")||"",n=/\S+/.exec(e);if(null==n)return;var i=n[0];t.setAttribute("src",i)}}var zi="nodisplay",Gi="fixed",Wi="fixed-height",Yi="responsive",Ki="container",Ji="fill",Xi="flex-item",$i="fluid",Qi="intrinsic",Zi=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function tr(t){if("nodisplay"===(e=t)||"fixed"===e||"fixed-height"===e||"responsive"===e||"container"===e||"fill"===e||"flex-item"===e||"fluid"===e||"intrinsic"===e)return t;var e}function er(t){return"i-amphtml-layout-"+t}function nr(t){return t==Gi||t==Wi||t==Yi||t==Ji||t==Xi||t==$i||t==Qi}function ir(t){return"number"==typeof t?t+"px":t&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(t)?/^\d+(\.\d+)?$/.test(t)?t+"px":t:void 0}function rr(t){!function(t){st(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(null!=t?t:""),"Invalid length value: %s",t)}(t);var e=/[a-z]+/i.exec(null!=t?t:"");return st(e,"Failed to read units from %s",t),e[0]}function or(t){var e=parseFloat(t);return K(e)?e:void 0}function sr(t,e){t.classList.add("i-amphtml-fill-content"),e&&t.classList.add("i-amphtml-replaced-content")}function ar(t,e,n,i){for(var r,o=a(F(t),!0);!(r=o()).done;){var s=r.value,u=e.getAttribute(s);null!==u?n.setAttribute(s,u):i&&n.removeAttribute(s)}}var ur,hr="amp:attached",cr="amp:load-start",lr="amp:load-end",fr="ready-upgrade",dr="upgraded",mr="built",pr="mounted",vr="load-start",gr="render-start",yr="load-end",br="unload",wr=function(){function t(t,e){this.t=t,this.Kt=e,this.Ge={},this.Ve=null}var e=t.prototype;return e.start=function(){this.Ve=this.Ge,this.Ge={}},e.resolveMatchQuery=function(t){return"1"===this.Fe(t,Ar,"1")},e.resolveListQuery=function(t){return this.Fe(t,Er,"")},e.complete=function(){for(var t in this.Ve)t in this.Ge||Sr(this.Ve[t],this.Kt,!1);this.Ve=null},e.dispose=function(){for(var t in this.Ge)Sr(this.Ge[t],this.Kt,!1);this.Ge={}},e.Fe=function(t,e,n){if(!t.trim())return n;var i=this.Ge[t];return i||(nt(this.Ve),i=this.Ve[t]),i||Sr(i=e(this.t,t),this.Kt,!0),this.Ge[t]=i,function(t){for(var e=0;e<t.length;e++){var n=t[e],i=n.query,r=n.value;if(!i||i.matches)return r}return""}(i)},t}();function Ar(t,e){return[{query:t.matchMedia(e),value:"1"},{query:null,value:""}]}function Er(t,e){return e.split(",").map((function(e){if(0!=(e=e.replace(/\s+/g," ").trim()).length){var n,i,r;if(")"==e.charAt(e.length-1)){var o=1;for(r=e.length-2;r>=0;r--){var s=e.charAt(r);if("("==s?o--:")"==s&&o++,0==o)break}var a=r-1;if(r>0)for(r--;r>=0;r--){var u=e.charAt(r);if(!("%"==u||"-"==u||"_"==u||u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"))break}if(r>=a)return null}else for(r=e.length-2;r>=0;r--){var h=e.charAt(r);if(!("%"==h||"."==h||h>="a"&&h<="z"||h>="A"&&h<="Z"||h>="0"&&h<="9"))break}return r>=0?(n=e.substring(0,r+1).trim(),i=e.substring(r+1).trim()):(i=e,n=void 0),i?{query:n?t.matchMedia(n):null,value:i}:null}})).filter(Boolean)}function Sr(t,e,n){for(var i=0;i<t.length;i++){var r=t[i].query;r&&(void 0!==r.onchange?r.onchange=n?e:null:n?r.addListener(e):r.removeListener(e))}}function Tr(t){var e=t.ownerDocument||t;return ur&&ur.ownerDocument===e||(ur=e.createElement("div")),Pr}function Pr(t){return function(t,e){if(nt(1===e.length),nt(Array.isArray(e)||A(e,"raw")),self.trustedTypes&&self.trustedTypes.createPolicy){var n=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return e[0]}});t.innerHTML=n.createHTML("ignored")}else t.innerHTML=e[0];var i=t.firstElementChild;return nt(i),nt(!i.nextElementSibling),t.removeChild(i),i}(ur,t)}var Or=['<i-amphtml-sizer class=i-amphtml-sizer slot=i-amphtml-svc><img alt="" role=presentation aria-hidden=true class=i-amphtml-intrinsic-sizer></i-amphtml-sizer>'],xr={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function Rr(t){var e=t.getAttribute("layout"),n=t.getAttribute("width"),i=t.getAttribute("height"),r=t.getAttribute("sizes"),o=t.getAttribute("heights"),s=e?tr(e):null;st(void 0!==s,'Invalid "layout" value: %s, %s',e,t);var a=n&&"auto"!=n?ir(n):n;st(void 0!==a,'Invalid "width" value: %s, %s',n,t);var u,h,c,l,f=i&&"fluid"!=i?ir(i):i;if(st(void 0!==f,'Invalid "height" value: %s, %s',i,t),s&&s!=Gi&&s!=Wi||a&&f||(l=(l=t.tagName).toUpperCase(),void 0===xr[l]))u=a,h=f;else{var d=function(t){var e=t.tagName.toUpperCase();if(nt(void 0!==xr[e]),!xr[e]){var n=t.ownerDocument,i=e.replace(/^AMP\-/,""),r=n.createElement(i);r.controls=!0,Ti(r,{position:"absolute",visibility:"hidden"}),n.body.appendChild(r),xr[e]={width:(r.offsetWidth||1)+"px",height:(r.offsetHeight||1)+"px"},n.body.removeChild(r)}return xr[e]}(t);u=a||s==Wi?a:d.width,h=f||d.height}return(c=s||(u||h?"fluid"==h?$i:!h||u&&"auto"!=u?h&&u&&(r||o)?Yi:Gi:Wi:Ki))!=Gi&&c!=Wi&&c!=Yi&&c!=Qi||st(h,'The "height" attribute is missing: %s',t),c==Wi&&st(!u||"auto"==u,'The "width" attribute must be missing or "auto": %s',t),c!=Gi&&c!=Yi&&c!=Qi||st(u&&"auto"!=u,'The "width" attribute must be present and not "auto": %s',t),c==Yi||c==Qi?st(rr(u)==rr(h),'Length units should be the same for "width" and "height": %s, %s, %s',n,i,t):st(null===o,'"heights" attribute must be missing: %s',t),{layout:c,width:u,height:h}}var Mr,Cr="EXPERIMENTS",_r="amp-experiment-toggles",Lr="__AMP__EXPERIMENT_TOGGLES";function Ir(t,e){return!!Dr(t)[e]}function kr(t,e,n,i){var r=Ir(t,e),o=null!=n?n:!r;if(o!=r&&(Dr(t)[e]=o,!i)){var s=Nr(t);s[e]=o,function(t,e){var n=[];for(var i in e)n.push((!1===e[i]?"-":"")+i);try{var r;null===(r=t.localStorage)||void 0===r||r.setItem(_r,n.join(","))}catch(t){Wt().error(Cr,"Failed to save experiments to localStorage.")}}(t,s),Wt().warn(Cr,'"%s" experiment %s for the domain "%s". See: https://amp.dev/documentation/guides-and-tutorials/learn/experimental',e,o?"enabled":"disabled",t.location.hostname)}return o}function Dr(t){var e,n,i,r,o;if(t[Lr])return t[Lr];t[Lr]=w();var s=t[Lr];nt(s);var u=k(k({},null!==(e=t.AMP_CONFIG)&&void 0!==e?e:{}),null!==(n=t.AMP_EXP)&&void 0!==n?n:at((null===(i=t.__AMP_EXP)||void 0===i?void 0:i.textContent)||"{}"));for(var h in u){var c=u[h];"number"==typeof c&&c>=0&&c<=1&&(s[h]=Math.random()<c)}var l=null===(r=t.AMP_CONFIG)||void 0===r?void 0:r["allow-doc-opt-in"];if(j(l)&&l.length){var f=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(f)for(var d,m,p=a((null===(d=f.getAttribute("content"))||void 0===d?void 0:d.split(","))||[],!0);!(m=p()).done;){var v=m.value;l.includes(v)&&(s[v]=!0)}}Object.assign(s,Nr(t));var g=null===(o=t.AMP_CONFIG)||void 0===o?void 0:o["allow-url-opt-in"];if(j(g)&&g.length)for(var y,b=vt(t.location.originalHash||t.location.hash),A=a(g,!0);!(y=A()).done;){var E=y.value,S=b["e-".concat(E)];"1"==S&&(s[E]=!0),"0"==S&&(s[E]=!1)}return s}function Nr(t){var e,n="";try{var i;"localStorage"in t&&(n=null!==(i=t.localStorage.getItem(_r))&&void 0!==i?i:"")}catch(t){Kt().warn(Cr,"Failed to retrieve experiments from localStorage.")}for(var r,o=(null===(e=n)||void 0===e?void 0:e.split(/\s*,\s*/g))||[],s=w(),u=a(o,!0);!(r=u()).done;){var h=r.value;h&&("-"==h[0]?s[h.substr(1)]=!1:s[h]=!0)}return s}function Br(t,e,n,i){var r=t,o=n,s=function(t){try{return o(t)}catch(t){var e,n;throw null===(e=(n=self).__AMP_REPORT_ERROR)||void 0===e||e.call(n,t),t}},a=function(){if(void 0!==Mr)return Mr;Mr=!1;try{var t={get capture(){return Mr=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return Mr}(),u=!(null==i||!i.capture);return r.addEventListener(e,s,a?i:u),function(){null==r||r.removeEventListener(e,s,a?i:u),o=null,r=null,s=null}}var Vr="Failed to load:";function Ur(t,e,n,i){var r={detail:n};if(Object.assign(r,i),"function"==typeof t.CustomEvent)return new t.CustomEvent(e,r);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(e,!!r.bubbles,!!r.cancelable,n),o}function jr(t,e,n,i){return Br(t,e,n,i)}function Fr(t){return t.data}function qr(t,e,n,i){var r=n,o=Br(t,e,(function(t){try{r(t)}finally{r=null,o()}}),i);return o}function Hr(t){var e,n;if(function(t){return!!(t.complete||"complete"==t.readyState||zr(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);var i=zr(t);return i&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise((function(r,o){if(e=i?qr(t,"loadedmetadata",r,{capture:!0}):qr(t,"load",r),t.tagName){var s=t;if(i&&!t.hasAttribute("src")&&!(s=me(t,(function(t){return"SOURCE"===t.tagName}))))return o(new Error("Media has no source."));n=qr(s,"error",o)}})).then((function(){return n&&n(),t}),(function(){e&&e(),function(t){zr(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);var e=t;throw e&&e.src&&(e=e.src),Wt().createError(Vr,e)}(t)}))}function zr(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var Gr={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]",variant:"amp-experiment"};function Wr(t){var e=t.document;return Jt(e.body),Object.keys(Gr).filter((function(t){return e.querySelector(Gr[t])}))}function Yr(t,e,n,i,r){var o=t.getHeadNode(),s=function(t,e,n,i){var r=t.__AMP_CSS_SM;r||(r=t.__AMP_CSS_SM=w());var o=!n&&i&&"amp-custom"!=i&&"amp-keyframes"!=i,s=n?"amp-runtime":o?"amp-extension=".concat(i):null;if(s){var a=Kr(t,r,s);if(a)return"STYLE"==a.tagName&&a.textContent!==e&&(a.textContent=e),a}var u=(t.ownerDocument||t).createElement("style");u.textContent=e;var h=null;return n?u.setAttribute("amp-runtime",""):o?(u.setAttribute("amp-extension",i||""),h=Kr(t,r,"amp-runtime")):(i&&u.setAttribute(i,""),h=t.lastChild),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(n){var i=n.nextSibling;t.insertBefore(e,i)}else!function(t,e){t.insertBefore(e,t.firstChild)}(t,e)}(t,u,h),s&&(r[s]=u),u}(o,function(t,e){var n=t.__AMP_CSS_TR;return n?n(e):e}(o,e),i||!1,r||null);if(n){var a=t.getRootNode();if(Qr(a,s))return n(s),s;var u=setInterval((function(){Qr(a,s)&&(clearInterval(u),n(s))}),4)}return s}function Kr(t,e,n){if(e[n])return e[n];var i=t.querySelector("style[".concat(n,"], link[").concat(n,"]"));return i?(e[n]=i,i):null}var Jr=!1;function Xr(t){Jt(t.defaultView),Jr||(Jr=!0,$r(t))}function $r(t){Ti(t.body,{opacity:1,visibility:"visible",animation:"none"})}function Qr(t,e){for(var n=t.styleSheets,i=0;i<n.length;i++)if(n[i].ownerNode==e)return!0;return!1}var Zr,to,eo=function(){function t(t){this.zt=t,this.It=0,this.Ct=0,this.Ot=w()}var e=t.prototype;return e.has=function(t){return!!this.Ot[t]},e.get=function(t){var e=this.Ot[t];if(e)return e.access=++this.Ct,e.payload},e.put=function(t,e){this.has(t)||this.It++,this.Ot[t]={payload:e,access:this.Ct},this.qt()},e.qt=function(){if(!(this.It<=this.zt)){var t,e=this.Ot,n=this.Ct+1;for(var i in e){var r=e[i].access;r<n&&(n=r,t=i)}void 0!==t&&(delete e[t],this.It--)}},t}(),no=new Set(["c","v","a","ad"]),io="__amp_source_origin",ro=function(t){return"string"==typeof t?oo(t):t};function oo(t,e){return Zr||(Zr=self.document.createElement("a"),to=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new eo(100))),so(Zr,t,e?null:to)}function so(t,e,n){if(n&&n.has(e))return n.get(e);t.href=e,t.protocol||(t.href=t.href);var i,r={href:t.href,protocol:t.protocol,host:t.host,hostname:t.hostname,port:"0"==t.port?"":t.port,pathname:t.pathname,search:t.search,hash:t.hash,origin:null};"/"!==r.pathname[0]&&(r.pathname="/"+r.pathname),("http:"==r.protocol&&80==r.port||"https:"==r.protocol&&443==r.port)&&(r.port="",r.host=r.hostname),i=t.origin&&"null"!=t.origin?t.origin:"data:"!=r.protocol&&r.host?r.protocol+"//"+r.host:r.href,r.origin=i;var o=r;return n&&n.put(e,o),o}function ao(t,e,n){if(!e)return t;var i=t.split("#",2),r=i[0].split("?",2);return r[0]+(r[1]?n?"?".concat(e,"&").concat(r[1]):"?".concat(r[1],"&").concat(e):"?".concat(e))+(i[1]?"#".concat(i[1]):"")}function uo(t,e){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))}function ho(t,e){return ao(t,co(e))}function co(t){var e=[];for(var n in t){var i=t[n];if(null!=i){i=F(i);for(var r=0;r<i.length;r++)e.push(uo(n,i[r]))}}return e.join("&")}function lo(t){return"https:"==(t=ro(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||G(t.hostname,".localhost")}function fo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"source";return Xt(null!=t,"%s %s must be available",e,n),Xt(lo(t)||/^\/\//.test(t),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',e,n,t),t}function mo(t){var e=t.indexOf("#");return-1==e?t:t.substring(0,e)}function po(t){return bt.test(ro(t).origin)}function vo(t){return!(t&&dt.includes(ro(t).protocol))}function go(t){var e=oo(t),n=e.hash;return e.origin+e.pathname+yo(e.search)+n}function yo(t){return function(t){if(!t||"?"==t)return"";var e=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),n=t.replace(e,"").replace(/^[?&]/,"");return n?"?"+n:""}(t)}function bo(t){if(!po(t=ro(t)))return t.href;var e=t.pathname.split("/"),n=e[1];Xt(no.has(n),"Unknown path prefix in url %s",t.href);var i=e[2],r="s"==i?"https://"+decodeURIComponent(e[3]):"http://"+decodeURIComponent(i);return Xt(r.indexOf(".")>0,"Expected a . in origin %s",r),e.splice(1,"s"==i?3:2),r+e.join("/")+yo(t.search)+(t.hash||"")}function wo(t){return oo(bo(t)).origin}function Ao(t,e){return e=ro(e),"function"==typeof URL?new URL(t,e.href).toString():function(t,e){e=ro(e);var n=oo(t=t.replace(/\\/g,"/"));return t.toLowerCase().startsWith(n.protocol)?n.href:t.startsWith("//")?e.protocol+t:t.startsWith("/")?e.origin+t:e.origin+e.pathname.replace(/\/[^/]*$/,"/")+t}(t,e)}function Eo(t,e){return So(e),function(t,e,n){return ao(t,uo("__amp_source_origin",n),void 0)}(e,0,wo(t.location.href))}function So(t){var e=vt(oo(t).search);Xt(!(io in e),"Source origin is not allowed in %s",t)}var To="CANCELLED",Po="BLOCK_BY_CONSENT",Oo=self.__AMP_ERRORS||[];self.__AMP_ERRORS=Oo;var xo=function(t){return(e=0,n=function(){var t=Math.pow(1.5,e++);return 1e3*(t+function(t,e){var n=t*(e=e||.3)*Math.random();return Math.random()>.5&&(n*=-1),n}(t))},xo=function(t){return setTimeout(t,n())})(t);var e,n};function Ro(t,e){try{if(t)if(void 0!==t.message)t=l(t);else{var n=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(e){return String(t)}}(n))).origError=n}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){var i=H(t.messageArray,(function(t){return null==t?void 0:t.tagName}));i>-1&&(t.associatedElement=t.messageArray[i])}var r=e||t.associatedElement;if(r&&r.classList&&(r.classList.add("i-amphtml-error"),Lt().development&&(r.classList.add("i-amphtml-element-error"),r.setAttribute("error-message",t.message))),self.console&&(Q(t.message)||!t.expected)){var o=console.error||console.log;t.messageArray?o.apply(console,t.messageArray):r?o.call(console,t.message,r):o.call(console,t.message)}r&&r.dispatchCustomEventForTesting&&r.dispatchCustomEventForTesting("amp:error",t.message),_o.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Mo(){return new Error(To)}function Co(t){return!!t&&("string"==typeof t?t.startsWith(Po):"string"==typeof t.message&&t.message.startsWith(Po))}function _o(t,e,n,i,r){var o=this;if(!this||!this.document||r&&r.expected||Xr(this.document),!Lt().development){var s=!1;try{s=function(t){if(!t.document)return!1;for(var e=t.document.querySelectorAll("script[src]"),n=0;n<e.length;n++)if(!po(e[n].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(!(s&&Math.random()<.99)){var a=function(t,e,n,i,r,o){t=function(t,e){return e&&(t=e.message?e.message:String(e)),t||(t="Unknown error"),t}(t,r);var s,a,u=!(!r||!r.expected);if(!/_reported_/.test(t)&&t!=To){var h=!(self&&self.window),c=Math.random();if(!((function(t){return-1!=t.indexOf(Vr)}(t)||"Script error."==t||h)&&(u=!0,c<.9999))){var l=Q(t);if(!(l&&c<.99)){var f=Object.create(null);f.v=Lt().rtvVersion,f.noAmp=o?"1":"0",f.m=t.replace(J,""),f.a=l?"1":"0",f.ex=u?"1":"0",f.dw=h?"1":"0";var d="1p";if(self.context&&self.context.location?(d="3p",f["3p"]="1"):Lt().runtime&&(d=Lt().runtime),f.rt=d,f.cdn=Tt,"inabox"===d&&(f.adid=Lt().a4aId),f.ca=null!==(a=self.AMP_CONFIG)&&void 0!==a&&a.canary?"1":"0",f.bt=(null===(s=self.AMP_CONFIG)||void 0===s?void 0:s.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(f.or=self.location.ancestorOrigins[0]),self.viewerState&&(f.vs=self.viewerState),self.parent&&self.parent!=self&&(f.iem="1"),self.AMP&&self.AMP.viewer){var m=self.AMP.viewer.getResolvedViewerUrl(),p=self.AMP.viewer.maybeGetMessagingOrigin();m&&(f.rvu=m),p&&(f.mso=p)}var v,g,y,b=[],w=self[Lr]||null;for(var A in w){var E=w[A];b.push("".concat(A,"=").concat(E?"1":"0"))}return f.exps=b.join(","),r?(f.el=(null===(v=r.associatedElement)||void 0===v?void 0:v.tagName)||"u",r.args&&(f.args=JSON.stringify(r.args)),l||r.ignoreStack||!r.stack||(f.s=r.stack),r.message&&(r.message+=" _reported_")):(f.f=e||"",f.l=n||"",f.c=i||""),f.r=self.document?self.document.referrer:"",f.ae=Oo.join(","),f.fr=self.location.originalHash||self.location.hash,"production"===f.bt&&(f.pt="1"),y=t,(g=Oo).length>=25&&g.splice(0,g.length-25+1),g.push(y),f}}}}(t,e,n,i,r,s);a&&xo((function(){try{return function(t,e){return e.pt&&Math.random()<.9?u():function(t,e){var n=qn(t);if(!n.isSingleDoc())return Promise.resolve(!1);var i=n.getSingleDoc();if(!i.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);var r=si(i);return r.hasCapability("errorReporter")?r.isTrustedViewer().then((function(t){return!!t&&(r.sendMessage("error",{m:(n=e).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,e).then((function(t){if(!t){var n=new XMLHttpRequest;n.open("POST",Math.random()<.1?xt:Ot,!0),n.send(JSON.stringify(e))}}))}(o,a).catch((function(){}))}catch(t){}}))}}}var Lo="Resource",Io=function(){function t(t,e,n){e.__AMP__RESOURCE=this,this.Be=t,this.element=e,this.debugid=e.tagName.toLowerCase()+"#"+t,this.hostWin=e.ownerDocument.defaultView,this.qe=n,this.We=e.hasAttribute("placeholder"),this.$e=!1,this.Ye=void 0,this.Ke=e.isBuilt()?1:0,0==this.Ke&&e.isBuilding()&&this.build(),this.Xe=-1,this.Je=0,this.Qe=null,this.Ze=null,this.tu=!1,this.nu=Le(-1e4,-1e4,0,0),this.iu=null,this.ru=!1,this.eu=null,this.uu=null,this.ou=void 0;var i=new h;this.su=i.promise,this.hu=i.resolve,this.au=!1}t.forElement=function(e){return Jt(t.forElementOptional(e))},t.forElementOptional=function(t){return t.__AMP__RESOURCE},t.setOwner=function(e,n){Jt(n.contains(e)),t.forElementOptional(e)&&t.forElementOptional(e).updateOwner(n),e.__AMP__OWNER=n;for(var i=e.getElementsByClassName("i-amphtml-element"),r=0;r<i.length;r++){var o=i[r];t.forElementOptional(o)&&t.forElementOptional(o).updateOwner(void 0)}};var e=t.prototype;return e.getId=function(){return this.Be},e.updateOwner=function(t){this.Ye=t},e.getOwner=function(){if(void 0===this.Ye){for(var t=this.element;t;t=t.parentElement)if(t.__AMP__OWNER){this.Ye=t.__AMP__OWNER;break}void 0===this.Ye&&(this.Ye=null)}return this.Ye},e.hasOwner=function(){return!!this.getOwner()},e.getLayoutPriority=function(){return-1!=this.Xe?this.Xe:this.element.getLayoutPriority()},e.updateLayoutPriority=function(t){this.Xe=t},e.getState=function(){return this.Ke},e.isBuilt=function(){return this.element.isBuilt()},e.isBuilding=function(){return this.$e},e.whenBuilt=function(){return this.element.signals().whenSignal("res-built")},e.build=function(){var t=this;return this.$e||!this.element.isUpgraded()?null:(this.$e=!0,this.element.buildInternal().then((function(){t.$e=!1,t.Ke=1,t.element.signals().signal("res-built")}),(function(e){throw t.maybeReportErrorOnBuildFailure(e),t.$e=!1,t.element.signals().rejectSignal("res-built",e),e})))},e.maybeReportErrorOnBuildFailure=function(t){Co(t)||Kt().error(Lo,"failed to build:",this.debugid,t)},e.changeSize=function(t,e,n){this.element.applySize(t,e,n),this.requestMeasure()},e.overflowCallback=function(t,e,n,i){t&&(this.ou={height:e,width:n,margins:i}),this.element.overflowCallback(t,e,n,i)},e.resetPendingChangeSize=function(){this.ou=void 0},e.getPendingChangeSize=function(){return this.ou},e.getUpgradeDelayMs=function(){return this.element.getUpgradeDelayMs()},e.measure=function(){if(!(this.We&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-"))||"__AMP__RESOURCE"in this.element.parentElement)if(this.element.ownerDocument&&this.element.ownerDocument.defaultView){this.ru=!1;var t=this.nu;this.fu();var e,n,i=this.nu,r=(n=i,!((e=t).width==n.width&&e.height===n.height));(1==this.Ke||t.top!=i.top||r)&&this.element.isUpgraded()&&(1==this.Ke?this.Ke=2:4!=this.Ke&&5!=this.Ke||!this.element.isRelayoutNeeded()||(this.Ke=2)),this.hasBeenMeasured()||(this.iu=i),this.element.updateLayoutBox(i,r)}else this.Ke=1},e.ensureMeasured=function(){var t=this;return this.hasBeenMeasured()?u():ai(this.hostWin).measure((function(){return t.measure()}))},e.fu=function(){var t=ui(this.element);this.nu=t.getLayoutRect(this.element);var e=!1;if(t.supportsPositionFixed()&&this.isDisplayed())for(var n=this.qe.getAmpdoc().win,i=n.document.body,r=this.element;r&&r!=i;r=r.offsetParent){if(r.isAlwaysFixed&&r.isAlwaysFixed()){e=!0;break}if(t.isDeclaredFixed(r)&&"fixed"==xi(n,r).position){e=!0;break}}this.tu=e,e&&(this.nu=ke(this.nu,-t.getScrollLeft(),-t.getScrollTop()))},e.completeCollapse=function(){Pi(this.element,!1),this.nu=Le(this.nu.left,this.nu.top,0,0),this.tu=!1,this.element.updateLayoutBox(this.getLayoutBox());var t=this.getOwner();t&&t.collapsedCallback(this.element)},e.completeExpand=function(){Pi(this.element,!0),this.requestMeasure()},e.isMeasureRequested=function(){return this.ru},e.hasBeenMeasured=function(){return!!this.iu},e.requestMeasure=function(){this.ru=!0},e.getLayoutSize=function(){return e=(t=this.nu).height,{width:t.width,height:e};var t,e},e.getLayoutBox=function(){if(!this.tu)return this.nu;var t=ui(this.element);return ke(this.nu,t.getScrollLeft(),t.getScrollTop())},e.getInitialLayoutBox=function(){return this.iu||this.nu},e.isDisplayed=function(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;var t=this.element.getLayout()==$i,e=this.getLayoutBox(),n=e.height>0&&e.width>0;return t||n},e.isFixed=function(){return this.tu},e.overlaps=function(t){return n=t,(e=this.getLayoutBox()).top<=n.bottom&&n.top<=e.bottom&&e.left<=n.right&&n.left<=e.right;var e,n},e.prerenderAllowed=function(){return this.element.prerenderAllowed()},e.previewAllowed=function(){return this.element.previewAllowed()},e.isBuildRenderBlocking=function(){return this.element.isBuildRenderBlocking()},e.whenWithinViewport=function(t){if(Jt(!1!==t),!this.isLayoutPending()||!0===t)return u();var e=t,n=String(e);return this.eu&&this.eu[n]?this.eu[n].promise:this.isWithinViewportRatio(e)?u():(this.eu=this.eu||{},this.eu[n]=new h,this.eu[n].promise)},e.cu=function(){if(this.eu){var t=this.getDistanceViewportRatio();for(var e in this.eu)this.isWithinViewportRatio(parseFloat(e),t)&&(this.eu[e].resolve(),delete this.eu[e])}},e.getDistanceViewportRatio=function(){var t=ui(this.element).getRect(),e=this.getLayoutBox(),n=this.qe.getScrollDirection(),i=1,r=0;if(t.right<e.left||t.left>e.right)return{distance:!1};if(t.bottom<e.top)r=e.top-t.bottom,-1==n&&(i=2);else{if(!(t.top>e.bottom))return{distance:!0};r=t.top-e.bottom,1==n&&(i=2)}return{distance:r,scrollPenalty:i,viewportHeight:t.height}},e.isWithinViewportRatio=function(t,e){if("boolean"==typeof t)return t;var n=e||this.getDistanceViewportRatio(),i=n.distance,r=n.scrollPenalty,o=n.viewportHeight;return"boolean"==typeof i?i:i<o*t/r},e.renderOutsideViewport=function(){return this.cu(),this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())},e.idleRenderOutsideViewport=function(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())},e.layoutScheduled=function(t){this.Ke=3,this.element.layoutScheduleTime=t},e.layoutCanceled=function(){this.Ke=this.hasBeenMeasured()?2:1},e.startLayout=function(){var t=this;if(this.uu)return this.uu;if(4==this.Ke)return u();if(5==this.Ke)return Promise.reject(this.Ze);if(Jt(0!=this.Ke),Jt(this.isDisplayed()),3!=this.Ke){var e=Kt().createExpectedError("startLayout called but not LAYOUT_SCHEDULED","currently: ",this.Ke);return Ro(e,this.element),Promise.reject(e)}if(this.Je>0&&!this.element.isRelayoutNeeded())return Kt().fine(Lo,"layout canceled since it wasn't requested:",this.debugid,this.Ke),this.Ke=4,u();Kt().fine(Lo,"start layout:",this.debugid,"count:",this.Je),this.Je++,this.Ke=3,this.Qe=new AbortController;var n=this.Qe.signal,i=new Promise((function(e,i){ai(t.hostWin).mutate((function(){var r;try{r=t.element.layoutCallback(n)}catch(t){i(t)}Promise.resolve(r).then(e,i)})),n.onabort=function(){return i(Mo())}})).then((function(){return t.lu(!0,n)}),(function(e){return t.lu(!1,n,e)}));return this.uu=i},e.lu=function(t,e,n){if(this.Qe=null,e.aborted){var i=Kt().createError("layoutComplete race");throw i.associatedElement=this.element,Kt().expectedError(Lo,i),Mo()}if(this.hu&&(this.hu(),this.hu=null),this.uu=null,this.Ke=t?4:5,this.Ze=n,!t)return Kt().fine(Lo,"loading failed:",this.debugid,n),Promise.reject(n);Kt().fine(Lo,"layout complete:",this.debugid)},e.isLayoutPending=function(){return 4!=this.Ke&&5!=this.Ke},e.loadedOnce=function(){return this.element.R1()?this.element.whenLoaded():this.su},e.isInViewport=function(){return this.au&&this.cu(),this.au},e.setInViewport=function(t){this.au=t},e.unlayout=function(){0!=this.Ke&&1!=this.Ke&&2!=this.Ke&&(this.Qe&&(this.Qe.abort(),this.Qe=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.Ke=1,this.Je=0,this.uu=null))},e.getTaskId=function(t){return this.debugid+"#"+t},e.pause=function(){this.element.pause()},e.pauseOnRemove=function(){this.element.pause()},e.resume=function(){this.element.resume()},e.unload=function(){this.element.unmount()},e.disconnect=function(){delete this.element.__AMP__RESOURCE,this.element.disconnect(!0)},t}(),ko="ready-scan",Do="scheduler",No="250% 31.25%",Bo=function(){function t(t){var e=this;this.vu=t;var n=t.win;this.du=new n.IntersectionObserver((function(t){return e.mu(t)}),{root:xe(n)?n.document:null,rootMargin:No}),this.pu=new Map,this.gu=new Map,this.bu=[],this.yu=!1,t.whenReady().then((function(){return e.wu()})),this.Au=t.onVisibilityChanged((function(){return e.xu()}))}var e=t.prototype;return e.dispose=function(){this.du.disconnect(),this.gu.clear(),this.Au&&(this.Au(),this.Au=null)},e.scheduleAsap=function(t){this.gu.set(t,{asap:!0,isIntersecting:!1}),this.Eu(t)},e.schedule=function(t){this.gu.has(t)||(t.deferredMount()?(this.gu.set(t,{asap:!1,isIntersecting:!1}),this.du.observe(t),this.pu.size>0&&this.pu.forEach((function(e,n){Me(n,t)&&e.observe(t)}))):this.gu.set(t,{asap:!1,isIntersecting:!0}),this.Eu(t))},e.unschedule=function(t){this.gu.has(t)&&(this.gu.delete(t),this.du.unobserve(t),this.pu.size>0&&this.pu.forEach((function(e){e.unobserve(t)})),this.bu&&(z(this.bu,t),this.wu()))},e.setContainer=function(t,e){var n=this;if(!this.pu.has(t)){var i=new this.vu.win.IntersectionObserver((function(t){return n.mu(t)}),{root:e||t,rootMargin:No});this.pu.set(t,i),this.gu.forEach((function(e,n){!e.asap&&Me(t,n)&&i.observe(n)}))}},e.removeContainer=function(t){var e=this.pu.get(t);e&&(e.disconnect(),this.pu.delete(t))},e.Pu=function(){var t=this;this.vu.isReady()&&!this.yu&&(this.yu=!0,this.vu.win.setTimeout((function(){t.vu.signals().signal(ko)}),50))},e.xu=function(){var t=this,e=this.vu.getVisibilityState();e!=fi&&e!=di&&e!=ci&&e!=li||this.gu.forEach((function(e,n){return t.Tu(n)}))},e.Eu=function(t){var e=this.bu;e?(e.includes(t)||e.push(t),this.wu()):this.Tu(t)},e.wu=function(){var t=this.vu.isReady(),e=this.bu;if(e)for(var n=0;n<e.length;n++){var i=e[n];(t||Pe(i,this.vu.getRootNode()))&&(e.splice(n--,1),this.Tu(i))}t&&(this.bu=null,this.Pu())},e.mu=function(t){for(var e=0;e<t.length;e++){var n=t[e],i=n.isIntersecting,r=n.target,o=this.gu.get(r);if(o){var s=i||o.isIntersecting;s!==o.isIntersecting&&this.gu.set(r,{asap:o.asap,isIntersecting:s}),s&&this.Tu(r)}}},e.Tu=function(t){var e=this.bu,n=!(e&&e.includes(t)),i=this.gu.get(t)||{asap:!1,isIntersecting:!1},r=i.asap,o=i.isIntersecting,s=this.vu.getVisibilityState();if(n&&(r||o)&&(s==fi||s==di||s==ci&&t.prerenderAllowed()||s==li&&t.previewAllowed())){this.unschedule(t);var a=this.vu.win;(r||t.getBuildPriority()<=0?a.setTimeout:a.requestIdleCallback||a.setTimeout)((function(){return t.mountInternal()}))}},t}();function Vo(t){return vn(t,Do,Bo),yn(t,Do)}var Uo=function(){function t(){this.Ou=[]}var n=t.prototype;return n.peek=function(){var t=this.length;return t?this.Ou[t-1].item:null},n.enqueue=function(t,e){if(isNaN(e))throw new Error("Priority must not be NaN.");var n=this.Iu(e);this.Ou.splice(n,0,{item:t,priority:e})},n.Iu=function(t){for(var e=-1,n=0,i=this.length;n<=i&&(e=Math.floor((n+i)/2))!==this.length;)if(this.Ou[e].priority<t)n=e+1;else{if(!(e>0&&this.Ou[e-1].priority>=t))break;i=e-1}return e},n.forEach=function(t){for(var e=this.length;e--;)t(this.Ou[e].item)},n.dequeue=function(){var t=this.Ou.pop();return t?t.item:null},e(t,[{key:"length",get:function(){return this.Ou.length}}]),t}(),jo="CHUNK",Fo=/nochunking=1/.test(self.location.hash),qo=u();function Ho(t){return vn(t,"chunk",Jo),yn(t,"chunk")}function zo(t,e,n){if(Fo)qo.then(e);else{var i=Ho(t.documentElement||t);i.runForStartup(e),n&&i.runForStartup((function(){i.Ru=!0}))}}function Go(t,e,n){Fo?qo.then(e):Ho(t).run(e,n)}var Wo="not_run",Yo=function(){function t(t){this.state=Wo,this.Su=t}var e=t.prototype;return e._u=function(t){if("run"!=this.state){this.state="run";try{this.Su(t)}catch(t){throw this.Mu(t),t}}},e.ku=function(){return this.Su.displayName||this.Su.name},e.Mu=function(t){},e.Cu=function(){return!1},e.Nu=function(){return!1},t}(),Ko=function(t){N(n,t);var e=V(n);function n(t,n,i){var r;return(r=e.call(this,t)).ju=i,r}var i=n.prototype;return i.Mu=function(t){Xr(self.document)},i.Cu=function(){return this.Du()},i.Nu=function(){return this.ju.Lu},i.Du=function(){return this.ju.ampdoc.isVisible()},n}(Yo),Jo=function(){function t(t){var e,n=this;this.ampdoc=t,this.t=t.win,this.Uu=new Uo,this.zu=this.Hu.bind(this),this.Gu=0,this.Vu=!(!this.t.navigator.scheduling||!this.t.navigator.scheduling.isInputPending),this.Fu=!1,this.Ru=this.t.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.t.addEventListener("message",(function(t){"amp-macro-task"==Fr(t)&&n.Hu(null)})),this.Lu=!1,(e=t,wn(e,"viewer")).then((function(){n.Lu=!0})),t.onVisibilityChanged((function(){t.isVisible()&&n.Bu()}))}var e=t.prototype;return e.run=function(t,e){var n=new Yo(t);this.qu(n,e)},e.runForStartup=function(t){var e=new Ko(t,this.t,this);this.qu(e,Number.POSITIVE_INFINITY)},e.qu=function(t,e){this.Uu.enqueue(t,e),this.Bu()},e.Wu=function(t){for(var e=this.Uu.peek();e&&e.state!==Wo;)this.Uu.dequeue(),e=this.Uu.peek();return e&&t&&this.Uu.dequeue(),e},e.Hu=function(t){var e,n=this,i=this.Wu(!0);if(!i)return this.Fu=!1,this.Gu=0,!1;try{e=Date.now(),i._u(t)}finally{qo.then().then().then().then().then().then().then().then().then((function(){n.Fu=!1,n.Gu+=Date.now()-e,Kt().fine(jo,i.ku(),"Chunk duration",Date.now()-e,n.Gu),n.Bu()}))}return!0},e.$u=function(t){var e=this;if(this.Ru&&(this.Vu?this.t.navigator.scheduling.isInputPending():this.Gu>5))return this.Gu=0,void this.Yu();qo.then((function(){e.zu(t)}))},e.Bu=function(){if(!this.Fu){var t=this.Wu();if(t)return t.Cu()?(this.Fu=!0,void this.$u(null)):void(t.Nu()&&this.t.requestIdleCallback?function(t,e,n,i){var r=Date.now();t.requestIdleCallback((function e(o){if(o.timeRemaining()<15){var s=n-(Date.now()-r);s<=0||o.didTimeout?(Kt().fine(jo,"Timed out",n,o.didTimeout),i(o)):(Kt().fine(jo,"Rescheduling with",s,o.timeRemaining()),t.requestIdleCallback(e,{timeout:s}))}else Kt().fine(jo,"Running idle callback with ",15),i(o)}),{timeout:n})}(this.t,0,2e3,this.zu):this.Yu())}},e.Yu=function(){this.t.postMessage("amp-macro-task","*")},t}(),Xo="activate",$o=function(){function t(t){this.element=t,this.win=ee(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 e=t.prototype;return e.signals=function(){return this.element.signals()},e.getDefaultActionAlias=function(){return this.defaultActionAlias_},e.getLayoutPriority=function(){return 0},e.updateLayoutPriority=function(t){this.element.getResources().updateLayoutPriority(this.element,t)},e.getLayout=function(){return this.element.getLayout()},e.getLayoutBox=function(){return this.element.getLayoutBox()},e.getLayoutSize=function(){return this.element.getLayoutSize()},e.getAmpDoc=function(){return this.element.getAmpDoc()},e.getVsync=function(){return ai(this.win)},e.getConsentPolicy=function(){var t=null;return this.element.hasAttribute("data-block-on-consent")&&(t=this.element.getAttribute("data-block-on-consent")||"default"),t},e.isLayoutSupported=function(t){return t==zi},e.isAlwaysFixed=function(){return!1},e.upgradeCallback=function(){return null},e.buildCallback=function(){},e.preconnectCallback=function(t){},e.attachedCallback=function(){},e.detachedCallback=function(){},e.setAsContainer=function(t){this.element.setAsContainerInternal(t)},e.removeAsContainer=function(){this.element.removeAsContainerInternal()},e.isBuildRenderBlocking=function(){return!1},e.createPlaceholderCallback=function(){return null},e.renderOutsideViewport=function(){return"inabox"==Lt(this.win).runtime||3},e.idleRenderOutsideViewport=function(){return!1},e.ensureLoaded=function(){},e.setReadyState=function(t,e){this.element.setReadyStateInternal(t,e)},e.mountCallback=function(t){},e.unmountCallback=function(){},e.isRelayoutNeeded=function(){return!1},e.layoutCallback=function(){return u()},e.firstLayoutCompleted=function(){this.togglePlaceholder(!1)},e.pauseCallback=function(){},e.resumeCallback=function(){},e.unlayoutCallback=function(){return!1},e.unlayoutOnPause=function(){return!1},e.reconstructWhenReparented=function(){return!0},e.loadPromise=function(t){return Hr(t)},e.registerAction=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;Qo(this),this.actionMap_[t]={handler:e,minTrust:n}},e.registerDefaultAction=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xo,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;Jt(!this.defaultActionAlias_),this.registerAction(e,t,n),this.defaultActionAlias_=e},e.executeAction=function(t,e){var n=t.method;n===Xo&&(n=this.defaultActionAlias_||n),Qo(this);var i=this.actionMap_[n],r=this.element.tagName;Xt(i,"Method not found: ".concat(n," in ").concat(r));var o=i.handler,s=i.minTrust;if(t.satisfiesTrust(s))return o(t)},e.forwardEvents=function(t,e){var n=this,i=(j(t)?t:[t]).map((function(t){return jr(e,t,(function(e){Re(n.element,t,Fr(e)||{})}))}));return function(){return i.forEach((function(t){return t()}))}},e.getPlaceholder=function(){return this.element.getPlaceholder()},e.togglePlaceholder=function(t){this.element.togglePlaceholder(t)},e.getFallback=function(){return this.element.getFallback()},e.toggleFallback=function(t){this.element.toggleFallback(t)},e.toggleLoading=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.element.toggleLoading(t,e)},e.getOverflowElement=function(){return this.element.getOverflowElement()},e.renderStarted=function(){this.element.renderStarted()},e.getViewport=function(){return ui(this.getAmpDoc())},e.getIntersectionElementLayoutBox=function(){return this.getLayoutBox()},e.collapse=function(){Xn(this.getAmpDoc()).collapseElement(this.element)},e.attemptCollapse=function(){return Xn(this.getAmpDoc()).attemptCollapse(this.element)},e.forceChangeHeight=function(t){Xn(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)},e.attemptChangeHeight=function(t){return Xn(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)},e.attemptChangeSize=function(t,e,n){return Xn(this.getAmpDoc()).requestChangeSize(this.element,t,e,void 0,n)},e.measureElement=function(t){return Xn(this.getAmpDoc()).measureElement(t)},e.mutateElement=function(t,e){return this.measureMutateElement(null,t,e)},e.measureMutateElement=function(t,e,n){return Xn(this.getAmpDoc()).measureMutateElement(n||this.element,t,e)},e.mutateElementSkipRemeasure=function(t){return Xn(this.getAmpDoc()).mutateElement(this.element,t,!0)},e.collapsedCallback=function(t){},e.expand=function(){Xn(this.getAmpDoc()).expandElement(this.element)},e.mutatedAttributesCallback=function(t){},e.onLayoutMeasure=function(){},e.user=function(){return Wt(this.element)},e.getApi=function(){return this},t}();function Qo(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var Zo,ts=function(t){N(n,t);var e=V(n);function n(){return e.apply(this,arguments)}return n}($o),es=Date.now(),ns={bubbles:!1},is=function(){return!0},rs=[],os=new Set;function ss(t,n){var i=function(t,n){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;var i=function(i){N(o,i);var r=V(o);function o(){var t;return(t=r.call(this)).createdCallback(),t}var s=o.prototype;return s.createdCallback=function(){this.Xu=!1,this.Ju=!1,this.Qu=null,this.Zu=!1,this.no=null,this.io=null,this.ro="upgrading",this.everAttached=!1,this.vu=null,this.qe=null,this.eo=zi,this.Je=0,this.uo=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this.oo=void 0,this.layoutScheduleTime=void 0;var e=this,n=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.so=n===ts?null:n||null,this.so||rs.push(this),this.ho=null,this.ao=1,this.fo=0,this.co=void 0,this.Ku=void 0,this.Te=new gi,this.so&&this.Te.signal(fr);var i=function(t,e){return In(t=En(t),e)?On(t,e):null}(t,"performance");this.lo=i&&i.isPerformanceTrackingOn(),this.vo=null,e.__AMP_UPG_RES&&(e.__AMP_UPG_RES(e),delete e.__AMP_UPG_RES,delete e.__AMP_UPG_PRM)},s.signals=function(){return this.Te},s.getAmpDoc=function(){return Jt(this.vu),this.vu},s.getResources=function(){return Jt(this.qe),this.qe},s.isUpgraded=function(){return 2==this.ao},s.whenUpgraded=function(){return this.Te.whenSignal(dr)},s.upgrade=function(t){this.Ku||1==this.ao&&(this.so=t,this.Te.signal(fr),this.everAttached&&this.do())},s.markUnresolved=function(){this.so||this.classList.add("amp-unresolved","i-amphtml-unresolved")},s.getUpgradeDelayMs=function(){return this.fo},s.mo=function(e,n){this.ho=e,this.fo=t.Date.now()-n,this.ao=2,this.setReadyStateInternal($e),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.po(),this.dispatchCustomEventForTesting(hr),this.R1()||this.getResources().upgraded(this),this.Te.signal(dr)},s.po=function(){this.eo!=zi&&this.ho&&!this.ho.isLayoutSupported(this.eo)&&(Xt(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."),Xt(!1,"Layout not supported: ".concat(this.eo)))},s.getBuildPriority=function(){return this.so?this.so.getBuildPriority(this):3},s.getLayoutPriority=function(){return this.ho?this.ho.getLayoutPriority():3},s.getDefaultActionAlias=function(){return Jt(this.isUpgraded()),this.ho.getDefaultActionAlias()},s.isBuilding=function(){return!!this.Qu},s.isBuilt=function(){return this.Xu},s.whenBuilt=function(){return this.Te.whenSignal(mr)},s.buildInternal=function(){var t=this;if(us(this),Jt(this.so),this.Qu)return this.Qu;this.setReadyStateInternal($e);var e=this.bo();this.yo();var n=e.then((function(){var e,n=t.wo(),i=n?null:t.Ao();if(n||i)return(e=t,Dn(e,"consentPolicyManager","amp-consent")).then((function(t){return!t||(n?t.whenPolicyUnblock(n):t.whenPurposesUnblock(i))})).then((function(t){if(!t)throw new Error(Po)}))})).then((function(){return Jt(t.ho).buildCallback()}));return this.Qu=n.then((function(){if(t.Xu=!0,t.classList.add("i-amphtml-built"),t.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),t.Te.signal(mr),t.R1()?t.setReadyStateInternal(t.ro!=$e?t.ro:Qe):(t.setReadyStateInternal(Ze),t.preconnect(!1)),t.Ju&&t.an(),t.co&&ni(ee(t)).delay(t.xo.bind(t),1),!t.getPlaceholder()){var e=t.createPlaceholder();e&&t.appendChild(e)}}),(function(e){throw t.Te.rejectSignal(mr,e),t.R1()&&t.setReadyStateInternal(en,e),Co(e)||Ro(e,t),e}))},s.build=function(){var t=this;return this.Qu?this.Qu:this.Te.whenSignal(fr).then((function(){return t.R1()&&Vo(t.getAmpDoc()).scheduleAsap(t),t.whenBuilt()}))},s.mountInternal=function(){var t=this;if(this.no)return this.no;this.io=this.io||new AbortController;var e=this.io.signal;return this.no=this.buildInternal().then((function(){if(Jt(t.R1()),!e.aborted){t.setReadyStateInternal(t.ro!=Qe?t.ro:t.so.usesLoading(t)?Ze:Qe),t.Zu=!0;var n=t.ho.mountCallback(e);return!!n&&n.then(is)}})).then((function(n){if(t.io=null,e.aborted)throw Mo();t.Te.signal(pr),t.so.usesLoading(t)&&!n||t.setReadyStateInternal(tn)})).catch((function(e){var n;throw t.io=null,(n=e)&&("string"==typeof n?n.startsWith(To):"string"==typeof n.message&&n.message.startsWith(To))?t.no=null:(t.Te.rejectSignal(pr,e),t.setReadyStateInternal(en,e)),e}))},s.mount=function(){var t=this;if(this.no)return this.no;this.io=this.io||new AbortController;var e=this.io.signal;return this.Te.whenSignal(fr).then((function(){if(!t.R1())return t.whenBuilt();if(e.aborted)throw Mo();return Vo(t.getAmpDoc()).scheduleAsap(t),t.whenMounted()}))},s.unmount=function(){this.Ju&&this.pause(),this.R1()?(this.io&&(this.io.abort(),this.io=null),Vo(this.getAmpDoc()).unschedule(this),this.Zu&&this.ho.unmountCallback(),this.Zu=!1,this.no=null,this.Eo(),this.Ju&&this.do(!0)):this.Po()},s.whenMounted=function(){return this.Te.whenSignal(pr)},s.whenLoaded=function(){return this.Te.whenSignal(yr)},s.ensureLoaded=function(t){var e=this;return this.mount().then((function(){if(e.R1())return e.so.usesLoading(e)&&e.ho.ensureLoaded(),e.whenLoaded();var n=e.To();return n.whenBuilt().then((function(){if(4!=n.getState()&&((3!=n.getState()||n.isMeasureRequested())&&n.measure(),n.isDisplayed()))return e.getResources().scheduleLayoutOrPreload(n,!0,t,!0),e.whenLoaded()}))}))},s.setAsContainerInternal=function(t){Vo(this.getAmpDoc()).setContainer(this,t)},s.removeAsContainerInternal=function(){Vo(this.getAmpDoc()).removeContainer(this)},s.setReadyStateInternal=function(t,e){if(t!==this.ro&&(this.ro=t,this.R1()))switch(t){case Ze:return this.Te.signal(vr),this.Te.reset(br),this.Te.reset(yr),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(cr);case tn:return this.Te.signal(vr),this.Te.signal(yr),this.Te.reset(br),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),Re(this,"load",null,ns),void this.dispatchCustomEventForTesting(lr);case en:return this.Te.rejectSignal(yr,e),this.toggleLoading(!1),void Re(this,"error",e,ns)}},s.preconnect=function(t){var e=this;Jt(this.isUpgraded()),t?this.ho.preconnectCallback(t):zo(this.getAmpDoc(),(function(){e.ownerDocument&&e.ownerDocument.defaultView&&e.ho.preconnectCallback(t)}))},s.R1=function(){return!!this.so&&this.so.R1()},s.deferredMount=function(){return!!this.so&&this.so.deferredMount(this)},s.isAlwaysFixed=function(){return!!this.ho&&this.ho.isAlwaysFixed()},s.updateLayoutBox=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isBuilt()&&this.onMeasure(e)},s.onMeasure=function(){Jt(this.isBuilt());try{this.ho.onLayoutMeasure()}catch(t){Ro(t,this)}},s.yo=function(){var t;return void 0!==this.sizerElement||this.eo!==Yi&&this.eo!==Qi||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null},s.Oo=function(t){if(this.eo!==Yi)if(this.eo!==Qi);else{var e=t.querySelector(".i-amphtml-intrinsic-sizer");if(!e)return;e.setAttribute("src","")}else Si(t,"paddingTop","0")},s.Io=function(){var t=this,e=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),n=!!this.vo,i=this.ownerDocument.defaultView;e!=n&&i&&(e?(this.vo=new wr(i,(function(){return t.Ro()})),this.Ro()):this.So())},s.So=function(){this.vo&&(this.vo.dispose(),this.vo=null)},s.Ro=function(){var t=this.vo;if(t){t.start();var e=this.getAttribute("media")||null,n=!e||t.resolveMatchQuery(e);this.classList.toggle("i-amphtml-hidden-by-media-query",!n);var i=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");i&&Si(this,"width",t.resolveListQuery(i));var r=this.eo===Yi?this.getAttribute("heights"):null;if(r){var o=this.yo();o&&Si(o,"paddingTop",t.resolveListQuery(r))}t.complete(),this.To().requestMeasure()}},s.applySize=function(t,e,n){var i=this.yo();i&&(this.sizerElement=null,this.Oo(i),this._o((function(){i&&Ee(i)}))),void 0!==t&&Si(this,"height",t,"px"),void 0!==e&&Si(this,"width",e,"px"),n&&(null!=n.top&&Si(this,"marginTop",n.top,"px"),null!=n.right&&Si(this,"marginRight",n.right,"px"),null!=n.bottom&&Si(this,"marginBottom",n.bottom,"px"),null!=n.left&&Si(this,"marginLeft",n.left,"px")),this.Mo()&&this.ko(),Re(this,"amp:size-changed")},s.connectedCallback=function(){if(function(){if(void 0===Zo){var t=self.document.createElement("template");Zo="content"in t}return Zo}()||void 0!==this.Ku||(this.Ku=!!de(this,"template")),!this.Ku&&!this.Ju&&Se(this)){if(this.Ju=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this.vu){var t=ee(this),e=qn(t).getAmpDoc(this);this.vu=e,n(e,this,this.so)}if(this.qe||(this.qe=ti(this.vu)),this.getResources().add(this),this.everAttached){var i=this.reconstructWhenReparented();i&&this.Eo(),this.isUpgraded()&&(i&&!this.R1()&&this.getResources().upgraded(this),this.an(),this.dispatchCustomEventForTesting(hr)),this.so&&this.R1()&&this.do()}else{this.everAttached=!0;try{this.eo=function(t){var e=t.getAttribute("i-amphtml-layout");if(e){var n,i=tr(e);return nt(i),i!=Yi&&i!=Qi||!t.firstElementChild?i==zi&&Pi(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(n=t.sizerElement)||void 0===n||n.setAttribute("slot","i-amphtml-svc")),i}var r=Rr(t),o=r.height,s=r.layout,a=r.width;if(t.classList.add(er(s)),nr(s)&&t.classList.add("i-amphtml-layout-size-defined"),s==zi)Pi(t,!1);else if(s==Gi)Ti(t,{width:rt(a),height:rt(o)});else if(s==Wi)Si(t,"height",rt(o));else if(s==Yi){var u=t.ownerDocument.createElement("i-amphtml-sizer");u.setAttribute("slot","i-amphtml-svc");var h=or(o),c=or(a);ot(h),ot(c),Ti(u,{paddingTop:h/c*100+"%"}),t.insertBefore(u,t.firstChild),t.sizerElement=u}else if(s==Qi){var l=Tr(t)(Or),f=l.firstElementChild;it(f),f.setAttribute("src",'data:image/svg+xml;charset=utf-8,<svg height="'.concat(o,'" width="').concat(a,'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>')),t.insertBefore(l,t.firstChild),t.sizerElement=l}else s==Ji||s==Ki||(s==Xi?(a&&Si(t,"width",a),o&&Si(t,"height",o)):s==$i&&(t.classList.add("i-amphtml-layout-awaiting-size"),a&&Si(t,"width",a),Si(t,"height",0)));return t.setAttribute("i-amphtml-layout",s),s}(this),this.Io()}catch(t){Ro(t,this)}this.so?this.do():(os.has("*")||os.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}},s.Mo=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")},s.ko=function(){this.classList.remove("i-amphtml-layout-awaiting-size")},s.do=function(t){if(this.R1()){if(!this.no)if(Vo(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Qu)this.setReadyStateInternal(this.so&&this.so.usesLoading(this)?Ze:Qe);else if(this.setReadyStateInternal($e),!t){var e=this.so.getPreconnects(this);if(e&&e.length>0){var n=this.getAmpDoc();zo(n,(function(){var t=n.win;if(t){var i=Zn(t);e.forEach((function(t){return i.url(n,t,!1)}))}}))}}}else this.Co()},s.Co=function(){var e=this;if(!this.Ku&&1==this.ao){var n=new(Jt(this.so))(this);this.ao=4;var i=t.Date.now(),r=n.upgradeCallback();if(r){if("function"==typeof r.then)return r.then((function(t){e.mo(t||n,i)})).catch((function(t){e.ao=3,d(t)}));this.mo(r,i)}else this.mo(n,i)}},s.disconnectedCallback=function(){this.disconnect(!1)},s.an=function(){this.Xu&&this.ho.attachedCallback()},s.disconnect=function(t){!this.Ku&&this.Ju&&(!t&&Se(this)||(t&&this.classList.remove("i-amphtml-element"),this.Ju=!1,this.getResources().remove(this),this.ho&&this.ho.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.So()))},s.dispatchCustomEventForTesting=function(t,e){},s.prerenderAllowed=function(){return!this.hasAttribute("noprerender")&&!!this.so&&this.so.prerenderAllowed(this)},s.previewAllowed=function(){return!!this.so&&this.so.previewAllowed(this)},s.isBuildRenderBlocking=function(){return!!this.ho&&this.ho.isBuildRenderBlocking()},s.createPlaceholder=function(){return this.ho?this.ho.createPlaceholderCallback():null},s.createLoaderLogo=function(){return this.so?this.so.createLoaderLogoCallback(this):{}},s.renderOutsideViewport=function(){return!!this.ho&&this.ho.renderOutsideViewport()},s.idleRenderOutsideViewport=function(){return!!this.ho&&this.ho.idleRenderOutsideViewport()},s.getLayoutBox=function(){return this.To().getLayoutBox()},s.getLayoutSize=function(){return this.To().getLayoutSize()},s.getOwner=function(){return this.To().getOwner()},s.getIntersectionChangeEntry=function(){var t=this.ho?this.ho.getIntersectionElementLayoutBox():this.getLayoutBox(),e=this.getOwner(),n=ui(this.getAmpDoc()).getRect();return function(t,e,n){var i,r,o,s,a=function(t){for(var e=-1/0,n=1/0,i=-1/0,r=1/0,o=0;o<arguments.length;o++){var s=arguments[o];if(s&&(e=Math.max(e,s.left),n=Math.min(n,s.left+s.width),i=Math.max(i,s.top),r=Math.min(r,s.top+s.height),n<e||r<i))return null}return n==1/0?null:Le(e,i,n-e,r-i)}(t,e,n)||Le(0,0,0,0);return function(t,e,n,i){var r=t,o=e;return e&&(n=ke(n,-e.left,-e.top),r=ke(r,-e.left,-e.top),o=ke(o,-e.left,-e.top)),{time:"undefined"!=typeof performance&&performance.now?performance.now():Date.now()-es,rootBounds:o,boundingClientRect:r,intersectionRect:n,intersectionRatio:i}}(t,n,a,(r=t,o=(i=a).width*i.height,0==(s=r.width*r.height)?0:o/s))}(t,e&&e.getLayoutBox(),n)},s.To=function(){return this.getResources().getResourceForElement(this)},s.getResourceId=function(){return this.To().getId()},s.isRelayoutNeeded=function(){return!!this.ho&&this.ho.isRelayoutNeeded()},s.getImpl=function(){var t=this;return(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.bo():this.build()).then((function(){return t.ho}))},s.bo=function(){var t=this;return this.Te.whenSignal(fr).then((function(){return t.Co(),t.whenUpgraded()}))},s.getApi=function(){return this.getImpl().then((function(t){return t.getApi()}))},s.getLayout=function(){return this.eo},s.layoutCallback=function(t){var e=this;if(us(this),Jt(this.isBuilt()),t.aborted)return Promise.reject(Mo());this.dispatchCustomEventForTesting(cr);var n=0==this.Je;this.Te.reset(br),n&&this.Te.signal(vr),this.toggleLoading(!0);var i=c((function(){return e.ho.layoutCallback()}));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),i.then((function(){if(t.aborted)throw Mo();n&&e.Te.signal(yr),e.setReadyStateInternal(tn),e.Je++,e.toggleLoading(!1),e.uo||(e.ho.firstLayoutCompleted(),e.uo=!0,e.dispatchCustomEventForTesting(lr))}),(function(i){if(t.aborted)throw Mo();throw n&&e.Te.rejectSignal(yr,i),e.setReadyStateInternal(en,i),e.Je++,e.toggleLoading(!1),i}))},s.pause=function(){this.isBuilt()&&(this.ho.pauseCallback(),!this.R1()&&this.ho.unlayoutOnPause()&&this.Po())},s.resume=function(){this.isBuilt()&&this.ho.resumeCallback()},s.unlayoutCallback=function(){if(us(this),!this.isBuilt())return!1;this.Te.signal(br);var t=this.ho.unlayoutCallback();return t&&this.Eo(),this.dispatchCustomEventForTesting("amp:unload"),t},s.Po=function(){this.To().unlayout(),this.Ju&&this.qe&&this.qe.schedulePass()},s.Eo=function(){this.Je=0,this.uo=!1,this.Te.reset(pr),this.Te.reset(gr),this.Te.reset(vr),this.Te.reset(yr),this.Te.reset("ini-load")},s.reconstructWhenReparented=function(){return!!this.ho&&this.ho.reconstructWhenReparented()},s.collapse=function(){this.ho&&this.ho.collapse()},s.collapsedCallback=function(t){this.ho&&this.ho.collapsedCallback(t)},s.expand=function(){this.ho&&this.ho.expand()},s.mutatedAttributesCallback=function(t){this.ho?this.ho.mutatedAttributesCallback(t):this.R1()&&Vo(this).scheduleAsap(this)},s.enqueAction=function(t){us(this),this.isBuilt()?this.No(t,!1):(void 0===this.co&&(this.co=[]),Jt(this.co).push(t),this.build())},s.xo=function(){var t=this;if(this.co){var e=Jt(this.co);this.co=null,e.forEach((function(e){t.No(e,!0)}))}},s.No=function(t,e){try{this.ho.executeAction(t,e)}catch(e){d("Action execution failed:",e,t.node.tagName,t.method)}},s.wo=function(){var t,e,n=this.getAttribute("data-block-on-consent");if(null===n){if(!(e=(t=this).getAmpDoc().getMetaByName("amp-consent-blocking"))||!(e=e.toUpperCase().replace(/\s+/g,"")).split(",").includes(t.tagName))return null;n="default",this.setAttribute("data-block-on-consent",n)}return""==n||"default"==n?Jt(this.ho).getConsentPolicy():n},s.Ao=function(){var t,e=this.getAttribute("data-block-on-consent-purposes")||null;return null==e||null===(t=e.replace(/\s+/g,""))||void 0===t?void 0:t.split(",")},s.getPlaceholder=function(){return me(this,(function(t){return t.hasAttribute("placeholder")&&!as(t)}))},s.togglePlaceholder=function(t){if(us(this),t){var e=this.getPlaceholder();e&&e.classList.remove("amp-hidden")}else for(var n=(ue("placeholder"),r=this,o="> [".concat("placeholder","]"),oe(r)?r.querySelectorAll(se(o,":scope")):he(r,o)),i=0;i<n.length;i++)as(n[i])||n[i].classList.add("amp-hidden");var r,o},s.getFallback=function(){return pe(this,"fallback")},s.toggleFallback=function(t){us(this);var e,n=this.To().getState();if((this.R1()||!t||0!=n&&1!=n&&2!=n)&&(this.classList.toggle("amp-notsupported",t),1==t)){var i=this.getFallback();i&&(e=this.getAmpDoc(),yn(e,"owners")).scheduleLayout(this,i)}},s.renderStarted=function(){this.Te.signal(gr),this.togglePlaceholder(!1),this.toggleLoading(!1)},s.jo=function(t){var e,n,i=this.Je>0||this.Te.get(gr);return!(this.eo==zi||this.hasAttribute("noloading")||i&&!t||(n=this.tagName.toUpperCase(),"AMP-AD"!==(e=n)&&"AMP-ANIM"!==e&&"AMP-EMBED"!==e&&"AMP-FACEBOOK"!==e&&"AMP-FACEBOOK-COMMENTS"!==e&&"AMP-FACEBOOK-PAGE"!==e&&"AMP-GOOGLE-DOCUMENT-EMBED"!==e&&"AMP-IFRAME"!==e&&"AMP-IMG"!==e&&"AMP-INSTAGRAM"!==e&&"AMP-LIST"!==e&&"AMP-PINTEREST"!==e&&"AMP-PLAYBUZZ"!==e&&"AMP-RENDER"!==e&&"AMP-TIKTOK"!==e&&"AMP-TWITTER"!==e&&!function(t){return"AMP-VIDEO"!=t&&Zi.test(t)}(n))||ve(this))},s.toggleLoading=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ownerDocument&&this.ownerDocument.defaultView){var n=Jn(this.getAmpDoc());n&&((t=t&&this.jo(e))?n.track(this):n.untrack(this))}},s.getOverflowElement=function(){return void 0===this.oo&&(this.oo=pe(this,"overflow"),this.oo&&(this.oo.hasAttribute("tabindex")||this.oo.setAttribute("tabindex","0"),this.oo.hasAttribute("role")||this.oo.setAttribute("role","button"))),this.oo},s.overflowCallback=function(t,e,n){var i=this;this.getOverflowElement(),this.oo?(this.oo.classList.toggle("amp-visible",t),this.oo.onclick=t?function(){var t=Xn(i.getAmpDoc());t.forceChangeSize(i,e,n),t.mutateElement(i,(function(){i.overflowCallback(!1,e,n)}))}:null):t&&this.warnOnMissingOverflow&&Wt().warn("CustomElement","Cannot resize element and overflow is not available",this)},s._o=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.vu?Xn(this.getAmpDoc()).mutateElement(e||this,t,n):t()},e(o,[{key:"readyState",get:function(){return this.ro}}]),o}(t.HTMLElement);return t.__AMP_BASE_CE_CLASS=i,t.__AMP_BASE_CE_CLASS}(t,n),r=function(t){N(n,t);var e=V(n);function n(){return e.apply(this,arguments)}return n.prototype.adoptedCallback=function(){Object.getPrototypeOf(this)!==o&&Object.setPrototypeOf(this,o)},n}(i),o=r.prototype;return r}function as(t){return"placeholder"in t}function us(t){Jt(!t.Ku)}function hs(t){os.add(t||"*");for(var e,n=a(rs,!0);!(e=n()).done;){var i=e.value;null!=t&&i.tagName.toLowerCase()!==t||i.markUnresolved()}}var cs=new WeakMap;function ls(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function fs(t,e,n){var i=ls(t);if(i[e]){if(i[e]!=n){Xt(i[e]==ts,"%s is already registered. The script tag for %s is likely included twice in the page.",e,e),i[e]=n;for(var r=0;r<rs.length;r++){var o=rs[r];o.tagName.toLowerCase()==e&&o.ownerDocument.defaultView==t&&(ds(o,n),rs.splice(r--,1))}}}else gs(t,e,n)}function ds(t,e){try{t.upgrade(e)}catch(e){Ro(e,t)}}function ms(t){(function(t){if(!t)return[];for(var e=t.querySelectorAll("script[custom-element],script[custom-template]"),n=[],i=0;i<e.length;i++){var r=e[i],o=r.getAttribute("custom-element")||r.getAttribute("custom-template"),s=ln(r.src);o&&s&&n.push({script:r,extensionId:o,extensionVersion:s.extensionVersion})}return n})(t.getHeadNode()).forEach((function(e){var n=e.extensionId,i=e.extensionVersion,r=e.script;t.declareExtension(n,i),r.addEventListener("error",(function(){return hs(n)})),ps(t.win,n)})),t.isBodyAvailable()&&t.setExtensionsKnown()}function ps(t,e){ls(t)[e]||gs(t,e,ts)}function vs(t,e,n){gs(e,n,ls(t)[n]||ts)}function gs(t,e,n){ls(t)[e]=n;var i=ss(t,ys);t.customElements.define(e,i)}function ys(t,e,n){cs.has(t)||(cs.set(t,!0),ms(t));var i=e.localName;n||t.declaresExtension(i)||Yn(t.win).installExtensionForDoc(t,i,"0.1")}var bs="amp-img",ws=["alt","aria-describedby","aria-label","aria-labelledby","crossorigin","referrerpolicy","title","importance","sizes","srcset","src"],As=function(t){N(n,t);var e=V(n);function n(t){var n;return(n=e.call(this,t)).Do=!0,n.Lo=null,n.Uo=null,n.zo=null,n.Ho=0,n}n.R1=function(){return!1},n.prerenderAllowed=function(){return!0},n.usesLoading=function(){return!0},n.getPreconnects=function(t){var e=t.getAttribute("src");if(e)return[e];var n=t.getAttribute("srcset");if(n){var i=/\S+/.exec(n);if(i)return[i[0]]}return null};var i=n.prototype;return i.mutatedAttributesCallback=function(t){if(this.Lo){var e=ws.filter((function(e){return void 0!==t[e]}));t.src&&!t.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),e.push("srcset"),this.user().warn(bs,"Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element)),ar(e,this.element,this.Lo,!0),this.propagateDataset(this.Lo),Hi(this.Lo),n.R1()&&!this.Lo.complete&&this.setReadyState(Ze)}},i.preconnectCallback=function(t){var e=this.element.getAttribute("src");if(e)Zn(this.win).url(this.getAmpDoc(),e,t);else{var n=this.element.getAttribute("srcset");if(!n)return;var i=/\S+/.exec(n);i&&Zn(this.win).url(this.getAmpDoc(),i[0],t)}},i.isLayoutSupported=function(t){return nr(t)},i.Go=function(){if(this.Lo)return this.Lo;this.Do=!this.element.hasAttribute("fallback");var t,e,n=Ce(this.element);return n&&(this.Lo=ce(this.element,"> img:not([placeholder])")),this.Lo=this.Lo||new Image,this.Lo.setAttribute("decoding","async"),this.element.id&&this.Lo.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(bs,"Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying <img> element.")),this.Vo(!0),ar(ws,this.element,this.Lo),this.propagateDataset(this.Lo),Hi(this.Lo),sr(this.Lo,!0),t=this.element,e=this.Lo,t.hasAttribute("object-fit")&&Si(e,"object-fit",t.getAttribute("object-fit")),t.hasAttribute("object-position")&&Si(e,"object-position",t.getAttribute("object-position")),n||this.element.appendChild(this.Lo),this.Lo},i.Vo=function(t){var e=this;if(this.Lo&&!this.element.hasAttribute("i-amphtml-ssr")&&!this.element.hasAttribute("sizes")&&!this.Lo.hasAttribute("sizes")){var n=this.element.getAttribute("srcset");if(n&&!/[0-9]+x(?:,|$)/.test(n)){var i=this.element.getLayoutSize().width;if(this.Fo(i)){var r=this.getViewport().getWidth(),o="(max-width: ".concat(r,"px) ").concat(i,"px, "),s=i+"px";if(this.getLayout()!==Gi){var a=Math.round(100*i/r);s=Math.max(a,100)+"vw"}var u=o+s;t?this.Lo.setAttribute("sizes",u):this.mutateElement((function(){e.Lo.setAttribute("sizes",u)})),this.Ho=i}}}},i.Fo=function(t){return!this.Lo.hasAttribute("sizes")||t>this.Ho},i.reconstructWhenReparented=function(){return!1},i.mountCallback=function(){var t=this,e=!!this.Lo,n=this.Go();e||(jr(n,"load",(function(){t.setReadyState(tn),t.firstLayoutCompleted(),t.Bo()})),jr(n,"error",(function(e){t.setReadyState(en,e),t.qo()}))),n.complete?(this.setReadyState(tn),this.firstLayoutCompleted(),this.Bo()):this.setReadyState(Ze)},i.unmountCallback=function(){var t=this.Lo;t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ee(t),this.Lo=null)},i.ensureLoaded=function(){this.Lo.loading="eager"},i.layoutCallback=function(){var t=this;this.Go();var e=this.Lo;return this.Uo=jr(e,"load",(function(){return t.Bo()})),this.zo=jr(e,"error",(function(){return t.qo()})),this.element.getLayoutSize().width<=0?u():this.loadPromise(e)},i.unlayoutCallback=function(){if(!n.R1()){this.zo&&(this.zo(),this.zo=null),this.Uo&&(this.Uo(),this.Uo=null);var t=this.Lo;return t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ee(t),this.Lo=null),!0}},i.firstLayoutCompleted=function(){var t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?Ei(t,{opacity:0}):this.togglePlaceholder(!1)},i.Bo=function(){!this.Do&&this.Lo.classList.contains("i-amphtml-ghost")&&(this.Lo.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))},i.qo=function(){this.Do&&(this.Lo.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this.Do=!1)},i.propagateDataset=function(t){for(var e in t.dataset)e in this.element.dataset||delete t.dataset[e];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}($o),Es=function(t){N(n,t);var e=V(n);function n(){return e.apply(this,arguments)}n.prerenderAllowed=function(){return!0};var i=n.prototype;return i.isLayoutSupported=function(t){return t==Ki||nr(t)},i.buildCallback=function(){!function(t){if(!Ce(t)){var e=function(t){var e;return tr(null!==(e=t.getAttribute("layout"))&&void 0!==e?e:"")||Rr(t).layout}(t);if(e!=Ki){var n=t.ownerDocument.createElement("div");sr(n),function(t){return function(t){for(var e=[],n=t.firstChild;n;n=n.nextSibling)!ve(n)&&e.push(n);return e}(t)}(t).forEach((function(t){n.appendChild(t)})),t.appendChild(n)}}}(this.element)},n}($o);function Ss(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=new(Li.getImage(t));n&&(o.referrerPolicy="no-referrer");var s=0;return null!=i&&(!function(t){var e;return null===(e=t.featurePolicy)||void 0===e?void 0:e.allowedFeatures().includes("attribution-reporting")}(t.document)?s=5:(i=Ts(t,s=6,r)(i),o.attributionSrc=i)),e=Ts(t,s,r)(e),o.src=e,o}function Ts(t,e,n){var i={ATTRIBUTION_REPORTING_STATUS:function(){return e}},r=ii(n||t.document),o={ATTRIBUTION_REPORTING_STATUS:!0};return function(t){return r.expandUrlSync(t,i,o)}}var Ps="amp-pixel",Os=function(t){N(n,t);var e=V(n);function n(t){var n;return(n=e.call(this,t)).Wo=null,n}var i=n.prototype;return i.isLayoutSupported=function(t){return!0},i.buildCallback=function(){this.element.setAttribute("aria-hidden","true"),this.$o=this.element.getAttribute("referrerpolicy"),this.$o&&Xt("no-referrer"==this.$o,"".concat(Ps,': invalid "referrerpolicy" value "').concat(this.$o,'".')+' Only "no-referrer" is supported'),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")?Kt().info(Ps,"inabox img already present"):this.getAmpDoc().whenFirstVisible().then(this.Yo.bind(this))},i.Yo=function(){var t=this;if(this.Wo)return Kt().error(Ps,"duplicate pixel"),this.Wo;this.Wo=ni(this.win).promise(1).then((function(){var e=t.element.getAttribute("src");if(e)return ii(t.element).expandUrlAsync(t.Ko(e)).then((function(e){if(t.win){var n=function(t,e,n,i,r){return n&&"no-referrer"!==n&&Wt().error("pixel","Unsupported referrerPolicy: %s",n),"no-referrer"===n?function(t,e,n,i){if("referrerPolicy"in Image.prototype)return Ss(t,e,!0,n,i);var r,o=(r={src:"about:blank",style:"display:none"},function(t,e){for(var n in e)t.setAttribute(n,e[n]);return t}(t.document.createElement("iframe"),r));return o.onload=function(){Ss(o.contentWindow,e,void 0,void 0,i)},t.document.body.appendChild(o),o}(t,e,i,r):Ss(t,e,!1,i,r)}(t.win,e,t.$o,t.element.getAttribute("attributionsrc"),t.element);return Kt().info(Ps,"pixel triggered: ",e),n}}))}))},i.Ko=function(t){return Xt(/^(https\:\/\/|\/\/)/i.test(t),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+t),t},n}($o),xs=function(){function t(t,e,n){var i=this;this.Xo=ni(t),this.Jo=e,this.Qo=n||0,this.Zo=-1,this.rs=0,this.es=!1,this.us=function(){i.os()}}var e=t.prototype;return e.isPending=function(){return-1!=this.Zo},e.schedule=function(t){var e=t||this.Qo;this.es&&e<10&&(e=10);var n=Date.now()+e;return(!this.isPending()||n-this.rs<-10)&&(this.cancel(),this.rs=n,this.Zo=this.Xo.delay(this.us,e),!0)},e.os=function(){this.Zo=-1,this.rs=0,this.es=!0,this.Jo(),this.es=!1},e.cancel=function(){this.isPending()&&(this.Xo.cancel(this.Zo),this.Zo=-1)},t}();function Rs(t,e){var n=e.documentElement;return t.some((function(t){return n.hasAttribute(t)}))}function Ms(t){return Rs(["⚡4email","amp4email"],t)}function Cs(t){return Rs(["⚡","amp"],t)}var _s="Action",Ls="__AMP_ACTION_MAP__"+Math.random(),Is="__AMP_ACTION_QUEUE__",ks="__AMP_ACTION_HANDLER__",Ds={form:["submit","clear"]},Ns=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Bs={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},Vs=function(){function t(t,e,n,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"?",u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Math.random();this.node=t,this.method=e,this.args=n,this.source=i,this.caller=r,this.event=o,this.trust=s,this.actionEventType=a,this.tagOrTarget=u||t.tagName,this.sequenceId=h}return t.prototype.satisfiesTrust=function(t){if(!K(this.trust))return Kt().error(_s,"Invalid trust for '".concat(this.method,"': ").concat(this.trust)),!1;if(this.trust<t){var e=function(t){switch(t){case 1:return"low";case 3:return"high";default:return nt(2===t),"default"}}(this.trust);return Wt().error(_s,'"'.concat(this.actionEventType,'" event with "').concat(e,'" trust is not allowed to ')+'invoke "'.concat(this.tagOrTarget.toLowerCase(),".").concat(this.method,'".')),!1}return!0},t}(),Us=function(){function t(t,e){this.ampdoc=t,this.gs=e||t.getRootNode(),this.bs=this.ampdoc.isSingleDoc()&&Ms(this.gs),this.ys=this.bs?Ns:null,this.ws=w(),this.As=w(),this.addEvent("tap"),this.addEvent("submit"),this.addEvent("change"),this.addEvent("input-debounced"),this.addEvent("input-throttled"),this.addEvent("valid"),this.addEvent("invalid")}var e=t.prototype;return e.addEvent=function(t){var e=this;if("tap"==t)this.gs.addEventListener("click",(function(n){if(!n.defaultPrevented){var i=n.target;e.trigger(i,t,n,3)}})),this.gs.addEventListener("keydown",(function(n){var i=n.key,r=n.target;if("Enter"==i||" "==i){var o=r.getAttribute("role"),s=o&&A(Bs,o.toLowerCase());!n.defaultPrevented&&s&&e.trigger(r,t,n,3)&&n.preventDefault()}}));else if("submit"==t)this.gs.addEventListener(t,(function(n){var i=n.target;e.trigger(i,t,n,3)}));else if("change"==t)this.gs.addEventListener(t,(function(n){var i=n.target;e.xs(n),e.trigger(i,t,n,3)}));else if("input-debounced"==t){var n=ft(this.ampdoc.win,(function(n){var i=n.target;e.trigger(i,t,n,3)}),300);this.gs.addEventListener("input",(function(t){var i=new Fs(t);e.xs(i),n(i)}))}else if("input-throttled"==t){var i=lt(this.ampdoc.win,(function(n){var i=n.target;e.trigger(i,t,n,3)}),100);this.gs.addEventListener("input",(function(t){var n=new Fs(t);e.xs(n),i(n)}))}else"valid"!=t&&"invalid"!=t||this.gs.addEventListener(t,(function(n){var i=n.target;e.trigger(i,t,n,3)}))},e.addGlobalTarget=function(t,e){this.ws[t]=e},e.addGlobalMethodHandler=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;this.As[t]={handler:e,minTrust:n}},e.trigger=function(t,e,n,i,r){return this.Es(t,e,n,i,r)},e.execute=function(t,e,n,i,r,o,s){var a=new Vs(t,e,n,i,r,o,s);this.Ps(a)},e.installActionHandler=function(t,e){if(Jt(js(t.getAttribute("id")||"")||t.tagName.toLowerCase()in Ds),t[ks])Kt().error(_s,"Action handler already installed for ".concat(t));else{t[ks]=e;var n=t[Is];j(n)&&ni(ee(t)).delay((function(){n.forEach((function(t){try{e(t)}catch(e){Kt().error(_s,"Action execution failed:",t,e)}})),t[Is].length=0}),1)}},e.hasAction=function(t,e,n){return!!this.Ts(t,e,n)},e.hasResolvableAction=function(t,e,n){var i=this,r=this.Ts(t,e,n);return!!r&&r.actionInfos.some((function(t){var e=t.target;return!!i.Os(e)}))},e.hasResolvableActionForTarget=function(t,e,n,i){var r=this,o=this.Ts(t,e,i);return!!o&&o.actionInfos.some((function(t){var e=t.target;return r.Os(e)==n}))},e.Os=function(t){return this.ws[t]?this.gs:this.gs.getElementById(t)},e.setAllowlist=function(t){Jt(t.every((function(t){return t.tagOrTarget&&t.method}))),this.ys=t},e.addToAllowlist=function(t,e,n){var i=this;n&&n.includes("email")!==this.bs||(this.ys||(this.ys=[]),j(e)||(e=[e]),e.forEach((function(e){i.ys.some((function(n){return n.tagOrTarget==t&&n.method==e}))||i.ys.push({tagOrTarget:t,method:e})})))},e.Es=function(t,e,n,i,r){var o=this,s=this.Ts(t,e);if(!s)return!1;var u=Math.random(),h=null;return s.actionInfos.forEach((function(c){var l=c.args,f=c.method,d=c.str,m=c.target,v=function(t,e,n){if(!t)return t;var i=n||{};if(e){var r=function(t){return t.detail}(e);r&&(i.event=r)}var o=w();return Object.keys(t).forEach((function(e){var n=t[e];if("object"==p(n)&&n.expression){var r=n.expression,s=function(t,e){if("."==e)return t;for(var n,i=t,r=a(e.split("."),!0);!(n=r()).done;){var o=n.value;if(!(o&&i&&void 0!==i[o]&&"object"==p(i)&&A(i,o))){i=void 0;break}i=i[o]}return i}(i,r);n=void 0===s?null:s}i[n]?o[e]=i[n]:o[e]=n})),o}(l,n,r),g=function(){var r=o.Os(m);if(r){var a=new Vs(r,f,v,t,s.node,n,i,e,r.tagName||m,u);return o.Ps(a)}o.Is('Target "'.concat(m,'" not found for action [').concat(d,"]."))};h=h?h.then(g):g()})),s.actionInfos.length>=1},e.Is=function(t,e){if(e){var n=Wt().createError("[".concat(_s,"] ").concat(t));throw Ro(n,e),n}Wt().error(_s,t)},e.Ps=function(t){var e=t.method,n=t.tagOrTarget;if(this.ys&&!function(t,e){var n=t.method,i=t.node,r=t.tagOrTarget;n===Xo&&"function"==typeof i.getDefaultActionAlias&&(n=i.getDefaultActionAlias());var o=n.toLowerCase(),s=r.toLowerCase();return e.some((function(t){return(t.tagOrTarget.toLowerCase()===s||"*"===t.tagOrTarget)&&t.method.toLowerCase()===o}))}(t,this.ys))return this.Is('"'.concat(n,".").concat(e,'" is not allowlisted ').concat(JSON.stringify(this.ys),".")),null;var i=this.ws[n];if(i)return i(t);var r=t.node,o=this.As[e];if(o&&t.satisfiesTrust(o.minTrust))return o.handler(t);var s=r.tagName.toLowerCase();if(js(s))return r.enqueAction?r.enqueAction(t):this.Is('Unrecognized AMP element "'.concat(s,'".'),r),null;var a=Ds[s];if(js(r.getAttribute("id")||"")||a&&a.indexOf(e)>-1){var u=r[ks];return u?u(t):(r[Is]=r[Is]||[],r[Is].push(t)),null}return this.Is("Target (".concat(n,") doesn't support \"").concat(e,'" action.'),t.caller),null},e.Ts=function(t,e,n){for(var i,r=t;r;){if(n&&r==n)return null;var o=this.Rs(r,e);if(o&&!(i=r).disabled&&!le(i,":disabled"))return{node:r,actionInfos:Jt(o)};r=r.parentElement}return null},e.Rs=function(t,e){var n=this.Ss(t,e);return n&&n[e]||null},e.Ss=function(t,e){var n=t[Ls];if(void 0===n)if(n=null,t.hasAttribute("on"))n=Hs(t.getAttribute("on"),t),t[Ls]=n;else if(t.hasAttribute("execute")){var i=t.getAttribute("execute");n=Hs("".concat(e,":").concat(i),t),t[Ls]=n}return n},e.setActions=function(t,e){t.setAttribute("on",e),delete t[Ls]},e.xs=function(t){var e=w(),n=t.target;if(void 0!==n.value&&(e.value=n.value),"INPUT"==n.tagName&&(e.valueAsNumber=Number(n.value)),void 0!==n.checked&&(e.checked=n.checked),void 0===n.min&&void 0===n.max||(e.min=n.min,e.max=n.max),n.files&&(e.files=U(n.files).map((function(t){return{name:t.name,size:t.size,type:t.type}}))),Object.keys(e).length>0)try{t.detail=e}catch(t){}},t}();function js(t){return"amp-"===t.substring(0,4)}var Fs=function(t){this.detail=null,function(t,e){var n=e||w();for(var i in t){var r=t[i];n[i]="function"==typeof r?qs:t[i]}}(t,this)};function qs(){Jt(null)}function Hs(t,e){var n,i,r=Gs.bind(null,t,e),o=Ws.bind(null,t,e),s=null,a=new Js(t);do{if((n=a.next()).type==Ys.EOF||n.type==Ys.SEPARATOR&&";"==n.value);else if(n.type==Ys.LITERAL||n.type==Ys.ID){var u=n.value;o(a.next(),[Ys.SEPARATOR],":");var h=[];do{var c=o(a.next(),[Ys.LITERAL,Ys.ID]).value,l=Xo,f=null;(i=a.peek()).type==Ys.SEPARATOR&&"."==i.value&&(a.next(),l=o(a.next(),[Ys.LITERAL,Ys.ID]).value||l,(i=a.peek()).type==Ys.SEPARATOR&&"("==i.value&&(a.next(),f=zs(a,o,r))),h.push({event:u,target:c,method:l,args:f,str:t}),i=a.peek()}while(i.type==Ys.SEPARATOR&&","==i.value&&a.next());s||(s=w()),s[u]=h}else r(!1,"; unexpected token [".concat(n.value||"","]"))}while(n.type!=Ys.EOF);return s}function zs(t,e,n){var i,r,o=t.peek(),s=null;if(o.type==Ys.OBJECT){s=w();var a=t.next().value;s.__AMP_OBJECT_STRING__=a,e(t.next(),[Ys.SEPARATOR],")")}else do{var u=i=t.next(),h=u.type,c=u.value;if(h!=Ys.SEPARATOR||","!=c&&")"!=c)if(h==Ys.LITERAL||h==Ys.ID){e(t.next(),[Ys.SEPARATOR],"=");var l=[i=e(t.next(!0),[Ys.LITERAL,Ys.ID])];if(i.type==Ys.ID)for(o=t.peek();o.type==Ys.SEPARATOR&&"."==o.value;o=t.peek())t.next(),i=e(t.next(!1),[Ys.ID]),l.push(i);var f=0==(r=l).length?null:1==r.length?r[0].value:{expression:r.map((function(t){return t.value})).join(".")};s||(s=w()),s[c]=f,n((o=t.peek()).type==Ys.SEPARATOR&&(","==o.value||")"==o.value),"Expected either [,] or [)]")}else n(!1,"; unexpected token [".concat(i.value||"","]"))}while(i.type!=Ys.SEPARATOR||")"!=i.value);return s}function Gs(t,e,n,i){return Xt(n,"Invalid action definition in %s: [%s] %s",e,t,i||"")}function Ws(t,e,n,i,r){return void 0!==r?Gs(t,e,i.includes(n.type)&&n.value==r,"; expected [".concat(r,"]")):Gs(t,e,i.includes(n.type)),n}var Ys={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},Ks=" \t\n\r\f\v \u2028\u2029",Js=function(){function t(t){this._s=t,this.Ms=-1}var e=t.prototype;return e.next=function(t){var e=this.dr(t||!1);return this.Ms=e.index,e},e.peek=function(t){return this.dr(t||!1)},e.dr=function(t){var e=this.Ms+1;if(e>=this._s.length)return{type:Ys.EOF,index:this.Ms};var n=this._s.charAt(e);if(-1!=Ks.indexOf(n)){for(e++;e<this._s.length&&-1!=Ks.indexOf(this._s.charAt(e));e++);if(e>=this._s.length)return{type:Ys.EOF,index:e};n=this._s.charAt(e)}if(t&&(Xs(n)||"."==n&&e+1<this._s.length&&Xs(this._s[e+1]))){for(var i="."==n,r=e+1;r<this._s.length;r++){var o=this._s.charAt(r);if("."!=o){if(!Xs(o))break}else i=!0}var s=this._s.substring(e,r),a=i?parseFloat(s):parseInt(s,10);return e=r-1,{type:Ys.LITERAL,value:a,index:e}}if(-1!=";:.()=,|!".indexOf(n))return{type:Ys.SEPARATOR,value:n,index:e};if(-1!="\"'".indexOf(n)){for(var u=-1,h=e+1;h<this._s.length;h++)if(this._s.charAt(h)==n){u=h;break}if(-1==u)return{type:Ys.INVALID,index:e};var c=this._s.substring(e+1,u);return e=u,{type:Ys.LITERAL,value:c,index:e}}if("{"==n){for(var l=1,f=-1,d=e+1;d<this._s.length;d++){var m=this._s[d];if("{"==m?l++:"}"==m&&l--,l<=0){f=d;break}}if(-1==f)return{type:Ys.INVALID,index:e};var p=this._s.substring(e,f+1);return e=f,{type:Ys.OBJECT,value:p,index:e}}for(var v=e+1;v<this._s.length&&-1==" \t\n\r\f\v \u2028\u2029;:.()=,|!\"'{}".indexOf(this._s.charAt(v));v++);var g=this._s.substring(e,v);if(e=v-1,t&&("true"==g||"false"==g)){var y="true"==g;return{type:Ys.LITERAL,value:y,index:e}}return Xs(g.charAt(0))?{type:Ys.LITERAL,value:g,index:e}:{type:Ys.ID,value:g,index:e}},t}();function Xs(t){return t>="0"&&t<="9"}function $s(t){return!!t&&"function"==typeof t.getFormData}var Qs=["GET","POST"],Zs=[j,b];function ta(t,e){var n=k({},e);if($s(e.body)){var i=e.body;n.headers["Content-Type"]="multipart/form-data;charset=utf-8",n.body=function(t){for(var e=[],n=t.next();!n.done;n=t.next())e.push(n.value);return e}(i.entries())}return{input:t,init:n}}function ea(t,e){var n,i=t||{},r=i.credentials;return nt(void 0===r||"include"==r||"omit"==r),i.method=void 0===(n=i.method)?"GET":(n=n.toUpperCase(),nt(Qs.includes(n)),n),i.headers=i.headers||{},e&&(i.headers.Accept=e),nt(null!==i.body),i}function na(t){return new Promise((function(e){if(t.ok)return e(t);var n=t.status,i=Wt().createError("HTTP error ".concat(n));throw i.retriable=function(t){return 415==t||t>=500&&t<600}(n),i.response=t,i}))}var ia=function(){function t(t){this.win=t;var e=qn(t);this.ks=e.isSingleDoc()?e.getSingleDoc():null}var e=t.prototype;return e.Cs=function(t,e){var n=arguments,i=this;return function(t,e,n,i){if(!e)return u();var r=i.prerenderSafe?u():e.whenFirstVisible(),o=si(e),s=po(n),a=o.hasCapability("xhrInterceptor"),h=i.bypassInterceptorForDev&&!1;return s||!a||h?r:e.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?r.then((function(){return o.isTrustedViewer()})).then((function(e){if(e||Ir(t,"untrusted-xhr-interception")){var r={originalRequest:ta(n,i)};return o.sendMessageAwaitResponse("xhr",r).then((function(t){return function(t,e){if(st(b(t),"Object expected: %s",t),"document"!=e)return new Response(t.body,t.init);var n=w(),i={status:200,statusText:"OK",getResponseHeader:function(t){return n[String(t).toLowerCase()]||null}};if(t.init){var r=t.init;j(r.headers)&&r.headers.forEach((function(t){var e=t[0],i=t[1];n[String(e).toLowerCase()]=String(i)})),r.status&&(i.status=parseInt(r.status,10)),r.statusText&&(i.statusText=String(r.statusText))}return new Response(t.body?String(t.body):"",i)}(t,i.responseType)}))}})):r}(this.win,this.ks,t,e).then((function(t){if(t)return t;if($s(e.body)){var r=e.body;e.body=r.getFormData()}return i.win.fetch.apply(null,n)}))},e.Ns=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=function(t,e,n){return nt("string"==typeof e),!1!==n.ampCors&&(e=Eo(t,e)),e}(this.win,t,e),e=function(t,e,n){n=n||{};var i=function(t){return t.origin||oo(t.location.href).origin}(t);return i==oo(e).origin&&(n.headers=n.headers||{},n.headers["AMP-Same-Origin"]="true"),n}(this.win,t,e),this.Cs(t,e).then((function(t){return t}),(function(e){var n=oo(t).origin;throw Wt().createExpectedError("XHR","Failed fetching (".concat(n,"/...):"),e&&e.message)}))},e.fetchJson=function(t,e){return this.fetch(t,function(t){var e=ea(t,"application/json");if("POST"==e.method&&!$s(e.body)){nt(Zs.some((function(t){return t(e.body)}))),e.headers["Content-Type"]=e.headers["Content-Type"]||"text/plain;charset=utf-8";var n=e.headers["Content-Type"];e.body="application/x-www-form-urlencoded"===n?co(e.body):JSON.stringify(e.body)}return e}(e))},e.fetchText=function(t,e){return this.fetch(t,ea(e,"text/plain"))},e.xssiJson=function(t,e){return e?t.text().then((function(t){return t.startsWith(e)?at(t.slice(e.length)):(Wt().warn("XHR",'Failed to strip missing prefix "'.concat(e,'" in fetch response.')),at(t))})):t.json()},e.fetch=function(t,e){var n=ea(e);return this.Ns(t,n).then((function(t){return na(t)}))},e.sendSignal=function(t,e){return this.Ns(t,e).then((function(t){return na(t)}))},e.getCorsUrl=function(t,e){return Eo(t,e)},t}(),ra=function(t){N(n,t);var e=V(n);function n(t){var n;return(n=e.call(this,t)).js=w(),n}var i=n.prototype;return i.fetch=function(e,n){var i=this,r=n&&n.headers&&n.headers.Accept||"",o=!n||!n.method||"GET"===n.method,s=this.Ds(e,r),a=!!this.js[s];if(o&&a)return this.js[s].then((function(t){return t.clone()}));var u=t.prototype.fetch.call(this,e,n);return o&&(this.js[s]=u.then((function(t){return delete i.js[s],t.clone()}),(function(t){throw delete i.js[s],t}))),u},i.Ds=function(t,e){return mo(Ao(t,wo(this.win.location)))+e},n}(ia),oa={"+":"-","/":"_","=":"."};function sa(t){var e=function(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=String.fromCharCode(t[n]);return e.join("")}(t);return btoa(e).replace(/[+/=]/g,(function(t){return oa[t]}))}var aa="CacheCidApi",ua=function(){function t(t){this.vu=t,this.yh=si(this.vu),this.kl=null,this.Xo=ni(this.vu.win)}var e=t.prototype;return e.isSupported=function(){return this.yh.isCctEmbedded()&&this.yh.isProxyOrigin()},e.getScopedCid=function(t){var e=this;return this.yh.isCctEmbedded()?(this.kl||(this.kl=this.Nl("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc")),this.kl.then((function(n){return n?e.Cl(n,t):null}))):Promise.resolve(null)},e.Nl=function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i={publisherOrigin:wo(this.vu.win.location)},r="fetchCidTimeout";return this.Xo.timeoutPromise(3e4,hi(this.vu.win).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:i}),r).then((function(t){return t.json().then((function(t){if(t.optOut)return null;var i=t.publisherClientId;if(!i&&n&&t.alternateUrl){var r="".concat(t.alternateUrl,"?key=").concat("AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc");return e.Nl(r,!1)}return i}))})).catch((function(t){return t&&t.response?t.response.json().then((function(t){Kt().error(aa,JSON.stringify(t))})):t&&t.message==r?Kt().expectedError(aa,t):Kt().error(aa,t),null}))},e.Cl=function(t,e){var n=t+";"+e;return Gn(this.vu.win).sha384Base64(n).then((function(t){return"amp-"+t}))},t}(),ha="-test-amp-cookie-tmp";function ca(t,e){var n=function(t){try{return t.document.cookie}catch(t){return""}}(t);if(!n)return null;for(var i=n.split(";"),r=0;r<i.length;r++){var o=i[r].trim(),s=o.indexOf("=");if(-1!=s&&pt(o.substring(0,s).trim())==e){var a=o.substring(s+1).trim();return pt(a,a)}}return null}function la(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};!function(t,e,n){if(e.allowOnProxyOrigin)Xt(!e.highestAvailableDomain,"Could not support highestAvailable Domain on proxy origin, specify domain explicitly");else{Xt(!po(t.location.href),"Should never attempt to set cookie on proxy origin: ".concat(n));var i=oo(t.location.href).hostname.toLowerCase(),r=oo(Tt).hostname.toLowerCase();Xt(!(i==r||G(i,"."+r)),"Should never attempt to set cookie on proxy origin. (in depth check): "+n)}}(t,r,e);var o=void 0;r.domain?o=r.domain:r.highestAvailableDomain&&(o=function(t){var e=t.document.head&&t.document.head.querySelector("meta[name='amp-cookie-scope']");if(e){var n=e.getAttribute("content")||"",i=wo(t.location.href);return G(i,"."+n)?n:i.split("://")[1]}if(!po(t.location.href))for(var r=t.location.hostname.split("."),o=r[r.length-1],s=function(t){for(var e=ha;ca(t,e);)e=ha+0;return e}(t),a=r.length-2;a>=0;a--)if(o=r[a]+"."+o,fa(t,s,"delete",Date.now()+1e3,o),"delete"==ca(t,s))return fa(t,s,"delete",Date.now()-1e3,o),o;return null}(t)),fa(t,e,n,i,o,r.sameSite,r.secure)}function fa(t,e,n,i,r,o,s){"ampproject.org"==r&&(n="delete",i=0);var a=encodeURIComponent(e)+"="+encodeURIComponent(n)+"; path=/"+(r?"; domain="+r:"")+"; expires="+new Date(i).toUTCString()+function(t,e){return e?"; SameSite=".concat(e):""}(0,o)+(s?"; Secure":"");try{t.document.cookie=a}catch(t){}}var da="GoogleCidApi",ma="AMP_TOKEN",pa="$RETRIEVING",va="$OPT_OUT",ga="$NOT_FOUND",ya=3e4,ba=31536e6,wa=function(){function t(t){this.t=t.win,this.Xo=ni(this.t),this.jl={};var e=Wn(t).canonicalUrl;this.Dl=e?oo(e).origin:null}var e=t.prototype;return e.getScopedCid=function(t,e){var n,i=this;return this.jl[e]?this.jl[e]:this.jl[e]=this.Xo.poll(200,(function(){return(n=ca(i.t,ma))!==pa})).then((function(){if(n===va)return va;if((n!==ga||!i.Ul())&&i.zl(n))return null;n&&!i.zl(n)||i.Ll(pa,ya);var r="https://ampcid.google.com/v1/publisher:getClientId?key="+t;return i.Nl(r,e,n).then((function(r){var o=i.R(r);if(!o&&r.alternateUrl){var s="".concat(r.alternateUrl,"?key=").concat(t);return i.Nl(s,e,n).then(i.R.bind(i))}return o})).catch((function(t){return i.Ll("$ERROR",ya),t&&t.response?t.response.json().then((function(t){Kt().error(da,JSON.stringify(t))})):Kt().error(da,t),null}))}))},e.Nl=function(t,e,n){var i={originScope:e,canonicalOrigin:this.Dl};return n&&(i.securityToken=n),this.Xo.timeoutPromise(ya,hi(this.t).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:i}).then((function(t){return t.json()})))},e.R=function(t){return t.optOut?(this.Ll(va,ba),va):t.clientId?(this.Ll(t.securityToken,ba),t.clientId):(t.alternateUrl||this.Ll(ga,36e5),null)},e.Ll=function(t,e){t&&la(this.t,ma,t,this.Hl(e),{highestAvailableDomain:!0})},e.Hl=function(t){return this.t.Date.now()+t},e.Ul=function(){return po(Li.getDocumentReferrer(this.t))},e.zl=function(t){return t&&"$"===t[0]},t}(),Aa=function(){function t(t){this.vu=t,this.yh=si(this.vu);var e=Wn(this.vu).canonicalUrl;this.Dl=e?oo(e).origin:null}var e=t.prototype;return e.isSupported=function(){return this.yh.hasCapability("cid")?this.yh.isTrustedViewer():Promise.resolve(!1)},e.getScopedCid=function(t,e){var n={scope:e,clientIdApi:!!t,canonicalOrigin:this.Dl};return t&&(n.apiKey=t),this.yh.sendMessageAwaitResponse("cid",n)},t}(),Ea=31536e6,Sa=/^[a-zA-Z0-9-_.]+$/,Ta="amp-cid-optout",Pa="amp-google-client-id-api",Oa={googleanalytics:"AMP_ECID_GOOGLE"},xa={googleanalytics:"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"},Ra=function(){function t(t){this.ampdoc=t,this.Gl=null,this.Vl=Object.create(null),this.Fl=new ua(t),this.Bl=new Aa(t),this.ql=new wa(t),this.$l=null}var e=t.prototype;return e.get=function(t,e,n){var i=this;return Xt(Sa.test(t.scope)&&Sa.test(t.cookieName),"The CID scope and cookie name must only use the characters [a-zA-Z0-9-_.]+\nInstead found: %s",t.scope),e.then((function(){return i.ampdoc.whenFirstVisible()})).then((function(){return t=i.ampdoc,ei(t).then((function(t){return t.get(Ta).then((function(t){return!!t}))})).catch((function(){return!1}));var t})).then((function(r){if(r)return"";var o=i.Wl(t,n||e);return ni(i.ampdoc.win).timeoutPromise(1e4,o,'Getting cid for "'.concat(t.scope,'" timed out')).catch((function(t){d(t)}))}))},e.optOut=function(){return t=this.ampdoc,si(t).sendMessage("cidOptOut",{}),ei(t).then((function(t){return t.set(Ta,!0)}));var t},e.Wl=function(t,e){var n=this,i=t.scope,r=oo(this.ampdoc.win.location.href);if(!po(r)){var o=this.Kl(i);return o?this.ql.getScopedCid(o,i).then((function(r){if(r==va)return null;if(r){var o=t.cookieName||i;return Ma(n.ampdoc.win,o,r),r}return La(n,t,e)})):La(this,t,e)}return this.Bl.isSupported().then((function(t){if(t){var o=n.Kl(i);return n.Bl.getScopedCid(o,i)}return n.Fl.isSupported()&&n.Kl(i)?n.Fl.getScopedCid(i).then((function(t){return t||n.Yl(e,i,r)})):n.Yl(e,i,r)}))},e.Yl=function(t,e,n){var i=this;return function(t,e){if(t.Gl)return t.Gl;var n=t.ampdoc.win;return t.Gl=function(t){var e,n=t.win;try{e=n.localStorage.getItem("amp-cid")}catch(t){}var i=Promise.resolve(e);return!e&&xe(n)&&(i=Ia(t)),i.then((function(t){if(!t)return null;var e=at(t);return{time:e.time,cid:e.cid}}))}(t.ampdoc).then((function(i){var r,o,s,a=!1;return!i||(o=i.time,s=Date.now(),o+Ea<s)?(r=Gn(n).sha384Base64(Da(n)),a=!0):(r=Promise.resolve(i.cid),i.time+864e5<Date.now()&&(a=!0)),a&&r.then((function(n){!function(t,e,n){var i=t.win;xe(i)?Ia(t,ka(n)):e.then((function(){try{i.localStorage.setItem("amp-cid",ka(n))}catch(t){}}))}(t.ampdoc,e,n)})),r}))}(this,t).then((function(t){return Gn(i.ampdoc.win).sha384Base64(t+function(t){return Xt(po(t),"Expected proxy origin %s",t.origin),wo(t)}(n)+e)}))},e.Kl=function(t){return this.$l||(this.$l=this.Jl()),this.$l[t]},e.Jl=function(){var t={},e=this.ampdoc.getMetaByName(Pa);return e&&e.split(",").forEach((function(e){if((e=e.trim()).indexOf("=")>0){var n=e.split("="),i=n[0].trim();t[i]=n[1].trim()}else{var r=e,o=Oa[r];o?t[o]=xa[r]:Wt().warn("CID","Unsupported client for Google CID API: ".concat(r,".")+'Please remove or correct meta[name="'.concat(Pa,'"]'))}})),t},t}();function Ma(t,e,n){la(t,e,n,Date.now()+Ea,{highestAvailableDomain:!0})}function Ca(t,e,n){ei(t).then((function(t){if(!t.isViewerStorage()){var i=_a(e);t.setNonBoolean(i,n)}}))}function _a(t){return"amp-cid:"+t}function La(t,e,n){var i=t.ampdoc,r=i.win,o=e.disableBackup,s=e.scope,a=e.cookieName||s;return function(t,e){var n=t.ampdoc,i=n.win,r=e.disableBackup,o=e.scope,s=e.cookieName||o,a=ca(i,s);return a?Promise.resolve(a):r?Promise.resolve(null):ei(n).then((function(t){var e=_a(s);return t.get(e,Ea)})).then((function(t){return t&&"string"==typeof t?t:null}))}(t,e).then((function(u){if(!u&&!e.createCookieIfNotPresent)return Promise.resolve(null);if(u)return/^amp-/.test(u)&&(Ma(r,a,u),o||Ca(i,a,u)),Promise.resolve(u);if(t.Vl[s])return t.Vl[s];var h=Na(r).then((function(t){return"amp-"+t}));return Promise.all([h,n]).then((function(t){var e=t[0];ca(r,a)||(Ma(r,a,e),o||Ca(i,a,e))})),t.Vl[s]=h}))}function Ia(t,e){var n=si(t);return n.isTrustedViewer().then((function(t){if(t)return Kt().expectedError("CID","Viewer does not provide cap=cid"),n.sendMessageAwaitResponse("cid",e).then((function(t){return t&&!function(t){try{return at(t)}catch(t){return null}}(t)?(Kt().expectedError("CID","invalid cid format"),JSON.stringify({time:Date.now(),cid:t})):t}))}))}function ka(t){return JSON.stringify({time:Date.now(),cid:t})}function Da(t){return ct(t,16)||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}function Na(t){var e=Da(t);if("string"==typeof e)return Gn(t).sha384Base64(e);var n=e;return c((function(){return sa(n).replace(/\.+$/,"")}))}var Ba="Crypto",Va=function(){function t(t){this.t=t;var e=null,n=!1;t.crypto&&(t.crypto.subtle?e=t.crypto.subtle:t.crypto.webkitSubtle&&(e=t.crypto.webkitSubtle,n=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=e,this.Ls=n,this.Us=null}var e=t.prototype;return e.sha384=function(t){var e=this;if("string"==typeof t&&(t=ht(t)),!this.subtle||this.Us)return(this.Us||this.zs()).then((function(e){return e(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&&Wt().error(Ba,"SubtleCrypto failed, fallback to closure lib.",n),e.zs().then((function(){return e.sha384(t)}))}))}catch(n){return Kt().error(Ba,"SubtleCrypto failed, fallback to closure lib.",n),this.zs().then((function(){return e.sha384(t)}))}},e.sha384Base64=function(t){return this.sha384(t).then((function(t){return sa(t)}))},e.uniform=function(t){return this.sha384(t).then((function(t){for(var e=0,n=2;n>=0;n--)e=(e+t[n])/256;return e}))},e.zs=function(){var t=this;return this.Us?this.Us:this.Us=Yn(this.t).preloadExtension("amp-crypto-polyfill").then((function(){return gn(t.t,"crypto-polyfill")}))},e.isPkcsAvailable=function(){return Boolean(this.subtle)&&!1!==this.t.isSecureContext},e.importPkcsKey=function(t){Jt(this.isPkcsAvailable());var e=this.Ls?ut(JSON.stringify(t)):t;return this.subtle.importKey("jwk",e,this.pkcsAlgo,!0,["verify"])},e.verifyPkcs=function(t,e,n){return Jt(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,e,n)},t}(),Ua=["prefetch","preload","preconnect","dns-prefetch"],ja=function(){function t(t){this.vu=t,this.Hs=null,this.Gs=null}return t.prototype.get=function(){if(this.Hs)return this.Hs;var t=this.vu,e=bo(t.getUrl()),n=t.getRootNode(),i=n&&n.AMP&&n.AMP.canonicalUrl;if(!i){var r=n.querySelector("link[rel=canonical]");i=r?oo(r.href).href:e}var o,s=function(t){return String(Math.floor(1e4*t.Math.random()))}(t.win),a=function(t){var e=w();if(t.head)for(var n=t.head.querySelectorAll("link[rel]"),i=function(t){var i=n[t],r=i.href,o=i.getAttribute("rel");if(!o||!r)return"continue";o.split(/\s+/).forEach((function(t){if(-1==Ua.indexOf(t)){var n=e[t];n?(j(n)||(n=e[t]=[n]),n.push(r)):e[t]=r}}))},r=0;r<n.length;r++)i(r);return e}(t.win.document),u=(o=t.win.document.head.querySelector('meta[name="viewport"]'))?o.getAttribute("content"):null,h=function(t){if(!t.isSingleDoc()||"a"!=(e=t.win.location.href,po(e=ro(e))?e.pathname.split("/",2)[1]:null))return null;var e,n=vt(oo(t.win.location.href).search).amp_r;return void 0===n?null:vt(n)}(t);return this.Hs={get sourceUrl(){return bo(t.getUrl())},canonicalUrl:i,pageViewId:s,get pageViewId64(){return this.Gs||(this.Gs=Na(t.win)),this.Gs},linkRels:a,viewport:u,replaceParams:h}},t}(),Fa={attributes:!0,attributeFilter:["hidden"],subtree:!0},qa=function(){function t(t){this.gs=t.getRootNode();var e=this.gs.ownerDocument||this.gs;this.t=Jt(e.defaultView),this.Ht=null,this.Vs=null}var e=t.prototype;return e.add=function(t){var e=this;this.Fs();var n=this.Vs.add(t);return function(){n(),0===e.Vs.getHandlerCount()&&e.dispose()}},e.Fs=function(){var t=this;if(!this.Ht){this.Vs=new vi;var e=new this.t.MutationObserver((function(e){e&&t.Vs.fire(e)}));this.Ht=e,e.observe(this.gs,Fa)}},e.dispose=function(){this.Ht&&(this.Ht.disconnect(),this.Vs.removeAll(),this.Ht=null,this.Vs=null)},t}();function Ha(t){try{return t.state}catch(t){return null}}var za="History",Ga="AMP.History",Wa=function(){function t(t,e){this.vu=t,this.Xo=ni(t.win),this.Bs=e,this.qs=0,this.Ws=[],this.Ou=[],this.Bs.setOnStateUpdated(this.$s.bind(this))}var e=t.prototype;return e.cleanup=function(){this.Bs.cleanup()},e.push=function(t,e){var n=this;return this.Ys((function(){return n.Bs.push(e).then((function(e){return n.$s(e),t&&(n.Ws[e.stackIndex]=t),e.stackIndex}))}),"push")},e.pop=function(t){var e=this;return this.Ys((function(){return e.Bs.pop(t).then((function(t){e.$s(t)}))}),"pop")},e.replace=function(t){var e=this;return this.Ys((function(){return e.Bs.replace(t)}),"replace")},e.get=function(){var t=this;return this.Ys((function(){return t.Bs.get()}),"get")},e.goBack=function(t){var e=this;return this.Ys((function(){return e.qs<=0&&!t?u():e.Bs.pop(e.qs).then((function(t){e.$s(t)}))}),"goBack")},e.replaceStateForTarget=function(t){var e=this;Jt("#"==t[0]);var n=this.vu.win.location.hash;return this.push((function(){e.vu.win.location.replace(n||"#")})).then((function(){e.Bs.replaceStateForTarget(t)}))},e.getFragment=function(){return this.Bs.getFragment()},e.updateFragment=function(t){return"#"==t[0]&&(t=t.substr(1)),this.Bs.updateFragment(t)},e.$s=function(t){this.qs=t.stackIndex,this.Ks(t)},e.Ks=function(t){var e=this;if(!(this.qs>=this.Ws.length-1)){for(var n=[],i=this.Ws.length-1;i>this.qs;i--)this.Ws[i]&&(n.push(this.Ws[i]),this.Ws[i]=void 0);if(this.Ws.splice(this.qs+1),n.length>0)for(var r=function(i){e.Xo.delay((function(){return n[i](t)}),1)},o=0;o<n.length;o++)r(o)}},e.Ys=function(t,e){var n=new h,i=n.promise,r=n.reject,o=n.resolve,s=new Error("history trace for "+e+": ");return this.Ou.push({callback:t,resolve:o,reject:r,trace:s}),1==this.Ou.length&&this.Xs(),i},e.Xs=function(){var t=this;if(0!=this.Ou.length){var e,n=this.Ou[0];try{e=n.callback()}catch(t){e=Promise.reject(t)}e.then((function(t){n.resolve(t)}),(function(t){Kt().error(za,"failed to execute a task:",t),n.trace&&(n.trace.message+=t,Kt().error(za,n.trace)),n.reject(t)})).then((function(){t.Ou.splice(0,1),t.Xs()}))}},t}(),Ya=function(){function t(t){var e=this;this.win=t,this.Xo=ni(t);var n=this.win.history;this.Js=n.length-1;var i,r,o=Ha(n);o&&void 0!==o[Ga]&&(this.Js=Math.min(o[Ga],this.Js)),this.qs=this.Js,this.Qs,this.$s=null,this.Zs="state"in n,this.th=this.nh(this.qs),n.pushState&&n.replaceState?(this.ih=n.originalPushState||n.pushState.bind(n),this.rh=n.originalReplaceState||n.replaceState.bind(n),i=function(t,n,i){e.th=t;try{e.ih(t,n,i||null)}catch(t){Kt().error(za,"pushState failed: "+t.message)}},r=function(t,n,i){e.th=t;try{void 0!==i?e.rh(t,n,i):e.rh(t,n)}catch(t){Kt().error(za,"replaceState failed: "+t.message)}},n.originalPushState||(n.originalPushState=this.ih),n.originalReplaceState||(n.originalReplaceState=this.rh)):(i=function(t,n,i){e.th=t},r=function(t,n,i){e.th=t}),this.eh=i,this.uh=r;try{this.uh(this.nh(this.qs,!0))}catch(t){Kt().error(za,"Initial replaceState failed: "+t.message)}n.pushState=this.oh.bind(this),n.replaceState=this.sh.bind(this),this.hh=function(t){var n=t.state;Kt().fine(za,"popstate event: "+e.win.history.length+", "+JSON.stringify(n)),e.ah()},this.win.addEventListener("popstate",this.hh)}var e=t.prototype;return e.cleanup=function(){this.ih&&(this.win.history.pushState=this.ih),this.rh&&(this.win.history.replaceState=this.rh),this.win.removeEventListener("popstate",this.hh)},e.nh=function(t,e){var n=w(e?this.fh():void 0);return n[Ga]=t,n},e.setOnStateUpdated=function(t){this.$s=t},e.push=function(t){var e=this;return this.lh((function(){var n=e.dh(e.fh(),t||{});return e.oh(n,void 0,n.fragment?"#"+n.fragment:void 0),c((function(){return e.dh(n,{stackIndex:e.qs})}))}))},e.pop=function(t){var e=this;return t=Math.max(t,this.Js),this.lh((function(){return e.mh(e.qs-t+1)})).then((function(t){return e.dh(e.fh(),{stackIndex:t})}))},e.replace=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.lh((function(){var n=t.dh(t.fh(),e||{}),i=(n.url||"").replace(/#.*/,""),r=n.fragment?"#"+n.fragment:"";return t.sh(n,n.title,i||r?i+r:void 0),c((function(){return t.dh(n,{stackIndex:t.qs})}))}))},e.get=function(){var t=this;return c((function(){return t.dh(t.fh(),{stackIndex:t.qs})}))},e.backTo=function(t){var e=this;return t=Math.max(t,this.Js),this.lh((function(){return e.mh(e.qs-t)}))},e.ah=function(){var t=this.fh();Kt().fine(za,"history event: "+this.win.history.length+", "+JSON.stringify(t));var e=t?t[Ga]:void 0,n=this.qs,i=this.Qs;this.Qs=void 0,n>this.win.history.length-2&&(n=this.win.history.length-2,this.ph(this.dh(t,{stackIndex:n}))),null==e?n+=1:n=e<this.win.history.length?e:this.win.history.length-1,t||(t={}),t[Ga]=n,this.uh(t,void 0,void 0),n!=this.qs&&this.ph(this.dh(t,{stackIndex:n})),n<this.Js&&(this.Js=n),i&&i.resolve()},e.fh=function(){return this.Zs?Ha(this.win.history):this.th},e.gh=function(){Jt(!this.Qs)},e.lh=function(t){return this.Qs?this.Qs.promise.then(t,t):t()},e.bh=function(){this.gh();var t=new h,e=t.reject,n=t.resolve,i=this.Xo.timeoutPromise(500,t.promise);return this.Qs={promise:i,resolve:n,reject:e},i},e.mh=function(t){var e=this;if(this.gh(),t<=0)return Promise.resolve(this.qs);this.th=this.nh(this.qs-t);var n=this.bh();return this.win.history.go(-t),n.then((function(){return Promise.resolve(e.qs)}))},e.oh=function(t,e,n){this.gh(),t||(t={});var i=this.qs+1;t[Ga]=i,this.eh(t,e,n),i!=this.win.history.length-1&&(i=this.win.history.length-1,t[Ga]=i,this.uh(t));var r=this.dh(t,{stackIndex:i});this.ph(r)},e.replaceStateForTarget=function(t){var e=this;Jt("#"==t[0]),this.lh((function(){e.win.removeEventListener("popstate",e.hh);try{e.win.location.replace(t)}finally{e.win.addEventListener("popstate",e.hh)}return e.sh(),u()}))},e.sh=function(t,e,n){this.gh(),t||(t={});var i=Math.min(this.qs,this.win.history.length-1);t[Ga]=i,this.uh(t,e,n);var r=this.dh(t,{stackIndex:i});this.ph(r)},e.ph=function(t){this.gh(),t.stackIndex=Math.min(t.stackIndex,this.win.history.length-1),this.qs!=t.stackIndex&&(Kt().fine(za,"stack index changed: "+this.qs+" -> "+t.stackIndex),this.qs=t.stackIndex,this.$s&&this.$s(t))},e.getFragment=function(){var t=this.win.location.hash;return t=t.substr(1),Promise.resolve(t)},e.updateFragment=function(t){return this.replace({fragment:t})},e.dh=function(t,e){var n=k(k({},t&&t.data||{}),e.data||{});return k(k(k({},t||{}),e),{},{data:n})},t}(),Ka=function(){function t(t,e){var n=this;this.win=t,this.yh=e,this.qs=0,this.$s=null,this.wh=this.yh.onMessage("historyPopped",(function(t){return n.Ah(t)}))}var e=t.prototype;return e.replaceStateForTarget=function(t){Jt("#"==t[0]),this.win.location.replace(t)},e.cleanup=function(){this.wh()},e.setOnStateUpdated=function(t){this.$s=t},e.xh=function(t,e,n){return this.Eh(t)?t:(Kt().warn(za,'Ignored unexpected "%s" data:',n,t),e)},e.Eh=function(t){return!!t&&void 0!==t.stackIndex},e.push=function(t){var e=this,n=k({stackIndex:this.qs+1},t||{}),i="pushHistory";return this.yh.sendMessageAwaitResponse(i,n).then((function(t){var r=n,o=e.xh(t,r,i);return e.ph(o),o}))},e.pop=function(t){var e=this;if(t>this.qs)return this.get();var n={stackIndex:this.qs},i="popHistory";return this.yh.sendMessageAwaitResponse(i,n).then((function(t){var n={stackIndex:e.qs-1},r=e.xh(t,n,i);return e.ph(r),r}))},e.replace=function(t){var e=this;if(t&&t.url){if(!this.yh.hasCapability("fullReplaceHistory")){var n={stackIndex:this.qs};return Promise.resolve(n)}var i=t.url.replace(/#.*/,"");t.url=i}var r=k({stackIndex:this.qs},t||{}),o="replaceHistory";return this.yh.sendMessageAwaitResponse(o,r,!0).then((function(t){var n=r,i=e.xh(t,n,o);return e.ph(i),i}))},e.get=function(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.qs,title:""})},e.Ah=function(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.Eh(t)?this.ph(t):Kt().warn(za,'Ignored unexpected "historyPopped" data:',t)},e.ph=function(t){var e=t.stackIndex;this.qs!=e&&(Kt().fine(za,"stackIndex: ".concat(this.qs," -> ").concat(e)),this.qs=e,this.$s&&this.$s(t))},e.getFragment=function(){return this.yh.hasCapability("fragment")?this.yh.sendMessageAwaitResponse("getFragment",void 0,!0).then((function(t){if(!t)return"";var e=t;return"#"==e[0]&&(e=e.substr(1)),e})):Promise.resolve("")},e.updateFragment=function(t){return this.yh.hasCapability("fragment")?this.yh.sendMessageAwaitResponse("replaceHistory",{fragment:t},!0):u()},t}();function Ja(t){var e,n=si(t);return n.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?e=new Ka(t.win,n):(pn(t.win,"global-history-binding",Ya),e=gn(t.win,"global-history-binding")),new Wa(t,e)}var Xa=['<div slot=i-amphtml-svc class="i-amphtml-svc i-amphtml-loading-container i-amphtml-fill-content amp-hidden"></div>'],$a=function(){function t(t){this.vu=t;var e=t.win,n=this.Xl.bind(this);this.Ql=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.needsRootBounds,r=n.rootMargin,o=n.threshold,s=xe(e)&&(i||r)?e.document:void 0;return new e.IntersectionObserver(t,{threshold:o,root:s,rootMargin:r})}((function(t){return t.forEach(n)}),e),this.yf=new WeakMap}var e=t.prototype;return e.dispose=function(){this.Ql.disconnect()},e.track=function(t){this.Ql.observe(t)},e.untrack=function(t){this.Ql.unobserve(t),this.Zl(t)},e.Xl=function(t){var e=t.boundingClientRect,n=t.isIntersecting,i=t.target,r=e.height,o=e.width,s=i,a=n&&o>20&&r>20,u=this.yf.get(s);a!==(u&&u.shown||!1)&&(a&&!u&&(u=this.tv(s,o,r),this.yf.set(s,u)),u&&(u.shown=a,u.container.classList.toggle("amp-hidden",!a),u.loader.classList.toggle("amp-active",a)))},e.tv=function(t,e,n){var i=Date.now(),r=function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.win.Date.now(),o=e.ownerDocument.createElement("div");return function(t,e){return Yn(t.win).installExtensionForDoc(t,"amp-loader").then((function(){return function(t){return kn(t,"loader","amp-loader")}(e)}))}(t,e).then((function(s){var a=t.win.Date.now()-r;s.initializeLoader(e,o,a,n,i)})),o}(this.vu,t,e,n,i),o=Tr(this.vu.win.document)(Xa);return o.appendChild(r),t.appendChild(o),{shown:!1,loader:r,container:o}},e.Zl=function(t){var e=this.yf.get(t);e&&(this.yf.delete(t),Ee(e.container))},t}(),Qa=function(){function t(t,e){var n=this;this.win=t,this.iv=e,this.Oh=[],this.nv=new vi,this.rv=function(t){Y(t.target)&&n.sv(t.target)},this.ov=function(e){ni(t).delay((function(){n.win.document.activeElement&&n.sv(n.win.document.activeElement)}),500)},this.win.document.addEventListener("focus",this.rv,!0),this.win.addEventListener("blur",this.ov)}var e=t.prototype;return e.Zl=function(){this.win.document.removeEventListener("focus",this.rv,!0),this.win.removeEventListener("blur",this.ov)},e.onFocus=function(t){return this.nv.add(t)},e.sv=function(t){var e=Date.now();0==this.Oh.length||this.Oh[this.Oh.length-1].el!=t?this.Oh.push({el:t,time:e}):this.Oh[this.Oh.length-1].time=e,this.purgeBefore(e-this.iv),this.nv.fire(t)},e.getLast=function(){return 0==this.Oh.length?null:this.Oh[this.Oh.length-1].el},e.purgeBefore=function(t){for(var e=this.Oh.length-1,n=0;n<this.Oh.length;n++)if(this.Oh[n].time>=t){e=n-1;break}-1!=e&&this.Oh.splice(0,e+1)},e.hasDescendantsOf=function(t){this.win.document.activeElement&&this.sv(this.win.document.activeElement);for(var e=0;e<this.Oh.length;e++)if(t.contains(this.Oh[e].el))return!0;return!1},t}(),Za=function(){function t(t){var e=this;this.ampdoc=t,this.win=t.win,this.qe=ti(t),this.Th=ui(this.ampdoc),this.Gc=ai(this.win),this.uv=new Qa(this.win,6e4),this.uv.onFocus((function(t){e.hv(t)}))}var e=t.prototype;return e.forceChangeSize=function(t,e,n,i,r){this.av(Io.forElement(t),e,n,r,void 0,!0,i)},e.requestChangeSize=function(t,e,n,i,r){var o=this;return new Promise((function(s,a){o.av(Io.forElement(t),e,n,i,r,!1,(function(t){t?s():a(new Error("changeSize attempt denied"))}))}))},e.expandElement=function(t){Io.forElement(t).completeExpand(),this.qe.schedulePass(70)},e.attemptCollapse=function(t){var e=this;return new Promise((function(n,i){e.av(Io.forElement(t),0,0,void 0,void 0,!1,(function(e){e?(Io.forElement(t).completeCollapse(),n()):i(Kt().createExpectedError("collapse attempt denied"))}))}))},e.collapseElement=function(t){var e=this.Th.getLayoutRect(t);0!=e.width&&0!=e.height&&(Ir(this.win,"dirty-collapse-element")?this.dirtyElement(t):this.qe.setRelayoutTop(e.top)),Io.forElement(t).completeCollapse(),this.qe.schedulePass(70)},e.measureElement=function(t){return this.Gc.measurePromise(t)},e.mutateElement=function(t,e,n){return this.cv(t,null,e,n)},e.measureMutateElement=function(t,e,n){return this.cv(t,e,n)},e.fv=function(t){var e=xi(this.win,t.element);return{top:parseInt(e.marginTop,10)||0,right:parseInt(e.marginRight,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0}},e.cv=function(t,e,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=function(){var e=i.Th.getLayoutRect(t);return 0!=e.width&&0!=e.height?e.top:-1},s=-1;return this.Gc.runPromise({measure:function(){e&&e(),r||(s=o())},mutate:function(){if(n(),!r){t.classList.contains("i-amphtml-element")&&Io.forElement(t).requestMeasure();for(var e=t.getElementsByClassName("i-amphtml-element"),a=0;a<e.length;a++)Io.forElement(e[a]).requestMeasure();i.qe.schedulePass(70),-1!=s&&i.qe.setRelayoutTop(s),i.Gc.measure((function(){var t=o();-1!=t&&t!=s&&(i.qe.setRelayoutTop(t),i.qe.schedulePass(70)),i.qe.maybeHeightChanged()}))}}})},e.dirtyElement=function(t){var e=!1;if(t.classList.contains("i-amphtml-element")){var n=Io.forElement(t);this.qe.setRelayoutTop(n.getLayoutBox().top)}else e=!0;this.qe.schedulePass(70,e)},e.hv=function(t){var e=fe(t,(function(t){return!!Io.forElementOptional(t)}));if(e){var n=Io.forElement(e),i=n.getPendingChangeSize();void 0!==i&&this.av(n,i.height,i.width,i.margins,void 0,!0)}},e.av=function(t,e,n,i,r,o,s){var a=this;t.hasBeenMeasured()&&!i?this.lv(t,e,n,void 0,r,o,s):this.Gc.measure((function(){t.hasBeenMeasured()||t.measure();var u=i?{newMargins:i,currentMargins:a.fv(t)}:void 0;a.lv(t,e,n,u,r,o,s)}))},e.lv=function(t,e,n,i,r,o,s){t.resetPendingChangeSize();var a,u,h=t.getLayoutSize();if(!(void 0!==e&&e!=h.height||void 0!==n&&n!=h.width||void 0!==i&&(a=i.currentMargins,u=i.newMargins,void 0!==u.top&&u.top!=a.top||void 0!==u.right&&u.right!=a.right||void 0!==u.bottom&&u.bottom!=a.bottom||void 0!==u.left&&u.left!=a.left)))return void 0===e&&void 0===n&&void 0===i&&Kt().error("Mutator","attempting to change size with undefined dimensions",t.debugid),void(s&&s(!0));this.qe.updateOrEnqueueMutateTask(t,{resource:t,newHeight:e,newWidth:n,marginChange:i,event:r,force:o,callback:s}),this.qe.schedulePassVsync()},t}(),tu=null,eu=["gclid","gclsrc"],nu=[/^t.co$/];function iu(){return Xt(tu,"E#19457 trackImpressionPromise")}function ru(t,e,n,i){var r,o,s;try{r=t.open(e,n,i)}catch(t){Kt().error("DOM","Failed to open url on target: ",n,t)}return!r&&"_top"!=n&&("number"!=typeof s&&(s=0),s+8>(o=i||"").length||-1===o.indexOf("noopener",s))&&(r=t.open(e,"_top")),r}var ou="navigation",su="click",au="contextmenu",uu=["_top","_blank"],hu="data-a4a-orig-href",cu=function(){function t(t){var e=this;this.ampdoc=t,this.Ph=t.getRootNode(),this.Th=ui(this.ampdoc),this.yh=si(this.ampdoc),this.Oh=Kn(this.ampdoc),this.Ih=Qn(this.ampdoc.win),this.Rh=this.Ih.isIos()&&this.Ih.isSafari(),this.Sh=xe(this.ampdoc.win)&&this.yh.isOvertakeHistory(),this._h=this.Ph!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.Mh="inabox"==Lt(this.ampdoc.win).runtime,this.kh=this.Ph.nodeType==Node.DOCUMENT_NODE?this.Ph.documentElement:this.Ph,this.Ch=this.Nh.bind(this),this.Ph.addEventListener(su,this.Ch),this.Ph.addEventListener(au,this.Ch),this.jh=!1,function(t){return t.whenReady().then((function(){return!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")}))}(this.ampdoc).then((function(t){e.jh=t})),this.Dh=!1,this.Lh=!1,Promise.all([this.yh.isTrustedViewer(),this.yh.getViewerOrigin()]).then((function(t){var n;e.Dh=t[0],e.Lh=(n=t[1],Pt.test(ro(n).origin))})),this.Uh=null,this.zh=new Uo,this.Hh=new Uo}t.installAnchorClickInterceptor=function(t,e){e.document.documentElement.addEventListener("click",lu.bind(null,t),!0)};var e=t.prototype;return e.cleanup=function(){this.Ch&&(this.Ph.removeEventListener(su,this.Ch),this.Ph.removeEventListener(au,this.Ch))},e.openWindow=function(t,e,n,i){var r="";!this.Ih.isIos()&&this.Ih.isChrome()||i||(r+="noopener");var o=ru(t,e,n,r);o&&!i&&(o.opener=null)},e.navigateTo=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.opener,o=void 0!==r&&r,s=i.target,a=void 0===s?"_top":s;e=this.Gh(e);var u=oi(this.kh);if(u.isProtocolValid(e)){Xt(uu.includes(a),"Target '".concat(a,"' not supported."));var h=u.getSourceUrl(t.location);e=u.resolveRelativeUrl(e,h),"_blank"!=a?n&&(this.Uh||(this.Uh=this.Vh()),this.Uh.includes(n)&&this.navigateToAmpUrl(e,n))||(t.top.location.href=e):this.openWindow(t,e,a,o)}else Wt().error(ou,"Cannot navigate to invalid protocol: "+e)},e.navigateToAmpUrl=function(t,e){return!!this.yh.hasCapability("a2a")&&(this.yh.sendMessage("a2aNavigate",{url:t,requestedBy:e}),!0)},e.Vh=function(){var t=this.Ph.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((function(t){return t.trim()})):[]},e.Nh=function(t){if(!t.defaultPrevented){var e=de(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");e&&e.href&&(t.type==su?this.Fh(e,t):t.type==au&&this.Bh(e,t))}},e.Fh=function(t,e){this.qh(t);var n=this.Wh(t.href);if(!this.$h(e,t,n)&&!this.Yh(e,t,n)){var i=this.Kh();fu(n)!=fu(i)&&(this.Xh(t,e),n=this.Wh(t.href)),this.Jh(e,t,n,i)}},e.Bh=function(t,e){this.qh(t),this.Xh(t,e)},e.Xh=function(t,e){this.zh.forEach((function(n){n(t,e)}))},e.Gh=function(t){return this.Hh.forEach((function(e){t=e(t)})),t},e.qh=function(t){var e=null;this.jh&&!this._h&&(e=function(t,e){for(var n=vt(oo(Li.getLocation(t).href).search),i=[],r=0;r<eu.length;r++){var o=eu[r];void 0!==n[o]&&i.push(o)}var s=e.getAttribute("data-amp-addparams"),a=e.href;s&&(a=ho(a,vt(s)));for(var u=vt(oo(a).search),h=i.length-1;h>=0;h--)void 0!==u[i[h]]&&i.splice(h,1);return function(t){for(var e="",n=0;n<t.length;n++){var i=t[n];e+=0==n?"".concat(i,"=QUERY_PARAM(").concat(i,")"):"&".concat(i,"=QUERY_PARAM(").concat(i,")")}return e}(i)}(this.ampdoc.win,t)),ii(t).maybeExpandLink(t,e)},e.Yh=function(t,e,n){if(!this.Sh)return!1;var i=ee(e),r=e.href,o=n.protocol;if("ftp:"==o)return ru(i,r,"_blank"),t.preventDefault(),!0;var s=/^(https?|mailto):$/.test(o);return!(!this.Rh||s||(ru(i,r,"_top"),t.preventDefault(),0))},e.$h=function(t,e,n){return!(!e.hasAttribute("rel")||!e.getAttribute("rel").split(" ").map((function(t){return t.trim()})).includes("amphtml")||!this.navigateToAmpUrl(n.href,"<a rel=amphtml>")||(t.preventDefault(),0))},e.Jh=function(t,e,n,i){var r=fu(n),o=fu(i);if(n.hash&&r==o)this.Qh(t,n,i);else{var s=(e.getAttribute("target")||"").toLowerCase();(this._h||this.Mh)&&"_top"!=s&&"_blank"!=s&&(s="_blank",e.setAttribute("target",s));var a=this.ampdoc.win,u=Qn(a),h=si(e);i.search&&u.isSafari()&&u.getMajorVersion()>=13&&h.isProxyOrigin()&&h.isEmbedded()&&this.Zh(a,i,s),this.viewerInterceptsNavigation(r,"intercept_click")&&t.preventDefault()}},e.Zh=function(t,e,n){Kt().info(ou,"Removing iframe query string before navigation:",e.search);var i=e.href,r="".concat(e.origin).concat(e.pathname).concat(e.hash);t.history.replaceState(null,"",r);var o=function(){var e=t.location.href;e==r?(Kt().info(ou,"Restored iframe URL with query string:",i),t.history.replaceState(null,"",i)):Kt().error(ou,"Unexpected iframe URL change:",e,r)};"_blank"===n?t.setTimeout(o,0):t.addEventListener("pageshow",(function e(n){n.persisted&&(o(),t.removeEventListener("pageshow",e))}))},e.Qh=function(t,e,n){var i=this;if(t.preventDefault(),!this._h){var r=e.hash.slice(1),o=null;if(r){var s=ae(r);o=this.Ph.getElementById(r)||this.Ph.querySelector('a[name="'.concat(s,'"]'))}e.hash!=n.hash?this.Oh.replaceStateForTarget(e.hash).then((function(){i.ta(o,r)})):this.ta(o,r)}},e.registerAnchorMutator=function(t,e){this.zh.enqueue(t,e)},e.registerNavigateToMutator=function(t,e){this.Hh.enqueue(t,e)},e.ta=function(t,e){var n=this;t?(this.Th.scrollIntoView(t),ni(this.ampdoc.win).delay((function(){return n.Th.scrollIntoView(t)}),1)):Kt().warn(ou,"failed to find element with id=".concat(e," or a[name=").concat(e,"]"))},e.Wh=function(t){return oi(this.kh).parse(t)},e.Kh=function(){return this.Wh("")},e.viewerInterceptsNavigation=function(t,e){var n=this.yh.hasCapability("interceptNavigation"),i=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!n||!i||!this.Dh&&!this.Lh||(this.yh.sendMessage("navigateTo",{url:t,requestedBy:e}),0))},t}();function lu(t,e){var n=de(e.target,"A");if(n&&n.href){var i=n.getAttribute(hu)||n.getAttribute("href");if(i){var r={CLICK_X:function(){return e.pageX},CLICK_Y:function(){return e.pageY}},o=ii(n).expandUrlSync(i,r,{CLICK_X:!0,CLICK_Y:!0});o!=i&&(n.getAttribute(hu)||n.setAttribute(hu,i),n.setAttribute("href",o))}}}function fu(t){return"".concat(t.origin).concat(t.pathname).concat(t.search)}function du(t){return j(t)?t:[t]}var mu=function(){function t(t){this.qe=ti(t)}var e=t.prototype;return e.setOwner=function(t,e){Io.setOwner(t,e)},e.schedulePreload=function(t,e){this.na(this.qe.getResourceForElement(t),!1,du(e))},e.scheduleLayout=function(t,e){this.na(this.qe.getResourceForElement(t),!0,du(e))},e.schedulePause=function(t,e){var n=this.qe.getResourceForElement(t);e=du(e),this.ia(n,e,(function(t){t.pause()}))},e.scheduleResume=function(t,e){var n=this.qe.getResourceForElement(t);e=du(e),this.ia(n,e,(function(t){t.resume()}))},e.scheduleUnlayout=function(t,e){var n=this.qe.getResourceForElement(t);e=du(e),this.ia(n,e,(function(t){t.unlayout()}))},e.requireLayout=function(t,e){var n=[];return this.ra(t,(function(t){n.push(t.element.ensureLoaded())})),Promise.all(n)},e.ia=function(t,e,n){for(var i,r=a(e,!0);!(i=r()).done;){var o=i.value;Jt(t.element.contains(o)),this.ra(o,n)}},e.ra=function(t,e){if(t.classList.contains("i-amphtml-element")){e(this.qe.getResourceForElement(t));var n=t.getPlaceholder();n&&this.ra(n,e)}else for(var i=t.getElementsByClassName("i-amphtml-element"),r=[],o=0;o<i.length;o++){for(var s=i[o],a=!1,u=0;u<r.length;u++)if(r[u].contains(s)){a=!0;break}a||(r.push(s),e(this.qe.getResourceForElement(s)))}},e.na=function(t,e,n){this.ia(t,n,(function(e){e.element.ensureLoaded(t.getLayoutPriority())}))},t}(),pu=function(){function t(t){this.ea=t.navigator,this.t=t}var e=t.prototype;return e.isAndroid=function(){return/Android/i.test(this.ea.userAgent)},e.isIos=function(){return/iPhone|iPad|iPod/i.test(this.ea.userAgent)},e.isSafari=function(){return/Safari/i.test(this.ea.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()},e.isChrome=function(){return/Chrome|CriOS/i.test(this.ea.userAgent)&&!this.isEdge()&&!this.isOpera()},e.isFirefox=function(){return/Firefox|FxiOS/i.test(this.ea.userAgent)&&!this.isEdge()},e.isOpera=function(){return/OPR\/|Opera|OPiOS/i.test(this.ea.userAgent)},e.isEdge=function(){return/Edge/i.test(this.ea.userAgent)},e.isWebKit=function(){return/WebKit/i.test(this.ea.userAgent)&&!this.isEdge()},e.isWindows=function(){return/Windows/i.test(this.ea.userAgent)},e.isStandalone=function(){return this.isIos()&&this.ea.standalone||this.isChrome()&&this.t.matchMedia("(display-mode: standalone)").matches},e.isBot=function(){return/bot/i.test(this.ea.userAgent)},e.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:this.ua(/\sVersion\/(\d+)/,1):this.isChrome()?this.ua(/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?this.ua(/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?this.ua(/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?this.ua(/Edge\/(\d+)/,1):0},e.ua=function(t,e){if(!this.ea.userAgent)return 0;var n=this.ea.userAgent.match(t);return!n||e>=n.length?0:parseInt(n[e],10)},e.getIosVersionString=function(){var t,e,n;return this.isIos()&&(null===(t=this.ea.userAgent)||void 0===t||null===(e=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===e||null===(n=e[1])||void 0===n?void 0:n.replace(/_/g,"."))||""},e.getIosMajorVersion=function(){var t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])},t}();function vu(t){pn(t,"platform",pu)}var gu=function(){function t(t){this.Ke=t,this.vv=w()}var e=t.prototype;return e.addTransition=function(t,e,n){var i=this.dv(t,e);nt(!this.vv[i]),this.vv[i]=n},e.setState=function(t){var e=this.Ke;this.Ke=t;var n=this.dv(e,t),i=this.vv[n];null==i||i()},e.dv=function(t,e){return"".concat(t,"|").concat(e)},t}(),yu=function(){function t(){this.Uu=[],this.mv={},this.pv=0,this.bv=0}var e=t.prototype;return e.getSize=function(){return this.Uu.length},e.getLastEnqueueTime=function(){return this.pv},e.getLastDequeueTime=function(){return this.bv},e.getTaskById=function(t){return this.mv[t]||null},e.enqueue=function(t){Jt(!this.mv[t.id]),this.Uu.push(t),this.mv[t.id]=t,this.pv=Date.now()},e.dequeue=function(t){var e=this.mv[t.id];return!!this.removeAtIndex(t,this.Uu.indexOf(e))&&(this.bv=Date.now(),!0)},e.peek=function(t){for(var e=1e6,n=null,i=0;i<this.Uu.length;i++){var r=this.Uu[i],o=t(r);o<e&&(e=o,n=r)}return n},e.forEach=function(t){this.Uu.forEach(t)},e.removeAtIndex=function(t,e){var n=this.mv[t.id];return!(!n||this.Uu[e]!=n||(this.Uu.splice(e,1),delete this.mv[t.id],0))},e.purge=function(t){for(var e=this.Uu.length;e--;)t(this.Uu[e])&&this.removeAtIndex(this.Uu[e],e)},t}(),bu="Resources",wu=function(){function t(t){var e=this;this.ampdoc=t,this.win=t.win,this.yh=si(t),this.gv=this.yh.isRuntimeOn(),this.yv=!1,this.ss=0,this.qe=[],this.wv=0,this.Av=0,this.xv=0,this.Yc=this.ampdoc.isVisible(),this.ds=!1,this.Ev=!0,this.Ov=!1,this.Tv=-1,this.Pv=!0,this.Iv=-1,this.Sv=0,this.Mv=0,this.os=new xs(this.win,(function(){return e.doPass()})),this.Rv=new xs(this.win,(function(){e.Pv=!0,e.schedulePass()})),this._v=new yu,this.Ou=new yu,this.kv=this.Nv.bind(this),this.Cv=[],this.vs=[],this.jv=!1,this.Th=ui(this.ampdoc),this.Gc=ai(this.win),this.uv=new Qa(this.win,6e4),this.Dv=!1,this.Uv=0,this.zv=!1,this.Lv=[],this.Hv=[],this.cs=new h,this.Gv=new gu(this.ampdoc.getVisibilityState()),this.Th.onChanged((function(t){e.Sv=e.win.Date.now(),e.Mv=t.velocity,t.relayoutAll&&(e.Pv=!0,e.zv=!0),e.schedulePass()})),this.Th.onScroll((function(){e.Sv=e.win.Date.now()})),this.ampdoc.onVisibilityChanged((function(){-1==e.Tv&&e.ampdoc.isVisible()&&(e.Tv=e.win.Date.now()),e.schedulePass()})),this.yh.onRuntimeState((function(t){Kt().fine(bu,"Runtime state:",t),e.gv=t,e.schedulePass(1)})),zo(this.ampdoc,(function(){e.Vv(e.Gv),e.schedulePass(0)})),this.Fv(),this.Bv=lt(this.win,(function(t){return e.qv(t)}),250),jr(this.win.document,"scroll",this.Bv,{capture:!0,passive:!0})}var e=t.prototype;return e.Fv=function(){var t=this;this.ampdoc.whenReady().then((function(){t.ds=!0,t.ps(),t.vs=null,function(t){return gn(t,"input")}(t.win).setupInputModeClasses(t.ampdoc);var e=function(){return t.Rv.schedule()};e(),Promise.race([Hr(t.win),ni(t.win).promise(3100)]).then(e),t.win.document.fonts&&"loaded"!=t.win.document.fonts.status&&t.win.document.fonts.ready.then(e)}))},e.get=function(){return this.qe.slice(0)},e.getAmpdoc=function(){return this.ampdoc},e.getResourceForElement=function(t){return Io.forElement(t)},e.getResourceForElementOptional=function(t){return Io.forElementOptional(t)},e.getScrollDirection=function(){return Math.sign(this.Mv)||1},e.add=function(t){this.wv++,1==this.wv&&this.Th.ensureReadyForElements();var e=Io.forElementOptional(t);e&&0!=e.getState()&&!t.reconstructWhenReparented()?(e.requestMeasure(),Kt().fine(bu,"resource reused:",e.debugid)):(e=new Io(++this.ss,t,this),Kt().fine(bu,"resource added:",e.debugid)),this.qe.push(e),this.Rv.schedule(1e3)},e.$v=function(){return this.Av<20||this.ampdoc.getVisibilityState()==li||this.ampdoc.hasBeenVisible()},e.Wv=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.gv||this.yv){var i=this.ampdoc.getVisibilityState(),r=i==ci&&!t.prerenderAllowed(),o=i==li&&!t.previewAllowed();r||o||(this.ds?this.Kv(t,n):t.isBuilt()||t.isBuilding()||e&&this.vs.includes(t)||(this.vs.push(t),this.ps()))}},e.ps=function(){if(!this.jv)try{this.jv=!0,this.Yv()}finally{this.jv=!1}},e.Yv=function(){for(var t=0;t<this.vs.length;t++){var e=this.vs[t];(this.ds||Pe(e.element,this.ampdoc.getRootNode()))&&(this.vs.splice(t--,1),this.Kv(e))}},e.Kv=function(t){var e=this;if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]||this.$v()||t.isBuildRenderBlocking()))return null;var n=t.build();return n?(Kt().fine(bu,"build resource:",t.debugid),this.Av++,this.xv++,n.then((function(){return e.schedulePass()}),(function(n){if(e.Jv(t),!Co(n))throw n}))):null},e.remove=function(t){var e=Io.forElementOptional(t);e&&this.Jv(e)},e.Jv=function(t){var e=this.qe.indexOf(t);-1!=e&&this.qe.splice(e,1),t.isBuilt()&&t.pauseOnRemove(),3===t.getState()&&t.layoutCanceled(),this.Xv(t,!0),Kt().fine(bu,"resource removed:",t.debugid)},e.upgraded=function(t){var e=Io.forElement(t);this.Wv(e),Kt().fine(bu,"resource upgraded:",e.debugid)},e.updateLayoutPriority=function(t,e){var n=Io.forElement(t);n.updateLayoutPriority(e),this.Ou.forEach((function(t){t.resource==n&&(t.priority=e)})),this.schedulePass()},e.schedulePass=function(t){return this.os.schedule(t)},e.updateOrEnqueueMutateTask=function(t,e){for(var n=null,i=0;i<this.Cv.length;i++)if(this.Cv[i].resource==t){n=this.Cv[i];break}n?(n.newHeight=e.newHeight,n.newWidth=e.newWidth,n.marginChange=e.marginChange,n.event=e.event,n.force=e.force||n.force,n.callback=e.callback):this.Cv.push(e)},e.schedulePassVsync=function(){var t=this;this.Dv||(this.Dv=!0,this.Gc.mutate((function(){return t.doPass()})))},e.ampInitComplete=function(){this.Ov=!0,Kt().fine(bu,"ampInitComplete"),this.schedulePass()},e.setRelayoutTop=function(t){-1==this.Iv?this.Iv=t:this.Iv=Math.min(t,this.Iv)},e.maybeHeightChanged=function(){this.zv=!0},e.onNextPass=function(t){this.Lv.push(t)},e.doPass=function(){var t=this;if(this.gv){if(this.Yc=this.ampdoc.isVisible(),this.xv=0,this.ds&&this.Ev&&this.Ov){var e;this.Ev=!1;var n=this.win.document,i=Wn(this.ampdoc);this.yh.sendMessage("documentLoaded",{title:n.title,sourceUrl:bo(this.ampdoc.getUrl()),isStory:"AMP-STORY"===(null===(e=n.body.firstElementChild)||void 0===e?void 0:e.tagName),serverLayout:n.documentElement.hasAttribute("i-amphtml-element"),linkRels:i.linkRels,metaTags:{viewport:i.viewport},viewport:i.viewport},!0),this.Uv=this.Th.getContentHeight(),this.yh.sendMessage("documentHeight",{height:this.Uv},!0),Kt().fine(bu,"document height on load: %s",this.Uv)}!this.Ev&&this.Qv&&this.qe.every((function(t){return t.getState()!=Io.NOT_BUILT||t.element.R1()}))&&(this.Qv=!1,this.zv=!0);var r=this.Th.getSize();Kt().fine(bu,"PASS: visible=",this.Yc,", relayoutAll=",this.Pv,", relayoutTop=",this.Iv,", viewportSize=",r.width,r.height),this.os.cancel(),this.Dv=!1,this.Gv.setState(this.ampdoc.getVisibilityState()),this.Zv(),this.zv&&(this.zv=!1,this.Gc.measure((function(){var e=t.Th.getContentHeight();e!=t.Uv&&(t.yh.sendMessage("documentHeight",{height:e},!0),t.Uv=e,Kt().fine(bu,"document height changed: %s",t.Uv),t.Th.contentHeightChanged())})));for(var o=0;o<this.Lv.length;o++)(0,this.Lv[o])();this.Lv.length=0}else Kt().fine(bu,"runtime is off")},e.Zv=function(){this.ds&&this.Ov&&!this.ampdoc.signals().get(ko)&&(this.ampdoc.signals().signal(ko),Kt().fine(bu,"signal: ready-scan"))},e.td=function(){return this.Cv.length>0},e.nd=function(){var t=this,e=this.win.Date.now(),n=this.Th.getRect(),i=n.height/10,r=n.height/10,o=Math.abs(this.Mv)<.01&&e-this.Sv>500||e-this.Sv>1e3;if(this.Cv.length>0){Kt().fine(bu,"change size requests:",this.Cv.length);var s=this.Cv;this.Cv=[];for(var a=-1,u=[],h=0,c=function(e){var c=s[e],l=c,f=l.event,d=l.resource,m=d.getLayoutBox(),p=0,v=0,g=0,y=0,b=m.bottom,w=m.top,A=void 0;if(c.marginChange){A=c.marginChange.newMargins;var E=c.marginChange.currentMargins;null!=A.top&&(p=A.top-E.top),null!=A.bottom&&(v=A.bottom-E.bottom),null!=A.left&&(g=A.left-E.left),null!=A.right&&(y=A.right-E.right),p&&(w=m.top-E.top),v&&(b=m.bottom+E.bottom)}var S=c.newHeight-m.height,T=c.newWidth-m.width,P=!1;if(0==S&&0==p&&0==v&&0==T&&0==g&&0==y);else if(c.force||!t.Yc)P=!0;else if(t.uv.hasDescendantsOf(d.element)||f&&f.userActivation&&f.userActivation.hasBeenActive)P=!0;else if(w>=n.bottom-r||0==p&&m.bottom+Math.min(S,0)>=n.bottom-r)P=!0;else{if(n.top>1&&b<=n.top+i)return S<0&&n.top+h<-S||(o?(h+=S,u.push(c)):t.Cv.push(c)),"continue";t.rd(d,m)?P=!0:S<0||p<0||v<0||(c.newHeight==m.height?t.Gc.run({measure:function(t){t.resize=!1;var e=d.element.parentElement;if(e){for(var n=e.getLayoutSize&&e.getLayoutSize().width||e.offsetWidth,i=T,r=0;r<e.childElementCount;r++)if((i+=e.children[r].offsetWidth)>n)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))}P&&(m.top>=0&&(a=-1==a?m.top:Math.min(a,m.top)),c.resource.changeSize(c.newHeight,c.newWidth,A),c.resource.overflowCallback(!1,c.newHeight,c.newWidth,A),t.zv=!0),c.callback&&c.callback(P)},l=0;l<s.length;l++)c(l);-1!=a&&this.setRelayoutTop(a),u.length>0&&this.Gc.run({measure:function(e){e.scrollHeight=t.Th.getScrollHeight(),e.scrollTop=t.Th.getScrollTop()},mutate:function(e){var n=-1;u.forEach((function(t){var e=t.resource.getLayoutBox();n=-1==n?e.top:Math.min(n,e.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 i=t.Th.getScrollHeight();i!=e.scrollHeight&&t.Th.setScrollTop(e.scrollTop+(i-e.scrollHeight)),t.zv=!0}},{})}},e.rd=function(t,e,n){var i=this.Th.getContentHeight(),r=Math.max(.85*i,i-1e3),o=e||t.getLayoutBox(),s=n||t.getInitialLayoutBox();return o.bottom>=r||s.bottom>=r},e.ed=function(t){var e=t.isDisplayed();return t.measure(),!(e&&!t.isDisplayed())},e.sd=function(t){var e=this;t.length&&this.Gc.mutate((function(){t.forEach((function(t){t.unload(),e.Xv(t)})),Kt().fine(bu,"unload:",t)}))},e.od=function(){var t=this.win.Date.now(),e=this.Hv,n=this.Pv,i=this.Iv;this.Pv=!1,this.Iv=-1;for(var r,o=0,s=0,a=0;a<this.qe.length;a++){var u=this.qe[a];0!=u.getState()||u.isBuilding()||u.element.R1()||this.Wv(u,!0),!n&&u.hasBeenMeasured()&&1!=u.getState()||o++,u.isMeasureRequested()&&s++}if(o>0||s>0||n||-1!=i||e.length>0)for(var h=0;h<this.qe.length;h++){var c=this.qe[h];if(!(c.hasOwner()&&!c.isMeasureRequested()||c.element.R1())){var l=n||1==c.getState()||!c.hasBeenMeasured()||c.isMeasureRequested()||-1!=i&&c.getLayoutBox().bottom>=i;if(!l)for(var f=0;f<e.length;f++)if(e[f].contains(c.element)){l=!0;break}l&&(this.ed(c)||(r||(r=[]),r.push(c)))}}e.length=0,r&&this.sd(r);var d,m=this.Th.getRect();d=this.Yc?Ie(m,.25,2):m;for(var p=this.Yc?Ie(m,.25,.25):m,v=0;v<this.qe.length;v++){var g=this.qe[v];if(0!=g.getState()&&!g.hasOwner()&&!g.element.R1()){var y=this.Yc&&g.isDisplayed()&&g.overlaps(p);g.setInViewport(y)}}if(d)for(var b=0;b<this.qe.length;b++){var w=this.qe[b];w.isBuilt()||w.isBuilding()||w.hasOwner()||w.element.R1()||!w.hasBeenMeasured()||!w.isDisplayed()||!w.overlaps(d)||this.Wv(w,!0,!0),2!=w.getState()||w.hasOwner()||w.isDisplayed()&&w.overlaps(d)&&this.scheduleLayoutOrPreload(w,!0)}if(this.Yc&&this.ud(t)){for(var A=0,E=0;E<this.qe.length&&A<4;E++){var S=this.qe[E];2==S.getState()&&!S.hasOwner()&&!S.element.R1()&&S.isDisplayed()&&S.idleRenderOutsideViewport()&&(Kt().fine(bu,"idleRenderOutsideViewport layout:",S.debugid),this.scheduleLayoutOrPreload(S,!1),A++)}for(var T=0;T<this.qe.length&&A<4;T++){var P=this.qe[T];2!=P.getState()||P.hasOwner()||P.element.R1()||!P.isDisplayed()||(Kt().fine(bu,"idle layout:",P.debugid),this.scheduleLayoutOrPreload(P,!1),A++)}}},e.ud=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),e=this._v.getLastDequeueTime();return 0==this._v.getSize()&&0==this.Ou.getSize()&&t>e+5e3&&e>0},e.hd=function(){for(var t=this.win.Date.now(),e=-1,n=this.Ou.peek(this.kv);n&&(e=this.ad(n),Kt().fine(bu,"peek from queue:",n.id,"sched at",n.scheduleTime,"score",this.kv(n),"timeout",e),!(e>16));){this.Ou.dequeue(n);var i=this._v.getTaskById(n.id);if(i){var r=this.fd.bind(this,n);i.promise.then(r,r)}else{var o=n.resource;o.measure(),this.ld(o,n.forceOutsideViewport)?(n.promise=n.callback(),n.startTime=t,Kt().fine(bu,"exec:",n.id,"at",n.startTime),this._v.enqueue(n),n.promise.then(this.vd.bind(this,n,!0),this.vd.bind(this,n,!1)).catch(Ro)):(Kt().fine(bu,"cancelled",n.id),o.layoutCanceled())}n=this.Ou.peek(this.kv),e=-1}if(Kt().fine(bu,"queue size:",this.Ou.getSize(),"exec size:",this._v.getSize()),e>=0)return e;var s=2*(t-this._v.getLastDequeueTime());return Math.max(Math.min(3e4,s),5e3)},e.Nv=function(t){var e=this.Th.getRect(),n=t.resource.getLayoutBox(),i=Math.floor((n.top-e.top)/e.height);return Math.sign(i)!=this.getScrollDirection()&&(i*=2),i=Math.abs(i),10*t.priority+i},e.ad=function(t){var e=this.win.Date.now();if(0==this._v.getSize()){if(-1===this.Tv)return 0;var n=1e3*t.priority;return Math.max(n-(e-this.Tv),0)}var i=0;return this._v.forEach((function(n){var r=Math.max(1e3*(t.priority-n.priority),0);i=Math.max(i,r-(e-n.startTime))})),i},e.fd=function(t){this.Ou.getTaskById(t.id)||this.Ou.enqueue(t)},e.vd=function(t,e,n){if(this._v.dequeue(t),this.schedulePass(1e3),!e)return Kt().info(bu,"task failed:",t.id,t.resource.debugid,n),Promise.reject(n)},e.ld=function(t,e){if(0==t.getState()||!t.isDisplayed())return!1;var n=this.ampdoc.getVisibilityState(),i=n==ci&&t.prerenderAllowed(),r=n==li&&t.previewAllowed();return!!(this.Yc||i||r)&&!!(e||t.isInViewport()||t.renderOutsideViewport()||t.idleRenderOutsideViewport())},e.scheduleLayoutOrPreload=function(t,e,n,i){if(!t.element.R1()){var r=0!=t.getState(),o=t.isDisplayed();r&&o||Jt(!1);var s=i||!1;this.ld(t,s)&&(e?this.Bu(t,"L",0,n||0,s,t.startLayout.bind(t)):this.Bu(t,"P",2,n||0,s,t.startLayout.bind(t)))}},e.Bu=function(t,e,n,i,r,o){var s=t.getTaskId(e),a={id:s,resource:t,priority:Math.max(t.getLayoutPriority(),i)+n,forceOutsideViewport:r,callback:o,scheduleTime:this.win.Date.now(),startTime:0,promise:null};Kt().fine(bu,"schedule:",a.id,"at",a.scheduleTime);var u=this.Ou.getTaskById(s);(!u||a.priority<u.priority)&&(u&&this.Ou.dequeue(u),this.Ou.enqueue(a),this.schedulePass(this.ad(a))),a.resource.layoutScheduled(a.scheduleTime)},e.whenFirstPass=function(){return this.cs.promise},e.Vv=function(t){var e=this,n=di,i=pi,r=mi,o=ci,s=li,a=fi,u=function(){var t=e.Th.getSize();if(t.height>0&&t.width>0){e.td()&&e.nd(),e.od();var n=e.hd();e.td()&&(n=Math.min(n,500)),e.Yc?e.schedulePass(n)?Kt().fine(bu,"next pass:",n):Kt().fine(bu,"pass already scheduled"):Kt().fine(bu,"document is not visible: no scheduling"),e.cs.resolve()}},h=function(){},c=function(){e.qe.forEach((function(t){return t.pause()}))},l=function(){e.qe.forEach((function(t){t.unload(),e.Xv(t)})),e.dd()},f=function(){e.qe.forEach((function(t){return t.resume()})),u()};t.addTransition(o,o,u),t.addTransition(o,s,u),t.addTransition(o,a,u),t.addTransition(o,n,u),t.addTransition(o,i,u),t.addTransition(o,r,u),t.addTransition(s,s,u),t.addTransition(s,a,u),t.addTransition(s,n,u),t.addTransition(s,i,u),t.addTransition(s,r,u),t.addTransition(a,a,u),t.addTransition(a,n,u),t.addTransition(a,i,l),t.addTransition(a,r,c),t.addTransition(n,a,u),t.addTransition(n,n,u),t.addTransition(n,i,l),t.addTransition(n,r,c),t.addTransition(i,a,f),t.addTransition(i,n,f),t.addTransition(i,i,h),t.addTransition(i,r,u),t.addTransition(r,a,f),t.addTransition(r,n,u),t.addTransition(r,i,l),t.addTransition(r,r,h)},e.dd=function(){try{this.win.getSelection().removeAllRanges()}catch(t){}},e.Xv=function(t,e){if(1!=t.getState()&&2!=t.getState()||(this.Ou.purge((function(e){return e.resource==t})),this._v.purge((function(e){return e.resource==t})),q(this.Cv,(function(e){return e.resource===t}))),0==t.getState()&&e&&this.vs){var n=this.vs.indexOf(t);-1!=n&&this.vs.splice(n,1)}},e.qv=function(t){var e=t.target;if(e.nodeType===Node.ELEMENT_NODE&&e!==this.Th.getScrollingElement()){var n=e;this.Hv.includes(n)||(this.Hv.push(n),this.schedulePass(70))}},t}();function Au(t){return t.queryCommandSupported("copy")}function Eu(t){return t.hasAttribute("hidden")}var Su="STANDARD-ACTIONS",Tu=/^i-amphtml-/,Pu=function(){function t(t){this.ampdoc=t;var e=t.getHeadNode();this.oa=Xn(t),this.Th=ui(t),this.sa(Un(e)),this.ha()}var e=t.prototype;return e.sa=function(t){t.addGlobalTarget("AMP",this.aa.bind(this)),t.addGlobalMethodHandler("hide",this.fa.bind(this)),t.addGlobalMethodHandler("show",this.ca.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.la.bind(this)),t.addGlobalMethodHandler("scrollTo",this.va.bind(this)),t.addGlobalMethodHandler("focus",this.da.bind(this)),t.addGlobalMethodHandler("toggleClass",this.ma.bind(this)),t.addGlobalMethodHandler("copy",this.pa.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.ga.bind(this))},e.ha=function(){this.ba()&&this.ampdoc.waitForBodyOpen().then((function(t){var e=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(e)}))},e.ba=function(){var t,e;try{var n=this.ampdoc.win.localStorage.getItem("amp-dark-mode");if(n)return"yes"===n}catch(t){}return null===(t=(e=this.ampdoc.win).matchMedia)||void 0===t?void 0:t.call(e,"(prefers-color-scheme: dark)").matches},e.aa=function(t){if(!t.satisfiesTrust(2))return null;var e=t.args,n=t.method,i=t.node,r=ee(i);switch(n){case"pushState":case"setState":var o=i.nodeType===Node.DOCUMENT_NODE?i.documentElement:i;return Hn(o).then((function(e){return Xt(e,"AMP-BIND is not installed."),e.invoke(t)}));case"navigateTo":return this.ya(t);case"closeOrNavigateTo":return this.wa(t);case"scrollTo":return Xt(e.id,"AMP.scrollTo must provide element ID"),t.node=Tn(i).getElementById(e.id),this.va(t);case"goBack":return Kn(this.ampdoc).goBack(!(!e||!0!==e.navigate)),null;case"print":return r.print(),null;case"copy":return this.pa(t);case"optoutOfCid":return zn(this.ampdoc).then((function(t){return t.optOut()})).catch((function(t){Kt().error(Su,"Failed to opt out of CID",t)}));case"toggleTheme":return this.Aa(),null}throw Wt().createError("Unknown AMP action ",n)},e.pa=function(t){var e,n=t.args,i=ee(t.node),r="copy-error";if("AMP"===t.tagOrTarget)e=n.text.trim();else{var o,s=it(t.node);e=(null!==(o=s.value)&&void 0!==o?o:s.textContent).trim()}var a,u,h,c=function(t,e,n){var r={data:{type:e}},o=Ur(i,"".concat(t),r);Un(n.caller).trigger(n.caller,t,o,3)};null!==(u=(a=i.document).defaultView)&&void 0!==u&&null!==(h=u.navigator)&&void 0!==h&&h.clipboard||Au(a)?function(t,e,n,i){var r;null!==(r=t.navigator)&&void 0!==r&&r.clipboard?t.navigator.clipboard.writeText(e).then(n,i):Au(t.document)&&function(t,e){var n,i=!1,r=t.document,o=r.createElement("textarea");Ti(o,{position:"fixed",top:0,left:0,width:"50px",height:"50px",padding:0,border:"none",outline:"none",background:"transparent"}),o.value=e,o.readOnly=!0,o.contentEditable="true",r.body.appendChild(o),null===(n=t.getSelection())||void 0===n||n.removeAllRanges(),o.focus(),o.setSelectionRange(0,e.length);try{i=r.execCommand("copy")}catch(t){}return Ee(o),i}(t,e)?n():i()}(i,e,(function(){c("copy-success","success",t)}),(function(){c(r,"error",t)})):c(r,"unsupported",t)},e.ya=function(t){var e=this,n=t.args,i=t.caller,r=t.method,o=ee(t.node),s=u();return i.tagName.startsWith("AMP-")&&(s=i.getImpl().then((function(t){"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),s.then((function(){var t;(t=e.ampdoc,yn(t,"navigation")).navigateTo(o,n.url,"AMP.".concat(r),{target:n.target,opener:n.opener})}),(function(t){Wt().error(Su,t)}))},e.Aa=function(){var t=this;this.ampdoc.waitForBodyOpen().then((function(e){try{var n=e.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.ba()?(e.classList.remove(n),t.ampdoc.win.localStorage.setItem("amp-dark-mode","no")):(e.classList.add(n),t.ampdoc.win.localStorage.setItem("amp-dark-mode","yes"))}catch(t){}}))},e.wa=function(t){var e=ee(t.node),n=e.parent!=e,i=!1;return e.opener&&this.ampdoc.isSingleDoc()&&!n&&(e.close(),i=e.closed),i?u():this.ya(t)},e.va=function(t){var e=t.node,n=t.args,i=n&&n.position,r=n&&n.duration;return i&&!["top","bottom","center"].includes(i)&&(i=void 0),K(r)||(r=void 0),this.Th.animateScrollIntoView(e,i,r)},e.da=function(t){return Oe(t.node),null},e.fa=function(t){var e=t.node;if(e.classList.contains("i-amphtml-element")){var n=e;this.oa.mutateElement(n,(function(){return n.collapse()}),!0)}else this.oa.mutateElement(e,(function(){return Pi(e,!1)}));return null},e.ca=function(t){var e=this,n=t.node,i=ee(n);if(n.classList.contains(er(zi)))return Wt().warn(Su,"Elements with layout=nodisplay cannot be dynamically shown.",n),null;this.oa.measureElement((function(){"none"!=xi(i,n).display||Eu(n)||Wt().warn(Su,'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',n)}));var r,o=(r=n).hasAttribute("autofocus")?r:r.querySelector("[autofocus]");return o&&Qn(i).isIos()?(this.xa(n,o),this.oa.mutateElement(n,(function(){}))):this.oa.mutateElement(n,(function(){e.xa(n,o)})),null},e.xa=function(t,e){t.classList.contains("i-amphtml-element")?t.expand():Pi(t,!0),e&&Oe(e)},e.la=function(t){return Eu(t.node)?this.ca(t):this.fa(t)},e.ma=function(t){var e=t.node,n=t.args,i=Wt().assertString(n.class,"Argument 'class' must be a string.");return Tu.test(i)||this.oa.mutateElement(e,(function(){if(void 0!==n.force){var t=Wt().assertBoolean(n.force,"Optional argument 'force' must be a boolean.");e.classList.toggle(i,t)}else e.classList.toggle(i)})),null},e.ga=function(t){var e=t.node,n=t.args;return this.oa.mutateElement(e,(function(){if(void 0!==(null==n?void 0:n.force)){var t=Wt().assertBoolean(n.force,"Optional argument 'force' must be a boolean.");e.checked=t}else!0===e.checked?e.checked=!1:e.checked=!0})),null},t}(),Ou="Storage",xu=function(){function t(t,e,n){this.ampdoc=t,this.yh=e,this.Bs=n,this.md=n instanceof Cu,this.i=wo(this.ampdoc.win.location),this.pd=null}var e=t.prototype;return e.bd=function(){return this.gd(),this},e.get=function(t,e){return this.yd().then((function(n){return n.get(t,e)}))},e.set=function(t,e,n){return Jt("boolean"==typeof e),this.setNonBoolean(t,e,n)},e.setNonBoolean=function(t,e,n){return this.wd((function(i){return i.set(t,e,n)}))},e.remove=function(t){return this.wd((function(e){return e.remove(t)}))},e.isViewerStorage=function(){return this.md},e.yd=function(){return this.pd||(this.pd=this.Bs.loadBlob(this.i).then((function(t){return t?at(atob(t)):{}})).catch((function(t){return Kt().expectedError(Ou,"Failed to load store: ",t),{}})).then((function(t){return new Ru(t)}))),this.pd},e.wd=function(t){var e=this;return this.yd().then((function(n){t(n);var i=btoa(JSON.stringify(n.obj));return e.Bs.saveBlob(e.i,i)})).then(this.Ad.bind(this))},e.gd=function(){var t=this;this.yh.onBroadcast((function(e){"amp-storage-reset"==e.type&&e.origin==t.i&&(Kt().fine(Ou,"Received reset message"),t.pd=null)}))},e.Ad=function(){Kt().fine(Ou,"Broadcasted reset message"),this.yh.broadcast({type:"amp-storage-reset",origin:this.i})},t}(),Ru=function(){function t(t,e){this.obj=E(t),this.xd=e||8,this.Ed=this.obj.vv||Object.create(null),this.obj.vv||(this.obj.vv=this.Ed)}var e=t.prototype;return e.get=function(t,e){var n=this.Ed[t],i=n?n.t:void 0,r=!e||null==i||i+e>Date.now();return n&&r?n.v:void 0},e.set=function(t,e,n){if(Jt("__proto__"!=t&&"prototype"!=t),void 0!==this.Ed[t]){var i=this.Ed[t],r=Date.now();n&&(r=i.t),i.v=e,i.t=r}else this.Ed[t]={v:e,t:Date.now()};var o=Object.keys(this.Ed);if(o.length>this.xd){for(var s=1/0,a=null,u=0;u<o.length;u++){var h=this.Ed[o[u]];h.t<s&&(a=o[u],s=h.t)}a&&delete this.Ed[a]}},e.remove=function(t){delete this.Ed[t]},t}(),Mu=function(){function t(t){if(this.win=t,this.Od=this.Td(),!this.Od){var e=new Error("localStorage not supported.");Kt().expectedError(Ou,e)}}var e=t.prototype;return e.Td=function(){try{return"localStorage"in this.win&&(this.win.localStorage.getItem("test"),!0)}catch(t){return!1}},e.Pd=function(t){return"amp-store:".concat(t)},e.loadBlob=function(t){var e=this;return new Promise((function(n){e.Od?n(e.win.localStorage.getItem(e.Pd(t))):n(null)}))},e.saveBlob=function(t,e){var n=this;return new Promise((function(i){n.Od?(n.win.localStorage.setItem(n.Pd(t),e),i()):i()}))},t}(),Cu=function(){function t(t){this.yh=t}var e=t.prototype;return e.loadBlob=function(t){return this.yh.sendMessageAwaitResponse("loadStore",{origin:t}).then((function(t){return t.blob}))},e.saveBlob=function(t,e){return this.yh.sendMessageAwaitResponse("saveStore",{origin:t,blob:e}).catch((function(t){throw Kt().createExpectedError(Ou,"Failed to save store: ",t)}))},t}(),_u="__AMP_IMPL_",Lu=function(){},Iu=function(){function t(t){this.vu=t,this.Ea={},this.Pa={}}var e=t.prototype;return e.whenReady=function(t){return this.Ta(t).then(Lu)},e.setHtmlForTemplate=function(t,e){var n=this;return this.Ta(t).then((function(t){return n.Oa(t,e)}))},e.renderTemplate=function(t,e){var n=this;return this.Ta(t).then((function(t){return n.Di(t,e)}))},e.renderTemplateAsString=function(t,e){return this.Ta(t).then((function(t){return t.renderAsString(e)}))},e.getTemplateRenderer=function(t){return this.Ta(t).then((function(t){return{renderAsString:function(e){return t.renderAsString(e)}}}))},e.renderTemplateArray=function(t,e){var n=this;return 0==e.length?Promise.resolve([]):this.Ta(t).then((function(t){return e.map((function(e){return n.Di(t,e)}))}))},e.findAndRenderTemplate=function(t,e,n){return this.renderTemplate(this.findTemplate(t,n),e)},e.findAndSetHtmlForTemplate=function(t,e,n){return this.setHtmlForTemplate(this.findTemplate(t,n),e)},e.findAndRenderTemplateArray=function(t,e,n){return this.renderTemplateArray(this.findTemplate(t,n),e)},e.hasTemplate=function(t,e){return!!this.maybeFindTemplate(t,e)},e.findTemplate=function(t,e){var n=this.maybeFindTemplate(t,e);Xt(n,"Template not found for %s",t);var i=n.tagName;return Xt("TEMPLATE"==i||"SCRIPT"==i&&"text/plain"===n.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag'),n},e.maybeFindTemplate=function(t,e){var n=t.getAttribute("template");return n?Te(t).getElementById(n):e?ce(t,e):t.querySelector('template[type], script[type="text/plain"]')},e.Ta=function(t){var e=this,n=t[_u];if(n)return Promise.resolve(n);var i="",r=t.tagName;"TEMPLATE"==r?i=t.getAttribute("type"):"SCRIPT"==r&&(i=t.getAttribute("template")),Xt(i,"Type must be specified: %s",t);var o=t.__AMP_WAIT_;return o||(o=this.Ia(t,i).then((function(n){var i=n,r=t[_u]=new i(t,e.vu.win);return delete t.__AMP_WAIT_,r})),t.__AMP_WAIT_=o,o)},e.Ia=function(t,e){if(this.Ea[e])return this.Ea[e];var n=new h,i=n.promise,r=n.resolve;return this.Ea[e]=i,this.Pa[e]=r,i},e.Ra=function(t,e){if(this.Ea[t]){var n=this.Pa[t];Xt(n,"Duplicate template type: %s",t),delete this.Pa[t],n(e)}else this.Ea[t]=Promise.resolve(e)},e.Di=function(t,e){return t.render(e)},e.Oa=function(t,e){return t.setHtml(e)},t}(),ku=function(){function t(t){this.win=t,this.Sa=this.win.Promise.resolve(),this._a=0,this.Ma={},this.ka=Date.now()}var e=t.prototype;return e.timeSinceStart=function(){return Date.now()-this.ka},e.delay=function(t,e){var n=this;if(!e){var i="p"+this._a++;return this.Sa.then((function(){n.Ma[i]?delete n.Ma[i]:t()})).catch(Ro),i}return this.win.setTimeout((function(){try{t()}catch(t){throw Ro(t),t}}),e)},e.cancel=function(t){"string"!=typeof t?this.win.clearTimeout(t):this.Ma[t]=!0},e.promise=function(t){var e=this;return new this.win.Promise((function(n){if(-1==e.delay(n,t))throw new Error("Failed to schedule timer.")}))},e.timeoutPromise=function(t,e,n){var i,r=this,o=new this.win.Promise((function(e,o){if(-1==(i=r.delay((function(){o(Wt().createError(n||"timeout"))}),t)))throw new Error("Failed to schedule timer.")}));if(!e)return o;var s=function(){r.cancel(i)};return e.then(s,s),this.win.Promise.race([o,e])},e.poll=function(t,e){var n=this;return new this.win.Promise((function(i){var r=n.win.setInterval((function(){e()&&(n.win.clearInterval(r),i())}),t)}))},t}();function Du(t){pn(t,"timer",ku)}var Nu=function(){function t(t){var e=t.getRootNode(),n=e.ownerDocument||e;this.Ca=n.createElement("a"),this.Ot=new eo(100)}var e=t.prototype;return e.parse=function(t,e){return so(this.Ca,t,e?null:this.Ot)},e.Na=function(t){return"string"!=typeof t?t:this.parse(t)},e.isProtocolValid=function(t){return vo(t)},e.getSourceOrigin=function(t){return wo(this.Na(t))},e.getSourceUrl=function(t){return bo(this.Na(t))},e.resolveRelativeUrl=function(t,e){return Ao(t,this.Na(e))},e.assertHttpsUrl=function(t,e){return fo(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"source")},e.assertAbsoluteHttpOrHttpsUrl=function(t){return function(t){return Xt(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),oo(t).href}(t)},e.isProxyOrigin=function(t){return po(this.Na(t))},e.isSecure=function(t){return lo(this.Na(t))},e.getWinOrigin=function(t){return t.origin||this.Na(t.location.href).origin},e.getCdnUrlOnOrigin=function(t){if(po(t))return t;var e=this.Na(t),n=e.hash,i=e.host,r=e.pathname,o=e.search,s=encodeURIComponent(i);return"".concat(Tt,"/c/").concat(s).concat(r).concat(o).concat(n)},t}(),Bu="Expander",Vu=function(){function t(t,e,n,i,r,o){this.ja=t,this.Da=e,this.La=n,this.Ua=i,this.ys=r,this.za=!o}var e=t.prototype;return e.expand=function(t){if(!t.length)return this.Ua?t:Promise.resolve(t);var e=this.ja.getExpr(this.Da,this.ys),n=this.Ha(t,e);return n.length?this.Ga(t,n):this.Ua?t:Promise.resolve(t)},e.getMacroNames=function(t){var e=this.ja.getExpr(this.Da,this.ys);return t.match(e)||[]},e.Ha=function(t,e){var n=[];return t.replace(e,(function(t,e,i){var r=t.length,o={start:i,stop:r+i-1,name:e,length:r};n.push(o)})),n},e.Ga=function(t,e){var n=this,i=[],r=0,o=0,s=e[o],a=0,u=!1;return function h(c){for(var l,f="",m=[],p=[];r<t.length&&o<=e.length;){var v,g=f.trim();if(s&&r===s.start)g&&m.push(a?(l=f).trimStart?l.trimStart():(l+"_").trim().slice(0,-1):f),v=n.Da&&A(n.Da,s.name)?{name:s.name,prioritized:n.Da[s.name],encode:c}:k(k({},n.ja.get(s.name)),{},{name:s.name,encode:c}),r=s.stop+1,s=e[++o],"("===t[r]?(r++,a++,i.push(v),m.push(h(!1))):m.push(n.Va(v)),f="";else if("`"===t[r])u?(u=!1,f.length&&m.push(f)):(u=!0,g&&m.push(g)),f="",r++;else if(a&&","===t[r]&&!u)g&&m.push(g),p.push(m),m=[],","===t[r+1]&&(p.push([""]),r++),f="",r++;else{if(a&&")"===t[r]&&!u){r++,a--;var y=i.pop();return g&&m.push(g),p.push(m),n.Va(y,p)}f+=t[r],r++}r===t.length&&f.length&&m.push(f)}return n.Ua?m.join(""):Promise.all(m).then((function(t){return t.join("")})).catch((function(t){return d(t),""}))}(this.za)},e.Va=function(t,e){var n,i=t.encode,r=t.name;if(null!=t.prioritized?n=t.prioritized:this.Ua&&null!=t.sync?n=t.sync:this.Ua?(Wt().error(Bu,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.Ua){var o=this.Fa(n,r,e);return i?encodeURIComponent(o):o}return this.Ba(n,r,e).then((function(t){return i?encodeURIComponent(t):t}))},e.Ba=function(t,e,n){var i,r=this;try{if("function"==typeof t){var o=t;i=n?this.qa(n).then((function(t){return o.apply(null,t)})):c(o)}else i=Promise.resolve(t);return i.then((function(t){return r.Wa(e,t,n),null==t?"":t})).catch((function(t){return d(t),r.Wa(e,"",n),Promise.resolve("")}))}catch(t){return d(t),this.Wa(e,"",n),Promise.resolve("")}},e.qa=function(t){return Promise.all(t.map((function(t){return Promise.all(t).then((function(t){return t.join("")}))})))},e.Fa=function(t,e,n){try{var i,r=t;return"function"==typeof t&&(r=t.apply(null,this.$a(n))),r&&"function"==typeof r.then?(Wt().error(Bu,"ignoring async macro resolution"),i=""):"string"==typeof r||"number"==typeof r||"boolean"==typeof r?(this.Wa(e,r,n),i=r.toString()):(this.Wa(e,"",n),i=""),i}catch(t){return d(t),this.Wa(e,"",n),""}},e.$a=function(t){return t?t.map((function(t){return t.join("")})):t},e.Wa=function(t,e,n){if(this.La){var i="";if(n){var r=n.filter((function(t){return""!==t})).join(",");i="(".concat(r,")")}this.La["".concat(t).concat(i)]=e||""}},t}(),Uu={navigationStart:1,redirectStart:1,redirectEnd:1,fetchStart:1,domainLookupStart:1,domainLookupEnd:1,connectStart:1,secureConnectionStart:1,connectEnd:1,requestStart:1,responseStart:1,responseEnd:1,domLoading:2,domInteractive:2,domContentLoaded:2,domComplete:2,loadEventStart:3,loadEventEnd:4};function ju(t,e,n){var i,r=Uu[e]||3,o=n?Uu[n]||3:r,s=Math.max(r,o);if(1===s)i=u();else if(2===s)i=un(t.document);else if(3===s)i=Hr(t);else if(4===s){var a=ni(t);i=Hr(t).then((function(){return a.promise(1)}))}return Jt(i),i.then((function(){return Fu(t,e,n)}))}function Fu(t,e,n){var i=t.performance&&t.performance.timing;if(i&&0!=i.navigationStart){var r=void 0===n?i[e]:i[n]-i[e];return!K(r)||r<0?void 0:r}}function qu(t,e){var n=t.performance&&t.performance.navigation;if(n&&void 0!==n[e])return n[e]}var Hu="UrlReplacements";function zu(t){return function(){return(new Date)[t]()}}function Gu(t,e){return function(){return t[e]}}function Wu(t,e){return e?(Xt("ISOCountry"===e,"The value passed to AMP_GEO() is not valid name:"+e),t&&t[e]||"unknown"):(null==t?void 0:t.matchedISOCountryGroups.join(","))||"unknown"}var Yu=function(t){N(n,t);var e=V(n);function n(t){var n;return(n=e.call(this,t)).Ya=null,n.Ka={},n}var i=n.prototype;return i.Xa=function(t,e,n){var i=this;return this.setBoth(t,(function(){return Fu(i.ampdoc.win,e,n)}),(function(){return ju(i.ampdoc.win,e,n)}))},i.initialize=function(){var t=this,e=this.ampdoc.win,n=this.ampdoc.getHeadNode(),i=ui(this.ampdoc);ri(this.ampdoc).then((function(e){t.Ya=e})),this.set("RANDOM",(function(){return Math.random()}));var r=Object.create(null);this.set("COUNTER",(function(t){return r[t]=1+(0|r[t])})),this.set("CANONICAL_URL",(function(){return t.Ja().canonicalUrl})),this.set("CANONICAL_HOST",(function(){return oo(t.Ja().canonicalUrl).host})),this.set("CANONICAL_HOSTNAME",(function(){return oo(t.Ja().canonicalUrl).hostname})),this.set("CANONICAL_PATH",(function(){return oo(t.Ja().canonicalUrl).pathname})),this.setAsync("DOCUMENT_REFERRER",(function(){return si(t.ampdoc).getReferrerUrl()})),this.setAsync("EXTERNAL_REFERRER",(function(){return si(t.ampdoc).getReferrerUrl().then((function(t){return t?oo(bo(t)).hostname===Li.getHostname(e)?null:t:null}))})),this.set("TITLE",(function(){var t=e.document;return t.originalTitle||t.title})),this.set("AMPDOC_URL",(function(){return mo(t.Qa(e.location.href))})),this.set("AMPDOC_HOST",(function(){var t=oo(e.location.href);return t&&t.host})),this.set("AMPDOC_HOSTNAME",(function(){var t=oo(e.location.href);return t&&t.hostname}));var o=function(){var e=t.Ja();return mo(t.Qa(e.sourceUrl))};this.setBoth("SOURCE_URL",(function(){return o()}),(function(){return iu().then((function(){return o()}))})),this.set("SOURCE_HOST",(function(){return oo(t.Ja().sourceUrl).host})),this.set("SOURCE_HOSTNAME",(function(){return oo(t.Ja().sourceUrl).hostname})),this.set("SOURCE_PATH",(function(){return oo(t.Ja().sourceUrl).pathname})),this.set("PAGE_VIEW_ID",(function(){return t.Ja().pageViewId})),this.setAsync("PAGE_VIEW_ID_64",(function(){return t.Ja().pageViewId64})),this.setBoth("QUERY_PARAM",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.Za(e,n)}),(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return iu().then((function(){return t.Za(e,n)}))})),this.set("FRAGMENT_PARAM",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.tf(e,n)}));var s=null;this.setBoth("CLIENT_ID",(function(t){return s?s[t]:null}),(function(e,i,r,o){Xt(e,"The first argument to CLIENT_ID, the fallback Cookie name, is required");var a=u();return i&&(a=function(t){return kn(t,"userNotificationManager","amp-user-notification")}(n).then((function(t){return t.get(i)}))),zn(t.ampdoc).then((function(t){return o="true"==o,t.get({scope:e,createCookieIfNotPresent:!0,cookieName:r||void 0,disableBackup:o},a)})).then((function(t){return s||(s=Object.create(null)),t&&"_ga"==(r||e)&&("string"==typeof t?t=t.replace(/^(GA1|1)\.[\d-]+\./,""):Kt().error(Hu,"non-string cid, what is it?",Object.keys(t))),s[e]=t,t}))})),this.setAsync("VARIANT",(function(e){return t.nf((function(t){var n=t[e];return Xt(void 0!==n,"The value passed to VARIANT() is not a valid experiment in <amp-experiment>:"+e),null===n?"none":n}),"VARIANT")})),this.setAsync("VARIANTS",(function(){return t.nf((function(t){var e=[];for(var n in t){var i=t[n];e.push(n+"."+(i||"none"))}return e.join("!")}),"VARIANTS")})),this.setBoth("AMP_GEO",(function(e){return Wu(t.Ya,e)}),(function(e){return t.if((function(t){return Wu(t,e)}),"AMP_GEO")})),this.set("TIMESTAMP",zu("getTime")),this.set("TIMESTAMP_ISO",zu("toISOString")),this.set("TIMEZONE",zu("getTimezoneOffset")),this.set("SCROLL_HEIGHT",(function(){return i.getScrollHeight()})),this.set("SCROLL_WIDTH",(function(){return i.getScrollWidth()})),this.set("VIEWPORT_HEIGHT",(function(){return i.getHeight()})),this.set("VIEWPORT_WIDTH",(function(){return i.getWidth()}));var a=e.screen;this.set("SCREEN_WIDTH",Gu(a,"width")),this.set("SCREEN_HEIGHT",Gu(a,"height")),this.set("AVAILABLE_SCREEN_HEIGHT",Gu(a,"availHeight")),this.set("AVAILABLE_SCREEN_WIDTH",Gu(a,"availWidth")),this.set("SCREEN_COLOR_DEPTH",Gu(a,"colorDepth")),this.set("DOCUMENT_CHARSET",(function(){var t=e.document;return t.characterSet||t.charset})),this.set("BROWSER_LANGUAGE",(function(){var t=e.navigator;return(t.language||t.userLanguage||t.browserLanguage||"").toLowerCase()})),this.set("USER_AGENT",(function(){return e.navigator.userAgent})),this.setBoth("UACH",(function(e){var n;return null!==(n=t.Ka[e])&&void 0!==n?n:""}),(function(n){return t.rf(n,e)})),this.Xa("PAGE_LOAD_TIME","navigationStart","loadEventStart"),this.Xa("DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd"),this.Xa("TCP_CONNECT_TIME","connectStart","connectEnd"),this.Xa("SERVER_RESPONSE_TIME","requestStart","responseStart"),this.Xa("PAGE_DOWNLOAD_TIME","responseStart","responseEnd"),this.Xa("REDIRECT_TIME","navigationStart","fetchStart"),this.Xa("DOM_INTERACTIVE_TIME","navigationStart","domInteractive"),this.Xa("CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart"),this.setAsync("ACCESS_READER_ID",(function(){return t.ef((function(t){return t.getAccessReaderId()}),"ACCESS_READER_ID")})),this.setAsync("AUTHDATA",(function(e){return Xt(e,"The first argument to AUTHDATA, the field, is required"),t.ef((function(t){return t.getAuthdataField(e)}),"AUTHDATA")})),this.setAsync("VIEWER",(function(){return si(t.ampdoc).getViewerOrigin().then((function(t){return null==t?"":t}))})),this.setAsync("TOTAL_ENGAGED_TIME",(function(){return jn(n).then((function(t){return t.getTotalEngagedTime()}))})),this.setAsync("INCREMENTAL_ENGAGED_TIME",(function(t,e){return jn(n).then((function(n){return n.getIncrementalEngagedTime(t,"false"!==e)}))})),this.set("NAV_TIMING",(function(t,n){return Xt(t,"The first argument to NAV_TIMING, the start attribute name, is required"),Fu(e,t,n)})),this.setAsync("NAV_TIMING",(function(t,n){return Xt(t,"The first argument to NAV_TIMING, the start attribute name, is required"),ju(e,t,n)})),this.set("NAV_TYPE",(function(){return qu(e,"type")})),this.set("NAV_REDIRECT_COUNT",(function(){return qu(e,"redirectCount")})),this.set("AMP_VERSION",(function(){return"2410292120000"})),this.set("BACKGROUND_STATE",(function(){return t.ampdoc.isVisible()?"0":"1"})),this.setAsync("VIDEO_STATE",(function(e,n){return(i=t.ampdoc,yn(i,"video-manager")).getVideoStateProperty(e,n);var i})),this.setAsync("AMP_STATE",(function(e){var n=t.ampdoc.getRootNode(),i=n.documentElement||n;return Hn(i).then((function(t){return t&&t.getStateValue(e)||""}))}))},i.Qa=function(t){var e=this.Ja().replaceParams;return e?function(t,e){for(var n=vt(oo(t).search),i={},r=Object.keys(e),o=0;o<r.length;o++)A(n,r[o])||(i[r[o]]=e[r[o]]);return ho(t,i)}(go(t),e):t},i.Ja=function(){return Wn(this.ampdoc)},i.ef=function(t,e){var n=this.ampdoc.getHeadNode();return Promise.all([Bn(n),Vn(n)]).then((function(n){var i=n[0],r=n[1],o=i||r;return o?i&&r?t(r)||t(i):t(o):(Wt().error(Hu,"Access or subsciptions service is not installed to access: ",e),null)}))},i.Za=function(t,e){Xt(t,"The first argument to QUERY_PARAM, the query string param is required");var n=vt(oo(go(this.ampdoc.win.location.href)).search),i=this.Ja().replaceParams;return void 0!==n[t]?n[t]:i&&void 0!==i[t]?i[t]:e},i.tf=function(t,e){Xt(t,"The first argument to FRAGMENT_PARAM, the fragment string param is required"),Xt("string"==typeof t,"param should be a string");var n=gt(this.ampdoc.win);return void 0===n[t]?e:n[t]},i.nf=function(t,e){return(n=this.ampdoc.getHeadNode(),Dn(n,"variant","amp-experiment",!0)).then((function(t){return Xt(t,"To use variable %s, amp-experiment should be configured",e),t.getVariants()})).then((function(e){return t(e)}));var n},i.if=function(t,e){var n=this;return null!==this.Ya?t(this.Ya):ri(this.ampdoc.getHeadNode()).then((function(i){return Xt(i,"To use variable %s, amp-geo should be configured",e),n.Ya=i,t(i)}))},i.rf=function(t,e){var n,i,r,o=this;return t in this.Ka?Promise.resolve(this.Ka[t]):(null===(n=e.navigator)||void 0===n||null===(i=n.userAgentData)||void 0===i||null===(r=i.getHighEntropyValues([t]))||void 0===r?void 0:r.then((function(e){var n="object"!==p(e[t])?e[t]:JSON.stringify(e[t]);return o.Ka[t]=n,n})))||Promise.resolve("")},n}(function(){function t(t){this.ampdoc=t,this.uf=Object.create(null),this.sf=!1,this.hf()}var e=t.prototype;return e.Go=function(){this.initialize(),this.sf=!0},e.initialize=function(){},e.get=function(t){return this.sf||this.Go(),this.uf[t]},e.set=function(t,e){return Jt(-1==t.indexOf("RETURN")),this.uf[t]=this.uf[t]||{sync:void 0,async:void 0},this.uf[t].sync=e,this},e.setAsync=function(t,e){return Jt(-1==t.indexOf("RETURN")),this.uf[t]=this.uf[t]||{sync:void 0,async:void 0},this.uf[t].async=e,this},e.setBoth=function(t,e,n){return this.set(t,e).setAsync(t,n)},e.getExpr=function(t,e){this.sf||this.Go();var n=k(k({},this.uf),t);return this.af(Object.keys(n),e)},e.af=function(t,e){var n=this;if(this.hf()&&(t=t.filter((function(t){return n.hf().includes(t)}))),e&&(t=t.filter((function(t){return e[t]}))),0===t.length)return/_^/g;t.sort((function(t,e){return e.length-t.length}));var i=t.map((function(t){return"$"===t[0]?"\\"+t:t})).join("|");return new RegExp("\\$?("+i+")","g")},e.hf=function(){return this.ff?this.ff:this.ampdoc.isSingleDoc()&&Ms(this.ampdoc.getRootNode())?(this.ff=[""],this.ff):void 0},t}()),Ku=function(){function t(t,e){this.ampdoc=t,this.ja=e}var e=t.prototype;return e.expandStringSync=function(t,e,n){return new Vu(this.ja,e,void 0,!0,n,!0).expand(t)},e.expandStringAsync=function(t,e,n){return new Vu(this.ja,e,void 0,void 0,n,!0).expand(t)},e.expandUrlSync=function(t,e,n){return this.cf(t,new Vu(this.ja,e,void 0,!0,n).expand(t))},e.expandUrlAsync=function(t,e,n,i){var r=this;return new Vu(this.ja,e,void 0,void 0,n,i).expand(t).then((function(e){return r.cf(t,e)}))},e.expandInputValueAsync=function(t){return this.lf(t,!1)},e.expandInputValueSync=function(t){return this.lf(t,!0)},e.lf=function(t,e){Jt("INPUT"==t.tagName&&"hidden"==(t.getAttribute("type")||"").toLowerCase());var n=this.vf(t);if(!n)return e?t.value:Promise.resolve(t.value);void 0===t["amp-original-value"]&&(t["amp-original-value"]=t.value);var i=new Vu(this.ja,void 0,void 0,e,n).expand(t["amp-original-value"]||t.value);return e?t.value=i:i.then((function(e){return t.value=e,e}))},e.vf=function(t,e){var n=t.getAttribute("data-amp-replace");if(n){var i={};return n.trim().split(/\s+/).forEach((function(t){!e||A(e,t)?i[t]=!0:Wt().warn("URL","Ignoring unsupported replacement",t)})),i}},e.mn=function(t){var e=Wn(this.ampdoc);if(t.origin==oo(e.canonicalUrl).origin||t.origin==oo(e.sourceUrl).origin)return!0;var n=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin");if(n)for(var i=n.trim().split(/\s+/),r=0;r<i.length;r++)if(t.origin==oo(i[r]).origin)return!0;return!1},e.maybeExpandLink=function(t,e){Jt("A"==t.tagName);var n=t,i=n.getAttribute("data-amp-addparams")||"",r=this.vf(n,{CLIENT_ID:!0,QUERY_PARAM:!0,PAGE_VIEW_ID:!0,PAGE_VIEW_ID_64:!0,NAV_TIMING:!0});if(r||i||e){var o=n["amp-original-href"]||n.getAttribute("href"),s=oo(o);null==n["amp-original-href"]&&(n["amp-original-href"]=o);var a=this.mn(s);return i&&(o=ho(o,vt(i=a?this.df(i,r):i))),a?(e&&(r&&r.QUERY_PARAM||(e=this.expandUrlSync(e,void 0,{QUERY_PARAM:!0})),o=ho(o,vt(e))),o=this.df(o,r),n.href=o):(r&&Wt().warn("URL","Ignoring link replacement %s because the link does not go to the document's source, canonical, or allowlisted origin.",o),n.href=o)}},e.df=function(t,e){return e?this.expandUrlSync(t,void 0,e):t},e.collectVars=function(t,e){var n=Object.create(null);return new Vu(this.ja,e,n).expand(t).then((function(){return n}))},e.collectDisallowedVarsSync=function(t){var e=t.getAttribute("src"),n=new Vu(this.ja).getMacroNames(e),i=this.vf(t);return i?n.filter((function(t){return!i[t]})):n},e.cf=function(t,e){return oo(e,!0).protocol!=oo(t,!0).protocol?(Wt().error(Hu,"Illegal replacement of the protocol: ",t),t):(Xt(vo(e),"The replacement url has invalid protocol: %s",e),e)},e.getVariableSource=function(){return this.ja},t}(),Ju="Viewer",Xu=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i,$u=function(){function t(t){var e=this;this.ampdoc=t,this.win=t.win,this.Sh=xe(this.win),this.gv=!0,this.Id=!1,this.Sd=w(),this.Md=w(),this.Rd=new vi,this._d=new vi,this.kd=null,this.Nd=null,this.Cd=[],this.jd=w(),this.Dd=w(),t.isSingleDoc()&&Object.assign(this.Dd,vt(this.win.location.hash)),this.gv=!parseInt(t.getParam("off"),10),Kt().fine(Ju,"- runtimeOn:",this.gv),this.Id=!(!parseInt(t.getParam("history"),10)&&!this.Id),Kt().fine(Ju,"- history:",this.Id),Kt().fine(Ju,"- visibilityState:",this.ampdoc.getVisibilityState()),this.Ud=null,this.zd=po(oo(this.ampdoc.win.location.href));var n=new h;this.Ld=n.resolve,this.Hd=this.Gd(n.promise),this.Dh=null,this.Vd=null;var i=t.getParam("referrer");if(this.Fd=this.isEmbedded()&&null!=i&&!1!==this.Bd()?i:this.win.document.referrer,this.qd=new Promise((function(n){e.isEmbedded()&&null!=t.getParam("referrer")?e.isTrustedViewer().then((function(i){i?n(t.getParam("referrer")):(n(e.win.document.referrer),e.Fd!=e.win.document.referrer&&(Kt().expectedError(Ju,"Untrusted viewer referrer override: "+e.Fd+" at "+e.Nd),e.Fd=e.win.document.referrer))})):n(e.win.document.referrer)})),this.$d=mo(this.win.location.href||""),this.Wd=new Promise((function(n){var i=t.getParam("viewerUrl");e.isEmbedded()&&i?e.isTrustedViewer().then((function(t){t?e.$d=Jt(i):Kt().expectedError(Ju,"Untrusted viewer url override: "+i+" at "+e.Nd),n(e.$d)})):n(e.$d)})),this.Dd.click){var r=mo(this.win.location.href);r!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.replaceState({},"",r),delete this.Dd.click,Kt().fine(Ju,"replace fragment:"+this.win.location.href))}this.ampdoc.whenFirstVisible().then((function(){e.maybeUpdateFragmentForCct()})),this.ampdoc.isSingleDoc()&&this.Kd()}var e=t.prototype;return e.Gd=function(t){if(!(this.Sh&&!this.win.__AMP_TEST_IFRAME&&(this.ampdoc.getParam("origin")||this.ampdoc.getParam("visibilityState")||-1!=this.win.location.search.indexOf("amp_js_v"))||this.isWebviewEmbedded()||this.isCctEmbedded())&&this.ampdoc.isSingleDoc())return null;var e="initMessagingChannel timeout";return ni(this.win).timeoutPromise(2e4,t,e).catch((function(t){var n=Qu(t);throw n&&G(n.message,e)&&(n=Kt().createExpectedError(n)),Ro(n),n}))},e.getAmpDoc=function(){return this.ampdoc},e.getParam=function(t){return this.ampdoc.getParam(t)},e.hasCapability=function(t){var e=this.ampdoc.getParam("cap");return!!e&&-1!=e.split(",").indexOf(t)},e.isEmbedded=function(){return!!this.Hd},e.isWebviewEmbedded=function(){return!this.Sh&&"1"==this.ampdoc.getParam("webview")},e.isCctEmbedded=function(){if(null!=this.Ud)return this.Ud;if(this.Ud=!1,!this.Sh){var t=vt(this.win.location.search);this.Ud="1"===t.amp_gsa&&(t.amp_js_v||"").startsWith("a")}return this.Ud},e.isProxyOrigin=function(){return this.zd},e.maybeUpdateFragmentForCct=function(){if(this.isCctEmbedded()&&this.win.history.replaceState){var t=wo(this.win.location.href),e=Wn(this.ampdoc).canonicalUrl,n=wo(e);this.Yd(t,n)&&(this.Dd.ampshare=e,this.win.history.replaceState({},"","#"+co(this.Dd)))}},e.Yd=function(t,e){var n=function(t){return t.split(".").length>2?t.replace(Xu,"$1"):t};return n(t)==n(e)},e.isRuntimeOn=function(){return this.gv},e.toggleRuntime=function(){this.gv=!this.gv,Kt().fine(Ju,"Runtime state:",this.gv),this.Rd.fire(this.gv)},e.onRuntimeState=function(t){return this.Rd.add(t)},e.isOvertakeHistory=function(){return this.Id},e.getVisibilityState=function(){return this.ampdoc.getVisibilityState()},e.isVisible=function(){return this.ampdoc.isVisible()},e.hasBeenVisible=function(){return this.ampdoc.hasBeenVisible()},e.whenFirstVisible=function(){return this.ampdoc.whenFirstVisible()},e.whenNextVisible=function(){return this.ampdoc.whenNextVisible()},e.getFirstVisibleTime=function(){return this.ampdoc.getFirstVisibleTime()},e.getLastVisibleTime=function(){return this.ampdoc.getLastVisibleTime()},e.onVisibilityChanged=function(t){return this.ampdoc.onVisibilityChanged(t)},e.Jd=function(t){var e;t&&(Jt("prerender"===(e=t)||"preview"===e||"visible"===e||"hidden"===e||"paused"===e||"inactive"===e),t===di&&(t=null!=this.ampdoc.getLastVisibleTime()?pi:ci),this.ampdoc.overrideVisibilityState(t),Kt().fine(Ju,"visibilitychange event:",this.ampdoc.getVisibilityState()))},e.getResolvedViewerUrl=function(){return this.$d},e.getViewerUrl=function(){return this.Wd},e.maybeGetMessagingOrigin=function(){return this.Nd},e.getUnconfirmedReferrerUrl=function(){return this.Fd},e.getReferrerUrl=function(){return this.qd},e.isTrustedViewer=function(){var t=this;if(!this.Dh){var e=this.Bd();this.Dh=void 0!==e?Promise.resolve(e):this.Hd.then((function(e){return!!e&&t.Xd(e)}))}return this.Dh},e.Bd=function(){return!!this.isEmbedded()&&(!this.win.location.ancestorOrigins||this.isWebviewEmbedded()||this.isCctEmbedded()?void 0:this.win.location.ancestorOrigins.length>0&&this.Xd(this.win.location.ancestorOrigins[0]))},e.getViewerOrigin=function(){var t;return this.Vd||(this.isEmbedded()?this.win.location.ancestorOrigins&&this.win.location.ancestorOrigins.length>0&&(t=this.win.location.ancestorOrigins[0]):t="",this.Vd=void 0!==t?Promise.resolve(t):ni(this.win).timeoutPromise(1e3,this.Hd).catch((function(){return""}))),this.Vd},e.Xd=function(t){var e=oo(t),n=e.protocol;return"x-thread:"==n||"https:"==n&&Mt.some((function(t){return t.test(e.hostname)}))},e.onMessage=function(t,e){var n=this.Sd[t];n||(n=new vi,this.Sd[t]=n);var i=n.add(e);return this.jd[t]&&(this.jd[t].forEach((function(t){n.fire(t.data),t.deferred.resolve()})),this.jd[t]=[]),i},e.onMessageRespond=function(t,e){var n=this;return this.Md[t]=e,this.jd[t]&&(this.jd[t].forEach((function(t){t.deferred.resolve(e(t.data))})),this.jd[t]=[]),function(){n.Md[t]===e&&delete n.Md[t]}},e.receiveMessage=function(t,e,n){if("visibilitychange"==t)return this.Jd(e.state),u();if("broadcast"==t)return this._d.fire(e),u();var i=this.Sd[t],r=this.Md[t];if(!i&&!r){if(this.jd[t]=this.jd[t]||[],this.jd[t].length>=50)return;var o=new h;return this.jd[t].push({data:e,deferred:o}),o.promise}return i&&i.fire(e),r?r(e):i?u():void 0},e.setMessageDeliverer=function(t,e){var n=this;if(this.kd)throw new Error("message channel can only be initialized once");if(null==e)throw new Error("message channel must have an origin");if(Kt().fine(Ju,"message channel established with origin: ",e),this.kd=t,this.Nd=e,this.Ld(e),this.Cd.length>0){var i=this.Cd.slice(0);this.Cd=[],i.forEach((function(t){var e=n.kd(t.eventType,t.data,t.awaitResponse);t.awaitResponse&&t.responseResolver(e)}))}},e.maybeGetMessageDeliverer=function(){return this.kd},e.sendMessage=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.At(t,e,n,!1)},e.sendMessageAwaitResponse=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.At(t,e,n,!0)},e.At=function(t,e,n,i){var r=this;if(this.kd)return c((function(){return r.kd(t,e,i)}));if(!this.Hd)return i?Promise.reject(Qu()):u();if(!n)return this.Hd.then((function(){return r.kd(t,e,i)}));var o,s=H(this.Cd,(function(e){return e.eventType==t}));if(-1!=s)(o=this.Cd.splice(s,1)[0]).data=e,o.awaitResponse=o.awaitResponse||i;else{var a=new h,l=a.promise,f=a.resolve;o={eventType:t,data:e,awaitResponse:i,responsePromise:l,responseResolver:f}}return this.Cd.push(o),o.responsePromise},e.broadcast=function(t){return this.Hd?this.At("broadcast",t,!1,!1).then((function(){return!0}),(function(){return!1})):Promise.resolve(!1)},e.onBroadcast=function(t){return this._d.add(t)},e.whenMessagingReady=function(){return this.Hd},e.replaceUrl=function(t){if(t&&this.ampdoc.isSingleDoc()&&this.win.history.replaceState)try{var e=oo(this.win.location.href),n=oo(mo(t)+this.win.location.hash);e.origin==n.origin&&wo(e)==wo(n)&&(this.win.history.replaceState({},"",n.href),this.win.location.originalHref=e.href,Kt().fine(Ju,"replace url:"+n.href))}catch(t){Kt().error(Ju,"replaceUrl failed",t)}},e.Kd=function(){var t=this;if(this.ampdoc.getVisibilityState()!=fi){var e=[],n=function(){return e.forEach((function(t){return t()}))},i=function(){t.Jd(fi),n(),Kt().expectedError(Ju,"Received user action in non-visible doc")},r={capture:!0,passive:!0};e.push(jr(this.win,"keydown",i,r),jr(this.win,"touchstart",i,r),jr(this.win,"mousedown",i,r)),this.whenFirstVisible().then(n)}},t}();function Qu(t){var e;return t instanceof Error?((t=l(t)).message="No messaging channel: "+t.message,e=t):e=new Error("No messaging channel: "+t),e.message=Z(e.message),e}var Zu=function(){function t(){}return t.solveYValueFromXValue=function(e,n,i,r,o,s,a,u,h){return t.Qd(t.Zd(e,n,r,s,u),i,o,a,h)},t.Zd=function(e,n,i,r,o){var s=1e-6,a=(e-n)/(o-n);if(a<=0)return 0;if(a>=1)return 1;for(var u=0,h=1,c=0,l=0;l<8;l++){c=t.tm(a,n,i,r,o);var f=(t.tm(a+s,n,i,r,o)-c)/s;if(Math.abs(c-e)<s)return a;if(Math.abs(f)<s)break;c<e?u=a:h=a,a-=(c-e)/f}for(var d=0;Math.abs(c-e)>s&&d<8;d++)c<e?(u=a,a=(a+h)/2):(h=a,a=(a+u)/2),c=t.tm(a,n,i,r,o);return a},t.tm=function(e,n,i,r,o){if(0==e)return n;if(1==e)return o;var s=t.im(n,i,e),a=t.im(i,r,e),u=t.im(r,o,e);return s=t.im(s,a,e),a=t.im(a,u,e),t.im(s,a,e)},t.Qd=function(e,n,i,r,o){if(0==e)return n;if(1==e)return o;var s=t.im(n,i,e),a=t.im(i,r,e),u=t.im(r,o,e);return s=t.im(s,a,e),a=t.im(a,u,e),t.im(s,a,e)},t.im=function(t,e,n){return t+n*(e-t)},t}(),th={LINEAR:function(t){return t},EASE:function(t){return Zu.solveYValueFromXValue(t,0,0,.25,.1,.25,1,1,1)},EASE_IN:function(t){return Zu.solveYValueFromXValue(t,0,0,.42,0,1,1,1,1)},EASE_OUT:function(t){return Zu.solveYValueFromXValue(t,0,0,0,0,.58,1,1,1)},EASE_IN_OUT:function(t){return Zu.solveYValueFromXValue(t,0,0,.42,0,.58,1,1,1)}},eh={linear:th.LINEAR,ease:th.EASE,"ease-in":th.EASE_IN,"ease-out":th.EASE_OUT,"ease-in-out":th.EASE_IN_OUT};function nh(t){if(!t)return null;if(W(t)){if(-1!=t.indexOf("cubic-bezier")){var e=t.match(/cubic-bezier\((.+)\)/);if(e){var n=e[1].split(",").map(parseFloat);if(4==n.length){for(var i=0;i<4;i++)if(isNaN(n[i]))return null;return r=n[0],o=n[1],s=n[2],a=n[3],function(t){return Zu.solveYValueFromXValue(t,0,0,r,o,s,a,1,1)}}}return null}return eh[t]}var r,o,s,a;return t}var ih="Animation",rh=function(){},oh=function(){function t(t,e){this.nm=t,this.Gc=e||ai(self),this.rm=null,this.sm=[]}t.animate=function(e,n,i,r){return new t(e).setCurve(r).add(0,n,1).start(i)};var e=t.prototype;return e.setCurve=function(t){return t&&(this.rm=nh(t)),this},e.add=function(t,e,n,i){return this.sm.push({delay:t,func:e,duration:n,curve:nh(i)}),this},e.start=function(t){return new sh(this.Gc,this.nm,this.sm,this.rm,t)},t}(),sh=function(){function t(t,e,n,i,r){this.Gc=t,this.nm=e,this.sm=[];for(var o=0;o<n.length;o++){var s=n[o];this.sm.push({delay:s.delay,func:s.func,duration:s.duration,curve:s.curve||i,started:!1,completed:!1})}this.om=r,this.ka=Date.now(),this.es=!0,this.Ke={};var a=new h;this.um=a.promise,this.Fe=a.resolve,this.hm=a.reject,this.am=this.Gc.createAnimTask(this.nm,{mutate:this.fm.bind(this)}),this.Gc.canAnimate(this.nm)?this.am(this.Ke):(Kt().warn(ih,"cannot animate"),this.lm(!1,0))}var e=t.prototype;return e.then=function(t,e){return t||e?this.um.then(t,e):this.um},e.thenAlways=function(t){var e=t||rh;return this.then(e,e)},e.halt=function(t){this.lm(!1,t||0)},e.lm=function(t,e){if(this.es){if(this.es=!1,0!=e){this.sm.length>1&&this.sm.sort((function(t,e){return t.delay+t.duration-(e.delay+e.duration)}));try{if(e>0)for(var n=0;n<this.sm.length;n++)this.sm[n].func(1,!0);else for(var i=this.sm.length-1;i>=0;i--)this.sm[i].func(0,!1)}catch(e){Kt().error(ih,"completion failed: "+e,e),t=!1}}t?this.Fe():this.hm()}},e.fm=function(t){if(this.es){for(var e=Date.now(),n=Math.min((e-this.ka)/this.om,1),i=0;i<this.sm.length;i++){var r=this.sm[i];!r.started&&n>=r.delay&&(r.started=!0)}for(var o=0;o<this.sm.length;o++){var s=this.sm[o];s.started&&!s.completed&&this.vm(s,n)}1==n?this.lm(!0,0):this.Gc.canAnimate(this.nm)?this.am(this.Ke):(Kt().warn(ih,"cancel animation"),this.lm(!1,0))}},e.vm=function(t,e){var n,i;if(t.duration>0){if(i=n=Math.min((e-t.delay)/t.duration,1),t.curve&&1!=i)try{i=t.curve(n)}catch(t){return Kt().error(ih,"step curve failed: "+t,t),void this.lm(!1,0)}}else n=1,i=1;1==n&&(t.completed=!0);try{t.func(i,t.completed)}catch(t){return Kt().error(ih,"step mutate failed: "+t,t),void this.lm(!1,0)}},t}();function ah(t,e){for(var n,i=e.lastElementChild;i;i=i.previousElementSibling)if(i.getBoundingClientRect().height>0){var r=xi(t,i);if("static"==r.position||"relative"==r.position){n=r;break}}return n?parseInt(n.marginBottom,10):0}var uh=function(){function t(t){var e=this;this.win=t,this.Gc=ai(t);var n=this.win.document,i=n.documentElement,r=i.className;i.classList.add("i-amphtml-ios-embed");var o=n.createElement("html");this.dm=o,o.id="i-amphtml-wrapper",o.className=r,this.Bc=new vi,this.qc=new vi,this.pm=this.bm.bind(this),this.gm=function(){return e.qc.fire()},this.ym=0,this.wm=!1,we(n,this.Am.bind(this)),an(n).then((function(){i.classList.add("i-amphtml-ios-overscroll")})),Kt().fine("Viewport","initialized ios-embed-wrapper viewport")}var e=t.prototype;return e.ensureReadyForElements=function(){this.Am()},e.Am=function(){if(!this.wm){this.wm=!0;var t=this.win.document,e=t.body;t.documentElement.appendChild(this.dm),this.dm.appendChild(e),Object.defineProperty(t,"body",{get:function(){return e}}),this.bm()}},e.connect=function(){this.win.addEventListener("resize",this.gm),this.dm.addEventListener("scroll",this.pm)},e.disconnect=function(){this.win.removeEventListener("resize",this.gm),this.dm.removeEventListener("scroll",this.pm)},e.getBorderTop=function(){return 1},e.requiresFixedLayerTransfer=function(){return!Ir(this.win,"ios-fixed-no-transfer")||parseFloat(Qn(this.win).getIosVersionString())<12.2},e.overrideGlobalScrollTo=function(){return!0},e.supportsPositionFixed=function(){return!0},e.onScroll=function(t){this.Bc.add(t)},e.onResize=function(t){this.qc.add(t)},e.updatePaddingTop=function(t){this.ym=t,Ei(this.dm,{"padding-top":Oi(t)})},e.hideViewerHeader=function(t,e){t||this.updatePaddingTop(0)},e.showViewerHeader=function(t,e){t||this.updatePaddingTop(e)},e.disableScroll=function(){this.dm.classList.add("i-amphtml-scroll-disabled")},e.resetScroll=function(){this.dm.classList.remove("i-amphtml-scroll-disabled")},e.updateLightboxMode=function(t){return u()},e.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}},e.getScrollTop=function(){return this.dm.scrollTop},e.getScrollLeft=function(){return 0},e.getScrollWidth=function(){return this.dm.scrollWidth},e.getScrollHeight=function(){return this.dm.scrollHeight},e.getContentHeight=function(){var t=this.win.document.body,e=t.getBoundingClientRect().height,n=ah(this.win,t),i=xi(this.win,t);return parseInt(i.marginTop,10)+this.ym+e+n+parseInt(i.marginBottom,10)},e.contentHeightChanged=function(){},e.getLayoutRect=function(t,e,n){var i=t.getBoundingClientRect(),r=null!=n?n:this.getScrollTop(),o=null!=e?e:this.getScrollLeft();return Le(Math.round(i.left+o),Math.round(i.top+r),Math.round(i.width),Math.round(i.height))},e.getRootClientRectAsync=function(){return Promise.resolve(null)},e.setScrollTop=function(t){this.dm.scrollTop=t||1},e.bm=function(t){0==this.dm.scrollTop&&(this.dm.scrollTop=1,t&&t.preventDefault()),t&&this.Bc.fire()},e.getScrollingElement=function(){return this.dm},e.getScrollingElementScrollsLikeViewport=function(){return!1},t}(),hh=function(){function t(t){var e=this;this.ampdoc=t,this.win=t.win,this.Ih=Qn(this.win),this.Bc=new vi,this.qc=new vi,this.pm=this.xm.bind(this),this.gm=function(){return e.qc.fire()},Kt().fine("Viewport","initialized natural viewport")}var e=t.prototype;return e.xm=function(){this.Bc.fire()},e.connect=function(){this.win.addEventListener("scroll",this.pm),this.win.addEventListener("resize",this.gm)},e.disconnect=function(){this.win.removeEventListener("scroll",this.pm),this.win.removeEventListener("resize",this.gm)},e.ensureReadyForElements=function(){},e.getBorderTop=function(){return 0},e.requiresFixedLayerTransfer=function(){return!1},e.overrideGlobalScrollTo=function(){return!1},e.supportsPositionFixed=function(){return!0},e.onScroll=function(t){this.Bc.add(t)},e.onResize=function(t){this.qc.add(t)},e.updatePaddingTop=function(t){Ei(this.win.document.documentElement,{"padding-top":Oi(t)})},e.hideViewerHeader=function(t,e){t||this.updatePaddingTop(0)},e.showViewerHeader=function(t,e){t||this.updatePaddingTop(e)},e.disableScroll=function(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")},e.resetScroll=function(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")},e.updateLightboxMode=function(t){return u()},e.getSize=function(){var t=this.win.innerWidth,e=this.win.innerHeight;if(t&&e)return{width:t,height:e};var n=this.win.document.documentElement;return{width:n.clientWidth,height:n.clientHeight}},e.getScrollTop=function(){var t=this.getScrollingElement().scrollTop||this.win.pageYOffset,e=this.ampdoc.getRootNode().host;return e?t-e.offsetTop:t},e.getScrollLeft=function(){return 0},e.getScrollWidth=function(){return this.getScrollingElement().scrollWidth},e.getScrollHeight=function(){return this.getScrollingElement().scrollHeight},e.getContentHeight=function(){var t=this.getScrollingElement(),e=t.getBoundingClientRect(),n=e.top+this.getScrollTop(),i=Qn(this.win).isSafari()?ah(this.win,t):0,r=xi(this.win,t);return n+parseInt(r.marginTop,10)+e.height+i+parseInt(r.marginBottom,10)},e.contentHeightChanged=function(){},e.getLayoutRect=function(t,e,n){var i=t.getBoundingClientRect(),r=null!=n?n:this.getScrollTop(),o=null!=e?e:this.getScrollLeft();return Le(Math.round(i.left+o),Math.round(i.top+r),Math.round(i.width),Math.round(i.height))},e.getRootClientRectAsync=function(){return Promise.resolve(null)},e.setScrollTop=function(t){this.getScrollingElement().scrollTop=t},e.getScrollingElement=function(){var t=this.win.document;return t.scrollingElement?t.scrollingElement:t.body&&this.Ih.isWebKit()?t.body:t.documentElement},e.getScrollingElementScrollsLikeViewport=function(){return!0},t}(),ch="Viewport";function lh(t,e,n){return function(t,e,n){var i=parseInt(xi(t,e)[n],10);return isNaN(i)?0:i}(t,e===t.document.body?t.document.documentElement:e,n)}function fh(t,e){return lh(t,e,"scrollPaddingTop")}var dh=function(){function t(t,e,n){var i=this,r=t.win;this.ampdoc=t,this.Em=this.ampdoc.win.document,this.Bs=e,this.yh=n,this.Vc=null,this.It=null,this.Om=null,this.Tm=!1,this.Pm=null,this.ym=Number(n.getParam("paddingTop")||0),this.Im=0,this.Xo=ni(r),this.Gc=ai(r),this.Sm=!1,this.oe=null,this.Mm=0,this.Fc=new vi,this.Bc=new vi,this.qc=new vi,this.Rm=void 0,this._m=void 0,this.km=null,this.yh.onMessage("viewport",this.Nm.bind(this)),this.yh.onMessage("scroll",this.Cm.bind(this)),this.yh.onMessage("disableScroll",this.jm.bind(this)),this.yh.isEmbedded()&&this.Bs.updatePaddingTop(this.ym),this.Bs.onScroll(this.Wc.bind(this)),this.Bs.onResize(this.$c.bind(this)),this.onScroll(this.Dm.bind(this)),this.Yc=!1,this.ampdoc.onVisibilityChanged(this.Kc.bind(this)),this.Kc();var o=this.Em.documentElement;if(t.isSingleDoc()&&o.classList.add("i-amphtml-singledoc"),n.isEmbedded()?o.classList.add("i-amphtml-embedded"):o.classList.add("i-amphtml-standalone"),xe(r)&&o.classList.add("i-amphtml-iframed"),"1"===n.getParam("webview")&&o.classList.add("i-amphtml-webview"),xe(r)&&"scrollRestoration"in r.history&&(r.history.scrollRestoration="manual"),this.Bs.overrideGlobalScrollTo())try{Object.defineProperty(r,"scrollTo",{value:function(t,e){return i.setScrollTop(e)}}),["pageYOffset","scrollY"].forEach((function(t){Object.defineProperty(r,t,{get:function(){return i.getScrollTop()}})}))}catch(t){}Qn(r).isIos()&&xe(r)&&this.ampdoc.isSingleDoc()&&this.ampdoc.whenReady().then((function(){r.scrollTo(-.1,0)}))}var e=t.prototype;return e.dispose=function(){this.Bs.disconnect()},e.ensureReadyForElements=function(){this.Bs.ensureReadyForElements()},e.Kc=function(){var t=this.ampdoc.isVisible();t!=this.Yc&&(this.Yc=t,t?(this.Bs.connect(),this.It&&this.$c(),this.Om&&(this.Om=null,this.getScrollTop())):this.Bs.disconnect())},e.getPaddingTop=function(){return this.ym},e.getScrollTop=function(){return null==this.Om&&(this.Om=this.Bs.getScrollTop()),this.Om},e.getScrollLeft=function(){return null==this.Pm&&(this.Pm=this.Bs.getScrollLeft()),this.Pm},e.setScrollTop=function(t){this.Om=null,this.Bs.setScrollTop(t)},e.updatePaddingBottom=function(t){this.ampdoc.waitForBodyOpen().then((function(e){Si(e,"borderBottom","".concat(t,"px solid transparent"))}))},e.getSize=function(){if(this.It)return this.It;if(this.It=this.Bs.getSize(),0==this.It.width||0==this.It.height){var t=this.ampdoc.getVisibilityState();t!=ci&&t!=fi||Math.random()<.01&&Kt().error(ch,"viewport has zero dimensions")}return this.It},e.getHeight=function(){return this.getSize().height},e.getWidth=function(){return this.getSize().width},e.getScrollWidth=function(){return this.Bs.getScrollWidth()},e.getScrollHeight=function(){return this.Bs.getScrollHeight()},e.getContentHeight=function(){return this.Bs.getContentHeight()},e.contentHeightChanged=function(){this.Bs.contentHeightChanged()},e.getRect=function(){if(null==this.Vc){var t=this.getScrollTop(),e=this.getScrollLeft(),n=this.getSize();this.Vc=Le(e,t,n.width,n.height)}return this.Vc},e.getLayoutRect=function(t){var e=this.getScrollLeft(),n=this.getScrollTop(),i=Sn(t,this.ampdoc.win);if(i){var r=this.Bs.getLayoutRect(t,0,0),o=this.Bs.getLayoutRect(i,e,n);return Le(Math.round(r.left+o.left),Math.round(r.top+o.top),Math.round(r.width),Math.round(r.height))}return this.Bs.getLayoutRect(t,e,n)},e.getClientRectAsync=function(t){var e=this.Gc.measurePromise((function(){return t.getBoundingClientRect()})),n=this.Bs.getRootClientRectAsync(),i=Sn(t,this.ampdoc.win);return i&&(n=this.Gc.measurePromise((function(){return i.getBoundingClientRect()}))),Promise.all([e,n]).then((function(t){var e,n=t[0],i=t[1];return i?ke(n,i.left,i.top):(e=n,Le(Number(e.left),Number(e.top),Number(e.width),Number(e.height)))}))},e.supportsPositionFixed=function(){return this.Bs.supportsPositionFixed()},e.isDeclaredFixed=function(t){return!!this.km&&this.km.isDeclaredFixed(t)},e.scrollIntoView=function(t){var e=this;return this.Um(t).then((function(n){return e.zm(t,n)}))},e.zm=function(t,e){var n=this,i=this.Bs.getLayoutRect(t).top,r=fh(this.ampdoc.win,e);c((function(){return Math.max(0,i-n.ym-r)})).then((function(t){return n.Lm(e,t)}))},e.animateScrollIntoView=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return Jt(!r||void 0!==i),this.Um(t).then((function(o){return e.animateScrollWithinParent(t,o,n,i,r)}))},e.animateScrollWithinParent=function(t,e,n,i,r){var o=this;Jt(!r||void 0!==i);var s=this.Bs.getLayoutRect(t),a=(this.Hm(e)?this.getSize():this.getLayoutRect(e)).height,u=this.ampdoc.win,h=fh(u,e),c=function(t,e){return lh(t,e,"scrollPaddingBottom")}(u,e),l=-h;return"bottom"===n?l=-a+c+s.height:"center"===n&&(l=-(a-h-c)/2+s.height/2),this.Gm(e).then((function(t){var n=s.top-o.ym+l,a=Math.max(0,n);if(a!=t)return o.Vm(e,t,a,i,r)}))},e.Vm=function(t,e,n,i){var r=this,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"ease-in",s=void 0!==i?i:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;return Math.floor(function(t,e,n){return nt(0<=n),Math.min(Math.max(t,0),n)}(.65*Math.abs(t-e),0,n))}(e,n),a=function(t,e){return function(n){return t+(e-t)*n}}(e,n);return oh.animate(t,(function(e){r.Lm(t,a(e))}),s,o).thenAlways((function(){r.Lm(t,n)}))},e.Um=function(t){var e=this;return this.Gc.measurePromise((function(){return de(t,".i-amphtml-scrollable")||e.Bs.getScrollingElement()}))},e.Lm=function(t,e){this.Hm(t)?this.Bs.setScrollTop(e):this.Gc.mutate((function(){t.scrollTop=e}))},e.Gm=function(t){var e=this;return this.Hm(t)?c((function(){return e.getScrollTop()})):this.Gc.measurePromise((function(){return t.scrollTop}))},e.Hm=function(t){return t==this.Bs.getScrollingElement()},e.getScrollingElement=function(){return this.oe?this.oe:this.oe=this.Bs.getScrollingElement()},e.onChanged=function(t){return this.Fc.add(t)},e.onScroll=function(t){return this.Bc.add(t)},e.onResize=function(t){return this.qc.add(t)},e.enterLightboxMode=function(t,e){return this.yh.sendMessage("requestFullOverlay",{},!0),this.enterOverlayMode(),this.km&&this.km.enterLightbox(t,e),t&&this.maybeEnterFieLightboxMode(t),this.Bs.updateLightboxMode(!0)},e.leaveLightboxMode=function(t){return this.yh.sendMessage("cancelFullOverlay",{},!0),this.km&&this.km.leaveLightbox(),this.leaveOverlayMode(),t&&this.maybeLeaveFieLightboxMode(t),this.Bs.updateLightboxMode(!1)},e.isLightboxExperimentOn=function(){return Ir(this.ampdoc.win,"amp-lightbox-a4a-proto")},e.maybeEnterFieLightboxMode=function(t){var e=this.Fm(t);e&&(Jt(this.isLightboxExperimentOn()),e.enterFullOverlayMode())},e.maybeLeaveFieLightboxMode=function(t){var e=this.Fm(t);e&&Jt(e).leaveFullOverlayMode()},e.Fm=function(t){var e=Sn(t,this.ampdoc.win);return e&&e.__AMP_EMBED__},e.enterOverlayMode=function(){this.disableTouchZoom(),this.disableScroll()},e.leaveOverlayMode=function(){this.resetScroll(),this.restoreOriginalTouchZoom()},e.disableScroll=function(){var t,e=this,n=this.ampdoc.win,i=n.document.documentElement;this.Gc.measure((function(){var r=xi(n,i).marginRight,o=function(t){var e=t.document.documentElement;return t.innerWidth-e.clientWidth}(e.ampdoc.win);t=parseInt(r,10)+o})),this.Gc.mutate((function(){Si(i,"margin-right",t,"px"),e.Bs.disableScroll()}))},e.resetScroll=function(){var t=this,e=this.ampdoc.win.document.documentElement;this.Gc.mutate((function(){Si(e,"margin-right",""),t.Bs.resetScroll()}))},e.resetTouchZoom=function(){var t=this,e=this.ampdoc.win.innerHeight,n=this.Em.documentElement.clientHeight;e&&n&&e===n||this.disableTouchZoom()&&this.Xo.delay((function(){t.restoreOriginalTouchZoom()}),50)},e.disableTouchZoom=function(){var t=this.Bm();if(!t)return!1;var e=function(t,e){var n=function(t){var e=Object.create(null);if(!t)return e;for(var n=t.split(/,|;/),i=0;i<n.length;i++){var r=n[i].split("="),o=r[0].trim(),s=r[1];s=(s||"").trim(),o&&(e[o]=s)}return e}(t),i=!1;for(var r in e)n[r]!==e[r]&&(i=!0,void 0!==e[r]?n[r]=e[r]:delete n[r]);return i?function(t){var e="";for(var n in t)e.length>0&&(e+=","),t[n]?e+=n+"="+t[n]:e+=n;return e}(n):t}(t.content,{"maximum-scale":"1","user-scalable":"no"});return this.qm(e)},e.restoreOriginalTouchZoom=function(){return void 0!==this._m&&this.qm(this._m)},e.updateFixedLayer=function(){return this.km?this.km.update():u()},e.addToFixedLayer=function(t,e){return this.km?this.km.addElement(t,e):u()},e.removeFromFixedLayer=function(t){this.km&&this.km.removeElement(t)},e.createFixedLayer=function(t){var e=this;this.km=new t(this.ampdoc,this.Gc,this.Bs.getBorderTop(),this.ym,this.Bs.requiresFixedLayerTransfer()),this.ampdoc.whenReady().then((function(){return e.km.setup()}))},e.qm=function(t){var e=this.Bm();return!(!e||e.content==t||(Kt().fine(ch,"changed viewport meta to:",t),e.content=t,0))},e.Bm=function(){return xe(this.ampdoc.win)?null:(void 0===this.Rm&&(this.Rm=this.Em.querySelector("meta[name=viewport]"),this.Rm&&(this._m=this.Rm.content)),this.Rm)},e.Cm=function(t){var e=t.scrollTop;this.setScrollTop(e)},e.Nm=function(t){var e=this,n=t.paddingTop,i=t.duration||0,r=t.curve,o=t.transient;if(null!=n&&n!=this.ym&&(this.Im=this.ym,this.ym=n,this.km)){var s=this.km.animateFixedElements(this.ym,this.Im,i,r,o);n<this.Im?this.Bs.hideViewerHeader(o,this.Im):s.then((function(){e.Bs.showViewerHeader(o,n)}))}},e.jm=function(t){t?this.disableScroll():this.resetScroll()},e.Jc=function(t,e){var n=this.getSize(),i=this.getScrollTop(),r=this.getScrollLeft();Kt().fine(ch,"changed event:","relayoutAll=",t,"top=",i,"left=",r,"bottom=",i+n.height,"velocity=",e),this.Fc.fire({relayoutAll:t,top:i,left:r,width:n.width,height:n.height,velocity:e})},e.Wc=function(){var t=this;this.Vc=null,this.Mm++,this.Pm=this.Bs.getScrollLeft();var e=this.Bs.getScrollTop();if(!(e<0)){if(this.Om=e,!this.Sm){this.Sm=!0;var n=Date.now();this.Xo.delay((function(){t.Gc.measure((function(){t.Bv(n,e)}))}),36)}this.Bc.fire()}},e.Bv=function(t,e){var n=this;this.Om=this.Bs.getScrollTop();var i=this.Om,r=Date.now(),o=0;r!=t&&(o=(i-e)/(r-t)),Kt().fine(ch,"scroll: scrollTop="+i+"; velocity="+o),Math.abs(o)<.03?(this.Jc(!1,o),this.Sm=!1):this.Xo.delay((function(){return n.Gc.measure(n.Bv.bind(n,r,i))}),20)},e.Dm=function(){var t=this;this.Tm||(this.Tm=!0,this.Gc.measure((function(){t.Tm=!1,t.yh.sendMessage("scroll",{scrollTop:t.getScrollTop()},!0)})))},e.$c=function(){var t=this;this.Vc=null;var e=this.It;this.It=null;var n=this.getSize();this.updateFixedLayer().then((function(){var i=!e||e.width!=n.width;t.Jc(i,0),(i||e.height!=n.height)&&t.qc.fire({relayoutAll:i,width:n.width,height:n.height})}))},t}();function mh(t){var e,n=si(t),i=t.win;return e=t.isSingleDoc()&&function(t,e){return Qn(t).isIos()&&xe(t)&&e.isEmbedded()&&!e.hasCapability("iframeScroll")?ph.NATURAL_IOS_EMBED:ph.NATURAL}(i,n)==ph.NATURAL_IOS_EMBED?new uh(i):new hh(t),new dh(t,e,n)}var ph={NATURAL:"natural",NATURAL_IOS_EMBED:"natural-ios-embed"},vh=function(){function t(t){this.win=t,this.mf=qn(this.win),this.pf=this.gf(),this.Uu=[],this.bf=[],this.yf=[],this.wf=[],this.Zo=!1,this.Af=null,this.xf=null,this.Ef=this.Pf.bind(this),this.Tf=new xs(this.win,this.Ef,16),this.Of=new xs(this.win,this.Ef,40),this.If=this.Rf.bind(this),this.mf.isSingleDoc()?this.mf.getSingleDoc().onVisibilityChanged(this.If):Mi(this.win.document,this.If)}var e=t.prototype;return e.dispose=function(){Ci(this.win.document,this.If)},e.Rf=function(){this.Zo&&this.Sf()},e.run=function(t,e){this.Uu.push(t),this.yf.push(e||void 0),this.Bu()},e.runPromise=function(t,e){if(this.run(t,e),this.Af)return this.Af;var n=new h;return this.xf=n.resolve,this.Af=n.promise},e.createTask=function(t){var e=this;return function(n){e.run(t,n)}},e.mutate=function(t){this.run({measure:void 0,mutate:t})},e.mutatePromise=function(t){return this.runPromise({measure:void 0,mutate:t})},e.measure=function(t){this.run({measure:t,mutate:void 0})},e.measurePromise=function(t){var e=this;return new Promise((function(n){e.measure((function(){n(t())}))}))},e.canAnimate=function(t){return this._f(Jt(t))},e._f=function(t){if(Ri(this.win.document)!=fi)return!1;if(this.mf.isSingleDoc())return this.mf.getSingleDoc().isVisible();if(t){var e=this.mf.getAmpDocIfAvailable(t);return!e||e.isVisible()}return!0},e.runAnim=function(t,e,n){return this._f(t)?(this.run(e,n),!0):(Kt().warn("VSYNC","Did not schedule a vsync request, because document was invisible"),!1)},e.createAnimTask=function(t,e){var n=this;return function(i){return n.runAnim(t,e,i)}},e.runAnimMutateSeries=function(t,e,n){var i=this;return this._f(t)?new Promise((function(r,o){var s=Date.now(),a=0,u=i.createAnimTask(t,{mutate:function(t){var i=Date.now()-s;e(i,i-a,t)?n&&i>n?o(new Error("timeout")):(a=i,u(t)):r()}});u({})})):Promise.reject(Mo())},e.Bu=function(){this.Zo||(this.Zo=!0,this.Sf())},e.Sf=function(){this._f()?(this.pf(this.Ef),this.Of.schedule()):this.Tf.schedule()},e.Pf=function(){this.Of.cancel(),this.Zo=!1;var t=this.xf,e=this.yf,n=this.Uu;this.xf=null,this.Af=null,this.Uu=this.bf,this.yf=this.wf;for(var i=0;i<n.length;i++)n[i].measure&&(gh(n[i].measure,e[i])||(n[i].mutate=void 0));for(var r=0;r<n.length;r++)n[r].mutate&&gh(n[r].mutate,e[r]);this.bf=n,this.wf=e,this.bf.length=0,this.wf.length=0,t&&t()},e.gf=function(){var t=this,e=this.win.requestAnimationFrame||this.win.webkitRequestAnimationFrame;if(e)return e.bind(this.win);var n=0;return function(e){var i=Date.now(),r=Math.max(0,16-(i-n));n=i+r,t.win.setTimeout(e,r)}},t}();function gh(t,e){Jt(t);try{void 0!==t(e)&&Kt().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",t.toString())}catch(t){return d(t),!1}return!0}function yh(t){if(!t.defaultPrevented){var e=t.target;if(e&&"FORM"==e.tagName){(e.classList.contains("i-amphtml-form")?!e.hasAttribute("amp-novalidate"):!e.hasAttribute("novalidate"))&&e.checkValidity&&!e.checkValidity()&&t.preventDefault();for(var n=e.elements,i=0;i<n.length;i++)Xt(!n[i].name||n[i].name!=io,"Illegal input name, %s found: %s",io,n[i]);var r=e.getAttribute("action"),o=e.getAttribute("action-xhr"),s=(e.getAttribute("method")||"GET").toUpperCase();o&&(fo(o,e,"action-xhr"),Xt(!po(o),"form action-xhr should not be on AMP CDN: %s",e),So(o)),r&&(fo(r,e,"action"),Xt(!po(r),"form action should not be on AMP CDN: %s",e),So(r)),"GET"==s?Xt(o||r,"form action-xhr or action attribute is required for method=GET: %s",e):"POST"==s&&(r&&Wt().error("form","action attribute is invalid for method=POST: %s",e),o||(t.preventDefault(),Xt(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",e)));var a=e.getAttribute("target");a?Xt("_blank"==a||"_top"==a,"form target=%s is invalid can only be _blank or _top: %s",a,e):e.setAttribute("target","_top"),o&&(t.preventDefault(),t.stopImmediatePropagation(),Un(e).execute(e,"submit",null,e,e,t,3))}}}var bh="Input",wh=function(){function t(t){this.win=t,this.Mf=this.kf.bind(this),this.Cf=this.Nf.bind(this),this.jf=null,this.Df=null,this.Lf=null,this.Uf="ontouchstart"in t||void 0!==t.navigator.maxTouchPoints&&t.navigator.maxTouchPoints>0||void 0!==t.DocumentTouch,Kt().fine(bh,"touch detected:",this.Uf),this.zf=!1,this.win.document.addEventListener("keydown",this.Mf),this.win.document.addEventListener("mousedown",this.Cf),this.Hf=!0,this.Gf=0,this.Vf=new vi,this.Ff=new vi,this.Bf=new vi,this.Uf&&(this.Hf=!this.Uf,this.jf=this.qf.bind(this),qr(t.document,"mousemove",this.jf))}var e=t.prototype;return e.setupInputModeClasses=function(t){var e=this;this.onTouchDetected((function(n){e.Wf(t,"amp-mode-touch",n)}),!0),this.onMouseDetected((function(n){e.Wf(t,"amp-mode-mouse",n)}),!0),this.onKeyboardStateChanged((function(n){e.Wf(t,"amp-mode-keyboard-active",n)}),!0)},e.isTouchDetected=function(){return this.Uf},e.onTouchDetected=function(t,e){return e&&t(this.isTouchDetected()),this.Vf.add(t)},e.isMouseDetected=function(){return this.Hf},e.onMouseDetected=function(t,e){return e&&t(this.isMouseDetected()),this.Ff.add(t)},e.isKeyboardActive=function(){return this.zf},e.onKeyboardStateChanged=function(t,e){return e&&t(this.isKeyboardActive()),this.Bf.add(t)},e.Wf=function(t,e,n){var i=this;t.waitForBodyOpen().then((function(t){ai(i.win).mutate((function(){t.classList.toggle(e,n)}))}))},e.kf=function(t){if(!this.zf&&!t.defaultPrevented){var e=t.target;e&&("INPUT"==e.tagName||"TEXTAREA"==e.tagName||"SELECT"==e.tagName||"OPTION"==e.tagName||e.hasAttribute("contenteditable"))||(this.zf=!0,this.Bf.fire(!0),Kt().fine(bh,"keyboard activated"))}},e.Nf=function(){this.zf&&(this.zf=!1,this.Bf.fire(!1),Kt().fine(bh,"keyboard deactivated"))},e.qf=function(t){var e=this;if(!t.sourceCapabilities||!t.sourceCapabilities.firesTouchEvents){var n;this.Lf||(this.Lf=this.$f.bind(this),this.Df=this.Yf.bind(this));var i=function(t,e,n,i){var r,o=new Promise((function(e){r=qr(t,"click",e,void 0)}));return o.then(r,r),i&&i(r),o}(this.win.document,0,0,(function(t){n=t}));return ni(this.win).timeoutPromise(300,i).then(this.Df,(function(){n&&n(),e.Lf()}))}this.Yf()},e.$f=function(){this.Hf=!0,this.Ff.fire(!0),Kt().fine(bh,"mouse detected")},e.Yf=function(){this.Gf++,this.Gf<=3?qr(this.win.document,"mousemove",this.jf):Kt().fine(bh,"mouse detection failed")},t}(),Ah=["<link rel=preload referrerpolicy=origin>"],Eh=18e4,Sh=null,Th=function(){function t(t){this.Kf=t.document,this.Xf=t.document.head,this.Jf={},this.Qf={},this.Ih=Qn(t),this.Jf[oo(t.location.href).origin]=!0,this.Zf=function(t){if(!Sh){var e=t.document.createElement("link"),n=e.relList;if(e.as="invalid-value",!n||!n.supports)return{};Sh={preconnect:n.supports("preconnect"),preload:n.supports("preload"),onlyValidAs:"invalid-value"!=e.as}}return Sh}(t),this.Xo=ni(t)}var e=t.prototype;return e.url=function(t,e,n){var i=this;t.whenFirstVisible().then((function(){i.je(t,e,n)}))},e.je=function(t,e,n){if(this.tc(e)){var i=oo(e).origin,r=Date.now(),o=this.Jf[i];if(o&&r<o)n&&(this.Jf[i]=r+Eh);else{var s,a=n?Eh:1e4;this.Jf[i]=r+a,this.Zf.preconnect||((s=this.Kf.createElement("link")).setAttribute("rel","dns-prefetch"),s.setAttribute("href",i),this.Xf.appendChild(s));var u=this.Kf.createElement("link");u.setAttribute("rel","preconnect"),u.setAttribute("href",i),u.setAttribute("referrerpolicy","origin"),this.Xf.appendChild(u),this.Xo.delay((function(){s&&s.parentNode&&s.parentNode.removeChild(s),u.parentNode&&u.parentNode.removeChild(u)}),1e4),this.nc(t,i)}}},e.preload=function(t,e,n){var i=this;this.tc(e)&&(this.Qf[e]||(this.Qf[e]=!0,this.url(t,e,!0),this.Zf.preload&&("document"==n&&this.Ih.isSafari()||t.whenFirstVisible().then((function(){i.ic(e)})))))},e.ic=function(t){var e=Tr(this.Kf)(Ah);e.setAttribute("href",t),this.Zf.onlyValidAs?e.as="fetch":e.as="",this.Xf.appendChild(e)},e.tc=function(t){return!(!t.startsWith("https:")&&!t.startsWith("http:"))},e.nc=function(t,e){if(!this.Zf.preconnect&&(this.Ih.isSafari()||this.Ih.isIos())){var n=Date.now();this.Jf[e]=n+Eh;var i=e+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(n-n%Eh),r=new XMLHttpRequest;r.open("HEAD",i,!0),r.withCredentials=!0,r.send()}},t}();function Ph(t){var e;!function(t){pn(t,"crypto",Va)}(t),pn(t,"batched-xhr",ra),vu(t),Du(t),Du(e=t),pn(e,"vsync",vh),function(t){pn(t,"xhr",ia)}(t),function(t){pn(t,"input",wh)}(t),function(t){pn(t,"preconnect",Th)}(t)}function Oh(t){Jt(!t.getParent()),function(t){(function(t){vn(t,"url",Nu,!0)})(t),function(t){vn(t,"templates",Iu)}(t),vn(t,"documentInfo",ja),function(t){vn(t,"cid",Ra)}(t),function(t){vn(t,"viewer",$u,!0)}(t),function(t){vn(t,"viewport",mh,!0)}(t),function(t){vn(t,"hidden-observer",qa)}(t),function(t){vn(t,"history",Ja)}(t),function(t){vn(t,"resources",wu)}(t),function(t){vn(t,"owners",mu)}(t),function(t){vn(t,"mutator",Za)}(t),function(t){vn(t,"url-replace",(function(t){return new Ku(t,new Yu(t))}))}(t),function(t){vn(t,"action",Us,!0)}(t),function(t){vn(t,"standard-actions",Pu,!0)}(t),function(t){vn(t,"storage",(function(){var e=si(t),n=parseInt(e.getParam("storage"),10)?new Cu(e):new Mu(t.win);return new xu(t,e,n).bd()}),!0)}(t),function(t){vn(t,ou,cu,!0)}(t),function(t){t.whenExtensionsKnown().then((function(){t.declaresExtension("amp-form")&&t.getRootNode().addEventListener("submit",yh,!0)}))}(t),vn(t,"loadingIndicator",$a)}(t)}function xh(t){return t.waitForBodyOpen().then((function(){var e,n,i=t.getBody(),r=(e=i,n=function(){return!!i.firstElementChild},new Promise((function(t){be(e,n,t)})));return ni(t.win).timeoutPromise(2e3,r).then((function(){return"AMP-STORY"===i.firstElementChild.tagName}),(function(){return!1}))}))}var Rh=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function Mh(t){if(null==t)return 0;var e=function(t){for(var e=t;null!=(t=t.parentNode);)t.nodeName.startsWith("AMP-")&&(e=t);return e}(t),n=e.nodeName;return"IMG"===n||"AMP-IMG"===n?1:"VIDEO"===n||"AMP-VIDEO"===n?2:"AMP-CAROUSEL"===n?8:"AMP-BASE-CAROUSEL"===n?16:"AMP-AD"===n?4:!n.startsWith("AMP-")&&e.textContent?32:0}var Ch=function(){function t(t){var e=this;this.win=t,this.rc=sa(ct(t,16)),this.ec=[],this.uc=t.performance.timeOrigin||t.performance.timing.navigationStart,this.vu=null,this.yh=null,this.qe=null,this.oc=null,this.sc=!1,this.hc=!1,this.ac=w(),this.fc=void 0,this.cc=new gi,this.lc=0,this.vc=[],this.dc=0;var n=this.win.PerformanceObserver&&this.win.PerformanceObserver.supportedEntryTypes||[];if(n.includes("paint")||this.cc.rejectSignal("fcp",Kt().createExpectedError("First Contentful Paint not supported")),this.mc=n.includes("layout-shift"),!this.mc){var i=Kt().createExpectedError("Cumulative Layout Shift not supported");this.cc.rejectSignal(We,i),this.cc.rejectSignal(Ke,i)}this.gc=n.includes("first-input"),this.gc||this.cc.rejectSignal("fid",Kt().createExpectedError("First Input Delay not supported")),this.bc=n.includes("largest-contentful-paint"),this.bc||this.cc.rejectSignal("lcp",Kt().createExpectedError("Largest Contentful Paint not supported")),this.yc=n.includes("navigation"),this.wc=n.includes("event")&&Ir(t,"interaction-to-next-paint"),this.wc||this.cc.rejectSignal(Xe,Kt().createExpectedError("Interaction to next paint not supported")),this.Ac=this.Ac.bind(this),this.addEnabledExperiment("rtv-"+Lt(this.win).rtvVersion),an(t.document).then((function(){e.tick("dr"),e.flush()})),un(t.document).then((function(){return e.xc()})),un(t.document).then((function(){return e.Ec(40)})),this.Pc(),this.Tc=!1,this.Oc=ft(t,(function(){e.Ic()}),6e3)}var e=t.prototype;return e.coreServicesAvailable=function(){var t=this,e=this.win.document.documentElement;this.vu=Fn(e),this.yh=si(e),this.qe=ti(e),this.oc=Wn(this.vu),this.hc=this.yh.isEmbedded()&&"1"===this.yh.getParam("csi"),this.vu.onVisibilityChanged(this.flush.bind(this)),this.Rc();var n=this.yh.whenMessagingReady();return this.vu.whenFirstVisible().then((function(){t.tick("ofv"),t.flush()})),(this.bc||this.mc)&&this.vu.onVisibilityChanged(this.Ac),n?n.then((function(){t.tickDelta("msr",t.win.performance.now()),t.tick("timeOrigin",void 0,t.uc);var e=t.vu.getMetaByName("amp-usqp");return e&&e.split(",").forEach((function(e){t.addEnabledExperiment("ssr-"+e)})),t.Sc()})).then((function(){t.sc=!0,t._c(),t.flush()})):u()},e.Sc=function(){var t=this;return xh(qn(this.win).getSingleDoc()).then((function(e){e&&t.addEnabledExperiment("story")}))},e.xc=function(){this.tick("ol"),this.flush()},e.Pc=function(){var t=this;if("inabox"!==Lt(this.win).runtime){var e=!1,n=!1,i=!1,r=!1,o=function(o){if("first-paint"!=o.name||e)if("first-contentful-paint"!=o.name||n)if("first-input"!==o.entryType||i)"layout-shift"===o.entryType?o.hadRecentInput||(t.Mc(o),t.dc+=o.value):"largest-contentful-paint"===o.entryType?t.kc(o):"navigation"!=o.entryType||r?"event"==o.entryType&&o.interactionId&&t.Ec(o.duration):(["domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","loadEventEnd","loadEventStart","requestStart","responseStart"].forEach((function(e){return t.tick(e,o[e])})),r=!0);else{var s=o.processingStart-o.startTime;t.tickDelta("fid",s),i=!0}else{var a=o.startTime+o.duration;t.tickDelta("fcp",a),t.tickSinceVisible("fcpv",a),n=!0}else t.tickDelta("fp",o.startTime+o.duration),e=!0},s=[];this.win.PerformancePaintTiming&&(this.win.performance.getEntriesByType("paint").forEach(o),s.push("paint")),this.gc&&this.Cc(o,{type:"first-input",buffered:!0}),this.mc&&this.Cc(o,{type:"layout-shift",buffered:!0}),this.bc&&this.Cc(o,{type:"largest-contentful-paint",buffered:!0}),this.yc&&this.Cc(o,{type:"navigation",buffered:!0}),this.wc&&this.Cc(o,{type:"event",durationThreshold:40,buffered:!0}),s.length>0&&this.Cc(o,{entryTypes:s})}},e.Cc=function(t,e){var n=this;try{new this.win.PerformanceObserver((function(e){e.getEntries().forEach(t),n.flush()})).observe(e)}catch(t){Kt().warn("Performance",t)}},e.Nc=function(){var t=this.vu.getVisibilityState();return t===pi||t===di},e.Ac=function(){this.Nc()&&(this.jc(),this.Ic())},e.Dc=function(){if(!this.Tc){this.Tc=!0;var t=this.win,e=parseInt(xi(t,t.document.body).getPropertyValue("--google-font-exp"),10);e>=0&&this.addEnabledExperiment("google-font-exp=".concat(e))}},e.jc=function(){this.mc&&(this.Dc(),this.Lc())},e.Mc=function(t){if(this.vu&&!this.Nc()){var e=this.vc;if(e.length>0){var n=e[0],i=e[e.length-1];if(t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3)return void e.push(t);this.Ic()}e.push(t),this.Oc()}},e.Ic=function(){for(var t,e=this.vc,n=this.cc.get(We),i=0,r=0,o=a(e,!0);!(t=o()).done;){var s=t.value;if(s.sources)for(var u,h=a(s.sources,!0);!(u=h()).done;)i|=Mh(u.value.node);r+=s.value}e.length=0,this.Dc(),(null==n||r>n)&&(this.cc.reset(We),this.cc.reset(Ye),this.tickDelta(We,r),this.tickDelta(Ye,i),this.flush())},e.Ec=function(t){if(this.vu){var e=this.cc.get(Xe);(null==e||t>e)&&(this.tickDelta(Xe,t-(null!=e?e:0)),this.flush())}},e.Lc=function(){0===this.lc?(this.tickDelta(Ke,this.dc),this.flush(),this.lc=1):1===this.lc&&(this.tickDelta("cls-2",this.dc),this.flush(),this.lc=2)},e.kc=function(t){var e=t.element,n=t.startTime,i=Mh(e);this.tickDelta("lcpt",i),this.tickDelta("lcp",n),this.tickSinceVisible("lcpv",n),this.flush()},e.Rc=function(){var t=this,e=!this.vu.hasBeenVisible(),n=-1;this.vu.whenFirstVisible().then((function(){n=t.win.performance.now(),t.mark("visible")})),this.Uc().then((function(){if(e){var i=n>-1?t.win.performance.now()-n:0;t.vu.whenFirstVisible().then((function(){t.tickDelta(Je,i)})),t.zc(i),t.mark(Je)}else t.tick(Je),t.zc(t.win.performance.now()-n);t.flush()}))},e.Uc=function(){var t=this;return this.qe.whenFirstPass().then((function(){var e,n=t.win.document.documentElement,i=ui(n).getSize();return Le(0,0,i.width,i.height),e=n,t.win,function(t){var e=Fn(t);return e.signals().whenSignal(ko).then((function(){var t=ti(e).get().filter((function(t){return!(!t.prerenderAllowed()||Rh.includes(t.element.tagName))})).map((function(t){return t.element}));return 0===t.length?Promise.resolve([]):new Promise((function(n){for(var i=e.win,r=new i.IntersectionObserver((function(t){r.disconnect();for(var e=[],i=0;i<t.length;i++){var o=t[i],s=o.isIntersecting,a=o.target;s&&e.push(a)}n(e)}),{root:xe(i)?i.document:null,threshold:.01}),o=0;o<Math.min(t.length,100);o++)r.observe(t[o])})).then((function(t){return Promise.all(t.map((function(t){return t.whenLoaded()})))}))}))}(e)}))},e.tick=function(t,e,n){Jt(null==e||null==n);var i,r={label:t};null!=e?r.delta=i=Math.max(e,0):null!=n?r.value=n:(this.mark(t),i=this.win.performance.now(),r.value=this.uc+i),this.win.dispatchEvent(Ur(this.win,"perf",{label:t,delta:i})),this.sc&&this.hc?this.yh.sendMessage("tick",r):this.Hc(r),this.cc.signal(t,i)},e.mark=function(t){var e,n;null===(e=(n=this.win.performance).mark)||void 0===e||e.call(n,t)},e.tickDelta=function(t,e){this.tick(t,e)},e.tickSinceVisible=function(t,e){var n,i,r=null==e?this.win.performance.now():e,o=this.uc+r,s=null!==(n=this.yh)&&void 0!==n&&n.isEmbedded()?null===(i=this.vu)||void 0===i?void 0:i.getFirstVisibleTime():this.uc,a=s?Math.max(o-s,0):0;this.tickDelta(t,a)},e.flush=function(){this.sc&&this.hc&&(null==this.fc&&(this.fc=Object.keys(this.ac).join(",")),this.yh.sendMessage("sendCsi",{ampexp:this.fc,canonicalUrl:this.oc.canonicalUrl,eventid:this.rc},!0))},e.addEnabledExperiment=function(t){this.ac[t]=!0,this.fc=void 0},e.Hc=function(t){this.ec.length>=50&&this.ec.shift(),this.ec.push(t)},e._c=function(){var t=this;this.yh&&(this.hc?(this.ec.forEach((function(e){t.yh.sendMessage("tick",e)})),this.ec.length=0):this.ec.length=0)},e.zc=function(t){this.yh&&this.yh.sendMessage("prerenderComplete",{value:t},!0)},e.isPerformanceTrackingOn=function(){return this.hc},e.getMetric=function(t){return this.cc.whenSignal(t)},t}();function _h(t){var e=t.document;if(e.fonts&&e.fonts.values)for(var n,i=e.fonts.values();n=i.next();){var r=n.value;if(!r)return;"loading"==r.status&&"display"in r&&"auto"==r.display&&(r.display="swap")}}var Lh=function(){function t(t,e){this.si=t,this.Th=e,this.Hp=!1,this.Gp=0,this.Vp=this.rr.bind(this),this.Fp=this.sr.bind(this),this.Bp=this.er.bind(this),this.qp=this.$p.bind(this),this.si.addEventListener("touchstart",this.Vp,!0)}var e=t.prototype;return e.cleanup=function(){this.Wp(),this.si.removeEventListener("touchstart",this.Vp,!0)},e.rr=function(t){this.Hp||!t.touches||1!=t.touches.length||this.Th.getScrollTop()>0||this.Yp(t.touches[0].clientY)},e.Yp=function(t){this.Hp=!0,this.Gp=t,this.si.addEventListener("touchmove",this.Fp,!0),this.si.addEventListener("touchend",this.Bp,!0),this.si.addEventListener("touchcancel",this.qp,!0)},e.Wp=function(){this.Hp=!1,this.Gp=0,this.si.removeEventListener("touchmove",this.Fp,!0),this.si.removeEventListener("touchend",this.Bp,!0),this.si.removeEventListener("touchcancel",this.qp,!0)},e.sr=function(t){if(this.Hp){var e=t.touches[0].clientY-this.Gp;e>0&&t.preventDefault(),0!=e&&this.Wp()}},e.er=function(t){this.Wp()},e.$p=function(t){this.Wp()},t}(),Ih=["amp-ad","amp-embed","amp-video"],kh="extensions",Dh="0.1",Nh="latest",Bh="__AMP_EXT_LDR",Vh=function(){function t(t){this.win=t,this.mf=qn(t),this.wl={},this.Al=null,this.xl=null,this.El=null}var e=t.prototype;return e.registerExtension=function(t,e,n,i,r){var o,s=n?this.wl[Fh(t,Nh)]:null,a=this.Pl(t,e,null===(o=null==s?void 0:s.auto)||void 0===o||o);if(a.latest=n,!a.loaded){n&&(this.wl[Fh(t,Nh)]=a);try{var u,h;this.Al=t,this.xl=e,this.El=n,i(r,r._),a.loaded=!0,null===(u=a.resolve)||void 0===u||u.call(a,a.extension),null==s||null===(h=s.resolve)||void 0===h||h.call(s,a.extension)}catch(t){var c,l;throw a.error=t,null===(c=a.reject)||void 0===c||c.call(a,t),null==s||null===(l=s.reject)||void 0===l||l.call(s,t),t}finally{this.Al=null,this.xl=null,this.El=null}}},e.waitForExtension=function(t,e){var n=this.Tl(this.Pl(t,e));return ni(this.win).timeoutPromise(16e3,n).catch((function(e){if(!e.message.includes("timeout"))throw e;return Wt().error(kh,"Waited over 16s to load extension ".concat(t,".")),n}))},e.preloadExtension=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dh;"amp-embed"==t&&(t="amp-ad");var n=this.Pl(t,e);return this.Ol(t,e,n),this.Tl(n)},e.installExtensionForDoc=function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dh,r=t.getRootNode(),o=r[Bh];return o||(o=r[Bh]=w()),o[e]?o[e]:(t.declareExtension(e,i),ps(t.win,e),o[e]=this.preloadExtension(e,i).then((function(){return n.installExtensionInDoc(t,e,i)})))},e.reloadExtension=function(t,e,n){var i=dn(this.win,t,e,n,!1),r=this.wl[Fh(t,e)];return r&&(Jt(!r.loaded&&!r.error),r.scriptPresent=!1),i.forEach((function(e){return e.setAttribute("i-amphtml-loaded-new-version",t)})),this.preloadExtension(t,e)},e.importUnwrapped=function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dh,r=dn(t,e,i,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),o=r.length>0?r[0]:null;return o?n=o.__AMP_SCR_LOADED:(n=(o=fn(this.win,e,i)).__AMP_SCR_LOADED=new Promise((function(t,e){o.onload=t,o.onerror=e})),t.document.head.appendChild(o)),n},e.loadElementClass=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dh;return this.preloadExtension(t,e).then((function(e){return Jt(e.elements[t]).implementationClass}))},e.addElement=function(t,e,n){var i=this;this.Il(t).extension.elements[t]={implementationClass:e,css:n},this.addDocFactory((function(r){i.Rl(r,t,e,n)}))},e.addTemplate=function(t,e){this.addDocFactory((function(n){!function(t,e,n){yn(t,"templates").Ra(e,n)}(n,t,e)}))},e.Rl=function(t,e,n,i){var r=this;i?Yr(t,i,(function(){r.Sl(t.win,e,n)}),!1,e):this.Sl(t.win,e,n)},e.Sl=function(t,e,n){(function(t,e,n){var i=function(t,e){if(e.requiresShadowDom()&&!t.Element.prototype.attachShadow)return Yn(t).importUnwrapped(t,"amp-shadow-dom-polyfill")}(t,n);i?i.then((function(){return fs(t,e,n)})):fs(t,e,n)})(t,e,n),pn(t,e,jh)},e.addService=function(t,e){this.Il(t).extension.services.push({serviceName:t,serviceClass:e}),this.addDocFactory((function(n){vn(n,t,e,!0)}))},e.addDocFactory=function(t,e){var n=this.Il(e);if(n.docFactories.push(t),this.Al&&this.mf.isSingleDoc()){var i=this.mf.getAmpDoc(this.win.document),r=this.Al,o=this.xl,s=this.El||!1;(i.declaresExtension(r,o)||s&&i.declaresExtension(r,Nh)||n.auto)&&t(i)}},e.preinstallEmbed=function(t,e){var n=this.win,i=t.win;!function(t,e){vs(t,e,"amp-img"),vs(t,e,"amp-pixel")}(n,i),Uh(i),e.forEach((function(e){var n=e.extensionId,r=e.extensionVersion;t.declareExtension(n,r),Ih.includes(n)||ps(i,n)}))},e.installExtensionsInDoc=function(t,e){var n=this;return Promise.all(e.map((function(e){var i=e.extensionId,r=e.extensionVersion;return n.installExtensionInDoc(t,i,r)})))},e.installExtensionInDoc=function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dh;return t.declareExtension(e,i),this.Tl(this.Pl(e,i)).then((function(){n.Pl(e,i).docFactories.forEach((function(n){try{n(t)}catch(t){d("Doc factory failed: ",t,e)}}))}))},e.Pl=function(t,e,n){var i=Fh(t,e),r=this.wl[i];return r||(r={version:e,latest:e==Nh,extension:{elements:{},services:[]},auto:n||!1,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},this.wl[i]=r),r},e.Il=function(t){return this.Al||Kt().error(kh,"unknown extension for ",t),this.Pl(this.Al||"_UNKNOWN_",this.xl||"")},e.Tl=function(t){if(!t.promise)if(t.loaded)t.promise=Promise.resolve(t.extension);else if(t.error)t.promise=Promise.reject(t.error);else{var e=new h;t.promise=e.promise,t.resolve=e.resolve,t.reject=e.reject}return t.promise},e.Ol=function(t,e,n){if(this._l(t,e,n)){var i=fn(this.win,t,e);this.win.document.head.appendChild(i),n.scriptPresent=!0}},e._l=function(t,e,n){if(n.loaded||n.error)return!1;if(void 0===n.scriptPresent){var i=dn(this.win,t,e,n.latest);n.scriptPresent=i.length>0}return!n.scriptPresent},t}();function Uh(t){Ih.forEach((function(e){ps(t,e)}))}function jh(){return{}}function Fh(t,e){return"".concat(t,":").concat(e)}var qh,Hh="-shadowcsshost",zh=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Gh=(new RegExp("("+Hh+zh,"gim"),new RegExp("(-shadowcsscontext"+zh,"gim"),new RegExp(Hh,"gim"),new RegExp("-shadowcsscontext","gim"),"html{overflow-x:hidden!important}html.i-amphtml-fie{height:100%!important;width:100%!important}html:not([amp4ads]),html:not([amp4ads]) body{height:auto!important}html:not([amp4ads]) body{margin:0!important}body{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}html.i-amphtml-singledoc.i-amphtml-embedded{-ms-touch-action:pan-y pinch-zoom;touch-action:pan-y pinch-zoom}html.i-amphtml-fie>body,html.i-amphtml-singledoc>body{overflow:visible!important}html.i-amphtml-fie:not(.i-amphtml-inabox)>body,html.i-amphtml-singledoc:not(.i-amphtml-inabox)>body{position:relative!important}html.i-amphtml-ios-embed-legacy>body{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important}html.i-amphtml-ios-embed{overflow-y:auto!important;position:static}#i-amphtml-wrapper{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;margin:0!important;display:block!important}html.i-amphtml-ios-embed.i-amphtml-ios-overscroll,html.i-amphtml-ios-embed.i-amphtml-ios-overscroll>#i-amphtml-wrapper{-webkit-overflow-scrolling:touch!important}#i-amphtml-wrapper>body{position:relative!important;border-top:1px solid transparent!important}#i-amphtml-wrapper+body{visibility:visible}#i-amphtml-wrapper+body .i-amphtml-lightbox-element,#i-amphtml-wrapper+body[i-amphtml-lightbox]{visibility:hidden}#i-amphtml-wrapper+body[i-amphtml-lightbox] .i-amphtml-lightbox-element{visibility:visible}#i-amphtml-wrapper.i-amphtml-scroll-disabled,.i-amphtml-scroll-disabled{overflow-x:hidden!important;overflow-y:hidden!important}amp-instagram{padding:54px 0px 0px!important;background-color:#fff}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide]{display:none}[subscriptions-dialog],body:not(.i-amphtml-subs-ready) [subscriptions-action],body:not(.i-amphtml-subs-ready) [subscriptions-section]{display:none!important}amp-experiment,amp-live-list>[update]{display:none}amp-list[resizable-children]>.i-amphtml-loading-container.amp-hidden{display:none!important}amp-list [fetch-error],amp-list[load-more] [load-more-button],amp-list[load-more] [load-more-end],amp-list[load-more] [load-more-failed],amp-list[load-more] [load-more-loading]{display:none}amp-list[diffable] div[role=list]{display:block}amp-story-page,amp-story[standalone]{min-height:1px!important;display:block!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;width:100%!important}amp-story[standalone]{background-color:#000!important;position:relative!important}amp-story-page{background-color:#757575}amp-story .amp-active>div,amp-story .i-amphtml-loader-background{display:none!important}amp-story-page:not(:first-of-type):not([distance]):not([active]){transform:translateY(1000vh)!important}amp-autocomplete{position:relative!important;display:inline-block!important}amp-autocomplete>input,amp-autocomplete>textarea{padding:0.5rem;border:1px solid rgba(0,0,0,.33)}.i-amphtml-autocomplete-results,amp-autocomplete>input,amp-autocomplete>textarea{font-size:1rem;line-height:1.5rem}[amp-fx^=fly-in]{visibility:hidden}amp-script[nodom],amp-script[sandboxed]{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}\n/*# sourceURL=/css/ampdoc.css*/"),Wh="[hidden]{display:none!important}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important;pointer-events:none}[layout=nodisplay]:not(.i-amphtml-element){display:none!important}.i-amphtml-layout-fixed,[layout=fixed][width][height]:not(.i-amphtml-layout-fixed){display:inline-block;position:relative}.i-amphtml-layout-responsive,[layout=responsive][width][height]:not(.i-amphtml-layout-responsive),[width][height][heights]:not([layout]):not(.i-amphtml-layout-responsive),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic,[layout=intrinsic][width][height]:not(.i-amphtml-layout-intrinsic){display:inline-block;position:relative;max-width:100%}.i-amphtml-layout-intrinsic .i-amphtml-sizer{max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,[layout=container],[layout=fixed-height][height]:not(.i-amphtml-layout-fixed-height){display:block;position:relative}.i-amphtml-layout-fill,.i-amphtml-layout-fill.i-amphtml-notbuilt,[layout=fill]:not(.i-amphtml-layout-fill),body noscript>*{display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}body noscript>*{position:absolute!important;width:100%;height:100%;z-index:2}body noscript{display:inline!important}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-ms-flex:1 1 auto;flex:1 1 auto}.i-amphtml-layout-fluid{position:relative}.i-amphtml-layout-size-defined{overflow:hidden!important}.i-amphtml-layout-awaiting-size{position:absolute!important;top:auto!important;bottom:auto!important}i-amphtml-sizer{display:block!important}@supports (aspect-ratio:1/1){i-amphtml-sizer.i-amphtml-disable-ar{display:none!important}}.i-amphtml-blurry-placeholder,.i-amphtml-fill-content{display:block;height:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%;width:0;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-replaced-content,.i-amphtml-screen-reader{padding:0!important;border:none!important}.i-amphtml-screen-reader{position:fixed!important;top:0px!important;left:0px!important;width:4px!important;height:4px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:8px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:12px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:16px!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[layout]:not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*,[layout]:not([layout=container]):not(.i-amphtml-element)>*,[width][height][heights]:not([layout]):not(.i-amphtml-element)>*,[width][height][sizes]:not([layout]):not(.i-amphtml-element)>*{display:none}amp-img:not(.i-amphtml-element)[i-amphtml-ssr]>img.i-amphtml-fill-content{display:block}.i-amphtml-notbuilt:not(.i-amphtml-layout-container),[layout]:not([layout=container]):not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){color:transparent!important;line-height:0!important}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder],[width][height][heights]:not([layout]):not(.i-amphtml-element)>[placeholder],[width][height][sizes]:not([layout]):not(.i-amphtml-element)>[placeholder]{display:block;line-height:normal}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback],.i-amphtml-layout-container>[placeholder].amp-hidden,.i-amphtml-layout-container>[placeholder].hidden{display:none}.i-amphtml-layout-size-defined>[fallback],.i-amphtml-layout-size-defined>[placeholder]{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1}amp-img[i-amphtml-ssr]:not(.i-amphtml-element)>[placeholder]{z-index:auto}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none!important}.i-amphtml-element-error{background:red!important;color:#fff!important;position:relative!important}.i-amphtml-element-error:before{content:attr(error-message)}i-amp-scroll-container,i-amphtml-scroll-container{position:absolute;top:0;left:0;right:0;bottom:0;display:block}i-amp-scroll-container.amp-active,i-amphtml-scroll-container.amp-active{overflow:auto;-webkit-overflow-scrolling:touch}.i-amphtml-loading-container{display:block!important;pointer-events:none;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden;display:initial;line-height:normal}.i-amphtml-layout-size-defined>[overflow]{position:absolute}.i-amphtml-element>[overflow].amp-visible{visibility:visible}template{display:none!important}.amp-border-box,.amp-border-box *,.amp-border-box :after,.amp-border-box :before{box-sizing:border-box}amp-pixel{display:none!important}amp-analytics,amp-auto-ads,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-story{visibility:hidden!important}html.i-amphtml-fie>amp-analytics{position:initial!important}[visible-when-invalid]:not(.visible),form [submit-error],form [submit-success],form [submitting]{display:none}amp-accordion{display:block!important}@media (min-width:1px){:where(amp-accordion>section)>:first-child{margin:0;background-color:#efefef;padding-right:20px;border:1px solid #dfdfdf}:where(amp-accordion>section)>:last-child{margin:0}}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}amp-accordion,amp-accordion>section{margin:0}amp-accordion:not(.i-amphtml-built)>section>:last-child{display:none!important}amp-accordion:not(.i-amphtml-built)>section[expanded]>:last-child{display:block!important}\n/*# sourceURL=/css/ampshared.css*/";zt=qt,Kt(),Wt(),qh=function(t,e,n){Ro(e,n),e&&t&&Q(e.message)&&!(e.message.indexOf(X)>=0)&&function(t,e){if(qn(e).isSingleDoc()){var n={errorName:t.name,errorMessage:t.message};!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];(function(t){return Dn(t,"amp-analytics-instrumentation","amp-analytics")})(t).then((function(r){r&&r.triggerEventForTarget(t,e,n,i)}))}(function(t){var e=qn(t).getSingleDoc().getRootNode();return e.documentElement||e.body||e}(e),"user-error",n,!1)}}(e,t)}.bind(null,self),self.__AMP_REPORT_ERROR=qh;var Yh,Kh="runtime";function Jh(t,e){if(t.__AMP_TAG)return u();t.__AMP_TAG=!0;var n=t.AMP||[];pn(t,"extensions",Vh);var i=Yn(t);Ph(t),Uh(t),t.AMP={win:t,_:t.AMP?t.AMP._:void 0},t.AMP.config={urls:{thirdParty:At,thirdPartyFrameHost:Et,thirdPartyFrameRegex:St,cdn:Tt,cdnProxyRegex:bt,localhostRegex:Pt,errorReporting:Ot,betaErrorReporting:xt,localDev:Rt,trustedViewerHosts:Mt,geoApi:Ct}},t.AMP.addGlobalConsentListener=function(){},t.AMP.addGranularConsentListener=function(){},t.AMP.BaseElement=$o,t.AMP.registerElement=i.addElement.bind(i),t.AMP.registerTemplate=i.addTemplate.bind(i),t.AMP.registerServiceForDoc=i.addService.bind(i),t.AMP.isExperimentOn=Ir.bind(null,t),t.AMP.toggleExperiment=kr.bind(null,t),t.AMP.setLogLevel=Bt.bind(null),t.AMP.setTickFunction=function(t,e){};var r=e(t,i);function o(e){!function(t,e,n){"function"==typeof e||"high"==e.p?u().then(n):(n.displayName=e.n,zo(t.document,n))}(t,e,(function(){r.then((function(){"function"==typeof e?e(t.AMP,t.AMP.Ml):i.registerExtension(e.n,e.ev,e.l,e.f,t.AMP)}))}))}for(var s=0;s<n.length;s++){var a=n[s];if(Xh(t,a))n.splice(s--,1);else if("function"==typeof a||"high"==a.p){try{o(a)}catch(t){Kt().error(Kh,"Extension failed: ",t,a.n)}n.splice(s--,1)}}!function(t,e){t.document.body&&!function(t){return Wr(t).length>0}(t)?ni(t).delay(e,1):e()}(t,(function(){t.AMP.push=function(e){Xh(t,e)||o(e)};for(var e=0;e<n.length;e++){var i=n[e];if(!Xh(t,i))try{o(i)}catch(t){Kt().error(Kh,"Extension failed: ",t,i.n)}}n.length=0})),t.AMP.push||(t.AMP.push=n.push.bind(n)),Qn(t).isIos()&&Si(t.document.documentElement,"cursor","pointer");var h=Yn(t);return qe(t)&&h.preloadExtension("amp-resize-observer-polyfill"),Ne(t)&&h.preloadExtension("amp-intersection-observer-polyfill"),r}function Xh(t,e){return"function"!=typeof e&&(!!e.m||"2410292120000"!=e.v&&(Yn(t).reloadExtension(e.n,e.ev,e.l),!0))}self.location&&(self.location.originalHash=self.location.hash);try{!function(t){t.onerror=_o,t.addEventListener("unhandledrejection",(function(t){!t.reason||t.reason.message!==To&&t.reason.message!==Po&&"AbortError"!==t.reason.message?Ro(t.reason||new Error("rejected promise "+t)):t.preventDefault()}))}(self),function(t){pn(t,"ampdoc",(function(){return new Bi(t,!0,void 0)}))}(self),Yh=qn(self)}catch(t){throw Xr(self.document),t}zo(self.document,(function(){var t=Yh.getAmpDoc(self.document);vu(self),pn(self,"performance",Ch);var e=$n(self);(function(t){on(t.document,(function(){return function(t){var e=1500,n=t.performance;n&&n.timing&&n.timing.navigationStart&&(e=Date.now()-n.timing.navigationStart);var i=Math.max(1,2100-e);t.setTimeout((function(){_h(t);var e=t.document.styleSheets;if(e){for(var n=t.document.querySelectorAll('link[rel~="stylesheet"]:not([href^="https://translate.googleapis.com/translate_static/css/"]):not([href^="'.concat(ae(Tt),'"])')),r=[],o=0;o<n.length;o++){for(var s=n[o],a=!1,u=0;u<e.length;u++)if(e[u].ownerNode==s){a=!0;break}a||r.push(s)}for(var h=function(e){var n=r[e],o=n.media||"all";n.media="print",n.onload=function(){n.media=o,_h(t)},n.setAttribute("i-amphtml-timeout",i),n.parentNode.insertBefore(n,n.nextSibling)},c=0;c<r.length;c++)h(c)}}),i)}(t)}))})(self),e.tick("is"),Yr(t,Gh+Wh,(function(){return function(t,e){zo(self.document,(function(){Ph(self),Oh(t),e.coreServicesAvailable(),function(t){var e=new h,n=e.promise,i=e.resolve;tu=ni(t).timeoutPromise(8e3,n,"TrackImpressionPromise timeout").catch((function(t){Kt().warn("IMPRESSION",t)}));var r=si(t.document.documentElement),o=r.isTrustedViewer(),s=r.getReferrerUrl().then((function(t){return function(t){var e=oo(t);return"https:"==e.protocol&&nu.some((function(t){return t.test(e.hostname)}))}(t)}));Promise.all([o,s]).then((function(e){var n=e[0],r=e[1];if(n||r||Ir(t,"alp")){var o=function(t){var e=si(t.document.documentElement);return e.getParam("replaceUrl")?e.hasCapability("replaceUrl")?e.sendMessageAwaitResponse("getReplaceUrl",void 0).then((function(t){t&&"object"==p(t)?e.replaceUrl(t.replaceUrl||null):Kt().warn("IMPRESSION","get invalid replaceUrl response")}),(function(t){Kt().warn("IMPRESSION","Error request replaceUrl from viewer",t)})):(e.replaceUrl(e.getParam("replaceUrl")||null),u()):u()}(t),s=function(t){var e=Fn(t.document.documentElement),n=si(e).getParam("click");return n?0!=n.indexOf("https://")?(Wt().warn("IMPRESSION","click fragment param should start with https://. Found ",n),u()):(Li.getLocation(t).hash&&(Li.getLocation(t).hash=""),e.whenFirstVisible().then((function(){return function(t,e){return hi(t).fetchJson(e,{credentials:"include"}).then((function(t){return 204==t.status?null:t.json()}))}(t,n)})).then((function(e){!function(t,e){if(e){var n=e.location,i=e.tracking_url||n;if(i&&!po(i)&&((new Image).src=i),n){if(!t.history.replaceState)return;var r=si(t.document.documentElement),o=ho(Li.getLocation(t).href,vt(oo(n).search));t.history.replaceState(null,"",o),r.maybeUpdateFragmentForCct()}}}(t,e)})).catch((function(t){Wt().warn("IMPRESSION","Error on request clickUrl: ",t)}))):u()}(t);Promise.all([o,s]).then((function(){i()}),(function(){}))}else i()}))}(self)})),zo(self.document,(function(){Jh(self,(function(t){return function(t){var e=t.document.documentElement,n=qn(t).getSingleDoc();t.AMP.ampdoc=n;var i=si(e);t.AMP.viewer=i,Lt().development&&(t.AMP.toggleRuntime=i.toggleRuntime.bind(i),t.AMP.resources=ti(e));var r=ui(e);t.AMP.viewport={},t.AMP.viewport.getScrollLeft=r.getScrollLeft.bind(r),t.AMP.viewport.getScrollWidth=r.getScrollWidth.bind(r),t.AMP.viewport.getWidth=r.getWidth.bind(r)}(t),(e=t).AMP.installAmpdocServices=Oh.bind(null),e.AMP.combinedCss=Gh+Wh,Ae(t.document).then((function(){ms(t.AMP.ampdoc)}));var e}))})),zo(self.document,(function(){!function(t){!function(t){gs(t,bs,As)}(t),function(t){gs(t,Ps,Os)}(t),function(t){gs(t,"amp-layout",Es)}(t)}(self)})),zo(self.document,(function(){ms(t),un(self.document).then((function(){return hs()}))})),zo(self.document,(function(){(function(t){var e=t.document.documentElement;"0"==si(e).getParam("p2r")&&Qn(t).isChrome()&&new Lh(t.document,ui(e))})(self),function(t){var e=t.win;Cs(e.document)&&t.isSingleDoc()&&!e.document.documentElement.hasAttribute("data-amp-auto-lightbox-disable")&&Go(t,(function(){xh(t).then((function(n){n||Yn(e).installExtensionForDoc(t,"amp-auto-lightbox")}))}),10)}(t),function(t){var e=t.win;Cs(e.document)&&Qn(t.win).isStandalone()&&Go(t,(function(){Yn(e).installExtensionForDoc(t,"amp-standalone").then((function(){return kn(t.getBody(),"standalone","amp-standalone")})).then((function(t){return t.initialize()}))}),10)}(t),function(t){var e=t.location.href;if(!e.startsWith("about:")){var n=!1,i=gt(t);kt(t,i)&&(n="0"!==i.validate),n&&function(t,e){var n=t.createElement("script");if(self.trustedTypes&&self.trustedTypes.createPolicy){var i=self.trustedTypes.createPolicy("validator-integration#loadScript",{createScriptURL:function(t){return"https://cdn.ampproject.org/v0/validator_wasm.js"===t?t:""}});n.src=i.createScriptURL(e)}else n.src=e;_e(t,n);var r=Hr(n).then((function(){t.head.removeChild(n)}),(function(){}));return t.head.appendChild(n),r}(t.document,"".concat(Tt,"/v0/validator_wasm.js")).then((function(){amp.validator.validateUrlAndLog(e,t.document)}))}}(self),function(t){Jt(t.defaultView);var e=t.defaultView;Ae(t).then((function(){return function(t){var e=Wr(t).map((function(e){var n=function(t,e){return Rn(t,e)}(t,e).then((function(t){return t&&function(t){return"function"==typeof t.whenReady}(t)?t.whenReady().then((function(){return t})):t}));return ni(t).timeoutPromise(3e3,n,"Render timeout waiting for service ".concat(e," to be ready."))}));return Promise.all(e)}(e)})).catch((function(t){return d(t),[]})).then((function(n){Jr=!0,t.body.getBoundingClientRect(),$r(t),Tn(t).signals().signal(gr),n.length>0&&ti(t.documentElement).schedulePass(1,!0);try{var i=$n(e);i.tick("mbv"),i.flush()}catch(t){}}))}(self.document),function(t){un(t).then((function(){var e=t.defaultView;if(e){var n=Zn(e),i=Wn(t.documentElement),r=Fn(t);n.url(r,i.sourceUrl),n.url(r,i.canonicalUrl)}}))}(self.document)}),!0),zo(self.document,(function(){e.tick("e_is"),ti(t).ampInitComplete(),e.flush()}))}(t,e)}),!0,"amp-runtime")})),self.console&&(console.info||console.log).call(console,"Powered by AMP ⚡ HTML – Version ".concat("2410292120000"),self.location.href),self.document.documentElement.setAttribute("amp-version","2410292120000")}()}catch(t){throw setTimeout((function(){var t=document.body.style;t.opacity=1,t.visibility="visible",t.animation="none",t.WebkitAnimation="none;"}),1e3),t}
1
+ self.AMP_CONFIG={v:"012410292120000",type:"production","allow-doc-opt-in":["amp-next-page"],"allow-url-opt-in":[],canary:0,a4aProfilingRate:.01,doubleclickSraExp:.01,doubleclickSraReportExcludedBlock:.1,flexAdSlots:.05,"flexible-bitrate":.1,"ios-fixed-no-transfer":0,"story-ad-placements":.01,"story-disable-animations-first-page":1,"story-load-inactive-outside-viewport":1,"amp-sticky-ad-to-amp-ad-v4":0,"story-video-cache-apply-audio":0,"amp-story-subscriptions":1,"interaction-to-next-paint":1},self.AMP_EXP={"flexible-bitrate":.1,"amp-story-first-page-max-bitrate":.3,"story-disable-animations-first-page":1,"story-load-first-page-only":1,"story-load-inactive-outside-viewport":1,"story-ad-page-outlink":.02,"amp-geo-ssr":1,"story-remote-localization":1,"amp-story-subscriptions":1,"attribution-reporting":.04},self,self.AMP=self.AMP||[];try{AMP._=AMP._||{},self.AMP&&!Array.isArray(self.AMP)||function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function e(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}var n,i=function(){function t(){this.Rt=new r}return t.prototype.abort=function(){if(!this.Rt.Tt&&(this.Rt.Tt=!0,this.Rt.Mt)){var t={type:"abort",bubbles:!1,cancelable:!1,target:this.Rt,currentTarget:this.Rt};this.Rt.Mt(t)}},e(t,[{key:"signal",get:function(){return this.Rt}}]),t}(),r=function(){function t(){this.Tt=!1,this.Mt=null}return e(t,[{key:"aborted",get:function(){return this.Tt}},{key:"onabort",get:function(){return this.Mt},set:function(t){this.Mt=t}}]),t}();function o(t,e){for(var n=e||0,i=this.length,r=n>=0?n:Math.max(i+n,0);r<i;r++){var o=this[r];if(o===t||t!=t&&o!=o)return!0}return!1}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}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 u(){return n||(n=Promise.resolve(void 0))}var h=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))};function c(t){return new Promise((function(e){e(t())}))}function l(t){var e=Object.getOwnPropertyDescriptor(t,"message");if(null!=e&&e.writable)return t;var n=t.message,i=t.stack,r=new Error(n);for(var o in t)r[o]=t[o];return r.stack=i,r}function f(t){for(var e,n=null,i="",r=a(arguments,!0);!(e=r()).done;){var o=e.value;o instanceof Error&&!n?n=l(o):(i&&(i+=" "),i+=o)}return n?i&&(n.message=i+": "+n.message):n=new Error(i),n}function d(t){var e=f.apply(null,arguments);setTimeout((function(){throw function(t){var e,n;null===(e=(n=self).__AMP_REPORT_ERROR)||void 0===e||e.call(n,t)}(e),e}))}function m(t){var e=f.apply(null,arguments);return e.expected=!0,e}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 v=Object.prototype,g=v.hasOwnProperty,y=v.toString;function b(t){return"[object Object]"===y.call(t)}function w(t){var e=Object.create(null);return t&&Object.assign(e,t),e}function A(t,e){return g.call(t,e)}function E(t){var e=w();for(var n in t)if(A(t,n)){var i=t[n];e[n]=b(i)?E(i):i}return e}var S=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,T=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],P={childList:!0,subtree:!0};function O(t,e){if(!S.test(e)||T.includes(e))throw new t('invalid custom element name "'.concat(e,'"'))}var x=function(){function t(t,e){this.t=t,this.Pt=e,this.Ut=w()}var e=t.prototype;return e.define=function(t,e,n){this.Pt.define(t,e,n);var i=this.Ut,r=i[t];r&&(r.resolve(),delete i[t])},e.get=function(t){var e=this.Pt.getByName(t);if(e)return e.ctor},e.whenDefined=function(t){var e=this.t;if(e.Promise,O(e.SyntaxError,t),this.Pt.getByName(t))return u();var n=this.Ut,i=n[t];return i||(i=new h,n[t]=i),i.promise},e.upgrade=function(t){this.Pt.upgrade(t)},t}(),R=function(){function t(t){this.t=t,this.Lt=w(),this.Nt="",this._t=null,this.Ht=null,this.Dt=[t.document]}var e=t.prototype;return e.current=function(){var t=this._t;return this._t=null,t},e.getByName=function(t){var e=this.Lt[t];if(e)return e},e.getByConstructor=function(t){var e=this.Lt;for(var n in e){var i=e[n];if(i.ctor===t)return i}},e.define=function(t,e,n){var i=this.t,r=i.Error,o=i.SyntaxError;if(n)throw new r("Extending native custom elements is not supported");if(O(o,t),this.getByName(t)||this.getByConstructor(e))throw new r('duplicate definition "'.concat(t,'"'));this.Lt[t]={name:t,ctor:e},this.Bt(t);for(var s,u=a(this.Dt,!0);!(s=u()).done;){var h=s.value;this.upgrade(h,t)}},e.upgrade=function(t,e){for(var n,i=!!e,r=e||this.Nt,o=a(this.Ft(t,r),!0);!(n=o()).done;){var s=n.value;i?this.Jt(s):this.upgradeSelf(s)}},e.upgradeSelf=function(t){var e=this.getByName(t.localName);e&&this.Gt(t,e)},e.Ft=function(t,e){return e&&t.querySelectorAll?t.querySelectorAll(e):[]},e.Gt=function(t,e){var n=e.ctor;if(!(t instanceof n)){this._t=t;try{if(new n!==t)throw new this.t.Error("Constructor illegally returned a different instance.")}catch(t){d(t)}}},e.Jt=function(t){var e=this.getByName(t.localName);if(e&&(this.Gt(t,e),t.connectedCallback))try{t.connectedCallback()}catch(t){d(t)}},e.Wt=function(t){if(t.disconnectedCallback)try{t.disconnectedCallback()}catch(t){d(t)}},e.Bt=function(t){var e=this;if(this.Nt)this.Nt+=",".concat(t);else{this.Nt=t;var n=new this.t.MutationObserver((function(t){t&&e.Zt(t)}));this.Ht=n;for(var i,r=a(this.Dt,!0);!(i=r()).done;){var o=i.value;n.observe(o,P)}!function(t,e){var n,i=t.Document,r=t.Element,o=t.Node,s=t.document,a=i.prototype,u=r.prototype,h=o.prototype,c=a.createElement,l=a.importNode,f=h.appendChild,d=h.cloneNode,m=h.insertBefore,p=h.removeChild,v=h.replaceChild;a.createElement=function(t){var n=e.getByName(t);return n?new n.ctor:c.apply(this,arguments)},a.importNode=function(){var t=l.apply(this,arguments);return t&&this===s&&(e.upgradeSelf(t),e.upgrade(t)),t},h.appendChild=function(){var t=f.apply(this,arguments);return e.sync(),t},h.insertBefore=function(){var t=m.apply(this,arguments);return e.sync(),t},h.removeChild=function(){var t=p.apply(this,arguments);return e.sync(),t},h.replaceChild=function(){var t=v.apply(this,arguments);return e.sync(),t},h.cloneNode=function(){var t=d.apply(this,arguments);return t.ownerDocument===s&&(e.upgradeSelf(t),e.upgrade(t)),t};var g=u,y=Object.getOwnPropertyDescriptor(g,"innerHTML");if(y||(g=Object.getPrototypeOf(t.HTMLElement.prototype),y=Object.getOwnPropertyDescriptor(g,"innerHTML")),null!==(n=y)&&void 0!==n&&n.configurable){var b=y.set;y.set=function(t){b.call(this,t),e.upgrade(this)},Object.defineProperty(g,"innerHTML",y)}}(this.t,this)}},e.observe=function(t){this.Dt.push(t),this.Ht&&this.Ht.observe(t,P)},e.sync=function(){this.Ht&&this.Zt(this.Ht.takeRecords())},e.Zt=function(t){for(var e,n=a(t,!0);!(e=n()).done;){var i=e.value;if(i){for(var r,o=i.addedNodes,s=i.removedNodes,u=a(o,!0);!(r=u()).done;){var h=r.value,c=this.Ft(h,this.Nt);this.Jt(h);for(var l,f=a(c,!0);!(l=f()).done;){var d=l.value;this.Jt(d)}}for(var m,p=a(s,!0);!(m=p()).done;){var v=m.value,g=this.Ft(v,this.Nt);this.Wt(v);for(var y,b=a(g,!0);!(y=b()).done;){var w=y.value;this.Wt(w)}}}}},t}();function M(t,e){e.prototype=Object.create(t.prototype,{constructor:{configurable:!0,writable:!0,value:e}}),C(e,t)}function C(t,e){Object.setPrototypeOf?Object.setPrototypeOf(t,e):{__proto__:{test:!0}}.test?t.__proto__=e:function(t,e){for(var n=e;null!==n&&!Object.isPrototypeOf.call(n,t);){for(var i,r=a(Object.getOwnPropertyNames(n),!0);!(i=r()).done;){var o=i.value;if(!Object.hasOwnProperty.call(t,o)){var s=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,s)}}n=Object.getPrototypeOf(n)}}(t,e)}function _(t){return t==this||this.documentElement.contains(t)}function L(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function N(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=B(t);if(e){var r=B(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function U(t){return t?Array.prototype.slice.call(t):[]}var j=Array.isArray;function F(t){return j(t)?t:[t]}function q(t,e){for(var n=[],i=0,r=0;r<t.length;r++){var o=t[r];e(o,r,t)?n.push(o):(i<r&&(t[i]=o),i++)}return i<t.length&&(t.length=i),n}function H(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1}function z(t,e){var n=t.indexOf(e);return-1!=n&&(t.splice(n,1),!0)}function G(t,e){var n=t.length-e.length;return n>=0&&t.indexOf(e,n)==n}function W(t){return"string"==typeof t}function Y(t){return 1==(null==t?void 0:t.nodeType)}function K(t){return"number"==typeof t&&isFinite(t)}var J="​​​",X="​​​​";function $(t){return Y(t)?t.tagName.toLowerCase()+(t.id?"#".concat(t.id):""):t}function Q(t){return t.indexOf(J)>=0}function Z(t){return t.replace(J,"")}function tt(t,e){var n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(e)return e;t&&-1==r.indexOf(t)&&(r+=t);for(var o=3,s=r.split("%s"),a=s.shift(),u=[a];s.length;){var h=arguments[o++],c=s.shift();a+=$(h)+c,u.push(h,c.trim())}var l=new Error(a);throw l.messageArray=q(u,(function(t){return""!==t})),null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,l),l}function et(t,e,n,i,r){return j(r)?t(n,r.concat([e])):t(n,"".concat(r||i,": %s"),e),e}function nt(t,e,n,i,r,o,s,a,u,h,c){return t}function it(t,e){return t}function rt(t,e){return t}function ot(t,e){return t}function st(t,e,n,i,r,o,s,a,u,h,c){return tt(J,t,e,n,i,r,o,s,a,u,h,c)}function at(t){return JSON.parse(t)}function ut(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):ht(unescape(encodeURIComponent(t)))}function ht(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++){var i=t.charCodeAt(n);nt(i<=255),e[n]=i}return e}function ct(t,e){var n=t.crypto;if(!(n=n||t.msCrypto)||!n.getRandomValues)return null;var i=new Uint8Array(e);return n.getRandomValues(i),i}function lt(t,e,n){var i=0,r=null;function o(o){r=null,i=t.setTimeout(s,n),e.apply(null,o)}function s(){i=0,r&&o(r)}return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];i?r=e:o(e)}}function ft(t,e,n){var i=0,r=0,o=null;function s(){i=0;var a,u=n-(t.Date.now()-r);u>0?i=t.setTimeout(s,u):(a=o,o=null,e.apply(null,a))}return function(){r=t.Date.now();for(var e=arguments.length,a=new Array(e),u=0;u<e;u++)a[u]=arguments[u];o=a,i||(i=t.setTimeout(s,n))}}var dt=["javascript:","data:","vbscript:"],mt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function pt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return e}}function vt(t){var e,n=w();if(!t)return n;for(;e=mt.exec(t);){var i=pt(e[1],e[1]),r=e[2]?pt(e[2].replace(/\+/g," "),e[2]):"";n[i]=r}return n}function gt(t){var e=(t||self).location;return vt(e.originalHash||e.hash)}var yt=function(t){return self.AMP_CONFIG?self.AMP_CONFIG[t]:null},bt=("string"==typeof yt("cdnProxyRegex")?new RegExp(yt("cdnProxyRegex")):yt("cdnProxyRegex"))||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function wt(t){if(!self.document||!self.document.head)return null;if(self.location&&bt.test(self.location.origin))return null;var e=self.document.head.querySelector('meta[name="'.concat(t,'"]'));return e&&e.getAttribute("content")||null}var At=yt("thirdPartyUrl")||"https://3p.ampproject.net",Et=yt("thirdPartyFrameHost")||"ampproject.net",St=("string"==typeof yt("thirdPartyFrameRegex")?new RegExp(yt("thirdPartyFrameRegex")):yt("thirdPartyFrameRegex"))||/^d-\d+\.ampproject\.net$/,Tt=yt("cdnUrl")||wt("runtime-host")||"https://cdn.ampproject.org",Pt=/^https?:\/\/localhost(:\d+)?$/,Ot=yt("errorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",xt=yt("betaErrorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",Rt=yt("localDev")||!1,Mt=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],Ct=yt("geoApiUrl")||wt("amp-geo-api"),_t="";function Lt(t){var e=t||self;return e.__AMP_MODE?e.__AMP_MODE:e.__AMP_MODE=function(t){return{localDev:!1,development:kt(t,gt(t)),esm:!1,test:!1,rtvVersion:It(t),ssrReady:!1}}(e)}function It(t){var e;return _t||(_t=(null===(e=t.AMP_CONFIG)||void 0===e?void 0:e.v)||"01".concat("2410292120000")),_t}function kt(t,e){var n=e||gt(t);return["1","actions","amp","amp4ads","amp4email"].includes(n.development)||!!t.AMP_DEV_MODE}var Dt=function(){},Nt=void 0;function Bt(t){Nt=t}var Vt=function(){return"01".concat("2410292120000")},Ut=function(t,e){return e.reduce((function(t,e){return"".concat(t,"&s[]=").concat(jt(e))}),"https://log.amp.dev/?v=".concat(Vt(),"&id=").concat(encodeURIComponent(t)))},jt=function(t){return encodeURIComponent(String($(t)))},Ft=function(t){return parseInt(gt(t).log,10)},qt=function(){function t(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this.win=t,this.tt=e,this.nt=this.rt(),this.it=i,this.et=null,this.ft=function(t){var e=!1,n=null,i=t;return function(){if(!e){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];n=i.apply(self,r),e=!0,i=null}return n}}((function(){t.fetch("".concat(Tt,"/rtv/").concat(Vt(),"/log-messages.simple.json")).then((function(t){return t.json()}),Dt).then((function(t){t&&(n.et=t)}))})),this.ot=this.assert.bind(this)}var e=t.prototype;return e.rt=function(){var t,e=this.win;return null!==(t=e.console)&&void 0!==t&&t.log&&0!=Ft(e)?this.ut():0},e.ut=function(t){return this.tt(Ft(t),Lt().development)},e.st=function(t,e,n){var i,r,o;if(e>(null!==(i=Nt)&&void 0!==i?i:this.nt))return!1;var s=this.win.console,a=null!==(r=(o={},L(o,1,s.error),L(o,3,s.info),L(o,2,s.warn),o)[e])&&void 0!==r?r:s.log,u=this.ct(n),h="[".concat(t,"]");return W(u[0])?u[0]=h+" "+u[0]:u.unshift(h),a.apply(s,u),!0},e.fine=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.st(t,4,n)},e.info=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.st(t,3,n)},e.warn=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.st(t,2,n)},e.error=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(!this.st(t,1,n)){var r,o,s=this.createError.apply(this,n);s.name=t||s.name,null===(r=(o=self).__AMP_REPORT_ERROR)||void 0===r||r.call(o,s)}},e.expectedError=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r,o;this.st(t,1,n)||null===(r=(o=self).__AMP_REPORT_ERROR)||void 0===r||r.call(o,this.createExpectedError.apply(this,n))},e.createError=function(t){return this.ht(f.apply(null,arguments))},e.createExpectedError=function(t){return this.ht(m.apply(null,arguments))},e.ht=function(t){return t=l(t),this.it?t.message?-1==t.message.indexOf(this.it)&&(t.message+=this.it):t.message=this.it:Q(t.message)&&(t.message=Z(t.message)),t},e.ct=function(t){return j(t[0])?this.lt(t[0]):t},e.lt=function(t){var e,n=t.shift();return Lt(this.win).development&&this.ft(),null!==(e=this.et)&&void 0!==e&&e[n]?[this.et[n]].concat(t):["More info at ".concat(Ut(n,t))]},e.assert=function(t,e,n){return j(e)?this.assert.apply(this,[t].concat(this.lt(e))):tt.apply(null,[this.it].concat(Array.prototype.slice.call(arguments)))},e.assertElement=function(t,e){return function(t,e,n){return et(t,e,Y(e),"Element expected",n)}(this.ot,t,e)},e.assertString=function(t,e){return function(t,e,n){return et(t,e,W(e),"String expected",n)}(this.ot,t,e)},e.assertNumber=function(t,e){return function(t,e,n){return et(t,e,"number"==typeof e,"Number expected",n)}(this.ot,t,e)},e.assertArray=function(t,e){return function(t,e,n){return et(t,e,j(e),"Array expected",n)}(this.ot,t,e)},e.assertBoolean=function(t,e){return function(t,e,n){return et(t,e,!!e===e,"Boolean expected",n)}(this.ot,t,e)},t}();self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Ht=self.__AMP_LOG,zt=null;function Gt(t,e){if(!zt)throw new Error("failed to call initLogConstructor");return new zt(self,t,e)}function Wt(t){return Ht.user||(Ht.user=Yt(J)),function(t,e){return e&&e.ownerDocument.defaultView!=t}(Ht.user.win,t)?Ht.userForEmbed||(Ht.userForEmbed=Yt(X)):Ht.user}function Yt(t){return Gt((function(t,e){return e||t>=1?4:2}),t)}function Kt(){return Ht.dev||(Ht.dev=Gt((function(t){return t>=3?4:t>=2?3:0})))}function Jt(t,e,n,i,r,o,s,a,u,h,c){return t}function Xt(t,e,n,i,r,o,s,a,u,h,c){return Wt().assert(t,e,n,i,r,o,s,a,u,h,c)}var $t=["GET","POST"],Qt=function(){function t(t){this.$t=t,this.status=this.$t.status,this.statusText=this.$t.statusText,this.ok=this.status>=200&&this.status<300,this.headers=new Zt(t),this.bodyUsed=!1,this.body=null,this.url=t.responseURL}var e=t.prototype;return e.clone=function(){return nt(!this.bodyUsed),new t(this.$t)},e.Xt=function(){return nt(!this.bodyUsed),this.bodyUsed=!0,Promise.resolve(this.$t.responseText)},e.text=function(){return this.Xt()},e.json=function(){return this.Xt().then(at)},e.arrayBuffer=function(){return this.Xt().then(ut)},t}(),Zt=function(){function t(t){this.$t=t}var e=t.prototype;return e.get=function(t){return this.$t.getResponseHeader(t)},e.has=function(t){return null!=this.$t.getResponseHeader(t)},t}(),te=function(t){N(n,t);var e=V(n);function n(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=w(),r=k({status:200,statusText:"OK",responseText:t?String(t):"",getResponseHeader:function(t){var e=String(t).toLowerCase();return A(i,e)?i[e]:null}},n);if(r.status=void 0===n.status?200:parseInt(n.status,10),j(n.headers))n.headers.forEach((function(t){var e=t[0],n=t[1];i[String(e).toLowerCase()]=String(n)}));else if(b(n.headers))for(var o in n.headers)i[String(o).toLowerCase()]=String(n.headers[o]);return n.statusText&&(r.statusText=String(n.statusText)),e.call(this,r)}return n}(Qt);function ee(t){return(t.ownerDocument||t).defaultView}var ne,ie=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function re(t,e,n,i,r){return r||(e?"�":i?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function oe(t){return void 0!==ne?ne:ne=function(t){try{var e=t.ownerDocument,n=e.createElement("div"),i=e.createElement("div");return n.appendChild(i),n.querySelector(":scope div")===i}catch(t){return!1}}(t)}function se(t,e){return t.replace(/^|,/g,"$&".concat(e," "))}function ae(t){return String(t).replace(ie,re)}function ue(t){nt(/^[\w-]+$/.test(t))}function he(t,e){var n=t.classList,i="i-amphtml-scoped";n.add(i);var r=se(e,".".concat(i)),o=t.querySelectorAll(r);return n.remove(i),o}function ce(t,e){if(oe(t))return t.querySelector(se(e,":scope"));var n=he(t,e)[0];return void 0===n?null:n}function le(t,e){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!n&&n.call(t,e)}function fe(t,e,n){var i;for(i=t;i&&i!==n;i=i.parentElement)if(e(i))return i;return null}function de(t,e){return t.closest?t.closest(e):fe(t,(function(t){return le(t,e)}))}function me(t,e){for(var n=t.lastElementChild;n;n=n.previousElementSibling)if(e(n))return n;return null}function pe(t,e){return ue(e),ce(t,"> [".concat(e,"]"))}function ve(t){return W(e=t)?n=e:Y(e)&&(n=e.tagName),!(!n||!n.toLowerCase().startsWith("i-"))||t.nodeType===Node.ELEMENT_NODE&&(it(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"));var e,n}var ge,ye={bubbles:!0,cancelable:!0};function be(t,e,n){if(e(t))n();else{var i=ee(t);if(i.MutationObserver){var r=new i.MutationObserver((function(){e(t)&&(r.disconnect(),n())}));r.observe(t,{childList:!0})}else var o=i.setInterval((function(){e(t)&&(i.clearInterval(o),n())}),5)}}function we(t,e){be(t.documentElement,(function(){return!!t.body}),e)}function Ae(t){return new Promise((function(e){return we(t,e)}))}function Ee(t){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t)}function Se(t){var e=t.isConnected;if(void 0!==e)return e;for(var n=t;(n=Te(n)).host;)n=n.host;return n.nodeType===Node.DOCUMENT_NODE}function Te(t){if(Node.prototype.getRootNode)return t.getRootNode();var e,n;for(e=t;e.parentNode&&(!(n=e)||"I-AMPHTML-SHADOW-ROOT"!=n.tagName&&(11!=n.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(n)));e=e.parentNode);return e}function Pe(t,e){var n=t;do{if(n.nextSibling)return!0}while((n=n.parentNode)&&n!=e);return!1}function Oe(t){try{t.focus()}catch(t){}}function xe(t){return t.parent&&t.parent!=t}function Re(t,e,n,i){var r=n||{};nt(t.ownerDocument);var o=i||ye,s=o.bubbles,a=o.cancelable,u=new MessageEvent(e,{data:r,bubbles:s,cancelable:a});t.dispatchEvent(u)}function Me(t,e){return e!==t&&t.contains(e)}function Ce(t){return t.hasAttribute("i-amphtml-ssr")}function _e(t,e){var n=t.head.querySelector("script[nonce]");if(n){var i=n.nonce||n.getAttribute("nonce");e.setAttribute("nonce",null!=i?i:"")}}function Le(t,e,n,i){return{left:t,top:e,width:n,height:i,bottom:e+i,right:t+n,x:t,y:e}}function Ie(t,e,n){return Le(t.left-t.width*e,t.top-t.height*n,t.width*(1+2*e),t.height*(1+2*n))}function ke(t,e,n){return 0==e&&0==n||0==t.width&&0==t.height?t:Le(t.left+e,t.top+n,t.width,t.height)}function De(){return Se(this)?ge.call(this):Le(0,0,0,0)}function Ne(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 Be=function(){function t(e,n){this.Kt=e,this.Vt=k({root:null,rootMargin:"0px 0px 0px 0px"},n),this.Qt=[],this.Yt=null,t._upgraders.push(this.on.bind(this))}var n=t.prototype;return n.disconnect=function(){this.Yt?this.Yt.disconnect():this.Qt.length=0},n.takeRecords=function(){return this.Yt?this.Yt.takeRecords():[]},n.observe=function(t){this.Yt?this.Yt.observe(t):-1==this.Qt.indexOf(t)&&this.Qt.push(t)},n.unobserve=function(t){if(this.Yt)this.Yt.unobserve(t);else{var e=this.Qt.indexOf(t);-1!=e&&this.Qt.splice(e,1)}},n.on=function(t){var e=new t(this.Kt,this.Vt);this.Yt=e;for(var n,i=a(this.Qt,!0);!(n=i()).done;){var r=n.value;e.observe(r)}this.Qt.length=0},e(t,[{key:"root",get:function(){return this.Yt?this.Yt.root:this.Vt.root||null}},{key:"rootMargin",get:function(){return this.Yt?this.Yt.rootMargin:this.Vt.rootMargin}},{key:"thresholds",get:function(){return this.Yt?this.Yt.thresholds:[].concat(this.Vt.threshold||0)}}]),t}();function Ve(t){return(t=Number(t))?t>0?1:-1:t}Be._upgraders=[];var Ue=Object.prototype.hasOwnProperty;function je(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var o in r)Ue.call(r,o)&&(n[o]=r[o])}return n}function Fe(t){return Object.keys(t).map((function(e){return t[e]}))}function qe(t){return!t.ResizeObserver||!!t.ResizeObserver._stub}var He,ze=function(){function t(e){this.Kt=e,this.Qt=[],this.Yt=null,t._upgraders.push(this.on.bind(this))}var e=t.prototype;return e.disconnect=function(){this.Yt?this.Yt.disconnect():this.Qt.length=0},e.observe=function(t){this.Yt?this.Yt.observe(t):-1==this.Qt.indexOf(t)&&this.Qt.push(t)},e.unobserve=function(t){if(this.Yt)this.Yt.unobserve(t);else{var e=this.Qt.indexOf(t);-1!=e&&this.Qt.splice(e,1)}},e.on=function(t){var e=new t(this.Kt);this.Yt=e;for(var n,i=a(this.Qt,!0);!(n=i()).done;){var r=n.value;e.observe(r)}this.Qt.length=0},t}();function Ge(t,e){var n=e>0?0|e:0;return this.substr(n,t.length)===t}ze._upgraders=[],(He=self).fetch||(Object.defineProperty(He,"fetch",{value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){var r=function(t){return void 0===t?"GET":(t=t.toUpperCase(),nt($t.includes(t)),t)}(e.method||"GET"),o=function(t,e){var n=new XMLHttpRequest;if(!("withCredentials"in n))throw Kt().createExpectedError("CORS is not supported");return n.open(t,e,!0),n}(r,t);"include"==e.credentials&&(o.withCredentials=!0),"document"!==e.responseType&&"text"!==e.responseType||(o.responseType=e.responseType),e.headers&&Object.keys(e.headers).forEach((function(t){o.setRequestHeader(t,e.headers[t])})),o.onreadystatechange=function(){if(!(o.readyState<2))return o.status<100||o.status>599?(o.onreadystatechange=null,void i(Wt().createExpectedError("Unknown HTTP status ".concat(o.status)))):void(4==o.readyState&&n(new Qt(o)))},o.onerror=function(){i(Wt().createExpectedError("Network failure"))},o.onabort=function(){i(Wt().createExpectedError("Request aborted"))},"POST"==r?o.send(e.body):o.send()}))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(He,"Response",{value:te,writable:!0,enumerable:!1,configurable:!0})),function(t){t.Math.sign||t.Object.defineProperty(t.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:Ve})}(self),function(t){t.Object.assign||t.Object.defineProperty(t.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:je})}(self),function(t){t.Object.values||t.Object.defineProperty(t.Object,"values",{configurable:!0,writable:!0,value:Fe})}(self),function(t){t.Array.prototype.includes||t.Object.defineProperty(t.Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:o})}(self),function(t){var e=t.Map,n=new e;if(n.set(0,0)!==n){var i=n.set;t.Object.defineProperty(e.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(){return i.apply(this,arguments),this}})}}(self),function(t){var e=t.WeakMap,n=new e;if(n.set({},0)!==n){var i=n.set;t.Object.defineProperty(e.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(){return i.apply(this,arguments),this}})}}(self),function(t){var e=t.Set,n=new e([1]);if(n.size<1&&(t.Set=function(t){var n=new e;if(t)for(var i=U(t),r=0;r<i.length;r++)n.add(i[r]);return n}),n.add(0)!==n){var i=n.add;t.Object.defineProperty(e.prototype,"add",{enumerable:!1,configurable:!0,writable:!0,value:function(){return i.apply(this,arguments),this}})}}(self),function(t){t.String.prototype.startsWith||t.Object.defineProperty(t.String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:Ge})}(self),self.document&&(function(t){var e=t.HTMLDocument||t.Document;e&&!e.prototype.contains&&t.Object.defineProperty(e.prototype,"contains",{enumerable:!1,configurable:!0,writable:!0,value:_})}(self),function(t){(function(t){if(!t.document)return!1;try{return 0!==t.document.createElement("div").getBoundingClientRect().top}catch(t){return!0}})(t)&&(ge=Element.prototype.getBoundingClientRect,t.Object.defineProperty(t.Element.prototype,"getBoundingClientRect",{value:De}))}(self),function(t,e){var n=t.document,i=function(t){var e=t.customElements;return!!(e&&e.define&&e.get&&e.whenDefined)}(t);if(!(!n||i&&function(t){return-1===t.HTMLElement.toString().indexOf("[native code]")}(t))){var r=!0,o=!1;if(e&&i)try{var s=t.Reflect,a=Object.create(e.prototype);Function.call.call(e,a),o=!(null==s||!s.construct)}catch(t){r=!1}o?function(t){var e=t.HTMLElement,n=t.Reflect;function i(){var t=this.constructor;return n.construct(e,[],t)}M(e,i),t.HTMLElementOrig=t.HTMLElement,t.HTMLElement=i}(t):r&&function(t){var e=t.Element,n=t.HTMLElement,i=t.document,r=i.createElement,o=new R(t),s=new x(t,o);Object.defineProperty(t,"customElements",{enumerable:!0,configurable:!0,value:s});var a=e.prototype,u=a.attachShadow,h=a.createShadowRoot;function c(){var t=this.constructor,e=o.current();if(!e){var n=o.getByConstructor(t);e=r.call(i,n.name)}return C(e,t.prototype),e}u&&(a.attachShadow=function(t){var e=u.apply(this,arguments);return o.observe(e),e},a.attachShadow.toString=function(){return u.toString()}),h&&(a.createShadowRoot=function(){var t=h.apply(this,arguments);return o.observe(t),t},a.createShadowRoot.toString=function(){return h.toString()}),M(n,c),t.HTMLElementOrig=t.HTMLElement,t.HTMLElement=c,c.call||(c.apply=t.Function.apply,c.bind=t.Function.bind,c.call=t.Function.call)}(t)}}(self,(function(){})),function(t){Ne(t)&&function(t){if(!t.IntersectionObserver)return t.IntersectionObserver=Be,void(t.IntersectionObserver._stub=Be);var e=t.IntersectionObserver;t.IntersectionObserver=function(t,e){return function(n,i){var r;return 9===(null==i||null===(r=i.root)||void 0===r?void 0:r.nodeType)?new e(n,i):new t(n,i)}}(t.IntersectionObserver,Be),t.IntersectionObserver._stub=Be,t.IntersectionObserver._native=e}(t),function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get:function(){return this.intersectionRatio>0}})}(t)}(self),function(t){qe(t)&&function(t){t.ResizeObserver||(t.ResizeObserver=ze,t.ResizeObserver._stub=ze)}(t)}(self),function(t){t.AbortController||(Object.defineProperty(t,"AbortController",{configurable:!0,enumerable:!1,writable:!0,value:i}),Object.defineProperty(t,"AbortSignal",{configurable:!0,enumerable:!1,writable:!0,value:r}))}(self));var We="cls",Ye="clstu",Ke="cls-1",Je="pc",Xe="inp",$e="building",Qe="mounting",Ze="loading",tn="complete",en="error";function nn(t){return t.readyState!=Ze&&"uninitialized"!=t.readyState}function rn(t){return t.readyState==tn}function on(t,e){sn(t,nn,e)}function sn(t,e,n){var i=e(t);i?n(t):t.addEventListener("readystatechange",(function r(){e(t)&&(i||(i=!0,n(t)),t.removeEventListener("readystatechange",r))}))}function an(t){return new Promise((function(e){on(t,e)}))}function un(t){return new Promise((function(e){sn(t,rn,e)}))}var hn=["amp-mustache"],cn=/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org(\/.*)?$/;function ln(t){if(!t)return null;var e=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),n=e?e[2]:void 0,i=e?e[3]:void 0;return n&&i?{extensionId:n,extensionVersion:i}:null}function fn(t,e,n){var i=t.document.createElement("script");i.async=!0,mn(e)?n="":i.setAttribute(hn.indexOf(e)>=0?"custom-template":"custom-element",e),i.setAttribute("data-script",e),i.setAttribute("i-amphtml-inserted",""),_e(t.document,i),i.setAttribute("crossorigin","anonymous");var r=function(t,e,n){var i=Tt,r=Lt().rtvVersion,o=n?"-"+n:"";return"".concat(i,"/rtv/").concat(r,"/v0/").concat(e).concat(o).concat(".js")}(t.location,e,n),o={createScriptURL:function(t){return cn.test(t)||"fonts.googleapis.com"===new URL(t).host?t:""}};return self.trustedTypes&&self.trustedTypes.createPolicy&&(o=self.trustedTypes.createPolicy("extension-script#createExtensionScript",o)),i.src=o.createScriptURL(r),i}function dn(t,e,n,i){for(var r=":not([i-amphtml-loaded-new-version])"+(arguments.length>4&&void 0!==arguments[4]&&!arguments[4]?":not([i-amphtml-inserted])":""),o=t.document.head.querySelectorAll('script[src*="/'.concat(e,'-"]').concat(r)),s=[],a=0;a<o.length;a++){var u=o[a],h=ln(u.src);if(h){var c=h.extensionId,l=h.extensionVersion;c==e&&(mn(e)||l==n||"latest"==l&&i)&&s.push(u)}}return s}function mn(t){return t.startsWith("_")}function pn(t,e,n,i){xn(t=En(t),t,e,n),i&&On(t,e)}function vn(t,e,n,i){var r=Tn(t),o=Pn(r);xn(o,r,e,n),i&&On(o,e)}function gn(t,e){return On(t=En(t),e)}function yn(t,e){return On(Pn(Tn(t)),e)}function bn(t,e){var n=Pn(Tn(t));return In(n,e)?On(n,e):null}function wn(t,e){return Rn(Pn(t),e)}function An(t,e){return Mn(Pn(t),e)}function En(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function Sn(t,e){var n=(t.ownerDocument||t).defaultView,i=e||En(n);if(n&&n!=i&&En(n)==i)try{return n.frameElement}catch(t){}return null}function Tn(t){return t.nodeType?function(t){return gn(t,"ampdoc")}(ee(t)).getAmpDoc(t):t}function Pn(t){var e=Tn(t);return e.isSingleDoc()?e.win:e}function On(t,e){Jt(In(t,e));var n=Cn(t)[e];return n.obj||(Jt(n.ctor),Jt(n.context),n.obj=new n.ctor(n.context),Jt(n.obj),n.context=null,n.resolve&&n.resolve(n.obj)),n.obj}function xn(t,e,n,i,r,o){var s=Cn(t),a=s[n];a||(a=s[n]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:o||!1}),!r&&a.ctor||(a.ctor=i,a.context=e,a.sharedInstance=o||!1,a.resolve&&On(t,n))}function Rn(t,e){var n=Mn(t,e);if(n)return n;var i,r,o,s,a=Cn(t);return a[e]=(r=(i=new h).promise,o=i.reject,s=i.resolve,r.catch((function(){})),{obj:null,promise:r,resolve:s,reject:o,context:null,ctor:null}),a[e].promise}function Mn(t,e){var n=Cn(t)[e];return n?n.promise?n.promise:(On(t,e),n.promise=Promise.resolve(n.obj)):null}function Cn(t){var e=t.__AMP_SERVICES;return e||(e=t.__AMP_SERVICES={}),e}function _n(t){return"function"==typeof t.dispose}function Ln(t,e){if(_n(e))try{(function(t){return Jt(_n(t)),t})(e).dispose()}catch(e){Kt().error("SERVICE","failed to dispose service",t,e)}}function In(t,e){var n=t.__AMP_SERVICES&&t.__AMP_SERVICES[e];return!(!n||!n.ctor)}function kn(t,e,n,i){return Dn(t,e,n,i).then((function(t){return function(t,e,n){return Xt(t,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.",e,n,n,n)}(t,e,n)}))}function Dn(t,e,n,i){var r=An(t,e);if(r)return r;var o=Tn(t);return o.whenExtensionsKnown().then((function(){var t=o.getExtensionVersion(n);return t?gn(o.win,"extensions").waitForExtension(n,t):null})).then((function(n){return n?i?An(t,e):wn(t,e):null}))}var Nn,Bn=function(t){return Dn(t,"access","amp-access")},Vn=function(t){return Dn(t,"subscriptions","amp-subscriptions")},Un=function(t){return bn(t,"action")},jn=function(t){return kn(t,"activity","amp-analytics")},Fn=function(t){return Tn(t)},qn=function(t){return gn(t,"ampdoc")},Hn=function(t){return function(t,e){var n=bn(t,e);return n?Promise.resolve(n):Dn(t,e,"amp-bind")}(t,"bind")},zn=function(t){return wn(t,"cid")},Gn=function(t){return gn(t,"crypto")},Wn=function(t){return yn(t,"documentInfo").get()},Yn=function(t){return gn(t,"extensions")},Kn=function(t){return yn(t,"history")},Jn=function(t){return yn(t,"mutator")},Xn=function(t){return gn(t,"performance")},$n=function(t){return gn(t,"platform")},Qn=function(t){return gn(t,"preconnect")},Zn=function(t){return yn(t,"resources")},ti=function(t){return wn(t,"storage")},ei=function(t){return function(t){return On(t,"timer")}(t)},ni=function(t){return bn(t,"url-replace")},ii=function(t){return Dn(t,"geo","amp-geo",!0)},ri=function(t){return bn(t,"url")},oi=function(t){return yn(t,"viewer")},si=function(t){return gn(t,"vsync")},ai=function(t){return yn(t,"viewport")},ui=function(t){return gn(t,"xhr")},hi="prerender",ci="preview",li="visible",fi="hidden",di="paused",mi="inactive",pi=function(){function t(){this.vt=null}var e=t.prototype;return e.add=function(t){var e=this;return this.vt||(this.vt=[]),this.vt.push(t),function(){e.remove(t)}},e.remove=function(t){this.vt&&z(this.vt,t)},e.removeAll=function(){this.vt&&(this.vt.length=0)},e.fire=function(t){if(this.vt)for(var e,n=a(this.vt.slice(),!0);!(e=n()).done;)(0,e.value)(t)},e.getHandlerCount=function(){var t,e;return null!==(t=null===(e=this.vt)||void 0===e?void 0:e.length)&&void 0!==t?t:0},t}(),vi=function(){function t(){this.ae=w(),this.we=null}var e=t.prototype;return e.get=function(t){var e=this.ae[t];return null==e?null:e},e.whenSignal=function(t){var e,n=null===(e=this.we)||void 0===e?void 0:e[t];if(!n){var i=this.ae[t];n=null!=i?{promise:"number"==typeof i?Promise.resolve(i):Promise.reject(i)}:new h,this.we||(this.we=w()),this.we[t]=n}return n.promise},e.signal=function(t,e){var n;if(null==this.ae[t]){var i=null!=e?e:Date.now();this.ae[t]=i;var r=null===(n=this.we)||void 0===n?void 0:n[t];null!=r&&r.resolve&&(r.resolve(i),r.resolve=void 0,r.reject=void 0)}},e.rejectSignal=function(t,e){var n;if(null==this.ae[t]){this.ae[t]=e;var i=null===(n=this.we)||void 0===n?void 0:n[t];null!=i&&i.reject&&(i.reject(e),i.promise.catch((function(){})),i.resolve=void 0,i.reject=void 0)}},e.reset=function(t){var e;this.ae[t]&&delete this.ae[t];var n=null===(e=this.we)||void 0===e?void 0:e[t];n&&!n.resolve&&delete this.we[t]},t}(),gi=["Webkit","webkit","Moz","moz","ms","O","o"],yi={getPropertyPriority:function(){return""},getPropertyValue:function(){return""}};function bi(t){var e=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return gi.some((function(t){return e.startsWith(t+"-")}))?"-".concat(e):e}function wi(t,e,n){if(e.startsWith("--"))return e;Nn||(Nn=w());var i=Nn[e];if(!i||n){if(i=e,void 0===t[e]){var r=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(e),o=function(t,e){for(var n=0;n<gi.length;n++){var i=gi[n]+e;if(void 0!==t[i])return i}return""}(t,r);void 0!==t[o]&&(i=o)}n||(Nn[e]=i)}return i}function Ai(t,e){var n=t.style;for(var i in e)n.setProperty(bi(wi(n,i)),String(e[i]),"important")}function Ei(t,e,n,i,r){var o=wi(t.style,e,r);if(o){var s=i?n+i:n;t.style.setProperty(bi(o),s)}}function Si(t,e){for(var n in e)Ei(t,n,e[n])}function Ti(t,e){void 0===e&&(e=t.hasAttribute("hidden")),e?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function Pi(t){return"".concat(t,"px")}function Oi(t,e){return t.getComputedStyle(e)||yi}function xi(t){var e=t[wi(t,"visibilityState",!0)];if(e)return e;var n=wi(t,"hidden",!0);return n in t&&t[n]?fi:li}function Ri(t,e){if(t.addEventListener){var n=Ci(t);n&&t.addEventListener(n,e)}}function Mi(t,e){if(t.removeEventListener){var n=Ci(t);n&&t.removeEventListener(n,e)}}function Ci(t){var e=wi(t,"hidden",!0),n=e.indexOf("Hidden");return-1!=n?e.substring(0,n)+"Visibilitychange":"visibilitychange"}var _i=function(){function t(){}return t.getTop=function(t){return t.top},t.getLocation=function(t){return t.location},t.getDocumentReferrer=function(t){return t.document.referrer},t.getHostname=function(t){return t.location.hostname},t.getUserAgent=function(t){return t.navigator.userAgent},t.getUserLanguage=function(t){return t.navigator.userLanguage||t.navigator.language},t.getDevicePixelRatio=function(){return self.devicePixelRatio||1},t.getSendBeacon=function(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)},t.getXMLHttpRequest=function(t){return t.XMLHttpRequest},t.getImage=function(t){return t.Image},t}(),Li="-ampdoc-ext-known",Ii="-ampdoc-first-visible",ki="-ampdoc-next-visible",Di="-ampdoc-first-previewed",Ni=function(){function t(t,e,n){this.win=t,this.Ae=null,e&&(this.Ae=new Vi(t,{params:Fi(t,n)}),t.document.__AMPDOC=this.Ae)}var e=t.prototype;return e.isSingleDoc=function(){return!!this.Ae},e.getSingleDoc=function(){return Jt(this.Ae)},e.xe=function(t){return t.everAttached&&"function"==typeof t.getAmpDoc?t.getAmpDoc():null},e.getAmpDocIfAvailable=function(t){for(var e=t;e;){var n=this.xe(t);if(n)return n;var i=Te(e);if(!i)break;var r=i.__AMPDOC;if(r)return r;e=i.host?i.host:Sn(i,this.win)}return null},e.getAmpDoc=function(t){var e=this.getAmpDocIfAvailable(t);if(!e)throw Kt().createError("No ampdoc found for",t);return e},e.installShadowDoc=function(t,e,n){Jt(!e.__AMPDOC);var i=new Ui(this.win,t,e,n);return e.__AMPDOC=i,i},e.installFieDoc=function(t,e,n){var i=e.document;Jt(!i.__AMPDOC);var r=Jt(e.frameElement),o=new ji(e,t,this.getAmpDoc(r),n);return i.__AMPDOC=o,o},t}(),Bi=function(){function t(t,e,n){var i=this;this.win=t,this.Ee=w(),this.Pe=e,this.Te=n&&n.signals||new vi,this.Oe=n&&n.params||w(),this.Ie=null,this.Re={};var r,o=this.Oe.visibilityState;Jt(!o||"prerender"===(r=o)||"preview"===r||"visible"===r||"hidden"===r||"paused"===r||"inactive"===r),this.Se=n&&n.visibilityState||o||null,this.J=null,this._e=new pi,this.Me=null,this.ke=[];var s=this.Yi.bind(this);this.Pe&&this.ke.push(this.Pe.onVisibilityChanged(s)),Ri(this.win.document,s),this.ke.push((function(){return Mi(i.win.document,s)})),this.Yi()}var e=t.prototype;return e.dispose=function(){(function(t){var e=Cn(t),n=function(t){if(!Object.prototype.hasOwnProperty.call(e,t))return"continue";var n=e[t];if(n.sharedInstance)return"continue";n.obj?Ln(t,n.obj):n.promise&&n.promise.then((function(e){return Ln(t,e)}))};for(var i in e)n(i)})(this),this.ke.forEach((function(t){return t()}))},e.isSingleDoc=function(){return Jt(null)},e.getParent=function(){return this.Pe},e.signals=function(){return this.Te},e.getParam=function(t){var e=this.Oe[t];return null==e?null:e},e.getMeta=function(){var t=this;return this.Ie||(this.Ie=w(),this.win.document.head.querySelectorAll("meta[name]").forEach((function(e){var n=e.getAttribute("name"),i=e.getAttribute("content");n&&null!==i&&void 0===t.Ie[n]&&(t.Ie[n]=i)}))),w(this.Ie)},e.getMetaByName=function(t){if(!t)return null;var e=this.getMeta()[t];return void 0!==e?e:null},e.setMetaByName=function(t,e){Jt(null)},e.declaresExtension=function(t,e){var n=this.Re[t];return!(!n||e&&n!==e)},e.declareExtension=function(t,e){Jt(!this.Re[t]||this.Re[t]===e),this.Re[t]=e},e.getExtensionVersion=function(t){return this.Re[t]||null},e.setExtensionsKnown=function(){this.Te.signal(Li)},e.whenExtensionsKnown=function(){return this.Te.whenSignal(Li)},e.getRootNode=function(){return Jt(null)},e.getHeadNode=function(){},e.isBodyAvailable=function(){return Jt(!1)},e.getBody=function(){return Jt(null)},e.waitForBodyOpen=function(){return Jt(null)},e.isReady=function(){return Jt(null)},e.whenReady=function(){return Jt(null)},e.getUrl=function(){return Jt(null)},e.getElementById=function(t){return this.getRootNode().getElementById(t)},e.contains=function(t){return this.getRootNode().contains(t)},e.overrideVisibilityState=function(t){this.Se!=t&&(this.Se=t,this.Yi())},e.Yi=function(){for(var t,e=xi(this.win.document),n=li,i=this.Pe;i;i=i.getParent())if(i.getVisibilityState()!=li){n=i.getVisibilityState();break}var r=this.Se||li;if(t=r==li&&n==li&&e==li?li:e==fi&&r==di?e:r==di||r==mi?r:n==di||n==mi?n:r==ci||e==ci||n==ci?ci:r==hi||e==hi||n==hi?hi:fi,this.J!=t){if(t==li){var o,s=this.win.performance,a=Math.floor(null!==(o=s.timeOrigin)&&void 0!==o?o:s.timing.navigationStart);null!=this.J&&(a+=Math.floor(s.now())),this.Me=a,this.Te.signal(Ii,a),this.Te.signal(ki,a)}else this.Te.reset(ki);t==ci&&this.Te.signal(Di),this.J=t,this._e.fire()}},e.whenFirstPreviewedOrVisible=function(){return Promise.race([this.whenFirstPreviewed(),this.whenFirstVisible()])},e.whenFirstPreviewed=function(){return this.Te.whenSignal(Di).then((function(){}))},e.whenFirstVisible=function(){return this.Te.whenSignal(Ii).then((function(){}))},e.whenNextVisible=function(){return this.Te.whenSignal(ki).then((function(){}))},e.getFirstVisibleTime=function(){return this.Te.get(Ii)},e.getLastVisibleTime=function(){return this.Me},e.getVisibilityState=function(){return Jt(this.J)},e.isPreview=function(){return this.J==ci},e.isVisible=function(){return this.J==li},e.hasBeenVisible=function(){return null!=this.getLastVisibleTime()},e.onVisibilityChanged=function(t){return this._e.add(t)},e.registerSingleton=function(t){return!this.Ee[t]&&(this.Ee[t]=!0,!0)},t}(),Vi=function(t){N(n,t);var e=V(n);function n(t,n){var i;return(i=e.call(this,t,null,n)).Ce=i.win.document.body?Promise.resolve(i.win.document.body):Ae(i.win.document).then((function(){return i.getBody()})),i.Ne=an(i.win.document),i}var i=n.prototype;return i.isSingleDoc=function(){return!0},i.getRootNode=function(){return this.win.document},i.getUrl=function(){return _i.getLocation(this.win).href},i.getHeadNode=function(){return this.win.document.head},i.isBodyAvailable=function(){return!!this.win.document.body},i.getBody=function(){return this.win.document.body},i.waitForBodyOpen=function(){return this.Ce},i.isReady=function(){return nn(this.win.document)},i.whenReady=function(){return this.Ne},n}(Bi),Ui=function(t){N(n,t);var e=V(n);function n(t,n,i,r){var o;(o=e.call(this,t,null,r)).je=n,o.De=i,o.Le=null;var s=new h;o.Ce=s.promise,o.Ue=s.resolve,o.ze=!1;var a=new h;return o.Ne=a.promise,o.He=a.resolve,o}var i=n.prototype;return i.isSingleDoc=function(){return!1},i.getRootNode=function(){return this.De},i.getUrl=function(){return this.je},i.getHeadNode=function(){return this.De},i.isBodyAvailable=function(){return!!this.Le},i.getBody=function(){return this.Le},i.setBody=function(t){Jt(!this.Le),this.Le=t,this.Ue(t),this.Ue=void 0},i.waitForBodyOpen=function(){return this.Ce},i.isReady=function(){return this.ze},i.setReady=function(){Jt(!this.ze),this.ze=!0,this.He(),this.He=void 0},i.whenReady=function(){return this.Ne},i.getMeta=function(){return w(this.Ie)},i.setMetaByName=function(t,e){Jt(t),this.Ie||(this.Ie=w()),this.Ie[t]=e},n}(Bi),ji=function(t){N(n,t);var e=V(n);function n(t,n,i,r){var o;(o=e.call(this,t,i,r)).je=n,o.Ce=o.win.document.body?Promise.resolve(o.win.document.body):Ae(o.win.document).then((function(){return o.getBody()})),o.ze=!1;var s=new h;return o.Ne=s.promise,o.He=s.resolve,o}var i=n.prototype;return i.isSingleDoc=function(){return!1},i.getRootNode=function(){return this.win.document},i.getUrl=function(){return this.je},i.getHeadNode=function(){return this.win.document.head},i.isBodyAvailable=function(){return!!this.win.document.body},i.getBody=function(){return this.win.document.body},i.waitForBodyOpen=function(){return this.Ce},i.isReady=function(){return this.ze},i.whenReady=function(){return this.Ne},i.setReady=function(){Jt(!this.ze),this.ze=!0,this.He(),this.He=void 0},n}(Bi);function Fi(t,e){var n=w();return e?Object.assign(n,e):(t.name&&0==t.name.indexOf("__AMP__")&&Object.assign(n,vt(t.name.substring(7))),t.location&&t.location.hash&&Object.assign(n,vt(t.location.hash))),n}function qi(t){if(!t.hasAttribute("src")&&"srcset"in t==0){var e=t.getAttribute("srcset")||"",n=/\S+/.exec(e);if(null==n)return;var i=n[0];t.setAttribute("src",i)}}var Hi="nodisplay",zi="fixed",Gi="fixed-height",Wi="responsive",Yi="container",Ki="fill",Ji="flex-item",Xi="fluid",$i="intrinsic",Qi=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function Zi(t){if("nodisplay"===(e=t)||"fixed"===e||"fixed-height"===e||"responsive"===e||"container"===e||"fill"===e||"flex-item"===e||"fluid"===e||"intrinsic"===e)return t;var e}function tr(t){return"i-amphtml-layout-"+t}function er(t){return t==zi||t==Gi||t==Wi||t==Ki||t==Ji||t==Xi||t==$i}function nr(t){return"number"==typeof t?t+"px":t&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(t)?/^\d+(\.\d+)?$/.test(t)?t+"px":t:void 0}function ir(t){!function(t){st(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(null!=t?t:""),"Invalid length value: %s",t)}(t);var e=/[a-z]+/i.exec(null!=t?t:"");return st(e,"Failed to read units from %s",t),e[0]}function rr(t){var e=parseFloat(t);return K(e)?e:void 0}function or(t,e){t.classList.add("i-amphtml-fill-content"),e&&t.classList.add("i-amphtml-replaced-content")}function sr(t,e,n,i){for(var r,o=a(F(t),!0);!(r=o()).done;){var s=r.value,u=e.getAttribute(s);null!==u?n.setAttribute(s,u):i&&n.removeAttribute(s)}}var ar,ur="amp:attached",hr="amp:load-start",cr="amp:load-end",lr="ready-upgrade",fr="upgraded",dr="built",mr="mounted",pr="load-start",vr="render-start",gr="load-end",yr="unload",br=function(){function t(t,e){this.t=t,this.Kt=e,this.Ge={},this.Ve=null}var e=t.prototype;return e.start=function(){this.Ve=this.Ge,this.Ge={}},e.resolveMatchQuery=function(t){return"1"===this.Fe(t,wr,"1")},e.resolveListQuery=function(t){return this.Fe(t,Ar,"")},e.complete=function(){for(var t in this.Ve)t in this.Ge||Er(this.Ve[t],this.Kt,!1);this.Ve=null},e.dispose=function(){for(var t in this.Ge)Er(this.Ge[t],this.Kt,!1);this.Ge={}},e.Fe=function(t,e,n){if(!t.trim())return n;var i=this.Ge[t];return i||(nt(this.Ve),i=this.Ve[t]),i||Er(i=e(this.t,t),this.Kt,!0),this.Ge[t]=i,function(t){for(var e=0;e<t.length;e++){var n=t[e],i=n.query,r=n.value;if(!i||i.matches)return r}return""}(i)},t}();function wr(t,e){return[{query:t.matchMedia(e),value:"1"},{query:null,value:""}]}function Ar(t,e){return e.split(",").map((function(e){if(0!=(e=e.replace(/\s+/g," ").trim()).length){var n,i,r;if(")"==e.charAt(e.length-1)){var o=1;for(r=e.length-2;r>=0;r--){var s=e.charAt(r);if("("==s?o--:")"==s&&o++,0==o)break}var a=r-1;if(r>0)for(r--;r>=0;r--){var u=e.charAt(r);if(!("%"==u||"-"==u||"_"==u||u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"))break}if(r>=a)return null}else for(r=e.length-2;r>=0;r--){var h=e.charAt(r);if(!("%"==h||"."==h||h>="a"&&h<="z"||h>="A"&&h<="Z"||h>="0"&&h<="9"))break}return r>=0?(n=e.substring(0,r+1).trim(),i=e.substring(r+1).trim()):(i=e,n=void 0),i?{query:n?t.matchMedia(n):null,value:i}:null}})).filter(Boolean)}function Er(t,e,n){for(var i=0;i<t.length;i++){var r=t[i].query;r&&(void 0!==r.onchange?r.onchange=n?e:null:n?r.addListener(e):r.removeListener(e))}}function Sr(t){var e=t.ownerDocument||t;return ar&&ar.ownerDocument===e||(ar=e.createElement("div")),Tr}function Tr(t){return function(t,e){if(nt(1===e.length),nt(Array.isArray(e)||A(e,"raw")),self.trustedTypes&&self.trustedTypes.createPolicy){var n=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return e[0]}});t.innerHTML=n.createHTML("ignored")}else t.innerHTML=e[0];var i=t.firstElementChild;return nt(i),nt(!i.nextElementSibling),t.removeChild(i),i}(ar,t)}var Pr=['<i-amphtml-sizer class=i-amphtml-sizer slot=i-amphtml-svc><img alt="" role=presentation aria-hidden=true class=i-amphtml-intrinsic-sizer></i-amphtml-sizer>'],Or={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function xr(t){var e=t.getAttribute("layout"),n=t.getAttribute("width"),i=t.getAttribute("height"),r=t.getAttribute("sizes"),o=t.getAttribute("heights"),s=e?Zi(e):null;st(void 0!==s,'Invalid "layout" value: %s, %s',e,t);var a=n&&"auto"!=n?nr(n):n;st(void 0!==a,'Invalid "width" value: %s, %s',n,t);var u,h,c,l,f=i&&"fluid"!=i?nr(i):i;if(st(void 0!==f,'Invalid "height" value: %s, %s',i,t),s&&s!=zi&&s!=Gi||a&&f||(l=(l=t.tagName).toUpperCase(),void 0===Or[l]))u=a,h=f;else{var d=function(t){var e=t.tagName.toUpperCase();if(nt(void 0!==Or[e]),!Or[e]){var n=t.ownerDocument,i=e.replace(/^AMP\-/,""),r=n.createElement(i);r.controls=!0,Si(r,{position:"absolute",visibility:"hidden"}),n.body.appendChild(r),Or[e]={width:(r.offsetWidth||1)+"px",height:(r.offsetHeight||1)+"px"},n.body.removeChild(r)}return Or[e]}(t);u=a||s==Gi?a:d.width,h=f||d.height}return(c=s||(u||h?"fluid"==h?Xi:!h||u&&"auto"!=u?h&&u&&(r||o)?Wi:zi:Gi:Yi))!=zi&&c!=Gi&&c!=Wi&&c!=$i||st(h,'The "height" attribute is missing: %s',t),c==Gi&&st(!u||"auto"==u,'The "width" attribute must be missing or "auto": %s',t),c!=zi&&c!=Wi&&c!=$i||st(u&&"auto"!=u,'The "width" attribute must be present and not "auto": %s',t),c==Wi||c==$i?st(ir(u)==ir(h),'Length units should be the same for "width" and "height": %s, %s, %s',n,i,t):st(null===o,'"heights" attribute must be missing: %s',t),{layout:c,width:u,height:h}}var Rr,Mr="EXPERIMENTS",Cr="amp-experiment-toggles",_r="__AMP__EXPERIMENT_TOGGLES";function Lr(t,e){return!!kr(t)[e]}function Ir(t,e,n,i){var r=Lr(t,e),o=null!=n?n:!r;if(o!=r&&(kr(t)[e]=o,!i)){var s=Dr(t);s[e]=o,function(t,e){var n=[];for(var i in e)n.push((!1===e[i]?"-":"")+i);try{var r;null===(r=t.localStorage)||void 0===r||r.setItem(Cr,n.join(","))}catch(t){Wt().error(Mr,"Failed to save experiments to localStorage.")}}(t,s),Wt().warn(Mr,'"%s" experiment %s for the domain "%s". See: https://amp.dev/documentation/guides-and-tutorials/learn/experimental',e,o?"enabled":"disabled",t.location.hostname)}return o}function kr(t){var e,n,i,r,o;if(t[_r])return t[_r];t[_r]=w();var s=t[_r];nt(s);var u=k(k({},null!==(e=t.AMP_CONFIG)&&void 0!==e?e:{}),null!==(n=t.AMP_EXP)&&void 0!==n?n:at((null===(i=t.__AMP_EXP)||void 0===i?void 0:i.textContent)||"{}"));for(var h in u){var c=u[h];"number"==typeof c&&c>=0&&c<=1&&(s[h]=Math.random()<c)}var l=null===(r=t.AMP_CONFIG)||void 0===r?void 0:r["allow-doc-opt-in"];if(j(l)&&l.length){var f=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(f)for(var d,m,p=a((null===(d=f.getAttribute("content"))||void 0===d?void 0:d.split(","))||[],!0);!(m=p()).done;){var v=m.value;l.includes(v)&&(s[v]=!0)}}Object.assign(s,Dr(t));var g=null===(o=t.AMP_CONFIG)||void 0===o?void 0:o["allow-url-opt-in"];if(j(g)&&g.length)for(var y,b=vt(t.location.originalHash||t.location.hash),A=a(g,!0);!(y=A()).done;){var E=y.value,S=b["e-".concat(E)];"1"==S&&(s[E]=!0),"0"==S&&(s[E]=!1)}return s}function Dr(t){var e,n="";try{var i;"localStorage"in t&&(n=null!==(i=t.localStorage.getItem(Cr))&&void 0!==i?i:"")}catch(t){Kt().warn(Mr,"Failed to retrieve experiments from localStorage.")}for(var r,o=(null===(e=n)||void 0===e?void 0:e.split(/\s*,\s*/g))||[],s=w(),u=a(o,!0);!(r=u()).done;){var h=r.value;h&&("-"==h[0]?s[h.substr(1)]=!1:s[h]=!0)}return s}function Nr(t,e,n,i){var r=t,o=n,s=function(t){try{return o(t)}catch(t){var e,n;throw null===(e=(n=self).__AMP_REPORT_ERROR)||void 0===e||e.call(n,t),t}},a=function(){if(void 0!==Rr)return Rr;Rr=!1;try{var t={get capture(){return Rr=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return Rr}(),u=!(null==i||!i.capture);return r.addEventListener(e,s,a?i:u),function(){null==r||r.removeEventListener(e,s,a?i:u),o=null,r=null,s=null}}var Br="Failed to load:";function Vr(t,e,n,i){var r={detail:n};if(Object.assign(r,i),"function"==typeof t.CustomEvent)return new t.CustomEvent(e,r);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(e,!!r.bubbles,!!r.cancelable,n),o}function Ur(t,e,n,i){return Nr(t,e,n,i)}function jr(t){return t.data}function Fr(t,e,n,i){var r=n,o=Nr(t,e,(function(t){try{r(t)}finally{r=null,o()}}),i);return o}function qr(t){var e,n;if(function(t){return!!(t.complete||"complete"==t.readyState||Hr(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);var i=Hr(t);return i&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise((function(r,o){if(e=i?Fr(t,"loadedmetadata",r,{capture:!0}):Fr(t,"load",r),t.tagName){var s=t;if(i&&!t.hasAttribute("src")&&!(s=me(t,(function(t){return"SOURCE"===t.tagName}))))return o(new Error("Media has no source."));n=Fr(s,"error",o)}})).then((function(){return n&&n(),t}),(function(){e&&e(),function(t){Hr(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);var e=t;throw e&&e.src&&(e=e.src),Wt().createError(Br,e)}(t)}))}function Hr(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var zr={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]",variant:"amp-experiment"};function Gr(t){var e=t.document;return Jt(e.body),Object.keys(zr).filter((function(t){return e.querySelector(zr[t])}))}function Wr(t,e,n,i,r){var o=t.getHeadNode(),s=function(t,e,n,i){var r=t.__AMP_CSS_SM;r||(r=t.__AMP_CSS_SM=w());var o=!n&&i&&"amp-custom"!=i&&"amp-keyframes"!=i,s=n?"amp-runtime":o?"amp-extension=".concat(i):null;if(s){var a=Yr(t,r,s);if(a)return"STYLE"==a.tagName&&a.textContent!==e&&(a.textContent=e),a}var u=(t.ownerDocument||t).createElement("style");u.textContent=e;var h=null;return n?u.setAttribute("amp-runtime",""):o?(u.setAttribute("amp-extension",i||""),h=Yr(t,r,"amp-runtime")):(i&&u.setAttribute(i,""),h=t.lastChild),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(n){var i=n.nextSibling;t.insertBefore(e,i)}else!function(t,e){t.insertBefore(e,t.firstChild)}(t,e)}(t,u,h),s&&(r[s]=u),u}(o,function(t,e){var n=t.__AMP_CSS_TR;return n?n(e):e}(o,e),i||!1,r||null);if(n){var a=t.getRootNode();if($r(a,s))return n(s),s;var u=setInterval((function(){$r(a,s)&&(clearInterval(u),n(s))}),4)}return s}function Yr(t,e,n){if(e[n])return e[n];var i=t.querySelector("style[".concat(n,"], link[").concat(n,"]"));return i?(e[n]=i,i):null}var Kr=!1;function Jr(t){Jt(t.defaultView),Kr||(Kr=!0,Xr(t))}function Xr(t){Si(t.body,{opacity:1,visibility:"visible",animation:"none"})}function $r(t,e){for(var n=t.styleSheets,i=0;i<n.length;i++)if(n[i].ownerNode==e)return!0;return!1}var Qr,Zr,to=function(){function t(t){this.zt=t,this.It=0,this.Ct=0,this.Ot=w()}var e=t.prototype;return e.has=function(t){return!!this.Ot[t]},e.get=function(t){var e=this.Ot[t];if(e)return e.access=++this.Ct,e.payload},e.put=function(t,e){this.has(t)||this.It++,this.Ot[t]={payload:e,access:this.Ct},this.qt()},e.qt=function(){if(!(this.It<=this.zt)){var t,e=this.Ot,n=this.Ct+1;for(var i in e){var r=e[i].access;r<n&&(n=r,t=i)}void 0!==t&&(delete e[t],this.It--)}},t}(),eo=new Set(["c","v","a","ad"]),no="__amp_source_origin",io=function(t){return"string"==typeof t?ro(t):t};function ro(t,e){return Qr||(Qr=self.document.createElement("a"),Zr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new to(100))),oo(Qr,t,e?null:Zr)}function oo(t,e,n){if(n&&n.has(e))return n.get(e);t.href=e,t.protocol||(t.href=t.href);var i,r={href:t.href,protocol:t.protocol,host:t.host,hostname:t.hostname,port:"0"==t.port?"":t.port,pathname:t.pathname,search:t.search,hash:t.hash,origin:null};"/"!==r.pathname[0]&&(r.pathname="/"+r.pathname),("http:"==r.protocol&&80==r.port||"https:"==r.protocol&&443==r.port)&&(r.port="",r.host=r.hostname),i=t.origin&&"null"!=t.origin?t.origin:"data:"!=r.protocol&&r.host?r.protocol+"//"+r.host:r.href,r.origin=i;var o=r;return n&&n.put(e,o),o}function so(t,e,n){if(!e)return t;var i=t.split("#",2),r=i[0].split("?",2);return r[0]+(r[1]?n?"?".concat(e,"&").concat(r[1]):"?".concat(r[1],"&").concat(e):"?".concat(e))+(i[1]?"#".concat(i[1]):"")}function ao(t,e){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))}function uo(t,e){return so(t,ho(e))}function ho(t){var e=[];for(var n in t){var i=t[n];if(null!=i){i=F(i);for(var r=0;r<i.length;r++)e.push(ao(n,i[r]))}}return e.join("&")}function co(t){return"https:"==(t=io(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||G(t.hostname,".localhost")}function lo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"source";return Xt(null!=t,"%s %s must be available",e,n),Xt(co(t)||/^\/\//.test(t),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',e,n,t),t}function fo(t){var e=t.indexOf("#");return-1==e?t:t.substring(0,e)}function mo(t){return bt.test(io(t).origin)}function po(t){return!(t&&dt.includes(io(t).protocol))}function vo(t){var e=ro(t),n=e.hash;return e.origin+e.pathname+go(e.search)+n}function go(t){return function(t){if(!t||"?"==t)return"";var e=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),n=t.replace(e,"").replace(/^[?&]/,"");return n?"?"+n:""}(t)}function yo(t){if(!mo(t=io(t)))return t.href;var e=t.pathname.split("/"),n=e[1];Xt(eo.has(n),"Unknown path prefix in url %s",t.href);var i=e[2],r="s"==i?"https://"+decodeURIComponent(e[3]):"http://"+decodeURIComponent(i);return Xt(r.indexOf(".")>0,"Expected a . in origin %s",r),e.splice(1,"s"==i?3:2),r+e.join("/")+go(t.search)+(t.hash||"")}function bo(t){return ro(yo(t)).origin}function wo(t,e){return e=io(e),"function"==typeof URL?new URL(t,e.href).toString():function(t,e){e=io(e);var n=ro(t=t.replace(/\\/g,"/"));return t.toLowerCase().startsWith(n.protocol)?n.href:t.startsWith("//")?e.protocol+t:t.startsWith("/")?e.origin+t:e.origin+e.pathname.replace(/\/[^/]*$/,"/")+t}(t,e)}function Ao(t,e){return Eo(e),function(t,e,n){return so(t,ao("__amp_source_origin",n),void 0)}(e,0,bo(t.location.href))}function Eo(t){var e=vt(ro(t).search);Xt(!(no in e),"Source origin is not allowed in %s",t)}var So="CANCELLED",To="BLOCK_BY_CONSENT",Po=self.__AMP_ERRORS||[];self.__AMP_ERRORS=Po;var Oo=function(t){return(e=0,n=function(){var t=Math.pow(1.5,e++);return 1e3*(t+function(t,e){var n=t*(e=e||.3)*Math.random();return Math.random()>.5&&(n*=-1),n}(t))},Oo=function(t){return setTimeout(t,n())})(t);var e,n};function xo(t,e){try{if(t)if(void 0!==t.message)t=l(t);else{var n=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(e){return String(t)}}(n))).origError=n}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){var i=H(t.messageArray,(function(t){return null==t?void 0:t.tagName}));i>-1&&(t.associatedElement=t.messageArray[i])}var r=e||t.associatedElement;if(r&&r.classList&&(r.classList.add("i-amphtml-error"),Lt().development&&(r.classList.add("i-amphtml-element-error"),r.setAttribute("error-message",t.message))),self.console&&(Q(t.message)||!t.expected)){var o=console.error||console.log;t.messageArray?o.apply(console,t.messageArray):r?o.call(console,t.message,r):o.call(console,t.message)}r&&r.dispatchCustomEventForTesting&&r.dispatchCustomEventForTesting("amp:error",t.message),Co.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Ro(){return new Error(So)}function Mo(t){return!!t&&("string"==typeof t?t.startsWith(To):"string"==typeof t.message&&t.message.startsWith(To))}function Co(t,e,n,i,r){var o=this;if(!this||!this.document||r&&r.expected||Jr(this.document),!Lt().development){var s=!1;try{s=function(t){if(!t.document)return!1;for(var e=t.document.querySelectorAll("script[src]"),n=0;n<e.length;n++)if(!mo(e[n].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(!(s&&Math.random()<.99)){var a=function(t,e,n,i,r,o){t=function(t,e){return e&&(t=e.message?e.message:String(e)),t||(t="Unknown error"),t}(t,r);var s,a,u=!(!r||!r.expected);if(!/_reported_/.test(t)&&t!=So){var h=!(self&&self.window),c=Math.random();if(!((function(t){return-1!=t.indexOf(Br)}(t)||"Script error."==t||h)&&(u=!0,c<.9999))){var l=Q(t);if(!(l&&c<.99)){var f=Object.create(null);f.v=Lt().rtvVersion,f.noAmp=o?"1":"0",f.m=t.replace(J,""),f.a=l?"1":"0",f.ex=u?"1":"0",f.dw=h?"1":"0";var d="1p";if(self.context&&self.context.location?(d="3p",f["3p"]="1"):Lt().runtime&&(d=Lt().runtime),f.rt=d,f.cdn=Tt,"inabox"===d&&(f.adid=Lt().a4aId),f.ca=null!==(a=self.AMP_CONFIG)&&void 0!==a&&a.canary?"1":"0",f.bt=(null===(s=self.AMP_CONFIG)||void 0===s?void 0:s.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(f.or=self.location.ancestorOrigins[0]),self.viewerState&&(f.vs=self.viewerState),self.parent&&self.parent!=self&&(f.iem="1"),self.AMP&&self.AMP.viewer){var m=self.AMP.viewer.getResolvedViewerUrl(),p=self.AMP.viewer.maybeGetMessagingOrigin();m&&(f.rvu=m),p&&(f.mso=p)}var v,g,y,b=[],w=self[_r]||null;for(var A in w){var E=w[A];b.push("".concat(A,"=").concat(E?"1":"0"))}return f.exps=b.join(","),r?(f.el=(null===(v=r.associatedElement)||void 0===v?void 0:v.tagName)||"u",r.args&&(f.args=JSON.stringify(r.args)),l||r.ignoreStack||!r.stack||(f.s=r.stack),r.message&&(r.message+=" _reported_")):(f.f=e||"",f.l=n||"",f.c=i||""),f.r=self.document?self.document.referrer:"",f.ae=Po.join(","),f.fr=self.location.originalHash||self.location.hash,"production"===f.bt&&(f.pt="1"),y=t,(g=Po).length>=25&&g.splice(0,g.length-25+1),g.push(y),f}}}}(t,e,n,i,r,s);a&&Oo((function(){try{return function(t,e){return e.pt&&Math.random()<.9?u():function(t,e){var n=qn(t);if(!n.isSingleDoc())return Promise.resolve(!1);var i=n.getSingleDoc();if(!i.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);var r=oi(i);return r.hasCapability("errorReporter")?r.isTrustedViewer().then((function(t){return!!t&&(r.sendMessage("error",{m:(n=e).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,e).then((function(t){if(!t){var n=new XMLHttpRequest;n.open("POST",Math.random()<.1?xt:Ot,!0),n.send(JSON.stringify(e))}}))}(o,a).catch((function(){}))}catch(t){}}))}}}var _o="Resource",Lo=function(){function t(t,e,n){e.__AMP__RESOURCE=this,this.Be=t,this.element=e,this.debugid=e.tagName.toLowerCase()+"#"+t,this.hostWin=e.ownerDocument.defaultView,this.qe=n,this.We=e.hasAttribute("placeholder"),this.$e=!1,this.Ye=void 0,this.Ke=e.isBuilt()?1:0,0==this.Ke&&e.isBuilding()&&this.build(),this.Xe=-1,this.Je=0,this.Qe=null,this.Ze=null,this.tu=!1,this.nu=Le(-1e4,-1e4,0,0),this.iu=null,this.ru=!1,this.eu=null,this.uu=null,this.ou=void 0;var i=new h;this.su=i.promise,this.hu=i.resolve,this.au=!1}t.forElement=function(e){return Jt(t.forElementOptional(e))},t.forElementOptional=function(t){return t.__AMP__RESOURCE},t.setOwner=function(e,n){Jt(n.contains(e)),t.forElementOptional(e)&&t.forElementOptional(e).updateOwner(n),e.__AMP__OWNER=n;for(var i=e.getElementsByClassName("i-amphtml-element"),r=0;r<i.length;r++){var o=i[r];t.forElementOptional(o)&&t.forElementOptional(o).updateOwner(void 0)}};var e=t.prototype;return e.getId=function(){return this.Be},e.updateOwner=function(t){this.Ye=t},e.getOwner=function(){if(void 0===this.Ye){for(var t=this.element;t;t=t.parentElement)if(t.__AMP__OWNER){this.Ye=t.__AMP__OWNER;break}void 0===this.Ye&&(this.Ye=null)}return this.Ye},e.hasOwner=function(){return!!this.getOwner()},e.getLayoutPriority=function(){return-1!=this.Xe?this.Xe:this.element.getLayoutPriority()},e.updateLayoutPriority=function(t){this.Xe=t},e.getState=function(){return this.Ke},e.isBuilt=function(){return this.element.isBuilt()},e.isBuilding=function(){return this.$e},e.whenBuilt=function(){return this.element.signals().whenSignal("res-built")},e.build=function(){var t=this;return this.$e||!this.element.isUpgraded()?null:(this.$e=!0,this.element.buildInternal().then((function(){t.$e=!1,t.Ke=1,t.element.signals().signal("res-built")}),(function(e){throw t.maybeReportErrorOnBuildFailure(e),t.$e=!1,t.element.signals().rejectSignal("res-built",e),e})))},e.maybeReportErrorOnBuildFailure=function(t){Mo(t)||Kt().error(_o,"failed to build:",this.debugid,t)},e.changeSize=function(t,e,n){this.element.applySize(t,e,n),this.requestMeasure()},e.overflowCallback=function(t,e,n,i){t&&(this.ou={height:e,width:n,margins:i}),this.element.overflowCallback(t,e,n,i)},e.resetPendingChangeSize=function(){this.ou=void 0},e.getPendingChangeSize=function(){return this.ou},e.getUpgradeDelayMs=function(){return this.element.getUpgradeDelayMs()},e.measure=function(){if(!(this.We&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-"))||"__AMP__RESOURCE"in this.element.parentElement)if(this.element.ownerDocument&&this.element.ownerDocument.defaultView){this.ru=!1;var t=this.nu;this.fu();var e,n,i=this.nu,r=(n=i,!((e=t).width==n.width&&e.height===n.height));(1==this.Ke||t.top!=i.top||r)&&this.element.isUpgraded()&&(1==this.Ke?this.Ke=2:4!=this.Ke&&5!=this.Ke||!this.element.isRelayoutNeeded()||(this.Ke=2)),this.hasBeenMeasured()||(this.iu=i),this.element.updateLayoutBox(i,r)}else this.Ke=1},e.ensureMeasured=function(){var t=this;return this.hasBeenMeasured()?u():si(this.hostWin).measure((function(){return t.measure()}))},e.fu=function(){var t=ai(this.element);this.nu=t.getLayoutRect(this.element);var e=!1;if(t.supportsPositionFixed()&&this.isDisplayed())for(var n=this.qe.getAmpdoc().win,i=n.document.body,r=this.element;r&&r!=i;r=r.offsetParent){if(r.isAlwaysFixed&&r.isAlwaysFixed()){e=!0;break}if(t.isDeclaredFixed(r)&&"fixed"==Oi(n,r).position){e=!0;break}}this.tu=e,e&&(this.nu=ke(this.nu,-t.getScrollLeft(),-t.getScrollTop()))},e.completeCollapse=function(){Ti(this.element,!1),this.nu=Le(this.nu.left,this.nu.top,0,0),this.tu=!1,this.element.updateLayoutBox(this.getLayoutBox());var t=this.getOwner();t&&t.collapsedCallback(this.element)},e.completeExpand=function(){Ti(this.element,!0),this.requestMeasure()},e.isMeasureRequested=function(){return this.ru},e.hasBeenMeasured=function(){return!!this.iu},e.requestMeasure=function(){this.ru=!0},e.getLayoutSize=function(){return e=(t=this.nu).height,{width:t.width,height:e};var t,e},e.getLayoutBox=function(){if(!this.tu)return this.nu;var t=ai(this.element);return ke(this.nu,t.getScrollLeft(),t.getScrollTop())},e.getInitialLayoutBox=function(){return this.iu||this.nu},e.isDisplayed=function(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;var t=this.element.getLayout()==Xi,e=this.getLayoutBox(),n=e.height>0&&e.width>0;return t||n},e.isFixed=function(){return this.tu},e.overlaps=function(t){return n=t,(e=this.getLayoutBox()).top<=n.bottom&&n.top<=e.bottom&&e.left<=n.right&&n.left<=e.right;var e,n},e.prerenderAllowed=function(){return this.element.prerenderAllowed()},e.previewAllowed=function(){return this.element.previewAllowed()},e.isBuildRenderBlocking=function(){return this.element.isBuildRenderBlocking()},e.whenWithinViewport=function(t){if(Jt(!1!==t),!this.isLayoutPending()||!0===t)return u();var e=t,n=String(e);return this.eu&&this.eu[n]?this.eu[n].promise:this.isWithinViewportRatio(e)?u():(this.eu=this.eu||{},this.eu[n]=new h,this.eu[n].promise)},e.cu=function(){if(this.eu){var t=this.getDistanceViewportRatio();for(var e in this.eu)this.isWithinViewportRatio(parseFloat(e),t)&&(this.eu[e].resolve(),delete this.eu[e])}},e.getDistanceViewportRatio=function(){var t=ai(this.element).getRect(),e=this.getLayoutBox(),n=this.qe.getScrollDirection(),i=1,r=0;if(t.right<e.left||t.left>e.right)return{distance:!1};if(t.bottom<e.top)r=e.top-t.bottom,-1==n&&(i=2);else{if(!(t.top>e.bottom))return{distance:!0};r=t.top-e.bottom,1==n&&(i=2)}return{distance:r,scrollPenalty:i,viewportHeight:t.height}},e.isWithinViewportRatio=function(t,e){if("boolean"==typeof t)return t;var n=e||this.getDistanceViewportRatio(),i=n.distance,r=n.scrollPenalty,o=n.viewportHeight;return"boolean"==typeof i?i:i<o*t/r},e.renderOutsideViewport=function(){return this.cu(),this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())},e.idleRenderOutsideViewport=function(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())},e.layoutScheduled=function(t){this.Ke=3,this.element.layoutScheduleTime=t},e.layoutCanceled=function(){this.Ke=this.hasBeenMeasured()?2:1},e.startLayout=function(){var t=this;if(this.uu)return this.uu;if(4==this.Ke)return u();if(5==this.Ke)return Promise.reject(this.Ze);if(Jt(0!=this.Ke),Jt(this.isDisplayed()),3!=this.Ke){var e=Kt().createExpectedError("startLayout called but not LAYOUT_SCHEDULED","currently: ",this.Ke);return xo(e,this.element),Promise.reject(e)}if(this.Je>0&&!this.element.isRelayoutNeeded())return Kt().fine(_o,"layout canceled since it wasn't requested:",this.debugid,this.Ke),this.Ke=4,u();Kt().fine(_o,"start layout:",this.debugid,"count:",this.Je),this.Je++,this.Ke=3,this.Qe=new AbortController;var n=this.Qe.signal,i=new Promise((function(e,i){si(t.hostWin).mutate((function(){var r;try{r=t.element.layoutCallback(n)}catch(t){i(t)}Promise.resolve(r).then(e,i)})),n.onabort=function(){return i(Ro())}})).then((function(){return t.lu(!0,n)}),(function(e){return t.lu(!1,n,e)}));return this.uu=i},e.lu=function(t,e,n){if(this.Qe=null,e.aborted){var i=Kt().createError("layoutComplete race");throw i.associatedElement=this.element,Kt().expectedError(_o,i),Ro()}if(this.hu&&(this.hu(),this.hu=null),this.uu=null,this.Ke=t?4:5,this.Ze=n,!t)return Kt().fine(_o,"loading failed:",this.debugid,n),Promise.reject(n);Kt().fine(_o,"layout complete:",this.debugid)},e.isLayoutPending=function(){return 4!=this.Ke&&5!=this.Ke},e.loadedOnce=function(){return this.element.R1()?this.element.whenLoaded():this.su},e.isInViewport=function(){return this.au&&this.cu(),this.au},e.setInViewport=function(t){this.au=t},e.unlayout=function(){0!=this.Ke&&1!=this.Ke&&2!=this.Ke&&(this.Qe&&(this.Qe.abort(),this.Qe=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.Ke=1,this.Je=0,this.uu=null))},e.getTaskId=function(t){return this.debugid+"#"+t},e.pause=function(){this.element.pause()},e.pauseOnRemove=function(){this.element.pause()},e.resume=function(){this.element.resume()},e.unload=function(){this.element.unmount()},e.disconnect=function(){delete this.element.__AMP__RESOURCE,this.element.disconnect(!0)},t}(),Io="ready-scan",ko="scheduler",Do="250% 31.25%",No=function(){function t(t){var e=this;this.vu=t;var n=t.win;this.du=new n.IntersectionObserver((function(t){return e.mu(t)}),{root:xe(n)?n.document:null,rootMargin:Do}),this.pu=new Map,this.gu=new Map,this.bu=[],this.yu=!1,t.whenReady().then((function(){return e.wu()})),this.Au=t.onVisibilityChanged((function(){return e.xu()}))}var e=t.prototype;return e.dispose=function(){this.du.disconnect(),this.gu.clear(),this.Au&&(this.Au(),this.Au=null)},e.scheduleAsap=function(t){this.gu.set(t,{asap:!0,isIntersecting:!1}),this.Eu(t)},e.schedule=function(t){this.gu.has(t)||(t.deferredMount()?(this.gu.set(t,{asap:!1,isIntersecting:!1}),this.du.observe(t),this.pu.size>0&&this.pu.forEach((function(e,n){Me(n,t)&&e.observe(t)}))):this.gu.set(t,{asap:!1,isIntersecting:!0}),this.Eu(t))},e.unschedule=function(t){this.gu.has(t)&&(this.gu.delete(t),this.du.unobserve(t),this.pu.size>0&&this.pu.forEach((function(e){e.unobserve(t)})),this.bu&&(z(this.bu,t),this.wu()))},e.setContainer=function(t,e){var n=this;if(!this.pu.has(t)){var i=new this.vu.win.IntersectionObserver((function(t){return n.mu(t)}),{root:e||t,rootMargin:Do});this.pu.set(t,i),this.gu.forEach((function(e,n){!e.asap&&Me(t,n)&&i.observe(n)}))}},e.removeContainer=function(t){var e=this.pu.get(t);e&&(e.disconnect(),this.pu.delete(t))},e.Pu=function(){var t=this;this.vu.isReady()&&!this.yu&&(this.yu=!0,this.vu.win.setTimeout((function(){t.vu.signals().signal(Io)}),50))},e.xu=function(){var t=this,e=this.vu.getVisibilityState();e!=li&&e!=fi&&e!=hi&&e!=ci||this.gu.forEach((function(e,n){return t.Tu(n)}))},e.Eu=function(t){var e=this.bu;e?(e.includes(t)||e.push(t),this.wu()):this.Tu(t)},e.wu=function(){var t=this.vu.isReady(),e=this.bu;if(e)for(var n=0;n<e.length;n++){var i=e[n];(t||Pe(i,this.vu.getRootNode()))&&(e.splice(n--,1),this.Tu(i))}t&&(this.bu=null,this.Pu())},e.mu=function(t){for(var e=0;e<t.length;e++){var n=t[e],i=n.isIntersecting,r=n.target,o=this.gu.get(r);if(o){var s=i||o.isIntersecting;s!==o.isIntersecting&&this.gu.set(r,{asap:o.asap,isIntersecting:s}),s&&this.Tu(r)}}},e.Tu=function(t){var e=this.bu,n=!(e&&e.includes(t)),i=this.gu.get(t)||{asap:!1,isIntersecting:!1},r=i.asap,o=i.isIntersecting,s=this.vu.getVisibilityState();if(n&&(r||o)&&(s==li||s==fi||s==hi&&t.prerenderAllowed()||s==ci&&t.previewAllowed())){this.unschedule(t);var a=this.vu.win;(r||t.getBuildPriority()<=0?a.setTimeout:a.requestIdleCallback||a.setTimeout)((function(){return t.mountInternal()}))}},t}();function Bo(t){return vn(t,ko,No),yn(t,ko)}var Vo=function(){function t(){this.Ou=[]}var n=t.prototype;return n.peek=function(){var t=this.length;return t?this.Ou[t-1].item:null},n.enqueue=function(t,e){if(isNaN(e))throw new Error("Priority must not be NaN.");var n=this.Iu(e);this.Ou.splice(n,0,{item:t,priority:e})},n.Iu=function(t){for(var e=-1,n=0,i=this.length;n<=i&&(e=Math.floor((n+i)/2))!==this.length;)if(this.Ou[e].priority<t)n=e+1;else{if(!(e>0&&this.Ou[e-1].priority>=t))break;i=e-1}return e},n.forEach=function(t){for(var e=this.length;e--;)t(this.Ou[e].item)},n.dequeue=function(){var t=this.Ou.pop();return t?t.item:null},e(t,[{key:"length",get:function(){return this.Ou.length}}]),t}(),Uo="CHUNK",jo=/nochunking=1/.test(self.location.hash),Fo=u();function qo(t){return vn(t,"chunk",Ko),yn(t,"chunk")}function Ho(t,e,n){if(jo)Fo.then(e);else{var i=qo(t.documentElement||t);i.runForStartup(e),n&&i.runForStartup((function(){i.Ru=!0}))}}function zo(t,e,n){jo?Fo.then(e):qo(t).run(e,n)}var Go="not_run",Wo=function(){function t(t){this.state=Go,this.Su=t}var e=t.prototype;return e._u=function(t){if("run"!=this.state){this.state="run";try{this.Su(t)}catch(t){throw this.Mu(t),t}}},e.ku=function(){return this.Su.displayName||this.Su.name},e.Mu=function(t){},e.Cu=function(){return!1},e.Nu=function(){return!1},t}(),Yo=function(t){N(n,t);var e=V(n);function n(t,n,i){var r;return(r=e.call(this,t)).ju=i,r}var i=n.prototype;return i.Mu=function(t){Jr(self.document)},i.Cu=function(){return this.Du()},i.Nu=function(){return this.ju.Lu},i.Du=function(){return this.ju.ampdoc.isVisible()},n}(Wo),Ko=function(){function t(t){var e,n=this;this.ampdoc=t,this.t=t.win,this.Uu=new Vo,this.zu=this.Hu.bind(this),this.Gu=0,this.Vu=!(!this.t.navigator.scheduling||!this.t.navigator.scheduling.isInputPending),this.Fu=!1,this.Ru=this.t.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.t.addEventListener("message",(function(t){"amp-macro-task"==jr(t)&&n.Hu(null)})),this.Lu=!1,(e=t,wn(e,"viewer")).then((function(){n.Lu=!0})),t.onVisibilityChanged((function(){t.isVisible()&&n.Bu()}))}var e=t.prototype;return e.run=function(t,e){var n=new Wo(t);this.qu(n,e)},e.runForStartup=function(t){var e=new Yo(t,this.t,this);this.qu(e,Number.POSITIVE_INFINITY)},e.qu=function(t,e){this.Uu.enqueue(t,e),this.Bu()},e.Wu=function(t){for(var e=this.Uu.peek();e&&e.state!==Go;)this.Uu.dequeue(),e=this.Uu.peek();return e&&t&&this.Uu.dequeue(),e},e.Hu=function(t){var e,n=this,i=this.Wu(!0);if(!i)return this.Fu=!1,this.Gu=0,!1;try{e=Date.now(),i._u(t)}finally{Fo.then().then().then().then().then().then().then().then().then((function(){n.Fu=!1,n.Gu+=Date.now()-e,Kt().fine(Uo,i.ku(),"Chunk duration",Date.now()-e,n.Gu),n.Bu()}))}return!0},e.$u=function(t){var e=this;if(this.Ru&&(this.Vu?this.t.navigator.scheduling.isInputPending():this.Gu>5))return this.Gu=0,void this.Yu();Fo.then((function(){e.zu(t)}))},e.Bu=function(){if(!this.Fu){var t=this.Wu();if(t)return t.Cu()?(this.Fu=!0,void this.$u(null)):void(t.Nu()&&this.t.requestIdleCallback?function(t,e,n,i){var r=Date.now();t.requestIdleCallback((function e(o){if(o.timeRemaining()<15){var s=n-(Date.now()-r);s<=0||o.didTimeout?(Kt().fine(Uo,"Timed out",n,o.didTimeout),i(o)):(Kt().fine(Uo,"Rescheduling with",s,o.timeRemaining()),t.requestIdleCallback(e,{timeout:s}))}else Kt().fine(Uo,"Running idle callback with ",15),i(o)}),{timeout:n})}(this.t,0,2e3,this.zu):this.Yu())}},e.Yu=function(){this.t.postMessage("amp-macro-task","*")},t}(),Jo="activate",Xo=function(){function t(t){this.element=t,this.win=ee(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 e=t.prototype;return e.signals=function(){return this.element.signals()},e.getDefaultActionAlias=function(){return this.defaultActionAlias_},e.getLayoutPriority=function(){return 0},e.updateLayoutPriority=function(t){this.element.getResources().updateLayoutPriority(this.element,t)},e.getLayout=function(){return this.element.getLayout()},e.getLayoutBox=function(){return this.element.getLayoutBox()},e.getLayoutSize=function(){return this.element.getLayoutSize()},e.getAmpDoc=function(){return this.element.getAmpDoc()},e.getVsync=function(){return si(this.win)},e.getConsentPolicy=function(){var t=null;return this.element.hasAttribute("data-block-on-consent")&&(t=this.element.getAttribute("data-block-on-consent")||"default"),t},e.isLayoutSupported=function(t){return t==Hi},e.isAlwaysFixed=function(){return!1},e.upgradeCallback=function(){return null},e.buildCallback=function(){},e.preconnectCallback=function(t){},e.attachedCallback=function(){},e.detachedCallback=function(){},e.setAsContainer=function(t){this.element.setAsContainerInternal(t)},e.removeAsContainer=function(){this.element.removeAsContainerInternal()},e.isBuildRenderBlocking=function(){return!1},e.createPlaceholderCallback=function(){return null},e.renderOutsideViewport=function(){return"inabox"==Lt(this.win).runtime||3},e.idleRenderOutsideViewport=function(){return!1},e.ensureLoaded=function(){},e.setReadyState=function(t,e){this.element.setReadyStateInternal(t,e)},e.mountCallback=function(t){},e.unmountCallback=function(){},e.isRelayoutNeeded=function(){return!1},e.layoutCallback=function(){return u()},e.firstLayoutCompleted=function(){this.togglePlaceholder(!1)},e.pauseCallback=function(){},e.resumeCallback=function(){},e.unlayoutCallback=function(){return!1},e.unlayoutOnPause=function(){return!1},e.reconstructWhenReparented=function(){return!0},e.loadPromise=function(t){return qr(t)},e.registerAction=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;$o(this),this.actionMap_[t]={handler:e,minTrust:n}},e.registerDefaultAction=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jo,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;Jt(!this.defaultActionAlias_),this.registerAction(e,t,n),this.defaultActionAlias_=e},e.executeAction=function(t,e){var n=t.method;n===Jo&&(n=this.defaultActionAlias_||n),$o(this);var i=this.actionMap_[n],r=this.element.tagName;Xt(i,"Method not found: ".concat(n," in ").concat(r));var o=i.handler,s=i.minTrust;if(t.satisfiesTrust(s))return o(t)},e.forwardEvents=function(t,e){var n=this,i=(j(t)?t:[t]).map((function(t){return Ur(e,t,(function(e){Re(n.element,t,jr(e)||{})}))}));return function(){return i.forEach((function(t){return t()}))}},e.getPlaceholder=function(){return this.element.getPlaceholder()},e.togglePlaceholder=function(t){this.element.togglePlaceholder(t)},e.getFallback=function(){return this.element.getFallback()},e.toggleFallback=function(t){this.element.toggleFallback(t)},e.toggleLoading=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.element.toggleLoading(t,e)},e.getOverflowElement=function(){return this.element.getOverflowElement()},e.renderStarted=function(){this.element.renderStarted()},e.getViewport=function(){return ai(this.getAmpDoc())},e.getIntersectionElementLayoutBox=function(){return this.getLayoutBox()},e.collapse=function(){Jn(this.getAmpDoc()).collapseElement(this.element)},e.attemptCollapse=function(){return Jn(this.getAmpDoc()).attemptCollapse(this.element)},e.forceChangeHeight=function(t){Jn(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)},e.attemptChangeHeight=function(t){return Jn(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)},e.attemptChangeSize=function(t,e,n){return Jn(this.getAmpDoc()).requestChangeSize(this.element,t,e,void 0,n)},e.measureElement=function(t){return Jn(this.getAmpDoc()).measureElement(t)},e.mutateElement=function(t,e){return this.measureMutateElement(null,t,e)},e.measureMutateElement=function(t,e,n){return Jn(this.getAmpDoc()).measureMutateElement(n||this.element,t,e)},e.mutateElementSkipRemeasure=function(t){return Jn(this.getAmpDoc()).mutateElement(this.element,t,!0)},e.collapsedCallback=function(t){},e.expand=function(){Jn(this.getAmpDoc()).expandElement(this.element)},e.mutatedAttributesCallback=function(t){},e.onLayoutMeasure=function(){},e.user=function(){return Wt(this.element)},e.getApi=function(){return this},t}();function $o(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var Qo,Zo=function(t){N(n,t);var e=V(n);function n(){return e.apply(this,arguments)}return n}(Xo),ts=Date.now(),es={bubbles:!1},ns=function(){return!0},is=[],rs=new Set;function os(t,n){var i=function(t,n){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;var i=function(i){N(o,i);var r=V(o);function o(){var t;return(t=r.call(this)).createdCallback(),t}var s=o.prototype;return s.createdCallback=function(){this.Xu=!1,this.Ju=!1,this.Qu=null,this.Zu=!1,this.no=null,this.io=null,this.ro="upgrading",this.everAttached=!1,this.vu=null,this.qe=null,this.eo=Hi,this.Je=0,this.uo=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this.oo=void 0,this.layoutScheduleTime=void 0;var e=this,n=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.so=n===Zo?null:n||null,this.so||is.push(this),this.ho=null,this.ao=1,this.fo=0,this.co=void 0,this.Ku=void 0,this.Te=new vi,this.so&&this.Te.signal(lr);var i=function(t,e){return In(t=En(t),e)?On(t,e):null}(t,"performance");this.lo=i&&i.isPerformanceTrackingOn(),this.vo=null,e.__AMP_UPG_RES&&(e.__AMP_UPG_RES(e),delete e.__AMP_UPG_RES,delete e.__AMP_UPG_PRM)},s.signals=function(){return this.Te},s.getAmpDoc=function(){return Jt(this.vu),this.vu},s.getResources=function(){return Jt(this.qe),this.qe},s.isUpgraded=function(){return 2==this.ao},s.whenUpgraded=function(){return this.Te.whenSignal(fr)},s.upgrade=function(t){this.Ku||1==this.ao&&(this.so=t,this.Te.signal(lr),this.everAttached&&this.do())},s.markUnresolved=function(){this.so||this.classList.add("amp-unresolved","i-amphtml-unresolved")},s.getUpgradeDelayMs=function(){return this.fo},s.mo=function(e,n){this.ho=e,this.fo=t.Date.now()-n,this.ao=2,this.setReadyStateInternal($e),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.po(),this.dispatchCustomEventForTesting(ur),this.R1()||this.getResources().upgraded(this),this.Te.signal(fr)},s.po=function(){this.eo!=Hi&&this.ho&&!this.ho.isLayoutSupported(this.eo)&&(Xt(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."),Xt(!1,"Layout not supported: ".concat(this.eo)))},s.getBuildPriority=function(){return this.so?this.so.getBuildPriority(this):3},s.getLayoutPriority=function(){return this.ho?this.ho.getLayoutPriority():3},s.getDefaultActionAlias=function(){return Jt(this.isUpgraded()),this.ho.getDefaultActionAlias()},s.isBuilding=function(){return!!this.Qu},s.isBuilt=function(){return this.Xu},s.whenBuilt=function(){return this.Te.whenSignal(dr)},s.buildInternal=function(){var t=this;if(as(this),Jt(this.so),this.Qu)return this.Qu;this.setReadyStateInternal($e);var e=this.bo();this.yo();var n=e.then((function(){var e,n=t.wo(),i=n?null:t.Ao();if(n||i)return(e=t,Dn(e,"consentPolicyManager","amp-consent")).then((function(t){return!t||(n?t.whenPolicyUnblock(n):t.whenPurposesUnblock(i))})).then((function(t){if(!t)throw new Error(To)}))})).then((function(){return Jt(t.ho).buildCallback()}));return this.Qu=n.then((function(){if(t.Xu=!0,t.classList.add("i-amphtml-built"),t.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),t.Te.signal(dr),t.R1()?t.setReadyStateInternal(t.ro!=$e?t.ro:Qe):(t.setReadyStateInternal(Ze),t.preconnect(!1)),t.Ju&&t.an(),t.co&&ei(ee(t)).delay(t.xo.bind(t),1),!t.getPlaceholder()){var e=t.createPlaceholder();e&&t.appendChild(e)}}),(function(e){throw t.Te.rejectSignal(dr,e),t.R1()&&t.setReadyStateInternal(en,e),Mo(e)||xo(e,t),e}))},s.build=function(){var t=this;return this.Qu?this.Qu:this.Te.whenSignal(lr).then((function(){return t.R1()&&Bo(t.getAmpDoc()).scheduleAsap(t),t.whenBuilt()}))},s.mountInternal=function(){var t=this;if(this.no)return this.no;this.io=this.io||new AbortController;var e=this.io.signal;return this.no=this.buildInternal().then((function(){if(Jt(t.R1()),!e.aborted){t.setReadyStateInternal(t.ro!=Qe?t.ro:t.so.usesLoading(t)?Ze:Qe),t.Zu=!0;var n=t.ho.mountCallback(e);return!!n&&n.then(ns)}})).then((function(n){if(t.io=null,e.aborted)throw Ro();t.Te.signal(mr),t.so.usesLoading(t)&&!n||t.setReadyStateInternal(tn)})).catch((function(e){var n;throw t.io=null,(n=e)&&("string"==typeof n?n.startsWith(So):"string"==typeof n.message&&n.message.startsWith(So))?t.no=null:(t.Te.rejectSignal(mr,e),t.setReadyStateInternal(en,e)),e}))},s.mount=function(){var t=this;if(this.no)return this.no;this.io=this.io||new AbortController;var e=this.io.signal;return this.Te.whenSignal(lr).then((function(){if(!t.R1())return t.whenBuilt();if(e.aborted)throw Ro();return Bo(t.getAmpDoc()).scheduleAsap(t),t.whenMounted()}))},s.unmount=function(){this.Ju&&this.pause(),this.R1()?(this.io&&(this.io.abort(),this.io=null),Bo(this.getAmpDoc()).unschedule(this),this.Zu&&this.ho.unmountCallback(),this.Zu=!1,this.no=null,this.Eo(),this.Ju&&this.do(!0)):this.Po()},s.whenMounted=function(){return this.Te.whenSignal(mr)},s.whenLoaded=function(){return this.Te.whenSignal(gr)},s.ensureLoaded=function(t){var e=this;return this.mount().then((function(){if(e.R1())return e.so.usesLoading(e)&&e.ho.ensureLoaded(),e.whenLoaded();var n=e.To();return n.whenBuilt().then((function(){if(4!=n.getState()&&((3!=n.getState()||n.isMeasureRequested())&&n.measure(),n.isDisplayed()))return e.getResources().scheduleLayoutOrPreload(n,!0,t,!0),e.whenLoaded()}))}))},s.setAsContainerInternal=function(t){Bo(this.getAmpDoc()).setContainer(this,t)},s.removeAsContainerInternal=function(){Bo(this.getAmpDoc()).removeContainer(this)},s.setReadyStateInternal=function(t,e){if(t!==this.ro&&(this.ro=t,this.R1()))switch(t){case Ze:return this.Te.signal(pr),this.Te.reset(yr),this.Te.reset(gr),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(hr);case tn:return this.Te.signal(pr),this.Te.signal(gr),this.Te.reset(yr),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),Re(this,"load",null,es),void this.dispatchCustomEventForTesting(cr);case en:return this.Te.rejectSignal(gr,e),this.toggleLoading(!1),void Re(this,"error",e,es)}},s.preconnect=function(t){var e=this;Jt(this.isUpgraded()),t?this.ho.preconnectCallback(t):Ho(this.getAmpDoc(),(function(){e.ownerDocument&&e.ownerDocument.defaultView&&e.ho.preconnectCallback(t)}))},s.R1=function(){return!!this.so&&this.so.R1()},s.deferredMount=function(){return!!this.so&&this.so.deferredMount(this)},s.isAlwaysFixed=function(){return!!this.ho&&this.ho.isAlwaysFixed()},s.updateLayoutBox=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isBuilt()&&this.onMeasure(e)},s.onMeasure=function(){Jt(this.isBuilt());try{this.ho.onLayoutMeasure()}catch(t){xo(t,this)}},s.yo=function(){var t;return void 0!==this.sizerElement||this.eo!==Wi&&this.eo!==$i||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null},s.Oo=function(t){if(this.eo!==Wi)if(this.eo!==$i);else{var e=t.querySelector(".i-amphtml-intrinsic-sizer");if(!e)return;e.setAttribute("src","")}else Ei(t,"paddingTop","0")},s.Io=function(){var t=this,e=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),n=!!this.vo,i=this.ownerDocument.defaultView;e!=n&&i&&(e?(this.vo=new br(i,(function(){return t.Ro()})),this.Ro()):this.So())},s.So=function(){this.vo&&(this.vo.dispose(),this.vo=null)},s.Ro=function(){var t=this.vo;if(t){t.start();var e=this.getAttribute("media")||null,n=!e||t.resolveMatchQuery(e);this.classList.toggle("i-amphtml-hidden-by-media-query",!n);var i=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");i&&Ei(this,"width",t.resolveListQuery(i));var r=this.eo===Wi?this.getAttribute("heights"):null;if(r){var o=this.yo();o&&Ei(o,"paddingTop",t.resolveListQuery(r))}t.complete(),this.To().requestMeasure()}},s.applySize=function(t,e,n){var i=this.yo();i&&(this.sizerElement=null,this.Oo(i),this._o((function(){i&&Ee(i)}))),void 0!==t&&Ei(this,"height",t,"px"),void 0!==e&&Ei(this,"width",e,"px"),n&&(null!=n.top&&Ei(this,"marginTop",n.top,"px"),null!=n.right&&Ei(this,"marginRight",n.right,"px"),null!=n.bottom&&Ei(this,"marginBottom",n.bottom,"px"),null!=n.left&&Ei(this,"marginLeft",n.left,"px")),this.Mo()&&this.ko(),Re(this,"amp:size-changed")},s.connectedCallback=function(){if(function(){if(void 0===Qo){var t=self.document.createElement("template");Qo="content"in t}return Qo}()||void 0!==this.Ku||(this.Ku=!!de(this,"template")),!this.Ku&&!this.Ju&&Se(this)){if(this.Ju=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this.vu){var t=ee(this),e=qn(t).getAmpDoc(this);this.vu=e,n(e,this,this.so)}if(this.qe||(this.qe=Zn(this.vu)),this.getResources().add(this),this.everAttached){var i=this.reconstructWhenReparented();i&&this.Eo(),this.isUpgraded()&&(i&&!this.R1()&&this.getResources().upgraded(this),this.an(),this.dispatchCustomEventForTesting(ur)),this.so&&this.R1()&&this.do()}else{this.everAttached=!0;try{this.eo=function(t){var e=t.getAttribute("i-amphtml-layout");if(e){var n,i=Zi(e);return nt(i),i!=Wi&&i!=$i||!t.firstElementChild?i==Hi&&Ti(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(n=t.sizerElement)||void 0===n||n.setAttribute("slot","i-amphtml-svc")),i}var r=xr(t),o=r.height,s=r.layout,a=r.width;if(t.classList.add(tr(s)),er(s)&&t.classList.add("i-amphtml-layout-size-defined"),s==Hi)Ti(t,!1);else if(s==zi)Si(t,{width:rt(a),height:rt(o)});else if(s==Gi)Ei(t,"height",rt(o));else if(s==Wi){var u=t.ownerDocument.createElement("i-amphtml-sizer");u.setAttribute("slot","i-amphtml-svc");var h=rr(o),c=rr(a);ot(h),ot(c),Si(u,{paddingTop:h/c*100+"%"}),t.insertBefore(u,t.firstChild),t.sizerElement=u}else if(s==$i){var l=Sr(t)(Pr),f=l.firstElementChild;it(f),f.setAttribute("src",'data:image/svg+xml;charset=utf-8,<svg height="'.concat(o,'" width="').concat(a,'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>')),t.insertBefore(l,t.firstChild),t.sizerElement=l}else s==Ki||s==Yi||(s==Ji?(a&&Ei(t,"width",a),o&&Ei(t,"height",o)):s==Xi&&(t.classList.add("i-amphtml-layout-awaiting-size"),a&&Ei(t,"width",a),Ei(t,"height",0)));return t.setAttribute("i-amphtml-layout",s),s}(this),this.Io()}catch(t){xo(t,this)}this.so?this.do():(rs.has("*")||rs.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}},s.Mo=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")},s.ko=function(){this.classList.remove("i-amphtml-layout-awaiting-size")},s.do=function(t){if(this.R1()){if(!this.no)if(Bo(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Qu)this.setReadyStateInternal(this.so&&this.so.usesLoading(this)?Ze:Qe);else if(this.setReadyStateInternal($e),!t){var e=this.so.getPreconnects(this);if(e&&e.length>0){var n=this.getAmpDoc();Ho(n,(function(){var t=n.win;if(t){var i=Qn(t);e.forEach((function(t){return i.url(n,t,!1)}))}}))}}}else this.Co()},s.Co=function(){var e=this;if(!this.Ku&&1==this.ao){var n=new(Jt(this.so))(this);this.ao=4;var i=t.Date.now(),r=n.upgradeCallback();if(r){if("function"==typeof r.then)return r.then((function(t){e.mo(t||n,i)})).catch((function(t){e.ao=3,d(t)}));this.mo(r,i)}else this.mo(n,i)}},s.disconnectedCallback=function(){this.disconnect(!1)},s.an=function(){this.Xu&&this.ho.attachedCallback()},s.disconnect=function(t){!this.Ku&&this.Ju&&(!t&&Se(this)||(t&&this.classList.remove("i-amphtml-element"),this.Ju=!1,this.getResources().remove(this),this.ho&&this.ho.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.So()))},s.dispatchCustomEventForTesting=function(t,e){},s.prerenderAllowed=function(){return!this.hasAttribute("noprerender")&&!!this.so&&this.so.prerenderAllowed(this)},s.previewAllowed=function(){return!!this.so&&this.so.previewAllowed(this)},s.isBuildRenderBlocking=function(){return!!this.ho&&this.ho.isBuildRenderBlocking()},s.createPlaceholder=function(){return this.ho?this.ho.createPlaceholderCallback():null},s.createLoaderLogo=function(){return this.so?this.so.createLoaderLogoCallback(this):{}},s.renderOutsideViewport=function(){return!!this.ho&&this.ho.renderOutsideViewport()},s.idleRenderOutsideViewport=function(){return!!this.ho&&this.ho.idleRenderOutsideViewport()},s.getLayoutBox=function(){return this.To().getLayoutBox()},s.getLayoutSize=function(){return this.To().getLayoutSize()},s.getOwner=function(){return this.To().getOwner()},s.getIntersectionChangeEntry=function(){var t=this.ho?this.ho.getIntersectionElementLayoutBox():this.getLayoutBox(),e=this.getOwner(),n=ai(this.getAmpDoc()).getRect();return function(t,e,n){var i,r,o,s,a=function(t){for(var e=-1/0,n=1/0,i=-1/0,r=1/0,o=0;o<arguments.length;o++){var s=arguments[o];if(s&&(e=Math.max(e,s.left),n=Math.min(n,s.left+s.width),i=Math.max(i,s.top),r=Math.min(r,s.top+s.height),n<e||r<i))return null}return n==1/0?null:Le(e,i,n-e,r-i)}(t,e,n)||Le(0,0,0,0);return function(t,e,n,i){var r=t,o=e;return e&&(n=ke(n,-e.left,-e.top),r=ke(r,-e.left,-e.top),o=ke(o,-e.left,-e.top)),{time:"undefined"!=typeof performance&&performance.now?performance.now():Date.now()-ts,rootBounds:o,boundingClientRect:r,intersectionRect:n,intersectionRatio:i}}(t,n,a,(r=t,o=(i=a).width*i.height,0==(s=r.width*r.height)?0:o/s))}(t,e&&e.getLayoutBox(),n)},s.To=function(){return this.getResources().getResourceForElement(this)},s.getResourceId=function(){return this.To().getId()},s.isRelayoutNeeded=function(){return!!this.ho&&this.ho.isRelayoutNeeded()},s.getImpl=function(){var t=this;return(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.bo():this.build()).then((function(){return t.ho}))},s.bo=function(){var t=this;return this.Te.whenSignal(lr).then((function(){return t.Co(),t.whenUpgraded()}))},s.getApi=function(){return this.getImpl().then((function(t){return t.getApi()}))},s.getLayout=function(){return this.eo},s.layoutCallback=function(t){var e=this;if(as(this),Jt(this.isBuilt()),t.aborted)return Promise.reject(Ro());this.dispatchCustomEventForTesting(hr);var n=0==this.Je;this.Te.reset(yr),n&&this.Te.signal(pr),this.toggleLoading(!0);var i=c((function(){return e.ho.layoutCallback()}));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),i.then((function(){if(t.aborted)throw Ro();n&&e.Te.signal(gr),e.setReadyStateInternal(tn),e.Je++,e.toggleLoading(!1),e.uo||(e.ho.firstLayoutCompleted(),e.uo=!0,e.dispatchCustomEventForTesting(cr))}),(function(i){if(t.aborted)throw Ro();throw n&&e.Te.rejectSignal(gr,i),e.setReadyStateInternal(en,i),e.Je++,e.toggleLoading(!1),i}))},s.pause=function(){this.isBuilt()&&(this.ho.pauseCallback(),!this.R1()&&this.ho.unlayoutOnPause()&&this.Po())},s.resume=function(){this.isBuilt()&&this.ho.resumeCallback()},s.unlayoutCallback=function(){if(as(this),!this.isBuilt())return!1;this.Te.signal(yr);var t=this.ho.unlayoutCallback();return t&&this.Eo(),this.dispatchCustomEventForTesting("amp:unload"),t},s.Po=function(){this.To().unlayout(),this.Ju&&this.qe&&this.qe.schedulePass()},s.Eo=function(){this.Je=0,this.uo=!1,this.Te.reset(mr),this.Te.reset(vr),this.Te.reset(pr),this.Te.reset(gr),this.Te.reset("ini-load")},s.reconstructWhenReparented=function(){return!!this.ho&&this.ho.reconstructWhenReparented()},s.collapse=function(){this.ho&&this.ho.collapse()},s.collapsedCallback=function(t){this.ho&&this.ho.collapsedCallback(t)},s.expand=function(){this.ho&&this.ho.expand()},s.mutatedAttributesCallback=function(t){this.ho?this.ho.mutatedAttributesCallback(t):this.R1()&&Bo(this).scheduleAsap(this)},s.enqueAction=function(t){as(this),this.isBuilt()?this.No(t,!1):(void 0===this.co&&(this.co=[]),Jt(this.co).push(t),this.build())},s.xo=function(){var t=this;if(this.co){var e=Jt(this.co);this.co=null,e.forEach((function(e){t.No(e,!0)}))}},s.No=function(t,e){try{this.ho.executeAction(t,e)}catch(e){d("Action execution failed:",e,t.node.tagName,t.method)}},s.wo=function(){var t,e,n=this.getAttribute("data-block-on-consent");if(null===n){if(!(e=(t=this).getAmpDoc().getMetaByName("amp-consent-blocking"))||!(e=e.toUpperCase().replace(/\s+/g,"")).split(",").includes(t.tagName))return null;n="default",this.setAttribute("data-block-on-consent",n)}return""==n||"default"==n?Jt(this.ho).getConsentPolicy():n},s.Ao=function(){var t,e=this.getAttribute("data-block-on-consent-purposes")||null;return null==e||null===(t=e.replace(/\s+/g,""))||void 0===t?void 0:t.split(",")},s.getPlaceholder=function(){return me(this,(function(t){return t.hasAttribute("placeholder")&&!ss(t)}))},s.togglePlaceholder=function(t){if(as(this),t){var e=this.getPlaceholder();e&&e.classList.remove("amp-hidden")}else for(var n=(ue("placeholder"),r=this,o="> [".concat("placeholder","]"),oe(r)?r.querySelectorAll(se(o,":scope")):he(r,o)),i=0;i<n.length;i++)ss(n[i])||n[i].classList.add("amp-hidden");var r,o},s.getFallback=function(){return pe(this,"fallback")},s.toggleFallback=function(t){as(this);var e,n=this.To().getState();if((this.R1()||!t||0!=n&&1!=n&&2!=n)&&(this.classList.toggle("amp-notsupported",t),1==t)){var i=this.getFallback();i&&(e=this.getAmpDoc(),yn(e,"owners")).scheduleLayout(this,i)}},s.renderStarted=function(){this.Te.signal(vr),this.togglePlaceholder(!1),this.toggleLoading(!1)},s.jo=function(t){var e,n,i=this.Je>0||this.Te.get(vr);return!(this.eo==Hi||this.hasAttribute("noloading")||i&&!t||(n=this.tagName.toUpperCase(),"AMP-AD"!==(e=n)&&"AMP-ANIM"!==e&&"AMP-EMBED"!==e&&"AMP-FACEBOOK"!==e&&"AMP-FACEBOOK-COMMENTS"!==e&&"AMP-FACEBOOK-PAGE"!==e&&"AMP-GOOGLE-DOCUMENT-EMBED"!==e&&"AMP-IFRAME"!==e&&"AMP-IMG"!==e&&"AMP-INSTAGRAM"!==e&&"AMP-LIST"!==e&&"AMP-PINTEREST"!==e&&"AMP-PLAYBUZZ"!==e&&"AMP-RENDER"!==e&&"AMP-TIKTOK"!==e&&"AMP-TWITTER"!==e&&!function(t){return"AMP-VIDEO"!=t&&Qi.test(t)}(n))||ve(this))},s.toggleLoading=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ownerDocument&&this.ownerDocument.defaultView){var n=function(t){return bn(t,"loadingIndicator")}(this.getAmpDoc());n&&((t=t&&this.jo(e))?n.track(this):n.untrack(this))}},s.getOverflowElement=function(){return void 0===this.oo&&(this.oo=pe(this,"overflow"),this.oo&&(this.oo.hasAttribute("tabindex")||this.oo.setAttribute("tabindex","0"),this.oo.hasAttribute("role")||this.oo.setAttribute("role","button"))),this.oo},s.overflowCallback=function(t,e,n){var i=this;this.getOverflowElement(),this.oo?(this.oo.classList.toggle("amp-visible",t),this.oo.onclick=t?function(){var t=Jn(i.getAmpDoc());t.forceChangeSize(i,e,n),t.mutateElement(i,(function(){i.overflowCallback(!1,e,n)}))}:null):t&&this.warnOnMissingOverflow&&Wt().warn("CustomElement","Cannot resize element and overflow is not available",this)},s._o=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.vu?Jn(this.getAmpDoc()).mutateElement(e||this,t,n):t()},e(o,[{key:"readyState",get:function(){return this.ro}}]),o}(t.HTMLElement);return t.__AMP_BASE_CE_CLASS=i,t.__AMP_BASE_CE_CLASS}(t,n),r=function(t){N(n,t);var e=V(n);function n(){return e.apply(this,arguments)}return n.prototype.adoptedCallback=function(){Object.getPrototypeOf(this)!==o&&Object.setPrototypeOf(this,o)},n}(i),o=r.prototype;return r}function ss(t){return"placeholder"in t}function as(t){Jt(!t.Ku)}function us(t){rs.add(t||"*");for(var e,n=a(is,!0);!(e=n()).done;){var i=e.value;null!=t&&i.tagName.toLowerCase()!==t||i.markUnresolved()}}var hs=new WeakMap;function cs(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function ls(t,e,n){var i=cs(t);if(i[e]){if(i[e]!=n){Xt(i[e]==Zo,"%s is already registered. The script tag for %s is likely included twice in the page.",e,e),i[e]=n;for(var r=0;r<is.length;r++){var o=is[r];o.tagName.toLowerCase()==e&&o.ownerDocument.defaultView==t&&(fs(o,n),is.splice(r--,1))}}}else vs(t,e,n)}function fs(t,e){try{t.upgrade(e)}catch(e){xo(e,t)}}function ds(t){(function(t){if(!t)return[];for(var e=t.querySelectorAll("script[custom-element],script[custom-template]"),n=[],i=0;i<e.length;i++){var r=e[i],o=r.getAttribute("custom-element")||r.getAttribute("custom-template"),s=ln(r.src);o&&s&&n.push({script:r,extensionId:o,extensionVersion:s.extensionVersion})}return n})(t.getHeadNode()).forEach((function(e){var n=e.extensionId,i=e.extensionVersion,r=e.script;t.declareExtension(n,i),r.addEventListener("error",(function(){return us(n)})),ms(t.win,n)})),t.isBodyAvailable()&&t.setExtensionsKnown()}function ms(t,e){cs(t)[e]||vs(t,e,Zo)}function ps(t,e,n){vs(e,n,cs(t)[n]||Zo)}function vs(t,e,n){cs(t)[e]=n;var i=os(t,gs);t.customElements.define(e,i)}function gs(t,e,n){hs.has(t)||(hs.set(t,!0),ds(t));var i=e.localName;n||t.declaresExtension(i)||Yn(t.win).installExtensionForDoc(t,i,"0.1")}var ys="amp-img",bs=["alt","aria-describedby","aria-label","aria-labelledby","crossorigin","referrerpolicy","title","importance","sizes","srcset","src"],ws=function(t){N(n,t);var e=V(n);function n(t){var n;return(n=e.call(this,t)).Do=!0,n.Lo=null,n.Uo=null,n.zo=null,n.Ho=0,n}n.R1=function(){return!1},n.prerenderAllowed=function(){return!0},n.usesLoading=function(){return!0},n.getPreconnects=function(t){var e=t.getAttribute("src");if(e)return[e];var n=t.getAttribute("srcset");if(n){var i=/\S+/.exec(n);if(i)return[i[0]]}return null};var i=n.prototype;return i.mutatedAttributesCallback=function(t){if(this.Lo){var e=bs.filter((function(e){return void 0!==t[e]}));t.src&&!t.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),e.push("srcset"),this.user().warn(ys,"Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element)),sr(e,this.element,this.Lo,!0),this.propagateDataset(this.Lo),qi(this.Lo),n.R1()&&!this.Lo.complete&&this.setReadyState(Ze)}},i.preconnectCallback=function(t){var e=this.element.getAttribute("src");if(e)Qn(this.win).url(this.getAmpDoc(),e,t);else{var n=this.element.getAttribute("srcset");if(!n)return;var i=/\S+/.exec(n);i&&Qn(this.win).url(this.getAmpDoc(),i[0],t)}},i.isLayoutSupported=function(t){return er(t)},i.Go=function(){if(this.Lo)return this.Lo;this.Do=!this.element.hasAttribute("fallback");var t,e,n=Ce(this.element);return n&&(this.Lo=ce(this.element,"> img:not([placeholder])")),this.Lo=this.Lo||new Image,this.Lo.setAttribute("decoding","async"),this.element.id&&this.Lo.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(ys,"Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying <img> element.")),this.Vo(!0),sr(bs,this.element,this.Lo),this.propagateDataset(this.Lo),qi(this.Lo),or(this.Lo,!0),t=this.element,e=this.Lo,t.hasAttribute("object-fit")&&Ei(e,"object-fit",t.getAttribute("object-fit")),t.hasAttribute("object-position")&&Ei(e,"object-position",t.getAttribute("object-position")),n||this.element.appendChild(this.Lo),this.Lo},i.Vo=function(t){var e=this;if(this.Lo&&!this.element.hasAttribute("i-amphtml-ssr")&&!this.element.hasAttribute("sizes")&&!this.Lo.hasAttribute("sizes")){var n=this.element.getAttribute("srcset");if(n&&!/[0-9]+x(?:,|$)/.test(n)){var i=this.element.getLayoutSize().width;if(this.Fo(i)){var r=this.getViewport().getWidth(),o="(max-width: ".concat(r,"px) ").concat(i,"px, "),s=i+"px";if(this.getLayout()!==zi){var a=Math.round(100*i/r);s=Math.max(a,100)+"vw"}var u=o+s;t?this.Lo.setAttribute("sizes",u):this.mutateElement((function(){e.Lo.setAttribute("sizes",u)})),this.Ho=i}}}},i.Fo=function(t){return!this.Lo.hasAttribute("sizes")||t>this.Ho},i.reconstructWhenReparented=function(){return!1},i.mountCallback=function(){var t=this,e=!!this.Lo,n=this.Go();e||(Ur(n,"load",(function(){t.setReadyState(tn),t.firstLayoutCompleted(),t.Bo()})),Ur(n,"error",(function(e){t.setReadyState(en,e),t.qo()}))),n.complete?(this.setReadyState(tn),this.firstLayoutCompleted(),this.Bo()):this.setReadyState(Ze)},i.unmountCallback=function(){var t=this.Lo;t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ee(t),this.Lo=null)},i.ensureLoaded=function(){this.Lo.loading="eager"},i.layoutCallback=function(){var t=this;this.Go();var e=this.Lo;return this.Uo=Ur(e,"load",(function(){return t.Bo()})),this.zo=Ur(e,"error",(function(){return t.qo()})),this.element.getLayoutSize().width<=0?u():this.loadPromise(e)},i.unlayoutCallback=function(){if(!n.R1()){this.zo&&(this.zo(),this.zo=null),this.Uo&&(this.Uo(),this.Uo=null);var t=this.Lo;return t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ee(t),this.Lo=null),!0}},i.firstLayoutCompleted=function(){var t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?Ai(t,{opacity:0}):this.togglePlaceholder(!1)},i.Bo=function(){!this.Do&&this.Lo.classList.contains("i-amphtml-ghost")&&(this.Lo.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))},i.qo=function(){this.Do&&(this.Lo.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this.Do=!1)},i.propagateDataset=function(t){for(var e in t.dataset)e in this.element.dataset||delete t.dataset[e];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}(Xo),As=function(t){N(n,t);var e=V(n);function n(){return e.apply(this,arguments)}n.prerenderAllowed=function(){return!0};var i=n.prototype;return i.isLayoutSupported=function(t){return t==Yi||er(t)},i.buildCallback=function(){!function(t){if(!Ce(t)){var e=function(t){var e;return Zi(null!==(e=t.getAttribute("layout"))&&void 0!==e?e:"")||xr(t).layout}(t);if(e!=Yi){var n=t.ownerDocument.createElement("div");or(n),function(t){return function(t){for(var e=[],n=t.firstChild;n;n=n.nextSibling)!ve(n)&&e.push(n);return e}(t)}(t).forEach((function(t){n.appendChild(t)})),t.appendChild(n)}}}(this.element)},n}(Xo);function Es(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=new(_i.getImage(t));n&&(o.referrerPolicy="no-referrer");var s=0;return null!=i&&(!function(t){var e;return null===(e=t.featurePolicy)||void 0===e?void 0:e.allowedFeatures().includes("attribution-reporting")}(t.document)?s=5:(i=Ss(t,s=6,r)(i),o.attributionSrc=i)),e=Ss(t,s,r)(e),o.src=e,o}function Ss(t,e,n){var i={ATTRIBUTION_REPORTING_STATUS:function(){return e}},r=ni(n||t.document),o={ATTRIBUTION_REPORTING_STATUS:!0};return function(t){return r.expandUrlSync(t,i,o)}}var Ts="amp-pixel",Ps=function(t){N(n,t);var e=V(n);function n(t){var n;return(n=e.call(this,t)).Wo=null,n}var i=n.prototype;return i.isLayoutSupported=function(t){return!0},i.buildCallback=function(){this.element.setAttribute("aria-hidden","true"),this.$o=this.element.getAttribute("referrerpolicy"),this.$o&&Xt("no-referrer"==this.$o,"".concat(Ts,': invalid "referrerpolicy" value "').concat(this.$o,'".')+' Only "no-referrer" is supported'),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")?Kt().info(Ts,"inabox img already present"):this.getAmpDoc().whenFirstVisible().then(this.Yo.bind(this))},i.Yo=function(){var t=this;if(this.Wo)return Kt().error(Ts,"duplicate pixel"),this.Wo;this.Wo=ei(this.win).promise(1).then((function(){var e=t.element.getAttribute("src");if(e)return ni(t.element).expandUrlAsync(t.Ko(e)).then((function(e){if(t.win){var n=function(t,e,n,i,r){return n&&"no-referrer"!==n&&Wt().error("pixel","Unsupported referrerPolicy: %s",n),"no-referrer"===n?function(t,e,n,i){if("referrerPolicy"in Image.prototype)return Es(t,e,!0,n,i);var r,o=(r={src:"about:blank",style:"display:none"},function(t,e){for(var n in e)t.setAttribute(n,e[n]);return t}(t.document.createElement("iframe"),r));return o.onload=function(){Es(o.contentWindow,e,void 0,void 0,i)},t.document.body.appendChild(o),o}(t,e,i,r):Es(t,e,!1,i,r)}(t.win,e,t.$o,t.element.getAttribute("attributionsrc"),t.element);return Kt().info(Ts,"pixel triggered: ",e),n}}))}))},i.Ko=function(t){return Xt(/^(https\:\/\/|\/\/)/i.test(t),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+t),t},n}(Xo),Os=function(){function t(t,e,n){var i=this;this.Xo=ei(t),this.Jo=e,this.Qo=n||0,this.Zo=-1,this.rs=0,this.es=!1,this.us=function(){i.os()}}var e=t.prototype;return e.isPending=function(){return-1!=this.Zo},e.schedule=function(t){var e=t||this.Qo;this.es&&e<10&&(e=10);var n=Date.now()+e;return(!this.isPending()||n-this.rs<-10)&&(this.cancel(),this.rs=n,this.Zo=this.Xo.delay(this.us,e),!0)},e.os=function(){this.Zo=-1,this.rs=0,this.es=!0,this.Jo(),this.es=!1},e.cancel=function(){this.isPending()&&(this.Xo.cancel(this.Zo),this.Zo=-1)},t}();function xs(t,e){var n=e.documentElement;return t.some((function(t){return n.hasAttribute(t)}))}function Rs(t){return xs(["⚡4email","amp4email"],t)}function Ms(t){return xs(["⚡","amp"],t)}var Cs="Action",_s="__AMP_ACTION_MAP__"+Math.random(),Ls="__AMP_ACTION_QUEUE__",Is="__AMP_ACTION_HANDLER__",ks={form:["submit","clear"]},Ds=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Ns={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},Bs=function(){function t(t,e,n,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"?",u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Math.random();this.node=t,this.method=e,this.args=n,this.source=i,this.caller=r,this.event=o,this.trust=s,this.actionEventType=a,this.tagOrTarget=u||t.tagName,this.sequenceId=h}return t.prototype.satisfiesTrust=function(t){if(!K(this.trust))return Kt().error(Cs,"Invalid trust for '".concat(this.method,"': ").concat(this.trust)),!1;if(this.trust<t){var e=function(t){switch(t){case 1:return"low";case 3:return"high";default:return nt(2===t),"default"}}(this.trust);return Wt().error(Cs,'"'.concat(this.actionEventType,'" event with "').concat(e,'" trust is not allowed to ')+'invoke "'.concat(this.tagOrTarget.toLowerCase(),".").concat(this.method,'".')),!1}return!0},t}(),Vs=function(){function t(t,e){this.ampdoc=t,this.gs=e||t.getRootNode(),this.bs=this.ampdoc.isSingleDoc()&&Rs(this.gs),this.ys=this.bs?Ds:null,this.ws=w(),this.As=w(),this.addEvent("tap"),this.addEvent("submit"),this.addEvent("change"),this.addEvent("input-debounced"),this.addEvent("input-throttled"),this.addEvent("valid"),this.addEvent("invalid")}var e=t.prototype;return e.addEvent=function(t){var e=this;if("tap"==t)this.gs.addEventListener("click",(function(n){if(!n.defaultPrevented){var i=n.target;e.trigger(i,t,n,3)}})),this.gs.addEventListener("keydown",(function(n){var i=n.key,r=n.target;if("Enter"==i||" "==i){var o=r.getAttribute("role"),s=o&&A(Ns,o.toLowerCase());!n.defaultPrevented&&s&&e.trigger(r,t,n,3)&&n.preventDefault()}}));else if("submit"==t)this.gs.addEventListener(t,(function(n){var i=n.target;e.trigger(i,t,n,3)}));else if("change"==t)this.gs.addEventListener(t,(function(n){var i=n.target;e.xs(n),e.trigger(i,t,n,3)}));else if("input-debounced"==t){var n=ft(this.ampdoc.win,(function(n){var i=n.target;e.trigger(i,t,n,3)}),300);this.gs.addEventListener("input",(function(t){var i=new js(t);e.xs(i),n(i)}))}else if("input-throttled"==t){var i=lt(this.ampdoc.win,(function(n){var i=n.target;e.trigger(i,t,n,3)}),100);this.gs.addEventListener("input",(function(t){var n=new js(t);e.xs(n),i(n)}))}else"valid"!=t&&"invalid"!=t||this.gs.addEventListener(t,(function(n){var i=n.target;e.trigger(i,t,n,3)}))},e.addGlobalTarget=function(t,e){this.ws[t]=e},e.addGlobalMethodHandler=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;this.As[t]={handler:e,minTrust:n}},e.trigger=function(t,e,n,i,r){return this.Es(t,e,n,i,r)},e.execute=function(t,e,n,i,r,o,s){var a=new Bs(t,e,n,i,r,o,s);this.Ps(a)},e.installActionHandler=function(t,e){if(Jt(Us(t.getAttribute("id")||"")||t.tagName.toLowerCase()in ks),t[Is])Kt().error(Cs,"Action handler already installed for ".concat(t));else{t[Is]=e;var n=t[Ls];j(n)&&ei(ee(t)).delay((function(){n.forEach((function(t){try{e(t)}catch(e){Kt().error(Cs,"Action execution failed:",t,e)}})),t[Ls].length=0}),1)}},e.hasAction=function(t,e,n){return!!this.Ts(t,e,n)},e.hasResolvableAction=function(t,e,n){var i=this,r=this.Ts(t,e,n);return!!r&&r.actionInfos.some((function(t){var e=t.target;return!!i.Os(e)}))},e.hasResolvableActionForTarget=function(t,e,n,i){var r=this,o=this.Ts(t,e,i);return!!o&&o.actionInfos.some((function(t){var e=t.target;return r.Os(e)==n}))},e.Os=function(t){return this.ws[t]?this.gs:this.gs.getElementById(t)},e.setAllowlist=function(t){Jt(t.every((function(t){return t.tagOrTarget&&t.method}))),this.ys=t},e.addToAllowlist=function(t,e,n){var i=this;n&&n.includes("email")!==this.bs||(this.ys||(this.ys=[]),j(e)||(e=[e]),e.forEach((function(e){i.ys.some((function(n){return n.tagOrTarget==t&&n.method==e}))||i.ys.push({tagOrTarget:t,method:e})})))},e.Es=function(t,e,n,i,r){var o=this,s=this.Ts(t,e);if(!s)return!1;var u=Math.random(),h=null;return s.actionInfos.forEach((function(c){var l=c.args,f=c.method,d=c.str,m=c.target,v=function(t,e,n){if(!t)return t;var i=n||{};if(e){var r=function(t){return t.detail}(e);r&&(i.event=r)}var o=w();return Object.keys(t).forEach((function(e){var n=t[e];if("object"==p(n)&&n.expression){var r=n.expression,s=function(t,e){if("."==e)return t;for(var n,i=t,r=a(e.split("."),!0);!(n=r()).done;){var o=n.value;if(!(o&&i&&void 0!==i[o]&&"object"==p(i)&&A(i,o))){i=void 0;break}i=i[o]}return i}(i,r);n=void 0===s?null:s}i[n]?o[e]=i[n]:o[e]=n})),o}(l,n,r),g=function(){var r=o.Os(m);if(r){var a=new Bs(r,f,v,t,s.node,n,i,e,r.tagName||m,u);return o.Ps(a)}o.Is('Target "'.concat(m,'" not found for action [').concat(d,"]."))};h=h?h.then(g):g()})),s.actionInfos.length>=1},e.Is=function(t,e){if(e){var n=Wt().createError("[".concat(Cs,"] ").concat(t));throw xo(n,e),n}Wt().error(Cs,t)},e.Ps=function(t){var e=t.method,n=t.tagOrTarget;if(this.ys&&!function(t,e){var n=t.method,i=t.node,r=t.tagOrTarget;n===Jo&&"function"==typeof i.getDefaultActionAlias&&(n=i.getDefaultActionAlias());var o=n.toLowerCase(),s=r.toLowerCase();return e.some((function(t){return(t.tagOrTarget.toLowerCase()===s||"*"===t.tagOrTarget)&&t.method.toLowerCase()===o}))}(t,this.ys))return this.Is('"'.concat(n,".").concat(e,'" is not allowlisted ').concat(JSON.stringify(this.ys),".")),null;var i=this.ws[n];if(i)return i(t);var r=t.node,o=this.As[e];if(o&&t.satisfiesTrust(o.minTrust))return o.handler(t);var s=r.tagName.toLowerCase();if(Us(s))return r.enqueAction?r.enqueAction(t):this.Is('Unrecognized AMP element "'.concat(s,'".'),r),null;var a=ks[s];if(Us(r.getAttribute("id")||"")||a&&a.indexOf(e)>-1){var u=r[Is];return u?u(t):(r[Ls]=r[Ls]||[],r[Ls].push(t)),null}return this.Is("Target (".concat(n,") doesn't support \"").concat(e,'" action.'),t.caller),null},e.Ts=function(t,e,n){for(var i,r=t;r;){if(n&&r==n)return null;var o=this.Rs(r,e);if(o&&!(i=r).disabled&&!le(i,":disabled"))return{node:r,actionInfos:Jt(o)};r=r.parentElement}return null},e.Rs=function(t,e){var n=this.Ss(t,e);return n&&n[e]||null},e.Ss=function(t,e){var n=t[_s];if(void 0===n)if(n=null,t.hasAttribute("on"))n=qs(t.getAttribute("on"),t),t[_s]=n;else if(t.hasAttribute("execute")){var i=t.getAttribute("execute");n=qs("".concat(e,":").concat(i),t),t[_s]=n}return n},e.setActions=function(t,e){t.setAttribute("on",e),delete t[_s]},e.xs=function(t){var e=w(),n=t.target;if(void 0!==n.value&&(e.value=n.value),"INPUT"==n.tagName&&(e.valueAsNumber=Number(n.value)),void 0!==n.checked&&(e.checked=n.checked),void 0===n.min&&void 0===n.max||(e.min=n.min,e.max=n.max),n.files&&(e.files=U(n.files).map((function(t){return{name:t.name,size:t.size,type:t.type}}))),Object.keys(e).length>0)try{t.detail=e}catch(t){}},t}();function Us(t){return"amp-"===t.substring(0,4)}var js=function(t){this.detail=null,function(t,e){var n=e||w();for(var i in t){var r=t[i];n[i]="function"==typeof r?Fs:t[i]}}(t,this)};function Fs(){Jt(null)}function qs(t,e){var n,i,r=zs.bind(null,t,e),o=Gs.bind(null,t,e),s=null,a=new Ks(t);do{if((n=a.next()).type==Ws.EOF||n.type==Ws.SEPARATOR&&";"==n.value);else if(n.type==Ws.LITERAL||n.type==Ws.ID){var u=n.value;o(a.next(),[Ws.SEPARATOR],":");var h=[];do{var c=o(a.next(),[Ws.LITERAL,Ws.ID]).value,l=Jo,f=null;(i=a.peek()).type==Ws.SEPARATOR&&"."==i.value&&(a.next(),l=o(a.next(),[Ws.LITERAL,Ws.ID]).value||l,(i=a.peek()).type==Ws.SEPARATOR&&"("==i.value&&(a.next(),f=Hs(a,o,r))),h.push({event:u,target:c,method:l,args:f,str:t}),i=a.peek()}while(i.type==Ws.SEPARATOR&&","==i.value&&a.next());s||(s=w()),s[u]=h}else r(!1,"; unexpected token [".concat(n.value||"","]"))}while(n.type!=Ws.EOF);return s}function Hs(t,e,n){var i,r,o=t.peek(),s=null;if(o.type==Ws.OBJECT){s=w();var a=t.next().value;s.__AMP_OBJECT_STRING__=a,e(t.next(),[Ws.SEPARATOR],")")}else do{var u=i=t.next(),h=u.type,c=u.value;if(h!=Ws.SEPARATOR||","!=c&&")"!=c)if(h==Ws.LITERAL||h==Ws.ID){e(t.next(),[Ws.SEPARATOR],"=");var l=[i=e(t.next(!0),[Ws.LITERAL,Ws.ID])];if(i.type==Ws.ID)for(o=t.peek();o.type==Ws.SEPARATOR&&"."==o.value;o=t.peek())t.next(),i=e(t.next(!1),[Ws.ID]),l.push(i);var f=0==(r=l).length?null:1==r.length?r[0].value:{expression:r.map((function(t){return t.value})).join(".")};s||(s=w()),s[c]=f,n((o=t.peek()).type==Ws.SEPARATOR&&(","==o.value||")"==o.value),"Expected either [,] or [)]")}else n(!1,"; unexpected token [".concat(i.value||"","]"))}while(i.type!=Ws.SEPARATOR||")"!=i.value);return s}function zs(t,e,n,i){return Xt(n,"Invalid action definition in %s: [%s] %s",e,t,i||"")}function Gs(t,e,n,i,r){return void 0!==r?zs(t,e,i.includes(n.type)&&n.value==r,"; expected [".concat(r,"]")):zs(t,e,i.includes(n.type)),n}var Ws={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},Ys=" \t\n\r\f\v \u2028\u2029",Ks=function(){function t(t){this._s=t,this.Ms=-1}var e=t.prototype;return e.next=function(t){var e=this.dr(t||!1);return this.Ms=e.index,e},e.peek=function(t){return this.dr(t||!1)},e.dr=function(t){var e=this.Ms+1;if(e>=this._s.length)return{type:Ws.EOF,index:this.Ms};var n=this._s.charAt(e);if(-1!=Ys.indexOf(n)){for(e++;e<this._s.length&&-1!=Ys.indexOf(this._s.charAt(e));e++);if(e>=this._s.length)return{type:Ws.EOF,index:e};n=this._s.charAt(e)}if(t&&(Js(n)||"."==n&&e+1<this._s.length&&Js(this._s[e+1]))){for(var i="."==n,r=e+1;r<this._s.length;r++){var o=this._s.charAt(r);if("."!=o){if(!Js(o))break}else i=!0}var s=this._s.substring(e,r),a=i?parseFloat(s):parseInt(s,10);return e=r-1,{type:Ws.LITERAL,value:a,index:e}}if(-1!=";:.()=,|!".indexOf(n))return{type:Ws.SEPARATOR,value:n,index:e};if(-1!="\"'".indexOf(n)){for(var u=-1,h=e+1;h<this._s.length;h++)if(this._s.charAt(h)==n){u=h;break}if(-1==u)return{type:Ws.INVALID,index:e};var c=this._s.substring(e+1,u);return e=u,{type:Ws.LITERAL,value:c,index:e}}if("{"==n){for(var l=1,f=-1,d=e+1;d<this._s.length;d++){var m=this._s[d];if("{"==m?l++:"}"==m&&l--,l<=0){f=d;break}}if(-1==f)return{type:Ws.INVALID,index:e};var p=this._s.substring(e,f+1);return e=f,{type:Ws.OBJECT,value:p,index:e}}for(var v=e+1;v<this._s.length&&-1==" \t\n\r\f\v \u2028\u2029;:.()=,|!\"'{}".indexOf(this._s.charAt(v));v++);var g=this._s.substring(e,v);if(e=v-1,t&&("true"==g||"false"==g)){var y="true"==g;return{type:Ws.LITERAL,value:y,index:e}}return Js(g.charAt(0))?{type:Ws.LITERAL,value:g,index:e}:{type:Ws.ID,value:g,index:e}},t}();function Js(t){return t>="0"&&t<="9"}function Xs(t){return!!t&&"function"==typeof t.getFormData}var $s=["GET","POST"],Qs=[j,b];function Zs(t,e){var n=k({},e);if(Xs(e.body)){var i=e.body;n.headers["Content-Type"]="multipart/form-data;charset=utf-8",n.body=function(t){for(var e=[],n=t.next();!n.done;n=t.next())e.push(n.value);return e}(i.entries())}return{input:t,init:n}}function ta(t,e){var n,i=t||{},r=i.credentials;return nt(void 0===r||"include"==r||"omit"==r),i.method=void 0===(n=i.method)?"GET":(n=n.toUpperCase(),nt($s.includes(n)),n),i.headers=i.headers||{},e&&(i.headers.Accept=e),nt(null!==i.body),i}function ea(t){return new Promise((function(e){if(t.ok)return e(t);var n=t.status,i=Wt().createError("HTTP error ".concat(n));throw i.retriable=function(t){return 415==t||t>=500&&t<600}(n),i.response=t,i}))}var na=function(){function t(t){this.win=t;var e=qn(t);this.ks=e.isSingleDoc()?e.getSingleDoc():null}var e=t.prototype;return e.Cs=function(t,e){var n=arguments,i=this;return function(t,e,n,i){if(!e)return u();var r=i.prerenderSafe?u():e.whenFirstVisible(),o=oi(e),s=mo(n),a=o.hasCapability("xhrInterceptor"),h=i.bypassInterceptorForDev&&!1;return s||!a||h?r:e.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?r.then((function(){return o.isTrustedViewer()})).then((function(e){if(e||Lr(t,"untrusted-xhr-interception")){var r={originalRequest:Zs(n,i)};return o.sendMessageAwaitResponse("xhr",r).then((function(t){return function(t,e){if(st(b(t),"Object expected: %s",t),"document"!=e)return new Response(t.body,t.init);var n=w(),i={status:200,statusText:"OK",getResponseHeader:function(t){return n[String(t).toLowerCase()]||null}};if(t.init){var r=t.init;j(r.headers)&&r.headers.forEach((function(t){var e=t[0],i=t[1];n[String(e).toLowerCase()]=String(i)})),r.status&&(i.status=parseInt(r.status,10)),r.statusText&&(i.statusText=String(r.statusText))}return new Response(t.body?String(t.body):"",i)}(t,i.responseType)}))}})):r}(this.win,this.ks,t,e).then((function(t){if(t)return t;if(Xs(e.body)){var r=e.body;e.body=r.getFormData()}return i.win.fetch.apply(null,n)}))},e.Ns=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=function(t,e,n){return nt("string"==typeof e),!1!==n.ampCors&&(e=Ao(t,e)),e}(this.win,t,e),e=function(t,e,n){n=n||{};var i=function(t){return t.origin||ro(t.location.href).origin}(t);return i==ro(e).origin&&(n.headers=n.headers||{},n.headers["AMP-Same-Origin"]="true"),n}(this.win,t,e),this.Cs(t,e).then((function(t){return t}),(function(e){var n=ro(t).origin;throw Wt().createExpectedError("XHR","Failed fetching (".concat(n,"/...):"),e&&e.message)}))},e.fetchJson=function(t,e){return this.fetch(t,function(t){var e=ta(t,"application/json");if("POST"==e.method&&!Xs(e.body)){nt(Qs.some((function(t){return t(e.body)}))),e.headers["Content-Type"]=e.headers["Content-Type"]||"text/plain;charset=utf-8";var n=e.headers["Content-Type"];e.body="application/x-www-form-urlencoded"===n?ho(e.body):JSON.stringify(e.body)}return e}(e))},e.fetchText=function(t,e){return this.fetch(t,ta(e,"text/plain"))},e.xssiJson=function(t,e){return e?t.text().then((function(t){return t.startsWith(e)?at(t.slice(e.length)):(Wt().warn("XHR",'Failed to strip missing prefix "'.concat(e,'" in fetch response.')),at(t))})):t.json()},e.fetch=function(t,e){var n=ta(e);return this.Ns(t,n).then((function(t){return ea(t)}))},e.sendSignal=function(t,e){return this.Ns(t,e).then((function(t){return ea(t)}))},e.getCorsUrl=function(t,e){return Ao(t,e)},t}(),ia=function(t){N(n,t);var e=V(n);function n(t){var n;return(n=e.call(this,t)).js=w(),n}var i=n.prototype;return i.fetch=function(e,n){var i=this,r=n&&n.headers&&n.headers.Accept||"",o=!n||!n.method||"GET"===n.method,s=this.Ds(e,r),a=!!this.js[s];if(o&&a)return this.js[s].then((function(t){return t.clone()}));var u=t.prototype.fetch.call(this,e,n);return o&&(this.js[s]=u.then((function(t){return delete i.js[s],t.clone()}),(function(t){throw delete i.js[s],t}))),u},i.Ds=function(t,e){return fo(wo(t,bo(this.win.location)))+e},n}(na),ra={"+":"-","/":"_","=":"."};function oa(t){var e=function(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=String.fromCharCode(t[n]);return e.join("")}(t);return btoa(e).replace(/[+/=]/g,(function(t){return ra[t]}))}var sa="CacheCidApi",aa=function(){function t(t){this.vu=t,this.yh=oi(this.vu),this.kl=null,this.Xo=ei(this.vu.win)}var e=t.prototype;return e.isSupported=function(){return this.yh.isCctEmbedded()&&this.yh.isProxyOrigin()},e.getScopedCid=function(t){var e=this;return this.yh.isCctEmbedded()?(this.kl||(this.kl=this.Nl("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc")),this.kl.then((function(n){return n?e.Cl(n,t):null}))):Promise.resolve(null)},e.Nl=function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i={publisherOrigin:bo(this.vu.win.location)},r="fetchCidTimeout";return this.Xo.timeoutPromise(3e4,ui(this.vu.win).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:i}),r).then((function(t){return t.json().then((function(t){if(t.optOut)return null;var i=t.publisherClientId;if(!i&&n&&t.alternateUrl){var r="".concat(t.alternateUrl,"?key=").concat("AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc");return e.Nl(r,!1)}return i}))})).catch((function(t){return t&&t.response?t.response.json().then((function(t){Kt().error(sa,JSON.stringify(t))})):t&&t.message==r?Kt().expectedError(sa,t):Kt().error(sa,t),null}))},e.Cl=function(t,e){var n=t+";"+e;return Gn(this.vu.win).sha384Base64(n).then((function(t){return"amp-"+t}))},t}(),ua="-test-amp-cookie-tmp";function ha(t,e){var n=function(t){try{return t.document.cookie}catch(t){return""}}(t);if(!n)return null;for(var i=n.split(";"),r=0;r<i.length;r++){var o=i[r].trim(),s=o.indexOf("=");if(-1!=s&&pt(o.substring(0,s).trim())==e){var a=o.substring(s+1).trim();return pt(a,a)}}return null}function ca(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};!function(t,e,n){if(e.allowOnProxyOrigin)Xt(!e.highestAvailableDomain,"Could not support highestAvailable Domain on proxy origin, specify domain explicitly");else{Xt(!mo(t.location.href),"Should never attempt to set cookie on proxy origin: ".concat(n));var i=ro(t.location.href).hostname.toLowerCase(),r=ro(Tt).hostname.toLowerCase();Xt(!(i==r||G(i,"."+r)),"Should never attempt to set cookie on proxy origin. (in depth check): "+n)}}(t,r,e);var o=void 0;r.domain?o=r.domain:r.highestAvailableDomain&&(o=function(t){var e=t.document.head&&t.document.head.querySelector("meta[name='amp-cookie-scope']");if(e){var n=e.getAttribute("content")||"",i=bo(t.location.href);return G(i,"."+n)?n:i.split("://")[1]}if(!mo(t.location.href))for(var r=t.location.hostname.split("."),o=r[r.length-1],s=function(t){for(var e=ua;ha(t,e);)e=ua+0;return e}(t),a=r.length-2;a>=0;a--)if(o=r[a]+"."+o,la(t,s,"delete",Date.now()+1e3,o),"delete"==ha(t,s))return la(t,s,"delete",Date.now()-1e3,o),o;return null}(t)),la(t,e,n,i,o,r.sameSite,r.secure)}function la(t,e,n,i,r,o,s){"ampproject.org"==r&&(n="delete",i=0);var a=encodeURIComponent(e)+"="+encodeURIComponent(n)+"; path=/"+(r?"; domain="+r:"")+"; expires="+new Date(i).toUTCString()+function(t,e){return e?"; SameSite=".concat(e):""}(0,o)+(s?"; Secure":"");try{t.document.cookie=a}catch(t){}}var fa="GoogleCidApi",da="AMP_TOKEN",ma="$RETRIEVING",pa="$OPT_OUT",va="$NOT_FOUND",ga=3e4,ya=31536e6,ba=function(){function t(t){this.t=t.win,this.Xo=ei(this.t),this.jl={};var e=Wn(t).canonicalUrl;this.Dl=e?ro(e).origin:null}var e=t.prototype;return e.getScopedCid=function(t,e){var n,i=this;return this.jl[e]?this.jl[e]:this.jl[e]=this.Xo.poll(200,(function(){return(n=ha(i.t,da))!==ma})).then((function(){if(n===pa)return pa;if((n!==va||!i.Ul())&&i.zl(n))return null;n&&!i.zl(n)||i.Ll(ma,ga);var r="https://ampcid.google.com/v1/publisher:getClientId?key="+t;return i.Nl(r,e,n).then((function(r){var o=i.R(r);if(!o&&r.alternateUrl){var s="".concat(r.alternateUrl,"?key=").concat(t);return i.Nl(s,e,n).then(i.R.bind(i))}return o})).catch((function(t){return i.Ll("$ERROR",ga),t&&t.response?t.response.json().then((function(t){Kt().error(fa,JSON.stringify(t))})):Kt().error(fa,t),null}))}))},e.Nl=function(t,e,n){var i={originScope:e,canonicalOrigin:this.Dl};return n&&(i.securityToken=n),this.Xo.timeoutPromise(ga,ui(this.t).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:i}).then((function(t){return t.json()})))},e.R=function(t){return t.optOut?(this.Ll(pa,ya),pa):t.clientId?(this.Ll(t.securityToken,ya),t.clientId):(t.alternateUrl||this.Ll(va,36e5),null)},e.Ll=function(t,e){t&&ca(this.t,da,t,this.Hl(e),{highestAvailableDomain:!0})},e.Hl=function(t){return this.t.Date.now()+t},e.Ul=function(){return mo(_i.getDocumentReferrer(this.t))},e.zl=function(t){return t&&"$"===t[0]},t}(),wa=function(){function t(t){this.vu=t,this.yh=oi(this.vu);var e=Wn(this.vu).canonicalUrl;this.Dl=e?ro(e).origin:null}var e=t.prototype;return e.isSupported=function(){return this.yh.hasCapability("cid")?this.yh.isTrustedViewer():Promise.resolve(!1)},e.getScopedCid=function(t,e){var n={scope:e,clientIdApi:!!t,canonicalOrigin:this.Dl};return t&&(n.apiKey=t),this.yh.sendMessageAwaitResponse("cid",n)},t}(),Aa=31536e6,Ea=/^[a-zA-Z0-9-_.]+$/,Sa="amp-cid-optout",Ta="amp-google-client-id-api",Pa={googleanalytics:"AMP_ECID_GOOGLE"},Oa={googleanalytics:"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"},xa=function(){function t(t){this.ampdoc=t,this.Gl=null,this.Vl=Object.create(null),this.Fl=new aa(t),this.Bl=new wa(t),this.ql=new ba(t),this.$l=null}var e=t.prototype;return e.get=function(t,e,n){var i=this;return Xt(Ea.test(t.scope)&&Ea.test(t.cookieName),"The CID scope and cookie name must only use the characters [a-zA-Z0-9-_.]+\nInstead found: %s",t.scope),e.then((function(){return i.ampdoc.whenFirstVisible()})).then((function(){return t=i.ampdoc,ti(t).then((function(t){return t.get(Sa).then((function(t){return!!t}))})).catch((function(){return!1}));var t})).then((function(r){if(r)return"";var o=i.Wl(t,n||e);return ei(i.ampdoc.win).timeoutPromise(1e4,o,'Getting cid for "'.concat(t.scope,'" timed out')).catch((function(t){d(t)}))}))},e.optOut=function(){return t=this.ampdoc,oi(t).sendMessage("cidOptOut",{}),ti(t).then((function(t){return t.set(Sa,!0)}));var t},e.Wl=function(t,e){var n=this,i=t.scope,r=ro(this.ampdoc.win.location.href);if(!mo(r)){var o=this.Kl(i);return o?this.ql.getScopedCid(o,i).then((function(r){if(r==pa)return null;if(r){var o=t.cookieName||i;return Ra(n.ampdoc.win,o,r),r}return _a(n,t,e)})):_a(this,t,e)}return this.Bl.isSupported().then((function(t){if(t){var o=n.Kl(i);return n.Bl.getScopedCid(o,i)}return n.Fl.isSupported()&&n.Kl(i)?n.Fl.getScopedCid(i).then((function(t){return t||n.Yl(e,i,r)})):n.Yl(e,i,r)}))},e.Yl=function(t,e,n){var i=this;return function(t,e){if(t.Gl)return t.Gl;var n=t.ampdoc.win;return t.Gl=function(t){var e,n=t.win;try{e=n.localStorage.getItem("amp-cid")}catch(t){}var i=Promise.resolve(e);return!e&&xe(n)&&(i=La(t)),i.then((function(t){if(!t)return null;var e=at(t);return{time:e.time,cid:e.cid}}))}(t.ampdoc).then((function(i){var r,o,s,a=!1;return!i||(o=i.time,s=Date.now(),o+Aa<s)?(r=Gn(n).sha384Base64(ka(n)),a=!0):(r=Promise.resolve(i.cid),i.time+864e5<Date.now()&&(a=!0)),a&&r.then((function(n){!function(t,e,n){var i=t.win;xe(i)?La(t,Ia(n)):e.then((function(){try{i.localStorage.setItem("amp-cid",Ia(n))}catch(t){}}))}(t.ampdoc,e,n)})),r}))}(this,t).then((function(t){return Gn(i.ampdoc.win).sha384Base64(t+function(t){return Xt(mo(t),"Expected proxy origin %s",t.origin),bo(t)}(n)+e)}))},e.Kl=function(t){return this.$l||(this.$l=this.Jl()),this.$l[t]},e.Jl=function(){var t={},e=this.ampdoc.getMetaByName(Ta);return e&&e.split(",").forEach((function(e){if((e=e.trim()).indexOf("=")>0){var n=e.split("="),i=n[0].trim();t[i]=n[1].trim()}else{var r=e,o=Pa[r];o?t[o]=Oa[r]:Wt().warn("CID","Unsupported client for Google CID API: ".concat(r,".")+'Please remove or correct meta[name="'.concat(Ta,'"]'))}})),t},t}();function Ra(t,e,n){ca(t,e,n,Date.now()+Aa,{highestAvailableDomain:!0})}function Ma(t,e,n){ti(t).then((function(t){if(!t.isViewerStorage()){var i=Ca(e);t.setNonBoolean(i,n)}}))}function Ca(t){return"amp-cid:"+t}function _a(t,e,n){var i=t.ampdoc,r=i.win,o=e.disableBackup,s=e.scope,a=e.cookieName||s;return function(t,e){var n=t.ampdoc,i=n.win,r=e.disableBackup,o=e.scope,s=e.cookieName||o,a=ha(i,s);return a?Promise.resolve(a):r?Promise.resolve(null):ti(n).then((function(t){var e=Ca(s);return t.get(e,Aa)})).then((function(t){return t&&"string"==typeof t?t:null}))}(t,e).then((function(u){if(!u&&!e.createCookieIfNotPresent)return Promise.resolve(null);if(u)return/^amp-/.test(u)&&(Ra(r,a,u),o||Ma(i,a,u)),Promise.resolve(u);if(t.Vl[s])return t.Vl[s];var h=Da(r).then((function(t){return"amp-"+t}));return Promise.all([h,n]).then((function(t){var e=t[0];ha(r,a)||(Ra(r,a,e),o||Ma(i,a,e))})),t.Vl[s]=h}))}function La(t,e){var n=oi(t);return n.isTrustedViewer().then((function(t){if(t)return Kt().expectedError("CID","Viewer does not provide cap=cid"),n.sendMessageAwaitResponse("cid",e).then((function(t){return t&&!function(t){try{return at(t)}catch(t){return null}}(t)?(Kt().expectedError("CID","invalid cid format"),JSON.stringify({time:Date.now(),cid:t})):t}))}))}function Ia(t){return JSON.stringify({time:Date.now(),cid:t})}function ka(t){return ct(t,16)||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}function Da(t){var e=ka(t);if("string"==typeof e)return Gn(t).sha384Base64(e);var n=e;return c((function(){return oa(n).replace(/\.+$/,"")}))}var Na="Crypto",Ba=function(){function t(t){this.t=t;var e=null,n=!1;t.crypto&&(t.crypto.subtle?e=t.crypto.subtle:t.crypto.webkitSubtle&&(e=t.crypto.webkitSubtle,n=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=e,this.Ls=n,this.Us=null}var e=t.prototype;return e.sha384=function(t){var e=this;if("string"==typeof t&&(t=ht(t)),!this.subtle||this.Us)return(this.Us||this.zs()).then((function(e){return e(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&&Wt().error(Na,"SubtleCrypto failed, fallback to closure lib.",n),e.zs().then((function(){return e.sha384(t)}))}))}catch(n){return Kt().error(Na,"SubtleCrypto failed, fallback to closure lib.",n),this.zs().then((function(){return e.sha384(t)}))}},e.sha384Base64=function(t){return this.sha384(t).then((function(t){return oa(t)}))},e.uniform=function(t){return this.sha384(t).then((function(t){for(var e=0,n=2;n>=0;n--)e=(e+t[n])/256;return e}))},e.zs=function(){var t=this;return this.Us?this.Us:this.Us=Yn(this.t).preloadExtension("amp-crypto-polyfill").then((function(){return gn(t.t,"crypto-polyfill")}))},e.isPkcsAvailable=function(){return Boolean(this.subtle)&&!1!==this.t.isSecureContext},e.importPkcsKey=function(t){Jt(this.isPkcsAvailable());var e=this.Ls?ut(JSON.stringify(t)):t;return this.subtle.importKey("jwk",e,this.pkcsAlgo,!0,["verify"])},e.verifyPkcs=function(t,e,n){return Jt(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,e,n)},t}(),Va=["prefetch","preload","preconnect","dns-prefetch"],Ua=function(){function t(t){this.vu=t,this.Hs=null,this.Gs=null}return t.prototype.get=function(){if(this.Hs)return this.Hs;var t=this.vu,e=yo(t.getUrl()),n=t.getRootNode(),i=n&&n.AMP&&n.AMP.canonicalUrl;if(!i){var r=n.querySelector("link[rel=canonical]");i=r?ro(r.href).href:e}var o,s=function(t){return String(Math.floor(1e4*t.Math.random()))}(t.win),a=function(t){var e=w();if(t.head)for(var n=t.head.querySelectorAll("link[rel]"),i=function(t){var i=n[t],r=i.href,o=i.getAttribute("rel");if(!o||!r)return"continue";o.split(/\s+/).forEach((function(t){if(-1==Va.indexOf(t)){var n=e[t];n?(j(n)||(n=e[t]=[n]),n.push(r)):e[t]=r}}))},r=0;r<n.length;r++)i(r);return e}(t.win.document),u=(o=t.win.document.head.querySelector('meta[name="viewport"]'))?o.getAttribute("content"):null,h=function(t){if(!t.isSingleDoc()||"a"!=(e=t.win.location.href,mo(e=io(e))?e.pathname.split("/",2)[1]:null))return null;var e,n=vt(ro(t.win.location.href).search).amp_r;return void 0===n?null:vt(n)}(t);return this.Hs={get sourceUrl(){return yo(t.getUrl())},canonicalUrl:i,pageViewId:s,get pageViewId64(){return this.Gs||(this.Gs=Da(t.win)),this.Gs},linkRels:a,viewport:u,replaceParams:h}},t}(),ja={attributes:!0,attributeFilter:["hidden"],subtree:!0},Fa=function(){function t(t){this.gs=t.getRootNode();var e=this.gs.ownerDocument||this.gs;this.t=Jt(e.defaultView),this.Ht=null,this.Vs=null}var e=t.prototype;return e.add=function(t){var e=this;this.Fs();var n=this.Vs.add(t);return function(){n(),0===e.Vs.getHandlerCount()&&e.dispose()}},e.Fs=function(){var t=this;if(!this.Ht){this.Vs=new pi;var e=new this.t.MutationObserver((function(e){e&&t.Vs.fire(e)}));this.Ht=e,e.observe(this.gs,ja)}},e.dispose=function(){this.Ht&&(this.Ht.disconnect(),this.Vs.removeAll(),this.Ht=null,this.Vs=null)},t}();function qa(t){try{return t.state}catch(t){return null}}var Ha="History",za="AMP.History",Ga=function(){function t(t,e){this.vu=t,this.Xo=ei(t.win),this.Bs=e,this.qs=0,this.Ws=[],this.Ou=[],this.Bs.setOnStateUpdated(this.$s.bind(this))}var e=t.prototype;return e.cleanup=function(){this.Bs.cleanup()},e.push=function(t,e){var n=this;return this.Ys((function(){return n.Bs.push(e).then((function(e){return n.$s(e),t&&(n.Ws[e.stackIndex]=t),e.stackIndex}))}),"push")},e.pop=function(t){var e=this;return this.Ys((function(){return e.Bs.pop(t).then((function(t){e.$s(t)}))}),"pop")},e.replace=function(t){var e=this;return this.Ys((function(){return e.Bs.replace(t)}),"replace")},e.get=function(){var t=this;return this.Ys((function(){return t.Bs.get()}),"get")},e.goBack=function(t){var e=this;return this.Ys((function(){return e.qs<=0&&!t?u():e.Bs.pop(e.qs).then((function(t){e.$s(t)}))}),"goBack")},e.replaceStateForTarget=function(t){var e=this;Jt("#"==t[0]);var n=this.vu.win.location.hash;return this.push((function(){e.vu.win.location.replace(n||"#")})).then((function(){e.Bs.replaceStateForTarget(t)}))},e.getFragment=function(){return this.Bs.getFragment()},e.updateFragment=function(t){return"#"==t[0]&&(t=t.substr(1)),this.Bs.updateFragment(t)},e.$s=function(t){this.qs=t.stackIndex,this.Ks(t)},e.Ks=function(t){var e=this;if(!(this.qs>=this.Ws.length-1)){for(var n=[],i=this.Ws.length-1;i>this.qs;i--)this.Ws[i]&&(n.push(this.Ws[i]),this.Ws[i]=void 0);if(this.Ws.splice(this.qs+1),n.length>0)for(var r=function(i){e.Xo.delay((function(){return n[i](t)}),1)},o=0;o<n.length;o++)r(o)}},e.Ys=function(t,e){var n=new h,i=n.promise,r=n.reject,o=n.resolve,s=new Error("history trace for "+e+": ");return this.Ou.push({callback:t,resolve:o,reject:r,trace:s}),1==this.Ou.length&&this.Xs(),i},e.Xs=function(){var t=this;if(0!=this.Ou.length){var e,n=this.Ou[0];try{e=n.callback()}catch(t){e=Promise.reject(t)}e.then((function(t){n.resolve(t)}),(function(t){Kt().error(Ha,"failed to execute a task:",t),n.trace&&(n.trace.message+=t,Kt().error(Ha,n.trace)),n.reject(t)})).then((function(){t.Ou.splice(0,1),t.Xs()}))}},t}(),Wa=function(){function t(t){var e=this;this.win=t,this.Xo=ei(t);var n=this.win.history;this.Js=n.length-1;var i,r,o=qa(n);o&&void 0!==o[za]&&(this.Js=Math.min(o[za],this.Js)),this.qs=this.Js,this.Qs,this.$s=null,this.Zs="state"in n,this.th=this.nh(this.qs),n.pushState&&n.replaceState?(this.ih=n.originalPushState||n.pushState.bind(n),this.rh=n.originalReplaceState||n.replaceState.bind(n),i=function(t,n,i){e.th=t;try{e.ih(t,n,i||null)}catch(t){Kt().error(Ha,"pushState failed: "+t.message)}},r=function(t,n,i){e.th=t;try{void 0!==i?e.rh(t,n,i):e.rh(t,n)}catch(t){Kt().error(Ha,"replaceState failed: "+t.message)}},n.originalPushState||(n.originalPushState=this.ih),n.originalReplaceState||(n.originalReplaceState=this.rh)):(i=function(t,n,i){e.th=t},r=function(t,n,i){e.th=t}),this.eh=i,this.uh=r;try{this.uh(this.nh(this.qs,!0))}catch(t){Kt().error(Ha,"Initial replaceState failed: "+t.message)}n.pushState=this.oh.bind(this),n.replaceState=this.sh.bind(this),this.hh=function(t){var n=t.state;Kt().fine(Ha,"popstate event: "+e.win.history.length+", "+JSON.stringify(n)),e.ah()},this.win.addEventListener("popstate",this.hh)}var e=t.prototype;return e.cleanup=function(){this.ih&&(this.win.history.pushState=this.ih),this.rh&&(this.win.history.replaceState=this.rh),this.win.removeEventListener("popstate",this.hh)},e.nh=function(t,e){var n=w(e?this.fh():void 0);return n[za]=t,n},e.setOnStateUpdated=function(t){this.$s=t},e.push=function(t){var e=this;return this.lh((function(){var n=e.dh(e.fh(),t||{});return e.oh(n,void 0,n.fragment?"#"+n.fragment:void 0),c((function(){return e.dh(n,{stackIndex:e.qs})}))}))},e.pop=function(t){var e=this;return t=Math.max(t,this.Js),this.lh((function(){return e.mh(e.qs-t+1)})).then((function(t){return e.dh(e.fh(),{stackIndex:t})}))},e.replace=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.lh((function(){var n=t.dh(t.fh(),e||{}),i=(n.url||"").replace(/#.*/,""),r=n.fragment?"#"+n.fragment:"";return t.sh(n,n.title,i||r?i+r:void 0),c((function(){return t.dh(n,{stackIndex:t.qs})}))}))},e.get=function(){var t=this;return c((function(){return t.dh(t.fh(),{stackIndex:t.qs})}))},e.backTo=function(t){var e=this;return t=Math.max(t,this.Js),this.lh((function(){return e.mh(e.qs-t)}))},e.ah=function(){var t=this.fh();Kt().fine(Ha,"history event: "+this.win.history.length+", "+JSON.stringify(t));var e=t?t[za]:void 0,n=this.qs,i=this.Qs;this.Qs=void 0,n>this.win.history.length-2&&(n=this.win.history.length-2,this.ph(this.dh(t,{stackIndex:n}))),null==e?n+=1:n=e<this.win.history.length?e:this.win.history.length-1,t||(t={}),t[za]=n,this.uh(t,void 0,void 0),n!=this.qs&&this.ph(this.dh(t,{stackIndex:n})),n<this.Js&&(this.Js=n),i&&i.resolve()},e.fh=function(){return this.Zs?qa(this.win.history):this.th},e.gh=function(){Jt(!this.Qs)},e.lh=function(t){return this.Qs?this.Qs.promise.then(t,t):t()},e.bh=function(){this.gh();var t=new h,e=t.reject,n=t.resolve,i=this.Xo.timeoutPromise(500,t.promise);return this.Qs={promise:i,resolve:n,reject:e},i},e.mh=function(t){var e=this;if(this.gh(),t<=0)return Promise.resolve(this.qs);this.th=this.nh(this.qs-t);var n=this.bh();return this.win.history.go(-t),n.then((function(){return Promise.resolve(e.qs)}))},e.oh=function(t,e,n){this.gh(),t||(t={});var i=this.qs+1;t[za]=i,this.eh(t,e,n),i!=this.win.history.length-1&&(i=this.win.history.length-1,t[za]=i,this.uh(t));var r=this.dh(t,{stackIndex:i});this.ph(r)},e.replaceStateForTarget=function(t){var e=this;Jt("#"==t[0]),this.lh((function(){e.win.removeEventListener("popstate",e.hh);try{e.win.location.replace(t)}finally{e.win.addEventListener("popstate",e.hh)}return e.sh(),u()}))},e.sh=function(t,e,n){this.gh(),t||(t={});var i=Math.min(this.qs,this.win.history.length-1);t[za]=i,this.uh(t,e,n);var r=this.dh(t,{stackIndex:i});this.ph(r)},e.ph=function(t){this.gh(),t.stackIndex=Math.min(t.stackIndex,this.win.history.length-1),this.qs!=t.stackIndex&&(Kt().fine(Ha,"stack index changed: "+this.qs+" -> "+t.stackIndex),this.qs=t.stackIndex,this.$s&&this.$s(t))},e.getFragment=function(){var t=this.win.location.hash;return t=t.substr(1),Promise.resolve(t)},e.updateFragment=function(t){return this.replace({fragment:t})},e.dh=function(t,e){var n=k(k({},t&&t.data||{}),e.data||{});return k(k(k({},t||{}),e),{},{data:n})},t}(),Ya=function(){function t(t,e){var n=this;this.win=t,this.yh=e,this.qs=0,this.$s=null,this.wh=this.yh.onMessage("historyPopped",(function(t){return n.Ah(t)}))}var e=t.prototype;return e.replaceStateForTarget=function(t){Jt("#"==t[0]),this.win.location.replace(t)},e.cleanup=function(){this.wh()},e.setOnStateUpdated=function(t){this.$s=t},e.xh=function(t,e,n){return this.Eh(t)?t:(Kt().warn(Ha,'Ignored unexpected "%s" data:',n,t),e)},e.Eh=function(t){return!!t&&void 0!==t.stackIndex},e.push=function(t){var e=this,n=k({stackIndex:this.qs+1},t||{}),i="pushHistory";return this.yh.sendMessageAwaitResponse(i,n).then((function(t){var r=n,o=e.xh(t,r,i);return e.ph(o),o}))},e.pop=function(t){var e=this;if(t>this.qs)return this.get();var n={stackIndex:this.qs},i="popHistory";return this.yh.sendMessageAwaitResponse(i,n).then((function(t){var n={stackIndex:e.qs-1},r=e.xh(t,n,i);return e.ph(r),r}))},e.replace=function(t){var e=this;if(t&&t.url){if(!this.yh.hasCapability("fullReplaceHistory")){var n={stackIndex:this.qs};return Promise.resolve(n)}var i=t.url.replace(/#.*/,"");t.url=i}var r=k({stackIndex:this.qs},t||{}),o="replaceHistory";return this.yh.sendMessageAwaitResponse(o,r,!0).then((function(t){var n=r,i=e.xh(t,n,o);return e.ph(i),i}))},e.get=function(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.qs,title:""})},e.Ah=function(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.Eh(t)?this.ph(t):Kt().warn(Ha,'Ignored unexpected "historyPopped" data:',t)},e.ph=function(t){var e=t.stackIndex;this.qs!=e&&(Kt().fine(Ha,"stackIndex: ".concat(this.qs," -> ").concat(e)),this.qs=e,this.$s&&this.$s(t))},e.getFragment=function(){return this.yh.hasCapability("fragment")?this.yh.sendMessageAwaitResponse("getFragment",void 0,!0).then((function(t){if(!t)return"";var e=t;return"#"==e[0]&&(e=e.substr(1)),e})):Promise.resolve("")},e.updateFragment=function(t){return this.yh.hasCapability("fragment")?this.yh.sendMessageAwaitResponse("replaceHistory",{fragment:t},!0):u()},t}();function Ka(t){var e,n=oi(t);return n.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?e=new Ya(t.win,n):(pn(t.win,"global-history-binding",Wa),e=gn(t.win,"global-history-binding")),new Ga(t,e)}var Ja=['<div slot=i-amphtml-svc class="i-amphtml-svc i-amphtml-loading-container i-amphtml-fill-content amp-hidden"></div>'],Xa=function(){function t(t){this.vu=t;var e=t.win,n=this.Xl.bind(this);this.Ql=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.needsRootBounds,r=n.rootMargin,o=n.threshold,s=xe(e)&&(i||r)?e.document:void 0;return new e.IntersectionObserver(t,{threshold:o,root:s,rootMargin:r})}((function(t){return t.forEach(n)}),e),this.yf=new WeakMap}var e=t.prototype;return e.dispose=function(){this.Ql.disconnect()},e.track=function(t){this.Ql.observe(t)},e.untrack=function(t){this.Ql.unobserve(t),this.Zl(t)},e.Xl=function(t){var e=t.boundingClientRect,n=t.isIntersecting,i=t.target,r=e.height,o=e.width,s=i,a=n&&o>20&&r>20,u=this.yf.get(s);a!==(u&&u.shown||!1)&&(a&&!u&&(u=this.tv(s,o,r),this.yf.set(s,u)),u&&(u.shown=a,u.container.classList.toggle("amp-hidden",!a),u.loader.classList.toggle("amp-active",a)))},e.tv=function(t,e,n){var i=Date.now(),r=function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.win.Date.now(),o=e.ownerDocument.createElement("div");return function(t,e){return Yn(t.win).installExtensionForDoc(t,"amp-loader").then((function(){return function(t){return kn(t,"loader","amp-loader")}(e)}))}(t,e).then((function(s){var a=t.win.Date.now()-r;s.initializeLoader(e,o,a,n,i)})),o}(this.vu,t,e,n,i),o=Sr(this.vu.win.document)(Ja);return o.appendChild(r),t.appendChild(o),{shown:!1,loader:r,container:o}},e.Zl=function(t){var e=this.yf.get(t);e&&(this.yf.delete(t),Ee(e.container))},t}(),$a=function(){function t(t,e){var n=this;this.win=t,this.iv=e,this.Oh=[],this.nv=new pi,this.rv=function(t){Y(t.target)&&n.sv(t.target)},this.ov=function(e){ei(t).delay((function(){n.win.document.activeElement&&n.sv(n.win.document.activeElement)}),500)},this.win.document.addEventListener("focus",this.rv,!0),this.win.addEventListener("blur",this.ov)}var e=t.prototype;return e.Zl=function(){this.win.document.removeEventListener("focus",this.rv,!0),this.win.removeEventListener("blur",this.ov)},e.onFocus=function(t){return this.nv.add(t)},e.sv=function(t){var e=Date.now();0==this.Oh.length||this.Oh[this.Oh.length-1].el!=t?this.Oh.push({el:t,time:e}):this.Oh[this.Oh.length-1].time=e,this.purgeBefore(e-this.iv),this.nv.fire(t)},e.getLast=function(){return 0==this.Oh.length?null:this.Oh[this.Oh.length-1].el},e.purgeBefore=function(t){for(var e=this.Oh.length-1,n=0;n<this.Oh.length;n++)if(this.Oh[n].time>=t){e=n-1;break}-1!=e&&this.Oh.splice(0,e+1)},e.hasDescendantsOf=function(t){this.win.document.activeElement&&this.sv(this.win.document.activeElement);for(var e=0;e<this.Oh.length;e++)if(t.contains(this.Oh[e].el))return!0;return!1},t}(),Qa=function(){function t(t){var e=this;this.ampdoc=t,this.win=t.win,this.qe=Zn(t),this.Th=ai(this.ampdoc),this.Gc=si(this.win),this.uv=new $a(this.win,6e4),this.uv.onFocus((function(t){e.hv(t)}))}var e=t.prototype;return e.forceChangeSize=function(t,e,n,i,r){this.av(Lo.forElement(t),e,n,r,void 0,!0,i)},e.requestChangeSize=function(t,e,n,i,r){var o=this;return new Promise((function(s,a){o.av(Lo.forElement(t),e,n,i,r,!1,(function(t){t?s():a(new Error("changeSize attempt denied"))}))}))},e.expandElement=function(t){Lo.forElement(t).completeExpand(),this.qe.schedulePass(70)},e.attemptCollapse=function(t){var e=this;return new Promise((function(n,i){e.av(Lo.forElement(t),0,0,void 0,void 0,!1,(function(e){e?(Lo.forElement(t).completeCollapse(),n()):i(Kt().createExpectedError("collapse attempt denied"))}))}))},e.collapseElement=function(t){var e=this.Th.getLayoutRect(t);0!=e.width&&0!=e.height&&(Lr(this.win,"dirty-collapse-element")?this.dirtyElement(t):this.qe.setRelayoutTop(e.top)),Lo.forElement(t).completeCollapse(),this.qe.schedulePass(70)},e.measureElement=function(t){return this.Gc.measurePromise(t)},e.mutateElement=function(t,e,n){return this.cv(t,null,e,n)},e.measureMutateElement=function(t,e,n){return this.cv(t,e,n)},e.fv=function(t){var e=Oi(this.win,t.element);return{top:parseInt(e.marginTop,10)||0,right:parseInt(e.marginRight,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0}},e.cv=function(t,e,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=function(){var e=i.Th.getLayoutRect(t);return 0!=e.width&&0!=e.height?e.top:-1},s=-1;return this.Gc.runPromise({measure:function(){e&&e(),r||(s=o())},mutate:function(){if(n(),!r){t.classList.contains("i-amphtml-element")&&Lo.forElement(t).requestMeasure();for(var e=t.getElementsByClassName("i-amphtml-element"),a=0;a<e.length;a++)Lo.forElement(e[a]).requestMeasure();i.qe.schedulePass(70),-1!=s&&i.qe.setRelayoutTop(s),i.Gc.measure((function(){var t=o();-1!=t&&t!=s&&(i.qe.setRelayoutTop(t),i.qe.schedulePass(70)),i.qe.maybeHeightChanged()}))}}})},e.dirtyElement=function(t){var e=!1;if(t.classList.contains("i-amphtml-element")){var n=Lo.forElement(t);this.qe.setRelayoutTop(n.getLayoutBox().top)}else e=!0;this.qe.schedulePass(70,e)},e.hv=function(t){var e=fe(t,(function(t){return!!Lo.forElementOptional(t)}));if(e){var n=Lo.forElement(e),i=n.getPendingChangeSize();void 0!==i&&this.av(n,i.height,i.width,i.margins,void 0,!0)}},e.av=function(t,e,n,i,r,o,s){var a=this;t.hasBeenMeasured()&&!i?this.lv(t,e,n,void 0,r,o,s):this.Gc.measure((function(){t.hasBeenMeasured()||t.measure();var u=i?{newMargins:i,currentMargins:a.fv(t)}:void 0;a.lv(t,e,n,u,r,o,s)}))},e.lv=function(t,e,n,i,r,o,s){t.resetPendingChangeSize();var a,u,h=t.getLayoutSize();if(!(void 0!==e&&e!=h.height||void 0!==n&&n!=h.width||void 0!==i&&(a=i.currentMargins,u=i.newMargins,void 0!==u.top&&u.top!=a.top||void 0!==u.right&&u.right!=a.right||void 0!==u.bottom&&u.bottom!=a.bottom||void 0!==u.left&&u.left!=a.left)))return void 0===e&&void 0===n&&void 0===i&&Kt().error("Mutator","attempting to change size with undefined dimensions",t.debugid),void(s&&s(!0));this.qe.updateOrEnqueueMutateTask(t,{resource:t,newHeight:e,newWidth:n,marginChange:i,event:r,force:o,callback:s}),this.qe.schedulePassVsync()},t}(),Za=null,tu=["gclid","gclsrc"],eu=[/^t.co$/];function nu(){return Xt(Za,"E#19457 trackImpressionPromise")}function iu(t,e,n,i){var r,o,s;try{r=t.open(e,n,i)}catch(t){Kt().error("DOM","Failed to open url on target: ",n,t)}return!r&&"_top"!=n&&("number"!=typeof s&&(s=0),s+8>(o=i||"").length||-1===o.indexOf("noopener",s))&&(r=t.open(e,"_top")),r}var ru="navigation",ou="click",su="contextmenu",au=["_top","_blank"],uu="data-a4a-orig-href",hu=function(){function t(t){var e=this;this.ampdoc=t,this.Ph=t.getRootNode(),this.Th=ai(this.ampdoc),this.yh=oi(this.ampdoc),this.Oh=Kn(this.ampdoc),this.Ih=$n(this.ampdoc.win),this.Rh=this.Ih.isIos()&&this.Ih.isSafari(),this.Sh=xe(this.ampdoc.win)&&this.yh.isOvertakeHistory(),this._h=this.Ph!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.Mh="inabox"==Lt(this.ampdoc.win).runtime,this.kh=this.Ph.nodeType==Node.DOCUMENT_NODE?this.Ph.documentElement:this.Ph,this.Ch=this.Nh.bind(this),this.Ph.addEventListener(ou,this.Ch),this.Ph.addEventListener(su,this.Ch),this.jh=!1,function(t){return t.whenReady().then((function(){return!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")}))}(this.ampdoc).then((function(t){e.jh=t})),this.Dh=!1,this.Lh=!1,Promise.all([this.yh.isTrustedViewer(),this.yh.getViewerOrigin()]).then((function(t){var n;e.Dh=t[0],e.Lh=(n=t[1],Pt.test(io(n).origin))})),this.Uh=null,this.zh=new Vo,this.Hh=new Vo}t.installAnchorClickInterceptor=function(t,e){e.document.documentElement.addEventListener("click",cu.bind(null,t),!0)};var e=t.prototype;return e.cleanup=function(){this.Ch&&(this.Ph.removeEventListener(ou,this.Ch),this.Ph.removeEventListener(su,this.Ch))},e.openWindow=function(t,e,n,i){var r="";!this.Ih.isIos()&&this.Ih.isChrome()||i||(r+="noopener");var o=iu(t,e,n,r);o&&!i&&(o.opener=null)},e.navigateTo=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.opener,o=void 0!==r&&r,s=i.target,a=void 0===s?"_top":s;e=this.Gh(e);var u=ri(this.kh);if(u.isProtocolValid(e)){Xt(au.includes(a),"Target '".concat(a,"' not supported."));var h=u.getSourceUrl(t.location);e=u.resolveRelativeUrl(e,h),"_blank"!=a?n&&(this.Uh||(this.Uh=this.Vh()),this.Uh.includes(n)&&this.navigateToAmpUrl(e,n))||(t.top.location.href=e):this.openWindow(t,e,a,o)}else Wt().error(ru,"Cannot navigate to invalid protocol: "+e)},e.navigateToAmpUrl=function(t,e){return!!this.yh.hasCapability("a2a")&&(this.yh.sendMessage("a2aNavigate",{url:t,requestedBy:e}),!0)},e.Vh=function(){var t=this.Ph.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((function(t){return t.trim()})):[]},e.Nh=function(t){if(!t.defaultPrevented){var e=de(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");e&&e.href&&(t.type==ou?this.Fh(e,t):t.type==su&&this.Bh(e,t))}},e.Fh=function(t,e){this.qh(t);var n=this.Wh(t.href);if(!this.$h(e,t,n)&&!this.Yh(e,t,n)){var i=this.Kh();lu(n)!=lu(i)&&(this.Xh(t,e),n=this.Wh(t.href)),this.Jh(e,t,n,i)}},e.Bh=function(t,e){this.qh(t),this.Xh(t,e)},e.Xh=function(t,e){this.zh.forEach((function(n){n(t,e)}))},e.Gh=function(t){return this.Hh.forEach((function(e){t=e(t)})),t},e.qh=function(t){var e=null;this.jh&&!this._h&&(e=function(t,e){for(var n=vt(ro(_i.getLocation(t).href).search),i=[],r=0;r<tu.length;r++){var o=tu[r];void 0!==n[o]&&i.push(o)}var s=e.getAttribute("data-amp-addparams"),a=e.href;s&&(a=uo(a,vt(s)));for(var u=vt(ro(a).search),h=i.length-1;h>=0;h--)void 0!==u[i[h]]&&i.splice(h,1);return function(t){for(var e="",n=0;n<t.length;n++){var i=t[n];e+=0==n?"".concat(i,"=QUERY_PARAM(").concat(i,")"):"&".concat(i,"=QUERY_PARAM(").concat(i,")")}return e}(i)}(this.ampdoc.win,t)),ni(t).maybeExpandLink(t,e)},e.Yh=function(t,e,n){if(!this.Sh)return!1;var i=ee(e),r=e.href,o=n.protocol;if("ftp:"==o)return iu(i,r,"_blank"),t.preventDefault(),!0;var s=/^(https?|mailto):$/.test(o);return!(!this.Rh||s||(iu(i,r,"_top"),t.preventDefault(),0))},e.$h=function(t,e,n){return!(!e.hasAttribute("rel")||!e.getAttribute("rel").split(" ").map((function(t){return t.trim()})).includes("amphtml")||!this.navigateToAmpUrl(n.href,"<a rel=amphtml>")||(t.preventDefault(),0))},e.Jh=function(t,e,n,i){var r=lu(n),o=lu(i);if(n.hash&&r==o)this.Qh(t,n,i);else{var s=(e.getAttribute("target")||"").toLowerCase();(this._h||this.Mh)&&"_top"!=s&&"_blank"!=s&&(s="_blank",e.setAttribute("target",s));var a=this.ampdoc.win,u=$n(a),h=oi(e);i.search&&u.isSafari()&&u.getMajorVersion()>=13&&h.isProxyOrigin()&&h.isEmbedded()&&this.Zh(a,i,s),this.viewerInterceptsNavigation(r,"intercept_click")&&t.preventDefault()}},e.Zh=function(t,e,n){Kt().info(ru,"Removing iframe query string before navigation:",e.search);var i=e.href,r="".concat(e.origin).concat(e.pathname).concat(e.hash);t.history.replaceState(null,"",r);var o=function(){var e=t.location.href;e==r?(Kt().info(ru,"Restored iframe URL with query string:",i),t.history.replaceState(null,"",i)):Kt().error(ru,"Unexpected iframe URL change:",e,r)};"_blank"===n?t.setTimeout(o,0):t.addEventListener("pageshow",(function e(n){n.persisted&&(o(),t.removeEventListener("pageshow",e))}))},e.Qh=function(t,e,n){var i=this;if(t.preventDefault(),!this._h){var r=e.hash.slice(1),o=null;if(r){var s=ae(r);o=this.Ph.getElementById(r)||this.Ph.querySelector('a[name="'.concat(s,'"]'))}e.hash!=n.hash?this.Oh.replaceStateForTarget(e.hash).then((function(){i.ta(o,r)})):this.ta(o,r)}},e.registerAnchorMutator=function(t,e){this.zh.enqueue(t,e)},e.registerNavigateToMutator=function(t,e){this.Hh.enqueue(t,e)},e.ta=function(t,e){var n=this;t?(this.Th.scrollIntoView(t),ei(this.ampdoc.win).delay((function(){return n.Th.scrollIntoView(t)}),1)):Kt().warn(ru,"failed to find element with id=".concat(e," or a[name=").concat(e,"]"))},e.Wh=function(t){return ri(this.kh).parse(t)},e.Kh=function(){return this.Wh("")},e.viewerInterceptsNavigation=function(t,e){var n=this.yh.hasCapability("interceptNavigation"),i=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!n||!i||!this.Dh&&!this.Lh||(this.yh.sendMessage("navigateTo",{url:t,requestedBy:e}),0))},t}();function cu(t,e){var n=de(e.target,"A");if(n&&n.href){var i=n.getAttribute(uu)||n.getAttribute("href");if(i){var r={CLICK_X:function(){return e.pageX},CLICK_Y:function(){return e.pageY}},o=ni(n).expandUrlSync(i,r,{CLICK_X:!0,CLICK_Y:!0});o!=i&&(n.getAttribute(uu)||n.setAttribute(uu,i),n.setAttribute("href",o))}}}function lu(t){return"".concat(t.origin).concat(t.pathname).concat(t.search)}function fu(t){return j(t)?t:[t]}var du=function(){function t(t){this.qe=Zn(t)}var e=t.prototype;return e.setOwner=function(t,e){Lo.setOwner(t,e)},e.schedulePreload=function(t,e){this.na(this.qe.getResourceForElement(t),!1,fu(e))},e.scheduleLayout=function(t,e){this.na(this.qe.getResourceForElement(t),!0,fu(e))},e.schedulePause=function(t,e){var n=this.qe.getResourceForElement(t);e=fu(e),this.ia(n,e,(function(t){t.pause()}))},e.scheduleResume=function(t,e){var n=this.qe.getResourceForElement(t);e=fu(e),this.ia(n,e,(function(t){t.resume()}))},e.scheduleUnlayout=function(t,e){var n=this.qe.getResourceForElement(t);e=fu(e),this.ia(n,e,(function(t){t.unlayout()}))},e.requireLayout=function(t,e){var n=[];return this.ra(t,(function(t){n.push(t.element.ensureLoaded())})),Promise.all(n)},e.ia=function(t,e,n){for(var i,r=a(e,!0);!(i=r()).done;){var o=i.value;Jt(t.element.contains(o)),this.ra(o,n)}},e.ra=function(t,e){if(t.classList.contains("i-amphtml-element")){e(this.qe.getResourceForElement(t));var n=t.getPlaceholder();n&&this.ra(n,e)}else for(var i=t.getElementsByClassName("i-amphtml-element"),r=[],o=0;o<i.length;o++){for(var s=i[o],a=!1,u=0;u<r.length;u++)if(r[u].contains(s)){a=!0;break}a||(r.push(s),e(this.qe.getResourceForElement(s)))}},e.na=function(t,e,n){this.ia(t,n,(function(e){e.element.ensureLoaded(t.getLayoutPriority())}))},t}(),mu=function(){function t(t){this.ea=t.navigator,this.t=t}var e=t.prototype;return e.isAndroid=function(){return/Android/i.test(this.ea.userAgent)},e.isIos=function(){return/iPhone|iPad|iPod/i.test(this.ea.userAgent)},e.isSafari=function(){return/Safari/i.test(this.ea.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()},e.isChrome=function(){return/Chrome|CriOS/i.test(this.ea.userAgent)&&!this.isEdge()&&!this.isOpera()},e.isFirefox=function(){return/Firefox|FxiOS/i.test(this.ea.userAgent)&&!this.isEdge()},e.isOpera=function(){return/OPR\/|Opera|OPiOS/i.test(this.ea.userAgent)},e.isEdge=function(){return/Edge/i.test(this.ea.userAgent)},e.isWebKit=function(){return/WebKit/i.test(this.ea.userAgent)&&!this.isEdge()},e.isWindows=function(){return/Windows/i.test(this.ea.userAgent)},e.isStandalone=function(){return this.isIos()&&this.ea.standalone||this.isChrome()&&this.t.matchMedia("(display-mode: standalone)").matches},e.isBot=function(){return/bot/i.test(this.ea.userAgent)},e.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:this.ua(/\sVersion\/(\d+)/,1):this.isChrome()?this.ua(/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?this.ua(/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?this.ua(/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?this.ua(/Edge\/(\d+)/,1):0},e.ua=function(t,e){if(!this.ea.userAgent)return 0;var n=this.ea.userAgent.match(t);return!n||e>=n.length?0:parseInt(n[e],10)},e.getIosVersionString=function(){var t,e,n;return this.isIos()&&(null===(t=this.ea.userAgent)||void 0===t||null===(e=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===e||null===(n=e[1])||void 0===n?void 0:n.replace(/_/g,"."))||""},e.getIosMajorVersion=function(){var t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])},t}();function pu(t){pn(t,"platform",mu)}var vu=function(){function t(t){this.Ke=t,this.vv=w()}var e=t.prototype;return e.addTransition=function(t,e,n){var i=this.dv(t,e);nt(!this.vv[i]),this.vv[i]=n},e.setState=function(t){var e=this.Ke;this.Ke=t;var n=this.dv(e,t),i=this.vv[n];null==i||i()},e.dv=function(t,e){return"".concat(t,"|").concat(e)},t}(),gu=function(){function t(){this.Uu=[],this.mv={},this.pv=0,this.bv=0}var e=t.prototype;return e.getSize=function(){return this.Uu.length},e.getLastEnqueueTime=function(){return this.pv},e.getLastDequeueTime=function(){return this.bv},e.getTaskById=function(t){return this.mv[t]||null},e.enqueue=function(t){Jt(!this.mv[t.id]),this.Uu.push(t),this.mv[t.id]=t,this.pv=Date.now()},e.dequeue=function(t){var e=this.mv[t.id];return!!this.removeAtIndex(t,this.Uu.indexOf(e))&&(this.bv=Date.now(),!0)},e.peek=function(t){for(var e=1e6,n=null,i=0;i<this.Uu.length;i++){var r=this.Uu[i],o=t(r);o<e&&(e=o,n=r)}return n},e.forEach=function(t){this.Uu.forEach(t)},e.removeAtIndex=function(t,e){var n=this.mv[t.id];return!(!n||this.Uu[e]!=n||(this.Uu.splice(e,1),delete this.mv[t.id],0))},e.purge=function(t){for(var e=this.Uu.length;e--;)t(this.Uu[e])&&this.removeAtIndex(this.Uu[e],e)},t}(),yu="Resources",bu=function(){function t(t){var e=this;this.ampdoc=t,this.win=t.win,this.yh=oi(t),this.gv=this.yh.isRuntimeOn(),this.yv=!1,this.ss=0,this.qe=[],this.wv=0,this.Av=0,this.xv=0,this.Yc=this.ampdoc.isVisible(),this.ds=!1,this.Ev=!0,this.Ov=!1,this.Tv=-1,this.Pv=!0,this.Iv=-1,this.Sv=0,this.Mv=0,this.os=new Os(this.win,(function(){return e.doPass()})),this.Rv=new Os(this.win,(function(){e.Pv=!0,e.schedulePass()})),this._v=new gu,this.Ou=new gu,this.kv=this.Nv.bind(this),this.Cv=[],this.vs=[],this.jv=!1,this.Th=ai(this.ampdoc),this.Gc=si(this.win),this.uv=new $a(this.win,6e4),this.Dv=!1,this.Uv=0,this.zv=!1,this.Lv=[],this.Hv=[],this.cs=new h,this.Gv=new vu(this.ampdoc.getVisibilityState()),this.Th.onChanged((function(t){e.Sv=e.win.Date.now(),e.Mv=t.velocity,t.relayoutAll&&(e.Pv=!0,e.zv=!0),e.schedulePass()})),this.Th.onScroll((function(){e.Sv=e.win.Date.now()})),this.ampdoc.onVisibilityChanged((function(){-1==e.Tv&&e.ampdoc.isVisible()&&(e.Tv=e.win.Date.now()),e.schedulePass()})),this.yh.onRuntimeState((function(t){Kt().fine(yu,"Runtime state:",t),e.gv=t,e.schedulePass(1)})),Ho(this.ampdoc,(function(){e.Vv(e.Gv),e.schedulePass(0)})),this.Fv(),this.Bv=lt(this.win,(function(t){return e.qv(t)}),250),Ur(this.win.document,"scroll",this.Bv,{capture:!0,passive:!0})}var e=t.prototype;return e.Fv=function(){var t=this;this.ampdoc.whenReady().then((function(){t.ds=!0,t.ps(),t.vs=null,function(t){return gn(t,"input")}(t.win).setupInputModeClasses(t.ampdoc);var e=function(){return t.Rv.schedule()};e(),Promise.race([qr(t.win),ei(t.win).promise(3100)]).then(e),t.win.document.fonts&&"loaded"!=t.win.document.fonts.status&&t.win.document.fonts.ready.then(e)}))},e.get=function(){return this.qe.slice(0)},e.getAmpdoc=function(){return this.ampdoc},e.getResourceForElement=function(t){return Lo.forElement(t)},e.getResourceForElementOptional=function(t){return Lo.forElementOptional(t)},e.getScrollDirection=function(){return Math.sign(this.Mv)||1},e.add=function(t){this.wv++,1==this.wv&&this.Th.ensureReadyForElements();var e=Lo.forElementOptional(t);e&&0!=e.getState()&&!t.reconstructWhenReparented()?(e.requestMeasure(),Kt().fine(yu,"resource reused:",e.debugid)):(e=new Lo(++this.ss,t,this),Kt().fine(yu,"resource added:",e.debugid)),this.qe.push(e),this.Rv.schedule(1e3)},e.$v=function(){return this.Av<20||this.ampdoc.getVisibilityState()==ci||this.ampdoc.hasBeenVisible()},e.Wv=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.gv||this.yv){var i=this.ampdoc.getVisibilityState(),r=i==hi&&!t.prerenderAllowed(),o=i==ci&&!t.previewAllowed();r||o||(this.ds?this.Kv(t,n):t.isBuilt()||t.isBuilding()||e&&this.vs.includes(t)||(this.vs.push(t),this.ps()))}},e.ps=function(){if(!this.jv)try{this.jv=!0,this.Yv()}finally{this.jv=!1}},e.Yv=function(){for(var t=0;t<this.vs.length;t++){var e=this.vs[t];(this.ds||Pe(e.element,this.ampdoc.getRootNode()))&&(this.vs.splice(t--,1),this.Kv(e))}},e.Kv=function(t){var e=this;if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]||this.$v()||t.isBuildRenderBlocking()))return null;var n=t.build();return n?(Kt().fine(yu,"build resource:",t.debugid),this.Av++,this.xv++,n.then((function(){return e.schedulePass()}),(function(n){if(e.Jv(t),!Mo(n))throw n}))):null},e.remove=function(t){var e=Lo.forElementOptional(t);e&&this.Jv(e)},e.Jv=function(t){var e=this.qe.indexOf(t);-1!=e&&this.qe.splice(e,1),t.isBuilt()&&t.pauseOnRemove(),3===t.getState()&&t.layoutCanceled(),this.Xv(t,!0),Kt().fine(yu,"resource removed:",t.debugid)},e.upgraded=function(t){var e=Lo.forElement(t);this.Wv(e),Kt().fine(yu,"resource upgraded:",e.debugid)},e.updateLayoutPriority=function(t,e){var n=Lo.forElement(t);n.updateLayoutPriority(e),this.Ou.forEach((function(t){t.resource==n&&(t.priority=e)})),this.schedulePass()},e.schedulePass=function(t){return this.os.schedule(t)},e.updateOrEnqueueMutateTask=function(t,e){for(var n=null,i=0;i<this.Cv.length;i++)if(this.Cv[i].resource==t){n=this.Cv[i];break}n?(n.newHeight=e.newHeight,n.newWidth=e.newWidth,n.marginChange=e.marginChange,n.event=e.event,n.force=e.force||n.force,n.callback=e.callback):this.Cv.push(e)},e.schedulePassVsync=function(){var t=this;this.Dv||(this.Dv=!0,this.Gc.mutate((function(){return t.doPass()})))},e.ampInitComplete=function(){this.Ov=!0,Kt().fine(yu,"ampInitComplete"),this.schedulePass()},e.setRelayoutTop=function(t){-1==this.Iv?this.Iv=t:this.Iv=Math.min(t,this.Iv)},e.maybeHeightChanged=function(){this.zv=!0},e.onNextPass=function(t){this.Lv.push(t)},e.doPass=function(){var t=this;if(this.gv){if(this.Yc=this.ampdoc.isVisible(),this.xv=0,this.ds&&this.Ev&&this.Ov){var e;this.Ev=!1;var n=this.win.document,i=Wn(this.ampdoc);this.yh.sendMessage("documentLoaded",{title:n.title,sourceUrl:yo(this.ampdoc.getUrl()),isStory:"AMP-STORY"===(null===(e=n.body.firstElementChild)||void 0===e?void 0:e.tagName),serverLayout:n.documentElement.hasAttribute("i-amphtml-element"),linkRels:i.linkRels,metaTags:{viewport:i.viewport},viewport:i.viewport},!0),this.Uv=this.Th.getContentHeight(),this.yh.sendMessage("documentHeight",{height:this.Uv},!0),Kt().fine(yu,"document height on load: %s",this.Uv)}!this.Ev&&this.Qv&&this.qe.every((function(t){return t.getState()!=Lo.NOT_BUILT||t.element.R1()}))&&(this.Qv=!1,this.zv=!0);var r=this.Th.getSize();Kt().fine(yu,"PASS: visible=",this.Yc,", relayoutAll=",this.Pv,", relayoutTop=",this.Iv,", viewportSize=",r.width,r.height),this.os.cancel(),this.Dv=!1,this.Gv.setState(this.ampdoc.getVisibilityState()),this.Zv(),this.zv&&(this.zv=!1,this.Gc.measure((function(){var e=t.Th.getContentHeight();e!=t.Uv&&(t.yh.sendMessage("documentHeight",{height:e},!0),t.Uv=e,Kt().fine(yu,"document height changed: %s",t.Uv),t.Th.contentHeightChanged())})));for(var o=0;o<this.Lv.length;o++)(0,this.Lv[o])();this.Lv.length=0}else Kt().fine(yu,"runtime is off")},e.Zv=function(){this.ds&&this.Ov&&!this.ampdoc.signals().get(Io)&&(this.ampdoc.signals().signal(Io),Kt().fine(yu,"signal: ready-scan"))},e.td=function(){return this.Cv.length>0},e.nd=function(){var t=this,e=this.win.Date.now(),n=this.Th.getRect(),i=n.height/10,r=n.height/10,o=Math.abs(this.Mv)<.01&&e-this.Sv>500||e-this.Sv>1e3;if(this.Cv.length>0){Kt().fine(yu,"change size requests:",this.Cv.length);var s=this.Cv;this.Cv=[];for(var a=-1,u=[],h=0,c=function(e){var c=s[e],l=c,f=l.event,d=l.resource,m=d.getLayoutBox(),p=0,v=0,g=0,y=0,b=m.bottom,w=m.top,A=void 0;if(c.marginChange){A=c.marginChange.newMargins;var E=c.marginChange.currentMargins;null!=A.top&&(p=A.top-E.top),null!=A.bottom&&(v=A.bottom-E.bottom),null!=A.left&&(g=A.left-E.left),null!=A.right&&(y=A.right-E.right),p&&(w=m.top-E.top),v&&(b=m.bottom+E.bottom)}var S=c.newHeight-m.height,T=c.newWidth-m.width,P=!1;if(0==S&&0==p&&0==v&&0==T&&0==g&&0==y);else if(c.force||!t.Yc)P=!0;else if(t.uv.hasDescendantsOf(d.element)||f&&f.userActivation&&f.userActivation.hasBeenActive)P=!0;else if(w>=n.bottom-r||0==p&&m.bottom+Math.min(S,0)>=n.bottom-r)P=!0;else{if(n.top>1&&b<=n.top+i)return S<0&&n.top+h<-S||(o?(h+=S,u.push(c)):t.Cv.push(c)),"continue";t.rd(d,m)?P=!0:S<0||p<0||v<0||(c.newHeight==m.height?t.Gc.run({measure:function(t){t.resize=!1;var e=d.element.parentElement;if(e){for(var n=e.getLayoutSize&&e.getLayoutSize().width||e.offsetWidth,i=T,r=0;r<e.childElementCount;r++)if((i+=e.children[r].offsetWidth)>n)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))}P&&(m.top>=0&&(a=-1==a?m.top:Math.min(a,m.top)),c.resource.changeSize(c.newHeight,c.newWidth,A),c.resource.overflowCallback(!1,c.newHeight,c.newWidth,A),t.zv=!0),c.callback&&c.callback(P)},l=0;l<s.length;l++)c(l);-1!=a&&this.setRelayoutTop(a),u.length>0&&this.Gc.run({measure:function(e){e.scrollHeight=t.Th.getScrollHeight(),e.scrollTop=t.Th.getScrollTop()},mutate:function(e){var n=-1;u.forEach((function(t){var e=t.resource.getLayoutBox();n=-1==n?e.top:Math.min(n,e.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 i=t.Th.getScrollHeight();i!=e.scrollHeight&&t.Th.setScrollTop(e.scrollTop+(i-e.scrollHeight)),t.zv=!0}},{})}},e.rd=function(t,e,n){var i=this.Th.getContentHeight(),r=Math.max(.85*i,i-1e3),o=e||t.getLayoutBox(),s=n||t.getInitialLayoutBox();return o.bottom>=r||s.bottom>=r},e.ed=function(t){var e=t.isDisplayed();return t.measure(),!(e&&!t.isDisplayed())},e.sd=function(t){var e=this;t.length&&this.Gc.mutate((function(){t.forEach((function(t){t.unload(),e.Xv(t)})),Kt().fine(yu,"unload:",t)}))},e.od=function(){var t=this.win.Date.now(),e=this.Hv,n=this.Pv,i=this.Iv;this.Pv=!1,this.Iv=-1;for(var r,o=0,s=0,a=0;a<this.qe.length;a++){var u=this.qe[a];0!=u.getState()||u.isBuilding()||u.element.R1()||this.Wv(u,!0),!n&&u.hasBeenMeasured()&&1!=u.getState()||o++,u.isMeasureRequested()&&s++}if(o>0||s>0||n||-1!=i||e.length>0)for(var h=0;h<this.qe.length;h++){var c=this.qe[h];if(!(c.hasOwner()&&!c.isMeasureRequested()||c.element.R1())){var l=n||1==c.getState()||!c.hasBeenMeasured()||c.isMeasureRequested()||-1!=i&&c.getLayoutBox().bottom>=i;if(!l)for(var f=0;f<e.length;f++)if(e[f].contains(c.element)){l=!0;break}l&&(this.ed(c)||(r||(r=[]),r.push(c)))}}e.length=0,r&&this.sd(r);var d,m=this.Th.getRect();d=this.Yc?Ie(m,.25,2):m;for(var p=this.Yc?Ie(m,.25,.25):m,v=0;v<this.qe.length;v++){var g=this.qe[v];if(0!=g.getState()&&!g.hasOwner()&&!g.element.R1()){var y=this.Yc&&g.isDisplayed()&&g.overlaps(p);g.setInViewport(y)}}if(d)for(var b=0;b<this.qe.length;b++){var w=this.qe[b];w.isBuilt()||w.isBuilding()||w.hasOwner()||w.element.R1()||!w.hasBeenMeasured()||!w.isDisplayed()||!w.overlaps(d)||this.Wv(w,!0,!0),2!=w.getState()||w.hasOwner()||w.isDisplayed()&&w.overlaps(d)&&this.scheduleLayoutOrPreload(w,!0)}if(this.Yc&&this.ud(t)){for(var A=0,E=0;E<this.qe.length&&A<4;E++){var S=this.qe[E];2==S.getState()&&!S.hasOwner()&&!S.element.R1()&&S.isDisplayed()&&S.idleRenderOutsideViewport()&&(Kt().fine(yu,"idleRenderOutsideViewport layout:",S.debugid),this.scheduleLayoutOrPreload(S,!1),A++)}for(var T=0;T<this.qe.length&&A<4;T++){var P=this.qe[T];2!=P.getState()||P.hasOwner()||P.element.R1()||!P.isDisplayed()||(Kt().fine(yu,"idle layout:",P.debugid),this.scheduleLayoutOrPreload(P,!1),A++)}}},e.ud=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),e=this._v.getLastDequeueTime();return 0==this._v.getSize()&&0==this.Ou.getSize()&&t>e+5e3&&e>0},e.hd=function(){for(var t=this.win.Date.now(),e=-1,n=this.Ou.peek(this.kv);n&&(e=this.ad(n),Kt().fine(yu,"peek from queue:",n.id,"sched at",n.scheduleTime,"score",this.kv(n),"timeout",e),!(e>16));){this.Ou.dequeue(n);var i=this._v.getTaskById(n.id);if(i){var r=this.fd.bind(this,n);i.promise.then(r,r)}else{var o=n.resource;o.measure(),this.ld(o,n.forceOutsideViewport)?(n.promise=n.callback(),n.startTime=t,Kt().fine(yu,"exec:",n.id,"at",n.startTime),this._v.enqueue(n),n.promise.then(this.vd.bind(this,n,!0),this.vd.bind(this,n,!1)).catch(xo)):(Kt().fine(yu,"cancelled",n.id),o.layoutCanceled())}n=this.Ou.peek(this.kv),e=-1}if(Kt().fine(yu,"queue size:",this.Ou.getSize(),"exec size:",this._v.getSize()),e>=0)return e;var s=2*(t-this._v.getLastDequeueTime());return Math.max(Math.min(3e4,s),5e3)},e.Nv=function(t){var e=this.Th.getRect(),n=t.resource.getLayoutBox(),i=Math.floor((n.top-e.top)/e.height);return Math.sign(i)!=this.getScrollDirection()&&(i*=2),i=Math.abs(i),10*t.priority+i},e.ad=function(t){var e=this.win.Date.now();if(0==this._v.getSize()){if(-1===this.Tv)return 0;var n=1e3*t.priority;return Math.max(n-(e-this.Tv),0)}var i=0;return this._v.forEach((function(n){var r=Math.max(1e3*(t.priority-n.priority),0);i=Math.max(i,r-(e-n.startTime))})),i},e.fd=function(t){this.Ou.getTaskById(t.id)||this.Ou.enqueue(t)},e.vd=function(t,e,n){if(this._v.dequeue(t),this.schedulePass(1e3),!e)return Kt().info(yu,"task failed:",t.id,t.resource.debugid,n),Promise.reject(n)},e.ld=function(t,e){if(0==t.getState()||!t.isDisplayed())return!1;var n=this.ampdoc.getVisibilityState(),i=n==hi&&t.prerenderAllowed(),r=n==ci&&t.previewAllowed();return!!(this.Yc||i||r)&&!!(e||t.isInViewport()||t.renderOutsideViewport()||t.idleRenderOutsideViewport())},e.scheduleLayoutOrPreload=function(t,e,n,i){if(!t.element.R1()){var r=0!=t.getState(),o=t.isDisplayed();r&&o||Jt(!1);var s=i||!1;this.ld(t,s)&&(e?this.Bu(t,"L",0,n||0,s,t.startLayout.bind(t)):this.Bu(t,"P",2,n||0,s,t.startLayout.bind(t)))}},e.Bu=function(t,e,n,i,r,o){var s=t.getTaskId(e),a={id:s,resource:t,priority:Math.max(t.getLayoutPriority(),i)+n,forceOutsideViewport:r,callback:o,scheduleTime:this.win.Date.now(),startTime:0,promise:null};Kt().fine(yu,"schedule:",a.id,"at",a.scheduleTime);var u=this.Ou.getTaskById(s);(!u||a.priority<u.priority)&&(u&&this.Ou.dequeue(u),this.Ou.enqueue(a),this.schedulePass(this.ad(a))),a.resource.layoutScheduled(a.scheduleTime)},e.whenFirstPass=function(){return this.cs.promise},e.Vv=function(t){var e=this,n=fi,i=mi,r=di,o=hi,s=ci,a=li,u=function(){var t=e.Th.getSize();if(t.height>0&&t.width>0){e.td()&&e.nd(),e.od();var n=e.hd();e.td()&&(n=Math.min(n,500)),e.Yc?e.schedulePass(n)?Kt().fine(yu,"next pass:",n):Kt().fine(yu,"pass already scheduled"):Kt().fine(yu,"document is not visible: no scheduling"),e.cs.resolve()}},h=function(){},c=function(){e.qe.forEach((function(t){return t.pause()}))},l=function(){e.qe.forEach((function(t){t.unload(),e.Xv(t)})),e.dd()},f=function(){e.qe.forEach((function(t){return t.resume()})),u()};t.addTransition(o,o,u),t.addTransition(o,s,u),t.addTransition(o,a,u),t.addTransition(o,n,u),t.addTransition(o,i,u),t.addTransition(o,r,u),t.addTransition(s,s,u),t.addTransition(s,a,u),t.addTransition(s,n,u),t.addTransition(s,i,u),t.addTransition(s,r,u),t.addTransition(a,a,u),t.addTransition(a,n,u),t.addTransition(a,i,l),t.addTransition(a,r,c),t.addTransition(n,a,u),t.addTransition(n,n,u),t.addTransition(n,i,l),t.addTransition(n,r,c),t.addTransition(i,a,f),t.addTransition(i,n,f),t.addTransition(i,i,h),t.addTransition(i,r,u),t.addTransition(r,a,f),t.addTransition(r,n,u),t.addTransition(r,i,l),t.addTransition(r,r,h)},e.dd=function(){try{this.win.getSelection().removeAllRanges()}catch(t){}},e.Xv=function(t,e){if(1!=t.getState()&&2!=t.getState()||(this.Ou.purge((function(e){return e.resource==t})),this._v.purge((function(e){return e.resource==t})),q(this.Cv,(function(e){return e.resource===t}))),0==t.getState()&&e&&this.vs){var n=this.vs.indexOf(t);-1!=n&&this.vs.splice(n,1)}},e.qv=function(t){var e=t.target;if(e.nodeType===Node.ELEMENT_NODE&&e!==this.Th.getScrollingElement()){var n=e;this.Hv.includes(n)||(this.Hv.push(n),this.schedulePass(70))}},t}();function wu(t){return t.queryCommandSupported("copy")}function Au(t){return t.hasAttribute("hidden")}var Eu="STANDARD-ACTIONS",Su=/^i-amphtml-/,Tu=function(){function t(t){this.ampdoc=t;var e=t.getHeadNode();this.oa=Jn(t),this.Th=ai(t),this.sa(Un(e)),this.ha()}var e=t.prototype;return e.sa=function(t){t.addGlobalTarget("AMP",this.aa.bind(this)),t.addGlobalMethodHandler("hide",this.fa.bind(this)),t.addGlobalMethodHandler("show",this.ca.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.la.bind(this)),t.addGlobalMethodHandler("scrollTo",this.va.bind(this)),t.addGlobalMethodHandler("focus",this.da.bind(this)),t.addGlobalMethodHandler("toggleClass",this.ma.bind(this)),t.addGlobalMethodHandler("copy",this.pa.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.ga.bind(this))},e.ha=function(){this.ba()&&this.ampdoc.waitForBodyOpen().then((function(t){var e=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(e)}))},e.ba=function(){var t,e;try{var n=this.ampdoc.win.localStorage.getItem("amp-dark-mode");if(n)return"yes"===n}catch(t){}return null===(t=(e=this.ampdoc.win).matchMedia)||void 0===t?void 0:t.call(e,"(prefers-color-scheme: dark)").matches},e.aa=function(t){if(!t.satisfiesTrust(2))return null;var e=t.args,n=t.method,i=t.node,r=ee(i);switch(n){case"pushState":case"setState":var o=i.nodeType===Node.DOCUMENT_NODE?i.documentElement:i;return Hn(o).then((function(e){return Xt(e,"AMP-BIND is not installed."),e.invoke(t)}));case"navigateTo":return this.ya(t);case"closeOrNavigateTo":return this.wa(t);case"scrollTo":return Xt(e.id,"AMP.scrollTo must provide element ID"),t.node=Tn(i).getElementById(e.id),this.va(t);case"goBack":return Kn(this.ampdoc).goBack(!(!e||!0!==e.navigate)),null;case"print":return r.print(),null;case"copy":return this.pa(t);case"optoutOfCid":return zn(this.ampdoc).then((function(t){return t.optOut()})).catch((function(t){Kt().error(Eu,"Failed to opt out of CID",t)}));case"toggleTheme":return this.Aa(),null}throw Wt().createError("Unknown AMP action ",n)},e.pa=function(t){var e,n=t.args,i=ee(t.node),r="copy-error";if("AMP"===t.tagOrTarget)e=n.text.trim();else{var o,s=it(t.node);e=(null!==(o=s.value)&&void 0!==o?o:s.textContent).trim()}var a,u,h,c=function(t,e,n){var r={data:{type:e}},o=Vr(i,"".concat(t),r);Un(n.caller).trigger(n.caller,t,o,3)};null!==(u=(a=i.document).defaultView)&&void 0!==u&&null!==(h=u.navigator)&&void 0!==h&&h.clipboard||wu(a)?function(t,e,n,i){var r;null!==(r=t.navigator)&&void 0!==r&&r.clipboard?t.navigator.clipboard.writeText(e).then(n,i):wu(t.document)&&function(t,e){var n,i=!1,r=t.document,o=r.createElement("textarea");Si(o,{position:"fixed",top:0,left:0,width:"50px",height:"50px",padding:0,border:"none",outline:"none",background:"transparent"}),o.value=e,o.readOnly=!0,o.contentEditable="true",r.body.appendChild(o),null===(n=t.getSelection())||void 0===n||n.removeAllRanges(),o.focus(),o.setSelectionRange(0,e.length);try{i=r.execCommand("copy")}catch(t){}return Ee(o),i}(t,e)?n():i()}(i,e,(function(){c("copy-success","success",t)}),(function(){c(r,"error",t)})):c(r,"unsupported",t)},e.ya=function(t){var e=this,n=t.args,i=t.caller,r=t.method,o=ee(t.node),s=u();return i.tagName.startsWith("AMP-")&&(s=i.getImpl().then((function(t){"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),s.then((function(){var t;(t=e.ampdoc,yn(t,"navigation")).navigateTo(o,n.url,"AMP.".concat(r),{target:n.target,opener:n.opener})}),(function(t){Wt().error(Eu,t)}))},e.Aa=function(){var t=this;this.ampdoc.waitForBodyOpen().then((function(e){try{var n=e.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.ba()?(e.classList.remove(n),t.ampdoc.win.localStorage.setItem("amp-dark-mode","no")):(e.classList.add(n),t.ampdoc.win.localStorage.setItem("amp-dark-mode","yes"))}catch(t){}}))},e.wa=function(t){var e=ee(t.node),n=e.parent!=e,i=!1;return e.opener&&this.ampdoc.isSingleDoc()&&!n&&(e.close(),i=e.closed),i?u():this.ya(t)},e.va=function(t){var e=t.node,n=t.args,i=n&&n.position,r=n&&n.duration;return i&&!["top","bottom","center"].includes(i)&&(i=void 0),K(r)||(r=void 0),this.Th.animateScrollIntoView(e,i,r)},e.da=function(t){return Oe(t.node),null},e.fa=function(t){var e=t.node;if(e.classList.contains("i-amphtml-element")){var n=e;this.oa.mutateElement(n,(function(){return n.collapse()}),!0)}else this.oa.mutateElement(e,(function(){return Ti(e,!1)}));return null},e.ca=function(t){var e=this,n=t.node,i=ee(n);if(n.classList.contains(tr(Hi)))return Wt().warn(Eu,"Elements with layout=nodisplay cannot be dynamically shown.",n),null;this.oa.measureElement((function(){"none"!=Oi(i,n).display||Au(n)||Wt().warn(Eu,'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',n)}));var r,o=(r=n).hasAttribute("autofocus")?r:r.querySelector("[autofocus]");return o&&$n(i).isIos()?(this.xa(n,o),this.oa.mutateElement(n,(function(){}))):this.oa.mutateElement(n,(function(){e.xa(n,o)})),null},e.xa=function(t,e){t.classList.contains("i-amphtml-element")?t.expand():Ti(t,!0),e&&Oe(e)},e.la=function(t){return Au(t.node)?this.ca(t):this.fa(t)},e.ma=function(t){var e=t.node,n=t.args,i=Wt().assertString(n.class,"Argument 'class' must be a string.");return Su.test(i)||this.oa.mutateElement(e,(function(){if(void 0!==n.force){var t=Wt().assertBoolean(n.force,"Optional argument 'force' must be a boolean.");e.classList.toggle(i,t)}else e.classList.toggle(i)})),null},e.ga=function(t){var e=t.node,n=t.args;return this.oa.mutateElement(e,(function(){if(void 0!==(null==n?void 0:n.force)){var t=Wt().assertBoolean(n.force,"Optional argument 'force' must be a boolean.");e.checked=t}else!0===e.checked?e.checked=!1:e.checked=!0})),null},t}(),Pu="Storage",Ou=function(){function t(t,e,n){this.ampdoc=t,this.yh=e,this.Bs=n,this.md=n instanceof Mu,this.i=bo(this.ampdoc.win.location),this.pd=null}var e=t.prototype;return e.bd=function(){return this.gd(),this},e.get=function(t,e){return this.yd().then((function(n){return n.get(t,e)}))},e.set=function(t,e,n){return Jt("boolean"==typeof e),this.setNonBoolean(t,e,n)},e.setNonBoolean=function(t,e,n){return this.wd((function(i){return i.set(t,e,n)}))},e.remove=function(t){return this.wd((function(e){return e.remove(t)}))},e.isViewerStorage=function(){return this.md},e.yd=function(){return this.pd||(this.pd=this.Bs.loadBlob(this.i).then((function(t){return t?at(atob(t)):{}})).catch((function(t){return Kt().expectedError(Pu,"Failed to load store: ",t),{}})).then((function(t){return new xu(t)}))),this.pd},e.wd=function(t){var e=this;return this.yd().then((function(n){t(n);var i=btoa(JSON.stringify(n.obj));return e.Bs.saveBlob(e.i,i)})).then(this.Ad.bind(this))},e.gd=function(){var t=this;this.yh.onBroadcast((function(e){"amp-storage-reset"==e.type&&e.origin==t.i&&(Kt().fine(Pu,"Received reset message"),t.pd=null)}))},e.Ad=function(){Kt().fine(Pu,"Broadcasted reset message"),this.yh.broadcast({type:"amp-storage-reset",origin:this.i})},t}(),xu=function(){function t(t,e){this.obj=E(t),this.xd=e||8,this.Ed=this.obj.vv||Object.create(null),this.obj.vv||(this.obj.vv=this.Ed)}var e=t.prototype;return e.get=function(t,e){var n=this.Ed[t],i=n?n.t:void 0,r=!e||null==i||i+e>Date.now();return n&&r?n.v:void 0},e.set=function(t,e,n){if(Jt("__proto__"!=t&&"prototype"!=t),void 0!==this.Ed[t]){var i=this.Ed[t],r=Date.now();n&&(r=i.t),i.v=e,i.t=r}else this.Ed[t]={v:e,t:Date.now()};var o=Object.keys(this.Ed);if(o.length>this.xd){for(var s=1/0,a=null,u=0;u<o.length;u++){var h=this.Ed[o[u]];h.t<s&&(a=o[u],s=h.t)}a&&delete this.Ed[a]}},e.remove=function(t){delete this.Ed[t]},t}(),Ru=function(){function t(t){if(this.win=t,this.Od=this.Td(),!this.Od){var e=new Error("localStorage not supported.");Kt().expectedError(Pu,e)}}var e=t.prototype;return e.Td=function(){try{return"localStorage"in this.win&&(this.win.localStorage.getItem("test"),!0)}catch(t){return!1}},e.Pd=function(t){return"amp-store:".concat(t)},e.loadBlob=function(t){var e=this;return new Promise((function(n){e.Od?n(e.win.localStorage.getItem(e.Pd(t))):n(null)}))},e.saveBlob=function(t,e){var n=this;return new Promise((function(i){n.Od?(n.win.localStorage.setItem(n.Pd(t),e),i()):i()}))},t}(),Mu=function(){function t(t){this.yh=t}var e=t.prototype;return e.loadBlob=function(t){return this.yh.sendMessageAwaitResponse("loadStore",{origin:t}).then((function(t){return t.blob}))},e.saveBlob=function(t,e){return this.yh.sendMessageAwaitResponse("saveStore",{origin:t,blob:e}).catch((function(t){throw Kt().createExpectedError(Pu,"Failed to save store: ",t)}))},t}(),Cu="__AMP_IMPL_",_u=function(){},Lu=function(){function t(t){this.vu=t,this.Ea={},this.Pa={}}var e=t.prototype;return e.whenReady=function(t){return this.Ta(t).then(_u)},e.setHtmlForTemplate=function(t,e){var n=this;return this.Ta(t).then((function(t){return n.Oa(t,e)}))},e.renderTemplate=function(t,e){var n=this;return this.Ta(t).then((function(t){return n.Di(t,e)}))},e.renderTemplateAsString=function(t,e){return this.Ta(t).then((function(t){return t.renderAsString(e)}))},e.getTemplateRenderer=function(t){return this.Ta(t).then((function(t){return{renderAsString:function(e){return t.renderAsString(e)}}}))},e.renderTemplateArray=function(t,e){var n=this;return 0==e.length?Promise.resolve([]):this.Ta(t).then((function(t){return e.map((function(e){return n.Di(t,e)}))}))},e.findAndRenderTemplate=function(t,e,n){return this.renderTemplate(this.findTemplate(t,n),e)},e.findAndSetHtmlForTemplate=function(t,e,n){return this.setHtmlForTemplate(this.findTemplate(t,n),e)},e.findAndRenderTemplateArray=function(t,e,n){return this.renderTemplateArray(this.findTemplate(t,n),e)},e.hasTemplate=function(t,e){return!!this.maybeFindTemplate(t,e)},e.findTemplate=function(t,e){var n=this.maybeFindTemplate(t,e);Xt(n,"Template not found for %s",t);var i=n.tagName;return Xt("TEMPLATE"==i||"SCRIPT"==i&&"text/plain"===n.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag'),n},e.maybeFindTemplate=function(t,e){var n=t.getAttribute("template");return n?Te(t).getElementById(n):e?ce(t,e):t.querySelector('template[type], script[type="text/plain"]')},e.Ta=function(t){var e=this,n=t[Cu];if(n)return Promise.resolve(n);var i="",r=t.tagName;"TEMPLATE"==r?i=t.getAttribute("type"):"SCRIPT"==r&&(i=t.getAttribute("template")),Xt(i,"Type must be specified: %s",t);var o=t.__AMP_WAIT_;return o||(o=this.Ia(t,i).then((function(n){var i=n,r=t[Cu]=new i(t,e.vu.win);return delete t.__AMP_WAIT_,r})),t.__AMP_WAIT_=o,o)},e.Ia=function(t,e){if(this.Ea[e])return this.Ea[e];var n=new h,i=n.promise,r=n.resolve;return this.Ea[e]=i,this.Pa[e]=r,i},e.Ra=function(t,e){if(this.Ea[t]){var n=this.Pa[t];Xt(n,"Duplicate template type: %s",t),delete this.Pa[t],n(e)}else this.Ea[t]=Promise.resolve(e)},e.Di=function(t,e){return t.render(e)},e.Oa=function(t,e){return t.setHtml(e)},t}(),Iu=function(){function t(t){this.win=t,this.Sa=this.win.Promise.resolve(),this._a=0,this.Ma={},this.ka=Date.now()}var e=t.prototype;return e.timeSinceStart=function(){return Date.now()-this.ka},e.delay=function(t,e){var n=this;if(!e){var i="p"+this._a++;return this.Sa.then((function(){n.Ma[i]?delete n.Ma[i]:t()})).catch(xo),i}return this.win.setTimeout((function(){try{t()}catch(t){throw xo(t),t}}),e)},e.cancel=function(t){"string"!=typeof t?this.win.clearTimeout(t):this.Ma[t]=!0},e.promise=function(t){var e=this;return new this.win.Promise((function(n){if(-1==e.delay(n,t))throw new Error("Failed to schedule timer.")}))},e.timeoutPromise=function(t,e,n){var i,r=this,o=new this.win.Promise((function(e,o){if(-1==(i=r.delay((function(){o(Wt().createError(n||"timeout"))}),t)))throw new Error("Failed to schedule timer.")}));if(!e)return o;var s=function(){r.cancel(i)};return e.then(s,s),this.win.Promise.race([o,e])},e.poll=function(t,e){var n=this;return new this.win.Promise((function(i){var r=n.win.setInterval((function(){e()&&(n.win.clearInterval(r),i())}),t)}))},t}();function ku(t){pn(t,"timer",Iu)}var Du=function(){function t(t){var e=t.getRootNode(),n=e.ownerDocument||e;this.Ca=n.createElement("a"),this.Ot=new to(100)}var e=t.prototype;return e.parse=function(t,e){return oo(this.Ca,t,e?null:this.Ot)},e.Na=function(t){return"string"!=typeof t?t:this.parse(t)},e.isProtocolValid=function(t){return po(t)},e.getSourceOrigin=function(t){return bo(this.Na(t))},e.getSourceUrl=function(t){return yo(this.Na(t))},e.resolveRelativeUrl=function(t,e){return wo(t,this.Na(e))},e.assertHttpsUrl=function(t,e){return lo(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"source")},e.assertAbsoluteHttpOrHttpsUrl=function(t){return function(t){return Xt(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),ro(t).href}(t)},e.isProxyOrigin=function(t){return mo(this.Na(t))},e.isSecure=function(t){return co(this.Na(t))},e.getWinOrigin=function(t){return t.origin||this.Na(t.location.href).origin},e.getCdnUrlOnOrigin=function(t){if(mo(t))return t;var e=this.Na(t),n=e.hash,i=e.host,r=e.pathname,o=e.search,s=encodeURIComponent(i);return"".concat(Tt,"/c/").concat(s).concat(r).concat(o).concat(n)},t}(),Nu="Expander",Bu=function(){function t(t,e,n,i,r,o){this.ja=t,this.Da=e,this.La=n,this.Ua=i,this.ys=r,this.za=!o}var e=t.prototype;return e.expand=function(t){if(!t.length)return this.Ua?t:Promise.resolve(t);var e=this.ja.getExpr(this.Da,this.ys),n=this.Ha(t,e);return n.length?this.Ga(t,n):this.Ua?t:Promise.resolve(t)},e.getMacroNames=function(t){var e=this.ja.getExpr(this.Da,this.ys);return t.match(e)||[]},e.Ha=function(t,e){var n=[];return t.replace(e,(function(t,e,i){var r=t.length,o={start:i,stop:r+i-1,name:e,length:r};n.push(o)})),n},e.Ga=function(t,e){var n=this,i=[],r=0,o=0,s=e[o],a=0,u=!1;return function h(c){for(var l,f="",m=[],p=[];r<t.length&&o<=e.length;){var v,g=f.trim();if(s&&r===s.start)g&&m.push(a?(l=f).trimStart?l.trimStart():(l+"_").trim().slice(0,-1):f),v=n.Da&&A(n.Da,s.name)?{name:s.name,prioritized:n.Da[s.name],encode:c}:k(k({},n.ja.get(s.name)),{},{name:s.name,encode:c}),r=s.stop+1,s=e[++o],"("===t[r]?(r++,a++,i.push(v),m.push(h(!1))):m.push(n.Va(v)),f="";else if("`"===t[r])u?(u=!1,f.length&&m.push(f)):(u=!0,g&&m.push(g)),f="",r++;else if(a&&","===t[r]&&!u)g&&m.push(g),p.push(m),m=[],","===t[r+1]&&(p.push([""]),r++),f="",r++;else{if(a&&")"===t[r]&&!u){r++,a--;var y=i.pop();return g&&m.push(g),p.push(m),n.Va(y,p)}f+=t[r],r++}r===t.length&&f.length&&m.push(f)}return n.Ua?m.join(""):Promise.all(m).then((function(t){return t.join("")})).catch((function(t){return d(t),""}))}(this.za)},e.Va=function(t,e){var n,i=t.encode,r=t.name;if(null!=t.prioritized?n=t.prioritized:this.Ua&&null!=t.sync?n=t.sync:this.Ua?(Wt().error(Nu,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.Ua){var o=this.Fa(n,r,e);return i?encodeURIComponent(o):o}return this.Ba(n,r,e).then((function(t){return i?encodeURIComponent(t):t}))},e.Ba=function(t,e,n){var i,r=this;try{if("function"==typeof t){var o=t;i=n?this.qa(n).then((function(t){return o.apply(null,t)})):c(o)}else i=Promise.resolve(t);return i.then((function(t){return r.Wa(e,t,n),null==t?"":t})).catch((function(t){return d(t),r.Wa(e,"",n),Promise.resolve("")}))}catch(t){return d(t),this.Wa(e,"",n),Promise.resolve("")}},e.qa=function(t){return Promise.all(t.map((function(t){return Promise.all(t).then((function(t){return t.join("")}))})))},e.Fa=function(t,e,n){try{var i,r=t;return"function"==typeof t&&(r=t.apply(null,this.$a(n))),r&&"function"==typeof r.then?(Wt().error(Nu,"ignoring async macro resolution"),i=""):"string"==typeof r||"number"==typeof r||"boolean"==typeof r?(this.Wa(e,r,n),i=r.toString()):(this.Wa(e,"",n),i=""),i}catch(t){return d(t),this.Wa(e,"",n),""}},e.$a=function(t){return t?t.map((function(t){return t.join("")})):t},e.Wa=function(t,e,n){if(this.La){var i="";if(n){var r=n.filter((function(t){return""!==t})).join(",");i="(".concat(r,")")}this.La["".concat(t).concat(i)]=e||""}},t}(),Vu={navigationStart:1,redirectStart:1,redirectEnd:1,fetchStart:1,domainLookupStart:1,domainLookupEnd:1,connectStart:1,secureConnectionStart:1,connectEnd:1,requestStart:1,responseStart:1,responseEnd:1,domLoading:2,domInteractive:2,domContentLoaded:2,domComplete:2,loadEventStart:3,loadEventEnd:4};function Uu(t,e,n){var i,r=Vu[e]||3,o=n?Vu[n]||3:r,s=Math.max(r,o);if(1===s)i=u();else if(2===s)i=un(t.document);else if(3===s)i=qr(t);else if(4===s){var a=ei(t);i=qr(t).then((function(){return a.promise(1)}))}return Jt(i),i.then((function(){return ju(t,e,n)}))}function ju(t,e,n){var i=t.performance&&t.performance.timing;if(i&&0!=i.navigationStart){var r=void 0===n?i[e]:i[n]-i[e];return!K(r)||r<0?void 0:r}}function Fu(t,e){var n=t.performance&&t.performance.navigation;if(n&&void 0!==n[e])return n[e]}var qu="UrlReplacements";function Hu(t){return function(){return(new Date)[t]()}}function zu(t,e){return function(){return t[e]}}function Gu(t,e){return e?(Xt("ISOCountry"===e,"The value passed to AMP_GEO() is not valid name:"+e),t&&t[e]||"unknown"):(null==t?void 0:t.matchedISOCountryGroups.join(","))||"unknown"}var Wu=function(t){N(n,t);var e=V(n);function n(t){var n;return(n=e.call(this,t)).Ya=null,n.Ka={},n}var i=n.prototype;return i.Xa=function(t,e,n){var i=this;return this.setBoth(t,(function(){return ju(i.ampdoc.win,e,n)}),(function(){return Uu(i.ampdoc.win,e,n)}))},i.initialize=function(){var t=this,e=this.ampdoc.win,n=this.ampdoc.getHeadNode(),i=ai(this.ampdoc);ii(this.ampdoc).then((function(e){t.Ya=e})),this.set("RANDOM",(function(){return Math.random()}));var r=Object.create(null);this.set("COUNTER",(function(t){return r[t]=1+(0|r[t])})),this.set("CANONICAL_URL",(function(){return t.Ja().canonicalUrl})),this.set("CANONICAL_HOST",(function(){return ro(t.Ja().canonicalUrl).host})),this.set("CANONICAL_HOSTNAME",(function(){return ro(t.Ja().canonicalUrl).hostname})),this.set("CANONICAL_PATH",(function(){return ro(t.Ja().canonicalUrl).pathname})),this.setAsync("DOCUMENT_REFERRER",(function(){return oi(t.ampdoc).getReferrerUrl()})),this.setAsync("EXTERNAL_REFERRER",(function(){return oi(t.ampdoc).getReferrerUrl().then((function(t){return t?ro(yo(t)).hostname===_i.getHostname(e)?null:t:null}))})),this.set("TITLE",(function(){var t=e.document;return t.originalTitle||t.title})),this.set("AMPDOC_URL",(function(){return fo(t.Qa(e.location.href))})),this.set("AMPDOC_HOST",(function(){var t=ro(e.location.href);return t&&t.host})),this.set("AMPDOC_HOSTNAME",(function(){var t=ro(e.location.href);return t&&t.hostname}));var o=function(){var e=t.Ja();return fo(t.Qa(e.sourceUrl))};this.setBoth("SOURCE_URL",(function(){return o()}),(function(){return nu().then((function(){return o()}))})),this.set("SOURCE_HOST",(function(){return ro(t.Ja().sourceUrl).host})),this.set("SOURCE_HOSTNAME",(function(){return ro(t.Ja().sourceUrl).hostname})),this.set("SOURCE_PATH",(function(){return ro(t.Ja().sourceUrl).pathname})),this.set("PAGE_VIEW_ID",(function(){return t.Ja().pageViewId})),this.setAsync("PAGE_VIEW_ID_64",(function(){return t.Ja().pageViewId64})),this.setBoth("QUERY_PARAM",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.Za(e,n)}),(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return nu().then((function(){return t.Za(e,n)}))})),this.set("FRAGMENT_PARAM",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.tf(e,n)}));var s=null;this.setBoth("CLIENT_ID",(function(t){return s?s[t]:null}),(function(e,i,r,o){Xt(e,"The first argument to CLIENT_ID, the fallback Cookie name, is required");var a=u();return i&&(a=function(t){return kn(t,"userNotificationManager","amp-user-notification")}(n).then((function(t){return t.get(i)}))),zn(t.ampdoc).then((function(t){return o="true"==o,t.get({scope:e,createCookieIfNotPresent:!0,cookieName:r||void 0,disableBackup:o},a)})).then((function(t){return s||(s=Object.create(null)),t&&"_ga"==(r||e)&&("string"==typeof t?t=t.replace(/^(GA1|1)\.[\d-]+\./,""):Kt().error(qu,"non-string cid, what is it?",Object.keys(t))),s[e]=t,t}))})),this.setAsync("VARIANT",(function(e){return t.nf((function(t){var n=t[e];return Xt(void 0!==n,"The value passed to VARIANT() is not a valid experiment in <amp-experiment>:"+e),null===n?"none":n}),"VARIANT")})),this.setAsync("VARIANTS",(function(){return t.nf((function(t){var e=[];for(var n in t){var i=t[n];e.push(n+"."+(i||"none"))}return e.join("!")}),"VARIANTS")})),this.setBoth("AMP_GEO",(function(e){return Gu(t.Ya,e)}),(function(e){return t.if((function(t){return Gu(t,e)}),"AMP_GEO")})),this.set("TIMESTAMP",Hu("getTime")),this.set("TIMESTAMP_ISO",Hu("toISOString")),this.set("TIMEZONE",Hu("getTimezoneOffset")),this.set("SCROLL_HEIGHT",(function(){return i.getScrollHeight()})),this.set("SCROLL_WIDTH",(function(){return i.getScrollWidth()})),this.set("VIEWPORT_HEIGHT",(function(){return i.getHeight()})),this.set("VIEWPORT_WIDTH",(function(){return i.getWidth()}));var a=e.screen;this.set("SCREEN_WIDTH",zu(a,"width")),this.set("SCREEN_HEIGHT",zu(a,"height")),this.set("AVAILABLE_SCREEN_HEIGHT",zu(a,"availHeight")),this.set("AVAILABLE_SCREEN_WIDTH",zu(a,"availWidth")),this.set("SCREEN_COLOR_DEPTH",zu(a,"colorDepth")),this.set("DOCUMENT_CHARSET",(function(){var t=e.document;return t.characterSet||t.charset})),this.set("BROWSER_LANGUAGE",(function(){var t=e.navigator;return(t.language||t.userLanguage||t.browserLanguage||"").toLowerCase()})),this.set("USER_AGENT",(function(){return e.navigator.userAgent})),this.setBoth("UACH",(function(e){var n;return null!==(n=t.Ka[e])&&void 0!==n?n:""}),(function(n){return t.rf(n,e)})),this.Xa("PAGE_LOAD_TIME","navigationStart","loadEventStart"),this.Xa("DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd"),this.Xa("TCP_CONNECT_TIME","connectStart","connectEnd"),this.Xa("SERVER_RESPONSE_TIME","requestStart","responseStart"),this.Xa("PAGE_DOWNLOAD_TIME","responseStart","responseEnd"),this.Xa("REDIRECT_TIME","navigationStart","fetchStart"),this.Xa("DOM_INTERACTIVE_TIME","navigationStart","domInteractive"),this.Xa("CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart"),this.setAsync("ACCESS_READER_ID",(function(){return t.ef((function(t){return t.getAccessReaderId()}),"ACCESS_READER_ID")})),this.setAsync("AUTHDATA",(function(e){return Xt(e,"The first argument to AUTHDATA, the field, is required"),t.ef((function(t){return t.getAuthdataField(e)}),"AUTHDATA")})),this.setAsync("VIEWER",(function(){return oi(t.ampdoc).getViewerOrigin().then((function(t){return null==t?"":t}))})),this.setAsync("TOTAL_ENGAGED_TIME",(function(){return jn(n).then((function(t){return t.getTotalEngagedTime()}))})),this.setAsync("INCREMENTAL_ENGAGED_TIME",(function(t,e){return jn(n).then((function(n){return n.getIncrementalEngagedTime(t,"false"!==e)}))})),this.set("NAV_TIMING",(function(t,n){return Xt(t,"The first argument to NAV_TIMING, the start attribute name, is required"),ju(e,t,n)})),this.setAsync("NAV_TIMING",(function(t,n){return Xt(t,"The first argument to NAV_TIMING, the start attribute name, is required"),Uu(e,t,n)})),this.set("NAV_TYPE",(function(){return Fu(e,"type")})),this.set("NAV_REDIRECT_COUNT",(function(){return Fu(e,"redirectCount")})),this.set("AMP_VERSION",(function(){return"2410292120000"})),this.set("BACKGROUND_STATE",(function(){return t.ampdoc.isVisible()?"0":"1"})),this.setAsync("VIDEO_STATE",(function(e,n){return(i=t.ampdoc,yn(i,"video-manager")).getVideoStateProperty(e,n);var i})),this.setAsync("AMP_STATE",(function(e){var n=t.ampdoc.getRootNode(),i=n.documentElement||n;return Hn(i).then((function(t){return t&&t.getStateValue(e)||""}))}))},i.Qa=function(t){var e=this.Ja().replaceParams;return e?function(t,e){for(var n=vt(ro(t).search),i={},r=Object.keys(e),o=0;o<r.length;o++)A(n,r[o])||(i[r[o]]=e[r[o]]);return uo(t,i)}(vo(t),e):t},i.Ja=function(){return Wn(this.ampdoc)},i.ef=function(t,e){var n=this.ampdoc.getHeadNode();return Promise.all([Bn(n),Vn(n)]).then((function(n){var i=n[0],r=n[1],o=i||r;return o?i&&r?t(r)||t(i):t(o):(Wt().error(qu,"Access or subsciptions service is not installed to access: ",e),null)}))},i.Za=function(t,e){Xt(t,"The first argument to QUERY_PARAM, the query string param is required");var n=vt(ro(vo(this.ampdoc.win.location.href)).search),i=this.Ja().replaceParams;return void 0!==n[t]?n[t]:i&&void 0!==i[t]?i[t]:e},i.tf=function(t,e){Xt(t,"The first argument to FRAGMENT_PARAM, the fragment string param is required"),Xt("string"==typeof t,"param should be a string");var n=gt(this.ampdoc.win);return void 0===n[t]?e:n[t]},i.nf=function(t,e){return(n=this.ampdoc.getHeadNode(),Dn(n,"variant","amp-experiment",!0)).then((function(t){return Xt(t,"To use variable %s, amp-experiment should be configured",e),t.getVariants()})).then((function(e){return t(e)}));var n},i.if=function(t,e){var n=this;return null!==this.Ya?t(this.Ya):ii(this.ampdoc.getHeadNode()).then((function(i){return Xt(i,"To use variable %s, amp-geo should be configured",e),n.Ya=i,t(i)}))},i.rf=function(t,e){var n,i,r,o=this;return t in this.Ka?Promise.resolve(this.Ka[t]):(null===(n=e.navigator)||void 0===n||null===(i=n.userAgentData)||void 0===i||null===(r=i.getHighEntropyValues([t]))||void 0===r?void 0:r.then((function(e){var n="object"!==p(e[t])?e[t]:JSON.stringify(e[t]);return o.Ka[t]=n,n})))||Promise.resolve("")},n}(function(){function t(t){this.ampdoc=t,this.uf=Object.create(null),this.sf=!1,this.hf()}var e=t.prototype;return e.Go=function(){this.initialize(),this.sf=!0},e.initialize=function(){},e.get=function(t){return this.sf||this.Go(),this.uf[t]},e.set=function(t,e){return Jt(-1==t.indexOf("RETURN")),this.uf[t]=this.uf[t]||{sync:void 0,async:void 0},this.uf[t].sync=e,this},e.setAsync=function(t,e){return Jt(-1==t.indexOf("RETURN")),this.uf[t]=this.uf[t]||{sync:void 0,async:void 0},this.uf[t].async=e,this},e.setBoth=function(t,e,n){return this.set(t,e).setAsync(t,n)},e.getExpr=function(t,e){this.sf||this.Go();var n=k(k({},this.uf),t);return this.af(Object.keys(n),e)},e.af=function(t,e){var n=this;if(this.hf()&&(t=t.filter((function(t){return n.hf().includes(t)}))),e&&(t=t.filter((function(t){return e[t]}))),0===t.length)return/_^/g;t.sort((function(t,e){return e.length-t.length}));var i=t.map((function(t){return"$"===t[0]?"\\"+t:t})).join("|");return new RegExp("\\$?("+i+")","g")},e.hf=function(){return this.ff?this.ff:this.ampdoc.isSingleDoc()&&Rs(this.ampdoc.getRootNode())?(this.ff=[""],this.ff):void 0},t}()),Yu=function(){function t(t,e){this.ampdoc=t,this.ja=e}var e=t.prototype;return e.expandStringSync=function(t,e,n){return new Bu(this.ja,e,void 0,!0,n,!0).expand(t)},e.expandStringAsync=function(t,e,n){return new Bu(this.ja,e,void 0,void 0,n,!0).expand(t)},e.expandUrlSync=function(t,e,n){return this.cf(t,new Bu(this.ja,e,void 0,!0,n).expand(t))},e.expandUrlAsync=function(t,e,n,i){var r=this;return new Bu(this.ja,e,void 0,void 0,n,i).expand(t).then((function(e){return r.cf(t,e)}))},e.expandInputValueAsync=function(t){return this.lf(t,!1)},e.expandInputValueSync=function(t){return this.lf(t,!0)},e.lf=function(t,e){Jt("INPUT"==t.tagName&&"hidden"==(t.getAttribute("type")||"").toLowerCase());var n=this.vf(t);if(!n)return e?t.value:Promise.resolve(t.value);void 0===t["amp-original-value"]&&(t["amp-original-value"]=t.value);var i=new Bu(this.ja,void 0,void 0,e,n).expand(t["amp-original-value"]||t.value);return e?t.value=i:i.then((function(e){return t.value=e,e}))},e.vf=function(t,e){var n=t.getAttribute("data-amp-replace");if(n){var i={};return n.trim().split(/\s+/).forEach((function(t){!e||A(e,t)?i[t]=!0:Wt().warn("URL","Ignoring unsupported replacement",t)})),i}},e.mn=function(t){var e=Wn(this.ampdoc);if(t.origin==ro(e.canonicalUrl).origin||t.origin==ro(e.sourceUrl).origin)return!0;var n=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin");if(n)for(var i=n.trim().split(/\s+/),r=0;r<i.length;r++)if(t.origin==ro(i[r]).origin)return!0;return!1},e.maybeExpandLink=function(t,e){Jt("A"==t.tagName);var n=t,i=n.getAttribute("data-amp-addparams")||"",r=this.vf(n,{CLIENT_ID:!0,QUERY_PARAM:!0,PAGE_VIEW_ID:!0,PAGE_VIEW_ID_64:!0,NAV_TIMING:!0});if(r||i||e){var o=n["amp-original-href"]||n.getAttribute("href"),s=ro(o);null==n["amp-original-href"]&&(n["amp-original-href"]=o);var a=this.mn(s);return i&&(o=uo(o,vt(i=a?this.df(i,r):i))),a?(e&&(r&&r.QUERY_PARAM||(e=this.expandUrlSync(e,void 0,{QUERY_PARAM:!0})),o=uo(o,vt(e))),o=this.df(o,r),n.href=o):(r&&Wt().warn("URL","Ignoring link replacement %s because the link does not go to the document's source, canonical, or allowlisted origin.",o),n.href=o)}},e.df=function(t,e){return e?this.expandUrlSync(t,void 0,e):t},e.collectVars=function(t,e){var n=Object.create(null);return new Bu(this.ja,e,n).expand(t).then((function(){return n}))},e.collectDisallowedVarsSync=function(t){var e=t.getAttribute("src"),n=new Bu(this.ja).getMacroNames(e),i=this.vf(t);return i?n.filter((function(t){return!i[t]})):n},e.cf=function(t,e){return ro(e,!0).protocol!=ro(t,!0).protocol?(Wt().error(qu,"Illegal replacement of the protocol: ",t),t):(Xt(po(e),"The replacement url has invalid protocol: %s",e),e)},e.getVariableSource=function(){return this.ja},t}(),Ku="Viewer",Ju=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i,Xu=function(){function t(t){var e=this;this.ampdoc=t,this.win=t.win,this.Sh=xe(this.win),this.gv=!0,this.Id=!1,this.Sd=w(),this.Md=w(),this.Rd=new pi,this._d=new pi,this.kd=null,this.Nd=null,this.Cd=[],this.jd=w(),this.Dd=w(),t.isSingleDoc()&&Object.assign(this.Dd,vt(this.win.location.hash)),this.gv=!parseInt(t.getParam("off"),10),Kt().fine(Ku,"- runtimeOn:",this.gv),this.Id=!(!parseInt(t.getParam("history"),10)&&!this.Id),Kt().fine(Ku,"- history:",this.Id),Kt().fine(Ku,"- visibilityState:",this.ampdoc.getVisibilityState()),this.Ud=null,this.zd=mo(ro(this.ampdoc.win.location.href));var n=new h;this.Ld=n.resolve,this.Hd=this.Gd(n.promise),this.Dh=null,this.Vd=null;var i=t.getParam("referrer");if(this.Fd=this.isEmbedded()&&null!=i&&!1!==this.Bd()?i:this.win.document.referrer,this.qd=new Promise((function(n){e.isEmbedded()&&null!=t.getParam("referrer")?e.isTrustedViewer().then((function(i){i?n(t.getParam("referrer")):(n(e.win.document.referrer),e.Fd!=e.win.document.referrer&&(Kt().expectedError(Ku,"Untrusted viewer referrer override: "+e.Fd+" at "+e.Nd),e.Fd=e.win.document.referrer))})):n(e.win.document.referrer)})),this.$d=fo(this.win.location.href||""),this.Wd=new Promise((function(n){var i=t.getParam("viewerUrl");e.isEmbedded()&&i?e.isTrustedViewer().then((function(t){t?e.$d=Jt(i):Kt().expectedError(Ku,"Untrusted viewer url override: "+i+" at "+e.Nd),n(e.$d)})):n(e.$d)})),this.Dd.click){var r=fo(this.win.location.href);r!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.replaceState({},"",r),delete this.Dd.click,Kt().fine(Ku,"replace fragment:"+this.win.location.href))}this.ampdoc.whenFirstVisible().then((function(){e.maybeUpdateFragmentForCct()})),this.ampdoc.isSingleDoc()&&this.Kd()}var e=t.prototype;return e.Gd=function(t){if(!(this.Sh&&!this.win.__AMP_TEST_IFRAME&&(this.ampdoc.getParam("origin")||this.ampdoc.getParam("visibilityState")||-1!=this.win.location.search.indexOf("amp_js_v"))||this.isWebviewEmbedded()||this.isCctEmbedded())&&this.ampdoc.isSingleDoc())return null;var e="initMessagingChannel timeout";return ei(this.win).timeoutPromise(2e4,t,e).catch((function(t){var n=$u(t);throw n&&G(n.message,e)&&(n=Kt().createExpectedError(n)),xo(n),n}))},e.getAmpDoc=function(){return this.ampdoc},e.getParam=function(t){return this.ampdoc.getParam(t)},e.hasCapability=function(t){var e=this.ampdoc.getParam("cap");return!!e&&-1!=e.split(",").indexOf(t)},e.isEmbedded=function(){return!!this.Hd},e.isWebviewEmbedded=function(){return!this.Sh&&"1"==this.ampdoc.getParam("webview")},e.isCctEmbedded=function(){if(null!=this.Ud)return this.Ud;if(this.Ud=!1,!this.Sh){var t=vt(this.win.location.search);this.Ud="1"===t.amp_gsa&&(t.amp_js_v||"").startsWith("a")}return this.Ud},e.isProxyOrigin=function(){return this.zd},e.maybeUpdateFragmentForCct=function(){if(this.isCctEmbedded()&&this.win.history.replaceState){var t=bo(this.win.location.href),e=Wn(this.ampdoc).canonicalUrl,n=bo(e);this.Yd(t,n)&&(this.Dd.ampshare=e,this.win.history.replaceState({},"","#"+ho(this.Dd)))}},e.Yd=function(t,e){var n=function(t){return t.split(".").length>2?t.replace(Ju,"$1"):t};return n(t)==n(e)},e.isRuntimeOn=function(){return this.gv},e.toggleRuntime=function(){this.gv=!this.gv,Kt().fine(Ku,"Runtime state:",this.gv),this.Rd.fire(this.gv)},e.onRuntimeState=function(t){return this.Rd.add(t)},e.isOvertakeHistory=function(){return this.Id},e.getVisibilityState=function(){return this.ampdoc.getVisibilityState()},e.isVisible=function(){return this.ampdoc.isVisible()},e.hasBeenVisible=function(){return this.ampdoc.hasBeenVisible()},e.whenFirstVisible=function(){return this.ampdoc.whenFirstVisible()},e.whenNextVisible=function(){return this.ampdoc.whenNextVisible()},e.getFirstVisibleTime=function(){return this.ampdoc.getFirstVisibleTime()},e.getLastVisibleTime=function(){return this.ampdoc.getLastVisibleTime()},e.onVisibilityChanged=function(t){return this.ampdoc.onVisibilityChanged(t)},e.Jd=function(t){var e;t&&(Jt("prerender"===(e=t)||"preview"===e||"visible"===e||"hidden"===e||"paused"===e||"inactive"===e),t===fi&&(t=null!=this.ampdoc.getLastVisibleTime()?mi:hi),this.ampdoc.overrideVisibilityState(t),Kt().fine(Ku,"visibilitychange event:",this.ampdoc.getVisibilityState()))},e.getResolvedViewerUrl=function(){return this.$d},e.getViewerUrl=function(){return this.Wd},e.maybeGetMessagingOrigin=function(){return this.Nd},e.getUnconfirmedReferrerUrl=function(){return this.Fd},e.getReferrerUrl=function(){return this.qd},e.isTrustedViewer=function(){var t=this;if(!this.Dh){var e=this.Bd();this.Dh=void 0!==e?Promise.resolve(e):this.Hd.then((function(e){return!!e&&t.Xd(e)}))}return this.Dh},e.Bd=function(){return!!this.isEmbedded()&&(!this.win.location.ancestorOrigins||this.isWebviewEmbedded()||this.isCctEmbedded()?void 0:this.win.location.ancestorOrigins.length>0&&this.Xd(this.win.location.ancestorOrigins[0]))},e.getViewerOrigin=function(){var t;return this.Vd||(this.isEmbedded()?this.win.location.ancestorOrigins&&this.win.location.ancestorOrigins.length>0&&(t=this.win.location.ancestorOrigins[0]):t="",this.Vd=void 0!==t?Promise.resolve(t):ei(this.win).timeoutPromise(1e3,this.Hd).catch((function(){return""}))),this.Vd},e.Xd=function(t){var e=ro(t),n=e.protocol;return"x-thread:"==n||"https:"==n&&Mt.some((function(t){return t.test(e.hostname)}))},e.onMessage=function(t,e){var n=this.Sd[t];n||(n=new pi,this.Sd[t]=n);var i=n.add(e);return this.jd[t]&&(this.jd[t].forEach((function(t){n.fire(t.data),t.deferred.resolve()})),this.jd[t]=[]),i},e.onMessageRespond=function(t,e){var n=this;return this.Md[t]=e,this.jd[t]&&(this.jd[t].forEach((function(t){t.deferred.resolve(e(t.data))})),this.jd[t]=[]),function(){n.Md[t]===e&&delete n.Md[t]}},e.receiveMessage=function(t,e,n){if("visibilitychange"==t)return this.Jd(e.state),u();if("broadcast"==t)return this._d.fire(e),u();var i=this.Sd[t],r=this.Md[t];if(!i&&!r){if(this.jd[t]=this.jd[t]||[],this.jd[t].length>=50)return;var o=new h;return this.jd[t].push({data:e,deferred:o}),o.promise}return i&&i.fire(e),r?r(e):i?u():void 0},e.setMessageDeliverer=function(t,e){var n=this;if(this.kd)throw new Error("message channel can only be initialized once");if(null==e)throw new Error("message channel must have an origin");if(Kt().fine(Ku,"message channel established with origin: ",e),this.kd=t,this.Nd=e,this.Ld(e),this.Cd.length>0){var i=this.Cd.slice(0);this.Cd=[],i.forEach((function(t){var e=n.kd(t.eventType,t.data,t.awaitResponse);t.awaitResponse&&t.responseResolver(e)}))}},e.maybeGetMessageDeliverer=function(){return this.kd},e.sendMessage=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.At(t,e,n,!1)},e.sendMessageAwaitResponse=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.At(t,e,n,!0)},e.At=function(t,e,n,i){var r=this;if(this.kd)return c((function(){return r.kd(t,e,i)}));if(!this.Hd)return i?Promise.reject($u()):u();if(!n)return this.Hd.then((function(){return r.kd(t,e,i)}));var o,s=H(this.Cd,(function(e){return e.eventType==t}));if(-1!=s)(o=this.Cd.splice(s,1)[0]).data=e,o.awaitResponse=o.awaitResponse||i;else{var a=new h,l=a.promise,f=a.resolve;o={eventType:t,data:e,awaitResponse:i,responsePromise:l,responseResolver:f}}return this.Cd.push(o),o.responsePromise},e.broadcast=function(t){return this.Hd?this.At("broadcast",t,!1,!1).then((function(){return!0}),(function(){return!1})):Promise.resolve(!1)},e.onBroadcast=function(t){return this._d.add(t)},e.whenMessagingReady=function(){return this.Hd},e.replaceUrl=function(t){if(t&&this.ampdoc.isSingleDoc()&&this.win.history.replaceState)try{var e=ro(this.win.location.href),n=ro(fo(t)+this.win.location.hash);e.origin==n.origin&&bo(e)==bo(n)&&(this.win.history.replaceState({},"",n.href),this.win.location.originalHref=e.href,Kt().fine(Ku,"replace url:"+n.href))}catch(t){Kt().error(Ku,"replaceUrl failed",t)}},e.Kd=function(){var t=this;if(this.ampdoc.getVisibilityState()!=li){var e=[],n=function(){return e.forEach((function(t){return t()}))},i=function(){t.Jd(li),n(),Kt().expectedError(Ku,"Received user action in non-visible doc")},r={capture:!0,passive:!0};e.push(Ur(this.win,"keydown",i,r),Ur(this.win,"touchstart",i,r),Ur(this.win,"mousedown",i,r)),this.whenFirstVisible().then(n)}},t}();function $u(t){var e;return t instanceof Error?((t=l(t)).message="No messaging channel: "+t.message,e=t):e=new Error("No messaging channel: "+t),e.message=Z(e.message),e}var Qu=function(){function t(){}return t.solveYValueFromXValue=function(e,n,i,r,o,s,a,u,h){return t.Qd(t.Zd(e,n,r,s,u),i,o,a,h)},t.Zd=function(e,n,i,r,o){var s=1e-6,a=(e-n)/(o-n);if(a<=0)return 0;if(a>=1)return 1;for(var u=0,h=1,c=0,l=0;l<8;l++){c=t.tm(a,n,i,r,o);var f=(t.tm(a+s,n,i,r,o)-c)/s;if(Math.abs(c-e)<s)return a;if(Math.abs(f)<s)break;c<e?u=a:h=a,a-=(c-e)/f}for(var d=0;Math.abs(c-e)>s&&d<8;d++)c<e?(u=a,a=(a+h)/2):(h=a,a=(a+u)/2),c=t.tm(a,n,i,r,o);return a},t.tm=function(e,n,i,r,o){if(0==e)return n;if(1==e)return o;var s=t.im(n,i,e),a=t.im(i,r,e),u=t.im(r,o,e);return s=t.im(s,a,e),a=t.im(a,u,e),t.im(s,a,e)},t.Qd=function(e,n,i,r,o){if(0==e)return n;if(1==e)return o;var s=t.im(n,i,e),a=t.im(i,r,e),u=t.im(r,o,e);return s=t.im(s,a,e),a=t.im(a,u,e),t.im(s,a,e)},t.im=function(t,e,n){return t+n*(e-t)},t}(),Zu={LINEAR:function(t){return t},EASE:function(t){return Qu.solveYValueFromXValue(t,0,0,.25,.1,.25,1,1,1)},EASE_IN:function(t){return Qu.solveYValueFromXValue(t,0,0,.42,0,1,1,1,1)},EASE_OUT:function(t){return Qu.solveYValueFromXValue(t,0,0,0,0,.58,1,1,1)},EASE_IN_OUT:function(t){return Qu.solveYValueFromXValue(t,0,0,.42,0,.58,1,1,1)}},th={linear:Zu.LINEAR,ease:Zu.EASE,"ease-in":Zu.EASE_IN,"ease-out":Zu.EASE_OUT,"ease-in-out":Zu.EASE_IN_OUT};function eh(t){if(!t)return null;if(W(t)){if(-1!=t.indexOf("cubic-bezier")){var e=t.match(/cubic-bezier\((.+)\)/);if(e){var n=e[1].split(",").map(parseFloat);if(4==n.length){for(var i=0;i<4;i++)if(isNaN(n[i]))return null;return r=n[0],o=n[1],s=n[2],a=n[3],function(t){return Qu.solveYValueFromXValue(t,0,0,r,o,s,a,1,1)}}}return null}return th[t]}var r,o,s,a;return t}var nh="Animation",ih=function(){},rh=function(){function t(t,e){this.nm=t,this.Gc=e||si(self),this.rm=null,this.sm=[]}t.animate=function(e,n,i,r){return new t(e).setCurve(r).add(0,n,1).start(i)};var e=t.prototype;return e.setCurve=function(t){return t&&(this.rm=eh(t)),this},e.add=function(t,e,n,i){return this.sm.push({delay:t,func:e,duration:n,curve:eh(i)}),this},e.start=function(t){return new oh(this.Gc,this.nm,this.sm,this.rm,t)},t}(),oh=function(){function t(t,e,n,i,r){this.Gc=t,this.nm=e,this.sm=[];for(var o=0;o<n.length;o++){var s=n[o];this.sm.push({delay:s.delay,func:s.func,duration:s.duration,curve:s.curve||i,started:!1,completed:!1})}this.om=r,this.ka=Date.now(),this.es=!0,this.Ke={};var a=new h;this.um=a.promise,this.Fe=a.resolve,this.hm=a.reject,this.am=this.Gc.createAnimTask(this.nm,{mutate:this.fm.bind(this)}),this.Gc.canAnimate(this.nm)?this.am(this.Ke):(Kt().warn(nh,"cannot animate"),this.lm(!1,0))}var e=t.prototype;return e.then=function(t,e){return t||e?this.um.then(t,e):this.um},e.thenAlways=function(t){var e=t||ih;return this.then(e,e)},e.halt=function(t){this.lm(!1,t||0)},e.lm=function(t,e){if(this.es){if(this.es=!1,0!=e){this.sm.length>1&&this.sm.sort((function(t,e){return t.delay+t.duration-(e.delay+e.duration)}));try{if(e>0)for(var n=0;n<this.sm.length;n++)this.sm[n].func(1,!0);else for(var i=this.sm.length-1;i>=0;i--)this.sm[i].func(0,!1)}catch(e){Kt().error(nh,"completion failed: "+e,e),t=!1}}t?this.Fe():this.hm()}},e.fm=function(t){if(this.es){for(var e=Date.now(),n=Math.min((e-this.ka)/this.om,1),i=0;i<this.sm.length;i++){var r=this.sm[i];!r.started&&n>=r.delay&&(r.started=!0)}for(var o=0;o<this.sm.length;o++){var s=this.sm[o];s.started&&!s.completed&&this.vm(s,n)}1==n?this.lm(!0,0):this.Gc.canAnimate(this.nm)?this.am(this.Ke):(Kt().warn(nh,"cancel animation"),this.lm(!1,0))}},e.vm=function(t,e){var n,i;if(t.duration>0){if(i=n=Math.min((e-t.delay)/t.duration,1),t.curve&&1!=i)try{i=t.curve(n)}catch(t){return Kt().error(nh,"step curve failed: "+t,t),void this.lm(!1,0)}}else n=1,i=1;1==n&&(t.completed=!0);try{t.func(i,t.completed)}catch(t){return Kt().error(nh,"step mutate failed: "+t,t),void this.lm(!1,0)}},t}();function sh(t,e){for(var n,i=e.lastElementChild;i;i=i.previousElementSibling)if(i.getBoundingClientRect().height>0){var r=Oi(t,i);if("static"==r.position||"relative"==r.position){n=r;break}}return n?parseInt(n.marginBottom,10):0}var ah=function(){function t(t){var e=this;this.win=t,this.Gc=si(t);var n=this.win.document,i=n.documentElement,r=i.className;i.classList.add("i-amphtml-ios-embed");var o=n.createElement("html");this.dm=o,o.id="i-amphtml-wrapper",o.className=r,this.Bc=new pi,this.qc=new pi,this.pm=this.bm.bind(this),this.gm=function(){return e.qc.fire()},this.ym=0,this.wm=!1,we(n,this.Am.bind(this)),an(n).then((function(){i.classList.add("i-amphtml-ios-overscroll")})),Kt().fine("Viewport","initialized ios-embed-wrapper viewport")}var e=t.prototype;return e.ensureReadyForElements=function(){this.Am()},e.Am=function(){if(!this.wm){this.wm=!0;var t=this.win.document,e=t.body;t.documentElement.appendChild(this.dm),this.dm.appendChild(e),Object.defineProperty(t,"body",{get:function(){return e}}),this.bm()}},e.connect=function(){this.win.addEventListener("resize",this.gm),this.dm.addEventListener("scroll",this.pm)},e.disconnect=function(){this.win.removeEventListener("resize",this.gm),this.dm.removeEventListener("scroll",this.pm)},e.getBorderTop=function(){return 1},e.requiresFixedLayerTransfer=function(){return!Lr(this.win,"ios-fixed-no-transfer")||parseFloat($n(this.win).getIosVersionString())<12.2},e.overrideGlobalScrollTo=function(){return!0},e.supportsPositionFixed=function(){return!0},e.onScroll=function(t){this.Bc.add(t)},e.onResize=function(t){this.qc.add(t)},e.updatePaddingTop=function(t){this.ym=t,Ai(this.dm,{"padding-top":Pi(t)})},e.hideViewerHeader=function(t,e){t||this.updatePaddingTop(0)},e.showViewerHeader=function(t,e){t||this.updatePaddingTop(e)},e.disableScroll=function(){this.dm.classList.add("i-amphtml-scroll-disabled")},e.resetScroll=function(){this.dm.classList.remove("i-amphtml-scroll-disabled")},e.updateLightboxMode=function(t){return u()},e.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}},e.getScrollTop=function(){return this.dm.scrollTop},e.getScrollLeft=function(){return 0},e.getScrollWidth=function(){return this.dm.scrollWidth},e.getScrollHeight=function(){return this.dm.scrollHeight},e.getContentHeight=function(){var t=this.win.document.body,e=t.getBoundingClientRect().height,n=sh(this.win,t),i=Oi(this.win,t);return parseInt(i.marginTop,10)+this.ym+e+n+parseInt(i.marginBottom,10)},e.contentHeightChanged=function(){},e.getLayoutRect=function(t,e,n){var i=t.getBoundingClientRect(),r=null!=n?n:this.getScrollTop(),o=null!=e?e:this.getScrollLeft();return Le(Math.round(i.left+o),Math.round(i.top+r),Math.round(i.width),Math.round(i.height))},e.getRootClientRectAsync=function(){return Promise.resolve(null)},e.setScrollTop=function(t){this.dm.scrollTop=t||1},e.bm=function(t){0==this.dm.scrollTop&&(this.dm.scrollTop=1,t&&t.preventDefault()),t&&this.Bc.fire()},e.getScrollingElement=function(){return this.dm},e.getScrollingElementScrollsLikeViewport=function(){return!1},t}(),uh=function(){function t(t){var e=this;this.ampdoc=t,this.win=t.win,this.Ih=$n(this.win),this.Bc=new pi,this.qc=new pi,this.pm=this.xm.bind(this),this.gm=function(){return e.qc.fire()},Kt().fine("Viewport","initialized natural viewport")}var e=t.prototype;return e.xm=function(){this.Bc.fire()},e.connect=function(){this.win.addEventListener("scroll",this.pm),this.win.addEventListener("resize",this.gm)},e.disconnect=function(){this.win.removeEventListener("scroll",this.pm),this.win.removeEventListener("resize",this.gm)},e.ensureReadyForElements=function(){},e.getBorderTop=function(){return 0},e.requiresFixedLayerTransfer=function(){return!1},e.overrideGlobalScrollTo=function(){return!1},e.supportsPositionFixed=function(){return!0},e.onScroll=function(t){this.Bc.add(t)},e.onResize=function(t){this.qc.add(t)},e.updatePaddingTop=function(t){Ai(this.win.document.documentElement,{"padding-top":Pi(t)})},e.hideViewerHeader=function(t,e){t||this.updatePaddingTop(0)},e.showViewerHeader=function(t,e){t||this.updatePaddingTop(e)},e.disableScroll=function(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")},e.resetScroll=function(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")},e.updateLightboxMode=function(t){return u()},e.getSize=function(){var t=this.win.innerWidth,e=this.win.innerHeight;if(t&&e)return{width:t,height:e};var n=this.win.document.documentElement;return{width:n.clientWidth,height:n.clientHeight}},e.getScrollTop=function(){var t=this.getScrollingElement().scrollTop||this.win.pageYOffset,e=this.ampdoc.getRootNode().host;return e?t-e.offsetTop:t},e.getScrollLeft=function(){return 0},e.getScrollWidth=function(){return this.getScrollingElement().scrollWidth},e.getScrollHeight=function(){return this.getScrollingElement().scrollHeight},e.getContentHeight=function(){var t=this.getScrollingElement(),e=t.getBoundingClientRect(),n=e.top+this.getScrollTop(),i=$n(this.win).isSafari()?sh(this.win,t):0,r=Oi(this.win,t);return n+parseInt(r.marginTop,10)+e.height+i+parseInt(r.marginBottom,10)},e.contentHeightChanged=function(){},e.getLayoutRect=function(t,e,n){var i=t.getBoundingClientRect(),r=null!=n?n:this.getScrollTop(),o=null!=e?e:this.getScrollLeft();return Le(Math.round(i.left+o),Math.round(i.top+r),Math.round(i.width),Math.round(i.height))},e.getRootClientRectAsync=function(){return Promise.resolve(null)},e.setScrollTop=function(t){this.getScrollingElement().scrollTop=t},e.getScrollingElement=function(){var t=this.win.document;return t.scrollingElement?t.scrollingElement:t.body&&this.Ih.isWebKit()?t.body:t.documentElement},e.getScrollingElementScrollsLikeViewport=function(){return!0},t}(),hh="Viewport";function ch(t,e,n){return function(t,e,n){var i=parseInt(Oi(t,e)[n],10);return isNaN(i)?0:i}(t,e===t.document.body?t.document.documentElement:e,n)}function lh(t,e){return ch(t,e,"scrollPaddingTop")}var fh=function(){function t(t,e,n){var i=this,r=t.win;this.ampdoc=t,this.Em=this.ampdoc.win.document,this.Bs=e,this.yh=n,this.Vc=null,this.It=null,this.Om=null,this.Tm=!1,this.Pm=null,this.ym=Number(n.getParam("paddingTop")||0),this.Im=0,this.Xo=ei(r),this.Gc=si(r),this.Sm=!1,this.oe=null,this.Mm=0,this.Fc=new pi,this.Bc=new pi,this.qc=new pi,this.Rm=void 0,this._m=void 0,this.km=null,this.yh.onMessage("viewport",this.Nm.bind(this)),this.yh.onMessage("scroll",this.Cm.bind(this)),this.yh.onMessage("disableScroll",this.jm.bind(this)),this.yh.isEmbedded()&&this.Bs.updatePaddingTop(this.ym),this.Bs.onScroll(this.Wc.bind(this)),this.Bs.onResize(this.$c.bind(this)),this.onScroll(this.Dm.bind(this)),this.Yc=!1,this.ampdoc.onVisibilityChanged(this.Kc.bind(this)),this.Kc();var o=this.Em.documentElement;if(t.isSingleDoc()&&o.classList.add("i-amphtml-singledoc"),n.isEmbedded()?o.classList.add("i-amphtml-embedded"):o.classList.add("i-amphtml-standalone"),xe(r)&&o.classList.add("i-amphtml-iframed"),"1"===n.getParam("webview")&&o.classList.add("i-amphtml-webview"),xe(r)&&"scrollRestoration"in r.history&&(r.history.scrollRestoration="manual"),this.Bs.overrideGlobalScrollTo())try{Object.defineProperty(r,"scrollTo",{value:function(t,e){return i.setScrollTop(e)}}),["pageYOffset","scrollY"].forEach((function(t){Object.defineProperty(r,t,{get:function(){return i.getScrollTop()}})}))}catch(t){}$n(r).isIos()&&xe(r)&&this.ampdoc.isSingleDoc()&&this.ampdoc.whenReady().then((function(){r.scrollTo(-.1,0)}))}var e=t.prototype;return e.dispose=function(){this.Bs.disconnect()},e.ensureReadyForElements=function(){this.Bs.ensureReadyForElements()},e.Kc=function(){var t=this.ampdoc.isVisible();t!=this.Yc&&(this.Yc=t,t?(this.Bs.connect(),this.It&&this.$c(),this.Om&&(this.Om=null,this.getScrollTop())):this.Bs.disconnect())},e.getPaddingTop=function(){return this.ym},e.getScrollTop=function(){return null==this.Om&&(this.Om=this.Bs.getScrollTop()),this.Om},e.getScrollLeft=function(){return null==this.Pm&&(this.Pm=this.Bs.getScrollLeft()),this.Pm},e.setScrollTop=function(t){this.Om=null,this.Bs.setScrollTop(t)},e.updatePaddingBottom=function(t){this.ampdoc.waitForBodyOpen().then((function(e){Ei(e,"borderBottom","".concat(t,"px solid transparent"))}))},e.getSize=function(){if(this.It)return this.It;if(this.It=this.Bs.getSize(),0==this.It.width||0==this.It.height){var t=this.ampdoc.getVisibilityState();t!=hi&&t!=li||Math.random()<.01&&Kt().error(hh,"viewport has zero dimensions")}return this.It},e.getHeight=function(){return this.getSize().height},e.getWidth=function(){return this.getSize().width},e.getScrollWidth=function(){return this.Bs.getScrollWidth()},e.getScrollHeight=function(){return this.Bs.getScrollHeight()},e.getContentHeight=function(){return this.Bs.getContentHeight()},e.contentHeightChanged=function(){this.Bs.contentHeightChanged()},e.getRect=function(){if(null==this.Vc){var t=this.getScrollTop(),e=this.getScrollLeft(),n=this.getSize();this.Vc=Le(e,t,n.width,n.height)}return this.Vc},e.getLayoutRect=function(t){var e=this.getScrollLeft(),n=this.getScrollTop(),i=Sn(t,this.ampdoc.win);if(i){var r=this.Bs.getLayoutRect(t,0,0),o=this.Bs.getLayoutRect(i,e,n);return Le(Math.round(r.left+o.left),Math.round(r.top+o.top),Math.round(r.width),Math.round(r.height))}return this.Bs.getLayoutRect(t,e,n)},e.getClientRectAsync=function(t){var e=this.Gc.measurePromise((function(){return t.getBoundingClientRect()})),n=this.Bs.getRootClientRectAsync(),i=Sn(t,this.ampdoc.win);return i&&(n=this.Gc.measurePromise((function(){return i.getBoundingClientRect()}))),Promise.all([e,n]).then((function(t){var e,n=t[0],i=t[1];return i?ke(n,i.left,i.top):(e=n,Le(Number(e.left),Number(e.top),Number(e.width),Number(e.height)))}))},e.supportsPositionFixed=function(){return this.Bs.supportsPositionFixed()},e.isDeclaredFixed=function(t){return!!this.km&&this.km.isDeclaredFixed(t)},e.scrollIntoView=function(t){var e=this;return this.Um(t).then((function(n){return e.zm(t,n)}))},e.zm=function(t,e){var n=this,i=this.Bs.getLayoutRect(t).top,r=lh(this.ampdoc.win,e);c((function(){return Math.max(0,i-n.ym-r)})).then((function(t){return n.Lm(e,t)}))},e.animateScrollIntoView=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return Jt(!r||void 0!==i),this.Um(t).then((function(o){return e.animateScrollWithinParent(t,o,n,i,r)}))},e.animateScrollWithinParent=function(t,e,n,i,r){var o=this;Jt(!r||void 0!==i);var s=this.Bs.getLayoutRect(t),a=(this.Hm(e)?this.getSize():this.getLayoutRect(e)).height,u=this.ampdoc.win,h=lh(u,e),c=function(t,e){return ch(t,e,"scrollPaddingBottom")}(u,e),l=-h;return"bottom"===n?l=-a+c+s.height:"center"===n&&(l=-(a-h-c)/2+s.height/2),this.Gm(e).then((function(t){var n=s.top-o.ym+l,a=Math.max(0,n);if(a!=t)return o.Vm(e,t,a,i,r)}))},e.Vm=function(t,e,n,i){var r=this,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"ease-in",s=void 0!==i?i:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;return Math.floor(function(t,e,n){return nt(0<=n),Math.min(Math.max(t,0),n)}(.65*Math.abs(t-e),0,n))}(e,n),a=function(t,e){return function(n){return t+(e-t)*n}}(e,n);return rh.animate(t,(function(e){r.Lm(t,a(e))}),s,o).thenAlways((function(){r.Lm(t,n)}))},e.Um=function(t){var e=this;return this.Gc.measurePromise((function(){return de(t,".i-amphtml-scrollable")||e.Bs.getScrollingElement()}))},e.Lm=function(t,e){this.Hm(t)?this.Bs.setScrollTop(e):this.Gc.mutate((function(){t.scrollTop=e}))},e.Gm=function(t){var e=this;return this.Hm(t)?c((function(){return e.getScrollTop()})):this.Gc.measurePromise((function(){return t.scrollTop}))},e.Hm=function(t){return t==this.Bs.getScrollingElement()},e.getScrollingElement=function(){return this.oe?this.oe:this.oe=this.Bs.getScrollingElement()},e.onChanged=function(t){return this.Fc.add(t)},e.onScroll=function(t){return this.Bc.add(t)},e.onResize=function(t){return this.qc.add(t)},e.enterLightboxMode=function(t,e){return this.yh.sendMessage("requestFullOverlay",{},!0),this.enterOverlayMode(),this.km&&this.km.enterLightbox(t,e),t&&this.maybeEnterFieLightboxMode(t),this.Bs.updateLightboxMode(!0)},e.leaveLightboxMode=function(t){return this.yh.sendMessage("cancelFullOverlay",{},!0),this.km&&this.km.leaveLightbox(),this.leaveOverlayMode(),t&&this.maybeLeaveFieLightboxMode(t),this.Bs.updateLightboxMode(!1)},e.isLightboxExperimentOn=function(){return Lr(this.ampdoc.win,"amp-lightbox-a4a-proto")},e.maybeEnterFieLightboxMode=function(t){var e=this.Fm(t);e&&(Jt(this.isLightboxExperimentOn()),e.enterFullOverlayMode())},e.maybeLeaveFieLightboxMode=function(t){var e=this.Fm(t);e&&Jt(e).leaveFullOverlayMode()},e.Fm=function(t){var e=Sn(t,this.ampdoc.win);return e&&e.__AMP_EMBED__},e.enterOverlayMode=function(){this.disableTouchZoom(),this.disableScroll()},e.leaveOverlayMode=function(){this.resetScroll(),this.restoreOriginalTouchZoom()},e.disableScroll=function(){var t,e=this,n=this.ampdoc.win,i=n.document.documentElement;this.Gc.measure((function(){var r=Oi(n,i).marginRight,o=function(t){var e=t.document.documentElement;return t.innerWidth-e.clientWidth}(e.ampdoc.win);t=parseInt(r,10)+o})),this.Gc.mutate((function(){Ei(i,"margin-right",t,"px"),e.Bs.disableScroll()}))},e.resetScroll=function(){var t=this,e=this.ampdoc.win.document.documentElement;this.Gc.mutate((function(){Ei(e,"margin-right",""),t.Bs.resetScroll()}))},e.resetTouchZoom=function(){var t=this,e=this.ampdoc.win.innerHeight,n=this.Em.documentElement.clientHeight;e&&n&&e===n||this.disableTouchZoom()&&this.Xo.delay((function(){t.restoreOriginalTouchZoom()}),50)},e.disableTouchZoom=function(){var t=this.Bm();if(!t)return!1;var e=function(t,e){var n=function(t){var e=Object.create(null);if(!t)return e;for(var n=t.split(/,|;/),i=0;i<n.length;i++){var r=n[i].split("="),o=r[0].trim(),s=r[1];s=(s||"").trim(),o&&(e[o]=s)}return e}(t),i=!1;for(var r in e)n[r]!==e[r]&&(i=!0,void 0!==e[r]?n[r]=e[r]:delete n[r]);return i?function(t){var e="";for(var n in t)e.length>0&&(e+=","),t[n]?e+=n+"="+t[n]:e+=n;return e}(n):t}(t.content,{"maximum-scale":"1","user-scalable":"no"});return this.qm(e)},e.restoreOriginalTouchZoom=function(){return void 0!==this._m&&this.qm(this._m)},e.updateFixedLayer=function(){return this.km?this.km.update():u()},e.addToFixedLayer=function(t,e){return this.km?this.km.addElement(t,e):u()},e.removeFromFixedLayer=function(t){this.km&&this.km.removeElement(t)},e.createFixedLayer=function(t){var e=this;this.km=new t(this.ampdoc,this.Gc,this.Bs.getBorderTop(),this.ym,this.Bs.requiresFixedLayerTransfer()),this.ampdoc.whenReady().then((function(){return e.km.setup()}))},e.qm=function(t){var e=this.Bm();return!(!e||e.content==t||(Kt().fine(hh,"changed viewport meta to:",t),e.content=t,0))},e.Bm=function(){return xe(this.ampdoc.win)?null:(void 0===this.Rm&&(this.Rm=this.Em.querySelector("meta[name=viewport]"),this.Rm&&(this._m=this.Rm.content)),this.Rm)},e.Cm=function(t){var e=t.scrollTop;this.setScrollTop(e)},e.Nm=function(t){var e=this,n=t.paddingTop,i=t.duration||0,r=t.curve,o=t.transient;if(null!=n&&n!=this.ym&&(this.Im=this.ym,this.ym=n,this.km)){var s=this.km.animateFixedElements(this.ym,this.Im,i,r,o);n<this.Im?this.Bs.hideViewerHeader(o,this.Im):s.then((function(){e.Bs.showViewerHeader(o,n)}))}},e.jm=function(t){t?this.disableScroll():this.resetScroll()},e.Jc=function(t,e){var n=this.getSize(),i=this.getScrollTop(),r=this.getScrollLeft();Kt().fine(hh,"changed event:","relayoutAll=",t,"top=",i,"left=",r,"bottom=",i+n.height,"velocity=",e),this.Fc.fire({relayoutAll:t,top:i,left:r,width:n.width,height:n.height,velocity:e})},e.Wc=function(){var t=this;this.Vc=null,this.Mm++,this.Pm=this.Bs.getScrollLeft();var e=this.Bs.getScrollTop();if(!(e<0)){if(this.Om=e,!this.Sm){this.Sm=!0;var n=Date.now();this.Xo.delay((function(){t.Gc.measure((function(){t.Bv(n,e)}))}),36)}this.Bc.fire()}},e.Bv=function(t,e){var n=this;this.Om=this.Bs.getScrollTop();var i=this.Om,r=Date.now(),o=0;r!=t&&(o=(i-e)/(r-t)),Kt().fine(hh,"scroll: scrollTop="+i+"; velocity="+o),Math.abs(o)<.03?(this.Jc(!1,o),this.Sm=!1):this.Xo.delay((function(){return n.Gc.measure(n.Bv.bind(n,r,i))}),20)},e.Dm=function(){var t=this;this.Tm||(this.Tm=!0,this.Gc.measure((function(){t.Tm=!1,t.yh.sendMessage("scroll",{scrollTop:t.getScrollTop()},!0)})))},e.$c=function(){var t=this;this.Vc=null;var e=this.It;this.It=null;var n=this.getSize();this.updateFixedLayer().then((function(){var i=!e||e.width!=n.width;t.Jc(i,0),(i||e.height!=n.height)&&t.qc.fire({relayoutAll:i,width:n.width,height:n.height})}))},t}();function dh(t){var e,n=oi(t),i=t.win;return e=t.isSingleDoc()&&function(t,e){return $n(t).isIos()&&xe(t)&&e.isEmbedded()&&!e.hasCapability("iframeScroll")?mh.NATURAL_IOS_EMBED:mh.NATURAL}(i,n)==mh.NATURAL_IOS_EMBED?new ah(i):new uh(t),new fh(t,e,n)}var mh={NATURAL:"natural",NATURAL_IOS_EMBED:"natural-ios-embed"},ph=function(){function t(t){this.win=t,this.mf=qn(this.win),this.pf=this.gf(),this.Uu=[],this.bf=[],this.yf=[],this.wf=[],this.Zo=!1,this.Af=null,this.xf=null,this.Ef=this.Pf.bind(this),this.Tf=new Os(this.win,this.Ef,16),this.Of=new Os(this.win,this.Ef,40),this.If=this.Rf.bind(this),this.mf.isSingleDoc()?this.mf.getSingleDoc().onVisibilityChanged(this.If):Ri(this.win.document,this.If)}var e=t.prototype;return e.dispose=function(){Mi(this.win.document,this.If)},e.Rf=function(){this.Zo&&this.Sf()},e.run=function(t,e){this.Uu.push(t),this.yf.push(e||void 0),this.Bu()},e.runPromise=function(t,e){if(this.run(t,e),this.Af)return this.Af;var n=new h;return this.xf=n.resolve,this.Af=n.promise},e.createTask=function(t){var e=this;return function(n){e.run(t,n)}},e.mutate=function(t){this.run({measure:void 0,mutate:t})},e.mutatePromise=function(t){return this.runPromise({measure:void 0,mutate:t})},e.measure=function(t){this.run({measure:t,mutate:void 0})},e.measurePromise=function(t){var e=this;return new Promise((function(n){e.measure((function(){n(t())}))}))},e.canAnimate=function(t){return this._f(Jt(t))},e._f=function(t){if(xi(this.win.document)!=li)return!1;if(this.mf.isSingleDoc())return this.mf.getSingleDoc().isVisible();if(t){var e=this.mf.getAmpDocIfAvailable(t);return!e||e.isVisible()}return!0},e.runAnim=function(t,e,n){return this._f(t)?(this.run(e,n),!0):(Kt().warn("VSYNC","Did not schedule a vsync request, because document was invisible"),!1)},e.createAnimTask=function(t,e){var n=this;return function(i){return n.runAnim(t,e,i)}},e.runAnimMutateSeries=function(t,e,n){var i=this;return this._f(t)?new Promise((function(r,o){var s=Date.now(),a=0,u=i.createAnimTask(t,{mutate:function(t){var i=Date.now()-s;e(i,i-a,t)?n&&i>n?o(new Error("timeout")):(a=i,u(t)):r()}});u({})})):Promise.reject(Ro())},e.Bu=function(){this.Zo||(this.Zo=!0,this.Sf())},e.Sf=function(){this._f()?(this.pf(this.Ef),this.Of.schedule()):this.Tf.schedule()},e.Pf=function(){this.Of.cancel(),this.Zo=!1;var t=this.xf,e=this.yf,n=this.Uu;this.xf=null,this.Af=null,this.Uu=this.bf,this.yf=this.wf;for(var i=0;i<n.length;i++)n[i].measure&&(vh(n[i].measure,e[i])||(n[i].mutate=void 0));for(var r=0;r<n.length;r++)n[r].mutate&&vh(n[r].mutate,e[r]);this.bf=n,this.wf=e,this.bf.length=0,this.wf.length=0,t&&t()},e.gf=function(){var t=this,e=this.win.requestAnimationFrame||this.win.webkitRequestAnimationFrame;if(e)return e.bind(this.win);var n=0;return function(e){var i=Date.now(),r=Math.max(0,16-(i-n));n=i+r,t.win.setTimeout(e,r)}},t}();function vh(t,e){Jt(t);try{void 0!==t(e)&&Kt().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",t.toString())}catch(t){return d(t),!1}return!0}function gh(t){if(!t.defaultPrevented){var e=t.target;if(e&&"FORM"==e.tagName){(e.classList.contains("i-amphtml-form")?!e.hasAttribute("amp-novalidate"):!e.hasAttribute("novalidate"))&&e.checkValidity&&!e.checkValidity()&&t.preventDefault();for(var n=e.elements,i=0;i<n.length;i++)Xt(!n[i].name||n[i].name!=no,"Illegal input name, %s found: %s",no,n[i]);var r=e.getAttribute("action"),o=e.getAttribute("action-xhr"),s=(e.getAttribute("method")||"GET").toUpperCase();o&&(lo(o,e,"action-xhr"),Xt(!mo(o),"form action-xhr should not be on AMP CDN: %s",e),Eo(o)),r&&(lo(r,e,"action"),Xt(!mo(r),"form action should not be on AMP CDN: %s",e),Eo(r)),"GET"==s?Xt(o||r,"form action-xhr or action attribute is required for method=GET: %s",e):"POST"==s&&(r&&Wt().error("form","action attribute is invalid for method=POST: %s",e),o||(t.preventDefault(),Xt(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",e)));var a=e.getAttribute("target");a?Xt("_blank"==a||"_top"==a,"form target=%s is invalid can only be _blank or _top: %s",a,e):e.setAttribute("target","_top"),o&&(t.preventDefault(),t.stopImmediatePropagation(),Un(e).execute(e,"submit",null,e,e,t,3))}}}var yh="Input",bh=function(){function t(t){this.win=t,this.Mf=this.kf.bind(this),this.Cf=this.Nf.bind(this),this.jf=null,this.Df=null,this.Lf=null,this.Uf="ontouchstart"in t||void 0!==t.navigator.maxTouchPoints&&t.navigator.maxTouchPoints>0||void 0!==t.DocumentTouch,Kt().fine(yh,"touch detected:",this.Uf),this.zf=!1,this.win.document.addEventListener("keydown",this.Mf),this.win.document.addEventListener("mousedown",this.Cf),this.Hf=!0,this.Gf=0,this.Vf=new pi,this.Ff=new pi,this.Bf=new pi,this.Uf&&(this.Hf=!this.Uf,this.jf=this.qf.bind(this),Fr(t.document,"mousemove",this.jf))}var e=t.prototype;return e.setupInputModeClasses=function(t){var e=this;this.onTouchDetected((function(n){e.Wf(t,"amp-mode-touch",n)}),!0),this.onMouseDetected((function(n){e.Wf(t,"amp-mode-mouse",n)}),!0),this.onKeyboardStateChanged((function(n){e.Wf(t,"amp-mode-keyboard-active",n)}),!0)},e.isTouchDetected=function(){return this.Uf},e.onTouchDetected=function(t,e){return e&&t(this.isTouchDetected()),this.Vf.add(t)},e.isMouseDetected=function(){return this.Hf},e.onMouseDetected=function(t,e){return e&&t(this.isMouseDetected()),this.Ff.add(t)},e.isKeyboardActive=function(){return this.zf},e.onKeyboardStateChanged=function(t,e){return e&&t(this.isKeyboardActive()),this.Bf.add(t)},e.Wf=function(t,e,n){var i=this;t.waitForBodyOpen().then((function(t){si(i.win).mutate((function(){t.classList.toggle(e,n)}))}))},e.kf=function(t){if(!this.zf&&!t.defaultPrevented){var e=t.target;e&&("INPUT"==e.tagName||"TEXTAREA"==e.tagName||"SELECT"==e.tagName||"OPTION"==e.tagName||e.hasAttribute("contenteditable"))||(this.zf=!0,this.Bf.fire(!0),Kt().fine(yh,"keyboard activated"))}},e.Nf=function(){this.zf&&(this.zf=!1,this.Bf.fire(!1),Kt().fine(yh,"keyboard deactivated"))},e.qf=function(t){var e=this;if(!t.sourceCapabilities||!t.sourceCapabilities.firesTouchEvents){var n;this.Lf||(this.Lf=this.$f.bind(this),this.Df=this.Yf.bind(this));var i=function(t,e,n,i){var r,o=new Promise((function(e){r=Fr(t,"click",e,void 0)}));return o.then(r,r),i&&i(r),o}(this.win.document,0,0,(function(t){n=t}));return ei(this.win).timeoutPromise(300,i).then(this.Df,(function(){n&&n(),e.Lf()}))}this.Yf()},e.$f=function(){this.Hf=!0,this.Ff.fire(!0),Kt().fine(yh,"mouse detected")},e.Yf=function(){this.Gf++,this.Gf<=3?Fr(this.win.document,"mousemove",this.jf):Kt().fine(yh,"mouse detection failed")},t}(),wh=["<link rel=preload referrerpolicy=origin>"],Ah=18e4,Eh=null,Sh=function(){function t(t){this.Kf=t.document,this.Xf=t.document.head,this.Jf={},this.Qf={},this.Ih=$n(t),this.Jf[ro(t.location.href).origin]=!0,this.Zf=function(t){if(!Eh){var e=t.document.createElement("link"),n=e.relList;if(e.as="invalid-value",!n||!n.supports)return{};Eh={preconnect:n.supports("preconnect"),preload:n.supports("preload"),onlyValidAs:"invalid-value"!=e.as}}return Eh}(t),this.Xo=ei(t)}var e=t.prototype;return e.url=function(t,e,n){var i=this;t.whenFirstVisible().then((function(){i.je(t,e,n)}))},e.je=function(t,e,n){if(this.tc(e)){var i=ro(e).origin,r=Date.now(),o=this.Jf[i];if(o&&r<o)n&&(this.Jf[i]=r+Ah);else{var s,a=n?Ah:1e4;this.Jf[i]=r+a,this.Zf.preconnect||((s=this.Kf.createElement("link")).setAttribute("rel","dns-prefetch"),s.setAttribute("href",i),this.Xf.appendChild(s));var u=this.Kf.createElement("link");u.setAttribute("rel","preconnect"),u.setAttribute("href",i),u.setAttribute("referrerpolicy","origin"),this.Xf.appendChild(u),this.Xo.delay((function(){s&&s.parentNode&&s.parentNode.removeChild(s),u.parentNode&&u.parentNode.removeChild(u)}),1e4),this.nc(t,i)}}},e.preload=function(t,e,n){var i=this;this.tc(e)&&(this.Qf[e]||(this.Qf[e]=!0,this.url(t,e,!0),this.Zf.preload&&("document"==n&&this.Ih.isSafari()||t.whenFirstVisible().then((function(){i.ic(e)})))))},e.ic=function(t){var e=Sr(this.Kf)(wh);e.setAttribute("href",t),this.Zf.onlyValidAs?e.as="fetch":e.as="",this.Xf.appendChild(e)},e.tc=function(t){return!(!t.startsWith("https:")&&!t.startsWith("http:"))},e.nc=function(t,e){if(!this.Zf.preconnect&&(this.Ih.isSafari()||this.Ih.isIos())){var n=Date.now();this.Jf[e]=n+Ah;var i=e+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(n-n%Ah),r=new XMLHttpRequest;r.open("HEAD",i,!0),r.withCredentials=!0,r.send()}},t}();function Th(t){var e;!function(t){pn(t,"crypto",Ba)}(t),pn(t,"batched-xhr",ia),pu(t),ku(t),ku(e=t),pn(e,"vsync",ph),function(t){pn(t,"xhr",na)}(t),function(t){pn(t,"input",bh)}(t),function(t){pn(t,"preconnect",Sh)}(t)}function Ph(t){Jt(!t.getParent()),function(t){(function(t){vn(t,"url",Du,!0)})(t),function(t){vn(t,"templates",Lu)}(t),vn(t,"documentInfo",Ua),function(t){vn(t,"cid",xa)}(t),function(t){vn(t,"viewer",Xu,!0)}(t),function(t){vn(t,"viewport",dh,!0)}(t),function(t){vn(t,"hidden-observer",Fa)}(t),function(t){vn(t,"history",Ka)}(t),function(t){vn(t,"resources",bu)}(t),function(t){vn(t,"owners",du)}(t),function(t){vn(t,"mutator",Qa)}(t),function(t){vn(t,"url-replace",(function(t){return new Yu(t,new Wu(t))}))}(t),function(t){vn(t,"action",Vs,!0)}(t),function(t){vn(t,"standard-actions",Tu,!0)}(t),function(t){vn(t,"storage",(function(){var e=oi(t),n=parseInt(e.getParam("storage"),10)?new Mu(e):new Ru(t.win);return new Ou(t,e,n).bd()}),!0)}(t),function(t){vn(t,ru,hu,!0)}(t),function(t){t.whenExtensionsKnown().then((function(){t.declaresExtension("amp-form")&&t.getRootNode().addEventListener("submit",gh,!0)}))}(t),vn(t,"loadingIndicator",Xa)}(t)}function Oh(t){return t.waitForBodyOpen().then((function(){var e,n,i=t.getBody(),r=(e=i,n=function(){return!!i.firstElementChild},new Promise((function(t){be(e,n,t)})));return ei(t.win).timeoutPromise(2e3,r).then((function(){return"AMP-STORY"===i.firstElementChild.tagName}),(function(){return!1}))}))}var xh=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function Rh(t){if(null==t)return 0;var e=function(t){for(var e=t;null!=(t=t.parentNode);)t.nodeName.startsWith("AMP-")&&(e=t);return e}(t),n=e.nodeName;return"IMG"===n||"AMP-IMG"===n?1:"VIDEO"===n||"AMP-VIDEO"===n?2:"AMP-CAROUSEL"===n?8:"AMP-BASE-CAROUSEL"===n?16:"AMP-AD"===n?4:!n.startsWith("AMP-")&&e.textContent?32:0}var Mh=function(){function t(t){var e=this;this.win=t,this.rc=oa(ct(t,16)),this.ec=[],this.uc=t.performance.timeOrigin||t.performance.timing.navigationStart,this.vu=null,this.yh=null,this.qe=null,this.oc=null,this.sc=!1,this.hc=!1,this.ac=w(),this.fc=void 0,this.cc=new vi,this.lc=0,this.vc=[],this.dc=0;var n=this.win.PerformanceObserver&&this.win.PerformanceObserver.supportedEntryTypes||[];if(n.includes("paint")||this.cc.rejectSignal("fcp",Kt().createExpectedError("First Contentful Paint not supported")),this.mc=n.includes("layout-shift"),!this.mc){var i=Kt().createExpectedError("Cumulative Layout Shift not supported");this.cc.rejectSignal(We,i),this.cc.rejectSignal(Ke,i)}this.gc=n.includes("first-input"),this.gc||this.cc.rejectSignal("fid",Kt().createExpectedError("First Input Delay not supported")),this.bc=n.includes("largest-contentful-paint"),this.bc||this.cc.rejectSignal("lcp",Kt().createExpectedError("Largest Contentful Paint not supported")),this.yc=n.includes("navigation"),this.wc=n.includes("event")&&Lr(t,"interaction-to-next-paint"),this.wc||this.cc.rejectSignal(Xe,Kt().createExpectedError("Interaction to next paint not supported")),this.Ac=this.Ac.bind(this),this.addEnabledExperiment("rtv-"+Lt(this.win).rtvVersion),an(t.document).then((function(){e.tick("dr"),e.flush()})),un(t.document).then((function(){return e.xc()})),un(t.document).then((function(){return e.Ec(40)})),this.Pc(),this.Tc=!1,this.Oc=ft(t,(function(){e.Ic()}),6e3)}var e=t.prototype;return e.coreServicesAvailable=function(){var t=this,e=this.win.document.documentElement;this.vu=Fn(e),this.yh=oi(e),this.qe=Zn(e),this.oc=Wn(this.vu),this.hc=this.yh.isEmbedded()&&"1"===this.yh.getParam("csi"),this.vu.onVisibilityChanged(this.flush.bind(this)),this.Rc();var n=this.yh.whenMessagingReady();return this.vu.whenFirstVisible().then((function(){t.tick("ofv"),t.flush()})),(this.bc||this.mc)&&this.vu.onVisibilityChanged(this.Ac),n?n.then((function(){t.tickDelta("msr",t.win.performance.now()),t.tick("timeOrigin",void 0,t.uc);var e=t.vu.getMetaByName("amp-usqp");return e&&e.split(",").forEach((function(e){t.addEnabledExperiment("ssr-"+e)})),t.Sc()})).then((function(){t.sc=!0,t._c(),t.flush()})):u()},e.Sc=function(){var t=this;return Oh(qn(this.win).getSingleDoc()).then((function(e){e&&t.addEnabledExperiment("story")}))},e.xc=function(){this.tick("ol"),this.flush()},e.Pc=function(){var t=this;if("inabox"!==Lt(this.win).runtime){var e=!1,n=!1,i=!1,r=!1,o=function(o){if("first-paint"!=o.name||e)if("first-contentful-paint"!=o.name||n)if("first-input"!==o.entryType||i)"layout-shift"===o.entryType?o.hadRecentInput||(t.Mc(o),t.dc+=o.value):"largest-contentful-paint"===o.entryType?t.kc(o):"navigation"!=o.entryType||r?"event"==o.entryType&&o.interactionId&&t.Ec(o.duration):(["domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","loadEventEnd","loadEventStart","requestStart","responseStart"].forEach((function(e){return t.tick(e,o[e])})),r=!0);else{var s=o.processingStart-o.startTime;t.tickDelta("fid",s),i=!0}else{var a=o.startTime+o.duration;t.tickDelta("fcp",a),t.tickSinceVisible("fcpv",a),n=!0}else t.tickDelta("fp",o.startTime+o.duration),e=!0},s=[];this.win.PerformancePaintTiming&&(this.win.performance.getEntriesByType("paint").forEach(o),s.push("paint")),this.gc&&this.Cc(o,{type:"first-input",buffered:!0}),this.mc&&this.Cc(o,{type:"layout-shift",buffered:!0}),this.bc&&this.Cc(o,{type:"largest-contentful-paint",buffered:!0}),this.yc&&this.Cc(o,{type:"navigation",buffered:!0}),this.wc&&this.Cc(o,{type:"event",durationThreshold:40,buffered:!0}),s.length>0&&this.Cc(o,{entryTypes:s})}},e.Cc=function(t,e){var n=this;try{new this.win.PerformanceObserver((function(e){e.getEntries().forEach(t),n.flush()})).observe(e)}catch(t){Kt().warn("Performance",t)}},e.Nc=function(){var t=this.vu.getVisibilityState();return t===mi||t===fi},e.Ac=function(){this.Nc()&&(this.jc(),this.Ic())},e.Dc=function(){if(!this.Tc){this.Tc=!0;var t=this.win,e=parseInt(Oi(t,t.document.body).getPropertyValue("--google-font-exp"),10);e>=0&&this.addEnabledExperiment("google-font-exp=".concat(e))}},e.jc=function(){this.mc&&(this.Dc(),this.Lc())},e.Mc=function(t){if(this.vu&&!this.Nc()){var e=this.vc;if(e.length>0){var n=e[0],i=e[e.length-1];if(t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3)return void e.push(t);this.Ic()}e.push(t),this.Oc()}},e.Ic=function(){for(var t,e=this.vc,n=this.cc.get(We),i=0,r=0,o=a(e,!0);!(t=o()).done;){var s=t.value;if(s.sources)for(var u,h=a(s.sources,!0);!(u=h()).done;)i|=Rh(u.value.node);r+=s.value}e.length=0,this.Dc(),(null==n||r>n)&&(this.cc.reset(We),this.cc.reset(Ye),this.tickDelta(We,r),this.tickDelta(Ye,i),this.flush())},e.Ec=function(t){if(this.vu){var e=this.cc.get(Xe);(null==e||t>e)&&(this.tickDelta(Xe,t-(null!=e?e:0)),this.flush())}},e.Lc=function(){0===this.lc?(this.tickDelta(Ke,this.dc),this.flush(),this.lc=1):1===this.lc&&(this.tickDelta("cls-2",this.dc),this.flush(),this.lc=2)},e.kc=function(t){var e=t.element,n=t.startTime,i=Rh(e);this.tickDelta("lcpt",i),this.tickDelta("lcp",n),this.tickSinceVisible("lcpv",n),this.flush()},e.Rc=function(){var t=this,e=!this.vu.hasBeenVisible(),n=-1;this.vu.whenFirstVisible().then((function(){n=t.win.performance.now(),t.mark("visible")})),this.Uc().then((function(){if(e){var i=n>-1?t.win.performance.now()-n:0;t.vu.whenFirstVisible().then((function(){t.tickDelta(Je,i)})),t.zc(i),t.mark(Je)}else t.tick(Je),t.zc(t.win.performance.now()-n);t.flush()}))},e.Uc=function(){var t=this;return this.qe.whenFirstPass().then((function(){var e,n=t.win.document.documentElement,i=ai(n).getSize();return Le(0,0,i.width,i.height),e=n,t.win,function(t){var e=Fn(t);return e.signals().whenSignal(Io).then((function(){var t=Zn(e).get().filter((function(t){return!(!t.prerenderAllowed()||xh.includes(t.element.tagName))})).map((function(t){return t.element}));return 0===t.length?Promise.resolve([]):new Promise((function(n){for(var i=e.win,r=new i.IntersectionObserver((function(t){r.disconnect();for(var e=[],i=0;i<t.length;i++){var o=t[i],s=o.isIntersecting,a=o.target;s&&e.push(a)}n(e)}),{root:xe(i)?i.document:null,threshold:.01}),o=0;o<Math.min(t.length,100);o++)r.observe(t[o])})).then((function(t){return Promise.all(t.map((function(t){return t.whenLoaded()})))}))}))}(e)}))},e.tick=function(t,e,n){Jt(null==e||null==n);var i,r={label:t};null!=e?r.delta=i=Math.max(e,0):null!=n?r.value=n:(this.mark(t),i=this.win.performance.now(),r.value=this.uc+i),this.win.dispatchEvent(Vr(this.win,"perf",{label:t,delta:i})),this.sc&&this.hc?this.yh.sendMessage("tick",r):this.Hc(r),this.cc.signal(t,i)},e.mark=function(t){var e,n;null===(e=(n=this.win.performance).mark)||void 0===e||e.call(n,t)},e.tickDelta=function(t,e){this.tick(t,e)},e.tickSinceVisible=function(t,e){var n,i,r=null==e?this.win.performance.now():e,o=this.uc+r,s=null!==(n=this.yh)&&void 0!==n&&n.isEmbedded()?null===(i=this.vu)||void 0===i?void 0:i.getFirstVisibleTime():this.uc,a=s?Math.max(o-s,0):0;this.tickDelta(t,a)},e.flush=function(){this.sc&&this.hc&&(null==this.fc&&(this.fc=Object.keys(this.ac).join(",")),this.yh.sendMessage("sendCsi",{ampexp:this.fc,canonicalUrl:this.oc.canonicalUrl,eventid:this.rc},!0))},e.addEnabledExperiment=function(t){this.ac[t]=!0,this.fc=void 0},e.Hc=function(t){this.ec.length>=50&&this.ec.shift(),this.ec.push(t)},e._c=function(){var t=this;this.yh&&(this.hc?(this.ec.forEach((function(e){t.yh.sendMessage("tick",e)})),this.ec.length=0):this.ec.length=0)},e.zc=function(t){this.yh&&this.yh.sendMessage("prerenderComplete",{value:t},!0)},e.isPerformanceTrackingOn=function(){return this.hc},e.getMetric=function(t){return this.cc.whenSignal(t)},t}();function Ch(t){var e=t.document;if(e.fonts&&e.fonts.values)for(var n,i=e.fonts.values();n=i.next();){var r=n.value;if(!r)return;"loading"==r.status&&"display"in r&&"auto"==r.display&&(r.display="swap")}}var _h=function(){function t(t,e){this.si=t,this.Th=e,this.Hp=!1,this.Gp=0,this.Vp=this.rr.bind(this),this.Fp=this.sr.bind(this),this.Bp=this.er.bind(this),this.qp=this.$p.bind(this),this.si.addEventListener("touchstart",this.Vp,!0)}var e=t.prototype;return e.cleanup=function(){this.Wp(),this.si.removeEventListener("touchstart",this.Vp,!0)},e.rr=function(t){this.Hp||!t.touches||1!=t.touches.length||this.Th.getScrollTop()>0||this.Yp(t.touches[0].clientY)},e.Yp=function(t){this.Hp=!0,this.Gp=t,this.si.addEventListener("touchmove",this.Fp,!0),this.si.addEventListener("touchend",this.Bp,!0),this.si.addEventListener("touchcancel",this.qp,!0)},e.Wp=function(){this.Hp=!1,this.Gp=0,this.si.removeEventListener("touchmove",this.Fp,!0),this.si.removeEventListener("touchend",this.Bp,!0),this.si.removeEventListener("touchcancel",this.qp,!0)},e.sr=function(t){if(this.Hp){var e=t.touches[0].clientY-this.Gp;e>0&&t.preventDefault(),0!=e&&this.Wp()}},e.er=function(t){this.Wp()},e.$p=function(t){this.Wp()},t}(),Lh=["amp-ad","amp-embed","amp-video"],Ih="extensions",kh="0.1",Dh="latest",Nh="__AMP_EXT_LDR",Bh=function(){function t(t){this.win=t,this.mf=qn(t),this.wl={},this.Al=null,this.xl=null,this.El=null}var e=t.prototype;return e.registerExtension=function(t,e,n,i,r){var o,s=n?this.wl[jh(t,Dh)]:null,a=this.Pl(t,e,null===(o=null==s?void 0:s.auto)||void 0===o||o);if(a.latest=n,!a.loaded){n&&(this.wl[jh(t,Dh)]=a);try{var u,h;this.Al=t,this.xl=e,this.El=n,i(r,r._),a.loaded=!0,null===(u=a.resolve)||void 0===u||u.call(a,a.extension),null==s||null===(h=s.resolve)||void 0===h||h.call(s,a.extension)}catch(t){var c,l;throw a.error=t,null===(c=a.reject)||void 0===c||c.call(a,t),null==s||null===(l=s.reject)||void 0===l||l.call(s,t),t}finally{this.Al=null,this.xl=null,this.El=null}}},e.waitForExtension=function(t,e){var n=this.Tl(this.Pl(t,e));return ei(this.win).timeoutPromise(16e3,n).catch((function(e){if(!e.message.includes("timeout"))throw e;return Wt().error(Ih,"Waited over 16s to load extension ".concat(t,".")),n}))},e.preloadExtension=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kh;"amp-embed"==t&&(t="amp-ad");var n=this.Pl(t,e);return this.Ol(t,e,n),this.Tl(n)},e.installExtensionForDoc=function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kh,r=t.getRootNode(),o=r[Nh];return o||(o=r[Nh]=w()),o[e]?o[e]:(t.declareExtension(e,i),ms(t.win,e),o[e]=this.preloadExtension(e,i).then((function(){return n.installExtensionInDoc(t,e,i)})))},e.reloadExtension=function(t,e,n){var i=dn(this.win,t,e,n,!1),r=this.wl[jh(t,e)];return r&&(Jt(!r.loaded&&!r.error),r.scriptPresent=!1),i.forEach((function(e){return e.setAttribute("i-amphtml-loaded-new-version",t)})),this.preloadExtension(t,e)},e.importUnwrapped=function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kh,r=dn(t,e,i,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),o=r.length>0?r[0]:null;return o?n=o.__AMP_SCR_LOADED:(n=(o=fn(this.win,e,i)).__AMP_SCR_LOADED=new Promise((function(t,e){o.onload=t,o.onerror=e})),t.document.head.appendChild(o)),n},e.loadElementClass=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kh;return this.preloadExtension(t,e).then((function(e){return Jt(e.elements[t]).implementationClass}))},e.addElement=function(t,e,n){var i=this;this.Il(t).extension.elements[t]={implementationClass:e,css:n},this.addDocFactory((function(r){i.Rl(r,t,e,n)}))},e.addTemplate=function(t,e){this.addDocFactory((function(n){!function(t,e,n){yn(t,"templates").Ra(e,n)}(n,t,e)}))},e.Rl=function(t,e,n,i){var r=this;i?Wr(t,i,(function(){r.Sl(t.win,e,n)}),!1,e):this.Sl(t.win,e,n)},e.Sl=function(t,e,n){(function(t,e,n){var i=function(t,e){if(e.requiresShadowDom()&&!t.Element.prototype.attachShadow)return Yn(t).importUnwrapped(t,"amp-shadow-dom-polyfill")}(t,n);i?i.then((function(){return ls(t,e,n)})):ls(t,e,n)})(t,e,n),pn(t,e,Uh)},e.addService=function(t,e){this.Il(t).extension.services.push({serviceName:t,serviceClass:e}),this.addDocFactory((function(n){vn(n,t,e,!0)}))},e.addDocFactory=function(t,e){var n=this.Il(e);if(n.docFactories.push(t),this.Al&&this.mf.isSingleDoc()){var i=this.mf.getAmpDoc(this.win.document),r=this.Al,o=this.xl,s=this.El||!1;(i.declaresExtension(r,o)||s&&i.declaresExtension(r,Dh)||n.auto)&&t(i)}},e.preinstallEmbed=function(t,e){var n=this.win,i=t.win;!function(t,e){ps(t,e,"amp-img"),ps(t,e,"amp-pixel")}(n,i),Vh(i),e.forEach((function(e){var n=e.extensionId,r=e.extensionVersion;t.declareExtension(n,r),Lh.includes(n)||ms(i,n)}))},e.installExtensionsInDoc=function(t,e){var n=this;return Promise.all(e.map((function(e){var i=e.extensionId,r=e.extensionVersion;return n.installExtensionInDoc(t,i,r)})))},e.installExtensionInDoc=function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kh;return t.declareExtension(e,i),this.Tl(this.Pl(e,i)).then((function(){n.Pl(e,i).docFactories.forEach((function(n){try{n(t)}catch(t){d("Doc factory failed: ",t,e)}}))}))},e.Pl=function(t,e,n){var i=jh(t,e),r=this.wl[i];return r||(r={version:e,latest:e==Dh,extension:{elements:{},services:[]},auto:n||!1,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},this.wl[i]=r),r},e.Il=function(t){return this.Al||Kt().error(Ih,"unknown extension for ",t),this.Pl(this.Al||"_UNKNOWN_",this.xl||"")},e.Tl=function(t){if(!t.promise)if(t.loaded)t.promise=Promise.resolve(t.extension);else if(t.error)t.promise=Promise.reject(t.error);else{var e=new h;t.promise=e.promise,t.resolve=e.resolve,t.reject=e.reject}return t.promise},e.Ol=function(t,e,n){if(this._l(t,e,n)){var i=fn(this.win,t,e);this.win.document.head.appendChild(i),n.scriptPresent=!0}},e._l=function(t,e,n){if(n.loaded||n.error)return!1;if(void 0===n.scriptPresent){var i=dn(this.win,t,e,n.latest);n.scriptPresent=i.length>0}return!n.scriptPresent},t}();function Vh(t){Lh.forEach((function(e){ms(t,e)}))}function Uh(){return{}}function jh(t,e){return"".concat(t,":").concat(e)}var Fh,qh="-shadowcsshost",Hh=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",zh=(new RegExp("("+qh+Hh,"gim"),new RegExp("(-shadowcsscontext"+Hh,"gim"),new RegExp(qh,"gim"),new RegExp("-shadowcsscontext","gim"),"html{overflow-x:hidden!important}html.i-amphtml-fie{height:100%!important;width:100%!important}html:not([amp4ads]),html:not([amp4ads]) body{height:auto!important}html:not([amp4ads]) body{margin:0!important}body{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}html.i-amphtml-singledoc.i-amphtml-embedded{-ms-touch-action:pan-y pinch-zoom;touch-action:pan-y pinch-zoom}html.i-amphtml-fie>body,html.i-amphtml-singledoc>body{overflow:visible!important}html.i-amphtml-fie:not(.i-amphtml-inabox)>body,html.i-amphtml-singledoc:not(.i-amphtml-inabox)>body{position:relative!important}html.i-amphtml-ios-embed-legacy>body{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important}html.i-amphtml-ios-embed{overflow-y:auto!important;position:static}#i-amphtml-wrapper{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;margin:0!important;display:block!important}html.i-amphtml-ios-embed.i-amphtml-ios-overscroll,html.i-amphtml-ios-embed.i-amphtml-ios-overscroll>#i-amphtml-wrapper{-webkit-overflow-scrolling:touch!important}#i-amphtml-wrapper>body{position:relative!important;border-top:1px solid transparent!important}#i-amphtml-wrapper+body{visibility:visible}#i-amphtml-wrapper+body .i-amphtml-lightbox-element,#i-amphtml-wrapper+body[i-amphtml-lightbox]{visibility:hidden}#i-amphtml-wrapper+body[i-amphtml-lightbox] .i-amphtml-lightbox-element{visibility:visible}#i-amphtml-wrapper.i-amphtml-scroll-disabled,.i-amphtml-scroll-disabled{overflow-x:hidden!important;overflow-y:hidden!important}amp-instagram{padding:54px 0px 0px!important;background-color:#fff}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide]{display:none}[subscriptions-dialog],body:not(.i-amphtml-subs-ready) [subscriptions-action],body:not(.i-amphtml-subs-ready) [subscriptions-section]{display:none!important}amp-experiment,amp-live-list>[update]{display:none}amp-list[resizable-children]>.i-amphtml-loading-container.amp-hidden{display:none!important}amp-list [fetch-error],amp-list[load-more] [load-more-button],amp-list[load-more] [load-more-end],amp-list[load-more] [load-more-failed],amp-list[load-more] [load-more-loading]{display:none}amp-list[diffable] div[role=list]{display:block}amp-story-page,amp-story[standalone]{min-height:1px!important;display:block!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;width:100%!important}amp-story[standalone]{background-color:#000!important;position:relative!important}amp-story-page{background-color:#757575}amp-story .amp-active>div,amp-story .i-amphtml-loader-background{display:none!important}amp-story-page:not(:first-of-type):not([distance]):not([active]){transform:translateY(1000vh)!important}amp-autocomplete{position:relative!important;display:inline-block!important}amp-autocomplete>input,amp-autocomplete>textarea{padding:0.5rem;border:1px solid rgba(0,0,0,.33)}.i-amphtml-autocomplete-results,amp-autocomplete>input,amp-autocomplete>textarea{font-size:1rem;line-height:1.5rem}[amp-fx^=fly-in]{visibility:hidden}amp-script[nodom],amp-script[sandboxed]{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}\n/*# sourceURL=/css/ampdoc.css*/"),Gh="[hidden]{display:none!important}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important;pointer-events:none}[layout=nodisplay]:not(.i-amphtml-element){display:none!important}.i-amphtml-layout-fixed,[layout=fixed][width][height]:not(.i-amphtml-layout-fixed){display:inline-block;position:relative}.i-amphtml-layout-responsive,[layout=responsive][width][height]:not(.i-amphtml-layout-responsive),[width][height][heights]:not([layout]):not(.i-amphtml-layout-responsive),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic,[layout=intrinsic][width][height]:not(.i-amphtml-layout-intrinsic){display:inline-block;position:relative;max-width:100%}.i-amphtml-layout-intrinsic .i-amphtml-sizer{max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,[layout=container],[layout=fixed-height][height]:not(.i-amphtml-layout-fixed-height){display:block;position:relative}.i-amphtml-layout-fill,.i-amphtml-layout-fill.i-amphtml-notbuilt,[layout=fill]:not(.i-amphtml-layout-fill),body noscript>*{display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}body noscript>*{position:absolute!important;width:100%;height:100%;z-index:2}body noscript{display:inline!important}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-ms-flex:1 1 auto;flex:1 1 auto}.i-amphtml-layout-fluid{position:relative}.i-amphtml-layout-size-defined{overflow:hidden!important}.i-amphtml-layout-awaiting-size{position:absolute!important;top:auto!important;bottom:auto!important}i-amphtml-sizer{display:block!important}@supports (aspect-ratio:1/1){i-amphtml-sizer.i-amphtml-disable-ar{display:none!important}}.i-amphtml-blurry-placeholder,.i-amphtml-fill-content{display:block;height:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%;width:0;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-replaced-content,.i-amphtml-screen-reader{padding:0!important;border:none!important}.i-amphtml-screen-reader{position:fixed!important;top:0px!important;left:0px!important;width:4px!important;height:4px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:8px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:12px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:16px!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[layout]:not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*,[layout]:not([layout=container]):not(.i-amphtml-element)>*,[width][height][heights]:not([layout]):not(.i-amphtml-element)>*,[width][height][sizes]:not([layout]):not(.i-amphtml-element)>*{display:none}amp-img:not(.i-amphtml-element)[i-amphtml-ssr]>img.i-amphtml-fill-content{display:block}.i-amphtml-notbuilt:not(.i-amphtml-layout-container),[layout]:not([layout=container]):not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){color:transparent!important;line-height:0!important}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder],[width][height][heights]:not([layout]):not(.i-amphtml-element)>[placeholder],[width][height][sizes]:not([layout]):not(.i-amphtml-element)>[placeholder]{display:block;line-height:normal}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback],.i-amphtml-layout-container>[placeholder].amp-hidden,.i-amphtml-layout-container>[placeholder].hidden{display:none}.i-amphtml-layout-size-defined>[fallback],.i-amphtml-layout-size-defined>[placeholder]{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1}amp-img[i-amphtml-ssr]:not(.i-amphtml-element)>[placeholder]{z-index:auto}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none!important}.i-amphtml-element-error{background:red!important;color:#fff!important;position:relative!important}.i-amphtml-element-error:before{content:attr(error-message)}i-amp-scroll-container,i-amphtml-scroll-container{position:absolute;top:0;left:0;right:0;bottom:0;display:block}i-amp-scroll-container.amp-active,i-amphtml-scroll-container.amp-active{overflow:auto;-webkit-overflow-scrolling:touch}.i-amphtml-loading-container{display:block!important;pointer-events:none;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden;display:initial;line-height:normal}.i-amphtml-layout-size-defined>[overflow]{position:absolute}.i-amphtml-element>[overflow].amp-visible{visibility:visible}template{display:none!important}.amp-border-box,.amp-border-box *,.amp-border-box :after,.amp-border-box :before{box-sizing:border-box}amp-pixel{display:none!important}amp-analytics,amp-auto-ads,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-story{visibility:hidden!important}html.i-amphtml-fie>amp-analytics{position:initial!important}[visible-when-invalid]:not(.visible),form [submit-error],form [submit-success],form [submitting]{display:none}amp-accordion{display:block!important}@media (min-width:1px){:where(amp-accordion>section)>:first-child{margin:0;background-color:#efefef;padding-right:20px;border:1px solid #dfdfdf}:where(amp-accordion>section)>:last-child{margin:0}}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}amp-accordion,amp-accordion>section{margin:0}amp-accordion:not(.i-amphtml-built)>section>:last-child{display:none!important}amp-accordion:not(.i-amphtml-built)>section[expanded]>:last-child{display:block!important}\n/*# sourceURL=/css/ampshared.css*/";zt=qt,Kt(),Wt(),Fh=function(t,e,n){xo(e,n),e&&t&&Q(e.message)&&!(e.message.indexOf(X)>=0)&&function(t,e){if(qn(e).isSingleDoc()){var n={errorName:t.name,errorMessage:t.message};!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];(function(t){return Dn(t,"amp-analytics-instrumentation","amp-analytics")})(t).then((function(r){r&&r.triggerEventForTarget(t,e,n,i)}))}(function(t){var e=qn(t).getSingleDoc().getRootNode();return e.documentElement||e.body||e}(e),"user-error",n,!1)}}(e,t)}.bind(null,self),self.__AMP_REPORT_ERROR=Fh;var Wh,Yh="runtime";function Kh(t,e){if(t.__AMP_TAG)return u();t.__AMP_TAG=!0;var n=t.AMP||[];pn(t,"extensions",Bh);var i=Yn(t);Th(t),Vh(t),t.AMP={win:t,_:t.AMP?t.AMP._:void 0},t.AMP.config={urls:{thirdParty:At,thirdPartyFrameHost:Et,thirdPartyFrameRegex:St,cdn:Tt,cdnProxyRegex:bt,localhostRegex:Pt,errorReporting:Ot,betaErrorReporting:xt,localDev:Rt,trustedViewerHosts:Mt,geoApi:Ct}},t.AMP.addGlobalConsentListener=function(){},t.AMP.addGranularConsentListener=function(){},t.AMP.BaseElement=Xo,t.AMP.registerElement=i.addElement.bind(i),t.AMP.registerTemplate=i.addTemplate.bind(i),t.AMP.registerServiceForDoc=i.addService.bind(i),t.AMP.isExperimentOn=Lr.bind(null,t),t.AMP.toggleExperiment=Ir.bind(null,t),t.AMP.setLogLevel=Bt.bind(null),t.AMP.setTickFunction=function(t,e){};var r=e(t,i);function o(e){!function(t,e,n){"function"==typeof e||"high"==e.p?u().then(n):(n.displayName=e.n,Ho(t.document,n))}(t,e,(function(){r.then((function(){"function"==typeof e?e(t.AMP,t.AMP.Ml):i.registerExtension(e.n,e.ev,e.l,e.f,t.AMP)}))}))}for(var s=0;s<n.length;s++){var a=n[s];if(Jh(t,a))n.splice(s--,1);else if("function"==typeof a||"high"==a.p){try{o(a)}catch(t){Kt().error(Yh,"Extension failed: ",t,a.n)}n.splice(s--,1)}}!function(t,e){t.document.body&&!function(t){return Gr(t).length>0}(t)?ei(t).delay(e,1):e()}(t,(function(){t.AMP.push=function(e){Jh(t,e)||o(e)};for(var e=0;e<n.length;e++){var i=n[e];if(!Jh(t,i))try{o(i)}catch(t){Kt().error(Yh,"Extension failed: ",t,i.n)}}n.length=0})),t.AMP.push||(t.AMP.push=n.push.bind(n)),$n(t).isIos()&&Ei(t.document.documentElement,"cursor","pointer");var h=Yn(t);return qe(t)&&h.preloadExtension("amp-resize-observer-polyfill"),Ne(t)&&h.preloadExtension("amp-intersection-observer-polyfill"),r}function Jh(t,e){return"function"!=typeof e&&(!!e.m||"2410292120000"!=e.v&&(Yn(t).reloadExtension(e.n,e.ev,e.l),!0))}self.location&&(self.location.originalHash=self.location.hash);try{!function(t){t.onerror=Co,t.addEventListener("unhandledrejection",(function(t){!t.reason||t.reason.message!==So&&t.reason.message!==To&&"AbortError"!==t.reason.message?xo(t.reason||new Error("rejected promise "+t)):t.preventDefault()}))}(self),function(t){pn(t,"ampdoc",(function(){return new Ni(t,!0,void 0)}))}(self),Wh=qn(self)}catch(t){throw Jr(self.document),t}Ho(self.document,(function(){var t=Wh.getAmpDoc(self.document);pu(self),pn(self,"performance",Mh);var e=Xn(self);(function(t){on(t.document,(function(){return function(t){var e=1500,n=t.performance;n&&n.timing&&n.timing.navigationStart&&(e=Date.now()-n.timing.navigationStart);var i=Math.max(1,2100-e);t.setTimeout((function(){Ch(t);var e=t.document.styleSheets;if(e){for(var n=t.document.querySelectorAll('link[rel~="stylesheet"]:not([href^="https://translate.googleapis.com/translate_static/css/"]):not([href^="'.concat(ae(Tt),'"])')),r=[],o=0;o<n.length;o++){for(var s=n[o],a=!1,u=0;u<e.length;u++)if(e[u].ownerNode==s){a=!0;break}a||r.push(s)}for(var h=function(e){var n=r[e],o=n.media||"all";n.media="print",n.onload=function(){n.media=o,Ch(t)},n.setAttribute("i-amphtml-timeout",i),n.parentNode.insertBefore(n,n.nextSibling)},c=0;c<r.length;c++)h(c)}}),i)}(t)}))})(self),e.tick("is"),Wr(t,zh+Gh,(function(){return function(t,e){Ho(self.document,(function(){Th(self),Ph(t),e.coreServicesAvailable(),function(t){var e=new h,n=e.promise,i=e.resolve;Za=ei(t).timeoutPromise(8e3,n,"TrackImpressionPromise timeout").catch((function(t){Kt().warn("IMPRESSION",t)}));var r=oi(t.document.documentElement),o=r.isTrustedViewer(),s=r.getReferrerUrl().then((function(t){return function(t){var e=ro(t);return"https:"==e.protocol&&eu.some((function(t){return t.test(e.hostname)}))}(t)}));Promise.all([o,s]).then((function(e){var n=e[0],r=e[1];if(n||r||Lr(t,"alp")){var o=function(t){var e=oi(t.document.documentElement);return e.getParam("replaceUrl")?e.hasCapability("replaceUrl")?e.sendMessageAwaitResponse("getReplaceUrl",void 0).then((function(t){t&&"object"==p(t)?e.replaceUrl(t.replaceUrl||null):Kt().warn("IMPRESSION","get invalid replaceUrl response")}),(function(t){Kt().warn("IMPRESSION","Error request replaceUrl from viewer",t)})):(e.replaceUrl(e.getParam("replaceUrl")||null),u()):u()}(t),s=function(t){var e=Fn(t.document.documentElement),n=oi(e).getParam("click");return n?0!=n.indexOf("https://")?(Wt().warn("IMPRESSION","click fragment param should start with https://. Found ",n),u()):(_i.getLocation(t).hash&&(_i.getLocation(t).hash=""),e.whenFirstVisible().then((function(){return function(t,e){return ui(t).fetchJson(e,{credentials:"include"}).then((function(t){return 204==t.status?null:t.json()}))}(t,n)})).then((function(e){!function(t,e){if(e){var n=e.location,i=e.tracking_url||n;if(i&&!mo(i)&&((new Image).src=i),n){if(!t.history.replaceState)return;var r=oi(t.document.documentElement),o=uo(_i.getLocation(t).href,vt(ro(n).search));t.history.replaceState(null,"",o),r.maybeUpdateFragmentForCct()}}}(t,e)})).catch((function(t){Wt().warn("IMPRESSION","Error on request clickUrl: ",t)}))):u()}(t);Promise.all([o,s]).then((function(){i()}),(function(){}))}else i()}))}(self)})),Ho(self.document,(function(){Kh(self,(function(t){return function(t){var e=t.document.documentElement,n=qn(t).getSingleDoc();t.AMP.ampdoc=n;var i=oi(e);t.AMP.viewer=i,Lt().development&&(t.AMP.toggleRuntime=i.toggleRuntime.bind(i),t.AMP.resources=Zn(e));var r=ai(e);t.AMP.viewport={},t.AMP.viewport.getScrollLeft=r.getScrollLeft.bind(r),t.AMP.viewport.getScrollWidth=r.getScrollWidth.bind(r),t.AMP.viewport.getWidth=r.getWidth.bind(r)}(t),(e=t).AMP.installAmpdocServices=Ph.bind(null),e.AMP.combinedCss=zh+Gh,Ae(t.document).then((function(){ds(t.AMP.ampdoc)}));var e}))})),Ho(self.document,(function(){!function(t){!function(t){vs(t,ys,ws)}(t),function(t){vs(t,Ts,Ps)}(t),function(t){vs(t,"amp-layout",As)}(t)}(self)})),Ho(self.document,(function(){ds(t),un(self.document).then((function(){return us()}))})),Ho(self.document,(function(){(function(t){var e=t.document.documentElement;"0"==oi(e).getParam("p2r")&&$n(t).isChrome()&&new _h(t.document,ai(e))})(self),function(t){var e=t.win;Ms(e.document)&&t.isSingleDoc()&&!e.document.documentElement.hasAttribute("data-amp-auto-lightbox-disable")&&zo(t,(function(){Oh(t).then((function(n){n||Yn(e).installExtensionForDoc(t,"amp-auto-lightbox")}))}),10)}(t),function(t){var e=t.win;Ms(e.document)&&$n(t.win).isStandalone()&&zo(t,(function(){Yn(e).installExtensionForDoc(t,"amp-standalone").then((function(){return kn(t.getBody(),"standalone","amp-standalone")})).then((function(t){return t.initialize()}))}),10)}(t),function(t){var e=t.location.href;if(!e.startsWith("about:")){var n=!1,i=gt(t);kt(t,i)&&(n="0"!==i.validate),n&&function(t,e){var n=t.createElement("script");if(self.trustedTypes&&self.trustedTypes.createPolicy){var i=self.trustedTypes.createPolicy("validator-integration#loadScript",{createScriptURL:function(t){return"https://cdn.ampproject.org/v0/validator_wasm.js"===t?t:""}});n.src=i.createScriptURL(e)}else n.src=e;_e(t,n);var r=qr(n).then((function(){t.head.removeChild(n)}),(function(){}));return t.head.appendChild(n),r}(t.document,"".concat(Tt,"/v0/validator_wasm.js")).then((function(){amp.validator.validateUrlAndLog(e,t.document)}))}}(self),function(t){Jt(t.defaultView);var e=t.defaultView;Ae(t).then((function(){return function(t){var e=Gr(t).map((function(e){var n=function(t,e){return Rn(t,e)}(t,e).then((function(t){return t&&function(t){return"function"==typeof t.whenReady}(t)?t.whenReady().then((function(){return t})):t}));return ei(t).timeoutPromise(3e3,n,"Render timeout waiting for service ".concat(e," to be ready."))}));return Promise.all(e)}(e)})).catch((function(t){return d(t),[]})).then((function(n){Kr=!0,t.body.getBoundingClientRect(),Xr(t),Tn(t).signals().signal(vr),n.length>0&&Zn(t.documentElement).schedulePass(1,!0);try{var i=Xn(e);i.tick("mbv"),i.flush()}catch(t){}}))}(self.document),function(t){un(t).then((function(){var e=t.defaultView;if(e){var n=Qn(e),i=Wn(t.documentElement),r=Fn(t);n.url(r,i.sourceUrl),n.url(r,i.canonicalUrl)}}))}(self.document)}),!0),Ho(self.document,(function(){e.tick("e_is"),Zn(t).ampInitComplete(),e.flush()}))}(t,e)}),!0,"amp-runtime")})),self.console&&(console.info||console.log).call(console,"Powered by AMP ⚡ HTML – Version ".concat("2410292120000"),self.location.href),self.document.documentElement.setAttribute("amp-version","2410292120000")}()}catch(t){throw setTimeout((function(){var t=document.body.style;t.opacity=1,t.visibility="visible",t.animation="none",t.WebkitAnimation="none;"}),1e3),t}