self.AMP_CONFIG={"allow-doc-opt-in":["amp-date-picker","amp-next-page","ampdoc-shell","disable-amp-story-desktop","inabox-rov","url-replacement-v2","linker-meta-opt-in"],"allow-url-opt-in":["pump-early-frame","twitter-default-placeholder","twitter-default-placeholder-pulse","twitter-default-placeholder-fade"],"canary":0,"expAdsenseA4A":0.01,"a4aProfilingRate":0.01,"ad-type-custom":1,"amp-access-iframe":1,"amp-apester-media":1,"amp-ima-video":1,"amp-playbuzz":1,"amp-story-navigation-performance":1,"chunked-amp":1,"amp-auto-ads":1,"amp-auto-ads-adsense-holdout":0.1,"amp-auto-ads-adsense-responsive":0.05,"version-locking":1,"as-use-attr-for-format":0.01,"a4aFastFetchDoubleclickLaunched":0,"a4aFastFetchAdSenseLaunched":0,"pump-early-frame":1,"amp-live-list-sorting":1,"amp-sidebar toolbar":1,"amp-consent":1,"amp-story-v1":1,"amp-carousel-scroll-snap":0.1,"expAdsenseUnconditionedCanonical":0.01,"expAdsenseCanonical":0.01,"faster-bind-scan":1,"font-display-swap":1,"amp-date-picker":1,"linker-meta-opt-in":1,"url-replacement-v2":1,"user-error-reporting":1,"no-initial-intersection":1,"no-sync-xhr-in-ads":1,"doubleclickSraExp":0,"doubleclickSraReportExcludedBlock":0.1,"doubleclickIdleExp":0.01,"inabox-rov":1,"v":"011810052256480","type":"production"};/*AMP_CONFIG*/(function(){var f;function p(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]}var aa=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}(this);function ba(a,b){b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(c){return b}};var ca=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function r(a){var b=Object.create(null);if(!a)return b;for(var c;c=ca.exec(a);){var d=ba(c[1],c[1]),e=c[2]?ba(c[2],c[2]):"";b[d]=e}return b};var fa="";
function x(a){var b=a||self,c;if(b.AMP_MODE)c=b.AMP_MODE;else{c=b;var d=!!(self.AMP_CONFIG||{}).test||!1,e=r(c.location.originalHash||c.location.hash),g=r(c.location.search);fa||(fa=c.AMP_CONFIG&&c.AMP_CONFIG.v?c.AMP_CONFIG.v:"011810052256480");c=b.AMP_MODE={localDev:!1,development:!("1"!=e.development&&!c.AMP_DEV_MODE),examiner:"2"==e.development,filter:e.filter,geoOverride:e["amp-geo"],minified:!0,lite:void 0!=g.amp_lite,test:d,log:e.log,version:"1810052256480",rtvVersion:fa}}return c};var ga=Object.prototype.toString;function ia(a){return Array.isArray(a)}function ja(a){return"[object Object]"===ga.call(a)}function la(a){return"number"===typeof a&&isFinite(a)};function ma(a){return 0<=a.indexOf("\u200b\u200b\u200b")}var na=void 0;function oa(a){na=a}function pa(a,b,c){this.win=a;this.Og=b;this.Pg=this.win.console&&this.win.console.log&&"0"!=x().log?this.Og({localDev:!1,development:x(void 0).development,filter:x(void 0).filter,minified:!0,lite:x(void 0).lite,test:!1,log:x(void 0).log,version:x(void 0).version,rtvVersion:x(void 0).rtvVersion}):0;this.Mc=c||""}function sa(a){return void 0!==na?na:a.Pg}
function ta(a,b,c){if(0!=sa(a)){var d=a.win.console.log;"ERROR"==b?d=a.win.console.error||d:"INFO"==b?d=a.win.console.info||d:"WARN"==b&&(d=a.win.console.warn||d);d.apply(a.win.console,c)}}f=pa.prototype;f.isEnabled=function(){return 0!=sa(this)};f.fine=function(a,b){4<=sa(this)&&ta(this,"FINE",Array.prototype.slice.call(arguments,1))};f.info=function(a,b){3<=sa(this)&&ta(this,"INFO",Array.prototype.slice.call(arguments,1))};
f.warn=function(a,b){2<=sa(this)&&ta(this,"WARN",Array.prototype.slice.call(arguments,1))};f.Da=function(a,b){if(1<=sa(this))ta(this,"ERROR",Array.prototype.slice.call(arguments,1));else{var c=ua.apply(null,Array.prototype.slice.call(arguments,1));va(this,c);return c}};f.error=function(a,b){var c=this.Da.apply(this,arguments);c&&(c.name=a||c.name,self.reportError(c))};f.expectedError=function(a,b){var c=this.Da.apply(this,arguments);c&&(c.expected=!0,self.reportError(c))};
f.createError=function(a){var b=ua.apply(null,arguments);va(this,b);return b};f.createExpectedError=function(a){var b=ua.apply(null,arguments);va(this,b);b.expected=!0;return b};
f.assert=function(a,b,c){var d;if(!a){var e=(b||"Assertion failed").split("%s"),g=e.shift(),h=g,k=[];""!=g&&k.push(g);for(g=2;g<arguments.length;g++){var l=arguments[g];l&&l.tagName&&(d=l);var m=e.shift();k.push(l);var n=m.trim();""!=n&&k.push(n);n=l;h+=(n&&1==n.nodeType?n.tagName.toLowerCase()+(n.id?"#"+n.id:""):n)+m}g=Error(h);g.fromAssert=!0;g.associatedElement=d;g.messageArray=k;va(this,g);self.reportError(g);throw g;}return a};
f.assertElement=function(a,b){this.assert(a&&1==a.nodeType,(b||"Element expected")+": %s",a);return a};f.assertString=function(a,b){this.assert("string"==typeof a,(b||"String expected")+": %s",a);return a};f.assertNumber=function(a,b){this.assert("number"==typeof a,(b||"Number expected")+": %s",a);return a};f.assertBoolean=function(a,b){this.assert(!!a===a,(b||"Boolean expected")+": %s",a);return a};
f.assertEnumValue=function(a,b,c){a:{for(var d in a)if(a[d]===b){a=!0;break a}a=!1}if(a)return b;this.assert(!1,'Unknown %s value: "%s"',c||"enum",b)};function va(a,b){b=wa(b);a.Mc?b.message?-1==b.message.indexOf(a.Mc)&&(b.message+=a.Mc):b.message=a.Mc:ma(b.message)&&(b.message=b.message.replace("\u200b\u200b\u200b",""))}function wa(a){var b=a.message,c=String(Math.random());a.message=c;if(a.message===c)return a.message=b,a;var b=Error(a.message),d;for(d in a)b[d]=a[d];b.stack=a.stack;return b}
function ua(a){for(var b=null,c="",d=0;d<arguments.length;d++){var e=arguments[d];e instanceof Error&&!b?b=wa(e):(c&&(c+=" "),c+=e)}b?c&&(b.message=c+": "+b.message):b=Error(c);return b}function ya(a){var b=ua.apply(null,arguments);setTimeout(function(){self.reportError(b);throw b;})}self.log=self.log||{user:null,dev:null,userForEmbed:null};var za=self.log,Aa=null;
function D(a){za.user||(za.user=Ba("\u200b\u200b\u200b"));var b=za.user.win;return a&&a.ownerDocument.defaultView!=b?za.userForEmbed?za.userForEmbed:za.userForEmbed=Ba("\u200b\u200b\u200b\u200b"):za.user}function Ba(a){if(!Aa)throw Error("failed to call initLogConstructor");return new Aa(self,function(a){var b=parseInt(a.log,10);return a.development||1<=b?4:2},a)}
function E(){if(za.dev)return za.dev;if(!Aa)throw Error("failed to call initLogConstructor");return za.dev=new Aa(self,function(a){a=parseInt(a.log,10);return 3<=a?4:2<=a?3:0})};var Ca=Object.prototype.hasOwnProperty;function F(a){var b=Object.create(null);a&&Object.assign(b,a);return b}function G(a){return a||{}};function Da(a,b){var c=b||0,d=this.length;for(b=0<=c?c:Math.max(d+c,0);b<d;b++){var e=this[b];if(e===a||a!==a&&e!==e)return!0}return!1};var Ea=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,Fa="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");function Ja(a,b){if(!Ea.test(b)||0<=Fa.indexOf(b))throw new a('invalid custom element name "'+b+'"');}function Ka(a,b){this.o=a;this.Gc=b;this.vf=this.o.Object.create(null)}Ka.prototype.define=function(a,b,c){this.Gc.define(a,b,c);var d=this.vf,e=d[a];e&&(e.resolve(),delete d[a])};
Ka.prototype.get=function(a){var b=this.Gc.getByName(a);if(b)return b.ctor};Ka.prototype.whenDefined=function(a){var b=this.o,c=b.Promise;Ja(b.SyntaxError,a);if(this.Gc.getByName(a))return c.resolve();var b=this.vf,d=b[a];if(d)return d.promise;var e,g=new c(function(a){return e=a});b[a]={promise:g,resolve:e};return g};Ka.prototype.upgrade=function(a){this.Gc.upgrade(a)};function La(a){this.o=a;this.Ca=a.document;this.od=a.Object.create(null);this.Qa="";this.nd=null}f=La.prototype;
f.current=function(){var a=this.nd;this.nd=null;return a};f.getByName=function(a){var b=this.od[a];if(b)return b};f.getByConstructor=function(a){var b=this.od,c;for(c in b){var d=b[c];if(d.ctor===a)return d}};
f.define=function(a,b,c){var d=this.o,e=d.Error,d=d.SyntaxError;if(c)throw new e("Extending native custom elements is not supported");Ja(d,a);if(this.getByName(a)||this.getByConstructor(b))throw new e('duplicate definition "'+a+'"');this.od[a]={name:a,ctor:b};Ma(this,a);this.upgrade(this.Ca,a)};f.upgrade=function(a,b){var c=!!b,d=Na(a,b||this.Qa);for(a=0;a<d.length;a++){var e=d[a];c?Oa(this,e):this.upgradeSelf(e)}};f.upgradeSelf=function(a){var b=this.getByName(a.localName);b&&Pa(this,a,b)};
function Na(a,b){return b&&a.querySelectorAll?a.querySelectorAll(b):[]}function Pa(a,b,c){c=c.ctor;if(!(b instanceof c)){a.nd=b;var d=new c;if(d!==b)throw new a.o.Error("Constructor illegally returned a different instance.");}}function Oa(a,b){var c=a.getByName(b.localName);c&&(Pa(a,b,c),b.connectedCallback&&b.connectedCallback())}
function Ma(a,b){if(a.Qa)a.Qa+=","+b;else{a.Qa=b;var c=new a.o.MutationObserver(function(b){if(b)for(var c=b,d=0;d<c.length;d++){var h=c[d];if(h){for(var k=h.addedNodes,h=h.removedNodes,l=0;l<k.length;l++){var m=k[l],n=Na(m,a.Qa);Oa(a,m);for(m=0;m<n.length;m++)Oa(a,n[m])}for(k=0;k<h.length;k++)for(n=h[k],l=Na(n,a.Qa),n.disconnectedCallback&&n.disconnectedCallback(),n=0;n<l.length;n++)m=l[n],m.disconnectedCallback&&m.disconnectedCallback()}}});c.observe(a.Ca,{childList:!0,subtree:!0})}}
function Qa(a){function b(){var a=this.constructor,b=t.current();b||(b=t.getByConstructor(a),b=m.call(k,b.name));h.setPrototypeOf(b,a.prototype);return b}var c=a.HTMLElement,d=a.Element,e=a.Node,g=a.Document,h=a.Object,k=a.document,l=k,m=l.createElement,n=l.cloneNode,q=l.importNode,t=new La(a),l=new Ka(a,t);h.defineProperty(a,"customElements",{enumerable:!0,configurable:!0,value:l});g.prototype.createElement=function B(a){var b=t.getByName(a);return b?new b.ctor:m.apply(this,arguments)};g.prototype.importNode=
function y(){var a=q.apply(this,arguments);a&&(t.upgradeSelf(a),t.upgrade(a));return a};e.prototype.cloneNode=function C(){var a=n.apply(this,arguments);t.upgradeSelf(a);t.upgrade(a);return a};var A=h.getOwnPropertyDescriptor(d.prototype,"innerHTML"),u=A.set;A.set=function(a){u.call(this,a);t.upgrade(this)};h.defineProperty(d.prototype,"innerHTML",A);Ra(h,c,b);a.HTMLElement=b}
function Sa(a){function b(){return d.construct(c,[],this.constructor)}var c=a.HTMLElement,d=a.Reflect;Ra(a.Object,c,b);a.HTMLElement=b}function Ra(a,b,c){c.prototype=a.create(b.prototype,{constructor:{configurable:!0,writable:!0,value:c}})}
function Ta(a,b){if(-1!==a.HTMLElement.toString().indexOf("[native code]")){var c=!0,d=!1,e=a.customElements;if(e&&e.define&&e.get&&e.whenDefined)try{var g=a.Reflect,h=a.Object.create(b.prototype);b.call(h);d=!(!g||!g.construct)}catch(k){c=!1}d?Sa(a):c&&Qa(a)}};function Xa(a){return a==this||this.documentElement.contains(a)}function Ya(a){var b=a.HTMLDocument||a.Document;b.prototype.contains||a.Object.defineProperty(b.prototype,"contains",{enumerable:!1,configurable:!0,writable:!0,value:Xa})};function I(){var a,b;this.promise=new Promise(function(c,d){a=c;b=d});this.resolve=a;this.reject=b}function Za(a){return new Promise(function(b){b(a())})};/*
 https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
var $a=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function ab(a,b,c,d,e){return e?e:b?"\ufffd":d?a.slice(0,-1)+"\\"+a.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+a};function bb(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function cb(a,b){return b.length>a.length?!1:0==a.lastIndexOf(b,0)};function db(a,b,c){if(b(a))c();else{var d=a.ownerDocument.defaultView;if(d.MutationObserver){var e=new d.MutationObserver(function(){b(a)&&(e.disconnect(),c())});e.observe(a,{childList:!0})}else var g=d.setInterval(function(){b(a)&&(d.clearInterval(g),c())},5)}}function eb(a,b){db(a.documentElement,function(){return!!a.body},b)}function fb(a){return new Promise(function(b){eb(a,b)})}function gb(a){a.parentElement&&a.parentElement.removeChild(a)}
function hb(a){var b=a.isConnected;if(void 0!==b)return b;do if(a=ib(a),a.host)a=a.host;else break;while(1);return a.nodeType===Node.DOCUMENT_NODE}function ib(a){if(Node.prototype.getRootNode)return a.getRootNode()||a;for(;a.parentNode;a=a.parentNode);return a}function pb(a,b){for(var c;a&&a!==c;a=a.parentElement)if(b(a))return a;return null}function qb(a,b){for(;a;a=a.parentNode)if(b(a))return a;return null}
function rb(a,b){if(a.closest)return a.closest(b);b=b.toUpperCase();return pb(a,function(a){return a.tagName==b})}function sb(a){return a.closest?a.closest(".i-amphtml-scrollable"):pb(a,function(a){return tb(a,".i-amphtml-scrollable")})}function tb(a,b){var c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return c?c.call(a,b):!1}function ub(a,b){var c=[];for(a=a.firstElementChild;a;a=a.nextElementSibling)b(a)&&c.push(a);return c}
function vb(a,b){for(a=a.lastElementChild;a;a=a.previousElementSibling)if(b(a))return a;return null}function wb(a,b){var c=[];for(a=a.firstChild;a;a=a.nextSibling)b(a)&&c.push(a);return c}var xb;function yb(a){a=a.ownerDocument;try{var b=a.createElement("div"),c=a.createElement("div");b.appendChild(c);return b.querySelector(":scope div")===c}catch(d){return!1}}
function zb(a,b){null==xb&&(xb=yb(a));if(xb)return a.querySelector(":scope "+b);var c="i-amphtml-scoped";a.classList.add(c);b=a.querySelector("."+c+" "+b);a.classList.remove(c);return b}function Ab(a,b){null==xb&&(xb=yb(a));if(xb)return a.querySelectorAll(":scope "+b);a.classList.add("i-amphtml-scoped");b=a.querySelectorAll(".i-amphtml-scoped "+b);a.classList.remove("i-amphtml-scoped");return b}
function Bb(a,b,c){var d,e;try{e=a.open(b,c,d)}catch(g){E().error("DOM","Failed to open url on target: ",c,g)}e||"_top"==c||a.open(b,"_top")}function Cb(a){return a.parent&&a.parent!=a};function Db(a){var b=Object.create(null),c;for(c in a)if(Eb(a,c)){var d=a[c];b[c]=ja(d)?Db(d):d}return b}function Fb(a){return JSON.parse(a)}function Gb(a){var b;try{return Fb(a)}catch(c){b&&b(c)}}function Eb(a,b){return null==a||"object"!=typeof a?!1:Object.prototype.hasOwnProperty.call(a,b)};function Hb(a){return"undefined"!==typeof TextEncoder?(new TextEncoder("utf-8")).encode(a):Ib(unescape(encodeURIComponent(a)))}function Ib(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var d=a.charCodeAt(c);b[c]=d}return b}function Sb(a){for(var b=Array(a.length),c=0;c<a.length;c++)b[c]=String.fromCharCode(a[c]);return b.join("")};var Tb={document:1,text:2},Ub=["GET","POST"];
function Vb(a,b){b=void 0===b?{}:b;return new Promise(function(c,d){var e=Wb(b.method||"GET"),g=Xb(e,a);"include"==b.credentials&&(g.withCredentials=!0);b.responseType in Tb&&(g.responseType=b.responseType);b.headers&&Object.keys(b.headers).forEach(function(a){g.setRequestHeader(a,b.headers[a])});g.onreadystatechange=function(){2>g.readyState||(100>g.status||599<g.status?(g.onreadystatechange=null,d(D().createExpectedError("Unknown HTTP status "+g.status))):4==g.readyState&&c(new Yb(g)))};g.onerror=
function(){d(D().createExpectedError("Network failure"))};g.onabort=function(){d(D().createExpectedError("Request aborted"))};"POST"==e?g.send(b.body):g.send()})}function Xb(a,b){var c=new XMLHttpRequest;if("withCredentials"in c)c.open(a,b,!0);else throw E().createExpectedError("CORS is not supported");return c}function Yb(a){this.Ya=a;this.status=this.Ya.status;this.statusText=this.Ya.statusText;this.ok=200<=this.status&&300>this.status;this.headers=new Zb(a);this.bodyUsed=!1;this.body=null}
Yb.prototype.clone=function(){return new Yb(this.Ya)};function $b(a){a.bodyUsed=!0;return Promise.resolve(a.Ya.responseText)}Yb.prototype.text=function(){return $b(this)};Yb.prototype.json=function(){return $b(this).then(Fb)};Yb.prototype.arrayBuffer=function(){return $b(this).then(Hb)};function Wb(a){if(void 0===a)return"GET";a=a.toUpperCase();Ub.includes(a);return a}function Zb(a){this.Ya=a}Zb.prototype.get=function(a){return this.Ya.getResponseHeader(a)};
Zb.prototype.has=function(a){return null!=this.Ya.getResponseHeader(a)};
function ac(a,b){b=void 0===b?{}:b;var c=F();a=Object.assign({status:200,statusText:"OK",responseText:a?String(a):"",getResponseHeader:function(a){var b=String(a).toLowerCase();return Ca.call(c,b)?c[b]:null}},b);a.status=void 0===b.status?200:parseInt(b.status,10);if(ia(b.headers))b.headers.forEach(function(a){var b=a[1];c[String(a[0]).toLowerCase()]=String(b)});else if(ja(b.headers))for(var d in b.headers)c[String(d).toLowerCase()]=String(b.headers[d]);b.statusText&&(a.statusText=String(b.statusText));
Yb.call(this,a)}p(ac,Yb);function bc(a){return(a=Number(a))?0<a?1:-1:a};var cc=Object.prototype.hasOwnProperty;function dc(a,b){if(null==a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var g in e)cc.call(e,g)&&(c[g]=e[g])}return c};function J(a){if(!(this instanceof J))throw new TypeError("Constructor Promise requires `new`");if(!ec(a))throw new TypeError("Must pass resolver function");this._state=fc;this._value=[];this._isChainEnd=!0;gc(this,hc(this,ic),hc(this,jc),{then:a})}J.prototype.then=function(a,b){a=ec(a)?a:void 0;b=ec(b)?b:void 0;if(a||b)this._isChainEnd=!1;return this._state(this._value,a,b)};J.prototype.catch=function(a){return this.then(void 0,a)};
J.resolve=function(a){var b=this;return a===Object(a)&&a instanceof this?a:new b(function(b){b(a)})};J.reject=function(a){return new this(function(b,c){c(a)})};J.all=function(a){var b=this;return new b(function(c,d){var e=a.length,g=Array(e);if(0===e)return c(g);kc(a,function(a,k){b.resolve(a).then(function(a){g[k]=a;0===--e&&c(g)},d)})})};J.race=function(a){var b=this;return new b(function(c,d){for(var e=0;e<a.length;e++)b.resolve(a[e]).then(c,d)})};function lc(a){throw a;}
J._overrideUnhandledExceptionHandler=function(a){lc=a};function ic(a,b,c,d){if(!b)return d&&(b=d.promise,b._state=ic,b._value=a),this;d||(d=new mc(this.constructor));nc(oc(d,b,a));return d.promise}function jc(a,b,c,d){if(!c)return d&&(b=d.promise,b._state=jc,b._value=a),this;d||(d=new mc(this.constructor));nc(oc(d,c,a));return d.promise}
function fc(a,b,c,d){if(!d){if(!b&&!c)return this;d=new mc(this.constructor)}a.push({deferred:d,onFulfilled:b||d.resolve,onRejected:c||d.reject});return d.promise}function mc(a){var b=this;this.promise=new a(function(a,d){b.resolve=a;b.reject=d});return b}
function pc(a,b,c,d){var e=a._value;a._state=b;a._value=c;d&&b===fc&&d._state(c,void 0,void 0,{promise:a,resolve:void 0,reject:void 0});for(var g=0;g<e.length;g++){var h=e[g];a._state(c,h.onFulfilled,h.onRejected,h.deferred)}e.length=0;b===jc&&a._isChainEnd&&setTimeout(function(){a._isChainEnd&&lc(c,a)},0)}function hc(a,b){return function(c){pc(a,b,c)}}function qc(){}function ec(a){return"function"===typeof a}function kc(a,b){for(var c=0;c<a.length;c++)b(a[c],c)}
function oc(a,b,c){var d=a.promise,e=a.resolve,g=a.reject;return function(){try{var a=b(c);gc(d,e,g,a,a)}catch(k){g(k)}}}var nc=function(){function a(){for(var a=0;a<e;a++){var b=d[a];d[a]=null;b()}e=0}function b(a){0===e&&c();d[e++]=a}var c;"undefined"!==typeof window&&window.postMessage?(window.addEventListener("message",a),c=function(){window.postMessage("macro-task","*")}):c=function(){setTimeout(a,0)};var d=Array(16),e=0;return b}();
function gc(a,b,c,d,e){var g=c,h,k;try{if(d===a)throw new TypeError("Cannot fulfill promise with itself");var l=d===Object(d);l&&d instanceof a.constructor?pc(a,d._state,d._value,d):l&&(h=d.then)&&ec(h)?(k=function(d){k=g=qc;gc(a,b,c,d,d)},g=function(a){k=g=qc;c(a)},h.call(e,function(a){k(a)},function(a){g(a)})):b(d)}catch(m){g(m)}};var rc=self.AMP_CONFIG||{},sc={thirdParty:rc.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:rc.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:("string"==typeof rc.thirdPartyFrameRegex?new RegExp(rc.thirdPartyFrameRegex):rc.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdn:rc.cdnUrl||"https://cdn.ampproject.org",cdnProxyRegex:("string"==typeof rc.cdnProxyRegex?new RegExp(rc.cdnProxyRegex):rc.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,
errorReporting:rc.errorReportingUrl||"https://amp-error-reporting.appspot.com/r",localDev:rc.localDev||!1},tc={urls:sc};function uc(a){this.pg=a;this.Xc=this.T=0;this.$a=Object.create(null)}uc.prototype.has=function(a){return!!this.$a[a]};uc.prototype.get=function(a){var b=this.$a[a];if(b)return b.access=++this.Xc,b.payload};uc.prototype.put=function(a,b){this.has(a)||this.T++;this.$a[a]={payload:b,access:this.Xc};if(!(this.T<=this.pg)){E().warn("lru-cache","Trimming LRU cache");a=this.$a;var c=this.Xc+1,d,e;for(e in a){var g=a[e].access;g<c&&(c=g,d=e)}void 0!==d&&(delete a[d],this.T--)}};var vc=G({c:!0,v:!0,a:!0,ad:!0}),wc,xc,yc=/[?&]amp_js[^&]*/,Nc=/[?&]amp_gsa[^&]*/,Oc=/[?&]amp_r[^&]*/,Pc=/[?&]usqp[^&]*/,Qc=["javascript:","data:","vbscript:"];function K(a,b){wc||(wc=self.document.createElement("a"),xc=self.UrlCache||(self.UrlCache=new uc(100)));return Rc(wc,a,b?null:xc)}
function Rc(a,b,c){if(c&&c.has(b))return c.get(b);a.href=b;a.protocol||(a.href=a.href);var d={href:a.href,protocol:a.protocol,host:a.host,hostname:a.hostname,port:"0"==a.port?"":a.port,pathname:a.pathname,search:a.search,hash:a.hash,origin:null};"/"!==d.pathname[0]&&(d.pathname="/"+d.pathname);if("http:"==d.protocol&&80==d.port||"https:"==d.protocol&&443==d.port)d.port="",d.host=d.hostname;d.origin=a.origin&&"null"!=a.origin?a.origin:"data:"!=d.protocol&&d.host?d.protocol+"//"+d.host:d.href;var e=
d;c&&c.put(b,e);return e}function Sc(a,b,c){if(!b)return a;var d=a.split("#",2),e=d[0].split("?",2),g=e[0]+(e[1]?c?"?"+b+"&"+e[1]:"?"+e[1]+"&"+b:"?"+b);return g+=d[1]?"#"+d[1]:""}function Tc(a,b){return Sc(a,Uc(b))}function Uc(a){var b=[],c;for(c in a){var d=a[c];if(null!=d)if(ia(d))for(var e=0;e<d.length;e++){var g=d[e];b.push(encodeURIComponent(c)+"="+encodeURIComponent(g))}else b.push(encodeURIComponent(c)+"="+encodeURIComponent(d))}return b.join("&")}
function Vc(a){"string"==typeof a&&(a=K(a));return"https:"==a.protocol||"localhost"==a.hostname||bb(a.hostname,".localhost")}function Wc(a,b,c){c=void 0===c?"source":c;D().assert(null!=a,"%s %s must be available",b,c);var d=a;D().assert(Vc(d)||/^(\/\/)/.test(d),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',b,c,d);return d}function Xc(a){var b=a.indexOf("#");return-1==b?a:a.substring(0,b)}
function Yc(a){"string"==typeof a&&(a=K(a));return sc.cdnProxyRegex.test(a.origin)}function Zc(a){if(!a)return!0;"string"==typeof a&&(a=K(a));return!Qc.includes(a.protocol)}function $c(a){var b=K(a),c=ad(b.search);return b.origin+b.pathname+c+b.hash}function ad(a){if(!a||"?"==a)return"";var b=a.replace(yc,"").replace(Nc,"").replace(Oc,"").replace(Pc,"").replace(/^[?&]/,"");return b?"?"+b:""}
function bd(a){"string"==typeof a&&(a=K(a));if(!Yc(a))return a.href;var b=a.pathname.split("/"),c=b[1];D().assert(vc[c],"Unknown path prefix in url %s",a.href);var d=b[2],e="s"==d?"https://"+decodeURIComponent(b[3]):"http://"+decodeURIComponent(d);D().assert(0<e.indexOf("."),"Expected a . in origin %s",e);b.splice(1,"s"==d?3:2);return e+b.join("/")+ad(a.search)+(a.hash||"")}function cd(a){return K(bd(a)).origin}
function dd(a,b){ed(b);var c=cd(a.location.href);return Sc(b,encodeURIComponent("__amp_source_origin")+"="+encodeURIComponent(c),void 0)}function ed(a){var b=K(a),c=r(b.search);D().assert(!("__amp_source_origin"in c),"Source origin is not allowed in %s",a)};function fd(a,b){var c;try{c=a.document.cookie}catch(k){c=""}var d=c;if(!d)return null;var e=d.split(";");for(a=0;a<e.length;a++){var g=e[a].trim(),h=g.indexOf("=");if(-1!=h&&ba(g.substring(0,h).trim(),void 0)==b)return b=g.substring(h+1).trim(),ba(b,b)}return null}
function gd(a,b,c,d,e){if(!e||!e.allowOnProxyOrigin){if(Yc(a.location.href))throw Error("Should never attempt to set cookie on proxy origin: "+b);var g=K(a.location.href).hostname.toLowerCase(),h=K(sc.cdn).hostname.toLowerCase();if(g==h||bb(g,"."+h))throw Error("Should never attempt to set cookie on proxy origin. (in depth check): "+b);}if(e&&e.highestAvailableDomain)for(var g=a.location.hostname.split("."),h=g[g.length-1],k=g.length-2;0<=k;k--)if(h=g[k]+"."+h,hd(a,b,c,d,h),fd(a,b)==c)return;g=void 0;
e&&e.domain&&(g=e.domain);hd(a,b,c,d,g)}function hd(a,b,c,d,e){"ampproject.org"==e&&(c="delete",d=0);b=encodeURIComponent(b)+"="+encodeURIComponent(c)+"; path=/"+(e?"; domain="+e:"")+"; expires="+(new Date(d)).toUTCString();try{a.document.cookie=b}catch(g){}};function id(a){return!(!a.AMP_CONFIG||!a.AMP_CONFIG.canary)}function L(a,b){var c=jd(a);return!!c[b]}function kd(a,b,c,d){var e=L(a,b),g=!(void 0!==c?!c:e);if(g!=e&&(jd(a)[b]=g,!d)){var h=ld(a);h[b]=g;b=h;var k=[],l;for(l in b)k.push((!1===b[l]?"-":"")+l);gd(a,"AMP_EXP",k.join(","),Date.now()+15552E6,{domain:a.location.hostname,allowOnProxyOrigin:!0})}return g}
function jd(a){if(a.__AMP__EXPERIMENT_TOGGLES)return a.__AMP__EXPERIMENT_TOGGLES;a.__AMP__EXPERIMENT_TOGGLES=Object.create(null);var b=a.__AMP__EXPERIMENT_TOGGLES;if(a.AMP_CONFIG)for(var c in a.AMP_CONFIG){var d=a.AMP_CONFIG[c];"number"===typeof d&&0<=d&&1>=d&&(b[c]=Math.random()<d)}if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-doc-opt-in"])&&0<a.AMP_CONFIG["allow-doc-opt-in"].length){var e=a.AMP_CONFIG["allow-doc-opt-in"],g=a.document.head.querySelector('meta[name="amp-experiments-opt-in"]');
if(g){var h=g.getAttribute("content").split(",");for(c=0;c<h.length;c++)-1!=e.indexOf(h[c])&&(b[h[c]]=!0)}}Object.assign(b,ld(a));if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-url-opt-in"])&&0<a.AMP_CONFIG["allow-url-opt-in"].length){c=a.AMP_CONFIG["allow-url-opt-in"];a=r(a.location.originalHash||a.location.hash);for(var k=0;k<c.length;k++){var l=a["e-"+c[k]];"1"==l&&(b[c[k]]=!0);"0"==l&&(b[c[k]]=!1)}}return b}
function ld(a){var b=fd(a,"AMP_EXP"),c=b?b.split(/\s*,\s*/g):[];a=Object.create(null);for(var d=0;d<c.length;d++)0!=c[d].length&&("-"==c[d][0]?a[c[d].substr(1)]=!1:a[c[d]]=!0);return a};function md(a,b){var c=void 0===b?this.contains(a):!b;if(c)return this.remove(a),!1;this.add(a);return!0}function nd(a){/Trident|MSIE|IEMobile/i.test(a.navigator.userAgent)&&a.DOMTokenList&&a.Object.defineProperty(a.DOMTokenList.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:md})};/*
 Copyright (C) 2014-2016 by Andrea Giammarchi - @WebReflection

Use of this source code is governed by a MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.

*/
function od(a){function b(a){return a.toLowerCase()}var c="auto";function d(){var a=zc.splice(0,zc.length);for(Ac=0;a.length;)a.shift().call(null,a.shift())}function e(a,b){for(var c=0,d=a.length;c<d;c++)B(a[c],b)}function g(a){for(var b=0,c=a.length,d;b<c;b++)d=a[b],Jb(d,Kb[k(d)])}function h(a){return function(b){hk(b)&&(B(b,a),ha.length&&e(b.querySelectorAll(ha),a))}}function k(a){var b=jb.call(a,"is"),c=a.nodeName.toUpperCase();a=qa.call(Ua,b?Cc+b.toUpperCase():Lb+c);return b&&-1<a&&!l(c,b)?-1:
a}function l(a,b){return-1<ha.indexOf(a+'[is="'+b+'"]')}function m(a){var b=a.currentTarget,c=a.attrChange,d=a.attrName,e=a.target,g=a[Dc]||2,h=a[Hd]||3;if(Ec&&(!e||e===b)&&b[Ga]&&"style"!==d&&(a.prevValue!==a.newValue||""===a.newValue&&(c===g||c===h)))b[Ga](d,c===g?null:a.prevValue,c===h?null:a.newValue)}function n(a){var b=h(a);return function(a){zc.push(b,a.target);Ac&&clearTimeout(Ac);Ac=setTimeout(d,1)}}function q(a){ng&&(ng=!1,a.currentTarget.removeEventListener(og,q));ha.length&&e((a.target||
H).querySelectorAll(ha),a.detail===ra?ra:ka);kb&&u()}function t(a,b){pg.call(this,a,b);Id.call(this,{target:this})}function A(a,b){jk(a,b);Fc?Fc.observe(a,kk):(Gc&&(a.setAttribute=t,a[da]=Jd(a),a[ea](lk,Id)),a[ea](Va,m));a[Mb]&&Ec&&(a.created=!0,a[Mb](),a.created=!1)}function u(){for(var a,b=0,c=Nb.length;b<c;b++)a=Nb[b],lb.contains(a)||(c--,Nb.splice(b--,1),B(a,ra))}function z(a){throw Error("A "+a+" type is already registered");}function B(a,b){var c,d=k(a);-1<d&&(Kd(a,Kb[d]),d=0,b!==ka||a[ka]?
b!==ra||a[ra]||(a[ka]=!1,a[ra]=!0,d=1):(a[ra]=!1,a[ka]=!0,d=1,kb&&0>qa.call(Nb,a)&&Nb.push(a)),d&&(c=a[b+Wa])&&c.call(a))}function y(){}function C(a,c,d){d=d&&d[Ob]||"";var e=c.prototype,g=Ld(e),h=c.observedAttributes||Md,k={prototype:g};Hc(g,Mb,{value:function(){if(Ic)Ic=!1;else if(!this[Pb]){this[Pb]=!0;new c(this);e[Mb]&&e[Mb].call(this);var a=Qb[Jc.get(c)];(!mb||1<a.create.length)&&O(this)}}});Hc(g,Ga,{value:function(a){-1<qa.call(h,a)&&e[Ga].apply(this,arguments)}});e[qg]&&Hc(g,mk,{value:e[qg]});
e[rg]&&Hc(g,nk,{value:e[rg]});d&&(k[Ob]=d);a=a.toUpperCase();Qb[a]={constructor:c,create:d?[d,b(a)]:[a]};Jc.set(c,a);H[Ha](a.toLowerCase(),k);U(a);nb[a].r()}function w(a){return(a=Qb[a.toUpperCase()])&&a.constructor}function v(a){return"string"===typeof a?a:a&&a.is||""}function O(a){for(var b=a[Ga],c=b?a.attributes:Md,d=c.length,e;d--;)e=c[d],b.call(a,e.name||e.nodeName,null,e.value||e.nodeValue)}function U(a){a=a.toUpperCase();a in nb||(nb[a]={},nb[a].p=new sg(function(b){nb[a].r=b}));return nb[a].p}
function S(){function c(b){var c=a[b];if(c){a[b]=function ik(a){var b;a||(a=this);a[Pb]||(Ic=!0,a=Qb[Jc.get(a.constructor)],a=(b=mb&&1===a.create.length)?Reflect.construct(c,Md,a.constructor):H.createElement.apply(H,a.create),a[Pb]=!0,Ic=!1,b||O(a));return a};a[b].prototype=c.prototype;try{c.prototype.constructor=a[b]}catch(ik){ok=!0,ob(c,Pb,{value:a[b]})}}}xa&&delete a.customElements;ob(a,"customElements",{configurable:!0,value:new y});ob(a,"CustomElementRegistry",{configurable:!0,value:y});for(var d=
Ia.get(/^HTML[A-Z]*[a-z]/),e=d.length;e--;c(d[e]));H.createElement=function(a,c){return(c=v(c))?Nd.call(this,a,b(c)):Nd.call(this,a)};tg||(Od=!0,H[Ha](""))}var H=a.document,X=a.Object,Ia=function(a){function b(a,b){b=b.toLowerCase();b in e||(e[a]=(e[a]||[]).concat(b),e[b]=e[b.toUpperCase()]=a)}function c(a){var b=[],c;for(c in e)a.test(c)&&b.push(c);return b}var d=/^[A-Z]+[a-z]/,e=(X.create||X)(null),g={},h,k,l,m;for(k in a)for(m in a[k])for(l=a[k][m],e[m]=l,h=0;h<l.length;h++)e[l[h].toLowerCase()]=
e[l[h].toUpperCase()]=m;g.get=function(a){return"string"===typeof a?e[a]||(d.test(a)?[]:""):c(a)};g.set=function Gn(a,c){return d.test(a)?b(a,c):b(c,a),g};return g}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],
HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:"element abbr address article aside b bdi bdo cite code command dd dfn dt em figcaption figure footer header i kbd mark nav noscript rp rt ruby s samp section small strong sub summary sup u var wbr".split(" "),
HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:"h1 h2 h3 h4 h5 h6".split(" "),HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],
HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],
HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],
HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],
XMLDocument:["xml"]}});c||(c="auto");var Ha="registerElement",da="__"+Ha+(1E5*a.Math.random()>>0),ea="addEventListener",ka="attached",Wa="Callback",ra="detached",Ob="extends",Ga="attributeChanged"+Wa,mk=ka+Wa,qg="connected"+Wa,rg="disconnected"+Wa,Mb="created"+Wa,nk=ra+Wa,Dc="ADDITION",Pd="MODIFICATION",Hd="REMOVAL",Va="DOMAttrModified",og="DOMContentLoaded",lk="DOMSubtreeModified",Lb="<",Cc="=",pk=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,qk="ANNOTATION-XML COLOR-PROFILE FONT-FACE FONT-FACE-SRC FONT-FACE-URI FONT-FACE-FORMAT FONT-FACE-NAME MISSING-GLYPH".split(" "),
Ua=[],Kb=[],ha="",lb=H.documentElement,qa=Ua.indexOf||function(a){for(var b=this.length;b--&&this[b]!==a;);return b},Qd=X.prototype,Rd=Qd.hasOwnProperty,Kc=Qd.isPrototypeOf,ob=X.defineProperty,Md=[],Sd=X.getOwnPropertyDescriptor,ug=X.getOwnPropertyNames,rk=X.getPrototypeOf,vg=X.setPrototypeOf,wg=!!X.__proto__,ok=!1,Pb="__dreCEv1",xa=a.customElements,mb="force"!==c&&!!(xa&&xa.define&&xa.get&&xa.whenDefined),xg=X.create||X,sk=a.Map||function(){var a=[],b=[],c;return{get:function(c){return b[qa.call(a,
c)]},set:function(d,e){c=qa.call(a,d);0>c?b[a.push(d)-1]=e:b[c]=e}}},sg=a.Promise||function(a){function b(a){for(d=!0;c.length;)c.shift()(a)}var c=[],d=!1,e={"catch":function(){return e},then:function(a){c.push(a);d&&setTimeout(b,1);return e}};a(b);return e},Ic=!1,Qb=xg(null),nb=xg(null),Jc=new sk,Ld=X.create||function Bc(a){return a?(Bc.prototype=a,new Bc):this},jk=vg||(wg?function(a,b){a.__proto__=b;return a}:ug&&Sd?function(){function a(a,b){for(var c,d=ug(b),e=0,g=d.length;e<g;e++)c=d[e],Rd.call(a,
c)||ob(a,c,Sd(b,c))}return function(b,c){do a(b,c);while((c=rk(c))&&!Kc.call(c,b));return b}}():function(a,b){for(var c in b)a[c]=b[c];return a}),Rb=a.MutationObserver||a.WebKitMutationObserver,Y=(a.HTMLElement||a.Element||a.Node).prototype,kb=!Kc.call(Y,lb),Hc=kb?function(a,b,c){a[b]=c.value;return a}:ob,hk=kb?function(a){return 1===a.nodeType}:function(a){return Kc.call(Y,a)},Nb=kb&&[],yg=Y.attachShadow,tk=Y.cloneNode,Td=Y.dispatchEvent,jb=Y.getAttribute,uk=Y.hasAttribute,vk=Y.removeAttribute,pg=
Y.setAttribute,Lc=H.createElement,Nd=Lc,kk=Rb&&{attributes:!0,characterData:!0,attributeOldValue:!0},zg=Rb||function(){Gc=!1;lb.removeEventListener(Va,zg)},zc,Ac=0,tg=Ha in H,Ag=!0,Od=!1,Gc=!0,ng=!0,Ec=!0,Id,Mc,Jd,Fc,Ud,Kd,Jb;tg||(vg||wg?(Kd=function(a,b){Kc.call(b,a)||A(a,b)},Jb=A):Jb=Kd=function(a,b){a[da]||(a[da]=X(!0),A(a,b))},kb?(Gc=!1,function(){function a(a){var b=a.currentTarget,c=b[da];a=a.propertyName;var d;c.hasOwnProperty(a)&&(c=c[a],d=new CustomEvent(Va,{bubbles:!0}),d.attrName=c.name,
d.prevValue=c.value||null,d.newValue=c.value=b[a]||null,null==d.prevValue?d[Dc]=d.attrChange=0:d[Pd]=d.attrChange=1,Td.call(b,d))}function b(a,b){var c=uk.call(this,a),d=c&&jb.call(this,a),e=new CustomEvent(Va,{bubbles:!0});pg.call(this,a,b);e.attrName=a;e.prevValue=c?d:null;e.newValue=b;c?e[Pd]=e.attrChange=1:e[Dc]=e.attrChange=0;Td.call(this,e)}function c(a){var b=new CustomEvent(Va,{bubbles:!0});b.attrName=a;b.prevValue=jb.call(this,a);b.newValue=null;b[Hd]=b.attrChange=2;vk.call(this,a);Td.call(this,
b)}var d=Sd(Y,ea),e=d.value;d.value=function(d,g,h){d===Va&&this[Ga]&&this.setAttribute!==b&&(this[da]={className:{name:"class",value:this.className}},this.setAttribute=b,this.removeAttribute=c,e.call(this,"propertychange",a));e.call(this,d,g,h)};ob(Y,ea,d)}()):Rb||(lb[ea](Va,zg),lb.setAttribute(da,1),lb.removeAttribute(da),Gc&&(Id=function(a){var b,c,d;if(this===a.target){b=this[da];this[da]=c=Jd(this);for(d in c){if(!(d in b))return Mc(0,this,d,b[d],c[d],Dc);if(c[d]!==b[d])return Mc(1,this,d,b[d],
c[d],Pd)}for(d in b)if(!(d in c))return Mc(2,this,d,b[d],c[d],Hd)}},Mc=function(a,b,c,d,e,g){c={attrChange:a,currentTarget:b,attrName:c,prevValue:d,newValue:e};c[g]=a;m(c)},Jd=function(a){for(var b,c={},d=a.attributes,e=0,g=d.length;e<g;e++)a=d[e],b=a.name,"setAttribute"!==b&&(c[b]=a.value);return c})),H[Ha]=function mg(a,b){function c(){return l?H.createElement(m,u):H.createElement(m)}u=a.toUpperCase();Ag&&(Ag=!1,Rb?(Fc=function(a,b){function c(a,b){for(var c=0,d=a.length;c<d;b(a[c++]));}return new Rb(function(d){for(var e,
g,h,k=0,l=d.length;k<l;k++)if(e=d[k],"childList"===e.type)c(e.addedNodes,a),c(e.removedNodes,b);else if(g=e.target,Ec&&g[Ga]&&"style"!==e.attributeName&&(h=jb.call(g,e.attributeName),h!==e.oldValue))g[Ga](e.attributeName,e.oldValue,h)})}(h(ka),h(ra)),Ud=function(a){Fc.observe(a,{childList:!0,subtree:!0});return a},Ud(H),yg&&(Y.attachShadow=function(){return Ud(yg.apply(this,arguments))})):(zc=[],H[ea]("DOMNodeInserted",n(ka)),H[ea]("DOMNodeRemoved",n(ra))),H[ea](og,q),H[ea]("readystatechange",q),
Y.cloneNode=function(a){var b=tk.call(this,!!a),c=k(b);-1<c&&Jb(b,Kb[c]);a&&ha.length&&g(b.querySelectorAll(ha));return b});if(Od)return Od=!1;-2<qa.call(Ua,Cc+u)+qa.call(Ua,Lb+u)&&z(a);if(!pk.test(u)||-1<qa.call(qk,u))throw Error("The type "+a+" is invalid");var d=b||Qd,l=Rd.call(d,Ob),m=l?b[Ob].toUpperCase():u,u;l&&-1<qa.call(Ua,Lb+m)&&z(m);b=Ua.push((l?Cc:Lb)+u)-1;ha=ha.concat(ha.length?",":"",l?m+'[is="'+a.toLowerCase()+'"]':m);c.prototype=Kb[b]=Rd.call(d,"prototype")?d.prototype:Ld(Y);ha.length&&
e(H.querySelectorAll(ha),ka);return c},H.createElement=Nd=function(a,c){var d=v(c),e=d?Lc.call(H,a,b(d)):Lc.call(H,a);a=""+a;var g=qa.call(Ua,(d?Cc:Lb)+(d||a).toUpperCase()),h=-1<g;d&&(e.setAttribute("is",d=d.toLowerCase()),h&&(h=l(a.toUpperCase(),d)));Ec=!H.createElement.innerHTMLHelper;h&&Jb(e,Kb[g]);return e});y.prototype={constructor:y,define:mb?function(a,b,c){if(c)C(a,b,c);else{var d=a.toUpperCase();Qb[d]={constructor:b,create:[d]};Jc.set(b,d);xa.define(a,b)}}:C,get:mb?function(a){return xa.get(a)||
w(a)}:w,whenDefined:mb?function(a){return sg.race([xa.whenDefined(a),U(a)])}:U};if(xa&&"force"!==c)try{(function(b,c,d){c[Ob]="a";b.prototype=Ld(HTMLAnchorElement.prototype);b.prototype.constructor=b;a.customElements.define(d,b,c);if(jb.call(H.createElement("a",{is:d}),"is")!==d||mb&&jb.call(new b,"is")!==d)throw c;})(function mg(){return Reflect.construct(HTMLAnchorElement,[],mg)},{},"document-register-element-a")}catch(Bc){S()}else S();try{Lc.call(H,"a","a")}catch(Bc){b=function(a){return{is:a.toLowerCase()}}}}
;nd(self);(function(a){a.fetch||(Object.defineProperty(a,"fetch",{value:Vb,writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(a,"Response",{value:ac,writable:!0,enumerable:!1,configurable:!0}))})(self);(function(a){a.Math.sign||a.Object.defineProperty(a.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:bc})})(self);(function(a){a.Object.assign||a.Object.defineProperty(a.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:dc})})(self);
(function(a){a.Promise||(a.Promise=J,J.default&&(a.Promise=J.default),a.Promise.resolve=J.resolve,a.Promise.reject=J.reject,a.Promise.all=J.all,a.Promise.race=J.race)})(self);Ya(self);(function(a){a.Array.prototype.includes||a.Object.defineProperty(Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:Da})})(self);L(self,"custom-elements-v1")?Ta(self,function(){}):od(self);function pd(a,b,c){if(a.nodeType){var d=qd((a.ownerDocument||a).defaultView,b);if(d)return d}return!a.nodeType||c?rd(a,b):null}function sd(a,b,c){var d=td(a);qd(a,b);ud(a,a,b,function(){return c});vd(a,b)}function qd(a,b){var c=td(a);return a!=c&&wd(a,b)?vd(a,b):null}function M(a,b,c,d){a=td(a);ud(a,a,b,c);d&&vd(a,b)}function N(a,b,c,d){var e=xd(a),g=yd(e);ud(g,e,b,c);d&&vd(g,b)}function P(a,b){a=td(a);return vd(a,b)}function zd(a){a=td(a);return wd(a,"performance")?vd(a,"performance"):null}
function Ad(a,b){var c=xd(a),c=yd(c);return vd(c,b)}function rd(a,b){a=xd(a);a=yd(a);return vd(a,b)}function Bd(a,b){return Cd(yd(a),b)}function Dd(a,b){return Ed(yd(a),b)}function Fd(a,b){a.__AMP_PARENT=b;a.__AMP_TOP=td(b)}function td(a){return a.__AMP_TOP||a}function Gd(a,b){var c=(a.ownerDocument||a).defaultView;if(c&&c!=b&&td(c)==b)try{return c.frameElement}catch(d){}return null}function xd(a){return a.nodeType?P((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}
function yd(a){a=xd(a);return a.isSingleDoc()?a.win:a}function vd(a,b){wd(a,b);var c=Vd(a);a=c[b];a.obj||(a.obj=new a.ctor(a.context),a.ctor=null,a.context=null,a.resolve&&a.resolve(a.obj));return a.obj}function ud(a,b,c,d){var e=Vd(a),g=e[c];g||(g=e[c]={obj:null,promise:null,resolve:null,context:null,ctor:null});g.ctor||g.obj||(g.ctor=d,g.context=b,g.resolve&&vd(a,c))}
function Cd(a,b){var c=Ed(a,b);if(c)return c;var d=new I,e=d.promise,d=d.resolve;Vd(a)[b]={obj:null,promise:e,resolve:d,context:null,ctor:null};return e}function Ed(a,b){var c=Vd(a)[b];if(c){if(c.promise)return c.promise;vd(a,b);return c.promise=Promise.resolve(c.obj)}return null}function Vd(a){var b=a.services;b||(b=a.services={});return b}function Wd(a,b){var c=a.frameElement,d=xd(c),d=yd(d);wd(d,b)&&(b=rd(c,b),"function"==typeof b.adoptEmbedWindow&&b.adoptEmbedWindow(a))}
function wd(a,b){a=a.services&&a.services[b];return!(!a||!a.ctor&&!a.obj)};function Xd(a,b,c){var d=Ed(a,b);return d?d:Yd(a,b,c,!0)}function Zd(a,b,c){return $d(a,b,c,void 0).then(function(a){return D().assert(a,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.",b,c,c,c)})}
function $d(a,b,c,d){var e=xd(a),g=Dd(a,b);return g?g:e.whenBodyAvailable().then(function(){return ae(e.win,c,e.getHeadNode())}).then(function(){var g;d?g=Dd(a,b):(g=e.win,g=g.ampExtendedElements&&g.ampExtendedElements[c]?Bd(a,b):null);return g})}function be(a){var b=pd(a,"bind");if(b)return Promise.resolve(b);if(a.nodeType){var b=a.ownerDocument.defaultView,c=td(b);return b!==c?Yd(b,"bind","amp-bind"):$d(a,"bind","amp-bind")}return Promise.resolve(null)}
function ce(a){if(!a)return[];for(var b=[],c=a.querySelectorAll("script[custom-element]"),d=0;d<c.length;d++)b.push(c[d].getAttribute("custom-element"));return b}function de(a){var b="amp-form";return a.whenBodyAvailable().then(function(){var c=a.getHeadNode(),d=b;return ce(c).includes(d)})}function ae(a,b,c){if(!ce(c).includes(b))return Promise.resolve();var d=P(a,"extensions");return d.waitForExtension(a,b)}
function Yd(a,b,c,d){return fb(a.document).then(function(){return ae(a,c,a.document.head)}).then(function(){return d?Ed(a,b):a.ampExtendedElements&&a.ampExtendedElements[c]?Cd(a,b):null})};function ee(a){return P(a,"ampdoc")}function fe(a){return Ad(a,"documentInfo").get()}function ge(a){return P(a,"extensions")}function he(a){return P(a,"performance")}function ie(a){return P(a,"platform")}function je(a){return rd(a,"resources")}function Q(a){return P(a,"timer")}function ke(a){return pd(a,"url-replace",!0)}function R(a){return rd(a,"viewer")}function le(a){return P(a,"vsync")}function me(a){return rd(a,"viewport")};var ne;function oe(a,b,c,d){var e=a,g=c,h;h=function(a){try{return g(a)}catch(n){throw self.reportError(n),n;}};var k=pe(),l=!1;d&&(l=d.capture);e.addEventListener(b,h,k?d:l);return function(){e&&e.removeEventListener(b,h,k?d:l);h=e=g=null}}function pe(){if(void 0!==ne)return ne;ne=!1;try{var a={get capture(){ne=!0}};self.addEventListener("test-options",null,a);self.removeEventListener("test-options",null,a)}catch(b){}return ne};function qe(a){var b={bubbles:!0},c={detail:null};Object.assign(c,b);if("function"==typeof a.CustomEvent)return new a.CustomEvent("amp-ini-load",c);a=a.document.createEvent("CustomEvent");a.initCustomEvent("amp-ini-load",!!c.bubbles,!!c.cancelable,null);return a}function re(a,b,c,d){return oe(a,b,c,d)}function se(a,b,c,d){var e=c,g=oe(a,b,function(a){try{e(a)}finally{e=null,g()}},d);return g}function te(a,b){var c,d=new Promise(function(b){c=se(a,"click",b,void 0)});d.then(c,c);b&&b(c);return d}
function ue(a){var b,c;if(a.complete||"complete"==a.readyState||a.document&&"complete"==a.document.readyState)return Promise.resolve(a);var d=new Promise(function(d,g){var e=a.tagName;b="AUDIO"===e||"VIDEO"===e?se(a,"loadstart",d):se(a,"load",d);e&&(c=se(a,"error",g))});return d.then(function(){c&&c();return a},function(){b&&b();var c=a;c&&c.src&&(c=c.src);throw D().createError("Failed to load:",c);})};function ve(a,b,c){return ue(a).then(function(){return we(a,b,c)})}function we(a,b,c){var d=a.performance&&a.performance.timing;if(d&&0!=d.navigationStart){var e=void 0===c?d[b]:d[c]-d[b];if(la(e)&&!(0>e))return e}}function xe(a,b){var c=a.performance&&a.performance.navigation;if(c&&void 0!==c[b])return c[b]}function ye(a){this.ampdoc=a;this.Ha=Object.create(null);this.Ed=!1;ze(this)}f=ye.prototype;f.jc=function(){this.initialize();this.Ed=!0};f.initialize=function(){};
f.get=function(a){this.Ed||this.jc();return this.Ha[a]};f.set=function(a,b){this.Ha[a]=this.Ha[a]||{sync:void 0,async:void 0};this.Ha[a].sync=b;return this};f.setAsync=function(a,b){this.Ha[a]=this.Ha[a]||{sync:void 0,async:void 0};this.Ha[a].async=b;return this};f.setBoth=function(a,b,c){return this.set(a,b).setAsync(a,c)};f.getExpr=function(a,b,c){this.Ed||this.jc();var d=Object.assign({},this.Ha,a);return Ae(this,Object.keys(d),b,c)};
function Ae(a,b,c,d){ze(a)&&(b=b.filter(function(b){return ze(a).includes(b)}));d&&(b=b.filter(function(a){return d[a]}));if(0===b.length){var e=/_^/g;return e}b.sort(function(a,b){return b.length-a.length});var g="\\$?("+b.map(function(a){return"$"===a[0]?"\\"+a:a}).join("|")+")";c||(g+="(?:\\(((?:\\s*[0-9a-zA-Z-_.]*\\s*(?=,|\\)),?)*)\\s*\\))?");return new RegExp(g,"g")}
function ze(a){if(a.se)return a.se;var b=a.ampdoc.getRootNode().head;if(!b)return null;b=b.querySelector('meta[name="amp-allowed-url-macros"]');if(!b)return null;a.se=b.getAttribute("content").split(",").map(function(a){return a.trim()});return a.se};function Be(){var a=Ce();return function(b){return setTimeout(b,a())}}function Ce(){var a=0;return function(){var b=Math.pow(1.5,a++),c;c=b*(c||.3)*Math.random();.5<Math.random()&&(c*=-1);b+=c;return 1E3*b}};var De,Ee="Webkit webkit Moz moz ms O o".split(" ");function Fe(a,b,c){if(cb(b,"--"))return b;De||(De=F());var d=De[b];if(!d||c){d=b;if(void 0===a[b]){var e=b.charAt(0).toUpperCase()+b.slice(1);a:{for(var g=0;g<Ee.length;g++){var h=Ee[g]+e;if(void 0!==a[h]){e=h;break a}}e=""}var k=e;void 0!==a[k]&&(d=k)}c||(De[b]=d)}return d}function Ge(a,b){a=a.style;for(var c in b)a.setProperty(Fe(a,c),b[c].toString(),"important")}function T(a,b,c,d){(b=Fe(a.style,b,void 0))&&(a.style[b]=d?c+d:c)}
function He(a,b){if(b=Fe(a.style,b,void 0))return a.style[b]}function Ie(a,b){for(var c in b)T(a,c,b[c])}function Je(a,b){void 0===b&&(b=a.hasAttribute("hidden"));b?a.removeAttribute("hidden"):a.setAttribute("hidden","")}function Ke(a,b){return a.getComputedStyle(b)||F()};var Le={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]",variant:"amp-experiment","amp-story":"amp-story[standalone]"};function Me(a){var b=Ne(a).map(function(b){return Q(a).timeoutPromise(3E3,Cd(a,b),"Render timeout waiting for service "+b+" to be ready.")});return Promise.all(b)}function Ne(a){var b=a.document;return Object.keys(Le).filter(function(a){return b.querySelector(Le[a])})};function Oe(a,b,c,d,e){var g=a.getHeadNode(),h=Pe(g,Qe(g,b),d||!1,e||null);if(c){var k=a.getRootNode();if(Re(k,h))c(h);else var l=setInterval(function(){Re(k,h)&&(clearInterval(l),c(h))},4)}}function Se(a,b,c,d,e){var g=Pe(a.head,b,d||!1,e||null);if(c)if(Re(a,g))c(g);else var h=setInterval(function(){Re(a,g)&&(clearInterval(h),c(g))},4)}
function Pe(a,b,c,d){var e=a.__AMP_CSS_SM;e||(e=a.__AMP_CSS_SM=F());var g=!c&&d&&"amp-custom"!=d&&"amp-keyframes"!=d,h=c?"amp-runtime":g?"amp-extension="+d:null;if(h){var k=Te(a,e,h);if(k)return k.textContent!==b&&(k.textContent=b),k}var l=(a.ownerDocument||a).createElement("style");l.textContent=b;var m=null;c?l.setAttribute("amp-runtime",""):g?(l.setAttribute("amp-extension",d||""),m=Te(a,e,"amp-runtime")):(d&&l.setAttribute(d,""),m=a.lastChild);b=m;a.insertBefore(l,b?b.nextSibling:a.firstChild);
h&&(e[h]=l);return l}function Te(a,b,c){return b[c]?b[c]:(a=a.querySelector("style["+c+"]"))?b[c]=a:null}function Qe(a,b){return(a=a.__AMP_CSS_TR)?a(b):b}var Ue=!1;function Ve(){var a=self.document,b=a.defaultView;fb(a).then(function(){return Me(b)}).catch(function(a){ya(a);return[]}).then(function(c){Ue=!0;We(a);try{je(a).renderStarted()}catch(e){}0<c.length&&je(a).schedulePass(1,!0);try{var d=he(b);d.tick("mbv");d.flush()}catch(e){}})}function Xe(a){Ue||(Ue=!0,We(a))}
function We(a){Ie(a.body,{opacity:1,visibility:"visible",animation:"none"})}function Re(a,b){var c=a.styleSheets;for(a=0;a<c.length;a++){var d=c[a];if(d.ownerNode==b)return!0}return!1};function Ye(a,b){$d(a,"amp-analytics-instrumentation","amp-analytics").then(function(c){c&&c.triggerEventForTarget(a,"user-error",b)})};var Ze=self.AMPErrors||[];self.AMPErrors=Ze;function $e(a){$e=Be();return $e(a)}function af(a){try{return JSON.stringify(a)}catch(b){return String(a)}}var bf;
function cf(a,b){try{var c;if(a)if(void 0!==a.message)a=wa(a),c=!0;else{var d=a;a=Error(af(d));a.origError=d}else a=Error("Unknown error");if(a.reported)return a;a.reported=!0;var e=b||a.associatedElement;e&&e.classList&&(e.classList.add("i-amphtml-error"),x().development&&(e.classList.add("i-amphtml-element-error"),e.setAttribute("error-message",a.message)));if(self.console){var g=console.error||console.log;a.messageArray?g.apply(console,a.messageArray):e?g.call(console,a.message,e):g.call(console,
a.message)}e&&e.cb&&e.cb();df.call(void 0,void 0,void 0,void 0,void 0,a)}catch(h){setTimeout(function(){throw h;})}return a}function ef(a){return a?"string"==typeof a?cb(a,"BLOCK_BY_CONSENT"):"string"==typeof a.message?cb(a.message,"BLOCK_BY_CONSENT"):!1:!1}function ff(){var a=self;a.onerror=df;a.addEventListener("unhandledrejection",function(a){!a.reason||"CANCELLED"!==a.reason.message&&"BLOCK_BY_CONSENT"!==a.reason.message?cf(a.reason||Error("rejected promise "+a)):a.preventDefault()})}
function df(a,b,c,d,e){this&&this.document&&Xe(this.document);if(!x().development){var g=!1;try{g=gf()}catch(k){}if(!(g&&.01<Math.random())){var h=hf(a,b,c,d,e,g);h&&(jf(this,h),$e(function(){var a=new XMLHttpRequest;a.open("POST",sc.errorReporting,!0);a.send(JSON.stringify(h))}))}}}
function jf(a,b){var c=ee(a);if(c.isSingleDoc()){var d=c.getAmpDoc(),e=d.getRootNode().documentElement,g=e.hasAttribute("report-errors-to-viewer");if(g){var h=R(d);h.hasCapability("errorReporter")?h.isTrustedViewer().then(function(a){if(!a)return!1;h.sendMessage("error",G({m:b.m,a:b.a,s:b.s,el:b.el,v:b.v,jse:b.jse}));return!0}):Promise.resolve(!1)}else Promise.resolve(!1)}else Promise.resolve(!1)}
function hf(a,b,c,d,e,g){var h=a;e&&(h=e.message?e.message:String(e));h||(h="Unknown error");a=h;var k=!(!e||!e.expected);if(!/_reported_/.test(a)&&"CANCELLED"!=a){var l=!(self&&self.window),m=Math.random();if(-1!=a.indexOf("Failed to load:")||"Script error."==a||l)if(k=!0,.001<m)return;var n=ma(a);if(!(n&&.1<m)){h=Object.create(null);h.v=x().rtvVersion;h.noAmp=g?"1":"0";h.m=a.replace("\u200b\u200b\u200b","");h.a=n?"1":"0";h.ex=k?"1":"0";h.dw=l?"1":"0";var q="1p";self.context&&self.context.location?
(h["3p"]="1",q="3p"):x().runtime&&(q=x().runtime);h.rt=q;"inabox"===q&&(h.adid=x().a4aId);h.ca=id(self)?"1":"0";g=self;h.bt=g.AMP_CONFIG&&g.AMP_CONFIG.type?g.AMP_CONFIG.type:"unknown";self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(h.or=self.location.ancestorOrigins[0]);self.viewerState&&(h.vs=self.viewerState);self.parent&&self.parent!=self&&(h.iem="1");if(self.AMP&&self.AMP.viewer){var t=self.AMP.viewer.getResolvedViewerUrl(),A=self.AMP.viewer.maybeGetMessagingOrigin();t&&(h.rvu=
t);A&&(h.mso=A)}bf||(bf=kf());h.jse=bf;var u=[];g=self.__AMP__EXPERIMENT_TOGGLES||null;for(var z in g)u.push(z+"="+(g[z]?"1":"0"));h.exps=u.join(",");e?(h.el=e.associatedElement?e.associatedElement.tagName:"u",e.args&&(h.args=JSON.stringify(e.args)),n||e.ignoreStack||!e.stack||(h.s=e.stack),e.message+=" _reported_"):(h.f=b||"",h.l=c||"",h.c=d||"");h.r=self.document.referrer;h.ae=Ze.join(",");h.fr=self.location.originalHash||self.location.hash;b=a;25<=Ze.length&&Ze.splice(0,Ze.length-25+1);Ze.push(b);
return h}}}function gf(){for(var a=self.document.querySelectorAll("script[src]"),b=0;b<a.length;b++)if(!Yc(a[b].src.toLowerCase()))return!0;return!1}function kf(){function a(){}a.prototype.t=function(){throw Error("message");};var b=new a;try{b.t()}catch(e){var c=e.stack;if(cb(c,"t@"))return"Safari";if(-1<c.indexOf(".prototype.t@"))return"Firefox";var d=c.split("\n").pop();if(/\bat .* \(/i.test(d))return"IE";if(cb(c,"Error: message"))return"Chrome"}return"unknown"};function V(a,b,c,d){return{left:a,top:b,width:c,height:d,bottom:b+d,right:a+c,x:a,y:b}}function lf(a){for(var b=-Infinity,c=Infinity,d=-Infinity,e=Infinity,g=0;g<arguments.length;g++){var h=arguments[g];if(h&&(b=Math.max(b,h.left),c=Math.min(c,h.left+h.width),d=Math.max(d,h.top),e=Math.min(e,h.top+h.height),c<b||e<d))return null}return Infinity==c?null:V(b,d,c-b,e-d)}function mf(a,b,c){return V(a.left-a.width*b,a.top-a.height*c,a.width*(1+2*b),a.height*(1+2*c))}
function nf(a,b,c){return 0==b&&0==c||0==a.width&&0==a.height?a:V(a.left+b,a.top+c,a.width,a.height)};function W(){this.ba=null}f=W.prototype;f.add=function(a){var b=this;this.ba||(this.ba=[]);this.ba.push(a);return function(){b.remove(a)}};f.remove=function(a){this.ba&&(a=this.ba.indexOf(a),-1<a&&this.ba.splice(a,1))};f.removeAll=function(){this.ba&&(this.ba.length=0)};f.fire=function(a){if(this.ba)for(var b=this.ba,c=0;c<b.length;c++)(0,b[c])(a)};f.getHandlerCount=function(){return this.ba?this.ba.length:0};function of(a,b){var c=100;function d(d){h=null;g=a.setTimeout(e,c);b.apply(null,d)}function e(){g=0;h&&d(h)}var g=0,h=null;return function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g?h=b:d(b)}}function pf(a,b){function c(){d=0;var h=300-(a.Date.now()-e);if(0<h)d=a.setTimeout(c,h);else{var k=g;g=null;b.apply(null,k)}}var d=0,e=0,g=null;return function(b){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];e=a.Date.now();g=h;d||(d=a.setTimeout(c,300))}};function qf(a,b){oe(a,"message",b,void 0)}function rf(a,b,c,d){c=void 0===c?{}:c;d=void 0===d?null:d;c.type=a;c.sentinel=b;return"amp-"+(d||"")+JSON.stringify(c)};var cssText$$module$build$css="html{overflow-x:hidden!important}body,html{height:auto!important}html.i-amphtml-fie{height:100%!important;width:100%!important}body{margin:0!important;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}[hidden]{display:none!important}html.i-amphtml-singledoc.i-amphtml-embedded{-ms-touch-action:pan-y;touch-action:pan-y}html.i-amphtml-fie>body,html.i-amphtml-singledoc>body{overflow:visible!important;position:relative!important}html.i-amphtml-webview>body{overflow-x:hidden!important;overflow-y:visible!important;min-height:100vh!important}html.i-amphtml-ios-embed-legacy>body{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important}html.i-amphtml-ios-embed{overflow-y:auto!important;position:static}#i-amphtml-wrapper{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;margin:0!important;display:block!important}html.i-amphtml-ios-embed.i-amphtml-ios-overscroll,html.i-amphtml-ios-embed.i-amphtml-ios-overscroll>#i-amphtml-wrapper{-webkit-overflow-scrolling:touch!important}#i-amphtml-wrapper>body{position:relative!important;border-top:1px solid transparent!important}html.i-amphtml-ios-embed-sd{overflow:hidden!important;position:static!important}html.i-amphtml-ios-embed-sd>body,html.i-amphtml-singledoc.i-amphtml-ios-embed-sd>body{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;overflow:hidden!important}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{-webkit-transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important;transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important}[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][sizes]:not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic{display:inline-block;position:relative;max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-fixed-height,[layout=fixed-height][height]{display:block;position:relative}.i-amphtml-layout-container,[layout=container]{display:block;position:relative}.i-amphtml-layout-fill,[layout=fill]:not(.i-amphtml-layout-fill){display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-webkit-box-flex:1;-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}.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-layout-intrinsic .i-amphtml-sizer{max-width:100%}.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-wrapper.i-amphtml-scroll-disabled,.i-amphtml-scroll-disabled{overflow-x:hidden!important;overflow-y:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[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)>*{display:none}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder]{display:block}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback]{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}.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;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-loader-line{position:absolute;top:0;left:0;right:0;height:1px;overflow:hidden!important;background-color:hsla(0,0%,59.2%,0.2);display:block}.i-amphtml-loader-moving-line{display:block;position:absolute;width:100%;height:100%!important;background-color:hsla(0,0%,59.2%,0.65);z-index:2}@-webkit-keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}.i-amphtml-loader-line.amp-active .i-amphtml-loader-moving-line{-webkit-animation:i-amphtml-loader-line-moving 4s ease infinite;animation:i-amphtml-loader-line-moving 4s ease infinite}.i-amphtml-loader{position:absolute;display:block;height:10px;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;white-space:nowrap}.i-amphtml-loader.amp-active .i-amphtml-loader-dot{-webkit-animation:i-amphtml-loader-dots 2s infinite;animation:i-amphtml-loader-dots 2s infinite}.i-amphtml-loader-dot{position:relative;display:inline-block;height:10px;width:10px;margin:2px;border-radius:100%;background-color:rgba(0,0,0,0.3);box-shadow:2px 2px 2px 1px rgba(0,0,0,0.2);will-change:transform}.i-amphtml-loader .i-amphtml-loader-dot:first-child{-webkit-animation-delay:0s;animation-delay:0s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(2){-webkit-animation-delay:.1s;animation-delay:.1s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(3){-webkit-animation-delay:.2s;animation-delay:.2s}@-webkit-keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,0.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,0.5)}}@keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,0.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,0.5)}}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden}.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-instagram{padding:64px 0px 0px!important;background-color:#fff}amp-analytics,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide]{display:none}[subscriptions-dialog],body:not(.i-amphtml-subs-ready) [subscriptions-action],body:not(.i-amphtml-subs-ready) [subscriptions-section]{display:none!important}form [submit-error],form [submit-success],form [submitting]{display:none}[visible-when-invalid]:not(.visible){display:none}amp-live-list>[update]{display:none}amp-experiment,amp-share-tracking{display:none}.i-amphtml-jank-meter{position:fixed;background-color:rgba(232,72,95,0.5);bottom:0;right:0;color:#fff;font-size:16px;z-index:1000;padding:5px}amp-accordion{display:block!important}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}.i-amphtml-accordion-content,.i-amphtml-accordion-header,amp-accordion,amp-accordion>section{margin:0}.i-amphtml-accordion-header{cursor:pointer;background-color:#efefef;padding-right:20px;border:1px solid #dfdfdf}amp-accordion>section>:last-child{display:none!important}amp-accordion>section[expanded]>:last-child{display:block!important}amp-story-page,amp-story[standalone]{display:block!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;width:100%!important}amp-story[standalone]{background-color:#fff!important;position:relative!important}amp-story-page{background-color:#757575}amp-story .i-amphtml-loader{display:none!important}[amp-fx^=fly-in]{visibility:hidden}\n/*# sourceURL=/css/amp.css*/";function sf(a){this.win=a;this.hh=this.win.Promise.resolve();this.rh=0;this.jd={};this.ne=Date.now()}f=sf.prototype;f.timeSinceStart=function(){return Date.now()-this.ne};f.delay=function(a,b){var c=this;if(!b){var d="p"+this.rh++;this.hh.then(function(){c.jd[d]?delete c.jd[d]:a()}).catch(cf);return d}return this.win.setTimeout(function(){try{a()}catch(e){throw cf(e),e;}},b)};f.cancel=function(a){"string"==typeof a?this.jd[a]=!0:this.win.clearTimeout(a)};
f.promise=function(a){var b=this;return new this.win.Promise(function(c){var d=b.delay(c,a);if(-1==d)throw Error("Failed to schedule timer.");})};f.timeoutPromise=function(a,b,c){function d(){e.cancel(g)}var e=this,g,h=new this.win.Promise(function(b,d){g=e.delay(function(){d(D().createError(c||"timeout"))},a);if(-1==g)throw Error("Failed to schedule timer.");});if(!b)return h;b.then(d,d);return this.win.Promise.race([h,b])};
f.poll=function(a,b){var c=this;return new this.win.Promise(function(d){var e=c.win.setInterval(function(){b()&&(c.win.clearInterval(e),d())},a)})};f.adoptEmbedWindow=function(a){sd(a,"timer",new sf(a))};function tf(a){return"loading"!=a.readyState&&"uninitialized"!=a.readyState}function uf(a){return"complete"==a.readyState}function vf(a,b){wf(a,tf,b)}function wf(a,b,c){var d=b(a);if(d)c(a);else{var e=function(){b(a)&&(d||(d=!0,c(a)),a.removeEventListener("readystatechange",e))};a.addEventListener("readystatechange",e)}}function xf(a){return new Promise(function(b){vf(a,b)})}function yf(a){return new Promise(function(b){wf(a,uf,b)})};function zf(a,b){for(var c=0,d=0;d<a.length;d++){var e=a[d];b(e,d,a)||(c<d&&(a[c]=e),c++)}c<a.length&&(a.length=c)}function Af(a,b){for(var c=0;c<a.length;c++)if(b(a[c],c,a))return c;return-1};var Bf;function Cf(a){a=a.ownerDocument||a;Bf&&Bf.ownerDocument===a||(Bf=a.createElement("div"));return Df}function Df(a){Bf.innerHTML=a[0];var b=Bf.firstElementChild;Bf.removeChild(b);return b};var Ef=['\n      <i-amphtml-sizer class="i-amphtml-sizer">\n        <img class="i-amphtml-intrinsic-sizer" />\n      </i-amphtml-sizer>'];Ef.raw=['\n      <i-amphtml-sizer class="i-amphtml-sizer">\n        <img class="i-amphtml-intrinsic-sizer" />\n      </i-amphtml-sizer>'];
var Ff={NODISPLAY:"nodisplay",FIXED:"fixed",FIXED_HEIGHT:"fixed-height",RESPONSIVE:"responsive",CONTAINER:"container",FILL:"fill",FLEX_ITEM:"flex-item",FLUID:"fluid",INTRINSIC:"intrinsic"},Gf={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}},Hf={"AMP-ANIM":!0,"AMP-BRIGHTCOVE":!0,"AMP-GOOGLE-DOCUMENT-EMBED":!0,"AMP-EMBED":!0,"AMP-FACEBOOK":!0,"AMP-FACEBOOK-COMMENTS":!0,"AMP-FACEBOOK-LIKE":!0,"AMP-FACEBOOK-PAGE":!0,
"AMP-IFRAME":!0,"AMP-IMG":!0,"AMP-INSTAGRAM":!0,"AMP-LIST":!0,"AMP-OOYALA-PLAYER":!0,"AMP-PINTEREST":!0,"AMP-PLAYBUZZ":!0,"AMP-VIDEO":!0,"AMP-YOUTUBE":!0};function If(a){for(var b in Ff)if(Ff[b]==a)return Ff[b]}function Jf(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a}function Kf(a){if("number"==typeof a)return a+"px";if(a&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(a))return/^\d+(\.\d+)?$/.test(a)?a+"px":a}
function Lf(a){D().assert(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(a),"Invalid length value: %s",a);return a}function Mf(a){D().assert(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|%)$/.test(a),"Invalid length or percent value: %s",a);return a}function Nf(a){Lf(a);var b=D().assert(a.match(/[a-z]+/i),"Failed to read units from %s",a);return b[0]}function Of(a){a=parseFloat(a);return la(a)?a:void 0};var Pf={"+":"-","/":"_","=":"."};function Qf(a){a=Sb(a);return btoa(a).replace(/[+/=]/g,function(a){return Pf[a]})};function Rf(){this.Fa=F();this.ea=null}f=Rf.prototype;f.get=function(a){return this.Fa[a]||null};f.whenSignal=function(a){var b=this.ea&&this.ea[a];if(!b){var c=this.Fa[a];null!=c?b={promise:"number"==typeof c?Promise.resolve(c):Promise.reject(c)}:(c=new I,b={promise:c.promise,resolve:c.resolve,reject:c.reject});this.ea||(this.ea=F());this.ea[a]=b}return b.promise};
f.signal=function(a,b){if(null==this.Fa[a]){var c=b||Date.now();this.Fa[a]=c;(a=this.ea&&this.ea[a])&&a.resolve&&(a.resolve(c),a.resolve=void 0,a.reject=void 0)}};f.rejectSignal=function(a,b){null==this.Fa[a]&&(this.Fa[a]=b,(a=this.ea&&this.ea[a])&&a.reject&&(a.reject(b),a.resolve=void 0,a.reject=void 0))};f.reset=function(a){this.Fa[a]&&delete this.Fa[a];var b=this.ea&&this.ea[a];b&&!b.resolve&&delete this.ea[a]};var Sf=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function Tf(a,b,c){return je(a).getResourcesInRect(b,c).then(function(a){var b=[];a.forEach(function(a){Sf.includes(a.element.tagName)||b.push(a.loadedOnce())});return Promise.all(b)})};var Uf={ANCESTOR_ORIGIN:!0};function Vf(a){this.Wa=a}Vf.prototype.expand=function(a,b,c,d,e){if(!a.length)return d?a:Promise.resolve(a);e=this.Wa.getExpr(b,!0,e);e=Wf(a,e);return e.length?Xf(this,a,e,b,c,d):d?a:Promise.resolve(a)};function Wf(a,b){var c=[];a.replace(b,function(a,b,g){a=a.length;var d=a+g-1;c.push({start:g,stop:d,name:b,length:a})});return c}
function Xf(a,b,c,d,e,g){function h(){for(var u="",z=[];l<b.length&&m<=c.length;){if(n&&l===n.start){var B=void 0;d&&Ca.call(d,n.name)?B={name:n.name,prioritized:d[n.name]}:(B=a.Wa.get(n.name),B.name=n.name);l=n.stop+1;n=c[++m];"("===b[l]?(l++,q++,k.push(B),u.trim().length&&z.push(u),z.push(h())):(u.length&&z.push(u),z.push(Yf(B,void 0,e,g)));u=""}else{if("`"===b[l])t?t=!1:(A=t=!0,D().assert(""===u.trim(),'The substring "'+u+'" was lost during url-replacement. Please ensure the url syntax is correct'),
u="");else if(q&&","===b[l]&&!t){if(u.length){var y=A?u:u.trim();z.push(y);A=!1}","===b[l+1]&&(z.push(""),l++);u=""}else{if(q&&")"===b[l]&&!t){l++;q--;var C=k.pop();z.push(A?u:u.trim());A=!1;return Yf(C,z,e,g)}u+=b[l]}l++}l===b.length&&u.length&&z.push(u)}return g?z.join(""):Promise.all(z).then(function(a){return a.join("")}).catch(function(a){ya(a);return""})}var k=[],l=0,m=0,n=c[m],q=0,t=!1,A=!1;return h()}
function Yf(a,b,c,d){var e=a.name,g;Ca.call(a,"prioritized")?g=a.prioritized:d&&Ca.call(a,"sync")?g=a.sync:d?(D().error("Expander","ignoring async replacement key: ",a.name),g=""):g=a.async||a.sync;var h;if(d){d=g;try{var k="function"===typeof d?d.apply(null,b):d,l;k&&k.then?(D().error("Expander","ignoring async macro resolution"),l=""):l="string"===typeof k||"number"===typeof k?Uf[e]?k.toString():encodeURIComponent(k):"";c&&(c[e]=l);h=l}catch(m){ya(m),c&&(c[e]=""),h=""}}else h=Zf(g,e,b,c);return h}
function Zf(a,b,c,d){var e;try{return e="function"===typeof a?c?Promise.all(c).then(function(b){return a.apply(null,b)}):Za(a):Promise.resolve(a),e.then(function(a){a=null==a?"":Uf[b]?a:encodeURIComponent(a);d&&(d[b]=a);return a}).catch(function(a){ya(a);d&&(d[b]="");return Promise.resolve("")})}catch(g){return ya(g),d&&(d[b]=""),Promise.resolve("")}};var $f=null,ag=["gclid","gclsrc"],bg=[/^t.co$/];function cg(){var a=self,b=new I,c=b.promise,d=b.resolve;$f=Q(a).timeoutPromise(8E3,c,"TrackImpressionPromise timeout").catch(function(a){E().warn("IMPRESSION",a)});var b=R(a.document),e=b.isTrustedViewer(),g=b.getReferrerUrl().then(function(a){return dg(a)});Promise.all([e,g]).then(function(b){var c=b[0],e=b[1];if(c||e||L(a,"alp")){var g=eg(a),h=fg(a);Promise.all([g,h]).then(function(){d()},function(){})}else d()})}
function eg(a){var b=R(a.document);return b.getParam("replaceUrl")?b.hasCapability("replaceUrl")?b.sendMessageAwaitResponse("getReplaceUrl",void 0).then(function(a){a&&"object"==typeof a?b.replaceUrl(a.replaceUrl||null):E().warn("IMPRESSION","get invalid replaceUrl response")},function(a){E().warn("IMPRESSION","Error request replaceUrl from viewer",a)}):(b.replaceUrl(b.getParam("replaceUrl")||null),Promise.resolve()):Promise.resolve()}
function dg(a){var b=K(a);return"https:"!=b.protocol?!1:bg.some(function(a){return a.test(b.hostname)})}
function fg(a){var b=R(a.document),c=b.getParam("click");if(!c)return Promise.resolve();if(0!=c.indexOf("https://"))return D().warn("IMPRESSION","click fragment param should start with https://. Found ",c),Promise.resolve();a.location.hash&&(a.location.hash="");return b.whenFirstVisible().then(function(){return gg(a,c)}).then(function(b){if(b){var c=b.location;(b=b.tracking_url||c)&&!Yc(b)&&((new Image).src=b);if(c&&a.history.replaceState){b=R(a.document);var d=a.location.href,c=K(c),c=r(c.search),
c=Tc(d,c);a.history.replaceState(null,"",c);b.maybeUpdateFragmentForCct()}}}).catch(function(a){D().warn("IMPRESSION","Error on request clickUrl: ",a)})}function gg(a,b){return P(a,"xhr").fetchJson(b,{credentials:"include",requireAmpResponseSourceOrigin:!1}).then(function(a){return 204==a.status?null:a.json()})}function hg(a){return a.whenReady().then(function(){return!!a.getBody().querySelector("amp-analytics[type=googleanalytics]")})};function ig(a){return function(){return(new Date)[a]()}}function jg(a,b){return function(){return a[b]}}function kg(a){ye.call(this,a);this.le=this.te=null}p(kg,ye);function lg(a,b,c,d){a.setBoth(b,function(){return we(a.ampdoc.win,c,d)},function(){return ve(a.ampdoc.win,c,d)})}
kg.prototype.initialize=function(){function a(){var a=fe(b.ampdoc);return Xc(Bg(b,a.sourceUrl))}var b=this,c=me(this.ampdoc);this.set("RANDOM",function(){return Math.random()});var d=Object.create(null);this.set("COUNTER",function(a){return d[a]=(d[a]|0)+1});this.set("CANONICAL_URL",Cg(this,"canonicalUrl"));this.set("CANONICAL_HOST",Cg(this,"canonicalUrl","host"));this.set("CANONICAL_HOSTNAME",Cg(this,"canonicalUrl","hostname"));this.set("CANONICAL_PATH",Cg(this,"canonicalUrl","pathname"));this.setAsync("DOCUMENT_REFERRER",
function(){return R(b.ampdoc).getReferrerUrl()});this.setAsync("EXTERNAL_REFERRER",function(){return R(b.ampdoc).getReferrerUrl().then(function(a){if(!a)return null;var c=K(bd(a)).hostname,d=b.ampdoc.win.location.hostname;return c===d?null:a})});this.set("TITLE",function(){return b.ampdoc.win.document.originalTitle||b.ampdoc.win.document.title});this.set("AMPDOC_URL",function(){return Xc(Bg(b,b.ampdoc.win.location.href))});this.set("AMPDOC_HOST",function(){var a=K(b.ampdoc.win.location.href);return a&&
a.host});this.set("AMPDOC_HOSTNAME",function(){var a=K(b.ampdoc.win.location.href);return a&&a.hostname});this.setBoth("SOURCE_URL",function(){return a()},function(){return $f.then(function(){return a()})});this.set("SOURCE_HOST",Cg(this,"sourceUrl","host"));this.set("SOURCE_HOSTNAME",Cg(this,"sourceUrl","hostname"));this.set("SOURCE_PATH",Cg(this,"sourceUrl","pathname"));this.set("PAGE_VIEW_ID",Cg(this,"pageViewId"));this.setBoth("QUERY_PARAM",function(a,c){c=void 0===c?"":c;return Dg(b,a,c)},function(a,
c){c=void 0===c?"":c;return $f.then(function(){return Dg(b,a,c)})});this.setAsync("FRAGMENT_PARAM",Eg(this,"fragmentParam","FRAGMENT_PARAM"));this.setAsync("ANCESTOR_ORIGIN",Eg(this,"ancestorOrigin","ANCESTOR_ORIGIN"));var e=null;this.setBoth("CLIENT_ID",function(a){return e?e[a]:null},function(a,c,d){D().assertString(a,"The first argument to CLIENT_ID, the fallback Cookie name, is required");if("inabox"==x().runtime)return Promise.resolve(null);var g=Promise.resolve();c&&(g=Zd(b.ampdoc,"userNotificationManager",
"amp-user-notification").then(function(a){return a.get(c)}));return Bd(b.ampdoc,"cid").then(function(b){return b.get({scope:a,createCookieIfNotPresent:!0,cookieName:d},g)}).then(function(b){e||(e=Object.create(null));var c=d||a;b&&"_ga"==c&&("string"===typeof b?b=b.replace(/^(GA1|1)\.[\d-]+\./,""):E().error("UrlReplacements","non-string cid, what is it?",Object.keys(b)));return e[a]=b})});this.setAsync("VARIANT",function(a){return Fg(b,function(b){var c=b[a];D().assert(void 0!==c,"The value passed to VARIANT() is not a valid experiment name:"+
a);return null===c?"none":c},"VARIANT")});this.setAsync("VARIANTS",function(){return Fg(b,function(a){var b=[],c;for(c in a)b.push(c+"."+(a[c]||"none"));return b.join("!")},"VARIANTS")});this.setAsync("AMP_GEO",function(a){return Gg(b,function(b){return a?(D().assert("ISOCountry"===a,"The value passed to AMP_GEO() is not valid name:"+a),b[a]||"unknown"):b.ISOCountryGroups.join(",")})});this.setAsync("SHARE_TRACKING_INCOMING",function(){return Hg(b,function(a){return a.incomingFragment},"SHARE_TRACKING_INCOMING")});
this.setAsync("SHARE_TRACKING_OUTGOING",function(){return Hg(b,function(a){return a.outgoingFragment},"SHARE_TRACKING_OUTGOING")});this.set("TIMESTAMP",ig("getTime"));this.set("TIMESTAMP_ISO",ig("toISOString"));this.set("TIMEZONE",ig("getTimezoneOffset"));this.set("TIMEZONE_CODE",function(){var a;"Intl"in b.ampdoc.win&&"DateTimeFormat"in b.ampdoc.win.Intl&&(a=(new Intl.DateTimeFormat).resolvedOptions().timeZone);return a||""});this.set("SCROLL_TOP",function(){return c.getScrollTop()});this.set("SCROLL_LEFT",
function(){return c.getScrollLeft()});this.set("SCROLL_HEIGHT",function(){return c.getScrollHeight()});this.set("SCROLL_WIDTH",function(){return c.getScrollWidth()});this.set("VIEWPORT_HEIGHT",function(){return c.getHeight()});this.set("VIEWPORT_WIDTH",function(){return c.getWidth()});var g=this.ampdoc.win.screen;this.set("SCREEN_WIDTH",jg(g,"width"));this.set("SCREEN_HEIGHT",jg(g,"height"));this.set("AVAILABLE_SCREEN_HEIGHT",jg(g,"availHeight"));this.set("AVAILABLE_SCREEN_WIDTH",jg(g,"availWidth"));
this.set("SCREEN_COLOR_DEPTH",jg(g,"colorDepth"));this.set("DOCUMENT_CHARSET",function(){var a=b.ampdoc.win.document;return a.characterSet||a.charset});this.set("BROWSER_LANGUAGE",function(){var a=b.ampdoc.win.navigator;return(a.language||a.userLanguage||a.browserLanguage||"").toLowerCase()});this.set("USER_AGENT",function(){return b.ampdoc.win.navigator.userAgent});lg(this,"PAGE_LOAD_TIME","navigationStart","loadEventStart");lg(this,"DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd");lg(this,
"TCP_CONNECT_TIME","connectStart","connectEnd");lg(this,"SERVER_RESPONSE_TIME","requestStart","responseStart");lg(this,"PAGE_DOWNLOAD_TIME","responseStart","responseEnd");lg(this,"REDIRECT_TIME","navigationStart","fetchStart");lg(this,"DOM_INTERACTIVE_TIME","navigationStart","domInteractive");lg(this,"CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart");this.setAsync("ACCESS_READER_ID",function(){return Ig(b,function(a){return a.getAccessReaderId()},"ACCESS_READER_ID")});this.setAsync("AUTHDATA",
function(a){D().assert(a,"The first argument to AUTHDATA, the field, is required");return Ig(b,function(b){return b.getAuthdataField(a)},"AUTHDATA")});this.setAsync("VIEWER",function(){return R(b.ampdoc).getViewerOrigin().then(function(a){return void 0==a?"":a})});this.setAsync("TOTAL_ENGAGED_TIME",function(){return Zd(b.ampdoc,"activity","amp-analytics").then(function(a){return a.getTotalEngagedTime()})});this.setAsync("INCREMENTAL_ENGAGED_TIME",function(a,c){return Zd(b.ampdoc,"activity","amp-analytics").then(function(b){return b.getIncrementalEngagedTime(a,
"false"!==c)})});this.set("NAV_TIMING",function(a,c){D().assert(a,"The first argument to NAV_TIMING, the start attribute name, is required");return we(b.ampdoc.win,a,c)});this.setAsync("NAV_TIMING",function(a,c){D().assert(a,"The first argument to NAV_TIMING, the start attribute name, is required");return ve(b.ampdoc.win,a,c)});this.set("NAV_TYPE",function(){return xe(b.ampdoc.win,"type")});this.set("NAV_REDIRECT_COUNT",function(){return xe(b.ampdoc.win,"redirectCount")});this.set("AMP_VERSION",function(){return"1810052256480"});
this.set("BACKGROUND_STATE",function(){return R(b.ampdoc).isVisible()?"0":"1"});this.setAsync("VIDEO_STATE",function(a,c){var d=b.ampdoc.getRootNode(),e=D().assertElement(d.getElementById(a),'Could not find an element with id="'+a+'" for VIDEO_STATE');return Ad(b.ampdoc,"video-manager").getAnalyticsDetails(e).then(function(a){return a?a[c]:""})});this.setAsync("STORY_PAGE_INDEX",Jg(this,"pageIndex","STORY_PAGE_INDEX"));this.setAsync("STORY_PAGE_ID",Jg(this,"pageId","STORY_PAGE_ID"));this.setAsync("FIRST_CONTENTFUL_PAINT",
function(){return Za(function(){return he(b.ampdoc.win).getFirstContentfulPaint()})});this.setAsync("FIRST_VIEWPORT_READY",function(){return Za(function(){return he(b.ampdoc.win).getFirstViewportReady()})});this.setAsync("MAKE_BODY_VISIBLE",function(){return Za(function(){return he(b.ampdoc.win).getMakeBodyVisible()})});this.setAsync("AMP_STATE",function(a){return be(b.ampdoc).then(function(b){return b?b.getStateValue(a):""})})};
function Bg(a,b){var c=fe(a.ampdoc).replaceParams;if(c){a=$c(b);for(var d=c,e=K(a),e=r(e.search),g=G({}),h=Object.keys(d),k=0;k<h.length;k++)Ca.call(e,h[k])||(g[h[k]]=d[h[k]]);a=Tc(a,g)}else a=b;return a}function Cg(a,b,c){return function(){var d=fe(a.ampdoc)[b];return c?K(d)[c]:d}}
function Ig(a,b,c){return Promise.all([$d(a.ampdoc,"access","amp-access"),$d(a.ampdoc,"subscriptions","amp-subscriptions")]).then(function(a){a=a[0]||a[1];return a?b(a):(D().error("UrlReplacements","Access or subsciptions service is not installed to access: ",c),null)})}
function Dg(a,b,c){D().assert(b,"The first argument to QUERY_PARAM, the query string param is required");var d=K($c(a.ampdoc.win.location.href)),d=r(d.search);b=D().assertString(b);a=fe(a.ampdoc).replaceParams;return"undefined"!==typeof d[b]?d[b]:a&&"undefined"!==typeof a[b]?a[b]:c}function Fg(a,b,c){a.te||(a.te=Xd(a.ampdoc.win,"variant","amp-experiment"));return a.te.then(function(a){D().assert(a,"To use variable %s, amp-experiment should be configured",c);return b(a)})}
function Gg(a,b){return $d(a.ampdoc,"geo","amp-geo",!0).then(function(a){D().assert(a,"To use variable %s, amp-geo should be configured","AMP_GEO");return b(a)})}function Hg(a,b,c){a.le||(a.le=Xd(a.ampdoc.win,"share-tracking","amp-share-tracking"));return a.le.then(function(a){D().assert(a,"To use variable %s, amp-share-tracking should be configured",c);return b(a)})}
function Jg(a,b,c){return function(){return Xd(a.ampdoc.win,"story-variable","amp-story").then(function(a){D().assert(a,"To use variable %s amp-story should be configured",c);return a[b]})}}function Eg(a,b,c){return function(d,e){e=void 0===e?"":e;return Xd(a.ampdoc.win,"viewer-integration-variable","amp-viewer-integration").then(function(a){D().assert(a,"To use variable %s amp-viewer-integration must be installed",c);return a[b](d,e)})}}
function Kg(a,b){this.ampdoc=a;this.Wa=b;this.xg=new Vf(this.Wa)}f=Kg.prototype;f.expandStringSync=function(a,b,c,d){return Lg(this,a,b,c,!0,d)};f.expandStringAsync=function(a,b,c){return Lg(this,a,b,void 0,void 0,c)};f.expandUrlSync=function(a,b,c,d){return Mg(a,Lg(this,a,b,c,!0,d))};f.expandUrlAsync=function(a,b,c){return Lg(this,a,b,void 0,void 0,c).then(function(b){return Mg(a,b)})};f.expandInputValueAsync=function(a){return Ng(this,a,!1)};f.expandInputValueSync=function(a){return Ng(this,a,!0)};
function Ng(a,b,c){"INPUT"==b.tagName&&b.getAttribute("type");var d=Og(b);if(!d)return c?b.value:Promise.resolve(b.value);void 0===b["amp-original-value"]&&(b["amp-original-value"]=b.value);a=Lg(a,b["amp-original-value"]||b.value,void 0,void 0,c,d);return c?b.value=a:a.then(function(a){return b.value=a})}
function Og(a,b){if(a=a.getAttribute("data-amp-replace")){var c={};a.trim().split(/\s+/).forEach(function(a){!b||Ca.call(b,a)?c[a]=!0:D().warn("URL","Ignoring unsupported replacement",a)});return c}}
f.maybeExpandLink=function(a,b){var c={CLIENT_ID:!0,QUERY_PARAM:!0},d=a.getAttribute("data-amp-addparams")||"",e=Og(a,c);if(e||d||b){var g=a["amp-original-href"]||a.getAttribute("href"),h=K(g);null==a["amp-original-href"]&&(a["amp-original-href"]=g);d&&(g=Tc(g,r(d)));a:{var k=fe(this.ampdoc);if(h.origin==K(k.canonicalUrl).origin||h.origin==K(k.sourceUrl).origin)h=!0;else{if((k=this.ampdoc.getRootNode().querySelector("meta[name=amp-link-variable-allowed-origin]"))&&k.hasAttribute("content"))for(var k=
k.getAttribute("content").trim().split(/\s+/),l=0;l<k.length;l++)if(h.origin==K(k[l]).origin){h=!0;break a}h=!1}}var m=h;if(!m)return e&&D().warn("URL","Ignoring link replacement",g," because the link does not go to the document's source, canonical, or whitelisted origin."),a.href=g;if(b){if(!e||!e.QUERY_PARAM){var n={QUERY_PARAM:!0};b=this.expandUrlSync(b,void 0,void 0,n)}g=Tc(g,r(b))}e&&(g=this.expandUrlSync(g,void 0,void 0,e));return a.href=g}};
function Lg(a,b,c,d,e,g){var h=L(a.ampdoc.win,"url-replacement-v2");if(h)return a.xg.expand(b,c,d,e,g);var k=a.Wa.getExpr(c),l,m=b.replace(k,function(b,h,k){var n=[];"string"==typeof k&&(n=k.split(/,\s*/));if(g&&!g[h])return b;var q;if(c&&h in c)q=c[h];else if(q=a.Wa.get(h))if(e){if(q=q.sync,!q)return D().error("UrlReplacements","ignoring async replacement key: ",h),""}else q=q.async||q.sync;var t;try{t="function"==typeof q?q.apply(null,n):q}catch(y){e&&(t=""),ya(y)}if(t&&t.then){if(e)return D().error("UrlReplacements",
"ignoring promise value for key: ",h),"";var B=t.catch(function(a){ya(a)}).then(function(a){m=m.replace(b,Uf[b]?a:null==a?"":encodeURIComponent(a));d&&(d[b]=a)});l=l?l.then(function(){return B}):B;return b}d&&(d[b]=t);return Uf[b]?t:null==t?"":encodeURIComponent(t)});l&&(l=l.then(function(){return m}));return e?m:l||Promise.resolve(m)}f.collectVars=function(a,b){var c=Object.create(null);return Lg(this,a,b,c).then(function(){return c})};
f.collectUnwhitelistedVarsSync=function(a){var b=a.getAttribute("src"),c=Object.create(null);this.expandStringSync(b,void 0,c);var d=Object.keys(c),e=Og(a);return e?d.filter(function(a){return!e[a]}):d};function Mg(a,b){var c=K(b,!0).protocol,d=K(a,!0).protocol;if(c!=d)return D().error("UrlReplacements","Illegal replacement of the protocol: ",a),a;D().assert(Zc(b),"The replacement url has invalid protocol: %s",b);return b}f.getVariableSource=function(){return this.Wa};
function Pg(a){N(a,"url-replace",function(a){return new Kg(a,new kg(a))})};var Qg=Date.now();function Rg(a){this.D=a;this.h=R(this.D);this.ge=null;this.S=Q(this.D.win)}Rg.prototype.isSupported=function(){return this.h.isCctEmbedded()&&this.h.isProxyOrigin()};Rg.prototype.getScopedCid=function(a){var b=this;if(!this.h.isCctEmbedded())return Promise.resolve(null);this.ge||(this.ge=this.wb("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc"));return this.ge.then(function(c){return c?Sg(b,c,a):null})};
Rg.prototype.wb=function(a,b){b=void 0===b?!0:b;var c=this,d=G({publisherOrigin:cd(this.D.win.location)});return this.S.timeoutPromise(3E4,P(this.D.win,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:d})).then(function(a){return a.json().then(function(a){if(a.optOut)return null;var d=a.publisherClientId;if(!d&&b&&a.alternateUrl){var e=a.alternateUrl+"?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc";return c.wb(e,!1)}return d})}).catch(function(a){a&&a.response?a.response.json().then(function(a){E().error("CacheCidApi",
JSON.stringify(a))}):E().error("CacheCidApi",a);return null})};function Sg(a,b,c){b=b+";"+c;return P(a.D.win,"crypto").sha384Base64(b).then(function(a){return"amp-"+a})};function Tg(a){this.o=a.win;this.S=Q(this.o);this.ld={};var b=fe(a).canonicalUrl;this.kd=b?K(b).origin:null}
Tg.prototype.getScopedCid=function(a,b){var c=this;if(this.ld[b])return this.ld[b];var d;return this.ld[b]=this.S.poll(200,function(){d=fd(c.o,"AMP_TOKEN");return"$RETRIEVING"!==d}).then(function(){if("$OPT_OUT"===d)return"$OPT_OUT";var e="$NOT_FOUND"===d&&Yc(c.o.document.referrer);if(!e&&d&&"$"===d[0])return null;d&&(!d||"$"!==d[0])||Ug(c,"$RETRIEVING",3E4);return c.wb("https://ampcid.google.com/v1/publisher:getClientId?key="+a,b,d).then(function(e){var g=c.cf(e);if(!g&&e.alternateUrl){var k=e.alternateUrl+
"?key="+a;return c.wb(k,b,d).then(c.cf.bind(c))}return g}).catch(function(a){Ug(c,"$ERROR",3E4);a&&a.response?a.response.json().then(function(a){E().error("GoogleCidApi",JSON.stringify(a))}):E().error("GoogleCidApi",a);return null})})};Tg.prototype.wb=function(a,b,c){b=G({originScope:b,canonicalOrigin:this.kd});c&&(b.securityToken=c);return this.S.timeoutPromise(3E4,P(this.o,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:b}).then(function(a){return a.json()}))};
Tg.prototype.cf=function(a){if(a.optOut)return Ug(this,"$OPT_OUT",31536E6),"$OPT_OUT";if(a.clientId)return Ug(this,a.securityToken,31536E6),a.clientId;if(a.alternateUrl)return null;Ug(this,"$NOT_FOUND",36E5);return null};function Ug(a,b,c){b&&gd(a.o,"AMP_TOKEN",b,a.o.Date.now()+c,{highestAvailableDomain:!0})};function Vg(a){this.D=a;this.h=R(this.D);this.kd=(a=fe(this.D).canonicalUrl)?K(a).origin:null}Vg.prototype.isSupported=function(){return this.h.hasCapability("cid")?this.h.isTrustedViewer():Promise.resolve(!1)};Vg.prototype.getScopedCid=function(a,b){b=G({scope:b,clientIdApi:!!a,canonicalOrigin:this.kd});a&&(b.apiKey=a);return this.h.sendMessageAwaitResponse("cid",b)};var Wg=/^[a-zA-Z0-9-_.]+$/,Xg={googleanalytics:"AMP_ECID_GOOGLE"},Yg={googleanalytics:"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function Zg(a){this.ampdoc=a;this.Zc=null;this.pd=Object.create(null);this.Ne=new Rg(a);this.Yf=new Vg(a);this.qg=new Tg(a);this.Yc=null}
Zg.prototype.get=function(a,b,c){var d=this;D().assert(Wg.test(a.scope)&&Wg.test(a.cookieName),"The CID scope and cookie name must only use the characters [a-zA-Z0-9-_.]+\nInstead found: %s",a.scope);return b.then(function(){return R(d.ampdoc).whenFirstVisible()}).then(function(){return $g(d.ampdoc)}).then(function(e){if(e)return"";var g=ah(d,a,c||b);return Q(d.ampdoc.win).timeoutPromise(1E4,g,'Getting cid for "'+a.scope+'" timed out').catch(function(a){ya(a)})})};Zg.prototype.optOut=function(){return bh(this.ampdoc)};
function ah(a,b,c){var d=b.scope,e=K(a.ampdoc.win.location.href);if(!Yc(e)){var g=ch(a,d);return g?a.qg.getScopedCid(g,d).then(function(e){return"$OPT_OUT"==e?null:e?(dh(a.ampdoc.win,b.cookieName||d,e),e):eh(a,b,c)}):eh(a,b,c)}return a.Yf.isSupported().then(function(b){if(b){var g=ch(a,d);return a.Yf.getScopedCid(g,d)}return a.Ne.isSupported()&&ch(a,d)?a.Ne.getScopedCid(d).then(function(b){return b?b:fh(a,c,d,e)}):fh(a,c,d,e)})}
function fh(a,b,c,d){return gh(a,b).then(function(b){return P(a.ampdoc.win,"crypto").sha384Base64(b+hh(d)+c)})}function ch(a,b){a.Yc||(a.Yc=ih(a));return a.Yc[b]}
function ih(a){var b={},c=a.ampdoc.win.document.head.querySelector("meta[name=amp-google-client-id-api]");c&&c.hasAttribute("content")&&c.getAttribute("content").split(",").forEach(function(a){a=a.trim();if(0<a.indexOf("=")){var c=a.split("=");b[c[0].trim()]=c[1].trim()}else{var d=a;(a=Xg[d])?b[a]=Yg[d]:D().error("CID","Unsupported client for Google CID API: "+d)}});return b}
function bh(a){R(a).sendMessage("cidOptOut",{});return Bd(a,"storage").then(function(a){return a.set("amp-cid-optout",!0)})}function $g(a){return Bd(a,"storage").then(function(a){return a.get("amp-cid-optout").then(function(a){return!!a})}).catch(function(){return!1})}function dh(a,b,c){var d=Date.now()+31536E6;gd(a,b,c,d,{highestAvailableDomain:!0})}
function eh(a,b,c){var d=a.ampdoc.win,e=b.scope,g=b.cookieName||e,h=fd(d,g);if(!h&&!b.createCookieIfNotPresent)return Promise.resolve(null);if(a.pd[e])return a.pd[e];if(h)return/^amp-/.test(h)&&dh(d,g,h),Promise.resolve(h);var k=jh(d).then(function(a){return"amp-"+a});Promise.all([k,c]).then(function(a){var b=a[0],c=fd(d,g);c||dh(d,g,b)});return a.pd[e]=k}function hh(a){D().assert(Yc(a),"Expected proxy origin %s",a.origin);return cd(a)}
function gh(a,b){if(a.Zc)return a.Zc;var c=a.ampdoc.win;return a.Zc=kh(a.ampdoc).then(function(d){var e=!1,g;d&&!lh(d)?(g=Promise.resolve(d.cid),d.time+864E5<Date.now()&&(e=!0)):(g=P(c,"crypto").sha384Base64(mh(c)),e=!0);e&&g.then(function(c){nh(a.ampdoc,b,c)});return g})}function nh(a,b,c){var d=a.win;Cb(d)?oh(a,JSON.stringify(G({time:Date.now(),cid:c}))):b.then(function(){try{d.localStorage.setItem("amp-cid",JSON.stringify(G({time:Date.now(),cid:c})))}catch(e){}})}
function oh(a,b){var c=R(a);return c.isTrustedViewer().then(function(a){if(a)return E().expectedError("CID","Viewer does not provide cap=cid"),c.sendMessageAwaitResponse("cid",b).then(function(a){return a&&!Gb(a)?(E().expectedError("CID","invalid cid format"),JSON.stringify(G({time:Date.now(),cid:a}))):a})})}
function kh(a){var b=a.win,c;try{c=b.localStorage.getItem("amp-cid")}catch(e){}var d=Promise.resolve(c);!c&&Cb(b)&&(d=oh(a));return d.then(function(a){if(!a)return null;a=Fb(a);return{time:a.time,cid:a.cid}})}function lh(a){var b=a.time,c=Date.now();return b+31536E6<c}function mh(a){var b;a.crypto&&a.crypto.getRandomValues?(b=new Uint8Array(16),a.crypto.getRandomValues(b)):b=null;return b?b:String(a.location.href+Date.now()+a.Math.random()+a.screen.width+a.screen.height)}
function jh(a){var b=mh(a);if("string"==typeof b)return P(a,"crypto").sha384Base64(b);var c=b;return Za(function(){return Qf(c).replace(/\.+$/,"")})};function ph(){this.C=[]}ph.prototype.peek=function(){var a=this.C.length;return a?this.C[a-1].item:null};ph.prototype.enqueue=function(a,b){if(isNaN(b))throw Error("Priority must not be NaN.");for(var c=b,d=-1,e=0,g=this.C.length;e<=g;){d=Math.floor((e+g)/2);if(d===this.C.length)break;if(this.C[d].priority<c)e=d+1;else if(0<d&&this.C[d-1].priority>=c)g=d-1;else break}this.C.splice(d,0,{item:a,priority:b})};ph.prototype.forEach=function(a){for(var b=this.C.length;b--;)a(this.C[b].item)};
ph.prototype.dequeue=function(){return this.C.length?this.C.pop().item:null};aa.Object.defineProperties(ph.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.C.length}}});function qh(a,b){var c=this;this.ampdoc=a;this.wa=b||a.getRootNode();this.H=me(this.ampdoc);this.h=R(this.ampdoc);this.N=Ad(this.ampdoc,"history");var d=ie(this.ampdoc.win);this.Jg=d.isIos()&&d.isSafari();this.Cb=Cb(this.ampdoc.win)&&this.h.isOvertakeHistory();this.Hd=this.wa!=this.ampdoc.getRootNode();this.Ig="inabox"==x(this.ampdoc.win).runtime;this.rb=this.Cg.bind(this);this.wa.addEventListener("click",this.rb);this.wa.addEventListener("contextmenu",this.rb);this.De=!1;hg(this.ampdoc).then(function(a){c.De=
a});this.Wc=null;this.Ce=new ph}f=qh.prototype;f.adoptEmbedWindow=function(a){sd(a,"navigation",new qh(this.ampdoc,a.document))};f.cleanup=function(){this.rb&&(this.wa.removeEventListener("click",this.rb),this.wa.removeEventListener("contextmenu",this.rb))};
f.navigateTo=function(a,b,c){var d=pd(this.ampdoc,"url",!0);if(d.isProtocolValid(b)){if(c&&(this.Wc||(this.Wc=rh(this)),this.Wc.includes(c)&&this.navigateToAmpUrl(b,c)))return;a.top.location.href=b}else D().error("navigation","Cannot navigate to invalid protocol: "+b)};f.navigateToAmpUrl=function(a,b){return this.h.hasCapability("a2a")?(this.h.sendMessage("a2aNavigate",G({url:a,requestedBy:b})),!0):!1};
function rh(a){return(a=a.wa.querySelector('meta[name="amp-to-amp-navigation"]'))&&a.hasAttribute("content")?a.getAttribute("content").split(",").map(function(a){return a.trim()}):[]}f.Cg=function(a){if(!a.defaultPrevented){var b=rb(a.target,"A");b&&b.href&&("click"==a.type?sh(this,b,a):"contextmenu"==a.type&&th(this,b))}};function sh(a,b,c){th(a,b);var d=uh(a,b.href);vh(a,c,b,d)||wh(a,c,b,d)||(a.Ce.forEach(function(a){a(b)}),d=uh(a,b.href),xh(a,c,b,d))}
function th(a,b){var c=null;if(a.De&&!a.Hd){a=K(a.ampdoc.win.location.href);var d=r(a.search);a=[];for(var e=0;e<ag.length;e++){var g=ag[e];"undefined"!==typeof d[g]&&a.push(g)}d=b.getAttribute("data-amp-addparams");e=b.href;d&&(e=Tc(e,r(d)));d=K(e);d=r(d.search);for(e=a.length-1;0<=e;e--)"undefined"!==typeof d[a[e]]&&a.splice(e,1);d="";for(e=0;e<a.length;e++)g=a[e],d+=0==e?g+"=QUERY_PARAM("+g+")":"&"+g+"=QUERY_PARAM("+g+")";c=d}var h=ke(b);h.maybeExpandLink(b,c)}
function wh(a,b,c,d){if(!a.Cb)return!1;var e=c.ownerDocument.defaultView;c=c.href;d=d.protocol;var g="ftp:"==d;if(g)return Bb(e,c,"_blank"),b.preventDefault(),!0;var h=/^(https?|mailto):$/.test(d);return a.Jg&&!h?(Bb(e,c,"_top"),b.preventDefault(),!0):!1}function vh(a,b,c,d){if(!c.hasAttribute("rel"))return!1;var e=c.getAttribute("rel").split(" ").map(function(a){return a.trim()});return e.includes("amphtml")?a.navigateToAmpUrl(d.href,"<a rel=amphtml>")?(b.preventDefault(),!0):!1:!1}
function xh(a,b,c,d){var e="",g=uh(a,e),h=""+d.origin+d.pathname+d.search,k=""+g.origin+g.pathname+g.search;if(d.hash&&h==k){if(b.preventDefault(),!a.Hd){var l=d.hash.slice(1),m=null;if(l)var n=String(l).replace($a,ab),m=a.wa.getElementById(l)||a.wa.querySelector('a[name="'+n+'"]');d.hash!=g.hash?a.N.replaceStateForTarget(d.hash).then(function(){yh(a,m,l)}):yh(a,m,l)}}else if(a.Hd||a.Ig){var q=(c.getAttribute("target")||"").toLowerCase();"_top"!=q&&"_blank"!=q&&c.setAttribute("target","_blank")}}
f.registerAnchorMutator=function(a,b){this.Ce.enqueue(a,b)};function yh(a,b,c){b?(a.H.scrollIntoView(b),Q(a.ampdoc.win).delay(function(){return a.H.scrollIntoView(b)},1)):E().warn("navigation","failed to find element with id="+c+" or a[name="+c+"]")}function uh(a,b){return pd(a.wa,"url",!0).parse(b)}
function zh(a,b){var c=rb(b.target,"A");if(c&&c.href){var d=c.getAttribute("data-a4a-orig-href")||c.getAttribute("href");d&&(a=ke(a).expandUrlSync(d,{CLICK_X:function(){return b.pageX},CLICK_Y:function(){return b.pageY}},void 0,{CLICK_X:!0,CLICK_Y:!0}),a!=d&&(c.getAttribute("data-a4a-orig-href")||c.setAttribute("data-a4a-orig-href",d),c.setAttribute("href",a)))}};var Ah=['\n      <div class="i-amphtml-jank-meter"></div>'];Ah.raw=['\n      <div class="i-amphtml-jank-meter"></div>'];function Bh(a){this.o=a;this.rc=this.qc=this.Wb=this.$b=0;this.Sb=null;this.va=zd(a);this.Gb=this.Fe=this.Ge=null;Ch(this)}Bh.prototype.onScheduled=function(){Dh(this)&&null==this.Sb&&(this.Sb=this.o.Date.now())};
Bh.prototype.onRun=function(){if(Dh(this)&&null!=this.Sb){var a=this.o.Date.now()-this.Sb;this.Sb=null;this.Wb++;16<a&&(this.$b++,E().info("JANK","Paint latency: "+a+"ms"));if(this.va&&200==this.Wb){var b=this.o.Math.floor((this.Wb-this.$b)/this.Wb*100);this.va.tickDelta("gfp",b);this.va.tickDelta("bf",this.$b);this.Gb&&(this.va.tickDelta("lts",this.rc),this.va.tickDelta("ltc",this.qc),this.Gb.disconnect(),this.Gb=null);var c=0;this.Ge&&null!=this.Fe&&(c=this.o.Math.max(0,this.o.Math.floor(100*this.Ge.level-
this.Fe)),this.va.tickDelta("bd",c));this.va.flush();if(L(this.o,"jank-meter")){var d=c,e=this.o.document,g=Cf(e)(Ah);g.textContent="bf:"+this.$b+", lts: "+this.rc+", "+("ltc:"+this.qc+", bd:"+d);e.body.appendChild(g)}}}};function Dh(a){return L(a.o,"jank-meter")||a.va&&a.va.isPerformanceTrackingOn()&&200>a.Wb}
function Ch(a){Dh(a)&&Eh(a.o)&&(a.Gb=new a.o.PerformanceObserver(function(b){for(var c=b.getEntries(),d=0;d<c.length;d++)if("longtask"==c[d].entryType){var e=a.o.Math.floor(c[d].duration/50);"cross-origin-descendant"==c[d].name?(a.qc+=e,D().info("LONGTASK","from child frame "+c[d].duration+"ms")):(a.rc+=e,E().info("LONGTASK","from self frame "+c[d].duration+"ms"))}}),a.Gb.observe({entryTypes:["longtask"]}))}
function Eh(a){return!!a.PerformanceObserver&&!!a.TaskAttributionTiming&&"containerName"in a.TaskAttributionTiming.prototype};function Fh(a,b,c){c=void 0===c?!1:c;a=new a.Image;c&&(a.referrerPolicy="no-referrer");a.src=b;return a};function Gh(a,b,c){var d=this;this.S=Q(a);this.Dg=b;this.sg=c||0;this.oa=-1;this.Zd=0;this.Ra=!1;this.jg=function(){return d.Cc()}}Gh.prototype.isPending=function(){return-1!=this.oa};Gh.prototype.schedule=function(a){a=a||this.sg;this.Ra&&10>a&&(a=10);var b=Date.now()+a;return!this.isPending()||-10>b-this.Zd?(this.cancel(),this.Zd=b,this.oa=this.S.delay(this.jg,a),!0):!1};Gh.prototype.Cc=function(){this.oa=-1;this.Zd=0;this.Ra=!0;this.Dg();this.Ra=!1};
Gh.prototype.cancel=function(){this.isPending()&&(this.S.cancel(this.oa),this.oa=-1)};var Hh=/nochunking=1/.test(self.location.hash),Ih=Promise.resolve();function Jh(a,b){Hh?Ih.then(b):(N(a,"chunk",Kh),rd(a,"chunk").runForStartup(b))}function Lh(a){this.state="not_run";this.qd=a}function Mh(a,b){if("run"!=a.state){a.state="run";try{a.qd(b)}catch(c){throw a.uf(c),c;}}}Lh.prototype.Dh=function(){return this.qd.displayName||this.qd.name};Lh.prototype.uf=function(){};Lh.prototype.ef=function(){return!1};Lh.prototype.Xf=function(){return!0};
function Nh(a,b,c){Lh.call(this,a);var d=this;this.o=b;this.h=null;c.then(function(a){d.h=a;d.h.isVisible()&&Mh(d,null);d.h.onVisibilityChanged(function(){d.h.isVisible()&&Mh(d,null)})})}p(Nh,Lh);Nh.prototype.uf=function(){Xe(self.document)};Nh.prototype.ef=function(){return this.h?this.h.isVisible():this.o.document.hidden?!1:!/visibilityState=(hidden|prerender)/.test(this.o.location.hash)};Nh.prototype.Xf=function(){return!!this.h};
function Kh(a){var b=this;this.o=a.win;this.I=new ph;this.Ie=this.Ve.bind(this);this.xh=Bd(a,"viewer");this.o.addEventListener("message",function(a){"amp-macro-task"==a.data&&b.Ve(null)})}Kh.prototype.run=function(a,b){var c=new Lh(a);Oh(this,c,b)};Kh.prototype.runForStartup=function(a){a=new Nh(a,this.o,this.xh);Oh(this,a,Number.POSITIVE_INFINITY)};function Oh(a,b,c){a.I.enqueue(b,c);Ih.then(function(){a.Sa()})}
function Ph(a,b){for(var c=a.I.peek();c&&"not_run"!==c.state;)a.I.dequeue(),c=a.I.peek();c&&b&&a.I.dequeue();return c}Kh.prototype.Ve=function(a){var b=this,c=Ph(this,!0);if(!c)return!1;Mh(c,a);Ih.then(function(){b.Sa()});return!0};function Qh(a){Ih.then(function(){a.Ie(null)})}Kh.prototype.Sa=function(){var a=Ph(this);a&&(a.ef()?Qh(this):a.Xf()&&this.o.requestIdleCallback?Rh(this.o,this.Ie):this.o.postMessage("amp-macro-task","*"))};
function Rh(a,b){var c=15,d=2E3;function e(h){if(h.timeRemaining()<c){var k=d-(Date.now()-g);0>=k||h.didTimeout?b(h):a.requestIdleCallback(e,{timeout:k})}else b(h)}var g=Date.now();a.requestIdleCallback(e,{timeout:d})};function Sh(a){return!!a&&"function"==typeof a.getFormData};var Th=["GET","POST"],Uh=[ia,ja];function Vh(a,b){var c=Object.assign({},b);if(Sh(b.body)){c.headers["Content-Type"]="multipart/form-data;charset=utf-8";b=b.body.entries();for(var d=[],e=b.next();!e.done;e=b.next())d.push(e.value);c.body=d}return{input:a,init:c}}
function Wh(a,b){D().assert(ja(a),"Object expected: %s",a);var c="document"==b;if(!c)return new Response(a.body,a.init);var d=F(),e={status:200,statusText:"OK",getResponseHeader:function(a){return d[String(a).toLowerCase()]||null}};if(a.init){var g=a.init;ia(g.headers)&&g.headers.forEach(function(a){d[String(a[0]).toLowerCase()]=String(a[1])});g.status&&(e.status=parseInt(g.status,10));g.statusText&&(e.statusText=String(g.statusText))}return new Response(a.body?String(a.body):"",e)}
function Xh(a,b,c,d){if(!b)return Promise.resolve();var e=R(b),g=e.whenFirstVisible();return!Yc(c)&&e.hasCapability("xhrInterceptor")&&b.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?g.then(function(){return e.isTrustedViewer()}).then(function(b){var g=x(a).development;if(b||g){var h=G({originalRequest:Vh(c,d)});return e.sendMessageAwaitResponse("xhr",h).then(function(a){return Wh(a,d.responseType)})}}):g}function Yh(a,b,c){!1!==c.ampCors&&(b=dd(a,b));return b}
function Zh(a,b){a=a||{};var c=a.credentials,d;d=a.method;void 0===d?d="GET":(d=d.toUpperCase(),Th.includes(d));a.method=d;a.headers=a.headers||G({});b&&(a.headers.Accept=b);return a}
function $h(a,b,c){!1===c.ampCors&&(c.requireAmpResponseSourceOrigin=!1);!0===c.requireAmpResponseSourceOrigin&&E().error("XHR","requireAmpResponseSourceOrigin is deprecated, use ampCors instead");void 0===c.requireAmpResponseSourceOrigin&&(c.requireAmpResponseSourceOrigin=!0);var d=a.origin||K(a.location.href).origin;a=K(b).origin;d==a&&(c.headers=c.headers||{},c.headers["AMP-Same-Origin"]="true");return c}
function ai(a){var b=Zh(a,"application/json");if("POST"==b.method&&!Sh(b.body)){Uh.some(function(a){return a(b.body)});b.headers["Content-Type"]=b.headers["Content-Type"]||"text/plain;charset=utf-8";var c=b.headers["Content-Type"];b.body="application/x-www-form-urlencoded"===c?Uc(b.body):JSON.stringify(b.body)}return b}function bi(a){return new Promise(function(b){if(a.ok)return b(a);b=a.status;var c=D().createError("HTTP error "+b);c.retriable=415==b||500<=b&&600>b;c.response=a;throw c;})};/*

 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
 Use of this source code is governed by a BSD-style
 license that can be found in the LICENSE file or at
 https://developers.google.com/open-source/licenses/bsd
*/
var ci;function di(){var a;if(void 0===ci){var b=a||Element;ci=b.prototype.attachShadow?"v1":b.prototype.createShadowRoot?"v0":"none"}return ci};var ei={composed:!1};function fi(a){return"none"!=di()&&Node.prototype.getRootNode?a.getRootNode(ei):qb(a,function(a){return a?"I-AMPHTML-SHADOW-ROOT"==a.tagName?!0:11==a.nodeType&&"[object ShadowRoot]"===Object.prototype.toString.call(a):!1})};function gi(a){try{return a.state}catch(b){return null}};var hi="__AMP_ACTION_MAP__"+Math.random(),ii={form:["submit","clear"]},ji={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};
function ki(a,b,c,d,e,g,h,k,l,m){k=void 0===k?"?":k;l=void 0===l?null:l;m=void 0===m?Math.random():m;this.node=a;this.method=b;this.args=c;this.source=d;this.caller=e;this.event=g;this.trust=h;this.actionEventType=k;this.tagOrTarget=l||a.tagName;this.sequenceId=m}
ki.prototype.satisfiesTrust=function(a){return la(this.trust)?this.trust<a?(D().error("Action",'"'+this.actionEventType+'" is not allowed to invoke '+('"'+this.tagOrTarget+"."+this.method+'".')),!1):!0:(E().error("Action","Invalid trust for '"+this.method+"': "+this.trust),!1)};
function li(a,b){this.ampdoc=a;this.xa=b||a.getRootNode();this.Xa=mi(this);this.rd=F();this.bf=F();this.addEvent("tap");this.addEvent("submit");this.addEvent("change");this.addEvent("input-debounced");this.addEvent("input-throttled");this.addEvent("valid");this.addEvent("invalid")}f=li.prototype;f.adoptEmbedWindow=function(a){sd(a,"action",new li(this.ampdoc,a.document))};
f.addEvent=function(a){var b=this;if("tap"==a)this.xa.addEventListener("click",function(c){c.defaultPrevented||b.trigger(c.target,a,c,100)}),this.xa.addEventListener("keydown",function(c){var d=c.target,e=c.keyCode;if(13==e||32==e){var k=d.getAttribute("role"),l=k&&Ca.call(ji,k.toLowerCase());!c.defaultPrevented&&l&&(c.preventDefault(),b.trigger(d,a,c,100))}});else if("submit"==a)this.xa.addEventListener(a,function(c){b.trigger(c.target,a,c,100)});else if("change"==a)this.xa.addEventListener(a,function(c){var d=
c.target;ni(c);b.trigger(d,a,c,100)});else if("input-debounced"==a){var c=pf(this.ampdoc.win,function(c){b.trigger(c.target,a,c,100)});this.xa.addEventListener("input",function(a){var b=new oi(a);ni(b);c(b)})}else if("input-throttled"==a){var d=of(this.ampdoc.win,function(c){b.trigger(c.target,a,c,100)});this.xa.addEventListener("input",function(a){a=new oi(a);ni(a);d(a)})}else"valid"!=a&&"invalid"!=a||this.xa.addEventListener(a,function(c){b.trigger(c.target,a,c,100)})};
f.addGlobalTarget=function(a,b){this.rd[a]=b};f.addGlobalMethodHandler=function(a,b,c){c=void 0===c?100:c;this.bf[a]={handler:b,minTrust:c}};f.trigger=function(a,b,c,d){pi(this,a,b,c,d)};f.execute=function(a,b,c,d,e,g,h){var k=new ki(a,b,c,d,e,g,h);qi(this,k)};
f.installActionHandler=function(a,b,c){c=void 0===c?100:c;var d=a.getAttribute("id")||"",e=a.tagName+"#"+d;if(a.__AMP_ACTION_HANDLER__)E().error("Action","Action handler already installed for "+a);else{var g=a.__AMP_ACTION_QUEUE__;a.__AMP_ACTION_HANDLER__={handler:b,minTrust:c};ia(g)&&Q(a.ownerDocument.defaultView).delay(function(){g.forEach(function(a){try{a.satisfiesTrust(c)&&b(a)}catch(k){E().error("Action","Action execution failed:",a,k)}});a.__AMP_ACTION_QUEUE__.length=0},1)}};
f.hasAction=function(a,b,c){return!!ri(a,b,c)};f.clearWhitelist=function(){this.Xa=[]};f.addToWhitelist=function(a,b){this.Xa||(this.Xa=[]);this.Xa.push({tagOrTarget:a,method:b})};
function pi(a,b,c,d,e){var g=ri(b,c);if(g){var h=Math.random(),k=null;g.actionInfos.forEach(function(l){function m(){var k=a.rd[n]?a.xa:a.xa.getElementById(n);if(k)return k=new ki(k,l.method,q,b,g.node,d,e,c,k.tagName||n,h),qi(a,k);a.Da('Target "'+n+'" not found for action '+("["+l.str+"]."))}var n=l.target,q=si(l.args,d);k=k?k.then(m):m()})}}f.Da=function(a,b){if(b)throw a=D().createError("[Action] "+a),cf(a,b),a;D().error("Action",a)};
function qi(a,b){var c=b.method,d=b.tagOrTarget;if(a.Xa&&!ti(b,a.Xa))return a.Da('"'+d+"."+c+'" is not whitelisted '+JSON.stringify(a.Xa)+"."),null;var e=a.rd[d];if(e)return e(b);var g=b.node,h=a.bf[c];if(h&&b.satisfiesTrust(h.minTrust))return h.handler(b);var k=g.tagName.toLowerCase();if("amp-"==k.substring(0,4))return g.enqueAction?g.enqueAction(b):a.Da('Unrecognized AMP element "'+k+'".',g),null;var l=ii[k],m=g.getAttribute("id")||"";if(m&&"amp-"==m.substring(0,4)||l&&-1<l.indexOf(c))return(a=
g.__AMP_ACTION_HANDLER__)?(g=a.handler,b.satisfiesTrust(a.minTrust)&&g(b)):(g.__AMP_ACTION_QUEUE__=g.__AMP_ACTION_QUEUE__||[],g.__AMP_ACTION_QUEUE__.push(b)),null;a.Da("Target ("+d+") doesn't support \""+c+'" action.',b.caller);return null}
function ri(a,b,c){for(;a&&(!c||a!=c);){var d=b,e,g,h;e=a;h=e[hi];if(void 0===h){h=null;if(e.hasAttribute("on")){var k=e.getAttribute("on"),l=ui.bind(null,k,e),m=vi.bind(null,k,e),n=null,q=new wi(k);do if(h=q.next(),h.type!=xi&&(h.type!=yi||";"!=h.value))if(h.type==zi||h.type==Ai){var t=h.value;m(q.next(),[yi],":");var A=[];do{var u=m(q.next(),[zi,Ai]).value,z="activate",B=null;g=q.peek();if(g.type==yi&&"."==g.value&&(q.next(),z=m(q.next(),[zi,Ai]).value||z,g=q.peek(),g.type==yi&&"("==g.value)){q.next();
var y;g=q;var B=m,C=l,w=g.peek(),v=null;if(w.type==Bi)v=F(),y=g.next().value,v.__AMP_OBJECT_STRING__=y,B(g.next(),[yi],")");else{do{var O=y=g.next(),w=O.type,O=O.value;if(w!=yi||","!=O&&")"!=O)if(w==zi||w==Ai){B(g.next(),[yi],"=");y=B(g.next(!0),[zi,Ai]);var U=[y];if(y.type==Ai)for(w=g.peek();w.type==yi&&"."==w.value;w=g.peek())g.next(),y=B(g.next(!1),[Ai]),U.push(y);w=Ci(U);v||(v=F());v[O]=w;w=g.peek();C(w.type==yi&&(","==w.value||")"==w.value),"Expected either [,] or [)]")}else C(!1,"; unexpected token ["+
(y.value||"")+"]")}while(y.type!=yi||")"!=y.value)}B=v}A.push({event:t,target:u,method:z,args:B,str:k});g=q.peek()}while(g.type==yi&&","==g.value&&q.next());n||(n=F());n[t]=A}else l(!1,"; unexpected token ["+(h.value||"")+"]");while(h.type!=xi);h=n}e[hi]=h}var S=(e=h)?e[d]||null:null;if(S&&!a.disabled&&!tb(a,":disabled"))return{node:a,actionInfos:S};a=a.parentElement}return null}f.setActions=function(a,b){a.setAttribute("on",b);delete a[hi]};
function mi(a){var b=a.ampdoc.getRootNode().head;return b?(b=b.querySelector('meta[name="amp-action-whitelist"]'))?b.getAttribute("content").split(",").filter(function(a){return a}).map(function(b){var c=b.split(".");if(2>c.length)a.Da("Invalid action whitelist entry: "+b+".");else return{tagOrTarget:c[0].trim(),method:c[1].trim()}}).filter(function(a){return a}):null:null}
function ni(a){var b=F(),c=a.target;void 0!==c.value&&(b.value=c.value);"INPUT"==c.tagName&&(b.valueAsNumber=Number(c.value));void 0!==c.checked&&(b.checked=c.checked);if(void 0!==c.min||void 0!==c.max)b.min=c.min,b.max=c.max;0<Object.keys(b).length&&(a.detail=b)}function ti(a,b){return b.some(function(b){var c=b.tagOrTarget;b=b.method;return("*"===c||c===a.tagOrTarget)&&b===a.method})}function oi(a){this.detail=null;var b=this||F(),c;for(c in a)b[c]="function"===typeof a[c]?Di:a[c]}
function Di(){}function Ci(a){return 0==a.length?null:1==a.length?a[0].value:{expression:a.map(function(a){return a.value}).join(".")}}
function si(a,b){if(!a)return a;var c={};b&&b.detail&&(c.event=b.detail);var d=F();Object.keys(a).forEach(function(b){var e=a[b];if("object"==typeof e&&e.expression){e=e.expression;if("."==e)e=c;else{for(var e=e.split("."),h=c,k=0;k<e.length;k++){var l=e[k];if(l&&h&&void 0!==h[l]&&Eb(h,l))h=h[l];else{h=void 0;break}}e=h}var m=e,e=void 0===m?null:m}d[b]=e});return d}function ui(a,b,c,d){return D().assert(c,"Invalid action definition in %s: [%s] %s",b,a,d||"")}
function vi(a,b,c,d,e){void 0!==e?ui(a,b,d.includes(c.type)&&c.value==e,"; expected ["+e+"]"):ui(a,b,d.includes(c.type));return c}var xi=1,yi=2,zi=3,Ai=4,Bi=5;function wi(a){this.J=a;this.Ad=-1}wi.prototype.next=function(a){var b=Ei(this,a||!1);this.Ad=b.index;return b};wi.prototype.peek=function(a){return Ei(this,a||!1)};
function Ei(a,b){var c=a.Ad+1;if(c>=a.J.length)return{type:xi,index:a.Ad};var d=a.J.charAt(c);if(-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(d)){for(c++;c<a.J.length&&-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(a.J.charAt(c));c++);if(c>=a.J.length)return{type:xi,index:c};d=a.J.charAt(c)}if(b&&(Fi(d)||"."==d&&c+1<a.J.length&&Fi(a.J[c+1]))){for(var e="."==d,g=c+1;g<a.J.length;g++){var h=a.J.charAt(g);if("."==h)e=!0;else if(!Fi(h))break}a=a.J.substring(c,g);a=e?parseFloat(a):parseInt(a,10);c=g-1;return{type:zi,
value:a,index:c}}if(-1!=";:.()=,|!".indexOf(d))return{type:yi,value:d,index:c};if(-1!="\"'".indexOf(d)){for(var g=-1,k=c+1;k<a.J.length;k++)if(a.J.charAt(k)==d){g=k;break}if(-1==g)return{type:0,index:c};a=a.J.substring(c+1,g);c=g;return{type:zi,value:a,index:c}}if("{"==d){for(var l=1,g=-1,d=c+1;d<a.J.length;d++){var m=a.J[d];"{"==m?l++:"}"==m&&l--;if(0>=l){g=d;break}}if(-1==g)return{type:0,index:c};a=a.J.substring(c,g+1);c=g;return{type:Bi,value:a,index:c}}for(g=c+1;g<a.J.length&&-1==" \t\n\r\f\x0B\u00a0\u2028\u2029;:.()=,|!\"'{}".indexOf(a.J.charAt(g));g++);
a=a.J.substring(c,g);c=g-1;return!b||"true"!=a&&"false"!=a?Fi(a.charAt(0))?{type:zi,value:a,index:c}:{type:Ai,value:a,index:c}:{type:zi,value:"true"==a,index:c}}function Fi(a){return"0"<=a&&"9">=a};function Gi(a,b){this.win=a;this.nb=null;b&&(this.nb=new Hi(a));this.ze=L(a,"ampdoc-closest");this.qa=null}f=Gi.prototype;f.isSingleDoc=function(){return!!this.nb};f.hasAmpDocShell=function(){return!!this.qa};
f.getAmpDoc=function(a,b){b=void 0===b?{}:b;var c=void 0===b.closestAmpDoc?!1:b.closestAmpDoc;if(this.nb&&!c&&!this.ze)return this.nb;if(L(this.win,"ampdoc-shell")&&a===this.win.document){if(this.qa)return this.qa;throw E().createError("Ampdoc for shell has not been installed");}for(b=a;b;){if(b.D&&(this.ze||!c))return b.D;var d=Gd(b,this.win);if(d)b=d;else{b=fi(b);if(!b){if(this.qa)return this.qa;break}if(d=b.__AMPDOC)return d;b=b.host}}if(this.nb)return this.nb;throw E().createError("No ampdoc found for",
a);};f.installShadowDoc=function(a,b){a=new Ii(this.win,a,b);return b.__AMPDOC=a};f.installShellShadowDoc=function(){var a=this;this.qa=new Ji(this.win);this.win.document.__AMPDOC=this.qa;xf(this.win.document).then(function(b){a.qa.setBody(b.body);a.qa.setReady()});return this.qa};function Ki(a){this.win=a;this.R=new Rf;this.Se=[]}f=Ki.prototype;f.isSingleDoc=function(){return null};f.getWin=function(){return this.win};f.signals=function(){return this.R};
f.declaresExtension=function(a){return-1!=this.Se.indexOf(a)};f.declareExtension=function(a){this.declaresExtension(a)||this.Se.push(a)};f.getRootNode=function(){return null};f.getHeadNode=function(){};f.isBodyAvailable=function(){return!1};f.getBody=function(){return null};f.whenBodyAvailable=function(){return null};f.isReady=function(){return null};f.whenReady=function(){return null};f.getUrl=function(){return null};f.getElementById=function(a){return this.getRootNode().getElementById(a)};
f.contains=function(a){return this.getRootNode().contains(a)};function Hi(a){Ki.call(this,a);var b=this;this.$c=this.win.document.body?Promise.resolve(this.win.document.body):fb(this.win.document).then(function(){return b.getBody()});this.he=xf(this.win.document)}p(Hi,Ki);f=Hi.prototype;f.isSingleDoc=function(){return!0};f.getRootNode=function(){return this.win.document};f.getUrl=function(){return this.win.location.href};f.getHeadNode=function(){return this.win.document.head};f.isBodyAvailable=function(){return!!this.win.document.body};
f.getBody=function(){return this.win.document.body};f.whenBodyAvailable=function(){return this.$c};f.isReady=function(){return tf(this.win.document)};f.whenReady=function(){return this.he};function Ii(a,b,c){Ki.call(this,a);this.re=b;this.Mf=c;this.cd=null;var d=new I;this.$c=d.promise;this.He=d.resolve;this.Df=!1;var e=new I;this.he=e.promise;this.Cf=e.resolve}p(Ii,Ki);f=Ii.prototype;f.isSingleDoc=function(){return!1};f.getRootNode=function(){return this.Mf};f.getUrl=function(){return this.re};
f.getHeadNode=function(){return this.Mf};f.isBodyAvailable=function(){return!!this.cd};f.getBody=function(){return this.cd};f.setBody=function(a){this.cd=a;this.He(a);this.He=void 0};f.whenBodyAvailable=function(){return this.$c};f.isReady=function(){return this.Df};f.setReady=function(){this.Df=!0;this.Cf();this.Cf=void 0};f.whenReady=function(){return this.he};function Ji(a){Ii.call(this,a,a.location.href,a.document)}p(Ji,Ii);Ji.prototype.getHeadNode=function(){return this.win.document.head};
function Li(){var a=self;M(a,"ampdoc",function(){return new Gi(a,!0)})};function Mi(a){var b=this;this.win=a;this.Cd=this.win.Date.now();this.vb=[];this.w=this.h=null;this.Eb=this.Ld=!1;this.Ue=F();this.Be="";this.Ze=this.Xe=this.nf=null;this.addEnabledExperiment("rtv-"+x(this.win).rtvVersion);id(this.win)&&this.addEnabledExperiment("canary");yf(a.document).then(function(){b.tick("ol");if(!b.win.PerformancePaintTiming&&b.win.chrome&&"function"==typeof b.win.chrome.loadTimes){var a=1E3*b.win.chrome.loadTimes().firstPaintTime-b.win.performance.timing.navigationStart;1>=
a||b.tickDelta("fp",a)}b.flush()});Ni(this)}f=Mi.prototype;f.coreServicesAvailable=function(){var a=this;this.h=R(this.win.document);this.w=je(this.win.document);this.Eb=this.h.isEmbedded()&&"1"===this.h.getParam("csi");this.h.onVisibilityChanged(this.flush.bind(this));Oi(this);var b=this.h.whenMessagingReady();this.h.whenFirstVisible().then(function(){a.tick("ofv");a.flush()});return b?b.then(function(){a.Ld=!0;a.tickDelta("msr",a.win.Date.now()-a.Cd);Pi(a);a.flush()}):Promise.resolve()};
function Ni(a){if(a.win.PerformancePaintTiming){var b=!1,c=!1,d=function(d){"first-paint"!=d.name||b?"first-contentful-paint"!=d.name||c||(a.tickDelta("fcp",d.startTime+d.duration),c=!0):(a.tickDelta("fp",d.startTime+d.duration),b=!0)},e=new a.win.PerformanceObserver(function(b){b.getEntries().forEach(d);a.flush()});a.win.performance.getEntriesByType("paint").forEach(d);e.observe({entryTypes:["paint"]})}}
function Oi(a){var b=!a.h.hasBeenVisible(),c=b?-1:a.Cd;b&&a.h.whenFirstVisible().then(function(){c=a.win.Date.now()});Qi(a).then(function(){if(b){var d=-1<c?a.win.Date.now()-c:0;a.h.whenFirstVisible().then(function(){a.tickDelta("pc",d)});Ri(a,d);a.mark("pc")}else a.tick("pc"),Ri(a,a.win.Date.now()-c);a.flush()})}
function Qi(a){var b=me(a.win.document).getSize(),b=V(0,0,b.width,b.height);return a.w.getResourcesInRect(a.win,b,!0).then(function(a){return Promise.all(a.map(function(a){return a.loadedOnce()}))})}
f.tick=function(a,b){var c=void 0==b?this.win.Date.now():void 0,d=G({label:a,value:c,delta:null!=b?Math.max(b,0):void 0});this.Ld&&this.Eb?this.h.sendMessage("tick",d):(50<=this.vb.length&&this.vb.shift(),this.vb.push(d));1==arguments.length&&this.mark(a);var e=Math.round(null!=b?Math.max(b,0):c-this.Cd);switch(a){case "fcp":this.Xe=e;break;case "pc":this.Ze=e;break;case "mbv":this.nf=e}};f.mark=function(a){this.win.performance&&this.win.performance.mark&&1==arguments.length&&this.win.performance.mark(a)};
f.tickDelta=function(a,b){this.tick(a,b)};f.tickSinceVisible=function(a){var b=this.win.Date.now(),c=this.h?this.h.getFirstVisibleTime():0;this.tickDelta(a,c?Math.max(b-c,0):0)};f.flush=function(){this.Ld&&this.Eb&&this.h.sendMessage("sendCsi",G({ampexp:this.Be}),!0)};f.throttledFlush=function(){this.Pf||(this.Pf=of(this.win,this.flush.bind(this)));this.Pf()};f.addEnabledExperiment=function(a){this.Ue[a]=!0;this.Be=Object.keys(this.Ue).join(",")};
function Pi(a){a.h&&(a.Eb&&a.vb.forEach(function(b){a.h.sendMessage("tick",b)}),a.vb.length=0)}function Ri(a,b){a.h&&a.h.sendMessage("prerenderComplete",G({value:b}),!0)}f.isPerformanceTrackingOn=function(){return this.Eb};f.getFirstContentfulPaint=function(){return this.Xe};f.getMakeBodyVisible=function(){return this.nf};f.getFirstViewportReady=function(){return this.Ze};var Si=['\n        <link rel="preload" referrerpolicy="origin" />'];Si.raw=['\n        <link rel="preload" referrerpolicy="origin" />'];var Ti=null;
function Ui(a){this.aa=a.document;this.wd=a.document.head;this.Lb={};this.Wf={};this.Ob=ie(a);this.Lb[K(a.location.href).origin]=!0;var b;a:{if(!Ti){b=a.document.createElement("link");var c=b.relList;b.as="invalid-value";if(!c||!c.supports){b={};break a}Ti={preconnect:c.supports("preconnect"),preload:c.supports("preload"),onlyValidAs:"invalid-value"!=b.as}}b=Ti}this.ec=b;this.S=Q(a)}Ui.prototype.url=function(a,b,c){var d=this;a.whenFirstVisible().then(function(){d.re(a,b,c)})};
Ui.prototype.re=function(a,b,c){if(Vi(b)){a=K(b).origin;b=Date.now();var d=this.Lb[a];if(d&&b<d)c&&(this.Lb[a]=b+18E4);else{this.Lb[a]=b+(c?18E4:1E4);var e;this.ec.preconnect||(e=this.aa.createElement("link"),e.setAttribute("rel","dns-prefetch"),e.setAttribute("href",a),this.wd.appendChild(e));var g=this.aa.createElement("link");g.setAttribute("rel","preconnect");g.setAttribute("href",a);g.setAttribute("referrerpolicy","origin");this.wd.appendChild(g);this.S.delay(function(){e&&e.parentNode&&e.parentNode.removeChild(e);
g.parentNode&&g.parentNode.removeChild(g)},1E4);Wi(this,a)}}};Ui.prototype.preload=function(a,b,c){var d=this;Vi(b)&&!this.Wf[b]&&(this.Wf[b]=!0,this.url(a,b,!0),this.ec.preload&&("document"==c&&this.Ob.isSafari()||a.whenFirstVisible().then(function(){var a=Cf(d.aa)(Si);a.setAttribute("href",b);a.as=d.ec.onlyValidAs?"fetch":"";d.wd.appendChild(a)})))};function Vi(a){return cb(a,"https:")||cb(a,"http:")?!0:!1}
function Wi(a,b){if(!a.ec.preconnect&&(a.Ob.isSafari()||a.Ob.isIos())){var c=Date.now();a.Lb[b]=c+18E4;var d=c-c%18E4;a=new XMLHttpRequest;a.open("HEAD",b+"/amp_preconnect_polyfill_404_or_other_error_expected._Do_not_worry_about_it?"+d,!0);a.withCredentials=!0;a.send()}}function Xi(a,b){this.yf=a;this.W=b;this.h=null}function Yi(a){a.h||(a.h=R(a.W));return a.h}Xi.prototype.url=function(a,b){this.yf.url(Yi(this),a,b)};Xi.prototype.preload=function(a,b){this.yf.preload(Yi(this),a,b)};function Zi(a){this.element=a;this.layout_="nodisplay";this.layoutWidth_=-1;this.inViewport_=!1;this.win=a.ownerDocument.defaultView;this.actionMap_=null;a=this.element;var b=a.ownerDocument.defaultView;M(b,"preconnect",Ui);b=P(b,"preconnect");this.preconnect=new Xi(b,a);this.config=null;this.layoutScheduleTime=0}f=Zi.prototype;f.signals=function(){return this.element.signals()};f.getLayoutPriority=function(){return 0};
f.updateLayoutPriority=function(a){this.element.getResources().updateLayoutPriority(this.element,a)};f.getLayout=function(){return this.layout_};f.getLayoutBox=function(){return this.element.getLayoutBox()};f.getPageLayoutBox=function(){return this.element.getPageLayoutBox()};f.getWin=function(){return this.win};f.getAmpDoc=function(){return this.element.getAmpDoc()};f.getVsync=function(){return le(this.win)};f.getLayoutWidth=function(){return this.layoutWidth_};
f.getConsentPolicy=function(){var a=null;this.element.hasAttribute("data-block-on-consent")&&(a=this.element.getAttribute("data-block-on-consent")||"default");return a};f.isLayoutSupported=function(a){return"nodisplay"==a};f.isAlwaysFixed=function(){return!1};f.isInViewport=function(){return this.inViewport_};f.upgradeCallback=function(){return null};f.createdCallback=function(){};f.firstAttachedCallback=function(){};f.buildCallback=function(){};f.preconnectCallback=function(){};
f.detachedCallback=function(){};f.setAsOwner=function(a){this.element.getResources().setOwner(a,this.element)};f.prerenderAllowed=function(){return!1};f.createPlaceholderCallback=function(){return null};f.renderOutsideViewport=function(){return"inabox"==x(this.win).runtime&&L(this.win,"inabox-rov")?!0:3};f.idleRenderOutsideViewport=function(){return!1};f.isRelayoutNeeded=function(){return!1};f.layoutCallback=function(){return Promise.resolve()};f.firstLayoutCompleted=function(){this.togglePlaceholder(!1)};
f.viewportCallback=function(){};f.pauseCallback=function(){};f.resumeCallback=function(){};f.unlayoutCallback=function(){return!1};f.unlayoutOnPause=function(){return!1};f.reconstructWhenReparented=function(){return!0};f.activate=function(){};f.activationTrust=function(){return 100};f.loadPromise=function(a){return ue(a)};function $i(a){a.actionMap_||(a.actionMap_=a.win.Object.create(null))}f.registerAction=function(a,b,c){c=void 0===c?100:c;$i(this);this.actionMap_[a]={handler:b,minTrust:c}};
f.executeAction=function(a){if("activate"==a.method){if(a.satisfiesTrust(this.activationTrust()))return this.activate(a)}else{$i(this);var b=this.actionMap_[a.method];D().assert(b,"Method not found: "+a.method+" in %s",this);var c=b.handler;if(a.satisfiesTrust(b.minTrust))return c(a)}};f.getMaxDpr=function(){return this.element.getResources().getMaxDpr()};f.getDpr=function(){return this.element.getResources().getDpr()};
f.propagateAttributes=function(a,b,c){a=ia(a)?a:[a];for(var d=0;d<a.length;d++){var e=a[d];this.element.hasAttribute(e)?b.setAttribute(e,this.element.getAttribute(e)):c&&b.removeAttribute(e)}};f.forwardEvents=function(a,b){var c=this,d=(ia(a)?a:[a]).map(function(a){return re(b,a,function(b){c.element.dispatchCustomEvent(a,b.data||{})})});return function(){return d.forEach(function(a){return a()})}};f.getPlaceholder=function(){return this.element.getPlaceholder()};f.togglePlaceholder=function(a){this.element.togglePlaceholder(a)};
f.getFallback=function(){return this.element.getFallback()};f.toggleFallback=function(a){this.element.toggleFallback(a)};f.toggleLoading=function(a,b){this.element.toggleLoading(a,{force:!!b})};f.isLoadingReused=function(){return!1};f.getOverflowElement=function(){return this.element.getOverflowElement()};f.renderStarted=function(){this.element.renderStarted()};f.getRealChildNodes=function(){return this.element.getRealChildNodes()};f.getRealChildren=function(){return this.element.getRealChildren()};
f.applyFillContent=function(a,b){a.classList.add("i-amphtml-fill-content");b&&a.classList.add("i-amphtml-replaced-content")};f.getViewport=function(){return me(this.getAmpDoc())};f.getIntersectionElementLayoutBox=function(){return this.getLayoutBox()};f.scheduleLayout=function(a){this.element.getResources().scheduleLayout(this.element,a)};f.schedulePause=function(a){this.element.getResources().schedulePause(this.element,a)};
f.scheduleResume=function(a){this.element.getResources().scheduleResume(this.element,a)};f.schedulePreload=function(a){this.element.getResources().schedulePreload(this.element,a)};f.scheduleUnlayout=function(a){this.element.getResources().scheduleUnlayout(this.element,a)};f.updateInViewport=function(a,b){this.element.getResources().updateInViewport(this.element,a,b)};f.changeHeight=function(a){this.element.getResources().changeSize(this.element,a,void 0)};f.collapse=function(){this.element.getResources().collapseElement(this.element)};
f.attemptCollapse=function(){return this.element.getResources().attemptCollapse(this.element)};f.attemptChangeHeight=function(a){return this.element.getResources().attemptChangeSize(this.element,a,void 0)};f.attemptChangeSize=function(a,b){return this.element.getResources().attemptChangeSize(this.element,a,b)};f.measureElement=function(a){return this.element.getResources().measureElement(a)};f.mutateElement=function(a,b){return this.measureMutateElement(null,a,b)};
f.measureMutateElement=function(a,b,c){return this.element.getResources().measureMutateElement(c||this.element,a,b)};f.collapsedCallback=function(){};f.expand=function(){this.element.getResources().expandElement(this.element)};f.expandedCallback=function(){};f.mutatedAttributesCallback=function(){};f.onLayoutMeasure=function(){};f.onMeasureChanged=function(){};f.user=function(){return D(this.element)};
f.declareLayer=function(a){L(this.win,"layers");a&&this.element.contains(a);return this.element.getLayers().declareLayer(a||this.element)};var aj=[];function bj(a){Zi.call(this,a);aj.push(this)}p(bj,Zi);bj.prototype.getLayoutPriority=function(){return 0};bj.prototype.isLayoutSupported=function(){return!0};bj.prototype.reconstructWhenReparented=function(){return!1};var cj={0:"cld",2:"adld"};function dj(a,b){this.o=a;this.Dc=zd(a);this.gc=this.fc=null;this.Te=!1;this.Od=cj[b]}dj.prototype.enterViewport=function(){this.Od&&!this.fc&&(this.fc=this.o.Date.now(),ej(this))};dj.prototype.startLayout=function(){this.Od&&!this.gc&&(this.gc=this.o.Date.now(),ej(this))};function ej(a){if(a.Dc&&a.Dc.isPerformanceTrackingOn()&&!a.Te&&a.fc&&a.gc){var b=a.o.Math.max(a.gc-a.fc,0);a.Dc.tickDelta(a.Od,b);a.Dc.throttledFlush();a.Te=!0}};function fj(a,b,c){b.__AMP__RESOURCE=this;this.zd=a;this.element=b;this.debugid=b.tagName.toLowerCase()+"#"+a;this.hostWin=b.ownerDocument.defaultView;this.w=c;this.Lg=b.hasAttribute("placeholder");this.Ab=!1;this.lb=void 0;this.G=b.isBuilt()?1:0;this.fe=-1;this.ha=0;this.kf=null;this.lc=!1;this.ta=V(-1E4,-1E4,0,0);this.Dd=null;this.Kd=!1;this.hb=this.la=null;this.ee=void 0;this.mf=!1;a=new I;this.Qg=a.promise;this.Rd=a.resolve;this.F=L(this.hostWin,"layers")}
function Z(a){return a.__AMP__RESOURCE}f=fj.prototype;f.getId=function(){return this.zd};f.updateOwner=function(a){this.lb=a};f.getOwner=function(){if(void 0===this.lb){for(var a=this.element;a;a=a.parentElement)if(a.__AMP__OWNER){this.lb=a.__AMP__OWNER;break}void 0===this.lb&&(this.lb=null)}return this.lb};f.hasOwner=function(){return!!this.getOwner()};f.getLayoutPriority=function(){return-1!=this.fe?this.fe:this.element.getLayoutPriority()};f.updateLayoutPriority=function(a){this.fe=a};
f.getState=function(){return this.G};f.isBuilt=function(){return this.element.isBuilt()};f.isBuilding=function(){return this.Ab};f.whenBuilt=function(){return this.element.signals().whenSignal("res-built")};
f.build=function(){var a=this;if(this.Ab||!this.element.isUpgraded()||!this.w.grantBuildPermission())return null;this.Ab=!0;return this.element.build().then(function(){a.Ab=!1;a.hasBeenMeasured()?(a.G=2,a.element.updateLayoutBox(a.getLayoutBox(),!0)):a.G=1;a.element.signals().signal("res-built");a.element.dispatchCustomEvent("amp:built")},function(b){a.maybeReportErrorOnBuildFailure(b);a.Ab=!1;a.element.signals().rejectSignal("res-built",b);throw b;})};
f.maybeReportErrorOnBuildFailure=function(a){ef(a)||E().error("Resource","failed to build:",this.debugid,a)};f.applySizesAndMediaQuery=function(){this.element.applySizesAndMediaQuery()};f.changeSize=function(a,b,c){this.element.changeSize(a,b,c);this.requestMeasure()};f.overflowCallback=function(a,b,c,d){a&&(this.ee={height:b,width:c,margins:d});this.element.overflowCallback(a,b,c,d)};f.resetPendingChangeSize=function(){this.ee=void 0};f.getPendingChangeSize=function(){return this.ee};
f.getUpgradeDelayMs=function(){return this.element.getUpgradeDelayMs()};
f.measure=function(){if(!(this.Lg&&this.element.parentElement&&cb(this.element.parentElement.tagName,"AMP-"))||"__AMP__RESOURCE"in this.element.parentElement){this.Kd=!1;var a=this.getPageLayoutBox();if(this.F){var b=this.element;b.getLayers().remeasure(b,!0)}else{var b=this.w.getViewport(),c=this.w.getViewport().getLayoutRect(this.element);this.ta=c;var d=!1;if(b.supportsPositionFixed()&&this.isDisplayed())for(var e=this.w.win,g=e.document.body,h=this.element;h&&h!=g;h=h.offsetParent){if(h.isAlwaysFixed&&
h.isAlwaysFixed()){d=!0;break}if(b.isDeclaredFixed(h)&&"fixed"==Ke(e,h).position){d=!0;break}}if(this.lc=d)this.ta=nf(c,-b.getScrollLeft(),-b.getScrollTop())}var b=this.getPageLayoutBox(),c=a,k=!(c.width==b.width&&c.height===b.height);1!=this.G&&a.top==b.top&&!k||!this.element.isUpgraded()||0==this.G||1!=this.G&&!this.element.isRelayoutNeeded()||(this.G=2);this.hasBeenMeasured()||(this.Dd=b);this.element.updateLayoutBox(b,k)}};
f.completeCollapse=function(){Je(this.element,!1);this.ta=this.F?V(0,0,0,0):V(this.ta.left,this.ta.top,0,0);this.lc=!1;this.element.updateLayoutBox(this.getLayoutBox());var a=this.getOwner();a&&a.collapsedCallback(this.element)};f.completeExpand=function(){Je(this.element,!0);this.requestMeasure()};f.isMeasureRequested=function(){return this.Kd};f.hasBeenMeasured=function(){return!!this.Dd};f.requestMeasure=function(){this.Kd=!0};
f.getLayoutBox=function(){if(this.F){var a=this.element,b=a.getLayers(),c=b.getScrolledPosition(a),a=b.getSize(a);return V(c.left,c.top,a.width,a.height)}if(!this.lc)return this.ta;c=this.w.getViewport();return nf(this.ta,c.getScrollLeft(),c.getScrollTop())};f.getPageLayoutBox=function(){if(this.F){var a=this.element,b=a.getLayers(),c=b.getOffsetPosition(a),a=b.getSize(a);return V(c.left,c.top,a.width,a.height)}return this.ta};f.getInitialLayoutBox=function(){return this.Dd||this.ta};
f.isDisplayed=function(){var a="fluid"==this.element.getLayout(),b=this.getLayoutBox(),c=0<b.height&&0<b.width;return(a||c)&&!!this.element.ownerDocument&&!!this.element.ownerDocument.defaultView};f.isFixed=function(){return this.lc};f.overlaps=function(a){var b=this.getLayoutBox();return b.top<=a.bottom&&a.top<=b.bottom&&b.left<=a.right&&a.left<=b.right};f.prerenderAllowed=function(){return this.element.prerenderAllowed()};
f.whenWithinViewport=function(a){if(!this.isLayoutPending()||!0===a)return Promise.resolve();var b=a;a=String(b);if(this.la&&this.la[a])return this.la[a].promise;if(this.isWithinViewportRatio(b))return Promise.resolve();this.la=this.la||{};this.la[a]=new I;return this.la[a].promise};function gj(a){if(a.la){var b=a.getDistanceViewportRatio(),c;for(c in a.la)a.isWithinViewportRatio(parseFloat(c),b)&&(a.la[c].resolve(),delete a.la[c])}}
f.getDistanceViewportRatio=function(){if(this.F){var a=this.element;return{distance:a.getLayers().iterateAncestry(a,this.Ng)}}var b=this.w.getViewport().getRect(),c=this.getLayoutBox(),d=this.w.getScrollDirection(),e=1,g=0;if(b.right<c.left||b.left>c.right)return{distance:!1};if(b.bottom<c.top)g=c.top-b.bottom,-1==d&&(e=2);else if(b.top>c.bottom)g=b.top-c.bottom,1==d&&(e=2);else return{distance:!0};return{distance:g,scrollPenalty:e,viewportHeight:b.height}};
f.isWithinViewportRatio=function(a,b){if("boolean"===typeof a)return a;var c=b||this.getDistanceViewportRatio(),d=c.distance,e=c.viewportHeight;return this.F?d<a:"boolean"==typeof d?d:d<e*a/c.scrollPenalty};f.Ng=function(a,b,c){a=a||0;var d=1+c/10,e=b.isActiveUnsafe()?1:2;b=b.getHorizontalViewportsFromParent()+b.getVerticalViewportsFromParent();return a+e*d*b};f.renderOutsideViewport=function(){gj(this);return this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())};
f.idleRenderOutsideViewport=function(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())};f.layoutScheduled=function(a){this.G=3;this.element.layoutScheduleTime=a};f.layoutCanceled=function(){this.G=this.hasBeenMeasured()?2:1};
f.startLayout=function(){var a=this;if(this.hb)return this.hb;if(4==this.G)return Promise.resolve();if(5==this.G)return Promise.reject(this.kf);this.isDisplayed();if(0<this.ha&&!this.element.isRelayoutNeeded())return this.G=4,Promise.resolve();this.ha++;this.G=3;var b;try{b=this.element.layoutCallback()}catch(c){return Promise.reject(c)}return this.hb=b.then(function(){return hj(a,!0)},function(b){return hj(a,!1,b)})};
function hj(a,b,c){a.Rd&&(a.Rd(),a.Rd=null);a.hb=null;a.mf=!0;a.G=b?4:5;a.kf=c;if(!b)return Promise.reject(c)}f.isLayoutPending=function(){return 4!=this.G&&5!=this.G};f.loadedOnce=function(){return this.Qg};f.hasLoadedOnce=function(){return this.mf};f.isInViewport=function(){var a=this.element.isInViewport();a&&gj(this);return a};f.setInViewport=function(a){this.element.viewportCallback(a)};
f.unlayout=function(){0!=this.G&&1!=this.G&&(this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.G=1,this.ha=0,this.hb=null))};f.getTaskId=function(a){return this.debugid+"#"+a};f.pause=function(){this.element.pauseCallback();this.element.unlayoutOnPause()&&this.unlayout()};f.pauseOnRemove=function(){this.element.pauseCallback()};f.resume=function(){this.element.resumeCallback()};f.unload=function(){this.pause();this.unlayout()};
f.disconnect=function(){delete this.element.__AMP__RESOURCE;this.element.disconnect(!0)};var ij=['<div class="i-amphtml-loader">\n        <div class="i-amphtml-loader-dot"></div>\n        <div class="i-amphtml-loader-dot"></div>\n        <div class="i-amphtml-loader-dot"></div>\n      </div>'];ij.raw=['<div class="i-amphtml-loader">\n        <div class="i-amphtml-loader-dot"></div>\n        <div class="i-amphtml-loader-dot"></div>\n        <div class="i-amphtml-loader-dot"></div>\n      </div>'];var jj=['<div class="i-amphtml-loader-line">\n          <div class="i-amphtml-loader-moving-line"></div>\n        </div>'];
jj.raw=['<div class="i-amphtml-loader-line">\n          <div class="i-amphtml-loader-moving-line"></div>\n        </div>'];var kj={"AMP-AD":!0};function lj(a,b){var c=a.split(",");D().assert(0<c.length,"sizes has to have at least one size");var d=[];c.forEach(function(a){a=a.replace(/\s+/g," ").trim();if(0!=a.length){var c,e,k=a.charAt(a.length-1),l,m=!1;if(")"==k){var m=!0,n=1;for(l=a.length-2;0<=l;l--){var q=a.charAt(l);"("==q?n--:")"==q&&n++;if(0==n)break}var t=l-1;if(0<l)for(l--;0<=l&&(q=a.charAt(l),"%"==q||"-"==q||"_"==q||"a"<=q&&"z">=q||"A"<=q&&"Z">=q||"0"<=q&&"9">=q);l--);D().assert(l<t,'Invalid CSS function in "%s"',a)}else for(l=
a.length-2;0<=l&&(q=a.charAt(l),"%"==q||"."==q||"a"<=q&&"z">=q||"A"<=q&&"Z">=q||"0"<=q&&"9">=q);l--);0<=l?(c=a.substring(0,l+1).trim(),e=a.substring(l+1).trim()):(e=a,c=void 0);d.push({mediaQuery:c,size:m?e:b?Mf(e):Lf(e)})}});return new mj(d)}
function mj(a){D().assert(0<a.length,"SizeList must have at least one option");this.oh=a;for(var b=0;b<a.length;b++){var c=a[b];b<a.length-1?D().assert(c.mediaQuery,"All options except for the last must have a media condition"):D().assert(!c.mediaQuery,"The last option must not have a media condition")}}mj.prototype.select=function(a){for(var b=this.oh,c=b.length-1,d=0;d<c;d++){var e=b[d];if(a.matchMedia(e.mediaQuery).matches)return e.size}return b[c].size};var nj=['\n            <div class="i-amphtml-loading-container i-amphtml-fill-content\n              amp-hidden"></div>'];nj.raw=['\n            <div class="i-amphtml-loading-container i-amphtml-fill-content\n              amp-hidden"></div>'];var oj;function pj(a,b){function c(a){return d.call(this,a)||this}var d=qj(a);p(c,d);c.prototype.elementName=function(){return b};return c}
function qj(a){function b(a){a=c.call(this,a)||this;a.createdCallback();return a}if(a.BaseCustomElementClass)return a.BaseCustomElementClass;var c=a.HTMLElement;p(b,c);b.prototype.createdCallback=function(){this.kc=this.Me=!1;this.hd=null;this.readyState="loading";this.everAttached=!1;this.gb=this.w=this.D=null;this.layout_="nodisplay";this.layoutWidth_=-1;this.ha=0;this.Nb=this.eb=this.Id=!1;this.hc=this.Kc=this.sc=void 0;this.warnOnMissingOverflow=!0;this.Ud=this.Sd=this.sizerElement=void 0;this.Td=
this.Oa=null;this.ia=void 0;var b=a.ampExtendedElements&&a.ampExtendedElements[this.elementName()];this.implementation_=new b(this);this.qb=1;this.Vf=0;this.Db=this.Ja=void 0;this.R=new Rf;var c=zd(a);this.wf=c&&c.isPerformanceTrackingOn();this.Qd=null;this.__AMP_UPG_RES&&(this.__AMP_UPG_RES(this),delete this.__AMP_UPG_RES,delete this.__AMP_UPG_PRM)};b.prototype.elementName=function(){};b.prototype.signals=function(){return this.R};b.prototype.getAmpDoc=function(){return this.D};b.prototype.getResources=
function(){return this.w};b.prototype.getLayers=function(){return this.gb};b.prototype.isUpgraded=function(){return 2==this.qb};b.prototype.upgrade=function(a){this.Db||1!=this.qb||(this.implementation_=new a(this),this.everAttached&&this.Sf())};b.prototype.getUpgradeDelayMs=function(){return this.Vf};b.prototype.md=function(b,c){this.Vf=a.Date.now()-c;this.qb=2;this.implementation_=b;this.classList.remove("amp-unresolved");this.classList.remove("i-amphtml-unresolved");this.implementation_.createdCallback();
this.dg();this.implementation_.layout_=this.layout_;this.implementation_.layoutWidth_=this.layoutWidth_;this.implementation_.firstAttachedCallback();this.cb();this.getResources().upgraded(this)};b.prototype.dg=function(){if("nodisplay"!=this.layout_&&!this.implementation_.isLayoutSupported(this.layout_)){var a="Layout not supported: "+this.layout_;this.getAttribute("layout")||(a+=". The element did not specify a layout attribute. Check https://www.ampproject.org/docs/guides/responsive/control_layout and the respective element documentation for details.");
throw D().createError(a);}};b.prototype.isBuilt=function(){return this.Me};b.prototype.whenBuilt=function(){return this.R.whenSignal("built")};b.prototype.getLayoutPriority=function(){this.isUpgraded();return this.implementation_.getLayoutPriority()};b.prototype.build=function(){var a=this;this.isUpgraded();return this.hd?this.hd:this.hd=(new Promise(function(b,c){var d=a.Ag();d?$d(a.getAmpDoc(),"consentPolicyManager","amp-consent").then(function(a){return a?a.whenPolicyUnblock(d):!0}).then(function(d){1==
d?b(a.implementation_.buildCallback()):c(Error("BLOCK_BY_CONSENT"))}):b(a.implementation_.buildCallback())})).then(function(){a.preconnect(!1);a.Me=!0;a.classList.remove("i-amphtml-notbuilt");a.classList.remove("amp-notbuilt");a.R.signal("built");a.eb&&a.Tf(!0);a.Ja&&Q(a.ownerDocument.defaultView).delay(a.tg.bind(a),1);if(!a.getPlaceholder()){var b=a.createPlaceholder();b&&a.appendChild(b)}},function(b){a.R.rejectSignal("built",b);ef(b)||cf(b,a);throw b;})};b.prototype.preconnect=function(a){var b=
this;a?this.implementation_.preconnectCallback(a):Q(this.ownerDocument.defaultView).delay(function(){var c=b.tagName;b.ownerDocument?b.ownerDocument.defaultView?b.implementation_.preconnectCallback(a):E().error(c,"preconnect without defaultView"):E().error(c,"preconnect without ownerDocument")},1)};b.prototype.isAlwaysFixed=function(){return this.implementation_.isAlwaysFixed()};b.prototype.updateLayoutBox=function(a,b){var c=this;this.layoutWidth_=a.width;this.isUpgraded()&&(this.implementation_.layoutWidth_=
this.layoutWidth_);if(this.isBuilt())try{if(this.implementation_.onLayoutMeasure(),b)this.implementation_.onMeasureChanged()}catch(h){cf(h,this)}this.mc()&&(this.eb?this.toggleLoading(!0):1E3>a.top&&0<=a.top&&this.vc(function(){return c.zf()}))};b.prototype.af=function(){void 0===this.sizerElement&&"responsive"===this.layout_&&(this.sizerElement=this.querySelector("i-amphtml-sizer"));return this.sizerElement||null};b.prototype.applySizesAndMediaQuery=function(){void 0===this.sc&&(this.sc=this.getAttribute("media")||
null);if(this.sc){var a=this.ownerDocument.defaultView;this.classList.toggle("i-amphtml-hidden-by-media-query",!a.matchMedia(this.sc).matches)}if(void 0===this.Kc){var b=this.getAttribute("sizes");this.Kc=b?lj(b):null}this.Kc&&T(this,"width",this.Kc.select(this.ownerDocument.defaultView));void 0===this.hc&&"responsive"===this.layout_&&(this.hc=(b=this.getAttribute("heights"))?lj(b,!0):null);this.hc&&(b=this.af())&&T(b,"paddingTop",this.hc.select(this.ownerDocument.defaultView))};b.prototype.changeSize=
function(a,b,c){var d=this.af();d&&(this.sizerElement=null,T(d,"paddingTop","0"),this.vc(function(){gb(d)}));void 0!==a&&T(this,"height",a,"px");void 0!==b&&T(this,"width",b,"px");c&&(null!=c.top&&T(this,"marginTop",c.top,"px"),null!=c.right&&T(this,"marginRight",c.right,"px"),null!=c.bottom&&T(this,"marginBottom",c.bottom,"px"),null!=c.left&&T(this,"marginLeft",c.left,"px"));this.Fg()&&this.nh()};b.prototype.connectedCallback=function(){if(!this.kc&&hb(this)&&(this.kc=!0,this.everAttached||(this.classList.add("i-amphtml-element"),
this.classList.add("i-amphtml-notbuilt"),this.classList.add("amp-notbuilt")),void 0===oj&&(oj="content"in self.document.createElement("template")),oj||void 0!==this.Db||(this.Db=!!rb(this,"template")),!this.Db)){if(!this.D){var a=this.ownerDocument.defaultView,b=ee(a).getAmpDoc(this);this.D=b;var c=this.tagName.toLowerCase();this.implementation_ instanceof bj&&!b.declaresExtension(c)&&ge(a).installExtensionForDoc(b,c)}this.w||(this.w=je(this.D));L(this.D.win,"layers")&&(this.gb||(this.gb=Ad(this.D,
"layers")),this.getLayers().add(this));this.getResources().add(this);if(this.everAttached){var h=this.reconstructWhenReparented();h&&this.Gf();this.isUpgraded()&&(h&&this.getResources().upgraded(this),this.cb())}else{this.everAttached=!0;try{var k;var l=this.getAttribute("i-amphtml-layout");if(l){var m=If(l);"responsive"!=m&&"intrinsic"!=m||!this.firstElementChild?"nodisplay"==m&&(Je(this,!1),this.style.display=""):this.sizerElement=this.querySelector("i-amphtml-sizer")||void 0;k=m}else{var n=this.getAttribute("layout"),
q=this.getAttribute("width"),t=this.getAttribute("height"),A=this.getAttribute("sizes"),u=this.getAttribute("heights"),z=n?If(n):null;D().assert(void 0!==z,"Unknown layout: %s",n);var B=q&&"auto"!=q?Kf(q):q;D().assert(void 0!==B,"Invalid width value: %s",q);var y=t&&"fluid"!=t?Kf(t):t;D().assert(void 0!==y,"Invalid height value: %s",t);var C,w,v,O;if(!(O=z&&"fixed"!=z&&"fixed-height"!=z||B&&y)){var U=this.tagName,U=U.toUpperCase();O=void 0===Gf[U]}if(O)C=B,w=y;else{var S=this.tagName.toUpperCase();
if(!Gf[S]){var H=this.ownerDocument,X=S.replace(/^AMP\-/,""),Ia=H.createElement(X);Ia.controls=!0;Ie(Ia,{position:"absolute",visibility:"hidden"});H.body.appendChild(Ia);Gf[S]={width:(Ia.offsetWidth||1)+"px",height:(Ia.offsetHeight||1)+"px"};H.body.removeChild(Ia)}var Ha=Gf[S];C=B||"fixed-height"==z?B:Ha.width;w=y||Ha.height}v=z?z:C||w?"fluid"==w?"fluid":!w||C&&"auto"!=C?w&&C&&(A||u)?"responsive":"fixed":"fixed-height":"container";"fixed"!=v&&"fixed-height"!=v&&"responsive"!=v&&"intrinsic"!=v||D().assert(w,
"Expected height to be available: %s",t);"fixed-height"==v&&D().assert(!C||"auto"==C,'Expected width to be either absent or equal "auto" for fixed-height layout: %s',q);"fixed"!=v&&"responsive"!=v&&"intrinsic"!=v||D().assert(C&&"auto"!=C,'Expected width to be available and not equal to "auto": %s',q);"responsive"==v||"intrinsic"==v?D().assert(Nf(C)==Nf(w),"Length units should be the same for width and height: %s, %s",q,t):D().assert(null===u,'Unexpected "heights" attribute for none-responsive layout');
this.classList.add("i-amphtml-layout-"+v);Jf(v)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==v)Je(this,!1),this.style.display="";else if("fixed"==v)Ie(this,{width:C,height:w});else if("fixed-height"==v)T(this,"height",w);else if("responsive"==v){var da=this.ownerDocument.createElement("i-amphtml-sizer");Ie(da,{paddingTop:Of(w)/Of(C)*100+"%"});this.insertBefore(da,this.firstChild);this.sizerElement=da}else if("intrinsic"==v){var ea=Cf(this)(Ef);ea.firstElementChild.setAttribute("src",
'data:image/svg+xml;charset=utf-8,<svg height="'+w+'" width="'+C+'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>');this.insertBefore(ea,this.firstChild);this.sizerElement=ea}else"fill"!=v&&"container"!=v&&("flex-item"==v?(C&&T(this,"width",C),w&&T(this,"height",w)):"fluid"==v&&(this.classList.add("i-amphtml-layout-awaiting-size"),C&&T(this,"width",C),T(this,"height",0)));k=v}this.layout_=k}catch(ka){cf(ka,this)}this.implementation_ instanceof bj||this.Sf();this.isUpgraded()||(this.classList.add("amp-unresolved"),
this.classList.add("i-amphtml-unresolved"),this.cb())}}};b.prototype.Fg=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")};b.prototype.nh=function(){this.classList.remove("i-amphtml-layout-awaiting-size")};b.prototype.attachedCallback=function(){this.connectedCallback()};b.prototype.Sf=function(){var b=this,c=this.implementation_;if(1==this.qb){this.qb=4;var g=a.Date.now(),h=c.upgradeCallback();h?"function"==typeof h.then?h.then(function(a){b.md(a||c,g)}).catch(function(a){b.qb=
3;ya(a)}):this.md(h,g):this.md(c,g)}};b.prototype.disconnectedCallback=function(){this.disconnect(!1)};b.prototype.detachedCallback=function(){this.disconnectedCallback()};b.prototype.disconnect=function(a){this.Db||!this.kc||!a&&hb(this)||(this.kc=!1,this.getResources().remove(this),L(this.D.win,"layers")&&this.getLayers().remove(this),this.implementation_.detachedCallback())};b.prototype.dispatchCustomEvent=function(a,b){b=b||{};var c=this.ownerDocument.createEvent("Event");c.data=b;c.initEvent(a,
!0,!0);this.dispatchEvent(c)};b.prototype.cb=function(){};b.prototype.prerenderAllowed=function(){return this.implementation_.prerenderAllowed()};b.prototype.createPlaceholder=function(){return this.implementation_.createPlaceholderCallback()};b.prototype.renderOutsideViewport=function(){return this.implementation_.renderOutsideViewport()};b.prototype.idleRenderOutsideViewport=function(){return this.implementation_.idleRenderOutsideViewport()};b.prototype.getLayoutBox=function(){return this.getResources().getResourceForElement(this).getLayoutBox()};
b.prototype.getPageLayoutBox=function(){return this.getResources().getResourceForElement(this).getPageLayoutBox()};b.prototype.getOwner=function(){return this.getResources().getResourceForElement(this).getOwner()};b.prototype.getIntersectionChangeEntry=function(){var a=this.implementation_.getIntersectionElementLayoutBox(),b=this.getResources().getResourceForElement(this).getOwner(),c=this.implementation_.getViewport().getRect(),h=b&&b.getLayoutBox(),k=lf(a,h,c)||V(0,0,0,0),b=k.width*k.height/(a.width*
a.height),l=c;c&&(k=nf(k,-c.left,-c.top),a=nf(a,-c.left,-c.top),l=nf(l,-c.left,-c.top));return{time:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()-Qg,rootBounds:l,boundingClientRect:a,intersectionRect:k,intersectionRatio:b}};b.prototype.getResourceId=function(){return this.getResources().getResourceForElement(this).getId()};b.prototype.Bg=function(){return this.getResources().getResourceForElement(this).getState()};b.prototype.isRelayoutNeeded=function(){return this.implementation_.isRelayoutNeeded()};
b.prototype.getImpl=function(){var a=this;return this.whenBuilt().then(function(){return a.implementation_})};b.prototype.getLayout=function(){return this.layout_};b.prototype.layoutCallback=function(){var a=this;this.isBuilt();this.cb();var b=0==this.ha;this.R.reset("unload");b&&this.R.signal("load-start");this.wf&&this.$e().startLayout();var c=Za(function(){return a.implementation_.layoutCallback()});this.preconnect(!0);this.classList.add("i-amphtml-layout");return c.then(function(){b&&a.R.signal("load-end");
a.readyState="complete";a.ha++;a.toggleLoading(!1,{cleanup:!0});a.Id||(a.implementation_.firstLayoutCompleted(),a.Id=!0,a.dispatchCustomEvent("amp:load:end"))},function(c){b&&a.R.rejectSignal("load-end",c);a.ha++;a.toggleLoading(!1,{cleanup:!0});throw c;})};b.prototype.isInViewport=function(){return this.eb};b.prototype.viewportCallback=function(a){var b=this;a!=this.eb&&this.ownerDocument&&this.ownerDocument.defaultView&&(this.eb=a,0==this.ha&&(a?Q(this.ownerDocument.defaultView).delay(function(){b.eb&&
b.ownerDocument&&b.ownerDocument.defaultView&&b.toggleLoading(!0)},100):this.toggleLoading(!1)),this.isBuilt()&&this.Tf(a))};b.prototype.Tf=function(a){this.implementation_.inViewport_=a;this.implementation_.viewportCallback(a);a&&this.wf&&this.$e().enterViewport()};b.prototype.isPaused=function(){return this.Nb};b.prototype.pauseCallback=function(){this.Nb||(this.Nb=!0,this.viewportCallback(!1),this.isBuilt()&&this.implementation_.pauseCallback())};b.prototype.resumeCallback=function(){this.Nb&&
(this.Nb=!1,this.isBuilt()&&this.implementation_.resumeCallback())};b.prototype.unlayoutCallback=function(){if(!this.isBuilt())return!1;this.R.signal("unload");var a=this.implementation_.unlayoutCallback();a&&this.Gf();return a};b.prototype.Gf=function(){this.ha=0;this.Id=!1;this.R.reset("render-start");this.R.reset("load-start");this.R.reset("load-end");this.R.reset("ini-load")};b.prototype.unlayoutOnPause=function(){return this.implementation_.unlayoutOnPause()};b.prototype.reconstructWhenReparented=
function(){return this.implementation_.reconstructWhenReparented()};b.prototype.collapse=function(){this.implementation_.collapse()};b.prototype.collapsedCallback=function(a){this.implementation_.collapsedCallback(a)};b.prototype.expand=function(){this.implementation_.expand()};b.prototype.expandedCallback=function(a){this.implementation_.expandedCallback(a)};b.prototype.mutatedAttributesCallback=function(a){this.implementation_.mutatedAttributesCallback(a)};b.prototype.enqueAction=function(a){this.isBuilt()?
this.We(a,!1):(void 0===this.Ja&&(this.Ja=[]),this.Ja.push(a))};b.prototype.tg=function(){var a=this;if(this.Ja){var b=this.Ja;this.Ja=null;b.forEach(function(b){a.We(b,!0)})}};b.prototype.We=function(a,b){try{this.implementation_.executeAction(a,b)}catch(g){ya("Action execution failed:",g,a.node.tagName,a.method)}};b.prototype.Ag=function(){var a=this.getAttribute("data-block-on-consent");return null===a?null:""==a||"default"==a?this.implementation_.getConsentPolicy():a};b.prototype.getRealChildNodes=
function(){return wb(this,function(a){return!rj(a)})};b.prototype.getRealChildren=function(){return ub(this,function(a){return!rj(a)})};b.prototype.getPlaceholder=function(){return vb(this,function(a){return a.hasAttribute("placeholder")&&!("placeholder"in a)})};b.prototype.togglePlaceholder=function(a){if(a){var b=this.getPlaceholder();b&&b.classList.remove("amp-hidden")}else for(var c=Ab(this,"> [placeholder]"),b=0;b<c.length;b++)"placeholder"in c[b]||c[b].classList.add("amp-hidden")};b.prototype.getFallback=
function(){return zb(this,"> [fallback]")};b.prototype.toggleFallback=function(a){var b=this.Bg();if(!a||0!=b&&1!=b&&2!=b)if(this.classList.toggle("amp-notsupported",a),1==a){var c=this.getFallback();c&&this.getResources().scheduleLayout(this,c)}};b.prototype.renderStarted=function(){this.R.signal("render-start");this.togglePlaceholder(!1);this.toggleLoading(!1)};b.prototype.mc=function(){if(this.Hg())return!1;void 0===this.Sd&&(this.Sd=this.hasAttribute("noloading"));var a;(a=this.Sd)||(a=this.tagName.toUpperCase(),
a=!("AMP-AD"==a||"AMP-EMBED"==a||Hf[a]));return a||100>this.layoutWidth_||0<this.ha||rj(this)||!Jf(this.layout_)?!1:!0};b.prototype.Hg=function(){return this.D&&this.D.win!=this.ownerDocument.defaultView||"inabox"==x().runtime};b.prototype.zf=function(){if(this.mc()&&!this.Oa){var a=this.ownerDocument,b=Cf(a)(nj),c=this.elementName(),a=kj[c.toUpperCase()]?Cf(a)(jj):Cf(a)(ij);b.appendChild(a);this.appendChild(b);this.Oa=b;this.Td=a}};b.prototype.toggleLoading=function(a,b){var c=this,d=b&&b.cleanup,
e=b&&b.force;if(!a||this.implementation_.isLoadingReused()||!(0<this.ha||this.R.get("render-start")))if((this.Ud=a)||this.Oa)!a||e||this.mc()?this.vc(function(){var a=c.Ud;!a||e||c.mc()||(a=!1);a&&c.zf();if(c.Oa&&(c.Oa.classList.toggle("amp-hidden",!a),c.Td.classList.toggle("amp-active",a),!a&&d&&!c.implementation_.isLoadingReused())){var b=c.Oa;c.Oa=null;c.Td=null;c.vc(function(){gb(b)})}}):this.Ud=!1};b.prototype.$e=function(){this.Qd||(this.Qd=new dj(this.ownerDocument.defaultView,this.getLayoutPriority()));
return this.Qd};b.prototype.getOverflowElement=function(){void 0===this.ia&&(this.ia=zb(this,"> [overflow]"))&&(this.ia.hasAttribute("tabindex")||this.ia.setAttribute("tabindex","0"),this.ia.hasAttribute("role")||this.ia.setAttribute("role","button"));return this.ia};b.prototype.overflowCallback=function(a,b,c){var d=this;this.getOverflowElement();this.ia?(this.ia.classList.toggle("amp-visible",a),this.ia.onclick=a?function(){var a=d.getResources();a.changeSize(d,b,c);a.mutateElement(d,function(){d.overflowCallback(!1,
b,c)})}:null):a&&this.warnOnMissingOverflow&&D().warn("CustomElement","Cannot resize element and overflow is not available",this)};b.prototype.vc=function(a){this.w?this.getResources().mutateElement(this,a):a()};a.BaseCustomElementClass=b;return a.BaseCustomElementClass}function rj(a){var b="string"==typeof a?a:a.tagName;return b&&cb(b.toLowerCase(),"i-")||a.tagName&&(a.hasAttribute("placeholder")||a.hasAttribute("fallback")||a.hasAttribute("overflow"))?!0:!1};function sj(a){a.ampExtendedElements||(a.ampExtendedElements={});return a.ampExtendedElements}function tj(a,b,c){var d=sj(a);if(!d[b])uj(a,b,c);else if(d[b]!=c){D().assert(d[b]==bj,"%s is already registered. The script tag for %s is likely included twice in the page.",b,b);d[b]=c;for(var e=0;e<aj.length;e++){var g=aj[e],h=g.element;if(h.tagName.toLowerCase()==b&&h.ownerDocument.defaultView==a){try{h.upgrade(c)}catch(k){cf(k,h)}aj.splice(e--,1)}}}}
function vj(a){ce(a.getHeadNode()).forEach(function(b){a.declareExtension(b);wj(a.win,b)})}function wj(a,b){sj(a)[b]||uj(a,b,bj)}function uj(a,b,c){sj(a)[b]=c;var d=pj(a,b),e="customElements"in a;e?a.customElements.define(b,d):a.document.registerElement(b,{prototype:d.prototype})};var xj={PRERENDER:"prerender",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"};function yj(a){this.win=a;a=ee(a);this.bg=a.isSingleDoc()?a.getAmpDoc():null}f=yj.prototype;f.yg=function(a,b){var c=this,d=arguments;return Xh(this.win,this.bg,a,b).then(function(a){if(a)return a;Sh(b.body)&&(b.body=b.body.getFormData());return c.win.fetch.apply(null,d)})};
function zj(a,b,c){c=void 0===c?{}:c;b=Yh(a.win,b,c);c=$h(a.win,b,c);return a.yg(b,c).then(function(b){var d=a.win,g=c,h=b.headers.get("AMP-Access-Control-Allow-Source-Origin");h?(d=cd(d.location.href),D().assert(h==d,"Returned AMP-Access-Control-Allow-Source-Origin is not equal to the current: "+h+(" vs "+d))):g.requireAmpResponseSourceOrigin&&D().assert(!1,"Response must contain the AMP-Access-Control-Allow-Source-Origin header");return b},function(a){var c=K(b).origin;throw D().createExpectedError("XHR",
"Failed fetching"+(" ("+c+"/...):"),a&&a.message);})}f.fetchJson=function(a,b){return this.fetch(a,ai(b))};f.fetchText=function(a,b){return this.fetch(a,Zh(b,"text/plain"))};f.fetch=function(a,b){b=Zh(b);return zj(this,a,b).then(function(a){return bi(a)})};f.sendSignal=function(a,b){return zj(this,a,b).then(function(a){return bi(a)})};f.getCorsUrl=function(a,b){return dd(a,b)};function Aj(a){yj.call(this,a);this.xb=F()}p(Aj,yj);Aj.prototype.fetch=function(a,b){var c=this,d=b&&b.headers&&b.headers.Accept||"",e=!b||!b.method||"GET"===b.method,g=Xc(a)+d,h=!!this.xb[g];if(e&&h)return this.xb[g].then(function(a){return a.clone()});var k=yj.prototype.fetch.call(this,a,b);e&&(this.xb[g]=k.then(function(a){delete c.xb[g];return a.clone()},function(a){delete c.xb[g];throw a;}));return k};function Bj(a){this.o=a;var b=null,c=!1;a.crypto&&(a.crypto.subtle?b=a.crypto.subtle:a.crypto.webkitSubtle&&(b=a.crypto.webkitSubtle,c=!0));this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};this.subtle=b;this.Kg=c;this.Pb=null}f=Bj.prototype;
f.sha384=function(a){var b=this;"string"===typeof a&&(a=Ib(a));if(!this.subtle||this.Pb)return(this.Pb||Cj(this)).then(function(b){return b.sha384(a)});try{return this.subtle.digest({name:"SHA-384"},a).then(function(a){return new Uint8Array(a)},function(c){c.message&&0>c.message.indexOf("secure origin")&&E().error("Crypto","SubtleCrypto failed, fallback to closure lib.",c);return Cj(b).then(function(){return b.sha384(a)})})}catch(c){return E().error("Crypto","SubtleCrypto failed, fallback to closure lib.",
c),Cj(this).then(function(){return b.sha384(a)})}};f.sha384Base64=function(a){return this.sha384(a).then(function(a){return Qf(a)})};f.uniform=function(a){return this.sha384(a).then(function(a){for(var b=0,d=2;0<=d;d--)b=(b+a[d])/256;return b})};function Cj(a){return a.Pb?a.Pb:a.Pb=ge(a.o).preloadExtension("amp-crypto-polyfill").then(function(){return P(a.o,"crypto-polyfill")})}f.isPkcsAvailable=function(){return!!this.subtle&&!1!==this.o.isSecureContext};
f.importPkcsKey=function(a){this.isPkcsAvailable();var b=this.Kg?Hb(JSON.stringify(a)):a;return this.subtle.importKey("jwk",b,this.pkcsAlgo,!0,["verify"])};f.verifyPkcs=function(a,b,c){this.isPkcsAvailable();return this.subtle.verify(this.pkcsAlgo,a,b,c)};var Dj=["prefetch","preload","preconnect","dns-prefetch"];function Ej(a){this.D=a;this.Bd=null}
Ej.prototype.get=function(){if(this.Bd)return this.Bd;var a=this.D,b=a.getUrl(),c=bd(b),d=a.getRootNode(),b=d&&d.AMP&&d.AMP.canonicalUrl;if(!b)var e=d.querySelector("link[rel=canonical]"),b=e?K(e.href).href:c;var g=String(Math.floor(1E4*a.win.Math.random())),h=Fj(a.win.document),k=Gj(a.win.document),d=Hj(a);return this.Bd={get sourceUrl(){return bd(a.getUrl())},canonicalUrl:b,pageViewId:g,linkRels:h,metaTags:k,replaceParams:d}};
function Fj(a){var b=F();if(a.head){var c=a.head.querySelectorAll("link[rel]");a={};for(var d=0;d<c.length;a={href:a.href},d++){var e=c[d];a.href=e.href;var g=e.getAttribute("rel");g&&a.href&&g.split(/\s+/).forEach(function(a){return function(c){if(-1==Dj.indexOf(c)){var d=b[c];d?(ia(d)||(d=b[c]=[d]),d.push(a.href)):b[c]=a.href}}}(a))}}return b}
function Gj(a){var b=F();if(a.head){var c=a.head.querySelectorAll("meta[name]");for(a=0;a<c.length;a++){var d=c[a],e=d.getAttribute("content");if((d=d.getAttribute("name"))&&e){var g=b[d];g?(ia(g)||(g=b[d]=[g]),g.push(e)):b[d]=e}}}return b}function Hj(a){var b;(b=!a.isSingleDoc())||(b=a.win.location.href,"string"==typeof b&&(b=K(b)),b="a"!=(Yc(b)?b.pathname.split("/",2)[1]:null));if(b)return null;a=K(a.win.location.href);var c=r(a.search).amp_r;return void 0===c?null:r(c)};function Ij(a){this.win=a;this.aa=a.document;this.Na=Fe(this.aa,"hidden",!0);void 0===this.aa[this.Na]&&(this.Na=null);this.Tc=Fe(this.aa,"visibilityState",!0);void 0===this.aa[this.Tc]&&(this.Tc=null);this.Yb=new W;this.Sc=null;if(this.Na){this.Sc="visibilitychange";var b=this.Na.indexOf("Hidden");-1!=b&&(this.Sc=this.Na.substring(0,b)+"Visibilitychange")}this.ig=this.be.bind(this);this.Sc&&this.aa.addEventListener(this.Sc,this.ig);this.Za=null}f=Ij.prototype;
f.isHidden=function(){return this.Na?this.aa[this.Na]:!1};f.getVisibilityState=function(){return this.Tc?this.aa[this.Tc]:this.isHidden()?"hidden":"visible"};f.onVisibilityChanged=function(a){return this.Yb.add(a)};f.be=function(){this.Yb.fire()};f.onBodyAvailable=function(a){var b=this.aa;if(b.body)return a(),null;this.Za||(this.Za=new W,db(b.documentElement,function(){return!!b.body},this.Vg.bind(this)));return this.Za.add(a)};f.Vg=function(){this.Za.fire();this.Za.removeAll();this.Za=null};function Jj(a){de(a).then(function(b){b&&a.getRootNode().addEventListener("submit",Kj,!0)})}
function Kj(a){if(!a.defaultPrevented){var b=a.target;if(b&&"FORM"==b.tagName){var c=b.classList.contains("i-amphtml-form"),d;(d=c?!b.hasAttribute("amp-novalidate"):!b.hasAttribute("novalidate"))&&b.checkValidity&&!b.checkValidity()&&a.preventDefault();for(var e=b.elements,g=0;g<e.length;g++)D().assert(!e[g].name||"__amp_source_origin"!=e[g].name,"Illegal input name, %s found: %s","__amp_source_origin",e[g]);var e=b.getAttribute("action"),h=b.getAttribute("action-xhr"),g=(b.getAttribute("method")||
"GET").toUpperCase();h&&(Wc(h,b,"action-xhr"),D().assert(!Yc(h),"form action-xhr should not be on AMP CDN: %s",b),ed(h));e&&(Wc(e,b,"action"),D().assert(!Yc(e),"form action should not be on AMP CDN: %s",b),ed(e));"GET"==g?D().assert(h||e,"form action-xhr or action attribute is required for method=GET: %s",b):"POST"==g&&(e&&D().error("form","action attribute is invalid for method=POST: %s",b),h||(a.preventDefault(),D().assert(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",
b)));(e=b.getAttribute("target"))?D().assert("_blank"==e||"_top"==e,"form target=%s is invalid can only be _blank or _top: %s",e,b):b.setAttribute("target","_top");h&&(a.preventDefault(),a.stopImmediatePropagation(),pd(b,"action",!0).execute(b,"submit",null,b,b,a,100))}}};function Lj(a,b){this.D=a;this.S=Q(a.win);this.j=b;this.B=0;this.Ua=[];this.C=[];this.j.setOnStateUpdated(this.da.bind(this))}f=Lj.prototype;f.cleanup=function(){this.j.cleanup()};f.push=function(a,b){var c=this;return Mj(this,function(){return c.j.push(b).then(function(b){c.da(b);a&&(c.Ua[b.stackIndex]=a);return b.stackIndex})},"push")};f.pop=function(a){var b=this;return Mj(this,function(){return b.j.pop(a).then(function(a){b.da(a)})},"pop")};
f.replace=function(a){var b=this;return Mj(this,function(){return b.j.replace(a)},"replace")};f.get=function(){var a=this;return Mj(this,function(){return a.j.get()},"get")};f.goBack=function(){var a=this;return Mj(this,function(){return 0>=a.B?Promise.resolve():a.j.pop(a.B).then(function(b){a.da(b)})},"goBack")};f.replaceStateForTarget=function(a){var b=this,c=this.D.win.location.hash;return this.push(function(){b.D.win.location.replace(c||"#")}).then(function(){b.j.replaceStateForTarget(a)})};
f.getFragment=function(){return this.j.getFragment()};f.updateFragment=function(a){"#"==a[0]&&(a=a.substr(1));return this.j.updateFragment(a)};f.da=function(a){this.B=a.stackIndex;Nj(this,a)};function Nj(a,b){if(!(a.B>=a.Ua.length-1)){for(var c=[],d=a.Ua.length-1;d>a.B;d--)a.Ua[d]&&(c.push(a.Ua[d]),a.Ua[d]=void 0);a.Ua.splice(a.B+1);if(0<c.length)for(d={zb:0};d.zb<c.length;d={zb:d.zb},d.zb++)a.S.delay(function(a){return function(){return c[a.zb](b)}}(d),1)}}
function Mj(a,b,c){var d=new I,e=d.promise,g=Error("history trace for "+c+": ");a.C.push({callback:b,resolve:d.resolve,reject:d.reject,trace:g});1==a.C.length&&Oj(a);return e}function Oj(a){if(0!=a.C.length){var b=a.C[0],c;try{c=b.callback()}catch(d){c=Promise.reject(d)}c.then(function(a){b.resolve(a)},function(a){E().error("History","failed to execute a task:",a);b.trace&&(b.trace.message+=a,E().error("History",b.trace));b.reject(a)}).then(function(){a.C.splice(0,1);Oj(a)})}}
function Pj(a){var b=this;this.win=a;this.S=Q(a);a=this.win.history;this.Va=a.length-1;var c=gi(a);c&&void 0!==c["AMP.History"]&&(this.Va=Math.min(c["AMP.History"],this.Va));this.B=this.Va;this.da=null;this.qh="state"in a;this.pb=Qj(this,this.B);var d,e;a.pushState&&a.replaceState?(this.Ac=a.originalPushState||a.pushState.bind(a),this.Kb=a.originalReplaceState||a.replaceState.bind(a),d=function(a,c,d){b.pb=a;b.Ac(a,c,d||null)},e=function(a,c,d){b.pb=a;void 0!==d?b.Kb(a,c,d):b.Kb(a,c)},a.originalPushState||
(a.originalPushState=this.Ac),a.originalReplaceState||(a.originalReplaceState=this.Kb)):(d=function(a){b.pb=a},e=function(a){b.pb=a});this.ah=d;this.Hc=e;try{this.Hc(Qj(this,this.B,!0))}catch(g){E().error("History","Initial replaceState failed: "+g.message)}a.pushState=this.df.bind(this);a.replaceState=this.xd.bind(this);this.Ec=function(){var a=Rj(b),c=a?a["AMP.History"]:void 0,d=b.B,e=b.Vc;b.Vc=void 0;d>b.win.history.length-2&&(d=b.win.history.length-2,b.ya(Sj(a,{stackIndex:d})));d=void 0==c?d+
1:c<b.win.history.length?c:b.win.history.length-1;a||(a={});a["AMP.History"]=d;b.Hc(a,void 0,void 0);d!=b.B&&b.ya(Sj(a,{stackIndex:d}));d<b.Va&&(b.Va=d);e&&e.resolve()};this.win.addEventListener("popstate",this.Ec)}f=Pj.prototype;f.cleanup=function(){this.Ac&&(this.win.history.pushState=this.Ac);this.Kb&&(this.win.history.replaceState=this.Kb);this.win.removeEventListener("popstate",this.Ec)};function Qj(a,b,c){a=F(c?Rj(a):void 0);a["AMP.History"]=b;return a}
f.setOnStateUpdated=function(a){this.da=a};f.push=function(a){var b=this;return Tj(this,function(){var c=Sj(Rj(b),a||{});b.df(c,void 0,c.fragment?"#"+c.fragment:void 0);return Za(function(){return Sj(c,{stackIndex:b.B})})})};f.pop=function(a){var b=this;a=Math.max(a,this.Va);return Tj(this,function(){return Uj(b,b.B-a+1)}).then(function(a){return Sj(Rj(b),{stackIndex:a})})};
f.replace=function(a){a=void 0===a?{}:a;var b=this;return Tj(this,function(){var c=Sj(Rj(b),a||{});b.xd(c,void 0,c.fragment?"#"+c.fragment:void 0);return Za(function(){return Sj(c,{stackIndex:b.B})})})};f.get=function(){var a=this;return Za(function(){return Sj(Rj(a),{stackIndex:a.B})})};f.backTo=function(a){var b=this;a=Math.max(a,this.Va);return Tj(this,function(){return Uj(b,b.B-a)})};function Rj(a){return a.qh?gi(a.win.history):a.pb}function Tj(a,b){return a.Vc?a.Vc.promise.then(b,b):b()}
function Vj(a){var b=new I,c=b.resolve,d=b.reject,b=a.S.timeoutPromise(500,b.promise);a.Vc={promise:b,resolve:c,reject:d};return b}function Uj(a,b){if(0>=b)return Promise.resolve(a.B);a.pb=Qj(a,a.B-b);var c=Vj(a);a.win.history.go(-b);return c.then(function(){return Promise.resolve(a.B)})}f.df=function(a,b,c){a||(a={});var d=this.B+1;a["AMP.History"]=d;this.ah(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.Hc(a));a=Sj(a,{stackIndex:d});this.ya(a)};
f.replaceStateForTarget=function(a){var b=this;Tj(this,function(){b.win.removeEventListener("popstate",b.Ec);try{b.win.location.replace(a)}finally{b.win.addEventListener("popstate",b.Ec)}b.xd();return Promise.resolve()})};f.xd=function(a,b,c){a||(a={});var d=Math.min(this.B,this.win.history.length-1);a["AMP.History"]=d;this.Hc(a,b,c);a=Sj(a,{stackIndex:d});this.ya(a)};
f.ya=function(a){a.stackIndex=Math.min(a.stackIndex,this.win.history.length-1);this.B!=a.stackIndex&&(this.B=a.stackIndex,this.da&&this.da(a))};f.getFragment=function(){var a=this.win.location.hash,a=a.substr(1);return Promise.resolve(a)};f.updateFragment=function(a){return this.replace({fragment:a})};function Sj(a,b){var c=Object.assign({},a&&a.data||{},b.data||{});return Object.assign({},a||{},b,{data:c})}
function Wj(a,b){var c=this;this.win=a;this.h=b;this.B=0;this.da=null;this.vh=this.h.onMessage("historyPopped",function(a){void 0!==a.newStackIndex&&(a.stackIndex=a.newStackIndex);c.ya(a)})}f=Wj.prototype;f.replaceStateForTarget=function(a){this.win.location.replace(a)};f.cleanup=function(){this.vh()};f.setOnStateUpdated=function(a){this.da=a};
f.push=function(a){var b=this,c=Object.assign({stackIndex:this.B+1},a||{});return this.h.sendMessageAwaitResponse("pushHistory",c).then(function(a){a=a||c;b.ya(a);return a})};f.pop=function(a){var b=this;if(a>this.B)return this.get();a=G({stackIndex:this.B});return this.h.sendMessageAwaitResponse("popHistory",a).then(function(a){a=a||G({stackIndex:b.B-1});b.ya(a);return a})};
f.replace=function(a){var b=this,c=Object.assign({stackIndex:this.B},a||{});return this.h.sendMessageAwaitResponse("replaceHistory",c,!0).then(function(a){a=a||c;b.ya(a);return a})};f.get=function(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.B,title:""})};f.ya=function(a){var b=a.stackIndex;this.B!=b&&(this.B=b,this.da&&this.da(a))};
f.getFragment=function(){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("getFragment",void 0,!0).then(function(a){if(!a)return"";"#"==a[0]&&(a=a.substr(1));return a}):Promise.resolve("")};f.updateFragment=function(a){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("replaceHistory",G({fragment:a}),!0):Promise.resolve()};
function Xj(a){var b=R(a);b.isOvertakeHistory()||a.win.AMP_TEST_IFRAME?b=new Wj(a.win,b):(M(a.win,"global-history-binding",Pj),b=P(a.win,"global-history-binding"));return new Lj(a,b)};function Yj(a){this.win=a;this.gg=this.Wg.bind(this);this.hg=this.Xg.bind(this);this.ed=this.Je=this.fd=null;this.vd="ontouchstart"in a||void 0!==a.navigator.maxTouchPoints&&0<a.navigator.maxTouchPoints||void 0!==a.DocumentTouch;this.Fb=!1;this.win.document.addEventListener("keydown",this.gg);this.win.document.addEventListener("mousedown",this.hg);this.ud=!0;this.rf=0;this.sh=new W;this.sf=new W;this.Nd=new W;this.vd&&(this.ud=!this.vd,this.fd=this.Yg.bind(this),se(a.document,"mousemove",this.fd))}
f=Yj.prototype;f.isTouchDetected=function(){return this.vd};f.onTouchDetected=function(a,b){b&&a(this.isTouchDetected());return this.sh.add(a)};f.isMouseDetected=function(){return this.ud};f.onMouseDetected=function(a,b){b&&a(this.isMouseDetected());return this.sf.add(a)};f.isKeyboardActive=function(){return this.Fb};f.onKeyboardStateChanged=function(a,b){b&&a(this.isKeyboardActive());return this.Nd.add(a)};
f.Wg=function(a){this.Fb||a.defaultPrevented||(a=a.target,a&&("INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"OPTION"==a.tagName||a.hasAttribute("contenteditable")))||(this.Fb=!0,this.Nd.fire(!0))};f.Xg=function(){this.Fb&&(this.Fb=!1,this.Nd.fire(!1))};
f.Yg=function(a){var b=this;if(a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents)this.qf();else{this.ed||(this.ed=this.Tg.bind(this),this.Je=this.qf.bind(this));var c,d=te(this.win.document,function(a){c=a});return Q(this.win).timeoutPromise(300,d).then(this.Je,function(){c&&c();b.ed()})}};f.Tg=function(){this.ud=!0;this.sf.fire(!0)};f.qf=function(){this.rf++;3>=this.rf&&se(this.win.document,"mousemove",this.fd)};function Zj(a){this.V=a.navigator}f=Zj.prototype;f.isAndroid=function(){return/Android/i.test(this.V.userAgent)};f.isIos=function(){return/iPhone|iPad|iPod/i.test(this.V.userAgent)};f.isSafari=function(){return/Safari/i.test(this.V.userAgent)&&!this.isChrome()&&!this.isIe()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()};f.isChrome=function(){return/Chrome|CriOS/i.test(this.V.userAgent)&&!this.isEdge()&&!this.isOpera()};f.isFirefox=function(){return/Firefox|FxiOS/i.test(this.V.userAgent)&&!this.isEdge()};
f.isOpera=function(){return/OPR\/|Opera|OPiOS/i.test(this.V.userAgent)};f.isIe=function(){return/Trident|MSIE|IEMobile/i.test(this.V.userAgent)};f.isEdge=function(){return/Edge/i.test(this.V.userAgent)};f.isWebKit=function(){return/WebKit/i.test(this.V.userAgent)&&!this.isEdge()};f.isStandalone=function(){return this.isIos()&&this.V.standalone};f.isBot=function(){return/bot/i.test(this.V.userAgent)};
f.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:ak(this,/\sVersion\/(\d+)/,1):this.isChrome()?ak(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?ak(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?ak(this,/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isIe()?ak(this,/MSIE\s(\d+)/,1):this.isEdge()?ak(this,/Edge\/(\d+)/,1):0};function ak(a,b,c){if(!a.V.userAgent)return 0;a=a.V.userAgent.match(b);return!a||c>=a.length?0:parseInt(a[c],10)}
f.getIosVersionString=function(){if(!this.V.userAgent||!this.isIos())return"";var a=this.V.userAgent.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/);return a?a=a[1].replace(/_/g,"."):""};f.getIosMajorVersion=function(){var a=this.getIosVersionString();return""==a?null:Number(a.split(".")[0])};function bk(a){this.G=a;this.Rf=Object.create(null)}bk.prototype.addTransition=function(a,b,c){var d=a+"|"+b;this.Rf[d]=c};bk.prototype.setState=function(a){var b=this.G;this.G=a;(a=this.Rf[b+"|"+a])&&a()};function ck(a,b){var c=this;this.win=a;this.$g=b;this.N=[];this.tf=new W;this.Pe=function(a){a.target&&1==a.target.nodeType&&dk(c,a.target)};this.Oe=function(){Q(a).delay(function(){dk(c,c.win.document.activeElement)},500)};this.win.document.addEventListener("focus",this.Pe,!0);this.win.addEventListener("blur",this.Oe)}f=ck.prototype;f.Ch=function(){this.win.document.removeEventListener("focus",this.Pe,!0);this.win.removeEventListener("blur",this.Oe)};f.onFocus=function(a){return this.tf.add(a)};
function dk(a,b){var c=Date.now();0==a.N.length||a.N[a.N.length-1].el!=b?a.N.push({el:b,time:c}):a.N[a.N.length-1].time=c;a.purgeBefore(c-a.$g);a.tf.fire(b)}f.getLast=function(){return 0==this.N.length?null:this.N[this.N.length-1].el};f.purgeBefore=function(a){for(var b=this.N.length-1,c=0;c<this.N.length;c++)if(this.N[c].time>=a){b=c-1;break}-1!=b&&this.N.splice(0,b+1)};
f.hasDescendantsOf=function(a){this.win.document.activeElement&&dk(this,this.win.document.activeElement);for(var b=0;b<this.N.length;b++)if(a.contains(this.N[b].el))return!0;return!1};function ek(){this.I=[];this.Vb={};this.hf=this.jf=0}f=ek.prototype;f.getSize=function(){return this.I.length};f.getLastEnqueueTime=function(){return this.jf};f.getLastDequeueTime=function(){return this.hf};f.getTaskById=function(a){return this.Vb[a]||null};f.enqueue=function(a){this.I.push(a);this.Vb[a.id]=a;this.jf=Date.now()};f.dequeue=function(a){var b=this.removeAtIndex(a,this.I.indexOf(this.Vb[a.id]));if(!b)return!1;this.hf=Date.now();return!0};
f.peek=function(a,b){for(var c=1E6,d=null,e=0;e<this.I.length;e++){var g=this.I[e],h=a(g,b);h<c&&(c=h,d=g)}return d};f.forEach=function(a){this.I.forEach(a)};f.removeAtIndex=function(a,b){var c=this.Vb[a.id];if(!c||this.I[b]!=c)return!1;this.I.splice(b,1);delete this.Vb[a.id];return!0};f.purge=function(a){for(var b=this.I.length;b--;)a(this.I[b])&&this.removeAtIndex(this.I[b],b)};function fk(a){var b;return!(b||ie(a)).isIe()||gk(a)?null:new Promise(function(b){var c=Date.now()+2E3,e=a.setInterval(function(){var d=Date.now(),h=gk(a);if(h||d>c)a.clearInterval(e),b(),h||E().error("ie-media-bug","IE media never resolved")},10)})}function gk(a){var b="(min-width: "+(a.innerWidth-1)+"px)"+(" AND (max-width: "+(a.innerWidth+1)+"px)");try{return a.matchMedia(b).matches}catch(c){return E().error("ie-media-bug","IE matchMedia failed: ",c),!0}};function wk(a){var b=this;this.ampdoc=a;this.win=a.win;this.h=R(a);this.ma=this.h.isRuntimeOn();this.Gg=!1;this.pf=this.win.devicePixelRatio||1;this.ih=0;this.w=[];this.lg=this.ye=0;this.ka=this.h.isVisible();this.Ga=this.h.getPrerenderSize();this.ub=!1;this.Ye=!0;this.Ae=!1;this.Ea=-1;this.mb=!0;this.Rb=-1;this.Pd=this.oc=0;this.Cc=new Gh(this.win,function(){return b.doPass()});this.Ff=new Gh(this.win,function(){b.mb=!0;b.schedulePass()});this.sa=new ek;this.C=new ek;this.F=L(this.win,"layers");
var c;this.Ke=c=this.F?this.ng.bind(this):this.og.bind(this);this.ja=[];this.ua=[];this.Gd=!1;this.H=me(this.ampdoc);this.A=le(this.win);this.we=new ck(this.win,6E4);this.ve=!1;this.cc=0;this.ib=!1;this.$f=new bk(this.h.getVisibilityState());xk(this,this.$f);this.H.onChanged(function(a){b.oc=Date.now();b.Pd=a.velocity;a.relayoutAll&&(b.mb=!0,b.ib=!0);b.schedulePass()});this.H.onScroll(function(){b.oc=Date.now()});this.F&&(this.gb=a=Ad(this.ampdoc,"layers"),a.onScroll(function(){b.schedulePass()}),
this.fg=this.mg.bind(this));this.h.onVisibilityChanged(function(){-1==b.Ea&&b.h.isVisible()&&(b.Ea=Date.now());b.schedulePass()});this.h.onRuntimeState(function(a){b.ma=a;b.schedulePass(1)});this.we.onFocus(function(a){yk(b,a)});this.schedulePass();this.rebuildDomWhenReady()}f=wk.prototype;
f.rebuildDomWhenReady=function(){var a=this;this.ampdoc.whenReady().then(function(){function b(){return a.Ff.schedule()}a.ub=!0;zk(a);a.ua=null;var c=fk(a.win);c?c.then(b):b();Ak(a);Promise.race([ue(a.win),Q(a.win).promise(3100)]).then(b);a.win.document.fonts&&"loaded"!=a.win.document.fonts.status&&a.win.document.fonts.ready.then(b)})};f.get=function(){return this.w.slice(0)};f.isRuntimeOn=function(){return this.ma};f.renderStarted=function(){this.ampdoc.signals().signal("render-start")};
f.getMeasuredResources=function(a,b){var c=this;return this.ampdoc.signals().whenSignal("ready-scan").then(function(){var b=[];c.w.forEach(function(d){d.hasBeenMeasured()||d.hostWin!=a||d.hasOwner()||b.push(Bk(c,d))});return Promise.all(b)}).then(function(){return c.w.filter(function(c){return c.hostWin==a&&!c.hasOwner()&&c.hasBeenMeasured()&&b(c)})})};
f.getResourcesInRect=function(a,b,c){return this.getMeasuredResources(a,function(a){return!a.isDisplayed()||!a.overlaps(b)&&!a.isFixed()||c&&!a.prerenderAllowed()?!1:!0})};function Ak(a){var b=P(a.win,"input");b.onTouchDetected(function(b){Ck(a,"amp-mode-touch",b)},!0);b.onMouseDetected(function(b){Ck(a,"amp-mode-mouse",b)},!0);b.onKeyboardStateChanged(function(b){Ck(a,"amp-mode-keyboard-active",b)},!0)}
function Ck(a,b,c){a.ampdoc.whenBodyAvailable().then(function(d){a.A.mutate(function(){d.classList.toggle(b,c)})})}f.getMaxDpr=function(){return this.pf};f.getDpr=function(){return this.pf};f.getResourceForElement=function(a){return Z(a)};f.getResourceForElementOptional=function(a){return Z(a)};f.getElementLayoutBox=function(a){var b=this,c=this.getResourceForElementOptional(a);return c?Bk(this,c):this.A.measurePromise(function(){return b.getViewport().getLayoutRect(a)})};
function Bk(a,b){return b.hasBeenMeasured()?Za(function(){return b.getPageLayoutBox()}):a.A.measurePromise(function(){b.measure();return b.getPageLayoutBox()})}f.getViewport=function(){return this.H};f.getScrollDirection=function(){return Math.sign(this.Pd)||1};f.add=function(a){this.ye++;1==this.ye&&this.H.ensureReadyForElements();var b=Z(a);b&&0!=b.getState()&&!a.reconstructWhenReparented()?b.requestMeasure():b=new fj(++this.ih,a,this);this.w.push(b);this.Ff.schedule(1E3)};
f.grantBuildPermission=function(){return 20>this.lg++||this.h.hasBeenVisible()};function Dk(a,b,c){var d;c=void 0===c?!1:c;d=void 0===d?!0:d;var e=a.ma||a.Gg,g="prerender"!=a.h.getVisibilityState()||b.prerenderAllowed();e&&g&&(a.ub?Ek(a,b,d):b.isBuilt()||b.isBuilding()||c&&a.ua.includes(b)||(a.ua.push(b),zk(a,d)))}
function zk(a,b){if(!a.Gd)try{a.Gd=!0;b=void 0===b?!0:b;b=void 0===b?!0:b;for(var c=0;c<a.ua.length;c++){var d=a.ua[c],e;if(!(e=a.ub))a:{var g=a.ampdoc.getRootNode(),h=d.element;do if(h.nextSibling){e=!0;break a}while((h=h.parentNode)&&h!=g);e=!1}e&&(a.ua.splice(c--,1),Ek(a,d,b))}}finally{a.Gd=!1}}function Ek(a,b,c){var d=b.build();d&&c&&d.then(function(){return a.schedulePass()},function(c){Fk(a,b);if(!ef(c))throw c;})}f.remove=function(a){(a=Z(a))&&Fk(this,a)};
function Fk(a,b,c){var d=a.w.indexOf(b);-1!=d&&a.w.splice(d,1);b.isBuilt()&&b.pauseOnRemove();c&&b.disconnect();Gk(a,b,!0)}f.removeForChildWindow=function(a){var b=this,c=this.w.filter(function(b){return b.hostWin==a});c.forEach(function(a){return Fk(b,a,!0)})};f.upgraded=function(a){a=Z(a);Dk(this,a)};f.setOwner=function(a,b){b.contains(a);Z(a)&&Z(a).updateOwner(b);a.__AMP__OWNER=b;a=a.getElementsByClassName("i-amphtml-element");for(b=0;b<a.length;b++){var c=a[b];Z(c)&&Z(c).updateOwner(void 0)}};
f.requireLayout=function(a,b){var c=this,d=[];Hk(this,a,function(a){4!=a.getState()&&(3!=a.getState()?d.push(a.whenBuilt().then(function(){a.measure();if(a.isDisplayed())return Ik(c,a,!0,b,!0),a.loadedOnce()})):a.isDisplayed()&&d.push(a.loadedOnce()))});return Promise.all(d)};f.scheduleLayout=function(a,b){Jk(this,Z(a),!0,Kk(b))};f.schedulePause=function(a,b){var c=Z(a);b=Kk(b);Lk(this,c,b,function(a){a.pause()})};f.scheduleResume=function(a,b){a=Z(a);b=Kk(b);Lk(this,a,b,function(a){a.resume()})};
f.scheduleUnlayout=function(a,b){a=Z(a);b=Kk(b);Lk(this,a,b,function(a){a.unlayout()})};f.schedulePreload=function(a,b){Jk(this,Z(a),!1,Kk(b))};f.updateLayoutPriority=function(a,b){var c=Z(a);c.updateLayoutPriority(b);this.C.forEach(function(a){a.resource==c&&(a.priority=b)});this.schedulePass()};f.updateInViewport=function(a,b,c){Mk(this,Z(a),Kk(b),c)};f.changeSize=function(a,b,c,d,e){Nk(this,Z(a),b,c,e,!0,d)};
f.attemptChangeSize=function(a,b,c,d){var e=this;return new Promise(function(g,h){Nk(e,Z(a),b,c,d,!1,function(a){a?g():h(Error("changeSize attempt denied"))})})};f.measureElement=function(a){return this.A.measurePromise(a)};f.mutateElement=function(a,b){return this.measureMutateElement(a,null,b)};f.measureMutateElement=function(a,b,c){return this.F?Ok(this,a,b,c):Pk(this,a,b,c)};
function Pk(a,b,c,d){function e(){var c=a.H.getLayoutRect(b);return 0!=c.width&&0!=c.height?c.top:-1}var g=-1;return a.A.runPromise({measure:function(){c&&c();g=e()},mutate:function(){d();b.classList.contains("i-amphtml-element")&&Z(b).requestMeasure();for(var c=b.getElementsByClassName("i-amphtml-element"),k=0;k<c.length;k++)Z(c[k]).requestMeasure();-1!=g&&Qk(a,g);a.schedulePass(70);a.A.measure(function(){var b=e();-1!=b&&b!=g&&(Qk(a,b),a.schedulePass(70));a.ib=!0})}})}
function Ok(a,b,c,d){return a.A.runPromise({measure:c||void 0,mutate:function(){d();a.dirtyElement(b)}})}f.dirtyElement=function(a){if(this.F)this.gb.dirty(a);else{var b=a.classList.contains("i-amphtml-element");b&&(a=Z(a),Qk(this,a.getLayoutBox().top));this.schedulePass(70,!b)}};f.attemptCollapse=function(a){var b=this;return new Promise(function(c,d){Nk(b,Z(a),0,0,void 0,!1,function(b){b?(Z(a).completeCollapse(),c()):d(Error("collapse attempt denied"))})})};
f.collapseElement=function(a){var b=this.H.getLayoutRect(a);a=Z(a);0!=b.width&&0!=b.height&&Qk(this,b.top);a.completeCollapse();this.schedulePass(70)};f.expandElement=function(a){var b=Z(a);b.completeExpand();(b=b.getOwner())&&b.expandedCallback(a);this.schedulePass(70)};f.schedulePass=function(a,b){b&&(this.mb=!0);return this.Cc.schedule(a)};f.schedulePassVsync=function(){var a=this;this.ve||(this.ve=!0,this.A.mutate(function(){return a.doPass()}))};f.ampInitComplete=function(){this.Ae=!0;this.schedulePass()};
f.doPass=function(){var a=this;if(this.ma){this.ka=this.h.isVisible();this.Ga=this.h.getPrerenderSize();var b=this.ub&&this.Ye;if(b){this.Ye=!1;var c=this.win.document,d=fe(this.ampdoc);this.h.sendMessage("documentLoaded",G({title:c.title,sourceUrl:bd(this.ampdoc.getUrl()),serverLayout:c.documentElement.hasAttribute("i-amphtml-element"),linkRels:d.linkRels,metaTags:d.metaTags}),!0);this.cc=this.H.getContentHeight();this.h.sendMessage("documentHeight",G({height:this.cc}),!0)}var e=this.H.getSize();
this.Cc.cancel();this.ve=!1;this.$f.setState(this.h.getVisibilityState());this.ub&&this.Ae&&!this.ampdoc.signals().get("ready-scan")&&this.ampdoc.signals().signal("ready-scan");this.ib&&(this.ib=!1,this.A.measure(function(){var b=a.H.getContentHeight();b!=a.cc&&(a.h.sendMessage("documentHeight",G({height:b}),!0),a.cc=b)}))}};
function Rk(a){var b=Date.now(),c=a.H.getRect(),d=c.height/10,e=c.height/10,g=.01>Math.abs(a.Pd)&&500<b-a.oc||1E3<b-a.oc;if(0<a.ja.length){var h=a.ja;a.ja=[];for(var k=-1,l=[],m=0,b=0;b<h.length;b++){var n=h[b],q=n.resource,t=q.getLayoutBox(),A=0,u=0,z=0,B=0,y=t,C=y.top,w=y.bottom,v=void 0;n.marginChange&&(v=n.marginChange.newMargins,y=n.marginChange.currentMargins,void 0!=v.top&&(A=v.top-y.top),void 0!=v.bottom&&(u=v.bottom-y.bottom),void 0!=v.left&&(z=v.left-y.left),void 0!=v.right&&(B=v.right-
y.right),A&&(C=t.top-y.top),u&&(w=t.bottom+y.bottom));var O=n.newHeight-t.height,U=n.newWidth-t.width,S=!1;if(0!=O||0!=A||0!=u||0!=U||0!=z||0!=B)if(n.force||!a.ka)S=!0;else if(a.we.hasDescendantsOf(q.element))S=!0;else if(C>=c.bottom-e||0==A&&t.bottom+Math.min(O,0)>=c.bottom-e)S=!0;else if(1<c.top&&w<=c.top+d){if(0>O&&c.top+m<-O)continue;g?(m+=O,l.push(n)):a.ja.push(n);continue}else Sk(a,q,t)?S=!0:0>O||0>A||0>u||n.resource.overflowCallback(!0,n.newHeight,n.newWidth,v);S&&(0<=t.top&&(k=-1==k?t.top:
Math.min(k,t.top)),n.resource.changeSize(n.newHeight,n.newWidth,v),n.resource.overflowCallback(!1,n.newHeight,n.newWidth,v),a.ib=!0);n.callback&&n.callback(S)}-1!=k&&Qk(a,k);0<l.length&&a.A.run({measure:function(b){b.scrollHeight=a.H.getScrollHeight();b.scrollTop=a.H.getScrollTop()},mutate:function(b){var c=-1;l.forEach(function(a){var b=a.resource.getLayoutBox();c=-1==c?b.top:Math.min(c,b.top);a.resource.changeSize(a.newHeight,a.newWidth,a.marginChange?a.marginChange.newMargins:void 0);a.callback&&
a.callback(!0)});-1!=c&&Qk(a,c);var d=a.H.getScrollHeight();d!=b.scrollHeight&&a.H.setScrollTop(b.scrollTop+(d-b.scrollHeight));a.ib=!0}},{})}}function Sk(a,b,c){var d,e=a.H.getContentHeight();a=Math.max(.85*e,e-1E3);var g=c||b.getLayoutBox(),h=d||b.getInitialLayoutBox();return g.bottom>=a||h.bottom>=a}function Qk(a,b){a.F?a.mb=!0:a.Rb=-1==a.Rb?b:Math.min(b,a.Rb)}
function yk(a,b){var c=pb(b,function(a){return!!Z(a)});if(c){b=Z(c);var d=b.getPendingChangeSize();void 0!==d&&Nk(a,b,d.height,d.width,d.margins,!0)}}
function Tk(a){var b=Date.now(),c=a.mb;a.mb=!1;var d=a.Rb;a.Rb=-1;for(var e=0,g=0,h=0;h<a.w.length;h++){var k=a.w[h];0!=k.getState()||k.isBuilding()||Dk(a,k,!0);if(c||!k.hasBeenMeasured()||1==k.getState())k.applySizesAndMediaQuery(),e++;k.isMeasureRequested()&&g++}var l;if(0<e||0<g||c||-1!=d)for(h=0;h<a.w.length;h++)if(k=a.w[h],!k.hasOwner()||k.isMeasureRequested())if(c||1==k.getState()||!k.hasBeenMeasured()||k.isMeasureRequested()||-1!=d&&k.getLayoutBox().bottom>=d){var m=k.isDisplayed();k.measure();
m&&!k.isDisplayed()&&(l||(l=[]),l.push(k))}l&&a.A.mutate(function(){l.forEach(function(b){b.unload();Gk(a,b)})});var d=a.H.getRect(),n;n=a.ka?mf(d,.25,2):0<a.Ga?mf(d,0,a.Ga-1):null;for(var q=a.ka?mf(d,.25,.25):d,d=0;d<a.w.length;d++)if(h=a.w[d],0!=h.getState()&&!h.hasOwner()){var t=a.ka&&h.isDisplayed()&&h.overlaps(q);h.setInViewport(t)}if(n)for(d=0;d<a.w.length;d++)h=a.w[d],2!=h.getState()||h.hasOwner()||h.isDisplayed()&&h.overlaps(n)&&Ik(a,h,!0);if(a.ka&&0==a.sa.getSize()&&0==a.C.getSize()&&b>a.sa.getLastDequeueTime()+
5E3){for(var A=0,b=0;b<a.w.length&&4>A;b++)d=a.w[b],2==d.getState()&&!d.hasOwner()&&d.isDisplayed()&&d.idleRenderOutsideViewport()&&(Ik(a,d,!1),A++);for(b=0;b<a.w.length&&4>A;b++)d=a.w[b],2==d.getState()&&!d.hasOwner()&&d.isDisplayed()&&(Ik(a,d,!1),A++)}}f.og=function(a){var b=this.H.getRect(),c=a.resource.getLayoutBox(),d=Math.floor((c.top-b.top)/b.height);Math.sign(d)!=this.getScrollDirection()&&(d*=2);d=Math.abs(d);return 10*a.priority+d};
f.ng=function(a,b){var c=this.gb.iterateAncestry(a.resource.element,this.fg,b);return 10*a.priority+c};f.mg=function(a,b,c,d){var e=b.getId();if(Ca.call(d,e))return d[e];a=a||0;c=1+c/10;var g=b.isActiveUnsafe()?1:2;b=b.getHorizontalDistanceFromParent()+b.getVerticalDistanceFromParent();return d[e]=a+g*c*b};
function Uk(a,b){var c=Date.now();if(0==a.sa.getSize()){if(-1===a.Ea)return 0;var d=1E3*b.priority;return Math.max(d-(c-a.Ea),0)}var e=0;a.sa.forEach(function(a){e=Math.max(e,Math.max(1E3*(b.priority-a.priority),0)-(c-a.startTime))});return e}f.fh=function(a){this.C.getTaskById(a.id)||this.C.enqueue(a)};f.Nf=function(a,b,c){this.sa.dequeue(a);this.schedulePass(1E3);if(!b)return E().info("Resources","task failed:",a.id,a.resource.debugid,c),Promise.reject(c)};
function Nk(a,b,c,d,e,g,h){b.hasBeenMeasured()&&!e?Vk(a,b,c,d,void 0,g,h):a.A.measure(function(){b.hasBeenMeasured()||b.measure();var k;e?(k=Ke(a.win,b.element),k={newMargins:e,currentMargins:{top:parseInt(k.marginTop,10)||0,right:parseInt(k.marginRight,10)||0,bottom:parseInt(k.marginBottom,10)||0,left:parseInt(k.marginLeft,10)||0}}):k=void 0;var l=k;Vk(a,b,c,d,l,g,h)})}
function Vk(a,b,c,d,e,g,h){b.resetPendingChangeSize();var k=b.getPageLayoutBox();if(!(k=void 0!==c&&c!=k.height||void 0!==d&&d!=k.width)&&(k=void 0!==e))var k=e.currentMargins,l=e.newMargins,k=void 0!==l.top&&l.top!=k.top||void 0!==l.right&&l.right!=k.right||void 0!==l.bottom&&l.bottom!=k.bottom||void 0!==l.left&&l.left!=k.left;if(k){k=null;for(l=0;l<a.ja.length;l++)if(a.ja[l].resource==b){k=a.ja[l];break}k?(k.newHeight=c,k.newWidth=d,k.marginChange=e,k.force=g||k.force,k.callback=h):a.ja.push({resource:b,
newHeight:c,newWidth:d,marginChange:e,force:g,callback:h});a.schedulePassVsync()}else void 0===c&&void 0===d&&void 0===e&&E().error("Resources","attempting to change size with undefined dimensions",b.debugid),h&&h(!0)}function Wk(a,b,c){return 0!=b.getState()&&b.isDisplayed()&&(a.ka||"prerender"==a.h.getVisibilityState()&&b.prerenderAllowed())&&(c||b.isInViewport()||b.renderOutsideViewport()||b.idleRenderOutsideViewport())?!0:!1}
function Ik(a,b,c,d,e){0!=b.getState()&&b.isDisplayed();var g=e||!1;Wk(a,b,g)&&(c?a.Sa(b,"L",0,d||0,g,b.startLayout.bind(b)):a.Sa(b,"P",2,d||0,g,b.startLayout.bind(b)))}function Jk(a,b,c,d){Lk(a,b,d,function(d){0==d.getState()?d.whenBuilt().then(function(){Xk(a,d,c,b.getLayoutPriority())}):Xk(a,d,c,b.getLayoutPriority())})}function Xk(a,b,c,d){b.measure();2==b.getState()&&b.isDisplayed()&&Ik(a,b,c,d)}
f.Sa=function(a,b,c,d,e,g){b=a.getTaskId(b);a={id:b,resource:a,priority:Math.max(a.getLayoutPriority(),d)+c,forceOutsideViewport:e,callback:g,scheduleTime:Date.now(),startTime:0,promise:null};var h=this.C.getTaskById(b);if(!h||a.priority<h.priority)h&&this.C.dequeue(h),this.C.enqueue(a),this.schedulePass(Uk(this,a));a.resource.layoutScheduled(a.scheduleTime)};function Mk(a,b,c,d){var e=b.isInViewport()&&d;Lk(a,b,c,function(a){a.setInViewport(e)})}
function Lk(a,b,c,d){c.forEach(function(c){b.element.contains(c);Hk(a,c,d)})}function Hk(a,b,c){if(b.classList.contains("i-amphtml-element"))c(Z(b)),(b=b.getPlaceholder())&&Hk(a,b,c);else{a=b.getElementsByClassName("i-amphtml-element");b=[];for(var d=0;d<a.length;d++){for(var e=a[d],g=!1,h=0;h<b.length;h++)if(b[h].contains(e)){g=!0;break}g||(b.push(e),c(Z(e)))}}}
function xk(a,b){function c(){a.w.forEach(function(a){return a.resume()});h()}function d(){a.w.forEach(function(b){b.unload();Gk(a,b)});a.unselectText()}function e(){a.w.forEach(function(a){return a.pause()})}function g(){}function h(){var b=a.H.getSize();if(0<b.height&&0<b.width){0<a.ja.length&&Rk(a);Tk(a);for(var b=Date.now(),c=-1,d=Object.create(null),e=a.C.peek(a.Ke,d);e;){c=Uk(a,e);if(16<c)break;a.C.dequeue(e);(c=a.sa.getTaskById(e.id))?(e=a.fh.bind(a,e),c.promise.then(e,e)):(e.resource.measure(),
Wk(a,e.resource,e.forceOutsideViewport)?(e.promise=e.callback(),e.startTime=b,a.sa.enqueue(e),e.promise.then(a.Nf.bind(a,e,!0),a.Nf.bind(a,e,!1)).catch(cf)):e.resource.layoutCanceled());e=a.C.peek(a.Ke,d);c=-1}0<=c?b=c:(b=2*(b-a.sa.getLastDequeueTime()),b=Math.max(Math.min(3E4,b),5E3));0<a.ja.length&&(b=Math.min(b,500));a.ka&&a.schedulePass(b)}}var k="prerender",l="hidden",m="paused",n="inactive";b.addTransition(k,k,h);b.addTransition(k,"visible",h);b.addTransition(k,l,h);b.addTransition(k,n,h);b.addTransition(k,
m,h);b.addTransition("visible","visible",h);b.addTransition("visible",l,h);b.addTransition("visible",n,d);b.addTransition("visible",m,e);b.addTransition(l,"visible",h);b.addTransition(l,l,h);b.addTransition(l,n,d);b.addTransition(l,m,e);b.addTransition(n,"visible",c);b.addTransition(n,l,c);b.addTransition(n,n,g);b.addTransition(n,m,h);b.addTransition(m,"visible",c);b.addTransition(m,l,h);b.addTransition(m,n,d);b.addTransition(m,m,g)}f.unselectText=function(){try{this.win.getSelection().removeAllRanges()}catch(a){}};
function Gk(a,b,c){1==b.getState()&&(a.C.purge(function(a){return a.resource==b}),a.sa.purge(function(a){return a.resource==b}),zf(a.ja,function(a){return a.resource===b}));if(0==b.getState()&&c&&a.ua){var d=a.ua.indexOf(b);-1!=d&&a.ua.splice(d,1)}}function Kk(a){return ia(a)?a:[a]};var Yk=["top","bottom","center"];function Zk(a){this.ampdoc=a;this.ag=pd(a,"action",!0);this.w=je(a);this.H=me(a);$k(this,this.ag)}f=Zk.prototype;f.adoptEmbedWindow=function(a){$k(this,pd(a.document,"action",!0))};
function $k(a,b){b.addGlobalTarget("AMP",a.handleAmpTarget.bind(a));b.addGlobalMethodHandler("hide",a.handleHide.bind(a));b.addGlobalMethodHandler("show",a.handleShow.bind(a));b.addGlobalMethodHandler("toggleVisibility",a.handleToggle.bind(a));b.addGlobalMethodHandler("scrollTo",a.handleScrollTo.bind(a));b.addGlobalMethodHandler("focus",a.handleFocus.bind(a));b.addGlobalMethodHandler("toggleClass",a.handleToggleClass.bind(a))}
f.handleAmpTarget=function(a){var b=this;if(!a.satisfiesTrust(100))return null;var c=a.node,d=a.caller,e=a.method,g=a.args,h=(c.ownerDocument||c).defaultView;switch(e){case "pushState":case "setState":return d=xd(c),be(d).then(function(b){D().assert(b,"AMP-BIND is not installed.");return b.invoke(a)});case "navigateTo":return c=Promise.resolve(),cb(d.tagName,"AMP-")&&(c=d.getImpl().then(function(a){"function"==typeof a.throwIfCannotNavigate&&a.throwIfCannotNavigate()})),c.then(function(){Ad(b.ampdoc,
"navigation").navigateTo(h,g.url,"AMP."+e)},function(a){D().error("STANDARD-ACTIONS",a.message)});case "scrollTo":return D().assert(g.id,"AMP.scrollTo must provide element ID"),a.node=xd(c).getElementById(g.id),this.handleScrollTo(a);case "goBack":return Ad(this.ampdoc,"history").goBack(),null;case "print":return h.print(),null;case "optoutOfCid":return Bd(this.ampdoc,"cid").then(function(a){return a.optOut()}).catch(function(a){E().error("STANDARD-ACTIONS","Failed to opt out of CID",a)})}throw D().createError("Unknown AMP action ",
e);};f.handleScrollTo=function(a){if(!a.satisfiesTrust(100))return null;var b=a.node,c=a.args&&a.args.duration&&0<=a.args.duration?a.args.duration:500;a=a.args&&a.args.position&&Yk.includes(a.args.position)?a.args.position:"top";return this.H.animateScrollIntoView(b,c,"ease-in",a)};f.handleFocus=function(a){if(!a.satisfiesTrust(100))return null;try{a.node.focus()}catch(b){}return null};
f.handleHide=function(a){var b=a.node;this.w.mutateElement(b,function(){b.classList.contains("i-amphtml-element")?b.collapse():Je(b,!1)});return null};
f.handleShow=function(a){var b=a.node,c=b.ownerDocument.defaultView;if(b.classList.contains("i-amphtml-layout-nodisplay"))return D().warn("STANDARD-ACTIONS","Elements with layout=nodisplay cannot be dynamically shown.",b),null;le(c).measure(function(){"none"!=Ke(c,b).display||b.hasAttribute("hidden")||D().warn("STANDARD-ACTIONS",'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',b)});this.w.mutateElement(b,function(){b.classList.contains("i-amphtml-element")?
b.expand():Je(b,!0)});return null};f.handleToggle=function(a){return a.node.hasAttribute("hidden")?this.handleShow(a):this.handleHide(a)};f.handleToggleClass=function(a){if(!a.satisfiesTrust(100))return null;var b=a.node,c=a.args,d=D().assertString(c["class"],"Argument 'class' must be a string.");this.w.mutateElement(b,function(){if(void 0!==c.force){var a=D().assertBoolean(c.force,"Optional argument 'force' must be a boolean.");b.classList.toggle(d,a)}else b.classList.toggle(d)});return null};function al(a,b,c){this.ampdoc=a;this.h=b;this.j=c;this.Bc=cd(this.ampdoc.win.location);this.Lc=null}al.prototype.get=function(a){return bl(this).then(function(b){return b.get(a)})};al.prototype.set=function(a,b){return cl(this,function(c){return c.set(a,b)})};al.prototype.remove=function(a){return cl(this,function(b){return b.remove(a)})};
function bl(a){a.Lc||(a.Lc=a.j.loadBlob(a.Bc).then(function(a){return a?Fb(atob(a)):{}}).catch(function(a){E().expectedError("Storage","Failed to load store: ",a);return{}}).then(function(a){return new dl(a)}));return a.Lc}function cl(a,b){return bl(a).then(function(c){b(c);c=btoa(JSON.stringify(c.obj));return a.j.saveBlob(a.Bc,c)}).then(a.kg.bind(a))}function el(a){a.h.onBroadcast(function(b){"amp-storage-reset"==b.type&&b.origin==a.Bc&&(a.Lc=null)})}
al.prototype.kg=function(){this.h.broadcast({type:"amp-storage-reset",origin:this.Bc})};function dl(a,b){this.obj=Db(a);this.Rg=b||8;this.za=this.obj.vv||Object.create(null);this.obj.vv||(this.obj.vv=this.za)}dl.prototype.get=function(a){return(a=this.za[a])?a.v:void 0};
dl.prototype.set=function(a,b){void 0!==this.za[a]?(a=this.za[a],a.v=b,a.t=Date.now()):this.za[a]=G({v:b,t:Date.now()});b=Object.keys(this.za);if(b.length>this.Rg){var c=Infinity,d=null;for(a=0;a<b.length;a++){var e=this.za[b[a]];e.t<c&&(d=b[a],c=e.t)}d&&delete this.za[d]}};dl.prototype.remove=function(a){delete this.za[a]};
function fl(a){this.win=a;var b;try{"localStorage"in this.win?(this.win.localStorage.getItem("test"),b=!0):b=!1}catch(c){b=!1}this.Jd=b;this.Jd||(a=Error("localStorage not supported."),E().expectedError("Storage",a))}fl.prototype.loadBlob=function(a){var b=this;return new Promise(function(c){b.Jd?c(b.win.localStorage.getItem("amp-store:"+a)):c(null)})};fl.prototype.saveBlob=function(a,b){var c=this;return new Promise(function(d){c.Jd&&c.win.localStorage.setItem("amp-store:"+a,b);d()})};
function gl(a){this.h=a}gl.prototype.loadBlob=function(a){return this.h.sendMessageAwaitResponse("loadStore",G({origin:a})).then(function(a){return a.blob})};gl.prototype.saveBlob=function(a,b){return this.h.sendMessageAwaitResponse("saveStore",G({origin:a,blob:b}))};function hl(a){N(a,"storage",function(){var b=R(a),c=parseInt(b.getParam("storage"),10),d=c?new gl(b):new fl(a.win),b=new al(a,b,d);el(b);return b},!0)};function il(a,b){this.D=a;a=b||a.getRootNode();this.cg=(a.ownerDocument||a).createElement("a");this.$a=new uc(100)}f=il.prototype;f.adoptEmbedWindow=function(a){sd(a,"url",new il(this.D,a.document))};f.parse=function(a,b){return Rc(this.cg,a,b?null:this.$a)};f.isProtocolValid=function(a){return Zc(a)};f.getSourceOrigin=function(a){return cd(a)};f.assertHttpsUrl=function(a,b,c){return Wc(a,b,void 0===c?"source":c)};
f.assertAbsoluteHttpOrHttpsUrl=function(a){D().assert(/^https?\:/i.test(a),'URL must start with "http://" or "https://". Invalid value: %s',a);return K(a).href};f.isProxyOrigin=function(a){return Yc(a)};f.isSecure=function(a){return Vc(this.parse(a))};f.getWinOrigin=function(a){return a.origin||this.parse(a.location.href).origin};function jl(a,b,c,d){var e=new kl(0,0,a,b,c,d,1,1);return e.solveYValueFromXValue.bind(e)}function kl(a,b,c,d,e,g,h,k){this.x0=a;this.y0=b;this.x1=c;this.y1=d;this.x2=e;this.y2=g;this.x3=h;this.y3=k}f=kl.prototype;f.solveYValueFromXValue=function(a){return this.getPointY(this.solvePositionFromXValue(a))};
f.solvePositionFromXValue=function(a){var b=1E-6,c=(a-this.x0)/(this.x3-this.x0);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,g=0,h=0;8>h;h++){var g=this.getPointX(c),k=(this.getPointX(c+b)-g)/b;if(Math.abs(g-a)<b)return c;if(Math.abs(k)<b)break;else g<a?d=c:e=c,c-=(g-a)/k}for(h=0;Math.abs(g-a)>b&&8>h;h++)g<a?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),g=this.getPointX(c);return c};
f.getPointX=function(a){if(0==a)return this.x0;if(1==a)return this.x3;var b=this.lerp(this.x0,this.x1,a),c=this.lerp(this.x1,this.x2,a),d=this.lerp(this.x2,this.x3,a),b=this.lerp(b,c,a),c=this.lerp(c,d,a);return this.lerp(b,c,a)};f.getPointY=function(a){if(0==a)return this.y0;if(1==a)return this.y3;var b=this.lerp(this.y0,this.y1,a),c=this.lerp(this.y1,this.y2,a),d=this.lerp(this.y2,this.y3,a),b=this.lerp(b,c,a),c=this.lerp(c,d,a);return this.lerp(b,c,a)};f.lerp=function(a,b,c){return a+c*(b-a)};
var ll=jl(.25,.1,.25,1),ml=jl(.42,0,1,1),nl=jl(0,0,.58,1),ol=jl(.42,0,.58,1),pl={linear:function(a){return a},ease:ll,"ease-in":ml,"ease-out":nl,"ease-in-out":ol};function ql(a){if(!a)return null;if("string"==typeof a){if(-1!=a.indexOf("cubic-bezier")){var b=a.match(/cubic-bezier\((.+)\)/);if(b&&(b=b[1].split(",").map(parseFloat),4==b.length)){for(var c=0;4>c;c++)if(isNaN(b[c]))return null;return jl(b[0],b[1],b[2],b[3])}return null}return pl[a]}return a};function rl(){}function sl(a,b){this.sb=a;this.A=b||le(self);this.Re=null;this.$=[]}function tl(a,b,c,d){return(new sl(a)).setCurve(d).add(0,b,1).start(c)}sl.prototype.setCurve=function(a){a&&(this.Re=ql(a));return this};sl.prototype.add=function(a,b,c,d){this.$.push({delay:a,func:b,duration:c,curve:ql(d)});return this};sl.prototype.start=function(a){var b=new ul(this.A,this.sb,this.$,this.Re,a);return b};
function ul(a,b,c,d,e){this.A=a;this.sb=b;this.$=[];for(b=0;b<c.length;b++){var g=c[b];this.$.push({delay:g.delay,func:g.func,duration:g.duration,curve:g.curve||d,started:!1,completed:!1})}this.wg=e;this.ne=Date.now();this.Ra=!0;this.G={};e=new I;this.Bf=e.promise;this.gh=e.resolve;this.eh=e.reject;this.Of=this.A.createAnimTask(this.sb,{mutate:this.ph.bind(this)});this.A.canAnimate(this.sb)?this.Of(this.G):(E().warn("Animation","cannot animate"),this.ab(!1,0))}f=ul.prototype;
f.then=function(a,b){return a||b?this.Bf.then(a,b):this.Bf};f.thenAlways=function(a){a=a||rl;return this.then(a,a)};f.halt=function(a){this.ab(!1,a||0)};f.ab=function(a,b){if(this.Ra){this.Ra=!1;if(0!=b){1<this.$.length&&this.$.sort(function(a,b){return a.delay+a.duration-(b.delay+b.duration)});try{if(0<b)for(b=0;b<this.$.length;b++)this.$[b].func(1,!0);else for(var c=this.$.length-1;0<=c;c--)this.$[c].func(0,!1)}catch(d){E().error("Animation","completion failed: "+d,d),a=!1}}a?this.gh():this.eh()}};
f.ph=function(){if(this.Ra){for(var a=Date.now(),b=Math.min((a-this.ne)/this.wg,1),c=0;c<this.$.length;c++){var d=this.$[c];!d.started&&b>=d.delay&&(d.started=!0)}for(c=0;c<this.$.length;c++)if(d=this.$[c],d.started&&!d.completed)a:{var e,g;if(0<d.duration){if(e=g=Math.min((b-d.delay)/d.duration,1),d.curve&&1!=e)try{e=d.curve(g)}catch(h){E().error("Animation","step curve failed: "+h,h);this.ab(!1,0);break a}}else e=g=1;1==g&&(d.completed=!0);try{d.func(e,d.completed)}catch(h){E().error("Animation",
"step mutate failed: "+h,h),this.ab(!1,0)}}1==b?this.ab(!0,0):this.A.canAnimate(this.sb)?this.Of(this.G):(E().warn("Animation","cancel animation"),this.ab(!1,0))}};function vl(a,b,c,d,e){this.ampdoc=a;this.A=b;this.eg=c;this.bc=this.K=d;this.Ia=e&&a.isSingleDoc();this.ra=null;this.rg=0;this.X=[]}f=vl.prototype;f.setVisible=function(a){var b=this;this.ra&&this.A.mutate(function(){T(b.ra.getRoot(),"visibility",a?"visible":"hidden")})};
f.setup=function(){var a=this.ampdoc.getRootNode().styleSheets;if(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d],g=e.ownerNode;e.disabled||!g||"STYLE"!=g.tagName||g.hasAttribute("amp-boilerplate")||g.hasAttribute("amp-runtime")||g.hasAttribute("amp-extension")||wl(this,e.cssRules,b,c)}this.trySetupSelectorsNoInline(b,c);xl(this);d=ie(this.ampdoc.win);0<this.X.length&&!this.Ia&&d.isIos()&&D().warn("FixedLayer","Please test this page inside of an AMP Viewer such as Google's because the fixed or sticky positioning might have slightly different layout.");
this.update()}};f.updatePaddingTop=function(a,b){this.K=a;b||(this.bc=a);this.update()};f.transformMutate=function(a){a?this.X.forEach(function(b){b.fixedNow&&b.top&&(T(b.element,"transition","none"),b.transform&&"none"!=b.transform?T(b.element,"transform",b.transform+" "+a):T(b.element,"transform",a))}):this.X.forEach(function(a){a.fixedNow&&a.top&&Ie(a.element,{transform:"",transition:""})})};
f.addElement=function(a,b){var c=this.ampdoc.win;a.offsetParent||"none"!==Ke(c,a).display||E().error("FixedLayer","Tried to add display:none element to FixedLayer",a.tagName);yl(this,a,"*","fixed",b);xl(this);return this.update()};f.removeElement=function(a){var b=this,c=zl(this,a);0<c.length&&this.ra&&this.A.mutate(function(){for(var a=0;a<c.length;a++){var e=c[a];"fixed"==e.position&&b.ra.returnFrom(e)}})};f.isDeclaredFixed=function(a){return!!a.__AMP_DECLFIXED};f.isDeclaredSticky=function(a){return!!a.__AMP_DECLSTICKY};
f.update=function(){var a=this;this.X.filter(function(b){return!a.ampdoc.contains(b.element)}).forEach(function(b){return zl(a,b.element)});if(0==this.X.length)return Promise.resolve();var b=!1;return this.A.runPromise({measure:function(c){for(var d=a.X,e=[],g=a.ampdoc.win,h=0;h<d.length;h++)Ge(d[h].element,{top:"",bottom:"-9999vh",transition:"none"});for(h=0;h<d.length;h++)e.push(Ke(g,d[h].element).top);for(h=0;h<d.length;h++)T(d[h].element,"bottom","");for(h=0;h<d.length;h++){var k=d[h],l=k,m=l.element,
n=l.forceTransfer,l=Ke(g,m),q=m.offsetWidth,t=m.offsetHeight,A=m.offsetTop,u=l,z=void 0===u.position?"":u.position,m=void 0===u.display?"":u.display,B=u.bottom,y=u.zIndex,C=parseFloat(l.opacity),u=l[Fe(l,"transform")],l=l.top,w="fixed"===z&&(n||0<q&&0<t),v=bb(z,"sticky"),O="none"!==m;if(O&&(w||v)){if("auto"===l||e[h]!==l)l=w&&A===a.bc+a.eg?"0px":"";var U=!1;w&&(U=!0===n?!0:!1===n?!1:0<C&&300>t&&!(!l&&!B));U&&(b=!0);c[k.id]={fixed:w,sticky:v,transferrable:U,top:l,zIndex:y,transform:u}}else c[k.id]=
{fixed:!1,sticky:!1,transferrable:!1,top:"",zIndex:""}}},mutate:function(c){b&&a.Ia&&Al(a).update();for(var d=a.X,e=0;e<d.length;e++){var g=d[e],h=c[g.id];T(g.element,"transition","none");T(g.element,"transition","");if(h){var k=e,l=h,m=g.element,n=g.fixedNow;g.fixedNow=l.fixed;g.stickyNow=l.sticky;g.top=l.fixed||l.sticky?l.top:"";g.transform=l.transform;!n||l.fixed&&l.transferrable||!a.ra||a.ra.returnFrom(g);l.top&&(l.fixed||l.sticky)&&(l.fixed||!a.Ia?T(m,"top","calc("+l.top+" + "+a.K+"px)"):a.bc===
a.K?T(m,"top",l.top):T(m,"top","calc("+l.top+" - "+a.bc+"px)"));a.Ia&&l.fixed&&l.transferrable&&Al(a).transferTo(g,k,l)}}}},{}).catch(function(a){E().error("FixedLayer","Failed to mutate fixed elements:",a)})};
f.trySetupSelectorsNoInline=function(a,b){try{for(var c=0;c<a.length;c++)for(var d=a[c],e=this.ampdoc.getRootNode().querySelectorAll(d),g=0;g<e.length&&!(10<g);g++)yl(this,e[g],d,"fixed");for(a=0;a<b.length;a++)for(var h=b[a],k=this.ampdoc.getRootNode().querySelectorAll(h),c=0;c<k.length;c++)yl(this,k[c],h,"sticky")}catch(l){E().error("FixedLayer","Failed to setup fixed elements:",l)}};
function yl(a,b,c,d,e){b.hasAttribute("style")&&(He(b,"top")||He(b,"bottom"))&&D().error("FixedLayer","Inline styles with `top`, `bottom` and other CSS rules are not supported yet for fixed or sticky elements (#14186). Unexpected behavior may occur.",b);for(var g=null,h=0;h<a.X.length;h++){var k=a.X[h];if(k.element==b&&k.position==d){g=k;break}}h="fixed"==d;g?g.selectors.includes(c)||g.selectors.push(c):(g="F"+a.rg++,b.setAttribute("i-amphtml-fixedid",g),h?b.__AMP_DECLFIXED=!0:b.__AMP_DECLSTICKY=
!0,g={id:g,element:b,position:d,selectors:[c],fixedNow:!1,stickyNow:!1},a.X.push(g));g.forceTransfer=h?e:!1}function zl(a,b){for(var c=[],d=0;d<a.X.length;d++){var e=a.X[d];e.element==b&&(a.A.mutate(function(){T(b,"top","")}),a.X.splice(d,1),c.push(e))}return c}function xl(a){a.X.sort(function(a,c){return a.element.compareDocumentPosition(c.element)&1?1:-1})}function Al(a){if(!a.Ia||a.ra)return a.ra;var b=a.ampdoc.win.document;a.ra=b.body.shadowRoot?new Bl(b):new Cl(b);return a.ra}
function wl(a,b,c,d){for(var e=0;e<b.length;e++){var g=b[e];1==g.type?"*"!=g.selectorText&&g.style.position&&("fixed"==g.style.position?c.push(g.selectorText):bb(g.style.position,"sticky")&&d.push(g.selectorText)):4==g.type?wl(a,g.cssRules,c,d):12==g.type&&wl(a,g.cssRules,c,d)}}
function Cl(a){this.Ca=a;this.U=a.body.cloneNode(!1);this.U.removeAttribute("style");Ie(this.U,{position:"absolute",top:0,left:0,height:0,width:0,pointerEvents:"none",overflow:"hidden",animation:"none",background:"none",border:"none",borderImage:"none",boxSizing:"border-box",boxShadow:"none",float:"none",margin:0,opacity:1,outline:"none",padding:"none",transform:"none",transition:"none",visibility:"visible"});this.U.style.display="block";a.documentElement.appendChild(this.U)}
Cl.prototype.getRoot=function(){return this.U};Cl.prototype.update=function(){this.U.className!=this.Ca.body.className&&(this.U.className=this.Ca.body.className)};
Cl.prototype.transferTo=function(a,b,c){var d=a.element;if(d.parentElement!=this.U){D().warn("FixedLayer","In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer:",a.element);if(!a.placeholder){T(d,"pointer-events","initial");var e=a.placeholder=this.Ca.createElement("i-amphtml-fpa");Je(e,!1);e.setAttribute("i-amphtml-fixedid",a.id)}T(d,"zIndex","calc("+(1E4+b)+" + "+(c.zIndex||0)+")");d.parentElement.replaceChild(a.placeholder,d);this.U.appendChild(d);
a.selectors.some(function(a){var b;a:{try{var c=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.msMatchesSelector||d.oMatchesSelector;if(c){b=c.call(d,a);break a}}catch(l){E().error("FixedLayer","Failed to test query match:",l)}b=!1}return b})||(D().warn("FixedLayer","Failed to move the element to the fixed position layer. This is most likely due to the compound CSS selector:",a.element),this.returnFrom(a))}};
Cl.prototype.returnFrom=function(a){a.placeholder&&this.Ca.contains(a.placeholder)&&(this.Ca.contains(a.element)?(T(a.element,"zIndex",""),a.placeholder.parentElement.replaceChild(a.element,a.placeholder)):a.placeholder.parentElement.removeChild(a.placeholder))};
function Bl(a){this.U=a.createElement("div");this.U.id="i-amphtml-fixed-layer";Ge(this.U,{position:"absolute",top:0,left:0,height:0,width:0,overflow:"hidden"});var b=a.createElement("slot");b.setAttribute("name","i-amphtml-fixed");this.U.appendChild(b);a.body.shadowRoot.appendChild(this.U)}Bl.prototype.getRoot=function(){return this.U};Bl.prototype.update=function(){};
Bl.prototype.transferTo=function(a){var b=a.element;D().warn("FixedLayer","In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer:",a.element);b.setAttribute("slot","i-amphtml-fixed")};Bl.prototype.returnFrom=function(a){a.element.removeAttribute("slot")};function Dl(a){var b=this;this.ampdoc=a;this.win=a.win;this.Ob=ie(this.win);this.Z=new W;this.Y=new W;this.Ba=function(){b.Z.fire()};this.Aa=function(){return b.Y.fire()};this.F=L(this.win,"layers")}f=Dl.prototype;f.connect=function(){this.win.addEventListener("scroll",this.Ba);this.win.addEventListener("resize",this.Aa)};f.disconnect=function(){this.win.removeEventListener("scroll",this.Ba);this.win.removeEventListener("resize",this.Aa)};f.ensureReadyForElements=function(){};f.getBorderTop=function(){return 0};
f.requiresFixedLayerTransfer=function(){return!1};f.supportsPositionFixed=function(){return!0};f.onScroll=function(a){this.Z.add(a)};f.onResize=function(a){this.Y.add(a)};f.updatePaddingTop=function(a){Ge(this.win.document.documentElement,{"padding-top":a+"px"})};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")};
f.resetScroll=function(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")};f.updateLightboxMode=function(){return Promise.resolve()};f.getSize=function(){var a=this.win.innerWidth,b=this.win.innerHeight;if(a&&b)return{width:a,height:b};var c=this.win.document.documentElement;return{width:c.clientWidth,height:c.clientHeight}};
f.getScrollTop=function(){var a=this.getScrollingElement().scrollTop||this.win.pageYOffset,b=this.ampdoc.getRootNode().host;return b?a-b.offsetTop:a};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.getScrollingElement().scrollWidth};f.getScrollHeight=function(){return this.getScrollingElement().scrollHeight};f.getContentHeight=function(){var a=this.win.document.body.getBoundingClientRect();return a.height+a.top+this.getScrollTop()};
f.getLayoutRect=function(a,b,c){a=a.getBoundingClientRect();if(this.F)return V(a.left,a.top,a.width,a.height);var d=void 0!=c?c:this.getScrollTop(),e=void 0!=b?b:this.getScrollLeft();return V(Math.round(a.left+e),Math.round(a.top+d),Math.round(a.width),Math.round(a.height))};f.getRootClientRectAsync=function(){return Promise.resolve(null)};f.setScrollTop=function(a){this.getScrollingElement().scrollTop=a};
f.getScrollingElement=function(){var a=this.win.document;return a.scrollingElement?a.scrollingElement:a.body&&this.Ob.isWebKit()?a.body:a.documentElement};f.getScrollingElementScrollsLikeViewport=function(){return!0};function El(a,b){return{left:a,top:b}}var Fl=[],Gl=0;function Hl(a,b,c){var d=this;a=a.win;this.Kf=b;this.$d=null;this.pc=[];this.Rc=[];Il(this,a.document);a.document.documentElement.contains(b)||Il(this,b);this.Rc.push(re(a,"resize",function(){for(var a=d.pc,b=0;b<a.length;b++){var c=a[b];c.undeclareLayer();c.forgetParentLayer()}},{capture:!0,passive:!0}));this.xe=Jl(this,b,!0,c)}f=Hl.prototype;f.dispose=function(){this.Rc.forEach(function(a){return a()});this.Rc.length=0};
f.add=function(a){var b=Kl(a);b||(b=new Ll(a));this.pc.includes(b)||this.pc.push(b);return b};f.remove=function(a){if(a=Kl(a)){var b=this.pc,c=b.indexOf(a);-1<c&&b.splice(c,1);if(c=a.getParentLayer())c.remove(a);else for(c=0;c<b.length;c++)b[c].remove(a);a.forgetParentLayer();a.dirtyMeasurements()}};f.getScrolledPosition=function(a,b){a=this.add(a).getScrolledPosition(b);return El(Math.round(a.left),Math.round(a.top))};
f.getOffsetPosition=function(a,b){a=this.add(a).getOffsetPosition(b);return El(Math.round(a.left),Math.round(a.top))};f.getSize=function(a){a=this.add(a).getSize();return{height:Math.round(a.height),width:Math.round(a.width)}};f.remeasure=function(a,b){a=this.add(a);a=a.getParentLayer()||a;b&&a.dirtyMeasurements();a.remeasure()};f.declareLayer=function(a){Jl(this,a,!1,!1)};f.dirty=function(a){var b=Ml(a)||Kl(this.Kf);b.dirtyMeasurements()};
function Jl(a,b,c,d){a=a.add(b);a.declareLayer(c,d);return a}function Il(a,b){a.Rc.push(re(b,"scroll",function(b){b=b.target;b=b.nodeType==Node.ELEMENT_NODE?b:a.Kf;var c=Kl(b);c&&c.isLayer()?c.dirtyScrollMeasurements():c=Jl(a,b,!1,!1);a.xe=c;a.$d&&a.$d()},{capture:!0,passive:!0}))}f.onScroll=function(a){this.$d=a};f.getActiveLayer=function(){return this.xe};f.iterateAncestry=function(a,b,c){return this.add(a).iterateAncestry(b,c)};
function Ll(a){a.__AMP_LAYOUT=this;this.W=a;this.zd=a.tagName+"-"+Gl++;this.Mb=void 0;this.Hb=!0;this.T={height:0,width:0};this.xf=El(0,0);this.Fd=void 0;this.wc=this.Lf=this.ff=this.fb=!1;this.pa=this.Ta=0;this.La=[]}function Kl(a){return a.__AMP_LAYOUT||null}
function Ml(a,b){if(Nl(a))return null;if(!b&&(b=Kl(a)))return b.getParentLayer();b=a.ownerDocument.defaultView;for(var c=a,d=a,e;c;){if((e=c===a?null:Kl(c))&&e.isLayer())return e;if(c===d){if("fixed"==Ke(b,d).position){if(a=d!==a?d:Ol(a.ownerDocument))return Ad(a,"layers").declareLayer(a),Kl(a);break}d=d.offsetParent}e=c;c=c.assignedSlot||c.parentNode||c.host;!c&&(d=c=Ol(e))&&(b=c.ownerDocument.defaultView)}return null}f=Ll.prototype;f.getId=function(){return this.zd};
f.contains=function(a){return a===this?!1:Pl(this,this.W,a.W)};function Pl(a,b,c){if(b.contains(c))return!0;if(b.ownerDocument!==c.ownerDocument){var d=Ol(c.ownerDocument);return!!d&&Pl(a,b,d)}a=(a=ib(b))&&a.host;return!!a&&a.contains(c)}f.add=function(a){this.isLayer();this.contains(a);this.La.includes(a)||this.La.push(a)};f.remove=function(a){a=this.La.indexOf(a);-1<a&&this.La.splice(a,1)};f.isLayer=function(){return this.fb};
f.declareLayer=function(a,b){this.fb||(this.fb=!0,this.ff=a,this.Lf=b,this.wc=this.Hb=!0,(a=this.getParentLayer())&&a.Ia(this))};f.undeclareLayer=function(){if(this.fb&&!this.ff){var a=this.W;Nl(a)||"fixed"===Ke(a.ownerDocument.defaultView,a).position||(this.fb=!1,a=this.getParentLayer()||Ml(a,!0),this.Ia(a))}};f.Ia=function(a){var b=a.contains(this);zf(this.La,function(c){return b||a.contains(c)?(c.dirtyMeasurements(),c.Mb=a,a.La.push(c),!0):!1})};
f.getParentLayer=function(){if(void 0===this.Mb){var a=Ml(this.W,!0);(this.Mb=a)&&a.add(this)}return this.Mb};f.forgetParentLayer=function(){this.Mb=void 0};f.getSize=function(){this.remeasure();return this.T};f.getOffsetFromParent=function(){this.remeasure();return this.xf};f.isActiveUnsafe=function(){return this.Fd};
f.getHorizontalDistanceFromParent=function(){var a=this.getParentLayer();if(!a)return 0;var b=this.getOffsetFromParent().left,c=this.getSize().width,d=a.getScrollLeft(),e=a.getSize().width;return b+c<d?d-(b+c):d+e<b?b-(d+e):0};f.getHorizontalViewportsFromParent=function(){var a=this.getHorizontalDistanceFromParent();if(0===a)return 0;var b=this.getParentLayer().getSize().width;return a/b};
f.getVerticalDistanceFromParent=function(){var a=this.getParentLayer();if(!a)return 0;var b=this.getOffsetFromParent().top,c=this.getSize().height,d=a.getScrollTop(),e=a.getSize().height;return b+c<d?d-(b+c):d+e<b?b-(d+e):0};f.getVerticalViewportsFromParent=function(){var a=this.getVerticalDistanceFromParent();if(0===a)return 0;var b=this.getParentLayer().getSize().height;return a/b};f.getScrollTop=function(){Ql(this);return this.pa};f.getScrollLeft=function(){Ql(this);return this.Ta};
f.getScrolledPosition=function(a){var b=this.getScrollLeft(),c=this.getScrollTop(),d=a?Ml(a):null;for(a=this;a&&a!==d;a=a.getParentLayer())var e=a.getOffsetFromParent(),b=b+(e.left-a.getScrollLeft()),c=c+(e.top-a.getScrollTop());return El(b,c)};f.getOffsetPosition=function(a){var b=0,c=0;a=a?Ml(a):null;for(var d=this;d&&d!==a;d=d.getParentLayer())var e=d.getOffsetFromParent(),b=b+e.left,c=c+e.top;return El(b,c)};f.dirtyMeasurements=function(){this.Hb=!0};
f.dirtyScrollMeasurements=function(){this.wc=!0};f.remeasure=function(){for(var a=this,b=this.getParentLayer();b;b=b.getParentLayer())b.Hb&&(a=b);a.Hb&&Rl(a)};f.iterateAncestry=function(a,b){for(var c=Nl(this.W)?null:Ad(this.W,"layers").getActiveLayer(),d=c===this||!!c&&c.contains(this),e=this;e;)Fl.push(e),e.Fd=d,e===c&&(d=!1),e=e.getParentLayer();for(var g=void 0,e=Fl.length,h=0;h<e;h++){var k=Fl.pop(),g=a(g,k,h,b);k.Fd=void 0}return g};
function Rl(a){Ql(a);a.Hb=!1;var b=a.W,c=a.getParentLayer();if(c)if(c.W.ownerDocument===a.W.ownerDocument)var d=c.getScrolledPosition(c.W.ownerDocument.documentElement),c=El(d.left-c.getScrollLeft(),d.top-c.getScrollTop());else c=El(0,0);else c=El(0,0);var e=c;a.T={height:b.clientHeight,width:b.clientWidth};c=b.getBoundingClientRect();b=c.left;c=c.top;a.Lf&&(b+=a.getScrollLeft(),c+=a.getScrollTop());a.xf=El(b-e.left,c-e.top);a=a.La;if(a.length)for(b=0;b<a.length;b++)Rl(a[b])}
function Ql(a){a.fb&&a.wc&&(a.wc=!1,a.Ta=a.W.scrollLeft,a.pa=a.W.scrollTop)}function Ol(a){try{var b=a.defaultView,c=b&&b.frameElement;return c&&c.__AMP_EMBED__?c:null}catch(d){}return null}function Nl(a){a=a.ownerDocument;if(!a)return!0;a=a.defaultView;return!a||!a.document}function Sl(a,b,c){N(a,"layers",function(a){return new Hl(a,b,c)},!0)};function Tl(a,b){return function(c){return a+(b-a)*c}};var Ul=['\n      <div id="i-amphtml-scroller">\n        <div id="i-amphtml-body-wrapper">\n          <slot></slot>\n        </div>\n      </div>'];Ul.raw=['\n      <div id="i-amphtml-scroller">\n        <div id="i-amphtml-body-wrapper">\n          <slot></slot>\n        </div>\n      </div>'];var Vl="align-content align-items align-self alignment-baseline backface-visibility box-sizing column-count column-fill column-gap column-rule column-span column-width columns display flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap gap grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-gap grid-row grid-template justify-content justify-items justify-self margin order padding perspective perspective-origin place-content place-items place-self table-layout".split(" ");
function Wl(a){var b=this;this.win=a;this.A=le(a);a=this.win.document;a.documentElement.classList.add("i-amphtml-ios-embed-sd");var c=Cf(a)(Ul);this.P=c;this.M=c.firstElementChild;this.P.style.display="block";Ge(this.P,{"overflow-x":"hidden","overflow-y":"auto",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",margin:"0",width:"100%","box-sizing":"border-box","padding-top":"0px","border-top":"1px solid transparent"});Ge(this.M,{overflow:"visible",position:"relative","will-change":"transform"});
this.Z=new W;this.Y=new W;this.Ba=this.Jb.bind(this);this.Aa=this.Zg.bind(this);this.F=L(this.win,"layers");this.K=0;this.Tb=this.bd=!1;eb(a,this.Ub.bind(this));xf(a).then(function(){b.P.classList.add("i-amphtml-ios-overscroll");Ge(b.P,{"-webkit-overflow-scrolling":"touch"})})}f=Wl.prototype;f.ensureReadyForElements=function(){this.Ub()};
f.Ub=function(){if(!this.Tb){this.Tb=!0;var a=this.win.document.body;a.attachShadow({mode:"open"}).appendChild(this.P);this.qe();if(this.win.MutationObserver){var b=new this.win.MutationObserver(this.qe.bind(this));b.observe(a,{attributes:!0})}this.Jb()}};
f.qe=function(){var a=this;if(!this.bd){var b=this.win.document.body;if(b){var c={};this.bd=!0;this.A.run({measure:function(){var d=Ke(a.win,b);Vl.forEach(function(a){c[a]=d[a]||""})},mutate:function(){a.bd=!1;var b=a.M,e=c;"display"in e&&E().error("STYLE","`display` style detected in styles. You must use toggle instead.");Ge(b,e)}})}}};f.Zg=function(){this.Y.fire();this.qe()};f.connect=function(){this.win.addEventListener("resize",this.Aa);this.P.addEventListener("scroll",this.Ba)};
f.disconnect=function(){this.win.removeEventListener("resize",this.Aa);this.P.removeEventListener("scroll",this.Ba)};f.getBorderTop=function(){return 1};f.requiresFixedLayerTransfer=function(){return!0};f.supportsPositionFixed=function(){return!0};f.onScroll=function(a){this.Z.add(a)};f.onResize=function(a){this.Y.add(a)};f.updatePaddingTop=function(a){this.K=a;Ge(this.P,{"padding-top":a+"px"})};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};
f.disableScroll=function(){Ge(this.P,{"overflow-y":"hidden",position:"fixed"})};f.resetScroll=function(){Ge(this.P,{"overflow-y":"auto",position:"absolute"})};f.updateLightboxMode=function(){return Promise.resolve()};f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};f.getScrollTop=function(){return this.P.scrollTop};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.P.scrollWidth};f.getScrollHeight=function(){return this.P.scrollHeight};
f.getContentHeight=function(){return this.M.scrollHeight+this.K+this.getBorderTop()};f.getLayoutRect=function(a,b,c){a=a.getBoundingClientRect();if(this.F)return V(a.left,a.top,a.width,a.height);c=void 0!=c?c:this.getScrollTop();b=void 0!=b?b:this.getScrollLeft();return V(Math.round(a.left+b),Math.round(a.top+c),Math.round(a.width),Math.round(a.height))};f.getRootClientRectAsync=function(){return Promise.resolve(null)};f.setScrollTop=function(a){this.P.scrollTop=a||1};
f.Jb=function(a){0==this.P.scrollTop&&(this.P.scrollTop=1,a&&a.preventDefault());a&&this.Z.fire()};f.getScrollingElement=function(){return this.P};f.getScrollingElementScrollsLikeViewport=function(){return!1};function Xl(a){var b=this;this.win=a;a=this.win.document;var c=a.documentElement,d=c.className;c.className="i-amphtml-ios-embed";var e=a.createElement("html");this.M=e;e.id="i-amphtml-wrapper";e.className=d;this.Z=new W;this.Y=new W;this.Ba=this.Jb.bind(this);this.Aa=function(){return b.Y.fire()};this.F=L(this.win,"layers");this.Tb=!1;eb(a,this.Ub.bind(this));xf(a).then(function(){c.classList.add("i-amphtml-ios-overscroll")})}f=Xl.prototype;f.ensureReadyForElements=function(){this.Ub()};
f.Ub=function(){if(!this.Tb){this.Tb=!0;var a=this.win.document,b=a.body;a.documentElement.appendChild(this.M);this.M.appendChild(b);Object.defineProperty(a,"body",{get:function(){return b}});this.Jb()}};f.connect=function(){this.win.addEventListener("resize",this.Aa);this.M.addEventListener("scroll",this.Ba)};f.disconnect=function(){this.win.removeEventListener("resize",this.Aa);this.M.removeEventListener("scroll",this.Ba)};f.getBorderTop=function(){return 1};f.requiresFixedLayerTransfer=function(){return!0};
f.supportsPositionFixed=function(){return!0};f.onScroll=function(a){this.Z.add(a)};f.onResize=function(a){this.Y.add(a)};f.updatePaddingTop=function(a){Ge(this.M,{"padding-top":a+"px"})};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.M.classList.add("i-amphtml-scroll-disabled")};f.resetScroll=function(){this.M.classList.remove("i-amphtml-scroll-disabled")};f.updateLightboxMode=function(){return Promise.resolve()};
f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};f.getScrollTop=function(){return this.M.scrollTop};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.M.scrollWidth};f.getScrollHeight=function(){return this.M.scrollHeight};f.getContentHeight=function(){var a=this.win.document.body.getBoundingClientRect();return a.height+a.top+this.getScrollTop()};
f.getLayoutRect=function(a,b,c){a=a.getBoundingClientRect();if(this.F)return V(a.left,a.top,a.width,a.height);c=void 0!=c?c:this.getScrollTop();b=void 0!=b?b:this.getScrollLeft();return V(Math.round(a.left+b),Math.round(a.top+c),Math.round(a.width),Math.round(a.height))};f.getRootClientRectAsync=function(){return Promise.resolve(null)};f.setScrollTop=function(a){this.M.scrollTop=a||1};f.Jb=function(a){0==this.M.scrollTop&&(this.M.scrollTop=1,a&&a.preventDefault());a&&this.Z.fire()};
f.getScrollingElement=function(){return this.M};f.getScrollingElementScrollsLikeViewport=function(){return!1};function Yl(a,b,c){var d=this;this.ampdoc=a;this.Ma=this.ampdoc.win.document;this.j=b;this.h=c;this.pa=this.T=this.Qb=null;this.ie=!1;this.Ta=null;this.K=Number(c.getParam("paddingTop")||0);this.nc=0;this.S=Q(this.ampdoc.win);this.A=le(this.ampdoc.win);this.je=!1;this.Jf=0;this.Qe=new W;this.Z=new W;this.Y=new W;this.ce=this.Xb=void 0;(this.F=L(this.ampdoc.win,"layers"))&&Sl(this.ampdoc,this.j.getScrollingElement(),this.j.getScrollingElementScrollsLikeViewport());this.ga=new vl(this.ampdoc,this.A,
this.j.getBorderTop(),this.K,this.j.requiresFixedLayerTransfer());this.ampdoc.whenReady().then(function(){return d.ga.setup()});this.h.onMessage("viewport",this.wh.bind(this));this.h.onMessage("scroll",this.yh.bind(this));this.h.onMessage("disableScroll",this.ug.bind(this));this.j.updatePaddingTop(this.K);this.j.onScroll(this.lh.bind(this));this.j.onResize(this.Hf.bind(this));this.onScroll(this.mh.bind(this));this.ka=!1;this.h.onVisibilityChanged(this.Uf.bind(this));this.Uf();this.ampdoc.isSingleDoc()&&
this.Ma.documentElement.classList.add("i-amphtml-singledoc");c.isEmbedded()?this.Ma.documentElement.classList.add("i-amphtml-embedded"):this.Ma.documentElement.classList.add("i-amphtml-standalone");Cb(this.ampdoc.win)&&this.Ma.documentElement.classList.add("i-amphtml-iframed");"1"===c.getParam("webview")&&this.Ma.documentElement.classList.add("i-amphtml-webview");Cb(this.ampdoc.win)&&"scrollRestoration"in this.ampdoc.win.history&&(this.ampdoc.win.history.scrollRestoration="manual")}f=Yl.prototype;
f.dispose=function(){this.j.disconnect()};f.ensureReadyForElements=function(){this.j.ensureReadyForElements()};f.Uf=function(){var a=this.h.isVisible();a!=this.ka&&((this.ka=a)?(this.j.connect(),this.T&&this.Hf()):this.j.disconnect())};f.getPaddingTop=function(){return this.K};f.getTop=function(){return this.getScrollTop()};f.getScrollTop=function(){null==this.pa&&(this.pa=this.j.getScrollTop());return this.pa};f.getScrollLeft=function(){null==this.Ta&&(this.Ta=this.j.getScrollLeft());return this.Ta};
f.setScrollTop=function(a){this.pa=null;this.j.setScrollTop(a)};f.updatePaddingBottom=function(a){this.ampdoc.whenBodyAvailable().then(function(b){T(b,"borderBottom",a+"px solid transparent")})};f.getSize=function(){if(this.T)return this.T;this.T=this.j.getSize();if(0==this.T.width||0==this.T.height){var a=this.h.getVisibilityState();("prerender"==a||"visible"==a)&&.01>Math.random()&&E().error("Viewport","viewport has zero dimensions")}return this.T};f.getHeight=function(){return this.getSize().height};
f.getWidth=function(){return this.getSize().width};f.getScrollWidth=function(){return this.j.getScrollWidth()};f.getScrollHeight=function(){return this.j.getScrollHeight()};f.getContentHeight=function(){return this.j.getContentHeight()};f.getRect=function(){if(null==this.Qb){var a=0,b=0;this.F||(a=this.getScrollTop(),b=this.getScrollLeft());var c=this.getSize();this.Qb=V(b,a,c.width,c.height)}return this.Qb};
f.getLayoutRect=function(a){var b=this.getScrollLeft(),c=this.getScrollTop(),d=Gd(a,this.ampdoc.win);return d?(a=this.j.getLayoutRect(a,0,0),b=this.j.getLayoutRect(d,b,c),V(Math.round(a.left+b.left),Math.round(a.top+b.top),Math.round(a.width),Math.round(a.height))):this.j.getLayoutRect(a,b,c)};
f.getClientRectAsync=function(a){var b=this;if(this.F)return this.A.measurePromise(function(){return b.getLayoutRect(a)});var c=this.A.measurePromise(function(){return a.getBoundingClientRect()}),d=this.j.getRootClientRectAsync(),e=Gd(a,this.ampdoc.win);e&&(d=this.A.measurePromise(function(){return e.getBoundingClientRect()}));return Promise.all([c,d]).then(function(a){var b=a[0];return(a=a[1])?nf(b,a.left,a.top):V(Number(b.left),Number(b.top),Number(b.width),Number(b.height))})};
f.supportsPositionFixed=function(){return this.j.supportsPositionFixed()};f.isDeclaredFixed=function(a){return this.ga.isDeclaredFixed(a)};f.scrollIntoView=function(a){var b=this;return Zl(this,a).then(function(c){return $l(b,a,c)})};function $l(a,b,c){var d=a.j.getLayoutRect(b).top,e=a.F?am(a,c).then(function(a){return d+a}):Za(function(){return Math.max(0,d-a.K)});e.then(function(b){return bm(a,c,b)})}
f.animateScrollIntoView=function(a,b,c,d){b=void 0===b?500:b;c=void 0===c?"ease-in":c;d=void 0===d?"top":d;var e=this;return Zl(this,a).then(function(g){return cm(e,a,g,b,c,d)})};
function cm(a,b,c,d,e,g){var h=a.j.getLayoutRect(b);b=(c==a.j.getScrollingElement()?a.getSize():a.getLayoutRect(c)).height;var k;switch(g){case "bottom":k=-b+h.height;break;case "center":k=-b/2+h.height/2;break;default:k=0}return am(a,c).then(function(b){var g;if(a.F)g=Math.max(0,h.top+k+b);else{var l=h.top-a.K+k;g=Math.max(0,l)}if(g!=b)return dm(a,c,b,g,d,e)})}function dm(a,b,c,d,e,g){var h=Tl(c,d);return tl(b,function(c){bm(a,b,h(c))},e,g).thenAlways(function(){bm(a,b,d)})}
function Zl(a,b){return a.A.measurePromise(function(){return sb(b)||a.j.getScrollingElement()})}function bm(a,b,c){b==a.j.getScrollingElement()?a.j.setScrollTop(c):a.A.mutate(function(){b.scrollTop=c})}function am(a,b){return b==a.j.getScrollingElement()?Za(function(){return a.getScrollTop()}):a.A.measurePromise(function(){return b.scrollTop})}f.onChanged=function(a){return this.Qe.add(a)};f.onScroll=function(a){return this.Z.add(a)};f.onResize=function(a){return this.Y.add(a)};
f.enterLightboxMode=function(a){this.h.sendMessage("requestFullOverlay",{},!0);this.enterOverlayMode();this.hideFixedLayer();a&&this.maybeEnterFieLightboxMode(a);return this.j.updateLightboxMode(!0)};f.leaveLightboxMode=function(a){this.h.sendMessage("cancelFullOverlay",{},!0);this.showFixedLayer();this.leaveOverlayMode();a&&this.maybeLeaveFieLightboxMode(a);return this.j.updateLightboxMode(!1)};f.isLightboxExperimentOn=function(){return L(this.ampdoc.win,"amp-lightbox-a4a-proto")};
f.maybeEnterFieLightboxMode=function(a){var b=em(this,a);b&&(this.isLightboxExperimentOn(),b.enterFullOverlayMode())};f.maybeLeaveFieLightboxMode=function(a){(a=em(this,a))&&a.leaveFullOverlayMode()};function em(a,b){var c=Gd(b,a.ampdoc.win);return c&&c.__AMP_EMBED__}f.enterOverlayMode=function(){this.disableTouchZoom();this.disableScroll()};f.leaveOverlayMode=function(){this.resetScroll();this.restoreOriginalTouchZoom()};f.disableScroll=function(){var a=this;this.A.mutate(function(){a.j.disableScroll()})};
f.resetScroll=function(){var a=this;this.A.mutate(function(){a.j.resetScroll()})};f.resetTouchZoom=function(){var a=this,b=this.ampdoc.win.innerHeight,c=this.Ma.documentElement.clientHeight;b&&c&&b===c||this.disableTouchZoom()&&this.S.delay(function(){a.restoreOriginalTouchZoom()},50)};
f.disableTouchZoom=function(){var a=fm(this);if(!a)return!1;var b=a.content,c={"maximum-scale":"1","user-scalable":"no"};var d=Object.create(null);if(b)for(var e=b.split(/,|;/),g=0;g<e.length;g++){var h=e[g].split("="),k=h[0].trim(),h=h[1],h=(h||"").trim();k&&(d[k]=h)}var e=!1,l;for(l in c)d[l]!==c[l]&&(e=!0,void 0!==c[l]?d[l]=c[l]:delete d[l]);if(e){var b="",m;for(m in d)0<b.length&&(b+=","),b=d[m]?b+(m+"="+d[m]):b+m}d=b;return gm(this,d)};
f.restoreOriginalTouchZoom=function(){return void 0!==this.ce?gm(this,this.ce):!1};f.hasScrolled=function(){return 0<this.Jf};f.hideFixedLayer=function(){this.ga.setVisible(!1)};f.showFixedLayer=function(){this.ga.setVisible(!0)};f.updateFixedLayer=function(){this.ga.update()};f.addToFixedLayer=function(a,b){return this.ga.addElement(a,b)};f.removeFromFixedLayer=function(a){this.ga.removeElement(a)};function gm(a,b){return(a=fm(a))&&a.content!=b?(a.content=b,!0):!1}
function fm(a){if(Cb(a.ampdoc.win))return null;void 0===a.Xb&&(a.Xb=a.Ma.querySelector("meta[name=viewport]"),a.Xb&&(a.ce=a.Xb.content));return a.Xb}f.yh=function(a){var b=a.scrollTop;this.setScrollTop(b)};f.wh=function(a){var b=this,c=a.paddingTop,d=a.duration||0,e=a.curve,g=a["transient"];void 0!=c&&c!=this.K&&(this.nc=this.K,this.K=c,this.K<this.nc?(this.j.hideViewerHeader(g,this.nc),hm(this,d,e,g)):hm(this,d,e,g).then(function(){b.j.showViewerHeader(g,b.K)}))};
f.ug=function(a){a?this.disableScroll():this.resetScroll()};function hm(a,b,c,d){a.ga.updatePaddingTop(a.K,d);if(0>=b)return Promise.resolve();var e=Tl(a.nc-a.K,0);return tl(a.ampdoc.getRootNode(),function(b){b=e(b);a.ga.transformMutate("translateY("+b+"px)")},b,c).thenAlways(function(){a.ga.transformMutate(null)})}function im(a,b,c){var d=a.getSize(),e=a.getScrollTop(),g=a.getScrollLeft();a.Qe.fire({relayoutAll:b,top:e,left:g,width:d.width,height:d.height,velocity:c})}
f.lh=function(){var a=this;this.Qb=null;this.Jf++;this.Ta=this.j.getScrollLeft();var b=this.j.getScrollTop();if(!(0>b)){this.pa=b;if(!this.je){this.je=!0;var c=Date.now();this.S.delay(function(){a.A.measure(function(){a.Qf(c,b)})},36)}this.Z.fire()}};f.Qf=function(a,b){var c=this,d=this.pa=this.j.getScrollTop(),e=Date.now(),g=0;e!=a&&(g=(d-b)/(e-a));.03>Math.abs(g)?(im(this,!1,g),this.je=!1):this.S.delay(function(){return c.A.measure(c.Qf.bind(c,e,d))},20)};
f.mh=function(){var a=this;this.ie||(this.ie=!0,this.A.measure(function(){a.ie=!1;a.h.sendMessage("scroll",G({scrollTop:a.getScrollTop()}),!0)}))};f.Hf=function(){var a=this;this.Qb=null;var b=this.T;this.T=null;var c=this.getSize();this.ga.update().then(function(){var d=!b||b.width!=c.width;im(a,d,0);var e=d||b.height!=c.height;e&&a.Y.fire({relayoutAll:d,width:c.width,height:c.height})})};
function jm(a){var b=R(a),c;if(c=a.isSingleDoc()){c=a.win;var d=b.getParam("viewportType")||km;ie(c).isIos()&&d==km?!Cb(c)&&x(c).development?c=lm:(Cb(c),c=Cb(c)&&b.isEmbedded()?lm:d):c=d;c=c==lm}c=c?L(a.win,"ios-embed-sd")&&a.win.Element.prototype.attachShadow&&11<=ie(a.win).getMajorVersion()?new Wl(a.win):new Xl(a.win):new Dl(a);return new Yl(a,c,b)}var km="natural",lm="natural-ios-embed";function mm(a){var b=this;this.win=a;this.Ka=ee(this.win);this.tb=P(this.win,"documentState");this.bh=nm(this);this.I=[];this.Yd=[];this.oe=[];this.Xd=[];this.oa=!1;this.Wd=this.xc=null;this.gd=this.kh.bind(this);this.Eg=new Gh(this.win,this.gd,16);this.Ee=new Gh(this.win,this.gd,40);this.me=null;var c=this.be.bind(this);if(this.Ka.isSingleDoc())Bd(this.Ka.getAmpDoc(),"viewer").then(function(a){b.me=a;a.onVisibilityChanged(c)});else this.tb.onVisibilityChanged(c);this.gf=new Bh(this.win)}f=mm.prototype;
f.be=function(){this.oa&&om(this)};f.run=function(a,b){this.I.push(a);this.oe.push(b||void 0);this.Sa()};f.runPromise=function(a,b){this.run(a,b);if(this.xc)return this.xc;a=new I;this.Wd=a.resolve;return this.xc=a.promise};f.createTask=function(a){var b=this;return function(c){b.run(a,c)}};f.mutate=function(a){this.run({measure:void 0,mutate:a})};f.mutatePromise=function(a){return this.runPromise({measure:void 0,mutate:a})};f.measure=function(a){this.run({measure:a,mutate:void 0})};
f.measurePromise=function(a){var b=this;return new Promise(function(c){b.measure(function(){c(a())})})};f.canAnimate=function(a){return pm(this,a)};function pm(a,b){return a.tb.isHidden()?!1:a.me?a.me.isVisible():b?(a=a.Ka.getAmpDoc(b),R(a).isVisible()):!0}f.runAnim=function(a,b,c){if(!pm(this,a))return E().warn("VSYNC","Did not schedule a vsync request, because document was invisible"),!1;this.run(b,c);return!0};f.createAnimTask=function(a,b){var c=this;return function(d){return c.runAnim(a,b,d)}};
f.runAnimMutateSeries=function(a,b,c){var d=this;return pm(this,a)?new Promise(function(e,g){var h=Date.now(),k=0,l=d.createAnimTask(a,{mutate:function(a){var d=Date.now()-h;b(d,d-k,a)?c&&d>c?g(Error("timeout")):(k=d,l(a)):e()}});l({})}):Promise.reject(Error("CANCELLED"))};f.Sa=function(){this.oa||(this.oa=!0,this.gf.onScheduled(),om(this))};function om(a){pm(a)?(a.bh(a.gd),a.Ee.schedule()):a.Eg.schedule()}
f.kh=function(){this.Ee.cancel();this.oa=!1;this.gf.onRun();var a=this.I,b=this.oe,c=this.Wd;this.xc=this.Wd=null;this.I=this.Yd;this.oe=this.Xd;for(var d=0;d<a.length;d++)a[d].measure&&!qm(a[d].measure,b[d])&&(a[d].mutate=void 0);for(d=0;d<a.length;d++)a[d].mutate&&qm(a[d].mutate,b[d]);this.Yd=a;this.Xd=b;this.Yd.length=0;this.Xd.length=0;c&&c()};
function nm(a){var b=a.win.requestAnimationFrame||a.win.webkitRequestAnimationFrame;if(b)return b.bind(a.win);var c=0;return function(b){var d=Date.now(),g=Math.max(0,16-(d-c));c=d+g;a.win.setTimeout(b,g)}}function qm(a,b){try{a(b)}catch(c){return ya(c),!1}return!0};function rm(a,b){this.element=a;this.win=a.ownerDocument.defaultView||b;this.h=Ad(this.element,"viewer");this.compileCallback()}rm.prototype.compileCallback=function(){};rm.prototype.render=function(){throw Error("Not implemented");};rm.prototype.unwrap=function(a){for(var b=null,c=a.firstChild;null!=c;c=c.nextSibling)if(3==c.nodeType){if(c.textContent.trim()){b=null;break}}else if(8!=c.nodeType)if(1==c.nodeType)if(b){b=null;break}else b=c;else b=null;return b||a};
rm.prototype.viewerCanRenderTemplates=function(){return this.h.hasCapability("viewerRenderTemplate")};function sm(a){this.o=a;this.ob={};this.Nc={}}f=sm.prototype;f.renderTemplate=function(a,b){return tm(this,a).then(function(a){return a.render(b)})};f.renderTemplateArray=function(a,b){return 0==b.length?Promise.resolve([]):tm(this,a).then(function(a){return b.map(function(b){return a.render(b)})})};f.findAndRenderTemplate=function(a,b,c){return this.renderTemplate(this.findTemplate(a,c),b)};
f.findAndRenderTemplateArray=function(a,b,c){return this.renderTemplateArray(this.findTemplate(a,c),b)};f.hasTemplate=function(a,b){return!!this.maybeFindTemplate(a,b)};f.findTemplate=function(a,b){b=this.maybeFindTemplate(a,b);D().assert(b,"Template not found for %s",a);D().assert("TEMPLATE"==b.tagName,'Template element must be a "template" tag %s',b);return b};f.maybeFindTemplate=function(a,b){var c=a.getAttribute("template");return c?ib(a).getElementById(c):b?zb(a,b):zb(a,"> template")};
function tm(a,b){var c=b.__AMP_IMPL_;if(c)return Promise.resolve(c);var c=D().assert(b.getAttribute("type"),"Type must be specified: %s",b),d=b.__AMP_WAIT_;if(d)return d;d=um(a,c).then(function(c){var d=b.__AMP_IMPL_=new c(b,a.o);delete b.__AMP_WAIT_;return d});return b.__AMP_WAIT_=d}function um(a,b){if(a.ob[b])return a.ob[b];var c=new I,d=c.promise,c=c.resolve;a.ob[b]=d;a.Nc[b]=c;return d}f.unregisterTemplate=function(a){delete this.ob[a];delete this.Nc[a]};function vm(a){if(!a.hasAttribute("src")&&0=="srcset"in a){var b=a.getAttribute("srcset"),c=/\S+/.exec(b);if(null!=c){var d=c[0];a.setAttribute("src",d)}}};var wm="alt title referrerpolicy aria-label aria-describedby aria-labelledby srcset src sizes".split(" ");function xm(a){Zi.call(this,a);this.Af=this.Zb=!0;this.Pc=this.Qc=this.O=null}p(xm,Zi);f=xm.prototype;f.mutatedAttributesCallback=function(a){if(this.O){var b=wm.filter(function(b){return void 0!==a[b]});this.propagateAttributes(b,this.O,!0);vm(this.O)}};
f.preconnectCallback=function(a){var b=this.element.getAttribute("src");b?this.preconnect.url(b,a):(b=this.element.getAttribute("srcset"))&&(b=/\S+/.exec(b))&&this.preconnect.url(b[0],a)};f.firstAttachedCallback=function(){this.element.hasAttribute("noprerender")&&(this.Af=!1)};f.isLayoutSupported=function(a){return Jf(a)};
f.jc=function(){this.O||(this.Zb=!this.element.hasAttribute("fallback"),this.element.hasAttribute("i-amphtml-ssr")&&(this.O=this.element.querySelector("img")),this.O=this.O||new Image,this.O.setAttribute("decoding","async"),this.element.id&&this.O.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error("AMP-IMG","Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying <img> element.")),
this.propagateAttributes(wm,this.O),vm(this.O),this.applyFillContent(this.O,!0),this.element.appendChild(this.O))};f.prerenderAllowed=function(){return this.Af};f.reconstructWhenReparented=function(){return!1};f.layoutCallback=function(){var a=this;this.jc();var b=this.O;this.Qc=re(b,"load",function(){return ym(a)});this.Pc=re(b,"error",function(){return zm(a)});return 0>=this.getLayoutWidth()?Promise.resolve():this.loadPromise(b)};
f.unlayoutCallback=function(){this.Pc&&(this.Pc(),this.Pc=null);this.Qc&&(this.Qc(),this.Qc=null);return!0};f.firstLayoutCompleted=function(){var a=this.getPlaceholder();a&&a.classList.contains("i-amphtml-blurry-placeholder")&&L(this.win,"blurry-placeholder")?Ge(a,{opacity:0}):this.togglePlaceholder(!1)};function ym(a){!a.Zb&&a.O.classList.contains("i-amphtml-ghost")&&a.getVsync().mutate(function(){a.O.classList.remove("i-amphtml-ghost");a.toggleFallback(!1)})}
function zm(a){a.Zb&&(a.getVsync().mutate(function(){a.O.classList.add("i-amphtml-ghost");a.toggleFallback(!0);a.togglePlaceholder(!1)}),a.Zb=!1)};function Am(a){Zi.apply(this,arguments)}p(Am,Zi);Am.prototype.isLayoutSupported=function(a){return"container"==a||Jf(a)};Am.prototype.buildCallback=function(){if("container"!=this.getLayout()){var a=this.win.document.createElement("div");this.applyFillContent(a);this.getRealChildNodes().forEach(function(b){a.appendChild(b)});this.element.appendChild(a)}};Am.prototype.prerenderAllowed=function(){return!0};function Bm(a){Zi.call(this,a);this.pe=null}p(Bm,Zi);Bm.prototype.isLayoutSupported=function(){return!0};
Bm.prototype.buildCallback=function(){this.element.setAttribute("aria-hidden","true");(this.Fc=this.element.getAttribute("referrerpolicy"))&&D().assert("no-referrer"==this.Fc,'amp-pixel: invalid "referrerpolicy" value "'+this.Fc+'". Only "no-referrer" is supported');this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")?E().info("amp-pixel","inabox img already present"):R(this.getAmpDoc()).whenFirstVisible().then(this.uh.bind(this))};
Bm.prototype.uh=function(){var a=this;if(this.pe)return E().error("amp-pixel","duplicate pixel"),this.pe;this.pe=Q(this.win).promise(1).then(function(){var b=a.element.getAttribute("src");if(b)return ke(a.element).expandUrlAsync(Cm(b)).then(function(b){var c=a.win,e=a.Fc;e&&"no-referrer"!==e&&D().error("pixel","Unsupported referrerPolicy: "+e);if("no-referrer"===e)if("referrerPolicy"in Image.prototype)c=Fh(c,b,!0);else{var g=c.document,e=G({src:"about:blank",style:"display:none"}),g=g.createElement("iframe"),
h;for(h in e)g.setAttribute(h,e[h]);c.document.body.appendChild(g);Fh(g.contentWindow,b);c=g}else c=Fh(c,b);var k=c;E().info("amp-pixel","pixel triggered: ",b);return k})})};function Cm(a){D().assert(/^(https\:\/\/|\/\/)/i.test(a),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+a);return a};var Dm=["amp-ad","amp-embed","amp-video"],Em=["amp-mustache"];function Fm(a){this.win=a;this.Ka=ee(a);this.dc={};this.bb=null}f=Fm.prototype;f.registerExtension=function(a,b,c){var d=Gm(this,a,!0);try{this.bb=a,b(c,c._),d.loaded=!0,d.resolve&&d.resolve(d.extension)}catch(e){throw d.error=e,d.reject&&d.reject(e),e;}finally{this.bb=null}};f.waitForExtension=function(a,b,c){return Q(a).timeoutPromise(c||8E3,Hm(Gm(this,b,!1)),"Render timeout waiting for extension "+b+" to be load.")};
f.preloadExtension=function(a,b){"amp-embed"==a&&(a="amp-ad");var c=Gm(this,a,!1),d;c.loaded||c.error?d=!1:(void 0===c.scriptPresent&&(c.scriptPresent=!!this.win.document.head.querySelector('[custom-element="'+a+'"]')),d=!c.scriptPresent);if(d){d=b;b=this.win.document.createElement("script");b.async=!0;cb(a,"_")?d="":b.setAttribute(0<=Em.indexOf(a)?"custom-template":"custom-element",a);b.setAttribute("data-script",a);b.setAttribute("i-amphtml-inserted","");var e;e=sc.cdn;var g=x().rtvVersion;null==
d&&(d="0.1");b.src=e+"/rtv/"+g+"/v0/"+a+(d?"-"+d:"")+".js";this.win.document.head.appendChild(b);c.scriptPresent=!0}return Hm(c)};f.installExtensionForDoc=function(a,b,c){var d=this,e=a.getRootNode(),g=e.__AMP_EXT_LDR;g||(g=e.__AMP_EXT_LDR=F());if(g[b])return g[b];wj(a.win,b);return g[b]=this.preloadExtension(b,c).then(function(){return Im(d,a,b)})};
f.reloadExtension=function(a,b){this.dc[a]&&delete this.dc[a];b.removeAttribute("custom-element");b.setAttribute("i-amphtml-loaded-new-version",a);var c=b.src.match(/^(.*)\/(.*)-([0-9.]+)\.js$/i),d={extensionId:c?c[2]:void 0,extensionVersion:c?c[3]:void 0};return this.preloadExtension(a,d.extensionVersion)};f.loadElementClass=function(a){return this.preloadExtension(a).then(function(b){return b.elements[a].implementationClass})};
f.addElement=function(a,b,c){Jm(this,a).extension.elements[a]={implementationClass:b,css:c};this.addDocFactory(function(d){Km(d,a,b,c)})};function Km(a,b,c,d){d?Oe(a,d,function(){Lm(a.win,b,c)},!1,b):Lm(a.win,b,c)}function Lm(a,b,c){tj(a,b,c);M(a,b,Mm)}f.addService=function(a,b){Jm(this).extension.services.push(a);this.addDocFactory(function(c){N(c,a,b,!0)})};
f.addDocFactory=function(a,b){var c=Jm(this,b);c.docFactories.push(a);if(this.bb&&(this.Ka.isSingleDoc()||this.Ka.hasAmpDocShell())){var d=this.Ka.getAmpDoc(this.win.document);(d.declaresExtension(this.bb)||c.auto)&&a(d)}};f.installExtensionsInDoc=function(a,b){var c=this,d=[];b.forEach(function(b){d.push(Im(c,a,b))});return Promise.all(d)};
function Im(a,b,c){var d=Gm(a,c,!1);return Hm(d).then(function(){b.declareExtension(c);d.docFactories.forEach(function(a){try{a(b)}catch(g){ya("Doc factory failed: ",g,c)}})})}
f.installExtensionsInChildWindow=function(a,b,c){var d=this,e=this.win,g=a.frameElement.ownerDocument.defaultView;Fd(a,g);Nm(g,a);Se(a.document,cssText$$module$build$css,null,!0,"amp-runtime");c&&c(a);Om(a);Pm(e,a);Qm(a);var h=[];b.forEach(function(b){Dm.includes(b)||wj(a,b);var c=d.preloadExtension(b).then(function(c){c.services.forEach(function(b){Wd(a,b)});var d=null,e={},g;for(g in c.elements){e.elementName=g;e.elementDef=c.elements[e.elementName];var h=(new Promise(function(c){return function(d){c.elementDef.css?
Se(a.document,c.elementDef.css,d,!1,b):d()}}(e))).then(function(b){return function(){tj(a,b.elementName,b.elementDef.implementationClass)}}(e));d?d.push(h):d=[h];e={elementDef:e.elementDef,elementName:e.elementName}}return d?Promise.all(d).then(function(){return c}):c});h.push(c)});return Promise.all(h)};
function Gm(a,b,c){var d=a.dc[b];d||(d={extension:{elements:{},services:[]},auto:c,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},a.dc[b]=d);return d}function Jm(a,b){a.bb||E().error("extensions","unknown extension for ",b);return Gm(a,a.bb||"_UNKNOWN_",!0)}
function Hm(a){if(!a.promise)if(a.loaded)a.promise=Promise.resolve(a.extension);else if(a.error)a.promise=Promise.reject(a.error);else{var b=new I;a.promise=b.promise;a.resolve=b.resolve;a.reject=b.reject}return a.promise}function Pm(a,b){var c=sj(a)["amp-img"];uj(b,"amp-img",c||bj);a=sj(a)["amp-pixel"];uj(b,"amp-pixel",a||bj)}function Qm(a){Dm.forEach(function(b){wj(a,b)})}function Nm(a,b){Ya(b);nd(b);L(a,"custom-elements-v1")?Ta(b,function(){}):od(b)}
function Om(a){Wd(a,"url");Wd(a,"action");Wd(a,"standard-actions");Wd(a,"navigation");Wd(a,"timer")}function Mm(){return{}};var Rm=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i,Sm=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/];
function Tm(a,b){var c=this;this.ampdoc=a;this.win=a.win;this.Cb=Cb(this.win);this.tb=P(this.win,"documentState");this.ma=!0;this.de=!1;this.Zf=this.Uc="visible";this.Ga=1;this.Vd=F();this.tc=F();this.If=new W;this.Yb=new W;this.Le=new W;this.uc=this.jb=null;this.kb=[];this.L={};this.yb={};this.lf=this.Ea=this.zc=this.yc=null;a=new I;this.Ah=a.promise;this.Bh=a.resolve;b?Object.assign(this.L,b):(this.win.name&&0==this.win.name.indexOf("__AMP__")&&Um(this.win.name.substring(7),this.L),this.win.location.hash&&
(Um(this.win.location.hash,this.yb),Object.assign(this.L,this.yb)));this.ma=!parseInt(this.L.off,10);this.de=!(!parseInt(this.L.history,10)&&!this.de);Vm(this,this.L.visibilityState);this.Ga=parseInt(this.L.prerenderSize,10)||this.Ga;this.Bb=null;this.Mg=Yc(K(this.ampdoc.win.location.href));this.sd=this.isVisible();this.tb.onVisibilityChanged(this.Ef.bind(this));var d=new I;this.Sg=d.resolve;this.Pa=Wm(this,d.promise);this.ue=this.Md=null;this.Oc=this.isEmbedded()&&"referrer"in this.L&&!1!==Xm(this)?
this.L.referrer:this.win.document.referrer;this.dh=new Promise(function(a){c.isEmbedded()&&"referrer"in c.L?c.isTrustedViewer().then(function(b){b?a(c.L.referrer):(a(c.win.document.referrer),c.Oc!=c.win.document.referrer&&(E().expectedError("Viewer","Untrusted viewer referrer override: "+c.Oc+" at "+c.uc),c.Oc=c.win.document.referrer))}):a(c.win.document.referrer)});this.Jc=Xc(this.win.location.href||"");this.zh=new Promise(function(a){var b=c.L.viewerUrl;c.isEmbedded()&&b?c.isTrustedViewer().then(function(d){d?
c.Jc=b:E().error("Viewer","Untrusted viewer url override: "+b+" at "+c.uc);a(c.Jc)}):a(c.Jc)});this.L.click&&(a=Xc(this.win.location.href),a!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.replaceState({},"",a),delete this.yb.click));this.Ef();Ym(this);this.whenFirstVisible().then(function(){c.maybeUpdateFragmentForCct()})}
function Wm(a,b){var c=!(!(a.Cb&&!a.win.AMP_TEST_IFRAME&&(a.L.origin||a.L.visibilityState||-1!=a.win.location.search.indexOf("amp_js_v"))||a.isWebviewEmbedded()||a.isCctEmbedded())&&a.ampdoc.isSingleDoc());return c?Q(a.win).timeoutPromise(2E4,b).catch(function(a){a=Zm(a);cf(a);throw a;}):null}function Ym(a){if(a.isVisible()){var b=Date.now();a.Ea||(a.Ea=b);a.lf=b;a.sd=!0;a.Bh();a.zc&&(a.zc(),a.zc=null,a.yc=null)}a.Yb.fire()}f=Tm.prototype;f.getParam=function(a){return this.L[a]};
f.hasCapability=function(a){var b=this.L.cap;return b?-1!=b.split(",").indexOf(a):!1};f.isEmbedded=function(){return!!this.Pa};f.isWebviewEmbedded=function(){return!this.Cb&&"1"==this.L.webview};f.isCctEmbedded=function(){if(null!=this.Bb)return this.Bb;this.Bb=!1;if(!this.Cb){var a=r(this.win.location.search);this.Bb="1"===a.amp_gsa&&cb(a.amp_js_v||"","a")}return this.Bb};f.isProxyOrigin=function(){return this.Mg};
f.maybeUpdateFragmentForCct=function(){if(this.isCctEmbedded()&&this.win.history.replaceState){var a=cd(this.win.location.href),b=fe(this.ampdoc).canonicalUrl,c=cd(b);$m(a,c)&&(this.yb.ampshare=b,this.win.history.replaceState({},"","#"+Uc(this.yb)))}};function $m(a,b){function c(a){return 2<a.split(".").length?a.replace(Rm,"$1"):a}return c(a)==c(b)}f.isRuntimeOn=function(){return this.ma};f.toggleRuntime=function(){this.ma=!this.ma;this.If.fire(this.ma)};f.onRuntimeState=function(a){return this.If.add(a)};
f.isOvertakeHistory=function(){return this.de};f.getVisibilityState=function(){return this.Uc};f.Ef=function(){Vm(this,this.Zf)};function Vm(a,b){if(b){var c=a.Uc;b=E().assertEnumValue(xj,b,"VisibilityState");"hidden"===b&&(b=a.sd?"inactive":"prerender");a.Zf=b;!a.tb.isHidden()||"visible"!==b&&"paused"!==b||(b="hidden");a.Uc=b;c!==b&&Ym(a)}}f.isVisible=function(){return"visible"==this.getVisibilityState()};f.hasBeenVisible=function(){return this.sd};f.whenFirstVisible=function(){return this.Ah};
f.whenNextVisible=function(){if(this.isVisible())return Promise.resolve();if(this.yc)return this.yc;var a=new I;this.zc=a.resolve;return this.yc=a.promise};f.getFirstVisibleTime=function(){return this.Ea};f.getLastVisibleTime=function(){return this.lf};f.getPrerenderSize=function(){return this.Ga};f.getResolvedViewerUrl=function(){return this.Jc};f.getViewerUrl=function(){return this.zh};f.maybeGetMessagingOrigin=function(){return this.uc};f.getUnconfirmedReferrerUrl=function(){return this.Oc};
f.getReferrerUrl=function(){return this.dh};f.isTrustedViewer=function(){if(!this.Md){var a=Xm(this);this.Md=void 0!==a?Promise.resolve(a):this.Pa.then(function(a){return a?an(a):!1})}return this.Md};function Xm(a){if(!a.isEmbedded())return!1;if(a.win.location.ancestorOrigins&&!a.isWebviewEmbedded()&&!a.isCctEmbedded())return 0<a.win.location.ancestorOrigins.length&&an(a.win.location.ancestorOrigins[0])}
f.getViewerOrigin=function(){if(!this.ue){var a;this.isEmbedded()?this.win.location.ancestorOrigins&&0<this.win.location.ancestorOrigins.length&&(a=this.win.location.ancestorOrigins[0]):a="";this.ue=void 0!==a?Promise.resolve(a):Q(this.win).timeoutPromise(1E3,this.Pa).catch(function(){return""})}return this.ue};function an(a){var b=K(a);a=b.protocol;return"x-thread:"==a?!0:"https:"!=a?!1:Sm.some(function(a){return a.test(b.hostname)})}f.onVisibilityChanged=function(a){return this.Yb.add(a)};
f.onMessage=function(a,b){var c=this.Vd[a];c||(c=new W,this.Vd[a]=c);return c.add(b)};f.onMessageRespond=function(a,b){var c=this;this.tc[a]=b;return function(){c.tc[a]===b&&delete c.tc[a]}};f.receiveMessage=function(a,b){if("visibilitychange"==a)return void 0!==b.prerenderSize&&(this.Ga=b.prerenderSize),Vm(this,b.state),Promise.resolve();if("broadcast"==a)return this.Le.fire(b),Promise.resolve();var c=this.Vd[a];c&&c.fire(b);if(a=this.tc[a])return a(b);if(c)return Promise.resolve()};
f.setMessageDeliverer=function(a,b){var c=this;if(this.jb)throw Error("message channel can only be initialized once");if(null==b)throw Error("message channel must have an origin");this.jb=a;this.uc=b;this.Sg(b);0<this.kb.length&&(b=this.kb.slice(0),this.kb=[],b.forEach(function(a){var b=c.jb(a.eventType,a.data,a.awaitResponse);a.awaitResponse&&a.responseResolver(b)}))};f.sendMessage=function(a,b,c){c=void 0===c?!1:c;bn(this,a,b,c,!1)};
f.sendMessageAwaitResponse=function(a,b,c){return bn(this,a,b,void 0===c?!1:c,!0)};
function bn(a,b,c,d,e){if(a.jb)return Za(function(){return a.jb(b,c,e)});if(!a.Pa)return e?Promise.reject(Zm()):Promise.resolve();if(!d)return a.Pa.then(function(){return a.jb(b,c,e)});var g=Af(a.kb,function(a){return a.eventType==b});if(-1!=g)d=a.kb.splice(g,1)[0],d.data=c,d.awaitResponse=d.awaitResponse||e;else{d=new I;var h=d.resolve;d={eventType:b,data:c,awaitResponse:e,responsePromise:d.promise,responseResolver:h}}a.kb.push(d);return d.responsePromise}
f.broadcast=function(a){return this.Pa?bn(this,"broadcast",a,!1,!1).then(function(){return!0},function(){return!1}):Promise.resolve(!1)};f.onBroadcast=function(a){return this.Le.add(a)};f.whenMessagingReady=function(){return this.Pa};
f.replaceUrl=function(a){if(a&&this.ampdoc.isSingleDoc()&&this.win.history.replaceState)try{var b=K(this.win.location.href),c=K(Xc(a)+this.win.location.hash);b.origin==c.origin&&cd(b)==cd(c)&&(this.win.history.replaceState({},"",c.href),this.win.location.originalHref=b.href)}catch(d){E().error("Viewer","replaceUrl failed",d)}};function Um(a,b){a=r(a);for(var c in a)b[c]=a[c]}
function Zm(a){return a instanceof Error?(a=wa(a),a.message="No messaging channel: "+a.message,a):Error("No messaging channel: "+a)}function cn(a,b){N(a,"viewer",function(){return new Tm(a,b)},!0)};(function(){Aa=pa;E();D()})();(function(a){self.reportError=a})(function(a,b,c){cf(b,c);b&&a&&ma(b.message)&&!(0<=b.message.indexOf("\u200b\u200b\u200b\u200b"))&&L(a,"user-error-reporting")&&(b={errorName:b.name,errorMessage:b.message},a=ee(a).getAmpDoc().getRootNode(),Ye(a.documentElement||a.body||a,b))}.bind(null,self));
function dn(a){M(a,"crypto",Bj);M(a,"batched-xhr",Aj);M(a,"documentState",Ij);M(a,"platform",Zj);M(a,"templates",sm);M(a,"timer",sf);M(a,"timer",sf);M(a,"vsync",mm);M(a,"xhr",yj);M(a,"input",Yj)}
function en(a){var b=self;function c(a){function c(){g.then(function(){"function"==typeof a?a(b.AMP,b.AMP._):e.registerExtension(a.n,a.f,b.AMP)})}"function"!=typeof a&&a.i?fn(e,a).then(function(){return gn(b,a,c)}):gn(b,a,c)}if(b.AMP_TAG)Promise.resolve();else{b.AMP_TAG=!0;var d=b.AMP||[];M(b,"extensions",Fm);var e=ge(b);dn(b);Qm(b);b.AMP={win:b,_:b.AMP?b.AMP._:void 0};b.AMP.config=tc;b.AMP.BaseElement=Zi;b.AMP.BaseTemplate=rm;b.AMP.registerElement=e.addElement.bind(e);b.AMP.registerTemplate=function(a,
c){var d=P(b,"templates");if(d.ob[a]){var e=d.Nc[a];D().assert(e,"Duplicate template type: %s",a);delete d.Nc[a];e(c)}else d.ob[a]=Promise.resolve(c)};b.AMP.registerServiceForDoc=e.addService.bind(e);b.AMP.isExperimentOn=L.bind(null,b);b.AMP.toggleExperiment=kd.bind(null,b);b.AMP.setLogLevel=oa.bind(null);b.AMP.setTickFunction=function(){};var g=a(b,e);for(a=0;a<d.length;a++){var h=d[a];if(hn(b,h))d.splice(a--,1);else if("function"==typeof h||"high"==h.p){try{c(h)}catch(k){E().error("runtime","Extension failed: ",
k,h.n)}d.splice(a--,1)}}jn(b,function(){b.AMP.push=function(a){hn(b,a)||c(a)};for(var a=0;a<d.length;a++){var e=d[a];if(!hn(b,e))try{c(e)}catch(m){E().error("runtime","Extension failed: ",m,e.n)}}d.length=0});b.AMP.push||(b.AMP.push=d.push.bind(d));ie(b).isIos()&&T(b.document.documentElement,"cursor","pointer")}}
function fn(a,b){if(Array.isArray(b.i))return b=b.i.map(function(b){return a.preloadExtension(b)}),Promise.all(b);if("string"==typeof b.i)return a.preloadExtension(b.i);E().error("RUNTIME","dependency is neither an array or a string",b.i);return Promise.resolve()}function gn(a,b,c){"function"==typeof b||"high"==b.p?Promise.resolve().then(c):(c.displayName=b.n,Jh(a.document,c))}
function kn(){en(function(a){var b=ee(a).getAmpDoc();a.AMP.ampdoc=b;var c=R(a.document);a.AMP.viewer=c;x().development&&(a.AMP.toggleRuntime=c.toggleRuntime.bind(c),a.AMP.resources=je(a.document));c=me(a.document);a.AMP.viewport={};a.AMP.viewport.getScrollLeft=c.getScrollLeft.bind(c);a.AMP.viewport.getScrollWidth=c.getScrollWidth.bind(c);a.AMP.viewport.getWidth=c.getWidth.bind(c);return fb(a.document).then(function(){vj(b)})})}
function hn(a,b){if(!L(a,"version-locking")||"function"==typeof b||"1810052256480"==b.v)return!1;var c=a.document.head.querySelector('[custom-element="'+b.n+'"]:not([i-amphtml-inserted])');if(!c)return!1;ge(a).reloadExtension(b.n,c);return!0}function jn(a,b){L(a,"pump-early-frame")?a.document.body?0<Ne(a).length?b():Q(a).delay(b,1):b():b()};function ln(){var a=self;vf(a.document,function(){return mn(a)})}
function mn(a){var b=0,c=a.performance;c&&c.timing&&c.timing.responseStart&&(b=Date.now()-c.timing.responseStart);var d=Math.max(1,250-b);a.setTimeout(function(){nn(a);var b=a.document.styleSheets;if(b){for(var c=a.document.querySelectorAll('link[rel~="stylesheet"]:not([href^="'+String(sc.cdn).replace($a,ab)+'"])'),h=[],k=0;k<c.length;k++){for(var l=c[k],m=!1,n=0;n<b.length;n++)if(b[n].ownerNode==l){m=!0;break}m||h.push(l)}k={};for(l=0;l<h.length;k={na:k.na,media:k.media},l++)k.na=h[l],k.media=k.na.media||
"all",k.na.media="not-matching",k.na.onload=function(b){return function(){b.na.media=b.media;nn(a)}}(k),k.na.setAttribute("i-amphtml-timeout",d),k.na.parentNode.insertBefore(k.na,k.na.nextSibling)}},d)}function nn(a){if(L(a,"font-display-swap")&&(a=a.document,a.fonts&&a.fonts.values))for(var b=a.fonts.values();a=b.next();){var c=a.value;if(!c)break;"loading"==c.status&&"display"in c&&"auto"==c.display&&(c.display="swap")}};function on(){var a=self,b=a.location.href;if(!cb(b,"about:")){var c=!1;x().development&&(c="0"!==r(a.location.originalHash||a.location.hash).validate);c?pn(a.document,sc.cdn+"/v0/validator.js").then(function(){amp.validator.validateUrlAndLog(b,a.document,x().filter)}):x().examiner&&pn(a.document,sc.cdn+"/examiner.js")}}function pn(a,b){var c=a.createElement("script");c.src=b;b=ue(c).then(function(){a.head.removeChild(c)},function(){});a.head.appendChild(c);return b};function qn(a){this.o=a;this.jh=x().rtvVersion||null;this.yd=a.parent;this.ke=null;this.Ug=1;this.Ib=F();rn(this)}f=qn.prototype;f.getData=function(a,b,c){var d=this.Ug++,e=this.registerCallback(a+"-result",function(a){a.messageId===d&&(e(),c(a.content))}),g={};g.payload=b;g.messageId=d;this.sendMessage(a,g)};f.makeRequest=function(a,b,c){b=this.registerCallback(b,c);this.sendMessage(a);return b};
f.requestOnce=function(a,b,c){var d=this.registerCallback(b,function(a){d();c(a)});this.sendMessage(a);return d};f.registerCallback=function(a,b){var c=a;c in this.Ib||(this.Ib[c]=new W);return this.Ib[c].add(b)};f.sendMessage=function(a,b){this.yd.postMessage(rf(a,this.ke,b,this.jh),"*")};
function rn(a){qf(a.o,function(b){if(b.source==a.yd){var c;b=b.data;if("string"==typeof b&&0==b.indexOf("amp-")&&-1!=b.indexOf("{")){var d=b.indexOf("{");try{c=Fb(b.substr(d))}catch(e){E().error("MESSAGING","Failed to parse message: "+b,e),c=null}}else c=null;c&&c.sentinel==a.ke&&(b=c.type,b in a.Ib&&a.Ib[b].fire(c))}})}f.setHostWindow=function(a){this.yd=a};f.setSentinel=function(a){this.ke=a};function sn(a){var b=new qn(a),c=Gb(a.name),d=null;c&&c._context&&(d=c._context.sentinel);b.setSentinel(d||String(a.Math.random()).substr(2));b.setHostWindow(a.top);return b};function tn(a,b){return le(a).runPromise({measure:function(b){b.width=a.innerWidth;b.height=a.innerHeight},mutate:function(a){Ge(b,{background:"transparent",left:"50%",top:"50%",right:"auto",bottom:"auto",position:"absolute",height:a.height+"px",width:a.width+"px","margin-top":-a.height/2+"px","margin-left":-a.width/2+"px"})}},{})}
function un(a,b){return le(a).mutatePromise(function(){for(var a="position left top right bottom width height margin-left margin-top".split(" "),d=0;d<a.length;d++)T(b,a[d],null)})}function vn(a){var b=this;this.win=a;this.Z=new W;this.Y=new W;var c=a.innerWidth,d=a.innerHeight;this.fa=V(0,0,c,d);this.ac=V(0,d+1,c,d);this.ic=P(a,"iframeMessagingClient");this.Ic=null;this.zg=of(this.win,function(){b.Z.fire()});this.F=L(this.win,"layers")}f=vn.prototype;f.connect=function(){wn(this)};
function wn(a){a.ic.makeRequest("send-positions","position",function(b){var c=a.fa;a.fa=b.viewportRect;xn(a,b.targetRect);b=a.fa;var d=c;b.width==d.width&&b.height==d.height||a.Y.fire();b=a.fa;d=c;b.left==d.left&&b.top==d.top||a.zg()})}f.getLayoutRect=function(a){a=a.getBoundingClientRect();var b=a.left,c=a.top;this.F&&(b-=this.fa.left,c-=this.fa.top);return V(Math.round(b+this.ac.left),Math.round(c+this.ac.top),Math.round(a.width),Math.round(a.height))};f.onScroll=function(a){this.Z.add(a)};
f.onResize=function(a){this.Y.add(a)};f.getSize=function(){return{width:this.fa.width,height:this.fa.height}};f.getScrollTop=function(){return this.fa.top};f.getScrollLeft=function(){return this.fa.left};f.getScrollingElement=function(){return this.getBodyElement()};f.getScrollingElementScrollsLikeViewport=function(){return!0};f.supportsPositionFixed=function(){return!1};
function xn(a,b){if(b){var c=nf(b,a.fa.left,a.fa.top),d=c,e=a.ac;if(d.left!=e.left||d.top!=e.top||d.width!=e.width||d.height!=e.height)a.ac=c,yn(a)}}f.getChildResources=function(){return je(this.win.document).get()};function yn(a){a.getChildResources().forEach(function(a){return a.measure()})}f.updateLightboxMode=function(a){return a?zn(this):An(this)};
f.getRootClientRectAsync=function(){var a=this;this.Ic||(this.Ic=new Promise(function(b){a.ic.requestOnce("send-positions","position",function(c){a.Ic=null;b(c.targetRect)})}));return this.Ic};function zn(a){return tn(a.win,a.getBodyElement()).then(function(){return Bn(a)})}function An(a){return Cn(a).then(function(){return un(a.win,a.getBodyElement())})}
function Bn(a){return new Promise(function(b,c){var d=a.ic.makeRequest("full-overlay-frame","full-overlay-frame-response",function(e){d();e.success?(xn(a,e.boxRect),b()):c("Request to open lightbox rejected by host document")})})}function Cn(a){return new Promise(function(b){var c=a.ic.makeRequest("cancel-full-overlay-frame","cancel-full-overlay-frame-response",function(d){c();xn(a,d.boxRect);b()})})}f.getBodyElement=function(){return this.win.document.body};f.disconnect=function(){};
f.updatePaddingTop=function(){};f.hideViewerHeader=function(){};f.showViewerHeader=function(){};f.disableScroll=function(){};f.resetScroll=function(){};f.ensureReadyForElements=function(){};f.setScrollTop=function(){};f.getScrollWidth=function(){return 0};f.getScrollHeight=function(){return 0};f.getContentHeight=function(){return 0};f.getBorderTop=function(){return 0};f.requiresFixedLayerTransfer=function(){return!1};
function Dn(a){var b=new vn(a.win),c=R(a);N(a,"viewport",function(){return new Yl(a,b,c)},!0)};function En(a){var b=a.win,c=a.getRootNode();Tf(a,b,me(a).getLayoutRect(c.documentElement||c.body||c)).then(function(){b.dispatchEvent(qe(b));b.parent&&b.parent.postMessage("amp-ini-load","*")})};x(self).runtime="inabox";x(self).a4aId=function(a){var b=a.document.head.querySelector('meta[name="amp4ads-id"]');return b?b.getAttribute("content"):null}(self);var Fn;try{ff(),Li(),Fn=ee(self)}catch(a){throw Xe(self.document),a;}
Jh(self.document,function initial(){var b=Fn.getAmpDoc(self.document);M(self,"performance",Mi);var c=he(self);c.tick("is");self.document.documentElement.classList.add("i-amphtml-inabox");var d=cssText$$module$build$css+"html.i-amphtml-inabox{width:100%!important;height:100%!important}html.i-amphtml-inabox>body{position:initial!important}";Oe(b,d,function(){Jh(self.document,function(){dn(self);ln();var d=self;M(d,"iframeMessagingClient",sn.bind(null,d),!0);cn(b);Dn(b);N(b,"url",il,!0);N(b,"cid",Zg);
N(b,"documentInfo",Ej);cn(b,void 0);N(b,"viewport",jm,!0);N(b,"history",Xj);N(b,"resources",wk);Pg(b);N(b,"action",li,!0);N(b,"standard-actions",Zk,!0);hl(b);N(b,"navigation",qh,!0);Jj(b);c.coreServicesAvailable();cg();En(b)});Jh(self.document,function g(){var b=self;uj(b,"amp-img",xm);uj(b,"amp-pixel",Bm);uj(b,"amp-layout",Am)});Jh(self.document,function h(){kn()});Jh(self.document,function(){vj(b)});Jh(self.document,function k(){self.document.documentElement.addEventListener("click",zh.bind(null,
b),!0);on();Ve()});Jh(self.document,function l(){c.tick("e_is");je(b).ampInitComplete();c.flush()})},!0,"amp-runtime")});self.console&&(console.info||console.log).call(console,"Powered by AMP \u26a1 HTML \u2013 Version 1810052256480",self.location.href);self.document.documentElement.setAttribute("amp-version","1810052256480");})();
//# sourceMappingURL=amp4ads-v0.js.map
