File: //srv/htdocs/wp-content/plugins/jetpack/_inc/build/plugins-page.js
/*! For license information please see plugins-page.js.LICENSE.txt */
(()=>{var e={30689(){},15762(e,t,n){"use strict";var r=n(53761);function o(){}function s(){}s.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,s,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:o};return n.PropTypes=n,n}},28120(e,t,n){e.exports=n(15762)()},53761(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5932(e,t,n){"use strict";n.d(t,{Ay:()=>l});var r=n(56439),o=n(93832);function s(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const i=s("JsonParseError"),c=s("JsonParseAfterRedirectError"),a=s("Api404Error"),u=s("Api404AfterRedirectError"),d=s("FetchNetworkError");const l=new function(e,t){let n=e,s=e,i={"X-WP-Nonce":t},c={credentials:"same-origin",headers:i},a={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})},u=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")};const d={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){s=e},setApiNonce(e){i={"X-WP-Nonce":e},c={credentials:"same-origin",headers:i},a={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{u=e},registerSite:(e,t,o)=>{const s={};return(0,r.jetpackConfigHas)("consumer_slug")&&(s.plugin_slug=(0,r.jetpackConfigGet)("consumer_slug")),null!==t&&(s.redirect_uri=t),o&&(s.from=o),h(`${n}jetpack/v4/connection/register`,a,{body:JSON.stringify(s)}).then(p).then(f)},fetchAuthorizationUrl:e=>l((0,o.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),c).then(p).then(f),fetchSiteConnectionData:()=>l(`${n}jetpack/v4/connection/data`,c).then(f),fetchSiteConnectionStatus:()=>l(`${n}jetpack/v4/connection`,c).then(f),fetchSiteConnectionTest:()=>l(`${n}jetpack/v4/connection/test`,c).then(p).then(f),fetchUserConnectionData:()=>l(`${n}jetpack/v4/connection/data`,c).then(f),fetchUserTrackingSettings:()=>l(`${n}jetpack/v4/tracking/settings`,c).then(p).then(f),updateUserTrackingSettings:e=>h(`${n}jetpack/v4/tracking/settings`,a,{body:JSON.stringify(e)}).then(p).then(f),disconnectSite:()=>h(`${n}jetpack/v4/connection`,a,{body:JSON.stringify({isActive:!1})}).then(p).then(f),fetchConnectUrl:()=>l(`${n}jetpack/v4/connection/url`,c).then(p).then(f),unlinkUser:(e=!1,t={})=>{const r={linked:!1,force:!!e};return t.disconnectAllUsers&&(r["disconnect-all-users"]=!0),h(`${n}jetpack/v4/connection/user`,a,{body:JSON.stringify(r)}).then(p).then(f)},reconnect:()=>h(`${n}jetpack/v4/connection/reconnect`,a).then(p).then(f),fetchConnectedPlugins:()=>l(`${n}jetpack/v4/connection/plugins`,c).then(p).then(f),setHasSeenWCConnectionModal:()=>h(`${n}jetpack/v4/seen-wc-connection-modal`,a).then(p).then(f),fetchModules:()=>l(`${n}jetpack/v4/module/all`,c).then(p).then(f),fetchModule:e=>l(`${n}jetpack/v4/module/${e}`,c).then(p).then(f),activateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!0})}).then(p).then(f),deactivateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>h(`${n}jetpack/v4/module/${e}`,a,{body:JSON.stringify(t)}).then(p).then(f),updateSettings:e=>h(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(p).then(f),getProtectCount:()=>l(`${n}jetpack/v4/module/protect/data`,c).then(p).then(f),resetOptions:e=>h(`${n}jetpack/v4/options/${e}`,a,{body:JSON.stringify({reset:!0})}).then(p).then(f),activateVaultPress:()=>h(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(f),getVaultPressData:()=>l(`${n}jetpack/v4/module/vaultpress/data`,c).then(p).then(f),installPlugin:(e,t)=>{const r={slug:e,status:"active"};return t&&(r.source=t),h(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify(r)}).then(p).then(f)},activateAkismet:()=>h(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(f),getAkismetData:()=>l(`${n}jetpack/v4/module/akismet/data`,c).then(p).then(f),checkAkismetKey:()=>l(`${n}jetpack/v4/module/akismet/key/check`,c).then(p).then(f),checkAkismetKeyTyped:e=>h(`${n}jetpack/v4/module/akismet/key/check`,a,{body:JSON.stringify({api_key:e})}).then(p).then(f),getFeatureTypeStatus:e=>l(`${n}jetpack/v4/feature/${e}`,c).then(p).then(f),fetchStatsData:e=>l(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),c).then(p).then(f).then(_),getPluginUpdates:()=>l(`${n}jetpack/v4/updates/plugins`,c).then(p).then(f),getPlans:()=>l(`${n}jetpack/v4/plans`,c).then(p).then(f),fetchSettings:()=>l(`${n}jetpack/v4/settings`,c).then(p).then(f),updateSetting:e=>h(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(p).then(f),fetchSiteData:()=>l(`${n}jetpack/v4/site`,c).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteFeatures:()=>l(`${n}jetpack/v4/site/features`,c).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteProducts:()=>l(`${n}jetpack/v4/site/products`,c).then(p).then(f),fetchSitePurchases:()=>l(`${n}jetpack/v4/site/purchases`,c).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteBenefits:()=>l(`${n}jetpack/v4/site/benefits`,c).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteDiscount:()=>l(`${n}jetpack/v4/site/discount`,c).then(p).then(f).then(e=>e.data),fetchSetupQuestionnaire:()=>l(`${n}jetpack/v4/setup/questionnaire`,c).then(p).then(f),fetchRecommendationsData:()=>l(`${n}jetpack/v4/recommendations/data`,c).then(p).then(f),fetchRecommendationsProductSuggestions:()=>l(`${n}jetpack/v4/recommendations/product-suggestions`,c).then(p).then(f),fetchRecommendationsUpsell:()=>l(`${n}jetpack/v4/recommendations/upsell`,c).then(p).then(f),fetchRecommendationsConditional:()=>l(`${n}jetpack/v4/recommendations/conditional`,c).then(p).then(f),saveRecommendationsData:e=>h(`${n}jetpack/v4/recommendations/data`,a,{body:JSON.stringify({data:e})}).then(p),fetchProducts:()=>l(`${n}jetpack/v4/products`,c).then(p).then(f),fetchRewindStatus:()=>l(`${n}jetpack/v4/rewind`,c).then(p).then(f).then(e=>JSON.parse(e.data)),fetchScanStatus:()=>l(`${n}jetpack/v4/scan`,c).then(p).then(f).then(e=>JSON.parse(e.data)),dismissJetpackNotice:e=>h(`${n}jetpack/v4/notice/${e}`,a,{body:JSON.stringify({dismissed:!0})}).then(p).then(f),fetchPluginsData:()=>l(`${n}jetpack/v4/plugins`,c).then(p).then(f),fetchIntroOffers:()=>l(`${n}jetpack/v4/intro-offers`,c).then(p).then(f),fetchVerifySiteGoogleStatus:e=>l(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,c).then(p).then(f),verifySiteGoogle:e=>h(`${n}jetpack/v4/verify-site/google`,a,{body:JSON.stringify({keyring_id:e})}).then(p).then(f),submitSurvey:e=>h(`${n}jetpack/v4/marketing/survey`,a,{body:JSON.stringify(e)}).then(p).then(f),saveSetupQuestionnaire:e=>h(`${n}jetpack/v4/setup/questionnaire`,a,{body:JSON.stringify(e)}).then(p).then(f),updateLicensingError:e=>h(`${n}jetpack/v4/licensing/error`,a,{body:JSON.stringify(e)}).then(p).then(f),updateLicenseKey:e=>h(`${n}jetpack/v4/licensing/set-license`,a,{body:JSON.stringify({license:e})}).then(p).then(f),getUserLicensesCounts:()=>l(`${n}jetpack/v4/licensing/user/counts`,c).then(p).then(f),getUserLicenses:()=>l(`${n}jetpack/v4/licensing/user/licenses`,c).then(p).then(f),updateLicensingActivationNoticeDismiss:e=>h(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,a,{body:JSON.stringify({last_detached_count:e})}).then(p).then(f),updateRecommendationsStep:e=>h(`${n}jetpack/v4/recommendations/step`,a,{body:JSON.stringify({step:e})}).then(p),confirmIDCSafeMode:()=>h(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,a).then(p),startIDCFresh:e=>h(`${n}jetpack/v4/identity-crisis/start-fresh`,a,{body:JSON.stringify({redirect_uri:e})}).then(p).then(f),migrateIDC:()=>h(`${n}jetpack/v4/identity-crisis/migrate`,a).then(p),attachLicenses:e=>h(`${n}jetpack/v4/licensing/attach-licenses`,a,{body:JSON.stringify({licenses:e})}).then(p).then(f),fetchSearchPlanInfo:()=>l(`${s}jetpack/v4/search/plan`,c).then(p).then(f),fetchSearchSettings:()=>l(`${s}jetpack/v4/search/settings`,c).then(p).then(f),updateSearchSettings:e=>h(`${s}jetpack/v4/search/settings`,a,{body:JSON.stringify(e)}).then(p).then(f),fetchSearchStats:()=>l(`${s}jetpack/v4/search/stats`,c).then(p).then(f),fetchWafSettings:()=>l(`${n}jetpack/v4/waf`,c).then(p).then(f),updateWafSettings:e=>h(`${n}jetpack/v4/waf`,a,{body:JSON.stringify(e)}).then(p).then(f),fetchWordAdsSettings:()=>l(`${n}jetpack/v4/wordads/settings`,c).then(p).then(f),updateWordAdsSettings:e=>h(`${n}jetpack/v4/wordads/settings`,a,{body:JSON.stringify(e)}),fetchSearchPricing:()=>l(`${s}jetpack/v4/search/pricing`,c).then(p).then(f),fetchMigrationStatus:()=>l(`${n}jetpack/v4/migration/status`,c).then(p).then(f),fetchBackupUndoEvent:()=>l(`${n}jetpack/v4/site/backup/undo-event`,c).then(p).then(f),fetchBackupPreflightStatus:()=>l(`${n}jetpack/v4/site/backup/preflight`,c).then(p).then(f)};function l(e,t){return fetch(u(e),t)}function h(e,t,n){return fetch(e,Object.assign({},t,n)).catch(g)}function _(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function p(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise(()=>{throw e.redirected?new u(e.redirected):new a}):e.json().catch(e=>h(e)).then(t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n})}function f(e){return e.json().catch(t=>h(t,e.redirected,e.url))}function h(e,t,n){throw t?new c(n):new i}function g(){throw new d}},3924(e,t,n){"use strict";function r(e,t={}){const n={};let r;if("undefined"!=typeof window&&(r=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);for(const e in t)n[e]=encodeURIComponent(t[e]);!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(n.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),r&&(n.calypso_env=r);return"https://jetpack.com/redirect/?"+Object.keys(n).map(e=>e+"="+n[e]).join("&")}n.d(t,{A:()=>r})},56439(e,t,n){let r={};try{r=n(74277)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0}}const o=e=>Object.hasOwn(r,e);e.exports={jetpackConfigHas:o,jetpackConfigGet:e=>{if(!o(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},67961(e,t,n){"use strict";n.d(t,{I:()=>o,c:()=>r});const r="NEW_NOTICE",o="REMOVE_NOTICE"},5546(e,t,n){"use strict";var r=n(66087),o=n(67961);function s(e,t,n={}){const s={noticeId:n.id||(0,r.uniqueId)(),duration:n.duration,showDismiss:"boolean"!=typeof n.showDismiss||n.showDismiss,isPersistent:n.isPersistent||!1,displayOnNextPage:n.displayOnNextPage||!1,status:e,text:t};return{type:o.c,notice:s}}s.bind(null,"is-success"),s.bind(null,"is-error"),s.bind(null,"is-info"),s.bind(null,"is-warning")},73161(e,t,n){"use strict";n.d(t,{x:()=>s});var r=n(16278),o=n(67961);function s(e=[],t){switch(t.type){case o.c:return[t.notice,...e];case o.I:return e.filter(e=>e.noticeId!==t.noticeId)}return e}(0,r.HY)({globalNotices:s})},17949(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(3924),o=n(39384),s=n(86087),i=n(27723),c=n(57273),a=n(28120),u=n.n(a),d=n(51609),l=(n(30689),n(10790));const __=i.__,p=e=>{const{siteBenefits:t,context:n="disconnect"}=e;return(0,l.jsxs)(d.Fragment,{children:[t.length>0&&(0,l.jsxs)(d.Fragment,{children:[(0,l.jsx)("div",{className:"jp-connection__disconnect-dialog__step-copy",children:(0,l.jsx)("p",{className:"jp-connection__disconnect-dialog__large-text",children:"disconnect"===n?__("Jetpack is currently powering features on your site. Once you disconnect Jetpack, these features will no longer be available and your site may no longer function the same way.","jetpack"):__("Jetpack is currently powering features on your site. Once you deactivate Jetpack, these features will no longer be available.","jetpack",0)})}),(0,l.jsx)("div",{className:"jp-connection__disconnect-card__group",children:t.map(({value:e,description:t,title:n},r)=>(0,l.jsx)(o.DisconnectCard,{title:n,value:e,description:t},r))})]}),t.length<=2&&(0,l.jsxs)("div",{className:"jetpack-benefits__general-benefits-section",children:[(0,l.jsx)("p",{className:"jp-connection__disconnect-dialog__large-text",children:__("Jetpack has many powerful tools that can help you achieve your goals","jetpack")}),(0,l.jsxs)("ul",{className:"jetpack-benefits__general-benefits-list",children:[(0,l.jsx)("li",{children:(0,s.createInterpolateElement)(__("Speed up your site and provide mobile-ready images with <Link>our CDN</Link>","jetpack"),{Link:(0,l.jsx)(c.N,{openInNewTab:!0,href:(0,r.A)("jetpack-features-design-content-delivery-network"),rel:"noopener noreferrer",target:"_blank"})})},"reason-cdn"),(0,l.jsx)("li",{children:(0,s.createInterpolateElement)(__("Block <Link>brute force attacks</Link> and get immediate notifications if your site is down","jetpack"),{Link:(0,l.jsx)(c.N,{openInNewTab:!0,href:(0,r.A)("jetpack-features-brute-force"),rel:"noopener noreferrer",target:"_blank"})})},"reason-brute-force"),(0,l.jsx)("li",{children:(0,s.createInterpolateElement)(__("Grow your traffic with automated social <Link>publishing and sharing</Link>","jetpack"),{Link:(0,l.jsx)(c.N,{openInNewTab:!0,href:(0,r.A)("jetpack-support-social"),rel:"noopener noreferrer",target:"_blank"})})},"reason-social")]})]})]})};p.propTypes={siteBenefits:u().array,context:u().oneOf(["disconnect","deactivate"])};const f=p},6838(){"use strict";const e="jetpack_social_basic_bi_yearly",t="jetpack_social_basic_yearly",n="jetpack_social_basic_monthly",r="jetpack_social_advanced_bi_yearly",o="jetpack_social_advanced_yearly",s="jetpack_social_advanced_monthly",i="jetpack_social_v1_bi_yearly",c="jetpack_social_v1_yearly",a="jetpack_social_v1_monthly"},28999(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(5932),o=n(39384),s=n(27723),i=n(51609),c=n(71766),a=n(34679),u=n(82656),d=n(17949),l=n(2065),p=n(27081),f=n(10790);const __=s.__,h=(0,c.Ng)(e=>({apiRoot:(0,l.O3)(e),apiNonce:(0,l.Co)(e),connectedPlugins:(0,u.g1)(e),siteBenefits:(0,u.Up)(e),connectionUserData:(0,a.vn)(e)}),e=>({fetchConnectedPlugins:()=>e((0,u.GJ)()),fetchSiteBenefits:()=>e((0,u.Eb)()),fetchUserConnectionData:()=>e((0,a.u6)())}))(e=>{const{apiRoot:t,apiNonce:n,siteBenefits:s,connectionUserData:c,fetchSiteBenefits:a,fetchUserConnectionData:u}=e,[l,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{r.Ay.setApiRoot(t),r.Ay.setApiNonce(n),a(),u()},[t,n,a,u]);const g=document.querySelector("#deactivate-jetpack, #deactivate-jetpack-dev");null!==g&&g.setAttribute("title",__("Deactivate Jetpack","jetpack"));const _=(0,i.useCallback)(()=>{h(!l)},[h,l]),v=(0,i.useCallback)(e=>{e.preventDefault(),_()},[_]);(0,i.useEffect)(()=>null===g?null:(g.addEventListener("click",v),()=>{g.removeEventListener("click",v)}),[g,v]);const b=(0,i.useCallback)(()=>{if(null===g)return null;window.location.href=g.getAttribute("href")},[g]),y=s?(0,f.jsx)(d.A,{siteBenefits:s,context:"deactivate"}):null;return(0,f.jsx)(p.A,{children:(0,f.jsx)(o.DisconnectDialog,{title:__("Are you sure you want to deactivate?","jetpack"),apiRoot:t,apiNonce:n,connectedPlugins:[],connectedUser:{ID:c?.ID,login:c?.login},context:"plugins",isOpen:l,onClose:_,pluginScreenDisconnectCallback:b,disconnectStepComponent:y})})})},27081(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(51609),o=n(75795),s=n.n(o);const i=document.getElementById("jetpack-plugin-portal-sidecar");class c extends r.Component{constructor(e){super(e),this.portalNode=document.createElement("div")}componentDidMount(){i.appendChild(this.portalNode)}componentWillUnmount(){i.removeChild(this.portalNode)}render(){return s().createPortal(this.props.children,this.portalNode)}}const a=c},44254(e,t,n){"use strict";n.d(t,{Adt:()=>o,BVe:()=>L,BXj:()=>M,C_M:()=>V,Cj9:()=>D,EeE:()=>F,EqR:()=>w,Fdt:()=>C,G2:()=>A,Gvw:()=>z,I9e:()=>X,LK9:()=>E,LKY:()=>B,LgT:()=>g,Mcz:()=>T,NvU:()=>c,OOn:()=>y,PKf:()=>I,PMD:()=>q,PoH:()=>Y,R1B:()=>$,RRv:()=>v,RWZ:()=>ie,S68:()=>_,SOl:()=>p,SW5:()=>oe,Smm:()=>a,UsK:()=>H,Wxz:()=>W,X2c:()=>r,X99:()=>J,ZC3:()=>f,ZZG:()=>Q,_ce:()=>b,bhx:()=>s,c30:()=>h,dM3:()=>k,gOo:()=>re,gbL:()=>i,in6:()=>ee,jA_:()=>ne,jpH:()=>K,jzm:()=>m,lOA:()=>R,mX7:()=>x,msC:()=>ce,ooH:()=>j,pAF:()=>Z,pc5:()=>te,rL6:()=>d,s2d:()=>O,s8H:()=>G,spT:()=>S,tiw:()=>N,xQf:()=>ae,xf2:()=>P,xqC:()=>l,yxi:()=>se,z0g:()=>u,z9S:()=>U,zqp:()=>ue});const r="JETPACK_SET_INITIAL_STATE",o="CONNECT_URL_FETCH",s="CONNECT_URL_FETCH_FAIL",i="CONNECT_URL_FETCH_SUCCESS",c="DISCONNECT_SITE",a="DISCONNECT_SITE_FAIL",u="DISCONNECT_SITE_SUCCESS",d="CONNECT_USER",l="RESET_CONNECT_USER",p="UNLINK_USER",f="UNLINK_USER_FAIL",h="UNLINK_USER_SUCCESS",g="USER_CONNECTION_DATA_FETCH",_="USER_CONNECTION_DATA_FETCH_FAIL",v="USER_CONNECTION_DATA_FETCH_SUCCESS",b="SITE_RECONNECT",y="SITE_RECONNECT_SUCCESS",m="SITE_RECONNECT_FAIL",E="JETPACK_MODULES_LIST_FETCH",S="JETPACK_MODULES_LIST_FETCH_FAIL",j="JETPACK_MODULES_LIST_RECEIVE",w="JETPACK_MODULE_ACTIVATE",O="JETPACK_MODULE_ACTIVATE_SUCCESS",C="JETPACK_MODULE_ACTIVATE_FAIL",k="JETPACK_MODULE_DEACTIVATE",T="JETPACK_MODULE_DEACTIVATE_FAIL",N="JETPACK_MODULE_DEACTIVATE_SUCCESS",P="JETPACK_MODULE_UPDATE_OPTIONS",A="JETPACK_MODULE_UPDATE_OPTIONS_FAIL",I="JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",x="JETPACK_CONNECTION_STATUS_FETCH",U="JETPACK_SITE_CONNECTED_PLUGINS_FETCH",$="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE",D="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL",R="JETPACK_SITE_PRODUCTS_FETCH",F="JETPACK_SITE_PRODUCTS_FETCH_FAIL",L="JETPACK_SITE_PRODUCTS_FETCH_RECEIVE",J="JETPACK_SITE_DATA_FETCH",M="JETPACK_SITE_DATA_FETCH_RECEIVE",H="JETPACK_SITE_DATA_FETCH_FAIL",K="JETPACK_SITE_BENEFITS_FETCH",B="JETPACK_SITE_BENEFITS_FETCH_RECEIVE",z="JETPACK_SITE_BENEFITS_FETCH_FAIL",W="JETPACK_SITE_DISCOUNT_FETCH",V="JETPACK_SITE_DISCOUNT_FETCH_RECEIVE",q="JETPACK_SITE_DISCOUNT_FETCH_FAIL",G="JETPACK_SITE_FEATURES_FETCH",X="JETPACK_SITE_FEATURES_FETCH_RECEIVE",Y="JETPACK_SITE_FEATURES_FETCH_FAIL",Z="JETPACK_SITE_PLANS_FETCH",Q="JETPACK_SITE_PLANS_FETCH_RECEIVE",ee="JETPACK_SITE_PLANS_FETCH_FAIL",te="JETPACK_SITE_PURCHASES_FETCH",ne="JETPACK_SITE_PURCHASES_FETCH_RECEIVE",re="JETPACK_SITE_PURCHASES_FETCH_FAIL",oe="JETPACK_PLUGINS_DATA_FETCH",se="JETPACK_PLUGINS_DATA_FETCH_RECEIVE",ie="JETPACK_PLUGINS_DATA_FETCH_FAIL",ce="SET_PLAN_DURATION",ae="MOCK_SWITCH_USER_PERMISSIONS",ue="JETPACK_CONNECTION_HAS_SEEN_WC_CONNECTION_MODAL"},60820(e,t,n){"use strict";n.d(t,{u6:()=>s});var r=n(5932),o=(n(27723),n(5546),n(44254));const s=()=>e=>(e({type:o.LgT}),r.Ay.fetchUserConnectionData().then(t=>{e({type:o.RRv,userConnectionData:t})}).catch(t=>{e({type:o.S68,error:t})}))},34679(e,t,n){"use strict";n.d(t,{u6:()=>o.u6,vn:()=>r.vn});var r=n(19519),o=n(60820)},19519(e,t,n){"use strict";n.d(t,{Ff:()=>c,vn:()=>a});var r=n(66087),o=n(16278),s=n(44254);n(26508);const i={disconnectingSite:!1,connectingUser:!1,unlinkingUser:!1,fetchingConnectUrl:!1,fetchingUserData:!1,reconnectingSite:!1},c=(0,o.HY)({connectUrl:(e="",t)=>{switch(t.type){case s.X2c:return t?.initialState?.connectUrl??e;case s.gbL:return t.connectUrl;default:return e}},status:(e={siteConnected:window.Initial_State.connectionStatus},t)=>{switch(t.type){case s.mX7:case s.z0g:return Object.assign({},e,{siteConnected:t.siteConnected});case s.c30:return Object.assign({},e,{siteConnected:{...e.siteConnected,isUserConnected:!1}});case s.RRv:return!0===t.userConnectionData?.currentUser?.isConnected?Object.assign({},e,{siteConnected:{...e.siteConnected,hasConnectedOwner:!0}}):e;default:return e}},user:(e=window.Initial_State.userData||{},t)=>{switch(t.type){case s.RRv:return Object.assign({},e,t.userConnectionData);case s.c30:{const t=Object.assign({},e.currentUser,{isConnected:!1});return Object.assign({},e,{currentUser:t})}case s.xQf:return(0,r.merge)({},e,t.initialState);default:return e}},requests:(e=i,t)=>{switch(t.type){case s.NvU:return Object.assign({},e,{disconnectingSite:!0});case s.SOl:return Object.assign({},e,{unlinkingUser:!0});case s.rL6:return Object.assign({},e,{connectingUser:!0,connectingUserFeatureLabel:t.featureLabel,connectingUserFrom:t.from});case s.xqC:return Object.assign({},e,{connectingUser:!1});case s.Adt:return Object.assign({},e,{fetchingConnectUrl:!0});case s.LgT:return Object.assign({},e,{fetchingUserData:!0});case s._ce:return Object.assign({},e,{reconnectingSite:!0});case s.Smm:case s.z0g:return Object.assign({},e,{disconnectingSite:!1});case s.ZC3:case s.c30:return Object.assign({},e,{unlinkingUser:!1});case s.bhx:case s.gbL:return Object.assign({},e,{fetchingConnectUrl:!1});case s.S68:case s.RRv:return Object.assign({},e,{fetchingUserData:!1});case s.jzm:case s.OOn:return Object.assign({},e,{reconnectingSite:!1});default:return e}},hasSeenWCConnectionModal:(e=window.Initial_State.hasSeenWCConnectionModal||!1,t)=>t.type===s.zqp||e});function a(e){return e.jetpack.connection.user.currentUser?.wpcomUser}},2065(e,t,n){"use strict";n.d(t,{Co:()=>r.Co,O3:()=>r.O3});var r=n(69089)},69089(e,t,n){"use strict";n.d(t,{Co:()=>i,O3:()=>c,ue:()=>s});var r=n(66087),o=n(44254);n(34679),n(52173),n(78795);const s=(e=window.Initial_State,t)=>{switch(t.type){case o.X2c:return Object.assign({},e,t.initialState);case o.xQf:return(0,r.merge)({},e,{userData:t.initialState});default:return e}};function i(e){return e.jetpack.initialState?.WP_API_nonce}function c(e){return e.jetpack.initialState?.WP_API_root}},31415(e,t,n){"use strict";n(5932),n(27723),n(5546),n(23096)},26508(e,t,n){"use strict";n(23096),n(31415)},23096(e,t,n){"use strict";n(66087);var r=n(16278),o=n(44254);n(77423);const s={fetchingModulesList:!1,activating:{},deactivating:{},updatingOption:{}};(0,r.HY)({items:(e={},t)=>{switch(t.type){case o.X2c:return Object.assign({},t.initialState.getModules);case o.ooH:return Object.assign({},e,t.modules);case o.s2d:return Object.assign({},e,{[t.module]:Object.assign({},e[t.module],{activated:!0})});case o.tiw:return Object.assign({},e,{[t.module]:Object.assign({},e[t.module],{activated:!1})});case o.PKf:{const n=Object.assign({},e[t.module]);return Object.keys(t.newOptionValues).forEach(e=>{n.options[e].current_value=t.newOptionValues[e]}),Object.assign({},e,{[t.module]:n})}default:return e}},requests:(e=s,t)=>{switch(t.type){case o.LK9:return Object.assign({},e,{fetchingModulesList:!0});case o.spT:case o.ooH:return Object.assign({},e,{fetchingModulesList:!1});case o.EqR:return Object.assign({},e,{activating:Object.assign({},e.activating,{[t.module]:!0})});case o.Fdt:case o.s2d:return Object.assign({},e,{activating:Object.assign({},e.activating,{[t.module]:!1})});case o.dM3:return Object.assign({},e,{deactivating:Object.assign({},e.deactivating,{[t.module]:!0})});case o.Mcz:case o.tiw:return Object.assign({},e,{deactivating:Object.assign({},e.deactivating,{[t.module]:!1})});case o.xf2:{const n=Object.assign({},e.updatingOption);return n[t.module]=Object.assign({},n[t.module]),Object.keys(t.newOptionValues).forEach(e=>{n[t.module][e]=!0}),Object.assign({},e,{updatingOption:Object.assign({},e.updatingOption,n)})}case o.G2:case o.PKf:{const n=Object.assign({},e.updatingOption);return n[t.module]=Object.assign({},n[t.module]),Object.keys(t.newOptionValues).forEach(e=>{n[t.module][e]=!1}),Object.assign({},e,{updatingOption:Object.assign({},e.updatingOption,n)})}default:return e}}})},52173(e,t,n){"use strict";var r=n(16278),o=n(44254);(0,r.HY)({duration:(e="yearly",t)=>t.type===o.msC?t.duration:e})},93912(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(16278),o=n(73161),s=n(19519),i=n(69089),c=n(19892);const a=(0,r.HY)({initialState:i.ue,connection:s.Ff,siteData:c.Ff}),u=(0,r.HY)({globalNotices:o.x,jetpack:a})},2810(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(16278),o=n(12996),s=n(93912);const i=(0,r.Zz)((0,r.Tw)(o.P),"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e)(r.y$)(s.A)},31528(e,t,n){"use strict";n(5932)},78795(e,t,n){"use strict";n(56939),n(31528)},56939(e,t,n){"use strict";var r=n(16278),o=n(44254);(0,r.HY)({items:(e={},t)=>t.type===o.BVe?t.siteProducts:e,requests:(e={},t)=>{switch(t.type){case o.lOA:return{...e,isFetching:!0};case o.BVe:case o.EeE:return{...e,isFetching:!1};default:return e}}})},24667(e,t,n){"use strict";n.d(t,{Eb:()=>s,GJ:()=>i});var r=n(5932),o=n(44254);const s=()=>e=>(e({type:o.jpH}),r.Ay.fetchSiteBenefits().then(t=>{e({type:o.LKY,siteBenefits:t})}).catch(t=>{e({type:o.Gvw,error:t})})),i=()=>e=>(e({type:o.z9S}),r.Ay.fetchConnectedPlugins().then(t=>(e({type:o.R1B,connectedPlugins:t}),t)).catch(t=>{e({type:o.Cj9,error:t})}))},82656(e,t,n){"use strict";n.d(t,{Eb:()=>o.Eb,GJ:()=>o.GJ,Up:()=>r.Up,g1:()=>r.g1});var r=n(19892),o=n(24667)},74668(e,t,n){"use strict";n(5932)},77423(e,t,n){"use strict";n(71143),n(74668)},71143(e,t,n){"use strict";var r=n(16278),o=n(44254);const s={isFetchingPluginsData:!1};(0,r.HY)({items:(e={},t)=>t.type===o.yxi?Object.assign({},t.pluginsData):e,requests:(e=s,t)=>{switch(t.type){case o.SW5:return Object.assign({},e,{isFetchingPluginsData:!0});case o.RWZ:case o.yxi:return Object.assign({},e,{isFetchingPluginsData:!1});default:return e}}})},19892(e,t,n){"use strict";n.d(t,{Ff:()=>a,Up:()=>u,g1:()=>d});var r=n(27723),o=n(66087),s=n(16278),i=(n(6838),n(44254));const __=r.__,c={isFetchingSiteData:!1},a=(0,s.HY)({data:(e={},t)=>{switch(t.type){case i.BXj:return Object.assign({},e,t.siteData);case i.LKY:return(0,o.merge)({},e,{site:{benefits:t.siteBenefits}});case i.C_M:return t.siteDiscount?.code?(0,o.merge)({},e,{site:{discount:t.siteDiscount}}):e;case i.R1B:return(0,o.merge)({},e,{site:{connectedPlugins:t.connectedPlugins}});case i.I9e:return(0,o.merge)({},e,{site:{features:t.siteFeatures}});case i.ZZG:return(0,o.merge)({},e,{sitePlans:t.plans});case i.jA_:return(0,o.merge)({},e,{sitePurchases:t.purchases});default:return e}},requests:(e=c,t)=>{switch(t.type){case i.X99:return Object.assign({},e,{isFetchingSiteData:!0});case i.jpH:return Object.assign({},e,{isFetchingSiteBenefits:!0});case i.Wxz:return Object.assign({},e,{isFetchingSiteDiscount:!0});case i.z9S:return Object.assign({},e,{isFetchingConnectedPlugins:!0});case i.s8H:return Object.assign({},e,{isFetchingSiteFeatures:!0});case i.pAF:return Object.assign({},e,{isFetchingSitePlans:!0});case i.pc5:return Object.assign({},e,{isFetchingSitePurchases:!0});case i.UsK:case i.BXj:return Object.assign({},e,{isFetchingSiteData:!1});case i.Gvw:case i.LKY:return Object.assign({},e,{isFetchingSiteBenefits:!1});case i.PMD:case i.C_M:return Object.assign({},e,{isFetchingSiteDiscount:!1});case i.Cj9:case i.R1B:return Object.assign({},e,{isFetchingConnectedPlugins:!1,isDoneFetchingConnectedPlugins:!0});case i.PoH:case i.I9e:return Object.assign({},e,{isFetchingSiteFeatures:!1});case i.in6:case i.ZZG:return Object.assign({},e,{isFetchingSitePlans:!1});case i.gOo:case i.jA_:return Object.assign({},e,{isFetchingSitePurchases:!1});default:return e}},errors:(e={},t)=>{let n,r;if(t.type===i.UsK){switch(t.error.name){case"ApiError":n="reconnect",r=__("There seems to be a problem with your connection to WordPress.com. If the problem persists, try reconnecting.","jetpack");break;case"JsonParseError":n="support",r=__("Jetpack encountered an error and was unable to display the Dashboard. Please try refreshing the page.","jetpack");break;default:n=null,r=__("There seems to be a problem with your website.","jetpack")}return Object.assign({},e,{message:Object.hasOwn(t.error,"response")?t.error.response.message:r,action:n,code:Object.hasOwn(t.error,"response")?t.error.response.code:"fetch_site_data_fail_other",data:Object.hasOwn(t.error,"response")?t.error.response.data:{}})}return e}});function u(e){return e.jetpack.siteData?.data?.site?.benefits??null}function d(e){const t=function(e){return function(e){return!!e.jetpack.siteData.requests.isDoneFetchingConnectedPlugins}(e)?(e.jetpack.siteData?.data?.site?.connectedPlugins??[]).filter(e=>"jetpack"!==e.slug):null}(e);return t&&t.reduce((e,t)=>(e[t.slug]={name:t.name},e),{})}},21964(e,t,n){"use strict";var r=n(51609);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=r.useSyncExternalStore,i=r.useRef,c=r.useEffect,a=r.useMemo,u=r.useDebugValue},16934(e,t,n){"use strict";n(21964)},74277(e){"use strict";e.exports={consumer_slug:"jetpack"}},39384(e){"use strict";e.exports=window.JetpackConnection},51609(e){"use strict";e.exports=window.React},75795(e){"use strict";e.exports=window.ReactDOM},10790(e){"use strict";e.exports=window.ReactJSXRuntime},66087(e){"use strict";e.exports=window.lodash},86087(e){"use strict";e.exports=window.wp.element},27723(e){"use strict";e.exports=window.wp.i18n},93832(e){"use strict";e.exports=window.wp.url},60266(e,t,n){"use strict";function r(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}n.d(t,{v:()=>r})},93307(e,t,n){"use strict";n.d(t,{o:()=>f});var r=n(53169),o=n(51609),s=n(8970),i=n(28641),c=n(70071),a=n(12570),u=n(60266),d=n(73850),l=n(21044),p=n(45339);function f(e,t,n={}){const f=t.render,g=function(e,t={}){const{className:n,style:r,render:o}=e,{state:f=a.t0,ref:h,props:g,stateAttributesMapping:_,enabled:v=!0}=t,b=v?(0,d.S)(n,f):void 0,y=v?(0,l.m)(r,f):void 0,m=v?(0,u.v)(f,_):a.t0,E=v&&g?function(e){if(Array.isArray(e))return(0,p.lZ)(e);return(0,p.v6)(void 0,e)}(g):void 0,S=v?(0,c.r)(m,E)??{}:a.t0;"undefined"!=typeof document&&(v?Array.isArray(h)?S.ref=(0,s.U)([S.ref,(0,i.v)(o),...h]):S.ref=(0,s.a)(S.ref,(0,i.v)(o),h):(0,s.a)(null,null));if(!v)return a.t0;void 0!==b&&(S.className=(0,p.VN)(S.className,b));void 0!==y&&(S.style=(0,c.r)(S.style,y));return S}(t,n);if(!1===n.enabled)return null;return function(e,t,n,s){if(t){if("function"==typeof t)return t(n,s);const e=(0,p.v6)(n,t.props);e.ref=n.ref;let r=t;if(r?.$$typeof===h){r=o.Children.toArray(t)[0]}return o.cloneElement(r,e)}if(e&&"string"==typeof e)return function(e,t){if("button"===e)return(0,o.createElement)("button",{type:"button",...t,key:t.key});if("img"===e)return(0,o.createElement)("img",{alt:"",...t,key:t.key});return o.createElement(e,t)}(e,n);throw new Error((0,r.A)(8))}(e,f,g,n.state??a.t0)}const h=Symbol.for("react.lazy")},45339(e,t,n){"use strict";n.d(t,{VN:()=>g,lZ:()=>i,v6:()=>s});var r=n(70071);const o={};function s(e,t,n,r,o){if(!(n||r||o||e))return c(t);let s=c(e);return t&&(s=a(s,t)),n&&(s=a(s,n)),r&&(s=a(s,r)),o&&(s=a(s,o)),s}function i(e){if(0===e.length)return o;if(1===e.length)return c(e[0]);let t=c(e[0]);for(let n=1;n<e.length;n+=1)t=a(t,e[n]);return t}function c(e){return d(e)?{...l(e,o)}:function(e){const t={...e};for(const e in t){const n=t[e];u(e,n)&&(t[e]=f(n))}return t}(e)}function a(e,t){return d(t)?l(t,e):function(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":e[n]=(0,r.r)(e.style,o);break;case"className":e[n]=g(e.className,o);break;default:u(n,o)?e[n]=p(e[n],o):e[n]=o}}return e}(e,t)}function u(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}function d(e){return"function"==typeof e}function l(e,t){return d(e)?e(t):e??o}function p(e,t){return t?e?(...n)=>{const r=n[0];if(_(r)){const o=r;h(o);const s=t(...n);return o.baseUIHandlerPrevented||e?.(...n),s}const o=t(...n);return e?.(...n),o}:f(t):e}function f(e){return e?(...t)=>{const n=t[0];return _(n)&&h(n),e(...t)}:e}function h(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function g(e,t){return t?e?t+" "+e:t:e}function _(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},899(e,t,n){"use strict";n.d(t,{C:()=>o});var r=n(93307);function o(e){return(0,r.o)(e.defaultTagName??"div",e,e)}},73850(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{S:()=>r})},21044(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{m:()=>r})},12570(e,t,n){"use strict";n.d(t,{t0:()=>r});Object.freeze([]);const r=Object.freeze({})},53169(e,t,n){"use strict";n.d(t,{A:()=>s});var r,o;const s=(r="https://base-ui.com/production-error",o="Base UI",function(e,...t){const n=new URL(r);return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`${o} error #${e}; visit ${n} for the full message.`})},28641(e,t,n){"use strict";n.d(t,{v:()=>s});var r=n(51609),o=n(83100);function s(e){if(!r.isValidElement(e))return null;const t=e,n=t.props;return((0,o._)(19)?n?.ref:t.ref)??null}},70071(e,t,n){"use strict";function r(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}n.d(t,{r:()=>r})},83100(e,t,n){"use strict";n.d(t,{_:()=>s});var r=n(51609);const o=parseInt(r.version,10);function s(e){return o>=e}},8970(e,t,n){"use strict";n.d(t,{U:()=>s,a:()=>o});var r=n(31749);function o(e,t,n,o){const s=(0,r.j)(i).current;return function(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}(s,e,t,n,o)&&c(s,[e,t,n,o]),s.callback}function s(e){const t=(0,r.j)(i).current;return function(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}(t,e)&&c(t,e),t.callback}function i(){return{callback:null,cleanup:null,refs:[]}}function c(e,t){e.refs=t,t.every(e=>null==e)?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const o=t[e];if(null!=o)switch(typeof o){case"function":{const t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(null!=n)switch(typeof n){case"function":{const t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}},31749(e,t,n){"use strict";n.d(t,{j:()=>s});var r=n(51609);const o={};function s(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}},13022(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},71766(e,t,n){"use strict";n.d(t,{Kq:()=>te,Ng:()=>ee});var r=n(51609),o=(n(16934),r.version.startsWith("19")),s=Symbol.for(o?"react.transitional.element":"react.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),l=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),v=p,b=g;function y(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case s:switch(e=e.type){case c:case u:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case l:case p:case _:case g:case d:return e;default:return t}}case i:return t}}}function m(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:s,areStatePropsEqual:i}){let c,a,u,d,l,p=!1;function f(p,f){const h=!s(f,a),g=!o(p,c,f,a);return c=p,a=f,h&&g?(u=e(c,a),t.dependsOnOwnProps&&(d=t(r,a)),l=n(u,d,a),l):h?(e.dependsOnOwnProps&&(u=e(c,a)),t.dependsOnOwnProps&&(d=t(r,a)),l=n(u,d,a),l):g?function(){const t=e(c,a),r=!i(t,u);return u=t,r&&(l=n(u,d,a)),l}():l}return function(o,s){return p?f(o,s):(c=o,a=s,u=e(c,a),d=t(r,a),l=n(u,d,a),p=!0,l)}}function E(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function S(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function j(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=S(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=S(o),o=r(t,n)),o},r}}function w(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function O(e,t,n){return{...n,...e,...t}}function C(e){e()}var k={notify(){},get:()=>[]};function T(e,t){let n,r=k,o=0,s=!1;function i(){u.onStateChange&&u.onStateChange()}function c(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){C(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function a(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=k)}const u={addNestedSub:function(e){c();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),a())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return s},trySubscribe:function(){s||(s=!0,c())},tryUnsubscribe:function(){s&&(s=!1,a())},getListeners:()=>r};return u}var N=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),P=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),A=(()=>N||P?r.useLayoutEffect:r.useEffect)();function I(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function x(e,t){if(I(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!I(e[n[r]],t[n[r]]))return!1;return!0}var U={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},D={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R={[v]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[b]:D};function F(e){return y(e)===g?D:R[e.$$typeof]||U}var L=Object.defineProperty,J=Object.getOwnPropertyNames,M=Object.getOwnPropertySymbols,H=Object.getOwnPropertyDescriptor,K=Object.getPrototypeOf,B=Object.prototype;function z(e,t){if("string"!=typeof t){if(B){const n=K(t);n&&n!==B&&z(e,n)}let n=J(t);M&&(n=n.concat(M(t)));const r=F(e),o=F(t);for(let s=0;s<n.length;++s){const i=n[s];if(!($[i]||o&&o[i]||r&&r[i])){const n=H(t,i);try{L(e,i,n)}catch(e){}}}}return e}var W=Symbol.for("react-redux-context"),V="undefined"!=typeof globalThis?globalThis:{};function q(){if(!r.createContext)return{};const e=V[W]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var G=q(),X=[null,null];function Y(e,t,n,r,o,s){e.current=r,n.current=!1,o.current&&(o.current=null,s())}function Z(e,t){return e===t}function Q(e,t,n,{pure:o,areStatesEqual:s=Z,areOwnPropsEqual:i=x,areStatePropsEqual:c=x,areMergedPropsEqual:a=x,forwardRef:u=!1,context:d=G}={}){const l=d,p=function(e){return e?"function"==typeof e?j(e):w(e,"mapStateToProps"):E(()=>({}))}(e),f=function(e){return e&&"object"==typeof e?E(t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t)):e?"function"==typeof e?j(e):w(e,"mapDispatchToProps"):E(e=>({dispatch:e}))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,s=!1;return function(t,n,i){const c=e(t,n,i);return s?r(c,o)||(o=c):(s=!0,o=c),o}}}(e):w(e,"mergeProps"):()=>O}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:h,areStatesEqual:s,areStatePropsEqual:c,areOwnPropsEqual:i,areMergedPropsEqual:a};function d(t){const[n,s,i]=r.useMemo(()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),c=r.useMemo(()=>l,[n,l]),a=r.useContext(c),u=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),d=Boolean(a)&&Boolean(a.store);const p=u?t.store:a.store,f=d?a.getServerState:p.getState,h=r.useMemo(()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return m(t(e,o),n(e,o),r(e,o),e,o)}(p.dispatch,o),[p]),[_,v]=r.useMemo(()=>{if(!g)return X;const e=T(p,u?void 0:a.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[p,u,a]),b=r.useMemo(()=>u?a:{...a,subscription:_},[u,a,_]),y=r.useRef(void 0),E=r.useRef(i),S=r.useRef(void 0),j=r.useRef(!1),w=r.useRef(!1),O=r.useRef(void 0);A(()=>(w.current=!0,()=>{w.current=!1}),[]);const C=r.useMemo(()=>()=>S.current&&i===E.current?S.current:h(p.getState(),i),[p,i]),k=r.useMemo(()=>e=>_?function(e,t,n,r,o,s,i,c,a,u,d){if(!e)return()=>{};let l=!1,p=null;const f=()=>{if(l||!c.current)return;const e=t.getState();let n,f;try{n=r(e,o.current)}catch(e){f=e,p=e}f||(p=null),n===s.current?i.current||u():(s.current=n,a.current=n,i.current=!0,d())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(g,p,_,h,E,y,j,w,S,v,e):()=>{},[_]);var N,P,I;let x;N=Y,P=[E,y,j,i,S,v],A(()=>N(...P),I);try{x=r.useSyncExternalStore(k,C,f?()=>h(f(),i):C)}catch(e){throw O.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${O.current.stack}\n\n`),e}A(()=>{O.current=void 0,S.current=void 0,y.current=x});const U=r.useMemo(()=>r.createElement(e,{...x,ref:s}),[s,e,x]);return r.useMemo(()=>g?r.createElement(c.Provider,{value:b},U):U,[c,U,b])}const _=r.memo(d);if(_.WrappedComponent=e,_.displayName=d.displayName=n,u){const t=r.forwardRef(function(e,t){return r.createElement(_,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,z(t,e)}return z(_,e)}}var ee=Q;var te=function(e){const{children:t,context:n,serverState:o,store:s}=e,i=r.useMemo(()=>{const e=T(s);return{store:s,subscription:e,getServerState:o?()=>o:void 0}},[s,o]),c=r.useMemo(()=>s.getState(),[s]);A(()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==s.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,c]);const a=n||G;return r.createElement(a.Provider,{value:i},t)}},12996(e,t,n){"use strict";function r(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}n.d(t,{P:()=>o});var o=r()},16278(e,t,n){"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>u,Tw:()=>l,Zz:()=>d,y$:()=>a});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),s=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${s()}`,REPLACE:`@@redux/REPLACE${s()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${s()}`};function c(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function a(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(a)(e,t)}let s=e,u=t,d=new Map,l=d,p=0,f=!1;function h(){l===d&&(l=new Map,d.forEach((e,t)=>{l.set(t,e)}))}function g(){if(f)throw new Error(r(3));return u}function _(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;h();const n=p++;return l.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,h(),l.delete(n),d=null}}}function v(e){if(!c(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(f)throw new Error(r(9));try{f=!0,u=s(u,e)}finally{f=!1}return(d=l).forEach(e=>{e()}),e}v({type:i.INIT});return{dispatch:v,subscribe:_,getState:g,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));s=e,v({type:i.REPLACE})},[o]:function(){const e=_;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(g())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function u(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let s;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))})}(n)}catch(e){s=e}return function(e={},t){if(s)throw s;let i=!1;const c={};for(let s=0;s<o.length;s++){const a=o[s],u=n[a],d=e[a],l=u(d,t);if(void 0===l){t&&t.type;throw new Error(r(14))}c[a]=l,i=i||l!==d}return i=i||o.length!==Object.keys(e).length,i?c:e}}function d(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function l(...e){return t=>(n,o)=>{const s=t(n,o);let i=()=>{throw new Error(r(15))};const c={getState:s.getState,dispatch:(e,...t)=>i(e,...t)},a=e.map(e=>e(c));return i=d(...a)(s.dispatch),{...s,dispatch:i}}}},57273(e,t,n){"use strict";n.d(t,{N:()=>v});var r=n(899),o=n(45339),s=n(13022),i=n(86087),c=n(27723),a=n(10790),u="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)l(e,n,r)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const r=d();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${u}]`))if(n.getAttribute(u)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(u,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}function p(e,t){const n=d();n.styles.set(e,t);for(const r of n.documents.keys())l(r,e,t)}p("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var f="_336cd3e4e743482f__box-sizing";p("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var h="_08e8a2e44959f892__outset-ring--focus";p("7e0119b657",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-regular,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var g={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};p("d390e935a7","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var _="_2c0831b0499dbd6e__a",v=(0,i.forwardRef)(function({children:e,variant:t="default",tone:n="brand",openInNewTab:i=!1,render:u,className:d,...l},p){return(0,r.C)({render:u,defaultTagName:"a",ref:p,props:(0,o.v6)(l,{className:(0,s.A)(_,f,h,"unstyled"!==t&&g.link,"unstyled"!==t&&g[`is-${n}`],"unstyled"===t&&g["is-unstyled"],d),target:i?"_blank":void 0,children:(0,a.jsxs)(a.Fragment,{children:[e,i&&(0,a.jsx)("span",{className:g["link-icon"],role:"img","aria-label":/* translators: accessibility text appended to link text */ /* translators: accessibility text appended to link text */(0,c.__)("(opens in a new tab)","jetpack")})]})})})})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(86087),t=n(71766),r=n(2810),o=n(28999),s=n(10790);function i(){const n=document.getElementById("jetpack-plugin-portal-app"),i=(0,s.jsx)(t.Kq,{store:r.A,children:(0,s.jsx)(o.A,{})});e.createRoot(n).render(i)}"loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",()=>{i()})})()})();