Socket
Socket
Sign inDemoInstall

@ampproject/amp-embedly-card

Package Overview
Dependencies
5
Maintainers
16
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2110121825.0 to 1.2110142235.0

2

dist/component-preact.js

@@ -1,2 +0,2 @@

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)};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}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 _objectSpread2(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){_defineProperty(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 _arrayWithHoles(e){if(Array.isArray(e))return e}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,s=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}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 _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 _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}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}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"2110122021000"}function isEsm(){var e,r,t;return!isProd()&&null!==(e=null===(r=self)||void 0===r||null===(t=r.__AMP_MODE)||void 0===t?void 0:t.esm)&&void 0!==e&&e}__export(exports,{BentoEmbedlyCard:function(){return BentoEmbedlyCard},BentoEmbedlyCardWithRef:function(){return BentoEmbedlyCardWithRef}});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 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}function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}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"),s=i.shift(),u=[s];i.length;){var l=arguments[a++],c=i.shift();s+=elementStringOrPassThru(l)+c,u.push(l,c.trim())}var d=new Error(s);throw d.messageArray=remove(u,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,d),d}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,s,u,l,c){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,s,u,l,c))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}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){for(var r,t=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}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}))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var 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 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 compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}var _excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,u=e.contentClassName,l=e.contentProps,c=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,v=void 0!==_&&_,m=e.size,E=void 0!==m&&m,b=e.style,y=e.wrapperClassName,g=e.wrapperStyle,h=(E?4:0)+(p?2:0)+(v?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:r,class:"".concat(a||""," ").concat(y||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},b),g),{},{contain:CONTAIN[h]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:c,class:u,style:_objectSpread2(_objectSpread2({},E&&SIZE_CONTENT_STYLE),{},{"overflow":v?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,u=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:r,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),u)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}var _MAP,viewportObservers=new WeakMap,viewportCallbacks=new WeakMap,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 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 context,ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"};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","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,s=e.matchesMessagingOrigin,u=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,l=e.messageHandler,c=e.ready,d=void 0===c||c,f=e.loading,p=e.onReadyState,_=e.sandbox,v=e.src,m=_objectWithoutPropertiesLoose(e,_excluded3),E=useAmpContext().playable,b=useLoading(f),y=b!==Loading.UNLOAD,g=useRef2(!1),h=useValueRef(p),S=useCallback2((function(e){if(e!==g.current){g.current=e;var r=h.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[h]),A=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return g.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return A.current}}}),[]),useLayoutEffect2((function(){y||S(!1)}),[y,S]),useEffect2((function(){var e=A.current;if(!E&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[E]),useLayoutEffect2((function(){var e=A.current;if(e&&y){var r=function(e){var r=A.current;r&&e.source==r.contentWindow&&u(e.origin)&&l(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,l,y,d]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},m),{},{layout:!0,size:!0,paint:!0}),y&&d&&createElement2("iframe",{allow:t,allowFullScreen:n,frameborder:"0",loading:b,name:a,onLoad:function(){return S(!0)},part:"iframe",ref:A,sandbox:_,scrolling:"no",src:v,style:_objectSpread2(_objectSpread2({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);IframeEmbed.displayName="IframeEmbed";var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var 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")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.t=e,this.o=0,this.i=0,this.u=map()}var r=e.prototype;return r.has=function(e){return!!this.u[e]},r.get=function(e){var r=this.u[e];if(r)return r.access=++this.i,r.payload},r.put=function(e,r){this.has(e)||this.o++,this.u[e]={payload:r,access:this.i},this.l()},r.l=function(){if(!(this.o<=this.t)){var e,r=this.u,t=this.i+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.o--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||r?null:urlCache)}function parseUrlWithA(e,r,t){if(isEsm())return e.href="",new URL(r,e.href);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){var r=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(r):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+r}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,t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+((null===(r=new URL(e.document.baseURI))||void 0===r?void 0:r.port)||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","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},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.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,u=e.sandbox,l=void 0===u?DEFAULT_SANDBOX:u,c=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var v=useRef2(null),m=useRef2(null),E=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),b=_slicedToArray(useState2({name:a,src:c}),2),y=b[0],g=b[1],h=y.name,S=y.src,A=useRef2(null);return useLayoutEffect2((function(){var e,r,t=null===(e=v.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=c?c:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(a)g({name:a,src:n});else if(t){A.current||(A.current=generateSentinel(t));var o=Object.assign(dict({"location":{"href":t.location.href},"sentinel":A.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);g({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":E,"attributes":i})),src:n})}}),[E,a,s,c,p,d]),useEffect2((function(){var e,r=null===(e=m.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[h]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=m.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=m.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:v,messageHandler:i,name:h,ref:m,ready:!!h,sandbox:o?void 0:l,src:S,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var BentoEmbedlyContext=createContext2({apiKey:""}),_excluded5=["onLoad","requestResize","style","title","url"],API_KEY_ATTR_NAME="data-card-key",FULL_HEIGHT="100%";function BentoEmbedlyCardWithRef(e,r){var t=e.onLoad,n=e.requestResize,o=e.style,a=e.title,i=e.url,s=_objectWithoutPropertiesLoose(e,_excluded5),u=_slicedToArray(useState2(null),2),l=u[0],c=u[1],d=useValueRef(t),f=useCallback2((function(e){var r=deserializeMessage(e.data);if(r.type==MessageType.EMBED_SIZE){var t,o=r.height;n?(n(o),c(FULL_HEIGHT)):c(o),null===(t=d.current)||void 0===t||t.call(d)}}),[n,d]),p=useContext2(BentoEmbedlyContext).apiKey;checkProps(i)||displayWarning("url prop is required for BentoEmbedlyCard");var _={url:i};return p&&(_[API_KEY_ATTR_NAME]=p),createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:_,ref:r,title:a||"Embedly card",type:"embedly"},s),{},{messageHandler:f,style:l?_objectSpread2(_objectSpread2({},o),{},{height:l}):o}))}function checkProps(e){return!!e}function displayWarning(e){console.warn(e)}var BentoEmbedlyCard=forwardRef2(BentoEmbedlyCardWithRef);BentoEmbedlyCard.displayName="BentoEmbedlyCard";
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)};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}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 _objectSpread2(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){_defineProperty(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 _arrayWithHoles(e){if(Array.isArray(e))return e}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,s=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}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 _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 _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}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}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"2110150701000"}function isEsm(){var e,r,t;return!isProd()&&null!==(e=null===(r=self)||void 0===r||null===(t=r.__AMP_MODE)||void 0===t?void 0:t.esm)&&void 0!==e&&e}__export(exports,{BentoEmbedlyCard:function(){return BentoEmbedlyCard},BentoEmbedlyCardWithRef:function(){return BentoEmbedlyCardWithRef}});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 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}function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}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"),s=i.shift(),u=[s];i.length;){var l=arguments[a++],c=i.shift();s+=elementStringOrPassThru(l)+c,u.push(l,c.trim())}var d=new Error(s);throw d.messageArray=remove(u,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,d),d}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,s,u,l,c){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,s,u,l,c))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}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){for(var r,t=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}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}))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var 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 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 compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}var _excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,u=e.contentClassName,l=e.contentProps,c=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,v=void 0!==_&&_,m=e.size,E=void 0!==m&&m,b=e.style,y=e.wrapperClassName,g=e.wrapperStyle,h=(E?4:0)+(p?2:0)+(v?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:r,class:"".concat(a||""," ").concat(y||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},b),g),{},{contain:CONTAIN[h]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:c,class:u,style:_objectSpread2(_objectSpread2({},E&&SIZE_CONTENT_STYLE),{},{"overflow":v?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,u=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:r,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),u)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}var _MAP,viewportObservers=new WeakMap,viewportCallbacks=new WeakMap,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 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 context,ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"};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","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,s=e.matchesMessagingOrigin,u=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,l=e.messageHandler,c=e.ready,d=void 0===c||c,f=e.loading,p=e.onReadyState,_=e.sandbox,v=e.src,m=_objectWithoutPropertiesLoose(e,_excluded3),E=useAmpContext().playable,b=useLoading(f),y=b!==Loading.UNLOAD,g=useRef2(!1),h=useValueRef(p),S=useCallback2((function(e){if(e!==g.current){g.current=e;var r=h.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[h]),A=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return g.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return A.current}}}),[]),useLayoutEffect2((function(){y||S(!1)}),[y,S]),useEffect2((function(){var e=A.current;if(!E&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[E]),useLayoutEffect2((function(){var e=A.current;if(e&&y){var r=function(e){var r=A.current;r&&e.source==r.contentWindow&&u(e.origin)&&l(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,l,y,d]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},m),{},{layout:!0,size:!0,paint:!0}),y&&d&&createElement2("iframe",{allow:t,allowFullScreen:n,frameborder:"0",loading:b,name:a,onLoad:function(){return S(!0)},part:"iframe",ref:A,sandbox:_,scrolling:"no",src:v,style:_objectSpread2(_objectSpread2({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);IframeEmbed.displayName="IframeEmbed";var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var 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")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.t=e,this.o=0,this.i=0,this.u=map()}var r=e.prototype;return r.has=function(e){return!!this.u[e]},r.get=function(e){var r=this.u[e];if(r)return r.access=++this.i,r.payload},r.put=function(e,r){this.has(e)||this.o++,this.u[e]={payload:r,access:this.i},this.l()},r.l=function(){if(!(this.o<=this.t)){var e,r=this.u,t=this.i+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.o--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||r?null:urlCache)}function parseUrlWithA(e,r,t){if(isEsm())return e.href="",new URL(r,e.href);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){var r=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(r):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+r}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,t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+((null===(r=new URL(e.document.baseURI))||void 0===r?void 0:r.port)||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","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},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.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,u=e.sandbox,l=void 0===u?DEFAULT_SANDBOX:u,c=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var v=useRef2(null),m=useRef2(null),E=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),b=_slicedToArray(useState2({name:a,src:c}),2),y=b[0],g=b[1],h=y.name,S=y.src,A=useRef2(null);return useLayoutEffect2((function(){var e,r,t=null===(e=v.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=c?c:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(a)g({name:a,src:n});else if(t){A.current||(A.current=generateSentinel(t));var o=Object.assign(dict({"location":{"href":t.location.href},"sentinel":A.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);g({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":E,"attributes":i})),src:n})}}),[E,a,s,c,p,d]),useEffect2((function(){var e,r=null===(e=m.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[h]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=m.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=m.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:v,messageHandler:i,name:h,ref:m,ready:!!h,sandbox:o?void 0:l,src:S,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var BentoEmbedlyContext=createContext2({apiKey:""}),_excluded5=["onLoad","requestResize","style","title","url"],API_KEY_ATTR_NAME="data-card-key",FULL_HEIGHT="100%";function BentoEmbedlyCardWithRef(e,r){var t=e.onLoad,n=e.requestResize,o=e.style,a=e.title,i=e.url,s=_objectWithoutPropertiesLoose(e,_excluded5),u=_slicedToArray(useState2(null),2),l=u[0],c=u[1],d=useValueRef(t),f=useCallback2((function(e){var r=deserializeMessage(e.data);if(r.type==MessageType.EMBED_SIZE){var t,o=r.height;n?(n(o),c(FULL_HEIGHT)):c(o),null===(t=d.current)||void 0===t||t.call(d)}}),[n,d]),p=useContext2(BentoEmbedlyContext).apiKey;checkProps(i)||displayWarning("url prop is required for BentoEmbedlyCard");var _={url:i};return p&&(_[API_KEY_ATTR_NAME]=p),createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:_,ref:r,title:a||"Embedly card",type:"embedly"},s),{},{messageHandler:f,style:l?_objectSpread2(_objectSpread2({},o),{},{height:l}):o}))}function checkProps(e){return!!e}function displayWarning(e){console.warn(e)}var BentoEmbedlyCard=forwardRef2(BentoEmbedlyCardWithRef);BentoEmbedlyCard.displayName="BentoEmbedlyCard";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -64,3 +64,3 @@ var __create = Object.create;

