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.2108132216.0 to 1.2108170213.0

2

dist/component-preact.js
;
bent;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,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.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)};__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("preact")),preactDOM=__toModule(require("preact")),hooks=__toModule(require("preact/hooks"));function createElement2(e,r,t){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,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}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)}}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,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,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty2(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty2(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,s=e.contentClassName,l=e.contentProps,u=e.contentRef,f=e.contentStyle,p=e.layout,d=void 0!==p&&p,y=e.paint,b=void 0!==y&&y,_=e.size,m=void 0!==_&&_,h=e.style,g=e.wrapperClassName,v=e.wrapperStyle,O=(m?4:0)+(d?2:0)+(b?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:r,className:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},h),v),{},{contain:CONTAIN[O]})}),createElement2(c,_objectSpread(_objectSpread({},l),{},{ref:u,className:s,style:_objectSpread(_objectSpread({},m&&SIZE_CONTENT_STYLE),{},{"overflow":b?"hidden":"visible"},f)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys2(Object(t),!0).forEach((function(r){_defineProperty3(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys2(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty3(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties2(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose2(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose2(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,s=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),s)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}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"];function ownKeys3(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread3(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys3(Object(t),!0).forEach((function(r){_defineProperty4(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys3(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty4(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties3(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose3(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose3(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,s=e.matchesMessagingOrigin,l=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,u=e.messageHandler,f=e.ready,p=void 0===f||f,d=e.loading,y=e.onReadyState,b=e.sandbox,_=e.src,m=_objectWithoutProperties3(e,_excluded3),h=useAmpContext().playable,g=useLoading(d),v=g!==Loading.UNLOAD,O=useRef2(!1),P=useValueRef(y),A=useCallback2((function(e){if(e!==O.current){O.current=e;var r=P.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[P]),j=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return O.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return j.current}}}),[]),useLayoutEffect2((function(){v||A(!1)}),[v,A]),useEffect2((function(){var e=j.current;if(!h&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[h]),useLayoutEffect2((function(){var e=j.current;if(e&&v){var r=function(e){var r=j.current;r&&e.source==r.contentWindow&&l(e.origin)&&u(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,u,v,p]),createElement2(ContainWrapper,_objectSpread3(_objectSpread3({},m),{},{layout:!0,size:!0,paint:!0}),v&&p&&createElement2("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return A(!0)},part:"iframe",ref:j,sandbox:b,scrolling:"no",src:_,style:_objectSpread3(_objectSpread3({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2108132216000"}IframeEmbed.displayName="IframeEmbed";var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}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,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),c=i.shift(),s=[c];i.length;){var l=arguments[a++],u=i.shift();c+=elementStringOrPassThru(l)+u,s.push(l,u.trim())}var f=new Error(c);throw f.messageArray=remove(s,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,f),f}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,c,s,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,c,s,l,u))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(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 r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.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")};function _createForOfIteratorHelper(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){var r,t=null,n="",o=_createForOfIteratorHelper(arguments);try{for(o.s();!(r=o.n()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}}catch(e){o.e(e)}finally{o.f()}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var logs=self.__AMP_LOG;function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,LruCache=function(){function e(r){_classCallCheck(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=map()}return _createClass(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var r=this.cache_[e];if(r)return r.access=++this.access_,r.payload}},{key:"put",value:function(e,r){this.has(e)||this.size_++,this.cache_[e]={payload:r,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,r=this.cache_,t=this.access_+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.size_--)}}}]),e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,r?null:urlCache)}function parseUrlWithA(e,r,t){if(t&&t.has(r))return t.get(r);e.href=r,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 t&&t.put(r,a),a}function getBootstrapUrl(e){return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(".js"):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+".js"}function getDefaultBootstrapBaseUrl(e,r){var t=r||"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(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r=urls.thirdParty;return"https://3p.ampproject.net"==r&&(r="http://ads.localhost"),r+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function ownKeys4(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread4(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys4(Object(t),!0).forEach((function(r){_defineProperty5(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys4(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty5(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray2(e,r)||_nonIterableRest()}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 _unsupportedIterableToArray2(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(e,r):void 0}}function _arrayLikeToArray2(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _iterableToArrayLimit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties4(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose4(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose4(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var countGenerators={},MessageType={EMBED_SIZE:"embed-size"},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,s=e.messageHandler,l=e.options,u=e.sandbox,f=void 0===u?DEFAULT_SANDBOX:u,p=e.src,d=e.type,y=e.title,b=void 0===y?d:y,_=_objectWithoutProperties4(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),g=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:c,src:p}),2),O=v[0],P=O.name,A=O.src,j=v[1];return useLayoutEffect2((function(){var e,r,t=null===(e=m.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=p?p:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(c)j({name:c,src:n});else if(t){var i=Object.assign(dict({"location":{"href":t.location.href},"sentinel":generateSentinel(t)}),a),s=Object.assign(dict({"title":b,"type":d,"_context":i}),l);j({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":null!=o?o:getBootstrapUrl(d),"type":d,"count":g,"attributes":s})),src:n})}}),[o,a,g,c,l,p,b,d]),useEffect2((function(){var e,r=null===(e=h.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[P]),useImperativeHandle2(r,(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,_objectSpread4({allow:n,contentRef:m,messageHandler:s,name:P,ref:h,ready:!!P,sandbox:i?void 0:f,src:A,title:b},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-";function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.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","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ownKeys5(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread5(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys5(Object(t),!0).forEach((function(r){_defineProperty6(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys5(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty6(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray2(e,r){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,r)||_unsupportedIterableToArray3(e,r)||_nonIterableRest2()}function _nonIterableRest2(){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 _unsupportedIterableToArray3(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray3(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray3(e,r):void 0}}function _arrayLikeToArray3(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _iterableToArrayLimit2(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return a}}function _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties5(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose5(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose5(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,s=e.includeCommentParent,l=e.kdSite,u=e.layout,f=e.locale,p=e.numPosts,d=e.onReady,y=e.orderBy,b=e.refLabel,_=e.requestResize,m=e.share,h=e.showFacepile,g=e.showText,v=e.size,O=e.smallHeader,P=e.style,A=e.tabs,j=e.title,S=void 0===j?DEFAULT_TITLE:j,w=_objectWithoutProperties5(e,_excluded5),E=_slicedToArray2(useState2(null),2),R=E[0],x=E[1],T=useCallback2((function(e){var r,t=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==t.action&&(null==d||d()),t.type==MessageType.EMBED_SIZE){var n=t.height;_?(_(n),x(FULL_HEIGHT)):x(n)}}),[_,d]),L=_slicedToArray2(useState2(f),2),I=L[0],M=L[1];return useLayoutEffect2((function(){var e,t;if(f)M(f);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;n&&M(dashToUnderline(n.navigator.language))}}),[f,r]),createElement2(ProxyIframeEmbed,_objectSpread5(_objectSpread5({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:s,"kd_site":l,layout:u,locale:I,numPosts:p,orderBy:y,ref:b,share:m,showFacepile:h,showText:g,size:v,smallHeader:O,tabs:A},ref:r,title:S},w),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:T,type:TYPE,style:R?_objectSpread5(_objectSpread5({},P),{},{height:R}):P}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
bent;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,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.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)};__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("preact")),preactDOM=__toModule(require("preact")),hooks=__toModule(require("preact/hooks"));function createElement2(e,r,t){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,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}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)}}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,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,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty2(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty2(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,s=e.contentClassName,l=e.contentProps,u=e.contentRef,f=e.contentStyle,p=e.layout,d=void 0!==p&&p,y=e.paint,b=void 0!==y&&y,_=e.size,m=void 0!==_&&_,h=e.style,g=e.wrapperClassName,v=e.wrapperStyle,O=(m?4:0)+(d?2:0)+(b?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:r,className:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},h),v),{},{contain:CONTAIN[O]})}),createElement2(c,_objectSpread(_objectSpread({},l),{},{ref:u,className:s,style:_objectSpread(_objectSpread({},m&&SIZE_CONTENT_STYLE),{},{"overflow":b?"hidden":"visible"},f)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys2(Object(t),!0).forEach((function(r){_defineProperty3(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys2(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty3(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties2(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose2(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose2(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,s=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),s)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}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"];function ownKeys3(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread3(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys3(Object(t),!0).forEach((function(r){_defineProperty4(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys3(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty4(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties3(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose3(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose3(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,s=e.matchesMessagingOrigin,l=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,u=e.messageHandler,f=e.ready,p=void 0===f||f,d=e.loading,y=e.onReadyState,b=e.sandbox,_=e.src,m=_objectWithoutProperties3(e,_excluded3),h=useAmpContext().playable,g=useLoading(d),v=g!==Loading.UNLOAD,O=useRef2(!1),P=useValueRef(y),A=useCallback2((function(e){if(e!==O.current){O.current=e;var r=P.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[P]),j=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return O.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return j.current}}}),[]),useLayoutEffect2((function(){v||A(!1)}),[v,A]),useEffect2((function(){var e=j.current;if(!h&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[h]),useLayoutEffect2((function(){var e=j.current;if(e&&v){var r=function(e){var r=j.current;r&&e.source==r.contentWindow&&l(e.origin)&&u(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,u,v,p]),createElement2(ContainWrapper,_objectSpread3(_objectSpread3({},m),{},{layout:!0,size:!0,paint:!0}),v&&p&&createElement2("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return A(!0)},part:"iframe",ref:j,sandbox:b,scrolling:"no",src:_,style:_objectSpread3(_objectSpread3({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2108170213000"}IframeEmbed.displayName="IframeEmbed";var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}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,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),c=i.shift(),s=[c];i.length;){var l=arguments[a++],u=i.shift();c+=elementStringOrPassThru(l)+u,s.push(l,u.trim())}var f=new Error(c);throw f.messageArray=remove(s,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,f),f}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,c,s,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,c,s,l,u))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(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 r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.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")};function _createForOfIteratorHelper(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){var r,t=null,n="",o=_createForOfIteratorHelper(arguments);try{for(o.s();!(r=o.n()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}}catch(e){o.e(e)}finally{o.f()}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var logs=self.__AMP_LOG;function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,LruCache=function(){function e(r){_classCallCheck(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=map()}return _createClass(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var r=this.cache_[e];if(r)return r.access=++this.access_,r.payload}},{key:"put",value:function(e,r){this.has(e)||this.size_++,this.cache_[e]={payload:r,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,r=this.cache_,t=this.access_+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.size_--)}}}]),e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,r?null:urlCache)}function parseUrlWithA(e,r,t){if(t&&t.has(r))return t.get(r);e.href=r,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 t&&t.put(r,a),a}function getBootstrapUrl(e){return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(".js"):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+".js"}function getDefaultBootstrapBaseUrl(e,r){var t=r||"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(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r=urls.thirdParty;return"https://3p.ampproject.net"==r&&(r="http://ads.localhost"),r+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function ownKeys4(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread4(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys4(Object(t),!0).forEach((function(r){_defineProperty5(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys4(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty5(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray2(e,r)||_nonIterableRest()}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 _unsupportedIterableToArray2(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(e,r):void 0}}function _arrayLikeToArray2(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _iterableToArrayLimit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties4(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose4(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose4(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var countGenerators={},MessageType={EMBED_SIZE:"embed-size"},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,s=e.messageHandler,l=e.options,u=e.sandbox,f=void 0===u?DEFAULT_SANDBOX:u,p=e.src,d=e.type,y=e.title,b=void 0===y?d:y,_=_objectWithoutProperties4(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),g=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:c,src:p}),2),O=v[0],P=v[1],A=O.name,j=O.src;return useLayoutEffect2((function(){var e,r,t=null===(e=m.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=p?p:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(c)P({name:c,src:n});else if(t){var i=Object.assign(dict({"location":{"href":t.location.href},"sentinel":generateSentinel(t)}),a),s=Object.assign(dict({"title":b,"type":d,"_context":i}),l);P({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":null!=o?o:getBootstrapUrl(d),"type":d,"count":g,"attributes":s})),src:n})}}),[o,a,g,c,l,p,b,d]),useEffect2((function(){var e,r=null===(e=h.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[A]),useImperativeHandle2(r,(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,_objectSpread4({allow:n,contentRef:m,messageHandler:s,name:A,ref:h,ready:!!A,sandbox:i?void 0:f,src:j,title:b},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-";function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.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","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ownKeys5(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread5(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys5(Object(t),!0).forEach((function(r){_defineProperty6(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys5(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty6(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray2(e,r){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,r)||_unsupportedIterableToArray3(e,r)||_nonIterableRest2()}function _nonIterableRest2(){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 _unsupportedIterableToArray3(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray3(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray3(e,r):void 0}}function _arrayLikeToArray3(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _iterableToArrayLimit2(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return a}}function _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties5(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose5(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose5(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,s=e.includeCommentParent,l=e.kdSite,u=e.layout,f=e.locale,p=e.numPosts,d=e.onReady,y=e.orderBy,b=e.refLabel,_=e.requestResize,m=e.share,h=e.showFacepile,g=e.showText,v=e.size,O=e.smallHeader,P=e.style,A=e.tabs,j=e.title,S=void 0===j?DEFAULT_TITLE:j,w=_objectWithoutProperties5(e,_excluded5),E=_slicedToArray2(useState2(null),2),R=E[0],x=E[1],T=useCallback2((function(e){var r,t=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==t.action&&(null==d||d()),t.type==MessageType.EMBED_SIZE){var n=t.height;_?(_(n),x(FULL_HEIGHT)):x(n)}}),[_,d]),L=_slicedToArray2(useState2(f),2),I=L[0],M=L[1];return useLayoutEffect2((function(){var e,t;if(f)M(f);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;n&&M(dashToUnderline(n.navigator.language))}}),[f,r]),createElement2(ProxyIframeEmbed,_objectSpread5(_objectSpread5({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:s,"kd_site":l,layout:u,locale:I,numPosts:p,orderBy:y,ref:b,share:m,showFacepile:h,showText:g,size:v,smallHeader:O,tabs:A},ref:r,title:S},w),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:T,type:TYPE,style:R?_objectSpread5(_objectSpread5({},P),{},{height:R}):P}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -444,3 +444,3 @@ bent

function version() {
return "2108132216000";
return "2108170213000";
}

@@ -924,3 +924,4 @@

src: srcProp
}), _useState$ = _useState[0], name = _useState$.name, src = _useState$.src, setNameAndSrc = _useState[1];
}), nameAndSrc = _useState[0], setNameAndSrc = _useState[1];
var name = nameAndSrc.name, src = nameAndSrc.src;
useLayoutEffect2(function() {

@@ -927,0 +928,0 @@ var _contentRef$current, _contentRef$current$o;

@@ -453,3 +453,3 @@ bent

function version() {
return "2108132216000";
return "2108170213000";
}

@@ -821,9 +821,10 @@

}, [type]);
const [{
name,
src
}, setNameAndSrc] = useState2({
const [nameAndSrc, setNameAndSrc] = useState2({
name: nameProp,
src: srcProp
});
const {
name,
src
} = nameAndSrc;
useLayoutEffect2(() => {

@@ -830,0 +831,0 @@ var _contentRef$current, _contentRef$current$o;

;
bent;import{cloneElement as e,createContext as t,createElement as r,createRef as n}from"preact";import{hydrate as o,render as a}from"preact";import{useCallback as l,useContext as i,useEffect as c,useImperativeHandle as s,useLayoutEffect as u,useMemo as f,useRef as p,useState as y}from"preact/hooks";function b(e,t,n){return r.apply(void 0,arguments)}function d(e){return y(e)}function O(e){return p(e)}function m(e,t){c(e,t)}function g(e,t){u(e,t)}function w(e,t){return l(e,t)}function v(e,t,r){return s(e,t,r)}var{hasOwnProperty:h,toString:j}=Object.prototype;function P(e){return e||{}}import{Children as S,createPortal as x,forwardRef as E}from"preact/compat";function _(e){return E(e)}var D=["auto","lazy","eager","unload"],R={auto:0,lazy:1,eager:2,unload:3},A=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function N(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 k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){F(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function F(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M,T=[null,"paint","layout","content","size","size paint","size layout","strict"],C={"position":"relative","width":"100%","height":"100%"},z=_((function(e,t){let{as:r="div",children:n,"className":o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:s,layout:u=!1,paint:f=!1,size:p=!1,"style":y,wrapperClassName:d,wrapperStyle:O}=e;const m=(p?4:0)+(u?2:0)+(f?1:0);return b(r,k(k({},function(e,t){if(null==e)return{};var r,n,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,A)),{},{ref:t,className:`${o||""} ${d||""}`.trim()||null,style:k(k(k({},y),O),{},{contain:T[m]})}),b(a,k(k({},i),{},{ref:c,className:l,style:k(k({},p&&C),{},{"overflow":f?"hidden":"visible"},s)}),n))})),U=["as","children","className","style","wrapperClassName","wrapperStyle"];function $(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 I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(){const e=M||(M=t({renderable:!0,playable:!0,loading:"auto"},void 0));return i(e)}_((function(e,t){let{as:r="div",children:n,"className":o,"style":a,wrapperClassName:l,wrapperStyle:i}=e;return b(r,I(I({},function(e,t){if(null==e)return{};var r,n,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,U)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:I(I({},a),i)}),n)}));var H=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function G(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 V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var J=()=>!1,W=_((function(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=J,messageHandler:s,ready:u=!0,loading:f,onReadyState:p,sandbox:y,src:d}=e,h=function(e,t){if(null==e)return{};var r,n,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,H);const{playable:j}=B(),P=function(e){const{loading:t}=B();return function(e,t){const r=R[e]||0,n=R[t]||0,o=Math.max(r,n);return D[o]}(e,t)}(f),S="unload"!==P,x=O(!1),E=function(e){const t=O(null);return t.current=e,t}(p),_=w((e=>{if(e!==x.current){x.current=e;const t=E.current;null==t||t(e?"complete":"loading")}}),[E]),A=O(null);return v(t,(()=>({get readyState(){return x.current?"complete":"loading"},get node(){return A.current}})),[]),g((()=>{S||_(!1)}),[S,_]),m((()=>{const e=A.current;if(!j&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[j]),g((()=>{const e=A.current;if(!e||!S)return;const t=e=>{const t=A.current;t&&e.source==t.contentWindow&&c(e.origin)&&s(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,s,S,u]),b(z,V(V({},h),{},{layout:!0,size:!0,paint:!0}),S&&u&&b("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:P,name:l,onLoad:()=>_(!0),part:"iframe",ref:A,sandbox:y,scrolling:"no",src:d,style:V(V({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));W.displayName="IframeEmbed";var{isArray:Z}=Array;function K(e,t){return e}function Q(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}var X=self.AMP_CONFIG||{},Y=("string"==typeof X.thirdPartyFrameRegex?new RegExp(X.thirdPartyFrameRegex):X.thirdPartyFrameRegex,("string"==typeof X.cdnProxyRegex?new RegExp(X.cdnProxyRegex):X.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function ee(e){if(!self.document||!self.document.head)return null;if(self.location&&Y.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var te,re=X.thirdPartyUrl||"https://3p.ampproject.net",ne=X.thirdPartyFrameHost||"ampproject.net";function oe(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 ae(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=oe(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function le(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function ie(e){return`${re}/2108132216000/vendor/${e}.mjs`}function ce(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}function se(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+ce(e)}X.cdnUrl||ee("runtime-host"),X.errorReportingUrl,X.betaErrorReportingUrl,X.localDev,X.geoApiUrl||ee("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 ue=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function fe(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 pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ye={},be="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(" "),Oe=_((function(e,t){let{allow:r=be,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:s=de,src:u,type:p,title:y=p}=e,w=function(e,t){if(null==e)return{};var r,n,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ue);if(h=r,"number"!=typeof S&&(S=0),S+(j=be).length>h.length||-1===h.indexOf(j,S))throw new Error(`'allow' prop must contain "${be}". Found "${r}".`);var h,j,S;const x=O(null),E=O(null),_=f((()=>(ye[p]||(ye[p]=function(){let e=0;return()=>String(++e)}()),ye[p]())),[p]),{0:{name:D,src:R},1:A}=d({name:l,src:u});return g((()=>{var e,t;const r=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=u?u:r?((i=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=i.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ce(i),"https://"+i.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ne}/2108132216000/frame.html`):"about:blank";var i;if(l)return void A({name:l,src:a});if(!r)return;const s=Object.assign(P({"location":{"href":r.location.href},"sentinel":se(r)}),o),f=Object.assign(P({"title":y,"type":p,"_context":s}),c);var b;A({name:JSON.stringify(P({"host":(b=a,te||(te=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(te,b)).hostname,"bootstrap":null!=n?n:ie(p),"type":p,"count":_,"attributes":f})),src:a})}),[n,o,_,l,c,u,y,p]),m((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[D]),v(t,(()=>({get readyState(){var e;return null===(e=E.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=E.current)||void 0===e?void 0:e.node}})),[]),b(W,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allow:r,contentRef:x,messageHandler:i,name:D,ref:E,ready:!!D,sandbox:a?void 0:s,src:R,title:y},w))}));Oe.displayName="ProxyIframeEmbed";var me=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ge(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 we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(r),!0).forEach((function(t){ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var he=()=>!0,je="Facebook comments",Pe=_((function(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:s,layout:u,locale:f,numPosts:p,onReady:y,orderBy:O,refLabel:m,requestResize:v,share:h,showFacepile:j,showText:P,size:S,smallHeader:x,style:E,tabs:_,title:D=je}=e,R=function(e,t){if(null==e)return{};var r,n,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,me);const{0:A,1:N}=d(null),k=w((e=>{var t;const r=null!==(t=Q(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=K(e).indexOf("{");return Q(K(e).substr(t),(t=>{!function(e){const t=ae.apply(null,arguments);setTimeout((()=>{throw le(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("ready"==r.action&&(null==y||y()),"embed-size"==r.type){const e=r.height;v?(v(e),N("100%")):N(e)}}),[v,y]),{0:F,1:M}=d(f);return g((()=>{var e,r;if(f)return void M(f);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&M(n.navigator.language.replace("-","_"))}),[f,t]),b(Oe,we(we({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,"kd_site":s,layout:u,locale:F,numPosts:p,orderBy:O,ref:m,share:h,showFacepile:j,showText:P,size:S,smallHeader:x,tabs:_},ref:t,title:D},R),{},{excludeSandbox:!0,matchesMessagingOrigin:he,messageHandler:k,type:"facebook",style:A?we(we({},E),{},{height:A}):E}))}));Pe.displayName="Facebook";export{Pe as Facebook};
bent;import{cloneElement as e,createContext as t,createElement as r,createRef as n}from"preact";import{hydrate as o,render as a}from"preact";import{useCallback as l,useContext as i,useEffect as c,useImperativeHandle as s,useLayoutEffect as u,useMemo as f,useRef as p,useState as y}from"preact/hooks";function b(e,t,n){return r.apply(void 0,arguments)}function d(e){return y(e)}function O(e){return p(e)}function m(e,t){c(e,t)}function g(e,t){u(e,t)}function w(e,t){return l(e,t)}function v(e,t,r){return s(e,t,r)}var{hasOwnProperty:h,toString:j}=Object.prototype;function P(e){return e||{}}import{Children as S,createPortal as x,forwardRef as E}from"preact/compat";function _(e){return E(e)}var D=["auto","lazy","eager","unload"],R={auto:0,lazy:1,eager:2,unload:3},A=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function N(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 k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){F(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function F(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M,T=[null,"paint","layout","content","size","size paint","size layout","strict"],C={"position":"relative","width":"100%","height":"100%"},z=_((function(e,t){let{as:r="div",children:n,"className":o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:s,layout:u=!1,paint:f=!1,size:p=!1,"style":y,wrapperClassName:d,wrapperStyle:O}=e;const m=(p?4:0)+(u?2:0)+(f?1:0);return b(r,k(k({},function(e,t){if(null==e)return{};var r,n,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,A)),{},{ref:t,className:`${o||""} ${d||""}`.trim()||null,style:k(k(k({},y),O),{},{contain:T[m]})}),b(a,k(k({},i),{},{ref:c,className:l,style:k(k({},p&&C),{},{"overflow":f?"hidden":"visible"},s)}),n))})),U=["as","children","className","style","wrapperClassName","wrapperStyle"];function $(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 I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(){const e=M||(M=t({renderable:!0,playable:!0,loading:"auto"},void 0));return i(e)}_((function(e,t){let{as:r="div",children:n,"className":o,"style":a,wrapperClassName:l,wrapperStyle:i}=e;return b(r,I(I({},function(e,t){if(null==e)return{};var r,n,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,U)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:I(I({},a),i)}),n)}));var H=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function G(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 V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var J=()=>!1,W=_((function(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=J,messageHandler:s,ready:u=!0,loading:f,onReadyState:p,sandbox:y,src:d}=e,h=function(e,t){if(null==e)return{};var r,n,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,H);const{playable:j}=B(),P=function(e){const{loading:t}=B();return function(e,t){const r=R[e]||0,n=R[t]||0,o=Math.max(r,n);return D[o]}(e,t)}(f),S="unload"!==P,x=O(!1),E=function(e){const t=O(null);return t.current=e,t}(p),_=w((e=>{if(e!==x.current){x.current=e;const t=E.current;null==t||t(e?"complete":"loading")}}),[E]),A=O(null);return v(t,(()=>({get readyState(){return x.current?"complete":"loading"},get node(){return A.current}})),[]),g((()=>{S||_(!1)}),[S,_]),m((()=>{const e=A.current;if(!j&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[j]),g((()=>{const e=A.current;if(!e||!S)return;const t=e=>{const t=A.current;t&&e.source==t.contentWindow&&c(e.origin)&&s(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,s,S,u]),b(z,V(V({},h),{},{layout:!0,size:!0,paint:!0}),S&&u&&b("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:P,name:l,onLoad:()=>_(!0),part:"iframe",ref:A,sandbox:y,scrolling:"no",src:d,style:V(V({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));W.displayName="IframeEmbed";var{isArray:Z}=Array;function K(e,t){return e}function Q(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}var X=self.AMP_CONFIG||{},Y=("string"==typeof X.thirdPartyFrameRegex?new RegExp(X.thirdPartyFrameRegex):X.thirdPartyFrameRegex,("string"==typeof X.cdnProxyRegex?new RegExp(X.cdnProxyRegex):X.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function ee(e){if(!self.document||!self.document.head)return null;if(self.location&&Y.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var te,re=X.thirdPartyUrl||"https://3p.ampproject.net",ne=X.thirdPartyFrameHost||"ampproject.net";function oe(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 ae(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=oe(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function le(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function ie(e){return`${re}/2108170213000/vendor/${e}.mjs`}function ce(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}function se(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+ce(e)}X.cdnUrl||ee("runtime-host"),X.errorReportingUrl,X.betaErrorReportingUrl,X.localDev,X.geoApiUrl||ee("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 ue=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function fe(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 pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ye={},be="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(" "),Oe=_((function(e,t){let{allow:r=be,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:s=de,src:u,type:p,title:y=p}=e,w=function(e,t){if(null==e)return{};var r,n,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ue);if(h=r,"number"!=typeof S&&(S=0),S+(j=be).length>h.length||-1===h.indexOf(j,S))throw new Error(`'allow' prop must contain "${be}". Found "${r}".`);var h,j,S;const x=O(null),E=O(null),_=f((()=>(ye[p]||(ye[p]=function(){let e=0;return()=>String(++e)}()),ye[p]())),[p]),[D,R]=d({name:l,src:u}),{name:A,src:N}=D;return g((()=>{var e,t;const r=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=u?u:r?((i=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=i.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ce(i),"https://"+i.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ne}/2108170213000/frame.html`):"about:blank";var i;if(l)return void R({name:l,src:a});if(!r)return;const s=Object.assign(P({"location":{"href":r.location.href},"sentinel":se(r)}),o),f=Object.assign(P({"title":y,"type":p,"_context":s}),c);var b;R({name:JSON.stringify(P({"host":(b=a,te||(te=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(te,b)).hostname,"bootstrap":null!=n?n:ie(p),"type":p,"count":_,"attributes":f})),src:a})}),[n,o,_,l,c,u,y,p]),m((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[A]),v(t,(()=>({get readyState(){var e;return null===(e=E.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=E.current)||void 0===e?void 0:e.node}})),[]),b(W,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allow:r,contentRef:x,messageHandler:i,name:A,ref:E,ready:!!A,sandbox:a?void 0:s,src:N,title:y},w))}));Oe.displayName="ProxyIframeEmbed";var me=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ge(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 we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(r),!0).forEach((function(t){ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var he=()=>!0,je="Facebook comments",Pe=_((function(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:s,layout:u,locale:f,numPosts:p,onReady:y,orderBy:O,refLabel:m,requestResize:v,share:h,showFacepile:j,showText:P,size:S,smallHeader:x,style:E,tabs:_,title:D=je}=e,R=function(e,t){if(null==e)return{};var r,n,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,me);const[A,N]=d(null),k=w((e=>{var t;const r=null!==(t=Q(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=K(e).indexOf("{");return Q(K(e).substr(t),(t=>{!function(e){const t=ae.apply(null,arguments);setTimeout((()=>{throw le(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("ready"==r.action&&(null==y||y()),"embed-size"==r.type){const e=r.height;v?(v(e),N("100%")):N(e)}}),[v,y]),[F,M]=d(f);return g((()=>{var e,r;if(f)return void M(f);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&M(n.navigator.language.replace("-","_"))}),[f,t]),b(Oe,we(we({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,"kd_site":s,layout:u,locale:F,numPosts:p,orderBy:O,ref:m,share:h,showFacepile:j,showText:P,size:S,smallHeader:x,tabs:_},ref:t,title:D},R),{},{excludeSandbox:!0,matchesMessagingOrigin:he,messageHandler:k,type:"facebook",style:A?we(we({},E),{},{height:A}):E}))}));Pe.displayName="Facebook";export{Pe as Facebook};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
;
bent;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,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.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)};__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("react")),preactDOM=__toModule(require("react-dom")),hooks=__toModule(require("react"));function createElement2(e,r,t){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,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}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)}}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,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,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty2(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty2(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,s=e.contentClassName,l=e.contentProps,u=e.contentRef,f=e.contentStyle,p=e.layout,d=void 0!==p&&p,y=e.paint,b=void 0!==y&&y,_=e.size,m=void 0!==_&&_,h=e.style,g=e.wrapperClassName,v=e.wrapperStyle,O=(m?4:0)+(d?2:0)+(b?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:r,className:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},h),v),{},{contain:CONTAIN[O]})}),createElement2(c,_objectSpread(_objectSpread({},l),{},{ref:u,className:s,style:_objectSpread(_objectSpread({},m&&SIZE_CONTENT_STYLE),{},{"overflow":b?"hidden":"visible"},f)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys2(Object(t),!0).forEach((function(r){_defineProperty3(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys2(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty3(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties2(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose2(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose2(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,s=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),s)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}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"];function ownKeys3(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread3(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys3(Object(t),!0).forEach((function(r){_defineProperty4(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys3(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty4(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties3(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose3(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose3(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,s=e.matchesMessagingOrigin,l=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,u=e.messageHandler,f=e.ready,p=void 0===f||f,d=e.loading,y=e.onReadyState,b=e.sandbox,_=e.src,m=_objectWithoutProperties3(e,_excluded3),h=useAmpContext().playable,g=useLoading(d),v=g!==Loading.UNLOAD,O=useRef2(!1),P=useValueRef(y),A=useCallback2((function(e){if(e!==O.current){O.current=e;var r=P.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[P]),j=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return O.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return j.current}}}),[]),useLayoutEffect2((function(){v||A(!1)}),[v,A]),useEffect2((function(){var e=j.current;if(!h&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[h]),useLayoutEffect2((function(){var e=j.current;if(e&&v){var r=function(e){var r=j.current;r&&e.source==r.contentWindow&&l(e.origin)&&u(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,u,v,p]),createElement2(ContainWrapper,_objectSpread3(_objectSpread3({},m),{},{layout:!0,size:!0,paint:!0}),v&&p&&createElement2("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return A(!0)},part:"iframe",ref:j,sandbox:b,scrolling:"no",src:_,style:_objectSpread3(_objectSpread3({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2108132216000"}IframeEmbed.displayName="IframeEmbed";var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}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,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),c=i.shift(),s=[c];i.length;){var l=arguments[a++],u=i.shift();c+=elementStringOrPassThru(l)+u,s.push(l,u.trim())}var f=new Error(c);throw f.messageArray=remove(s,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,f),f}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,c,s,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,c,s,l,u))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(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 r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.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")};function _createForOfIteratorHelper(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){var r,t=null,n="",o=_createForOfIteratorHelper(arguments);try{for(o.s();!(r=o.n()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}}catch(e){o.e(e)}finally{o.f()}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var logs=self.__AMP_LOG;function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,LruCache=function(){function e(r){_classCallCheck(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=map()}return _createClass(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var r=this.cache_[e];if(r)return r.access=++this.access_,r.payload}},{key:"put",value:function(e,r){this.has(e)||this.size_++,this.cache_[e]={payload:r,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,r=this.cache_,t=this.access_+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.size_--)}}}]),e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,r?null:urlCache)}function parseUrlWithA(e,r,t){if(t&&t.has(r))return t.get(r);e.href=r,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 t&&t.put(r,a),a}function getBootstrapUrl(e){return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(".js"):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+".js"}function getDefaultBootstrapBaseUrl(e,r){var t=r||"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(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r=urls.thirdParty;return"https://3p.ampproject.net"==r&&(r="http://ads.localhost"),r+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function ownKeys4(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread4(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys4(Object(t),!0).forEach((function(r){_defineProperty5(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys4(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty5(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray2(e,r)||_nonIterableRest()}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 _unsupportedIterableToArray2(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(e,r):void 0}}function _arrayLikeToArray2(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _iterableToArrayLimit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties4(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose4(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose4(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var countGenerators={},MessageType={EMBED_SIZE:"embed-size"},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,s=e.messageHandler,l=e.options,u=e.sandbox,f=void 0===u?DEFAULT_SANDBOX:u,p=e.src,d=e.type,y=e.title,b=void 0===y?d:y,_=_objectWithoutProperties4(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),g=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:c,src:p}),2),O=v[0],P=O.name,A=O.src,j=v[1];return useLayoutEffect2((function(){var e,r,t=null===(e=m.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=p?p:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(c)j({name:c,src:n});else if(t){var i=Object.assign(dict({"location":{"href":t.location.href},"sentinel":generateSentinel(t)}),a),s=Object.assign(dict({"title":b,"type":d,"_context":i}),l);j({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":null!=o?o:getBootstrapUrl(d),"type":d,"count":g,"attributes":s})),src:n})}}),[o,a,g,c,l,p,b,d]),useEffect2((function(){var e,r=null===(e=h.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[P]),useImperativeHandle2(r,(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,_objectSpread4({allow:n,contentRef:m,messageHandler:s,name:P,ref:h,ready:!!P,sandbox:i?void 0:f,src:A,title:b},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-";function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.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","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ownKeys5(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread5(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys5(Object(t),!0).forEach((function(r){_defineProperty6(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys5(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty6(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray2(e,r){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,r)||_unsupportedIterableToArray3(e,r)||_nonIterableRest2()}function _nonIterableRest2(){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 _unsupportedIterableToArray3(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray3(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray3(e,r):void 0}}function _arrayLikeToArray3(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _iterableToArrayLimit2(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return a}}function _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties5(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose5(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose5(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,s=e.includeCommentParent,l=e.kdSite,u=e.layout,f=e.locale,p=e.numPosts,d=e.onReady,y=e.orderBy,b=e.refLabel,_=e.requestResize,m=e.share,h=e.showFacepile,g=e.showText,v=e.size,O=e.smallHeader,P=e.style,A=e.tabs,j=e.title,S=void 0===j?DEFAULT_TITLE:j,w=_objectWithoutProperties5(e,_excluded5),E=_slicedToArray2(useState2(null),2),R=E[0],x=E[1],T=useCallback2((function(e){var r,t=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==t.action&&(null==d||d()),t.type==MessageType.EMBED_SIZE){var n=t.height;_?(_(n),x(FULL_HEIGHT)):x(n)}}),[_,d]),L=_slicedToArray2(useState2(f),2),I=L[0],M=L[1];return useLayoutEffect2((function(){var e,t;if(f)M(f);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;n&&M(dashToUnderline(n.navigator.language))}}),[f,r]),createElement2(ProxyIframeEmbed,_objectSpread5(_objectSpread5({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:s,"kd_site":l,layout:u,locale:I,numPosts:p,orderBy:y,ref:b,share:m,showFacepile:h,showText:g,size:v,smallHeader:O,tabs:A},ref:r,title:S},w),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:T,type:TYPE,style:R?_objectSpread5(_objectSpread5({},P),{},{height:R}):P}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
bent;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,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.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)};__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("react")),preactDOM=__toModule(require("react-dom")),hooks=__toModule(require("react"));function createElement2(e,r,t){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,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}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)}}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,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,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty2(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty2(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,s=e.contentClassName,l=e.contentProps,u=e.contentRef,f=e.contentStyle,p=e.layout,d=void 0!==p&&p,y=e.paint,b=void 0!==y&&y,_=e.size,m=void 0!==_&&_,h=e.style,g=e.wrapperClassName,v=e.wrapperStyle,O=(m?4:0)+(d?2:0)+(b?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:r,className:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},h),v),{},{contain:CONTAIN[O]})}),createElement2(c,_objectSpread(_objectSpread({},l),{},{ref:u,className:s,style:_objectSpread(_objectSpread({},m&&SIZE_CONTENT_STYLE),{},{"overflow":b?"hidden":"visible"},f)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys2(Object(t),!0).forEach((function(r){_defineProperty3(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys2(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty3(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties2(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose2(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose2(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,s=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),s)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}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"];function ownKeys3(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread3(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys3(Object(t),!0).forEach((function(r){_defineProperty4(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys3(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty4(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties3(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose3(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose3(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,s=e.matchesMessagingOrigin,l=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,u=e.messageHandler,f=e.ready,p=void 0===f||f,d=e.loading,y=e.onReadyState,b=e.sandbox,_=e.src,m=_objectWithoutProperties3(e,_excluded3),h=useAmpContext().playable,g=useLoading(d),v=g!==Loading.UNLOAD,O=useRef2(!1),P=useValueRef(y),A=useCallback2((function(e){if(e!==O.current){O.current=e;var r=P.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[P]),j=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return O.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return j.current}}}),[]),useLayoutEffect2((function(){v||A(!1)}),[v,A]),useEffect2((function(){var e=j.current;if(!h&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[h]),useLayoutEffect2((function(){var e=j.current;if(e&&v){var r=function(e){var r=j.current;r&&e.source==r.contentWindow&&l(e.origin)&&u(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,u,v,p]),createElement2(ContainWrapper,_objectSpread3(_objectSpread3({},m),{},{layout:!0,size:!0,paint:!0}),v&&p&&createElement2("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return A(!0)},part:"iframe",ref:j,sandbox:b,scrolling:"no",src:_,style:_objectSpread3(_objectSpread3({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2108170213000"}IframeEmbed.displayName="IframeEmbed";var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}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,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),c=i.shift(),s=[c];i.length;){var l=arguments[a++],u=i.shift();c+=elementStringOrPassThru(l)+u,s.push(l,u.trim())}var f=new Error(c);throw f.messageArray=remove(s,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,f),f}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,c,s,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,c,s,l,u))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(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 r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.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")};function _createForOfIteratorHelper(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){var r,t=null,n="",o=_createForOfIteratorHelper(arguments);try{for(o.s();!(r=o.n()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}}catch(e){o.e(e)}finally{o.f()}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var logs=self.__AMP_LOG;function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,LruCache=function(){function e(r){_classCallCheck(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=map()}return _createClass(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var r=this.cache_[e];if(r)return r.access=++this.access_,r.payload}},{key:"put",value:function(e,r){this.has(e)||this.size_++,this.cache_[e]={payload:r,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,r=this.cache_,t=this.access_+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.size_--)}}}]),e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,r?null:urlCache)}function parseUrlWithA(e,r,t){if(t&&t.has(r))return t.get(r);e.href=r,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 t&&t.put(r,a),a}function getBootstrapUrl(e){return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(".js"):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+".js"}function getDefaultBootstrapBaseUrl(e,r){var t=r||"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(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r=urls.thirdParty;return"https://3p.ampproject.net"==r&&(r="http://ads.localhost"),r+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function ownKeys4(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread4(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys4(Object(t),!0).forEach((function(r){_defineProperty5(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys4(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty5(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray2(e,r)||_nonIterableRest()}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 _unsupportedIterableToArray2(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(e,r):void 0}}function _arrayLikeToArray2(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _iterableToArrayLimit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties4(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose4(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose4(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var countGenerators={},MessageType={EMBED_SIZE:"embed-size"},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,s=e.messageHandler,l=e.options,u=e.sandbox,f=void 0===u?DEFAULT_SANDBOX:u,p=e.src,d=e.type,y=e.title,b=void 0===y?d:y,_=_objectWithoutProperties4(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),g=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:c,src:p}),2),O=v[0],P=v[1],A=O.name,j=O.src;return useLayoutEffect2((function(){var e,r,t=null===(e=m.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=p?p:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(c)P({name:c,src:n});else if(t){var i=Object.assign(dict({"location":{"href":t.location.href},"sentinel":generateSentinel(t)}),a),s=Object.assign(dict({"title":b,"type":d,"_context":i}),l);P({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":null!=o?o:getBootstrapUrl(d),"type":d,"count":g,"attributes":s})),src:n})}}),[o,a,g,c,l,p,b,d]),useEffect2((function(){var e,r=null===(e=h.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[A]),useImperativeHandle2(r,(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,_objectSpread4({allow:n,contentRef:m,messageHandler:s,name:A,ref:h,ready:!!A,sandbox:i?void 0:f,src:j,title:b},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-";function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.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","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ownKeys5(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread5(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys5(Object(t),!0).forEach((function(r){_defineProperty6(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys5(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty6(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray2(e,r){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,r)||_unsupportedIterableToArray3(e,r)||_nonIterableRest2()}function _nonIterableRest2(){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 _unsupportedIterableToArray3(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray3(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray3(e,r):void 0}}function _arrayLikeToArray3(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _iterableToArrayLimit2(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return a}}function _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties5(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose5(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function _objectWithoutPropertiesLoose5(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,s=e.includeCommentParent,l=e.kdSite,u=e.layout,f=e.locale,p=e.numPosts,d=e.onReady,y=e.orderBy,b=e.refLabel,_=e.requestResize,m=e.share,h=e.showFacepile,g=e.showText,v=e.size,O=e.smallHeader,P=e.style,A=e.tabs,j=e.title,S=void 0===j?DEFAULT_TITLE:j,w=_objectWithoutProperties5(e,_excluded5),E=_slicedToArray2(useState2(null),2),R=E[0],x=E[1],T=useCallback2((function(e){var r,t=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==t.action&&(null==d||d()),t.type==MessageType.EMBED_SIZE){var n=t.height;_?(_(n),x(FULL_HEIGHT)):x(n)}}),[_,d]),L=_slicedToArray2(useState2(f),2),I=L[0],M=L[1];return useLayoutEffect2((function(){var e,t;if(f)M(f);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;n&&M(dashToUnderline(n.navigator.language))}}),[f,r]),createElement2(ProxyIframeEmbed,_objectSpread5(_objectSpread5({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:s,"kd_site":l,layout:u,locale:I,numPosts:p,orderBy:y,ref:b,share:m,showFacepile:h,showText:g,size:v,smallHeader:O,tabs:A},ref:r,title:S},w),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:T,type:TYPE,style:R?_objectSpread5(_objectSpread5({},P),{},{height:R}):P}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -444,3 +444,3 @@ bent

function version() {
return "2108132216000";
return "2108170213000";
}

@@ -924,3 +924,4 @@

src: srcProp
}), _useState$ = _useState[0], name = _useState$.name, src = _useState$.src, setNameAndSrc = _useState[1];
}), nameAndSrc = _useState[0], setNameAndSrc = _useState[1];
var name = nameAndSrc.name, src = nameAndSrc.src;
useLayoutEffect2(function() {

@@ -927,0 +928,0 @@ var _contentRef$current, _contentRef$current$o;

@@ -453,3 +453,3 @@ bent

function version() {
return "2108132216000";
return "2108170213000";
}

@@ -821,9 +821,10 @@

}, [type]);
const [{
name,
src
}, setNameAndSrc] = useState2({
const [nameAndSrc, setNameAndSrc] = useState2({
name: nameProp,
src: srcProp
});
const {
name,
src
} = nameAndSrc;
useLayoutEffect2(() => {

@@ -830,0 +831,0 @@ var _contentRef$current, _contentRef$current$o;

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