;
(self.AMP=self.AMP||[]).push({m:1,v:"2601162341000",n:"amp-ad-network-doubleclick-impl",ev:"0.1",l:!0,f:function(t,e){(()=>{var e;function i(){return e||(e=Promise.resolve(void 0))}var s=class{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}};function n(t){return new Promise((e=>{e(t())}))}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var h={SUFFICIENT:1,INSUFFICIENT:2,UNKNOWN_NOT_REQUIRED:3,UNKNOWN:4},c={TCF_V1:1,TCF_V2:2,US_PRIVACY_STRING:3,GLOBAL_PRIVACY_PLATFORM:4},{isArray:l}=Array;function d(t,e){const i=t.indexOf(e);return-1!=i&&(t.splice(i,1),!0)}function u(t,e){const i=t.length-e.length;return i>=0&&t.indexOf(e,i)==i}function p(t){const{length:e}=t;let i=5381;for(let s=0;s<e;s++)i=33*i^t.charCodeAt(s);return String(i>>>0)}function m(t,e,i){if(t.length>=e)return t;e-=t.length;let s=i;for(;e>s.length;)s+=i;return s.slice(0,e)+t}var{hasOwnProperty:f,toString:g}=Object.prototype;function A(t){return"[object Object]"===g.call(t)}function _(t){const e=Object.create(null);return t&&Object.assign(e,t),e}function T(t,e){return f.call(t,e)}function I(t){return 1==(null==t?void 0:t.nodeType)}function v(t){return"number"==typeof t&&isFinite(t)}function b(t){return JSON.parse(t)}function E(t,e){try{return b(t)}catch(t){return null==e||e(t),null}}function y(t){return t.indexOf("​​​")>=0}function R(t,e,i,s,n,r,o,a,h,c,l){return t}function S(t,e){return t}function w(t){return(t.ownerDocument||t).defaultView}function P(t){return CSS.escape(t)}function N(t,e){return t.closest(e)}var C={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},O=/(&|<|>|"|'|`)/g;function M(t){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t)}function j(t,e,i){return function(t,e){for(const i in e)t.setAttribute(i,e[i]);return t}(t.createElement(e),i)}function x(t,e){let i=t;do{if(i.nextSibling)return!0}while((i=i.parentNode)&&i!=e);return!1}function D(t){return t?t.replace(O,k):t}function k(t){return C[t]}function V(t){try{t.focus()}catch(t){}}function U(t){return t.parent&&t.parent!=t}var L=["javascript:","data:","vbscript:"],$=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function G(t,e=""){try{return decodeURIComponent(t)}catch(t){return e}}function z(t){const e=_();if(!t)return e;let i;for(;i=$.exec(t);){const t=G(i[1],i[1]),s=i[2]?G(i[2].replace(/\+/g," "),i[2]):"";e[t]=s}return e}function F(t){const{location:e}=t||self;return z(e.originalHash||e.hash)}var H="";function B(t){const e=t||self;return e.__AMP_MODE?e.__AMP_MODE:e.__AMP_MODE=function(t){return{localDev:!1,development:K(t,F(t)),esm:!0,test:!1,rtvVersion:q(t),ssrReady:!1}}(e)}function q(t){var e;return H||(H=(null===(e=t.AMP_CONFIG)||void 0===e?void 0:e.v)||"012601162341000"),H}function K(t,e){const i=e||F(t);return["1","actions","amp","amp4ads","amp4email"].includes(i.development)||!!t.AMP_DEV_MODE}function W(t){if(!t)return null;const e=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),i=e?e[2]:void 0,s=e?e[3]:void 0;return i&&s?{extensionId:i,extensionVersion:s}:null}function Y(t){const e=Object.getOwnPropertyDescriptor(t,"message");if(null!=e&&e.writable)return t;const{message:i,stack:s}=t,n=new Error(i);for(const e in t)n[e]=t[e];return n.stack=s,n}function J(t){let e=null,i="";for(const t of arguments)t instanceof Error&&!e?e=Y(t):(i&&(i+=" "),i+=t);return e?i&&(e.message=i+": "+e.message):e=new Error(i),e}function X(t){var e,i;null===(e=(i=self).__AMP_REPORT_ERROR)||void 0===e||e.call(i,t)}function Q(t){const e=J.apply(null,arguments);setTimeout((()=>{throw X(e),e}))}function Z(t,e,i){let s=0,n=null;function r(r){n=null,s=t.setTimeout(o,i),e.apply(null,r)}function o(){s=0,n&&r(n)}return function(...t){s?n=t:r(t)}}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var tt=self.__AMP_LOG;function et(t,e){throw new Error("failed to call initLogConstructor")}function it(t){return tt.user||(tt.user=st()),function(t,e){return e&&e.ownerDocument.defaultView!=t}(tt.user.win,t)?tt.userForEmbed||(tt.userForEmbed=st()):tt.user}function st(t){return et()}function nt(){return tt.dev||(tt.dev=et())}function rt(t,e,i,s,n,r,o,a,h,c,l){return t}function ot(t,e,i,s,n,r,o,a,h,c,l){return it().assert(t,e,i,s,n,r,o,a,h,c,l)}function at(t,e,i,s){const n=mt(t),r=ft(n);At(r,n,e,i),s&&gt(r,e)}function ht(t,e){return gt(t=pt(t),e)}function ct(t,e){return gt(ft(mt(t)),e)}function lt(t,e){const i=ft(mt(t));return Et(i,e)?gt(i,e):null}function dt(t,e){return function(t,e){const i=_t(t,e);if(i)return i;const n=Tt(t);return n[e]=function(){const t=new s,{promise:e,reject:i,resolve:n}=t;return e.catch((()=>{})),{obj:null,promise:e,resolve:n,reject:i,context:null,ctor:null}}(),n[e].promise}(ft(t),e)}function ut(t,e){return _t(ft(t),e)}function pt(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function mt(t){return t.nodeType?(e=w(t),ht(e,"ampdoc")).getAmpDoc(t):t;var e}function ft(t){const e=mt(t);return e.isSingleDoc()?e.win:e}function gt(t,e){rt(Et(t,e));const i=Tt(t)[e];return i.obj||(rt(i.ctor),rt(i.context),i.obj=new i.ctor(i.context),rt(i.obj),i.context=null,i.resolve&&i.resolve(i.obj)),i.obj}function At(t,e,i,s,n,r){const o=Tt(t);let a=o[i];a||(a=o[i]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:r||!1}),!n&&a.ctor||(a.ctor=s,a.context=e,a.sharedInstance=r||!1,a.resolve&&gt(t,i))}function _t(t,e){const i=Tt(t)[e];return i?i.promise?i.promise:(gt(t,e),i.promise=Promise.resolve(i.obj)):null}function Tt(t){let e=t.__AMP_SERVICES;return e||(e=t.__AMP_SERVICES={}),e}function It(t){return"function"==typeof t.dispose}function vt(t,e){if(It(e))try{(function(t){return rt(It(t)),t})(e).dispose()}catch(e){nt().error("SERVICE","failed to dispose service",t,e)}}function bt(t,e){const i=gt(ft(rt(t.getParent())),e);At(ft(t),t,e,(function(){return i}),!1,!0)}function Et(t,e){const i=t.__AMP_SERVICES&&t.__AMP_SERVICES[e];return!(!i||!i.ctor)}function yt(t,e,i,s){const n=ut(t,e);if(n)return n;const r=mt(t);return r.whenExtensionsKnown().then((()=>{const t=r.getExtensionVersion(i);return t?ht(r.win,"extensions").waitForExtension(i,t):null})).then((i=>i?s?ut(t,e):dt(t,e):null))}function Rt(t,e,i){const s=lt(t,e);return s?Promise.resolve(s):yt(t,e,i)}var St=t=>lt(t,"action"),wt=t=>mt(t),Pt=t=>ht(t,"ampdoc"),Nt=t=>yt(t,"amp-analytics-instrumentation","amp-analytics"),Ct=t=>dt(t,"cid"),Ot=t=>ht(t,"crypto"),Mt=t=>ct(t,"documentInfo").get(),jt=t=>ht(t,"extensions"),xt=t=>ct(t,"history"),Dt=t=>ct(t,"mutator"),kt=t=>ht(t,"platform"),Vt=t=>ht(t,"preconnect"),Ut=t=>ct(t,"resources"),Lt=t=>gt(t,"timer"),$t=t=>lt(t,"url-replace"),Gt=t=>yt(t,"consentPolicyManager","amp-consent"),zt=t=>yt(t,"geo","amp-geo",!0),Ft=t=>lt(t,"url"),Ht=t=>ct(t,"viewer"),Bt=t=>ht(t,"vsync"),qt=t=>ct(t,"viewport"),Kt=t=>ht(t,"xhr"),Wt=JSON.parse('{"admax":{"url":"https://prebid.admaxmedia.io/openrtb2/amp?tag_id=PLACEMENT_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adcid=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING&account=ACCOUNT_ID","macros":["PLACEMENT_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"adpushup":{"url":"https://amp.adpushup.com/prebidserver/openrtb2/amp?tag_id=TAG_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&curl=CANONICAL_URL&gdpr_consent=CONSENT_STRING&adc=ADCID&purl=HREF","macros":["TAG_ID","CONSENT_STRING"],"disableKeyAppend":true},"andbeyond":{"url":"https://prebid.andbeyond.media/amp.php?tag_id=TAG_ID","macros":["TAG_ID"],"disableKeyAppend":true},"aps":{"url":"https://aax.amazon-adsystem.com/e/dtb/bid?src=PUB_ID&pubid=PUB_UUID&amp=1&u=CANONICAL_URL&slots=%5B%7B%22sd%22%3A%22ATTR(data-slot)%22%2C%22s%22%3A%5B%22ATTR(width)xATTR(height)%22%5D%2C%22ms%22%3A%22ATTR(data-multi-size)%22%7D%5D&pj=PARAMS&gdprc=CONSENT_STRING","macros":["PUB_ID","PARAMS","PUB_UUID","CONSENT_STRING"],"disableKeyAppend":true},"automatad":{"url":"https://pbs01.automatad.com/openrtb2/amp?tag_id=TAG_ID","macros":["TAG_ID"],"disableKeyAppend":true},"browsi":{"url":"https://amp.browsiprod.com/predict?pvid=PAGEVIEWID_64&ot=ELEMENT_POS&ul=SCROLL_TOP&pl=PAGE_HEIGHT&bks=BKG_STATE&pk=PUB_KEY&sk=SITE_KEY&h=ATTR(height)&adix=ATTR(data-amp-slot-index)&ref=REFERRER&url=HREF","macros":["PUB_KEY","SITE_KEY"],"errorReportingUrl":"https://events.browsiprod.com/events/amp?e=ERROR_TYPE&h=HREF&et=predict_error","disableKeyAppend":true},"criteo":{"url":"https://bidder.criteo.com/amp/rtc?zid=ZONE_ID&nid=NETWORK_ID&uid=ADUNIT_ID&pid=PUBLISHER_ID&psubid=PUBLISHER_SUB_ID&lir=LINE_ITEM_RANGES&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&timeout=TIMEOUT&curl=CANONICAL_URL&href=HREF&cst=CONSENT_STATE&cst_str=CONSENT_STRING&cst_type=CONSENT_METADATA(consentStringType)&cst_gdpr_applies=CONSENT_METADATA(gdprApplies)","macros":["ZONE_ID","NETWORK_ID","PUBLISHER_SUB_ID","LINE_ITEM_RANGES","CONSENT_STATE","CONSENT_STRING","ADUNIT_ID","PUBLISHER_ID"],"disableKeyAppend":true},"denakop":{"url":"https://ib.adnxs.com/prebid/amp?tag_id=PLACEMENT_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adcid=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING&account=ACCOUNT_ID&gdpr_applies=CONSENT_METADATA(gdprApplies)&addtl_consent=CONSENT_METADATA(additionalConsent)&consent_type=CONSENT_METADATA(consentStringType)","macros":["PLACEMENT_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"freestar":{"url":"https://prebid-amp.pub.network/openrtb2/amp?tag_id=TAG_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING&account=ACCOUNT_ID","macros":["TAG_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"future":{"url":"https://ads.servebom.com/amp?adunit=ADUNIT&gdpr_consent=CONSENT_STRING","macros":["ADUNIT","CONSENT_STRING"],"disableKeyAppend":true},"glxm":{"url":"https://pbserver.galaxiemedia.fr/openrtb2/amp?tag_id=REQUEST_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING&account=ACCOUNT_ID","macros":["REQUEST_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"highfivve":{"url":"https://prebid-server.h5v.eu/openrtb2/amp?tag_id=TAG_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING&account=ACCOUNT_ID","macros":["TAG_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"hubvisor":{"url":"https://pbs.hubvisor.io/openrtb2/amp?tag_id=PLACEMENT_ID&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adcid=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING","macros":["PLACEMENT_ID","CONSENT_STRING"],"disableKeyAppend":true},"improvedigital":{"url":"https://pbs.360yield.com/openrtb2/amp?tag_id=TAG_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF&consent_string=CONSENT_STRING&account=ACCOUNT_ID&gdpr_applies=CONSENT_METADATA(gdprApplies)&addtl_consent=CONSENT_METADATA(additionalConsent)&consent_type=CONSENT_METADATA(consentStringType)","macros":["TAG_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"indexexchange":{"url":"https://amp.casalemedia.com/amprtc?v=1&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&s=SITE_ID&p=CANONICAL_URL&consent_state=CONSENT_STATE&consent_string=CONSENT_STRING","macros":["SITE_ID","CONSENT_STATE","CONSENT_STRING"],"disableKeyAppend":true},"kargo":{"url":"https://krk.kargo.com/api/v1/amprtc?slot=SLOT_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&pslot=ATTR(data-slot)&pvid=PAGEVIEWID&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&acid=ADCID&purl=HREF","macros":["SLOT_ID"],"errorReportingUrl":"https://krk.kargo.com/api/v1/event/amprtc-error?error_type=ERROR_TYPE&url=HREF","disableKeyAppend":true},"lotame":{"url":"https://ad.crwdcntrl.net/5/pe=y/c=CLIENT_ID/an=AD_NETWORK/ma=MAX_AUDIENCE/gdpr_consent=CONSENT_STRING/gdpr=CONSENT_METADATA(gdprApplies)","macros":["CLIENT_ID","AD_NETWORK","MAX_AUDIENCES"],"disableKeyAppend":true},"medianet":{"url":"https://amprtc.media.net/rtb/getrtc?cid=CID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&tgt=TGT&curl=CANONICAL_URL&to=TIMEOUT&purl=HREF&cste=CONSENT_STATE&cstr=CONSENT_STRING&adcid=ADCID&dmsv=ATTR(data-multi-size-validation)&ep=ELEMENT_POS&st=SCROLL_TOP&ph=PAGE_HEIGHT&bks=BKG_STATE&ref=REFERRER&dj=ATTR(data-json)&cst_type=CONSENT_METADATA(consentStringType)&gdpr_applies=CONSENT_METADATA(gdprApplies)","macros":["CID"],"errorReportingUrl":"https://qsearch-a.akamaihd.net/log?logid=kfk&evtid=projectevents&project=amprtc_error&error=ERROR_TYPE&rd=HREF","disableKeyAppend":true},"mediasquare":{"url":"https://pbs-front.mediasquare.fr/msq_prebid?owner=OWNER&code=CODE&w=ATTR(width)&h=ATTR(height)&sizes=ATTR(data-multi-size)&adunit=ATTR(data-slot)&referer=HREF&gdpr_consent=CONSENT_STRING","macros":["OWNER","CODE","CONSENT_STRING"],"disableKeyAppend":true},"navegg":{"url":"https://usr.navdmp.com/usr?acc=NVG_ACC&wst=WST&wct=WCT&wla=WLA&v=10","macros":["NVG_ACC","WST","WCT","WLA"],"disableKeyAppend":true},"newspassid":{"url":"https://bidder.newspassid.com/openrtb2/amp?tag_id=TAG_ID&placement_id=PLACEMENT_ID&gdpr_consent=CONSENT_STRING&ad_unit_code=AD_UNIT_CODE&site_id=SITE_ID&publisher_id=PUBLISHER_ID&custom_data=TGT&pubcid=PUBCID&adcid=ADCID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&curl=CANONICAL_URL&timeout=TIMEOUT&purl=HREF","macros":["TAG_ID","PLACEMENT_ID","SITE_ID","PUBLISHER_ID","AD_UNIT_CODE","PUBCID"],"errorReportingUrl":"https://bidder.newspassid.com/amp_error?err=ERROR_TYPE&url=HREF","disableKeyAppend":true},"nexx360":{"url":"https://pbs.nexx360.io/openrtb2/amp?tag_id=TAG_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING&account=ACCOUNT_ID","macros":["TAG_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"openwrap":{"url":"https://ow.pubmatic.com/amp?v=1&w=ATTR(width)&h=ATTR(height)&ms=ATTR(data-multi-size)&auId=ATTR(data-slot)&targeting=TGT&purl=HREF&pubId=PUB_ID&profId=PROFILE_ID&consent_string=CONSENT_STRING&gdpr_applies=CONSENT_METADATA(gdprApplies)&addtl_consent=CONSENT_METADATA(additionalConsent)&curl=CANONICAL_URL&consent_type=CONSENT_METADATA(consentStringType)","macros":["PUB_ID","PROFILE_ID","CONSENT_STRING"],"errorReportingUrl":"https://ow.pubmatic.com/amp_error?e=ERROR_TYPE&h=HREF","disableKeyAppend":true},"ozone":{"url":"https://elb.the-ozone-project.com/openrtb2/amp?tag_id=TAG_ID&placement_id=PLACEMENT_ID&gdpr_consent=CONSENT_STRING&ad_unit_code=AD_UNIT_CODE&site_id=SITE_ID&publisher_id=PUBLISHER_ID&custom_data=TGT&pubcid=PUBCID&adcid=ADCID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&curl=CANONICAL_URL&timeout=TIMEOUT&purl=HREF","macros":["TAG_ID","PLACEMENT_ID","SITE_ID","PUBLISHER_ID","AD_UNIT_CODE","PUBCID"],"errorReportingUrl":"https://elb.the-ozone-project.com/amp_error?err=ERROR_TYPE&url=HREF","disableKeyAppend":true},"prebidappnexuspsp":{"url":"https://ib.adnxs.com/prebid/amp?tag_id=PLACEMENT_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adcid=ADCID&purl=HREF&consent_string=CONSENT_STRING&account=ACCOUNT_ID&gdpr_applies=CONSENT_METADATA(gdprApplies)&addtl_consent=CONSENT_METADATA(additionalConsent)&consent_type=CONSENT_METADATA(consentStringType)&pvid=PAGEVIEWID","macros":["PLACEMENT_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"pubwise":{"url":"https://pbs.pubwise.io/openrtb2/amp?tag_id=TAG_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING&account=ACCOUNT_ID","macros":["TAG_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"prebidflux":{"url":"https://prebid-server.flux-adserver.com/openrtb2/amp?tag_id=TAG_ID","macros":["TAG_ID"],"disableKeyAppend":true},"prebidopenx":{"url":"https://prebid.openx.net/openrtb2/amp?tag_id=REQUEST_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING&account=ACCOUNT_ID","macros":["REQUEST_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"prebidrubicon":{"url":"https://prebid-server.rubiconproject.com/openrtb2/amp?tag_id=REQUEST_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF&consent_string=CONSENT_STRING&account=ACCOUNT_ID&gdpr_applies=CONSENT_METADATA(gdprApplies)&addtl_consent=CONSENT_METADATA(additionalConsent)&consent_type=CONSENT_METADATA(consentStringType)&gpp_sid=CONSENT_METADATA(gppSectionId)&pvid=PAGEVIEWID","macros":["REQUEST_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"purch":{"url":"https://ads.servebom.com/tmntag.js?v=1.2&fmt=amp&o={%22p%22%3APLACEMENT_ID}&div_id=DIV_ID","macros":["PLACEMENT_ID","DIV_ID"],"disableKeyAppend":true},"richaudience":{"url":"https://shb.richaudience.com/amp?p=PLACEMENT_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&mref=CANONICAL_URL&timeout=TIMEOUT&adcid=ADCID&purl=HREF&targeting=TGT&consentString=CONSENT_STRING&gdpr=CONSENT_METADATA(gdprApplies)&addtl_consent=CONSENT_METADATA(additionalConsent)&consent_type=CONSENT_METADATA(consentStringType)","macros":["PLACEMENT_ID","CONSENT_STRING"],"disableKeyAppend":true},"salesforcedmp":{"url":"https://cdn.krxd.net/userdata/v2/amp/ORGANIZATION_ID?segments_key=SEGMENTS_KEY&kuid_key=USER_KEY","macros":["ORGANIZATION_ID","SEGMENTS_KEY","USER_KEY"],"disableKeyAppend":true},"snigel":{"url":"https://adserv.snigelweb.com/bp/v1/openrtb2/amp?tag_id=PLACEMENT_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adcid=ADCID&purl=HREF&consent_string=CONSENT_STRING&account=ACCOUNT_ID&gdpr_applies=CONSENT_METADATA(gdprApplies)&addtl_consent=CONSENT_METADATA(additionalConsent)&consent_type=CONSENT_METADATA(consentStringType)","macros":["PLACEMENT_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"sonobi":{"url":"https://apex.go.sonobi.com/trinity.json?key_maker=%7B%22_DIVIDER_ATTR(data-slot)%7C1%22%3A%22PLACEMENT_ID_DIVIDER_ATTR(width)xATTR(height)%2CATTR(data-multi-size)%22%7D&ref=CANONICAL_URL&lib_name=amp&lib_v=0.1&pv=PAGEVIEWID&amp=1","disableKeyAppend":true,"macros":["PLACEMENT_ID","_DIVIDER_"]},"t13":{"url":"https://s2s.t13.io/openrtb2/amp?tag_id=TAG_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF&consent_string=CONSENT_STRING&account=ACCOUNT_ID&gdpr_applies=CONSENT_METADATA(gdprApplies)&addtl_consent=CONSENT_METADATA(additionalConsent)&consent_type=CONSENT_METADATA(consentStringType)","macros":["TAG_ID","CONSENT_STRING","ACCOUNT_ID"],"disableKeyAppend":true},"tail":{"url":"https://ACCOUNT_ID.seg.t.tailtarget.com/amp","macros":["ACCOUNT_ID"],"disableKeyAppend":true},"yieldbot":{"url":"https://i.yldbt.com/m/YB_PSN/v1/amp/init?curl=CANONICAL_URL&sn=YB_SLOT&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&aup=ATTR(data-slot)&pvi=PAGEVIEWID&tgt=TGT&adcid=ADCID&href=HREF","macros":["YB_PSN","YB_SLOT"],"disableKeyAppend":true},"yieldlab":{"url":"https://ad.yieldlab.net/yp/ADSLOT_ID?content=amp&consent=CONSENT_STRING&t=amp%3D1&pubref=HREF","macros":["ADSLOT_ID","CONSENT_STRING"],"disableKeyAppend":true}}'),Yt="__AMP__EXPERIMENT_TOGGLES";function Jt(t){var e;return!(null===(e=t.AMP_CONFIG)||void 0===e||!e.canary)}function Xt(t){var e;return(null===(e=t.AMP_CONFIG)||void 0===e?void 0:e.type)||"unknown"}function Qt(t,e){return!!Zt(t)[e]}function Zt(t){var e,i,s,n,r;if(t[Yt])return t[Yt];t[Yt]=_();const o=t[Yt];R(o);const h=a(a({},null!==(e=t.AMP_CONFIG)&&void 0!==e?e:{}),null!==(i=t.AMP_EXP)&&void 0!==i?i:b((null===(s=t.__AMP_EXP)||void 0===s?void 0:s.textContent)||"{}"));for(const t in h){const e=h[t];"number"==typeof e&&e>=0&&e<=1&&(o[t]=Math.random()<e)}const c=null===(n=t.AMP_CONFIG)||void 0===n?void 0:n["allow-doc-opt-in"];if(l(c)&&c.length){const e=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(e){var d;const t=(null===(d=e.getAttribute("content"))||void 0===d?void 0:d.split(","))||[];for(const e of t)c.includes(e)&&(o[e]=!0)}}Object.assign(o,function(t){var e;let i="";try{var s;"localStorage"in t&&(i=null!==(s=t.localStorage.getItem("amp-experiment-toggles"))&&void 0!==s?s:"")}catch(t){}const n=(null===(e=i)||void 0===e?void 0:e.split(/\s*,\s*/g))||[],r=_();for(const t of n)t&&("-"==t[0]?r[t.substr(1)]=!1:r[t]=!0);return r}(t));const u=null===(r=t.AMP_CONFIG)||void 0===r?void 0:r["allow-url-opt-in"];if(l(u)&&u.length){const e=z(t.location.originalHash||t.location.hash);for(const t of u){const i=e[`e-${t}`];"1"==i&&(o[t]=!0),"0"==i&&(o[t]=!1)}}return o}var te;function ee(t){const e=Math.random();return t[Math.floor(e*t.length)]||null}function ie(t,e){return t.__AMP_EXPERIMENT_BRANCHES?t.__AMP_EXPERIMENT_BRANCHES[e]:null}function se(t,e,i={},s=!0){Nt(t).then((n=>{n&&n.triggerEventForTarget(t,e,i,s)}))}var ne="Failed to load:";function re(t){return t.data}function oe(t,e,i,s){let n=i;const r=function(t,e,i,s){let n=t,r=i,o=t=>{try{return r(t)}catch(t){var e,i;throw null===(e=(i=self).__AMP_REPORT_ERROR)||void 0===e||e.call(i,t),t}};const a=function(){if(void 0!==te)return te;te=!1;try{const t={get capture(){return te=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return te}(),h=!(null==s||!s.capture);return n.addEventListener(e,o,a?s:h),()=>{null==n||n.removeEventListener(e,o,a?s:h),r=null,n=null,o=null}}(t,e,(t=>{try{n(t)}finally{n=null,r()}}),s);return r}function ae(t){let e,i;if(function(t){return!!(t.complete||"complete"==t.readyState||he(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);const s=he(t);return s&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise(((n,r)=>{if(e=s?oe(t,"loadedmetadata",n,{capture:!0}):oe(t,"load",n),!t.tagName)return;let o=t;if(s&&!t.hasAttribute("src")&&(o=function(t,e){for(let i=t.lastElementChild;i;i=i.previousElementSibling)if(e(i))return i;return null}(t,(t=>"SOURCE"===t.tagName)),!o))return r(new Error("Media has no source."));i=oe(o,"error",r)})).then((()=>(i&&i(),t)),(()=>{e&&e(),function(t){he(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);let e=t;throw e&&e.src&&(e=e.src),it().createError(ne,e)}(t)}))}function he(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var ce,le="render-start",de="ini-load",ue=["Webkit","webkit","Moz","moz","ms","O","o"],pe={"getPropertyPriority":()=>"","getPropertyValue":()=>""};function me(t){const e=t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()));return ue.some((t=>e.startsWith(t+"-")))?`-${e}`:e}function fe(t,e,i){if(ye(e))return e;ce||(ce=_());let s=ce[e];if(!s||i){if(s=e,void 0===t[e]){const i=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(e),n=function(t,e){for(let i=0;i<ue.length;i++){const s=ue[i]+e;if(void 0!==t[s])return s}return""}(t,i);void 0!==t[n]&&(s=n)}i||(ce[e]=s)}return s}function ge(t,e){const{style:i}=t;for(const t in e)i.setProperty(me(fe(i,t)),String(e[t]),"important")}function Ae(t,e,i,s,n){const r=fe(t.style,e,n);if(!r)return;const o=s?i+s:i;t.style.setProperty(me(r),o)}function _e(t,e,i){const s=fe(t.style,e,i);if(s)return ye(s)?t.style.getPropertyValue(s):t.style[s]}function Te(t,e){for(const i in e)Ae(t,i,e[i])}function Ie(t,e){void 0===e&&(e=t.hasAttribute("hidden")),e?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function ve(t){return`${t}px`}function be(t,e){return t.getComputedStyle(e)||pe}function Ee(t,e){for(let i=0;i<e.length;i++)Ae(t,e[i],null)}function ye(t){return t.startsWith("--")}function Re(t,e,i){if(e[i])return e[i];const s=t.querySelector(`style[${i}], link[${i}]`);return s?(e[i]=s,s):null}var Se=!1;function we(t){rt(t.defaultView),Se||(Se=!0,function(t){Te(t.body,{opacity:1,visibility:"visible","animation":"none"})}(t))}var Pe,Ne=(()=>self.AMP.config.urls)(),Ce=new Set(["c","v","a","ad"]),Oe="__amp_source_origin",Me=t=>"string"==typeof t?je(t):t;function je(t,e){return Pe||(Pe=self.document.createElement("a")),xe(Pe,t)}function xe(t,e,i){return t.href="",new URL(e,t.href)}function De(t,e){return function(t,e,i){if(!e)return t;const s=t.split("#",2),n=s[0].split("?",2);let r=n[0]+(n[1]?`?${n[1]}&${e}`:`?${e}`);return r+=s[1]?`#${s[1]}`:"",r}(t,function(t){const e=[];for(const r in t){let o=t[r];if(null!=o){o=l(n=o)?n:[n];for(let t=0;t<o.length;t++)e.push((i=r,s=o[t],`${encodeURIComponent(i)}=${encodeURIComponent(s)}`))}}var i,s,n;return e.join("&")}(e))}function ke(t){return"https:"==(t=Me(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||u(t.hostname,".localhost")}function Ve(t,e,i="source"){return ot(null!=t,"%s %s must be available",e,i),ot(ke(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,i,t),t}function Ue(t){return Ne.cdnProxyRegex.test(Me(t).origin)}function Le(t){return t.startsWith("amp-script:")}function $e(t){return!(t&&L.includes(Me(t).protocol))}function Ge(t){if(!Ue(t=Me(t)))return t.href;const e=t.pathname.split("/"),i=e[1];ot(Ce.has(i),"Unknown path prefix in url %s",t.href);const s=e[2],n="s"==s?"https://"+decodeURIComponent(e[3]):"http://"+decodeURIComponent(s);return ot(n.indexOf(".")>0,"Expected a . in origin %s",n),e.splice(1,"s"==s?3:2),n+e.join("/")+function(t,e){if(!t||"?"==t)return"";const i=new RegExp("[?&](amp_(js[^&=]*|gsa|r|kit)|usqp)\\b[^&]*","g"),s=t.replace(i,"").replace(/^[?&]/,"");return s?"?"+s:""}(t.search)+(t.hash||"")}function ze(t){return je(Ge(t)).origin}function Fe(t){const e=z(je(t).search);ot(!(Oe in e),"Source origin is not allowed in %s",t)}var He=(()=>self.AMP.config.urls)(),Be="CANCELLED",qe="BLOCK_BY_CONSENT",Ke=self.__AMP_ERRORS||[];self.__AMP_ERRORS=Ke;var We=function(t){return(We=function(t){const e=function(t){let e=0;return()=>{let t=Math.pow(1.5,e++);return t+=function(t,e){let i=t*(e=e||.3)*Math.random();return Math.random()>.5&&(i*=-1),i}(t),1e3*t}}();return t=>setTimeout(t,e())}())(t)};function Ye(t,e){try{let i;if(t)if(void 0!==t.message)t=Y(t),i=!0;else{const e=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(e){return String(t)}}(e))).origError=e}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){const e=function(t,e){for(let i=0;i<t.length;i++)if(e(t[i],i,t))return i;return-1}(t.messageArray,(t=>null==t?void 0:t.tagName));e>-1&&(t.associatedElement=t.messageArray[e])}const s=e||t.associatedElement;if(s&&s.classList&&s.classList.add("i-amphtml-error"),self.console&&(y(t.message)||!t.expected)){const e=console.error||console.log;t.messageArray?e.apply(console,t.messageArray):s?e.call(console,t.message,s):e.call(console,t.message)}s&&s.dispatchCustomEventForTesting&&s.dispatchCustomEventForTesting("amp:error",t.message),Qe.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Je(){return new Error(Be)}function Xe(t){return!!t&&("string"==typeof t?t.startsWith(Be):"string"==typeof t.message&&t.message.startsWith(Be))}function Qe(t,e,s,n,r){!this||!this.document||r&&r.expected||we(this.document);let o=!1;try{o=function(t){if(!t.document)return!1;const e=t.document.querySelectorAll("script[src]");for(let t=0;t<e.length;t++)if(!Ue(e[t].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(o&&Math.random()<.99)return;const a=function(t,e,i,s,n,r){t=function(t,e){return e&&(t=e.message?e.message:String(e)),t||(t="Unknown error"),t}(t,n);let o=!(!n||!n.expected);if(/_reported_/.test(t))return;if(t==Be)return;const a=!(self&&self.window),h=Math.random();if((function(t){return-1!=t.indexOf(ne)}(t)||"Script error."==t||a)&&(o=!0,h<.9999))return;const c=y(t);if(c&&h<.99)return;const l=Object.create(null);l.v=B().rtvVersion,l.noAmp=r?"1":"0",l.m=t.replace("​​​",""),l.a=c?"1":"0",l.ex=o?"1":"0",l.dw=a?"1":"0";let d="1p";if(d="esm",l.esm="1",l.rt="esm",l.cdn=He.cdn,l.ca=Jt(self)?"1":"0",l.bt=Xt(self),self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(l.or=self.location.ancestorOrigins[0]),self.viewerState&&(l.vs=self.viewerState),self.parent&&self.parent!=self&&(l.iem="1"),self.AMP&&self.AMP.viewer){const t=self.AMP.viewer.getResolvedViewerUrl(),e=self.AMP.viewer.maybeGetMessagingOrigin();t&&(l.rvu=t),e&&(l.mso=e)}const u=[],p=self[Yt]||null;var m,f,g;for(const t in p){const e=p[t];u.push(`${t}=${e?"1":"0"}`)}return l.exps=u.join(","),n?(l.el=(null===(m=n.associatedElement)||void 0===m?void 0:m.tagName)||"u",n.args&&(l.args=JSON.stringify(n.args)),c||n.ignoreStack||!n.stack||(l.s=n.stack),n.message&&(n.message+=" _reported_")):(l.f=e||"",l.l=i||"",l.c=s||""),l.r=self.document?self.document.referrer:"",l.ae=Ke.join(","),l.fr=self.location.originalHash||self.location.hash,"production"===l.bt&&(l.pt="1"),g=t,(f=Ke).length>=25&&f.splice(0,f.length-25+1),f.push(g),l}(t,e,s,n,r,o);a&&We((()=>{try{return function(t,e){return e.pt&&Math.random()<.9?i():function(t,e){const i=Pt(t);if(!i.isSingleDoc())return Promise.resolve(!1);const s=i.getSingleDoc();if(!s.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);const n=Ht(s);return n.hasCapability("errorReporter")?n.isTrustedViewer().then((t=>{return!!t&&(n.sendMessage("error",{"m":(i=e).m,"a":i.a,"s":i.s,"el":i.el,"ex":i.ex,"v":i.v,"pt":i.pt}),!0);var i})):Promise.resolve(!1)}(t,e).then((t=>{if(!t){const t=new XMLHttpRequest;t.open("POST",Math.random()<.1?He.betaErrorReporting:He.errorReporting,!0),t.send(JSON.stringify(e))}}))}(this,a).catch((()=>{}))}catch(t){}}))}var Ze={CLIENT_ID:!0,TITLE:!0,SOURCE_URL:!0};var ti=(()=>self.AMP.config.urls)(),ei="-test-amp-cookie-tmp";function ii(t,e){const i=function(t){try{return t.document.cookie}catch(t){return""}}(t);if(!i)return null;const s=i.split(";");for(let t=0;t<s.length;t++){const i=s[t].trim(),n=i.indexOf("=");if(-1!=n&&G(i.substring(0,n).trim())==e){const t=i.substring(n+1).trim();return G(t,t)}}return null}function si(t,e,i,s,n={}){let r;!function(t,e,i){if(e.allowOnProxyOrigin)return void ot(!e.highestAvailableDomain,"Could not support highestAvailable Domain on proxy origin, specify domain explicitly");ot(!Ue(t.location.href),`Should never attempt to set cookie on proxy origin: ${i}`);const s=je(t.location.href).hostname.toLowerCase(),n=je(ti.cdn).hostname.toLowerCase();ot(!(s==n||u(s,"."+n)),"Should never attempt to set cookie on proxy origin. (in depth check): "+i)}(t,n,e),n.domain?r=n.domain:n.highestAvailableDomain&&(r=function(t){const e=t.document.head&&t.document.head.querySelector("meta[name='amp-cookie-scope']");if(e){const i=e.getAttribute("content")||"",s=ze(t.location.href);return u(s,"."+i)?i:s.split("://")[1]}if(!Ue(t.location.href)){const e=t.location.hostname.split(".");let i=e[e.length-1];const s=ri(t);for(let n=e.length-2;n>=0;n--)if(i=e[n]+"."+i,ni(t,s,"delete",Date.now()+1e3,i),"delete"==ii(t,s))return ni(t,s,"delete",Date.now()-1e3,i),i}return null}(t)),ni(t,e,i,s,r,n.sameSite,n.secure)}function ni(t,e,i,s,n,r,o){"ampproject.org"==n&&(i="delete",s=0);const a=encodeURIComponent(e)+"="+encodeURIComponent(i)+"; path=/"+(n?"; domain="+n:"")+"; expires="+new Date(s).toUTCString()+function(t,e){return e?`; SameSite=${e}`:""}(0,r)+(o?"; Secure":"");try{t.document.cookie=a}catch(t){}}function ri(t){let e=ei,i=0;for(;ii(t,e);)e=ei+i++;return e}function oi(t){const e=ri(t),i="TESTCOOKIEVALUE";try{return si(t,e,i,Date.now()+1e3),ii(t,e)===i}catch(t){}return!1}var ai="amp-ff-set-cookies";function hi(t,e){return Ue(t.location)?"":e}function ci(t){const e=[];let i=0;for(;I(t)&&i<25;){let s="";t.id&&(s=`/${t.id}`);const n=t.nodeName.toLowerCase();e.push(`${n}${s}${di(t)}`),i++,t=t.parentElement}return e.join()}var li=class{static generate(t){return p(ci(t))}};function di(t){const{nodeName:e}=t;let i=0,s=0,n=t.previousElementSibling;for(;n&&s<25&&i<100;)n.nodeName==e&&s++,i++,n=n.previousElementSibling;return s<25&&i<100?`.${s}`:""}function ui(t,e,i,s){return{left:t,top:e,width:i,height:s,bottom:e+s,right:t+i,x:t,y:e}}function pi(t,e,i){return 0==e&&0==i||0==t.width&&0==t.height?t:ui(t.left+e,t.top+i,t.width,t.height)}function mi(t){const e=t.ownerDocument.body;let i=0,s=0;for(let n=t;n&&n!=e;n=n.offsetParent)i+=n.offsetLeft,s+=n.offsetTop;const{offsetHeight:n,offsetWidth:r}=t;return ui(i,s,r,n)}function fi(t){return function(t,e){const i=e.documentElement;return["⚡4email","amp4email"].some((t=>i.hasAttribute(t)))}(0,t)}function gi(t){return"complete"==t.readyState}var Ai={"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 _i(t,e,i){const s=t.performance&&t.performance.timing;if(!s||0==s.navigationStart)return;const n=void 0===i?s[e]:s[i]-s[e];return!v(n)||n<0?void 0:n}function Ti(t,e){const i=t.performance&&t.performance.navigation;if(i&&void 0!==i[e])return i[e]}function Ii(t,e,i,s){const n=isNaN(s)||null==s?1e3:s,r=Ct(t).then((t=>{if(t)return t.get({scope:e,createCookieIfNotPresent:!0,cookieName:i},Promise.resolve(void 0)).catch((t=>{nt().error("AD-CID",t)}))}));return Lt(t.win).timeoutPromise(n,r,"cid timeout").catch((t=>{}))}JSON.parse('{"_ping_":{"renderStartImplemented":true,"clientIdScope":"_PING_","consentHandlingOverride":true},"1wo":{},"24smi":{"prefetch":"https://jsn.24smi.net/smi.js","preconnect":"https://data.24smi.net"},"4wmarketplace":{"renderStartImplemented":true},"a8":{"prefetch":"https://statics.a8.net/amp/ad.js","renderStartImplemented":true},"a9":{"prefetch":"https://z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"},"accesstrade":{"prefetch":"https://h.accesstrade.net/js/amp/amp.js"},"adagio":{"prefetch":"https://js-ssl.neodatagroup.com/adagio_amp.js","preconnect":["https://ad-aws-it.neodatagroup.com","https://tracker.neodatagroup.com"],"renderStartImplemented":true},"adblade":{"prefetch":"https://web.adblade.com/js/ads/async/show.js","preconnect":["https://staticd.cdn.adblade.com","https://static.adblade.com"],"renderStartImplemented":true},"adbutler":{"prefetch":"https://servedbyadbutler.com/app.js"},"adenza":{"renderStartImplemented":true},"adform":{},"adfox":{"prefetch":"https://yandex.ru/ads/system/context.js","preconnect":["https://yastatic.net/"],"renderStartImplemented":true},"adgeneration":{"prefetch":"https://i.socdm.com/sdk/js/adg-script-loader.js"},"adglare":{"renderStartImplemented":true},"adhese":{"renderStartImplemented":true},"adincube":{"renderStartImplemented":true},"adition":{},"adman":{},"admanmedia":{"renderStartImplemented":true},"admatic":{},"admixer":{"renderStartImplemented":true,"preconnect":["https://inv-nets.admixer.net","https://cdn.admixer.net"]},"adnuntius":{"prefetch":"https://cdn.adnuntius.com/adn.js","renderStartImplemented":true},"adocean":{"consentHandlingOverride":true},"adop":{},"adpicker":{"renderStartImplemented":true},"adplugg":{"prefetch":"https://www.adplugg.com/serve/js/ad.js","renderStartImplemented":true},"adpon":{"prefetch":"https://ad.adpon.jp/amp.js","clientIdScope":"AMP_ECID_ADPON"},"adpushup":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":"https://cdn.adpushup.com"},"adreactor":{},"ads2bid":{"renderStartImplemented":true},"adsensor":{"prefetch":"https://wfpscripts.webspectator.com/amp/adsensor-amp.js","clientIdScope":"amp_ecid_adensor","renderStartImplemented":true},"adservsolutions":{},"adskeeper":{"renderStartImplemented":true,"preconnect":["https://jsc.adskeeper.com","https://servicer.adskeeper.com","https://s-img.adskeeper.com"]},"adsloom":{"clientIdScope":"AMP_ECID_ADSLOOM"},"adsnative":{"prefetch":"https://static.adsnative.com/static/js/render.v1.js","preconnect":"https://api.adsnative.com"},"adspeed":{"preconnect":"https://g.adspeed.net","renderStartImplemented":true},"adspirit":{},"adstir":{"prefetch":"https://js.ad-stir.com/js/adstir_async.js","preconnect":"https://ad.ad-stir.com"},"adstyle":{"prefetch":"https://widgets.ad.style/amp.js","preconnect":["https://w.ad.style"]},"adtech":{"prefetch":"https://s.aolcdn.com/os/ads/adsWrapper3.js","preconnect":["https://mads.at.atwola.com","https://aka-cdn.adtechus.com"]},"adtelligent":{"preconnect":["https://s.adtelligent.com"],"renderStartImplemented":true},"adthrive":{"prefetch":["https://www.googletagservices.com/tag/js/gpt.js"],"preconnect":["https://partner.googleadservices.com","https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],"renderStartImplemented":true},"adsviu":{"prefetch":"https://widget.adsviu.com/adsviuAMP.js","preconnect":["https://api.adsviu.com"]},"adunity":{"preconnect":["https://content.adunity.com"],"renderStartImplemented":true},"aduptech":{"prefetch":"https://s.d.adup-tech.com/jsapi","preconnect":["https://d.adup-tech.com","https://m.adup-tech.com","https://v.adup-tech.com"],"renderStartImplemented":true,"consentHandlingOverride":true},"adventive":{"preconnect":["https://ads.adventive.com","https://amp.adventivedev.com"],"renderStartImplemented":true},"adverline":{"prefetch":"https://ads.adverline.com/richmedias/amp.js","preconnect":["https://adnext.fr"],"renderStartImplemented":true},"adverticum":{},"advertserve":{"renderStartImplemented":true},"adyoulike":{"consentHandlingOverride":true,"prefetch":"https://fo-static.omnitagjs.com/amp.js","renderStartImplemented":true},"adzerk":{},"affiliateb":{"prefetch":"https://track.affiliate-b.com/amp/a.js","renderStartImplemented":true},"affinity":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":"https://cdn4-hbs.affinitymatrix.com"},"aja":{"prefetch":["https://cdn.as.amanad.adtdp.com/sdk/asot-amp.js","https://cdn.as.amanad.adtdp.com/sdk/asot-v2.js"],"preconnect":["https://ad.as.amanad.adtdp.com"]},"appvador":{"prefetch":["https://cdn.apvdr.com/js/VastAdUnit.min.js","https://cdn.apvdr.com/js/VideoAd.min.js","https://cdn.apvdr.com/js/VideoAd3PAS.min.js","https://cdn.apvdr.com/js/VideoAdAutoPlay.min.js","https://cdn.apvdr.com/js/VideoAdNative.min.js"],"renderStartImplemented":true},"aso":{"renderStartImplemented":true},"amoad":{"prefetch":["https://j.amoad.com/js/a.js","https://j.amoad.com/js/n.js"],"preconnect":["https://d.amoad.com","https://i.amoad.com","https://m.amoad.com","https://v.amoad.com"]},"amplified":{"preconnect":"https://srv.clickfuse.com","renderStartImplemented":true},"andbeyond":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":"https://cdn.andbeyond.media"},"aniview":{"renderStartImplemented":true},"anyclip":{"prefetch":"https://player.anyclip.com/anyclip-widget/lre-widget/prod/v1/src/lre.js","preconnect":["https://trafficmanager.anyclip.com","https://lreprx-server.anyclip.com"],"renderStartImplemented":true},"appmonsta":{"preconnect":"https://ssp.appmonsta.ai"},"appnexus":{"prefetch":"https://acdn.adnxs.com/ast/ast.js","preconnect":"https://ib.adnxs.com","renderStartImplemented":true},"atomx":{"prefetch":"https://s.ato.mx/p.js"},"avantisvideo":{"renderStartImplemented":true},"beaverads":{"renderStartImplemented":true},"beopinion":{"prefetch":"https://widget.beop.io/sdk.js","preconnect":["https://t.beop.io","https://s.beop.io","https://data.beop.io"],"renderStartImplemented":true},"bidgear":{"prefetch":"https://platform.bidgear.com/bidgear-amp.js","renderStartImplemented":true},"bidtellect":{},"blade":{"prefetch":"https://sdk.streamrail.com/blade/sr.blade.js","renderStartImplemented":true},"brainy":{},"bringhub":{"renderStartImplemented":true,"preconnect":["https://static.bh-cdn.com","https://core-api.bringhub.io"]},"broadbandy":{"renderStartImplemented":true},"broadstreetads":{"prefetch":"https://cdn.broadstreetads.com/init-2.min.js","renderStartImplemented":true},"byplay":{},"caajainfeed":{"prefetch":["https://cdn.amanad.adtdp.com/sdk/ajaamp.js"],"preconnect":["https://ad.amanad.adtdp.com"]},"capirs":{"renderStartImplemented":true},"caprofitx":{"prefetch":["https://cdn.caprofitx.com/pfx.min.js","https://cdn.caprofitx.com/tags/amp/profitx_amp.js"],"preconnect":"https://ad.caprofitx.adtdp.com"},"cedato":{"renderStartImplemented":true},"chargeads":{},"cognativex":{},"colombia":{"prefetch":"https://static.clmbtech.com/ad/commons/js/colombia-amp.js"},"colombiafeed":{"prefetch":"https://static.clmbtech.com/c1e/static/themes/js/colombiafeed-amp.js"},"conative":{"renderStartImplemented":true},"connatix":{"renderStartImplemented":true},"contentad":{},"criteo":{"prefetch":"https://static.criteo.net/js/ld/publishertag.js","preconnect":"https://cas.criteo.com"},"csa":{"prefetch":"https://www.google.com/adsense/search/ads.js"},"clever":{"renderStartImplemented":true},"clickio":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":["https://s.clickiocdn.com","https://up.clickiocdn.com","https://cns.clickiocdn.com","https://partner.googleadservices.com","https://tpc.googlesyndication.com"]},"dable":{"preconnect":["https://static.dable.io","https://api.dable.io","https://images.dable.io"],"renderStartImplemented":true},"dex":{"renderStartImplemented":true},"digiteka":{"renderStartImplemented":true},"directadvert":{"renderStartImplemented":true},"distroscale":{"preconnect":["https://c.jsrdn.com","https://s.jsrdn.com","https://i.jsrdn.com"],"renderStartImplemented":true},"dotandads":{"prefetch":"https://amp.ad.dotandad.com/dotandadsAmp.js","preconnect":"https://bal.ad.dotandad.com"},"dynad":{"preconnect":["https://t.dynad.net","https://tm.jsuol.com.br"]},"eadv":{"renderStartImplemented":true,"clientIdScope":"AMP_ECID_EADV","prefetch":["https://www.eadv.it/track/esr.min.js","https://www.eadv.it/track/ead.min.js"]},"empower":{"prefetch":"https://cdn.empower.net/sdk/amp-ad.min.js","renderStartImplemented":true},"engageya":{},"epeex":{},"eplanning":{"prefetch":"https://us.img.e-planning.net/layers/epl-amp.js"},"exco":{"renderStartImplemented":true},"ezoic":{"prefetch":["https://www.googletagservices.com/tag/js/gpt.js","https://g.ezoic.net/ezoic/ampad.js"],"clientIdScope":"AMP_ECID_EZOIC","consentHandlingOverride":true,"renderStartImplemented":true},"f1e":{"prefetch":"https://img.ak.impact-ad.jp/util/f1e_amp.min.js"},"f1h":{"preconnect":"https://img.ak.impact-ad.jp","renderStartImplemented":true},"fairground":{},"fake":{},"fake-delayed":{"renderStartImplemented":true},"feedad":{"clientIdScope":"__fa_amp","prefetch":"https://web.feedad.com/sdk/feedad-async.js","renderStartImplemented":true,"fullWidthHeightRatio":1.7777777777777777,"consentHandlingOverride":true},"felmat":{"prefetch":"https://t.felmat.net/js/fmamp.js","renderStartImplemented":true},"finative":{},"firstimpression":{"prefetch":"https://ecdn.firstimpression.io/static/js/fiamp.js","preconnect":"https://cdn.firstimpression.io","renderStartImplemented":true,"consentHandlingOverride":true},"flite":{},"fluct":{"prefetch":["https://pdn.adingo.jp/p.js"],"preconnect":["https://cdn-fluct.sh.adingo.jp","https://sh.adingo.jp","https://i.adingo.jp"]},"forkmedia":{"renderStartImplemented":true},"freewheel":{"prefetch":"https://cdn.stickyadstv.com/prime-time/fw-amp.min.js","renderStartImplemented":true},"fusion":{"prefetch":"https://assets.adtomafusion.net/fusion/latest/fusion-amp.min.js"},"gecko":{},"genieessp":{"prefetch":"https://js.gsspcln.jp/l/amp.js"},"geozo":{"renderStartImplemented":true},"giraff":{"renderStartImplemented":true},"glomex":{"prefetch":"https://player.glomex.com/integration/1/amp-embed.js"},"gmossp":{"prefetch":"https://cdn.gmossp-sp.jp/ads/amp.js"},"gumgum":{"prefetch":"https://js.gumgum.com/slot.js","renderStartImplemented":true},"holder":{"prefetch":"https://i.holder.com.ua/js2/holder/ajax/ampv1.js","preconnect":"https://h.holder.com.ua","renderStartImplemented":true},"ibillboard":{},"idealmedia":{"renderStartImplemented":true,"preconnect":["https://jsc.idealmedia.io","https://servicer.idealmedia.io","https://s-img.idealmedia.io/"]},"imedia":{"prefetch":"https://i.imedia.cz/js/im3.js","renderStartImplemented":true},"imobile":{"prefetch":"https://spamp.i-mobile.co.jp/script/amp.js","preconnect":"https://spad.i-mobile.co.jp"},"imonomy":{"renderStartImplemented":true},"impactify":{"prefetch":"https://ad.impactify.io/static/ad/tag.js","preconnect":["https://ad.impactify.media","https://dvr.impactify.media","https://securepubads.g.doubleclick.net","https://pubads.g.doubleclick.net","https://secure.adnxs.com"],"renderStartImplemented":true},"improvedigital":{},"incrementx":{"prefetch":"https://cdn.incrementxserv.com/ixamp.js","renderStartImplemented":true},"industrybrains":{"prefetch":"https://web.industrybrains.com/js/ads/async/show.js","preconnect":["https://staticd.cdn.industrybrains.com","https://static.industrybrains.com"],"renderStartImplemented":true},"inmobi":{"prefetch":"https://cf.cdn.inmobi.com/ad/inmobi.secure.js","renderStartImplemented":true},"innity":{"prefetch":"https://cdn.innity.net/admanager.js","preconnect":"https://as.innity.com","renderStartImplemented":true},"insticator":{"preconnect":"https://d3lcz8vpax4lo2.cloudfront.net","renderStartImplemented":true},"insurads":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":["https://tpc.googlesyndication.com","https://cdn.insurads.com","https://services.insurads.com","https://messaging.insurads.com"],"renderStartImplemented":true,"consentHandlingOverride":true},"invibes":{"prefetch":"https://k.r66net.com/GetAmpLink","renderStartImplemented":true,"consentHandlingOverride":true},"iprom":{"prefetch":"https://cdn.ipromcloud.com/ipromNS.js"},"ix":{"prefetch":["https://js-sec.indexww.com/apl/amp.js"],"preconnect":"https://as-sec.casalemedia.com","renderStartImplemented":true},"jubna":{},"kargo":{},"ketshwa":{},"kiosked":{"renderStartImplemented":true},"jioads":{"renderStartImplemented":true},"jixie":{"prefetch":["https://scripts.jixie.media/jxamp.min.js"],"clientIdScope":"__jxamp","clientIdCookieName":"_jxx","renderStartImplemented":true},"kixer":{"prefetch":"https://cdn.kixer.com/ad/load.js","renderStartImplemented":true},"kuadio":{},"ligatus":{"prefetch":"https://ssl.ligatus.com/render/ligrend.js","renderStartImplemented":true},"lockerdome":{"prefetch":"https://cdn2.lockerdomecdn.com/_js/amp.js","renderStartImplemented":true},"logly":{"preconnect":["https://l.logly.co.jp","https://cdn.logly.co.jp"],"renderStartImplemented":true},"loka":{"prefetch":"https://loka-cdn.akamaized.net/scene/amp.js","preconnect":["https://scene-front.lokaplatform.com","https://loka-materials.akamaized.net"],"renderStartImplemented":true},"luckyads":{"renderStartImplemented":true},"macaw":{"renderStartImplemented":true},"mads":{"prefetch":"https://eu2.madsone.com/js/tags.js"},"mantis-display":{"prefetch":"https://assets.mantisadnetwork.com/mantodea.min.js","preconnect":["https://mantodea.mantisadnetwork.com","https://res.cloudinary.com","https://resize.mantisadnetwork.com"]},"marfeel":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":["https://live.mrf.io","https://tpc.googlesyndication.com","https://fastlane.rubiconproject.com","https://htlb.casalemedia.com","https://prg.smartadserver.com","https://ib.adnxs.com","https://bidder.criteo.com","https://marfeel-d.openx.net","https://ice.360yield.com","https://mbid.marfeelrev.com"],"consentHandlingOverride":true},"mantis-recommend":{"prefetch":"https://assets.mantisadnetwork.com/recommend.min.js","preconnect":["https://mantodea.mantisadnetwork.com","https://resize.mantisadnetwork.com"]},"mediaad":{},"medianet":{"preconnect":"https://contextual.media.net","renderStartImplemented":true},"mediavine":{"prefetch":"https://amp.mediavine.com/wrapper.min.js","preconnect":["https://partner.googleadservices.com","https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],"renderStartImplemented":true,"consentHandlingOverride":true},"medyanet":{"renderStartImplemented":true},"meg":{"renderStartImplemented":true},"mgid":{"renderStartImplemented":true,"preconnect":["https://jsc.mgid.com","https://servicer.mgid.com","https://s-img.mgid.com"]},"microad":{"prefetch":"https://j.microad.net/js/camp.js","preconnect":["https://s-rtb.send.microad.jp","https://s-rtb.send.microadinc.com","https://cache.send.microad.jp","https://cache.send.microadinc.com","https://deb.send.microad.jp"]},"miximedia":{"renderStartImplemented":true},"mixpo":{"prefetch":"https://cdn.mixpo.com/js/loader.js","preconnect":["https://player1.mixpo.com","https://player2.mixpo.com"]},"momagic":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":["https://amp.truereach.co.in/"]},"monetizer101":{"renderStartImplemented":true},"mox":{"prefetch":["https://ad.mox.tv/js/amp.min.js","https://ad.mox.tv/mox/mwayss_invocation.min.js"],"renderStartImplemented":true},"my6sense":{"renderStartImplemented":true},"myfinance":{"preconnect":["https://a.myfidevs.io","https://static.myfinance.com","https://www.myfinance.com"],"renderStartImplemented":true,"clientIdScope":"AMP_ECID_GOOGLE"},"myoffrz":{"renderStartImplemented":true},"mytarget":{"prefetch":"https://ad.mail.ru/static/ads-async.js","renderStartImplemented":true},"myua":{"renderStartImplemented":true},"mywidget":{"preconnect":"https://likemore-fe.go.mail.ru","prefetch":"https://likemore-go.imgsmail.ru/widget_amp.js","renderStartImplemented":true},"nativeroll":{"prefetch":"https://cdn01.nativeroll.tv/js/seedr-player.min.js"},"nativery":{"preconnect":"https://cdn.nativery.com"},"nativo":{"prefetch":"https://s.ntv.io/serve/load.js"},"navegg":{"renderStartImplemented":true},"nend":{"prefetch":"https://js1.nend.net/js/amp.js","preconnect":["https://output.nend.net","https://img1.nend.net"]},"netletix":{"preconnect":["https://call.netzathleten-media.de"],"renderStartImplemented":true},"noddus":{"prefetch":"https://noddus.com/amp_loader.js","renderStartImplemented":true},"nokta":{"prefetch":"https://static.virgul.com/theme/mockups/noktaamp/ampjs.js","renderStartImplemented":true},"nws":{},"oblivki":{"renderStartImplemented":true},"onead":{"prefetch":"https://ad-specs.guoshipartners.com/static/js/onead-amp.min.js","renderStartImplemented":true},"onnetwork":{"renderStartImplemented":true},"openadstream":{},"openx":{"prefetch":"https://www.googletagservices.com/tag/js/gpt.js","preconnect":["https://partner.googleadservices.com","https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],"renderStartImplemented":true},"opinary":{"renderStartImplemented":true},"outbrain":{"renderStartImplemented":true,"prefetch":"https://widgets.outbrain.com/widgetAMP/outbrainAMP.min.js","preconnect":["https://odb.outbrain.com"],"consentHandlingOverride":true},"piberica":{"preconnect":["https://trafico.prensaiberica.es"],"renderStartImplemented":true},"pixad":{},"pixels":{"prefetch":"https://cdn.adsfactor.net/amp/pixels-amp.min.js","clientIdCookieName":"__AF","renderStartImplemented":true},"playstream":{"prefetch":"https://app.playstream.media/js/amp.js","renderStartImplemented":true},"playwire":{"prefetch":["https://securepubads.g.doubleclick.net/tag/js/gpt.js","https://cdn.intergient.com/amp/amp.js"],"renderStartImplemented":true},"plista":{},"polymorphicads":{"prefetch":"https://www.polymorphicads.jp/js/amp.js","preconnect":["https://img.polymorphicads.jp","https://ad.polymorphicads.jp"],"renderStartImplemented":true},"popin":{"renderStartImplemented":true},"postquare":{},"ppstudio":{"renderStartImplemented":true},"pressboard":{"renderStartImplemented":true},"promoteiq":{},"pubexchange":{},"pubfuture":{"renderStartImplemented":true},"pubguru":{"renderStartImplemented":true},"pubmatic":{"prefetch":"https://ads.pubmatic.com/AdServer/js/amp.js"},"pubmine":{"prefetch":["https://s.pubmine.com/head.js"],"preconnect":"https://delivery.g.switchadhub.com","renderStartImplemented":true},"pubscale":{"renderStartImplemented":true},"pulse":{"prefetch":"https://static.pulse.mail.ru/pulse-widget-amp.js","renderStartImplemented":true},"pulsepoint":{"prefetch":"https://ads.contextweb.com/TagPublish/getjs.static.js","preconnect":"https://tag.contextweb.com"},"purch":{"prefetch":"https://ramp.purch.com/serve/creative_amp.js","renderStartImplemented":true},"quoraad":{"prefetch":"https://a.quora.com/amp_ad.js","preconnect":"https://ampad.quora.com","renderStartImplemented":true},"r9x":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":"https://cdn.r9x.in"},"rakutenunifiedads":{"prefetch":"https://s-cdn.rmp.rakuten.co.jp/js/amp.js","renderStartImplemented":true},"rbinfox":{"renderStartImplemented":true},"rcmwidget":{"prefetch":"https://rcmjs.rambler.ru/static/rcmw/rcmw-amp.js","renderStartImplemented":true,"clientIdScope":"__rcmw_amp"},"readmo":{"renderStartImplemented":true},"realclick":{"renderStartImplemented":true},"recomad":{"renderStartImplemented":true},"recreativ":{"prefetch":"https://go.rcvlink.com/static/amp.js","renderStartImplemented":true},"relap":{"renderStartImplemented":true},"relappro":{"prefetch":"https://cdn.relappro.com/adservices/amp/relappro.amp.min.js","preconnect":"https://tags.relappro.com","renderStartImplemented":true},"remixd":{"preconnect":"https://tags.remixd.com","renderStartImplemented":true},"revcontent":{"prefetch":"https://labs-cdn.revcontent.com/build/amphtml/revcontent.amp.min.js","preconnect":["https://trends.revcontent.com","https://cdn.revcontent.com","https://img.revcontent.com"],"renderStartImplemented":true},"revjet":{"prefetch":"https://cdn.revjet.com/~cdn/JS/03/amp.js","renderStartImplemented":true},"rfp":{"prefetch":"https://js.rfp.fout.jp/rfp-amp.js","preconnect":"https://ad.rfp.fout.jp","renderStartImplemented":true},"rnetplus":{},"rubicon":{},"runative":{"prefetch":"https://cdn.run-syndicate.com/sdk/v1/n.js","renderStartImplemented":true},"sabavision":{"renderStartImplemented":true},"sas":{"renderStartImplemented":true},"seedingalliance":{},"seedtag":{"prefetch":"https://t.seedtag.com/c/loader.js","preconnect":["https://s.seedtag.com"],"consentHandlingOverride":true,"renderStartImplemented":true},"sekindo":{"renderStartImplemented":true},"sevio":{"preconnect":["https://request.adx.ws"],"prefetch":["https://cdn.adx.ws/scripts/amp.js"],"renderStartImplemented":true},"sharethrough":{"renderStartImplemented":true},"shemedia":{"prefetch":["https://securepubads.g.doubleclick.net/tag/js/gpt.js","https://ads.shemedia.com/static/amp.js"],"preconnect":["https://partner.googleadservices.com","https://tpc.googlesyndication.com","https://ads.blogherads.com"],"renderStartImplemented":true},"sklik":{"prefetch":"https://c.imedia.cz/js/amp.js"},"skoiy":{"preconnect":["https://svas.skoiy.xyz"]},"slimcutmedia":{"preconnect":["https://sb.freeskreen.com","https://static.freeskreen.com","https://video.freeskreen.com"],"renderStartImplemented":true},"smartads":{"prefetch":"https://smart-ads.biz/amp.js"},"smartadserver":{"prefetch":"https://ec-ns.sascdn.com/diff/js/amp.v0.js","preconnect":"https://static.sascdn.com","renderStartImplemented":true},"smartclip":{"prefetch":"https://cdn.smartclip.net/amp/amp.v0.js","preconnect":"https://des.smartclip.net","renderStartImplemented":true},"smi2":{"renderStartImplemented":true},"smilewanted":{"prefetch":"https://prebid.smilewanted.com/amp/amp.js","preconnect":"https://static.smilewanted.com","renderStartImplemented":true},"sogouad":{"prefetch":"https://theta.sogoucdn.com/wap/js/aw.js","renderStartImplemented":true},"sortable":{"prefetch":"https://www.googletagservices.com/tag/js/gpt.js","preconnect":["https://tags-cdn.deployads.com","https://partner.googleadservices.com","https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],"renderStartImplemented":true},"sona":{"renderStartImplemented":true},"sovrn":{"prefetch":"https://ap.lijit.com/www/sovrn_amp/sovrn_ads.js"},"speakol":{"renderStartImplemented":true},"spotx":{"preconnect":"https://js.spotx.tv","renderStartImplemented":true},"springAds":{"preconnect":["https://ib.adnxs.com"],"renderStartImplemented":true},"ssp":{"prefetch":"https://ssp.imedia.cz/static/js/ssp.js","renderStartImplemented":true,"consentHandlingOverride":true},"strossle":{"preconnect":["https://amp.spklw.com","https://widgets.sprinklecontent.com","https://images.sprinklecontent.com"]},"sunmedia":{"preconnect":["https://static.sunmedia.tv","https://services.sunmedia.tv","https://creative.sunmedia.tv","https://vod.sunmedia.tv","https://mx-sunmedia.videoplaza.tv","https://es-sunicontent.videoplaza.tv","https://es-sunelespanol.videoplaza.tv","https://es-suncopperland.videoplaza.tv","https://search.spotxchange.com","https://tpc.googlesyndication.com"],"clientIdScope":"AMP_ECID_SUNMEDIA","fullWidthHeightRatio":1,"renderStartImplemented":true},"svknative":{"renderStartImplemented":true,"prefetch":"https://widget.svk-native.ru/js/embed.js"},"swoop":{"prefetch":"https://www.swoop-amp.com/amp.js","preconnect":["https://www.swpsvc.com","https://client.swpcld.com"],"renderStartImplemented":true},"taboola":{},"tagon":{"prefetch":"https://js.tagon.co/tagon-amp.min.js"},"tail":{"renderStartImplemented":true},"tcsemotion":{"prefetch":"https://ads.tcsemotion.com/www/delivery/amphb.js","renderStartImplemented":true},"teads":{"prefetch":"https://a.teads.tv/media/format/v3/teads-format.min.js","preconnect":["https://cdn2.teads.tv","https://t.teads.tv","https://r.teads.tv"],"consentHandlingOverride":true},"temedya":{"prefetch":["https://widget.cdn.vidyome.com/builds/loader-amp.js","https://vidyome-com.cdn.vidyome.com/vidyome/builds/widgets.js"],"renderStartImplemented":true},"torimochi":{"renderStartImplemented":true},"tracdelight":{"prefetch":"https://scripts.tracdelight.io/amp.js","renderStartImplemented":true},"trafficstars":{"prefetch":"https://cdn.tsyndicate.com/sdk/v1/master.spot.js","renderStartImplemented":true},"triplelift":{},"trugaze":{"clientIdScope":"__tg_amp","renderStartImplemented":true},"uas":{"prefetch":"https://ads.pubmatic.com/AdServer/js/phoenix.js"},"ucfunnel":{"renderStartImplemented":true},"uzou":{"preconnect":["https://speee-ad.akamaized.net"],"renderStartImplemented":true},"unruly":{"prefetch":"https://video.unrulymedia.com/native/native-loader.js","renderStartImplemented":true},"valuecommerce":{"prefetch":"https://amp.valuecommerce.com/amp_bridge.js","preconnect":["https://ad.jp.ap.valuecommerce.com"],"renderStartImplemented":true},"vdoai":{"prefetch":"https://a.vdo.ai/core/dependencies_amp/vdo.min.js","renderStartImplemented":true},"videointelligence":{"preconnect":"https://s.vi-serve.com","renderStartImplemented":true},"videonow":{"renderStartImplemented":true},"viralize":{"renderStartImplemented":true},"vlyby":{"prefetch":"https://cdn.vlyby.com/amp/qad/qad-outer2.js"},"vmfive":{"prefetch":"https://man.vm5apis.com/dist/adn-web-sdk.js","preconnect":["https://vawpro.vm5apis.com","https://vahfront.vm5apis.com"],"renderStartImplemented":true},"vox":{"renderStartImplemented":true},"webediads":{"prefetch":"https://eu1.wbdds.com/amp.min.js","preconnect":["https://goutee.top","https://mediaathay.org.uk"],"renderStartImplemented":true},"weborama-display":{"prefetch":["https://cstatic.weborama.fr/js/advertiserv2/adperf_launch_1.0.0_scrambled.js","https://cstatic.weborama.fr/js/advertiserv2/adperf_core_1.0.0_scrambled.js"]},"whopainfeed":{"prefetch":"https://widget.infeed.com.ar/widget/widget-amp.js"},"widespace":{},"wisteria":{"renderStartImplemented":true},"wpmedia":{"prefetch":"https://std.wpcdn.pl/wpjslib/wpjslib-amp.js","preconnect":["https://www.wp.pl","https://v.wpimg.pl"],"renderStartImplemented":true},"wunderkind":{"preconnect":["https://tag.wknd.ai","https://api.bounceexchange.com"],"renderStartImplemented":true,"fullWidthHeightRatio":1.3333333333333333},"xlift":{"prefetch":"https://cdn.x-lift.jp/resources/common/xlift_amp.js","renderStartImplemented":true},"yahoofedads":{"renderStartImplemented":true},"yahoojp":{"prefetch":["https://s.yimg.jp/images/listing/tool/yads/ydn/amp/amp.js","https://yads.c.yimg.jp/js/yads.js"],"preconnect":"https://yads.yahoo.co.jp"},"yahoonativeads":{"renderStartImplemented":true},"yandex":{"prefetch":"https://yandex.ru/ads/system/context.js","preconnect":["https://yastatic.net/"],"renderStartImplemented":true},"yektanet":{"preconnect":["https://cdn.yektanet.com","https://cg-sc.yektanet.com","https://native.yektanet.com","https://nfetch.yektanet.net","https://rfetch.yektanet.net","https://scrapper.yektanet.com","https://ua.yektanet.com","https://bfetch.yektanet.com","https://mostatil.cdn.yektanet.com"],"renderStartImplemented":true},"yengo":{"renderStartImplemented":true},"yieldbot":{"prefetch":["https://cdn.yldbt.com/js/yieldbot.intent.amp.js","https://msg.yldbt.com/js/ybmsg.html"],"preconnect":"https://i.yldbt.com"},"yieldmo":{"prefetch":"https://static.yieldmo.com/ym.1.js","preconnect":["https://s.yieldmo.com","https://ads.yieldmo.com"],"renderStartImplemented":true},"yieldone":{"prefetch":"https://img.ak.impact-ad.jp/ic/pone/commonjs/yone-amp.js"},"yieldpro":{"preconnect":"https://creatives.yieldpro.eu","renderStartImplemented":true},"yobee":{},"zedo":{"prefetch":"https://ss3.zedo.com/gecko/tag/Gecko.amp.min.js","renderStartImplemented":true},"zen":{"prefetch":"https://zen.yandex.ru/widget-loader","preconnect":["https://yastatic.net/"],"renderStartImplemented":true},"zergnet":{},"zucks":{"preconnect":["https://j.zucks.net.zimg.jp","https://sh.zucks.net","https://k.zucks.net","https://static.zucks.net.zimg.jp"]},"baidu":{"prefetch":"https://dup.baidustatic.com/js/dm.js","renderStartImplemented":true},"sulvo":{}}');var vi="ready-scan",bi=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"],Ei="X-AmpAnalytics",yi={"AMP-CAROUSEL":"ac","AMP-FX-FLYING-CARPET":"fc","AMP-LIGHTBOX":"lb","AMP-STICKY-AD":"sa"},Ri={"visible":"1","hidden":"2","prerender":"3","unloaded":"5"},Si="data-experiment-id",wi="data-amp-experiment-id",Pi={name:"trunc",value:"1"},Ni=/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org((\/.*)|($))+/;function Ci(t,e){return t.performance&&t.performance.timing&&t.performance.timing[e]||0}function Oi(t,e){const{element:i,win:s}=t,n=mi(i),r=function(t){let e=t,i=0;for(;e!=e.parent&&i<100;)e=e.parent,i++;return rt(e==t.top),i}(s),o=zi(i);t.uiHandler.isStickyAd()&&!o.includes(yi["AMP-STICKY-AD"])&&o.push(yi["AMP-STICKY-AD"]);let a=i.getAttribute(Si);e&&(a=Gi(e,a));const h=i.getAttribute(wi);return{"adf":li.generate(i),"nhd":r,"eid":a,"adx":Math.round(n.left),"ady":Math.round(n.top),"oid":"2","act":o.length?o.join():null,"aexp":h?h.replace(/,/g,"!"):null}}function Mi(t,e,i){const n=t=>t.element.querySelector(`amp-ad[type=${e}]`);return function(t,i,s){return t.signals().whenSignal(vi).then((()=>{const e=[];return Ut(t).get().forEach((t=>{t.hasBeenMeasured()||t.hostWin!=i||t.hasOwner()||e.push(t.ensureMeasured())})),Promise.all(e)})).then((()=>Ut(t).get().filter((t=>t.hostWin==i&&!t.hasOwner()&&t.hasBeenMeasured()&&(t=>"AMP-AD"==t.element.tagName&&t.element.getAttribute("type")==e||Object.keys(yi).includes(t.element.tagName)&&!!n(t))(t)))))}(t,t.win).then((t=>Promise.all(t.map((t=>"AMP-AD"==t.element.tagName?t.element:function(t){if(R(function(t){const e=t.tagName;return e.startsWith("AMP-")&&!("AMP-STICKY-AD-TOP-PADDING"==e||"AMP-BODY"==e)}(t)),t.createdCallback)return Promise.resolve(t);if(!t.__AMP_UPG_PRM){const e=new s;t.__AMP_UPG_PRM=e.promise,t.__AMP_UPG_RES=e.resolve}const e=t.__AMP_UPG_PRM;return R(e),e}(n(t))))))).then((t=>t.reduce(((t,e)=>{const s=i(e);return(t[s]||(t[s]=[])).push(e.getImpl()),t}),{})))}function ji(t,e){const{win:s}=t,n=t.getAmpDoc(),r=Lt(s).timeoutPromise(1e3,Ht(n).getReferrerUrl()).catch((()=>(nt().expectedError("AMP-A4A","Referrer timeout!"),""))),o=Lt(s).timeoutPromise(1e3,function(t){return t.navigator&&t.navigator.userAgentData&&"function"==typeof t.navigator.userAgentData.getHighEntropyValues?t.navigator.userAgentData.getHighEntropyValues(["platform","platformVersion","architecture","model","uaFullVersion","bitness"]):i()}(s)).catch((()=>(nt().expectedError("AMP-A4A","UACH timeout!"),{}))),a=t.getAmpDoc().getParam("visibilityState")?t.getAmpDoc().getLastVisibleTime():Ci(s,"domLoading");return Promise.all([Ii(n,"AMP_ECID_GOOGLE","_ga"),r,o]).then((i=>{const r=i[0],o=i[1],h=i[2],{canonicalUrl:c,pageViewId:l}=Mt(n);s.gaGlobal=s.gaGlobal||{cid:r,hid:l};const{screen:d}=s,u=qt(n),p=u.getRect(),m=u.getSize(),f=n.getVisibilityState();return{"is_amp":t.isXhrAllowed()?"3":"5","amp_v":"2601162341000","d_imp":"1","c":Li(s,n,r),"ga_cid":s.gaGlobal.cid||null,"ga_hid":s.gaGlobal.hid||null,"dt":e,"biw":p.width,"bih":p.height,"u_aw":d?d.availWidth:null,"u_ah":d?d.availHeight:null,"u_cd":d?d.colorDepth:null,"u_w":d?d.width:null,"u_h":d?d.height:null,"u_tz":-(new Date).getTimezoneOffset(),"u_his":Di(s),"isw":s!=s.top?m.width:null,"ish":s!=s.top?m.height:null,"art":qi(s),"vis":Ri[f]||"0","scr_x":Math.round(u.getScrollLeft()),"scr_y":Math.round(u.getScrollTop()),"bc":Bi(s)||null,"debug_experiment_id":(/(?:#|,)deid=([\d,]+)/i.exec(s.location.hash)||[])[1]||null,"url":c||null,"top":s!=s.top?Vi(s):null,"loc":s.location.href==c?null:s.location.href,"ref":o||null,"bdt":a?e-a:null,"uap":null==h?void 0:h.platform,"uapv":null==h?void 0:h.platformVersion,"uaa":null==h?void 0:h.architecture,"uam":null==h?void 0:h.model,"uafv":null==h?void 0:h.uaFullVersion,"uab":null==h?void 0:h.bitness,"uafvl":JSON.stringify(null==h?void 0:h.fullVersionList),"uaw":null==h?void 0:h.wow64}}))}function xi(t,e,i){return function(t,e,i,s){const n=[],r=s&&null!=s.value&&""!==s.value?encodeURIComponent(s.name)+"="+encodeURIComponent(String(s.value)):null;let o=15350-t.length;r&&(o-=r.length+1);const a=Object.keys(e);for(let t=0;t<a.length;t++){const i=a[t],s=e[i];if(null==s||""===s)continue;const h=encodeURIComponent(i)+"=",c=encodeURIComponent(String(s)),l=h.length+c.length+1;if(l>o){const t=c.substr(0,o-h.length-1).replace(/%\w?$/,"");t&&n.push(h+t),r&&n.push(r);break}n.push(h+c),o-=l}return n.length?t+"?"+n.join("&"):t}(t,e,0,Pi)+"&dtd="+function(t,e){const i=t-e;return i>=1e6?"M":i>=0?i:"-M"}(Date.now(),i)}function Di(t){try{return t.history.length}catch(t){return 0}}function ki(t){return(/^(?:https?:\/\/)?([^\/\?:]+)/i.exec(t)||[])[1]||t}function Vi(t){const{ancestorOrigins:e}=t.location;if(e){const{origin:i}=t.location,s=e[e.length-1];if(i==s)return t.top.location.hostname;const n=Ui(t);return n==t||i==e[e.length-2]?ki(n.document.referrer):ki(s)}{try{return t.top.location.hostname}catch(t){}const e=Ui(t);try{return ki(e.document.referrer)}catch(t){}return null}}function Ui(t){let e=t,i=0;for(;e.parent!=e.parent.parent&&i<100;)e=e.parent,i++;return rt(e.parent==t.top),e}function Li(t,e,i){return t.ampAdPageCorrelator||(t.ampAdPageCorrelator=Qt(t,"exp-new-correlator")?Math.floor(4503599627370496*Math.random()):function(t,e){const i=Number(t||0);return e?i+e.replace(/\D/g,"")%1e6*1e6:Math.floor(4503599627370496*Math.random())}(Mt(e).pageViewId,i)),t.ampAdPageCorrelator}function $i(t,e){return{"on":t,"request":"csi","sampleSpec":{"sampleOn":"a4a-csi-${pageViewId}","threshold":1},"selector":"amp-ad","selectionMethod":"closest","extraUrlParams":e}}function Gi(t,e){const i=t.filter((t=>Number(t))).join(",");return(e=e||"")+(e&&i?",":"")+i}function zi(t){const e={};for(let i=t.parentElement,s=0;i&&s<20;i=i.parentElement,s++){const t=i.tagName.toUpperCase();yi[t]&&(e[yi[t]]=!0)}return Object.keys(e)}function Fi(t,e){if(rt(!!t&&!!e),new RegExp(`[?|&](${encodeURIComponent(Pi.name)}=${encodeURIComponent(String(Pi.value))}|aet=[^&]*)$`).test(t))return;const i=t+`&aet=${e}`;return rt(i.length<=15360),i}function Hi(t){return Ni.test(t.location.origin)}function Bi(t){let e=0;const i=t.document;t.SVGElement&&i.createElementNS&&(e|=1);const s=i.createElement("iframe");return s.sandbox&&s.sandbox.supports&&(s.sandbox.supports("allow-top-navigation-by-user-activation")&&(e|=2),s.sandbox.supports("allow-popups-to-escape-sandbox")&&(e|=4)),e}function qi(t){const e={"production":"0","control":"1","experimental":"2","rc":"3","nightly":"4","nightly-control":"5","experimentA":"10","experimentB":"11","experimentC":"12","nomod":"42","mod":"43"}[Xt(t)]||null;return Hi(t)&&"0"!=e?e:null}function Ki(t){return t?t.split(","):[]}function Wi(t){return function(t,e){return Ki(t.getAttribute(Si)).some((t=>"117152632"===t))}(t)}function Yi(t,e,i){if(!t)return;const s=e.getAttribute(i);s&&Ki(s).every((t=>!isNaN(parseInt(t,10))))?e.setAttribute(i,Gi([t],s)):e.setAttribute(i,t)}function Ji(t,e){Yi(t,e,Si)}function Xi(t,e,i,s,n){const r=[];return i(t)&&r.push({dim:"width",val:t}),s(e)&&r.push({dim:"height",val:e}),r.length,!r.length}var Qi="fixed",Zi="fixed-height",ts="responsive",es="fill",is="flex-item",ss="fluid";function ns(t){return t==Qi||t==Zi||t==ts||t==es||t==is||t==ss||"intrinsic"==t}function rs(t){const e=parseFloat(t);return v(e)?e:void 0}function os(t,e){t.classList.add("i-amphtml-fill-content"),e&&t.classList.add("i-amphtml-replaced-content")}function as(t){if("undefined"!=typeof TextDecoder)return new TextDecoder("utf-8").decode(t);const e=function(t){const e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=String.fromCharCode(t[i]);return e.join("")}(new Uint8Array(t.buffer||t));return decodeURIComponent(escape(e))}function hs(t){const e=new Uint8Array(t.length);for(let i=0;i<t.length;i++){const s=t.charCodeAt(i);R(s<=255),e[i]=s}return e}var cs=class{static getTop(t){return t.top}static getLocation(t){return t.location}static getDocumentReferrer(t){return t.document.referrer}static getHostname(t){return t.location.hostname}static getUserAgent(t){return t.navigator.userAgent}static getUserLanguage(t){return t.navigator.userLanguage||t.navigator.language}static getDevicePixelRatio(){return self.devicePixelRatio||1}static getSendBeacon(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)}static getXMLHttpRequest(t){return t.XMLHttpRequest}static getImage(t){return t.Image}},ls=class{constructor(){this.ns=[]}peek(){const t=this.length;return t?this.ns[t-1].item:null}enqueue(t,e){if(isNaN(e))throw new Error("Priority must not be NaN.");const i=this.rs(e);this.ns.splice(i,0,{item:t,priority:e})}rs(t){let e=-1,i=0,s=this.length;for(;i<=s&&(e=Math.floor((i+s)/2),e!==this.length);)if(this.ns[e].priority<t)i=e+1;else{if(!(e>0&&this.ns[e-1].priority>=t))break;s=e-1}return e}forEach(t){let e=this.length;for(;e--;)t(this.ns[e].item)}dequeue(){const t=this.ns.pop();return t?t.item:null}get length(){return this.ns.length}},ds=["gclid","gclsrc"];function us(t,e,i,s){let n;try{n=t.open(e,i,s)}catch(t){nt().error("DOM","Failed to open url on target: ",i,t)}return n||"_top"==i||("number"!=typeof o&&(o=0),!(o+"noopener".length>(r=s||"").length)&&-1!==r.indexOf("noopener",o))||(n=t.open(e,"_top")),n;var r,o}var ps="navigation",ms="click",fs="contextmenu",gs=["_top","_blank"],As="data-a4a-orig-href",_s=class{constructor(t){this.ampdoc=t,this.la=t.getRootNode(),this.Il=qt(this.ampdoc),this.yn=Ht(this.ampdoc),this.rr=xt(this.ampdoc),this.gh=kt(this.ampdoc.win),this.ca=this.gh.isIos()&&this.gh.isSafari(),this.Mu=U(this.ampdoc.win)&&this.yn.isOvertakeHistory(),this.aa=this.la!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.da="inabox"==B(this.ampdoc.win).runtime,this.fa=this.la.nodeType==Node.DOCUMENT_NODE?this.la.documentElement:this.la,this.pa=this.ma.bind(this),this.la.addEventListener(ms,this.pa),this.la.addEventListener(fs,this.pa),this._a=!1,function(t){return t.whenReady().then((()=>!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")))}(this.ampdoc).then((t=>{this._a=t})),this.Hu=!1,this.Aa=!1,Promise.all([this.yn.isTrustedViewer(),this.yn.getViewerOrigin()]).then((t=>{var e;this.Hu=t[0],this.Aa=(e=t[1],Ne.localhostRegex.test(Me(e).origin))})),this.ga=null,this.Pa=new ls,this.va=new ls}static installAnchorClickInterceptor(t,e){e.document.documentElement.addEventListener("click",Ts.bind(null,t),!0)}cleanup(){this.pa&&(this.la.removeEventListener(ms,this.pa),this.la.removeEventListener(fs,this.pa))}openWindow(t,e,i,s){let n="";!this.gh.isIos()&&this.gh.isChrome()||s||(n+="noopener");const r=us(t,e,i,n);r&&!s&&(r.opener=null)}navigateTo(t,e,i,s={}){const{opener:n=!1,target:r="_top"}=s;e=this.Ea(e);const o=Ft(this.fa);if(!o.isProtocolValid(e))return void it().error(ps,"Cannot navigate to invalid protocol: "+e);ot(gs.includes(r),`Target '${r}' not supported.`);const a=o.getSourceUrl(t.location);e=o.resolveRelativeUrl(e,a),"_blank"!=r?i&&(this.ga||(this.ga=this.Ta()),this.ga.includes(i)&&this.navigateToAmpUrl(e,i))||(t.top.location.href=e):this.openWindow(t,e,r,n)}navigateToAmpUrl(t,e){return!!this.yn.hasCapability("a2a")&&(this.yn.sendMessage("a2aNavigate",{"url":t,"requestedBy":e}),!0)}Ta(){const t=this.la.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((t=>t.trim())):[]}ma(t){if(t.defaultPrevented)return;const e=N(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");e&&e.href&&(t.type==ms?this.Ra(e,t):t.type==fs&&this.Ia(e,t))}Ra(t,e){this.Ma(t);let i=this.ya(t.href);if(this.wa(e,t,i))return;if(this.ba(e,t,i))return;const s=this.Va();Is(i)!=Is(s)&&(this.Sa(t,e),i=this.ya(t.href)),this.xa(e,t,i,s)}Ia(t,e){this.Ma(t),this.Sa(t,e)}Sa(t,e){this.Pa.forEach((i=>{i(t,e)}))}Ea(t){return this.va.forEach((e=>{t=e(t)})),t}Ma(t){let e=null;this._a&&!this.aa&&(e=function(t,e){const i=z(je(cs.getLocation(t).href).search),s=[];for(let t=0;t<ds.length;t++){const e=ds[t];void 0!==i[e]&&s.push(e)}const n=e.getAttribute("data-amp-addparams");let{href:r}=e;n&&(r=De(r,z(n)));const o=z(je(r).search);for(let t=s.length-1;t>=0;t--)void 0!==o[s[t]]&&s.splice(t,1);return function(t){let e="";for(let i=0;i<t.length;i++){const s=t[i];e+=0==i?`${s}=QUERY_PARAM(${s})`:`&${s}=QUERY_PARAM(${s})`}return e}(s)}(this.ampdoc.win,t)),$t(t).maybeExpandLink(t,e)}ba(t,e,i){if(!this.Mu)return!1;const s=w(e),n=e.href,{protocol:r}=i;if("ftp:"==r)return us(s,n,"_blank"),t.preventDefault(),!0;const o=/^(https?|mailto):$/.test(r);return!(!this.ca||o||(us(s,n,"_top"),t.preventDefault(),0))}wa(t,e,i){return!(!e.hasAttribute("rel")||!e.getAttribute("rel").split(" ").map((t=>t.trim())).includes("amphtml")||!this.navigateToAmpUrl(i.href,"<a rel=amphtml>")||(t.preventDefault(),0))}xa(t,e,i,s){const n=Is(i),r=Is(s);if(i.hash&&n==r)this.Oa(t,i,s);else{let i=(e.getAttribute("target")||"").toLowerCase();(this.aa||this.da)&&"_top"!=i&&"_blank"!=i&&(i="_blank",e.setAttribute("target",i));const{win:r}=this.ampdoc,o=kt(r),a=Ht(e);s.search&&o.isSafari()&&o.getMajorVersion()>=13&&a.isProxyOrigin()&&a.isEmbedded()&&this.Ca(r,s,i),this.viewerInterceptsNavigation(n,"intercept_click")&&t.preventDefault()}}Ca(t,e,i){const s=e.href,n=`${e.origin}${e.pathname}${e.hash}`;t.history.replaceState(null,"",n);const r=()=>{const e=t.location.href;e==n?t.history.replaceState(null,"",s):nt().error(ps,"Unexpected iframe URL change:",e,n)};"_blank"===i?t.setTimeout(r,0):t.addEventListener("pageshow",(function e(i){i.persisted&&(r(),t.removeEventListener("pageshow",e))}))}Oa(t,e,i){if(t.preventDefault(),this.aa)return;const s=e.hash.slice(1);let n=null;if(s){const t=P(s);n=this.la.getElementById(s)||this.la.querySelector(`a[name="${t}"]`)}e.hash!=i.hash?this.rr.replaceStateForTarget(e.hash).then((()=>{this.ka(n,s)})):this.ka(n,s)}registerAnchorMutator(t,e){this.Pa.enqueue(t,e)}registerNavigateToMutator(t,e){this.va.enqueue(t,e)}ka(t,e){t&&(this.Il.scrollIntoView(t),Lt(this.ampdoc.win).delay((()=>this.Il.scrollIntoView(t)),1))}ya(t){return Ft(this.fa).parse(t)}Va(){return this.ya("")}viewerInterceptsNavigation(t,e){const i=this.yn.hasCapability("interceptNavigation"),s=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!i||!s||!this.Hu&&!this.Aa||(this.yn.sendMessage("navigateTo",{"url":t,"requestedBy":e}),0))}};function Ts(t,e){const i=N(e.target,"A");if(!i||!i.href)return;const s=i.getAttribute(As)||i.getAttribute("href");if(!s)return;const n={"CLICK_X":()=>e.pageX,"CLICK_Y":()=>e.pageY},r=$t(i).expandUrlSync(s,n,{"CLICK_X":!0,"CLICK_Y":!0});r!=s&&(i.getAttribute(As)||i.setAttribute(As,s),i.setAttribute("href",r))}function Is(t){return`${t.origin}${t.pathname}${t.search}`}function vs(t){var e;return null===(e=t.featurePolicy)||void 0===e?void 0:e.allowedFeatures().includes("attribution-reporting")}function bs(t){return(e,i)=>{switch(e.getAttribute("layout")){case Qi:return t(parseInt(e.getAttribute("width"),10)||0),!0;case ts:case es:case Zi:case ss:const s=parseInt(i.maxWidth,10);if(s||0==s)return t(s),!0;break;case"container":const n=qt(e);return t(n.getSize().width),!0;case"nodisplay":case is:return t(0),!0;default:const r=(parseInt(i.paddingLeft,10)||0)+(parseInt(i.paddingRight,10)||0),o=(parseInt(i.borderLeftWidth,10)||0)+(parseInt(i.borderRightWidth,10)||0);return t((parseInt(i.width,10)||0)+r+o),!0}}}var Es={},ys=!1,Rs="expand_response",Ss="collapse_response",ws="AMP-DOUBLECLICK-SAFEFRAME";function Ps(t){const e=E(re(t));if(!e)return;const i=E(e.p)||{},s=e.e||i.sentinel,n=Es[s];n&&n.equalsSafeframeContentWindow(t.source)&&(n.channel?i&&n.processMessage(i,e.s):n.connectMessagingChannel(e.c))}var Ns=class{constructor(t,e,i){this.UB=t,this.qB=this.UB.verifyStillCurrent.bind(this.UB)(),this.i=this.UB.win,this.Y=this.UB.sentinel,this.bv=null,this.channel=null,this.KB=null,this.JB=Math.random(),this.QB=Math.random(),this.ZB=e,this.lD=i,this.Nq=a({},i),this.Hq=null,this.Il=this.UB.getViewport(),this.pD=!0,this.Kq=!1;const s=Object(E(this.UB.element.getAttribute("data-safeframe-config"))||{});this.Wq=!T(s,"expandByOverlay")||s.expandByOverlay,this.Yq=!T(s,"expandByPush")||s.expandByPush,this.xv=null,this.registerSafeframeHost()}equalsSafeframeContentWindow(t){return!!t&&t===this.UB.iframe.contentWindow}getSafeframeNameAttr(){const t={};return t.uid=this.QB,t.hostPeerName=this.i.location.origin,t.initialGeometry=this.getInitialGeometry(),t.permissions=JSON.stringify({"expandByOverlay":this.Wq,"expandByPush":this.Yq,"readCookie":!1,"writeCookie":!1}),t.metadata=JSON.stringify({"shared":{"sf_ver":this.UB.safeframeVersion,"ck_on":1,"flash_ver":"26.0.0","canonical_url":this.maybeGetCanonicalUrl(),"amp":{"canonical_url":this.maybeGetCanonicalUrl()}}}),t.reportCreativeGeometry=this.ZB,t.isDifferentSourceWindow=!1,t.sentinel=this.Y,t}maybeGetCanonicalUrl(){const t=this.UB.getAmpDoc(),{canonicalUrl:e}=Mt(t),i=t.getMetaByName("referrer");if(!i)return e;switch(i){case"same-origin":case"no-referrer":return;case"origin":return je(e).origin}return e}getInitialGeometry(){const t=mi(this.UB.element),e=(t.height-this.lD.height)/2,i=(t.width-this.lD.width)/2,s={top:t.top+e,bottom:t.bottom-e,left:t.left+i,right:t.right-i,height:this.Nq.height,width:this.Nq.width};return this.Jq(s)}registerSafeframeHost(){rt(this.Y),Es[this.Y]=Es[this.Y]||this,ys||(ys=!0,this.i.addEventListener("message",Ps,!1))}connectMessagingChannel(t){rt(this.UB.iframe),this.bv=this.UB.iframe,this.channel=t,this.Xq(),this.I({"message":"connect","c":this.channel},"")}Xq(){rt(this.bv.contentWindow);const t=Z(this.i,this.Qq.bind(this),1e3),e=this.Il.onScroll(t),i=this.Il.onChanged(t);this.xv=()=>{e(),i()},this.Qq()}Qq(){this.bv&&this.Il.getClientRectAsync(this.bv).then((t=>{this.qB();const e=this.Jq(t);this.I({newGeometry:e,uid:this.QB},"geometry_update")})).catch((t=>nt().error(ws,t)))}Jq(t){const e=this.Il.getSize(),i=this.Il.getScrollLeft(),s=this.Il.getScrollTop(),n={"windowCoords_t":0,"windowCoords_r":e.width,"windowCoords_b":e.height,"windowCoords_l":0,"frameCoords_t":t.top+s,"frameCoords_r":t.right+i,"frameCoords_b":t.bottom+s,"frameCoords_l":t.left+i,"posCoords_t":t.top,"posCoords_b":t.bottom,"posCoords_r":t.right,"posCoords_l":t.left,"styleZIndex":_e(this.UB.element,"zIndex"),"allowedExpansion_r":e.width-t.width,"allowedExpansion_b":e.height-t.height,"allowedExpansion_t":0,"allowedExpansion_l":0,"yInView":this.getPercInView(e.height,t.top,t.bottom),"xInView":this.getPercInView(e.width,t.left,t.right)};return this.KB=n,JSON.stringify(n)}getPercInView(t,e,i){const s=(i>=t?t-e:i)/(i-e);return Math.max(0,Math.min(1,s))||0}I(t,e){if(!this.bv||!this.bv.contentWindow)return void nt().expectedError(ws,"Frame contentWindow unavailable.");const i={};i.c=this.channel,i.p=JSON.stringify(t),i.s=e,i.e=this.Y,i.i=this.JB,this.bv.contentWindow.postMessage(JSON.stringify(i),"*")}processMessage(t,e){switch(e){case"creative_geometry_update":this.Zq(t);break;case"expand_request":this.aK(t);break;case"register_done":this.Kq=!0;break;case"collapse_request":this.lK();break;case"resize_request":this.dK(t)}}aK(t){if(!this.Kq)return;const e=Number(this.lD.height)+t.expand_b+t.expand_t,i=Number(this.lD.width)+t.expand_r+t.expand_l;if(isNaN(e)||isNaN(i)||t.push&&!this.Yq||!t.push&&!this.Wq&&(i>this.lD.width||e>this.lD.height))return nt().error(ws,"Invalid expand values."),void this.sendResizeResponse(!1,Rs);e>this.Il.getSize().height||i>this.Il.getSize().width?this.sendResizeResponse(!1,Rs):this.handleSizeChange(e,i,Rs)}lK(){!this.pD&&this.Kq?this.handleSizeChange(this.Nq.height,this.Nq.width,Ss,!0):this.sendResizeResponse(!1,Ss)}resizeSafeframe(t,e,i){this.pD=i==Ss,this.UB.measureMutateElement((()=>{this.UB.getResource().measure()}),(()=>{this.bv&&(Te(this.bv,{"height":t+"px","width":e+"px"}),this.lD.height=t,this.lD.width=e),this.sendResizeResponse(!0,i)}),this.bv)}handleSizeChange(t,e,i,s){return this.Il.getClientRectAsync(this.UB.element).then((n=>{!s&&e<=n.width&&t<=n.height?this.resizeSafeframe(t,e,i):this.resizeAmpAdAndSafeframe(t,e,i,s)}))}dK(t){if(!this.Kq)return;const e=Number(this.lD.height)+(t.resize_b+t.resize_t),i=Number(this.lD.width)+(t.resize_r+t.resize_l);isNaN(i)||isNaN(e)?nt().error(ws,"Invalid resize values."):this.resizeAmpAdAndSafeframe(e,i,"resize_response",!0)}sendResizeResponse(t,e){this.bv&&this.Il.getClientRectAsync(this.bv).then((i=>{this.qB();const s=this.Jq(i);this.I({uid:this.QB,success:t,newGeometry:s,"expand_t":this.KB.allowedExpansion_t,"expand_b":this.KB.allowedExpansion_b,"expand_r":this.KB.allowedExpansion_r,"expand_l":this.KB.allowedExpansion_l,push:!0},e)})).catch((t=>nt().error(ws,t)))}resizeAmpAdAndSafeframe(t,e,i,s){this.UB.attemptChangeSize(t,e).then((()=>{this.qB(),this.resizeSafeframe(t,e,i)}),(()=>{this.UB.getResource().resetPendingChangeSize(),s?this.resizeSafeframe(t,e,i):this.sendResizeResponse(!1,i)})).catch((t=>{"CANCELLED"!=t.message?(nt().error(ws,`Resizing failed: ${t}`),this.sendResizeResponse(!1,i)):nt().error(ws,t)}))}Zq(t){let e;t&&(e=parseInt(t.height,10))&&this.UB.attemptChangeHeight(e).then((()=>{this.qB(),this.uK(e)})).catch((t=>{const{height:e,width:i}=this.UB.getSlotSize();i&&e&&this.uK(e)}))}uK(t){const e=this.UB.iframe;(parseInt(_e(e,"height"),10)||0)!=t&&Te(e,{height:`${t}px`}),this.UB.fireFluidDelayedImpression(),this.bv.contentWindow&&this.bv.contentWindow.postMessage(JSON.stringify({"message":"resize-complete","c":this.channel}),"*")}destroy(){this.bv=null,delete Es[this.Y],this.xv&&this.xv(),0==Object.keys(Es).length&&(window.removeEventListener("message",Ps,!1),ys=!1)}},Cs={"google":"https://cdn.ampproject.org/amp-ad-verifying-keyset.json","google-dev":"https://cdn.ampproject.org/amp-ad-verifying-keyset-dev.json"};function Os(t,e,i={}){const{needsRootBounds:s,rootMargin:n,threshold:r}=i,o=U(e)&&(s||n)?e.document:void 0;return new e.IntersectionObserver(t,{threshold:r,root:o,rootMargin:n})}var Ms=new WeakMap,js=new WeakMap;function xs(t){const e=new Set;for(let i=t.length-1;i>=0;i--){const s=t[i],{target:n}=s;if(e.has(n))continue;e.add(n);const r=js.get(n);if(r)for(let t=0;t<r.length;t++)(0,r[t])(s)}}function Ds(t){return{"time":t.time,"rootBounds":ks(t.rootBounds),"boundingClientRect":ks(t.boundingClientRect),"intersectionRect":ks(t.intersectionRect),"intersectionRatio":t.intersectionRatio}}function ks(t){return null===t?null:function(t){return ui(Number(t.left),Number(t.top),Number(t.width),Number(t.height))}(t)}var Vs="Expander",Us=class{constructor(t,e,i,s,n,r){this.Cr=t,this.kr=e,this.Nr=i,this.Dr=s,this.Lr=n,this.Ur=!r}expand(t){if(!t.length)return this.Dr?t:Promise.resolve(t);const e=this.Cr.getExpr(this.kr,this.Lr),i=this.$r(t,e);return i.length?this.Fr(t,i):this.Dr?t:Promise.resolve(t)}getMacroNames(t){const e=this.Cr.getExpr(this.kr,this.Lr);return t.match(e)||[]}$r(t,e){const i=[];return t.replace(e,((t,e,s)=>{const{length:n}=t,r={start:s,stop:n+s-1,name:e,length:n};i.push(r)})),i}Fr(t,e){const i=[];let s=0,n=0,r=e[n],o=0,h=!1;const c=l=>{let d="",u=[];const p=[];for(;s<t.length&&n<=e.length;){const f=d.trim();if(r&&s===r.start){let h;f&&u.push(o?(m=d).trimStart?m.trimStart():(m+"_").trim().slice(0,-1):d),h=this.kr&&T(this.kr,r.name)?{name:r.name,prioritized:this.kr[r.name],encode:l}:a(a({},this.Cr.get(r.name)),{},{name:r.name,encode:l}),s=r.stop+1,r=e[++n],"("===t[s]?(s++,o++,i.push(h),u.push(c(!1))):u.push(this.Br(h)),d=""}else if("`"===t[s])h?(h=!1,d.length&&u.push(d)):(h=!0,f&&u.push(f)),d="",s++;else if(o&&","===t[s]&&!h)f&&u.push(f),p.push(u),u=[],","===t[s+1]&&(p.push([""]),s++),d="",s++;else{if(o&&")"===t[s]&&!h){s++,o--;const t=i.pop();return f&&u.push(f),p.push(u),this.Br(t,p)}d+=t[s],s++}s===t.length&&d.length&&u.push(d)}var m;return this.Dr?u.join(""):Promise.all(u).then((t=>t.join(""))).catch((t=>(Q(t),"")))};return c(this.Ur)}Br(t,e){const{encode:i,name:s}=t;let n;if(null!=t.prioritized?n=t.prioritized:this.Dr&&null!=t.sync?n=t.sync:this.Dr?(it().error(Vs,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.Dr){const t=this.Hr(n,s,e);return i?encodeURIComponent(t):t}return this.jr(n,s,e).then((t=>i?encodeURIComponent(t):t))}jr(t,e,i){let s;try{if("function"==typeof t){const e=t;s=i?this.zr(i).then((t=>e.apply(null,t))):n(e)}else s=Promise.resolve(t);return s.then((t=>{let s;return this.Gr(e,t,i),s=null==t?"":t,s})).catch((t=>(Q(t),this.Gr(e,"",i),Promise.resolve(""))))}catch(t){return Q(t),this.Gr(e,"",i),Promise.resolve("")}}zr(t){return Promise.all(t.map((t=>Promise.all(t).then((t=>t.join(""))))))}Hr(t,e,i){try{let s,n=t;return"function"==typeof t&&(n=t.apply(null,this.qr(i))),n&&"function"==typeof n.then?(it().error(Vs,"ignoring async macro resolution"),s=""):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(this.Gr(e,n,i),s=n.toString()):(this.Gr(e,"",i),s=""),s}catch(t){return Q(t),this.Gr(e,"",i),""}}qr(t){return t?t.map((t=>t.join(""))):t}Gr(t,e,i){if(!this.Nr)return;let s="";i&&(s=`(${i.filter((t=>""!==t)).join(",")})`),this.Nr[`${t}${s}`]=e||""}},Ls=t=>Promise.resolve(t()),$s=["AMPDOC_HOST","AMPDOC_HOSTNAME","AMPDOC_URL","AMP_VERSION","AVAILABLE_SCREEN_HEIGHT","AVAILABLE_SCREEN_WIDTH","BACKGROUND_STATE","BROWSER_LANGUAGE","CANONICAL_HOST","CANONICAL_HOSTNAME","CANONICAL_PATH","CANONICAL_URL","COUNTER","DOCUMENT_CHARSET","DOCUMENT_REFERRER","PAGE_VIEW_ID","RANDOM","SCREEN_COLOR_DEPTH","SCREEN_HEIGHT","SCREEN_WIDTH","SCROLL_HEIGHT","SCROLL_WIDTH","SOURCE_HOST","SOURCE_HOSTNAME","SOURCE_PATH","SOURCE_URL","TIMESTAMP","TIMEZONE","TITLE","TOTAL_ENGAGED_TIME","USER_AGENT","VARIANT","VARIANTS","VIEWER","VIEWPORT_HEIGHT","VIEWPORT_WIDTH"];function Gs(t){const e=[],{extensions:i}=t;if(!i||!l(i))return e;for(let t=0;t<i.length;t++){const s=W(i[t].src);s&&e.push(s)}return e}var zs="visible",Fs="paused",Hs=class{constructor(){this.yt=new Bs}abort(){if(!this.yt.Ot&&(this.yt.Ot=!0,this.yt.jt)){const t={"type":"abort","bubbles":!1,"cancelable":!1,"target":this.yt,"currentTarget":this.yt};this.yt.jt(t)}}get signal(){return this.yt}},Bs=class{constructor(){this.Ot=!1,this.jt=null}get aborted(){return this.Ot}get onabort(){return this.jt}set onabort(t){this.jt=t}},qs="Resource",Ks=class t{static forElement(e){return rt(t.forElementOptional(e))}static forElementOptional(t){return t.__AMP__RESOURCE}static setOwner(e,i){rt(i.contains(e)),t.forElementOptional(e)&&t.forElementOptional(e).updateOwner(i),e.__AMP__OWNER=i;const s=e.getElementsByClassName("i-amphtml-element");for(let e=0;e<s.length;e++){const i=s[e];t.forElementOptional(i)&&t.forElementOptional(i).updateOwner(void 0)}}constructor(t,e,i){e.__AMP__RESOURCE=this,this.Ei=t,this.element=e,this.debugid=e.tagName.toLowerCase()+"#"+t,this.hostWin=e.ownerDocument.defaultView,this.Ti=i,this.Ri=e.hasAttribute("placeholder"),this.Ii=!1,this.Mi=void 0,this.yi=e.isBuilt()?1:0,0==this.yi&&e.isBuilding()&&this.build(),this.wi=-1,this.bi=0,this.Vi=null,this.Si=null,this.xi=!1,this.Oi=ui(-1e4,-1e4,0,0),this.Ci=null,this.ki=!1,this.Ni=null,this.Di=null,this.Li=void 0;const n=new s;this.Ui=n.promise,this.$i=n.resolve,this.Fi=!1}getId(){return this.Ei}updateOwner(t){this.Mi=t}getOwner(){if(void 0===this.Mi){for(let t=this.element;t;t=t.parentElement)if(t.__AMP__OWNER){this.Mi=t.__AMP__OWNER;break}void 0===this.Mi&&(this.Mi=null)}return this.Mi}hasOwner(){return!!this.getOwner()}getLayoutPriority(){return-1!=this.wi?this.wi:this.element.getLayoutPriority()}updateLayoutPriority(t){this.wi=t}getState(){return this.yi}isBuilt(){return this.element.isBuilt()}isBuilding(){return this.Ii}whenBuilt(){return this.element.signals().whenSignal("res-built")}build(){return this.Ii||!this.element.isUpgraded()?null:(this.Ii=!0,this.element.buildInternal().then((()=>{this.Ii=!1,this.yi=1,this.element.signals().signal("res-built")}),(t=>{throw this.maybeReportErrorOnBuildFailure(t),this.Ii=!1,this.element.signals().rejectSignal("res-built",t),t})))}maybeReportErrorOnBuildFailure(t){var e;(e=t)&&("string"==typeof e?e.startsWith(qe):"string"==typeof e.message&&e.message.startsWith(qe))||nt().error(qs,"failed to build:",this.debugid,t)}changeSize(t,e,i){this.element.applySize(t,e,i),this.requestMeasure()}overflowCallback(t,e,i,s){t&&(this.Li={height:e,width:i,margins:s}),this.element.overflowCallback(t,e,i,s)}resetPendingChangeSize(){this.Li=void 0}getPendingChangeSize(){return this.Li}getUpgradeDelayMs(){return this.element.getUpgradeDelayMs()}measure(){if(this.Ri&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-")&&!("__AMP__RESOURCE"in this.element.parentElement))return;if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return void(this.yi=1);this.ki=!1;const t=this.Oi;this.Bi();const e=this.Oi,i=(n=e,!((s=t).width==n.width&&s.height===n.height));var s,n;(1==this.yi||t.top!=e.top||i)&&this.element.isUpgraded()&&(1==this.yi?this.yi=2:4!=this.yi&&5!=this.yi||!this.element.isRelayoutNeeded()||(this.yi=2)),this.hasBeenMeasured()||(this.Ci=e),this.element.updateLayoutBox(e,i)}ensureMeasured(){return this.hasBeenMeasured()?i():Bt(this.hostWin).measure((()=>this.measure()))}Bi(){const t=qt(this.element);this.Oi=t.getLayoutRect(this.element);let e=!1;if(t.supportsPositionFixed()&&this.isDisplayed()){const{win:i}=this.Ti.getAmpdoc(),{body:s}=i.document;for(let n=this.element;n&&n!=s;n=n.offsetParent){if(n.isAlwaysFixed&&n.isAlwaysFixed()){e=!0;break}if(t.isDeclaredFixed(n)&&"fixed"==be(i,n).position){e=!0;break}}}this.xi=e,e&&(this.Oi=pi(this.Oi,-t.getScrollLeft(),-t.getScrollTop()))}completeCollapse(){Ie(this.element,!1),this.Oi=ui(this.Oi.left,this.Oi.top,0,0),this.xi=!1,this.element.updateLayoutBox(this.getLayoutBox());const t=this.getOwner();t&&t.collapsedCallback(this.element)}completeExpand(){Ie(this.element,!0),this.requestMeasure()}isMeasureRequested(){return this.ki}hasBeenMeasured(){return!!this.Ci}requestMeasure(){this.ki=!0}getLayoutSize(){return function(t){const{height:e,width:i}=t;return{width:i,height:e}}(this.Oi)}getLayoutBox(){if(!this.xi)return this.Oi;const t=qt(this.element);return pi(this.Oi,t.getScrollLeft(),t.getScrollTop())}getInitialLayoutBox(){return this.Ci||this.Oi}isDisplayed(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;const t=this.element.getLayout()==ss,e=this.getLayoutBox(),i=e.height>0&&e.width>0;return t||i}isFixed(){return this.xi}overlaps(t){return i=t,(e=this.getLayoutBox()).top<=i.bottom&&i.top<=e.bottom&&e.left<=i.right&&i.left<=e.right;var e,i}prerenderAllowed(){return this.element.prerenderAllowed()}previewAllowed(){return this.element.previewAllowed()}isBuildRenderBlocking(){return this.element.isBuildRenderBlocking()}whenWithinViewport(t){if(rt(!1!==t),!this.isLayoutPending()||!0===t)return i();const e=t,n=String(e);return this.Ni&&this.Ni[n]?this.Ni[n].promise:this.isWithinViewportRatio(e)?i():(this.Ni=this.Ni||{},this.Ni[n]=new s,this.Ni[n].promise)}Hi(){if(!this.Ni)return;const t=this.getDistanceViewportRatio();for(const e in this.Ni)this.isWithinViewportRatio(parseFloat(e),t)&&(this.Ni[e].resolve(),delete this.Ni[e])}getDistanceViewportRatio(){const t=qt(this.element).getRect(),e=this.getLayoutBox(),i=this.Ti.getScrollDirection();let s=1,n=0;if(t.right<e.left||t.left>e.right)return{distance:!1};if(t.bottom<e.top)n=e.top-t.bottom,-1==i&&(s=2);else{if(!(t.top>e.bottom))return{distance:!0};n=t.top-e.bottom,1==i&&(s=2)}return{distance:n,scrollPenalty:s,viewportHeight:t.height}}isWithinViewportRatio(t,e){if("boolean"==typeof t)return t;const{distance:i,scrollPenalty:s,viewportHeight:n}=e||this.getDistanceViewportRatio();return"boolean"==typeof i?i:i<n*t/s}renderOutsideViewport(){return this.Hi(),this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())}idleRenderOutsideViewport(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())}layoutScheduled(t){this.yi=3,this.element.layoutScheduleTime=t}layoutCanceled(){this.yi=this.hasBeenMeasured()?2:1}startLayout(){if(this.Di)return this.Di;if(4==this.yi)return i();if(5==this.yi)return Promise.reject(this.Si);if(rt(0!=this.yi),rt(this.isDisplayed()),3!=this.yi){const t=nt().createExpectedError("startLayout called but not LAYOUT_SCHEDULED","currently: ",this.yi);return Ye(t,this.element),Promise.reject(t)}if(this.bi>0&&!this.element.isRelayoutNeeded())return this.yi=4,i();this.bi++,this.yi=3,this.Vi=new AbortController;const{signal:t}=this.Vi,e=new Promise(((e,i)=>{Bt(this.hostWin).mutate((()=>{let s;try{s=this.element.layoutCallback(t)}catch(t){i(t)}Promise.resolve(s).then(e,i)})),t.onabort=()=>i(Je())})).then((()=>this.ji(!0,t)),(e=>this.ji(!1,t,e)));return this.Di=e}ji(t,e,i){if(this.Vi=null,e.aborted){const t=nt().createError("layoutComplete race");throw t.associatedElement=this.element,nt().expectedError(qs,t),Je()}if(this.$i&&(this.$i(),this.$i=null),this.Di=null,this.yi=t?4:5,this.Si=i,!t)return Promise.reject(i)}isLayoutPending(){return 4!=this.yi&&5!=this.yi}loadedOnce(){return this.element.R1()?this.element.whenLoaded():this.Ui}isInViewport(){return this.Fi&&this.Hi(),this.Fi}setInViewport(t){this.Fi=t}unlayout(){0!=this.yi&&1!=this.yi&&2!=this.yi&&(this.Vi&&(this.Vi.abort(),this.Vi=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.yi=1,this.bi=0,this.Di=null))}getTaskId(t){return this.debugid+"#"+t}pause(){this.element.pause()}pauseOnRemove(){this.element.pause()}resume(){this.element.resume()}unload(){this.element.unmount()}disconnect(){delete this.element.__AMP__RESOURCE,this.element.disconnect(!0)}},Ws=/nochunking=1/.test(self.location.hash),Ys=i();var Js="not_run",Xs=class{constructor(t){this.state=Js,this.os=t}us(t){if("run"!=this.state){this.state="run";try{this.os(t)}catch(t){throw this.ls(t),t}}}cs(){return this.os.displayName||this.os.name}ls(t){}ds(){return!1}fs(){return!1}},Qs=class extends Xs{constructor(t,e,i){super(t),this.ps=i}ls(t){we(self.document)}ds(){return this._s()}fs(){return this.ps.As}_s(){return this.ps.ampdoc.isVisible()}},Zs=class{constructor(t){var e;this.ampdoc=t,this.i=t.win,this.gs=new ls,this.Ps=this.vs.bind(this),this.Es=0,this.Ts=!(!this.i.navigator.scheduling||!this.i.navigator.scheduling.isInputPending),this.Rs=!1,this.hs=this.i.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.i.addEventListener("message",(t=>{"amp-macro-task"==re(t)&&this.vs(null)})),this.As=!1,(e=t,dt(e,"viewer")).then((()=>{this.As=!0})),t.onVisibilityChanged((()=>{t.isVisible()&&this.Is()}))}run(t,e){const i=new Xs(t);this.Ms(i,e)}runForStartup(t){const e=new Qs(t,this.i,this);this.Ms(e,Number.POSITIVE_INFINITY)}Ms(t,e){this.gs.enqueue(t,e),this.Is()}ys(t){let e=this.gs.peek();for(;e&&e.state!==Js;)this.gs.dequeue(),e=this.gs.peek();return e&&t&&this.gs.dequeue(),e}vs(t){const e=this.ys(!0);if(!e)return this.Rs=!1,this.Es=0,!1;let i;try{i=Date.now(),e.us(t)}finally{Ys.then().then().then().then().then().then().then().then().then((()=>{this.Rs=!1,this.Es+=Date.now()-i,this.Is()}))}return!0}ws(t){if(this.hs&&(this.Ts?this.i.navigator.scheduling.isInputPending():this.Es>5))return this.Es=0,void this.bs();Ys.then((()=>{this.Ps(t)}))}Is(){if(this.Rs)return;const t=this.ys();return t?t.ds()?(this.Rs=!0,void this.ws(null)):void(t.fs()&&this.i.requestIdleCallback?function(t,e,i,s){const n=Date.now();t.requestIdleCallback((function e(i){if(i.timeRemaining()<15){const r=2e3-(Date.now()-n);r<=0||i.didTimeout?s(i):t.requestIdleCallback(e,{timeout:r})}else s(i)}),{timeout:2e3})}(this.i,0,0,this.Ps):this.bs()):void 0}bs(){this.i.postMessage("amp-macro-task","*")}},tn="activate";Date.now();var en=class{constructor(){this.ut=null}add(t){return this.ut||(this.ut=[]),this.ut.push(t),()=>{this.remove(t)}}remove(t){this.ut&&d(this.ut,t)}removeAll(){this.ut&&(this.ut.length=0)}fire(t){if(this.ut)for(const e of this.ut.slice())e(t)}getHandlerCount(){var t,e;return null!==(t=null===(e=this.ut)||void 0===e?void 0:e.length)&&void 0!==t?t:0}},sn="Action",nn="__AMP_ACTION_MAP__"+Math.random(),rn="__AMP_ACTION_QUEUE__",on="__AMP_ACTION_HANDLER__",an={"form":["submit","clear"]},hn=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],cn={"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},ln=class{constructor(t,e,i,s,n,r,o,a="?",h=null,c=Math.random()){this.node=t,this.method=e,this.args=i,this.source=s,this.caller=n,this.event=r,this.trust=o,this.actionEventType=a,this.tagOrTarget=h||t.tagName,this.sequenceId=c}satisfiesTrust(t){if(!v(this.trust))return nt().error(sn,`Invalid trust for '${this.method}': ${this.trust}`),!1;if(this.trust<t){const t=function(t){switch(t){case 1:return"low";case 3:return"high";default:return R(2===t),"default"}}(this.trust);return it().error(sn,`"${this.actionEventType}" event with "${t}" trust is not allowed to invoke "${this.tagOrTarget.toLowerCase()}.${this.method}".`),!1}return!0}};function dn(t){return"amp-"===t.substring(0,4)}var un=class{constructor(t){this.detail=null,function(t,e){const i=e||_();for(const e in t){const s=t[e];i[e]="function"==typeof s?pn:t[e]}}(t,this)}};function pn(){rt(null)}function mn(t,e){const i=gn.bind(null,t,e),s=An.bind(null,t,e);let n=null;const r=new In(t);let o,a;do{if(o=r.next(),o.type==_n.EOF||o.type==_n.SEPARATOR&&";"==o.value);else if(o.type==_n.LITERAL||o.type==_n.ID){const e=o.value;s(r.next(),[_n.SEPARATOR],":");const h=[];do{const n=s(r.next(),[_n.LITERAL,_n.ID]).value;let o=tn,c=null;a=r.peek(),a.type==_n.SEPARATOR&&"."==a.value&&(r.next(),o=s(r.next(),[_n.LITERAL,_n.ID]).value||o,a=r.peek(),a.type==_n.SEPARATOR&&"("==a.value&&(r.next(),c=fn(r,s,i))),h.push({event:e,target:n,method:o,args:c,str:t}),a=r.peek()}while(a.type==_n.SEPARATOR&&","==a.value&&r.next());n||(n=_()),n[e]=h}else i(!1,`; unexpected token [${o.value||""}]`)}while(o.type!=_n.EOF);return n}function fn(t,e,i){let s,n=t.peek(),r=null;if(n.type==_n.OBJECT){r=_();const{value:i}=t.next();r.__AMP_OBJECT_STRING__=i,e(t.next(),[_n.SEPARATOR],")")}else do{s=t.next();const{type:a,value:h}=s;if(a!=_n.SEPARATOR||","!=h&&")"!=h)if(a==_n.LITERAL||a==_n.ID){e(t.next(),[_n.SEPARATOR],"="),s=e(t.next(!0),[_n.LITERAL,_n.ID]);const a=[s];if(s.type==_n.ID)for(n=t.peek();n.type==_n.SEPARATOR&&"."==n.value;n=t.peek())t.next(),s=e(t.next(!1),[_n.ID]),a.push(s);const c=0==(o=a).length?null:1==o.length?o[0].value:{expression:o.map((t=>t.value)).join(".")};r||(r=_()),r[h]=c,n=t.peek(),i(n.type==_n.SEPARATOR&&(","==n.value||")"==n.value),"Expected either [,] or [)]")}else i(!1,`; unexpected token [${s.value||""}]`)}while(s.type!=_n.SEPARATOR||")"!=s.value);var o;return r}function gn(t,e,i,s){return ot(i,"Invalid action definition in %s: [%s] %s",e,t,s||"")}function An(t,e,i,s,n){return void 0!==n?gn(t,e,s.includes(i.type)&&i.value==n,`; expected [${n}]`):gn(t,e,s.includes(i.type)),i}var _n={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},Tn=" \t\n\r\f\v \u2028\u2029",In=class{constructor(t){this.An=t,this.gn=-1}next(t){const e=this.Pn(t||!1);return this.gn=e.index,e}peek(t){return this.Pn(t||!1)}Pn(t){let e=this.gn+1;if(e>=this.An.length)return{type:_n.EOF,index:this.gn};let i=this.An.charAt(e);if(-1!=Tn.indexOf(i)){for(e++;e<this.An.length&&-1!=Tn.indexOf(this.An.charAt(e));e++);if(e>=this.An.length)return{type:_n.EOF,index:e};i=this.An.charAt(e)}if(t&&(vn(i)||"."==i&&e+1<this.An.length&&vn(this.An[e+1]))){let t="."==i,s=e+1;for(;s<this.An.length;s++){const e=this.An.charAt(s);if("."!=e){if(!vn(e))break}else t=!0}const n=this.An.substring(e,s),r=t?parseFloat(n):parseInt(n,10);return e=s-1,{type:_n.LITERAL,value:r,index:e}}if(-1!=";:.()=,|!".indexOf(i))return{type:_n.SEPARATOR,value:i,index:e};if(-1!="\"'".indexOf(i)){let t=-1;for(let s=e+1;s<this.An.length;s++)if(this.An.charAt(s)==i){t=s;break}if(-1==t)return{type:_n.INVALID,index:e};const s=this.An.substring(e+1,t);return e=t,{type:_n.LITERAL,value:s,index:e}}if("{"==i){let t=1,i=-1;for(let s=e+1;s<this.An.length;s++){const e=this.An[s];if("{"==e?t++:"}"==e&&t--,t<=0){i=s;break}}if(-1==i)return{type:_n.INVALID,index:e};const s=this.An.substring(e,i+1);return e=i,{type:_n.OBJECT,value:s,index:e}}let s=e+1;for(;s<this.An.length&&-1==" \t\n\r\f\v \u2028\u2029;:.()=,|!\"'{}".indexOf(this.An.charAt(s));s++);const n=this.An.substring(e,s);if(e=s-1,t&&("true"==n||"false"==n)){const t="true"==n;return{type:_n.LITERAL,value:t,index:e}}return vn(n.charAt(0))?{type:_n.LITERAL,value:n,index:e}:{type:_n.ID,value:n,index:e}}};function vn(t){return t>="0"&&t<="9"}var bn={attributes:!0,attributeFilter:["hidden"],subtree:!0};function En(t){return l(t)?t:[t]}function yn(t){return t.queryCommandSupported("copy")}function Rn(t){return t.hasAttribute("hidden")}var Sn="STANDARD-ACTIONS",wn=/^i-amphtml-/;function Pn(t){at(t,"standard-actions",class{constructor(t){this.ampdoc=t;const e=t.getHeadNode();this.qc=Dt(t),this.Il=qt(t),this.Wc(St(e)),this.Kc()}Wc(t){t.addGlobalTarget("AMP",this.Yc.bind(this)),t.addGlobalMethodHandler("hide",this.Jc.bind(this)),t.addGlobalMethodHandler("show",this.Qc.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.Xc.bind(this)),t.addGlobalMethodHandler("scrollTo",this.Zc.bind(this)),t.addGlobalMethodHandler("focus",this.ta.bind(this)),t.addGlobalMethodHandler("toggleClass",this.ia.bind(this)),t.addGlobalMethodHandler("copy",this.sa.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.ea.bind(this))}Kc(){this.na()&&this.ampdoc.waitForBodyOpen().then((t=>{const e=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(e)}))}na(){var t,e;try{const t=this.ampdoc.win.localStorage.getItem("amp-dark-mode");if(t)return"yes"===t}catch(t){}return null===(t=(e=this.ampdoc.win).matchMedia)||void 0===t?void 0:t.call(e,"(prefers-color-scheme: dark)").matches}Yc(t){if(!t.satisfiesTrust(2))return null;const{args:e,method:i,node:s}=t,n=w(s);switch(i){case"pushState":case"setState":return(t=>Rt(t,"bind","amp-bind"))(s.nodeType===Node.DOCUMENT_NODE?s.documentElement:s).then((e=>(ot(e,"AMP-BIND is not installed."),e.invoke(t))));case"navigateTo":return this.ra(t);case"closeOrNavigateTo":return this.ha(t);case"scrollTo":return ot(e.id,"AMP.scrollTo must provide element ID"),t.node=mt(s).getElementById(e.id),this.Zc(t);case"goBack":return xt(this.ampdoc).goBack(!(!e||!0!==e.navigate)),null;case"print":return n.print(),null;case"copy":return this.sa(t);case"optoutOfCid":return Ct(this.ampdoc).then((t=>t.optOut())).catch((t=>{nt().error(Sn,"Failed to opt out of CID",t)}));case"toggleTheme":return this.oa(),null}throw it().createError("Unknown AMP action ",i)}sa(t){const{args:e,node:i}=t,s=w(i),n="copy-error";let r;if("AMP"===t.tagOrTarget)r=e.text.trim();else{var o;const e=S(t.node);r=(null!==(o=e.value)&&void 0!==o?o:e.textContent).trim()}const a=function(t,e,i){const n=function(t,e,i,s){const n={detail:i};return Object.assign(n,void 0),new t.CustomEvent(e,n)}(s,`${t}`,{data:{type:e}});St(i.caller).trigger(i.caller,t,n,3)};var h,c,l;null!==(c=(h=s.document).defaultView)&&void 0!==c&&null!==(l=c.navigator)&&void 0!==l&&l.clipboard||yn(h)?function(t,e,i,s){var n;null!==(n=t.navigator)&&void 0!==n&&n.clipboard?t.navigator.clipboard.writeText(e).then(i,s):yn(t.document)&&function(t,e){var i;let s=!1;const n=t.document,r=n.createElement("textarea");Te(r,{"position":"fixed","top":0,"left":0,"width":"50px","height":"50px","padding":0,"border":"none","outline":"none","background":"transparent"}),r.value=e,r.readOnly=!0,r.contentEditable="true",n.body.appendChild(r),null===(i=t.getSelection())||void 0===i||i.removeAllRanges(),r.focus(),r.setSelectionRange(0,e.length);try{s=n.execCommand("copy")}catch(t){}return M(r),s}(t,e)?i():s()}(s,r,(()=>{a("copy-success","success",t)}),(()=>{a(n,"error",t)})):a(n,"unsupported",t)}ra(t){const{args:e,caller:s,method:n,node:r}=t,o=w(r);let a=i();return s.tagName.startsWith("AMP-")&&(a=s.getImpl().then((t=>{"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),a.then((()=>{var t;(t=this.ampdoc,ct(t,"navigation")).navigateTo(o,e.url,`AMP.${n}`,{target:e.target,opener:e.opener})}),(t=>{it().error(Sn,t)}))}oa(){this.ampdoc.waitForBodyOpen().then((t=>{try{const e=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";this.na()?(t.classList.remove(e),this.ampdoc.win.localStorage.setItem("amp-dark-mode","no")):(t.classList.add(e),this.ampdoc.win.localStorage.setItem("amp-dark-mode","yes"))}catch(t){}}))}ha(t){const{node:e}=t,s=w(e),n=s.parent!=s;let r=!1;return s.opener&&this.ampdoc.isSingleDoc()&&!n&&(s.close(),r=s.closed),r?i():this.ra(t)}Zc(t){const e=t.node,{args:i}=t;let s=i&&i.position,n=i&&i.duration;return s&&!["top","bottom","center"].includes(s)&&(s=void 0),v(n)||(n=void 0),this.Il.animateScrollIntoView(e,s,n)}ta(t){return V(t.node),null}Jc(t){const e=t.node;if(e.classList.contains("i-amphtml-element")){const t=e;this.qc.mutateElement(t,(()=>t.collapse()),!0)}else this.qc.mutateElement(e,(()=>Ie(e,!1)));return null}Qc(t){const{node:e}=t,i=e,s=w(i);if(i.classList.contains("i-amphtml-layout-nodisplay"))return null;this.qc.measureElement((()=>{"none"==be(s,i).display&&Rn(i)}));const n=(r=i).hasAttribute("autofocus")?r:r.querySelector("[autofocus]");var r;return n&&kt(s).isIos()?(this.ua(i,n),this.qc.mutateElement(i,(()=>{}))):this.qc.mutateElement(i,(()=>{this.ua(i,n)})),null}ua(t,e){t.classList.contains("i-amphtml-element")?t.expand():Ie(t,!0),e&&V(e)}Xc(t){return Rn(t.node)?this.Qc(t):this.Jc(t)}ia(t){const e=t.node,{args:i}=t,s=it().assertString(i.class,"Argument 'class' must be a string.");return wn.test(s)||this.qc.mutateElement(e,(()=>{if(void 0!==i.force){const t=it().assertBoolean(i.force,"Optional argument 'force' must be a boolean.");e.classList.toggle(s,t)}else e.classList.toggle(s)})),null}ea(t){const e=t.node,{args:i}=t;return this.qc.mutateElement(e,(()=>{if(void 0!==(null==i?void 0:i.force)){const t=it().assertBoolean(i.force,"Optional argument 'force' must be a boolean.");e.checked=t}else!0===e.checked?e.checked=!1:e.checked=!0})),null}},!0)}var Nn=(()=>self.AMP.config.urls)();function Cn(t){if(t.defaultPrevented)return;const e=t.target;if(!e||"FORM"!=e.tagName)return;let i;i=e.classList.contains("i-amphtml-form")?!e.hasAttribute("amp-novalidate"):!e.hasAttribute("novalidate"),i&&e.checkValidity&&!e.checkValidity()&&t.preventDefault();const s=e.elements;for(let t=0;t<s.length;t++)ot(!s[t].name||s[t].name!=Oe,"Illegal input name, %s found: %s",Oe,s[t]);const n=e.getAttribute("action"),r=e.getAttribute("action-xhr"),o=(e.getAttribute("method")||"GET").toUpperCase();if(r&&(Ve(r,e,"action-xhr"),ot(!Ue(r),"form action-xhr should not be on AMP CDN: %s",e),Fe(r)),n&&(Ve(n,e,"action"),ot(!Ue(n),"form action should not be on AMP CDN: %s",e),Fe(n)),"GET"==o)ot(r||n,"form action-xhr or action attribute is required for method=GET: %s",e);else if("POST"==o){if(n){const t="form";it().error(t,"action attribute is invalid for method=POST: %s",e)}r||(t.preventDefault(),ot(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",e))}const a=e.getAttribute("target");a?ot("_blank"==a||"_top"==a,"form target=%s is invalid can only be _blank or _top: %s",a,e):e.setAttribute("target","_top"),r&&(t.preventDefault(),t.stopImmediatePropagation(),St(e).execute(e,"submit",null,e,e,t,3))}function On(t){rt(!!t.getParent()),function(t,e){(function(t){at(t,"url",class{constructor(t){const e=t.getRootNode(),i=e.ownerDocument||e;this.Yo=i.createElement("a"),this.Jo=null}parse(t,e){return xe(this.Yo,t)}Qo(t){return"string"!=typeof t?t:this.parse(t)}isProtocolValid(t){return $e(t)}getSourceOrigin(t){return ze(this.Qo(t))}getSourceUrl(t){return Ge(this.Qo(t))}resolveRelativeUrl(t,e){return function(t,e){return e=Me(e),new URL(t,e.href).toString()}(t,this.Qo(e))}assertHttpsUrl(t,e,i="source"){return Ve(t,e,i)}assertAbsoluteHttpOrHttpsUrl(t){return function(t){return ot(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),je(t).href}(t)}isProxyOrigin(t){return Ue(this.Qo(t))}isSecure(t){return ke(this.Qo(t))}getWinOrigin(t){return t.origin||this.Qo(t.location.href).origin}getCdnUrlOnOrigin(t){if(Ue(t))return t;const{hash:e,host:i,pathname:s,search:n}=this.Qo(t),r=encodeURIComponent(i);return`${Nn.cdn}/c/${r}${s}${n}${e}`}},!0)})(t),function(t,e){const i=ft(rt(t.getParent()));rt(Et(i,e));const s=Tt(i)[e];At(ft(t),t,e,rt(s.ctor))}(t,"templates"),bt(t,"documentInfo"),bt(t,"cid"),bt(t,"viewer"),bt(t,"viewport"),function(t){at(t,"hidden-observer",class{constructor(t){this.Zu=t.getRootNode();const e=this.Zu.ownerDocument||this.Zu;this.i=rt(e.defaultView),this.tl=null,this.il=null}add(t){this.sl();const e=this.il.add(t);return()=>{e(),0===this.il.getHandlerCount()&&this.dispose()}}sl(){if(this.tl)return;this.il=new en;const t=new this.i.MutationObserver((t=>{t&&this.il.fire(t)}));this.tl=t,t.observe(this.Zu,bn)}dispose(){this.tl&&(this.tl.disconnect(),this.il.removeAll(),this.tl=null,this.il=null)}})}(t),bt(t,"history"),function(t){at(t,"resources",class{constructor(t){var e;this.zi=t,this.win=t.win,this.Ti=[],this.rl=0,this._n=new class{constructor(t,e,i){this.ln=Lt(t),this.cn=e,this.an=i||0,this.dn=-1,this.fn=0,this.pn=!1,this.mn=()=>{this._n()}}isPending(){return-1!=this.dn}schedule(t){let e=t||this.an;this.pn&&e<10&&(e=10);const i=Date.now()+e;return(!this.isPending()||i-this.fn<-10)&&(this.cancel(),this.fn=i,this.dn=this.ln.delay(this.mn,e),!0)}_n(){this.dn=-1,this.fn=0,this.pn=!0,this.cn(),this.pn=!1}cancel(){this.isPending()&&(this.ln.cancel(this.dn),this.dn=-1)}}(this.win,this.Im.bind(this),70),this.xm=new en,this.xl=new s,this.Vm=null,(e=this.win,ht(e,"input")).setupInputModeClasses(t),"inabox"!=B(this.win).runtime&&t.onVisibilityChanged((()=>{switch(t.getVisibilityState()){case Fs:this.Ti.forEach((t=>t.pause()));break;case zs:this.Ti.forEach((t=>t.resume())),this.schedulePass()}})),this.Tl=[],this.ll=!1,this.zi.whenReady().then((()=>{this.ll=!0,this.Ul(),this.schedulePass(1)}))}dispose(){this.Ti.forEach((t=>t.unload())),this.Ti.length=0,this.Vm&&(this.Vm.disconnect(),this.Vm=null)}get(){return this.Ti.slice(0)}getAmpdoc(){return this.zi}getResourceForElement(t){return Ks.forElement(t)}getResourceForElementOptional(t){return Ks.forElementOptional(t)}getScrollDirection(){return 1}add(t){const e=new Ks(++this.rl,t,this);this.Ti.push(e)}upgraded(t){const e=Ks.forElement(t);this.Tl.push(e),this.Ul()}remove(t){const e=Ks.forElementOptional(t);if(!e)return;this.Vm&&this.Vm.unobserve(t);const i=this.Ti.indexOf(e);-1!==i&&this.Ti.splice(i,1)}scheduleLayoutOrPreload(t){this._n.schedule()}schedulePass(t){return this._n.schedule(t)}updateOrEnqueueMutateTask(t,e){}schedulePassVsync(){}onNextPass(t){this.xm.add(t)}ampInitComplete(){}updateLayoutPriority(t,e){}setRelayoutTop(t){}maybeHeightChanged(){}whenFirstPass(){return this.xl.promise}Im(){const t=Date.now();this.Ti.forEach((t=>{t.isLayoutPending()&&!t.element.R1()&&t.measure()})),this.Ti.forEach((e=>{!e.element.R1()&&2===e.getState()&&e.isDisplayed()&&(e.layoutScheduled(t),e.startLayout())})),this.zi.signals().signal(vi),this.xm.fire(),this.xl.resolve()}Ul(){for(let t=this.Tl.length-1;t>=0;t--){const e=this.Tl[t];(this.ll||x(e.element,this.zi.getRootNode()))&&(this.Tl.splice(t,1),(e.build()||i()).then((()=>this.schedulePass())))}}})}(t),function(t){at(t,"owners",class{constructor(t){this.Ti=Ut(t)}setOwner(t,e){Ks.setOwner(t,e)}schedulePreload(t,e){this.hc(this.Ti.getResourceForElement(t),!1,En(e))}scheduleLayout(t,e){this.hc(this.Ti.getResourceForElement(t),!0,En(e))}schedulePause(t,e){const i=this.Ti.getResourceForElement(t);e=En(e),this.oc(i,e,(t=>{t.pause()}))}scheduleResume(t,e){const i=this.Ti.getResourceForElement(t);e=En(e),this.oc(i,e,(t=>{t.resume()}))}scheduleUnlayout(t,e){const i=this.Ti.getResourceForElement(t);e=En(e),this.oc(i,e,(t=>{t.unlayout()}))}requireLayout(t,e){const i=[];return this.uc(t,(t=>{i.push(t.element.ensureLoaded())})),Promise.all(i)}oc(t,e,i){for(const s of e)rt(t.element.contains(s)),this.uc(s,i)}uc(t,e){if(t.classList.contains("i-amphtml-element")){e(this.Ti.getResourceForElement(t));const i=t.getPlaceholder();i&&this.uc(i,e)}else{const i=t.getElementsByClassName("i-amphtml-element"),s=[];for(let t=0;t<i.length;t++){const n=i[t];let r=!1;for(let t=0;t<s.length;t++)if(s[t].contains(n)){r=!0;break}r||(s.push(n),e(this.Ti.getResourceForElement(n)))}}}hc(t,e,i){this.oc(t,i,(e=>{e.element.ensureLoaded(t.getLayoutPriority())}))}})}(t),function(t){at(t,"mutator",class{constructor(t){this.ampdoc=t,this.win=t.win,this.Ti=Ut(t),this.Il=qt(this.ampdoc),this.Xr=Bt(this.win),this.Ml=new class{constructor(t,e){this.win=t,this.nr=e,this.rr=[],this.hr=new en,this.ur=t=>{I(t.target)&&this.lr(t.target)},this.cr=e=>{Lt(t).delay((()=>{this.win.document.activeElement&&this.lr(this.win.document.activeElement)}),500)},this.win.document.addEventListener("focus",this.ur,!0),this.win.addEventListener("blur",this.cr)}ar(){this.win.document.removeEventListener("focus",this.ur,!0),this.win.removeEventListener("blur",this.cr)}onFocus(t){return this.hr.add(t)}lr(t){const e=Date.now();0==this.rr.length||this.rr[this.rr.length-1].el!=t?this.rr.push({el:t,time:e}):this.rr[this.rr.length-1].time=e,this.purgeBefore(e-this.nr),this.hr.fire(t)}getLast(){return 0==this.rr.length?null:this.rr[this.rr.length-1].el}purgeBefore(t){let e=this.rr.length-1;for(let i=0;i<this.rr.length;i++)if(this.rr[i].time>=t){e=i-1;break}-1!=e&&this.rr.splice(0,e+1)}hasDescendantsOf(t){this.win.document.activeElement&&this.lr(this.win.document.activeElement);for(let e=0;e<this.rr.length;e++)if(t.contains(this.rr[e].el))return!0;return!1}}(this.win,6e4),this.Ml.onFocus((t=>{this.lc(t)}))}forceChangeSize(t,e,i,s,n){this.cc(Ks.forElement(t),e,i,n,void 0,!0,s)}requestChangeSize(t,e,i,s,n){return new Promise(((r,o)=>{this.cc(Ks.forElement(t),e,i,s,n,!1,(t=>{t?r():o(new Error("changeSize attempt denied"))}))}))}expandElement(t){Ks.forElement(t).completeExpand(),this.Ti.schedulePass(70)}attemptCollapse(t){return new Promise(((e,i)=>{this.cc(Ks.forElement(t),0,0,void 0,void 0,!1,(s=>{s?(Ks.forElement(t).completeCollapse(),e()):i(nt().createExpectedError("collapse attempt denied"))}))}))}collapseElement(t){const e=this.Il.getLayoutRect(t);0!=e.width&&0!=e.height&&(Qt(this.win,"dirty-collapse-element")?this.dirtyElement(t):this.Ti.setRelayoutTop(e.top)),Ks.forElement(t).completeCollapse(),this.Ti.schedulePass(70)}measureElement(t){return this.Xr.measurePromise(t)}mutateElement(t,e,i){return this.ac(t,null,e,i)}measureMutateElement(t,e,i){return this.ac(t,e,i)}dc(t){const e=be(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}}ac(t,e,i,s=!1){const n=()=>{const e=this.Il.getLayoutRect(t);return 0!=e.width&&0!=e.height?e.top:-1};let r=-1;return this.Xr.runPromise({measure:()=>{e&&e(),s||(r=n())},mutate:()=>{if(i(),s)return;t.classList.contains("i-amphtml-element")&&Ks.forElement(t).requestMeasure();const e=t.getElementsByClassName("i-amphtml-element");for(let t=0;t<e.length;t++)Ks.forElement(e[t]).requestMeasure();this.Ti.schedulePass(70),-1!=r&&this.Ti.setRelayoutTop(r),this.Xr.measure((()=>{const t=n();-1!=t&&t!=r&&(this.Ti.setRelayoutTop(t),this.Ti.schedulePass(70)),this.Ti.maybeHeightChanged()}))}})}dirtyElement(t){let e=!1;if(t.classList.contains("i-amphtml-element")){const e=Ks.forElement(t);this.Ti.setRelayoutTop(e.getLayoutBox().top)}else e=!0;this.Ti.schedulePass(70,e)}lc(t){const e=function(t,e,i){let s;for(s=t;s&&undefined!==s;s=s.parentElement)if(e(s))return s;return null}(t,(t=>!!Ks.forElementOptional(t)));if(!e)return;const i=Ks.forElement(e),s=i.getPendingChangeSize();void 0!==s&&this.cc(i,s.height,s.width,s.margins,void 0,!0)}cc(t,e,i,s,n,r,o){t.hasBeenMeasured()&&!s?this.fc(t,e,i,void 0,n,r,o):this.Xr.measure((()=>{t.hasBeenMeasured()||t.measure();const a=s?{newMargins:s,currentMargins:this.dc(t)}:void 0;this.fc(t,e,i,a,n,r,o)}))}fc(t,e,i,s,n,r,o){t.resetPendingChangeSize();const a=t.getLayoutSize();if(!(void 0!==e&&e!=a.height||void 0!==i&&i!=a.width||void 0!==s&&(h=s.currentMargins,c=s.newMargins,void 0!==c.top&&c.top!=h.top||void 0!==c.right&&c.right!=h.right||void 0!==c.bottom&&c.bottom!=h.bottom||void 0!==c.left&&c.left!=h.left)))return void 0===e&&void 0===i&&void 0===s&&nt().error("Mutator","attempting to change size with undefined dimensions",t.debugid),void(o&&o(!0));var h,c;this.Ti.updateOrEnqueueMutateTask(t,{resource:t,newHeight:e,newWidth:i,marginChange:s,event:n,force:r,callback:o}),this.Ti.schedulePassVsync()}})}(t),bt(t,"url-replace"),function(t){at(t,"action",class{constructor(t,e){this.ampdoc=t,this.Zu=e||t.getRootNode(),this.Nc=this.ampdoc.isSingleDoc()&&fi(this.Zu),this.Lr=this.Nc?hn:null,this.Dc=_(),this.Lc=_(),this.addEvent("tap"),this.addEvent("submit"),this.addEvent("change"),this.addEvent("input-debounced"),this.addEvent("input-throttled"),this.addEvent("valid"),this.addEvent("invalid")}addEvent(t){if("tap"==t)this.Zu.addEventListener("click",(e=>{if(!e.defaultPrevented){const i=e.target;this.trigger(i,t,e,3)}})),this.Zu.addEventListener("keydown",(e=>{const{key:i,target:s}=e,n=s;if("Enter"==i||" "==i){const i=n.getAttribute("role"),s=i&&T(cn,i.toLowerCase());!e.defaultPrevented&&s&&this.trigger(n,t,e,3)&&e.preventDefault()}}));else if("submit"==t)this.Zu.addEventListener(t,(e=>{const i=e.target;this.trigger(i,t,e,3)}));else if("change"==t)this.Zu.addEventListener(t,(e=>{const i=e.target;this.Uc(e),this.trigger(i,t,e,3)}));else if("input-debounced"==t){const e=function(t,e,i){let s=0,n=0,r=null;function o(){s=0;const i=300-(t.Date.now()-n);var a;i>0?s=t.setTimeout(o,i):(a=r,r=null,e.apply(null,a))}return function(...e){n=t.Date.now(),r=e,s||(s=t.setTimeout(o,300))}}(this.ampdoc.win,(e=>{const i=e.target;this.trigger(i,t,e,3)}));this.Zu.addEventListener("input",(t=>{const i=new un(t);this.Uc(i),e(i)}))}else if("input-throttled"==t){const e=Z(this.ampdoc.win,(e=>{const i=e.target;this.trigger(i,t,e,3)}),100);this.Zu.addEventListener("input",(t=>{const i=new un(t);this.Uc(i),e(i)}))}else"valid"!=t&&"invalid"!=t||this.Zu.addEventListener(t,(e=>{const i=e.target;this.trigger(i,t,e,3)}))}addGlobalTarget(t,e){this.Dc[t]=e}addGlobalMethodHandler(t,e,i=2){this.Lc[t]={handler:e,minTrust:i}}trigger(t,e,i,s,n){return this.$c(t,e,i,s,n)}execute(t,e,i,s,n,r,o){const a=new ln(t,e,i,s,n,r,o);this.Fc(a)}installActionHandler(t,e){if(rt(dn(t.getAttribute("id")||"")||t.tagName.toLowerCase()in an),t[on])return void nt().error(sn,`Action handler already installed for ${t}`);t[on]=e;const i=t[rn];l(i)&&Lt(w(t)).delay((()=>{i.forEach((t=>{try{e(t)}catch(e){nt().error(sn,"Action execution failed:",t,e)}})),t[rn].length=0}),1)}hasAction(t,e,i){return!!this.Bc(t,e,i)}hasResolvableAction(t,e,i){const s=this.Bc(t,e,i);return!!s&&s.actionInfos.some((t=>{const{target:e}=t;return!!this.Hc(e)}))}hasResolvableActionForTarget(t,e,i,s){const n=this.Bc(t,e,s);return!!n&&n.actionInfos.some((t=>{const{target:e}=t;return this.Hc(e)==i}))}Hc(t){return this.Dc[t]?this.Zu:this.Zu.getElementById(t)}setAllowlist(t){rt(t.every((t=>t.tagOrTarget&&t.method))),this.Lr=t}addToAllowlist(t,e,i){i&&i.includes("email")!==this.Nc||(this.Lr||(this.Lr=[]),l(e)||(e=[e]),e.forEach((e=>{this.Lr.some((i=>i.tagOrTarget==t&&i.method==e))||this.Lr.push({tagOrTarget:t,method:e})})))}$c(t,e,i,s,n){const r=this.Bc(t,e);if(!r)return!1;const o=Math.random();let a=null;return r.actionInfos.forEach((h=>{const{args:c,method:l,str:d,target:u}=h,p=function(t,e,i){if(!t)return t;const s=i||{};if(e){const t=function(t){return t.detail}(e);t&&(s.event=t)}const n=_();return Object.keys(t).forEach((e=>{let i=t[e];if("object"==typeof i&&i.expression){const t=i.expression,e=function(t,e){if("."==e)return t;const i=e.split(".");let s=t;for(const t of i){if(!(t&&s&&void 0!==s[t]&&"object"==typeof s&&T(s,t))){s=void 0;break}s=s[t]}return s}(s,t);i=void 0===e?null:e}s[i]?n[e]=s[i]:n[e]=i})),n}(c,i,n),m=()=>{const n=this.Hc(u);if(!n)return void this.jc(`Target "${u}" not found for action [${d}].`);const a=new ln(n,l,p,t,r.node,i,s,e,n.tagName||u,o);return this.Fc(a)};a=a?a.then(m):m()})),r.actionInfos.length>=1}jc(t,e){if(e){const i=it().createError(`[Action] ${t}`);throw Ye(i,e),i}it().error(sn,t)}Fc(t){const{method:e,tagOrTarget:i}=t;if(this.Lr&&!function(t,e){let{method:i}=t;const{node:s,tagOrTarget:n}=t;i===tn&&"function"==typeof s.getDefaultActionAlias&&(i=s.getDefaultActionAlias());const r=i.toLowerCase(),o=n.toLowerCase();return e.some((t=>(t.tagOrTarget.toLowerCase()===o||"*"===t.tagOrTarget)&&t.method.toLowerCase()===r))}(t,this.Lr))return this.jc(`"${i}.${e}" is not allowlisted ${JSON.stringify(this.Lr)}.`),null;const s=this.Dc[i];if(s)return s(t);const n=t.node,r=this.Lc[e];if(r&&t.satisfiesTrust(r.minTrust))return r.handler(t);const o=n.tagName.toLowerCase();if(dn(o))return n.enqueAction?n.enqueAction(t):this.jc(`Unrecognized AMP element "${o}".`,n),null;const a=an[o];if(dn(n.getAttribute("id")||"")||a&&a.indexOf(e)>-1){const e=n[on];return e?e(t):(n[rn]=n[rn]||[],n[rn].push(t)),null}return this.jc(`Target (${i}) doesn't support "${e}" action.`,t.caller),null}Bc(t,e,i){let s=t;for(;s;){if(i&&s==i)return null;const t=this.zc(s,e);if(t&&!(n=s).disabled&&(":disabled",!n.matches(":disabled")))return{node:s,actionInfos:rt(t)};s=s.parentElement}var n;return null}zc(t,e){const i=this.Gc(t,e);return i&&i[e]||null}Gc(t,e){let i=t[nn];return void 0===i&&(i=null,t.hasAttribute("on")?(i=mn(t.getAttribute("on"),t),t[nn]=i):t.hasAttribute("execute")&&(i=mn(`${e}:${t.getAttribute("execute")}`,t),t[nn]=i)),i}setActions(t,e){t.setAttribute("on",e),delete t[nn]}Uc(t){const e=_(),{target:i}=t;var s;if(void 0!==i.value&&(e.value=i.value),"INPUT"==i.tagName&&(e.valueAsNumber=Number(i.value)),void 0!==i.checked&&(e.checked=i.checked),void 0===i.min&&void 0===i.max||(e.min=i.min,e.max=i.max),i.files&&(e.files=(s=i.files,s?Array.prototype.slice.call(s):[]).map((t=>({"name":t.name,"size":t.size,"type":t.type})))),Object.keys(e).length>0)try{t.detail=e}catch(t){}}},!0)}(t),Pn(t),bt(t,"storage"),function(t){at(t,ps,_s,!0)}(t),function(t){t.whenExtensionsKnown().then((()=>{t.declaresExtension("amp-form")&&t.getRootNode().addEventListener("submit",Cn,!0)}))}(t)}(t)}var Mn,jn=(()=>self.AMP.config.urls)();function xn(){return void 0===Mn&&(Mn="srcdoc"in HTMLIFrameElement.prototype),Mn}function Dn(){const t=jn.cdn;return`${t}/lts/ ${t}/rtv/ ${t}/sw/`}function kn(t,e){const i=jt(t);e.forEach((({extensionId:t,extensionVersion:e})=>i.preloadExtension(t,e)))}function Vn(t){const e=t.contentWindow&&t.contentWindow.document;return!!(e&&(i=e,"loading"!=i.readyState&&"uninitialized"!=i.readyState)&&e.body&&e.body.firstChild);var i}var Un=class t{static installExtensionsInEmbed(e,i,s,n,r,o){const a=s.win,h=w(a.frameElement);!function(t,e){t.__AMP_PARENT=e,t.__AMP_TOP=pt(e)}(a,h);const c=t=>new Promise((e=>{setTimeout((()=>e(t)),1)}));return c(void 0).then((()=>{!function(t,e){var i;(function(t,e){var i;(i=e).IntersectionObserver&&i.IntersectionObserverEntry&&!i.IntersectionObserver._stub&&function(t){try{return new t.IntersectionObserver((()=>{}),{root:t.document}),!0}catch(t){return!1}}(i)&&!function(t){return/apple/i.test(t.navigator.vendor)}(i)?function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get(){return this.intersectionRatio>0}})}(e):Object.defineProperties(e,{IntersectionObserver:{get:()=>t.IntersectionObserver},IntersectionObserverEntry:{get:()=>t.IntersectionObserverEntry}})})(t,e),function(t,e){!e.ResizeObserver&&t.ResizeObserver&&Object.defineProperties(e,{ResizeObserver:{get:()=>t.ResizeObserver},ResizeObserverEntry:{get:()=>t.ResizeObserverEntry}})}(t,e),(i=e).AbortController||(Object.defineProperty(i,"AbortController",{configurable:!0,enumerable:!1,writable:!0,value:Hs}),Object.defineProperty(i,"AbortSignal",{configurable:!0,enumerable:!1,writable:!0,value:Bs}))}(h,a)})).then(c).then((()=>{!function(t,e,i,s,n){const r=t.getHeadNode();!function(t,e,i,s){let n=t.__AMP_CSS_SM;n||(n=t.__AMP_CSS_SM=_());const r="amp-runtime";{const i=Re(t,n,r);if(i)return"STYLE"==i.tagName&&i.textContent!==e&&(i.textContent=e),i}const o=(t.ownerDocument||t).createElement("style");o.textContent=e;let a=null;o.setAttribute("amp-runtime",""),function(t,e,i=null){if(!i)return void function(t,e){t.insertBefore(e,t.firstChild)}(t,e);const s=i.nextSibling;t.insertBefore(e,s)}(t,o,a),n[r]=o}(r,function(t,e){const i=t.__AMP_CSS_TR;return i?i(e):e}(r,"[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*/"))}(s,0,null)})).then(c).then((()=>{a.frameElement&&r&&r(s.win,s)})).then(c).then((()=>{a.frameElement&&t.installStandardServicesInEmbed(s)})).then(c).then((()=>{a.frameElement&&i.preinstallEmbed(s,n)})).then(c).then((()=>{a.frameElement&&e.tD()})).then(c).then((()=>{if(!a.frameElement)return;const t=i.installExtensionsInDoc(s,n);s.setExtensionsKnown(),o&&o(t)}))}static installStandardServicesInEmbed(t){(function(t,e,i){At(t,t,"timer",class{constructor(t){this.win=t,this.br=this.win.Promise.resolve(),this.Vr=0,this.Sr={},this.Or=Date.now()}timeSinceStart(){return Date.now()-this.Or}delay(t,e){if(!e){const e="p"+this.Vr++;return this.br.then((()=>{this.Sr[e]?delete this.Sr[e]:t()})).catch(Ye),e}return this.win.setTimeout((()=>{try{t()}catch(t){throw Ye(t),t}}),e)}cancel(t){"string"!=typeof t?this.win.clearTimeout(t):this.Sr[t]=!0}promise(t){return new this.win.Promise((e=>{if(-1==this.delay(e,t))throw new Error("Failed to schedule timer.")}))}timeoutPromise(t,e,i){let s;const n=new this.win.Promise(((e,n)=>{if(s=this.delay((()=>{n(it().createError(i||"timeout"))}),t),-1==s)throw new Error("Failed to schedule timer.")}));if(!e)return n;const r=()=>{this.cancel(s)};return e.then(r,r),this.win.Promise.race([n,e])}poll(t,e){return new this.win.Promise((i=>{const s=this.win.setInterval((()=>{e()&&(this.win.clearInterval(s),i())}),t)}))}},!0)})(t.win),On(t)}},Ln=(()=>self.AMP.config.urls)(),$n=new RegExp("https://cdn\\.materialdesignicons\\.com/([0-9]+\\.?)+/css/materialdesignicons\\.min\\.css|https://cloud\\.typography\\.com/[0-9]*/[0-9]*/css/fonts\\.css|https://fast\\.fonts\\.net/.*|https://fonts\\.googleapis\\.com/css2?\\?.*|https://fonts\\.googleapis\\.com/icon\\?.*|https://fonts\\.googleapis\\.com/earlyaccess/.*\\.css|https://maxcdn\\.bootstrapcdn\\.com/font-awesome/([0-9]+\\.?)+/css/font-awesome\\.min\\.css(\\?.*)?|https://(use|pro)\\.fontawesome\\.com/releases/v([0-9]+\\.?)+/css/[0-9a-zA-Z-]+\\.css|https://(use|pro)\\.fontawesome\\.com/[0-9a-zA-Z-]+\\.css|https://use\\.typekit\\.net/[\\w\\p{L}\\p{N}_]+\\.css"),Gn=_({"amp-accordion":!0,"amp-ad-exit":!0,"amp-analytics":!0,"amp-anim":!0,"amp-animation":!0,"amp-audio":!0,"amp-bind":!0,"amp-carousel":!0,"amp-fit-text":!0,"amp-font":!0,"amp-form":!0,"amp-gwd-animation":!0,"amp-img":!0,"amp-layout":!0,"amp-lightbox":!0,"amp-mraid":!0,"amp-mustache":!0,"amp-pixel":!0,"amp-position-observer":!0,"amp-selector":!0,"amp-social-share":!0,"amp-video":!0}),zn=new RegExp("^"+Ln.cdn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"/(rtv/\\d+/)?v0/");function Fn(t,e){if("application/json"===e.type)return;const{src:i}=e;if(zn.test(i)){const e=W(i);e&&Gn[e.extensionId]&&t.push(e)}M(e)}function Hn(t,e,i){const{as:s,href:n,rel:r}=i;"preload"!==r||"image"!==s?"stylesheet"===r&&$n.test(n)?t.push(n):M(i):e.push(n)}var Bn=["https://cdn.materialdesignicons.com","https://cloud.typography.com","https://fast.fonts.net","https://fonts.googleapis.com","https://maxcdn.bootstrapcdn.com","https://p.typekit.net","https://pro.fontawesome.com","https://use.fontawesome.com","https://use.typekit.net"].join(" "),qn="AMP-Fast-Fetch-Signature";function Kn(t,e){nt().error("AMP-A4A",`Signing service error for ${t}: ${e}`)}var Wn=(()=>self.AMP.config.urls)();function Yn(t,e,i,s){const n=Date.now(),r=e.getAttribute("width"),o=e.getAttribute("height");(s=s||{}).width=rs(r),s.height=rs(o),e.getAttribute("title")&&(s.title=e.getAttribute("title"));let a=t.location.href;"about:srcdoc"==a&&(a=t.parent.location.href);const h=wt(e),c=Mt(e),l=Ht(e).getUnconfirmedReferrerUrl(),d=mi(e);var u;s._context={"ampcontextVersion":"2601162341000","ampcontextFilepath":`${Wn.thirdParty}/2601162341000/ampcontext-v0.js`,"sourceUrl":c.sourceUrl,"referrer":l,"canonicalUrl":c.canonicalUrl,"pageViewId":c.pageViewId,"location":{"href":a},"startTime":n,"tagName":e.tagName,"mode":{localDev:!1,development:!1,esm:B(u).esm,test:!1,rtvVersion:B(u).rtvVersion},"canary":Jt(t),"hidden":!h.isVisible(),"initialLayoutRect":d?{"left":d.left,"top":d.top,"width":d.width,"height":d.height}:null,"domFingerprint":li.generate(e),"experimentToggles":Zt(t),"sentinel":i};const p=e.getAttribute("src");return p&&(s.src=p),s}var Jn=(()=>self.AMP.config.urls)();function Xn(t,e){const i=e||"frame";return t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+Qn(t),"https://"+t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${Jn.thirdPartyFrameHost}/2601162341000/${i}.html`}function Qn(t){let e;if(t.crypto&&t.crypto.getRandomValues){const i=new Uint32Array(2);t.crypto.getRandomValues(i),e=String(i[0])+i[1]}else e=String(t.Math.random()).substr(2)+"0";return e}var Zn={"AMP-FX-FLYING-CARPET":!0,"AMP-LIGHTBOX":!0,"AMP-STICKY-AD":!0,"AMP-LIGHTBOX-GALLERY":!0};function tr(t,e){const{position:i}=be(e,t);return"fixed"==i||"sticky"==i}function er(t,e,i=!1,s=!1){const n=t.ownerDocument,r=j(n,"amp-analytics",{"sandbox":"true","trigger":s?"":"immediate"}),o=j(n,"script",{"type":"application/json"});if(o.textContent=JSON.stringify(e),r.appendChild(o),r.CONFIG=e,i){const e=jt(w(t)),i=wt(t);e.installExtensionForDoc(i,"amp-analytics")}else Nt(t).then((t=>{rt(t)}));return t.appendChild(r),r}var ir=null,sr=null;function nr(t){return!!t["3pla"]}function rr(t){const e=t.getAttribute("data-loading-strategy");if(null==e)return null;if("prefer-viewability-over-views"==e||""==e)return 1.25;const i="Value of data-loading-strategy should be a float number in range of [0, 3], but got "+e,s=it().assertNumber(parseFloat(e),i);return ot(s>=0&&s<=3,i),s}function or(t,e){if(void 0===t["3pla"]&&(t["3pla"]=0),t["3pla"]++,!ir){const t=new s;ir=t.promise,sr=t.resolve}Lt(t).timeoutPromise(1e3,e).catch((()=>{})).then((()=>{--t["3pla"]||(sr(),ir=null,sr=null)}))}var ar=["<script amp-ad-metadata type=application/json>",'<script type="application/json" amp-ad-metadata>',"<script type=application/json amp-ad-metadata>"],hr="1-0-37",cr="X-AmpAdRender",lr="amp-ff-exps",dr="amp-a4a",ur="NO-CONTENT-RESPONSE",pr="NETWORK-FAILURE",mr="INVALID-SPSA-RESPONSE",fr="IFRAME-GET",gr="safeframe",Ar="nameframe",_r={"frameborder":"0","allowfullscreen":"","allowtransparency":"","scrolling":"no","marginwidth":"0","marginheight":"0"},Tr="ad-render-start",Ir="ad-render-end",vr="ad-iframe-loaded",br={"adRequestStart":"ad-request-start","adRequestEnd":"ad-response-end","renderFriendlyStart":Tr,"renderCrossDomainStart":Tr,"renderSafeFrameStart":Tr,"renderFriendlyEnd":Ir,"renderCrossDomainEnd":Ir,"friendlyIframeIniLoad":vr,"crossDomainIframeLoaded":vr};function Er(t,e,i){return(...s)=>{try{return t.apply(e,s)}catch(t){if(i)try{return s.unshift(t),i.apply(e,s)}catch(t){}return}}}var yr=class extends t.BaseElement{constructor(e){super(e),rt(t.AmpAdUIHandler),rt(t.AmpAdXOriginIframeHandler),this.eD=null,this.iD=null,this.nD=0,this.sD=null,this.rD=null,this.uiHandler=null,this.oD=null,this.aD=!1,this.hD=null,this.lD=null,this.uD=null,this.cD=this.getNonAmpCreativeRenderingMethod(),this.dD=this.win.performance&&this.win.performance.now?this.win.performance.now.bind(this.win.performance):Date.now,this.sentinel=function(t){let e=0;for(let i=t;i&&i!=i.parent;i=i.parent)e++;return String(e)+"-"+Qn(t)}(window),this.pD=!1,this.iframe=null,this.safeframeVersion=hr,this.isRefreshing=!1,this.isRelayoutNeededFlag=!1,this.postAdResponseExperimentFeatures={},this.mD=null,this.fD=null,this.isSinglePageStoryAd=!1,this.TD=null,this.Bj=null}getLayoutPriority(){return this.element.getAmpDoc().isSingleDoc()?2:1}isLayoutSupported(t){return ns(t)}isRelayoutNeeded(){return this.isRelayoutNeededFlag}buildCallback(){if(this.lD={width:this.element.getAttribute("width"),height:this.element.getAttribute("height")},Math.round(this.getResource().getUpgradeDelayMs()),this.uiHandler=new t.AmpAdUIHandler(this),this.uiHandler.validateStickyAd(),this.uiHandler.getScrollPromiseForStickyAd().then((()=>this.uiHandler.maybeInitStickyAd())),this.uiHandler.isStickyAd()&&(e=this.element,i=()=>this.layoutCallback(),Ws?Ys.then(i):function(t){return at(t,"chunk",Zs),ct(t,"chunk")}(e).run(i,10)),!this.isInNoSigningExp()){const t=Sr(this.win);this.eD=this.getAmpDoc().whenFirstVisible().then((()=>{this.getSigningServiceNames().forEach((e=>{t.loadKeyset(e)}))}))}var e,i;this.mD=this.getA4aAnalyticsConfig(),this.mD&&(this.fD=er(this.element,this.mD,!0)),this.isSinglePageStoryAd=this.element.hasAttribute("amp-story")}renderOutsideViewport(){if(!this.aD&&nr(this.win)&&!this.inNonAmpPreferenceExp())return!1;const t=rr(this.element);return null!==t?t:super.renderOutsideViewport()}isValidElement(){return!0}getCreativeSize(){return this.lD}delayAdRequestEnabled(){return!1}getPreconnectUrls(){return[]}getPrefetchUrls(){return[]}isAmpAdElement(){return"AMP-AD"==this.element.tagName||"AMP-EMBED"==this.element.tagName}preconnectCallback(t){const e=this.getPreconnectUrls();e&&e.forEach((t=>{Vt(this.win).url(this.getAmpDoc(),t,!0)}))}pauseCallback(){this.rD&&this.rD.pause()}resumeCallback(){if(this.rD)return void this.rD.resume();const t=this.getResource();t.hasBeenMeasured()&&!t.isMeasureRequested()&&this.onLayoutMeasure()}getResource(){return this.element.getResources().getResourceForElement(this.element)}hasAdPromise(){return!!this.iD}inNonAmpPreferenceExp(){return!!this.postAdResponseExperimentFeatures.pref_neutral_enabled&&["adsense","doubleclick"].includes(this.element.getAttribute("type"))}AD(){const t=this.getIntersectionElementLayoutBox();return!(this.getLayout()!=ss&&(0==t.height||0==t.width)||this.element.hasAttribute("hidden")||this.element.classList.contains("i-amphtml-hidden-by-media-query")||!this.uiHandler.isStickyAd()&&!function(t,e){let i=!1,s=0,n=t;do{Zn[n.tagName]?(s++,i=!1):tr(n,e)&&(i=!0),n=n.parentElement}while(n&&"BODY"!=n.tagName);return!i&&s<=1}(this.element,this.win)||!this.isValidElement())}onLayoutMeasure(){this.initiateAdRequest()}whenWithinViewport(t){return rt(!1!==t),this.getResource().whenWithinViewport(t)}initiateAdRequest(){if(this.oD&&this.oD.onLayoutMeasure(),this.iD||!this.AD())return;++this.nD;const t=this.verifyStillCurrent();this.iD=this.getAmpDoc().whenFirstVisible().then((()=>{t();const e=this.delayAdRequestEnabled();if(e)return this.whenWithinViewport("number"==typeof e?e:this.renderOutsideViewport())})).then((()=>{t();const e=super.getConsentPolicy();if(e){const t=function(t,e="default"){return Gt(t).then((t=>t?t.whenPolicyResolved(e):null))}(this.element,e).catch((t=>(it().error(dr,"Error determining consent state",t),h.UNKNOWN))),n=function(t,e="default"){return Gt(t).then((t=>t?t.getConsentStringInfo(e):null))}(this.element,e).catch((t=>(it().error(dr,"Error determining consent string",t),null))),r=function(t,e="default"){return Gt(t).then((t=>t?t.getConsentMetadataInfo(e):null))}(this.element,e).catch((t=>(it().error(dr,"Error determining consent metadata",t),null))),o=(i=this.element,s=e,Gt(i).then((t=>t?t.getMergedSharedData(s):null))).catch((t=>(it().error(dr,"Error determining consent shared data",t),null)));return Promise.all([t,n,r,o])}var i,s;return Promise.resolve([null,null,null,null])})).then((e=>{t();const i=e[0],s=e[1],n=e[2],r=e[3],o=n?n.gdprApplies:n,a=n?n.additionalConsent:n,h=n?n.consentStringType:n,c=n?n.purposeOne:n,l=n?n.gppSectionId:n;return this.getServeNpaSignal().then((t=>this.getAdUrl({consentState:i,consentString:s,consentStringType:h,gdprApplies:o,additionalConsent:a,consentSharedData:r,purposeOne:c,gppSectionId:l},this._D(i,s,n),t)))})).then((e=>(t(),this.sD=e,!this.isXhrAllowed()&&this.sD?(this.cD="iframe_get",Promise.reject(fr)):e&&this.sendXhrRequest(e)))).then((e=>{if(Er(this.onAdResponse,this,(t=>{nt().error(dr,this.element.getAttribute("type"),"Error executing onAdResponse",t)}))(e),t(),this.gD("adRequestEnd"),!e||!e.arrayBuffer||e.headers.has("amp-ff-empty-creative"))return this.forceCollapse(),Promise.reject(ur);e.headers&&e.headers.has(lr)&&this.ED(e.headers.get(lr));const i=this.getNonAmpCreativeRenderingMethod(e.headers.get(cr));this.cD=i,this.cD==Ar&&Vt(this.win).preload(this.getAmpDoc(),Xn(this.win,"nameframe"));const s=e.headers.get("X-AmpSafeFrameVersion");return/^[0-9-]+$/.test(s)&&s!=hr&&(this.safeframeVersion=s,Vt(this.win).preload(this.getAmpDoc(),this.getSafeframePath())),e})).then((e=>this.isInNoSigningExp()?this.RD(e,t):this.vD(e,t))).catch((t=>{switch(t.message||t){case fr:case pr:return null;case mr:case ur:return{minifiedCreative:"",customElementExtensions:[],customStylesheets:[]}}return this.bD(t),null}))}isInNoSigningExp(){return!0}skipClientSideValidation(t){return!1}RD(t,e){if(204===t.status)return this.forceCollapse(),Promise.reject(ur);const i=this.extractSize(t.headers);if(this.lD=i||this.lD,!wr(this.win)||this.skipClientSideValidation(t.headers))return this.yD(t,e);const n=t.clone(),r=new class{constructor(t,e){const i=new s;this.ND=i.promise,this.PD=i.resolve;const n=new s;this.CD=n.promise,this.wD=n.resolve,this.SD=null;const r=new s;this.OD=r.promise,this.MD=r.resolve,this.DD=null,this.UD=!1,this.xD=e||Ls}onChunk(t){!this.SD&&t.body&&(this.SD=t.body,this.PD(S(t.head))),this.UD&&this.VD()}onEnd(t){this.wD(this.VD())}waitForHead(){return this.ND}transferBody(t){return S(t),R(!this.UD),this.UD=!0,this.MD(t),this.ND.then((()=>{const e=this.SD.attributes;for(let i=0;i<e.length;i++){const{name:s,value:n}=e[i];t.setAttribute(s,n)}})),this.VD(),this.CD}VD(){return this.DD||(this.DD=Promise.all([this.OD,this.ND]).then((t=>(0,this.xD)((()=>{this.DD=null;const e=t[0];for((i=S(this.SD),s="noscript",void 0,R(/^[\w-]+$/.test(s)),"> noscript",i.querySelectorAll(function(t,e){return t.replace(/^|,/g,`$&${e} `)}("> noscript",":scope"))).forEach(M);this.SD.firstChild;)e.appendChild(this.SD.firstChild);var i,s}))))),this.DD}}(this.win),o=new class{constructor(t,e,i){this.LD=e,this.ad=i,this.kD=t.document.implementation.createHTMLDocument(""),this.kD.open(),this.pd=!1}write(t){R(!this.pd),t&&this.kD.write(t),this.LD(this.kD)}close(){this.pd=!0,this.kD.close(),this.ad(this.kD)}}(this.win,(t=>r.onChunk(t)),(t=>r.onEnd(t)));return this.TD=r.transferBody.bind(r),function(t,e,i){const n=new s;if(t.TextDecoder&&t.ReadableStream){let t=!0;R(e.body);const s=e.body.getReader(),r=new TextDecoder;s.read().then((function e({done:o,value:a}){t&&(n.resolve(!o),t=!1),a=a||new Uint8Array(0);const h=r.decode(a,{stream:!o});h&&i.write(h),o?i.close():s.read().then(e)}))}else e.text().then((t=>{n.resolve(!!t),i.write(t),i.close()}));return n.promise}(this.win,t,o).then((t=>{if(e(),!t)return this.forceCollapse(),Promise.reject(ur)})).then((()=>(e(),r.waitForHead()))).then((t=>(e(),this.GD(t)))).then((t=>(e(),t?(this.updateLayoutPriority(0),this.aD=!0,t):this.yD(n,e))))}yD(t,e){return this.inNonAmpPreferenceExp()&&this.updateLayoutPriority(0),t.arrayBuffer().then((t=>(e(),this.hD=t,null)))}GD(t){return function(t,e,i){if(!i||!i.firstChild)return null;const s=function(t){if(Node.prototype.getRootNode)return t.getRootNode();let e;for(e=t;e.parentNode&&(!(i=e)||"I-AMPHTML-SHADOW-ROOT"!=i.tagName&&(11!=i.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(i)));e=e.parentNode);var i;return e}(i).documentElement;if(!s||!s.hasAttribute("amp4ads")&&!s.hasAttribute("⚡️4ads")&&!s.hasAttribute("⚡4ads"))return null;const n=Ft(e),r=[],o=[],a=[];let h=i.firstElementChild;for(;h;){const t=h.nextElementSibling;switch(h.tagName.toUpperCase()){case"SCRIPT":Fn(r,h);break;case"STYLE":(c=h).hasAttribute("amp-custom")||c.hasAttribute("amp-keyframes")||c.hasAttribute("amp4ads-boilerplate")||M(c);break;case"LINK":Hn(o,a,h);break;case"META":case"TITLE":break;default:M(h)}h=t}var c;return kn(t,r),o.forEach((i=>Vt(t).preload(e.getAmpDoc(),i))),a.forEach((i=>n.isSecure(i)&&Vt(t).preload(e.getAmpDoc(),i))),{extensions:r,head:i}}(this.win,this.element,t)}vD(t,e){return t.arrayBuffer().then((e=>0==e.byteLength?(this.forceCollapse(),Promise.reject(ur)):{bytes:e,headers:t.headers})).then((t=>{if(e(),!t)return null;const{bytes:i,headers:s}=t,n=this.extractSize(t.headers);return this.lD=n||this.lD,"client_cache"!=this.cD&&i&&(this.hD=i),this.maybeValidateAmpCreative(i,s)})).then((t=>(e(),this.aD=!!t,t&&as(t)))).then((t=>{let i;if(e(),!wr(this.win)||!t||!(i=this.getAmpAdMetadata(t)))return this.inNonAmpPreferenceExp()&&this.updateLayoutPriority(0),null;this.updateLayoutPriority(0);const s=Gs(i);kn(this.win,s),(i.customStylesheets||[]).forEach((t=>Vt(this.win).preload(this.getAmpDoc(),t.href)));const n=Ft(this.element);return(i.images||[]).forEach((t=>n.isSecure(t)&&Vt(this.win).preload(this.getAmpDoc(),t))),i}))}maybeValidateAmpCreative(t,e){const i=this.verifyStillCurrent();return this.eD.then((()=>"fake"!=this.element.getAttribute("type")||this.element.getAttribute("checksig")?Sr(this.win).verify(t,e):Promise.resolve(0))).then((e=>{i();let s=null;switch(e){case 0:s=t;break;case 4:s=this.shouldPreferentialRenderWithoutCrypto()?t:null;break;case 2:case 3:it().error(dr,this.element.getAttribute("type"),"Signature verification failed")}if(this.isSinglePageStoryAd&&!s)throw new Error(mr);return s}))}ED(t){t.split(",").forEach((t=>{if(!t)return;const e=t.split("=");2==e.length&&e[0]&&(this.postAdResponseExperimentFeatures[e[0]]=e[1])}))}refresh(t){if(rt(!this.isRefreshing),this.isRefreshing=!0,this.tearDownSlot(),this.initiateAdRequest(),!this.iD)return i();const e=this.nD;return rt(this.iD).then((()=>{if(this.isRefreshing&&e==this.nD)return this.mutateElement((()=>(se(this.element,"ad-refresh"),this.togglePlaceholder(!0),Lt(this.win).promise(1e3).then((()=>{this.isRelayoutNeededFlag=!0,this.getResource().layoutCanceled(),this.getAmpDoc().whenNextVisible().then((()=>{var t;(t=this.getAmpDoc(),ct(t,"owners")).requireLayout(this.element)}))})))));t()}))}bD(t,e){if(Xe(t))throw t;t=t&&t.message?Y(t):new Error("unknown error "+t),e&&(t.ignoreStack=e);const i=this.element.getAttribute("type")||"notype";0!=t.message.indexOf(`amp-a4a: ${i}:`)&&(t.message=`amp-a4a: ${i}: ${t.message}`),Rr(t,this.sD),parseInt(F(void 0).log,10)?it().error(dr,t):Math.random()<.01&&nt().expectedError(dr,t)}layoutCallback(){return this.isRefreshing&&this.destroyFrame(!0),this.attemptToRenderCreative().then((()=>{this.Bj=function(t,e,i){const s=w(t);let n=Ms.get(s);n||Ms.set(s,n=Os(xs,s));let r=js.get(t);return r||(r=[],js.set(t,r)),r.push(e),n.observe(t),()=>{!function(t,e){const i=js.get(t);if(!i)return;if(!d(i,e))return;if(i.length)return;const s=w(t),n=Ms.get(s);null==n||n.unobserve(t),js.delete(t)}(t,e)}}(this.element,(({isIntersecting:t})=>this.viewportCallback(t)))}))}attemptToRenderCreative(){if(!this.iD)return this.AD()&&nt().error(dr,"Null promise in layoutCallback"),i();const t=this.verifyStillCurrent();return this.iD.then((e=>{if(t(),this.pD)return i();if(this.iframe&&!this.isRefreshing)return i();if(!e)return this.renderNonAmpCreative();let s;return s=this.isInNoSigningExp()?this.FD(e,t):this.$D(e),s.catch((e=>(t(),this.renderNonAmpCreative())))})).catch((t=>{throw this.bD(t),Je()}))}isXhrAllowed(){return!0}attemptChangeSize(t,e){return this.uD=this.uD||this.getLayoutSize(),super.attemptChangeSize(t,e)}unlayoutCallback(){var t;return null===(t=this.Bj)||void 0===t||t.call(this),this.Bj=null,this.tearDownSlot(),!0}tearDownSlot(){this.nD++,this.uiHandler.applyUnlayoutUI(),this.uD&&super.attemptChangeSize(this.uD.height,this.uD.width).then((()=>{this.uD=null})).catch((t=>{})),this.pD=!1,this.destroyFrame(),this.iD=null,this.sD=null,this.hD=null,this.aD=!1,this.TD=null,this.cD=this.getNonAmpCreativeRenderingMethod(),this.postAdResponseExperimentFeatures={}}detachedCallback(){super.detachedCallback(),this.destroyFrame(!0)}HD(){this.iframe&&this.iframe.parentElement&&(this.iframe.parentElement.removeChild(this.iframe),this.iframe=null)}destroyFrame(t=!1){!t&&this.isRefreshing||(this.rD&&(this.rD.destroy(),this.rD=null),this.HD(),this.oD&&(this.oD.freeXOriginIframe(),this.oD=null),this.uiHandler&&this.uiHandler.cleanup())}viewportCallback(t){this.oD&&this.oD.viewportCallback(t)}getAdUrl(t,e,i){throw new Error("getAdUrl not implemented!")}getServeNpaSignal(){return Promise.resolve(!1)}zD(){return this.element.getAttribute("block-rtc")?zt(this.element).then((t=>{ot(t,"%s: requires <amp-geo> to use `block-rtc`",dr);const e=this.element.getAttribute("block-rtc").split(",");for(let i=0;i<e.length;i++)if(2===t.isInCountryGroup(e[i]))return!0;return!1})):Promise.resolve(!1)}resetAdUrl(){this.sD=null}verifyStillCurrent(){const t=this.nD;return()=>{if(t!=this.nD)throw Je()}}extractSize(t){const e=t.get("X-CreativeSize");if(!e)return null;const i=/^([0-9]+)x([0-9]+)$/.exec(e);return i?{width:Number(i[1]),height:Number(i[2])}:(it().error(dr,`Invalid size header: ${e}`),null)}forceCollapse(){this.isRefreshing?this.isRefreshing=!1:(rt(this.uiHandler),this.uD=this.uD||this.getLayoutSize(),this.uiHandler.applyNoContentUI(),this.pD=!0)}onCreativeRender(t,e){this.gD(t?"renderFriendlyEnd":"renderCrossDomainEnd")}onAdResponse(t){}onCrossDomainIframeCreated(t){}sandboxHTMLCreativeFrame(){return!0}sendXhrRequest(t){return this.gD("adRequestStart"),Kt(this.win).fetch(t,{mode:"cors",method:"GET",credentials:"include"}).catch((t=>{if(t.response&&t.response.status>200)return null;const e=this.onNetworkFailure(t,this.sD);return rt(!!e),e.frameGetDisabled?(this.resetAdUrl(),null):(this.sD=e.adUrl||this.sD,Promise.reject(pr))}))}onNetworkFailure(t,e){return{}}getSigningServiceNames(){return["google"]}renderNonAmpCreative(t){if("true"==this.element.getAttribute("disable3pfallback"))return Promise.resolve(!1);const e=this.cD;let i=Promise.resolve(!1);return e!=gr&&e!=Ar||!this.hD?this.sD&&(Ve(this.sD,this.element),i=this.jD(this.sD)):(i=this.BD(this.hD),this.hD=null),t||this.inNonAmpPreferenceExp()||or(this.win,i),i.then((t=>(this.gD("crossDomainIframeLoaded"),t)))}FD(t,e){e(),rt(this.element.ownerDocument),this.gD("renderFriendlyStart");const{height:i,width:n}=this.lD,{extensions:r,fonts:o,head:a}=t;this.HD(),this.iframe=function(t,e,i,s){const{document:n}=t,r=j(n,"iframe",{"height":i,"width":s,"title":e,"frameborder":"0","allowfullscreen":"","allowtransparency":"","scrolling":"no","sandbox":"allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation","role":"region","aria-label":"Advertisement","tabindex":"0"});return vs(n)&&r.setAttribute("allow","attribution-reporting 'src'"),r}(this.win,this.getIframeTitle(),i,n),this.uiHandler.isStickyAd()||os(this.iframe);let h="";const c=new s;xn()?oe(this.iframe,"load",(()=>{const t=this.iframe.contentDocument.body;this.TD(rt(t)).then(c.resolve)})):(h=a.ownerDocument.body.outerHTML,c.resolve());const l=((t,e,i)=>`<!DOCTYPE html>\n  <html ⚡4ads lang="en">\n  <head>\n    <base href="${D(t)}">\n    <meta charset="UTF-8">\n    <meta http-equiv=Content-Security-Policy content="\n      img-src * data:;\n      media-src *;\n      font-src *;\n      connect-src *;\n      script-src ${Dn()};\n      object-src 'none';\n      child-src 'none';\n      default-src 'none';\n      style-src ${Bn} 'unsafe-inline';\n    ">\n    ${e}\n  </head>\n  <body>${i}</body>\n  </html>`)(rt(this.sD),a.outerHTML,h),d=this.KD(l,r,o,!0);Promise.all([d,c.promise]).then((t=>{const e=t[0];e&&e.renderCompleted()}));const u=r.map((t=>t.extensionId));return d.then((t=>{e(),this.WD(t,{minifiedCreative:"",customStylesheets:[],customElementExtensions:u},e)}))}$D(t){rt(t.minifiedCreative),rt(!!this.element.ownerDocument),this.gD("renderFriendlyStart"),this.HD(),this.iframe=j(this.element.ownerDocument,"iframe",{"height":this.lD.height,"width":this.lD.width,"frameborder":"0","allowfullscreen":"","allowtransparency":"","scrolling":"no","title":this.getIframeTitle(),"role":"region","aria-label":"Advertisement","tabindex":"0"}),this.uiHandler.isStickyAd()||os(this.iframe);const e=[];t.customStylesheets&&t.customStylesheets.forEach((t=>{const i=t.href;i&&e.push(i)}));const i=this.verifyStillCurrent(),{minifiedCreative:s}=t,n=Gs(t);return this.KD(s,n,e||[],!1).then((e=>this.WD(e,t,i)))}KD(t,e,n,r){return function(t,e,n,r){const o=pt(w(t)),a=jt(o),h=Pt(o);Ae(t,"visibility","hidden"),t.setAttribute("referrerpolicy","unsafe-url"),t.setAttribute("marginheight","0"),t.setAttribute("marginwidth","0");const c=n.extensions||[];kn(o,c);const l=n.skipHtmlMerge?n.html:function(t){const e=t.html,i=e.toUpperCase();let s=i.indexOf("<HEAD");-1!=s&&(s=i.indexOf(">",s+1)+1),-1==s&&(s=i.indexOf("<BODY")),-1==s&&(s=i.indexOf("<HTML"),-1!=s&&(s=i.indexOf(">",s+1)+1));const n=[];s>0&&n.push(e.substring(0,s)),n.push(`<base href="${D(t.url)}">`),t.fonts&&t.fonts.forEach((t=>{n.push(`<link href="${D(t)}" rel="stylesheet" type="text/css">`)}));const r=Dn();return n.push(`<meta http-equiv=Content-Security-Policy content="script-src ${r};object-src 'none';child-src 'none'">`),s>0?n.push(e.substring(s)):n.push(e),n.join("")}(n);t.onload=()=>{t.readyState="complete"};const d=()=>{t.contentWindow.addEventListener("securitypolicyviolation",(t=>{}))};let u,p;if(xn())t.srcdoc=l,u=ae(t),e.appendChild(t),d();else{t.src="about:blank",e.appendChild(t);const i=t.contentWindow.document;d(),i.open(),i.write(rt(l)),u=ae(t.contentWindow),i.close()}return p=Vn(t)?i():new Promise((e=>{const i=o.setInterval((()=>{Vn(t)&&(e(),o.clearInterval(i))}),5);u.catch((t=>{Q(t)})).then((()=>{e(),o.clearInterval(i)}))})),p.then((()=>{const e=t.contentWindow,i=n.host&&n.host.signals(),o=h.installFieDoc(n.url,e,{signals:i}),l=new class{constructor(t,e,i,n){this.iframe=t,this.win=t.contentWindow,this.ampdoc=n,this.spec=e,this.host=e.host||null,this.Or=Date.now(),this.ni=this.ampdoc?this.ampdoc.signals():this.host?this.host.signals():new class{constructor(){this.ti=_(),this.ii=null}get(t){const e=this.ti[t];return null==e?null:e}whenSignal(t){var e;let i=null===(e=this.ii)||void 0===e?void 0:e[t];if(!i){const e=this.ti[t];i=null!=e?{promise:"number"==typeof e?Promise.resolve(e):Promise.reject(e)}:new s,this.ii||(this.ii=_()),this.ii[t]=i}return i.promise}signal(t,e){var i;if(null!=this.ti[t])return;const s=null!=e?e:Date.now();this.ti[t]=s;const n=null===(i=this.ii)||void 0===i?void 0:i[t];null!=n&&n.resolve&&(n.resolve(s),n.resolve=void 0,n.reject=void 0)}rejectSignal(t,e){var i;if(null!=this.ti[t])return;this.ti[t]=e;const s=null===(i=this.ii)||void 0===i?void 0:i[t];null!=s&&s.reject&&(s.reject(e),s.promise.catch((()=>{})),s.resolve=void 0,s.reject=void 0)}reset(t){var e;this.ti[t]&&delete this.ti[t];const i=null===(e=this.ii)||void 0===e?void 0:e[t];i&&!i.resolve&&delete this.ii[t]}},this.qD=new s,this.YD=Promise.all([i,this.whenRenderStarted()]),this.ampdoc&&this.whenRenderComplete().then((()=>this.ampdoc.setReady())),this.win.addEventListener("resize",(()=>this.XD()))}destroy(){(function(t){const e=Tt(t);for(const t in e){if(!Object.prototype.hasOwnProperty.call(e,t))continue;const i=e[t];i.sharedInstance||(i.obj?vt(t,i.obj):i.promise&&i.promise.then((e=>vt(t,e))))}})(this.win),this.ampdoc&&this.ampdoc.dispose()}getStartTime(){return this.Or}getUrl(){return this.spec.url}signals(){return this.ni}whenRenderStarted(){return this.ni.whenSignal(le)}whenWindowLoaded(){return this.YD}whenIniLoaded(){return this.ni.whenSignal(de)}whenRenderComplete(){return this.qD.promise}renderCompleted(){this.qD.resolve()}pause(){this.ampdoc&&this.ampdoc.overrideVisibilityState(Fs)}resume(){this.ampdoc&&this.ampdoc.overrideVisibilityState(zs)}tD(){let t;var e;this.host?this.host.renderStarted():this.ni.signal(le),this.spec.skipHtmlMerge||this.qD.resolve(),Ae(this.iframe,"visibility",""),this.win.document&&this.win.document.body&&(this.win.document.documentElement.classList.add("i-amphtml-fie"),Te(this.win.document.body,{opacity:1,visibility:"visible",animation:"none"})),t=this.host?this.host.getLayoutBox():ui(0,0,this.win.innerWidth,this.win.innerHeight),Promise.all([this.whenRenderComplete(),(e=this.ampdoc,this.win,function(t,e){const i=wt(t);return i.signals().whenSignal(vi).then((()=>{const t=Ut(i).get().filter((t=>!bi.includes(t.element.tagName))).map((t=>t.element));return 0===t.length?Promise.resolve([]):new Promise((e=>{const{win:s}=i,n=new s.IntersectionObserver((t=>{n.disconnect();const i=[];for(let e=0;e<t.length;e++){const{isIntersecting:s,target:n}=t[e];s&&i.push(n)}e(i)}),{root:U(s)?s.document:null,threshold:.01});for(let e=0;e<Math.min(t.length,100);e++)n.observe(t[e])})).then((t=>Promise.all(t.map((t=>t.whenLoaded())))))}))}(e))]).then((()=>{this.ni.signal(de)}))}getBodyElement(){return(this.iframe.contentDocument||this.iframe.contentWindow.document).body}XD(){this.JD().mutateElement(this.win.document.documentElement,(()=>{}))}JD(){return Dt(this.iframe)}QD(t){return this.JD().measureMutateElement(this.iframe,t.measure||null,t.mutate)}enterFullOverlayMode(){let t;return ot("amp-ad"==this.iframe.parentNode.tagName.toLowerCase(),"Only <amp-ad> is allowed to enter lightbox mode."),this.QD({measure:()=>{const e=this.host?this.host.getLayoutBox():this.iframe.getBoundingClientRect(),i=-qt(this.iframe).getScrollTop(),{height:s,left:n,top:r,width:o}=pi(e,0,i);t={top:ve(r),left:ve(n),width:ve(o),height:ve(s)}},mutate:()=>{ge(this.iframe,{"position":"fixed","left":0,"right":0,"bottom":0,"width":"100vw","top":0,"height":"100vh"}),ge(this.getBodyElement(),{"background":"transparent","position":"absolute","bottom":"auto","right":"auto","top":t.top,"left":t.left,"width":t.width,"height":t.height})}})}leaveFullOverlayMode(){return this.QD({mutate:()=>{Ee(this.iframe,["position","left","right","top","bottom","width","height"]),Ee(this.getBodyElement(),["position","top","left","width","height","bottom","right"])}})}}(t,n,u,o);return t.__AMP_EMBED__=l,e.frameElement?Un.installExtensionsInEmbed(l,a,o,c,r).then((()=>e.frameElement?l:null)):null}))}(rt(this.iframe),this.element,{host:this.element,url:rt(this.sD),html:t,extensions:e,fonts:n,skipHtmlMerge:r},((t,e)=>this.ZD(t,e)))}ZD(t,e){const s=this.getAmpDoc();!function(t,e){!function(t,e,i){At(ft(t),t,"url-replace",(function(){return i}),!0)}(t,0,new class{constructor(t,e){this.ampdoc=t,this.Cr=e}expandStringSync(t,e,i){return new Us(this.Cr,e,void 0,!0,i,!0).expand(t)}expandStringAsync(t,e,i){return new Us(this.Cr,e,void 0,void 0,i,!0).expand(t)}expandUrlSync(t,e,i){return this.mc(t,new Us(this.Cr,e,void 0,!0,i).expand(t))}expandUrlAsync(t,e,i,s){return new Us(this.Cr,e,void 0,void 0,i,s).expand(t).then((e=>this.mc(t,e)))}expandInputValueAsync(t){return this._c(t,!1)}expandInputValueSync(t){return this._c(t,!0)}_c(t,e){rt("INPUT"==t.tagName&&"hidden"==(t.getAttribute("type")||"").toLowerCase());const i=this.Ac(t);if(!i)return e?t.value:Promise.resolve(t.value);void 0===t["amp-original-value"]&&(t["amp-original-value"]=t.value);const s=new Us(this.Cr,void 0,void 0,e,i).expand(t["amp-original-value"]||t.value);return e?t.value=s:s.then((e=>(t.value=e,e)))}Ac(t,e){const i=t.getAttribute("data-amp-replace");if(!i)return;const s={};return i.trim().split(/\s+/).forEach((t=>{e&&!T(e,t)||(s[t]=!0)})),s}Yt(t){const e=Mt(this.ampdoc);if(t.origin==je(e.canonicalUrl).origin||t.origin==je(e.sourceUrl).origin)return!0;const i=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin");if(i){const e=i.trim().split(/\s+/);for(let i=0;i<e.length;i++)if(t.origin==je(e[i]).origin)return!0}return!1}maybeExpandLink(t,e){rt("A"==t.tagName);const i=t;let s=i.getAttribute("data-amp-addparams")||"";const n=this.Ac(i,{"CLIENT_ID":!0,"QUERY_PARAM":!0,"PAGE_VIEW_ID":!0,"PAGE_VIEW_ID_64":!0,"NAV_TIMING":!0});if(!n&&!s&&!e)return;let r=i["amp-original-href"]||i.getAttribute("href");const o=je(r);null==i["amp-original-href"]&&(i["amp-original-href"]=r);const a=this.Yt(o);if(s&&(s=a?this.gc(s,n):s,r=De(r,z(s))),!a)return i.href=r;if(e){if(!n||!n.QUERY_PARAM){const t={"QUERY_PARAM":!0};e=this.expandUrlSync(e,void 0,t)}r=De(r,z(e))}return r=this.gc(r,n),i.href=r}gc(t,e){return e?this.expandUrlSync(t,void 0,e):t}collectVars(t,e){const i=Object.create(null);return new Us(this.Cr,e,i).expand(t).then((()=>i))}collectDisallowedVarsSync(t){const e=t.getAttribute("src"),i=new Us(this.Cr).getMacroNames(e),s=this.Ac(t);return s?i.filter((t=>!s[t])):i}mc(t,e){return je(e).protocol!=je(t).protocol?(it().error("UrlReplacements","Illegal replacement of the protocol: ",t),t):(ot($e(e),"The replacement url has invalid protocol: %s",e),e)}getVariableSource(){return this.Cr}}(t,e))}(e,new class extends class{constructor(t){this.ampdoc=t,this.Pc=Object.create(null),this.vc=!1,this.Ec()}Ze(){this.initialize(),this.vc=!0}initialize(){}get(t){return this.vc||this.Ze(),this.Pc[t]}set(t,e){return rt(-1==t.indexOf("RETURN")),this.Pc[t]=this.Pc[t]||{sync:void 0,async:void 0},this.Pc[t].sync=e,this}setAsync(t,e){return rt(-1==t.indexOf("RETURN")),this.Pc[t]=this.Pc[t]||{sync:void 0,async:void 0},this.Pc[t].async=e,this}setBoth(t,e,i){return this.set(t,e).setAsync(t,i)}getExpr(t,e){this.vc||this.Ze();const i=a(a({},this.Pc),t);return this.Tc(Object.keys(i),e)}Tc(t,e){if(this.Ec()&&(t=t.filter((t=>this.Ec().includes(t)))),e&&(t=t.filter((t=>e[t]))),0===t.length)return/_^/g;t.sort(((t,e)=>e.length-t.length));const i=t.map((t=>"$"===t[0]?"\\"+t:t)).join("|");return new RegExp("\\$?("+i+")","g")}Ec(){return this.Rc?this.Rc:this.ampdoc.isSingleDoc()&&fi(this.ampdoc.getRootNode())?(this.Rc=[""],this.Rc):void 0}}{constructor(t,e){super(t);const i=t.getHeadNode(),s=$t(i);this.HU=s.getVariableSource(),this.i=e}initialize(){for(let t=0;t<$s.length;t++){const e=$s[t],i=this.HU.get(e);this.set(e,i.sync).setAsync(e,i.async)}this.set("NAV_TIMING",((t,e)=>(ot(t,"The first argument to NAV_TIMING, the start attribute name, is required"),_i(this.i,t,e)))).setAsync("NAV_TIMING",((t,e)=>(ot(t,"The first argument to NAV_TIMING, the start attribute name, is required"),function(t,e,s){const n=Ai[e]||3,r=s?Ai[s]||3:n,o=Math.max(n,r);let a;if(1===o)a=i();else if(2===o)h=t.document,a=new Promise((t=>{!function(t,e,i){let s=e(t);if(s)i(t);else{const n=()=>{e(t)&&(s||(s=!0,i(t)),t.removeEventListener("readystatechange",n))};t.addEventListener("readystatechange",n)}}(h,gi,t)}));else if(3===o)a=ae(t);else if(4===o){const e=Lt(t);a=ae(t).then((()=>e.promise(1)))}var h;return rt(a),a.then((()=>_i(t,e,s)))}(this.i,t,e)))),this.set("NAV_TYPE",(()=>Ti(this.i,"type"))),this.set("NAV_REDIRECT_COUNT",(()=>Ti(this.i,"redirectCount"))),this.set("HTML_ATTR",this.KU.bind(this)),this.set("CLIENT_ID",(()=>null))}KU(t,e){const i="A4AVariableSource",s=Array.prototype.slice.call(arguments,1);if(!t||!s.length)return"[]";if(s.length>10)return it().error(i,"At most 10 may be requested."),"[]";let n;t=decodeURI(t);try{n=this.i.document.querySelectorAll(t)}catch(e){return it().error(i,`Invalid selector: ${t}`),"[]"}if(n.length>20)return it().error(i,"CSS selector may match at most 20 elements."),"[]";const r=[];for(let t=0;t<n.length&&r.length<10;++t){const e={};let i=!1;for(let r=0;r<s.length;++r){const o=s[r];n[t].hasAttribute(o)&&(e[o]=n[t].getAttribute(o),i=!0)}i&&r.push(e)}return JSON.stringify(r)}}(s,t))}WD(t,e,i){i(),this.rD=t,Ae(this.WU(t),"visibility","visible"),Er(this.onCreativeRender,this,(t=>{nt().error(dr,this.element.getAttribute("type"),"Error executing onCreativeRender",t)}))(e,t.whenWindowLoaded()),t.whenIniLoaded().then((()=>{i(),this.gD("friendlyIframeIniLoad")}))}WU(t){return rt((t.iframe.contentDocument||t.win.document).body)}YU(e){const i=Object.assign(e,{"height":this.lD.height,"width":this.lD.width,"title":this.getIframeTitle(),"role":"region","aria-label":"Advertisement","tabindex":"0"});this.sentinel&&(i["data-amp-3p-sentinel"]=this.sentinel);let s="sync-xhr 'none';";vs(this.win.document)&&(s+="attribution-reporting 'src';"),i.allow=s,this.HD(),this.iframe=j(this.element.ownerDocument,"iframe",Object.assign(i,_r)),this.sandboxHTMLCreativeFrame()&&function(t){if(!t.sandbox||!t.sandbox.supports)return;const e=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"];for(let i=0;i<e.length;i++){const s=e[i];if(!t.sandbox.supports(s))return}t.sandbox=e.join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" ")}(this.iframe),this.oD=new t.AmpAdXOriginIframeHandler(this);const n=this.oD.init(this.iframe,!0,this.letCreativeTriggerRenderStart());return Er(this.onCreativeRender,this,(t=>{nt().error(dr,this.element.getAttribute("type"),"Error executing onCreativeRender",t)}))(null),n}jD(t){this.gD("renderCrossDomainStart");const e=Yn(this.win,this.element,this.sentinel),i=this.element.getIntersectionChangeEntry();return e._context.initialIntersection=Ds(i),this.YU({"src":Kt(this.win).getCorsUrl(this.win,t),"name":JSON.stringify(e)})}letCreativeTriggerRenderStart(){return!1}BD(t){const e=this.cD;rt(e==gr||e==Ar),this.gD("renderSafeFrameStart");const i=this.verifyStillCurrent();return n((()=>as(t))).then((t=>{let s;i();let n="";switch(e){case gr:s=this.getSafeframePath()+"?n=0";break;case Ar:s=Xn(this.win,"nameframe");break;default:return it().error("A4A","A4A received unrecognized cross-domain name attribute iframe rendering mode request: %s.  Unable to render a creative for slot %s.",e,this.element.getAttribute("id")),Promise.reject("Unrecognized rendering mode request")}let r=Yn(this.win,this.element,this.sentinel,this.getAdditionalContextMetadata(e==gr));const o=this.element.getIntersectionChangeEntry();return r.initialIntersection=Ds(o),e==Ar?(r.creative=t,n=JSON.stringify(r)):e==gr&&(r=JSON.stringify(r),n=`${this.safeframeVersion};${t.length};${t}${r}`),this.YU({"src":s,"name":n})}))}getAmpAdMetadata(t){let e,i=-1;for(let s=0;s<ar.length&&(e=ar[s],i=t.lastIndexOf(e),!(i>=0));s++);if(i<0)return null;const s=t.lastIndexOf("<\/script>");if(s<0)return null;try{const n=b(t.slice(i+e.length,s)),r=n.ampRuntimeUtf16CharOffsets;if(!l(r)||2!=r.length||"number"!=typeof r[0]||"number"!=typeof r[1])throw new Error("Invalid runtime offsets");const o={};if(n.customElementExtensions){if(o.customElementExtensions=n.customElementExtensions,!l(o.customElementExtensions))throw new Error("Invalid extensions",o.customElementExtensions)}else o.customElementExtensions=[];if(n.extensions&&(o.extensions=n.extensions),n.customStylesheets){o.customStylesheets=n.customStylesheets;const t="Invalid custom stylesheets";if(!l(o.customStylesheets))throw new Error(t);const e=Ft(this.element);o.customStylesheets.forEach((i=>{if(!A(i)||!i.href||"string"!=typeof i.href||!e.isSecure(i.href))throw new Error(t)}))}if(l(n.images)&&(o.images=n.images.splice(0,5)),this.isSinglePageStoryAd){if(!n.ctaType)throw new Error(mr);this.element.setAttribute("data-vars-ctatype",n.ctaType),this.element.setAttribute("data-vars-ctaurl",n.ctaUrl)}return o.minifiedCreative=t.slice(0,r[0])+t.slice(r[1],i)+t.slice(s+"<\/script>".length),o}catch(t){if(this.isSinglePageStoryAd)throw t;return null}}getSafeframePath(){return`https://tpc.googlesyndication.com/safeframe/${this.safeframeVersion}/html/container.html`}gD(t){if(!this.mD)return;const e=rt(br[t]),i=a({"time":Math.round(this.dD())},this.getA4aAnalyticsVars(e));se(this.element,e,i)}getA4aAnalyticsVars(t){return{}}getA4aAnalyticsConfig(){return null}_D(t,e,i){const s=t!=h.UNKNOWN&&t!=h.INSUFFICIENT&&((null==i?void 0:i.gdprApplies)&&e&&(null==i?void 0:i.purposeOne)||!(null!=i&&i.gdprApplies));if(this.element.getAttribute("rtc-config"))return at(this.getAmpDoc(),"real-time-config",(function(t){return new class{constructor(t){this.Uj=t}maybeExecuteRealTimeConfig(t,e,i,s,n,r){return new class{constructor(t){this.Uj=t,this.i=t.win,this.XU={},this.QU=null,this.ZU=[],this.N$=null,this.wy=null,this.Ty=null,this.zy=null}C$(t,e,i,s){return i&&this.sendErrorMessage(t,i),Promise.resolve({error:t,callout:e,rtcTime:s||0})}sendErrorMessage(t,e){if(Math.random()>=.01)return;const i={ERROR_TYPE:t,HREF:this.i.location.href},s=$t(this.Uj).expandUrlSync(e,i,{ERROR_TYPE:!0,HREF:!0});(new this.i.Image).src=s}D$(t){const e=Ft(this.Uj).parse(t);return(e.hostname+e.pathname).substr(0,50)}isValidCalloutForConsentState(t,e){const{sendRegardlessOfConsentState:i}=t;if(!A(t)||!i)return!!e;if("boolean"==typeof i)return i;if(l(i)){for(let t=0;t<i.length;t++){if(this.wy==h[i[t]])return!0;h[i[t]]}return!1}return!!e}modifyRtcConfigForConsentStateSettings(){if(null==this.wy||this.wy==h.SUFFICIENT||this.wy==h.UNKNOWN_NOT_REQUIRED)return;const t=this.isValidCalloutForConsentState(this.N$);this.N$.urls=(this.N$.urls||[]).filter((e=>this.isValidCalloutForConsentState(e,t))),Object.keys(this.N$.vendors||{}).forEach((e=>{this.isValidCalloutForConsentState(this.N$.vendors[e],t)||delete this.N$.vendors[e]}))}assignMacros(t){return t.TIMEOUT=()=>this.N$.timeoutMillis,t.CONSENT_STATE=()=>this.wy,t.CONSENT_STRING=()=>this.Ty,t.CONSENT_METADATA=t=>(ot(t,"CONSENT_METADATA macro must contain a key"),this.zy?this.zy[t]:null),t}handleRtcForCustomUrls(t,e,i){(this.N$.urls||[]).forEach((s=>{let n,r;A(s)?(n=s.url,r=s.errorReportingUrl):"string"==typeof s&&(n=s),this.U$(n,t,r,e,void 0,i)}))}handleRtcForVendorUrls(t,e){Object.keys(this.N$.vendors||[]).forEach((i=>{const s=Wt[i.toLowerCase()],n=s?s.url:"",r=s&&s.errorReportingUrl?s.errorReportingUrl:"";if(!n)return this.ZU.push(this.C$("9",i,r));const o=A(this.N$.vendors[i].macros)?this.N$.vendors[i].macros:this.N$.vendors[i],a={};Object.keys(o).forEach((t=>{if(s.macros&&s.macros.includes(t)){const e=o[t];a[t]=A(e)||l(e)?JSON.stringify(e):e}else it().error("real-time-config",`Unknown macro: ${t} for vendor: ${i}`)}));const h=Object.assign(a,t);this.U$(n,h,r,e,i.toLowerCase())}))}U$(t,e,i,s,n,r){let{timeoutMillis:o}=this.N$;const h=n||this.D$(t),c=t=>5==Object.keys(this.XU).length?this.C$("7",h,i):Ft(this.Uj).isSecure(t)||Le(t)?this.XU[t]?this.C$("5",h,i):(this.XU[t]=!0,t.length>16384&&(t=this.L$(t)),this.k$(t,o,h,s,i,r)):this.C$("6",h,i),l=a({},Ze);Object.keys(e).forEach((t=>l[t]=!0));const d=Date.now();this.ZU.push(Lt(this.i).timeoutPromise(o,$t(this.Uj).expandUrlAsync(t,e,l)).then((t=>(s(),o-=d-Date.now(),c(t)))).catch((t=>Xe(t)?void 0:this.C$("11",h,i))))}L$(t){return(t=t.substr(0,16372).replace(/%\w?$/,""))+"&__trunc__=1"}k$(t,e,i,s,n,r){let o;return o=Le(t)?(a=r,Rt(a,"amp-script","amp-script")).then((e=>(ot(e,"AMP-SCRIPT is not installed."),e.fetch(t)))).then((t=>{s();const e=Date.now()-this.QU;return"object"!=typeof t?this.C$("4",i,n,e):{response:t,rtcTime:e,callout:i}})):Kt(this.i).fetchJson(t,{credentials:"include"}).then((t=>(s(),t.text().then((t=>{s();const e=Date.now()-this.QU;if(!t)return{rtcTime:e,callout:i};const r=E(t);return r?{response:r,rtcTime:e,callout:i}:this.C$("4",i,n,e)}))))),Lt(this.i).timeoutPromise(e,o).catch((t=>Xe(t)?void 0:this.C$(/^timeout/.test(t.message)?"10":"8",i,n,Date.now()-this.QU)));var a}execute(t,e,i,s,n,r){if(this.G$(t))return this.wy=i,this.Ty=s,this.zy=n,this.modifyRtcConfigForConsentStateSettings(),e=this.assignMacros(e),this.QU=Date.now(),this.handleRtcForCustomUrls(e,r,t),this.handleRtcForVendorUrls(e,r),Promise.all(this.ZU)}G$(t){const e=t.getAttribute("rtc-config");if(!e)return!1;const i=E(e);if(!i)return!1;let s;try{if(ot(i.vendors||i.urls,"RTC Config must specify vendors or urls"),Object.keys(i).forEach((t=>{switch(t){case"vendors":ot(A(i[t]),"RTC invalid vendors");break;case"urls":ot(l(i[t]),"RTC invalid urls");break;case"timeoutMillis":s=parseInt(i[t],10),(isNaN(s)||s>1e3||s<0)&&(s=void 0)}})),!Object.keys(i.vendors||{}).length&&!(i.urls||[]).length)return!1;const t=t=>{const e=t.errorReportingUrl;e&&!Ft(this.Uj).isSecure(e)&&(t.errorReportingUrl=void 0)};(i.urls||[]).forEach((e=>{A(e)&&t(e)})),t(i)}catch(t){return!1}return i.timeoutMillis=void 0!==s?s:1e3,this.N$=i,!0}}(this.Uj).execute(t,e,i,s,n,r)}}(t)})),this.zD().then((n=>{return n?void 0:(r=this.getAmpDoc(),dt(r,"real-time-config")).then((n=>n.maybeExecuteRealTimeConfig(this.element,this.H$(s),t,e,i,this.verifyStillCurrent())));var r}))}H$(t){return{}}shouldPreferentialRenderWithoutCrypto(){return!1}getNonAmpCreativeRenderingMethod(t){if(t){if("client_cache"===(e=t)||"safeframe"===e||"nameframe"===e||"iframe_get"===e)return t;nt().error("AMP-A4A",`cross-origin render mode header ${t}`)}var e;return kt(this.win).isIos()?Ar:null}getAdditionalContextMetadata(t){}isVerifiedAmpCreative(){return this.aD}getIframeTitle(){return this.element.getAttribute("title")||"3rd party ad content"}B$(){const t=[],e=this.getAmpDoc().getMetaByName("amp-usqp");if(e){const i=e.split(",");for(let e=0;e<i.length;e++){const s=i[e].split("=");if(2!==s.length)continue;const n=Number(s[1]);if(!isNaN(s[0])&&n>=0&&n<100){const e=m(s[1],2,"0");t.push(s[0]+e)}}}return t}};function Rr(t,e){if(!e||t.args&&t.args.au)return;const i=e.indexOf("?");-1!=i&&((t.args||(t.args={})).au=e.substring(i+1,i+251))}function Sr(t){const e="AMP_FAST_FETCH_SIGNATURE_VERIFIER_";return t[e]||(t[e]=new class{constructor(t,e){this.i=t,this.K$=e,this.W$=Ot(t).isPkcsAvailable()?{}:null,this.dD=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now}loadKeyset(t){if(this.W$&&!this.W$[t]){const e={},i=this.q$(e,t,null);this.W$[t]={promise:i,keys:e}}}verify(t,e){if(!e.has(qn))return Promise.resolve(1);const i=e.get(qn),s=/^([A-Za-z0-9._-]+):([A-Za-z0-9._-]+):([A-Za-z0-9+/]{341}[AQgw]==)$/.exec(i);return s?this.verifyCreativeAndSignature(s[1],s[2],(n=s[3],hs(atob(n))),t):(it().error("AMP-A4A",`Invalid signature header: ${i.split(":")[0]}`),Promise.resolve(3));var n}verifyCreativeAndSignature(t,e,i,s){if(!this.W$)return Promise.resolve(4);const n=this.W$[t];return rt(n),n.promise.then((r=>{if(!r)return 1;const o=n.keys[e];return void 0===o?(n.promise=this.q$(n.keys,t,e).then((t=>(void 0===n.keys[e]&&(n.keys[e]=null),t))),this.verifyCreativeAndSignature(t,e,i,s)):null===o?2:o.then((t=>t?Ot(this.i).verifyPkcs(t,i,s).then((t=>t?0:3),(t=>{const e=t&&t.message;return nt().error("AMP-A4A",`Failed to verify signature: ${e}`),1})):1))}))}q$(t,e,i){let s=this.K$[e];return null!=i&&(s+="?kid="+encodeURIComponent(i)),Kt(this.i).fetchJson(s,{mode:"cors",method:"GET",ampCors:!1,credentials:"omit"}).then((i=>(rt(200===i.status),rt("application/jwk-set+json"==i.headers.get("Content-Type")),i.json().then((i=>{const s=i;return s&&l(s.keys)?(s.keys.forEach((i=>{i&&"string"==typeof i.kid?void 0===t[i.kid]&&(t[i.kid]=Ot(this.i).importPkcsKey(i).catch((t=>{const s=JSON.stringify(i),n=t&&t.message;return Kn(e,`Failed to import key (${s}): ${n}`),null}))):Kn(e,`Key (${JSON.stringify(i)}) has no "kid"`)})),!0):(Kn(e,`Key set (${JSON.stringify(s)}) has no "keys"`),!1)}),(t=>(Kn(e,`Failed to parse JSON: ${t&&t.response}`),!1))))),(t=>(t&&t.response&&Kn(e,`Status code ${t.response.status}`),!1)))}}(t,Cs))}function wr(t){return!!(e=t.Element.prototype.attachShadow)&&-1!=e.toString().indexOf("[native code]");var e}var Pr="tagForChildDirectedTreatment",Nr=[function(t){const e={},i=[];let s=0;const n=[];return t.forEach((t=>{const r=rt(t.element.getAttribute("data-slot")).split("/").map((t=>t.replace(/,/g,":"))),o=[];for(let t=0;t<r.length;t++){if(""==r[t])continue;let n=e[r[t]];null==n&&(i.push(r[t]),e[r[t]]=n=s++),o.push(n)}n.push(o.join("/"))})),{"iu_parts":i.join(),"enc_prev_ius":n.join()}},function(t){return Cr(t,(t=>t.jsonTargeting&&t.jsonTargeting.cookieOptOut?{"co":"1"}:null))},function(t){return{"adks":t.map((t=>rt(t.adKey))).join()}},function(t){return{"prev_iu_szs":t.map((t=>rt(t.parameterSize))).join()}},function(t){return Cr(t,(t=>t.jsonTargeting&&t.jsonTargeting[Pr]?{"tfcd":t.jsonTargeting[Pr]}:null))},function(t){return Cr(t,(t=>Wi(t.element)?{"adtest":"on"}:null))},function(t){let e=null;for(let i=0;i<t.length;i++){const s=t[i];if(!s.jsonTargeting||!s.jsonTargeting.targeting){e=null;break}e?Object.keys(e).map((t=>{e[t]!=s.jsonTargeting.targeting[t]&&delete e[t]})):e=a({},s.jsonTargeting.targeting)}let i=!1;const s=[];if(t.forEach((t=>{(t=>t.jsonTargeting&&(t.jsonTargeting.targeting||t.jsonTargeting.categoryExclusions))(t)?(i=!0,s.push(Or(t.jsonTargeting.targeting||null,t.jsonTargeting.categoryExclusions||null,e))):s.push("")})),!e&&!i)return null;const n={};return e&&Object.keys(e).length&&(n.csp=Or(e,null,null)),i&&(n.prev_scp=s.join("|")),n},function(t){const e={};((t.length&&/(?:#|,)deid=([\d,]+)/i.exec(t[0].win.location.hash)||[])[1]||"").split(",").forEach((t=>t&&(e[t]=1))),t.forEach((t=>t.experimentIds.forEach((t=>e[t]=1))));const i=Object.keys(e).join();return i?{"eid":i}:null},function(t){let e=!1;const i=[];return t.forEach((t=>{e=e||t.forceSafeframe,i.push(Number(t.forceSafeframe))})),e?{"fsfs":i.join()}:null},function(t){const e=[],i=[];return t.forEach((t=>{const s=mi(t.element);e.push(s.left),i.push(s.top)})),{"adxs":e.join(),"adys":i.join()}},function(t){let e=!1;const i=[];return t.forEach((t=>{const s=zi(t.element);i.push(s.join()),e=e||!!s.length})),e?{"acts":i.join("|")}:null},function(t){let e=!1;const i=[];return t.forEach((t=>{t.isFluidRequest()?(e=!0,i.push("height")):i.push("0")})),e?{"fluid":i.join()}:null}];function Cr(t,e){for(let i=0;i<t.length;i++){const s=e(t[i]);if(s)return s}return null}function Or(t,e,i){const s=t?Object.keys(t).filter((t=>!i||void 0===i[t])).map((e=>Mr(e,t[e]))):[];return e&&s.push(Mr("excl_cat",e)),s.length?s.join("&"):null}function Mr(t,e){const i=(Array.isArray(e)?e:[e]).map(encodeURIComponent).join();return`${encodeURIComponent(t)}=${i}`}var jr="data-amp-ad-refresh-id";function xr(t){if("false"===t)return null;const e=Number(t);return isNaN(e)||e<30?null:1e3*e}var Dr,kr="initial",Vr="view_pending",Ur={},Lr={},$r=0,Gr="amp-ad-network-doubleclick-impl",zr={SRA_CONTROL:"117152666",SRA:"117152667",SRA_NO_RECOVER:"21062235"},Fr={NO_ZINDEX:"21065356",HOLDBACK:"21065357"},Hr="dfp-render-on-idle-cwv-exp",Br={CONTROL:"20208860",EXPERIMENT:"20208859"},qr="data-lazy-fetch",Kr={"CLIENT_ID":!0},Wr={},Yr=null,Jr=null;function Xr(t){const e=/^(?:\/)?(\d+)/.exec(t.getAttribute("data-slot"));return e?e[1]:""}function Qr(t,e){return"1"===String(t)||"1"===String(e)?"1":"0"===String(t)||"0"===String(e)?"0":null}t.registerElement(Gr,class extends yr{constructor(t){var e,i,n;super(t),this.Y$=null,this.Fa=jt(this.win),this.pK=(e=this.win,n="performance",Et(i=pt(i=e),n)?gt(i,n):null),this.mK=null,this.fK=null,this.parameterSize=null,this.gK=null,this.X$=null,this.jsonTargeting=null,this.adKey="0",this.experimentIds=[],this.ampExperimentIds=[],this.useSra=!1,this.sraDeferred=null,this.Nz=null,this.AK=0,this.Oz=0,this._K=!1,this.TK=!1,this.IK=null,this.vK={},this.bK=null,this.EK=!1,this.yK=null,this.forceSafeframe=!1,"forceSafeframe"in this.element.dataset&&/^(1|(true))$/i.test(this.element.dataset.forceSafeframe)&&(this.forceSafeframe=!0),this.consentTuple={},this.getAdUrlDeferred=new s,this.RK=!1,this.SK=!1,this.Sz=null,this.wK=!1,this.PK=!1}NK(){if(this.EK)return this.EK;if(this.element.getAttribute("data-loading-strategy"))return!1;const t=this.postAdResponseExperimentFeatures["render-idle-vp"],e=parseInt(t,10);if(t&&isNaN(e))return!1;if(e)return e;let i=12;if(!this.pK)return i;const s=ie(this.win,Hr);return s===Br.CONTROL?this.pK.addEnabledExperiment("dfp-idle-cwv-control"):s===Br.EXPERIMENT&&(i=3,this.pK.addEnabledExperiment("dfp-idle-cwv-exp")),i}idleRenderOutsideViewport(){const t=this.NK();if(!1===t)return t;const e=this.renderOutsideViewport();return"boolean"==typeof e?e:(this.EK=!0,this.whenWithinViewport(e).then((()=>this.EK=!1)),t)}isLayoutSupported(t){return this.TK=t==ss,this._K=this._K||this.TK,this.TK||ns(t)}isValidElement(){return this.isAmpAdElement()}setPageLevelExperiments(t){let e;t&&(e={7:zr.SRA_CONTROL,8:zr.SRA,9:zr.SRA_NO_RECOVER}[t],e&&this.experimentIds.push(e));const i=[{experimentId:"doubleclickSraExp",isTrafficEligible:()=>!e&&!this.win.document.querySelector("meta[name=amp-ad-enable-refresh], amp-ad[type=doubleclick][data-enable-refresh], meta[name=amp-ad-doubleclick-sra]"),branches:Object.keys(zr).map((t=>zr[t]))},{experimentId:"zIndexExp",isTrafficEligible:()=>!0,branches:Object.values(Fr)},{experimentId:Hr,isTrafficEligible:()=>!!this.pK&&!this.element.getAttribute("data-loading-strategy"),branches:Object.values(Br)},{experimentId:"attribution-reporting",isTrafficEligible:()=>vs(this.win.document),branches:["42531929","42531928","42531931","42531930"]}],s=this.CK(i);Object.keys(s).forEach((t=>s[t]&&this.experimentIds.push(s[t])));const n=this.B$();for(let t=0;t<n.length;t++)Yi(n[t],this.element,wi);s.zIndexExp==Fr.HOLDBACK&&(this.wK=!0);const r=ie(this.win,"story-ad-placements");r&&Ji(r,this.element);const o=ie(this.win,"story-ad-auto-advance");o&&Ji(o,this.element)}CK(t){return function(t,e){t.__AMP_EXPERIMENT_BRANCHES=t.__AMP_EXPERIMENT_BRANCHES||{};const i={};for(const n of e){var s;const e=n.experimentId;T(t.__AMP_EXPERIMENT_BRANCHES,e)?i[e]=t.__AMP_EXPERIMENT_BRANCHES[e]:null!==(s=n.isTrafficEligible)&&void 0!==s&&s.call(n,t)?!t.__AMP_EXPERIMENT_BRANCHES[e]&&Qt(t,e)&&(t.__AMP_EXPERIMENT_BRANCHES[e]=ee(n.branches),i[e]=t.__AMP_EXPERIMENT_BRANCHES[e]):t.__AMP_EXPERIMENT_BRANCHES[e]=null}return i}(this.win,t)}MK(){return function(t,e){const i=wt(e).getParam("exp")||z(t.location.search).exp;if(!i)return null;let s,n;return["doubleclick"==(e.getAttribute("type")||"").toLowerCase()?"da":"aa","a4a"].forEach((t=>s=s||(n=new RegExp(`(?:^|,)${t}:(-?\\d+)`).exec(i))&&n[1])),s||null}(this.win,this.element)}jK(){const t="useSameDomainRenderingUntilDeprecated";t in this.element.dataset||(E(this.element.getAttribute("json"))||{})[t],this.getAmpDoc().getMetaByName("amp-3p-iframe-src")}delayAdRequestEnabled(){return"true"===this.element.getAttribute(qr)&&(rr(this.element)||3)}buildCallback(){super.buildCallback(),this.jK(),this.setPageLevelExperiments(this.MK());const t=!!this.win.document.querySelector("meta[name=amp-ad-doubleclick-sra]"),e=!!this.win.document.querySelector(`amp-ad[type=doubleclick][${P(qr)}=true]`);if(this.useSra=!e&&(t||[zr.SRA,zr.SRA_NO_RECOVER].some((t=>this.experimentIds.indexOf(t)>=0))),this.vK.slotId=this.element.getAttribute("data-slot"),this.vK.slotIndex=this.element.getAttribute("data-amp-slot-index"),!this._K){const t=this.element.getAttribute("data-multi-size");this._K=!!t&&-1!=t.indexOf("fluid")}}shouldPreferentialRenderWithoutCrypto(){return rt(!Hi(this.win)),!0}getPageParameters(t,e){const i=function(t){const e=[];for(const i in Wr)t.includes(Wr[i])||e.push(i);return e}(e=e||[this]),{additionalConsent:s,consentSharedData:n,consentString:r,consentStringType:o,gdprApplies:a,gppSectionId:l}=t,d=null==n?void 0:n["doubleclick-tfcd"],u=null==n?void 0:n["doubleclick-tfua"],p=this.jsonTargeting&&this.jsonTargeting[Pr],m=this.jsonTargeting&&this.jsonTargeting.tagForUnderAgeTreatment,f={"ptt":13,"npa":t.consentState==h.INSUFFICIENT||t.consentState==h.UNKNOWN||this.PK?1:null,"gdfp_req":"1","sfv":hr,"u_sd":cs.getDevicePixelRatio(),"gct":this.getLocationQueryParameterValue("google_preview")||null,"psts":i.length?i:null,"gdpr":!0===a?"1":!1===a?"0":null,"gdpr_consent":[void 0,c.TCF_V1,c.TCF_V2].includes(o)?r:null,"addtl_consent":s,"us_privacy":o==c.US_PRIVACY_STRING?r:null,"tfcd":Qr(d,p),"tfua":Qr(u,m),"gpp":o==c.GLOBAL_PRIVACY_PLATFORM?r:null,"gpp_sid":o==c.GLOBAL_PRIVACY_PLATFORM?l:null};return function(t,e,i){if(!function(t){if(!t)return!1;const{consentState:e,consentString:i,gdprApplies:s,purposeOne:n}=t;return!([h.UNKNOWN,h.INSUFFICIENT].includes(e)||s&&(!i||!n&&!function(t){try{if(!t)return!1;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";let i="";for(let s=0;s<t.length;s++){const n=t[s],r=e.indexOf(n);-1!==r&&(i+=r.toString(2).padStart(6,"0"))}return parseInt(i.slice(0,6),2)>=2&&"1"===i[152]}catch(t){return!1}}(i)))}(t))return;const s=ii(e,"__gads");i.cookie=s,i.gpic=ii(e,"__gpi"),!s&&oi(e)&&(i.cookie_enabled="1")}(t,this.win,f),f}skipClientSideValidation(t){return t&&!t.has(qn)}xK(){rt(this.fK),this.win.ampAdGoogleIfiCounter=this.win.ampAdGoogleIfiCounter||1,this.Oz=this.isRefreshing&&this.Oz||this.win.ampAdGoogleIfiCounter++;const t=this.isSinglePageStoryAd?mi(this.element):null;let e=null,i=null,s=null;this.Sz=function(t,e){let i=0,s=-1,n=-1,r=null;var o;return new class{constructor(t=window){this.qz=[],this.i=t}Yz(){return this.qz.filter((t=>!t.complete))}addVisitor(t,e=100){return this.qz.push(new class{constructor(t,e){R(e>0),this.xt=t,this.Jz=e,this.complete=!1}callback(t,e){let i;R(!this.complete);try{i=this.xt(t,e)}catch(t){}--this.Jz&&null==i||(this.complete=!0)}}(t,e)),this}visitAncestorsStartingFrom(t){let e=t,i=[];for(;e&&(i=this.Yz()).length;){const t=be(this.i,e);i.forEach((i=>i.callback(S(e),t))),e=e.parentElement}this.qz.forEach((t=>t.complete=!0))}}(t).addVisitor(bs((t=>s=t)),1).addVisitor(bs((t=>n=t)),100).addVisitor((o=t=>i=t,(t,e)=>e.overflowY&&"visible"!=e.overflowY?(o(4),!0):"none"==e.display?(o(128),!0):void 0),100).addVisitor(((t,e)=>r=e),1).visitAncestorsStartingFrom(e),{fwSignal:i,slotWidth:s,parentWidth:n,parentStyle:r}}(this.win,this.element.parentElement);const{fwSignal:n,parentWidth:r,slotWidth:o}=this.Sz;return this.uiHandler.isStickyAd()?(e="0x-1",i="0x-1"):(e=`${-1==o?r:o}x-1`,i=`${r}x-1`),s=n||"0",a({"iu":this.element.getAttribute("data-slot"),"co":this.jsonTargeting&&this.jsonTargeting.cookieOptOut?"1":null,"adk":this.adKey,"sz":this.isSinglePageStoryAd?"1x1":this.parameterSize,"output":"html","impl":"ifr","adtest":Wi(this.element)?"on":null,"ifi":this.Oz,"rc":this.AK||null,"fluid":this._K?"height":null,"fsf":this.forceSafeframe?"1":null,"msz":e,"psz":i,"fws":s,"scp":Or(this.jsonTargeting&&this.jsonTargeting.targeting||null,this.jsonTargeting&&this.jsonTargeting.categoryExclusions||null,null),"spsa":this.isSinglePageStoryAd?`${t.width}x${t.height}`:null,"ppid":this.jsonTargeting&&this.jsonTargeting.ppid||null},Oi(this))}populateAdUrlState(t){this.consentTuple=t;const e=Number(this.element.getAttribute("data-override-width"))||Number(this.element.getAttribute("width")),i=Number(this.element.getAttribute("data-override-height"))||Number(this.element.getAttribute("height"));this.fK=this.TK?{width:0,height:0}:e&&i?{width:e,height:i}:this.getIntersectionElementLayoutBox(),this.jsonTargeting=E(this.element.getAttribute("json"))||{},this.adKey=this.Wz(`${this.fK.width}x${this.fK.height}`),this.parameterSize=this.DK()}getConsentPolicy(){return null}getAdUrl(t,e,n){this.useSra&&(this.sraDeferred=this.sraDeferred||new s),this.PK=!!n;const r=t||{};if(r.consentState==h.UNKNOWN&&"true"!=this.element.getAttribute("data-npa-on-unknown-consent"))return this.getAdUrlDeferred.resolve(""),Promise.resolve("");if(this.iframe&&!this.isRefreshing)return this.getAdUrlDeferred.resolve(""),Promise.resolve("");e=e||i(),this.populateAdUrlState(r);const o=Date.now(),a=Lt(this.win),c=this.verifyStillCurrent(),l=e.then((t=>(c(),this.kK(t)))),d=a.timeoutPromise(1e3,this.VK(l)).catch((()=>{}));return Promise.all([l,d]).then((t=>{c();const e=t[0];(function(t,e,i,s,n){const r=Oi(t,n);return ji(t,i).then((t=>(Object.assign(s,r,t),xi("https://securepubads.g.doubleclick.net/gampad/ads",s,i))))})(this,0,o,Object.assign(this.xK(),this.getPageParameters(r,void 0),e),this.experimentIds).then((t=>this.getAdUrlDeferred.resolve(t)))})),this.vK.adUrl=this.getAdUrlDeferred.promise,this.getAdUrlDeferred.promise}getServeNpaSignal(){return function(t){if(!t.hasAttribute("always-serve-npa"))return Promise.resolve(!1);const e=t.getAttribute("always-serve-npa");return""==e?Promise.resolve(!0):zt(t).then((t=>{if(!t)return!0;const i=e.split(",");for(let e=0;e<i.length;e++)if(2===t.isInCountryGroup(i[e]))return!0;return!1}))}(this.element)}VK(t){return t.then((()=>{const t=this.jsonTargeting.targeting;if(!t)return i();const e=Object.keys(t).map((e=>this.UK(t[e]).then((i=>{t[e]=i}))));return Promise.all(e)}))}UK(t){return t?l(t)?Promise.all(t.map((t=>this.LK(t)))):this.LK(t):Promise.resolve(t)}LK(t){return $t(this.element).expandStringAsync(t,void 0,Kr)}kK(t){if(!t)return null;const e=[],i=[],s=[];let n;return t.forEach((t=>{if(t&&(e.push(t.rtcTime),i.push(t.error||"2"),s.push(t.callout),t.response)){if(t.response.targeting){const e=this.$K(t.response.targeting,t.callout);this.jsonTargeting.targeting=this.jsonTargeting.targeting?function(t,e,i=10){const s=[],n=[];for(n.push({t:t,s:e,d:0});n.length>0;){const{d:t,s:e,t:r}=n.shift();if(s.includes(e))throw new Error("Source object has a circular reference.");if(s.push(e),r!==e)if(t>i)Object.assign(r,e);else for(const i of Object.keys(e)){const s=e[i];if(T(r,i)){const e=r[i];if(A(s)&&A(e)){n.push({t:e,s:s,d:t+1});continue}}r[i]=s}}return t}(this.jsonTargeting.targeting,e):e}t.response.categoryExclusions&&(n||(n={},this.jsonTargeting.categoryExclusions&&this.jsonTargeting.categoryExclusions.forEach((t=>{n[t]=!0}))),t.response.categoryExclusions.forEach((t=>{n[t]=!0}))),t.response.ppid&&(this.jsonTargeting.ppid=t.response.ppid)}})),n&&(this.jsonTargeting.categoryExclusions=Object.keys(n)),{"artc":e.join()||null,"ati":i.join(),"ard":s.join()}}H$(t){const e={"height":!0,"width":!0,"json":!0,"data-slot":!0,"data-multi-size":!0,"data-multi-size-validation":!0,"data-override-width":!0,"data-override-height":!0,"data-amp-slot-index":!0};return{PAGEVIEWID:()=>Mt(this.element).pageViewId,PAGEVIEWID_64:()=>Mt(this.element).pageViewId64,HREF:()=>this.win.location.href,REFERRER:t=>this.GK(t),TGT:()=>JSON.stringify((E(this.element.getAttribute("json"))||{}).targeting),ADCID:e=>t?Ii(this.getAmpDoc(),"AMP_ECID_GOOGLE","_ga",parseInt(e,10)):Promise.resolve(void 0),ATTR:t=>{if(e[t.toLowerCase()])return this.element.getAttribute(t)},ELEMENT_POS:()=>mi(this.element).top,SCROLL_TOP:()=>qt(this.getAmpDoc()).getScrollTop(),PAGE_HEIGHT:()=>qt(this.getAmpDoc()).getScrollHeight(),BKG_STATE:()=>this.getAmpDoc().isVisible()?"visible":"hidden",CANONICAL_URL:()=>Mt(this.element).canonicalUrl}}GK(t){const e=parseInt(t,10),i=Ht(this.getAmpDoc()).getReferrerUrl();return isNaN(e)||e<0?i:Lt(this.win).timeoutPromise(e,i).catch((()=>{}))}$K(t,e){if(!Wt[e]||Wt[e].disableKeyAppend)return t;const i={};return Object.keys(t).forEach((s=>{i[`${s}_${e}`]=t[s]})),i}onNetworkFailure(t,e){return{adUrl:Fi(e,"n")}}maybeValidateAmpCreative(t,e){if("djb2a-32"!==e.get("AMP-Verification-Checksum-Algorithm"))return super.maybeValidateAmpCreative(t,e);const i=e.get("AMP-Verification-Checksum");return Promise.resolve(i&&p(as(t))==i?t:null)}extractSize(t){this.Y$=function(t,e){if(!e.has(Ei))return null;try{const t=b(e.get(Ei)),i=t.url,s=t.btrUrl;(i&&!Array.isArray(i)||s&&!Array.isArray(s))&&nt().error("AMP-A4A","Invalid analytics",e.get(Ei));const n=Array.isArray(i)&&i.length,r=Array.isArray(s)&&s.length;if(!n&&!r)return null;const o={"transport":{"beacon":!1,"xhrpost":!1},"requests":{},"triggers":{}};return n&&function(t,e){t.triggers.continuousVisible={"request":[],"on":"visible","visibilitySpec":{"selector":"amp-ad","selectionMethod":"closest","visiblePercentageMin":50,"continuousTimeMin":1e3}};for(let i=0;i<e.length;i++)t.requests[`visibility${i+1}`]=`${e[i]}`,t.triggers.continuousVisible.request.push(`visibility${i+1}`)}(o,i),r&&function(t,e){t.triggers.beginToRender={"request":[],"on":"ini-load","selector":"amp-ad","selectionMethod":"closest"};for(let i=0;i<e.length;i++)t.requests[`btr${i+1}`]=`${e[i]}`,t.triggers.beginToRender.request.push(`btr${i+1}`)}(o,s),o}catch(t){nt().error("AMP-A4A","Invalid analytics",t,e.get(Ei))}return null}(0,t),this.mK=t.get("X-QQID"),this.SK="true"==t.get("amp-ff-sandbox"),this.vK.creativeId=t.get("google-creative-id")||"-1",this.vK.lineItemId=t.get("google-lineitem-id")||"-1",this.Y$&&this.Fa.installExtensionForDoc(this.getAmpDoc(),"amp-analytics");let e=super.extractSize(t);return e?(this.gK=e,this.XD(e.width,e.height)):e=this.getSlotSize(),this._K&&!this.gK&&(this.IK=t.get("X-AmpImps")),t.get("amp-ff-pageview-tokens")&&(this.removePageviewStateToken(),this.setPageviewStateToken(t.get("amp-ff-pageview-tokens"))),e}getSlotSize(){const{height:t,width:e}=this.zK();return e&&t?{width:e,height:t}:this.getIntersectionElementLayoutBox()}zK(){return{width:Number(this.element.getAttribute("width")),height:Number(this.element.getAttribute("height"))}}DK(){let t=this._K?"320x50":"";this.TK||(t+=(t.length?"|":"")+`${this.fK.width}x${this.fK.height}`);const e=this.element.getAttribute("data-multi-size");if(e){const i=this.element.getAttribute("data-multi-size-validation")||"true",s=function(t,e,i,s,n=!1){const r=[],o=t.split(",");for(let t=0;t<o.length;t++){const a=o[t];if("fluid"==a.toLowerCase())continue;const h=a.split("x");if(2!=h.length){it().error("AMP-AD",`Invalid multi-size data format '${a}'.`);continue}const c=Number(h[0]),l=Number(h[1]);if(Xi(c,l,(t=>isNaN(t)||t<=0),(t=>isNaN(t)||t<=0))&&(n||Xi(c,l,(t=>t>e),(t=>t>i)))){if(s){const t=2/3,s=t*e,n=t*i;if(!Xi(c,l,(t=>t<s),(t=>t<n)))continue}r.push([c,l])}}return r}(e,this.fK.width,this.fK.height,"true"==i,this.TK);s.length&&(t+="|"+s.map((t=>t.join("x"))).join("|"))}return t}sandboxHTMLCreativeFrame(){return this.SK}tearDownSlot(){super.tearDownSlot(),this.element.setAttribute("data-amp-slot-index",this.win.ampAdSlotIdCounter++),this.X$&&(M(this.X$),this.X$=null),this.Y$=null,this.jsonTargeting=null,this.bK=null,this.EK=!1,this.parameterSize=null,this.gK=null,Yr=null,this.sraDeferred=null,this.mK=null,this.SK=!1,this.consentTuple={},this.getAdUrlDeferred=new s,this.removePageviewStateToken()}renderNonAmpCreative(){return this.postAdResponseExperimentFeatures["render-idle-throttle"]&&this.EK?nr(this.win)?(ir||i()).then((()=>super.renderNonAmpCreative())):(or(this.win),super.renderNonAmpCreative(!0)):super.renderNonAmpCreative()}viewportCallback(t){super.viewportCallback(t),this.RK&&!t&&this.FK()}unlayoutCallback(){return this.Nz&&this.Nz.unobserve(),!(!this.useSra&&this.bK)&&(this.HK(),super.unlayoutCallback())}getSafeframePath(){return`https://${Jr=Jr||this.BK()}.safeframe.googlesyndication.com/safeframe/${this.safeframeVersion}/html/container.html`}cleanupAfterTest(){this.HK()}HK(){this.yK&&(this.yK.destroy(),this.yK=null)}refresh(t){return this.AK++,super.refresh(t)}onCreativeRender(t,e){super.onCreativeRender(t),this.bK=!!t,t&&!t.customElementExtensions.includes("amp-ad-exit")&&(rt(this.iframe),_s.installAnchorClickInterceptor(this.getAmpDoc(),rt(this.iframe.contentWindow))),this.Y$&&(rt(!this.X$),function(t){const e=t.element.getAttribute("type"),{win:i}=t;return("doubleclick"==e||"adsense"==e)&&Qt(i,"a4aProfilingRate")}(this)&&function(t,e,i,s,n){const r=Li(t,e),o=Number(e.getAttribute("data-amp-slot-index")),a=encodeURIComponent(e.getAttribute(Si));let h=e.getAttribute(wi);h&&(h=h.replace(/,/g,"!"));const c=e.getAttribute("type"),l=Number(_i(t,"navigationStart")||Date.now()),d=Math.round(t.performance&&t.performance.now?t.performance.now():Date.now()-l),u=`https://csi.gstatic.com/csi?s=a4a&c=${r}&slotId=${o}&qqid.${o}=${s}&dt=${l}`+("null"!=a?`&e.${o}=${a}`:"")+(h?`&aexp=${h}`:"")+`&rls=2601162341000&adt.${o}=${c}`,p=n?"Friendly":"CrossDomain";i.triggers.continuousVisibleIniLoad={"on":"ini-load","selector":"amp-ad","selectionMethod":"closest","request":"iniLoadCsi"},i.triggers.continuousVisibleRenderStart={"on":"render-start","selector":"amp-ad","selectionMethod":"closest","request":"renderStartCsi"},i.requests.iniLoadCsi=u+`&met.a4a.${o}=iniLoadCsi${p}.${d}`,i.requests.renderStartCsi=u+`&met.a4a.${o}=renderStartCsi${p}.${d}`,i.requests.visibilityCsi=u+`&met.a4a.${o}=visibilityCsi.${d}`,i.triggers.continuousVisible.request.push("visibilityCsi")}(this.win,this.element,this.Y$,this.mK,!!t),this.X$=er(this.element,this.Y$,!0,!!this.postAdResponseExperimentFeatures.avr_disable_immediate)),this.isRefreshing&&(rt(this.Nz),this.Nz.initiateRefreshCycle(),this.isRefreshing=!1,this.isRelayoutNeededFlag=!1);const i=this.gK||this.getSlotSize(),s=this._K&&this.gK&&!(0==i.width&&0==i.height);Te(this.iframe,{width:`${i.width}px`,height:`${i.height}px`,position:s?"relative":null}),this.gK&&this.gK.width&&this.gK.width<this.getSlotSize().width&&Te(this.iframe,{top:"50%",left:"50%",transform:"translate(-50%, -50%)"}),this.mK&&this.element.setAttribute("data-google-query-id",this.mK),this.iframe.id=`google_ads_iframe_${this.Oz}`,s&&(this.element.removeAttribute("height"),Te(this.element,{width:`${i.width}px`})),e&&e.then((()=>{this.FK()})),this.Nz=this.Nz||function(t,e){const i=function(t,e){const i=t.getAttribute("data-enable-refresh");if(i)return xr(i);const s=t.getAmpDoc().getMetaByName("amp-ad-enable-refresh");if(!s)return null;const n=s.split(",");for(let e=0;e<n.length;e++){const i=n[e].split("=");if(ot(2==i.length,"refresh metadata config must be of the form `network_type=refresh_interval`"),i[0].toLowerCase()==t.getAttribute("type").toLowerCase())return xr(i[1])}return null}(t.element,t.win);return!i||e&&!e()?null:new class{constructor(t,e,i){this.yi=kr,this.Dz=t,this.i=t.win,this.yf=t.element,this.Uz=this.yf.getAttribute("type").toLowerCase(),this.Vz=i,this.sA=this.Lz(e),this.ln=Lt(this.i),this.Gz=null,this.$z=null;const s=String($r++);this.yf.setAttribute(jr,s),Lr[s]=this,this.initiateRefreshCycle()}Fz(t){const e=String(t);return Ur[e]||(Ur[e]=new this.i.IntersectionObserver(this.Bz,{threshold:t}))}Bz(t){t.forEach((t=>{const e=t.target.getAttribute(jr);rt(e);const i=Lr[e];if(t.target==i.yf)switch(i.yi){case kr:t.intersectionRatio>=i.sA.visiblePercentageMin&&(i.yi=Vr,i.$z=i.ln.delay((()=>{i.yi="refresh_pending",i.Kz()}),i.sA.continuousTimeMin));break;case Vr:t.intersectionRatio<i.sA.visiblePercentageMin&&(i.ln.cancel(i.$z),i.$z=null,i.yi=kr)}}))}initiateRefreshCycle(){this.yi===kr&&this.Fz(this.sA.visiblePercentageMin).observe(this.yf)}Kz(){return new Promise((t=>{this.Gz=this.ln.delay((()=>{this.yi=kr,this.unobserve(),this.Dz.refresh((()=>this.initiateRefreshCycle())),t(!0)}),this.Vz)}))}Lz(t){return rt(t.visiblePercentageMin>=0&&t.visiblePercentageMin<=100),t.continuousTimeMin*=1e3,t.visiblePercentageMin/=100,t}unobserve(){this.Fz(this.sA.visiblePercentageMin).unobserve(this.yf)}}(t,{"visiblePercentageMin":50,"continuousTimeMin":1},i)}(this,(()=>!this.useSra&&!zi(this.element).filter((t=>t!=yi["AMP-CAROUSEL"]&&t!=yi["AMP-STICKY-AD"])).length)),this.win.addEventListener("message",(t=>{this.qK(t)&&function(t,e){try{const i=JSON.parse(e.data);if("gpi-uoo"===i.googMsgType){const e=!!i.userOptOut,s=!!i.clearAdsData,n=hi(t,t.location.hostname);si(t,"__gpi_opt_out",e?"1":"0",2147483646e3,{domain:n}),(e||s)&&(si(t,"__gads","delete",Date.now()-1e3,{domain:n}),si(t,"__gpi","delete",Date.now()-1e3,{domain:n}))}}catch(t){}}(this.win,t)})),this.postTroubleshootMessage()}qK(t){return this.iframe&&t.source==this.iframe.contentWindow}FK(){return this._K&&!this.gK&&this.isVerifiedAmpCreative()?this.iframe&&this.iframe.contentWindow&&this.iframe.contentWindow.document&&this.iframe.contentWindow.document.body?this.KK("static").then((()=>this.attemptChangeHeight(this.iframe.contentWindow.document.body.clientHeight).then((()=>{this.fireFluidDelayedImpression(),this.RK=!1})).catch((()=>{const{height:t,width:e}=this.getSlotSize();e&&t&&this.fireFluidDelayedImpression(),this.RK=!0,this.KK("absolute")})))):(nt().error(Gr,"Attempting to expand fluid creative without a properly set up friendly frame. Slot id: "+this.element.getAttribute("data-amp-slot-index")),Promise.reject("Cannot access body of friendly frame")):i()}KK(t){return this.mutateElement((()=>{ge(this.element,{position:t})}),this.element)}Wz(t){const{element:e}=this,i=ci(e);return p(`${e.getAttribute("data-slot")||""}:${t}:${e.getAttribute("data-multi-size")||""}:${i}`)}XD(t,e){const i=!!(this._K&&t&&e),{height:s,width:n}=this.zK();(i||(t!=n||e!=s)&&e<=s)&&(this.attemptChangeSize(e,t).catch((()=>{})),t>n&&(!this.TK||this.parameterSize&&-1==this.parameterSize.indexOf(`${t}x${e}`))&&this.WK(t))}WK(t){if(!rt(this.Sz))return;const{parentStyle:e,parentWidth:i}=this.Sz,s="rtl"==((n=this.win.document).body.getAttribute("dir")||n.documentElement.getAttribute("dir")||"ltr");var n;const r=s?"Right":"Left",o=this.wK?{"z-index":"11"}:{};if("center"!=e.textAlign){const n=t=>`${Math.round(t)}px`;if(t<=i){const i=parseInt(e[`padding${r}`],10)||0,a=parseInt(e[`border${r}Width`],10)||0,h=(this.Sz.parentWidth-t)/2;o[s?"margin-right":"margin-left"]=n(h-i-a)}else{const e=this.getViewport().getRect().width,i=mi(this.element),r=(e-t)/2;s?o["margin-right"]=n(i.right+r-e):o["margin-left"]=n(-(i.left-r))}}var a;Te(this.element,("display"in(a=o)&&function(t,...e){const i=J.apply(null,e);i.name=t||i.name,X(i)}("STYLE","`display` style detected. You must use toggle instead."),a))}sendXhrRequest(t){if(!this.useSra)return super.sendXhrRequest(t);const e=this.verifyStillCurrent();return this.initiateSraRequests().then((()=>{e(),this.sraDeferred||Qt(this.win,"doubleclickSraReportExcludedBlock")&&this.getAmpDoc().getBody().appendChild(j(this.win.document,"amp-pixel",{"src":`https://pagead2.googlesyndication.com/pagead/gen_204?id=${encodeURIComponent("a4a::sra")}&ifi=${this.Oz}`}))})),this.sraDeferred.promise.then((i=>(e(),this.sraDeferred=null,i||super.sendXhrRequest(t))))}fireDelayedImpressions(t,e){t&&t.split(",").forEach((t=>{try{if(!Ft(this.element).isSecure(t))return;this.getAmpDoc().getBody().appendChild(j(this.win.document,"amp-pixel",{"src":t,"referrerpolicy":e?"no-referrer":""}))}catch(t){}}))}fireFluidDelayedImpression(){this.IK&&(this.fireDelayedImpressions(this.IK),this.IK=null)}groupSlotsForSra(){return Mi(this.getAmpDoc(),this.element.getAttribute("type"),Xr)}initiateSraRequests(){const t=this.verifyStillCurrent(),e=this.experimentIds.includes(zr.SRA_NO_RECOVER);return Yr=Yr||this.groupSlotsForSra().then((i=>{t();const r=[];return Object.keys(i).forEach((o=>{const a=rt(i[o]);r.push(Promise.all(a).then((i=>{rt(i.length),t();const r=i.filter((t=>t.hasAdPromise()));if(!r.length)return;if(!e&&1==r.length)return r[0].sraDeferred=r[0].sraDeferred||new s,void r[0].sraDeferred.resolve(null);let o;return function(t,e){rt(e&&e.length);const i=Date.now();return Promise.all(e.map((t=>t.getAdUrlDeferred.promise))).then((()=>ji(t,i))).then((t=>{const s=function(t){const e={"output":"ldjh","impl":"fifs"};return Nr.forEach((i=>Object.assign(e,i(t)))),e}(e);return xi("https://securepubads.g.doubleclick.net/gampad/ads",Object.assign(s,t,e[0].getPageParameters(e[0].consentTuple,e)),i)}))}(this,r).then((e=>(t(),o=e,Kt(this.win).fetch(o,{mode:"cors",method:"GET",credentials:"include"})))).then((e=>{t();const i=r.map((t=>t.sraDeferred.resolve)),s=function(t){let e;return function(i,s){if(e){const n=E(e)||{},r=Object.keys(n).reduce(((t,e)=>(t[e.toLowerCase()]=n[e],t)),{});t(i.replace(/\\(n|r|\\)/g,((t,e)=>"n"==e?"\n":"r"==e?"\r":"\\")),r,s),e=null}else e=i}}(((e,s,r)=>{t(),function(t,e,i,s,r,o){const a=Object.keys(e);1==a.length&&A(e[a[0]])&&(e=e[a[0]],e=Object.keys(e).reduce(((t,i)=>(t[i.toLowerCase()]=e[i],t)),{})),e[cr.toLowerCase()]=gr;const h={get:t=>{let i=e[t.toLowerCase()];return i&&"string"!=typeof i&&(i=JSON.stringify(i)),i},has:t=>!!e[t.toLowerCase()]};let c;if(o){const i=function(t){return Object.keys(t).reduce(((e,i)=>{let s=t[i];return s&&"string"!=typeof s&&(s=JSON.stringify(s)),e[i]=s,e}),{})}(e);c=new Response(t,{headers:i})}else c={headers:h,arrayBuffer:()=>n((()=>{return e=t,"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):hs(unescape(encodeURIComponent(e)));var e}))};rt(s.shift())(c),i&&s.length}(e,s,r,i,0,this.isInNoSigningExp())}));return function(t,e,i){let s="";function n(t,e){const n=/([^\n]*)(\n)?/g;let r;for(;(r=n.exec(t))&&(s+=r[1],r[2]&&(i(s,e&&n.lastIndex===t.length),s=""),n.lastIndex!==t.length););}if(!e.body||!t.TextDecoder)return void e.text().then((t=>n(t,!0)));const r=new TextDecoder("utf-8"),o=e.body.getReader();o.read().then((function t(e){e.value&&n(r.decode(e.value,{"stream":!0}),e.done),e.done||o.read().then(t)}))}(this.win,e,s),Promise.all(r.map((t=>t.sraDeferred.promise)))})).catch((t=>{Xe(t)?r.forEach((e=>e.sraDeferred&&e.sraDeferred.reject(t))):e||this.win.document.querySelector("meta[name=amp-ad-doubleclick-sra]")?(Rr(t,o),this.warnOnError("SRA request failure",t),r.forEach((e=>{e.resetAdUrl(),e.attemptCollapse(),e.sraDeferred.reject(t)}))):r.forEach((t=>t.sraDeferred.resolve(null)))}))})))})),Promise.all(r)}))}warnOnError(t,e){}BK(){const t=function(t,e){let{crypto:i}=t;const s=new Uint8Array(e);return i.getRandomValues(s),s}(this.win,16);let e="";for(let i=0;i<16;i++){const s=t?t[i]:Math.floor(255*Math.random());s<=15&&(e+="0"),e+=s.toString(16)}return e}getPreconnectUrls(){return["https://securepubads.g.doubleclick.net/"]}getNonAmpCreativeRenderingMethod(t){return this.forceSafeframe||this._K?gr:super.getNonAmpCreativeRenderingMethod(t)}getLocationQueryParameterValue(t){return(Dr=Dr||z(this.win.location&&this.win.location.search||""))[t]}getAdditionalContextMetadata(t=!1){if(!this._K&&!t)return;const e=this.getCreativeSize();return rt(e),this.isRefreshing?(this.yK&&this.yK.destroy(),this.yK=new Ns(this,this._K,e)):this.yK=this.yK||new Ns(this,this._K,e),this.yK.getSafeframeNameAttr()}postTroubleshootMessage(){return this.win.opener&&/[?|&]dfpdeb/.test(this.win.location.search)?(rt(this.vK.adUrl),this.vK.adUrl.then((t=>{const e=this.vK.slotId+"_"+this.vK.slotIndex,i={"gutData":JSON.stringify({"events":[{"timestamp":Date.now(),"slotid":e,"messageId":4}],"slots":[{"contentUrl":t||"","id":e,"leafAdUnitName":this.vK.slotId,"domId":e,"lineItemId":this.vK.lineItemId,"creativeId":this.vK.creativeId}]}),"userAgent":navigator.userAgent,"referrer":this.win.location.href,"messageType":"LOAD"};this.win.opener.postMessage(i,"*")}))):null}setPageviewStateToken(t){Wr[t]=this}removePageviewStateToken(){for(const t in Wr)if(Wr[t]==this){delete Wr[t];break}}getA4aAnalyticsVars(t){return function(t,e,i){const{win:s}=e,n=e.getAmpDoc(),r=Ci(s,"navigationStart"),o={"correlator":Li(s,n),"slotId":e.element.getAttribute("data-amp-slot-index"),"viewerLastVisibleTime":n.getLastVisibleTime()-r};return i&&(o.qqid=i),"ad-render-start"==t&&(o.scheduleTime=e.element.layoutScheduleTime-r),o}(t,this,this.mK)}getA4aAnalyticsConfig(){return{"requests":{"csi":"https://csi.gstatic.com/csi?"},"transport":{"xhrpost":!1},"triggers":{"adRequestStart":$i("ad-request-start",{"met.a4a":"afs_lvt.${viewerLastVisibleTime}~afs.${time}"}),"adResponseEnd":$i("ad-response-end",{"met.a4a":"afe.${time}"}),"adRenderStart":$i("ad-render-start",{"met.a4a":"ast.${scheduleTime}~ars_lvt.${viewerLastVisibleTime}~ars.${time}","qqid":"${qqid}"}),"adIframeLoaded":$i("ad-iframe-loaded",{"met.a4a":"ail.${time}"})},"extraUrlParams":{"s":"ampad","ctx":"2","c":"${correlator}","slotId":"${slotId}","puid":"${requestCount}~${timestamp}"}}}isFluidRequest(){return this._K}onAdResponse(t){!function(t,e){if(!e.headers.has(ai)||!oi(t))return;let i=[];try{i=JSON.parse(e.headers.get(ai)).cookie}catch(t){}if(Array.isArray(i))for(const e of i){var s;const i=2===(null!==(s=e.version)&&void 0!==s?s:1)?"__gpi":"__gads",n=e.value,r=hi(t,e.domain);si(t,i,n,1e3*Math.max(e.expires,0),{domain:r,secure:!1})}}(this.win,t)}})})();
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
//# sourceMappingURL=amp-ad-network-doubleclick-impl-0.1.mjs.map