var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
  let window = _____WB$wombat$assign$function_____("window");
  let self = _____WB$wombat$assign$function_____("self");
  let document = _____WB$wombat$assign$function_____("document");
  let location = _____WB$wombat$assign$function_____("location");
  let top = _____WB$wombat$assign$function_____("top");
  let parent = _____WB$wombat$assign$function_____("parent");
  let frames = _____WB$wombat$assign$function_____("frames");
  let opener = _____WB$wombat$assign$function_____("opener");

/*! For license information please see entry-main.68ce88e5f2288103be8e.min.js.LICENSE.txt */
(globalThis.webpackChunkcalypso=globalThis.webpackChunkcalypso||[]).push([[63024,64705],{"../node_modules/moment/locale lazy recursive ^\\.\\/.*$ include: \\.js$":(e,t,s)=>{var n={"./af":["../node_modules/moment/locale/af.js",13555],"./af.js":["../node_modules/moment/locale/af.js",13555],"./ar":["../node_modules/moment/locale/ar.js",36568],"./ar-dz":["../node_modules/moment/locale/ar-dz.js",35083],"./ar-dz.js":["../node_modules/moment/locale/ar-dz.js",35083],"./ar-kw":["../node_modules/moment/locale/ar-kw.js",19467],"./ar-kw.js":["../node_modules/moment/locale/ar-kw.js",19467],"./ar-ly":["../node_modules/moment/locale/ar-ly.js",52511],"./ar-ly.js":["../node_modules/moment/locale/ar-ly.js",52511],"./ar-ma":["../node_modules/moment/locale/ar-ma.js",19794],"./ar-ma.js":["../node_modules/moment/locale/ar-ma.js",19794],"./ar-sa":["../node_modules/moment/locale/ar-sa.js",13445],"./ar-sa.js":["../node_modules/moment/locale/ar-sa.js",13445],"./ar-tn":["../node_modules/moment/locale/ar-tn.js",81338],"./ar-tn.js":["../node_modules/moment/locale/ar-tn.js",81338],"./ar.js":["../node_modules/moment/locale/ar.js",36568],"./az":["../node_modules/moment/locale/az.js",34273],"./az.js":["../node_modules/moment/locale/az.js",34273],"./be":["../node_modules/moment/locale/be.js",18736],"./be.js":["../node_modules/moment/locale/be.js",18736],"./bg":["../node_modules/moment/locale/bg.js",23136],"./bg.js":["../node_modules/moment/locale/bg.js",23136],"./bm":["../node_modules/moment/locale/bm.js",25546],"./bm.js":["../node_modules/moment/locale/bm.js",25546],"./bn":["../node_modules/moment/locale/bn.js",41259],"./bn.js":["../node_modules/moment/locale/bn.js",41259],"./bo":["../node_modules/moment/locale/bo.js",31741],"./bo.js":["../node_modules/moment/locale/bo.js",31741],"./br":["../node_modules/moment/locale/br.js",96303],"./br.js":["../node_modules/moment/locale/br.js",96303],"./bs":["../node_modules/moment/locale/bs.js",79398],"./bs.js":["../node_modules/moment/locale/bs.js",79398],"./ca":["../node_modules/moment/locale/ca.js",32551],"./ca.js":["../node_modules/moment/locale/ca.js",32551],"./cs":["../node_modules/moment/locale/cs.js",21205],"./cs.js":["../node_modules/moment/locale/cs.js",21205],"./cv":["../node_modules/moment/locale/cv.js",31268],"./cv.js":["../node_modules/moment/locale/cv.js",31268],"./cy":["../node_modules/moment/locale/cy.js",34571],"./cy.js":["../node_modules/moment/locale/cy.js",34571],"./da":["../node_modules/moment/locale/da.js",63187],"./da.js":["../node_modules/moment/locale/da.js",63187],"./de":["../node_modules/moment/locale/de.js",56069],"./de-at":["../node_modules/moment/locale/de-at.js",99640],"./de-at.js":["../node_modules/moment/locale/de-at.js",99640],"./de-ch":["../node_modules/moment/locale/de-ch.js",88920],"./de-ch.js":["../node_modules/moment/locale/de-ch.js",88920],"./de.js":["../node_modules/moment/locale/de.js",56069],"./dv":["../node_modules/moment/locale/dv.js",43117],"./dv.js":["../node_modules/moment/locale/dv.js",43117],"./el":["../node_modules/moment/locale/el.js",9130],"./el.js":["../node_modules/moment/locale/el.js",9130],"./en-au":["../node_modules/moment/locale/en-au.js",210],"./en-au.js":["../node_modules/moment/locale/en-au.js",210],"./en-ca":["../node_modules/moment/locale/en-ca.js",9323],"./en-ca.js":["../node_modules/moment/locale/en-ca.js",9323],"./en-gb":["../node_modules/moment/locale/en-gb.js",33461],"./en-gb.js":["../node_modules/moment/locale/en-gb.js",33461],"./en-ie":["../node_modules/moment/locale/en-ie.js",62409],"./en-ie.js":["../node_modules/moment/locale/en-ie.js",62409],"./en-il":["../node_modules/moment/locale/en-il.js",39488],"./en-il.js":["../node_modules/moment/locale/en-il.js",39488],"./en-in":["../node_modules/moment/locale/en-in.js",94897],"./en-in.js":["../node_modules/moment/locale/en-in.js",94897],"./en-nz":["../node_modules/moment/locale/en-nz.js",44145],"./en-nz.js":["../node_modules/moment/locale/en-nz.js",44145],"./en-sg":["../node_modules/moment/locale/en-sg.js",72133],"./en-sg.js":["../node_modules/moment/locale/en-sg.js",72133],"./eo":["../node_modules/moment/locale/eo.js",45506],"./eo.js":["../node_modules/moment/locale/eo.js",45506],"./es":["../node_modules/moment/locale/es.js",58632],"./es-do":["../node_modules/moment/locale/es-do.js",57933],"./es-do.js":["../node_modules/moment/locale/es-do.js",57933],"./es-us":["../node_modules/moment/locale/es-us.js",84503],"./es-us.js":["../node_modules/moment/locale/es-us.js",84503],"./es.js":["../node_modules/moment/locale/es.js",58632],"./et":["../node_modules/moment/locale/et.js",35427],"./et.js":["../node_modules/moment/locale/et.js",35427],"./eu":["../node_modules/moment/locale/eu.js",68631],"./eu.js":["../node_modules/moment/locale/eu.js",68631],"./fa":["../node_modules/moment/locale/fa.js",86308],"./fa.js":["../node_modules/moment/locale/fa.js",86308],"./fi":["../node_modules/moment/locale/fi.js",85667],"./fi.js":["../node_modules/moment/locale/fi.js",85667],"./fil":["../node_modules/moment/locale/fil.js",22531],"./fil.js":["../node_modules/moment/locale/fil.js",22531],"./fo":["../node_modules/moment/locale/fo.js",5854],"./fo.js":["../node_modules/moment/locale/fo.js",5854],"./fr":["../node_modules/moment/locale/fr.js",6685],"./fr-ca":["../node_modules/moment/locale/fr-ca.js",52743],"./fr-ca.js":["../node_modules/moment/locale/fr-ca.js",52743],"./fr-ch":["../node_modules/moment/locale/fr-ch.js",15907],"./fr-ch.js":["../node_modules/moment/locale/fr-ch.js",15907],"./fr.js":["../node_modules/moment/locale/fr.js",6685],"./fy":["../node_modules/moment/locale/fy.js",65],"./fy.js":["../node_modules/moment/locale/fy.js",65],"./ga":["../node_modules/moment/locale/ga.js",24397],"./ga.js":["../node_modules/moment/locale/ga.js",24397],"./gd":["../node_modules/moment/locale/gd.js",55288],"./gd.js":["../node_modules/moment/locale/gd.js",55288],"./gl":["../node_modules/moment/locale/gl.js",54856],"./gl.js":["../node_modules/moment/locale/gl.js",54856],"./gom-deva":["../node_modules/moment/locale/gom-deva.js",65058],"./gom-deva.js":["../node_modules/moment/locale/gom-deva.js",65058],"./gom-latn":["../node_modules/moment/locale/gom-latn.js",34246],"./gom-latn.js":["../node_modules/moment/locale/gom-latn.js",34246],"./gu":["../node_modules/moment/locale/gu.js",61049],"./gu.js":["../node_modules/moment/locale/gu.js",61049],"./he":["../node_modules/moment/locale/he.js",4286],"./he.js":["../node_modules/moment/locale/he.js",4286],"./hi":["../node_modules/moment/locale/hi.js",68833],"./hi.js":["../node_modules/moment/locale/hi.js",68833],"./hr":["../node_modules/moment/locale/hr.js",21765],"./hr.js":["../node_modules/moment/locale/hr.js",21765],"./hu":["../node_modules/moment/locale/hu.js",9774],"./hu.js":["../node_modules/moment/locale/hu.js",9774],"./hy-am":["../node_modules/moment/locale/hy-am.js",34841],"./hy-am.js":["../node_modules/moment/locale/hy-am.js",34841],"./id":["../node_modules/moment/locale/id.js",1392],"./id.js":["../node_modules/moment/locale/id.js",1392],"./is":["../node_modules/moment/locale/is.js",64314],"./is.js":["../node_modules/moment/locale/is.js",64314],"./it":["../node_modules/moment/locale/it.js",94577],"./it-ch":["../node_modules/moment/locale/it-ch.js",43473],"./it-ch.js":["../node_modules/moment/locale/it-ch.js",43473],"./it.js":["../node_modules/moment/locale/it.js",94577],"./ja":["../node_modules/moment/locale/ja.js",19768],"./ja.js":["../node_modules/moment/locale/ja.js",19768],"./jv":["../node_modules/moment/locale/jv.js",29241],"./jv.js":["../node_modules/moment/locale/jv.js",29241],"./ka":["../node_modules/moment/locale/ka.js",68592],"./ka.js":["../node_modules/moment/locale/ka.js",68592],"./kk":["../node_modules/moment/locale/kk.js",78103],"./kk.js":["../node_modules/moment/locale/kk.js",78103],"./km":["../node_modules/moment/locale/km.js",56425],"./km.js":["../node_modules/moment/locale/km.js",56425],"./kn":["../node_modules/moment/locale/kn.js",86377],"./kn.js":["../node_modules/moment/locale/kn.js",86377],"./ko":["../node_modules/moment/locale/ko.js",32921],"./ko.js":["../node_modules/moment/locale/ko.js",32921],"./ku":["../node_modules/moment/locale/ku.js",75239],"./ku.js":["../node_modules/moment/locale/ku.js",75239],"./ky":["../node_modules/moment/locale/ky.js",64156],"./ky.js":["../node_modules/moment/locale/ky.js",64156],"./lb":["../node_modules/moment/locale/lb.js",7686],"./lb.js":["../node_modules/moment/locale/lb.js",7686],"./lo":["../node_modules/moment/locale/lo.js",81087],"./lo.js":["../node_modules/moment/locale/lo.js",81087],"./lt":["../node_modules/moment/locale/lt.js",47497],"./lt.js":["../node_modules/moment/locale/lt.js",47497],"./lv":["../node_modules/moment/locale/lv.js",58312],"./lv.js":["../node_modules/moment/locale/lv.js",58312],"./me":["../node_modules/moment/locale/me.js",43575],"./me.js":["../node_modules/moment/locale/me.js",43575],"./mi":["../node_modules/moment/locale/mi.js",5027],"./mi.js":["../node_modules/moment/locale/mi.js",5027],"./mk":["../node_modules/moment/locale/mk.js",31110],"./mk.js":["../node_modules/moment/locale/mk.js",31110],"./ml":["../node_modules/moment/locale/ml.js",79963],"./ml.js":["../node_modules/moment/locale/ml.js",79963],"./mn":["../node_modules/moment/locale/mn.js",45715],"./mn.js":["../node_modules/moment/locale/mn.js",45715],"./mr":["../node_modules/moment/locale/mr.js",66951],"./mr.js":["../node_modules/moment/locale/mr.js",66951],"./ms":["../node_modules/moment/locale/ms.js",59009],"./ms-my":["../node_modules/moment/locale/ms-my.js",12905],"./ms-my.js":["../node_modules/moment/locale/ms-my.js",12905],"./ms.js":["../node_modules/moment/locale/ms.js",59009],"./mt":["../node_modules/moment/locale/mt.js",69389],"./mt.js":["../node_modules/moment/locale/mt.js",69389],"./my":["../node_modules/moment/locale/my.js",6230],"./my.js":["../node_modules/moment/locale/my.js",6230],"./nb":["../node_modules/moment/locale/nb.js",72710],"./nb.js":["../node_modules/moment/locale/nb.js",72710],"./ne":["../node_modules/moment/locale/ne.js",35789],"./ne.js":["../node_modules/moment/locale/ne.js",35789],"./nl":["../node_modules/moment/locale/nl.js",13236],"./nl-be":["../node_modules/moment/locale/nl-be.js",52066],"./nl-be.js":["../node_modules/moment/locale/nl-be.js",52066],"./nl.js":["../node_modules/moment/locale/nl.js",13236],"./nn":["../node_modules/moment/locale/nn.js",7396],"./nn.js":["../node_modules/moment/locale/nn.js",7396],"./oc-lnc":["../node_modules/moment/locale/oc-lnc.js",88555],"./oc-lnc.js":["../node_modules/moment/locale/oc-lnc.js",88555],"./pa-in":["../node_modules/moment/locale/pa-in.js",1629],"./pa-in.js":["../node_modules/moment/locale/pa-in.js",1629],"./pl":["../node_modules/moment/locale/pl.js",13839],"./pl.js":["../node_modules/moment/locale/pl.js",13839],"./pt":["../node_modules/moment/locale/pt.js",54299],"./pt-br":["../node_modules/moment/locale/pt-br.js",19694],"./pt-br.js":["../node_modules/moment/locale/pt-br.js",19694],"./pt.js":["../node_modules/moment/locale/pt.js",54299],"./ro":["../node_modules/moment/locale/ro.js",71552],"./ro.js":["../node_modules/moment/locale/ro.js",71552],"./ru":["../node_modules/moment/locale/ru.js",88644],"./ru.js":["../node_modules/moment/locale/ru.js",88644],"./sd":["../node_modules/moment/locale/sd.js",80804],"./sd.js":["../node_modules/moment/locale/sd.js",80804],"./se":["../node_modules/moment/locale/se.js",92177],"./se.js":["../node_modules/moment/locale/se.js",92177],"./si":["../node_modules/moment/locale/si.js",25199],"./si.js":["../node_modules/moment/locale/si.js",25199],"./sk":["../node_modules/moment/locale/sk.js",58752],"./sk.js":["../node_modules/moment/locale/sk.js",58752],"./sl":["../node_modules/moment/locale/sl.js",77060],"./sl.js":["../node_modules/moment/locale/sl.js",77060],"./sq":["../node_modules/moment/locale/sq.js",27819],"./sq.js":["../node_modules/moment/locale/sq.js",27819],"./sr":["../node_modules/moment/locale/sr.js",94323],"./sr-cyrl":["../node_modules/moment/locale/sr-cyrl.js",42461],"./sr-cyrl.js":["../node_modules/moment/locale/sr-cyrl.js",42461],"./sr.js":["../node_modules/moment/locale/sr.js",94323],"./ss":["../node_modules/moment/locale/ss.js",27875],"./ss.js":["../node_modules/moment/locale/ss.js",27875],"./sv":["../node_modules/moment/locale/sv.js",28734],"./sv.js":["../node_modules/moment/locale/sv.js",28734],"./sw":["../node_modules/moment/locale/sw.js",42146],"./sw.js":["../node_modules/moment/locale/sw.js",42146],"./ta":["../node_modules/moment/locale/ta.js",32105],"./ta.js":["../node_modules/moment/locale/ta.js",32105],"./te":["../node_modules/moment/locale/te.js",49273],"./te.js":["../node_modules/moment/locale/te.js",49273],"./tet":["../node_modules/moment/locale/tet.js",71832],"./tet.js":["../node_modules/moment/locale/tet.js",71832],"./tg":["../node_modules/moment/locale/tg.js",65077],"./tg.js":["../node_modules/moment/locale/tg.js",65077],"./th":["../node_modules/moment/locale/th.js",60585],"./th.js":["../node_modules/moment/locale/th.js",60585],"./tk":["../node_modules/moment/locale/tk.js",30032],"./tk.js":["../node_modules/moment/locale/tk.js",30032],"./tl-ph":["../node_modules/moment/locale/tl-ph.js",74760],"./tl-ph.js":["../node_modules/moment/locale/tl-ph.js",74760],"./tlh":["../node_modules/moment/locale/tlh.js",53223],"./tlh.js":["../node_modules/moment/locale/tlh.js",53223],"./tr":["../node_modules/moment/locale/tr.js",2631],"./tr.js":["../node_modules/moment/locale/tr.js",2631],"./tzl":["../node_modules/moment/locale/tzl.js",64197],"./tzl.js":["../node_modules/moment/locale/tzl.js",64197],"./tzm":["../node_modules/moment/locale/tzm.js",88853],"./tzm-latn":["../node_modules/moment/locale/tzm-latn.js",26234],"./tzm-latn.js":["../node_modules/moment/locale/tzm-latn.js",26234],"./tzm.js":["../node_modules/moment/locale/tzm.js",88853],"./ug-cn":["../node_modules/moment/locale/ug-cn.js",25691],"./ug-cn.js":["../node_modules/moment/locale/ug-cn.js",25691],"./uk":["../node_modules/moment/locale/uk.js",89286],"./uk.js":["../node_modules/moment/locale/uk.js",89286],"./ur":["../node_modules/moment/locale/ur.js",28446],"./ur.js":["../node_modules/moment/locale/ur.js",28446],"./uz":["../node_modules/moment/locale/uz.js",21930],"./uz-latn":["../node_modules/moment/locale/uz-latn.js",64633],"./uz-latn.js":["../node_modules/moment/locale/uz-latn.js",64633],"./uz.js":["../node_modules/moment/locale/uz.js",21930],"./vi":["../node_modules/moment/locale/vi.js",97893],"./vi.js":["../node_modules/moment/locale/vi.js",97893],"./x-pseudo":["../node_modules/moment/locale/x-pseudo.js",64038],"./x-pseudo.js":["../node_modules/moment/locale/x-pseudo.js",64038],"./yo":["../node_modules/moment/locale/yo.js",93821],"./yo.js":["../node_modules/moment/locale/yo.js",93821],"./zh-cn":["../node_modules/moment/locale/zh-cn.js",53999],"./zh-cn.js":["../node_modules/moment/locale/zh-cn.js",53999],"./zh-hk":["../node_modules/moment/locale/zh-hk.js",84559],"./zh-hk.js":["../node_modules/moment/locale/zh-hk.js",84559],"./zh-mo":["../node_modules/moment/locale/zh-mo.js",33026],"./zh-mo.js":["../node_modules/moment/locale/zh-mo.js",33026],"./zh-tw":["../node_modules/moment/locale/zh-tw.js",69737],"./zh-tw.js":["../node_modules/moment/locale/zh-tw.js",69737]};function o(e){if(!s.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],o=t[0];return s.e(t[1]).then((()=>s.t(o,23)))}o.keys=()=>Object.keys(n),o.id="../node_modules/moment/locale lazy recursive ^\\.\\/.*$ include: \\.js$",e.exports=o},"../node_modules/react-query/devtools/index.js":e=>{e.exports={ReactQueryDevtools:function(){return null},ReactQueryDevtoolsPanel:function(){return null}}},"./boot/app.js":(e,t,s)=>{"use strict";s("./boot/polyfills.js");var n=s("../packages/accessible-focus/src/index.ts"),o=s("../packages/calypso-config/src/index.ts"),i=s("../packages/calypso-url/src/url-parts.ts"),a=s("../packages/i18n-utils/src/utils.ts"),r=s("../node_modules/debug/src/browser.js"),c=s.n(r),l=s("../node_modules/page/page.js"),d=s.n(l),u=s("../node_modules/react-dom/index.js"),m=s("../node_modules/react-modal/lib/index.js"),p=s.n(m),h=s("../node_modules/store/dist/store.modern.js"),g=s.n(h),f=s("../packages/i18n-calypso/src/index.js"),j=s("./lib/user/verification-checker.js"),y=s("./state/notices/actions.ts");function b(e,t){"1"===e.query.verified&&((0,j.X)(),setTimeout((()=>{const t=f.ZP.translate("Email confirmed!"),s=(0,y.RT)(t,{duration:1e4});e.store.dispatch(s)}),500)),t()}var _=s("./controller/index.web.js"),v=s("./lib/analytics/init.js"),w=s("./lib/analytics/mc.js"),k=s("./lib/analytics/super-props.js"),x=s("./lib/analytics/tracks.js"),Z=s("../node_modules/tracekit/tracekit.js"),S=s.n(Z),P=s("./lib/wp/browser.js");const E=c()("calypso:error-logger");class N{constructor(){this.diagnosticData={commit:COMMIT_SHA,extra:{previous_paths:[],throttled:0}},this.diagnosticReducers=[],this.lastReport=0,window.onerror||S().report.subscribe((e=>{const t={message:e.message,url:document.location.href};if(Array.isArray(e.stack)){const s=e.stack.slice(0,10);s.forEach((e=>Object.keys(e).forEach((t=>{"context"===t&&e[t]?e[t]=JSON.stringify(e[t]).substring(0,256):"string"==typeof e[t]&&e[t].length>512?e[t]=e[t].substring(0,512):Array.isArray(e[t])&&(e[t]=e[t].slice(0,3))})))),JSON.stringify(s).length<8192&&(t.trace=s)}const s=Date.now();this.lastReport+6e4<s?(this.lastReport=s,this.diagnose(),this.sendToApi(Object.assign(t,this.diagnosticData)),this.diagnosticData.extra.throttled=0):this.diagnosticData.extra.throttled++}))}saveNewPath(e){const t=this.diagnosticData.extra.previous_paths;t.unshift(e),this.diagnosticData.extra.previous_paths=t.slice(0,5),this.diagnosticData.calypso_path=e}saveDiagnosticReducer(e){this.diagnosticReducers.push(e)}saveDiagnosticData(e){"object"==typeof e.extra?this.saveExtraData(e):Object.assign(this.diagnosticData,e)}saveExtraData(e){Object.assign(this.diagnosticData.extra,e)}diagnose(){return this.diagnosticReducers.forEach((e=>{try{this.saveDiagnosticData(e())}catch(e){this.saveDiagnosticData({diagnosticError:e.message}),E("diagnostic: %o",this.diagnosticData)}})),this.diagnosticData}log(e,t){"object"==typeof t&&this.saveExtraData(t);try{S().report(new Error(e))}catch(e){}}sendToApi(e){const t=()=>{console.error("Error: Unable to record the error in Logstash.")};try{P.Z.req.post({path:"/js-error",apiNamespace:"rest/v1.1",body:{error:JSON.stringify(e)}},(e=>e&&t()))}catch{t()}}}var C=s("./lib/navigate/index.ts"),L=s("./lib/oauth-token/index.js"),I=s("./lib/paths/index.js"),O=s("./lib/route/path.ts"),R=s("./state/analytics/actions/record.js"),T=s("./state/current-user/actions.js"),M=s("./state/current-user/selectors.js"),z=s("./state/desktop/window-events.js"),q=s("./state/notifications-panel/actions/index.js"),$=s("./state/selectors/is-notifications-open.js"),D=s("./state/ui/actions/notifications.js");const A=c()("calypso:desktop"),B={init:function(e){A("Registering IPC listeners"),window.electron.receive("page-my-sites",this.onShowMySites.bind(this)),window.electron.receive("page-reader",this.onShowReader.bind(this)),window.electron.receive("page-profile",this.onShowProfile.bind(this)),window.electron.receive("new-post",this.onNewPost.bind(this)),window.electron.receive("signout",this.onSignout.bind(this)),window.electron.receive("toggle-notification-bar",this.onToggleNotifications.bind(this)),window.electron.receive("notifications-panel-show",this.onNotificationsPanelShow.bind(this)),window.electron.receive("notifications-panel-refresh",this.onNotificationsPanelRefresh.bind(this)),window.electron.receive("notification-clicked",this.onNotificationClicked.bind(this)),window.electron.receive("page-help",this.onShowHelp.bind(this)),window.electron.receive("navigate",this.onNavigate.bind(this)),window.electron.receive("request-user-login-status",this.sendUserLoginStatus),window.addEventListener(z.D,this.resetUnseenNotifications.bind(this)),this.store=e,this.sendUserLoginStatus()},selectedSite:null,navigate:function(e){this.onNotificationsPanelShow(null,!1),(0,C.c)(e)},toggleNotificationsPanel:function(){this.store.dispatch((0,D.P)())},setSelectedSite:function(e){this.selectedSite=e},resetUnseenNotifications:function(){A("Reseting unseen notification count"),window.electron.send("clear-notices-count")},onNotificationClicked:function(e){A(`Notification ${e.id} clicked`);const{id:t,type:s}=e;this.store.dispatch((0,R.jN)("calypso_web_push_notification_clicked"),{push_notification_note_id:t,push_notification_type:s})},onNotificationsPanelRefresh:function(){this.store.dispatch((0,q.k)(!0))},sendUserLoginStatus:function(){let e=!0;(0,M.Pc)(this.store.getState())||(e=!1),A("Sending logged-in = "+e),window.electron.send("user-login-status",e,{id:(0,M.rc)(this.store.getState())},L.LP())},onToggleNotifications:function(){A("Toggle notifications"),this.toggleNotificationsPanel()},onNotificationsPanelShow:function(e){const t=(0,$.Z)(this.store.getState());if(e){if(t)return;this.toggleNotificationsPanel()}else t&&this.toggleNotificationsPanel()},onSignout:function(){A("Signout"),this.store.dispatch((0,T.S9)())},onShowMySites:function(){A("Showing my sites");const e=this.selectedSite,t=e?e.slug:null;this.navigate((0,O.Zg)("day",t))},onShowReader:function(){A("Showing reader"),this.navigate("/read")},onShowProfile:function(){A("Showing my profile"),this.navigate("/me")},onNewPost:function(){A("New post"),this.navigate((0,I.fb)(this.selectedSite))},onShowHelp:function(){A("Showing help"),this.navigate("/help")},onNavigate:function(e){A("Navigating to URL: ",e),e&&this.navigate(e)}},U=B;var F=s("./lib/detect-history-navigation/index.js"),W=s("./lib/jetpack/is-jetpack-cloud.ts"),H=s("./lib/load-dev-helpers/index.js"),X=s("./lib/logmein/index.ts"),V=s("./lib/protect-form/index.tsx"),J=s("./lib/redux-bridge/index.js"),G=s("./lib/route/untrailingslashit.ts");const Q=(e,t)=>{const s=(0,G.Z)(e.pathname);var n,o;s!==e.pathname?d().redirect((n=s,o=e.querystring,n+(o?"?"+o:""))):t()};var Y=s("./lib/route/legacy-routes.ts");const K={dsn:"https://webcf.waybackmachine.org/web/20220607162747/https://61275d63a504465ab315245f1a379dab@o248881.ingest.sentry.io/6313676",sampleRate:1,denyUrls:[/^[a-z]+(-[a-z]+)?-extension:\/\//i]};let ee=[],te=[],se=[];let ne={state:"initial"};function oe(e,t){const{state:s}=ne;"loaded"!==s?"error"!==s&&"disabled"!==s&&ee.push({f:e,a:t}):ne.sentry[e](...t)}function ie(e){return"navigation"!==e.category||e.data?.should_capture?(e.data?.should_capture&&delete e.data.should_capture,e):null}async function ae({beforeSend:e,userId:t}){try{if("undefined"==typeof document||"initial"!==ne.state)return;if(ne={state:"loading"},!o.ZP.isEnabled("catch-js-errors")||"wpcalypso"!==(0,o.ZP)("env_id")&&1!==Math.floor(10*Math.random()))return void(ne={state:"disabled"});const n=e=>{te.push([e.message,e.filename,e.lineno,e.colno,e.error])},i=e=>{se.push("reason"in e?e.reason:"detail"in e&&"reason"in e.detail?e.detail.reason:e)};window.addEventListener("error",n),window.addEventListener("unhandledrejection",i);try{const a=await s.e(60812).then(s.bind(s,"../node_modules/@sentry/react/esm/index.js")),r=(0,o.ZP)("env_id"),c="production"===r||"horizon"===r?`calypso_${window.COMMIT_SHA}`:void 0;window.removeEventListener("error",n),window.removeEventListener("unhandledrejection",i),a.init({...K,initialScope:{user:{id:t?.toString()}},environment:r,release:c,beforeBreadcrumb:ie,beforeSend:e}),ne={state:"loaded",sentry:a}}catch(e){throw ne={state:"error"},window.removeEventListener("error",n),window.removeEventListener("unhandledrejection",i),e}!function(){for(const e of ee)ne.sentry[e.f](...e.a);if(window.onerror)for(const e of te)window.onerror(...e);if(window.onunhandledrejection)for(const e of se)window.onunhandledrejection(e)}()}catch(e){console.error(e)}finally{ee=[],te=[],se=[]}}var re=s("./lib/touch-detect/index.js"),ce=s("./lib/url/is-outside-calypso.ts"),le=s("./lib/url/support.js"),de=s("./lib/user/shared-utils/initialize-current-user.js"),ue=s("./lib/user/store.js"),me=s("./lib/user/support-user-interop.js"),pe=s("../packages/i18n-calypso/src/localize.js"),he=s("./components/empty-content/index.jsx"),ge=s("./state/ui/section/actions.js"),fe=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const je=c()("calypso:layout"),ye=()=>{},be=(0,pe.Z)((({translate:e})=>(0,fe.tZ)(he.Z,{illustration:"/calypso/images/illustrations/error.svg",title:e("We're sorry, but an unexpected error has occurred")})));function _e(){return"1"===new URLSearchParams(window.location.search).get("retry")}var ve=s("./lib/performance-tracking/index.web.ts"),we=s("./state/analytics/actions/bump-stat.js"),ke=s("./state/ui/layout-focus/actions.js");const xe=[{name:"root",paths:["/"],module:"calypso/root",group:"root",enableLoggedOut:!0,load:()=>s.e(57481).then(s.bind(s,"./root.js"))},{name:"sites",paths:["/sites"],module:"calypso/my-sites",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(10783)]).then(s.bind(s,"./my-sites/index.js"))},{name:"customize",paths:["/customize"],module:"calypso/my-sites/customize",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(49439),s.e(38773)]).then(s.bind(s,"./my-sites/customize/index.js"))},{name:"account",paths:["/me/account"],module:"calypso/me/account",group:"me",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(43400),s.e(28498),s.e(42160),s.e(14059),s.e(19299),s.e(7994),s.e(67699),s.e(34575),s.e(41957),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(52866),s.e(86984),s.e(88008),s.e(31809)]).then(s.bind(s,"./me/account/index.js"))},{name:"account-close",paths:["/me/account/close","/me/account/closed"],module:"calypso/me/account-close",group:"me",load:()=>Promise.all([s.e(90532),s.e(71539),s.e(43400),s.e(42160),s.e(14059),s.e(19299),s.e(90827),s.e(16869),s.e(18821),s.e(71755),s.e(52866),s.e(86984),s.e(88008),s.e(88598)]).then(s.bind(s,"./me/account-close/index.js"))},{name:"concierge",paths:["/me/concierge","/me/quickstart"],module:"calypso/me/concierge",group:"me",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(42160),s.e(96770),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(27373),s.e(86984),s.e(7092)]).then(s.bind(s,"./me/concierge/index.js"))},{name:"happychat",paths:["/me/chat"],module:"calypso/me/happychat",group:"me",load:()=>Promise.all([s.e(90532),s.e(71539),s.e(43400),s.e(42160),s.e(14059),s.e(19299),s.e(32201),s.e(16869),s.e(18821),s.e(71755),s.e(52866),s.e(86984),s.e(88008),s.e(36420),s.e(94066)]).then(s.bind(s,"./me/happychat/index.jsx"))},{name:"notification-settings",paths:["/me/notifications"],module:"calypso/me/notification-settings",group:"me",load:()=>Promise.all([s.e(90532),s.e(71539),s.e(53956),s.e(43400),s.e(42160),s.e(14059),s.e(19299),s.e(6399),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(76941),s.e(52866),s.e(10175),s.e(86984),s.e(88008),s.e(74784),s.e(38470)]).then(s.bind(s,"./me/notification-settings/index.js"))},{name:"privacy",paths:["/me/privacy"],module:"calypso/me/privacy",group:"me",load:()=>Promise.all([s.e(90532),s.e(71539),s.e(43400),s.e(42160),s.e(14059),s.e(19299),s.e(66918),s.e(16869),s.e(18821),s.e(71755),s.e(52866),s.e(86984),s.e(88008),s.e(77296)]).then(s.bind(s,"./me/privacy/index.js"))},{name:"purchases",paths:["/me/purchases","/me/billing","/payment-methods/add-credit-card"],module:"calypso/me/purchases",group:"me",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(9228),s.e(28498),s.e(42160),s.e(14059),s.e(19299),s.e(80168),s.e(77841),s.e(83825),s.e(53527),s.e(69522),s.e(59225),s.e(8843),s.e(16869),s.e(61702),s.e(96196),s.e(52866),s.e(86984),s.e(88008),s.e(6741),s.e(79929),s.e(36958),s.e(59335),s.e(35630),s.e(91040),s.e(65769),s.e(41809),s.e(80881)]).then(s.bind(s,"./me/purchases/index.js"))},{name:"security",paths:["/me/security"],module:"calypso/me/security",group:"me",load:()=>Promise.all([s.e(90532),s.e(71539),s.e(43400),s.e(9228),s.e(42160),s.e(14059),s.e(19299),s.e(53527),s.e(41957),s.e(61441),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(52866),s.e(10175),s.e(86984),s.e(88008),s.e(59493)]).then(s.bind(s,"./me/security/index.js"))},{name:"site-blocks",paths:["/me/site-blocks"],module:"calypso/me/site-blocks",group:"me",load:()=>Promise.all([s.e(90532),s.e(71539),s.e(43400),s.e(42160),s.e(14059),s.e(19299),s.e(29527),s.e(16869),s.e(18821),s.e(71755),s.e(52866),s.e(86984),s.e(88008),s.e(52212),s.e(74784),s.e(8005)]).then(s.bind(s,"./me/site-blocks/index.js"))},{name:"me",paths:["/me"],module:"calypso/me",group:"me",load:()=>Promise.all([s.e(90532),s.e(71539),s.e(43400),s.e(42160),s.e(14059),s.e(19299),s.e(28792),s.e(16869),s.e(18821),s.e(71755),s.e(52866),s.e(86984),s.e(88008),s.e(10351)]).then(s.bind(s,"./me/index.js"))},{name:"activity",paths:["/activity-log"],module:"calypso/my-sites/activity",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(31562),s.e(96759),s.e(35416),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(96196),s.e(27373),s.e(80980),s.e(50876),s.e(49769),s.e(21613),s.e(31471)]).then(s.bind(s,"./my-sites/activity/index.js"))},{name:"site-purchases",paths:["/purchases"],module:"calypso/my-sites/purchases",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(9228),s.e(28498),s.e(80168),s.e(77841),s.e(83825),s.e(53527),s.e(69522),s.e(59225),s.e(8843),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(61702),s.e(96196),s.e(6741),s.e(79929),s.e(36958),s.e(59335),s.e(35630),s.e(91040),s.e(65769),s.e(41809),s.e(84284)]).then(s.bind(s,"./my-sites/purchases/index.js"))},{name:"media",paths:["/media"],module:"calypso/my-sites/media",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(9228),s.e(28498),s.e(42160),s.e(14059),s.e(7994),s.e(31562),s.e(50842),s.e(55255),s.e(14953),s.e(58112),s.e(34925),s.e(16869),s.e(51306),s.e(18821),s.e(61702),s.e(10515),s.e(52866),s.e(15561),s.e(80980),s.e(45843),s.e(59976),s.e(33777),s.e(60632),s.e(61654)]).then(s.bind(s,"./my-sites/media/index.js"))},{name:"people",paths:["/people"],module:"calypso/my-sites/people",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(9228),s.e(84760),s.e(92781),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(64964),s.e(64210)]).then(s.bind(s,"./my-sites/people/index.js"))},{name:"plugins",paths:["/plugins"],module:"calypso/my-sites/plugins",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(84760),s.e(20344),s.e(94040),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(10515),s.e(50876),s.e(36425),s.e(92582),s.e(92529),s.e(75899),s.e(43414)]).then(s.bind(s,"./my-sites/plugins/index.js"))},{name:"marketplace",paths:["/marketplace"],module:"calypso/my-sites/marketplace",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(80168),s.e(77841),s.e(8427),s.e(47780),s.e(33791),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(10515),s.e(50876),s.e(87889),s.e(75899),s.e(99669)]).then(s.bind(s,"./my-sites/marketplace/index.js"))},{name:"pages",paths:["/pages"],module:"calypso/my-sites/pages",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(9228),s.e(84760),s.e(87914),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(10175),s.e(15561),s.e(79929),s.e(73107)]).then(s.bind(s,"./my-sites/pages/index.js"))},{name:"posts",paths:["/posts"],module:"calypso/my-sites/posts",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(9228),s.e(84760),s.e(79414),s.e(29017),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(15561),s.e(45241),s.e(29671),s.e(29753),s.e(66287)]).then(s.bind(s,"./my-sites/posts/index.js"))},{name:"settings-performance",paths:["/settings/performance"],module:"calypso/my-sites/site-settings/settings-performance",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(24889),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(10515),s.e(50876),s.e(36425),s.e(31066)]).then(s.bind(s,"./my-sites/site-settings/settings-performance/index.js"))},{name:"settings-writing",paths:["/settings/writing","/settings/taxonomies","/settings/podcasting"],module:"calypso/my-sites/site-settings/settings-writing",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(9228),s.e(14059),s.e(63593),s.e(99504),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(27373),s.e(33777),s.e(24806),s.e(76555)]).then(s.bind(s,"./my-sites/site-settings/settings-writing/index.js"))},{name:"settings-discussion",paths:["/settings/discussion"],module:"calypso/my-sites/site-settings/settings-discussion",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(10175),s.e(46652),s.e(73090),s.e(42926)]).then(s.bind(s,"./my-sites/site-settings/settings-discussion/index.js"))},{name:"settings-security",paths:["/settings/security"],module:"calypso/my-sites/site-settings/settings-security",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(10175),s.e(32077),s.e(30899)]).then(s.bind(s,"./my-sites/site-settings/settings-security/index.js"))},{name:"settings-jetpack",paths:["/settings/jetpack"],module:"calypso/my-sites/site-settings/settings-jetpack",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(10175),s.e(32077),s.e(7734),s.e(11634),s.e(46952)]).then(s.bind(s,"./my-sites/site-settings/settings-jetpack/index.js"))},{name:"settings",paths:["/settings"],module:"calypso/my-sites/site-settings",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(28498),s.e(14059),s.e(7994),s.e(66366),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(33777),s.e(64964),s.e(54081),s.e(35571)]).then(s.bind(s,"./my-sites/site-settings/index.js"))},{name:"marketing",paths:["/marketing","/sharing"],module:"calypso/my-sites/marketing",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(96196),s.e(50876),s.e(59976),s.e(89246),s.e(54081),s.e(69073)]).then(s.bind(s,"./my-sites/marketing/index.js"))},{name:"jetpack-connect",paths:["/jetpack"],module:"calypso/jetpack-connect",enableLoggedOut:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(23683),s.e(3881),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(96196),s.e(86239),s.e(18358),s.e(31766),s.e(63124),s.e(48852),s.e(84828),s.e(54204)]).then(s.bind(s,"./jetpack-connect/index.js"))},{name:"purchase-product",paths:["/purchase-product"],module:"calypso/my-sites/purchase-product",enableLoggedOut:!0,load:()=>Promise.all([s.e(60547),s.e(87203),s.e(61702),s.e(96196),s.e(84828),s.e(17413)]).then(s.bind(s,"./my-sites/purchase-product/index.js"))},{name:"signup",paths:["/start"],module:"calypso/signup",enableLoggedOut:!0,isomorphic:!0,load:()=>Promise.all([s.e(10404),s.e(87203),s.e(61702),s.e(16353),s.e(21546),s.e(63124),s.e(73067),s.e(51830)]).then(s.bind(s,"./signup/index.web.js"))},{name:"stats",paths:["/stats"],module:"calypso/my-sites/stats",group:"sites",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(24816),s.e(55649),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(60650),s.e(29671),s.e(15346),s.e(41015),s.e(36784)]).then(s.bind(s,"./my-sites/stats/index.js"))},{name:"google-my-business",paths:["/google-my-business"],module:"calypso/my-sites/google-my-business",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(44049),s.e(63122),s.e(61061),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(10175),s.e(60650),s.e(41015),s.e(81020)]).then(s.bind(s,"./my-sites/google-my-business/index.js"))},{name:"themes",paths:["/themes","/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/themes","/design"],module:"calypso/my-sites/themes",enableLoggedOut:!0,group:"sites",isomorphic:!0,title:"Themes",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(36330),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(10515),s.e(15561),s.e(79929),s.e(36425),s.e(84738),s.e(83767)]).then(s.bind(s,"./my-sites/themes/index.web.js"))},{name:"theme",paths:["/theme","/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/theme"],module:"calypso/my-sites/theme",enableLoggedOut:!0,group:"sites",isomorphic:!0,title:"Themes",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(36330),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(10175),s.e(15561),s.e(79929),s.e(68505)]).then(s.bind(s,"./my-sites/theme/index.web.js"))},{name:"domains",paths:["/domains"],module:"calypso/my-sites/domains",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(9228),s.e(28498),s.e(83825),s.e(3978),s.e(59225),s.e(85549),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(10515),s.e(96196),s.e(59335),s.e(35630),s.e(87174),s.e(92582),s.e(91040),s.e(45971),s.e(74656),s.e(40200),s.e(98275)]).then(s.bind(s,"./my-sites/domains/index.js"))},{name:"incoming-redirect",paths:["/incoming-redirect"],module:"calypso/incoming-redirect",enableLoggedOut:!0,load:()=>Promise.all([s.e(16353),s.e(89827)]).then(s.bind(s,"./incoming-redirect/index.js"))},{name:"email",paths:["/email"],module:"calypso/my-sites/email",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(29477),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(21546),s.e(59335),s.e(87889),s.e(45971),s.e(93041)]).then(s.bind(s,"./my-sites/email/index.js"))},{name:"inbox",paths:["/inbox"],module:"calypso/my-sites/email",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(29477),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(21546),s.e(59335),s.e(87889),s.e(45971),s.e(93041)]).then(s.bind(s,"./my-sites/email/index.js"))},{name:"checkout",paths:["/checkout"],module:"calypso/my-sites/checkout",group:"sites",enableLoggedOut:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(9228),s.e(19299),s.e(84760),s.e(80168),s.e(77841),s.e(53527),s.e(69522),s.e(3978),s.e(9589),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(61702),s.e(10515),s.e(96196),s.e(15561),s.e(6741),s.e(86239),s.e(79929),s.e(6348),s.e(36958),s.e(59335),s.e(69222),s.e(35630),s.e(87174),s.e(34206),s.e(87889),s.e(65769),s.e(40200),s.e(84738),s.e(74231)]).then(s.bind(s,"./my-sites/checkout/index.js"))},{name:"plans",paths:["/plans"],module:"calypso/my-sites/plans",group:"sites",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(67699),s.e(52458),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(10515),s.e(96196),s.e(50876),s.e(86239),s.e(31766),s.e(93751),s.e(31688),s.e(14751)]).then(s.bind(s,"./my-sites/plans/index.js"))},{name:"accept-invite",paths:["/accept-invite"],module:"calypso/my-sites/invites",enableLoggedOut:!0,load:()=>Promise.all([s.e(96514),s.e(87203),s.e(61702),s.e(21546),s.e(21735),s.e(63124),s.e(48852),s.e(73067),s.e(58247)]).then(s.bind(s,"./my-sites/invites/index.js"))},{name:"earn",paths:["/earn","/ads"],module:"calypso/my-sites/earn",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(9228),s.e(39163),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(10515),s.e(13358)]).then(s.bind(s,"./my-sites/earn/index.js"))},{name:"mailing-lists",paths:["/mailing-lists/unsubscribe"],module:"calypso/mailing-lists",enableLoggedOut:!0,group:"me",load:()=>s.e(77204).then(s.bind(s,"./mailing-lists/index.js"))},{name:"reader",paths:["/read"],module:"calypso/reader",group:"reader",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(79414),s.e(86596),s.e(27654),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(10175),s.e(52212),s.e(757),s.e(89267),s.e(74784),s.e(12842),s.e(42207)]).then(s.bind(s,"./reader/index.js"))},{name:"reader",paths:["/read/feeds/[^\\/]+","/read/blogs/[^\\/]+","/read/a8c","/read/p2","/recommendations"],module:"calypso/reader",group:"reader",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(79414),s.e(86596),s.e(27654),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(10175),s.e(52212),s.e(757),s.e(89267),s.e(74784),s.e(12842),s.e(42207)]).then(s.bind(s,"./reader/index.js"))},{name:"reader",paths:["/read/feeds/[^\\/]+/posts/[^\\/]+","/read/blogs/[^\\/]+/posts/[^\\/]+"],module:"calypso/reader/full-post",group:"reader",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(79414),s.e(86596),s.e(27654),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(10175),s.e(52212),s.e(757),s.e(89267),s.e(74784),s.e(12842),s.e(42207)]).then(s.bind(s,"./reader/full-post/index.js"))},{name:"reader",paths:["/discover"],module:"calypso/reader/discover",group:"reader",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(79414),s.e(86596),s.e(27654),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(10175),s.e(52212),s.e(757),s.e(89267),s.e(74784),s.e(12842),s.e(42207)]).then(s.bind(s,"./reader/discover/index.js"))},{name:"reader",paths:["/following"],module:"calypso/reader/following",group:"reader",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(79414),s.e(86596),s.e(27654),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(10175),s.e(52212),s.e(757),s.e(89267),s.e(74784),s.e(12842),s.e(42207)]).then(s.bind(s,"./reader/following/index.js"))},{name:"reader",paths:["/tags","/tag"],module:"calypso/reader/tag-stream",group:"reader",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(79414),s.e(86596),s.e(27654),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(10175),s.e(52212),s.e(757),s.e(89267),s.e(74784),s.e(12842),s.e(42207)]).then(s.bind(s,"./reader/tag-stream/index.js"))},{name:"reader",paths:["/activities"],module:"calypso/reader/liked-stream",group:"reader",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(79414),s.e(86596),s.e(27654),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(10175),s.e(52212),s.e(757),s.e(89267),s.e(74784),s.e(12842),s.e(42207)]).then(s.bind(s,"./reader/liked-stream/index.js"))},{name:"reader",paths:["/read/search","/recommendations"],module:"calypso/reader/search",group:"reader",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(79414),s.e(86596),s.e(27654),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(10175),s.e(52212),s.e(757),s.e(89267),s.e(74784),s.e(12842),s.e(42207)]).then(s.bind(s,"./reader/search/index.js"))},{name:"reader",paths:["/read/list"],module:"calypso/reader/list",group:"reader",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(79414),s.e(86596),s.e(27654),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(10175),s.e(52212),s.e(757),s.e(89267),s.e(74784),s.e(12842),s.e(42207)]).then(s.bind(s,"./reader/list/index.js"))},{name:"reader",paths:["/read/conversations"],module:"calypso/reader/conversations",group:"reader",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(79414),s.e(86596),s.e(27654),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(10175),s.e(52212),s.e(757),s.e(89267),s.e(74784),s.e(12842),s.e(42207)]).then(s.bind(s,"./reader/conversations/index.js"))},{name:"help",paths:["/help"],module:"calypso/me/help",enableLoggedOut:!0,group:"me",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(43400),s.e(42160),s.e(14059),s.e(19299),s.e(14890),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(52866),s.e(27373),s.e(86984),s.e(88008),s.e(12435),s.e(23039)]).then(s.bind(s,"./me/help/index.js"))},{name:"auth",paths:["/api/oauth/token"],module:"calypso/auth",enableLoggedOut:!0,load:()=>s.e(59818).then(s.bind(s,"./auth/index.js"))},{name:"posts-custom",paths:["/types"],module:"calypso/my-sites/types",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(9228),s.e(84760),s.e(79414),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(15561),s.e(45241),s.e(29671),s.e(29753),s.e(970)]).then(s.bind(s,"./my-sites/types/index.js"))},{name:"comments",paths:["/comments","/comment"],module:"calypso/my-sites/comments",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(84760),s.e(31562),s.e(50842),s.e(67699),s.e(34575),s.e(12443),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27373),s.e(89267),s.e(15346),s.e(58324)]).then(s.bind(s,"./my-sites/comments/index.js"))},{name:"preview",paths:["/view"],module:"calypso/my-sites/preview",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(15561),s.e(11493)]).then(s.bind(s,"./my-sites/preview/index.js"))},{name:"domain-connect-authorize",paths:["/domain-connect"],module:"calypso/my-sites/domains/domain-management/domain-connect",load:()=>s.e(10199).then(s.bind(s,"./my-sites/domains/domain-management/domain-connect/index.jsx"))},{name:"gutenberg-editor",paths:["/block-editor","/site-editor","/post","/page","/edit"],module:"calypso/gutenberg/editor",group:"gutenberg",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(80168),s.e(8427),s.e(33524),s.e(68675),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(15561),s.e(35374),s.e(20275),s.e(80489)]).then(s.bind(s,"./gutenberg/editor/index.js"))},{name:"import",paths:["/import"],module:"calypso/my-sites/importer",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(84760),s.e(69351),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(74784),s.e(46652),s.e(62624),s.e(67006)]).then(s.bind(s,"./my-sites/importer/index.js"))},{name:"export",paths:["/export"],module:"calypso/my-sites/exporter",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(46652),s.e(73090),s.e(67157)]).then(s.bind(s,"./my-sites/exporter/index.js"))},{name:"migrate",paths:["/migrate"],module:"calypso/my-sites/migrate",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(10515),s.e(78622),s.e(65061)]).then(s.bind(s,"./my-sites/migrate/index.js"))},{name:"devdocs",paths:["/devdocs"],module:"calypso/devdocs",enableLoggedOut:!0,load:()=>Promise.all([s.e(14953),s.e(51306),s.e(45573)]).then(s.bind(s,"./devdocs/index.js"))},{name:"home",paths:["/home"],module:"calypso/my-sites/customer-home",group:"sites",trackLoadPerformance:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(19299),s.e(24816),s.e(31737),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(10515),s.e(15561),s.e(27373),s.e(60650),s.e(12517),s.e(31688),s.e(35374),s.e(85177)]).then(s.bind(s,"./my-sites/customer-home/index.js"))},{name:"hosting",paths:["/hosting-config"],module:"calypso/my-sites/hosting",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(9228),s.e(5517),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(10515),s.e(36425),s.e(8746)]).then(s.bind(s,"./my-sites/hosting/index.js"))},{name:"backup",paths:["/backup"],module:"calypso/my-sites/backup",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(31562),s.e(96759),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(10515),s.e(96196),s.e(27373),s.e(49769),s.e(98726),s.e(21613),s.e(31703),s.e(85991)]).then(s.bind(s,"./my-sites/backup/index.js"))},{name:"scan",paths:["/scan"],module:"calypso/my-sites/scan",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(96759),s.e(84498),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(10515),s.e(96196),s.e(27373),s.e(32077),s.e(98726),s.e(31703),s.e(60853)]).then(s.bind(s,"./my-sites/scan/index.js"))},{name:"jetpack-cloud",paths:["/","/landing","/settings"],module:"calypso/jetpack-cloud",group:"jetpack-cloud",enableLoggedOut:!0,load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(21532)]).then(s.bind(s,"./jetpack-cloud/index.js"))},{name:"jetpack-cloud-agency-dashboard",paths:["/dashboard"],module:"calypso/jetpack-cloud/sections/agency-dashboard",group:"jetpack-cloud",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(31562),s.e(78423),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(83309),s.e(21546),s.e(49769),s.e(85135),s.e(28009),s.e(3283),s.e(19205)]).then(s.bind(s,"./jetpack-cloud/sections/agency-dashboard/index.ts"))},{name:"jetpack-cloud-settings",paths:["/settings"],module:"calypso/jetpack-cloud/sections/settings",group:"jetpack-cloud",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(32077),s.e(7734),s.e(11634),s.e(2595)]).then(s.bind(s,"./jetpack-cloud/sections/settings/index.js"))},{name:"jetpack-cloud-auth",paths:["/connect","/connect/oauth/token"],module:"calypso/jetpack-cloud/sections/auth",group:"jetpack-cloud",enableLoggedOut:!0,load:()=>s.e(48281).then(s.bind(s,"./jetpack-cloud/sections/auth/index.ts"))},{name:"jetpack-cloud-pricing",paths:["/pricing","/[^\\/]+/pricing","/plans","/[^\\/]+/plans"],module:"calypso/jetpack-cloud/sections/pricing",group:"jetpack-cloud",enableLoggedOut:!0,links:[{rel:"stylesheet",href:"https://webcf.waybackmachine.org/web/20220607162747/https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap"}],load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(43400),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(96196),s.e(86239),s.e(31766),s.e(44492)]).then(s.bind(s,"./jetpack-cloud/sections/pricing/index.ts"))},{name:"jetpack-search",paths:["/jetpack-search"],module:"calypso/my-sites/jetpack-search",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(61702),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(83309),s.e(96196),s.e(46652),s.e(98726),s.e(2944)]).then(s.bind(s,"./my-sites/jetpack-search/index.js"))},{name:"jetpack-cloud-partner-portal",paths:["/partner-portal"],module:"calypso/jetpack-cloud/sections/partner-portal",group:"jetpack-cloud",load:()=>Promise.all([s.e(90532),s.e(71539),s.e(43400),s.e(9228),s.e(84760),s.e(80168),s.e(77841),s.e(69522),s.e(67699),s.e(34575),s.e(2383),s.e(51306),s.e(87203),s.e(32915),s.e(61702),s.e(83309),s.e(10175),s.e(6741),s.e(28009),s.e(3283),s.e(44856)]).then(s.bind(s,"./jetpack-cloud/sections/partner-portal/index.ts"))},{name:"jetpack-cloud-agency-signup",paths:["/agency/signup"],module:"calypso/jetpack-cloud/sections/agency-signup",group:"jetpack-cloud",load:()=>Promise.all([s.e(32915),s.e(78893)]).then(s.bind(s,"./jetpack-cloud/sections/agency-signup/index.ts"))},{name:"jetpack-social",paths:["/jetpack-social"],module:"calypso/jetpack-cloud/sections/jetpack-social",group:"jetpack-cloud",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(59976),s.e(46652),s.e(89246),s.e(54880)]).then(s.bind(s,"./jetpack-cloud/sections/jetpack-social/index.js"))},{name:"woocommerce-installation",paths:["/woocommerce-installation"],module:"calypso/my-sites/woocommerce",group:"woocommerce-installation",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(87203),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(92582),s.e(37365),s.e(70850),s.e(71586)]).then(s.bind(s,"./my-sites/woocommerce/index.js"))},{name:"woocommerce",paths:["/store"],module:"calypso/my-sites/store",group:"sites",load:()=>Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(86339),s.e(53956),s.e(16869),s.e(51306),s.e(18821),s.e(71755),s.e(32915),s.e(4839),s.e(16353),s.e(76941),s.e(27363),s.e(99738)]).then(s.bind(s,"./my-sites/store/index.js"))}];var Ze=s("./sections-filter.js"),Se=s("./sections-helper.js");(0,Se.oq)(xe);const Pe={};function Ee(e,t){const{envId:s}=t;if(s&&!s.includes((0,o.ZP)("env_id")))return;const n=function(e){return"/"===e?e:new RegExp("^"+e+"(/.*)?$")}(e);t.enableLoggedOut||d()(n,_.S9),t.trackLoadPerformance&&d()(n,(0,ve.yD)(t.name)),d()(n,(async function(e,s){try{const n=Pe[t.module];if(n)!0!==n&&await n;else{const s=async function(e,t){e.store.dispatch((0,ge.t)(!0));const s=setTimeout((()=>{e.store.dispatch((0,we.P)("calypso_chunk_waiting",t.name))}),400);try{const n=await(0,Se.zD)(t.name,t.module);await n.default(_.Ly)}finally{e.store.dispatch((0,ge.t)(!1)),clearTimeout(s)}}(e,t);Pe[t.module]=s,await s,Pe[t.module]=!0}!function(e,t){_.QS(e)(t),t.store.dispatch((0,ke.zW)())}(t,e),s()}catch(s){delete Pe[t.module],console.error(s),_e()?function(e,t){je("Chunk %s could not be loaded",t),(0,w.P)("calypso_chunk_error",t),e.store.dispatch((0,ge.z)(!1,{section:!1})),e.primary=(0,fe.tZ)(be,{}),(0,_.wx)(e,ye),(0,_.sY)(e)}(e,t.name):function(e){if(!_e()){const t=new URLSearchParams(window.location.search);(0,w.P)("calypso_chunk_retry",e),t.set("retry","1"),window.location.search=t.toString()}}(t.name)}}))}var Ne=s("./state/index.js"),Ce=s("./state/happychat/connection/actions.js"),Le=s("../node_modules/lodash-es/get.js");s("./state/happychat/init.js");const Ie=e=>{const t=(e=>(0,Le.Z)(e,"happychat.chat.lastActivityTimestamp"))(e);return Date.now()-t<6e5};var Oe=s("./state/happychat/user/actions.js"),Re=s("./state/happychat/utils.js"),Te=s("./state/initial-state.js"),Me=s("./state/persisted-state.js"),ze=s("./state/push-notifications/actions.js"),qe=s("../node_modules/lodash-es/throttle.js"),$e=s("../node_modules/react-query/es/index.js"),De=s("../node_modules/react-query/es/core/logger.js");function Ae(){}var Be,Ue=(Be=function(e){var t=e.queryClient,s=e.persistor,n=e.maxAge,o=void 0===n?864e5:n,i=e.buster,a=void 0===i?"":i,r=e.hydrateOptions,c=e.dehydrateOptions;return function(e){var t=e();if(t&&t.then)return t.then(Ae)}((function(){if("undefined"!=typeof window){var e=function(){var e={buster:a,timestamp:Date.now(),clientState:(0,$e.dehydrate)(t,c)};s.persistClient(e)};return n=function(e,t){try{var s=e()}catch(e){return t(e)}return s&&s.then?s.then(void 0,t):s}((function(){return e=s.restoreClient(),n=function(e){if(e)if(e.timestamp){var n=Date.now()-e.timestamp>o,i=e.buster!==a;n||i?s.removeClient():(0,$e.hydrate)(t,e.clientState,r)}else s.removeClient()},i?n?n(e):e:(e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e);var e,n,i}),(function(e){(0,De.j)().error(e),(0,De.j)().warn("Encountered an error attempting to restore client cache from persisted location. As a precaution, the persisted cache will be discarded."),s.removeClient()})),i=function(){t.getQueryCache().subscribe(e)},n&&n.then?n.then(i):i(n)}var n,i}))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(Be.apply(this,e))}catch(e){return Promise.reject(e)}});const Fe=e=>{if("success"!==e.state.status)return!1;const t=e.meta?.persist;return"boolean"==typeof t?t:!(e=>"function"==typeof e)(t)||t(e.state.data)};var We=s("./state/reducer.js"),He=s("./state/redux-store.ts"),Xe=s("./state/route/actions.js"),Ve=s("./state/ui/selectors/get-selected-site-id.js"),Je=s("./state/ui/selectors/get-section-name.js"),Ge=s("./boot/locale.js");const Qe=c()("calypso");const Ye=()=>{if(o.ZP.isEnabled("oauth")){const e=["/start","/api/oauth/token","/connect"];(0,W.Z)()&&o.ZP.isEnabled("jetpack/pricing-page")&&(e.push("/pricing","/plans"),(0,a.aK)().forEach((t=>e.push(`/${t}/pricing`,`/${t}/plans`)))),d()("*",(function(t,s){const n=e.some((e=>t.path.startsWith(e)));!1!==(0,L.LP)()||n?s():window.location=function(){const e=new URL((0,W.Z)()?"/connect/oauth/token":"/api/oauth/token",window.location);e.search=new URLSearchParams({next:window.location.pathname+window.location.search}).toString();const t=new URL("https://webcf.waybackmachine.org/web/20220607162747/https://public-api.wordpress.com/oauth2/authorize");return t.search=new URLSearchParams({response_type:"token",client_id:(0,o.ZP)("oauth_client_id"),redirect_uri:e.toString(),scope:"global",blog_id:0}).toString(),t.toString()}()}))}};function Ke(e){if(ae({beforeSend:t=>{const s=e.getState();return t.tags||(t.tags={}),t.tags.blog_id=(0,Ve.Z)(s),t.tags.calypso_section=(0,Je.Z)(s),t},userId:(0,M.rc)(e.getState())}),!o.ZP.isEnabled("catch-js-errors"))return;const t=new N;let n;s("./lib/catch-js-errors/log.js").X(t),t.saveDiagnosticData({user_id:(0,M.rc)(e.getState()),calypso_env:(0,o.ZP)("env_id")}),t.saveDiagnosticReducer((function(){const t=e.getState();return{blog_id:(0,Ve.Z)(t),calypso_section:(0,Je.Z)(t)}})),x.tracksEvents.on("record-event",((e,s)=>t.saveExtraData({lastTracksEvent:s}))),d()("*",(function(e,s){const o=e.canonicalPath.replace((0,O.lQ)(e.canonicalPath),":siteId");!function(...e){oe("addBreadcrumb",e)}({category:"navigation",data:{from:n??o,to:o,should_capture:!0}}),n=o,t.saveNewPath(o),s()}))}const et=(e,t,s)=>{Qe("Executing Calypso setup middlewares."),((e,t)=>{d()("*",((s,n)=>{const o=(0,i.A)(s.canonicalPath),a=o.pathname+o.search||null;if(s.prevPath=a!==s.path&&a,s.query=Object.fromEntries(o.searchParams.entries()),s.hashstring=o.hash&&o.hash.substring(1)||"",s.hashstring)try{s.hash=Object.fromEntries(new globalThis.URLSearchParams(s.hashstring).entries())}catch(e){Qe("failed to query-string parse `location.hash`",e),s.hash={}}else s.hash={};s.store=e,s.queryClient=t,s.redirect=(e,t=null)=>(isNaN(e)&&!t&&(t=e),d().replace(t,s.state,!1,!1)),"/wp-login.php"!==s.pathname?(0,ce.Z)(s.pathname)?window.location.href=s.path:n():window.location.href=s.path})),d().exit("*",((s,n)=>{s.store=e,s.queryClient=t,n()}))})(t,s),Ye(),(()=>{for(const e of xe)if((0,Ze.Z)(e))for(const t of e.paths)Ee(t,e)})(),d()("*",((e,t)=>{e.store.dispatch((0,Xe.p)(e.pathname,e.query)),t()})),d().exit("*",V.bw),(0,v.M)(e||void 0,(0,k.Z)(t)),Ke(t),d()("*",(function(e,s){if(-1!==["sb","sp"].indexOf(e.querystring)){const s="sb"===e.querystring?"sidebar":"sites";t.dispatch((0,ke.SB)(s)),d().replace(e.pathname)}s()})),d()("*",(function(e,t){return(0,Y.K)(e.pathname)?t():Q(e,t)})),d()("*",(function(e,t){const s=e.pathname;if((0,Y.K)(s))return t();(0,w.P)({newdash_pageviews:"route"}),t()})),d()("*",(function(t,s){"/me/account"!==t.path&&e.phone_account&&d()("/me/account"),s()})),d()("*",b),window.location.pathname.startsWith("/start")||["signupProgress","signupDependencies"].forEach((e=>g().remove(e))),e||d()("*",(function(e,t){if("/plans"!==e.pathname)t();else{const t=e.query&&e.query.for;window.location=t&&"jetpack"===t?"https://webcf.waybackmachine.org/web/20220607162747/https://wordpress.com/wp-login.php?redirect_to=https%3A%2F%2Fwordpress.com%2Fplans":(0,W.Z)()?le.ml:"https://webcf.waybackmachine.org/web/20220607162747/https://wordpress.com/pricing"}}));const n=t.getState();o.ZP.isEnabled("happychat")&&t.dispatch((0,Oe._)()),Ie(n)&&t.dispatch((0,Ce.XY)((0,Re.S)(n)())),window.electron&&U.init(t),(0,H.Z)(t),o.ZP.isEnabled("logmein")&&(0,M.Pc)(t.getState())&&(0,X.cI)(t)};const tt=async(e,t)=>{!function(){if(!window.location.search)return;const e=new URLSearchParams(window.location.search).get("flags");if(!e)return;const t=e.split(",").find((e=>/^[+-]?oauth$/.test(e)));t&&window.sessionStorage.setItem("flags",t)}(),Qe("Executing Calypso utils."),(0,re._)()?document.documentElement.classList.add("touch"):document.documentElement.classList.add("notouch"),(0,n.Z)(),p().setAppElement(document.getElementById("wpcom")),await(0,Me.Gr)();const i=await async function(e){const t=new $e.QueryClient({defaultOptions:{queries:{cacheTime:Te.w_}}});if((0,Te.Eq)()){const s=`query-state-${e??"logged-out"}`,n={persistClient:(0,qe.default)((e=>(0,Me.cD)(s,e)),Te.yq,{leading:!1,trailing:!0}),restoreClient:()=>(0,Me._v)(s),removeClient:()=>{}};await Ue({queryClient:t,persistor:n,maxAge:Te.w_,dehydrateOptions:{shouldDehydrateQuery:Fe}})}return t}(e?.ID),a=(0,Te.aY)(We.Z,e?.ID),r=(0,Ne.E)(a,We.Z);(0,He.P)(r,(0,Te.eC)(e?.ID)),(0,ue.x$)((0,Te.oY)(r,e?.ID)),(0,Ge.w)(e,r),((e,t)=>{Qe("Executing Calypso configure Redux store."),e&&t.dispatch((0,T.lx)(e)),o.ZP.isEnabled("network-connection")&&s.e(46503).then(s.bind(s,"./lib/network-connection/index.js")).then((function(e){e.default.init(t)})),(0,me.setSupportSessionReduxStore)(t),(0,J.e)(t),e&&o.ZP.isEnabled("push-notifications")&&t.dispatch((0,ze.S1)())})(e,r),et(e,r,i),F.Z.start(),t&&t(),document.getElementById("primary")||function(e,t){u.render((0,fe.tZ)(_.o0,{store:e,queryClient:t}),document.getElementById("wpcom"))}(r,i),d().start({decodeURLComponents:!1})};window.AppBoot=()=>{(async(e,t)=>{const s=await(0,de.k)();Qe(`Starting ${e}. Let's do this.`),await tt(s,t)})("Calypso")}},"./components/data/query-site-features/index.jsx":(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var n=s("../node_modules/prop-types/index.js"),o=s.n(n),i=s("../node_modules/react/index.js"),a=s("../node_modules/react-redux/es/index.js"),r=s("./state/selectors/is-requesting-site-features.js"),c=s("./state/sites/features/actions.js");const l=e=>(e.sort(),e.join("_"));function d({siteIds:e}){const t=(0,a.I0)();return(0,i.useEffect)((()=>{e.forEach((e=>t((e=>(t,s)=>{e&&!(0,r.Z)(s(),e)&&t((0,c.i)(e))})(e))))}),[t,l(e)]),null}d.propTypes={siteIds:o().arrayOf(o().number)}},"./components/pulsing-dot/index.jsx":(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s("../node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=s("../node_modules/classnames/index.js"),i=s.n(o),a=s("../node_modules/react/index.js"),r=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");class c extends a.Component{constructor(...e){super(...e),(0,n.Z)(this,"timeout",null),(0,n.Z)(this,"state",{show:!1})}componentDidMount(){const{delay:e}=this.props;this.timeout=setTimeout((()=>{this.setState({show:!0})}),e)}componentWillUnmount(){this.timeout&&clearTimeout(this.timeout)}render(){const{active:e}=this.props,{show:t}=this.state;if(!t)return null;const s=i()("pulsing-dot",{"is-active":e});return(0,r.tZ)("div",{className:s})}}c.defaultProps={delay:0};const l=c},"./controller/index.web.js":(e,t,s)=>{"use strict";s.d(t,{o0:()=>Ft,Ly:()=>Xt,wx:()=>Wt,v6:()=>Gt,S9:()=>Vt,cY:()=>Jt,sY:()=>Ut.s,qR:()=>Bt.qR,QS:()=>Bt.QS});var n=s("../packages/calypso-config/src/index.ts"),o=s("../packages/i18n-utils/src/utils.ts"),i=s("../packages/i18n-calypso/src/index.js"),a=s("../node_modules/page/page.js"),r=s.n(a),c=s("../node_modules/react-query/es/index.js"),l=s("../node_modules/react-redux/es/index.js"),d=s("./components/calypso-i18n-provider/index.tsx"),u=s("./components/empty-content/index.jsx"),m=s("../node_modules/@babel/runtime/helpers/esm/defineProperty.js"),p=s("../node_modules/debug/src/browser.js"),h=s.n(p),g=s("../node_modules/moment/moment.js"),f=s.n(g),j=s("../node_modules/react/index.js"),y=s("./state/selectors/get-current-locale-slug.js"),b=s("./components/localized-moment/context.js"),_=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const v=h()("calypso:localized-moment");class w extends j.Component{constructor(...e){super(...e),(0,m.Z)(this,"state",{moment:f(),momentLocale:f().locale()})}async checkAndLoad(e){const{currentLocale:t}=this.props;if(t!==e){if("en"===t)this.loadingLocalePromise=Promise.resolve();else{v("Loading moment locale for %s",t);try{this.loadingLocalePromise=s("../node_modules/moment/locale lazy recursive ^\\.\\/.*$ include: \\.js$")(`./${t}`),await this.loadingLocalePromise}catch(e){return void v("Failed to load moment locale for %s",t,e)}v("Loaded moment locale for %s",t)}t===this.props.currentLocale&&(f().locale()!==t&&f().locale(t),this.setState({momentLocale:t}))}}componentDidMount(){this.checkAndLoad(f().locale())}componentDidUpdate(e){this.checkAndLoad(e.currentLocale)}render(){return(0,_.tZ)(b.Z.Provider,{value:this.state,children:this.props.children})}}const k=(0,l.$j)((e=>({currentLocale:(0,y.Z)(e)})))(w);var x=s("./components/route/index.js"),Z=s("../packages/viewport/src/index.ts"),S=s("../packages/viewport-react/src/index.js"),P=s("../node_modules/classnames/index.js"),E=s.n(P),N=s("./components/async-load/index.jsx"),C=s("./components/data/document-head/index.jsx"),L=s("./components/data/query-preferences/index.jsx"),I=s("./components/data/query-site-features/index.jsx"),O=s("../node_modules/prop-types/index.js"),R=s.n(O),T=s("./state/selected-editor/actions.js");function M({siteId:e}){const t=(0,l.I0)();return(0,j.useEffect)((()=>{e&&t((0,T.o)(e))}),[t,e]),null}M.propTypes={siteId:R().number};var z=s("./components/data/query-sites/index.jsx"),q=s("../packages/i18n-calypso/src/use-translate.js"),$=s("./components/jetpack-logo/index.jsx"),D=s("./components/gravatar/index.jsx"),A=s("./lib/jetpack/use-track-callback.ts"),B=s("./state/current-user/actions.js"),U=s("./state/current-user/selectors.js");const F=()=>{const e=(0,l.I0)(),t=(0,q.Z)(),s=j.useRef(null),[n,o]=(0,j.useState)(!1),i=(0,l.v9)(U.ts),a=(0,j.useCallback)((()=>o(!n)),[n,o]),r=(0,j.useCallback)((()=>{n&&o(!1)}),[n,o]),c=(0,A.Z)(a,"calypso_jetpack_masterbar_profile_toggle"),d=(0,A.Z)(r,"calypso_jetpack_masterbar_profile_close"),u=(0,j.useCallback)((()=>e((0,B.S9)())),[e]),m=(0,A.Z)(u,"calypso_jetpack_settings_masterbar_logout");return function(e,t){const s=(0,j.useCallback)((e=>{"Escape"===e.key&&t()}),[t]),n=(0,j.useCallback)((({target:s})=>{e.current&&!e.current.contains(s)&&t()}),[e,t]);(0,j.useEffect)((()=>(document.addEventListener("keydown",s),document.addEventListener("click",n),()=>{document.removeEventListener("keydown",s),document.removeEventListener("click",n)})),[n,s])}(s,d),(0,_.BX)("nav",{className:"profile-dropdown__nav",id:"user-navigation","aria-label":t("User menu",{comment:"Label used to differentiate navigation landmarks in screen readers"}),ref:s,children:[(0,_.tZ)("button",{className:"profile-dropdown__button","aria-expanded":n,"aria-controls":"menu-list",onClick:c,children:(0,_.tZ)(D.Z,{className:"profile-dropdown__button-gravatar",user:i,alt:t("My Profile",{textOnly:!0}),size:24})}),(0,_.BX)("ul",{className:"profile-dropdown__list",id:"menu-list",hidden:!n,children:[(0,_.BX)("li",{className:"profile-dropdown__list-item",children:[(0,_.tZ)("span",{className:"profile-dropdown__display-name",children:i.display_name}),(0,_.tZ)("span",{className:"profile-dropdown__username",children:`@${i.username}`})]}),(0,_.tZ)("li",{className:"profile-dropdown__list-item",children:(0,_.tZ)("button",{className:"profile-dropdown__logout",onClick:m,children:t("Log out")})})]})]})};var W=s("./layout/masterbar/masterbar.jsx"),H=s("./state/document-head/selectors/get-document-head-title.js"),X=s("./state/selectors/get-current-route.js"),V=function(e){Promise.all([s.e(51306),s.e(32915),s.e(10175),s.e(45948)]).then(s.bind(s,"./components/jetpack/portal-nav/index.tsx")).then((function(t){e(t.default)}))};const J=()=>{const e=(0,q.Z)(),t=(0,l.v9)(H.p),s=(0,l.v9)(X.Z),n=(0,S.Gc)("<660px"),o=/^\/(?:backup|scan)\/[^/]*$/.test(s);return(0,_.BX)(W.Z,{className:"is-jetpack-cloud-masterbar",children:[(0,_.tZ)("a",{className:"masterbar__item-home",href:"/",title:e("Jetpack Cloud Dashboard",{comment:"Jetpack Cloud top navigation bar item"}),children:(0,_.tZ)($.Z,{size:28,full:!n||o,aria:{hidden:!0}})}),(0,_.tZ)(N.Z,{require:V,placeholder:null}),t&&(0,_.tZ)("h1",{className:"masterbar__item-title",children:t}),(0,_.tZ)(F,{})]})};var G=s("./jetpack-connect/persistence-utils.js"),Q=s("./jetpack-connect/woo-dna-config.js"),Y=s("./state/ui/selectors/get-section-name.js"),K=s("./state/ui/selectors/get-selected-site-id.js");const ee=e=>!(!(0,K.Z)(e)||"gutenberg-editor"!==(0,Y.Z)(e)),te=()=>{const e=(0,l.v9)(ee);return(0,j.useEffect)((()=>{const t=document.querySelector("html");if(t)return e?(t.classList.add("is-iframe"),()=>t.classList.remove("is-iframe")):void t.classList.remove("is-iframe")}),[e]),null},se=()=>(0,_.tZ)("header",{id:"header",className:"masterbar"});var ne=s("../packages/components/src/popover/index.jsx"),oe=s("../packages/components/src/button/index.tsx"),ie=s("../packages/i18n-calypso/src/localize.js"),ae=s("../node_modules/qs/lib/index.js"),re=s("./lib/route/path.ts"),ce=s("./lib/wp/browser.js"),le=s("./my-sites/domains/paths.js"),de=s("./sections-helper.js"),ue=s("./state/analytics/actions/record.js"),me=s("./state/preferences/actions.js"),pe=s("./state/preferences/selectors.js"),he=s("./state/selectors/get-previous-route.js"),ge=s("./state/selectors/get-primary-site-id.js"),fe=s("./state/selectors/get-site-migration-status.js"),je=s("./state/selectors/is-domain-only-site.js"),ye=s("./state/selectors/is-notifications-open.js"),be=s("./state/selectors/is-site-automated-transfer.js"),_e=s("./state/selectors/is-site-migration-active-route.js"),ve=s("./state/selectors/is-site-migration-in-progress.js"),we=s("./state/sites/actions.js"),ke=s("./state/sites/selectors/get-site-slug.js"),xe=s("./state/sites/selectors/is-jetpack-site.js"),Ze=s("./state/sites/selectors/can-current-user-use-customer-home.js"),Se=s("./state/support/selectors.js"),Pe=s("./state/ui/layout-focus/actions.js"),Ee=s("./state/ui/layout-focus/selectors.js"),Ne=s("./state/ui/selectors/get-section-group.js"),Ce=s("./layout/masterbar/item.tsx");const Le=({children:e,open:t,onClose:s})=>{const n=window.location.pathname,[o,i]=(0,j.useState)(n);return(0,j.useEffect)((()=>{t&&i(n)}),[t,n]),(0,j.useEffect)((()=>{t&&n!==o&&s()}),[t,s,o,n]),t?(0,_.tZ)("div",{className:"masterbar__mobile-menu-backdrop","aria-hidden":"true",onClick:e=>{e.target===e.currentTarget&&s()},children:(0,_.tZ)("div",{className:"masterbar__mobile-menu-inner",children:e})}):null};var Ie=s("../node_modules/store/dist/store.modern.js"),Oe=s.n(Ie);s("./components/translatable/proptype.js"),s("./state/notifications/init.js");const Re=(Te=U.ts,e=>{const t=(e=>void 0===e.notificationsUnseenCount?null:e.notificationsUnseenCount)(e);if(null!==t)return t>0;const s=Te(e);return null!==s?!!s.has_unseen_notes:null});var Te,Me=s("./state/ui/actions/notifications.js");const ze=({newItems:e,active:t})=>(0,_.BX)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,_.tZ)("defs",{children:(0,_.tZ)("circle",{id:"bubble",cx:"20",cy:"4",r:"4"})}),(0,_.BX)("g",{children:[(0,_.tZ)("path",{fill:"var( --color-masterbar-text )",d:"M9.9,20h4c0,0.5-0.2,1-0.6,1.4   c-0.8,0.8-2,0.8-2.8,0C10.1,21,9.9,20.5,9.9,20z M20,17.5v1H4v-1l0.9-0.7C5.5,16.3,6,15.5,6,15l0-5.5c0-3.3,2.7-6,6-6   c3.3,0,6,2.7,6,6V15c0,0.5,0.5,1.4,1.1,1.8L20,17.5z"}),e&&(0,_.BX)("g",{className:"notifications-bell-icon__bubble",children:[(0,_.tZ)("use",{className:"border",xlinkHref:"#bubble",transform:"scale( 1.5 )",fill:t?"var( --color-masterbar-item-active-background )":"var( --color-masterbar-background )"}),(0,_.tZ)("use",{xlinkHref:"#bubble",fill:"var( --color-masterbar-unread-dot-background )"})]})]})]});var qe=function(e){Promise.all([s.e(37803),s.e(52850)]).then(s.bind(s,"./notifications/index.jsx")).then((function(t){e(t.default)}))};class $e extends j.Component{constructor(...e){super(...e),(0,m.Z)(this,"notificationLink",(0,j.createRef)()),(0,m.Z)(this,"notificationPanel",(0,j.createRef)()),(0,m.Z)(this,"state",{animationState:0,newNote:this.props.hasUnseenNotifications}),(0,m.Z)(this,"checkToggleNotes",((e,t)=>{const s=!!e&&e.target;s&&(this.notificationLink.current.contains(s)||this.notificationPanel.current.contains(s))||(this.props.isNotificationsOpen||!0===t)&&this.toggleNotesFrame(e)})),(0,m.Z)(this,"toggleNotesFrame",(e=>{e&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()),this.props.toggleNotificationsPanel()})),(0,m.Z)(this,"setNotesIndicator",(e=>{const t=Oe().get("wpnotes_unseen_count");let s=this.state.animationState;0===e?s=0:e>t&&(s=1-Math.abs(this.state.animationState)),Oe().set("wpnotes_unseen_count",e),this.setState({newNote:e>0,animationState:s})}))}componentDidUpdate(e){!e.isNotificationsOpen&&this.props.isNotificationsOpen&&(this.props.recordTracksEvent("calypso_notification_open",{unread_notifications:Oe().get("wpnotes_unseen_count")}),this.setNotesIndicator(0)),e.isNotificationsOpen&&!this.props.isNotificationsOpen&&(this.notificationLink.current.blur(),this.notificationPanel.current.blur(),window.focus())}render(){const e=E()(this.props.className,"masterbar-notifications",{"is-active":this.props.isNotificationsOpen,"has-unread":this.state.newNote,"is-initial-load":-1===this.state.animationState});return(0,_.BX)(_.HY,{children:[(0,_.tZ)(Ce.Z,{url:"/notifications",icon:(0,_.tZ)(ze,{newItems:this.state.newNote,active:this.props.isActive}),onClick:this.toggleNotesFrame,isActive:this.props.isActive,tooltip:this.props.tooltip,className:e,ref:this.notificationLink},this.state.animationState),(0,_.tZ)("div",{className:"masterbar-notifications__panel",ref:this.notificationPanel,children:(0,_.tZ)(N.Z,{require:qe,isShowing:this.props.isNotificationsOpen,checkToggle:this.checkToggleNotes,setIndicator:this.setNotesIndicator,placeholder:null})})]})}}const De={toggleNotificationsPanel:Me.P,recordTracksEvent:ue.jN},Ae=(0,l.$j)((e=>({isNotificationsOpen:(0,ye.Z)(e),hasUnseenNotifications:Re(e)})),De)($e),Be=new Date(2022,3,14).getTime(),Ue="dismissible-card-masterbar-collapsable-menu-popover",Fe="<480px",We="<782px";var He=function(e){Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(43400),s.e(28498),s.e(80168),s.e(77841),s.e(12818),s.e(23683),s.e(49923),s.e(79258),s.e(20138),s.e(16869),s.e(51306),s.e(87203),s.e(61702),s.e(52212),s.e(21546),s.e(757),s.e(6348),s.e(12517),s.e(1802),s.e(70826)]).then(s.bind(s,"./layout/masterbar/checkout.tsx")).then((function(t){e(t.default)}))},Xe=function(e){Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(28498),s.e(7994),s.e(90278),s.e(7407)]).then(s.bind(s,"./layout/masterbar/quick-language-switcher.jsx")).then((function(t){e(t.default)}))},Ve=function(e){s.e(31338).then(s.bind(s,"./layout/masterbar/plan-upsell.jsx")).then((function(t){e(t.default)}))},Je=function(e){Promise.all([s.e(4557),s.e(16869),s.e(15561),s.e(84020)]).then(s.bind(s,"./layout/masterbar/publish.jsx")).then((function(t){e(t.default)}))},Ge=function(e){Promise.all([s.e(87203),s.e(61702),s.e(21546),s.e(6348),s.e(69222),s.e(93564)]).then(s.bind(s,"./layout/masterbar/masterbar-cart/masterbar-cart-wrapper.tsx")).then((function(t){e(t.default)}))},Qe=function(e){Promise.all([s.e(51306),s.e(56514)]).then(s.bind(s,"./layout/popup-search/index.js")).then((function(t){e(t.default)}))},Ye=function(e){s.e(90513).then(s.bind(s,"./layout/masterbar/masterbar-help-center.jsx")).then((function(t){e(t.default)}))};class Ke extends j.Component{constructor(...e){super(...e),(0,m.Z)(this,"state",{isActionSearchVisible:!1,isMenuOpen:!1,isMobile:(0,Z.kV)(Fe),isResponsiveMenu:(0,Z.kV)(We),menuBtnRef:null}),(0,m.Z)(this,"handleLayoutFocus",(e=>{e!==this.props.section?this.props.setNextLayoutFocus("sidebar"):"sidebar"===this.props.currentLayoutFocus?this.props.setNextLayoutFocus("content"):this.props.setNextLayoutFocus("sidebar")})),(0,m.Z)(this,"clickMySites",(()=>{this.props.recordTracksEvent("calypso_masterbar_my_sites_clicked"),this.handleLayoutFocus("sites"),this.props.activateNextLayoutFocus();const{migrationStatus:e,currentSelectedSiteId:t}=this.props;t&&"error"===e&&(this.props.updateSiteMigrationMeta(t,"inactive",null),ce.Z.req.post({path:`/sites/${t}/reset-migration`,apiNamespace:"wpcom/v2"}).catch((()=>{})))})),(0,m.Z)(this,"clickReader",(()=>{this.props.recordTracksEvent("calypso_masterbar_reader_clicked"),this.handleLayoutFocus("reader")})),(0,m.Z)(this,"clickMe",(()=>{this.props.recordTracksEvent("calypso_masterbar_me_clicked"),window.scrollTo(0,0),this.handleLayoutFocus("me")})),(0,m.Z)(this,"clickSearchActions",(()=>{this.props.recordTracksEvent("calypso_masterbar_search_actions_clicked"),this.handleLayoutFocus("search-actions"),this.setState({isActionSearchVisible:!0})})),(0,m.Z)(this,"onSearchActionsClose",(()=>{this.setState({isActionSearchVisible:!1})})),(0,m.Z)(this,"preloadMySites",(()=>{(0,de.MA)(this.props.domainOnlySite?"domains":"stats")})),(0,m.Z)(this,"preloadReader",(()=>{(0,de.MA)("reader")})),(0,m.Z)(this,"preloadMe",(()=>{(0,de.MA)("me")})),(0,m.Z)(this,"goToCheckout",(e=>{this.props.recordTracksEvent("calypso_masterbar_cart_go_to_checkout"),r()(`/checkout/${e}`)})),(0,m.Z)(this,"onRemoveCartProduct",((e="coupon")=>{this.props.recordTracksEvent("calypso_masterbar_cart_remove_product",{uuid:e})})),(0,m.Z)(this,"isActive",(e=>e===this.props.section&&!this.props.isNotificationsShowing)),(0,m.Z)(this,"wordpressIcon",(()=>"horizon.wordpress.com"===(0,n.ZP)("hostname")?"my-sites-horizon":"my-sites")),(0,m.Z)(this,"handleToggleMenu",(()=>{this.setState((e=>({isMenuOpen:!e.isMenuOpen})))})),(0,m.Z)(this,"dismissPopover",(()=>{this.props.savePreference(Ue,!0)}))}subscribeToViewPortChanges(){this.unsubscribeToViewPortChanges=(0,Z.Sp)(Fe,(e=>this.setState({isMobile:e}))),this.unsubscribeResponsiveMenuViewPortChanges=(0,Z.Sp)(We,(e=>this.setState({isResponsiveMenu:e})))}componentDidMount(){"true"===(0,ae.parse)(document.location.search.replace(/^\?/,""))?.openSidebar&&this.props.setNextLayoutFocus("sidebar"),this.actionSearchShortCutListener=()=>{event.ctrlKey&&event.shiftKey&&"F"===event.key&&this.clickSearchActions()},document.addEventListener("keydown",this.actionSearchShortCutListener),this.subscribeToViewPortChanges()}componentWillUnmount(){document.removeEventListener("keydown",this.actionSearchShortCutListener),this.unsubscribeToViewPortChanges?.(),this.unsubscribeResponsiveMenuViewPortChanges?.()}renderMySites(){const{domainOnlySite:e,hasMoreThanOneSite:t,siteSlug:s,translate:n,isCustomerHomeEnabled:o,section:i}=this.props,{isMenuOpen:a,isResponsiveMenu:r}=this.state,c=o?`/home/${s}`:(0,re.Zg)("day",s);let l=e?(0,le.Hf)(s):c;"sites"===i&&r&&(l="");const d=this.state.isMobile&&this.props.isInEditor?"chevron-left":this.wordpressIcon();return(0,_.tZ)(Ce.Z,{url:l,tipTarget:"my-sites",icon:d,onClick:this.clickMySites,isActive:this.isActive("sites")&&!a,tooltip:n("View a list of your sites and access their dashboards"),preloadSection:this.preloadMySites,children:n(t?"My Sites":"My Site",{comment:"Toolbar, must be shorter than ~12 chars"})})}renderCheckout(){const{isCheckoutPending:e,previousPath:t,siteSlug:s,isJetpackNotAtomic:n,title:o}=this.props;return(0,_.tZ)(N.Z,{require:He,placeholder:null,title:o,isJetpackNotAtomic:n,previousPath:t,siteSlug:s,isLeavingAllowed:!e})}renderReader(){const{translate:e}=this.props;return(0,_.tZ)(Ce.Z,{tipTarget:"reader",className:"masterbar__reader",url:"/read",icon:"reader",onClick:this.clickReader,isActive:this.isActive("reader"),tooltip:e("Read the blogs and topics you follow"),preloadSection:this.preloadReader,children:e("Reader",{comment:"Toolbar, must be shorter than ~12 chars"})})}renderLanguageSwitcher(){return this.props.isSupportSession||n.ZP.isEnabled("quick-language-switcher")?(0,_.tZ)(N.Z,{require:Xe,placeholder:null}):null}renderSearch(){const{translate:e,isWordPressActionSearchFeatureEnabled:t}=this.props;return t?(0,_.tZ)(Ce.Z,{tipTarget:"Action Search",icon:"search",onClick:this.clickSearchActions,isActive:!1,className:"masterbar__item-action-search",tooltip:e("Search"),preloadSection:this.preloadMe,children:e("Search Actions")}):null}renderPlanUpsell(){const{domainOnlySite:e,translate:t,isMigrationInProgress:s}=this.props;return e||s?null:(0,_.tZ)(N.Z,{require:Ve,className:"masterbar__item-upsell button is-primary",tooltip:t("Upgrade your plan"),children:t("Upgrade")})}renderPublish(){const{domainOnlySite:e,translate:t,isMigrationInProgress:s}=this.props;return e||s?null:(0,_.tZ)(N.Z,{require:Je,placeholder:null,isActive:this.isActive("post"),className:"masterbar__item-new",tooltip:t("Create a New Post"),children:t("Write")})}renderCart(){const{currentSelectedSiteSlug:e,currentSelectedSiteId:t,sectionGroup:s}=this.props;return"sites"!==s?null:(0,_.tZ)(N.Z,{require:Ge,placeholder:null,goToCheckout:this.goToCheckout,onRemoveProduct:this.onRemoveCartProduct,onRemoveCoupon:this.onRemoveCartProduct,selectedSiteSlug:e,selectedSiteId:t})}renderMe(){const{isMobile:e}=this.state,{translate:t,user:s}=this.props;return(0,_.BX)(Ce.Z,{tipTarget:"me",url:"/me",icon:e?null:"user-circle",onClick:this.clickMe,isActive:this.isActive("me"),className:"masterbar__item-me",tooltip:t("Update your profile, personal settings, and more"),preloadSection:this.preloadMe,children:[(0,_.tZ)(D.Z,{className:"masterbar__item-me-gravatar",user:s,alt:t("My Profile"),size:18}),(0,_.tZ)("span",{className:"masterbar__item-me-label",children:t("My Profile",{context:"Toolbar, must be shorter than ~12 chars"})})]})}renderNotifications(){const{translate:e}=this.props;return(0,_.tZ)(Ae,{isShowing:this.props.isNotificationsShowing,isActive:this.isActive("notifications"),className:"masterbar__item-notifications",tooltip:e("Manage your notifications"),children:(0,_.tZ)("span",{className:"masterbar__item-notifications-label",children:e("Notifications",{comment:"Toolbar, must be shorter than ~12 chars"})})})}renderMenu(){const{menuBtnRef:e}=this.state,{translate:t,hasDismissedThePopover:s,isFetchingPrefs:n,isUserNewerThanNewNavigation:o}=this.props;return(0,_.BX)(_.HY,{children:[(0,_.tZ)(Ce.Z,{tipTarget:"Menu",icon:"menu",onClick:this.handleToggleMenu,isActive:this.state.isMenuOpen,className:"masterbar__item-menu",tooltip:t("Menu"),ref:t=>t!==e&&this.setState({menuBtnRef:t})}),(0,_.BX)(Le,{onClose:this.handleToggleMenu,open:this.state.isMenuOpen,children:[this.renderPublish(),this.renderReader(),this.renderMe()]}),e&&(0,_.tZ)(ne.Z,{className:"masterbar__new-menu-popover",isVisible:!n&&!s&&!o,context:e,onClose:this.dismissPopover,position:"bottom left",showDelay:500,children:(0,_.BX)("div",{className:"masterbar__new-menu-popover-inner",children:[(0,_.tZ)("h1",{children:t("👆 New top navigation",{comment:"This is a popover title under the masterbar"})}),(0,_.tZ)("p",{children:t("We changed the navigation for a cleaner experience.")}),(0,_.tZ)("div",{className:"masterbar__new-menu-popover-actions",children:(0,_.tZ)(oe.Z,{onClick:this.dismissPopover,children:t("Got it",{comment:"Got it, as in OK"})})})]})})]})}renderPopupSearch(){const e=n.ZP.isEnabled("wordpress-action-search"),{isActionSearchVisible:t}=this.state;return e&&t?(0,_.tZ)(N.Z,{require:Qe,placeholder:null,onClose:this.onSearchActionsClose}):null}renderHelpCenter(){const{currentSelectedSiteId:e}=this.props;return(0,_.tZ)(N.Z,{require:Ye,siteId:e,placeholder:null})}render(){const{isCheckout:e,isCheckoutPending:t}=this.props,{isMobile:s}=this.state;if(e||t)return this.renderCheckout();if(s){const e=n.ZP.isEnabled("editor/help-center");return this.props.isInEditor&&e?(0,_.BX)(W.Z,{children:[(0,_.tZ)("div",{className:"masterbar__section masterbar__section--left",children:this.renderMySites()}),(0,_.tZ)("div",{className:"masterbar__section masterbar__section--right",children:this.renderHelpCenter()})]}):(0,_.BX)(_.HY,{children:[this.renderPopupSearch(),(0,_.BX)(W.Z,{children:[(0,_.BX)("div",{className:"masterbar__section masterbar__section--left",children:[this.renderMySites(),this.renderLanguageSwitcher(),this.renderSearch()]}),(0,_.BX)("div",{className:"masterbar__section masterbar__section--right",children:[this.renderCart(),this.renderNotifications(),this.renderMenu()]})]})]})}return(0,_.BX)(_.HY,{children:[this.renderPopupSearch(),(0,_.BX)(W.Z,{children:[(0,_.BX)("div",{className:"masterbar__section masterbar__section--left",children:[this.renderMySites(),this.renderReader(),this.renderLanguageSwitcher(),this.renderSearch()]}),(0,_.BX)("div",{className:"masterbar__section masterbar__section--center",children:[this.renderPlanUpsell(),this.renderPublish()]}),(0,_.BX)("div",{className:"masterbar__section masterbar__section--right",children:[this.renderCart(),this.renderMe(),this.renderNotifications()]})]})]})}}const et=(0,l.$j)((e=>{const t=(0,Ne.Z)(e),s=(0,K.Z)(e),n=s||(0,ge.Z)(e),o=(0,ve.Z)(e,s)||(0,_e.Z)(e);return{isCustomerHomeEnabled:(0,Ze.Z)(e,n),isNotificationsShowing:(0,ye.Z)(e),siteSlug:(0,ke.Z)(e,n),sectionGroup:t,domainOnlySite:(0,je.Z)(e,n),hasMoreThanOneSite:(0,U.bo)(e)>1,user:(0,U.ts)(e),isSupportSession:(0,Se.o)(e),isInEditor:"gutenberg-editor"===(0,Y.Z)(e),isMigrationInProgress:o,migrationStatus:(0,fe.Z)(e,s),currentSelectedSiteId:s,currentSelectedSiteSlug:s?(0,ke.Z)(e,s):void 0,previousPath:(0,he.Z)(e),isJetpackNotAtomic:(0,xe.Z)(e,n)&&!(0,be.Z)(e,n),currentLayoutFocus:(0,Ee.d)(e),hasDismissedThePopover:(0,pe.Oz)(e,Ue),isFetchingPrefs:(0,pe.rf)(e),isUserNewerThanNewNavigation:new Date((0,U.DI)(e)).getTime()>Be}}),{setNextLayoutFocus:Pe.SB,recordTracksEvent:ue.jN,updateSiteMigrationMeta:we.Fj,activateNextLayoutFocus:Pe.zW,savePreference:me.zZ})((0,ie.Z)(Ke)),tt=()=>(0,_.BX)("span",{className:"offline-status",children:[(0,_.tZ)("svg",{className:"gridicon",height:18,width:18,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_.tZ)("g",{children:(0,_.tZ)("path",{d:"M12.736 3.184L7.834 12.57l5.106.035-2.592 7.904 7.265-10.502-5.65.083.773-6.906z"})})}),"Offline"]});var st=s("./lib/jetpack/is-jetpack-cloud.ts"),nt=s("./lib/mobile-app/index.js"),ot=s("./lib/oauth2-clients.js"),it=s("./lib/user/verification-checker.js");s("./state/application/init.js");function at(e){return"OFFLINE"===e.application.connectionState}var rt=s("./state/happychat/selectors/has-active-happychat-session.js"),ct=s("./state/happychat/selectors/is-happychat-open.js"),lt=s("./state/oauth2-clients/ui/selectors.js"),dt=s("./state/ui/selectors/masterbar-is-visible.js"),ut=s("./state/ui/selectors/sidebar-visibility.js"),mt=s("./layout/body-section-css-class.js"),pt=s("./components/pulsing-dot/index.jsx"),ht=s("./state/ui/selectors/is-section-loading.js");function gt(){const e=(0,l.v9)(ht.Z);return(0,_.tZ)("div",{className:E()("layout__loader",{"is-active":e}),children:e&&(0,_.tZ)(pt.Z,{delay:400,active:!0})})}let ft=0,jt=0,yt=!0,bt=!1,_t=!1;const vt=e=>{if(_t)return;const t=window.innerHeight,s=document.getElementById("content"),n=s?.scrollHeight,o=document.getElementById("secondary"),i=o?.scrollHeight,a=document.getElementById("header")?.getBoundingClientRect().height;s&&n&&a&&i&&(n<i&&(s.style.minHeight=i+a+"px"),t>=i+a&&s&&o&&("initial"!==s.style.minHeight||o.style.position)&&(s.style.minHeight="initial",o.removeAttribute("style"))),o&&void 0!==i&&void 0!==a&&(i+a>t||"resize"===e.type)&&(window.requestAnimationFrame((function(){const e=i+a-t,s=-document.body.getBoundingClientRect().top;return s<0?(yt||(yt=!0,bt=!1,o.style.position="fixed",o.style.top="0",o.style.bottom="0"),void(_t=!1)):s+t>document.body.scrollHeight-1?(bt||(bt=!0,yt=!1,o.style.position="fixed",o.style.top="inherit",o.style.bottom="0"),void(_t=!1)):(s>=ft?yt?(yt=!1,jt=a,s>e&&(jt+=s),o.style.position="absolute",o.style.top=`${jt}px`,o.style.bottom="inherit"):!bt&&s+a>e+o.offsetTop&&(bt=!0,o.style.position="fixed",o.style.top="inherit",o.style.bottom="0"):s<ft&&(bt?(bt=!1,jt=Math.max(0,s+a-e),n===i+a&&(jt=a),o.style.position="absolute",o.style.top=`${jt}px`,o.style.bottom="inherit"):!yt&&s+a<jt&&(yt=!0,jt=a,o.style.position="fixed",o.style.top=`${jt}px`,o.style.bottom="inherit")),ft=s,void(_t=!1))})),_t=!0)};function wt(){const e=!(0,S.Gc)("<660px")&&!n.ZP.isEnabled("jetpack-cloud");return(0,j.useEffect)((()=>(e&&(window.addEventListener("scroll",vt),window.addEventListener("resize",vt)),()=>{e&&(window.removeEventListener("scroll",vt),window.removeEventListener("resize",vt),document.getElementById("content")?.removeAttribute("style"),document.getElementById("secondary")?.removeAttribute("style"))})),[e]),null}function kt({layoutFocus:e}){const t=e=>{const t=document.querySelector("body").classList;e?t.add("is-sidebar-overflow"):t.remove("is-sidebar-overflow")};return(0,j.useEffect)((()=>{"sites"!==e?setTimeout((()=>{t(!0)}),500):t(!1)}),[e]),null}var xt=function(e){s.e(40139).then(s.bind(s,"./layout/guided-tours/index.js")).then((function(t){e(t.default)}))},Zt=function(e){s.e(24799).then(s.bind(s,"./jetpack-cloud/style.tsx")).then((function(t){e(t.default)}))},St=function(e){s.e(33743).then(s.bind(s,"./blocks/jitm/index.jsx")).then((function(t){e(t.default)}))},Pt=function(e){s.e(39675).then(s.bind(s,"./components/global-notices/index.jsx")).then((function(t){e(t.default)}))},Et=function(e){s.e(47577).then(s.bind(s,"./layout/community-translator/index.jsx")).then((function(t){e(t.default)}))},Nt=function(e){Promise.all([s.e(36420),s.e(23573)]).then(s.bind(s,"./components/happychat/index.jsx")).then((function(t){e(t.default)}))},Ct=function(e){s.e(55400).then(s.bind(s,"./blocks/inline-help/index.jsx")).then((function(t){e(t.default)}))},Lt=function(e){s.e(28945).then(s.bind(s,"./components/happychat/button.jsx")).then((function(t){e(t.default)}))},It=function(e){s.e(26561).then(s.bind(s,"./blocks/support-article-dialog/index.jsx")).then((function(t){e(t.default)}))},Ot=function(e){Promise.all([s.e(20275),s.e(3765)]).then(s.bind(s,"./blocks/app-banner/index.jsx")).then((function(t){e(t.default)}))},Rt=function(e){Promise.resolve().then(s.bind(s,"./blocks/gdpr-banner/index.jsx")).then((function(t){e(t.default)}))},Tt=function(e){s.e(45149).then(s.bind(s,"./blocks/legal-updates-banner/index.js")).then((function(t){e(t.default)}))};class Mt extends j.Component{componentDidMount(){n.ZP.isEnabled("me/account/color-scheme-picker")&&"undefined"!=typeof document&&this.props.colorSchemePreference&&document.querySelector("body").classList.add(`is-${this.props.colorSchemePreference}`)}componentDidUpdate(e){if(n.ZP.isEnabled("me/account/color-scheme-picker")&&e.colorSchemePreference!==this.props.colorSchemePreference&&"undefined"!=typeof document){const t=document.querySelector("body").classList;t.remove(`is-${e.colorSchemePreference}`),t.add(`is-${this.props.colorSchemePreference}`)}}shouldShowHappyChatButton(){if(!n.ZP.isEnabled("happychat"))return!1;if((0,nt.H)())return!1;if(!this.props.hasActiveHappyChat)return!1;return!["happychat","devdocs"].includes(this.props.sectionName)&&!["/log-in/jetpack"].includes(this.props.currentRoute)&&!["/start/p2"].some((e=>this.props.currentRoute.startsWith(e)))}shouldLoadInlineHelp(){if(!n.ZP.isEnabled("inline-help"))return!1;if((0,nt.H)())return!1;return!["jetpack-connect","happychat","devdocs","help","home"].includes(this.props.sectionName)&&!["/log-in/jetpack"].includes(this.props.currentRoute)&&!["/start/p2","/start/setup-site","/plugins/domain","/plugins/marketplace/setup"].some((e=>this.props.currentRoute.startsWith(e)))}renderMasterbar(){if(this.props.masterbarIsHidden)return(0,_.tZ)(se,{});const e=n.ZP.isEnabled("jetpack-cloud")?J:et;return(0,_.tZ)(e,{section:this.props.sectionGroup,isCheckout:"checkout"===this.props.sectionName,isCheckoutPending:"checkout-pending"===this.props.sectionName})}render(){const e=E()("layout",`focus-${this.props.currentLayoutFocus}`,{["is-group-"+this.props.sectionGroup]:this.props.sectionGroup,["is-section-"+this.props.sectionName]:this.props.sectionName,"is-support-session":this.props.isSupportSession,"has-no-sidebar":this.props.sidebarIsHidden,"has-docked-chat":this.props.chatIsOpen&&this.props.chatIsDocked,"has-no-masterbar":this.props.masterbarIsHidden,"is-jetpack-login":this.props.isJetpackLogin,"is-jetpack-site":this.props.isJetpack,"is-jetpack-mobile-flow":this.props.isJetpackMobileFlow,"is-jetpack-woocommerce-flow":this.props.isJetpackWooCommerceFlow,"is-jetpack-woo-dna-flow":this.props.isJetpackWooDnaFlow,"is-wccom-oauth-flow":(0,ot.dS)(this.props.oauth2Client)&&this.props.wccomFrom}),t=this.shouldLoadInlineHelp();return(0,_.BX)("div",{className:e,children:[(0,_.tZ)(wt,{}),(0,_.tZ)(kt,{layoutFocus:this.props.currentLayoutFocus}),(0,_.tZ)(mt.Z,{group:this.props.sectionGroup,section:this.props.sectionName,...(()=>{const e=["font-smoothing-antialiased"];return this.props.sidebarIsCollapsed&&(0,Z.kV)(">800px")&&e.push("is-sidebar-collapsed"),{bodyClass:e}})()}),(0,_.tZ)(te,{}),(0,_.tZ)(C.Z,{}),(0,_.tZ)(z.Z,{primaryAndRecent:!n.ZP.isEnabled("jetpack-cloud")}),this.props.shouldQueryAllSites&&(0,_.tZ)(z.Z,{allSites:!0}),(0,_.tZ)(L.Z,{}),(0,_.tZ)(I.Z,{siteIds:[this.props.siteId]}),n.ZP.isEnabled("layout/query-selected-editor")&&(0,_.tZ)(M,{siteId:this.props.siteId}),(0,_.tZ)(it.Z,{}),n.ZP.isEnabled("layout/guided-tours")&&(0,_.tZ)(N.Z,{require:xt,placeholder:null}),this.renderMasterbar(),(0,_.tZ)(gt,{}),(0,st.Z)()&&(0,_.tZ)(N.Z,{require:Zt,placeholder:null}),this.props.isOffline&&(0,_.tZ)(tt,{}),(0,_.BX)("div",{id:"content",className:"layout__content",children:[n.ZP.isEnabled("jitms")&&this.props.isEligibleForJITM&&(0,_.tZ)(N.Z,{require:St,placeholder:null,messagePath:`calypso:${this.props.sectionJitmPath}:admin_notices`}),(0,_.tZ)(N.Z,{require:Pt,placeholder:null,id:"notices"}),(0,_.tZ)("div",{id:"secondary",className:"layout__secondary",role:"navigation",children:this.props.secondary}),(0,_.tZ)("div",{id:"primary",className:"layout__primary",children:this.props.primary})]}),(0,_.tZ)(N.Z,{require:Et,placeholder:null}),n.ZP.isEnabled("happychat")&&this.props.chatIsOpen&&(0,_.tZ)(N.Z,{require:Nt}),!1,t&&(0,_.tZ)(N.Z,{require:Ct,placeholder:null}),this.shouldShowHappyChatButton()&&(0,_.tZ)(N.Z,{require:Lt,placeholder:null,allowMobileRedirect:!0,borderless:!1,floating:!0,withOffset:t}),n.ZP.isEnabled("layout/support-article-dialog")&&(0,_.tZ)(N.Z,{require:It,placeholder:null}),n.ZP.isEnabled("layout/app-banner")&&(0,_.tZ)(N.Z,{require:Ot,placeholder:null}),n.ZP.isEnabled("gdpr-banner")&&(0,_.tZ)(N.Z,{require:Rt,placeholder:null}),n.ZP.isEnabled("legal-updates-banner")&&(0,_.tZ)(N.Z,{require:Tt,placeholder:null})]})}}const zt=(0,x.CA)((0,l.$j)(((e,{currentSection:t,currentRoute:s,currentQuery:n,secondary:o})=>{const i=t?.group??null,a=t?.name??null,r=(0,K.Z)(e),c=(0,re.cu)(s),l=s.startsWith("/log-in/jetpack"),d=(0,xe.Z)(e,r)&&!(0,be.Z)(e,r)||s.startsWith("/checkout/jetpack"),u=l||"/me/account/closed"===s,m=["signup","jetpack-connect"].includes(a),p=!(0,dt.Z)(e)||m||u||(0,nt.H)()||(0,nt.T)(),h="jetpack-connect"===a&&!!(0,G.h8)(),g=["jetpack-connect","login"].includes(a)&&"woocommerce-onboarding"===n?.from,f=["jetpack-connect","login"].includes(a)&&(0,Q.Z)(n).isWooDnaFlow(),j=(0,lt.op)(e),y=n?.["wccom-from"],b=["home","stats","plans","themes","plugins","comments"].includes(a),_=!o||(0,nt.T)(),v=!["reader","theme"].includes(a)&&!_;return{masterbarIsHidden:p,sidebarIsHidden:_,isJetpack:d,isJetpackLogin:l,isJetpackWooCommerceFlow:g,isJetpackWooDnaFlow:f,isJetpackMobileFlow:h,isEligibleForJITM:b,oauth2Client:j,wccomFrom:y,isSupportSession:(0,Se.o)(e),sectionGroup:i,sectionName:a,sectionJitmPath:c,isOffline:at(e),currentLayoutFocus:(0,Ee.d)(e),chatIsOpen:(0,ct.Z)(e),chatIsDocked:v,hasActiveHappyChat:(0,rt.Z)(e),colorSchemePreference:(0,pe.Oz)(e,"colorScheme"),siteId:r,shouldQueryAllSites:s&&"/jetpack/connect/authorize"!==s,sidebarIsCollapsed:(0,ut.Z)(e)}}))(Mt));var qt=s("./layout/logged-out.jsx"),$t=s("./lib/paths/index.js"),Dt=s("./lib/react-query-devtools-helper/index.jsx"),At=s("./state/immediate-login/selectors.js"),Bt=s("./controller/shared.js"),Ut=s("./controller/web-util.js");const Ft=({store:e,queryClient:t,currentSection:s,currentRoute:n,currentQuery:o,primary:i,secondary:a,redirectUri:r})=>{const u=e.getState(),m=(0,U.Pc)(u)?(0,_.tZ)(zt,{primary:i,secondary:a}):(0,_.tZ)(qt.Z,{primary:i,secondary:a,redirectUri:r});return(0,_.tZ)(d.Z,{children:(0,_.tZ)(x.nY,{currentSection:s,currentRoute:n,currentQuery:o,children:(0,_.BX)(c.QueryClientProvider,{client:t,children:[(0,_.tZ)(l.zt,{store:e,children:(0,_.tZ)(k,{children:m})}),(0,_.tZ)(Dt.CalypsoReactQueryDevtools,{})]})})})},Wt=(0,Bt.n6)(Ft);function Ht(e){(!n.ZP.isEnabled("wpcom-user-bootstrap")&&(0,U.Pc)(e.store.getState())?Ut.s:Ut.Z)(e)}function Xt(e,...t){r()(e,...t,Ht)}function Vt(e,t){const s=e.store.getState();if(!(0,U.Pc)(s)){const t=e.params.site||(0,re.lQ)(e.path),n={redirectTo:e.path,site:t},o=(0,At.Yh)(s);o&&(n.emailAddress=o);const i=(0,At.j4)(s);return i&&(n.locale=i),void(window.location=(0,$t.x4)(n))}t()}function Jt(e,t){const s=(0,o.aK)(),n=new RegExp(`\\/(${s.join("|")})(\\/|\\?|$)`),i=e.path.replace(n,"$2");if((0,U.Pc)(e.store.getState())&&i!==e.path)return r().redirect(i);t()}const Gt=(e,t)=>{e.primary=(0,_.tZ)(u.Z,{className:"content-404",illustration:"/calypso/images/illustrations/illustration-404.svg",title:(0,i.Iu)("Uh oh. Page not found."),line:(0,i.Iu)("Sorry, the page you were looking for doesn't exist or has been moved.")}),t()}},"./jetpack-connect/persistence-utils.js":(e,t,s)=>{"use strict";s.d(t,{R2:()=>r,WA:()=>c,fX:()=>l,En:()=>d,ms:()=>u,Rf:()=>m,_i:()=>p,NB:()=>h,h8:()=>g});var n=s("../node_modules/cookie/index.js"),o=s("./lib/url/http-utils.ts"),i=s("./state/jetpack-connect/constants.js");const a="jetpack_connect_selected_plan",r=e=>{window.sessionStorage.setItem(a,e)},c=()=>{window.sessionStorage.removeItem(a)},l=()=>window.sessionStorage.getItem(a),d=e=>{const t={maxAge:i.e4,path:"/"};document.cookie=n.serialize("jetpack_connect_session_url",(0,o.nq)(e),t)},u=e=>n.parse(document.cookie).jetpack_connect_session_url===(0,o.nq)(e),m=e=>{document.cookie=n.serialize("jetpack_sso_approved",e,{maxAge:300,path:"/"})},p=e=>{const t=n.parse(document.cookie);return e===parseInt(t.jetpack_sso_approved,10)},h=e=>{document.cookie=n.serialize("jetpack_connect_mobile_redirect",e,{path:"/"})},g=()=>n.parse(document.cookie).jetpack_connect_mobile_redirect},"./lib/catch-js-errors/log.js":(e,t,s)=>{"use strict";s.d(t,{X:()=>i});var n=s("../node_modules/debug/src/browser.js");s.n(n)()("calypso:catch-js-errors:log");let o=null;function i(e){o=e}},"./lib/jetpack/use-track-callback.ts":(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var n=s("../node_modules/react/index.js"),o=s("../node_modules/react-redux/es/index.js"),i=s("./state/analytics/actions/record.js"),a=s("./state/ui/selectors/get-selected-site-id.js");const r=()=>{},c=(e=r,t,s={})=>{const c=(0,o.I0)(),l=(0,o.v9)(a.Z);return(0,n.useCallback)(((...n)=>{c((0,i.jN)(t,{site_id:l,...s})),e(...n)}),[e,t,c,l])}},"./lib/logmein/index.ts":(e,t,s)=>{"use strict";s.d(t,{zJ:()=>c,cI:()=>l});var n=s("../packages/calypso-config/src/index.ts"),o=s("./state/current-user/selectors.js"),i=s("./state/selectors/get-sites-items.ts");const a="https://__domain__.invalid";let r;function c(e,t=""){if(!(0,n._k)("logmein"))return e;if(!r)return e;if(!(0,o.Pc)(r.getState()))return e;const s=new URL(String(e),a);if(s.origin===a)return e;return Object.values((0,i.Z)(r.getState())).some((e=>new URL(e.URL??"",a).host===s.host&&function(e){return Boolean(!e.is_vip&&!e.jetpack&&!e.options?.is_automated_transfer&&!e.options?.is_domain_only&&!e.options?.is_redirect&&!e.options?.is_wpcom_store&&e.options?.is_mapped_domain)}(e)))?(s.searchParams.set("logmein","direct"),t&&s.searchParams.set("redirect_to",t),s.toString()):e}function l(e){!function(e){r=e}(e),document.addEventListener("click",u,!1),document.addEventListener("auxclick",p,!1),document.addEventListener("contextmenu",m,!1)}const d={};function u(e){const t=e.target.closest("a");if(t&&t.href){const e=new URL(String(t.href),a).host;d[e]||(t.href=c(t.href),d[e]=!0)}}function m(e){const t=e.target.closest("a");t&&t.href&&(t.href=c(t.href))}function p(e){2!==e.button&&u(e)}},"./lib/navigate/index.ts":(e,t,s)=>{"use strict";s.d(t,{c:()=>a});var n=s("../node_modules/page/page.js"),o=s.n(n),i=s("./lib/logmein/index.ts");function a(e){!function(e){return new URL(e,window.location.href).origin===window.location.origin}(e)?window.location.href=(0,i.zJ)(e):o().show(e)}},"./lib/performance-tracking/index.web.ts":(e,t,s)=>{"use strict";s.d(t,{aO:()=>q,yD:()=>O,B_:()=>D,ZW:()=>A});var n=s("../node_modules/@babel/runtime/helpers/esm/defineProperty.js");let o=!1;const i=()=>{"hidden"===document.visibilityState&&(o=!0)},a=e=>("hidden"===document.visibilityState?o=!0:document.addEventListener("visibilitychange",i),e),r=e=>(document.removeEventListener("visibilitychange",i),e.data.set("hidden",o),e),c=e=>(e.data.set("memory",(()=>{const e=window?.navigator;return e?.deviceMemory})()),e),l=e=>(e.data.set("version",window?.COMMIT_SHA),e.data.set("target",window?.BUILD_TARGET),e.data.set("env",window?.configData?.env_id),e),d=e=>(e.data.set("network",window.navigator?.connection?.effectiveType),e),u=()=>window?.performance?.timing?.navigationStart,m=()=>window?.performance?.timing?.domContentLoadedEventStart,p=e=>(e.beginning=u(),e.data.set("fullPage",!0),e),h=(e,t)=>0===e?0:e-t,g=e=>(e.data.set("navigationStart",h(u(),e.beginning)),e.data.set("unloadEventStart",h(window?.performance?.timing?.unloadEventStart,e.beginning)),e.data.set("unloadEventEnd",h(window?.performance?.timing?.unloadEventEnd,e.beginning)),e.data.set("redirectStart",h(window?.performance?.timing?.redirectStart,e.beginning)),e.data.set("redirectEnd",h(window?.performance?.timing?.redirectEnd,e.beginning)),e.data.set("fetchStart",h(window?.performance?.timing?.fetchStart,e.beginning)),e.data.set("domainLookupStart",h(window?.performance?.timing?.domainLookupStart,e.beginning)),e.data.set("domainLookupEnd",h(window?.performance?.timing?.domainLookupEnd,e.beginning)),e.data.set("connectStart",h(window?.performance?.timing?.connectStart,e.beginning)),e.data.set("connectEnd",h(window?.performance?.timing?.connectEnd,e.beginning)),e.data.set("secureConnectionStart",h(window?.performance?.timing?.secureConnectionStart,e.beginning)),e.data.set("requestStart",h(window?.performance?.timing?.requestStart,e.beginning)),e.data.set("responseStart",h(window?.performance?.timing?.responseStart,e.beginning)),e.data.set("responseEnd",h(window?.performance?.timing?.responseEnd,e.beginning)),e.data.set("domLoading",h(window?.performance?.timing?.domLoading,e.beginning)),e.data.set("domInteractive",h(window?.performance?.timing?.domInteractive,e.beginning)),e.data.set("domContentLoadedEventStart",h(m(),e.beginning)),e.data.set("domContentLoadedEventEnd",h(window?.performance?.timing?.domContentLoadedEventEnd,e.beginning)),e.data.set("domComplete",h(window?.performance?.timing?.domComplete,e.beginning)),e.data.set("loadEventStart",h(window?.performance?.timing?.loadEventStart,e.beginning)),e.data.set("loadEventEnd",h(window?.performance?.timing?.loadEventEnd,e.beginning)),e),f=e=>{const t=m()-u();if(t<=0)return e;const s=(window?.performance?.getEntriesByType("resource")||[]).filter((e=>"script"===e.initiatorType&&e.responseEnd<=t&&e.decodedBodySize>0)),n=s.length,{start:o,end:i}=s.reduce((({start:e,end:t},s)=>({start:Math.min(e,s.requestStart),end:Math.max(t,s.responseEnd)})),{start:1/0,end:-1/0}),{resourcesCompressed:a,resourcesUncompressed:r,resourcesTransferred:c}=s.reduce(((e,t)=>({resourcesCompressed:e.resourcesCompressed+t.encodedBodySize,resourcesUncompressed:e.resourcesUncompressed+t.decodedBodySize,resourcesTransferred:e.resourcesTransferred+t.transferSize})),{resourcesCompressed:0,resourcesUncompressed:0,resourcesTransferred:0}),l=100-Math.round(100*Math.min(1,c/a));return e.data.set("resourcesCount",n),e.data.set("resourcesStart",Math.round(o)),e.data.set("resourcesEnd",Math.round(i)),e.data.set("resourcesCompressed",a),e.data.set("resourcesUncompressed",r),e.data.set("resourcesTransferred",c),e.data.set("resourcesCacheRatio",l),e},j=e=>(e.beginning=Date.now(),e.data.set("fullPage",!1),e);class y{static async fromNow(e,t=[]){const s=new y(e,!1);return await s.start(t),s}static async fromPageStart(e,t=[]){const s=new y(e,!0);return await s.start(t),s}constructor(e,t){(0,n.Z)(this,"id",void 0),(0,n.Z)(this,"beginning",void 0),(0,n.Z)(this,"end",void 0),(0,n.Z)(this,"data",new Map),(0,n.Z)(this,"startCollectors",void 0),(0,n.Z)(this,"stopCollectors",void 0),this.id=e;const s=[a],o=[c,l,r,d];t?(this.startCollectors=[p,...s],this.stopCollectors=[g,f,...o]):(this.startCollectors=[j,...s],this.stopCollectors=[...o])}async runCollectors(e){return Promise.all(e.map(((e,t)=>{try{return e(this)}catch(e){return console.warn(`Collector #${t} for report ${this.id} failed to run`,e),null}})))}async start(e=[]){return await this.runCollectors([...this.startCollectors,...e]),this}async stop(e=[]){this.end=Date.now(),await this.runCollectors([...this.stopCollectors,...e]);const t=Array.from(this.data.entries()).reduce(((e,[t,s])=>({...e,[t]:s})),{});return{id:this.id,duration:this.end-this.beginning,...t}}}var b=s("../packages/wpcom-proxy-request/src/index.js");const _=new Map,v=async(e,{collectors:t=[]}={})=>{const s=_.get(e);if(!s)return!1;_.delete(e);const n=await s;return(async e=>(0,b.ZP)({method:"POST",apiVersion:"1.1",path:"/logstash",body:{params:JSON.stringify({feature:"calypso_client",message:"perf.nav",properties:e})}}))(await n.stop(t))};var w=s("../packages/calypso-config/src/index.ts"),k=s("./state/current-user/selectors.js"),x=s("./state/selectors/is-site-wpcom-atomic.js"),Z=s("./state/sites/selectors/is-jetpack-site.js"),S=s("./state/sites/selectors/is-single-user-site.js"),P=s("./state/ui/selectors/get-selected-site-id.js");const E=e=>{const t=(0,P.Z)(e),s=(0,Z.Z)(e,t),n=(0,S.Z)(e,t),o=(0,x.Z)(e,t),i=(0,k.bo)(e),a=(0,k.f0)(e),r=(0,k.Yv)(e),c=(0,k.DV)(e),l=(0,k.Mg)(e),{count:d,total:u}=(()=>{const e=window.performance?.getEntriesByName?.("add_translations")||[];return{count:e.length,total:Math.round(e.reduce(((e,t)=>e+t.duration),0))}})();return window.performance?.clearMeasures?.("add_translations"),e=>{e.data.set("siteId",t),e.data.set("siteIsJetpack",s),e.data.set("siteIsSingleUser",n),e.data.set("siteIsAtomic",o),e.data.set("sitesCount",i),e.data.set("sitesVisibleCount",a),e.data.set("userCountryCode",r),e.data.set("userBootstrapped",c),e.data.set("userLocale",l),e.data.set("translationsChunksDuration",u),e.data.set("translationsChunksCount",d)}},N=(e={})=>t=>{Object.entries(e).forEach((([e,s])=>t.data.set(e,s)))},C=()=>w.ZP.isEnabled("rum-tracking/logstash"),L=(e,{fullPageLoad:t=!1}={})=>{C()&&(async(e,{fullPageLoad:t=!0,collectors:s=[]}={})=>{if(_.has(e))return;const n=t?y.fromPageStart(e,s):y.fromNow(e,s);_.set(e,n)})(e,{fullPageLoad:t})},I=(e,{state:t={},metadata:s={}}={})=>{C()&&v(e,{collectors:[E(t),N(s)]})},O=e=>(t,s)=>{L(e,{fullPageLoad:t.init??!1}),s()};var R=s("../node_modules/react/index.js"),T=s("../node_modules/react-redux/es/index.js"),M=s("./state/ui/selectors/get-section-name.js");var z=s("../node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js");const q=()=>(function(){const e=(0,T.v9)(M.Z),t=(0,T.oR)();(0,R.useLayoutEffect)((()=>{requestAnimationFrame((()=>{I(e,{state:t.getState()})}))}),[e,t])}(),null);var $=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const D=(0,z.Z)((e=>function(t){return(0,$.BX)($.HY,{children:[(0,$.tZ)(e,{...t}),(0,$.tZ)(q,{})]})}),"WithPerformanceTrackerStop"),A=(0,T.$j)(null,{stopPerformanceTracking:(e={})=>(t,s)=>{const n=s(),o=(0,M.Z)(n);I(o,{state:n,metadata:e})}})},"./lib/react-query-devtools-helper/index.jsx":(e,t,s)=>{"use strict";s.r(t),s.d(t,{CalypsoReactQueryDevtools:()=>d,default:()=>m});var n=s("../packages/calypso-config/src/index.ts"),o=s("../node_modules/react/index.js"),i=s("../node_modules/react-dom/index.js"),a=s("../node_modules/react-query/devtools/index.js"),r=s("./lib/browser-storage/index.ts"),c=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");function l(){const[e,t]=(0,o.useState)(!1);(0,o.useEffect)((()=>{(0,r.Wq)("enable-react-query-devtools").then((e=>t(e??!1)))}),[]);return[e,async e=>{await(0,r.EV)("enable-react-query-devtools",e),t(e)}]}function d(){const[e]=l();return n.ZP.isEnabled("dev/react-query-devtools")&&e?(0,c.tZ)(a.ReactQueryDevtools,{}):null}function u(){const[e,t]=l();return(0,c.BX)(c.HY,{children:[(0,c.tZ)("div",{children:"React Query"}),(0,c.tZ)("div",{className:"react-query-devtools-helper__popover",children:(0,c.BX)("label",{className:"react-query-devtools-helper__label",children:[(0,c.tZ)("input",{type:"checkbox",name:"react-query-devtools",checked:e,onChange:async function(e){await t(e.target.checked),window.location.reload()}}),(0,c.tZ)("span",{children:"Enable Devtools"})]})})]})}const m=e=>i.render((0,c.tZ)(u,{}),e)},"./lib/redux-bridge/index.js":(e,t,s)=>{"use strict";s.d(t,{e:()=>o,T:()=>i});let n=null;function o(e){n=e}function i(...e){if(n)return n.dispatch(...e)}},"./lib/route/legacy-routes.ts":(e,t,s)=>{"use strict";s.d(t,{K:()=>i});var n=s("../packages/calypso-config/src/index.ts");const o=[{match:/.php$/},{match:/^\/?$/,predicate:()=>!(0,n._k)("reader")},{match:/^\/manage/},{match:/^\/plans/},{match:/^\/me/,noMatch:/^\/me\/(billing|next)/,predicate:()=>!1}];function i(e){return o.some((({match:t,noMatch:s={test:()=>!1},predicate:n=(()=>!0)})=>n(e)&&t.test(e)&&!s.test(e)))}},"./lib/route/path.ts":(e,t,s)=>{"use strict";s.d(t,{lQ:()=>a,n3:()=>r,mS:()=>c,Zg:()=>l,cu:()=>d,XB:()=>u});var n=s("./lib/route/trailingslashit.ts"),o=s("./lib/route/untrailingslashit.ts");const i={day:"/stats/day/",week:"/stats/week/",month:"/stats/month/",year:"/stats/year/",insights:"/stats/insights/",googleMyBusiness:"/google-my-business/stats/"};function a(e){const t=e.split("?")[0],s=t.split("/");if(0===t.indexOf("/checkout/thank-you/no-site/"))return!1;if(0===t.indexOf("/me/purchases/")||0===t.indexOf("/checkout/thank-you/")){const e=s[3];if(e&&-1!==e.indexOf("."))return e;const t=parseInt(e,10);if(Number.isSafeInteger(t))return t}for(let e=2;e>0;e--){const t=s[s.length-e];if(t&&-1!==t.indexOf("."))return t.endsWith("::")?t.replace(/::$/,""):t}for(let e=2;e>0;e--){const t=s[s.length-e],n=/^\d+$/.test(t),o=parseInt(t,10);if(n&&Number.isSafeInteger(o))return o}return!1}function r(e,t){let s=e.split("?")[0],i=t;return i||(i=a(s)),i&&(s=(0,n.Z)(s).replace("/"+i+"/","/")),(0,o.Z)(s)}function c(e){const t="/stats/day/";return e?t+String(e):(0,o.Z)(t)}function l(e,t){if(!e)return c(t);if("insights"===e&&!t)return c();const s=i[e];return s?t?(0,o.Z)(s+t):(0,o.Z)(s):c(t)}function d(e,t){let s=r(e,t).replace(/^\/+/,"");return s=s.replace(/^(stats)\/\w+/,"$1"),s.replace(/\//g,"-")}function u(e){switch(e){case"drafts":return"draft,pending";case"scheduled":return"future";case"trashed":return"trash";default:return"publish,private"}}},"./lib/route/trailingslashit.ts":(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});const n=e=>e.replace(/(\/)?$/,"/")},"./lib/url/is-external.ts":(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var n=s("../packages/calypso-config/src/index.ts"),o=s("./lib/route/legacy-routes.ts");const i="base.invalid";function a(e){if(!e&&""!==e)return!0;let t;e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")||e.startsWith("?")||e.startsWith("#")||(e="//"+e);try{t=new URL(e,"https://webcf.waybackmachine.org/web/20220607162747/http://base.invalid")}catch{return!1}const{hostname:s,pathname:a}=t;return s!==i&&("undefined"!=typeof window&&s===window.location.hostname?!(!a||!(0,o.K)(a.replace("//","/"))):s!==(0,n.ZP)("hostname"))}},"./lib/url/is-outside-calypso.ts":(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s("../packages/calypso-url/src/url-parts.ts"),o=s("./lib/url/is-external.ts");function i(e){if((0,o.Z)(e))return!0;const{pathname:t}=(0,n.A)(e);return!!(/^\/support($|\/)/i.test(t)||/^\/([a-z]{2}|[a-z]{2}-[a-z]{2})\/support($|\/)/i.test(t)||/^\/forums($|\/)/i.test(t)||/^\/([a-z]{2}|[a-z]{2}-[a-z]{2})\/forums($|\/)/i.test(t))}},"./lib/user/verification-checker.js":(e,t,s)=>{"use strict";s.d(t,{X:()=>u,Z:()=>m});var n=s("../node_modules/debug/src/browser.js"),o=s.n(n),i=s("../node_modules/react/index.js"),a=s("../node_modules/react-redux/es/index.js"),r=s("./state/current-user/actions.js"),c=s("./state/current-user/selectors.js");const l=o()("calypso:user"),d="__email_verified_signal__";function u(){window.localStorage&&(window.localStorage.setItem(d,1),l("Verification: SENT SIGNAL"))}function m(){const e=(0,a.v9)(c.ts),t=(0,a.I0)();return(0,i.useEffect)((()=>{if(!e)return;if(e.email_verified)return;const s=e=>{e.key===d&&e.newValue&&(l("Verification: RECEIVED SIGNAL"),window.localStorage.removeItem(d),t((0,r.k)()))};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}}),[e,t]),null}},"./my-sites/domains/paths.js":(e,t,s)=>{"use strict";s.d(t,{EI:()=>c,fY:()=>l,dC:()=>d,$5:()=>u,eZ:()=>m,Hf:()=>p,OL:()=>h,q6:()=>g,En:()=>f,tT:()=>j,Ym:()=>y,JF:()=>b,Y9:()=>_,lq:()=>v,wt:()=>w,tZ:()=>k,wI:()=>x,DP:()=>Z,Jk:()=>S,B3:()=>P,bW:()=>E,G$:()=>N,ef:()=>C,Iv:()=>L,BO:()=>I,bV:()=>O,oH:()=>R,sx:()=>T,dw:()=>M,Mk:()=>z,j$:()=>q});var n=s("../node_modules/lodash-es/filter.js"),o=s("../node_modules/qs/lib/index.js"),i=s("./my-sites/email/paths.js");function a(e,t,s,n=null){return s=s||"edit",t.startsWith(":")||(t=encodeURIComponent(encodeURIComponent(t))),function(e=null){if(e){if("/domains/manage"===e)return"/domains/manage/all";if(c(e)||(0,i.i2)(e))return"/domains/manage/all"}return"/domains/manage"}(n)+"/"+t+"/"+s+"/"+e}function r(e,t,s="",o=null){return a(e,t,(0,n.Z)(["transfer",s]).join("/"),o)}function c(e){return e?.startsWith("/domains/manage/all/")||"/domains/manage"===e}function l(e,t){let s="/domains/add";return e&&(s=`${s}/${e}`),t?`${s}?suggestion=${t}`:s}function d(e,t){return`/domains/add/${t}/email/${e}`}function u(){return"/domains/manage/all"}function m(){return"/domains/manage"}function p(e,t=null){return c(t)||(0,i.i2)(t)?"/domains/manage":"/domains/manage/"+e}function h(e,t,s){return a(e,t,"edit",s)}function g(e,t,s=null){return a(e,t,"contacts-privacy",s)}function f(e,t,s=null){return a(e,t,"edit-contact-info",s)}function j(){return"/domains/manage/all/edit-contact-info"}function y(e,t,s=null){return a(e,t,"manage-consent",s)}function b(e,t){let s;return s=t?a(e,t,"email"):e?"/domains/manage/email/"+e:"/domains/manage/email",s}function _(e,t,s=null){return a(e,t,"dns",s)}function v(e,t,s=null){return a(e,t,"add-dns-record",s)}function w(e,t,s,n=null){let o=a(e,t,"edit-dns-record",n);return s&&(o+="?recordId="+encodeURI(s)),o}function k(e,t,s=null){return a(e,t,"redirect-settings",s)}function x(e,t,s=null){return a(e,t,"security",s)}function Z(e,t,s=null){return a(e,t,"redirect",s)}function S(e,t,s=null){return r(e,t,"",s)}function P(e,t,s=null){return r(e,t,"in",s)}function E(e,t,s=null){return r(e,t,"precheck",s)}function N(e,t,s=null){return r(e,t,"out",s)}function C(e,t,s=null){return r(e,t,"other-user",s)}function L(e,t,s=null){return r(e,t,"other-site",s)}function I(e,t=""){let s=`/domains/add/mapping/${e}`;return t&&(s+=`?initialQuery=${t}`),s}function O(e,t,s="",n=!1,i=!1){let a=`/domains/mapping/${e}/setup/${t}`;const r={};s&&(r.step=s),n&&(r["show-errors"]=!0),i&&(r.firstVisit=!0);const c=(0,o.stringify)(r);return c&&(a+="?"+c),a}function R(e,t,s){let n=`/domains/add/transfer/${e}`;const i={};t&&(i.initialQuery=t),s&&(i.useStandardBack=!0);const a=(0,o.stringify)(i);return a&&(n+="?"+a),n}function T(e,t){let s=`/domains/add/use-your-domain/${e}`;return t&&(s+=`?initialQuery=${t}`),s}function M(e,t,s){const n=`/domains/add/use-my-domain/${e}`,o=[];return t&&(o.push(`initialQuery=${t}`),s&&o.push(`initialMode=${s}`)),n+(o.length?`?${o.join("&")}`:"")}function z(e,t,s=null){return a(e,t,"domain-connect-mapping",s)}function q(e,t){return`/start/site-selected/?siteSlug=${encodeURIComponent(e)}&siteId=${encodeURIComponent(t)}`}},"./my-sites/email/paths.js":(e,t,s)=>{"use strict";s.d(t,{NZ:()=>i,oc:()=>r,m3:()=>c,x9:()=>l,Vp:()=>d,Y:()=>u,gV:()=>m,Zh:()=>p,GZ:()=>h,Fb:()=>g,s_:()=>f,y0:()=>j,IR:()=>y,uS:()=>b,yV:()=>_,i2:()=>v});var n=s("../node_modules/qs/lib/index.js"),o=s("./my-sites/domains/paths.js");const i="/email/all",a=(e={})=>e?(0,n.stringify)(e,{addQueryPrefix:!0,skipNulls:!0}):"";function r(e,t,s=null,n=null){return b(e,t,"forwarding/add",s,{source:n})}function c(e,t,s,n=null,o=null){return t?b(e,t,s+"/add-users",n,{source:o}):"/email/"+s+"/add-users/"+e}function l(e,t,s=null,n={}){return b(e,t,"titan/manage",s,n)}function d(e,t,s=null,n={}){return b(e,t,"titan/manage-mailboxes",s,n)}function u(e,t,s=null,n=null){return b(e,t,"titan/new",s,{source:n})}function m(e,t,s=null,n=null){return b(e,t,"titan/set-up-mailbox",s,{source:n})}function p(e,t,s=null,n=null){return b(e,t,"titan/set-up-mailbox/thank-you",n,s?{email:s}:{})}function h(e,t,s=null,n={}){return b(e,t,"titan/control-panel",s,n)}function g(e,t,s=null,n={}){let o;return o=t?b(e,t,"manage",s,n):e?"/email/"+e+a(n):"/email",o}function f(e,t,s=null){return b(e,t,"forwarding",s)}function j(e,t,s=null,n=null,o=null,i=null){return b(e,t,"purchase",s,{interval:i,provider:o,source:n})}function y(e,t,s=null,n=null,o=null){return b(e,t,"compare",s,{interval:o,referrer:s,source:n})}function b(e,t,s,n=null,r={}){return s=s||"manage",t&&!String(t).startsWith(":")&&(t=encodeURIComponent(encodeURIComponent(t))),function(e){return e===i||e===(0,o.eZ)()||v(e)||(0,o.EI)(e)?i:"/email"}(n)+"/"+t+"/"+s+"/"+e+a(r)}function _(e=null){return e?`/inbox/${e}`:"/inbox"}function v(e){return e?.startsWith(i+"/")}},"./state/application/init.js":(e,t,s)=>{"use strict";var n=s("./state/redux-store.ts"),o=s("../packages/state-utils/src/index.ts"),i=s("./state/action-types.ts"),a=s("./state/utils/reducer-utils.ts");const r=(0,o.xi)("application",(0,a.U)({connectionState:(e="CHECKING",t)=>{switch(t.type){case i.ukS:return"OFFLINE";case i.GmV:return"ONLINE"}return e}}));(0,n.x)(["application"],r)},"./state/happychat/selectors/has-active-happychat-session.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s("./state/happychat/constants.js");s("./state/happychat/init.js");const o=[n.pW,n.HY,n.s0,n.Bp];function i(e){return!o.includes(e.happychat.chat.status)}},"./state/happychat/selectors/is-happychat-open.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s("./state/ui/selectors/get-section-name.js");s("./state/happychat/init.js");function o(e){return e.happychat.ui.isOpen&&"happychat"!==(0,n.Z)(e)}},"./state/happychat/utils.js":(e,t,s)=>{"use strict";s.d(t,{S:()=>l});var n=s("../packages/calypso-config/src/index.ts"),o=s("./lib/wp/browser.js"),i=s("./state/current-user/selectors.js"),a=s("./state/happychat/selectors/get-groups.js"),r=s("./state/happychat/selectors/get-skills.js"),c=s("./state/help/selectors.js");const l=e=>()=>{const t=(0,n.ZP)("happychat_url"),s=(0,i.Mg)(e);let l=(0,a.Z)(e),d=(0,r.Z)(e);const u=(0,c.YP)(e);u&&u.ID&&(l=(0,a.Z)(e,u.ID),d=(0,r.Z)(e,u.ID));const m=(0,i.ts)(e);if(!m)return Promise.reject("Failed to start an authenticated Happychat session: No current user found");const p={signer_user_id:m.ID,locale:s,groups:l,skills:d};return o.Z.req.post("/happychat/session").then((({session_id:e,geo_location:t})=>{return p.geoLocation=t,s={user:m,session_id:e},o.Z.req.post("/jwt/sign",{payload:JSON.stringify(s)});var s})).then((({jwt:e})=>({url:t,user:{jwt:e,...p}}))).catch((e=>Promise.reject("Failed to start an authenticated Happychat session: "+e)))}},"./state/jetpack-connect/constants.js":(e,t,s)=>{"use strict";s.d(t,{e4:()=>n,Fe:()=>o,xH:()=>i,CA:()=>a});const n=3600,o=1e3*n,i=36e5,a=6e4},"./state/notifications-panel/actions/index.js":(e,t,s)=>{"use strict";s.d(t,{k:()=>o,g:()=>i});s("./state/notifications-panel/init.js");var n=s("./state/action-types.ts");const o=function(e){return{type:n.b_y,refresh:e}},i=function(){return{type:n.b_y,refresh:!1}}},"./state/notifications-panel/init.js":(e,t,s)=>{"use strict";var n=s("./state/redux-store.ts"),o=s("./state/action-types.ts");const i=(0,s("./state/utils/reducer-utils.ts").U)({shouldForceRefresh:(e=!1,{type:t,refresh:s})=>t===o.b_y?s||!1:e});(0,n.x)(["notifications"],i)},"./state/notifications/init.js":(e,t,s)=>{"use strict";var n=s("./state/redux-store.ts"),o=s("../packages/state-utils/src/index.ts"),i=s("./state/action-types.ts");const a=(0,o.xi)("notificationsUnseenCount",((e=null,t)=>i.tBn===t.type?t.unseenCount:e));(0,n.x)(["notificationsUnseenCount"],a)},"./state/push-notifications/actions.js":(e,t,s)=>{"use strict";s.d(t,{S1:()=>j,n0:()=>P,hr:()=>E});var n=s("../packages/calypso-config/src/index.ts"),o=s("../node_modules/debug/src/browser.js"),i=s.n(o);var a=s("./lib/wp/browser.js"),r=s("./state/action-types.ts"),c=s("./state/analytics/actions/bump-stat.js"),l=s("./state/analytics/actions/record.js"),d=s("./state/push-notifications/selectors.js");function u(){const e=window.navigator.appVersion.match(/Chrome\/(\d+)/);return e?e[1]:-1}function m(){return window&&"serviceWorker"in window.navigator&&"ServiceWorkerRegistration"in window&&"showNotification"in window.ServiceWorkerRegistration.prototype&&"PushManager"in window}function p(){if(window&&window.navigator&&window.navigator.appVersion){const e=window.navigator.appVersion.match(/OPR\/(\d+)/);return e?e[1]:-1}return-1}function h(e){const t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),s=atob(t),n=new Uint8Array(s.length);for(let e=0;e<s.length;++e)n[e]=s.charCodeAt(e);return n}s("./state/push-notifications/init.js");const g=i()("calypso:push-notifications"),f={path:"/service-worker.js"};function j(){return e=>{const{isSupportSession:t}=s("./lib/user/support-user-interop.js");if(t())return g("Push Notifications are not supported when SU is active"),void e(y());if(!m())return g("Push Notifications are not supported"),void e(y());if(window&&window.chrome&&window.navigator.appVersion&&u()<50){g("Push Notifications are not supported in Chrome 49 and below");const t=u();return e((0,c.P)("calypso_push_notif_unsup_chrome",t>39&&t<50?t:"other")),void e(y())}if(-1!==p()){g("Push Notifications are not supported in Opera");const t=p();return e((0,c.P)("calypso_push_notif_unsup_opera",t>15&&t<100?t:"other")),void e(y())}"Notification"in window&&"denied"!==window.Notification.permission||(g("Push Notifications have been denied"),e(S())),e(_())}}function y(){return{type:r.HGp}}function b(){return(e,t)=>{e({type:r.BOh});const s=t();(0,d.IT)(s)||((0,d._k)(s)?e(((e,t)=>{const s=t();!(0,d.IT)(s)&&(0,d.fT)(s)&&window.navigator.serviceWorker.ready.then((t=>{t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:h((0,n.ZP)("push_notification_vapid_key"))}).then((()=>e(Z()))).catch((t=>{g("Couldn't get subscription",t),e(Z())}))})).catch((e=>g("Error activating subscription",e)))})):(e(Z()),"disabling"===(0,d.lR)(s)&&(g("Forcibly unregistering device (disabling on apiReady)"),e(k()))))}}function _(){return e=>{g("Registering service worker"),function(e={}){const t=e.path||"/service-worker.js";return window.navigator.serviceWorker.register(t)}(f).then((t=>e(b()))).catch((t=>{g("Error loading service worker!",t),e(y())}))}}function v(){return e=>{window.navigator.serviceWorker.getRegistration(f).then((t=>{t.pushManager.getSubscription().then((t=>{e(k()),t&&t.unsubscribe?t.unsubscribe().then((()=>g("Push subscription unsubscribed"))).catch((e=>g("Error while unsubscribing",e))):g("Error getting push subscription to deactivate")})).catch((t=>{e(k()),g("Error getting subscription to deactivate",t)}))})).catch((t=>{e(k()),g("Error getting ServiceWorkerRegistration to deactivate",t)}))}}function w(e){return(t,s)=>{if("granted"===e)return g("Push notifications authorized"),t({type:r.pdf}),void t((e=>{window.navigator.serviceWorker.ready.then((t=>{t.pushManager.getSubscription().then((t=>{e(function(e){return t=>{if(e)return g("Sending subscription to WPCOM",e),a.Z.req.post("/devices/new",{device_token:JSON.stringify(e),device_family:"browser",device_name:"Browser"}).then(((e,s)=>t({type:r.SR1,data:e,headers:s}))).catch((e=>g("Couldn't register device",e)));g("No subscription to send to WPCOM")}}(t))})).catch((e=>g("Error getting subscription",e)))})).catch((e=>g("Error fetching push manager subscription",e)))}));"denied"!==e?((0,d._k)(s())&&t(P()),t({type:r.d7B})):t(S())}}function k(){return(e,t)=>{const s=(0,d.Zw)(t());return s?a.Z.req.post(`/devices/${s}/delete`).then((t=>{g("Successfully unregistered device",t),e(x(t))})).catch((t=>{g("Couldn't unregister device",t),e(x())})):(g("Couldn't unregister device. Unknown device ID"),void e(x()))}}function x(e){return{type:r.hEK,data:e||{}}}function Z(){return e=>{window.navigator.serviceWorker.ready.then((t=>{t.pushManager.permissionState({userVisibleOnly:!0}).then((t=>{g("Received push messaging state",t),e(w(t))})).catch((t=>{g("Error checking permission state",t),e(w("denied"))}))})).catch((e=>g("Error checking permission state -- not ready",e)))}}function S(){return e=>{e({type:r.fGH}),e(v()),e((0,l.jN)("calypso_web_push_notifications_blocked"))}}function P(){return(e,t)=>{const s=!(0,d._k)(t());g(s?"enabling":"disabling"),e({type:r.OY5}),s?(e(_()),e((0,l.jN)("calypso_web_push_notifications_enabled"))):(e(v()),e((0,l.jN)("calypso_web_push_notifications_disabled")))}}function E(){return{type:r.Pc2}}},"./state/push-notifications/init.js":(e,t,s)=>{"use strict";var n=s("./state/redux-store.ts"),o=s("../packages/state-utils/src/index.ts"),i=s("../node_modules/debug/src/browser.js"),a=s.n(i),r=s("../node_modules/lodash-es/omit.js"),c=s("./state/action-types.ts"),l=s("./state/utils/schema-utils.js"),d=s("./state/utils/with-persistence.ts"),u=s("./state/utils/reducer-utils.ts");const m={type:"boolean"},p={type:"object",properties:{enabled:m,showingUnblockInstructions:m},additionalProperties:!1},h={type:"object",properties:{apiReady:m,blocked:m,wpcomSubscription:{type:"object",properties:{ID:{type:"string"},settings:{type:"object",additionalProperties:!0}}}},additionalProperties:!1},g=a()("calypso:push-notifications"),f=["apiReady","blocked"],j=(0,l.G)(h,(0,d.$)(((e={},t)=>{switch(t.type){case c.BOh:return g("API is ready"),Object.assign({},e,{apiReady:!0});case c.pdf:return Object.assign({},e,{blocked:!1});case c.fGH:return Object.assign({},e,{blocked:!0});case c.d7B:return Object.assign({},e,{blocked:!1});case c.hEK:{const{data:s}=t;return s.success||g("Couldn't unregister device",s),g("Deleted WPCOM subscription",s),(0,r.Z)(e,["wpcomSubscription"])}case c.SR1:{const{data:s}=t;return g("Received WPCOM device registration results",s),s&&s.ID?Object.assign({},e,{wpcomSubscription:{ID:s.ID.toString(),settings:s.settings}}):e}}return e}),{serialize:e=>(0,r.Z)(e,f),deserialize:e=>(0,r.Z)(e,f)})),y=["showingUnblockInstructions"],b=(0,l.G)(p,(0,d.$)(((e={enabled:!1},t)=>{switch(t.type){case c.OY5:return Object.assign({},e,{enabled:!e.enabled});case c.Pc2:return Object.assign({},e,{showingUnblockInstructions:!e.showingUnblockInstructions});case c.SR1:return Object.assign({},e,{enabled:!0})}return e}),{serialize:e=>(0,r.Z)(e,y),deserialize:e=>(0,r.Z)(e,y)})),_=(0,u.U)({settings:b,system:j}),v=(0,o.xi)("pushNotifications",_);(0,n.x)(["pushNotifications"],v)},"./state/push-notifications/selectors.js":(e,t,s)=>{"use strict";s.d(t,{fT:()=>n,IT:()=>o,_k:()=>a,J$:()=>r,Zw:()=>c,lR:()=>l});s("./state/push-notifications/init.js");const n=e=>!!e.pushNotifications.system.apiReady,o=e=>!!e.pushNotifications.system.blocked,i=e=>e.pushNotifications.system.wpcomSubscription,a=e=>!!e.pushNotifications.settings.enabled,r=e=>!!e.pushNotifications.settings.showingUnblockInstructions;function c(e){const t=i(e);if(t)return t.ID}function l(e){if(!n(e))return"unknown";if(o(e))return"denied";const t=i(e);return a(e)?t?"subscribed":"enabling":t?"disabling":"unsubscribed"}},"./state/selected-editor/actions.js":(e,t,s)=>{"use strict";s.d(t,{o:()=>c});var n=s("./state/action-types.ts"),o=s("./state/data-layer/handler-registry.js"),i=s("./state/data-layer/wpcom-http/actions.js"),a=s("./state/data-layer/wpcom-http/utils.js");s("./state/gutenberg-iframe-eligible/init.js");const r=(0,a.BN)({fetch:e=>(0,i.d)({method:"GET",path:`/sites/${e.siteId}/gutenberg`,apiNamespace:"wpcom/v3"},e),onSuccess:({siteId:e},{editor_web:t,eligible_gutenframe:s})=>o=>{o({type:n.Z4q,siteId:e,editor:t}),o({type:n.p8O,siteId:e,isEligibleForGutenframe:s})},onError:()=>{}});(0,o.Z9)("state/data-layer/wpcom/sites/gutenberg/index.js",{[n.L1d]:[r]});s("./state/selected-editor/init.js");const c=e=>({type:n.L1d,siteId:e})},"./state/selected-editor/init.js":(e,t,s)=>{"use strict";var n=s("./state/redux-store.ts"),o=s("../packages/state-utils/src/index.ts"),i=s("./state/action-types.ts"),a=s("./state/utils/keyed-reducer.ts");const r=(0,o.xi)("selectedEditor",(0,a.J)("siteId",((e,{type:t,editor:s})=>t===i.Z4q?s:e)));(0,n.x)(["selectedEditor"],r)},"./state/selectors/get-site-migration-status.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s("./state/selectors/get-raw-site.ts");function o(e,t){return(0,n.Z)(e,t)?.site_migration?.status??"inactive"}},"./state/selectors/is-domain-only-site.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s("./state/selectors/get-raw-site.ts");function o(e,t){const s=(0,n.Z)(e,t);return s?s.options?.is_domain_only??!1:null}},"./state/selectors/is-notifications-open.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s("../node_modules/lodash-es/get.js");s("./state/ui/init.js");function o(e){return(0,n.Z)(e,"ui.isNotificationsOpen",!1)}},"./state/selectors/is-requesting-site-features.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s("./state/sites/features/reducer.js");function o(e,t){return e.sites.features?.[t]&&e.sites.features[t].isRequesting||n.T.isRequesting}},"./state/selectors/is-site-migration-active-route.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s("./state/selectors/get-current-route.js");function o(e){const t=(0,n.Z)(e);return!!t&&t.match(/\/migrate\/(upgrade\/)?from\/[^/]+\/to\//)}},"./state/selectors/is-site-migration-in-progress.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s("./state/selectors/get-site-migration-status.js");function o(e,t){const s=(0,n.Z)(e,t);return"inactive"!==s&&"done"!==s}},"./state/selectors/is-site-wpcom-atomic.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s("../node_modules/lodash-es/get.js");const o=(e,t)=>(0,n.Z)(e,["sites","items",t,"options","is_wpcom_atomic"],!1)},"./state/sites/features/actions.js":(e,t,s)=>{"use strict";s.d(t,{i:()=>d});var n=s("../node_modules/debug/src/browser.js"),o=s.n(n),i=s("../packages/i18n-calypso/src/index.js"),a=s("./lib/wp/browser.js"),r=s("./state/action-types.ts");const c=(e={})=>(e.active=e.active||[],e.available=e.available||{},e),l=o()("calypso:site-features:actions");function d(e){return t=>(t({type:r.fa4,siteId:e}),a.Z.req.get(`/sites/${e}/features`).then((s=>{t(function(e,t){return{type:r.xNf,siteId:e,features:c(t)}}(e,s))})).catch((s=>{l("Fetching site features failed: ",s);const n=s.message||i.ZP.translate("There was a problem fetching site features. Please try again later or contact support.");t({type:r.YCt,siteId:e,error:n})})))}},"./state/sites/selectors/can-current-user-use-customer-home.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s("./state/selectors/can-current-user.js"),o=s("./state/selectors/is-site-automated-transfer.js"),i=s("./state/selectors/is-vip-site.js"),a=s("./state/sites/selectors/is-jetpack-site.js"),r=s("./state/ui/selectors/get-selected-site-id.js"),c=s("./state/sites/selectors/get-site.js");function l(e,t=null){if(t||(t=(0,r.Z)(e)),(0,i.Z)(e,t))return!1;if((0,a.Z)(e,t)&&!(0,o.Z)(e,t))return!1;return(0,c.Z)(e,t)&&(0,n.i)(e,t,"edit_posts")}},"./state/support/constants.js":(e,t,s)=>{"use strict";s.d(t,{Lr:()=>n,bZ:()=>o,a6:()=>i});const n="none",o="active",i="expired"},"./state/support/init.js":(e,t,s)=>{"use strict";var n=s("./state/redux-store.ts"),o=s("../packages/state-utils/src/index.ts"),i=s("../node_modules/debug/src/browser.js"),a=s.n(i),r=s("./state/action-types.ts"),c=s("./state/support/constants.js");const l=a()("calypso:state:support:actions");const d=(0,o.xi)("support",(function(e=c.Lr,{type:t,nextState:s}){return t===r.wi9?e===c.Lr&&s===c.bZ||e===c.bZ&&s===c.a6?s:(l(`invalid support session transition from '${e}' to '${s}'`),e):e}));(0,n.x)(["support"],d)},"./state/support/selectors.js":(e,t,s)=>{"use strict";s.d(t,{o:()=>o});var n=s("./state/support/constants.js");s("./state/support/init.js");function o({support:e}){return e===n.bZ||e===n.a6}},"./state/ui/actions/notifications.js":(e,t,s)=>{"use strict";s.d(t,{P:()=>o});var n=s("./state/action-types.ts");s("./state/ui/init.js");const o=()=>({type:n.hxz})},"./state/ui/layout-focus/actions.js":(e,t,s)=>{"use strict";s.d(t,{Js:()=>o,SB:()=>i,zW:()=>a});var n=s("./state/action-types.ts");s("./state/ui/init.js");function o(e){return{type:n.kUt,area:e}}function i(e){return{type:n.vO0,area:e}}function a(){return{type:n.XTm}}},"./state/ui/layout-focus/selectors.js":(e,t,s)=>{"use strict";s.d(t,{d:()=>n});s("./state/ui/init.js");function n(e){return e.ui.layoutFocus.current}},"./state/ui/selectors/is-section-loading.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});s("./state/ui/init.js");function n(e){return e.ui.isSectionLoading}},"./state/ui/selectors/sidebar-visibility.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});s("./state/ui/init.js");var n=s("./state/preferences/selectors.js");function o(e){return(0,n.Oz)(e,"sidebarCollapsed")}},"../node_modules/tracekit/tracekit.js":(e,t)=>{var s,n,o;!function(i,a){if(i){var r={},c=i.TraceKit,l=[].slice,d="?",u=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;r.noConflict=function(){return i.TraceKit=c,r},r.wrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){throw r.report(e),e}}},r.report=function(){var e,t,s=[],n=null,o=null;function a(e,t,n){var o=null;if(!t||r.collectWindowErrors){for(var i in s)if(m(s,i))try{s[i](e,t,n)}catch(e){o=e}if(o)throw o}}function c(t,s,n,i,c){if(o)r.computeStackTrace.augmentStackTraceWithInitialElement(o,s,n,t),l();else if(c)a(r.computeStackTrace(c),!0,c);else{var d,m={url:s,line:n,column:i},p=t;if("[object String]"==={}.toString.call(t)){var h=t.match(u);h&&(d=h[1],p=h[2])}m.func=r.computeStackTrace.guessFunctionName(m.url,m.line),m.context=r.computeStackTrace.gatherContext(m.url,m.line),a({name:d,message:p,mode:"onerror",stack:[m]},!0,null)}return!!e&&e.apply(this,arguments)}function l(){var e=o,t=n;o=null,n=null,a(e,!1,t)}function d(e){if(o){if(n===e)return;l()}var t=r.computeStackTrace(e);throw o=t,n=e,setTimeout((function(){n===e&&l()}),t.incomplete?2e3:0),e}return d.subscribe=function(n){!function(){if(!0===t)return;e=i.onerror,i.onerror=c,t=!0}(),s.push(n)},d.unsubscribe=function(n){for(var o=s.length-1;o>=0;--o)s[o]===n&&s.splice(o,1);0===s.length&&(i.onerror=e,t=!1)},d}(),r.computeStackTrace=function(){var e=!1,t={};function s(e){if("string"!=typeof e)return[];if(!m(t,e)){var s="",n="";try{n=i.document.domain}catch(e){}var o=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(e);o&&o[2]===n&&(s=function(e){if(!r.remoteFetching)return"";try{var t=function(){try{return new i.XMLHttpRequest}catch(e){return new i.ActiveXObject("Microsoft.XMLHTTP")}}();return t.open("GET",e,!1),t.send(""),t.responseText}catch(e){return""}}(e)),t[e]=s?s.split("\n"):[]}return t[e]}function n(e,t){var n,o=/function ([^(]*)\(([^)]*)\)/,i=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,a="",r=s(e);if(!r.length)return d;for(var c=0;c<10;++c)if(!p(a=r[t-c]+a)){if(n=i.exec(a))return n[1];if(n=o.exec(a))return n[1]}return d}function o(e,t){var n=s(e);if(!n.length)return null;var o=[],i=Math.floor(r.linesOfContext/2),a=i+r.linesOfContext%2,c=Math.max(0,t-i-1),l=Math.min(n.length,t+a-1);t-=1;for(var d=c;d<l;++d)p(n[d])||o.push(n[d]);return o.length>0?o:null}function a(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function c(e){return a(e).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function l(e,t){for(var n,o,i=0,a=t.length;i<a;++i)if((n=s(t[i])).length&&(n=n.join("\n"),o=e.exec(n)))return{url:t[i],line:n.substring(0,o.index).split("\n").length,column:o.index-n.lastIndexOf("\n",o.index)-1};return null}function u(e,t,n){var o,i=s(t),r=new RegExp("\\b"+a(e)+"\\b");return n-=1,i&&i.length>n&&(o=r.exec(i[n]))?o.index:null}function h(e){if(!p(i&&i.document)){for(var t,s,n,o,r=[i.location.href],d=i.document.getElementsByTagName("script"),u=""+e,m=0;m<d.length;++m){var h=d[m];h.src&&r.push(h.src)}if(n=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(u)){var g=n[1]?"\\s+"+n[1]:"",f=n[2].split(",").join("\\s*,\\s*");t=a(n[3]).replace(/;$/,";?"),s=new RegExp("function"+g+"\\s*\\(\\s*"+f+"\\s*\\)\\s*{\\s*"+t+"\\s*}")}else s=new RegExp(a(u).replace(/\s+/g,"\\s+"));if(o=l(s,r))return o;if(n=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(u)){var j=n[1];if(t=c(n[2]),o=l(s=new RegExp("on"+j+"=[\\'\"]\\s*"+t+"\\s*[\\'\"]","i"),r[0]))return o;if(o=l(s=new RegExp(t),r))return o}return null}}function g(e){if(!e.stack)return null;for(var t,s,i,a=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,c=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,m=/\((\S*)(?::(\d+))(?::(\d+))\)/,h=e.stack.split("\n"),g=[],f=/^(.*) is undefined$/.exec(e.message),j=0,y=h.length;j<y;++j){if(s=a.exec(h[j])){var b=s[2]&&0===s[2].indexOf("native");s[2]&&0===s[2].indexOf("eval")&&(t=m.exec(s[2]))&&(s[2]=t[1],s[3]=t[2],s[4]=t[3]),i={url:b?null:s[2],func:s[1]||d,args:b?[s[2]]:[],line:s[3]?+s[3]:null,column:s[4]?+s[4]:null}}else if(s=c.exec(h[j]))i={url:s[2],func:s[1]||d,args:[],line:+s[3],column:s[4]?+s[4]:null};else{if(!(s=r.exec(h[j])))continue;s[3]&&s[3].indexOf(" > eval")>-1&&(t=l.exec(s[3]))?(s[3]=t[1],s[4]=t[2],s[5]=null):0!==j||s[5]||p(e.columnNumber)||(g[0].column=e.columnNumber+1),i={url:s[3],func:s[1]||d,args:s[2]?s[2].split(","):[],line:s[4]?+s[4]:null,column:s[5]?+s[5]:null}}!i.func&&i.line&&(i.func=n(i.url,i.line)),i.context=i.line?o(i.url,i.line):null,g.push(i)}return g.length?(g[0]&&g[0].line&&!g[0].column&&f&&(g[0].column=u(f[1],g[0].url,g[0].line)),{mode:"stack",name:e.name,message:e.message,stack:g}):null}function f(e,t,s,i){var a={url:t,line:s};if(a.url&&a.line){e.incomplete=!1,a.func||(a.func=n(a.url,a.line)),a.context||(a.context=o(a.url,a.line));var r=/ '([^']+)' /.exec(i);if(r&&(a.column=u(r[1],a.url,a.line)),e.stack.length>0&&e.stack[0].url===a.url){if(e.stack[0].line===a.line)return!1;if(!e.stack[0].line&&e.stack[0].func===a.func)return e.stack[0].line=a.line,e.stack[0].context=a.context,!1}return e.stack.unshift(a),e.partial=!0,!0}return e.incomplete=!0,!1}function j(e,t){for(var s,o,i,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],l={},m=!1,p=j.caller;p&&!m;p=p.caller)if(p!==y&&p!==r.report){if(o={url:null,func:d,args:[],line:null,column:null},p.name?o.func=p.name:(s=a.exec(p.toString()))&&(o.func=s[1]),void 0===o.func)try{o.func=s.input.substring(0,s.input.indexOf("{"))}catch(e){}if(i=h(p)){o.url=i.url,o.line=i.line,o.func===d&&(o.func=n(o.url,o.line));var g=/ '([^']+)' /.exec(e.message||e.description);g&&(o.column=u(g[1],i.url,i.line))}l[""+p]?m=!0:l[""+p]=!0,c.push(o)}t&&c.splice(0,t);var b={mode:"callers",name:e.name,message:e.message,stack:c};return f(b,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),b}function y(t,a){var r=null;a=null==a?0:+a;try{if(r=function(e){var t=e.stacktrace;if(t){for(var s,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,a=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,r=t.split("\n"),c=[],l=0;l<r.length;l+=2){var d=null;if((s=i.exec(r[l]))?d={url:s[2],line:+s[1],column:null,func:s[3],args:[]}:(s=a.exec(r[l]))&&(d={url:s[6],line:+s[1],column:+s[2],func:s[3]||s[4],args:s[5]?s[5].split(","):[]}),d){if(!d.func&&d.line&&(d.func=n(d.url,d.line)),d.line)try{d.context=o(d.url,d.line)}catch(e){}d.context||(d.context=[r[l+1]]),c.push(d)}}return c.length?{mode:"stacktrace",name:e.name,message:e.message,stack:c}:null}}(t),r)return r}catch(t){e}try{if(r=g(t))return r}catch(t){e}try{if(r=function(e){var t=e.message.split("\n");if(t.length<4)return null;var a,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,d=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,u=/^\s*Line (\d+) of function script\s*$/i,p=[],h=i&&i.document&&i.document.getElementsByTagName("script"),g=[];for(var f in h)m(h,f)&&!h[f].src&&g.push(h[f]);for(var j=2;j<t.length;j+=2){var y=null;if(a=r.exec(t[j]))y={url:a[2],func:a[3],args:[],line:+a[1],column:null};else if(a=d.exec(t[j])){y={url:a[3],func:a[4],args:[],line:+a[1],column:null};var b=+a[1],_=g[a[2]-1];if(_){var v=s(y.url);if(v){var w=(v=v.join("\n")).indexOf(_.innerText);w>=0&&(y.line=b+v.substring(0,w).split("\n").length)}}}else if(a=u.exec(t[j])){var k=i.location.href.replace(/#.*$/,""),x=l(new RegExp(c(t[j+1])),[k]);y={url:k,func:"",args:[],line:x?x.line:a[1],column:null}}if(y){y.func||(y.func=n(y.url,y.line));var Z=o(y.url,y.line),S=Z?Z[Math.floor(Z.length/2)]:null;Z&&S.replace(/^\s*/,"")===t[j+1].replace(/^\s*/,"")?y.context=Z:y.context=[t[j+1]],p.push(y)}}return p.length?{mode:"multiline",name:e.name,message:t[0],stack:p}:null}(t),r)return r}catch(t){e}try{if(r=j(t,a+1))return r}catch(t){e}return{name:t.name,message:t.message,mode:"failed"}}return y.augmentStackTraceWithInitialElement=f,y.computeStackTraceFromStackProp=g,y.guessFunctionName=n,y.gatherContext=o,y.ofCaller=function(e){e=1+(null==e?0:+e);try{throw new Error}catch(t){return y(t,e+1)}},y.getSource=s,y}(),r.extendToAsynchronousCallbacks=function(){var e=function(e){var t=i[e];i[e]=function(){var e=l.call(arguments),s=e[0];return"function"==typeof s&&(e[0]=r.wrap(s)),t.apply?t.apply(this,e):t(e[0],e[1])}};e("setTimeout"),e("setInterval")},r.remoteFetching||(r.remoteFetching=!0),r.collectWindowErrors||(r.collectWindowErrors=!0),(!r.linesOfContext||r.linesOfContext<1)&&(r.linesOfContext=11),n=[],void 0===(o="function"==typeof(s=r)?s.apply(t,n):s)||(e.exports=o)}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e){return void 0===e}}(window)}},e=>{var t=t=>e(e.s=t);e.O(0,[89564,66575,77048,65538,84473,96235,61403,4285,10033,82681,48427,90415,33712,6150,49567],(()=>(t("../node_modules/@sentry/webpack-plugin/src/sentry-webpack.module.js"),t("./boot/app.js"))));e.O()}]);

}
/*
     FILE ARCHIVED ON 16:27:47 Jun 07, 2022 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 04:52:15 Nov 19, 2024.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.596
  exclusion.robots: 0.03
  exclusion.robots.policy: 0.018
  esindex: 0.01
  cdx.remote: 5.323
  LoadShardBlock: 50.985 (3)
  PetaboxLoader3.datanode: 177.253 (5)
  load_resource: 277.711 (2)
  PetaboxLoader3.resolve: 117.748 (2)
*/