PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3
Jetpack – WP Security, Backup, Speed, & Growth v16.3
16.3 16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 All 508 releases
← All changes | jetpack_vendor/automattic/jetpack-comments/build/comments.js +1 -1 16.2 → 16.3 View file →
@@ -1 +1 @@
1 -(()=>{"use strict";var t={900(t,e,n){n.d(e,{EW:()=>k,HN:()=>p,QZ:()=>N,vP:()=>d});var o=Symbol.for("preact-signals");function r(){if(s>1)s--;else{var t,e=!1;for(!function(){var t=f;for(f=void 0;void 0!==t;){var e=t.S;if(e.v===t.v)for(var n=e.t;void 0!==n;n=n.x)n.i===t.i&&(n.i=e.i);t=t.o}}();void 0!==l;){var n=l;for(l=void 0,a++;void 0!==n;){var o=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&m(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=o}}if(a=0,s--,e)throw t}}var i,_=void 0;function u(t){var e=_,n=i;_=void 0,i=void 0;try{return t()}finally{_=e,i=n}}var l=void 0,s=0,a=0,c=0,f=void 0,h=0;function v(t){if(void 0!==_){var e=t.n;if(void 0===e||e.t!==_)return e={i:0,S:t,p:_.s,n:void 0,t:_,e:void 0,x:void 0,r:e},void 0!==_.s&&(_.s.n=e),_.s=e,t.n=e,32&_.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=_.s,e.n=void 0,_.s.n=e,_.s=e),e}}function p(t,e){this.v=t,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==e?void 0:e.watched,this.Z=null==e?void 0:e.unwatched,this.name=null==e?void 0:e.name}function d(t,e){return new p(t,e)}function m(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function y(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function g(t){for(var e=t.s,n=void 0;void 0!==e;){var o=e.p;-1===e.i?(e.S.U(e),void 0!==o&&(o.n=e.n),void 0!==e.n&&(e.n.p=o)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=o}t.s=n}function b(t,e){p.call(this,void 0,e),this.x=t,this.s=void 0,this.g=h-1,this.f=4}function k(t,e){return new b(t,e)}function w(t){var e=t.m;if(t.m=void 0,"function"==typeof e){s++;var n=_;_=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,S(t),e}finally{_=n,r()}}}function S(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,w(t)}function C(t){if(_!==this)throw new Error("Out-of-order effect");g(this),_=t,this.f&=-2,8&this.f&&S(this),r()}function x(t,e){this.x=t,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==e?void 0:e.name,i&&i.push(this)}function N(t,e){var n=new x(t,e);try{n.c()}catch(t){throw n.d(),t}var o=n.d.bind(n);return o[Symbol.dispose]=o,o}p.prototype.brand=o,p.prototype.h=function(){return!0},p.prototype.S=function(t){var e=this,n=this.t;n!==t&&void 0===t.e&&(t.x=n,this.t=t,void 0!==n?n.e=t:u(function(){var t;null==(t=e.W)||t.call(e)}))},p.prototype.U=function(t){var e=this;if(void 0!==this.t){var n=t.e,o=t.x;void 0!==n&&(n.x=o,t.e=void 0),void 0!==o&&(o.e=n,t.x=void 0),t===this.t&&(this.t=o,void 0===o&&u(function(){var t;null==(t=e.Z)||t.call(e)}))}},p.prototype.subscribe=function(t){var e=this;return N(function(){var n=e.value;u(function(){return t(n)})},{name:"sub"})},p.prototype.valueOf=function(){return this.value},p.prototype.toString=function(){return this.value+""},p.prototype.toJSON=function(){return this.value},p.prototype.peek=function(){var t=this;return u(function(){return t.value})},Object.defineProperty(p.prototype,"value",{get:function(){var t=v(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(a>100)throw new Error("Cycle detected");!function(t){0!==s&&0===a&&t.l!==c&&(t.l=c,f={S:t,v:t.v,i:t.i,o:f})}(this),this.v=t,this.i++,h++,s++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{r()}}}}),b.prototype=new p,b.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===h)return!0;if(this.g=h,this.f|=1,this.i>0&&!m(this))return this.f&=-2,!0;var t=_;try{y(this),_=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return _=t,g(this),this.f&=-2,!0},b.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}p.prototype.S.call(this,t)},b.prototype.U=function(t){if(void 0!==this.t&&(p.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},b.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Object.defineProperty(b.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=v(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),x.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.m=e)}finally{t()}},x.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,w(this),y(this),s++;var t=_;return _=this,C.bind(this,t)},x.prototype.N=function(){2&this.f||(this.f|=2,this.u=l,l=this)},x.prototype.d=function(){this.f|=8,1&this.f||S(this)},x.prototype.dispose=function(){this.d()}},78(t,e,n){n.d(e,{EW:()=>_.EW,vP:()=>_.vP});var o,r=n(799),i=n(955),_=n(900);function u(t,e){r.fF[t]=e.bind(null,r.fF[t]||function(){})}function l(t){o&&o(),o=t&&t.S()}function s(t){var e=this,n=t.data,o=function(t){return(0,i.Kr)(function(){return(0,_.vP)(t)},[])}(n);o.value=n;var u=(0,i.Kr)(function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t;(0,r.zO)(u.peek())||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=u.peek()},(0,_.EW)(function(){var t=o.value.value;return 0===t?0:!0===t?"":t||""})},[]);return u.value}function a(t,e,n,o){var r=e in t&&void 0===t.ownerSVGElement,i=(0,_.vP)(n);return{o:function(t,e){i.value=t,o=e},d:(0,_.QZ)(function(){var n=i.value.value;o[e]!==n&&(o[e]=n,r?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))})}}s.displayName="_st",Object.defineProperties(_.HN.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:s},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),u("__b",function(t,e){if("string"==typeof e.type){var n,o=e.props;for(var r in o)if("children"!==r){var i=o[r];i instanceof _.HN&&(n||(e.__np=n={}),n[r]=i,o[r]=i.peek())}}t(e)}),u("__r",function(t,e){l();var n,o=e.__c;o&&(o.__$f&=-2,void 0===(n=o.__$u)&&(o.__$u=n=function(){var t;return(0,_.QZ)(function(){t=this}),t.c=function(){o.__$f|=1,o.setState({})},t}())),l(n),t(e)}),u("__e",function(t,e,n,o){l(),t(e,n,o)}),u("diffed",function(t,e){var n;if(l(),"string"==typeof e.type&&(n=e.__e)){var o=e.__np,r=e.props;if(o){var i=n.U;if(i)for(var _ in i){var u=i[_];void 0===u||_ in o||(u.d(),i[_]=void 0)}else n.U=i={};for(var s in o){var c=i[s],f=o[s];void 0===c?(c=a(n,s,f,r),i[s]=c):c.o(f,r)}}}t(e)}),u("unmount",function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var o=n.U;if(o)for(var r in n.U=void 0,o){var i=o[r];i&&i.d()}}}else{var _=e.__c;if(_){var u=_.__$u;u&&(_.__$u=void 0,u.d())}}t(e)}),u("__h",function(t,e,n,o){(o<3||9===o)&&(e.__$f|=2),t(e,n,o)}),r.uA.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var o in e)return!0;for(var r in t)if("__source"!==r&&t[r]!==this.props[r])return!0;for(var i in this.props)if(!(i in t))return!0;return!1}},783(){},795(){},827(){},642(t,e,n){n.d(e,{M:()=>u});var o=n(955),r=n(140),i=n(799).h;const _=t=>{t.style.height="auto",t.style.height=`${t.scrollHeight}px`},u=()=>{const{commentValue:t,commentParent:e}=(0,o.NT)(r.X),{strings:n,maxLength:u}=JetpackComments,l=(0,o.li)(null);return(0,o.vJ)(()=>{const t=l.current;if(!t)return;if(_(t),"undefined"==typeof ResizeObserver)return;let e=t.clientWidth;const n=new ResizeObserver(()=>{t.clientWidth!==e&&(e=t.clientWidth,_(t))});return n.observe(t),()=>n.disconnect()},[t]),i("textarea",{id:"comment",name:"comment",className:"jetpack-comments__textarea",ref:l,required:!0,maxLength:u,"aria-label":e.value?n.replyLabel:n.commentLabel,value:t.value,placeholder:e.value?n.replyPlaceholder:n.placeholder,onInput:e=>{_(e.currentTarget),t.value=e.currentTarget.value}})}},729(t,e,n){n.d(e,{J1:()=>_,kF:()=>i,y6:()=>l,zP:()=>u});const o=t=>`jetpack-comments-draft-${t}`,r=t=>`jetpack-comments-sent-${t}`;function i(t){try{return sessionStorage.getItem(o(t))??""}catch{return""}}function _(t,e){try{return e?sessionStorage.setItem(o(t),e):sessionStorage.removeItem(o(t)),!0}catch{return!1}}function u(t){try{sessionStorage.setItem(r(t),window.location.hash)}catch{}}function l(t){try{const e=sessionStorage.getItem(r(t));if(null===e)return;sessionStorage.removeItem(r(t));const n=window.location.hash;n!==e&&/^#comment-\d+$/.test(n)&&_(t,"")}catch{}}},419(t,e,n){n.d(e,{b:()=>u});var o=n(22),r=n(955),i=n(140),_=n(799).h;const u=()=>{const{formSettings:t,commentParent:e,isSavingComment:n,isSubmitDisabled:u}=(0,r.NT)(i.X),{strings:l}=JetpackComments;return _("button",{id:t.submitId,name:t.submitName,type:"submit",className:(0,o.A)("jetpack-comments__submit",{"is-busy":n.value}),disabled:u.value},e.value?l.reply:t.submitLabel)}},76(t,e,n){n.d(e,{s:()=>_});var o=n(955),r=n(140),i=(n(795),n(799).h);const _=()=>{const{formSettings:t}=(0,o.NT)(r.X),{user:e,strings:n}=JetpackComments;return e?i("div",{className:"jetpack-comments__user"},e.avatarUrl&&i("img",{className:"jetpack-comments__avatar",src:e.avatarUrl,alt:"",width:"37",height:"37"}),i("span",{className:"jetpack-comments__user-name"},e.commentingAs),i("a",{className:"jetpack-comments__logout",href:t.logoutUrl},n.logOut)):null}},394(t,e,n){n.d(e,{y:()=>l});var o=n(955),r=n(140),i=n(324),_=n(760),u=(n(827),n(795),n(799).h);const l=()=>{const{commenter:t}=(0,o.NT)(r.X),{requireNameEmail:e,showCookiesConsent:n,strings:l}=JetpackComments,s=!!JetpackComments.commenter.email,a=[{field:"email",name:"email",type:"email",autoComplete:"email",icon:u(i.aZ,null),label:l.email,placeholder:l.emailPlaceholder,required:e},{field:"author",name:"author",type:"text",autoComplete:"name",icon:u(i.hl,null),label:l.name,placeholder:l.name,required:e},{field:"url",name:"url",type:"text",autoComplete:"url",icon:u(i.Vz,null),label:l.website,placeholder:l.websitePlaceholder,required:!1}];return u("div",{className:"jetpack-comments__identity"},u("p",{className:"jetpack-comments__prompt"},e?l.guestPromptRequired:l.guestPrompt),u("div",{className:"jetpack-comments__guest"},a.map(e=>u("label",{key:e.name,className:"jetpack-comments__guest-field",htmlFor:e.name},e.icon,u("span",{className:"jetpack-comments__visually-hidden"},e.label),u("input",{id:e.name,name:e.name,type:e.type,autoComplete:e.autoComplete,required:e.required,value:t.value[e.field],placeholder:e.placeholder,onInput:n=>((e,n)=>{t.value={...t.value,[e]:n}})(e.field,n.currentTarget.value)}))),n&&u("div",{className:"jetpack-comments__options"},u(_.l,{id:"wp-comment-cookies-consent",name:"wp-comment-cookies-consent",value:"yes",defaultChecked:s,label:l.saveDetails}))))}},742(t,e,n){n.d(e,{l:()=>u,s:()=>i.s});var o=n(394),r=n(787),i=n(76),_=n(799).h;const u=()=>{const{isLoggedIn:t,mustLogIn:e}=JetpackComments;return e?_(r.e,null):t?null:_(o.y,null)}},787(t,e,n){n.d(e,{e:()=>_});var o=n(955),r=n(140),i=(n(795),n(799).h);const _=()=>{const{formSettings:t}=(0,o.NT)(r.X),{strings:e}=JetpackComments;return i("div",{className:"jetpack-comments__identity"},i("p",{className:"jetpack-comments__prompt"},e.mustLogInPrompt),i("a",{className:"jetpack-comments__login",href:t.loginUrl},e.logIn))}},140(t,e,n){n.d(e,{X:()=>u,Y:()=>_});var o=n(78),r=n(799),i=n(729);function _(t){const e=(0,o.vP)((0,i.kF)(t.postId)),n=(0,o.EW)(()=>""===e.value.trim()),r=(0,o.vP)(!1),_=(0,o.vP)(0),u=(0,o.vP)({author:JetpackComments.commenter.author,email:JetpackComments.commenter.email,url:JetpackComments.commenter.url}),l=(0,o.EW)(()=>JetpackComments.mustLogIn||n.value||r.value);return{formSettings:t,commentValue:e,isEmptyComment:n,isSavingComment:r,commentParent:_,commenter:u,isSubmitDisabled:l}}const u=(0,r.q6)(void 0)},324(t,e,n){n.d(e,{Vz:()=>_,aZ:()=>r,hl:()=>i});var o=n(799).h;const r=()=>o("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",focusable:"false"},o("g",{opacity:".8",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"},o("path",{d:"M3.44 2.67h9.97c.68 0 1.24.6 1.24 1.33v8c0 .74-.56 1.34-1.24 1.34H3.44c-.69 0-1.25-.6-1.25-1.34V4c0-.73.56-1.33 1.25-1.33Z"}),o("path",{d:"M14.65 4 8.42 8.67 2.19 4"}))),i=()=>o("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",focusable:"false"},o("g",{opacity:".8",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"},o("path",{d:"M13.4 14v-1.33c0-.71-.26-1.39-.73-1.89-.47-.5-1.1-.78-1.76-.78H5.93c-.66 0-1.29.28-1.76.78-.47.5-.73 1.18-.73 1.89V14"}),o("path",{d:"M8.42 7.33c1.38 0 2.49-1.19 2.49-2.66C10.91 3.19 9.8 2 8.42 2 7.05 2 5.93 3.19 5.93 4.67c0 1.47 1.12 2.66 2.49 2.66Z"}))),_=()=>o("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",focusable:"false"},o("g",{opacity:".8",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"},o("path",{d:"M12.78 2H4.06c-.69 0-1.25.6-1.25 1.33v9.34c0 .73.56 1.33 1.25 1.33h8.72c.69 0 1.25-.6 1.25-1.33V3.33C14.03 2.6 13.47 2 12.78 2Z"}),o("path",{d:"M2.82 6h11.21"}),o("path",{d:"M6.55 14V6"})))},760(t,e,n){n.d(e,{l:()=>r});n(827);var o=n(799).h;const r=t=>{const{id:e,name:n,value:r,label:i,defaultChecked:_}=t;return o("label",{className:"jetpack-comments__toggle",htmlFor:e},o("input",{id:e,name:n,type:"checkbox",value:r,defaultChecked:_}),o("span",{className:"jetpack-comments__toggle-switch"}),o("span",{className:"jetpack-comments__toggle-text"},i))}},799(t,e,n){n.d(e,{FK:()=>C,XX:()=>V,fF:()=>r,h:()=>w,q6:()=>Z,uA:()=>x,zO:()=>_});var o,r,i,_,u,l,s,a,c,f,h,v,p,d={},m=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function b(t,e){for(var n in e)t[n]=e[n];return t}function k(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function w(t,e,n){var r,i,_,u={};for(_ in e)"key"==_?r=e[_]:"ref"==_?i=e[_]:u[_]=e[_];if(arguments.length>2&&(u.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(_ in t.defaultProps)void 0===u[_]&&(u[_]=t.defaultProps[_]);return S(t,u,r,i,null)}function S(t,e,n,o,_){var u={type:t,props:e,key:n,ref:o,__k:null,__ǃ:null,__b:0,__e:null,__c:null,constructor:void 0,__v:_??++i,__i:-1,__u:0};return null==_&&null!=r.vnode&&r.vnode(u),u}function C(t){return t.children}function x(t,e){this.props=t,this.context=e}function N(t,e){if(null==e)return t.__ǃ?N(t.__ǃ,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?N(t):null}function P(t){var e,n;if(null!=(t=t.__ǃ)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return P(t)}}function E(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!j.__r++||l!=r.debounceRendering)&&((l=r.debounceRendering)||s)(j)}function j(){for(var t,e,n,o,i,_,l,s=1;u.length;)u.length>s&&u.sort(a),t=u.shift(),s=u.length,t.__d&&(n=void 0,o=void 0,i=(o=(e=t).__v).__e,_=[],l=[],e.__P&&((n=b({},o)).__v=o.__v+1,r.vnode&&r.vnode(n),A(e.__P,n,o,e.__n,e.__P.namespaceURI,32&o.__u?[i]:null,_,i??N(o),!!(32&o.__u),l),n.__v=o.__v,n.__ǃ.__k[n.__i]=n,M(_,n,l),o.__e=o.__ǃ=null,n.__e!=i&&P(n)));j.__r=0}function H(t,e,n,o,r,i,_,u,l,s,a){var c,f,h,v,p,y,g,b=o&&o.__k||m,k=e.length;for(l=U(n,e,b,l,k),c=0;c<k;c++)null!=(h=n.__k[c])&&(f=-1==h.__i?d:b[h.__i]||d,h.__i=c,y=A(t,h,f,r,i,_,u,l,s,a),v=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&q(f.ref,null,h),a.push(h.ref,h.__c||v,h)),null==p&&null!=v&&(p=v),(g=!!(4&h.__u))||f.__k===h.__k?l=L(h,l,t,g):"function"==typeof h.type&&void 0!==y?l=y:v&&(l=v.nextSibling),h.__u&=-7);return n.__e=p,l}function U(t,e,n,o,r){var i,_,u,l,s,a=n.length,c=a,f=0;for(t.__k=new Array(r),i=0;i<r;i++)null!=(_=e[i])&&"boolean"!=typeof _&&"function"!=typeof _?("string"==typeof _||"number"==typeof _||"bigint"==typeof _||_.constructor==String?_=t.__k[i]=S(null,_,null,null,null):g(_)?_=t.__k[i]=S(C,{children:_},null,null,null):void 0===_.constructor&&_.__b>0?_=t.__k[i]=S(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):t.__k[i]=_,l=i+f,_.__ǃ=t,_.__b=t.__b+1,u=null,-1!=(s=_.__i=T(_,n,l,c))&&(c--,(u=n[s])&&(u.__u|=2)),null==u||null==u.__v?(-1==s&&(r>a?f--:r<a&&f++),"function"!=typeof _.type&&(_.__u|=4)):s!=l&&(s==l-1?f--:s==l+1?f++:(s>l?f--:f++,_.__u|=4))):t.__k[i]=null;if(c)for(i=0;i<a;i++)null!=(u=n[i])&&!(2&u.__u)&&(u.__e==o&&(o=N(u)),D(u,u));return o}function L(t,e,n,o){var r,i;if("function"==typeof t.type){for(r=t.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__ǃ=t,e=L(r[i],e,n,o));return e}t.__e!=e&&(o&&(e&&t.type&&!e.parentNode&&(e=N(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function T(t,e,n,o){var r,i,_,u=t.key,l=t.type,s=e[n],a=null!=s&&!(2&s.__u);if(null===s&&null==u||a&&u==s.key&&l==s.type)return n;if(o>(a?1:0))for(r=n-1,i=n+1;r>=0||i<e.length;)if(null!=(s=e[_=r>=0?r--:i++])&&!(2&s.__u)&&u==s.key&&l==s.type)return _;return-1}function I(t,e,n){"-"==e[0]?t.setProperty(e,n??""):t[e]=null==n?"":"number"!=typeof n||y.test(e)?n:n+"px"}function W(t,e,n,o,r){var i,_;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||I(t.style,e,"");if(n)for(e in n)o&&n[e]==o[e]||I(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(c,"$1")),_=e.toLowerCase(),e=_ in t||"onFocusOut"==e||"onFocusIn"==e?_.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?o?n.u=o.u:(n.u=f,t.addEventListener(e,i?v:h,i)):t.removeEventListener(e,i?v:h,i);else{if("http://www.w3.org/2000/svg"==r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=n??"";break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function F(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=f++;else if(e.t<n.u)return;return n(r.event?r.event(e):e)}}}function A(t,e,n,o,i,_,u,l,s,a){var c,f,h,v,p,d,m,y,w,S,N,P,E,j,U,L,T,I=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(s=!!(32&n.__u),_=[l=e.__e=n.__e]),(c=r.__b)&&c(e);t:if("function"==typeof I)try{if(y=e.props,w="prototype"in I&&I.prototype.render,S=(c=I.contextType)&&o[c.__c],N=c?S?S.props.value:c.__ǃ:o,n.__c?m=(f=e.__c=n.__c).__ǃ=f.__E:(w?e.__c=f=new I(y,N):(e.__c=f=new x(y,N),f.constructor=I,f.render=X),S&&S.sub(f),f.state||(f.state={}),f.__n=o,h=f.__d=!0,f.__h=[],f._sb=[]),w&&null==f.__s&&(f.__s=f.state),w&&null!=I.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=b({},f.__s)),b(f.__s,I.getDerivedStateFromProps(y,f.__s))),v=f.props,p=f.state,f.__v=e,h)w&&null==I.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),w&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(w&&null==I.getDerivedStateFromProps&&y!==v&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(y,N),e.__v==n.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(y,f.__s,N)){for(e.__v!=n.__v&&(f.props=y,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__ǃ=e)}),P=0;P<f._sb.length;P++)f.__h.push(f._sb[P]);f._sb=[],f.__h.length&&u.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(y,f.__s,N),w&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(v,p,d)})}if(f.context=N,f.props=y,f.__P=t,f.__e=!1,E=r.__r,j=0,w){for(f.state=f.__s,f.__d=!1,E&&E(e),c=f.render(f.props,f.state,f.context),U=0;U<f._sb.length;U++)f.__h.push(f._sb[U]);f._sb=[]}else do{f.__d=!1,E&&E(e),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++j<25);f.state=f.__s,null!=f.getChildContext&&(o=b(b({},o),f.getChildContext())),w&&!h&&null!=f.getSnapshotBeforeUpdate&&(d=f.getSnapshotBeforeUpdate(v,p)),L=c,null!=c&&c.type===C&&null==c.key&&(L=$(c.props.children)),l=H(t,g(L)?L:[L],e,n,o,i,_,u,l,s,a),f.base=e.__e,e.__u&=-161,f.__h.length&&u.push(f),m&&(f.__E=f.__ǃ=null)}catch(t){if(e.__v=null,s||null!=_)if(t.then){for(e.__u|=s?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;_[_.indexOf(l)]=null,e.__e=l}else{for(T=_.length;T--;)k(_[T]);J(e)}else e.__e=n.__e,e.__k=n.__k,t.then||J(e);r.__e(t,e,n)}else null==_&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):l=e.__e=O(n.__e,e,n,o,i,_,u,s,a);return(c=r.diffed)&&c(e),128&e.__u?void 0:l}function J(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(J)}function M(t,e,n){for(var o=0;o<n.length;o++)q(n[o],n[++o],n[++o]);r.__c&&r.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){r.__e(t,e.__v)}})}function $(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:g(t)?t.map($):b({},t)}function O(t,e,n,i,_,u,l,s,a){var c,f,h,v,p,m,y,b=n.props||d,w=e.props,S=e.type;if("svg"==S?_="http://www.w3.org/2000/svg":"math"==S?_="http://www.w3.org/1998/Math/MathML":_||(_="http://www.w3.org/1999/xhtml"),null!=u)for(c=0;c<u.length;c++)if((p=u[c])&&"setAttribute"in p==!!S&&(S?p.localName==S:3==p.nodeType)){t=p,u[c]=null;break}if(null==t){if(null==S)return document.createTextNode(w);t=document.createElementNS(_,S,w.is&&w),s&&(r.__m&&r.__m(e,u),s=!1),u=null}if(null==S)b===w||s&&t.data==w||(t.data=w);else{if(u=u&&o.call(t.childNodes),!s&&null!=u)for(b={},c=0;c<t.attributes.length;c++)b[(p=t.attributes[c]).name]=p.value;for(c in b)if(p=b[c],"children"==c);else if("dangerouslySetInnerHTML"==c)h=p;else if(!(c in w)){if("value"==c&&"defaultValue"in w||"checked"==c&&"defaultChecked"in w)continue;W(t,c,null,p,_)}for(c in w)p=w[c],"children"==c?v=p:"dangerouslySetInnerHTML"==c?f=p:"value"==c?m=p:"checked"==c?y=p:s&&"function"!=typeof p||b[c]===p||W(t,c,p,b[c],_);if(f)s||h&&(f.__html==h.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(h&&(t.innerHTML=""),H("template"==e.type?t.content:t,g(v)?v:[v],e,n,i,"foreignObject"==S?"http://www.w3.org/1999/xhtml":_,u,l,u?u[0]:n.__k&&N(n,0),s,a),null!=u)for(c=u.length;c--;)k(u[c]);s||(c="value","progress"==S&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[c]||"progress"==S&&!m||"option"==S&&m!=b[c])&&W(t,c,m,b[c],_),c="checked",null!=y&&y!=t[c]&&W(t,c,y,b[c],_))}return t}function q(t,e,n){try{if("function"==typeof t){var o="function"==typeof t.__u;o&&t.__u(),o&&null==e||(t.__u=t(e))}else t.current=e}catch(t){r.__e(t,n)}}function D(t,e,n){var o,i;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!=t.__e||q(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){r.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&D(o[i],e,n||"function"!=typeof t.type);n||k(t.__e),t.__c=t.__ǃ=t.__e=void 0}function X(t,e,n){return this.constructor(t,n)}function V(t,e,n){var i,_,u,l;e==document&&(e=document.documentElement),r.__ǃ&&r.__ǃ(t,e),_=(i="function"==typeof n)?null:n&&n.__k||e.__k,u=[],l=[],A(e,t=(!i&&n||e).__k=w(C,null,[t]),_||d,d,e.namespaceURI,!i&&n?[n]:_?null:e.firstChild?o.call(e.childNodes):null,u,!i&&n?n:_?_.__e:e.firstChild,i,l),M(u,t,l)}function Z(t){function e(t){var n,o;return this.getChildContext||(n=new Set,(o={})[e.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&n.forEach(function(t){t.__e=!0,E(t)})},this.sub=function(t){n.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.delete(t),e&&e.call(t)}}),t.children}return e.__c="__cC"+p++,e.__ǃ=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e,e}o=m.slice,r={__e:function(t,e,n,o){for(var r,i,_;e=e.__ǃ;)if((r=e.__c)&&!r.__ǃ)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(t)),_=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,o||{}),_=r.__d),_)return r.__E=r}catch(e){t=e}throw t}},i=0,_=function(t){return null!=t&&void 0===t.constructor},x.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=b({},this.state),"function"==typeof t&&(t=t(b({},n),this.props)),t&&b(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),E(this))},x.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),E(this))},x.prototype.render=C,u=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(t,e){return t.__v.__b-e.__v.__b},j.__r=0,c=/(PointerCapture)$|Capture$/i,f=0,h=F(!1),v=F(!0),p=0},955(t,e,n){n.d(e,{Kr:()=>b,NT:()=>k,li:()=>g,vJ:()=>y});var o,r,i,_,u=n(799),l=0,s=[],a=u.fF,c=a.__b,f=a.__r,h=a.diffed,v=a.__c,p=a.unmount,d=a.__ǃ;function m(t,e){a.__h&&a.__h(r,t,l||e),l=0;var n=r.__H||(r.__H={__ǃ:[],__h:[]});return t>=n.__ǃ.length&&n.__ǃ.push({}),n.__ǃ[t]}function y(t,e){var n=m(o++,3);!a.__s&&P(n.__H,e)&&(n.__ǃ=t,n.u=e,r.__H.__h.push(n))}function g(t){return l=5,b(function(){return{current:t}},[])}function b(t,e){var n=m(o++,7);return P(n.__H,e)&&(n.__ǃ=t(),n.__H=e,n.__h=t),n.__ǃ}function k(t){var e=r.context[t.__c],n=m(o++,9);return n.c=t,e?(null==n.__ǃ&&(n.__ǃ=!0,e.sub(r)),e.props.value):t.__ǃ}function w(){for(var t;t=s.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(x),t.__H.__h.forEach(N),t.__H.__h=[]}catch(e){t.__H.__h=[],a.__e(e,t.__v)}}a.__b=function(t){r=null,c&&c(t)},a.__ǃ=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),d&&d(t,e)},a.__r=function(t){f&&f(t),o=0;var e=(r=t.__c).__H;e&&(i===r?(e.__h=[],r.__h=[],e.__ǃ.forEach(function(t){t.__N&&(t.__ǃ=t.__N),t.u=t.__N=void 0})):(e.__h.forEach(x),e.__h.forEach(N),e.__h=[],o=0)),i=r},a.diffed=function(t){h&&h(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==s.push(e)&&_===a.requestAnimationFrame||((_=a.requestAnimationFrame)||C)(w)),e.__H.__ǃ.forEach(function(t){t.u&&(t.__H=t.u),t.u=void 0})),i=r=null},a.__c=function(t,e){e.some(function(t){try{t.__h.forEach(x),t.__h=t.__h.filter(function(t){return!t.__ǃ||N(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],a.__e(n,t.__v)}}),v&&v(t,e)},a.unmount=function(t){p&&p(t);var e,n=t.__c;n&&n.__H&&(n.__H.__ǃ.forEach(function(t){try{x(t)}catch(t){e=t}}),n.__H=void 0,e&&a.__e(e,n.__v))};var S="function"==typeof requestAnimationFrame;function C(t){var e,n=function(){clearTimeout(o),S&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,35);S&&(e=requestAnimationFrame(n))}function x(t){var e=r,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),r=e}function N(t){var e=r;t.__c=t.__ǃ(),r=e}function P(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}},22(t,e,n){function o(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=o(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}n.d(e,{A:()=>r});const r=function(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=o(t))&&(r&&(r+=" "),r+=e);return r}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o=n(799),r=n(955),i=n(742),_=n(140),u=n(642),l=n(729),s=n(419),a=(n(783),n(799).h),c=n(799).FK;const f=({form:t})=>{const{formSettings:e,commentParent:n,commentValue:o,isSavingComment:f}=(0,r.NT)(_.X),h=(0,r.li)(!1);return(0,r.vJ)(()=>{const e=t.querySelector("#comment_parent");if(!e)return;const o=()=>{n.value=Number(e.value)||0};o();const r=new MutationObserver(o);return r.observe(e,{attributes:!0,attributeFilter:["value"]}),()=>r.disconnect()},[t,n]),(0,r.vJ)(()=>{const t=setTimeout(()=>(0,l.J1)(e.postId,o.value),300);return()=>clearTimeout(t)},[e,o.value]),(0,r.vJ)(()=>{const n=()=>{h.current||(h.current=!0,f.value=!0,(0,l.J1)(e.postId,o.peek()),(0,l.zP)(e.postId))},r=t=>{t.persisted&&(h.current=!1,f.value=!1)},i=()=>(0,l.J1)(e.postId,o.peek());return t.addEventListener("submit",n),window.addEventListener("pageshow",r),window.addEventListener("pagehide",i),()=>{t.removeEventListener("submit",n),window.removeEventListener("pageshow",r),window.removeEventListener("pagehide",i)}},[t,e,f,o]),a(c,null,a(u.M,null),a(i.l,null),a("div",{className:"jetpack-comments__footer"},a(i.s,null),a(s.b,null)))};document.querySelectorAll(".jetpack-comments").forEach(t=>{const e=t.closest("form");if(!e)return;let n;try{n=JSON.parse(t.dataset.jetpackComments||"{}")}catch{return}(0,l.y6)(n.postId),(0,o.XX)(a(_.X.Provider,{value:(0,_.Y)(n)},a(f,{form:e})),t)})})();
1 +(()=>{"use strict";var e={85900(e,t,n){n.d(t,{EW:()=>k,HN:()=>m,QZ:()=>j,vP:()=>h});var o=Symbol.for("preact-signals");function r(){if(c>1)c--;else{var e,t=!1;for(!function(){var e=d;for(d=void 0;void 0!==e;){var t=e.S;if(t.v===e.v)for(var n=t.t;void 0!==n;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}}();void 0!==l;){var n=l;for(l=void 0,u++;void 0!==n;){var o=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&v(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=o}}if(u=0,c--,t)throw e}}var i,a=void 0;function s(e){var t=a,n=i;a=void 0,i=void 0;try{return e()}finally{a=t,i=n}}var l=void 0,c=0,u=0,_=0,d=void 0,f=0;function p(e){if(void 0!==a){var t=e.n;if(void 0===t||t.t!==a)return t={i:0,S:e,p:a.s,n:void 0,t:a,e:void 0,x:void 0,r:t},void 0!==a.s&&(a.s.n=t),a.s=t,e.n=t,32&a.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=a.s,t.n=void 0,a.s.n=t,a.s=t),t}}function m(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function h(e,t){return new m(e,t)}function v(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function g(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function y(e){for(var t=e.s,n=void 0;void 0!==t;){var o=t.p;-1===t.i?(t.S.U(t),void 0!==o&&(o.n=t.n),void 0!==t.n&&(t.n.p=o)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=o}e.s=n}function b(e,t){m.call(this,void 0,t),this.x=e,this.s=void 0,this.g=f-1,this.f=4}function k(e,t){return new b(e,t)}function w(e){var t=e.m;if(e.m=void 0,"function"==typeof t){c++;var n=a;a=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,C(e),t}finally{a=n,r()}}}function C(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,w(e)}function S(e){if(a!==this)throw new Error("Out-of-order effect");y(this),a=e,this.f&=-2,8&this.f&&C(this),r()}function N(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,i&&i.push(this)}function j(e,t){var n=new N(e,t);try{n.c()}catch(e){throw n.d(),e}var o=n.d.bind(n);return o[Symbol.dispose]=o,o}m.prototype.brand=o,m.prototype.h=function(){return!0},m.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:s(function(){var e;null==(e=t.W)||e.call(t)}))},m.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,o=e.x;void 0!==n&&(n.x=o,e.e=void 0),void 0!==o&&(o.e=n,e.x=void 0),e===this.t&&(this.t=o,void 0===o&&s(function(){var e;null==(e=t.Z)||e.call(t)}))}},m.prototype.subscribe=function(e){var t=this;return j(function(){var n=t.value;s(function(){return e(n)})},{name:"sub"})},m.prototype.valueOf=function(){return this.value},m.prototype.toString=function(){return this.value+""},m.prototype.toJSON=function(){return this.value},m.prototype.peek=function(){var e=this;return s(function(){return e.value})},Object.defineProperty(m.prototype,"value",{get:function(){var e=p(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(u>100)throw new Error("Cycle detected");!function(e){0!==c&&0===u&&e.l!==_&&(e.l=_,d={S:e,v:e.v,i:e.i,o:d})}(this),this.v=e,this.i++,f++,c++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{r()}}}}),b.prototype=new m,b.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===f)return!0;if(this.g=f,this.f|=1,this.i>0&&!v(this))return this.f&=-2,!0;var e=a;try{g(this),a=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return a=e,y(this),this.f&=-2,!0},b.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}m.prototype.S.call(this,e)},b.prototype.U=function(e){if(void 0!==this.t&&(m.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},b.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(b.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=p(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),N.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},N.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,w(this),g(this),c++;var e=a;return a=this,S.bind(this,e)},N.prototype.N=function(){2&this.f||(this.f|=2,this.u=l,l=this)},N.prototype.d=function(){this.f|=8,1&this.f||C(this)},N.prototype.dispose=function(){this.d()}},76078(e,t,n){n.d(t,{EW:()=>a.EW,vP:()=>a.vP});var o,r=n(59504),i=n(22446),a=n(85900);function s(e,t){r.fF[e]=t.bind(null,r.fF[e]||function(){})}function l(e){o&&o(),o=e&&e.S()}function c(e){var t=this,n=e.data,o=function(e){return(0,i.Kr)(function(){return(0,a.vP)(e)},[])}(n);o.value=n;var s=(0,i.Kr)(function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;(0,r.zO)(s.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=s.peek()},(0,a.EW)(function(){var e=o.value.value;return 0===e?0:!0===e?"":e||""})},[]);return s.value}function u(e,t,n,o){var r=t in e&&void 0===e.ownerSVGElement,i=(0,a.vP)(n);return{o:function(e,t){i.value=e,o=t},d:(0,a.QZ)(function(){var n=i.value.value;o[t]!==n&&(o[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))})}}c.displayName="_st",Object.defineProperties(a.HN.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:c},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),s("__b",function(e,t){if("string"==typeof t.type){var n,o=t.props;for(var r in o)if("children"!==r){var i=o[r];i instanceof a.HN&&(n||(t.__np=n={}),n[r]=i,o[r]=i.peek())}}e(t)}),s("__r",function(e,t){l();var n,o=t.__c;o&&(o.__$f&=-2,void 0===(n=o.__$u)&&(o.__$u=n=function(){var e;return(0,a.QZ)(function(){e=this}),e.c=function(){o.__$f|=1,o.setState({})},e}())),l(n),e(t)}),s("__e",function(e,t,n,o){l(),e(t,n,o)}),s("diffed",function(e,t){var n;if(l(),"string"==typeof t.type&&(n=t.__e)){var o=t.__np,r=t.props;if(o){var i=n.U;if(i)for(var a in i){var s=i[a];void 0===s||a in o||(s.d(),i[a]=void 0)}else n.U=i={};for(var c in o){var _=i[c],d=o[c];void 0===_?(_=u(n,c,d,r),i[c]=_):_.o(d,r)}}}e(t)}),s("unmount",function(e,t){if("string"==typeof t.type){var n=t.__e;if(n){var o=n.U;if(o)for(var r in n.U=void 0,o){var i=o[r];i&&i.d()}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)}),s("__h",function(e,t,n,o){(o<3||9===o)&&(t.__$f|=2),e(t,n,o)}),r.uA.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var o in t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var i in this.props)if(!(i in e))return!0;return!1}},80270(){},86153(){},60210(){},98729(e,t,n){n.d(t,{J1:()=>a,kF:()=>i,y6:()=>l,zP:()=>s});const o=e=>`jetpack-comments-draft-${e}`,r=e=>`jetpack-comments-sent-${e}`;function i(e){try{return sessionStorage.getItem(o(e))??""}catch{return""}}function a(e,t){try{return t?sessionStorage.setItem(o(e),t):sessionStorage.removeItem(o(e)),!0}catch{return!1}}function s(e){try{sessionStorage.setItem(r(e),window.location.hash)}catch{}}function l(e){try{const t=sessionStorage.getItem(r(e));if(null===t)return;sessionStorage.removeItem(r(e));const n=window.location.hash;n!==t&&/^#comment-\d+$/.test(n)&&a(e,"")}catch{}}},13319(e,t,n){let o=!1;n.d(t,["Jv",0,async e=>{const t=Math.round(Math.max(0,window.screenX+(window.outerWidth-475)/2)),n=Math.round(Math.max(0,window.screenY+(window.outerHeight-800)/2)),r=window.open("","jetpack-comments-identity",`width=475,height=800,left=${t},top=${n},status=0,toolbar=0,location=1,menubar=0,resizable=1,scrollbars=1`);if(e(r),!r)return{error:"popup_blocked"};const{identity:i}=JetpackComments;let a=i.connect;if(!a||a.expires-30<=Date.now()/1e3){const e=new Uint8Array(32);crypto.getRandomValues(e);const t=btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),n=new URL(i.connectUrl);n.searchParams.set("challenge",t);try{const e=await fetch(n.toString(),{credentials:"omit"});if(!e.ok)throw new Error(429===e.status?"rate_limited":"server_error");a=i.connect=await e.json()}catch(e){return r.close(),{error:e instanceof Error?e.message:"server_error"}}}return r.location.href=o?`${a.url}&reauth=1`:a.url,new Promise(e=>{let t=0;const n=n=>{window.removeEventListener("message",s),window.clearInterval(t),e(n)},s=e=>{if(e.origin!==i.origin)return;const t=e.data;t&&"object"==typeof t&&"jetpack-comment-identity"===t.type&&t.challenge===a.challenge&&("string"==typeof t.error?n("access_denied"===t.error?{cancelled:!0}:{error:t.error}):"string"==typeof t.code&&""!==t.code&&(o=!1,n({code:t.code,name:"string"==typeof t.name?t.name:"",avatar:"string"==typeof t.avatar&&t.avatar||i.defaultAvatar})),r.closed||r.close())};window.addEventListener("message",s),t=window.setInterval(()=>{r.closed&&n({cancelled:!0})},250)})},"ik",0,async e=>{const t=new URL(JetpackComments.identity.emailUrl);t.searchParams.set("email",e);try{const e=await fetch(t.toString(),{credentials:"omit"});return e.ok&&!0===(await e.json()).account}catch{return!1}},"je",0,async()=>{const{displayCookie:e,cookiePath:t,cookieDomain:n,logoutUrl:r,logoutAction:i}=JetpackComments.identity;document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t||"/"}${n?`; domain=${n}`:""}; SameSite=Lax`,o=!0;try{return(await fetch(r,{method:"POST",credentials:"same-origin",body:new URLSearchParams({action:i})})).ok}catch{return!1}}])},39219(e,t,n){n.d(t,["p",0,()=>{const{displayCookie:e,blogId:t}=JetpackComments.identity;if(!e)return null;const n=document.cookie.split("; ").find(t=>t.startsWith(`${e}=`))?.slice(e.length+1);if(!n)return null;try{const e=JSON.parse(decodeURIComponent(n));return e&&e.blog_id===t&&"string"==typeof e.name?{name:e.name,avatar:"string"==typeof e.avatar&&e.avatar||JetpackComments.identity.defaultAvatar}:null}catch{return null}}])},59656(e,t,n){n.d(t,{x:()=>c});var o=n(22446),r=n(15433),i=n(49140),a=n(13319),s=(n(86153),n(59504).h),l=n(59504).FK;class c extends HTMLElement{static formAssociated=!0;internals=this.attachInternals()}const u=({status:e,onLogIn:t,onCancel:n})=>{const{strings:o}=JetpackComments;return s(l,null,"pending"===e?s("span",{className:"jetpack-comments__signing-in"},s("span",{className:"jetpack-comments__spinner","aria-hidden":"true"}),s("button",{type:"button",className:"jetpack-comments__button is-link",onClick:n},o.cancel)):s("button",{type:"button",className:"jetpack-comments__button is-primary",onClick:t},s("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",focusable:"false"},s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.2308 9.99981C19.2308 4.91366 15.0862 0.769043 10.0001 0.769043C4.90467 0.769043 0.769287 4.91366 0.769287 9.99981C0.769287 15.0952 4.90467 19.2306 10.0001 19.2306C15.0862 19.2306 19.2308 15.0952 19.2308 9.99981ZM7.95083 14.9567L4.80313 6.51058C5.31083 6.49212 5.88313 6.43674 5.88313 6.43674C6.34467 6.38135 6.28929 5.39366 5.82775 5.41212C5.82775 5.41212 4.48929 5.51366 3.64006 5.51366C3.4739 5.51366 3.29852 5.51366 3.10467 5.50443C4.57236 3.25212 7.11083 1.79366 10.0001 1.79366C12.1508 1.79366 14.1077 2.59674 15.5847 3.95366C14.957 3.85212 14.0616 4.31366 14.0616 5.41212C14.0616 6.01026 14.3801 6.52347 14.7382 7.10048C14.7891 7.18242 14.8407 7.26565 14.8924 7.35058C15.2154 7.91366 15.4001 8.60597 15.4001 9.62135C15.4001 10.9967 14.1077 14.2367 14.1077 14.2367L11.3108 6.51058C11.8093 6.49212 12.0677 6.35366 12.0677 6.35366C12.5293 6.3075 12.4739 5.19981 12.0124 5.2275C12.0124 5.2275 10.6831 5.33827 9.81544 5.33827C9.01236 5.33827 7.66467 5.2275 7.66467 5.2275C7.20313 5.19981 7.14775 6.3352 7.60929 6.35366L8.45852 6.4275L9.62159 9.5752L7.95083 14.9567ZM16.8602 9.94619L16.8401 9.99981C16.1713 11.7605 15.5075 13.5364 14.8451 15.3087L14.845 15.309L14.8448 15.3093C14.6113 15.9341 14.378 16.5583 14.1447 17.1814C16.6093 15.7598 18.2062 13.0367 18.2062 9.99981C18.2062 8.57827 17.8831 7.2675 17.237 6.07674C17.5147 8.20894 17.0881 9.34123 16.8602 9.94617L16.8602 9.94619ZM6.40006 17.4675C3.64929 16.1383 1.7939 13.2583 1.7939 9.99981C1.7939 8.79981 2.00621 7.71058 2.45852 6.68597L3.28801 8.95912C4.32263 11.7949 5.35847 14.6341 6.40006 17.4675ZM12.5016 17.7906L10.1201 11.3475C9.68129 12.6419 9.23927 13.9362 8.79593 15.2344C8.4931 16.1212 8.18965 17.0097 7.88621 17.9014C8.55083 18.1044 9.27083 18.206 10.0001 18.206C10.877 18.206 11.7077 18.0583 12.5016 17.7906Z",fill:"currentColor"})),o.logInWithWordPress),("failed"===e||"rate_limited"===e)&&s("span",{className:"jetpack-comments__notice",role:"status"},"rate_limited"===e?o.signInRateLimited:o.signInFailed))},_=({emailTaken:e,introId:t})=>{const{details:n,rememberDetails:r}=(0,o.NT)(i.X),{strings:a,requireNameEmail:c}=JetpackComments,u=[{field:"author",type:"text",autoComplete:"name",label:a.name,describedBy:t},{field:"email",type:"email",autoComplete:"email",label:a.email,describedBy:"email-notes"},{field:"url",type:"url",autoComplete:"url",label:a.website}];return s(l,null,u.map(({field:t,...o})=>s("div",{key:t,className:"jetpack-comments__field"},s("label",{htmlFor:t,className:"jetpack-comments__label"},o.label),s("input",{id:t,name:t,type:o.type,autoComplete:o.autoComplete,className:"jetpack-comments__input","aria-describedby":o.describedBy,"aria-invalid":"email"===t&&e?"true":void 0,required:c&&"url"!==t,value:n.value[t],onInput:e=>{n.value={...n.value,[t]:e.currentTarget.value}}}),"email"===t&&s("span",{id:"email-notes",className:"jetpack-comments__help"},a.emailHint),"email"===t&&e&&s("span",{className:"jetpack-comments__notice",role:"alert"},a.emailHasAccount))),s("label",{htmlFor:"remember",className:"jetpack-comments__toggle"},s("input",{id:"remember",type:"checkbox",role:"switch",checked:r.value,onChange:e=>r.value=e.currentTarget.checked}),a.saveDetails))},d=({subscribed:e,onChange:t})=>{const{formSettings:n}=(0,o.NT)(i.X);return s(l,null,n.subscriptions.map(({name:n,label:o})=>s("label",{key:n,htmlFor:n,className:"jetpack-comments__toggle"},s("input",{id:n,type:"checkbox",role:"switch",checked:e[n],onChange:o=>t({...e,[n]:o.currentTarget.checked})}),o)))};n.d(t,["l",0,({internals:e})=>{const{formSettings:t,details:n,isEmptyComment:c,commentParent:f,commenter:p,rememberDetails:m,isDialogOpen:h,forget:v}=(0,o.NT)(i.X),{site:g,strings:y,mustLogIn:b,requireNameEmail:k,identity:w}=JetpackComments,C=(0,o.li)(null),S=(0,o.li)(null),[N,j]=(0,o.J0)("idle"),[E,P]=(0,o.J0)(!1),x=w.canSignIn?"choose":"guest",[L,T]=(0,o.J0)(x),U=()=>Object.fromEntries(t.subscriptions.map(({name:e,checked:t})=>[e,t])),[I,$]=(0,o.J0)(U),O=!c.value,A="guest"===L,J=t.subscriptions.length>0&&h.value&&O&&("guest"===L||"subscribe"===L),F=t.subscriptions.filter(({name:e})=>I[e]).map(({name:e})=>e),H=("guest"===p.value.kind||"unknown"===p.value.kind)&&!b,M=n.value.email;(0,o.vJ)(()=>{const e=C.current;h.value?e?.open||e.showModal():(e?.close(),T(x),$(U()))},[h.value]),(0,o.vJ)(()=>{"choose"!==L&&C.current?.querySelector("input")?.focus()},[L]),(0,o.vJ)(()=>{if(P(!1),!A||!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(M))return;let e=!0;const t=window.setTimeout(async()=>{const t=await(0,a.ik)(M);e&&P(t)},500);return()=>{e=!1,window.clearTimeout(t)}},[M,A]);const D=()=>{h.value=!1},W=(e,t=!1)=>{const o=new FormData;return t||(H&&Object.entries(n.value).forEach(([e,t])=>o.append(e,t)),J&&F.forEach(e=>o.append(e,"subscribe")),e&&o.append("wp-comment-cookies-consent","yes")),o};(0,o.vJ)(()=>e.setFormValue(W(!1)));const q=s(u,{status:N,onLogIn:()=>(async()=>{j("pending");const n=await(0,a.Jv)(e=>{S.current=e});if(S.current=null,"error"in n)return j("rate_limited"===n.error?"rate_limited":"failed"),void(h.value=!0);j("idle"),"code"in n&&(v(),p.value={kind:"wordpress",name:n.name,avatar:n.avatar,code:n.code},c.peek()?h.value=!1:t.subscriptions.length?T("subscribe"):(h.value=!1,window.setTimeout(()=>e.form?.requestSubmit())))})(),onCancel:()=>S.current?.close()}),B=J&&s(d,{subscribed:I,onChange:$}),R={choose:s(l,null,b&&s("p",{className:"jetpack-comments__dialog-intro"},y.mustLogIn),s("div",{className:"jetpack-comments__sign-in"},q,!b&&s("button",{type:"button",className:"jetpack-comments__button is-secondary",onClick:()=>T("guest")},y.continueAsGuest),O&&!b&&!k&&s("button",{type:"submit",name:"anonymous",className:"jetpack-comments__button is-link"},y.postWithoutSaving))),guest:s(l,null,s("p",{id:"intro",className:"jetpack-comments__dialog-intro"},y.intro),s(_,{emailTaken:E,introId:"intro"}),B),subscribe:B};return s(l,null,s("link",{rel:"stylesheet",href:JetpackComments.styleUrl}),s("dialog",{ref:C,className:"jetpack-comments__dialog","aria-labelledby":"title",onClose:D},s("form",{onSubmit:t=>{if(t.preventDefault(),!O)return(0,r.a)(m.peek()?n.value:null),h.value=!1,void(p.value=""!==n.value.author&&""!==n.value.email?{kind:"guest"}:{kind:"unknown"});const o="anonymous"===t.submitter?.getAttribute("name");e.setFormValue(W(A&&m.peek(),o)),e.form?.requestSubmit(),e.setFormValue(W(!1))}},s("div",{className:"jetpack-comments__dialog-header"},g.iconUrl&&s("img",{className:"jetpack-comments__site-icon",src:g.iconUrl,alt:"",width:"36",height:"36"}),s("span",{id:"title",className:"jetpack-comments__dialog-title"},g.name),s("button",{type:"button",className:"jetpack-comments__dialog-close",onClick:D},s("span",{className:"jetpack-comments__visually-hidden"},y.close),s("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",focusable:"false"},s("path",{d:"M5 19L19 5M19 19L5 5",vectorEffect:"non-scaling-stroke"})))),R[L],"choose"!==L&&s("div",{className:"jetpack-comments__dialog-actions"},s("button",{type:"submit",className:"jetpack-comments__button is-primary",disabled:E},!O&&y.save,O&&(f.value?y.reply:t.submit.label))))))}])},23742(e,t,n){var o=n(13022),r=n(22446),i=n(49140),a=n(13319),s=(n(60210),n(59504).h);n.d(t,["J",0,()=>{const{formSettings:e,details:t,commenter:n,isOptionsOpen:l,forget:c}=(0,r.NT)(i.X),{strings:u}=JetpackComments,{kind:_}=n.value;if("unknown"===_)return null;const d=JetpackComments.manageSubscriptions??{url:"",byEmail:!0,signedInUrl:""};let f="wordpress"===_?d.signedInUrl:d.url;return f&&"wordpress"!==_&&d.byEmail&&t.value.email&&(f+=`?email=${encodeURIComponent(t.value.email)}`),s("div",{className:(0,o.A)("jetpack-comments__options",{"is-open":l.value})},s("div",null,s("a",{href:e.logoutUrl||"#",onClick:async t=>{if(t.preventDefault(),"user"===_)return await(0,a.je)(),void(window.location.href=e.logoutUrl);const n=t.currentTarget.closest(".jetpack-comments");await(0,a.je)(),c(),l.value=!1,window.setTimeout(()=>n?.querySelector(".jetpack-comments__who a")?.focus())}},u.logOut),f&&s("a",{href:f,target:"_blank",rel:"noopener"},u.manageSubscriptions)))},"l",0,()=>{const{formSettings:e,details:t,commenter:n,isOptionsOpen:a,isDialogOpen:l}=(0,r.NT)(i.X),{mustLogIn:c,identity:u,strings:_}=JetpackComments,d=n.value;if("unknown"===d.kind&&c&&!u.canSignIn)return s("span",{className:"jetpack-comments__who"},_.mustLogIn," ",s("a",{href:e.loginUrl},_.logIn));if("unknown"===d.kind)return s("span",{className:"jetpack-comments__who"},s("a",{href:"#","aria-haspopup":"dialog",onClick:e=>{e.preventDefault(),l.value=!0}},c?_.logInWithWordPress:_.addYourName));const f=a.value;return s("span",{className:(0,o.A)("jetpack-comments__who",{"is-open":f})},"wordpress"===d.kind&&(null!==d.code?s("input",{type:"hidden",name:u.codeField,value:d.code}):s("input",{type:"hidden",name:u.passportField,value:"1"})),"guest"===d.kind?t.value.author:d.name,s("button",{type:"button",className:"jetpack-comments__chevron",title:_.options,"aria-expanded":f,onClick:()=>a.value=!f},s("span",{className:"jetpack-comments__visually-hidden"},_.options),s("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor","aria-hidden":"true",focusable:"false"},s("path",{d:"M17.5 11.6 12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}))))}])},15433(e,t,n){n.d(t,["a",0,e=>{const{cookieHash:t,cookiePath:n,cookieDomain:o}=JetpackComments.identity,r=`; expires=${new Date(e?Date.now()+31536e6:0).toUTCString()}; path=${n||"/"}${o?`; domain=${o}`:""}; SameSite=Lax${"https:"===window.location.protocol?"; Secure":""}`;document.cookie=`comment_author_${t}=${encodeURIComponent(e?.author??"")}${r}`,document.cookie=`comment_author_email_${t}=${encodeURIComponent(e?.email??"")}${r}`,document.cookie=`comment_author_url_${t}=${encodeURIComponent(e?.url??"")}${r}`}])},49140(e,t,n){n.d(t,{Y:()=>l});var o=n(76078),r=n(59504),i=n(98729),a=n(39219),s=n(15433);function l(e){const{user:t,mustLogIn:n,commenter:r}=JetpackComments,l=(0,o.vP)((0,i.kF)(e.postId)),c=(0,o.EW)(()=>""===l.value.trim()),u=(0,o.vP)(!1),_=(0,o.vP)(0),d=(0,o.vP)({...r}),f=(0,a.p)();let p={kind:"unknown"};t?p={kind:"user",name:t.name}:f?p={kind:"wordpress",...f,code:null}:n||""===r.author||""===r.email||(p={kind:"guest"});const m=(0,o.vP)(p),h=(0,o.vP)("guest"===p.kind),v=(0,o.vP)(!1),g=(0,o.vP)(!1),y=(0,o.vP)(!1);return{formSettings:e,commentValue:l,isEmptyComment:c,isPosting:u,commentParent:_,details:d,commenter:m,rememberDetails:h,isBoxOpen:v,isOptionsOpen:g,isDialogOpen:y,forget:()=>{(0,s.a)(null),d.value={author:"",email:"",url:""},h.value=!1,m.value={kind:"unknown"}}}}const c=(0,r.q6)(void 0);n.d(t,["X",0,c])},59504(e,t,n){n.d(t,{FK:()=>S,XX:()=>R,fF:()=>r,h:()=>w,q6:()=>X,uA:()=>N,zO:()=>a});var o,r,i,a,s,l,c,u,_,d,f,p,m,h={},v=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function b(e,t){for(var n in t)e[n]=t[n];return e}function k(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function w(e,t,n){var r,i,a,s={};for(a in t)"key"==a?r=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return C(e,s,r,i,null)}function C(e,t,n,o,a){var s={type:e,props:t,key:n,ref:o,__k:null,__ǃ:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++i,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(s),s}function S(e){return e.children}function N(e,t){this.props=e,this.context=t}function j(e,t){if(null==t)return e.__ǃ?j(e.__ǃ,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?j(e):null}function E(e){var t,n;if(null!=(e=e.__ǃ)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function P(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!x.__r++||l!=r.debounceRendering)&&((l=r.debounceRendering)||c)(x)}function x(){for(var e,t,n,o,i,a,l,c=1;s.length;)s.length>c&&s.sort(u),e=s.shift(),c=s.length,e.__d&&(n=void 0,o=void 0,i=(o=(t=e).__v).__e,a=[],l=[],t.__P&&((n=b({},o)).__v=o.__v+1,r.vnode&&r.vnode(n),J(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[i]:null,a,i??j(o),!!(32&o.__u),l),n.__v=o.__v,n.__ǃ.__k[n.__i]=n,H(a,n,l),o.__e=o.__ǃ=null,n.__e!=i&&E(n)));x.__r=0}function L(e,t,n,o,r,i,a,s,l,c,u){var _,d,f,p,m,g,y,b=o&&o.__k||v,k=t.length;for(l=T(n,t,b,l,k),_=0;_<k;_++)null!=(f=n.__k[_])&&(d=-1==f.__i?h:b[f.__i]||h,f.__i=_,g=J(e,f,d,r,i,a,s,l,c,u),p=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&W(d.ref,null,f),u.push(f.ref,f.__c||p,f)),null==m&&null!=p&&(m=p),(y=!!(4&f.__u))||d.__k===f.__k?l=U(f,l,e,y):"function"==typeof f.type&&void 0!==g?l=g:p&&(l=p.nextSibling),f.__u&=-7);return n.__e=m,l}function T(e,t,n,o,r){var i,a,s,l,c,u=n.length,_=u,d=0;for(e.__k=new Array(r),i=0;i<r;i++)null!=(a=t[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=e.__k[i]=C(null,a,null,null,null):y(a)?a=e.__k[i]=C(S,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=e.__k[i]=C(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,l=i+d,a.__ǃ=e,a.__b=e.__b+1,s=null,-1!=(c=a.__i=I(a,n,l,_))&&(_--,(s=n[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(r>u?d--:r<u&&d++),"function"!=typeof a.type&&(a.__u|=4)):c!=l&&(c==l-1?d--:c==l+1?d++:(c>l?d--:d++,a.__u|=4))):e.__k[i]=null;if(_)for(i=0;i<u;i++)null!=(s=n[i])&&!(2&s.__u)&&(s.__e==o&&(o=j(s)),q(s,s));return o}function U(e,t,n,o){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__ǃ=e,t=U(r[i],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=j(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function I(e,t,n,o){var r,i,a,s=e.key,l=e.type,c=t[n],u=null!=c&&!(2&c.__u);if(null===c&&null==s||u&&s==c.key&&l==c.type)return n;if(o>(u?1:0))for(r=n-1,i=n+1;r>=0||i<t.length;)if(null!=(c=t[a=r>=0?r--:i++])&&!(2&c.__u)&&s==c.key&&l==c.type)return a;return-1}function $(e,t,n){"-"==t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function O(e,t,n,o,r){var i,a;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||$(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||$(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(_,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?o?n.u=o.u:(n.u=d,e.addEventListener(t,i?p:f,i)):e.removeEventListener(t,i?p:f,i);else{if("http://www.w3.org/2000/svg"==r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=n??"";break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function A(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=d++;else if(t.t<n.u)return;return n(r.event?r.event(t):t)}}}function J(e,t,n,o,i,a,s,l,c,u){var _,d,f,p,m,h,v,g,w,C,j,E,P,x,T,U,I,$=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),a=[l=t.__e=n.__e]),(_=r.__b)&&_(t);e:if("function"==typeof $)try{if(g=t.props,w="prototype"in $&&$.prototype.render,C=(_=$.contextType)&&o[_.__c],j=_?C?C.props.value:_.__ǃ:o,n.__c?v=(d=t.__c=n.__c).__ǃ=d.__E:(w?t.__c=d=new $(g,j):(t.__c=d=new N(g,j),d.constructor=$,d.render=B),C&&C.sub(d),d.state||(d.state={}),d.__n=o,f=d.__d=!0,d.__h=[],d._sb=[]),w&&null==d.__s&&(d.__s=d.state),w&&null!=$.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=b({},d.__s)),b(d.__s,$.getDerivedStateFromProps(g,d.__s))),p=d.props,m=d.state,d.__v=t,f)w&&null==$.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),w&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(w&&null==$.getDerivedStateFromProps&&g!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,j),t.__v==n.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,j)){for(t.__v!=n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__ǃ=t)}),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,j),w&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(p,m,h)})}if(d.context=j,d.props=g,d.__P=e,d.__e=!1,P=r.__r,x=0,w){for(d.state=d.__s,d.__d=!1,P&&P(t),_=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do{d.__d=!1,P&&P(t),_=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++x<25);d.state=d.__s,null!=d.getChildContext&&(o=b(b({},o),d.getChildContext())),w&&!f&&null!=d.getSnapshotBeforeUpdate&&(h=d.getSnapshotBeforeUpdate(p,m)),U=_,null!=_&&_.type===S&&null==_.key&&(U=M(_.props.children)),l=L(e,y(U)?U:[U],t,n,o,i,a,s,l,c,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),v&&(d.__E=d.__ǃ=null)}catch(e){if(t.__v=null,c||null!=a)if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;a[a.indexOf(l)]=null,t.__e=l}else{for(I=a.length;I--;)k(a[I]);F(t)}else t.__e=n.__e,t.__k=n.__k,e.then||F(t);r.__e(e,t,n)}else null==a&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=D(n.__e,t,n,o,i,a,s,c,u);return(_=r.diffed)&&_(t),128&t.__u?void 0:l}function F(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(F)}function H(e,t,n){for(var o=0;o<n.length;o++)W(n[o],n[++o],n[++o]);r.__c&&r.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){r.__e(e,t.__v)}})}function M(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:y(e)?e.map(M):b({},e)}function D(e,t,n,i,a,s,l,c,u){var _,d,f,p,m,v,g,b=n.props||h,w=t.props,C=t.type;if("svg"==C?a="http://www.w3.org/2000/svg":"math"==C?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(_=0;_<s.length;_++)if((m=s[_])&&"setAttribute"in m==!!C&&(C?m.localName==C:3==m.nodeType)){e=m,s[_]=null;break}if(null==e){if(null==C)return document.createTextNode(w);e=document.createElementNS(a,C,w.is&&w),c&&(r.__m&&r.__m(t,s),c=!1),s=null}if(null==C)b===w||c&&e.data==w||(e.data=w);else{if(s=s&&o.call(e.childNodes),!c&&null!=s)for(b={},_=0;_<e.attributes.length;_++)b[(m=e.attributes[_]).name]=m.value;for(_ in b)if(m=b[_],"children"==_);else if("dangerouslySetInnerHTML"==_)f=m;else if(!(_ in w)){if("value"==_&&"defaultValue"in w||"checked"==_&&"defaultChecked"in w)continue;O(e,_,null,m,a)}for(_ in w)m=w[_],"children"==_?p=m:"dangerouslySetInnerHTML"==_?d=m:"value"==_?v=m:"checked"==_?g=m:c&&"function"!=typeof m||b[_]===m||O(e,_,m,b[_],a);if(d)c||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=""),L("template"==t.type?e.content:e,y(p)?p:[p],t,n,i,"foreignObject"==C?"http://www.w3.org/1999/xhtml":a,s,l,s?s[0]:n.__k&&j(n,0),c,u),null!=s)for(_=s.length;_--;)k(s[_]);c||(_="value","progress"==C&&null==v?e.removeAttribute("value"):null!=v&&(v!==e[_]||"progress"==C&&!v||"option"==C&&v!=b[_])&&O(e,_,v,b[_],a),_="checked",null!=g&&g!=e[_]&&O(e,_,g,b[_],a))}return e}function W(e,t,n){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==t||(e.__u=e(t))}else e.current=t}catch(e){r.__e(e,n)}}function q(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||W(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&q(o[i],t,n||"function"!=typeof e.type);n||k(e.__e),e.__c=e.__ǃ=e.__e=void 0}function B(e,t,n){return this.constructor(e,n)}function R(e,t,n){var i,a,s,l;t==document&&(t=document.documentElement),r.__ǃ&&r.__ǃ(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],l=[],J(t,e=(!i&&n||t).__k=w(S,null,[e]),a||h,h,t.namespaceURI,!i&&n?[n]:a?null:t.firstChild?o.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i,l),H(s,e,l)}function X(e){function t(e){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,P(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+m++,t.__ǃ=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}o=v.slice,r={__e:function(e,t,n,o){for(var r,i,a;t=t.__ǃ;)if((r=t.__c)&&!r.__ǃ)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(e)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,o||{}),a=r.__d),a)return r.__E=r}catch(t){e=t}throw e}},i=0,a=function(e){return null!=e&&void 0===e.constructor},N.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),P(this))},N.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),P(this))},N.prototype.render=S,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},x.__r=0,_=/(PointerCapture)$|Capture$/i,d=0,f=A(!1),p=A(!0),m=0},22446(e,t,n){n.d(t,{J0:()=>g,Kr:()=>k,NT:()=>C,hb:()=>w,li:()=>b,vJ:()=>y});var o,r,i,a,s=n(59504),l=0,c=[],u=s.fF,_=u.__b,d=u.__r,f=u.diffed,p=u.__c,m=u.unmount,h=u.__ǃ;function v(e,t){u.__h&&u.__h(r,e,l||t),l=0;var n=r.__H||(r.__H={__ǃ:[],__h:[]});return e>=n.__ǃ.length&&n.__ǃ.push({}),n.__ǃ[e]}function g(e){return l=1,function(e,t,n){var i=v(o++,2);if(i.t=e,!i.__c&&(i.__ǃ=[n?n(t):L(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__ǃ[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__ǃ[1]],i.__c.setState({}))}],i.__c=r,!r.__f)){var a=function(e,t,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__ǃ.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);var r=i.__c.props!==e;return o.forEach(function(e){if(e.__N){var t=e.__ǃ[0];e.__ǃ=e.__N,e.__N=void 0,t!==e.__ǃ[0]&&(r=!0)}}),s&&s.call(this,e,t,n)||r};r.__f=!0;var s=r.shouldComponentUpdate,l=r.componentWillUpdate;r.componentWillUpdate=function(e,t,n){if(this.__e){var o=s;s=void 0,a(e,t,n),s=o}l&&l.call(this,e,t,n)},r.shouldComponentUpdate=a}return i.__N||i.__ǃ}(L,e)}function y(e,t){var n=v(o++,3);!u.__s&&x(n.__H,t)&&(n.__ǃ=e,n.u=t,r.__H.__h.push(n))}function b(e){return l=5,k(function(){return{current:e}},[])}function k(e,t){var n=v(o++,7);return x(n.__H,t)&&(n.__ǃ=e(),n.__H=t,n.__h=e),n.__ǃ}function w(e,t){return l=8,k(function(){return e},t)}function C(e){var t=r.context[e.__c],n=v(o++,9);return n.c=e,t?(null==n.__ǃ&&(n.__ǃ=!0,t.sub(r)),t.props.value):e.__ǃ}function S(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(E),e.__H.__h.forEach(P),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){r=null,_&&_(e)},u.__ǃ=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),h&&h(e,t)},u.__r=function(e){d&&d(e),o=0;var t=(r=e.__c).__H;t&&(i===r?(t.__h=[],r.__h=[],t.__ǃ.forEach(function(e){e.__N&&(e.__ǃ=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(E),t.__h.forEach(P),t.__h=[],o=0)),i=r},u.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&a===u.requestAnimationFrame||((a=u.requestAnimationFrame)||j)(S)),t.__H.__ǃ.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),i=r=null},u.__c=function(e,t){t.some(function(e){try{e.__h.forEach(E),e.__h=e.__h.filter(function(e){return!e.__ǃ||P(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],u.__e(n,e.__v)}}),p&&p(e,t)},u.unmount=function(e){m&&m(e);var t,n=e.__c;n&&n.__H&&(n.__H.__ǃ.forEach(function(e){try{E(e)}catch(e){t=e}}),n.__H=void 0,t&&u.__e(t,n.__v))};var N="function"==typeof requestAnimationFrame;function j(e){var t,n=function(){clearTimeout(o),N&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);N&&(t=requestAnimationFrame(n))}function E(e){var t=r,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),r=t}function P(e){var t=r;e.__c=e.__ǃ(),r=t}function x(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function L(e,t){return"function"==typeof t?t(e):t}},13022(e,t,n){function o(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=o(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const r=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=o(e))&&(r&&(r+=" "),r+=t);return r};n.d(t,["A",0,r])}};const t={};function n(o){const r=t[o];if(void 0!==r)return r.exports;const i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.m=e,n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{const e=Object.getPrototypeOf;let t;n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}const i=Object.create(null);n.r(i);const a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&o;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>o[e]);return a.default=()=>o,n.d(i,a),i}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var r=t[o++],i=t[o++],a=0===i?{enumerable:!0,value:t[o++]}:{enumerable:!0,get:i};n.o(e,r)||Object.defineProperty(e,r,a)}else for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,o)=>(n.f[o](e,t),t),[])),n.u=e=>(8===e?"editor":e)+".js?minify=false&ver="+{8:"d38c6f3db2ae2a646134",909:"257a660ba293b1a198eb"}[e],n.miniCssF=e=>"editor.css?minify=false&ver=ae479be0cfd951ab60a6",(()=>{if(!n.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;n.miniCssF=(e=n.miniCssF,t=>{var n="rtl"===document.dir,o=e(t);return n?o.replace(/\.css(?:$|\?)/,".rtl$&"):o})})(),n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="@automattic/jetpack-comments:";n.l=(o,r,i,a)=>{if(e[o])return void e[o].push(r);let s,l;if(void 0!==i){const e=document.getElementsByTagName("script");for(var c=0;c<e.length;c++){const n=e[c];if(n.getAttribute("src")==o||n.getAttribute("data-webpack")==t+i){s=n;break}}}s||(l=!0,s=document.createElement("script"),s.charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=o),e[o]=[r];const u=(t,n)=>{s.onerror=s.onload=null,clearTimeout(_);const r=e[o];if(delete e[o],s.parentNode?.removeChild(s),r?.forEach(e=>e(n)),t)return t(n)},_=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}})(),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{let e;n.g.importScripts&&(e=n.g.location+"");const t=n.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const n=t.getElementsByTagName("script");if(n.length){let t=n.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=n[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),n.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise((t,o)=>{var r=n.miniCssF(e),i=n.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),o=0;o<n.length;o++){var r=(a=n[o]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(r===e||r===t))return a}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){var a;if((r=(a=i[o]).getAttribute("data-href"))===e||r===t)return a}})(r,i))return t();((e,t,o,r,i)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)r();else{var o=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,l.request=s,a.parentNode&&a.parentNode.removeChild(a),i(l)}},a.href=t,o?o.parentNode.insertBefore(a,o.nextSibling):document.head.appendChild(a)})(e,i,null,t,o)}),t={125:0};n.f.miniCss=(n,o)=>{t[n]?o.push(t[n]):0!==t[n]&&{8:1}[n]&&o.push(t[n]=e(n).then(()=>{t[n]=0},e=>{throw delete t[n],e}))}}})(),(()=>{const e={125:0};n.f.j=(t,o)=>{let r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{const i=new Promise((n,o)=>r=e[t]=[n,o]);o.push(r[2]=i);const a=new Error,s=o=>{if(n.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){const e=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",a.name="ChunkLoadError",a.type=e,a.request=n,a.event=o,r[1](a)}};n.l(n.p+n.u(t),s,"chunk-"+t,t)}};const t=(t,o)=>{let[r,i,a]=o;var s,l,c=0;if(r.some(t=>0!==e[t])){for(s in i)n.o(i,s)&&(n.m[s]=i[s]);if(a)a(n)}for(t&&t(o);c<r.length;c++)l=r[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0},o=self.webpackChunk_automattic_jetpack_comments=self.webpackChunk_automattic_jetpack_comments||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var o=n(13022),r=n(59504),i=n(22446),a=n(23742),s=n(59656),l=n(49140),c=n(98729),u=(n(80270),n(59504).h),_=n(59504).FK;const d=new TextEncoder;let f=null;const p=()=>(window.jetpackCommentsEditorLocale=JetpackComments.editorLocale,f??=Promise.all([n.e(909),n.e(8)]).then(()=>n(69552)).catch(e=>{throw f=null,e}),f),m=()=>{p().catch(()=>{})},h=({form:e})=>{const{formSettings:t,commentParent:n,commentValue:r,isEmptyComment:s,isPosting:f,commenter:h,rememberDetails:v,isBoxOpen:g,isOptionsOpen:y,isDialogOpen:b}=(0,i.NT)(l.X),{mustLogIn:k,identity:w,strings:C,avatarUrl:S,maxLength:N,blocks:j}=JetpackComments,E=(0,i.li)(!1),P=(0,i.li)(null),x=(0,i.li)(null),L=(0,i.li)(null),[T,U]=(0,i.J0)("none"),I=n.value?C.replyPlaceholder:C.placeholder,$=`${I}...`,O=(0,i.hb)((e=!0)=>{j&&"none"===T&&(((e,t)=>{const{fontFamily:n,fontSize:o,lineHeight:r}=getComputedStyle(t),{color:i}=getComputedStyle(e);let a="";for(let t=e.parentElement;t&&!a;t=t.parentElement){const{backgroundColor:e}=getComputedStyle(t);"rgba(0, 0, 0, 0)"!==e&&"transparent"!==e&&(a=e)}e.style.setProperty("--jetpack-comments-font-family",n),e.style.setProperty("--jetpack-comments-font-size",o),e.style.setProperty("--jetpack-comments-line-height",r),e.style.setProperty("--jetpack-comments-color",i),a&&e.style.setProperty("--jetpack-comments-background",a)})(P.current,x.current),U("loading"),p().then(({mountEditor:t})=>{t(L.current,{initialContent:r.peek(),labels:{blockTools:C.blockTools,addBlock:C.addBlock},focus:e,placeholder:$,onChange:e=>r.value=e,onError:()=>U("failed")}),U("ready")}).catch(()=>U("failed")))},[j,T,$,C,r]),A=(0,i.hb)(()=>{g.value=!0,O()},[g,O]),J=(0,i.hb)(()=>g.value=!0,[g]),F=(0,i.hb)(e=>r.value=e.currentTarget.value,[r]);(0,i.vJ)(()=>{r.peek().includes("\x3c!-- wp:")&&O(!1)},[]),(0,i.vJ)(()=>{s.value||(g.value=!0)},[s.value,g]),(0,i.vJ)(()=>{const t=()=>{s.peek()&&(g.value=!1,y.value=!1)},n=n=>{e.contains(n.target)||t()},o=n=>{n.relatedTarget instanceof Node&&!e.contains(n.relatedTarget)&&t()};return document.addEventListener("pointerdown",n),e.addEventListener("focusout",o),()=>{document.removeEventListener("pointerdown",n),e.removeEventListener("focusout",o)}},[e,s,g,y]),(0,i.vJ)(()=>{const t=e.querySelector("#comment_parent");if(!t)return;const o=()=>{n.value=Number(t.value)||0};o();const r=new MutationObserver(o);return r.observe(t,{attributes:!0,attributeFilter:["value"]}),()=>r.disconnect()},[e,n]),(0,i.vJ)(()=>{const e=setTimeout(()=>(0,c.J1)(t.postId,r.value),300);return()=>clearTimeout(e)},[t,r.value]),(0,i.vJ)(()=>{const n=e=>{if("unknown"===h.peek().kind&&!b.peek())return e.preventDefault(),void(b.value=!0);E.current||(E.current=!0,f.value=!0,(0,c.J1)(t.postId,r.peek()),(0,c.zP)(t.postId))},o=e=>{e.persisted&&(E.current=!1,f.value=!1)},i=()=>(0,c.J1)(t.postId,r.peek());return e.addEventListener("submit",n),window.addEventListener("pageshow",o),window.addEventListener("pagehide",i),()=>{e.removeEventListener("submit",n),window.removeEventListener("pageshow",o),window.removeEventListener("pagehide",i)}},[e,t,f,r,h,b]);const H=h.value,M=S&&("wordpress"===H.kind&&H.avatar||("unknown"===H.kind?w.defaultAvatar:S)),{submit:D}=t,W=d.encode(r.value).length>N,q="ready"!==T&&r.value.includes("\x3c!-- wp:")?"":r.value;return u(_,null,u("div",{ref:P,className:(0,o.A)("jetpack-comments__box",{"is-open":g.value}),onPointerEnter:j?m:void 0},u("textarea",{ref:x,hidden:"ready"===T,id:"comment",name:"comment",className:"jetpack-comments__textarea",rows:2,required:!0,maxLength:N,"aria-label":n.value?C.replyLabel:C.commentLabel,value:q,autoComplete:"off",readOnly:"loading"===T,"aria-busy":"loading"===T,placeholder:"loading"===T?"":$,onFocus:A,onInput:F}),"loading"===T&&!q&&u("span",{className:"jetpack-comments__loading","aria-hidden":"true"},I,u("span",null,"."),u("span",null,"."),u("span",null,".")),"none"!==T&&"failed"!==T&&u("div",{ref:L,className:"jetpack-comments__editor",role:"group","aria-label":n.value?C.replyLabel:C.commentLabel,hidden:"ready"!==T,onFocusCapture:J}),u("div",{className:"jetpack-comments__actions"},W&&u("p",{className:"jetpack-comments__too-long",role:"alert"},C.tooLong),u("span",{className:(0,o.A)("jetpack-comments__submit",D.wrapClass)},u("input",{id:D.id,name:D.name,type:"submit",className:D.class,disabled:k&&"unknown"===h.value.kind&&!w.canSignIn||s.value||W||f.value,value:n.value?C.reply:D.label})),u("span",{className:"jetpack-comments__identity"},M&&u("img",{className:"jetpack-comments__avatar avatar avatar-40 photo",src:M,alt:"",width:"40",height:"40"}),u(a.l,null)))),u(a.J,null),"guest"===h.value.kind&&v.value&&u("input",{type:"hidden",name:"wp-comment-cookies-consent",value:"yes"}))};"0.4.0"===JetpackComments.version&&"attachInternals"in HTMLElement.prototype?(customElements.get("jetpack-comments-dialog")||customElements.define("jetpack-comments-dialog",s.x),document.querySelectorAll(".jetpack-comments").forEach(e=>{const t=e.closest("form");if(!t)return;let n;try{n=JSON.parse(e.dataset.jetpackComments||"{}")}catch{return}(0,c.y6)(n.postId);const o=(0,l.Y)(n);e.replaceChildren(),e.classList.add("is-mounted"),(0,r.XX)(u(l.X.Provider,{value:o},u(h,{form:t})),e);const i=t.appendChild(document.createElement("jetpack-comments-dialog"));(0,r.XX)(u(l.X.Provider,{value:o},u(s.l,{internals:i.internals})),i.attachShadow({mode:"open"}))})):document.querySelectorAll(".jetpack-comments").forEach(e=>e.classList.add("is-plain"))})();