/**handles:activitypub-remote-reply,smush-lazy-load,akismet-frontend**/ (()=>{"use strict";var u,a={664:(e,t,a)=>{const y=window.wp.element,n=window.wp.domReady;var o=a.n(n),i=window.wp.apiFetch,_=a.n(i);const w=window.wp.components,b=window.wp.i18n,r=window.wp.primitives,h=(0,y.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,y.createElement)(r.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"})),E=(0,y.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,y.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),f=function({icon:e,size:t=24,...a}){return(0,y.cloneElement)(e,{width:t,height:t,...a})},g=window.wp.compose,{namespace:C}=window._activityPubOptions;function O(e){try{return new URL(e),!0}catch(e){return!1}}function c({selectedComment:e,commentId:a}){const n=(0,b.__)("Reply","activitypub"),o=(0,b.__)("Loading...","activitypub"),i=(0,b.__)("Opening...","activitypub"),r=(0,b.__)("Error","activitypub"),c=(0,b.__)("Invalid","activitypub"),[t,l]=(0,y.useState)(n),[u,p]=(0,y.useState)(h),m=(0,g.useCopyToClipboard)(e,()=>{p(E),setTimeout(()=>p(h),1e3)}),[s,d]=(0,y.useState)(""),v=(0,y.useCallback)(()=>{let e;if(!O(s)&&(2!==(t=(t=s).replace(/^@/,"").split("@")).length||!O(`https://${t[1]}`)))return l(c),e=setTimeout(()=>l(n),2e3),()=>clearTimeout(e);var t,t=`/${C}/comments/${a}/remote-reply?resource=${s}`;l(o),_()({path:t}).then(({url:e})=>{l(i),setTimeout(()=>{window.open(e,"_blank"),l(n)},200)}).catch(()=>{l(r),setTimeout(()=>l(n),2e3)})},[s]);return(0,y.createElement)("div",{className:"activitypub__dialog"},(0,y.createElement)("div",{className:"activitypub-dialog__section"},(0,y.createElement)("h4",null,(0,b.__)("The Comment-URL","activitypub")),(0,y.createElement)("div",{className:"activitypub-dialog__description"},(0,b.__)("Copy and paste the Comment-URL into the search field of your favorite fediverse app or server to reply to this Comment.","activitypub")),(0,y.createElement)("div",{className:"activitypub-dialog__button-group"},(0,y.createElement)("input",{type:"text",value:e,readOnly:!0}),(0,y.createElement)(w.Button,{ref:m},(0,y.createElement)(f,{icon:u}),(0,b.__)("Copy","activitypub")))),(0,y.createElement)("div",{className:"activitypub-dialog__section"},(0,y.createElement)("h4",null,(0,b.__)("Your Profile","activitypub")),(0,y.createElement)("div",{className:"activitypub-dialog__description"},(0,y.createInterpolateElement)((0,b.__)("Or, if you know your own profile, we can start things that way! (eg https://example.com/yourusername or yourusername@example.com)","activitypub"),{code:(0,y.createElement)("code",null)})),(0,y.createElement)("div",{className:"activitypub-dialog__button-group"},(0,y.createElement)("input",{type:"text",value:s,onKeyDown:e=>{"Enter"===e?.code&&v()},onChange:e=>d(e.target.value)}),(0,y.createElement)(w.Button,{onClick:v},t))))}function l({selectedComment:e,commentId:t}){const[a,n]=(0,y.useState)(!1),o=(0,b.__)("Remote Reply","activitypub");return(0,y.createElement)(y.Fragment,null,(0,y.createElement)(w.Button,{isLink:!0,className:"comment-reply-link activitypub-remote-reply__button",onClick:()=>n(!0)},(0,b.__)("Reply on the Fediverse","activitypub")),a&&(0,y.createElement)(w.Modal,{className:"activitypub-remote-reply__modal activitypub__modal",onRequestClose:()=>n(!1),title:o},(0,y.createElement)(c,{selectedComment:e,commentId:t})))}let u=1;o()(()=>{[].forEach.call(document.querySelectorAll(".activitypub-remote-reply"),e=>{var t=JSON.parse(e.dataset.attrs);(0,y.createRoot)(e).render((0,y.createElement)(l,{...t,id:"activitypub-remote-reply-link-"+u++,useId:!0}))})})}},n={};function p(e){var t=n[e];if(void 0!==t)return t.exports;var t=n[e]={exports:{}};return a[e](t,t.exports,p),t.exports}p.m=a,u=[],p.O=(e,t,a,n)=>{if(!t){for(var o=1/0,i=0;ip.O[e](t[c]))?t.splice(c--,1):(r=!1,nn;i--)u[i]=u[i-1];u[i]=[t,a,n]},p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var a in t)p.o(t,a)&&!p.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var u={805:0,881:0};p.O.j=e=>0===u[e];var e=(e,t)=>{var a,n,o=t[0],i=t[1],r=t[2],c=0,l;if(o.some(e=>0!==u[e])){for(a in i)p.o(i,a)&&(p.m[a]=i[a]);r&&(l=r(p))}for(e&&e(t);cp(664)),e=p.O(e)})(); !function(){var e={6488:function(e){!function(t,n){var a=function(e,t,n){"use strict";var a,i;if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in i=e.lazySizesConfig||e.lazysizesConfig||{},n)t in i||(i[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:i,noSupport:!0};var r=t.documentElement,o=e.HTMLPictureElement,s="addEventListener",l="getAttribute",c=e[s].bind(e),d=e.setTimeout,u=e.requestAnimationFrame||d,f=e.requestIdleCallback,m=/^picture$/i,v=["load","error","lazyincluded","_lazyloaded"],y={},h=Array.prototype.forEach,z=function(e,t){return y[t]||(y[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),y[t].test(e[l]("class")||"")&&y[t]},p=function(e,t){z(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},g=function(e,t){var n;(n=z(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(n," "))},C=function(e,t,n){var a=n?s:"removeEventListener";n&&C(e,t),v.forEach((function(n){e[a](n,t)}))},b=function(e,n,i,r,o){var s=t.createEvent("Event");return i||(i={}),i.instance=a,s.initEvent(n,!r,!o),s.detail=i,e.dispatchEvent(s),s},A=function(t,n){var a;!o&&(a=e.picturefill||i.pf)?(n&&n.src&&!t[l]("srcset")&&t.setAttribute("srcset",n.src),a({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},E=function(e,t){return(getComputedStyle(e,null)||{})[t]},_=function(e,t,n){for(n=n||e.offsetWidth;n49?function(){f(s,{timeout:o}),o!==i.ricTimeout&&(o=i.ricTimeout)}:M((function(){d(s)}),!0);return function(e){var i;(e=!0===e)&&(o=33),t||(t=!0,(i=r-(n.now()-a))<0&&(i=0),e||i<9?l():d(l,i))}},x=function(e){var t,a,i=99,r=function(){t=null,e()},o=function(){var e=n.now()-a;e0)&&"visible"!=E(i,"overflow")&&(a=i.getBoundingClientRect(),o=U>a.left&&ja.top-1&&I500&&r.clientWidth>500?500:370:i.expand,a._defEx=v,y=v*i.expFactor,h=i.hFac,J=null,Y2&&k>2&&!t.hidden?(Y=y,ee=0):Y=k>1&&ee>1&&Z<6?v:X),m!==d&&($=innerWidth+d*h,q=innerHeight+d,u=-1*d,m=d),o=z[n].getBoundingClientRect(),(G=o.bottom)>=u&&(I=o.top)<=q&&(U=o.right)>=u*h&&(j=o.left)<=$&&(G||U||j||I)&&(i.loadHidden||ne(z[n]))&&(P&&Z<3&&!f&&(k<3||ee<4)||ae(z[n],d))){if(fe(z[n]),c=!0,Z>9)break}else!c&&P&&!s&&Z<4&&ee<4&&k>2&&(R[0]||i.preloadAfterLoad)&&(R[0]||!f&&(G||U||j||I||"auto"!=z[n][l](i.sizesAttr)))&&(s=R[0]||z[n]);s&&!c&&fe(s)}},re=N(ie),oe=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),p(t,i.loadedClass),g(t,i.loadingClass),C(t,le),b(t,"lazyloaded"))},se=M(oe),le=function(e){se({target:e.target})},ce=function(e,t){var n=e.getAttribute("data-load-mode")||i.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)},de=function(e){var t,n=e[l](i.srcsetAttr);(t=i.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},ue=M((function(e,t,n,a,r){var o,s,c,u,f,v;(f=b(e,"lazybeforeunveil",t)).defaultPrevented||(a&&(n?p(e,i.autosizesClass):e.setAttribute("sizes",a)),s=e[l](i.srcsetAttr),o=e[l](i.srcAttr),r&&(u=(c=e.parentNode)&&m.test(c.nodeName||"")),v=t.firesLoad||"src"in e&&(s||o||u),f={target:e},p(e,i.loadingClass),v&&(clearTimeout(D),D=d(te,2500),C(e,le,!0)),u&&h.call(c.getElementsByTagName("source"),de),s?e.setAttribute("srcset",s):o&&!u&&(Q.test(e.nodeName)?ce(e,o):e.src=o),r&&(s||u)&&A(e,{src:o})),e._lazyRace&&delete e._lazyRace,g(e,i.lazyClass),w((function(){var t=e.complete&&e.naturalWidth>1;v&&!t||(t&&p(e,i.fastLoadedClass),oe(f),e._lazyCache=!0,d((function(){"_lazyCache"in e&&delete e._lazyCache}),9)),"lazy"==e.loading&&Z--}),!0)})),fe=function(e){if(!e._lazyRace){var t,n=K.test(e.nodeName),a=n&&(e[l](i.sizesAttr)||e[l]("sizes")),r="auto"==a;(!r&&P||!n||!e[l]("src")&&!e.srcset||e.complete||z(e,i.errorClass)||!z(e,i.lazyClass))&&(t=b(e,"lazyunveilread").detail,r&&W.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,Z++,ue(e,t,r,a,n))}},me=x((function(){i.loadMode=3,re()})),ve=function(){3==i.loadMode&&(i.loadMode=2),me()},ye=function(){P||(n.now()-H<999?d(ye,999):(P=!0,i.loadMode=3,re(),c("scroll",ve,!0)))},{_:function(){H=n.now(),a.elements=t.getElementsByClassName(i.lazyClass),R=t.getElementsByClassName(i.lazyClass+" "+i.preloadClass),c("scroll",re,!0),c("resize",re,!0),c("pageshow",(function(e){if(e.persisted){var n=t.querySelectorAll("."+i.loadingClass);n.length&&n.forEach&&u((function(){n.forEach((function(e){e.complete&&fe(e)}))}))}})),e.MutationObserver?new MutationObserver(re).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r[s]("DOMNodeInserted",re,!0),r[s]("DOMAttrModified",re,!0),setInterval(re,999)),c("hashchange",re,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[s](e,re,!0)})),/d$|^c/.test(t.readyState)?ye():(c("load",ye),t[s]("DOMContentLoaded",re),d(ye,2e4)),a.elements.length?(ie(),w._lsFlush()):re()},checkElems:re,unveil:fe,_aLSL:ve}),W=(T=M((function(e,t,n,a){var i,r,o;if(e._lazysizesWidth=a,a+="px",e.setAttribute("sizes",a),m.test(t.nodeName||""))for(r=0,o=(i=t.getElementsByTagName("source")).length;r