Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ampproject/amp-facebook

Package Overview
Dependencies
Maintainers
16
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampproject/amp-facebook - npm Package Compare versions

Comparing version 1.2109082106.0 to 1.2109100544.0

2

dist/component-preact.js
;
var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return a}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("preact")),preactDOM=__toModule(require("preact")),hooks=__toModule(require("preact/hooks"));function createElement2(e,t,r){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,t){return hooks.useMemo(e,t)}function useCallback2(e,t){return hooks.useCallback(e,t)}function useImperativeHandle2(e,t,r){return hooks.useImperativeHandle(e,t,r)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}function _createForOfIteratorHelperLoose(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var t=Object.create(null);return e&&Object.assign(t,e),t}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,t){var r=MAP[e]||0,n=MAP[t]||0,o=Math.max(r,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,c=e.contentClassName,l=e.contentProps,u=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,m=void 0!==_&&_,h=e.size,y=void 0!==h&&h,v=e.style,g=e.wrapperClassName,E=e.wrapperStyle,b=(y?4:0)+(p?2:0)+(m?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:t,class:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},v),E),{},{contain:CONTAIN[b]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:u,class:c,style:_objectSpread2(_objectSpread2({},y&&SIZE_CONTENT_STYLE),{},{"overflow":m?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,c=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:t,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),c)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var t=useRef2(null);return t.current=e,t}function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,s=e.title,c=e.matchesMessagingOrigin,l=void 0===c?DEFAULT_MATCHES_MESSAGING_ORIGIN:c,u=e.messageHandler,d=e.ready,f=void 0===d||d,p=e.loading,_=e.onReadyState,m=e.sandbox,h=e.src,y=_objectWithoutPropertiesLoose(e,_excluded3),v=useAmpContext().playable,g=useLoading(p),E=g!==Loading.UNLOAD,b=useRef2(!1),A=useValueRef(_),S=useCallback2((function(e){if(e!==b.current){b.current=e;var t=A.current;null==t||t(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[A]),O=useRef2(null);return useImperativeHandle2(t,(function(){return{get readyState(){return b.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return O.current}}}),[]),useLayoutEffect2((function(){E||S(!1)}),[E,S]),useEffect2((function(){var e=O.current;if(!v&&e){var t=e.src;canResetSrc(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),useLayoutEffect2((function(){var e=O.current;if(e&&E){var t=function(e){var t=O.current;t&&e.source==t.contentWindow&&l(e.origin)&&u(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[l,u,E,f]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},y),{},{layout:!0,size:!0,paint:!0}),E&&f&&createElement2("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:O,sandbox:m,scrolling:"no",src:h,style:_objectSpread2(_objectSpread2({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function isProd(){return!0}function isTest(e){var t;if(isProd())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function isMinified(){return!0}function version(){return"2109082106000"}function isEsm(){var e,t,r;return!isProd()&&null!==(e=null===(t=self)||void 0===t||null===(r=t.__AMP_MODE)||void 0===r?void 0:r.esm)&&void 0!==e&&e}IframeEmbed.displayName="IframeEmbed";var isArray=Array.isArray;function remove(e,t){for(var r=[],n=0,o=0;o<e.length;o++){var a=e[o];t(a,o,e)?r.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),r}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(t)return t;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),s=i.shift(),c=[s];i.length;){var l=arguments[a++],u=i.shift();s+=elementStringOrPassThru(l)+u,c.push(l,u.trim())}var d=new Error(s);throw d.messageArray=remove(c,(function(e){return""!==e})),null===(r=(n=self).__AMP_REPORT_ERROR)||void 0===r||r.call(n,d),d}function assertType_(e,t,r,n,o){return isArray(o)?e(r,o.concat([t])):e(r,"".concat(o||n,": %s"),t),t}function assertString(e,t,r){return assertType_(e,t,isString(t),"String expected",r)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,t,r,n,o,a,i,s,c,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,t,r,n,o,a,i,s,c,l,u))}function devAssertString(e,t){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,t))}function duplicateErrorIfNecessary(e){var t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;var r=e.message,n=e.stack,o=new Error(r);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){for(var t,r=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(t=o()).done;){var a=t.value;a instanceof Error&&!r?r=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}return r?n&&(r.message=n+": "+r.message):r=new Error(n),r}function maybeReportError(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function rethrowAsync(e){var t=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(t),t}))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,t){try{return parseJson(e)}catch(e){return null==t||t(e),null}}var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.capacity_=e,this.size_=0,this.access_=0,this.cache_=map()}var t=e.prototype;return t.has=function(e){return!!this.cache_[e]},t.get=function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload},t.put=function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()},t.evict_=function(){if(!(this.size_<=this.capacity_)){var e,t=this.cache_,r=this.access_+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.size_--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,t){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||t?null:urlCache)}function parseUrlWithA(e,t,r){if(isEsm())return e.href="",new URL(t,e.href);if(r&&r.has(t))return r.get(t);e.href=t,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=isTest()&&Object.freeze?Object.freeze(o):o;return r&&r.put(t,a),a}function getBootstrapUrl(e){var t=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(t):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+t}function getDefaultBootstrapBaseUrl(e,t){var r=t||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(r,".html")):getDevelopmentBootstrapBaseUrl(e,r)}function getDevelopmentBootstrapBaseUrl(e,t){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(t):"current/".concat(t,".max"))+".html"}function getAdsLocalhost(e){var t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var t;if(e.crypto&&e.crypto.getRandomValues){var r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function generateSentinel(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+getRandom(e)}var _excluded4=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,t){var r=e.allow,n=void 0===r?BLOCK_SYNC_XHR:r,o=e.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,c=e.sandbox,l=void 0===c?DEFAULT_SANDBOX:c,u=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var m=useRef2(null),h=useRef2(null),y=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:a,src:u}),2),g=v[0],E=v[1],b=g.name,A=g.src,S=useRef2(null);return useLayoutEffect2((function(){var e,t,r=null===(e=m.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?getDefaultBootstrapBaseUrl(r):"about:blank";if(a)E({name:a,src:n});else if(r){S.current||(S.current=generateSentinel(r));var o=Object.assign(dict({"location":{"href":r.location.href},"sentinel":S.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);E({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":y,"attributes":i})),src:n})}}),[y,a,s,u,p,d]),useEffect2((function(){var e,t=null===(e=h.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[b]),useImperativeHandle2(t,(function(){return{get readyState(){var e;return null===(e=h.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=h.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:m,messageHandler:i,name:b,ref:h,ready:!!b,sandbox:o?void 0:l,src:A,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var t=devAssertString(e).indexOf("{");return devAssert(-1!=t),tryParseJson(devAssertString(e).substr(t),(function(t){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(t.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,s=e.href,c=e.includeCommentParent,l=e.kdSite,u=e.layout,d=e.locale,f=e.numPosts,p=e.onLoad,_=e.orderBy,m=e.refLabel,h=e.requestResize,y=e.share,v=e.showFacepile,g=e.showText,E=e.size,b=e.smallHeader,A=e.style,S=e.tabs,O=e.title,R=void 0===O?DEFAULT_TITLE:O,P=_objectWithoutPropertiesLoose(e,_excluded5),T=_slicedToArray(useState2(null),2),L=T[0],N=T[1],w=useValueRef(p),M=useCallback2((function(e){var t,r,n=null!==(t=tryParseJson(e.data))&&void 0!==t?t:deserializeMessage(e.data);if("ready"==n.action&&(null===(r=w.current)||void 0===r||r.call(w)),n.type==MessageType.EMBED_SIZE){var o=n.height;h?(h(o),N(FULL_HEIGHT)):N(o)}}),[h,w]),x=_slicedToArray(useState2(d),2),I=x[0],C=x[1];useLayoutEffect2((function(){var e,r;if(d)C(d);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&C(dashToUnderline(n.navigator.language))}}),[d,t]);var j=useMemo2((function(){return{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:s,includeCommentParent:c,"kd_site":l,layout:u,locale:I,numPosts:f,orderBy:_,ref:m,share:y,showFacepile:v,showText:g,size:E,smallHeader:b,tabs:S}}),[r,n,o,a,i,s,c,l,u,I,f,_,m,y,v,g,E,b,S]);return createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:j,ref:t,title:R},P),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:M,type:TYPE,style:L?_objectSpread2(_objectSpread2({},A),{},{height:L}):A}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return a}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("preact")),preactDOM=__toModule(require("preact")),hooks=__toModule(require("preact/hooks"));function createElement2(e,t,r){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,t){return hooks.useMemo(e,t)}function useCallback2(e,t){return hooks.useCallback(e,t)}function useImperativeHandle2(e,t,r){return hooks.useImperativeHandle(e,t,r)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}function _createForOfIteratorHelperLoose(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var t=Object.create(null);return e&&Object.assign(t,e),t}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,t){var r=MAP[e]||0,n=MAP[t]||0,o=Math.max(r,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,c=e.contentClassName,l=e.contentProps,u=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,m=void 0!==_&&_,h=e.size,y=void 0!==h&&h,v=e.style,g=e.wrapperClassName,E=e.wrapperStyle,b=(y?4:0)+(p?2:0)+(m?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:t,class:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},v),E),{},{contain:CONTAIN[b]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:u,class:c,style:_objectSpread2(_objectSpread2({},y&&SIZE_CONTENT_STYLE),{},{"overflow":m?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,c=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:t,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),c)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var t=useRef2(null);return t.current=e,t}function isProd(){return!0}function isTest(e){var t;if(isProd())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function isMinified(){return!0}function version(){return"2109100544000"}function isEsm(){var e,t,r;return!isProd()&&null!==(e=null===(t=self)||void 0===t||null===(r=t.__AMP_MODE)||void 0===r?void 0:r.esm)&&void 0!==e&&e}var isArray=Array.isArray;function remove(e,t){for(var r=[],n=0,o=0;o<e.length;o++){var a=e[o];t(a,o,e)?r.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),r}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,t){try{return parseJson(e)}catch(e){return null==t||t(e),null}}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(t)return t;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),s=i.shift(),c=[s];i.length;){var l=arguments[a++],u=i.shift();s+=elementStringOrPassThru(l)+u,c.push(l,u.trim())}var d=new Error(s);throw d.messageArray=remove(c,(function(e){return""!==e})),null===(r=(n=self).__AMP_REPORT_ERROR)||void 0===r||r.call(n,d),d}function assertType_(e,t,r,n,o){return isArray(o)?e(r,o.concat([t])):e(r,"".concat(o||n,": %s"),t),t}function assertString(e,t,r){return assertType_(e,t,isString(t),"String expected",r)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,t,r,n,o,a,i,s,c,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,t,r,n,o,a,i,s,c,l,u))}function devAssertString(e,t){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,t))}var context,viewportObservers=new WeakMap,viewportCallbacks=new WeakMap;function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,s=e.title,c=e.matchesMessagingOrigin,l=void 0===c?DEFAULT_MATCHES_MESSAGING_ORIGIN:c,u=e.messageHandler,d=e.ready,f=void 0===d||d,p=e.loading,_=e.onReadyState,m=e.sandbox,h=e.src,y=_objectWithoutPropertiesLoose(e,_excluded3),v=useAmpContext().playable,g=useLoading(p),E=g!==Loading.UNLOAD,b=useRef2(!1),A=useValueRef(_),S=useCallback2((function(e){if(e!==b.current){b.current=e;var t=A.current;null==t||t(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[A]),O=useRef2(null);return useImperativeHandle2(t,(function(){return{get readyState(){return b.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return O.current}}}),[]),useLayoutEffect2((function(){E||S(!1)}),[E,S]),useEffect2((function(){var e=O.current;if(!v&&e){var t=e.src;canResetSrc(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),useLayoutEffect2((function(){var e=O.current;if(e&&E){var t=function(e){var t=O.current;t&&e.source==t.contentWindow&&l(e.origin)&&u(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[l,u,E,f]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},y),{},{layout:!0,size:!0,paint:!0}),E&&f&&createElement2("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:O,sandbox:m,scrolling:"no",src:h,style:_objectSpread2(_objectSpread2({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function duplicateErrorIfNecessary(e){var t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;var r=e.message,n=e.stack,o=new Error(r);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){for(var t,r=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(t=o()).done;){var a=t.value;a instanceof Error&&!r?r=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}return r?n&&(r.message=n+": "+r.message):r=new Error(n),r}function maybeReportError(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function rethrowAsync(e){var t=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(t),t}))}IframeEmbed.displayName="IframeEmbed";var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.capacity_=e,this.size_=0,this.access_=0,this.cache_=map()}var t=e.prototype;return t.has=function(e){return!!this.cache_[e]},t.get=function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload},t.put=function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()},t.evict_=function(){if(!(this.size_<=this.capacity_)){var e,t=this.cache_,r=this.access_+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.size_--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,t){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||t?null:urlCache)}function parseUrlWithA(e,t,r){if(isEsm())return e.href="",new URL(t,e.href);if(r&&r.has(t))return r.get(t);e.href=t,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=isTest()&&Object.freeze?Object.freeze(o):o;return r&&r.put(t,a),a}function getBootstrapUrl(e){var t=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(t):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+t}function getDefaultBootstrapBaseUrl(e,t){var r=t||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(r,".html")):getDevelopmentBootstrapBaseUrl(e,r)}function getDevelopmentBootstrapBaseUrl(e,t){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(t):"current/".concat(t,".max"))+".html"}function getAdsLocalhost(e){var t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var t;if(e.crypto&&e.crypto.getRandomValues){var r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function generateSentinel(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+getRandom(e)}var _excluded4=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,t){var r=e.allow,n=void 0===r?BLOCK_SYNC_XHR:r,o=e.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,c=e.sandbox,l=void 0===c?DEFAULT_SANDBOX:c,u=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var m=useRef2(null),h=useRef2(null),y=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:a,src:u}),2),g=v[0],E=v[1],b=g.name,A=g.src,S=useRef2(null);return useLayoutEffect2((function(){var e,t,r=null===(e=m.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?getDefaultBootstrapBaseUrl(r):"about:blank";if(a)E({name:a,src:n});else if(r){S.current||(S.current=generateSentinel(r));var o=Object.assign(dict({"location":{"href":r.location.href},"sentinel":S.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);E({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":y,"attributes":i})),src:n})}}),[y,a,s,u,p,d]),useEffect2((function(){var e,t=null===(e=h.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[b]),useImperativeHandle2(t,(function(){return{get readyState(){var e;return null===(e=h.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=h.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:m,messageHandler:i,name:b,ref:h,ready:!!b,sandbox:o?void 0:l,src:A,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var t=devAssertString(e).indexOf("{");return devAssert(-1!=t),tryParseJson(devAssertString(e).substr(t),(function(t){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(t.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,s=e.href,c=e.includeCommentParent,l=e.kdSite,u=e.layout,d=e.locale,f=e.numPosts,p=e.onLoad,_=e.orderBy,m=e.refLabel,h=e.requestResize,y=e.share,v=e.showFacepile,g=e.showText,E=e.size,b=e.smallHeader,A=e.style,S=e.tabs,O=e.title,R=void 0===O?DEFAULT_TITLE:O,P=_objectWithoutPropertiesLoose(e,_excluded5),T=_slicedToArray(useState2(null),2),w=T[0],L=T[1],N=useValueRef(p),M=useCallback2((function(e){var t,r,n=null!==(t=tryParseJson(e.data))&&void 0!==t?t:deserializeMessage(e.data);if("ready"==n.action&&(null===(r=N.current)||void 0===r||r.call(N)),n.type==MessageType.EMBED_SIZE){var o=n.height;h?(h(o),L(FULL_HEIGHT)):L(o)}}),[h,N]),x=_slicedToArray(useState2(d),2),I=x[0],C=x[1];useLayoutEffect2((function(){var e,r;if(d)C(d);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&C(dashToUnderline(n.navigator.language))}}),[d,t]);var j=useMemo2((function(){return{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:s,includeCommentParent:c,"kd_site":l,layout:u,locale:I,numPosts:f,orderBy:_,ref:m,share:y,showFacepile:v,showText:g,size:E,smallHeader:b,tabs:S}}),[r,n,o,a,i,s,c,l,u,I,f,_,m,y,v,g,E,b,S]);return createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:j,ref:t,title:R},P),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:M,type:TYPE,style:w?_objectSpread2(_objectSpread2({},A),{},{height:w}):A}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -276,2 +276,150 @@ var __create = Object.create;

// src/core/mode/prod.js
function isProd() {
return false;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (isProd()) {
return false;
}
var win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
// src/core/mode/minified.js
function isMinified() {
return false;
}
// src/core/mode/version.js
function version() {
return "2109100544000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return false;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : false;
}
// src/core/types/array.js
var isArray = Array.isArray;
function remove(array, shouldRemove) {
var removed = [];
var index = 0;
for (var i = 0; i < array.length; i++) {
var item = array[i];
if (shouldRemove(item, i, array)) {
removed.push(item);
} else {
if (index < i) {
array[index] = item;
}
index++;
}
}
if (index < array.length) {
array.length = index;
}
return removed;
}
// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/core/types/index.js
function isElement(value) {
return (value == null ? void 0 : value.nodeType) == 1;
}
// src/core/error/message-helpers.js
function elementStringOrPassThru(val) {
if (isElement(val)) {
val = val;
return val.tagName.toLowerCase() + (val.id ? "#" + val.id : "");
}
return val;
}
// src/core/assert/base.js
function assert(sentinel, shouldBeTruthy, opt_message, var_args) {
if (opt_message === void 0) {
opt_message = "Assertion failed";
}
if (shouldBeTruthy) {
return shouldBeTruthy;
}
if (sentinel && opt_message.indexOf(sentinel) == -1) {
opt_message += sentinel;
}
var i = 3;
var splitMessage = opt_message.split("%s");
var message = splitMessage.shift();
var messageArray = [message];
while (splitMessage.length) {
var subValue = arguments[i++];
var nextConstant = splitMessage.shift();
message += elementStringOrPassThru(subValue) + nextConstant;
messageArray.push(subValue, nextConstant.trim());
}
var error = new Error(message);
error.messageArray = remove(messageArray, function(x) {
return x !== "";
});
self.__AMP_REPORT_ERROR == null ? void 0 : self.__AMP_REPORT_ERROR(error);
throw error;
}
function assertType_(assertFn, subject, shouldBeTruthy, defaultMessage, opt_message) {
if (isArray(opt_message)) {
assertFn(shouldBeTruthy, opt_message.concat([subject]));
} else {
assertFn(shouldBeTruthy, (opt_message || defaultMessage) + ": %s", subject);
}
return subject;
}
function assertString(assertFn, shouldBeString, opt_message) {
return assertType_(assertFn, shouldBeString, isString(shouldBeString), "String expected", opt_message);
}
// src/core/assert/dev.js
function devAssertDceCheck() {
if (self.__AMP_ASSERTION_CHECK) {
console.log("__devAssert_sentinel__");
}
}
function devAssert(shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9) {
if (isMinified()) {
return shouldBeTruthy;
}
devAssertDceCheck();
return assert("", shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9);
}
function devAssertString(shouldBeString, opt_message) {
if (isMinified()) {
return shouldBeString;
}
devAssertDceCheck();
return assertString(devAssert, shouldBeString, opt_message);
}
// src/core/dom/layout/viewport-observer.js
var viewportObservers = new WeakMap();
var viewportCallbacks = new WeakMap();
// src/preact/context.js

@@ -422,133 +570,2 @@ var context;

// src/core/mode/prod.js
function isProd() {
return false;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (isProd()) {
return false;
}
var win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
// src/core/mode/minified.js
function isMinified() {
return false;
}
// src/core/mode/version.js
function version() {
return "2109082106000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return false;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : false;
}
// src/core/types/array.js
var isArray = Array.isArray;
function remove(array, shouldRemove) {
var removed = [];
var index = 0;
for (var i = 0; i < array.length; i++) {
var item = array[i];
if (shouldRemove(item, i, array)) {
removed.push(item);
} else {
if (index < i) {
array[index] = item;
}
index++;
}
}
if (index < array.length) {
array.length = index;
}
return removed;
}
// src/core/types/index.js
function isElement(value) {
return (value == null ? void 0 : value.nodeType) == 1;
}
// src/core/error/message-helpers.js
function elementStringOrPassThru(val) {
if (isElement(val)) {
val = val;
return val.tagName.toLowerCase() + (val.id ? "#" + val.id : "");
}
return val;
}
// src/core/assert/base.js
function assert(sentinel, shouldBeTruthy, opt_message, var_args) {
if (opt_message === void 0) {
opt_message = "Assertion failed";
}
if (shouldBeTruthy) {
return shouldBeTruthy;
}
if (sentinel && opt_message.indexOf(sentinel) == -1) {
opt_message += sentinel;
}
var i = 3;
var splitMessage = opt_message.split("%s");
var message = splitMessage.shift();
var messageArray = [message];
while (splitMessage.length) {
var subValue = arguments[i++];
var nextConstant = splitMessage.shift();
message += elementStringOrPassThru(subValue) + nextConstant;
messageArray.push(subValue, nextConstant.trim());
}
var error = new Error(message);
error.messageArray = remove(messageArray, function(x) {
return x !== "";
});
self.__AMP_REPORT_ERROR == null ? void 0 : self.__AMP_REPORT_ERROR(error);
throw error;
}
function assertType_(assertFn, subject, shouldBeTruthy, defaultMessage, opt_message) {
if (isArray(opt_message)) {
assertFn(shouldBeTruthy, opt_message.concat([subject]));
} else {
assertFn(shouldBeTruthy, (opt_message || defaultMessage) + ": %s", subject);
}
return subject;
}
function assertString(assertFn, shouldBeString, opt_message) {
return assertType_(assertFn, shouldBeString, isString(shouldBeString), "String expected", opt_message);
}
// src/core/assert/dev.js
function devAssertDceCheck() {
if (self.__AMP_ASSERTION_CHECK) {
console.log("__devAssert_sentinel__");
}
}
function devAssert(shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9) {
if (isMinified()) {
return shouldBeTruthy;
}
devAssertDceCheck();
return assert("", shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9);
}
function devAssertString(shouldBeString, opt_message) {
if (isMinified()) {
return shouldBeString;
}
devAssertDceCheck();
return assertString(devAssert, shouldBeString, opt_message);
}
// src/core/error/index.js

@@ -637,15 +654,2 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js

@@ -652,0 +656,0 @@ var env = self.AMP_CONFIG || {};

@@ -280,2 +280,147 @@ // src/preact/index.js

// src/core/mode/prod.js
function isProd() {
return false;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (isProd()) {
return false;
}
const win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
// src/core/mode/minified.js
function isMinified() {
return false;
}
// src/core/mode/version.js
function version() {
return "2109100544000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return true;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : true;
}
// src/core/types/array.js
var {
isArray
} = Array;
function remove(array, shouldRemove) {
const removed = [];
let index = 0;
for (let i = 0; i < array.length; i++) {
const item = array[i];
if (shouldRemove(item, i, array)) {
removed.push(item);
} else {
if (index < i) {
array[index] = item;
}
index++;
}
}
if (index < array.length) {
array.length = index;
}
return removed;
}
// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/core/types/index.js
function isElement(value) {
return (value == null ? void 0 : value.nodeType) == 1;
}
// src/core/error/message-helpers.js
function elementStringOrPassThru(val) {
if (isElement(val)) {
val = val;
return val.tagName.toLowerCase() + (val.id ? `#${val.id}` : "");
}
return val;
}
// src/core/assert/base.js
function assert(sentinel, shouldBeTruthy, opt_message = "Assertion failed", var_args) {
if (shouldBeTruthy) {
return shouldBeTruthy;
}
if (sentinel && opt_message.indexOf(sentinel) == -1) {
opt_message += sentinel;
}
let i = 3;
const splitMessage = opt_message.split("%s");
let message = splitMessage.shift();
const messageArray = [message];
while (splitMessage.length) {
const subValue = arguments[i++];
const nextConstant = splitMessage.shift();
message += elementStringOrPassThru(subValue) + nextConstant;
messageArray.push(subValue, nextConstant.trim());
}
const error = new Error(message);
error.messageArray = remove(messageArray, (x) => x !== "");
self.__AMP_REPORT_ERROR == null ? void 0 : self.__AMP_REPORT_ERROR(error);
throw error;
}
function assertType_(assertFn, subject, shouldBeTruthy, defaultMessage, opt_message) {
if (isArray(opt_message)) {
assertFn(shouldBeTruthy, opt_message.concat([subject]));
} else {
assertFn(shouldBeTruthy, `${opt_message || defaultMessage}: %s`, subject);
}
return subject;
}
function assertString(assertFn, shouldBeString, opt_message) {
return assertType_(assertFn, shouldBeString, isString(shouldBeString), "String expected", opt_message);
}
// src/core/assert/dev.js
function devAssertDceCheck() {
if (self.__AMP_ASSERTION_CHECK) {
console.log("__devAssert_sentinel__");
}
}
function devAssert(shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9) {
if (isMinified()) {
return shouldBeTruthy;
}
devAssertDceCheck();
return assert("", shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9);
}
function devAssertString(shouldBeString, opt_message) {
if (isMinified()) {
return shouldBeString;
}
devAssertDceCheck();
return assertString(devAssert, shouldBeString, opt_message);
}
// src/core/dom/layout/viewport-observer.js
var viewportObservers = new WeakMap();
var viewportCallbacks = new WeakMap();
// src/preact/context.js

@@ -438,130 +583,2 @@ var context;

// src/core/mode/prod.js
function isProd() {
return false;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (isProd()) {
return false;
}
const win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
// src/core/mode/minified.js
function isMinified() {
return false;
}
// src/core/mode/version.js
function version() {
return "2109082106000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return true;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : true;
}
// src/core/types/array.js
var {
isArray
} = Array;
function remove(array, shouldRemove) {
const removed = [];
let index = 0;
for (let i = 0; i < array.length; i++) {
const item = array[i];
if (shouldRemove(item, i, array)) {
removed.push(item);
} else {
if (index < i) {
array[index] = item;
}
index++;
}
}
if (index < array.length) {
array.length = index;
}
return removed;
}
// src/core/types/index.js
function isElement(value) {
return (value == null ? void 0 : value.nodeType) == 1;
}
// src/core/error/message-helpers.js
function elementStringOrPassThru(val) {
if (isElement(val)) {
val = val;
return val.tagName.toLowerCase() + (val.id ? `#${val.id}` : "");
}
return val;
}
// src/core/assert/base.js
function assert(sentinel, shouldBeTruthy, opt_message = "Assertion failed", var_args) {
if (shouldBeTruthy) {
return shouldBeTruthy;
}
if (sentinel && opt_message.indexOf(sentinel) == -1) {
opt_message += sentinel;
}
let i = 3;
const splitMessage = opt_message.split("%s");
let message = splitMessage.shift();
const messageArray = [message];
while (splitMessage.length) {
const subValue = arguments[i++];
const nextConstant = splitMessage.shift();
message += elementStringOrPassThru(subValue) + nextConstant;
messageArray.push(subValue, nextConstant.trim());
}
const error = new Error(message);
error.messageArray = remove(messageArray, (x) => x !== "");
self.__AMP_REPORT_ERROR == null ? void 0 : self.__AMP_REPORT_ERROR(error);
throw error;
}
function assertType_(assertFn, subject, shouldBeTruthy, defaultMessage, opt_message) {
if (isArray(opt_message)) {
assertFn(shouldBeTruthy, opt_message.concat([subject]));
} else {
assertFn(shouldBeTruthy, `${opt_message || defaultMessage}: %s`, subject);
}
return subject;
}
function assertString(assertFn, shouldBeString, opt_message) {
return assertType_(assertFn, shouldBeString, isString(shouldBeString), "String expected", opt_message);
}
// src/core/assert/dev.js
function devAssertDceCheck() {
if (self.__AMP_ASSERTION_CHECK) {
console.log("__devAssert_sentinel__");
}
}
function devAssert(shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9) {
if (isMinified()) {
return shouldBeTruthy;
}
devAssertDceCheck();
return assert("", shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9);
}
function devAssertString(shouldBeString, opt_message) {
if (isMinified()) {
return shouldBeString;
}
devAssertDceCheck();
return assertString(devAssert, shouldBeString, opt_message);
}
// src/core/error/index.js

@@ -615,15 +632,2 @@ function duplicateErrorIfNecessary(error) {

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js

@@ -630,0 +634,0 @@ var env = self.AMP_CONFIG || {};

;
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}import{cloneElement as o,createContext as a,createElement as l,createRef as i}from"preact";import{hydrate as s,render as c}from"preact";import{useCallback as u,useContext as d,useEffect as f,useImperativeHandle as p,useLayoutEffect as m,useMemo as y,useRef as g,useState as b}from"preact/hooks";function h(e,t,r){return l.apply(void 0,arguments)}function v(e){return b(e)}function w(e){return g(e)}function O(e,t){f(e,t)}function S(e,t){m(e,t)}function P(e,t){return y(e,t)}function x(e,t){return u(e,t)}function A(e,t,r){return p(e,t,r)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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{hasOwnProperty:j,toString:E}=Object.prototype;function F(e){return e||{}}import{Children as M,createPortal as N,forwardRef as T}from"preact/compat";function C(e){return T(e)}var z,D=["auto","lazy","eager","unload"],k={auto:0,lazy:1,eager:2,unload:3},L=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],U=[null,"paint","layout","content","size","size paint","size layout","strict"],$={"position":"relative","width":"100%","height":"100%"},B=C((function(e,t){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:c,contentRef:u,contentStyle:d,layout:f=!1,paint:p=!1,size:m=!1,"style":y,wrapperClassName:g,wrapperStyle:b}=e;const v=(m?4:0)+(f?2:0)+(p?1:0);return h(o,r(r({},n(e,L)),{},{ref:t,class:`${l||""} ${g||""}`.trim()||null,style:r(r(r({},y),b),{},{contain:U[v]})}),h(i,r(r({},c),{},{ref:u,class:s,style:r(r({},m&&$),{},{"overflow":p?"hidden":"visible"},d)}),a))})),H=["as","children","class","style","wrapperClassName","wrapperStyle"];function I(e){const t=w(null);return t.current=e,t}function G(){const e=z||(z=a({renderable:!0,playable:!0,loading:"auto"},void 0));return d(e)}C((function(e,t){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:c}=e;return h(o,r(r({},n(e,H)),{},{ref:t,class:`${l||""} ${s||""}`.trim()||null,style:r(r({},i),c)}),a)}));var V=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],q=()=>!1,J=C((function(e,t){let{allow:o,allowFullScreen:a,allowTransparency:l,iframeStyle:i,name:s,title:c,matchesMessagingOrigin:u=q,messageHandler:d,ready:f=!0,loading:p,onReadyState:m,sandbox:y,src:g}=e,b=n(e,V);const{playable:v}=G(),P=function(e){const{loading:t}=G();return function(e,t){const r=k[e]||0,n=k[t]||0,o=Math.max(r,n);return D[o]}(e,t)}(p),_="unload"!==P,R=w(!1),j=I(m),E=x((e=>{if(e!==R.current){R.current=e;const t=j.current;null==t||t(e?"complete":"loading")}}),[j]),F=w(null);return A(t,(()=>({get readyState(){return R.current?"complete":"loading"},get node(){return F.current}})),[]),S((()=>{_||E(!1)}),[_,E]),O((()=>{const e=F.current;if(!v&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),S((()=>{const e=F.current;if(!e||!_)return;const t=e=>{const t=F.current;t&&e.source==t.contentWindow&&u(e.origin)&&d(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[u,d,_,f]),h(B,r(r({},b),{},{layout:!0,size:!0,paint:!0}),_&&f&&h("iframe",{allow:o,allowFullScreen:a,allowTransparency:l,frameborder:"0",loading:P,name:s,onLoad:()=>E(!0),part:"iframe",ref:F,sandbox:y,scrolling:"no",src:g,style:r(r({},i),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}));J.displayName="IframeEmbed";var{isArray:W}=Array;function Z(e,t){return e}function K(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function Q(e){let t=null,r="";for(var n,o=R(arguments,!0);!(n=o()).done;){const e=n.value;e instanceof Error&&!t?t=K(e):(r&&(r+=" "),r+=e)}return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function X(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function Y(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}var ee=self.AMP_CONFIG||{},te=("string"==typeof ee.thirdPartyFrameRegex?new RegExp(ee.thirdPartyFrameRegex):ee.thirdPartyFrameRegex,("string"==typeof ee.cdnProxyRegex?new RegExp(ee.cdnProxyRegex):ee.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function re(e){if(!self.document||!self.document.head)return null;if(self.location&&te.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var ne,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2109082106000/vendor/${e}.mjs`}function ie(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}ee.cdnUrl||re("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||re("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var se=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],ce={},ue="sync-xhr 'none'",de=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),fe=C((function(e,t){let{allow:o=ue,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=de,src:u,type:d,title:f=d}=e,p=n(e,se);if(m=o,"number"!=typeof g&&(g=0),g+(y=ue).length>m.length||-1===m.indexOf(y,g))throw new Error(`'allow' prop must contain "${ue}". Found "${o}".`);var m,y,g;const b=w(null),x=w(null),_=P((()=>(ce[d]||(ce[d]=function(){let e=0;return()=>String(++e)}()),ce[d]())),[d]),[R,j]=v({name:l,src:u}),{name:E,src:M}=R,N=w(null);return S((()=>{var e,t;const r=null===(e=b.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?((o=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2109082106000/frame.html`):"about:blank";var o;if(l)return void j({name:l,src:n});if(!r)return;N.current||(N.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+ie(e)}(r));const a=Object.assign(F({"location":{"href":r.location.href},"sentinel":N.current})),i=Object.assign(F({"title":f,"type":d,"_context":a}),s);var c;j({name:JSON.stringify(F({"host":(c=n,ne||(ne=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(ne,c)).hostname,"bootstrap":le(d),"type":d,"count":_,"attributes":i})),src:n})}),[_,l,s,u,f,d]),O((()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[E]),A(t,(()=>({get readyState(){var e;return null===(e=x.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=x.current)||void 0===e?void 0:e.node}})),[]),h(J,r({allow:o,contentRef:b,messageHandler:i,name:E,ref:x,ready:!!E,sandbox:a?void 0:c,src:M,title:f},p))}));fe.displayName="ProxyIframeEmbed";var pe=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],me=()=>!0,ye="Facebook comments",ge=C((function(e,t){let{action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,kdSite:d,layout:f,locale:p,numPosts:m,onLoad:y,orderBy:g,refLabel:b,requestResize:w,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,style:E,tabs:F,title:M=ye}=e,N=n(e,pe);const[T,C]=v(null),z=I(y),D=x((e=>{var t;const r=null!==(t=Y(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=Z(e).indexOf("{");return Y(Z(e).substr(t),(t=>{!function(e){const t=Q.apply(null,arguments);setTimeout((()=>{throw X(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);var n;if("ready"==r.action&&(null===(n=z.current)||void 0===n||n.call(z)),"embed-size"==r.type){const e=r.height;w?(w(e),C("100%")):C(e)}}),[w,z]),[k,L]=v(p);S((()=>{var e,r;if(p)return void L(p);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&L(n.navigator.language.replace("-","_"))}),[p,t]);const U=P((()=>({action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,"kd_site":d,layout:f,locale:k,numPosts:m,orderBy:g,ref:b,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,tabs:F})),[o,a,l,i,s,c,u,d,f,k,m,g,b,O,A,_,R,j,F]);return h(fe,r(r({options:U,ref:t,title:M},N),{},{excludeSandbox:!0,matchesMessagingOrigin:me,messageHandler:D,type:"facebook",style:T?r(r({},E),{},{height:T}):E}))}));ge.displayName="Facebook";export{ge as Facebook};
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}import{cloneElement as o,createContext as a,createElement as l,createRef as i}from"preact";import{hydrate as s,render as c}from"preact";import{useCallback as u,useContext as d,useEffect as f,useImperativeHandle as p,useLayoutEffect as m,useMemo as y,useRef as g,useState as b}from"preact/hooks";function h(e,t,r){return l.apply(void 0,arguments)}function v(e){return b(e)}function w(e){return g(e)}function O(e,t){f(e,t)}function S(e,t){m(e,t)}function P(e,t){return y(e,t)}function x(e,t){return u(e,t)}function A(e,t,r){return p(e,t,r)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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{hasOwnProperty:j,toString:E}=Object.prototype;function M(e){return e||{}}import{Children as F,createPortal as N,forwardRef as T}from"preact/compat";function C(e){return T(e)}var k=["auto","lazy","eager","unload"],z={auto:0,lazy:1,eager:2,unload:3},D=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],L=[null,"paint","layout","content","size","size paint","size layout","strict"],U={"position":"relative","width":"100%","height":"100%"},$=C((function(e,t){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:c,contentRef:u,contentStyle:d,layout:f=!1,paint:p=!1,size:m=!1,"style":y,wrapperClassName:g,wrapperStyle:b}=e;const v=(m?4:0)+(f?2:0)+(p?1:0);return h(o,r(r({},n(e,D)),{},{ref:t,class:`${l||""} ${g||""}`.trim()||null,style:r(r(r({},y),b),{},{contain:L[v]})}),h(i,r(r({},c),{},{ref:u,class:s,style:r(r({},m&&U),{},{"overflow":p?"hidden":"visible"},d)}),a))})),B=["as","children","class","style","wrapperClassName","wrapperStyle"];function H(e){const t=w(null);return t.current=e,t}C((function(e,t){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:c}=e;return h(o,r(r({},n(e,B)),{},{ref:t,class:`${l||""} ${s||""}`.trim()||null,style:r(r({},i),c)}),a)}));var I,{isArray:G}=Array;function V(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}function W(e,t){return e}function q(){const e=I||(I=a({renderable:!0,playable:!0,loading:"auto"},void 0));return d(e)}new WeakMap,new WeakMap;var J=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],Z=()=>!1,K=C((function(e,t){let{allow:o,allowFullScreen:a,allowTransparency:l,iframeStyle:i,name:s,title:c,matchesMessagingOrigin:u=Z,messageHandler:d,ready:f=!0,loading:p,onReadyState:m,sandbox:y,src:g}=e,b=n(e,J);const{playable:v}=q(),P=function(e){const{loading:t}=q();return function(e,t){const r=z[e]||0,n=z[t]||0,o=Math.max(r,n);return k[o]}(e,t)}(p),_="unload"!==P,R=w(!1),j=H(m),E=x((e=>{if(e!==R.current){R.current=e;const t=j.current;null==t||t(e?"complete":"loading")}}),[j]),M=w(null);return A(t,(()=>({get readyState(){return R.current?"complete":"loading"},get node(){return M.current}})),[]),S((()=>{_||E(!1)}),[_,E]),O((()=>{const e=M.current;if(!v&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),S((()=>{const e=M.current;if(!e||!_)return;const t=e=>{const t=M.current;t&&e.source==t.contentWindow&&u(e.origin)&&d(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[u,d,_,f]),h($,r(r({},b),{},{layout:!0,size:!0,paint:!0}),_&&f&&h("iframe",{allow:o,allowFullScreen:a,allowTransparency:l,frameborder:"0",loading:P,name:s,onLoad:()=>E(!0),part:"iframe",ref:M,sandbox:y,scrolling:"no",src:g,style:r(r({},i),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}));function Q(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function X(e){let t=null,r="";for(var n,o=R(arguments,!0);!(n=o()).done;){const e=n.value;e instanceof Error&&!t?t=Q(e):(r&&(r+=" "),r+=e)}return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function Y(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}K.displayName="IframeEmbed";var ee=self.AMP_CONFIG||{},te=("string"==typeof ee.thirdPartyFrameRegex?new RegExp(ee.thirdPartyFrameRegex):ee.thirdPartyFrameRegex,("string"==typeof ee.cdnProxyRegex?new RegExp(ee.cdnProxyRegex):ee.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function re(e){if(!self.document||!self.document.head)return null;if(self.location&&te.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var ne,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2109100544000/vendor/${e}.mjs`}function ie(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}ee.cdnUrl||re("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||re("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var se=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],ce={},ue="sync-xhr 'none'",de=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),fe=C((function(e,t){let{allow:o=ue,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=de,src:u,type:d,title:f=d}=e,p=n(e,se);if(m=o,"number"!=typeof g&&(g=0),g+(y=ue).length>m.length||-1===m.indexOf(y,g))throw new Error(`'allow' prop must contain "${ue}". Found "${o}".`);var m,y,g;const b=w(null),x=w(null),_=P((()=>(ce[d]||(ce[d]=function(){let e=0;return()=>String(++e)}()),ce[d]())),[d]),[R,j]=v({name:l,src:u}),{name:E,src:F}=R,N=w(null);return S((()=>{var e,t;const r=null===(e=b.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?((o=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2109100544000/frame.html`):"about:blank";var o;if(l)return void j({name:l,src:n});if(!r)return;N.current||(N.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+ie(e)}(r));const a=Object.assign(M({"location":{"href":r.location.href},"sentinel":N.current})),i=Object.assign(M({"title":f,"type":d,"_context":a}),s);var c;j({name:JSON.stringify(M({"host":(c=n,ne||(ne=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(ne,c)).hostname,"bootstrap":le(d),"type":d,"count":_,"attributes":i})),src:n})}),[_,l,s,u,f,d]),O((()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[E]),A(t,(()=>({get readyState(){var e;return null===(e=x.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=x.current)||void 0===e?void 0:e.node}})),[]),h(K,r({allow:o,contentRef:b,messageHandler:i,name:E,ref:x,ready:!!E,sandbox:a?void 0:c,src:F,title:f},p))}));fe.displayName="ProxyIframeEmbed";var pe=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],me=()=>!0,ye="Facebook comments",ge=C((function(e,t){let{action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,kdSite:d,layout:f,locale:p,numPosts:m,onLoad:y,orderBy:g,refLabel:b,requestResize:w,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,style:E,tabs:M,title:F=ye}=e,N=n(e,pe);const[T,C]=v(null),k=H(y),z=x((e=>{var t;const r=null!==(t=V(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=W(e).indexOf("{");return V(W(e).substr(t),(t=>{!function(e){const t=X.apply(null,arguments);setTimeout((()=>{throw Y(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);var n;if("ready"==r.action&&(null===(n=k.current)||void 0===n||n.call(k)),"embed-size"==r.type){const e=r.height;w?(w(e),C("100%")):C(e)}}),[w,k]),[D,L]=v(p);S((()=>{var e,r;if(p)return void L(p);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&L(n.navigator.language.replace("-","_"))}),[p,t]);const U=P((()=>({action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,"kd_site":d,layout:f,locale:D,numPosts:m,orderBy:g,ref:b,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,tabs:M})),[o,a,l,i,s,c,u,d,f,D,m,g,b,O,A,_,R,j,M]);return h(fe,r(r({options:U,ref:t,title:F},N),{},{excludeSandbox:!0,matchesMessagingOrigin:me,messageHandler:z,type:"facebook",style:T?r(r({},E),{},{height:T}):E}))}));ge.displayName="Facebook";export{ge as Facebook};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
;
var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return a}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("react")),preactDOM=__toModule(require("react-dom")),hooks=__toModule(require("react"));function createElement2(e,t,r){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,t){return hooks.useMemo(e,t)}function useCallback2(e,t){return hooks.useCallback(e,t)}function useImperativeHandle2(e,t,r){return hooks.useImperativeHandle(e,t,r)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}function _createForOfIteratorHelperLoose(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var t=Object.create(null);return e&&Object.assign(t,e),t}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,t){var r=MAP[e]||0,n=MAP[t]||0,o=Math.max(r,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,c=e.contentClassName,l=e.contentProps,u=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,m=void 0!==_&&_,h=e.size,y=void 0!==h&&h,v=e.style,g=e.wrapperClassName,E=e.wrapperStyle,b=(y?4:0)+(p?2:0)+(m?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:t,class:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},v),E),{},{contain:CONTAIN[b]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:u,class:c,style:_objectSpread2(_objectSpread2({},y&&SIZE_CONTENT_STYLE),{},{"overflow":m?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,c=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:t,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),c)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var t=useRef2(null);return t.current=e,t}function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,s=e.title,c=e.matchesMessagingOrigin,l=void 0===c?DEFAULT_MATCHES_MESSAGING_ORIGIN:c,u=e.messageHandler,d=e.ready,f=void 0===d||d,p=e.loading,_=e.onReadyState,m=e.sandbox,h=e.src,y=_objectWithoutPropertiesLoose(e,_excluded3),v=useAmpContext().playable,g=useLoading(p),E=g!==Loading.UNLOAD,b=useRef2(!1),A=useValueRef(_),S=useCallback2((function(e){if(e!==b.current){b.current=e;var t=A.current;null==t||t(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[A]),O=useRef2(null);return useImperativeHandle2(t,(function(){return{get readyState(){return b.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return O.current}}}),[]),useLayoutEffect2((function(){E||S(!1)}),[E,S]),useEffect2((function(){var e=O.current;if(!v&&e){var t=e.src;canResetSrc(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),useLayoutEffect2((function(){var e=O.current;if(e&&E){var t=function(e){var t=O.current;t&&e.source==t.contentWindow&&l(e.origin)&&u(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[l,u,E,f]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},y),{},{layout:!0,size:!0,paint:!0}),E&&f&&createElement2("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:O,sandbox:m,scrolling:"no",src:h,style:_objectSpread2(_objectSpread2({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function isProd(){return!0}function isTest(e){var t;if(isProd())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function isMinified(){return!0}function version(){return"2109082106000"}function isEsm(){var e,t,r;return!isProd()&&null!==(e=null===(t=self)||void 0===t||null===(r=t.__AMP_MODE)||void 0===r?void 0:r.esm)&&void 0!==e&&e}IframeEmbed.displayName="IframeEmbed";var isArray=Array.isArray;function remove(e,t){for(var r=[],n=0,o=0;o<e.length;o++){var a=e[o];t(a,o,e)?r.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),r}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(t)return t;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),s=i.shift(),c=[s];i.length;){var l=arguments[a++],u=i.shift();s+=elementStringOrPassThru(l)+u,c.push(l,u.trim())}var d=new Error(s);throw d.messageArray=remove(c,(function(e){return""!==e})),null===(r=(n=self).__AMP_REPORT_ERROR)||void 0===r||r.call(n,d),d}function assertType_(e,t,r,n,o){return isArray(o)?e(r,o.concat([t])):e(r,"".concat(o||n,": %s"),t),t}function assertString(e,t,r){return assertType_(e,t,isString(t),"String expected",r)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,t,r,n,o,a,i,s,c,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,t,r,n,o,a,i,s,c,l,u))}function devAssertString(e,t){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,t))}function duplicateErrorIfNecessary(e){var t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;var r=e.message,n=e.stack,o=new Error(r);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){for(var t,r=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(t=o()).done;){var a=t.value;a instanceof Error&&!r?r=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}return r?n&&(r.message=n+": "+r.message):r=new Error(n),r}function maybeReportError(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function rethrowAsync(e){var t=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(t),t}))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,t){try{return parseJson(e)}catch(e){return null==t||t(e),null}}var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.capacity_=e,this.size_=0,this.access_=0,this.cache_=map()}var t=e.prototype;return t.has=function(e){return!!this.cache_[e]},t.get=function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload},t.put=function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()},t.evict_=function(){if(!(this.size_<=this.capacity_)){var e,t=this.cache_,r=this.access_+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.size_--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,t){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||t?null:urlCache)}function parseUrlWithA(e,t,r){if(isEsm())return e.href="",new URL(t,e.href);if(r&&r.has(t))return r.get(t);e.href=t,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=isTest()&&Object.freeze?Object.freeze(o):o;return r&&r.put(t,a),a}function getBootstrapUrl(e){var t=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(t):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+t}function getDefaultBootstrapBaseUrl(e,t){var r=t||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(r,".html")):getDevelopmentBootstrapBaseUrl(e,r)}function getDevelopmentBootstrapBaseUrl(e,t){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(t):"current/".concat(t,".max"))+".html"}function getAdsLocalhost(e){var t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var t;if(e.crypto&&e.crypto.getRandomValues){var r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function generateSentinel(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+getRandom(e)}var _excluded4=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,t){var r=e.allow,n=void 0===r?BLOCK_SYNC_XHR:r,o=e.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,c=e.sandbox,l=void 0===c?DEFAULT_SANDBOX:c,u=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var m=useRef2(null),h=useRef2(null),y=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:a,src:u}),2),g=v[0],E=v[1],b=g.name,A=g.src,S=useRef2(null);return useLayoutEffect2((function(){var e,t,r=null===(e=m.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?getDefaultBootstrapBaseUrl(r):"about:blank";if(a)E({name:a,src:n});else if(r){S.current||(S.current=generateSentinel(r));var o=Object.assign(dict({"location":{"href":r.location.href},"sentinel":S.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);E({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":y,"attributes":i})),src:n})}}),[y,a,s,u,p,d]),useEffect2((function(){var e,t=null===(e=h.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[b]),useImperativeHandle2(t,(function(){return{get readyState(){var e;return null===(e=h.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=h.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:m,messageHandler:i,name:b,ref:h,ready:!!b,sandbox:o?void 0:l,src:A,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var t=devAssertString(e).indexOf("{");return devAssert(-1!=t),tryParseJson(devAssertString(e).substr(t),(function(t){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(t.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,s=e.href,c=e.includeCommentParent,l=e.kdSite,u=e.layout,d=e.locale,f=e.numPosts,p=e.onLoad,_=e.orderBy,m=e.refLabel,h=e.requestResize,y=e.share,v=e.showFacepile,g=e.showText,E=e.size,b=e.smallHeader,A=e.style,S=e.tabs,O=e.title,R=void 0===O?DEFAULT_TITLE:O,P=_objectWithoutPropertiesLoose(e,_excluded5),T=_slicedToArray(useState2(null),2),L=T[0],N=T[1],w=useValueRef(p),M=useCallback2((function(e){var t,r,n=null!==(t=tryParseJson(e.data))&&void 0!==t?t:deserializeMessage(e.data);if("ready"==n.action&&(null===(r=w.current)||void 0===r||r.call(w)),n.type==MessageType.EMBED_SIZE){var o=n.height;h?(h(o),N(FULL_HEIGHT)):N(o)}}),[h,w]),x=_slicedToArray(useState2(d),2),I=x[0],C=x[1];useLayoutEffect2((function(){var e,r;if(d)C(d);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&C(dashToUnderline(n.navigator.language))}}),[d,t]);var j=useMemo2((function(){return{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:s,includeCommentParent:c,"kd_site":l,layout:u,locale:I,numPosts:f,orderBy:_,ref:m,share:y,showFacepile:v,showText:g,size:E,smallHeader:b,tabs:S}}),[r,n,o,a,i,s,c,l,u,I,f,_,m,y,v,g,E,b,S]);return createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:j,ref:t,title:R},P),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:M,type:TYPE,style:L?_objectSpread2(_objectSpread2({},A),{},{height:L}):A}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return a}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("react")),preactDOM=__toModule(require("react-dom")),hooks=__toModule(require("react"));function createElement2(e,t,r){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,t){return hooks.useMemo(e,t)}function useCallback2(e,t){return hooks.useCallback(e,t)}function useImperativeHandle2(e,t,r){return hooks.useImperativeHandle(e,t,r)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}function _createForOfIteratorHelperLoose(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var t=Object.create(null);return e&&Object.assign(t,e),t}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,t){var r=MAP[e]||0,n=MAP[t]||0,o=Math.max(r,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,c=e.contentClassName,l=e.contentProps,u=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,m=void 0!==_&&_,h=e.size,y=void 0!==h&&h,v=e.style,g=e.wrapperClassName,E=e.wrapperStyle,b=(y?4:0)+(p?2:0)+(m?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:t,class:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},v),E),{},{contain:CONTAIN[b]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:u,class:c,style:_objectSpread2(_objectSpread2({},y&&SIZE_CONTENT_STYLE),{},{"overflow":m?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,c=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:t,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),c)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var t=useRef2(null);return t.current=e,t}function isProd(){return!0}function isTest(e){var t;if(isProd())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function isMinified(){return!0}function version(){return"2109100544000"}function isEsm(){var e,t,r;return!isProd()&&null!==(e=null===(t=self)||void 0===t||null===(r=t.__AMP_MODE)||void 0===r?void 0:r.esm)&&void 0!==e&&e}var isArray=Array.isArray;function remove(e,t){for(var r=[],n=0,o=0;o<e.length;o++){var a=e[o];t(a,o,e)?r.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),r}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,t){try{return parseJson(e)}catch(e){return null==t||t(e),null}}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(t)return t;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),s=i.shift(),c=[s];i.length;){var l=arguments[a++],u=i.shift();s+=elementStringOrPassThru(l)+u,c.push(l,u.trim())}var d=new Error(s);throw d.messageArray=remove(c,(function(e){return""!==e})),null===(r=(n=self).__AMP_REPORT_ERROR)||void 0===r||r.call(n,d),d}function assertType_(e,t,r,n,o){return isArray(o)?e(r,o.concat([t])):e(r,"".concat(o||n,": %s"),t),t}function assertString(e,t,r){return assertType_(e,t,isString(t),"String expected",r)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,t,r,n,o,a,i,s,c,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,t,r,n,o,a,i,s,c,l,u))}function devAssertString(e,t){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,t))}var context,viewportObservers=new WeakMap,viewportCallbacks=new WeakMap;function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,s=e.title,c=e.matchesMessagingOrigin,l=void 0===c?DEFAULT_MATCHES_MESSAGING_ORIGIN:c,u=e.messageHandler,d=e.ready,f=void 0===d||d,p=e.loading,_=e.onReadyState,m=e.sandbox,h=e.src,y=_objectWithoutPropertiesLoose(e,_excluded3),v=useAmpContext().playable,g=useLoading(p),E=g!==Loading.UNLOAD,b=useRef2(!1),A=useValueRef(_),S=useCallback2((function(e){if(e!==b.current){b.current=e;var t=A.current;null==t||t(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[A]),O=useRef2(null);return useImperativeHandle2(t,(function(){return{get readyState(){return b.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return O.current}}}),[]),useLayoutEffect2((function(){E||S(!1)}),[E,S]),useEffect2((function(){var e=O.current;if(!v&&e){var t=e.src;canResetSrc(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),useLayoutEffect2((function(){var e=O.current;if(e&&E){var t=function(e){var t=O.current;t&&e.source==t.contentWindow&&l(e.origin)&&u(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[l,u,E,f]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},y),{},{layout:!0,size:!0,paint:!0}),E&&f&&createElement2("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:O,sandbox:m,scrolling:"no",src:h,style:_objectSpread2(_objectSpread2({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function duplicateErrorIfNecessary(e){var t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;var r=e.message,n=e.stack,o=new Error(r);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){for(var t,r=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(t=o()).done;){var a=t.value;a instanceof Error&&!r?r=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}return r?n&&(r.message=n+": "+r.message):r=new Error(n),r}function maybeReportError(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function rethrowAsync(e){var t=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(t),t}))}IframeEmbed.displayName="IframeEmbed";var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.capacity_=e,this.size_=0,this.access_=0,this.cache_=map()}var t=e.prototype;return t.has=function(e){return!!this.cache_[e]},t.get=function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload},t.put=function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()},t.evict_=function(){if(!(this.size_<=this.capacity_)){var e,t=this.cache_,r=this.access_+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.size_--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,t){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||t?null:urlCache)}function parseUrlWithA(e,t,r){if(isEsm())return e.href="",new URL(t,e.href);if(r&&r.has(t))return r.get(t);e.href=t,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=isTest()&&Object.freeze?Object.freeze(o):o;return r&&r.put(t,a),a}function getBootstrapUrl(e){var t=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(t):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+t}function getDefaultBootstrapBaseUrl(e,t){var r=t||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(r,".html")):getDevelopmentBootstrapBaseUrl(e,r)}function getDevelopmentBootstrapBaseUrl(e,t){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(t):"current/".concat(t,".max"))+".html"}function getAdsLocalhost(e){var t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var t;if(e.crypto&&e.crypto.getRandomValues){var r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function generateSentinel(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+getRandom(e)}var _excluded4=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,t){var r=e.allow,n=void 0===r?BLOCK_SYNC_XHR:r,o=e.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,c=e.sandbox,l=void 0===c?DEFAULT_SANDBOX:c,u=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var m=useRef2(null),h=useRef2(null),y=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:a,src:u}),2),g=v[0],E=v[1],b=g.name,A=g.src,S=useRef2(null);return useLayoutEffect2((function(){var e,t,r=null===(e=m.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?getDefaultBootstrapBaseUrl(r):"about:blank";if(a)E({name:a,src:n});else if(r){S.current||(S.current=generateSentinel(r));var o=Object.assign(dict({"location":{"href":r.location.href},"sentinel":S.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);E({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":y,"attributes":i})),src:n})}}),[y,a,s,u,p,d]),useEffect2((function(){var e,t=null===(e=h.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[b]),useImperativeHandle2(t,(function(){return{get readyState(){var e;return null===(e=h.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=h.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:m,messageHandler:i,name:b,ref:h,ready:!!b,sandbox:o?void 0:l,src:A,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var t=devAssertString(e).indexOf("{");return devAssert(-1!=t),tryParseJson(devAssertString(e).substr(t),(function(t){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(t.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,s=e.href,c=e.includeCommentParent,l=e.kdSite,u=e.layout,d=e.locale,f=e.numPosts,p=e.onLoad,_=e.orderBy,m=e.refLabel,h=e.requestResize,y=e.share,v=e.showFacepile,g=e.showText,E=e.size,b=e.smallHeader,A=e.style,S=e.tabs,O=e.title,R=void 0===O?DEFAULT_TITLE:O,P=_objectWithoutPropertiesLoose(e,_excluded5),T=_slicedToArray(useState2(null),2),w=T[0],L=T[1],N=useValueRef(p),M=useCallback2((function(e){var t,r,n=null!==(t=tryParseJson(e.data))&&void 0!==t?t:deserializeMessage(e.data);if("ready"==n.action&&(null===(r=N.current)||void 0===r||r.call(N)),n.type==MessageType.EMBED_SIZE){var o=n.height;h?(h(o),L(FULL_HEIGHT)):L(o)}}),[h,N]),x=_slicedToArray(useState2(d),2),I=x[0],C=x[1];useLayoutEffect2((function(){var e,r;if(d)C(d);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&C(dashToUnderline(n.navigator.language))}}),[d,t]);var j=useMemo2((function(){return{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:s,includeCommentParent:c,"kd_site":l,layout:u,locale:I,numPosts:f,orderBy:_,ref:m,share:y,showFacepile:v,showText:g,size:E,smallHeader:b,tabs:S}}),[r,n,o,a,i,s,c,l,u,I,f,_,m,y,v,g,E,b,S]);return createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:j,ref:t,title:R},P),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:M,type:TYPE,style:w?_objectSpread2(_objectSpread2({},A),{},{height:w}):A}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -276,2 +276,150 @@ var __create = Object.create;

// src/core/mode/prod.js
function isProd() {
return false;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (isProd()) {
return false;
}
var win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
// src/core/mode/minified.js
function isMinified() {
return false;
}
// src/core/mode/version.js
function version() {
return "2109100544000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return false;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : false;
}
// src/core/types/array.js
var isArray = Array.isArray;
function remove(array, shouldRemove) {
var removed = [];
var index = 0;
for (var i = 0; i < array.length; i++) {
var item = array[i];
if (shouldRemove(item, i, array)) {
removed.push(item);
} else {
if (index < i) {
array[index] = item;
}
index++;
}
}
if (index < array.length) {
array.length = index;
}
return removed;
}
// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/core/types/index.js
function isElement(value) {
return (value == null ? void 0 : value.nodeType) == 1;
}
// src/core/error/message-helpers.js
function elementStringOrPassThru(val) {
if (isElement(val)) {
val = val;
return val.tagName.toLowerCase() + (val.id ? "#" + val.id : "");
}
return val;
}
// src/core/assert/base.js
function assert(sentinel, shouldBeTruthy, opt_message, var_args) {
if (opt_message === void 0) {
opt_message = "Assertion failed";
}
if (shouldBeTruthy) {
return shouldBeTruthy;
}
if (sentinel && opt_message.indexOf(sentinel) == -1) {
opt_message += sentinel;
}
var i = 3;
var splitMessage = opt_message.split("%s");
var message = splitMessage.shift();
var messageArray = [message];
while (splitMessage.length) {
var subValue = arguments[i++];
var nextConstant = splitMessage.shift();
message += elementStringOrPassThru(subValue) + nextConstant;
messageArray.push(subValue, nextConstant.trim());
}
var error = new Error(message);
error.messageArray = remove(messageArray, function(x) {
return x !== "";
});
self.__AMP_REPORT_ERROR == null ? void 0 : self.__AMP_REPORT_ERROR(error);
throw error;
}
function assertType_(assertFn, subject, shouldBeTruthy, defaultMessage, opt_message) {
if (isArray(opt_message)) {
assertFn(shouldBeTruthy, opt_message.concat([subject]));
} else {
assertFn(shouldBeTruthy, (opt_message || defaultMessage) + ": %s", subject);
}
return subject;
}
function assertString(assertFn, shouldBeString, opt_message) {
return assertType_(assertFn, shouldBeString, isString(shouldBeString), "String expected", opt_message);
}
// src/core/assert/dev.js
function devAssertDceCheck() {
if (self.__AMP_ASSERTION_CHECK) {
console.log("__devAssert_sentinel__");
}
}
function devAssert(shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9) {
if (isMinified()) {
return shouldBeTruthy;
}
devAssertDceCheck();
return assert("", shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9);
}
function devAssertString(shouldBeString, opt_message) {
if (isMinified()) {
return shouldBeString;
}
devAssertDceCheck();
return assertString(devAssert, shouldBeString, opt_message);
}
// src/core/dom/layout/viewport-observer.js
var viewportObservers = new WeakMap();
var viewportCallbacks = new WeakMap();
// src/preact/context.js

@@ -422,133 +570,2 @@ var context;

// src/core/mode/prod.js
function isProd() {
return false;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (isProd()) {
return false;
}
var win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
// src/core/mode/minified.js
function isMinified() {
return false;
}
// src/core/mode/version.js
function version() {
return "2109082106000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return false;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : false;
}
// src/core/types/array.js
var isArray = Array.isArray;
function remove(array, shouldRemove) {
var removed = [];
var index = 0;
for (var i = 0; i < array.length; i++) {
var item = array[i];
if (shouldRemove(item, i, array)) {
removed.push(item);
} else {
if (index < i) {
array[index] = item;
}
index++;
}
}
if (index < array.length) {
array.length = index;
}
return removed;
}
// src/core/types/index.js
function isElement(value) {
return (value == null ? void 0 : value.nodeType) == 1;
}
// src/core/error/message-helpers.js
function elementStringOrPassThru(val) {
if (isElement(val)) {
val = val;
return val.tagName.toLowerCase() + (val.id ? "#" + val.id : "");
}
return val;
}
// src/core/assert/base.js
function assert(sentinel, shouldBeTruthy, opt_message, var_args) {
if (opt_message === void 0) {
opt_message = "Assertion failed";
}
if (shouldBeTruthy) {
return shouldBeTruthy;
}
if (sentinel && opt_message.indexOf(sentinel) == -1) {
opt_message += sentinel;
}
var i = 3;
var splitMessage = opt_message.split("%s");
var message = splitMessage.shift();
var messageArray = [message];
while (splitMessage.length) {
var subValue = arguments[i++];
var nextConstant = splitMessage.shift();
message += elementStringOrPassThru(subValue) + nextConstant;
messageArray.push(subValue, nextConstant.trim());
}
var error = new Error(message);
error.messageArray = remove(messageArray, function(x) {
return x !== "";
});
self.__AMP_REPORT_ERROR == null ? void 0 : self.__AMP_REPORT_ERROR(error);
throw error;
}
function assertType_(assertFn, subject, shouldBeTruthy, defaultMessage, opt_message) {
if (isArray(opt_message)) {
assertFn(shouldBeTruthy, opt_message.concat([subject]));
} else {
assertFn(shouldBeTruthy, (opt_message || defaultMessage) + ": %s", subject);
}
return subject;
}
function assertString(assertFn, shouldBeString, opt_message) {
return assertType_(assertFn, shouldBeString, isString(shouldBeString), "String expected", opt_message);
}
// src/core/assert/dev.js
function devAssertDceCheck() {
if (self.__AMP_ASSERTION_CHECK) {
console.log("__devAssert_sentinel__");
}
}
function devAssert(shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9) {
if (isMinified()) {
return shouldBeTruthy;
}
devAssertDceCheck();
return assert("", shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9);
}
function devAssertString(shouldBeString, opt_message) {
if (isMinified()) {
return shouldBeString;
}
devAssertDceCheck();
return assertString(devAssert, shouldBeString, opt_message);
}
// src/core/error/index.js

@@ -637,15 +654,2 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js

@@ -652,0 +656,0 @@ var env = self.AMP_CONFIG || {};

@@ -280,2 +280,147 @@ // src/preact/index.js

// src/core/mode/prod.js
function isProd() {
return false;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (isProd()) {
return false;
}
const win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
// src/core/mode/minified.js
function isMinified() {
return false;
}
// src/core/mode/version.js
function version() {
return "2109100544000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return true;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : true;
}
// src/core/types/array.js
var {
isArray
} = Array;
function remove(array, shouldRemove) {
const removed = [];
let index = 0;
for (let i = 0; i < array.length; i++) {
const item = array[i];
if (shouldRemove(item, i, array)) {
removed.push(item);
} else {
if (index < i) {
array[index] = item;
}
index++;
}
}
if (index < array.length) {
array.length = index;
}
return removed;
}
// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/core/types/index.js
function isElement(value) {
return (value == null ? void 0 : value.nodeType) == 1;
}
// src/core/error/message-helpers.js
function elementStringOrPassThru(val) {
if (isElement(val)) {
val = val;
return val.tagName.toLowerCase() + (val.id ? `#${val.id}` : "");
}
return val;
}
// src/core/assert/base.js
function assert(sentinel, shouldBeTruthy, opt_message = "Assertion failed", var_args) {
if (shouldBeTruthy) {
return shouldBeTruthy;
}
if (sentinel && opt_message.indexOf(sentinel) == -1) {
opt_message += sentinel;
}
let i = 3;
const splitMessage = opt_message.split("%s");
let message = splitMessage.shift();
const messageArray = [message];
while (splitMessage.length) {
const subValue = arguments[i++];
const nextConstant = splitMessage.shift();
message += elementStringOrPassThru(subValue) + nextConstant;
messageArray.push(subValue, nextConstant.trim());
}
const error = new Error(message);
error.messageArray = remove(messageArray, (x) => x !== "");
self.__AMP_REPORT_ERROR == null ? void 0 : self.__AMP_REPORT_ERROR(error);
throw error;
}
function assertType_(assertFn, subject, shouldBeTruthy, defaultMessage, opt_message) {
if (isArray(opt_message)) {
assertFn(shouldBeTruthy, opt_message.concat([subject]));
} else {
assertFn(shouldBeTruthy, `${opt_message || defaultMessage}: %s`, subject);
}
return subject;
}
function assertString(assertFn, shouldBeString, opt_message) {
return assertType_(assertFn, shouldBeString, isString(shouldBeString), "String expected", opt_message);
}
// src/core/assert/dev.js
function devAssertDceCheck() {
if (self.__AMP_ASSERTION_CHECK) {
console.log("__devAssert_sentinel__");
}
}
function devAssert(shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9) {
if (isMinified()) {
return shouldBeTruthy;
}
devAssertDceCheck();
return assert("", shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9);
}
function devAssertString(shouldBeString, opt_message) {
if (isMinified()) {
return shouldBeString;
}
devAssertDceCheck();
return assertString(devAssert, shouldBeString, opt_message);
}
// src/core/dom/layout/viewport-observer.js
var viewportObservers = new WeakMap();
var viewportCallbacks = new WeakMap();
// src/preact/context.js

@@ -438,130 +583,2 @@ var context;

// src/core/mode/prod.js
function isProd() {
return false;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (isProd()) {
return false;
}
const win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
// src/core/mode/minified.js
function isMinified() {
return false;
}
// src/core/mode/version.js
function version() {
return "2109082106000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return true;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : true;
}
// src/core/types/array.js
var {
isArray
} = Array;
function remove(array, shouldRemove) {
const removed = [];
let index = 0;
for (let i = 0; i < array.length; i++) {
const item = array[i];
if (shouldRemove(item, i, array)) {
removed.push(item);
} else {
if (index < i) {
array[index] = item;
}
index++;
}
}
if (index < array.length) {
array.length = index;
}
return removed;
}
// src/core/types/index.js
function isElement(value) {
return (value == null ? void 0 : value.nodeType) == 1;
}
// src/core/error/message-helpers.js
function elementStringOrPassThru(val) {
if (isElement(val)) {
val = val;
return val.tagName.toLowerCase() + (val.id ? `#${val.id}` : "");
}
return val;
}
// src/core/assert/base.js
function assert(sentinel, shouldBeTruthy, opt_message = "Assertion failed", var_args) {
if (shouldBeTruthy) {
return shouldBeTruthy;
}
if (sentinel && opt_message.indexOf(sentinel) == -1) {
opt_message += sentinel;
}
let i = 3;
const splitMessage = opt_message.split("%s");
let message = splitMessage.shift();
const messageArray = [message];
while (splitMessage.length) {
const subValue = arguments[i++];
const nextConstant = splitMessage.shift();
message += elementStringOrPassThru(subValue) + nextConstant;
messageArray.push(subValue, nextConstant.trim());
}
const error = new Error(message);
error.messageArray = remove(messageArray, (x) => x !== "");
self.__AMP_REPORT_ERROR == null ? void 0 : self.__AMP_REPORT_ERROR(error);
throw error;
}
function assertType_(assertFn, subject, shouldBeTruthy, defaultMessage, opt_message) {
if (isArray(opt_message)) {
assertFn(shouldBeTruthy, opt_message.concat([subject]));
} else {
assertFn(shouldBeTruthy, `${opt_message || defaultMessage}: %s`, subject);
}
return subject;
}
function assertString(assertFn, shouldBeString, opt_message) {
return assertType_(assertFn, shouldBeString, isString(shouldBeString), "String expected", opt_message);
}
// src/core/assert/dev.js
function devAssertDceCheck() {
if (self.__AMP_ASSERTION_CHECK) {
console.log("__devAssert_sentinel__");
}
}
function devAssert(shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9) {
if (isMinified()) {
return shouldBeTruthy;
}
devAssertDceCheck();
return assert("", shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9);
}
function devAssertString(shouldBeString, opt_message) {
if (isMinified()) {
return shouldBeString;
}
devAssertDceCheck();
return assertString(devAssert, shouldBeString, opt_message);
}
// src/core/error/index.js

@@ -615,15 +632,2 @@ function duplicateErrorIfNecessary(error) {

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js

@@ -630,0 +634,0 @@ var env = self.AMP_CONFIG || {};

;
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}import{cloneElement as o,createContext as a,createElement as l,createRef as i}from"react";import{hydrate as s,render as c}from"react-dom";import{useCallback as u,useContext as d,useEffect as f,useImperativeHandle as p,useLayoutEffect as m,useMemo as y,useRef as g,useState as b}from"react";function h(e,t,r){return l.apply(void 0,arguments)}function v(e){return b(e)}function w(e){return g(e)}function O(e,t){f(e,t)}function S(e,t){m(e,t)}function P(e,t){return y(e,t)}function x(e,t){return u(e,t)}function A(e,t,r){return p(e,t,r)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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{hasOwnProperty:j,toString:E}=Object.prototype;function F(e){return e||{}}import{Children as M,createPortal as N,forwardRef as T}from"react";function C(e){return T(e)}var z,D=["auto","lazy","eager","unload"],L={auto:0,lazy:1,eager:2,unload:3},U=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],$=[null,"paint","layout","content","size","size paint","size layout","strict"],k={"position":"relative","width":"100%","height":"100%"},B=C((function(e,t){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:c,contentRef:u,contentStyle:d,layout:f=!1,paint:p=!1,size:m=!1,"style":y,wrapperClassName:g,wrapperStyle:b}=e;const v=(m?4:0)+(f?2:0)+(p?1:0);return h(o,r(r({},n(e,U)),{},{ref:t,class:`${l||""} ${g||""}`.trim()||null,style:r(r(r({},y),b),{},{contain:$[v]})}),h(i,r(r({},c),{},{ref:u,class:s,style:r(r({},m&&k),{},{"overflow":p?"hidden":"visible"},d)}),a))})),H=["as","children","class","style","wrapperClassName","wrapperStyle"];function I(e){const t=w(null);return t.current=e,t}function G(){const e=z||(z=a({renderable:!0,playable:!0,loading:"auto"},void 0));return d(e)}C((function(e,t){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:c}=e;return h(o,r(r({},n(e,H)),{},{ref:t,class:`${l||""} ${s||""}`.trim()||null,style:r(r({},i),c)}),a)}));var V=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],q=()=>!1,J=C((function(e,t){let{allow:o,allowFullScreen:a,allowTransparency:l,iframeStyle:i,name:s,title:c,matchesMessagingOrigin:u=q,messageHandler:d,ready:f=!0,loading:p,onReadyState:m,sandbox:y,src:g}=e,b=n(e,V);const{playable:v}=G(),P=function(e){const{loading:t}=G();return function(e,t){const r=L[e]||0,n=L[t]||0,o=Math.max(r,n);return D[o]}(e,t)}(p),_="unload"!==P,R=w(!1),j=I(m),E=x((e=>{if(e!==R.current){R.current=e;const t=j.current;null==t||t(e?"complete":"loading")}}),[j]),F=w(null);return A(t,(()=>({get readyState(){return R.current?"complete":"loading"},get node(){return F.current}})),[]),S((()=>{_||E(!1)}),[_,E]),O((()=>{const e=F.current;if(!v&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),S((()=>{const e=F.current;if(!e||!_)return;const t=e=>{const t=F.current;t&&e.source==t.contentWindow&&u(e.origin)&&d(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[u,d,_,f]),h(B,r(r({},b),{},{layout:!0,size:!0,paint:!0}),_&&f&&h("iframe",{allow:o,allowFullScreen:a,allowTransparency:l,frameborder:"0",loading:P,name:s,onLoad:()=>E(!0),part:"iframe",ref:F,sandbox:y,scrolling:"no",src:g,style:r(r({},i),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}));J.displayName="IframeEmbed";var{isArray:W}=Array;function Z(e,t){return e}function K(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function Q(e){let t=null,r="";for(var n,o=R(arguments,!0);!(n=o()).done;){const e=n.value;e instanceof Error&&!t?t=K(e):(r&&(r+=" "),r+=e)}return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function X(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function Y(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}var ee=self.AMP_CONFIG||{},te=("string"==typeof ee.thirdPartyFrameRegex?new RegExp(ee.thirdPartyFrameRegex):ee.thirdPartyFrameRegex,("string"==typeof ee.cdnProxyRegex?new RegExp(ee.cdnProxyRegex):ee.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function re(e){if(!self.document||!self.document.head)return null;if(self.location&&te.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var ne,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2109082106000/vendor/${e}.mjs`}function ie(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}ee.cdnUrl||re("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||re("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var se=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],ce={},ue="sync-xhr 'none'",de=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),fe=C((function(e,t){let{allow:o=ue,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=de,src:u,type:d,title:f=d}=e,p=n(e,se);if(m=o,"number"!=typeof g&&(g=0),g+(y=ue).length>m.length||-1===m.indexOf(y,g))throw new Error(`'allow' prop must contain "${ue}". Found "${o}".`);var m,y,g;const b=w(null),x=w(null),_=P((()=>(ce[d]||(ce[d]=function(){let e=0;return()=>String(++e)}()),ce[d]())),[d]),[R,j]=v({name:l,src:u}),{name:E,src:M}=R,N=w(null);return S((()=>{var e,t;const r=null===(e=b.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?((o=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2109082106000/frame.html`):"about:blank";var o;if(l)return void j({name:l,src:n});if(!r)return;N.current||(N.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+ie(e)}(r));const a=Object.assign(F({"location":{"href":r.location.href},"sentinel":N.current})),i=Object.assign(F({"title":f,"type":d,"_context":a}),s);var c;j({name:JSON.stringify(F({"host":(c=n,ne||(ne=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(ne,c)).hostname,"bootstrap":le(d),"type":d,"count":_,"attributes":i})),src:n})}),[_,l,s,u,f,d]),O((()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[E]),A(t,(()=>({get readyState(){var e;return null===(e=x.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=x.current)||void 0===e?void 0:e.node}})),[]),h(J,r({allow:o,contentRef:b,messageHandler:i,name:E,ref:x,ready:!!E,sandbox:a?void 0:c,src:M,title:f},p))}));fe.displayName="ProxyIframeEmbed";var pe=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],me=()=>!0,ye="Facebook comments",ge=C((function(e,t){let{action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,kdSite:d,layout:f,locale:p,numPosts:m,onLoad:y,orderBy:g,refLabel:b,requestResize:w,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,style:E,tabs:F,title:M=ye}=e,N=n(e,pe);const[T,C]=v(null),z=I(y),D=x((e=>{var t;const r=null!==(t=Y(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=Z(e).indexOf("{");return Y(Z(e).substr(t),(t=>{!function(e){const t=Q.apply(null,arguments);setTimeout((()=>{throw X(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);var n;if("ready"==r.action&&(null===(n=z.current)||void 0===n||n.call(z)),"embed-size"==r.type){const e=r.height;w?(w(e),C("100%")):C(e)}}),[w,z]),[L,U]=v(p);S((()=>{var e,r;if(p)return void U(p);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&U(n.navigator.language.replace("-","_"))}),[p,t]);const $=P((()=>({action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,"kd_site":d,layout:f,locale:L,numPosts:m,orderBy:g,ref:b,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,tabs:F})),[o,a,l,i,s,c,u,d,f,L,m,g,b,O,A,_,R,j,F]);return h(fe,r(r({options:$,ref:t,title:M},N),{},{excludeSandbox:!0,matchesMessagingOrigin:me,messageHandler:D,type:"facebook",style:T?r(r({},E),{},{height:T}):E}))}));ge.displayName="Facebook";export{ge as Facebook};
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}import{cloneElement as o,createContext as a,createElement as l,createRef as i}from"react";import{hydrate as s,render as c}from"react-dom";import{useCallback as u,useContext as d,useEffect as f,useImperativeHandle as p,useLayoutEffect as m,useMemo as y,useRef as g,useState as b}from"react";function h(e,t,r){return l.apply(void 0,arguments)}function v(e){return b(e)}function w(e){return g(e)}function O(e,t){f(e,t)}function S(e,t){m(e,t)}function P(e,t){return y(e,t)}function x(e,t){return u(e,t)}function A(e,t,r){return p(e,t,r)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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{hasOwnProperty:j,toString:E}=Object.prototype;function M(e){return e||{}}import{Children as F,createPortal as N,forwardRef as T}from"react";function C(e){return T(e)}var k=["auto","lazy","eager","unload"],z={auto:0,lazy:1,eager:2,unload:3},D=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],L=[null,"paint","layout","content","size","size paint","size layout","strict"],U={"position":"relative","width":"100%","height":"100%"},$=C((function(e,t){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:c,contentRef:u,contentStyle:d,layout:f=!1,paint:p=!1,size:m=!1,"style":y,wrapperClassName:g,wrapperStyle:b}=e;const v=(m?4:0)+(f?2:0)+(p?1:0);return h(o,r(r({},n(e,D)),{},{ref:t,class:`${l||""} ${g||""}`.trim()||null,style:r(r(r({},y),b),{},{contain:L[v]})}),h(i,r(r({},c),{},{ref:u,class:s,style:r(r({},m&&U),{},{"overflow":p?"hidden":"visible"},d)}),a))})),B=["as","children","class","style","wrapperClassName","wrapperStyle"];function H(e){const t=w(null);return t.current=e,t}C((function(e,t){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:c}=e;return h(o,r(r({},n(e,B)),{},{ref:t,class:`${l||""} ${s||""}`.trim()||null,style:r(r({},i),c)}),a)}));var I,{isArray:G}=Array;function V(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}function W(e,t){return e}function q(){const e=I||(I=a({renderable:!0,playable:!0,loading:"auto"},void 0));return d(e)}new WeakMap,new WeakMap;var J=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],Z=()=>!1,K=C((function(e,t){let{allow:o,allowFullScreen:a,allowTransparency:l,iframeStyle:i,name:s,title:c,matchesMessagingOrigin:u=Z,messageHandler:d,ready:f=!0,loading:p,onReadyState:m,sandbox:y,src:g}=e,b=n(e,J);const{playable:v}=q(),P=function(e){const{loading:t}=q();return function(e,t){const r=z[e]||0,n=z[t]||0,o=Math.max(r,n);return k[o]}(e,t)}(p),_="unload"!==P,R=w(!1),j=H(m),E=x((e=>{if(e!==R.current){R.current=e;const t=j.current;null==t||t(e?"complete":"loading")}}),[j]),M=w(null);return A(t,(()=>({get readyState(){return R.current?"complete":"loading"},get node(){return M.current}})),[]),S((()=>{_||E(!1)}),[_,E]),O((()=>{const e=M.current;if(!v&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),S((()=>{const e=M.current;if(!e||!_)return;const t=e=>{const t=M.current;t&&e.source==t.contentWindow&&u(e.origin)&&d(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[u,d,_,f]),h($,r(r({},b),{},{layout:!0,size:!0,paint:!0}),_&&f&&h("iframe",{allow:o,allowFullScreen:a,allowTransparency:l,frameborder:"0",loading:P,name:s,onLoad:()=>E(!0),part:"iframe",ref:M,sandbox:y,scrolling:"no",src:g,style:r(r({},i),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}));function Q(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function X(e){let t=null,r="";for(var n,o=R(arguments,!0);!(n=o()).done;){const e=n.value;e instanceof Error&&!t?t=Q(e):(r&&(r+=" "),r+=e)}return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function Y(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}K.displayName="IframeEmbed";var ee=self.AMP_CONFIG||{},te=("string"==typeof ee.thirdPartyFrameRegex?new RegExp(ee.thirdPartyFrameRegex):ee.thirdPartyFrameRegex,("string"==typeof ee.cdnProxyRegex?new RegExp(ee.cdnProxyRegex):ee.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function re(e){if(!self.document||!self.document.head)return null;if(self.location&&te.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var ne,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2109100544000/vendor/${e}.mjs`}function ie(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}ee.cdnUrl||re("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||re("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var se=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],ce={},ue="sync-xhr 'none'",de=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),fe=C((function(e,t){let{allow:o=ue,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=de,src:u,type:d,title:f=d}=e,p=n(e,se);if(m=o,"number"!=typeof g&&(g=0),g+(y=ue).length>m.length||-1===m.indexOf(y,g))throw new Error(`'allow' prop must contain "${ue}". Found "${o}".`);var m,y,g;const b=w(null),x=w(null),_=P((()=>(ce[d]||(ce[d]=function(){let e=0;return()=>String(++e)}()),ce[d]())),[d]),[R,j]=v({name:l,src:u}),{name:E,src:F}=R,N=w(null);return S((()=>{var e,t;const r=null===(e=b.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?((o=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2109100544000/frame.html`):"about:blank";var o;if(l)return void j({name:l,src:n});if(!r)return;N.current||(N.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+ie(e)}(r));const a=Object.assign(M({"location":{"href":r.location.href},"sentinel":N.current})),i=Object.assign(M({"title":f,"type":d,"_context":a}),s);var c;j({name:JSON.stringify(M({"host":(c=n,ne||(ne=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(ne,c)).hostname,"bootstrap":le(d),"type":d,"count":_,"attributes":i})),src:n})}),[_,l,s,u,f,d]),O((()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[E]),A(t,(()=>({get readyState(){var e;return null===(e=x.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=x.current)||void 0===e?void 0:e.node}})),[]),h(K,r({allow:o,contentRef:b,messageHandler:i,name:E,ref:x,ready:!!E,sandbox:a?void 0:c,src:F,title:f},p))}));fe.displayName="ProxyIframeEmbed";var pe=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],me=()=>!0,ye="Facebook comments",ge=C((function(e,t){let{action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,kdSite:d,layout:f,locale:p,numPosts:m,onLoad:y,orderBy:g,refLabel:b,requestResize:w,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,style:E,tabs:M,title:F=ye}=e,N=n(e,pe);const[T,C]=v(null),k=H(y),z=x((e=>{var t;const r=null!==(t=V(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=W(e).indexOf("{");return V(W(e).substr(t),(t=>{!function(e){const t=X.apply(null,arguments);setTimeout((()=>{throw Y(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);var n;if("ready"==r.action&&(null===(n=k.current)||void 0===n||n.call(k)),"embed-size"==r.type){const e=r.height;w?(w(e),C("100%")):C(e)}}),[w,k]),[D,L]=v(p);S((()=>{var e,r;if(p)return void L(p);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&L(n.navigator.language.replace("-","_"))}),[p,t]);const U=P((()=>({action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,"kd_site":d,layout:f,locale:D,numPosts:m,orderBy:g,ref:b,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,tabs:M})),[o,a,l,i,s,c,u,d,f,D,m,g,b,O,A,_,R,j,M]);return h(fe,r(r({options:U,ref:t,title:F},N),{},{excludeSandbox:!0,matchesMessagingOrigin:me,messageHandler:z,type:"facebook",style:T?r(r({},E),{},{height:T}):E}))}));ge.displayName="Facebook";export{ge as Facebook};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
{
"name": "@ampproject/amp-facebook",
"version": "1.2109082106.0",
"version": "1.2109100544.0",
"description": "AMP HTML amp-facebook Component",

@@ -5,0 +5,0 @@ "author": "The AMP HTML Authors",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc