diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c0bd54c..a01afd07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ This is an alpha version! The changes listed here are not final. ### Fixed - Portfolios: Ensure these are enabled and working properly on themes that support portfolios - Stats: Fix top post card on the Insight page +- wpcom-block-editor: Support getting the canvas mode from the query string after GB 19.6 ## 2.5.11 - 2024-09-02 ### Changed diff --git a/composer.lock b/composer.lock index 6ded7b26..57ef9789 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a971f6f3eee99bc2f26d6df0b59a2393", + "content-hash": "436646bb475d173a29b4b17886db07da", "packages": [ { "name": "automattic/jetpack-a8c-mc-stats", @@ -12,7 +12,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats", - "reference": "6ad6c8037039b77693d006068fdd206a57c2bdf3" + "reference": "17c0462f42c8dbb4c20783bbf61a7f1f055205df" }, "require": { "php": ">=7.0" @@ -65,7 +65,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui", - "reference": "186c972128021b4eb9b651111c7018a6c9197509" + "reference": "dbc94889e2af619ab0abe0c188773fb347b53e1f" }, "require": { "php": ">=7.0" @@ -130,7 +130,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "53684156b77a1129c134512ac602d27e39564fd0" + "reference": "a72a7953a78cdedb9ea5d2f705b06a5f61faec58" }, "require": { "automattic/jetpack-constants": "^2.0.5", @@ -200,7 +200,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-blaze", - "reference": "b08ca8ad6a3d6bf6c3a166f92952d1948cec5c1d" + "reference": "286a4abaf519d1b738d4a96dc4de8209f8a278d1" }, "require": { "automattic/jetpack-assets": "^2.3.13", @@ -281,7 +281,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-blocks", - "reference": "7a655f9433bae70894a07882f1641277d934c5bd" + "reference": "9fb8551c9929a26bfd09fab40b0bbd1bd6156507" }, "require": { "automattic/jetpack-constants": "^2.0.5", @@ -343,7 +343,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-calypsoify", - "reference": "d2798c9aaed0d34a45463924345f65b61eb6010d" + "reference": "ca9d369313d6f5b6ab2577de761bfc26b046e8c2" }, "require": { "automattic/jetpack-assets": "^2.3.13", @@ -408,7 +408,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-classic-theme-helper", - "reference": "7e92a643893d0e2d14530021e8492e47f9809028" + "reference": "01a05bf36ca2d0b85f6cc36131b19ff20749a92d" }, "require": { "automattic/jetpack-assets": "^2.3.13", @@ -479,7 +479,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-compat", - "reference": "e6c6793fccf2962db85398cdfd8784b34d4ac1c6" + "reference": "976f7c5f39c60275bb38ed2bb672497a8e4888c0" }, "require": { "php": ">=7.0" @@ -516,7 +516,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-connection", - "reference": "8e9c4a4bdbaf817d2a3ccdb902238ef3ce8c982c" + "reference": "2dcc0b52ba9819d7a1cbb7066c5f8d2a809f4fae" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.4", @@ -606,7 +606,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "c7c5c4ade4cee271d27f4a4f0e21da95d7b6e100" + "reference": "9ea3e24f42194fa80db0e3d0f24964f62a5072a4" }, "require": { "php": ">=7.0" @@ -660,7 +660,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-device-detection", - "reference": "c2f1c73013720099c7f36a4e68e72426a16744ea" + "reference": "9201308632d2cf512df3986d133b13a2127054d8" }, "require": { "php": ">=7.0" @@ -713,7 +713,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-google-analytics", - "reference": "d543c377e836c9f8f19dd85963999bafb48226df" + "reference": "5ee5bbf969b0fd2e6795680f06cd8f06c21b0801" }, "require": { "automattic/jetpack-status": "^4.0.3", @@ -784,7 +784,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-ip", - "reference": "e9f6b759b5b780c92ad4165d390614207b26c652" + "reference": "cfe38371866124104f437ca336b3d8de898511e1" }, "require": { "php": ">=7.0" @@ -842,7 +842,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-jitm", - "reference": "6647115cd0d015803fbe6b93b7c0e65f5f27bc12" + "reference": "1447a61d48e21c117f427c91cfea5b9b178e0ced" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.4", @@ -917,7 +917,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-logo", - "reference": "4c1b259b37c6d1917d6c275e099cda45acdc2c51" + "reference": "9f6752f152added7e66a0b8077bd59d06756a702" }, "require": { "php": ">=7.0" @@ -970,7 +970,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-masterbar", - "reference": "6aa8b339f83877bae202b8799d11295968377445" + "reference": "603801218314408457832af53c9bfcb5c973b87b" }, "require": { "automattic/jetpack-assets": "^2.3.13", @@ -1049,11 +1049,11 @@ }, { "name": "automattic/jetpack-mu-wpcom", - "version": "5.66.0-alpha.1730548010", + "version": "5.66.0-alpha.1730779409", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-mu-wpcom", - "reference": "f29870d5b824a41b44b7d3a3dedeadd6e4f21253" + "reference": "9f74ae6779c529f8f683b89d7b1579582d66e2f9" }, "require": { "automattic/jetpack-assets": "^2.3.13", @@ -1136,7 +1136,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-password-checker", - "reference": "e0abe212ec293b3b5ab3c012c70a5c50c0af8682" + "reference": "f822574d9e32fa156ae84eae941457b1fc5a4336" }, "require": { "php": ">=7.0" @@ -1197,7 +1197,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plans", - "reference": "41d6cea84c5f346ecb04c5c1b9b56a35d7575bbe" + "reference": "8bd2d7073a922cc1bb4c049619a382f1aef886d1" }, "require": { "automattic/jetpack-connection": "^5.1.6", @@ -1265,7 +1265,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-redirect", - "reference": "17ba65ebc74c67d03c6950ccda893999a9208c3f" + "reference": "ee168bd25afc92676f29fd17e6bd0e65db85c25c" }, "require": { "automattic/jetpack-status": "^4.0.3", @@ -1320,7 +1320,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-roles", - "reference": "705d7137237a3e5f32c5cef773e9661ef421a9ee" + "reference": "a011617274ecd787848f52bcaa54bbed81e926ab" }, "require": { "php": ">=7.0" @@ -1374,7 +1374,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-stats", - "reference": "8f74ee798e854051256f375ea2deb9b06e12cab7" + "reference": "b95be2f97a3ba87afefb56c003a75f245fe99702" }, "require": { "automattic/jetpack-connection": "^5.1.6", @@ -1441,7 +1441,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-stats-admin", - "reference": "5e4aafb1359f70aebbeb3bda36d9f980cc34997c" + "reference": "4bd15b958ffdb52ce0e62ba55e561982a8649294" }, "require": { "automattic/jetpack-connection": "^5.1.6", @@ -1514,7 +1514,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-status", - "reference": "a5d1108346fd900856e2db4e2d1bf7316260dcd8" + "reference": "767a8d4658448ea091562fde3d8107df11aac2f4" }, "require": { "automattic/jetpack-constants": "^2.0.5", @@ -1578,7 +1578,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-sync", - "reference": "10c1924717d2a4215e8798a45a7607896edfc9ba" + "reference": "3981c49147bd970bf5471011183d2f95fb9d1f72" }, "require": { "automattic/jetpack-connection": "^5.1.6", @@ -1656,7 +1656,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/scheduled-updates", - "reference": "43202b8139c8e18a5f5aee3ec51132d57602a485" + "reference": "3fd52cfa2d9460a86bf1bd9ea78e43b8a664b0cb" }, "require": { "automattic/jetpack-connection": "^5.1.6", @@ -1808,7 +1808,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-changelogger", - "reference": "fb81fb6b932b8776f22b81f5edad0ba801a78277" + "reference": "b2b0731bedde2d80fff46440c81b9ac37e29016c" }, "require": { "php": ">=7.0", diff --git a/vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md b/vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md index 5b4d77ed..bc5f940c 100644 --- a/vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md +++ b/vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md @@ -17,6 +17,7 @@ This is an alpha version! The changes listed here are not final. - Fix PHPUnit coverage warnings. - Help Center: fixed api typo - We now check if JP_CONNECTION_INITIAL_STATE is defined before accessing it when using Global Styles' +- wpcom-block-editor: Support getting the canvas mode from the query string after GB 19.6 ## [5.65.0] - 2024-10-29 ### Added diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-editor-nux/wpcom-block-editor-nux.asset.php b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-editor-nux/wpcom-block-editor-nux.asset.php index 4c913fb3..e24c9556 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-editor-nux/wpcom-block-editor-nux.asset.php +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-editor-nux/wpcom-block-editor-nux.asset.php @@ -1 +1 @@ - array('jetpack-connection', 'lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '84c0373645699d975b72'); + array('jetpack-connection', 'lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => 'acd9efa73a7249ceeaef'); diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-editor-nux/wpcom-block-editor-nux.js b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-editor-nux/wpcom-block-editor-nux.js index 85167aa8..b130af38 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-editor-nux/wpcom-block-editor-nux.js +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-editor-nux/wpcom-block-editor-nux.js @@ -1,3 +1,3 @@ -(()=>{var e={78254:(e,t,o)=>{"use strict";o.d(t,{YO:()=>c,Ym:()=>u,t:()=>l});var n=o(10790),r=o(29491),s=o(27723),i=o(51609);const a=(0,i.createContext)(null),c=({children:e,localeSlug:t})=>(0,n.jsx)(a.Provider,{value:t,children:e});function l(){return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(function(){const e=s.getLocaleData()||{};return e[""]?.lang||e[""]?.language||""}())}function u(){const e=(0,i.useContext)(a),t=!!e,[o,n]=(0,i.useState)(l());return(0,i.useEffect)((()=>{if(!t)return n(l()),s.subscribe((()=>{n(l())}))}),[t]),e||o||"undefined"!=typeof window&&window._currentUserLocale||"en"}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,locale:u()};return(0,n.jsx)(e,{...o})}),"withLocale")},57711:(e,t,o)=>{"use strict";o.d(t,{BS:()=>d,Cx:()=>r,K8:()=>i,S9:()=>s,Sc:()=>n,Sj:()=>l,Ws:()=>c,_J:()=>u,lW:()=>p,mt:()=>a,rh:()=>m});const n=["en","ja","es","pt","fr","pt-br"],r=["en","pt-br","de","es","fr","it"],s=["en","fr","de","es"],i=["en","fr","de","es"],a=["en","es"],c=["ar","de","el","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"],l={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},u=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],d=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],p=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],m=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},14437:(e,t,o)=>{"use strict";o.d(t,{rm:()=>h});var n=o(10790),r=o(29491),s=o(51609),i=o(78254),a=o(57711);const c="http://__domain__.invalid";const l=(e,t=[])=>(o,n)=>(t.includes(n)&&"en"!==n&&o.pathname.substr(0,n.length+2)!=="/"+n+"/"&&(o.host=`${a.Sj[n]||n}.${e}`),o),u=(e,t=[],o=null)=>(n,r)=>(n.host="wordpress.com","object"==typeof o&&o instanceof RegExp&&!o.test(n.pathname)&&(t=[]),n.pathname=e+n.pathname,t.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n),d=(e=[],t=null,o)=>(n,r)=>"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)?n:e.includes(r)&&"en"!==r?("prefix"===o?n.pathname=r+n.pathname:"suffix"===o&&(n.pathname.endsWith("/")?n.pathname+=r+"/":n.pathname+="/"+r),n):n,p=(e=[],t=null)=>(o,n)=>d(e,t,"prefix")(o,n),m=(e=[],t=null)=>(o,n)=>d(e,t,"suffix")(o,n),f={"wordpress.com/support/":p(a._J),"wordpress.com/forums/":p(a.BS),"wordpress.com/blog/":p(a.Sc,/^\/blog\/?$/),"wordpress.com/go/":(e,t)=>["/go/","/go"].includes(e.pathname)||"es"===t?p(a.Cx)(e,t):e,"wordpress.com/pricing/":p(a.Ws),"wordpress.com/tos/":p(a.lW),"wordpress.com/wp-admin/":l("wordpress.com",a.lW),"wordpress.com/wp-login.php":l("wordpress.com",a.lW),"jetpack.com":p(a.rh),"cloud.jetpack.com":p(a.rh),"en.support.wordpress.com":u("/support",a._J),"en.blog.wordpress.com":u("/blog",a.Sc,/^\/$/),"apps.wordpress.com":p(a.lW),"en.forums.wordpress.com":u("/forums",a.BS),"automattic.com/privacy/":p(a.S9),"automattic.com/cookies/":p(a.K8),"wordpress.com/help/contact/":(e,t,o)=>o?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),p(a._J)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:p(a.lW)(e,t),"wordpress.com/theme/":(e,t,o)=>o?e:p(a.lW)(e,t),"wordpress.com/themes/":(e,t,o)=>o?e:p(a.lW)(e,t),"wordpress.com/plugins/":(e,t,o)=>o?e:p(a.lW)(e,t),"wordpress.com/log-in/":(e,t,o)=>o?e:m(a.lW)(e,t),"wordpress.com/start/":(e,t,o)=>o?e:m(a.lW)(e,t),"wordpress.com/learn/":(e,t)=>e.pathname.includes("/learn/webinars/")&&"es"===t?(e.pathname=e.pathname.replace("/learn/webinars/","/learn/es/webinars/"),e):m(a.mt)(e,t),"wordpress.com/plans/":(e,t,o)=>o||"/plans/"!==e.pathname?e:p(a.Ws)(e,t),"wordpress.com/setup/":(e,t,o)=>o?e:m(a.lW)(e,t)};function g(e){try{return new URL(String(e),c).pathname.endsWith("/")}catch(e){return!1}}function h(e,t=function(){return(0,i.t)()??"en"}(),o=!0,n=!1){let r;try{r=new URL(String(e),c)}catch(t){return e}if(r.origin===c)return e;r.protocol="https:",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const s=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===s)return e;const a=[r.host,r.host+s,r.host+r.pathname];for(let s=a.length-1;s>=0;s--)if(a[s]in f){const i=f[a[s]](r,t,o).href;if(!n)return i;try{const t=new URL(i);return g(e)||(t.pathname=t.pathname.replace(/\/+$/,"")),t.href}catch{return i}}return e}function w(){const e=(0,i.Ym)();return(0,s.useCallback)(((t,o,n,r)=>h(t,o||e,n,r)),[e])}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,localizeUrl:w()};return(0,n.jsx)(e,{...o})}),"withLocalizeUrl")},70868:(e,t,o)=>{"use strict";o.d(t,{UD:()=>m});var n=o(89978),r=o(84623),s=o(7729),i=o(78020),a=o(7298),c=o(44583),l=o(93592),u=o(16281),d={placement:"bottom",modifiers:[],strategy:"absolute"};function p(){for(var e=arguments.length,t=new Array(e),o=0;o{"use strict";o.d(t,{A:()=>r});var n=o(16281);function r(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&(0,n.Ng)(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},86622:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(16281),r=o(6742),s=o(67895),i=o(3503);function a(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var a=e.getBoundingClientRect(),c=1,l=1;t&&(0,n.sb)(e)&&(c=e.offsetWidth>0&&(0,r.LI)(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&(0,r.LI)(a.height)/e.offsetHeight||1);var u=((0,n.vq)(e)?(0,s.A)(e):window).visualViewport,d=!(0,i.A)()&&o,p=(a.left+(d&&u?u.offsetLeft:0))/c,m=(a.top+(d&&u?u.offsetTop:0))/l,f=a.width/c,g=a.height/l;return{width:f,height:g,top:m,right:p+f,bottom:m+g,left:p,x:p,y:m}}},54871:(e,t,o)=>{"use strict";o.d(t,{A:()=>v});var n=o(20682),r=o(64787),s=o(13524),i=o(7729),a=o(78020),c=o(24724),l=o(98859),u=o(16281),d=o(86622),p=o(22567),m=o(81458),f=o(22696),g=o(61478),h=o(6742);function w(e,t,o){return t===n.R9?(0,g.A)((0,r.A)(e,o)):(0,u.vq)(t)?function(e,t){var o=(0,d.A)(e,!1,"fixed"===t);return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}(t,o):(0,g.A)((0,s.A)((0,c.A)(e)))}function v(e,t,o,n){var r="clippingParents"===t?function(e){var t=(0,i.A)((0,p.A)(e)),o=["absolute","fixed"].indexOf((0,l.A)(e).position)>=0&&(0,u.sb)(e)?(0,a.A)(e):e;return(0,u.vq)(o)?t.filter((function(e){return(0,u.vq)(e)&&(0,m.A)(e,o)&&"body"!==(0,f.A)(e)})):[]}(e):[].concat(t),s=[].concat(r,[o]),c=s[0],d=s.reduce((function(t,o){var r=w(e,o,n);return t.top=(0,h.T9)(r.top,t.top),t.right=(0,h.jk)(r.right,t.right),t.bottom=(0,h.jk)(r.bottom,t.bottom),t.left=(0,h.T9)(r.left,t.left),t}),w(e,c,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}},89978:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var n=o(86622),r=o(48954),s=o(22696),i=o(16281),a=o(48949),c=o(24724),l=o(72322),u=o(6742);function d(e,t,o){void 0===o&&(o=!1);var d=(0,i.sb)(t),p=(0,i.sb)(t)&&function(e){var t=e.getBoundingClientRect(),o=(0,u.LI)(t.width)/e.offsetWidth||1,n=(0,u.LI)(t.height)/e.offsetHeight||1;return 1!==o||1!==n}(t),m=(0,c.A)(t),f=(0,n.A)(e,p,o),g={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(d||!d&&!o)&&(("body"!==(0,s.A)(t)||(0,l.A)(m))&&(g=(0,r.A)(t)),(0,i.sb)(t)?((h=(0,n.A)(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):m&&(h.x=(0,a.A)(m))),{x:f.left+g.scrollLeft-h.x,y:f.top+g.scrollTop-h.y,width:f.width,height:f.height}}},98859:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(67895);function r(e){return(0,n.A)(e).getComputedStyle(e)}},24724:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(16281);function r(e){return(((0,n.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},13524:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var n=o(24724),r=o(98859),s=o(48949),i=o(53050),a=o(6742);function c(e){var t,o=(0,n.A)(e),c=(0,i.A)(e),l=null==(t=e.ownerDocument)?void 0:t.body,u=(0,a.T9)(o.scrollWidth,o.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=(0,a.T9)(o.scrollHeight,o.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-c.scrollLeft+(0,s.A)(e),m=-c.scrollTop;return"rtl"===(0,r.A)(l||o).direction&&(p+=(0,a.T9)(o.clientWidth,l?l.clientWidth:0)-u),{width:u,height:d,x:p,y:m}}},73077:(e,t,o)=>{"use strict";function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}o.d(t,{A:()=>n})},84623:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(86622);function r(e){var t=(0,n.A)(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}},22696:(e,t,o)=>{"use strict";function n(e){return e?(e.nodeName||"").toLowerCase():null}o.d(t,{A:()=>n})},48954:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(53050),r=o(67895),s=o(16281),i=o(73077);function a(e){return e!==(0,r.A)(e)&&(0,s.sb)(e)?(0,i.A)(e):(0,n.A)(e)}},78020:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var n=o(67895),r=o(22696),s=o(98859),i=o(16281),a=o(81467),c=o(22567),l=o(23842);function u(e){return(0,i.sb)(e)&&"fixed"!==(0,s.A)(e).position?e.offsetParent:null}function d(e){for(var t=(0,n.A)(e),o=u(e);o&&(0,a.A)(o)&&"static"===(0,s.A)(o).position;)o=u(o);return o&&("html"===(0,r.A)(o)||"body"===(0,r.A)(o)&&"static"===(0,s.A)(o).position)?t:o||function(e){var t=/firefox/i.test((0,l.A)());if(/Trident/i.test((0,l.A)())&&(0,i.sb)(e)&&"fixed"===(0,s.A)(e).position)return null;var o=(0,c.A)(e);for((0,i.Ng)(o)&&(o=o.host);(0,i.sb)(o)&&["html","body"].indexOf((0,r.A)(o))<0;){var n=(0,s.A)(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(e)||t}},22567:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(22696),r=o(24724),s=o(16281);function i(e){return"html"===(0,n.A)(e)?e:e.assignedSlot||e.parentNode||((0,s.Ng)(e)?e.host:null)||(0,r.A)(e)}},34990:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(22567),r=o(72322),s=o(22696),i=o(16281);function a(e){return["html","body","#document"].indexOf((0,s.A)(e))>=0?e.ownerDocument.body:(0,i.sb)(e)&&(0,r.A)(e)?e:a((0,n.A)(e))}},64787:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(67895),r=o(24724),s=o(48949),i=o(3503);function a(e,t){var o=(0,n.A)(e),a=(0,r.A)(e),c=o.visualViewport,l=a.clientWidth,u=a.clientHeight,d=0,p=0;if(c){l=c.width,u=c.height;var m=(0,i.A)();(m||!m&&"fixed"===t)&&(d=c.offsetLeft,p=c.offsetTop)}return{width:l,height:u,x:d+(0,s.A)(e),y:p}}},67895:(e,t,o)=>{"use strict";function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}o.d(t,{A:()=>n})},53050:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(67895);function r(e){var t=(0,n.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},48949:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(86622),r=o(24724),s=o(53050);function i(e){return(0,n.A)((0,r.A)(e)).left+(0,s.A)(e).scrollLeft}},16281:(e,t,o)=>{"use strict";o.d(t,{Ng:()=>i,sb:()=>s,vq:()=>r});var n=o(67895);function r(e){return e instanceof(0,n.A)(e).Element||e instanceof Element}function s(e){return e instanceof(0,n.A)(e).HTMLElement||e instanceof HTMLElement}function i(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,n.A)(e).ShadowRoot||e instanceof ShadowRoot)}},3503:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(23842);function r(){return!/^((?!chrome|android).)*safari/i.test((0,n.A)())}},72322:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(98859);function r(e){var t=(0,n.A)(e),o=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+s+r)}},81467:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(22696);function r(e){return["table","td","th"].indexOf((0,n.A)(e))>=0}},7729:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(34990),r=o(22567),s=o(67895),i=o(72322);function a(e,t){var o;void 0===t&&(t=[]);var c=(0,n.A)(e),l=c===(null==(o=e.ownerDocument)?void 0:o.body),u=(0,s.A)(c),d=l?[u].concat(u.visualViewport||[],(0,i.A)(c)?c:[]):c,p=t.concat(d);return l?p:p.concat(a((0,r.A)(d)))}},20682:(e,t,o)=>{"use strict";o.d(t,{DD:()=>h,GM:()=>w,Mn:()=>n,OM:()=>c,Ol:()=>g,R9:()=>p,WY:()=>d,_N:()=>u,ir:()=>f,kb:()=>i,ni:()=>l,pG:()=>s,qZ:()=>a,sQ:()=>r,xf:()=>m});var n="top",r="bottom",s="right",i="left",a="auto",c=[n,r,s,i],l="start",u="end",d="clippingParents",p="viewport",m="popper",f="reference",g=c.reduce((function(e,t){return e.concat([t+"-"+l,t+"-"+u])}),[]),h=[].concat(c,[a]).reduce((function(e,t){return e.concat([t,t+"-"+l,t+"-"+u])}),[]),w=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},83811:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(22696),r=o(16281);const s={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},s=t.attributes[e]||{},i=t.elements[e];(0,r.sb)(i)&&(0,n.A)(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(e){var t=s[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});(0,r.sb)(s)&&(0,n.A)(s)&&(Object.assign(s.style,a),Object.keys(i).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]}},50436:(e,t,o)=>{"use strict";o.d(t,{A:()=>p});var n=o(9908),r=o(84623),s=o(81458),i=o(78020),a=o(29907),c=o(46543),l=o(63778),u=o(11283),d=o(20682);const p={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,s=e.name,p=e.options,m=o.elements.arrow,f=o.modifiersData.popperOffsets,g=(0,n.A)(o.placement),h=(0,a.A)(g),w=[d.kb,d.pG].indexOf(g)>=0?"height":"width";if(m&&f){var v=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,l.A)("number"!=typeof e?e:(0,u.A)(e,d.OM))}(p.padding,o),y=(0,r.A)(m),b="y"===h?d.Mn:d.kb,_="y"===h?d.sQ:d.pG,k=o.rects.reference[w]+o.rects.reference[h]-f[h]-o.rects.popper[w],E=f[h]-o.rects.reference[h],A=(0,i.A)(m),S=A?"y"===h?A.clientHeight||0:A.clientWidth||0:0,C=k/2-E/2,x=v[b],R=S-y[w]-v[_],O=S/2-y[w]/2+C,M=(0,c.u)(x,O,R),P=h;o.modifiersData[s]=((t={})[P]=M,t.centerOffset=M-O,t)}},effect:function(e){var t=e.state,o=e.options.element,n=void 0===o?"[data-popper-arrow]":o;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&(0,s.A)(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},69138:(e,t,o)=>{"use strict";o.d(t,{A:()=>m});var n=o(20682),r=o(78020),s=o(67895),i=o(24724),a=o(98859),c=o(9908),l=o(98889),u=o(6742),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,o=e.popper,c=e.popperRect,l=e.placement,p=e.variation,m=e.offsets,f=e.position,g=e.gpuAcceleration,h=e.adaptive,w=e.roundOffsets,v=e.isFixed,y=m.x,b=void 0===y?0:y,_=m.y,k=void 0===_?0:_,E="function"==typeof w?w({x:b,y:k}):{x:b,y:k};b=E.x,k=E.y;var A=m.hasOwnProperty("x"),S=m.hasOwnProperty("y"),C=n.kb,x=n.Mn,R=window;if(h){var O=(0,r.A)(o),M="clientHeight",P="clientWidth";if(O===(0,s.A)(o)&&(O=(0,i.A)(o),"static"!==(0,a.A)(O).position&&"absolute"===f&&(M="scrollHeight",P="scrollWidth")),l===n.Mn||(l===n.kb||l===n.pG)&&p===n._N)x=n.sQ,k-=(v&&O===R&&R.visualViewport?R.visualViewport.height:O[M])-c.height,k*=g?1:-1;if(l===n.kb||(l===n.Mn||l===n.sQ)&&p===n._N)C=n.pG,b-=(v&&O===R&&R.visualViewport?R.visualViewport.width:O[P])-c.width,b*=g?1:-1}var j,T=Object.assign({position:f},h&&d),N=!0===w?function(e,t){var o=e.x,n=e.y,r=t.devicePixelRatio||1;return{x:(0,u.LI)(o*r)/r||0,y:(0,u.LI)(n*r)/r||0}}({x:b,y:k},(0,s.A)(o)):{x:b,y:k};return b=N.x,k=N.y,g?Object.assign({},T,((j={})[x]=S?"0":"",j[C]=A?"0":"",j.transform=(R.devicePixelRatio||1)<=1?"translate("+b+"px, "+k+"px)":"translate3d("+b+"px, "+k+"px, 0)",j)):Object.assign({},T,((t={})[x]=S?k+"px":"",t[C]=A?b+"px":"",t.transform="",t))}const m={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=void 0===n||n,s=o.adaptive,i=void 0===s||s,a=o.roundOffsets,u=void 0===a||a,d={placement:(0,c.A)(t.placement),variation:(0,l.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},38616:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(67895),r={passive:!0};const s={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,s=e.options,i=s.scroll,a=void 0===i||i,c=s.resize,l=void 0===c||c,u=(0,n.A)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach((function(e){e.addEventListener("scroll",o.update,r)})),l&&u.addEventListener("resize",o.update,r),function(){a&&d.forEach((function(e){e.removeEventListener("scroll",o.update,r)})),l&&u.removeEventListener("resize",o.update,r)}},data:{}}},69322:(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var n=o(83068),r=o(9908),s=o(31791),i=o(25845),a=o(25829),c=o(20682),l=o(98889);const u={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,u=e.name;if(!t.modifiersData[u]._skip){for(var d=o.mainAxis,p=void 0===d||d,m=o.altAxis,f=void 0===m||m,g=o.fallbackPlacements,h=o.padding,w=o.boundary,v=o.rootBoundary,y=o.altBoundary,b=o.flipVariations,_=void 0===b||b,k=o.allowedAutoPlacements,E=t.options.placement,A=(0,r.A)(E),S=g||(A===E||!_?[(0,n.A)(E)]:function(e){if((0,r.A)(e)===c.qZ)return[];var t=(0,n.A)(e);return[(0,s.A)(e),t,(0,s.A)(t)]}(E)),C=[E].concat(S).reduce((function(e,o){return e.concat((0,r.A)(o)===c.qZ?(0,a.A)(t,{placement:o,boundary:w,rootBoundary:v,padding:h,flipVariations:_,allowedAutoPlacements:k}):o)}),[]),x=t.rects.reference,R=t.rects.popper,O=new Map,M=!0,P=C[0],j=0;j=0,F=L?"width":"height",D=(0,i.A)(t,{placement:T,boundary:w,rootBoundary:v,altBoundary:y,padding:h}),W=L?I?c.pG:c.kb:I?c.sQ:c.Mn;x[F]>R[F]&&(W=(0,n.A)(W));var z=(0,n.A)(W),U=[];if(p&&U.push(D[N]<=0),f&&U.push(D[W]<=0,D[z]<=0),U.every((function(e){return e}))){P=T,M=!1;break}O.set(T,U)}if(M)for(var G=function(e){var t=C.find((function(t){var o=O.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},B=_?3:1;B>0;B--){if("break"===G(B))break}t.placement!==P&&(t.modifiersData[u]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},47733:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(20682),r=o(25845);function s(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function i(e){return[n.Mn,n.pG,n.sQ,n.kb].some((function(t){return e[t]>=0}))}const a={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,n=t.rects.reference,a=t.rects.popper,c=t.modifiersData.preventOverflow,l=(0,r.A)(t,{elementContext:"reference"}),u=(0,r.A)(t,{altBoundary:!0}),d=s(l,n),p=s(u,a,c),m=i(d),f=i(p);t.modifiersData[o]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:m,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":f})}}},41102:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(9908),r=o(20682);const s={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,s=e.name,i=o.offset,a=void 0===i?[0,0]:i,c=r.DD.reduce((function(e,o){return e[o]=function(e,t,o){var s=(0,n.A)(e),i=[r.kb,r.Mn].indexOf(s)>=0?-1:1,a="function"==typeof o?o(Object.assign({},t,{placement:e})):o,c=a[0],l=a[1];return c=c||0,l=(l||0)*i,[r.kb,r.pG].indexOf(s)>=0?{x:l,y:c}:{x:c,y:l}}(o,t.rects,a),e}),{}),l=c[t.placement],u=l.x,d=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[s]=c}}},71583:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(96819);const r={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=(0,n.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},76909:(e,t,o)=>{"use strict";o.d(t,{A:()=>f});var n=o(20682),r=o(9908),s=o(29907),i=o(47614),a=o(46543),c=o(84623),l=o(78020),u=o(25845),d=o(98889),p=o(36048),m=o(6742);const f={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,f=e.name,g=o.mainAxis,h=void 0===g||g,w=o.altAxis,v=void 0!==w&&w,y=o.boundary,b=o.rootBoundary,_=o.altBoundary,k=o.padding,E=o.tether,A=void 0===E||E,S=o.tetherOffset,C=void 0===S?0:S,x=(0,u.A)(t,{boundary:y,rootBoundary:b,padding:k,altBoundary:_}),R=(0,r.A)(t.placement),O=(0,d.A)(t.placement),M=!O,P=(0,s.A)(R),j=(0,i.A)(P),T=t.modifiersData.popperOffsets,N=t.rects.reference,I=t.rects.popper,L="function"==typeof C?C(Object.assign({},t.rects,{placement:t.placement})):C,F="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(T){if(h){var z,U="y"===P?n.Mn:n.kb,G="y"===P?n.sQ:n.pG,B="y"===P?"height":"width",V=T[P],q=V+x[U],$=V-x[G],H=A?-I[B]/2:0,J=O===n.ni?N[B]:I[B],Y=O===n.ni?-I[B]:-N[B],K=t.elements.arrow,Q=A&&K?(0,c.A)(K):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,p.A)(),X=Z[U],ee=Z[G],te=(0,a.u)(0,N[B],Q[B]),oe=M?N[B]/2-H-te-X-F.mainAxis:J-te-X-F.mainAxis,ne=M?-N[B]/2+H+te+ee+F.mainAxis:Y+te+ee+F.mainAxis,re=t.elements.arrow&&(0,l.A)(t.elements.arrow),se=re?"y"===P?re.clientTop||0:re.clientLeft||0:0,ie=null!=(z=null==D?void 0:D[P])?z:0,ae=V+oe-ie-se,ce=V+ne-ie,le=(0,a.u)(A?(0,m.jk)(q,ae):q,V,A?(0,m.T9)($,ce):$);T[P]=le,W[P]=le-V}if(v){var ue,de="x"===P?n.Mn:n.kb,pe="x"===P?n.sQ:n.pG,me=T[j],fe="y"===j?"height":"width",ge=me+x[de],he=me-x[pe],we=-1!==[n.Mn,n.kb].indexOf(R),ve=null!=(ue=null==D?void 0:D[j])?ue:0,ye=we?ge:me-N[fe]-I[fe]-ve+F.altAxis,be=we?me+N[fe]+I[fe]-ve-F.altAxis:he,_e=A&&we?(0,a.P)(ye,me,be):(0,a.u)(A?ye:ge,me,A?be:he);T[j]=_e,W[j]=_e-me}t.modifiersData[f]=W}},requiresIfExists:["offset"]}},4068:(e,t,o)=>{"use strict";o.d(t,{n4:()=>f});var n=o(70868),r=o(38616),s=o(71583),i=o(69138),a=o(83811),c=o(41102),l=o(69322),u=o(76909),d=o(50436),p=o(47733),m=[r.A,s.A,i.A,a.A,c.A,l.A,u.A,d.A,p.A],f=(0,n.UD)({defaultModifiers:m})},25829:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(98889),r=o(20682),s=o(25845),i=o(9908);function a(e,t){void 0===t&&(t={});var o=t,a=o.placement,c=o.boundary,l=o.rootBoundary,u=o.padding,d=o.flipVariations,p=o.allowedAutoPlacements,m=void 0===p?r.DD:p,f=(0,n.A)(a),g=f?d?r.Ol:r.Ol.filter((function(e){return(0,n.A)(e)===f})):r.OM,h=g.filter((function(e){return m.indexOf(e)>=0}));0===h.length&&(h=g);var w=h.reduce((function(t,o){return t[o]=(0,s.A)(e,{placement:o,boundary:c,rootBoundary:l,padding:u})[(0,i.A)(o)],t}),{});return Object.keys(w).sort((function(e,t){return w[e]-w[t]}))}},96819:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(9908),r=o(98889),s=o(29907),i=o(20682);function a(e){var t,o=e.reference,a=e.element,c=e.placement,l=c?(0,n.A)(c):null,u=c?(0,r.A)(c):null,d=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2;switch(l){case i.Mn:t={x:d,y:o.y-a.height};break;case i.sQ:t={x:d,y:o.y+o.height};break;case i.pG:t={x:o.x+o.width,y:p};break;case i.kb:t={x:o.x-a.width,y:p};break;default:t={x:o.x,y:o.y}}var m=l?(0,s.A)(l):null;if(null!=m){var f="y"===m?"height":"width";switch(u){case i.ni:t[m]=t[m]-(o[f]/2-a[f]/2);break;case i._N:t[m]=t[m]+(o[f]/2-a[f]/2)}}return t}},44583:(e,t,o)=>{"use strict";function n(e){var t;return function(){return t||(t=new Promise((function(o){Promise.resolve().then((function(){t=void 0,o(e())}))}))),t}}o.d(t,{A:()=>n})},25845:(e,t,o)=>{"use strict";o.d(t,{A:()=>p});var n=o(54871),r=o(24724),s=o(86622),i=o(96819),a=o(61478),c=o(20682),l=o(16281),u=o(63778),d=o(11283);function p(e,t){void 0===t&&(t={});var o=t,p=o.placement,m=void 0===p?e.placement:p,f=o.strategy,g=void 0===f?e.strategy:f,h=o.boundary,w=void 0===h?c.WY:h,v=o.rootBoundary,y=void 0===v?c.R9:v,b=o.elementContext,_=void 0===b?c.xf:b,k=o.altBoundary,E=void 0!==k&&k,A=o.padding,S=void 0===A?0:A,C=(0,u.A)("number"!=typeof S?S:(0,d.A)(S,c.OM)),x=_===c.xf?c.ir:c.xf,R=e.rects.popper,O=e.elements[E?x:_],M=(0,n.A)((0,l.vq)(O)?O:O.contextElement||(0,r.A)(e.elements.popper),w,y,g),P=(0,s.A)(e.elements.reference),j=(0,i.A)({reference:P,element:R,strategy:"absolute",placement:m}),T=(0,a.A)(Object.assign({},R,j)),N=_===c.xf?T:P,I={top:M.top-N.top+C.top,bottom:N.bottom-M.bottom+C.bottom,left:M.left-N.left+C.left,right:N.right-M.right+C.right},L=e.modifiersData.offset;if(_===c.xf&&L){var F=L[m];Object.keys(I).forEach((function(e){var t=[c.pG,c.sQ].indexOf(e)>=0?1:-1,o=[c.Mn,c.sQ].indexOf(e)>=0?"y":"x";I[e]+=F[o]*t}))}return I}},11283:(e,t,o)=>{"use strict";function n(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}o.d(t,{A:()=>n})},47614:(e,t,o)=>{"use strict";function n(e){return"x"===e?"y":"x"}o.d(t,{A:()=>n})},9908:(e,t,o)=>{"use strict";function n(e){return e.split("-")[0]}o.d(t,{A:()=>n})},36048:(e,t,o)=>{"use strict";function n(){return{top:0,right:0,bottom:0,left:0}}o.d(t,{A:()=>n})},29907:(e,t,o)=>{"use strict";function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}o.d(t,{A:()=>n})},83068:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,(function(e){return n[e]}))}},31791:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n={start:"end",end:"start"};function r(e){return e.replace(/start|end/g,(function(e){return n[e]}))}},98889:(e,t,o)=>{"use strict";function n(e){return e.split("-")[1]}o.d(t,{A:()=>n})},6742:(e,t,o)=>{"use strict";o.d(t,{LI:()=>s,T9:()=>n,jk:()=>r});var n=Math.max,r=Math.min,s=Math.round},93592:(e,t,o)=>{"use strict";function n(e){var t=e.reduce((function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}o.d(t,{A:()=>n})},63778:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(36048);function r(e){return Object.assign({},(0,n.A)(),e)}},7298:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(20682);function r(e){var t=new Map,o=new Set,n=[];function r(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||r(e)})),n}function s(e){var t=r(e);return n.GM.reduce((function(e,o){return e.concat(t.filter((function(e){return e.phase===o})))}),[])}},61478:(e,t,o)=>{"use strict";function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}o.d(t,{A:()=>n})},23842:(e,t,o)=>{"use strict";function n(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}o.d(t,{A:()=>n})},46543:(e,t,o)=>{"use strict";o.d(t,{P:()=>s,u:()=>r});var n=o(6742);function r(e,t,o){return(0,n.T9)(e,(0,n.jk)(t,o))}function s(e,t,o){var n=r(e,t,o);return n>o?o:n}},51113:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(86087);const r=(0,n.forwardRef)((function({icon:e,size:t=24,...o},r){return(0,n.cloneElement)(e,{width:t,height:t,...o,ref:r})}))},10991:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(5573),r=o(10790);const s=(0,r.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(n.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},37110:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},51621:e=>{"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},46941:(e,t,o)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(r=n))})),t.splice(r,0,o)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=o(53212)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},53212:(e,t,o)=>{e.exports=function(e){function t(e){let o,r,s,i=null;function a(...e){if(!a.enabled)return;const n=a,r=Number(new Date),s=r-(o||r);n.diff=s,n.prev=o,n.curr=r,o=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((o,r)=>{if("%%"===o)return"%";i++;const s=t.formatters[r];if("function"==typeof s){const t=e[i];o=s.call(n,t),e.splice(i,1),i--}return o})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(r!==t.namespaces&&(r=t.namespaces,s=t.enabled(e)),s),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,r=24*n,s=7*r,i=365.25*r;function a(e,t,o,n){var r=t>=1.5*o;return Math.round(e/o)+" "+n+(r?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*o;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var s=Math.abs(e);if(s>=r)return a(e,s,r,"day");if(s>=n)return a(e,s,n,"hour");if(s>=o)return a(e,s,o,"minute");if(s>=t)return a(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=r)return Math.round(e/r)+"d";if(s>=n)return Math.round(e/n)+"h";if(s>=o)return Math.round(e/o)+"m";if(s>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},78031:e=>{var t="undefined"!=typeof Element,o="function"==typeof Map,n="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function s(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var a,c,l,u;if(Array.isArray(e)){if((a=e.length)!=i.length)return!1;for(c=a;0!=c--;)if(!s(e[c],i[c]))return!1;return!0}if(o&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!i.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!s(c.value[1],i.get(c.value[0])))return!1;return!0}if(n&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!i.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((a=e.length)!=i.length)return!1;for(c=a;0!=c--;)if(e[c]!==i[c])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((a=(l=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(c=a;0!=c--;)if(!Object.prototype.hasOwnProperty.call(i,l[c]))return!1;if(t&&e instanceof Element)return!1;for(c=a;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!e.$$typeof)&&!s(e[l[c]],i[l[c]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return s(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},92128:(e,t,o)=>{"use strict";o.d(t,{E:()=>u});var n=o(51609),r=o(75795),s=o(4068),i=o(78031),a=o.n(i),c=o(88520),l=[],u=function(e,t,o){void 0===o&&(o={});var i=n.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||l},d=n.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),p=d[0],m=d[1],f=n.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,o=Object.keys(t.elements);r.flushSync((function(){m({styles:(0,c.PW)(o.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,c.PW)(o.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),g=n.useMemo((function(){var e={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[f,{name:"applyStyles",enabled:!1}])};return a()(i.current,e)?i.current||e:(i.current=e,e)}),[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,f]),h=n.useRef();return(0,c.Es)((function(){h.current&&h.current.setOptions(g)}),[g]),(0,c.Es)((function(){if(null!=e&&null!=t){var n=(o.createPopper||s.n4)(e,t,g);return h.current=n,function(){n.destroy(),h.current=null}}}),[e,t,o.createPopper]),{state:h.current?h.current.state:null,styles:p.styles,attributes:p.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}}},88520:(e,t,o)=>{"use strict";o.d(t,{Es:()=>s,PW:()=>r});var n=o(51609),r=function(e){return e.reduce((function(e,t){var o=t[0],n=t[1];return e[o]=n,e}),{})},s="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect},90372:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var n=o(46941);const r=o.n(n)()("dops:analytics");let s,i;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const a={initialize:function(e,t,o){a.setUser(e,t),a.setSuperProps(o),a.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){i={ID:e,username:t}},setSuperProps:function(e){s=e},assignSuperProps:function(e){s=Object.assign(s||{},e)},mc:{bumpStat:function(e,t){const o=function(e,t){let o="";if("object"==typeof e){for(const t in e)o+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Bumping stats %o",e)}else o="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Bumping stat "%s" in group "%s"',t,e);return o}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+o+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const o=function(e,t){let o="";if("object"==typeof e){for(const t in e)o+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Built stats %o",e)}else o="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Built stat "%s" in group "%s"',t,e);return o}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+o+"&t="+Math.random())}},pageView:{record:function(e,t){a.tracks.recordPageView(e),a.ga.recordPageView(e,t)}},purchase:{record:function(e,t,o,n,r,s,i){a.ga.recordPurchase(e,t,o,n,r,s,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(s&&(r("- Super Props: %o",s),t=Object.assign(t,s)),r('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};a.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){a.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){r("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};a.ga.initialized||(i&&(e={userId:"u-"+i.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),a.ga.initialized=!0)},recordPageView:function(e,t){a.ga.initialize(),r("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,o,n){a.ga.initialize();let s="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==o&&(s+=" [Option Label: "+o+"]"),void 0!==n&&(s+=" [Option Value: "+n+"]"),r(s),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,o,n)},recordPurchase:function(e,t,o,n,r,s,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:n,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:o,price:r,quantity:s}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=a},85985:(e,t,o)=>{"use strict";o.d(t,{lk:()=>n.lk});var n=o(62634);o(82034),o(65595),o(53265),o(73489),o(76923),o(15877),o(30335),o(88290)},15877:(e,t,o)=>{"use strict";o(51609)},30335:(e,t,o)=>{"use strict";o(86087)},34972:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});const n="Jetpack_Editor_Initial_State";function r(){return"object"==typeof window?window?.[n]??null:null}},73489:(e,t,o)=>{"use strict";var n=o(90372);o(39384),o(86087);const{tracks:r}=n.A,{recordEvent:s}=r},76923:(e,t,o)=>{"use strict";o(47143),o(86087),o(88290)},27105:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>d,E9:()=>u});var n=o(47143),r=o(62634),s=o(94478),i=o(88290);const a="SET_JETPACK_MODULES";function c(e){return u({isLoading:e})}function l(e,t){return{type:"SET_MODULE_UPDATING",name:e,isUpdating:t}}function u(e){return{type:a,options:e}}const d={updateJetpackModuleStatus:function*(e){try{yield l(e.name,!0),yield(0,s.sB)(e);const t=yield(0,s.wz)();return yield u({data:t}),!0}catch(e){const t=(0,n.select)(i.F).getJetpackModules();return yield u(t),!1}finally{yield l(e.name,!1)}},setJetpackModules:u,fetchModules:function*(){if((0,r.Sy)())return!0;try{yield c(!0);const e=yield(0,s.wz)();return yield u({data:e}),!0}catch(e){const t=(0,n.select)(i.F).getJetpackModules();return yield u(t),!1}finally{yield c(!1)}}}},94478:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>l,sB:()=>c,wz:()=>a});var n=o(1455),r=o.n(n);const s="FETCH_JETPACK_MODULES",i="UPDATE_JETPACK_MODULE_STATUS",a=()=>({type:s}),c=e=>({type:i,settings:e}),l={[s]:function(){return r()({path:"/jetpack/v4/module/all",method:"GET"})},[i]:function({settings:e}){return r()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},88290:(e,t,o)=>{"use strict";o.d(t,{F:()=>l});var n=o(47143),r=o(27105),s=o(94478),i=o(38862),a=o(62701),c=o(31640);const l="jetpack-modules",u=(0,n.createReduxStore)(l,{reducer:i.A,actions:r.Ay,controls:s.Ay,resolvers:a.A,selectors:c.A});(0,n.register)(u);const d=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==d&&(0,n.dispatch)(l).setJetpackModules({data:{...d}})},38862:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});const n={isLoading:!1,isUpdating:{},data:{}},r=(e=n,t)=>{switch(t.type){case"SET_JETPACK_MODULES":return{...e,...t.options};case"SET_MODULE_UPDATING":return{...e,isUpdating:{...e.isUpdating,[t.name]:t.isUpdating}}}return e}},62701:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(27105),r=o(94478);const s={getJetpackModules:function*(){try{const e=yield(0,r.wz)();if(e)return(0,n.E9)({data:e})}catch(e){console.error(e)}}}},31640:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(62634);const r={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,n.Sy)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},53265:(e,t,o)=>{"use strict";var n=o(27723);o(93832),o(66087);const __=n.__;__("Upgrade your plan to use video covers","jetpack-mu-wpcom"),__("Upgrade your plan to upload audio","jetpack-mu-wpcom")},82034:(e,t,o)=>{"use strict";o(92279)},62634:(e,t,o)=>{"use strict";o.d(t,{Sy:()=>s,lk:()=>i});var n=o(34972);function r(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function s(){return"simple"===r()}function i(){const e=(0,n.A)();return e?.jetpack?.is_coming_soon??!1}},65595:(e,t,o)=>{"use strict";o(96072),o(29491)},6416:(e,t,o)=>{"object"==typeof window&&window.JETPACK_MU_WPCOM_SETTINGS&&(o.p=window.JETPACK_MU_WPCOM_SETTINGS.assetsUrl)},15292:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(51609),r=o(80421),s=o(51570),i=o(5474);const a=({onMinimize:e,onDismiss:t,onNextStepProgression:o,onPreviousStepProgression:a,tourContainerRef:c,isMinimized:l})=>{function u(){return(0,i.A)({onEscape:e,onArrowRight:o,onArrowLeft:a,tourContainerRef:c}),(0,s.A)(c),null}function d(){return(0,i.A)({onEscape:t("esc-key-minimized"),tourContainerRef:c}),null}return(0,r.A)(c)?l?n.createElement(d,null):n.createElement(u,null):null}},64905:(e,t,o)=>{"use strict";o.d(t,{A:()=>v});var n=o(96072),r=o.n(n),s=o(29491),i=o(86087),a=o(13022),c=o(92128),l=o(82676),u=o(16839),d=o(58158),p=o(15292),m=o(16418),f=o(12818),g=o(88982),h=o(93758);const w=(e,t)=>{"function"==typeof t&&t(e)},v=({config:e})=>{const[t,o]=(0,i.useState)(0),[n,v]=(0,i.useState)(null),[y,b]=(0,i.useState)(e.isMinimized??!1),[_,k]=(0,i.useState)(null),[E,A]=(0,i.useState)(!1),S=(0,i.useRef)(null),C=(0,s.useViewportMatch)("mobile","<"),x=e.steps.length-1,R=e.steps[t].referenceElements,O=R?.[C?"mobile":"desktop"]||R?.desktop,M=O?document.querySelector(O):null;(0,i.useEffect)((()=>{e.isMinimized&&b(!0)}),[e.isMinimized]);const P=(0,i.useCallback)((()=>!1!==e.options?.effects?.arrowIndicator&&!(!M||y||!E)),[e.options?.effects?.arrowIndicator,y,M,E]),j=(0,i.useCallback)((()=>!!e.options?.effects?.spotlight&&!y),[e.options?.effects?.spotlight,y]),T=(0,i.useCallback)((()=>!(j()||!e.options?.effects?.overlay)&&!y),[e.options?.effects?.overlay,y,j]),N=(0,i.useCallback)((o=>()=>{e.closeHandler(e.steps,t,o)}),[e,t]),I=(0,i.useCallback)((()=>{let n=t;x>t&&(n=t+1,o(n)),w(n,e.options?.callbacks?.onNextStep)}),[e.options?.callbacks?.onNextStep,t,x]),L=(0,i.useCallback)((()=>{let n=t;t>0&&(n=t-1,o(n)),w(n,e.options?.callbacks?.onPreviousStep)}),[e.options?.callbacks?.onPreviousStep,t]),F=(0,i.useCallback)((t=>{o(t),w(t,e.options?.callbacks?.onGoToStep)}),[e.options?.callbacks?.onGoToStep]),D=(0,i.useCallback)((()=>{b(!0),w(t,e.options?.callbacks?.onMinimize)}),[e.options?.callbacks?.onMinimize,t]),W=(0,i.useCallback)((()=>{b(!1),w(t,e.options?.callbacks?.onMaximize)}),[e.options?.callbacks?.onMaximize,t]),{styles:z,attributes:U,update:G}=(0,c.E)(M,_,{strategy:"fixed",placement:e?.placement??"bottom",modifiers:[{name:"preventOverflow",options:{rootBoundary:"document",padding:16}},{name:"arrow",options:{padding:12}},{name:"offset",options:{offset:[0,P()?12:10]}},{name:"flip",options:{fallbackPlacements:["top","left","right"]}},(0,i.useMemo)((()=>(0,d.Y)(e.options?.effects?.liveResize)),[e.options?.effects?.liveResize]),...e.options?.popperModifiers||[]]}),B=!y&&M&&E?{style:z?.popper,...U?.popper}:null,V=!y&&M&&E?{style:z?.arrow,...U?.arrow}:null;(0,i.useEffect)((()=>{setTimeout((()=>n?.focus()))}),[n]),(0,i.useEffect)((()=>{M?(A(!1),G&&G().then((()=>A(!0))).catch((()=>A(!0)))):A(!0)}),[G,M]),(0,i.useEffect)((()=>{M&&e.options?.effects?.autoScroll&&M.scrollIntoView(e.options.effects.autoScroll)}),[e.options?.effects?.autoScroll,M]);const q=(0,a.A)("tour-kit-frame",C?"is-mobile":"is-desktop",{"is-visible":E},(0,u.e)(e.options?.classNames));return(0,l.A)(t,e.options?.callbacks?.onStepViewOnce),(0,i.useEffect)((()=>{e.options?.callbacks?.onStepView&&w(t,e.options?.callbacks?.onStepView)}),[e.options?.callbacks?.onStepView,t]),React.createElement(React.Fragment,null,React.createElement(p.A,{onMinimize:D,onDismiss:N,onNextStepProgression:I,onPreviousStepProgression:L,tourContainerRef:S,isMinimized:y}),React.createElement("div",{className:q,ref:S},T()&&React.createElement(f.A,{visible:!0}),j()&&React.createElement(g.A,r()({referenceElement:M,liveResize:e.options?.effects?.liveResize||{}},e.options?.effects?.spotlight||{})),React.createElement("div",r()({className:"tour-kit-frame__container",ref:k,tabIndex:-1},B),P()&&React.createElement("div",r()({className:"tour-kit-frame__arrow","data-popper-arrow":!0},V)),y?React.createElement(m.A,{config:e,steps:e.steps,currentStepIndex:t,onMaximize:W,onDismiss:N}):React.createElement(h.A,{config:e,steps:e.steps,currentStepIndex:t,onMinimize:D,onDismiss:N,onNextStep:I,onPreviousStep:L,onGoToStep:F,setInitialFocusedElement:v}))))}},16418:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const n=({config:e,steps:t,currentStepIndex:o,onMaximize:n,onDismiss:r})=>React.createElement("div",{className:"tour-kit-minimized"},React.createElement(e.renderers.tourMinimized,{steps:t,currentStepIndex:o,onMaximize:n,onDismiss:r}))},12818:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(13022);const r=({visible:e})=>React.createElement("div",{className:(0,n.A)("tour-kit-overlay",{"is-visible":e})})},53812:(e,t,o)=>{"use strict";o.d(t,{q:()=>r});var n=o(88982);const r=({enabled:e=!1,rootElementSelector:t="#wpwrap"})=>e?React.createElement("style",null,`\n .${n.E}, .${n.E} * {\n pointer-events: auto;\n }\n .tour-kit-frame__container button {\n pointer-events: auto;\n }\n .tour-kit-spotlight, .tour-kit-overlay {\n pointer-events: none;\n }\n ${t} :not(.${n.E}, .${n.E} *) {\n pointer-events: none;\n }\n `):null},88982:(e,t,o)=>{"use strict";o.d(t,{A:()=>p,E:()=>d});var n=o(96072),r=o.n(n),s=o(86087),i=o(13022),a=o(92128),c=o(58158),l=o(12818),u=o(53812);const d="wp-tour-kit-spotlit",p=({referenceElement:e,styles:t,interactivity:o,liveResize:n})=>{const[p,m]=(0,s.useState)(null),f=e?.getBoundingClientRect(),g=[{name:"flip",enabled:!1},{name:"preventOverflow",options:{mainAxis:!1}},(0,s.useMemo)((()=>({name:"offset",options:{offset:({placement:e,reference:t,popper:o})=>"bottom"===e?[0,-(t.height+(o.height-t.height)/2)]:[0,0]}})),[]),(0,s.useMemo)((()=>(0,c.Y)(n)),[n])],{styles:h,attributes:w}=(0,a.E)(e,p,{strategy:"fixed",placement:"bottom",modifiers:g}),v=f?{width:`${f.width}px`,height:`${f.height}px`}:null,y=e?{style:{...v&&v,...h?.popper,...t&&t},...w?.popper}:null;return(0,s.useEffect)((()=>(e?.classList.add(d),()=>{e?.classList.remove(d)})),[e]),React.createElement(React.Fragment,null,React.createElement(u.q,o),React.createElement(l.A,{visible:!y}),React.createElement("div",r()({className:(0,i.A)("tour-kit-spotlight",{"is-visible":!!y}),ref:m},y)))}},93758:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(29491),r=o(13022),s=o(16839);const i=({config:e,steps:t,currentStepIndex:o,onMinimize:i,onDismiss:a,onNextStep:c,onPreviousStep:l,setInitialFocusedElement:u,onGoToStep:d})=>{const p=(0,n.useViewportMatch)("mobile","<"),m=(0,r.A)("tour-kit-step",`is-step-${o}`,(0,s.e)(e.steps[o].options?.classNames?.[p?"mobile":"desktop"]));return React.createElement("div",{className:m},React.createElement(e.renderers.tourStep,{steps:t,currentStepIndex:o,onDismiss:a,onNextStep:c,onPreviousStep:l,onMinimize:i,setInitialFocusedElement:u,onGoToStep:d}))}},8629:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var n=o(86087),r=o(51609),s=o.n(r),i=o(55910),a=o(62154),c=o(64905);const l=({config:e,__temp__className:t})=>{const o=(0,n.useRef)(document.createElement("div")).current;return(0,n.useEffect)((()=>{const n=["tour-kit",...t?[t]:[]];o.classList.add(...n);const r=e.options?.portalParentElement||document.body;return r.appendChild(o),()=>{r.removeChild(o)}}),[t,o,e.options?.portalParentElement]),s().createElement(a.A,null,s().createElement(i.tu,{config:e},s().createElement("div",null,(0,n.createPortal)(s().createElement(c.A,{config:e}),o))))}},75888:(e,t,o)=>{"use strict";o.d(t,{J:()=>r,X:()=>n});const n="start-writing",r="design-first"},44935:(e,t,o)=>{"use strict";o.d(t,{Z:()=>c,f:()=>l});var n=o(1455),r=o.n(n),s=o(86087),i=o(51609);const a=i.createContext({hasSeenSellerCelebrationModal:!1,updateHasSeenSellerCelebrationModal:()=>{}}),c=()=>(0,i.useContext)(a),l=function({children:e}){const[t,o]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{r()({path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal"}).then((e=>o(e.has_seen_seller_celebration_modal))).catch((()=>o(!1)))}),[]),i.createElement(a.Provider,{value:{hasSeenSellerCelebrationModal:t,updateHasSeenSellerCelebrationModal:function(e){r()({method:"PUT",path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal",data:{has_seen_seller_celebration_modal:e}}).finally((()=>{o(!0)}))}}},e)}},95359:(e,t,o)=>{"use strict";o.d(t,{j:()=>l,v:()=>c});var n=o(1455),r=o.n(n),s=o(86087),i=o(51609);const a=i.createContext({hasSeenVideoCelebrationModal:!1,updateHasSeenVideoCelebrationModal:()=>{}}),c=()=>(0,i.useContext)(a),l=function({children:e}){const[t,o]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{r()({path:"/wpcom/v2/block-editor/has-seen-video-celebration-modal"}).then((e=>o(e.has_seen_video_celebration_modal))).catch((()=>o(!1)))}),[]),i.createElement(a.Provider,{value:{hasSeenVideoCelebrationModal:t,updateHasSeenVideoCelebrationModal:function(e){r()({method:"PUT",path:"/wpcom/v2/block-editor/has-seen-video-celebration-modal",data:{has_seen_video_celebration_modal:e}}).finally((()=>{o(e)}))}}},e)}},55910:(e,t,o)=>{"use strict";o.d(t,{Z4:()=>n.Z,f6:()=>n.f,hy:()=>i.h,jO:()=>r.j,l7:()=>s.l,rN:()=>s.r,tu:()=>i.t,v2:()=>r.v});var n=o(44935),r=o(95359),s=o(42382),i=o(25199)},42382:(e,t,o)=>{"use strict";o.d(t,{l:()=>c,r:()=>a});var n=o(47143),r=o(86087),s=o(51609);const i=s.createContext(!1),a=()=>(0,s.useContext)(i),c=({children:e})=>{const t=(0,n.useSelect)((e=>e("automattic/wpcom-welcome-guide").getShouldShowFirstPostPublishedModal()),[]),{fetchShouldShowFirstPostPublishedModal:o}=(0,n.useDispatch)("automattic/wpcom-welcome-guide");return(0,r.useEffect)((()=>{o()}),[o]),s.createElement(i.Provider,{value:t},e)}},25199:(e,t,o)=>{"use strict";o.d(t,{h:()=>i,t:()=>s});var n=o(86087);const r=(0,n.createContext)({}),s=({config:e,children:t})=>React.createElement(r.Provider,{value:{config:e}},t),i=()=>(0,n.useContext)(r)},62154:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(51609),r=o.n(n);class s extends r().Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t)}render(){return this.state.hasError?r().createElement("h1",null,"Something went wrong."):this.props.children}}const i=s},42586:(e,t,o)=>{"use strict";o.d(t,{Bg:()=>s.A,cz:()=>i.A,kN:()=>r.A,sr:()=>n.A});o(80421),o(51570),o(36883),o(5474);var n=o(97412),r=o(31248),s=o(85410),i=o(97827);o(82676)},80421:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(86087);const r=e=>{const[t,o]=(0,n.useState)(!1),r=(0,n.useCallback)((()=>{const t=e.current?.ownerDocument;t&&t.hasFocus()&&e.current?.contains(t.activeElement)?o(!0):o(!1)}),[e]),s=(0,n.useCallback)((t=>{e.current?.contains(t.target)?o(!0):o(!1)}),[e]),i=(0,n.useCallback)((t=>{"Tab"===t.key&&(e.current?.contains(t.target)?o(!0):o(!1))}),[e]);return(0,n.useEffect)((()=>(document.addEventListener("focusin",r),document.addEventListener("mousedown",s),document.addEventListener("keyup",i),()=>{document.removeEventListener("focusin",r),document.removeEventListener("mousedown",s),document.removeEventListener("keyup",i)})),[e,r,i,s]),t}},51570:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(28107),r=o(86087);const s=e=>{const[t,o]=(0,r.useState)(),[s,i]=(0,r.useState)(),a=(0,r.useCallback)((e=>{let o=!1;"Tab"===e.key&&(e.shiftKey?t&&t.ownerDocument.activeElement===t&&(s?.focus(),o=!0):s&&s.ownerDocument.activeElement===s&&(t?.focus(),o=!0)),o&&(e.preventDefault(),e.stopPropagation())}),[t,s]);(0,r.useEffect)((()=>{const t=e.current?n.focus.focusable.find(e.current):[];return t&&t.length&&(o(t[0]),i(t[t.length-1])),document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}}),[e,a])}},36883:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(47143),r=o(86087);const s=()=>{const[e,t]=(0,r.useState)(!1),o=(0,n.useSelect)((t=>{if(e)return"";const o=t("core/block-editor").getSelectedBlock();return o?.name??""})),s=(0,n.useSelect)((t=>{if(e)return"";const o=t("core/block-editor").getSelectedBlock();if(o?.clientId){const e=t("core/block-editor").getBlockParents(o?.clientId);if(e&&e.length){const o=t("core/block-editor").getBlock(e[e.length-1]);return o?.name??""}}return""}));return(0,r.useEffect)((()=>{e||!o.includes("payments")&&!s.includes("payments")||t(!0)}),[o,s,e,t]),e}},5474:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(86087);const r=({onEscape:e,onArrowRight:t,onArrowLeft:o,tourContainerRef:r})=>{const s=(0,n.useCallback)((()=>!(!r.current||r.current.contains(r.current.ownerDocument.activeElement))),[r]),i=(0,n.useCallback)((()=>{r.current?.querySelector(".tour-kit-frame__container")?.focus()}),[r]),a=(0,n.useCallback)((n=>{let r=!1;switch(n.key){case"Escape":if(e){if(s())return;e(),i(),r=!0}break;case"ArrowRight":if(t){if(s())return;t(),r=!0}break;case"ArrowLeft":if(o){if(s())return;o(),r=!0}}r&&(n.preventDefault(),n.stopPropagation())}),[e,t,o,s,i]),c=(0,n.useCallback)((e=>{var t;(t=e.target,["A","INPUT","BUTTON","TEXTAREA","SELECT"].includes(t?.tagName)||t?.tabIndex>=0)||i()}),[i]);(0,n.useEffect)((()=>{const e=r.current;return document.addEventListener("keydown",a),e?.addEventListener("click",c),()=>{document.removeEventListener("keydown",a),e?.removeEventListener("click",c)}}),[a,c,r])}},97412:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var n=o(47143),r=o(86087),s=o(44935),i=o(36883),a=o(85410);const c=()=>{const[e,t]=(0,r.useState)(!1),{siteIntent:o}=(0,a.A)(),c=(0,i.A)(),{hasSeenSellerCelebrationModal:l}=(0,s.Z)(),u=(0,n.useSelect)((e=>{if(!!e("core/edit-site")){const t=e("core/edit-site").getPage(),o=parseInt(t?.context?.postId),n=e("core").getEntityRecord("postType","page",o);let r=!1;if(!l){const t=e("core/block-editor").getGlobalBlockCount("jetpack/recurring-payments")>0,o=e("core/block-editor").getGlobalBlockCount("jetpack/simple-payments")>0;r=(n?.content?.raw?.includes("\x3c!-- wp:jetpack/recurring-payments --\x3e")||n?.content?.raw?.includes("\x3c!-- wp:jetpack/simple-payments --\x3e")||t||o)??!1}return r}let t=0;return l||(t+=e("core/block-editor").getGlobalBlockCount("jetpack/recurring-payments"),t+=e("core/block-editor").getGlobalBlockCount("jetpack/simple-payments")),t>0}));return(0,r.useEffect)((()=>{"sell"===o&&u&&c&&!l&&t(!0)}),[o,u,c,l]),e}},31248:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(86087),r=o(96487),s=o(95359),i=o(85410);const a=e=>{const{siteIntent:t}=(0,i.A)(),[o,a]=(0,n.useState)(!1),{hasSeenVideoCelebrationModal:c}=(0,s.v)();return(0,n.useEffect)((()=>{"videopress"!==t||c?c&&a(!1):(async()=>{const e=await(0,r.Ay)({path:`/sites/${window._currentSiteId}?http_envelope=1`,apiVersion:"1.1"});e?.options?.launchpad_checklist_tasks_statuses?.video_uploaded&&a(!0)})()}),[e,t,c]),o}},85410:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const n=()=>({siteIntent:window.launchpadOptions?.siteIntentOption,siteIntentFetched:!0})},97827:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(86087),r=o(51609),s=o(96487);const i=e=>{const[t,o]=(0,n.useState)({}),i=(0,r.useCallback)((async()=>{const t=await(0,s.Ay)({path:`/sites/${e}?http_envelope=1`,apiVersion:"1.1"});t?.plan&&o(t.plan)}),[e]);return(0,n.useEffect)((()=>{i()}),[i]),t}},82676:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(86087);const r=(e,t)=>{const[o,r]=(0,n.useState)([]);(0,n.useEffect)((()=>{o.includes(e)||(r((t=>[...t,e])),t?.(e))}),[e,t,o])}},56353:(e,t,o)=>{"use strict";o.d(t,{Bg:()=>i.Bg,JV:()=>n.J,Oo:()=>r.O,Xf:()=>n.X,Z4:()=>s.Z4,cz:()=>i.cz,f6:()=>s.f6,hy:()=>s.hy,jO:()=>s.jO,kN:()=>i.kN,l7:()=>s.l7,ns:()=>r.A,rN:()=>s.rN,sr:()=>i.sr,v2:()=>s.v2});o(8629);var n=o(75888),r=o(15027),s=o(55910),i=o(42586)},16839:(e,t,o)=>{"use strict";o.d(t,{Y:()=>s,e:()=>r});var n=o(46941);function r(e){return e?.length?e.toString().split(","):null}const s=o.n(n)()("tour-kit")},58158:(e,t,o)=>{"use strict";o.d(t,{Y:()=>r});var n=o(16839);const r=({rootElementSelector:e,mutation:t=!1,resize:o=!1}={mutation:!1,resize:!1})=>({name:"liveResizeModifier",enabled:!0,phase:"main",fn:()=>{},effect:r=>{try{const{state:s,instance:i}=r,a=Symbol(),{reference:c}=s.elements;if(c[a]={resizeObserver:new ResizeObserver((()=>{i.update()})),mutationObserver:new MutationObserver((()=>{i.update()}))},o&&(c instanceof Element?c[a].resizeObserver.observe(c):(0,n.Y)("Error: ResizeObserver does not work with virtual elements, Tour Kit will not resize automatically if the size of the referenced element changes.")),t){const t=document.querySelector(e||"#wpwrap");t instanceof Element?c[a].mutationObserver.observe(t,{attributes:!0,characterData:!0,childList:!0,subtree:!0}):(0,n.Y)(`Error: ${e} selector did not find a valid DOM element, Tour Kit will not update automatically if the DOM layout changes.`)}return()=>{c[a].resizeObserver.disconnect(),c[a].mutationObserver.disconnect(),delete c[a]}}catch(e){(0,n.Y)("Error: Tour Kit live resize modifier failed unexpectedly:",e)}}})},71125:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var n=o(56427),r=o(86087),s=o(27723),i=o(51113),a=o(10991),c=o(64146);const __=s.__,l=({steps:e,onMaximize:t,onDismiss:o,currentStepIndex:l})=>{const u=l+1,d=e.length-1+1;return React.createElement(n.Flex,{gap:0,className:"wpcom-tour-kit-minimized"},React.createElement(n.Button,{onClick:t,"aria-label":__("Resume Tour","jetpack-mu-wpcom")},React.createElement(n.Flex,{gap:13},React.createElement("p",null,(0,r.createInterpolateElement)((0,s.sprintf)(/* translators: 1: current page number, 2: total number of pages */ +(()=>{var e={78254:(e,t,o)=>{"use strict";o.d(t,{YO:()=>c,Ym:()=>u,t:()=>l});var n=o(10790),r=o(29491),s=o(27723),i=o(51609);const a=(0,i.createContext)(null),c=({children:e,localeSlug:t})=>(0,n.jsx)(a.Provider,{value:t,children:e});function l(){return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(function(){const e=s.getLocaleData()||{};return e[""]?.lang||e[""]?.language||""}())}function u(){const e=(0,i.useContext)(a),t=!!e,[o,n]=(0,i.useState)(l());return(0,i.useEffect)((()=>{if(!t)return n(l()),s.subscribe((()=>{n(l())}))}),[t]),e||o||"undefined"!=typeof window&&window._currentUserLocale||"en"}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,locale:u()};return(0,n.jsx)(e,{...o})}),"withLocale")},57711:(e,t,o)=>{"use strict";o.d(t,{BS:()=>d,Cx:()=>r,K8:()=>i,S9:()=>s,Sc:()=>n,Sj:()=>l,Ws:()=>c,_J:()=>u,lW:()=>p,mt:()=>a,rh:()=>m});const n=["en","ja","es","pt","fr","pt-br"],r=["en","pt-br","de","es","fr","it"],s=["en","fr","de","es"],i=["en","fr","de","es"],a=["en","es"],c=["ar","de","el","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"],l={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},u=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],d=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],p=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],m=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},14437:(e,t,o)=>{"use strict";o.d(t,{rm:()=>h});var n=o(10790),r=o(29491),s=o(51609),i=o(78254),a=o(57711);const c="http://__domain__.invalid";const l=(e,t=[])=>(o,n)=>(t.includes(n)&&"en"!==n&&o.pathname.substr(0,n.length+2)!=="/"+n+"/"&&(o.host=`${a.Sj[n]||n}.${e}`),o),u=(e,t=[],o=null)=>(n,r)=>(n.host="wordpress.com","object"==typeof o&&o instanceof RegExp&&!o.test(n.pathname)&&(t=[]),n.pathname=e+n.pathname,t.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n),d=(e=[],t=null,o)=>(n,r)=>"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)?n:e.includes(r)&&"en"!==r?("prefix"===o?n.pathname=r+n.pathname:"suffix"===o&&(n.pathname.endsWith("/")?n.pathname+=r+"/":n.pathname+="/"+r),n):n,p=(e=[],t=null)=>(o,n)=>d(e,t,"prefix")(o,n),m=(e=[],t=null)=>(o,n)=>d(e,t,"suffix")(o,n),f={"wordpress.com/support/":p(a._J),"wordpress.com/forums/":p(a.BS),"wordpress.com/blog/":p(a.Sc,/^\/blog\/?$/),"wordpress.com/go/":(e,t)=>["/go/","/go"].includes(e.pathname)||"es"===t?p(a.Cx)(e,t):e,"wordpress.com/pricing/":p(a.Ws),"wordpress.com/tos/":p(a.lW),"wordpress.com/wp-admin/":l("wordpress.com",a.lW),"wordpress.com/wp-login.php":l("wordpress.com",a.lW),"jetpack.com":p(a.rh),"cloud.jetpack.com":p(a.rh),"en.support.wordpress.com":u("/support",a._J),"en.blog.wordpress.com":u("/blog",a.Sc,/^\/$/),"apps.wordpress.com":p(a.lW),"en.forums.wordpress.com":u("/forums",a.BS),"automattic.com/privacy/":p(a.S9),"automattic.com/cookies/":p(a.K8),"wordpress.com/help/contact/":(e,t,o)=>o?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),p(a._J)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:p(a.lW)(e,t),"wordpress.com/theme/":(e,t,o)=>o?e:p(a.lW)(e,t),"wordpress.com/themes/":(e,t,o)=>o?e:p(a.lW)(e,t),"wordpress.com/plugins/":(e,t,o)=>o?e:p(a.lW)(e,t),"wordpress.com/log-in/":(e,t,o)=>o?e:m(a.lW)(e,t),"wordpress.com/start/":(e,t,o)=>o?e:m(a.lW)(e,t),"wordpress.com/learn/":(e,t)=>e.pathname.includes("/learn/webinars/")&&"es"===t?(e.pathname=e.pathname.replace("/learn/webinars/","/learn/es/webinars/"),e):m(a.mt)(e,t),"wordpress.com/plans/":(e,t,o)=>o||"/plans/"!==e.pathname?e:p(a.Ws)(e,t),"wordpress.com/setup/":(e,t,o)=>o?e:m(a.lW)(e,t)};function g(e){try{return new URL(String(e),c).pathname.endsWith("/")}catch(e){return!1}}function h(e,t=function(){return(0,i.t)()??"en"}(),o=!0,n=!1){let r;try{r=new URL(String(e),c)}catch(t){return e}if(r.origin===c)return e;r.protocol="https:",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const s=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===s)return e;const a=[r.host,r.host+s,r.host+r.pathname];for(let s=a.length-1;s>=0;s--)if(a[s]in f){const i=f[a[s]](r,t,o).href;if(!n)return i;try{const t=new URL(i);return g(e)||(t.pathname=t.pathname.replace(/\/+$/,"")),t.href}catch{return i}}return e}function w(){const e=(0,i.Ym)();return(0,s.useCallback)(((t,o,n,r)=>h(t,o||e,n,r)),[e])}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,localizeUrl:w()};return(0,n.jsx)(e,{...o})}),"withLocalizeUrl")},70868:(e,t,o)=>{"use strict";o.d(t,{UD:()=>m});var n=o(89978),r=o(84623),s=o(7729),i=o(78020),a=o(7298),c=o(44583),l=o(93592),u=o(16281),d={placement:"bottom",modifiers:[],strategy:"absolute"};function p(){for(var e=arguments.length,t=new Array(e),o=0;o{"use strict";o.d(t,{A:()=>r});var n=o(16281);function r(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&(0,n.Ng)(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},86622:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(16281),r=o(6742),s=o(67895),i=o(3503);function a(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var a=e.getBoundingClientRect(),c=1,l=1;t&&(0,n.sb)(e)&&(c=e.offsetWidth>0&&(0,r.LI)(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&(0,r.LI)(a.height)/e.offsetHeight||1);var u=((0,n.vq)(e)?(0,s.A)(e):window).visualViewport,d=!(0,i.A)()&&o,p=(a.left+(d&&u?u.offsetLeft:0))/c,m=(a.top+(d&&u?u.offsetTop:0))/l,f=a.width/c,g=a.height/l;return{width:f,height:g,top:m,right:p+f,bottom:m+g,left:p,x:p,y:m}}},54871:(e,t,o)=>{"use strict";o.d(t,{A:()=>v});var n=o(20682),r=o(64787),s=o(13524),i=o(7729),a=o(78020),c=o(24724),l=o(98859),u=o(16281),d=o(86622),p=o(22567),m=o(81458),f=o(22696),g=o(61478),h=o(6742);function w(e,t,o){return t===n.R9?(0,g.A)((0,r.A)(e,o)):(0,u.vq)(t)?function(e,t){var o=(0,d.A)(e,!1,"fixed"===t);return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}(t,o):(0,g.A)((0,s.A)((0,c.A)(e)))}function v(e,t,o,n){var r="clippingParents"===t?function(e){var t=(0,i.A)((0,p.A)(e)),o=["absolute","fixed"].indexOf((0,l.A)(e).position)>=0&&(0,u.sb)(e)?(0,a.A)(e):e;return(0,u.vq)(o)?t.filter((function(e){return(0,u.vq)(e)&&(0,m.A)(e,o)&&"body"!==(0,f.A)(e)})):[]}(e):[].concat(t),s=[].concat(r,[o]),c=s[0],d=s.reduce((function(t,o){var r=w(e,o,n);return t.top=(0,h.T9)(r.top,t.top),t.right=(0,h.jk)(r.right,t.right),t.bottom=(0,h.jk)(r.bottom,t.bottom),t.left=(0,h.T9)(r.left,t.left),t}),w(e,c,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}},89978:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var n=o(86622),r=o(48954),s=o(22696),i=o(16281),a=o(48949),c=o(24724),l=o(72322),u=o(6742);function d(e,t,o){void 0===o&&(o=!1);var d=(0,i.sb)(t),p=(0,i.sb)(t)&&function(e){var t=e.getBoundingClientRect(),o=(0,u.LI)(t.width)/e.offsetWidth||1,n=(0,u.LI)(t.height)/e.offsetHeight||1;return 1!==o||1!==n}(t),m=(0,c.A)(t),f=(0,n.A)(e,p,o),g={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(d||!d&&!o)&&(("body"!==(0,s.A)(t)||(0,l.A)(m))&&(g=(0,r.A)(t)),(0,i.sb)(t)?((h=(0,n.A)(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):m&&(h.x=(0,a.A)(m))),{x:f.left+g.scrollLeft-h.x,y:f.top+g.scrollTop-h.y,width:f.width,height:f.height}}},98859:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(67895);function r(e){return(0,n.A)(e).getComputedStyle(e)}},24724:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(16281);function r(e){return(((0,n.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},13524:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var n=o(24724),r=o(98859),s=o(48949),i=o(53050),a=o(6742);function c(e){var t,o=(0,n.A)(e),c=(0,i.A)(e),l=null==(t=e.ownerDocument)?void 0:t.body,u=(0,a.T9)(o.scrollWidth,o.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=(0,a.T9)(o.scrollHeight,o.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-c.scrollLeft+(0,s.A)(e),m=-c.scrollTop;return"rtl"===(0,r.A)(l||o).direction&&(p+=(0,a.T9)(o.clientWidth,l?l.clientWidth:0)-u),{width:u,height:d,x:p,y:m}}},73077:(e,t,o)=>{"use strict";function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}o.d(t,{A:()=>n})},84623:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(86622);function r(e){var t=(0,n.A)(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}},22696:(e,t,o)=>{"use strict";function n(e){return e?(e.nodeName||"").toLowerCase():null}o.d(t,{A:()=>n})},48954:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(53050),r=o(67895),s=o(16281),i=o(73077);function a(e){return e!==(0,r.A)(e)&&(0,s.sb)(e)?(0,i.A)(e):(0,n.A)(e)}},78020:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var n=o(67895),r=o(22696),s=o(98859),i=o(16281),a=o(81467),c=o(22567),l=o(23842);function u(e){return(0,i.sb)(e)&&"fixed"!==(0,s.A)(e).position?e.offsetParent:null}function d(e){for(var t=(0,n.A)(e),o=u(e);o&&(0,a.A)(o)&&"static"===(0,s.A)(o).position;)o=u(o);return o&&("html"===(0,r.A)(o)||"body"===(0,r.A)(o)&&"static"===(0,s.A)(o).position)?t:o||function(e){var t=/firefox/i.test((0,l.A)());if(/Trident/i.test((0,l.A)())&&(0,i.sb)(e)&&"fixed"===(0,s.A)(e).position)return null;var o=(0,c.A)(e);for((0,i.Ng)(o)&&(o=o.host);(0,i.sb)(o)&&["html","body"].indexOf((0,r.A)(o))<0;){var n=(0,s.A)(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(e)||t}},22567:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(22696),r=o(24724),s=o(16281);function i(e){return"html"===(0,n.A)(e)?e:e.assignedSlot||e.parentNode||((0,s.Ng)(e)?e.host:null)||(0,r.A)(e)}},34990:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(22567),r=o(72322),s=o(22696),i=o(16281);function a(e){return["html","body","#document"].indexOf((0,s.A)(e))>=0?e.ownerDocument.body:(0,i.sb)(e)&&(0,r.A)(e)?e:a((0,n.A)(e))}},64787:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(67895),r=o(24724),s=o(48949),i=o(3503);function a(e,t){var o=(0,n.A)(e),a=(0,r.A)(e),c=o.visualViewport,l=a.clientWidth,u=a.clientHeight,d=0,p=0;if(c){l=c.width,u=c.height;var m=(0,i.A)();(m||!m&&"fixed"===t)&&(d=c.offsetLeft,p=c.offsetTop)}return{width:l,height:u,x:d+(0,s.A)(e),y:p}}},67895:(e,t,o)=>{"use strict";function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}o.d(t,{A:()=>n})},53050:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(67895);function r(e){var t=(0,n.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},48949:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(86622),r=o(24724),s=o(53050);function i(e){return(0,n.A)((0,r.A)(e)).left+(0,s.A)(e).scrollLeft}},16281:(e,t,o)=>{"use strict";o.d(t,{Ng:()=>i,sb:()=>s,vq:()=>r});var n=o(67895);function r(e){return e instanceof(0,n.A)(e).Element||e instanceof Element}function s(e){return e instanceof(0,n.A)(e).HTMLElement||e instanceof HTMLElement}function i(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,n.A)(e).ShadowRoot||e instanceof ShadowRoot)}},3503:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(23842);function r(){return!/^((?!chrome|android).)*safari/i.test((0,n.A)())}},72322:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(98859);function r(e){var t=(0,n.A)(e),o=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+s+r)}},81467:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(22696);function r(e){return["table","td","th"].indexOf((0,n.A)(e))>=0}},7729:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(34990),r=o(22567),s=o(67895),i=o(72322);function a(e,t){var o;void 0===t&&(t=[]);var c=(0,n.A)(e),l=c===(null==(o=e.ownerDocument)?void 0:o.body),u=(0,s.A)(c),d=l?[u].concat(u.visualViewport||[],(0,i.A)(c)?c:[]):c,p=t.concat(d);return l?p:p.concat(a((0,r.A)(d)))}},20682:(e,t,o)=>{"use strict";o.d(t,{DD:()=>h,GM:()=>w,Mn:()=>n,OM:()=>c,Ol:()=>g,R9:()=>p,WY:()=>d,_N:()=>u,ir:()=>f,kb:()=>i,ni:()=>l,pG:()=>s,qZ:()=>a,sQ:()=>r,xf:()=>m});var n="top",r="bottom",s="right",i="left",a="auto",c=[n,r,s,i],l="start",u="end",d="clippingParents",p="viewport",m="popper",f="reference",g=c.reduce((function(e,t){return e.concat([t+"-"+l,t+"-"+u])}),[]),h=[].concat(c,[a]).reduce((function(e,t){return e.concat([t,t+"-"+l,t+"-"+u])}),[]),w=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},83811:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(22696),r=o(16281);const s={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},s=t.attributes[e]||{},i=t.elements[e];(0,r.sb)(i)&&(0,n.A)(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(e){var t=s[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});(0,r.sb)(s)&&(0,n.A)(s)&&(Object.assign(s.style,a),Object.keys(i).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]}},50436:(e,t,o)=>{"use strict";o.d(t,{A:()=>p});var n=o(9908),r=o(84623),s=o(81458),i=o(78020),a=o(29907),c=o(46543),l=o(63778),u=o(11283),d=o(20682);const p={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,s=e.name,p=e.options,m=o.elements.arrow,f=o.modifiersData.popperOffsets,g=(0,n.A)(o.placement),h=(0,a.A)(g),w=[d.kb,d.pG].indexOf(g)>=0?"height":"width";if(m&&f){var v=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,l.A)("number"!=typeof e?e:(0,u.A)(e,d.OM))}(p.padding,o),y=(0,r.A)(m),b="y"===h?d.Mn:d.kb,_="y"===h?d.sQ:d.pG,k=o.rects.reference[w]+o.rects.reference[h]-f[h]-o.rects.popper[w],E=f[h]-o.rects.reference[h],A=(0,i.A)(m),S=A?"y"===h?A.clientHeight||0:A.clientWidth||0:0,C=k/2-E/2,x=v[b],R=S-y[w]-v[_],O=S/2-y[w]/2+C,M=(0,c.u)(x,O,R),P=h;o.modifiersData[s]=((t={})[P]=M,t.centerOffset=M-O,t)}},effect:function(e){var t=e.state,o=e.options.element,n=void 0===o?"[data-popper-arrow]":o;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&(0,s.A)(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},69138:(e,t,o)=>{"use strict";o.d(t,{A:()=>m});var n=o(20682),r=o(78020),s=o(67895),i=o(24724),a=o(98859),c=o(9908),l=o(98889),u=o(6742),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,o=e.popper,c=e.popperRect,l=e.placement,p=e.variation,m=e.offsets,f=e.position,g=e.gpuAcceleration,h=e.adaptive,w=e.roundOffsets,v=e.isFixed,y=m.x,b=void 0===y?0:y,_=m.y,k=void 0===_?0:_,E="function"==typeof w?w({x:b,y:k}):{x:b,y:k};b=E.x,k=E.y;var A=m.hasOwnProperty("x"),S=m.hasOwnProperty("y"),C=n.kb,x=n.Mn,R=window;if(h){var O=(0,r.A)(o),M="clientHeight",P="clientWidth";if(O===(0,s.A)(o)&&(O=(0,i.A)(o),"static"!==(0,a.A)(O).position&&"absolute"===f&&(M="scrollHeight",P="scrollWidth")),l===n.Mn||(l===n.kb||l===n.pG)&&p===n._N)x=n.sQ,k-=(v&&O===R&&R.visualViewport?R.visualViewport.height:O[M])-c.height,k*=g?1:-1;if(l===n.kb||(l===n.Mn||l===n.sQ)&&p===n._N)C=n.pG,b-=(v&&O===R&&R.visualViewport?R.visualViewport.width:O[P])-c.width,b*=g?1:-1}var j,T=Object.assign({position:f},h&&d),N=!0===w?function(e,t){var o=e.x,n=e.y,r=t.devicePixelRatio||1;return{x:(0,u.LI)(o*r)/r||0,y:(0,u.LI)(n*r)/r||0}}({x:b,y:k},(0,s.A)(o)):{x:b,y:k};return b=N.x,k=N.y,g?Object.assign({},T,((j={})[x]=S?"0":"",j[C]=A?"0":"",j.transform=(R.devicePixelRatio||1)<=1?"translate("+b+"px, "+k+"px)":"translate3d("+b+"px, "+k+"px, 0)",j)):Object.assign({},T,((t={})[x]=S?k+"px":"",t[C]=A?b+"px":"",t.transform="",t))}const m={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=void 0===n||n,s=o.adaptive,i=void 0===s||s,a=o.roundOffsets,u=void 0===a||a,d={placement:(0,c.A)(t.placement),variation:(0,l.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},38616:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(67895),r={passive:!0};const s={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,s=e.options,i=s.scroll,a=void 0===i||i,c=s.resize,l=void 0===c||c,u=(0,n.A)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach((function(e){e.addEventListener("scroll",o.update,r)})),l&&u.addEventListener("resize",o.update,r),function(){a&&d.forEach((function(e){e.removeEventListener("scroll",o.update,r)})),l&&u.removeEventListener("resize",o.update,r)}},data:{}}},69322:(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var n=o(83068),r=o(9908),s=o(31791),i=o(25845),a=o(25829),c=o(20682),l=o(98889);const u={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,u=e.name;if(!t.modifiersData[u]._skip){for(var d=o.mainAxis,p=void 0===d||d,m=o.altAxis,f=void 0===m||m,g=o.fallbackPlacements,h=o.padding,w=o.boundary,v=o.rootBoundary,y=o.altBoundary,b=o.flipVariations,_=void 0===b||b,k=o.allowedAutoPlacements,E=t.options.placement,A=(0,r.A)(E),S=g||(A===E||!_?[(0,n.A)(E)]:function(e){if((0,r.A)(e)===c.qZ)return[];var t=(0,n.A)(e);return[(0,s.A)(e),t,(0,s.A)(t)]}(E)),C=[E].concat(S).reduce((function(e,o){return e.concat((0,r.A)(o)===c.qZ?(0,a.A)(t,{placement:o,boundary:w,rootBoundary:v,padding:h,flipVariations:_,allowedAutoPlacements:k}):o)}),[]),x=t.rects.reference,R=t.rects.popper,O=new Map,M=!0,P=C[0],j=0;j=0,F=I?"width":"height",D=(0,i.A)(t,{placement:T,boundary:w,rootBoundary:v,altBoundary:y,padding:h}),W=I?L?c.pG:c.kb:L?c.sQ:c.Mn;x[F]>R[F]&&(W=(0,n.A)(W));var z=(0,n.A)(W),U=[];if(p&&U.push(D[N]<=0),f&&U.push(D[W]<=0,D[z]<=0),U.every((function(e){return e}))){P=T,M=!1;break}O.set(T,U)}if(M)for(var G=function(e){var t=C.find((function(t){var o=O.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},B=_?3:1;B>0;B--){if("break"===G(B))break}t.placement!==P&&(t.modifiersData[u]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},47733:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(20682),r=o(25845);function s(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function i(e){return[n.Mn,n.pG,n.sQ,n.kb].some((function(t){return e[t]>=0}))}const a={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,n=t.rects.reference,a=t.rects.popper,c=t.modifiersData.preventOverflow,l=(0,r.A)(t,{elementContext:"reference"}),u=(0,r.A)(t,{altBoundary:!0}),d=s(l,n),p=s(u,a,c),m=i(d),f=i(p);t.modifiersData[o]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:m,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":f})}}},41102:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(9908),r=o(20682);const s={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,s=e.name,i=o.offset,a=void 0===i?[0,0]:i,c=r.DD.reduce((function(e,o){return e[o]=function(e,t,o){var s=(0,n.A)(e),i=[r.kb,r.Mn].indexOf(s)>=0?-1:1,a="function"==typeof o?o(Object.assign({},t,{placement:e})):o,c=a[0],l=a[1];return c=c||0,l=(l||0)*i,[r.kb,r.pG].indexOf(s)>=0?{x:l,y:c}:{x:c,y:l}}(o,t.rects,a),e}),{}),l=c[t.placement],u=l.x,d=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[s]=c}}},71583:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(96819);const r={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=(0,n.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},76909:(e,t,o)=>{"use strict";o.d(t,{A:()=>f});var n=o(20682),r=o(9908),s=o(29907),i=o(47614),a=o(46543),c=o(84623),l=o(78020),u=o(25845),d=o(98889),p=o(36048),m=o(6742);const f={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,f=e.name,g=o.mainAxis,h=void 0===g||g,w=o.altAxis,v=void 0!==w&&w,y=o.boundary,b=o.rootBoundary,_=o.altBoundary,k=o.padding,E=o.tether,A=void 0===E||E,S=o.tetherOffset,C=void 0===S?0:S,x=(0,u.A)(t,{boundary:y,rootBoundary:b,padding:k,altBoundary:_}),R=(0,r.A)(t.placement),O=(0,d.A)(t.placement),M=!O,P=(0,s.A)(R),j=(0,i.A)(P),T=t.modifiersData.popperOffsets,N=t.rects.reference,L=t.rects.popper,I="function"==typeof C?C(Object.assign({},t.rects,{placement:t.placement})):C,F="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(T){if(h){var z,U="y"===P?n.Mn:n.kb,G="y"===P?n.sQ:n.pG,B="y"===P?"height":"width",V=T[P],q=V+x[U],$=V-x[G],H=A?-L[B]/2:0,J=O===n.ni?N[B]:L[B],Y=O===n.ni?-L[B]:-N[B],K=t.elements.arrow,Q=A&&K?(0,c.A)(K):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,p.A)(),X=Z[U],ee=Z[G],te=(0,a.u)(0,N[B],Q[B]),oe=M?N[B]/2-H-te-X-F.mainAxis:J-te-X-F.mainAxis,ne=M?-N[B]/2+H+te+ee+F.mainAxis:Y+te+ee+F.mainAxis,re=t.elements.arrow&&(0,l.A)(t.elements.arrow),se=re?"y"===P?re.clientTop||0:re.clientLeft||0:0,ie=null!=(z=null==D?void 0:D[P])?z:0,ae=V+oe-ie-se,ce=V+ne-ie,le=(0,a.u)(A?(0,m.jk)(q,ae):q,V,A?(0,m.T9)($,ce):$);T[P]=le,W[P]=le-V}if(v){var ue,de="x"===P?n.Mn:n.kb,pe="x"===P?n.sQ:n.pG,me=T[j],fe="y"===j?"height":"width",ge=me+x[de],he=me-x[pe],we=-1!==[n.Mn,n.kb].indexOf(R),ve=null!=(ue=null==D?void 0:D[j])?ue:0,ye=we?ge:me-N[fe]-L[fe]-ve+F.altAxis,be=we?me+N[fe]+L[fe]-ve-F.altAxis:he,_e=A&&we?(0,a.P)(ye,me,be):(0,a.u)(A?ye:ge,me,A?be:he);T[j]=_e,W[j]=_e-me}t.modifiersData[f]=W}},requiresIfExists:["offset"]}},4068:(e,t,o)=>{"use strict";o.d(t,{n4:()=>f});var n=o(70868),r=o(38616),s=o(71583),i=o(69138),a=o(83811),c=o(41102),l=o(69322),u=o(76909),d=o(50436),p=o(47733),m=[r.A,s.A,i.A,a.A,c.A,l.A,u.A,d.A,p.A],f=(0,n.UD)({defaultModifiers:m})},25829:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(98889),r=o(20682),s=o(25845),i=o(9908);function a(e,t){void 0===t&&(t={});var o=t,a=o.placement,c=o.boundary,l=o.rootBoundary,u=o.padding,d=o.flipVariations,p=o.allowedAutoPlacements,m=void 0===p?r.DD:p,f=(0,n.A)(a),g=f?d?r.Ol:r.Ol.filter((function(e){return(0,n.A)(e)===f})):r.OM,h=g.filter((function(e){return m.indexOf(e)>=0}));0===h.length&&(h=g);var w=h.reduce((function(t,o){return t[o]=(0,s.A)(e,{placement:o,boundary:c,rootBoundary:l,padding:u})[(0,i.A)(o)],t}),{});return Object.keys(w).sort((function(e,t){return w[e]-w[t]}))}},96819:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(9908),r=o(98889),s=o(29907),i=o(20682);function a(e){var t,o=e.reference,a=e.element,c=e.placement,l=c?(0,n.A)(c):null,u=c?(0,r.A)(c):null,d=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2;switch(l){case i.Mn:t={x:d,y:o.y-a.height};break;case i.sQ:t={x:d,y:o.y+o.height};break;case i.pG:t={x:o.x+o.width,y:p};break;case i.kb:t={x:o.x-a.width,y:p};break;default:t={x:o.x,y:o.y}}var m=l?(0,s.A)(l):null;if(null!=m){var f="y"===m?"height":"width";switch(u){case i.ni:t[m]=t[m]-(o[f]/2-a[f]/2);break;case i._N:t[m]=t[m]+(o[f]/2-a[f]/2)}}return t}},44583:(e,t,o)=>{"use strict";function n(e){var t;return function(){return t||(t=new Promise((function(o){Promise.resolve().then((function(){t=void 0,o(e())}))}))),t}}o.d(t,{A:()=>n})},25845:(e,t,o)=>{"use strict";o.d(t,{A:()=>p});var n=o(54871),r=o(24724),s=o(86622),i=o(96819),a=o(61478),c=o(20682),l=o(16281),u=o(63778),d=o(11283);function p(e,t){void 0===t&&(t={});var o=t,p=o.placement,m=void 0===p?e.placement:p,f=o.strategy,g=void 0===f?e.strategy:f,h=o.boundary,w=void 0===h?c.WY:h,v=o.rootBoundary,y=void 0===v?c.R9:v,b=o.elementContext,_=void 0===b?c.xf:b,k=o.altBoundary,E=void 0!==k&&k,A=o.padding,S=void 0===A?0:A,C=(0,u.A)("number"!=typeof S?S:(0,d.A)(S,c.OM)),x=_===c.xf?c.ir:c.xf,R=e.rects.popper,O=e.elements[E?x:_],M=(0,n.A)((0,l.vq)(O)?O:O.contextElement||(0,r.A)(e.elements.popper),w,y,g),P=(0,s.A)(e.elements.reference),j=(0,i.A)({reference:P,element:R,strategy:"absolute",placement:m}),T=(0,a.A)(Object.assign({},R,j)),N=_===c.xf?T:P,L={top:M.top-N.top+C.top,bottom:N.bottom-M.bottom+C.bottom,left:M.left-N.left+C.left,right:N.right-M.right+C.right},I=e.modifiersData.offset;if(_===c.xf&&I){var F=I[m];Object.keys(L).forEach((function(e){var t=[c.pG,c.sQ].indexOf(e)>=0?1:-1,o=[c.Mn,c.sQ].indexOf(e)>=0?"y":"x";L[e]+=F[o]*t}))}return L}},11283:(e,t,o)=>{"use strict";function n(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}o.d(t,{A:()=>n})},47614:(e,t,o)=>{"use strict";function n(e){return"x"===e?"y":"x"}o.d(t,{A:()=>n})},9908:(e,t,o)=>{"use strict";function n(e){return e.split("-")[0]}o.d(t,{A:()=>n})},36048:(e,t,o)=>{"use strict";function n(){return{top:0,right:0,bottom:0,left:0}}o.d(t,{A:()=>n})},29907:(e,t,o)=>{"use strict";function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}o.d(t,{A:()=>n})},83068:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,(function(e){return n[e]}))}},31791:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n={start:"end",end:"start"};function r(e){return e.replace(/start|end/g,(function(e){return n[e]}))}},98889:(e,t,o)=>{"use strict";function n(e){return e.split("-")[1]}o.d(t,{A:()=>n})},6742:(e,t,o)=>{"use strict";o.d(t,{LI:()=>s,T9:()=>n,jk:()=>r});var n=Math.max,r=Math.min,s=Math.round},93592:(e,t,o)=>{"use strict";function n(e){var t=e.reduce((function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}o.d(t,{A:()=>n})},63778:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(36048);function r(e){return Object.assign({},(0,n.A)(),e)}},7298:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(20682);function r(e){var t=new Map,o=new Set,n=[];function r(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||r(e)})),n}function s(e){var t=r(e);return n.GM.reduce((function(e,o){return e.concat(t.filter((function(e){return e.phase===o})))}),[])}},61478:(e,t,o)=>{"use strict";function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}o.d(t,{A:()=>n})},23842:(e,t,o)=>{"use strict";function n(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}o.d(t,{A:()=>n})},46543:(e,t,o)=>{"use strict";o.d(t,{P:()=>s,u:()=>r});var n=o(6742);function r(e,t,o){return(0,n.T9)(e,(0,n.jk)(t,o))}function s(e,t,o){var n=r(e,t,o);return n>o?o:n}},51113:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(86087);const r=(0,n.forwardRef)((function({icon:e,size:t=24,...o},r){return(0,n.cloneElement)(e,{width:t,height:t,...o,ref:r})}))},10991:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(5573),r=o(10790);const s=(0,r.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(n.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},37110:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},51621:e=>{"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},46941:(e,t,o)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(r=n))})),t.splice(r,0,o)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=o(53212)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},53212:(e,t,o)=>{e.exports=function(e){function t(e){let o,r,s,i=null;function a(...e){if(!a.enabled)return;const n=a,r=Number(new Date),s=r-(o||r);n.diff=s,n.prev=o,n.curr=r,o=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((o,r)=>{if("%%"===o)return"%";i++;const s=t.formatters[r];if("function"==typeof s){const t=e[i];o=s.call(n,t),e.splice(i,1),i--}return o})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(r!==t.namespaces&&(r=t.namespaces,s=t.enabled(e)),s),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,r=24*n,s=7*r,i=365.25*r;function a(e,t,o,n){var r=t>=1.5*o;return Math.round(e/o)+" "+n+(r?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*o;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var s=Math.abs(e);if(s>=r)return a(e,s,r,"day");if(s>=n)return a(e,s,n,"hour");if(s>=o)return a(e,s,o,"minute");if(s>=t)return a(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=r)return Math.round(e/r)+"d";if(s>=n)return Math.round(e/n)+"h";if(s>=o)return Math.round(e/o)+"m";if(s>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},78031:e=>{var t="undefined"!=typeof Element,o="function"==typeof Map,n="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function s(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var a,c,l,u;if(Array.isArray(e)){if((a=e.length)!=i.length)return!1;for(c=a;0!=c--;)if(!s(e[c],i[c]))return!1;return!0}if(o&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!i.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!s(c.value[1],i.get(c.value[0])))return!1;return!0}if(n&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!i.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((a=e.length)!=i.length)return!1;for(c=a;0!=c--;)if(e[c]!==i[c])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((a=(l=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(c=a;0!=c--;)if(!Object.prototype.hasOwnProperty.call(i,l[c]))return!1;if(t&&e instanceof Element)return!1;for(c=a;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!e.$$typeof)&&!s(e[l[c]],i[l[c]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return s(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},92128:(e,t,o)=>{"use strict";o.d(t,{E:()=>u});var n=o(51609),r=o(75795),s=o(4068),i=o(78031),a=o.n(i),c=o(88520),l=[],u=function(e,t,o){void 0===o&&(o={});var i=n.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||l},d=n.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),p=d[0],m=d[1],f=n.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,o=Object.keys(t.elements);r.flushSync((function(){m({styles:(0,c.PW)(o.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,c.PW)(o.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),g=n.useMemo((function(){var e={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[f,{name:"applyStyles",enabled:!1}])};return a()(i.current,e)?i.current||e:(i.current=e,e)}),[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,f]),h=n.useRef();return(0,c.Es)((function(){h.current&&h.current.setOptions(g)}),[g]),(0,c.Es)((function(){if(null!=e&&null!=t){var n=(o.createPopper||s.n4)(e,t,g);return h.current=n,function(){n.destroy(),h.current=null}}}),[e,t,o.createPopper]),{state:h.current?h.current.state:null,styles:p.styles,attributes:p.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}}},88520:(e,t,o)=>{"use strict";o.d(t,{Es:()=>s,PW:()=>r});var n=o(51609),r=function(e){return e.reduce((function(e,t){var o=t[0],n=t[1];return e[o]=n,e}),{})},s="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect},90372:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var n=o(46941);const r=o.n(n)()("dops:analytics");let s,i;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const a={initialize:function(e,t,o){a.setUser(e,t),a.setSuperProps(o),a.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){i={ID:e,username:t}},setSuperProps:function(e){s=e},assignSuperProps:function(e){s=Object.assign(s||{},e)},mc:{bumpStat:function(e,t){const o=function(e,t){let o="";if("object"==typeof e){for(const t in e)o+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Bumping stats %o",e)}else o="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Bumping stat "%s" in group "%s"',t,e);return o}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+o+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const o=function(e,t){let o="";if("object"==typeof e){for(const t in e)o+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Built stats %o",e)}else o="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Built stat "%s" in group "%s"',t,e);return o}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+o+"&t="+Math.random())}},pageView:{record:function(e,t){a.tracks.recordPageView(e),a.ga.recordPageView(e,t)}},purchase:{record:function(e,t,o,n,r,s,i){a.ga.recordPurchase(e,t,o,n,r,s,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(s&&(r("- Super Props: %o",s),t=Object.assign(t,s)),r('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};a.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){a.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){r("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};a.ga.initialized||(i&&(e={userId:"u-"+i.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),a.ga.initialized=!0)},recordPageView:function(e,t){a.ga.initialize(),r("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,o,n){a.ga.initialize();let s="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==o&&(s+=" [Option Label: "+o+"]"),void 0!==n&&(s+=" [Option Value: "+n+"]"),r(s),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,o,n)},recordPurchase:function(e,t,o,n,r,s,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:n,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:o,price:r,quantity:s}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=a},85985:(e,t,o)=>{"use strict";o.d(t,{lk:()=>n.lk});var n=o(62634);o(82034),o(65595),o(53265),o(73489),o(76923),o(15877),o(30335),o(88290)},15877:(e,t,o)=>{"use strict";o(51609)},30335:(e,t,o)=>{"use strict";o(86087)},34972:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});const n="Jetpack_Editor_Initial_State";function r(){return"object"==typeof window?window?.[n]??null:null}},73489:(e,t,o)=>{"use strict";var n=o(90372);o(39384),o(86087);const{tracks:r}=n.A,{recordEvent:s}=r},76923:(e,t,o)=>{"use strict";o(47143),o(86087),o(88290)},27105:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>d,E9:()=>u});var n=o(47143),r=o(62634),s=o(94478),i=o(88290);const a="SET_JETPACK_MODULES";function c(e){return u({isLoading:e})}function l(e,t){return{type:"SET_MODULE_UPDATING",name:e,isUpdating:t}}function u(e){return{type:a,options:e}}const d={updateJetpackModuleStatus:function*(e){try{yield l(e.name,!0),yield(0,s.sB)(e);const t=yield(0,s.wz)();return yield u({data:t}),!0}catch(e){const t=(0,n.select)(i.F).getJetpackModules();return yield u(t),!1}finally{yield l(e.name,!1)}},setJetpackModules:u,fetchModules:function*(){if((0,r.Sy)())return!0;try{yield c(!0);const e=yield(0,s.wz)();return yield u({data:e}),!0}catch(e){const t=(0,n.select)(i.F).getJetpackModules();return yield u(t),!1}finally{yield c(!1)}}}},94478:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>l,sB:()=>c,wz:()=>a});var n=o(1455),r=o.n(n);const s="FETCH_JETPACK_MODULES",i="UPDATE_JETPACK_MODULE_STATUS",a=()=>({type:s}),c=e=>({type:i,settings:e}),l={[s]:function(){return r()({path:"/jetpack/v4/module/all",method:"GET"})},[i]:function({settings:e}){return r()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},88290:(e,t,o)=>{"use strict";o.d(t,{F:()=>l});var n=o(47143),r=o(27105),s=o(94478),i=o(38862),a=o(62701),c=o(31640);const l="jetpack-modules",u=(0,n.createReduxStore)(l,{reducer:i.A,actions:r.Ay,controls:s.Ay,resolvers:a.A,selectors:c.A});(0,n.register)(u);const d=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==d&&(0,n.dispatch)(l).setJetpackModules({data:{...d}})},38862:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});const n={isLoading:!1,isUpdating:{},data:{}},r=(e=n,t)=>{switch(t.type){case"SET_JETPACK_MODULES":return{...e,...t.options};case"SET_MODULE_UPDATING":return{...e,isUpdating:{...e.isUpdating,[t.name]:t.isUpdating}}}return e}},62701:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(27105),r=o(94478);const s={getJetpackModules:function*(){try{const e=yield(0,r.wz)();if(e)return(0,n.E9)({data:e})}catch(e){console.error(e)}}}},31640:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(62634);const r={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,n.Sy)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},53265:(e,t,o)=>{"use strict";var n=o(27723);o(93832),o(66087);const __=n.__;__("Upgrade your plan to use video covers","jetpack-mu-wpcom"),__("Upgrade your plan to upload audio","jetpack-mu-wpcom")},82034:(e,t,o)=>{"use strict";o(92279)},62634:(e,t,o)=>{"use strict";o.d(t,{Sy:()=>s,lk:()=>i});var n=o(34972);function r(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function s(){return"simple"===r()}function i(){const e=(0,n.A)();return e?.jetpack?.is_coming_soon??!1}},65595:(e,t,o)=>{"use strict";o(96072),o(29491)},13122:(e,t,o)=>{"use strict";o.d(t,{J:()=>n.A});var n=o(3756);o(18125)},3756:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(47143),r=o(18125);const s=()=>{const e=(0,r.A)();return(0,n.useSelect)((t=>t("core/edit-site")?new URLSearchParams(e?.search).get("canvas")||"view":null),[e?.search])}},18125:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(71628);const r=(0,o(15184).p)(),s=n?.privateApis;let i=()=>null;r&&s&&r(s)&&(i=r(s).useLocation);const a=i},6416:(e,t,o)=>{"object"==typeof window&&window.JETPACK_MU_WPCOM_SETTINGS&&(o.p=window.JETPACK_MU_WPCOM_SETTINGS.assetsUrl)},15292:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(51609),r=o(80421),s=o(51570),i=o(5474);const a=({onMinimize:e,onDismiss:t,onNextStepProgression:o,onPreviousStepProgression:a,tourContainerRef:c,isMinimized:l})=>{function u(){return(0,i.A)({onEscape:e,onArrowRight:o,onArrowLeft:a,tourContainerRef:c}),(0,s.A)(c),null}function d(){return(0,i.A)({onEscape:t("esc-key-minimized"),tourContainerRef:c}),null}return(0,r.A)(c)?l?n.createElement(d,null):n.createElement(u,null):null}},64905:(e,t,o)=>{"use strict";o.d(t,{A:()=>v});var n=o(96072),r=o.n(n),s=o(29491),i=o(86087),a=o(13022),c=o(92128),l=o(82676),u=o(16839),d=o(58158),p=o(15292),m=o(16418),f=o(12818),g=o(88982),h=o(93758);const w=(e,t)=>{"function"==typeof t&&t(e)},v=({config:e})=>{const[t,o]=(0,i.useState)(0),[n,v]=(0,i.useState)(null),[y,b]=(0,i.useState)(e.isMinimized??!1),[_,k]=(0,i.useState)(null),[E,A]=(0,i.useState)(!1),S=(0,i.useRef)(null),C=(0,s.useViewportMatch)("mobile","<"),x=e.steps.length-1,R=e.steps[t].referenceElements,O=R?.[C?"mobile":"desktop"]||R?.desktop,M=O?document.querySelector(O):null;(0,i.useEffect)((()=>{e.isMinimized&&b(!0)}),[e.isMinimized]);const P=(0,i.useCallback)((()=>!1!==e.options?.effects?.arrowIndicator&&!(!M||y||!E)),[e.options?.effects?.arrowIndicator,y,M,E]),j=(0,i.useCallback)((()=>!!e.options?.effects?.spotlight&&!y),[e.options?.effects?.spotlight,y]),T=(0,i.useCallback)((()=>!(j()||!e.options?.effects?.overlay)&&!y),[e.options?.effects?.overlay,y,j]),N=(0,i.useCallback)((o=>()=>{e.closeHandler(e.steps,t,o)}),[e,t]),L=(0,i.useCallback)((()=>{let n=t;x>t&&(n=t+1,o(n)),w(n,e.options?.callbacks?.onNextStep)}),[e.options?.callbacks?.onNextStep,t,x]),I=(0,i.useCallback)((()=>{let n=t;t>0&&(n=t-1,o(n)),w(n,e.options?.callbacks?.onPreviousStep)}),[e.options?.callbacks?.onPreviousStep,t]),F=(0,i.useCallback)((t=>{o(t),w(t,e.options?.callbacks?.onGoToStep)}),[e.options?.callbacks?.onGoToStep]),D=(0,i.useCallback)((()=>{b(!0),w(t,e.options?.callbacks?.onMinimize)}),[e.options?.callbacks?.onMinimize,t]),W=(0,i.useCallback)((()=>{b(!1),w(t,e.options?.callbacks?.onMaximize)}),[e.options?.callbacks?.onMaximize,t]),{styles:z,attributes:U,update:G}=(0,c.E)(M,_,{strategy:"fixed",placement:e?.placement??"bottom",modifiers:[{name:"preventOverflow",options:{rootBoundary:"document",padding:16}},{name:"arrow",options:{padding:12}},{name:"offset",options:{offset:[0,P()?12:10]}},{name:"flip",options:{fallbackPlacements:["top","left","right"]}},(0,i.useMemo)((()=>(0,d.Y)(e.options?.effects?.liveResize)),[e.options?.effects?.liveResize]),...e.options?.popperModifiers||[]]}),B=!y&&M&&E?{style:z?.popper,...U?.popper}:null,V=!y&&M&&E?{style:z?.arrow,...U?.arrow}:null;(0,i.useEffect)((()=>{setTimeout((()=>n?.focus()))}),[n]),(0,i.useEffect)((()=>{M?(A(!1),G&&G().then((()=>A(!0))).catch((()=>A(!0)))):A(!0)}),[G,M]),(0,i.useEffect)((()=>{M&&e.options?.effects?.autoScroll&&M.scrollIntoView(e.options.effects.autoScroll)}),[e.options?.effects?.autoScroll,M]);const q=(0,a.A)("tour-kit-frame",C?"is-mobile":"is-desktop",{"is-visible":E},(0,u.e)(e.options?.classNames));return(0,l.A)(t,e.options?.callbacks?.onStepViewOnce),(0,i.useEffect)((()=>{e.options?.callbacks?.onStepView&&w(t,e.options?.callbacks?.onStepView)}),[e.options?.callbacks?.onStepView,t]),React.createElement(React.Fragment,null,React.createElement(p.A,{onMinimize:D,onDismiss:N,onNextStepProgression:L,onPreviousStepProgression:I,tourContainerRef:S,isMinimized:y}),React.createElement("div",{className:q,ref:S},T()&&React.createElement(f.A,{visible:!0}),j()&&React.createElement(g.A,r()({referenceElement:M,liveResize:e.options?.effects?.liveResize||{}},e.options?.effects?.spotlight||{})),React.createElement("div",r()({className:"tour-kit-frame__container",ref:k,tabIndex:-1},B),P()&&React.createElement("div",r()({className:"tour-kit-frame__arrow","data-popper-arrow":!0},V)),y?React.createElement(m.A,{config:e,steps:e.steps,currentStepIndex:t,onMaximize:W,onDismiss:N}):React.createElement(h.A,{config:e,steps:e.steps,currentStepIndex:t,onMinimize:D,onDismiss:N,onNextStep:L,onPreviousStep:I,onGoToStep:F,setInitialFocusedElement:v}))))}},16418:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const n=({config:e,steps:t,currentStepIndex:o,onMaximize:n,onDismiss:r})=>React.createElement("div",{className:"tour-kit-minimized"},React.createElement(e.renderers.tourMinimized,{steps:t,currentStepIndex:o,onMaximize:n,onDismiss:r}))},12818:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(13022);const r=({visible:e})=>React.createElement("div",{className:(0,n.A)("tour-kit-overlay",{"is-visible":e})})},53812:(e,t,o)=>{"use strict";o.d(t,{q:()=>r});var n=o(88982);const r=({enabled:e=!1,rootElementSelector:t="#wpwrap"})=>e?React.createElement("style",null,`\n .${n.E}, .${n.E} * {\n pointer-events: auto;\n }\n .tour-kit-frame__container button {\n pointer-events: auto;\n }\n .tour-kit-spotlight, .tour-kit-overlay {\n pointer-events: none;\n }\n ${t} :not(.${n.E}, .${n.E} *) {\n pointer-events: none;\n }\n `):null},88982:(e,t,o)=>{"use strict";o.d(t,{A:()=>p,E:()=>d});var n=o(96072),r=o.n(n),s=o(86087),i=o(13022),a=o(92128),c=o(58158),l=o(12818),u=o(53812);const d="wp-tour-kit-spotlit",p=({referenceElement:e,styles:t,interactivity:o,liveResize:n})=>{const[p,m]=(0,s.useState)(null),f=e?.getBoundingClientRect(),g=[{name:"flip",enabled:!1},{name:"preventOverflow",options:{mainAxis:!1}},(0,s.useMemo)((()=>({name:"offset",options:{offset:({placement:e,reference:t,popper:o})=>"bottom"===e?[0,-(t.height+(o.height-t.height)/2)]:[0,0]}})),[]),(0,s.useMemo)((()=>(0,c.Y)(n)),[n])],{styles:h,attributes:w}=(0,a.E)(e,p,{strategy:"fixed",placement:"bottom",modifiers:g}),v=f?{width:`${f.width}px`,height:`${f.height}px`}:null,y=e?{style:{...v&&v,...h?.popper,...t&&t},...w?.popper}:null;return(0,s.useEffect)((()=>(e?.classList.add(d),()=>{e?.classList.remove(d)})),[e]),React.createElement(React.Fragment,null,React.createElement(u.q,o),React.createElement(l.A,{visible:!y}),React.createElement("div",r()({className:(0,i.A)("tour-kit-spotlight",{"is-visible":!!y}),ref:m},y)))}},93758:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(29491),r=o(13022),s=o(16839);const i=({config:e,steps:t,currentStepIndex:o,onMinimize:i,onDismiss:a,onNextStep:c,onPreviousStep:l,setInitialFocusedElement:u,onGoToStep:d})=>{const p=(0,n.useViewportMatch)("mobile","<"),m=(0,r.A)("tour-kit-step",`is-step-${o}`,(0,s.e)(e.steps[o].options?.classNames?.[p?"mobile":"desktop"]));return React.createElement("div",{className:m},React.createElement(e.renderers.tourStep,{steps:t,currentStepIndex:o,onDismiss:a,onNextStep:c,onPreviousStep:l,onMinimize:i,setInitialFocusedElement:u,onGoToStep:d}))}},8629:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var n=o(86087),r=o(51609),s=o.n(r),i=o(55910),a=o(62154),c=o(64905);const l=({config:e,__temp__className:t})=>{const o=(0,n.useRef)(document.createElement("div")).current;return(0,n.useEffect)((()=>{const n=["tour-kit",...t?[t]:[]];o.classList.add(...n);const r=e.options?.portalParentElement||document.body;return r.appendChild(o),()=>{r.removeChild(o)}}),[t,o,e.options?.portalParentElement]),s().createElement(a.A,null,s().createElement(i.tu,{config:e},s().createElement("div",null,(0,n.createPortal)(s().createElement(c.A,{config:e}),o))))}},75888:(e,t,o)=>{"use strict";o.d(t,{J:()=>r,X:()=>n});const n="start-writing",r="design-first"},44935:(e,t,o)=>{"use strict";o.d(t,{Z:()=>c,f:()=>l});var n=o(1455),r=o.n(n),s=o(86087),i=o(51609);const a=i.createContext({hasSeenSellerCelebrationModal:!1,updateHasSeenSellerCelebrationModal:()=>{}}),c=()=>(0,i.useContext)(a),l=function({children:e}){const[t,o]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{r()({path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal"}).then((e=>o(e.has_seen_seller_celebration_modal))).catch((()=>o(!1)))}),[]),i.createElement(a.Provider,{value:{hasSeenSellerCelebrationModal:t,updateHasSeenSellerCelebrationModal:function(e){r()({method:"PUT",path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal",data:{has_seen_seller_celebration_modal:e}}).finally((()=>{o(!0)}))}}},e)}},95359:(e,t,o)=>{"use strict";o.d(t,{j:()=>l,v:()=>c});var n=o(1455),r=o.n(n),s=o(86087),i=o(51609);const a=i.createContext({hasSeenVideoCelebrationModal:!1,updateHasSeenVideoCelebrationModal:()=>{}}),c=()=>(0,i.useContext)(a),l=function({children:e}){const[t,o]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{r()({path:"/wpcom/v2/block-editor/has-seen-video-celebration-modal"}).then((e=>o(e.has_seen_video_celebration_modal))).catch((()=>o(!1)))}),[]),i.createElement(a.Provider,{value:{hasSeenVideoCelebrationModal:t,updateHasSeenVideoCelebrationModal:function(e){r()({method:"PUT",path:"/wpcom/v2/block-editor/has-seen-video-celebration-modal",data:{has_seen_video_celebration_modal:e}}).finally((()=>{o(e)}))}}},e)}},55910:(e,t,o)=>{"use strict";o.d(t,{Z4:()=>n.Z,f6:()=>n.f,hy:()=>i.h,jO:()=>r.j,l7:()=>s.l,rN:()=>s.r,tu:()=>i.t,v2:()=>r.v});var n=o(44935),r=o(95359),s=o(42382),i=o(25199)},42382:(e,t,o)=>{"use strict";o.d(t,{l:()=>c,r:()=>a});var n=o(47143),r=o(86087),s=o(51609);const i=s.createContext(!1),a=()=>(0,s.useContext)(i),c=({children:e})=>{const t=(0,n.useSelect)((e=>e("automattic/wpcom-welcome-guide").getShouldShowFirstPostPublishedModal()),[]),{fetchShouldShowFirstPostPublishedModal:o}=(0,n.useDispatch)("automattic/wpcom-welcome-guide");return(0,r.useEffect)((()=>{o()}),[o]),s.createElement(i.Provider,{value:t},e)}},25199:(e,t,o)=>{"use strict";o.d(t,{h:()=>i,t:()=>s});var n=o(86087);const r=(0,n.createContext)({}),s=({config:e,children:t})=>React.createElement(r.Provider,{value:{config:e}},t),i=()=>(0,n.useContext)(r)},62154:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(51609),r=o.n(n);class s extends r().Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t)}render(){return this.state.hasError?r().createElement("h1",null,"Something went wrong."):this.props.children}}const i=s},42586:(e,t,o)=>{"use strict";o.d(t,{Bg:()=>s.A,cz:()=>i.A,kN:()=>r.A,sr:()=>n.A});o(80421),o(51570),o(36883),o(5474);var n=o(97412),r=o(31248),s=o(85410),i=o(97827);o(82676)},80421:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(86087);const r=e=>{const[t,o]=(0,n.useState)(!1),r=(0,n.useCallback)((()=>{const t=e.current?.ownerDocument;t&&t.hasFocus()&&e.current?.contains(t.activeElement)?o(!0):o(!1)}),[e]),s=(0,n.useCallback)((t=>{e.current?.contains(t.target)?o(!0):o(!1)}),[e]),i=(0,n.useCallback)((t=>{"Tab"===t.key&&(e.current?.contains(t.target)?o(!0):o(!1))}),[e]);return(0,n.useEffect)((()=>(document.addEventListener("focusin",r),document.addEventListener("mousedown",s),document.addEventListener("keyup",i),()=>{document.removeEventListener("focusin",r),document.removeEventListener("mousedown",s),document.removeEventListener("keyup",i)})),[e,r,i,s]),t}},51570:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(28107),r=o(86087);const s=e=>{const[t,o]=(0,r.useState)(),[s,i]=(0,r.useState)(),a=(0,r.useCallback)((e=>{let o=!1;"Tab"===e.key&&(e.shiftKey?t&&t.ownerDocument.activeElement===t&&(s?.focus(),o=!0):s&&s.ownerDocument.activeElement===s&&(t?.focus(),o=!0)),o&&(e.preventDefault(),e.stopPropagation())}),[t,s]);(0,r.useEffect)((()=>{const t=e.current?n.focus.focusable.find(e.current):[];return t&&t.length&&(o(t[0]),i(t[t.length-1])),document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}}),[e,a])}},36883:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(47143),r=o(86087);const s=()=>{const[e,t]=(0,r.useState)(!1),o=(0,n.useSelect)((t=>{if(e)return"";const o=t("core/block-editor").getSelectedBlock();return o?.name??""})),s=(0,n.useSelect)((t=>{if(e)return"";const o=t("core/block-editor").getSelectedBlock();if(o?.clientId){const e=t("core/block-editor").getBlockParents(o?.clientId);if(e&&e.length){const o=t("core/block-editor").getBlock(e[e.length-1]);return o?.name??""}}return""}));return(0,r.useEffect)((()=>{e||!o.includes("payments")&&!s.includes("payments")||t(!0)}),[o,s,e,t]),e}},5474:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(86087);const r=({onEscape:e,onArrowRight:t,onArrowLeft:o,tourContainerRef:r})=>{const s=(0,n.useCallback)((()=>!(!r.current||r.current.contains(r.current.ownerDocument.activeElement))),[r]),i=(0,n.useCallback)((()=>{r.current?.querySelector(".tour-kit-frame__container")?.focus()}),[r]),a=(0,n.useCallback)((n=>{let r=!1;switch(n.key){case"Escape":if(e){if(s())return;e(),i(),r=!0}break;case"ArrowRight":if(t){if(s())return;t(),r=!0}break;case"ArrowLeft":if(o){if(s())return;o(),r=!0}}r&&(n.preventDefault(),n.stopPropagation())}),[e,t,o,s,i]),c=(0,n.useCallback)((e=>{var t;(t=e.target,["A","INPUT","BUTTON","TEXTAREA","SELECT"].includes(t?.tagName)||t?.tabIndex>=0)||i()}),[i]);(0,n.useEffect)((()=>{const e=r.current;return document.addEventListener("keydown",a),e?.addEventListener("click",c),()=>{document.removeEventListener("keydown",a),e?.removeEventListener("click",c)}}),[a,c,r])}},97412:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var n=o(47143),r=o(86087),s=o(44935),i=o(36883),a=o(85410);const c=()=>{const[e,t]=(0,r.useState)(!1),{siteIntent:o}=(0,a.A)(),c=(0,i.A)(),{hasSeenSellerCelebrationModal:l}=(0,s.Z)(),u=(0,n.useSelect)((e=>{if(!!e("core/edit-site")){const t=e("core/edit-site").getPage(),o=parseInt(t?.context?.postId),n=e("core").getEntityRecord("postType","page",o);let r=!1;if(!l){const t=e("core/block-editor").getGlobalBlockCount("jetpack/recurring-payments")>0,o=e("core/block-editor").getGlobalBlockCount("jetpack/simple-payments")>0;r=(n?.content?.raw?.includes("\x3c!-- wp:jetpack/recurring-payments --\x3e")||n?.content?.raw?.includes("\x3c!-- wp:jetpack/simple-payments --\x3e")||t||o)??!1}return r}let t=0;return l||(t+=e("core/block-editor").getGlobalBlockCount("jetpack/recurring-payments"),t+=e("core/block-editor").getGlobalBlockCount("jetpack/simple-payments")),t>0}));return(0,r.useEffect)((()=>{"sell"===o&&u&&c&&!l&&t(!0)}),[o,u,c,l]),e}},31248:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(86087),r=o(96487),s=o(95359),i=o(85410);const a=e=>{const{siteIntent:t}=(0,i.A)(),[o,a]=(0,n.useState)(!1),{hasSeenVideoCelebrationModal:c}=(0,s.v)();return(0,n.useEffect)((()=>{"videopress"!==t||c?c&&a(!1):(async()=>{const e=await(0,r.Ay)({path:`/sites/${window._currentSiteId}?http_envelope=1`,apiVersion:"1.1"});e?.options?.launchpad_checklist_tasks_statuses?.video_uploaded&&a(!0)})()}),[e,t,c]),o}},85410:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const n=()=>({siteIntent:window.launchpadOptions?.siteIntentOption,siteIntentFetched:!0})},97827:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(86087),r=o(51609),s=o(96487);const i=e=>{const[t,o]=(0,n.useState)({}),i=(0,r.useCallback)((async()=>{const t=await(0,s.Ay)({path:`/sites/${e}?http_envelope=1`,apiVersion:"1.1"});t?.plan&&o(t.plan)}),[e]);return(0,n.useEffect)((()=>{i()}),[i]),t}},82676:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(86087);const r=(e,t)=>{const[o,r]=(0,n.useState)([]);(0,n.useEffect)((()=>{o.includes(e)||(r((t=>[...t,e])),t?.(e))}),[e,t,o])}},56353:(e,t,o)=>{"use strict";o.d(t,{Bg:()=>i.Bg,JV:()=>n.J,Oo:()=>r.O,Xf:()=>n.X,Z4:()=>s.Z4,cz:()=>i.cz,f6:()=>s.f6,hy:()=>s.hy,jO:()=>s.jO,kN:()=>i.kN,l7:()=>s.l7,ns:()=>r.A,rN:()=>s.rN,sr:()=>i.sr,v2:()=>s.v2});o(8629);var n=o(75888),r=o(15027),s=o(55910),i=o(42586)},16839:(e,t,o)=>{"use strict";o.d(t,{Y:()=>s,e:()=>r});var n=o(46941);function r(e){return e?.length?e.toString().split(","):null}const s=o.n(n)()("tour-kit")},58158:(e,t,o)=>{"use strict";o.d(t,{Y:()=>r});var n=o(16839);const r=({rootElementSelector:e,mutation:t=!1,resize:o=!1}={mutation:!1,resize:!1})=>({name:"liveResizeModifier",enabled:!0,phase:"main",fn:()=>{},effect:r=>{try{const{state:s,instance:i}=r,a=Symbol(),{reference:c}=s.elements;if(c[a]={resizeObserver:new ResizeObserver((()=>{i.update()})),mutationObserver:new MutationObserver((()=>{i.update()}))},o&&(c instanceof Element?c[a].resizeObserver.observe(c):(0,n.Y)("Error: ResizeObserver does not work with virtual elements, Tour Kit will not resize automatically if the size of the referenced element changes.")),t){const t=document.querySelector(e||"#wpwrap");t instanceof Element?c[a].mutationObserver.observe(t,{attributes:!0,characterData:!0,childList:!0,subtree:!0}):(0,n.Y)(`Error: ${e} selector did not find a valid DOM element, Tour Kit will not update automatically if the DOM layout changes.`)}return()=>{c[a].resizeObserver.disconnect(),c[a].mutationObserver.disconnect(),delete c[a]}}catch(e){(0,n.Y)("Error: Tour Kit live resize modifier failed unexpectedly:",e)}}})},71125:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var n=o(56427),r=o(86087),s=o(27723),i=o(51113),a=o(10991),c=o(64146);const __=s.__,l=({steps:e,onMaximize:t,onDismiss:o,currentStepIndex:l})=>{const u=l+1,d=e.length-1+1;return React.createElement(n.Flex,{gap:0,className:"wpcom-tour-kit-minimized"},React.createElement(n.Button,{onClick:t,"aria-label":__("Resume Tour","jetpack-mu-wpcom")},React.createElement(n.Flex,{gap:13},React.createElement("p",null,(0,r.createInterpolateElement)((0,s.sprintf)(/* translators: 1: current page number, 2: total number of pages */ __("Resume tour (%1$d/%2$d)","jetpack-mu-wpcom"),u,d),{span:React.createElement("span",{className:"wpcom-tour-kit-minimized__tour-index"})})),React.createElement(i.A,{icon:c.A,size:24}))),React.createElement(n.Button,{onClick:o("close-btn-minimized"),"aria-label":__("Close Tour","jetpack-mu-wpcom")},React.createElement(i.A,{icon:a.A,size:24})))}},94601:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(27723),r=o(13022);const __=n.__,s=({activePageIndex:e,numberOfPages:t,onChange:o,classNames:s,children:i})=>{const a=(0,r.A)("wpcom-tour-kit-pagination-control",s);return React.createElement("ul",{className:a,"aria-label":__("Pagination control","jetpack-mu-wpcom")},Array.from({length:t}).map(((s,i)=>React.createElement("li",{key:`${t}-${i}`,"aria-current":i===e?"page":void 0},React.createElement("button",{className:(0,r.A)("pagination-control__page",{"is-current":i===e}),disabled:i===e,"aria-label":(0,n.sprintf)(/* translators: 1: current page number 2: total number of pages */ -__("Page %1$d of %2$d","jetpack-mu-wpcom"),i+1,t),onClick:()=>o(i)})))),i&&React.createElement("li",{className:"pagination-control__last-item"},i))}},25330:(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var n=o(56427),r=o(86087),s=o(27723),i=o(13022),a=o(56353),c=o(2812),l=o(67163);const __=s.__,u=()=>{const[e,t]=(0,r.useState)(),o=(0,a.hy)().config,s=o.options?.tourRating?.useTourRating?.()??e;let u=!1;if(!o.options?.tourRating?.enabled)return null;u||void 0===e||(u=!0);const d=e=>{if(u)return;const n=e?"thumbs-up":"thumbs-down";n!==s&&(u=!0,t(n),o.options?.tourRating?.onTourRate?.(n))};return React.createElement(React.Fragment,null,React.createElement("p",{className:"wpcom-tour-kit-rating__end-text"},__("Did you find this guide helpful?","jetpack-mu-wpcom")),React.createElement("div",null,React.createElement(n.Button,{"aria-label":__("Rate thumbs up","jetpack-mu-wpcom"),className:(0,i.A)("wpcom-tour-kit-rating__end-icon",{active:"thumbs-up"===s}),disabled:u,icon:l.A,onClick:()=>d(!0),iconSize:24}),React.createElement(n.Button,{"aria-label":__("Rate thumbs down","jetpack-mu-wpcom"),className:(0,i.A)("wpcom-tour-kit-rating__end-icon",{active:"thumbs-down"===s}),disabled:u,icon:c.A,onClick:()=>d(!1),iconSize:24})))}},86457:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(56427),r=o(27723),s=o(94601);const __=r.__,i=({currentStepIndex:e,onDismiss:t,onGoToStep:o,onNextStep:r,onPreviousStep:i,setInitialFocusedElement:a,steps:c})=>{const l=0===e,u=c.length-1;return React.createElement(React.Fragment,null,React.createElement(s.A,{activePageIndex:e,numberOfPages:u+1,onChange:o},l?React.createElement("div",null,React.createElement(n.Button,{variant:"tertiary",onClick:t("no-thanks-btn")},__("Skip","jetpack-mu-wpcom")),React.createElement(n.Button,{className:"wpcom-tour-kit-step-card-navigation__next-btn",variant:"primary",onClick:r,ref:a},__("Take the tour","jetpack-mu-wpcom"))):React.createElement("div",null,React.createElement(n.Button,{variant:"tertiary",onClick:i},__("Back","jetpack-mu-wpcom")),React.createElement(n.Button,{className:"wpcom-tour-kit-step-card-navigation__next-btn",variant:"primary",onClick:r,ref:a},__("Next","jetpack-mu-wpcom")))))}},40128:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(56427),r=o(27723),s=o(10991),i=o(64796);const __=r.__,a=({onMinimize:e,onDismiss:t})=>React.createElement("div",{className:"wpcom-tour-kit-step-card-overlay-controls"},React.createElement(n.Flex,null,React.createElement(n.Button,{label:__("Minimize Tour","jetpack-mu-wpcom"),variant:"primary",className:"wpcom-tour-kit-step-card-overlay-controls__minimize-icon",icon:i.A,iconSize:24,onClick:e}),React.createElement(n.Button,{label:__("Close Tour","jetpack-mu-wpcom"),variant:"primary",icon:s.A,iconSize:24,onClick:t("close-btn")})))},14404:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var n=o(56427),r=o(29491),s=o(27723),i=o(51113),a=o(13022),c=o(25330),l=o(86457),u=o(40128);const __=s.__,d=({steps:e,currentStepIndex:t,onMinimize:o,onDismiss:s,onGoToStep:d,onNextStep:p,onPreviousStep:m,setInitialFocusedElement:f})=>{const g=e.length-1,{descriptions:h,heading:w,imgSrc:v,imgLink:y}=e[t].meta,b=t===g,_=h[(0,r.useViewportMatch)("mobile","<")?"mobile":"desktop"]??h.desktop;return React.createElement(n.Card,{className:"wpcom-tour-kit-step-card",isElevated:!0},React.createElement(u.A,{onDismiss:s,onMinimize:o}),v&&React.createElement(n.CardMedia,{className:"wpcom-tour-kit-step-card__media"},React.createElement("picture",null,v.mobile&&React.createElement("source",{srcSet:v.mobile.src,type:v.mobile.type,media:"(max-width: 480px)"}),React.createElement("img",{alt:__("Tour Media","jetpack-mu-wpcom"),src:v.desktop?.src})),y&&React.createElement("a",{className:(0,a.A)("wpcom-tour-kit-step-card__media-link",{"wpcom-tour-kit-step-card__media-link--playable":y.playable}),href:y.href,target:"_blank",rel:"noreferrer noopener",onClick:y.onClick},React.createElement(i.A,{icon:React.createElement("svg",{width:"27",height:"32",viewBox:"0 0 27 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M27 16L-1.4682e-06 31.5885L-1.05412e-07 0.411542L27 16Z",fill:"white"})),size:27}))),React.createElement(n.CardBody,null,React.createElement("h2",{className:"wpcom-tour-kit-step-card__heading"},w),React.createElement("p",{className:"wpcom-tour-kit-step-card__description"},_,b?React.createElement(n.Button,{className:"wpcom-tour-kit-step-card__description",variant:"tertiary",onClick:()=>d(0),ref:f},__("Restart tour","jetpack-mu-wpcom")):null)),React.createElement(n.CardFooter,null,b?React.createElement(c.A,null):React.createElement(l.A,{currentStepIndex:t,onDismiss:s,onGoToStep:d,onNextStep:p,onPreviousStep:m,setInitialFocusedElement:f,steps:e})))}},63047:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(14404);const r=({steps:e,currentStepIndex:t,onDismiss:o,onNextStep:r,onPreviousStep:s,onMinimize:i,setInitialFocusedElement:a,onGoToStep:c})=>React.createElement(n.A,{steps:e,currentStepIndex:t,onDismiss:o,onMinimize:i,onGoToStep:c,onNextStep:r,onPreviousStep:s,setInitialFocusedElement:a})},85530:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(8629),r=o(45922),s=o(71125),i=o(63047);const a=({config:e})=>((0,r.A)(e.steps),React.createElement(n.A,{__temp__className:"wpcom-tour-kit",config:{...e,renderers:{tourStep:i.A,tourMinimized:s.A}}}))},45922:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(86087);function r(e){(0,n.useEffect)((()=>{e.forEach((e=>{e.meta.imgSrc?.mobile&&((new window.Image).src=e.meta.imgSrc.mobile.src),e.meta.imgSrc?.desktop&&((new window.Image).src=e.meta.imgSrc.desktop.src)}))}),[e])}},64146:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(5573);const r=React.createElement(n.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.086 5.412l3.476-.015c-.627.625-1.225 1.22-1.82 1.81l-.03.031c-.977.971-1.944 1.934-3.015 3.004l1.06 1.061c1.07-1.07 2.036-2.03 3.013-3.002l.03-.03 1.817-1.808-.03 3.448 1.5.013.046-5.28.007-.759-.76.003-5.301.024.007 1.5zM9.914 18.587l-3.476.016c.627-.625 1.225-1.22 1.82-1.81l.03-.031c.977-.971 1.944-1.934 3.015-3.004l-1.06-1.061c-1.07 1.069-2.036 2.03-3.012 3.001l-.001.001-.03.03-1.817 1.808.03-3.448-1.5-.013-.046 5.279-.007.76.76-.003 5.301-.024-.007-1.5z"}))},64796:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(5573);const r=React.createElement(n.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.514 9.988l-3.476.016c.627-.626 1.225-1.22 1.82-1.811l.03-.03v-.001c.977-.971 1.944-1.933 3.015-3.004l-1.06-1.06c-1.07 1.069-2.037 2.03-3.013 3.001l-.03.03-1.818 1.809.03-3.449-1.5-.013-.045 5.28-.007.76.76-.004 5.301-.024-.007-1.5zM5.486 14.012l3.477-.016-1.82 1.811-.03.03c-.977.972-1.945 1.934-3.015 3.005l1.06 1.06c1.07-1.068 2.035-2.03 3.012-3V16.9l.03-.03 1.818-1.809-.03 3.449 1.5.013.046-5.28.006-.76-.76.004-5.3.024.006 1.5z",fill:"#fff"}))},2812:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(5573);const r=React.createElement(n.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 19.12a.667.667 0 001.227-.417l-.436-4.989h3.88c.954 0 1.64-.916 1.37-1.831L17.42 5.919a.286.286 0 00-.274-.205H9.429v7.588l3.702 5.818zm-5.417-5.977V5.714h-2v7.429h2zm5.98 8a2.381 2.381 0 01-2.01-1.103l-3.297-5.183H4V4h13.145a2 2 0 011.919 1.436l1.753 5.963a3.143 3.143 0 01-3.015 4.03h-2.01l.274 3.125a2.381 2.381 0 01-2.372 2.589z",fill:"#000"}))},67163:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(5573);const r=React.createElement(n.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},React.createElement(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 4.023a.667.667 0 011.227.416l-.436 4.99h3.88c.954 0 1.64.916 1.37 1.831l-1.753 5.963a.286.286 0 01-.274.206H9.429V9.84l3.702-5.818zM7.714 10v7.428h-2V10h2zm5.98-8c-.814 0-1.572.416-2.01 1.103L8.388 8.286H4v10.857h13.145a2 2 0 001.919-1.436l1.753-5.963a3.143 3.143 0 00-3.015-4.03h-2.01l.274-3.125A2.381 2.381 0 0013.694 2z",fill:"#000"}))},15027:(e,t,o)=>{"use strict";o.d(t,{A:()=>n.A,O:()=>r.A});var n=o(85530),r=o(45922)},92299:(e,t,o)=>{"use strict";o.d(t,{k:()=>n});const n=(e,t={},o=null,n=null)=>{const r=window.JP_CONNECTION_INITIAL_STATE?.userConnectionData?.currentUser??{},s=o??r.id,i=n??r.username,a=t.blogId??r.blogId;window._tkq=window._tkq||[],i&&s&&window._tkq.push(["identifyUser",s,i]),window._tkq.push(["recordEvent",e,{...t,blog_id:a}])}},80120:(e,t,o)=>{"use strict";var n=o(78254),r=o(56427),s=o(47143),i=o(86087),a=o(52619),c=o(92279),l=o(13053),u=o(93832),d=o(56353),p=o(12349),m=o(5648),f=o(83558),g=o(82502),h=o(75219),w=o(2598),v=o(85414),y=o(10478),b=o(37002),_=o(16957);let k;try{k=(0,l.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/edit-site").unlock}catch(e){console.error("Error: Unable to get the unlock api. Reason: %s",e)}function E(){const[e]=(0,i.useState)((0,u.getQueryArg)(window.location.href,"showDraftPostModal")),{show:t,isLoaded:o,variant:c,isManuallyOpened:l,isNewPageLayoutModalOpen:d,siteEditorCanvasMode:p}=(0,s.useSelect)((e=>{const t=e("automattic/wpcom-welcome-guide"),o=e("automattic/starter-page-layouts");let n;return k&&e("core/edit-site")&&(n=e("core/edit-site")&&k(e("core/edit-site")).getCanvasMode()),{show:t.isWelcomeGuideShown(),isLoaded:t.isWelcomeGuideStatusLoaded(),variant:t.getWelcomeGuideVariant(),isManuallyOpened:t.isWelcomeGuideManuallyOpened(),isNewPageLayoutModalOpen:o?.isOpen(),siteEditorCanvasMode:n}}),[]),f=(0,s.useDispatch)("automattic/starter-page-layouts")?.setOpenState,{fetchWelcomeGuideStatus:g}=(0,s.useDispatch)("automattic/wpcom-welcome-guide");(0,i.useEffect)((()=>{o||g()}),[g,o]);return!(0,a.applyFilters)("a8c.WpcomBlockEditorWelcomeTour.show",t)||d||p&&"edit"!==p?null:c===v.gH&&!l&&f?(f("OPEN_FOR_BLANK_CANVAS"),null):c===v.um?React.createElement(n.YO,null,e?React.createElement(m.A,null):React.createElement(_.A,null)):"modal"===c&&r.Guide&&r.GuidePage?React.createElement(b.A,null):null}(0,c.registerPlugin)("wpcom-block-editor-nux",{render:()=>React.createElement(d.f6,null,React.createElement(d.jO,null,React.createElement(d.l7,null,React.createElement(E,null),React.createElement(f.A,null),React.createElement(h.A,null),React.createElement(w.A,null),React.createElement(g.A,null),React.createElement(y.A,null),React.createElement(p.C,null))))})},43863:(e,t,o)=>{"use strict";o.d(t,{A:()=>s,f:()=>r});var n=o(56427);const r=()=>React.createElement(n.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},React.createElement(n.Path,{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})),s=()=>React.createElement(n.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},React.createElement(n.Path,{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}))},12349:(e,t,o)=>{"use strict";o.d(t,{C:()=>h});var n=o(1455),r=o.n(n),s=o(74997),i=o(56427),a=o(47143),c=o(27723),l=o(93832),u=o(76154),d=o.n(u),p=o(51609),m=o(92299),f=o(43863);const __=c.__,g=()=>{const[e,t]=(0,p.useState)(!0),[o,n]=(0,p.useState)([]),[c,u]=(0,p.useState)(0);if((0,p.useEffect)((()=>{const e=(0,l.addQueryArgs)("/wpcom/v3/blogging-prompts",{per_page:10,after:d()().format("--MM-DD"),order:"desc",force_year:(new Date).getFullYear()});r()({path:e}).then((e=>((0,m.k)("calypso_editor_writing_prompts_modal_viewed"),n(e)))).catch((()=>console.error("Unable to fetch writing prompts")))}),[]),!e||!o.length)return null;return React.createElement(i.Modal,{onRequestClose:()=>{(0,m.k)("calypso_editor_writing_prompts_modal_closed"),t(!1)},className:"blogging-prompts-modal",title:__("Some ideas for writing topics","jetpack-mu-wpcom")},React.createElement("div",{className:"blogging-prompts-modal__prompt"},React.createElement("div",{className:"blogging-prompts-modal__prompt-navigation"},React.createElement(i.Button,{onClick:()=>u(c-1<0?o.length-1:c-1),"aria-label":__("Show previous prompt","jetpack-mu-wpcom"),variant:"secondary",className:"blogging-prompts-modal__prompt-navigation-button"},React.createElement(f.A,null)),React.createElement("h2",{className:"blogging-prompts-modal__prompt-text"},o[c]?.text),React.createElement(i.Button,{onClick:()=>u((c+1)%o.length),"aria-label":__("Show next prompt","jetpack-mu-wpcom"),variant:"secondary",className:"blogging-prompts-modal__prompt-navigation-button"},React.createElement(f.f,null))),React.createElement(i.Button,{onClick:()=>{const e=o[c]?.id;(0,a.dispatch)("core/editor").resetEditorBlocks([(0,s.createBlock)("jetpack/blogging-prompt",{promptId:e})]),(0,m.k)("calypso_editor_writing_prompts_modal_prompt_selected",{prompt_id:e}),t(!1)},variant:"secondary"},__("Post Answer","jetpack-mu-wpcom"))))},h=()=>{const e=(0,l.getQueryArg)(window.location.href,"new_prompt"),t=(0,a.select)("core/editor").getCurrentPostType();return e&&"post"===t?React.createElement(g,null):null}},22341:(e,t,o)=>{"use strict";var n=o(47143);o(45518);const r=(0,n.subscribe)((()=>{(0,n.dispatch)("core/nux").disableTips(),(0,n.select)("core/edit-post")?.isFeatureActive("welcomeGuide")&&((0,n.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),r()),(0,n.select)("core/edit-site")?.isFeatureActive("welcomeGuide")&&((0,n.dispatch)("core/edit-site").toggleFeature("welcomeGuide"),r())}));(0,n.subscribe)((()=>{(0,n.select)("core/nux").areTipsEnabled()&&((0,n.dispatch)("core/nux").disableTips(),(0,n.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0)),(0,n.select)("core/edit-post")?.isFeatureActive("welcomeGuide")&&((0,n.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,n.select)("automattic/wpcom-welcome-guide").isWelcomeGuideStatusLoaded()&&(0,n.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0})),(0,n.select)("core/edit-site")?.isFeatureActive("welcomeGuide")&&((0,n.dispatch)("core/edit-site").toggleFeature("welcomeGuide"),(0,n.select)("automattic/wpcom-welcome-guide").isWelcomeGuideStatusLoaded()&&(0,n.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0}))}))},5648:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var n=o(56427),r=o(86087),s=o(52619),i=o(27723),a=o(59731),c=o(92299),l=o(24503);const __=i.__,u="a8c.wpcom-block-editor.closeEditor",d=()=>{const e=`/home/${window.location.hostname}`,[t,o]=(0,r.useState)(!0),i=()=>o(!1);return React.createElement(l.A,{isOpen:t,className:"wpcom-block-editor-draft-post-modal",title:__("Write your first post","jetpack-mu-wpcom"),description:__("It’s time to flex those writing muscles and start drafting your first post!","jetpack-mu-wpcom"),imageSrc:a,actionButtons:React.createElement(React.Fragment,null,React.createElement(n.Button,{isPrimary:!0,onClick:i},__("Start writing","jetpack-mu-wpcom")),React.createElement(n.Button,{isSecondary:!0,onClick:()=>{(0,s.hasAction)(u)?(0,s.doAction)(u,e):window.location.href=`https://wordpress.com${e}`}},__("I'm not ready","jetpack-mu-wpcom"))),onRequestClose:i,onOpen:()=>(0,c.k)("calypso_editor_wpcom_draft_post_modal_show")})}},83558:(e,t,o)=>{"use strict";o.d(t,{A:()=>g});var n=o(56427),r=o(47143),s=o(86087),i=o(27723),a=o(93832),c=o(51609),l=o.n(c),u=o(32384),d=o(56353),p=o(92299),m=o(24503);const __=i.__,f=()=>{const{link:e}=(0,r.useSelect)((e=>e("core/editor").getCurrentPost()),[]),t=(0,r.useSelect)((e=>e("core/editor").getCurrentPostType()),[]),o=(0,r.useSelect)((e=>e("core/editor").isCurrentPostPublished()),[]),i=(0,s.useRef)(o),c=(0,d.rN)(),[f,g]=(0,s.useState)(!1),{siteUrlOption:h,launchpadScreenOption:w,siteIntentOption:v}=window?.launchpadOptions||{};let y="";(0,a.isURL)(h)&&(y=new URL(h).hostname),(0,s.useEffect)((()=>{c&&!i.current&&o&&"post"===t&&(i.current=o,window.setTimeout((()=>{g(!0)})))}),[t,c,o]);return l().createElement(m.A,{isOpen:f,className:"wpcom-block-editor-post-published-modal",title:__("Your first post is published!","jetpack-mu-wpcom"),description:__("Congratulations! You did it. View your post to see how it will look on your site.","jetpack-mu-wpcom"),imageSrc:u,actionButtons:l().createElement(l().Fragment,null,l().createElement(n.Button,{variant:"primary",onClick:t=>{t.preventDefault(),window.top.location.href=e}},__("View Post","jetpack-mu-wpcom")),"full"===w&&"write"===v&&l().createElement(n.Button,{variant:"secondary",onClick:e=>{e.preventDefault(),window.top.location.href=`https://wordpress.com/setup/write/launchpad?siteSlug=${y}`}},__("Next Steps","jetpack-mu-wpcom"))),onRequestClose:()=>g(!1),onOpen:()=>(0,p.k)("calypso_editor_wpcom_first_post_published_modal_show")})},g=()=>{const{siteIntent:e}=(0,d.Bg)();return"write"===e?l().createElement(f,null):null}},24503:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var n=o(56427),r=o(86087),s=o(13022),i=o(51609),a=o.n(i);const c=({isOpen:e,className:t,title:o,description:i,imageSrc:c,actionButtons:l,onRequestClose:u,onOpen:d})=>{const p=(0,r.useRef)(null);return(0,r.useEffect)((()=>{!p.current&&e&&d?.(),p.current=e}),[p,e,d]),e?a().createElement(n.Modal,{className:(0,s.A)("wpcom-block-editor-nux-modal",t),title:"",onRequestClose:u},a().createElement("div",{className:"wpcom-block-editor-nux-modal__image-container"},a().createElement("img",{src:c,alt:o})),a().createElement("h1",{className:"wpcom-block-editor-nux-modal__title"},o),a().createElement("p",{className:"wpcom-block-editor-nux-modal__description"},i),a().createElement("div",{className:"wpcom-block-editor-nux-modal__buttons"},l)):null}},82502:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(47143),r=o(27723),s=o(692),i=o(51609);const __=r.__;const a=function(){const e=(0,i.useRef)(!1),{createNotice:t}=(0,n.useDispatch)(s.store);return(0,i.useEffect)((()=>{const o=/[&?]notice=([\w_-]+)/.exec(document.location.search);"purchase-success"===(o&&o[1])&&!1===e.current&&(e.current=!0,t("info",__("Congrats! Premium blocks are now available to use.","jetpack-mu-wpcom"),{isDismissible:!0,type:"snackbar"}))}),[t]),null}},81091:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(96072),r=o.n(n),s=o(13022),i=o(51609);const a=(0,i.forwardRef)((({className:e,...t},o)=>React.createElement("input",r()({ref:o},t,{type:"checkbox",className:(0,s.A)(e,"form-checkbox")}))))},19412:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var n=o(96072),r=o.n(n),s=o(27723),i=o(13022),a=o(51609);const __=s.__,c=({children:e,required:t,optional:o,className:n,...s})=>{const c=a.Children.count(e)>0;return React.createElement("label",r()({},s,{className:(0,i.A)(n,"form-label")}),e,c&&t&&React.createElement("small",{className:"form-label__required"},__("Required","jetpack-mu-wpcom")),c&&o&&React.createElement("small",{className:"form-label__optional"},__("Optional","jetpack-mu-wpcom")))}},75219:(e,t,o)=>{"use strict";o.d(t,{A:()=>m});var n=o(56427),r=o(47143),s=o(86087),i=o(51609),a=o.n(i),c=o(56353),l=o(92299),u=o(37602),d=o(15460);const p=()=>{const e=window?.recommendedTagsModalOptions?.isDismissed||!1,{launchpadScreenOption:t}=window?.launchpadOptions||{},{isDismissed:o,updateIsDismissed:i}=(0,d.A)(e),p=(0,r.useSelect)((e=>e("core/editor").getCurrentPostType()),[]),m=(0,r.useSelect)((e=>e("core/editor").isCurrentPostPublished()),[]),f=(0,s.useRef)(m),g=(0,c.rN)(),h=(0,c.sr)(),w=(0,c.kN)(m),[v,y]=(0,s.useState)(!1),[b,_]=(0,s.useState)(!0);return(0,s.useEffect)((()=>{g||h||w||"full"===t||f.current||!m||"post"!==p||(f.current=m,(0,l.k)("calypso_editor_recommended_tags_dialog_show"),(0,l.k)("calypso_editor_sharing_dialog_show"),window.setTimeout((()=>{y(!0)})))}),[p,g,h,w,m,t]),v&&b&&!e?a().createElement(n.Modal,{className:"wpcom-block-editor-post-published-recommended-tags-modal",title:"",onRequestClose:()=>y(!1)},a().createElement("div",{className:"wpcom-block-editor-post-published-recommended-tags-modal__inner"},a().createElement(u.A,{setShouldShowSuggestedTags:_,onDontShowAgainChange:()=>{i(!o)}}))):null},m=()=>{const{siteIntent:e}=(0,c.Bg)();return e===c.Xf||e===c.JV?null:a().createElement(p,null)}},37602:(e,t,o)=>{"use strict";o.d(t,{A:()=>g});var n=o(78254),r=o(56427),s=o(47143),i=o(86087),a=o(27723),c=o(692),l=o(51609),u=o(92299),d=o(81091),p=o(19412),m=o(13259);const __=a.__,_n=a._n;function f(e){const t=(0,n.Ym)(),{id:o,meta:a}=(0,s.useSelect)((e=>e("core/editor").getCurrentPost()),[]),{createNotice:f}=(0,s.useDispatch)(c.store),g=a?.reader_suggested_tags?JSON.parse(a.reader_suggested_tags):[],[h,w]=l.useState(g),{saveTags:v}=(0,m.A)(o,h,(t=>{const o={number_of_original_suggested_tags:g.length,number_of_selected_tags:h.length,number_of_suggested_tags_selected:g.filter((e=>h.includes(e))).length,number_of_added_tags:t};(0,u.k)("calypso_reader_post_publish_add_tags",o),t>0?f("success",_n("Tag Added.","Tags Added.",t,"jetpack-mu-wpcom"),{type:"snackbar"}):f("warning",__("No Tags Added.","jetpack-mu-wpcom"),{type:"snackbar"}),e.setShouldShowSuggestedTags(!1)})),[y,b]=(0,i.useState)(!1);(0,i.useEffect)((()=>{0===g?.length?(t&&t.startsWith("en")&&(0,u.k)("calypso_reader_post_publish_no_suggested_tags"),e.setShouldShowSuggestedTags(!1)):(0,u.k)("calypso_reader_post_publish_show_suggested_tags",{number_of_original_suggested_tags:g.length})}),[]);const _=l.createElement(r.FormTokenField,{value:h,onChange:e=>{w(e),(0,u.k)("calypso_reader_post_publish_update_suggested_tags")},label:__("Tags","jetpack-mu-wpcom")});return l.createElement("div",{className:"wpcom-block-editor-post-published-recommended-tags-modal__suggest-tags"},l.createElement("h1",null,__("Recommended tags","jetpack-mu-wpcom")),l.createElement("p",null,__("Based on the topics and themes in your post, here are some suggested tags to consider:","jetpack-mu-wpcom")),_,l.createElement("p",null,__("Adding tags can help drive more traffic to your post.","jetpack-mu-wpcom")),l.createElement("div",{className:"wpcom-block-editor-post-published-recommended-tags-modal__actions"},l.createElement("div",{className:"wpcom-block-editor-post-published-recommended-tags-modal__actions-checkbox"},l.createElement(p.A,{htmlFor:"toggle",className:"is-checkbox"},l.createElement(d.A,{id:"toggle",onChange:e.onDontShowAgainChange}),l.createElement("span",null,__("Don't show again","jetpack-mu-wpcom")))),l.createElement(r.Button,{className:"wpcom-block-editor-post-published-recommended-tags-modal__save-tags",onClick:async()=>{b(!0),await v(),b(!1)},variant:"primary",isBusy:y},__("Add these tags","jetpack-mu-wpcom"))))}const g=l.memo(f)},13259:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(1455),r=o.n(n);const s=(e,t,o)=>({saveTags:async function(){let n=0;try{n=(await r()({method:"POST",path:`/wpcom/v2/read/sites/${window._currentSiteId}/posts/${e}/tags/add`,data:{tags:t}})).added_tags??0}catch(e){console.error("Error: Unable to add tags. Reason: %s",JSON.stringify(e))}o(n)}})},15460:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(1455),r=o.n(n),s=o(86087);const i=e=>{const[t,o]=(0,s.useState)(e);return{isDismissed:t,updateIsDismissed:function(e){r()({method:"PUT",path:"/wpcom/v2/block-editor/recommended-tags-modal-dismissed",data:{wpcom_recommended_tags_modal_dismissed:e}}).finally((()=>{o(e)}))}}}},2598:(e,t,o)=>{"use strict";o.d(t,{A:()=>p});var n=o(56427),r=o(47143),s=o(86087),i=o(27723),a=o(2469),c=o(56353),l=o(92299),u=o(24503);const __=i.__,d=()=>{const{addEntities:e}=(0,r.useDispatch)("core");(0,s.useEffect)((()=>{e([{baseURL:"/wp/v2/statuses",key:"slug",kind:"root",name:"status",plural:"statuses"}])}),[]);const[t,o]=(0,s.useState)(!1),[i,d]=(0,s.useState)(!1),p=(0,r.useSelect)((e=>!!e("core/edit-site"))),m=(0,s.useRef)(!1),{updateHasSeenSellerCelebrationModal:f}=(0,c.Z4)(),g=(0,r.useSelect)((e=>{if(p){const t=e("core/edit-site").getPage(),o=parseInt(t?.context?.postId),n=e("core").getEntityRecord("postType","page",o);return n?.link}return e("core/editor").getCurrentPost().link})),h=(0,c.sr)(),w=(0,r.useSelect)((e=>{if(p){const t=e("core/edit-site").getPage(),o=parseInt(t?.context?.postId),n=e("core").isSavingEntityRecord("root","site")&&!e("core").isAutosavingEntityRecord("root","site"),r=e("core").isSavingEntityRecord("postType","page",o)&&!e("core").isAutosavingEntityRecord("postType","page",o);return n||r}const t=e("core/editor").getCurrentPost();return e("core").isSavingEntityRecord("postType",t?.type,t?.id)&&!e("core").isAutosavingEntityRecord("postType",t?.type,t?.id)}));(0,s.useEffect)((()=>{!w&&m.current&&!i&&h&&(o(!0),d(!0),f(!0)),m.current=w}),[w,i,h,f]);const v=()=>o(!1);return React.createElement(u.A,{isOpen:t,className:"wpcom-site-editor-seller-celebration-modal",title:__("You've added your first product!","jetpack-mu-wpcom"),description:__("Preview your product on your site before launching and sharing with others.","jetpack-mu-wpcom"),imageSrc:a,actionButtons:React.createElement(React.Fragment,null,React.createElement(n.Button,{onClick:v},__("Continue editing","jetpack-mu-wpcom")),React.createElement(n.Button,{isPrimary:!0,href:g,target:"_blank",rel:"noopener noreferrer"},__("View your product","jetpack-mu-wpcom"))),onRequestClose:v,onOpen:()=>(0,l.k)("calypso_editor_wpcom_seller_celebration_modal_show")})},p=()=>{const{siteIntent:e}=(0,c.Bg)();return"sell"===e?React.createElement(d,null):null}},85414:(e,t,o)=>{"use strict";o.d(t,{gH:()=>c,kz:()=>p,um:()=>a});var n=o(1455),r=o.n(n),s=o(47143),i=o(66161);const a="tour",c="blank-canvas-tour",l=(0,s.combineReducers)({welcomeGuideManuallyOpened:(e=!1,t)=>{switch(t.type){case"WPCOM_WELCOME_GUIDE_SHOW_SET":return void 0!==t.openedManually?t.openedManually:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}},showWelcomeGuide:(e=void 0,t)=>{switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.show_welcome_guide;case"WPCOM_WELCOME_GUIDE_SHOW_SET":return t.show;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},tourRating:(e=void 0,t)=>{switch(t.type){case"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET":return t.tourRating;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},welcomeGuideVariant:(e=a,t)=>{switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.variant;case"WPCOM_HAS_USED_PATTERNS_MODAL":return e===c?a:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return a;default:return e}},shouldShowFirstPostPublishedModal:(e=!1,t)=>{switch(t.type){case"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL":return t.value;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}}}),u={*fetchWelcomeGuideStatus(){return{type:"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS",response:yield(0,i.apiFetch)({path:"/wpcom/v2/block-editor/nux"})}},*fetchShouldShowFirstPostPublishedModal(){return{type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:(yield(0,i.apiFetch)({path:"/wpcom/v2/block-editor/should-show-first-post-published-modal"})).should_show_first_post_published_modal}},setShowWelcomeGuide:(e,{openedManually:t,onlyLocal:o}={})=>(o||r()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{show_welcome_guide:e}}),{type:"WPCOM_WELCOME_GUIDE_SHOW_SET",show:e,openedManually:t}),setTourRating:e=>({type:"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET",tourRating:e}),setUsedPageOrPatternsModal:()=>({type:"WPCOM_HAS_USED_PATTERNS_MODAL"}),resetStore:()=>({type:"WPCOM_WELCOME_GUIDE_RESET_STORE"})},d={isWelcomeGuideManuallyOpened:e=>e.welcomeGuideManuallyOpened,isWelcomeGuideShown:e=>!!e.showWelcomeGuide,isWelcomeGuideStatusLoaded:e=>void 0!==e.showWelcomeGuide,getTourRating:e=>e.tourRating,getWelcomeGuideVariant:e=>"modal"===e.welcomeGuideVariant?a:e.welcomeGuideVariant,getShouldShowFirstPostPublishedModal:e=>e.shouldShowFirstPostPublishedModal};function p(){return(0,s.registerStore)("automattic/wpcom-welcome-guide",{reducer:l,actions:u,selectors:d,controls:i.controls,persist:!0})}},10478:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var n=o(56427),r=o(47143),s=o(86087),i=o(27723),a=o(63118),c=o(56353),l=o(24503);const __=i.__,u=()=>{const[e,t]=(0,s.useState)(!1),[o,i]=(0,s.useState)(!1),u=(0,r.useSelect)((e=>!!e("core/edit-site"))),d=(0,s.useRef)(!1),{updateHasSeenVideoCelebrationModal:p}=(0,c.v2)(),{isEditorSaving:m}=(0,r.useSelect)((e=>{if(u){const t=e("core").isSavingEntityRecord("root","site")&&!e("core").isAutosavingEntityRecord("root","site"),o=e("core/edit-site").getPage(),n=parseInt(o?.context?.postId),r=e("core").isSavingEntityRecord("postType","page",n)&&!e("core").isAutosavingEntityRecord("postType","page",n),s=e("core").getEntityRecord("postType","page",n);return{isEditorSaving:t||r,linkUrl:s?.link}}const t=e("core/editor").getCurrentPost();return{isEditorSaving:e("core").isSavingEntityRecord("postType",t?.type,t?.id)&&!e("core").isAutosavingEntityRecord("postType",t?.type,t?.id)}})),f=(0,c.kN)(m);(0,s.useEffect)((()=>{!m&&d.current&&!o&&f&&(t(!0),i(!0),p(!0)),d.current=m}),[m,o,f,p]);const g=()=>t(!1);return React.createElement(l.A,{isOpen:e,className:"wpcom-site-editor-video-celebration-modal",title:__("You’ve added your first video!","jetpack-mu-wpcom"),description:__("Feel free to keep editing your homepage, or continue and launch your site.","jetpack-mu-wpcom"),imageSrc:a,actionButtons:React.createElement(React.Fragment,null,React.createElement(n.Button,{onClick:g},__("Keep editing","jetpack-mu-wpcom")),React.createElement(n.Button,{isPrimary:!0,href:`https://wordpress.com/setup/videopress/launchpad?siteSlug=${window.location.hostname}`,target:"_blank",rel:"noopener noreferrer"},__("Continue and launch","jetpack-mu-wpcom"))),onRequestClose:g})},d=()=>{const{siteIntent:e}=(0,c.Bg)();return"videopress"===e?React.createElement(u,null):null}},37002:(e,t,o)=>{"use strict";o.d(t,{A:()=>g});var n=o(96072),r=o.n(n),s=o(56427),i=o(47143),a=o(86087),c=o(27723),l=o(52601),u=o(34588),d=o(65921),p=o(69552),m=o(92299);const __=c.__;function f({pageNumber:e,isLastPage:t,alignBottom:o=!1,heading:n,description:r,imgSrc:i}){return(0,a.useEffect)((()=>{(0,m.k)("calypso_editor_wpcom_nux_slide_view",{slide_number:e,is_last_slide:t,is_gutenboarding:window.calypsoifyGutenberg?.isGutenboarding})}),[]),React.createElement(s.GuidePage,{className:"wpcom-block-editor-nux__page"},React.createElement("div",{className:"wpcom-block-editor-nux__text"},React.createElement("h1",{className:"wpcom-block-editor-nux__heading"},n),React.createElement("div",{className:"wpcom-block-editor-nux__description"},r)),React.createElement("div",{className:"wpcom-block-editor-nux__visual"},React.createElement("img",{key:i,src:i,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(o?" align-bottom":"")})))}const g=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:o}=(0,i.useSelect)((e=>({show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}))),{setShowWelcomeGuide:n}=(0,i.useDispatch)("automattic/wpcom-welcome-guide");if((0,a.useEffect)((()=>{e&&!t&&(0,m.k)("calypso_editor_wpcom_nux_open",{is_gutenboarding:window.calypsoifyGutenberg?.isGutenboarding,is_manually_opened:o})}),[o,t,e]),!e||t)return null;const c=[{heading:__("Welcome to your website","jetpack-mu-wpcom"),description:__("Edit your homepage, add the pages you need, and change your site’s look and feel.","jetpack-mu-wpcom"),imgSrc:u,alignBottom:!0},{heading:__("Add or edit your content","jetpack-mu-wpcom"),description:__("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","jetpack-mu-wpcom"),imgSrc:l},{heading:__("Preview your site as you go","jetpack-mu-wpcom"),description:__("As you edit your site content, click “Preview” to see your site the way your visitors will.","jetpack-mu-wpcom"),imgSrc:d,alignBottom:!0},{heading:__("Hidden until you’re ready","jetpack-mu-wpcom"),description:__("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","jetpack-mu-wpcom"),imgSrc:p,alignBottom:!0}];return React.createElement(s.Guide,{className:"wpcom-block-editor-nux",contentLabel:__("Welcome to your website","jetpack-mu-wpcom"),finishButtonText:__("Get started","jetpack-mu-wpcom"),onFinish:()=>{(0,m.k)("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:window.calypsoifyGutenberg?.isGutenboarding}),n(!1,{openedManually:!1})}},c.map(((e,t)=>React.createElement(f,r()({key:e.heading,pageNumber:t+1,isLastPage:t===c.length-1},e)))))}},4810:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(47143);const r=()=>(0,n.select)("core/edit-site")?"site":(0,n.select)("core/editor")?(0,n.select)("core/editor").getCurrentPostType():void 0},16957:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var n=o(78254),r=o(47143),s=o(86087),i=o(56353),a=o(92299),c=o(4810),l=o(48959);function u({siteIntent:e}){const t=(0,i.cz)(window._currentSiteId),o=(0,n.Ym)(),{setShowWelcomeGuide:u}=(0,r.useDispatch)("automattic/wpcom-welcome-guide"),d=window.calypsoifyGutenberg?.isGutenboarding,p=()=>new URLSearchParams(document.location.search).has("welcome-tour-next"),m=(0,r.useSelect)((e=>!!e("core/edit-site")),[]),f=(0,r.useSelect)((e=>e("core").getCurrentTheme())),g=f?.name?.raw?.toLowerCase()??null,h=(0,l.A)(o,p(),m,g,e);if("sell"!==e||!t||"ecommerce-bundle"===t.product_slug){const e=h.findIndex((e=>"payment-block"===e.slug));h.splice(e,1)}const{isInserterOpened:w,isSidebarOpened:v,isSettingsOpened:y}=(0,r.useSelect)((e=>({isInserterOpened:e("core/edit-post").isInserterOpened(),isSidebarOpened:e("automattic/block-editor-nav-sidebar")?.isSidebarOpened()??!1,isSettingsOpened:"edit-post/document"===e("core/interface").getActiveComplementaryArea("core/edit-post")})),[]),b=v||window.matchMedia("(max-width: 782px)").matches&&(w||y),_=(0,c.A)(),k={steps:h,closeHandler:(t,o,n)=>{(0,a.k)("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:d,slide_number:o+1,action:n,intent:e,editor_type:_}),u(!1,{openedManually:!1})},isMinimized:b,options:{tourRating:{enabled:!0,useTourRating:()=>(0,r.useSelect)((e=>e("automattic/wpcom-welcome-guide").getTourRating()),[]),onTourRate:t=>{(0,r.dispatch)("automattic/wpcom-welcome-guide").setTourRating(t),(0,a.k)("calypso_editor_wpcom_tour_rate",{thumbs_up:"thumbs-up"===t,is_gutenboarding:!1,intent:e,editor_type:_})}},callbacks:{onMinimize:t=>{(0,a.k)("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:d,slide_number:t+1,intent:e,editor_type:_})},onMaximize:t=>{(0,a.k)("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:d,slide_number:t+1,intent:e,editor_type:_})},onStepViewOnce:t=>{const o=h.length-1,{heading:n}=h[t].meta;(0,a.k)("calypso_editor_wpcom_tour_slide_view",{slide_number:t+1,is_last_slide:t===o,slide_heading:n,is_gutenboarding:d,intent:e,editor_type:_})}},effects:{spotlight:p()?{styles:{minWidth:"50px",minHeight:"50px",borderRadius:"2px"}}:void 0,arrowIndicator:!1},popperModifiers:[(0,s.useMemo)((()=>({name:"offset",options:{offset:({placement:e,reference:t})=>{if("bottom"===e){const e=document.querySelector(".edit-post-header");if(!e)return;const o=e.getBoundingClientRect();return[0,o.height+o.y-(t.height+t.y)+16]}return[0,0]}}})),[])],classNames:"wpcom-editor-welcome-tour",portalParentElement:document.getElementById("wpwrap")}};return null===g?null:React.createElement(i.ns,{config:k})}const d=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:o}=(0,r.useSelect)((e=>({show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()})),[]),{siteIntent:d,siteIntentFetched:p}=(0,i.Bg)(),m=(0,n.Ym)(),f=(0,c.A)(),{siteIntent:g}=(0,i.Bg)(),h=g===i.Xf||g===i.JV,w=(0,l.A)(m,!1,!1,null,d);return(0,i.Oo)([w[0]]),(0,s.useEffect)((()=>{h||(e||t)&&p&&(0,a.k)("calypso_editor_wpcom_tour_open",{is_gutenboarding:window.calypsoifyGutenberg?.isGutenboarding,is_manually_opened:o,intent:d,editor_type:f})}),[t,o,e,d,p,f,h]),!e||t||h?null:React.createElement(u,{siteIntent:d})}},48959:(e,t,o)=>{"use strict";o.d(t,{A:()=>m});var n=o(14437),r=o(85985),s=o(56427),i=o(29491),a=o(86087),c=o(27723),l=o(93832),u=o(92299),d=o(4810);const __=c.__,_x=c._x;function p(e){const t="https://s0.wp.com/i/editor-welcome-tour";return{addBlock:{desktop:{src:`${t}/slide-add-block.gif`,type:"image/gif"},mobile:{src:`${t}/slide-add-block_mobile.gif`,type:"image/gif"}},allBlocks:{desktop:{src:`${t}/slide-all-blocks.gif`,type:"image/gif"}},finish:{desktop:{src:`${t}/slide-finish.png`,type:"image/gif"}},makeBold:{desktop:{src:`${t}/slide-make-bold.gif`,type:"image/gif"}},moreOptions:{desktop:{src:`${t}/slide-more-options.gif`,type:"image/gif"},mobile:{src:`${t}/slide-more-options_mobile.gif`,type:"image/gif"}},moveBlock:{desktop:{src:`${t}/slide-move-block.gif`,type:"image/gif"},mobile:{src:`${t}/slide-move-block_mobile.gif`,type:"image/gif"}},findYourWay:{desktop:{src:`${t}/slide-find-your-way.gif`,type:"image/gif"}},undo:{desktop:{src:`${t}/slide-undo.gif`,type:"image/gif"}},welcome:{desktop:{src:`${t}/slide-welcome.png`,type:"image/png"},mobile:{src:`${t}/slide-welcome_mobile.jpg`,type:"image/jpeg"}},editYourSite:{desktop:{src:"https://s.w.org/images/block-editor/edit-your-site.gif?1",type:"image/gif"},mobile:{src:"https://s.w.org/images/block-editor/edit-your-site.gif?1",type:"image/gif"}},videomakerWelcome:{desktop:{src:`${t}/slide-videomaker-welcome.png`,type:"image/png"}},videomakerEdit:{desktop:{src:`${t}/slide-videomaker-edit.png`,type:"image/png"}}}[e]}const m=function(e,t=!1,o=!1,c=null,m=void 0){const f="videomaker"===(c??""),g=!!(0,l.getQueryArg)(window.location.href,"assembler"),h=(0,i.useViewportMatch)("mobile","<"),w=`https://wordpress.com/home/${window.location.hostname}?courseSlug=site-editor-quick-start`,v=(0,d.A)(),y=()=>{(0,u.k)("calypso_editor_wpcom_tour_site_editor_course_link_click",{is_pattern_assembler:g,intent:m,editor_type:v})};return[{slug:"welcome",meta:{heading:g?__("Nice job! Your new page is set up.","jetpack-mu-wpcom"):_x("Welcome to WordPress!","workaround","jetpack-mu-wpcom"),descriptions:{desktop:g?(0,a.createInterpolateElement)(__("This is the Site Editor, where you can change everything about your site, including adding content to your homepage. Watch these short videos and take this tour to get started.","jetpack-mu-wpcom"),{link_to_site_editor_course:React.createElement(s.ExternalLink,{href:w,onClick:y,children:null})}):o?__("Take this short, interactive tour to learn the fundamentals of the WordPress Site Editor.","jetpack-mu-wpcom"):_x("Take this short, interactive tour to learn the fundamentals of the WordPress editor.","workaround","jetpack-mu-wpcom"),mobile:null},imgSrc:p(f?"videomakerWelcome":"welcome"),imgLink:g?{href:w,playable:!0,onClick:y}:void 0},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","calypso_editor_wpcom_draft_post_modal_show"]}}},{slug:"everything-is-a-block",meta:{heading:__("Everything is a block","jetpack-mu-wpcom"),descriptions:{desktop:__("In the WordPress Editor, paragraphs, images, and videos are all blocks.","jetpack-mu-wpcom"),mobile:null},imgSrc:p("allBlocks")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},{slug:"add-block",...t&&{referenceElements:{mobile:".edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle",desktop:".edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle"}},meta:{heading:__("Adding a new block","jetpack-mu-wpcom"),descriptions:{desktop:__("Click + to open the inserter. Then click the block you want to add.","jetpack-mu-wpcom"),mobile:__("Tap + to open the inserter. Then tap the block you want to add.","jetpack-mu-wpcom")},imgSrc:p("addBlock")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{slug:"settings",...t&&{referenceElements:{mobile:".edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)",desktop:".edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)"}},meta:{heading:__("More Options","jetpack-mu-wpcom"),descriptions:{desktop:__("Click the settings icon to see even more options.","jetpack-mu-wpcom"),mobile:__("Tap the settings icon to see even more options.","jetpack-mu-wpcom")},imgSrc:p("moreOptions")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},...h?[]:[{slug:"find-your-way",meta:{heading:__("Find your way","jetpack-mu-wpcom"),descriptions:{desktop:__("Use List View to see all the blocks you've added. Click and drag any block to move it around.","jetpack-mu-wpcom"),mobile:null},imgSrc:p("findYourWay")},options:{classNames:{desktop:["is-with-extra-padding","wpcom-editor-welcome-tour__step"],mobile:"wpcom-editor-welcome-tour__step"}}}],{slug:"payment-block",meta:{heading:__("The Payments block","jetpack-mu-wpcom"),descriptions:{desktop:React.createElement(React.Fragment,null,__("The Payments block allows you to accept payments for one-time, monthly recurring, or annual payments on your website","jetpack-mu-wpcom"),React.createElement("br",null),React.createElement(s.ExternalLink,{href:(0,n.rm)("https://wordpress.com/support/video-tutorials-add-payments-features-to-your-site-with-our-guides/#how-to-use-the-payments-block-video",e),rel:"noopener noreferrer"},__("Learn more","jetpack-mu-wpcom"))),mobile:null},imgSrc:p("welcome")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},...o?[{slug:"edit-your-site",meta:{heading:__("Edit your site","jetpack-mu-wpcom"),descriptions:{desktop:(0,a.createInterpolateElement)(__("Design everything on your site - from the header right down to the footer - in the Site Editor. Learn more","jetpack-mu-wpcom"),{link_to_fse_docs:React.createElement(s.ExternalLink,{href:(0,n.rm)("https://wordpress.com/support/full-site-editing/",e),children:null})}),mobile:__("Design everything on your site - from the header right down to the footer - in the Site Editor.","jetpack-mu-wpcom")},imgSrc:p("editYourSite")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}}]:[],{slug:"congratulations",meta:{heading:__("Congratulations!","jetpack-mu-wpcom"),descriptions:{desktop:(0,r.lk)()?(0,a.createInterpolateElement)(__("You've learned the basics. Remember, your site is private until you decide to launch. View the block editing docs to learn more.","jetpack-mu-wpcom"),{link_to_launch_site_docs:React.createElement(s.ExternalLink,{href:(0,n.rm)("https://wordpress.com/support/settings/privacy-settings/#launch-your-site",e),children:null}),link_to_editor_docs:React.createElement(s.ExternalLink,{href:(0,n.rm)("https://wordpress.com/support/wordpress-editor/",e),children:null})}):(0,a.createInterpolateElement)(__("You've learned the basics. View the block editing docs to learn more.","jetpack-mu-wpcom"),{link_to_editor_docs:React.createElement(s.ExternalLink,{href:(0,n.rm)("https://wordpress.com/support/wordpress-editor/",e),children:null})}),mobile:null},imgSrc:p("finish")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}}]}},73315:(e,t,o)=>{"use strict";var n=o(51621);e.exports=function(){var e=n.apply(n,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},43873:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},92811:(e,t,o)=>{"use strict";var n;o.d(t,{A:()=>s});var r=new Uint8Array(16);function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)}},54755:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});for(var n=o(6026),r=[],s=0;s<256;++s)r.push((s+256).toString(16).substr(1));const i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase();if(!(0,n.A)(o))throw TypeError("Stringified UUID is invalid");return o}},60070:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(92811),r=o(54755);const s=function(e,t,o){var s=(e=e||{}).random||(e.rng||n.A)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){o=o||0;for(var i=0;i<16;++i)t[o+i]=s[i];return t}return(0,r.A)(s)}},6026:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(43873);const r=function(e){return"string"==typeof e&&n.A.test(e)}},71309:(e,t,o)=>{var n=o(73315),r=o(37110);function s(e,t){if(t)if("number"==typeof t)i(e,t);else{t.status_code&&i(e,t.status_code),t.error&&(e.name=c(t.error)),t.error_description&&(e.message=t.error_description);var o=t.errors;if(o)s(e,o.length?o[0]:o);for(var n in t)e[n]=t[n];e.status&&(t.method||t.path)&&a(e)}}function i(e,t){e.name=c(r[t]),e.status=e.statusCode=t,a(e)}function a(e){var t=e.status,o=e.method,n=e.path,r=t+" status code",s=o||n;s&&(r+=' for "'),o&&(r+=o),s&&(r+=" "),n&&(r+=n),s&&(r+='"'),e.message=r}function c(e){return n(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,o=0;o{"use strict";o.d(t,{Ay:()=>S});var n=o(46941),r=o.n(n),s=o(60070),i=o(71309),a=o.n(i);const c=r()("wpcom-proxy-request"),l="https://public-api.wordpress.com";let u=null;const d=(()=>{let e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(e){}return e})(),p=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}})();let m,f=null,g=!1;const h={},w=(e,t)=>{const o=Object.assign({},e);c("request(%o)",o),f||k();const n=(0,s.A)();o.callback=n,o.supports_args=!0,o.supports_error_obj=!0,o.supports_progress=!0,o.method=String(o.method||"GET").toUpperCase(),c("params object: %o",o);const r=new window.XMLHttpRequest;if(r.params=o,h[n]=r,"function"==typeof t){let e=!1;const o=o=>{if(e)return;e=!0;const n=o.response??r.response;c("body: ",n),c("headers: ",o.headers),t(null,n,o.headers)},n=o=>{if(e)return;e=!0;const n=o.error??o.err??o;c("error: ",n),c("headers: ",o.headers),t(n,null,o.headers)};r.addEventListener("load",o),r.addEventListener("abort",n),r.addEventListener("error",n)}return"function"==typeof o.onStreamRecord&&(u=o.onStreamRecord,delete o.onStreamRecord),g?y(o):(c("buffering API request since proxying