function version() {
return "2110122021000";
return "2110150701000";
}

@@ -67,0 +67,0 @@

@@ -23,3 +23,3 @@ // src/core/mode/prod.js

function version() {
return "2110122021000";
return "2110150701000";
}

@@ -26,0 +26,0 @@

@@ -1,2 +0,2 @@

function e(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function n(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function t(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?n(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}var{isArray:o}=Array;function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function l(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return a(e,n);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)?a(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var{hasOwnProperty:i,toString:s}=Object.prototype;function u(e){return e||{}}function c(e,n){return e}function f(e){const n=Object.getOwnPropertyDescriptor(e,"message");if(null!=n&&n.writable)return e;const{message:t,stack:r}=e,o=new Error(t);for(const n in e)o[n]=e[n];return o.stack=r,o}function d(e){let n=null,t="";for(var r,o=l(arguments,!0);!(r=o()).done;){const e=r.value;e instanceof Error&&!n?n=f(e):(t&&(t+=" "),t+=e)}return n?t&&(n.message=t+": "+n.message):n=new Error(t),n}function p(e){var n,t;null===(n=(t=self).__AMP_REPORT_ERROR)||void 0===n||n.call(t,e)}import{cloneElement as m,createContext as y,createElement as b,createRef as v}from"preact";import{hydrate as g,render as w}from"preact";import{useCallback as h,useContext as S,useEffect as j,useImperativeHandle as O,useLayoutEffect as x,useMemo as E,useRef as $,useState as z}from"preact/hooks";function A(e,n,t){return b.apply(void 0,arguments)}function R(e){return y(e,void 0)}function C(e){return z(e)}function N(e){return $(e)}function k(e,n){j(e,n)}function M(e,n){x(e,n)}function F(e){return S(e)}function H(e,n){return h(e,n)}function I(e,n,t){return O(e,n,t)}import{Children as L,createPortal as P,forwardRef as q}from"preact/compat";function U(e){return q(e)}var B=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],G=[null,"paint","layout","content","size","size paint","size layout","strict"],J={"position":"relative","width":"100%","height":"100%"},K=U((function(e,n){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:u,contentRef:c,contentStyle:f,layout:d=!1,paint:p=!1,size:m=!1,"style":y,wrapperClassName:b,wrapperStyle:v}=e;const g=(m?4:0)+(d?2:0)+(p?1:0);return A(o,t(t({},r(e,B)),{},{ref:n,class:`${l||""} ${b||""}`.trim()||null,style:t(t(t({},y),v),{},{contain:G[g]})}),A(i,t(t({},u),{},{ref:c,class:s,style:t(t({},m&&J),{},{"overflow":p?"hidden":"visible"},f)}),a))})),T=["as","children","class","style","wrapperClassName","wrapperStyle"];function V(e){const n=N(null);return n.current=e,n}U((function(e,n){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:u}=e;return A(o,t(t({},r(e,T)),{},{ref:n,class:`${l||""} ${s||""}`.trim()||null,style:t(t({},i),u)}),a)})),new WeakMap,new WeakMap;var W,_=["auto","lazy","eager","unload"],Z={auto:0,lazy:1,eager:2,unload:3};function D(){return F(W||(W=R({renderable:!0,playable:!0,loading:"auto"})))}var Q=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],X=()=>!1,Y=U((function(e,n){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:u=X,messageHandler:c,ready:f=!0,loading:d,onReadyState:p,sandbox:m,src:y}=e,b=r(e,Q);const{playable:v}=D(),g=function(e){const{loading:n}=D();return function(e,n){const t=Z[e]||0,r=Z[n]||0,o=Math.max(t,r);return _[o]}(e,n)}(d),w="unload"!==g,h=N(!1),S=V(p),j=H((e=>{if(e!==h.current){h.current=e;const n=S.current;null==n||n(e?"complete":"loading")}}),[S]),O=N(null);return I(n,(()=>({get readyState(){return h.current?"complete":"loading"},get node(){return O.current}})),[]),M((()=>{w||j(!1)}),[w,j]),k((()=>{const e=O.current;if(!v&&e){const{src:n}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(n)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),M((()=>{const e=O.current;if(!e||!w)return;const n=e=>{const n=O.current;n&&e.source==n.contentWindow&&u(e.origin)&&c(e)},{defaultView:t}=e.ownerDocument;return t.addEventListener("message",n),()=>t.removeEventListener("message",n)}),[u,c,w,f]),A(K,t(t({},b),{},{layout:!0,size:!0,paint:!0}),w&&f&&A("iframe",{allow:o,allowFullScreen:a,frameborder:"0",loading:g,name:i,onLoad:()=>j(!0),part:"iframe",ref:O,sandbox:m,scrolling:"no",src:y,style:t(t({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));Y.displayName="IframeEmbed";var ee=self.AMP_CONFIG||{},ne=("string"==typeof ee.thirdPartyFrameRegex?new RegExp(ee.thirdPartyFrameRegex):ee.thirdPartyFrameRegex,("string"==typeof ee.cdnProxyRegex?new RegExp(ee.cdnProxyRegex):ee.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function te(e){if(!self.document||!self.document.head)return null;if(self.location&&ne.test(self.location.origin))return null;const n=self.document.head.querySelector(`meta[name="${e}"]`);return n&&n.getAttribute("content")||null}var re,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2110122021000/vendor/${e}.mjs`}function ie(e){let n;if(e.crypto&&e.crypto.getRandomValues){const t=new Uint32Array(2);e.crypto.getRandomValues(t),n=String(t[0])+t[1]}else n=String(e.Math.random()).substr(2)+"0";return n}ee.cdnUrl||te("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||te("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var se=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],ue={},ce="sync-xhr 'none'",fe=["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(" "),de=U((function(e,n){let{allow:o=ce,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=fe,src:f,type:d,title:p=d}=e,m=r(e,se);if(y=o,"number"!=typeof v&&(v=0),v+(b=ce).length>y.length||-1===y.indexOf(b,v))throw new Error(`'allow' prop must contain "${ce}". Found "${o}".`);var y,b,v;const g=N(null),w=N(null),h=E((()=>(ue[d]||(ue[d]=function(){let e=0;return()=>String(++e)}()),ue[d]())),[d]),[S,j]=C({name:l,src:f}),{name:O,src:x}=S,$=N(null);return M((()=>{var e,n;const t=null===(e=g.current)||void 0===e||null===(n=e.ownerDocument)||void 0===n?void 0:n.defaultView,r=null!=f?f:t?((o=t).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2110122021000/frame.html`):"about:blank";var o;if(l)return void j({name:l,src:r});if(!t)return;$.current||($.current=function(e){let n=0;for(let t=e;t&&t!=t.parent;t=t.parent)n++;return String(n)+"-"+ie(e)}(t));const a=Object.assign(u({"location":{"href":t.location.href},"sentinel":$.current})),i=Object.assign(u({"title":p,"type":d,"_context":a}),s);var c;j({name:JSON.stringify(u({"host":(c=r,re||(re=self.document.createElement("a")),function(e,n,t){return e.href="",new URL(n,e.href)}(re,c)).hostname,"bootstrap":le(d),"type":d,"count":h,"attributes":i})),src:r})}),[h,l,s,f,p,d]),k((()=>{var e;const n=null===(e=w.current)||void 0===e?void 0:e.node;n&&n.parentNode.insertBefore(n,n.nextSibling)}),[O]),I(n,(()=>({get readyState(){var e;return null===(e=w.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=w.current)||void 0===e?void 0:e.node}})),[]),A(Y,t({allow:o,contentRef:g,messageHandler:i,name:O,ref:w,ready:!!O,sandbox:a?void 0:c,src:x,title:p},m))}));de.displayName="ProxyIframeEmbed";var pe=R({apiKey:""}),me=["onLoad","requestResize","style","title","url"];function ye(e,n){let{onLoad:o,requestResize:a,style:l,title:i,url:s}=e,u=r(e,me);const[f,m]=C(null),y=V(o),b=H((e=>{const n=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const n=c(e).indexOf("{");return function(e,n){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==n||n(e),null}}(c(e).substr(n),(n=>{!function(e){const n=d.apply(null,arguments);setTimeout((()=>{throw p(n),n}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${n.message}`))}))}(e.data);if("embed-size"==n.type){var t;const e=n.height;a?(a(e),m("100%")):m(e),null===(t=y.current)||void 0===t||t.call(y)}}),[a,y]),{apiKey:v}=F(pe);(function(e){return!!e})(s)||console.warn("url prop is required for BentoEmbedlyCard");const g={url:s};return v&&(g["data-card-key"]=v),A(de,t(t({options:g,ref:n,title:i||"Embedly card",type:"embedly"},u),{},{messageHandler:b,style:f?t(t({},l),{},{height:f}):l}))}var be=U(ye);be.displayName="BentoEmbedlyCard";export{be as BentoEmbedlyCard,ye as BentoEmbedlyCardWithRef};
function e(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function n(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function t(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?n(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}var{isArray:o}=Array;function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function l(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return a(e,n);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)?a(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var{hasOwnProperty:i,toString:s}=Object.prototype;function u(e){return e||{}}function c(e,n){return e}function f(e){const n=Object.getOwnPropertyDescriptor(e,"message");if(null!=n&&n.writable)return e;const{message:t,stack:r}=e,o=new Error(t);for(const n in e)o[n]=e[n];return o.stack=r,o}function d(e){let n=null,t="";for(var r,o=l(arguments,!0);!(r=o()).done;){const e=r.value;e instanceof Error&&!n?n=f(e):(t&&(t+=" "),t+=e)}return n?t&&(n.message=t+": "+n.message):n=new Error(t),n}function p(e){var n,t;null===(n=(t=self).__AMP_REPORT_ERROR)||void 0===n||n.call(t,e)}import{cloneElement as m,createContext as y,createElement as b,createRef as v}from"preact";import{hydrate as g,render as w}from"preact";import{useCallback as h,useContext as S,useEffect as j,useImperativeHandle as O,useLayoutEffect as x,useMemo as E,useRef as $,useState as z}from"preact/hooks";function A(e,n,t){return b.apply(void 0,arguments)}function R(e){return y(e,void 0)}function C(e){return z(e)}function N(e){return $(e)}function k(e,n){j(e,n)}function M(e,n){x(e,n)}function F(e){return S(e)}function H(e,n){return h(e,n)}function I(e,n,t){return O(e,n,t)}import{Children as L,createPortal as P,forwardRef as q}from"preact/compat";function U(e){return q(e)}var B=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],G=[null,"paint","layout","content","size","size paint","size layout","strict"],J={"position":"relative","width":"100%","height":"100%"},K=U((function(e,n){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:u,contentRef:c,contentStyle:f,layout:d=!1,paint:p=!1,size:m=!1,"style":y,wrapperClassName:b,wrapperStyle:v}=e;const g=(m?4:0)+(d?2:0)+(p?1:0);return A(o,t(t({},r(e,B)),{},{ref:n,class:`${l||""} ${b||""}`.trim()||null,style:t(t(t({},y),v),{},{contain:G[g]})}),A(i,t(t({},u),{},{ref:c,class:s,style:t(t({},m&&J),{},{"overflow":p?"hidden":"visible"},f)}),a))})),T=["as","children","class","style","wrapperClassName","wrapperStyle"];function V(e){const n=N(null);return n.current=e,n}U((function(e,n){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:u}=e;return A(o,t(t({},r(e,T)),{},{ref:n,class:`${l||""} ${s||""}`.trim()||null,style:t(t({},i),u)}),a)})),new WeakMap,new WeakMap;var W,_=["auto","lazy","eager","unload"],Z={auto:0,lazy:1,eager:2,unload:3};function D(){return F(W||(W=R({renderable:!0,playable:!0,loading:"auto"})))}var Q=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],X=()=>!1,Y=U((function(e,n){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:u=X,messageHandler:c,ready:f=!0,loading:d,onReadyState:p,sandbox:m,src:y}=e,b=r(e,Q);const{playable:v}=D(),g=function(e){const{loading:n}=D();return function(e,n){const t=Z[e]||0,r=Z[n]||0,o=Math.max(t,r);return _[o]}(e,n)}(d),w="unload"!==g,h=N(!1),S=V(p),j=H((e=>{if(e!==h.current){h.current=e;const n=S.current;null==n||n(e?"complete":"loading")}}),[S]),O=N(null);return I(n,(()=>({get readyState(){return h.current?"complete":"loading"},get node(){return O.current}})),[]),M((()=>{w||j(!1)}),[w,j]),k((()=>{const e=O.current;if(!v&&e){const{src:n}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(n)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),M((()=>{const e=O.current;if(!e||!w)return;const n=e=>{const n=O.current;n&&e.source==n.contentWindow&&u(e.origin)&&c(e)},{defaultView:t}=e.ownerDocument;return t.addEventListener("message",n),()=>t.removeEventListener("message",n)}),[u,c,w,f]),A(K,t(t({},b),{},{layout:!0,size:!0,paint:!0}),w&&f&&A("iframe",{allow:o,allowFullScreen:a,frameborder:"0",loading:g,name:i,onLoad:()=>j(!0),part:"iframe",ref:O,sandbox:m,scrolling:"no",src:y,style:t(t({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));Y.displayName="IframeEmbed";var ee=self.AMP_CONFIG||{},ne=("string"==typeof ee.thirdPartyFrameRegex?new RegExp(ee.thirdPartyFrameRegex):ee.thirdPartyFrameRegex,("string"==typeof ee.cdnProxyRegex?new RegExp(ee.cdnProxyRegex):ee.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function te(e){if(!self.document||!self.document.head)return null;if(self.location&&ne.test(self.location.origin))return null;const n=self.document.head.querySelector(`meta[name="${e}"]`);return n&&n.getAttribute("content")||null}var re,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2110150701000/vendor/${e}.mjs`}function ie(e){let n;if(e.crypto&&e.crypto.getRandomValues){const t=new Uint32Array(2);e.crypto.getRandomValues(t),n=String(t[0])+t[1]}else n=String(e.Math.random()).substr(2)+"0";return n}ee.cdnUrl||te("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||te("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var se=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],ue={},ce="sync-xhr 'none'",fe=["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(" "),de=U((function(e,n){let{allow:o=ce,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=fe,src:f,type:d,title:p=d}=e,m=r(e,se);if(y=o,"number"!=typeof v&&(v=0),v+(b=ce).length>y.length||-1===y.indexOf(b,v))throw new Error(`'allow' prop must contain "${ce}". Found "${o}".`);var y,b,v;const g=N(null),w=N(null),h=E((()=>(ue[d]||(ue[d]=function(){let e=0;return()=>String(++e)}()),ue[d]())),[d]),[S,j]=C({name:l,src:f}),{name:O,src:x}=S,$=N(null);return M((()=>{var e,n;const t=null===(e=g.current)||void 0===e||null===(n=e.ownerDocument)||void 0===n?void 0:n.defaultView,r=null!=f?f:t?((o=t).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2110150701000/frame.html`):"about:blank";var o;if(l)return void j({name:l,src:r});if(!t)return;$.current||($.current=function(e){let n=0;for(let t=e;t&&t!=t.parent;t=t.parent)n++;return String(n)+"-"+ie(e)}(t));const a=Object.assign(u({"location":{"href":t.location.href},"sentinel":$.current})),i=Object.assign(u({"title":p,"type":d,"_context":a}),s);var c;j({name:JSON.stringify(u({"host":(c=r,re||(re=self.document.createElement("a")),function(e,n,t){return e.href="",new URL(n,e.href)}(re,c)).hostname,"bootstrap":le(d),"type":d,"count":h,"attributes":i})),src:r})}),[h,l,s,f,p,d]),k((()=>{var e;const n=null===(e=w.current)||void 0===e?void 0:e.node;n&&n.parentNode.insertBefore(n,n.nextSibling)}),[O]),I(n,(()=>({get readyState(){var e;return null===(e=w.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=w.current)||void 0===e?void 0:e.node}})),[]),A(Y,t({allow:o,contentRef:g,messageHandler:i,name:O,ref:w,ready:!!O,sandbox:a?void 0:c,src:x,title:p},m))}));de.displayName="ProxyIframeEmbed";var pe=R({apiKey:""}),me=["onLoad","requestResize","style","title","url"];function ye(e,n){let{onLoad:o,requestResize:a,style:l,title:i,url:s}=e,u=r(e,me);const[f,m]=C(null),y=V(o),b=H((e=>{const n=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const n=c(e).indexOf("{");return function(e,n){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==n||n(e),null}}(c(e).substr(n),(n=>{!function(e){const n=d.apply(null,arguments);setTimeout((()=>{throw p(n),n}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${n.message}`))}))}(e.data);if("embed-size"==n.type){var t;const e=n.height;a?(a(e),m("100%")):m(e),null===(t=y.current)||void 0===t||t.call(y)}}),[a,y]),{apiKey:v}=F(pe);(function(e){return!!e})(s)||console.warn("url prop is required for BentoEmbedlyCard");const g={url:s};return v&&(g["data-card-key"]=v),A(de,t(t({options:g,ref:n,title:i||"Embedly card",type:"embedly"},u),{},{messageHandler:b,style:f?t(t({},l),{},{height:f}):l}))}var be=U(ye);be.displayName="BentoEmbedlyCard";export{be as BentoEmbedlyCard,ye as BentoEmbedlyCardWithRef};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -1,2 +0,2 @@

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)};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}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 _objectSpread2(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){_defineProperty(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 _arrayWithHoles(e){if(Array.isArray(e))return e}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,s=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}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 _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 _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}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}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"2110122021000"}function isEsm(){var e,r,t;return!isProd()&&null!==(e=null===(r=self)||void 0===r||null===(t=r.__AMP_MODE)||void 0===t?void 0:t.esm)&&void 0!==e&&e}__export(exports,{BentoEmbedlyCard:function(){return BentoEmbedlyCard},BentoEmbedlyCardWithRef:function(){return BentoEmbedlyCardWithRef}});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 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}function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}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"),s=i.shift(),u=[s];i.length;){var l=arguments[a++],c=i.shift();s+=elementStringOrPassThru(l)+c,u.push(l,c.trim())}var d=new Error(s);throw d.messageArray=remove(u,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,d),d}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,s,u,l,c){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,s,u,l,c))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}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){for(var r,t=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}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}))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var 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 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 compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}var _excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,u=e.contentClassName,l=e.contentProps,c=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,v=void 0!==_&&_,m=e.size,E=void 0!==m&&m,b=e.style,y=e.wrapperClassName,g=e.wrapperStyle,h=(E?4:0)+(p?2:0)+(v?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:r,class:"".concat(a||""," ").concat(y||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},b),g),{},{contain:CONTAIN[h]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:c,class:u,style:_objectSpread2(_objectSpread2({},E&&SIZE_CONTENT_STYLE),{},{"overflow":v?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,u=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:r,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),u)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}var _MAP,viewportObservers=new WeakMap,viewportCallbacks=new WeakMap,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 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 context,ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"};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","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,s=e.matchesMessagingOrigin,u=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,l=e.messageHandler,c=e.ready,d=void 0===c||c,f=e.loading,p=e.onReadyState,_=e.sandbox,v=e.src,m=_objectWithoutPropertiesLoose(e,_excluded3),E=useAmpContext().playable,b=useLoading(f),y=b!==Loading.UNLOAD,g=useRef2(!1),h=useValueRef(p),S=useCallback2((function(e){if(e!==g.current){g.current=e;var r=h.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[h]),A=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return g.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return A.current}}}),[]),useLayoutEffect2((function(){y||S(!1)}),[y,S]),useEffect2((function(){var e=A.current;if(!E&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[E]),useLayoutEffect2((function(){var e=A.current;if(e&&y){var r=function(e){var r=A.current;r&&e.source==r.contentWindow&&u(e.origin)&&l(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,l,y,d]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},m),{},{layout:!0,size:!0,paint:!0}),y&&d&&createElement2("iframe",{allow:t,allowFullScreen:n,frameborder:"0",loading:b,name:a,onLoad:function(){return S(!0)},part:"iframe",ref:A,sandbox:_,scrolling:"no",src:v,style:_objectSpread2(_objectSpread2({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);IframeEmbed.displayName="IframeEmbed";var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var 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")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.t=e,this.o=0,this.i=0,this.u=map()}var r=e.prototype;return r.has=function(e){return!!this.u[e]},r.get=function(e){var r=this.u[e];if(r)return r.access=++this.i,r.payload},r.put=function(e,r){this.has(e)||this.o++,this.u[e]={payload:r,access:this.i},this.l()},r.l=function(){if(!(this.o<=this.t)){var e,r=this.u,t=this.i+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.o--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||r?null:urlCache)}function parseUrlWithA(e,r,t){if(isEsm())return e.href="",new URL(r,e.href);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){var r=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(r):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+r}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,t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+((null===(r=new URL(e.document.baseURI))||void 0===r?void 0:r.port)||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","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},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.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,u=e.sandbox,l=void 0===u?DEFAULT_SANDBOX:u,c=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var v=useRef2(null),m=useRef2(null),E=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),b=_slicedToArray(useState2({name:a,src:c}),2),y=b[0],g=b[1],h=y.name,S=y.src,A=useRef2(null);return useLayoutEffect2((function(){var e,r,t=null===(e=v.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=c?c:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(a)g({name:a,src:n});else if(t){A.current||(A.current=generateSentinel(t));var o=Object.assign(dict({"location":{"href":t.location.href},"sentinel":A.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);g({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":E,"attributes":i})),src:n})}}),[E,a,s,c,p,d]),useEffect2((function(){var e,r=null===(e=m.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[h]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=m.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=m.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:v,messageHandler:i,name:h,ref:m,ready:!!h,sandbox:o?void 0:l,src:S,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var BentoEmbedlyContext=createContext2({apiKey:""}),_excluded5=["onLoad","requestResize","style","title","url"],API_KEY_ATTR_NAME="data-card-key",FULL_HEIGHT="100%";function BentoEmbedlyCardWithRef(e,r){var t=e.onLoad,n=e.requestResize,o=e.style,a=e.title,i=e.url,s=_objectWithoutPropertiesLoose(e,_excluded5),u=_slicedToArray(useState2(null),2),l=u[0],c=u[1],d=useValueRef(t),f=useCallback2((function(e){var r=deserializeMessage(e.data);if(r.type==MessageType.EMBED_SIZE){var t,o=r.height;n?(n(o),c(FULL_HEIGHT)):c(o),null===(t=d.current)||void 0===t||t.call(d)}}),[n,d]),p=useContext2(BentoEmbedlyContext).apiKey;checkProps(i)||displayWarning("url prop is required for BentoEmbedlyCard");var _={url:i};return p&&(_[API_KEY_ATTR_NAME]=p),createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:_,ref:r,title:a||"Embedly card",type:"embedly"},s),{},{messageHandler:f,style:l?_objectSpread2(_objectSpread2({},o),{},{height:l}):o}))}function checkProps(e){return!!e}function displayWarning(e){console.warn(e)}var BentoEmbedlyCard=forwardRef2(BentoEmbedlyCardWithRef);BentoEmbedlyCard.displayName="BentoEmbedlyCard";
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)};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}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 _objectSpread2(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){_defineProperty(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 _arrayWithHoles(e){if(Array.isArray(e))return e}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,s=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}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 _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 _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}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}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"2110150701000"}function isEsm(){var e,r,t;return!isProd()&&null!==(e=null===(r=self)||void 0===r||null===(t=r.__AMP_MODE)||void 0===t?void 0:t.esm)&&void 0!==e&&e}__export(exports,{BentoEmbedlyCard:function(){return BentoEmbedlyCard},BentoEmbedlyCardWithRef:function(){return BentoEmbedlyCardWithRef}});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 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}function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}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"),s=i.shift(),u=[s];i.length;){var l=arguments[a++],c=i.shift();s+=elementStringOrPassThru(l)+c,u.push(l,c.trim())}var d=new Error(s);throw d.messageArray=remove(u,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,d),d}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,s,u,l,c){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,s,u,l,c))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}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){for(var r,t=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}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}))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var 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 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 compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}var _excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,u=e.contentClassName,l=e.contentProps,c=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,v=void 0!==_&&_,m=e.size,E=void 0!==m&&m,b=e.style,y=e.wrapperClassName,g=e.wrapperStyle,h=(E?4:0)+(p?2:0)+(v?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:r,class:"".concat(a||""," ").concat(y||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},b),g),{},{contain:CONTAIN[h]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:c,class:u,style:_objectSpread2(_objectSpread2({},E&&SIZE_CONTENT_STYLE),{},{"overflow":v?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,u=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:r,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),u)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}var _MAP,viewportObservers=new WeakMap,viewportCallbacks=new WeakMap,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 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 context,ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"};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","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,s=e.matchesMessagingOrigin,u=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,l=e.messageHandler,c=e.ready,d=void 0===c||c,f=e.loading,p=e.onReadyState,_=e.sandbox,v=e.src,m=_objectWithoutPropertiesLoose(e,_excluded3),E=useAmpContext().playable,b=useLoading(f),y=b!==Loading.UNLOAD,g=useRef2(!1),h=useValueRef(p),S=useCallback2((function(e){if(e!==g.current){g.current=e;var r=h.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[h]),A=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return g.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return A.current}}}),[]),useLayoutEffect2((function(){y||S(!1)}),[y,S]),useEffect2((function(){var e=A.current;if(!E&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[E]),useLayoutEffect2((function(){var e=A.current;if(e&&y){var r=function(e){var r=A.current;r&&e.source==r.contentWindow&&u(e.origin)&&l(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,l,y,d]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},m),{},{layout:!0,size:!0,paint:!0}),y&&d&&createElement2("iframe",{allow:t,allowFullScreen:n,frameborder:"0",loading:b,name:a,onLoad:function(){return S(!0)},part:"iframe",ref:A,sandbox:_,scrolling:"no",src:v,style:_objectSpread2(_objectSpread2({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);IframeEmbed.displayName="IframeEmbed";var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var 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")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.t=e,this.o=0,this.i=0,this.u=map()}var r=e.prototype;return r.has=function(e){return!!this.u[e]},r.get=function(e){var r=this.u[e];if(r)return r.access=++this.i,r.payload},r.put=function(e,r){this.has(e)||this.o++,this.u[e]={payload:r,access:this.i},this.l()},r.l=function(){if(!(this.o<=this.t)){var e,r=this.u,t=this.i+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.o--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||r?null:urlCache)}function parseUrlWithA(e,r,t){if(isEsm())return e.href="",new URL(r,e.href);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){var r=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(r):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+r}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,t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+((null===(r=new URL(e.document.baseURI))||void 0===r?void 0:r.port)||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","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},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.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,u=e.sandbox,l=void 0===u?DEFAULT_SANDBOX:u,c=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var v=useRef2(null),m=useRef2(null),E=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),b=_slicedToArray(useState2({name:a,src:c}),2),y=b[0],g=b[1],h=y.name,S=y.src,A=useRef2(null);return useLayoutEffect2((function(){var e,r,t=null===(e=v.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=c?c:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(a)g({name:a,src:n});else if(t){A.current||(A.current=generateSentinel(t));var o=Object.assign(dict({"location":{"href":t.location.href},"sentinel":A.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);g({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":E,"attributes":i})),src:n})}}),[E,a,s,c,p,d]),useEffect2((function(){var e,r=null===(e=m.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[h]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=m.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=m.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:v,messageHandler:i,name:h,ref:m,ready:!!h,sandbox:o?void 0:l,src:S,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var BentoEmbedlyContext=createContext2({apiKey:""}),_excluded5=["onLoad","requestResize","style","title","url"],API_KEY_ATTR_NAME="data-card-key",FULL_HEIGHT="100%";function BentoEmbedlyCardWithRef(e,r){var t=e.onLoad,n=e.requestResize,o=e.style,a=e.title,i=e.url,s=_objectWithoutPropertiesLoose(e,_excluded5),u=_slicedToArray(useState2(null),2),l=u[0],c=u[1],d=useValueRef(t),f=useCallback2((function(e){var r=deserializeMessage(e.data);if(r.type==MessageType.EMBED_SIZE){var t,o=r.height;n?(n(o),c(FULL_HEIGHT)):c(o),null===(t=d.current)||void 0===t||t.call(d)}}),[n,d]),p=useContext2(BentoEmbedlyContext).apiKey;checkProps(i)||displayWarning("url prop is required for BentoEmbedlyCard");var _={url:i};return p&&(_[API_KEY_ATTR_NAME]=p),createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:_,ref:r,title:a||"Embedly card",type:"embedly"},s),{},{messageHandler:f,style:l?_objectSpread2(_objectSpread2({},o),{},{height:l}):o}))}function checkProps(e){return!!e}function displayWarning(e){console.warn(e)}var BentoEmbedlyCard=forwardRef2(BentoEmbedlyCardWithRef);BentoEmbedlyCard.displayName="BentoEmbedlyCard";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -64,3 +64,3 @@ var __create = Object.create;

function version() {
return "2110122021000";
return "2110150701000";
}

@@ -67,0 +67,0 @@

@@ -23,3 +23,3 @@ // src/core/mode/prod.js

function version() {
return "2110122021000";
return "2110150701000";
}

@@ -26,0 +26,0 @@

@@ -1,2 +0,2 @@

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc