var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); ; (self.AMP=self.AMP||[]).push({m:0,v:"2202230359001",n:"amp-iframe",ev:"0.1",l:!0,f:function(t,n){!function(){function n(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function r(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,i)}return r}function i(t){for(var i=1;it.length)&&(n=t.length);for(var r=0,i=new Array(n);r=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u;function a(){return u||(u=Promise.resolve(void 0))}var s=function(){var t=this;this.promise=new Promise((function(n,r){t.resolve=n,t.reject=r}))};function f(t,n){return(f=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,n){if(n&&("object"===l(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}var v=Array.isArray;function m(t,n){for(var r=[],i=0,e=0;e=0&&t.indexOf(n,r)==r}var p,b,g=Object.prototype;function y(t){var n=Object.create(null);return t&&Object.assign(n,t),n}function w(t,n,r,i,e,o,u,a,s,f,c){return t}function j(t){var n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;var r=t.message,i=t.stack,e=new Error(r);for(var o in t)e[o]=t[o];return e.stack=i,e}function O(t){for(var n,r=null,i="",e=o(arguments,!0);!(n=e()).done;){var u=n.value;u instanceof Error&&!r?r=j(u):(i&&(i+=" "),i+=u)}return r?i&&(r.message=i+": "+r.message):r=new Error(i),r}function x(t){var n,r;null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,t)}function S(t){var n=O.apply(null,arguments);setTimeout((function(){throw x(n),n}))}function P(t){try{for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i=0;r--){var i=t[r],e=i.target;if(!n.has(e)){n.add(e);var o=L.get(e);if(o){D.set(e,i);for(var u=0;u0?u[0]:{inlineSize:0,blockSize:0};else{var a,s,f=r.target,c=R(f),l=F.test(C(c,f).writingMode),h=f,v=h.offsetHeight,m=h.offsetWidth;l?(s=m,a=v):(a=m,s=v),o={inlineSize:a,blockSize:s}}P(n,o)}}var $=function(){function t(t){this.Gn=t,this.Zn=!1,this.Un=!1,this.Jn=this.Jn.bind(this)}var n=t.prototype;return n.updatePlaying=function(t){t!==this.Zn&&(this.Zn=t,t?(this.Un=!1,function(t,n,r){var i=t.ownerDocument.defaultView;if(i){var e=L.get(t);if(e||(e=[],L.set(t,e),_(i).observe(t)),!e.some((function(t){return t.callback===r&&1===t.type}))){e.push({type:1,callback:r});var o=D.get(t);o&&setTimeout((function(){return H(1,r,o)}))}}}(this.Gn,0,this.Jn)):function(t,n){!function(t,n,r){var i=L.get(t);if(i&&(m(i,(function(t){return t.callback===r&&1===t.type})),0==i.length)){L.delete(t),D.delete(t);var e=t.ownerDocument.defaultView;e&&_(e).unobserve(t)}}(t,0,n)}(this.Gn,this.Jn))},n.Jn=function(t){var n=t.blockSize,r=t.inlineSize>0&&n>0;if(r!==this.Un){this.Un=r;var i=this.Gn;r||i.pause()}},t}(),q=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function J(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return n}}var U=self.AMP_CONFIG||{},X=("string"==typeof U.thirdPartyFrameRegex?new RegExp(U.thirdPartyFrameRegex):U.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Y=("string"==typeof U.cdnProxyRegex?new RegExp(U.cdnProxyRegex):U.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function W(t){if(!self.document||!self.document.head)return null;if(self.location&&Y.test(self.location.origin))return null;var n=self.document.head.querySelector('meta[name="'.concat(t,'"]'));return n&&n.getAttribute("content")||null}var V={thirdParty:U.thirdPartyUrl||"https://web.archive.org/web/20220307140556/https://3p.ampproject.net",thirdPartyFrameHost:U.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:X,cdn:U.cdnUrl||W("runtime-host")||"https://web.archive.org/web/20220307140556/https://cdn.ampproject.org",cdnProxyRegex:Y,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:U.errorReportingUrl||"https://web.archive.org/web/20220307140556/https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:U.betaErrorReportingUrl||"https://web.archive.org/web/20220307140556/https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:U.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:U.geoApiUrl||W("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Z=self.__AMP_LOG;function K(t,n){throw new Error("failed to call initLogConstructor")}function Q(t){return Z.user||(Z.user=tt()),function(t,n){return n&&n.ownerDocument.defaultView!=t}(Z.user.win,t)?Z.userForEmbed||(Z.userForEmbed=tt()):Z.user}function tt(t){return K()}function nt(){return Z.dev||(Z.dev=K())}function rt(t,n,r,i,e,o,u,a,s,f,c){return t}function it(t,n,r,i,e,o,u,a,s,f,c){return Q().assert(t,n,r,i,e,o,u,a,s,f,c)}function et(t,n){return ft(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),n)}function ot(t,n){var r=st(at(t));return ht(r,n)?ft(r,n):null}function ut(t,n){return ct(st(t),n)}function at(t){return t.nodeType?(n=R(t),et(n,"ampdoc")).getAmpDoc(t):t;var n}function st(t){var n=at(t);return n.isSingleDoc()?n.win:n}function ft(t,n){rt(ht(t,n));var r=lt(t)[n];return r.obj||(rt(r.ctor),rt(r.context),r.obj=new r.ctor(r.context),rt(r.obj),r.context=null,r.resolve&&r.resolve(r.obj)),r.obj}function ct(t,n){var r=lt(t)[n];return r?r.promise?r.promise:(ft(t,n),r.promise=Promise.resolve(r.obj)):null}function lt(t){var n=t.__AMP_SERVICES;return n||(n=t.__AMP_SERVICES={}),n}function ht(t,n){var r=t.__AMP_SERVICES&&t.__AMP_SERVICES[n];return!(!r||!r.ctor)}var vt="__AMP__EXPERIMENT_TOGGLES",mt=function(t){return ft(t,"timer")},dt=function(t){return function(t,n,r,i){var e=ut(t,n);if(e)return e;var o=at(t);return o.whenExtensionsKnown().then((function(){var t=o.getExtensionVersion(r);return t?et(o.win,"extensions").waitForExtension(r,t):null})).then((function(r){return r?function(t,n){return function(t,n){var r=ct(t,n);if(r)return r;var i,e,o,u,a=lt(t);return a[n]=(e=(i=new s).promise,o=i.reject,u=i.resolve,e.catch((function(){})),{obj:null,promise:e,resolve:u,reject:o,context:null,ctor:null}),a[n].promise}(st(t),n)}(t,n):null}))}(t,"consentPolicyManager","amp-consent")},pt=function(t){return ot(t,"url")};function bt(t){return t.data}var gt,yt,wt=function(){function t(t){this.Wt=t,this.Kt=0,this.Qt=0,this.Xt=y()}var n=t.prototype;return n.has=function(t){return!!this.Xt[t]},n.get=function(t){var n=this.Xt[t];if(n)return n.access=++this.Qt,n.payload},n.put=function(t,n){this.has(t)||this.Kt++,this.Xt[t]={payload:n,access:this.Qt},this.Yt()},n.Yt=function(){if(!(this.Kt<=this.Wt)){var t,n=this.Xt,r=this.Qt+1;for(var i in n){var e=n[i].access;e=0;r--){var i=t[r];if(!i.frame.contentWindow){t.splice(r,1);var e=i.events;for(var o in e)e[o].splice(0,1/0).forEach((function(t){t(n)}))}}}function Pt(t,n,r,i,e,o){rt(t.src),rt(!t.parentNode),rt(r);var u=t.ownerDocument.defaultView;!function(t){t.listeningFors||t.addEventListener("message",(function(n){if(bt(n)){var r=function(t){return"string"==typeof t&&(t="{"==t.charAt(0)?I(t,(function(t){nt().warn("IFRAME-HELPER","Postmessage could not be parsed. Is it in a valid JSON format?",t)}))||null:M(t)?function(t){if(!M(t))return null;var n=t.indexOf("{");return w(-1!=n),I(t.substr(n),(function(n){S(new Error("MESSAGING: Failed to parse message: ".concat(t,"\n").concat(n.message)))}))}(t):null),t}(bt(n));if(r&&r.sentinel){var i=function(t,n,r,i){var e,o=Ot(t,n);if(!o)return o;for(var u=0;u-1&&l.splice(t,1),h=null,l=null,r=null}}}function Et(t,n){return n?t.getAttribute("data-amp-3p-sentinel"):"amp"}var It=function(){function t(t,n,r,i){var e=this;this.fb=t,this.Ob=r,this.xb=[],this.Pb=Pt(this.fb,n,(function(t,n,r){e.xb.some((function(t){return t.win==n}))||e.xb.push({win:n,origin:r}),i(t,n,r)}),this.Ob,this.Ob)}var n=t.prototype;return n.send=function(t,n){m(this.xb,(function(t){return!t.win.parent})),function(t,n,r,i,e){if(t.contentWindow){i.type=r,i.sentinel=Et(t,e);var o=i;e&&(o="amp-"+JSON.stringify(i));for(var u=0;u2&&void 0!==arguments[2]?arguments[2]:"",i=this.element,e=pt(i),o=e.parse(t),u=o.hostname,a=o.origin,s=o.protocol;it(e.isSecure(t)||"data:"==s,"Invalid src. Must start with https://. Found %s",i);var f=e.parse(n);return it(!this.Hb(r,"allow-same-origin")||a!=f.origin&&"data:"!=s,"Origin of must not be equal to container %s if allow-same-origin is set. See https://github.com/ampproject/amphtml/blob/main/docs/spec/amp-iframe-origin-policy.md for details.",i),it(!(d(u,".".concat(V.thirdPartyFrameHost))||d(u,".ampproject.org")),"amp-iframe does not allow embedding of frames from ampproject.*: %s",t),t},l.$b=function(){var t=this.element.getLayoutBox(),n=Math.min(600,.75*this.getViewport().getSize().height);it(t.top>=n," elements must be positioned outside the first 75% of the viewport or 600px from the top (whichever is smaller): %s Current position %s. Min: %sPositioning rules don't apply for iframes that use `placeholder`.See https://github.com/ampproject/amphtml/blob/main/extensions/amp-iframe/amp-iframe.md#iframe-with-placeholder for details.",this.element,t.top,n)},l.Hb=function(t,n){return new RegExp("\\s".concat(n,"\\s"),"i").test(" "+t+" ")},l.qb=function(t){if(t){var n,r,i=pt(this.element).parse(t),e=i.hash;return"data:"==i.protocol||e&&"#"!=e?t:(-1==(r=(n=t).indexOf("#"))?n:n.substring(0,r))+"#amp=1"}},l.Jb=function(t,n){if(t)return it(!(" "+n+" ").match(/\s+allow-same-origin\s+/i),"allow-same-origin is not allowed with the srcdoc attribute %s.",this.element),"data:text/html;charset=utf-8;base64,"+(i=t,r="undefined"!=typeof TextEncoder?(new TextEncoder).encode(i):function(t){for(var n=new Uint8Array(t.length),r=0;rr)&&!(o>i)&&r-u<=20&&i-o<=20)return!0}return!1}(t),this.Nb=this.Xb(),this.Cb=this.kb&&!function(t,n){var r=!1,i=0,e=t;do{Tt[e.tagName]?(i++,r=!1):kt(e,n)&&(r=!0),e=e.parentElement}while(e&&"BODY"!=e.tagName);return!r&&i<=1}(t,this.win)},l.Xb=function(){return r=(n=(t=this.element).getLayoutSize()).height,!(n.width>10||r>10||function(t,n){return t.closest?t.closest(".i-amphtml-overlay"):function(t,n,r){var i;for(i=t;i&&void 0!==i;i=i.parentElement)if(n(i))return i;return null}(t,(function(t){return function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!r&&r.call(t,".i-amphtml-overlay")}(t)}))}(t));var t,n,r},l.layoutCallback=function(){var t=this;if(it(!this.Cb,"amp-iframe is not used for displaying fixed ad. Please use amp-sticky-ad and amp-ad instead."),this.Tb||this.$b(),this.Fb&&it(this.getOverflowElement(),"Overflow element must be defined for resizable frames: %s",this.element),!this.iframeSrc)return a();if(this.Nb&&!this.getAmpDoc().registerSingleton(1))return console.error("Only 1 analytics/tracking iframe allowed per page. Please use amp-analytics instead or file a GitHub issue for your use case: https://github.com/ampproject/amphtml/issues/new/choose"),a();var n=this.element.ownerDocument.createElement("iframe");this.fb=n,n.classList.add("i-amphtml-fill-content"),n.name="amp_iframe"+Ft++,this.Tb&&N(n,"zIndex",-1),z(Ct,this.element,n);var r=n.getAttribute("allow")||"";return r=r.replace("autoplay","autoplay-disabled"),n.setAttribute("allow",r),function(t,n,r){var i=r||"";n.setAttribute("sandbox",i)}(this.element,n,this.Lb),n.src=this.iframeSrc,this.Nb||(this.Gb=new At(this,n)),n.onload=function(){n.readyState="complete",t.Yb(),t.Nb&&(t.iframeSrc=null,mt(t.win).promise(5e3).then((function(){A(n),t.element.setAttribute("amp-removed",""),t.fb=null})))},Pt(n,"embed-size",(function(n){t.Wb(n.height,n.width)}),void 0,void 0,!0),this.Db=function(n,r,i,e){var o=n,u=function(n){return t.Vb(n)},a=function(t){try{return u(t)}catch(t){var n,r;throw null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,t),t}},s=function(){if(void 0!==p)return p;p=!1;try{var t={get capture(){return p=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return p}();return o.addEventListener(r,a,!!s&&e),function(){null==o||o.removeEventListener(r,a,!!s&&e),u=null,o=null,a=null}}(this.win,"message",0,void 0),this.Tb&&Pt(n,"embed-ready",this.Yb.bind(this)),Pt(n,"send-consent-data",(function(n,r,i){t.Zb(r,i)})),this.ft.appendChild(n),this.loadPromise(n).then((function(){t.ft!=t.element&&mt(t.win).delay((function(){t.mutateElement((function(){t.ft.classList.add("amp-active")}))}),1e3),t.yt.updatePlaying(!0)}))},l.Vb=function(t){if(this.fb&&t.source===this.fb.contentWindow){var n=bt(t);if("string"==typeof n&&n.startsWith("pym")){var r=n.split(/xPYMx/);"height"===r[2]?this.Wb(parseInt(r[3],10),void 0):"width"===r[2]?this.Wb(void 0,parseInt(r[3],10)):Q().warn(Nt,"Unsupported Pym.js message: ".concat(n))}}},l.Zb=function(t,r){var e,o,u=this;(e=this.element,o=this.getConsentPolicy(),dt(e).then((function(t){var r={"consentMetadata":t&&t.getConsentMetadataInfo,"consentString":t&&t.getConsentStringInfo,"consentPolicyState":t&&t.whenPolicyResolved,"consentPolicySharedData":t&&t.getMergedSharedData};return t?Promise.all(Object.keys(r).map((function(i){return r[i].call(t,o||"default").then((function(t){return n({},i,t)}))}))).then((function(t){return Object.assign.apply({},t)})):r}))).then((function(n){u.Kb(t,r,i({"sentinel":"amp","type":"consent-data"},n))}))},l.Kb=function(t,n,r){t.postMessage(r,n)},l.unlayoutCallback=function(){return this.Db&&(this.Db(),this.Db=null),this.fb&&(A(this.fb),this.zb&&this.togglePlaceholder(!0),this.fb=null,this.Gb&&(this.Gb.destroy(),this.Gb=null)),this.yt.updatePlaying(!1),!0},l.getLayoutPriority=function(){return this.kb?2:this.Nb?1:t.prototype.getLayoutPriority.call(this)},l.mutatedAttributesCallback=function(t){var n=t.src;void 0!==n&&(this.iframeSrc=this.qb(n),this.fb&&(this.fb.src=this.Cs(this.iframeSrc,window.location.href,this.Lb))),this.fb&&t.title&&z(["title"],this.element,this.fb)},l.unlayoutOnPause=function(){return!0},l.Yb=function(){var t=this;this.zb&&this.getVsync().mutate((function(){t.fb&&(N(t.fb,"zIndex",0),t.togglePlaceholder(!1))}))},l.firstLayoutCompleted=function(){},l.throwIfCannotNavigate=function(){if(!this.Hb(this.Lb,"allow-top-navigation"))throw Q().createError('"AMP.navigateTo" is only allowed on when its "sandbox" attribute contains "allow-top-navigation".')},l.Wb=function(t,n){var r,i,e=this;this.Fb?t<100?this.user().error(Nt,"Ignoring embed-size request because the resize height is less than 100px. If you are using amp-iframe to display ads, consider using amp-ad instead.",this.element):(t=parseInt(t,10),isNaN(t)||(r=Math.max(t+(this.element.offsetHeight-this.fb.offsetHeight),t)),n=parseInt(n,10),isNaN(n)||(i=Math.max(n+(this.element.offsetWidth-this.fb.offsetWidth),n)),void 0!==r||void 0!==i?this.attemptChangeSize(r,i).then((function(){void 0!==r&&e.element.setAttribute("height",r),void 0!==i&&e.element.setAttribute("width",i),e.element.overflowCallback(!1,r,i)}),(function(){})):this.user().error(Nt,"Ignoring embed-size request because no width or height value is provided",this.element)):this.Bb||(this.user().error(Nt,"Ignoring embed-size request because this iframe is not resizable",this.element),this.Bb=!0)},l.Ub=function(){var t,n=this;if("iframe-messaging",t=function(t){var n,r,e,u,a;if(t[vt])return t[vt];t[vt]=y();var s=t[vt];w(s);var f=i(i({},null!==(n=t.AMP_CONFIG)&&void 0!==n?n:{}),null!==(r=t.AMP_EXP)&&void 0!==r?r:E((null===(e=t.__AMP_EXP)||void 0===e?void 0:e.textContent)||"{}"));for(var c in f){var l=f[c];"number"==typeof l&&l>=0&&l<=1&&(s[c]=Math.random()=10&&(Q().error(Nt,'Too many non-gesture-triggered "message" events; detaching event listener.'),n.win.removeEventListener("message",t)));var i,e=bt(r);try{i=E(JSON.stringify(e))}catch(t){return void Q().error(Nt,'Data from "message" event must be JSON.')}var o=function(t,n,r,i){var e={detail:r};if(Object.assign(e,void 0),"function"==typeof t.CustomEvent)return new t.CustomEvent(n,e);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(n,!!e.bubbles,!!e.cancelable,r),o}(n.win,"amp-iframe:message",{"data":i});(function(t){return ot(t,"action")})(n.element).trigger(n.element,"message",o,3)}else Q().error(Nt,'"message" received from unexpected origin: '+r.origin+". Only allowed from: "+n._b)}))}}},l.Qb=function(){if(this.getAmpDoc().getRootNode().activeElement!==this.fb)return!1;var t,n,r=this.win.document.createElement("audio");return t=r,(n=function(){return t.play()},new Promise((function(t){t(n())}))).catch((function(){})),!r.paused},l.setTargetOriginForTesting=function(t){this._b=t},s}(t.BaseElement);t.registerElement(Nt,Gt)}(); /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}}); //# sourceMappingURL=amp-iframe-0.1.js.map } /* FILE ARCHIVED ON 14:05:56 Mar 07, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 09:39:06 May 13, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 1.015 exclusion.robots: 0.074 exclusion.robots.policy: 0.062 esindex: 0.009 cdx.remote: 5.009 LoadShardBlock: 145.879 (6) PetaboxLoader3.datanode: 118.803 (7) load_resource: 230.592 PetaboxLoader3.resolve: 202.98 */