@ampproject/amp-facebook
Advanced tools
Comparing version 1.2107030008.0 to 1.2107072148.0
@@ -1,3 +0,3 @@ | ||
var Dr=Object.create,re=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,wr=Object.getOwnPropertyNames,Mr=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty,we=function(e){return re(e,"__esModule",{value:!0})},Lr=function(e,t){for(var r in we(e),t)re(e,r,{get:t[r],enumerable:!0})},jr=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=wr(t),a=0,i=o.length;a<i;a++)n=o[a],!Cr.call(e,n)&&"default"!==n&&re(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=Tr(t,n))||r.enumerable});return e},te=function(e){return jr(we(re(null!=e?Dr(Mr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Lr(exports,{Facebook:function(){return Rr}});var G=te(require("preact")),Me=te(require("preact")),d=te(require("preact/hooks"));function A(e,t,r){return G.createElement.apply(void 0,arguments)}function Ce(e){return G.createContext(e,void 0)}function J(e){return d.useState(e)}function j(e){return d.useRef(e)}function ne(e,t){d.useEffect(e,t)}function U(e,t){d.useLayoutEffect(e,t)}function Le(e){return d.useContext(e)}function ve(e,t){return d.useMemo(e,t)}function oe(e,t){return d.useCallback(e,t)}function Y(e,t,r){return d.useImperativeHandle(e,t,r)}var de=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},ge=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function je(){var e=0;return function(){return String(++e)}}var Ue=Object.prototype,sn=Ue.hasOwnProperty,cn=Ue.toString;function k(e){var t=Object.create(null);return e&&Object.assign(t,e),t}function w(e){return e||{}}function ke(e){return e.replace("-","_")}function Be(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}var K,ie=te(require("preact/compat"));function T(e){return ie.forwardRef(e)}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Ur=[R.AUTO,R.LAZY,R.EAGER,R.UNLOAD],He=(ae(K={},R.AUTO,0),ae(K,R.LAZY,1),ae(K,R.EAGER,2),ae(K,R.UNLOAD,3),K);function Ve(e,t){var r=He[e]||0,n=He[t]||0,o=Math.max(r,n);return Ur[o]}var Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},kr=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(r),!0).forEach((function(t){Br(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hr(e,t){if(null==e)return{};var r,n,o=Vr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Vr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Gr=[null,"paint","layout","content","size","size paint","size layout","strict"],Wr={position:"relative",width:"100%",height:"100%"};function $r(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,v=void 0!==O&&O,m=e.style,g=e.wrapperClassName,h=e.wrapperStyle,w=(v?4:0)+(y?2:0)+(b?1:0);return A(n,M(M({},Hr(e,kr)),{},{ref:t,className:"".concat(a||""," ").concat(g||"").trim()||null,style:M(M(M({},m),h),{},{contain:Gr[w]})}),A(c,M(M({},u),{},{ref:s,className:l,style:M(M({},v&&Wr),{},{overflow:b?"hidden":"visible"},f)}),o))}var ye=T($r),zr=["as","children","className","style","wrapperClassName","wrapperStyle"];function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){Xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qr(e,t){if(null==e)return{};var r,n,o=Jr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Jr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Kr(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return A(n,ue(ue({},qr(e,zr)),{},{ref:t,className:"".concat(a||""," ").concat(c||"").trim()||null,style:ue(ue({},i),l)}),o)}var $e,Yr=T(Kr);function he(e){var t=j(null);return t.current=e,t}function Zr(){return $e||($e=Ce({renderable:!0,playable:!0,loading:R.AUTO}))}function xe(){return Le(Zr())}function ze(e){return Ve(e,xe().loading)}var Qr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t){if(null==e)return{};var r,n,o=tt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function tt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var nt=function(){return!1},ot="about:blank",it=function(e){return e&&e!=ot&&!e.includes("#")};function at(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?nt:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,v=rt(e,Qr),m=xe().playable,g=ze(y),h=g!==R.UNLOAD,w=j(!1),P=he(d),S=oe((function(e){if(e!==w.current){w.current=e;var t=P.current;null==t||t(e?Z.COMPLETE:Z.LOADING)}}),[P]),_=j(null);return Y(t,(function(){return{get readyState(){return w.current?Z.COMPLETE:Z.LOADING},get node(){return _.current}}}),[]),U((function(){h||S(!1)}),[h,S]),ne((function(){var e=_.current;if(!m&&e){var t=e.src;if(it(t))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),U((function(){var e=_.current;if(e&&h){var t=function(e){var t=_.current;!t||e.source!=t.contentWindow||!u(e.origin)||s(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[u,s,h,p]),A(ye,se(se({},v),{},{layout:!0,size:!0,paint:!0}),h&&p&&A("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:_,sandbox:b,scrolling:"no",src:O,style:se(se({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var be=T(at);be.displayName="IframeEmbed";var ut=!1;function ce(){return ut}function Q(e){var t;if(!ce())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lt(e,t,r){return t&&Je(e.prototype,t),r&&Je(e,r),e}var Ke=function(){function e(t){ct(this,e),this.capacity_=t,this.size_=0,this.access_=0,this.cache_=k()}return lt(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload}},{key:"put",value:function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,t=this.cache_,r=this.access_+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.size_--)}}}]),e}(),W=Array.isArray,ft=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(e)}catch(e){return t}}function le(e){var t,r=k();if(!e)return r;for(;t=ft.exec(e);){var n=Ye(t[1],t[1]),o=t[2]?Ye(t[2].replace(/\+/g," "),t[2]):"";r[n]=o}return r}var O=self.AMP_CONFIG||{},pt=("string"==typeof O.thirdPartyFrameRegex?new RegExp(O.thirdPartyFrameRegex):O.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Ze=("string"==typeof O.cdnProxyRegex?new RegExp(O.cdnProxyRegex):O.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Qe(e){if(!self.document||!self.document.head||self.location&&Ze.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.getAttribute("content")||null}var B={thirdParty:O.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:O.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:pt,cdn:O.cdnUrl||Qe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Ze,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:O.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:O.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:O.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:O.geoApiUrl||Qe("amp-geo-api")},Ee={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Se=self.__AMP_LOG,sr=null;function $(){if(Se.dev)return Se.dev;if(!sr)throw new Error("failed to call initLogConstructor");return Se.dev=new sr(self,(function(e){return e>=3?Ee.FINE:e>=2?Ee.INFO:Ee.OFF}))}function fe(e,t,r,n,o,a,i,c,l,u,s){return e}var Ae,lr,ai=new Set(["c","v","a","ad"]);function Oe(e,t){return Ae||(Ae=self.document.createElement("a"),lr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new Ke(100))),yt(Ae,e,t?null:lr)}function yt(e,t,r){if(r&&r.has(t))return r.get(t);e.href=t,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=Q()&&Object.freeze?Object.freeze(o):o;return r&&r.put(t,a),a}function _e(e){return JSON.parse(e)}function ee(e,t){try{return _e(e)}catch(e){return null==t||t(e),null}}function Pe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ot(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{!i&&null!=r.return&&r.return()}finally{if(c)throw a}}}}function Ot(e,t){if(e){if("string"==typeof e)return pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pr(e,t)}}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(r),!0).forEach((function(t){_t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pt="EXPERIMENTS",Ft="amp-experiment-toggles",pe="__AMP__EXPERIMENT_TOGGLES";function dr(e,t){return!!gr(e)[t]}function gr(e){var t,r,n,o,a;if(e[pe])return e[pe];e[pe]=k();var i=e[pe],c=vr(vr({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:_e((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(var l in c){var u=c[l];"number"==typeof u&&u>=0&&u<=1&&(i[l]=Math.random()<u)}var s=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(W(s)&&s.length){var f=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(f){var p,y=Pe(f.getAttribute("content").split(","));try{for(y.s();!(p=y.n()).done;){var d=p.value;s.includes(d)&&(i[d]=!0)}}catch(e){y.e(e)}finally{y.f()}}}Object.assign(i,Rt(e));var b=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(W(b)&&b.length){var O,v=le(e.location.originalHash||e.location.hash),m=Pe(b);try{for(m.s();!(O=m.n()).done;){var g=O.value,h=v["e-".concat(g)];"1"==h&&(i[g]=!0),"0"==h&&(i[g]=!1)}}catch(e){m.e(e)}finally{m.f()}}return i}function Rt(e){var t,r="";try{"localStorage"in e&&(r=e.localStorage.getItem(Ft))}catch(e){$().warn(Pt,"Failed to retrieve experiments from localStorage.")}var n,o=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],a=k(),i=Pe(o);try{for(i.s();!(n=i.n()).done;){var c=n.value;!c||("-"==c[0]?a[c.substr(1)]=!1:a[c]=!0)}}catch(e){i.e(e)}finally{i.f()}return a}function yr(e,t){return dr(t,"3p-vendor-split")?"".concat(B.thirdParty,"/").concat("2107030008000","/vendor/").concat(e,".js"):"".concat(B.thirdParty,"/").concat("2107030008000","/f.js")}function hr(e,t){var r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Nt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(B.thirdPartyFrameHost,"/").concat("2107030008000","/")+"".concat(r,".html")}function Nt(e){return"d-"+xr(e)}function xr(e){var t;if(e.crypto&&e.crypto.getRandomValues){var r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function br(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+xr(e)}var It=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function Er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(r),!0).forEach((function(t){Tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Er(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wt(e,t){return jt(e)||Lt(e,t)||Ct(e,t)||Mt()}function Mt(){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 Ct(e,t){if(e){if("string"==typeof e)return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sr(e,t)}}function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function jt(e){if(Array.isArray(e))return e}function Ut(e,t){if(null==e)return{};var r,n,o=kt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function kt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Fe={},Ar={EMBED_SIZE:"embed-size"},Re="sync-xhr 'none'",Bt=de().join(" ")+" "+ge().join(" ");function Ht(e,t){var r=e.allow,n=void 0===r?Re:r,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?Bt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=Ut(e,It);if(!Be(n,Re))throw new Error("'allow' prop must contain \"".concat(Re,'". Found "').concat(n,'".'));var v=j(null),m=j(null),g=ve((function(){return Fe[y]||(Fe[y]=je()),Fe[y]()}),[y]),h=wt(J({name:c,src:p}),2),P=h[0],S=P.name,_=P.src,E=h[1];return U((function(){var e,t,r=null===(e=v.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=p?p:r?hr(r):"about:blank";if(c)E({name:c,src:n});else if(r){var i=Object.assign(w({location:{href:r.location.href},sentinel:br(r)}),a),l=Object.assign(w({title:b,type:y,_context:i}),u);E({name:JSON.stringify(w({host:Oe(n).hostname,bootstrap:null!=o?o:yr(y,r),type:y,count:g,attributes:l})),src:n})}}),[o,a,g,c,u,p,b,y]),ne((function(){var e,t=null===(e=m.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[S]),Y(t,(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}}}),[]),A(be,Dt({allow:n,contentRef:v,messageHandler:l,name:S,ref:m,ready:!!S,sandbox:i?void 0:f,src:_,title:b},O))}var Ne=T(Ht);Ne.displayName="ProxyIframeEmbed";var Vt="amp-";function Or(e){if(!Gt(e))return null;var t=e.indexOf("{");return fe(-1!=t),ee(e.substr(t),(function(t){return $().error("MESSAGING","Failed to parse message: "+e,t)}))}function Gt(e){return"string"==typeof e&&0==e.indexOf(Vt)&&-1!=e.indexOf("{")}var Wt=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function _r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(r),!0).forEach((function(t){$t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pr(e,t){return Jt(e)||qt(e,t)||Xt(e,t)||zt()}function zt(){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 Xt(e,t){if(e){if("string"==typeof e)return Fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fr(e,t)}}function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function Jt(e){if(Array.isArray(e))return e}function Kt(e,t){if(null==e)return{};var r,n,o=Yt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Yt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Zt="facebook",Qt="100%",en=function(){return!0},rn="Facebook comments";function tn(e,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,v=e.share,m=e.showFacepile,g=e.showText,h=e.size,w=e.smallHeader,j=e.style,P=e.tabs,S=e.title,_=void 0===S?rn:S,E=Kt(e,Wt),x=Pr(J(null),2),R=x[0],M=x[1],N=oe((function(e){var t,r=null!==(t=ee(e.data))&&void 0!==t?t:Or(e.data);if("ready"==r.action&&(null==y||y()),r.type==Ar.EMBED_SIZE){var n=r.height;O?(O(n),M(Qt)):M(n)}}),[O,y]),D=Pr(J(f),2),F=D[0],I=D[1];return U((function(){var e,r;if(f)I(f);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||I(ke(n.navigator.language))}}),[f,t]),A(Ne,me(me({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:F,numPosts:p,orderBy:d,ref:b,share:v,showFacepile:m,showText:g,size:h,smallHeader:w,tabs:P},ref:t,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:en,messageHandler:N,type:Zt,style:R?me(me({},j),{},{height:R}):j}))}var Rr=T(tn);Rr.displayName="Facebook"; | ||
var Dr=Object.create,re=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,wr=Object.getOwnPropertyNames,Mr=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty,we=function(e){return re(e,"__esModule",{value:!0})},Lr=function(e,t){for(var r in we(e),t)re(e,r,{get:t[r],enumerable:!0})},jr=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=wr(t),a=0,i=o.length;a<i;a++)n=o[a],!Cr.call(e,n)&&"default"!==n&&re(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=Tr(t,n))||r.enumerable});return e},te=function(e){return jr(we(re(null!=e?Dr(Mr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Lr(exports,{Facebook:function(){return Rr}});var G=te(require("preact")),Me=te(require("preact")),d=te(require("preact/hooks"));function A(e,t,r){return G.createElement.apply(void 0,arguments)}function Ce(e){return G.createContext(e,void 0)}function J(e){return d.useState(e)}function j(e){return d.useRef(e)}function ne(e,t){d.useEffect(e,t)}function U(e,t){d.useLayoutEffect(e,t)}function Le(e){return d.useContext(e)}function ve(e,t){return d.useMemo(e,t)}function oe(e,t){return d.useCallback(e,t)}function Y(e,t,r){return d.useImperativeHandle(e,t,r)}var de=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},ge=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function je(){var e=0;return function(){return String(++e)}}var Ue=Object.prototype,sn=Ue.hasOwnProperty,cn=Ue.toString;function k(e){var t=Object.create(null);return e&&Object.assign(t,e),t}function w(e){return e||{}}function ke(e){return e.replace("-","_")}function Be(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}var K,ie=te(require("preact/compat"));function T(e){return ie.forwardRef(e)}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Ur=[R.AUTO,R.LAZY,R.EAGER,R.UNLOAD],He=(ae(K={},R.AUTO,0),ae(K,R.LAZY,1),ae(K,R.EAGER,2),ae(K,R.UNLOAD,3),K);function Ve(e,t){var r=He[e]||0,n=He[t]||0,o=Math.max(r,n);return Ur[o]}var Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},kr=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(r),!0).forEach((function(t){Br(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hr(e,t){if(null==e)return{};var r,n,o=Vr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Vr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Gr=[null,"paint","layout","content","size","size paint","size layout","strict"],Wr={position:"relative",width:"100%",height:"100%"};function $r(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,v=void 0!==O&&O,m=e.style,g=e.wrapperClassName,h=e.wrapperStyle,w=(v?4:0)+(y?2:0)+(b?1:0);return A(n,M(M({},Hr(e,kr)),{},{ref:t,className:"".concat(a||""," ").concat(g||"").trim()||null,style:M(M(M({},m),h),{},{contain:Gr[w]})}),A(c,M(M({},u),{},{ref:s,className:l,style:M(M({},v&&Wr),{},{overflow:b?"hidden":"visible"},f)}),o))}var ye=T($r),zr=["as","children","className","style","wrapperClassName","wrapperStyle"];function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){Xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qr(e,t){if(null==e)return{};var r,n,o=Jr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Jr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Kr(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return A(n,ue(ue({},qr(e,zr)),{},{ref:t,className:"".concat(a||""," ").concat(c||"").trim()||null,style:ue(ue({},i),l)}),o)}var $e,Yr=T(Kr);function he(e){var t=j(null);return t.current=e,t}function Zr(){return $e||($e=Ce({renderable:!0,playable:!0,loading:R.AUTO}))}function xe(){return Le(Zr())}function ze(e){return Ve(e,xe().loading)}var Qr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t){if(null==e)return{};var r,n,o=tt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function tt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var nt=function(){return!1},ot="about:blank",it=function(e){return e&&e!=ot&&!e.includes("#")};function at(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?nt:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,v=rt(e,Qr),m=xe().playable,g=ze(y),h=g!==R.UNLOAD,w=j(!1),P=he(d),S=oe((function(e){if(e!==w.current){w.current=e;var t=P.current;null==t||t(e?Z.COMPLETE:Z.LOADING)}}),[P]),_=j(null);return Y(t,(function(){return{get readyState(){return w.current?Z.COMPLETE:Z.LOADING},get node(){return _.current}}}),[]),U((function(){h||S(!1)}),[h,S]),ne((function(){var e=_.current;if(!m&&e){var t=e.src;if(it(t))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),U((function(){var e=_.current;if(e&&h){var t=function(e){var t=_.current;!t||e.source!=t.contentWindow||!u(e.origin)||s(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[u,s,h,p]),A(ye,se(se({},v),{},{layout:!0,size:!0,paint:!0}),h&&p&&A("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:_,sandbox:b,scrolling:"no",src:O,style:se(se({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var be=T(at);be.displayName="IframeEmbed";var ut=!1;function ce(){return ut}function Q(e){var t;if(!ce())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lt(e,t,r){return t&&Je(e.prototype,t),r&&Je(e,r),e}var Ke=function(){function e(t){ct(this,e),this.capacity_=t,this.size_=0,this.access_=0,this.cache_=k()}return lt(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload}},{key:"put",value:function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,t=this.cache_,r=this.access_+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.size_--)}}}]),e}(),W=Array.isArray,ft=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(e)}catch(e){return t}}function le(e){var t,r=k();if(!e)return r;for(;t=ft.exec(e);){var n=Ye(t[1],t[1]),o=t[2]?Ye(t[2].replace(/\+/g," "),t[2]):"";r[n]=o}return r}var O=self.AMP_CONFIG||{},pt=("string"==typeof O.thirdPartyFrameRegex?new RegExp(O.thirdPartyFrameRegex):O.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Ze=("string"==typeof O.cdnProxyRegex?new RegExp(O.cdnProxyRegex):O.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Qe(e){if(!self.document||!self.document.head||self.location&&Ze.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.getAttribute("content")||null}var B={thirdParty:O.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:O.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:pt,cdn:O.cdnUrl||Qe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Ze,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:O.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:O.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:O.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:O.geoApiUrl||Qe("amp-geo-api")},Ee={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Se=self.__AMP_LOG,sr=null;function $(){if(Se.dev)return Se.dev;if(!sr)throw new Error("failed to call initLogConstructor");return Se.dev=new sr(self,(function(e){return e>=3?Ee.FINE:e>=2?Ee.INFO:Ee.OFF}))}function fe(e,t,r,n,o,a,i,c,l,u,s){return e}var Ae,lr,ai=new Set(["c","v","a","ad"]);function Oe(e,t){return Ae||(Ae=self.document.createElement("a"),lr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new Ke(100))),yt(Ae,e,t?null:lr)}function yt(e,t,r){if(r&&r.has(t))return r.get(t);e.href=t,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=Q()&&Object.freeze?Object.freeze(o):o;return r&&r.put(t,a),a}function _e(e){return JSON.parse(e)}function ee(e,t){try{return _e(e)}catch(e){return null==t||t(e),null}}function Pe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ot(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{!i&&null!=r.return&&r.return()}finally{if(c)throw a}}}}function Ot(e,t){if(e){if("string"==typeof e)return pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pr(e,t)}}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(r),!0).forEach((function(t){_t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pt="EXPERIMENTS",Ft="amp-experiment-toggles",pe="__AMP__EXPERIMENT_TOGGLES";function dr(e,t){return!!gr(e)[t]}function gr(e){var t,r,n,o,a;if(e[pe])return e[pe];e[pe]=k();var i=e[pe],c=vr(vr({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:_e((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(var l in c){var u=c[l];"number"==typeof u&&u>=0&&u<=1&&(i[l]=Math.random()<u)}var s=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(W(s)&&s.length){var f=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(f){var p,y=Pe(f.getAttribute("content").split(","));try{for(y.s();!(p=y.n()).done;){var d=p.value;s.includes(d)&&(i[d]=!0)}}catch(e){y.e(e)}finally{y.f()}}}Object.assign(i,Rt(e));var b=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(W(b)&&b.length){var O,v=le(e.location.originalHash||e.location.hash),m=Pe(b);try{for(m.s();!(O=m.n()).done;){var g=O.value,h=v["e-".concat(g)];"1"==h&&(i[g]=!0),"0"==h&&(i[g]=!1)}}catch(e){m.e(e)}finally{m.f()}}return i}function Rt(e){var t,r="";try{"localStorage"in e&&(r=e.localStorage.getItem(Ft))}catch(e){$().warn(Pt,"Failed to retrieve experiments from localStorage.")}var n,o=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],a=k(),i=Pe(o);try{for(i.s();!(n=i.n()).done;){var c=n.value;!c||("-"==c[0]?a[c.substr(1)]=!1:a[c]=!0)}}catch(e){i.e(e)}finally{i.f()}return a}function yr(e,t){return dr(t,"3p-vendor-split")?"".concat(B.thirdParty,"/").concat("2107072148000","/vendor/").concat(e,".js"):"".concat(B.thirdParty,"/").concat("2107072148000","/f.js")}function hr(e,t){var r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Nt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(B.thirdPartyFrameHost,"/").concat("2107072148000","/")+"".concat(r,".html")}function Nt(e){return"d-"+xr(e)}function xr(e){var t;if(e.crypto&&e.crypto.getRandomValues){var r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function br(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+xr(e)}var It=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function Er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(r),!0).forEach((function(t){Tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Er(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wt(e,t){return jt(e)||Lt(e,t)||Ct(e,t)||Mt()}function Mt(){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 Ct(e,t){if(e){if("string"==typeof e)return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sr(e,t)}}function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function jt(e){if(Array.isArray(e))return e}function Ut(e,t){if(null==e)return{};var r,n,o=kt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function kt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Fe={},Ar={EMBED_SIZE:"embed-size"},Re="sync-xhr 'none'",Bt=de().join(" ")+" "+ge().join(" ");function Ht(e,t){var r=e.allow,n=void 0===r?Re:r,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?Bt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=Ut(e,It);if(!Be(n,Re))throw new Error("'allow' prop must contain \"".concat(Re,'". Found "').concat(n,'".'));var v=j(null),m=j(null),g=ve((function(){return Fe[y]||(Fe[y]=je()),Fe[y]()}),[y]),h=wt(J({name:c,src:p}),2),P=h[0],S=P.name,_=P.src,E=h[1];return U((function(){var e,t,r=null===(e=v.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=p?p:r?hr(r):"about:blank";if(c)E({name:c,src:n});else if(r){var i=Object.assign(w({location:{href:r.location.href},sentinel:br(r)}),a),l=Object.assign(w({title:b,type:y,_context:i}),u);E({name:JSON.stringify(w({host:Oe(n).hostname,bootstrap:null!=o?o:yr(y,r),type:y,count:g,attributes:l})),src:n})}}),[o,a,g,c,u,p,b,y]),ne((function(){var e,t=null===(e=m.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[S]),Y(t,(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}}}),[]),A(be,Dt({allow:n,contentRef:v,messageHandler:l,name:S,ref:m,ready:!!S,sandbox:i?void 0:f,src:_,title:b},O))}var Ne=T(Ht);Ne.displayName="ProxyIframeEmbed";var Vt="amp-";function Or(e){if(!Gt(e))return null;var t=e.indexOf("{");return fe(-1!=t),ee(e.substr(t),(function(t){return $().error("MESSAGING","Failed to parse message: "+e,t)}))}function Gt(e){return"string"==typeof e&&0==e.indexOf(Vt)&&-1!=e.indexOf("{")}var Wt=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function _r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(r),!0).forEach((function(t){$t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pr(e,t){return Jt(e)||qt(e,t)||Xt(e,t)||zt()}function zt(){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 Xt(e,t){if(e){if("string"==typeof e)return Fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fr(e,t)}}function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function Jt(e){if(Array.isArray(e))return e}function Kt(e,t){if(null==e)return{};var r,n,o=Yt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Yt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Zt="facebook",Qt="100%",en=function(){return!0},rn="Facebook comments";function tn(e,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,v=e.share,m=e.showFacepile,g=e.showText,h=e.size,w=e.smallHeader,j=e.style,P=e.tabs,S=e.title,_=void 0===S?rn:S,E=Kt(e,Wt),x=Pr(J(null),2),R=x[0],M=x[1],N=oe((function(e){var t,r=null!==(t=ee(e.data))&&void 0!==t?t:Or(e.data);if("ready"==r.action&&(null==y||y()),r.type==Ar.EMBED_SIZE){var n=r.height;O?(O(n),M(Qt)):M(n)}}),[O,y]),D=Pr(J(f),2),F=D[0],I=D[1];return U((function(){var e,r;if(f)I(f);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||I(ke(n.navigator.language))}}),[f,t]),A(Ne,me(me({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:F,numPosts:p,orderBy:d,ref:b,share:v,showFacepile:m,showText:g,size:h,smallHeader:w,tabs:P},ref:t,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:en,messageHandler:N,type:Zt,style:R?me(me({},j),{},{height:R}):j}))}var Rr=T(tn);Rr.displayName="Facebook"; | ||
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ | ||
//# sourceMappingURL=component-preact.js.map |
@@ -588,3 +588,3 @@ var __create = Object.create; | ||
function internalRuntimeVersion() { | ||
return "2107030008000"; | ||
return "2107072148000"; | ||
} | ||
@@ -591,0 +591,0 @@ |
@@ -521,3 +521,3 @@ // src/preact/index.js | ||
function internalRuntimeVersion() { | ||
return "2107030008000"; | ||
return "2107072148000"; | ||
} | ||
@@ -524,0 +524,0 @@ |
@@ -1,3 +0,3 @@ | ||
import{Fragment as Dr,cloneElement as Mr,createContext as at,createElement as ct,createRef as wr}from"preact";import{hydrate as Tr,render as Fr}from"preact";import{useCallback as gt,useContext as mt,useEffect as ft,useImperativeHandle as ht,useLayoutEffect as pt,useMemo as dt,useRef as lt,useState as ut}from"preact/hooks";function E(e,t,r){return ct.apply(void 0,arguments)}function ve(e){return at(e,void 0)}function V(e){return ut(e)}function F(e){return lt(e)}function X(e,t){ft(e,t)}function T(e,t){pt(e,t)}function _e(e){return mt(e)}function ne(e,t){return dt(e,t)}function q(e,t){return gt(e,t)}function k(e,t,r){return ht(e,t,r)}var oe=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],ie=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function be(){let e=0;return()=>String(++e)}var{hasOwnProperty:jr,toString:$r}=Object.prototype;function L(e){let t=Object.create(null);return e&&Object.assign(t,e),t}function N(e){return e||{}}function Oe(e){return e.replace("-","_")}function Se(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}import{Children as Gr,createPortal as kr,forwardRef as xt}from"preact/compat";function A(e){return xt(e)}var _={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Et=[_.AUTO,_.LAZY,_.EAGER,_.UNLOAD],Ae={[_.AUTO]:0,[_.LAZY]:1,[_.EAGER]:2,[_.UNLOAD]:3};function Pe(e,t){let r=Ae[e]||0,n=Ae[t]||0,o=Math.max(r,n);return Et[o]}var G={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},yt=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){vt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _t(e,t){if(null==e)return{};var r,n,o=bt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function bt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Ot=[null,"paint","layout","content","size","size paint","size layout","strict"],St={position:"relative",width:"100%",height:"100%"};function At(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:d,wrapperClassName:y,wrapperStyle:O}=e,b=(p?4:0)+(s?2:0)+(f?1:0);return E(r,R(R({},_t(e,yt)),{},{ref:t,className:`${o||""} ${y||""}`.trim()||null,style:R(R(R({},d),O),{},{contain:Ot[b]})}),E(a,R(R({},i),{},{ref:c,className:l,style:R(R({},p&&St),{},{overflow:f?"hidden":"visible"},u)}),n))}var se=A(At),Pt=["as","children","className","style","wrapperClassName","wrapperStyle"];function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){Nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rt(e,t){if(null==e)return{};var r,n,o=It(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function It(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Mt(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return E(r,J(J({},Rt(e,Pt)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:J(J({},a),i)}),n)}var Ie,Ft=A(Mt);function ce(e){let t=F(null);return t.current=e,t}function Tt(){return Ie||(Ie=ve({renderable:!0,playable:!0,loading:_.AUTO}))}function ae(){return _e(Tt())}function Me(e){let{loading:t}=ae();return Pe(e,t)}var Dt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(r),!0).forEach((function(t){wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ct(e,t){if(null==e)return{};var r,n,o=Lt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Lt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var jt=()=>!1,$t="about:blank",Ut=e=>e&&e!=$t&&!e.includes("#");function Bt(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=jt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:d,src:y}=e,O=Ct(e,Dt),{playable:b}=ae(),m=Me(f),g=m!==_.UNLOAD,v=F(!1),h=ce(p),P=q((e=>{if(e!==v.current){v.current=e;let t=h.current;null==t||t(e?G.COMPLETE:G.LOADING)}}),[h]),w=F(null);return k(t,(()=>({get readyState(){return v.current?G.COMPLETE:G.LOADING},get node(){return w.current}})),[]),T((()=>{g||P(!1)}),[g,P]),X((()=>{let e=w.current;if(!b&&e){let{src:t}=e;Ut(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[b]),T((()=>{let e=w.current;if(!e||!g)return;let t=e=>{let t=w.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,g,s]),E(se,K(K({},O),{},{layout:!0,size:!0,paint:!0}),g&&s&&E("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:m,name:l,onLoad:()=>P(!0),part:"iframe",ref:w,sandbox:d,scrolling:"no",src:y,style:K(K({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ue=A(Bt);ue.displayName="IframeEmbed";var Vt=!1;function Y(){return Vt}function W(e){var t;if(!Y())return!1;let r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}var{isArray:j}=Array,kt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function De(e,t=""){let r=t;try{return decodeURIComponent(e)}catch(e){return r}}function Z(e){let t,r=L();if(!e)return r;for(;t=kt.exec(e);){let e=De(t[1],t[1]),n=t[2]?De(t[2].replace(/\+/g," "),t[2]):"";r[e]=n}return r}var y=self.AMP_CONFIG||{},Gt=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,we=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Ce(e){if(!self.document||!self.document.head||self.location&&we.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var D={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:Gt,cdn:y.cdnUrl||Ce("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:we,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||Ce("amp-geo-api")},le={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var fe=self.__AMP_LOG,Ge=null;function Q(){if(fe.dev)return fe.dev;if(!Ge)throw new Error("failed to call initLogConstructor");return fe.dev=new Ge(self,(e=>e>=3?le.FINE:e>=2?le.INFO:le.OFF))}function ee(e,t,r,n,o,a,l,i,c,u,s){return e}var pe,Jt,Bo=new Set(["c","v","a","ad"]);function me(e,t){return pe||(pe=self.document.createElement("a"),Jt=null),Kt(pe,e,null)}function Kt(e,t,r){return e.href="",new URL(t,e.href)}function de(e){return JSON.parse(e)}function z(e,t){try{return de(e)}catch(e){return null==t||t(e),null}}function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){nr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var or="amp-experiment-toggles",te="__AMP__EXPERIMENT_TOGGLES";function Je(e,t){return!!Ke(e)[t]}function Ke(e){var t,r,n,o,a;if(e[te])return e[te];e[te]=L();let l=e[te],i=qe(qe({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:de((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(let e in i){let t=i[e];"number"==typeof t&&t>=0&&t<=1&&(l[e]=Math.random()<t)}let c=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(j(c)&&c.length){let t=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(t){let e=t.getAttribute("content").split(",");for(let t of e)c.includes(t)&&(l[t]=!0)}}Object.assign(l,ir(e));let u=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(j(u)&&u.length){let t=Z(e.location.originalHash||e.location.hash);for(let e of u){let r=t[`e-${e}`];"1"==r&&(l[e]=!0),"0"==r&&(l[e]=!1)}}return l}function ir(e){var t;let r="";try{"localStorage"in e&&(r=e.localStorage.getItem(or))}catch(e){}let n=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],o=L();for(let e of n)!e||("-"==e[0]?o[e.substr(1)]=!1:o[e]=!0);return o}function Ye(e,t){return Je(t,"3p-vendor-split")?`${D.thirdParty}/2107030008000/vendor/${e}.mjs`:`${D.thirdParty}/2107030008000/f.js`}function Ze(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||sr(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${D.thirdPartyFrameHost}/2107030008000/${r}.html`}function sr(e){return"d-"+Qe(e)}function Qe(e){let t;if(e.crypto&&e.crypto.getRandomValues){let r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function et(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+Qe(e)}var cr=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lr(e,t){if(null==e)return{};var r,n,o=fr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function fr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var ge={},rt={EMBED_SIZE:"embed-size"},he="sync-xhr 'none'",pr=oe().join(" ")+" "+ie().join(" ");function mr(e,t){let{allow:r=he,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=pr,src:s,type:f,title:p=f}=e,d=lr(e,cr);if(!Se(r,he))throw new Error(`'allow' prop must contain "${he}". Found "${r}".`);let y=F(null),O=F(null),b=ne((()=>(ge[f]||(ge[f]=be()),ge[f]())),[f]),{0:{name:m,src:g},1:v}=V({name:l,src:s});return T((()=>{var e,t;let r=null===(e=y.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Ze(r):"about:blank";if(l)return void v({name:l,src:a});if(!r)return;let i=Object.assign(N({location:{href:r.location.href},sentinel:et(r)}),o),u=Object.assign(N({title:p,type:f,_context:i}),c);v({name:JSON.stringify(N({host:me(a).hostname,bootstrap:null!=n?n:Ye(f,r),type:f,count:b,attributes:u})),src:a})}),[n,o,b,l,c,s,p,f]),X((()=>{var e;let t=null===(e=O.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[m]),k(t,(()=>({get readyState(){var e;return null===(e=O.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=O.current)||void 0===e?void 0:e.node}})),[]),E(ue,ar({allow:r,contentRef:y,messageHandler:i,name:m,ref:O,ready:!!m,sandbox:a?void 0:u,src:g,title:p},d))}var xe=A(mr);xe.displayName="ProxyIframeEmbed";var dr="amp-";function nt(e){if(!gr(e))return null;let t=e.indexOf("{");return ee(-1!=t),z(e.substr(t),(t=>Q().error("MESSAGING","Failed to parse message: "+e,t)))}function gr(e){return"string"==typeof e&&0==e.indexOf(dr)&&-1!=e.indexOf("{")}var hr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Er(e,t){if(null==e)return{};var r,n,o=yr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function yr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var vr="facebook",_r="100%",br=()=>!0,Or="Facebook comments";function Sr(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:d,orderBy:y,refLabel:O,requestResize:b,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,style:w,tabs:j,title:S=Or}=e,A=Er(e,hr),{0:_,1:x}=V(null),R=q((e=>{var t;let r=null!==(t=z(e.data))&&void 0!==t?t:nt(e.data);if("ready"==r.action&&(null==d||d()),r.type==rt.EMBED_SIZE){let e=r.height;b?(b(e),x(_r)):x(e)}}),[b,d]),{0:D,1:N}=V(f);return T((()=>{var e,r;if(f)return void N(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||N(Oe(n.navigator.language))}),[f,t]),E(xe,re(re({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:y,ref:O,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,tabs:j},ref:t,title:S},A),{},{excludeSandbox:!0,matchesMessagingOrigin:br,messageHandler:R,type:vr,style:_?re(re({},w),{},{height:_}):w}))}var Ar=A(Sr);Ar.displayName="Facebook";export{Ar as Facebook}; | ||
import{Fragment as Dr,cloneElement as Mr,createContext as at,createElement as ct,createRef as wr}from"preact";import{hydrate as Tr,render as Fr}from"preact";import{useCallback as gt,useContext as mt,useEffect as ft,useImperativeHandle as ht,useLayoutEffect as pt,useMemo as dt,useRef as lt,useState as ut}from"preact/hooks";function E(e,t,r){return ct.apply(void 0,arguments)}function ve(e){return at(e,void 0)}function V(e){return ut(e)}function F(e){return lt(e)}function X(e,t){ft(e,t)}function T(e,t){pt(e,t)}function _e(e){return mt(e)}function ne(e,t){return dt(e,t)}function q(e,t){return gt(e,t)}function k(e,t,r){return ht(e,t,r)}var oe=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],ie=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function be(){let e=0;return()=>String(++e)}var{hasOwnProperty:jr,toString:$r}=Object.prototype;function L(e){let t=Object.create(null);return e&&Object.assign(t,e),t}function N(e){return e||{}}function Oe(e){return e.replace("-","_")}function Se(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}import{Children as Gr,createPortal as kr,forwardRef as xt}from"preact/compat";function A(e){return xt(e)}var _={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Et=[_.AUTO,_.LAZY,_.EAGER,_.UNLOAD],Ae={[_.AUTO]:0,[_.LAZY]:1,[_.EAGER]:2,[_.UNLOAD]:3};function Pe(e,t){let r=Ae[e]||0,n=Ae[t]||0,o=Math.max(r,n);return Et[o]}var G={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},yt=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){vt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _t(e,t){if(null==e)return{};var r,n,o=bt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function bt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Ot=[null,"paint","layout","content","size","size paint","size layout","strict"],St={position:"relative",width:"100%",height:"100%"};function At(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:d,wrapperClassName:y,wrapperStyle:O}=e,b=(p?4:0)+(s?2:0)+(f?1:0);return E(r,R(R({},_t(e,yt)),{},{ref:t,className:`${o||""} ${y||""}`.trim()||null,style:R(R(R({},d),O),{},{contain:Ot[b]})}),E(a,R(R({},i),{},{ref:c,className:l,style:R(R({},p&&St),{},{overflow:f?"hidden":"visible"},u)}),n))}var se=A(At),Pt=["as","children","className","style","wrapperClassName","wrapperStyle"];function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){Nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rt(e,t){if(null==e)return{};var r,n,o=It(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function It(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Mt(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return E(r,J(J({},Rt(e,Pt)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:J(J({},a),i)}),n)}var Ie,Ft=A(Mt);function ce(e){let t=F(null);return t.current=e,t}function Tt(){return Ie||(Ie=ve({renderable:!0,playable:!0,loading:_.AUTO}))}function ae(){return _e(Tt())}function Me(e){let{loading:t}=ae();return Pe(e,t)}var Dt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(r),!0).forEach((function(t){wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ct(e,t){if(null==e)return{};var r,n,o=Lt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Lt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var jt=()=>!1,$t="about:blank",Ut=e=>e&&e!=$t&&!e.includes("#");function Bt(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=jt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:d,src:y}=e,O=Ct(e,Dt),{playable:b}=ae(),m=Me(f),g=m!==_.UNLOAD,v=F(!1),h=ce(p),P=q((e=>{if(e!==v.current){v.current=e;let t=h.current;null==t||t(e?G.COMPLETE:G.LOADING)}}),[h]),w=F(null);return k(t,(()=>({get readyState(){return v.current?G.COMPLETE:G.LOADING},get node(){return w.current}})),[]),T((()=>{g||P(!1)}),[g,P]),X((()=>{let e=w.current;if(!b&&e){let{src:t}=e;Ut(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[b]),T((()=>{let e=w.current;if(!e||!g)return;let t=e=>{let t=w.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,g,s]),E(se,K(K({},O),{},{layout:!0,size:!0,paint:!0}),g&&s&&E("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:m,name:l,onLoad:()=>P(!0),part:"iframe",ref:w,sandbox:d,scrolling:"no",src:y,style:K(K({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ue=A(Bt);ue.displayName="IframeEmbed";var Vt=!1;function Y(){return Vt}function W(e){var t;if(!Y())return!1;let r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}var{isArray:j}=Array,kt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function De(e,t=""){let r=t;try{return decodeURIComponent(e)}catch(e){return r}}function Z(e){let t,r=L();if(!e)return r;for(;t=kt.exec(e);){let e=De(t[1],t[1]),n=t[2]?De(t[2].replace(/\+/g," "),t[2]):"";r[e]=n}return r}var y=self.AMP_CONFIG||{},Gt=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,we=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Ce(e){if(!self.document||!self.document.head||self.location&&we.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var D={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:Gt,cdn:y.cdnUrl||Ce("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:we,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||Ce("amp-geo-api")},le={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var fe=self.__AMP_LOG,Ge=null;function Q(){if(fe.dev)return fe.dev;if(!Ge)throw new Error("failed to call initLogConstructor");return fe.dev=new Ge(self,(e=>e>=3?le.FINE:e>=2?le.INFO:le.OFF))}function ee(e,t,r,n,o,a,l,i,c,u,s){return e}var pe,Jt,Bo=new Set(["c","v","a","ad"]);function me(e,t){return pe||(pe=self.document.createElement("a"),Jt=null),Kt(pe,e,null)}function Kt(e,t,r){return e.href="",new URL(t,e.href)}function de(e){return JSON.parse(e)}function z(e,t){try{return de(e)}catch(e){return null==t||t(e),null}}function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){nr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var or="amp-experiment-toggles",te="__AMP__EXPERIMENT_TOGGLES";function Je(e,t){return!!Ke(e)[t]}function Ke(e){var t,r,n,o,a;if(e[te])return e[te];e[te]=L();let l=e[te],i=qe(qe({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:de((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(let e in i){let t=i[e];"number"==typeof t&&t>=0&&t<=1&&(l[e]=Math.random()<t)}let c=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(j(c)&&c.length){let t=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(t){let e=t.getAttribute("content").split(",");for(let t of e)c.includes(t)&&(l[t]=!0)}}Object.assign(l,ir(e));let u=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(j(u)&&u.length){let t=Z(e.location.originalHash||e.location.hash);for(let e of u){let r=t[`e-${e}`];"1"==r&&(l[e]=!0),"0"==r&&(l[e]=!1)}}return l}function ir(e){var t;let r="";try{"localStorage"in e&&(r=e.localStorage.getItem(or))}catch(e){}let n=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],o=L();for(let e of n)!e||("-"==e[0]?o[e.substr(1)]=!1:o[e]=!0);return o}function Ye(e,t){return Je(t,"3p-vendor-split")?`${D.thirdParty}/2107072148000/vendor/${e}.mjs`:`${D.thirdParty}/2107072148000/f.js`}function Ze(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||sr(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${D.thirdPartyFrameHost}/2107072148000/${r}.html`}function sr(e){return"d-"+Qe(e)}function Qe(e){let t;if(e.crypto&&e.crypto.getRandomValues){let r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function et(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+Qe(e)}var cr=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lr(e,t){if(null==e)return{};var r,n,o=fr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function fr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var ge={},rt={EMBED_SIZE:"embed-size"},he="sync-xhr 'none'",pr=oe().join(" ")+" "+ie().join(" ");function mr(e,t){let{allow:r=he,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=pr,src:s,type:f,title:p=f}=e,d=lr(e,cr);if(!Se(r,he))throw new Error(`'allow' prop must contain "${he}". Found "${r}".`);let y=F(null),O=F(null),b=ne((()=>(ge[f]||(ge[f]=be()),ge[f]())),[f]),{0:{name:m,src:g},1:v}=V({name:l,src:s});return T((()=>{var e,t;let r=null===(e=y.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Ze(r):"about:blank";if(l)return void v({name:l,src:a});if(!r)return;let i=Object.assign(N({location:{href:r.location.href},sentinel:et(r)}),o),u=Object.assign(N({title:p,type:f,_context:i}),c);v({name:JSON.stringify(N({host:me(a).hostname,bootstrap:null!=n?n:Ye(f,r),type:f,count:b,attributes:u})),src:a})}),[n,o,b,l,c,s,p,f]),X((()=>{var e;let t=null===(e=O.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[m]),k(t,(()=>({get readyState(){var e;return null===(e=O.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=O.current)||void 0===e?void 0:e.node}})),[]),E(ue,ar({allow:r,contentRef:y,messageHandler:i,name:m,ref:O,ready:!!m,sandbox:a?void 0:u,src:g,title:p},d))}var xe=A(mr);xe.displayName="ProxyIframeEmbed";var dr="amp-";function nt(e){if(!gr(e))return null;let t=e.indexOf("{");return ee(-1!=t),z(e.substr(t),(t=>Q().error("MESSAGING","Failed to parse message: "+e,t)))}function gr(e){return"string"==typeof e&&0==e.indexOf(dr)&&-1!=e.indexOf("{")}var hr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Er(e,t){if(null==e)return{};var r,n,o=yr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function yr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var vr="facebook",_r="100%",br=()=>!0,Or="Facebook comments";function Sr(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:d,orderBy:y,refLabel:O,requestResize:b,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,style:w,tabs:j,title:S=Or}=e,A=Er(e,hr),{0:_,1:x}=V(null),R=q((e=>{var t;let r=null!==(t=z(e.data))&&void 0!==t?t:nt(e.data);if("ready"==r.action&&(null==d||d()),r.type==rt.EMBED_SIZE){let e=r.height;b?(b(e),x(_r)):x(e)}}),[b,d]),{0:D,1:N}=V(f);return T((()=>{var e,r;if(f)return void N(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||N(Oe(n.navigator.language))}),[f,t]),E(xe,re(re({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:y,ref:O,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,tabs:j},ref:t,title:S},A),{},{excludeSandbox:!0,matchesMessagingOrigin:br,messageHandler:R,type:vr,style:_?re(re({},w),{},{height:_}):w}))}var Ar=A(Sr);Ar.displayName="Facebook";export{Ar as Facebook}; | ||
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ | ||
//# sourceMappingURL=component-preact.module.js.map |
@@ -1,3 +0,3 @@ | ||
var Dr=Object.create,re=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,wr=Object.getOwnPropertyNames,Mr=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty,we=function(e){return re(e,"__esModule",{value:!0})},Lr=function(e,t){for(var r in we(e),t)re(e,r,{get:t[r],enumerable:!0})},jr=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=wr(t),a=0,i=o.length;a<i;a++)n=o[a],!Cr.call(e,n)&&"default"!==n&&re(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=Tr(t,n))||r.enumerable});return e},te=function(e){return jr(we(re(null!=e?Dr(Mr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Lr(exports,{Facebook:function(){return Rr}});var G=te(require("react")),Me=te(require("react-dom")),d=te(require("react"));function A(e,t,r){return G.createElement.apply(void 0,arguments)}function Ce(e){return G.createContext(e,void 0)}function J(e){return d.useState(e)}function j(e){return d.useRef(e)}function ne(e,t){d.useEffect(e,t)}function U(e,t){d.useLayoutEffect(e,t)}function Le(e){return d.useContext(e)}function ve(e,t){return d.useMemo(e,t)}function oe(e,t){return d.useCallback(e,t)}function Y(e,t,r){return d.useImperativeHandle(e,t,r)}var de=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},ge=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function je(){var e=0;return function(){return String(++e)}}var Ue=Object.prototype,sn=Ue.hasOwnProperty,cn=Ue.toString;function k(e){var t=Object.create(null);return e&&Object.assign(t,e),t}function w(e){return e||{}}function ke(e){return e.replace("-","_")}function Be(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}var K,ie=te(require("react"));function T(e){return ie.forwardRef(e)}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Ur=[R.AUTO,R.LAZY,R.EAGER,R.UNLOAD],He=(ae(K={},R.AUTO,0),ae(K,R.LAZY,1),ae(K,R.EAGER,2),ae(K,R.UNLOAD,3),K);function Ve(e,t){var r=He[e]||0,n=He[t]||0,o=Math.max(r,n);return Ur[o]}var Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},kr=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(r),!0).forEach((function(t){Br(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hr(e,t){if(null==e)return{};var r,n,o=Vr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Vr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Gr=[null,"paint","layout","content","size","size paint","size layout","strict"],Wr={position:"relative",width:"100%",height:"100%"};function $r(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,v=void 0!==O&&O,m=e.style,g=e.wrapperClassName,h=e.wrapperStyle,w=(v?4:0)+(y?2:0)+(b?1:0);return A(n,M(M({},Hr(e,kr)),{},{ref:t,className:"".concat(a||""," ").concat(g||"").trim()||null,style:M(M(M({},m),h),{},{contain:Gr[w]})}),A(c,M(M({},u),{},{ref:s,className:l,style:M(M({},v&&Wr),{},{overflow:b?"hidden":"visible"},f)}),o))}var ye=T($r),zr=["as","children","className","style","wrapperClassName","wrapperStyle"];function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){Xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qr(e,t){if(null==e)return{};var r,n,o=Jr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Jr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Kr(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return A(n,ue(ue({},qr(e,zr)),{},{ref:t,className:"".concat(a||""," ").concat(c||"").trim()||null,style:ue(ue({},i),l)}),o)}var $e,Yr=T(Kr);function he(e){var t=j(null);return t.current=e,t}function Zr(){return $e||($e=Ce({renderable:!0,playable:!0,loading:R.AUTO}))}function xe(){return Le(Zr())}function ze(e){return Ve(e,xe().loading)}var Qr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t){if(null==e)return{};var r,n,o=tt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function tt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var nt=function(){return!1},ot="about:blank",it=function(e){return e&&e!=ot&&!e.includes("#")};function at(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?nt:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,v=rt(e,Qr),m=xe().playable,g=ze(y),h=g!==R.UNLOAD,w=j(!1),P=he(d),S=oe((function(e){if(e!==w.current){w.current=e;var t=P.current;null==t||t(e?Z.COMPLETE:Z.LOADING)}}),[P]),_=j(null);return Y(t,(function(){return{get readyState(){return w.current?Z.COMPLETE:Z.LOADING},get node(){return _.current}}}),[]),U((function(){h||S(!1)}),[h,S]),ne((function(){var e=_.current;if(!m&&e){var t=e.src;if(it(t))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),U((function(){var e=_.current;if(e&&h){var t=function(e){var t=_.current;!t||e.source!=t.contentWindow||!u(e.origin)||s(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[u,s,h,p]),A(ye,se(se({},v),{},{layout:!0,size:!0,paint:!0}),h&&p&&A("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:_,sandbox:b,scrolling:"no",src:O,style:se(se({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var be=T(at);be.displayName="IframeEmbed";var ut=!1;function ce(){return ut}function Q(e){var t;if(!ce())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lt(e,t,r){return t&&Je(e.prototype,t),r&&Je(e,r),e}var Ke=function(){function e(t){ct(this,e),this.capacity_=t,this.size_=0,this.access_=0,this.cache_=k()}return lt(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload}},{key:"put",value:function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,t=this.cache_,r=this.access_+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.size_--)}}}]),e}(),W=Array.isArray,ft=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(e)}catch(e){return t}}function le(e){var t,r=k();if(!e)return r;for(;t=ft.exec(e);){var n=Ye(t[1],t[1]),o=t[2]?Ye(t[2].replace(/\+/g," "),t[2]):"";r[n]=o}return r}var O=self.AMP_CONFIG||{},pt=("string"==typeof O.thirdPartyFrameRegex?new RegExp(O.thirdPartyFrameRegex):O.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Ze=("string"==typeof O.cdnProxyRegex?new RegExp(O.cdnProxyRegex):O.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Qe(e){if(!self.document||!self.document.head||self.location&&Ze.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.getAttribute("content")||null}var B={thirdParty:O.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:O.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:pt,cdn:O.cdnUrl||Qe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Ze,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:O.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:O.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:O.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:O.geoApiUrl||Qe("amp-geo-api")},Ee={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Se=self.__AMP_LOG,sr=null;function $(){if(Se.dev)return Se.dev;if(!sr)throw new Error("failed to call initLogConstructor");return Se.dev=new sr(self,(function(e){return e>=3?Ee.FINE:e>=2?Ee.INFO:Ee.OFF}))}function fe(e,t,r,n,o,a,i,c,l,u,s){return e}var Ae,lr,ai=new Set(["c","v","a","ad"]);function Oe(e,t){return Ae||(Ae=self.document.createElement("a"),lr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new Ke(100))),yt(Ae,e,t?null:lr)}function yt(e,t,r){if(r&&r.has(t))return r.get(t);e.href=t,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=Q()&&Object.freeze?Object.freeze(o):o;return r&&r.put(t,a),a}function _e(e){return JSON.parse(e)}function ee(e,t){try{return _e(e)}catch(e){return null==t||t(e),null}}function Pe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ot(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{!i&&null!=r.return&&r.return()}finally{if(c)throw a}}}}function Ot(e,t){if(e){if("string"==typeof e)return pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pr(e,t)}}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(r),!0).forEach((function(t){_t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pt="EXPERIMENTS",Ft="amp-experiment-toggles",pe="__AMP__EXPERIMENT_TOGGLES";function dr(e,t){return!!gr(e)[t]}function gr(e){var t,r,n,o,a;if(e[pe])return e[pe];e[pe]=k();var i=e[pe],c=vr(vr({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:_e((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(var l in c){var u=c[l];"number"==typeof u&&u>=0&&u<=1&&(i[l]=Math.random()<u)}var s=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(W(s)&&s.length){var f=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(f){var p,y=Pe(f.getAttribute("content").split(","));try{for(y.s();!(p=y.n()).done;){var d=p.value;s.includes(d)&&(i[d]=!0)}}catch(e){y.e(e)}finally{y.f()}}}Object.assign(i,Rt(e));var b=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(W(b)&&b.length){var O,v=le(e.location.originalHash||e.location.hash),m=Pe(b);try{for(m.s();!(O=m.n()).done;){var g=O.value,h=v["e-".concat(g)];"1"==h&&(i[g]=!0),"0"==h&&(i[g]=!1)}}catch(e){m.e(e)}finally{m.f()}}return i}function Rt(e){var t,r="";try{"localStorage"in e&&(r=e.localStorage.getItem(Ft))}catch(e){$().warn(Pt,"Failed to retrieve experiments from localStorage.")}var n,o=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],a=k(),i=Pe(o);try{for(i.s();!(n=i.n()).done;){var c=n.value;!c||("-"==c[0]?a[c.substr(1)]=!1:a[c]=!0)}}catch(e){i.e(e)}finally{i.f()}return a}function yr(e,t){return dr(t,"3p-vendor-split")?"".concat(B.thirdParty,"/").concat("2107030008000","/vendor/").concat(e,".js"):"".concat(B.thirdParty,"/").concat("2107030008000","/f.js")}function hr(e,t){var r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Nt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(B.thirdPartyFrameHost,"/").concat("2107030008000","/")+"".concat(r,".html")}function Nt(e){return"d-"+xr(e)}function xr(e){var t;if(e.crypto&&e.crypto.getRandomValues){var r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function br(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+xr(e)}var It=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function Er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(r),!0).forEach((function(t){Tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Er(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wt(e,t){return jt(e)||Lt(e,t)||Ct(e,t)||Mt()}function Mt(){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 Ct(e,t){if(e){if("string"==typeof e)return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sr(e,t)}}function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function jt(e){if(Array.isArray(e))return e}function Ut(e,t){if(null==e)return{};var r,n,o=kt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function kt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Fe={},Ar={EMBED_SIZE:"embed-size"},Re="sync-xhr 'none'",Bt=de().join(" ")+" "+ge().join(" ");function Ht(e,t){var r=e.allow,n=void 0===r?Re:r,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?Bt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=Ut(e,It);if(!Be(n,Re))throw new Error("'allow' prop must contain \"".concat(Re,'". Found "').concat(n,'".'));var v=j(null),m=j(null),g=ve((function(){return Fe[y]||(Fe[y]=je()),Fe[y]()}),[y]),h=wt(J({name:c,src:p}),2),P=h[0],S=P.name,_=P.src,E=h[1];return U((function(){var e,t,r=null===(e=v.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=p?p:r?hr(r):"about:blank";if(c)E({name:c,src:n});else if(r){var i=Object.assign(w({location:{href:r.location.href},sentinel:br(r)}),a),l=Object.assign(w({title:b,type:y,_context:i}),u);E({name:JSON.stringify(w({host:Oe(n).hostname,bootstrap:null!=o?o:yr(y,r),type:y,count:g,attributes:l})),src:n})}}),[o,a,g,c,u,p,b,y]),ne((function(){var e,t=null===(e=m.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[S]),Y(t,(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}}}),[]),A(be,Dt({allow:n,contentRef:v,messageHandler:l,name:S,ref:m,ready:!!S,sandbox:i?void 0:f,src:_,title:b},O))}var Ne=T(Ht);Ne.displayName="ProxyIframeEmbed";var Vt="amp-";function Or(e){if(!Gt(e))return null;var t=e.indexOf("{");return fe(-1!=t),ee(e.substr(t),(function(t){return $().error("MESSAGING","Failed to parse message: "+e,t)}))}function Gt(e){return"string"==typeof e&&0==e.indexOf(Vt)&&-1!=e.indexOf("{")}var Wt=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function _r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(r),!0).forEach((function(t){$t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pr(e,t){return Jt(e)||qt(e,t)||Xt(e,t)||zt()}function zt(){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 Xt(e,t){if(e){if("string"==typeof e)return Fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fr(e,t)}}function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function Jt(e){if(Array.isArray(e))return e}function Kt(e,t){if(null==e)return{};var r,n,o=Yt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Yt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Zt="facebook",Qt="100%",en=function(){return!0},rn="Facebook comments";function tn(e,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,v=e.share,m=e.showFacepile,g=e.showText,h=e.size,w=e.smallHeader,j=e.style,P=e.tabs,S=e.title,_=void 0===S?rn:S,E=Kt(e,Wt),x=Pr(J(null),2),R=x[0],M=x[1],N=oe((function(e){var t,r=null!==(t=ee(e.data))&&void 0!==t?t:Or(e.data);if("ready"==r.action&&(null==y||y()),r.type==Ar.EMBED_SIZE){var n=r.height;O?(O(n),M(Qt)):M(n)}}),[O,y]),D=Pr(J(f),2),F=D[0],I=D[1];return U((function(){var e,r;if(f)I(f);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||I(ke(n.navigator.language))}}),[f,t]),A(Ne,me(me({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:F,numPosts:p,orderBy:d,ref:b,share:v,showFacepile:m,showText:g,size:h,smallHeader:w,tabs:P},ref:t,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:en,messageHandler:N,type:Zt,style:R?me(me({},j),{},{height:R}):j}))}var Rr=T(tn);Rr.displayName="Facebook"; | ||
var Dr=Object.create,re=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,wr=Object.getOwnPropertyNames,Mr=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty,we=function(e){return re(e,"__esModule",{value:!0})},Lr=function(e,t){for(var r in we(e),t)re(e,r,{get:t[r],enumerable:!0})},jr=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=wr(t),a=0,i=o.length;a<i;a++)n=o[a],!Cr.call(e,n)&&"default"!==n&&re(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=Tr(t,n))||r.enumerable});return e},te=function(e){return jr(we(re(null!=e?Dr(Mr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Lr(exports,{Facebook:function(){return Rr}});var G=te(require("react")),Me=te(require("react-dom")),d=te(require("react"));function A(e,t,r){return G.createElement.apply(void 0,arguments)}function Ce(e){return G.createContext(e,void 0)}function J(e){return d.useState(e)}function j(e){return d.useRef(e)}function ne(e,t){d.useEffect(e,t)}function U(e,t){d.useLayoutEffect(e,t)}function Le(e){return d.useContext(e)}function ve(e,t){return d.useMemo(e,t)}function oe(e,t){return d.useCallback(e,t)}function Y(e,t,r){return d.useImperativeHandle(e,t,r)}var de=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},ge=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function je(){var e=0;return function(){return String(++e)}}var Ue=Object.prototype,sn=Ue.hasOwnProperty,cn=Ue.toString;function k(e){var t=Object.create(null);return e&&Object.assign(t,e),t}function w(e){return e||{}}function ke(e){return e.replace("-","_")}function Be(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}var K,ie=te(require("react"));function T(e){return ie.forwardRef(e)}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Ur=[R.AUTO,R.LAZY,R.EAGER,R.UNLOAD],He=(ae(K={},R.AUTO,0),ae(K,R.LAZY,1),ae(K,R.EAGER,2),ae(K,R.UNLOAD,3),K);function Ve(e,t){var r=He[e]||0,n=He[t]||0,o=Math.max(r,n);return Ur[o]}var Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},kr=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(r),!0).forEach((function(t){Br(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hr(e,t){if(null==e)return{};var r,n,o=Vr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Vr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Gr=[null,"paint","layout","content","size","size paint","size layout","strict"],Wr={position:"relative",width:"100%",height:"100%"};function $r(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,v=void 0!==O&&O,m=e.style,g=e.wrapperClassName,h=e.wrapperStyle,w=(v?4:0)+(y?2:0)+(b?1:0);return A(n,M(M({},Hr(e,kr)),{},{ref:t,className:"".concat(a||""," ").concat(g||"").trim()||null,style:M(M(M({},m),h),{},{contain:Gr[w]})}),A(c,M(M({},u),{},{ref:s,className:l,style:M(M({},v&&Wr),{},{overflow:b?"hidden":"visible"},f)}),o))}var ye=T($r),zr=["as","children","className","style","wrapperClassName","wrapperStyle"];function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){Xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qr(e,t){if(null==e)return{};var r,n,o=Jr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Jr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Kr(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return A(n,ue(ue({},qr(e,zr)),{},{ref:t,className:"".concat(a||""," ").concat(c||"").trim()||null,style:ue(ue({},i),l)}),o)}var $e,Yr=T(Kr);function he(e){var t=j(null);return t.current=e,t}function Zr(){return $e||($e=Ce({renderable:!0,playable:!0,loading:R.AUTO}))}function xe(){return Le(Zr())}function ze(e){return Ve(e,xe().loading)}var Qr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t){if(null==e)return{};var r,n,o=tt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function tt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var nt=function(){return!1},ot="about:blank",it=function(e){return e&&e!=ot&&!e.includes("#")};function at(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?nt:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,v=rt(e,Qr),m=xe().playable,g=ze(y),h=g!==R.UNLOAD,w=j(!1),P=he(d),S=oe((function(e){if(e!==w.current){w.current=e;var t=P.current;null==t||t(e?Z.COMPLETE:Z.LOADING)}}),[P]),_=j(null);return Y(t,(function(){return{get readyState(){return w.current?Z.COMPLETE:Z.LOADING},get node(){return _.current}}}),[]),U((function(){h||S(!1)}),[h,S]),ne((function(){var e=_.current;if(!m&&e){var t=e.src;if(it(t))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),U((function(){var e=_.current;if(e&&h){var t=function(e){var t=_.current;!t||e.source!=t.contentWindow||!u(e.origin)||s(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[u,s,h,p]),A(ye,se(se({},v),{},{layout:!0,size:!0,paint:!0}),h&&p&&A("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:_,sandbox:b,scrolling:"no",src:O,style:se(se({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var be=T(at);be.displayName="IframeEmbed";var ut=!1;function ce(){return ut}function Q(e){var t;if(!ce())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lt(e,t,r){return t&&Je(e.prototype,t),r&&Je(e,r),e}var Ke=function(){function e(t){ct(this,e),this.capacity_=t,this.size_=0,this.access_=0,this.cache_=k()}return lt(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload}},{key:"put",value:function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,t=this.cache_,r=this.access_+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.size_--)}}}]),e}(),W=Array.isArray,ft=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(e)}catch(e){return t}}function le(e){var t,r=k();if(!e)return r;for(;t=ft.exec(e);){var n=Ye(t[1],t[1]),o=t[2]?Ye(t[2].replace(/\+/g," "),t[2]):"";r[n]=o}return r}var O=self.AMP_CONFIG||{},pt=("string"==typeof O.thirdPartyFrameRegex?new RegExp(O.thirdPartyFrameRegex):O.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Ze=("string"==typeof O.cdnProxyRegex?new RegExp(O.cdnProxyRegex):O.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Qe(e){if(!self.document||!self.document.head||self.location&&Ze.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.getAttribute("content")||null}var B={thirdParty:O.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:O.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:pt,cdn:O.cdnUrl||Qe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Ze,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:O.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:O.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:O.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:O.geoApiUrl||Qe("amp-geo-api")},Ee={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Se=self.__AMP_LOG,sr=null;function $(){if(Se.dev)return Se.dev;if(!sr)throw new Error("failed to call initLogConstructor");return Se.dev=new sr(self,(function(e){return e>=3?Ee.FINE:e>=2?Ee.INFO:Ee.OFF}))}function fe(e,t,r,n,o,a,i,c,l,u,s){return e}var Ae,lr,ai=new Set(["c","v","a","ad"]);function Oe(e,t){return Ae||(Ae=self.document.createElement("a"),lr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new Ke(100))),yt(Ae,e,t?null:lr)}function yt(e,t,r){if(r&&r.has(t))return r.get(t);e.href=t,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=Q()&&Object.freeze?Object.freeze(o):o;return r&&r.put(t,a),a}function _e(e){return JSON.parse(e)}function ee(e,t){try{return _e(e)}catch(e){return null==t||t(e),null}}function Pe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ot(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{!i&&null!=r.return&&r.return()}finally{if(c)throw a}}}}function Ot(e,t){if(e){if("string"==typeof e)return pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pr(e,t)}}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(r),!0).forEach((function(t){_t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pt="EXPERIMENTS",Ft="amp-experiment-toggles",pe="__AMP__EXPERIMENT_TOGGLES";function dr(e,t){return!!gr(e)[t]}function gr(e){var t,r,n,o,a;if(e[pe])return e[pe];e[pe]=k();var i=e[pe],c=vr(vr({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:_e((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(var l in c){var u=c[l];"number"==typeof u&&u>=0&&u<=1&&(i[l]=Math.random()<u)}var s=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(W(s)&&s.length){var f=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(f){var p,y=Pe(f.getAttribute("content").split(","));try{for(y.s();!(p=y.n()).done;){var d=p.value;s.includes(d)&&(i[d]=!0)}}catch(e){y.e(e)}finally{y.f()}}}Object.assign(i,Rt(e));var b=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(W(b)&&b.length){var O,v=le(e.location.originalHash||e.location.hash),m=Pe(b);try{for(m.s();!(O=m.n()).done;){var g=O.value,h=v["e-".concat(g)];"1"==h&&(i[g]=!0),"0"==h&&(i[g]=!1)}}catch(e){m.e(e)}finally{m.f()}}return i}function Rt(e){var t,r="";try{"localStorage"in e&&(r=e.localStorage.getItem(Ft))}catch(e){$().warn(Pt,"Failed to retrieve experiments from localStorage.")}var n,o=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],a=k(),i=Pe(o);try{for(i.s();!(n=i.n()).done;){var c=n.value;!c||("-"==c[0]?a[c.substr(1)]=!1:a[c]=!0)}}catch(e){i.e(e)}finally{i.f()}return a}function yr(e,t){return dr(t,"3p-vendor-split")?"".concat(B.thirdParty,"/").concat("2107072148000","/vendor/").concat(e,".js"):"".concat(B.thirdParty,"/").concat("2107072148000","/f.js")}function hr(e,t){var r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Nt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(B.thirdPartyFrameHost,"/").concat("2107072148000","/")+"".concat(r,".html")}function Nt(e){return"d-"+xr(e)}function xr(e){var t;if(e.crypto&&e.crypto.getRandomValues){var r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function br(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+xr(e)}var It=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function Er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(r),!0).forEach((function(t){Tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Er(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wt(e,t){return jt(e)||Lt(e,t)||Ct(e,t)||Mt()}function Mt(){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 Ct(e,t){if(e){if("string"==typeof e)return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sr(e,t)}}function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function jt(e){if(Array.isArray(e))return e}function Ut(e,t){if(null==e)return{};var r,n,o=kt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function kt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Fe={},Ar={EMBED_SIZE:"embed-size"},Re="sync-xhr 'none'",Bt=de().join(" ")+" "+ge().join(" ");function Ht(e,t){var r=e.allow,n=void 0===r?Re:r,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?Bt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=Ut(e,It);if(!Be(n,Re))throw new Error("'allow' prop must contain \"".concat(Re,'". Found "').concat(n,'".'));var v=j(null),m=j(null),g=ve((function(){return Fe[y]||(Fe[y]=je()),Fe[y]()}),[y]),h=wt(J({name:c,src:p}),2),P=h[0],S=P.name,_=P.src,E=h[1];return U((function(){var e,t,r=null===(e=v.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=p?p:r?hr(r):"about:blank";if(c)E({name:c,src:n});else if(r){var i=Object.assign(w({location:{href:r.location.href},sentinel:br(r)}),a),l=Object.assign(w({title:b,type:y,_context:i}),u);E({name:JSON.stringify(w({host:Oe(n).hostname,bootstrap:null!=o?o:yr(y,r),type:y,count:g,attributes:l})),src:n})}}),[o,a,g,c,u,p,b,y]),ne((function(){var e,t=null===(e=m.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[S]),Y(t,(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}}}),[]),A(be,Dt({allow:n,contentRef:v,messageHandler:l,name:S,ref:m,ready:!!S,sandbox:i?void 0:f,src:_,title:b},O))}var Ne=T(Ht);Ne.displayName="ProxyIframeEmbed";var Vt="amp-";function Or(e){if(!Gt(e))return null;var t=e.indexOf("{");return fe(-1!=t),ee(e.substr(t),(function(t){return $().error("MESSAGING","Failed to parse message: "+e,t)}))}function Gt(e){return"string"==typeof e&&0==e.indexOf(Vt)&&-1!=e.indexOf("{")}var Wt=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function _r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(r),!0).forEach((function(t){$t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pr(e,t){return Jt(e)||qt(e,t)||Xt(e,t)||zt()}function zt(){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 Xt(e,t){if(e){if("string"==typeof e)return Fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fr(e,t)}}function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function Jt(e){if(Array.isArray(e))return e}function Kt(e,t){if(null==e)return{};var r,n,o=Yt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Yt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Zt="facebook",Qt="100%",en=function(){return!0},rn="Facebook comments";function tn(e,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,v=e.share,m=e.showFacepile,g=e.showText,h=e.size,w=e.smallHeader,j=e.style,P=e.tabs,S=e.title,_=void 0===S?rn:S,E=Kt(e,Wt),x=Pr(J(null),2),R=x[0],M=x[1],N=oe((function(e){var t,r=null!==(t=ee(e.data))&&void 0!==t?t:Or(e.data);if("ready"==r.action&&(null==y||y()),r.type==Ar.EMBED_SIZE){var n=r.height;O?(O(n),M(Qt)):M(n)}}),[O,y]),D=Pr(J(f),2),F=D[0],I=D[1];return U((function(){var e,r;if(f)I(f);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||I(ke(n.navigator.language))}}),[f,t]),A(Ne,me(me({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:F,numPosts:p,orderBy:d,ref:b,share:v,showFacepile:m,showText:g,size:h,smallHeader:w,tabs:P},ref:t,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:en,messageHandler:N,type:Zt,style:R?me(me({},j),{},{height:R}):j}))}var Rr=T(tn);Rr.displayName="Facebook"; | ||
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ | ||
//# sourceMappingURL=component-react.js.map |
@@ -588,3 +588,3 @@ var __create = Object.create; | ||
function internalRuntimeVersion() { | ||
return "2107030008000"; | ||
return "2107072148000"; | ||
} | ||
@@ -591,0 +591,0 @@ |
@@ -521,3 +521,3 @@ // src/preact/index.js | ||
function internalRuntimeVersion() { | ||
return "2107030008000"; | ||
return "2107072148000"; | ||
} | ||
@@ -524,0 +524,0 @@ |
@@ -1,3 +0,3 @@ | ||
import{Fragment as Dr,cloneElement as Mr,createContext as at,createElement as ct,createRef as wr}from"react";import{hydrate as Tr,render as Fr}from"react-dom";import{useCallback as gt,useContext as mt,useEffect as ft,useImperativeHandle as ht,useLayoutEffect as pt,useMemo as dt,useRef as lt,useState as ut}from"react";function E(e,t,r){return ct.apply(void 0,arguments)}function ve(e){return at(e,void 0)}function V(e){return ut(e)}function F(e){return lt(e)}function X(e,t){ft(e,t)}function T(e,t){pt(e,t)}function _e(e){return mt(e)}function ne(e,t){return dt(e,t)}function q(e,t){return gt(e,t)}function k(e,t,r){return ht(e,t,r)}var oe=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],ie=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function be(){let e=0;return()=>String(++e)}var{hasOwnProperty:jr,toString:$r}=Object.prototype;function L(e){let t=Object.create(null);return e&&Object.assign(t,e),t}function N(e){return e||{}}function Oe(e){return e.replace("-","_")}function Se(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}import{Children as Gr,createPortal as kr,forwardRef as xt}from"react";function A(e){return xt(e)}var _={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Et=[_.AUTO,_.LAZY,_.EAGER,_.UNLOAD],Ae={[_.AUTO]:0,[_.LAZY]:1,[_.EAGER]:2,[_.UNLOAD]:3};function Pe(e,t){let r=Ae[e]||0,n=Ae[t]||0,o=Math.max(r,n);return Et[o]}var G={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},yt=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){vt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _t(e,t){if(null==e)return{};var r,n,o=bt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function bt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Ot=[null,"paint","layout","content","size","size paint","size layout","strict"],St={position:"relative",width:"100%",height:"100%"};function At(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:d,wrapperClassName:y,wrapperStyle:O}=e,b=(p?4:0)+(s?2:0)+(f?1:0);return E(r,R(R({},_t(e,yt)),{},{ref:t,className:`${o||""} ${y||""}`.trim()||null,style:R(R(R({},d),O),{},{contain:Ot[b]})}),E(a,R(R({},i),{},{ref:c,className:l,style:R(R({},p&&St),{},{overflow:f?"hidden":"visible"},u)}),n))}var se=A(At),Pt=["as","children","className","style","wrapperClassName","wrapperStyle"];function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){Nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rt(e,t){if(null==e)return{};var r,n,o=It(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function It(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Mt(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return E(r,J(J({},Rt(e,Pt)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:J(J({},a),i)}),n)}var Ie,Ft=A(Mt);function ce(e){let t=F(null);return t.current=e,t}function Tt(){return Ie||(Ie=ve({renderable:!0,playable:!0,loading:_.AUTO}))}function ae(){return _e(Tt())}function Me(e){let{loading:t}=ae();return Pe(e,t)}var Dt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(r),!0).forEach((function(t){wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ct(e,t){if(null==e)return{};var r,n,o=Lt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Lt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var jt=()=>!1,$t="about:blank",Ut=e=>e&&e!=$t&&!e.includes("#");function Bt(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=jt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:d,src:y}=e,O=Ct(e,Dt),{playable:b}=ae(),m=Me(f),g=m!==_.UNLOAD,v=F(!1),h=ce(p),P=q((e=>{if(e!==v.current){v.current=e;let t=h.current;null==t||t(e?G.COMPLETE:G.LOADING)}}),[h]),w=F(null);return k(t,(()=>({get readyState(){return v.current?G.COMPLETE:G.LOADING},get node(){return w.current}})),[]),T((()=>{g||P(!1)}),[g,P]),X((()=>{let e=w.current;if(!b&&e){let{src:t}=e;Ut(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[b]),T((()=>{let e=w.current;if(!e||!g)return;let t=e=>{let t=w.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,g,s]),E(se,K(K({},O),{},{layout:!0,size:!0,paint:!0}),g&&s&&E("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:m,name:l,onLoad:()=>P(!0),part:"iframe",ref:w,sandbox:d,scrolling:"no",src:y,style:K(K({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ue=A(Bt);ue.displayName="IframeEmbed";var Vt=!1;function Y(){return Vt}function W(e){var t;if(!Y())return!1;let r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}var{isArray:j}=Array,kt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function De(e,t=""){let r=t;try{return decodeURIComponent(e)}catch(e){return r}}function Z(e){let t,r=L();if(!e)return r;for(;t=kt.exec(e);){let e=De(t[1],t[1]),n=t[2]?De(t[2].replace(/\+/g," "),t[2]):"";r[e]=n}return r}var y=self.AMP_CONFIG||{},Gt=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,we=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Ce(e){if(!self.document||!self.document.head||self.location&&we.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var D={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:Gt,cdn:y.cdnUrl||Ce("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:we,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||Ce("amp-geo-api")},le={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var fe=self.__AMP_LOG,Ge=null;function Q(){if(fe.dev)return fe.dev;if(!Ge)throw new Error("failed to call initLogConstructor");return fe.dev=new Ge(self,(e=>e>=3?le.FINE:e>=2?le.INFO:le.OFF))}function ee(e,t,r,n,o,a,l,i,c,u,s){return e}var pe,Jt,Bo=new Set(["c","v","a","ad"]);function me(e,t){return pe||(pe=self.document.createElement("a"),Jt=null),Kt(pe,e,null)}function Kt(e,t,r){return e.href="",new URL(t,e.href)}function de(e){return JSON.parse(e)}function z(e,t){try{return de(e)}catch(e){return null==t||t(e),null}}function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){nr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var or="amp-experiment-toggles",te="__AMP__EXPERIMENT_TOGGLES";function Je(e,t){return!!Ke(e)[t]}function Ke(e){var t,r,n,o,a;if(e[te])return e[te];e[te]=L();let l=e[te],i=qe(qe({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:de((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(let e in i){let t=i[e];"number"==typeof t&&t>=0&&t<=1&&(l[e]=Math.random()<t)}let c=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(j(c)&&c.length){let t=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(t){let e=t.getAttribute("content").split(",");for(let t of e)c.includes(t)&&(l[t]=!0)}}Object.assign(l,ir(e));let u=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(j(u)&&u.length){let t=Z(e.location.originalHash||e.location.hash);for(let e of u){let r=t[`e-${e}`];"1"==r&&(l[e]=!0),"0"==r&&(l[e]=!1)}}return l}function ir(e){var t;let r="";try{"localStorage"in e&&(r=e.localStorage.getItem(or))}catch(e){}let n=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],o=L();for(let e of n)!e||("-"==e[0]?o[e.substr(1)]=!1:o[e]=!0);return o}function Ye(e,t){return Je(t,"3p-vendor-split")?`${D.thirdParty}/2107030008000/vendor/${e}.mjs`:`${D.thirdParty}/2107030008000/f.js`}function Ze(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||sr(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${D.thirdPartyFrameHost}/2107030008000/${r}.html`}function sr(e){return"d-"+Qe(e)}function Qe(e){let t;if(e.crypto&&e.crypto.getRandomValues){let r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function et(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+Qe(e)}var cr=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lr(e,t){if(null==e)return{};var r,n,o=fr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function fr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var ge={},rt={EMBED_SIZE:"embed-size"},he="sync-xhr 'none'",pr=oe().join(" ")+" "+ie().join(" ");function mr(e,t){let{allow:r=he,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=pr,src:s,type:f,title:p=f}=e,d=lr(e,cr);if(!Se(r,he))throw new Error(`'allow' prop must contain "${he}". Found "${r}".`);let y=F(null),O=F(null),b=ne((()=>(ge[f]||(ge[f]=be()),ge[f]())),[f]),{0:{name:m,src:g},1:v}=V({name:l,src:s});return T((()=>{var e,t;let r=null===(e=y.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Ze(r):"about:blank";if(l)return void v({name:l,src:a});if(!r)return;let i=Object.assign(N({location:{href:r.location.href},sentinel:et(r)}),o),u=Object.assign(N({title:p,type:f,_context:i}),c);v({name:JSON.stringify(N({host:me(a).hostname,bootstrap:null!=n?n:Ye(f,r),type:f,count:b,attributes:u})),src:a})}),[n,o,b,l,c,s,p,f]),X((()=>{var e;let t=null===(e=O.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[m]),k(t,(()=>({get readyState(){var e;return null===(e=O.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=O.current)||void 0===e?void 0:e.node}})),[]),E(ue,ar({allow:r,contentRef:y,messageHandler:i,name:m,ref:O,ready:!!m,sandbox:a?void 0:u,src:g,title:p},d))}var xe=A(mr);xe.displayName="ProxyIframeEmbed";var dr="amp-";function nt(e){if(!gr(e))return null;let t=e.indexOf("{");return ee(-1!=t),z(e.substr(t),(t=>Q().error("MESSAGING","Failed to parse message: "+e,t)))}function gr(e){return"string"==typeof e&&0==e.indexOf(dr)&&-1!=e.indexOf("{")}var hr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Er(e,t){if(null==e)return{};var r,n,o=yr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function yr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var vr="facebook",_r="100%",br=()=>!0,Or="Facebook comments";function Sr(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:d,orderBy:y,refLabel:O,requestResize:b,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,style:w,tabs:j,title:S=Or}=e,A=Er(e,hr),{0:_,1:x}=V(null),R=q((e=>{var t;let r=null!==(t=z(e.data))&&void 0!==t?t:nt(e.data);if("ready"==r.action&&(null==d||d()),r.type==rt.EMBED_SIZE){let e=r.height;b?(b(e),x(_r)):x(e)}}),[b,d]),{0:D,1:N}=V(f);return T((()=>{var e,r;if(f)return void N(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||N(Oe(n.navigator.language))}),[f,t]),E(xe,re(re({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:y,ref:O,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,tabs:j},ref:t,title:S},A),{},{excludeSandbox:!0,matchesMessagingOrigin:br,messageHandler:R,type:vr,style:_?re(re({},w),{},{height:_}):w}))}var Ar=A(Sr);Ar.displayName="Facebook";export{Ar as Facebook}; | ||
import{Fragment as Dr,cloneElement as Mr,createContext as at,createElement as ct,createRef as wr}from"react";import{hydrate as Tr,render as Fr}from"react-dom";import{useCallback as gt,useContext as mt,useEffect as ft,useImperativeHandle as ht,useLayoutEffect as pt,useMemo as dt,useRef as lt,useState as ut}from"react";function E(e,t,r){return ct.apply(void 0,arguments)}function ve(e){return at(e,void 0)}function V(e){return ut(e)}function F(e){return lt(e)}function X(e,t){ft(e,t)}function T(e,t){pt(e,t)}function _e(e){return mt(e)}function ne(e,t){return dt(e,t)}function q(e,t){return gt(e,t)}function k(e,t,r){return ht(e,t,r)}var oe=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],ie=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function be(){let e=0;return()=>String(++e)}var{hasOwnProperty:jr,toString:$r}=Object.prototype;function L(e){let t=Object.create(null);return e&&Object.assign(t,e),t}function N(e){return e||{}}function Oe(e){return e.replace("-","_")}function Se(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}import{Children as Gr,createPortal as kr,forwardRef as xt}from"react";function A(e){return xt(e)}var _={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Et=[_.AUTO,_.LAZY,_.EAGER,_.UNLOAD],Ae={[_.AUTO]:0,[_.LAZY]:1,[_.EAGER]:2,[_.UNLOAD]:3};function Pe(e,t){let r=Ae[e]||0,n=Ae[t]||0,o=Math.max(r,n);return Et[o]}var G={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},yt=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){vt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _t(e,t){if(null==e)return{};var r,n,o=bt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function bt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Ot=[null,"paint","layout","content","size","size paint","size layout","strict"],St={position:"relative",width:"100%",height:"100%"};function At(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:d,wrapperClassName:y,wrapperStyle:O}=e,b=(p?4:0)+(s?2:0)+(f?1:0);return E(r,R(R({},_t(e,yt)),{},{ref:t,className:`${o||""} ${y||""}`.trim()||null,style:R(R(R({},d),O),{},{contain:Ot[b]})}),E(a,R(R({},i),{},{ref:c,className:l,style:R(R({},p&&St),{},{overflow:f?"hidden":"visible"},u)}),n))}var se=A(At),Pt=["as","children","className","style","wrapperClassName","wrapperStyle"];function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){Nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rt(e,t){if(null==e)return{};var r,n,o=It(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function It(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Mt(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return E(r,J(J({},Rt(e,Pt)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:J(J({},a),i)}),n)}var Ie,Ft=A(Mt);function ce(e){let t=F(null);return t.current=e,t}function Tt(){return Ie||(Ie=ve({renderable:!0,playable:!0,loading:_.AUTO}))}function ae(){return _e(Tt())}function Me(e){let{loading:t}=ae();return Pe(e,t)}var Dt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(r),!0).forEach((function(t){wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ct(e,t){if(null==e)return{};var r,n,o=Lt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Lt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var jt=()=>!1,$t="about:blank",Ut=e=>e&&e!=$t&&!e.includes("#");function Bt(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=jt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:d,src:y}=e,O=Ct(e,Dt),{playable:b}=ae(),m=Me(f),g=m!==_.UNLOAD,v=F(!1),h=ce(p),P=q((e=>{if(e!==v.current){v.current=e;let t=h.current;null==t||t(e?G.COMPLETE:G.LOADING)}}),[h]),w=F(null);return k(t,(()=>({get readyState(){return v.current?G.COMPLETE:G.LOADING},get node(){return w.current}})),[]),T((()=>{g||P(!1)}),[g,P]),X((()=>{let e=w.current;if(!b&&e){let{src:t}=e;Ut(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[b]),T((()=>{let e=w.current;if(!e||!g)return;let t=e=>{let t=w.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,g,s]),E(se,K(K({},O),{},{layout:!0,size:!0,paint:!0}),g&&s&&E("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:m,name:l,onLoad:()=>P(!0),part:"iframe",ref:w,sandbox:d,scrolling:"no",src:y,style:K(K({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ue=A(Bt);ue.displayName="IframeEmbed";var Vt=!1;function Y(){return Vt}function W(e){var t;if(!Y())return!1;let r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}var{isArray:j}=Array,kt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function De(e,t=""){let r=t;try{return decodeURIComponent(e)}catch(e){return r}}function Z(e){let t,r=L();if(!e)return r;for(;t=kt.exec(e);){let e=De(t[1],t[1]),n=t[2]?De(t[2].replace(/\+/g," "),t[2]):"";r[e]=n}return r}var y=self.AMP_CONFIG||{},Gt=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,we=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Ce(e){if(!self.document||!self.document.head||self.location&&we.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var D={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:Gt,cdn:y.cdnUrl||Ce("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:we,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||Ce("amp-geo-api")},le={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var fe=self.__AMP_LOG,Ge=null;function Q(){if(fe.dev)return fe.dev;if(!Ge)throw new Error("failed to call initLogConstructor");return fe.dev=new Ge(self,(e=>e>=3?le.FINE:e>=2?le.INFO:le.OFF))}function ee(e,t,r,n,o,a,l,i,c,u,s){return e}var pe,Jt,Bo=new Set(["c","v","a","ad"]);function me(e,t){return pe||(pe=self.document.createElement("a"),Jt=null),Kt(pe,e,null)}function Kt(e,t,r){return e.href="",new URL(t,e.href)}function de(e){return JSON.parse(e)}function z(e,t){try{return de(e)}catch(e){return null==t||t(e),null}}function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){nr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var or="amp-experiment-toggles",te="__AMP__EXPERIMENT_TOGGLES";function Je(e,t){return!!Ke(e)[t]}function Ke(e){var t,r,n,o,a;if(e[te])return e[te];e[te]=L();let l=e[te],i=qe(qe({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:de((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(let e in i){let t=i[e];"number"==typeof t&&t>=0&&t<=1&&(l[e]=Math.random()<t)}let c=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(j(c)&&c.length){let t=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(t){let e=t.getAttribute("content").split(",");for(let t of e)c.includes(t)&&(l[t]=!0)}}Object.assign(l,ir(e));let u=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(j(u)&&u.length){let t=Z(e.location.originalHash||e.location.hash);for(let e of u){let r=t[`e-${e}`];"1"==r&&(l[e]=!0),"0"==r&&(l[e]=!1)}}return l}function ir(e){var t;let r="";try{"localStorage"in e&&(r=e.localStorage.getItem(or))}catch(e){}let n=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],o=L();for(let e of n)!e||("-"==e[0]?o[e.substr(1)]=!1:o[e]=!0);return o}function Ye(e,t){return Je(t,"3p-vendor-split")?`${D.thirdParty}/2107072148000/vendor/${e}.mjs`:`${D.thirdParty}/2107072148000/f.js`}function Ze(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||sr(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${D.thirdPartyFrameHost}/2107072148000/${r}.html`}function sr(e){return"d-"+Qe(e)}function Qe(e){let t;if(e.crypto&&e.crypto.getRandomValues){let r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function et(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+Qe(e)}var cr=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lr(e,t){if(null==e)return{};var r,n,o=fr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function fr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var ge={},rt={EMBED_SIZE:"embed-size"},he="sync-xhr 'none'",pr=oe().join(" ")+" "+ie().join(" ");function mr(e,t){let{allow:r=he,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=pr,src:s,type:f,title:p=f}=e,d=lr(e,cr);if(!Se(r,he))throw new Error(`'allow' prop must contain "${he}". Found "${r}".`);let y=F(null),O=F(null),b=ne((()=>(ge[f]||(ge[f]=be()),ge[f]())),[f]),{0:{name:m,src:g},1:v}=V({name:l,src:s});return T((()=>{var e,t;let r=null===(e=y.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Ze(r):"about:blank";if(l)return void v({name:l,src:a});if(!r)return;let i=Object.assign(N({location:{href:r.location.href},sentinel:et(r)}),o),u=Object.assign(N({title:p,type:f,_context:i}),c);v({name:JSON.stringify(N({host:me(a).hostname,bootstrap:null!=n?n:Ye(f,r),type:f,count:b,attributes:u})),src:a})}),[n,o,b,l,c,s,p,f]),X((()=>{var e;let t=null===(e=O.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[m]),k(t,(()=>({get readyState(){var e;return null===(e=O.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=O.current)||void 0===e?void 0:e.node}})),[]),E(ue,ar({allow:r,contentRef:y,messageHandler:i,name:m,ref:O,ready:!!m,sandbox:a?void 0:u,src:g,title:p},d))}var xe=A(mr);xe.displayName="ProxyIframeEmbed";var dr="amp-";function nt(e){if(!gr(e))return null;let t=e.indexOf("{");return ee(-1!=t),z(e.substr(t),(t=>Q().error("MESSAGING","Failed to parse message: "+e,t)))}function gr(e){return"string"==typeof e&&0==e.indexOf(dr)&&-1!=e.indexOf("{")}var hr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Er(e,t){if(null==e)return{};var r,n,o=yr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function yr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var vr="facebook",_r="100%",br=()=>!0,Or="Facebook comments";function Sr(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:d,orderBy:y,refLabel:O,requestResize:b,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,style:w,tabs:j,title:S=Or}=e,A=Er(e,hr),{0:_,1:x}=V(null),R=q((e=>{var t;let r=null!==(t=z(e.data))&&void 0!==t?t:nt(e.data);if("ready"==r.action&&(null==d||d()),r.type==rt.EMBED_SIZE){let e=r.height;b?(b(e),x(_r)):x(e)}}),[b,d]),{0:D,1:N}=V(f);return T((()=>{var e,r;if(f)return void N(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||N(Oe(n.navigator.language))}),[f,t]),E(xe,re(re({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:y,ref:O,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,tabs:j},ref:t,title:S},A),{},{excludeSandbox:!0,matchesMessagingOrigin:br,messageHandler:R,type:vr,style:_?re(re({},w),{},{height:_}):w}))}var Ar=A(Sr);Ar.displayName="Facebook";export{Ar as Facebook}; | ||
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ | ||
//# sourceMappingURL=component-react.module.js.map |
{ | ||
"name": "@ampproject/amp-facebook", | ||
"version": "1.2107030008.0", | ||
"version": "1.2107072148.0", | ||
"description": "AMP HTML amp-facebook Component", | ||
@@ -5,0 +5,0 @@ "author": "The AMP HTML Authors", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package